decocms 2.179.0 → 2.179.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-DVW9JjHe.js → AlertCircle-QngH9BVd.js} +1 -1
- package/dist/client/assets/{AlignLeft-D_luYgbw.js → AlignLeft-BUW8XsMa.js} +1 -1
- package/dist/client/assets/{ArrowDown-DjR6AtS2.js → ArrowDown-Ba2t7m6d.js} +1 -1
- package/dist/client/assets/{ArrowLeft-DXzT_XO_.js → ArrowLeft-DX2ldnBo.js} +1 -1
- package/dist/client/assets/{ArrowUp-CsoOTX3e.js → ArrowUp-Wy3Qa9X3.js} +1 -1
- package/dist/client/assets/{Building02-BDnC20ph.js → Building02-DW6RLSwU.js} +1 -1
- package/dist/client/assets/{Check-DMs1RV8N.js → Check-CLxUgI8Z.js} +1 -1
- package/dist/client/assets/{CheckCircle-Dgm3JoPw.js → CheckCircle-DDKCxiAn.js} +1 -1
- package/dist/client/assets/{CheckSquare-B28p8IjK.js → CheckSquare-IgZnioYh.js} +1 -1
- package/dist/client/assets/{CheckVerified02-Bip5bRts.js → CheckVerified02-Brnp4Z-Q.js} +1 -1
- package/dist/client/assets/{ChevronDown-1UjCvCvJ.js → ChevronDown-D0b1rvAp.js} +1 -1
- package/dist/client/assets/{ChevronLeft-CU3XMDcg.js → ChevronLeft-BOF7bp9d.js} +1 -1
- package/dist/client/assets/{ChevronRight-BTRAVLe6.js → ChevronRight-BEUO8jhU.js} +1 -1
- package/dist/client/assets/{ChevronUp-vdtknjJN.js → ChevronUp-BWhuIqS7.js} +1 -1
- package/dist/client/assets/{Clock-DxBJbrHB.js → Clock-Aquumu5W.js} +1 -1
- package/dist/client/assets/{Code01-DdhLAVSM.js → Code01-_in0gxFd.js} +1 -1
- package/dist/client/assets/{Container-014scnrD.js → Container-b65PFshp.js} +1 -1
- package/dist/client/assets/{Copy01-BG-9bV8H.js → Copy01-Ds0OKZs5.js} +1 -1
- package/dist/client/assets/{Dataflow03-CWR8TB5R.js → Dataflow03-CE4IJeUz.js} +1 -1
- package/dist/client/assets/{DotsHorizontal-CkBNLVJJ.js → DotsHorizontal-EK1-V4Yv.js} +1 -1
- package/dist/client/assets/{DotsVertical-BhRvdXVC.js → DotsVertical-Bo0fAyx-.js} +1 -1
- package/dist/client/assets/{Download01-Cxd8eRxI.js → Download01-CN3AkzFm.js} +1 -1
- package/dist/client/assets/{Edit01-vPNms-Ul.js → Edit01-BeW3IgwV.js} +1 -1
- package/dist/client/assets/{Edit05-BjhO2H2B.js → Edit05-DDQmnS5O.js} +1 -1
- package/dist/client/assets/{Eye-Daag7Wuw.js → Eye-Cqad01Et.js} +1 -1
- package/dist/client/assets/{EyeOff-V56AuRPU.js → EyeOff-rTYDCZUH.js} +1 -1
- package/dist/client/assets/{File02-DnZ2L7A3.js → File02-k_9AZvHT.js} +1 -1
- package/dist/client/assets/{File06-CaxFtwp-.js → File06-BAp2UeVQ.js} +1 -1
- package/dist/client/assets/{FilterLines-sOtsmsdt.js → FilterLines-BQVg1PzI.js} +1 -1
- package/dist/client/assets/{Globe01-VniVod0F.js → Globe01-sBw0ReRO.js} +1 -1
- package/dist/client/assets/{Globe02-CFhZUYqn.js → Globe02-DlxZmkSI.js} +1 -1
- package/dist/client/assets/{Grid01-BFRlSnJR.js → Grid01-B9zEjFyx.js} +1 -1
- package/dist/client/assets/{Home02-DSFDIAkE.js → Home02-DsMimBHw.js} +1 -1
- package/dist/client/assets/{Image01-BidSy2TD.js → Image01-zSA25K9S.js} +1 -1
- package/dist/client/assets/{Inbox01-6qd3ChkE.js → Inbox01-Bcon6dDK.js} +1 -1
- package/dist/client/assets/{InfoCircle-BZrLSJZ9.js → InfoCircle-CA8mfcG6.js} +1 -1
- package/dist/client/assets/{Key01-Be5udFNT.js → Key01-V3zgT2bk.js} +1 -1
- package/dist/client/assets/{LayersTwo01-CTvn8FKF.js → LayersTwo01-D3otbQFN.js} +1 -1
- package/dist/client/assets/{LayoutLeft-jEOuJnNz.js → LayoutLeft-CbUmiI7I.js} +1 -1
- package/dist/client/assets/{Link01-A-Q0Qt3y.js → Link01-VlHez4tu.js} +1 -1
- package/dist/client/assets/{LinkExternal01-4GVeIgvT.js → LinkExternal01-vs3DKlfq.js} +1 -1
- package/dist/client/assets/{List-B5SMHNql.js → List-D6xZGoxJ.js} +1 -1
- package/dist/client/assets/{Loading01-XbSoiB54.js → Loading01-DQphO9Su.js} +1 -1
- package/dist/client/assets/{Lock01-DqGbP2kI.js → Lock01-Cbqd9PVH.js} +1 -1
- package/dist/client/assets/{Play-DvEGcsI_.js → Play-jCDYHrdu.js} +1 -1
- package/dist/client/assets/{Plus-D_LakzQG.js → Plus-CURSuoDd.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-Bmf4h56V.js → RefreshCcw01-oV1XFIRn.js} +1 -1
- package/dist/client/assets/{Save01-BRkdIv6W.js → Save01-CpNh-fPw.js} +1 -1
- package/dist/client/assets/{SearchMd-Td6IPzMi.js → SearchMd-C8ADHGFY.js} +1 -1
- package/dist/client/assets/{Settings01-RG0u1Wdw.js → Settings01-B76KnDHb.js} +1 -1
- package/dist/client/assets/{Shield01-fdqYD4kz.js → Shield01-BodC6YjW.js} +1 -1
- package/dist/client/assets/{Terminal-3uOmlQWS.js → Terminal-BHkLJhoR.js} +1 -1
- package/dist/client/assets/{Tool01-Brx04CKd.js → Tool01-DlbILfZg.js} +1 -1
- package/dist/client/assets/{Trash01-CCCMsVx7.js → Trash01-CYMRq_nY.js} +1 -1
- package/dist/client/assets/{Upload01-Dmm5OPDQ.js → Upload01-BQ7z5iC5.js} +1 -1
- package/dist/client/assets/{Users03-CGvxqV0p.js → Users03-DEpvReeu.js} +1 -1
- package/dist/client/assets/{X-C2xYa8Ax.js → X-BT_y3J3a.js} +1 -1
- package/dist/client/assets/{XClose-fSpVWsQE.js → XClose-C-H07PEn.js} +1 -1
- package/dist/client/assets/{Zap-Bz0eF-pk.js → Zap-BY3Hn1l9.js} +1 -1
- package/dist/client/assets/{agent-connections-preview-BA-JLzW1.js → agent-connections-preview-DbwllQSw.js} +1 -1
- package/dist/client/assets/{agent-detail-_7gDPROo.js → agent-detail-DqMa-yjy.js} +1 -1
- package/dist/client/assets/{agents-b6l7lHfB.js → agents-DXD0J3OW.js} +1 -1
- package/dist/client/assets/{ai-providers-logos-B2-g7lTr.js → ai-providers-logos-DGTpC_MW.js} +1 -1
- package/dist/client/assets/{alert-dialog-CF6sz6zk.js → alert-dialog-BqCiJDa8.js} +1 -1
- package/dist/client/assets/{auth-catchall-DCsC3URM.js → auth-catchall-DPwCqyhO.js} +1 -1
- package/dist/client/assets/{automation-detail-B-Fbnwgk.js → automation-detail-bmoX3GK-.js} +1 -1
- package/dist/client/assets/{automations-Bt5wEYBR.js → automations-Dp1WjxxK.js} +1 -1
- package/dist/client/assets/{avatar-DuuaPRPf.js → avatar-BoRF-Me1.js} +1 -1
- package/dist/client/assets/{badge-CLjRXA2D.js → badge-DIWKuwVU.js} +1 -1
- package/dist/client/assets/{binder-Bfb9tEyR.js → binder-CuBUxi11.js} +1 -1
- package/dist/client/assets/{breadcrumb-BanVcbRs.js → breadcrumb-BWfepeob.js} +1 -1
- package/dist/client/assets/{card-B1_APflL.js → card-gfMzoGpr.js} +1 -1
- package/dist/client/assets/{checkbox-C1wB7_gF.js → checkbox-DygphnIU.js} +1 -1
- package/dist/client/assets/{collapsible-Dy4NKeeC.js → collapsible-BJo6q_NJ.js} +1 -1
- package/dist/client/assets/{collection-detail-CrE0G9f8.js → collection-detail-fTigPh-V.js} +1 -1
- package/dist/client/assets/{collection-display-button-Bw7A_jmD.js → collection-display-button-C42ZnuS7.js} +1 -1
- package/dist/client/assets/{collection-search-CTFgB7Lp.js → collection-search-Dzoe9W56.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-lo_8Q6rH.js → collection-table-wrapper-Bka5CUqj.js} +1 -1
- package/dist/client/assets/{collection-tabs-B51ouW-s.js → collection-tabs-D9qLvNTu.js} +1 -1
- package/dist/client/assets/{command-Cv0iMXKh.js → command-D_HBfmpj.js} +1 -1
- package/dist/client/assets/{connection-card-D3FBXf0S.js → connection-card-DuHVLZ35.js} +1 -1
- package/dist/client/assets/{connection-detail-Bi3DTcaP.js → connection-detail-vcbLbssZ.js} +1 -1
- package/dist/client/assets/{connections-CqxjlLEM.js → connections-14pDMsUe.js} +1 -1
- package/dist/client/assets/{constants-D_wdAaOl.js → constants-D5QZg84_.js} +1 -1
- package/dist/client/assets/{context-T68lSRvn.js → context-CGMT963w.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-nf2xtqFA.js → create-organization-dialog-CeMf7qju.js} +1 -1
- package/dist/client/assets/{create-project-dialog-Dwjoqy04.js → create-project-dialog-Bs_mS8aj.js} +1 -1
- package/dist/client/assets/{danger-D_l3xCWv.js → danger-gTdMMqBl.js} +1 -1
- package/dist/client/assets/{danger-zone-BqwRtOa-.js → danger-zone-BE94J4G-.js} +1 -1
- package/dist/client/assets/{dependencies-BhIfj_Mh.js → dependencies-DQ9gMDrw.js} +1 -1
- package/dist/client/assets/{dialog-nvlQa_Xp.js → dialog-B8WS5FOh.js} +1 -1
- package/dist/client/assets/{dropdown-menu-CUiyve49.js → dropdown-menu-DE2pKopg.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-Dk3qofvL.js → dynamic-plugin-layout-yMvA298P.js} +1 -1
- package/dist/client/assets/{editable-task-title-BI7B8tuc.js → editable-task-title-oggBOZ_d.js} +1 -1
- package/dist/client/assets/{empty-state-DipJZxfo.js → empty-state-BjCXvoyS.js} +1 -1
- package/dist/client/assets/{empty-state-5rqNijHJ.js → empty-state-Bk9Z7Q-U.js} +1 -1
- package/dist/client/assets/{env-vars-editor-h37BhMbl.js → env-vars-editor-BjeFjhEe.js} +1 -1
- package/dist/client/assets/{extract-connection-data-BT7J0Tij.js → extract-connection-data-CZxT3XNH.js} +1 -1
- package/dist/client/assets/{file-browser-B09oaYS6.js → file-browser-C4MCCicp.js} +2 -2
- package/dist/client/assets/{form-CecOO_Jp.js → form-tOTNzCZe.js} +1 -1
- package/dist/client/assets/{general-DtpKfoJ9.js → general-DOjbT8YE.js} +1 -1
- package/dist/client/assets/{generate-id-5kNQyErh.js → generate-id-kfQDJb0K.js} +1 -1
- package/dist/client/assets/{grid-view-BYb23I1t.js → grid-view-CM2kDBxz.js} +1 -1
- package/dist/client/assets/{home-BqCTon-O.js → home-rO4pkzPH.js} +1 -1
- package/dist/client/assets/{index-BnWERa_y.js → index-B09Yemt1.js} +1 -1
- package/dist/client/assets/{index-B6Ku9roO.js → index-BLtI6TU9.js} +1 -1
- package/dist/client/assets/{index-l2nmjN9p.js → index-Bwlq4qOs.js} +1 -1
- package/dist/client/assets/{index-ZWZxZnmG.js → index-CMImT9Gt.js} +1 -1
- package/dist/client/assets/{index-BVwCZjgy.js → index-D-6rbOIG.js} +1 -1
- package/dist/client/assets/{index-BcgjyTPE.js → index-DiHcYCxZ.js} +1 -1
- package/dist/client/assets/{index-CyHgPymx.js → index-DjVQ8cwy.js} +1 -1
- package/dist/client/assets/{index-BA8pppYm.js → index-DnJ6a24w.js} +3 -3
- package/dist/client/assets/{index-BLiLpmIX.js → index-DyL93sTY.js} +1 -1
- package/dist/client/assets/{index-akdcnE10.js → index-hCeFdkUk.js} +1 -1
- package/dist/client/assets/{index-CFH0OXnH.js → index-qrpgIqks.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-D1nN6BxG.js → infiniteQueryObserver-XS4LWR6q.js} +1 -1
- package/dist/client/assets/{input-CWwUdImu.js → input-BBKBJVKe.js} +1 -1
- package/dist/client/assets/{integration-icon-bimn_V0c.js → integration-icon-C9GR_8Ea.js} +1 -1
- package/dist/client/assets/{label-BPSEc42f.js → label-DJvdRQ2A.js} +1 -1
- package/dist/client/assets/{layout-BAtWCbR2.js → layout-10Sxtyop.js} +1 -1
- package/dist/client/assets/{layout-DJmtFBMT.js → layout-BjyFY_1R.js} +1 -1
- package/dist/client/assets/{login-DvZn3-pa.js → login-ClPbfjlJ.js} +1 -1
- package/dist/client/assets/{logo-upload-Bf5L-Bq4.js → logo-upload-iqCQyRXD.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-B-FxyJ8k.js → mcp-app-renderer-C3qFwvPf.js} +1 -1
- package/dist/client/assets/{mcp-server-card-DTOYo4H_.js → mcp-server-card-DCDS8v4f.js} +1 -1
- package/dist/client/assets/{mcp-server-detail-a-FowR-N.js → mcp-server-detail-lOR_wUNJ.js} +2 -2
- package/dist/client/assets/{members-DoDn5WbR.js → members-CykhAYWe.js} +1 -1
- package/dist/client/assets/{monaco-editor-CzUgVVtD.js → monaco-editor-DQf5JSy_.js} +1 -1
- package/dist/client/assets/{monitoring-Bgwa464O.js → monitoring-BPuhRE0m.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-edit-BhH_9WAU.js → monitoring-dashboard-edit-BVtLOBNe.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-view-fIsDA1fE.js → monitoring-dashboard-view-CXCG5P_H.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-D_ylQ1HM.js → monitoring-stats-row-BfoeteQX.js} +1 -1
- package/dist/client/assets/{oauth-callback-CoUYpMSq.js → oauth-callback-CXrwzvh_.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-b22UrNdp.js → oauth-callback-ai-provider-bQZvbhnr.js} +1 -1
- package/dist/client/assets/{org-ai-providers-BNztZCX5.js → org-ai-providers-4gYTufEL.js} +1 -1
- package/dist/client/assets/{page-Dj4EyeFl.js → page-CCXJyUyN.js} +1 -1
- package/dist/client/assets/{page-BcAinMv5.js → page-DB3QLlpA.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-B9B4uTZe.js → plugin-empty-state-CEvZCNFj.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-D10UXnJW.js → plugin-empty-state-cb7GbeKy.js} +1 -1
- package/dist/client/assets/{plugin-header-DoYwB62G.js → plugin-header-C4ZfQdcs.js} +1 -1
- package/dist/client/assets/{plugin-header-DMvMLBNl.js → plugin-header-Do_HgCfI.js} +1 -1
- package/dist/client/assets/plugins-pEgOY1Nz.js +1 -0
- package/dist/client/assets/{popover-BQCESDW1.js → popover-vDURg2rv.js} +1 -1
- package/dist/client/assets/{project-app-view-C8han8ke.js → project-app-view-DfCIvrF7.js} +1 -1
- package/dist/client/assets/{project-layout-C9lCZplY.js → project-layout-CkMdq05b.js} +1 -1
- package/dist/client/assets/{project-plugins-D3HLEv9w.js → project-plugins-C18qk0lc.js} +1 -1
- package/dist/client/assets/{projects-list-SNQDNaTR.js → projects-list-CtvT2y9h.js} +1 -1
- package/dist/client/assets/{registry-layout-BZlhODlQ.js → registry-layout-Cvu5zKVR.js} +1 -1
- package/dist/client/assets/{registry-utils-CO9REW3F.js → registry-utils-Bx7--rIH.js} +1 -1
- package/dist/client/assets/{reset-password-BzPuN_rH.js → reset-password-CSswd9M3.js} +1 -1
- package/dist/client/assets/{resizable-D8jXXCDX.js → resizable-B0HQ1vuq.js} +1 -1
- package/dist/client/assets/{save-actions-BnLEnZJz.js → save-actions-BxTuQTa4.js} +1 -1
- package/dist/client/assets/{scroll-area-CkVftfiY.js → scroll-area-dsTSFUPi.js} +1 -1
- package/dist/client/assets/{select-DY00D15R.js → select-Bbaj2HCW.js} +1 -1
- package/dist/client/assets/{select-virtual-mcp-ImcCDhMn.js → select-virtual-mcp-CZJoA7HG.js} +1 -1
- package/dist/client/assets/{sheet-TosLb8yt.js → sheet-B_-2ygzJ.js} +1 -1
- package/dist/client/assets/{shell-layout-CDsk-Umm.js → shell-layout-Ca5Bbhzi.js} +2 -2
- package/dist/client/assets/{sidebar-settings-C8ElmrHD.js → sidebar-settings-pZmI7pGH.js} +1 -1
- package/dist/client/assets/{skeleton-Gm5DA-8P.js → skeleton-NLo71_Sb.js} +1 -1
- package/dist/client/assets/{spinner-C1mMEiMb.js → spinner-EdHFCjIL.js} +1 -1
- package/dist/client/assets/{store-invite-xUrcBlzX.js → store-invite-CP9PWG-2.js} +1 -1
- package/dist/client/assets/{switch-B14zfEb5.js → switch-bfk4EFAk.js} +1 -1
- package/dist/client/assets/{table-DtXpny3U.js → table-BK1bAac3.js} +1 -1
- package/dist/client/assets/{tabs-A9qGl5Lu.js → tabs-aIY_aIUV.js} +1 -1
- package/dist/client/assets/{task-status-CwMjGfTF.js → task-status-DCsPkppQ.js} +1 -1
- package/dist/client/assets/tasks-Dw1i-69W.js +1 -0
- package/dist/client/assets/{tasks-panel-Bw9YqQ1_.js → tasks-panel-CEAgXi7r.js} +1 -1
- package/dist/client/assets/{textarea-2ogmGtkG.js → textarea-lF0m7xkk.js} +1 -1
- package/dist/client/assets/{time-range-picker-Bygakts1.js → time-range-picker-CEhZhu7c.js} +1 -1
- package/dist/client/assets/{toggle-group-WPtVUYwJ.js → toggle-group-Dak-s1p3.js} +1 -1
- package/dist/client/assets/{tools-list-CLB5XZOj.js → tools-list-DGVVcYEB.js} +1 -1
- package/dist/client/assets/{tooltip-BwvAIIBc.js → tooltip-Csc3oeTz.js} +1 -1
- package/dist/client/assets/{topbar-portal-DSf1d5HJ.js → topbar-portal-DLbOrsQP.js} +1 -1
- package/dist/client/assets/{types-DvobBpvI.js → types-BOmhR0hZ.js} +1 -1
- package/dist/client/assets/{use-automations-BGQlbv1W.js → use-automations-CPlNdxed.js} +1 -1
- package/dist/client/assets/{use-collections-CXZHBPMS.js → use-collections-Le9CzDbY.js} +1 -1
- package/dist/client/assets/{use-connection-oartfPuq.js → use-connection-CNeKPAtP.js} +1 -1
- package/dist/client/assets/{use-copy-BISgLMu4.js → use-copy-CR_0d0zs.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-B2tmMqVr.js → use-create-virtual-mcp-BOxl7MdZ.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-CNsl4fNC.js → use-infinite-scroll-CbBHKCjw.js} +1 -1
- package/dist/client/assets/{use-install-from-registry-8Jf-vPEq.js → use-install-from-registry-Ckutd61H.js} +1 -1
- package/dist/client/assets/{use-list-state-DS3NYHkq.js → use-list-state-DrSbpG8C.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-BVySy_Df.js → use-mcp-prompts-D4XXlnov.js} +1 -1
- package/dist/client/assets/{use-mcp-resources-OeB_buKh.js → use-mcp-resources-BueR0w1E.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-BD1SdmMk.js → use-mcp-tools-CFyULGGP.js} +1 -1
- package/dist/client/assets/{use-members-k2yssW28.js → use-members-Bgz9FSqE.js} +1 -1
- package/dist/client/assets/{use-mobile-DppT4Zv5.js → use-mobile-Y3tADOOl.js} +1 -1
- package/dist/client/assets/{use-project-DgQNJTfy.js → use-project-RpN1fut9.js} +1 -1
- package/dist/client/assets/{use-store-discovery-B-25KncH.js → use-store-discovery-BS96E_Li.js} +1 -1
- package/dist/client/assets/{use-view-mode-zE3w0aFf.js → use-view-mode-BeRbE5Df.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-DSUCQY_R.js → use-virtual-mcp-DGT5zflo.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-ChOuKh6v.js +1 -0
- package/dist/client/assets/{useMutation-BBCyPLav.js → useMutation-Betr8yis.js} +1 -1
- package/dist/client/assets/useQuery-mzOsnjYJ.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-DFs2FFlW.js +1 -0
- package/dist/client/assets/{user-SVhF7LgJ.js → user-ChA79mrb.js} +1 -1
- package/dist/client/assets/{workflow-_9jX4O0E.js → workflow-CBDfcQFP.js} +1 -1
- package/dist/client/index.html +1 -1
- package/package.json +1 -1
- package/dist/client/assets/plugins-BIAdz3D1.js +0 -1
- package/dist/client/assets/tasks-CU0IwUDf.js +0 -1
- package/dist/client/assets/useInfiniteQuery-CdvsEF9_.js +0 -1
- package/dist/client/assets/useQuery-wtRfgSpz.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CvRHX1aW.js +0 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{r as I,c as w,j as s,E as Ye,u as ze,D as P,e as Xe,at as Ze,L as We,cb as _t,bg as kt,O as te,as as Ct,X as wt,a0 as $t,g as it,f as Ne,v as ve,cc as zt,bK as It,w as Pt,B as Ge,A as At,S as nt,k as Et,m as Ot,N as Tt,x as Dt,z as Fe,K as Mt,au as lt,P as Rt}from"./index-BA8pppYm.js";import{C as oe,c as Lt,i as Ht,d as Ut}from"./task-status-CwMjGfTF.js";import{I as Bt}from"./integration-icon-bimn_V0c.js";import{a as ot,P as ge,u as Je}from"./index-BnWERa_y.js";import{d as Ft,a as Kt,u as Wt}from"./constants-D_wdAaOl.js";import{n as Gt}from"./ChevronLeft-CU3XMDcg.js";import{i as Vt}from"./Loading01-XbSoiB54.js";import{s as Le}from"./Plus-D_LakzQG.js";import{t as et}from"./Users03-CGvxqV0p.js";import{i as tt}from"./X-C2xYa8Ax.js";import{E as qt,C as Qt}from"./editable-task-title-BI7B8tuc.js";import{T as Yt}from"./tasks-panel-Bw9YqQ1_.js";import{a as Xt,b as Zt}from"./ai-providers-logos-B2-g7lTr.js";import{a as Jt}from"./context-T68lSRvn.js";import{C as at}from"./create-project-dialog-Dwjoqy04.js";import{a as es,b as ts,c as ss,D as is}from"./dialog-nvlQa_Xp.js";import{n as ns}from"./Container-014scnrD.js";import{e as ls}from"./Dataflow03-CWR8TB5R.js";import{a as os}from"./Home02-DSFDIAkE.js";import{i as Ve}from"./LayoutLeft-jEOuJnNz.js";import{s as as}from"./RefreshCcw01-Bmf4h56V.js";import{t as He}from"./Settings01-RG0u1Wdw.js";import{u as rs,a as rt}from"./org-ai-providers-BNztZCX5.js";import{u as ct,a as dt}from"./use-project-DgQNJTfy.js";import{u as cs}from"./use-mobile-DppT4Zv5.js";import{S as ds,b as ms,c as fs,d as us,a as ps}from"./sheet-TosLb8yt.js";import{c as xs,b as hs,a as gs,T as bs}from"./tooltip-BwvAIIBc.js";import{S as re}from"./skeleton-Gm5DA-8P.js";import{n as $e}from"./LinkExternal01-4GVeIgvT.js";import{t as mt}from"./ChevronDown-1UjCvCvJ.js";import{A as Ie}from"./avatar-DuuaPRPf.js";import{c as ae,f as js,e as vs,b as ft,D as ut,a as pt,h as Ue,d as Ns}from"./dropdown-menu-CUiyve49.js";import{t as ys}from"./Building02-BDnC20ph.js";import{i as Pe}from"./Check-DMs1RV8N.js";import{C as Ss}from"./create-organization-dialog-nf2xtqFA.js";import{a as _s}from"./Copy01-BG-9bV8H.js";import{i as ks}from"./File06-CaxFtwp-.js";import{i as Cs}from"./Globe01-VniVod0F.js";import{i as ws}from"./Shield01-fdqYD4kz.js";import{a as $s,P as zs,b as Is}from"./popover-BQCESDW1.js";import{n as st}from"./Inbox01-6qd3ChkE.js";import{s as Ps}from"./XClose-fSpVWsQE.js";import{b as As}from"./use-mcp-tools-BD1SdmMk.js";import{C as Es,a as Os,b as Ts}from"./collapsible-Dy4NKeeC.js";import{i as Ds}from"./ChevronRight-BTRAVLe6.js";import{a as Ms,R as xt,b as Rs}from"./resizable-D8jXXCDX.js";import"./spinner-C1mMEiMb.js";import"./use-mcp-prompts-BVySy_Df.js";import"./useQuery-wtRfgSpz.js";import"./form-CecOO_Jp.js";import"./label-BPSEc42f.js";import"./input-CWwUdImu.js";import"./index-B6Ku9roO.js";import"./usage-BW6ztpN6.js";import"./ArrowUp-CsoOTX3e.js";import"./Edit01-vPNms-Ul.js";import"./Lock01-DqGbP2kI.js";import"./use-copy-BISgLMu4.js";import"./AlertCircle-DVW9JjHe.js";import"./select-DY00D15R.js";import"./ChevronUp-vdtknjJN.js";import"./index-akdcnE10.js";import"./ArrowLeft-DXzT_XO_.js";import"./tabs-A9qGl5Lu.js";import"./checkbox-C1wB7_gF.js";import"./AlignLeft-D_luYgbw.js";import"./Image01-BidSy2TD.js";import"./Key01-Be5udFNT.js";import"./SearchMd-Td6IPzMi.js";import"./Tool01-Brx04CKd.js";import"./select-virtual-mcp-ImcCDhMn.js";import"./use-virtual-mcp-DSUCQY_R.js";import"./use-collections-CXZHBPMS.js";import"./useMutation-BBCyPLav.js";import"./use-create-virtual-mcp-B2tmMqVr.js";import"./use-mcp-resources-OeB_buKh.js";import"./marked.esm-BaswSlok.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-B-FxyJ8k.js";import"./types-DvobBpvI.js";import"./Eye-Daag7Wuw.js";import"./Globe02-CFhZUYqn.js";import"./LayersTwo01-CTvn8FKF.js";import"./Clock-DxBJbrHB.js";import"./Trash01-CCCMsVx7.js";import"./useSuspenseInfiniteQuery-CvRHX1aW.js";import"./infiniteQueryObserver-D1nN6BxG.js";import"./CheckCircle-Dgm3JoPw.js";import"./collection-search-CTFgB7Lp.js";import"./user-SVhF7LgJ.js";import"./format-time-CMKyl-GC.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./empty-state-DipJZxfo.js";import"./decopilot-events-Brt4gAR6.js";import"./index-l2nmjN9p.js";import"./textarea-2ogmGtkG.js";import"./EyeOff-V56AuRPU.js";import"./card-B1_APflL.js";import"./toggle-group-WPtVUYwJ.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./alert-dialog-CF6sz6zk.js";import"./index-ZWZxZnmG.js";const ht=({size:t=24,color:e="currentColor",...i})=>I.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i},I.createElement("path",{d:"M9 7H4.6c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C3 7.76 3 8.04 3 8.6v10.8c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C3.76 21 4.04 21 4.6 21H9m0 0h6m-6 0V4.6c0-.56 0-.84.109-1.054a1 1 0 0 1 .437-.437C9.76 3 10.04 3 10.6 3h2.8c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C15 3.76 15 4.04 15 4.6V21m0-10h4.4c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C21 11.76 21 12.04 21 12.6v6.8c0 .56 0 .84-.109 1.054a1 1 0 0 1-.437.437C20.24 21 19.96 21 19.4 21H15"}));ht.displayName="BarChart10";const Be=({size:t=24,color:e="currentColor",...i})=>I.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i},I.createElement("path",{d:"m6 15 2 2 4.5-4.5M8 8V5.2c0-1.12 0-1.68.218-2.108a2 2 0 0 1 .874-.874C9.52 2 10.08 2 11.2 2h7.6c1.12 0 1.68 0 2.108.218a2 2 0 0 1 .874.874C22 3.52 22 4.08 22 5.2v7.6c0 1.12 0 1.68-.218 2.108a2 2 0 0 1-.874.874C20.48 16 19.92 16 18.8 16H16M5.2 22h7.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C16 20.48 16 19.92 16 18.8v-7.6c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C14.48 8 13.92 8 12.8 8H5.2c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C2 9.52 2 10.08 2 11.2v7.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C3.52 22 4.08 22 5.2 22Z"}));Be.displayName="CheckDone01";const gt=({size:t=24,color:e="currentColor",...i})=>I.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i},I.createElement("path",{d:"M15.938 15.938A7.001 7.001 0 0 0 15 2a7.001 7.001 0 0 0-6.938 6.062M16 15a7 7 0 1 1-14 0 7 7 0 0 1 14 0Z"}));gt.displayName="Coins01";const bt=({size:t=24,color:e="currentColor",...i})=>I.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i},I.createElement("path",{d:"m16 17 5-5m0 0-5-5m5 5H9m0-9H7.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C3 5.28 3 6.12 3 7.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 21 6.12 21 7.8 21H9"}));bt.displayName="LogOut01";function Ls(){const t=w.c(70),{org:e}=ze(),[,i]=ot(),n=Xt(),{selectedVirtualMcp:l,isChatEmpty:o,activeTaskId:a,createTask:r,switchToTask:c,tasks:d}=Jt();let m;if(t[0]!==a||t[1]!==d){let O;t[3]!==a?(O=Z=>Z.id===a,t[3]=a,t[4]=O):O=t[4],m=d.find(O),t[0]=a,t[1]=d,t[2]=m}else m=t[2];const u=m,[f,p]=I.useState("chat"),[h,y]=I.useTransition();let j;t[5]!==e.id?(j=Ft(e.id),t[5]=e.id,t[6]=j):j=t[6];const g=l??j;let x;t[7]!==r?(x=()=>{y(()=>{r()})},t[7]=r,t[8]=x):x=t[8];const v=x;if(n?.providers?.length===0){let O;t[9]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsx(ge.Header.Left,{className:"gap-2"}),t[9]=O):O=t[9];let Z;t[10]!==i?(Z=()=>i(!1),t[10]=i,t[11]=Z):Z=t[11];let me;t[12]===Symbol.for("react.memo_cache_sentinel")?(me=s.jsx(tt,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[12]=me):me=t[12];let ie;t[13]!==Z?(ie=s.jsxs(ge.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[O,s.jsx(ge.Header.Right,{className:"gap-1",children:s.jsx("button",{type:"button",onClick:Z,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:me})})]}),t[13]=Z,t[14]=ie):ie=t[14];let je;t[15]===Symbol.for("react.memo_cache_sentinel")?(je=s.jsx(oe.Main,{className:"flex flex-col items-center",children:s.jsx(oe.EmptyState,{children:s.jsx(oe.NoLlmBindingEmptyState,{title:"No model provider connected",description:"Connect to a model provider to unlock AI-powered features."})})}),t[15]=je):je=t[15];let ne;return t[16]!==ie?(ne=s.jsxs(oe,{className:"animate-in fade-in-0 duration-200",children:[ie,je]}),t[16]=ie,t[17]=ne):ne=t[17],ne}const C=f!=="chat"||h?"opacity-0 pointer-events-none":"opacity-100";let b;t[18]!==C?(b=P("absolute inset-0 flex flex-col transition-opacity duration-100 ease-out",C),t[18]=C,t[19]=b):b=t[19];let N;t[20]!==u||t[21]!==o?(N=!o&&u?.title&&s.jsx(qt,{taskId:u.id,text:u.title,className:"text-sm font-medium text-foreground"}),t[20]=u,t[21]=o,t[22]=N):N=t[22];let k;t[23]!==N?(k=s.jsx(ge.Header.Left,{className:"gap-2",children:N}),t[23]=N,t[24]=k):k=t[24];let $;t[25]===Symbol.for("react.memo_cache_sentinel")?($=s.jsx(Le,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[25]=$):$=t[25];let z;t[26]!==v||t[27]!==h?(z=s.jsx("button",{type:"button",onClick:v,disabled:h,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent group cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",title:"New chat",children:$}),t[26]=v,t[27]=h,t[28]=z):z=t[28];let M;t[29]===Symbol.for("react.memo_cache_sentinel")?(M=()=>p("tasks"),t[29]=M):M=t[29];let R;t[30]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx("button",{type:"button",onClick:M,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent group cursor-pointer",title:"Tasks",children:s.jsx(Be,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"})}),t[30]=R):R=t[30];let L;t[31]!==i?(L=()=>i(!1),t[31]=i,t[32]=L):L=t[32];let H;t[33]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(tt,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[33]=H):H=t[33];let T;t[34]!==L?(T=s.jsx("button",{type:"button",onClick:L,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:H}),t[34]=L,t[35]=T):T=t[35];let A;t[36]!==T||t[37]!==z?(A=s.jsxs(ge.Header.Right,{className:"gap-1",children:[z,R,T]}),t[36]=T,t[37]=z,t[38]=A):A=t[38];let D;t[39]!==A||t[40]!==k?(D=s.jsxs(ge.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[k,A]}),t[39]=A,t[40]=k,t[41]=D):D=t[41];let E;t[42]!==g||t[43]!==o?(E=s.jsx(oe.Main,{children:o?s.jsx(oe.EmptyState,{children:s.jsxs("div",{className:"flex flex-col items-center gap-6 w-full px-4",children:[s.jsxs("div",{className:"flex flex-col items-center justify-center gap-4 p-0 text-center",children:[s.jsx(Bt,{icon:g.icon,name:g.title,size:"lg",fallbackIcon:s.jsx(et,{size:32}),className:"size-[60px]! rounded-[18px]!"}),s.jsx("h3",{className:"text-xl font-medium text-foreground",children:g.title}),s.jsx("div",{className:"text-muted-foreground text-center text-sm max-w-md",children:g.description??"Ask anything about configuring model providers or using MCP Mesh."})]}),s.jsx(oe.IceBreakers,{})]})}):s.jsx(oe.Messages,{})}),t[42]=g,t[43]=o,t[44]=E):E=t[44];let U;t[45]===Symbol.for("react.memo_cache_sentinel")?(U=s.jsx(oe.Footer,{children:s.jsx(oe.Input,{onOpenContextPanel:()=>p("context")})}),t[45]=U):U=t[45];let B;t[46]!==D||t[47]!==E||t[48]!==b?(B=s.jsxs("div",{className:b,children:[D,E,U]}),t[46]=D,t[47]=E,t[48]=b,t[49]=B):B=t[49];const F=f==="tasks"?"opacity-100":"opacity-0 pointer-events-none";let se;t[50]!==F?(se=P("absolute inset-0 flex flex-col transition-opacity duration-100 ease-out",F),t[50]=F,t[51]=se):se=t[51];let J;t[52]===Symbol.for("react.memo_cache_sentinel")?(J=s.jsx(ge.Header.Left,{className:"gap-2",children:s.jsx("span",{className:"text-sm font-normal text-foreground",children:"Tasks"})}),t[52]=J):J=t[52];let ce;t[53]===Symbol.for("react.memo_cache_sentinel")?(ce=()=>p("chat"),t[53]=ce):ce=t[53];let de;t[54]===Symbol.for("react.memo_cache_sentinel")?(de=s.jsxs(ge.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[J,s.jsx(ge.Header.Right,{className:"gap-1",children:s.jsx("button",{type:"button",onClick:ce,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Back to chat",children:s.jsx(Gt,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"})})})]}),t[54]=de):de=t[54];let W;t[55]===Symbol.for("react.memo_cache_sentinel")?(W=s.jsx("div",{className:"flex-1 flex items-center justify-center",children:s.jsx(Vt,{size:16,className:"animate-spin text-muted-foreground"})}),t[55]=W):W=t[55];let X;t[56]!==c?(X=s.jsx(Ye,{fallback:Hs,children:s.jsx(I.Suspense,{fallback:W,children:s.jsx(Yt,{onTaskSelect:async O=>{await c(O),p("chat")}})})}),t[56]=c,t[57]=X):X=t[57];let G;t[58]!==se||t[59]!==X?(G=s.jsxs("div",{className:se,children:[de,X]}),t[58]=se,t[59]=X,t[60]=G):G=t[60];const fe=f==="context"?"opacity-100":"opacity-0 pointer-events-none";let V;t[61]!==fe?(V=P("absolute inset-0 flex flex-col transition-opacity duration-100 ease-out",fe),t[61]=fe,t[62]=V):V=t[62];let ee;t[63]===Symbol.for("react.memo_cache_sentinel")?(ee=s.jsx(Qt,{back:!0,onClose:()=>p("chat")}),t[63]=ee):ee=t[63];let q;t[64]!==V?(q=s.jsx("div",{className:V,children:ee}),t[64]=V,t[65]=q):q=t[65];let Q;return t[66]!==B||t[67]!==G||t[68]!==q?(Q=s.jsxs(oe,{className:"relative overflow-hidden animate-in fade-in-0 duration-200",children:[B,G,q]}),t[66]=B,t[67]=G,t[68]=q,t[69]=Q):Q=t[69],Q}function Hs(){return s.jsx("div",{className:"flex-1 flex items-center justify-center",children:s.jsx("p",{className:"text-xs text-muted-foreground",children:"Unable to load tasks"})})}function Us(){const t=w.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(oe.Skeleton,{}),t[0]=e):e=t[0];let i;return t[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(Ye,{fallback:e,children:s.jsx(I.Suspense,{fallback:s.jsx(oe.Skeleton,{}),children:s.jsx(Ls,{})})}),t[1]=i):i=t[1],i}function Bs(t){const e=w.c(5),{open:i,onOpenChange:n}=t;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(ts,{children:s.jsx(ss,{children:"Keyboard Shortcuts"})}),e[0]=l):l=e[0];let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsxs(es,{className:"sm:max-w-md",children:[l,s.jsx("div",{className:"flex flex-col gap-4",children:Lt.map(Fs)})]}),e[1]=o):o=e[1];let a;return e[2]!==n||e[3]!==i?(a=s.jsx(is,{open:i,onOpenChange:n,children:o}),e[2]=n,e[3]=i,e[4]=a):a=e[4],a}function Fs(t){return s.jsxs("div",{children:[s.jsx("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-2",children:t.label}),s.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(Ks)})]},t.label)}function Ks(t){return s.jsxs("div",{className:"flex items-center justify-between py-1",children:[s.jsx("span",{className:"text-sm",children:t.description}),s.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(Ws)})]},t.description)}function Ws(t){return s.jsx("kbd",{className:"inline-flex items-center justify-center min-w-6 h-6 px-1.5 rounded-sm border border-border bg-muted text-muted-foreground text-xs font-mono",children:t},t)}function Gs(){const t=w.c(60),{locator:e,org:i}=ze(),n=Xe(),l=Ze(),[o]=rs(),{org:a,project:r}=We.parse(e),c=We.isOrgAdminProject(e),{data:d}=ct(i.id,r);let m;t[0]!==d?.enabledPlugins?(m=d?.enabledPlugins??[],t[0]=d?.enabledPlugins,t[1]=m):m=t[1];const u=m,f=d?.ui?.pinnedViews??[];let p;t[2]!==u?(p=S=>u.includes(S.pluginId),t[2]=u,t[3]=p):p=t[3];const h=_t.filter(p),y=l.location.pathname,j=`/${a}/${r}`,_=y===j||y===`${j}/`;let g;t[4]!==j||t[5]!==y?(g=S=>y.startsWith(`${j}/${S}`),t[4]=j,t[5]=y,t[6]=g):g=t[6];const x=g;let v;t[7]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx(os,{}),t[7]=v):v=t[7];const C={key:"home",label:"Home",icon:v,isActive:_,onClick:()=>{_?window.dispatchEvent(new CustomEvent("reset-home-view")):n({to:"/$org/$project",params:{org:a,project:r}})}};let b;t[8]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(Be,{}),t[8]=b):b=t[8];const N={key:"tasks",label:"Tasks",icon:b,isActive:x("tasks"),onClick:()=>n({to:"/$org/$project/tasks",params:{org:a,project:te}})};let k;t[9]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx(ns,{}),t[9]=k):k=t[9];const $={key:"mcps",label:"Connections",icon:k,isActive:x("mcps"),onClick:()=>n({to:"/$org/$project/mcps",params:{org:a,project:te}})};let z;t[10]===Symbol.for("react.memo_cache_sentinel")?(z=s.jsx(Ct,{}),t[10]=z):z=t[10];const M={key:"projects",label:"Projects",icon:z,isActive:x("projects"),onClick:()=>n({to:"/$org/$project/projects",params:{org:a,project:te}})};let R;t[11]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx(et,{}),t[11]=R):R=t[11];const L={key:"agents",label:"Agents",icon:R,isActive:x("agents"),onClick:()=>n({to:"/$org/$project/agents",params:{org:a,project:te}})};let H;t[12]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(as,{}),t[12]=H):H=t[12];const T={key:"automations",label:"Automations",icon:H,isActive:x("automations"),onClick:()=>n({to:"/$org/$project/automations",params:{org:a,project:te}})};let A;t[13]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(ht,{}),t[13]=A):A=t[13];const D={key:"monitoring",label:"Monitor",icon:A,isActive:x("monitoring"),onClick:()=>n({to:"/$org/$project/monitoring",params:{org:a,project:te}})},E=h.map(S=>({key:S.pluginId,label:S.label,icon:S.icon,isActive:x(S.pluginId),onClick:()=>n({to:"/$org/$project/$pluginId",params:{org:a,project:r,pluginId:S.pluginId}})}));let U;t[14]!==u?(U=S=>u.includes(S.pluginId),t[14]=u,t[15]=U):U=t[15];const F=kt.filter(U).map(S=>({type:"group",group:{id:`${S.pluginId}-${S.id}`,label:S.label,items:S.items.map((K,le)=>({key:`${S.pluginId}-${S.id}-${le}`,label:K.label,icon:K.icon,isActive:x(S.pluginId),onClick:()=>n({to:"/$org/$project/$pluginId",params:{org:a,project:r,pluginId:S.pluginId}})})),defaultExpanded:S.defaultExpanded??!0}})),se=f.map(S=>({key:`app-${S.connectionId}-${S.toolName}`,label:S.label||S.toolName,icon:S.icon?s.jsx("img",{src:S.icon,alt:"",className:"size-4 rounded"}):s.jsx(Ve,{}),isActive:x(`apps/${S.connectionId}/${encodeURIComponent(S.toolName)}`),onClick:()=>n({to:"/$org/$project/apps/$connectionId/$toolName",params:{org:a,project:r,connectionId:S.connectionId,toolName:S.toolName}})}));let J;t[16]!==se?(J=se.length>0?{type:"group",group:{id:"apps",label:"Apps",items:se,defaultExpanded:!0}}:null,t[16]=se,t[17]=J):J=t[17];const ce=J;if(c){let S;t[18]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx(He,{}),t[18]=S):S=t[18];let K;t[19]!==x?(K=x("settings"),t[19]=x,t[20]=K):K=t[20];let le;t[21]!==n||t[22]!==a?(le=()=>n({to:"/$org/$project/settings",params:{org:a,project:te}}),t[21]=n,t[22]=a,t[23]=le):le=t[23];let he;t[24]!==K||t[25]!==le?(he={key:"settings",label:"Settings",icon:S,isActive:K,onClick:le},t[24]=K,t[25]=le,t[26]=he):he=t[26];const ye=he,ue=[{type:"items",items:[C,N,M]},{type:"group",group:{id:"build",label:"Build",items:[...o.experimentalAutomations?[T]:[],L,$],defaultExpanded:!0}},{type:"group",group:{id:"manage",label:"Manage",items:[D,ye],defaultExpanded:!0}}];if(E.length>0){let pe;t[27]!==E?(pe={type:"items",items:E},t[27]=E,t[28]=pe):pe=t[28],ue.push(pe)}return F.length>0&&ue.push(...F),ce&&ue.push(ce),ue}let de;t[29]===Symbol.for("react.memo_cache_sentinel")?(de=s.jsx(Be,{}),t[29]=de):de=t[29];let W;t[30]!==x?(W=x("tasks"),t[30]=x,t[31]=W):W=t[31];let X;t[32]!==n||t[33]!==a||t[34]!==r?(X=()=>n({to:"/$org/$project/tasks",params:{org:a,project:r}}),t[32]=n,t[33]=a,t[34]=r,t[35]=X):X=t[35];let G;t[36]!==W||t[37]!==X?(G={key:"tasks",label:"Tasks",icon:de,isActive:W,onClick:X},t[36]=W,t[37]=X,t[38]=G):G=t[38];const fe=G;let V;t[39]!==u||t[40]!==x||t[41]!==n||t[42]!==a||t[43]!==r?(V=u.includes("workflows")?{key:"workflows",label:"Workflows",icon:s.jsx(ls,{}),isActive:x("workflows"),onClick:()=>n({to:"/$org/$project/workflows",params:{org:a,project:r}})}:null,t[39]=u,t[40]=x,t[41]=n,t[42]=a,t[43]=r,t[44]=V):V=t[44];const ee=V;let q;t[45]===Symbol.for("react.memo_cache_sentinel")?(q=s.jsx(He,{}),t[45]=q):q=t[45];let Q;t[46]!==x?(Q=x("settings"),t[46]=x,t[47]=Q):Q=t[47];let O;t[48]!==n||t[49]!==a||t[50]!==r?(O=()=>n({to:"/$org/$project/settings/general",params:{org:a,project:r}}),t[48]=n,t[49]=a,t[50]=r,t[51]=O):O=t[51];let Z;t[52]!==Q||t[53]!==O?(Z={key:"configure",label:"Settings",icon:q,isActive:Q,onClick:O},t[52]=Q,t[53]=O,t[54]=Z):Z=t[54];const me=Z;let ie;t[55]!==ee?(ie=ee?[ee]:[],t[55]=ee,t[56]=ie):ie=t[56];const ne=[{type:"items",items:[C,fe,...ie,me]}];if(E.length>0){let S;t[57]===Symbol.for("react.memo_cache_sentinel")?(S={type:"divider"},t[57]=S):S=t[57],ne.push(S);let K;t[58]!==E?(K={type:"items",items:E},t[58]=E,t[59]=K):K=t[59],ne.push(K)}return F.length>0&&ne.push(...F),ce&&ne.push(ce),ne}const Vs="sidebar_state",qs=3600*24*7,Qs="16rem",Ys="18rem",Xs="3rem",Zs="b",jt=I.createContext(null);function Ke(){const t=I.useContext(jt);if(!t)throw new Error("useSidebar must be used within a SidebarProvider.");return t}function Js(t){const e=w.c(21),{defaultOpen:i,open:n,onOpenChange:l,children:o}=t,a=i===void 0?!0:i,r=cs(),[c,d]=I.useState(!1),[m,u]=I.useState(a),f=n??m;let p;e[0]!==f||e[1]!==l?(p=k=>{const $=typeof k=="function"?k(f):k;l?l($):u($),document.cookie=`${Vs}=${$}; path=/; max-age=${qs}`},e[0]=f,e[1]=l,e[2]=p):p=e[2];const h=p;let y;e[3]!==r||e[4]!==h?(y=()=>r?d(ti):h(ei),e[3]=r,e[4]=h,e[5]=y):y=e[5];const j=y;let _,g;e[6]!==j?(_=()=>{const k=$=>{if($.key===Zs&&($.metaKey||$.ctrlKey)){const z=$.target;if(z.tagName==="INPUT"||z.tagName==="TEXTAREA"||z.isContentEditable)return;$.preventDefault(),j()}};return globalThis.addEventListener("keydown",k),()=>globalThis.removeEventListener("keydown",k)},g=[j],e[6]=j,e[7]=_,e[8]=g):(_=e[7],g=e[8]),I.useEffect(_,g);const x=f?"expanded":"collapsed";let v;e[9]!==r||e[10]!==f||e[11]!==c||e[12]!==h||e[13]!==x||e[14]!==j?(v={state:x,open:f,setOpen:h,isMobile:r,openMobile:c,setOpenMobile:d,toggleSidebar:j},e[9]=r,e[10]=f,e[11]=c,e[12]=h,e[13]=x,e[14]=j,e[15]=v):v=e[15];const C=v;let b;e[16]!==o?(b=s.jsx(xs,{delayDuration:0,children:o}),e[16]=o,e[17]=b):b=e[17];let N;return e[18]!==C||e[19]!==b?(N=s.jsx(jt.Provider,{value:C,children:b}),e[18]=C,e[19]=b,e[20]=N):N=e[20],N}function ei(t){return!t}function ti(t){return!t}function si(t){const e=w.c(14);let i,n,l,o;e[0]!==t?({className:n,style:o,children:i,...l}=t,e[0]=t,e[1]=i,e[2]=n,e[3]=l,e[4]=o):(i=e[1],n=e[2],l=e[3],o=e[4]);let a;e[5]!==o?(a={"--sidebar-width":Qs,"--sidebar-width-icon":Xs,...o},e[5]=o,e[6]=a):a=e[6];const r=a;let c;e[7]!==n?(c=P("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",n),e[7]=n,e[8]=c):c=e[8];let d;return e[9]!==i||e[10]!==l||e[11]!==r||e[12]!==c?(d=s.jsx("div",{"data-slot":"sidebar-wrapper",style:r,className:c,...l,children:i}),e[9]=i,e[10]=l,e[11]=r,e[12]=c,e[13]=d):d=e[13],d}function ii(t){const e=w.c(42);let i,n,l,o,a,r;e[0]!==t?({side:o,variant:a,collapsible:r,className:n,children:i,...l}=t,e[0]=t,e[1]=i,e[2]=n,e[3]=l,e[4]=o,e[5]=a,e[6]=r):(i=e[1],n=e[2],l=e[3],o=e[4],a=e[5],r=e[6]);const c=o===void 0?"left":o,d=a===void 0?"sidebar":a,m=r===void 0?"offcanvas":r,{isMobile:u,state:f,openMobile:p,setOpenMobile:h}=Ke();if(m==="none"){let b;e[7]!==n?(b=P("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",n),e[7]=n,e[8]=b):b=e[8];let N;return e[9]!==i||e[10]!==l||e[11]!==b?(N=s.jsx("div",{"data-slot":"sidebar",className:b,...l,children:i}),e[9]=i,e[10]=l,e[11]=b,e[12]=N):N=e[12],N}if(u){let b;e[13]===Symbol.for("react.memo_cache_sentinel")?(b={"--sidebar-width":Ys},e[13]=b):b=e[13];let N;e[14]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsxs(ms,{className:"sr-only",children:[s.jsx(fs,{children:"Sidebar"}),s.jsx(us,{children:"Displays the mobile sidebar."})]}),e[14]=N):N=e[14];let k;e[15]!==i?(k=s.jsx("div",{className:"flex h-full w-full flex-col",children:i}),e[15]=i,e[16]=k):k=e[16];let $;e[17]!==c||e[18]!==k?($=s.jsxs(ps,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:b,side:c,children:[N,k]}),e[17]=c,e[18]=k,e[19]=$):$=e[19];let z;return e[20]!==p||e[21]!==l||e[22]!==h||e[23]!==$?(z=s.jsx(ds,{open:p,onOpenChange:h,...l,children:$}),e[20]=p,e[21]=l,e[22]=h,e[23]=$,e[24]=z):z=e[24],z}const y=d==="floating"||d==="inset"?"data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"data-[collapsible=icon]:w-(--sidebar-width-icon)";let j;e[25]!==y?(j=P("group peer text-sidebar-foreground hidden md:flex flex-col shrink-0 overflow-hidden","w-(--sidebar-width) transition-[width] duration-300 ease-[var(--ease-out-quart)]","data-[collapsible=offcanvas]:w-0",y),e[25]=y,e[26]=j):j=e[26];const _=f==="collapsed"?m:"";let g;e[27]!==n?(g=P("flex flex-col h-full w-(--sidebar-width)",n),e[27]=n,e[28]=g):g=e[28];let x;e[29]!==i?(x=s.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:i}),e[29]=i,e[30]=x):x=e[30];let v;e[31]!==l||e[32]!==g||e[33]!==x?(v=s.jsx("div",{"data-slot":"sidebar-container",className:g,...l,children:x}),e[31]=l,e[32]=g,e[33]=x,e[34]=v):v=e[34];let C;return e[35]!==c||e[36]!==f||e[37]!==j||e[38]!==_||e[39]!==v||e[40]!==d?(C=s.jsx("div",{className:j,"data-state":f,"data-collapsible":_,"data-variant":d,"data-side":c,"data-slot":"sidebar",children:v}),e[35]=c,e[36]=f,e[37]=j,e[38]=_,e[39]=v,e[40]=d,e[41]=C):C=e[41],C}function ni(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("bg-background relative flex w-full flex-1 flex-col min-w-0","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("main",{"data-slot":"sidebar-inset",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function vt(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("flex flex-col gap-2 p-2",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function li(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("flex flex-col gap-2 p-2",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function oi(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("h-4 m-0! w-full",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("div",{"data-sidebar":"separator",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function ai(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function Ae(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("relative flex w-full min-w-0 flex-col px-2 py-2 md:py-0",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function Ee(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("w-full text-sm",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function be(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("flex w-full min-w-0 flex-col gap-1",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function xe(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("group/menu-item relative",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}const ri=$t("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md py-0 pr-0.5 pl-1.5 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&_svg]:opacity-60 hover:[&_svg]:opacity-100",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2!",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function Oe(t){const e=w.c(28);let i,n,l,o,a,r,c;e[0]!==t?({asChild:l,isActive:o,variant:a,size:r,tooltip:c,className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n,e[3]=l,e[4]=o,e[5]=a,e[6]=r,e[7]=c):(i=e[1],n=e[2],l=e[3],o=e[4],a=e[5],r=e[6],c=e[7]);const d=l===void 0?!1:l,m=o===void 0?!1:o,u=a===void 0?"default":a,f=r===void 0?"default":r,p=d?wt:"button",{isMobile:h,state:y}=Ke();let j;e[8]!==i||e[9]!==f||e[10]!==u?(j=P(ri({variant:u,size:f}),i),e[8]=i,e[9]=f,e[10]=u,e[11]=j):j=e[11];let _;e[12]!==p||e[13]!==m||e[14]!==n||e[15]!==f||e[16]!==j?(_=s.jsx(p,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":f,"data-active":m,className:j,...n}),e[12]=p,e[13]=m,e[14]=n,e[15]=f,e[16]=j,e[17]=_):_=e[17];const g=_;if(!c)return g;if(typeof c=="string"){let N;e[18]!==c?(N={children:c},e[18]=c,e[19]=N):N=e[19],c=N}let x;e[20]!==g?(x=s.jsx(gs,{asChild:!0,children:g}),e[20]=g,e[21]=x):x=e[21];const v=y!=="collapsed"||h;let C;e[22]!==v||e[23]!==c?(C=s.jsx(hs,{side:"right",align:"center",hidden:v,...c}),e[22]=v,e[23]=c,e[24]=C):C=e[24];let b;return e[25]!==x||e[26]!==C?(b=s.jsxs(bs,{children:[x,C]}),e[25]=x,e[26]=C,e[27]=b):b=e[27],b}function ci(t){const e=w.c(11),{label:i,children:n,defaultExpanded:l}=t,o=l===void 0?!0:l,[a,r]=I.useState(o),{state:c}=Ke(),d=c==="collapsed";let m;e[0]!==a||e[1]!==d||e[2]!==i?(m=d?s.jsx("div",{className:"flex h-6 items-center",children:s.jsx("div",{className:"h-0.5 w-8 rounded-full bg-sidebar-foreground/15"})}):s.jsx(be,{children:s.jsx(xe,{children:s.jsxs(Oe,{className:"h-6 cursor-pointer select-none gap-1 [&>svg]:size-3",onClick:()=>r(!a),children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:i}),s.jsx(mt,{size:12,className:P("text-muted-foreground transition-transform duration-200",!a&&"-rotate-90")})]})})}),e[0]=a,e[1]=d,e[2]=i,e[3]=m):m=e[3];let u;e[4]!==n||e[5]!==a||e[6]!==d?(u=(d||a)&&s.jsx(Ee,{children:s.jsx(be,{className:"gap-0.5",children:n})}),e[4]=n,e[5]=a,e[6]=d,e[7]=u):u=e[7];let f;return e[8]!==m||e[9]!==u?(f=s.jsxs(Ae,{className:"pt-0 pr-0 pb-2 pl-0 mt-2",children:[m,u]}),e[8]=m,e[9]=u,e[10]=f):f=e[10],f}function Nt(t){const e=w.c(20),{item:i}=t,n=i.key,l=i.onClick,o=i.isActive,a=i.label,r=i.isExternal&&"group/external";let c;e[0]!==r?(c=P(r),e[0]=r,e[1]=c):c=e[1];let d;e[2]!==i.icon?(d=s.jsx("span",{className:"[&>svg]:size-4",children:i.icon}),e[2]=i.icon,e[3]=d):d=e[3];let m;e[4]===Symbol.for("react.memo_cache_sentinel")?(m=P("truncate group-data-[collapsible=icon]:hidden"),e[4]=m):m=e[4];let u;e[5]!==i.label?(u=s.jsx("span",{className:m,children:i.label}),e[5]=i.label,e[6]=u):u=e[6];let f;e[7]!==i.isExternal?(f=i.isExternal&&s.jsx($e,{size:12,className:"ml-auto mr-1 shrink-0 opacity-0 group-hover/external:opacity-60 transition-opacity group-data-[collapsible=icon]:hidden"}),e[7]=i.isExternal,e[8]=f):f=e[8];let p;e[9]!==i.isActive||e[10]!==i.label||e[11]!==i.onClick||e[12]!==f||e[13]!==c||e[14]!==d||e[15]!==u?(p=s.jsxs(Oe,{onClick:l,isActive:o,tooltip:a,className:c,children:[d,u,f]}),e[9]=i.isActive,e[10]=i.label,e[11]=i.onClick,e[12]=f,e[13]=c,e[14]=d,e[15]=u,e[16]=p):p=e[16];let h;return e[17]!==i.key||e[18]!==p?(h=s.jsx(xe,{children:p},n),e[17]=i.key,e[18]=p,e[19]=h):h=e[19],h}function di(t){const e=w.c(12),{section:i}=t;switch(i.type){case"divider":{let n;return e[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(oi,{className:"my-2"}),e[0]=n):n=e[0],n}case"spacer":{let n;return e[1]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx("div",{className:"flex-1"}),e[1]=n):n=e[1],n}case"group":{const n=i.group.label,l=i.group.defaultExpanded;let o;e[2]!==i.group.items?(o=i.group.items.map(fi),e[2]=i.group.items,e[3]=o):o=e[3];let a;return e[4]!==i.group.defaultExpanded||e[5]!==i.group.label||e[6]!==o?(a=s.jsx(ci,{label:n,defaultExpanded:l,children:o}),e[4]=i.group.defaultExpanded,e[5]=i.group.label,e[6]=o,e[7]=a):a=e[7],a}case"items":{let n;e[8]!==i.items?(n=i.items.map(mi),e[8]=i.items,e[9]=n):n=e[9];let l;return e[10]!==n?(l=s.jsx(Ae,{className:"pt-0 pr-0 pb-0 pl-0",children:s.jsx(Ee,{children:s.jsx(be,{className:"gap-0.5",children:n})})}),e[10]=n,e[11]=l):l=e[11],l}}}function mi(t){return s.jsx(Nt,{item:t},t.key)}function fi(t){return s.jsx(Nt,{item:t},t.key)}function yt(t){const e=w.c(14),{sections:i,header:n,footer:l,additionalContent:o,variant:a,collapsible:r,contentClassName:c}=t,d=a===void 0?"sidebar":a,m=r===void 0?"icon":r;let u;e[0]!==c?(u=P("flex flex-col flex-1 overflow-x-hidden mt-1 px-3.5 pb-2 group-data-[collapsible=icon]:px-2",c),e[0]=c,e[1]=u):u=e[1];let f;e[2]!==i?(f=i.map(ui),e[2]=i,e[3]=f):f=e[3];let p;e[4]!==o||e[5]!==u||e[6]!==f?(p=s.jsxs(ai,{className:u,children:[f,o]}),e[4]=o,e[5]=u,e[6]=f,e[7]=p):p=e[7];let h;return e[8]!==m||e[9]!==l||e[10]!==n||e[11]!==p||e[12]!==d?(h=s.jsxs(ii,{variant:d,collapsible:m,children:[n,p,l]}),e[8]=m,e[9]=l,e[10]=n,e[11]=p,e[12]=d,e[13]=h):h=e[13],h}function ui(t,e){return s.jsx(di,{section:t},e)}yt.Skeleton=function(){return s.jsx("div",{className:"flex flex-col gap-0.5",children:Array.from({length:8}).map((e,i)=>s.jsx("div",{className:"w-full h-8",children:s.jsx(re,{className:"h-full bg-sidebar-accent rounded-md"})},i))})};function pi(){const t=w.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsxs("div",{className:"space-y-0.5 px-1 py-1",children:[s.jsx(re,{className:"h-8 w-full rounded-lg"}),s.jsx(re,{className:"h-8 w-full rounded-lg"})]}),t[0]=e):e=t[0],e}function xi(t){const e=w.c(12),{organizationId:i,currentProjectSlug:n,onSelect:l}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={suspense:!0},e[0]=o):o=e[0];const{data:a}=dt(i,o);let r,c;if(e[1]!==n||e[2]!==l||e[3]!==a){c=Symbol.for("react.early_return_sentinel");e:{const m=a?.filter(hi)??[];if(m.length===0){let f;e[6]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx("div",{className:"px-2 py-3 text-center text-xs text-muted-foreground",children:"No projects yet"}),e[6]=f):f=e[6],c=f;break e}let u;e[7]!==n||e[8]!==l?(u=f=>{const p=n===f.slug,h=f.ui?.themeColor??"#3B82F6";return s.jsxs(ae,{className:P("gap-2.5",p&&"bg-accent"),onClick:()=>l(f.slug),children:[s.jsx("div",{className:"size-6 rounded-md shrink-0 flex items-center justify-center overflow-hidden border border-border/50",style:f.ui?.icon?void 0:{backgroundColor:h},children:f.ui?.icon?s.jsx("img",{src:f.ui.icon,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:"text-xs font-semibold text-white",children:f.name.charAt(0).toUpperCase()})}),s.jsx("span",{className:"flex-1 truncate",children:f.name}),p&&s.jsx(Pe,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},f.id)},e[7]=n,e[8]=l,e[9]=u):u=e[9],r=m.map(u)}e[1]=n,e[2]=l,e[3]=a,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 hi(t){return t.slug!==te}function gi(t){let e=0;for(let n=0;n<t.length;n++)e=t.charCodeAt(n)+((e<<5)-e);const i=Math.abs(e)%360;return{backgroundColor:`hsl(${i} 55% 70%)`,color:`hsl(${i} 55% 20%)`}}function qe(t){const e=w.c(96),{isCollapsed:i,onCreateProject:n}=t,l=i===void 0?!1:i;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={strict:!1},e[0]=o):o=e[0];const{org:a,project:r}=it(o),{data:c}=Ne.useListOrganizations(),d=Xe(),m=c?.find(Y=>Y.slug===a),[u,f]=I.useState(!1),p=r===te,{data:h}=ct(m?.id??"",p?"":r??"");let y;e[1]!==a?(y=(Y,Re)=>Y.slug===a?-1:Re.slug===a?1:Y.name.localeCompare(Re.name),e[1]=a,e[2]=y):y=e[2];const j=[...c??[]].sort(y);let _;e[3]!==d||e[4]!==a?(_=()=>{a&&d({to:"/$org/$project",params:{org:a,project:te}})},e[3]=d,e[4]=a,e[5]=_):_=e[5];const g=_;let x;e[6]!==d||e[7]!==a?(x=Y=>{a&&d({to:"/$org/$project",params:{org:a,project:Y}})},e[6]=d,e[7]=a,e[8]=x):x=e[8];const v=x;let C;e[9]!==d?(C=Y=>{d({to:"/$org/$project",params:{org:Y,project:te}})},e[9]=d,e[10]=C):C=e[10];const b=C;let N;e[11]!==n?(N=n?()=>n():void 0,e[11]=n,e[12]=N):N=e[12];const k=N;let $;e[13]!==d||e[14]!==a||e[15]!==r?($=()=>{if(!a||!r)return;const Y=r===te;d({to:"/$org/$project",params:{org:a,project:r},search:Re=>({...Re,settings:Y?"org.general":`project:${r}:general`})})},e[13]=d,e[14]=a,e[15]=r,e[16]=$):$=e[16];const z=$,M=ut,R=l?"w-auto pr-1.5":"w-full";let L;e[17]!==R?(L=P("flex items-center gap-3 rounded-md p-1.5 pr-2 text-left hover:bg-sidebar-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring min-h-[2.75rem]",R),e[17]=R,e[18]=L):L=e[18];const H=p?s.jsx("div",{className:P("shrink-0 rounded-md flex items-center justify-center border border-border/50 overflow-hidden transition-[width,height] duration-300 ease-[var(--ease-out-quart)]",l?"size-6":"size-8"),style:m?.logo?void 0:gi(m?.name??""),children:m?.logo?s.jsx("img",{src:m.logo,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:P("font-semibold leading-none",l?"text-[9px]":"text-xs"),children:(m?.name??"?").slice(0,2).toUpperCase()})}):s.jsx("div",{className:P("shrink-0 rounded-md flex items-center justify-center border border-border/50 overflow-hidden transition-[width,height] duration-300 ease-[var(--ease-out-quart)]",l?"size-6":"size-8"),style:h?.ui?.icon?void 0:{backgroundColor:h?.ui?.themeColor??"#60a5fa"},children:h?.ui?.icon?s.jsx("img",{src:h.ui.icon,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:P("font-semibold text-white",l?"text-xs":"text-lg"),children:(h?.name??r??"?").charAt(0).toUpperCase()})});let T;e[19]!==m?.name||e[20]!==h?.name||e[21]!==l||e[22]!==p||e[23]!==r?(T=!l&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex-1 min-w-0 flex flex-col justify-center",children:[s.jsx("span",{className:"block text-[11px] text-sidebar-foreground/50 leading-tight truncate",children:m?.name??"Select org"}),s.jsx("span",{className:"block text-sm font-semibold text-sidebar-foreground truncate leading-tight",children:p?"Studio":h?.name??r??""})]}),s.jsx(Ht,{size:16,className:"shrink-0 text-sidebar-foreground/40"})]}),e[19]=m?.name,e[20]=h?.name,e[21]=l,e[22]=p,e[23]=r,e[24]=T):T=e[24];let A;e[25]!==L||e[26]!==H||e[27]!==T?(A=s.jsx(pt,{asChild:!0,children:s.jsxs("button",{type:"button",className:L,children:[H,T]})}),e[25]=L,e[26]=H,e[27]=T,e[28]=A):A=e[28];const D=ft,E="start",U="bottom",B="w-64 flex flex-col gap-0.5",F=bi,se=p&&"bg-accent";let J;e[29]!==se?(J=P("gap-2.5",se),e[29]=se,e[30]=J):J=e[30];const ce=m?.logo??"",de=m?.name??"";let W;e[31]!==ce||e[32]!==de?(W=s.jsx(Ie,{url:ce,fallback:de,size:"sm",className:"size-6 rounded-md shrink-0",objectFit:"cover"}),e[31]=ce,e[32]=de,e[33]=W):W=e[33];const X=m?.name;let G;e[34]!==X?(G=s.jsxs("span",{className:"flex-1 truncate",children:["Studio · ",X]}),e[34]=X,e[35]=G):G=e[35];let fe;e[36]!==p?(fe=p&&s.jsx(Pe,{size:14,className:"ml-auto text-muted-foreground shrink-0"}),e[36]=p,e[37]=fe):fe=e[37];let V;e[38]!==g||e[39]!==J||e[40]!==W||e[41]!==G||e[42]!==fe?(V=s.jsxs(ae,{className:J,onClick:g,children:[W,G,fe]}),e[38]=g,e[39]=J,e[40]=W,e[41]=G,e[42]=fe,e[43]=V):V=e[43];let ee;e[44]===Symbol.for("react.memo_cache_sentinel")?(ee=s.jsx("p",{className:"px-2 pt-2 pb-0.5 text-[11px] font-medium text-muted-foreground/50 uppercase tracking-wider",children:"Projects"}),e[44]=ee):ee=e[44];let q;e[45]!==m||e[46]!==v||e[47]!==a||e[48]!==r?(q=m&&s.jsx(I.Suspense,{fallback:s.jsx(pi,{}),children:s.jsx(xi,{organizationId:m.id,currentProjectSlug:r,orgSlug:a??"",onSelect:v})}),e[45]=m,e[46]=v,e[47]=a,e[48]=r,e[49]=q):q=e[49];let Q;e[50]!==k?(Q=k&&s.jsxs(ae,{className:"gap-2.5",onClick:k,children:[s.jsx(Le,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Create project"})]}),e[50]=k,e[51]=Q):Q=e[51];let O;e[52]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsx(Ue,{}),e[52]=O):O=e[52];const Z=vs;let me;e[53]===Symbol.for("react.memo_cache_sentinel")?(me=s.jsxs(Ns,{className:"gap-2.5",children:[s.jsx(ys,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Switch organization"})]}),e[53]=me):me=e[53];const ie=js,je="w-48 flex flex-col gap-0.5";let ne;e[54]!==b||e[55]!==a?(ne=Y=>s.jsxs(ae,{className:P("gap-2.5",Y.slug===a&&"bg-accent"),onClick:()=>b(Y.slug),children:[s.jsx(Ie,{url:Y.logo??"",fallback:Y.name,size:"xs",className:"size-5 rounded-md shrink-0",objectFit:"cover"}),s.jsx("span",{className:"flex-1 truncate",children:Y.name}),Y.slug===a&&s.jsx(Pe,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},Y.id),e[54]=b,e[55]=a,e[56]=ne):ne=e[56];const S=j.map(ne);let K;e[57]===Symbol.for("react.memo_cache_sentinel")?(K=s.jsx(Ue,{}),e[57]=K):K=e[57];let le;e[58]!==f?(le=()=>f(!0),e[58]=f,e[59]=le):le=e[59];let he,ye;e[60]===Symbol.for("react.memo_cache_sentinel")?(he=s.jsx(Le,{size:14,className:"shrink-0 text-muted-foreground"}),ye=s.jsx("span",{children:"Create organization"}),e[60]=he,e[61]=ye):(he=e[60],ye=e[61]);let ue;e[62]!==le?(ue=s.jsxs(ae,{className:"gap-2.5",onClick:le,children:[he,ye]}),e[62]=le,e[63]=ue):ue=e[63];let pe;e[64]!==ie||e[65]!==S||e[66]!==ue?(pe=s.jsxs(ie,{className:je,children:[S,K,ue]}),e[64]=ie,e[65]=S,e[66]=ue,e[67]=pe):pe=e[67];let Se;e[68]!==Z||e[69]!==me||e[70]!==pe?(Se=s.jsxs(Z,{children:[me,pe]}),e[68]=Z,e[69]=me,e[70]=pe,e[71]=Se):Se=e[71];let Te,De;e[72]===Symbol.for("react.memo_cache_sentinel")?(Te=s.jsx(He,{size:14,className:"shrink-0 text-muted-foreground"}),De=s.jsx("span",{children:"Settings"}),e[72]=Te,e[73]=De):(Te=e[72],De=e[73]);let _e;e[74]!==z?(_e=s.jsxs(ae,{className:"gap-2.5",onClick:z,children:[Te,De]}),e[74]=z,e[75]=_e):_e=e[75];let ke;e[76]!==D||e[77]!==F||e[78]!==V||e[79]!==ee||e[80]!==q||e[81]!==Q||e[82]!==O||e[83]!==Se||e[84]!==_e?(ke=s.jsxs(D,{align:E,side:U,className:B,onCloseAutoFocus:F,children:[V,ee,q,Q,O,Se,_e]}),e[76]=D,e[77]=F,e[78]=V,e[79]=ee,e[80]=q,e[81]=Q,e[82]=O,e[83]=Se,e[84]=_e,e[85]=ke):ke=e[85];let Ce;e[86]!==M||e[87]!==A||e[88]!==ke?(Ce=s.jsxs(M,{children:[A,ke]}),e[86]=M,e[87]=A,e[88]=ke,e[89]=Ce):Ce=e[89];let we;e[90]!==u||e[91]!==f?(we=s.jsx(Ss,{open:u,onOpenChange:f}),e[90]=u,e[91]=f,e[92]=we):we=e[92];let Me;return e[93]!==Ce||e[94]!==we?(Me=s.jsxs(s.Fragment,{children:[Ce,we]}),e[93]=Ce,e[94]=we,e[95]=Me):Me=e[95],Me}function bi(t){return t.preventDefault()}qe.Skeleton=function(){return s.jsxs("div",{className:"flex items-center gap-1.5 h-7 px-1.5 w-full",children:[s.jsx(re,{className:"size-5 rounded-[5px] shrink-0 bg-sidebar-accent"}),s.jsx(re,{className:"h-3.5 flex-1 bg-sidebar-accent"})]})};function Qe(t){const e=w.c(4),{onCreateProject:i}=t,{state:n,toggleSidebar:l}=Ke(),o=n==="collapsed";let a;return e[0]!==o||e[1]!==i||e[2]!==l?(a=s.jsx(vt,{className:"px-3 group-data-[collapsible=icon]:px-2 animate-in fade-in-0 duration-200",children:s.jsx(be,{children:s.jsx(xe,{children:o?s.jsxs("div",{className:"flex flex-col w-full gap-0.5",children:[s.jsx(qe,{isCollapsed:!0,onCreateProject:i}),s.jsx(Oe,{onClick:l,tooltip:"Expand sidebar",children:s.jsx(Ve,{})})]}):s.jsxs("div",{className:"flex items-center justify-between w-full gap-1",children:[s.jsx("div",{className:"min-w-0 flex-1",children:s.jsx(qe,{isCollapsed:!1,onCreateProject:i})}),s.jsx(Oe,{onClick:l,tooltip:"Collapse sidebar",className:"size-7 shrink-0",children:s.jsx(Ve,{})})]})})})}),e[0]=o,e[1]=i,e[2]=l,e[3]=a):a=e[3],a}Qe.Skeleton=function(){return s.jsx(vt,{className:"px-3",children:s.jsx(be,{children:s.jsx(xe,{children:s.jsxs("div",{className:"flex items-center justify-between w-full",children:[s.jsxs("div",{className:"flex items-center gap-3 min-w-0 flex-1 p-1.5",children:[s.jsx(re,{className:"size-8 rounded-md shrink-0 bg-sidebar-accent"}),s.jsx(re,{className:"h-3.5 w-16 bg-sidebar-accent"})]}),s.jsx("div",{className:"flex items-center gap-0.5",children:s.jsx(re,{className:"size-7 rounded-lg bg-sidebar-accent"})})]})})})})};function ji(t){const e=w.c(50),{user:i,userImage:n}=t,{open:l}=rt(),[o,a]=I.useState(!1);let r;e[0]!==i.email||e[1]!==i.id||e[2]!==i.name?(r=()=>{const F=`ID: ${i.id}
|
|
1
|
+
import{r as I,c as w,j as s,E as Ye,u as ze,D as P,e as Xe,at as Ze,L as We,cb as _t,bg as kt,O as te,as as Ct,X as wt,a0 as $t,g as it,f as Ne,v as ve,cc as zt,bK as It,w as Pt,B as Ge,A as At,S as nt,k as Et,m as Ot,N as Tt,x as Dt,z as Fe,K as Mt,au as lt,P as Rt}from"./index-DnJ6a24w.js";import{C as oe,c as Lt,i as Ht,d as Ut}from"./task-status-DCsPkppQ.js";import{I as Bt}from"./integration-icon-C9GR_8Ea.js";import{a as ot,P as ge,u as Je}from"./index-B09Yemt1.js";import{d as Ft,a as Kt,u as Wt}from"./constants-D5QZg84_.js";import{n as Gt}from"./ChevronLeft-BOF7bp9d.js";import{i as Vt}from"./Loading01-DQphO9Su.js";import{s as Le}from"./Plus-CURSuoDd.js";import{t as et}from"./Users03-DEpvReeu.js";import{i as tt}from"./X-BT_y3J3a.js";import{E as qt,C as Qt}from"./editable-task-title-oggBOZ_d.js";import{T as Yt}from"./tasks-panel-CEAgXi7r.js";import{a as Xt,b as Zt}from"./ai-providers-logos-DGTpC_MW.js";import{a as Jt}from"./context-CGMT963w.js";import{C as at}from"./create-project-dialog-Bs_mS8aj.js";import{a as es,b as ts,c as ss,D as is}from"./dialog-B8WS5FOh.js";import{n as ns}from"./Container-b65PFshp.js";import{e as ls}from"./Dataflow03-CE4IJeUz.js";import{a as os}from"./Home02-DsMimBHw.js";import{i as Ve}from"./LayoutLeft-CbUmiI7I.js";import{s as as}from"./RefreshCcw01-oV1XFIRn.js";import{t as He}from"./Settings01-B76KnDHb.js";import{u as rs,a as rt}from"./org-ai-providers-4gYTufEL.js";import{u as ct,a as dt}from"./use-project-RpN1fut9.js";import{u as cs}from"./use-mobile-Y3tADOOl.js";import{S as ds,b as ms,c as fs,d as us,a as ps}from"./sheet-B_-2ygzJ.js";import{c as xs,b as hs,a as gs,T as bs}from"./tooltip-Csc3oeTz.js";import{S as re}from"./skeleton-NLo71_Sb.js";import{n as $e}from"./LinkExternal01-vs3DKlfq.js";import{t as mt}from"./ChevronDown-D0b1rvAp.js";import{A as Ie}from"./avatar-BoRF-Me1.js";import{c as ae,f as js,e as vs,b as ft,D as ut,a as pt,h as Ue,d as Ns}from"./dropdown-menu-DE2pKopg.js";import{t as ys}from"./Building02-DW6RLSwU.js";import{i as Pe}from"./Check-CLxUgI8Z.js";import{C as Ss}from"./create-organization-dialog-CeMf7qju.js";import{a as _s}from"./Copy01-Ds0OKZs5.js";import{i as ks}from"./File06-BAp2UeVQ.js";import{i as Cs}from"./Globe01-sBw0ReRO.js";import{i as ws}from"./Shield01-BodC6YjW.js";import{a as $s,P as zs,b as Is}from"./popover-vDURg2rv.js";import{n as st}from"./Inbox01-Bcon6dDK.js";import{s as Ps}from"./XClose-C-H07PEn.js";import{b as As}from"./use-mcp-tools-CFyULGGP.js";import{C as Es,a as Os,b as Ts}from"./collapsible-BJo6q_NJ.js";import{i as Ds}from"./ChevronRight-BEUO8jhU.js";import{a as Ms,R as xt,b as Rs}from"./resizable-B0HQ1vuq.js";import"./spinner-EdHFCjIL.js";import"./use-mcp-prompts-D4XXlnov.js";import"./useQuery-mzOsnjYJ.js";import"./form-tOTNzCZe.js";import"./label-DJvdRQ2A.js";import"./input-BBKBJVKe.js";import"./index-BLtI6TU9.js";import"./usage-BW6ztpN6.js";import"./ArrowUp-Wy3Qa9X3.js";import"./Edit01-BeW3IgwV.js";import"./Lock01-Cbqd9PVH.js";import"./use-copy-CR_0d0zs.js";import"./AlertCircle-QngH9BVd.js";import"./select-Bbaj2HCW.js";import"./ChevronUp-BWhuIqS7.js";import"./index-hCeFdkUk.js";import"./ArrowLeft-DX2ldnBo.js";import"./tabs-aIY_aIUV.js";import"./checkbox-DygphnIU.js";import"./AlignLeft-BUW8XsMa.js";import"./Image01-zSA25K9S.js";import"./Key01-V3zgT2bk.js";import"./SearchMd-C8ADHGFY.js";import"./Tool01-DlbILfZg.js";import"./select-virtual-mcp-CZJoA7HG.js";import"./use-virtual-mcp-DGT5zflo.js";import"./use-collections-Le9CzDbY.js";import"./useMutation-Betr8yis.js";import"./use-create-virtual-mcp-BOxl7MdZ.js";import"./use-mcp-resources-BueR0w1E.js";import"./marked.esm-BaswSlok.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-C3qFwvPf.js";import"./types-BOmhR0hZ.js";import"./Eye-Cqad01Et.js";import"./Globe02-DlxZmkSI.js";import"./LayersTwo01-D3otbQFN.js";import"./Clock-Aquumu5W.js";import"./Trash01-CYMRq_nY.js";import"./useSuspenseInfiniteQuery-DFs2FFlW.js";import"./infiniteQueryObserver-XS4LWR6q.js";import"./CheckCircle-DDKCxiAn.js";import"./collection-search-Dzoe9W56.js";import"./user-ChA79mrb.js";import"./format-time-CMKyl-GC.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./empty-state-BjCXvoyS.js";import"./decopilot-events-Brt4gAR6.js";import"./index-Bwlq4qOs.js";import"./textarea-lF0m7xkk.js";import"./EyeOff-rTYDCZUH.js";import"./card-gfMzoGpr.js";import"./toggle-group-Dak-s1p3.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./alert-dialog-BqCiJDa8.js";import"./index-CMImT9Gt.js";const ht=({size:t=24,color:e="currentColor",...i})=>I.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i},I.createElement("path",{d:"M9 7H4.6c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C3 7.76 3 8.04 3 8.6v10.8c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C3.76 21 4.04 21 4.6 21H9m0 0h6m-6 0V4.6c0-.56 0-.84.109-1.054a1 1 0 0 1 .437-.437C9.76 3 10.04 3 10.6 3h2.8c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C15 3.76 15 4.04 15 4.6V21m0-10h4.4c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C21 11.76 21 12.04 21 12.6v6.8c0 .56 0 .84-.109 1.054a1 1 0 0 1-.437.437C20.24 21 19.96 21 19.4 21H15"}));ht.displayName="BarChart10";const Be=({size:t=24,color:e="currentColor",...i})=>I.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i},I.createElement("path",{d:"m6 15 2 2 4.5-4.5M8 8V5.2c0-1.12 0-1.68.218-2.108a2 2 0 0 1 .874-.874C9.52 2 10.08 2 11.2 2h7.6c1.12 0 1.68 0 2.108.218a2 2 0 0 1 .874.874C22 3.52 22 4.08 22 5.2v7.6c0 1.12 0 1.68-.218 2.108a2 2 0 0 1-.874.874C20.48 16 19.92 16 18.8 16H16M5.2 22h7.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C16 20.48 16 19.92 16 18.8v-7.6c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C14.48 8 13.92 8 12.8 8H5.2c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C2 9.52 2 10.08 2 11.2v7.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C3.52 22 4.08 22 5.2 22Z"}));Be.displayName="CheckDone01";const gt=({size:t=24,color:e="currentColor",...i})=>I.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i},I.createElement("path",{d:"M15.938 15.938A7.001 7.001 0 0 0 15 2a7.001 7.001 0 0 0-6.938 6.062M16 15a7 7 0 1 1-14 0 7 7 0 0 1 14 0Z"}));gt.displayName="Coins01";const bt=({size:t=24,color:e="currentColor",...i})=>I.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i},I.createElement("path",{d:"m16 17 5-5m0 0-5-5m5 5H9m0-9H7.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C3 5.28 3 6.12 3 7.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 21 6.12 21 7.8 21H9"}));bt.displayName="LogOut01";function Ls(){const t=w.c(70),{org:e}=ze(),[,i]=ot(),n=Xt(),{selectedVirtualMcp:l,isChatEmpty:o,activeTaskId:a,createTask:r,switchToTask:c,tasks:d}=Jt();let m;if(t[0]!==a||t[1]!==d){let O;t[3]!==a?(O=Z=>Z.id===a,t[3]=a,t[4]=O):O=t[4],m=d.find(O),t[0]=a,t[1]=d,t[2]=m}else m=t[2];const u=m,[f,p]=I.useState("chat"),[h,y]=I.useTransition();let j;t[5]!==e.id?(j=Ft(e.id),t[5]=e.id,t[6]=j):j=t[6];const g=l??j;let x;t[7]!==r?(x=()=>{y(()=>{r()})},t[7]=r,t[8]=x):x=t[8];const v=x;if(n?.providers?.length===0){let O;t[9]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsx(ge.Header.Left,{className:"gap-2"}),t[9]=O):O=t[9];let Z;t[10]!==i?(Z=()=>i(!1),t[10]=i,t[11]=Z):Z=t[11];let me;t[12]===Symbol.for("react.memo_cache_sentinel")?(me=s.jsx(tt,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[12]=me):me=t[12];let ie;t[13]!==Z?(ie=s.jsxs(ge.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[O,s.jsx(ge.Header.Right,{className:"gap-1",children:s.jsx("button",{type:"button",onClick:Z,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:me})})]}),t[13]=Z,t[14]=ie):ie=t[14];let je;t[15]===Symbol.for("react.memo_cache_sentinel")?(je=s.jsx(oe.Main,{className:"flex flex-col items-center",children:s.jsx(oe.EmptyState,{children:s.jsx(oe.NoLlmBindingEmptyState,{title:"No model provider connected",description:"Connect to a model provider to unlock AI-powered features."})})}),t[15]=je):je=t[15];let ne;return t[16]!==ie?(ne=s.jsxs(oe,{className:"animate-in fade-in-0 duration-200",children:[ie,je]}),t[16]=ie,t[17]=ne):ne=t[17],ne}const C=f!=="chat"||h?"opacity-0 pointer-events-none":"opacity-100";let b;t[18]!==C?(b=P("absolute inset-0 flex flex-col transition-opacity duration-100 ease-out",C),t[18]=C,t[19]=b):b=t[19];let N;t[20]!==u||t[21]!==o?(N=!o&&u?.title&&s.jsx(qt,{taskId:u.id,text:u.title,className:"text-sm font-medium text-foreground"}),t[20]=u,t[21]=o,t[22]=N):N=t[22];let k;t[23]!==N?(k=s.jsx(ge.Header.Left,{className:"gap-2",children:N}),t[23]=N,t[24]=k):k=t[24];let $;t[25]===Symbol.for("react.memo_cache_sentinel")?($=s.jsx(Le,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[25]=$):$=t[25];let z;t[26]!==v||t[27]!==h?(z=s.jsx("button",{type:"button",onClick:v,disabled:h,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent group cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",title:"New chat",children:$}),t[26]=v,t[27]=h,t[28]=z):z=t[28];let M;t[29]===Symbol.for("react.memo_cache_sentinel")?(M=()=>p("tasks"),t[29]=M):M=t[29];let R;t[30]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx("button",{type:"button",onClick:M,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent group cursor-pointer",title:"Tasks",children:s.jsx(Be,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"})}),t[30]=R):R=t[30];let L;t[31]!==i?(L=()=>i(!1),t[31]=i,t[32]=L):L=t[32];let H;t[33]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(tt,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[33]=H):H=t[33];let T;t[34]!==L?(T=s.jsx("button",{type:"button",onClick:L,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:H}),t[34]=L,t[35]=T):T=t[35];let A;t[36]!==T||t[37]!==z?(A=s.jsxs(ge.Header.Right,{className:"gap-1",children:[z,R,T]}),t[36]=T,t[37]=z,t[38]=A):A=t[38];let D;t[39]!==A||t[40]!==k?(D=s.jsxs(ge.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[k,A]}),t[39]=A,t[40]=k,t[41]=D):D=t[41];let E;t[42]!==g||t[43]!==o?(E=s.jsx(oe.Main,{children:o?s.jsx(oe.EmptyState,{children:s.jsxs("div",{className:"flex flex-col items-center gap-6 w-full px-4",children:[s.jsxs("div",{className:"flex flex-col items-center justify-center gap-4 p-0 text-center",children:[s.jsx(Bt,{icon:g.icon,name:g.title,size:"lg",fallbackIcon:s.jsx(et,{size:32}),className:"size-[60px]! rounded-[18px]!"}),s.jsx("h3",{className:"text-xl font-medium text-foreground",children:g.title}),s.jsx("div",{className:"text-muted-foreground text-center text-sm max-w-md",children:g.description??"Ask anything about configuring model providers or using MCP Mesh."})]}),s.jsx(oe.IceBreakers,{})]})}):s.jsx(oe.Messages,{})}),t[42]=g,t[43]=o,t[44]=E):E=t[44];let U;t[45]===Symbol.for("react.memo_cache_sentinel")?(U=s.jsx(oe.Footer,{children:s.jsx(oe.Input,{onOpenContextPanel:()=>p("context")})}),t[45]=U):U=t[45];let B;t[46]!==D||t[47]!==E||t[48]!==b?(B=s.jsxs("div",{className:b,children:[D,E,U]}),t[46]=D,t[47]=E,t[48]=b,t[49]=B):B=t[49];const F=f==="tasks"?"opacity-100":"opacity-0 pointer-events-none";let se;t[50]!==F?(se=P("absolute inset-0 flex flex-col transition-opacity duration-100 ease-out",F),t[50]=F,t[51]=se):se=t[51];let J;t[52]===Symbol.for("react.memo_cache_sentinel")?(J=s.jsx(ge.Header.Left,{className:"gap-2",children:s.jsx("span",{className:"text-sm font-normal text-foreground",children:"Tasks"})}),t[52]=J):J=t[52];let ce;t[53]===Symbol.for("react.memo_cache_sentinel")?(ce=()=>p("chat"),t[53]=ce):ce=t[53];let de;t[54]===Symbol.for("react.memo_cache_sentinel")?(de=s.jsxs(ge.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[J,s.jsx(ge.Header.Right,{className:"gap-1",children:s.jsx("button",{type:"button",onClick:ce,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Back to chat",children:s.jsx(Gt,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"})})})]}),t[54]=de):de=t[54];let W;t[55]===Symbol.for("react.memo_cache_sentinel")?(W=s.jsx("div",{className:"flex-1 flex items-center justify-center",children:s.jsx(Vt,{size:16,className:"animate-spin text-muted-foreground"})}),t[55]=W):W=t[55];let X;t[56]!==c?(X=s.jsx(Ye,{fallback:Hs,children:s.jsx(I.Suspense,{fallback:W,children:s.jsx(Yt,{onTaskSelect:async O=>{await c(O),p("chat")}})})}),t[56]=c,t[57]=X):X=t[57];let G;t[58]!==se||t[59]!==X?(G=s.jsxs("div",{className:se,children:[de,X]}),t[58]=se,t[59]=X,t[60]=G):G=t[60];const fe=f==="context"?"opacity-100":"opacity-0 pointer-events-none";let V;t[61]!==fe?(V=P("absolute inset-0 flex flex-col transition-opacity duration-100 ease-out",fe),t[61]=fe,t[62]=V):V=t[62];let ee;t[63]===Symbol.for("react.memo_cache_sentinel")?(ee=s.jsx(Qt,{back:!0,onClose:()=>p("chat")}),t[63]=ee):ee=t[63];let q;t[64]!==V?(q=s.jsx("div",{className:V,children:ee}),t[64]=V,t[65]=q):q=t[65];let Q;return t[66]!==B||t[67]!==G||t[68]!==q?(Q=s.jsxs(oe,{className:"relative overflow-hidden animate-in fade-in-0 duration-200",children:[B,G,q]}),t[66]=B,t[67]=G,t[68]=q,t[69]=Q):Q=t[69],Q}function Hs(){return s.jsx("div",{className:"flex-1 flex items-center justify-center",children:s.jsx("p",{className:"text-xs text-muted-foreground",children:"Unable to load tasks"})})}function Us(){const t=w.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(oe.Skeleton,{}),t[0]=e):e=t[0];let i;return t[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(Ye,{fallback:e,children:s.jsx(I.Suspense,{fallback:s.jsx(oe.Skeleton,{}),children:s.jsx(Ls,{})})}),t[1]=i):i=t[1],i}function Bs(t){const e=w.c(5),{open:i,onOpenChange:n}=t;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(ts,{children:s.jsx(ss,{children:"Keyboard Shortcuts"})}),e[0]=l):l=e[0];let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsxs(es,{className:"sm:max-w-md",children:[l,s.jsx("div",{className:"flex flex-col gap-4",children:Lt.map(Fs)})]}),e[1]=o):o=e[1];let a;return e[2]!==n||e[3]!==i?(a=s.jsx(is,{open:i,onOpenChange:n,children:o}),e[2]=n,e[3]=i,e[4]=a):a=e[4],a}function Fs(t){return s.jsxs("div",{children:[s.jsx("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-2",children:t.label}),s.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(Ks)})]},t.label)}function Ks(t){return s.jsxs("div",{className:"flex items-center justify-between py-1",children:[s.jsx("span",{className:"text-sm",children:t.description}),s.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(Ws)})]},t.description)}function Ws(t){return s.jsx("kbd",{className:"inline-flex items-center justify-center min-w-6 h-6 px-1.5 rounded-sm border border-border bg-muted text-muted-foreground text-xs font-mono",children:t},t)}function Gs(){const t=w.c(60),{locator:e,org:i}=ze(),n=Xe(),l=Ze(),[o]=rs(),{org:a,project:r}=We.parse(e),c=We.isOrgAdminProject(e),{data:d}=ct(i.id,r);let m;t[0]!==d?.enabledPlugins?(m=d?.enabledPlugins??[],t[0]=d?.enabledPlugins,t[1]=m):m=t[1];const u=m,f=d?.ui?.pinnedViews??[];let p;t[2]!==u?(p=S=>u.includes(S.pluginId),t[2]=u,t[3]=p):p=t[3];const h=_t.filter(p),y=l.location.pathname,j=`/${a}/${r}`,_=y===j||y===`${j}/`;let g;t[4]!==j||t[5]!==y?(g=S=>y.startsWith(`${j}/${S}`),t[4]=j,t[5]=y,t[6]=g):g=t[6];const x=g;let v;t[7]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx(os,{}),t[7]=v):v=t[7];const C={key:"home",label:"Home",icon:v,isActive:_,onClick:()=>{_?window.dispatchEvent(new CustomEvent("reset-home-view")):n({to:"/$org/$project",params:{org:a,project:r}})}};let b;t[8]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(Be,{}),t[8]=b):b=t[8];const N={key:"tasks",label:"Tasks",icon:b,isActive:x("tasks"),onClick:()=>n({to:"/$org/$project/tasks",params:{org:a,project:te}})};let k;t[9]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx(ns,{}),t[9]=k):k=t[9];const $={key:"mcps",label:"Connections",icon:k,isActive:x("mcps"),onClick:()=>n({to:"/$org/$project/mcps",params:{org:a,project:te}})};let z;t[10]===Symbol.for("react.memo_cache_sentinel")?(z=s.jsx(Ct,{}),t[10]=z):z=t[10];const M={key:"projects",label:"Projects",icon:z,isActive:x("projects"),onClick:()=>n({to:"/$org/$project/projects",params:{org:a,project:te}})};let R;t[11]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx(et,{}),t[11]=R):R=t[11];const L={key:"agents",label:"Agents",icon:R,isActive:x("agents"),onClick:()=>n({to:"/$org/$project/agents",params:{org:a,project:te}})};let H;t[12]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(as,{}),t[12]=H):H=t[12];const T={key:"automations",label:"Automations",icon:H,isActive:x("automations"),onClick:()=>n({to:"/$org/$project/automations",params:{org:a,project:te}})};let A;t[13]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(ht,{}),t[13]=A):A=t[13];const D={key:"monitoring",label:"Monitor",icon:A,isActive:x("monitoring"),onClick:()=>n({to:"/$org/$project/monitoring",params:{org:a,project:te}})},E=h.map(S=>({key:S.pluginId,label:S.label,icon:S.icon,isActive:x(S.pluginId),onClick:()=>n({to:"/$org/$project/$pluginId",params:{org:a,project:r,pluginId:S.pluginId}})}));let U;t[14]!==u?(U=S=>u.includes(S.pluginId),t[14]=u,t[15]=U):U=t[15];const F=kt.filter(U).map(S=>({type:"group",group:{id:`${S.pluginId}-${S.id}`,label:S.label,items:S.items.map((K,le)=>({key:`${S.pluginId}-${S.id}-${le}`,label:K.label,icon:K.icon,isActive:x(S.pluginId),onClick:()=>n({to:"/$org/$project/$pluginId",params:{org:a,project:r,pluginId:S.pluginId}})})),defaultExpanded:S.defaultExpanded??!0}})),se=f.map(S=>({key:`app-${S.connectionId}-${S.toolName}`,label:S.label||S.toolName,icon:S.icon?s.jsx("img",{src:S.icon,alt:"",className:"size-4 rounded"}):s.jsx(Ve,{}),isActive:x(`apps/${S.connectionId}/${encodeURIComponent(S.toolName)}`),onClick:()=>n({to:"/$org/$project/apps/$connectionId/$toolName",params:{org:a,project:r,connectionId:S.connectionId,toolName:S.toolName}})}));let J;t[16]!==se?(J=se.length>0?{type:"group",group:{id:"apps",label:"Apps",items:se,defaultExpanded:!0}}:null,t[16]=se,t[17]=J):J=t[17];const ce=J;if(c){let S;t[18]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx(He,{}),t[18]=S):S=t[18];let K;t[19]!==x?(K=x("settings"),t[19]=x,t[20]=K):K=t[20];let le;t[21]!==n||t[22]!==a?(le=()=>n({to:"/$org/$project/settings",params:{org:a,project:te}}),t[21]=n,t[22]=a,t[23]=le):le=t[23];let he;t[24]!==K||t[25]!==le?(he={key:"settings",label:"Settings",icon:S,isActive:K,onClick:le},t[24]=K,t[25]=le,t[26]=he):he=t[26];const ye=he,ue=[{type:"items",items:[C,N,M]},{type:"group",group:{id:"build",label:"Build",items:[...o.experimentalAutomations?[T]:[],L,$],defaultExpanded:!0}},{type:"group",group:{id:"manage",label:"Manage",items:[D,ye],defaultExpanded:!0}}];if(E.length>0){let pe;t[27]!==E?(pe={type:"items",items:E},t[27]=E,t[28]=pe):pe=t[28],ue.push(pe)}return F.length>0&&ue.push(...F),ce&&ue.push(ce),ue}let de;t[29]===Symbol.for("react.memo_cache_sentinel")?(de=s.jsx(Be,{}),t[29]=de):de=t[29];let W;t[30]!==x?(W=x("tasks"),t[30]=x,t[31]=W):W=t[31];let X;t[32]!==n||t[33]!==a||t[34]!==r?(X=()=>n({to:"/$org/$project/tasks",params:{org:a,project:r}}),t[32]=n,t[33]=a,t[34]=r,t[35]=X):X=t[35];let G;t[36]!==W||t[37]!==X?(G={key:"tasks",label:"Tasks",icon:de,isActive:W,onClick:X},t[36]=W,t[37]=X,t[38]=G):G=t[38];const fe=G;let V;t[39]!==u||t[40]!==x||t[41]!==n||t[42]!==a||t[43]!==r?(V=u.includes("workflows")?{key:"workflows",label:"Workflows",icon:s.jsx(ls,{}),isActive:x("workflows"),onClick:()=>n({to:"/$org/$project/workflows",params:{org:a,project:r}})}:null,t[39]=u,t[40]=x,t[41]=n,t[42]=a,t[43]=r,t[44]=V):V=t[44];const ee=V;let q;t[45]===Symbol.for("react.memo_cache_sentinel")?(q=s.jsx(He,{}),t[45]=q):q=t[45];let Q;t[46]!==x?(Q=x("settings"),t[46]=x,t[47]=Q):Q=t[47];let O;t[48]!==n||t[49]!==a||t[50]!==r?(O=()=>n({to:"/$org/$project/settings/general",params:{org:a,project:r}}),t[48]=n,t[49]=a,t[50]=r,t[51]=O):O=t[51];let Z;t[52]!==Q||t[53]!==O?(Z={key:"configure",label:"Settings",icon:q,isActive:Q,onClick:O},t[52]=Q,t[53]=O,t[54]=Z):Z=t[54];const me=Z;let ie;t[55]!==ee?(ie=ee?[ee]:[],t[55]=ee,t[56]=ie):ie=t[56];const ne=[{type:"items",items:[C,fe,...ie,me]}];if(E.length>0){let S;t[57]===Symbol.for("react.memo_cache_sentinel")?(S={type:"divider"},t[57]=S):S=t[57],ne.push(S);let K;t[58]!==E?(K={type:"items",items:E},t[58]=E,t[59]=K):K=t[59],ne.push(K)}return F.length>0&&ne.push(...F),ce&&ne.push(ce),ne}const Vs="sidebar_state",qs=3600*24*7,Qs="16rem",Ys="18rem",Xs="3rem",Zs="b",jt=I.createContext(null);function Ke(){const t=I.useContext(jt);if(!t)throw new Error("useSidebar must be used within a SidebarProvider.");return t}function Js(t){const e=w.c(21),{defaultOpen:i,open:n,onOpenChange:l,children:o}=t,a=i===void 0?!0:i,r=cs(),[c,d]=I.useState(!1),[m,u]=I.useState(a),f=n??m;let p;e[0]!==f||e[1]!==l?(p=k=>{const $=typeof k=="function"?k(f):k;l?l($):u($),document.cookie=`${Vs}=${$}; path=/; max-age=${qs}`},e[0]=f,e[1]=l,e[2]=p):p=e[2];const h=p;let y;e[3]!==r||e[4]!==h?(y=()=>r?d(ti):h(ei),e[3]=r,e[4]=h,e[5]=y):y=e[5];const j=y;let _,g;e[6]!==j?(_=()=>{const k=$=>{if($.key===Zs&&($.metaKey||$.ctrlKey)){const z=$.target;if(z.tagName==="INPUT"||z.tagName==="TEXTAREA"||z.isContentEditable)return;$.preventDefault(),j()}};return globalThis.addEventListener("keydown",k),()=>globalThis.removeEventListener("keydown",k)},g=[j],e[6]=j,e[7]=_,e[8]=g):(_=e[7],g=e[8]),I.useEffect(_,g);const x=f?"expanded":"collapsed";let v;e[9]!==r||e[10]!==f||e[11]!==c||e[12]!==h||e[13]!==x||e[14]!==j?(v={state:x,open:f,setOpen:h,isMobile:r,openMobile:c,setOpenMobile:d,toggleSidebar:j},e[9]=r,e[10]=f,e[11]=c,e[12]=h,e[13]=x,e[14]=j,e[15]=v):v=e[15];const C=v;let b;e[16]!==o?(b=s.jsx(xs,{delayDuration:0,children:o}),e[16]=o,e[17]=b):b=e[17];let N;return e[18]!==C||e[19]!==b?(N=s.jsx(jt.Provider,{value:C,children:b}),e[18]=C,e[19]=b,e[20]=N):N=e[20],N}function ei(t){return!t}function ti(t){return!t}function si(t){const e=w.c(14);let i,n,l,o;e[0]!==t?({className:n,style:o,children:i,...l}=t,e[0]=t,e[1]=i,e[2]=n,e[3]=l,e[4]=o):(i=e[1],n=e[2],l=e[3],o=e[4]);let a;e[5]!==o?(a={"--sidebar-width":Qs,"--sidebar-width-icon":Xs,...o},e[5]=o,e[6]=a):a=e[6];const r=a;let c;e[7]!==n?(c=P("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",n),e[7]=n,e[8]=c):c=e[8];let d;return e[9]!==i||e[10]!==l||e[11]!==r||e[12]!==c?(d=s.jsx("div",{"data-slot":"sidebar-wrapper",style:r,className:c,...l,children:i}),e[9]=i,e[10]=l,e[11]=r,e[12]=c,e[13]=d):d=e[13],d}function ii(t){const e=w.c(42);let i,n,l,o,a,r;e[0]!==t?({side:o,variant:a,collapsible:r,className:n,children:i,...l}=t,e[0]=t,e[1]=i,e[2]=n,e[3]=l,e[4]=o,e[5]=a,e[6]=r):(i=e[1],n=e[2],l=e[3],o=e[4],a=e[5],r=e[6]);const c=o===void 0?"left":o,d=a===void 0?"sidebar":a,m=r===void 0?"offcanvas":r,{isMobile:u,state:f,openMobile:p,setOpenMobile:h}=Ke();if(m==="none"){let b;e[7]!==n?(b=P("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",n),e[7]=n,e[8]=b):b=e[8];let N;return e[9]!==i||e[10]!==l||e[11]!==b?(N=s.jsx("div",{"data-slot":"sidebar",className:b,...l,children:i}),e[9]=i,e[10]=l,e[11]=b,e[12]=N):N=e[12],N}if(u){let b;e[13]===Symbol.for("react.memo_cache_sentinel")?(b={"--sidebar-width":Ys},e[13]=b):b=e[13];let N;e[14]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsxs(ms,{className:"sr-only",children:[s.jsx(fs,{children:"Sidebar"}),s.jsx(us,{children:"Displays the mobile sidebar."})]}),e[14]=N):N=e[14];let k;e[15]!==i?(k=s.jsx("div",{className:"flex h-full w-full flex-col",children:i}),e[15]=i,e[16]=k):k=e[16];let $;e[17]!==c||e[18]!==k?($=s.jsxs(ps,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:b,side:c,children:[N,k]}),e[17]=c,e[18]=k,e[19]=$):$=e[19];let z;return e[20]!==p||e[21]!==l||e[22]!==h||e[23]!==$?(z=s.jsx(ds,{open:p,onOpenChange:h,...l,children:$}),e[20]=p,e[21]=l,e[22]=h,e[23]=$,e[24]=z):z=e[24],z}const y=d==="floating"||d==="inset"?"data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"data-[collapsible=icon]:w-(--sidebar-width-icon)";let j;e[25]!==y?(j=P("group peer text-sidebar-foreground hidden md:flex flex-col shrink-0 overflow-hidden","w-(--sidebar-width) transition-[width] duration-300 ease-[var(--ease-out-quart)]","data-[collapsible=offcanvas]:w-0",y),e[25]=y,e[26]=j):j=e[26];const _=f==="collapsed"?m:"";let g;e[27]!==n?(g=P("flex flex-col h-full w-(--sidebar-width)",n),e[27]=n,e[28]=g):g=e[28];let x;e[29]!==i?(x=s.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:i}),e[29]=i,e[30]=x):x=e[30];let v;e[31]!==l||e[32]!==g||e[33]!==x?(v=s.jsx("div",{"data-slot":"sidebar-container",className:g,...l,children:x}),e[31]=l,e[32]=g,e[33]=x,e[34]=v):v=e[34];let C;return e[35]!==c||e[36]!==f||e[37]!==j||e[38]!==_||e[39]!==v||e[40]!==d?(C=s.jsx("div",{className:j,"data-state":f,"data-collapsible":_,"data-variant":d,"data-side":c,"data-slot":"sidebar",children:v}),e[35]=c,e[36]=f,e[37]=j,e[38]=_,e[39]=v,e[40]=d,e[41]=C):C=e[41],C}function ni(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("bg-background relative flex w-full flex-1 flex-col min-w-0","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("main",{"data-slot":"sidebar-inset",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function vt(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("flex flex-col gap-2 p-2",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function li(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("flex flex-col gap-2 p-2",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function oi(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("h-4 m-0! w-full",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("div",{"data-sidebar":"separator",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function ai(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function Ae(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("relative flex w-full min-w-0 flex-col px-2 py-2 md:py-0",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function Ee(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("w-full text-sm",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function be(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("flex w-full min-w-0 flex-col gap-1",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function xe(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("group/menu-item relative",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}const ri=$t("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md py-0 pr-0.5 pl-1.5 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&_svg]:opacity-60 hover:[&_svg]:opacity-100",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2!",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function Oe(t){const e=w.c(28);let i,n,l,o,a,r,c;e[0]!==t?({asChild:l,isActive:o,variant:a,size:r,tooltip:c,className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n,e[3]=l,e[4]=o,e[5]=a,e[6]=r,e[7]=c):(i=e[1],n=e[2],l=e[3],o=e[4],a=e[5],r=e[6],c=e[7]);const d=l===void 0?!1:l,m=o===void 0?!1:o,u=a===void 0?"default":a,f=r===void 0?"default":r,p=d?wt:"button",{isMobile:h,state:y}=Ke();let j;e[8]!==i||e[9]!==f||e[10]!==u?(j=P(ri({variant:u,size:f}),i),e[8]=i,e[9]=f,e[10]=u,e[11]=j):j=e[11];let _;e[12]!==p||e[13]!==m||e[14]!==n||e[15]!==f||e[16]!==j?(_=s.jsx(p,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":f,"data-active":m,className:j,...n}),e[12]=p,e[13]=m,e[14]=n,e[15]=f,e[16]=j,e[17]=_):_=e[17];const g=_;if(!c)return g;if(typeof c=="string"){let N;e[18]!==c?(N={children:c},e[18]=c,e[19]=N):N=e[19],c=N}let x;e[20]!==g?(x=s.jsx(gs,{asChild:!0,children:g}),e[20]=g,e[21]=x):x=e[21];const v=y!=="collapsed"||h;let C;e[22]!==v||e[23]!==c?(C=s.jsx(hs,{side:"right",align:"center",hidden:v,...c}),e[22]=v,e[23]=c,e[24]=C):C=e[24];let b;return e[25]!==x||e[26]!==C?(b=s.jsxs(bs,{children:[x,C]}),e[25]=x,e[26]=C,e[27]=b):b=e[27],b}function ci(t){const e=w.c(11),{label:i,children:n,defaultExpanded:l}=t,o=l===void 0?!0:l,[a,r]=I.useState(o),{state:c}=Ke(),d=c==="collapsed";let m;e[0]!==a||e[1]!==d||e[2]!==i?(m=d?s.jsx("div",{className:"flex h-6 items-center",children:s.jsx("div",{className:"h-0.5 w-8 rounded-full bg-sidebar-foreground/15"})}):s.jsx(be,{children:s.jsx(xe,{children:s.jsxs(Oe,{className:"h-6 cursor-pointer select-none gap-1 [&>svg]:size-3",onClick:()=>r(!a),children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:i}),s.jsx(mt,{size:12,className:P("text-muted-foreground transition-transform duration-200",!a&&"-rotate-90")})]})})}),e[0]=a,e[1]=d,e[2]=i,e[3]=m):m=e[3];let u;e[4]!==n||e[5]!==a||e[6]!==d?(u=(d||a)&&s.jsx(Ee,{children:s.jsx(be,{className:"gap-0.5",children:n})}),e[4]=n,e[5]=a,e[6]=d,e[7]=u):u=e[7];let f;return e[8]!==m||e[9]!==u?(f=s.jsxs(Ae,{className:"pt-0 pr-0 pb-2 pl-0 mt-2",children:[m,u]}),e[8]=m,e[9]=u,e[10]=f):f=e[10],f}function Nt(t){const e=w.c(20),{item:i}=t,n=i.key,l=i.onClick,o=i.isActive,a=i.label,r=i.isExternal&&"group/external";let c;e[0]!==r?(c=P(r),e[0]=r,e[1]=c):c=e[1];let d;e[2]!==i.icon?(d=s.jsx("span",{className:"[&>svg]:size-4",children:i.icon}),e[2]=i.icon,e[3]=d):d=e[3];let m;e[4]===Symbol.for("react.memo_cache_sentinel")?(m=P("truncate group-data-[collapsible=icon]:hidden"),e[4]=m):m=e[4];let u;e[5]!==i.label?(u=s.jsx("span",{className:m,children:i.label}),e[5]=i.label,e[6]=u):u=e[6];let f;e[7]!==i.isExternal?(f=i.isExternal&&s.jsx($e,{size:12,className:"ml-auto mr-1 shrink-0 opacity-0 group-hover/external:opacity-60 transition-opacity group-data-[collapsible=icon]:hidden"}),e[7]=i.isExternal,e[8]=f):f=e[8];let p;e[9]!==i.isActive||e[10]!==i.label||e[11]!==i.onClick||e[12]!==f||e[13]!==c||e[14]!==d||e[15]!==u?(p=s.jsxs(Oe,{onClick:l,isActive:o,tooltip:a,className:c,children:[d,u,f]}),e[9]=i.isActive,e[10]=i.label,e[11]=i.onClick,e[12]=f,e[13]=c,e[14]=d,e[15]=u,e[16]=p):p=e[16];let h;return e[17]!==i.key||e[18]!==p?(h=s.jsx(xe,{children:p},n),e[17]=i.key,e[18]=p,e[19]=h):h=e[19],h}function di(t){const e=w.c(12),{section:i}=t;switch(i.type){case"divider":{let n;return e[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(oi,{className:"my-2"}),e[0]=n):n=e[0],n}case"spacer":{let n;return e[1]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx("div",{className:"flex-1"}),e[1]=n):n=e[1],n}case"group":{const n=i.group.label,l=i.group.defaultExpanded;let o;e[2]!==i.group.items?(o=i.group.items.map(fi),e[2]=i.group.items,e[3]=o):o=e[3];let a;return e[4]!==i.group.defaultExpanded||e[5]!==i.group.label||e[6]!==o?(a=s.jsx(ci,{label:n,defaultExpanded:l,children:o}),e[4]=i.group.defaultExpanded,e[5]=i.group.label,e[6]=o,e[7]=a):a=e[7],a}case"items":{let n;e[8]!==i.items?(n=i.items.map(mi),e[8]=i.items,e[9]=n):n=e[9];let l;return e[10]!==n?(l=s.jsx(Ae,{className:"pt-0 pr-0 pb-0 pl-0",children:s.jsx(Ee,{children:s.jsx(be,{className:"gap-0.5",children:n})})}),e[10]=n,e[11]=l):l=e[11],l}}}function mi(t){return s.jsx(Nt,{item:t},t.key)}function fi(t){return s.jsx(Nt,{item:t},t.key)}function yt(t){const e=w.c(14),{sections:i,header:n,footer:l,additionalContent:o,variant:a,collapsible:r,contentClassName:c}=t,d=a===void 0?"sidebar":a,m=r===void 0?"icon":r;let u;e[0]!==c?(u=P("flex flex-col flex-1 overflow-x-hidden mt-1 px-3.5 pb-2 group-data-[collapsible=icon]:px-2",c),e[0]=c,e[1]=u):u=e[1];let f;e[2]!==i?(f=i.map(ui),e[2]=i,e[3]=f):f=e[3];let p;e[4]!==o||e[5]!==u||e[6]!==f?(p=s.jsxs(ai,{className:u,children:[f,o]}),e[4]=o,e[5]=u,e[6]=f,e[7]=p):p=e[7];let h;return e[8]!==m||e[9]!==l||e[10]!==n||e[11]!==p||e[12]!==d?(h=s.jsxs(ii,{variant:d,collapsible:m,children:[n,p,l]}),e[8]=m,e[9]=l,e[10]=n,e[11]=p,e[12]=d,e[13]=h):h=e[13],h}function ui(t,e){return s.jsx(di,{section:t},e)}yt.Skeleton=function(){return s.jsx("div",{className:"flex flex-col gap-0.5",children:Array.from({length:8}).map((e,i)=>s.jsx("div",{className:"w-full h-8",children:s.jsx(re,{className:"h-full bg-sidebar-accent rounded-md"})},i))})};function pi(){const t=w.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsxs("div",{className:"space-y-0.5 px-1 py-1",children:[s.jsx(re,{className:"h-8 w-full rounded-lg"}),s.jsx(re,{className:"h-8 w-full rounded-lg"})]}),t[0]=e):e=t[0],e}function xi(t){const e=w.c(12),{organizationId:i,currentProjectSlug:n,onSelect:l}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={suspense:!0},e[0]=o):o=e[0];const{data:a}=dt(i,o);let r,c;if(e[1]!==n||e[2]!==l||e[3]!==a){c=Symbol.for("react.early_return_sentinel");e:{const m=a?.filter(hi)??[];if(m.length===0){let f;e[6]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx("div",{className:"px-2 py-3 text-center text-xs text-muted-foreground",children:"No projects yet"}),e[6]=f):f=e[6],c=f;break e}let u;e[7]!==n||e[8]!==l?(u=f=>{const p=n===f.slug,h=f.ui?.themeColor??"#3B82F6";return s.jsxs(ae,{className:P("gap-2.5",p&&"bg-accent"),onClick:()=>l(f.slug),children:[s.jsx("div",{className:"size-6 rounded-md shrink-0 flex items-center justify-center overflow-hidden border border-border/50",style:f.ui?.icon?void 0:{backgroundColor:h},children:f.ui?.icon?s.jsx("img",{src:f.ui.icon,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:"text-xs font-semibold text-white",children:f.name.charAt(0).toUpperCase()})}),s.jsx("span",{className:"flex-1 truncate",children:f.name}),p&&s.jsx(Pe,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},f.id)},e[7]=n,e[8]=l,e[9]=u):u=e[9],r=m.map(u)}e[1]=n,e[2]=l,e[3]=a,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 hi(t){return t.slug!==te}function gi(t){let e=0;for(let n=0;n<t.length;n++)e=t.charCodeAt(n)+((e<<5)-e);const i=Math.abs(e)%360;return{backgroundColor:`hsl(${i} 55% 70%)`,color:`hsl(${i} 55% 20%)`}}function qe(t){const e=w.c(96),{isCollapsed:i,onCreateProject:n}=t,l=i===void 0?!1:i;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={strict:!1},e[0]=o):o=e[0];const{org:a,project:r}=it(o),{data:c}=Ne.useListOrganizations(),d=Xe(),m=c?.find(Y=>Y.slug===a),[u,f]=I.useState(!1),p=r===te,{data:h}=ct(m?.id??"",p?"":r??"");let y;e[1]!==a?(y=(Y,Re)=>Y.slug===a?-1:Re.slug===a?1:Y.name.localeCompare(Re.name),e[1]=a,e[2]=y):y=e[2];const j=[...c??[]].sort(y);let _;e[3]!==d||e[4]!==a?(_=()=>{a&&d({to:"/$org/$project",params:{org:a,project:te}})},e[3]=d,e[4]=a,e[5]=_):_=e[5];const g=_;let x;e[6]!==d||e[7]!==a?(x=Y=>{a&&d({to:"/$org/$project",params:{org:a,project:Y}})},e[6]=d,e[7]=a,e[8]=x):x=e[8];const v=x;let C;e[9]!==d?(C=Y=>{d({to:"/$org/$project",params:{org:Y,project:te}})},e[9]=d,e[10]=C):C=e[10];const b=C;let N;e[11]!==n?(N=n?()=>n():void 0,e[11]=n,e[12]=N):N=e[12];const k=N;let $;e[13]!==d||e[14]!==a||e[15]!==r?($=()=>{if(!a||!r)return;const Y=r===te;d({to:"/$org/$project",params:{org:a,project:r},search:Re=>({...Re,settings:Y?"org.general":`project:${r}:general`})})},e[13]=d,e[14]=a,e[15]=r,e[16]=$):$=e[16];const z=$,M=ut,R=l?"w-auto pr-1.5":"w-full";let L;e[17]!==R?(L=P("flex items-center gap-3 rounded-md p-1.5 pr-2 text-left hover:bg-sidebar-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring min-h-[2.75rem]",R),e[17]=R,e[18]=L):L=e[18];const H=p?s.jsx("div",{className:P("shrink-0 rounded-md flex items-center justify-center border border-border/50 overflow-hidden transition-[width,height] duration-300 ease-[var(--ease-out-quart)]",l?"size-6":"size-8"),style:m?.logo?void 0:gi(m?.name??""),children:m?.logo?s.jsx("img",{src:m.logo,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:P("font-semibold leading-none",l?"text-[9px]":"text-xs"),children:(m?.name??"?").slice(0,2).toUpperCase()})}):s.jsx("div",{className:P("shrink-0 rounded-md flex items-center justify-center border border-border/50 overflow-hidden transition-[width,height] duration-300 ease-[var(--ease-out-quart)]",l?"size-6":"size-8"),style:h?.ui?.icon?void 0:{backgroundColor:h?.ui?.themeColor??"#60a5fa"},children:h?.ui?.icon?s.jsx("img",{src:h.ui.icon,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:P("font-semibold text-white",l?"text-xs":"text-lg"),children:(h?.name??r??"?").charAt(0).toUpperCase()})});let T;e[19]!==m?.name||e[20]!==h?.name||e[21]!==l||e[22]!==p||e[23]!==r?(T=!l&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex-1 min-w-0 flex flex-col justify-center",children:[s.jsx("span",{className:"block text-[11px] text-sidebar-foreground/50 leading-tight truncate",children:m?.name??"Select org"}),s.jsx("span",{className:"block text-sm font-semibold text-sidebar-foreground truncate leading-tight",children:p?"Studio":h?.name??r??""})]}),s.jsx(Ht,{size:16,className:"shrink-0 text-sidebar-foreground/40"})]}),e[19]=m?.name,e[20]=h?.name,e[21]=l,e[22]=p,e[23]=r,e[24]=T):T=e[24];let A;e[25]!==L||e[26]!==H||e[27]!==T?(A=s.jsx(pt,{asChild:!0,children:s.jsxs("button",{type:"button",className:L,children:[H,T]})}),e[25]=L,e[26]=H,e[27]=T,e[28]=A):A=e[28];const D=ft,E="start",U="bottom",B="w-64 flex flex-col gap-0.5",F=bi,se=p&&"bg-accent";let J;e[29]!==se?(J=P("gap-2.5",se),e[29]=se,e[30]=J):J=e[30];const ce=m?.logo??"",de=m?.name??"";let W;e[31]!==ce||e[32]!==de?(W=s.jsx(Ie,{url:ce,fallback:de,size:"sm",className:"size-6 rounded-md shrink-0",objectFit:"cover"}),e[31]=ce,e[32]=de,e[33]=W):W=e[33];const X=m?.name;let G;e[34]!==X?(G=s.jsxs("span",{className:"flex-1 truncate",children:["Studio · ",X]}),e[34]=X,e[35]=G):G=e[35];let fe;e[36]!==p?(fe=p&&s.jsx(Pe,{size:14,className:"ml-auto text-muted-foreground shrink-0"}),e[36]=p,e[37]=fe):fe=e[37];let V;e[38]!==g||e[39]!==J||e[40]!==W||e[41]!==G||e[42]!==fe?(V=s.jsxs(ae,{className:J,onClick:g,children:[W,G,fe]}),e[38]=g,e[39]=J,e[40]=W,e[41]=G,e[42]=fe,e[43]=V):V=e[43];let ee;e[44]===Symbol.for("react.memo_cache_sentinel")?(ee=s.jsx("p",{className:"px-2 pt-2 pb-0.5 text-[11px] font-medium text-muted-foreground/50 uppercase tracking-wider",children:"Projects"}),e[44]=ee):ee=e[44];let q;e[45]!==m||e[46]!==v||e[47]!==a||e[48]!==r?(q=m&&s.jsx(I.Suspense,{fallback:s.jsx(pi,{}),children:s.jsx(xi,{organizationId:m.id,currentProjectSlug:r,orgSlug:a??"",onSelect:v})}),e[45]=m,e[46]=v,e[47]=a,e[48]=r,e[49]=q):q=e[49];let Q;e[50]!==k?(Q=k&&s.jsxs(ae,{className:"gap-2.5",onClick:k,children:[s.jsx(Le,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Create project"})]}),e[50]=k,e[51]=Q):Q=e[51];let O;e[52]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsx(Ue,{}),e[52]=O):O=e[52];const Z=vs;let me;e[53]===Symbol.for("react.memo_cache_sentinel")?(me=s.jsxs(Ns,{className:"gap-2.5",children:[s.jsx(ys,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Switch organization"})]}),e[53]=me):me=e[53];const ie=js,je="w-48 flex flex-col gap-0.5";let ne;e[54]!==b||e[55]!==a?(ne=Y=>s.jsxs(ae,{className:P("gap-2.5",Y.slug===a&&"bg-accent"),onClick:()=>b(Y.slug),children:[s.jsx(Ie,{url:Y.logo??"",fallback:Y.name,size:"xs",className:"size-5 rounded-md shrink-0",objectFit:"cover"}),s.jsx("span",{className:"flex-1 truncate",children:Y.name}),Y.slug===a&&s.jsx(Pe,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},Y.id),e[54]=b,e[55]=a,e[56]=ne):ne=e[56];const S=j.map(ne);let K;e[57]===Symbol.for("react.memo_cache_sentinel")?(K=s.jsx(Ue,{}),e[57]=K):K=e[57];let le;e[58]!==f?(le=()=>f(!0),e[58]=f,e[59]=le):le=e[59];let he,ye;e[60]===Symbol.for("react.memo_cache_sentinel")?(he=s.jsx(Le,{size:14,className:"shrink-0 text-muted-foreground"}),ye=s.jsx("span",{children:"Create organization"}),e[60]=he,e[61]=ye):(he=e[60],ye=e[61]);let ue;e[62]!==le?(ue=s.jsxs(ae,{className:"gap-2.5",onClick:le,children:[he,ye]}),e[62]=le,e[63]=ue):ue=e[63];let pe;e[64]!==ie||e[65]!==S||e[66]!==ue?(pe=s.jsxs(ie,{className:je,children:[S,K,ue]}),e[64]=ie,e[65]=S,e[66]=ue,e[67]=pe):pe=e[67];let Se;e[68]!==Z||e[69]!==me||e[70]!==pe?(Se=s.jsxs(Z,{children:[me,pe]}),e[68]=Z,e[69]=me,e[70]=pe,e[71]=Se):Se=e[71];let Te,De;e[72]===Symbol.for("react.memo_cache_sentinel")?(Te=s.jsx(He,{size:14,className:"shrink-0 text-muted-foreground"}),De=s.jsx("span",{children:"Settings"}),e[72]=Te,e[73]=De):(Te=e[72],De=e[73]);let _e;e[74]!==z?(_e=s.jsxs(ae,{className:"gap-2.5",onClick:z,children:[Te,De]}),e[74]=z,e[75]=_e):_e=e[75];let ke;e[76]!==D||e[77]!==F||e[78]!==V||e[79]!==ee||e[80]!==q||e[81]!==Q||e[82]!==O||e[83]!==Se||e[84]!==_e?(ke=s.jsxs(D,{align:E,side:U,className:B,onCloseAutoFocus:F,children:[V,ee,q,Q,O,Se,_e]}),e[76]=D,e[77]=F,e[78]=V,e[79]=ee,e[80]=q,e[81]=Q,e[82]=O,e[83]=Se,e[84]=_e,e[85]=ke):ke=e[85];let Ce;e[86]!==M||e[87]!==A||e[88]!==ke?(Ce=s.jsxs(M,{children:[A,ke]}),e[86]=M,e[87]=A,e[88]=ke,e[89]=Ce):Ce=e[89];let we;e[90]!==u||e[91]!==f?(we=s.jsx(Ss,{open:u,onOpenChange:f}),e[90]=u,e[91]=f,e[92]=we):we=e[92];let Me;return e[93]!==Ce||e[94]!==we?(Me=s.jsxs(s.Fragment,{children:[Ce,we]}),e[93]=Ce,e[94]=we,e[95]=Me):Me=e[95],Me}function bi(t){return t.preventDefault()}qe.Skeleton=function(){return s.jsxs("div",{className:"flex items-center gap-1.5 h-7 px-1.5 w-full",children:[s.jsx(re,{className:"size-5 rounded-[5px] shrink-0 bg-sidebar-accent"}),s.jsx(re,{className:"h-3.5 flex-1 bg-sidebar-accent"})]})};function Qe(t){const e=w.c(4),{onCreateProject:i}=t,{state:n,toggleSidebar:l}=Ke(),o=n==="collapsed";let a;return e[0]!==o||e[1]!==i||e[2]!==l?(a=s.jsx(vt,{className:"px-3 group-data-[collapsible=icon]:px-2 animate-in fade-in-0 duration-200",children:s.jsx(be,{children:s.jsx(xe,{children:o?s.jsxs("div",{className:"flex flex-col w-full gap-0.5",children:[s.jsx(qe,{isCollapsed:!0,onCreateProject:i}),s.jsx(Oe,{onClick:l,tooltip:"Expand sidebar",children:s.jsx(Ve,{})})]}):s.jsxs("div",{className:"flex items-center justify-between w-full gap-1",children:[s.jsx("div",{className:"min-w-0 flex-1",children:s.jsx(qe,{isCollapsed:!1,onCreateProject:i})}),s.jsx(Oe,{onClick:l,tooltip:"Collapse sidebar",className:"size-7 shrink-0",children:s.jsx(Ve,{})})]})})})}),e[0]=o,e[1]=i,e[2]=l,e[3]=a):a=e[3],a}Qe.Skeleton=function(){return s.jsx(vt,{className:"px-3",children:s.jsx(be,{children:s.jsx(xe,{children:s.jsxs("div",{className:"flex items-center justify-between w-full",children:[s.jsxs("div",{className:"flex items-center gap-3 min-w-0 flex-1 p-1.5",children:[s.jsx(re,{className:"size-8 rounded-md shrink-0 bg-sidebar-accent"}),s.jsx(re,{className:"h-3.5 w-16 bg-sidebar-accent"})]}),s.jsx("div",{className:"flex items-center gap-0.5",children:s.jsx(re,{className:"size-7 rounded-lg bg-sidebar-accent"})})]})})})})};function ji(t){const e=w.c(50),{user:i,userImage:n}=t,{open:l}=rt(),[o,a]=I.useState(!1);let r;e[0]!==i.email||e[1]!==i.id||e[2]!==i.name?(r=()=>{const F=`ID: ${i.id}
|
|
2
2
|
Name: ${i.name||"N/A"}
|
|
3
|
-
Email: ${i.email}`;navigator.clipboard.writeText(F),a(!0),ve.success("User info copied to clipboard"),setTimeout(()=>a(!1),2e3)},e[0]=i.email,e[1]=i.id,e[2]=i.name,e[3]=r):r=e[3];const c=r,d=i.name||i.email||"U";let m;e[4]!==d||e[5]!==n?(m=s.jsx(Ie,{url:n,fallback:d,shape:"circle",size:"2xs",className:"shrink-0 size-5"}),e[4]=d,e[5]=n,e[6]=m):m=e[6];const u=i.name||"User";let f;e[7]!==u?(f=s.jsx("div",{className:"flex-1 min-w-0 group-data-[collapsible=icon]:hidden",children:s.jsx("div",{className:"text-sm font-medium truncate text-sidebar-foreground leading-none",children:u})}),e[7]=u,e[8]=f):f=e[8];let p;e[9]!==m||e[10]!==f?(p=s.jsx(pt,{asChild:!0,children:s.jsxs("button",{className:"flex w-full h-8 items-center gap-2 rounded-md px-1 hover:bg-sidebar-accent transition-colors text-left min-w-0",children:[m,f]})}),e[9]=m,e[10]=f,e[11]=p):p=e[11];const h=i.name||i.email||"U";let y;e[12]!==h||e[13]!==n?(y=s.jsx(Ie,{url:n,fallback:h,shape:"circle",size:"sm",className:"shrink-0"}),e[12]=h,e[13]=n,e[14]=y):y=e[14];const j=i.name||"User";let _;e[15]!==j?(_=s.jsx("div",{className:"text-sm font-medium truncate",children:j}),e[15]=j,e[16]=_):_=e[16];let g;e[17]!==i.email?(g=s.jsx("div",{className:"text-xs text-muted-foreground truncate",children:i.email}),e[17]=i.email,e[18]=g):g=e[18];let x;e[19]!==_||e[20]!==g?(x=s.jsxs("div",{className:"flex-1 min-w-0",children:[_,g]}),e[19]=_,e[20]=g,e[21]=x):x=e[21];let v;e[22]!==o?(v=s.jsx("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity shrink-0",children:o?s.jsx(Pe,{size:14,className:"text-green-600"}):s.jsx(_s,{size:14,className:"text-muted-foreground"})}),e[22]=o,e[23]=v):v=e[23];let C;e[24]!==c||e[25]!==x||e[26]!==v||e[27]!==y?(C=s.jsxs(ae,{onClick:c,className:"gap-2.5 group",children:[y,x,v]}),e[24]=c,e[25]=x,e[26]=v,e[27]=y,e[28]=C):C=e[28];let b;e[29]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(Ue,{}),e[29]=b):b=e[29];let N;e[30]!==l?(N=()=>l("account.preferences"),e[30]=l,e[31]=N):N=e[31];let k,$;e[32]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx(He,{size:14,className:"shrink-0 text-muted-foreground"}),$=s.jsx("span",{children:"Settings"}),e[32]=k,e[33]=$):(k=e[32],$=e[33]);let z;e[34]!==N?(z=s.jsxs(ae,{className:"gap-2.5",onClick:N,children:[k,$]}),e[34]=N,e[35]=z):z=e[35];let M;e[36]===Symbol.for("react.memo_cache_sentinel")?(M=s.jsx(ae,{asChild:!0,children:s.jsxs("a",{href:"https://www.decocms.com/terms-of-use",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(ks,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Terms of Use"}),s.jsx($e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[36]=M):M=e[36];let R;e[37]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx(ae,{asChild:!0,children:s.jsxs("a",{href:"https://www.decocms.com/privacy-policy",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(ws,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Privacy Policy"}),s.jsx($e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[37]=R):R=e[37];let L;e[38]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx(ae,{asChild:!0,children:s.jsxs("a",{href:"https://github.com/decocms/mesh",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(zt,{className:"w-3.5 h-3.5 shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"decocms/mesh"}),s.jsx($e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[38]=L):L=e[38];let H;e[39]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(ae,{asChild:!0,children:s.jsxs("a",{href:"https://decocms.com/discord",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(et,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Community"}),s.jsx($e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[39]=H):H=e[39];let T,A;e[40]===Symbol.for("react.memo_cache_sentinel")?(T=s.jsx(ae,{asChild:!0,children:s.jsxs("a",{href:"https://decocms.com",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(Cs,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Homepage"}),s.jsx($e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),A=s.jsx(Ue,{}),e[40]=T,e[41]=A):(T=e[40],A=e[41]);let D;e[42]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsxs(ae,{className:"gap-2.5",onClick:vi,children:[s.jsx(bt,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Sign out"})]}),e[42]=D):D=e[42];let E;e[43]===Symbol.for("react.memo_cache_sentinel")?(E=s.jsx("div",{className:"px-2 py-1.5",children:s.jsxs("span",{className:"text-xs text-muted-foreground/60",children:["v","2.179.0"]})}),e[43]=E):E=e[43];let U;e[44]!==C||e[45]!==z?(U=s.jsxs(ft,{side:"top",align:"end",collisionPadding:8,className:"w-64 flex flex-col gap-0.5",onCloseAutoFocus:Ni,children:[C,b,z,M,R,L,H,T,A,D,E]}),e[44]=C,e[45]=z,e[46]=U):U=e[46];let B;return e[47]!==U||e[48]!==p?(B=s.jsxs(ut,{children:[p,U]}),e[47]=U,e[48]=p,e[49]=B):B=e[49],B}function vi(){return Ne.signOut()}function Ni(t){return t.preventDefault()}function St(){const t=w.c(7),{data:e}=Ne.useSession();if(!e?.user){let c;return t[0]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(Ie,{url:void 0,fallback:"U",shape:"circle",size:"sm",className:"cursor-pointer h-7 w-7",muted:!0}),t[0]=c):c=t[0],c}const i=e.user,n=i.name??void 0;let l;t[1]!==n||t[2]!==i?(l={...i,name:n},t[1]=n,t[2]=i,t[3]=l):l=t[3];const o=l,a=i.image;let r;return t[4]!==a||t[5]!==o?(r=s.jsx(ji,{user:o,userImage:a}),t[4]=a,t[5]=o,t[6]=r):r=t[6],r}function yi({invitation:t}){const[e,i]=I.useState(!1),[n,l]=I.useState(!1),o=Pt(),a=async()=>{i(!0);try{const c=await Ne.organization.acceptInvitation({invitationId:t.id});if(c.error)ve.error(c.error.message),i(!1);else{const d=await Ne.organization.setActive({organizationId:t.organizationId});ve.success("Invitation accepted!");const m=d?.data?.slug;window.location.href=m?`/${m}`:"/"}}catch{ve.error("Failed to accept invitation"),i(!1)}},r=async()=>{l(!0);try{const c=await Ne.organization.rejectInvitation({invitationId:t.id});c.error?(ve.error(c.error.message),l(!1)):(ve.success("Invitation declined"),o.invalidateQueries())}catch{ve.error("Failed to decline invitation"),l(!1)}};return s.jsxs("div",{className:"flex items-center gap-3 px-5 py-4 border-b border-border last:border-0 hover:bg-muted/25 transition-colors",children:[s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("p",{className:"text-xs text-muted-foreground",children:"You've been invited to join"}),s.jsx("p",{className:"text-sm font-medium truncate",children:t.organizationName??"Unknown organization"})]}),s.jsxs("div",{className:"flex items-center gap-1 shrink-0",children:[s.jsx(Ge,{size:"icon",variant:"ghost",className:"size-7 text-green-600 hover:text-green-700 hover:bg-green-50 dark:hover:bg-green-950",onClick:a,disabled:e||n,"aria-label":"Accept invitation",children:s.jsx(Pe,{size:14})}),s.jsx(Ge,{size:"icon",variant:"ghost",className:"size-7 text-muted-foreground hover:text-destructive hover:bg-destructive/10",onClick:r,disabled:e||n,"aria-label":"Decline invitation",children:s.jsx(Ps,{size:14})})]})]})}function Si(){const t=I.useContext(It),{data:e}=t.hooks.useListUserInvitations();return(e??[]).filter(n=>n.status==="pending"&&new Date(n.expiresAt)>new Date)}class _i extends I.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,i){}render(){return this.state.hasError?null:this.props.children}}function ki(t){return t<=1?"text-destructive":t<=5?"text-amber-500 dark:text-amber-400":"text-foreground/70"}function Ci(){const t=w.c(15),{open:e}=rt(),{org:i}=ze();let n;t[0]!==i.id?(n={connectionId:Kt,orgId:i.id},t[0]=i.id,t[1]=n):n=t[1];const l=Wt(n);let o;t[2]===Symbol.for("react.memo_cache_sentinel")?(o={providerId:"deco"},t[2]=o):o=t[2];let a;t[3]!==l?(a={client:l,toolName:"AI_PROVIDER_CREDITS",toolArguments:o,staleTime:6e4,select:wi},t[3]=l,t[4]=a):a=t[4];const{data:r,isPending:c,isError:d}=As(a),m=r?.balanceCents!=null?r.balanceCents/100:null;let u;t[5]!==e?(u=()=>e("org.billing"),t[5]=e,t[6]=u):u=t[6];let f;t[7]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx(gt,{size:13,className:"text-muted-foreground/60 shrink-0"}),s.jsx("span",{className:"text-xs text-muted-foreground",children:"Credits"})]}),t[7]=f):f=t[7];let p;t[8]!==m||t[9]!==d||t[10]!==c?(p=c||d||m==null?s.jsx("span",{className:"text-xs font-medium tabular-nums text-muted-foreground/40",children:"—"}):s.jsxs("span",{className:P("text-xs font-medium tabular-nums",ki(m)),children:["$",m.toFixed(2)]}),t[8]=m,t[9]=d,t[10]=c,t[11]=p):p=t[11];let h;return t[12]!==u||t[13]!==p?(h=s.jsxs("button",{type:"button",onClick:u,className:"group-data-[collapsible=icon]:hidden flex items-center justify-between w-full px-2 py-1.5 rounded-md hover:bg-sidebar-accent transition-colors",children:[f,p]}),t[12]=u,t[13]=p,t[14]=h):h=t[14],h}function wi(t){return t.structuredContent}function $i(){const t=w.c(1);if(!Zt().some(zi))return null;let n;return t[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(Ci,{}),t[0]=n):n=t[0],n}function zi(t){return t.providerId==="deco"}function Ii(){const t=w.c(13),e=Si();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(_i,{children:s.jsx(I.Suspense,{fallback:null,children:s.jsx($i,{})})}),t[0]=i):i=t[0];let n;t[1]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx("div",{className:"flex-1 min-w-0",children:s.jsx(St,{})}),t[1]=n):n=t[1];let l;t[2]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(zs,{asChild:!0,children:s.jsx(Ge,{variant:"ghost",size:"icon",className:"size-8 text-sidebar-foreground/50 hover:text-sidebar-foreground hover:bg-sidebar-accent","aria-label":"Open inbox",children:s.jsx(st,{size:16})})}),t[2]=l):l=t[2];let o;t[3]!==e.length?(o=e.length>0&&s.jsx("span",{className:"absolute top-1 right-1 size-2 rounded-full bg-red-500 ring-2 ring-sidebar pointer-events-none"}),t[3]=e.length,t[4]=o):o=t[4];let a;t[5]!==o?(a=s.jsxs("div",{className:"relative",children:[l,o]}),t[5]=o,t[6]=a):a=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($s,{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(st,{size:24,className:"text-muted-foreground/50"}),s.jsx("p",{className:"text-sm font-medium text-foreground",children:"No messages or invites pending"}),s.jsx("p",{className:"text-xs text-muted-foreground",children:"Messages, workspace and project invitations will appear here"})]}):s.jsx("div",{className:"overflow-y-auto flex-1",children:e.map(Pi)})]}),t[8]=e,t[9]=c):c=t[9];let d;return t[10]!==a||t[11]!==c?(d=s.jsxs(li,{className:"px-3.5 pb-3 group-data-[collapsible=icon]:px-2",children:[i,s.jsx(be,{children:s.jsx(xe,{children:s.jsxs("div",{className:"flex items-center w-full gap-1",children:[n,s.jsx("div",{className:"group-data-[collapsible=icon]:hidden",children:s.jsxs(Is,{children:[a,c]})})]})})})]}),t[10]=a,t[11]=c,t[12]=d):d=t[12],d}function Pi(t){return s.jsx(yi,{invitation:t},t.id)}function Ai(t){const e=w.c(11),{project:i}=t,n=i.ui?.themeColor??"#60a5fa";if(i.ui?.icon){let c;return e[0]!==i.ui.icon?(c=s.jsx("img",{src:i.ui.icon,alt:"",className:"size-4 rounded object-cover border border-border/50"}),e[0]=i.ui.icon,e[1]=c):c=e[1],c}let l;e[2]!==n?(l={backgroundColor:n},e[2]=n,e[3]=l):l=e[3];let o;e[4]!==i.name?(o=i.name.charAt(0).toUpperCase(),e[4]=i.name,e[5]=o):o=e[5];let a;e[6]!==o?(a=s.jsx("span",{className:"text-[10px] font-medium text-white",children:o}),e[6]=o,e[7]=a):a=e[7];let r;return e[8]!==l||e[9]!==a?(r=s.jsx("div",{className:"size-4 rounded flex items-center justify-center border border-border/50",style:l,children:a}),e[8]=l,e[9]=a,e[10]=r):r=e[10],r}function Ei(t){const e=w.c(14),{project:i}=t,n=Xe(),{org:l}=ze();let o;e[0]!==n||e[1]!==l.slug||e[2]!==i.slug?(o=()=>{n({to:"/$org/$project",params:{org:l.slug,project:i.slug}})},e[0]=n,e[1]=l.slug,e[2]=i.slug,e[3]=o):o=e[3];let a;e[4]!==i?(a=s.jsx(Ai,{project:i}),e[4]=i,e[5]=a):a=e[5];let r;e[6]!==i.name?(r=s.jsx("span",{className:"truncate flex-1 group-data-[collapsible=icon]:hidden",children:i.name}),e[6]=i.name,e[7]=r):r=e[7];let c;e[8]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(Ds,{size:12,className:"text-muted-foreground opacity-0 group-hover/item:opacity-100 transition-opacity group-data-[collapsible=icon]:hidden"}),e[8]=c):c=e[8];let d;return e[9]!==i.name||e[10]!==o||e[11]!==a||e[12]!==r?(d=s.jsx(xe,{children:s.jsxs(Oe,{onClick:o,tooltip:i.name,children:[a,r,c]})}),e[9]=i.name,e[10]=o,e[11]=a,e[12]=r,e[13]=d):d=e[13],d}function Oi(){const t=w.c(55),{org:e}=ze(),{data:i,isLoading:n}=dt(e.id),[l,o]=I.useState(!0),[a,r]=I.useState(!1);let c,d,m,u,f,p,h,y,j,_,g,x,v;if(t[0]!==n||t[1]!==l||t[2]!==i){v=Symbol.for("react.early_return_sentinel");e:{const L=i?.filter(Di)??[];if(n){let B;t[16]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx(xe,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(re,{className:"h-4 w-4 rounded"}),s.jsx(re,{className:"h-4 flex-1"})]})}),t[16]=B):B=t[16];let F;t[17]===Symbol.for("react.memo_cache_sentinel")?(F=s.jsx(Ae,{className:"py-0 px-0",children:s.jsx(Ee,{children:s.jsxs(be,{className:"gap-0.5",children:[B,s.jsx(xe,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(re,{className:"h-4 w-4 rounded"}),s.jsx(re,{className:"h-4 flex-1"})]})})]})})}),t[17]=F):F=t[17],v=F;break e}x="group/projects-section mt-2",f=Es,_=l,g=o,u=Ae,j="py-0 px-0",m=Ee,d=be,h="gap-0.5";let H;t[18]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Projects"}),t[18]=H):H=t[18];const T=!l&&"-rotate-90";let A;t[19]!==T?(A=P("text-muted-foreground shrink-0 transition-transform duration-200",T),t[19]=T,t[20]=A):A=t[20];let D;t[21]!==A?(D=s.jsx(Os,{asChild:!0,children:s.jsxs("button",{type:"button",className:"flex flex-1 items-center gap-1 cursor-pointer min-w-0",children:[H,s.jsx(mt,{size:12,className:A})]})}),t[21]=A,t[22]=D):D=t[22];let E;t[23]===Symbol.for("react.memo_cache_sentinel")?(E=()=>r(!0),t[23]=E):E=t[23];let U;t[24]===Symbol.for("react.memo_cache_sentinel")?(U=s.jsx("button",{type:"button",onClick:E,title:"Create new project",className:"opacity-0 group-hover/projects-section:opacity-100 transition-opacity text-muted-foreground hover:text-foreground flex items-center justify-center h-4 rounded shrink-0",children:s.jsx(Le,{size:16})}),t[24]=U):U=t[24],t[25]!==D?(y=s.jsx(xe,{className:"group-data-[collapsible=icon]:hidden",children:s.jsxs("div",{className:"flex h-6 w-full items-center gap-1 rounded-md pl-1.5 pr-0.5 hover:bg-sidebar-accent transition-colors",children:[D,U]})}),t[25]=D,t[26]=y):y=t[26],c=Ts,p=L.length===0?s.jsx(xe,{children:s.jsx("div",{className:"px-2 py-2 text-xs text-muted-foreground",children:"No projects yet"})}):L.map(Ti)}t[0]=n,t[1]=l,t[2]=i,t[3]=c,t[4]=d,t[5]=m,t[6]=u,t[7]=f,t[8]=p,t[9]=h,t[10]=y,t[11]=j,t[12]=_,t[13]=g,t[14]=x,t[15]=v}else c=t[3],d=t[4],m=t[5],u=t[6],f=t[7],p=t[8],h=t[9],y=t[10],j=t[11],_=t[12],g=t[13],x=t[14],v=t[15];if(v!==Symbol.for("react.early_return_sentinel"))return v;let C;t[27]!==c||t[28]!==p?(C=s.jsx(c,{children:p}),t[27]=c,t[28]=p,t[29]=C):C=t[29];let b;t[30]!==d||t[31]!==h||t[32]!==y||t[33]!==C?(b=s.jsxs(d,{className:h,children:[y,C]}),t[30]=d,t[31]=h,t[32]=y,t[33]=C,t[34]=b):b=t[34];let N;t[35]!==m||t[36]!==b?(N=s.jsx(m,{children:b}),t[35]=m,t[36]=b,t[37]=N):N=t[37];let k;t[38]!==u||t[39]!==N||t[40]!==j?(k=s.jsx(u,{className:j,children:N}),t[38]=u,t[39]=N,t[40]=j,t[41]=k):k=t[41];let $;t[42]!==f||t[43]!==k||t[44]!==_||t[45]!==g?($=s.jsx(f,{open:_,onOpenChange:g,children:k}),t[42]=f,t[43]=k,t[44]=_,t[45]=g,t[46]=$):$=t[46];let z;t[47]!==$||t[48]!==x?(z=s.jsx("div",{className:x,children:$}),t[47]=$,t[48]=x,t[49]=z):z=t[49];let M;t[50]!==a?(M=s.jsx(at,{open:a,onOpenChange:r}),t[50]=a,t[51]=M):M=t[51];let R;return t[52]!==z||t[53]!==M?(R=s.jsxs(s.Fragment,{children:[z,M]}),t[52]=z,t[53]=M,t[54]=R):R=t[54],R}function Ti(t){return s.jsx(Ei,{project:t},t.id)}function Di(t){return t.slug!==te}function Mi(){const t=w.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(I.Suspense,{fallback:s.jsx(Ae,{className:"py-0 px-0",children:s.jsx(Ee,{children:s.jsx(be,{className:"gap-0.5",children:s.jsx(xe,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(re,{className:"h-4 w-4 rounded"}),s.jsx(re,{className:"h-4 flex-1"})]})})})})}),children:s.jsx(Oi,{})}),t[0]=e):e=t[0],e}function Ri(t){const e=w.c(12),{onCreateProject:i}=t,n=Gs(),{locator:l}=ze();let o;e[0]!==l?(o=We.isOrgAdminProject(l),e[0]=l,e[1]=o):o=e[1];const a=o;let r;e[2]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(Qe.Skeleton,{}),e[2]=r):r=e[2];let c;e[3]!==i?(c=s.jsx(I.Suspense,{fallback:r,children:s.jsx(Qe,{onCreateProject:i})}),e[3]=i,e[4]=c):c=e[4];let d;e[5]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(Ii,{}),e[5]=d):d=e[5];let m;e[6]!==a?(m=a?s.jsx(Ye,{children:s.jsx(I.Suspense,{fallback:null,children:s.jsx(Mi,{})})}):null,e[6]=a,e[7]=m):m=e[7];let u;return e[8]!==n||e[9]!==c||e[10]!==m?(u=s.jsx(yt,{sections:n,header:c,footer:d,additionalContent:m}),e[8]=n,e[9]=c,e[10]=m,e[11]=u):u=e[11],u}function Li(){const t=w.c(5),i=Ze().location.href;let n;t[0]!==i?(n=i==="/login"||i.startsWith("/login?"),t[0]=i,t[1]=n):n=t[1];const l=n;let o;if(t[2]!==i||t[3]!==l){const a=l?{}:{next:i};o=s.jsx(Tt,{to:"/login",search:a,replace:!0}),t[2]=i,t[3]=l,t[4]=o}else o=t[4];return o}function Hi(t){const e=w.c(6),{children:i}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(At,{children:s.jsx(nt,{})}),e[0]=n):n=e[0];let l;e[1]!==i?(l=s.jsx(Et,{children:i}),e[1]=i,e[2]=l):l=e[2];let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(Ot,{children:s.jsx(Li,{})}),e[3]=o):o=e[3];let a;return e[4]!==l?(a=s.jsxs(s.Fragment,{children:[n,l,o]}),e[4]=l,e[5]=a):a=e[5],a}function Ui(t){const e=w.c(10),{children:i,className:n}=t,[,l]=I.useTransition();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=Fe.decoChatPanelWidth(),e[0]=o):o=e[0];const[a,r]=Je(o,30);let c;e[1]!==r?(c=f=>l(()=>r(f)),e[1]=r,e[2]=c):c=e[2];const d=c;let m;e[3]!==n?(m=P("min-w-0",n),e[3]=n,e[4]=m):m=e[4];let u;return e[5]!==a||e[6]!==i||e[7]!==d||e[8]!==m?(u=s.jsx(xt,{defaultSize:a,minSize:20,className:m,onResize:d,children:i}),e[5]=a,e[6]=i,e[7]=d,e[8]=m,e[9]=u):u=e[9],u}function Bi(t){const e=w.c(5),{children:i}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=Fe.sidebarOpen(),e[0]=n):n=e[0];const[l,o]=Je(n,!0);let a;return e[1]!==i||e[2]!==o||e[3]!==l?(a=s.jsx(Js,{open:l,onOpenChange:o,children:i}),e[1]=i,e[2]=o,e[3]=l,e[4]=a):a=e[4],a}function Fi(t){const e=w.c(23),{isHomeRoute:i,onCreateProject:n}=t,[l]=ot();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=Fe.decoChatPanelWidth(),e[0]=o):o=e[0];const[a]=Je(o,30),r=`${a}cqi`;let c;e[1]!==r?(c={"--sidebar-width":"13.5rem","--sidebar-width-mobile":"11rem","--chat-panel-w":r},e[1]=r,e[2]=c):c=e[2];const d=c;let m;e[3]!==n?(m=s.jsx(Ri,{onCreateProject:n}),e[3]=n,e[4]=m):m=e[4];let u;e[5]===Symbol.for("react.memo_cache_sentinel")?(u={background:"transparent",containerType:"inline-size"},e[5]=u):u=e[5];let f;e[6]===Symbol.for("react.memo_cache_sentinel")?(f={overflow:"visible"},e[6]=f):f=e[6];let p;e[7]===Symbol.for("react.memo_cache_sentinel")?(p={overflow:"visible"},e[7]=p):p=e[7];const h=l&&"rounded-tr-[0.75rem] border-r";let y;e[8]!==h?(y=P("flex flex-col flex-1 min-h-0 bg-card overflow-hidden","border-t border-l border-sidebar-border","rounded-tl-[0.75rem]","transition-[border-radius] duration-200 ease-[var(--ease-out-quart)]",h),e[8]=h,e[9]=y):y=e[9];let j;e[10]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx("div",{className:"flex-1 overflow-hidden",children:s.jsx(lt,{})}),e[10]=j):j=e[10];let _;e[11]!==y?(_=s.jsx(xt,{className:"min-w-0 flex flex-col",style:p,children:s.jsx("div",{className:y,children:j})}),e[11]=y,e[12]=_):_=e[12];let g;e[13]!==l||e[14]!==i?(g=!i&&s.jsxs(s.Fragment,{children:[s.jsx(Ms,{className:"bg-sidebar"}),s.jsx(Ui,{className:P("transition-[max-width] duration-200 ease-[var(--ease-out-quart)] overflow-hidden",l?"max-w-[var(--chat-panel-w)] bg-sidebar":"max-w-0"),children:s.jsx("div",{className:"h-full min-w-[var(--chat-panel-w)] pl-1.5 pr-1.5 pb-1.5",children:s.jsx("div",{className:"h-full bg-background rounded-[0.75rem] overflow-hidden border border-sidebar-border shadow-sm",children:s.jsx(Us,{})})})})]}),e[13]=l,e[14]=i,e[15]=g):g=e[15];let x;e[16]!==_||e[17]!==g?(x=s.jsx(ni,{className:"pt-1.5",style:u,children:s.jsxs(Rs,{direction:"horizontal",className:"h-full",style:f,children:[_,g]})}),e[16]=_,e[17]=g,e[18]=x):x=e[18];let v;return e[19]!==x||e[20]!==d||e[21]!==m?(v=s.jsxs(si,{className:"flex-1 bg-sidebar",style:d,children:[m,x]}),e[19]=x,e[20]=d,e[21]=m,e[22]=v):v=e[22],v}function Ki(){const{org:t,project:e}=it({strict:!1}),i=Ze(),[n,l]=I.useState(!1),[o,a]=I.useState(!1);I.useEffect(()=>{const u=f=>{Ut(f)&&f.code==="KeyK"&&(f.preventDefault(),a(!0))};return document.addEventListener("keydown",u),()=>document.removeEventListener("keydown",u)},[]);const r=i.location.pathname===`/${t}/${e}`||i.location.pathname===`/${t}/${e}/`,c=e??te,{data:d}=Dt({queryKey:Mt.activeOrganization(t),queryFn:async()=>{if(!t)return null;const{data:u}=await Ne.organization.setActive({organizationSlug:t});return u&&localStorage.setItem(Fe.lastOrgSlug(),t),{org:u,project:{slug:c,isOrgAdmin:c===te}}},gcTime:1/0,refetchOnWindowFocus:!1});if(!d)return s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsx("header",{className:"h-12 flex items-center justify-end px-4 border-b border-border",children:s.jsx("div",{className:"w-fit",children:s.jsx(St,{})})}),s.jsx(lt,{})]});if(!d.org)return window.location.pathname!=="/"&&(window.location.href="/"),null;const m={...d,project:{...d.project,slug:c,isOrgAdmin:c===te}};return s.jsxs(Rt,{...m,children:[s.jsx(Bi,{children:s.jsx("div",{className:"flex flex-col h-screen overflow-hidden",children:s.jsx(oe.Provider,{children:s.jsx(Fi,{isHomeRoute:r,onCreateProject:()=>l(!0)})})})}),s.jsx(at,{open:n,onOpenChange:l}),s.jsx(Bs,{open:o,onOpenChange:a})]})}function Hl(){const t=w.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Hi,{children:s.jsx(I.Suspense,{fallback:s.jsx(nt,{}),children:s.jsx(Ki,{})})}),t[0]=e):e=t[0],e}export{Hl as default};
|
|
3
|
+
Email: ${i.email}`;navigator.clipboard.writeText(F),a(!0),ve.success("User info copied to clipboard"),setTimeout(()=>a(!1),2e3)},e[0]=i.email,e[1]=i.id,e[2]=i.name,e[3]=r):r=e[3];const c=r,d=i.name||i.email||"U";let m;e[4]!==d||e[5]!==n?(m=s.jsx(Ie,{url:n,fallback:d,shape:"circle",size:"2xs",className:"shrink-0 size-5"}),e[4]=d,e[5]=n,e[6]=m):m=e[6];const u=i.name||"User";let f;e[7]!==u?(f=s.jsx("div",{className:"flex-1 min-w-0 group-data-[collapsible=icon]:hidden",children:s.jsx("div",{className:"text-sm font-medium truncate text-sidebar-foreground leading-none",children:u})}),e[7]=u,e[8]=f):f=e[8];let p;e[9]!==m||e[10]!==f?(p=s.jsx(pt,{asChild:!0,children:s.jsxs("button",{className:"flex w-full h-8 items-center gap-2 rounded-md px-1 hover:bg-sidebar-accent transition-colors text-left min-w-0",children:[m,f]})}),e[9]=m,e[10]=f,e[11]=p):p=e[11];const h=i.name||i.email||"U";let y;e[12]!==h||e[13]!==n?(y=s.jsx(Ie,{url:n,fallback:h,shape:"circle",size:"sm",className:"shrink-0"}),e[12]=h,e[13]=n,e[14]=y):y=e[14];const j=i.name||"User";let _;e[15]!==j?(_=s.jsx("div",{className:"text-sm font-medium truncate",children:j}),e[15]=j,e[16]=_):_=e[16];let g;e[17]!==i.email?(g=s.jsx("div",{className:"text-xs text-muted-foreground truncate",children:i.email}),e[17]=i.email,e[18]=g):g=e[18];let x;e[19]!==_||e[20]!==g?(x=s.jsxs("div",{className:"flex-1 min-w-0",children:[_,g]}),e[19]=_,e[20]=g,e[21]=x):x=e[21];let v;e[22]!==o?(v=s.jsx("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity shrink-0",children:o?s.jsx(Pe,{size:14,className:"text-green-600"}):s.jsx(_s,{size:14,className:"text-muted-foreground"})}),e[22]=o,e[23]=v):v=e[23];let C;e[24]!==c||e[25]!==x||e[26]!==v||e[27]!==y?(C=s.jsxs(ae,{onClick:c,className:"gap-2.5 group",children:[y,x,v]}),e[24]=c,e[25]=x,e[26]=v,e[27]=y,e[28]=C):C=e[28];let b;e[29]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(Ue,{}),e[29]=b):b=e[29];let N;e[30]!==l?(N=()=>l("account.preferences"),e[30]=l,e[31]=N):N=e[31];let k,$;e[32]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx(He,{size:14,className:"shrink-0 text-muted-foreground"}),$=s.jsx("span",{children:"Settings"}),e[32]=k,e[33]=$):(k=e[32],$=e[33]);let z;e[34]!==N?(z=s.jsxs(ae,{className:"gap-2.5",onClick:N,children:[k,$]}),e[34]=N,e[35]=z):z=e[35];let M;e[36]===Symbol.for("react.memo_cache_sentinel")?(M=s.jsx(ae,{asChild:!0,children:s.jsxs("a",{href:"https://www.decocms.com/terms-of-use",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(ks,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Terms of Use"}),s.jsx($e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[36]=M):M=e[36];let R;e[37]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx(ae,{asChild:!0,children:s.jsxs("a",{href:"https://www.decocms.com/privacy-policy",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(ws,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Privacy Policy"}),s.jsx($e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[37]=R):R=e[37];let L;e[38]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx(ae,{asChild:!0,children:s.jsxs("a",{href:"https://github.com/decocms/mesh",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(zt,{className:"w-3.5 h-3.5 shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"decocms/mesh"}),s.jsx($e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[38]=L):L=e[38];let H;e[39]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(ae,{asChild:!0,children:s.jsxs("a",{href:"https://decocms.com/discord",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(et,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Community"}),s.jsx($e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[39]=H):H=e[39];let T,A;e[40]===Symbol.for("react.memo_cache_sentinel")?(T=s.jsx(ae,{asChild:!0,children:s.jsxs("a",{href:"https://decocms.com",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(Cs,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Homepage"}),s.jsx($e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),A=s.jsx(Ue,{}),e[40]=T,e[41]=A):(T=e[40],A=e[41]);let D;e[42]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsxs(ae,{className:"gap-2.5",onClick:vi,children:[s.jsx(bt,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Sign out"})]}),e[42]=D):D=e[42];let E;e[43]===Symbol.for("react.memo_cache_sentinel")?(E=s.jsx("div",{className:"px-2 py-1.5",children:s.jsxs("span",{className:"text-xs text-muted-foreground/60",children:["v","2.179.2"]})}),e[43]=E):E=e[43];let U;e[44]!==C||e[45]!==z?(U=s.jsxs(ft,{side:"top",align:"end",collisionPadding:8,className:"w-64 flex flex-col gap-0.5",onCloseAutoFocus:Ni,children:[C,b,z,M,R,L,H,T,A,D,E]}),e[44]=C,e[45]=z,e[46]=U):U=e[46];let B;return e[47]!==U||e[48]!==p?(B=s.jsxs(ut,{children:[p,U]}),e[47]=U,e[48]=p,e[49]=B):B=e[49],B}function vi(){return Ne.signOut()}function Ni(t){return t.preventDefault()}function St(){const t=w.c(7),{data:e}=Ne.useSession();if(!e?.user){let c;return t[0]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(Ie,{url:void 0,fallback:"U",shape:"circle",size:"sm",className:"cursor-pointer h-7 w-7",muted:!0}),t[0]=c):c=t[0],c}const i=e.user,n=i.name??void 0;let l;t[1]!==n||t[2]!==i?(l={...i,name:n},t[1]=n,t[2]=i,t[3]=l):l=t[3];const o=l,a=i.image;let r;return t[4]!==a||t[5]!==o?(r=s.jsx(ji,{user:o,userImage:a}),t[4]=a,t[5]=o,t[6]=r):r=t[6],r}function yi({invitation:t}){const[e,i]=I.useState(!1),[n,l]=I.useState(!1),o=Pt(),a=async()=>{i(!0);try{const c=await Ne.organization.acceptInvitation({invitationId:t.id});if(c.error)ve.error(c.error.message),i(!1);else{const d=await Ne.organization.setActive({organizationId:t.organizationId});ve.success("Invitation accepted!");const m=d?.data?.slug;window.location.href=m?`/${m}`:"/"}}catch{ve.error("Failed to accept invitation"),i(!1)}},r=async()=>{l(!0);try{const c=await Ne.organization.rejectInvitation({invitationId:t.id});c.error?(ve.error(c.error.message),l(!1)):(ve.success("Invitation declined"),o.invalidateQueries())}catch{ve.error("Failed to decline invitation"),l(!1)}};return s.jsxs("div",{className:"flex items-center gap-3 px-5 py-4 border-b border-border last:border-0 hover:bg-muted/25 transition-colors",children:[s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("p",{className:"text-xs text-muted-foreground",children:"You've been invited to join"}),s.jsx("p",{className:"text-sm font-medium truncate",children:t.organizationName??"Unknown organization"})]}),s.jsxs("div",{className:"flex items-center gap-1 shrink-0",children:[s.jsx(Ge,{size:"icon",variant:"ghost",className:"size-7 text-green-600 hover:text-green-700 hover:bg-green-50 dark:hover:bg-green-950",onClick:a,disabled:e||n,"aria-label":"Accept invitation",children:s.jsx(Pe,{size:14})}),s.jsx(Ge,{size:"icon",variant:"ghost",className:"size-7 text-muted-foreground hover:text-destructive hover:bg-destructive/10",onClick:r,disabled:e||n,"aria-label":"Decline invitation",children:s.jsx(Ps,{size:14})})]})]})}function Si(){const t=I.useContext(It),{data:e}=t.hooks.useListUserInvitations();return(e??[]).filter(n=>n.status==="pending"&&new Date(n.expiresAt)>new Date)}class _i extends I.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,i){}render(){return this.state.hasError?null:this.props.children}}function ki(t){return t<=1?"text-destructive":t<=5?"text-amber-500 dark:text-amber-400":"text-foreground/70"}function Ci(){const t=w.c(15),{open:e}=rt(),{org:i}=ze();let n;t[0]!==i.id?(n={connectionId:Kt,orgId:i.id},t[0]=i.id,t[1]=n):n=t[1];const l=Wt(n);let o;t[2]===Symbol.for("react.memo_cache_sentinel")?(o={providerId:"deco"},t[2]=o):o=t[2];let a;t[3]!==l?(a={client:l,toolName:"AI_PROVIDER_CREDITS",toolArguments:o,staleTime:6e4,select:wi},t[3]=l,t[4]=a):a=t[4];const{data:r,isPending:c,isError:d}=As(a),m=r?.balanceCents!=null?r.balanceCents/100:null;let u;t[5]!==e?(u=()=>e("org.billing"),t[5]=e,t[6]=u):u=t[6];let f;t[7]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx(gt,{size:13,className:"text-muted-foreground/60 shrink-0"}),s.jsx("span",{className:"text-xs text-muted-foreground",children:"Credits"})]}),t[7]=f):f=t[7];let p;t[8]!==m||t[9]!==d||t[10]!==c?(p=c||d||m==null?s.jsx("span",{className:"text-xs font-medium tabular-nums text-muted-foreground/40",children:"—"}):s.jsxs("span",{className:P("text-xs font-medium tabular-nums",ki(m)),children:["$",m.toFixed(2)]}),t[8]=m,t[9]=d,t[10]=c,t[11]=p):p=t[11];let h;return t[12]!==u||t[13]!==p?(h=s.jsxs("button",{type:"button",onClick:u,className:"group-data-[collapsible=icon]:hidden flex items-center justify-between w-full px-2 py-1.5 rounded-md hover:bg-sidebar-accent transition-colors",children:[f,p]}),t[12]=u,t[13]=p,t[14]=h):h=t[14],h}function wi(t){return t.structuredContent}function $i(){const t=w.c(1);if(!Zt().some(zi))return null;let n;return t[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(Ci,{}),t[0]=n):n=t[0],n}function zi(t){return t.providerId==="deco"}function Ii(){const t=w.c(13),e=Si();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(_i,{children:s.jsx(I.Suspense,{fallback:null,children:s.jsx($i,{})})}),t[0]=i):i=t[0];let n;t[1]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx("div",{className:"flex-1 min-w-0",children:s.jsx(St,{})}),t[1]=n):n=t[1];let l;t[2]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(zs,{asChild:!0,children:s.jsx(Ge,{variant:"ghost",size:"icon",className:"size-8 text-sidebar-foreground/50 hover:text-sidebar-foreground hover:bg-sidebar-accent","aria-label":"Open inbox",children:s.jsx(st,{size:16})})}),t[2]=l):l=t[2];let o;t[3]!==e.length?(o=e.length>0&&s.jsx("span",{className:"absolute top-1 right-1 size-2 rounded-full bg-red-500 ring-2 ring-sidebar pointer-events-none"}),t[3]=e.length,t[4]=o):o=t[4];let a;t[5]!==o?(a=s.jsxs("div",{className:"relative",children:[l,o]}),t[5]=o,t[6]=a):a=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($s,{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(st,{size:24,className:"text-muted-foreground/50"}),s.jsx("p",{className:"text-sm font-medium text-foreground",children:"No messages or invites pending"}),s.jsx("p",{className:"text-xs text-muted-foreground",children:"Messages, workspace and project invitations will appear here"})]}):s.jsx("div",{className:"overflow-y-auto flex-1",children:e.map(Pi)})]}),t[8]=e,t[9]=c):c=t[9];let d;return t[10]!==a||t[11]!==c?(d=s.jsxs(li,{className:"px-3.5 pb-3 group-data-[collapsible=icon]:px-2",children:[i,s.jsx(be,{children:s.jsx(xe,{children:s.jsxs("div",{className:"flex items-center w-full gap-1",children:[n,s.jsx("div",{className:"group-data-[collapsible=icon]:hidden",children:s.jsxs(Is,{children:[a,c]})})]})})})]}),t[10]=a,t[11]=c,t[12]=d):d=t[12],d}function Pi(t){return s.jsx(yi,{invitation:t},t.id)}function Ai(t){const e=w.c(11),{project:i}=t,n=i.ui?.themeColor??"#60a5fa";if(i.ui?.icon){let c;return e[0]!==i.ui.icon?(c=s.jsx("img",{src:i.ui.icon,alt:"",className:"size-4 rounded object-cover border border-border/50"}),e[0]=i.ui.icon,e[1]=c):c=e[1],c}let l;e[2]!==n?(l={backgroundColor:n},e[2]=n,e[3]=l):l=e[3];let o;e[4]!==i.name?(o=i.name.charAt(0).toUpperCase(),e[4]=i.name,e[5]=o):o=e[5];let a;e[6]!==o?(a=s.jsx("span",{className:"text-[10px] font-medium text-white",children:o}),e[6]=o,e[7]=a):a=e[7];let r;return e[8]!==l||e[9]!==a?(r=s.jsx("div",{className:"size-4 rounded flex items-center justify-center border border-border/50",style:l,children:a}),e[8]=l,e[9]=a,e[10]=r):r=e[10],r}function Ei(t){const e=w.c(14),{project:i}=t,n=Xe(),{org:l}=ze();let o;e[0]!==n||e[1]!==l.slug||e[2]!==i.slug?(o=()=>{n({to:"/$org/$project",params:{org:l.slug,project:i.slug}})},e[0]=n,e[1]=l.slug,e[2]=i.slug,e[3]=o):o=e[3];let a;e[4]!==i?(a=s.jsx(Ai,{project:i}),e[4]=i,e[5]=a):a=e[5];let r;e[6]!==i.name?(r=s.jsx("span",{className:"truncate flex-1 group-data-[collapsible=icon]:hidden",children:i.name}),e[6]=i.name,e[7]=r):r=e[7];let c;e[8]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(Ds,{size:12,className:"text-muted-foreground opacity-0 group-hover/item:opacity-100 transition-opacity group-data-[collapsible=icon]:hidden"}),e[8]=c):c=e[8];let d;return e[9]!==i.name||e[10]!==o||e[11]!==a||e[12]!==r?(d=s.jsx(xe,{children:s.jsxs(Oe,{onClick:o,tooltip:i.name,children:[a,r,c]})}),e[9]=i.name,e[10]=o,e[11]=a,e[12]=r,e[13]=d):d=e[13],d}function Oi(){const t=w.c(55),{org:e}=ze(),{data:i,isLoading:n}=dt(e.id),[l,o]=I.useState(!0),[a,r]=I.useState(!1);let c,d,m,u,f,p,h,y,j,_,g,x,v;if(t[0]!==n||t[1]!==l||t[2]!==i){v=Symbol.for("react.early_return_sentinel");e:{const L=i?.filter(Di)??[];if(n){let B;t[16]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx(xe,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(re,{className:"h-4 w-4 rounded"}),s.jsx(re,{className:"h-4 flex-1"})]})}),t[16]=B):B=t[16];let F;t[17]===Symbol.for("react.memo_cache_sentinel")?(F=s.jsx(Ae,{className:"py-0 px-0",children:s.jsx(Ee,{children:s.jsxs(be,{className:"gap-0.5",children:[B,s.jsx(xe,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(re,{className:"h-4 w-4 rounded"}),s.jsx(re,{className:"h-4 flex-1"})]})})]})})}),t[17]=F):F=t[17],v=F;break e}x="group/projects-section mt-2",f=Es,_=l,g=o,u=Ae,j="py-0 px-0",m=Ee,d=be,h="gap-0.5";let H;t[18]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Projects"}),t[18]=H):H=t[18];const T=!l&&"-rotate-90";let A;t[19]!==T?(A=P("text-muted-foreground shrink-0 transition-transform duration-200",T),t[19]=T,t[20]=A):A=t[20];let D;t[21]!==A?(D=s.jsx(Os,{asChild:!0,children:s.jsxs("button",{type:"button",className:"flex flex-1 items-center gap-1 cursor-pointer min-w-0",children:[H,s.jsx(mt,{size:12,className:A})]})}),t[21]=A,t[22]=D):D=t[22];let E;t[23]===Symbol.for("react.memo_cache_sentinel")?(E=()=>r(!0),t[23]=E):E=t[23];let U;t[24]===Symbol.for("react.memo_cache_sentinel")?(U=s.jsx("button",{type:"button",onClick:E,title:"Create new project",className:"opacity-0 group-hover/projects-section:opacity-100 transition-opacity text-muted-foreground hover:text-foreground flex items-center justify-center h-4 rounded shrink-0",children:s.jsx(Le,{size:16})}),t[24]=U):U=t[24],t[25]!==D?(y=s.jsx(xe,{className:"group-data-[collapsible=icon]:hidden",children:s.jsxs("div",{className:"flex h-6 w-full items-center gap-1 rounded-md pl-1.5 pr-0.5 hover:bg-sidebar-accent transition-colors",children:[D,U]})}),t[25]=D,t[26]=y):y=t[26],c=Ts,p=L.length===0?s.jsx(xe,{children:s.jsx("div",{className:"px-2 py-2 text-xs text-muted-foreground",children:"No projects yet"})}):L.map(Ti)}t[0]=n,t[1]=l,t[2]=i,t[3]=c,t[4]=d,t[5]=m,t[6]=u,t[7]=f,t[8]=p,t[9]=h,t[10]=y,t[11]=j,t[12]=_,t[13]=g,t[14]=x,t[15]=v}else c=t[3],d=t[4],m=t[5],u=t[6],f=t[7],p=t[8],h=t[9],y=t[10],j=t[11],_=t[12],g=t[13],x=t[14],v=t[15];if(v!==Symbol.for("react.early_return_sentinel"))return v;let C;t[27]!==c||t[28]!==p?(C=s.jsx(c,{children:p}),t[27]=c,t[28]=p,t[29]=C):C=t[29];let b;t[30]!==d||t[31]!==h||t[32]!==y||t[33]!==C?(b=s.jsxs(d,{className:h,children:[y,C]}),t[30]=d,t[31]=h,t[32]=y,t[33]=C,t[34]=b):b=t[34];let N;t[35]!==m||t[36]!==b?(N=s.jsx(m,{children:b}),t[35]=m,t[36]=b,t[37]=N):N=t[37];let k;t[38]!==u||t[39]!==N||t[40]!==j?(k=s.jsx(u,{className:j,children:N}),t[38]=u,t[39]=N,t[40]=j,t[41]=k):k=t[41];let $;t[42]!==f||t[43]!==k||t[44]!==_||t[45]!==g?($=s.jsx(f,{open:_,onOpenChange:g,children:k}),t[42]=f,t[43]=k,t[44]=_,t[45]=g,t[46]=$):$=t[46];let z;t[47]!==$||t[48]!==x?(z=s.jsx("div",{className:x,children:$}),t[47]=$,t[48]=x,t[49]=z):z=t[49];let M;t[50]!==a?(M=s.jsx(at,{open:a,onOpenChange:r}),t[50]=a,t[51]=M):M=t[51];let R;return t[52]!==z||t[53]!==M?(R=s.jsxs(s.Fragment,{children:[z,M]}),t[52]=z,t[53]=M,t[54]=R):R=t[54],R}function Ti(t){return s.jsx(Ei,{project:t},t.id)}function Di(t){return t.slug!==te}function Mi(){const t=w.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(I.Suspense,{fallback:s.jsx(Ae,{className:"py-0 px-0",children:s.jsx(Ee,{children:s.jsx(be,{className:"gap-0.5",children:s.jsx(xe,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(re,{className:"h-4 w-4 rounded"}),s.jsx(re,{className:"h-4 flex-1"})]})})})})}),children:s.jsx(Oi,{})}),t[0]=e):e=t[0],e}function Ri(t){const e=w.c(12),{onCreateProject:i}=t,n=Gs(),{locator:l}=ze();let o;e[0]!==l?(o=We.isOrgAdminProject(l),e[0]=l,e[1]=o):o=e[1];const a=o;let r;e[2]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(Qe.Skeleton,{}),e[2]=r):r=e[2];let c;e[3]!==i?(c=s.jsx(I.Suspense,{fallback:r,children:s.jsx(Qe,{onCreateProject:i})}),e[3]=i,e[4]=c):c=e[4];let d;e[5]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(Ii,{}),e[5]=d):d=e[5];let m;e[6]!==a?(m=a?s.jsx(Ye,{children:s.jsx(I.Suspense,{fallback:null,children:s.jsx(Mi,{})})}):null,e[6]=a,e[7]=m):m=e[7];let u;return e[8]!==n||e[9]!==c||e[10]!==m?(u=s.jsx(yt,{sections:n,header:c,footer:d,additionalContent:m}),e[8]=n,e[9]=c,e[10]=m,e[11]=u):u=e[11],u}function Li(){const t=w.c(5),i=Ze().location.href;let n;t[0]!==i?(n=i==="/login"||i.startsWith("/login?"),t[0]=i,t[1]=n):n=t[1];const l=n;let o;if(t[2]!==i||t[3]!==l){const a=l?{}:{next:i};o=s.jsx(Tt,{to:"/login",search:a,replace:!0}),t[2]=i,t[3]=l,t[4]=o}else o=t[4];return o}function Hi(t){const e=w.c(6),{children:i}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(At,{children:s.jsx(nt,{})}),e[0]=n):n=e[0];let l;e[1]!==i?(l=s.jsx(Et,{children:i}),e[1]=i,e[2]=l):l=e[2];let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(Ot,{children:s.jsx(Li,{})}),e[3]=o):o=e[3];let a;return e[4]!==l?(a=s.jsxs(s.Fragment,{children:[n,l,o]}),e[4]=l,e[5]=a):a=e[5],a}function Ui(t){const e=w.c(10),{children:i,className:n}=t,[,l]=I.useTransition();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=Fe.decoChatPanelWidth(),e[0]=o):o=e[0];const[a,r]=Je(o,30);let c;e[1]!==r?(c=f=>l(()=>r(f)),e[1]=r,e[2]=c):c=e[2];const d=c;let m;e[3]!==n?(m=P("min-w-0",n),e[3]=n,e[4]=m):m=e[4];let u;return e[5]!==a||e[6]!==i||e[7]!==d||e[8]!==m?(u=s.jsx(xt,{defaultSize:a,minSize:20,className:m,onResize:d,children:i}),e[5]=a,e[6]=i,e[7]=d,e[8]=m,e[9]=u):u=e[9],u}function Bi(t){const e=w.c(5),{children:i}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=Fe.sidebarOpen(),e[0]=n):n=e[0];const[l,o]=Je(n,!0);let a;return e[1]!==i||e[2]!==o||e[3]!==l?(a=s.jsx(Js,{open:l,onOpenChange:o,children:i}),e[1]=i,e[2]=o,e[3]=l,e[4]=a):a=e[4],a}function Fi(t){const e=w.c(23),{isHomeRoute:i,onCreateProject:n}=t,[l]=ot();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=Fe.decoChatPanelWidth(),e[0]=o):o=e[0];const[a]=Je(o,30),r=`${a}cqi`;let c;e[1]!==r?(c={"--sidebar-width":"13.5rem","--sidebar-width-mobile":"11rem","--chat-panel-w":r},e[1]=r,e[2]=c):c=e[2];const d=c;let m;e[3]!==n?(m=s.jsx(Ri,{onCreateProject:n}),e[3]=n,e[4]=m):m=e[4];let u;e[5]===Symbol.for("react.memo_cache_sentinel")?(u={background:"transparent",containerType:"inline-size"},e[5]=u):u=e[5];let f;e[6]===Symbol.for("react.memo_cache_sentinel")?(f={overflow:"visible"},e[6]=f):f=e[6];let p;e[7]===Symbol.for("react.memo_cache_sentinel")?(p={overflow:"visible"},e[7]=p):p=e[7];const h=l&&"rounded-tr-[0.75rem] border-r";let y;e[8]!==h?(y=P("flex flex-col flex-1 min-h-0 bg-card overflow-hidden","border-t border-l border-sidebar-border","rounded-tl-[0.75rem]","transition-[border-radius] duration-200 ease-[var(--ease-out-quart)]",h),e[8]=h,e[9]=y):y=e[9];let j;e[10]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx("div",{className:"flex-1 overflow-hidden",children:s.jsx(lt,{})}),e[10]=j):j=e[10];let _;e[11]!==y?(_=s.jsx(xt,{className:"min-w-0 flex flex-col",style:p,children:s.jsx("div",{className:y,children:j})}),e[11]=y,e[12]=_):_=e[12];let g;e[13]!==l||e[14]!==i?(g=!i&&s.jsxs(s.Fragment,{children:[s.jsx(Ms,{className:"bg-sidebar"}),s.jsx(Ui,{className:P("transition-[max-width] duration-200 ease-[var(--ease-out-quart)] overflow-hidden",l?"max-w-[var(--chat-panel-w)] bg-sidebar":"max-w-0"),children:s.jsx("div",{className:"h-full min-w-[var(--chat-panel-w)] pl-1.5 pr-1.5 pb-1.5",children:s.jsx("div",{className:"h-full bg-background rounded-[0.75rem] overflow-hidden border border-sidebar-border shadow-sm",children:s.jsx(Us,{})})})})]}),e[13]=l,e[14]=i,e[15]=g):g=e[15];let x;e[16]!==_||e[17]!==g?(x=s.jsx(ni,{className:"pt-1.5",style:u,children:s.jsxs(Rs,{direction:"horizontal",className:"h-full",style:f,children:[_,g]})}),e[16]=_,e[17]=g,e[18]=x):x=e[18];let v;return e[19]!==x||e[20]!==d||e[21]!==m?(v=s.jsxs(si,{className:"flex-1 bg-sidebar",style:d,children:[m,x]}),e[19]=x,e[20]=d,e[21]=m,e[22]=v):v=e[22],v}function Ki(){const{org:t,project:e}=it({strict:!1}),i=Ze(),[n,l]=I.useState(!1),[o,a]=I.useState(!1);I.useEffect(()=>{const u=f=>{Ut(f)&&f.code==="KeyK"&&(f.preventDefault(),a(!0))};return document.addEventListener("keydown",u),()=>document.removeEventListener("keydown",u)},[]);const r=i.location.pathname===`/${t}/${e}`||i.location.pathname===`/${t}/${e}/`,c=e??te,{data:d}=Dt({queryKey:Mt.activeOrganization(t),queryFn:async()=>{if(!t)return null;const{data:u}=await Ne.organization.setActive({organizationSlug:t});return u&&localStorage.setItem(Fe.lastOrgSlug(),t),{org:u,project:{slug:c,isOrgAdmin:c===te}}},gcTime:1/0,refetchOnWindowFocus:!1});if(!d)return s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsx("header",{className:"h-12 flex items-center justify-end px-4 border-b border-border",children:s.jsx("div",{className:"w-fit",children:s.jsx(St,{})})}),s.jsx(lt,{})]});if(!d.org)return window.location.pathname!=="/"&&(window.location.href="/"),null;const m={...d,project:{...d.project,slug:c,isOrgAdmin:c===te}};return s.jsxs(Rt,{...m,children:[s.jsx(Bi,{children:s.jsx("div",{className:"flex flex-col h-screen overflow-hidden",children:s.jsx(oe.Provider,{children:s.jsx(Fi,{isHomeRoute:r,onCreateProject:()=>l(!0)})})})}),s.jsx(at,{open:n,onOpenChange:l}),s.jsx(Bs,{open:o,onOpenChange:a})]})}function Hl(){const t=w.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Hi,{children:s.jsx(I.Suspense,{fallback:s.jsx(nt,{}),children:s.jsx(Ki,{})})}),t[0]=e):e=t[0],e}export{Hl as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as E,u as q,j as n,w as F,K as v,r as k,v as _,B as O}from"./index-
|
|
1
|
+
import{c as E,u as q,j as n,w as F,K as v,r as k,v as _,B as O}from"./index-DnJ6a24w.js";import{u as L}from"./useQuery-mzOsnjYJ.js";import{u as R}from"./useMutation-Betr8yis.js";import{S as V}from"./switch-bfk4EFAk.js";import{I as A}from"./input-BBKBJVKe.js";import{u as K,a as U}from"./constants-D5QZg84_.js";import{g as J}from"./types-BOmhR0hZ.js";import{u as w}from"./unwrap-tool-result-BYXdCQMg.js";function M(s){const e=E.c(33),{connection:t,pinnedViews:o,isSaving:u,onTogglePin:h,onLabelChange:f}=s;if(t.uiTools.length===0)return null;let j;e[0]!==t.id||e[1]!==o?(j=x=>o.some(c=>c.connectionId===t.id&&c.toolName===x),e[0]=t.id,e[1]=o,e[2]=j):j=e[2];const N=j;let g;e[3]!==t.icon||e[4]!==t.title?(g=t.icon?n.jsx("img",{src:t.icon,alt:"",className:"size-4 shrink-0 rounded"}):n.jsx("div",{className:"size-4 shrink-0 rounded bg-muted flex items-center justify-center",children:n.jsx("span",{className:"text-[8px] font-medium text-muted-foreground",children:t.title.charAt(0).toUpperCase()})}),e[3]=t.icon,e[4]=t.title,e[5]=g):g=e[5];let p;e[6]!==t.title?(p=n.jsx("h3",{className:"text-sm font-medium text-foreground",children:t.title}),e[6]=t.title,e[7]=p):p=e[7];let l;e[8]!==g||e[9]!==p?(l=n.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[g,p]}),e[8]=g,e[9]=p,e[10]=l):l=e[10];let d;if(e[11]!==t.icon||e[12]!==t.id||e[13]!==t.uiTools||e[14]!==N||e[15]!==u||e[16]!==f||e[17]!==h||e[18]!==o){let x;e[20]!==t.icon||e[21]!==t.id||e[22]!==N||e[23]!==u||e[24]!==f||e[25]!==h||e[26]!==o?(x=c=>{const P=N(c.name),I=o.find(S=>S.connectionId===t.id&&S.toolName===c.name);return n.jsxs("div",{className:"flex flex-col border-b border-border last:border-0",children:[n.jsxs("div",{className:"flex items-center justify-between gap-6 py-3 cursor-pointer",onClick:()=>h(t.id,c.name,t.icon),children:[n.jsxs("div",{className:"min-w-0 flex-1",children:[n.jsx("p",{className:"text-sm font-medium text-foreground",children:c.name}),c.description&&n.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:c.description})]}),n.jsx("div",{onClick:$,className:"shrink-0",children:n.jsx(V,{checked:P,onCheckedChange:()=>h(t.id,c.name,t.icon),disabled:u})})]}),P&&I&&n.jsxs("div",{className:"pb-3 pl-0 flex items-center gap-3",onClick:Q,children:[n.jsx("label",{className:"text-xs text-muted-foreground w-12 shrink-0",children:"Label"}),n.jsx(A,{value:I.label,onChange:S=>f(t.id,c.name,S.target.value),className:"h-8 text-sm w-56",disabled:u})]})]},c.name)},e[20]=t.icon,e[21]=t.id,e[22]=N,e[23]=u,e[24]=f,e[25]=h,e[26]=o,e[27]=x):x=e[27],d=t.uiTools.map(x),e[11]=t.icon,e[12]=t.id,e[13]=t.uiTools,e[14]=N,e[15]=u,e[16]=f,e[17]=h,e[18]=o,e[19]=d}else d=e[19];let m;e[28]!==d?(m=n.jsx("div",{className:"flex flex-col",children:d}),e[28]=d,e[29]=m):m=e[29];let C;return e[30]!==l||e[31]!==m?(C=n.jsxs("div",{children:[l,m]}),e[30]=l,e[31]=m,e[32]=C):C=e[32],C}function Q(s){return s.stopPropagation()}function $(s){return s.stopPropagation()}function z(){const{org:s,project:e}=q(),t=K({connectionId:U,orgId:s.id}),o=F(),u=e.id??"",{data:h}=L({queryKey:v.projectConnections(u),enabled:!!e.id,queryFn:async()=>{const i=await t.callTool({name:"PROJECT_CONNECTION_LIST",arguments:{projectId:u}});return w(i)}}),f=h?.connections??[],j=f.map(i=>i.id).sort(),{data:N}=L({queryKey:v.projectConnectionDetails(u,j),enabled:j.length>0,queryFn:async()=>await Promise.all(f.map(async a=>{try{const y=await t.callTool({name:"COLLECTION_CONNECTIONS_GET",arguments:{id:a.id}}),{item:T}=w(y),r=(T?.tools??[]).filter(b=>!!J(b._meta)).map(b=>({name:b.name,description:b.description}));return{id:a.id,title:a.title,icon:a.icon,uiTools:r}}catch{return{id:a.id,title:a.title,icon:a.icon,uiTools:[]}}}))}),g=N??[],p=e.ui?.pinnedViews??[],[l,d]=k.useState(p),[m,C]=k.useState(!1),x=JSON.stringify(l)!==JSON.stringify(p),c=(i,a,y)=>{const T=l.some(r=>r.connectionId===i&&r.toolName===a);d(T?r=>r.filter(b=>!(b.connectionId===i&&b.toolName===a)):r=>[...r,{connectionId:i,toolName:a,label:a,icon:y}])},P=(i,a,y)=>{d(T=>T.map(r=>r.connectionId===i&&r.toolName===a?{...r,label:y}:r))},I=R({mutationFn:async()=>{const i=await t.callTool({name:"PROJECT_PINNED_VIEWS_UPDATE",arguments:{projectId:e.id,pinnedViews:l}});w(i)},onSuccess:()=>{o.invalidateQueries({queryKey:v.project(s.id,e.slug)}),_.success("Sidebar updated")},onError:i=>{_.error("Failed to update sidebar: "+(i instanceof Error?i.message:"Unknown error"))},onSettled:()=>C(!1)}),S=()=>{C(!0),I.mutate()},D=()=>{d(p)};return f.length===0?n.jsx("p",{className:"text-sm text-muted-foreground py-4",children:"No connections associated with this project. Add connections in the Dependencies section first."}):n.jsxs("div",{className:"space-y-6",children:[g.map(i=>n.jsx(M,{connection:i,pinnedViews:l,isSaving:m,onTogglePin:c,onLabelChange:P},i.id)),n.jsxs("div",{className:"flex items-center gap-3 pt-4",children:[n.jsx(O,{variant:"outline",onClick:D,disabled:!x||m,children:"Cancel"}),n.jsx(O,{onClick:S,disabled:!x||m,children:m?"Saving...":"Save Changes"})]})]})}function B(){const s=E.c(3),{project:e}=q();let t;s[0]===Symbol.for("react.memo_cache_sentinel")?(t=n.jsxs("div",{children:[n.jsx("h2",{className:"text-base font-semibold text-foreground",children:"Sidebar"}),n.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Pin interactive tools from your dependencies to the project sidebar for quick access."})]}),s[0]=t):t=s[0];let o;return s[1]!==e.id?(o=n.jsxs("div",{className:"flex flex-col gap-6",children:[t,n.jsx(z,{},e.id)]}),s[1]=e.id,s[2]=o):o=s[2],o}function ne(){const s=E.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(B,{}),s[0]=e):e=s[0],e}export{ne as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as n,D as c,j as i}from"./index-
|
|
1
|
+
import{c as n,D as c,j as i}from"./index-DnJ6a24w.js";function m(o){const e=n.c(8);let s,t;e[0]!==o?({className:s,...t}=o,e[0]=o,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let l;e[3]!==s?(l=c("bg-accent animate-pulse rounded-md",s),e[3]=s,e[4]=l):l=e[4];let a;return e[5]!==t||e[6]!==l?(a=i.jsx("div",{"data-slot":"skeleton",className:l,...t}),e[5]=t,e[6]=l,e[7]=a):a=e[7],a}export{m as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as C,D as d,a0 as m,j as a}from"./index-
|
|
1
|
+
import{c as C,D as d,a0 as m,j as a}from"./index-DnJ6a24w.js";const u=m("animate-spin",{variants:{variant:{default:"fill-primary text-gray-200",destructive:"fill-destructive text-gray-200",secondary:"fill-secondary text-gray-200",special:"fill-special text-backround"},size:{default:"h-7 w-7",sm:"h-6 w-6",lg:"h-8 w-8",icon:"h-6 w-6",xs:"h-4 w-4"}},defaultVariants:{variant:"default",size:"default"}});function h(f){const e=C.c(10),{variant:c,size:o}=f;let t;e[0]!==o||e[1]!==c?(t=d(u({variant:c,size:o})),e[0]=o,e[1]=c,e[2]=t):t=e[2];let l,i;e[3]===Symbol.for("react.memo_cache_sentinel")?(l=a.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),i=a.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"}),e[3]=l,e[4]=i):(l=e[3],i=e[4]);let s;e[5]!==t?(s=a.jsxs("svg",{"aria-hidden":"true",className:t,viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l,i]}),e[5]=t,e[6]=s):s=e[6];let r;e[7]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsx("span",{className:"sr-only",children:"Loading..."}),e[7]=r):r=e[7];let n;return e[8]!==s?(n=a.jsxs("div",{role:"status",children:[s,r]}),e[8]=s,e[9]=n):n=e[9],n}export{h as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as h,g as S,j as o,A as x,S as g,k as j,m as b,d,f as y,O as N,N as p}from"./index-
|
|
1
|
+
import{c as h,g as S,j as o,A as x,S as g,k as j,m as b,d,f as y,O as N,N as p}from"./index-DnJ6a24w.js";function R(e){const t=h.c(5),{appName:l}=e;let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s={strict:!1},t[0]=s):s=t[0];const n=d(s);let a;if(t[1]!==n){const r=new URLSearchParams;for(const[_,u]of Object.entries(n))u!=null&&r.set(_,String(u));a=r.toString(),t[1]=n,t[2]=a}else a=t[2];const f=a,c=`/store/${encodeURIComponent(l)}${f?`?${f}`:""}`;let i;return t[3]!==c?(i=o.jsx(p,{to:"/login",search:{next:c},replace:!0}),t[3]=c,t[4]=i):i=t[4],i}function $(){const e=h.c(10);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const{appName:l}=S(t);let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s={strict:!1},e[1]=s):s=e[1];const n=d(s),{data:a,isPending:f}=y.useListOrganizations();if(f){let r;return e[2]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx(g,{}),e[2]=r):r=e[2],r}const m=a?.[0];if(!m){let r;return e[3]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx(p,{to:"/",replace:!0}),e[3]=r):r=e[3],r}let c;e[4]!==l||e[5]!==m.slug?(c={org:m.slug,project:N,appName:l},e[4]=l,e[5]=m.slug,e[6]=c):c=e[6];let i;return e[7]!==n||e[8]!==c?(i=o.jsx(p,{to:"/$org/$project/store/$appName",params:c,search:n,replace:!0}),e[7]=n,e[8]=c,e[9]=i):i=e[9],i}function v(){const e=h.c(5);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const{appName:l}=S(t);let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsx(x,{children:o.jsx(g,{})}),e[1]=s):s=e[1];let n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=o.jsx(j,{children:o.jsx($,{})}),e[2]=n):n=e[2];let a;return e[3]!==l?(a=o.jsxs(o.Fragment,{children:[s,n,o.jsx(b,{children:o.jsx(R,{appName:l})})]}),e[3]=l,e[4]=a):a=e[4],a}export{v as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as c,j as i,a4 as C,a5 as y,a2 as T,a7 as I,ab as M,ac as H,aa as z,c as A,D as g}from"./index-
|
|
1
|
+
import{r as c,j as i,a4 as C,a5 as y,a2 as T,a7 as I,ab as M,ac as H,aa as z,c as A,D as g}from"./index-DnJ6a24w.js";var m="Switch",[U]=z(m),[q,D]=U(m),E=c.forwardRef((r,e)=>{const{__scopeSwitch:t,name:s,checked:a,defaultChecked:n,required:o,disabled:d,value:u="on",onCheckedChange:k,form:l,...w}=r,[p,h]=c.useState(null),v=y(e,b=>h(b)),x=c.useRef(!1),S=p?l||!!p.closest("form"):!0,[f,N]=T({prop:a,defaultProp:n??!1,onChange:k,caller:m});return i.jsxs(q,{scope:t,checked:f,disabled:d,children:[i.jsx(C.button,{type:"button",role:"switch","aria-checked":f,"aria-required":o,"data-state":j(f),"data-disabled":d?"":void 0,disabled:d,value:u,...w,ref:v,onClick:I(r.onClick,b=>{N(B=>!B),S&&(x.current=b.isPropagationStopped(),x.current||b.stopPropagation())})}),S&&i.jsx(_,{control:p,bubbles:!x.current,name:s,value:u,checked:f,required:o,disabled:d,form:l,style:{transform:"translateX(-100%)"}})]})});E.displayName=m;var P="SwitchThumb",R=c.forwardRef((r,e)=>{const{__scopeSwitch:t,...s}=r,a=D(P,t);return i.jsx(C.span,{"data-state":j(a.checked),"data-disabled":a.disabled?"":void 0,...s,ref:e})});R.displayName=P;var L="SwitchBubbleInput",_=c.forwardRef(({__scopeSwitch:r,control:e,checked:t,bubbles:s=!0,...a},n)=>{const o=c.useRef(null),d=y(o,n),u=M(t),k=H(e);return c.useEffect(()=>{const l=o.current;if(!l)return;const w=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(w,"checked").set;if(u!==t&&h){const v=new Event("click",{bubbles:s});h.call(l,t),l.dispatchEvent(v)}},[u,t,s]),i.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:t,...a,tabIndex:-1,ref:d,style:{...a.style,...k,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});_.displayName=L;function j(r){return r?"checked":"unchecked"}var O=E,$=R;function W(r){const e=A.c(9);let t,s;e[0]!==r?({className:t,...s}=r,e[0]=r,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=g("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",t),e[3]=t,e[4]=a):a=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx($,{"data-slot":"switch-thumb",className:g("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")}),e[5]=n):n=e[5];let o;return e[6]!==s||e[7]!==a?(o=i.jsx(O,{"data-slot":"switch",className:a,...s,children:n}),e[6]=s,e[7]=a,e[8]=o):o=e[8],o}export{W as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as r,D as i,j as c}from"./index-
|
|
1
|
+
import{c as r,D as i,j as c}from"./index-DnJ6a24w.js";function d(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("w-full caption-bottom text-sm min-w-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("div",{"data-slot":"table-container",className:"w-full min-w-0 bg-background",children:c.jsx("table",{"data-slot":"table",className:s,...l})}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function b(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr]:border-b sticky top-0 z-10 bg-background",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("thead",{"data-slot":"table-header",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function f(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr:last-child]:border-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("tbody",{"data-slot":"table-body",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function p(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("data-[state=selected]:bg-muted border-b transition-colors",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("tr",{"data-slot":"table-row",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function m(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("th",{"data-slot":"table-head",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function u(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("td",{"data-slot":"table-cell",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}export{d as T,b as a,p as b,m as c,f as d,u as e};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as p,j as d,a6 as k,a4 as v,a7 as T,a8 as y,aa as M,a1 as P,a2 as S,af as F,a3 as V,a9 as D,c as x,D as g}from"./index-
|
|
1
|
+
import{r as p,j as d,a6 as k,a4 as v,a7 as T,a8 as y,aa as M,a1 as P,a2 as S,af as F,a3 as V,a9 as D,c as x,D as g}from"./index-DnJ6a24w.js";var m="Tabs",[G]=M(m,[y]),w=y(),[L,h]=G(m),C=p.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,onValueChange:r,defaultValue:s,orientation:o="horizontal",dir:i,activationMode:l="automatic",...f}=n,u=P(i),[c,b]=S({prop:t,onChange:r,defaultProp:s??"",caller:m});return d.jsx(L,{scope:a,baseId:F(),value:c,onValueChange:b,orientation:o,dir:u,activationMode:l,children:d.jsx(v.div,{dir:u,"data-orientation":o,...f,ref:e})})});C.displayName=m;var N="TabsList",j=p.forwardRef((n,e)=>{const{__scopeTabs:a,loop:t=!0,...r}=n,s=h(N,a),o=w(a);return d.jsx(V,{asChild:!0,...o,orientation:s.orientation,dir:s.dir,loop:t,children:d.jsx(v.div,{role:"tablist","aria-orientation":s.orientation,...r,ref:e})})});j.displayName=N;var I="TabsTrigger",_=p.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,disabled:r=!1,...s}=n,o=h(I,a),i=w(a),l=E(o.baseId,t),f=$(o.baseId,t),u=t===o.value;return d.jsx(k,{asChild:!0,...i,focusable:!r,active:u,children:d.jsx(v.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":f,"data-state":u?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:l,...s,ref:e,onMouseDown:T(n.onMouseDown,c=>{!r&&c.button===0&&c.ctrlKey===!1?o.onValueChange(t):c.preventDefault()}),onKeyDown:T(n.onKeyDown,c=>{[" ","Enter"].includes(c.key)&&o.onValueChange(t)}),onFocus:T(n.onFocus,()=>{const c=o.activationMode!=="manual";!u&&!r&&c&&o.onValueChange(t)})})})});_.displayName=I;var R="TabsContent",A=p.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,forceMount:r,children:s,...o}=n,i=h(R,a),l=E(i.baseId,t),f=$(i.baseId,t),u=t===i.value,c=p.useRef(u);return p.useEffect(()=>{const b=requestAnimationFrame(()=>c.current=!1);return()=>cancelAnimationFrame(b)},[]),d.jsx(D,{present:r||u,children:({present:b})=>d.jsx(v.div,{"data-state":u?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":l,hidden:!b,id:f,tabIndex:0,...o,ref:e,style:{...n.style,animationDuration:c.current?"0s":void 0},children:b&&s})})});A.displayName=R;function E(n,e){return`${n}-trigger-${e}`}function $(n,e){return`${n}-content-${e}`}var z=C,K=j,B=_,q=A;function O(n){const e=x.c(10);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r===void 0?"pill":r;let o;e[4]!==a?(o=g("flex flex-col gap-2",a),e[4]=a,e[5]=o):o=e[5];let i;return e[6]!==t||e[7]!==o||e[8]!==s?(i=d.jsx(z,{"data-slot":"tabs","data-variant":s,className:o,...t}),e[6]=t,e[7]=o,e[8]=s,e[9]=i):i=e[9],i}function J(n){const e=x.c(11);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r||"pill",o=s==="underline"?"flex h-[52px] items-center border-b border-border":s==="canvas"?"flex h-10 items-center bg-background relative":"bg-muted text-muted-foreground inline-flex h-10 w-fit items-center justify-center rounded-xl p-[3px]";let i;e[4]!==a||e[5]!==o?(i=g(o,a),e[4]=a,e[5]=o,e[6]=i):i=e[6];let l;return e[7]!==s||e[8]!==t||e[9]!==i?(l=d.jsx(K,{"data-slot":"tabs-list","data-variant":s,className:i,...t}),e[7]=s,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function Q(n){const e=x.c(11);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r||"pill",o=s==="underline"?"cursor-pointer flex items-center h-full px-3 relative text-sm whitespace-nowrap border-b-2 mb-[-1px] transition-all text-muted-foreground border-transparent hover:text-foreground data-[state=active]:text-foreground data-[state=active]:border-primary disabled:pointer-events-none disabled:opacity-50":s==="canvas"?"cursor-pointer flex items-center h-full px-3 gap-2.5 text-sm whitespace-nowrap transition-all border-r border-b border-border [&>*]:opacity-50 data-[state=active]:[&>*]:opacity-100 data-[state=active]:border-b-0 last:border-r-0 disabled:pointer-events-none max-w-2xs":"data-[state=active]:bg-background dark:data-[state=active]:text-foreground cursor-pointer focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-lg border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4";let i;e[4]!==a||e[5]!==o?(i=g(o,a),e[4]=a,e[5]=o,e[6]=i):i=e[6];let l;return e[7]!==s||e[8]!==t||e[9]!==i?(l=d.jsx(B,{"data-slot":"tabs-trigger","data-variant":s,className:i,...t}),e[7]=s,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function U(n){const e=x.c(8);let a,t;e[0]!==n?({className:a,...t}=n,e[0]=n,e[1]=a,e[2]=t):(a=e[1],t=e[2]);let r;e[3]!==a?(r=g("flex-1 outline-none h-full",a),e[3]=a,e[4]=r):r=e[4];let s;return e[5]!==t||e[6]!==r?(s=d.jsx(q,{"data-slot":"tabs-content",className:r,...t}),e[5]=t,e[6]=r,e[7]=s):s=e[7],s}export{Q as T,J as a,U as b,O as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as P,c as W,g as S0,bR as wr,w as ln,u as ot,K as ht,v as gt,f as Wc,z as oa,j as f,E as Or,o as un,q as y0,t as _0,B as Ce,n as Tr,D as ie,ay as iy,ad as A0,ar as x0,cI as sy,bh as v0,cJ as oy,cK as ft,cL as la,cM as ly,cN as ua,cO as uy,cP as cy,cQ as dy,cR as py,x as fy,cS as my,cT as gy,cU as hy,cV as by,e as Ey,O as Ty,bO as kt,cF as Sr,ae as Sy}from"./index-
|
|
1
|
+
import{r as P,c as W,g as S0,bR as wr,w as ln,u as ot,K as ht,v as gt,f as Wc,z as oa,j as f,E as Or,o as un,q as y0,t as _0,B as Ce,n as Tr,D as ie,ay as iy,ad as A0,ar as x0,cI as sy,bh as v0,cJ as oy,cK as ft,cL as la,cM as ly,cN as ua,cO as uy,cP as cy,cQ as dy,cR as py,x as fy,cS as my,cT as gy,cU as hy,cV as by,e as Ey,O as Ty,bO as kt,cF as Sr,ae as Sy}from"./index-DnJ6a24w.js";import{A as yy,d as Yc,e as _y,f as ve,l as Ay,g as xy,b as N0,h as nn,i as vy,u as Gn,a as Vn}from"./context-CGMT963w.js";import{b as Lr,P as Dr,a as Mr}from"./popover-vDURg2rv.js";import{S as xe}from"./skeleton-NLo71_Sb.js";import{S as Pr}from"./spinner-EdHFCjIL.js";import{T as at,a as it,b as st,c as I0}from"./tooltip-Csc3oeTz.js";import{u as qt,a as Kc,i as yr,d as Ny}from"./constants-D5QZg84_.js";import{u as Iy,g as R0,l as qd}from"./use-mcp-prompts-D4XXlnov.js";import{c as C0,b as Ry,e as Cy,a as k0,D as w0,f as ky}from"./dialog-B8WS5FOh.js";import{a as Ec,F as Fr,b as Br,c as wy,d as Ur,f as Hr}from"./form-tOTNzCZe.js";import{I as O0}from"./input-BBKBJVKe.js";import{N as L0,R as D0,d as M0,f as P0,P as Tc,g as Oy,h as Ly,S as Dy,u as F0,j as My,i as B0,E as U0,e as Py}from"./index-BLtI6TU9.js";import{s as Fy,c as By,a as Uy,e as Hy}from"./usage-BW6ztpN6.js";import{i as jy}from"./ArrowUp-Wy3Qa9X3.js";import{t as Sc}from"./ChevronDown-D0b1rvAp.js";import{i as H0}from"./Edit01-BeW3IgwV.js";import{i as qy}from"./Lock01-Cbqd9PVH.js";import{t as j0}from"./Users03-DEpvReeu.js";import{a as $y,t as q0,i as $0,u as z0}from"./use-copy-CR_0d0zs.js";import{i as Xc}from"./AlertCircle-QngH9BVd.js";import{i as zy}from"./X-BT_y3J3a.js";import{c as G0,S as V0,d as W0,a as Y0,b as K0}from"./select-Bbaj2HCW.js";import{u as X0,i as Gy,P as Vy,a as Wy}from"./org-ai-providers-4gYTufEL.js";import{i as Z0}from"./ArrowLeft-DX2ldnBo.js";import{c as Yy,b as Ky}from"./tabs-aIY_aIUV.js";import{C as Xy}from"./checkbox-DygphnIU.js";import{i as Zy}from"./AlignLeft-BUW8XsMa.js";import{a as Qy}from"./Image01-zSA25K9S.js";import{i as Jy}from"./Key01-V3zgT2bk.js";import{s as e_}from"./RefreshCcw01-oV1XFIRn.js";import{i as Zc}from"./SearchMd-C8ADHGFY.js";import{t as t_}from"./Settings01-B76KnDHb.js";import{a as n_}from"./Tool01-DlbILfZg.js";import{b as Qc,u as Q0,a as J0,g as Jc}from"./ai-providers-logos-DGTpC_MW.js";import{a as r_,V as e1}from"./select-virtual-mcp-CZJoA7HG.js";import{l as $d,r as a_}from"./use-mcp-resources-BueR0w1E.js";import{i as Wn}from"./Check-CLxUgI8Z.js";import{i as i_}from"./ChevronRight-BEUO8jhU.js";import{a as jr}from"./Copy01-Ds0OKZs5.js";import{a as s_,b as o_,C as l_}from"./collapsible-BJo6q_NJ.js";import{m as u_}from"./marked.esm-BaswSlok.js";import{c as c_}from"./content-blocks-o63cs2vh.js";import{M as d_}from"./mcp-app-renderer-C3qFwvPf.js";import{g as t1}from"./types-BOmhR0hZ.js";import{s as p_}from"./Eye-Cqad01Et.js";import{s as f_}from"./Globe02-DlxZmkSI.js";import{s as n1}from"./LayersTwo01-D3otbQFN.js";import{s as m_}from"./XClose-C-H07PEn.js";import{u as g_,a as h_}from"./index-B09Yemt1.js";import{I as b_}from"./integration-icon-C9GR_8Ea.js";import{s as zd}from"./Clock-Aquumu5W.js";import{s as E_}from"./Trash01-CYMRq_nY.js";import{b as T_}from"./use-virtual-mcp-DGT5zflo.js";import{b as ed,e as S_}from"./use-collections-Le9CzDbY.js";import{u as y_}from"./useSuspenseInfiniteQuery-DFs2FFlW.js";import{i as __}from"./CheckCircle-DDKCxiAn.js";import{i as A_}from"./Loading01-DQphO9Su.js";const r1=({size:t=24,color:e="currentColor",...n})=>P.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},P.createElement("path",{d:"M22 12h-4l-3 9L9 3l-3 9H2"}));r1.displayName="Activity";const a1=({size:t=24,color:e="currentColor",...n})=>P.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},P.createElement("path",{d:"M17.115 15.358c-.27.306-.554.608-.851.905-4.296 4.296-9.678 5.88-12.021 3.536-1.607-1.606-1.368-4.641.325-7.775M6.89 8.725c.281-.32.578-.636.888-.947C12.074 3.482 17.456 1.9 19.8 4.243c1.608 1.607 1.367 4.645-.33 7.781m-3.206-4.246c4.296 4.296 5.88 9.678 3.536 12.021-2.343 2.343-7.725.76-12.02-3.535C3.483 11.968 1.9 6.586 4.244 4.243c2.343-2.343 7.725-.76 12.02 3.535ZM13 12a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z"}));a1.displayName="Atom02";const i1=({size:t=24,color:e="currentColor",...n})=>P.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},P.createElement("path",{d:"m21.152 10.9-9.015 9.015a5.25 5.25 0 0 1-7.425-7.425l9.016-9.015a3.5 3.5 0 1 1 4.95 4.95l-8.662 8.662a1.75 1.75 0 1 1-2.475-2.475l7.601-7.602"}));i1.displayName="Attachment01";const s1=({size:t=24,color:e="currentColor",...n})=>P.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},P.createElement("path",{d:"m7 15 5 5 5-5M7 9l5-5 5 5"}));s1.displayName="ChevronSelectorVertical";const td=({size:t=24,color:e="currentColor",...n})=>P.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},P.createElement("path",{d:"m18 10-4-4M2.5 21.5l3.384-.376c.414-.046.62-.069.814-.131a2 2 0 0 0 .485-.234c.17-.111.317-.259.61-.553L21 7a2.828 2.828 0 1 0-4-4L3.794 16.206c-.294.294-.442.442-.553.611a2 2 0 0 0-.234.485c-.062.193-.085.4-.131.814L2.5 21.5Z"}));td.displayName="Edit02";const o1=({size:t=24,color:e="currentColor",...n})=>P.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},P.createElement("path",{d:"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"}));o1.displayName="Hourglass03";const l1=({size:t=24,color:e="currentColor",...n})=>P.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},P.createElement("path",{d:"M15 16.5V19c0 .932 0 1.398-.152 1.765a2 2 0 0 1-1.083 1.083C13.398 22 12.932 22 12 22c-.932 0-1.398 0-1.765-.152a2 2 0 0 1-1.083-1.083C9 20.398 9 19.932 9 19v-2.5m6 0c2.649-1.157 4.5-3.925 4.5-7a7.5 7.5 0 0 0-15 0c0 3.075 1.851 5.843 4.5 7m6 0H9"}));l1.displayName="Lightbulb01";const u1=({size:t=24,color:e="currentColor",...n})=>P.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},P.createElement("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z"}));u1.displayName="Placeholder";const c1=({size:t=24,color:e="currentColor",...n})=>P.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},P.createElement("path",{d:"m9 11.5 2 2L15.5 9m4.5 3c0 4.908-5.354 8.478-7.302 9.615-.221.129-.332.194-.488.227a1.137 1.137 0 0 1-.42 0c-.156-.034-.267-.098-.488-.227C9.354 20.478 4 16.908 4 12V7.217c0-.799 0-1.199.13-1.542a2 2 0 0 1 .548-.79c.276-.243.65-.383 1.398-.664l5.362-2.01c.208-.078.312-.117.419-.133a1 1 0 0 1 .286 0c.107.016.21.055.419.133l5.362 2.01c.748.28 1.123.421 1.398.664a2 2 0 0 1 .547.79c.131.343.131.743.131 1.542V12Z"}));c1.displayName="ShieldTick";const qr=({size:t=24,color:e="currentColor",...n})=>P.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},P.createElement("path",{d:"m6.5 13 .784 1.569c.266.53.399.796.576 1.026a3 3 0 0 0 .545.545c.23.177.495.31 1.026.575L11 17.5l-1.569.785c-.53.265-.796.398-1.026.575a3 3 0 0 0-.545.545c-.177.23-.31.495-.576 1.026L6.5 22l-.784-1.569c-.266-.53-.399-.796-.576-1.026a3 3 0 0 0-.545-.545c-.23-.177-.495-.31-1.026-.575L2 17.5l1.569-.785c.53-.265.796-.398 1.026-.575a3 3 0 0 0 .545-.545c.177-.23.31-.495.576-1.026L6.5 13ZM15 2l1.179 3.064c.282.734.423 1.1.642 1.409a3 3 0 0 0 .706.706c.309.22.675.36 1.409.642L22 9l-3.064 1.179c-.734.282-1.1.423-1.409.642a3 3 0 0 0-.706.706c-.22.309-.36.675-.642 1.409L15 16l-1.179-3.064c-.282-.734-.423-1.1-.642-1.409a3 3 0 0 0-.706-.706c-.309-.22-.675-.36-1.409-.642L8 9l3.064-1.179c.734-.282 1.1-.423 1.409-.642a3 3 0 0 0 .706-.706c.22-.309.36-.675.642-1.409L15 2Z"}));qr.displayName="Stars01";const d1=({size:t=24,color:e="currentColor",...n})=>P.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},P.createElement("path",{d:"M16 8V5l3-3 1 2 2 1-3 3h-3Zm0 0-4 4m10 0c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2m5 10a5 5 0 1 1-5-5"}));d1.displayName="Target04";function x_(t){const e=W.c(10);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={strict:!1},e[0]=n):n=e[0];const r=S0(n);let a;if(e[1]!==r.collectionName||e[2]!==r.connectionId||e[3]!==r.itemId||e[4]!==t){a=[],t&&a.push(`### Selected Agent
|
|
2
2
|
- ID: ${t}`);let i;e[6]!==r.collectionName||e[7]!==r.connectionId||e[8]!==r.itemId?(i=[],r.connectionId&&i.push(`- Connection ID: ${r.connectionId}`),r.collectionName&&i.push(`- Collection: ${r.collectionName}`),r.itemId&&i.push(`- Item ID: ${r.itemId}`),e[6]=r.collectionName,e[7]=r.connectionId,e[8]=r.itemId,e[9]=i):i=e[9],i.length>0&&a.push(`### Current Resource
|
|
3
3
|
The user is viewing the following resource:
|
|
4
4
|
${i.join(`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as n,j as r,E as d,r as f,u as x,e as j}from"./index-DnJ6a24w.js";import{T as h}from"./tasks-panel-CEAgXi7r.js";import{P as p}from"./index-B09Yemt1.js";import{B as g,a as b,b as T,c as k}from"./breadcrumb-BWfepeob.js";import{i as B}from"./Loading01-DQphO9Su.js";import{u as S}from"./context-CGMT963w.js";import"./task-status-DCsPkppQ.js";import"./popover-vDURg2rv.js";import"./skeleton-NLo71_Sb.js";import"./spinner-EdHFCjIL.js";import"./tooltip-Csc3oeTz.js";import"./index-hCeFdkUk.js";import"./constants-D5QZg84_.js";import"./use-mcp-prompts-D4XXlnov.js";import"./useQuery-mzOsnjYJ.js";import"./dialog-B8WS5FOh.js";import"./X-BT_y3J3a.js";import"./form-tOTNzCZe.js";import"./label-DJvdRQ2A.js";import"./input-BBKBJVKe.js";import"./index-BLtI6TU9.js";import"./usage-BW6ztpN6.js";import"./ArrowUp-Wy3Qa9X3.js";import"./ChevronDown-D0b1rvAp.js";import"./Edit01-BeW3IgwV.js";import"./Lock01-Cbqd9PVH.js";import"./Users03-DEpvReeu.js";import"./use-copy-CR_0d0zs.js";import"./AlertCircle-QngH9BVd.js";import"./select-Bbaj2HCW.js";import"./ChevronUp-BWhuIqS7.js";import"./Check-CLxUgI8Z.js";import"./org-ai-providers-4gYTufEL.js";import"./useMutation-Betr8yis.js";import"./EyeOff-rTYDCZUH.js";import"./Eye-Cqad01Et.js";import"./Key01-V3zgT2bk.js";import"./Trash01-CYMRq_nY.js";import"./card-gfMzoGpr.js";import"./toggle-group-Dak-s1p3.js";import"./avatar-BoRF-Me1.js";import"./ai-providers-logos-DGTpC_MW.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./ArrowLeft-DX2ldnBo.js";import"./tabs-aIY_aIUV.js";import"./checkbox-DygphnIU.js";import"./AlignLeft-BUW8XsMa.js";import"./Image01-zSA25K9S.js";import"./RefreshCcw01-oV1XFIRn.js";import"./SearchMd-C8ADHGFY.js";import"./Settings01-B76KnDHb.js";import"./Tool01-DlbILfZg.js";import"./select-virtual-mcp-CZJoA7HG.js";import"./integration-icon-C9GR_8Ea.js";import"./Container-b65PFshp.js";import"./use-virtual-mcp-DGT5zflo.js";import"./use-collections-Le9CzDbY.js";import"./use-create-virtual-mcp-BOxl7MdZ.js";import"./use-mcp-resources-BueR0w1E.js";import"./ChevronRight-BEUO8jhU.js";import"./Copy01-Ds0OKZs5.js";import"./collapsible-BJo6q_NJ.js";import"./index-CMImT9Gt.js";import"./marked.esm-BaswSlok.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-C3qFwvPf.js";import"./types-BOmhR0hZ.js";import"./Globe02-DlxZmkSI.js";import"./LayersTwo01-D3otbQFN.js";import"./XClose-C-H07PEn.js";import"./Clock-Aquumu5W.js";import"./useSuspenseInfiniteQuery-DFs2FFlW.js";import"./infiniteQueryObserver-XS4LWR6q.js";import"./CheckCircle-DDKCxiAn.js";import"./collection-search-Dzoe9W56.js";import"./user-ChA79mrb.js";import"./format-time-CMKyl-GC.js";import"./Plus-CURSuoDd.js";import"./empty-state-BjCXvoyS.js";import"./dropdown-menu-DE2pKopg.js";import"./decopilot-events-Brt4gAR6.js";import"./index-Bwlq4qOs.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 tr(){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{tr as default};
|