@decocms/mesh 2.33.0 → 2.35.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 (133) hide show
  1. package/dist/client/assets/{AlertCircle-BUJ8IT58.js → AlertCircle-BRWDZx_r.js} +1 -1
  2. package/dist/client/assets/{ArrowLeft-Cgf-RjME.js → ArrowLeft-hhVT4Kgt.js} +1 -1
  3. package/dist/client/assets/{ArrowUp-6Vw9g-kK.js → ArrowUp-07dwm1MA.js} +1 -1
  4. package/dist/client/assets/{Check-CSwEsqta.js → Check-n_KiNdp_.js} +1 -1
  5. package/dist/client/assets/{ChevronDown-DFQ7Wwuf.js → ChevronDown-BDe2LrLc.js} +1 -1
  6. package/dist/client/assets/{Code01-BO10Af7Z.js → Code01-DPGq6TT6.js} +1 -1
  7. package/dist/client/assets/{Copy01-D3IzDjkZ.js → Copy01-dSgWMnr9.js} +1 -1
  8. package/dist/client/assets/{CpuChip02-BhwN5rbm.js → CpuChip02-D4-bIMj_.js} +1 -1
  9. package/dist/client/assets/{DotsHorizontal-BDXVd4Qq.js → DotsHorizontal-C5FFxgpO.js} +1 -1
  10. package/dist/client/assets/{DotsVertical-D9Rul5KS.js → DotsVertical-_ZO_fNF7.js} +1 -1
  11. package/dist/client/assets/{Download01-BeKBUqUu.js → Download01-H-0ecpIj.js} +1 -1
  12. package/dist/client/assets/{Edit01-lX0maYnd.js → Edit01-nGCAvXPD.js} +1 -1
  13. package/dist/client/assets/{File06-BUqTeSo9.js → File06-CbLEGD6l.js} +1 -1
  14. package/dist/client/assets/{FilterLines-9uzI1ZUk.js → FilterLines-CRZrobVY.js} +1 -1
  15. package/dist/client/assets/{FlipBackward-CKjrTjy2.js → FlipBackward-DEk7agK1.js} +1 -1
  16. package/dist/client/assets/{GitBranch01-DwH1AkJQ.js → GitBranch01-8cUKFct3.js} +1 -1
  17. package/dist/client/assets/{Grid01-B6p7u4lV.js → Grid01-D_y10H_F.js} +1 -1
  18. package/dist/client/assets/{Home02-BghpVzd2.js → Home02-CcZBoBXH.js} +1 -1
  19. package/dist/client/assets/{Image01-UhJxiWhu.js → Image01-DAeUMBHm.js} +1 -1
  20. package/dist/client/assets/{Inbox01-D2KzPm9_.js → Inbox01-DYU61nmV.js} +1 -1
  21. package/dist/client/assets/{InfoCircle-476KnZLd.js → InfoCircle-B5w8XDv3.js} +1 -1
  22. package/dist/client/assets/{Key01-iLYu5J4i.js → Key01-BMvQCi5l.js} +1 -1
  23. package/dist/client/assets/{LinkExternal01-hRmOt3fQ.js → LinkExternal01-Bi1B9G37.js} +1 -1
  24. package/dist/client/assets/{List-BNtbfVCR.js → List-AGMu6Jg9.js} +1 -1
  25. package/dist/client/assets/{Loading01-Bm4yV2Kc.js → Loading01-mNUVI85L.js} +1 -1
  26. package/dist/client/assets/{Lock01-DW5Dv4uq.js → Lock01-B3WHG0KG.js} +1 -1
  27. package/dist/client/assets/{Play-Bb62L2ZA.js → Play-Cf7Any1j.js} +1 -1
  28. package/dist/client/assets/{Plus-DXX1AA4n.js → Plus-BBofXpHO.js} +1 -1
  29. package/dist/client/assets/{SearchMd-BHAg8E82.js → SearchMd-BCAxnQkD.js} +1 -1
  30. package/dist/client/assets/{Terminal-j-v4faZp.js → Terminal-rmcOb2qR.js} +1 -1
  31. package/dist/client/assets/{Trash01-CdrSpG7k.js → Trash01-r91jWYrx.js} +1 -1
  32. package/dist/client/assets/{Upload01-BIrdmP3b.js → Upload01-CHkKcKN6.js} +1 -1
  33. package/dist/client/assets/{X-B3J65QND.js → X-C-LXD8Fs.js} +1 -1
  34. package/dist/client/assets/{XClose-IcohyJgY.js → XClose-Cuyiwbqc.js} +1 -1
  35. package/dist/client/assets/{agent-detail-CYjCyd9d.js → agent-detail-Cgt9QWk4.js} +1 -1
  36. package/dist/client/assets/{agents-CxMTqONq.js → agents-fnv41ET7.js} +1 -1
  37. package/dist/client/assets/{alert-dialog-DS_IdQX7.js → alert-dialog-b2qaVWQf.js} +1 -1
  38. package/dist/client/assets/{auth-catchall-UglB1DuM.js → auth-catchall-CT8C3FiC.js} +1 -1
  39. package/dist/client/assets/{avatar-D8MYCeCO.js → avatar-CJ18d1Yr.js} +1 -1
  40. package/dist/client/assets/{badge-CKkYvVPh.js → badge-BLC7Dsve.js} +1 -1
  41. package/dist/client/assets/{binder-DmV70Mg6.js → binder-BG1MkJXb.js} +1 -1
  42. package/dist/client/assets/{button-CX9BcGIk.js → button-CWaK1hUN.js} +1 -1
  43. package/dist/client/assets/{card-BDtQbN4Z.js → card-7SgaoQef.js} +1 -1
  44. package/dist/client/assets/{checkbox-DyCTDo5B.js → checkbox-BWBpAWkB.js} +1 -1
  45. package/dist/client/assets/{collection-detail-BzGnhxXG.js → collection-detail-DUhOfUr0.js} +1 -1
  46. package/dist/client/assets/{collection-display-button-BqEBXGbV.js → collection-display-button-DKWP6xRi.js} +1 -1
  47. package/dist/client/assets/{collection-header-DdM-1rXZ.js → collection-header-I0z7H0ZC.js} +1 -1
  48. package/dist/client/assets/{collection-page-Bhf_fPlN.js → collection-page-EuoaVB95.js} +1 -1
  49. package/dist/client/assets/{collection-search-D2zepp45.js → collection-search-CP09UmnI.js} +1 -1
  50. package/dist/client/assets/{collection-tab-Dx4a2de4.js → collection-tab-Cyh1pe9u.js} +1 -1
  51. package/dist/client/assets/{collection-table-wrapper-BRx1U1h_.js → collection-table-wrapper--qQDqi3a.js} +1 -1
  52. package/dist/client/assets/{connection-card-7axd0v5e.js → connection-card-dyAZPnBc.js} +1 -1
  53. package/dist/client/assets/{connection-detail-DiXv5jt2.js → connection-detail-BmS-s06n.js} +1 -1
  54. package/dist/client/assets/{connections-CmqWCHTI.js → connections-DBGBr_4l.js} +1 -1
  55. package/dist/client/assets/{constants-DZTKSPb5.js → constants-D7TSocv6.js} +1 -1
  56. package/dist/client/assets/constants-DSSgefWZ.js +1 -0
  57. package/dist/client/assets/{create-organization-dialog-WqVFUH5x.js → create-organization-dialog-DrmGwR9J.js} +1 -1
  58. package/dist/client/assets/{dialog-CtieLp9D.js → dialog-CkzeDWMv.js} +1 -1
  59. package/dist/client/assets/{dropdown-menu-BOgD5B6g.js → dropdown-menu-eADXqdeC.js} +1 -1
  60. package/dist/client/assets/{dynamic-plugin-layout-Cir7_703.js → dynamic-plugin-layout-ObC7Ud51.js} +1 -1
  61. package/dist/client/assets/{empty-state-K3SjQCVt.js → empty-state-CfCSwnz1.js} +1 -1
  62. package/dist/client/assets/{empty-state-DUPw1fh0.js → empty-state-zP-KbGlv.js} +1 -1
  63. package/dist/client/assets/{env-vars-editor-DgBscrAL.js → env-vars-editor-BI1TwkmM.js} +1 -1
  64. package/dist/client/assets/{error-boundary-DDz4G03r.js → error-boundary-CG0YZ4B8.js} +1 -1
  65. package/dist/client/assets/{extract-connection-data-5AHzxrfF.js → extract-connection-data-DjJgYZHM.js} +1 -1
  66. package/dist/client/assets/{file-browser-oT6ix4zp.js → file-browser-FetvDlId.js} +2 -2
  67. package/dist/client/assets/{form-lMcrl-dM.js → form-BJcgMy55.js} +1 -1
  68. package/dist/client/assets/{grid-view-CpwRqIn-.js → grid-view-DAtPq1rk.js} +1 -1
  69. package/dist/client/assets/{home-B7Dgc3GO.js → home-563KzJx_.js} +1 -1
  70. package/dist/client/assets/{index-BC_LUGnz.js → index--CSmLs4y.js} +1 -1
  71. package/dist/client/assets/{index-lzARP5Pm.js → index-BMtR19Aw.js} +1 -1
  72. package/dist/client/assets/{index-B9g3IU58.js → index-BipFUdjC.js} +2 -2
  73. package/dist/client/assets/{index-P3kNP-Ue.js → index-CJvrv3U6.js} +1 -1
  74. package/dist/client/assets/{index-DRDMCJOo.js → index-D8uhOq5u.js} +1 -1
  75. package/dist/client/assets/{index-CtjqtW4J.js → index-q_aACm4R.js} +1 -1
  76. package/dist/client/assets/{infiniteQueryObserver-CKJG_0Nf.js → infiniteQueryObserver-FEDpWaxK.js} +1 -1
  77. package/dist/client/assets/{input-D7AeKLG6.js → input-CJlzp_V5.js} +1 -1
  78. package/dist/client/assets/{layout-CXeFBy5y.js → layout-BHCzoCFv.js} +1 -1
  79. package/dist/client/assets/{localstorage-keys-D1ttI_kB.js → localstorage-keys-CqdQQHDa.js} +1 -1
  80. package/dist/client/assets/{login-aHF5mxsS.js → login-DdZmNh4a.js} +1 -1
  81. package/dist/client/assets/{mcp-oauth-DEkeQYdq.js → mcp-oauth-Da5yE9aW.js} +1 -1
  82. package/dist/client/assets/{mcp-server-card-B8_ilRqj.js → mcp-server-card-CYYL-dXF.js} +1 -1
  83. package/dist/client/assets/{mcp-server-detail-2KEeU4st.js → mcp-server-detail-C2G-xpe0.js} +2 -2
  84. package/dist/client/assets/{members-0oxL59m2.js → members-FKAvc6la.js} +1 -1
  85. package/dist/client/assets/{monaco-editor-D26cmj67.js → monaco-editor-DkDnm6Tx.js} +1 -1
  86. package/dist/client/assets/{monitoring-BguR26SJ.js → monitoring-6KAEGPPJ.js} +1 -1
  87. package/dist/client/assets/{oauth-callback-CoFJFyY2.js → oauth-callback-IuYTWMST.js} +1 -1
  88. package/dist/client/assets/{page-CRtItJfu.js → page-C36S8a5W.js} +1 -1
  89. package/dist/client/assets/page-C9G8C61g.js +21 -0
  90. package/dist/client/assets/{pin-to-sidebar-button-C6dzy2Sp.js → pin-to-sidebar-button-WVVRk2lw.js} +1 -1
  91. package/dist/client/assets/{plugin-empty-state-DC-Bc-Hq.js → plugin-empty-state-ByA0OkEn.js} +1 -1
  92. package/dist/client/assets/{plugin-header-ChOrvFfE.js → plugin-header-D5yHZtXf.js} +1 -1
  93. package/dist/client/assets/{plugins-BgTbwOTC.js → plugins-OwUnN1ka.js} +1 -1
  94. package/dist/client/assets/{popover-D5eKc-lR.js → popover-CshCl6w-.js} +1 -1
  95. package/dist/client/assets/{registry-utils-ButNyWVv.js → registry-utils-D7Dqr6wv.js} +1 -1
  96. package/dist/client/assets/{resizable-DXIy41ZI.js → resizable-B1zLCIJb.js} +1 -1
  97. package/dist/client/assets/{resource-tabs-D9U7wwIj.js → resource-tabs-CRbf__IW.js} +1 -1
  98. package/dist/client/assets/{select-DypP_ctF.js → select-4bCSDmWU.js} +1 -1
  99. package/dist/client/assets/{settings-mRHoZXOZ.js → settings-CR5PvLr2.js} +1 -1
  100. package/dist/client/assets/{shell-layout-DOTt2kmG.js → shell-layout-FpAzDkjt.js} +1 -1
  101. package/dist/client/assets/{spinner-y-sEdyFB.js → spinner-BipWRp7l.js} +1 -1
  102. package/dist/client/assets/{switch-SVkH95AH.js → switch-C_F_zeuN.js} +1 -1
  103. package/dist/client/assets/{textarea-bmWEiN7l.js → textarea-BZmzcANs.js} +1 -1
  104. package/dist/client/assets/{tool-set-selector-DhQ3jxep.js → tool-set-selector-DMyguAVM.js} +1 -1
  105. package/dist/client/assets/{tools-list-Ds7Jsail.js → tools-list-CM9pIRwn.js} +1 -1
  106. package/dist/client/assets/{tooltip-BQbbKnxv.js → tooltip-D3Kw0HUb.js} +1 -1
  107. package/dist/client/assets/{typewriter-title-BiqUerVd.js → typewriter-title-zajICLfm.js} +1 -1
  108. package/dist/client/assets/{use-binding-C219fPLm.js → use-binding-Ba3v4zMi.js} +1 -1
  109. package/dist/client/assets/{use-collections-CvkTm_6U.js → use-collections-BQHGs5iU.js} +1 -1
  110. package/dist/client/assets/{use-connection-D8u2E4QD.js → use-connection-D03dTvtG.js} +1 -1
  111. package/dist/client/assets/{use-create-virtual-mcp-hwvm94Q5.js → use-create-virtual-mcp-Cpzz-1zf.js} +1 -1
  112. package/dist/client/assets/{use-list-state-B9azqHgQ.js → use-list-state-B0KtA_q9.js} +1 -1
  113. package/dist/client/assets/{use-members-BfTFBzTl.js → use-members-CHh5MLEe.js} +1 -1
  114. package/dist/client/assets/{use-mobile-RHn4NyjN.js → use-mobile-Q27OeJ4I.js} +1 -1
  115. package/dist/client/assets/{use-organization-settings-AWdRXyNF.js → use-organization-settings-CRV4VKdj.js} +1 -1
  116. package/dist/client/assets/{use-virtual-mcp-D17yOOVF.js → use-virtual-mcp-CJ7FNu85.js} +1 -1
  117. package/dist/client/assets/{use-virtual-mcp-system-prompt-CC3fRmBB.js → use-virtual-mcp-system-prompt-BfXjv37Y.js} +1 -1
  118. package/dist/client/assets/useInfiniteQuery-shmHdaex.js +1 -0
  119. package/dist/client/assets/{useMutation-ByLbENlF.js → useMutation-BJoWTtTW.js} +1 -1
  120. package/dist/client/assets/useQuery-CcFgJIAV.js +1 -0
  121. package/dist/client/assets/{value-Bupbegsn.js → value-C0VGfi9E.js} +1 -1
  122. package/dist/client/assets/{view-mode-toggle-DgsbED3E.js → view-mode-toggle-BkNnvYv5.js} +1 -1
  123. package/dist/client/assets/{virtual-mcp-Mmz1T7Sl.js → virtual-mcp-BBuKM0Zd.js} +1 -1
  124. package/dist/client/assets/{workflow-BnYCXhHP.js → workflow-CxGNxRFo.js} +1 -1
  125. package/dist/client/index.html +1 -1
  126. package/dist/server/cli.js +174 -154
  127. package/dist/server/migrate.js +146 -126
  128. package/dist/server/server.js +189 -189
  129. package/package.json +1 -1
  130. package/dist/client/assets/constants-B4VvhBhE.js +0 -1
  131. package/dist/client/assets/page-BjhbwMHp.js +0 -21
  132. package/dist/client/assets/useInfiniteQuery-xJm-Bx7q.js +0 -1
  133. package/dist/client/assets/useQuery-DoX2gsGK.js +0 -1
