@decocms/mesh 2.142.0 → 2.143.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-Zx531KAn.js → AlertCircle-C33JEKEq.js} +1 -1
- package/dist/client/assets/{AlignLeft-CGBbKVHK.js → AlignLeft-REGjRwBJ.js} +1 -1
- package/dist/client/assets/{ArrowDown-BX-IIy5w.js → ArrowDown-aOFcd1rD.js} +1 -1
- package/dist/client/assets/{ArrowLeft-D4dc0UBb.js → ArrowLeft-6J-waWbb.js} +1 -1
- package/dist/client/assets/{ArrowUp-dcB4aDLZ.js → ArrowUp-DHX-mOU2.js} +1 -1
- package/dist/client/assets/{Check-DXoRcZpn.js → Check-BQYRNFNB.js} +1 -1
- package/dist/client/assets/{CheckCircle-BP8hgPfe.js → CheckCircle-BspahUp0.js} +1 -1
- package/dist/client/assets/{CheckDone01-ca6APAHc.js → CheckDone01-CKFgRwhA.js} +1 -1
- package/dist/client/assets/{CheckVerified02-C_Ewexdw.js → CheckVerified02-BNn37Me9.js} +1 -1
- package/dist/client/assets/{ChevronDown-D04Buvau.js → ChevronDown-1tcTabrX.js} +1 -1
- package/dist/client/assets/{ChevronLeft-C8cqrSli.js → ChevronLeft-Bj3ue1eK.js} +1 -1
- package/dist/client/assets/{ChevronRight-CkAAxLvD.js → ChevronRight-DhQpCpKK.js} +1 -1
- package/dist/client/assets/{Clock-DwwOuQI4.js → Clock-C30Ff6vt.js} +1 -1
- package/dist/client/assets/{Code01-BLJKgev-.js → Code01-CycseZkv.js} +1 -1
- package/dist/client/assets/{Container-CSl1es2V.js → Container-BU5QPEDW.js} +1 -1
- package/dist/client/assets/{Copy01-B4eRdmVC.js → Copy01-Bub_iK1k.js} +1 -1
- package/dist/client/assets/{Dataflow03-SiitV-oV.js → Dataflow03-CP3uRpJJ.js} +1 -1
- package/dist/client/assets/{DotsHorizontal-DzRIJPXY.js → DotsHorizontal-BCdQOVe0.js} +1 -1
- package/dist/client/assets/{DotsVertical-B6bpYQLL.js → DotsVertical-BSoYRiIr.js} +1 -1
- package/dist/client/assets/{Download01-DDnPOFFT.js → Download01-DYjfgXnI.js} +1 -1
- package/dist/client/assets/{Edit01-CoWrVJPj.js → Edit01-BIUDv_si.js} +1 -1
- package/dist/client/assets/{Edit05-BUQBpzoO.js → Edit05-B3UbFiYN.js} +1 -1
- package/dist/client/assets/{Eye-DNSEDYe8.js → Eye-CJ0GO8QL.js} +1 -1
- package/dist/client/assets/{File02-BXS3LEA8.js → File02-CJJT1Lsy.js} +1 -1
- package/dist/client/assets/{File06-h52WT7aG.js → File06-BzTcP1fd.js} +1 -1
- package/dist/client/assets/{FilterLines-CsjQLyQm.js → FilterLines-CgDlJMHC.js} +1 -1
- package/dist/client/assets/{Globe01-CSEqx1SJ.js → Globe01-pQgT6Pgy.js} +1 -1
- package/dist/client/assets/{Globe02-YyAAQROb.js → Globe02-DK-nDQII.js} +1 -1
- package/dist/client/assets/{Grid01-Ju9gLjOW.js → Grid01-Cv6nD-bp.js} +1 -1
- package/dist/client/assets/{Hash02-TG1GIkeV.js → Hash02-2uEkY5na.js} +1 -1
- package/dist/client/assets/{Home02-TzIRlDMK.js → Home02-Cuswvl5N.js} +1 -1
- package/dist/client/assets/{Image01-PGP5Jz22.js → Image01-_ugWt3d2.js} +1 -1
- package/dist/client/assets/{Inbox01-CjHNjCjB.js → Inbox01-B0oK7RI9.js} +1 -1
- package/dist/client/assets/{InfoCircle-CVW6wgFf.js → InfoCircle-WmJgMXWS.js} +1 -1
- package/dist/client/assets/{Key01-9PzzeBlc.js → Key01-DW6fqfWo.js} +1 -1
- package/dist/client/assets/{LayersTwo01-XOG8qRvr.js → LayersTwo01-BcA1LBal.js} +1 -1
- package/dist/client/assets/{LayoutLeft-BcthWHLG.js → LayoutLeft-B9EmI1if.js} +1 -1
- package/dist/client/assets/{Link01-2BHrruNj.js → Link01-BnhQ6HaU.js} +1 -1
- package/dist/client/assets/{LinkExternal01-CxAidvQ-.js → LinkExternal01-DYtAatm2.js} +1 -1
- package/dist/client/assets/{List-Bj4VjFJ6.js → List-BFACCNRk.js} +1 -1
- package/dist/client/assets/{Loading01-DF5pxnn8.js → Loading01-B8ixav8o.js} +1 -1
- package/dist/client/assets/{Lock01-CPqKu_Mb.js → Lock01-BOdqI63W.js} +1 -1
- package/dist/client/assets/{Play-CUMfSU-t.js → Play-CEbM08S_.js} +1 -1
- package/dist/client/assets/{Plus-CEtl-Eq7.js → Plus-D4t5EG83.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-Bcbx9L0j.js → RefreshCcw01-CCgnRJd5.js} +1 -1
- package/dist/client/assets/{Save01-BtoFb1Cg.js → Save01-DynhEPAB.js} +1 -1
- package/dist/client/assets/{SearchMd-u1QGwQkU.js → SearchMd-B8KV3nui.js} +1 -1
- package/dist/client/assets/{Settings01-C1oZxROY.js → Settings01-BdGMn6lJ.js} +1 -1
- package/dist/client/assets/{Shield01-DoZAYqqP.js → Shield01-CpBrW2km.js} +1 -1
- package/dist/client/assets/{Terminal-DobKmqGm.js → Terminal-fmXnrrqs.js} +1 -1
- package/dist/client/assets/{Trash01-c47UOodj.js → Trash01-_Tzcparm.js} +1 -1
- package/dist/client/assets/{Upload01-C3K15n1N.js → Upload01-DtqvlWBL.js} +1 -1
- package/dist/client/assets/{Users03-Z0r1cCGf.js → Users03-Z1ByU7gs.js} +1 -1
- package/dist/client/assets/{X-CT_P09q2.js → X-DUw9p4mH.js} +1 -1
- package/dist/client/assets/{XCircle-BNAlXeL2.js → XCircle-B8o5NZjk.js} +1 -1
- package/dist/client/assets/{XClose-BIpOBHWg.js → XClose-DuxEOCv_.js} +1 -1
- package/dist/client/assets/{Zap-BYVebEYM.js → Zap-Bfu3dNEc.js} +1 -1
- package/dist/client/assets/{agent-connections-preview-B76ZYrs2.js → agent-connections-preview-K7AOWu8a.js} +1 -1
- package/dist/client/assets/agent-detail-C94NpUEI.js +2 -0
- package/dist/client/assets/{agents-avEyjtsq.js → agents-BSKLOaMu.js} +1 -1
- package/dist/client/assets/{alert-dialog-DXvhyacf.js → alert-dialog-DaXpWdw0.js} +2 -2
- package/dist/client/assets/{auth-catchall-FvylLzD9.js → auth-catchall-COBLdahK.js} +1 -1
- package/dist/client/assets/{avatar-DGDgNwX-.js → avatar-Ci3kAkCl.js} +1 -1
- package/dist/client/assets/{badge-DtcA_2rB.js → badge-Bjvc5XIA.js} +1 -1
- package/dist/client/assets/{binder-CaZ6b20X.js → binder-D8s-h8oe.js} +1 -1
- package/dist/client/assets/{breadcrumb-DPLSdTx1.js → breadcrumb-mjrAJ44V.js} +1 -1
- package/dist/client/assets/{card-Bz05CYUR.js → card-DFLwXVkm.js} +1 -1
- package/dist/client/assets/{chart-DYrz9LTc.js → chart-qGX5OGhH.js} +1 -1
- package/dist/client/assets/{checkbox-JiwlvimE.js → checkbox-YMBbuKOZ.js} +1 -1
- package/dist/client/assets/{circle-alert-CtnOwoV2.js → circle-alert-DGdpKWGk.js} +1 -1
- package/dist/client/assets/collapsible-CxJfsyMO.js +23 -0
- package/dist/client/assets/{collection-detail-CBGjxXPP.js → collection-detail-DVcCqR3z.js} +2 -2
- package/dist/client/assets/{collection-display-button-CXc-TgEJ.js → collection-display-button-BxbTqYSq.js} +1 -1
- package/dist/client/assets/{collection-search-Dl5JvsI0.js → collection-search-C_6fMPfN.js} +1 -1
- package/dist/client/assets/{collection-tab-BlE4CTwD.js → collection-tab-Bh2VOYGp.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-eN4uWzLn.js → collection-table-wrapper-COmJ-B8Q.js} +1 -1
- package/dist/client/assets/{collection-tabs-CK4RWFd-.js → collection-tabs-DQrbo9Ay.js} +1 -1
- package/dist/client/assets/{command-BzF9LDzy.js → command-B1HOWPFt.js} +1 -1
- package/dist/client/assets/{connect-B1CrEofK.js → connect-CpLI2s8J.js} +1 -1
- package/dist/client/assets/{connection-card-CC22E-3G.js → connection-card-JlUaDjOw.js} +1 -1
- package/dist/client/assets/connection-detail-C_SdT5ck.js +1 -0
- package/dist/client/assets/{connection-status-B1K3m1_w.js → connection-status-8Ht5iRaJ.js} +1 -1
- package/dist/client/assets/{connections-BuggzhbD.js → connections-DeEqc0GM.js} +1 -1
- package/dist/client/assets/constants-BSa33005.js +1 -0
- package/dist/client/assets/{constants-CRvMLa9p.js → constants-Bbw6jN_V.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-DIZjTiis.js → create-organization-dialog-V-msF1Jz.js} +1 -1
- package/dist/client/assets/{create-project-dialog-Dut0dyR9.js → create-project-dialog-DaBc1e0V.js} +1 -1
- package/dist/client/assets/{danger-Dare7pC6.js → danger-BTw0q1dL.js} +1 -1
- package/dist/client/assets/{danger-zone-_BODcOmd.js → danger-zone-CROdw5xZ.js} +1 -1
- package/dist/client/assets/{decopilot-events-bTg09qGr.js → decopilot-events-CkaAIkUJ.js} +1 -1
- package/dist/client/assets/{dependencies-BT9TgTWZ.js → dependencies-mZgEmBs1.js} +1 -1
- package/dist/client/assets/{dialog-DSCIUn11.js → dialog-DP7DY4yr.js} +1 -1
- package/dist/client/assets/dropdown-menu-C6kuYZ7_.js +1 -0
- package/dist/client/assets/{dynamic-plugin-layout-CXCsSgRX.js → dynamic-plugin-layout-CjkQri2q.js} +1 -1
- package/dist/client/assets/{editable-task-title-DKlfwqLm.js → editable-task-title-C0JEoPnJ.js} +1 -1
- package/dist/client/assets/{empty-state-C64F3xDv.js → empty-state-DClv5r7C.js} +1 -1
- package/dist/client/assets/{env-vars-editor-ClFO22Eh.js → env-vars-editor-zacGIDRP.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CrY_sL6W.js → extract-connection-data-BZQA712X.js} +1 -1
- package/dist/client/assets/{file-browser-DSHBHgjG.js → file-browser-BMpcvnxm.js} +2 -2
- package/dist/client/assets/{form-CVLoDgzL.js → form-CCy4OYZh.js} +1 -1
- package/dist/client/assets/{general-CYKgldaV.js → general-DsCslUFr.js} +1 -1
- package/dist/client/assets/{grid-view-DvrbtUer.js → grid-view-BJN_C_nJ.js} +1 -1
- package/dist/client/assets/{home-BuzXHaZj.js → home-ZNtjrtnf.js} +1 -1
- package/dist/client/assets/{icon-picker-5LH0UiWF.js → icon-picker-DBuQoDjt.js} +1 -1
- package/dist/client/assets/index-4jzw9CYj.js +25 -0
- package/dist/client/assets/{index-jBnBTTB0.js → index-5xKQyQZE.js} +1 -1
- package/dist/client/assets/{index-BCf_VMXY.js → index-BwnxEimb.js} +1 -1
- package/dist/client/assets/{index-6Z25-w5a.js → index-CEKEKIun.js} +1 -1
- package/dist/client/assets/{index-CoyJj2VR.js → index-CdiDGOKq.js} +50 -50
- package/dist/client/assets/{index-A_CnuSis.js → index-CuGOLHld.js} +1 -1
- package/dist/client/assets/{index-Co1xrsbj.js → index-Dig2D0kL.js} +1 -1
- package/dist/client/assets/{index-B7Bu7nQ7.js → index-Dw9bGcxk.js} +1 -1
- package/dist/client/assets/{index-KAycGEnT.js → index-WgRy4XEz.js} +28 -28
- package/dist/client/assets/{infiniteQueryObserver-DctmDFEe.js → infiniteQueryObserver-6Sv1mY48.js} +1 -1
- package/dist/client/assets/{input-s8rw5Kfa.js → input-BJJ-HZyT.js} +1 -1
- package/dist/client/assets/{integration-icon-BAlg7muO.js → integration-icon-R2eYJYHC.js} +1 -1
- package/dist/client/assets/{label-lqq4AMOf.js → label-meKA8koQ.js} +1 -1
- package/dist/client/assets/{layout-BdJDt40T.js → layout-CIWWZ1ER.js} +1 -1
- package/dist/client/assets/{layout-CaxeqVAE.js → layout-Cny1vUWb.js} +1 -1
- package/dist/client/assets/{localstorage-keys-DK1Id_ip.js → localstorage-keys-BUkugh6_.js} +1 -1
- package/dist/client/assets/{login--Bk_liKs.js → login-Dov4Ln-t.js} +1 -1
- package/dist/client/assets/{markdown-HCjujTl2.js → markdown-DdHbXzu-.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-Bconp3w4.js → mcp-app-renderer-PyxYtSmQ.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DcSxwlYK.js → mcp-oauth-BUdDcINO.js} +1 -1
- package/dist/client/assets/{mcp-server-card-B0UwO4c6.js → mcp-server-card-wnDYG_0O.js} +1 -1
- package/dist/client/assets/{mcp-server-detail-zb689o0t.js → mcp-server-detail-CAZe7uN6.js} +2 -2
- package/dist/client/assets/{members-A9Co33Fe.js → members-H_aHt8EH.js} +1 -1
- package/dist/client/assets/{monaco-editor-BGkR3-IA.js → monaco-editor-CYn377dR.js} +4 -4
- package/dist/client/assets/{monitoring-DtdfvOM5.js → monitoring-IVWnDVEz.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-edit-GWWMfh0m.js → monitoring-dashboard-edit--p_6gE6M.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-view-Cm896dO-.js → monitoring-dashboard-view-pfH_ninA.js} +2 -2
- package/dist/client/assets/{oauth-callback-BSGOfJmL.js → oauth-callback-BBfWFUEO.js} +1 -1
- package/dist/client/assets/{page-PU0vqAHP.js → page-CcB9pt8_.js} +1 -1
- package/dist/client/assets/page-CsXX8k6j.js +1 -0
- package/dist/client/assets/{plugin-empty-state-CNAE295F.js → plugin-empty-state-BXGv0GDx.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-BdIJtKhO.js → plugin-empty-state-PHb3h5Mu.js} +1 -1
- package/dist/client/assets/{plugin-header-C3hBljo3.js → plugin-header-BbwqgGs3.js} +1 -1
- package/dist/client/assets/{plugin-header-BO6BGJC7.js → plugin-header-Bn5QWmGt.js} +1 -1
- package/dist/client/assets/plugins-rCmASNpc.js +1 -0
- package/dist/client/assets/{popover-DSO1tjgf.js → popover-BSwvSWKq.js} +1 -1
- package/dist/client/assets/{project-app-view-DEVHaVoM.js → project-app-view-CU4S5SVV.js} +1 -1
- package/dist/client/assets/{project-layout-BZqAcTC3.js → project-layout-D2s_-ed-.js} +1 -1
- package/dist/client/assets/{project-plugins-DkIXV878.js → project-plugins-CFsL8fat.js} +1 -1
- package/dist/client/assets/{projects-list-DD9bayAR.js → projects-list-BwshQdVA.js} +1 -1
- package/dist/client/assets/{readme-viewer-DEgSduvy.js → readme-viewer-BKWT3e1y.js} +1 -1
- package/dist/client/assets/{registry-layout-BbOZb50w.js → registry-layout-DVHyhv6u.js} +1 -1
- package/dist/client/assets/{registry-utils-BJRD11-o.js → registry-utils-DwrfZsML.js} +1 -1
- package/dist/client/assets/{reports-layout-0fvVXIA9.js → reports-layout-CRWz25vV.js} +1 -1
- package/dist/client/assets/{reset-password-BBFIx6IU.js → reset-password-DwDCI2Lt.js} +1 -1
- package/dist/client/assets/{resizable-FDnvuXI8.js → resizable-CuAJwpCE.js} +1 -1
- package/dist/client/assets/{save-actions-BrexEzhw.js → save-actions-DSOaJsEB.js} +1 -1
- package/dist/client/assets/{scroll-area-BoIKmmj_.js → scroll-area-DFSZEFGu.js} +1 -1
- package/dist/client/assets/{select-XWfX294J.js → select-D5UCIms-.js} +1 -1
- package/dist/client/assets/shell-layout-Bi6EGRx-.js +3 -0
- package/dist/client/assets/{sidebar-settings-CYnkTQwX.js → sidebar-settings-Ens_v1-3.js} +1 -1
- package/dist/client/assets/{skeleton-l9u4bmPQ.js → skeleton-DJ9ksHdo.js} +1 -1
- package/dist/client/assets/{spinner-CQhhuHCn.js → spinner-C_jBik6U.js} +1 -1
- package/dist/client/assets/{store-invite-QKjyJOdx.js → store-invite-B4x6yCxM.js} +1 -1
- package/dist/client/assets/{switch-BTH5DtNC.js → switch-CHDqnzpR.js} +1 -1
- package/dist/client/assets/{table-CObvzzoK.js → table-KeNwDMbd.js} +1 -1
- package/dist/client/assets/{tabs-B62zcrrU.js → tabs-BWF5GtqN.js} +1 -1
- package/dist/client/assets/tasks-B4Nf2WMJ.js +1 -0
- package/dist/client/assets/tasks-panel-F9MkKd8u.js +1 -0
- package/dist/client/assets/{textarea-CKFVaVym.js → textarea-BbLT_f8Z.js} +1 -1
- package/dist/client/assets/{time-range-picker-C2BX3Ytm.js → time-range-picker-D8n6QptR.js} +1 -1
- package/dist/client/assets/{toggle-group-BWymC1w6.js → toggle-group-CGeB8kMK.js} +1 -1
- package/dist/client/assets/{tools-list-CBKDjlC9.js → tools-list-B15drLS3.js} +1 -1
- package/dist/client/assets/{tooltip-BD36KVkP.js → tooltip-Babiaq0d.js} +1 -1
- package/dist/client/assets/{topbar-portal-CyJ7_aXv.js → topbar-portal-Dp4BFYej.js} +1 -1
- package/dist/client/assets/{types-CgRNzZIg.js → types-BJf49Mfd.js} +1 -1
- package/dist/client/assets/{use-binding-eAl0-ngZ.js → use-binding-CAoXPeYp.js} +1 -1
- package/dist/client/assets/{use-collections-ROKIiOzV.js → use-collections-B-x23mni.js} +1 -1
- package/dist/client/assets/{use-connection-DWTVYLGI.js → use-connection-CfeJyAqX.js} +1 -1
- package/dist/client/assets/{use-copy-Cxp-hpbY.js → use-copy-CMFYl2Ga.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-CWXwWPev.js → use-create-virtual-mcp-BQ2vLOYt.js} +1 -1
- package/dist/client/assets/{use-install-from-registry-CzqEIQq2.js → use-install-from-registry-D80VT6Ub.js} +1 -1
- package/dist/client/assets/{use-list-state-cW6KZE3t.js → use-list-state-D-tKxlpi.js} +1 -1
- package/dist/client/assets/{use-llm-D0wV35M9.js → use-llm-BMRIZw-b.js} +1 -1
- package/dist/client/assets/{use-mcp-resources-BTKxmEpv.js → use-mcp-resources-7Fl5_HS_.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-DkmUq8XI.js → use-mcp-tools-Bj_Ri2bf.js} +1 -1
- package/dist/client/assets/{use-members-Bksy3767.js → use-members-TEDVnI8Z.js} +1 -1
- package/dist/client/assets/{use-mobile-C7Xn-ZVB.js → use-mobile-PmmG7UNI.js} +1 -1
- package/dist/client/assets/{use-project-BZjOe5ok.js → use-project-IWwy_h7S.js} +1 -1
- package/dist/client/assets/{use-settings-modal-BpLqrFwi.js → use-settings-modal-C4b8mb1A.js} +1 -1
- package/dist/client/assets/{use-view-mode-DxCF7P6S.js → use-view-mode-DT0UZS0w.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-DrNWNgvb.js → use-virtual-mcp-DXNTpzcv.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-D2ydKX7z.js +1 -0
- package/dist/client/assets/{useMutation-Ctk5b8uR.js → useMutation-DmgIjz65.js} +1 -1
- package/dist/client/assets/useQuery-C48kdbmo.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-Dk_AfHIX.js +1 -0
- package/dist/client/assets/{user-BU3jjBpz.js → user-DC5rs3GH.js} +1 -1
- package/dist/client/assets/{workflow-BNkb2XNC.js → workflow-DaR6d6tq.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +181 -181
- package/dist/server/migrate.js +1 -1
- package/dist/server/server.js +167 -167
- package/package.json +1 -1
- package/dist/client/assets/agent-detail-ean34cyZ.js +0 -2
- package/dist/client/assets/collapsible-Dz6kdDQx.js +0 -23
- package/dist/client/assets/connection-detail-B-ICGeJ4.js +0 -1
- package/dist/client/assets/constants-I25hmjxi.js +0 -1
- package/dist/client/assets/dropdown-menu-DMgECNP1.js +0 -1
- package/dist/client/assets/index-Cg5VAr11.js +0 -25
- package/dist/client/assets/page-BjfHsKND.js +0 -1
- package/dist/client/assets/plugins-BttmmeIz.js +0 -1
- package/dist/client/assets/shell-layout-CfqRN6gC.js +0 -3
- package/dist/client/assets/tasks-DBMv6koR.js +0 -1
- package/dist/client/assets/tasks-panel-jUSk_q_P.js +0 -1
- package/dist/client/assets/useInfiniteQuery-Clfr9I7T.js +0 -1
- package/dist/client/assets/useQuery-DCrAUBx5.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CG43fx0v.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as j,c as b,j as s,v as D,E as ee,u as te,d as se,B as ie}from"./index-KAycGEnT.js";import{V as le,C as h}from"./index-CoyJj2VR.js";import{E as re,C as Z}from"./editable-task-title-DKlfwqLm.js";import{a as G}from"./tasks-panel-jUSk_q_P.js";import{u as U,a as oe}from"./collapsible-Dz6kdDQx.js";import{I as J}from"./integration-icon-BAlg7muO.js";import{b as ne,P as ae,a as ce}from"./popover-DSO1tjgf.js";import{S as q}from"./skeleton-l9u4bmPQ.js";import{i as me,d as de}from"./constants-CRvMLa9p.js";import{b as fe}from"./use-virtual-mcp-DrNWNgvb.js";import{i as ue}from"./ChevronRight-CkAAxLvD.js";import{t as Q}from"./Users03-Z0r1cCGf.js";import{P as $}from"./index-A_CnuSis.js";import{R,a as F,b as K}from"./resizable-FDnvuXI8.js";import"./spinner-CQhhuHCn.js";import"./tooltip-BD36KVkP.js";import"./index-B7Bu7nQ7.js";import"./decopilot-events-bTg09qGr.js";import"./useQuery-DCrAUBx5.js";import"./dialog-DSCIUn11.js";import"./X-CT_P09q2.js";import"./form-CVLoDgzL.js";import"./label-lqq4AMOf.js";import"./input-s8rw5Kfa.js";import"./usage-B8eRkRZY.js";import"./ArrowUp-dcB4aDLZ.js";import"./ChevronDown-D04Buvau.js";import"./Edit01-CoWrVJPj.js";import"./XCircle-BNAlXeL2.js";import"./AlertCircle-Zx531KAn.js";import"./select-XWfX294J.js";import"./Check-DXoRcZpn.js";import"./tabs-B62zcrrU.js";import"./localstorage-keys-DK1Id_ip.js";import"./useMutation-Ctk5b8uR.js";import"./ArrowLeft-D4dc0UBb.js";import"./use-copy-Cxp-hpbY.js";import"./badge-DtcA_2rB.js";import"./Code01-BLJKgev-.js";import"./SearchMd-u1QGwQkU.js";import"./use-create-virtual-mcp-CWXwWPev.js";import"./use-mcp-resources-BTKxmEpv.js";import"./Copy01-B4eRdmVC.js";import"./marked.esm-BaswSlok.js";import"./markdown-HCjujTl2.js";import"./mcp-app-renderer-Bconp3w4.js";import"./types-CgRNzZIg.js";import"./Eye-DNSEDYe8.js";import"./Globe02-YyAAQROb.js";import"./LayersTwo01-XOG8qRvr.js";import"./XClose-BIpOBHWg.js";import"./collection-search-Dl5JvsI0.js";import"./Loading01-DF5pxnn8.js";import"./use-connection-DWTVYLGI.js";import"./use-collections-ROKIiOzV.js";import"./generate-id-Dyweu44Y.js";import"./Clock-DwwOuQI4.js";import"./Trash01-c47UOodj.js";import"./CheckCircle-BP8hgPfe.js";import"./ChevronLeft-C8cqrSli.js";import"./user-BU3jjBpz.js";import"./avatar-DGDgNwX-.js";import"./format-time-CMKyl-GC.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./Plus-CEtl-Eq7.js";import"./use-llm-D0wV35M9.js";import"./use-binding-eAl0-ngZ.js";import"./binder-CaZ6b20X.js";import"./checkbox-JiwlvimE.js";import"./AlignLeft-CGBbKVHK.js";import"./Image01-PGP5Jz22.js";import"./RefreshCcw01-Bcbx9L0j.js";import"./Settings01-C1oZxROY.js";import"./useSuspenseInfiniteQuery-CG43fx0v.js";import"./infiniteQueryObserver-DctmDFEe.js";import"./Container-CSl1es2V.js";const X=({size:e=24,color:t="currentColor",...i})=>j.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i},j.createElement("path",{d:"M15 3v18M7.8 3h8.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C21 5.28 21 6.12 21 7.8v8.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V7.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C5.28 3 6.12 3 7.8 3Z"}));X.displayName="LayoutRight";const Y=({size:e=24,color:t="currentColor",...i})=>j.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i},j.createElement("path",{d:"m10 15-3.075 3.114c-.43.434-.644.651-.828.666a.5.5 0 0 1-.421-.172c-.12-.14-.12-.446-.12-1.056v-1.56c0-.548-.449-.944-.99-1.024v0a3 3 0 0 1-2.534-2.533C2 12.219 2 11.96 2 11.445V6.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C4.28 2 5.12 2 6.8 2h7.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C19 4.28 19 5.12 19 6.8V11m0 11-2.176-1.513c-.306-.213-.46-.32-.626-.395a2.002 2.002 0 0 0-.462-.145c-.18-.033-.367-.033-.74-.033H13.2c-1.12 0-1.68 0-2.108-.218a2 2 0 0 1-.874-.874C10 18.394 10 17.834 10 16.714V14.2c0-1.12 0-1.68.218-2.108a2 2 0 0 1 .874-.874C11.52 11 12.08 11 13.2 11h5.6c1.12 0 1.68 0 2.108.218a2 2 0 0 1 .874.874C22 12.52 22 13.08 22 14.2v2.714c0 .932 0 1.398-.152 1.766a2 2 0 0 1-1.083 1.082c-.367.152-.833.152-1.765.152V22Z"}));Y.displayName="MessageChatSquare";function pe(e){const t=b.c(15),{agent:i}=e,{setVirtualMcpId:p}=U();let c;t[0]!==i.id||t[1]!==p?(c=()=>{p(i.id)},t[0]=i.id,t[1]=p,t[2]=c):c=t[2];const r=c;let m;t[3]===Symbol.for("react.memo_cache_sentinel")?(m=D("flex flex-col items-center gap-3 p-2 rounded-lg","transition-colors hover:bg-accent/30","cursor-pointer","self-stretch"),t[3]=m):m=t[3];const f=`Select agent ${i.title}`;let o;t[4]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(Q,{size:20}),t[4]=o):o=t[4];let n;t[5]!==i.icon||t[6]!==i.title?(n=s.jsx(J,{icon:i.icon,name:i.title,fallbackIcon:o}),t[5]=i.icon,t[6]=i.title,t[7]=n):n=t[7];let l;t[8]!==i.title?(l=s.jsx("p",{className:"text-sm text-foreground text-center leading-tight line-clamp-2",children:i.title}),t[8]=i.title,t[9]=l):l=t[9];let a;return t[10]!==r||t[11]!==f||t[12]!==n||t[13]!==l?(a=s.jsxs("button",{type:"button",onClick:r,className:m,"aria-label":f,children:[n,l]}),t[10]=r,t[11]=f,t[12]=n,t[13]=l,t[14]=a):a=t[14],a}function xe(e){const t=b.c(14),{virtualMcps:i,selectedVirtualMcpId:p,onVirtualMcpChange:c}=e,[r,m]=j.useState(!1),f=j.useRef(null);let o,n;t[0]!==r?(o=()=>{r&&setTimeout(()=>{f.current?.focus()},0)},n=[r],t[0]=r,t[1]=o,t[2]=n):(o=t[1],n=t[2]),j.useEffect(o,n);let l;t[3]!==c?(l=N=>{c(N),m(!1)},t[3]=c,t[4]=l):l=t[4];const a=l;let d;t[5]===Symbol.for("react.memo_cache_sentinel")?(d=D("flex flex-col items-center gap-3 p-2 rounded-lg","transition-colors hover:bg-accent/30","cursor-pointer","self-stretch"),t[5]=d):d=t[5];let u;t[6]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx(ne,{asChild:!0,children:s.jsxs("button",{type:"button",className:d,"aria-label":"See all agents",children:[s.jsx("div",{className:"size-12 rounded-lg bg-accent flex items-center justify-center shrink-0",children:s.jsx(ue,{size:24,className:"text-foreground"})}),s.jsx("p",{className:"text-sm text-foreground text-center leading-tight",children:"See all"})]})}),t[6]=u):u=t[6];let x;t[7]!==a||t[8]!==p||t[9]!==i?(x=s.jsx(ae,{className:"w-[550px] p-0 overflow-hidden",align:"start",side:"top",sideOffset:8,children:s.jsx(le,{virtualMcps:i,selectedVirtualMcpId:p,onVirtualMcpChange:a,searchInputRef:f})}),t[7]=a,t[8]=p,t[9]=i,t[10]=x):x=t[10];let A;return t[11]!==r||t[12]!==x?(A=s.jsxs(ce,{open:r,onOpenChange:m,children:[u,x]}),t[11]=r,t[12]=x,t[13]=A):A=t[13],A}function he(){const e=b.c(20),t=fe(),{selectedVirtualMcp:i,setVirtualMcpId:p}=U();let c,r,m,f,o,n;if(e[0]!==t){o=Symbol.for("react.early_return_sentinel");e:{const x=t.filter(be).slice(0,6);if(x.length===0){o=null;break e}n=t.map(ge),m="w-full max-w-[800px]",e[7]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx("h2",{className:"text-sm font-medium text-muted-foreground mb-4",children:"Recently used agents"}),e[7]=f):f=e[7],c="grid grid-cols-3 sm:grid-cols-4 md:grid-cols-7 gap-2",r=x.map(je)}e[0]=t,e[1]=c,e[2]=r,e[3]=m,e[4]=f,e[5]=o,e[6]=n}else c=e[1],r=e[2],m=e[3],f=e[4],o=e[5],n=e[6];if(o!==Symbol.for("react.early_return_sentinel"))return o;const l=i?.id??null;let a;e[8]!==p||e[9]!==l||e[10]!==n?(a=s.jsx(xe,{virtualMcps:n,selectedVirtualMcpId:l,onVirtualMcpChange:p}),e[8]=p,e[9]=l,e[10]=n,e[11]=a):a=e[11];let d;e[12]!==c||e[13]!==r||e[14]!==a?(d=s.jsxs("div",{className:c,children:[r,a]}),e[12]=c,e[13]=r,e[14]=a,e[15]=d):d=e[15];let u;return e[16]!==m||e[17]!==f||e[18]!==d?(u=s.jsxs("div",{className:m,children:[f,d]}),e[16]=m,e[17]=f,e[18]=d,e[19]=u):u=e[19],u}function je(e){return s.jsx(pe,{agent:e},e.id??"default")}function ge(e){return{id:e.id,title:e.title,description:e.description,icon:e.icon}}function be(e){return e.id!==null&&!me(e.id)}function Ne(){const e=b.c(2);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(q,{className:"h-5 w-40 mb-4"}),e[0]=t):t=e[0];let i;return e[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsxs("div",{className:"w-full max-w-[800px]",children:[t,s.jsx("div",{className:"grid grid-cols-3 sm:grid-cols-4 md:grid-cols-7 gap-2",children:Array.from({length:7}).map(Ce)})]}),e[1]=i):i=e[1],i}function Ce(e,t){return s.jsxs("div",{className:"flex flex-col items-center gap-3 p-2 self-stretch",children:[s.jsx(q,{className:"size-6 rounded-md shrink-0"}),s.jsx(q,{className:"h-4 w-full"})]},t)}function ve(){const e=b.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(j.Suspense,{fallback:s.jsx(Ne,{}),children:s.jsx(he,{})}),e[0]=t):t=e[0],t}function Se(){const e=b.c(50),{org:t}=te(),{data:i}=se.useSession(),{modelsConnections:p,isChatEmpty:c,activeTaskId:r,tasks:m,selectedVirtualMcp:f}=oe();let o;if(e[0]!==r||e[1]!==m){let g;e[3]!==r?(g=P=>P.id===r,e[3]=r,e[4]=g):g=e[4],o=m.find(g),e[0]=r,e[1]=m,e[2]=o}else o=e[2];const n=o,[l,a]=j.useState(!1);let d;e[5]!==i?.user?.name?(d=i?.user?.name?.split(" ")[0]||"there",e[5]=i?.user?.name,e[6]=d):d=e[6];const u=d;let x;e[7]!==t.id?(x=de(t.id),e[7]=t.id,e[8]=x):x=e[8];const N=f??x;if(p.length===0){let g,P;e[9]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(R,{defaultSize:20,minSize:10,id:"tasks",order:1,children:s.jsx(G,{})}),P=s.jsx(F,{className:"bg-border/30"}),e[9]=g,e[10]=P):(g=e[9],P=e[10]);const W=l?50:80;let V;e[11]!==t?(V=s.jsx("div",{className:"flex flex-col h-full bg-background items-center justify-center",children:s.jsx(h.NoLlmBindingEmptyState,{org:t})}),e[11]=t,e[12]=V):V=e[12];let E;e[13]!==W||e[14]!==V?(E=s.jsx(R,{defaultSize:W,minSize:30,id:"main",order:2,children:V}),e[13]=W,e[14]=V,e[15]=E):E=e[15];let I;e[16]!==l?(I=l&&s.jsxs(s.Fragment,{children:[s.jsx(F,{className:"bg-border/30"}),s.jsx(R,{defaultSize:30,minSize:15,id:"context",order:3,children:s.jsx(Z,{onClose:()=>a(!1)})})]}),e[16]=l,e[17]=I):I=e[17];let B;return e[18]!==E||e[19]!==I?(B=s.jsxs(K,{direction:"horizontal",className:"size-full",children:[g,P,E,I]}),e[18]=E,e[19]=I,e[20]=B):B=e[20],B}let H,L;e[21]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(R,{defaultSize:20,minSize:10,id:"tasks",order:1,children:s.jsx(G,{})}),L=s.jsx(F,{className:"bg-border/30"}),e[21]=H,e[22]=L):(H=e[21],L=e[22]);const O=l?50:80;let C;e[23]!==n?(C=n?.title&&s.jsx(re,{taskId:n.id,text:n.title,className:"text-sm font-medium text-foreground"}),e[23]=n,e[24]=C):C=e[24];let v;e[25]!==C?(v=s.jsx($.Header.Left,{className:"gap-2",children:C}),e[25]=C,e[26]=v):v=e[26];let S;e[27]!==c||e[28]!==l?(S=!c&&s.jsx("button",{type:"button",onClick:()=>a(ye),className:D("flex size-7 items-center justify-center rounded-md border border-input hover:bg-accent transition-colors",l&&"bg-accent"),title:"Toggle context panel",children:s.jsx(X,{size:14,className:"text-muted-foreground"})}),e[27]=c,e[28]=l,e[29]=S):S=e[29];let y;e[30]!==S?(y=s.jsx($.Header.Right,{className:"gap-1",children:S}),e[30]=S,e[31]=y):y=e[31];let k;e[32]!==v||e[33]!==y?(k=s.jsxs($.Header,{className:"flex-none z-10 bg-background",children:[v,y]}),e[32]=v,e[33]=y,e[34]=k):k=e[34];let _;e[35]!==N||e[36]!==c||e[37]!==u?(_=c?s.jsxs("div",{className:"flex-1 min-h-0 flex flex-col items-center justify-center px-10 pb-32 pt-10",children:[s.jsxs("div",{className:"flex flex-col items-center w-full max-w-[600px]",children:[s.jsx("div",{className:"flex justify-center mb-4",children:s.jsx(J,{icon:N.icon,name:N.title,size:"md",fallbackIcon:s.jsx(Q,{size:20}),className:"size-12 rounded-xl border border-stone-200/60 shadow-sm aspect-square transition-opacity duration-200"})}),s.jsx("div",{className:"text-center mb-8",children:s.jsxs("p",{className:"text-xl font-medium text-foreground",children:["What's on your mind, ",u,"?"]})}),s.jsx("div",{className:"w-full",children:s.jsx(h.Input,{})}),s.jsx(h.IceBreakers,{className:"w-full"})]}),s.jsx("div",{className:"flex flex-col items-center w-full mt-4",children:s.jsx(ve,{})})]}):s.jsxs(s.Fragment,{children:[s.jsx(h.Main,{children:s.jsx(h.Messages,{})}),s.jsx(h.Footer,{children:s.jsx(h.Input,{onOpenContextPanel:()=>a(!0)})})]}),e[35]=N,e[36]=c,e[37]=u,e[38]=_):_=e[38];let z;e[39]!==k||e[40]!==_?(z=s.jsxs(h,{className:"h-full bg-background",children:[k,_]}),e[39]=k,e[40]=_,e[41]=z):z=e[41];let w;e[42]!==z||e[43]!==O?(w=s.jsx(R,{defaultSize:O,minSize:30,id:"main",order:2,children:z}),e[42]=z,e[43]=O,e[44]=w):w=e[44];let M;e[45]!==l?(M=l&&s.jsxs(s.Fragment,{children:[s.jsx(F,{className:"bg-border/30"}),s.jsx(R,{defaultSize:30,minSize:15,id:"context",order:3,children:s.jsx(Z,{onClose:()=>a(!1)})})]}),e[45]=l,e[46]=M):M=e[46];let T;return e[47]!==w||e[48]!==M?(T=s.jsxs(K,{direction:"horizontal",className:"size-full",children:[H,L,w,M]}),e[47]=w,e[48]=M,e[49]=T):T=e[49],T}function ye(e){return!e}function ke(e){const t=b.c(14),{error:i,onRetry:p}=e,c=i?.message?.includes("401")||i?.message?.toLowerCase().includes("unauthorized");let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsxs($.Header,{className:"flex-none",children:[s.jsx($.Header.Left,{className:"gap-2"}),s.jsx($.Header.Right,{className:"gap-1"})]}),t[0]=r):r=t[0];let m;t[1]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx("div",{className:"bg-destructive/10 p-3 rounded-full mx-auto w-fit",children:s.jsx(Y,{className:"h-6 w-6 text-destructive"})}),t[1]=m):m=t[1];const f=c?"Unable to load models":"Something went wrong";let o;t[2]!==f?(o=s.jsx("h3",{className:"text-lg font-medium",children:f}),t[2]=f,t[3]=o):o=t[3];const n=c?"There was an authentication error while loading the models. This might be due to an expired session or invalid API key.":i?.message||"An unexpected error occurred";let l;t[4]!==n?(l=s.jsx("p",{className:"text-sm text-muted-foreground",children:n}),t[4]=n,t[5]=l):l=t[5];let a;t[6]!==o||t[7]!==l?(a=s.jsxs("div",{className:"space-y-2",children:[o,l]}),t[6]=o,t[7]=l,t[8]=a):a=t[8];let d;t[9]!==p?(d=s.jsx(ie,{variant:"outline",onClick:p,children:"Try again"}),t[9]=p,t[10]=d):d=t[10];let u;return t[11]!==a||t[12]!==d?(u=s.jsxs(h,{children:[r,s.jsx("div",{className:"flex-1 flex flex-col items-center justify-center p-6 text-center",children:s.jsxs("div",{className:"max-w-sm space-y-4",children:[m,a,d]})})]}),t[11]=a,t[12]=d,t[13]=u):u=t[13],u}function Ut(){const e=b.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(ee,{fallback:_e,children:s.jsx(j.Suspense,{fallback:s.jsx(h.Skeleton,{}),children:s.jsx(Se,{})})}),e[0]=t):t=e[0],t}function _e(e){const{error:t,resetError:i}=e;return s.jsx(ke,{error:t,onRetry:i})}export{Ut as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as r,j as i}from"./index-KAycGEnT.js";import{P as m}from"./project-plugins-DkIXV878.js";import"./useQuery-DCrAUBx5.js";import"./useMutation-Ctk5b8uR.js";import"./constants-CRvMLa9p.js";import"./switch-BTH5DtNC.js";import"./label-lqq4AMOf.js";import"./Container-CSl1es2V.js";import"./use-connection-DWTVYLGI.js";import"./use-collections-ROKIiOzV.js";import"./use-binding-eAl0-ngZ.js";import"./binder-CaZ6b20X.js";import"./use-install-from-registry-CzqEIQq2.js";import"./extract-connection-data-CrY_sL6W.js";import"./constants-I25hmjxi.js";import"./github-icon-Dp3wHhYE.js";import"./registry-utils-BJRD11-o.js";import"./generate-id-Dyweu44Y.js";import"./Loading01-DF5pxnn8.js";import"./Plus-CEtl-Eq7.js";import"./select-XWfX294J.js";import"./index-B7Bu7nQ7.js";import"./Check-DXoRcZpn.js";import"./ChevronDown-D04Buvau.js";function v(){const o=r.c(1);let t;return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=i.jsx(m,{}),o[0]=t):t=o[0],t}export{v as default};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{r as E,c as _,j as s,E as Ue,u as ve,v as I,b as Be,aE as Fe,L as Oe,c5 as gt,bc as bt,O as F,aD as jt,ab as vt,ad as Nt,ae as yt,ac as St,af as kt,ah as Ct,ag as _t,y as wt,G as $t,e as qe,d as pe,t as ue,c6 as zt,bB as It,n as Pt,B as Te,A as At,S as Ye,f as Et,h as Ot,N as Tt,m as Mt,K as Dt,aG as Qe,P as Rt}from"./index-KAycGEnT.js";import{C as J}from"./index-CoyJj2VR.js";import{I as Lt}from"./integration-icon-BAlg7muO.js";import{u as Ze,P as de}from"./index-A_CnuSis.js";import{d as Ht,u as Ut}from"./constants-CRvMLa9p.js";import{n as Me}from"./CheckDone01-ca6APAHc.js";import{n as Bt}from"./ChevronLeft-C8cqrSli.js";import{i as Ft}from"./Loading01-DF5pxnn8.js";import{s as Se}from"./Plus-CEtl-Eq7.js";import{t as Ge}from"./Users03-Z0r1cCGf.js";import{i as De}from"./X-CT_P09q2.js";import{E as Gt,C as Wt}from"./editable-task-title-DKlfwqLm.js";import{T as Kt}from"./tasks-panel-jUSk_q_P.js";import{a as Vt,e as qt,C as Yt,d as Qt,f as Zt}from"./collapsible-Dz6kdDQx.js";import{C as Xe}from"./create-project-dialog-Dut0dyR9.js";import{u as Ae}from"./tabs-B62zcrrU.js";import{t as Je,u as et,i as Xt}from"./use-settings-modal-BpLqrFwi.js";import{n as Jt}from"./Container-CSl1es2V.js";import{e as es}from"./Dataflow03-SiitV-oV.js";import{a as ts}from"./Home02-TzIRlDMK.js";import{i as Re}from"./LayoutLeft-BcthWHLG.js";import{t as Ce}from"./Settings01-C1oZxROY.js";import{u as tt,a as st}from"./use-project-BZjOe5ok.js";import{u as ss}from"./use-mobile-C7Xn-ZVB.js";import{c as ns,b as is,a as ls,T as as}from"./tooltip-BD36KVkP.js";import{S as ee}from"./skeleton-l9u4bmPQ.js";import{n as ge}from"./LinkExternal01-CxAidvQ-.js";import{t as nt}from"./ChevronDown-D04Buvau.js";import{A as be}from"./avatar-DGDgNwX-.js";import{c as q,g as ke,d as os,e as rs,f as cs,b as it,D as lt,a as at}from"./dropdown-menu-DMgECNP1.js";import{i as je}from"./Check-DXoRcZpn.js";import{C as ds}from"./create-organization-dialog-DIZjTiis.js";import{a as ms}from"./Copy01-B4eRdmVC.js";import{i as fs}from"./File06-h52WT7aG.js";import{i as us}from"./Globe01-CSEqx1SJ.js";import{i as ps}from"./Shield01-DoZAYqqP.js";import{P as xs,b as hs,a as gs}from"./popover-DSO1tjgf.js";import{n as Ve}from"./Inbox01-CjHNjCjB.js";import{s as bs}from"./XClose-BIpOBHWg.js";import{b as js}from"./use-connection-DWTVYLGI.js";import{b as vs}from"./use-mcp-tools-DkmUq8XI.js";import{c as Ns,A as ys}from"./use-binding-eAl0-ngZ.js";import{i as Ss}from"./ChevronRight-CkAAxLvD.js";import{u as We,L as Ke}from"./localstorage-keys-DK1Id_ip.js";import{a as ks,R as ot,b as Cs}from"./resizable-FDnvuXI8.js";import"./spinner-CQhhuHCn.js";import"./decopilot-events-bTg09qGr.js";import"./useQuery-DCrAUBx5.js";import"./dialog-DSCIUn11.js";import"./form-CVLoDgzL.js";import"./label-lqq4AMOf.js";import"./input-s8rw5Kfa.js";import"./usage-B8eRkRZY.js";import"./ArrowUp-dcB4aDLZ.js";import"./Edit01-CoWrVJPj.js";import"./XCircle-BNAlXeL2.js";import"./AlertCircle-Zx531KAn.js";import"./select-XWfX294J.js";import"./index-B7Bu7nQ7.js";import"./ArrowLeft-D4dc0UBb.js";import"./use-copy-Cxp-hpbY.js";import"./badge-DtcA_2rB.js";import"./Code01-BLJKgev-.js";import"./use-virtual-mcp-DrNWNgvb.js";import"./use-collections-ROKIiOzV.js";import"./useMutation-Ctk5b8uR.js";import"./SearchMd-u1QGwQkU.js";import"./use-create-virtual-mcp-CWXwWPev.js";import"./use-mcp-resources-BTKxmEpv.js";import"./marked.esm-BaswSlok.js";import"./markdown-HCjujTl2.js";import"./mcp-app-renderer-Bconp3w4.js";import"./types-CgRNzZIg.js";import"./Eye-DNSEDYe8.js";import"./Globe02-YyAAQROb.js";import"./LayersTwo01-XOG8qRvr.js";import"./collection-search-Dl5JvsI0.js";import"./generate-id-Dyweu44Y.js";import"./Clock-DwwOuQI4.js";import"./Trash01-c47UOodj.js";import"./CheckCircle-BP8hgPfe.js";import"./user-BU3jjBpz.js";import"./format-time-CMKyl-GC.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-llm-D0wV35M9.js";import"./checkbox-JiwlvimE.js";import"./AlignLeft-CGBbKVHK.js";import"./Image01-PGP5Jz22.js";import"./RefreshCcw01-Bcbx9L0j.js";import"./useSuspenseInfiniteQuery-CG43fx0v.js";import"./infiniteQueryObserver-DctmDFEe.js";import"./textarea-CKFVaVym.js";import"./alert-dialog-DXvhyacf.js";import"./binder-CaZ6b20X.js";const rt=({size:t=24,color:e="currentColor",...n})=>E.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},E.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"}));rt.displayName="BarChart10";const ct=({size:t=24,color:e="currentColor",...n})=>E.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},E.createElement("path",{d:"M8 14s1.5 2 4 2 4-2 4-2m-1-5h.01M9 9h.01M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-6.5-3a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0Zm-6 0a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0Z"}));ct.displayName="FaceSmile";const dt=({size:t=24,color:e="currentColor",...n})=>E.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},E.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"}));dt.displayName="LogOut01";function _s(){const t=_.c(72),{org:e}=ve(),[,n]=Ze(),{selectedVirtualMcp:i,modelsConnections:l,isChatEmpty:a,activeTaskId:o,createTask:r,switchToTask:c,tasks:d}=Vt();let f;if(t[0]!==o||t[1]!==d){let K;t[3]!==o?(K=ne=>ne.id===o,t[3]=o,t[4]=K):K=t[4],f=d.find(K),t[0]=o,t[1]=d,t[2]=f}else f=t[2];const u=f,[m,x]=E.useState("chat"),[h,b]=E.useTransition();let g;t[5]!==e.id?(g=Ht(e.id),t[5]=e.id,t[6]=g):g=t[6];const v=i??g;let p;t[7]!==r?(p=()=>{b(()=>{r()})},t[7]=r,t[8]=p):p=t[8];const S=p;if(l.length===0){let K;t[9]===Symbol.for("react.memo_cache_sentinel")?(K=s.jsx(de.Header.Left,{className:"gap-2"}),t[9]=K):K=t[9];let ne;t[10]!==n?(ne=()=>n(!1),t[10]=n,t[11]=ne):ne=t[11];let he;t[12]===Symbol.for("react.memo_cache_sentinel")?(he=s.jsx(De,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[12]=he):he=t[12];let ae;t[13]!==ne?(ae=s.jsxs(de.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[K,s.jsx(de.Header.Right,{className:"gap-1",children:s.jsx("button",{type:"button",onClick:ne,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:he})})]}),t[13]=ne,t[14]=ae):ae=t[14];let oe;t[15]!==e?(oe=s.jsx(J.Main,{className:"flex flex-col items-center",children:s.jsx(J.EmptyState,{children:s.jsx(J.NoLlmBindingEmptyState,{title:"No model provider connected",description:"Connect to a model provider to unlock AI-powered features.",org:e})})}),t[15]=e,t[16]=oe):oe=t[16];let Ne;return t[17]!==ae||t[18]!==oe?(Ne=s.jsxs(J,{className:"animate-in fade-in-0 duration-200",children:[ae,oe]}),t[17]=ae,t[18]=oe,t[19]=Ne):Ne=t[19],Ne}const N=m!=="chat"||h?"opacity-0 pointer-events-none":"opacity-100";let j;t[20]!==N?(j=I("absolute inset-0 flex flex-col transition-opacity duration-100 ease-out",N),t[20]=N,t[21]=j):j=t[21];let y;t[22]!==u||t[23]!==a?(y=!a&&u?.title&&s.jsx(Gt,{taskId:u.id,text:u.title,className:"text-sm font-medium text-foreground"}),t[22]=u,t[23]=a,t[24]=y):y=t[24];let w;t[25]!==y?(w=s.jsx(de.Header.Left,{className:"gap-2",children:y}),t[25]=y,t[26]=w):w=t[26];let $;t[27]===Symbol.for("react.memo_cache_sentinel")?($=s.jsx(Se,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[27]=$):$=t[27];let k;t[28]!==S||t[29]!==h?(k=s.jsx("button",{type:"button",onClick:S,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[28]=S,t[29]=h,t[30]=k):k=t[30];let A;t[31]===Symbol.for("react.memo_cache_sentinel")?(A=()=>x("tasks"),t[31]=A):A=t[31];let T;t[32]===Symbol.for("react.memo_cache_sentinel")?(T=s.jsx("button",{type:"button",onClick:A,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent group cursor-pointer",title:"Tasks",children:s.jsx(Me,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"})}),t[32]=T):T=t[32];let L;t[33]!==n?(L=()=>n(!1),t[33]=n,t[34]=L):L=t[34];let U;t[35]===Symbol.for("react.memo_cache_sentinel")?(U=s.jsx(De,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[35]=U):U=t[35];let H;t[36]!==L?(H=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:U}),t[36]=L,t[37]=H):H=t[37];let M;t[38]!==H||t[39]!==k?(M=s.jsxs(de.Header.Right,{className:"gap-1",children:[k,T,H]}),t[38]=H,t[39]=k,t[40]=M):M=t[40];let D;t[41]!==M||t[42]!==w?(D=s.jsxs(de.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[w,M]}),t[41]=M,t[42]=w,t[43]=D):D=t[43];let O;t[44]!==v||t[45]!==a?(O=s.jsx(J.Main,{children:a?s.jsx(J.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(Lt,{icon:v.icon,name:v.title,size:"lg",fallbackIcon:s.jsx(Ge,{size:32}),className:"size-[60px]! rounded-[18px]!"}),s.jsx("h3",{className:"text-xl font-medium text-foreground",children:v.title}),s.jsx("div",{className:"text-muted-foreground text-center text-sm max-w-md",children:v.description??"Ask anything about configuring model providers or using MCP Mesh."})]}),s.jsx(J.IceBreakers,{})]})}):s.jsx(J.Messages,{})}),t[44]=v,t[45]=a,t[46]=O):O=t[46];let B;t[47]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx(J.Footer,{children:s.jsx(J.Input,{onOpenContextPanel:()=>x("context")})}),t[47]=B):B=t[47];let R;t[48]!==D||t[49]!==O||t[50]!==j?(R=s.jsxs("div",{className:j,children:[D,O,B]}),t[48]=D,t[49]=O,t[50]=j,t[51]=R):R=t[51];const V=m==="tasks"?"opacity-100":"opacity-0 pointer-events-none";let ce;t[52]!==V?(ce=I("absolute inset-0 flex flex-col transition-opacity duration-100 ease-out",V),t[52]=V,t[53]=ce):ce=t[53];let te;t[54]===Symbol.for("react.memo_cache_sentinel")?(te=s.jsx(de.Header.Left,{className:"gap-2",children:s.jsx("span",{className:"text-sm font-normal text-foreground",children:"Tasks"})}),t[54]=te):te=t[54];let se;t[55]===Symbol.for("react.memo_cache_sentinel")?(se=()=>x("chat"),t[55]=se):se=t[55];let Y;t[56]===Symbol.for("react.memo_cache_sentinel")?(Y=s.jsxs(de.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[te,s.jsx(de.Header.Right,{className:"gap-1",children:s.jsx("button",{type:"button",onClick:se,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(Bt,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"})})})]}),t[56]=Y):Y=t[56];let Q;t[57]===Symbol.for("react.memo_cache_sentinel")?(Q=s.jsx("div",{className:"flex-1 flex items-center justify-center",children:s.jsx(Ft,{size:16,className:"animate-spin text-muted-foreground"})}),t[57]=Q):Q=t[57];let G;t[58]!==c?(G=s.jsx(Ue,{fallback:ws,children:s.jsx(E.Suspense,{fallback:Q,children:s.jsx(Kt,{onTaskSelect:async K=>{await c(K),x("chat")}})})}),t[58]=c,t[59]=G):G=t[59];let W;t[60]!==ce||t[61]!==G?(W=s.jsxs("div",{className:ce,children:[Y,G]}),t[60]=ce,t[61]=G,t[62]=W):W=t[62];const P=m==="context"?"opacity-100":"opacity-0 pointer-events-none";let Z;t[63]!==P?(Z=I("absolute inset-0 flex flex-col transition-opacity duration-100 ease-out",P),t[63]=P,t[64]=Z):Z=t[64];let xe;t[65]===Symbol.for("react.memo_cache_sentinel")?(xe=s.jsx(Wt,{back:!0,onClose:()=>x("chat")}),t[65]=xe):xe=t[65];let ie;t[66]!==Z?(ie=s.jsx("div",{className:Z,children:xe}),t[66]=Z,t[67]=ie):ie=t[67];let le;return t[68]!==R||t[69]!==W||t[70]!==ie?(le=s.jsxs(J,{className:"relative overflow-hidden animate-in fade-in-0 duration-200",children:[R,W,ie]}),t[68]=R,t[69]=W,t[70]=ie,t[71]=le):le=t[71],le}function ws(){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 $s(){const t=_.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(J.Skeleton,{}),t[0]=e):e=t[0];let n;return t[1]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(Ue,{fallback:e,children:s.jsx(E.Suspense,{fallback:s.jsx(J.Skeleton,{}),children:s.jsx(_s,{})})}),t[1]=n):n=t[1],n}function zs(){const t=_.c(58),[e]=Ae(),{locator:n,org:i}=ve(),l=Be(),a=Fe(),{org:o,project:r}=Oe.parse(n),c=Oe.isOrgAdminProject(n),{data:d}=tt(i.id,r);let f;t[0]!==d?.enabledPlugins?(f=d?.enabledPlugins??[],t[0]=d?.enabledPlugins,t[1]=f):f=t[1];const u=f,m=d?.ui?.pinnedViews??[];let x;t[2]!==u?(x=z=>u.includes(z.pluginId),t[2]=u,t[3]=x):x=t[3];const h=gt.filter(x),b=a.location.pathname,g=`/${o}/${r}`,C=b===g||b===`${g}/`;let v;t[4]!==g||t[5]!==b?(v=z=>b.startsWith(`${g}/${z}`),t[4]=g,t[5]=b,t[6]=v):v=t[6];const p=v;let S;t[7]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx(ts,{}),t[7]=S):S=t[7];const N={key:"home",label:"Home",icon:S,isActive:C,onClick:()=>{C?window.dispatchEvent(new CustomEvent("reset-home-view")):l({to:"/$org/$project",params:{org:o,project:r}})}};let j;t[8]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx(Me,{}),t[8]=j):j=t[8];const y={key:"tasks",label:"Tasks",icon:j,isActive:p("tasks"),onClick:()=>l({to:"/$org/$project/tasks",params:{org:o,project:F}})};let w;t[9]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(Jt,{}),t[9]=w):w=t[9];const $={key:"mcps",label:"Connections",icon:w,isActive:p("mcps"),onClick:()=>l({to:"/$org/$project/mcps",params:{org:o,project:F}})};let k;t[10]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx(jt,{}),t[10]=k):k=t[10];const A={key:"projects",label:"Projects",icon:k,isActive:p("projects"),onClick:()=>l({to:"/$org/$project/projects",params:{org:o,project:F}})};let T;t[11]===Symbol.for("react.memo_cache_sentinel")?(T=s.jsx(Je,{}),t[11]=T):T=t[11];const L={key:"store",label:"Store",icon:T,isActive:p("store"),onClick:()=>l({to:"/$org/$project/store",params:{org:o,project:F}})};let U;t[12]===Symbol.for("react.memo_cache_sentinel")?(U=s.jsx(Ge,{}),t[12]=U):U=t[12];const H={key:"agents",label:"Agents",icon:U,isActive:p("agents"),onClick:()=>l({to:"/$org/$project/agents",params:{org:o,project:F}})};let M;t[13]===Symbol.for("react.memo_cache_sentinel")?(M=s.jsx(rt,{}),t[13]=M):M=t[13];const D={key:"monitoring",label:"Monitor",icon:M,isActive:p("monitoring"),onClick:()=>l({to:"/$org/$project/monitoring",params:{org:o,project:F}})};let O;t[14]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsx(ct,{}),t[14]=O):O=t[14];const B={key:"members",label:"Members",icon:O,isActive:p("members"),onClick:()=>l({to:"/$org/$project/members",params:{org:o,project:F}})},R=h.map(z=>({key:z.pluginId,label:z.label,icon:z.icon,isActive:p(z.pluginId),onClick:()=>l({to:"/$org/$project/$pluginId",params:{org:o,project:r,pluginId:z.pluginId}})}));let V;t[15]!==u?(V=z=>u.includes(z.pluginId),t[15]=u,t[16]=V):V=t[16];const te=bt.filter(V).map(z=>({type:"group",group:{id:`${z.pluginId}-${z.id}`,label:z.label,items:z.items.map((X,fe)=>({key:`${z.pluginId}-${z.id}-${fe}`,label:X.label,icon:X.icon,isActive:p(z.pluginId),onClick:()=>l({to:"/$org/$project/$pluginId",params:{org:o,project:r,pluginId:z.pluginId}})})),defaultExpanded:z.defaultExpanded??!0}})),se=m.map(z=>({key:`app-${z.connectionId}-${z.toolName}`,label:z.label||z.toolName,icon:z.icon?s.jsx("img",{src:z.icon,alt:"",className:"size-4 rounded"}):s.jsx(Re,{}),isActive:p(`apps/${z.connectionId}/${encodeURIComponent(z.toolName)}`),onClick:()=>l({to:"/$org/$project/apps/$connectionId/$toolName",params:{org:o,project:r,connectionId:z.connectionId,toolName:z.toolName}})}));let Y;t[17]!==se?(Y=se.length>0?{type:"group",group:{id:"apps",label:"Apps",items:se,defaultExpanded:!0}}:null,t[17]=se,t[18]=Y):Y=t[18];const Q=Y;if(c){let z;t[19]===Symbol.for("react.memo_cache_sentinel")?(z=s.jsx(Ce,{}),t[19]=z):z=t[19];let X;t[20]!==p?(X=p("settings"),t[20]=p,t[21]=X):X=t[21];let fe;t[22]!==l||t[23]!==o?(fe=()=>l({to:"/$org/$project/settings",params:{org:o,project:F}}),t[22]=l,t[23]=o,t[24]=fe):fe=t[24];let ze;t[25]!==X||t[26]!==fe?(ze={key:"settings",label:"Settings",icon:z,isActive:X,onClick:fe},t[25]=X,t[26]=fe,t[27]=ze):ze=t[27];const ht=ze,Ie=[{type:"items",items:[N,y,...e.experimental_projects?[A]:[]]},{type:"group",group:{id:"build",label:"Build",items:[H,$,L],defaultExpanded:!0}},{type:"group",group:{id:"manage",label:"Manage",items:[D,B,ht],defaultExpanded:!0}}];if(R.length>0){let Pe;t[28]!==R?(Pe={type:"items",items:R},t[28]=R,t[29]=Pe):Pe=t[29],Ie.push(Pe)}return te.length>0&&Ie.push(...te),Q&&Ie.push(Q),Ie}let G;t[30]===Symbol.for("react.memo_cache_sentinel")?(G=s.jsx(Me,{}),t[30]=G):G=t[30];let W;t[31]!==p?(W=p("tasks"),t[31]=p,t[32]=W):W=t[32];let P;t[33]!==l||t[34]!==o||t[35]!==r?(P=()=>l({to:"/$org/$project/tasks",params:{org:o,project:r}}),t[33]=l,t[34]=o,t[35]=r,t[36]=P):P=t[36];let Z;t[37]!==W||t[38]!==P?(Z={key:"tasks",label:"Tasks",icon:G,isActive:W,onClick:P},t[37]=W,t[38]=P,t[39]=Z):Z=t[39];const xe=Z;let ie;t[40]===Symbol.for("react.memo_cache_sentinel")?(ie=s.jsx(es,{}),t[40]=ie):ie=t[40];let le;t[41]!==p?(le=p("workflows"),t[41]=p,t[42]=le):le=t[42];let K;t[43]!==l||t[44]!==o||t[45]!==r?(K=()=>l({to:"/$org/$project/workflows",params:{org:o,project:r}}),t[43]=l,t[44]=o,t[45]=r,t[46]=K):K=t[46];let ne;t[47]!==le||t[48]!==K?(ne={key:"workflows",label:"Workflows",icon:ie,isActive:le,onClick:K},t[47]=le,t[48]=K,t[49]=ne):ne=t[49];const he=ne;let ae;t[50]===Symbol.for("react.memo_cache_sentinel")?(ae=s.jsx(Ce,{}),t[50]=ae):ae=t[50];let oe;t[51]!==l||t[52]!==o||t[53]!==r?(oe={key:"configure",label:"Configure",icon:ae,isActive:!1,isExternal:!0,onClick:()=>l({to:"/$org/$project/projects/$slug/settings/general",params:{org:o,project:F,slug:r}})},t[51]=l,t[52]=o,t[53]=r,t[54]=oe):oe=t[54];const ye=[{type:"items",items:[N,xe,he,oe]}];if(R.length>0){let z;t[55]===Symbol.for("react.memo_cache_sentinel")?(z={type:"divider"},t[55]=z):z=t[55],ye.push(z);let X;t[56]!==R?(X={type:"items",items:R},t[56]=R,t[57]=X):X=t[57],ye.push(X)}return te.length>0&&ye.push(...te),Q&&ye.push(Q),ye}function Is(t){const e=_.c(4);let n;e[0]!==t?({...n}=t,e[0]=t,e[1]=n):n=e[1];let i;return e[2]!==n?(i=s.jsx(vt,{"data-slot":"sheet",...n}),e[2]=n,e[3]=i):i=e[3],i}function Ps(t){const e=_.c(4);let n;e[0]!==t?({...n}=t,e[0]=t,e[1]=n):n=e[1];let i;return e[2]!==n?(i=s.jsx(kt,{"data-slot":"sheet-portal",...n}),e[2]=n,e[3]=i):i=e[3],i}function As(t){const e=_.c(8);let n,i;e[0]!==t?({className:n,...i}=t,e[0]=t,e[1]=n,e[2]=i):(n=e[1],i=e[2]);let l;e[3]!==n?(l=I("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",n),e[3]=n,e[4]=l):l=e[4];let a;return e[5]!==i||e[6]!==l?(a=s.jsx(_t,{"data-slot":"sheet-overlay",className:l,...i}),e[5]=i,e[6]=l,e[7]=a):a=e[7],a}function Es(t){const e=_.c(17);let n,i,l,a;e[0]!==t?({className:i,children:n,side:a,...l}=t,e[0]=t,e[1]=n,e[2]=i,e[3]=l,e[4]=a):(n=e[1],i=e[2],l=e[3],a=e[4]);const o=a===void 0?"right":a;let r;e[5]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(As,{}),e[5]=r):r=e[5];const c=o==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",d=o==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",f=o==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",u=o==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t";let m;e[6]!==i||e[7]!==c||e[8]!==d||e[9]!==f||e[10]!==u?(m=I("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",c,d,f,u,i),e[6]=i,e[7]=c,e[8]=d,e[9]=f,e[10]=u,e[11]=m):m=e[11];let x;e[12]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsxs(Ct,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[s.jsx(De,{className:"size-4"}),s.jsx("span",{className:"sr-only",children:"Close"})]}),e[12]=x):x=e[12];let h;return e[13]!==n||e[14]!==l||e[15]!==m?(h=s.jsxs(Ps,{children:[r,s.jsxs(St,{"data-slot":"sheet-content",className:m,...l,children:[n,x]})]}),e[13]=n,e[14]=l,e[15]=m,e[16]=h):h=e[16],h}function Os(t){const e=_.c(8);let n,i;e[0]!==t?({className:n,...i}=t,e[0]=t,e[1]=n,e[2]=i):(n=e[1],i=e[2]);let l;e[3]!==n?(l=I("flex flex-col gap-1.5 p-4",n),e[3]=n,e[4]=l):l=e[4];let a;return e[5]!==i||e[6]!==l?(a=s.jsx("div",{"data-slot":"sheet-header",className:l,...i}),e[5]=i,e[6]=l,e[7]=a):a=e[7],a}function Ts(t){const e=_.c(8);let n,i;e[0]!==t?({className:n,...i}=t,e[0]=t,e[1]=n,e[2]=i):(n=e[1],i=e[2]);let l;e[3]!==n?(l=I("text-foreground font-semibold",n),e[3]=n,e[4]=l):l=e[4];let a;return e[5]!==i||e[6]!==l?(a=s.jsx(Nt,{"data-slot":"sheet-title",className:l,...i}),e[5]=i,e[6]=l,e[7]=a):a=e[7],a}function Ms(t){const e=_.c(8);let n,i;e[0]!==t?({className:n,...i}=t,e[0]=t,e[1]=n,e[2]=i):(n=e[1],i=e[2]);let l;e[3]!==n?(l=I("text-muted-foreground text-sm",n),e[3]=n,e[4]=l):l=e[4];let a;return e[5]!==i||e[6]!==l?(a=s.jsx(yt,{"data-slot":"sheet-description",className:l,...i}),e[5]=i,e[6]=l,e[7]=a):a=e[7],a}const Ds="sidebar_state",Rs=3600*24*7,Ls="16rem",Hs="18rem",Us="3rem",Bs="b",mt=E.createContext(null);function Ee(){const t=E.useContext(mt);if(!t)throw new Error("useSidebar must be used within a SidebarProvider.");return t}function Fs(t){const e=_.c(21),{defaultOpen:n,open:i,onOpenChange:l,children:a}=t,o=n===void 0?!0:n,r=ss(),[c,d]=E.useState(!1),[f,u]=E.useState(o),m=i??f;let x;e[0]!==m||e[1]!==l?(x=w=>{const $=typeof w=="function"?w(m):w;l?l($):u($),document.cookie=`${Ds}=${$}; path=/; max-age=${Rs}`},e[0]=m,e[1]=l,e[2]=x):x=e[2];const h=x;let b;e[3]!==r||e[4]!==h?(b=()=>r?d(Ws):h(Gs),e[3]=r,e[4]=h,e[5]=b):b=e[5];const g=b;let C,v;e[6]!==g?(C=()=>{const w=$=>{if($.key===Bs&&($.metaKey||$.ctrlKey)){const k=$.target;if(k.tagName==="INPUT"||k.tagName==="TEXTAREA"||k.isContentEditable)return;$.preventDefault(),g()}};return globalThis.addEventListener("keydown",w),()=>globalThis.removeEventListener("keydown",w)},v=[g],e[6]=g,e[7]=C,e[8]=v):(C=e[7],v=e[8]),E.useEffect(C,v);const p=m?"expanded":"collapsed";let S;e[9]!==r||e[10]!==m||e[11]!==c||e[12]!==h||e[13]!==p||e[14]!==g?(S={state:p,open:m,setOpen:h,isMobile:r,openMobile:c,setOpenMobile:d,toggleSidebar:g},e[9]=r,e[10]=m,e[11]=c,e[12]=h,e[13]=p,e[14]=g,e[15]=S):S=e[15];const N=S;let j;e[16]!==a?(j=s.jsx(ns,{delayDuration:0,children:a}),e[16]=a,e[17]=j):j=e[17];let y;return e[18]!==N||e[19]!==j?(y=s.jsx(mt.Provider,{value:N,children:j}),e[18]=N,e[19]=j,e[20]=y):y=e[20],y}function Gs(t){return!t}function Ws(t){return!t}function Ks(t){const e=_.c(14);let n,i,l,a;e[0]!==t?({className:i,style:a,children:n,...l}=t,e[0]=t,e[1]=n,e[2]=i,e[3]=l,e[4]=a):(n=e[1],i=e[2],l=e[3],a=e[4]);let o;e[5]!==a?(o={"--sidebar-width":Ls,"--sidebar-width-icon":Us,...a},e[5]=a,e[6]=o):o=e[6];const r=o;let c;e[7]!==i?(c=I("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",i),e[7]=i,e[8]=c):c=e[8];let d;return e[9]!==n||e[10]!==l||e[11]!==r||e[12]!==c?(d=s.jsx("div",{"data-slot":"sidebar-wrapper",style:r,className:c,...l,children:n}),e[9]=n,e[10]=l,e[11]=r,e[12]=c,e[13]=d):d=e[13],d}function Vs(t){const e=_.c(42);let n,i,l,a,o,r;e[0]!==t?({side:a,variant:o,collapsible:r,className:i,children:n,...l}=t,e[0]=t,e[1]=n,e[2]=i,e[3]=l,e[4]=a,e[5]=o,e[6]=r):(n=e[1],i=e[2],l=e[3],a=e[4],o=e[5],r=e[6]);const c=a===void 0?"left":a,d=o===void 0?"sidebar":o,f=r===void 0?"offcanvas":r,{isMobile:u,state:m,openMobile:x,setOpenMobile:h}=Ee();if(f==="none"){let j;e[7]!==i?(j=I("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",i),e[7]=i,e[8]=j):j=e[8];let y;return e[9]!==n||e[10]!==l||e[11]!==j?(y=s.jsx("div",{"data-slot":"sidebar",className:j,...l,children:n}),e[9]=n,e[10]=l,e[11]=j,e[12]=y):y=e[12],y}if(u){let j;e[13]===Symbol.for("react.memo_cache_sentinel")?(j={"--sidebar-width":Hs},e[13]=j):j=e[13];let y;e[14]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsxs(Os,{className:"sr-only",children:[s.jsx(Ts,{children:"Sidebar"}),s.jsx(Ms,{children:"Displays the mobile sidebar."})]}),e[14]=y):y=e[14];let w;e[15]!==n?(w=s.jsx("div",{className:"flex h-full w-full flex-col",children:n}),e[15]=n,e[16]=w):w=e[16];let $;e[17]!==c||e[18]!==w?($=s.jsxs(Es,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:j,side:c,children:[y,w]}),e[17]=c,e[18]=w,e[19]=$):$=e[19];let k;return e[20]!==x||e[21]!==l||e[22]!==h||e[23]!==$?(k=s.jsx(Is,{open:x,onOpenChange:h,...l,children:$}),e[20]=x,e[21]=l,e[22]=h,e[23]=$,e[24]=k):k=e[24],k}const b=d==="floating"||d==="inset"?"data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"data-[collapsible=icon]:w-(--sidebar-width-icon)";let g;e[25]!==b?(g=I("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",b),e[25]=b,e[26]=g):g=e[26];const C=m==="collapsed"?f:"";let v;e[27]!==i?(v=I("flex flex-col h-full w-(--sidebar-width)",i),e[27]=i,e[28]=v):v=e[28];let p;e[29]!==n?(p=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:n}),e[29]=n,e[30]=p):p=e[30];let S;e[31]!==l||e[32]!==v||e[33]!==p?(S=s.jsx("div",{"data-slot":"sidebar-container",className:v,...l,children:p}),e[31]=l,e[32]=v,e[33]=p,e[34]=S):S=e[34];let N;return e[35]!==c||e[36]!==m||e[37]!==g||e[38]!==C||e[39]!==S||e[40]!==d?(N=s.jsx("div",{className:g,"data-state":m,"data-collapsible":C,"data-variant":d,"data-side":c,"data-slot":"sidebar",children:S}),e[35]=c,e[36]=m,e[37]=g,e[38]=C,e[39]=S,e[40]=d,e[41]=N):N=e[41],N}function qs(t){const e=_.c(8);let n,i;e[0]!==t?({className:n,...i}=t,e[0]=t,e[1]=n,e[2]=i):(n=e[1],i=e[2]);let l;e[3]!==n?(l=I("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",n),e[3]=n,e[4]=l):l=e[4];let a;return e[5]!==i||e[6]!==l?(a=s.jsx("main",{"data-slot":"sidebar-inset",className:l,...i}),e[5]=i,e[6]=l,e[7]=a):a=e[7],a}function ft(t){const e=_.c(8);let n,i;e[0]!==t?({className:n,...i}=t,e[0]=t,e[1]=n,e[2]=i):(n=e[1],i=e[2]);let l;e[3]!==n?(l=I("flex flex-col gap-2 p-2",n),e[3]=n,e[4]=l):l=e[4];let a;return e[5]!==i||e[6]!==l?(a=s.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:l,...i}),e[5]=i,e[6]=l,e[7]=a):a=e[7],a}function Ys(t){const e=_.c(8);let n,i;e[0]!==t?({className:n,...i}=t,e[0]=t,e[1]=n,e[2]=i):(n=e[1],i=e[2]);let l;e[3]!==n?(l=I("flex flex-col gap-2 p-2",n),e[3]=n,e[4]=l):l=e[4];let a;return e[5]!==i||e[6]!==l?(a=s.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:l,...i}),e[5]=i,e[6]=l,e[7]=a):a=e[7],a}function Qs(t){const e=_.c(8);let n,i;e[0]!==t?({className:n,...i}=t,e[0]=t,e[1]=n,e[2]=i):(n=e[1],i=e[2]);let l;e[3]!==n?(l=I("h-4 m-0! w-full",n),e[3]=n,e[4]=l):l=e[4];let a;return e[5]!==i||e[6]!==l?(a=s.jsx("div",{"data-sidebar":"separator",className:l,...i}),e[5]=i,e[6]=l,e[7]=a):a=e[7],a}function Zs(t){const e=_.c(8);let n,i;e[0]!==t?({className:n,...i}=t,e[0]=t,e[1]=n,e[2]=i):(n=e[1],i=e[2]);let l;e[3]!==n?(l=I("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",n),e[3]=n,e[4]=l):l=e[4];let a;return e[5]!==i||e[6]!==l?(a=s.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:l,...i}),e[5]=i,e[6]=l,e[7]=a):a=e[7],a}function _e(t){const e=_.c(8);let n,i;e[0]!==t?({className:n,...i}=t,e[0]=t,e[1]=n,e[2]=i):(n=e[1],i=e[2]);let l;e[3]!==n?(l=I("relative flex w-full min-w-0 flex-col px-2 py-2 md:py-0",n),e[3]=n,e[4]=l):l=e[4];let a;return e[5]!==i||e[6]!==l?(a=s.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:l,...i}),e[5]=i,e[6]=l,e[7]=a):a=e[7],a}function we(t){const e=_.c(8);let n,i;e[0]!==t?({className:n,...i}=t,e[0]=t,e[1]=n,e[2]=i):(n=e[1],i=e[2]);let l;e[3]!==n?(l=I("w-full text-sm",n),e[3]=n,e[4]=l):l=e[4];let a;return e[5]!==i||e[6]!==l?(a=s.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:l,...i}),e[5]=i,e[6]=l,e[7]=a):a=e[7],a}function me(t){const e=_.c(8);let n,i;e[0]!==t?({className:n,...i}=t,e[0]=t,e[1]=n,e[2]=i):(n=e[1],i=e[2]);let l;e[3]!==n?(l=I("flex w-full min-w-0 flex-col gap-1",n),e[3]=n,e[4]=l):l=e[4];let a;return e[5]!==i||e[6]!==l?(a=s.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:l,...i}),e[5]=i,e[6]=l,e[7]=a):a=e[7],a}function re(t){const e=_.c(8);let n,i;e[0]!==t?({className:n,...i}=t,e[0]=t,e[1]=n,e[2]=i):(n=e[1],i=e[2]);let l;e[3]!==n?(l=I("group/menu-item relative",n),e[3]=n,e[4]=l):l=e[4];let a;return e[5]!==i||e[6]!==l?(a=s.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:l,...i}),e[5]=i,e[6]=l,e[7]=a):a=e[7],a}const Xs=$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 $e(t){const e=_.c(28);let n,i,l,a,o,r,c;e[0]!==t?({asChild:l,isActive:a,variant:o,size:r,tooltip:c,className:n,...i}=t,e[0]=t,e[1]=n,e[2]=i,e[3]=l,e[4]=a,e[5]=o,e[6]=r,e[7]=c):(n=e[1],i=e[2],l=e[3],a=e[4],o=e[5],r=e[6],c=e[7]);const d=l===void 0?!1:l,f=a===void 0?!1:a,u=o===void 0?"default":o,m=r===void 0?"default":r,x=d?wt:"button",{isMobile:h,state:b}=Ee();let g;e[8]!==n||e[9]!==m||e[10]!==u?(g=I(Xs({variant:u,size:m}),n),e[8]=n,e[9]=m,e[10]=u,e[11]=g):g=e[11];let C;e[12]!==x||e[13]!==f||e[14]!==i||e[15]!==m||e[16]!==g?(C=s.jsx(x,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":m,"data-active":f,className:g,...i}),e[12]=x,e[13]=f,e[14]=i,e[15]=m,e[16]=g,e[17]=C):C=e[17];const v=C;if(!c)return v;if(typeof c=="string"){let y;e[18]!==c?(y={children:c},e[18]=c,e[19]=y):y=e[19],c=y}let p;e[20]!==v?(p=s.jsx(ls,{asChild:!0,children:v}),e[20]=v,e[21]=p):p=e[21];const S=b!=="collapsed"||h;let N;e[22]!==S||e[23]!==c?(N=s.jsx(is,{side:"right",align:"center",hidden:S,...c}),e[22]=S,e[23]=c,e[24]=N):N=e[24];let j;return e[25]!==p||e[26]!==N?(j=s.jsxs(as,{children:[p,N]}),e[25]=p,e[26]=N,e[27]=j):j=e[27],j}function Js(t){const e=_.c(11),{label:n,children:i,defaultExpanded:l}=t,a=l===void 0?!0:l,[o,r]=E.useState(a),{state:c}=Ee(),d=c==="collapsed";let f;e[0]!==o||e[1]!==d||e[2]!==n?(f=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(me,{children:s.jsx(re,{children:s.jsxs($e,{className:"h-6 cursor-pointer select-none gap-1 [&>svg]:size-3",onClick:()=>r(!o),children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:n}),s.jsx(nt,{size:12,className:I("text-muted-foreground transition-transform duration-200",!o&&"-rotate-90")})]})})}),e[0]=o,e[1]=d,e[2]=n,e[3]=f):f=e[3];let u;e[4]!==i||e[5]!==o||e[6]!==d?(u=(d||o)&&s.jsx(we,{children:s.jsx(me,{className:"gap-0.5",children:i})}),e[4]=i,e[5]=o,e[6]=d,e[7]=u):u=e[7];let m;return e[8]!==f||e[9]!==u?(m=s.jsxs(_e,{className:"pt-0 pr-0 pb-2 pl-0 mt-2",children:[f,u]}),e[8]=f,e[9]=u,e[10]=m):m=e[10],m}function ut(t){const e=_.c(22),{item:n}=t,i=n.key,l=n.onClick,a=n.isActive,o=n.label,r=n.isExternal&&"group/external";let c;e[0]!==r?(c=I(r),e[0]=r,e[1]=c):c=e[1];let d;e[2]!==n.icon?(d=s.jsx("span",{className:"[&>svg]:size-4",children:n.icon}),e[2]=n.icon,e[3]=d):d=e[3];const f=n.isExternal&&"group-hover/external:underline underline-offset-2";let u;e[4]!==f?(u=I("truncate group-data-[collapsible=icon]:hidden",f),e[4]=f,e[5]=u):u=e[5];let m;e[6]!==n.label||e[7]!==u?(m=s.jsx("span",{className:u,children:n.label}),e[6]=n.label,e[7]=u,e[8]=m):m=e[8];let x;e[9]!==n.isExternal?(x=n.isExternal&&s.jsx(ge,{size:12,className:"ml-auto mr-1 shrink-0 opacity-0 group-hover/external:opacity-60 transition-opacity group-data-[collapsible=icon]:hidden"}),e[9]=n.isExternal,e[10]=x):x=e[10];let h;e[11]!==n.isActive||e[12]!==n.label||e[13]!==n.onClick||e[14]!==m||e[15]!==x||e[16]!==c||e[17]!==d?(h=s.jsxs($e,{onClick:l,isActive:a,tooltip:o,className:c,children:[d,m,x]}),e[11]=n.isActive,e[12]=n.label,e[13]=n.onClick,e[14]=m,e[15]=x,e[16]=c,e[17]=d,e[18]=h):h=e[18];let b;return e[19]!==n.key||e[20]!==h?(b=s.jsx(re,{children:h},i),e[19]=n.key,e[20]=h,e[21]=b):b=e[21],b}function en(t){const e=_.c(12),{section:n}=t;switch(n.type){case"divider":{let i;return e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(Qs,{className:"my-2"}),e[0]=i):i=e[0],i}case"spacer":{let i;return e[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("div",{className:"flex-1"}),e[1]=i):i=e[1],i}case"group":{const i=n.group.label,l=n.group.defaultExpanded;let a;e[2]!==n.group.items?(a=n.group.items.map(sn),e[2]=n.group.items,e[3]=a):a=e[3];let o;return e[4]!==n.group.defaultExpanded||e[5]!==n.group.label||e[6]!==a?(o=s.jsx(Js,{label:i,defaultExpanded:l,children:a}),e[4]=n.group.defaultExpanded,e[5]=n.group.label,e[6]=a,e[7]=o):o=e[7],o}case"items":{let i;e[8]!==n.items?(i=n.items.map(tn),e[8]=n.items,e[9]=i):i=e[9];let l;return e[10]!==i?(l=s.jsx(_e,{className:"pt-0 pr-0 pb-0 pl-0",children:s.jsx(we,{children:s.jsx(me,{className:"gap-0.5",children:i})})}),e[10]=i,e[11]=l):l=e[11],l}}}function tn(t){return s.jsx(ut,{item:t},t.key)}function sn(t){return s.jsx(ut,{item:t},t.key)}function pt(t){const e=_.c(14),{sections:n,header:i,footer:l,additionalContent:a,variant:o,collapsible:r,contentClassName:c}=t,d=o===void 0?"sidebar":o,f=r===void 0?"icon":r;let u;e[0]!==c?(u=I("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 m;e[2]!==n?(m=n.map(nn),e[2]=n,e[3]=m):m=e[3];let x;e[4]!==a||e[5]!==u||e[6]!==m?(x=s.jsxs(Zs,{className:u,children:[m,a]}),e[4]=a,e[5]=u,e[6]=m,e[7]=x):x=e[7];let h;return e[8]!==f||e[9]!==l||e[10]!==i||e[11]!==x||e[12]!==d?(h=s.jsxs(Vs,{variant:d,collapsible:f,children:[i,x,l]}),e[8]=f,e[9]=l,e[10]=i,e[11]=x,e[12]=d,e[13]=h):h=e[13],h}function nn(t,e){return s.jsx(en,{section:t},e)}pt.Skeleton=function(){return s.jsx("div",{className:"flex flex-col gap-0.5",children:Array.from({length:8}).map((e,n)=>s.jsx("div",{className:"w-full h-8",children:s.jsx(ee,{className:"h-full bg-sidebar-accent rounded-md"})},n))})};function ln(){const t=_.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(ee,{className:"h-8 w-full rounded-lg"}),s.jsx(ee,{className:"h-8 w-full rounded-lg"})]}),t[0]=e):e=t[0],e}function an(t){const e=_.c(12),{organizationId:n,currentProjectSlug:i,onSelect:l}=t;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={suspense:!0},e[0]=a):a=e[0];const{data:o}=st(n,a);let r,c;if(e[1]!==i||e[2]!==l||e[3]!==o){c=Symbol.for("react.early_return_sentinel");e:{const f=o?.filter(on)??[];if(f.length===0){let m;e[6]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx("div",{className:"px-2 py-3 text-center text-xs text-muted-foreground",children:"No projects yet"}),e[6]=m):m=e[6],c=m;break e}let u;e[7]!==i||e[8]!==l?(u=m=>{const x=i===m.slug,h=m.ui?.themeColor??"#3B82F6";return s.jsxs(q,{className:I("gap-2.5",x&&"bg-accent"),onClick:()=>l(m.slug),children:[s.jsx("div",{className:"size-6 rounded-md shrink-0 flex items-center justify-center overflow-hidden border border-border/50",style:{backgroundColor:h},children:m.ui?.icon?s.jsx("img",{src:m.ui.icon,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:"text-xs font-semibold text-white",children:m.name.charAt(0).toUpperCase()})}),s.jsx("span",{className:"flex-1 truncate",children:m.name}),x&&s.jsx(je,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},m.id)},e[7]=i,e[8]=l,e[9]=u):u=e[9],r=f.map(u)}e[1]=i,e[2]=l,e[3]=o,e[4]=r,e[5]=c}else r=e[4],c=e[5];if(c!==Symbol.for("react.early_return_sentinel"))return c;let d;return e[10]!==r?(d=s.jsx(s.Fragment,{children:r}),e[10]=r,e[11]=d):d=e[11],d}function on(t){return t.slug!==F}function rn(t){let e=0;for(let i=0;i<t.length;i++)e=t.charCodeAt(i)+((e<<5)-e);const n=Math.abs(e)%360;return{backgroundColor:`hsl(${n} 55% 70%)`,color:`hsl(${n} 55% 20%)`}}function Le(t){const e=_.c(44),{isCollapsed:n,onCreateProject:i}=t,l=n===void 0?!1:n;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={strict:!1},e[0]=a):a=e[0];const{org:o,project:r}=qe(a),{data:c}=pe.useListOrganizations(),d=Be(),f=c?.find(P=>P.slug===o),[u,m]=E.useState(!1),[x]=Ae(),h=x.experimental_projects,b=r===F,{data:g}=tt(f?.id??"",b?"":r??"");let C;e[1]!==o?(C=(P,Z)=>P.slug===o?-1:Z.slug===o?1:P.name.localeCompare(Z.name),e[1]=o,e[2]=C):C=e[2];const v=[...c??[]].sort(C);let p;e[3]!==d||e[4]!==o?(p=()=>{o&&d({to:"/$org/$project",params:{org:o,project:F}})},e[3]=d,e[4]=o,e[5]=p):p=e[5];const S=p;let N;e[6]!==d||e[7]!==o?(N=P=>{o&&d({to:"/$org/$project",params:{org:o,project:P}})},e[6]=d,e[7]=o,e[8]=N):N=e[8];const j=N;let y;e[9]!==d?(y=P=>{d({to:"/$org/$project",params:{org:P,project:F}})},e[9]=d,e[10]=y):y=e[10];const w=y;let $;e[11]!==i?($=i?()=>i():void 0,e[11]=i,e[12]=$):$=e[12];const k=$;let A;e[13]!==d||e[14]!==o||e[15]!==r?(A=()=>{if(!o||!r)return;const P=r===F;d({to:"/$org/$project",params:{org:o,project:r},search:Z=>({...Z,settings:P?"org.general":`project:${r}:general`})})},e[13]=d,e[14]=o,e[15]=r,e[16]=A):A=e[16];const T=A,L=lt,U=l?"w-auto pr-1.5":"w-full";let H;e[17]!==U?(H=I("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]",U),e[17]=U,e[18]=H):H=e[18];const M=b?s.jsx("div",{className:I("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:f?.logo?void 0:rn(f?.name??""),children:f?.logo?s.jsx("img",{src:f.logo,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:I("font-semibold leading-none",l?"text-[9px]":"text-xs"),children:(f?.name??"?").slice(0,2).toUpperCase()})}):s.jsx("div",{className:I("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:{backgroundColor:g?.ui?.themeColor??"#60a5fa"},children:g?.ui?.icon?s.jsx("img",{src:g.ui.icon,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:I("font-semibold text-white",l?"text-xs":"text-lg"),children:(g?.name??r??"?").charAt(0).toUpperCase()})});let D;e[19]!==f?.name||e[20]!==g?.name||e[21]!==h||e[22]!==l||e[23]!==b||e[24]!==r?(D=!l&&s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"flex-1 min-w-0 flex flex-col justify-center",children:h?s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"block text-[11px] text-sidebar-foreground/50 leading-tight truncate",children:f?.name??"Select org"}),s.jsx("span",{className:"block text-sm font-semibold text-sidebar-foreground truncate leading-tight",children:b?"Studio":g?.name??r??""})]}):s.jsx("span",{className:"block text-sm font-semibold text-sidebar-foreground truncate leading-tight",children:f?.name??"Select org"})}),s.jsx(qt,{size:16,className:"shrink-0 text-sidebar-foreground/40"})]}),e[19]=f?.name,e[20]=g?.name,e[21]=h,e[22]=l,e[23]=b,e[24]=r,e[25]=D):D=e[25];let O;e[26]!==H||e[27]!==M||e[28]!==D?(O=s.jsx(at,{asChild:!0,children:s.jsxs("button",{type:"button",className:H,children:[M,D]})}),e[26]=H,e[27]=M,e[28]=D,e[29]=O):O=e[29];const B=it,R="start",V="bottom",ce="w-64 flex flex-col gap-0.5",te=cn,se=h?s.jsxs(s.Fragment,{children:[s.jsxs(q,{className:I("gap-2.5",b&&"bg-accent"),onClick:S,children:[s.jsx(be,{url:f?.logo??"",fallback:f?.name??"",size:"sm",className:"size-6 rounded-md shrink-0",objectFit:"cover"}),s.jsxs("span",{className:"flex-1 truncate",children:["Studio · ",f?.name]}),b&&s.jsx(je,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]}),s.jsx("p",{className:"px-2 pt-2 pb-0.5 text-[11px] font-medium text-muted-foreground/50 uppercase tracking-wider",children:"Projects"}),f&&s.jsx(E.Suspense,{fallback:s.jsx(ln,{}),children:s.jsx(an,{organizationId:f.id,currentProjectSlug:r,orgSlug:o??"",onSelect:j})}),k&&s.jsxs(q,{className:"gap-2.5",onClick:k,children:[s.jsx(Se,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Create project"})]}),s.jsx(ke,{}),s.jsxs(os,{children:[s.jsxs(rs,{className:"gap-2.5",children:[s.jsx(Je,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Switch organization"})]}),s.jsxs(cs,{className:"w-48 flex flex-col gap-0.5",children:[v.map(P=>s.jsxs(q,{className:I("gap-2.5",P.slug===o&&"bg-accent"),onClick:()=>w(P.slug),children:[s.jsx(be,{url:P.logo??"",fallback:P.name,size:"xs",className:"size-5 rounded-md shrink-0",objectFit:"cover"}),s.jsx("span",{className:"flex-1 truncate",children:P.name}),P.slug===o&&s.jsx(je,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},P.id)),s.jsx(ke,{}),s.jsxs(q,{className:"gap-2.5",onClick:()=>m(!0),children:[s.jsx(Se,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Create organization"})]})]})]}),s.jsxs(q,{className:"gap-2.5",onClick:T,children:[s.jsx(Ce,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Settings"})]})]}):s.jsxs(s.Fragment,{children:[s.jsx("p",{className:"px-2 pt-2 pb-0.5 text-[11px] font-medium text-muted-foreground/50 uppercase tracking-wider",children:"Organizations"}),v.map(P=>s.jsxs(q,{className:I("gap-2.5",P.slug===o&&"bg-accent"),onClick:()=>w(P.slug),children:[s.jsx(be,{url:P.logo??"",fallback:P.name,size:"sm",className:"size-6 rounded-md shrink-0",objectFit:"cover"}),s.jsx("span",{className:"flex-1 truncate",children:P.name}),P.slug===o&&s.jsx(je,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},P.id)),s.jsxs(q,{className:"gap-2.5",onClick:()=>m(!0),children:[s.jsx(Se,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Create organization"})]}),s.jsx(ke,{}),s.jsxs(q,{className:"gap-2.5",onClick:T,children:[s.jsx(Ce,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Settings"})]})]});let Y;e[30]!==B||e[31]!==te||e[32]!==se?(Y=s.jsx(B,{align:R,side:V,className:ce,onCloseAutoFocus:te,children:se}),e[30]=B,e[31]=te,e[32]=se,e[33]=Y):Y=e[33];let Q;e[34]!==L||e[35]!==O||e[36]!==Y?(Q=s.jsxs(L,{children:[O,Y]}),e[34]=L,e[35]=O,e[36]=Y,e[37]=Q):Q=e[37];let G;e[38]!==u||e[39]!==m?(G=s.jsx(ds,{open:u,onOpenChange:m}),e[38]=u,e[39]=m,e[40]=G):G=e[40];let W;return e[41]!==Q||e[42]!==G?(W=s.jsxs(s.Fragment,{children:[Q,G]}),e[41]=Q,e[42]=G,e[43]=W):W=e[43],W}function cn(t){return t.preventDefault()}Le.Skeleton=function(){return s.jsxs("div",{className:"flex items-center gap-1.5 h-7 px-1.5 w-full",children:[s.jsx(ee,{className:"size-5 rounded-[5px] shrink-0 bg-sidebar-accent"}),s.jsx(ee,{className:"h-3.5 flex-1 bg-sidebar-accent"})]})};function He(t){const e=_.c(4),{onCreateProject:n}=t,{state:i,toggleSidebar:l}=Ee(),a=i==="collapsed";let o;return e[0]!==a||e[1]!==n||e[2]!==l?(o=s.jsx(ft,{className:"px-3 group-data-[collapsible=icon]:px-2 animate-in fade-in-0 duration-200",children:s.jsx(me,{children:s.jsx(re,{children:a?s.jsxs("div",{className:"flex flex-col w-full gap-0.5",children:[s.jsx(Le,{isCollapsed:!0,onCreateProject:n}),s.jsx($e,{onClick:l,tooltip:"Expand sidebar",children:s.jsx(Re,{})})]}):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(Le,{isCollapsed:!1,onCreateProject:n})}),s.jsx($e,{onClick:l,tooltip:"Collapse sidebar",className:"size-7 shrink-0",children:s.jsx(Re,{})})]})})})}),e[0]=a,e[1]=n,e[2]=l,e[3]=o):o=e[3],o}He.Skeleton=function(){return s.jsx(ft,{className:"px-3",children:s.jsx(me,{children:s.jsx(re,{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(ee,{className:"size-8 rounded-md shrink-0 bg-sidebar-accent"}),s.jsx(ee,{className:"h-3.5 w-16 bg-sidebar-accent"})]}),s.jsx("div",{className:"flex items-center gap-0.5",children:s.jsx(ee,{className:"size-7 rounded-lg bg-sidebar-accent"})})]})})})})};function dn(t){const e=_.c(50),{user:n,userImage:i}=t,{open:l}=et(),[a,o]=E.useState(!1);let r;e[0]!==n.email||e[1]!==n.id||e[2]!==n.name?(r=()=>{const V=`ID: ${n.id}
|
|
2
|
-
Name: ${n.name||"N/A"}
|
|
3
|
-
Email: ${n.email}`;navigator.clipboard.writeText(V),o(!0),ue.success("User info copied to clipboard"),setTimeout(()=>o(!1),2e3)},e[0]=n.email,e[1]=n.id,e[2]=n.name,e[3]=r):r=e[3];const c=r,d=n.name||n.email||"U";let f;e[4]!==d||e[5]!==i?(f=s.jsx(be,{url:i,fallback:d,shape:"circle",size:"2xs",className:"shrink-0 size-5"}),e[4]=d,e[5]=i,e[6]=f):f=e[6];const u=n.name||"User";let m;e[7]!==u?(m=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]=m):m=e[8];let x;e[9]!==f||e[10]!==m?(x=s.jsx(at,{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:[f,m]})}),e[9]=f,e[10]=m,e[11]=x):x=e[11];const h=n.name||n.email||"U";let b;e[12]!==h||e[13]!==i?(b=s.jsx(be,{url:i,fallback:h,shape:"circle",size:"sm",className:"shrink-0"}),e[12]=h,e[13]=i,e[14]=b):b=e[14];const g=n.name||"User";let C;e[15]!==g?(C=s.jsx("div",{className:"text-sm font-medium truncate",children:g}),e[15]=g,e[16]=C):C=e[16];let v;e[17]!==n.email?(v=s.jsx("div",{className:"text-xs text-muted-foreground truncate",children:n.email}),e[17]=n.email,e[18]=v):v=e[18];let p;e[19]!==C||e[20]!==v?(p=s.jsxs("div",{className:"flex-1 min-w-0",children:[C,v]}),e[19]=C,e[20]=v,e[21]=p):p=e[21];let S;e[22]!==a?(S=s.jsx("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity shrink-0",children:a?s.jsx(je,{size:14,className:"text-green-600"}):s.jsx(ms,{size:14,className:"text-muted-foreground"})}),e[22]=a,e[23]=S):S=e[23];let N;e[24]!==c||e[25]!==p||e[26]!==S||e[27]!==b?(N=s.jsxs(q,{onClick:c,className:"gap-2.5 group",children:[b,p,S]}),e[24]=c,e[25]=p,e[26]=S,e[27]=b,e[28]=N):N=e[28];let j;e[29]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx(ke,{}),e[29]=j):j=e[29];let y;e[30]!==l?(y=()=>l("account.preferences"),e[30]=l,e[31]=y):y=e[31];let w,$;e[32]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(Ce,{size:14,className:"shrink-0 text-muted-foreground"}),$=s.jsx("span",{children:"Settings"}),e[32]=w,e[33]=$):(w=e[32],$=e[33]);let k;e[34]!==y?(k=s.jsxs(q,{className:"gap-2.5",onClick:y,children:[w,$]}),e[34]=y,e[35]=k):k=e[35];let A;e[36]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(q,{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(fs,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Terms of Use"}),s.jsx(ge,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[36]=A):A=e[36];let T;e[37]===Symbol.for("react.memo_cache_sentinel")?(T=s.jsx(q,{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(ps,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Privacy Policy"}),s.jsx(ge,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[37]=T):T=e[37];let L;e[38]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx(q,{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(ge,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[38]=L):L=e[38];let U;e[39]===Symbol.for("react.memo_cache_sentinel")?(U=s.jsx(q,{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(Ge,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Community"}),s.jsx(ge,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[39]=U):U=e[39];let H,M;e[40]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(q,{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(us,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Homepage"}),s.jsx(ge,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),M=s.jsx(ke,{}),e[40]=H,e[41]=M):(H=e[40],M=e[41]);let D;e[42]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsxs(q,{className:"gap-2.5",onClick:mn,children:[s.jsx(dt,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Sign out"})]}),e[42]=D):D=e[42];let O;e[43]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsx("div",{className:"px-2 py-1.5",children:s.jsxs("span",{className:"text-xs text-muted-foreground/60",children:["v","2.142.0"]})}),e[43]=O):O=e[43];let B;e[44]!==N||e[45]!==k?(B=s.jsxs(it,{side:"top",align:"end",collisionPadding:8,className:"w-64 flex flex-col gap-0.5",onCloseAutoFocus:fn,children:[N,j,k,A,T,L,U,H,M,D,O]}),e[44]=N,e[45]=k,e[46]=B):B=e[46];let R;return e[47]!==B||e[48]!==x?(R=s.jsxs(lt,{children:[x,B]}),e[47]=B,e[48]=x,e[49]=R):R=e[49],R}function mn(){return pe.signOut()}function fn(t){return t.preventDefault()}function xt(){const t=_.c(7),{data:e}=pe.useSession();if(!e?.user){let c;return t[0]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(be,{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 n=e.user,i=n.name??void 0;let l;t[1]!==i||t[2]!==n?(l={...n,name:i},t[1]=i,t[2]=n,t[3]=l):l=t[3];const a=l,o=n.image;let r;return t[4]!==o||t[5]!==a?(r=s.jsx(dn,{user:a,userImage:o}),t[4]=o,t[5]=a,t[6]=r):r=t[6],r}function un({invitation:t}){const[e,n]=E.useState(!1),[i,l]=E.useState(!1),a=Pt(),o=async()=>{n(!0);try{const c=await pe.organization.acceptInvitation({invitationId:t.id});if(c.error)ue.error(c.error.message),n(!1);else{const d=await pe.organization.setActive({organizationId:t.organizationId});ue.success("Invitation accepted!");const f=d?.data?.slug;window.location.href=f?`/${f}`:"/"}}catch{ue.error("Failed to accept invitation"),n(!1)}},r=async()=>{l(!0);try{const c=await pe.organization.rejectInvitation({invitationId:t.id});c.error?(ue.error(c.error.message),l(!1)):(ue.success("Invitation declined"),a.invalidateQueries())}catch{ue.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(Te,{size:"icon",variant:"ghost",className:"size-7 text-green-600 hover:text-green-700 hover:bg-green-50 dark:hover:bg-green-950",onClick:o,disabled:e||i,"aria-label":"Accept invitation",children:s.jsx(je,{size:14})}),s.jsx(Te,{size:"icon",variant:"ghost",className:"size-7 text-muted-foreground hover:text-destructive hover:bg-destructive/10",onClick:r,disabled:e||i,"aria-label":"Decline invitation",children:s.jsx(bs,{size:14})})]})]})}function pn(){const t=E.useContext(It),{data:e}=t.hooks.useListUserInvitations();return(e??[]).filter(i=>i.status==="pending"&&new Date(i.expiresAt)>new Date)}class xn extends E.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,n){}render(){return this.state.hasError?null:this.props.children}}const hn="gateway-chip-period";function gn(){try{const t=localStorage.getItem(hn);if(t==="daily"||t==="weekly"||t==="monthly")return t}catch{}return"daily"}function bn(t,e){if(!e||e<=0)return"text-foreground/70";const n=t/e;return n<=.05?"text-destructive":n<=.2?"text-amber-500 dark:text-amber-400":"text-foreground/70"}function jn(t){return t>=90?"text-destructive":t>=70?"text-amber-500 dark:text-amber-400":"text-foreground/70"}function vn(t){const e=_.c(42),{connectionId:n}=t,{open:i}=et(),{org:l}=ve();let a;e[0]!==n||e[1]!==l.id?(a={connectionId:n,orgId:l.id},e[0]=n,e[1]=l.id,e[2]=a):a=e[2];const o=Ut(a);let r;e[3]===Symbol.for("react.memo_cache_sentinel")?(r={},e[3]=r):r=e[3];let c;e[4]!==o?(c={client:o,toolName:"GATEWAY_USAGE",toolArguments:r,staleTime:6e4,select:Nn},e[4]=o,e[5]=c):c=e[5];const{data:d}=vs(c),f=d?.billing.mode??"prepaid",u=d?.limit.total??null,m=d?.limit.remaining??0;let x;e[6]!==d?.usage?(x=d?.usage??{total:0,daily:0,weekly:0,monthly:0},e[6]=d?.usage,e[7]=x):x=e[7];const h=x;let b,g,C,v,p,S,N;if(e[8]!==f||e[9]!==b||e[10]!==m||e[11]!==u||e[12]!==i||e[13]!==h){let w;if(f==="prepaid"){b="Credits";let k;e[21]!==m?(k=m.toFixed(2),e[21]=m,e[22]=k):k=e[22],g=`$${k}`,w=bn(m,u)}else if(u!=null&&u>0){const k=u-m;let A;e[23]!==u||e[24]!==k?(A=Math.round(k/u*100),e[23]=u,e[24]=k,e[25]=A):A=e[25];const T=Math.min(100,A);b="Usage",g=`${T}%`,w=jn(T)}else{const k=gn(),A=k==="daily"?h.daily:k==="weekly"?h.weekly:h.monthly,T=k==="daily"?"/day":k==="weekly"?"/wk":"/mo";b="Usage";let L;e[26]!==A?(L=A.toFixed(2),e[26]=A,e[27]=L):L=e[27],g=`$${L}${T}`,w="text-foreground/70"}v="button",e[28]!==i?(p=()=>i("org.billing"),e[28]=i,e[29]=p):p=e[29],S="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";let $;e[30]===Symbol.for("react.memo_cache_sentinel")?($=s.jsx(Xt,{size:13,className:"text-muted-foreground/60 shrink-0"}),e[30]=$):$=e[30],e[31]!==b?(N=s.jsxs("div",{className:"flex items-center gap-1.5",children:[$,s.jsx("span",{className:"text-xs text-muted-foreground",children:b})]}),e[31]=b,e[32]=N):N=e[32],C=I("text-xs font-medium tabular-nums",w),e[8]=f,e[9]=b,e[10]=m,e[11]=u,e[12]=i,e[13]=h,e[14]=C,e[15]=v,e[16]=p,e[17]=S,e[18]=N,e[19]=b,e[20]=g}else C=e[14],v=e[15],p=e[16],S=e[17],N=e[18],b=e[19],g=e[20];let j;e[33]!==C||e[34]!==g?(j=s.jsx("span",{className:C,children:g}),e[33]=C,e[34]=g,e[35]=j):j=e[35];let y;return e[36]!==j||e[37]!==v||e[38]!==p||e[39]!==S||e[40]!==N?(y=s.jsxs("button",{type:v,onClick:p,className:S,children:[N,j]}),e[36]=j,e[37]=v,e[38]=p,e[39]=S,e[40]=N,e[41]=y):y=e[41],y}function Nn(t){return t.structuredContent}function yn(){const t=_.c(4),e=js();let n;t[0]!==e?(n=e.find(Sn),t[0]=e,t[1]=n):n=t[1];const i=n;if(!i?.id)return null;let l;return t[2]!==i.id?(l=s.jsx(vn,{connectionId:i.id}),t[2]=i.id,t[3]=l):l=t[3],l}function Sn(t){return Ns(t,ys)}function kn(){const t=_.c(13),e=pn();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(xn,{children:s.jsx(E.Suspense,{fallback:null,children:s.jsx(yn,{})})}),t[0]=n):n=t[0];let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("div",{className:"flex-1 min-w-0",children:s.jsx(xt,{})}),t[1]=i):i=t[1];let l;t[2]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(hs,{asChild:!0,children:s.jsx(Te,{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(Ve,{size:16})})}),t[2]=l):l=t[2];let a;t[3]!==e.length?(a=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]=a):a=t[4];let o;t[5]!==a?(o=s.jsxs("div",{className:"relative",children:[l,a]}),t[5]=a,t[6]=o):o=t[6];let r;t[7]===Symbol.for("react.memo_cache_sentinel")?(r=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]=r):r=t[7];let c;t[8]!==e?(c=s.jsxs(xs,{side:"right",align:"end",sideOffset:24,className:"w-[400px] p-0 h-[650px] flex flex-col",children:[r,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(Ve,{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(Cn)})]}),t[8]=e,t[9]=c):c=t[9];let d;return t[10]!==o||t[11]!==c?(d=s.jsxs(Ys,{className:"px-3.5 pb-3 group-data-[collapsible=icon]:px-2",children:[n,s.jsx(me,{children:s.jsx(re,{children:s.jsxs("div",{className:"flex items-center w-full gap-1",children:[i,s.jsx("div",{className:"group-data-[collapsible=icon]:hidden",children:s.jsxs(gs,{children:[o,c]})})]})})})]}),t[10]=o,t[11]=c,t[12]=d):d=t[12],d}function Cn(t){return s.jsx(un,{invitation:t},t.id)}function _n(t){const e=_.c(11),{project:n}=t,i=n.ui?.themeColor??"#60a5fa";if(n.ui?.icon){let c;return e[0]!==n.ui.icon?(c=s.jsx("img",{src:n.ui.icon,alt:"",className:"size-4 rounded object-cover border border-border/50"}),e[0]=n.ui.icon,e[1]=c):c=e[1],c}let l;e[2]!==i?(l={backgroundColor:i},e[2]=i,e[3]=l):l=e[3];let a;e[4]!==n.name?(a=n.name.charAt(0).toUpperCase(),e[4]=n.name,e[5]=a):a=e[5];let o;e[6]!==a?(o=s.jsx("span",{className:"text-[10px] font-medium text-white",children:a}),e[6]=a,e[7]=o):o=e[7];let r;return e[8]!==l||e[9]!==o?(r=s.jsx("div",{className:"size-4 rounded flex items-center justify-center border border-border/50",style:l,children:o}),e[8]=l,e[9]=o,e[10]=r):r=e[10],r}function wn(t){const e=_.c(14),{project:n}=t,i=Be(),{org:l}=ve();let a;e[0]!==i||e[1]!==l.slug||e[2]!==n.slug?(a=()=>{i({to:"/$org/$project",params:{org:l.slug,project:n.slug}})},e[0]=i,e[1]=l.slug,e[2]=n.slug,e[3]=a):a=e[3];let o;e[4]!==n?(o=s.jsx(_n,{project:n}),e[4]=n,e[5]=o):o=e[5];let r;e[6]!==n.name?(r=s.jsx("span",{className:"truncate flex-1 group-data-[collapsible=icon]:hidden",children:n.name}),e[6]=n.name,e[7]=r):r=e[7];let c;e[8]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(Ss,{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]!==n.name||e[10]!==a||e[11]!==o||e[12]!==r?(d=s.jsx(re,{children:s.jsxs($e,{onClick:a,tooltip:n.name,children:[o,r,c]})}),e[9]=n.name,e[10]=a,e[11]=o,e[12]=r,e[13]=d):d=e[13],d}function $n(){const t=_.c(55),{org:e}=ve(),{data:n,isLoading:i}=st(e.id),[l,a]=E.useState(!0),[o,r]=E.useState(!1);let c,d,f,u,m,x,h,b,g,C,v,p,S;if(t[0]!==i||t[1]!==l||t[2]!==n){S=Symbol.for("react.early_return_sentinel");e:{const L=n?.filter(In)??[];if(i){let R;t[16]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx(re,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(ee,{className:"h-4 w-4 rounded"}),s.jsx(ee,{className:"h-4 flex-1"})]})}),t[16]=R):R=t[16];let V;t[17]===Symbol.for("react.memo_cache_sentinel")?(V=s.jsx(_e,{className:"py-0 px-0",children:s.jsx(we,{children:s.jsxs(me,{className:"gap-0.5",children:[R,s.jsx(re,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(ee,{className:"h-4 w-4 rounded"}),s.jsx(ee,{className:"h-4 flex-1"})]})})]})})}),t[17]=V):V=t[17],S=V;break e}p="group/projects-section mt-2",m=Yt,C=l,v=a,u=_e,g="py-0 px-0",f=we,d=me,h="gap-0.5";let U;t[18]===Symbol.for("react.memo_cache_sentinel")?(U=s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Projects"}),t[18]=U):U=t[18];const H=!l&&"-rotate-90";let M;t[19]!==H?(M=I("text-muted-foreground shrink-0 transition-transform duration-200",H),t[19]=H,t[20]=M):M=t[20];let D;t[21]!==M?(D=s.jsx(Qt,{asChild:!0,children:s.jsxs("button",{type:"button",className:"flex flex-1 items-center gap-1 cursor-pointer min-w-0",children:[U,s.jsx(nt,{size:12,className:M})]})}),t[21]=M,t[22]=D):D=t[22];let O;t[23]===Symbol.for("react.memo_cache_sentinel")?(O=()=>r(!0),t[23]=O):O=t[23];let B;t[24]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx("button",{type:"button",onClick:O,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(Se,{size:16})}),t[24]=B):B=t[24],t[25]!==D?(b=s.jsx(re,{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,B]})}),t[25]=D,t[26]=b):b=t[26],c=Zt,x=L.length===0?s.jsx(re,{children:s.jsx("div",{className:"px-2 py-2 text-xs text-muted-foreground",children:"No projects yet"})}):L.map(zn)}t[0]=i,t[1]=l,t[2]=n,t[3]=c,t[4]=d,t[5]=f,t[6]=u,t[7]=m,t[8]=x,t[9]=h,t[10]=b,t[11]=g,t[12]=C,t[13]=v,t[14]=p,t[15]=S}else c=t[3],d=t[4],f=t[5],u=t[6],m=t[7],x=t[8],h=t[9],b=t[10],g=t[11],C=t[12],v=t[13],p=t[14],S=t[15];if(S!==Symbol.for("react.early_return_sentinel"))return S;let N;t[27]!==c||t[28]!==x?(N=s.jsx(c,{children:x}),t[27]=c,t[28]=x,t[29]=N):N=t[29];let j;t[30]!==d||t[31]!==h||t[32]!==b||t[33]!==N?(j=s.jsxs(d,{className:h,children:[b,N]}),t[30]=d,t[31]=h,t[32]=b,t[33]=N,t[34]=j):j=t[34];let y;t[35]!==f||t[36]!==j?(y=s.jsx(f,{children:j}),t[35]=f,t[36]=j,t[37]=y):y=t[37];let w;t[38]!==u||t[39]!==y||t[40]!==g?(w=s.jsx(u,{className:g,children:y}),t[38]=u,t[39]=y,t[40]=g,t[41]=w):w=t[41];let $;t[42]!==m||t[43]!==w||t[44]!==C||t[45]!==v?($=s.jsx(m,{open:C,onOpenChange:v,children:w}),t[42]=m,t[43]=w,t[44]=C,t[45]=v,t[46]=$):$=t[46];let k;t[47]!==$||t[48]!==p?(k=s.jsx("div",{className:p,children:$}),t[47]=$,t[48]=p,t[49]=k):k=t[49];let A;t[50]!==o?(A=s.jsx(Xe,{open:o,onOpenChange:r}),t[50]=o,t[51]=A):A=t[51];let T;return t[52]!==k||t[53]!==A?(T=s.jsxs(s.Fragment,{children:[k,A]}),t[52]=k,t[53]=A,t[54]=T):T=t[54],T}function zn(t){return s.jsx(wn,{project:t},t.id)}function In(t){return t.slug!==F}function Pn(){const t=_.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(E.Suspense,{fallback:s.jsx(_e,{className:"py-0 px-0",children:s.jsx(we,{children:s.jsx(me,{className:"gap-0.5",children:s.jsx(re,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(ee,{className:"h-4 w-4 rounded"}),s.jsx(ee,{className:"h-4 flex-1"})]})})})})}),children:s.jsx($n,{})}),t[0]=e):e=t[0],e}function An(t){const e=_.c(13),{onCreateProject:n}=t,[i]=Ae(),l=zs(),{locator:a}=ve();let o;e[0]!==a?(o=Oe.isOrgAdminProject(a),e[0]=a,e[1]=o):o=e[1];const r=o;let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(He.Skeleton,{}),e[2]=c):c=e[2];let d;e[3]!==n?(d=s.jsx(E.Suspense,{fallback:c,children:s.jsx(He,{onCreateProject:n})}),e[3]=n,e[4]=d):d=e[4];let f;e[5]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(kn,{}),e[5]=f):f=e[5];let u;e[6]!==r||e[7]!==i?(u=r&&i.experimental_projects?s.jsx(Ue,{children:s.jsx(E.Suspense,{fallback:null,children:s.jsx(Pn,{})})}):null,e[6]=r,e[7]=i,e[8]=u):u=e[8];let m;return e[9]!==l||e[10]!==d||e[11]!==u?(m=s.jsx(pt,{sections:l,header:d,footer:f,additionalContent:u}),e[9]=l,e[10]=d,e[11]=u,e[12]=m):m=e[12],m}function En(){const t=_.c(2),n=Fe().location.href;let i;return t[0]!==n?(i=s.jsx(Tt,{to:"/login",search:{next:n},replace:!0}),t[0]=n,t[1]=i):i=t[1],i}function On(t){const e=_.c(6),{children:n}=t;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(At,{children:s.jsx(Ye,{})}),e[0]=i):i=e[0];let l;e[1]!==n?(l=s.jsx(Et,{children:n}),e[1]=n,e[2]=l):l=e[2];let a;e[3]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(Ot,{children:s.jsx(En,{})}),e[3]=a):a=e[3];let o;return e[4]!==l?(o=s.jsxs(s.Fragment,{children:[i,l,a]}),e[4]=l,e[5]=o):o=e[5],o}function Tn(t){const e=_.c(10),{children:n,className:i}=t,[,l]=E.useTransition();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=Ke.decoChatPanelWidth(),e[0]=a):a=e[0];const[o,r]=We(a,30);let c;e[1]!==r?(c=m=>l(()=>r(m)),e[1]=r,e[2]=c):c=e[2];const d=c;let f;e[3]!==i?(f=I("min-w-0",i),e[3]=i,e[4]=f):f=e[4];let u;return e[5]!==o||e[6]!==n||e[7]!==d||e[8]!==f?(u=s.jsx(ot,{defaultSize:o,minSize:20,className:f,onResize:d,children:n}),e[5]=o,e[6]=n,e[7]=d,e[8]=f,e[9]=u):u=e[9],u}function Mn(t){const e=_.c(5),{children:n}=t;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=Ke.sidebarOpen(),e[0]=i):i=e[0];const[l,a]=We(i,!0);let o;return e[1]!==n||e[2]!==a||e[3]!==l?(o=s.jsx(Fs,{open:l,onOpenChange:a,children:n}),e[1]=n,e[2]=a,e[3]=l,e[4]=o):o=e[4],o}function Dn(t){const e=_.c(24),{isStudio:n,isHomeRoute:i,onCreateProject:l}=t,[a]=Ze();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=Ke.decoChatPanelWidth(),e[0]=o):o=e[0];const[r]=We(o,30),[c]=Ae(),d=n&&c.experimental_projects?"":void 0,f=`${r}cqi`;let u;e[1]!==f?(u={"--sidebar-width":"13.5rem","--sidebar-width-mobile":"11rem","--chat-panel-w":f},e[1]=f,e[2]=u):u=e[2];const m=u;let x;e[3]!==l?(x=s.jsx(An,{onCreateProject:l}),e[3]=l,e[4]=x):x=e[4];let h;e[5]===Symbol.for("react.memo_cache_sentinel")?(h={background:"transparent",containerType:"inline-size"},e[5]=h):h=e[5];let b;e[6]===Symbol.for("react.memo_cache_sentinel")?(b={overflow:"visible"},e[6]=b):b=e[6];let g;e[7]===Symbol.for("react.memo_cache_sentinel")?(g={overflow:"visible"},e[7]=g):g=e[7];const C=a&&"rounded-tr-[0.75rem] border-r";let v;e[8]!==C?(v=I("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)]",C),e[8]=C,e[9]=v):v=e[9];let p;e[10]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsx("div",{className:"flex-1 overflow-hidden",children:s.jsx(Qe,{})}),e[10]=p):p=e[10];let S;e[11]!==v?(S=s.jsx(ot,{className:"min-w-0 flex flex-col",style:g,children:s.jsx("div",{className:v,children:p})}),e[11]=v,e[12]=S):S=e[12];let N;e[13]!==a||e[14]!==i?(N=!i&&s.jsxs(s.Fragment,{children:[s.jsx(ks,{className:"bg-sidebar"}),s.jsx(Tn,{className:I("transition-[max-width] duration-200 ease-[var(--ease-out-quart)] overflow-hidden",a?"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($s,{})})})})]}),e[13]=a,e[14]=i,e[15]=N):N=e[15];let j;e[16]!==S||e[17]!==N?(j=s.jsx(qs,{className:"pt-1.5",style:h,children:s.jsxs(Cs,{direction:"horizontal",className:"h-full",style:b,children:[S,N]})}),e[16]=S,e[17]=N,e[18]=j):j=e[18];let y;return e[19]!==j||e[20]!==d||e[21]!==m||e[22]!==x?(y=s.jsxs(Ks,{className:"flex-1 bg-sidebar","data-studio":d,style:m,children:[x,j]}),e[19]=j,e[20]=d,e[21]=m,e[22]=x,e[23]=y):y=e[23],y}function Rn(){const{org:t,project:e}=qe({strict:!1}),n=Fe(),[i,l]=E.useState(!1),a=n.location.pathname===`/${t}/${e}`||n.location.pathname===`/${t}/${e}/`,o=e??F,{data:r}=Mt({queryKey:Dt.activeOrganization(t),queryFn:async()=>{if(!t)return null;const{data:f}=await pe.organization.setActive({organizationSlug:t});return{org:f,project:{slug:o,isOrgAdmin:o===F}}},gcTime:1/0,staleTime:1/0,refetchOnWindowFocus:!1,refetchOnMount:!1});if(!r)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(xt,{})})}),s.jsx(Qe,{})]});if(!r.org)return window.location.pathname!=="/"&&(window.location.href="/"),null;const c={...r,project:{...r.project,slug:o,isOrgAdmin:o===F}},d=o===F;return s.jsxs(Rt,{...c,children:[s.jsx(Mn,{children:s.jsx("div",{className:"flex flex-col h-screen overflow-hidden",children:s.jsx(J.Provider,{children:s.jsx(Dn,{isStudio:d,isHomeRoute:a,onCreateProject:()=>l(!0)})})})}),s.jsx(Xe,{open:i,onOpenChange:l})]})}function _l(){const t=_.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(On,{children:s.jsx(E.Suspense,{fallback:s.jsx(Ye,{}),children:s.jsx(Rn,{})})}),t[0]=e):e=t[0],e}export{_l as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as n,j as r,E as d,r as f,u as x,b as j}from"./index-KAycGEnT.js";import{T as h}from"./tasks-panel-jUSk_q_P.js";import{P as p}from"./index-A_CnuSis.js";import{B as g,a as b,b as T,c as k}from"./breadcrumb-DPLSdTx1.js";import{i as B}from"./Loading01-DF5pxnn8.js";import{u as S}from"./collapsible-Dz6kdDQx.js";import"./index-CoyJj2VR.js";import"./popover-DSO1tjgf.js";import"./skeleton-l9u4bmPQ.js";import"./spinner-CQhhuHCn.js";import"./tooltip-BD36KVkP.js";import"./index-B7Bu7nQ7.js";import"./constants-CRvMLa9p.js";import"./decopilot-events-bTg09qGr.js";import"./useQuery-DCrAUBx5.js";import"./dialog-DSCIUn11.js";import"./X-CT_P09q2.js";import"./form-CVLoDgzL.js";import"./label-lqq4AMOf.js";import"./input-s8rw5Kfa.js";import"./usage-B8eRkRZY.js";import"./ArrowUp-dcB4aDLZ.js";import"./ChevronDown-D04Buvau.js";import"./Edit01-CoWrVJPj.js";import"./Users03-Z0r1cCGf.js";import"./XCircle-BNAlXeL2.js";import"./AlertCircle-Zx531KAn.js";import"./select-XWfX294J.js";import"./Check-DXoRcZpn.js";import"./tabs-B62zcrrU.js";import"./localstorage-keys-DK1Id_ip.js";import"./useMutation-Ctk5b8uR.js";import"./ArrowLeft-D4dc0UBb.js";import"./use-copy-Cxp-hpbY.js";import"./badge-DtcA_2rB.js";import"./Code01-BLJKgev-.js";import"./integration-icon-BAlg7muO.js";import"./Container-CSl1es2V.js";import"./use-virtual-mcp-DrNWNgvb.js";import"./use-collections-ROKIiOzV.js";import"./SearchMd-u1QGwQkU.js";import"./use-create-virtual-mcp-CWXwWPev.js";import"./use-mcp-resources-BTKxmEpv.js";import"./ChevronRight-CkAAxLvD.js";import"./Copy01-B4eRdmVC.js";import"./marked.esm-BaswSlok.js";import"./markdown-HCjujTl2.js";import"./mcp-app-renderer-Bconp3w4.js";import"./types-CgRNzZIg.js";import"./Eye-DNSEDYe8.js";import"./Globe02-YyAAQROb.js";import"./LayersTwo01-XOG8qRvr.js";import"./XClose-BIpOBHWg.js";import"./collection-search-Dl5JvsI0.js";import"./use-connection-DWTVYLGI.js";import"./generate-id-Dyweu44Y.js";import"./Clock-DwwOuQI4.js";import"./Trash01-c47UOodj.js";import"./user-BU3jjBpz.js";import"./avatar-DGDgNwX-.js";import"./format-time-CMKyl-GC.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./CheckCircle-BP8hgPfe.js";import"./Plus-CEtl-Eq7.js";import"./use-llm-D0wV35M9.js";import"./use-binding-eAl0-ngZ.js";import"./binder-CaZ6b20X.js";import"./checkbox-JiwlvimE.js";import"./AlignLeft-CGBbKVHK.js";import"./Image01-PGP5Jz22.js";import"./RefreshCcw01-Bcbx9L0j.js";import"./Settings01-C1oZxROY.js";import"./useSuspenseInfiniteQuery-CG43fx0v.js";import"./infiniteQueryObserver-DctmDFEe.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 Mt(){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{Mt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as x,c as S,j as t,v,E as ee}from"./index-KAycGEnT.js";import"./index-CoyJj2VR.js";import{a as W,u as te}from"./collapsible-Dz6kdDQx.js";import{C as se}from"./collection-search-Dl5JvsI0.js";import{U as re}from"./user-BU3jjBpz.js";import{f as ne}from"./format-time-CMKyl-GC.js";import{i as oe}from"./CheckCircle-BP8hgPfe.js";import{i as K}from"./Loading01-DF5pxnn8.js";import{i as ie}from"./XCircle-BNAlXeL2.js";import{a as le,b as ae,T as ce}from"./tooltip-BD36KVkP.js";import{i as de}from"./Check-DXoRcZpn.js";import{i as me}from"./ChevronRight-CkAAxLvD.js";import{i as fe}from"./Edit01-CoWrVJPj.js";import{s as ue}from"./Plus-CEtl-Eq7.js";const q=({size:s=24,color:e="currentColor",...r})=>x.createElement("svg",{viewBox:"0 0 24 24",width:s,height:s,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},x.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"}));q.displayName="Hourglass03";const H=({size:s=24,color:e="currentColor",...r})=>x.createElement("svg",{viewBox:"0 0 24 24",width:s,height:s,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...r},x.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"}));H.displayName="Placeholder";const xe=["in_progress","requires_action","failed","expired","completed"],pe={in_progress:{label:"In Progress",icon:K,iconClassName:"text-muted-foreground animate-spin"},requires_action:{label:"Need Action",icon:H,iconClassName:"text-orange-500"},failed:{label:"Failed",icon:ie,iconClassName:"text-destructive"},expired:{label:"Timed Out",icon:q,iconClassName:"text-warning"},completed:{label:"Complete",icon:oe,iconClassName:"text-success"}};function he(s){const e={};for(const r of s){const o=r.status??"completed";e[o]||(e[o]=[]),e[o].push(r)}for(const r of Object.values(e))r.sort((o,i)=>new Date(i.updated_at).getTime()-new Date(o.updated_at).getTime());return e}function be(s){const e=S.c(12),{text:r,className:o}=s,i=x.useRef(null),[l,d]=x.useState(!1);let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=k=>{k&&i.current?d(i.current.scrollWidth>i.current.clientWidth):d(!1)},e[0]=a):a=e[0];let c;e[1]!==o?(c=v("truncate block",o),e[1]=o,e[2]=c):c=e[2];let f;e[3]!==c||e[4]!==r?(f=t.jsx(le,{asChild:!0,children:t.jsx("span",{ref:i,className:c,children:r})}),e[3]=c,e[4]=r,e[5]=f):f=e[5];let p;e[6]!==r?(p=t.jsx(ae,{side:"top",align:"start",children:r}),e[6]=r,e[7]=p):p=e[7];let b;return e[8]!==l||e[9]!==f||e[10]!==p?(b=t.jsxs(ce,{open:l,onOpenChange:a,children:[f,p]}),e[8]=l,e[9]=f,e[10]=p,e[11]=b):b=e[11],b}function ge(s){const e=S.c(32),{onTaskSelect:r}=s,{activeTaskId:o,switchToTask:i}=W(),{renameTask:l,tasks:d}=te(),[a,c]=x.useState("");let f;e[0]===Symbol.for("react.memo_cache_sentinel")?(f={},e[0]=f):f=e[0];const[p,b]=x.useState(f),[k,P]=x.useState(null),[g,U]=x.useState("");let j,N,h;if(e[1]!==o||e[2]!==p||e[3]!==k||e[4]!==g||e[5]!==r||e[6]!==l||e[7]!==a||e[8]!==i||e[9]!==d){const A=d.filter(ye),B=a.trim()?A.filter(n=>n.title.toLowerCase().includes(a.toLowerCase())):A,I=he(B),Q=xe.filter(n=>I[n]&&I[n].length>0);let _;e[13]===Symbol.for("react.memo_cache_sentinel")?(_=n=>{b(u=>({...u,[n]:!u[n]}))},e[13]=_):_=e[13];const V=_;let z;e[14]!==r||e[15]!==i?(z=async n=>{r?r(n.id):await i(n.id)},e[14]=r,e[15]=i,e[16]=z):z=e[16];const Z=z;let $;e[17]===Symbol.for("react.memo_cache_sentinel")?($=(n,u)=>{u.stopPropagation(),P(n.id),U(n.title||"")},e[17]=$):$=e[17];const J=$;let D;e[18]!==g||e[19]!==l?(D=async n=>{const u=g.trim();u&&await l(n,u),P(null)},e[18]=g,e[19]=l,e[20]=D):D=e[20];const C=D;let L;e[21]!==C?(L=(n,u)=>{n.key==="Enter"?(n.preventDefault(),C(u)):n.key==="Escape"&&P(null)},e[21]=C,e[22]=L):L=e[22];const X=L;let O;e[23]===Symbol.for("react.memo_cache_sentinel")?(O=n=>{n.key==="Escape"&&(c(""),n.target.blur())},e[23]=O):O=e[23],e[24]!==a?(h=t.jsx(se,{value:a,onChange:c,placeholder:"Search tasks...",onKeyDown:O}),e[24]=a,e[25]=h):h=e[25],j="flex-1 overflow-y-auto",N=B.length===0?t.jsx("div",{className:"flex flex-col items-center justify-center gap-2 py-12 px-4 text-center",children:t.jsx("p",{className:"text-xs text-muted-foreground",children:a?"No tasks found":"No tasks yet"})}):Q.map((n,u)=>{const T=pe[n];if(!T)return null;const F=T.icon,G=I[n]??[],M=!p[n];return t.jsxs("div",{className:"flex flex-col",children:[t.jsxs("button",{type:"button",onClick:()=>V(n),className:v("flex items-center w-full bg-[rgba(245,245,245,0.3)] border-b border-border/50 dark:bg-[rgba(30,30,30,0.3)]",u!==0&&"border-t border-border/50"),children:[t.jsx("div",{className:"flex items-center justify-center w-9 shrink-0 px-3",children:t.jsx(me,{size:16,className:v("text-muted-foreground transition-transform duration-200",M&&"rotate-90")})}),t.jsxs("div",{className:"flex items-center gap-3 flex-1 py-3",children:[t.jsx(F,{size:16,className:T.iconClassName}),t.jsx("span",{className:"font-mono text-xs text-muted-foreground uppercase tracking-wider",children:T.label}),t.jsx("span",{className:"text-xs text-muted-foreground/60",children:G.length})]})]}),M&&G.map(m=>{const Y=m.id===o,R=k===m.id;return t.jsxs("div",{className:v("group flex items-center w-full hover:bg-accent/50 transition-colors cursor-pointer",Y&&"bg-accent/50"),onClick:()=>!R&&Z(m),children:[t.jsxs("div",{className:"flex items-center gap-3 min-w-0 py-3 pl-4 flex-1",children:[t.jsx(F,{size:16,className:v("shrink-0",T.iconClassName)}),R?t.jsxs("div",{className:"flex items-center gap-1 flex-1 min-w-0 pr-3",onClick:Ne,children:[t.jsx("input",{autoFocus:!0,value:g,onChange:w=>U(w.target.value),onBlur:()=>C(m.id),onKeyDown:w=>X(w,m.id),className:"flex-1 text-sm bg-transparent border-b border-foreground/30 focus:border-foreground outline-none pb-0.5 min-w-0"}),t.jsx("button",{type:"button",onMouseDown:je,onClick:()=>C(m.id),className:"p-1 hover:bg-accent rounded shrink-0",children:t.jsx(de,{size:12,className:"text-muted-foreground"})})]}):t.jsx(be,{text:m.title||"Untitled",className:"text-sm font-medium text-foreground flex-1 min-w-0"})]}),!R&&t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"flex items-center gap-1 px-2 shrink-0",children:[t.jsx("button",{type:"button",onClick:w=>J(m,w),className:"opacity-0 group-hover:opacity-100 p-1 hover:bg-accent rounded transition-opacity",title:"Rename task",children:t.jsx(fe,{size:13,className:"text-muted-foreground"})}),m.created_by&&t.jsx(re,{id:m.created_by,size:"3xs",avatarOnly:!0})]}),t.jsx("div",{className:"w-20 p-3 shrink-0 text-right",children:t.jsx("span",{className:"text-sm text-muted-foreground whitespace-nowrap",children:m.updated_at?ne(new Date(m.updated_at)):"—"})})]})]},m.id)})]},n)}),e[1]=o,e[2]=p,e[3]=k,e[4]=g,e[5]=r,e[6]=l,e[7]=a,e[8]=i,e[9]=d,e[10]=j,e[11]=N,e[12]=h}else j=e[10],N=e[11],h=e[12];let y;e[26]!==j||e[27]!==N?(y=t.jsx("div",{className:j,children:N}),e[26]=j,e[27]=N,e[28]=y):y=e[28];let E;return e[29]!==h||e[30]!==y?(E=t.jsxs(t.Fragment,{children:[h,y]}),e[29]=h,e[30]=y,e[31]=E):E=e[31],E}function je(s){return s.preventDefault()}function Ne(s){return s.stopPropagation()}function ye(s){return!s.hidden}function ve(){const s=S.c(10),{createTask:e,isChatEmpty:r}=W();let o;s[0]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx("span",{className:"text-sm font-normal text-foreground",children:"Tasks"}),s[0]=o):o=s[0];let i;s[1]!==e?(i=()=>e(),s[1]=e,s[2]=i):i=s[2];let l;s[3]===Symbol.for("react.memo_cache_sentinel")?(l=t.jsx(ue,{size:16,className:"text-muted-foreground"}),s[3]=l):l=s[3];let d;s[4]!==r||s[5]!==i?(d=t.jsxs("div",{className:"h-11 px-4 flex items-center justify-between shrink-0 border-b border-border/50",children:[o,t.jsx("button",{type:"button",onClick:i,disabled:r,className:"flex size-7 items-center justify-center rounded-md hover:bg-accent transition-colors cursor-pointer disabled:opacity-40 disabled:cursor-not-allowed",title:"New chat",children:l})]}),s[4]=r,s[5]=i,s[6]=d):d=s[6];let a;s[7]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(ge,{}),s[7]=a):a=s[7];let c;return s[8]!==d?(c=t.jsxs("div",{className:"flex flex-col h-full bg-background border-r border-border/50",children:[d,a]}),s[8]=d,s[9]=c):c=s[9],c}function ke(){const s=S.c(2);let e;s[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx("div",{className:"h-11 px-4 flex items-center shrink-0 border-b border-border/50"}),s[0]=e):e=s[0];let r;return s[1]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsxs("div",{className:"flex flex-col h-full bg-background border-r border-border/50",children:[e,t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(K,{size:20,className:"animate-spin text-muted-foreground"})})]}),s[1]=r):r=s[1],r}function Ae(s){const e=S.c(5),{className:r}=s;let o;e[0]!==r?(o=v("h-full",r),e[0]=r,e[1]=o):o=e[1];let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(ee,{fallback:Ce,children:t.jsx(x.Suspense,{fallback:t.jsx(ke,{}),children:t.jsx(ve,{})})}),e[2]=i):i=e[2];let l;return e[3]!==o?(l=t.jsx("div",{className:o,children:i}),e[3]=o,e[4]=l):l=e[4],l}function Ce(){return t.jsxs("div",{className:"flex flex-col h-full bg-background border-r border-border/50",children:[t.jsx("div",{className:"h-11 px-4 flex items-center shrink-0 border-b border-border/50"}),t.jsx("div",{className:"flex-1 flex items-center justify-center px-4 text-center",children:t.jsx("p",{className:"text-xs text-muted-foreground",children:"Unable to load tasks"})})]})}export{ge as T,Ae as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as u}from"./infiniteQueryObserver-DctmDFEe.js";import{$ as i}from"./index-KAycGEnT.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{$ as u,a6 as s}from"./index-KAycGEnT.js";function o(e,r){return u(e,s,r)}export{o as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as s}from"./infiniteQueryObserver-DctmDFEe.js";import{$ as u,a0 as n}from"./index-KAycGEnT.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
|