@decocms/mesh 2.59.1 → 2.59.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-fPPcaR5f.js → AlertCircle--GzH2vta.js} +1 -1
- package/dist/client/assets/{ArrowLeft-DT1xTBGU.js → ArrowLeft-DzpTEYvO.js} +1 -1
- package/dist/client/assets/{ArrowUp-CtR259iO.js → ArrowUp-BfBrilbk.js} +1 -1
- package/dist/client/assets/{Check-DU7cpByy.js → Check-CXkamnnr.js} +1 -1
- package/dist/client/assets/{ChevronDown-azWbt7u-.js → ChevronDown-DaqG_J6Z.js} +1 -1
- package/dist/client/assets/{Code01-COCYoPwi.js → Code01-BNQVP8-g.js} +1 -1
- package/dist/client/assets/{Copy01-BS5F7eSr.js → Copy01-CpBgXJFP.js} +1 -1
- package/dist/client/assets/{DotsHorizontal-CGIWHwff.js → DotsHorizontal-BDAFctKq.js} +1 -1
- package/dist/client/assets/{DotsVertical-D0UahMMI.js → DotsVertical-D5MnD2QZ.js} +1 -1
- package/dist/client/assets/{Download01-Drbb93GF.js → Download01-4Tu3o0-K.js} +1 -1
- package/dist/client/assets/{Edit01-Y-NULVv3.js → Edit01-7Ak8JL9W.js} +1 -1
- package/dist/client/assets/{File06-Bkbh_2zg.js → File06-C7QVLRp6.js} +1 -1
- package/dist/client/assets/{FilterLines-CJ9m3X3i.js → FilterLines-UNZ5Kk_X.js} +1 -1
- package/dist/client/assets/{FlipBackward-CBCHYAL0.js → FlipBackward-Cc_OirbM.js} +1 -1
- package/dist/client/assets/{Grid01-g97U8qPw.js → Grid01-C_dMOr-7.js} +1 -1
- package/dist/client/assets/{Home02-DbfcHYft.js → Home02-Cfg1gm8U.js} +1 -1
- package/dist/client/assets/{Image01-Bjd8Adfr.js → Image01-C6IcS9Ip.js} +1 -1
- package/dist/client/assets/{Inbox01-CLqVjnaB.js → Inbox01-D1IW7Je7.js} +1 -1
- package/dist/client/assets/{InfoCircle-DRozFBoN.js → InfoCircle-Dwuc2RiH.js} +1 -1
- package/dist/client/assets/{Key01-DYF-_FxZ.js → Key01-CrwOIsjX.js} +1 -1
- package/dist/client/assets/{LinkExternal01-DlDS1S8C.js → LinkExternal01-yVEf-2cT.js} +1 -1
- package/dist/client/assets/{List-DflJv9FE.js → List-d88_8fTd.js} +1 -1
- package/dist/client/assets/{Loading01-WEA2Z3sB.js → Loading01-Bf56vlFv.js} +1 -1
- package/dist/client/assets/{Lock01-Bd04eNWH.js → Lock01-CQ0bp8OP.js} +1 -1
- package/dist/client/assets/{Pin01-Bi-ERQ-E.js → Pin01-DBKe5RmK.js} +1 -1
- package/dist/client/assets/{Play-Phpxo-Gg.js → Play-l95VP5u9.js} +1 -1
- package/dist/client/assets/{Plus-C51GvXtB.js → Plus-CcqPpwU0.js} +1 -1
- package/dist/client/assets/{SearchMd-C-0AQItY.js → SearchMd-Ns-pswyj.js} +1 -1
- package/dist/client/assets/{Share07-CExAPT_-.js → Share07-B5yrbjwk.js} +1 -1
- package/dist/client/assets/{Terminal-BIPX0F_t.js → Terminal-qZhwvVsv.js} +1 -1
- package/dist/client/assets/{Trash01-DlMEaqpj.js → Trash01-DVYV3BJw.js} +1 -1
- package/dist/client/assets/{Upload01-CUUKYNN3.js → Upload01-CCAaxnrW.js} +1 -1
- package/dist/client/assets/{Users03-CnY0pIWD.js → Users03-CSRHEIl2.js} +1 -1
- package/dist/client/assets/{X-CCyovJoX.js → X-Dz8JZ2ZX.js} +1 -1
- package/dist/client/assets/{XClose-QHHERH-x.js → XClose-BhgPfyG3.js} +1 -1
- package/dist/client/assets/{agent-detail-C7hvmlfv.js → agent-detail-nBBUtMd0.js} +1 -1
- package/dist/client/assets/{agents-v16TW_mQ.js → agents-4MJAHJGV.js} +1 -1
- package/dist/client/assets/{alert-dialog-DXUFHjZG.js → alert-dialog-5t1wq8Xl.js} +1 -1
- package/dist/client/assets/{auth-catchall-BXh0OUyB.js → auth-catchall-CTOFzXVU.js} +1 -1
- package/dist/client/assets/{avatar-BIq-NZMM.js → avatar-Cx4ORVtq.js} +1 -1
- package/dist/client/assets/{badge-Y7JSGKlq.js → badge-DfeUgg96.js} +1 -1
- package/dist/client/assets/{binder-CP43LYqU.js → binder-Dh-m11Sm.js} +1 -1
- package/dist/client/assets/{button-CZtA6e27.js → button-C83AQWC1.js} +1 -1
- package/dist/client/assets/{card-CvWkq_X8.js → card-CbXWWn3M.js} +1 -1
- package/dist/client/assets/{checkbox-DODuulDI.js → checkbox-DcPieRc5.js} +1 -1
- package/dist/client/assets/{circle-alert-DSFyuFJV.js → circle-alert-ChrxIBwd.js} +1 -1
- package/dist/client/assets/{collection-detail-C74ieQgx.js → collection-detail-B_qs3xwg.js} +1 -1
- package/dist/client/assets/{collection-display-button-BVuh0Ujb.js → collection-display-button-DlAEKbje.js} +1 -1
- package/dist/client/assets/{collection-header-ChDPCqnl.js → collection-header-Fc9BtUxQ.js} +1 -1
- package/dist/client/assets/{collection-page-l6wHN3i-.js → collection-page-DvzZtNQd.js} +1 -1
- package/dist/client/assets/{collection-search-BMTwYZEY.js → collection-search-bOTNZP0b.js} +1 -1
- package/dist/client/assets/{collection-tab-pveYZhJB.js → collection-tab-BB_A78nH.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-BmOSh0Ti.js → collection-table-wrapper-Ch8oh2UW.js} +1 -1
- package/dist/client/assets/{connect-BNx3fCnL.js → connect-DYIKCRWy.js} +1 -1
- package/dist/client/assets/{connection-card-OBK79Ok0.js → connection-card-BZU7F7-m.js} +1 -1
- package/dist/client/assets/{connection-detail-CTWJ36af.js → connection-detail-D3-I_W38.js} +1 -1
- package/dist/client/assets/{connections-B7qKl0yx.js → connections-dluTnyJM.js} +1 -1
- package/dist/client/assets/constants-CnfPGmdA.js +1 -0
- package/dist/client/assets/{constants-DTaz4Q6l.js → constants-ytntCGH9.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-wKnCm4tD.js → create-organization-dialog-GjXRxTaj.js} +1 -1
- package/dist/client/assets/{dialog-_hbfKjgR.js → dialog-D_ebnPDF.js} +1 -1
- package/dist/client/assets/{dropdown-menu-Q-xjH7Pn.js → dropdown-menu-CzQCi3DZ.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-BvxSYJx0.js → dynamic-plugin-layout-DrCIvG61.js} +1 -1
- package/dist/client/assets/{empty-state-BZp4ZNND.js → empty-state-Cr5g6Vh9.js} +1 -1
- package/dist/client/assets/{empty-state-DwJP9EeA.js → empty-state-CxA9hap0.js} +1 -1
- package/dist/client/assets/{env-vars-editor-CM58G7UL.js → env-vars-editor-DXJo5cdV.js} +1 -1
- package/dist/client/assets/{error-boundary-TOEZuFH_.js → error-boundary-Dg0Af8BA.js} +1 -1
- package/dist/client/assets/{extract-connection-data-DgTMj_79.js → extract-connection-data-BYPMZtVW.js} +1 -1
- package/dist/client/assets/{file-browser-Bgi-XRAm.js → file-browser-2RP-n1Xp.js} +2 -2
- package/dist/client/assets/{form-DVP4UGQF.js → form-BISYEAnP.js} +1 -1
- package/dist/client/assets/{grid-view-BKbjwXal.js → grid-view-BzgHSliB.js} +1 -1
- package/dist/client/assets/{home-CHThgzq3.js → home-CZ1MSx2E.js} +1 -1
- package/dist/client/assets/{index--8-j2jIW.js → index-B-pYSGnK.js} +1 -1
- package/dist/client/assets/{index-BPDeXK2i.js → index-C8OOnmm1.js} +2 -2
- package/dist/client/assets/{index-DvgT-Ylp.js → index-CIvJ2wFV.js} +1 -1
- package/dist/client/assets/{index-ChSFgM-0.js → index-CmUKmcyS.js} +1 -1
- package/dist/client/assets/{index-q4slkA9o.js → index-HgNYu27A.js} +1 -1
- package/dist/client/assets/{index-Bb8qRjka.js → index-c6ju_hIh.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-CkfPEnDe.js → infiniteQueryObserver-B1N6PF-z.js} +1 -1
- package/dist/client/assets/{input-BH7rcQ6N.js → input-CrR0FEof.js} +1 -1
- package/dist/client/assets/{layout-Bjcx__oq.js → layout-BGZtLEwK.js} +1 -1
- package/dist/client/assets/{localstorage-keys-CQxtmiwn.js → localstorage-keys-N4jrVxvr.js} +1 -1
- package/dist/client/assets/{login-H8mnQ1nn.js → login-BFXWEB6t.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DCAX9rvQ.js → mcp-oauth-BkqLXiLL.js} +1 -1
- package/dist/client/assets/{mcp-server-card-B7eAu89V.js → mcp-server-card-CkDDvd5o.js} +1 -1
- package/dist/client/assets/{mcp-server-detail-BBu255GS.js → mcp-server-detail-CuItqIIY.js} +2 -2
- package/dist/client/assets/{members-DtDB93xu.js → members-C3Nvqq2t.js} +1 -1
- package/dist/client/assets/{monaco-editor-CSEPfDhp.js → monaco-editor-gim9RLZ3.js} +1 -1
- package/dist/client/assets/{monitoring-DrLLpiIk.js → monitoring-AmN2oTrM.js} +1 -1
- package/dist/client/assets/{oauth-callback-B1p8XG7Z.js → oauth-callback-BO8hRY4t.js} +1 -1
- package/dist/client/assets/{page-CCtDo97_.js → page-BcZkyr2a.js} +1 -1
- package/dist/client/assets/{page-CC98dZbM.js → page-D-IBJ4SW.js} +1 -1
- package/dist/client/assets/{pin-to-sidebar-button-BhX11X__.js → pin-to-sidebar-button-DbV8w54G.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-DQiXYx1t.js → plugin-empty-state-Df2LAyPv.js} +1 -1
- package/dist/client/assets/{plugin-header-CBg64TM8.js → plugin-header-e5FObvvx.js} +1 -1
- package/dist/client/assets/{plugins-D1wlWAhy.js → plugins-BOsIh96E.js} +1 -1
- package/dist/client/assets/{popover-DRX_xxtv.js → popover-B2yKs5LA.js} +1 -1
- package/dist/client/assets/{registry-utils-1tI_xdzz.js → registry-utils-DekIcM3F.js} +1 -1
- package/dist/client/assets/{resizable-2WLYZXF8.js → resizable-V4jINWPU.js} +1 -1
- package/dist/client/assets/{resource-tabs--Vf32v1q.js → resource-tabs-BsRvwnyx.js} +1 -1
- package/dist/client/assets/{select-t24zUjd9.js → select-BlFReF6r.js} +1 -1
- package/dist/client/assets/{settings-CrvbtsPm.js → settings-cRTESMAX.js} +1 -1
- package/dist/client/assets/{shell-layout-eRPaowBH.js → shell-layout-BfC0vVyw.js} +1 -1
- package/dist/client/assets/{spinner-DtqP2JJP.js → spinner-CwfYynNt.js} +1 -1
- package/dist/client/assets/{store-invite-DhzcnT_6.js → store-invite-BErtY6PV.js} +1 -1
- package/dist/client/assets/{switch-Bary1URs.js → switch-DjW_2nBx.js} +1 -1
- package/dist/client/assets/{textarea-CS6QXlwX.js → textarea-DRMuRqUv.js} +1 -1
- package/dist/client/assets/{tool-set-selector-Bi3mcGiN.js → tool-set-selector-Btgo2YwH.js} +1 -1
- package/dist/client/assets/{tools-list-DHi6RJds.js → tools-list-DesNUyav.js} +1 -1
- package/dist/client/assets/{tooltip-DZZDyQXc.js → tooltip-aHeHMhKh.js} +1 -1
- package/dist/client/assets/{typewriter-title-Cy3KhZIj.js → typewriter-title-DRU6uRKP.js} +1 -1
- package/dist/client/assets/{use-binding-DA5WksVi.js → use-binding-C2mDgpbB.js} +1 -1
- package/dist/client/assets/{use-collections-B6FnnWjM.js → use-collections-CkAaybvR.js} +1 -1
- package/dist/client/assets/{use-connection-D3KERTW2.js → use-connection-TLrid9RM.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-DTS0bNB1.js → use-create-virtual-mcp-Bi6QQFl1.js} +1 -1
- package/dist/client/assets/{use-list-state-rseoSQyE.js → use-list-state-DuKw_MMV.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-Bg7WZoid.js → use-mcp-prompts-D5tApqEs.js} +1 -1
- package/dist/client/assets/{use-members-DpbK1cBA.js → use-members-g_5Yt7ve.js} +1 -1
- package/dist/client/assets/{use-mobile-CCX94LGD.js → use-mobile-DQ806XzQ.js} +1 -1
- package/dist/client/assets/{use-organization-settings-CrIvplba.js → use-organization-settings-C-IzAdi1.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-BEkx8KQT.js → use-virtual-mcp-C8lLKpyG.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-BUOCgX3w.js +1 -0
- package/dist/client/assets/{useMutation-BMW6ucfs.js → useMutation-C4aXMLv3.js} +1 -1
- package/dist/client/assets/useQuery-DNOH3p7p.js +1 -0
- package/dist/client/assets/{view-mode-toggle-Cxs_NdgM.js → view-mode-toggle-jPeow5hv.js} +1 -1
- package/dist/client/assets/{workflow-CsZCHJ-t.js → workflow-pPSpZECL.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +159 -159
- package/dist/server/migrate.js +141 -141
- package/dist/server/server.js +144 -144
- package/package.json +1 -1
- package/dist/client/assets/constants-CglLP18m.js +0 -1
- package/dist/client/assets/useInfiniteQuery-Dv5zSBcU.js +0 -1
- package/dist/client/assets/useQuery-BytVpPBL.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{I as Me}from"./infiniteQueryObserver-
|
|
1
|
+
import{I as Me}from"./infiniteQueryObserver-B1N6PF-z.js";import{a0 as Pe,bD as Re,r as a,bE as D,j as _,c as Se,bw as te}from"./index-C8OOnmm1.js";import{S as me}from"./spinner-CwfYynNt.js";function Qt(e,t){return Pe({...e,enabled:!0,suspense:!0,throwOnError:Re},Me,t)}const xe=({size:e=24,color:t="currentColor",...r})=>a.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},a.createElement("path",{d:"M12 6v6l4 2m6-2c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z"}));xe.displayName="Clock";function ue(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Te(e){if(Array.isArray(e))return e}function _e(e,t,r){return(t=De(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ie(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,i,u,l=[],c=!0,g=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(O){g=!0,o=O}finally{try{if(!c&&r.return!=null&&(u=r.return(),Object(u)!==u))return}finally{if(g)throw o}}return l}}function Ce(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
2
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ce(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function se(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ce(Object(r),!0).forEach(function(n){_e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ce(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Le(e,t){if(e==null)return{};var r,n,o=Ve(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function Ve(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Ae(e,t){return Te(e)||Ie(e,t)||Ne(e,t)||Ce()}function $e(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function De(e){var t=$e(e,"string");return typeof t=="symbol"?t:t+""}function Ne(e,t){if(e){if(typeof e=="string")return ue(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ue(e,t):void 0}}function ze(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function le(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function fe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?le(Object(r),!0).forEach(function(n){ze(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):le(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ke(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return t.reduceRight(function(o,i){return i(o)},n)}}function k(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var u=arguments.length,l=new Array(u),c=0;c<u;c++)l[c]=arguments[c];return t.apply(r,[].concat(o,l))}}}function Q(e){return{}.toString.call(e).includes("Object")}function Ke(e){return!Object.keys(e).length}function W(e){return typeof e=="function"}function We(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function qe(e,t){return Q(t)||T("changeType"),Object.keys(t).some(function(r){return!We(e,r)})&&T("changeField"),t}function Fe(e){W(e)||T("selectorType")}function Be(e){W(e)||Q(e)||T("handlerType"),Q(e)&&Object.values(e).some(function(t){return!W(t)})&&T("handlersType")}function Ue(e){e||T("initialIsRequired"),Q(e)||T("initialType"),Ke(e)&&T("initialContent")}function Je(e,t){throw new Error(e[t]||e.default)}var He={initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"},T=k(Je)(He),U={changes:qe,selector:Fe,handler:Be,initial:Ue};function Qe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};U.initial(e),U.handler(t);var r={current:e},n=k(Ze)(r,t),o=k(Ye)(r),i=k(U.changes)(e),u=k(Ge)(r);function l(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(O){return O};return U.selector(g),g(r.current)}function c(g){ke(n,o,i,u)(g)}return[l,c]}function Ge(e,t){return W(t)?t(e.current):t}function Ye(e,t){return e.current=fe(fe({},e.current),t),t}function Ze(e,t,r){return W(t)?t(e.current):Object.keys(r).forEach(function(n){var o;return(o=t[n])===null||o===void 0?void 0:o.call(t,e.current[n])}),r}var Xe={create:Qe},et={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs"}};function tt(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return o.length>=e.length?e.apply(this,o):function(){for(var u=arguments.length,l=new Array(u),c=0;c<u;c++)l[c]=arguments[c];return t.apply(r,[].concat(o,l))}}}function rt(e){return{}.toString.call(e).includes("Object")}function nt(e){return e||de("configIsRequired"),rt(e)||de("configType"),e.urls?(it(),{paths:{vs:e.urls.monacoBase}}):e}function it(){console.warn(he.deprecation)}function ot(e,t){throw new Error(e[t]||e.default)}var he={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:`Deprecation warning!
|
|
3
3
|
You are using deprecated way of configuration.
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as g,c as ee,l as Pa,u as tn,j as v,ab as mr,bS as ei,bz as tt,aR as ke,bE as de,bT as kC,Z as IC,a_ as DC,bU as RC,bV as LC,ak as Mn,b9 as m1,al as Sr,at as p1,ao as zo,am as xr,bg as Fr,be as $C,ah as Ud,bb as qC,bc as g1,ba as FC,t as BC,f as zC,K as WC}from"./index-
|
|
1
|
+
import{r as g,c as ee,l as Pa,u as tn,j as v,ab as mr,bS as ei,bz as tt,aR as ke,bE as de,bT as kC,Z as IC,a_ as DC,bU as RC,bV as LC,ak as Mn,b9 as m1,al as Sr,at as p1,ao as zo,am as xr,bg as Fr,be as $C,ah as Ud,bb as qC,bc as g1,ba as FC,t as BC,f as zC,K as WC}from"./index-C8OOnmm1.js";import{C as Hf}from"./collection-header-Fc9BtUxQ.js";import{C as UC}from"./collection-page-DvzZtNQd.js";import{C as KC}from"./collection-search-bOTNZP0b.js";import{I as na,n as Yf,E as y1}from"./empty-state-Cr5g6Vh9.js";import{E as _i}from"./error-boundary-Dg0Af8BA.js";import{B as aa}from"./badge-DfeUgg96.js";import{B as Ne,c as J,b as zv}from"./button-C83AQWC1.js";import{t as Di}from"./ChevronDown-DaqG_J6Z.js";import{i as b1,c as HC}from"./Grid01-C_dMOr-7.js";import{b as Oa,P as Ca,a as ja}from"./popover-B2yKs5LA.js";import{c as Si,T as Pi,a as Oi}from"./tooltip-aHeHMhKh.js";import{i as Fs}from"./Check-CXkamnnr.js";import{a as ti}from"./Copy01-CpBgXJFP.js";import{n as Wv}from"./Download01-4Tu3o0-K.js";import{i as x1}from"./FilterLines-UNZ5Kk_X.js";import{i as YC}from"./Key01-CrwOIsjX.js";import{i as GC,n as VC}from"./Play-l95VP5u9.js";import{M as Uv,s as XC,u as ZC}from"./monaco-editor-gim9RLZ3.js";import{r as QC,_ as En}from"./index-B-pYSGnK.js";import{u as JC}from"./use-members-g_5Yt7ve.js";import{b as Kd}from"./use-connection-TLrid9RM.js";import{a as w1,u as _1}from"./constants-ytntCGH9.js";import{b as S1}from"./use-virtual-mcp-C8lLKpyG.js";import{i as ej}from"./Code01-BNQVP8-g.js";import{s as tj}from"./Plus-CcqPpwU0.js";import{s as rj}from"./Trash01-DVYV3BJw.js";import{I as ra}from"./input-CrR0FEof.js";import{C as Kv}from"./checkbox-DcPieRc5.js";import{i as nj}from"./SearchMd-Ns-pswyj.js";import{e as aj,S as Hv,a as Yv,b as Gv,c as Vv,d as ri}from"./select-BlFReF6r.js";import{T as ij}from"./textarea-DRMuRqUv.js";import{R as oj}from"./resource-tabs-BsRvwnyx.js";import{c as sj}from"./use-collections-CkAaybvR.js";import{t as lj}from"./Users03-CSRHEIl2.js";import"./collection-display-button-DlAEKbje.js";import"./dropdown-menu-CzQCi3DZ.js";import"./ArrowUp-BfBrilbk.js";import"./List-d88_8fTd.js";import"./view-mode-toggle-jPeow5hv.js";import"./Loading01-Bf56vlFv.js";import"./infiniteQueryObserver-B1N6PF-z.js";import"./spinner-CwfYynNt.js";import"./useMutation-C4aXMLv3.js";import"./useQuery-DNOH3p7p.js";const P1=({size:e=24,color:t="currentColor",...r})=>g.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},g.createElement("path",{d:"m15 18-6-6 6-6"}));P1.displayName="ChevronLeft";const O1=({size:e=24,color:t="currentColor",...r})=>g.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},g.createElement("path",{d:"M9.5 15V9m5 6V9m7.5 3c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z"}));O1.displayName="PauseCircle";const C1=({size:e=24,color:t="currentColor",...r})=>g.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},g.createElement("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z"}),g.createElement("path",{d:"M9.5 8.965c0-.477 0-.716.1-.849a.5.5 0 0 1 .364-.199c.166-.012.367.117.769.375l4.72 3.035c.349.224.523.336.583.478a.5.5 0 0 1 0 .39c-.06.142-.234.254-.583.478l-4.72 3.035c-.402.258-.603.387-.769.375a.5.5 0 0 1-.364-.2c-.1-.132-.1-.371-.1-.848v-6.07Z"}));C1.displayName="PlayCircle";const j1=({size:e=24,color:t="currentColor",...r})=>g.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},g.createElement("path",{d:"M4 7c0-.932 0-1.398.152-1.765a2 2 0 0 1 1.083-1.083C5.602 4 6.068 4 7 4h10c.932 0 1.398 0 1.765.152a2 2 0 0 1 1.083 1.083C20 5.602 20 6.068 20 7M9 20h6M12 4v16"}));j1.displayName="Type01";const Gf={maxJsonRenderSize:5e4,pageSize:50,streamingRefetchInterval:3e3};function Dr(e){return e.filter(t=>t.key.trim()).map(t=>{const r=encodeURIComponent(t.key.trim()),n=encodeURIComponent(t.value||"");return`${r}:${t.operator}:${n}`}).join(",")}function uj(e){return e?e.split(",").map(t=>{const[r,n,...a]=t.split(":");return{key:decodeURIComponent(r||""),operator:n||"eq",value:decodeURIComponent(a.join(":")||"")}}):[]}function ni(e){return e.filter(t=>t.key.trim()).map(t=>{switch(t.operator){case"eq":return`${t.key}=${t.value}`;case"contains":return`${t.key}~${t.value}`;case"exists":return`${t.key}?`}}).join(`
|
|
2
2
|
`)}function Xv(e){return e.trim()?e.split(`
|
|
3
3
|
`).map(t=>t.trim()).filter(t=>t.length>0).map(t=>{if(t.endsWith("?"))return{key:t.slice(0,-1),operator:"exists",value:""};if(t.includes("=")){const[r,...n]=t.split("=");return{key:r||"",operator:"eq",value:n.join("=")}}if(t.includes("~")){const[r,...n]=t.split("~");return{key:r||"",operator:"contains",value:n.join("~")}}return{key:t,operator:"exists",value:""}}):[]}function cj(e){const t={},r={},n=[];for(const a of e)if(a.key.trim())switch(a.operator){case"eq":a.value&&(t[a.key]=a.value);break;case"contains":a.value&&(r[a.key]=`%${a.value}%`);break;case"exists":n.push(a.key);break}return{properties:Object.keys(t).length>0?t:void 0,propertyPatterns:Object.keys(r).length>0?r:void 0,propertyKeys:n.length>0?n:void 0}}function Zv(e){if(!e)return{content:"null",isTruncated:!1,originalSize:4};const t=JSON.stringify(e,null,2),r=t.length;return r<=Gf.maxJsonRenderSize?{content:t,isTruncated:!1,originalSize:r}:{content:t.slice(0,Gf.maxJsonRenderSize)+`
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,j as e}from"./index-
|
|
1
|
+
import{r as i,j as e}from"./index-C8OOnmm1.js";import{i as n}from"./Loading01-Bf56vlFv.js";import{h as l}from"./mcp-oauth-BkqLXiLL.js";function h(){const[s,c]=i.useState(null),[r,a]=i.useState(!1);return i.useEffect(()=>{(async()=>{try{const t=await l();if(!t.success){c(t.error||"MCP authentication failed"),setTimeout(()=>{window.close()},3e3);return}a(!0),setTimeout(()=>{window.close()},1500)}catch(t){c(t instanceof Error?t.message:String(t)),setTimeout(()=>{window.close()},3e3)}})()},[]),e.jsx("div",{className:"min-h-screen flex items-center justify-center p-8 bg-background",children:e.jsxs("div",{className:"w-full max-w-md flex flex-col items-center justify-center gap-8",children:[r&&e.jsx("img",{src:"/empty-state-success.svg",alt:"",width:220,height:200,"aria-hidden":"true"}),!r&&!s&&e.jsx("div",{className:"flex items-center justify-center py-4",children:e.jsx(n,{size:32,className:"animate-spin text-primary"})}),s&&e.jsx("img",{src:"/empty-state-error.svg",alt:"",width:220,height:200,"aria-hidden":"true"}),e.jsxs("div",{className:"flex flex-col items-center gap-2 text-center",children:[e.jsx("h2",{className:"text-lg font-medium text-foreground",children:s?"Authentication Failed":r?"Authentication Successful":"Authentication in progress..."}),e.jsx("div",{className:"text-sm text-muted-foreground",children:s?e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"mb-2",children:"An error occurred during authentication:"}),e.jsx("p",{className:"text-destructive",children:s}),e.jsxs("p",{className:"mt-2",children:[e.jsx("br",{}),"This window will close automatically."]})]}):r?e.jsxs("p",{children:["Authentication complete.",e.jsx("br",{}),"This window will close automatically."]}):e.jsx("p",{children:"Processing authentication..."})})]})]})})}export{h as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as G,r as M,u as Z,q as de,K as se,bC as fe,j as s,l as oe,g as ue,bj as xe,aO as ge}from"./index-BPDeXK2i.js";import{C as pe}from"./collection-header-ChDPCqnl.js";import{i as ne}from"./FilterLines-CJ9m3X3i.js";import{n as he}from"./Inbox01-CLqVjnaB.js";import{i as J}from"./Loading01-WEA2Z3sB.js";import{i as ie}from"./SearchMd-C-0AQItY.js";import{u as je}from"./useInfiniteQuery-Dv5zSBcU.js";import{a as ve,f as ye,b as Ne}from"./registry-utils-1tI_xdzz.js";import{u as Ce,f as be,g as Se}from"./constants-DTaz4Q6l.js";import{u as we,a as ae,b as Te}from"./use-connection-D3KERTW2.js";import{s as Ie}from"./slugify-CEUa2lfQ.js";import{C as Re}from"./collection-search-BMTwYZEY.js";import{M as le}from"./mcp-server-card-B7eAu89V.js";import{c as ce,B as Q}from"./button-CZtA6e27.js";import{I as Pe}from"./input-BH7rcQ6N.js";import{b as $e,P as ke,a as ze}from"./popover-DRX_xxtv.js";import{i as Fe}from"./Check-DU7cpByy.js";import{t as Le}from"./ChevronDown-azWbt7u-.js";import{s as Y}from"./XClose-QHHERH-x.js";import{d as Ke,a as Ae,b as Ee,c as De,S as Me}from"./select-t24zUjd9.js";import{s as Be}from"./Plus-C51GvXtB.js";import{E as Oe}from"./empty-state-BZp4ZNND.js";import{u as Ve}from"./use-binding-DA5WksVi.js";import{L as We,u as qe}from"./localstorage-keys-CQxtmiwn.js";import"./collection-display-button-BVuh0Ujb.js";import"./dropdown-menu-Q-xjH7Pn.js";import"./Grid01-g97U8qPw.js";import"./ArrowUp-CtR259iO.js";import"./List-DflJv9FE.js";import"./tooltip-DZZDyQXc.js";import"./view-mode-toggle-Cxs_NdgM.js";import"./infiniteQueryObserver-CkfPEnDe.js";import"./use-collections-B6FnnWjM.js";import"./useMutation-BMW6ucfs.js";import"./useQuery-BytVpPBL.js";import"./Lock01-Bd04eNWH.js";import"./Terminal-BIPX0F_t.js";import"./card-CvWkq_X8.js";import"./github-icon-Dp3wHhYE.js";import"./binder-CP43LYqU.js";function _e(t,e){const l=G.c(4),[o,c]=M.useState(t),r=M.useRef(null),a=M.useRef(!0);let i,d;return l[0]!==e||l[1]!==t?(i=()=>{if(a.current){a.current=!1;return}return r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{c(t)},e),()=>{r.current&&clearTimeout(r.current)}},d=[t,e],l[0]=e,l[1]=t,l[2]=i,l[3]=d):(i=l[2],d=l[3]),M.useEffect(i,d),o}function Ge(t){const e=G.c(14),l=M.useRef(null),o=`scroll-position:${t}`,c=M.useRef(null);let r;e[0]!==o?(r=()=>{l.current&&sessionStorage.setItem(o,String(l.current.scrollTop))},e[0]=o,e[1]=r):r=e[1];const a=r;let i;e[2]!==o?(i=()=>{if(c.current===o)return;const f=sessionStorage.getItem(o);if(f&&l.current){const j=Number.parseInt(f,10);l.current.scrollTop=j}c.current=o},e[2]=o,e[3]=i):i=e[3];const d=i;let y;e[4]!==d||e[5]!==o?(y=()=>{c.current!==o&&d()},e[4]=d,e[5]=o,e[6]=y):y=e[6];const h=y;let n;e[7]!==d||e[8]!==o?(n=f=>{l.current=f,f&&c.current!==o&&requestAnimationFrame(()=>{d()})},e[7]=d,e[8]=o,e[9]=n):n=e[9];const N=n;let u;return e[10]!==h||e[11]!==a||e[12]!==N?(u={scrollRef:N,saveScrollPosition:a,handleScroll:h},e[10]=h,e[11]=a,e[12]=N,e[13]=u):u=e[13],u}const He=24;function Qe(t){const e=G.c(53),{registryId:l,listToolName:o,filtersToolName:c,search:r}=t,{org:a}=Z();let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=[],e[0]=i):i=e[0];const[d,y]=M.useState(i);let h;e[1]===Symbol.for("react.memo_cache_sentinel")?(h=[],e[1]=h):h=e[1];const[n,N]=M.useState(h),u=l||null;let f;e[2]!==a.id||e[3]!==u?(f={connectionId:u,orgId:a.id},e[2]=a.id,e[3]=u,e[4]=f):f=e[4];const j=Ce(f),R=!!c;let C;e[5]!==c||e[6]!==l?(C=se.toolCall(l,c||"no-filters","{}"),e[5]=c,e[6]=l,e[7]=C):C=e[7];let b;e[8]!==j||e[9]!==c?(b=async()=>{if(!c)return{tags:[],categories:[]};const D=await j.callTool({name:c,arguments:{}});return D.structuredContent??D},e[8]=j,e[9]=c,e[10]=b):b=e[10];let k;e[11]!==C||e[12]!==b?(k={queryKey:C,queryFn:b,staleTime:36e5},e[11]=C,e[12]=b,e[13]=k):k=e[13];const{data:P}=de(k);let v,S,T;if(e[14]!==o||e[15]!==l||e[16]!==r||e[17]!==n||e[18]!==d){const D=r?.trim()?{operator:"or",conditions:[{field:["name"],operator:"contains",value:r},{field:["title"],operator:"contains",value:r},{field:["description"],operator:"contains",value:r}]}:void 0;v={limit:He,...d.length>0&&{tags:d},...n.length>0&&{categories:n},...D&&{where:D}},T=je,S=se.toolCall(l,o,JSON.stringify(v)),e[14]=o,e[15]=l,e[16]=r,e[17]=n,e[18]=d,e[19]=v,e[20]=S,e[21]=T}else v=e[19],S=e[20],T=e[21];let I;e[22]!==j||e[23]!==v||e[24]!==o?(I=async D=>{const{pageParam:ee}=D,me=ee?{...v,cursor:ee}:v,te=await j.callTool({name:o,arguments:me});return te.structuredContent??te},e[22]=j,e[23]=v,e[24]=o,e[25]=I):I=e[25];let z;e[26]!==I||e[27]!==S?(z={queryKey:S,queryFn:I,initialPageParam:void 0,getNextPageParam:Ue,staleTime:36e5,placeholderData:fe},e[26]=I,e[27]=S,e[28]=z):z=e[28];const{data:L,fetchNextPage:$,hasNextPage:m,isFetchingNextPage:x,isFetching:g,isLoading:w}=T(z);let F;e:{if(!L?.pages||L.pages.length===0){F=null;break e}const D=L.pages[0];if(typeof D=="object"&&D!==null&&"totalCount"in D&&typeof D.totalCount=="number"){F=D.totalCount;break e}F=null}const p=F,K=L?.pages;let A;e[29]!==K?(A=ve(K),e[29]=K,e[30]=A):A=e[30];const E=A;let O;e[31]!==r||e[32]!==n.length||e[33]!==d.length?(O=d.length>0||n.length>0||!!r?.trim(),e[31]=r,e[32]=n.length,e[33]=d.length,e[34]=O):O=e[34];const V=O,q=g&&!x&&!w&&V;let _;e[35]!==$||e[36]!==m||e[37]!==x?(_=()=>{m&&!x&&$()},e[35]=$,e[36]=m,e[37]=x,e[38]=_):_=e[38];const B=_,W=m??!1,H=R?P?.tags:void 0,X=R?P?.categories:void 0;let U;return e[39]!==V||e[40]!==g||e[41]!==x||e[42]!==q||e[43]!==w||e[44]!==E||e[45]!==B||e[46]!==n||e[47]!==d||e[48]!==W||e[49]!==H||e[50]!==X||e[51]!==p?(U={items:E,totalCount:p,hasMore:W,isLoadingMore:x,isFiltering:q,isInitialLoading:w,isFetching:g,loadMore:B,availableTags:H,availableCategories:X,selectedTags:d,selectedCategories:n,setSelectedTags:y,setSelectedCategories:N,hasActiveFilters:V},e[39]=V,e[40]=g,e[41]=x,e[42]=q,e[43]=w,e[44]=E,e[45]=B,e[46]=n,e[47]=d,e[48]=W,e[49]=H,e[50]=X,e[51]=p,e[52]=U):U=e[52],U}function Ue(t){if(typeof t=="object"&&t!==null){const e=t.nextCursor||t.cursor;if(e)return e}}function Ye(t,e){return[...t].sort((l,o)=>o.count-l.count).slice(0,e)}function re(t){const e=G.c(52),{label:l,items:o,selectedItems:c,onToggle:r,onClear:a}=t,[i,d]=M.useState(""),[y,h]=M.useState(!1);let n,N,u,f,j,R,C,b,k,P,v;if(e[0]!==o||e[1]!==l||e[2]!==r||e[3]!==y||e[4]!==i||e[5]!==c){const $=[...i?o.filter(A=>A.value.toLowerCase().includes(i.toLowerCase())):o].sort(Je);u=c.length,N=$e,k=y,P=h;let m;e[17]!==l?(m=s.jsx("span",{children:l}),e[17]=l,e[18]=m):m=e[18];let x;e[19]!==u?(x=u>0&&s.jsx("span",{className:"ml-1 rounded-full bg-primary text-primary-foreground px-1.5 py-0.5 text-[10px] font-medium",children:u}),e[19]=u,e[20]=x):x=e[20];let g;e[21]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(Le,{size:14,className:"opacity-50"}),e[21]=g):g=e[21],e[22]!==x||e[23]!==m?(v=s.jsx(ke,{asChild:!0,children:s.jsxs(Q,{variant:"outline",size:"sm",className:"h-7 px-3 gap-1.5 text-xs font-normal flex-1",children:[m,x,g]})}),e[22]=x,e[23]=m,e[24]=v):v=e[24],n=ze,R="w-64 p-0",C="start";let w;e[25]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(ie,{size:16,className:"text-muted-foreground shrink-0"}),e[25]=w):w=e[25];let F;e[26]!==l?(F=l.toLowerCase(),e[26]=l,e[27]=F):F=e[27];const p=`Search ${F}...`;let K;e[28]===Symbol.for("react.memo_cache_sentinel")?(K=A=>d(A.target.value),e[28]=K):K=e[28],e[29]!==i||e[30]!==p?(b=s.jsx("div",{className:"shrink-0 w-full border-b border-border h-10",children:s.jsxs("label",{className:"flex items-center gap-2.5 h-10 px-4 cursor-text",children:[w,s.jsx(Pe,{type:"text",placeholder:p,value:i,onChange:K,className:"flex-1 border-0 shadow-none focus-visible:ring-0 px-0 h-full text-sm placeholder:text-muted-foreground/50 bg-transparent"})]})}),e[29]=i,e[30]=p,e[31]=b):b=e[31],f="max-h-64 overflow-y-auto p-1 flex flex-col gap-1",j=$.length===0?s.jsx("div",{className:"px-2 py-4 text-sm text-muted-foreground text-center",children:"No results found"}):$.map(A=>{const E=c.includes(A.value);return s.jsxs("button",{onClick:()=>r(A.value),className:ce("w-full flex items-center justify-between px-2 py-1.5 text-sm rounded cursor-pointer transition-colors",E?"bg-accent/50 text-foreground":"hover:bg-muted text-foreground"),children:[s.jsxs("span",{className:"truncate flex items-center gap-2",children:[E&&s.jsx(Fe,{size:16,className:"text-muted-foreground shrink-0"}),A.value]}),s.jsx("span",{className:"text-xs text-muted-foreground ml-2 shrink-0",children:A.count})]},A.value)}),e[0]=o,e[1]=l,e[2]=r,e[3]=y,e[4]=i,e[5]=c,e[6]=n,e[7]=N,e[8]=u,e[9]=f,e[10]=j,e[11]=R,e[12]=C,e[13]=b,e[14]=k,e[15]=P,e[16]=v}else n=e[6],N=e[7],u=e[8],f=e[9],j=e[10],R=e[11],C=e[12],b=e[13],k=e[14],P=e[15],v=e[16];let S;e[32]!==f||e[33]!==j?(S=s.jsx("div",{className:f,children:j}),e[32]=f,e[33]=j,e[34]=S):S=e[34];let T;e[35]!==l||e[36]!==a||e[37]!==u?(T=u>0&&s.jsx("div",{className:"p-2 border-t border-border",children:s.jsxs(Q,{variant:"ghost",size:"sm",onClick:a,className:"w-full text-xs text-muted-foreground hover:text-foreground",children:["Clear ",l.toLowerCase()]})}),e[35]=l,e[36]=a,e[37]=u,e[38]=T):T=e[38];let I;e[39]!==n||e[40]!==T||e[41]!==R||e[42]!==C||e[43]!==b||e[44]!==S?(I=s.jsxs(n,{className:R,align:C,children:[b,S,T]}),e[39]=n,e[40]=T,e[41]=R,e[42]=C,e[43]=b,e[44]=S,e[45]=I):I=e[45];let z;return e[46]!==N||e[47]!==I||e[48]!==k||e[49]!==P||e[50]!==v?(z=s.jsxs(N,{open:k,onOpenChange:P,children:[v,I]}),e[46]=N,e[47]=I,e[48]=k,e[49]=P,e[50]=v,e[51]=z):z=e[51],z}function Je(t,e){return e.count-t.count}function Ze(t){const e=G.c(67),{availableTags:l,availableCategories:o,selectedTags:c,selectedCategories:r,onTagChange:a,onCategoryChange:i}=t,d=l&&l.length>0||o&&o.length>0,y=c.length>0||r.length>0;if(!d)return null;let h;e[0]!==a||e[1]!==c?(h=m=>{c.includes(m)?a(c.filter(x=>x!==m)):a([...c,m])},e[0]=a,e[1]=c,e[2]=h):h=e[2];const n=h;let N;e[3]!==i||e[4]!==r?(N=m=>{r.includes(m)?i(r.filter(x=>x!==m)):i([...r,m])},e[3]=i,e[4]=r,e[5]=N):N=e[5];const u=N;let f;e[6]!==i||e[7]!==a?(f=()=>{a([]),i([])},e[6]=i,e[7]=a,e[8]=f):f=e[8];const j=f;let R,C,b,k,P,v,S;if(e[9]!==o||e[10]!==l||e[11]!==i||e[12]!==a||e[13]!==r||e[14]!==c||e[15]!==u||e[16]!==n){const m=o?Ye(o,6):[];R=r,C=c,S=new Set(m.map(Xe)),P="flex items-center border-b border-border";let x;e[24]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx("div",{className:"flex items-center gap-2 text-muted-foreground",children:s.jsx(ne,{size:16})}),e[24]=x):x=e[24];let g;e[25]!==o||e[26]!==i||e[27]!==r||e[28]!==u?(g=o&&o.length>0&&s.jsx(re,{label:"Categories",items:o,selectedItems:r,onToggle:u,onClear:()=>i([])}),e[25]=o,e[26]=i,e[27]=r,e[28]=u,e[29]=g):g=e[29];let w;e[30]!==l||e[31]!==a||e[32]!==c||e[33]!==n?(w=l&&l.length>0&&s.jsx(re,{label:"Tags",items:l,selectedItems:c,onToggle:n,onClear:()=>a([])}),e[30]=l,e[31]=a,e[32]=c,e[33]=n,e[34]=w):w=e[34],e[35]!==w||e[36]!==g?(v=s.jsxs("div",{className:"flex items-center gap-3 flex-wrap px-5 py-3 border-r border-border",children:[x,g,w]}),e[35]=w,e[36]=g,e[37]=v):v=e[37],b="flex items-center gap-3 flex-wrap px-5 py-3";let F;e[38]!==r||e[39]!==u?(F=p=>{const K=r.includes(p.value);return s.jsxs("div",{onClick:()=>u(p.value),className:ce("inline-flex items-center gap-1 text-xs px-2.5 py-1 rounded-full transition-colors cursor-pointer",K?"bg-primary text-primary-foreground hover:bg-primary/80":"bg-muted hover:bg-accent text-muted-foreground"),children:[s.jsx("span",{children:p.value}),K&&s.jsx("span",{onClick:A=>{A.stopPropagation(),u(p.value)},className:"hover:bg-primary/20 rounded-full p-0.5 -mr-1 cursor-pointer flex items-center",children:s.jsx(Y,{size:12})})]},p.value)},e[38]=r,e[39]=u,e[40]=F):F=e[40],k=m.map(F),e[9]=o,e[10]=l,e[11]=i,e[12]=a,e[13]=r,e[14]=c,e[15]=u,e[16]=n,e[17]=R,e[18]=C,e[19]=b,e[20]=k,e[21]=P,e[22]=v,e[23]=S}else R=e[17],C=e[18],b=e[19],k=e[20],P=e[21],v=e[22],S=e[23];let T;if(e[41]!==R||e[42]!==u||e[43]!==S){let m;e[45]!==S?(m=g=>!S.has(g),e[45]=S,e[46]=m):m=e[46];let x;e[47]!==u?(x=g=>s.jsxs("div",{onClick:()=>u(g),className:"inline-flex items-center gap-1 text-xs px-2.5 py-1 rounded-full transition-colors cursor-pointer bg-primary text-primary-foreground hover:bg-accent/50",children:[s.jsx("span",{children:g}),s.jsx("span",{onClick:w=>{w.stopPropagation(),u(g)},className:"hover:bg-primary/20 rounded-full p-0.5 -mr-1 cursor-pointer flex items-center",children:s.jsx(Y,{size:12})})]},`cat-${g}`),e[47]=u,e[48]=x):x=e[48],T=R.filter(m).map(x),e[41]=R,e[42]=u,e[43]=S,e[44]=T}else T=e[44];let I;if(e[49]!==C||e[50]!==n){let m;e[52]!==n?(m=x=>s.jsxs("div",{onClick:()=>n(x),className:"inline-flex items-center gap-1 text-xs px-2.5 py-1 rounded-full transition-colors cursor-pointer bg-primary text-primary-foreground hover:bg-accent/50",children:[s.jsx("span",{children:x}),s.jsx("span",{onClick:g=>{g.stopPropagation(),n(x)},className:"hover:bg-primary/20 rounded-full p-0.5 -mr-1 cursor-pointer flex items-center",children:s.jsx(Y,{size:12})})]},`tag-${x}`),e[52]=n,e[53]=m):m=e[53],I=C.map(m),e[49]=C,e[50]=n,e[51]=I}else I=e[51];let z;e[54]!==j||e[55]!==y?(z=y&&s.jsxs(Q,{variant:"ghost",size:"sm",onClick:j,className:"h-7 text-xs text-muted-foreground hover:text-foreground gap-1 px-2",children:[s.jsx(Y,{size:14}),"Clear all"]}),e[54]=j,e[55]=y,e[56]=z):z=e[56];let L;e[57]!==z||e[58]!==b||e[59]!==k||e[60]!==T||e[61]!==I?(L=s.jsxs("div",{className:b,children:[k,T,I,z]}),e[57]=z,e[58]=b,e[59]=k,e[60]=T,e[61]=I,e[62]=L):L=e[62];let $;return e[63]!==L||e[64]!==P||e[65]!==v?($=s.jsxs("div",{className:P,children:[v,L]}),e[63]=L,e[64]=P,e[65]=v,e[66]=$):$=e[66],$}function Xe(t){return t.value}function et(t,e){if(!e)return t;const l=e.toLowerCase();return t.filter(o=>(o.name||o.title||"").toLowerCase().includes(l)||(o.description||o.server.description||"").toLowerCase().includes(l))}function tt(t){return t.verified===!0||t._meta?.["mcp.mesh"]?.verified===!0}function st(t){const e=G.c(54),{registryId:l,listToolName:o,filtersToolName:c}=t,[r,a]=M.useState(""),i=_e(r,300),d=oe(),{org:y}=Z(),{scrollRef:h,saveScrollPosition:n,handleScroll:N}=Ge(`store-discovery:${l}`);let u;e[0]!==i||e[1]!==c||e[2]!==o||e[3]!==l?(u={registryId:l,listToolName:o,filtersToolName:c,search:i},e[0]=i,e[1]=c,e[2]=o,e[3]=l,e[4]=u):u=e[4];const{items:f,hasMore:j,isLoadingMore:R,isInitialLoading:C,isFetching:b,loadMore:k,availableTags:P,availableCategories:v,selectedTags:S,selectedCategories:T,setSelectedTags:I,setSelectedCategories:z,hasActiveFilters:L}=Qe(u);let $,m,x,g;e[5]!==i||e[6]!==b||e[7]!==C||e[8]!==f||e[9]!==r?($=r?et(f,r):f,m=(r!==i||b)&&!C&&!!r,g=$.filter(tt),x=$.filter(B=>!g.find(W=>W.id===B.id)),e[5]=i,e[6]=b,e[7]=C,e[8]=f,e[9]=r,e[10]=$,e[11]=m,e[12]=x,e[13]=g):($=e[10],m=e[11],x=e[12],g=e[13]);const w=x;let F;e[14]!==d||e[15]!==y.slug||e[16]!==l||e[17]!==n?(F=B=>{n();const W=Ie(B.name||B.title||B.server.title||""),H=B.server.name;d({to:"/$org/store/$appName",params:{org:y.slug,appName:W},search:{registryId:l,serverName:H}})},e[14]=d,e[15]=y.slug,e[16]=l,e[17]=n,e[18]=F):F=e[18];const p=F;let K;e[19]!==N||e[20]!==j||e[21]!==R||e[22]!==k?(K=B=>{if(N(),!j||R)return;const W=B.currentTarget;W.scrollHeight-W.scrollTop-W.clientHeight<200&&k()},e[19]=N,e[20]=j,e[21]=R,e[22]=k,e[23]=K):K=e[23];const A=K;let E;e[24]!==m||e[25]!==r?(E=s.jsx(Re,{value:r,onChange:a,placeholder:"Search for an MCP Server...",isSearching:m}),e[24]=m,e[25]=r,e[26]=E):E=e[26];let O;e[27]!==v||e[28]!==P||e[29]!==T||e[30]!==S||e[31]!==z||e[32]!==I?(O=s.jsx(Ze,{availableTags:P,availableCategories:v,selectedTags:S,selectedCategories:T,onTagChange:I,onCategoryChange:z}),e[27]=v,e[28]=P,e[29]=T,e[30]=S,e[31]=z,e[32]=I,e[33]=O):O=e[33];let V;e[34]!==w||e[35]!==$||e[36]!==p||e[37]!==L||e[38]!==j||e[39]!==C||e[40]!==R||e[41]!==m||e[42]!==f||e[43]!==r||e[44]!==g?(V=s.jsx("div",{className:"p-5",children:s.jsx("div",{children:C?s.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[s.jsx(J,{size:32,className:"animate-spin text-muted-foreground mb-4"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading items..."})]}):f.length===0&&!L?s.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[s.jsx(he,{size:48,className:"text-muted-foreground mb-4"}),s.jsx("h3",{className:"text-lg font-medium mb-2",children:"No items available"}),s.jsx("p",{className:"text-muted-foreground",children:"This store doesn't have any available items yet."})]}):f.length===0&&L&&!r?s.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[s.jsx(ne,{size:48,className:"text-muted-foreground mb-4"}),s.jsx("h3",{className:"text-lg font-medium mb-2",children:"No matching items"}),s.jsx("p",{className:"text-muted-foreground",children:"Try adjusting your filters to find more results."})]}):r&&$.length===0&&!m?s.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[s.jsx(ie,{size:48,className:"text-muted-foreground mb-4"}),s.jsx("h3",{className:"text-lg font-medium mb-2",children:"No results found"}),s.jsx("p",{className:"text-muted-foreground",children:"Try adjusting your search terms."})]}):s.jsxs("div",{className:"flex flex-col gap-8",children:[m&&$.length===0&&s.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[s.jsx(J,{size:32,className:"animate-spin text-muted-foreground mb-4"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Searching..."})]}),g.length>0&&s.jsx(le,{items:g,title:"Verified",onItemClick:p}),w.length>0&&s.jsx(le,{items:w,title:g.length>0?"All":"",onItemClick:p}),j&&R&&s.jsx("div",{className:"flex justify-center py-8",children:s.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[s.jsx(J,{size:20,className:"animate-spin"}),s.jsx("span",{className:"text-sm",children:"Loading more items..."})]})})]})})}),e[34]=w,e[35]=$,e[36]=p,e[37]=L,e[38]=j,e[39]=C,e[40]=R,e[41]=m,e[42]=f,e[43]=r,e[44]=g,e[45]=V):V=e[45];let q;e[46]!==A||e[47]!==h||e[48]!==V?(q=s.jsx("div",{ref:h,className:"flex-1 overflow-y-auto",onScroll:A,children:V}),e[46]=A,e[47]=h,e[48]=V,e[49]=q):q=e[49];let _;return e[50]!==E||e[51]!==O||e[52]!==q?(_=s.jsxs("div",{className:"flex flex-col h-full",children:[E,O,q]}),e[50]=E,e[51]=O,e[52]=q,e[53]=_):_=e[53],_}function lt(t){const e=G.c(8),{registryId:l}=t,o=we(l),c=o?.tools;let r;e[0]!==c?(r=ye(c),e[0]=c,e[1]=r):r=e[1];const a=r;if(!a)throw new Error("This registry does not support listing store items.");const i=o?.tools;let d;e[2]!==i?(d=Ne(i),e[2]=i,e[3]=d):d=e[3];const h=d||void 0;let n;return e[4]!==a||e[5]!==l||e[6]!==h?(n=s.jsx(st,{registryId:l,listToolName:a,filtersToolName:h}),e[4]=a,e[5]=l,e[6]=h,e[7]=n):n=e[7],n}function rt(t){const e=G.c(15),{registries:l,value:o,onValueChange:c,onAddWellKnown:r,wellKnownRegistries:a,placeholder:i}=t,d=i===void 0?"Select a registry...":i;let y;e[0]!==d?(y=s.jsx(Ae,{size:"sm",className:"w-auto min-w-[160px]",children:s.jsx(Ee,{placeholder:d})}),e[0]=d,e[1]=y):y=e[1];let h;e[2]!==l?(h=l.map(ot),e[2]=l,e[3]=h):h=e[3];let n;e[4]!==r||e[5]!==a?(n=a.length>0&&s.jsxs("div",{className:"border-t border-border pt-1",children:[s.jsx("p",{className:"px-2 py-1.5 text-xs font-medium text-muted-foreground",children:"Other known registries"}),a.map(f=>s.jsxs("button",{onClick:j=>{j.preventDefault(),j.stopPropagation(),r(f)},className:"relative flex w-full cursor-pointer items-center gap-2 rounded-lg py-1.5 pr-8 pl-2 text-sm outline-hidden select-none hover:bg-accent hover:text-accent-foreground",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[f.icon?s.jsx("img",{src:f.icon,alt:f.title,className:"w-4 h-4 rounded"}):s.jsx("div",{className:"w-4 h-4 rounded bg-primary/10 flex items-center justify-center text-xs font-semibold text-primary",children:f.title.slice(0,1).toUpperCase()}),s.jsx("span",{className:"flex-1",children:f.title})]}),s.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center text-muted-foreground",children:s.jsx(Be,{size:16})})]},f.id??f.title))]}),e[4]=r,e[5]=a,e[6]=n):n=e[6];let N;e[7]!==h||e[8]!==n?(N=s.jsxs(De,{children:[h,n]}),e[7]=h,e[8]=n,e[9]=N):N=e[9];let u;return e[10]!==c||e[11]!==y||e[12]!==N||e[13]!==o?(u=s.jsxs(Me,{value:o,onValueChange:c,children:[y,N]}),e[10]=c,e[11]=y,e[12]=N,e[13]=o,e[14]=u):u=e[14],u}function ot(t){return s.jsx(Ke,{className:"cursor-pointer",value:t.id??t.name,children:s.jsxs("div",{className:"flex items-center gap-2",children:[t.icon?s.jsx("img",{src:t.icon,alt:t.name,className:"w-4 h-4 rounded"}):s.jsx("div",{className:"w-4 h-4 rounded from-primary/20 to-primary/10 flex items-center justify-center text-xs font-semibold text-primary",children:t.name.slice(0,1).toUpperCase()}),s.jsx("span",{children:t.name})]})},t.id??t.name)}function nt({registries:t,onConnected:e}){const l=ae(),{org:{slug:o}}=Z(),{data:c}=ue.useSession(),r=oe(),[a,i]=M.useState(!1),d=t[0],y=async()=>{if(!(!d||!c?.user?.id)){i(!0);try{const n=await l.create.mutateAsync(d);e?.(n.id)}finally{i(!1)}}},h=()=>{r({to:"/$org/mcps",params:{org:o},search:{action:"create"}})};return s.jsx(Oe,{image:s.jsx("img",{src:"/store-empty-state.svg",alt:"No store connected",width:336,height:320,className:"max-w-full h-auto"}),title:"Connect to registry",description:"Connect to discover and use Connections from the community.",actions:s.jsxs(s.Fragment,{children:[s.jsxs(Q,{variant:"outline",onClick:y,disabled:a||!d,children:[d?.icon&&s.jsx("img",{src:d.icon,alt:"",className:"size-4"}),a?"Installing...":"Install Registry"]}),s.jsx(Q,{variant:"outline",onClick:h,children:"Custom Connection"})]})})}function Yt(){const t=G.c(41),{org:e}=Z(),l=Te(),o=ae(),c=xe(),r=c.location.pathname.includes("/store/")&&c.location.pathname.split("/").length>3,a=Ve(l);let i;t[0]!==a?(i=a.map(ct),t[0]=a,t[1]=i):i=t[1];const d=i;let y;t[2]!==e.slug?(y=We.selectedRegistry(e.slug),t[2]=e.slug,t[3]=y):y=t[3];const[h,n]=qe(y,at);let N;if(t[4]!==a||t[5]!==h){let p;t[7]!==h?(p=K=>K.id===h,t[7]=h,t[8]=p):p=t[8],N=a.find(p),t[4]=a,t[5]=h,t[6]=N}else N=t[6];const f=N?.id||a[0]?.id||"";let j;t[9]!==e.id?(j=be(e.id),t[9]=e.id,t[10]=j):j=t[10];let R;t[11]!==j?(R=[j],t[11]=j,t[12]=R):R=t[12];const C=R;let b;t[13]===Symbol.for("react.memo_cache_sentinel")?(b=[Se()],t[13]=b):b=t[13];const k=b;let P;t[14]!==o.create||t[15]!==n?(P=async p=>{const K=await o.create.mutateAsync(p);n(K.id)},t[14]=o.create,t[15]=n,t[16]=P):P=t[16];const v=P;let S;t[17]!==a?(S=new Set(a.map(it)),t[17]=a,t[18]=S):S=t[18];const T=S;let I;t[19]!==T||t[20]!==C?(I=C.filter(p=>p.id&&!T.has(p.id)),t[19]=T,t[20]=C,t[21]=I):I=t[21];const z=I;let L;t[22]!==T?(L=k.filter(p=>p.id&&!T.has(p.id)),t[22]=T,t[23]=L):L=t[23];const $=L;if(r){let p;return t[24]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsx(ge,{}),t[24]=p):p=t[24],p}let m;t[25]!==v?(m=async p=>v(p),t[25]=v,t[26]=m):m=t[26];let x;t[27]!==z||t[28]!==f||t[29]!==d||t[30]!==n||t[31]!==m?(x=s.jsx(pe,{title:"Store",ctaButton:s.jsx(rt,{wellKnownRegistries:z,registries:d,value:f,onValueChange:n,onAddWellKnown:m,placeholder:"Select store..."})}),t[27]=z,t[28]=f,t[29]=d,t[30]=n,t[31]=m,t[32]=x):x=t[32];let g;t[33]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[s.jsx(J,{size:32,className:"animate-spin text-muted-foreground mb-4"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading store items..."})]}),t[33]=g):g=t[33];let w;t[34]!==$||t[35]!==f||t[36]!==n?(w=s.jsx("div",{className:"h-full flex flex-col overflow-hidden",children:s.jsx(M.Suspense,{fallback:g,children:f?s.jsx(lt,{registryId:f}):s.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:s.jsx(nt,{registries:$,onConnected:p=>{n(p)}})})})}),t[34]=$,t[35]=f,t[36]=n,t[37]=w):w=t[37];let F;return t[38]!==x||t[39]!==w?(F=s.jsxs("div",{className:"h-full flex flex-col overflow-hidden",children:[x,w]}),t[38]=x,t[39]=w,t[40]=F):F=t[40],F}function it(t){return t.id}function at(t){return t??""}function ct(t){return{id:t.id,name:t.title,icon:t.icon||void 0}}export{Yt as default};
|
|
1
|
+
import{c as G,r as M,u as Z,q as de,K as se,bC as fe,j as s,l as oe,g as ue,bj as xe,aO as ge}from"./index-C8OOnmm1.js";import{C as pe}from"./collection-header-Fc9BtUxQ.js";import{i as ne}from"./FilterLines-UNZ5Kk_X.js";import{n as he}from"./Inbox01-D1IW7Je7.js";import{i as J}from"./Loading01-Bf56vlFv.js";import{i as ie}from"./SearchMd-Ns-pswyj.js";import{u as je}from"./useInfiniteQuery-BUOCgX3w.js";import{a as ve,f as ye,b as Ne}from"./registry-utils-DekIcM3F.js";import{u as Ce,f as be,g as Se}from"./constants-ytntCGH9.js";import{u as we,a as ae,b as Te}from"./use-connection-TLrid9RM.js";import{s as Ie}from"./slugify-CEUa2lfQ.js";import{C as Re}from"./collection-search-bOTNZP0b.js";import{M as le}from"./mcp-server-card-CkDDvd5o.js";import{c as ce,B as Q}from"./button-C83AQWC1.js";import{I as Pe}from"./input-CrR0FEof.js";import{b as $e,P as ke,a as ze}from"./popover-B2yKs5LA.js";import{i as Fe}from"./Check-CXkamnnr.js";import{t as Le}from"./ChevronDown-DaqG_J6Z.js";import{s as Y}from"./XClose-BhgPfyG3.js";import{d as Ke,a as Ae,b as Ee,c as De,S as Me}from"./select-BlFReF6r.js";import{s as Be}from"./Plus-CcqPpwU0.js";import{E as Oe}from"./empty-state-Cr5g6Vh9.js";import{u as Ve}from"./use-binding-C2mDgpbB.js";import{L as We,u as qe}from"./localstorage-keys-N4jrVxvr.js";import"./collection-display-button-DlAEKbje.js";import"./dropdown-menu-CzQCi3DZ.js";import"./Grid01-C_dMOr-7.js";import"./ArrowUp-BfBrilbk.js";import"./List-d88_8fTd.js";import"./tooltip-aHeHMhKh.js";import"./view-mode-toggle-jPeow5hv.js";import"./infiniteQueryObserver-B1N6PF-z.js";import"./use-collections-CkAaybvR.js";import"./useMutation-C4aXMLv3.js";import"./useQuery-DNOH3p7p.js";import"./Lock01-CQ0bp8OP.js";import"./Terminal-qZhwvVsv.js";import"./card-CbXWWn3M.js";import"./github-icon-Dp3wHhYE.js";import"./binder-Dh-m11Sm.js";function _e(t,e){const l=G.c(4),[o,c]=M.useState(t),r=M.useRef(null),a=M.useRef(!0);let i,d;return l[0]!==e||l[1]!==t?(i=()=>{if(a.current){a.current=!1;return}return r.current&&clearTimeout(r.current),r.current=setTimeout(()=>{c(t)},e),()=>{r.current&&clearTimeout(r.current)}},d=[t,e],l[0]=e,l[1]=t,l[2]=i,l[3]=d):(i=l[2],d=l[3]),M.useEffect(i,d),o}function Ge(t){const e=G.c(14),l=M.useRef(null),o=`scroll-position:${t}`,c=M.useRef(null);let r;e[0]!==o?(r=()=>{l.current&&sessionStorage.setItem(o,String(l.current.scrollTop))},e[0]=o,e[1]=r):r=e[1];const a=r;let i;e[2]!==o?(i=()=>{if(c.current===o)return;const f=sessionStorage.getItem(o);if(f&&l.current){const j=Number.parseInt(f,10);l.current.scrollTop=j}c.current=o},e[2]=o,e[3]=i):i=e[3];const d=i;let y;e[4]!==d||e[5]!==o?(y=()=>{c.current!==o&&d()},e[4]=d,e[5]=o,e[6]=y):y=e[6];const h=y;let n;e[7]!==d||e[8]!==o?(n=f=>{l.current=f,f&&c.current!==o&&requestAnimationFrame(()=>{d()})},e[7]=d,e[8]=o,e[9]=n):n=e[9];const N=n;let u;return e[10]!==h||e[11]!==a||e[12]!==N?(u={scrollRef:N,saveScrollPosition:a,handleScroll:h},e[10]=h,e[11]=a,e[12]=N,e[13]=u):u=e[13],u}const He=24;function Qe(t){const e=G.c(53),{registryId:l,listToolName:o,filtersToolName:c,search:r}=t,{org:a}=Z();let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=[],e[0]=i):i=e[0];const[d,y]=M.useState(i);let h;e[1]===Symbol.for("react.memo_cache_sentinel")?(h=[],e[1]=h):h=e[1];const[n,N]=M.useState(h),u=l||null;let f;e[2]!==a.id||e[3]!==u?(f={connectionId:u,orgId:a.id},e[2]=a.id,e[3]=u,e[4]=f):f=e[4];const j=Ce(f),R=!!c;let C;e[5]!==c||e[6]!==l?(C=se.toolCall(l,c||"no-filters","{}"),e[5]=c,e[6]=l,e[7]=C):C=e[7];let b;e[8]!==j||e[9]!==c?(b=async()=>{if(!c)return{tags:[],categories:[]};const D=await j.callTool({name:c,arguments:{}});return D.structuredContent??D},e[8]=j,e[9]=c,e[10]=b):b=e[10];let k;e[11]!==C||e[12]!==b?(k={queryKey:C,queryFn:b,staleTime:36e5},e[11]=C,e[12]=b,e[13]=k):k=e[13];const{data:P}=de(k);let v,S,T;if(e[14]!==o||e[15]!==l||e[16]!==r||e[17]!==n||e[18]!==d){const D=r?.trim()?{operator:"or",conditions:[{field:["name"],operator:"contains",value:r},{field:["title"],operator:"contains",value:r},{field:["description"],operator:"contains",value:r}]}:void 0;v={limit:He,...d.length>0&&{tags:d},...n.length>0&&{categories:n},...D&&{where:D}},T=je,S=se.toolCall(l,o,JSON.stringify(v)),e[14]=o,e[15]=l,e[16]=r,e[17]=n,e[18]=d,e[19]=v,e[20]=S,e[21]=T}else v=e[19],S=e[20],T=e[21];let I;e[22]!==j||e[23]!==v||e[24]!==o?(I=async D=>{const{pageParam:ee}=D,me=ee?{...v,cursor:ee}:v,te=await j.callTool({name:o,arguments:me});return te.structuredContent??te},e[22]=j,e[23]=v,e[24]=o,e[25]=I):I=e[25];let z;e[26]!==I||e[27]!==S?(z={queryKey:S,queryFn:I,initialPageParam:void 0,getNextPageParam:Ue,staleTime:36e5,placeholderData:fe},e[26]=I,e[27]=S,e[28]=z):z=e[28];const{data:L,fetchNextPage:$,hasNextPage:m,isFetchingNextPage:x,isFetching:g,isLoading:w}=T(z);let F;e:{if(!L?.pages||L.pages.length===0){F=null;break e}const D=L.pages[0];if(typeof D=="object"&&D!==null&&"totalCount"in D&&typeof D.totalCount=="number"){F=D.totalCount;break e}F=null}const p=F,K=L?.pages;let A;e[29]!==K?(A=ve(K),e[29]=K,e[30]=A):A=e[30];const E=A;let O;e[31]!==r||e[32]!==n.length||e[33]!==d.length?(O=d.length>0||n.length>0||!!r?.trim(),e[31]=r,e[32]=n.length,e[33]=d.length,e[34]=O):O=e[34];const V=O,q=g&&!x&&!w&&V;let _;e[35]!==$||e[36]!==m||e[37]!==x?(_=()=>{m&&!x&&$()},e[35]=$,e[36]=m,e[37]=x,e[38]=_):_=e[38];const B=_,W=m??!1,H=R?P?.tags:void 0,X=R?P?.categories:void 0;let U;return e[39]!==V||e[40]!==g||e[41]!==x||e[42]!==q||e[43]!==w||e[44]!==E||e[45]!==B||e[46]!==n||e[47]!==d||e[48]!==W||e[49]!==H||e[50]!==X||e[51]!==p?(U={items:E,totalCount:p,hasMore:W,isLoadingMore:x,isFiltering:q,isInitialLoading:w,isFetching:g,loadMore:B,availableTags:H,availableCategories:X,selectedTags:d,selectedCategories:n,setSelectedTags:y,setSelectedCategories:N,hasActiveFilters:V},e[39]=V,e[40]=g,e[41]=x,e[42]=q,e[43]=w,e[44]=E,e[45]=B,e[46]=n,e[47]=d,e[48]=W,e[49]=H,e[50]=X,e[51]=p,e[52]=U):U=e[52],U}function Ue(t){if(typeof t=="object"&&t!==null){const e=t.nextCursor||t.cursor;if(e)return e}}function Ye(t,e){return[...t].sort((l,o)=>o.count-l.count).slice(0,e)}function re(t){const e=G.c(52),{label:l,items:o,selectedItems:c,onToggle:r,onClear:a}=t,[i,d]=M.useState(""),[y,h]=M.useState(!1);let n,N,u,f,j,R,C,b,k,P,v;if(e[0]!==o||e[1]!==l||e[2]!==r||e[3]!==y||e[4]!==i||e[5]!==c){const $=[...i?o.filter(A=>A.value.toLowerCase().includes(i.toLowerCase())):o].sort(Je);u=c.length,N=$e,k=y,P=h;let m;e[17]!==l?(m=s.jsx("span",{children:l}),e[17]=l,e[18]=m):m=e[18];let x;e[19]!==u?(x=u>0&&s.jsx("span",{className:"ml-1 rounded-full bg-primary text-primary-foreground px-1.5 py-0.5 text-[10px] font-medium",children:u}),e[19]=u,e[20]=x):x=e[20];let g;e[21]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(Le,{size:14,className:"opacity-50"}),e[21]=g):g=e[21],e[22]!==x||e[23]!==m?(v=s.jsx(ke,{asChild:!0,children:s.jsxs(Q,{variant:"outline",size:"sm",className:"h-7 px-3 gap-1.5 text-xs font-normal flex-1",children:[m,x,g]})}),e[22]=x,e[23]=m,e[24]=v):v=e[24],n=ze,R="w-64 p-0",C="start";let w;e[25]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(ie,{size:16,className:"text-muted-foreground shrink-0"}),e[25]=w):w=e[25];let F;e[26]!==l?(F=l.toLowerCase(),e[26]=l,e[27]=F):F=e[27];const p=`Search ${F}...`;let K;e[28]===Symbol.for("react.memo_cache_sentinel")?(K=A=>d(A.target.value),e[28]=K):K=e[28],e[29]!==i||e[30]!==p?(b=s.jsx("div",{className:"shrink-0 w-full border-b border-border h-10",children:s.jsxs("label",{className:"flex items-center gap-2.5 h-10 px-4 cursor-text",children:[w,s.jsx(Pe,{type:"text",placeholder:p,value:i,onChange:K,className:"flex-1 border-0 shadow-none focus-visible:ring-0 px-0 h-full text-sm placeholder:text-muted-foreground/50 bg-transparent"})]})}),e[29]=i,e[30]=p,e[31]=b):b=e[31],f="max-h-64 overflow-y-auto p-1 flex flex-col gap-1",j=$.length===0?s.jsx("div",{className:"px-2 py-4 text-sm text-muted-foreground text-center",children:"No results found"}):$.map(A=>{const E=c.includes(A.value);return s.jsxs("button",{onClick:()=>r(A.value),className:ce("w-full flex items-center justify-between px-2 py-1.5 text-sm rounded cursor-pointer transition-colors",E?"bg-accent/50 text-foreground":"hover:bg-muted text-foreground"),children:[s.jsxs("span",{className:"truncate flex items-center gap-2",children:[E&&s.jsx(Fe,{size:16,className:"text-muted-foreground shrink-0"}),A.value]}),s.jsx("span",{className:"text-xs text-muted-foreground ml-2 shrink-0",children:A.count})]},A.value)}),e[0]=o,e[1]=l,e[2]=r,e[3]=y,e[4]=i,e[5]=c,e[6]=n,e[7]=N,e[8]=u,e[9]=f,e[10]=j,e[11]=R,e[12]=C,e[13]=b,e[14]=k,e[15]=P,e[16]=v}else n=e[6],N=e[7],u=e[8],f=e[9],j=e[10],R=e[11],C=e[12],b=e[13],k=e[14],P=e[15],v=e[16];let S;e[32]!==f||e[33]!==j?(S=s.jsx("div",{className:f,children:j}),e[32]=f,e[33]=j,e[34]=S):S=e[34];let T;e[35]!==l||e[36]!==a||e[37]!==u?(T=u>0&&s.jsx("div",{className:"p-2 border-t border-border",children:s.jsxs(Q,{variant:"ghost",size:"sm",onClick:a,className:"w-full text-xs text-muted-foreground hover:text-foreground",children:["Clear ",l.toLowerCase()]})}),e[35]=l,e[36]=a,e[37]=u,e[38]=T):T=e[38];let I;e[39]!==n||e[40]!==T||e[41]!==R||e[42]!==C||e[43]!==b||e[44]!==S?(I=s.jsxs(n,{className:R,align:C,children:[b,S,T]}),e[39]=n,e[40]=T,e[41]=R,e[42]=C,e[43]=b,e[44]=S,e[45]=I):I=e[45];let z;return e[46]!==N||e[47]!==I||e[48]!==k||e[49]!==P||e[50]!==v?(z=s.jsxs(N,{open:k,onOpenChange:P,children:[v,I]}),e[46]=N,e[47]=I,e[48]=k,e[49]=P,e[50]=v,e[51]=z):z=e[51],z}function Je(t,e){return e.count-t.count}function Ze(t){const e=G.c(67),{availableTags:l,availableCategories:o,selectedTags:c,selectedCategories:r,onTagChange:a,onCategoryChange:i}=t,d=l&&l.length>0||o&&o.length>0,y=c.length>0||r.length>0;if(!d)return null;let h;e[0]!==a||e[1]!==c?(h=m=>{c.includes(m)?a(c.filter(x=>x!==m)):a([...c,m])},e[0]=a,e[1]=c,e[2]=h):h=e[2];const n=h;let N;e[3]!==i||e[4]!==r?(N=m=>{r.includes(m)?i(r.filter(x=>x!==m)):i([...r,m])},e[3]=i,e[4]=r,e[5]=N):N=e[5];const u=N;let f;e[6]!==i||e[7]!==a?(f=()=>{a([]),i([])},e[6]=i,e[7]=a,e[8]=f):f=e[8];const j=f;let R,C,b,k,P,v,S;if(e[9]!==o||e[10]!==l||e[11]!==i||e[12]!==a||e[13]!==r||e[14]!==c||e[15]!==u||e[16]!==n){const m=o?Ye(o,6):[];R=r,C=c,S=new Set(m.map(Xe)),P="flex items-center border-b border-border";let x;e[24]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx("div",{className:"flex items-center gap-2 text-muted-foreground",children:s.jsx(ne,{size:16})}),e[24]=x):x=e[24];let g;e[25]!==o||e[26]!==i||e[27]!==r||e[28]!==u?(g=o&&o.length>0&&s.jsx(re,{label:"Categories",items:o,selectedItems:r,onToggle:u,onClear:()=>i([])}),e[25]=o,e[26]=i,e[27]=r,e[28]=u,e[29]=g):g=e[29];let w;e[30]!==l||e[31]!==a||e[32]!==c||e[33]!==n?(w=l&&l.length>0&&s.jsx(re,{label:"Tags",items:l,selectedItems:c,onToggle:n,onClear:()=>a([])}),e[30]=l,e[31]=a,e[32]=c,e[33]=n,e[34]=w):w=e[34],e[35]!==w||e[36]!==g?(v=s.jsxs("div",{className:"flex items-center gap-3 flex-wrap px-5 py-3 border-r border-border",children:[x,g,w]}),e[35]=w,e[36]=g,e[37]=v):v=e[37],b="flex items-center gap-3 flex-wrap px-5 py-3";let F;e[38]!==r||e[39]!==u?(F=p=>{const K=r.includes(p.value);return s.jsxs("div",{onClick:()=>u(p.value),className:ce("inline-flex items-center gap-1 text-xs px-2.5 py-1 rounded-full transition-colors cursor-pointer",K?"bg-primary text-primary-foreground hover:bg-primary/80":"bg-muted hover:bg-accent text-muted-foreground"),children:[s.jsx("span",{children:p.value}),K&&s.jsx("span",{onClick:A=>{A.stopPropagation(),u(p.value)},className:"hover:bg-primary/20 rounded-full p-0.5 -mr-1 cursor-pointer flex items-center",children:s.jsx(Y,{size:12})})]},p.value)},e[38]=r,e[39]=u,e[40]=F):F=e[40],k=m.map(F),e[9]=o,e[10]=l,e[11]=i,e[12]=a,e[13]=r,e[14]=c,e[15]=u,e[16]=n,e[17]=R,e[18]=C,e[19]=b,e[20]=k,e[21]=P,e[22]=v,e[23]=S}else R=e[17],C=e[18],b=e[19],k=e[20],P=e[21],v=e[22],S=e[23];let T;if(e[41]!==R||e[42]!==u||e[43]!==S){let m;e[45]!==S?(m=g=>!S.has(g),e[45]=S,e[46]=m):m=e[46];let x;e[47]!==u?(x=g=>s.jsxs("div",{onClick:()=>u(g),className:"inline-flex items-center gap-1 text-xs px-2.5 py-1 rounded-full transition-colors cursor-pointer bg-primary text-primary-foreground hover:bg-accent/50",children:[s.jsx("span",{children:g}),s.jsx("span",{onClick:w=>{w.stopPropagation(),u(g)},className:"hover:bg-primary/20 rounded-full p-0.5 -mr-1 cursor-pointer flex items-center",children:s.jsx(Y,{size:12})})]},`cat-${g}`),e[47]=u,e[48]=x):x=e[48],T=R.filter(m).map(x),e[41]=R,e[42]=u,e[43]=S,e[44]=T}else T=e[44];let I;if(e[49]!==C||e[50]!==n){let m;e[52]!==n?(m=x=>s.jsxs("div",{onClick:()=>n(x),className:"inline-flex items-center gap-1 text-xs px-2.5 py-1 rounded-full transition-colors cursor-pointer bg-primary text-primary-foreground hover:bg-accent/50",children:[s.jsx("span",{children:x}),s.jsx("span",{onClick:g=>{g.stopPropagation(),n(x)},className:"hover:bg-primary/20 rounded-full p-0.5 -mr-1 cursor-pointer flex items-center",children:s.jsx(Y,{size:12})})]},`tag-${x}`),e[52]=n,e[53]=m):m=e[53],I=C.map(m),e[49]=C,e[50]=n,e[51]=I}else I=e[51];let z;e[54]!==j||e[55]!==y?(z=y&&s.jsxs(Q,{variant:"ghost",size:"sm",onClick:j,className:"h-7 text-xs text-muted-foreground hover:text-foreground gap-1 px-2",children:[s.jsx(Y,{size:14}),"Clear all"]}),e[54]=j,e[55]=y,e[56]=z):z=e[56];let L;e[57]!==z||e[58]!==b||e[59]!==k||e[60]!==T||e[61]!==I?(L=s.jsxs("div",{className:b,children:[k,T,I,z]}),e[57]=z,e[58]=b,e[59]=k,e[60]=T,e[61]=I,e[62]=L):L=e[62];let $;return e[63]!==L||e[64]!==P||e[65]!==v?($=s.jsxs("div",{className:P,children:[v,L]}),e[63]=L,e[64]=P,e[65]=v,e[66]=$):$=e[66],$}function Xe(t){return t.value}function et(t,e){if(!e)return t;const l=e.toLowerCase();return t.filter(o=>(o.name||o.title||"").toLowerCase().includes(l)||(o.description||o.server.description||"").toLowerCase().includes(l))}function tt(t){return t.verified===!0||t._meta?.["mcp.mesh"]?.verified===!0}function st(t){const e=G.c(54),{registryId:l,listToolName:o,filtersToolName:c}=t,[r,a]=M.useState(""),i=_e(r,300),d=oe(),{org:y}=Z(),{scrollRef:h,saveScrollPosition:n,handleScroll:N}=Ge(`store-discovery:${l}`);let u;e[0]!==i||e[1]!==c||e[2]!==o||e[3]!==l?(u={registryId:l,listToolName:o,filtersToolName:c,search:i},e[0]=i,e[1]=c,e[2]=o,e[3]=l,e[4]=u):u=e[4];const{items:f,hasMore:j,isLoadingMore:R,isInitialLoading:C,isFetching:b,loadMore:k,availableTags:P,availableCategories:v,selectedTags:S,selectedCategories:T,setSelectedTags:I,setSelectedCategories:z,hasActiveFilters:L}=Qe(u);let $,m,x,g;e[5]!==i||e[6]!==b||e[7]!==C||e[8]!==f||e[9]!==r?($=r?et(f,r):f,m=(r!==i||b)&&!C&&!!r,g=$.filter(tt),x=$.filter(B=>!g.find(W=>W.id===B.id)),e[5]=i,e[6]=b,e[7]=C,e[8]=f,e[9]=r,e[10]=$,e[11]=m,e[12]=x,e[13]=g):($=e[10],m=e[11],x=e[12],g=e[13]);const w=x;let F;e[14]!==d||e[15]!==y.slug||e[16]!==l||e[17]!==n?(F=B=>{n();const W=Ie(B.name||B.title||B.server.title||""),H=B.server.name;d({to:"/$org/store/$appName",params:{org:y.slug,appName:W},search:{registryId:l,serverName:H}})},e[14]=d,e[15]=y.slug,e[16]=l,e[17]=n,e[18]=F):F=e[18];const p=F;let K;e[19]!==N||e[20]!==j||e[21]!==R||e[22]!==k?(K=B=>{if(N(),!j||R)return;const W=B.currentTarget;W.scrollHeight-W.scrollTop-W.clientHeight<200&&k()},e[19]=N,e[20]=j,e[21]=R,e[22]=k,e[23]=K):K=e[23];const A=K;let E;e[24]!==m||e[25]!==r?(E=s.jsx(Re,{value:r,onChange:a,placeholder:"Search for an MCP Server...",isSearching:m}),e[24]=m,e[25]=r,e[26]=E):E=e[26];let O;e[27]!==v||e[28]!==P||e[29]!==T||e[30]!==S||e[31]!==z||e[32]!==I?(O=s.jsx(Ze,{availableTags:P,availableCategories:v,selectedTags:S,selectedCategories:T,onTagChange:I,onCategoryChange:z}),e[27]=v,e[28]=P,e[29]=T,e[30]=S,e[31]=z,e[32]=I,e[33]=O):O=e[33];let V;e[34]!==w||e[35]!==$||e[36]!==p||e[37]!==L||e[38]!==j||e[39]!==C||e[40]!==R||e[41]!==m||e[42]!==f||e[43]!==r||e[44]!==g?(V=s.jsx("div",{className:"p-5",children:s.jsx("div",{children:C?s.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[s.jsx(J,{size:32,className:"animate-spin text-muted-foreground mb-4"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading items..."})]}):f.length===0&&!L?s.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[s.jsx(he,{size:48,className:"text-muted-foreground mb-4"}),s.jsx("h3",{className:"text-lg font-medium mb-2",children:"No items available"}),s.jsx("p",{className:"text-muted-foreground",children:"This store doesn't have any available items yet."})]}):f.length===0&&L&&!r?s.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[s.jsx(ne,{size:48,className:"text-muted-foreground mb-4"}),s.jsx("h3",{className:"text-lg font-medium mb-2",children:"No matching items"}),s.jsx("p",{className:"text-muted-foreground",children:"Try adjusting your filters to find more results."})]}):r&&$.length===0&&!m?s.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[s.jsx(ie,{size:48,className:"text-muted-foreground mb-4"}),s.jsx("h3",{className:"text-lg font-medium mb-2",children:"No results found"}),s.jsx("p",{className:"text-muted-foreground",children:"Try adjusting your search terms."})]}):s.jsxs("div",{className:"flex flex-col gap-8",children:[m&&$.length===0&&s.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[s.jsx(J,{size:32,className:"animate-spin text-muted-foreground mb-4"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Searching..."})]}),g.length>0&&s.jsx(le,{items:g,title:"Verified",onItemClick:p}),w.length>0&&s.jsx(le,{items:w,title:g.length>0?"All":"",onItemClick:p}),j&&R&&s.jsx("div",{className:"flex justify-center py-8",children:s.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[s.jsx(J,{size:20,className:"animate-spin"}),s.jsx("span",{className:"text-sm",children:"Loading more items..."})]})})]})})}),e[34]=w,e[35]=$,e[36]=p,e[37]=L,e[38]=j,e[39]=C,e[40]=R,e[41]=m,e[42]=f,e[43]=r,e[44]=g,e[45]=V):V=e[45];let q;e[46]!==A||e[47]!==h||e[48]!==V?(q=s.jsx("div",{ref:h,className:"flex-1 overflow-y-auto",onScroll:A,children:V}),e[46]=A,e[47]=h,e[48]=V,e[49]=q):q=e[49];let _;return e[50]!==E||e[51]!==O||e[52]!==q?(_=s.jsxs("div",{className:"flex flex-col h-full",children:[E,O,q]}),e[50]=E,e[51]=O,e[52]=q,e[53]=_):_=e[53],_}function lt(t){const e=G.c(8),{registryId:l}=t,o=we(l),c=o?.tools;let r;e[0]!==c?(r=ye(c),e[0]=c,e[1]=r):r=e[1];const a=r;if(!a)throw new Error("This registry does not support listing store items.");const i=o?.tools;let d;e[2]!==i?(d=Ne(i),e[2]=i,e[3]=d):d=e[3];const h=d||void 0;let n;return e[4]!==a||e[5]!==l||e[6]!==h?(n=s.jsx(st,{registryId:l,listToolName:a,filtersToolName:h}),e[4]=a,e[5]=l,e[6]=h,e[7]=n):n=e[7],n}function rt(t){const e=G.c(15),{registries:l,value:o,onValueChange:c,onAddWellKnown:r,wellKnownRegistries:a,placeholder:i}=t,d=i===void 0?"Select a registry...":i;let y;e[0]!==d?(y=s.jsx(Ae,{size:"sm",className:"w-auto min-w-[160px]",children:s.jsx(Ee,{placeholder:d})}),e[0]=d,e[1]=y):y=e[1];let h;e[2]!==l?(h=l.map(ot),e[2]=l,e[3]=h):h=e[3];let n;e[4]!==r||e[5]!==a?(n=a.length>0&&s.jsxs("div",{className:"border-t border-border pt-1",children:[s.jsx("p",{className:"px-2 py-1.5 text-xs font-medium text-muted-foreground",children:"Other known registries"}),a.map(f=>s.jsxs("button",{onClick:j=>{j.preventDefault(),j.stopPropagation(),r(f)},className:"relative flex w-full cursor-pointer items-center gap-2 rounded-lg py-1.5 pr-8 pl-2 text-sm outline-hidden select-none hover:bg-accent hover:text-accent-foreground",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[f.icon?s.jsx("img",{src:f.icon,alt:f.title,className:"w-4 h-4 rounded"}):s.jsx("div",{className:"w-4 h-4 rounded bg-primary/10 flex items-center justify-center text-xs font-semibold text-primary",children:f.title.slice(0,1).toUpperCase()}),s.jsx("span",{className:"flex-1",children:f.title})]}),s.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center text-muted-foreground",children:s.jsx(Be,{size:16})})]},f.id??f.title))]}),e[4]=r,e[5]=a,e[6]=n):n=e[6];let N;e[7]!==h||e[8]!==n?(N=s.jsxs(De,{children:[h,n]}),e[7]=h,e[8]=n,e[9]=N):N=e[9];let u;return e[10]!==c||e[11]!==y||e[12]!==N||e[13]!==o?(u=s.jsxs(Me,{value:o,onValueChange:c,children:[y,N]}),e[10]=c,e[11]=y,e[12]=N,e[13]=o,e[14]=u):u=e[14],u}function ot(t){return s.jsx(Ke,{className:"cursor-pointer",value:t.id??t.name,children:s.jsxs("div",{className:"flex items-center gap-2",children:[t.icon?s.jsx("img",{src:t.icon,alt:t.name,className:"w-4 h-4 rounded"}):s.jsx("div",{className:"w-4 h-4 rounded from-primary/20 to-primary/10 flex items-center justify-center text-xs font-semibold text-primary",children:t.name.slice(0,1).toUpperCase()}),s.jsx("span",{children:t.name})]})},t.id??t.name)}function nt({registries:t,onConnected:e}){const l=ae(),{org:{slug:o}}=Z(),{data:c}=ue.useSession(),r=oe(),[a,i]=M.useState(!1),d=t[0],y=async()=>{if(!(!d||!c?.user?.id)){i(!0);try{const n=await l.create.mutateAsync(d);e?.(n.id)}finally{i(!1)}}},h=()=>{r({to:"/$org/mcps",params:{org:o},search:{action:"create"}})};return s.jsx(Oe,{image:s.jsx("img",{src:"/store-empty-state.svg",alt:"No store connected",width:336,height:320,className:"max-w-full h-auto"}),title:"Connect to registry",description:"Connect to discover and use Connections from the community.",actions:s.jsxs(s.Fragment,{children:[s.jsxs(Q,{variant:"outline",onClick:y,disabled:a||!d,children:[d?.icon&&s.jsx("img",{src:d.icon,alt:"",className:"size-4"}),a?"Installing...":"Install Registry"]}),s.jsx(Q,{variant:"outline",onClick:h,children:"Custom Connection"})]})})}function Yt(){const t=G.c(41),{org:e}=Z(),l=Te(),o=ae(),c=xe(),r=c.location.pathname.includes("/store/")&&c.location.pathname.split("/").length>3,a=Ve(l);let i;t[0]!==a?(i=a.map(ct),t[0]=a,t[1]=i):i=t[1];const d=i;let y;t[2]!==e.slug?(y=We.selectedRegistry(e.slug),t[2]=e.slug,t[3]=y):y=t[3];const[h,n]=qe(y,at);let N;if(t[4]!==a||t[5]!==h){let p;t[7]!==h?(p=K=>K.id===h,t[7]=h,t[8]=p):p=t[8],N=a.find(p),t[4]=a,t[5]=h,t[6]=N}else N=t[6];const f=N?.id||a[0]?.id||"";let j;t[9]!==e.id?(j=be(e.id),t[9]=e.id,t[10]=j):j=t[10];let R;t[11]!==j?(R=[j],t[11]=j,t[12]=R):R=t[12];const C=R;let b;t[13]===Symbol.for("react.memo_cache_sentinel")?(b=[Se()],t[13]=b):b=t[13];const k=b;let P;t[14]!==o.create||t[15]!==n?(P=async p=>{const K=await o.create.mutateAsync(p);n(K.id)},t[14]=o.create,t[15]=n,t[16]=P):P=t[16];const v=P;let S;t[17]!==a?(S=new Set(a.map(it)),t[17]=a,t[18]=S):S=t[18];const T=S;let I;t[19]!==T||t[20]!==C?(I=C.filter(p=>p.id&&!T.has(p.id)),t[19]=T,t[20]=C,t[21]=I):I=t[21];const z=I;let L;t[22]!==T?(L=k.filter(p=>p.id&&!T.has(p.id)),t[22]=T,t[23]=L):L=t[23];const $=L;if(r){let p;return t[24]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsx(ge,{}),t[24]=p):p=t[24],p}let m;t[25]!==v?(m=async p=>v(p),t[25]=v,t[26]=m):m=t[26];let x;t[27]!==z||t[28]!==f||t[29]!==d||t[30]!==n||t[31]!==m?(x=s.jsx(pe,{title:"Store",ctaButton:s.jsx(rt,{wellKnownRegistries:z,registries:d,value:f,onValueChange:n,onAddWellKnown:m,placeholder:"Select store..."})}),t[27]=z,t[28]=f,t[29]=d,t[30]=n,t[31]=m,t[32]=x):x=t[32];let g;t[33]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[s.jsx(J,{size:32,className:"animate-spin text-muted-foreground mb-4"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading store items..."})]}),t[33]=g):g=t[33];let w;t[34]!==$||t[35]!==f||t[36]!==n?(w=s.jsx("div",{className:"h-full flex flex-col overflow-hidden",children:s.jsx(M.Suspense,{fallback:g,children:f?s.jsx(lt,{registryId:f}):s.jsx("div",{className:"flex flex-col items-center justify-center h-full",children:s.jsx(nt,{registries:$,onConnected:p=>{n(p)}})})})}),t[34]=$,t[35]=f,t[36]=n,t[37]=w):w=t[37];let F;return t[38]!==x||t[39]!==w?(F=s.jsxs("div",{className:"h-full flex flex-col overflow-hidden",children:[x,w]}),t[38]=x,t[39]=w,t[40]=F):F=t[40],F}function it(t){return t.id}function at(t){return t??""}function ct(t){return{id:t.id,name:t.title,icon:t.icon||void 0}}export{Yt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as b,j as s,r as $,u as ie,g as le,ab as Y}from"./index-BPDeXK2i.js";import{u as X,S as Q,V as re,C as x}from"./index-DvgT-Ylp.js";import{T as ne,i as oe,a as ae,t as ce}from"./typewriter-title-Cy3KhZIj.js";import{E as me}from"./error-boundary-TOEZuFH_.js";import{I as Z}from"./empty-state-BZp4ZNND.js";import{P as de,a as fe,b as ue}from"./popover-DRX_xxtv.js";import{c as ee,B as A}from"./button-CZtA6e27.js";import{i as he,b as xe}from"./constants-DTaz4Q6l.js";import{b as pe}from"./use-virtual-mcp-BEkx8KQT.js";import{i as je}from"./Grid01-g97U8qPw.js";import{t as te}from"./Users03-CnY0pIWD.js";import{T as q,a as G,c as K}from"./tooltip-DZZDyQXc.js";import{c as ge}from"./Pin01-Bi-ERQ-E.js";import{s as be}from"./Plus-C51GvXtB.js";import{i as ye}from"./Share07-CExAPT_-.js";import"./X-CCyovJoX.js";import"./use-collections-B6FnnWjM.js";import"./useMutation-BMW6ucfs.js";import"./useQuery-BytVpPBL.js";import"./use-connection-D3KERTW2.js";import"./use-binding-DA5WksVi.js";import"./binder-CP43LYqU.js";import"./monaco-editor-CSEPfDhp.js";import"./infiniteQueryObserver-CkfPEnDe.js";import"./spinner-DtqP2JJP.js";import"./localstorage-keys-CQxtmiwn.js";import"./input-BH7rcQ6N.js";import"./select-t24zUjd9.js";import"./Check-DU7cpByy.js";import"./ChevronDown-azWbt7u-.js";import"./File06-Bkbh_2zg.js";import"./Image01-Bjd8Adfr.js";import"./SearchMd-C-0AQItY.js";import"./use-mcp-prompts-Bg7WZoid.js";import"./dialog-_hbfKjgR.js";import"./form-DVP4UGQF.js";import"./AlertCircle-fPPcaR5f.js";import"./ArrowUp-CtR259iO.js";import"./Edit01-Y-NULVv3.js";import"./Copy01-BS5F7eSr.js";import"./Terminal-BIPX0F_t.js";import"./generate-id-Dyweu44Y.js";import"./Trash01-DlMEaqpj.js";import"./use-create-virtual-mcp-DTS0bNB1.js";function _e(e){const t=b.c(15),{agent:i}=e,{setVirtualMcpId:h}=X();let l;t[0]!==i.id||t[1]!==h?(l=()=>{h(i.id)},t[0]=i.id,t[1]=h,t[2]=l):l=t[2];const r=l;let a;t[3]===Symbol.for("react.memo_cache_sentinel")?(a=ee("flex flex-col items-center gap-3 p-2 rounded-lg","transition-colors hover:bg-accent/30","cursor-pointer","self-stretch"),t[3]=a):a=t[3];const c=`Select agent ${i.title}`;let d;t[4]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(te,{size:20}),t[4]=d):d=t[4];let n;t[5]!==i.icon||t[6]!==i.title?(n=s.jsx(Z,{icon:i.icon,name:i.title,fallbackIcon:d}),t[5]=i.icon,t[6]=i.title,t[7]=n):n=t[7];let o;t[8]!==i.title?(o=s.jsx("p",{className:"text-sm text-foreground text-center leading-tight line-clamp-2",children:i.title}),t[8]=i.title,t[9]=o):o=t[9];let m;return t[10]!==r||t[11]!==c||t[12]!==n||t[13]!==o?(m=s.jsxs("button",{type:"button",onClick:r,className:a,"aria-label":c,children:[n,o]}),t[10]=r,t[11]=c,t[12]=n,t[13]=o,t[14]=m):m=t[14],m}function Ne(e){const t=b.c(14),{virtualMcps:i,selectedVirtualMcpId:h,onVirtualMcpChange:l}=e,[r,a]=$.useState(!1),c=$.useRef(null);let d,n;t[0]!==r?(d=()=>{r&&setTimeout(()=>{c.current?.focus()},0)},n=[r],t[0]=r,t[1]=d,t[2]=n):(d=t[1],n=t[2]),$.useEffect(d,n);let o;t[3]!==l?(o=J=>{l(J),a(!1)},t[3]=l,t[4]=o):o=t[4];const m=o;let f;t[5]===Symbol.for("react.memo_cache_sentinel")?(f=ee("flex flex-col items-center gap-3 p-2 rounded-lg","transition-colors hover:bg-accent/30","cursor-pointer","self-stretch"),t[5]=f):f=t[5];let u;t[6]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx(de,{asChild:!0,children:s.jsxs("button",{type:"button",className:f,"aria-label":"See all agents",children:[s.jsx("div",{className:"size-12 rounded-lg bg-accent flex items-center justify-center shrink-0",children:s.jsx(je,{size:24,className:"text-foreground"})}),s.jsx("p",{className:"text-sm text-foreground text-center leading-tight",children:"See all"})]})}),t[6]=u):u=t[6];let p;t[7]!==m||t[8]!==h||t[9]!==i?(p=s.jsx(fe,{className:"w-[550px] p-0 overflow-hidden",align:"start",side:"top",sideOffset:8,children:s.jsx(re,{virtualMcps:i,selectedVirtualMcpId:h,onVirtualMcpChange:m,searchInputRef:c})}),t[7]=m,t[8]=h,t[9]=i,t[10]=p):p=t[10];let g;return t[11]!==r||t[12]!==p?(g=s.jsxs(ue,{open:r,onOpenChange:a,children:[u,p]}),t[11]=r,t[12]=p,t[13]=g):g=t[13],g}function Se(){const e=b.c(20),t=pe(),{selectedVirtualMcp:i,setVirtualMcpId:h}=X();let l,r,a,c,d,n;if(e[0]!==t){d=Symbol.for("react.early_return_sentinel");e:{const p=t.filter(we).slice(0,6);if(p.length===0){d=null;break e}n=t.map(Ce),a="w-full max-w-[800px]",e[7]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx("h2",{className:"text-sm font-medium text-muted-foreground mb-4",children:"Recently used agents"}),e[7]=c):c=e[7],l="grid grid-cols-3 sm:grid-cols-4 md:grid-cols-7 gap-2",r=p.map(ve)}e[0]=t,e[1]=l,e[2]=r,e[3]=a,e[4]=c,e[5]=d,e[6]=n}else l=e[1],r=e[2],a=e[3],c=e[4],d=e[5],n=e[6];if(d!==Symbol.for("react.early_return_sentinel"))return d;const o=i?.id??null;let m;e[8]!==h||e[9]!==o||e[10]!==n?(m=s.jsx(Ne,{virtualMcps:n,selectedVirtualMcpId:o,onVirtualMcpChange:h}),e[8]=h,e[9]=o,e[10]=n,e[11]=m):m=e[11];let f;e[12]!==l||e[13]!==r||e[14]!==m?(f=s.jsxs("div",{className:l,children:[r,m]}),e[12]=l,e[13]=r,e[14]=m,e[15]=f):f=e[15];let u;return e[16]!==a||e[17]!==c||e[18]!==f?(u=s.jsxs("div",{className:a,children:[c,f]}),e[16]=a,e[17]=c,e[18]=f,e[19]=u):u=e[19],u}function ve(e){return s.jsx(_e,{agent:e},e.id??"default")}function Ce(e){return{id:e.id,title:e.title,description:e.description,icon:e.icon}}function we(e){return e.id!==null&&!he(e.id)}function ke(){const e=b.c(2);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(Q,{className:"h-5 w-40 mb-4"}),e[0]=t):t=e[0];let i;return e[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsxs("div",{className:"w-full max-w-[800px]",children:[t,s.jsx("div",{className:"grid grid-cols-3 sm:grid-cols-4 md:grid-cols-7 gap-2",children:Array.from({length:7}).map(ze)})]}),e[1]=i):i=e[1],i}function ze(e,t){return s.jsxs("div",{className:"flex flex-col items-center gap-3 p-2 self-stretch",children:[s.jsx(Q,{className:"size-6 rounded-md shrink-0"}),s.jsx(Q,{className:"h-4 w-full"})]},t)}function Te(){const e=b.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx($.Suspense,{fallback:s.jsx(ke,{}),children:s.jsx(Se,{})}),e[0]=t):t=e[0],t}function Me(){const e=new Date().getHours();return e>=5&&e<12?"Morning":e>=12&&e<17?"Afternoon":e>=17&&e<22?"Evening":"Night"}function Ie(){const e=b.c(60),{org:t}=ie(),{data:i}=le.useSession(),{modelsConnections:h,isChatEmpty:l,activeThreadId:r,setActiveThreadId:a,threads:c,selectedVirtualMcp:d}=X();let n;if(e[0]!==r||e[1]!==c){let j;e[3]!==r?(j=se=>se.id===r,e[3]=r,e[4]=j):j=e[4],n=c.find(j),e[0]=r,e[1]=c,e[2]=n}else n=e[2];const o=n,[m,f]=$.useState(!1);let u;e[5]!==i?.user?.name?(u=i?.user?.name?.split(" ")[0]||"there",e[5]=i?.user?.name,e[6]=u):u=e[6];const p=u;let g;e[7]===Symbol.for("react.memo_cache_sentinel")?(g=Me(),e[7]=g):g=e[7];const J=g;let V;e[8]!==t.id?(V=xe(t.id),e[8]=t.id,e[9]=V):V=e[9];const E=d??V;if(h.length===0){let j;return e[10]!==t?(j=s.jsx("div",{className:"flex flex-col size-full bg-background items-center justify-center",children:s.jsx(x.NoLlmBindingEmptyState,{org:t})}),e[10]=t,e[11]=j):j=e[11],j}let y;e[12]!==o||e[13]!==l?(y=s.jsx(x.Header.Left,{children:!l&&o?.title?s.jsx(ne,{text:o.title,className:"text-sm font-medium text-foreground"}):s.jsx("span",{className:"text-sm font-medium text-foreground",children:"Chat"})}),e[12]=o,e[13]=l,e[14]=y):y=e[14];let _;e[15]!==a?(_=()=>a(crypto.randomUUID()),e[15]=a,e[16]=_):_=e[16];let H;e[17]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(be,{size:16}),e[17]=H):H=e[17];let N;e[18]!==l||e[19]!==_?(N=s.jsx(q,{asChild:!0,children:s.jsx(A,{type:"button",variant:"outline",size:"icon",className:"size-7 border border-input",onClick:_,disabled:l,"aria-label":"New chat",children:H})}),e[18]=l,e[19]=_,e[20]=N):N=e[20];let R;e[21]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx(G,{children:"New chat"}),e[21]=R):R=e[21];let S;e[22]!==N?(S=s.jsxs(K,{children:[N,R]}),e[22]=N,e[23]=S):S=e[23];let O;e[24]===Symbol.for("react.memo_cache_sentinel")?(O=()=>f(!0),e[24]=O):O=e[24];let B;e[25]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsxs(K,{children:[s.jsx(q,{asChild:!0,children:s.jsx(A,{type:"button",variant:"outline",size:"icon",className:"size-7 border border-input",onClick:O,"aria-label":"Chat history",children:s.jsx(oe,{size:16})})}),s.jsx(G,{children:"Chat history"})]}),e[25]=B):B=e[25];let L;e[26]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx(ge,{size:16}),e[26]=L):L=e[26];let v;e[27]!==l?(v=s.jsx(q,{asChild:!0,children:s.jsx(A,{type:"button",variant:"outline",size:"icon",className:"size-7 border border-input",onClick:$e,disabled:l,"aria-label":"Pin chat",children:L})}),e[27]=l,e[28]=v):v=e[28];let D;e[29]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx(G,{children:"Pin chat"}),e[29]=D):D=e[29];let C;e[30]!==v?(C=s.jsxs(K,{children:[v,D]}),e[30]=v,e[31]=C):C=e[31];let F;e[32]===Symbol.for("react.memo_cache_sentinel")?(F=s.jsx(ye,{size:16}),e[32]=F):F=e[32];let w;e[33]!==l?(w=s.jsx(q,{asChild:!0,children:s.jsx(A,{type:"button",variant:"outline",size:"icon",className:"size-7 border border-input",onClick:Pe,disabled:l,"aria-label":"Share chat",children:F})}),e[33]=l,e[34]=w):w=e[34];let U;e[35]===Symbol.for("react.memo_cache_sentinel")?(U=s.jsx(G,{children:"Share chat"}),e[35]=U):U=e[35];let k;e[36]!==w?(k=s.jsxs(K,{children:[w,U]}),e[36]=w,e[37]=k):k=e[37];let z;e[38]!==C||e[39]!==k||e[40]!==S?(z=s.jsxs(x.Header.Right,{children:[S,B,C,k]}),e[38]=C,e[39]=k,e[40]=S,e[41]=z):z=e[41];let T;e[42]!==z||e[43]!==y?(T=s.jsxs(x.Header,{children:[y,z]}),e[42]=z,e[43]=y,e[44]=T):T=e[44];let M;e[45]!==E||e[46]!==l||e[47]!==p?(M=l?s.jsxs("div",{className:"flex-1 min-h-0 flex flex-col items-center justify-center px-10 pb-32 pt-10",children:[s.jsxs("div",{className:"flex flex-col items-center gap-3 w-full max-w-[600px]",children:[s.jsx("div",{className:"flex justify-center",children:s.jsx(Z,{icon:E.icon,name:E.title,size:"md",fallbackIcon:s.jsx(te,{size:20}),className:"size-12 rounded-xl border border-stone-200/60 shadow-sm aspect-square transition-opacity duration-200"})}),s.jsxs("div",{className:"text-center",children:[s.jsxs("p",{className:"text-lg font-medium text-foreground",children:[J," ",p,","]}),s.jsx("p",{className:"text-base text-muted-foreground opacity-50 mb-0",children:"What are we building today?"})]}),s.jsx("div",{className:"w-full -mt-1",children:s.jsx(x.Input,{})}),s.jsx(x.IceBreakers,{className:"w-full"})]}),s.jsx("div",{className:"flex flex-col items-center w-full mt-4",children:s.jsx(Te,{})})]}):s.jsxs(s.Fragment,{children:[s.jsx(x.Main,{children:s.jsx(x.Messages,{minHeightOffset:280})}),s.jsx(x.Footer,{children:s.jsx(x.Input,{})})]}),e[45]=E,e[46]=l,e[47]=p,e[48]=M):M=e[48];let I;e[49]!==a?(I=j=>{a(j),f(!1)},e[49]=a,e[50]=I):I=e[50];let P;e[51]!==r||e[52]!==m||e[53]!==I||e[54]!==c?(P=s.jsx(ae,{open:m,onOpenChange:f,threads:c,activeThreadId:r,onThreadSelect:I}),e[51]=r,e[52]=m,e[53]=I,e[54]=c,e[55]=P):P=e[55];let W;return e[56]!==T||e[57]!==M||e[58]!==P?(W=s.jsxs(x,{children:[T,M,P]}),e[56]=T,e[57]=M,e[58]=P,e[59]=W):W=e[59],W}function Pe(){Y.info("Share feature coming soon")}function $e(){Y.info("Pin feature coming soon")}function Ae(e){const t=b.c(14),{error:i,onRetry:h}=e,l=i?.message?.includes("401")||i?.message?.toLowerCase().includes("unauthorized");let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsxs(x.Header,{children:[s.jsx(x.Header.Left,{children:s.jsx("span",{className:"text-sm font-medium text-foreground",children:"Chat"})}),s.jsx(x.Header.Right,{})]}),t[0]=r):r=t[0];let a;t[1]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx("div",{className:"bg-destructive/10 p-3 rounded-full mx-auto w-fit",children:s.jsx(ce,{className:"h-6 w-6 text-destructive"})}),t[1]=a):a=t[1];const c=l?"Unable to load models":"Something went wrong";let d;t[2]!==c?(d=s.jsx("h3",{className:"text-lg font-medium",children:c}),t[2]=c,t[3]=d):d=t[3];const n=l?"There was an authentication error while loading the models. This might be due to an expired session or invalid API key.":i?.message||"An unexpected error occurred";let o;t[4]!==n?(o=s.jsx("p",{className:"text-sm text-muted-foreground",children:n}),t[4]=n,t[5]=o):o=t[5];let m;t[6]!==d||t[7]!==o?(m=s.jsxs("div",{className:"space-y-2",children:[d,o]}),t[6]=d,t[7]=o,t[8]=m):m=t[8];let f;t[9]!==h?(f=s.jsx(A,{variant:"outline",onClick:h,children:"Try again"}),t[9]=h,t[10]=f):f=t[10];let u;return t[11]!==m||t[12]!==f?(u=s.jsxs(x,{children:[r,s.jsx("div",{className:"flex-1 flex flex-col items-center justify-center p-6 text-center",children:s.jsxs("div",{className:"max-w-sm space-y-4",children:[a,m,f]})})]}),t[11]=m,t[12]=f,t[13]=u):u=t[13],u}function kt(){const e=b.c(2);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(x.Skeleton,{}),e[0]=t):t=e[0];let i;return e[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(me,{fallback:Ve,children:s.jsx($.Suspense,{fallback:t,children:s.jsx(x.Provider,{children:s.jsx(Ie,{})})})}),e[1]=i):i=e[1],i}function Ve(e){const{error:t,resetError:i}=e;return s.jsx(Ae,{error:t,onRetry:i})}export{kt as default};
|
|
1
|
+
import{c as b,j as s,r as $,u as ie,g as le,ab as Y}from"./index-C8OOnmm1.js";import{u as X,S as Q,V as re,C as x}from"./index-CIvJ2wFV.js";import{T as ne,i as oe,a as ae,t as ce}from"./typewriter-title-DRU6uRKP.js";import{E as me}from"./error-boundary-Dg0Af8BA.js";import{I as Z}from"./empty-state-Cr5g6Vh9.js";import{P as de,a as fe,b as ue}from"./popover-B2yKs5LA.js";import{c as ee,B as A}from"./button-C83AQWC1.js";import{i as he,b as xe}from"./constants-ytntCGH9.js";import{b as pe}from"./use-virtual-mcp-C8lLKpyG.js";import{i as je}from"./Grid01-C_dMOr-7.js";import{t as te}from"./Users03-CSRHEIl2.js";import{T as q,a as G,c as K}from"./tooltip-aHeHMhKh.js";import{c as ge}from"./Pin01-DBKe5RmK.js";import{s as be}from"./Plus-CcqPpwU0.js";import{i as ye}from"./Share07-B5yrbjwk.js";import"./X-Dz8JZ2ZX.js";import"./use-collections-CkAaybvR.js";import"./useMutation-C4aXMLv3.js";import"./useQuery-DNOH3p7p.js";import"./use-connection-TLrid9RM.js";import"./use-binding-C2mDgpbB.js";import"./binder-Dh-m11Sm.js";import"./monaco-editor-gim9RLZ3.js";import"./infiniteQueryObserver-B1N6PF-z.js";import"./spinner-CwfYynNt.js";import"./localstorage-keys-N4jrVxvr.js";import"./input-CrR0FEof.js";import"./select-BlFReF6r.js";import"./Check-CXkamnnr.js";import"./ChevronDown-DaqG_J6Z.js";import"./File06-C7QVLRp6.js";import"./Image01-C6IcS9Ip.js";import"./SearchMd-Ns-pswyj.js";import"./use-mcp-prompts-D5tApqEs.js";import"./dialog-D_ebnPDF.js";import"./form-BISYEAnP.js";import"./AlertCircle--GzH2vta.js";import"./ArrowUp-BfBrilbk.js";import"./Edit01-7Ak8JL9W.js";import"./Copy01-CpBgXJFP.js";import"./Terminal-qZhwvVsv.js";import"./generate-id-Dyweu44Y.js";import"./Trash01-DVYV3BJw.js";import"./use-create-virtual-mcp-Bi6QQFl1.js";function _e(e){const t=b.c(15),{agent:i}=e,{setVirtualMcpId:h}=X();let l;t[0]!==i.id||t[1]!==h?(l=()=>{h(i.id)},t[0]=i.id,t[1]=h,t[2]=l):l=t[2];const r=l;let a;t[3]===Symbol.for("react.memo_cache_sentinel")?(a=ee("flex flex-col items-center gap-3 p-2 rounded-lg","transition-colors hover:bg-accent/30","cursor-pointer","self-stretch"),t[3]=a):a=t[3];const c=`Select agent ${i.title}`;let d;t[4]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(te,{size:20}),t[4]=d):d=t[4];let n;t[5]!==i.icon||t[6]!==i.title?(n=s.jsx(Z,{icon:i.icon,name:i.title,fallbackIcon:d}),t[5]=i.icon,t[6]=i.title,t[7]=n):n=t[7];let o;t[8]!==i.title?(o=s.jsx("p",{className:"text-sm text-foreground text-center leading-tight line-clamp-2",children:i.title}),t[8]=i.title,t[9]=o):o=t[9];let m;return t[10]!==r||t[11]!==c||t[12]!==n||t[13]!==o?(m=s.jsxs("button",{type:"button",onClick:r,className:a,"aria-label":c,children:[n,o]}),t[10]=r,t[11]=c,t[12]=n,t[13]=o,t[14]=m):m=t[14],m}function Ne(e){const t=b.c(14),{virtualMcps:i,selectedVirtualMcpId:h,onVirtualMcpChange:l}=e,[r,a]=$.useState(!1),c=$.useRef(null);let d,n;t[0]!==r?(d=()=>{r&&setTimeout(()=>{c.current?.focus()},0)},n=[r],t[0]=r,t[1]=d,t[2]=n):(d=t[1],n=t[2]),$.useEffect(d,n);let o;t[3]!==l?(o=J=>{l(J),a(!1)},t[3]=l,t[4]=o):o=t[4];const m=o;let f;t[5]===Symbol.for("react.memo_cache_sentinel")?(f=ee("flex flex-col items-center gap-3 p-2 rounded-lg","transition-colors hover:bg-accent/30","cursor-pointer","self-stretch"),t[5]=f):f=t[5];let u;t[6]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx(de,{asChild:!0,children:s.jsxs("button",{type:"button",className:f,"aria-label":"See all agents",children:[s.jsx("div",{className:"size-12 rounded-lg bg-accent flex items-center justify-center shrink-0",children:s.jsx(je,{size:24,className:"text-foreground"})}),s.jsx("p",{className:"text-sm text-foreground text-center leading-tight",children:"See all"})]})}),t[6]=u):u=t[6];let p;t[7]!==m||t[8]!==h||t[9]!==i?(p=s.jsx(fe,{className:"w-[550px] p-0 overflow-hidden",align:"start",side:"top",sideOffset:8,children:s.jsx(re,{virtualMcps:i,selectedVirtualMcpId:h,onVirtualMcpChange:m,searchInputRef:c})}),t[7]=m,t[8]=h,t[9]=i,t[10]=p):p=t[10];let g;return t[11]!==r||t[12]!==p?(g=s.jsxs(ue,{open:r,onOpenChange:a,children:[u,p]}),t[11]=r,t[12]=p,t[13]=g):g=t[13],g}function Se(){const e=b.c(20),t=pe(),{selectedVirtualMcp:i,setVirtualMcpId:h}=X();let l,r,a,c,d,n;if(e[0]!==t){d=Symbol.for("react.early_return_sentinel");e:{const p=t.filter(we).slice(0,6);if(p.length===0){d=null;break e}n=t.map(Ce),a="w-full max-w-[800px]",e[7]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx("h2",{className:"text-sm font-medium text-muted-foreground mb-4",children:"Recently used agents"}),e[7]=c):c=e[7],l="grid grid-cols-3 sm:grid-cols-4 md:grid-cols-7 gap-2",r=p.map(ve)}e[0]=t,e[1]=l,e[2]=r,e[3]=a,e[4]=c,e[5]=d,e[6]=n}else l=e[1],r=e[2],a=e[3],c=e[4],d=e[5],n=e[6];if(d!==Symbol.for("react.early_return_sentinel"))return d;const o=i?.id??null;let m;e[8]!==h||e[9]!==o||e[10]!==n?(m=s.jsx(Ne,{virtualMcps:n,selectedVirtualMcpId:o,onVirtualMcpChange:h}),e[8]=h,e[9]=o,e[10]=n,e[11]=m):m=e[11];let f;e[12]!==l||e[13]!==r||e[14]!==m?(f=s.jsxs("div",{className:l,children:[r,m]}),e[12]=l,e[13]=r,e[14]=m,e[15]=f):f=e[15];let u;return e[16]!==a||e[17]!==c||e[18]!==f?(u=s.jsxs("div",{className:a,children:[c,f]}),e[16]=a,e[17]=c,e[18]=f,e[19]=u):u=e[19],u}function ve(e){return s.jsx(_e,{agent:e},e.id??"default")}function Ce(e){return{id:e.id,title:e.title,description:e.description,icon:e.icon}}function we(e){return e.id!==null&&!he(e.id)}function ke(){const e=b.c(2);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(Q,{className:"h-5 w-40 mb-4"}),e[0]=t):t=e[0];let i;return e[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsxs("div",{className:"w-full max-w-[800px]",children:[t,s.jsx("div",{className:"grid grid-cols-3 sm:grid-cols-4 md:grid-cols-7 gap-2",children:Array.from({length:7}).map(ze)})]}),e[1]=i):i=e[1],i}function ze(e,t){return s.jsxs("div",{className:"flex flex-col items-center gap-3 p-2 self-stretch",children:[s.jsx(Q,{className:"size-6 rounded-md shrink-0"}),s.jsx(Q,{className:"h-4 w-full"})]},t)}function Te(){const e=b.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx($.Suspense,{fallback:s.jsx(ke,{}),children:s.jsx(Se,{})}),e[0]=t):t=e[0],t}function Me(){const e=new Date().getHours();return e>=5&&e<12?"Morning":e>=12&&e<17?"Afternoon":e>=17&&e<22?"Evening":"Night"}function Ie(){const e=b.c(60),{org:t}=ie(),{data:i}=le.useSession(),{modelsConnections:h,isChatEmpty:l,activeThreadId:r,setActiveThreadId:a,threads:c,selectedVirtualMcp:d}=X();let n;if(e[0]!==r||e[1]!==c){let j;e[3]!==r?(j=se=>se.id===r,e[3]=r,e[4]=j):j=e[4],n=c.find(j),e[0]=r,e[1]=c,e[2]=n}else n=e[2];const o=n,[m,f]=$.useState(!1);let u;e[5]!==i?.user?.name?(u=i?.user?.name?.split(" ")[0]||"there",e[5]=i?.user?.name,e[6]=u):u=e[6];const p=u;let g;e[7]===Symbol.for("react.memo_cache_sentinel")?(g=Me(),e[7]=g):g=e[7];const J=g;let V;e[8]!==t.id?(V=xe(t.id),e[8]=t.id,e[9]=V):V=e[9];const E=d??V;if(h.length===0){let j;return e[10]!==t?(j=s.jsx("div",{className:"flex flex-col size-full bg-background items-center justify-center",children:s.jsx(x.NoLlmBindingEmptyState,{org:t})}),e[10]=t,e[11]=j):j=e[11],j}let y;e[12]!==o||e[13]!==l?(y=s.jsx(x.Header.Left,{children:!l&&o?.title?s.jsx(ne,{text:o.title,className:"text-sm font-medium text-foreground"}):s.jsx("span",{className:"text-sm font-medium text-foreground",children:"Chat"})}),e[12]=o,e[13]=l,e[14]=y):y=e[14];let _;e[15]!==a?(_=()=>a(crypto.randomUUID()),e[15]=a,e[16]=_):_=e[16];let H;e[17]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(be,{size:16}),e[17]=H):H=e[17];let N;e[18]!==l||e[19]!==_?(N=s.jsx(q,{asChild:!0,children:s.jsx(A,{type:"button",variant:"outline",size:"icon",className:"size-7 border border-input",onClick:_,disabled:l,"aria-label":"New chat",children:H})}),e[18]=l,e[19]=_,e[20]=N):N=e[20];let R;e[21]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx(G,{children:"New chat"}),e[21]=R):R=e[21];let S;e[22]!==N?(S=s.jsxs(K,{children:[N,R]}),e[22]=N,e[23]=S):S=e[23];let O;e[24]===Symbol.for("react.memo_cache_sentinel")?(O=()=>f(!0),e[24]=O):O=e[24];let B;e[25]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsxs(K,{children:[s.jsx(q,{asChild:!0,children:s.jsx(A,{type:"button",variant:"outline",size:"icon",className:"size-7 border border-input",onClick:O,"aria-label":"Chat history",children:s.jsx(oe,{size:16})})}),s.jsx(G,{children:"Chat history"})]}),e[25]=B):B=e[25];let L;e[26]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx(ge,{size:16}),e[26]=L):L=e[26];let v;e[27]!==l?(v=s.jsx(q,{asChild:!0,children:s.jsx(A,{type:"button",variant:"outline",size:"icon",className:"size-7 border border-input",onClick:$e,disabled:l,"aria-label":"Pin chat",children:L})}),e[27]=l,e[28]=v):v=e[28];let D;e[29]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx(G,{children:"Pin chat"}),e[29]=D):D=e[29];let C;e[30]!==v?(C=s.jsxs(K,{children:[v,D]}),e[30]=v,e[31]=C):C=e[31];let F;e[32]===Symbol.for("react.memo_cache_sentinel")?(F=s.jsx(ye,{size:16}),e[32]=F):F=e[32];let w;e[33]!==l?(w=s.jsx(q,{asChild:!0,children:s.jsx(A,{type:"button",variant:"outline",size:"icon",className:"size-7 border border-input",onClick:Pe,disabled:l,"aria-label":"Share chat",children:F})}),e[33]=l,e[34]=w):w=e[34];let U;e[35]===Symbol.for("react.memo_cache_sentinel")?(U=s.jsx(G,{children:"Share chat"}),e[35]=U):U=e[35];let k;e[36]!==w?(k=s.jsxs(K,{children:[w,U]}),e[36]=w,e[37]=k):k=e[37];let z;e[38]!==C||e[39]!==k||e[40]!==S?(z=s.jsxs(x.Header.Right,{children:[S,B,C,k]}),e[38]=C,e[39]=k,e[40]=S,e[41]=z):z=e[41];let T;e[42]!==z||e[43]!==y?(T=s.jsxs(x.Header,{children:[y,z]}),e[42]=z,e[43]=y,e[44]=T):T=e[44];let M;e[45]!==E||e[46]!==l||e[47]!==p?(M=l?s.jsxs("div",{className:"flex-1 min-h-0 flex flex-col items-center justify-center px-10 pb-32 pt-10",children:[s.jsxs("div",{className:"flex flex-col items-center gap-3 w-full max-w-[600px]",children:[s.jsx("div",{className:"flex justify-center",children:s.jsx(Z,{icon:E.icon,name:E.title,size:"md",fallbackIcon:s.jsx(te,{size:20}),className:"size-12 rounded-xl border border-stone-200/60 shadow-sm aspect-square transition-opacity duration-200"})}),s.jsxs("div",{className:"text-center",children:[s.jsxs("p",{className:"text-lg font-medium text-foreground",children:[J," ",p,","]}),s.jsx("p",{className:"text-base text-muted-foreground opacity-50 mb-0",children:"What are we building today?"})]}),s.jsx("div",{className:"w-full -mt-1",children:s.jsx(x.Input,{})}),s.jsx(x.IceBreakers,{className:"w-full"})]}),s.jsx("div",{className:"flex flex-col items-center w-full mt-4",children:s.jsx(Te,{})})]}):s.jsxs(s.Fragment,{children:[s.jsx(x.Main,{children:s.jsx(x.Messages,{minHeightOffset:280})}),s.jsx(x.Footer,{children:s.jsx(x.Input,{})})]}),e[45]=E,e[46]=l,e[47]=p,e[48]=M):M=e[48];let I;e[49]!==a?(I=j=>{a(j),f(!1)},e[49]=a,e[50]=I):I=e[50];let P;e[51]!==r||e[52]!==m||e[53]!==I||e[54]!==c?(P=s.jsx(ae,{open:m,onOpenChange:f,threads:c,activeThreadId:r,onThreadSelect:I}),e[51]=r,e[52]=m,e[53]=I,e[54]=c,e[55]=P):P=e[55];let W;return e[56]!==T||e[57]!==M||e[58]!==P?(W=s.jsxs(x,{children:[T,M,P]}),e[56]=T,e[57]=M,e[58]=P,e[59]=W):W=e[59],W}function Pe(){Y.info("Share feature coming soon")}function $e(){Y.info("Pin feature coming soon")}function Ae(e){const t=b.c(14),{error:i,onRetry:h}=e,l=i?.message?.includes("401")||i?.message?.toLowerCase().includes("unauthorized");let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsxs(x.Header,{children:[s.jsx(x.Header.Left,{children:s.jsx("span",{className:"text-sm font-medium text-foreground",children:"Chat"})}),s.jsx(x.Header.Right,{})]}),t[0]=r):r=t[0];let a;t[1]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx("div",{className:"bg-destructive/10 p-3 rounded-full mx-auto w-fit",children:s.jsx(ce,{className:"h-6 w-6 text-destructive"})}),t[1]=a):a=t[1];const c=l?"Unable to load models":"Something went wrong";let d;t[2]!==c?(d=s.jsx("h3",{className:"text-lg font-medium",children:c}),t[2]=c,t[3]=d):d=t[3];const n=l?"There was an authentication error while loading the models. This might be due to an expired session or invalid API key.":i?.message||"An unexpected error occurred";let o;t[4]!==n?(o=s.jsx("p",{className:"text-sm text-muted-foreground",children:n}),t[4]=n,t[5]=o):o=t[5];let m;t[6]!==d||t[7]!==o?(m=s.jsxs("div",{className:"space-y-2",children:[d,o]}),t[6]=d,t[7]=o,t[8]=m):m=t[8];let f;t[9]!==h?(f=s.jsx(A,{variant:"outline",onClick:h,children:"Try again"}),t[9]=h,t[10]=f):f=t[10];let u;return t[11]!==m||t[12]!==f?(u=s.jsxs(x,{children:[r,s.jsx("div",{className:"flex-1 flex flex-col items-center justify-center p-6 text-center",children:s.jsxs("div",{className:"max-w-sm space-y-4",children:[a,m,f]})})]}),t[11]=m,t[12]=f,t[13]=u):u=t[13],u}function kt(){const e=b.c(2);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(x.Skeleton,{}),e[0]=t):t=e[0];let i;return e[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(me,{fallback:Ve,children:s.jsx($.Suspense,{fallback:t,children:s.jsx(x.Provider,{children:s.jsx(Ie,{})})})}),e[1]=i):i=e[1],i}function Ve(e){const{error:t,resetError:i}=e;return s.jsx(Ae,{error:t,onRetry:i})}export{kt as default};
|
package/dist/client/assets/{pin-to-sidebar-button-BhX11X__.js → pin-to-sidebar-button-DbV8w54G.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as T,u as z,j as n}from"./index-
|
|
1
|
+
import{c as T,u as z,j as n}from"./index-C8OOnmm1.js";import{B as y}from"./button-C83AQWC1.js";import{T as C,a as S,b as B,c as v}from"./tooltip-aHeHMhKh.js";import{c as A}from"./Pin01-DBKe5RmK.js";import{u as E,a as I}from"./use-organization-settings-C-IzAdi1.js";function $(h){const e=T.c(19),{title:u,url:t,icon:p}=h,{org:_}=z(),s=E(_.id),f=I(_.id);let a;e[0]!==s?.sidebar_items||e[1]!==t?(a=s?.sidebar_items?.some(m=>m.url===t),e[0]=s?.sidebar_items,e[1]=t,e[2]=a):a=e[2];const r=!!a;let l;e[3]!==f.update||e[4]!==p||e[5]!==r||e[6]!==s?.sidebar_items||e[7]!==u||e[8]!==t?(l=async()=>{const m=s?.sidebar_items||[];let j;r?j=m.filter(P=>P.url!==t):j=[...m,{title:u,url:t,icon:p}],await f.update.mutateAsync({sidebar_items:j})},e[3]=f.update,e[4]=p,e[5]=r,e[6]=s?.sidebar_items,e[7]=u,e[8]=t,e[9]=l):l=e[9];const b=l,x=r?"secondary":"outline";let c;e[10]===Symbol.for("react.memo_cache_sentinel")?(c=n.jsx(A,{size:16}),e[10]=c):c=e[10];let i;e[11]!==b||e[12]!==x?(i=n.jsx(C,{asChild:!0,children:n.jsx(y,{onClick:b,size:"icon",variant:x,className:"size-7 border border-input",children:c})}),e[11]=b,e[12]=x,e[13]=i):i=e[13];const g=r?"Pinned":"Pin to sidebar";let o;e[14]!==g?(o=n.jsx(S,{children:g}),e[14]=g,e[15]=o):o=e[15];let d;return e[16]!==i||e[17]!==o?(d=n.jsx(B,{children:n.jsxs(v,{children:[i,o]})}),e[16]=i,e[17]=o,e[18]=d):d=e[18],d}export{$ as P};
|
package/dist/client/assets/{plugin-empty-state-DQiXYx1t.js → plugin-empty-state-Df2LAyPv.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as n,j as t,$ as o}from"./index-
|
|
1
|
+
import{c as n,j as t,$ as o}from"./index-C8OOnmm1.js";function c(){const s=n.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-8",children:[t.jsx(o,{size:48,className:"text-muted-foreground mb-4"}),t.jsx("h3",{className:"text-lg font-medium mb-2",children:"No storage connected"}),t.jsx("p",{className:"text-muted-foreground text-center max-w-md",children:"Connect an S3-compatible storage service to browse and manage files."})]}),s[0]=e):e=s[0],e}export{c as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as w,j as s,r as S,$ as v}from"./index-
|
|
1
|
+
import{c as w,j as s,r as S,$ as v}from"./index-C8OOnmm1.js";import{i as _}from"./Check-CXkamnnr.js";import{t as $}from"./ChevronDown-DaqG_J6Z.js";function k(x){const e=w.c(32),{connections:l,selectedConnectionId:r,onConnectionChange:N}=x,[n,y]=S.useState(!1),C=S.useRef(null);let p;if(e[0]!==l||e[1]!==r){let t;e[3]!==r?(t=u=>u.id===r,e[3]=r,e[4]=t):t=e[4],p=l.find(t),e[0]=l,e[1]=r,e[2]=p}else p=e[2];const i=p;let b;e[5]===Symbol.for("react.memo_cache_sentinel")?(b=t=>{C.current?.contains(t.relatedTarget)||y(!1)},e[5]=b):b=e[5];const R=b;if(l.length===1){let t;e[6]!==i?(t=i?.icon?s.jsx("img",{src:i.icon,alt:"",className:"size-4 rounded"}):s.jsx(v,{size:16}),e[6]=i,e[7]=t):t=e[7];const u=i?.title||"Storage";let f;e[8]!==u?(f=s.jsx("span",{children:u}),e[8]=u,e[9]=f):f=e[9];let h;return e[10]!==t||e[11]!==f?(h=s.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[t,f]}),e[10]=t,e[11]=f,e[12]=h):h=e[12],h}let o;e[13]!==n?(o=()=>y(!n),e[13]=n,e[14]=o):o=e[14];let c;e[15]!==i?(c=i?.icon?s.jsx("img",{src:i.icon,alt:"",className:"size-4 rounded"}):s.jsx(v,{size:16}),e[15]=i,e[16]=c):c=e[16];const z=i?.title||"Select storage";let a;e[17]!==z?(a=s.jsx("span",{children:z}),e[17]=z,e[18]=a):a=e[18];let j;e[19]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx($,{size:14}),e[19]=j):j=e[19];let d;e[20]!==o||e[21]!==c||e[22]!==a?(d=s.jsxs("button",{type:"button",onClick:o,className:"inline-flex items-center gap-2 px-3 py-1.5 text-sm font-medium rounded-md border border-border bg-background hover:bg-accent transition-colors",children:[c,a,j]}),e[20]=o,e[21]=c,e[22]=a,e[23]=d):d=e[23];let m;e[24]!==l||e[25]!==n||e[26]!==N||e[27]!==r?(m=n&&s.jsx("div",{className:"absolute left-0 top-full mt-1 z-50 min-w-48 rounded-md border border-border bg-popover p-1 shadow-md",children:l.map(t=>s.jsxs("button",{type:"button",onClick:()=>{N(t.id),y(!1)},className:"flex items-center gap-2 w-full px-2 py-1.5 text-sm rounded-sm hover:bg-accent transition-colors",children:[t.icon?s.jsx("img",{src:t.icon,alt:"",className:"size-4 rounded"}):s.jsx(v,{size:16}),s.jsx("span",{className:"flex-1 text-left",children:t.title}),t.id===r&&s.jsx(_,{size:14,className:"text-primary"})]},t.id))}),e[24]=l,e[25]=n,e[26]=N,e[27]=r,e[28]=m):m=e[28];let g;return e[29]!==d||e[30]!==m?(g=s.jsxs("div",{className:"relative",ref:C,onBlur:R,children:[d,m]}),e[29]=d,e[30]=m,e[31]=g):g=e[31],g}function O(x){const e=w.c(2);let l;return e[0]!==x?(l=s.jsx("div",{className:"flex items-center justify-between px-5 py-3 border-b border-border",children:s.jsx(k,{...x})}),e[0]=x,e[1]=l):l=e[1],l}export{O as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as x,c as u,j as r,B as L,u as O,l as A,ac as R,aP as h,ab as N,aZ as D}from"./index-
|
|
1
|
+
import{r as x,c as u,j as r,B as L,u as O,l as A,ac as R,aP as h,ab as N,aZ as D}from"./index-C8OOnmm1.js";import{C as I}from"./collection-header-Fc9BtUxQ.js";import{C as M}from"./collection-page-DvzZtNQd.js";import{u as F,a as H}from"./use-organization-settings-C-IzAdi1.js";import{c as f,B as b}from"./button-C83AQWC1.js";import{S as T}from"./switch-DjW_2nBx.js";import{i as W}from"./ArrowLeft-DzpTEYvO.js";import"./collection-display-button-DlAEKbje.js";import"./dropdown-menu-CzQCi3DZ.js";import"./Grid01-C_dMOr-7.js";import"./ArrowUp-BfBrilbk.js";import"./Check-CXkamnnr.js";import"./List-d88_8fTd.js";import"./tooltip-aHeHMhKh.js";import"./view-mode-toggle-jPeow5hv.js";import"./useMutation-C4aXMLv3.js";import"./constants-ytntCGH9.js";const S=({size:a=24,color:e="currentColor",...s})=>x.createElement("svg",{viewBox:"0 0 24 24",width:a,height:a,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...s},x.createElement("path",{d:"M7 22 17 2"}));S.displayName="SlashDivider";function Z(a){const e=u.c(4);let s;e[0]!==a?({...s}=a,e[0]=a,e[1]=s):s=e[1];let t;return e[2]!==s?(t=r.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...s}),e[2]=s,e[3]=t):t=e[3],t}function q(a){const e=u.c(8);let s,t;e[0]!==a?({className:s,...t}=a,e[0]=a,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let i;e[3]!==s?(i=f("flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2",s),e[3]=s,e[4]=i):i=e[4];let n;return e[5]!==t||e[6]!==i?(n=r.jsx("ol",{"data-slot":"breadcrumb-list",className:i,...t}),e[5]=t,e[6]=i,e[7]=n):n=e[7],n}function C(a){const e=u.c(8);let s,t;e[0]!==a?({className:s,...t}=a,e[0]=a,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let i;e[3]!==s?(i=f("inline-flex items-center gap-1.5",s),e[3]=s,e[4]=i):i=e[4];let n;return e[5]!==t||e[6]!==i?(n=r.jsx("li",{"data-slot":"breadcrumb-item",className:i,...t}),e[5]=t,e[6]=i,e[7]=n):n=e[7],n}function G(a){const e=u.c(10);let s,t,i;e[0]!==a?({asChild:s,className:t,...i}=a,e[0]=a,e[1]=s,e[2]=t,e[3]=i):(s=e[1],t=e[2],i=e[3]);const n=s?L:"a";let o;e[4]!==t?(o=f("hover:text-foreground transition-colors",t),e[4]=t,e[5]=o):o=e[5];let d;return e[6]!==n||e[7]!==i||e[8]!==o?(d=r.jsx(n,{"data-slot":"breadcrumb-link",className:o,...i}),e[6]=n,e[7]=i,e[8]=o,e[9]=d):d=e[9],d}function J(a){const e=u.c(8);let s,t;e[0]!==a?({className:s,...t}=a,e[0]=a,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let i;e[3]!==s?(i=f("text-foreground font-normal",s),e[3]=s,e[4]=i):i=e[4];let n;return e[5]!==t||e[6]!==i?(n=r.jsx("span",{"data-slot":"breadcrumb-page",role:"link","aria-disabled":"true","aria-current":"page",className:i,...t}),e[5]=t,e[6]=i,e[7]=n):n=e[7],n}function K(a){const e=u.c(12);let s,t,i;e[0]!==a?({children:s,className:t,...i}=a,e[0]=a,e[1]=s,e[2]=t,e[3]=i):(s=e[1],t=e[2],i=e[3]);let n;e[4]!==t?(n=f("[&>svg]:size-3.5 text-muted-foreground -rotate-12 opacity-50 list-none",t),e[4]=t,e[5]=n):n=e[5];let o;e[6]!==s?(o=s??r.jsx(S,{}),e[6]=s,e[7]=o):o=e[7];let d;return e[8]!==i||e[9]!==n||e[10]!==o?(d=r.jsx("li",{"data-slot":"breadcrumb-separator",role:"presentation","aria-hidden":"true",className:n,...i,children:o}),e[8]=i,e[9]=n,e[10]=o,e[11]=d):d=e[11],d}function me(){const{org:a}=O(),e=A(),s=F(a.id),{update:t}=H(a.id),[i,n]=x.useState({}),[o,d]=x.useState(!1),p=s?.enabled_plugins??[],k=l=>{const c=i[l];return c!==void 0?c:p.includes(l)},P=()=>{const l=new Set(p);for(const[c,m]of Object.entries(i))m?l.add(c):l.delete(c);return Array.from(l)},j=Object.keys(i).length>0,w=(l,c)=>{const m=p.includes(l);n(c===m?g=>{const{[l]:v,...$}=g;return $}:g=>({...g,[l]:c}))},y=async()=>{d(!0);try{await t.mutateAsync({enabled_plugins:P()}),n({}),N.success("Plugin settings saved")}catch{N.error("Failed to save plugin settings")}finally{d(!1)}},E=()=>{n({})},B=l=>D.find(c=>c.pluginId===l),z=l=>h.find(m=>m.id===l)?.description??null;return r.jsxs(M,{children:[r.jsx(I,{title:r.jsx(Z,{children:r.jsxs(q,{children:[r.jsx(C,{children:r.jsx(G,{asChild:!0,children:r.jsx(R,{to:"/$org/settings",params:{org:a.slug},children:"Settings"})})}),r.jsx(K,{}),r.jsx(C,{children:r.jsx(J,{children:"Plugins"})})]})}),leftElement:r.jsx(b,{variant:"ghost",size:"icon",className:"size-8 text-muted-foreground",onClick:()=>e({to:"/$org/settings",params:{org:a.slug}}),children:r.jsx(W,{className:"size-4"})})}),r.jsx("div",{className:"flex-1 overflow-auto",children:r.jsx("div",{className:"flex h-full",children:r.jsx("div",{className:"flex-1 overflow-auto",children:r.jsx("div",{className:"p-5 max-w-2xl",children:r.jsxs("div",{className:"space-y-6",children:[r.jsx("div",{children:r.jsx("p",{className:"text-sm text-muted-foreground",children:"Enable or disable plugins for your organization."})}),r.jsx("div",{className:"divide-y divide-border border-y border-border",children:h.map(l=>{const c=B(l.id),m=z(l.id),g=k(l.id);return r.jsxs("div",{className:"flex items-center justify-between gap-4 py-3",children:[r.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[c?.icon&&r.jsx("div",{className:"flex-shrink-0 text-muted-foreground [&>svg]:size-4",children:c.icon}),r.jsxs("div",{className:"min-w-0",children:[r.jsx("div",{className:"text-sm font-medium text-foreground",children:c?.label??l.id}),m&&r.jsx("p",{className:"text-xs text-muted-foreground",children:m})]})]}),r.jsx(T,{checked:g,onCheckedChange:v=>w(l.id,v),disabled:o})]},l.id)})}),h.length===0&&r.jsx("p",{className:"text-sm text-muted-foreground",children:"No plugins available."}),r.jsxs("div",{className:"flex items-center gap-3 pt-4",children:[r.jsx(b,{onClick:y,disabled:!j||o,className:"min-w-24",children:o?"Saving...":"Save Changes"}),j&&r.jsx(b,{variant:"outline",onClick:E,disabled:o,children:"Cancel"})]})]})})})})})]})}export{me as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,ah as $,j as c,ai as z,aj as L,ak as A,al as _,am as g,an as j,ao as w,ap as G,aq as E,ar as H,as as K,at as q,au as U,av as V,aw as W,ax as Z,ay as B,az as J,c as R}from"./index-
|
|
1
|
+
import{r as i,ah as $,j as c,ai as z,aj as L,ak as A,al as _,am as g,an as j,ao as w,ap as G,aq as E,ar as H,as as K,at as q,au as U,av as V,aw as W,ax as Z,ay as B,az as J,c as R}from"./index-C8OOnmm1.js";import{c as Q}from"./button-C83AQWC1.js";var m="Popover",[b]=q(m,[E]),P=E(),[X,d]=b(m),N=t=>{const{__scopePopover:e,children:o,open:r,defaultOpen:n,onOpenChange:a,modal:s=!1}=t,p=P(e),l=i.useRef(null),[u,h]=i.useState(!1),[x,f]=$({prop:r,defaultProp:n??!1,onChange:a,caller:m});return c.jsx(z,{...p,children:c.jsx(X,{scope:e,contentId:L(),triggerRef:l,open:x,onOpenChange:f,onOpenToggle:i.useCallback(()=>f(C=>!C),[f]),hasCustomAnchor:u,onCustomAnchorAdd:i.useCallback(()=>h(!0),[]),onCustomAnchorRemove:i.useCallback(()=>h(!1),[]),modal:s,children:o})})};N.displayName=m;var F="PopoverAnchor",Y=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=d(F,o),a=P(o),{onCustomAnchorAdd:s,onCustomAnchorRemove:p}=n;return i.useEffect(()=>(s(),()=>p()),[s,p]),c.jsx(j,{...a,...r,ref:e})});Y.displayName=F;var y="PopoverTrigger",S=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=d(y,o),a=P(o),s=A(e,n.triggerRef),p=c.jsx(_.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":I(n.open),...r,ref:s,onClick:g(t.onClick,n.onOpenToggle)});return n.hasCustomAnchor?p:c.jsx(j,{asChild:!0,...a,children:p})});S.displayName=y;var O="PopoverPortal",[ee,oe]=b(O,{forceMount:void 0}),D=t=>{const{__scopePopover:e,forceMount:o,children:r,container:n}=t,a=d(O,e);return c.jsx(ee,{scope:e,forceMount:o,children:c.jsx(w,{present:o||a.open,children:c.jsx(G,{asChild:!0,container:n,children:r})})})};D.displayName=O;var v="PopoverContent",M=i.forwardRef((t,e)=>{const o=oe(v,t.__scopePopover),{forceMount:r=o.forceMount,...n}=t,a=d(v,t.__scopePopover);return c.jsx(w,{present:r||a.open,children:a.modal?c.jsx(re,{...n,ref:e}):c.jsx(ne,{...n,ref:e})})});M.displayName=v;var te=U("PopoverContent.RemoveScroll"),re=i.forwardRef((t,e)=>{const o=d(v,t.__scopePopover),r=i.useRef(null),n=A(e,r),a=i.useRef(!1);return i.useEffect(()=>{const s=r.current;if(s)return H(s)},[]),c.jsx(K,{as:te,allowPinchZoom:!0,children:c.jsx(k,{...t,ref:n,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:g(t.onCloseAutoFocus,s=>{s.preventDefault(),a.current||o.triggerRef.current?.focus()}),onPointerDownOutside:g(t.onPointerDownOutside,s=>{const p=s.detail.originalEvent,l=p.button===0&&p.ctrlKey===!0,u=p.button===2||l;a.current=u},{checkForDefaultPrevented:!1}),onFocusOutside:g(t.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),ne=i.forwardRef((t,e)=>{const o=d(v,t.__scopePopover),r=i.useRef(!1),n=i.useRef(!1);return c.jsx(k,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{t.onCloseAutoFocus?.(a),a.defaultPrevented||(r.current||o.triggerRef.current?.focus(),a.preventDefault()),r.current=!1,n.current=!1},onInteractOutside:a=>{t.onInteractOutside?.(a),a.defaultPrevented||(r.current=!0,a.detail.originalEvent.type==="pointerdown"&&(n.current=!0));const s=a.target;o.triggerRef.current?.contains(s)&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&n.current&&a.preventDefault()}})}),k=i.forwardRef((t,e)=>{const{__scopePopover:o,trapFocus:r,onOpenAutoFocus:n,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEscapeKeyDown:p,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:h,...x}=t,f=d(v,o),C=P(o);return V(),c.jsx(W,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:n,onUnmountAutoFocus:a,children:c.jsx(Z,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:h,onEscapeKeyDown:p,onPointerDownOutside:l,onFocusOutside:u,onDismiss:()=>f.onOpenChange(!1),children:c.jsx(B,{"data-state":I(f.open),role:"dialog",id:f.contentId,...C,...x,ref:e,style:{...x.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),T="PopoverClose",ae=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=d(T,o);return c.jsx(_.button,{type:"button",...r,ref:e,onClick:g(t.onClick,()=>n.onOpenChange(!1))})});ae.displayName=T;var se="PopoverArrow",ce=i.forwardRef((t,e)=>{const{__scopePopover:o,...r}=t,n=P(o);return c.jsx(J,{...n,...r,ref:e})});ce.displayName=se;function I(t){return t?"open":"closed"}var ie=N,pe=S,le=D,ue=M;function ve(t){const e=R.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=c.jsx(ie,{"data-slot":"popover",...o}),e[2]=o,e[3]=r):r=e[3],r}function ge(t){const e=R.c(4);let o;e[0]!==t?({...o}=t,e[0]=t,e[1]=o):o=e[1];let r;return e[2]!==o?(r=c.jsx(pe,{"data-slot":"popover-trigger",...o}),e[2]=o,e[3]=r):r=e[3],r}function Pe(t){const e=R.c(12);let o,r,n,a;e[0]!==t?({className:o,align:n,sideOffset:a,...r}=t,e[0]=t,e[1]=o,e[2]=r,e[3]=n,e[4]=a):(o=e[1],r=e[2],n=e[3],a=e[4]);const s=n===void 0?"center":n,p=a===void 0?4:a;let l;e[5]!==o?(l=Q("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-lg overflow-hidden border p-4 shadow-md outline-hidden",o),e[5]=o,e[6]=l):l=e[6];let u;return e[7]!==s||e[8]!==r||e[9]!==p||e[10]!==l?(u=c.jsx(le,{children:c.jsx(ue,{"data-slot":"popover-content",align:s,sideOffset:p,className:l,...r})}),e[7]=s,e[8]=r,e[9]=p,e[10]=l,e[11]=u):u=e[11],u}export{ge as P,Pe as a,ve as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o}from"./index-
|
|
1
|
+
import{r as o}from"./index-C8OOnmm1.js";import{c as s}from"./constants-ytntCGH9.js";const c=({size:t=24,color:n="currentColor",...e})=>o.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:n,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...e},o.createElement("path",{d:"M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10m0-20a15.3 15.3 0 0 0-4 10 15.3 15.3 0 0 0 4 10m0-20C6.477 2 2 6.477 2 12s4.477 10 10 10m0-20c5.523 0 10 4.477 10 10s-4.477 10-10 10M2.5 9h19m-19 6h19"}));c.displayName="Globe02";function m(t){return t?t.find(e=>e.name.endsWith("_LIST"))?.name??"":""}function d(t){return t?t.find(e=>e.name.endsWith("_FILTERS"))?.name??"":""}function h(t){if(!t)return[];const n=[];for(const e of t){let r=[];if(Array.isArray(e))r=e;else if(typeof e=="object"&&e!==null){const i=Object.keys(e).find(a=>Array.isArray(e[a]));i&&(r=e[i])}n.push(...r)}return n}const l={"streamable-http":"HTTP",http:"HTTP",sse:"SSE",stdio:"STDIO",websocket:"Websocket"};function y(t){return t?l[t]??t.toUpperCase():null}function T(t){return t?t.match(/schemas\/([\d-]+)/)?.[1]??null:null}function b(t){if(!t)return[];if(Array.isArray(t))return t;if(typeof t=="object"&&t!==null){const n=Object.keys(t).find(e=>Array.isArray(t[e]));if(n)return t[n]}return[]}async function A(t,n,e,r){const i=await s({connectionId:t,orgId:n});try{const a=await i.callTool({name:e,arguments:r});return a.structuredContent??a}finally{await i.close().catch(console.error)}}export{h as a,d as b,T as c,A as d,b as e,m as f,y as g,c as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as f,a_ as Pn,c as He,j as he}from"./index-BPDeXK2i.js";import{c as Je}from"./button-CZtA6e27.js";const Ye=({size:n=24,color:e="currentColor",...t})=>f.createElement("svg",{viewBox:"0 0 24 24",width:n,height:n,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},f.createElement("path",{d:"M12 6a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0 7a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0 7a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm7-14a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0 7a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0 7a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM5 6a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0 7a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0 7a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"}));Ye.displayName="DotsGrid";const Ee=f.createContext(null);Ee.displayName="PanelGroupContext";const A={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},_e=10,ne=f.useLayoutEffect,Fe=Pn.useId,wn=typeof Fe=="function"?Fe:()=>null;let En=0;function Ge(n=null){const e=wn(),t=f.useRef(n||e||null);return t.current===null&&(t.current=""+En++),n??t.current}function Qe({children:n,className:e="",collapsedSize:t,collapsible:r,defaultSize:i,forwardedRef:o,id:l,maxSize:a,minSize:s,onCollapse:h,onExpand:w,onResize:p,order:u,style:v,tagName:z="div",...C}){const E=f.useContext(Ee);if(E===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:S,expandPanel:L,getPanelSize:N,getPanelStyle:D,groupId:V,isPanelCollapsed:R,reevaluatePanelConstraints:P,registerPanel:F,resizePanel:q,unregisterPanel:W}=E,G=Ge(l),M=f.useRef({callbacks:{onCollapse:h,onExpand:w,onResize:p},constraints:{collapsedSize:t,collapsible:r,defaultSize:i,maxSize:a,minSize:s},id:G,idIsFromProps:l!==void 0,order:u});f.useRef({didLogMissingDefaultSizeWarning:!1}),ne(()=>{const{callbacks:_,constraints:H}=M.current,B={...H};M.current.id=G,M.current.idIsFromProps=l!==void 0,M.current.order=u,_.onCollapse=h,_.onExpand=w,_.onResize=p,H.collapsedSize=t,H.collapsible=r,H.defaultSize=i,H.maxSize=a,H.minSize=s,(B.collapsedSize!==H.collapsedSize||B.collapsible!==H.collapsible||B.maxSize!==H.maxSize||B.minSize!==H.minSize)&&P(M.current,B)}),ne(()=>{const _=M.current;return F(_),()=>{W(_)}},[u,G,F,W]),f.useImperativeHandle(o,()=>({collapse:()=>{S(M.current)},expand:_=>{L(M.current,_)},getId(){return G},getSize(){return N(M.current)},isCollapsed(){return R(M.current)},isExpanded(){return!R(M.current)},resize:_=>{q(M.current,_)}}),[S,L,N,R,G,q]);const Y=D(M.current,i);return f.createElement(z,{...C,children:n,className:e,id:G,style:{...Y,...v},[A.groupId]:V,[A.panel]:"",[A.panelCollapsible]:r||void 0,[A.panelId]:G,[A.panelSize]:parseFloat(""+Y.flexGrow).toFixed(1)})}const en=f.forwardRef((n,e)=>f.createElement(Qe,{...n,forwardedRef:e}));Qe.displayName="Panel";en.displayName="forwardRef(Panel)";let De=null,Se=-1,J=null;function Cn(n,e){if(e){const t=(e&ln)!==0,r=(e&an)!==0,i=(e&sn)!==0,o=(e&un)!==0;if(t)return i?"se-resize":o?"ne-resize":"e-resize";if(r)return i?"sw-resize":o?"nw-resize":"w-resize";if(i)return"s-resize";if(o)return"n-resize"}switch(n){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function In(){J!==null&&(document.head.removeChild(J),De=null,J=null,Se=-1)}function ke(n,e){var t,r;const i=Cn(n,e);if(De!==i){if(De=i,J===null&&(J=document.createElement("style"),document.head.appendChild(J)),Se>=0){var o;(o=J.sheet)===null||o===void 0||o.removeRule(Se)}Se=(t=(r=J.sheet)===null||r===void 0?void 0:r.insertRule(`*{cursor: ${i} !important;}`))!==null&&t!==void 0?t:-1}}function nn(n){return n.type==="keydown"}function tn(n){return n.type.startsWith("pointer")}function rn(n){return n.type.startsWith("mouse")}function Ce(n){if(tn(n)){if(n.isPrimary)return{x:n.clientX,y:n.clientY}}else if(rn(n))return{x:n.clientX,y:n.clientY};return{x:1/0,y:1/0}}function Rn(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function Ln(n,e,t){return n.x<e.x+e.width&&n.x+n.width>e.x&&n.y<e.y+e.height&&n.y+n.height>e.y}function kn(n,e){if(n===e)throw new Error("Cannot compare node with itself");const t={a:Ve(n),b:Ve(e)};let r;for(;t.a.at(-1)===t.b.at(-1);)n=t.a.pop(),e=t.b.pop(),r=n;x(r,"Stacking order can only be calculated for elements with a common ancestor");const i={a:Ue(Ke(t.a)),b:Ue(Ke(t.b))};if(i.a===i.b){const o=r.childNodes,l={a:t.a.at(-1),b:t.b.at(-1)};let a=o.length;for(;a--;){const s=o[a];if(s===l.a)return 1;if(s===l.b)return-1}}return Math.sign(i.a-i.b)}const An=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function Mn(n){var e;const t=getComputedStyle((e=on(n))!==null&&e!==void 0?e:n).display;return t==="flex"||t==="inline-flex"}function Nn(n){const e=getComputedStyle(n);return!!(e.position==="fixed"||e.zIndex!=="auto"&&(e.position!=="static"||Mn(n))||+e.opacity<1||"transform"in e&&e.transform!=="none"||"webkitTransform"in e&&e.webkitTransform!=="none"||"mixBlendMode"in e&&e.mixBlendMode!=="normal"||"filter"in e&&e.filter!=="none"||"webkitFilter"in e&&e.webkitFilter!=="none"||"isolation"in e&&e.isolation==="isolate"||An.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function Ke(n){let e=n.length;for(;e--;){const t=n[e];if(x(t,"Missing node"),Nn(t))return t}return null}function Ue(n){return n&&Number(getComputedStyle(n).zIndex)||0}function Ve(n){const e=[];for(;n;)e.push(n),n=on(n);return e}function on(n){const{parentNode:e}=n;return e&&e instanceof ShadowRoot?e.host:e}const ln=1,an=2,sn=4,un=8,$n=Rn()==="coarse";let U=[],ae=!1,ee=new Map,Ie=new Map;const ze=new Set;function Dn(n,e,t,r,i){var o;const{ownerDocument:l}=e,a={direction:t,element:e,hitAreaMargins:r,setResizeHandlerState:i},s=(o=ee.get(l))!==null&&o!==void 0?o:0;return ee.set(l,s+1),ze.add(a),Pe(),function(){var w;Ie.delete(n),ze.delete(a);const p=(w=ee.get(l))!==null&&w!==void 0?w:1;if(ee.set(l,p-1),Pe(),p===1&&ee.delete(l),U.includes(a)){const u=U.indexOf(a);u>=0&&U.splice(u,1),Te(),i("up",!0,null)}}}function Hn(n){const{target:e}=n,{x:t,y:r}=Ce(n);ae=!0,Be({target:e,x:t,y:r}),Pe(),U.length>0&&(we("down",n),n.preventDefault(),cn(e)||n.stopImmediatePropagation())}function Ae(n){const{x:e,y:t}=Ce(n);if(ae&&n.buttons===0&&(ae=!1,we("up",n)),!ae){const{target:r}=n;Be({target:r,x:e,y:t})}we("move",n),Te(),U.length>0&&n.preventDefault()}function Me(n){const{target:e}=n,{x:t,y:r}=Ce(n);Ie.clear(),ae=!1,U.length>0&&(n.preventDefault(),cn(e)||n.stopImmediatePropagation()),we("up",n),Be({target:e,x:t,y:r}),Te(),Pe()}function cn(n){let e=n;for(;e;){if(e.hasAttribute(A.resizeHandle))return!0;e=e.parentElement}return!1}function Be({target:n,x:e,y:t}){U.splice(0);let r=null;(n instanceof HTMLElement||n instanceof SVGElement)&&(r=n),ze.forEach(i=>{const{element:o,hitAreaMargins:l}=i,a=o.getBoundingClientRect(),{bottom:s,left:h,right:w,top:p}=a,u=$n?l.coarse:l.fine;if(e>=h-u&&e<=w+u&&t>=p-u&&t<=s+u){if(r!==null&&document.contains(r)&&o!==r&&!o.contains(r)&&!r.contains(o)&&kn(r,o)>0){let z=r,C=!1;for(;z&&!z.contains(o);){if(Ln(z.getBoundingClientRect(),a)){C=!0;break}z=z.parentElement}if(C)return}U.push(i)}})}function Ne(n,e){Ie.set(n,e)}function Te(){let n=!1,e=!1;U.forEach(r=>{const{direction:i}=r;i==="horizontal"?n=!0:e=!0});let t=0;Ie.forEach(r=>{t|=r}),n&&e?ke("intersection",t):n?ke("horizontal",t):e?ke("vertical",t):In()}let $e=new AbortController;function Pe(){$e.abort(),$e=new AbortController;const n={capture:!0,signal:$e.signal};ze.size&&(ae?(U.length>0&&ee.forEach((e,t)=>{const{body:r}=t;e>0&&(r.addEventListener("contextmenu",Me,n),r.addEventListener("pointerleave",Ae,n),r.addEventListener("pointermove",Ae,n))}),window.addEventListener("pointerup",Me,n),window.addEventListener("pointercancel",Me,n)):ee.forEach((e,t)=>{const{body:r}=t;e>0&&(r.addEventListener("pointerdown",Hn,n),r.addEventListener("pointermove",Ae,n))}))}function we(n,e){ze.forEach(t=>{const{setResizeHandlerState:r}=t,i=U.includes(t);r(n,i,e)})}function _n(){const[n,e]=f.useState(0);return f.useCallback(()=>e(t=>t+1),[])}function x(n,e){if(!n)throw console.error(e),Error(e)}function te(n,e,t=_e){return n.toFixed(t)===e.toFixed(t)?0:n>e?1:-1}function X(n,e,t=_e){return te(n,e,t)===0}function j(n,e,t){return te(n,e,t)===0}function Gn(n,e,t){if(n.length!==e.length)return!1;for(let r=0;r<n.length;r++){const i=n[r],o=e[r];if(!j(i,o,t))return!1}return!0}function le({panelConstraints:n,panelIndex:e,size:t}){const r=n[e];x(r!=null,`Panel constraints not found for index ${e}`);let{collapsedSize:i=0,collapsible:o,maxSize:l=100,minSize:a=0}=r;if(te(t,a)<0)if(o){const s=(i+a)/2;te(t,s)<0?t=i:t=a}else t=a;return t=Math.min(l,t),t=parseFloat(t.toFixed(_e)),t}function ge({delta:n,initialLayout:e,panelConstraints:t,pivotIndices:r,prevLayout:i,trigger:o}){if(j(n,0))return e;const l=[...e],[a,s]=r;x(a!=null,"Invalid first pivot index"),x(s!=null,"Invalid second pivot index");let h=0;if(o==="keyboard"){{const p=n<0?s:a,u=t[p];x(u,`Panel constraints not found for index ${p}`);const{collapsedSize:v=0,collapsible:z,minSize:C=0}=u;if(z){const E=e[p];if(x(E!=null,`Previous layout not found for panel index ${p}`),j(E,v)){const S=C-E;te(S,Math.abs(n))>0&&(n=n<0?0-S:S)}}}{const p=n<0?a:s,u=t[p];x(u,`No panel constraints found for index ${p}`);const{collapsedSize:v=0,collapsible:z,minSize:C=0}=u;if(z){const E=e[p];if(x(E!=null,`Previous layout not found for panel index ${p}`),j(E,C)){const S=E-v;te(S,Math.abs(n))>0&&(n=n<0?0-S:S)}}}}{const p=n<0?1:-1;let u=n<0?s:a,v=0;for(;;){const C=e[u];x(C!=null,`Previous layout not found for panel index ${u}`);const S=le({panelConstraints:t,panelIndex:u,size:100})-C;if(v+=S,u+=p,u<0||u>=t.length)break}const z=Math.min(Math.abs(n),Math.abs(v));n=n<0?0-z:z}{let u=n<0?a:s;for(;u>=0&&u<t.length;){const v=Math.abs(n)-Math.abs(h),z=e[u];x(z!=null,`Previous layout not found for panel index ${u}`);const C=z-v,E=le({panelConstraints:t,panelIndex:u,size:C});if(!j(z,E)&&(h+=z-E,l[u]=E,h.toPrecision(3).localeCompare(Math.abs(n).toPrecision(3),void 0,{numeric:!0})>=0))break;n<0?u--:u++}}if(Gn(i,l))return i;{const p=n<0?s:a,u=e[p];x(u!=null,`Previous layout not found for panel index ${p}`);const v=u+h,z=le({panelConstraints:t,panelIndex:p,size:v});if(l[p]=z,!j(z,v)){let C=v-z,S=n<0?s:a;for(;S>=0&&S<t.length;){const L=l[S];x(L!=null,`Previous layout not found for panel index ${S}`);const N=L+C,D=le({panelConstraints:t,panelIndex:S,size:N});if(j(L,D)||(C-=D-L,l[S]=D),j(C,0))break;n>0?S--:S++}}}const w=l.reduce((p,u)=>u+p,0);return j(w,100)?l:i}function Bn({layout:n,panelsArray:e,pivotIndices:t}){let r=0,i=100,o=0,l=0;const a=t[0];x(a!=null,"No pivot index found"),e.forEach((p,u)=>{const{constraints:v}=p,{maxSize:z=100,minSize:C=0}=v;u===a?(r=C,i=z):(o+=C,l+=z)});const s=Math.min(i,100-o),h=Math.max(r,100-l),w=n[a];return{valueMax:s,valueMin:h,valueNow:w}}function ye(n,e=document){return Array.from(e.querySelectorAll(`[${A.resizeHandleId}][data-panel-group-id="${n}"]`))}function fn(n,e,t=document){const i=ye(n,t).findIndex(o=>o.getAttribute(A.resizeHandleId)===e);return i??null}function dn(n,e,t){const r=fn(n,e,t);return r!=null?[r,r+1]:[-1,-1]}function pn(n,e=document){var t;if(e instanceof HTMLElement&&(e==null||(t=e.dataset)===null||t===void 0?void 0:t.panelGroupId)==n)return e;const r=e.querySelector(`[data-panel-group][data-panel-group-id="${n}"]`);return r||null}function Re(n,e=document){const t=e.querySelector(`[${A.resizeHandleId}="${n}"]`);return t||null}function Tn(n,e,t,r=document){var i,o,l,a;const s=Re(e,r),h=ye(n,r),w=s?h.indexOf(s):-1,p=(i=(o=t[w])===null||o===void 0?void 0:o.id)!==null&&i!==void 0?i:null,u=(l=(a=t[w+1])===null||a===void 0?void 0:a.id)!==null&&l!==void 0?l:null;return[p,u]}function Wn({committedValuesRef:n,eagerValuesRef:e,groupId:t,layout:r,panelDataArray:i,panelGroupElement:o,setLayout:l}){f.useRef({didWarnAboutMissingResizeHandle:!1}),ne(()=>{if(!o)return;const a=ye(t,o);for(let s=0;s<i.length-1;s++){const{valueMax:h,valueMin:w,valueNow:p}=Bn({layout:r,panelsArray:i,pivotIndices:[s,s+1]}),u=a[s];if(u!=null){const v=i[s];x(v,`No panel data found for index "${s}"`),u.setAttribute("aria-controls",v.id),u.setAttribute("aria-valuemax",""+Math.round(h)),u.setAttribute("aria-valuemin",""+Math.round(w)),u.setAttribute("aria-valuenow",p!=null?""+Math.round(p):"")}}return()=>{a.forEach((s,h)=>{s.removeAttribute("aria-controls"),s.removeAttribute("aria-valuemax"),s.removeAttribute("aria-valuemin"),s.removeAttribute("aria-valuenow")})}},[t,r,i,o]),f.useEffect(()=>{if(!o)return;const a=e.current;x(a,"Eager values not found");const{panelDataArray:s}=a,h=pn(t,o);x(h!=null,`No group found for id "${t}"`);const w=ye(t,o);x(w,`No resize handles found for group id "${t}"`);const p=w.map(u=>{const v=u.getAttribute(A.resizeHandleId);x(v,"Resize handle element has no handle id attribute");const[z,C]=Tn(t,v,s,o);if(z==null||C==null)return()=>{};const E=S=>{if(!S.defaultPrevented)switch(S.key){case"Enter":{S.preventDefault();const L=s.findIndex(N=>N.id===z);if(L>=0){const N=s[L];x(N,`No panel data found for index ${L}`);const D=r[L],{collapsedSize:V=0,collapsible:R,minSize:P=0}=N.constraints;if(D!=null&&R){const F=ge({delta:j(D,V)?P-V:V-D,initialLayout:r,panelConstraints:s.map(q=>q.constraints),pivotIndices:dn(t,v,o),prevLayout:r,trigger:"keyboard"});r!==F&&l(F)}}break}}};return u.addEventListener("keydown",E),()=>{u.removeEventListener("keydown",E)}});return()=>{p.forEach(u=>u())}},[o,n,e,t,r,i,l])}function Ze(n,e){if(n.length!==e.length)return!1;for(let t=0;t<n.length;t++)if(n[t]!==e[t])return!1;return!0}function gn(n,e){const t=n==="horizontal",{x:r,y:i}=Ce(e);return t?r:i}function jn(n,e,t,r,i){const o=t==="horizontal",l=Re(e,i);x(l,`No resize handle element found for id "${e}"`);const a=l.getAttribute(A.groupId);x(a,"Resize handle element has no group id attribute");let{initialCursorPosition:s}=r;const h=gn(t,n),w=pn(a,i);x(w,`No group element found for id "${a}"`);const p=w.getBoundingClientRect(),u=o?p.width:p.height;return(h-s)/u*100}function Fn(n,e,t,r,i,o){if(nn(n)){const l=t==="horizontal";let a=0;n.shiftKey?a=100:i!=null?a=i:a=10;let s=0;switch(n.key){case"ArrowDown":s=l?0:a;break;case"ArrowLeft":s=l?-a:0;break;case"ArrowRight":s=l?a:0;break;case"ArrowUp":s=l?0:-a;break;case"End":s=100;break;case"Home":s=-100;break}return s}else return r==null?0:jn(n,e,t,r,o)}function Kn({panelDataArray:n}){const e=Array(n.length),t=n.map(o=>o.constraints);let r=0,i=100;for(let o=0;o<n.length;o++){const l=t[o];x(l,`Panel constraints not found for index ${o}`);const{defaultSize:a}=l;a!=null&&(r++,e[o]=a,i-=a)}for(let o=0;o<n.length;o++){const l=t[o];x(l,`Panel constraints not found for index ${o}`);const{defaultSize:a}=l;if(a!=null)continue;const s=n.length-r,h=i/s;r++,e[o]=h,i-=h}return e}function oe(n,e,t){e.forEach((r,i)=>{const o=n[i];x(o,`Panel data not found for index ${i}`);const{callbacks:l,constraints:a,id:s}=o,{collapsedSize:h=0,collapsible:w}=a,p=t[s];if(p==null||r!==p){t[s]=r;const{onCollapse:u,onExpand:v,onResize:z}=l;z&&z(r,p),w&&(u||v)&&(v&&(p==null||X(p,h))&&!X(r,h)&&v(),u&&(p==null||!X(p,h))&&X(r,h)&&u())}})}function be(n,e){if(n.length!==e.length)return!1;for(let t=0;t<n.length;t++)if(n[t]!=e[t])return!1;return!0}function Un({defaultSize:n,dragState:e,layout:t,panelData:r,panelIndex:i,precision:o=3}){const l=t[i];let a;return l==null?a=n!=null?n.toPrecision(o):"1":r.length===1?a="1":a=l.toPrecision(o),{flexBasis:0,flexGrow:a,flexShrink:1,overflow:"hidden",pointerEvents:e!==null?"none":void 0}}function Vn(n,e=10){let t=null;return(...i)=>{t!==null&&clearTimeout(t),t=setTimeout(()=>{n(...i)},e)}}function Oe(n){try{if(typeof localStorage<"u")n.getItem=e=>localStorage.getItem(e),n.setItem=(e,t)=>{localStorage.setItem(e,t)};else throw new Error("localStorage not supported in this environment")}catch(e){console.error(e),n.getItem=()=>null,n.setItem=()=>{}}}function mn(n){return`react-resizable-panels:${n}`}function hn(n){return n.map(e=>{const{constraints:t,id:r,idIsFromProps:i,order:o}=e;return i?r:o?`${o}:${JSON.stringify(t)}`:JSON.stringify(t)}).sort((e,t)=>e.localeCompare(t)).join(",")}function zn(n,e){try{const t=mn(n),r=e.getItem(t);if(r){const i=JSON.parse(r);if(typeof i=="object"&&i!=null)return i}}catch{}return null}function Zn(n,e,t){var r,i;const o=(r=zn(n,t))!==null&&r!==void 0?r:{},l=hn(e);return(i=o[l])!==null&&i!==void 0?i:null}function On(n,e,t,r,i){var o;const l=mn(n),a=hn(e),s=(o=zn(n,i))!==null&&o!==void 0?o:{};s[a]={expandToSizes:Object.fromEntries(t.entries()),layout:r};try{i.setItem(l,JSON.stringify(s))}catch(h){console.error(h)}}function qe({layout:n,panelConstraints:e}){const t=[...n],r=t.reduce((o,l)=>o+l,0);if(t.length!==e.length)throw Error(`Invalid ${e.length} panel layout: ${t.map(o=>`${o}%`).join(", ")}`);if(!j(r,100)&&t.length>0)for(let o=0;o<e.length;o++){const l=t[o];x(l!=null,`No layout data found for index ${o}`);const a=100/r*l;t[o]=a}let i=0;for(let o=0;o<e.length;o++){const l=t[o];x(l!=null,`No layout data found for index ${o}`);const a=le({panelConstraints:e,panelIndex:o,size:l});l!=a&&(i+=l-a,t[o]=a)}if(!j(i,0))for(let o=0;o<e.length;o++){const l=t[o];x(l!=null,`No layout data found for index ${o}`);const a=l+i,s=le({panelConstraints:e,panelIndex:o,size:a});if(l!==s&&(i-=s-l,t[o]=s,j(i,0)))break}return t}const qn=100,me={getItem:n=>(Oe(me),me.getItem(n)),setItem:(n,e)=>{Oe(me),me.setItem(n,e)}},Xe={};function yn({autoSaveId:n=null,children:e,className:t="",direction:r,forwardedRef:i,id:o=null,onLayout:l=null,keyboardResizeBy:a=null,storage:s=me,style:h,tagName:w="div",...p}){const u=Ge(o),v=f.useRef(null),[z,C]=f.useState(null),[E,S]=f.useState([]),L=_n(),N=f.useRef({}),D=f.useRef(new Map),V=f.useRef(0),R=f.useRef({autoSaveId:n,direction:r,dragState:z,id:u,keyboardResizeBy:a,onLayout:l,storage:s}),P=f.useRef({layout:E,panelDataArray:[],panelDataArrayChanged:!1});f.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),f.useImperativeHandle(i,()=>({getId:()=>R.current.id,getLayout:()=>{const{layout:c}=P.current;return c},setLayout:c=>{const{onLayout:m}=R.current,{layout:b,panelDataArray:g}=P.current,d=qe({layout:c,panelConstraints:g.map(y=>y.constraints)});Ze(b,d)||(S(d),P.current.layout=d,m&&m(d),oe(g,d,N.current))}}),[]),ne(()=>{R.current.autoSaveId=n,R.current.direction=r,R.current.dragState=z,R.current.id=u,R.current.onLayout=l,R.current.storage=s}),Wn({committedValuesRef:R,eagerValuesRef:P,groupId:u,layout:E,panelDataArray:P.current.panelDataArray,setLayout:S,panelGroupElement:v.current}),f.useEffect(()=>{const{panelDataArray:c}=P.current;if(n){if(E.length===0||E.length!==c.length)return;let m=Xe[n];m==null&&(m=Vn(On,qn),Xe[n]=m);const b=[...c],g=new Map(D.current);m(n,b,g,E,s)}},[n,E,s]),f.useEffect(()=>{});const F=f.useCallback(c=>{const{onLayout:m}=R.current,{layout:b,panelDataArray:g}=P.current;if(c.constraints.collapsible){const d=g.map(Z=>Z.constraints),{collapsedSize:y=0,panelSize:I,pivotIndices:$}=Q(g,c,b);if(x(I!=null,`Panel size not found for panel "${c.id}"`),!X(I,y)){D.current.set(c.id,I);const O=ie(g,c)===g.length-1?I-y:y-I,k=ge({delta:O,initialLayout:b,panelConstraints:d,pivotIndices:$,prevLayout:b,trigger:"imperative-api"});be(b,k)||(S(k),P.current.layout=k,m&&m(k),oe(g,k,N.current))}}},[]),q=f.useCallback((c,m)=>{const{onLayout:b}=R.current,{layout:g,panelDataArray:d}=P.current;if(c.constraints.collapsible){const y=d.map(K=>K.constraints),{collapsedSize:I=0,panelSize:$=0,minSize:Z=0,pivotIndices:O}=Q(d,c,g),k=m??Z;if(X($,I)){const K=D.current.get(c.id),de=K!=null&&K>=k?K:k,Le=ie(d,c)===d.length-1?$-de:de-$,T=ge({delta:Le,initialLayout:g,panelConstraints:y,pivotIndices:O,prevLayout:g,trigger:"imperative-api"});be(g,T)||(S(T),P.current.layout=T,b&&b(T),oe(d,T,N.current))}}},[]),W=f.useCallback(c=>{const{layout:m,panelDataArray:b}=P.current,{panelSize:g}=Q(b,c,m);return x(g!=null,`Panel size not found for panel "${c.id}"`),g},[]),G=f.useCallback((c,m)=>{const{panelDataArray:b}=P.current,g=ie(b,c);return Un({defaultSize:m,dragState:z,layout:E,panelData:b,panelIndex:g})},[z,E]),M=f.useCallback(c=>{const{layout:m,panelDataArray:b}=P.current,{collapsedSize:g=0,collapsible:d,panelSize:y}=Q(b,c,m);return x(y!=null,`Panel size not found for panel "${c.id}"`),d===!0&&X(y,g)},[]),Y=f.useCallback(c=>{const{layout:m,panelDataArray:b}=P.current,{collapsedSize:g=0,collapsible:d,panelSize:y}=Q(b,c,m);return x(y!=null,`Panel size not found for panel "${c.id}"`),!d||te(y,g)>0},[]),_=f.useCallback(c=>{const{panelDataArray:m}=P.current;m.push(c),m.sort((b,g)=>{const d=b.order,y=g.order;return d==null&&y==null?0:d==null?-1:y==null?1:d-y}),P.current.panelDataArrayChanged=!0,L()},[L]);ne(()=>{if(P.current.panelDataArrayChanged){P.current.panelDataArrayChanged=!1;const{autoSaveId:c,onLayout:m,storage:b}=R.current,{layout:g,panelDataArray:d}=P.current;let y=null;if(c){const $=Zn(c,d,b);$&&(D.current=new Map(Object.entries($.expandToSizes)),y=$.layout)}y==null&&(y=Kn({panelDataArray:d}));const I=qe({layout:y,panelConstraints:d.map($=>$.constraints)});Ze(g,I)||(S(I),P.current.layout=I,m&&m(I),oe(d,I,N.current))}}),ne(()=>{const c=P.current;return()=>{c.layout=[]}},[]);const H=f.useCallback(c=>{let m=!1;const b=v.current;return b&&window.getComputedStyle(b,null).getPropertyValue("direction")==="rtl"&&(m=!0),function(d){d.preventDefault();const y=v.current;if(!y)return()=>null;const{direction:I,dragState:$,id:Z,keyboardResizeBy:O,onLayout:k}=R.current,{layout:K,panelDataArray:de}=P.current,{initialLayout:ve}=$??{},Le=dn(Z,c,y);let T=Fn(d,c,I,$,O,y);const We=I==="horizontal";We&&m&&(T=-T);const bn=de.map(Sn=>Sn.constraints),pe=ge({delta:T,initialLayout:ve??K,panelConstraints:bn,pivotIndices:Le,prevLayout:K,trigger:nn(d)?"keyboard":"mouse-or-touch"}),je=!be(K,pe);(tn(d)||rn(d))&&V.current!=T&&(V.current=T,!je&&T!==0?We?Ne(c,T<0?ln:an):Ne(c,T<0?sn:un):Ne(c,0)),je&&(S(pe),P.current.layout=pe,k&&k(pe),oe(de,pe,N.current))}},[]),B=f.useCallback((c,m)=>{const{onLayout:b}=R.current,{layout:g,panelDataArray:d}=P.current,y=d.map(K=>K.constraints),{panelSize:I,pivotIndices:$}=Q(d,c,g);x(I!=null,`Panel size not found for panel "${c.id}"`);const O=ie(d,c)===d.length-1?I-m:m-I,k=ge({delta:O,initialLayout:g,panelConstraints:y,pivotIndices:$,prevLayout:g,trigger:"imperative-api"});be(g,k)||(S(k),P.current.layout=k,b&&b(k),oe(d,k,N.current))},[]),se=f.useCallback((c,m)=>{const{layout:b,panelDataArray:g}=P.current,{collapsedSize:d=0,collapsible:y}=m,{collapsedSize:I=0,collapsible:$,maxSize:Z=100,minSize:O=0}=c.constraints,{panelSize:k}=Q(g,c,b);k!=null&&(y&&$&&X(k,d)?X(d,I)||B(c,I):k<O?B(c,O):k>Z&&B(c,Z))},[B]),ue=f.useCallback((c,m)=>{const{direction:b}=R.current,{layout:g}=P.current;if(!v.current)return;const d=Re(c,v.current);x(d,`Drag handle element not found for id "${c}"`);const y=gn(b,m);C({dragHandleId:c,dragHandleRect:d.getBoundingClientRect(),initialCursorPosition:y,initialLayout:g})},[]),ce=f.useCallback(()=>{C(null)},[]),xe=f.useCallback(c=>{const{panelDataArray:m}=P.current,b=ie(m,c);b>=0&&(m.splice(b,1),delete N.current[c.id],P.current.panelDataArrayChanged=!0,L())},[L]),re=f.useMemo(()=>({collapsePanel:F,direction:r,dragState:z,expandPanel:q,getPanelSize:W,getPanelStyle:G,groupId:u,isPanelCollapsed:M,isPanelExpanded:Y,reevaluatePanelConstraints:se,registerPanel:_,registerResizeHandle:H,resizePanel:B,startDragging:ue,stopDragging:ce,unregisterPanel:xe,panelGroupElement:v.current}),[F,z,r,q,W,G,u,M,Y,se,_,H,B,ue,ce,xe]),fe={display:"flex",flexDirection:r==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return f.createElement(Ee.Provider,{value:re},f.createElement(w,{...p,children:e,className:t,id:o,ref:v,style:{...fe,...h},[A.group]:"",[A.groupDirection]:r,[A.groupId]:u}))}const xn=f.forwardRef((n,e)=>f.createElement(yn,{...n,forwardedRef:e}));yn.displayName="PanelGroup";xn.displayName="forwardRef(PanelGroup)";function ie(n,e){return n.findIndex(t=>t===e||t.id===e.id)}function Q(n,e,t){const r=ie(n,e),o=r===n.length-1?[r-1,r]:[r,r+1],l=t[r];return{...e.constraints,panelSize:l,pivotIndices:o}}function Xn({disabled:n,handleId:e,resizeHandler:t,panelGroupElement:r}){f.useEffect(()=>{if(n||t==null||r==null)return;const i=Re(e,r);if(i==null)return;const o=l=>{if(!l.defaultPrevented)switch(l.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{l.preventDefault(),t(l);break}case"F6":{l.preventDefault();const a=i.getAttribute(A.groupId);x(a,`No group element found for id "${a}"`);const s=ye(a,r),h=fn(a,e,r);x(h!==null,`No resize element found for id "${e}"`);const w=l.shiftKey?h>0?h-1:s.length-1:h+1<s.length?h+1:0;s[w].focus();break}}};return i.addEventListener("keydown",o),()=>{i.removeEventListener("keydown",o)}},[r,n,e,t])}function vn({children:n=null,className:e="",disabled:t=!1,hitAreaMargins:r,id:i,onBlur:o,onClick:l,onDragging:a,onFocus:s,onPointerDown:h,onPointerUp:w,style:p={},tabIndex:u=0,tagName:v="div",...z}){var C,E;const S=f.useRef(null),L=f.useRef({onClick:l,onDragging:a,onPointerDown:h,onPointerUp:w});f.useEffect(()=>{L.current.onClick=l,L.current.onDragging=a,L.current.onPointerDown=h,L.current.onPointerUp=w});const N=f.useContext(Ee);if(N===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:D,groupId:V,registerResizeHandle:R,startDragging:P,stopDragging:F,panelGroupElement:q}=N,W=Ge(i),[G,M]=f.useState("inactive"),[Y,_]=f.useState(!1),[H,B]=f.useState(null),se=f.useRef({state:G});ne(()=>{se.current.state=G}),f.useEffect(()=>{if(t)B(null);else{const re=R(W);B(()=>re)}},[t,W,R]);const ue=(C=r?.coarse)!==null&&C!==void 0?C:15,ce=(E=r?.fine)!==null&&E!==void 0?E:5;f.useEffect(()=>{if(t||H==null)return;const re=S.current;x(re,"Element ref not attached");let fe=!1;return Dn(W,re,D,{coarse:ue,fine:ce},(m,b,g)=>{if(!b){M("inactive");return}switch(m){case"down":{M("drag"),fe=!1,x(g,'Expected event to be defined for "down" action'),P(W,g);const{onDragging:d,onPointerDown:y}=L.current;d?.(!0),y?.();break}case"move":{const{state:d}=se.current;fe=!0,d!=="drag"&&M("hover"),x(g,'Expected event to be defined for "move" action'),H(g);break}case"up":{M("hover"),F();const{onClick:d,onDragging:y,onPointerUp:I}=L.current;y?.(!1),I?.(),fe||d?.();break}}})},[ue,D,t,ce,R,W,H,P,F]),Xn({disabled:t,handleId:W,resizeHandler:H,panelGroupElement:q});const xe={touchAction:"none",userSelect:"none"};return f.createElement(v,{...z,children:n,className:e,id:i,onBlur:()=>{_(!1),o?.()},onFocus:()=>{_(!0),s?.()},ref:S,role:"separator",style:{...xe,...p},tabIndex:u,[A.groupDirection]:D,[A.groupId]:V,[A.resizeHandle]:"",[A.resizeHandleActive]:G==="drag"?"pointer":Y?"keyboard":void 0,[A.resizeHandleEnabled]:!t,[A.resizeHandleId]:W,[A.resizeHandleState]:G})}vn.displayName="PanelResizeHandle";function Qn(n){const e=He.c(8);let t,r;e[0]!==n?({className:t,...r}=n,e[0]=n,e[1]=t,e[2]=r):(t=e[1],r=e[2]);let i;e[3]!==t?(i=Je("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",t),e[3]=t,e[4]=i):i=e[4];let o;return e[5]!==r||e[6]!==i?(o=he.jsx(xn,{"data-slot":"resizable-panel-group",className:i,...r}),e[5]=r,e[6]=i,e[7]=o):o=e[7],o}function et(n){const e=He.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let r;return e[2]!==t?(r=he.jsx(en,{"data-slot":"resizable-panel",...t}),e[2]=t,e[3]=r):r=e[3],r}function nt(n){const e=He.c(12);let t,r,i;e[0]!==n?({withHandle:i,className:t,...r}=n,e[0]=n,e[1]=t,e[2]=r,e[3]=i):(t=e[1],r=e[2],i=e[3]);let o;e[4]!==t?(o=Je("bg-border focus-visible:ring-ring relative flex w-[0.5px] items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",t),e[4]=t,e[5]=o):o=e[5];let l;e[6]!==i?(l=i&&he.jsx("div",{className:"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",children:he.jsx(Ye,{className:"size-2.5"})}),e[6]=i,e[7]=l):l=e[7];let a;return e[8]!==r||e[9]!==o||e[10]!==l?(a=he.jsx(vn,{"data-slot":"resizable-handle",className:o,...r,children:l}),e[8]=r,e[9]=o,e[10]=l,e[11]=a):a=e[11],a}export{et as R,nt as a,Qn as b};
|
|
1
|
+
import{r as f,a_ as Pn,c as He,j as he}from"./index-C8OOnmm1.js";import{c as Je}from"./button-C83AQWC1.js";const Ye=({size:n=24,color:e="currentColor",...t})=>f.createElement("svg",{viewBox:"0 0 24 24",width:n,height:n,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},f.createElement("path",{d:"M12 6a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0 7a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0 7a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm7-14a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0 7a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0 7a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM5 6a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0 7a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm0 7a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"}));Ye.displayName="DotsGrid";const Ee=f.createContext(null);Ee.displayName="PanelGroupContext";const A={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},_e=10,ne=f.useLayoutEffect,Fe=Pn.useId,wn=typeof Fe=="function"?Fe:()=>null;let En=0;function Ge(n=null){const e=wn(),t=f.useRef(n||e||null);return t.current===null&&(t.current=""+En++),n??t.current}function Qe({children:n,className:e="",collapsedSize:t,collapsible:r,defaultSize:i,forwardedRef:o,id:l,maxSize:a,minSize:s,onCollapse:h,onExpand:w,onResize:p,order:u,style:v,tagName:z="div",...C}){const E=f.useContext(Ee);if(E===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:S,expandPanel:L,getPanelSize:N,getPanelStyle:D,groupId:V,isPanelCollapsed:R,reevaluatePanelConstraints:P,registerPanel:F,resizePanel:q,unregisterPanel:W}=E,G=Ge(l),M=f.useRef({callbacks:{onCollapse:h,onExpand:w,onResize:p},constraints:{collapsedSize:t,collapsible:r,defaultSize:i,maxSize:a,minSize:s},id:G,idIsFromProps:l!==void 0,order:u});f.useRef({didLogMissingDefaultSizeWarning:!1}),ne(()=>{const{callbacks:_,constraints:H}=M.current,B={...H};M.current.id=G,M.current.idIsFromProps=l!==void 0,M.current.order=u,_.onCollapse=h,_.onExpand=w,_.onResize=p,H.collapsedSize=t,H.collapsible=r,H.defaultSize=i,H.maxSize=a,H.minSize=s,(B.collapsedSize!==H.collapsedSize||B.collapsible!==H.collapsible||B.maxSize!==H.maxSize||B.minSize!==H.minSize)&&P(M.current,B)}),ne(()=>{const _=M.current;return F(_),()=>{W(_)}},[u,G,F,W]),f.useImperativeHandle(o,()=>({collapse:()=>{S(M.current)},expand:_=>{L(M.current,_)},getId(){return G},getSize(){return N(M.current)},isCollapsed(){return R(M.current)},isExpanded(){return!R(M.current)},resize:_=>{q(M.current,_)}}),[S,L,N,R,G,q]);const Y=D(M.current,i);return f.createElement(z,{...C,children:n,className:e,id:G,style:{...Y,...v},[A.groupId]:V,[A.panel]:"",[A.panelCollapsible]:r||void 0,[A.panelId]:G,[A.panelSize]:parseFloat(""+Y.flexGrow).toFixed(1)})}const en=f.forwardRef((n,e)=>f.createElement(Qe,{...n,forwardedRef:e}));Qe.displayName="Panel";en.displayName="forwardRef(Panel)";let De=null,Se=-1,J=null;function Cn(n,e){if(e){const t=(e&ln)!==0,r=(e&an)!==0,i=(e&sn)!==0,o=(e&un)!==0;if(t)return i?"se-resize":o?"ne-resize":"e-resize";if(r)return i?"sw-resize":o?"nw-resize":"w-resize";if(i)return"s-resize";if(o)return"n-resize"}switch(n){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}function In(){J!==null&&(document.head.removeChild(J),De=null,J=null,Se=-1)}function ke(n,e){var t,r;const i=Cn(n,e);if(De!==i){if(De=i,J===null&&(J=document.createElement("style"),document.head.appendChild(J)),Se>=0){var o;(o=J.sheet)===null||o===void 0||o.removeRule(Se)}Se=(t=(r=J.sheet)===null||r===void 0?void 0:r.insertRule(`*{cursor: ${i} !important;}`))!==null&&t!==void 0?t:-1}}function nn(n){return n.type==="keydown"}function tn(n){return n.type.startsWith("pointer")}function rn(n){return n.type.startsWith("mouse")}function Ce(n){if(tn(n)){if(n.isPrimary)return{x:n.clientX,y:n.clientY}}else if(rn(n))return{x:n.clientX,y:n.clientY};return{x:1/0,y:1/0}}function Rn(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}function Ln(n,e,t){return n.x<e.x+e.width&&n.x+n.width>e.x&&n.y<e.y+e.height&&n.y+n.height>e.y}function kn(n,e){if(n===e)throw new Error("Cannot compare node with itself");const t={a:Ve(n),b:Ve(e)};let r;for(;t.a.at(-1)===t.b.at(-1);)n=t.a.pop(),e=t.b.pop(),r=n;x(r,"Stacking order can only be calculated for elements with a common ancestor");const i={a:Ue(Ke(t.a)),b:Ue(Ke(t.b))};if(i.a===i.b){const o=r.childNodes,l={a:t.a.at(-1),b:t.b.at(-1)};let a=o.length;for(;a--;){const s=o[a];if(s===l.a)return 1;if(s===l.b)return-1}}return Math.sign(i.a-i.b)}const An=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function Mn(n){var e;const t=getComputedStyle((e=on(n))!==null&&e!==void 0?e:n).display;return t==="flex"||t==="inline-flex"}function Nn(n){const e=getComputedStyle(n);return!!(e.position==="fixed"||e.zIndex!=="auto"&&(e.position!=="static"||Mn(n))||+e.opacity<1||"transform"in e&&e.transform!=="none"||"webkitTransform"in e&&e.webkitTransform!=="none"||"mixBlendMode"in e&&e.mixBlendMode!=="normal"||"filter"in e&&e.filter!=="none"||"webkitFilter"in e&&e.webkitFilter!=="none"||"isolation"in e&&e.isolation==="isolate"||An.test(e.willChange)||e.webkitOverflowScrolling==="touch")}function Ke(n){let e=n.length;for(;e--;){const t=n[e];if(x(t,"Missing node"),Nn(t))return t}return null}function Ue(n){return n&&Number(getComputedStyle(n).zIndex)||0}function Ve(n){const e=[];for(;n;)e.push(n),n=on(n);return e}function on(n){const{parentNode:e}=n;return e&&e instanceof ShadowRoot?e.host:e}const ln=1,an=2,sn=4,un=8,$n=Rn()==="coarse";let U=[],ae=!1,ee=new Map,Ie=new Map;const ze=new Set;function Dn(n,e,t,r,i){var o;const{ownerDocument:l}=e,a={direction:t,element:e,hitAreaMargins:r,setResizeHandlerState:i},s=(o=ee.get(l))!==null&&o!==void 0?o:0;return ee.set(l,s+1),ze.add(a),Pe(),function(){var w;Ie.delete(n),ze.delete(a);const p=(w=ee.get(l))!==null&&w!==void 0?w:1;if(ee.set(l,p-1),Pe(),p===1&&ee.delete(l),U.includes(a)){const u=U.indexOf(a);u>=0&&U.splice(u,1),Te(),i("up",!0,null)}}}function Hn(n){const{target:e}=n,{x:t,y:r}=Ce(n);ae=!0,Be({target:e,x:t,y:r}),Pe(),U.length>0&&(we("down",n),n.preventDefault(),cn(e)||n.stopImmediatePropagation())}function Ae(n){const{x:e,y:t}=Ce(n);if(ae&&n.buttons===0&&(ae=!1,we("up",n)),!ae){const{target:r}=n;Be({target:r,x:e,y:t})}we("move",n),Te(),U.length>0&&n.preventDefault()}function Me(n){const{target:e}=n,{x:t,y:r}=Ce(n);Ie.clear(),ae=!1,U.length>0&&(n.preventDefault(),cn(e)||n.stopImmediatePropagation()),we("up",n),Be({target:e,x:t,y:r}),Te(),Pe()}function cn(n){let e=n;for(;e;){if(e.hasAttribute(A.resizeHandle))return!0;e=e.parentElement}return!1}function Be({target:n,x:e,y:t}){U.splice(0);let r=null;(n instanceof HTMLElement||n instanceof SVGElement)&&(r=n),ze.forEach(i=>{const{element:o,hitAreaMargins:l}=i,a=o.getBoundingClientRect(),{bottom:s,left:h,right:w,top:p}=a,u=$n?l.coarse:l.fine;if(e>=h-u&&e<=w+u&&t>=p-u&&t<=s+u){if(r!==null&&document.contains(r)&&o!==r&&!o.contains(r)&&!r.contains(o)&&kn(r,o)>0){let z=r,C=!1;for(;z&&!z.contains(o);){if(Ln(z.getBoundingClientRect(),a)){C=!0;break}z=z.parentElement}if(C)return}U.push(i)}})}function Ne(n,e){Ie.set(n,e)}function Te(){let n=!1,e=!1;U.forEach(r=>{const{direction:i}=r;i==="horizontal"?n=!0:e=!0});let t=0;Ie.forEach(r=>{t|=r}),n&&e?ke("intersection",t):n?ke("horizontal",t):e?ke("vertical",t):In()}let $e=new AbortController;function Pe(){$e.abort(),$e=new AbortController;const n={capture:!0,signal:$e.signal};ze.size&&(ae?(U.length>0&&ee.forEach((e,t)=>{const{body:r}=t;e>0&&(r.addEventListener("contextmenu",Me,n),r.addEventListener("pointerleave",Ae,n),r.addEventListener("pointermove",Ae,n))}),window.addEventListener("pointerup",Me,n),window.addEventListener("pointercancel",Me,n)):ee.forEach((e,t)=>{const{body:r}=t;e>0&&(r.addEventListener("pointerdown",Hn,n),r.addEventListener("pointermove",Ae,n))}))}function we(n,e){ze.forEach(t=>{const{setResizeHandlerState:r}=t,i=U.includes(t);r(n,i,e)})}function _n(){const[n,e]=f.useState(0);return f.useCallback(()=>e(t=>t+1),[])}function x(n,e){if(!n)throw console.error(e),Error(e)}function te(n,e,t=_e){return n.toFixed(t)===e.toFixed(t)?0:n>e?1:-1}function X(n,e,t=_e){return te(n,e,t)===0}function j(n,e,t){return te(n,e,t)===0}function Gn(n,e,t){if(n.length!==e.length)return!1;for(let r=0;r<n.length;r++){const i=n[r],o=e[r];if(!j(i,o,t))return!1}return!0}function le({panelConstraints:n,panelIndex:e,size:t}){const r=n[e];x(r!=null,`Panel constraints not found for index ${e}`);let{collapsedSize:i=0,collapsible:o,maxSize:l=100,minSize:a=0}=r;if(te(t,a)<0)if(o){const s=(i+a)/2;te(t,s)<0?t=i:t=a}else t=a;return t=Math.min(l,t),t=parseFloat(t.toFixed(_e)),t}function ge({delta:n,initialLayout:e,panelConstraints:t,pivotIndices:r,prevLayout:i,trigger:o}){if(j(n,0))return e;const l=[...e],[a,s]=r;x(a!=null,"Invalid first pivot index"),x(s!=null,"Invalid second pivot index");let h=0;if(o==="keyboard"){{const p=n<0?s:a,u=t[p];x(u,`Panel constraints not found for index ${p}`);const{collapsedSize:v=0,collapsible:z,minSize:C=0}=u;if(z){const E=e[p];if(x(E!=null,`Previous layout not found for panel index ${p}`),j(E,v)){const S=C-E;te(S,Math.abs(n))>0&&(n=n<0?0-S:S)}}}{const p=n<0?a:s,u=t[p];x(u,`No panel constraints found for index ${p}`);const{collapsedSize:v=0,collapsible:z,minSize:C=0}=u;if(z){const E=e[p];if(x(E!=null,`Previous layout not found for panel index ${p}`),j(E,C)){const S=E-v;te(S,Math.abs(n))>0&&(n=n<0?0-S:S)}}}}{const p=n<0?1:-1;let u=n<0?s:a,v=0;for(;;){const C=e[u];x(C!=null,`Previous layout not found for panel index ${u}`);const S=le({panelConstraints:t,panelIndex:u,size:100})-C;if(v+=S,u+=p,u<0||u>=t.length)break}const z=Math.min(Math.abs(n),Math.abs(v));n=n<0?0-z:z}{let u=n<0?a:s;for(;u>=0&&u<t.length;){const v=Math.abs(n)-Math.abs(h),z=e[u];x(z!=null,`Previous layout not found for panel index ${u}`);const C=z-v,E=le({panelConstraints:t,panelIndex:u,size:C});if(!j(z,E)&&(h+=z-E,l[u]=E,h.toPrecision(3).localeCompare(Math.abs(n).toPrecision(3),void 0,{numeric:!0})>=0))break;n<0?u--:u++}}if(Gn(i,l))return i;{const p=n<0?s:a,u=e[p];x(u!=null,`Previous layout not found for panel index ${p}`);const v=u+h,z=le({panelConstraints:t,panelIndex:p,size:v});if(l[p]=z,!j(z,v)){let C=v-z,S=n<0?s:a;for(;S>=0&&S<t.length;){const L=l[S];x(L!=null,`Previous layout not found for panel index ${S}`);const N=L+C,D=le({panelConstraints:t,panelIndex:S,size:N});if(j(L,D)||(C-=D-L,l[S]=D),j(C,0))break;n>0?S--:S++}}}const w=l.reduce((p,u)=>u+p,0);return j(w,100)?l:i}function Bn({layout:n,panelsArray:e,pivotIndices:t}){let r=0,i=100,o=0,l=0;const a=t[0];x(a!=null,"No pivot index found"),e.forEach((p,u)=>{const{constraints:v}=p,{maxSize:z=100,minSize:C=0}=v;u===a?(r=C,i=z):(o+=C,l+=z)});const s=Math.min(i,100-o),h=Math.max(r,100-l),w=n[a];return{valueMax:s,valueMin:h,valueNow:w}}function ye(n,e=document){return Array.from(e.querySelectorAll(`[${A.resizeHandleId}][data-panel-group-id="${n}"]`))}function fn(n,e,t=document){const i=ye(n,t).findIndex(o=>o.getAttribute(A.resizeHandleId)===e);return i??null}function dn(n,e,t){const r=fn(n,e,t);return r!=null?[r,r+1]:[-1,-1]}function pn(n,e=document){var t;if(e instanceof HTMLElement&&(e==null||(t=e.dataset)===null||t===void 0?void 0:t.panelGroupId)==n)return e;const r=e.querySelector(`[data-panel-group][data-panel-group-id="${n}"]`);return r||null}function Re(n,e=document){const t=e.querySelector(`[${A.resizeHandleId}="${n}"]`);return t||null}function Tn(n,e,t,r=document){var i,o,l,a;const s=Re(e,r),h=ye(n,r),w=s?h.indexOf(s):-1,p=(i=(o=t[w])===null||o===void 0?void 0:o.id)!==null&&i!==void 0?i:null,u=(l=(a=t[w+1])===null||a===void 0?void 0:a.id)!==null&&l!==void 0?l:null;return[p,u]}function Wn({committedValuesRef:n,eagerValuesRef:e,groupId:t,layout:r,panelDataArray:i,panelGroupElement:o,setLayout:l}){f.useRef({didWarnAboutMissingResizeHandle:!1}),ne(()=>{if(!o)return;const a=ye(t,o);for(let s=0;s<i.length-1;s++){const{valueMax:h,valueMin:w,valueNow:p}=Bn({layout:r,panelsArray:i,pivotIndices:[s,s+1]}),u=a[s];if(u!=null){const v=i[s];x(v,`No panel data found for index "${s}"`),u.setAttribute("aria-controls",v.id),u.setAttribute("aria-valuemax",""+Math.round(h)),u.setAttribute("aria-valuemin",""+Math.round(w)),u.setAttribute("aria-valuenow",p!=null?""+Math.round(p):"")}}return()=>{a.forEach((s,h)=>{s.removeAttribute("aria-controls"),s.removeAttribute("aria-valuemax"),s.removeAttribute("aria-valuemin"),s.removeAttribute("aria-valuenow")})}},[t,r,i,o]),f.useEffect(()=>{if(!o)return;const a=e.current;x(a,"Eager values not found");const{panelDataArray:s}=a,h=pn(t,o);x(h!=null,`No group found for id "${t}"`);const w=ye(t,o);x(w,`No resize handles found for group id "${t}"`);const p=w.map(u=>{const v=u.getAttribute(A.resizeHandleId);x(v,"Resize handle element has no handle id attribute");const[z,C]=Tn(t,v,s,o);if(z==null||C==null)return()=>{};const E=S=>{if(!S.defaultPrevented)switch(S.key){case"Enter":{S.preventDefault();const L=s.findIndex(N=>N.id===z);if(L>=0){const N=s[L];x(N,`No panel data found for index ${L}`);const D=r[L],{collapsedSize:V=0,collapsible:R,minSize:P=0}=N.constraints;if(D!=null&&R){const F=ge({delta:j(D,V)?P-V:V-D,initialLayout:r,panelConstraints:s.map(q=>q.constraints),pivotIndices:dn(t,v,o),prevLayout:r,trigger:"keyboard"});r!==F&&l(F)}}break}}};return u.addEventListener("keydown",E),()=>{u.removeEventListener("keydown",E)}});return()=>{p.forEach(u=>u())}},[o,n,e,t,r,i,l])}function Ze(n,e){if(n.length!==e.length)return!1;for(let t=0;t<n.length;t++)if(n[t]!==e[t])return!1;return!0}function gn(n,e){const t=n==="horizontal",{x:r,y:i}=Ce(e);return t?r:i}function jn(n,e,t,r,i){const o=t==="horizontal",l=Re(e,i);x(l,`No resize handle element found for id "${e}"`);const a=l.getAttribute(A.groupId);x(a,"Resize handle element has no group id attribute");let{initialCursorPosition:s}=r;const h=gn(t,n),w=pn(a,i);x(w,`No group element found for id "${a}"`);const p=w.getBoundingClientRect(),u=o?p.width:p.height;return(h-s)/u*100}function Fn(n,e,t,r,i,o){if(nn(n)){const l=t==="horizontal";let a=0;n.shiftKey?a=100:i!=null?a=i:a=10;let s=0;switch(n.key){case"ArrowDown":s=l?0:a;break;case"ArrowLeft":s=l?-a:0;break;case"ArrowRight":s=l?a:0;break;case"ArrowUp":s=l?0:-a;break;case"End":s=100;break;case"Home":s=-100;break}return s}else return r==null?0:jn(n,e,t,r,o)}function Kn({panelDataArray:n}){const e=Array(n.length),t=n.map(o=>o.constraints);let r=0,i=100;for(let o=0;o<n.length;o++){const l=t[o];x(l,`Panel constraints not found for index ${o}`);const{defaultSize:a}=l;a!=null&&(r++,e[o]=a,i-=a)}for(let o=0;o<n.length;o++){const l=t[o];x(l,`Panel constraints not found for index ${o}`);const{defaultSize:a}=l;if(a!=null)continue;const s=n.length-r,h=i/s;r++,e[o]=h,i-=h}return e}function oe(n,e,t){e.forEach((r,i)=>{const o=n[i];x(o,`Panel data not found for index ${i}`);const{callbacks:l,constraints:a,id:s}=o,{collapsedSize:h=0,collapsible:w}=a,p=t[s];if(p==null||r!==p){t[s]=r;const{onCollapse:u,onExpand:v,onResize:z}=l;z&&z(r,p),w&&(u||v)&&(v&&(p==null||X(p,h))&&!X(r,h)&&v(),u&&(p==null||!X(p,h))&&X(r,h)&&u())}})}function be(n,e){if(n.length!==e.length)return!1;for(let t=0;t<n.length;t++)if(n[t]!=e[t])return!1;return!0}function Un({defaultSize:n,dragState:e,layout:t,panelData:r,panelIndex:i,precision:o=3}){const l=t[i];let a;return l==null?a=n!=null?n.toPrecision(o):"1":r.length===1?a="1":a=l.toPrecision(o),{flexBasis:0,flexGrow:a,flexShrink:1,overflow:"hidden",pointerEvents:e!==null?"none":void 0}}function Vn(n,e=10){let t=null;return(...i)=>{t!==null&&clearTimeout(t),t=setTimeout(()=>{n(...i)},e)}}function Oe(n){try{if(typeof localStorage<"u")n.getItem=e=>localStorage.getItem(e),n.setItem=(e,t)=>{localStorage.setItem(e,t)};else throw new Error("localStorage not supported in this environment")}catch(e){console.error(e),n.getItem=()=>null,n.setItem=()=>{}}}function mn(n){return`react-resizable-panels:${n}`}function hn(n){return n.map(e=>{const{constraints:t,id:r,idIsFromProps:i,order:o}=e;return i?r:o?`${o}:${JSON.stringify(t)}`:JSON.stringify(t)}).sort((e,t)=>e.localeCompare(t)).join(",")}function zn(n,e){try{const t=mn(n),r=e.getItem(t);if(r){const i=JSON.parse(r);if(typeof i=="object"&&i!=null)return i}}catch{}return null}function Zn(n,e,t){var r,i;const o=(r=zn(n,t))!==null&&r!==void 0?r:{},l=hn(e);return(i=o[l])!==null&&i!==void 0?i:null}function On(n,e,t,r,i){var o;const l=mn(n),a=hn(e),s=(o=zn(n,i))!==null&&o!==void 0?o:{};s[a]={expandToSizes:Object.fromEntries(t.entries()),layout:r};try{i.setItem(l,JSON.stringify(s))}catch(h){console.error(h)}}function qe({layout:n,panelConstraints:e}){const t=[...n],r=t.reduce((o,l)=>o+l,0);if(t.length!==e.length)throw Error(`Invalid ${e.length} panel layout: ${t.map(o=>`${o}%`).join(", ")}`);if(!j(r,100)&&t.length>0)for(let o=0;o<e.length;o++){const l=t[o];x(l!=null,`No layout data found for index ${o}`);const a=100/r*l;t[o]=a}let i=0;for(let o=0;o<e.length;o++){const l=t[o];x(l!=null,`No layout data found for index ${o}`);const a=le({panelConstraints:e,panelIndex:o,size:l});l!=a&&(i+=l-a,t[o]=a)}if(!j(i,0))for(let o=0;o<e.length;o++){const l=t[o];x(l!=null,`No layout data found for index ${o}`);const a=l+i,s=le({panelConstraints:e,panelIndex:o,size:a});if(l!==s&&(i-=s-l,t[o]=s,j(i,0)))break}return t}const qn=100,me={getItem:n=>(Oe(me),me.getItem(n)),setItem:(n,e)=>{Oe(me),me.setItem(n,e)}},Xe={};function yn({autoSaveId:n=null,children:e,className:t="",direction:r,forwardedRef:i,id:o=null,onLayout:l=null,keyboardResizeBy:a=null,storage:s=me,style:h,tagName:w="div",...p}){const u=Ge(o),v=f.useRef(null),[z,C]=f.useState(null),[E,S]=f.useState([]),L=_n(),N=f.useRef({}),D=f.useRef(new Map),V=f.useRef(0),R=f.useRef({autoSaveId:n,direction:r,dragState:z,id:u,keyboardResizeBy:a,onLayout:l,storage:s}),P=f.useRef({layout:E,panelDataArray:[],panelDataArrayChanged:!1});f.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),f.useImperativeHandle(i,()=>({getId:()=>R.current.id,getLayout:()=>{const{layout:c}=P.current;return c},setLayout:c=>{const{onLayout:m}=R.current,{layout:b,panelDataArray:g}=P.current,d=qe({layout:c,panelConstraints:g.map(y=>y.constraints)});Ze(b,d)||(S(d),P.current.layout=d,m&&m(d),oe(g,d,N.current))}}),[]),ne(()=>{R.current.autoSaveId=n,R.current.direction=r,R.current.dragState=z,R.current.id=u,R.current.onLayout=l,R.current.storage=s}),Wn({committedValuesRef:R,eagerValuesRef:P,groupId:u,layout:E,panelDataArray:P.current.panelDataArray,setLayout:S,panelGroupElement:v.current}),f.useEffect(()=>{const{panelDataArray:c}=P.current;if(n){if(E.length===0||E.length!==c.length)return;let m=Xe[n];m==null&&(m=Vn(On,qn),Xe[n]=m);const b=[...c],g=new Map(D.current);m(n,b,g,E,s)}},[n,E,s]),f.useEffect(()=>{});const F=f.useCallback(c=>{const{onLayout:m}=R.current,{layout:b,panelDataArray:g}=P.current;if(c.constraints.collapsible){const d=g.map(Z=>Z.constraints),{collapsedSize:y=0,panelSize:I,pivotIndices:$}=Q(g,c,b);if(x(I!=null,`Panel size not found for panel "${c.id}"`),!X(I,y)){D.current.set(c.id,I);const O=ie(g,c)===g.length-1?I-y:y-I,k=ge({delta:O,initialLayout:b,panelConstraints:d,pivotIndices:$,prevLayout:b,trigger:"imperative-api"});be(b,k)||(S(k),P.current.layout=k,m&&m(k),oe(g,k,N.current))}}},[]),q=f.useCallback((c,m)=>{const{onLayout:b}=R.current,{layout:g,panelDataArray:d}=P.current;if(c.constraints.collapsible){const y=d.map(K=>K.constraints),{collapsedSize:I=0,panelSize:$=0,minSize:Z=0,pivotIndices:O}=Q(d,c,g),k=m??Z;if(X($,I)){const K=D.current.get(c.id),de=K!=null&&K>=k?K:k,Le=ie(d,c)===d.length-1?$-de:de-$,T=ge({delta:Le,initialLayout:g,panelConstraints:y,pivotIndices:O,prevLayout:g,trigger:"imperative-api"});be(g,T)||(S(T),P.current.layout=T,b&&b(T),oe(d,T,N.current))}}},[]),W=f.useCallback(c=>{const{layout:m,panelDataArray:b}=P.current,{panelSize:g}=Q(b,c,m);return x(g!=null,`Panel size not found for panel "${c.id}"`),g},[]),G=f.useCallback((c,m)=>{const{panelDataArray:b}=P.current,g=ie(b,c);return Un({defaultSize:m,dragState:z,layout:E,panelData:b,panelIndex:g})},[z,E]),M=f.useCallback(c=>{const{layout:m,panelDataArray:b}=P.current,{collapsedSize:g=0,collapsible:d,panelSize:y}=Q(b,c,m);return x(y!=null,`Panel size not found for panel "${c.id}"`),d===!0&&X(y,g)},[]),Y=f.useCallback(c=>{const{layout:m,panelDataArray:b}=P.current,{collapsedSize:g=0,collapsible:d,panelSize:y}=Q(b,c,m);return x(y!=null,`Panel size not found for panel "${c.id}"`),!d||te(y,g)>0},[]),_=f.useCallback(c=>{const{panelDataArray:m}=P.current;m.push(c),m.sort((b,g)=>{const d=b.order,y=g.order;return d==null&&y==null?0:d==null?-1:y==null?1:d-y}),P.current.panelDataArrayChanged=!0,L()},[L]);ne(()=>{if(P.current.panelDataArrayChanged){P.current.panelDataArrayChanged=!1;const{autoSaveId:c,onLayout:m,storage:b}=R.current,{layout:g,panelDataArray:d}=P.current;let y=null;if(c){const $=Zn(c,d,b);$&&(D.current=new Map(Object.entries($.expandToSizes)),y=$.layout)}y==null&&(y=Kn({panelDataArray:d}));const I=qe({layout:y,panelConstraints:d.map($=>$.constraints)});Ze(g,I)||(S(I),P.current.layout=I,m&&m(I),oe(d,I,N.current))}}),ne(()=>{const c=P.current;return()=>{c.layout=[]}},[]);const H=f.useCallback(c=>{let m=!1;const b=v.current;return b&&window.getComputedStyle(b,null).getPropertyValue("direction")==="rtl"&&(m=!0),function(d){d.preventDefault();const y=v.current;if(!y)return()=>null;const{direction:I,dragState:$,id:Z,keyboardResizeBy:O,onLayout:k}=R.current,{layout:K,panelDataArray:de}=P.current,{initialLayout:ve}=$??{},Le=dn(Z,c,y);let T=Fn(d,c,I,$,O,y);const We=I==="horizontal";We&&m&&(T=-T);const bn=de.map(Sn=>Sn.constraints),pe=ge({delta:T,initialLayout:ve??K,panelConstraints:bn,pivotIndices:Le,prevLayout:K,trigger:nn(d)?"keyboard":"mouse-or-touch"}),je=!be(K,pe);(tn(d)||rn(d))&&V.current!=T&&(V.current=T,!je&&T!==0?We?Ne(c,T<0?ln:an):Ne(c,T<0?sn:un):Ne(c,0)),je&&(S(pe),P.current.layout=pe,k&&k(pe),oe(de,pe,N.current))}},[]),B=f.useCallback((c,m)=>{const{onLayout:b}=R.current,{layout:g,panelDataArray:d}=P.current,y=d.map(K=>K.constraints),{panelSize:I,pivotIndices:$}=Q(d,c,g);x(I!=null,`Panel size not found for panel "${c.id}"`);const O=ie(d,c)===d.length-1?I-m:m-I,k=ge({delta:O,initialLayout:g,panelConstraints:y,pivotIndices:$,prevLayout:g,trigger:"imperative-api"});be(g,k)||(S(k),P.current.layout=k,b&&b(k),oe(d,k,N.current))},[]),se=f.useCallback((c,m)=>{const{layout:b,panelDataArray:g}=P.current,{collapsedSize:d=0,collapsible:y}=m,{collapsedSize:I=0,collapsible:$,maxSize:Z=100,minSize:O=0}=c.constraints,{panelSize:k}=Q(g,c,b);k!=null&&(y&&$&&X(k,d)?X(d,I)||B(c,I):k<O?B(c,O):k>Z&&B(c,Z))},[B]),ue=f.useCallback((c,m)=>{const{direction:b}=R.current,{layout:g}=P.current;if(!v.current)return;const d=Re(c,v.current);x(d,`Drag handle element not found for id "${c}"`);const y=gn(b,m);C({dragHandleId:c,dragHandleRect:d.getBoundingClientRect(),initialCursorPosition:y,initialLayout:g})},[]),ce=f.useCallback(()=>{C(null)},[]),xe=f.useCallback(c=>{const{panelDataArray:m}=P.current,b=ie(m,c);b>=0&&(m.splice(b,1),delete N.current[c.id],P.current.panelDataArrayChanged=!0,L())},[L]),re=f.useMemo(()=>({collapsePanel:F,direction:r,dragState:z,expandPanel:q,getPanelSize:W,getPanelStyle:G,groupId:u,isPanelCollapsed:M,isPanelExpanded:Y,reevaluatePanelConstraints:se,registerPanel:_,registerResizeHandle:H,resizePanel:B,startDragging:ue,stopDragging:ce,unregisterPanel:xe,panelGroupElement:v.current}),[F,z,r,q,W,G,u,M,Y,se,_,H,B,ue,ce,xe]),fe={display:"flex",flexDirection:r==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return f.createElement(Ee.Provider,{value:re},f.createElement(w,{...p,children:e,className:t,id:o,ref:v,style:{...fe,...h},[A.group]:"",[A.groupDirection]:r,[A.groupId]:u}))}const xn=f.forwardRef((n,e)=>f.createElement(yn,{...n,forwardedRef:e}));yn.displayName="PanelGroup";xn.displayName="forwardRef(PanelGroup)";function ie(n,e){return n.findIndex(t=>t===e||t.id===e.id)}function Q(n,e,t){const r=ie(n,e),o=r===n.length-1?[r-1,r]:[r,r+1],l=t[r];return{...e.constraints,panelSize:l,pivotIndices:o}}function Xn({disabled:n,handleId:e,resizeHandler:t,panelGroupElement:r}){f.useEffect(()=>{if(n||t==null||r==null)return;const i=Re(e,r);if(i==null)return;const o=l=>{if(!l.defaultPrevented)switch(l.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{l.preventDefault(),t(l);break}case"F6":{l.preventDefault();const a=i.getAttribute(A.groupId);x(a,`No group element found for id "${a}"`);const s=ye(a,r),h=fn(a,e,r);x(h!==null,`No resize element found for id "${e}"`);const w=l.shiftKey?h>0?h-1:s.length-1:h+1<s.length?h+1:0;s[w].focus();break}}};return i.addEventListener("keydown",o),()=>{i.removeEventListener("keydown",o)}},[r,n,e,t])}function vn({children:n=null,className:e="",disabled:t=!1,hitAreaMargins:r,id:i,onBlur:o,onClick:l,onDragging:a,onFocus:s,onPointerDown:h,onPointerUp:w,style:p={},tabIndex:u=0,tagName:v="div",...z}){var C,E;const S=f.useRef(null),L=f.useRef({onClick:l,onDragging:a,onPointerDown:h,onPointerUp:w});f.useEffect(()=>{L.current.onClick=l,L.current.onDragging=a,L.current.onPointerDown=h,L.current.onPointerUp=w});const N=f.useContext(Ee);if(N===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:D,groupId:V,registerResizeHandle:R,startDragging:P,stopDragging:F,panelGroupElement:q}=N,W=Ge(i),[G,M]=f.useState("inactive"),[Y,_]=f.useState(!1),[H,B]=f.useState(null),se=f.useRef({state:G});ne(()=>{se.current.state=G}),f.useEffect(()=>{if(t)B(null);else{const re=R(W);B(()=>re)}},[t,W,R]);const ue=(C=r?.coarse)!==null&&C!==void 0?C:15,ce=(E=r?.fine)!==null&&E!==void 0?E:5;f.useEffect(()=>{if(t||H==null)return;const re=S.current;x(re,"Element ref not attached");let fe=!1;return Dn(W,re,D,{coarse:ue,fine:ce},(m,b,g)=>{if(!b){M("inactive");return}switch(m){case"down":{M("drag"),fe=!1,x(g,'Expected event to be defined for "down" action'),P(W,g);const{onDragging:d,onPointerDown:y}=L.current;d?.(!0),y?.();break}case"move":{const{state:d}=se.current;fe=!0,d!=="drag"&&M("hover"),x(g,'Expected event to be defined for "move" action'),H(g);break}case"up":{M("hover"),F();const{onClick:d,onDragging:y,onPointerUp:I}=L.current;y?.(!1),I?.(),fe||d?.();break}}})},[ue,D,t,ce,R,W,H,P,F]),Xn({disabled:t,handleId:W,resizeHandler:H,panelGroupElement:q});const xe={touchAction:"none",userSelect:"none"};return f.createElement(v,{...z,children:n,className:e,id:i,onBlur:()=>{_(!1),o?.()},onFocus:()=>{_(!0),s?.()},ref:S,role:"separator",style:{...xe,...p},tabIndex:u,[A.groupDirection]:D,[A.groupId]:V,[A.resizeHandle]:"",[A.resizeHandleActive]:G==="drag"?"pointer":Y?"keyboard":void 0,[A.resizeHandleEnabled]:!t,[A.resizeHandleId]:W,[A.resizeHandleState]:G})}vn.displayName="PanelResizeHandle";function Qn(n){const e=He.c(8);let t,r;e[0]!==n?({className:t,...r}=n,e[0]=n,e[1]=t,e[2]=r):(t=e[1],r=e[2]);let i;e[3]!==t?(i=Je("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",t),e[3]=t,e[4]=i):i=e[4];let o;return e[5]!==r||e[6]!==i?(o=he.jsx(xn,{"data-slot":"resizable-panel-group",className:i,...r}),e[5]=r,e[6]=i,e[7]=o):o=e[7],o}function et(n){const e=He.c(4);let t;e[0]!==n?({...t}=n,e[0]=n,e[1]=t):t=e[1];let r;return e[2]!==t?(r=he.jsx(en,{"data-slot":"resizable-panel",...t}),e[2]=t,e[3]=r):r=e[3],r}function nt(n){const e=He.c(12);let t,r,i;e[0]!==n?({withHandle:i,className:t,...r}=n,e[0]=n,e[1]=t,e[2]=r,e[3]=i):(t=e[1],r=e[2],i=e[3]);let o;e[4]!==t?(o=Je("bg-border focus-visible:ring-ring relative flex w-[0.5px] items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-hidden data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",t),e[4]=t,e[5]=o):o=e[5];let l;e[6]!==i?(l=i&&he.jsx("div",{className:"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border",children:he.jsx(Ye,{className:"size-2.5"})}),e[6]=i,e[7]=l):l=e[7];let a;return e[8]!==r||e[9]!==o||e[10]!==l?(a=he.jsx(vn,{"data-slot":"resizable-handle",className:o,...r,children:l}),e[8]=r,e[9]=o,e[10]=l,e[11]=a):a=e[11],a}export{et as R,nt as a,Qn as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as x,j as u}from"./index-
|
|
1
|
+
import{c as x,j as u}from"./index-C8OOnmm1.js";import{c,B as p}from"./button-C83AQWC1.js";import{B as g}from"./badge-DfeUgg96.js";function j(f){const e=x.c(12),{tabs:d,activeTab:n,onTabChange:s,className:l}=f;let t;e[0]!==l?(t=c("flex items-center gap-2 overflow-x-auto no-scrollbar",l),e[0]=l,e[1]=t):t=e[1];let o;if(e[2]!==n||e[3]!==s||e[4]!==d){let i;e[6]!==n||e[7]!==s?(i=r=>{const m=n===r.id;return u.jsxs(p,{variant:"outline",size:"sm",onClick:()=>s(r.id),className:c("h-8 rounded-lg border border-transparent bg-transparent px-3 py-1 hover:bg-muted",m&&"bg-muted border-input text-foreground font-medium",!m&&"text-muted-foreground font-normal"),children:[r.label,r.count!==void 0&&u.jsx(g,{variant:"secondary",className:c("ml-2 h-5 min-w-5 px-1 rounded-full text-[10px] font-mono",m?"bg-background text-foreground":"bg-muted-foreground/10 text-muted-foreground"),children:r.count})]},r.id)},e[6]=n,e[7]=s,e[8]=i):i=e[8],o=d.map(i),e[2]=n,e[3]=s,e[4]=d,e[5]=o}else o=e[5];let a;return e[9]!==t||e[10]!==o?(a=u.jsx("div",{className:t,children:o}),e[9]=t,e[10]=o,e[11]=a):a=e[11],a}export{j as R};
|