decocms 2.176.0 → 2.176.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-PBJUtpjc.js → AlertCircle-BWr4XQe9.js} +1 -1
- package/dist/client/assets/{AlignLeft-CddYwC43.js → AlignLeft-BJyvDaBk.js} +1 -1
- package/dist/client/assets/{ArrowDown-LiBnMzQV.js → ArrowDown-BPMtK04S.js} +1 -1
- package/dist/client/assets/{ArrowLeft-BHzi0YLf.js → ArrowLeft-GOjXvqCa.js} +1 -1
- package/dist/client/assets/{ArrowUp-WIHiBhdv.js → ArrowUp-DqOjcDuh.js} +1 -1
- package/dist/client/assets/{Building02-c7FCt8-6.js → Building02-D_v8ZXC2.js} +1 -1
- package/dist/client/assets/{Check-Bme4aNg5.js → Check-DAFdA2oM.js} +1 -1
- package/dist/client/assets/{CheckCircle-BSVa-h_Y.js → CheckCircle-BL2mIAJn.js} +1 -1
- package/dist/client/assets/{CheckVerified02-e9BOcL0K.js → CheckVerified02-YYsvmiw4.js} +1 -1
- package/dist/client/assets/{ChevronDown-jyPVRLzp.js → ChevronDown-C-3qjfHK.js} +1 -1
- package/dist/client/assets/{ChevronLeft-Bn35AKxx.js → ChevronLeft-Dugo1z8_.js} +1 -1
- package/dist/client/assets/{ChevronRight-Ct9VK1GH.js → ChevronRight-B3gSyJmK.js} +1 -1
- package/dist/client/assets/{ChevronUp-B5BOcmGB.js → ChevronUp-Rk5dLXNx.js} +1 -1
- package/dist/client/assets/{Clock-Bwl2wOhM.js → Clock-Ccv6eV04.js} +1 -1
- package/dist/client/assets/{Code01-DygQPwlG.js → Code01-CoEt5nyY.js} +1 -1
- package/dist/client/assets/{Container-BeAIfNvy.js → Container-CQmXt7Nc.js} +1 -1
- package/dist/client/assets/{Copy01-ekqsSfJN.js → Copy01-D7uh0hW0.js} +1 -1
- package/dist/client/assets/{Dataflow03-BGqN1hrV.js → Dataflow03-ccC0qbkR.js} +1 -1
- package/dist/client/assets/{DotsHorizontal-BYFCLgks.js → DotsHorizontal-C3QGwRko.js} +1 -1
- package/dist/client/assets/{DotsVertical-Dn5mVo7u.js → DotsVertical-D5tMnzaQ.js} +1 -1
- package/dist/client/assets/{Download01-DQJbGhrI.js → Download01-BDm0aKH5.js} +1 -1
- package/dist/client/assets/{Edit01-BxDvpu_b.js → Edit01-DEd4k1xo.js} +1 -1
- package/dist/client/assets/{Edit05-Bta0rpFO.js → Edit05-RRC6ol7j.js} +1 -1
- package/dist/client/assets/{Eye-DN-kY_sb.js → Eye-MRRTHIte.js} +1 -1
- package/dist/client/assets/{EyeOff-E0TupCAH.js → EyeOff-CgRP1cSC.js} +1 -1
- package/dist/client/assets/{File02-Cyzf2kpD.js → File02-DdRvGWJN.js} +1 -1
- package/dist/client/assets/{File06-Ba0KxpWu.js → File06-DbRSeish.js} +1 -1
- package/dist/client/assets/{FilterLines-Ce9H-AFe.js → FilterLines-nV8jE7JI.js} +1 -1
- package/dist/client/assets/{Globe01-Cks65mCV.js → Globe01-Bb7jNfEM.js} +1 -1
- package/dist/client/assets/{Globe02-CB2InS06.js → Globe02-CDBspixd.js} +1 -1
- package/dist/client/assets/{Grid01-BvWQ72pJ.js → Grid01-COkHqk9k.js} +1 -1
- package/dist/client/assets/{Home02-C33y4DXe.js → Home02-Bjdq3zLu.js} +1 -1
- package/dist/client/assets/{Image01-B9BH_f0p.js → Image01-D4-tispo.js} +1 -1
- package/dist/client/assets/{Inbox01-ZPruuuHz.js → Inbox01-DiWhz3sk.js} +1 -1
- package/dist/client/assets/{InfoCircle-ETSHVG2F.js → InfoCircle-tftxVx0C.js} +1 -1
- package/dist/client/assets/{Key01-CdH7i8vY.js → Key01-Cv0XYLbb.js} +1 -1
- package/dist/client/assets/{LayersTwo01-8gQGsURS.js → LayersTwo01-DdRcHsrK.js} +1 -1
- package/dist/client/assets/{LayoutLeft-Bn9kcy6T.js → LayoutLeft-BuqgN7z4.js} +1 -1
- package/dist/client/assets/{Link01-B4s1G5Jr.js → Link01-Bo114MSv.js} +1 -1
- package/dist/client/assets/{LinkExternal01-B5VTVW6k.js → LinkExternal01-Div7VvWd.js} +1 -1
- package/dist/client/assets/{List-BU70NJSh.js → List-_Z2X7aPf.js} +1 -1
- package/dist/client/assets/{Loading01-Dt16NixZ.js → Loading01-BYjTtpy0.js} +1 -1
- package/dist/client/assets/{Lock01-DZeZ3WxC.js → Lock01-j13GCiRT.js} +1 -1
- package/dist/client/assets/{Play-WAyK_VUq.js → Play-BOK5c4Hp.js} +1 -1
- package/dist/client/assets/{Plus-DN4FtVmx.js → Plus-1vH_gFoY.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-B88e0cNw.js → RefreshCcw01-ghOVEWuz.js} +1 -1
- package/dist/client/assets/{Save01-BCInJWrH.js → Save01-43mxrIvD.js} +1 -1
- package/dist/client/assets/{SearchMd-BQseJVRu.js → SearchMd-Dn4cWwEm.js} +1 -1
- package/dist/client/assets/{Settings01-CS4vVmx5.js → Settings01-B3FNPQBg.js} +1 -1
- package/dist/client/assets/{Shield01-BZpNsAZG.js → Shield01-0suO3hAe.js} +1 -1
- package/dist/client/assets/{Terminal-BDeJ6lHB.js → Terminal-CvfSVl9m.js} +1 -1
- package/dist/client/assets/{Tool01-xNX6v26H.js → Tool01-3i6uRXKJ.js} +1 -1
- package/dist/client/assets/{Trash01-PnuUudMl.js → Trash01-Dmi4vR7Q.js} +1 -1
- package/dist/client/assets/{Upload01-CSDtabhZ.js → Upload01-Cqh5tD2o.js} +1 -1
- package/dist/client/assets/{Users03-rAyzQyh3.js → Users03-CUiUl0DH.js} +1 -1
- package/dist/client/assets/{X-CxZVsh3L.js → X-Car5B1de.js} +1 -1
- package/dist/client/assets/{XClose-hdsxwv2G.js → XClose-D08ltwBw.js} +1 -1
- package/dist/client/assets/{Zap-azdz5wfI.js → Zap-CbjhdbUU.js} +1 -1
- package/dist/client/assets/{agent-connections-preview-XZw5-X3u.js → agent-connections-preview-Dv4euUYL.js} +1 -1
- package/dist/client/assets/{agent-detail-BJSxCMs1.js → agent-detail-BignzT6b.js} +1 -1
- package/dist/client/assets/{agents-DQWRQl2B.js → agents-DRDlT25N.js} +1 -1
- package/dist/client/assets/{ai-providers-logos-DPOiBl7V.js → ai-providers-logos-4n_w8l7D.js} +1 -1
- package/dist/client/assets/{alert-dialog-DdwA_v8c.js → alert-dialog-BZtQAioB.js} +1 -1
- package/dist/client/assets/{auth-catchall-WCsr2pQN.js → auth-catchall-BorI3Y5Q.js} +1 -1
- package/dist/client/assets/{automation-detail-BZk6VK2r.js → automation-detail-MAP63xhb.js} +1 -1
- package/dist/client/assets/{automations-B0oZ4Oep.js → automations-CXEh0WQH.js} +1 -1
- package/dist/client/assets/{avatar-CXKBBJaI.js → avatar-DEdDAQ0j.js} +1 -1
- package/dist/client/assets/{badge-BfLRgdaW.js → badge-BTw8dF6C.js} +1 -1
- package/dist/client/assets/{binder-B5Q0NNkg.js → binder-B2xnCBeC.js} +1 -1
- package/dist/client/assets/{breadcrumb-BhQI8Xw3.js → breadcrumb-CcE89MsN.js} +1 -1
- package/dist/client/assets/{card-B8QXMrj8.js → card-B6XTMOTf.js} +1 -1
- package/dist/client/assets/{checkbox-C5Om9oxx.js → checkbox-BA_JFbx4.js} +1 -1
- package/dist/client/assets/{collapsible-MCSgly5t.js → collapsible-CW12HasT.js} +1 -1
- package/dist/client/assets/{collection-detail-CrytnlOI.js → collection-detail-DTZ81ye0.js} +1 -1
- package/dist/client/assets/{collection-display-button-D7NovPlc.js → collection-display-button-BJQ_VSFQ.js} +1 -1
- package/dist/client/assets/{collection-search-DDX1Zkg7.js → collection-search-D6ILFEtf.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-YGokzak8.js → collection-table-wrapper-D0JGm79B.js} +1 -1
- package/dist/client/assets/{collection-tabs-D8NPXaOU.js → collection-tabs-fsXO7rse.js} +1 -1
- package/dist/client/assets/{command-BVlE6-p8.js → command-DwfoahUI.js} +1 -1
- package/dist/client/assets/{connection-card-D0Hulz9h.js → connection-card-CoZ_ixiG.js} +1 -1
- package/dist/client/assets/{connection-detail-C-Ge5CVn.js → connection-detail-BPi4jlBF.js} +1 -1
- package/dist/client/assets/{connection-status-CxcA3Thg.js → connection-status-CulzjjXt.js} +1 -1
- package/dist/client/assets/{connections-DWyHpNQR.js → connections-2fSWPLii.js} +1 -1
- package/dist/client/assets/{constants-CKGlP4oN.js → constants-CLw0F8Mm.js} +1 -1
- package/dist/client/assets/constants-D3bMpbG0.js +1 -0
- package/dist/client/assets/{context-ow-zK3BP.js → context-ClUgEsLK.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-CFn_U9MK.js → create-organization-dialog-CNZiViYc.js} +1 -1
- package/dist/client/assets/{create-project-dialog-Rt5_XeVq.js → create-project-dialog-QYAKiAC_.js} +1 -1
- package/dist/client/assets/{danger-CgzhgW7h.js → danger-1mM9iHWV.js} +1 -1
- package/dist/client/assets/{danger-zone-CvDs5VVH.js → danger-zone-DSO2EIjr.js} +1 -1
- package/dist/client/assets/{dependencies-BbmKfxYe.js → dependencies-DtSMIESZ.js} +1 -1
- package/dist/client/assets/{dialog-COv8XUO0.js → dialog-ZIc7OUaM.js} +1 -1
- package/dist/client/assets/{dropdown-menu-Cr1iKfFo.js → dropdown-menu-EcTFyr4x.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-BIVc19gr.js → dynamic-plugin-layout-D40fWFup.js} +1 -1
- package/dist/client/assets/{editable-task-title-CrGgc8Hx.js → editable-task-title-CeJC7Fwa.js} +1 -1
- package/dist/client/assets/{empty-state-DsQ7yRoE.js → empty-state-gZUVmgL7.js} +1 -1
- package/dist/client/assets/{empty-state-CsEI90cv.js → empty-state-m7QcZ687.js} +1 -1
- package/dist/client/assets/{env-vars-editor-r00KzDtj.js → env-vars-editor-CIM7XauD.js} +1 -1
- package/dist/client/assets/{extract-connection-data-D46U8dB4.js → extract-connection-data-DEaEvOm7.js} +1 -1
- package/dist/client/assets/{file-browser-C8BCEBfL.js → file-browser-ChPNBU91.js} +2 -2
- package/dist/client/assets/{form-CZrleug2.js → form-Cd_AEgzv.js} +1 -1
- package/dist/client/assets/{general-39EgW9sq.js → general-mH6Dkpor.js} +1 -1
- package/dist/client/assets/{grid-view-CYvRmpTY.js → grid-view-C9tD8dqF.js} +1 -1
- package/dist/client/assets/{home-CwDvuqcO.js → home-icifeNIm.js} +1 -1
- package/dist/client/assets/{index-cEL2CgNm.js → index-BPs3Pxaa.js} +1 -1
- package/dist/client/assets/{index-Bc75bxbq.js → index-Bg2XE05Y.js} +1 -1
- package/dist/client/assets/{index-B23wyLB_.js → index-BrqeZa9X.js} +1 -1
- package/dist/client/assets/{index-DRLd-piX.js → index-CRi6734Z.js} +1 -1
- package/dist/client/assets/{index-CVyJGNS2.js → index-CfjT_Fv-.js} +1 -1
- package/dist/client/assets/{index-CT-515LV.js → index-Cg4edYBM.js} +1 -1
- package/dist/client/assets/{index-sEMWxAyS.js → index-Cz_J9f63.js} +1 -1
- package/dist/client/assets/{index-CsqngJxb.js → index-DKWOGpkx.js} +1 -1
- package/dist/client/assets/{index-BlBXXIdz.js → index-Dk4FCobs.js} +1 -1
- package/dist/client/assets/{index-iqPDmcBY.js → index-DxqOk4x4.js} +1 -1
- package/dist/client/assets/{index-B_DxRVw1.js → index-OyLnxARk.js} +3 -3
- package/dist/client/assets/{infiniteQueryObserver-DNhlrWmr.js → infiniteQueryObserver-BkZg7AVk.js} +1 -1
- package/dist/client/assets/{input-DqwWeNgs.js → input-B4YrZuiK.js} +1 -1
- package/dist/client/assets/{integration-icon-Dv0HduyT.js → integration-icon-B3aufi6R.js} +1 -1
- package/dist/client/assets/{label--AQoxbpU.js → label-BoRKSV_h.js} +1 -1
- package/dist/client/assets/{layout-Cji69-Fr.js → layout-C2-eT_B4.js} +1 -1
- package/dist/client/assets/{layout-CDyeWvbl.js → layout-DwPAPIK-.js} +1 -1
- package/dist/client/assets/{login-D1A8YvmQ.js → login-CYxKPB-k.js} +1 -1
- package/dist/client/assets/{logo-upload-BlIbeyor.js → logo-upload-DsXuRpYi.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-D7CJTHIn.js → mcp-app-renderer-KZyUYhBW.js} +1 -1
- package/dist/client/assets/{mcp-server-card-PhaJL10h.js → mcp-server-card-mO0UAT9W.js} +1 -1
- package/dist/client/assets/{mcp-server-detail-BInJ9Okh.js → mcp-server-detail-CyByMkle.js} +2 -2
- package/dist/client/assets/{members-WK1ZXtTy.js → members-3oNbzlXC.js} +1 -1
- package/dist/client/assets/{monaco-editor-Dgc89AWr.js → monaco-editor-DDZgyrgO.js} +1 -1
- package/dist/client/assets/{monitoring-Co1Fc87j.js → monitoring-Xs5hJ6u_.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-edit-BllFPC-c.js → monitoring-dashboard-edit-C_1U7sTf.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-view-CztiwjLo.js → monitoring-dashboard-view-DcMyYV2C.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-C4WAOhN_.js → monitoring-stats-row-CIKRC_fM.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-Bcscfh1C.js → oauth-callback-ai-provider-CX0oMmvR.js} +1 -1
- package/dist/client/assets/{oauth-callback-oApNt2lX.js → oauth-callback-kezpwk-4.js} +1 -1
- package/dist/client/assets/{org-ai-providers-BHi1kOOt.js → org-ai-providers-dfJpkNdu.js} +1 -1
- package/dist/client/assets/{page-Dpk4jTO5.js → page-Y307a-9q.js} +1 -1
- package/dist/client/assets/{page-BZV8vSMw.js → page-y0K-3s3k.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-BqFvCCv9.js → plugin-empty-state-BB0mg-1W.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-DGylhF1c.js → plugin-empty-state-DwyPPEO0.js} +1 -1
- package/dist/client/assets/{plugin-header-B9UGjso3.js → plugin-header-BMLNemwj.js} +1 -1
- package/dist/client/assets/{plugin-header-CMHji8Df.js → plugin-header-DNeIXlLi.js} +1 -1
- package/dist/client/assets/plugins-CVEdGukW.js +1 -0
- package/dist/client/assets/{popover-DOnHuwq3.js → popover-BKHsia9C.js} +1 -1
- package/dist/client/assets/{project-app-view-fPmiutKj.js → project-app-view-C7kPLPhi.js} +1 -1
- package/dist/client/assets/{project-layout-CDVw6pd9.js → project-layout-C_1_eCl-.js} +1 -1
- package/dist/client/assets/{project-plugins-DwwhiaLk.js → project-plugins-BgoKgZwd.js} +1 -1
- package/dist/client/assets/{projects-list-BY_yiyPl.js → projects-list-B3H-urrL.js} +1 -1
- package/dist/client/assets/{registry-layout-4qwa3Yrl.js → registry-layout-BHOAsCzG.js} +1 -1
- package/dist/client/assets/{registry-utils--TC_kKCq.js → registry-utils-D0qx2c0_.js} +1 -1
- package/dist/client/assets/{reset-password-ChK1U3PS.js → reset-password-o3nCvS90.js} +1 -1
- package/dist/client/assets/{resizable-DXBCOl3J.js → resizable-1OPd79St.js} +1 -1
- package/dist/client/assets/{save-actions-ChdDeTz6.js → save-actions-DQ0FV8E3.js} +1 -1
- package/dist/client/assets/{scroll-area-ACn8ZLYT.js → scroll-area-BSQHcCri.js} +1 -1
- package/dist/client/assets/{select-BM9jpLT2.js → select-Ctls6rHz.js} +1 -1
- package/dist/client/assets/{select-virtual-mcp-DzKjKtT5.js → select-virtual-mcp-CEX-N6yN.js} +1 -1
- package/dist/client/assets/{sheet-DCDIRpJJ.js → sheet-MAyp9_-H.js} +1 -1
- package/dist/client/assets/{shell-layout-BTXUcCYK.js → shell-layout-8MdYJa94.js} +2 -2
- package/dist/client/assets/{sidebar-settings-Dy0o9qBx.js → sidebar-settings-BtI4Obrm.js} +1 -1
- package/dist/client/assets/{skeleton-BkpiIfDB.js → skeleton-DAvz6Hk5.js} +1 -1
- package/dist/client/assets/{spinner-tJ67zxkj.js → spinner-CItj22uq.js} +1 -1
- package/dist/client/assets/{store-invite-CTVa-Zvm.js → store-invite-Dr9c1QQu.js} +1 -1
- package/dist/client/assets/{switch-BE6ziGyo.js → switch-BunRXVYQ.js} +1 -1
- package/dist/client/assets/{table-BOA7X4H8.js → table-DHN8Pbh9.js} +1 -1
- package/dist/client/assets/{tabs-BQ5doEBy.js → tabs-kzZLmFuM.js} +1 -1
- package/dist/client/assets/{task-status-B3QSknHK.js → task-status-D6cPLJpA.js} +1 -1
- package/dist/client/assets/tasks-CZAS_EEA.js +1 -0
- package/dist/client/assets/{tasks-panel-BXchRGWe.js → tasks-panel-6uv7gp5j.js} +1 -1
- package/dist/client/assets/{textarea-BDS2584p.js → textarea-CpLkXx5p.js} +1 -1
- package/dist/client/assets/{time-range-picker-CWEE6Pax.js → time-range-picker-CYn_bf9F.js} +1 -1
- package/dist/client/assets/{toggle-group-B9XVwguR.js → toggle-group-C-kSfPqI.js} +1 -1
- package/dist/client/assets/{tools-list-DO_G3ceo.js → tools-list-GuN2kaNF.js} +1 -1
- package/dist/client/assets/{tooltip-Bm11lCIm.js → tooltip--UA5heKX.js} +1 -1
- package/dist/client/assets/{topbar-portal-XGVG-nsS.js → topbar-portal-M3PPIThx.js} +1 -1
- package/dist/client/assets/{types-BnNswHwQ.js → types-DoomhLgW.js} +1 -1
- package/dist/client/assets/{use-automations-nu85KLSx.js → use-automations-D5ELbflL.js} +1 -1
- package/dist/client/assets/{use-collections-aokT1D_C.js → use-collections-DXLoMYCx.js} +1 -1
- package/dist/client/assets/{use-connection-DA77pjoV.js → use-connection-B7ll8uNa.js} +1 -1
- package/dist/client/assets/{use-copy-CPgIfOPM.js → use-copy-XD9UDj7l.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-Dd303mOp.js → use-create-virtual-mcp-BvSTYw2n.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-DXKnZJHX.js → use-infinite-scroll-CSG4wWka.js} +1 -1
- package/dist/client/assets/{use-install-from-registry-C_csgcCs.js → use-install-from-registry-1KLotWZ_.js} +1 -1
- package/dist/client/assets/{use-list-state-CFQBiz4L.js → use-list-state-CVKHwo0P.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-Dw4CvfV3.js → use-mcp-prompts-DyPVjaKa.js} +1 -1
- package/dist/client/assets/{use-mcp-resources-CFkkQw1d.js → use-mcp-resources-CFTlLllB.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-C3Vj1u8m.js → use-mcp-tools-S01H2JtZ.js} +1 -1
- package/dist/client/assets/{use-members-BbXqk449.js → use-members-BXkvGAIM.js} +1 -1
- package/dist/client/assets/{use-mobile-BarAf2zx.js → use-mobile-CgJAXGMs.js} +1 -1
- package/dist/client/assets/{use-project-CPyjDcpX.js → use-project-C2o9r0US.js} +1 -1
- package/dist/client/assets/{use-store-discovery-DupAMgFS.js → use-store-discovery-W6XcrfUT.js} +1 -1
- package/dist/client/assets/{use-view-mode-qVlfLymN.js → use-view-mode-CGzXYNrX.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-FAfRsySa.js → use-virtual-mcp-B8SbBr9v.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-C9KaycVy.js +1 -0
- package/dist/client/assets/{useMutation-d1AXy22c.js → useMutation-B_6d8oLI.js} +1 -1
- package/dist/client/assets/useQuery-Brtj4EoG.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-DD7d1y3B.js +1 -0
- package/dist/client/assets/{user-z34A3977.js → user-BLAfg6Ev.js} +1 -1
- package/dist/client/assets/{workflow-D77B4RT7.js → workflow-DHe_PiQF.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +230 -230
- package/dist/server/node_modules/pg-int8/LICENSE +13 -0
- package/dist/server/node_modules/pg-int8/README.md +16 -0
- package/dist/server/node_modules/pg-int8/index.js +100 -0
- package/dist/server/node_modules/pg-int8/package.json +24 -0
- package/dist/server/node_modules/postgres-bytea/index.js +33 -0
- package/dist/server/node_modules/{xtend/LICENSE → postgres-bytea/license} +2 -1
- package/dist/server/node_modules/postgres-bytea/package.json +34 -0
- package/dist/server/node_modules/postgres-bytea/readme.md +34 -0
- package/dist/server/node_modules/postgres-date/index.js +116 -0
- package/dist/server/node_modules/{pg-connection-string/LICENSE → postgres-date/license} +5 -5
- package/dist/server/node_modules/postgres-date/package.json +33 -0
- package/dist/server/node_modules/postgres-date/readme.md +49 -0
- package/dist/server/node_modules/postgres-interval/index.d.ts +20 -0
- package/dist/server/node_modules/postgres-interval/index.js +125 -0
- package/dist/server/node_modules/{pg-cloudflare/LICENSE → postgres-interval/license} +6 -6
- package/dist/server/node_modules/postgres-interval/package.json +36 -0
- package/dist/server/node_modules/postgres-interval/readme.md +48 -0
- package/dist/server/node_modules/split2/LICENSE +13 -0
- package/dist/server/node_modules/split2/README.md +85 -0
- package/dist/server/node_modules/split2/bench.js +27 -0
- package/dist/server/node_modules/split2/index.js +141 -0
- package/dist/server/node_modules/split2/package.json +39 -0
- package/dist/server/node_modules/split2/test.js +409 -0
- package/dist/server/server.js +2 -2
- package/package.json +1 -1
- package/dist/client/assets/constants-DqZ0hFNm.js +0 -1
- package/dist/client/assets/plugins-DcIPR0Gj.js +0 -1
- package/dist/client/assets/tasks-BqsZZgtJ.js +0 -1
- package/dist/client/assets/useInfiniteQuery-CCGqKrT7.js +0 -1
- package/dist/client/assets/useQuery-B8Io0Oda.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DsCmMd3U.js +0 -1
- package/dist/server/node_modules/pg-cloudflare/README.md +0 -112
- package/dist/server/node_modules/pg-cloudflare/dist/empty.d.ts +0 -2
- package/dist/server/node_modules/pg-cloudflare/dist/empty.js +0 -6
- package/dist/server/node_modules/pg-cloudflare/dist/empty.js.map +0 -1
- package/dist/server/node_modules/pg-cloudflare/dist/index.d.ts +0 -31
- package/dist/server/node_modules/pg-cloudflare/dist/index.js +0 -152
- package/dist/server/node_modules/pg-cloudflare/dist/index.js.map +0 -1
- package/dist/server/node_modules/pg-cloudflare/esm/index.mjs +0 -3
- package/dist/server/node_modules/pg-cloudflare/package.json +0 -39
- package/dist/server/node_modules/pg-cloudflare/src/empty.ts +0 -3
- package/dist/server/node_modules/pg-cloudflare/src/index.ts +0 -166
- package/dist/server/node_modules/pg-cloudflare/src/types.d.ts +0 -25
- package/dist/server/node_modules/pg-connection-string/README.md +0 -105
- package/dist/server/node_modules/pg-connection-string/esm/index.mjs +0 -8
- package/dist/server/node_modules/pg-connection-string/index.d.ts +0 -36
- package/dist/server/node_modules/pg-connection-string/index.js +0 -231
- package/dist/server/node_modules/pg-connection-string/package.json +0 -52
- package/dist/server/node_modules/pg-pool/LICENSE +0 -21
- package/dist/server/node_modules/pg-pool/README.md +0 -357
- package/dist/server/node_modules/pg-pool/esm/index.mjs +0 -5
- package/dist/server/node_modules/pg-pool/index.js +0 -517
- package/dist/server/node_modules/pg-pool/package.json +0 -51
- package/dist/server/node_modules/pg-protocol/LICENSE +0 -21
- package/dist/server/node_modules/pg-protocol/README.md +0 -3
- package/dist/server/node_modules/pg-protocol/dist/b.d.ts +0 -1
- package/dist/server/node_modules/pg-protocol/dist/b.js +0 -23
- package/dist/server/node_modules/pg-protocol/dist/b.js.map +0 -1
- package/dist/server/node_modules/pg-protocol/dist/buffer-reader.d.ts +0 -15
- package/dist/server/node_modules/pg-protocol/dist/buffer-reader.js +0 -55
- package/dist/server/node_modules/pg-protocol/dist/buffer-reader.js.map +0 -1
- package/dist/server/node_modules/pg-protocol/dist/buffer-writer.d.ts +0 -16
- package/dist/server/node_modules/pg-protocol/dist/buffer-writer.js +0 -81
- package/dist/server/node_modules/pg-protocol/dist/buffer-writer.js.map +0 -1
- package/dist/server/node_modules/pg-protocol/dist/inbound-parser.test.d.ts +0 -1
- package/dist/server/node_modules/pg-protocol/dist/inbound-parser.test.js +0 -530
- package/dist/server/node_modules/pg-protocol/dist/inbound-parser.test.js.map +0 -1
- package/dist/server/node_modules/pg-protocol/dist/index.d.ts +0 -6
- package/dist/server/node_modules/pg-protocol/dist/index.js +0 -15
- package/dist/server/node_modules/pg-protocol/dist/index.js.map +0 -1
- package/dist/server/node_modules/pg-protocol/dist/messages.d.ts +0 -162
- package/dist/server/node_modules/pg-protocol/dist/messages.js +0 -160
- package/dist/server/node_modules/pg-protocol/dist/messages.js.map +0 -1
- package/dist/server/node_modules/pg-protocol/dist/outbound-serializer.test.d.ts +0 -1
- package/dist/server/node_modules/pg-protocol/dist/outbound-serializer.test.js +0 -252
- package/dist/server/node_modules/pg-protocol/dist/outbound-serializer.test.js.map +0 -1
- package/dist/server/node_modules/pg-protocol/dist/parser.d.ts +0 -24
- package/dist/server/node_modules/pg-protocol/dist/parser.js +0 -324
- package/dist/server/node_modules/pg-protocol/dist/parser.js.map +0 -1
- package/dist/server/node_modules/pg-protocol/dist/serializer.d.ts +0 -42
- package/dist/server/node_modules/pg-protocol/dist/serializer.js +0 -189
- package/dist/server/node_modules/pg-protocol/dist/serializer.js.map +0 -1
- package/dist/server/node_modules/pg-protocol/esm/index.js +0 -11
- package/dist/server/node_modules/pg-protocol/package.json +0 -45
- package/dist/server/node_modules/pg-protocol/src/b.ts +0 -25
- package/dist/server/node_modules/pg-protocol/src/buffer-reader.ts +0 -58
- package/dist/server/node_modules/pg-protocol/src/buffer-writer.ts +0 -85
- package/dist/server/node_modules/pg-protocol/src/inbound-parser.test.ts +0 -575
- package/dist/server/node_modules/pg-protocol/src/index.ts +0 -11
- package/dist/server/node_modules/pg-protocol/src/messages.ts +0 -262
- package/dist/server/node_modules/pg-protocol/src/outbound-serializer.test.ts +0 -276
- package/dist/server/node_modules/pg-protocol/src/parser.ts +0 -413
- package/dist/server/node_modules/pg-protocol/src/serializer.ts +0 -274
- package/dist/server/node_modules/pg-protocol/src/testing/buffer-list.ts +0 -67
- package/dist/server/node_modules/pg-protocol/src/testing/test-buffers.ts +0 -166
- package/dist/server/node_modules/pg-protocol/src/types/chunky.d.ts +0 -1
- package/dist/server/node_modules/pg-types/.travis.yml +0 -7
- package/dist/server/node_modules/pg-types/Makefile +0 -14
- package/dist/server/node_modules/pg-types/README.md +0 -75
- package/dist/server/node_modules/pg-types/index.d.ts +0 -137
- package/dist/server/node_modules/pg-types/index.js +0 -47
- package/dist/server/node_modules/pg-types/index.test-d.ts +0 -21
- package/dist/server/node_modules/pg-types/lib/arrayParser.js +0 -11
- package/dist/server/node_modules/pg-types/lib/binaryParsers.js +0 -257
- package/dist/server/node_modules/pg-types/lib/builtins.js +0 -73
- package/dist/server/node_modules/pg-types/lib/textParsers.js +0 -215
- package/dist/server/node_modules/pg-types/package.json +0 -42
- package/dist/server/node_modules/pg-types/test/index.js +0 -24
- package/dist/server/node_modules/pg-types/test/types.js +0 -597
- package/dist/server/node_modules/pgpass/README.md +0 -74
- package/dist/server/node_modules/pgpass/lib/helper.js +0 -233
- package/dist/server/node_modules/pgpass/lib/index.js +0 -23
- package/dist/server/node_modules/pgpass/package.json +0 -41
- package/dist/server/node_modules/xtend/.jshintrc +0 -30
- package/dist/server/node_modules/xtend/README.md +0 -32
- package/dist/server/node_modules/xtend/immutable.js +0 -19
- package/dist/server/node_modules/xtend/mutable.js +0 -17
- package/dist/server/node_modules/xtend/package.json +0 -55
- package/dist/server/node_modules/xtend/test.js +0 -103
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{r as I,c as w,j as s,E as Ye,u as ze,y as P,e as Xe,au as Ze,L as We,cb as _t,bj as kt,O as te,as as Ct,U as wt,_ as $t,g as it,f as Ne,v as ve,cc as zt,bN as It,w as Pt,B as Ge,A as At,S as nt,k as Et,m as Ot,N as Tt,x as Dt,aw as Fe,K as Mt,av as lt,P as Rt}from"./index-B_DxRVw1.js";import{C as oe,c as Lt,i as Ht,d as Ut}from"./task-status-B3QSknHK.js";import{I as Bt}from"./integration-icon-Dv0HduyT.js";import{u as ot,P as ge,a as Je}from"./index-CsqngJxb.js";import{d as Ft,a as Kt,u as Wt}from"./constants-CKGlP4oN.js";import{n as Gt}from"./ChevronLeft-Bn35AKxx.js";import{i as Vt}from"./Loading01-Dt16NixZ.js";import{s as Le}from"./Plus-DN4FtVmx.js";import{t as et}from"./Users03-rAyzQyh3.js";import{i as tt}from"./X-CxZVsh3L.js";import{E as qt,C as Qt}from"./editable-task-title-CrGgc8Hx.js";import{T as Yt}from"./tasks-panel-BXchRGWe.js";import{a as Xt,b as Zt}from"./ai-providers-logos-DPOiBl7V.js";import{a as Jt}from"./context-ow-zK3BP.js";import{C as rt}from"./create-project-dialog-Rt5_XeVq.js";import{c as es,b as ts,D as ss,d as is}from"./dialog-COv8XUO0.js";import{n as ns}from"./Container-BeAIfNvy.js";import{e as ls}from"./Dataflow03-BGqN1hrV.js";import{a as os}from"./Home02-C33y4DXe.js";import{i as Ve}from"./LayoutLeft-Bn9kcy6T.js";import{s as rs}from"./RefreshCcw01-B88e0cNw.js";import{t as He}from"./Settings01-CS4vVmx5.js";import{u as as,a as at}from"./org-ai-providers-BHi1kOOt.js";import{u as ct,a as dt}from"./use-project-CPyjDcpX.js";import{u as cs}from"./use-mobile-BarAf2zx.js";import{d as ds,b as ms,S as fs,a as us,c as ps}from"./sheet-DCDIRpJJ.js";import{c as xs,b as hs,a as gs,T as bs}from"./tooltip-Bm11lCIm.js";import{S as ae}from"./skeleton-BkpiIfDB.js";import{n as $e}from"./LinkExternal01-B5VTVW6k.js";import{t as mt}from"./ChevronDown-jyPVRLzp.js";import{A as Ie}from"./avatar-CXKBBJaI.js";import{c as re,f as js,e as vs,b as ft,D as ut,a as pt,h as Ue,d as Ns}from"./dropdown-menu-Cr1iKfFo.js";import{t as ys}from"./Building02-c7FCt8-6.js";import{i as Pe}from"./Check-Bme4aNg5.js";import{C as Ss}from"./create-organization-dialog-CFn_U9MK.js";import{a as _s}from"./Copy01-ekqsSfJN.js";import{i as ks}from"./File06-Ba0KxpWu.js";import{i as Cs}from"./Globe01-Cks65mCV.js";import{i as ws}from"./Shield01-BZpNsAZG.js";import{a as $s,P as zs,b as Is}from"./popover-DOnHuwq3.js";import{n as st}from"./Inbox01-ZPruuuHz.js";import{s as Ps}from"./XClose-hdsxwv2G.js";import{b as As}from"./use-mcp-tools-C3Vj1u8m.js";import{C as Es,b as Os,c as Ts}from"./collapsible-MCSgly5t.js";import{i as Ds}from"./ChevronRight-Ct9VK1GH.js";import{a as Ms,R as xt,b as Rs}from"./resizable-DXBCOl3J.js";import"./spinner-tJ67zxkj.js";import"./use-mcp-prompts-Dw4CvfV3.js";import"./useQuery-B8Io0Oda.js";import"./form-CZrleug2.js";import"./label--AQoxbpU.js";import"./input-DqwWeNgs.js";import"./index-CVyJGNS2.js";import"./usage-BW6ztpN6.js";import"./ArrowUp-WIHiBhdv.js";import"./Edit01-BxDvpu_b.js";import"./Lock01-DZeZ3WxC.js";import"./use-copy-CPgIfOPM.js";import"./AlertCircle-PBJUtpjc.js";import"./select-BM9jpLT2.js";import"./ChevronUp-B5BOcmGB.js";import"./index-DRLd-piX.js";import"./ArrowLeft-BHzi0YLf.js";import"./tabs-BQ5doEBy.js";import"./badge-BfLRgdaW.js";import"./Code01-DygQPwlG.js";import"./checkbox-C5Om9oxx.js";import"./AlignLeft-CddYwC43.js";import"./Image01-B9BH_f0p.js";import"./Key01-CdH7i8vY.js";import"./SearchMd-BQseJVRu.js";import"./Tool01-xNX6v26H.js";import"./select-virtual-mcp-DzKjKtT5.js";import"./use-virtual-mcp-FAfRsySa.js";import"./use-collections-aokT1D_C.js";import"./useMutation-d1AXy22c.js";import"./use-create-virtual-mcp-Dd303mOp.js";import"./use-mcp-resources-CFkkQw1d.js";import"./marked.esm-BaswSlok.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-D7CJTHIn.js";import"./types-BnNswHwQ.js";import"./Eye-DN-kY_sb.js";import"./Globe02-CB2InS06.js";import"./LayersTwo01-8gQGsURS.js";import"./Clock-Bwl2wOhM.js";import"./Trash01-PnuUudMl.js";import"./useSuspenseInfiniteQuery-DsCmMd3U.js";import"./infiniteQueryObserver-DNhlrWmr.js";import"./CheckCircle-BSVa-h_Y.js";import"./collection-search-DDX1Zkg7.js";import"./user-z34A3977.js";import"./format-time-CMKyl-GC.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./decopilot-events-Brt4gAR6.js";import"./index-iqPDmcBY.js";import"./textarea-BDS2584p.js";import"./EyeOff-E0TupCAH.js";import"./card-B8QXMrj8.js";import"./toggle-group-B9XVwguR.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./alert-dialog-DdwA_v8c.js";import"./index-Bc75bxbq.js";const ht=({size:t=24,color:e="currentColor",...i})=>I.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i},I.createElement("path",{d:"M9 7H4.6c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C3 7.76 3 8.04 3 8.6v10.8c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C3.76 21 4.04 21 4.6 21H9m0 0h6m-6 0V4.6c0-.56 0-.84.109-1.054a1 1 0 0 1 .437-.437C9.76 3 10.04 3 10.6 3h2.8c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C15 3.76 15 4.04 15 4.6V21m0-10h4.4c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C21 11.76 21 12.04 21 12.6v6.8c0 .56 0 .84-.109 1.054a1 1 0 0 1-.437.437C20.24 21 19.96 21 19.4 21H15"}));ht.displayName="BarChart10";const Be=({size:t=24,color:e="currentColor",...i})=>I.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i},I.createElement("path",{d:"m6 15 2 2 4.5-4.5M8 8V5.2c0-1.12 0-1.68.218-2.108a2 2 0 0 1 .874-.874C9.52 2 10.08 2 11.2 2h7.6c1.12 0 1.68 0 2.108.218a2 2 0 0 1 .874.874C22 3.52 22 4.08 22 5.2v7.6c0 1.12 0 1.68-.218 2.108a2 2 0 0 1-.874.874C20.48 16 19.92 16 18.8 16H16M5.2 22h7.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C16 20.48 16 19.92 16 18.8v-7.6c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C14.48 8 13.92 8 12.8 8H5.2c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C2 9.52 2 10.08 2 11.2v7.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C3.52 22 4.08 22 5.2 22Z"}));Be.displayName="CheckDone01";const gt=({size:t=24,color:e="currentColor",...i})=>I.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i},I.createElement("path",{d:"M15.938 15.938A7.001 7.001 0 0 0 15 2a7.001 7.001 0 0 0-6.938 6.062M16 15a7 7 0 1 1-14 0 7 7 0 0 1 14 0Z"}));gt.displayName="Coins01";const bt=({size:t=24,color:e="currentColor",...i})=>I.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i},I.createElement("path",{d:"m16 17 5-5m0 0-5-5m5 5H9m0-9H7.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C3 5.28 3 6.12 3 7.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 21 6.12 21 7.8 21H9"}));bt.displayName="LogOut01";function Ls(){const t=w.c(70),{org:e}=ze(),[,i]=ot(),n=Xt(),{selectedVirtualMcp:l,isChatEmpty:o,activeTaskId:r,createTask:a,switchToTask:c,tasks:d}=Jt();let m;if(t[0]!==r||t[1]!==d){let O;t[3]!==r?(O=Z=>Z.id===r,t[3]=r,t[4]=O):O=t[4],m=d.find(O),t[0]=r,t[1]=d,t[2]=m}else m=t[2];const u=m,[f,p]=I.useState("chat"),[h,y]=I.useTransition();let j;t[5]!==e.id?(j=Ft(e.id),t[5]=e.id,t[6]=j):j=t[6];const g=l??j;let x;t[7]!==a?(x=()=>{y(()=>{a()})},t[7]=a,t[8]=x):x=t[8];const v=x;if(n?.providers?.length===0){let O;t[9]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsx(ge.Header.Left,{className:"gap-2"}),t[9]=O):O=t[9];let Z;t[10]!==i?(Z=()=>i(!1),t[10]=i,t[11]=Z):Z=t[11];let me;t[12]===Symbol.for("react.memo_cache_sentinel")?(me=s.jsx(tt,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[12]=me):me=t[12];let ie;t[13]!==Z?(ie=s.jsxs(ge.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[O,s.jsx(ge.Header.Right,{className:"gap-1",children:s.jsx("button",{type:"button",onClick:Z,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:me})})]}),t[13]=Z,t[14]=ie):ie=t[14];let je;t[15]===Symbol.for("react.memo_cache_sentinel")?(je=s.jsx(oe.Main,{className:"flex flex-col items-center",children:s.jsx(oe.EmptyState,{children:s.jsx(oe.NoLlmBindingEmptyState,{title:"No model provider connected",description:"Connect to a model provider to unlock AI-powered features."})})}),t[15]=je):je=t[15];let ne;return t[16]!==ie?(ne=s.jsxs(oe,{className:"animate-in fade-in-0 duration-200",children:[ie,je]}),t[16]=ie,t[17]=ne):ne=t[17],ne}const C=f!=="chat"||h?"opacity-0 pointer-events-none":"opacity-100";let b;t[18]!==C?(b=P("absolute inset-0 flex flex-col transition-opacity duration-100 ease-out",C),t[18]=C,t[19]=b):b=t[19];let N;t[20]!==u||t[21]!==o?(N=!o&&u?.title&&s.jsx(qt,{taskId:u.id,text:u.title,className:"text-sm font-medium text-foreground"}),t[20]=u,t[21]=o,t[22]=N):N=t[22];let k;t[23]!==N?(k=s.jsx(ge.Header.Left,{className:"gap-2",children:N}),t[23]=N,t[24]=k):k=t[24];let $;t[25]===Symbol.for("react.memo_cache_sentinel")?($=s.jsx(Le,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[25]=$):$=t[25];let z;t[26]!==v||t[27]!==h?(z=s.jsx("button",{type:"button",onClick:v,disabled:h,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent group cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",title:"New chat",children:$}),t[26]=v,t[27]=h,t[28]=z):z=t[28];let M;t[29]===Symbol.for("react.memo_cache_sentinel")?(M=()=>p("tasks"),t[29]=M):M=t[29];let R;t[30]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx("button",{type:"button",onClick:M,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent group cursor-pointer",title:"Tasks",children:s.jsx(Be,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"})}),t[30]=R):R=t[30];let L;t[31]!==i?(L=()=>i(!1),t[31]=i,t[32]=L):L=t[32];let H;t[33]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(tt,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[33]=H):H=t[33];let T;t[34]!==L?(T=s.jsx("button",{type:"button",onClick:L,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:H}),t[34]=L,t[35]=T):T=t[35];let A;t[36]!==T||t[37]!==z?(A=s.jsxs(ge.Header.Right,{className:"gap-1",children:[z,R,T]}),t[36]=T,t[37]=z,t[38]=A):A=t[38];let D;t[39]!==A||t[40]!==k?(D=s.jsxs(ge.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[k,A]}),t[39]=A,t[40]=k,t[41]=D):D=t[41];let E;t[42]!==g||t[43]!==o?(E=s.jsx(oe.Main,{children:o?s.jsx(oe.EmptyState,{children:s.jsxs("div",{className:"flex flex-col items-center gap-6 w-full px-4",children:[s.jsxs("div",{className:"flex flex-col items-center justify-center gap-4 p-0 text-center",children:[s.jsx(Bt,{icon:g.icon,name:g.title,size:"lg",fallbackIcon:s.jsx(et,{size:32}),className:"size-[60px]! rounded-[18px]!"}),s.jsx("h3",{className:"text-xl font-medium text-foreground",children:g.title}),s.jsx("div",{className:"text-muted-foreground text-center text-sm max-w-md",children:g.description??"Ask anything about configuring model providers or using MCP Mesh."})]}),s.jsx(oe.IceBreakers,{})]})}):s.jsx(oe.Messages,{})}),t[42]=g,t[43]=o,t[44]=E):E=t[44];let U;t[45]===Symbol.for("react.memo_cache_sentinel")?(U=s.jsx(oe.Footer,{children:s.jsx(oe.Input,{onOpenContextPanel:()=>p("context")})}),t[45]=U):U=t[45];let B;t[46]!==D||t[47]!==E||t[48]!==b?(B=s.jsxs("div",{className:b,children:[D,E,U]}),t[46]=D,t[47]=E,t[48]=b,t[49]=B):B=t[49];const F=f==="tasks"?"opacity-100":"opacity-0 pointer-events-none";let se;t[50]!==F?(se=P("absolute inset-0 flex flex-col transition-opacity duration-100 ease-out",F),t[50]=F,t[51]=se):se=t[51];let J;t[52]===Symbol.for("react.memo_cache_sentinel")?(J=s.jsx(ge.Header.Left,{className:"gap-2",children:s.jsx("span",{className:"text-sm font-normal text-foreground",children:"Tasks"})}),t[52]=J):J=t[52];let ce;t[53]===Symbol.for("react.memo_cache_sentinel")?(ce=()=>p("chat"),t[53]=ce):ce=t[53];let de;t[54]===Symbol.for("react.memo_cache_sentinel")?(de=s.jsxs(ge.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[J,s.jsx(ge.Header.Right,{className:"gap-1",children:s.jsx("button",{type:"button",onClick:ce,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Back to chat",children:s.jsx(Gt,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"})})})]}),t[54]=de):de=t[54];let W;t[55]===Symbol.for("react.memo_cache_sentinel")?(W=s.jsx("div",{className:"flex-1 flex items-center justify-center",children:s.jsx(Vt,{size:16,className:"animate-spin text-muted-foreground"})}),t[55]=W):W=t[55];let X;t[56]!==c?(X=s.jsx(Ye,{fallback:Hs,children:s.jsx(I.Suspense,{fallback:W,children:s.jsx(Yt,{onTaskSelect:async O=>{await c(O),p("chat")}})})}),t[56]=c,t[57]=X):X=t[57];let G;t[58]!==se||t[59]!==X?(G=s.jsxs("div",{className:se,children:[de,X]}),t[58]=se,t[59]=X,t[60]=G):G=t[60];const fe=f==="context"?"opacity-100":"opacity-0 pointer-events-none";let V;t[61]!==fe?(V=P("absolute inset-0 flex flex-col transition-opacity duration-100 ease-out",fe),t[61]=fe,t[62]=V):V=t[62];let ee;t[63]===Symbol.for("react.memo_cache_sentinel")?(ee=s.jsx(Qt,{back:!0,onClose:()=>p("chat")}),t[63]=ee):ee=t[63];let q;t[64]!==V?(q=s.jsx("div",{className:V,children:ee}),t[64]=V,t[65]=q):q=t[65];let Q;return t[66]!==B||t[67]!==G||t[68]!==q?(Q=s.jsxs(oe,{className:"relative overflow-hidden animate-in fade-in-0 duration-200",children:[B,G,q]}),t[66]=B,t[67]=G,t[68]=q,t[69]=Q):Q=t[69],Q}function Hs(){return s.jsx("div",{className:"flex-1 flex items-center justify-center",children:s.jsx("p",{className:"text-xs text-muted-foreground",children:"Unable to load tasks"})})}function Us(){const t=w.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(oe.Skeleton,{}),t[0]=e):e=t[0];let i;return t[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(Ye,{fallback:e,children:s.jsx(I.Suspense,{fallback:s.jsx(oe.Skeleton,{}),children:s.jsx(Ls,{})})}),t[1]=i):i=t[1],i}function Bs(t){const e=w.c(5),{open:i,onOpenChange:n}=t;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(ts,{children:s.jsx(ss,{children:"Keyboard Shortcuts"})}),e[0]=l):l=e[0];let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsxs(es,{className:"sm:max-w-md",children:[l,s.jsx("div",{className:"flex flex-col gap-4",children:Lt.map(Fs)})]}),e[1]=o):o=e[1];let r;return e[2]!==n||e[3]!==i?(r=s.jsx(is,{open:i,onOpenChange:n,children:o}),e[2]=n,e[3]=i,e[4]=r):r=e[4],r}function Fs(t){return s.jsxs("div",{children:[s.jsx("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-2",children:t.label}),s.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(Ks)})]},t.label)}function Ks(t){return s.jsxs("div",{className:"flex items-center justify-between py-1",children:[s.jsx("span",{className:"text-sm",children:t.description}),s.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(Ws)})]},t.description)}function Ws(t){return s.jsx("kbd",{className:"inline-flex items-center justify-center min-w-6 h-6 px-1.5 rounded-sm border border-border bg-muted text-muted-foreground text-xs font-mono",children:t},t)}function Gs(){const t=w.c(60),{locator:e,org:i}=ze(),n=Xe(),l=Ze(),[o]=as(),{org:r,project:a}=We.parse(e),c=We.isOrgAdminProject(e),{data:d}=ct(i.id,a);let m;t[0]!==d?.enabledPlugins?(m=d?.enabledPlugins??[],t[0]=d?.enabledPlugins,t[1]=m):m=t[1];const u=m,f=d?.ui?.pinnedViews??[];let p;t[2]!==u?(p=S=>u.includes(S.pluginId),t[2]=u,t[3]=p):p=t[3];const h=_t.filter(p),y=l.location.pathname,j=`/${r}/${a}`,_=y===j||y===`${j}/`;let g;t[4]!==j||t[5]!==y?(g=S=>y.startsWith(`${j}/${S}`),t[4]=j,t[5]=y,t[6]=g):g=t[6];const x=g;let v;t[7]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx(os,{}),t[7]=v):v=t[7];const C={key:"home",label:"Home",icon:v,isActive:_,onClick:()=>{_?window.dispatchEvent(new CustomEvent("reset-home-view")):n({to:"/$org/$project",params:{org:r,project:a}})}};let b;t[8]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(Be,{}),t[8]=b):b=t[8];const N={key:"tasks",label:"Tasks",icon:b,isActive:x("tasks"),onClick:()=>n({to:"/$org/$project/tasks",params:{org:r,project:te}})};let k;t[9]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx(ns,{}),t[9]=k):k=t[9];const $={key:"mcps",label:"Connections",icon:k,isActive:x("mcps"),onClick:()=>n({to:"/$org/$project/mcps",params:{org:r,project:te}})};let z;t[10]===Symbol.for("react.memo_cache_sentinel")?(z=s.jsx(Ct,{}),t[10]=z):z=t[10];const M={key:"projects",label:"Projects",icon:z,isActive:x("projects"),onClick:()=>n({to:"/$org/$project/projects",params:{org:r,project:te}})};let R;t[11]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx(et,{}),t[11]=R):R=t[11];const L={key:"agents",label:"Agents",icon:R,isActive:x("agents"),onClick:()=>n({to:"/$org/$project/agents",params:{org:r,project:te}})};let H;t[12]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(rs,{}),t[12]=H):H=t[12];const T={key:"automations",label:"Automations",icon:H,isActive:x("automations"),onClick:()=>n({to:"/$org/$project/automations",params:{org:r,project:te}})};let A;t[13]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(ht,{}),t[13]=A):A=t[13];const D={key:"monitoring",label:"Monitor",icon:A,isActive:x("monitoring"),onClick:()=>n({to:"/$org/$project/monitoring",params:{org:r,project:te}})},E=h.map(S=>({key:S.pluginId,label:S.label,icon:S.icon,isActive:x(S.pluginId),onClick:()=>n({to:"/$org/$project/$pluginId",params:{org:r,project:a,pluginId:S.pluginId}})}));let U;t[14]!==u?(U=S=>u.includes(S.pluginId),t[14]=u,t[15]=U):U=t[15];const F=kt.filter(U).map(S=>({type:"group",group:{id:`${S.pluginId}-${S.id}`,label:S.label,items:S.items.map((K,le)=>({key:`${S.pluginId}-${S.id}-${le}`,label:K.label,icon:K.icon,isActive:x(S.pluginId),onClick:()=>n({to:"/$org/$project/$pluginId",params:{org:r,project:a,pluginId:S.pluginId}})})),defaultExpanded:S.defaultExpanded??!0}})),se=f.map(S=>({key:`app-${S.connectionId}-${S.toolName}`,label:S.label||S.toolName,icon:S.icon?s.jsx("img",{src:S.icon,alt:"",className:"size-4 rounded"}):s.jsx(Ve,{}),isActive:x(`apps/${S.connectionId}/${encodeURIComponent(S.toolName)}`),onClick:()=>n({to:"/$org/$project/apps/$connectionId/$toolName",params:{org:r,project:a,connectionId:S.connectionId,toolName:S.toolName}})}));let J;t[16]!==se?(J=se.length>0?{type:"group",group:{id:"apps",label:"Apps",items:se,defaultExpanded:!0}}:null,t[16]=se,t[17]=J):J=t[17];const ce=J;if(c){let S;t[18]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx(He,{}),t[18]=S):S=t[18];let K;t[19]!==x?(K=x("settings"),t[19]=x,t[20]=K):K=t[20];let le;t[21]!==n||t[22]!==r?(le=()=>n({to:"/$org/$project/settings",params:{org:r,project:te}}),t[21]=n,t[22]=r,t[23]=le):le=t[23];let he;t[24]!==K||t[25]!==le?(he={key:"settings",label:"Settings",icon:S,isActive:K,onClick:le},t[24]=K,t[25]=le,t[26]=he):he=t[26];const ye=he,ue=[{type:"items",items:[C,N,M]},{type:"group",group:{id:"build",label:"Build",items:[...o.experimentalAutomations?[T]:[],L,$],defaultExpanded:!0}},{type:"group",group:{id:"manage",label:"Manage",items:[D,ye],defaultExpanded:!0}}];if(E.length>0){let pe;t[27]!==E?(pe={type:"items",items:E},t[27]=E,t[28]=pe):pe=t[28],ue.push(pe)}return F.length>0&&ue.push(...F),ce&&ue.push(ce),ue}let de;t[29]===Symbol.for("react.memo_cache_sentinel")?(de=s.jsx(Be,{}),t[29]=de):de=t[29];let W;t[30]!==x?(W=x("tasks"),t[30]=x,t[31]=W):W=t[31];let X;t[32]!==n||t[33]!==r||t[34]!==a?(X=()=>n({to:"/$org/$project/tasks",params:{org:r,project:a}}),t[32]=n,t[33]=r,t[34]=a,t[35]=X):X=t[35];let G;t[36]!==W||t[37]!==X?(G={key:"tasks",label:"Tasks",icon:de,isActive:W,onClick:X},t[36]=W,t[37]=X,t[38]=G):G=t[38];const fe=G;let V;t[39]!==u||t[40]!==x||t[41]!==n||t[42]!==r||t[43]!==a?(V=u.includes("workflows")?{key:"workflows",label:"Workflows",icon:s.jsx(ls,{}),isActive:x("workflows"),onClick:()=>n({to:"/$org/$project/workflows",params:{org:r,project:a}})}:null,t[39]=u,t[40]=x,t[41]=n,t[42]=r,t[43]=a,t[44]=V):V=t[44];const ee=V;let q;t[45]===Symbol.for("react.memo_cache_sentinel")?(q=s.jsx(He,{}),t[45]=q):q=t[45];let Q;t[46]!==x?(Q=x("settings"),t[46]=x,t[47]=Q):Q=t[47];let O;t[48]!==n||t[49]!==r||t[50]!==a?(O=()=>n({to:"/$org/$project/settings/general",params:{org:r,project:a}}),t[48]=n,t[49]=r,t[50]=a,t[51]=O):O=t[51];let Z;t[52]!==Q||t[53]!==O?(Z={key:"configure",label:"Settings",icon:q,isActive:Q,onClick:O},t[52]=Q,t[53]=O,t[54]=Z):Z=t[54];const me=Z;let ie;t[55]!==ee?(ie=ee?[ee]:[],t[55]=ee,t[56]=ie):ie=t[56];const ne=[{type:"items",items:[C,fe,...ie,me]}];if(E.length>0){let S;t[57]===Symbol.for("react.memo_cache_sentinel")?(S={type:"divider"},t[57]=S):S=t[57],ne.push(S);let K;t[58]!==E?(K={type:"items",items:E},t[58]=E,t[59]=K):K=t[59],ne.push(K)}return F.length>0&&ne.push(...F),ce&&ne.push(ce),ne}const Vs="sidebar_state",qs=3600*24*7,Qs="16rem",Ys="18rem",Xs="3rem",Zs="b",jt=I.createContext(null);function Ke(){const t=I.useContext(jt);if(!t)throw new Error("useSidebar must be used within a SidebarProvider.");return t}function Js(t){const e=w.c(21),{defaultOpen:i,open:n,onOpenChange:l,children:o}=t,r=i===void 0?!0:i,a=cs(),[c,d]=I.useState(!1),[m,u]=I.useState(r),f=n??m;let p;e[0]!==f||e[1]!==l?(p=k=>{const $=typeof k=="function"?k(f):k;l?l($):u($),document.cookie=`${Vs}=${$}; path=/; max-age=${qs}`},e[0]=f,e[1]=l,e[2]=p):p=e[2];const h=p;let y;e[3]!==a||e[4]!==h?(y=()=>a?d(ti):h(ei),e[3]=a,e[4]=h,e[5]=y):y=e[5];const j=y;let _,g;e[6]!==j?(_=()=>{const k=$=>{if($.key===Zs&&($.metaKey||$.ctrlKey)){const z=$.target;if(z.tagName==="INPUT"||z.tagName==="TEXTAREA"||z.isContentEditable)return;$.preventDefault(),j()}};return globalThis.addEventListener("keydown",k),()=>globalThis.removeEventListener("keydown",k)},g=[j],e[6]=j,e[7]=_,e[8]=g):(_=e[7],g=e[8]),I.useEffect(_,g);const x=f?"expanded":"collapsed";let v;e[9]!==a||e[10]!==f||e[11]!==c||e[12]!==h||e[13]!==x||e[14]!==j?(v={state:x,open:f,setOpen:h,isMobile:a,openMobile:c,setOpenMobile:d,toggleSidebar:j},e[9]=a,e[10]=f,e[11]=c,e[12]=h,e[13]=x,e[14]=j,e[15]=v):v=e[15];const C=v;let b;e[16]!==o?(b=s.jsx(xs,{delayDuration:0,children:o}),e[16]=o,e[17]=b):b=e[17];let N;return e[18]!==C||e[19]!==b?(N=s.jsx(jt.Provider,{value:C,children:b}),e[18]=C,e[19]=b,e[20]=N):N=e[20],N}function ei(t){return!t}function ti(t){return!t}function si(t){const e=w.c(14);let i,n,l,o;e[0]!==t?({className:n,style:o,children:i,...l}=t,e[0]=t,e[1]=i,e[2]=n,e[3]=l,e[4]=o):(i=e[1],n=e[2],l=e[3],o=e[4]);let r;e[5]!==o?(r={"--sidebar-width":Qs,"--sidebar-width-icon":Xs,...o},e[5]=o,e[6]=r):r=e[6];const a=r;let c;e[7]!==n?(c=P("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",n),e[7]=n,e[8]=c):c=e[8];let d;return e[9]!==i||e[10]!==l||e[11]!==a||e[12]!==c?(d=s.jsx("div",{"data-slot":"sidebar-wrapper",style:a,className:c,...l,children:i}),e[9]=i,e[10]=l,e[11]=a,e[12]=c,e[13]=d):d=e[13],d}function ii(t){const e=w.c(42);let i,n,l,o,r,a;e[0]!==t?({side:o,variant:r,collapsible:a,className:n,children:i,...l}=t,e[0]=t,e[1]=i,e[2]=n,e[3]=l,e[4]=o,e[5]=r,e[6]=a):(i=e[1],n=e[2],l=e[3],o=e[4],r=e[5],a=e[6]);const c=o===void 0?"left":o,d=r===void 0?"sidebar":r,m=a===void 0?"offcanvas":a,{isMobile:u,state:f,openMobile:p,setOpenMobile:h}=Ke();if(m==="none"){let b;e[7]!==n?(b=P("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",n),e[7]=n,e[8]=b):b=e[8];let N;return e[9]!==i||e[10]!==l||e[11]!==b?(N=s.jsx("div",{"data-slot":"sidebar",className:b,...l,children:i}),e[9]=i,e[10]=l,e[11]=b,e[12]=N):N=e[12],N}if(u){let b;e[13]===Symbol.for("react.memo_cache_sentinel")?(b={"--sidebar-width":Ys},e[13]=b):b=e[13];let N;e[14]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsxs(ms,{className:"sr-only",children:[s.jsx(fs,{children:"Sidebar"}),s.jsx(us,{children:"Displays the mobile sidebar."})]}),e[14]=N):N=e[14];let k;e[15]!==i?(k=s.jsx("div",{className:"flex h-full w-full flex-col",children:i}),e[15]=i,e[16]=k):k=e[16];let $;e[17]!==c||e[18]!==k?($=s.jsxs(ps,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:b,side:c,children:[N,k]}),e[17]=c,e[18]=k,e[19]=$):$=e[19];let z;return e[20]!==p||e[21]!==l||e[22]!==h||e[23]!==$?(z=s.jsx(ds,{open:p,onOpenChange:h,...l,children:$}),e[20]=p,e[21]=l,e[22]=h,e[23]=$,e[24]=z):z=e[24],z}const y=d==="floating"||d==="inset"?"data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"data-[collapsible=icon]:w-(--sidebar-width-icon)";let j;e[25]!==y?(j=P("group peer text-sidebar-foreground hidden md:flex flex-col shrink-0 overflow-hidden","w-(--sidebar-width) transition-[width] duration-300 ease-[var(--ease-out-quart)]","data-[collapsible=offcanvas]:w-0",y),e[25]=y,e[26]=j):j=e[26];const _=f==="collapsed"?m:"";let g;e[27]!==n?(g=P("flex flex-col h-full w-(--sidebar-width)",n),e[27]=n,e[28]=g):g=e[28];let x;e[29]!==i?(x=s.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:i}),e[29]=i,e[30]=x):x=e[30];let v;e[31]!==l||e[32]!==g||e[33]!==x?(v=s.jsx("div",{"data-slot":"sidebar-container",className:g,...l,children:x}),e[31]=l,e[32]=g,e[33]=x,e[34]=v):v=e[34];let C;return e[35]!==c||e[36]!==f||e[37]!==j||e[38]!==_||e[39]!==v||e[40]!==d?(C=s.jsx("div",{className:j,"data-state":f,"data-collapsible":_,"data-variant":d,"data-side":c,"data-slot":"sidebar",children:v}),e[35]=c,e[36]=f,e[37]=j,e[38]=_,e[39]=v,e[40]=d,e[41]=C):C=e[41],C}function ni(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("bg-background relative flex w-full flex-1 flex-col min-w-0","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("main",{"data-slot":"sidebar-inset",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function vt(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("flex flex-col gap-2 p-2",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function li(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("flex flex-col gap-2 p-2",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function oi(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("h-4 m-0! w-full",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("div",{"data-sidebar":"separator",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function ri(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function Ae(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("relative flex w-full min-w-0 flex-col px-2 py-2 md:py-0",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function Ee(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("w-full text-sm",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function be(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("flex w-full min-w-0 flex-col gap-1",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function xe(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("group/menu-item relative",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}const ai=$t("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md py-0 pr-0.5 pl-1.5 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&_svg]:opacity-60 hover:[&_svg]:opacity-100",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2!",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function Oe(t){const e=w.c(28);let i,n,l,o,r,a,c;e[0]!==t?({asChild:l,isActive:o,variant:r,size:a,tooltip:c,className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n,e[3]=l,e[4]=o,e[5]=r,e[6]=a,e[7]=c):(i=e[1],n=e[2],l=e[3],o=e[4],r=e[5],a=e[6],c=e[7]);const d=l===void 0?!1:l,m=o===void 0?!1:o,u=r===void 0?"default":r,f=a===void 0?"default":a,p=d?wt:"button",{isMobile:h,state:y}=Ke();let j;e[8]!==i||e[9]!==f||e[10]!==u?(j=P(ai({variant:u,size:f}),i),e[8]=i,e[9]=f,e[10]=u,e[11]=j):j=e[11];let _;e[12]!==p||e[13]!==m||e[14]!==n||e[15]!==f||e[16]!==j?(_=s.jsx(p,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":f,"data-active":m,className:j,...n}),e[12]=p,e[13]=m,e[14]=n,e[15]=f,e[16]=j,e[17]=_):_=e[17];const g=_;if(!c)return g;if(typeof c=="string"){let N;e[18]!==c?(N={children:c},e[18]=c,e[19]=N):N=e[19],c=N}let x;e[20]!==g?(x=s.jsx(gs,{asChild:!0,children:g}),e[20]=g,e[21]=x):x=e[21];const v=y!=="collapsed"||h;let C;e[22]!==v||e[23]!==c?(C=s.jsx(hs,{side:"right",align:"center",hidden:v,...c}),e[22]=v,e[23]=c,e[24]=C):C=e[24];let b;return e[25]!==x||e[26]!==C?(b=s.jsxs(bs,{children:[x,C]}),e[25]=x,e[26]=C,e[27]=b):b=e[27],b}function ci(t){const e=w.c(11),{label:i,children:n,defaultExpanded:l}=t,o=l===void 0?!0:l,[r,a]=I.useState(o),{state:c}=Ke(),d=c==="collapsed";let m;e[0]!==r||e[1]!==d||e[2]!==i?(m=d?s.jsx("div",{className:"flex h-6 items-center",children:s.jsx("div",{className:"h-0.5 w-8 rounded-full bg-sidebar-foreground/15"})}):s.jsx(be,{children:s.jsx(xe,{children:s.jsxs(Oe,{className:"h-6 cursor-pointer select-none gap-1 [&>svg]:size-3",onClick:()=>a(!r),children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:i}),s.jsx(mt,{size:12,className:P("text-muted-foreground transition-transform duration-200",!r&&"-rotate-90")})]})})}),e[0]=r,e[1]=d,e[2]=i,e[3]=m):m=e[3];let u;e[4]!==n||e[5]!==r||e[6]!==d?(u=(d||r)&&s.jsx(Ee,{children:s.jsx(be,{className:"gap-0.5",children:n})}),e[4]=n,e[5]=r,e[6]=d,e[7]=u):u=e[7];let f;return e[8]!==m||e[9]!==u?(f=s.jsxs(Ae,{className:"pt-0 pr-0 pb-2 pl-0 mt-2",children:[m,u]}),e[8]=m,e[9]=u,e[10]=f):f=e[10],f}function Nt(t){const e=w.c(20),{item:i}=t,n=i.key,l=i.onClick,o=i.isActive,r=i.label,a=i.isExternal&&"group/external";let c;e[0]!==a?(c=P(a),e[0]=a,e[1]=c):c=e[1];let d;e[2]!==i.icon?(d=s.jsx("span",{className:"[&>svg]:size-4",children:i.icon}),e[2]=i.icon,e[3]=d):d=e[3];let m;e[4]===Symbol.for("react.memo_cache_sentinel")?(m=P("truncate group-data-[collapsible=icon]:hidden"),e[4]=m):m=e[4];let u;e[5]!==i.label?(u=s.jsx("span",{className:m,children:i.label}),e[5]=i.label,e[6]=u):u=e[6];let f;e[7]!==i.isExternal?(f=i.isExternal&&s.jsx($e,{size:12,className:"ml-auto mr-1 shrink-0 opacity-0 group-hover/external:opacity-60 transition-opacity group-data-[collapsible=icon]:hidden"}),e[7]=i.isExternal,e[8]=f):f=e[8];let p;e[9]!==i.isActive||e[10]!==i.label||e[11]!==i.onClick||e[12]!==f||e[13]!==c||e[14]!==d||e[15]!==u?(p=s.jsxs(Oe,{onClick:l,isActive:o,tooltip:r,className:c,children:[d,u,f]}),e[9]=i.isActive,e[10]=i.label,e[11]=i.onClick,e[12]=f,e[13]=c,e[14]=d,e[15]=u,e[16]=p):p=e[16];let h;return e[17]!==i.key||e[18]!==p?(h=s.jsx(xe,{children:p},n),e[17]=i.key,e[18]=p,e[19]=h):h=e[19],h}function di(t){const e=w.c(12),{section:i}=t;switch(i.type){case"divider":{let n;return e[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(oi,{className:"my-2"}),e[0]=n):n=e[0],n}case"spacer":{let n;return e[1]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx("div",{className:"flex-1"}),e[1]=n):n=e[1],n}case"group":{const n=i.group.label,l=i.group.defaultExpanded;let o;e[2]!==i.group.items?(o=i.group.items.map(fi),e[2]=i.group.items,e[3]=o):o=e[3];let r;return e[4]!==i.group.defaultExpanded||e[5]!==i.group.label||e[6]!==o?(r=s.jsx(ci,{label:n,defaultExpanded:l,children:o}),e[4]=i.group.defaultExpanded,e[5]=i.group.label,e[6]=o,e[7]=r):r=e[7],r}case"items":{let n;e[8]!==i.items?(n=i.items.map(mi),e[8]=i.items,e[9]=n):n=e[9];let l;return e[10]!==n?(l=s.jsx(Ae,{className:"pt-0 pr-0 pb-0 pl-0",children:s.jsx(Ee,{children:s.jsx(be,{className:"gap-0.5",children:n})})}),e[10]=n,e[11]=l):l=e[11],l}}}function mi(t){return s.jsx(Nt,{item:t},t.key)}function fi(t){return s.jsx(Nt,{item:t},t.key)}function yt(t){const e=w.c(14),{sections:i,header:n,footer:l,additionalContent:o,variant:r,collapsible:a,contentClassName:c}=t,d=r===void 0?"sidebar":r,m=a===void 0?"icon":a;let u;e[0]!==c?(u=P("flex flex-col flex-1 overflow-x-hidden mt-1 px-3.5 pb-2 group-data-[collapsible=icon]:px-2",c),e[0]=c,e[1]=u):u=e[1];let f;e[2]!==i?(f=i.map(ui),e[2]=i,e[3]=f):f=e[3];let p;e[4]!==o||e[5]!==u||e[6]!==f?(p=s.jsxs(ri,{className:u,children:[f,o]}),e[4]=o,e[5]=u,e[6]=f,e[7]=p):p=e[7];let h;return e[8]!==m||e[9]!==l||e[10]!==n||e[11]!==p||e[12]!==d?(h=s.jsxs(ii,{variant:d,collapsible:m,children:[n,p,l]}),e[8]=m,e[9]=l,e[10]=n,e[11]=p,e[12]=d,e[13]=h):h=e[13],h}function ui(t,e){return s.jsx(di,{section:t},e)}yt.Skeleton=function(){return s.jsx("div",{className:"flex flex-col gap-0.5",children:Array.from({length:8}).map((e,i)=>s.jsx("div",{className:"w-full h-8",children:s.jsx(ae,{className:"h-full bg-sidebar-accent rounded-md"})},i))})};function pi(){const t=w.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsxs("div",{className:"space-y-0.5 px-1 py-1",children:[s.jsx(ae,{className:"h-8 w-full rounded-lg"}),s.jsx(ae,{className:"h-8 w-full rounded-lg"})]}),t[0]=e):e=t[0],e}function xi(t){const e=w.c(12),{organizationId:i,currentProjectSlug:n,onSelect:l}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={suspense:!0},e[0]=o):o=e[0];const{data:r}=dt(i,o);let a,c;if(e[1]!==n||e[2]!==l||e[3]!==r){c=Symbol.for("react.early_return_sentinel");e:{const m=r?.filter(hi)??[];if(m.length===0){let f;e[6]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx("div",{className:"px-2 py-3 text-center text-xs text-muted-foreground",children:"No projects yet"}),e[6]=f):f=e[6],c=f;break e}let u;e[7]!==n||e[8]!==l?(u=f=>{const p=n===f.slug,h=f.ui?.themeColor??"#3B82F6";return s.jsxs(re,{className:P("gap-2.5",p&&"bg-accent"),onClick:()=>l(f.slug),children:[s.jsx("div",{className:"size-6 rounded-md shrink-0 flex items-center justify-center overflow-hidden border border-border/50",style:f.ui?.icon?void 0:{backgroundColor:h},children:f.ui?.icon?s.jsx("img",{src:f.ui.icon,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:"text-xs font-semibold text-white",children:f.name.charAt(0).toUpperCase()})}),s.jsx("span",{className:"flex-1 truncate",children:f.name}),p&&s.jsx(Pe,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},f.id)},e[7]=n,e[8]=l,e[9]=u):u=e[9],a=m.map(u)}e[1]=n,e[2]=l,e[3]=r,e[4]=a,e[5]=c}else a=e[4],c=e[5];if(c!==Symbol.for("react.early_return_sentinel"))return c;let d;return e[10]!==a?(d=s.jsx(s.Fragment,{children:a}),e[10]=a,e[11]=d):d=e[11],d}function hi(t){return t.slug!==te}function gi(t){let e=0;for(let n=0;n<t.length;n++)e=t.charCodeAt(n)+((e<<5)-e);const i=Math.abs(e)%360;return{backgroundColor:`hsl(${i} 55% 70%)`,color:`hsl(${i} 55% 20%)`}}function qe(t){const e=w.c(96),{isCollapsed:i,onCreateProject:n}=t,l=i===void 0?!1:i;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={strict:!1},e[0]=o):o=e[0];const{org:r,project:a}=it(o),{data:c}=Ne.useListOrganizations(),d=Xe(),m=c?.find(Y=>Y.slug===r),[u,f]=I.useState(!1),p=a===te,{data:h}=ct(m?.id??"",p?"":a??"");let y;e[1]!==r?(y=(Y,Re)=>Y.slug===r?-1:Re.slug===r?1:Y.name.localeCompare(Re.name),e[1]=r,e[2]=y):y=e[2];const j=[...c??[]].sort(y);let _;e[3]!==d||e[4]!==r?(_=()=>{r&&d({to:"/$org/$project",params:{org:r,project:te}})},e[3]=d,e[4]=r,e[5]=_):_=e[5];const g=_;let x;e[6]!==d||e[7]!==r?(x=Y=>{r&&d({to:"/$org/$project",params:{org:r,project:Y}})},e[6]=d,e[7]=r,e[8]=x):x=e[8];const v=x;let C;e[9]!==d?(C=Y=>{d({to:"/$org/$project",params:{org:Y,project:te}})},e[9]=d,e[10]=C):C=e[10];const b=C;let N;e[11]!==n?(N=n?()=>n():void 0,e[11]=n,e[12]=N):N=e[12];const k=N;let $;e[13]!==d||e[14]!==r||e[15]!==a?($=()=>{if(!r||!a)return;const Y=a===te;d({to:"/$org/$project",params:{org:r,project:a},search:Re=>({...Re,settings:Y?"org.general":`project:${a}:general`})})},e[13]=d,e[14]=r,e[15]=a,e[16]=$):$=e[16];const z=$,M=ut,R=l?"w-auto pr-1.5":"w-full";let L;e[17]!==R?(L=P("flex items-center gap-3 rounded-md p-1.5 pr-2 text-left hover:bg-sidebar-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring min-h-[2.75rem]",R),e[17]=R,e[18]=L):L=e[18];const H=p?s.jsx("div",{className:P("shrink-0 rounded-md flex items-center justify-center border border-border/50 overflow-hidden transition-[width,height] duration-300 ease-[var(--ease-out-quart)]",l?"size-6":"size-8"),style:m?.logo?void 0:gi(m?.name??""),children:m?.logo?s.jsx("img",{src:m.logo,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:P("font-semibold leading-none",l?"text-[9px]":"text-xs"),children:(m?.name??"?").slice(0,2).toUpperCase()})}):s.jsx("div",{className:P("shrink-0 rounded-md flex items-center justify-center border border-border/50 overflow-hidden transition-[width,height] duration-300 ease-[var(--ease-out-quart)]",l?"size-6":"size-8"),style:h?.ui?.icon?void 0:{backgroundColor:h?.ui?.themeColor??"#60a5fa"},children:h?.ui?.icon?s.jsx("img",{src:h.ui.icon,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:P("font-semibold text-white",l?"text-xs":"text-lg"),children:(h?.name??a??"?").charAt(0).toUpperCase()})});let T;e[19]!==m?.name||e[20]!==h?.name||e[21]!==l||e[22]!==p||e[23]!==a?(T=!l&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex-1 min-w-0 flex flex-col justify-center",children:[s.jsx("span",{className:"block text-[11px] text-sidebar-foreground/50 leading-tight truncate",children:m?.name??"Select org"}),s.jsx("span",{className:"block text-sm font-semibold text-sidebar-foreground truncate leading-tight",children:p?"Studio":h?.name??a??""})]}),s.jsx(Ht,{size:16,className:"shrink-0 text-sidebar-foreground/40"})]}),e[19]=m?.name,e[20]=h?.name,e[21]=l,e[22]=p,e[23]=a,e[24]=T):T=e[24];let A;e[25]!==L||e[26]!==H||e[27]!==T?(A=s.jsx(pt,{asChild:!0,children:s.jsxs("button",{type:"button",className:L,children:[H,T]})}),e[25]=L,e[26]=H,e[27]=T,e[28]=A):A=e[28];const D=ft,E="start",U="bottom",B="w-64 flex flex-col gap-0.5",F=bi,se=p&&"bg-accent";let J;e[29]!==se?(J=P("gap-2.5",se),e[29]=se,e[30]=J):J=e[30];const ce=m?.logo??"",de=m?.name??"";let W;e[31]!==ce||e[32]!==de?(W=s.jsx(Ie,{url:ce,fallback:de,size:"sm",className:"size-6 rounded-md shrink-0",objectFit:"cover"}),e[31]=ce,e[32]=de,e[33]=W):W=e[33];const X=m?.name;let G;e[34]!==X?(G=s.jsxs("span",{className:"flex-1 truncate",children:["Studio · ",X]}),e[34]=X,e[35]=G):G=e[35];let fe;e[36]!==p?(fe=p&&s.jsx(Pe,{size:14,className:"ml-auto text-muted-foreground shrink-0"}),e[36]=p,e[37]=fe):fe=e[37];let V;e[38]!==g||e[39]!==J||e[40]!==W||e[41]!==G||e[42]!==fe?(V=s.jsxs(re,{className:J,onClick:g,children:[W,G,fe]}),e[38]=g,e[39]=J,e[40]=W,e[41]=G,e[42]=fe,e[43]=V):V=e[43];let ee;e[44]===Symbol.for("react.memo_cache_sentinel")?(ee=s.jsx("p",{className:"px-2 pt-2 pb-0.5 text-[11px] font-medium text-muted-foreground/50 uppercase tracking-wider",children:"Projects"}),e[44]=ee):ee=e[44];let q;e[45]!==m||e[46]!==v||e[47]!==r||e[48]!==a?(q=m&&s.jsx(I.Suspense,{fallback:s.jsx(pi,{}),children:s.jsx(xi,{organizationId:m.id,currentProjectSlug:a,orgSlug:r??"",onSelect:v})}),e[45]=m,e[46]=v,e[47]=r,e[48]=a,e[49]=q):q=e[49];let Q;e[50]!==k?(Q=k&&s.jsxs(re,{className:"gap-2.5",onClick:k,children:[s.jsx(Le,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Create project"})]}),e[50]=k,e[51]=Q):Q=e[51];let O;e[52]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsx(Ue,{}),e[52]=O):O=e[52];const Z=vs;let me;e[53]===Symbol.for("react.memo_cache_sentinel")?(me=s.jsxs(Ns,{className:"gap-2.5",children:[s.jsx(ys,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Switch organization"})]}),e[53]=me):me=e[53];const ie=js,je="w-48 flex flex-col gap-0.5";let ne;e[54]!==b||e[55]!==r?(ne=Y=>s.jsxs(re,{className:P("gap-2.5",Y.slug===r&&"bg-accent"),onClick:()=>b(Y.slug),children:[s.jsx(Ie,{url:Y.logo??"",fallback:Y.name,size:"xs",className:"size-5 rounded-md shrink-0",objectFit:"cover"}),s.jsx("span",{className:"flex-1 truncate",children:Y.name}),Y.slug===r&&s.jsx(Pe,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},Y.id),e[54]=b,e[55]=r,e[56]=ne):ne=e[56];const S=j.map(ne);let K;e[57]===Symbol.for("react.memo_cache_sentinel")?(K=s.jsx(Ue,{}),e[57]=K):K=e[57];let le;e[58]!==f?(le=()=>f(!0),e[58]=f,e[59]=le):le=e[59];let he,ye;e[60]===Symbol.for("react.memo_cache_sentinel")?(he=s.jsx(Le,{size:14,className:"shrink-0 text-muted-foreground"}),ye=s.jsx("span",{children:"Create organization"}),e[60]=he,e[61]=ye):(he=e[60],ye=e[61]);let ue;e[62]!==le?(ue=s.jsxs(re,{className:"gap-2.5",onClick:le,children:[he,ye]}),e[62]=le,e[63]=ue):ue=e[63];let pe;e[64]!==ie||e[65]!==S||e[66]!==ue?(pe=s.jsxs(ie,{className:je,children:[S,K,ue]}),e[64]=ie,e[65]=S,e[66]=ue,e[67]=pe):pe=e[67];let Se;e[68]!==Z||e[69]!==me||e[70]!==pe?(Se=s.jsxs(Z,{children:[me,pe]}),e[68]=Z,e[69]=me,e[70]=pe,e[71]=Se):Se=e[71];let Te,De;e[72]===Symbol.for("react.memo_cache_sentinel")?(Te=s.jsx(He,{size:14,className:"shrink-0 text-muted-foreground"}),De=s.jsx("span",{children:"Settings"}),e[72]=Te,e[73]=De):(Te=e[72],De=e[73]);let _e;e[74]!==z?(_e=s.jsxs(re,{className:"gap-2.5",onClick:z,children:[Te,De]}),e[74]=z,e[75]=_e):_e=e[75];let ke;e[76]!==D||e[77]!==F||e[78]!==V||e[79]!==ee||e[80]!==q||e[81]!==Q||e[82]!==O||e[83]!==Se||e[84]!==_e?(ke=s.jsxs(D,{align:E,side:U,className:B,onCloseAutoFocus:F,children:[V,ee,q,Q,O,Se,_e]}),e[76]=D,e[77]=F,e[78]=V,e[79]=ee,e[80]=q,e[81]=Q,e[82]=O,e[83]=Se,e[84]=_e,e[85]=ke):ke=e[85];let Ce;e[86]!==M||e[87]!==A||e[88]!==ke?(Ce=s.jsxs(M,{children:[A,ke]}),e[86]=M,e[87]=A,e[88]=ke,e[89]=Ce):Ce=e[89];let we;e[90]!==u||e[91]!==f?(we=s.jsx(Ss,{open:u,onOpenChange:f}),e[90]=u,e[91]=f,e[92]=we):we=e[92];let Me;return e[93]!==Ce||e[94]!==we?(Me=s.jsxs(s.Fragment,{children:[Ce,we]}),e[93]=Ce,e[94]=we,e[95]=Me):Me=e[95],Me}function bi(t){return t.preventDefault()}qe.Skeleton=function(){return s.jsxs("div",{className:"flex items-center gap-1.5 h-7 px-1.5 w-full",children:[s.jsx(ae,{className:"size-5 rounded-[5px] shrink-0 bg-sidebar-accent"}),s.jsx(ae,{className:"h-3.5 flex-1 bg-sidebar-accent"})]})};function Qe(t){const e=w.c(4),{onCreateProject:i}=t,{state:n,toggleSidebar:l}=Ke(),o=n==="collapsed";let r;return e[0]!==o||e[1]!==i||e[2]!==l?(r=s.jsx(vt,{className:"px-3 group-data-[collapsible=icon]:px-2 animate-in fade-in-0 duration-200",children:s.jsx(be,{children:s.jsx(xe,{children:o?s.jsxs("div",{className:"flex flex-col w-full gap-0.5",children:[s.jsx(qe,{isCollapsed:!0,onCreateProject:i}),s.jsx(Oe,{onClick:l,tooltip:"Expand sidebar",children:s.jsx(Ve,{})})]}):s.jsxs("div",{className:"flex items-center justify-between w-full gap-1",children:[s.jsx("div",{className:"min-w-0 flex-1",children:s.jsx(qe,{isCollapsed:!1,onCreateProject:i})}),s.jsx(Oe,{onClick:l,tooltip:"Collapse sidebar",className:"size-7 shrink-0",children:s.jsx(Ve,{})})]})})})}),e[0]=o,e[1]=i,e[2]=l,e[3]=r):r=e[3],r}Qe.Skeleton=function(){return s.jsx(vt,{className:"px-3",children:s.jsx(be,{children:s.jsx(xe,{children:s.jsxs("div",{className:"flex items-center justify-between w-full",children:[s.jsxs("div",{className:"flex items-center gap-3 min-w-0 flex-1 p-1.5",children:[s.jsx(ae,{className:"size-8 rounded-md shrink-0 bg-sidebar-accent"}),s.jsx(ae,{className:"h-3.5 w-16 bg-sidebar-accent"})]}),s.jsx("div",{className:"flex items-center gap-0.5",children:s.jsx(ae,{className:"size-7 rounded-lg bg-sidebar-accent"})})]})})})})};function ji(t){const e=w.c(50),{user:i,userImage:n}=t,{open:l}=at(),[o,r]=I.useState(!1);let a;e[0]!==i.email||e[1]!==i.id||e[2]!==i.name?(a=()=>{const F=`ID: ${i.id}
|
|
1
|
+
import{r as I,c as w,j as s,E as Ye,u as ze,y as P,e as Xe,au as Ze,L as We,cb as _t,bj as kt,O as te,as as Ct,U as wt,_ as $t,g as it,f as Ne,v as ve,cc as zt,bN as It,w as Pt,B as Ge,A as At,S as nt,k as Et,m as Ot,N as Tt,x as Dt,aw as Fe,K as Mt,av as lt,P as Rt}from"./index-OyLnxARk.js";import{C as oe,c as Lt,i as Ht,d as Ut}from"./task-status-D6cPLJpA.js";import{I as Bt}from"./integration-icon-B3aufi6R.js";import{u as ot,P as ge,a as Je}from"./index-DKWOGpkx.js";import{d as Ft,a as Kt,u as Wt}from"./constants-CLw0F8Mm.js";import{n as Gt}from"./ChevronLeft-Dugo1z8_.js";import{i as Vt}from"./Loading01-BYjTtpy0.js";import{s as Le}from"./Plus-1vH_gFoY.js";import{t as et}from"./Users03-CUiUl0DH.js";import{i as tt}from"./X-Car5B1de.js";import{E as qt,C as Qt}from"./editable-task-title-CeJC7Fwa.js";import{T as Yt}from"./tasks-panel-6uv7gp5j.js";import{a as Xt,b as Zt}from"./ai-providers-logos-4n_w8l7D.js";import{a as Jt}from"./context-ClUgEsLK.js";import{C as rt}from"./create-project-dialog-QYAKiAC_.js";import{c as es,b as ts,D as ss,d as is}from"./dialog-ZIc7OUaM.js";import{n as ns}from"./Container-CQmXt7Nc.js";import{e as ls}from"./Dataflow03-ccC0qbkR.js";import{a as os}from"./Home02-Bjdq3zLu.js";import{i as Ve}from"./LayoutLeft-BuqgN7z4.js";import{s as rs}from"./RefreshCcw01-ghOVEWuz.js";import{t as He}from"./Settings01-B3FNPQBg.js";import{u as as,a as at}from"./org-ai-providers-dfJpkNdu.js";import{u as ct,a as dt}from"./use-project-C2o9r0US.js";import{u as cs}from"./use-mobile-CgJAXGMs.js";import{d as ds,b as ms,S as fs,a as us,c as ps}from"./sheet-MAyp9_-H.js";import{c as xs,b as hs,a as gs,T as bs}from"./tooltip--UA5heKX.js";import{S as ae}from"./skeleton-DAvz6Hk5.js";import{n as $e}from"./LinkExternal01-Div7VvWd.js";import{t as mt}from"./ChevronDown-C-3qjfHK.js";import{A as Ie}from"./avatar-DEdDAQ0j.js";import{c as re,f as js,e as vs,b as ft,D as ut,a as pt,h as Ue,d as Ns}from"./dropdown-menu-EcTFyr4x.js";import{t as ys}from"./Building02-D_v8ZXC2.js";import{i as Pe}from"./Check-DAFdA2oM.js";import{C as Ss}from"./create-organization-dialog-CNZiViYc.js";import{a as _s}from"./Copy01-D7uh0hW0.js";import{i as ks}from"./File06-DbRSeish.js";import{i as Cs}from"./Globe01-Bb7jNfEM.js";import{i as ws}from"./Shield01-0suO3hAe.js";import{a as $s,P as zs,b as Is}from"./popover-BKHsia9C.js";import{n as st}from"./Inbox01-DiWhz3sk.js";import{s as Ps}from"./XClose-D08ltwBw.js";import{b as As}from"./use-mcp-tools-S01H2JtZ.js";import{C as Es,b as Os,c as Ts}from"./collapsible-CW12HasT.js";import{i as Ds}from"./ChevronRight-B3gSyJmK.js";import{a as Ms,R as xt,b as Rs}from"./resizable-1OPd79St.js";import"./spinner-CItj22uq.js";import"./use-mcp-prompts-DyPVjaKa.js";import"./useQuery-Brtj4EoG.js";import"./form-Cd_AEgzv.js";import"./label-BoRKSV_h.js";import"./input-B4YrZuiK.js";import"./index-CfjT_Fv-.js";import"./usage-BW6ztpN6.js";import"./ArrowUp-DqOjcDuh.js";import"./Edit01-DEd4k1xo.js";import"./Lock01-j13GCiRT.js";import"./use-copy-XD9UDj7l.js";import"./AlertCircle-BWr4XQe9.js";import"./select-Ctls6rHz.js";import"./ChevronUp-Rk5dLXNx.js";import"./index-CRi6734Z.js";import"./ArrowLeft-GOjXvqCa.js";import"./tabs-kzZLmFuM.js";import"./badge-BTw8dF6C.js";import"./Code01-CoEt5nyY.js";import"./checkbox-BA_JFbx4.js";import"./AlignLeft-BJyvDaBk.js";import"./Image01-D4-tispo.js";import"./Key01-Cv0XYLbb.js";import"./SearchMd-Dn4cWwEm.js";import"./Tool01-3i6uRXKJ.js";import"./select-virtual-mcp-CEX-N6yN.js";import"./use-virtual-mcp-B8SbBr9v.js";import"./use-collections-DXLoMYCx.js";import"./useMutation-B_6d8oLI.js";import"./use-create-virtual-mcp-BvSTYw2n.js";import"./use-mcp-resources-CFTlLllB.js";import"./marked.esm-BaswSlok.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-KZyUYhBW.js";import"./types-DoomhLgW.js";import"./Eye-MRRTHIte.js";import"./Globe02-CDBspixd.js";import"./LayersTwo01-DdRcHsrK.js";import"./Clock-Ccv6eV04.js";import"./Trash01-Dmi4vR7Q.js";import"./useSuspenseInfiniteQuery-DD7d1y3B.js";import"./infiniteQueryObserver-BkZg7AVk.js";import"./CheckCircle-BL2mIAJn.js";import"./collection-search-D6ILFEtf.js";import"./user-BLAfg6Ev.js";import"./format-time-CMKyl-GC.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./decopilot-events-Brt4gAR6.js";import"./index-DxqOk4x4.js";import"./textarea-CpLkXx5p.js";import"./EyeOff-CgRP1cSC.js";import"./card-B6XTMOTf.js";import"./toggle-group-C-kSfPqI.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./alert-dialog-BZtQAioB.js";import"./index-Bg2XE05Y.js";const ht=({size:t=24,color:e="currentColor",...i})=>I.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i},I.createElement("path",{d:"M9 7H4.6c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C3 7.76 3 8.04 3 8.6v10.8c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C3.76 21 4.04 21 4.6 21H9m0 0h6m-6 0V4.6c0-.56 0-.84.109-1.054a1 1 0 0 1 .437-.437C9.76 3 10.04 3 10.6 3h2.8c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C15 3.76 15 4.04 15 4.6V21m0-10h4.4c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C21 11.76 21 12.04 21 12.6v6.8c0 .56 0 .84-.109 1.054a1 1 0 0 1-.437.437C20.24 21 19.96 21 19.4 21H15"}));ht.displayName="BarChart10";const Be=({size:t=24,color:e="currentColor",...i})=>I.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i},I.createElement("path",{d:"m6 15 2 2 4.5-4.5M8 8V5.2c0-1.12 0-1.68.218-2.108a2 2 0 0 1 .874-.874C9.52 2 10.08 2 11.2 2h7.6c1.12 0 1.68 0 2.108.218a2 2 0 0 1 .874.874C22 3.52 22 4.08 22 5.2v7.6c0 1.12 0 1.68-.218 2.108a2 2 0 0 1-.874.874C20.48 16 19.92 16 18.8 16H16M5.2 22h7.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C16 20.48 16 19.92 16 18.8v-7.6c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C14.48 8 13.92 8 12.8 8H5.2c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C2 9.52 2 10.08 2 11.2v7.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C3.52 22 4.08 22 5.2 22Z"}));Be.displayName="CheckDone01";const gt=({size:t=24,color:e="currentColor",...i})=>I.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i},I.createElement("path",{d:"M15.938 15.938A7.001 7.001 0 0 0 15 2a7.001 7.001 0 0 0-6.938 6.062M16 15a7 7 0 1 1-14 0 7 7 0 0 1 14 0Z"}));gt.displayName="Coins01";const bt=({size:t=24,color:e="currentColor",...i})=>I.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i},I.createElement("path",{d:"m16 17 5-5m0 0-5-5m5 5H9m0-9H7.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C3 5.28 3 6.12 3 7.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 21 6.12 21 7.8 21H9"}));bt.displayName="LogOut01";function Ls(){const t=w.c(70),{org:e}=ze(),[,i]=ot(),n=Xt(),{selectedVirtualMcp:l,isChatEmpty:o,activeTaskId:r,createTask:a,switchToTask:c,tasks:d}=Jt();let m;if(t[0]!==r||t[1]!==d){let O;t[3]!==r?(O=Z=>Z.id===r,t[3]=r,t[4]=O):O=t[4],m=d.find(O),t[0]=r,t[1]=d,t[2]=m}else m=t[2];const u=m,[f,p]=I.useState("chat"),[h,y]=I.useTransition();let j;t[5]!==e.id?(j=Ft(e.id),t[5]=e.id,t[6]=j):j=t[6];const g=l??j;let x;t[7]!==a?(x=()=>{y(()=>{a()})},t[7]=a,t[8]=x):x=t[8];const v=x;if(n?.providers?.length===0){let O;t[9]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsx(ge.Header.Left,{className:"gap-2"}),t[9]=O):O=t[9];let Z;t[10]!==i?(Z=()=>i(!1),t[10]=i,t[11]=Z):Z=t[11];let me;t[12]===Symbol.for("react.memo_cache_sentinel")?(me=s.jsx(tt,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[12]=me):me=t[12];let ie;t[13]!==Z?(ie=s.jsxs(ge.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[O,s.jsx(ge.Header.Right,{className:"gap-1",children:s.jsx("button",{type:"button",onClick:Z,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:me})})]}),t[13]=Z,t[14]=ie):ie=t[14];let je;t[15]===Symbol.for("react.memo_cache_sentinel")?(je=s.jsx(oe.Main,{className:"flex flex-col items-center",children:s.jsx(oe.EmptyState,{children:s.jsx(oe.NoLlmBindingEmptyState,{title:"No model provider connected",description:"Connect to a model provider to unlock AI-powered features."})})}),t[15]=je):je=t[15];let ne;return t[16]!==ie?(ne=s.jsxs(oe,{className:"animate-in fade-in-0 duration-200",children:[ie,je]}),t[16]=ie,t[17]=ne):ne=t[17],ne}const C=f!=="chat"||h?"opacity-0 pointer-events-none":"opacity-100";let b;t[18]!==C?(b=P("absolute inset-0 flex flex-col transition-opacity duration-100 ease-out",C),t[18]=C,t[19]=b):b=t[19];let N;t[20]!==u||t[21]!==o?(N=!o&&u?.title&&s.jsx(qt,{taskId:u.id,text:u.title,className:"text-sm font-medium text-foreground"}),t[20]=u,t[21]=o,t[22]=N):N=t[22];let k;t[23]!==N?(k=s.jsx(ge.Header.Left,{className:"gap-2",children:N}),t[23]=N,t[24]=k):k=t[24];let $;t[25]===Symbol.for("react.memo_cache_sentinel")?($=s.jsx(Le,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[25]=$):$=t[25];let z;t[26]!==v||t[27]!==h?(z=s.jsx("button",{type:"button",onClick:v,disabled:h,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent group cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",title:"New chat",children:$}),t[26]=v,t[27]=h,t[28]=z):z=t[28];let M;t[29]===Symbol.for("react.memo_cache_sentinel")?(M=()=>p("tasks"),t[29]=M):M=t[29];let R;t[30]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx("button",{type:"button",onClick:M,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent group cursor-pointer",title:"Tasks",children:s.jsx(Be,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"})}),t[30]=R):R=t[30];let L;t[31]!==i?(L=()=>i(!1),t[31]=i,t[32]=L):L=t[32];let H;t[33]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(tt,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[33]=H):H=t[33];let T;t[34]!==L?(T=s.jsx("button",{type:"button",onClick:L,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:H}),t[34]=L,t[35]=T):T=t[35];let A;t[36]!==T||t[37]!==z?(A=s.jsxs(ge.Header.Right,{className:"gap-1",children:[z,R,T]}),t[36]=T,t[37]=z,t[38]=A):A=t[38];let D;t[39]!==A||t[40]!==k?(D=s.jsxs(ge.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[k,A]}),t[39]=A,t[40]=k,t[41]=D):D=t[41];let E;t[42]!==g||t[43]!==o?(E=s.jsx(oe.Main,{children:o?s.jsx(oe.EmptyState,{children:s.jsxs("div",{className:"flex flex-col items-center gap-6 w-full px-4",children:[s.jsxs("div",{className:"flex flex-col items-center justify-center gap-4 p-0 text-center",children:[s.jsx(Bt,{icon:g.icon,name:g.title,size:"lg",fallbackIcon:s.jsx(et,{size:32}),className:"size-[60px]! rounded-[18px]!"}),s.jsx("h3",{className:"text-xl font-medium text-foreground",children:g.title}),s.jsx("div",{className:"text-muted-foreground text-center text-sm max-w-md",children:g.description??"Ask anything about configuring model providers or using MCP Mesh."})]}),s.jsx(oe.IceBreakers,{})]})}):s.jsx(oe.Messages,{})}),t[42]=g,t[43]=o,t[44]=E):E=t[44];let U;t[45]===Symbol.for("react.memo_cache_sentinel")?(U=s.jsx(oe.Footer,{children:s.jsx(oe.Input,{onOpenContextPanel:()=>p("context")})}),t[45]=U):U=t[45];let B;t[46]!==D||t[47]!==E||t[48]!==b?(B=s.jsxs("div",{className:b,children:[D,E,U]}),t[46]=D,t[47]=E,t[48]=b,t[49]=B):B=t[49];const F=f==="tasks"?"opacity-100":"opacity-0 pointer-events-none";let se;t[50]!==F?(se=P("absolute inset-0 flex flex-col transition-opacity duration-100 ease-out",F),t[50]=F,t[51]=se):se=t[51];let J;t[52]===Symbol.for("react.memo_cache_sentinel")?(J=s.jsx(ge.Header.Left,{className:"gap-2",children:s.jsx("span",{className:"text-sm font-normal text-foreground",children:"Tasks"})}),t[52]=J):J=t[52];let ce;t[53]===Symbol.for("react.memo_cache_sentinel")?(ce=()=>p("chat"),t[53]=ce):ce=t[53];let de;t[54]===Symbol.for("react.memo_cache_sentinel")?(de=s.jsxs(ge.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[J,s.jsx(ge.Header.Right,{className:"gap-1",children:s.jsx("button",{type:"button",onClick:ce,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Back to chat",children:s.jsx(Gt,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"})})})]}),t[54]=de):de=t[54];let W;t[55]===Symbol.for("react.memo_cache_sentinel")?(W=s.jsx("div",{className:"flex-1 flex items-center justify-center",children:s.jsx(Vt,{size:16,className:"animate-spin text-muted-foreground"})}),t[55]=W):W=t[55];let X;t[56]!==c?(X=s.jsx(Ye,{fallback:Hs,children:s.jsx(I.Suspense,{fallback:W,children:s.jsx(Yt,{onTaskSelect:async O=>{await c(O),p("chat")}})})}),t[56]=c,t[57]=X):X=t[57];let G;t[58]!==se||t[59]!==X?(G=s.jsxs("div",{className:se,children:[de,X]}),t[58]=se,t[59]=X,t[60]=G):G=t[60];const fe=f==="context"?"opacity-100":"opacity-0 pointer-events-none";let V;t[61]!==fe?(V=P("absolute inset-0 flex flex-col transition-opacity duration-100 ease-out",fe),t[61]=fe,t[62]=V):V=t[62];let ee;t[63]===Symbol.for("react.memo_cache_sentinel")?(ee=s.jsx(Qt,{back:!0,onClose:()=>p("chat")}),t[63]=ee):ee=t[63];let q;t[64]!==V?(q=s.jsx("div",{className:V,children:ee}),t[64]=V,t[65]=q):q=t[65];let Q;return t[66]!==B||t[67]!==G||t[68]!==q?(Q=s.jsxs(oe,{className:"relative overflow-hidden animate-in fade-in-0 duration-200",children:[B,G,q]}),t[66]=B,t[67]=G,t[68]=q,t[69]=Q):Q=t[69],Q}function Hs(){return s.jsx("div",{className:"flex-1 flex items-center justify-center",children:s.jsx("p",{className:"text-xs text-muted-foreground",children:"Unable to load tasks"})})}function Us(){const t=w.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(oe.Skeleton,{}),t[0]=e):e=t[0];let i;return t[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(Ye,{fallback:e,children:s.jsx(I.Suspense,{fallback:s.jsx(oe.Skeleton,{}),children:s.jsx(Ls,{})})}),t[1]=i):i=t[1],i}function Bs(t){const e=w.c(5),{open:i,onOpenChange:n}=t;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(ts,{children:s.jsx(ss,{children:"Keyboard Shortcuts"})}),e[0]=l):l=e[0];let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsxs(es,{className:"sm:max-w-md",children:[l,s.jsx("div",{className:"flex flex-col gap-4",children:Lt.map(Fs)})]}),e[1]=o):o=e[1];let r;return e[2]!==n||e[3]!==i?(r=s.jsx(is,{open:i,onOpenChange:n,children:o}),e[2]=n,e[3]=i,e[4]=r):r=e[4],r}function Fs(t){return s.jsxs("div",{children:[s.jsx("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-2",children:t.label}),s.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(Ks)})]},t.label)}function Ks(t){return s.jsxs("div",{className:"flex items-center justify-between py-1",children:[s.jsx("span",{className:"text-sm",children:t.description}),s.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(Ws)})]},t.description)}function Ws(t){return s.jsx("kbd",{className:"inline-flex items-center justify-center min-w-6 h-6 px-1.5 rounded-sm border border-border bg-muted text-muted-foreground text-xs font-mono",children:t},t)}function Gs(){const t=w.c(60),{locator:e,org:i}=ze(),n=Xe(),l=Ze(),[o]=as(),{org:r,project:a}=We.parse(e),c=We.isOrgAdminProject(e),{data:d}=ct(i.id,a);let m;t[0]!==d?.enabledPlugins?(m=d?.enabledPlugins??[],t[0]=d?.enabledPlugins,t[1]=m):m=t[1];const u=m,f=d?.ui?.pinnedViews??[];let p;t[2]!==u?(p=S=>u.includes(S.pluginId),t[2]=u,t[3]=p):p=t[3];const h=_t.filter(p),y=l.location.pathname,j=`/${r}/${a}`,_=y===j||y===`${j}/`;let g;t[4]!==j||t[5]!==y?(g=S=>y.startsWith(`${j}/${S}`),t[4]=j,t[5]=y,t[6]=g):g=t[6];const x=g;let v;t[7]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx(os,{}),t[7]=v):v=t[7];const C={key:"home",label:"Home",icon:v,isActive:_,onClick:()=>{_?window.dispatchEvent(new CustomEvent("reset-home-view")):n({to:"/$org/$project",params:{org:r,project:a}})}};let b;t[8]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(Be,{}),t[8]=b):b=t[8];const N={key:"tasks",label:"Tasks",icon:b,isActive:x("tasks"),onClick:()=>n({to:"/$org/$project/tasks",params:{org:r,project:te}})};let k;t[9]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx(ns,{}),t[9]=k):k=t[9];const $={key:"mcps",label:"Connections",icon:k,isActive:x("mcps"),onClick:()=>n({to:"/$org/$project/mcps",params:{org:r,project:te}})};let z;t[10]===Symbol.for("react.memo_cache_sentinel")?(z=s.jsx(Ct,{}),t[10]=z):z=t[10];const M={key:"projects",label:"Projects",icon:z,isActive:x("projects"),onClick:()=>n({to:"/$org/$project/projects",params:{org:r,project:te}})};let R;t[11]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx(et,{}),t[11]=R):R=t[11];const L={key:"agents",label:"Agents",icon:R,isActive:x("agents"),onClick:()=>n({to:"/$org/$project/agents",params:{org:r,project:te}})};let H;t[12]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(rs,{}),t[12]=H):H=t[12];const T={key:"automations",label:"Automations",icon:H,isActive:x("automations"),onClick:()=>n({to:"/$org/$project/automations",params:{org:r,project:te}})};let A;t[13]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(ht,{}),t[13]=A):A=t[13];const D={key:"monitoring",label:"Monitor",icon:A,isActive:x("monitoring"),onClick:()=>n({to:"/$org/$project/monitoring",params:{org:r,project:te}})},E=h.map(S=>({key:S.pluginId,label:S.label,icon:S.icon,isActive:x(S.pluginId),onClick:()=>n({to:"/$org/$project/$pluginId",params:{org:r,project:a,pluginId:S.pluginId}})}));let U;t[14]!==u?(U=S=>u.includes(S.pluginId),t[14]=u,t[15]=U):U=t[15];const F=kt.filter(U).map(S=>({type:"group",group:{id:`${S.pluginId}-${S.id}`,label:S.label,items:S.items.map((K,le)=>({key:`${S.pluginId}-${S.id}-${le}`,label:K.label,icon:K.icon,isActive:x(S.pluginId),onClick:()=>n({to:"/$org/$project/$pluginId",params:{org:r,project:a,pluginId:S.pluginId}})})),defaultExpanded:S.defaultExpanded??!0}})),se=f.map(S=>({key:`app-${S.connectionId}-${S.toolName}`,label:S.label||S.toolName,icon:S.icon?s.jsx("img",{src:S.icon,alt:"",className:"size-4 rounded"}):s.jsx(Ve,{}),isActive:x(`apps/${S.connectionId}/${encodeURIComponent(S.toolName)}`),onClick:()=>n({to:"/$org/$project/apps/$connectionId/$toolName",params:{org:r,project:a,connectionId:S.connectionId,toolName:S.toolName}})}));let J;t[16]!==se?(J=se.length>0?{type:"group",group:{id:"apps",label:"Apps",items:se,defaultExpanded:!0}}:null,t[16]=se,t[17]=J):J=t[17];const ce=J;if(c){let S;t[18]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx(He,{}),t[18]=S):S=t[18];let K;t[19]!==x?(K=x("settings"),t[19]=x,t[20]=K):K=t[20];let le;t[21]!==n||t[22]!==r?(le=()=>n({to:"/$org/$project/settings",params:{org:r,project:te}}),t[21]=n,t[22]=r,t[23]=le):le=t[23];let he;t[24]!==K||t[25]!==le?(he={key:"settings",label:"Settings",icon:S,isActive:K,onClick:le},t[24]=K,t[25]=le,t[26]=he):he=t[26];const ye=he,ue=[{type:"items",items:[C,N,M]},{type:"group",group:{id:"build",label:"Build",items:[...o.experimentalAutomations?[T]:[],L,$],defaultExpanded:!0}},{type:"group",group:{id:"manage",label:"Manage",items:[D,ye],defaultExpanded:!0}}];if(E.length>0){let pe;t[27]!==E?(pe={type:"items",items:E},t[27]=E,t[28]=pe):pe=t[28],ue.push(pe)}return F.length>0&&ue.push(...F),ce&&ue.push(ce),ue}let de;t[29]===Symbol.for("react.memo_cache_sentinel")?(de=s.jsx(Be,{}),t[29]=de):de=t[29];let W;t[30]!==x?(W=x("tasks"),t[30]=x,t[31]=W):W=t[31];let X;t[32]!==n||t[33]!==r||t[34]!==a?(X=()=>n({to:"/$org/$project/tasks",params:{org:r,project:a}}),t[32]=n,t[33]=r,t[34]=a,t[35]=X):X=t[35];let G;t[36]!==W||t[37]!==X?(G={key:"tasks",label:"Tasks",icon:de,isActive:W,onClick:X},t[36]=W,t[37]=X,t[38]=G):G=t[38];const fe=G;let V;t[39]!==u||t[40]!==x||t[41]!==n||t[42]!==r||t[43]!==a?(V=u.includes("workflows")?{key:"workflows",label:"Workflows",icon:s.jsx(ls,{}),isActive:x("workflows"),onClick:()=>n({to:"/$org/$project/workflows",params:{org:r,project:a}})}:null,t[39]=u,t[40]=x,t[41]=n,t[42]=r,t[43]=a,t[44]=V):V=t[44];const ee=V;let q;t[45]===Symbol.for("react.memo_cache_sentinel")?(q=s.jsx(He,{}),t[45]=q):q=t[45];let Q;t[46]!==x?(Q=x("settings"),t[46]=x,t[47]=Q):Q=t[47];let O;t[48]!==n||t[49]!==r||t[50]!==a?(O=()=>n({to:"/$org/$project/settings/general",params:{org:r,project:a}}),t[48]=n,t[49]=r,t[50]=a,t[51]=O):O=t[51];let Z;t[52]!==Q||t[53]!==O?(Z={key:"configure",label:"Settings",icon:q,isActive:Q,onClick:O},t[52]=Q,t[53]=O,t[54]=Z):Z=t[54];const me=Z;let ie;t[55]!==ee?(ie=ee?[ee]:[],t[55]=ee,t[56]=ie):ie=t[56];const ne=[{type:"items",items:[C,fe,...ie,me]}];if(E.length>0){let S;t[57]===Symbol.for("react.memo_cache_sentinel")?(S={type:"divider"},t[57]=S):S=t[57],ne.push(S);let K;t[58]!==E?(K={type:"items",items:E},t[58]=E,t[59]=K):K=t[59],ne.push(K)}return F.length>0&&ne.push(...F),ce&&ne.push(ce),ne}const Vs="sidebar_state",qs=3600*24*7,Qs="16rem",Ys="18rem",Xs="3rem",Zs="b",jt=I.createContext(null);function Ke(){const t=I.useContext(jt);if(!t)throw new Error("useSidebar must be used within a SidebarProvider.");return t}function Js(t){const e=w.c(21),{defaultOpen:i,open:n,onOpenChange:l,children:o}=t,r=i===void 0?!0:i,a=cs(),[c,d]=I.useState(!1),[m,u]=I.useState(r),f=n??m;let p;e[0]!==f||e[1]!==l?(p=k=>{const $=typeof k=="function"?k(f):k;l?l($):u($),document.cookie=`${Vs}=${$}; path=/; max-age=${qs}`},e[0]=f,e[1]=l,e[2]=p):p=e[2];const h=p;let y;e[3]!==a||e[4]!==h?(y=()=>a?d(ti):h(ei),e[3]=a,e[4]=h,e[5]=y):y=e[5];const j=y;let _,g;e[6]!==j?(_=()=>{const k=$=>{if($.key===Zs&&($.metaKey||$.ctrlKey)){const z=$.target;if(z.tagName==="INPUT"||z.tagName==="TEXTAREA"||z.isContentEditable)return;$.preventDefault(),j()}};return globalThis.addEventListener("keydown",k),()=>globalThis.removeEventListener("keydown",k)},g=[j],e[6]=j,e[7]=_,e[8]=g):(_=e[7],g=e[8]),I.useEffect(_,g);const x=f?"expanded":"collapsed";let v;e[9]!==a||e[10]!==f||e[11]!==c||e[12]!==h||e[13]!==x||e[14]!==j?(v={state:x,open:f,setOpen:h,isMobile:a,openMobile:c,setOpenMobile:d,toggleSidebar:j},e[9]=a,e[10]=f,e[11]=c,e[12]=h,e[13]=x,e[14]=j,e[15]=v):v=e[15];const C=v;let b;e[16]!==o?(b=s.jsx(xs,{delayDuration:0,children:o}),e[16]=o,e[17]=b):b=e[17];let N;return e[18]!==C||e[19]!==b?(N=s.jsx(jt.Provider,{value:C,children:b}),e[18]=C,e[19]=b,e[20]=N):N=e[20],N}function ei(t){return!t}function ti(t){return!t}function si(t){const e=w.c(14);let i,n,l,o;e[0]!==t?({className:n,style:o,children:i,...l}=t,e[0]=t,e[1]=i,e[2]=n,e[3]=l,e[4]=o):(i=e[1],n=e[2],l=e[3],o=e[4]);let r;e[5]!==o?(r={"--sidebar-width":Qs,"--sidebar-width-icon":Xs,...o},e[5]=o,e[6]=r):r=e[6];const a=r;let c;e[7]!==n?(c=P("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",n),e[7]=n,e[8]=c):c=e[8];let d;return e[9]!==i||e[10]!==l||e[11]!==a||e[12]!==c?(d=s.jsx("div",{"data-slot":"sidebar-wrapper",style:a,className:c,...l,children:i}),e[9]=i,e[10]=l,e[11]=a,e[12]=c,e[13]=d):d=e[13],d}function ii(t){const e=w.c(42);let i,n,l,o,r,a;e[0]!==t?({side:o,variant:r,collapsible:a,className:n,children:i,...l}=t,e[0]=t,e[1]=i,e[2]=n,e[3]=l,e[4]=o,e[5]=r,e[6]=a):(i=e[1],n=e[2],l=e[3],o=e[4],r=e[5],a=e[6]);const c=o===void 0?"left":o,d=r===void 0?"sidebar":r,m=a===void 0?"offcanvas":a,{isMobile:u,state:f,openMobile:p,setOpenMobile:h}=Ke();if(m==="none"){let b;e[7]!==n?(b=P("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",n),e[7]=n,e[8]=b):b=e[8];let N;return e[9]!==i||e[10]!==l||e[11]!==b?(N=s.jsx("div",{"data-slot":"sidebar",className:b,...l,children:i}),e[9]=i,e[10]=l,e[11]=b,e[12]=N):N=e[12],N}if(u){let b;e[13]===Symbol.for("react.memo_cache_sentinel")?(b={"--sidebar-width":Ys},e[13]=b):b=e[13];let N;e[14]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsxs(ms,{className:"sr-only",children:[s.jsx(fs,{children:"Sidebar"}),s.jsx(us,{children:"Displays the mobile sidebar."})]}),e[14]=N):N=e[14];let k;e[15]!==i?(k=s.jsx("div",{className:"flex h-full w-full flex-col",children:i}),e[15]=i,e[16]=k):k=e[16];let $;e[17]!==c||e[18]!==k?($=s.jsxs(ps,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:b,side:c,children:[N,k]}),e[17]=c,e[18]=k,e[19]=$):$=e[19];let z;return e[20]!==p||e[21]!==l||e[22]!==h||e[23]!==$?(z=s.jsx(ds,{open:p,onOpenChange:h,...l,children:$}),e[20]=p,e[21]=l,e[22]=h,e[23]=$,e[24]=z):z=e[24],z}const y=d==="floating"||d==="inset"?"data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"data-[collapsible=icon]:w-(--sidebar-width-icon)";let j;e[25]!==y?(j=P("group peer text-sidebar-foreground hidden md:flex flex-col shrink-0 overflow-hidden","w-(--sidebar-width) transition-[width] duration-300 ease-[var(--ease-out-quart)]","data-[collapsible=offcanvas]:w-0",y),e[25]=y,e[26]=j):j=e[26];const _=f==="collapsed"?m:"";let g;e[27]!==n?(g=P("flex flex-col h-full w-(--sidebar-width)",n),e[27]=n,e[28]=g):g=e[28];let x;e[29]!==i?(x=s.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:i}),e[29]=i,e[30]=x):x=e[30];let v;e[31]!==l||e[32]!==g||e[33]!==x?(v=s.jsx("div",{"data-slot":"sidebar-container",className:g,...l,children:x}),e[31]=l,e[32]=g,e[33]=x,e[34]=v):v=e[34];let C;return e[35]!==c||e[36]!==f||e[37]!==j||e[38]!==_||e[39]!==v||e[40]!==d?(C=s.jsx("div",{className:j,"data-state":f,"data-collapsible":_,"data-variant":d,"data-side":c,"data-slot":"sidebar",children:v}),e[35]=c,e[36]=f,e[37]=j,e[38]=_,e[39]=v,e[40]=d,e[41]=C):C=e[41],C}function ni(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("bg-background relative flex w-full flex-1 flex-col min-w-0","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("main",{"data-slot":"sidebar-inset",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function vt(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("flex flex-col gap-2 p-2",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function li(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("flex flex-col gap-2 p-2",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function oi(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("h-4 m-0! w-full",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("div",{"data-sidebar":"separator",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function ri(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function Ae(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("relative flex w-full min-w-0 flex-col px-2 py-2 md:py-0",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function Ee(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("w-full text-sm",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function be(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("flex w-full min-w-0 flex-col gap-1",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function xe(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("group/menu-item relative",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}const ai=$t("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md py-0 pr-0.5 pl-1.5 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&_svg]:opacity-60 hover:[&_svg]:opacity-100",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2!",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function Oe(t){const e=w.c(28);let i,n,l,o,r,a,c;e[0]!==t?({asChild:l,isActive:o,variant:r,size:a,tooltip:c,className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n,e[3]=l,e[4]=o,e[5]=r,e[6]=a,e[7]=c):(i=e[1],n=e[2],l=e[3],o=e[4],r=e[5],a=e[6],c=e[7]);const d=l===void 0?!1:l,m=o===void 0?!1:o,u=r===void 0?"default":r,f=a===void 0?"default":a,p=d?wt:"button",{isMobile:h,state:y}=Ke();let j;e[8]!==i||e[9]!==f||e[10]!==u?(j=P(ai({variant:u,size:f}),i),e[8]=i,e[9]=f,e[10]=u,e[11]=j):j=e[11];let _;e[12]!==p||e[13]!==m||e[14]!==n||e[15]!==f||e[16]!==j?(_=s.jsx(p,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":f,"data-active":m,className:j,...n}),e[12]=p,e[13]=m,e[14]=n,e[15]=f,e[16]=j,e[17]=_):_=e[17];const g=_;if(!c)return g;if(typeof c=="string"){let N;e[18]!==c?(N={children:c},e[18]=c,e[19]=N):N=e[19],c=N}let x;e[20]!==g?(x=s.jsx(gs,{asChild:!0,children:g}),e[20]=g,e[21]=x):x=e[21];const v=y!=="collapsed"||h;let C;e[22]!==v||e[23]!==c?(C=s.jsx(hs,{side:"right",align:"center",hidden:v,...c}),e[22]=v,e[23]=c,e[24]=C):C=e[24];let b;return e[25]!==x||e[26]!==C?(b=s.jsxs(bs,{children:[x,C]}),e[25]=x,e[26]=C,e[27]=b):b=e[27],b}function ci(t){const e=w.c(11),{label:i,children:n,defaultExpanded:l}=t,o=l===void 0?!0:l,[r,a]=I.useState(o),{state:c}=Ke(),d=c==="collapsed";let m;e[0]!==r||e[1]!==d||e[2]!==i?(m=d?s.jsx("div",{className:"flex h-6 items-center",children:s.jsx("div",{className:"h-0.5 w-8 rounded-full bg-sidebar-foreground/15"})}):s.jsx(be,{children:s.jsx(xe,{children:s.jsxs(Oe,{className:"h-6 cursor-pointer select-none gap-1 [&>svg]:size-3",onClick:()=>a(!r),children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:i}),s.jsx(mt,{size:12,className:P("text-muted-foreground transition-transform duration-200",!r&&"-rotate-90")})]})})}),e[0]=r,e[1]=d,e[2]=i,e[3]=m):m=e[3];let u;e[4]!==n||e[5]!==r||e[6]!==d?(u=(d||r)&&s.jsx(Ee,{children:s.jsx(be,{className:"gap-0.5",children:n})}),e[4]=n,e[5]=r,e[6]=d,e[7]=u):u=e[7];let f;return e[8]!==m||e[9]!==u?(f=s.jsxs(Ae,{className:"pt-0 pr-0 pb-2 pl-0 mt-2",children:[m,u]}),e[8]=m,e[9]=u,e[10]=f):f=e[10],f}function Nt(t){const e=w.c(20),{item:i}=t,n=i.key,l=i.onClick,o=i.isActive,r=i.label,a=i.isExternal&&"group/external";let c;e[0]!==a?(c=P(a),e[0]=a,e[1]=c):c=e[1];let d;e[2]!==i.icon?(d=s.jsx("span",{className:"[&>svg]:size-4",children:i.icon}),e[2]=i.icon,e[3]=d):d=e[3];let m;e[4]===Symbol.for("react.memo_cache_sentinel")?(m=P("truncate group-data-[collapsible=icon]:hidden"),e[4]=m):m=e[4];let u;e[5]!==i.label?(u=s.jsx("span",{className:m,children:i.label}),e[5]=i.label,e[6]=u):u=e[6];let f;e[7]!==i.isExternal?(f=i.isExternal&&s.jsx($e,{size:12,className:"ml-auto mr-1 shrink-0 opacity-0 group-hover/external:opacity-60 transition-opacity group-data-[collapsible=icon]:hidden"}),e[7]=i.isExternal,e[8]=f):f=e[8];let p;e[9]!==i.isActive||e[10]!==i.label||e[11]!==i.onClick||e[12]!==f||e[13]!==c||e[14]!==d||e[15]!==u?(p=s.jsxs(Oe,{onClick:l,isActive:o,tooltip:r,className:c,children:[d,u,f]}),e[9]=i.isActive,e[10]=i.label,e[11]=i.onClick,e[12]=f,e[13]=c,e[14]=d,e[15]=u,e[16]=p):p=e[16];let h;return e[17]!==i.key||e[18]!==p?(h=s.jsx(xe,{children:p},n),e[17]=i.key,e[18]=p,e[19]=h):h=e[19],h}function di(t){const e=w.c(12),{section:i}=t;switch(i.type){case"divider":{let n;return e[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(oi,{className:"my-2"}),e[0]=n):n=e[0],n}case"spacer":{let n;return e[1]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx("div",{className:"flex-1"}),e[1]=n):n=e[1],n}case"group":{const n=i.group.label,l=i.group.defaultExpanded;let o;e[2]!==i.group.items?(o=i.group.items.map(fi),e[2]=i.group.items,e[3]=o):o=e[3];let r;return e[4]!==i.group.defaultExpanded||e[5]!==i.group.label||e[6]!==o?(r=s.jsx(ci,{label:n,defaultExpanded:l,children:o}),e[4]=i.group.defaultExpanded,e[5]=i.group.label,e[6]=o,e[7]=r):r=e[7],r}case"items":{let n;e[8]!==i.items?(n=i.items.map(mi),e[8]=i.items,e[9]=n):n=e[9];let l;return e[10]!==n?(l=s.jsx(Ae,{className:"pt-0 pr-0 pb-0 pl-0",children:s.jsx(Ee,{children:s.jsx(be,{className:"gap-0.5",children:n})})}),e[10]=n,e[11]=l):l=e[11],l}}}function mi(t){return s.jsx(Nt,{item:t},t.key)}function fi(t){return s.jsx(Nt,{item:t},t.key)}function yt(t){const e=w.c(14),{sections:i,header:n,footer:l,additionalContent:o,variant:r,collapsible:a,contentClassName:c}=t,d=r===void 0?"sidebar":r,m=a===void 0?"icon":a;let u;e[0]!==c?(u=P("flex flex-col flex-1 overflow-x-hidden mt-1 px-3.5 pb-2 group-data-[collapsible=icon]:px-2",c),e[0]=c,e[1]=u):u=e[1];let f;e[2]!==i?(f=i.map(ui),e[2]=i,e[3]=f):f=e[3];let p;e[4]!==o||e[5]!==u||e[6]!==f?(p=s.jsxs(ri,{className:u,children:[f,o]}),e[4]=o,e[5]=u,e[6]=f,e[7]=p):p=e[7];let h;return e[8]!==m||e[9]!==l||e[10]!==n||e[11]!==p||e[12]!==d?(h=s.jsxs(ii,{variant:d,collapsible:m,children:[n,p,l]}),e[8]=m,e[9]=l,e[10]=n,e[11]=p,e[12]=d,e[13]=h):h=e[13],h}function ui(t,e){return s.jsx(di,{section:t},e)}yt.Skeleton=function(){return s.jsx("div",{className:"flex flex-col gap-0.5",children:Array.from({length:8}).map((e,i)=>s.jsx("div",{className:"w-full h-8",children:s.jsx(ae,{className:"h-full bg-sidebar-accent rounded-md"})},i))})};function pi(){const t=w.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsxs("div",{className:"space-y-0.5 px-1 py-1",children:[s.jsx(ae,{className:"h-8 w-full rounded-lg"}),s.jsx(ae,{className:"h-8 w-full rounded-lg"})]}),t[0]=e):e=t[0],e}function xi(t){const e=w.c(12),{organizationId:i,currentProjectSlug:n,onSelect:l}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={suspense:!0},e[0]=o):o=e[0];const{data:r}=dt(i,o);let a,c;if(e[1]!==n||e[2]!==l||e[3]!==r){c=Symbol.for("react.early_return_sentinel");e:{const m=r?.filter(hi)??[];if(m.length===0){let f;e[6]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx("div",{className:"px-2 py-3 text-center text-xs text-muted-foreground",children:"No projects yet"}),e[6]=f):f=e[6],c=f;break e}let u;e[7]!==n||e[8]!==l?(u=f=>{const p=n===f.slug,h=f.ui?.themeColor??"#3B82F6";return s.jsxs(re,{className:P("gap-2.5",p&&"bg-accent"),onClick:()=>l(f.slug),children:[s.jsx("div",{className:"size-6 rounded-md shrink-0 flex items-center justify-center overflow-hidden border border-border/50",style:f.ui?.icon?void 0:{backgroundColor:h},children:f.ui?.icon?s.jsx("img",{src:f.ui.icon,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:"text-xs font-semibold text-white",children:f.name.charAt(0).toUpperCase()})}),s.jsx("span",{className:"flex-1 truncate",children:f.name}),p&&s.jsx(Pe,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},f.id)},e[7]=n,e[8]=l,e[9]=u):u=e[9],a=m.map(u)}e[1]=n,e[2]=l,e[3]=r,e[4]=a,e[5]=c}else a=e[4],c=e[5];if(c!==Symbol.for("react.early_return_sentinel"))return c;let d;return e[10]!==a?(d=s.jsx(s.Fragment,{children:a}),e[10]=a,e[11]=d):d=e[11],d}function hi(t){return t.slug!==te}function gi(t){let e=0;for(let n=0;n<t.length;n++)e=t.charCodeAt(n)+((e<<5)-e);const i=Math.abs(e)%360;return{backgroundColor:`hsl(${i} 55% 70%)`,color:`hsl(${i} 55% 20%)`}}function qe(t){const e=w.c(96),{isCollapsed:i,onCreateProject:n}=t,l=i===void 0?!1:i;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={strict:!1},e[0]=o):o=e[0];const{org:r,project:a}=it(o),{data:c}=Ne.useListOrganizations(),d=Xe(),m=c?.find(Y=>Y.slug===r),[u,f]=I.useState(!1),p=a===te,{data:h}=ct(m?.id??"",p?"":a??"");let y;e[1]!==r?(y=(Y,Re)=>Y.slug===r?-1:Re.slug===r?1:Y.name.localeCompare(Re.name),e[1]=r,e[2]=y):y=e[2];const j=[...c??[]].sort(y);let _;e[3]!==d||e[4]!==r?(_=()=>{r&&d({to:"/$org/$project",params:{org:r,project:te}})},e[3]=d,e[4]=r,e[5]=_):_=e[5];const g=_;let x;e[6]!==d||e[7]!==r?(x=Y=>{r&&d({to:"/$org/$project",params:{org:r,project:Y}})},e[6]=d,e[7]=r,e[8]=x):x=e[8];const v=x;let C;e[9]!==d?(C=Y=>{d({to:"/$org/$project",params:{org:Y,project:te}})},e[9]=d,e[10]=C):C=e[10];const b=C;let N;e[11]!==n?(N=n?()=>n():void 0,e[11]=n,e[12]=N):N=e[12];const k=N;let $;e[13]!==d||e[14]!==r||e[15]!==a?($=()=>{if(!r||!a)return;const Y=a===te;d({to:"/$org/$project",params:{org:r,project:a},search:Re=>({...Re,settings:Y?"org.general":`project:${a}:general`})})},e[13]=d,e[14]=r,e[15]=a,e[16]=$):$=e[16];const z=$,M=ut,R=l?"w-auto pr-1.5":"w-full";let L;e[17]!==R?(L=P("flex items-center gap-3 rounded-md p-1.5 pr-2 text-left hover:bg-sidebar-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring min-h-[2.75rem]",R),e[17]=R,e[18]=L):L=e[18];const H=p?s.jsx("div",{className:P("shrink-0 rounded-md flex items-center justify-center border border-border/50 overflow-hidden transition-[width,height] duration-300 ease-[var(--ease-out-quart)]",l?"size-6":"size-8"),style:m?.logo?void 0:gi(m?.name??""),children:m?.logo?s.jsx("img",{src:m.logo,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:P("font-semibold leading-none",l?"text-[9px]":"text-xs"),children:(m?.name??"?").slice(0,2).toUpperCase()})}):s.jsx("div",{className:P("shrink-0 rounded-md flex items-center justify-center border border-border/50 overflow-hidden transition-[width,height] duration-300 ease-[var(--ease-out-quart)]",l?"size-6":"size-8"),style:h?.ui?.icon?void 0:{backgroundColor:h?.ui?.themeColor??"#60a5fa"},children:h?.ui?.icon?s.jsx("img",{src:h.ui.icon,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:P("font-semibold text-white",l?"text-xs":"text-lg"),children:(h?.name??a??"?").charAt(0).toUpperCase()})});let T;e[19]!==m?.name||e[20]!==h?.name||e[21]!==l||e[22]!==p||e[23]!==a?(T=!l&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex-1 min-w-0 flex flex-col justify-center",children:[s.jsx("span",{className:"block text-[11px] text-sidebar-foreground/50 leading-tight truncate",children:m?.name??"Select org"}),s.jsx("span",{className:"block text-sm font-semibold text-sidebar-foreground truncate leading-tight",children:p?"Studio":h?.name??a??""})]}),s.jsx(Ht,{size:16,className:"shrink-0 text-sidebar-foreground/40"})]}),e[19]=m?.name,e[20]=h?.name,e[21]=l,e[22]=p,e[23]=a,e[24]=T):T=e[24];let A;e[25]!==L||e[26]!==H||e[27]!==T?(A=s.jsx(pt,{asChild:!0,children:s.jsxs("button",{type:"button",className:L,children:[H,T]})}),e[25]=L,e[26]=H,e[27]=T,e[28]=A):A=e[28];const D=ft,E="start",U="bottom",B="w-64 flex flex-col gap-0.5",F=bi,se=p&&"bg-accent";let J;e[29]!==se?(J=P("gap-2.5",se),e[29]=se,e[30]=J):J=e[30];const ce=m?.logo??"",de=m?.name??"";let W;e[31]!==ce||e[32]!==de?(W=s.jsx(Ie,{url:ce,fallback:de,size:"sm",className:"size-6 rounded-md shrink-0",objectFit:"cover"}),e[31]=ce,e[32]=de,e[33]=W):W=e[33];const X=m?.name;let G;e[34]!==X?(G=s.jsxs("span",{className:"flex-1 truncate",children:["Studio · ",X]}),e[34]=X,e[35]=G):G=e[35];let fe;e[36]!==p?(fe=p&&s.jsx(Pe,{size:14,className:"ml-auto text-muted-foreground shrink-0"}),e[36]=p,e[37]=fe):fe=e[37];let V;e[38]!==g||e[39]!==J||e[40]!==W||e[41]!==G||e[42]!==fe?(V=s.jsxs(re,{className:J,onClick:g,children:[W,G,fe]}),e[38]=g,e[39]=J,e[40]=W,e[41]=G,e[42]=fe,e[43]=V):V=e[43];let ee;e[44]===Symbol.for("react.memo_cache_sentinel")?(ee=s.jsx("p",{className:"px-2 pt-2 pb-0.5 text-[11px] font-medium text-muted-foreground/50 uppercase tracking-wider",children:"Projects"}),e[44]=ee):ee=e[44];let q;e[45]!==m||e[46]!==v||e[47]!==r||e[48]!==a?(q=m&&s.jsx(I.Suspense,{fallback:s.jsx(pi,{}),children:s.jsx(xi,{organizationId:m.id,currentProjectSlug:a,orgSlug:r??"",onSelect:v})}),e[45]=m,e[46]=v,e[47]=r,e[48]=a,e[49]=q):q=e[49];let Q;e[50]!==k?(Q=k&&s.jsxs(re,{className:"gap-2.5",onClick:k,children:[s.jsx(Le,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Create project"})]}),e[50]=k,e[51]=Q):Q=e[51];let O;e[52]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsx(Ue,{}),e[52]=O):O=e[52];const Z=vs;let me;e[53]===Symbol.for("react.memo_cache_sentinel")?(me=s.jsxs(Ns,{className:"gap-2.5",children:[s.jsx(ys,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Switch organization"})]}),e[53]=me):me=e[53];const ie=js,je="w-48 flex flex-col gap-0.5";let ne;e[54]!==b||e[55]!==r?(ne=Y=>s.jsxs(re,{className:P("gap-2.5",Y.slug===r&&"bg-accent"),onClick:()=>b(Y.slug),children:[s.jsx(Ie,{url:Y.logo??"",fallback:Y.name,size:"xs",className:"size-5 rounded-md shrink-0",objectFit:"cover"}),s.jsx("span",{className:"flex-1 truncate",children:Y.name}),Y.slug===r&&s.jsx(Pe,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},Y.id),e[54]=b,e[55]=r,e[56]=ne):ne=e[56];const S=j.map(ne);let K;e[57]===Symbol.for("react.memo_cache_sentinel")?(K=s.jsx(Ue,{}),e[57]=K):K=e[57];let le;e[58]!==f?(le=()=>f(!0),e[58]=f,e[59]=le):le=e[59];let he,ye;e[60]===Symbol.for("react.memo_cache_sentinel")?(he=s.jsx(Le,{size:14,className:"shrink-0 text-muted-foreground"}),ye=s.jsx("span",{children:"Create organization"}),e[60]=he,e[61]=ye):(he=e[60],ye=e[61]);let ue;e[62]!==le?(ue=s.jsxs(re,{className:"gap-2.5",onClick:le,children:[he,ye]}),e[62]=le,e[63]=ue):ue=e[63];let pe;e[64]!==ie||e[65]!==S||e[66]!==ue?(pe=s.jsxs(ie,{className:je,children:[S,K,ue]}),e[64]=ie,e[65]=S,e[66]=ue,e[67]=pe):pe=e[67];let Se;e[68]!==Z||e[69]!==me||e[70]!==pe?(Se=s.jsxs(Z,{children:[me,pe]}),e[68]=Z,e[69]=me,e[70]=pe,e[71]=Se):Se=e[71];let Te,De;e[72]===Symbol.for("react.memo_cache_sentinel")?(Te=s.jsx(He,{size:14,className:"shrink-0 text-muted-foreground"}),De=s.jsx("span",{children:"Settings"}),e[72]=Te,e[73]=De):(Te=e[72],De=e[73]);let _e;e[74]!==z?(_e=s.jsxs(re,{className:"gap-2.5",onClick:z,children:[Te,De]}),e[74]=z,e[75]=_e):_e=e[75];let ke;e[76]!==D||e[77]!==F||e[78]!==V||e[79]!==ee||e[80]!==q||e[81]!==Q||e[82]!==O||e[83]!==Se||e[84]!==_e?(ke=s.jsxs(D,{align:E,side:U,className:B,onCloseAutoFocus:F,children:[V,ee,q,Q,O,Se,_e]}),e[76]=D,e[77]=F,e[78]=V,e[79]=ee,e[80]=q,e[81]=Q,e[82]=O,e[83]=Se,e[84]=_e,e[85]=ke):ke=e[85];let Ce;e[86]!==M||e[87]!==A||e[88]!==ke?(Ce=s.jsxs(M,{children:[A,ke]}),e[86]=M,e[87]=A,e[88]=ke,e[89]=Ce):Ce=e[89];let we;e[90]!==u||e[91]!==f?(we=s.jsx(Ss,{open:u,onOpenChange:f}),e[90]=u,e[91]=f,e[92]=we):we=e[92];let Me;return e[93]!==Ce||e[94]!==we?(Me=s.jsxs(s.Fragment,{children:[Ce,we]}),e[93]=Ce,e[94]=we,e[95]=Me):Me=e[95],Me}function bi(t){return t.preventDefault()}qe.Skeleton=function(){return s.jsxs("div",{className:"flex items-center gap-1.5 h-7 px-1.5 w-full",children:[s.jsx(ae,{className:"size-5 rounded-[5px] shrink-0 bg-sidebar-accent"}),s.jsx(ae,{className:"h-3.5 flex-1 bg-sidebar-accent"})]})};function Qe(t){const e=w.c(4),{onCreateProject:i}=t,{state:n,toggleSidebar:l}=Ke(),o=n==="collapsed";let r;return e[0]!==o||e[1]!==i||e[2]!==l?(r=s.jsx(vt,{className:"px-3 group-data-[collapsible=icon]:px-2 animate-in fade-in-0 duration-200",children:s.jsx(be,{children:s.jsx(xe,{children:o?s.jsxs("div",{className:"flex flex-col w-full gap-0.5",children:[s.jsx(qe,{isCollapsed:!0,onCreateProject:i}),s.jsx(Oe,{onClick:l,tooltip:"Expand sidebar",children:s.jsx(Ve,{})})]}):s.jsxs("div",{className:"flex items-center justify-between w-full gap-1",children:[s.jsx("div",{className:"min-w-0 flex-1",children:s.jsx(qe,{isCollapsed:!1,onCreateProject:i})}),s.jsx(Oe,{onClick:l,tooltip:"Collapse sidebar",className:"size-7 shrink-0",children:s.jsx(Ve,{})})]})})})}),e[0]=o,e[1]=i,e[2]=l,e[3]=r):r=e[3],r}Qe.Skeleton=function(){return s.jsx(vt,{className:"px-3",children:s.jsx(be,{children:s.jsx(xe,{children:s.jsxs("div",{className:"flex items-center justify-between w-full",children:[s.jsxs("div",{className:"flex items-center gap-3 min-w-0 flex-1 p-1.5",children:[s.jsx(ae,{className:"size-8 rounded-md shrink-0 bg-sidebar-accent"}),s.jsx(ae,{className:"h-3.5 w-16 bg-sidebar-accent"})]}),s.jsx("div",{className:"flex items-center gap-0.5",children:s.jsx(ae,{className:"size-7 rounded-lg bg-sidebar-accent"})})]})})})})};function ji(t){const e=w.c(50),{user:i,userImage:n}=t,{open:l}=at(),[o,r]=I.useState(!1);let a;e[0]!==i.email||e[1]!==i.id||e[2]!==i.name?(a=()=>{const F=`ID: ${i.id}
|
|
2
2
|
Name: ${i.name||"N/A"}
|
|
3
|
-
Email: ${i.email}`;navigator.clipboard.writeText(F),r(!0),ve.success("User info copied to clipboard"),setTimeout(()=>r(!1),2e3)},e[0]=i.email,e[1]=i.id,e[2]=i.name,e[3]=a):a=e[3];const c=a,d=i.name||i.email||"U";let m;e[4]!==d||e[5]!==n?(m=s.jsx(Ie,{url:n,fallback:d,shape:"circle",size:"2xs",className:"shrink-0 size-5"}),e[4]=d,e[5]=n,e[6]=m):m=e[6];const u=i.name||"User";let f;e[7]!==u?(f=s.jsx("div",{className:"flex-1 min-w-0 group-data-[collapsible=icon]:hidden",children:s.jsx("div",{className:"text-sm font-medium truncate text-sidebar-foreground leading-none",children:u})}),e[7]=u,e[8]=f):f=e[8];let p;e[9]!==m||e[10]!==f?(p=s.jsx(pt,{asChild:!0,children:s.jsxs("button",{className:"flex w-full h-8 items-center gap-2 rounded-md px-1 hover:bg-sidebar-accent transition-colors text-left min-w-0",children:[m,f]})}),e[9]=m,e[10]=f,e[11]=p):p=e[11];const h=i.name||i.email||"U";let y;e[12]!==h||e[13]!==n?(y=s.jsx(Ie,{url:n,fallback:h,shape:"circle",size:"sm",className:"shrink-0"}),e[12]=h,e[13]=n,e[14]=y):y=e[14];const j=i.name||"User";let _;e[15]!==j?(_=s.jsx("div",{className:"text-sm font-medium truncate",children:j}),e[15]=j,e[16]=_):_=e[16];let g;e[17]!==i.email?(g=s.jsx("div",{className:"text-xs text-muted-foreground truncate",children:i.email}),e[17]=i.email,e[18]=g):g=e[18];let x;e[19]!==_||e[20]!==g?(x=s.jsxs("div",{className:"flex-1 min-w-0",children:[_,g]}),e[19]=_,e[20]=g,e[21]=x):x=e[21];let v;e[22]!==o?(v=s.jsx("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity shrink-0",children:o?s.jsx(Pe,{size:14,className:"text-green-600"}):s.jsx(_s,{size:14,className:"text-muted-foreground"})}),e[22]=o,e[23]=v):v=e[23];let C;e[24]!==c||e[25]!==x||e[26]!==v||e[27]!==y?(C=s.jsxs(re,{onClick:c,className:"gap-2.5 group",children:[y,x,v]}),e[24]=c,e[25]=x,e[26]=v,e[27]=y,e[28]=C):C=e[28];let b;e[29]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(Ue,{}),e[29]=b):b=e[29];let N;e[30]!==l?(N=()=>l("account.preferences"),e[30]=l,e[31]=N):N=e[31];let k,$;e[32]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx(He,{size:14,className:"shrink-0 text-muted-foreground"}),$=s.jsx("span",{children:"Settings"}),e[32]=k,e[33]=$):(k=e[32],$=e[33]);let z;e[34]!==N?(z=s.jsxs(re,{className:"gap-2.5",onClick:N,children:[k,$]}),e[34]=N,e[35]=z):z=e[35];let M;e[36]===Symbol.for("react.memo_cache_sentinel")?(M=s.jsx(re,{asChild:!0,children:s.jsxs("a",{href:"https://www.decocms.com/terms-of-use",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(ks,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Terms of Use"}),s.jsx($e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[36]=M):M=e[36];let R;e[37]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx(re,{asChild:!0,children:s.jsxs("a",{href:"https://www.decocms.com/privacy-policy",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(ws,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Privacy Policy"}),s.jsx($e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[37]=R):R=e[37];let L;e[38]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx(re,{asChild:!0,children:s.jsxs("a",{href:"https://github.com/decocms/mesh",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(zt,{className:"w-3.5 h-3.5 shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"decocms/mesh"}),s.jsx($e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[38]=L):L=e[38];let H;e[39]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(re,{asChild:!0,children:s.jsxs("a",{href:"https://decocms.com/discord",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(et,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Community"}),s.jsx($e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[39]=H):H=e[39];let T,A;e[40]===Symbol.for("react.memo_cache_sentinel")?(T=s.jsx(re,{asChild:!0,children:s.jsxs("a",{href:"https://decocms.com",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(Cs,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Homepage"}),s.jsx($e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),A=s.jsx(Ue,{}),e[40]=T,e[41]=A):(T=e[40],A=e[41]);let D;e[42]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsxs(re,{className:"gap-2.5",onClick:vi,children:[s.jsx(bt,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Sign out"})]}),e[42]=D):D=e[42];let E;e[43]===Symbol.for("react.memo_cache_sentinel")?(E=s.jsx("div",{className:"px-2 py-1.5",children:s.jsxs("span",{className:"text-xs text-muted-foreground/60",children:["v","2.176.0"]})}),e[43]=E):E=e[43];let U;e[44]!==C||e[45]!==z?(U=s.jsxs(ft,{side:"top",align:"end",collisionPadding:8,className:"w-64 flex flex-col gap-0.5",onCloseAutoFocus:Ni,children:[C,b,z,M,R,L,H,T,A,D,E]}),e[44]=C,e[45]=z,e[46]=U):U=e[46];let B;return e[47]!==U||e[48]!==p?(B=s.jsxs(ut,{children:[p,U]}),e[47]=U,e[48]=p,e[49]=B):B=e[49],B}function vi(){return Ne.signOut()}function Ni(t){return t.preventDefault()}function St(){const t=w.c(7),{data:e}=Ne.useSession();if(!e?.user){let c;return t[0]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(Ie,{url:void 0,fallback:"U",shape:"circle",size:"sm",className:"cursor-pointer h-7 w-7",muted:!0}),t[0]=c):c=t[0],c}const i=e.user,n=i.name??void 0;let l;t[1]!==n||t[2]!==i?(l={...i,name:n},t[1]=n,t[2]=i,t[3]=l):l=t[3];const o=l,r=i.image;let a;return t[4]!==r||t[5]!==o?(a=s.jsx(ji,{user:o,userImage:r}),t[4]=r,t[5]=o,t[6]=a):a=t[6],a}function yi({invitation:t}){const[e,i]=I.useState(!1),[n,l]=I.useState(!1),o=Pt(),r=async()=>{i(!0);try{const c=await Ne.organization.acceptInvitation({invitationId:t.id});if(c.error)ve.error(c.error.message),i(!1);else{const d=await Ne.organization.setActive({organizationId:t.organizationId});ve.success("Invitation accepted!");const m=d?.data?.slug;window.location.href=m?`/${m}`:"/"}}catch{ve.error("Failed to accept invitation"),i(!1)}},a=async()=>{l(!0);try{const c=await Ne.organization.rejectInvitation({invitationId:t.id});c.error?(ve.error(c.error.message),l(!1)):(ve.success("Invitation declined"),o.invalidateQueries())}catch{ve.error("Failed to decline invitation"),l(!1)}};return s.jsxs("div",{className:"flex items-center gap-3 px-5 py-4 border-b border-border last:border-0 hover:bg-muted/25 transition-colors",children:[s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("p",{className:"text-xs text-muted-foreground",children:"You've been invited to join"}),s.jsx("p",{className:"text-sm font-medium truncate",children:t.organizationName??"Unknown organization"})]}),s.jsxs("div",{className:"flex items-center gap-1 shrink-0",children:[s.jsx(Ge,{size:"icon",variant:"ghost",className:"size-7 text-green-600 hover:text-green-700 hover:bg-green-50 dark:hover:bg-green-950",onClick:r,disabled:e||n,"aria-label":"Accept invitation",children:s.jsx(Pe,{size:14})}),s.jsx(Ge,{size:"icon",variant:"ghost",className:"size-7 text-muted-foreground hover:text-destructive hover:bg-destructive/10",onClick:a,disabled:e||n,"aria-label":"Decline invitation",children:s.jsx(Ps,{size:14})})]})]})}function Si(){const t=I.useContext(It),{data:e}=t.hooks.useListUserInvitations();return(e??[]).filter(n=>n.status==="pending"&&new Date(n.expiresAt)>new Date)}class _i extends I.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,i){}render(){return this.state.hasError?null:this.props.children}}function ki(t){return t<=1?"text-destructive":t<=5?"text-amber-500 dark:text-amber-400":"text-foreground/70"}function Ci(){const t=w.c(15),{open:e}=at(),{org:i}=ze();let n;t[0]!==i.id?(n={connectionId:Kt,orgId:i.id},t[0]=i.id,t[1]=n):n=t[1];const l=Wt(n);let o;t[2]===Symbol.for("react.memo_cache_sentinel")?(o={providerId:"deco"},t[2]=o):o=t[2];let r;t[3]!==l?(r={client:l,toolName:"AI_PROVIDER_CREDITS",toolArguments:o,staleTime:6e4,select:wi},t[3]=l,t[4]=r):r=t[4];const{data:a,isPending:c,isError:d}=As(r),m=a?.balanceCents!=null?a.balanceCents/100:null;let u;t[5]!==e?(u=()=>e("org.billing"),t[5]=e,t[6]=u):u=t[6];let f;t[7]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx(gt,{size:13,className:"text-muted-foreground/60 shrink-0"}),s.jsx("span",{className:"text-xs text-muted-foreground",children:"Credits"})]}),t[7]=f):f=t[7];let p;t[8]!==m||t[9]!==d||t[10]!==c?(p=c||d||m==null?s.jsx("span",{className:"text-xs font-medium tabular-nums text-muted-foreground/40",children:"—"}):s.jsxs("span",{className:P("text-xs font-medium tabular-nums",ki(m)),children:["$",m.toFixed(2)]}),t[8]=m,t[9]=d,t[10]=c,t[11]=p):p=t[11];let h;return t[12]!==u||t[13]!==p?(h=s.jsxs("button",{type:"button",onClick:u,className:"group-data-[collapsible=icon]:hidden flex items-center justify-between w-full px-2 py-1.5 rounded-md hover:bg-sidebar-accent transition-colors",children:[f,p]}),t[12]=u,t[13]=p,t[14]=h):h=t[14],h}function wi(t){return t.structuredContent}function $i(){const t=w.c(1);if(!Zt().some(zi))return null;let n;return t[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(Ci,{}),t[0]=n):n=t[0],n}function zi(t){return t.providerId==="deco"}function Ii(){const t=w.c(13),e=Si();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(_i,{children:s.jsx(I.Suspense,{fallback:null,children:s.jsx($i,{})})}),t[0]=i):i=t[0];let n;t[1]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx("div",{className:"flex-1 min-w-0",children:s.jsx(St,{})}),t[1]=n):n=t[1];let l;t[2]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(zs,{asChild:!0,children:s.jsx(Ge,{variant:"ghost",size:"icon",className:"size-8 text-sidebar-foreground/50 hover:text-sidebar-foreground hover:bg-sidebar-accent","aria-label":"Open inbox",children:s.jsx(st,{size:16})})}),t[2]=l):l=t[2];let o;t[3]!==e.length?(o=e.length>0&&s.jsx("span",{className:"absolute top-1 right-1 size-2 rounded-full bg-red-500 ring-2 ring-sidebar pointer-events-none"}),t[3]=e.length,t[4]=o):o=t[4];let r;t[5]!==o?(r=s.jsxs("div",{className:"relative",children:[l,o]}),t[5]=o,t[6]=r):r=t[6];let a;t[7]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx("div",{className:"px-4 py-3 border-b border-border shrink-0",children:s.jsx("h3",{className:"text-sm font-medium",children:"Inbox"})}),t[7]=a):a=t[7];let c;t[8]!==e?(c=s.jsxs($s,{side:"right",align:"end",sideOffset:24,className:"w-[400px] p-0 h-[650px] flex flex-col",children:[a,e.length===0?s.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center gap-2 px-6 text-center",children:[s.jsx(st,{size:24,className:"text-muted-foreground/50"}),s.jsx("p",{className:"text-sm font-medium text-foreground",children:"No messages or invites pending"}),s.jsx("p",{className:"text-xs text-muted-foreground",children:"Messages, workspace and project invitations will appear here"})]}):s.jsx("div",{className:"overflow-y-auto flex-1",children:e.map(Pi)})]}),t[8]=e,t[9]=c):c=t[9];let d;return t[10]!==r||t[11]!==c?(d=s.jsxs(li,{className:"px-3.5 pb-3 group-data-[collapsible=icon]:px-2",children:[i,s.jsx(be,{children:s.jsx(xe,{children:s.jsxs("div",{className:"flex items-center w-full gap-1",children:[n,s.jsx("div",{className:"group-data-[collapsible=icon]:hidden",children:s.jsxs(Is,{children:[r,c]})})]})})})]}),t[10]=r,t[11]=c,t[12]=d):d=t[12],d}function Pi(t){return s.jsx(yi,{invitation:t},t.id)}function Ai(t){const e=w.c(11),{project:i}=t,n=i.ui?.themeColor??"#60a5fa";if(i.ui?.icon){let c;return e[0]!==i.ui.icon?(c=s.jsx("img",{src:i.ui.icon,alt:"",className:"size-4 rounded object-cover border border-border/50"}),e[0]=i.ui.icon,e[1]=c):c=e[1],c}let l;e[2]!==n?(l={backgroundColor:n},e[2]=n,e[3]=l):l=e[3];let o;e[4]!==i.name?(o=i.name.charAt(0).toUpperCase(),e[4]=i.name,e[5]=o):o=e[5];let r;e[6]!==o?(r=s.jsx("span",{className:"text-[10px] font-medium text-white",children:o}),e[6]=o,e[7]=r):r=e[7];let a;return e[8]!==l||e[9]!==r?(a=s.jsx("div",{className:"size-4 rounded flex items-center justify-center border border-border/50",style:l,children:r}),e[8]=l,e[9]=r,e[10]=a):a=e[10],a}function Ei(t){const e=w.c(14),{project:i}=t,n=Xe(),{org:l}=ze();let o;e[0]!==n||e[1]!==l.slug||e[2]!==i.slug?(o=()=>{n({to:"/$org/$project",params:{org:l.slug,project:i.slug}})},e[0]=n,e[1]=l.slug,e[2]=i.slug,e[3]=o):o=e[3];let r;e[4]!==i?(r=s.jsx(Ai,{project:i}),e[4]=i,e[5]=r):r=e[5];let a;e[6]!==i.name?(a=s.jsx("span",{className:"truncate flex-1 group-data-[collapsible=icon]:hidden",children:i.name}),e[6]=i.name,e[7]=a):a=e[7];let c;e[8]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(Ds,{size:12,className:"text-muted-foreground opacity-0 group-hover/item:opacity-100 transition-opacity group-data-[collapsible=icon]:hidden"}),e[8]=c):c=e[8];let d;return e[9]!==i.name||e[10]!==o||e[11]!==r||e[12]!==a?(d=s.jsx(xe,{children:s.jsxs(Oe,{onClick:o,tooltip:i.name,children:[r,a,c]})}),e[9]=i.name,e[10]=o,e[11]=r,e[12]=a,e[13]=d):d=e[13],d}function Oi(){const t=w.c(55),{org:e}=ze(),{data:i,isLoading:n}=dt(e.id),[l,o]=I.useState(!0),[r,a]=I.useState(!1);let c,d,m,u,f,p,h,y,j,_,g,x,v;if(t[0]!==n||t[1]!==l||t[2]!==i){v=Symbol.for("react.early_return_sentinel");e:{const L=i?.filter(Di)??[];if(n){let B;t[16]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx(xe,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(ae,{className:"h-4 w-4 rounded"}),s.jsx(ae,{className:"h-4 flex-1"})]})}),t[16]=B):B=t[16];let F;t[17]===Symbol.for("react.memo_cache_sentinel")?(F=s.jsx(Ae,{className:"py-0 px-0",children:s.jsx(Ee,{children:s.jsxs(be,{className:"gap-0.5",children:[B,s.jsx(xe,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(ae,{className:"h-4 w-4 rounded"}),s.jsx(ae,{className:"h-4 flex-1"})]})})]})})}),t[17]=F):F=t[17],v=F;break e}x="group/projects-section mt-2",f=Es,_=l,g=o,u=Ae,j="py-0 px-0",m=Ee,d=be,h="gap-0.5";let H;t[18]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Projects"}),t[18]=H):H=t[18];const T=!l&&"-rotate-90";let A;t[19]!==T?(A=P("text-muted-foreground shrink-0 transition-transform duration-200",T),t[19]=T,t[20]=A):A=t[20];let D;t[21]!==A?(D=s.jsx(Os,{asChild:!0,children:s.jsxs("button",{type:"button",className:"flex flex-1 items-center gap-1 cursor-pointer min-w-0",children:[H,s.jsx(mt,{size:12,className:A})]})}),t[21]=A,t[22]=D):D=t[22];let E;t[23]===Symbol.for("react.memo_cache_sentinel")?(E=()=>a(!0),t[23]=E):E=t[23];let U;t[24]===Symbol.for("react.memo_cache_sentinel")?(U=s.jsx("button",{type:"button",onClick:E,title:"Create new project",className:"opacity-0 group-hover/projects-section:opacity-100 transition-opacity text-muted-foreground hover:text-foreground flex items-center justify-center h-4 rounded shrink-0",children:s.jsx(Le,{size:16})}),t[24]=U):U=t[24],t[25]!==D?(y=s.jsx(xe,{className:"group-data-[collapsible=icon]:hidden",children:s.jsxs("div",{className:"flex h-6 w-full items-center gap-1 rounded-md pl-1.5 pr-0.5 hover:bg-sidebar-accent transition-colors",children:[D,U]})}),t[25]=D,t[26]=y):y=t[26],c=Ts,p=L.length===0?s.jsx(xe,{children:s.jsx("div",{className:"px-2 py-2 text-xs text-muted-foreground",children:"No projects yet"})}):L.map(Ti)}t[0]=n,t[1]=l,t[2]=i,t[3]=c,t[4]=d,t[5]=m,t[6]=u,t[7]=f,t[8]=p,t[9]=h,t[10]=y,t[11]=j,t[12]=_,t[13]=g,t[14]=x,t[15]=v}else c=t[3],d=t[4],m=t[5],u=t[6],f=t[7],p=t[8],h=t[9],y=t[10],j=t[11],_=t[12],g=t[13],x=t[14],v=t[15];if(v!==Symbol.for("react.early_return_sentinel"))return v;let C;t[27]!==c||t[28]!==p?(C=s.jsx(c,{children:p}),t[27]=c,t[28]=p,t[29]=C):C=t[29];let b;t[30]!==d||t[31]!==h||t[32]!==y||t[33]!==C?(b=s.jsxs(d,{className:h,children:[y,C]}),t[30]=d,t[31]=h,t[32]=y,t[33]=C,t[34]=b):b=t[34];let N;t[35]!==m||t[36]!==b?(N=s.jsx(m,{children:b}),t[35]=m,t[36]=b,t[37]=N):N=t[37];let k;t[38]!==u||t[39]!==N||t[40]!==j?(k=s.jsx(u,{className:j,children:N}),t[38]=u,t[39]=N,t[40]=j,t[41]=k):k=t[41];let $;t[42]!==f||t[43]!==k||t[44]!==_||t[45]!==g?($=s.jsx(f,{open:_,onOpenChange:g,children:k}),t[42]=f,t[43]=k,t[44]=_,t[45]=g,t[46]=$):$=t[46];let z;t[47]!==$||t[48]!==x?(z=s.jsx("div",{className:x,children:$}),t[47]=$,t[48]=x,t[49]=z):z=t[49];let M;t[50]!==r?(M=s.jsx(rt,{open:r,onOpenChange:a}),t[50]=r,t[51]=M):M=t[51];let R;return t[52]!==z||t[53]!==M?(R=s.jsxs(s.Fragment,{children:[z,M]}),t[52]=z,t[53]=M,t[54]=R):R=t[54],R}function Ti(t){return s.jsx(Ei,{project:t},t.id)}function Di(t){return t.slug!==te}function Mi(){const t=w.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(I.Suspense,{fallback:s.jsx(Ae,{className:"py-0 px-0",children:s.jsx(Ee,{children:s.jsx(be,{className:"gap-0.5",children:s.jsx(xe,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(ae,{className:"h-4 w-4 rounded"}),s.jsx(ae,{className:"h-4 flex-1"})]})})})})}),children:s.jsx(Oi,{})}),t[0]=e):e=t[0],e}function Ri(t){const e=w.c(12),{onCreateProject:i}=t,n=Gs(),{locator:l}=ze();let o;e[0]!==l?(o=We.isOrgAdminProject(l),e[0]=l,e[1]=o):o=e[1];const r=o;let a;e[2]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(Qe.Skeleton,{}),e[2]=a):a=e[2];let c;e[3]!==i?(c=s.jsx(I.Suspense,{fallback:a,children:s.jsx(Qe,{onCreateProject:i})}),e[3]=i,e[4]=c):c=e[4];let d;e[5]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(Ii,{}),e[5]=d):d=e[5];let m;e[6]!==r?(m=r?s.jsx(Ye,{children:s.jsx(I.Suspense,{fallback:null,children:s.jsx(Mi,{})})}):null,e[6]=r,e[7]=m):m=e[7];let u;return e[8]!==n||e[9]!==c||e[10]!==m?(u=s.jsx(yt,{sections:n,header:c,footer:d,additionalContent:m}),e[8]=n,e[9]=c,e[10]=m,e[11]=u):u=e[11],u}function Li(){const t=w.c(5),i=Ze().location.href;let n;t[0]!==i?(n=i==="/login"||i.startsWith("/login?"),t[0]=i,t[1]=n):n=t[1];const l=n;let o;if(t[2]!==i||t[3]!==l){const r=l?{}:{next:i};o=s.jsx(Tt,{to:"/login",search:r,replace:!0}),t[2]=i,t[3]=l,t[4]=o}else o=t[4];return o}function Hi(t){const e=w.c(6),{children:i}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(At,{children:s.jsx(nt,{})}),e[0]=n):n=e[0];let l;e[1]!==i?(l=s.jsx(Et,{children:i}),e[1]=i,e[2]=l):l=e[2];let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(Ot,{children:s.jsx(Li,{})}),e[3]=o):o=e[3];let r;return e[4]!==l?(r=s.jsxs(s.Fragment,{children:[n,l,o]}),e[4]=l,e[5]=r):r=e[5],r}function Ui(t){const e=w.c(10),{children:i,className:n}=t,[,l]=I.useTransition();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=Fe.decoChatPanelWidth(),e[0]=o):o=e[0];const[r,a]=Je(o,30);let c;e[1]!==a?(c=f=>l(()=>a(f)),e[1]=a,e[2]=c):c=e[2];const d=c;let m;e[3]!==n?(m=P("min-w-0",n),e[3]=n,e[4]=m):m=e[4];let u;return e[5]!==r||e[6]!==i||e[7]!==d||e[8]!==m?(u=s.jsx(xt,{defaultSize:r,minSize:20,className:m,onResize:d,children:i}),e[5]=r,e[6]=i,e[7]=d,e[8]=m,e[9]=u):u=e[9],u}function Bi(t){const e=w.c(5),{children:i}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=Fe.sidebarOpen(),e[0]=n):n=e[0];const[l,o]=Je(n,!0);let r;return e[1]!==i||e[2]!==o||e[3]!==l?(r=s.jsx(Js,{open:l,onOpenChange:o,children:i}),e[1]=i,e[2]=o,e[3]=l,e[4]=r):r=e[4],r}function Fi(t){const e=w.c(23),{isHomeRoute:i,onCreateProject:n}=t,[l]=ot();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=Fe.decoChatPanelWidth(),e[0]=o):o=e[0];const[r]=Je(o,30),a=`${r}cqi`;let c;e[1]!==a?(c={"--sidebar-width":"13.5rem","--sidebar-width-mobile":"11rem","--chat-panel-w":a},e[1]=a,e[2]=c):c=e[2];const d=c;let m;e[3]!==n?(m=s.jsx(Ri,{onCreateProject:n}),e[3]=n,e[4]=m):m=e[4];let u;e[5]===Symbol.for("react.memo_cache_sentinel")?(u={background:"transparent",containerType:"inline-size"},e[5]=u):u=e[5];let f;e[6]===Symbol.for("react.memo_cache_sentinel")?(f={overflow:"visible"},e[6]=f):f=e[6];let p;e[7]===Symbol.for("react.memo_cache_sentinel")?(p={overflow:"visible"},e[7]=p):p=e[7];const h=l&&"rounded-tr-[0.75rem] border-r";let y;e[8]!==h?(y=P("flex flex-col flex-1 min-h-0 bg-card overflow-hidden","border-t border-l border-sidebar-border","rounded-tl-[0.75rem]","transition-[border-radius] duration-200 ease-[var(--ease-out-quart)]",h),e[8]=h,e[9]=y):y=e[9];let j;e[10]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx("div",{className:"flex-1 overflow-hidden",children:s.jsx(lt,{})}),e[10]=j):j=e[10];let _;e[11]!==y?(_=s.jsx(xt,{className:"min-w-0 flex flex-col",style:p,children:s.jsx("div",{className:y,children:j})}),e[11]=y,e[12]=_):_=e[12];let g;e[13]!==l||e[14]!==i?(g=!i&&s.jsxs(s.Fragment,{children:[s.jsx(Ms,{className:"bg-sidebar"}),s.jsx(Ui,{className:P("transition-[max-width] duration-200 ease-[var(--ease-out-quart)] overflow-hidden",l?"max-w-[var(--chat-panel-w)] bg-sidebar":"max-w-0"),children:s.jsx("div",{className:"h-full min-w-[var(--chat-panel-w)] pl-1.5 pr-1.5 pb-1.5",children:s.jsx("div",{className:"h-full bg-background rounded-[0.75rem] overflow-hidden border border-sidebar-border shadow-sm",children:s.jsx(Us,{})})})})]}),e[13]=l,e[14]=i,e[15]=g):g=e[15];let x;e[16]!==_||e[17]!==g?(x=s.jsx(ni,{className:"pt-1.5",style:u,children:s.jsxs(Rs,{direction:"horizontal",className:"h-full",style:f,children:[_,g]})}),e[16]=_,e[17]=g,e[18]=x):x=e[18];let v;return e[19]!==x||e[20]!==d||e[21]!==m?(v=s.jsxs(si,{className:"flex-1 bg-sidebar",style:d,children:[m,x]}),e[19]=x,e[20]=d,e[21]=m,e[22]=v):v=e[22],v}function Ki(){const{org:t,project:e}=it({strict:!1}),i=Ze(),[n,l]=I.useState(!1),[o,r]=I.useState(!1);I.useEffect(()=>{const u=f=>{Ut(f)&&f.code==="KeyK"&&(f.preventDefault(),r(!0))};return document.addEventListener("keydown",u),()=>document.removeEventListener("keydown",u)},[]);const a=i.location.pathname===`/${t}/${e}`||i.location.pathname===`/${t}/${e}/`,c=e??te,{data:d}=Dt({queryKey:Mt.activeOrganization(t),queryFn:async()=>{if(!t)return null;const{data:u}=await Ne.organization.setActive({organizationSlug:t});return u&&localStorage.setItem(Fe.lastOrgSlug(),t),{org:u,project:{slug:c,isOrgAdmin:c===te}}},gcTime:1/0,refetchOnWindowFocus:!1});if(!d)return s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsx("header",{className:"h-12 flex items-center justify-end px-4 border-b border-border",children:s.jsx("div",{className:"w-fit",children:s.jsx(St,{})})}),s.jsx(lt,{})]});if(!d.org)return window.location.pathname!=="/"&&(window.location.href="/"),null;const m={...d,project:{...d.project,slug:c,isOrgAdmin:c===te}};return s.jsxs(Rt,{...m,children:[s.jsx(Bi,{children:s.jsx("div",{className:"flex flex-col h-screen overflow-hidden",children:s.jsx(oe.Provider,{children:s.jsx(Fi,{isHomeRoute:a,onCreateProject:()=>l(!0)})})})}),s.jsx(rt,{open:n,onOpenChange:l}),s.jsx(Bs,{open:o,onOpenChange:r})]})}function Ul(){const t=w.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Hi,{children:s.jsx(I.Suspense,{fallback:s.jsx(nt,{}),children:s.jsx(Ki,{})})}),t[0]=e):e=t[0],e}export{Ul as default};
|
|
3
|
+
Email: ${i.email}`;navigator.clipboard.writeText(F),r(!0),ve.success("User info copied to clipboard"),setTimeout(()=>r(!1),2e3)},e[0]=i.email,e[1]=i.id,e[2]=i.name,e[3]=a):a=e[3];const c=a,d=i.name||i.email||"U";let m;e[4]!==d||e[5]!==n?(m=s.jsx(Ie,{url:n,fallback:d,shape:"circle",size:"2xs",className:"shrink-0 size-5"}),e[4]=d,e[5]=n,e[6]=m):m=e[6];const u=i.name||"User";let f;e[7]!==u?(f=s.jsx("div",{className:"flex-1 min-w-0 group-data-[collapsible=icon]:hidden",children:s.jsx("div",{className:"text-sm font-medium truncate text-sidebar-foreground leading-none",children:u})}),e[7]=u,e[8]=f):f=e[8];let p;e[9]!==m||e[10]!==f?(p=s.jsx(pt,{asChild:!0,children:s.jsxs("button",{className:"flex w-full h-8 items-center gap-2 rounded-md px-1 hover:bg-sidebar-accent transition-colors text-left min-w-0",children:[m,f]})}),e[9]=m,e[10]=f,e[11]=p):p=e[11];const h=i.name||i.email||"U";let y;e[12]!==h||e[13]!==n?(y=s.jsx(Ie,{url:n,fallback:h,shape:"circle",size:"sm",className:"shrink-0"}),e[12]=h,e[13]=n,e[14]=y):y=e[14];const j=i.name||"User";let _;e[15]!==j?(_=s.jsx("div",{className:"text-sm font-medium truncate",children:j}),e[15]=j,e[16]=_):_=e[16];let g;e[17]!==i.email?(g=s.jsx("div",{className:"text-xs text-muted-foreground truncate",children:i.email}),e[17]=i.email,e[18]=g):g=e[18];let x;e[19]!==_||e[20]!==g?(x=s.jsxs("div",{className:"flex-1 min-w-0",children:[_,g]}),e[19]=_,e[20]=g,e[21]=x):x=e[21];let v;e[22]!==o?(v=s.jsx("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity shrink-0",children:o?s.jsx(Pe,{size:14,className:"text-green-600"}):s.jsx(_s,{size:14,className:"text-muted-foreground"})}),e[22]=o,e[23]=v):v=e[23];let C;e[24]!==c||e[25]!==x||e[26]!==v||e[27]!==y?(C=s.jsxs(re,{onClick:c,className:"gap-2.5 group",children:[y,x,v]}),e[24]=c,e[25]=x,e[26]=v,e[27]=y,e[28]=C):C=e[28];let b;e[29]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(Ue,{}),e[29]=b):b=e[29];let N;e[30]!==l?(N=()=>l("account.preferences"),e[30]=l,e[31]=N):N=e[31];let k,$;e[32]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx(He,{size:14,className:"shrink-0 text-muted-foreground"}),$=s.jsx("span",{children:"Settings"}),e[32]=k,e[33]=$):(k=e[32],$=e[33]);let z;e[34]!==N?(z=s.jsxs(re,{className:"gap-2.5",onClick:N,children:[k,$]}),e[34]=N,e[35]=z):z=e[35];let M;e[36]===Symbol.for("react.memo_cache_sentinel")?(M=s.jsx(re,{asChild:!0,children:s.jsxs("a",{href:"https://www.decocms.com/terms-of-use",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(ks,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Terms of Use"}),s.jsx($e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[36]=M):M=e[36];let R;e[37]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx(re,{asChild:!0,children:s.jsxs("a",{href:"https://www.decocms.com/privacy-policy",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(ws,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Privacy Policy"}),s.jsx($e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[37]=R):R=e[37];let L;e[38]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx(re,{asChild:!0,children:s.jsxs("a",{href:"https://github.com/decocms/mesh",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(zt,{className:"w-3.5 h-3.5 shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"decocms/mesh"}),s.jsx($e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[38]=L):L=e[38];let H;e[39]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(re,{asChild:!0,children:s.jsxs("a",{href:"https://decocms.com/discord",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(et,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Community"}),s.jsx($e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[39]=H):H=e[39];let T,A;e[40]===Symbol.for("react.memo_cache_sentinel")?(T=s.jsx(re,{asChild:!0,children:s.jsxs("a",{href:"https://decocms.com",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(Cs,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Homepage"}),s.jsx($e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),A=s.jsx(Ue,{}),e[40]=T,e[41]=A):(T=e[40],A=e[41]);let D;e[42]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsxs(re,{className:"gap-2.5",onClick:vi,children:[s.jsx(bt,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Sign out"})]}),e[42]=D):D=e[42];let E;e[43]===Symbol.for("react.memo_cache_sentinel")?(E=s.jsx("div",{className:"px-2 py-1.5",children:s.jsxs("span",{className:"text-xs text-muted-foreground/60",children:["v","2.176.2"]})}),e[43]=E):E=e[43];let U;e[44]!==C||e[45]!==z?(U=s.jsxs(ft,{side:"top",align:"end",collisionPadding:8,className:"w-64 flex flex-col gap-0.5",onCloseAutoFocus:Ni,children:[C,b,z,M,R,L,H,T,A,D,E]}),e[44]=C,e[45]=z,e[46]=U):U=e[46];let B;return e[47]!==U||e[48]!==p?(B=s.jsxs(ut,{children:[p,U]}),e[47]=U,e[48]=p,e[49]=B):B=e[49],B}function vi(){return Ne.signOut()}function Ni(t){return t.preventDefault()}function St(){const t=w.c(7),{data:e}=Ne.useSession();if(!e?.user){let c;return t[0]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(Ie,{url:void 0,fallback:"U",shape:"circle",size:"sm",className:"cursor-pointer h-7 w-7",muted:!0}),t[0]=c):c=t[0],c}const i=e.user,n=i.name??void 0;let l;t[1]!==n||t[2]!==i?(l={...i,name:n},t[1]=n,t[2]=i,t[3]=l):l=t[3];const o=l,r=i.image;let a;return t[4]!==r||t[5]!==o?(a=s.jsx(ji,{user:o,userImage:r}),t[4]=r,t[5]=o,t[6]=a):a=t[6],a}function yi({invitation:t}){const[e,i]=I.useState(!1),[n,l]=I.useState(!1),o=Pt(),r=async()=>{i(!0);try{const c=await Ne.organization.acceptInvitation({invitationId:t.id});if(c.error)ve.error(c.error.message),i(!1);else{const d=await Ne.organization.setActive({organizationId:t.organizationId});ve.success("Invitation accepted!");const m=d?.data?.slug;window.location.href=m?`/${m}`:"/"}}catch{ve.error("Failed to accept invitation"),i(!1)}},a=async()=>{l(!0);try{const c=await Ne.organization.rejectInvitation({invitationId:t.id});c.error?(ve.error(c.error.message),l(!1)):(ve.success("Invitation declined"),o.invalidateQueries())}catch{ve.error("Failed to decline invitation"),l(!1)}};return s.jsxs("div",{className:"flex items-center gap-3 px-5 py-4 border-b border-border last:border-0 hover:bg-muted/25 transition-colors",children:[s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("p",{className:"text-xs text-muted-foreground",children:"You've been invited to join"}),s.jsx("p",{className:"text-sm font-medium truncate",children:t.organizationName??"Unknown organization"})]}),s.jsxs("div",{className:"flex items-center gap-1 shrink-0",children:[s.jsx(Ge,{size:"icon",variant:"ghost",className:"size-7 text-green-600 hover:text-green-700 hover:bg-green-50 dark:hover:bg-green-950",onClick:r,disabled:e||n,"aria-label":"Accept invitation",children:s.jsx(Pe,{size:14})}),s.jsx(Ge,{size:"icon",variant:"ghost",className:"size-7 text-muted-foreground hover:text-destructive hover:bg-destructive/10",onClick:a,disabled:e||n,"aria-label":"Decline invitation",children:s.jsx(Ps,{size:14})})]})]})}function Si(){const t=I.useContext(It),{data:e}=t.hooks.useListUserInvitations();return(e??[]).filter(n=>n.status==="pending"&&new Date(n.expiresAt)>new Date)}class _i extends I.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,i){}render(){return this.state.hasError?null:this.props.children}}function ki(t){return t<=1?"text-destructive":t<=5?"text-amber-500 dark:text-amber-400":"text-foreground/70"}function Ci(){const t=w.c(15),{open:e}=at(),{org:i}=ze();let n;t[0]!==i.id?(n={connectionId:Kt,orgId:i.id},t[0]=i.id,t[1]=n):n=t[1];const l=Wt(n);let o;t[2]===Symbol.for("react.memo_cache_sentinel")?(o={providerId:"deco"},t[2]=o):o=t[2];let r;t[3]!==l?(r={client:l,toolName:"AI_PROVIDER_CREDITS",toolArguments:o,staleTime:6e4,select:wi},t[3]=l,t[4]=r):r=t[4];const{data:a,isPending:c,isError:d}=As(r),m=a?.balanceCents!=null?a.balanceCents/100:null;let u;t[5]!==e?(u=()=>e("org.billing"),t[5]=e,t[6]=u):u=t[6];let f;t[7]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx(gt,{size:13,className:"text-muted-foreground/60 shrink-0"}),s.jsx("span",{className:"text-xs text-muted-foreground",children:"Credits"})]}),t[7]=f):f=t[7];let p;t[8]!==m||t[9]!==d||t[10]!==c?(p=c||d||m==null?s.jsx("span",{className:"text-xs font-medium tabular-nums text-muted-foreground/40",children:"—"}):s.jsxs("span",{className:P("text-xs font-medium tabular-nums",ki(m)),children:["$",m.toFixed(2)]}),t[8]=m,t[9]=d,t[10]=c,t[11]=p):p=t[11];let h;return t[12]!==u||t[13]!==p?(h=s.jsxs("button",{type:"button",onClick:u,className:"group-data-[collapsible=icon]:hidden flex items-center justify-between w-full px-2 py-1.5 rounded-md hover:bg-sidebar-accent transition-colors",children:[f,p]}),t[12]=u,t[13]=p,t[14]=h):h=t[14],h}function wi(t){return t.structuredContent}function $i(){const t=w.c(1);if(!Zt().some(zi))return null;let n;return t[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(Ci,{}),t[0]=n):n=t[0],n}function zi(t){return t.providerId==="deco"}function Ii(){const t=w.c(13),e=Si();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(_i,{children:s.jsx(I.Suspense,{fallback:null,children:s.jsx($i,{})})}),t[0]=i):i=t[0];let n;t[1]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx("div",{className:"flex-1 min-w-0",children:s.jsx(St,{})}),t[1]=n):n=t[1];let l;t[2]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(zs,{asChild:!0,children:s.jsx(Ge,{variant:"ghost",size:"icon",className:"size-8 text-sidebar-foreground/50 hover:text-sidebar-foreground hover:bg-sidebar-accent","aria-label":"Open inbox",children:s.jsx(st,{size:16})})}),t[2]=l):l=t[2];let o;t[3]!==e.length?(o=e.length>0&&s.jsx("span",{className:"absolute top-1 right-1 size-2 rounded-full bg-red-500 ring-2 ring-sidebar pointer-events-none"}),t[3]=e.length,t[4]=o):o=t[4];let r;t[5]!==o?(r=s.jsxs("div",{className:"relative",children:[l,o]}),t[5]=o,t[6]=r):r=t[6];let a;t[7]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx("div",{className:"px-4 py-3 border-b border-border shrink-0",children:s.jsx("h3",{className:"text-sm font-medium",children:"Inbox"})}),t[7]=a):a=t[7];let c;t[8]!==e?(c=s.jsxs($s,{side:"right",align:"end",sideOffset:24,className:"w-[400px] p-0 h-[650px] flex flex-col",children:[a,e.length===0?s.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center gap-2 px-6 text-center",children:[s.jsx(st,{size:24,className:"text-muted-foreground/50"}),s.jsx("p",{className:"text-sm font-medium text-foreground",children:"No messages or invites pending"}),s.jsx("p",{className:"text-xs text-muted-foreground",children:"Messages, workspace and project invitations will appear here"})]}):s.jsx("div",{className:"overflow-y-auto flex-1",children:e.map(Pi)})]}),t[8]=e,t[9]=c):c=t[9];let d;return t[10]!==r||t[11]!==c?(d=s.jsxs(li,{className:"px-3.5 pb-3 group-data-[collapsible=icon]:px-2",children:[i,s.jsx(be,{children:s.jsx(xe,{children:s.jsxs("div",{className:"flex items-center w-full gap-1",children:[n,s.jsx("div",{className:"group-data-[collapsible=icon]:hidden",children:s.jsxs(Is,{children:[r,c]})})]})})})]}),t[10]=r,t[11]=c,t[12]=d):d=t[12],d}function Pi(t){return s.jsx(yi,{invitation:t},t.id)}function Ai(t){const e=w.c(11),{project:i}=t,n=i.ui?.themeColor??"#60a5fa";if(i.ui?.icon){let c;return e[0]!==i.ui.icon?(c=s.jsx("img",{src:i.ui.icon,alt:"",className:"size-4 rounded object-cover border border-border/50"}),e[0]=i.ui.icon,e[1]=c):c=e[1],c}let l;e[2]!==n?(l={backgroundColor:n},e[2]=n,e[3]=l):l=e[3];let o;e[4]!==i.name?(o=i.name.charAt(0).toUpperCase(),e[4]=i.name,e[5]=o):o=e[5];let r;e[6]!==o?(r=s.jsx("span",{className:"text-[10px] font-medium text-white",children:o}),e[6]=o,e[7]=r):r=e[7];let a;return e[8]!==l||e[9]!==r?(a=s.jsx("div",{className:"size-4 rounded flex items-center justify-center border border-border/50",style:l,children:r}),e[8]=l,e[9]=r,e[10]=a):a=e[10],a}function Ei(t){const e=w.c(14),{project:i}=t,n=Xe(),{org:l}=ze();let o;e[0]!==n||e[1]!==l.slug||e[2]!==i.slug?(o=()=>{n({to:"/$org/$project",params:{org:l.slug,project:i.slug}})},e[0]=n,e[1]=l.slug,e[2]=i.slug,e[3]=o):o=e[3];let r;e[4]!==i?(r=s.jsx(Ai,{project:i}),e[4]=i,e[5]=r):r=e[5];let a;e[6]!==i.name?(a=s.jsx("span",{className:"truncate flex-1 group-data-[collapsible=icon]:hidden",children:i.name}),e[6]=i.name,e[7]=a):a=e[7];let c;e[8]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(Ds,{size:12,className:"text-muted-foreground opacity-0 group-hover/item:opacity-100 transition-opacity group-data-[collapsible=icon]:hidden"}),e[8]=c):c=e[8];let d;return e[9]!==i.name||e[10]!==o||e[11]!==r||e[12]!==a?(d=s.jsx(xe,{children:s.jsxs(Oe,{onClick:o,tooltip:i.name,children:[r,a,c]})}),e[9]=i.name,e[10]=o,e[11]=r,e[12]=a,e[13]=d):d=e[13],d}function Oi(){const t=w.c(55),{org:e}=ze(),{data:i,isLoading:n}=dt(e.id),[l,o]=I.useState(!0),[r,a]=I.useState(!1);let c,d,m,u,f,p,h,y,j,_,g,x,v;if(t[0]!==n||t[1]!==l||t[2]!==i){v=Symbol.for("react.early_return_sentinel");e:{const L=i?.filter(Di)??[];if(n){let B;t[16]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx(xe,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(ae,{className:"h-4 w-4 rounded"}),s.jsx(ae,{className:"h-4 flex-1"})]})}),t[16]=B):B=t[16];let F;t[17]===Symbol.for("react.memo_cache_sentinel")?(F=s.jsx(Ae,{className:"py-0 px-0",children:s.jsx(Ee,{children:s.jsxs(be,{className:"gap-0.5",children:[B,s.jsx(xe,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(ae,{className:"h-4 w-4 rounded"}),s.jsx(ae,{className:"h-4 flex-1"})]})})]})})}),t[17]=F):F=t[17],v=F;break e}x="group/projects-section mt-2",f=Es,_=l,g=o,u=Ae,j="py-0 px-0",m=Ee,d=be,h="gap-0.5";let H;t[18]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Projects"}),t[18]=H):H=t[18];const T=!l&&"-rotate-90";let A;t[19]!==T?(A=P("text-muted-foreground shrink-0 transition-transform duration-200",T),t[19]=T,t[20]=A):A=t[20];let D;t[21]!==A?(D=s.jsx(Os,{asChild:!0,children:s.jsxs("button",{type:"button",className:"flex flex-1 items-center gap-1 cursor-pointer min-w-0",children:[H,s.jsx(mt,{size:12,className:A})]})}),t[21]=A,t[22]=D):D=t[22];let E;t[23]===Symbol.for("react.memo_cache_sentinel")?(E=()=>a(!0),t[23]=E):E=t[23];let U;t[24]===Symbol.for("react.memo_cache_sentinel")?(U=s.jsx("button",{type:"button",onClick:E,title:"Create new project",className:"opacity-0 group-hover/projects-section:opacity-100 transition-opacity text-muted-foreground hover:text-foreground flex items-center justify-center h-4 rounded shrink-0",children:s.jsx(Le,{size:16})}),t[24]=U):U=t[24],t[25]!==D?(y=s.jsx(xe,{className:"group-data-[collapsible=icon]:hidden",children:s.jsxs("div",{className:"flex h-6 w-full items-center gap-1 rounded-md pl-1.5 pr-0.5 hover:bg-sidebar-accent transition-colors",children:[D,U]})}),t[25]=D,t[26]=y):y=t[26],c=Ts,p=L.length===0?s.jsx(xe,{children:s.jsx("div",{className:"px-2 py-2 text-xs text-muted-foreground",children:"No projects yet"})}):L.map(Ti)}t[0]=n,t[1]=l,t[2]=i,t[3]=c,t[4]=d,t[5]=m,t[6]=u,t[7]=f,t[8]=p,t[9]=h,t[10]=y,t[11]=j,t[12]=_,t[13]=g,t[14]=x,t[15]=v}else c=t[3],d=t[4],m=t[5],u=t[6],f=t[7],p=t[8],h=t[9],y=t[10],j=t[11],_=t[12],g=t[13],x=t[14],v=t[15];if(v!==Symbol.for("react.early_return_sentinel"))return v;let C;t[27]!==c||t[28]!==p?(C=s.jsx(c,{children:p}),t[27]=c,t[28]=p,t[29]=C):C=t[29];let b;t[30]!==d||t[31]!==h||t[32]!==y||t[33]!==C?(b=s.jsxs(d,{className:h,children:[y,C]}),t[30]=d,t[31]=h,t[32]=y,t[33]=C,t[34]=b):b=t[34];let N;t[35]!==m||t[36]!==b?(N=s.jsx(m,{children:b}),t[35]=m,t[36]=b,t[37]=N):N=t[37];let k;t[38]!==u||t[39]!==N||t[40]!==j?(k=s.jsx(u,{className:j,children:N}),t[38]=u,t[39]=N,t[40]=j,t[41]=k):k=t[41];let $;t[42]!==f||t[43]!==k||t[44]!==_||t[45]!==g?($=s.jsx(f,{open:_,onOpenChange:g,children:k}),t[42]=f,t[43]=k,t[44]=_,t[45]=g,t[46]=$):$=t[46];let z;t[47]!==$||t[48]!==x?(z=s.jsx("div",{className:x,children:$}),t[47]=$,t[48]=x,t[49]=z):z=t[49];let M;t[50]!==r?(M=s.jsx(rt,{open:r,onOpenChange:a}),t[50]=r,t[51]=M):M=t[51];let R;return t[52]!==z||t[53]!==M?(R=s.jsxs(s.Fragment,{children:[z,M]}),t[52]=z,t[53]=M,t[54]=R):R=t[54],R}function Ti(t){return s.jsx(Ei,{project:t},t.id)}function Di(t){return t.slug!==te}function Mi(){const t=w.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(I.Suspense,{fallback:s.jsx(Ae,{className:"py-0 px-0",children:s.jsx(Ee,{children:s.jsx(be,{className:"gap-0.5",children:s.jsx(xe,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(ae,{className:"h-4 w-4 rounded"}),s.jsx(ae,{className:"h-4 flex-1"})]})})})})}),children:s.jsx(Oi,{})}),t[0]=e):e=t[0],e}function Ri(t){const e=w.c(12),{onCreateProject:i}=t,n=Gs(),{locator:l}=ze();let o;e[0]!==l?(o=We.isOrgAdminProject(l),e[0]=l,e[1]=o):o=e[1];const r=o;let a;e[2]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(Qe.Skeleton,{}),e[2]=a):a=e[2];let c;e[3]!==i?(c=s.jsx(I.Suspense,{fallback:a,children:s.jsx(Qe,{onCreateProject:i})}),e[3]=i,e[4]=c):c=e[4];let d;e[5]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(Ii,{}),e[5]=d):d=e[5];let m;e[6]!==r?(m=r?s.jsx(Ye,{children:s.jsx(I.Suspense,{fallback:null,children:s.jsx(Mi,{})})}):null,e[6]=r,e[7]=m):m=e[7];let u;return e[8]!==n||e[9]!==c||e[10]!==m?(u=s.jsx(yt,{sections:n,header:c,footer:d,additionalContent:m}),e[8]=n,e[9]=c,e[10]=m,e[11]=u):u=e[11],u}function Li(){const t=w.c(5),i=Ze().location.href;let n;t[0]!==i?(n=i==="/login"||i.startsWith("/login?"),t[0]=i,t[1]=n):n=t[1];const l=n;let o;if(t[2]!==i||t[3]!==l){const r=l?{}:{next:i};o=s.jsx(Tt,{to:"/login",search:r,replace:!0}),t[2]=i,t[3]=l,t[4]=o}else o=t[4];return o}function Hi(t){const e=w.c(6),{children:i}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(At,{children:s.jsx(nt,{})}),e[0]=n):n=e[0];let l;e[1]!==i?(l=s.jsx(Et,{children:i}),e[1]=i,e[2]=l):l=e[2];let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(Ot,{children:s.jsx(Li,{})}),e[3]=o):o=e[3];let r;return e[4]!==l?(r=s.jsxs(s.Fragment,{children:[n,l,o]}),e[4]=l,e[5]=r):r=e[5],r}function Ui(t){const e=w.c(10),{children:i,className:n}=t,[,l]=I.useTransition();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=Fe.decoChatPanelWidth(),e[0]=o):o=e[0];const[r,a]=Je(o,30);let c;e[1]!==a?(c=f=>l(()=>a(f)),e[1]=a,e[2]=c):c=e[2];const d=c;let m;e[3]!==n?(m=P("min-w-0",n),e[3]=n,e[4]=m):m=e[4];let u;return e[5]!==r||e[6]!==i||e[7]!==d||e[8]!==m?(u=s.jsx(xt,{defaultSize:r,minSize:20,className:m,onResize:d,children:i}),e[5]=r,e[6]=i,e[7]=d,e[8]=m,e[9]=u):u=e[9],u}function Bi(t){const e=w.c(5),{children:i}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=Fe.sidebarOpen(),e[0]=n):n=e[0];const[l,o]=Je(n,!0);let r;return e[1]!==i||e[2]!==o||e[3]!==l?(r=s.jsx(Js,{open:l,onOpenChange:o,children:i}),e[1]=i,e[2]=o,e[3]=l,e[4]=r):r=e[4],r}function Fi(t){const e=w.c(23),{isHomeRoute:i,onCreateProject:n}=t,[l]=ot();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=Fe.decoChatPanelWidth(),e[0]=o):o=e[0];const[r]=Je(o,30),a=`${r}cqi`;let c;e[1]!==a?(c={"--sidebar-width":"13.5rem","--sidebar-width-mobile":"11rem","--chat-panel-w":a},e[1]=a,e[2]=c):c=e[2];const d=c;let m;e[3]!==n?(m=s.jsx(Ri,{onCreateProject:n}),e[3]=n,e[4]=m):m=e[4];let u;e[5]===Symbol.for("react.memo_cache_sentinel")?(u={background:"transparent",containerType:"inline-size"},e[5]=u):u=e[5];let f;e[6]===Symbol.for("react.memo_cache_sentinel")?(f={overflow:"visible"},e[6]=f):f=e[6];let p;e[7]===Symbol.for("react.memo_cache_sentinel")?(p={overflow:"visible"},e[7]=p):p=e[7];const h=l&&"rounded-tr-[0.75rem] border-r";let y;e[8]!==h?(y=P("flex flex-col flex-1 min-h-0 bg-card overflow-hidden","border-t border-l border-sidebar-border","rounded-tl-[0.75rem]","transition-[border-radius] duration-200 ease-[var(--ease-out-quart)]",h),e[8]=h,e[9]=y):y=e[9];let j;e[10]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx("div",{className:"flex-1 overflow-hidden",children:s.jsx(lt,{})}),e[10]=j):j=e[10];let _;e[11]!==y?(_=s.jsx(xt,{className:"min-w-0 flex flex-col",style:p,children:s.jsx("div",{className:y,children:j})}),e[11]=y,e[12]=_):_=e[12];let g;e[13]!==l||e[14]!==i?(g=!i&&s.jsxs(s.Fragment,{children:[s.jsx(Ms,{className:"bg-sidebar"}),s.jsx(Ui,{className:P("transition-[max-width] duration-200 ease-[var(--ease-out-quart)] overflow-hidden",l?"max-w-[var(--chat-panel-w)] bg-sidebar":"max-w-0"),children:s.jsx("div",{className:"h-full min-w-[var(--chat-panel-w)] pl-1.5 pr-1.5 pb-1.5",children:s.jsx("div",{className:"h-full bg-background rounded-[0.75rem] overflow-hidden border border-sidebar-border shadow-sm",children:s.jsx(Us,{})})})})]}),e[13]=l,e[14]=i,e[15]=g):g=e[15];let x;e[16]!==_||e[17]!==g?(x=s.jsx(ni,{className:"pt-1.5",style:u,children:s.jsxs(Rs,{direction:"horizontal",className:"h-full",style:f,children:[_,g]})}),e[16]=_,e[17]=g,e[18]=x):x=e[18];let v;return e[19]!==x||e[20]!==d||e[21]!==m?(v=s.jsxs(si,{className:"flex-1 bg-sidebar",style:d,children:[m,x]}),e[19]=x,e[20]=d,e[21]=m,e[22]=v):v=e[22],v}function Ki(){const{org:t,project:e}=it({strict:!1}),i=Ze(),[n,l]=I.useState(!1),[o,r]=I.useState(!1);I.useEffect(()=>{const u=f=>{Ut(f)&&f.code==="KeyK"&&(f.preventDefault(),r(!0))};return document.addEventListener("keydown",u),()=>document.removeEventListener("keydown",u)},[]);const a=i.location.pathname===`/${t}/${e}`||i.location.pathname===`/${t}/${e}/`,c=e??te,{data:d}=Dt({queryKey:Mt.activeOrganization(t),queryFn:async()=>{if(!t)return null;const{data:u}=await Ne.organization.setActive({organizationSlug:t});return u&&localStorage.setItem(Fe.lastOrgSlug(),t),{org:u,project:{slug:c,isOrgAdmin:c===te}}},gcTime:1/0,refetchOnWindowFocus:!1});if(!d)return s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsx("header",{className:"h-12 flex items-center justify-end px-4 border-b border-border",children:s.jsx("div",{className:"w-fit",children:s.jsx(St,{})})}),s.jsx(lt,{})]});if(!d.org)return window.location.pathname!=="/"&&(window.location.href="/"),null;const m={...d,project:{...d.project,slug:c,isOrgAdmin:c===te}};return s.jsxs(Rt,{...m,children:[s.jsx(Bi,{children:s.jsx("div",{className:"flex flex-col h-screen overflow-hidden",children:s.jsx(oe.Provider,{children:s.jsx(Fi,{isHomeRoute:a,onCreateProject:()=>l(!0)})})})}),s.jsx(rt,{open:n,onOpenChange:l}),s.jsx(Bs,{open:o,onOpenChange:r})]})}function Ul(){const t=w.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Hi,{children:s.jsx(I.Suspense,{fallback:s.jsx(nt,{}),children:s.jsx(Ki,{})})}),t[0]=e):e=t[0],e}export{Ul as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as E,u as q,j as n,w as F,K as v,r as k,v as _,B as O}from"./index-
|
|
1
|
+
import{c as E,u as q,j as n,w as F,K as v,r as k,v as _,B as O}from"./index-OyLnxARk.js";import{u as L}from"./useQuery-Brtj4EoG.js";import{u as R}from"./useMutation-B_6d8oLI.js";import{S as V}from"./switch-BunRXVYQ.js";import{I as A}from"./input-B4YrZuiK.js";import{u as K,a as U}from"./constants-CLw0F8Mm.js";import{g as J}from"./types-DoomhLgW.js";import{u as w}from"./unwrap-tool-result-BYXdCQMg.js";function M(s){const e=E.c(33),{connection:t,pinnedViews:o,isSaving:u,onTogglePin:h,onLabelChange:f}=s;if(t.uiTools.length===0)return null;let j;e[0]!==t.id||e[1]!==o?(j=x=>o.some(c=>c.connectionId===t.id&&c.toolName===x),e[0]=t.id,e[1]=o,e[2]=j):j=e[2];const N=j;let g;e[3]!==t.icon||e[4]!==t.title?(g=t.icon?n.jsx("img",{src:t.icon,alt:"",className:"size-4 shrink-0 rounded"}):n.jsx("div",{className:"size-4 shrink-0 rounded bg-muted flex items-center justify-center",children:n.jsx("span",{className:"text-[8px] font-medium text-muted-foreground",children:t.title.charAt(0).toUpperCase()})}),e[3]=t.icon,e[4]=t.title,e[5]=g):g=e[5];let p;e[6]!==t.title?(p=n.jsx("h3",{className:"text-sm font-medium text-foreground",children:t.title}),e[6]=t.title,e[7]=p):p=e[7];let l;e[8]!==g||e[9]!==p?(l=n.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[g,p]}),e[8]=g,e[9]=p,e[10]=l):l=e[10];let d;if(e[11]!==t.icon||e[12]!==t.id||e[13]!==t.uiTools||e[14]!==N||e[15]!==u||e[16]!==f||e[17]!==h||e[18]!==o){let x;e[20]!==t.icon||e[21]!==t.id||e[22]!==N||e[23]!==u||e[24]!==f||e[25]!==h||e[26]!==o?(x=c=>{const P=N(c.name),I=o.find(S=>S.connectionId===t.id&&S.toolName===c.name);return n.jsxs("div",{className:"flex flex-col border-b border-border last:border-0",children:[n.jsxs("div",{className:"flex items-center justify-between gap-6 py-3 cursor-pointer",onClick:()=>h(t.id,c.name,t.icon),children:[n.jsxs("div",{className:"min-w-0 flex-1",children:[n.jsx("p",{className:"text-sm font-medium text-foreground",children:c.name}),c.description&&n.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:c.description})]}),n.jsx("div",{onClick:$,className:"shrink-0",children:n.jsx(V,{checked:P,onCheckedChange:()=>h(t.id,c.name,t.icon),disabled:u})})]}),P&&I&&n.jsxs("div",{className:"pb-3 pl-0 flex items-center gap-3",onClick:Q,children:[n.jsx("label",{className:"text-xs text-muted-foreground w-12 shrink-0",children:"Label"}),n.jsx(A,{value:I.label,onChange:S=>f(t.id,c.name,S.target.value),className:"h-8 text-sm w-56",disabled:u})]})]},c.name)},e[20]=t.icon,e[21]=t.id,e[22]=N,e[23]=u,e[24]=f,e[25]=h,e[26]=o,e[27]=x):x=e[27],d=t.uiTools.map(x),e[11]=t.icon,e[12]=t.id,e[13]=t.uiTools,e[14]=N,e[15]=u,e[16]=f,e[17]=h,e[18]=o,e[19]=d}else d=e[19];let m;e[28]!==d?(m=n.jsx("div",{className:"flex flex-col",children:d}),e[28]=d,e[29]=m):m=e[29];let C;return e[30]!==l||e[31]!==m?(C=n.jsxs("div",{children:[l,m]}),e[30]=l,e[31]=m,e[32]=C):C=e[32],C}function Q(s){return s.stopPropagation()}function $(s){return s.stopPropagation()}function z(){const{org:s,project:e}=q(),t=K({connectionId:U,orgId:s.id}),o=F(),u=e.id??"",{data:h}=L({queryKey:v.projectConnections(u),enabled:!!e.id,queryFn:async()=>{const i=await t.callTool({name:"PROJECT_CONNECTION_LIST",arguments:{projectId:u}});return w(i)}}),f=h?.connections??[],j=f.map(i=>i.id).sort(),{data:N}=L({queryKey:v.projectConnectionDetails(u,j),enabled:j.length>0,queryFn:async()=>await Promise.all(f.map(async a=>{try{const y=await t.callTool({name:"COLLECTION_CONNECTIONS_GET",arguments:{id:a.id}}),{item:T}=w(y),r=(T?.tools??[]).filter(b=>!!J(b._meta)).map(b=>({name:b.name,description:b.description}));return{id:a.id,title:a.title,icon:a.icon,uiTools:r}}catch{return{id:a.id,title:a.title,icon:a.icon,uiTools:[]}}}))}),g=N??[],p=e.ui?.pinnedViews??[],[l,d]=k.useState(p),[m,C]=k.useState(!1),x=JSON.stringify(l)!==JSON.stringify(p),c=(i,a,y)=>{const T=l.some(r=>r.connectionId===i&&r.toolName===a);d(T?r=>r.filter(b=>!(b.connectionId===i&&b.toolName===a)):r=>[...r,{connectionId:i,toolName:a,label:a,icon:y}])},P=(i,a,y)=>{d(T=>T.map(r=>r.connectionId===i&&r.toolName===a?{...r,label:y}:r))},I=R({mutationFn:async()=>{const i=await t.callTool({name:"PROJECT_PINNED_VIEWS_UPDATE",arguments:{projectId:e.id,pinnedViews:l}});w(i)},onSuccess:()=>{o.invalidateQueries({queryKey:v.project(s.id,e.slug)}),_.success("Sidebar updated")},onError:i=>{_.error("Failed to update sidebar: "+(i instanceof Error?i.message:"Unknown error"))},onSettled:()=>C(!1)}),S=()=>{C(!0),I.mutate()},D=()=>{d(p)};return f.length===0?n.jsx("p",{className:"text-sm text-muted-foreground py-4",children:"No connections associated with this project. Add connections in the Dependencies section first."}):n.jsxs("div",{className:"space-y-6",children:[g.map(i=>n.jsx(M,{connection:i,pinnedViews:l,isSaving:m,onTogglePin:c,onLabelChange:P},i.id)),n.jsxs("div",{className:"flex items-center gap-3 pt-4",children:[n.jsx(O,{variant:"outline",onClick:D,disabled:!x||m,children:"Cancel"}),n.jsx(O,{onClick:S,disabled:!x||m,children:m?"Saving...":"Save Changes"})]})]})}function B(){const s=E.c(3),{project:e}=q();let t;s[0]===Symbol.for("react.memo_cache_sentinel")?(t=n.jsxs("div",{children:[n.jsx("h2",{className:"text-base font-semibold text-foreground",children:"Sidebar"}),n.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Pin interactive tools from your dependencies to the project sidebar for quick access."})]}),s[0]=t):t=s[0];let o;return s[1]!==e.id?(o=n.jsxs("div",{className:"flex flex-col gap-6",children:[t,n.jsx(z,{},e.id)]}),s[1]=e.id,s[2]=o):o=s[2],o}function ne(){const s=E.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(B,{}),s[0]=e):e=s[0],e}export{ne as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as n,y as c,j as i}from"./index-
|
|
1
|
+
import{c as n,y as c,j as i}from"./index-OyLnxARk.js";function m(o){const e=n.c(8);let s,t;e[0]!==o?({className:s,...t}=o,e[0]=o,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let l;e[3]!==s?(l=c("bg-accent animate-pulse rounded-md",s),e[3]=s,e[4]=l):l=e[4];let a;return e[5]!==t||e[6]!==l?(a=i.jsx("div",{"data-slot":"skeleton",className:l,...t}),e[5]=t,e[6]=l,e[7]=a):a=e[7],a}export{m as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as C,y as d,_ as m,j as a}from"./index-
|
|
1
|
+
import{c as C,y as d,_ as m,j as a}from"./index-OyLnxARk.js";const u=m("animate-spin",{variants:{variant:{default:"fill-primary text-gray-200",destructive:"fill-destructive text-gray-200",secondary:"fill-secondary text-gray-200",special:"fill-special text-backround"},size:{default:"h-7 w-7",sm:"h-6 w-6",lg:"h-8 w-8",icon:"h-6 w-6",xs:"h-4 w-4"}},defaultVariants:{variant:"default",size:"default"}});function h(f){const e=C.c(10),{variant:c,size:o}=f;let t;e[0]!==o||e[1]!==c?(t=d(u({variant:c,size:o})),e[0]=o,e[1]=c,e[2]=t):t=e[2];let l,i;e[3]===Symbol.for("react.memo_cache_sentinel")?(l=a.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),i=a.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"}),e[3]=l,e[4]=i):(l=e[3],i=e[4]);let s;e[5]!==t?(s=a.jsxs("svg",{"aria-hidden":"true",className:t,viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l,i]}),e[5]=t,e[6]=s):s=e[6];let r;e[7]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsx("span",{className:"sr-only",children:"Loading..."}),e[7]=r):r=e[7];let n;return e[8]!==s?(n=a.jsxs("div",{role:"status",children:[s,r]}),e[8]=s,e[9]=n):n=e[9],n}export{h as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as h,g as S,j as o,A as x,S as g,k as j,m as b,d,f as y,O as N,N as p}from"./index-
|
|
1
|
+
import{c as h,g as S,j as o,A as x,S as g,k as j,m as b,d,f as y,O as N,N as p}from"./index-OyLnxARk.js";function R(e){const t=h.c(5),{appName:l}=e;let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s={strict:!1},t[0]=s):s=t[0];const n=d(s);let a;if(t[1]!==n){const r=new URLSearchParams;for(const[_,u]of Object.entries(n))u!=null&&r.set(_,String(u));a=r.toString(),t[1]=n,t[2]=a}else a=t[2];const f=a,c=`/store/${encodeURIComponent(l)}${f?`?${f}`:""}`;let i;return t[3]!==c?(i=o.jsx(p,{to:"/login",search:{next:c},replace:!0}),t[3]=c,t[4]=i):i=t[4],i}function $(){const e=h.c(10);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const{appName:l}=S(t);let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s={strict:!1},e[1]=s):s=e[1];const n=d(s),{data:a,isPending:f}=y.useListOrganizations();if(f){let r;return e[2]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx(g,{}),e[2]=r):r=e[2],r}const m=a?.[0];if(!m){let r;return e[3]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx(p,{to:"/",replace:!0}),e[3]=r):r=e[3],r}let c;e[4]!==l||e[5]!==m.slug?(c={org:m.slug,project:N,appName:l},e[4]=l,e[5]=m.slug,e[6]=c):c=e[6];let i;return e[7]!==n||e[8]!==c?(i=o.jsx(p,{to:"/$org/$project/store/$appName",params:c,search:n,replace:!0}),e[7]=n,e[8]=c,e[9]=i):i=e[9],i}function v(){const e=h.c(5);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const{appName:l}=S(t);let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsx(x,{children:o.jsx(g,{})}),e[1]=s):s=e[1];let n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=o.jsx(j,{children:o.jsx($,{})}),e[2]=n):n=e[2];let a;return e[3]!==l?(a=o.jsxs(o.Fragment,{children:[s,n,o.jsx(b,{children:o.jsx(R,{appName:l})})]}),e[3]=l,e[4]=a):a=e[4],a}export{v as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as c,j as i,a2 as C,a3 as y,a0 as T,a5 as I,a9 as M,aa as H,a8 as z,c as A,y as g}from"./index-
|
|
1
|
+
import{r as c,j as i,a2 as C,a3 as y,a0 as T,a5 as I,a9 as M,aa as H,a8 as z,c as A,y as g}from"./index-OyLnxARk.js";var m="Switch",[U]=z(m),[q,L]=U(m),E=c.forwardRef((r,e)=>{const{__scopeSwitch:t,name:s,checked:a,defaultChecked:n,required:o,disabled:d,value:u="on",onCheckedChange:k,form:l,...w}=r,[p,h]=c.useState(null),v=y(e,b=>h(b)),x=c.useRef(!1),S=p?l||!!p.closest("form"):!0,[f,N]=T({prop:a,defaultProp:n??!1,onChange:k,caller:m});return i.jsxs(q,{scope:t,checked:f,disabled:d,children:[i.jsx(C.button,{type:"button",role:"switch","aria-checked":f,"aria-required":o,"data-state":j(f),"data-disabled":d?"":void 0,disabled:d,value:u,...w,ref:v,onClick:I(r.onClick,b=>{N(B=>!B),S&&(x.current=b.isPropagationStopped(),x.current||b.stopPropagation())})}),S&&i.jsx(_,{control:p,bubbles:!x.current,name:s,value:u,checked:f,required:o,disabled:d,form:l,style:{transform:"translateX(-100%)"}})]})});E.displayName=m;var P="SwitchThumb",R=c.forwardRef((r,e)=>{const{__scopeSwitch:t,...s}=r,a=L(P,t);return i.jsx(C.span,{"data-state":j(a.checked),"data-disabled":a.disabled?"":void 0,...s,ref:e})});R.displayName=P;var O="SwitchBubbleInput",_=c.forwardRef(({__scopeSwitch:r,control:e,checked:t,bubbles:s=!0,...a},n)=>{const o=c.useRef(null),d=y(o,n),u=M(t),k=H(e);return c.useEffect(()=>{const l=o.current;if(!l)return;const w=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(w,"checked").set;if(u!==t&&h){const v=new Event("click",{bubbles:s});h.call(l,t),l.dispatchEvent(v)}},[u,t,s]),i.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:t,...a,tabIndex:-1,ref:d,style:{...a.style,...k,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});_.displayName=O;function j(r){return r?"checked":"unchecked"}var $=E,D=R;function W(r){const e=A.c(9);let t,s;e[0]!==r?({className:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",t),e[3]=t,e[4]=a):a=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx(D,{"data-slot":"switch-thumb",className:g("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")}),e[5]=n):n=e[5];let o;return e[6]!==s||e[7]!==a?(o=i.jsx($,{"data-slot":"switch",className:a,...s,children:n}),e[6]=s,e[7]=a,e[8]=o):o=e[8],o}export{W as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as r,y as i,j as c}from"./index-
|
|
1
|
+
import{c as r,y as i,j as c}from"./index-OyLnxARk.js";function d(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("w-full caption-bottom text-sm min-w-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("div",{"data-slot":"table-container",className:"w-full min-w-0 bg-background",children:c.jsx("table",{"data-slot":"table",className:s,...l})}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function b(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr]:border-b sticky top-0 z-10 bg-background",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("thead",{"data-slot":"table-header",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function f(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr:last-child]:border-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("tbody",{"data-slot":"table-body",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function p(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("data-[state=selected]:bg-muted border-b transition-colors",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("tr",{"data-slot":"table-row",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function m(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("th",{"data-slot":"table-head",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function u(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("td",{"data-slot":"table-cell",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}export{d as T,b as a,p as b,m as c,f as d,u as e};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as p,j as d,a4 as k,a2 as f,a5 as T,a6 as y,a8 as M,$ as P,a0 as S,ad as F,a1 as V,a7 as D,c as x,y as g}from"./index-
|
|
1
|
+
import{r as p,j as d,a4 as k,a2 as f,a5 as T,a6 as y,a8 as M,$ as P,a0 as S,ad as F,a1 as V,a7 as D,c as x,y as g}from"./index-OyLnxARk.js";var m="Tabs",[G]=M(m,[y]),w=y(),[L,h]=G(m),C=p.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,onValueChange:r,defaultValue:s,orientation:o="horizontal",dir:i,activationMode:l="automatic",...v}=n,u=P(i),[c,b]=S({prop:t,onChange:r,defaultProp:s??"",caller:m});return d.jsx(L,{scope:a,baseId:F(),value:c,onValueChange:b,orientation:o,dir:u,activationMode:l,children:d.jsx(f.div,{dir:u,"data-orientation":o,...v,ref:e})})});C.displayName=m;var N="TabsList",j=p.forwardRef((n,e)=>{const{__scopeTabs:a,loop:t=!0,...r}=n,s=h(N,a),o=w(a);return d.jsx(V,{asChild:!0,...o,orientation:s.orientation,dir:s.dir,loop:t,children:d.jsx(f.div,{role:"tablist","aria-orientation":s.orientation,...r,ref:e})})});j.displayName=N;var I="TabsTrigger",_=p.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,disabled:r=!1,...s}=n,o=h(I,a),i=w(a),l=A(o.baseId,t),v=E(o.baseId,t),u=t===o.value;return d.jsx(k,{asChild:!0,...i,focusable:!r,active:u,children:d.jsx(f.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":v,"data-state":u?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:l,...s,ref:e,onMouseDown:T(n.onMouseDown,c=>{!r&&c.button===0&&c.ctrlKey===!1?o.onValueChange(t):c.preventDefault()}),onKeyDown:T(n.onKeyDown,c=>{[" ","Enter"].includes(c.key)&&o.onValueChange(t)}),onFocus:T(n.onFocus,()=>{const c=o.activationMode!=="manual";!u&&!r&&c&&o.onValueChange(t)})})})});_.displayName=I;var R="TabsContent",$=p.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,forceMount:r,children:s,...o}=n,i=h(R,a),l=A(i.baseId,t),v=E(i.baseId,t),u=t===i.value,c=p.useRef(u);return p.useEffect(()=>{const b=requestAnimationFrame(()=>c.current=!1);return()=>cancelAnimationFrame(b)},[]),d.jsx(D,{present:r||u,children:({present:b})=>d.jsx(f.div,{"data-state":u?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":l,hidden:!b,id:v,tabIndex:0,...o,ref:e,style:{...n.style,animationDuration:c.current?"0s":void 0},children:b&&s})})});$.displayName=R;function A(n,e){return`${n}-trigger-${e}`}function E(n,e){return`${n}-content-${e}`}var z=C,K=j,B=_,q=$;function O(n){const e=x.c(10);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r===void 0?"pill":r;let o;e[4]!==a?(o=g("flex flex-col gap-2",a),e[4]=a,e[5]=o):o=e[5];let i;return e[6]!==t||e[7]!==o||e[8]!==s?(i=d.jsx(z,{"data-slot":"tabs","data-variant":s,className:o,...t}),e[6]=t,e[7]=o,e[8]=s,e[9]=i):i=e[9],i}function J(n){const e=x.c(11);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r||"pill",o=s==="underline"?"flex h-[52px] items-center border-b border-border":s==="canvas"?"flex h-10 items-center bg-background relative":"bg-muted text-muted-foreground inline-flex h-10 w-fit items-center justify-center rounded-xl p-[3px]";let i;e[4]!==a||e[5]!==o?(i=g(o,a),e[4]=a,e[5]=o,e[6]=i):i=e[6];let l;return e[7]!==s||e[8]!==t||e[9]!==i?(l=d.jsx(K,{"data-slot":"tabs-list","data-variant":s,className:i,...t}),e[7]=s,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function Q(n){const e=x.c(11);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r||"pill",o=s==="underline"?"cursor-pointer flex items-center h-full px-3 relative text-sm whitespace-nowrap border-b-2 mb-[-1px] transition-all text-muted-foreground border-transparent hover:text-foreground data-[state=active]:text-foreground data-[state=active]:border-primary disabled:pointer-events-none disabled:opacity-50":s==="canvas"?"cursor-pointer flex items-center h-full px-3 gap-2.5 text-sm whitespace-nowrap transition-all border-r border-b border-border [&>*]:opacity-50 data-[state=active]:[&>*]:opacity-100 data-[state=active]:border-b-0 last:border-r-0 disabled:pointer-events-none max-w-2xs":"data-[state=active]:bg-background dark:data-[state=active]:text-foreground cursor-pointer focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-lg border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4";let i;e[4]!==a||e[5]!==o?(i=g(o,a),e[4]=a,e[5]=o,e[6]=i):i=e[6];let l;return e[7]!==s||e[8]!==t||e[9]!==i?(l=d.jsx(B,{"data-slot":"tabs-trigger","data-variant":s,className:i,...t}),e[7]=s,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function U(n){const e=x.c(8);let a,t;e[0]!==n?({className:a,...t}=n,e[0]=n,e[1]=a,e[2]=t):(a=e[1],t=e[2]);let r;e[3]!==a?(r=g("flex-1 outline-none h-full",a),e[3]=a,e[4]=r):r=e[4];let s;return e[5]!==t||e[6]!==r?(s=d.jsx(q,{"data-slot":"tabs-content",className:r,...t}),e[5]=t,e[6]=r,e[7]=s):s=e[7],s}export{Q as T,J as a,U as b,O as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as P,c as W,g as _0,bR as Mr,w as ln,u as st,K as ht,v as gt,f as Yc,aw as la,j as f,E as Pr,o as un,q as A0,t as x0,B as Ce,n as Ar,y as ie,aA as ly,ab as v0,ar as N0,cI as uy,bk as I0,cJ as cy,cK as ft,cL as ua,cM as dy,cN as ca,cO as py,cP as fy,cQ as my,cR as gy,x as hy,cS as by,cT as Ey,cU as Ty,cV as Sy,e as yy,O as _y,bQ as kt,cF as xr,ac as Ay}from"./index-B_DxRVw1.js";import{A as xy,d as Kc,e as vy,f as ve,l as Ny,g as Iy,b as R0,h as nn,i as Ry,u as Vn,a as Wn}from"./context-ow-zK3BP.js";import{b as Yn,P as Kn,a as Xn}from"./popover-DOnHuwq3.js";import{S as xe}from"./skeleton-BkpiIfDB.js";import{S as Fr}from"./spinner-tJ67zxkj.js";import{T as rt,a as at,b as it,c as Xc}from"./tooltip-Bm11lCIm.js";import{u as qt,a as Zc,d as C0,i as vr}from"./constants-CKGlP4oN.js";import{u as Cy,g as k0,l as zd}from"./use-mcp-prompts-Dw4CvfV3.js";import{D as w0,b as ky,e as wy,c as O0,d as L0,f as Oy}from"./dialog-COv8XUO0.js";import{a as Tc,F as Br,b as Ur,c as Ly,d as Hr,f as jr}from"./form-CZrleug2.js";import{I as D0}from"./input-DqwWeNgs.js";import{N as M0,R as P0,d as F0,f as B0,P as Sc,g as Dy,h as My,S as Py,u as U0,j as Fy,i as H0,E as j0,e as By}from"./index-CVyJGNS2.js";import{s as Uy,c as Hy,a as jy,e as qy}from"./usage-BW6ztpN6.js";import{i as $y}from"./ArrowUp-WIHiBhdv.js";import{t as yc}from"./ChevronDown-jyPVRLzp.js";import{i as q0}from"./Edit01-BxDvpu_b.js";import{i as zy}from"./Lock01-DZeZ3WxC.js";import{t as $0}from"./Users03-rAyzQyh3.js";import{a as Gy,t as z0,i as G0,u as V0}from"./use-copy-CPgIfOPM.js";import{i as Qc}from"./AlertCircle-PBJUtpjc.js";import{i as Vy}from"./X-CxZVsh3L.js";import{c as W0,S as Y0,d as K0,a as X0,b as Z0}from"./select-BM9jpLT2.js";import{u as Q0,i as Wy,P as Yy,a as Ky}from"./org-ai-providers-BHi1kOOt.js";import{i as J0}from"./ArrowLeft-BHzi0YLf.js";import{c as Xy,b as Zy}from"./tabs-BQ5doEBy.js";import{B as Qy}from"./badge-BfLRgdaW.js";import{a as Jy,i as e1,b as e_,c as t_,C as n_}from"./collapsible-MCSgly5t.js";import{i as cn}from"./Check-Bme4aNg5.js";import{i as r_}from"./Code01-DygQPwlG.js";import{C as a_}from"./checkbox-C5Om9oxx.js";import{i as i_}from"./AlignLeft-CddYwC43.js";import{a as s_}from"./Image01-B9BH_f0p.js";import{i as o_}from"./Key01-CdH7i8vY.js";import{s as l_}from"./RefreshCcw01-B88e0cNw.js";import{i as Jc}from"./SearchMd-BQseJVRu.js";import{t as u_}from"./Settings01-CS4vVmx5.js";import{a as c_}from"./Tool01-xNX6v26H.js";import{b as ed,u as t1,a as n1,g as td}from"./ai-providers-logos-DPOiBl7V.js";import{a as d_,V as r1}from"./select-virtual-mcp-DzKjKtT5.js";import{l as Gd,r as p_}from"./use-mcp-resources-CFkkQw1d.js";import{i as f_}from"./ChevronRight-Ct9VK1GH.js";import{a as qr}from"./Copy01-ekqsSfJN.js";import{m as m_}from"./marked.esm-BaswSlok.js";import{c as g_}from"./content-blocks-o63cs2vh.js";import{M as h_}from"./mcp-app-renderer-D7CJTHIn.js";import{g as a1}from"./types-BnNswHwQ.js";import{s as b_}from"./Eye-DN-kY_sb.js";import{s as E_}from"./Globe02-CB2InS06.js";import{s as i1}from"./LayersTwo01-8gQGsURS.js";import{s as T_}from"./XClose-hdsxwv2G.js";import{a as S_,u as y_}from"./index-CsqngJxb.js";import{I as __}from"./integration-icon-Dv0HduyT.js";import{s as Vd}from"./Clock-Bwl2wOhM.js";import{s as A_}from"./Trash01-PnuUudMl.js";import{b as x_}from"./use-virtual-mcp-FAfRsySa.js";import{b as nd,c as v_,a as N_,e as I_}from"./use-collections-aokT1D_C.js";import{u as R_}from"./useSuspenseInfiniteQuery-DsCmMd3U.js";import{i as C_}from"./CheckCircle-BSVa-h_Y.js";import{i as k_}from"./Loading01-Dt16NixZ.js";const s1=({size:t=24,color:e="currentColor",...n})=>P.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},P.createElement("path",{d:"M22 12h-4l-3 9L9 3l-3 9H2"}));s1.displayName="Activity";const o1=({size:t=24,color:e="currentColor",...n})=>P.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},P.createElement("path",{d:"M17.115 15.358c-.27.306-.554.608-.851.905-4.296 4.296-9.678 5.88-12.021 3.536-1.607-1.606-1.368-4.641.325-7.775M6.89 8.725c.281-.32.578-.636.888-.947C12.074 3.482 17.456 1.9 19.8 4.243c1.608 1.607 1.367 4.645-.33 7.781m-3.206-4.246c4.296 4.296 5.88 9.678 3.536 12.021-2.343 2.343-7.725.76-12.02-3.535C3.483 11.968 1.9 6.586 4.244 4.243c2.343-2.343 7.725-.76 12.02 3.535ZM13 12a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"}));o1.displayName="Atom02";const l1=({size:t=24,color:e="currentColor",...n})=>P.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},P.createElement("path",{d:"m21.152 10.9-9.015 9.015a5.25 5.25 0 0 1-7.425-7.425l9.016-9.015a3.5 3.5 0 1 1 4.95 4.95l-8.662 8.662a1.75 1.75 0 1 1-2.475-2.475l7.601-7.602"}));l1.displayName="Attachment01";const u1=({size:t=24,color:e="currentColor",...n})=>P.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},P.createElement("path",{d:"m7 15 5 5 5-5M7 9l5-5 5 5"}));u1.displayName="ChevronSelectorVertical";const rd=({size:t=24,color:e="currentColor",...n})=>P.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},P.createElement("path",{d:"m18 10-4-4M2.5 21.5l3.384-.376c.414-.046.62-.069.814-.131a2 2 0 0 0 .485-.234c.17-.111.317-.259.61-.553L21 7a2.828 2.828 0 1 0-4-4L3.794 16.206c-.294.294-.442.442-.553.611a2 2 0 0 0-.234.485c-.062.193-.085.4-.131.814L2.5 21.5Z"}));rd.displayName="Edit02";const c1=({size:t=24,color:e="currentColor",...n})=>P.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},P.createElement("path",{d:"M9 18.5h6M6.6 2h10.8c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C19 2.76 19 3.04 19 3.6v2.075c0 .489 0 .733-.055.963-.05.205-.13.4-.24.579-.123.201-.296.374-.642.72L15.13 10.87c-.396.396-.594.594-.668.822a1 1 0 0 0 0 .618c.074.228.272.426.668.822l2.932 2.932c.346.346.519.519.642.72.11.18.19.374.24.578.055.23.055.475.055.965V20.4c0 .56 0 .84-.109 1.054a1 1 0 0 1-.437.437C18.24 22 17.96 22 17.4 22H6.6c-.56 0-.84 0-1.054-.109a1 1 0 0 1-.437-.437C5 21.24 5 20.96 5 20.4v-2.074c0-.49 0-.734.055-.965.05-.204.13-.399.24-.578.123-.201.296-.374.642-.72L8.87 13.13c.396-.396.594-.594.668-.822a1 1 0 0 0 0-.618c-.074-.228-.272-.426-.668-.822L5.937 7.937c-.346-.346-.519-.519-.642-.72a2 2 0 0 1-.24-.579C5 6.408 5 6.164 5 5.675V3.6c0-.56 0-.84.109-1.054a1 1 0 0 1 .437-.437C5.76 2 6.04 2 6.6 2Z"}));c1.displayName="Hourglass03";const d1=({size:t=24,color:e="currentColor",...n})=>P.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},P.createElement("path",{d:"M15 16.5V19c0 .932 0 1.398-.152 1.765a2 2 0 0 1-1.083 1.083C13.398 22 12.932 22 12 22c-.932 0-1.398 0-1.765-.152a2 2 0 0 1-1.083-1.083C9 20.398 9 19.932 9 19v-2.5m6 0c2.649-1.157 4.5-3.925 4.5-7a7.5 7.5 0 0 0-15 0c0 3.075 1.851 5.843 4.5 7m6 0H9"}));d1.displayName="Lightbulb01";const p1=({size:t=24,color:e="currentColor",...n})=>P.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},P.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"}));p1.displayName="Placeholder";const f1=({size:t=24,color:e="currentColor",...n})=>P.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},P.createElement("path",{d:"m9 11.5 2 2L15.5 9m4.5 3c0 4.908-5.354 8.478-7.302 9.615-.221.129-.332.194-.488.227a1.137 1.137 0 0 1-.42 0c-.156-.034-.267-.098-.488-.227C9.354 20.478 4 16.908 4 12V7.217c0-.799 0-1.199.13-1.542a2 2 0 0 1 .548-.79c.276-.243.65-.383 1.398-.664l5.362-2.01c.208-.078.312-.117.419-.133a1 1 0 0 1 .286 0c.107.016.21.055.419.133l5.362 2.01c.748.28 1.123.421 1.398.664a2 2 0 0 1 .547.79c.131.343.131.743.131 1.542V12Z"}));f1.displayName="ShieldTick";const $r=({size:t=24,color:e="currentColor",...n})=>P.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},P.createElement("path",{d:"m6.5 13 .784 1.569c.266.53.399.796.576 1.026a3 3 0 0 0 .545.545c.23.177.495.31 1.026.575L11 17.5l-1.569.785c-.53.265-.796.398-1.026.575a3 3 0 0 0-.545.545c-.177.23-.31.495-.576 1.026L6.5 22l-.784-1.569c-.266-.53-.399-.796-.576-1.026a3 3 0 0 0-.545-.545c-.23-.177-.495-.31-1.026-.575L2 17.5l1.569-.785c.53-.265.796-.398 1.026-.575a3 3 0 0 0 .545-.545c.177-.23.31-.495.576-1.026L6.5 13ZM15 2l1.179 3.064c.282.734.423 1.1.642 1.409a3 3 0 0 0 .706.706c.309.22.675.36 1.409.642L22 9l-3.064 1.179c-.734.282-1.1.423-1.409.642a3 3 0 0 0-.706.706c-.22.309-.36.675-.642 1.409L15 16l-1.179-3.064c-.282-.734-.423-1.1-.642-1.409a3 3 0 0 0-.706-.706c-.309-.22-.675-.36-1.409-.642L8 9l3.064-1.179c.734-.282 1.1-.423 1.409-.642a3 3 0 0 0 .706-.706c.22-.309.36-.675.642-1.409L15 2Z"}));$r.displayName="Stars01";const m1=({size:t=24,color:e="currentColor",...n})=>P.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},P.createElement("path",{d:"M16 8V5l3-3 1 2 2 1-3 3h-3Zm0 0-4 4m10 0c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m5 10a5 5 0 1 1-5-5"}));m1.displayName="Target04";function w_(t){const e=W.c(10);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={strict:!1},e[0]=n):n=e[0];const r=_0(n);let a;if(e[1]!==r.collectionName||e[2]!==r.connectionId||e[3]!==r.itemId||e[4]!==t){a=[],t&&a.push(`### Selected Agent
|
|
1
|
+
import{r as P,c as W,g as _0,bR as Mr,w as ln,u as st,K as ht,v as gt,f as Yc,aw as la,j as f,E as Pr,o as un,q as A0,t as x0,B as Ce,n as Ar,y as ie,aA as ly,ab as v0,ar as N0,cI as uy,bk as I0,cJ as cy,cK as ft,cL as ua,cM as dy,cN as ca,cO as py,cP as fy,cQ as my,cR as gy,x as hy,cS as by,cT as Ey,cU as Ty,cV as Sy,e as yy,O as _y,bQ as kt,cF as xr,ac as Ay}from"./index-OyLnxARk.js";import{A as xy,d as Kc,e as vy,f as ve,l as Ny,g as Iy,b as R0,h as nn,i as Ry,u as Vn,a as Wn}from"./context-ClUgEsLK.js";import{b as Yn,P as Kn,a as Xn}from"./popover-BKHsia9C.js";import{S as xe}from"./skeleton-DAvz6Hk5.js";import{S as Fr}from"./spinner-CItj22uq.js";import{T as rt,a as at,b as it,c as Xc}from"./tooltip--UA5heKX.js";import{u as qt,a as Zc,d as C0,i as vr}from"./constants-CLw0F8Mm.js";import{u as Cy,g as k0,l as zd}from"./use-mcp-prompts-DyPVjaKa.js";import{D as w0,b as ky,e as wy,c as O0,d as L0,f as Oy}from"./dialog-ZIc7OUaM.js";import{a as Tc,F as Br,b as Ur,c as Ly,d as Hr,f as jr}from"./form-Cd_AEgzv.js";import{I as D0}from"./input-B4YrZuiK.js";import{N as M0,R as P0,d as F0,f as B0,P as Sc,g as Dy,h as My,S as Py,u as U0,j as Fy,i as H0,E as j0,e as By}from"./index-CfjT_Fv-.js";import{s as Uy,c as Hy,a as jy,e as qy}from"./usage-BW6ztpN6.js";import{i as $y}from"./ArrowUp-DqOjcDuh.js";import{t as yc}from"./ChevronDown-C-3qjfHK.js";import{i as q0}from"./Edit01-DEd4k1xo.js";import{i as zy}from"./Lock01-j13GCiRT.js";import{t as $0}from"./Users03-CUiUl0DH.js";import{a as Gy,t as z0,i as G0,u as V0}from"./use-copy-XD9UDj7l.js";import{i as Qc}from"./AlertCircle-BWr4XQe9.js";import{i as Vy}from"./X-Car5B1de.js";import{c as W0,S as Y0,d as K0,a as X0,b as Z0}from"./select-Ctls6rHz.js";import{u as Q0,i as Wy,P as Yy,a as Ky}from"./org-ai-providers-dfJpkNdu.js";import{i as J0}from"./ArrowLeft-GOjXvqCa.js";import{c as Xy,b as Zy}from"./tabs-kzZLmFuM.js";import{B as Qy}from"./badge-BTw8dF6C.js";import{a as Jy,i as e1,b as e_,c as t_,C as n_}from"./collapsible-CW12HasT.js";import{i as cn}from"./Check-DAFdA2oM.js";import{i as r_}from"./Code01-CoEt5nyY.js";import{C as a_}from"./checkbox-BA_JFbx4.js";import{i as i_}from"./AlignLeft-BJyvDaBk.js";import{a as s_}from"./Image01-D4-tispo.js";import{i as o_}from"./Key01-Cv0XYLbb.js";import{s as l_}from"./RefreshCcw01-ghOVEWuz.js";import{i as Jc}from"./SearchMd-Dn4cWwEm.js";import{t as u_}from"./Settings01-B3FNPQBg.js";import{a as c_}from"./Tool01-3i6uRXKJ.js";import{b as ed,u as t1,a as n1,g as td}from"./ai-providers-logos-4n_w8l7D.js";import{a as d_,V as r1}from"./select-virtual-mcp-CEX-N6yN.js";import{l as Gd,r as p_}from"./use-mcp-resources-CFTlLllB.js";import{i as f_}from"./ChevronRight-B3gSyJmK.js";import{a as qr}from"./Copy01-D7uh0hW0.js";import{m as m_}from"./marked.esm-BaswSlok.js";import{c as g_}from"./content-blocks-o63cs2vh.js";import{M as h_}from"./mcp-app-renderer-KZyUYhBW.js";import{g as a1}from"./types-DoomhLgW.js";import{s as b_}from"./Eye-MRRTHIte.js";import{s as E_}from"./Globe02-CDBspixd.js";import{s as i1}from"./LayersTwo01-DdRcHsrK.js";import{s as T_}from"./XClose-D08ltwBw.js";import{a as S_,u as y_}from"./index-DKWOGpkx.js";import{I as __}from"./integration-icon-B3aufi6R.js";import{s as Vd}from"./Clock-Ccv6eV04.js";import{s as A_}from"./Trash01-Dmi4vR7Q.js";import{b as x_}from"./use-virtual-mcp-B8SbBr9v.js";import{b as nd,c as v_,a as N_,e as I_}from"./use-collections-DXLoMYCx.js";import{u as R_}from"./useSuspenseInfiniteQuery-DD7d1y3B.js";import{i as C_}from"./CheckCircle-BL2mIAJn.js";import{i as k_}from"./Loading01-BYjTtpy0.js";const s1=({size:t=24,color:e="currentColor",...n})=>P.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},P.createElement("path",{d:"M22 12h-4l-3 9L9 3l-3 9H2"}));s1.displayName="Activity";const o1=({size:t=24,color:e="currentColor",...n})=>P.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},P.createElement("path",{d:"M17.115 15.358c-.27.306-.554.608-.851.905-4.296 4.296-9.678 5.88-12.021 3.536-1.607-1.606-1.368-4.641.325-7.775M6.89 8.725c.281-.32.578-.636.888-.947C12.074 3.482 17.456 1.9 19.8 4.243c1.608 1.607 1.367 4.645-.33 7.781m-3.206-4.246c4.296 4.296 5.88 9.678 3.536 12.021-2.343 2.343-7.725.76-12.02-3.535C3.483 11.968 1.9 6.586 4.244 4.243c2.343-2.343 7.725-.76 12.02 3.535ZM13 12a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"}));o1.displayName="Atom02";const l1=({size:t=24,color:e="currentColor",...n})=>P.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},P.createElement("path",{d:"m21.152 10.9-9.015 9.015a5.25 5.25 0 0 1-7.425-7.425l9.016-9.015a3.5 3.5 0 1 1 4.95 4.95l-8.662 8.662a1.75 1.75 0 1 1-2.475-2.475l7.601-7.602"}));l1.displayName="Attachment01";const u1=({size:t=24,color:e="currentColor",...n})=>P.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},P.createElement("path",{d:"m7 15 5 5 5-5M7 9l5-5 5 5"}));u1.displayName="ChevronSelectorVertical";const rd=({size:t=24,color:e="currentColor",...n})=>P.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},P.createElement("path",{d:"m18 10-4-4M2.5 21.5l3.384-.376c.414-.046.62-.069.814-.131a2 2 0 0 0 .485-.234c.17-.111.317-.259.61-.553L21 7a2.828 2.828 0 1 0-4-4L3.794 16.206c-.294.294-.442.442-.553.611a2 2 0 0 0-.234.485c-.062.193-.085.4-.131.814L2.5 21.5Z"}));rd.displayName="Edit02";const c1=({size:t=24,color:e="currentColor",...n})=>P.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},P.createElement("path",{d:"M9 18.5h6M6.6 2h10.8c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C19 2.76 19 3.04 19 3.6v2.075c0 .489 0 .733-.055.963-.05.205-.13.4-.24.579-.123.201-.296.374-.642.72L15.13 10.87c-.396.396-.594.594-.668.822a1 1 0 0 0 0 .618c.074.228.272.426.668.822l2.932 2.932c.346.346.519.519.642.72.11.18.19.374.24.578.055.23.055.475.055.965V20.4c0 .56 0 .84-.109 1.054a1 1 0 0 1-.437.437C18.24 22 17.96 22 17.4 22H6.6c-.56 0-.84 0-1.054-.109a1 1 0 0 1-.437-.437C5 21.24 5 20.96 5 20.4v-2.074c0-.49 0-.734.055-.965.05-.204.13-.399.24-.578.123-.201.296-.374.642-.72L8.87 13.13c.396-.396.594-.594.668-.822a1 1 0 0 0 0-.618c-.074-.228-.272-.426-.668-.822L5.937 7.937c-.346-.346-.519-.519-.642-.72a2 2 0 0 1-.24-.579C5 6.408 5 6.164 5 5.675V3.6c0-.56 0-.84.109-1.054a1 1 0 0 1 .437-.437C5.76 2 6.04 2 6.6 2Z"}));c1.displayName="Hourglass03";const d1=({size:t=24,color:e="currentColor",...n})=>P.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},P.createElement("path",{d:"M15 16.5V19c0 .932 0 1.398-.152 1.765a2 2 0 0 1-1.083 1.083C13.398 22 12.932 22 12 22c-.932 0-1.398 0-1.765-.152a2 2 0 0 1-1.083-1.083C9 20.398 9 19.932 9 19v-2.5m6 0c2.649-1.157 4.5-3.925 4.5-7a7.5 7.5 0 0 0-15 0c0 3.075 1.851 5.843 4.5 7m6 0H9"}));d1.displayName="Lightbulb01";const p1=({size:t=24,color:e="currentColor",...n})=>P.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},P.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"}));p1.displayName="Placeholder";const f1=({size:t=24,color:e="currentColor",...n})=>P.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},P.createElement("path",{d:"m9 11.5 2 2L15.5 9m4.5 3c0 4.908-5.354 8.478-7.302 9.615-.221.129-.332.194-.488.227a1.137 1.137 0 0 1-.42 0c-.156-.034-.267-.098-.488-.227C9.354 20.478 4 16.908 4 12V7.217c0-.799 0-1.199.13-1.542a2 2 0 0 1 .548-.79c.276-.243.65-.383 1.398-.664l5.362-2.01c.208-.078.312-.117.419-.133a1 1 0 0 1 .286 0c.107.016.21.055.419.133l5.362 2.01c.748.28 1.123.421 1.398.664a2 2 0 0 1 .547.79c.131.343.131.743.131 1.542V12Z"}));f1.displayName="ShieldTick";const $r=({size:t=24,color:e="currentColor",...n})=>P.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},P.createElement("path",{d:"m6.5 13 .784 1.569c.266.53.399.796.576 1.026a3 3 0 0 0 .545.545c.23.177.495.31 1.026.575L11 17.5l-1.569.785c-.53.265-.796.398-1.026.575a3 3 0 0 0-.545.545c-.177.23-.31.495-.576 1.026L6.5 22l-.784-1.569c-.266-.53-.399-.796-.576-1.026a3 3 0 0 0-.545-.545c-.23-.177-.495-.31-1.026-.575L2 17.5l1.569-.785c.53-.265.796-.398 1.026-.575a3 3 0 0 0 .545-.545c.177-.23.31-.495.576-1.026L6.5 13ZM15 2l1.179 3.064c.282.734.423 1.1.642 1.409a3 3 0 0 0 .706.706c.309.22.675.36 1.409.642L22 9l-3.064 1.179c-.734.282-1.1.423-1.409.642a3 3 0 0 0-.706.706c-.22.309-.36.675-.642 1.409L15 16l-1.179-3.064c-.282-.734-.423-1.1-.642-1.409a3 3 0 0 0-.706-.706c-.309-.22-.675-.36-1.409-.642L8 9l3.064-1.179c.734-.282 1.1-.423 1.409-.642a3 3 0 0 0 .706-.706c.22-.309.36-.675.642-1.409L15 2Z"}));$r.displayName="Stars01";const m1=({size:t=24,color:e="currentColor",...n})=>P.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},P.createElement("path",{d:"M16 8V5l3-3 1 2 2 1-3 3h-3Zm0 0-4 4m10 0c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m5 10a5 5 0 1 1-5-5"}));m1.displayName="Target04";function w_(t){const e=W.c(10);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={strict:!1},e[0]=n):n=e[0];const r=_0(n);let a;if(e[1]!==r.collectionName||e[2]!==r.connectionId||e[3]!==r.itemId||e[4]!==t){a=[],t&&a.push(`### Selected Agent
|
|
2
2
|
- ID: ${t}`);let i;e[6]!==r.collectionName||e[7]!==r.connectionId||e[8]!==r.itemId?(i=[],r.connectionId&&i.push(`- Connection ID: ${r.connectionId}`),r.collectionName&&i.push(`- Collection: ${r.collectionName}`),r.itemId&&i.push(`- Item ID: ${r.itemId}`),e[6]=r.collectionName,e[7]=r.connectionId,e[8]=r.itemId,e[9]=i):i=e[9],i.length>0&&a.push(`### Current Resource
|
|
3
3
|
The user is viewing the following resource:
|
|
4
4
|
${i.join(`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as n,j as r,E as d,r as f,u as x,e as j}from"./index-OyLnxARk.js";import{T as h}from"./tasks-panel-6uv7gp5j.js";import{P as p}from"./index-DKWOGpkx.js";import{B as g,a as b,b as T,c as k}from"./breadcrumb-CcE89MsN.js";import{i as B}from"./Loading01-BYjTtpy0.js";import{u as S}from"./context-ClUgEsLK.js";import"./task-status-D6cPLJpA.js";import"./popover-BKHsia9C.js";import"./skeleton-DAvz6Hk5.js";import"./spinner-CItj22uq.js";import"./tooltip--UA5heKX.js";import"./index-CRi6734Z.js";import"./constants-CLw0F8Mm.js";import"./use-mcp-prompts-DyPVjaKa.js";import"./useQuery-Brtj4EoG.js";import"./dialog-ZIc7OUaM.js";import"./X-Car5B1de.js";import"./form-Cd_AEgzv.js";import"./label-BoRKSV_h.js";import"./input-B4YrZuiK.js";import"./index-CfjT_Fv-.js";import"./usage-BW6ztpN6.js";import"./ArrowUp-DqOjcDuh.js";import"./ChevronDown-C-3qjfHK.js";import"./Edit01-DEd4k1xo.js";import"./Lock01-j13GCiRT.js";import"./Users03-CUiUl0DH.js";import"./use-copy-XD9UDj7l.js";import"./AlertCircle-BWr4XQe9.js";import"./select-Ctls6rHz.js";import"./ChevronUp-Rk5dLXNx.js";import"./Check-DAFdA2oM.js";import"./org-ai-providers-dfJpkNdu.js";import"./useMutation-B_6d8oLI.js";import"./EyeOff-CgRP1cSC.js";import"./Eye-MRRTHIte.js";import"./Key01-Cv0XYLbb.js";import"./Trash01-Dmi4vR7Q.js";import"./card-B6XTMOTf.js";import"./toggle-group-C-kSfPqI.js";import"./avatar-DEdDAQ0j.js";import"./ai-providers-logos-4n_w8l7D.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./ArrowLeft-GOjXvqCa.js";import"./tabs-kzZLmFuM.js";import"./badge-BTw8dF6C.js";import"./collapsible-CW12HasT.js";import"./index-Bg2XE05Y.js";import"./Code01-CoEt5nyY.js";import"./checkbox-BA_JFbx4.js";import"./AlignLeft-BJyvDaBk.js";import"./Image01-D4-tispo.js";import"./RefreshCcw01-ghOVEWuz.js";import"./SearchMd-Dn4cWwEm.js";import"./Settings01-B3FNPQBg.js";import"./Tool01-3i6uRXKJ.js";import"./select-virtual-mcp-CEX-N6yN.js";import"./integration-icon-B3aufi6R.js";import"./Container-CQmXt7Nc.js";import"./use-virtual-mcp-B8SbBr9v.js";import"./use-collections-DXLoMYCx.js";import"./use-create-virtual-mcp-BvSTYw2n.js";import"./use-mcp-resources-CFTlLllB.js";import"./ChevronRight-B3gSyJmK.js";import"./Copy01-D7uh0hW0.js";import"./marked.esm-BaswSlok.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-KZyUYhBW.js";import"./types-DoomhLgW.js";import"./Globe02-CDBspixd.js";import"./LayersTwo01-DdRcHsrK.js";import"./XClose-D08ltwBw.js";import"./Clock-Ccv6eV04.js";import"./useSuspenseInfiniteQuery-DD7d1y3B.js";import"./infiniteQueryObserver-BkZg7AVk.js";import"./CheckCircle-BL2mIAJn.js";import"./collection-search-D6ILFEtf.js";import"./user-BLAfg6Ev.js";import"./format-time-CMKyl-GC.js";import"./Plus-1vH_gFoY.js";import"./dropdown-menu-EcTFyr4x.js";import"./decopilot-events-Brt4gAR6.js";import"./index-DxqOk4x4.js";function v(){const t=n.c(8),{org:o,project:s}=x(),a=j(),{switchToTask:c}=S();let i;t[0]!==a||t[1]!==o.slug||t[2]!==s.slug||t[3]!==c?(i=async u=>{await c(u),a({to:"/$org/$project",params:{org:o.slug,project:s.slug}})},t[0]=a,t[1]=o.slug,t[2]=s.slug,t[3]=c,t[4]=i):i=t[4];const l=i;let m;t[5]===Symbol.for("react.memo_cache_sentinel")?(m=r.jsx(p.Header,{children:r.jsx(p.Header.Left,{children:r.jsx(g,{children:r.jsx(b,{children:r.jsx(T,{children:r.jsx(k,{children:"Tasks"})})})})})}),t[5]=m):m=t[5];let e;return t[6]!==l?(e=r.jsxs(p,{children:[m,r.jsx(p.Content,{children:r.jsx("div",{className:"h-full flex flex-col overflow-hidden",children:r.jsx(h,{onTaskSelect:l})})})]}),t[6]=l,t[7]=e):e=t[7],e}function rr(){const t=n.c(1);let o;return t[0]===Symbol.for("react.memo_cache_sentinel")?(o=r.jsx(d,{children:r.jsx(f.Suspense,{fallback:r.jsx("div",{className:"flex h-full items-center justify-center",children:r.jsx(B,{size:32,className:"animate-spin text-muted-foreground"})}),children:r.jsx(v,{})})}),t[0]=o):o=t[0],o}export{rr as default};
|