@@ -1 +1 @@
1
- import{c as K,i as Q,E as b,a0 as q}from"./index-B9g3IU58.js";import{u as M}from"./useMutation-ByLbENlF.js";import{u as x}from"./useQuery-DoX2gsGK.js";import{K as P}from"./constants-DZTKSPb5.js";function H(n){const e=K.c(12);let o,s;e[0]!==n?({client:o,...s}=n,e[0]=n,e[1]=o,e[2]=s):(o=e[1],s=e[2]);let t;e[3]!==o?(t=P.mcpToolsList(o),e[3]=o,e[4]=t):t=e[4];let l;e[5]!==o?(l=async()=>await o.listTools(),e[5]=o,e[6]=l):l=e[6];const r=s.staleTime??3e4;let a;return e[7]!==s||e[8]!==t||e[9]!==l||e[10]!==r?(a={...s,queryKey:t,queryFn:l,staleTime:r,retry:!1},e[7]=s,e[8]=t,e[9]=l,e[10]=r,e[11]=a):a=e[11],x(a)}function U(n){const e=K.c(21);let o,s,t,l;e[0]!==n?({client:o,toolName:l,toolArguments:t,...s}=n,e[0]=n,e[1]=o,e[2]=s,e[3]=t,e[4]=l):(o=e[1],s=e[2],t=e[3],l=e[4]);let r,a,c;if(e[5]!==o||e[6]!==s||e[7]!==t||e[8]!==l){const m=JSON.stringify(t??{});c=Q,r=s,a=P.mcpToolCall(o,l,m),e[5]=o,e[6]=s,e[7]=t,e[8]=l,e[9]=r,e[10]=a,e[11]=c}else r=e[9],a=e[10],c=e[11];let i;e[12]!==o||e[13]!==t||e[14]!==l?(i=async()=>await o.callTool({name:l,arguments:t}),e[12]=o,e[13]=t,e[14]=l,e[15]=i):i=e[15];const f=s.staleTime??3e4;let u;return e[16]!==r||e[17]!==a||e[18]!==i||e[19]!==f?(u={...r,queryKey:a,queryFn:i,staleTime:f,retry:!1},e[16]=r,e[17]=a,e[18]=i,e[19]=f,e[20]=u):u=e[20],c(u)}function V(n){const e=K.c(21);let o,s,t,l;e[0]!==n?({client:o,toolName:l,toolArguments:t,...s}=n,e[0]=n,e[1]=o,e[2]=s,e[3]=t,e[4]=l):(o=e[1],s=e[2],t=e[3],l=e[4]);let r,a,c;if(e[5]!==o||e[6]!==s||e[7]!==t||e[8]!==l){const m=JSON.stringify(t??{});c=x,r=s,a=P.mcpToolCall(o,l,m),e[5]=o,e[6]=s,e[7]=t,e[8]=l,e[9]=r,e[10]=a,e[11]=c}else r=e[9],a=e[10],c=e[11];let i;e[12]!==o||e[13]!==t||e[14]!==l?(i=async()=>await o.callTool({name:l,arguments:t}),e[12]=o,e[13]=t,e[14]=l,e[15]=i):i=e[15];const f=s.staleTime??3e4;let u;return e[16]!==r||e[17]!==a||e[18]!==i||e[19]!==f?(u={...r,queryKey:a,queryFn:i,staleTime:f,retry:!1},e[16]=r,e[17]=a,e[18]=i,e[19]=f,e[20]=u):u=e[20],c(u)}function X(n){const e=K.c(8);let o,s;e[0]!==n?({client:o,...s}=n,e[0]=n,e[1]=o,e[2]=s):(o=e[1],s=e[2]);let t;e[3]!==o?(t=async r=>await o.callTool(r),e[3]=o,e[4]=t):t=e[4];let l;return e[5]!==s||e[6]!==t?(l={...s,mutationFn:t},e[5]=s,e[6]=t,e[7]=l):l=e[7],M(l)}function D(n,e,o){const s=[];if(n?.trim()){const t=n.trim(),l=o.map(r=>({field:[String(r)],operator:"contains",value:t}));l.length===1&&l[0]?s.push(l[0]):l.length>1&&s.push({operator:"or",conditions:l})}if(e&&e.length>0)for(const t of e)s.push({field:[t.column],operator:"eq",value:t.value});if(s.length!==0)return s.length===1?s[0]:{operator:"and",conditions:s}}function k(n,e,o){const s=n??o,t=e??"asc";return[{field:[String(s)],direction:t}]}function w(n){const e=n;return e&&typeof e=="object"&&"structuredContent"in e?e.structuredContent:e}function Z(n,e,o,s){const t=K.c(13);let l;t[0]!==e?(l=e.toUpperCase(),t[0]=e,t[1]=l):l=t[1];const a=`COLLECTION_${l}_GET`;let c;t[2]!==s||t[3]!==a||t[4]!==o?(c=P.mcpToolCall(s,a,o??""),t[2]=s,t[3]=a,t[4]=o,t[5]=c):c=t[5];let i;t[6]!==s||t[7]!==a||t[8]!==o?(i=async()=>{if(!o)return{item:null};const m=await s.callTool({name:a,arguments:{id:o}});return w(m)},t[6]=s,t[7]=a,t[8]=o,t[9]=i):i=t[9];let f;t[10]!==c||t[11]!==i?(f={queryKey:c,queryFn:i,staleTime:6e4},t[10]=c,t[11]=i,t[12]=f):f=t[12];const{data:u}=Q(f);return u?.item??null}function ee(n,e,o,s){const t=K.c(26);let l;t[0]!==s?(l=s===void 0?{}:s,t[0]=s,t[1]=l):l=t[1];const r=l,{searchTerm:a,filters:c,sortKey:i,sortDirection:f,searchFields:u,defaultSortKey:m,pageSize:E}=r;let _;t[2]!==u?(_=u===void 0?["title","description"]:u,t[2]=u,t[3]=_):_=t[3];const h=_,T=m===void 0?"updated_at":m,C=E===void 0?100:E;let O;t[4]!==e?(O=e.toUpperCase(),t[4]=e,t[5]=O):O=t[5];const g=`COLLECTION_${O}_LIST`;let d;t[6]!==c||t[7]!==h||t[8]!==a?(d=D(a,c,h),t[6]=c,t[7]=h,t[8]=a,t[9]=d):d=t[9];const S=d;let $;t[10]!==T||t[11]!==f||t[12]!==i?($=k(i,f,T),t[10]=T,t[11]=f,t[12]=i,t[13]=$):$=t[13];const L=$;let y;t[14]!==S?(y=S&&{where:S},t[14]=S,t[15]=y):y=t[15];let p;t[16]!==L?(p=L&&{orderBy:L},t[16]=L,t[17]=p):p=t[17];let N;t[18]!==C||t[19]!==p||t[20]!==y?(N={...y,...p,limit:C,offset:0},t[18]=C,t[19]=p,t[20]=y,t[21]=N):N=t[21];const F=N;let v;t[22]!==o||t[23]!==g||t[24]!==F?(v={client:o,toolName:g,toolArguments:F,select:z},t[22]=o,t[23]=g,t[24]=F,t[25]=v):v=t[25];const{data:I}=U(v);return I}function z(n){return w(n)?.items??[]}function te(n,e,o){const s=K.c(33),t=b();let l;s[0]!==e?(l=e.toUpperCase(),s[0]=e,s[1]=l):l=s[1];const r=l,a=`COLLECTION_${r}_CREATE`,c=`COLLECTION_${r}_UPDATE`,i=`COLLECTION_${r}_DELETE`;let f;s[2]!==t||s[3]!==r?(f=()=>{t.invalidateQueries({predicate:y=>{const p=y.queryKey;return p[0]!=="mcp"||p[1]!=="client"||p[3]!=="tool-call"?!1:p[4]?.startsWith(`COLLECTION_${r}_`)}})},s[2]=t,s[3]=r,s[4]=f):f=s[4];const u=f;let m;s[5]!==o||s[6]!==a?(m=async y=>{const p=await o.callTool({name:a,arguments:{data:y}});return w(p).item},s[5]=o,s[6]=a,s[7]=m):m=s[7];let E;s[8]!==u?(E=()=>{u(),q.success("Item created successfully")},s[8]=u,s[9]=E):E=s[9];let _;s[10]!==m||s[11]!==E?(_={mutationFn:m,onSuccess:E,onError:R},s[10]=m,s[11]=E,s[12]=_):_=s[12];const h=M(_);let T;s[13]!==o||s[14]!==c?(T=async y=>{const{id:p,data:N}=y,F=await o.callTool({name:c,arguments:{id:p,data:N}});return w(F).item},s[13]=o,s[14]=c,s[15]=T):T=s[15];let C;s[16]!==u?(C=()=>{u(),q.success("Item updated successfully")},s[16]=u,s[17]=C):C=s[17];let O;s[18]!==T||s[19]!==C?(O={mutationFn:T,onSuccess:C,onError:J},s[18]=T,s[19]=C,s[20]=O):O=s[20];const A=M(O);let g;s[21]!==o||s[22]!==i?(g=async y=>{const p=await o.callTool({name:i,arguments:{id:y}});return w(p).item.id},s[21]=o,s[22]=i,s[23]=g):g=s[23];let d;s[24]!==u?(d=()=>{u(),q.success("Item deleted successfully")},s[24]=u,s[25]=d):d=s[25];let S;s[26]!==g||s[27]!==d?(S={mutationFn:g,onSuccess:d,onError:B},s[26]=g,s[27]=d,s[28]=S):S=s[28];const $=M(S);let L;return s[29]!==h||s[30]!==$||s[31]!==A?(L={create:h,update:A,delete:$},s[29]=h,s[30]=$,s[31]=A,s[32]=L):L=s[32],L}function B(n){const e=n instanceof Error?n.message:String(n);q.error(`Failed to delete item: ${e}`)}function J(n){const e=n instanceof Error?n.message:String(n);q.error(`Failed to update item: ${e}`)}function R(n){const e=n instanceof Error?n.message:String(n);q.error(`Failed to create item: ${e}`)}export{ee as a,te as b,Z as c,H as d,U as e,X as f,V as u};
1
+ import{c as K,i as Q,E as b,a0 as q}from"./index-BipFUdjC.js";import{u as M}from"./useMutation-BJoWTtTW.js";import{u as x}from"./useQuery-CcFgJIAV.js";import{K as P}from"./constants-D7TSocv6.js";function H(n){const e=K.c(12);let o,s;e[0]!==n?({client:o,...s}=n,e[0]=n,e[1]=o,e[2]=s):(o=e[1],s=e[2]);let t;e[3]!==o?(t=P.mcpToolsList(o),e[3]=o,e[4]=t):t=e[4];let l;e[5]!==o?(l=async()=>await o.listTools(),e[5]=o,e[6]=l):l=e[6];const r=s.staleTime??3e4;let a;return e[7]!==s||e[8]!==t||e[9]!==l||e[10]!==r?(a={...s,queryKey:t,queryFn:l,staleTime:r,retry:!1},e[7]=s,e[8]=t,e[9]=l,e[10]=r,e[11]=a):a=e[11],x(a)}function U(n){const e=K.c(21);let o,s,t,l;e[0]!==n?({client:o,toolName:l,toolArguments:t,...s}=n,e[0]=n,e[1]=o,e[2]=s,e[3]=t,e[4]=l):(o=e[1],s=e[2],t=e[3],l=e[4]);let r,a,c;if(e[5]!==o||e[6]!==s||e[7]!==t||e[8]!==l){const m=JSON.stringify(t??{});c=Q,r=s,a=P.mcpToolCall(o,l,m),e[5]=o,e[6]=s,e[7]=t,e[8]=l,e[9]=r,e[10]=a,e[11]=c}else r=e[9],a=e[10],c=e[11];let i;e[12]!==o||e[13]!==t||e[14]!==l?(i=async()=>await o.callTool({name:l,arguments:t}),e[12]=o,e[13]=t,e[14]=l,e[15]=i):i=e[15];const f=s.staleTime??3e4;let u;return e[16]!==r||e[17]!==a||e[18]!==i||e[19]!==f?(u={...r,queryKey:a,queryFn:i,staleTime:f,retry:!1},e[16]=r,e[17]=a,e[18]=i,e[19]=f,e[20]=u):u=e[20],c(u)}function V(n){const e=K.c(21);let o,s,t,l;e[0]!==n?({client:o,toolName:l,toolArguments:t,...s}=n,e[0]=n,e[1]=o,e[2]=s,e[3]=t,e[4]=l):(o=e[1],s=e[2],t=e[3],l=e[4]);let r,a,c;if(e[5]!==o||e[6]!==s||e[7]!==t||e[8]!==l){const m=JSON.stringify(t??{});c=x,r=s,a=P.mcpToolCall(o,l,m),e[5]=o,e[6]=s,e[7]=t,e[8]=l,e[9]=r,e[10]=a,e[11]=c}else r=e[9],a=e[10],c=e[11];let i;e[12]!==o||e[13]!==t||e[14]!==l?(i=async()=>await o.callTool({name:l,arguments:t}),e[12]=o,e[13]=t,e[14]=l,e[15]=i):i=e[15];const f=s.staleTime??3e4;let u;return e[16]!==r||e[17]!==a||e[18]!==i||e[19]!==f?(u={...r,queryKey:a,queryFn:i,staleTime:f,retry:!1},e[16]=r,e[17]=a,e[18]=i,e[19]=f,e[20]=u):u=e[20],c(u)}function X(n){const e=K.c(8);let o,s;e[0]!==n?({client:o,...s}=n,e[0]=n,e[1]=o,e[2]=s):(o=e[1],s=e[2]);let t;e[3]!==o?(t=async r=>await o.callTool(r),e[3]=o,e[4]=t):t=e[4];let l;return e[5]!==s||e[6]!==t?(l={...s,mutationFn:t},e[5]=s,e[6]=t,e[7]=l):l=e[7],M(l)}function D(n,e,o){const s=[];if(n?.trim()){const t=n.trim(),l=o.map(r=>({field:[String(r)],operator:"contains",value:t}));l.length===1&&l[0]?s.push(l[0]):l.length>1&&s.push({operator:"or",conditions:l})}if(e&&e.length>0)for(const t of e)s.push({field:[t.column],operator:"eq",value:t.value});if(s.length!==0)return s.length===1?s[0]:{operator:"and",conditions:s}}function k(n,e,o){const s=n??o,t=e??"asc";return[{field:[String(s)],direction:t}]}function w(n){const e=n;return e&&typeof e=="object"&&"structuredContent"in e?e.structuredContent:e}function Z(n,e,o,s){const t=K.c(13);let l;t[0]!==e?(l=e.toUpperCase(),t[0]=e,t[1]=l):l=t[1];const a=`COLLECTION_${l}_GET`;let c;t[2]!==s||t[3]!==a||t[4]!==o?(c=P.mcpToolCall(s,a,o??""),t[2]=s,t[3]=a,t[4]=o,t[5]=c):c=t[5];let i;t[6]!==s||t[7]!==a||t[8]!==o?(i=async()=>{if(!o)return{item:null};const m=await s.callTool({name:a,arguments:{id:o}});return w(m)},t[6]=s,t[7]=a,t[8]=o,t[9]=i):i=t[9];let f;t[10]!==c||t[11]!==i?(f={queryKey:c,queryFn:i,staleTime:6e4},t[10]=c,t[11]=i,t[12]=f):f=t[12];const{data:u}=Q(f);return u?.item??null}function ee(n,e,o,s){const t=K.c(26);let l;t[0]!==s?(l=s===void 0?{}:s,t[0]=s,t[1]=l):l=t[1];const r=l,{searchTerm:a,filters:c,sortKey:i,sortDirection:f,searchFields:u,defaultSortKey:m,pageSize:E}=r;let _;t[2]!==u?(_=u===void 0?["title","description"]:u,t[2]=u,t[3]=_):_=t[3];const h=_,T=m===void 0?"updated_at":m,C=E===void 0?100:E;let O;t[4]!==e?(O=e.toUpperCase(),t[4]=e,t[5]=O):O=t[5];const g=`COLLECTION_${O}_LIST`;let d;t[6]!==c||t[7]!==h||t[8]!==a?(d=D(a,c,h),t[6]=c,t[7]=h,t[8]=a,t[9]=d):d=t[9];const S=d;let $;t[10]!==T||t[11]!==f||t[12]!==i?($=k(i,f,T),t[10]=T,t[11]=f,t[12]=i,t[13]=$):$=t[13];const L=$;let y;t[14]!==S?(y=S&&{where:S},t[14]=S,t[15]=y):y=t[15];let p;t[16]!==L?(p=L&&{orderBy:L},t[16]=L,t[17]=p):p=t[17];let N;t[18]!==C||t[19]!==p||t[20]!==y?(N={...y,...p,limit:C,offset:0},t[18]=C,t[19]=p,t[20]=y,t[21]=N):N=t[21];const F=N;let v;t[22]!==o||t[23]!==g||t[24]!==F?(v={client:o,toolName:g,toolArguments:F,select:z},t[22]=o,t[23]=g,t[24]=F,t[25]=v):v=t[25];const{data:I}=U(v);return I}function z(n){return w(n)?.items??[]}function te(n,e,o){const s=K.c(33),t=b();let l;s[0]!==e?(l=e.toUpperCase(),s[0]=e,s[1]=l):l=s[1];const r=l,a=`COLLECTION_${r}_CREATE`,c=`COLLECTION_${r}_UPDATE`,i=`COLLECTION_${r}_DELETE`;let f;s[2]!==t||s[3]!==r?(f=()=>{t.invalidateQueries({predicate:y=>{const p=y.queryKey;return p[0]!=="mcp"||p[1]!=="client"||p[3]!=="tool-call"?!1:p[4]?.startsWith(`COLLECTION_${r}_`)}})},s[2]=t,s[3]=r,s[4]=f):f=s[4];const u=f;let m;s[5]!==o||s[6]!==a?(m=async y=>{const p=await o.callTool({name:a,arguments:{data:y}});return w(p).item},s[5]=o,s[6]=a,s[7]=m):m=s[7];let E;s[8]!==u?(E=()=>{u(),q.success("Item created successfully")},s[8]=u,s[9]=E):E=s[9];let _;s[10]!==m||s[11]!==E?(_={mutationFn:m,onSuccess:E,onError:R},s[10]=m,s[11]=E,s[12]=_):_=s[12];const h=M(_);let T;s[13]!==o||s[14]!==c?(T=async y=>{const{id:p,data:N}=y,F=await o.callTool({name:c,arguments:{id:p,data:N}});return w(F).item},s[13]=o,s[14]=c,s[15]=T):T=s[15];let C;s[16]!==u?(C=()=>{u(),q.success("Item updated successfully")},s[16]=u,s[17]=C):C=s[17];let O;s[18]!==T||s[19]!==C?(O={mutationFn:T,onSuccess:C,onError:J},s[18]=T,s[19]=C,s[20]=O):O=s[20];const A=M(O);let g;s[21]!==o||s[22]!==i?(g=async y=>{const p=await o.callTool({name:i,arguments:{id:y}});return w(p).item.id},s[21]=o,s[22]=i,s[23]=g):g=s[23];let d;s[24]!==u?(d=()=>{u(),q.success("Item deleted successfully")},s[24]=u,s[25]=d):d=s[25];let S;s[26]!==g||s[27]!==d?(S={mutationFn:g,onSuccess:d,onError:B},s[26]=g,s[27]=d,s[28]=S):S=s[28];const $=M(S);let L;return s[29]!==h||s[30]!==$||s[31]!==A?(L={create:h,update:A,delete:$},s[29]=h,s[30]=$,s[31]=A,s[32]=L):L=s[32],L}function B(n){const e=n instanceof Error?n.message:String(n);q.error(`Failed to delete item: ${e}`)}function J(n){const e=n instanceof Error?n.message:String(n);q.error(`Failed to update item: ${e}`)}function R(n){const e=n instanceof Error?n.message:String(n);q.error(`Failed to create item: ${e}`)}export{ee as a,te as b,Z as c,H as d,U as e,X as f,V as u};
@@ -1 +1 @@
1
- import{c as d}from"./index-B9g3IU58.js";import{u as l}from"./virtual-mcp-Mmz1T7Sl.js";import{a as f,b as a,c as m}from"./use-collections-CvkTm_6U.js";import{W as r,u}from"./constants-DZTKSPb5.js";function E(t){const o=d.c(7);let i;o[0]!==t?(i=t===void 0?{}:t,o[0]=t,o[1]=i):i=o[1];const n=i,{org:e}=l();let s;o[2]!==e.id?(s=r.SELF(e.id),o[2]=e.id,o[3]=s):s=o[3];let c;o[4]!==e.id||o[5]!==s?(c={connectionId:s,orgId:e.id},o[4]=e.id,o[5]=s,o[6]=c):c=o[6];const C=u(c);return f(e.id,"CONNECTIONS",C,n)}function O(t){const o=d.c(5),{org:i}=l();let n;o[0]!==i.id?(n=r.SELF(i.id),o[0]=i.id,o[1]=n):n=o[1];let e;o[2]!==i.id||o[3]!==n?(e={connectionId:n,orgId:i.id},o[2]=i.id,o[3]=n,o[4]=e):e=o[4];const s=u(e);return m(i.id,"CONNECTIONS",t,s)}function S(){const t=d.c(5),{org:o}=l();let i;t[0]!==o.id?(i=r.SELF(o.id),t[0]=o.id,t[1]=i):i=t[1];let n;t[2]!==o.id||t[3]!==i?(n={connectionId:i,orgId:o.id},t[2]=o.id,t[3]=i,t[4]=n):n=t[4];const e=u(n);return a(o.id,"CONNECTIONS",e)}export{E as a,O as b,S as u};
1
+ import{c as d}from"./index-BipFUdjC.js";import{u as l}from"./virtual-mcp-BBuKM0Zd.js";import{a as f,b as a,c as m}from"./use-collections-BQHGs5iU.js";import{W as r,u}from"./constants-D7TSocv6.js";function E(t){const o=d.c(7);let i;o[0]!==t?(i=t===void 0?{}:t,o[0]=t,o[1]=i):i=o[1];const n=i,{org:e}=l();let s;o[2]!==e.id?(s=r.SELF(e.id),o[2]=e.id,o[3]=s):s=o[3];let c;o[4]!==e.id||o[5]!==s?(c={connectionId:s,orgId:e.id},o[4]=e.id,o[5]=s,o[6]=c):c=o[6];const C=u(c);return f(e.id,"CONNECTIONS",C,n)}function O(t){const o=d.c(5),{org:i}=l();let n;o[0]!==i.id?(n=r.SELF(i.id),o[0]=i.id,o[1]=n):n=o[1];let e;o[2]!==i.id||o[3]!==n?(e={connectionId:n,orgId:i.id},o[2]=i.id,o[3]=n,o[4]=e):e=o[4];const s=u(e);return m(i.id,"CONNECTIONS",t,s)}function S(){const t=d.c(5),{org:o}=l();let i;t[0]!==o.id?(i=r.SELF(o.id),t[0]=o.id,t[1]=i):i=t[1];let n;t[2]!==o.id||t[3]!==i?(n={connectionId:i,orgId:o.id},t[2]=o.id,t[3]=i,t[4]=n):n=t[4];const e=u(n);return a(o.id,"CONNECTIONS",e)}export{E as a,O as b,S as u};
@@ -1 +1 @@
1
- import{c as m,e as p}from"./index-B9g3IU58.js";import{u as f}from"./virtual-mcp-Mmz1T7Sl.js";import{a as v}from"./use-virtual-mcp-D17yOOVF.js";function y(o){const e=m.c(10);let s;e[0]!==o?(s=o===void 0?{}:o,e[0]=o,e[1]=s):s=e[1];const d=s,{navigateOnCreate:g}=d,a=g===void 0?!1:g,{org:r}=f(),c=p(),t=v();let i;e[2]!==t.create||e[3]!==c||e[4]!==a||e[5]!==r?(i=async()=>{const u=await t.create.mutateAsync({title:"New Agent",description:"Agents let you securely expose integrated tools to the outside world.",status:"active",tool_selection_mode:"inclusion",connections:[]});return a&&c({to:"/$org/agents/$agentId",params:{org:r.slug,agentId:u.id}}),{id:u.id,virtualMcp:u}},e[2]=t.create,e[3]=c,e[4]=a,e[5]=r,e[6]=i):i=e[6];const l=i;let n;return e[7]!==t.create.isPending||e[8]!==l?(n={createVirtualMCP:l,isCreating:t.create.isPending},e[7]=t.create.isPending,e[8]=l,e[9]=n):n=e[9],n}export{y as u};
1
+ import{c as m,e as p}from"./index-BipFUdjC.js";import{u as f}from"./virtual-mcp-BBuKM0Zd.js";import{a as v}from"./use-virtual-mcp-CJ7FNu85.js";function y(o){const e=m.c(10);let s;e[0]!==o?(s=o===void 0?{}:o,e[0]=o,e[1]=s):s=e[1];const d=s,{navigateOnCreate:g}=d,a=g===void 0?!1:g,{org:r}=f(),c=p(),t=v();let i;e[2]!==t.create||e[3]!==c||e[4]!==a||e[5]!==r?(i=async()=>{const u=await t.create.mutateAsync({title:"New Agent",description:"Agents let you securely expose integrated tools to the outside world.",status:"active",tool_selection_mode:"inclusion",connections:[]});return a&&c({to:"/$org/agents/$agentId",params:{org:r.slug,agentId:u.id}}),{id:u.id,virtualMcp:u}},e[2]=t.create,e[3]=c,e[4]=a,e[5]=r,e[6]=i):i=e[6];const l=i;let n;return e[7]!==t.create.isPending||e[8]!==l?(n={createVirtualMCP:l,isCreating:t.create.isPending},e[7]=t.create.isPending,e[8]=l,e[9]=n):n=e[9],n}export{y as u};
@@ -1 +1 @@
1
- import{r as a,c as T}from"./index-B9g3IU58.js";import{u as D}from"./use-mobile-RHn4NyjN.js";const W=({size:l=24,color:e="currentColor",...t})=>a.createElement("svg",{viewBox:"0 0 24 24",width:l,height:l,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},a.createElement("path",{d:"M2.42 12.713c-.136-.215-.204-.323-.242-.49a1.173 1.173 0 0 1 0-.446c.038-.167.106-.274.242-.49C3.546 9.505 6.895 5 12 5s8.455 4.505 9.58 6.287c.137.215.205.323.243.49.029.125.029.322 0 .446-.038.167-.106.274-.242.49C20.455 14.495 17.105 19 12 19c-5.106 0-8.455-4.505-9.58-6.287Z"}),a.createElement("path",{d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"}));W.displayName="Eye";function k(l){const e=`deco-filters-${l}`,[t,c]=a.useState(()=>{try{const o=globalThis.localStorage?.getItem(e);if(o)return JSON.parse(o)}catch(o){console.error("Failed to parse stored filters:",o)}return[]});return[t,o=>{c(o);try{globalThis.localStorage?.setItem(e,JSON.stringify(o))}catch(i){console.error("Failed to save filters:",i)}}]}function C(l){const e=T.c(7),[t,c]=a.useState(l),[s,o]=a.useState(l?"desc":null);let i;e[0]!==s||e[1]!==t?(i=h=>{t!==h?(c(h),o("asc")):s==="asc"?o("desc"):s==="desc"&&(c(void 0),o(null))},e[0]=s,e[1]=t,e[2]=i):i=e[2];const u=i;let r;return e[3]!==u||e[4]!==s||e[5]!==t?(r={sortKey:t,sortDirection:s,handleSort:u},e[3]=u,e[4]=s,e[5]=t,e[6]=r):r=e[6],r}function L(l,e){const t=T.c(12),c=e===void 0?"cards":e,s=D(),o=a.useRef(s),i=l?`deco-view-mode-${l}`:"deco-view-mode";let u;t[0]!==c||t[1]!==i?(u=()=>{const d=globalThis.localStorage?.getItem(i);return d==="cards"||d==="table"?d:c},t[0]=c,t[1]=i,t[2]=u):u=t[2];const[r,h]=a.useState(u);let f;t[3]!==i?(f=d=>{h(d),globalThis.localStorage?.setItem(i,d)},t[3]=i,t[4]=f):f=t[4];const p=f;let S,g;t[5]!==s||t[6]!==r?(S=()=>{!o.current&&s&&r==="table"&&h("cards"),o.current=s},g=[s,r],t[5]=s,t[6]=r,t[7]=S,t[8]=g):(S=t[7],g=t[8]),a.useEffect(S,g);let n;return t[9]!==p||t[10]!==r?(n=[r,p],t[9]=p,t[10]=r,t[11]=n):n=t[11],n}function O(l){const e=T.c(20),{namespace:t,resource:c,defaultSortKey:s,defaultViewMode:o}=l,i=s===void 0?"title":s,u=o===void 0?"table":o,[r,h]=a.useState(""),f=a.useDeferredValue(r),p=`${t}-${c}`,[S,g]=k(p),n=`mesh-${c}-filter-visible-${t}`;let d;e[0]!==n?(d=()=>globalThis.localStorage?.getItem(n)==="true",e[0]=n,e[1]=d):d=e[1];const[m,B]=a.useState(d);let y;e[2]!==n?(y=I=>{B(I),globalThis.localStorage?.setItem(n,String(I))},e[2]=n,e[3]=y):y=e[3];const b=y;let M;e[4]!==m||e[5]!==b?(M=()=>{b(!m)},e[4]=m,e[5]=b,e[6]=M):M=e[6];const w=M,[V,$]=L(`mesh-${c}-${t}`,u),{sortKey:x,sortDirection:F,handleSort:K}=C(i),E=x;let v;return e[7]!==m||e[8]!==S||e[9]!==K||e[10]!==r||e[11]!==f||e[12]!==b||e[13]!==g||e[14]!==$||e[15]!==F||e[16]!==E||e[17]!==w||e[18]!==V?(v={search:r,searchTerm:f,setSearch:h,filters:S,setFilters:g,filterBarVisible:m,setFilterBarVisible:b,toggleFilterBar:w,viewMode:V,setViewMode:$,sortKey:E,sortDirection:F,handleSort:K},e[7]=m,e[8]=S,e[9]=K,e[10]=r,e[11]=f,e[12]=b,e[13]=g,e[14]=$,e[15]=F,e[16]=E,e[17]=w,e[18]=V,e[19]=v):v=e[19],v}export{W as s,O as u};
1
+ import{r as a,c as T}from"./index-BipFUdjC.js";import{u as D}from"./use-mobile-Q27OeJ4I.js";const W=({size:l=24,color:e="currentColor",...t})=>a.createElement("svg",{viewBox:"0 0 24 24",width:l,height:l,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},a.createElement("path",{d:"M2.42 12.713c-.136-.215-.204-.323-.242-.49a1.173 1.173 0 0 1 0-.446c.038-.167.106-.274.242-.49C3.546 9.505 6.895 5 12 5s8.455 4.505 9.58 6.287c.137.215.205.323.243.49.029.125.029.322 0 .446-.038.167-.106.274-.242.49C20.455 14.495 17.105 19 12 19c-5.106 0-8.455-4.505-9.58-6.287Z"}),a.createElement("path",{d:"M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"}));W.displayName="Eye";function k(l){const e=`deco-filters-${l}`,[t,c]=a.useState(()=>{try{const o=globalThis.localStorage?.getItem(e);if(o)return JSON.parse(o)}catch(o){console.error("Failed to parse stored filters:",o)}return[]});return[t,o=>{c(o);try{globalThis.localStorage?.setItem(e,JSON.stringify(o))}catch(i){console.error("Failed to save filters:",i)}}]}function C(l){const e=T.c(7),[t,c]=a.useState(l),[s,o]=a.useState(l?"desc":null);let i;e[0]!==s||e[1]!==t?(i=h=>{t!==h?(c(h),o("asc")):s==="asc"?o("desc"):s==="desc"&&(c(void 0),o(null))},e[0]=s,e[1]=t,e[2]=i):i=e[2];const u=i;let r;return e[3]!==u||e[4]!==s||e[5]!==t?(r={sortKey:t,sortDirection:s,handleSort:u},e[3]=u,e[4]=s,e[5]=t,e[6]=r):r=e[6],r}function L(l,e){const t=T.c(12),c=e===void 0?"cards":e,s=D(),o=a.useRef(s),i=l?`deco-view-mode-${l}`:"deco-view-mode";let u;t[0]!==c||t[1]!==i?(u=()=>{const d=globalThis.localStorage?.getItem(i);return d==="cards"||d==="table"?d:c},t[0]=c,t[1]=i,t[2]=u):u=t[2];const[r,h]=a.useState(u);let f;t[3]!==i?(f=d=>{h(d),globalThis.localStorage?.setItem(i,d)},t[3]=i,t[4]=f):f=t[4];const p=f;let S,g;t[5]!==s||t[6]!==r?(S=()=>{!o.current&&s&&r==="table"&&h("cards"),o.current=s},g=[s,r],t[5]=s,t[6]=r,t[7]=S,t[8]=g):(S=t[7],g=t[8]),a.useEffect(S,g);let n;return t[9]!==p||t[10]!==r?(n=[r,p],t[9]=p,t[10]=r,t[11]=n):n=t[11],n}function O(l){const e=T.c(20),{namespace:t,resource:c,defaultSortKey:s,defaultViewMode:o}=l,i=s===void 0?"title":s,u=o===void 0?"table":o,[r,h]=a.useState(""),f=a.useDeferredValue(r),p=`${t}-${c}`,[S,g]=k(p),n=`mesh-${c}-filter-visible-${t}`;let d;e[0]!==n?(d=()=>globalThis.localStorage?.getItem(n)==="true",e[0]=n,e[1]=d):d=e[1];const[m,B]=a.useState(d);let y;e[2]!==n?(y=I=>{B(I),globalThis.localStorage?.setItem(n,String(I))},e[2]=n,e[3]=y):y=e[3];const b=y;let M;e[4]!==m||e[5]!==b?(M=()=>{b(!m)},e[4]=m,e[5]=b,e[6]=M):M=e[6];const w=M,[V,$]=L(`mesh-${c}-${t}`,u),{sortKey:x,sortDirection:F,handleSort:K}=C(i),E=x;let v;return e[7]!==m||e[8]!==S||e[9]!==K||e[10]!==r||e[11]!==f||e[12]!==b||e[13]!==g||e[14]!==$||e[15]!==F||e[16]!==E||e[17]!==w||e[18]!==V?(v={search:r,searchTerm:f,setSearch:h,filters:S,setFilters:g,filterBarVisible:m,setFilterBarVisible:b,toggleFilterBar:w,viewMode:V,setViewMode:$,sortKey:E,sortDirection:F,handleSort:K},e[7]=m,e[8]=S,e[9]=K,e[10]=r,e[11]=f,e[12]=b,e[13]=g,e[14]=$,e[15]=F,e[16]=E,e[17]=w,e[18]=V,e[19]=v):v=e[19],v}export{W as s,O as u};
@@ -1 +1 @@
1
- import{c as o,i as n,K as u,d as i}from"./index-B9g3IU58.js";import{u as m}from"./virtual-mcp-Mmz1T7Sl.js";function p(){const e=o.c(4),{locator:s}=m();let t;e[0]!==s?(t=u.members(s),e[0]=s,e[1]=t):t=e[1];let r;return e[2]!==t?(r={queryKey:t,queryFn:a},e[2]=t,e[3]=r):r=e[3],n(r)}function a(){return i.organization.listMembers()}export{p as u};
1
+ import{c as o,i as n,K as u,d as i}from"./index-BipFUdjC.js";import{u as m}from"./virtual-mcp-BBuKM0Zd.js";function p(){const e=o.c(4),{locator:s}=m();let t;e[0]!==s?(t=u.members(s),e[0]=s,e[1]=t):t=e[1];let r;return e[2]!==t?(r={queryKey:t,queryFn:a},e[2]=t,e[3]=r):r=e[3],n(r)}function a(){return i.organization.listMembers()}export{p as u};
@@ -1 +1 @@
1
- import{c as m,r}from"./index-B9g3IU58.js";const a=768,o=()=>globalThis.innerWidth<a;function u(){const e=m.c(2),[l,n]=r.useState(o);let t,s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{const i=()=>n(o),c=globalThis.matchMedia(`(max-width: ${a-1}px)`);return c.addEventListener("change",i),n(o),()=>c.removeEventListener("change",i)},s=[],e[0]=t,e[1]=s):(t=e[0],s=e[1]),r.useEffect(t,s),l}export{u};
1
+ import{c as m,r}from"./index-BipFUdjC.js";const a=768,o=()=>globalThis.innerWidth<a;function u(){const e=m.c(2),[l,n]=r.useState(o);let t,s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{const i=()=>n(o),c=globalThis.matchMedia(`(max-width: ${a-1}px)`);return c.addEventListener("change",i),n(o),()=>c.removeEventListener("change",i)},s=[],e[0]=t,e[1]=s):(t=e[0],s=e[1]),r.useEffect(t,s),l}export{u};
@@ -1 +1 @@
1
- import{c as d,i as E,E as O,K as g}from"./index-B9g3IU58.js";import{u as A}from"./useMutation-ByLbENlF.js";import{u as p}from"./virtual-mcp-Mmz1T7Sl.js";import{W as T,u as y}from"./constants-DZTKSPb5.js";function D(e){const t=d.c(13),{org:u}=p();let s;t[0]!==u.id?(s=T.SELF(u.id),t[0]=u.id,t[1]=s):s=t[1];let i;t[2]!==u.id||t[3]!==s?(i={connectionId:s,orgId:u.id},t[2]=u.id,t[3]=s,t[4]=i):i=t[4];const c=y(i);let r;t[5]!==e?(r=g.organizationSettings(e),t[5]=e,t[6]=r):r=t[6];let n;t[7]!==c||t[8]!==e?(n=async()=>{const f=await c.callTool({name:"ORGANIZATION_SETTINGS_GET",arguments:{}}),o=f.structuredContent??f;return o||{organizationId:e,sidebar_items:null,enabled_plugins:null,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()}},t[7]=c,t[8]=e,t[9]=n):n=t[9];let l;t[10]!==r||t[11]!==n?(l={queryKey:r,queryFn:n,staleTime:6e4},t[10]=r,t[11]=n,t[12]=l):l=t[12];const{data:a}=E(l);return a}function F(e){const t=d.c(16),u=O(),{org:s}=p();let i;t[0]!==s.id?(i=T.SELF(s.id),t[0]=s.id,t[1]=i):i=t[1];let c;t[2]!==s.id||t[3]!==i?(c={connectionId:i,orgId:s.id},t[2]=s.id,t[3]=i,t[4]=c):c=t[4];const r=y(c);let n;t[5]!==r||t[6]!==e?(n=async m=>{const S=await r.callTool({name:"ORGANIZATION_SETTINGS_UPDATE",arguments:{organizationId:e,...m}});return S.structuredContent??S},t[5]=r,t[6]=e,t[7]=n):n=t[7];let l;t[8]!==e||t[9]!==u?(l=m=>{u.setQueryData(g.organizationSettings(e),m)},t[8]=e,t[9]=u,t[10]=l):l=t[10];let a;t[11]!==n||t[12]!==l?(a={mutationFn:n,onSuccess:l},t[11]=n,t[12]=l,t[13]=a):a=t[13];const f=A(a);let o;return t[14]!==f?(o={update:f},t[14]=f,t[15]=o):o=t[15],o}export{F as a,D as u};
1
+ import{c as d,i as E,E as O,K as g}from"./index-BipFUdjC.js";import{u as A}from"./useMutation-BJoWTtTW.js";import{u as p}from"./virtual-mcp-BBuKM0Zd.js";import{W as T,u as y}from"./constants-D7TSocv6.js";function D(e){const t=d.c(13),{org:u}=p();let s;t[0]!==u.id?(s=T.SELF(u.id),t[0]=u.id,t[1]=s):s=t[1];let i;t[2]!==u.id||t[3]!==s?(i={connectionId:s,orgId:u.id},t[2]=u.id,t[3]=s,t[4]=i):i=t[4];const c=y(i);let r;t[5]!==e?(r=g.organizationSettings(e),t[5]=e,t[6]=r):r=t[6];let n;t[7]!==c||t[8]!==e?(n=async()=>{const f=await c.callTool({name:"ORGANIZATION_SETTINGS_GET",arguments:{}}),o=f.structuredContent??f;return o||{organizationId:e,sidebar_items:null,enabled_plugins:null,createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()}},t[7]=c,t[8]=e,t[9]=n):n=t[9];let l;t[10]!==r||t[11]!==n?(l={queryKey:r,queryFn:n,staleTime:6e4},t[10]=r,t[11]=n,t[12]=l):l=t[12];const{data:a}=E(l);return a}function F(e){const t=d.c(16),u=O(),{org:s}=p();let i;t[0]!==s.id?(i=T.SELF(s.id),t[0]=s.id,t[1]=i):i=t[1];let c;t[2]!==s.id||t[3]!==i?(c={connectionId:i,orgId:s.id},t[2]=s.id,t[3]=i,t[4]=c):c=t[4];const r=y(c);let n;t[5]!==r||t[6]!==e?(n=async m=>{const S=await r.callTool({name:"ORGANIZATION_SETTINGS_UPDATE",arguments:{organizationId:e,...m}});return S.structuredContent??S},t[5]=r,t[6]=e,t[7]=n):n=t[7];let l;t[8]!==e||t[9]!==u?(l=m=>{u.setQueryData(g.organizationSettings(e),m)},t[8]=e,t[9]=u,t[10]=l):l=t[10];let a;t[11]!==n||t[12]!==l?(a={mutationFn:n,onSuccess:l},t[11]=n,t[12]=l,t[13]=a):a=t[13];const f=A(a);let o;return t[14]!==f?(o={update:f},t[14]=f,t[15]=o):o=t[15],o}export{F as a,D as u};
@@ -1 +1 @@
1
- import{c as d}from"./index-B9g3IU58.js";import{u as l}from"./virtual-mcp-Mmz1T7Sl.js";import{a as C,b as f,c as m}from"./use-collections-CvkTm_6U.js";import{W as r,u}from"./constants-DZTKSPb5.js";function V(o){const i=d.c(7);let t;i[0]!==o?(t=o===void 0?{}:o,i[0]=o,i[1]=t):t=i[1];const n=t,{org:e}=l();let s;i[2]!==e.id?(s=r.SELF(e.id),i[2]=e.id,i[3]=s):s=i[3];let c;i[4]!==e.id||i[5]!==s?(c={connectionId:s,orgId:e.id},i[4]=e.id,i[5]=s,i[6]=c):c=i[6];const a=u(c);return C(e.id,"VIRTUAL_MCP",a,n)}function g(o){const i=d.c(5),{org:t}=l();let n;i[0]!==t.id?(n=r.SELF(t.id),i[0]=t.id,i[1]=n):n=i[1];let e;i[2]!==t.id||i[3]!==n?(e={connectionId:n,orgId:t.id},i[2]=t.id,i[3]=n,i[4]=e):e=i[4];const s=u(e);return m(t.id,"VIRTUAL_MCP",o??void 0,s)}function L(){const o=d.c(5),{org:i}=l();let t;o[0]!==i.id?(t=r.SELF(i.id),o[0]=i.id,o[1]=t):t=o[1];let n;o[2]!==i.id||o[3]!==t?(n={connectionId:t,orgId:i.id},o[2]=i.id,o[3]=t,o[4]=n):n=o[4];const e=u(n);return f(i.id,"VIRTUAL_MCP",e)}export{L as a,g as b,V as u};
1
+ import{c as d}from"./index-BipFUdjC.js";import{u as l}from"./virtual-mcp-BBuKM0Zd.js";import{a as C,b as f,c as m}from"./use-collections-BQHGs5iU.js";import{W as r,u}from"./constants-D7TSocv6.js";function V(o){const i=d.c(7);let t;i[0]!==o?(t=o===void 0?{}:o,i[0]=o,i[1]=t):t=i[1];const n=t,{org:e}=l();let s;i[2]!==e.id?(s=r.SELF(e.id),i[2]=e.id,i[3]=s):s=i[3];let c;i[4]!==e.id||i[5]!==s?(c={connectionId:s,orgId:e.id},i[4]=e.id,i[5]=s,i[6]=c):c=i[6];const a=u(c);return C(e.id,"VIRTUAL_MCP",a,n)}function g(o){const i=d.c(5),{org:t}=l();let n;i[0]!==t.id?(n=r.SELF(t.id),i[0]=t.id,i[1]=n):n=i[1];let e;i[2]!==t.id||i[3]!==n?(e={connectionId:n,orgId:t.id},i[2]=t.id,i[3]=n,i[4]=e):e=i[4];const s=u(e);return m(t.id,"VIRTUAL_MCP",o??void 0,s)}function L(){const o=d.c(5),{org:i}=l();let t;o[0]!==i.id?(t=r.SELF(i.id),o[0]=i.id,o[1]=t):t=o[1];let n;o[2]!==i.id||o[3]!==t?(n={connectionId:t,orgId:i.id},o[2]=i.id,o[3]=t,o[4]=n):n=o[4];const e=u(n);return f(i.id,"VIRTUAL_MCP",e)}export{L as a,g as b,V as u};
@@ -1 +1 @@
1
- import{c as p}from"./index-B9g3IU58.js";import{u as S}from"./virtual-mcp-Mmz1T7Sl.js";import{u as L,L as P}from"./localstorage-keys-D1ttI_kB.js";function E(t){const e=p.c(9),{locator:n}=S();let o;e[0]!==n?(o=P.virtualMcpSystemPrompts(n),e[0]=n,e[1]=o):o=e[1];let s;e[2]===Symbol.for("react.memo_cache_sentinel")?(s={},e[2]=s):s=e[2];const[f,l]=L(o,s),a=t?f[t]??"":"";let r;e[3]!==l||e[4]!==t?(r=i=>{t&&l(u=>({...u,[t]:i}))},e[3]=l,e[4]=t,e[5]=r):r=e[5];const c=r;let m;return e[6]!==c||e[7]!==a?(m=[a,c],e[6]=c,e[7]=a,e[8]=m):m=e[8],m}export{E as u};
1
+ import{c as p}from"./index-BipFUdjC.js";import{u as S}from"./virtual-mcp-BBuKM0Zd.js";import{u as L,L as P}from"./localstorage-keys-CqdQQHDa.js";function E(t){const e=p.c(9),{locator:n}=S();let o;e[0]!==n?(o=P.virtualMcpSystemPrompts(n),e[0]=n,e[1]=o):o=e[1];let s;e[2]===Symbol.for("react.memo_cache_sentinel")?(s={},e[2]=s):s=e[2];const[f,l]=L(o,s),a=t?f[t]??"":"";let r;e[3]!==l||e[4]!==t?(r=i=>{t&&l(u=>({...u,[t]:i}))},e[3]=l,e[4]=t,e[5]=r):r=e[5];const c=r;let m;return e[6]!==c||e[7]!==a?(m=[a,c],e[6]=c,e[7]=a,e[8]=m):m=e[8],m}export{E as u};
@@ -0,0 +1 @@
1
+ import{I as u}from"./infiniteQueryObserver-FEDpWaxK.js";import{N as i}from"./index-BipFUdjC.js";function t(e,r){return i(e,u,r)}export{t as u};
@@ -1 +1 @@
1
- import{aH as l,aI as p,aJ as n,aK as d,aL as h,E as b,r as o,aM as m,aN as f}from"./index-B9g3IU58.js";var v=class extends l{#s;#i=void 0;#t;#e;constructor(t,s){super(),this.#s=t,this.setOptions(s),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const s=this.options;this.options=this.#s.defaultMutationOptions(t),p(this.options,s)||this.#s.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#t,observer:this}),s?.mutationKey&&this.options.mutationKey&&n(s.mutationKey)!==n(this.options.mutationKey)?this.reset():this.#t?.state.status==="pending"&&this.#t.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#t?.removeObserver(this)}onMutationUpdate(t){this.#r(),this.#o(t)}getCurrentResult(){return this.#i}reset(){this.#t?.removeObserver(this),this.#t=void 0,this.#r(),this.#o()}mutate(t,s){return this.#e=s,this.#t?.removeObserver(this),this.#t=this.#s.getMutationCache().build(this.#s,this.options),this.#t.addObserver(this),this.#t.execute(t)}#r(){const t=this.#t?.state??d();this.#i={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#o(t){h.batch(()=>{if(this.#e&&this.hasListeners()){const s=this.#i.variables,i=this.#i.context,e={client:this.#s,meta:this.options.meta,mutationKey:this.options.mutationKey};t?.type==="success"?(this.#e.onSuccess?.(t.data,s,i,e),this.#e.onSettled?.(t.data,null,s,i,e)):t?.type==="error"&&(this.#e.onError?.(t.error,s,i,e),this.#e.onSettled?.(void 0,t.error,s,i,e))}this.listeners.forEach(s=>{s(this.#i)})})}};function O(t,s){const i=b(s),[e]=o.useState(()=>new v(i,t));o.useEffect(()=>{e.setOptions(t)},[e,t]);const r=o.useSyncExternalStore(o.useCallback(a=>e.subscribe(h.batchCalls(a)),[e]),()=>e.getCurrentResult(),()=>e.getCurrentResult()),u=o.useCallback((a,c)=>{e.mutate(a,c).catch(m)},[e]);if(r.error&&f(e.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:u,mutateAsync:r.mutate}}export{O as u};
1
+ import{aH as l,aI as p,aJ as n,aK as d,aL as h,E as b,r as o,aM as m,aN as f}from"./index-BipFUdjC.js";var v=class extends l{#s;#i=void 0;#t;#e;constructor(t,s){super(),this.#s=t,this.setOptions(s),this.bindMethods(),this.#r()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const s=this.options;this.options=this.#s.defaultMutationOptions(t),p(this.options,s)||this.#s.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#t,observer:this}),s?.mutationKey&&this.options.mutationKey&&n(s.mutationKey)!==n(this.options.mutationKey)?this.reset():this.#t?.state.status==="pending"&&this.#t.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#t?.removeObserver(this)}onMutationUpdate(t){this.#r(),this.#o(t)}getCurrentResult(){return this.#i}reset(){this.#t?.removeObserver(this),this.#t=void 0,this.#r(),this.#o()}mutate(t,s){return this.#e=s,this.#t?.removeObserver(this),this.#t=this.#s.getMutationCache().build(this.#s,this.options),this.#t.addObserver(this),this.#t.execute(t)}#r(){const t=this.#t?.state??d();this.#i={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#o(t){h.batch(()=>{if(this.#e&&this.hasListeners()){const s=this.#i.variables,i=this.#i.context,e={client:this.#s,meta:this.options.meta,mutationKey:this.options.mutationKey};t?.type==="success"?(this.#e.onSuccess?.(t.data,s,i,e),this.#e.onSettled?.(t.data,null,s,i,e)):t?.type==="error"&&(this.#e.onError?.(t.error,s,i,e),this.#e.onSettled?.(void 0,t.error,s,i,e))}this.listeners.forEach(s=>{s(this.#i)})})}};function O(t,s){const i=b(s),[e]=o.useState(()=>new v(i,t));o.useEffect(()=>{e.setOptions(t)},[e,t]);const r=o.useSyncExternalStore(o.useCallback(a=>e.subscribe(h.batchCalls(a)),[e]),()=>e.getCurrentResult(),()=>e.getCurrentResult()),u=o.useCallback((a,c)=>{e.mutate(a,c).catch(m)},[e]);if(r.error&&f(e.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:u,mutateAsync:r.mutate}}export{O as u};
@@ -0,0 +1 @@
1
+ import{N as u,Q as s}from"./index-BipFUdjC.js";function o(e,r){return u(e,s,r)}export{o as u};
@@ -1 +1 @@
1
- import{r as z,a6 as A,j as c,aa as M,ab as ge,br as h,b0 as he,b1 as X,ai as pe,a_ as be,a$ as me,k as ve,c as Y}from"./index-B9g3IU58.js";import{c as Z}from"./button-CX9BcGIk.js";var ee="Toggle",te=z.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})})}),R="ToggleGroupItem",se=h.forwardRef((t,e)=>{const r=ie(R,t.__scopeToggleGroup),n=Ne(R,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=R;var D=h.forwardRef((t,e)=>{const{__scopeToggleGroup:r,value:n,...a}=t,o=ie(R,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 ke=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=z.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=z.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(ke({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,C=1/y,w="\\s*([+-]?\\d+)\\s*",$="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",p="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Re=/^#([0-9a-f]{3,8})$/,Ce=new RegExp(`^rgb\\(${w},${w},${w}\\)$`),Te=new RegExp(`^rgb\\(${p},${p},${p}\\)$`),je=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:He,formatRgb:B,toString:B});function O(){return this.rgb().formatHex()}function Ee(){return this.rgb().formatHex8()}function He(){return ue(this).formatHsl()}function B(){return this.rgb().formatRgb()}function N(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=Re.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=Ce.exec(t))?new x(e[1],e[2],e[3],1):(e=Te.exec(t))?new x(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=je.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 ze(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?ze(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?C:Math.pow(C,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),T(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=T(this.opacity);return`${t===1?"rgb(":"rgba("}${v(this.r)}, ${v(this.g)}, ${v(this.b)}${t===1?")":`, ${t})`}`}function T(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?C:Math.pow(C,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(j(t>=240?t-240:t+120,a,n),j(t,a,n),j(t<120?t+240:t-120,a,n),this.opacity)},clamp(){return new g(Q(this.h),k(this.s),k(this.l),T(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=T(this.opacity);return`${t===1?"hsl(":"hsla("}${Q(this.h)}, ${k(this.s)*100}%, ${k(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Q(t){return t=(t||0)%360,t<0?t+360:t}function k(t){return Math.max(0,Math.min(1,t||0))}function j(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 H=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_=new RegExp(H.source,"g");function Je(t){return function(){return t}}function Ke(t){return function(e){return t(e)+""}}function Qe(t,e){var r=H.lastIndex=_.lastIndex=0,n,a,o,i=-1,s=[],f=[];for(t=t+"",e=e+"";(n=H.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
+ import{r as z,a6 as A,j as c,aa as M,ab as ge,br as h,b0 as he,b1 as X,ai as pe,a_ as be,a$ as me,k as ve,c as Y}from"./index-BipFUdjC.js";import{c as Z}from"./button-CWaK1hUN.js";var ee="Toggle",te=z.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})})}),R="ToggleGroupItem",se=h.forwardRef((t,e)=>{const r=ie(R,t.__scopeToggleGroup),n=Ne(R,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=R;var D=h.forwardRef((t,e)=>{const{__scopeToggleGroup:r,value:n,...a}=t,o=ie(R,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 ke=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=z.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=z.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(ke({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,C=1/y,w="\\s*([+-]?\\d+)\\s*",$="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",p="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Re=/^#([0-9a-f]{3,8})$/,Ce=new RegExp(`^rgb\\(${w},${w},${w}\\)$`),Te=new RegExp(`^rgb\\(${p},${p},${p}\\)$`),je=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:He,formatRgb:B,toString:B});function O(){return this.rgb().formatHex()}function Ee(){return this.rgb().formatHex8()}function He(){return ue(this).formatHsl()}function B(){return this.rgb().formatRgb()}function N(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=Re.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=Ce.exec(t))?new x(e[1],e[2],e[3],1):(e=Te.exec(t))?new x(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=je.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 ze(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?ze(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?C:Math.pow(C,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),T(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=T(this.opacity);return`${t===1?"rgb(":"rgba("}${v(this.r)}, ${v(this.g)}, ${v(this.b)}${t===1?")":`, ${t})`}`}function T(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?C:Math.pow(C,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(j(t>=240?t-240:t+120,a,n),j(t,a,n),j(t<120?t+240:t-120,a,n),this.opacity)},clamp(){return new g(Q(this.h),k(this.s),k(this.l),T(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=T(this.opacity);return`${t===1?"hsl(":"hsla("}${Q(this.h)}, ${k(this.s)*100}%, ${k(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Q(t){return t=(t||0)%360,t<0?t+360:t}function k(t){return Math.max(0,Math.min(1,t||0))}function j(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 H=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_=new RegExp(H.source,"g");function Je(t){return function(){return t}}function Ke(t){return function(e){return t(e)+""}}function Qe(t,e){var r=H.lastIndex=_.lastIndex=0,n,a,o,i=-1,s=[],f=[];for(t=t+"",e=e+"";(n=H.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 +1 @@
1
- import{c as Y,r as V,j as i}from"./index-B9g3IU58.js";import{c as n}from"./button-CX9BcGIk.js";const Z={sm:{button:"size-7",icon:"size-4"},md:{button:"size-9",icon:"size-5"},lg:{button:"size-12",icon:"size-6"}};function oe(J){const e=Y.c(66),{value:o,onValueChange:l,options:t,size:D,fullWidth:F,className:W}=J,K=D===void 0?"sm":D,w=F===void 0?!1:F,G=V.useRef(null),H=V.useRef(null);let R;e[0]===Symbol.for("react.memo_cache_sentinel")?(R={left:0,width:0,opacity:0},e[0]=R):R=e[0];const[N,O]=V.useState(R);let _;e[1]===Symbol.for("react.memo_cache_sentinel")?(_=S=>{if(!S.current)return;const{offsetLeft:U,offsetWidth:X}=S.current;O({left:U,width:X,opacity:1})},e[1]=_):_=e[1];const Q=_;let C;e[2]!==t[0].value||e[3]!==o?(C=()=>{const S=o===t[0].value?G:H;Q(S)},e[2]=t[0].value,e[3]=o,e[4]=C):C=e[4];let E;e[5]!==t||e[6]!==o?(E=[o,t],e[5]=t,e[6]=o,e[7]=E):E=e[7],V.useEffect(C,E);const s=Z[K];let a;e[8]!==W?(a=n("relative flex gap-0 bg-muted rounded-lg",W),e[8]=W,e[9]=a):a=e[9];let c;e[10]!==l||e[11]!==t[0].value?(c=()=>l(t[0].value),e[10]=l,e[11]=t[0].value,e[12]=c):c=e[12];const $=w?"flex-1 h-12 px-4":s.button,I=!w&&t[0].label?"px-3":"";let r;e[13]!==I||e[14]!==$?(r=n("relative z-10 flex items-center justify-center gap-2 rounded-lg transition-colors [transition-timing-function:var(--ease-out-cubic)] duration-200",$,I),e[13]=I,e[14]=$,e[15]=r):r=e[15];const P=o===t[0].value?"text-foreground":"text-muted-foreground";let u;e[16]!==s.icon||e[17]!==P?(u=n("transition-colors ease-out duration-200 flex items-center justify-center [&>svg]:size-[1em]",s.icon,P),e[16]=s.icon,e[17]=P,e[18]=u):u=e[18];let f;e[19]!==t[0].icon||e[20]!==u?(f=i.jsx("span",{className:u,children:t[0].icon}),e[19]=t[0].icon,e[20]=u,e[21]=f):f=e[21];let d;e[22]!==t[0].label||e[23]!==t[0].value||e[24]!==o?(d=t[0].label&&i.jsx("span",{className:n("text-xs transition-colors ease-out duration-200 whitespace-nowrap",o===t[0].value?"text-foreground":"text-muted-foreground"),children:t[0].label}),e[22]=t[0].label,e[23]=t[0].value,e[24]=o,e[25]=d):d=e[25];let m;e[26]!==r||e[27]!==f||e[28]!==d||e[29]!==c?(m=i.jsxs("button",{ref:G,type:"button",onClick:c,className:r,children:[f,d]}),e[26]=r,e[27]=f,e[28]=d,e[29]=c,e[30]=m):m=e[30];let x;e[31]!==l||e[32]!==t[1].value?(x=()=>l(t[1].value),e[31]=l,e[32]=t[1].value,e[33]=x):x=e[33];const L=w?"flex-1 h-12 px-4":s.button,M=!w&&t[1].label?"px-3":"";let p;e[34]!==L||e[35]!==M?(p=n("relative z-10 flex items-center justify-center gap-2 rounded-lg transition-colors [transition-timing-function:var(--ease-out-cubic)] duration-200",L,M),e[34]=L,e[35]=M,e[36]=p):p=e[36];const T=o===t[1].value?"text-foreground":"text-muted-foreground";let b;e[37]!==s.icon||e[38]!==T?(b=n("transition-colors ease-out duration-200 flex items-center justify-center [&>svg]:size-[1em]",s.icon,T),e[37]=s.icon,e[38]=T,e[39]=b):b=e[39];let v;e[40]!==t[1].icon||e[41]!==b?(v=i.jsx("span",{className:b,children:t[1].icon}),e[40]=t[1].icon,e[41]=b,e[42]=v):v=e[42];let g;e[43]!==t[1].label||e[44]!==t[1].value||e[45]!==o?(g=t[1].label&&i.jsx("span",{className:n("text-xs transition-colors ease-out duration-200 whitespace-nowrap",o===t[1].value?"text-foreground":"text-muted-foreground"),children:t[1].label}),e[43]=t[1].label,e[44]=t[1].value,e[45]=o,e[46]=g):g=e[46];let h;e[47]!==x||e[48]!==p||e[49]!==v||e[50]!==g?(h=i.jsxs("button",{ref:H,type:"button",onClick:x,className:p,children:[v,g]}),e[47]=x,e[48]=p,e[49]=v,e[50]=g,e[51]=h):h=e[51];const q=w?"h-12":s.button;let y;e[52]!==q?(y=n("absolute z-0 bg-background rounded-lg border-shadow transition-all [transition-timing-function:var(--ease-out-cubic)] duration-200",q),e[52]=q,e[53]=y):y=e[53];const A=`${N.left}px`,B=`${N.width}px`;let j;e[54]!==N.opacity||e[55]!==A||e[56]!==B?(j={left:A,width:B,opacity:N.opacity},e[54]=N.opacity,e[55]=A,e[56]=B,e[57]=j):j=e[57];let z;e[58]!==y||e[59]!==j?(z=i.jsx("div",{className:y,style:j}),e[58]=y,e[59]=j,e[60]=z):z=e[60];let k;return e[61]!==m||e[62]!==h||e[63]!==z||e[64]!==a?(k=i.jsxs("div",{className:a,children:[m,h,z]}),e[61]=m,e[62]=h,e[63]=z,e[64]=a,e[65]=k):k=e[65],k}export{oe as V};
1
+ import{c as Y,r as V,j as i}from"./index-BipFUdjC.js";import{c as n}from"./button-CWaK1hUN.js";const Z={sm:{button:"size-7",icon:"size-4"},md:{button:"size-9",icon:"size-5"},lg:{button:"size-12",icon:"size-6"}};function oe(J){const e=Y.c(66),{value:o,onValueChange:l,options:t,size:D,fullWidth:F,className:W}=J,K=D===void 0?"sm":D,w=F===void 0?!1:F,G=V.useRef(null),H=V.useRef(null);let R;e[0]===Symbol.for("react.memo_cache_sentinel")?(R={left:0,width:0,opacity:0},e[0]=R):R=e[0];const[N,O]=V.useState(R);let _;e[1]===Symbol.for("react.memo_cache_sentinel")?(_=S=>{if(!S.current)return;const{offsetLeft:U,offsetWidth:X}=S.current;O({left:U,width:X,opacity:1})},e[1]=_):_=e[1];const Q=_;let C;e[2]!==t[0].value||e[3]!==o?(C=()=>{const S=o===t[0].value?G:H;Q(S)},e[2]=t[0].value,e[3]=o,e[4]=C):C=e[4];let E;e[5]!==t||e[6]!==o?(E=[o,t],e[5]=t,e[6]=o,e[7]=E):E=e[7],V.useEffect(C,E);const s=Z[K];let a;e[8]!==W?(a=n("relative flex gap-0 bg-muted rounded-lg",W),e[8]=W,e[9]=a):a=e[9];let c;e[10]!==l||e[11]!==t[0].value?(c=()=>l(t[0].value),e[10]=l,e[11]=t[0].value,e[12]=c):c=e[12];const $=w?"flex-1 h-12 px-4":s.button,I=!w&&t[0].label?"px-3":"";let r;e[13]!==I||e[14]!==$?(r=n("relative z-10 flex items-center justify-center gap-2 rounded-lg transition-colors [transition-timing-function:var(--ease-out-cubic)] duration-200",$,I),e[13]=I,e[14]=$,e[15]=r):r=e[15];const P=o===t[0].value?"text-foreground":"text-muted-foreground";let u;e[16]!==s.icon||e[17]!==P?(u=n("transition-colors ease-out duration-200 flex items-center justify-center [&>svg]:size-[1em]",s.icon,P),e[16]=s.icon,e[17]=P,e[18]=u):u=e[18];let f;e[19]!==t[0].icon||e[20]!==u?(f=i.jsx("span",{className:u,children:t[0].icon}),e[19]=t[0].icon,e[20]=u,e[21]=f):f=e[21];let d;e[22]!==t[0].label||e[23]!==t[0].value||e[24]!==o?(d=t[0].label&&i.jsx("span",{className:n("text-xs transition-colors ease-out duration-200 whitespace-nowrap",o===t[0].value?"text-foreground":"text-muted-foreground"),children:t[0].label}),e[22]=t[0].label,e[23]=t[0].value,e[24]=o,e[25]=d):d=e[25];let m;e[26]!==r||e[27]!==f||e[28]!==d||e[29]!==c?(m=i.jsxs("button",{ref:G,type:"button",onClick:c,className:r,children:[f,d]}),e[26]=r,e[27]=f,e[28]=d,e[29]=c,e[30]=m):m=e[30];let x;e[31]!==l||e[32]!==t[1].value?(x=()=>l(t[1].value),e[31]=l,e[32]=t[1].value,e[33]=x):x=e[33];const L=w?"flex-1 h-12 px-4":s.button,M=!w&&t[1].label?"px-3":"";let p;e[34]!==L||e[35]!==M?(p=n("relative z-10 flex items-center justify-center gap-2 rounded-lg transition-colors [transition-timing-function:var(--ease-out-cubic)] duration-200",L,M),e[34]=L,e[35]=M,e[36]=p):p=e[36];const T=o===t[1].value?"text-foreground":"text-muted-foreground";let b;e[37]!==s.icon||e[38]!==T?(b=n("transition-colors ease-out duration-200 flex items-center justify-center [&>svg]:size-[1em]",s.icon,T),e[37]=s.icon,e[38]=T,e[39]=b):b=e[39];let v;e[40]!==t[1].icon||e[41]!==b?(v=i.jsx("span",{className:b,children:t[1].icon}),e[40]=t[1].icon,e[41]=b,e[42]=v):v=e[42];let g;e[43]!==t[1].label||e[44]!==t[1].value||e[45]!==o?(g=t[1].label&&i.jsx("span",{className:n("text-xs transition-colors ease-out duration-200 whitespace-nowrap",o===t[1].value?"text-foreground":"text-muted-foreground"),children:t[1].label}),e[43]=t[1].label,e[44]=t[1].value,e[45]=o,e[46]=g):g=e[46];let h;e[47]!==x||e[48]!==p||e[49]!==v||e[50]!==g?(h=i.jsxs("button",{ref:H,type:"button",onClick:x,className:p,children:[v,g]}),e[47]=x,e[48]=p,e[49]=v,e[50]=g,e[51]=h):h=e[51];const q=w?"h-12":s.button;let y;e[52]!==q?(y=n("absolute z-0 bg-background rounded-lg border-shadow transition-all [transition-timing-function:var(--ease-out-cubic)] duration-200",q),e[52]=q,e[53]=y):y=e[53];const A=`${N.left}px`,B=`${N.width}px`;let j;e[54]!==N.opacity||e[55]!==A||e[56]!==B?(j={left:A,width:B,opacity:N.opacity},e[54]=N.opacity,e[55]=A,e[56]=B,e[57]=j):j=e[57];let z;e[58]!==y||e[59]!==j?(z=i.jsx("div",{className:y,style:j}),e[58]=y,e[59]=j,e[60]=z):z=e[60];let k;return e[61]!==m||e[62]!==h||e[63]!==z||e[64]!==a?(k=i.jsxs("div",{className:a,children:[m,h,z]}),e[61]=m,e[62]=h,e[63]=z,e[64]=a,e[65]=k):k=e[65],k}export{oe as V};
@@ -1 +1 @@
1
- import{r as g,c as x,j as S,o as i,_ as c,h as o,s as e,a3 as a,a4 as b,a5 as P}from"./index-B9g3IU58.js";const f="org-admin",w={from({org:n,project:t}){if(n?.includes("/")||t.includes("/"))throw new Error("Org or project cannot contain slashes");return`${n}/${t}`},parse(n){n.startsWith("/")&&(n=n.slice(1));const[t,l]=n.split("/");if(!t||!l)throw new Error("Invalid locator");return{org:t,project:l}},isOrgAdminProject(n){return n.split("/")[1]===f},adminProject(n){return`${n}/${f}`}},C=g.createContext(void 0),M=()=>{const n=g.useContext(C);if(!n)throw new Error("useProjectContext must be used within a ProjectContextProvider");return n},j=n=>{const t=x.c(10),{children:l,org:r,project:s}=n;let d;t[0]!==r.slug||t[1]!==s.slug?(d=w.from({org:r.slug,project:s.slug}),t[0]=r.slug,t[1]=s.slug,t[2]=d):d=t[2];const m=d;let u;t[3]!==m||t[4]!==r||t[5]!==s?(u={org:r,project:s,locator:m},t[3]=m,t[4]=r,t[5]=s,t[6]=u):u=t[6];const h=u;let p;return t[7]!==l||t[8]!==h?(p=S.jsx(C.Provider,{value:h,children:l}),t[7]=l,t[8]=h,t[9]=p):p=t[9],p},I=i({authorizationEndpoint:e().url(),tokenEndpoint:e().url(),introspectionEndpoint:e().url().optional(),clientId:e(),clientSecret:e().optional(),scopes:o(e()),grantType:c(["authorization_code","client_credentials"])}),T=i({name:e(),description:e().optional(),inputSchema:a(e(),b()),outputSchema:a(e(),b()).optional()}),D=i({headers:a(e(),e()).optional()}),U=i({command:e().describe("Command to run (e.g., 'npx', 'node')"),args:o(e()).optional().describe("Command arguments"),cwd:e().optional().describe("Working directory"),envVars:a(e(),e()).optional().describe("Environment variables (encrypted in storage)")}),v=i({id:e().describe("Unique identifier for the connection"),title:e().describe("Human-readable name for the connection"),created_at:e().describe("When the connection was created"),updated_at:e().describe("When the connection was last updated"),created_by:e().describe("User ID who created the connection"),updated_by:e().optional().describe("User ID who last updated the connection"),organization_id:e().describe("Organization ID this connection belongs to"),description:e().nullable().describe("Description of the connection"),icon:e().nullable().describe("Icon URL for the connection"),app_name:e().nullable().describe("Associated app name"),app_id:e().nullable().describe("Associated app ID"),connection_type:c(["HTTP","SSE","Websocket","STDIO","VIRTUAL"]).describe("Type of connection"),connection_url:e().nullable().describe("URL for HTTP/SSE/WebSocket connections. virtual://$id for VIRTUAL. Null for STDIO."),connection_token:e().nullable().describe("Authentication token (for HTTP connections)"),connection_headers:P([U,D]).nullable().describe("Connection parameters. HTTP: { headers }. STDIO: { command, args, cwd, envVars }"),oauth_config:I.nullable().describe("OAuth configuration"),configuration_state:a(e(),b()).nullable().describe("Configuration state (decrypted)"),configuration_scopes:o(e()).nullable().optional().describe("Configuration scopes"),metadata:a(e(),b()).nullable().describe("Additional metadata (includes repository info)"),tools:o(T).nullable().describe("Discovered tools from MCP"),bindings:o(e()).nullable().describe("Detected bindings"),status:c(["active","inactive","error"]).describe("Current status")});v.omit({created_at:!0,updated_at:!0,created_by:!0,updated_by:!0,organization_id:!0,tools:!0,bindings:!0,status:!0}).partial({id:!0,description:!0,icon:!0,app_name:!0,app_id:!0,connection_url:!0,connection_token:!0,connection_headers:!0,oauth_config:!0,configuration_state:!0,configuration_scopes:!0,metadata:!0});v.partial();function O(n){return n!=null&&"command"in n}function R(n){return!n||!n.startsWith("virtual://")?null:n.replace("virtual://","")}const _=c(["inclusion","exclusion"]).describe("Tool selection mode: 'inclusion' = include selected (default), 'exclusion' = exclude selected"),y=i({connection_id:e().describe("Connection ID"),selected_tools:o(e()).nullable().describe("Selected tool names. With 'inclusion' mode: null = all tools included. With 'exclusion' mode: null = entire connection excluded"),selected_resources:o(e()).nullable().describe("Selected resource URIs or patterns. Supports * and ** wildcards for pattern matching. With 'inclusion' mode: null = all resources included."),selected_prompts:o(e()).nullable().describe("Selected prompt names. With 'inclusion' mode: null = all prompts included. With 'exclusion' mode: null = entire connection excluded.")}),W=i({id:e().describe("Unique identifier for the virtual MCP"),title:e().describe("Human-readable name for the virtual MCP"),description:e().nullable().describe("Description of the virtual MCP"),icon:e().nullable().optional().describe("Icon URL for the virtual MCP"),created_at:e().describe("When the virtual MCP was created"),updated_at:e().describe("When the virtual MCP was last updated"),created_by:e().describe("User ID who created the virtual MCP"),updated_by:e().optional().describe("User ID who last updated the virtual MCP"),organization_id:e().describe("Organization ID this virtual MCP belongs to"),tool_selection_mode:_.describe("Tool selection mode: 'inclusion' = include selected, 'exclusion' = exclude selected"),status:c(["active","inactive"]).describe("Current status"),connections:o(y).describe("Connections with their selected tools (behavior depends on tool_selection_mode)")});i({title:e().min(1).max(255).describe("Name for the virtual MCP"),description:e().nullable().optional().describe("Optional description"),tool_selection_mode:_.optional().default("inclusion").describe("Tool selection mode (defaults to 'inclusion')"),icon:e().nullable().optional().describe("Optional icon URL"),status:c(["active","inactive"]).optional().default("active").describe("Initial status"),connections:o(i({connection_id:e().describe("Connection ID"),selected_tools:o(e()).nullable().optional().describe("Selected tool names (null/undefined = all tools or full exclusion)"),selected_resources:o(e()).nullable().optional().describe("Selected resource URIs or patterns with * and ** wildcards (null/undefined = all resources)"),selected_prompts:o(e()).nullable().optional().describe("Selected prompt names (null/undefined = all prompts or full exclusion)")})).describe("Connections to include/exclude (can be empty for exclusion mode)")});i({title:e().min(1).max(255).optional().describe("New name"),description:e().nullable().optional().describe("New description (null to clear)"),tool_selection_mode:_.optional().describe("New tool selection mode"),icon:e().nullable().optional().describe("New icon URL (null to clear)"),status:c(["active","inactive"]).optional().describe("New status"),connections:o(i({connection_id:e().describe("Connection ID"),selected_tools:o(e()).nullable().optional().describe("Selected tool names (null/undefined = all tools or full exclusion)"),selected_resources:o(e()).nullable().optional().describe("Selected resource URIs or patterns with * and ** wildcards (null/undefined = all resources)"),selected_prompts:o(e()).nullable().optional().describe("Selected prompt names (null/undefined = all prompts or full exclusion)")})).optional().describe("New connections (replaces existing)")});export{v as C,w as L,f as O,j as P,W as V,O as i,R as p,M as u};
1
+ import{r as g,c as x,j as S,o as i,_ as c,h as o,s as e,a3 as a,a4 as b,a5 as P}from"./index-BipFUdjC.js";const f="org-admin",w={from({org:n,project:t}){if(n?.includes("/")||t.includes("/"))throw new Error("Org or project cannot contain slashes");return`${n}/${t}`},parse(n){n.startsWith("/")&&(n=n.slice(1));const[t,l]=n.split("/");if(!t||!l)throw new Error("Invalid locator");return{org:t,project:l}},isOrgAdminProject(n){return n.split("/")[1]===f},adminProject(n){return`${n}/${f}`}},C=g.createContext(void 0),M=()=>{const n=g.useContext(C);if(!n)throw new Error("useProjectContext must be used within a ProjectContextProvider");return n},j=n=>{const t=x.c(10),{children:l,org:r,project:s}=n;let d;t[0]!==r.slug||t[1]!==s.slug?(d=w.from({org:r.slug,project:s.slug}),t[0]=r.slug,t[1]=s.slug,t[2]=d):d=t[2];const m=d;let u;t[3]!==m||t[4]!==r||t[5]!==s?(u={org:r,project:s,locator:m},t[3]=m,t[4]=r,t[5]=s,t[6]=u):u=t[6];const h=u;let p;return t[7]!==l||t[8]!==h?(p=S.jsx(C.Provider,{value:h,children:l}),t[7]=l,t[8]=h,t[9]=p):p=t[9],p},I=i({authorizationEndpoint:e().url(),tokenEndpoint:e().url(),introspectionEndpoint:e().url().optional(),clientId:e(),clientSecret:e().optional(),scopes:o(e()),grantType:c(["authorization_code","client_credentials"])}),T=i({name:e(),description:e().optional(),inputSchema:a(e(),b()),outputSchema:a(e(),b()).optional()}),D=i({headers:a(e(),e()).optional()}),U=i({command:e().describe("Command to run (e.g., 'npx', 'node')"),args:o(e()).optional().describe("Command arguments"),cwd:e().optional().describe("Working directory"),envVars:a(e(),e()).optional().describe("Environment variables (encrypted in storage)")}),v=i({id:e().describe("Unique identifier for the connection"),title:e().describe("Human-readable name for the connection"),created_at:e().describe("When the connection was created"),updated_at:e().describe("When the connection was last updated"),created_by:e().describe("User ID who created the connection"),updated_by:e().optional().describe("User ID who last updated the connection"),organization_id:e().describe("Organization ID this connection belongs to"),description:e().nullable().describe("Description of the connection"),icon:e().nullable().describe("Icon URL for the connection"),app_name:e().nullable().describe("Associated app name"),app_id:e().nullable().describe("Associated app ID"),connection_type:c(["HTTP","SSE","Websocket","STDIO","VIRTUAL"]).describe("Type of connection"),connection_url:e().nullable().describe("URL for HTTP/SSE/WebSocket connections. virtual://$id for VIRTUAL. Null for STDIO."),connection_token:e().nullable().describe("Authentication token (for HTTP connections)"),connection_headers:P([U,D]).nullable().describe("Connection parameters. HTTP: { headers }. STDIO: { command, args, cwd, envVars }"),oauth_config:I.nullable().describe("OAuth configuration"),configuration_state:a(e(),b()).nullable().describe("Configuration state (decrypted)"),configuration_scopes:o(e()).nullable().optional().describe("Configuration scopes"),metadata:a(e(),b()).nullable().describe("Additional metadata (includes repository info)"),tools:o(T).nullable().describe("Discovered tools from MCP"),bindings:o(e()).nullable().describe("Detected bindings"),status:c(["active","inactive","error"]).describe("Current status")});v.omit({created_at:!0,updated_at:!0,created_by:!0,updated_by:!0,organization_id:!0,tools:!0,bindings:!0,status:!0}).partial({id:!0,description:!0,icon:!0,app_name:!0,app_id:!0,connection_url:!0,connection_token:!0,connection_headers:!0,oauth_config:!0,configuration_state:!0,configuration_scopes:!0,metadata:!0});v.partial();function O(n){return n!=null&&"command"in n}function R(n){return!n||!n.startsWith("virtual://")?null:n.replace("virtual://","")}const _=c(["inclusion","exclusion"]).describe("Tool selection mode: 'inclusion' = include selected (default), 'exclusion' = exclude selected"),y=i({connection_id:e().describe("Connection ID"),selected_tools:o(e()).nullable().describe("Selected tool names. With 'inclusion' mode: null = all tools included. With 'exclusion' mode: null = entire connection excluded"),selected_resources:o(e()).nullable().describe("Selected resource URIs or patterns. Supports * and ** wildcards for pattern matching. With 'inclusion' mode: null = all resources included."),selected_prompts:o(e()).nullable().describe("Selected prompt names. With 'inclusion' mode: null = all prompts included. With 'exclusion' mode: null = entire connection excluded.")}),W=i({id:e().describe("Unique identifier for the virtual MCP"),title:e().describe("Human-readable name for the virtual MCP"),description:e().nullable().describe("Description of the virtual MCP"),icon:e().nullable().optional().describe("Icon URL for the virtual MCP"),created_at:e().describe("When the virtual MCP was created"),updated_at:e().describe("When the virtual MCP was last updated"),created_by:e().describe("User ID who created the virtual MCP"),updated_by:e().optional().describe("User ID who last updated the virtual MCP"),organization_id:e().describe("Organization ID this virtual MCP belongs to"),tool_selection_mode:_.describe("Tool selection mode: 'inclusion' = include selected, 'exclusion' = exclude selected"),status:c(["active","inactive"]).describe("Current status"),connections:o(y).describe("Connections with their selected tools (behavior depends on tool_selection_mode)")});i({title:e().min(1).max(255).describe("Name for the virtual MCP"),description:e().nullable().optional().describe("Optional description"),tool_selection_mode:_.optional().default("inclusion").describe("Tool selection mode (defaults to 'inclusion')"),icon:e().nullable().optional().describe("Optional icon URL"),status:c(["active","inactive"]).optional().default("active").describe("Initial status"),connections:o(i({connection_id:e().describe("Connection ID"),selected_tools:o(e()).nullable().optional().describe("Selected tool names (null/undefined = all tools or full exclusion)"),selected_resources:o(e()).nullable().optional().describe("Selected resource URIs or patterns with * and ** wildcards (null/undefined = all resources)"),selected_prompts:o(e()).nullable().optional().describe("Selected prompt names (null/undefined = all prompts or full exclusion)")})).describe("Connections to include/exclude (can be empty for exclusion mode)")});i({title:e().min(1).max(255).optional().describe("New name"),description:e().nullable().optional().describe("New description (null to clear)"),tool_selection_mode:_.optional().describe("New tool selection mode"),icon:e().nullable().optional().describe("New icon URL (null to clear)"),status:c(["active","inactive"]).optional().describe("New status"),connections:o(i({connection_id:e().describe("Connection ID"),selected_tools:o(e()).nullable().optional().describe("Selected tool names (null/undefined = all tools or full exclusion)"),selected_resources:o(e()).nullable().optional().describe("Selected resource URIs or patterns with * and ** wildcards (null/undefined = all resources)"),selected_prompts:o(e()).nullable().optional().describe("Selected prompt names (null/undefined = all prompts or full exclusion)")})).optional().describe("New connections (replaces existing)")});export{v as C,w as L,f as O,j as P,W as V,O as i,R as p,M as u};
@@ -1 +1 @@
1
- import{d as L,e as P,r as v,j as e,c as k}from"./index-B9g3IU58.js";import{u as B}from"./virtual-mcp-Mmz1T7Sl.js";import{g as _}from"./constants-DZTKSPb5.js";import{C as R}from"./collection-tab-Dx4a2de4.js";import{u as z,a as A}from"./use-connection-D8u2E4QD.js";import{B as y}from"./button-CX9BcGIk.js";import{E as F}from"./empty-state-K3SjQCVt.js";import{C as M}from"./collection-header-DdM-1rXZ.js";import{a as O,b as H}from"./use-binding-C219fPLm.js";import{i as T}from"./Loading01-Bm4yV2Kc.js";import"./generate-id-Dyweu44Y.js";import"./collection-display-button-BqEBXGbV.js";import"./dropdown-menu-BOgD5B6g.js";import"./Grid01-B6p7u4lV.js";import"./ArrowUp-6Vw9g-kK.js";import"./Check-CSwEsqta.js";import"./List-BNtbfVCR.js";import"./tooltip-BQbbKnxv.js";import"./view-mode-toggle-DgsbED3E.js";import"./collection-search-D2zepp45.js";import"./SearchMd-BHAg8E82.js";import"./input-D7AeKLG6.js";import"./card-BDtQbN4Z.js";import"./Copy01-D3IzDjkZ.js";import"./DotsVertical-D9Rul5KS.js";import"./Edit01-lX0maYnd.js";import"./use-list-state-B9azqHgQ.js";import"./use-mobile-RHn4NyjN.js";import"./Trash01-CdrSpG7k.js";import"./collection-table-wrapper-BRx1U1h_.js";import"./empty-state-DUPw1fh0.js";import"./Inbox01-D2KzPm9_.js";import"./avatar-D8MYCeCO.js";import"./useQuery-DoX2gsGK.js";import"./pin-to-sidebar-button-C6dzy2Sp.js";import"./use-organization-settings-AWdRXyNF.js";import"./useMutation-ByLbENlF.js";import"./use-collections-CvkTm_6U.js";import"./constants-B4VvhBhE.js";import"./alert-dialog-DS_IdQX7.js";import"./Plus-DXX1AA4n.js";import"./layout-CXeFBy5y.js";import"./ArrowLeft-Cgf-RjME.js";import"./binder-DmV70Mg6.js";function V({title:i,description:t,wellKnownMcp:o,imageSrc:n,onConnected:s}){const r=z(),{org:{slug:m}}=B(),{data:h}=L.useSession(),p=P(),[a,N]=v.useState(!1),l=async()=>{if(!(!o||!h?.user?.id)){N(!0);try{const c=await r.create.mutateAsync(o);s?.(c.id),p({to:"/$org/mcps/$connectionId",params:{org:m,connectionId:c.id}})}finally{N(!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=k.c(28),{bindingName:o,collectionName:n,title:s,emptyState:r,wellKnownMcp:m}=i,{org:h}=B(),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),b=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 I;t[10]===Symbol.for("react.memo_cache_sentinel")?(I=e.jsx(T,{size:32,className:"animate-spin text-muted-foreground mb-4"}),t[10]=I):I=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:[I,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]!==b||t[20]!==m?(g=b?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]=b,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 w;return t[25]!==d||t[26]!==x?(w=e.jsxs("div",{className:"h-full flex flex-col overflow-hidden",children:[d,x]}),t[25]=d,t[26]=x,t[27]=w):w=t[27],w}function Rt(){const i=k.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{Rt as default};
1
+ import{d as L,e as P,r as v,j as e,c as k}from"./index-BipFUdjC.js";import{u as B}from"./virtual-mcp-BBuKM0Zd.js";import{g as _}from"./constants-D7TSocv6.js";import{C as R}from"./collection-tab-Cyh1pe9u.js";import{u as z,a as A}from"./use-connection-D03dTvtG.js";import{B as y}from"./button-CWaK1hUN.js";import{E as F}from"./empty-state-CfCSwnz1.js";import{C as M}from"./collection-header-I0z7H0ZC.js";import{a as O,b as H}from"./use-binding-Ba3v4zMi.js";import{i as T}from"./Loading01-mNUVI85L.js";import"./generate-id-Dyweu44Y.js";import"./collection-display-button-DKWP6xRi.js";import"./dropdown-menu-eADXqdeC.js";import"./Grid01-D_y10H_F.js";import"./ArrowUp-07dwm1MA.js";import"./Check-n_KiNdp_.js";import"./List-AGMu6Jg9.js";import"./tooltip-D3Kw0HUb.js";import"./view-mode-toggle-BkNnvYv5.js";import"./collection-search-CP09UmnI.js";import"./SearchMd-BCAxnQkD.js";import"./input-CJlzp_V5.js";import"./card-7SgaoQef.js";import"./Copy01-dSgWMnr9.js";import"./DotsVertical-_ZO_fNF7.js";import"./Edit01-nGCAvXPD.js";import"./use-list-state-B0KtA_q9.js";import"./use-mobile-Q27OeJ4I.js";import"./Trash01-r91jWYrx.js";import"./collection-table-wrapper--qQDqi3a.js";import"./empty-state-zP-KbGlv.js";import"./Inbox01-DYU61nmV.js";import"./avatar-CJ18d1Yr.js";import"./useQuery-CcFgJIAV.js";import"./pin-to-sidebar-button-WVVRk2lw.js";import"./use-organization-settings-CRV4VKdj.js";import"./useMutation-BJoWTtTW.js";import"./use-collections-BQHGs5iU.js";import"./constants-DSSgefWZ.js";import"./alert-dialog-b2qaVWQf.js";import"./Plus-BBofXpHO.js";import"./layout-BHCzoCFv.js";import"./ArrowLeft-hhVT4Kgt.js";import"./binder-BG1MkJXb.js";function V({title:i,description:t,wellKnownMcp:o,imageSrc:n,onConnected:s}){const r=z(),{org:{slug:m}}=B(),{data:h}=L.useSession(),p=P(),[a,N]=v.useState(!1),l=async()=>{if(!(!o||!h?.user?.id)){N(!0);try{const c=await r.create.mutateAsync(o);s?.(c.id),p({to:"/$org/mcps/$connectionId",params:{org:m,connectionId:c.id}})}finally{N(!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=k.c(28),{bindingName:o,collectionName:n,title:s,emptyState:r,wellKnownMcp:m}=i,{org:h}=B(),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),b=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 I;t[10]===Symbol.for("react.memo_cache_sentinel")?(I=e.jsx(T,{size:32,className:"animate-spin text-muted-foreground mb-4"}),t[10]=I):I=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:[I,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]!==b||t[20]!==m?(g=b?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]=b,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 w;return t[25]!==d||t[26]!==x?(w=e.jsxs("div",{className:"h-full flex flex-col overflow-hidden",children:[d,x]}),t[25]=d,t[26]=x,t[27]=w):w=t[27],w}function Rt(){const i=k.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{Rt as default};
@@ -3,7 +3,7 @@
3
3
  <head>
4
4
  <title>MCP Mesh</title>
5
5
  <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
6
- <script type="module" crossorigin src="/assets/index-B9g3IU58.js"></script>
6
+ <script type="module" crossorigin src="/assets/index-BipFUdjC.js"></script>
7
7
  <link rel="stylesheet" crossorigin href="/assets/index-B0qsrDFa.css">
8
8
  </head>
9
9
  <body>