decocms 2.175.9 → 2.175.10
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/README.md +3 -3
- package/dist/client/assets/{AlertCircle-C1aHEN6f.js → AlertCircle-BckG1FSX.js} +1 -1
- package/dist/client/assets/{AlignLeft-KEOqBH6V.js → AlignLeft-iqIQg7IB.js} +1 -1
- package/dist/client/assets/{ArrowDown-C0InARXN.js → ArrowDown-DsspCEMS.js} +1 -1
- package/dist/client/assets/{ArrowLeft-CMmSGoxl.js → ArrowLeft-G0eOcN7r.js} +1 -1
- package/dist/client/assets/{ArrowUp-C0J0tyPV.js → ArrowUp-CImOjzDT.js} +1 -1
- package/dist/client/assets/{Building02-D7Hfwrk4.js → Building02-CKC-UL-n.js} +1 -1
- package/dist/client/assets/{Check-DnuqdVIb.js → Check-m6yV51Zf.js} +1 -1
- package/dist/client/assets/{CheckCircle-D6b9AmJJ.js → CheckCircle-DwodzSnK.js} +1 -1
- package/dist/client/assets/{CheckVerified02-C3tC8IiA.js → CheckVerified02-C64i5Gmv.js} +1 -1
- package/dist/client/assets/{ChevronDown-BGYYwpml.js → ChevronDown-CntwznNt.js} +1 -1
- package/dist/client/assets/{ChevronLeft-Le_LyEwM.js → ChevronLeft-D8HamAz7.js} +1 -1
- package/dist/client/assets/{ChevronRight-DEonWml9.js → ChevronRight-AwvLN9Xm.js} +1 -1
- package/dist/client/assets/{ChevronUp-D3BUkjtX.js → ChevronUp-DriOfdDY.js} +1 -1
- package/dist/client/assets/{Clock-XRULycfK.js → Clock-BY8qA-20.js} +1 -1
- package/dist/client/assets/{Code01-C9q2vUXt.js → Code01-E3w0zB0q.js} +1 -1
- package/dist/client/assets/{Container-BTi1js90.js → Container-CKDtvb7R.js} +1 -1
- package/dist/client/assets/{Copy01-DG9TIebr.js → Copy01-BIGRaKnx.js} +1 -1
- package/dist/client/assets/{Dataflow03-WZpk1y8t.js → Dataflow03-DAFjfF62.js} +1 -1
- package/dist/client/assets/{DotsHorizontal-BRV7NN7Z.js → DotsHorizontal-BzKhRdYN.js} +1 -1
- package/dist/client/assets/{DotsVertical-HMX94wM4.js → DotsVertical-BvWNaE0h.js} +1 -1
- package/dist/client/assets/{Download01-Doa6J38S.js → Download01-CKV3BwjP.js} +1 -1
- package/dist/client/assets/{Edit01-DGglw0UP.js → Edit01-DbprYbwf.js} +1 -1
- package/dist/client/assets/{Edit05-CAIz9W8a.js → Edit05-DGpIkEu0.js} +1 -1
- package/dist/client/assets/{Eye-TnopHMFL.js → Eye-Tdy11Dl5.js} +1 -1
- package/dist/client/assets/{EyeOff-BZvotA6E.js → EyeOff-BD2WMGG9.js} +1 -1
- package/dist/client/assets/{File02-CslvucfF.js → File02-CyDdiX8Q.js} +1 -1
- package/dist/client/assets/{File06-DnhwEd2o.js → File06-Bo7UQP1z.js} +1 -1
- package/dist/client/assets/{FilterLines-BikhCE_A.js → FilterLines-BWNJKyJY.js} +1 -1
- package/dist/client/assets/{Globe01-BwY4xgBA.js → Globe01-BxtpF7ZM.js} +1 -1
- package/dist/client/assets/{Globe02-DHo2krVx.js → Globe02-BGjhdNyu.js} +1 -1
- package/dist/client/assets/{Grid01-DcS7oWbb.js → Grid01-D3H6Xg7i.js} +1 -1
- package/dist/client/assets/{Home02-DG7OPH9A.js → Home02-W7hMH9ey.js} +1 -1
- package/dist/client/assets/{Image01-Cy0jUz67.js → Image01-B3ey1eNs.js} +1 -1
- package/dist/client/assets/{Inbox01-SIqRC6M_.js → Inbox01-CShDV4g9.js} +1 -1
- package/dist/client/assets/{InfoCircle-Dx2O0Xt-.js → InfoCircle-CbHjIKeV.js} +1 -1
- package/dist/client/assets/{Key01-B7vWLx8d.js → Key01-5-pgJz_X.js} +1 -1
- package/dist/client/assets/{LayersTwo01-ZqHw9gvu.js → LayersTwo01-xinTq-oB.js} +1 -1
- package/dist/client/assets/{LayoutLeft-CxUeW5s7.js → LayoutLeft-qmvwDn9z.js} +1 -1
- package/dist/client/assets/{Link01-Tzs-SoL4.js → Link01-BkPkUWXK.js} +1 -1
- package/dist/client/assets/{LinkExternal01-9hq_Yejy.js → LinkExternal01-n6UrbsMN.js} +1 -1
- package/dist/client/assets/{List-Bw34PFLC.js → List-D6jEB_YS.js} +1 -1
- package/dist/client/assets/{Loading01-DxSeN67O.js → Loading01-qzExU-vn.js} +1 -1
- package/dist/client/assets/{Lock01-Ct-zRKhn.js → Lock01--VhFKO-i.js} +1 -1
- package/dist/client/assets/{Play-c1FkO3nE.js → Play-M74dVSj8.js} +1 -1
- package/dist/client/assets/{Plus-Bsw2xx3c.js → Plus-BcN5mYTX.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-BU2NGbmd.js → RefreshCcw01-CJ_LjIQh.js} +1 -1
- package/dist/client/assets/{Save01-VQSKxdGj.js → Save01-DZtY9BrO.js} +1 -1
- package/dist/client/assets/{SearchMd-CEm1UsrH.js → SearchMd-UvxwhoEZ.js} +1 -1
- package/dist/client/assets/{Settings01-DOl461Rl.js → Settings01-GWfoazTI.js} +1 -1
- package/dist/client/assets/{Shield01-C5KXW9qT.js → Shield01-DVX8J_w1.js} +1 -1
- package/dist/client/assets/{Terminal-agA8BqGj.js → Terminal-C5gGPJHb.js} +1 -1
- package/dist/client/assets/{Tool01-rIq-JrIA.js → Tool01-Du6CYDc3.js} +1 -1
- package/dist/client/assets/{Trash01-DxNUrtVd.js → Trash01-BeH4mX1G.js} +1 -1
- package/dist/client/assets/{Upload01-M2vItn3G.js → Upload01-DdYfc06y.js} +1 -1
- package/dist/client/assets/{Users03-DFk8QutD.js → Users03-DiLHch2s.js} +1 -1
- package/dist/client/assets/{X-D-hccS2q.js → X-BVgYwnSN.js} +1 -1
- package/dist/client/assets/{XClose-kThV85vf.js → XClose-B_VKr8wQ.js} +1 -1
- package/dist/client/assets/{Zap-GxeXYlX_.js → Zap-BVDfwq5q.js} +1 -1
- package/dist/client/assets/{agent-connections-preview-C8bxvbAS.js → agent-connections-preview-CV_kcJKr.js} +1 -1
- package/dist/client/assets/{agent-detail-BkWRn6EE.js → agent-detail-CER9kpP3.js} +2 -2
- package/dist/client/assets/{agents-BJ7USEnc.js → agents-E6Hqu25O.js} +1 -1
- package/dist/client/assets/{ai-providers-logos-C04Mmt5f.js → ai-providers-logos-D-_zB7Sr.js} +1 -1
- package/dist/client/assets/{alert-dialog-BwyEkhM2.js → alert-dialog-DnmZfA4L.js} +1 -1
- package/dist/client/assets/{auth-catchall-DvAu8Eyg.js → auth-catchall-B8eX7azG.js} +1 -1
- package/dist/client/assets/{automation-detail-asaVn5vx.js → automation-detail-CzLKDK1y.js} +1 -1
- package/dist/client/assets/{automations-Bwhm7fQB.js → automations-CbjN-0FM.js} +1 -1
- package/dist/client/assets/{avatar-BV0YYD73.js → avatar-BSFZ3dlu.js} +1 -1
- package/dist/client/assets/{badge-BWycpk7k.js → badge-DXwMtd-Z.js} +1 -1
- package/dist/client/assets/{binder-BeGcEVr1.js → binder-C5fLWQi7.js} +1 -1
- package/dist/client/assets/{breadcrumb-d18jYUDM.js → breadcrumb-D6JDmJ2S.js} +1 -1
- package/dist/client/assets/{card-742ND_Cc.js → card-BJoSSubJ.js} +1 -1
- package/dist/client/assets/{checkbox-BVAXPERq.js → checkbox-BwkFfbIs.js} +1 -1
- package/dist/client/assets/{collapsible-DvRv2NnT.js → collapsible-B4hcL0i5.js} +1 -1
- package/dist/client/assets/{collection-detail-DXDTi8Rz.js → collection-detail-Cjfggo4H.js} +1 -1
- package/dist/client/assets/{collection-display-button-j5LCiK0Q.js → collection-display-button-CjQjrXYK.js} +1 -1
- package/dist/client/assets/{collection-search-CtXFaqLY.js → collection-search-C834Gbkd.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-BoVsVa0v.js → collection-table-wrapper-c-OyqNod.js} +1 -1
- package/dist/client/assets/{collection-tabs-CohgS7tz.js → collection-tabs-UWyuXqmf.js} +1 -1
- package/dist/client/assets/{command-CI-Xkj2M.js → command-CML8jhqy.js} +1 -1
- package/dist/client/assets/{connection-card-wrPBNCYT.js → connection-card-CcVdnsJm.js} +1 -1
- package/dist/client/assets/{connection-detail-Dj8hQuAk.js → connection-detail-bMs_KMUg.js} +1 -1
- package/dist/client/assets/{connection-status-nrfD8oTh.js → connection-status-58RaCSam.js} +1 -1
- package/dist/client/assets/{connections-DeLsYuzw.js → connections-Dw4_1D-J.js} +1 -1
- package/dist/client/assets/constants-DSQJ4mA-.js +1 -0
- package/dist/client/assets/{constants-2xTOnIfa.js → constants-r3XrGYbG.js} +1 -1
- package/dist/client/assets/{context-Dw20ueMA.js → context-Pxzk9yAa.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-DT1tUQlQ.js → create-organization-dialog-BMjOdR5a.js} +1 -1
- package/dist/client/assets/{create-project-dialog-BGO4u8jU.js → create-project-dialog-SFDTscsW.js} +1 -1
- package/dist/client/assets/{danger-CMz_vbij.js → danger-Dy71Pb2o.js} +1 -1
- package/dist/client/assets/{danger-zone-BcsOk5Vr.js → danger-zone-D5RiVtBZ.js} +1 -1
- package/dist/client/assets/{dependencies-Dts1eYJl.js → dependencies-DXXtfNdO.js} +1 -1
- package/dist/client/assets/{dialog-MKggjCdI.js → dialog-CN3oN2_5.js} +1 -1
- package/dist/client/assets/{dropdown-menu-CMlIw-S-.js → dropdown-menu-Dnl7lePz.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-Cf1MucFI.js → dynamic-plugin-layout-DXyKPNZq.js} +1 -1
- package/dist/client/assets/{editable-task-title-D3cgVBo3.js → editable-task-title-BRYofyRM.js} +1 -1
- package/dist/client/assets/{empty-state-DubYd6zZ.js → empty-state-B9Zoo3IL.js} +1 -1
- package/dist/client/assets/{empty-state-BRd-y607.js → empty-state-PTEXjH2T.js} +1 -1
- package/dist/client/assets/{env-vars-editor-D1vn6k0i.js → env-vars-editor-BJ5MKd6M.js} +1 -1
- package/dist/client/assets/{extract-connection-data-D-dHrcF1.js → extract-connection-data-ROrw_5tv.js} +1 -1
- package/dist/client/assets/{file-browser-ygRIk5_q.js → file-browser-D98Dwhoo.js} +2 -2
- package/dist/client/assets/{form-D0i7a49m.js → form-B2YxAT6w.js} +1 -1
- package/dist/client/assets/{general-86xfQ0bC.js → general-C0ErJsVr.js} +1 -1
- package/dist/client/assets/grid-view-CSNjSEA8.js +1 -0
- package/dist/client/assets/home-DxiDlwBm.js +1 -0
- package/dist/client/assets/{index-f4gX1nVj.js → index-4CAe1f2t.js} +1 -1
- package/dist/client/assets/{index-CT-P03Yf.js → index-5yXJT_S7.js} +1 -1
- package/dist/client/assets/{index-C3ftP7Sl.js → index-B6q6vqd0.js} +1 -1
- package/dist/client/assets/{index-arVkExis.js → index-B_Mh_iHm.js} +23 -23
- package/dist/client/assets/{index-1d-yx2Zl.js → index-BpZXhvKz.js} +1 -1
- package/dist/client/assets/{index-DR3pnEhs.js → index-Bx36iogQ.js} +1 -1
- package/dist/client/assets/{index-B4KuSVaI.js → index-Cav0PjSL.js} +1 -1
- package/dist/client/assets/{index-DeLtuFdF.js → index-D6ucPHiS.js} +1 -1
- package/dist/client/assets/{index-CdmVNGw7.css → index-Dzbrw6kA.css} +1 -1
- package/dist/client/assets/{index-BILIM963.js → index-VKBGLCB6.js} +1 -1
- package/dist/client/assets/{index-lxTybxCn.js → index-_pKu_-II.js} +1 -1
- package/dist/client/assets/{index-BbfqtbW1.js → index-mMmMbM5q.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-DojBlr7V.js → infiniteQueryObserver-CH25wvjq.js} +1 -1
- package/dist/client/assets/{input-BQT91Y-t.js → input-D_4oZ8nu.js} +1 -1
- package/dist/client/assets/{integration-icon-Bi_79Mu8.js → integration-icon-DVKrtZhz.js} +1 -1
- package/dist/client/assets/{label-CYg2MwFH.js → label-BwG20xfV.js} +1 -1
- package/dist/client/assets/layout-CHzE2kio.js +1 -0
- package/dist/client/assets/{layout-_82IWE-R.js → layout-DTnaNYiG.js} +1 -1
- package/dist/client/assets/{login-DHbB-OL6.js → login-DRYmweF1.js} +1 -1
- package/dist/client/assets/{logo-upload-BMApr9Pu.js → logo-upload-BSSORaow.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-ZV-o4QFa.js → mcp-app-renderer-8ajrTmjm.js} +1 -1
- package/dist/client/assets/{mcp-server-card-C37ttVVe.js → mcp-server-card-Dpp8_-SG.js} +1 -1
- package/dist/client/assets/{mcp-server-detail-3ep4QUVI.js → mcp-server-detail-aH2W3eU-.js} +2 -2
- package/dist/client/assets/{members-DnctGzaQ.js → members-DNrFPyjB.js} +1 -1
- package/dist/client/assets/{monaco-editor-CTgv_dwd.js → monaco-editor-DnBdjTrE.js} +1 -1
- package/dist/client/assets/{monitoring-CA5enbIJ.js → monitoring-BK_nuQjd.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-edit-Bd5c0Rkr.js → monitoring-dashboard-edit-B_Y7GP4U.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-view-hZIgz82w.js → monitoring-dashboard-view-r3Qixte3.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-CpDiF1vB.js → monitoring-stats-row-K6h9Yaii.js} +1 -1
- package/dist/client/assets/{oauth-callback-Bdl851MB.js → oauth-callback-BG_DRcGu.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-CEb6NOu6.js → oauth-callback-ai-provider-c5HR38l0.js} +1 -1
- package/dist/client/assets/{org-ai-providers-BMiTYNS_.js → org-ai-providers-W-ey8QJ2.js} +1 -1
- package/dist/client/assets/{page-BryQ1mwc.js → page-DbjqMO5S.js} +1 -1
- package/dist/client/assets/{page-VMOc1u6l.js → page-QolsZtZN.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-B3fgdihr.js → plugin-empty-state-BZ960SFV.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-CStV1-AB.js → plugin-empty-state-NdVpmAoT.js} +1 -1
- package/dist/client/assets/{plugin-header-EjAujOEo.js → plugin-header-CuBZGuRI.js} +1 -1
- package/dist/client/assets/{plugin-header-SituO0VT.js → plugin-header-jsT0SDGU.js} +1 -1
- package/dist/client/assets/plugins-D2thjQBi.js +1 -0
- package/dist/client/assets/{popover-nQ7We-Lc.js → popover-Cc6oMb37.js} +1 -1
- package/dist/client/assets/{project-app-view-DHkcvjF1.js → project-app-view-Db17Z6S2.js} +1 -1
- package/dist/client/assets/project-layout-BRL1aeJm.js +1 -0
- package/dist/client/assets/{project-plugins-D96ln6e5.js → project-plugins-BilCFTif.js} +1 -1
- package/dist/client/assets/projects-list-C6e9-ATB.js +1 -0
- package/dist/client/assets/{registry-layout-Bnf2CEkf.js → registry-layout-EVqjIoJX.js} +1 -1
- package/dist/client/assets/{registry-utils-BiqLS082.js → registry-utils-B-z_TiDt.js} +1 -1
- package/dist/client/assets/{reset-password-DEGOQyVj.js → reset-password-CNxK0U7d.js} +1 -1
- package/dist/client/assets/{resizable-CgdchFOD.js → resizable-tXigK8MV.js} +1 -1
- package/dist/client/assets/{save-actions-Bep2KTHs.js → save-actions-D7MAkzXM.js} +1 -1
- package/dist/client/assets/{scroll-area-C77Z6wTJ.js → scroll-area-7CdoSKpD.js} +1 -1
- package/dist/client/assets/{select-DgOkL7kV.js → select-Cm8scUpM.js} +1 -1
- package/dist/client/assets/{select-virtual-mcp-C3OM3L9w.js → select-virtual-mcp-Dj3WFWKI.js} +1 -1
- package/dist/client/assets/{sheet-7obBcKdz.js → sheet-C6TjfzV7.js} +1 -1
- package/dist/client/assets/shell-layout-CLv6NxKt.js +3 -0
- package/dist/client/assets/{sidebar-settings-rZ_hN2_X.js → sidebar-settings-DsRgDoJp.js} +1 -1
- package/dist/client/assets/{skeleton-toLdhVeE.js → skeleton-r8kRFdY2.js} +1 -1
- package/dist/client/assets/{spinner-KvxFQg-_.js → spinner-DGKX__-x.js} +1 -1
- package/dist/client/assets/{store-invite-wquMuN0W.js → store-invite-CWHEgwGH.js} +1 -1
- package/dist/client/assets/{switch-B0R9LaZN.js → switch-IPngcufY.js} +1 -1
- package/dist/client/assets/{table-C_YImEQc.js → table-NBsb6ZgJ.js} +1 -1
- package/dist/client/assets/{tabs-Do1Ndlvl.js → tabs-BbpKtvCt.js} +1 -1
- package/dist/client/assets/{task-status-DUXjLyV-.js → task-status-CH-GZU6H.js} +1 -1
- package/dist/client/assets/tasks-cpJsN7_t.js +1 -0
- package/dist/client/assets/{tasks-panel-DgG7Fs5h.js → tasks-panel-Dmn-7wBO.js} +1 -1
- package/dist/client/assets/{textarea-CHvp5lgM.js → textarea-Cx1EfTyw.js} +1 -1
- package/dist/client/assets/{time-range-picker-DbP0WRyP.js → time-range-picker-BRX0E4nm.js} +1 -1
- package/dist/client/assets/{toggle-group-Bp4K1sba.js → toggle-group-B4P2vyQr.js} +1 -1
- package/dist/client/assets/{tools-list-Cj-E5pe4.js → tools-list-CzaohaW9.js} +1 -1
- package/dist/client/assets/{tooltip-CEipEk8R.js → tooltip-C3Kp2TSK.js} +1 -1
- package/dist/client/assets/{topbar-portal-BkpoKUfl.js → topbar-portal-Q8Dzuq9A.js} +1 -1
- package/dist/client/assets/{types-CSjd7C9V.js → types-oA24bSJu.js} +1 -1
- package/dist/client/assets/{use-automations-C3TjJsfB.js → use-automations-CigF676D.js} +1 -1
- package/dist/client/assets/use-collections-BO3cJvvD.js +1 -0
- package/dist/client/assets/{use-connection-DofMW1yq.js → use-connection-DcjokhTR.js} +1 -1
- package/dist/client/assets/{use-copy-DqnyAasC.js → use-copy-t5j0bIkG.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-UQ78Smrd.js → use-create-virtual-mcp-DNBe9jgM.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-B4Fq6XpE.js → use-infinite-scroll-C1JG9EyW.js} +1 -1
- package/dist/client/assets/{use-install-from-registry-GeE-5B5A.js → use-install-from-registry-CKkqlbBQ.js} +1 -1
- package/dist/client/assets/{use-list-state-8V3cBBhZ.js → use-list-state-CXSyDiQP.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-Dyl3ENGt.js → use-mcp-prompts-CXhzmV1o.js} +1 -1
- package/dist/client/assets/{use-mcp-resources-dnInY4Ju.js → use-mcp-resources-6oWP1CKu.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-rgDZ2hzO.js → use-mcp-tools-BaqzEz0O.js} +1 -1
- package/dist/client/assets/{use-members-BZW0Us6o.js → use-members-D8fC6TrF.js} +1 -1
- package/dist/client/assets/{use-mobile-9hJ8tJ4O.js → use-mobile-CT95jBsA.js} +1 -1
- package/dist/client/assets/{use-project-B_pcPwo3.js → use-project-CDiT6d1y.js} +1 -1
- package/dist/client/assets/{use-store-discovery-D772enuK.js → use-store-discovery-x0IVTFm4.js} +1 -1
- package/dist/client/assets/{use-view-mode-KhrHgWyJ.js → use-view-mode-Y8WekWh3.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-Du2a-bSk.js → use-virtual-mcp-DJgkZKsx.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-C2Z7AUUR.js +1 -0
- package/dist/client/assets/{useMutation-CsmEWi-Q.js → useMutation-DaOBjHnP.js} +1 -1
- package/dist/client/assets/useQuery-CWpouBaI.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-BbjMcV_z.js +1 -0
- package/dist/client/assets/{user-CmVhIMM1.js → user-BokMrk48.js} +1 -1
- package/dist/client/assets/{workflow-CG5G7IXZ.js → workflow-BBtFYRWO.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/cli.js +148 -148
- package/dist/server/node_modules/{xtend → pg}/LICENSE +7 -6
- package/dist/server/node_modules/pg/README.md +95 -0
- package/dist/server/node_modules/pg/esm/index.mjs +20 -0
- package/dist/server/node_modules/pg/lib/client.js +743 -0
- package/dist/server/node_modules/pg/lib/connection-parameters.js +171 -0
- package/dist/server/node_modules/pg/lib/connection.js +221 -0
- package/dist/server/node_modules/pg/lib/crypto/cert-signatures.js +122 -0
- package/dist/server/node_modules/pg/lib/crypto/sasl.js +212 -0
- package/dist/server/node_modules/pg/lib/crypto/utils-legacy.js +43 -0
- package/dist/server/node_modules/pg/lib/crypto/utils-webcrypto.js +89 -0
- package/dist/server/node_modules/pg/lib/crypto/utils.js +9 -0
- package/dist/server/node_modules/pg/lib/defaults.js +91 -0
- package/dist/server/node_modules/pg/lib/index.js +73 -0
- package/dist/server/node_modules/pg/lib/native/client.js +323 -0
- package/dist/server/node_modules/pg/lib/native/index.js +2 -0
- package/dist/server/node_modules/pg/lib/native/query.js +165 -0
- package/dist/server/node_modules/pg/lib/query.js +252 -0
- package/dist/server/node_modules/pg/lib/result.js +109 -0
- package/dist/server/node_modules/pg/lib/stream.js +83 -0
- package/dist/server/node_modules/pg/lib/type-overrides.js +35 -0
- package/dist/server/node_modules/pg/lib/utils.js +217 -0
- package/dist/server/node_modules/pg/package.json +76 -0
- package/package.json +1 -1
- package/dist/client/assets/constants-eOfc_ksY.js +0 -1
- package/dist/client/assets/grid-view-BBJ6iygb.js +0 -1
- package/dist/client/assets/home-CKPmSir7.js +0 -1
- package/dist/client/assets/layout-CjYU24vZ.js +0 -1
- package/dist/client/assets/plugins-T6odag1A.js +0 -1
- package/dist/client/assets/project-layout-D1w2rmOA.js +0 -1
- package/dist/client/assets/projects-list-BXoX3R5K.js +0 -1
- package/dist/client/assets/shell-layout-TL-31Cj_.js +0 -3
- package/dist/client/assets/tasks-CpCHAVGl.js +0 -1
- package/dist/client/assets/use-collections-Cw5P_4lQ.js +0 -1
- package/dist/client/assets/useInfiniteQuery-ClZhqSC6.js +0 -1
- package/dist/client/assets/useQuery-DYrQlIK1.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DnqWbzTD.js +0 -1
- package/dist/server/node_modules/pg-int8/LICENSE +0 -13
- package/dist/server/node_modules/pg-int8/README.md +0 -16
- package/dist/server/node_modules/pg-int8/index.js +0 -100
- package/dist/server/node_modules/pg-int8/package.json +0 -24
- package/dist/server/node_modules/postgres-array/index.d.ts +0 -4
- package/dist/server/node_modules/postgres-array/index.js +0 -97
- package/dist/server/node_modules/postgres-array/license +0 -21
- package/dist/server/node_modules/postgres-array/package.json +0 -35
- package/dist/server/node_modules/postgres-array/readme.md +0 -43
- package/dist/server/node_modules/postgres-bytea/index.js +0 -33
- package/dist/server/node_modules/postgres-bytea/license +0 -21
- package/dist/server/node_modules/postgres-bytea/package.json +0 -34
- package/dist/server/node_modules/postgres-bytea/readme.md +0 -34
- package/dist/server/node_modules/postgres-date/index.js +0 -116
- package/dist/server/node_modules/postgres-date/license +0 -21
- package/dist/server/node_modules/postgres-date/package.json +0 -33
- package/dist/server/node_modules/postgres-date/readme.md +0 -49
- package/dist/server/node_modules/postgres-interval/index.d.ts +0 -20
- package/dist/server/node_modules/postgres-interval/index.js +0 -125
- package/dist/server/node_modules/postgres-interval/license +0 -21
- package/dist/server/node_modules/postgres-interval/package.json +0 -36
- package/dist/server/node_modules/postgres-interval/readme.md +0 -48
- package/dist/server/node_modules/split2/LICENSE +0 -13
- package/dist/server/node_modules/split2/README.md +0 -85
- package/dist/server/node_modules/split2/bench.js +0 -27
- package/dist/server/node_modules/split2/index.js +0 -141
- package/dist/server/node_modules/split2/package.json +0 -39
- package/dist/server/node_modules/split2/test.js +0 -409
- package/dist/server/node_modules/xtend/.jshintrc +0 -30
- package/dist/server/node_modules/xtend/README.md +0 -32
- package/dist/server/node_modules/xtend/immutable.js +0 -19
- package/dist/server/node_modules/xtend/mutable.js +0 -17
- package/dist/server/node_modules/xtend/package.json +0 -55
- package/dist/server/node_modules/xtend/test.js +0 -103
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "pg",
|
|
3
|
+
"version": "8.20.0",
|
|
4
|
+
"description": "PostgreSQL client - pure javascript & libpq with the same API",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"database",
|
|
7
|
+
"libpq",
|
|
8
|
+
"pg",
|
|
9
|
+
"postgre",
|
|
10
|
+
"postgres",
|
|
11
|
+
"postgresql",
|
|
12
|
+
"rdbms"
|
|
13
|
+
],
|
|
14
|
+
"homepage": "https://github.com/brianc/node-postgres",
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "git://github.com/brianc/node-postgres.git",
|
|
18
|
+
"directory": "packages/pg"
|
|
19
|
+
},
|
|
20
|
+
"author": "Brian Carlson <brian.m.carlson@gmail.com>",
|
|
21
|
+
"main": "./lib",
|
|
22
|
+
"exports": {
|
|
23
|
+
".": {
|
|
24
|
+
"import": "./esm/index.mjs",
|
|
25
|
+
"require": "./lib/index.js",
|
|
26
|
+
"default": "./lib/index.js"
|
|
27
|
+
},
|
|
28
|
+
"./package.json": {
|
|
29
|
+
"default": "./package.json"
|
|
30
|
+
},
|
|
31
|
+
"./lib/*": "./lib/*.js",
|
|
32
|
+
"./lib/*.js": "./lib/*.js"
|
|
33
|
+
},
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"pg-connection-string": "^2.12.0",
|
|
36
|
+
"pg-pool": "^3.13.0",
|
|
37
|
+
"pg-protocol": "^1.13.0",
|
|
38
|
+
"pg-types": "2.2.0",
|
|
39
|
+
"pgpass": "1.0.5"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@cloudflare/vitest-pool-workers": "0.8.23",
|
|
43
|
+
"@cloudflare/workers-types": "^4.20230404.0",
|
|
44
|
+
"async": "2.6.4",
|
|
45
|
+
"bluebird": "3.7.2",
|
|
46
|
+
"co": "4.6.0",
|
|
47
|
+
"pg-copy-streams": "0.3.0",
|
|
48
|
+
"typescript": "^4.0.3",
|
|
49
|
+
"vitest": "~3.0.9",
|
|
50
|
+
"wrangler": "^3.x"
|
|
51
|
+
},
|
|
52
|
+
"optionalDependencies": {
|
|
53
|
+
"pg-cloudflare": "^1.3.0"
|
|
54
|
+
},
|
|
55
|
+
"peerDependencies": {
|
|
56
|
+
"pg-native": ">=3.0.1"
|
|
57
|
+
},
|
|
58
|
+
"peerDependenciesMeta": {
|
|
59
|
+
"pg-native": {
|
|
60
|
+
"optional": true
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"scripts": {
|
|
64
|
+
"test": "make test-all"
|
|
65
|
+
},
|
|
66
|
+
"files": [
|
|
67
|
+
"lib",
|
|
68
|
+
"esm",
|
|
69
|
+
"SPONSORS.md"
|
|
70
|
+
],
|
|
71
|
+
"license": "MIT",
|
|
72
|
+
"engines": {
|
|
73
|
+
"node": ">= 16.0.0"
|
|
74
|
+
},
|
|
75
|
+
"gitHead": "c9070cc8d526fca65780cedc25c1966b57cf7532"
|
|
76
|
+
}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ap as a,aq as t}from"./index-arVkExis.js";const e=a(t,{target:"draft-7"});export{e as B};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as v,c as M,y as L,j as s,x as q,w,B as E,as as H}from"./index-arVkExis.js";import{u as D}from"./topbar-portal-BkpoKUfl.js";import{K as R,u as Z,g as I,s as Q,a as W,f as U}from"./file-browser-ygRIk5_q.js";import{i as S}from"./AlertCircle-C1aHEN6f.js";import{n as A}from"./Download01-Doa6J38S.js";import{i as $}from"./File02-CslvucfF.js";import{i as J}from"./File06-DnhwEd2o.js";import{a as P}from"./Image01-Cy0jUz67.js";import{i as T}from"./Loading01-DxSeN67O.js";import{s as V}from"./Trash01-DxNUrtVd.js";import{i as Y}from"./Upload01-M2vItn3G.js";import{u as _}from"./useMutation-CsmEWi-Q.js";import{u as X}from"./useQuery-DYrQlIK1.js";import"./useInfiniteQuery-ClZhqSC6.js";import"./infiniteQueryObserver-DojBlr7V.js";import"./checkbox-BVAXPERq.js";import"./Check-DnuqdVIb.js";import"./ChevronRight-DEonWml9.js";import"./Grid01-DcS7oWbb.js";import"./Home02-DG7OPH9A.js";import"./List-Bw34PFLC.js";const B=({size:i=24,color:e="currentColor",...t})=>v.createElement("svg",{viewBox:"0 0 24 24",width:i,height:i,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},v.createElement("path",{d:"M14 2.27V6.4c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C14.76 8 15.04 8 15.6 8h4.13M20 9.988V17.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C17.72 22 16.88 22 15.2 22H8.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C4 19.72 4 18.88 4 17.2V6.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C6.28 2 7.12 2 8.8 2h3.212c.733 0 1.1 0 1.446.083.306.073.598.195.867.36.303.185.562.444 1.08.963l3.19 3.188c.518.519.777.778.963 1.081a3 3 0 0 1 .36.867c.082.346.082.712.082 1.446Z"}));B.displayName="File04";const G=({size:i=24,color:e="currentColor",...t})=>v.createElement("svg",{viewBox:"0 0 24 24",width:i,height:i,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},v.createElement("path",{d:"M14 2.27V6.4c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437c.214.11.494.11 1.054.11h4.13M8 15v3m8-5v5m-4-7.5V18m8-8.012V17.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C17.72 22 16.88 22 15.2 22H8.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C4 19.72 4 18.88 4 17.2V6.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C6.28 2 7.12 2 8.8 2h3.212c.733 0 1.1 0 1.446.083.306.073.598.195.867.36.303.185.562.444 1.08.963l3.19 3.188c.518.519.777.778.963 1.081a3 3 0 0 1 .36.867c.082.346.082.712.082 1.446Z"}));G.displayName="File07";const K=({size:i=24,color:e="currentColor",...t})=>v.createElement("svg",{viewBox:"0 0 24 24",width:i,height:i,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},v.createElement("path",{d:"M14 2.27V6.4c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437c.214.11.494.11 1.054.11h4.13M14 17.5l2.5-2.5-2.5-2.5m-4 0L7.5 15l2.5 2.5m10-7.512V17.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C17.72 22 16.88 22 15.2 22H8.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C4 19.72 4 18.88 4 17.2V6.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C6.28 2 7.12 2 8.8 2h3.212c.733 0 1.1 0 1.446.083.306.073.598.195.867.36.303.185.562.444 1.08.963l3.19 3.188c.518.519.777.778.963 1.081a3 3 0 0 1 .36.867c.082.346.082.712.082 1.446Z"}));K.displayName="FileCode01";const O=({size:i=24,color:e="currentColor",...t})=>v.createElement("svg",{viewBox:"0 0 24 24",width:i,height:i,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},v.createElement("path",{d:"M22 8.931c0-.605 0-.908-.12-1.049a.5.5 0 0 0-.42-.173c-.183.014-.397.228-.826.657L17 12l3.634 3.634c.429.429.643.643.827.657a.5.5 0 0 0 .42-.173c.119-.14.119-.444.119-1.05V8.932ZM2 9.8c0-1.68 0-2.52.327-3.162a3 3 0 0 1 1.311-1.311C4.28 5 5.12 5 6.8 5h5.4c1.68 0 2.52 0 3.162.327a3 3 0 0 1 1.311 1.311C17 7.28 17 8.12 17 9.8v4.4c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C14.72 19 13.88 19 12.2 19H6.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C2 16.72 2 15.88 2 14.2V9.8Z"}));O.displayName="VideoRecorder";function ee(i){const e=M.c(5),[t,g]=v.useState(!1),c=v.useRef(null),d=v.useRef(!1);let n;e[0]!==i?(n=u=>{c.current&&(c.current.disconnect(),c.current=null),u&&!d.current&&(c.current=new IntersectionObserver(y=>{const[a]=y;a?.isIntersecting&&!d.current&&(d.current=!0,g(!0),c.current?.disconnect(),c.current=null)},i),c.current.observe(u))},e[0]=i,e[1]=n):n=e[1];const l=n;let h;return e[2]!==t||e[3]!==l?(h=[t,l],e[2]=t,e[3]=l,e[4]=h):h=e[4],h}function te(i){const e=M.c(24),{objectKey:t,alt:g,className:c}=i,d=c===void 0?"":c,{connectionId:n,toolCaller:l}=D();let h;e[0]===Symbol.for("react.memo_cache_sentinel")?(h={rootMargin:"100px",threshold:0},e[0]=h):h=e[0];const[u,y]=ee(h);let a;e[1]!==n||e[2]!==t?(a=R.imagePreview(n,t),e[1]=n,e[2]=t,e[3]=a):a=e[3];let f;e[4]!==t||e[5]!==l?(f=async()=>{const{url:m}=await l("GET_PRESIGNED_URL",{key:t});return m},e[4]=t,e[5]=l,e[6]=f):f=e[6];let k;e[7]!==u||e[8]!==a||e[9]!==f?(k={queryKey:a,queryFn:f,enabled:u,staleTime:3e5,gcTime:6e5},e[7]=u,e[8]=a,e[9]=f,e[10]=k):k=e[10];const{data:b,isLoading:x,error:j}=X(k);let p;e[11]!==d?(p=L("relative w-full h-full flex items-center justify-center overflow-hidden",d),e[11]=d,e[12]=p):p=e[12];let r;e[13]!==g||e[14]!==j||e[15]!==b||e[16]!==x||e[17]!==u||e[18]!==t?(r=!u||x?s.jsx("div",{className:"flex flex-col items-center justify-center text-muted-foreground",children:x?s.jsx(T,{size:24,className:"animate-spin"}):s.jsx(P,{size:48})}):j?s.jsx("div",{className:"flex flex-col items-center justify-center text-muted-foreground",children:s.jsx(S,{size:24})}):b?s.jsx("img",{src:b,alt:g||t,className:"w-full h-full object-cover",loading:"lazy"}):null,e[13]=g,e[14]=j,e[15]=b,e[16]=x,e[17]=u,e[18]=t,e[19]=r):r=e[19];let o;return e[20]!==y||e[21]!==p||e[22]!==r?(o=s.jsx("div",{ref:y,className:p,children:r}),e[20]=y,e[21]=p,e[22]=r,e[23]=o):o=e[23],o}const z=12,se={Image01:P,VideoRecorder:O,Music01:$,File02:$,File04:B,File06:J,File07:G,FileCode01:K,Folder:H};function re(i){const e=i.split(".").pop()?.toLowerCase();return["jpg","jpeg","png","gif","webp","svg","bmp","ico"].includes(e||"")}function oe(i){const e=M.c(41),{item:t,onNavigate:g,onDownload:c,onDelete:d}=i;let n;e[0]!==t.key?(n=I(t.key),e[0]=t.key,e[1]=n):n=e[1];const l=n,h=t.isFolder?"Folder":W(t.key),u=se[h]||$;let y;e[2]!==t.isFolder||e[3]!==t.key?(y=!t.isFolder&&re(t.key),e[2]=t.isFolder,e[3]=t.key,e[4]=y):y=e[4];const a=y;let f;e[5]!==t.isFolder||e[6]!==t.key||e[7]!==g?(f=()=>t.isFolder?g(t.key):void 0,e[5]=t.isFolder,e[6]=t.key,e[7]=g,e[8]=f):f=e[8];const k=!a&&"p-4",b=t.isFolder?"cursor-pointer":"cursor-default";let x;e[9]!==k||e[10]!==b?(x=L("flex flex-col items-center justify-center w-full h-full",k,b),e[9]=k,e[10]=b,e[11]=x):x=e[11];let j;e[12]!==u||e[13]!==a||e[14]!==t.isFolder||e[15]!==t.key||e[16]!==l?(j=a?s.jsx("div",{className:"absolute inset-0",children:s.jsx(te,{objectKey:t.key,alt:l})}):s.jsx(u,{size:48,className:L(t.isFolder?"text-amber-500":"text-muted-foreground")}),e[12]=u,e[13]=a,e[14]=t.isFolder,e[15]=t.key,e[16]=l,e[17]=j):j=e[17];let p;e[18]!==a||e[19]!==t.isFolder||e[20]!==t.size||e[21]!==l?(p=a?s.jsxs("div",{className:"absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/70 to-transparent p-2 pt-6",children:[s.jsx("span",{className:"text-sm text-white text-center line-clamp-1 block",children:l}),s.jsx("span",{className:"text-xs text-white/70 text-center block",children:U(t.size)})]}):s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"mt-3 text-sm text-center line-clamp-2 px-2",children:l}),!t.isFolder&&s.jsx("span",{className:"mt-1 text-xs text-muted-foreground",children:U(t.size)})]}),e[18]=a,e[19]=t.isFolder,e[20]=t.size,e[21]=l,e[22]=p):p=e[22];let r;e[23]!==f||e[24]!==x||e[25]!==j||e[26]!==p?(r=s.jsxs("button",{type:"button",onClick:f,className:x,children:[j,p]}),e[23]=f,e[24]=x,e[25]=j,e[26]=p,e[27]=r):r=e[27];let o;e[28]!==t.isFolder||e[29]!==t.key||e[30]!==d||e[31]!==c?(o=!t.isFolder&&s.jsxs("div",{className:"absolute top-2 right-2 flex gap-1 opacity-0 group-hover:opacity-100 transition-opacity",children:[s.jsx(E,{variant:"secondary",size:"sm",className:"size-7 p-0",onClick:F=>{F.stopPropagation(),c(t.key)},children:s.jsx(A,{size:14})}),s.jsx(E,{variant:"secondary",size:"sm",className:"size-7 p-0 text-destructive hover:text-destructive",onClick:F=>{F.stopPropagation(),d(t.key)},children:s.jsx(V,{size:14})})]}),e[28]=t.isFolder,e[29]=t.key,e[30]=d,e[31]=c,e[32]=o):o=e[32];let m;e[33]!==t.isFolder||e[34]!==t.key||e[35]!==d?(m=t.isFolder&&s.jsx("div",{className:"absolute top-2 right-2 opacity-0 group-hover:opacity-100 transition-opacity",children:s.jsx(E,{variant:"secondary",size:"sm",className:"size-7 p-0 text-destructive hover:text-destructive",onClick:F=>{F.stopPropagation(),d(t.key)},children:s.jsx(V,{size:14})})}),e[33]=t.isFolder,e[34]=t.key,e[35]=d,e[36]=m):m=e[36];let N;return e[37]!==o||e[38]!==m||e[39]!==r?(N=s.jsxs("div",{className:"group relative aspect-square bg-muted/30 rounded-lg border border-border hover:border-primary/50 hover:bg-muted/50 transition-colors overflow-hidden",children:[r,o,m]}),e[37]=o,e[38]=m,e[39]=r,e[40]=N):N=e[40],N}function we({prefix:i,flat:e,onNavigate:t}){const g=v.useRef(null),c=q(),{connectionId:d,toolCaller:n}=D(),{objects:l,isLoading:h,isFetchingMore:u,hasMore:y,loadMore:a,error:f}=Z({prefix:i,flat:e,pageSize:z}),k=_({mutationFn:async r=>{const o=i+r.name,{url:m}=await n("PUT_PRESIGNED_URL",{key:o,contentType:r.type||"application/octet-stream"}),N=await fetch(m,{method:"PUT",body:r,headers:{"Content-Type":r.type||"application/octet-stream"}});if(!N.ok)throw new Error(`Upload failed: ${N.statusText}`);return o},onSuccess:r=>{w.success(`Uploaded ${I(r)}`),c.invalidateQueries({queryKey:R.objects(d,i,e,z)})},onError:r=>{w.error(`Upload failed: ${r.message}`)}}),b=_({mutationFn:async r=>r.length===1&&r[0]?n("DELETE_OBJECT",{key:r[0]}):n("DELETE_OBJECTS",{keys:r}),onSuccess:()=>{w.success("Deleted successfully"),c.invalidateQueries({queryKey:R.objects(d,i,e,z)})},onError:r=>{w.error(`Delete failed: ${r.message}`)}}),x=async r=>{try{const{url:o}=await n("GET_PRESIGNED_URL",{key:r}),m=await fetch(o);if(!m.ok)throw new Error(`Failed to fetch file: ${m.statusText}`);const N=await m.blob(),F=URL.createObjectURL(N),C=document.createElement("a");C.href=F,C.download=I(r),document.body.appendChild(C),C.click(),document.body.removeChild(C),URL.revokeObjectURL(F)}catch(o){w.error(`Download failed: ${o instanceof Error?o.message:"Unknown error"}`)}},j=r=>{const o=r.target.files;if(o){for(const m of Array.from(o))k.mutate(m);r.target.value=""}},p=r=>{if(!y||u)return;const o=r.currentTarget;o.scrollHeight-o.scrollTop-o.clientHeight<200&&a()};return f?s.jsxs("div",{className:"flex flex-col items-center justify-center h-full p-8",children:[s.jsx(S,{size:48,className:"text-destructive mb-4"}),s.jsx("h3",{className:"text-lg font-medium mb-2",children:"Error loading files"}),s.jsx("p",{className:"text-muted-foreground text-center",children:f.message})]}):s.jsx("div",{className:"flex-1 overflow-y-auto p-4",onScroll:p,children:h?s.jsxs("div",{className:"flex flex-col items-center justify-center py-12",children:[s.jsx(T,{size:32,className:"animate-spin text-muted-foreground mb-4"}),s.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading files..."})]}):l.length===0?s.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[s.jsx(Q,{size:48,className:"text-muted-foreground mb-4"}),s.jsx("h3",{className:"text-lg font-medium mb-2",children:"This folder is empty"}),s.jsx("p",{className:"text-muted-foreground mb-4",children:"Upload files to get started"}),s.jsx("input",{ref:g,type:"file",multiple:!0,className:"hidden",onChange:j}),s.jsxs(E,{variant:"outline",onClick:()=>g.current?.click(),children:[s.jsx(Y,{size:14,className:"mr-1"}),"Upload files"]})]}):s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 gap-4",children:l.map(r=>s.jsx(oe,{item:r,onNavigate:t,onDownload:x,onDelete:o=>b.mutate([o])},r.key))}),u&&s.jsx("div",{className:"flex justify-center py-8",children:s.jsx(T,{size:24,className:"animate-spin text-muted-foreground"})})]})})}export{we as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as f,y,j as s,f as _,r as C,B as $,bN as O,e as E,x as F,w,at as R,S as D,N as H}from"./index-arVkExis.js";import{C as k}from"./card-742ND_Cc.js";import{A as G}from"./avatar-BV0YYD73.js";import{i as Q}from"./AlertCircle-C1aHEN6f.js";import{i as q}from"./Check-DnuqdVIb.js";import{s as B}from"./Plus-Bsw2xx3c.js";import{i as T}from"./SearchMd-CEm1UsrH.js";import{s as M}from"./XClose-kThV85vf.js";import{I as U}from"./input-BQT91Y-t.js";import{C as P}from"./create-organization-dialog-DT1tUQlQ.js";import"./alert-dialog-BwyEkhM2.js";import"./form-D0i7a49m.js";import"./label-CYg2MwFH.js";import"./spinner-KvxFQg-_.js";import"./useMutation-CsmEWi-Q.js";function V(t){const e=f.c(10),{children:n,className:l,onNavigate:i,showHoverRing:a}=t,c=a===void 0?!1:a;let o;e[0]!==i?(o=p=>{i&&i(p)},e[0]=i,e[1]=o):o=e[1];const m=o,x=i&&"cursor-pointer",r=c&&"hover:ring-2 hover:ring-primary";let d;e[2]!==l||e[3]!==x||e[4]!==r?(d=y("group transition-all flex flex-col gap-0",x,r,l),e[2]=l,e[3]=x,e[4]=r,e[5]=d):d=e[5];let g;return e[6]!==n||e[7]!==m||e[8]!==d?(g=s.jsx(k,{className:d,onClick:m,children:n}),e[6]=n,e[7]=m,e[8]=d,e[9]=g):g=e[9],g}function X(t){const e=f.c(7),{url:n,fallback:l,shape:i,size:a,objectFit:c,className:o}=t,m=i===void 0?"square":i,x=a===void 0?"lg":a,r=c===void 0?"contain":c;let d;return e[0]!==o||e[1]!==l||e[2]!==r||e[3]!==m||e[4]!==x||e[5]!==n?(d=s.jsx(G,{url:n,fallback:l,shape:m,size:x,objectFit:r,className:o}),e[0]=o,e[1]=l,e[2]=r,e[3]=m,e[4]=x,e[5]=n,e[6]=d):d=e[6],d}function Y(t){const e=f.c(5),{children:n,className:l}=t;let i;e[0]!==l?(i=y("p-4 flex flex-col gap-4",l),e[0]=l,e[1]=i):i=e[1];let a;return e[2]!==n||e[3]!==i?(a=s.jsx("div",{className:i,children:n}),e[2]=n,e[3]=i,e[4]=a):a=e[4],a}function J(t){const e=f.c(5),{children:n,className:l}=t;let i;e[0]!==l?(i=y("font-medium truncate",l),e[0]=l,e[1]=i):i=e[1];let a;return e[2]!==n||e[3]!==i?(a=s.jsx("p",{className:i,children:n}),e[2]=n,e[3]=i,e[4]=a):a=e[4],a}function K(t){const e=f.c(5),{children:n,className:l}=t;let i;e[0]!==l?(i=y("text-sm text-muted-foreground truncate",l),e[0]=l,e[1]=i):i=e[1];let a;return e[2]!==n||e[3]!==i?(a=s.jsx("h3",{className:i,children:n}),e[2]=n,e[3]=i,e[4]=a):a=e[4],a}function W(t){const e=f.c(5),{children:n,className:l}=t;let i;e[0]!==l?(i=y("flex flex-col gap-[2px]",l),e[0]=l,e[1]=i):i=e[1];let a;return e[2]!==n||e[3]!==i?(a=s.jsx("div",{className:i,children:n}),e[2]=n,e[3]=i,e[4]=a):a=e[4],a}function Z(t){const e=f.c(5),{children:n,className:l}=t;let i;e[0]!==l?(i=y("flex justify-between items-start",l),e[0]=l,e[1]=i):i=e[1];let a;return e[2]!==n||e[3]!==i?(a=s.jsx("div",{className:i,children:n}),e[2]=n,e[3]=i,e[4]=a):a=e[4],a}function ee(t){const e=f.c(5),{children:n,className:l}=t;let i;e[0]!==l?(i=y("p-4 border-t border-border flex justify-between items-center",l),e[0]=l,e[1]=i):i=e[1];let a;return e[2]!==n||e[3]!==i?(a=s.jsx("div",{className:i,children:n}),e[2]=n,e[3]=i,e[4]=a):a=e[4],a}function te(t){const e=f.c(5),{children:n,className:l}=t;let i;e[0]!==l?(i=y("flex items-center text-xs text-muted-foreground",l),e[0]=l,e[1]=i):i=e[1];let a;return e[2]!==n||e[3]!==i?(a=s.jsx("div",{className:i,children:n}),e[2]=n,e[3]=i,e[4]=a):a=e[4],a}function se(){const t=f.c(3);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx("div",{className:"flex justify-between items-start",children:s.jsx("div",{className:"h-12 w-12 bg-muted rounded-lg animate-pulse"})}),t[0]=e):e=t[0];let n;t[1]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsxs("div",{className:"p-4 flex flex-col gap-4",children:[e,s.jsxs("div",{className:"flex flex-col gap-[2px]",children:[s.jsx("div",{className:"h-4 w-32 bg-muted rounded-lg animate-pulse"}),s.jsx("div",{className:"h-4 w-40 bg-muted rounded-lg animate-pulse"})]})]}),t[1]=n):n=t[1];let l;return t[2]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsxs(k,{className:"group transition-colors flex flex-col",children:[n,s.jsxs("div",{className:"p-4 border-t border-border flex justify-between items-center",children:[s.jsx("div",{className:"h-6 w-6 bg-muted rounded-full animate-pulse"}),s.jsx("div",{className:"h-6 w-6 bg-muted rounded-full animate-pulse -ml-2"})]})]}),t[2]=l):l=t[2],l}const u=Object.assign(V,{Avatar:X,AvatarSection:Z,Header:Y,Title:J,Subtitle:K,Content:W,Footer:ee,Badge:te,Skeleton:se}),ie={0:"gap-0",1:"gap-1",2:"gap-2",3:"gap-3",4:"gap-4",5:"gap-5",6:"gap-6",8:"gap-8"},le={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",7:"grid-cols-7",8:"grid-cols-8"},ne={1:"@min-3xl:grid-cols-1",2:"@min-3xl:grid-cols-2",3:"@min-3xl:grid-cols-3",4:"@min-3xl:grid-cols-4",5:"@min-3xl:grid-cols-5",6:"@min-3xl:grid-cols-6",7:"@min-3xl:grid-cols-7",8:"@min-3xl:grid-cols-8"},ae={1:"@min-6xl:grid-cols-1",2:"@min-6xl:grid-cols-2",3:"@min-6xl:grid-cols-3",4:"@min-6xl:grid-cols-4",5:"@min-6xl:grid-cols-5",6:"@min-6xl:grid-cols-6",7:"@min-6xl:grid-cols-7",8:"@min-6xl:grid-cols-8"},re={1:"@min-7xl:grid-cols-1",2:"@min-7xl:grid-cols-2",3:"@min-7xl:grid-cols-3",4:"@min-7xl:grid-cols-4",5:"@min-7xl:grid-cols-5",6:"@min-7xl:grid-cols-6",7:"@min-7xl:grid-cols-7",8:"@min-7xl:grid-cols-8"},oe={1:"@min-8xl:grid-cols-1",2:"@min-8xl:grid-cols-2",3:"@min-8xl:grid-cols-3",4:"@min-8xl:grid-cols-4",5:"@min-8xl:grid-cols-5",6:"@min-8xl:grid-cols-6",7:"@min-8xl:grid-cols-7",8:"@min-8xl:grid-cols-8"};function L(t){const e=f.c(13),{children:n,columns:l,gap:i,className:a}=t;let c;e[0]!==l?(c=l===void 0?{sm:2,md:3,lg:4}:l,e[0]=l,e[1]=c):c=e[1];const o=c,x=ie[i===void 0?4:i],r=o.sm&&le[o.sm],d=o.md&&ne[o.md],g=o.lg&&ae[o.lg],p=o.xl&&re[o.xl],v=o["2xl"]&&oe[o["2xl"]];let N;e[2]!==a||e[3]!==x||e[4]!==r||e[5]!==d||e[6]!==g||e[7]!==p||e[8]!==v?(N=y("w-full grid",x,r,d,g,p,v,a),e[2]=a,e[3]=x,e[4]=r,e[5]=d,e[6]=g,e[7]=p,e[8]=v,e[9]=N):N=e[9];const b=N;let h;return e[10]!==n||e[11]!==b?(h=s.jsx("div",{className:b,children:n}),e[10]=n,e[11]=b,e[12]=h):h=e[12],h}function ce(t){const e=f.c(9),{count:n,columns:l,gap:i,className:a}=t,c=n===void 0?8:n;let o;e[0]!==l?(o=l===void 0?{sm:2,md:3,lg:4}:l,e[0]=l,e[1]=o):o=e[1];const m=o,x=i===void 0?4:i;let r;e[2]!==c?(r=Array.from({length:c}).map(de),e[2]=c,e[3]=r):r=e[3];let d;return e[4]!==a||e[5]!==m||e[6]!==x||e[7]!==r?(d=s.jsx(L,{columns:m,gap:x,className:a,children:r}),e[4]=a,e[5]=m,e[6]=x,e[7]=r,e[8]=d):d=e[8],d}function de(t,e){return s.jsxs("div",{className:"bg-card hover:bg-accent transition-colors flex flex-col rounded-lg animate-pulse",children:[s.jsxs("div",{className:"p-4 flex flex-col gap-4",children:[s.jsx("div",{className:"h-12 w-12 bg-muted rounded-lg"}),s.jsx("div",{className:"h-4 w-32 bg-muted rounded-lg"}),s.jsx("div",{className:"h-4 w-32 bg-muted rounded-lg"})]}),s.jsxs("div",{className:"p-4 border-t border-border flex items-center",children:[s.jsx("div",{className:"h-6 w-6 bg-muted rounded-full animate-pulse"}),s.jsx("div",{className:"h-6 w-6 bg-muted rounded-full animate-pulse -ml-2"}),s.jsx("div",{className:"h-6 w-6 bg-muted rounded-full animate-pulse -ml-2"})]})]},e)}const I=Object.assign(L,{Skeleton:ce});function me({invitation:t}){const[e,n]=C.useState(!1),[l,i]=C.useState(!1),a=F(),c=E(),o=async()=>{n(!0);try{const r=await _.organization.acceptInvitation({invitationId:t.id});if(r.error)w.error(r.error.message),n(!1);else{const d=await _.organization.setActive({organizationId:t.organizationId});d?.data?.slug?(w.success("Invitation accepted!"),c({to:"/$org",params:{org:d.data.slug}})):(w.success("Invitation accepted! Redirecting..."),c({to:"/"}))}}catch{w.error("Failed to accept invitation"),n(!1)}},m=async()=>{i(!0);try{const r=await _.organization.rejectInvitation({invitationId:t.id});r.error?(w.error(r.error.message),i(!1)):(w.success("Invitation rejected"),await a.invalidateQueries(),i(!1))}catch{w.error("Failed to reject invitation"),i(!1)}},x=t.organizationName||t.organizationId;return s.jsxs(u,{className:"border-dashed",children:[s.jsxs(u.Header,{children:[s.jsx(u.AvatarSection,{children:s.jsx(u.Avatar,{url:"",fallback:x,size:"lg",objectFit:"contain"})}),s.jsxs(u.Content,{children:[s.jsx(u.Subtitle,{children:"You've been invited to join"}),s.jsx(u.Title,{children:x})]})]}),s.jsx(u.Footer,{className:"border-t border-dashed",children:s.jsxs("div",{className:"flex h-3.5 items-center gap-2 w-full",children:[s.jsx($,{onClick:o,disabled:e||l,className:"flex-1",size:"sm",children:e?"Accepting...":s.jsxs(s.Fragment,{children:[s.jsx(q,{size:16}),"Accept"]})}),s.jsx($,{variant:"outline",onClick:m,disabled:e||l,className:"flex-1",size:"sm",children:l?"Declining...":s.jsxs(s.Fragment,{children:[s.jsx(M,{size:16}),"Decline"]})})]})})]})}function xe({query:t}){const e=C.useContext(O),{data:n}=e.hooks.useListUserInvitations(),i=(n??[]).filter(c=>c.status==="pending"&&new Date(c.expiresAt)>new Date),a=t?(()=>{const c=t.toLowerCase();return i.filter(o=>o.organizationName?.toLowerCase().includes(c)||o.organizationId.toLowerCase().includes(c))})():i;return a.length===0?null:s.jsxs("div",{className:"mb-16",children:[s.jsx("h2",{className:"text-lg font-medium pb-2 border-b border-border/50 mb-6 px-2",children:"Invitations"}),s.jsx(I,{columns:{sm:2,md:3,lg:4},children:a.map(c=>s.jsx(me,{invitation:c},c.id))})]})}function ue(t){const e=f.c(14),{query:n}=t,{data:l}=_.useListOrganizations(),i=E();let a;e[0]!==l||e[1]!==n?(a=l?n?(()=>{const r=n.toLowerCase();return l.filter(d=>d.name.toLowerCase().includes(r)||d.slug.toLowerCase().includes(r))})():l:[],e[0]=l,e[1]=n,e[2]=a):a=e[2];const c=a;if(!l||l.length===0){let r;return e[3]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx("div",{className:"flex flex-col items-center justify-center min-h-[400px] gap-4",children:s.jsx("div",{className:"text-sm text-muted-foreground text-center",children:"No organizations yet. Create your first organization to get started."})}),e[3]=r):r=e[3],r}if(c.length===0){let r;return e[4]!==n?(r=s.jsx("div",{className:"flex flex-col items-center justify-center min-h-[400px] gap-4",children:s.jsxs("div",{className:"text-sm text-muted-foreground text-center",children:['No organizations found matching "',n,'".']})}),e[4]=n,e[5]=r):r=e[5],r}let o;e[6]===Symbol.for("react.memo_cache_sentinel")?(o={sm:2,md:3,lg:4},e[6]=o):o=e[6];let m;if(e[7]!==c||e[8]!==i){let r;e[10]!==i?(r=d=>s.jsxs(u,{onNavigate:()=>i({to:"/$org",params:{org:d.slug}}),children:[s.jsxs(u.Header,{children:[s.jsx(u.AvatarSection,{children:s.jsx(u.Avatar,{url:d.logo||"",fallback:d.name,size:"lg",objectFit:"contain"})}),s.jsxs(u.Content,{children:[s.jsxs(u.Subtitle,{children:["@",d.slug]}),s.jsx(u.Title,{children:d.name})]})]}),s.jsx(u.Footer,{children:s.jsxs("div",{className:"flex h-3.5 items-center text-xs text-muted-foreground",children:["Created:"," ",new Date(d.createdAt).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})]})})]},d.id),e[10]=i,e[11]=r):r=e[11],m=c.map(r),e[7]=c,e[8]=i,e[9]=m}else m=e[9];let x;return e[12]!==m?(x=s.jsx(I,{columns:o,children:m}),e[12]=m,e[13]=x):x=e[13],x}function fe(t){const e=f.c(3),{error:n}=t;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(Q,{size:24,className:"text-destructive"}),e[0]=l):l=e[0];let i;return e[1]!==n.message?(i=s.jsxs("div",{className:"flex flex-col items-center justify-center min-h-[400px] gap-4",children:[l,s.jsxs("div",{className:"text-sm text-muted-foreground text-center",children:["Error loading organizations: ",n.message]})]}),e[1]=n.message,e[2]=i):i=e[2],i}function ge(){const t=f.c(27),{error:e,isPending:n}=_.useListOrganizations(),[l,i]=C.useState(""),[a,c]=C.useState(!1),o=C.useDeferredValue(l);if(n){let j;return t[0]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx("div",{className:"max-w-6xl mx-auto p-8",children:s.jsx("div",{className:"@container",children:s.jsx(I.Skeleton,{count:8,columns:{sm:2,md:3,lg:4}})})}),t[0]=j):j=t[0],j}if(e){let j;return t[1]!==e?(j=s.jsx("div",{className:"max-w-6xl mx-auto p-8",children:s.jsx(fe,{error:e})}),t[1]=e,t[2]=j):j=t[2],j}let m;t[3]!==o?(m=s.jsx(C.Suspense,{fallback:null,children:s.jsx(xe,{query:o})}),t[3]=o,t[4]=m):m=t[4];let x;t[5]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx("h2",{className:"text-lg font-medium",children:"My organizations"}),t[5]=x):x=t[5];let r;t[6]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(T,{size:14,className:"absolute left-2.5 top-1/2 -translate-y-1/2 text-muted-foreground"}),t[6]=r):r=t[6];let d;t[7]===Symbol.for("react.memo_cache_sentinel")?(d=j=>i(j.target.value),t[7]=d):d=t[7];let g;t[8]!==l?(g=s.jsxs("div",{className:"relative",children:[r,s.jsx(U,{className:"pl-8 h-8 w-52 border-none shadow-none focus-visible:ring-0",placeholder:"Search organizations...",value:l,onChange:d})]}),t[8]=l,t[9]=g):g=t[9];let p;t[10]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsxs($,{size:"sm",onClick:()=>c(!0),children:[s.jsx(B,{size:16}),s.jsx("span",{children:"New organization"})]}),t[10]=p):p=t[10];let v;t[11]!==g?(v=s.jsxs("div",{className:"flex items-center justify-between pb-2 border-b border-border/50 mb-6 px-2",children:[x,s.jsxs("div",{className:"flex items-center gap-3",children:[g,p]})]}),t[11]=g,t[12]=v):v=t[12];let N;t[13]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx(I.Skeleton,{count:8,columns:{sm:2,md:3,lg:4}}),t[13]=N):N=t[13];let b;t[14]!==o?(b=s.jsx(C.Suspense,{fallback:N,children:s.jsx(ue,{query:o})}),t[14]=o,t[15]=b):b=t[15];let h;t[16]!==v||t[17]!==b?(h=s.jsxs("div",{children:[v,b]}),t[16]=v,t[17]=b,t[18]=h):h=t[18];let S;t[19]!==m||t[20]!==h?(S=s.jsxs("div",{className:"@container",children:[m,h]}),t[19]=m,t[20]=h,t[21]=S):S=t[21];let z;t[22]!==a?(z=s.jsx(P,{open:a,onOpenChange:c}),t[22]=a,t[23]=z):z=t[23];let A;return t[24]!==S||t[25]!==z?(A=s.jsxs("div",{className:"max-w-6xl mx-auto p-8",children:[S,z]}),t[24]=S,t[25]=z,t[26]=A):A=t[26],A}function Ee(){const t=f.c(4),e=R(),{data:n,isPending:l}=_.useListOrganizations();if(e.localMode){if(l){let c;return t[0]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(D,{}),t[0]=c):c=t[0],c}const a=n?.[0];if(a?.slug){const c=`/${a.slug}/org-admin`;let o;return t[1]!==c?(o=s.jsx(H,{to:c,replace:!0}),t[1]=c,t[2]=o):o=t[2],o}}let i;return t[3]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("div",{className:"min-h-full",children:s.jsx(ge,{})}),t[3]=i):i=t[3],i}export{Ee as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as z,au as D,j as s,J as C,y as J,ab as M,r as T,g as F,u as U,O as L,av as W,P as Z}from"./index-arVkExis.js";import{S as v}from"./skeleton-toLdhVeE.js";import{u as q}from"./use-project-B_pcPwo3.js";import{P as n}from"./index-C3ftP7Sl.js";import{b as u,d as B,B as O,a as R,e as E,c as G}from"./breadcrumb-d18jYUDM.js";import{n as K}from"./Container-BTi1js90.js";import{i as Q}from"./LayoutLeft-CxUeW5s7.js";import{t as V}from"./Settings01-DOl461Rl.js";import{i as X}from"./Zap-GxeXYlX_.js";import"./useQuery-DYrQlIK1.js";import"./constants-2xTOnIfa.js";import"./useMutation-CsmEWi-Q.js";import"./tooltip-CEipEk8R.js";import"./index-B4KuSVaI.js";import"./ChevronRight-DEonWml9.js";const Y=[{key:"general",label:"General",icon:s.jsx(V,{size:14})},{key:"dependencies",label:"Connections",icon:s.jsx(K,{size:14})},{key:"sidebar",label:"Sidebar",icon:s.jsx(Q,{size:14})},{key:"plugins",label:"Features",icon:s.jsx(X,{size:14})},{key:"danger",label:"Danger Zone",icon:s.jsx(M,{size:14})}];function ee(){const e=z.c(4),{location:l}=D();let r;e[0]!==l?(r=Y.map(i=>{const t=l.pathname.endsWith(`/settings/${i.key}`);return s.jsxs(C,{to:`/$org/$project/projects/$slug/settings/${i.key}`,className:J("flex items-center gap-2.5 px-2 py-1.5 rounded-md text-sm text-left w-full transition-colors",t?"bg-accent text-accent-foreground font-medium":"text-muted-foreground hover:bg-accent/50 hover:text-foreground"),children:[s.jsx("span",{className:"shrink-0",children:i.icon}),s.jsx("span",{className:"truncate",children:i.label})]},i.key)}),e[0]=l,e[1]=r):r=e[1];let o;return e[2]!==r?(o=s.jsx("div",{className:"w-52 shrink-0 border-r border-border bg-sidebar/50 overflow-y-auto py-3 flex flex-col gap-0.5 px-2",children:r}),e[2]=r,e[3]=o):o=e[3],o}function H(){const e=z.c(3);let l,r;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(v,{className:"h-6 w-48"}),r=s.jsx(v,{className:"h-4 w-80"}),e[0]=l,e[1]=r):(l=e[0],r=e[1]);let o;return e[2]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsxs("div",{className:"flex flex-col gap-4 pt-2",children:[l,r,s.jsxs("div",{className:"mt-4 flex flex-col gap-3",children:[s.jsx(v,{className:"h-12 w-full"}),s.jsx(v,{className:"h-12 w-full"})]})]}),e[2]=o):o=e[2],o}function se(){const e=z.c(41);let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={strict:!1},e[0]=l):l=e[0];const r=F(l),{org:o}=U(),i=r.slug,{data:t,isLoading:A}=q(o.id,i);if(A||!t){let x;e[1]!==r.org?(x=s.jsx(u,{children:s.jsx(B,{asChild:!0,children:s.jsx(C,{to:"/$org/$project/projects",params:{org:r.org,project:L},children:"Projects"})})}),e[1]=r.org,e[2]=x):x=e[2];let P;e[3]===Symbol.for("react.memo_cache_sentinel")?(P=s.jsx(E,{}),e[3]=P):P=e[3];let $;e[4]===Symbol.for("react.memo_cache_sentinel")?($=s.jsx(u,{children:s.jsx(G,{children:"Settings"})}),e[4]=$):$=e[4];let f;e[5]!==x?(f=s.jsx(n.Header,{children:s.jsx(n.Header.Left,{children:s.jsx(O,{children:s.jsxs(R,{children:[x,P,$]})})})}),e[5]=x,e[6]=f):f=e[6];let k;e[7]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx(n.Content,{children:s.jsx("div",{className:"p-8",children:s.jsx(H,{})})}),e[7]=k):k=e[7];let N;return e[8]!==f?(N=s.jsxs(n,{children:[f,k]}),e[8]=f,e[9]=N):N=e[9],N}const w=t.slug===L;let g;e[10]!==t.description||e[11]!==t.enabledPlugins||e[12]!==t.id||e[13]!==t.name||e[14]!==t.organizationId||e[15]!==t.slug||e[16]!==t.ui||e[17]!==w?(g={id:t.id,organizationId:t.organizationId,slug:t.slug,name:t.name,description:t.description,enabledPlugins:t.enabledPlugins,ui:t.ui,isOrgAdmin:w},e[10]=t.description,e[11]=t.enabledPlugins,e[12]=t.id,e[13]=t.name,e[14]=t.organizationId,e[15]=t.slug,e[16]=t.ui,e[17]=w,e[18]=g):g=e[18];const I=g;let a;e[19]!==r.org?(a=s.jsx(u,{children:s.jsx(B,{asChild:!0,children:s.jsx(C,{to:"/$org/$project/projects",params:{org:r.org,project:L},children:"Projects"})})}),e[19]=r.org,e[20]=a):a=e[20];let h;e[21]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsx(E,{}),e[21]=h):h=e[21];let c;e[22]!==r.org||e[23]!==t.slug?(c={org:r.org,project:t.slug},e[22]=r.org,e[23]=t.slug,e[24]=c):c=e[24];let m;e[25]!==t.name||e[26]!==c?(m=s.jsx(u,{children:s.jsx(B,{asChild:!0,children:s.jsx(C,{to:"/$org/$project",params:c,children:t.name})})}),e[25]=t.name,e[26]=c,e[27]=m):m=e[27];let p;e[28]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsx(E,{}),e[28]=p):p=e[28];let b;e[29]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(u,{children:s.jsx(G,{children:"Settings"})}),e[29]=b):b=e[29];let d;e[30]!==a||e[31]!==m?(d=s.jsx(n.Header,{children:s.jsx(n.Header.Left,{children:s.jsx(O,{children:s.jsxs(R,{children:[a,h,m,p,b]})})})}),e[30]=a,e[31]=m,e[32]=d):d=e[32];let S;e[33]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx(ee,{}),e[33]=S):S=e[33];let _;e[34]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsxs(n.Content,{className:"flex",children:[S,s.jsx("div",{className:"flex-1 overflow-y-auto p-8",children:s.jsx(T.Suspense,{fallback:s.jsx(H,{}),children:s.jsx(W,{})})})]}),e[34]=_):_=e[34];let j;e[35]!==d?(j=s.jsxs(n,{children:[d,_]}),e[35]=d,e[36]=j):j=e[36];let y;return e[37]!==I||e[38]!==o||e[39]!==j?(y=s.jsx(Z,{org:o,project:I,children:j}),e[37]=I,e[38]=o,e[39]=j,e[40]=y):y=e[40],y}function he(){const e=z.c(1);let l;return e[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(T.Suspense,{fallback:null,children:s.jsx(se,{})}),e[0]=l):l=e[0],l}export{he as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as r,j as i}from"./index-arVkExis.js";import{P as m}from"./project-plugins-D96ln6e5.js";import"./useQuery-DYrQlIK1.js";import"./useMutation-CsmEWi-Q.js";import"./constants-2xTOnIfa.js";import"./switch-B0R9LaZN.js";import"./label-CYg2MwFH.js";import"./Container-BTi1js90.js";import"./use-connection-DofMW1yq.js";import"./use-collections-Cw5P_4lQ.js";import"./registry-utils-BiqLS082.js";import"./binder-BeGcEVr1.js";import"./use-install-from-registry-GeE-5B5A.js";import"./extract-connection-data-D-dHrcF1.js";import"./constants-eOfc_ksY.js";import"./generate-id-Dyweu44Y.js";import"./Loading01-DxSeN67O.js";import"./Plus-Bsw2xx3c.js";import"./select-DgOkL7kV.js";import"./ChevronUp-D3BUkjtX.js";import"./index-B4KuSVaI.js";import"./Check-DnuqdVIb.js";import"./ChevronDown-BGYYwpml.js";function q(){const o=r.c(1);let t;return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=i.jsx(m,{}),o[0]=t):t=o[0],t}export{q as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as A,c as w,f as Q,j as s,y as H,w as K,o as ne,n as E,e as J,u as W,x as ie,t as re,q as ae,K as Y,B as F,O as I,P as ee,S as V,g as ce,av as me}from"./index-arVkExis.js";import{u as te}from"./use-project-B_pcPwo3.js";import{D as de,c as fe,d as ue}from"./dialog-MKggjCdI.js";import{i as pe}from"./X-D-hccS2q.js";import{S as M}from"./skeleton-toLdhVeE.js";import{i as xe,u as he,a as ge,O as je}from"./org-ai-providers-BMiTYNS_.js";import{A as se}from"./avatar-BV0YYD73.js";import{t as be}from"./Building02-D7Hfwrk4.js";import{t as ye}from"./Settings01-DOl461Rl.js";import{t as ve}from"./Users03-DFk8QutD.js";import{i as Se}from"./Zap-GxeXYlX_.js";import{a as Ne,b as _e,c as ke,T as Ce}from"./tooltip-CEipEk8R.js";import{i as we}from"./Check-DnuqdVIb.js";import{a as ze}from"./Copy01-DG9TIebr.js";import{S as T}from"./switch-B0R9LaZN.js";import{S as Pe,a as Ae,d as D,c as $e}from"./select-DgOkL7kV.js";import{i as Ie}from"./Code01-C9q2vUXt.js";import{s as Oe}from"./RefreshCcw01-BU2NGbmd.js";import{i as Me}from"./Shield01-C5KXW9qT.js";import"./index-DeLtuFdF.js";import{u as Le}from"./useMutation-CsmEWi-Q.js";import{a as Fe,F as q,b as U,c as R,d as G,f as B,e as Ee}from"./form-D0i7a49m.js";import{I as Z}from"./input-BQT91Y-t.js";import{L as Te}from"./logo-upload-BMApr9Pu.js";import{P as De}from"./project-plugins-D96ln6e5.js";import qe from"./members-DnctGzaQ.js";import"./useQuery-DYrQlIK1.js";import"./constants-2xTOnIfa.js";import"./index-C3ftP7Sl.js";import"./AlertCircle-C1aHEN6f.js";import"./EyeOff-BZvotA6E.js";import"./Eye-TnopHMFL.js";import"./Key01-B7vWLx8d.js";import"./Trash01-DxNUrtVd.js";import"./card-742ND_Cc.js";import"./toggle-group-Bp4K1sba.js";import"./popover-nQ7We-Lc.js";import"./ai-providers-logos-C04Mmt5f.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./index-B4KuSVaI.js";import"./ChevronUp-D3BUkjtX.js";import"./ChevronDown-BGYYwpml.js";import"./label-CYg2MwFH.js";import"./Upload01-M2vItn3G.js";import"./Container-BTi1js90.js";import"./use-connection-DofMW1yq.js";import"./use-collections-Cw5P_4lQ.js";import"./registry-utils-BiqLS082.js";import"./binder-BeGcEVr1.js";import"./use-install-from-registry-GeE-5B5A.js";import"./extract-connection-data-D-dHrcF1.js";import"./constants-eOfc_ksY.js";import"./generate-id-Dyweu44Y.js";import"./Loading01-DxSeN67O.js";import"./Plus-Bsw2xx3c.js";import"./collection-display-button-j5LCiK0Q.js";import"./dropdown-menu-CMlIw-S-.js";import"./ChevronRight-DEonWml9.js";import"./ArrowDown-C0InARXN.js";import"./ArrowUp-C0J0tyPV.js";import"./Grid01-DcS7oWbb.js";import"./List-Bw34PFLC.js";import"./badge-BWycpk7k.js";import"./collection-search-CtXFaqLY.js";import"./SearchMd-CEm1UsrH.js";import"./breadcrumb-d18jYUDM.js";import"./collection-table-wrapper-BoVsVa0v.js";import"./table-C_YImEQc.js";import"./integration-icon-Bi_79Mu8.js";import"./checkbox-BVAXPERq.js";import"./ArrowLeft-CMmSGoxl.js";import"./use-members-BZW0Us6o.js";import"./alert-dialog-BwyEkhM2.js";import"./DotsHorizontal-BRV7NN7Z.js";import"./Lock01-Ct-zRKhn.js";import"./empty-state-DubYd6zZ.js";import"./textarea-CHvp5lgM.js";import"./DotsVertical-HMX94wM4.js";import"./XClose-kThV85vf.js";import"./command-CI-Xkj2M.js";import"./index-CT-P03Yf.js";const oe=({size:e=24,color:t="currentColor",...n})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},A.createElement("path",{d:"M9.354 21c.705.622 1.632 1 2.646 1s1.94-.378 2.646-1M18 8A6 6 0 1 0 6 8c0 3.09-.78 5.206-1.65 6.605-.735 1.18-1.102 1.771-1.089 1.936.015.182.054.252.2.36.133.099.732.099 1.928.099H18.61c1.196 0 1.795 0 1.927-.098.147-.11.186-.179.2-.361.014-.165-.353-.755-1.088-1.936C18.78 13.206 18 11.09 18 8Z"}));oe.displayName="Bell01";function Ue(e){const t=w.c(26),{activeSection:n,onNavigate:o}=e,{data:a}=Q.useSession(),i=a?.user,l=i?.image,m=i?.name??"Profile",c=i?.name??"U";let f;t[0]!==c||t[1]!==l?(f=s.jsx(se,{url:l,fallback:c,shape:"circle",size:"2xs",className:"size-4 shrink-0"}),t[0]=c,t[1]=l,t[2]=f):f=t[2];let r;t[3]!==m||t[4]!==f?(r={key:"account.profile",label:m,icon:f},t[3]=m,t[4]=f,t[5]=r):r=t[5];let u;t[6]===Symbol.for("react.memo_cache_sentinel")?(u={key:"account.preferences",label:"Preferences",icon:s.jsx(ye,{size:14})},t[6]=u):u=t[6];let p;t[7]!==r?(p=[r,u],t[7]=r,t[8]=p):p=t[8];const h=p;let x;t[9]===Symbol.for("react.memo_cache_sentinel")?(x={key:"org.general",label:"General",icon:s.jsx(be,{size:14})},t[9]=x):x=t[9];let d;t[10]===Symbol.for("react.memo_cache_sentinel")?(d={key:"org.plugins",label:"Features",icon:s.jsx(Se,{size:14})},t[10]=d):d=t[10];let g;t[11]===Symbol.for("react.memo_cache_sentinel")?(g={key:"org.ai-providers",label:"AI Providers",icon:s.jsx(xe,{size:14})},t[11]=g):g=t[11];let j;t[12]===Symbol.for("react.memo_cache_sentinel")?(j=[x,d,g,{key:"org.members",label:"Members",icon:s.jsx(ve,{size:14})}],t[12]=j):j=t[12];const _=j;let y;t[13]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx("p",{className:"px-2 py-1.5 text-xs font-semibold text-muted-foreground/60",children:"Account"}),t[13]=y):y=t[13];let b;t[14]!==h||t[15]!==n||t[16]!==o?(b=s.jsxs("div",{className:"flex flex-col gap-0.5 px-2",children:[y,h.map(v=>s.jsxs("button",{type:"button",onClick:()=>o(v.key),className:H("flex items-center gap-2.5 px-2 py-1.5 rounded-md text-sm text-left w-full transition-colors",n===v.key?"bg-accent text-accent-foreground font-medium":"text-muted-foreground hover:bg-accent/50 hover:text-foreground"),children:[s.jsx("span",{className:"shrink-0",children:v.icon}),s.jsx("span",{className:"truncate",children:v.label})]},v.key))]}),t[14]=h,t[15]=n,t[16]=o,t[17]=b):b=t[17];let N;t[18]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx("p",{className:"px-2 py-1.5 text-xs font-semibold text-muted-foreground/60",children:"Organization"}),t[18]=N):N=t[18];let S;t[19]!==n||t[20]!==o?(S=s.jsxs("div",{className:"flex flex-col gap-0.5 px-2",children:[N,_.map(v=>s.jsxs("button",{type:"button",onClick:()=>o(v.key),className:H("flex items-center gap-2.5 px-2 py-1.5 rounded-md text-sm text-left w-full transition-colors",n===v.key?"bg-accent text-accent-foreground font-medium":"text-muted-foreground hover:bg-accent/50 hover:text-foreground"),children:[s.jsx("span",{className:"shrink-0",children:v.icon}),s.jsx("span",{className:"truncate",children:v.label})]},v.key))]}),t[19]=n,t[20]=o,t[21]=S):S=t[21];let C;t[22]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx("div",{className:"mt-auto px-4 pb-1",children:s.jsxs("span",{className:"text-xs text-muted-foreground/50",children:["v","2.175.9"]})}),t[22]=C):C=t[22];let k;return t[23]!==b||t[24]!==S?(k=s.jsxs("div",{className:"w-52 shrink-0 border-r border-border bg-sidebar/50 overflow-y-auto py-3 flex flex-col gap-4",children:[b,S,C]}),t[23]=b,t[24]=S,t[25]=k):k=t[25],k}function Re(){const e=w.c(32),{data:t}=Q.useSession(),[n,o]=A.useState(!1),a=t?.user,i=a?.image;let l;e[0]!==a?(l=()=>{a?.id&&navigator.clipboard.writeText(a.id).then(()=>{o(!0),setTimeout(()=>o(!1),2e3)})},e[0]=a,e[1]=l):l=e[1];const m=l;let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx("div",{children:s.jsx("h2",{className:"text-base font-semibold text-foreground",children:"Profile"})}),e[2]=c):c=e[2];const f=a?.name??"U";let r;e[3]!==f||e[4]!==i?(r=s.jsx(se,{url:i,fallback:f,shape:"circle",size:"xl",className:"size-16 shrink-0"}),e[3]=f,e[4]=i,e[5]=r):r=e[5];const u=a?.name??"User";let p;e[6]!==u?(p=s.jsx("span",{className:"text-sm font-semibold text-foreground truncate",children:u}),e[6]=u,e[7]=p):p=e[7];const h=a?.email;let x;e[8]!==h?(x=s.jsx("span",{className:"text-sm text-muted-foreground truncate",children:h}),e[8]=h,e[9]=x):x=e[9];let d;e[10]!==p||e[11]!==x?(d=s.jsxs("div",{className:"flex flex-col gap-1 min-w-0",children:[p,x]}),e[10]=p,e[11]=x,e[12]=d):d=e[12];let g;e[13]!==r||e[14]!==d?(g=s.jsxs("div",{className:"flex items-center gap-4",children:[r,d]}),e[13]=r,e[14]=d,e[15]=g):g=e[15];let j;e[16]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx("p",{className:"py-4 text-base font-semibold text-foreground border-b border-border",children:"User ID"}),e[16]=j):j=e[16];let _;e[17]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx("p",{className:"text-sm text-muted-foreground",children:"User ID"}),e[17]=_):_=e[17];const y=a?.id;let b;e[18]!==y?(b=s.jsx("span",{className:"font-mono text-sm",children:y}),e[18]=y,e[19]=b):b=e[19];let N;e[20]!==n?(N=n?s.jsx(we,{size:14,className:"text-green-600 shrink-0"}):s.jsx(ze,{size:14,className:"shrink-0 opacity-70 group-hover:opacity-100 transition-opacity"}),e[20]=n,e[21]=N):N=e[21];let S;e[22]!==m||e[23]!==b||e[24]!==N?(S=s.jsx(Ne,{asChild:!0,children:s.jsxs("button",{type:"button",onClick:m,className:"group flex items-center gap-2 text-muted-foreground hover:text-foreground transition-colors",children:[b,N]})}),e[22]=m,e[23]=b,e[24]=N,e[25]=S):S=e[25];let C;e[26]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(_e,{side:"left",children:s.jsx("p",{className:"text-xs",children:"Copy user ID"})}),e[26]=C):C=e[26];let k;e[27]!==S?(k=s.jsxs("div",{className:"flex flex-col",children:[j,s.jsxs("div",{className:"flex items-center justify-between gap-6 py-4",children:[_,s.jsx(ke,{children:s.jsxs(Ce,{children:[S,C]})})]})]}),e[27]=S,e[28]=k):k=e[28];let v;return e[29]!==k||e[30]!==g?(v=s.jsxs("div",{className:"flex flex-col gap-8",children:[c,g,k]}),e[29]=k,e[30]=g,e[31]=v):v=e[31],v}function L(e){const t=w.c(27),{icon:n,label:o,description:a,control:i,onClick:l,disabled:m}=e,c=m?void 0:l,f=l?"button":void 0,r=l&&!m?0:void 0;let u;t[0]!==m||t[1]!==l?(u=l&&!m?N=>{(N.key==="Enter"||N.key===" ")&&(N.preventDefault(),l())}:void 0,t[0]=m,t[1]=l,t[2]=u):u=t[2];const p=l&&!m?"pointer":void 0;let h;t[3]!==p?(h={cursor:p},t[3]=p,t[4]=h):h=t[4];let x;t[5]!==n?(x=s.jsx("span",{className:"text-muted-foreground mt-0.5 shrink-0",children:n}),t[5]=n,t[6]=x):x=t[6];let d;t[7]!==o?(d=s.jsx("p",{className:"text-sm font-medium text-foreground",children:o}),t[7]=o,t[8]=d):d=t[8];let g;t[9]!==a?(g=s.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 leading-relaxed",children:a}),t[9]=a,t[10]=g):g=t[10];let j;t[11]!==d||t[12]!==g?(j=s.jsxs("div",{className:"min-w-0",children:[d,g]}),t[11]=d,t[12]=g,t[13]=j):j=t[13];let _;t[14]!==j||t[15]!==x?(_=s.jsxs("div",{className:"flex items-start gap-3 min-w-0 flex-1",children:[x,j]}),t[14]=j,t[15]=x,t[16]=_):_=t[16];let y;t[17]!==i?(y=s.jsx("div",{onClick:Ge,className:"shrink-0",children:i}),t[17]=i,t[18]=y):y=t[18];let b;return t[19]!==c||t[20]!==_||t[21]!==y||t[22]!==f||t[23]!==r||t[24]!==u||t[25]!==h?(b=s.jsxs("div",{className:"flex items-center justify-between gap-6 py-4 border-b border-border last:border-0",onClick:c,role:f,tabIndex:r,onKeyDown:u,style:h,children:[_,y]}),t[19]=c,t[20]=_,t[21]=y,t[22]=f,t[23]=r,t[24]=u,t[25]=h,t[26]=b):b=t[26],b}function Ge(e){return e.stopPropagation()}function X(){const e=w.c(47),[t,n]=he();let o;e[0]!==n?(o=async z=>{if(z&&await Notification.requestPermission()!=="granted"){K.error("Notifications denied. Please enable them in your browser settings."),n(Ve);return}n(P=>({...P,enableNotifications:z}))},e[0]=n,e[1]=o):o=e[1];const a=o;let i;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("div",{children:s.jsx("h2",{className:"text-base font-semibold text-foreground",children:"Preferences"})}),e[2]=i):i=e[2];let l;e[3]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(Ie,{size:16}),e[3]=l):l=e[3];let m;e[4]!==n?(m=()=>n(Ke),e[4]=n,e[5]=m):m=e[5];let c;e[6]!==n?(c=z=>n(P=>({...P,devMode:z})),e[6]=n,e[7]=c):c=e[7];let f;e[8]!==t.devMode||e[9]!==c?(f=s.jsx(T,{checked:t.devMode,onCheckedChange:c}),e[8]=t.devMode,e[9]=c,e[10]=f):f=e[10];let r;e[11]!==m||e[12]!==f?(r=s.jsx(L,{icon:l,label:"Developer Mode",description:"Show technical details like JSON input/output for tool calls.",onClick:m,control:f}),e[11]=m,e[12]=f,e[13]=r):r=e[13];let u;e[14]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx(oe,{size:16}),e[14]=u):u=e[14];let p;e[15]!==a||e[16]!==t.enableNotifications?(p=s.jsx(L,{icon:u,label:"Notifications",description:"Play a sound and show a notification when chat messages complete while the app is unfocused.",disabled:typeof Notification>"u",onClick:()=>a(!t.enableNotifications),control:s.jsx(T,{disabled:typeof Notification>"u",checked:t.enableNotifications,onCheckedChange:a})}),e[15]=a,e[16]=t.enableNotifications,e[17]=p):p=e[17];let h;e[18]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsx(Oe,{size:16}),e[18]=h):h=e[18];let x;e[19]!==n?(x=()=>n(Be),e[19]=n,e[20]=x):x=e[20];let d;e[21]!==n?(d=z=>n(P=>({...P,experimentalAutomations:z})),e[21]=n,e[22]=d):d=e[22];let g;e[23]!==t.experimentalAutomations||e[24]!==d?(g=s.jsx(T,{checked:t.experimentalAutomations,onCheckedChange:d}),e[23]=t.experimentalAutomations,e[24]=d,e[25]=g):g=e[25];let j;e[26]!==x||e[27]!==g?(j=s.jsx(L,{icon:h,label:"Experimental: Automations",description:"Enable the Automations feature in the sidebar. This is an experimental feature under active development.",onClick:x,control:g}),e[26]=x,e[27]=g,e[28]=j):j=e[28];let _;e[29]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx(Me,{size:16}),e[29]=_):_=e[29];let y;e[30]!==n?(y=z=>n(P=>({...P,toolApprovalLevel:z})),e[30]=n,e[31]=y):y=e[31];let b;e[32]===Symbol.for("react.memo_cache_sentinel")?(b={none:"Always ask",readonly:"Skip read-only",yolo:"Auto-approve all"},e[32]=b):b=e[32];const N=b[t.toolApprovalLevel];let S;e[33]!==N?(S=s.jsx(Ae,{className:"w-36",children:s.jsx("span",{children:N})}),e[33]=N,e[34]=S):S=e[34];let C;e[35]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(D,{value:"none",textValue:"Always ask",children:s.jsxs("div",{className:"flex flex-col gap-0.5",children:[s.jsx("span",{className:"font-medium",children:"Always ask"}),s.jsx("span",{className:"text-xs text-muted-foreground",children:"Require approval for all tool calls"})]})}),e[35]=C):C=e[35];let k;e[36]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx(D,{value:"readonly",textValue:"Skip read-only",children:s.jsxs("div",{className:"flex flex-col gap-0.5",children:[s.jsx("span",{className:"font-medium",children:"Skip read-only"}),s.jsx("span",{className:"text-xs text-muted-foreground",children:"Auto-approve read-only tools"})]})}),e[36]=k):k=e[36];let v;e[37]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsxs($e,{children:[C,k,s.jsx(D,{value:"yolo",textValue:"Auto-approve all",children:s.jsxs("div",{className:"flex flex-col gap-0.5",children:[s.jsx("span",{className:"font-medium",children:"Auto-approve all"}),s.jsx("span",{className:"text-xs text-muted-foreground",children:"Execute all tools without approval"})]})})]}),e[37]=v):v=e[37];let $;e[38]!==t.toolApprovalLevel||e[39]!==y||e[40]!==S?($=s.jsx(L,{icon:_,label:"Tool Approval",description:"Choose when to require approval before tools execute.",control:s.jsxs(Pe,{value:t.toolApprovalLevel,onValueChange:y,children:[S,v]})}),e[38]=t.toolApprovalLevel,e[39]=y,e[40]=S,e[41]=$):$=e[41];let O;return e[42]!==j||e[43]!==$||e[44]!==r||e[45]!==p?(O=s.jsxs("div",{className:"flex flex-col gap-6",children:[i,s.jsxs("div",{className:"flex flex-col",children:[r,p,j,$]})]}),e[42]=j,e[43]=$,e[44]=r,e[45]=p,e[46]=O):O=e[46],O}function Be(e){return{...e,experimentalAutomations:!e.experimentalAutomations}}function Ke(e){return{...e,devMode:!e.devMode}}function Ve(e){return{...e,enableNotifications:!1}}const Qe=ne({name:E().min(1,"Name is required").max(255,"Name is too long"),slug:E().min(1,"Slug is required").max(50,"Slug is too long").regex(/^[a-z0-9-]+$/,"Slug must contain only lowercase letters, numbers, and hyphens"),logo:E().optional()});function Je(){const e=J(),{org:t,project:n}=W(),o=ie(),[a,i]=A.useState(!1),l=re({resolver:ae(Qe),values:{name:t.name??"",slug:t.slug??"",logo:t.logo??""}}),m=Le({mutationFn:async r=>{const u={name:r.name,slug:r.slug};r.logo&&(u.logo=r.logo);const p=await Q.organization.update({organizationId:t.id,data:u});if(p?.error)throw new Error(p.error.message||"Failed to update organization");return p},onSuccess:r=>{o.invalidateQueries({queryKey:Y.organizations()}),o.invalidateQueries({queryKey:Y.activeOrganization(t.slug)}),K.success("Organization settings updated successfully"),r?.data?.slug&&r.data.slug!==t.slug&&e({to:"/$org/$project/settings",params:{org:r.data.slug,project:n.slug}})},onError:r=>{K.error(r instanceof Error?r.message:"Failed to update organization")},onSettled:()=>{i(!1)}}),c=r=>{i(!0),m.mutate(r)},f=l.formState.isDirty;return s.jsx(Fe,{...l,children:s.jsxs("form",{onSubmit:l.handleSubmit(c),className:"space-y-6",children:[s.jsx(q,{control:l.control,name:"name",render:({field:r})=>s.jsxs(U,{children:[s.jsx(R,{children:"Organization Name"}),s.jsx(G,{children:s.jsx(Z,{placeholder:"My Organization",...r,disabled:a})}),s.jsx(B,{})]})}),s.jsx(q,{control:l.control,name:"slug",render:({field:r})=>s.jsxs(U,{children:[s.jsx(R,{children:"Organization Slug"}),s.jsx(G,{children:s.jsx(Z,{placeholder:"my-organization",...r,disabled:a,onChange:u=>{const p=u.target.value.toLowerCase().replace(/[^a-z0-9-]/g,"");r.onChange(p)}})}),s.jsx(Ee,{children:"Used in URLs. Only lowercase letters, numbers, and hyphens are allowed."}),s.jsx(B,{})]})}),s.jsx(q,{control:l.control,name:"logo",render:({field:r})=>s.jsxs(U,{children:[s.jsx(R,{children:"Logo"}),s.jsx(G,{children:s.jsx(Te,{value:r.value,onChange:r.onChange,name:l.watch("name"),disabled:a})}),s.jsx(B,{})]})}),s.jsxs("div",{className:"flex items-center gap-3 pt-4",children:[s.jsx(F,{type:"submit",disabled:!f||a,className:"min-w-24",children:a?"Saving...":"Save Changes"}),f&&s.jsx(F,{type:"button",variant:"outline",onClick:()=>l.reset(),disabled:a,children:"Cancel"})]})]})})}function We(){const e=w.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsxs("div",{className:"flex flex-col gap-6",children:[s.jsx("div",{children:s.jsx("h2",{className:"text-base font-semibold text-foreground",children:"Organization"})}),s.jsx(Je,{})]}),e[0]=t):t=e[0],t}function He(){const e=w.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(qe,{}),e[0]=t):t=e[0],t}function le(){const e=w.c(3);let t,n;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(M,{className:"h-6 w-48"}),n=s.jsx(M,{className:"h-4 w-80"}),e[0]=t,e[1]=n):(t=e[0],n=e[1]);let o;return e[2]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsxs("div",{className:"flex flex-col gap-4 pt-2",children:[t,n,s.jsxs("div",{className:"mt-4 flex flex-col gap-3",children:[s.jsx(M,{className:"h-12 w-full"}),s.jsx(M,{className:"h-12 w-full"})]})]}),e[2]=o):o=e[2],o}function Ye(e){const t=w.c(14),{projectSlug:n,children:o}=e,{org:a}=W(),{data:i,isLoading:l}=te(a.id,n);if(l||!i){let u;return t[0]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx(le,{}),t[0]=u):u=t[0],u}const m=n===I;let c;t[1]!==i.description||t[2]!==i.enabledPlugins||t[3]!==i.id||t[4]!==i.name||t[5]!==i.organizationId||t[6]!==i.slug||t[7]!==i.ui||t[8]!==m?(c={id:i.id,organizationId:i.organizationId,slug:i.slug,name:i.name,description:i.description,enabledPlugins:i.enabledPlugins,ui:i.ui,isOrgAdmin:m},t[1]=i.description,t[2]=i.enabledPlugins,t[3]=i.id,t[4]=i.name,t[5]=i.organizationId,t[6]=i.slug,t[7]=i.ui,t[8]=m,t[9]=c):c=t[9];const f=c;let r;return t[10]!==o||t[11]!==f||t[12]!==a?(r=s.jsx(ee,{org:a,project:f,children:o}),t[10]=o,t[11]=f,t[12]=a,t[13]=r):r=t[13],r}function Ze(e){const t=w.c(7),{section:n}=e;switch(n){case"account.profile":{let o;return t[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(Re,{}),t[0]=o):o=t[0],o}case"account.preferences":{let o;return t[1]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(X,{}),t[1]=o):o=t[1],o}case"org.general":{let o;return t[2]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(We,{}),t[2]=o):o=t[2],o}case"org.plugins":{let o;return t[3]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(Ye,{projectSlug:I,children:s.jsx(De,{})}),t[3]=o):o=t[3],o}case"org.ai-providers":{let o;return t[4]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(je,{}),t[4]=o):o=t[4],o}case"org.members":{let o;return t[5]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(He,{}),t[5]=o):o=t[5],o}default:{let o;return t[6]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(X,{}),t[6]=o):o=t[6],o}}}function Xe(){const e=w.c(24),{isOpen:t,activeSection:n,open:o,close:a}=ge();let i;e[0]!==a?(i=j=>!j&&a(),e[0]=a,e[1]=i):i=e[1];let l;e[2]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(de,{className:"sr-only",children:"Settings"}),e[2]=l):l=e[2];let m;e[3]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx("div",{className:"w-52 shrink-0 border-r border-border"}),e[3]=m):m=e[3];let c;e[4]!==n||e[5]!==o?(c=s.jsx(A.Suspense,{fallback:m,children:s.jsx(Ue,{activeSection:n,onNavigate:o})}),e[4]=n,e[5]=o,e[6]=c):c=e[6];let f,r;e[7]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(pe,{size:16}),r=s.jsx("span",{className:"sr-only",children:"Close"}),e[7]=f,e[8]=r):(f=e[7],r=e[8]);let u;e[9]!==a?(u=s.jsxs("button",{type:"button",onClick:a,className:"absolute top-4 right-4 z-10 rounded-md p-1 opacity-70 hover:opacity-100 transition-opacity focus:outline-none focus:ring-2 focus:ring-ring",children:[f,r]}),e[9]=a,e[10]=u):u=e[10];let p;e[11]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsx(le,{}),e[11]=p):p=e[11];let h;e[12]!==n?(h=s.jsx("div",{className:"p-8",children:s.jsx(A.Suspense,{fallback:p,children:s.jsx(Ze,{section:n})})}),e[12]=n,e[13]=h):h=e[13];let x;e[14]!==u||e[15]!==h?(x=s.jsxs("div",{className:"flex-1 min-w-0 overflow-y-auto relative flex flex-col overflow-hidden",children:[u,h]}),e[14]=u,e[15]=h,e[16]=x):x=e[16];let d;e[17]!==c||e[18]!==x?(d=s.jsxs(fe,{className:"sm:max-w-[1100px] h-[85vh] p-0 overflow-hidden flex flex-col gap-0",closeButtonClassName:"hidden",children:[l,s.jsxs("div",{className:"flex flex-1 min-h-0 overflow-hidden",children:[c,x]})]}),e[17]=c,e[18]=x,e[19]=d):d=e[19];let g;return e[20]!==t||e[21]!==i||e[22]!==d?(g=s.jsx(ue,{open:t,onOpenChange:i,children:d}),e[20]=t,e[21]=i,e[22]=d,e[23]=g):g=e[23],g}function et(e){const t=w.c(12),{projectSlug:n,orgSlug:o,error:a}=e,i=J();let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx("h1",{className:"text-xl font-semibold",children:"Failed to load project"}),t[0]=l):l=t[0];let m;t[1]!==n?(m=s.jsxs("p",{className:"text-muted-foreground text-center",children:['There was an error loading the project "',n,'".']}),t[1]=n,t[2]=m):m=t[2];let c;t[3]!==a.message?(c=s.jsx("p",{className:"text-sm text-muted-foreground",children:a.message}),t[3]=a.message,t[4]=c):c=t[4];let f;t[5]!==i||t[6]!==o?(f=s.jsx(F,{variant:"link",onClick:()=>i({to:"/$org/$project",params:{org:o,project:I}}),children:"Go to organization home"}),t[5]=i,t[6]=o,t[7]=f):f=t[7];let r;return t[8]!==m||t[9]!==c||t[10]!==f?(r=s.jsxs("div",{className:"flex flex-col items-center justify-center h-full gap-4 p-8",children:[l,m,c,f]}),t[8]=m,t[9]=c,t[10]=f,t[11]=r):r=t[11],r}function tt(e){const t=w.c(9),{projectSlug:n,orgSlug:o}=e,a=J();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("h1",{className:"text-xl font-semibold",children:"Project not found"}),t[0]=i):i=t[0];let l;t[1]!==n?(l=s.jsxs("p",{className:"text-muted-foreground text-center",children:['The project "',n,'" does not exist in this organization.']}),t[1]=n,t[2]=l):l=t[2];let m;t[3]!==a||t[4]!==o?(m=s.jsx(F,{variant:"link",onClick:()=>a({to:"/$org/$project",params:{org:o,project:I}}),children:"Go to organization home"}),t[3]=a,t[4]=o,t[5]=m):m=t[5];let c;return t[6]!==l||t[7]!==m?(c=s.jsxs("div",{className:"flex flex-col items-center justify-center h-full gap-4 p-8",children:[i,l,m]}),t[6]=l,t[7]=m,t[8]=c):c=t[8],c}function st(){const e=w.c(23);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const n=ce(t),{org:o}=W(),a=n.org,i=n.project,{data:l,isLoading:m,error:c}=te(o.id,i);if(m){let d;return e[1]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(V,{}),e[1]=d):d=e[1],d}if(c){let d;return e[2]!==c||e[3]!==a||e[4]!==i?(d=s.jsx(et,{projectSlug:i,orgSlug:a,error:c}),e[2]=c,e[3]=a,e[4]=i,e[5]=d):d=e[5],d}if(!l){let d;return e[6]!==a||e[7]!==i?(d=s.jsx(tt,{projectSlug:i,orgSlug:a}),e[6]=a,e[7]=i,e[8]=d):d=e[8],d}const f=l.slug===I;let r;e[9]!==l.description||e[10]!==l.enabledPlugins||e[11]!==l.id||e[12]!==l.name||e[13]!==l.organizationId||e[14]!==l.slug||e[15]!==l.ui||e[16]!==f?(r={id:l.id,organizationId:l.organizationId,slug:l.slug,name:l.name,description:l.description,enabledPlugins:l.enabledPlugins,ui:l.ui,isOrgAdmin:f},e[9]=l.description,e[10]=l.enabledPlugins,e[11]=l.id,e[12]=l.name,e[13]=l.organizationId,e[14]=l.slug,e[15]=l.ui,e[16]=f,e[17]=r):r=e[17];const u=r;let p,h;e[18]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsx(A.Suspense,{fallback:s.jsx(V,{}),children:s.jsx(me,{})}),h=s.jsx(Xe,{}),e[18]=p,e[19]=h):(p=e[18],h=e[19]);let x;return e[20]!==u||e[21]!==o?(x=s.jsxs(ee,{org:o,project:u,children:[p,h]}),e[20]=u,e[21]=o,e[22]=x):x=e[22],x}function $s(){const e=w.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(A.Suspense,{fallback:s.jsx(V,{}),children:s.jsx(st,{})}),e[0]=t):t=e[0],t}export{$s as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{bi as G,c as O,u as H,y as J,j as s,J as M,r as I,e as V,B as R,O as U}from"./index-arVkExis.js";import{a as q}from"./use-project-B_pcPwo3.js";import{P as D}from"./index-C3ftP7Sl.js";import{C as F}from"./collection-search-CtXFaqLY.js";import{A as K}from"./avatar-BV0YYD73.js";import{f as Q}from"./formatDistanceToNow-Cb2QZZJn.js";import{E as T}from"./empty-state-DubYd6zZ.js";import{C as W}from"./create-project-dialog-BGO4u8jU.js";import{B as X,a as Y,b as Z,c as ee}from"./breadcrumb-d18jYUDM.js";import"./useQuery-DYrQlIK1.js";import"./constants-2xTOnIfa.js";import"./useMutation-CsmEWi-Q.js";import"./tooltip-CEipEk8R.js";import"./index-B4KuSVaI.js";import"./Loading01-DxSeN67O.js";import"./SearchMd-CEm1UsrH.js";import"./input-BQT91Y-t.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./dialog-MKggjCdI.js";import"./X-D-hccS2q.js";import"./form-D0i7a49m.js";import"./label-CYg2MwFH.js";import"./textarea-CHvp5lgM.js";import"./Check-DnuqdVIb.js";import"./ChevronRight-DEonWml9.js";const te=G("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);function se(t){const e=O.c(58),{project:l,onSettingsClick:c}=t,{org:r}=H(),d=l.ui?.themeColor??"#60a5fa",b=l.ui?.bannerColor??d,m=l.ui?.banner?`url(${l.ui.banner})`:void 0;let i;e[0]!==b||e[1]!==m?(i={backgroundColor:b,backgroundImage:m,backgroundSize:"cover",backgroundPosition:"center"},e[0]=b,e[1]=m,e[2]=i):i=e[2];const _=i;let u;e[3]!==r.slug||e[4]!==l.slug?(u={org:r.slug,project:l.slug},e[3]=r.slug,e[4]=l.slug,e[5]=u):u=e[5];let f;e[6]!==c?(f=B=>{B.preventDefault(),B.stopPropagation(),c?.(B)},e[6]=c,e[7]=f):f=e[7];let x,v;e[8]===Symbol.for("react.memo_cache_sentinel")?(x=J("absolute top-3 right-3 size-6 rounded-md flex items-center justify-center","bg-black/20 hover:bg-black/40 transition-colors"),v=s.jsx(te,{className:"size-3.5 text-white"}),e[8]=x,e[9]=v):(x=e[8],v=e[9]);let g;e[10]!==f?(g=s.jsx("button",{type:"button",onClick:f,className:x,children:v}),e[10]=f,e[11]=g):g=e[11];let p;e[12]!==_||e[13]!==g?(p=s.jsx("div",{className:"h-20 relative",style:_,children:g}),e[12]=_,e[13]=g,e[14]=p):p=e[14];let n;e[15]!==l.name||e[16]!==l.ui||e[17]!==d?(n=l.ui?.icon?s.jsx("img",{src:l.ui.icon,alt:"",className:"size-8 rounded-md object-cover"}):s.jsx("div",{className:"size-8 rounded-md flex items-center justify-center",style:{backgroundColor:d},children:s.jsx("span",{className:"text-sm font-medium text-white",children:l.name.charAt(0).toUpperCase()})}),e[15]=l.name,e[16]=l.ui,e[17]=d,e[18]=n):n=e[18];let a;e[19]!==l.name?(a=s.jsx("h3",{className:"font-medium text-base text-foreground truncate",children:l.name}),e[19]=l.name,e[20]=a):a=e[20];let h;e[21]!==l.updatedAt?(h=Q(new Date(l.updatedAt),{addSuffix:!0}),e[21]=l.updatedAt,e[22]=h):h=e[22];let j;e[23]!==h?(j=s.jsxs("p",{className:"text-sm text-muted-foreground",children:["Edited"," ",h]}),e[23]=h,e[24]=j):j=e[24];let C;e[25]!==a||e[26]!==j?(C=s.jsxs("div",{className:"flex flex-col",children:[a,j]}),e[25]=a,e[26]=j,e[27]=C):C=e[27];let N;e[28]!==n||e[29]!==C?(N=s.jsxs("div",{className:"flex flex-col gap-4",children:[n,C]}),e[28]=n,e[29]=C,e[30]=N):N=e[30];let k;e[31]!==l.boundConnections?(k=l.boundConnections.slice(0,4).map(le),e[31]=l.boundConnections,e[32]=k):k=e[32];let P;e[33]!==l.boundConnections.length?(P=l.boundConnections.length>4&&s.jsx("div",{className:"-mr-2 rounded-md border border-background",children:s.jsxs("div",{className:"size-6 rounded-md bg-background border border-black/10 shadow-sm flex items-center justify-center text-xs text-muted-foreground",children:["+",l.boundConnections.length-4]})}),e[33]=l.boundConnections.length,e[34]=P):P=e[34];let y;e[35]!==k||e[36]!==P?(y=s.jsxs("div",{className:"flex pr-2",children:[k,P]}),e[35]=k,e[36]=P,e[37]=y):y=e[37];const z=r.logo??void 0;let w;e[38]!==r.name||e[39]!==z?(w=s.jsx(K,{url:z,fallback:r.name,size:"2xs",className:"shrink-0 rounded",objectFit:"cover"}),e[38]=r.name,e[39]=z,e[40]=w):w=e[40];let S;e[41]!==r.name?(S=s.jsx("span",{className:"truncate max-w-20",children:r.name}),e[41]=r.name,e[42]=S):S=e[42];let o;e[43]!==w||e[44]!==S?(o=s.jsxs("div",{className:"flex items-center gap-2 text-xs text-foreground",children:[w,S]}),e[43]=w,e[44]=S,e[45]=o):o=e[45];let L;e[46]!==y||e[47]!==o?(L=s.jsxs("div",{className:"flex items-center justify-between mt-4",children:[y,o]}),e[46]=y,e[47]=o,e[48]=L):L=e[48];let $;e[49]!==N||e[50]!==L?($=s.jsxs("div",{className:"flex flex-col flex-1 justify-between p-4",children:[N,L]}),e[49]=N,e[50]=L,e[51]=$):$=e[51];let A;e[52]!==$||e[53]!==p?(A=s.jsxs("div",{className:"border border-border rounded-xl overflow-hidden bg-card",children:[p,$]}),e[52]=$,e[53]=p,e[54]=A):A=e[54];let E;return e[55]!==A||e[56]!==u?(E=s.jsx(M,{to:"/$org/$project",params:u,className:"block group",children:A}),e[55]=A,e[56]=u,e[57]=E):E=e[57],E}function le(t){return s.jsx("div",{className:"-mr-2 rounded-md border border-background",children:s.jsx(re,{connection:t})},t.id)}function re(t){const e=O.c(13),{connection:l}=t;if(l.icon){let m;e[0]!==l.icon||e[1]!==l.title?(m=s.jsx("img",{src:l.icon,alt:l.title,className:"size-4 object-cover"}),e[0]=l.icon,e[1]=l.title,e[2]=m):m=e[2];let i;return e[3]!==l.title||e[4]!==m?(i=s.jsx("div",{className:"size-6 rounded-md bg-background border border-black/10 shadow-sm flex items-center justify-center overflow-hidden",title:l.title,children:m}),e[3]=l.title,e[4]=m,e[5]=i):i=e[5],i}const c=l.title;let r;e[6]!==l.title?(r=l.title.charAt(0).toUpperCase(),e[6]=l.title,e[7]=r):r=e[7];let d;e[8]!==r?(d=s.jsx("span",{className:"text-[10px] text-muted-foreground font-medium",children:r}),e[8]=r,e[9]=d):d=e[9];let b;return e[10]!==l.title||e[11]!==d?(b=s.jsx("div",{className:"size-6 rounded-md bg-background border border-black/10 shadow-sm flex items-center justify-center overflow-hidden",title:c,children:d}),e[10]=l.title,e[11]=d,e[12]=b):b=e[12],b}function Ae(){const t=O.c(40),{org:e}=H(),{data:l,isLoading:c}=q(e.id),[r,d]=I.useState(""),[b,m]=I.useState(!1),i=V();let _,u,f,x,v,g,p,n,a;if(t[0]!==c||t[1]!==i||t[2]!==e.slug||t[3]!==l||t[4]!==r){const N=l?.filter(ie)?.filter(o=>o.name.toLowerCase().includes(r.toLowerCase())||o.description?.toLowerCase().includes(r.toLowerCase()))??[];let k;t[14]!==i||t[15]!==e.slug?(k=o=>{i({to:"/$org/$project/projects/$slug/settings/general",params:{org:e.slug,project:U,slug:o}})},t[14]=i,t[15]=e.slug,t[16]=k):k=t[16];const P=k;let y;t[17]===Symbol.for("react.memo_cache_sentinel")?(y=()=>{m(!0)},t[17]=y):y=t[17];const z=y;u=D;let w;t[18]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(D.Header.Left,{children:s.jsx(X,{children:s.jsx(Y,{children:s.jsx(Z,{children:s.jsx(ee,{children:"Projects"})})})})}),t[18]=w):w=t[18],t[19]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsxs(D.Header,{children:[w,s.jsx(D.Header.Right,{children:s.jsx(R,{onClick:z,size:"sm",className:"h-7 px-3 rounded-lg text-sm font-medium",children:"Create new project"})})]}),t[19]=n):n=t[19];let S;t[20]===Symbol.for("react.memo_cache_sentinel")?(S=o=>{o.key==="Escape"&&(d(""),o.target.blur())},t[20]=S):S=t[20],t[21]!==r?(a=s.jsx(F,{value:r,onChange:d,placeholder:"Search for a project...",onKeyDown:S}),t[21]=r,t[22]=a):a=t[22],_=D.Content,f="@container",t[23]!==c?(x=c&&s.jsx("div",{className:"p-5",children:s.jsx("div",{className:"grid grid-cols-1 @lg:grid-cols-2 @4xl:grid-cols-3 @6xl:grid-cols-4 gap-4",children:[...Array(4)].map(oe)})}),t[23]=c,t[24]=x):x=t[24],v=!c&&N.length===0&&r&&s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsx(T,{title:"No projects found",description:`No projects match "${r}"`})}),g=!c&&N.length===0&&!r&&s.jsx("div",{className:"flex items-center justify-center h-full",children:s.jsx(T,{title:"No projects yet",description:"Create a project to get started.",actions:s.jsx(R,{onClick:z,children:"Create new project"})})}),p=!c&&N.length>0&&s.jsx("div",{className:"p-5",children:s.jsx("div",{className:"grid grid-cols-1 @lg:grid-cols-2 @4xl:grid-cols-3 @6xl:grid-cols-4 gap-4",children:N.map(o=>s.jsx(se,{project:o,onSettingsClick:()=>P(o.slug)},o.id))})}),t[0]=c,t[1]=i,t[2]=e.slug,t[3]=l,t[4]=r,t[5]=_,t[6]=u,t[7]=f,t[8]=x,t[9]=v,t[10]=g,t[11]=p,t[12]=n,t[13]=a}else _=t[5],u=t[6],f=t[7],x=t[8],v=t[9],g=t[10],p=t[11],n=t[12],a=t[13];let h;t[25]!==_||t[26]!==f||t[27]!==x||t[28]!==v||t[29]!==g||t[30]!==p?(h=s.jsxs(_,{className:f,children:[x,v,g,p]}),t[25]=_,t[26]=f,t[27]=x,t[28]=v,t[29]=g,t[30]=p,t[31]=h):h=t[31];let j;t[32]!==b?(j=s.jsx(W,{open:b,onOpenChange:m}),t[32]=b,t[33]=j):j=t[33];let C;return t[34]!==u||t[35]!==n||t[36]!==a||t[37]!==h||t[38]!==j?(C=s.jsxs(u,{children:[n,a,h,j]}),t[34]=u,t[35]=n,t[36]=a,t[37]=h,t[38]=j,t[39]=C):C=t[39],C}function oe(t,e){return s.jsx("div",{className:"h-[240px] rounded-xl bg-muted animate-pulse"},e)}function ie(t){return t.slug!==U}export{Ae as default};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{r as I,c as w,j as s,E as Ye,u as ze,y as P,e as Xe,au as Ze,L as We,cb as _t,bj as kt,O as J,as as Ct,U as wt,_ as $t,g as it,f as Ne,w as ve,cc as zt,bN as It,x as Pt,B as Ge,A as At,S as nt,k as Et,m as Ot,N as Tt,v as Dt,aw as Fe,K as Mt,av as lt,P as Rt}from"./index-arVkExis.js";import{C as oe,c as Lt,i as Ht,d as Ut}from"./task-status-DUXjLyV-.js";import{I as Bt}from"./integration-icon-Bi_79Mu8.js";import{u as ot,P as ge,a as Je}from"./index-C3ftP7Sl.js";import{d as Ft,a as Kt,u as Wt}from"./constants-2xTOnIfa.js";import{n as Gt}from"./ChevronLeft-Le_LyEwM.js";import{i as Vt}from"./Loading01-DxSeN67O.js";import{s as Le}from"./Plus-Bsw2xx3c.js";import{t as et}from"./Users03-DFk8QutD.js";import{i as tt}from"./X-D-hccS2q.js";import{E as qt,C as Qt}from"./editable-task-title-D3cgVBo3.js";import{T as Yt}from"./tasks-panel-DgG7Fs5h.js";import{a as Xt,b as Zt}from"./ai-providers-logos-C04Mmt5f.js";import{a as Jt}from"./context-Dw20ueMA.js";import{C as rt}from"./create-project-dialog-BGO4u8jU.js";import{c as es,b as ts,D as ss,d as is}from"./dialog-MKggjCdI.js";import{n as ns}from"./Container-BTi1js90.js";import{e as ls}from"./Dataflow03-WZpk1y8t.js";import{a as os}from"./Home02-DG7OPH9A.js";import{i as Ve}from"./LayoutLeft-CxUeW5s7.js";import{s as rs}from"./RefreshCcw01-BU2NGbmd.js";import{t as He}from"./Settings01-DOl461Rl.js";import{u as as,a as at}from"./org-ai-providers-BMiTYNS_.js";import{u as ct,a as dt}from"./use-project-B_pcPwo3.js";import{u as cs}from"./use-mobile-9hJ8tJ4O.js";import{d as ds,b as ms,S as fs,a as us,c as ps}from"./sheet-7obBcKdz.js";import{c as xs,b as hs,a as gs,T as bs}from"./tooltip-CEipEk8R.js";import{S as ae}from"./skeleton-toLdhVeE.js";import{n as $e}from"./LinkExternal01-9hq_Yejy.js";import{t as mt}from"./ChevronDown-BGYYwpml.js";import{A as Ie}from"./avatar-BV0YYD73.js";import{c as re,f as js,e as vs,b as ft,D as ut,a as pt,h as Ue,d as Ns}from"./dropdown-menu-CMlIw-S-.js";import{t as ys}from"./Building02-D7Hfwrk4.js";import{i as Pe}from"./Check-DnuqdVIb.js";import{C as Ss}from"./create-organization-dialog-DT1tUQlQ.js";import{a as _s}from"./Copy01-DG9TIebr.js";import{i as ks}from"./File06-DnhwEd2o.js";import{i as Cs}from"./Globe01-BwY4xgBA.js";import{i as ws}from"./Shield01-C5KXW9qT.js";import{a as $s,P as zs,b as Is}from"./popover-nQ7We-Lc.js";import{n as st}from"./Inbox01-SIqRC6M_.js";import{s as Ps}from"./XClose-kThV85vf.js";import{b as As}from"./use-mcp-tools-rgDZ2hzO.js";import{C as Es,b as Os,c as Ts}from"./collapsible-DvRv2NnT.js";import{i as Ds}from"./ChevronRight-DEonWml9.js";import{a as Ms,R as xt,b as Rs}from"./resizable-CgdchFOD.js";import"./spinner-KvxFQg-_.js";import"./use-mcp-prompts-Dyl3ENGt.js";import"./useQuery-DYrQlIK1.js";import"./form-D0i7a49m.js";import"./label-CYg2MwFH.js";import"./input-BQT91Y-t.js";import"./index-1d-yx2Zl.js";import"./usage-BW6ztpN6.js";import"./ArrowUp-C0J0tyPV.js";import"./Edit01-DGglw0UP.js";import"./Lock01-Ct-zRKhn.js";import"./use-copy-DqnyAasC.js";import"./AlertCircle-C1aHEN6f.js";import"./select-DgOkL7kV.js";import"./ChevronUp-D3BUkjtX.js";import"./index-B4KuSVaI.js";import"./ArrowLeft-CMmSGoxl.js";import"./tabs-Do1Ndlvl.js";import"./badge-BWycpk7k.js";import"./Code01-C9q2vUXt.js";import"./checkbox-BVAXPERq.js";import"./AlignLeft-KEOqBH6V.js";import"./Image01-Cy0jUz67.js";import"./Key01-B7vWLx8d.js";import"./SearchMd-CEm1UsrH.js";import"./Tool01-rIq-JrIA.js";import"./select-virtual-mcp-C3OM3L9w.js";import"./use-virtual-mcp-Du2a-bSk.js";import"./use-collections-Cw5P_4lQ.js";import"./useMutation-CsmEWi-Q.js";import"./use-create-virtual-mcp-UQ78Smrd.js";import"./use-mcp-resources-dnInY4Ju.js";import"./marked.esm-BaswSlok.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-ZV-o4QFa.js";import"./types-CSjd7C9V.js";import"./Eye-TnopHMFL.js";import"./Globe02-DHo2krVx.js";import"./LayersTwo01-ZqHw9gvu.js";import"./Clock-XRULycfK.js";import"./Trash01-DxNUrtVd.js";import"./useSuspenseInfiniteQuery-DnqWbzTD.js";import"./infiniteQueryObserver-DojBlr7V.js";import"./CheckCircle-D6b9AmJJ.js";import"./collection-search-CtXFaqLY.js";import"./user-CmVhIMM1.js";import"./format-time-CMKyl-GC.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./decopilot-events-Brt4gAR6.js";import"./index-DeLtuFdF.js";import"./textarea-CHvp5lgM.js";import"./EyeOff-BZvotA6E.js";import"./card-742ND_Cc.js";import"./toggle-group-Bp4K1sba.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./alert-dialog-BwyEkhM2.js";import"./index-DR3pnEhs.js";const ht=({size:t=24,color:e="currentColor",...i})=>I.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i},I.createElement("path",{d:"M9 7H4.6c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C3 7.76 3 8.04 3 8.6v10.8c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C3.76 21 4.04 21 4.6 21H9m0 0h6m-6 0V4.6c0-.56 0-.84.109-1.054a1 1 0 0 1 .437-.437C9.76 3 10.04 3 10.6 3h2.8c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C15 3.76 15 4.04 15 4.6V21m0-10h4.4c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C21 11.76 21 12.04 21 12.6v6.8c0 .56 0 .84-.109 1.054a1 1 0 0 1-.437.437C20.24 21 19.96 21 19.4 21H15"}));ht.displayName="BarChart10";const Be=({size:t=24,color:e="currentColor",...i})=>I.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i},I.createElement("path",{d:"m6 15 2 2 4.5-4.5M8 8V5.2c0-1.12 0-1.68.218-2.108a2 2 0 0 1 .874-.874C9.52 2 10.08 2 11.2 2h7.6c1.12 0 1.68 0 2.108.218a2 2 0 0 1 .874.874C22 3.52 22 4.08 22 5.2v7.6c0 1.12 0 1.68-.218 2.108a2 2 0 0 1-.874.874C20.48 16 19.92 16 18.8 16H16M5.2 22h7.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C16 20.48 16 19.92 16 18.8v-7.6c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C14.48 8 13.92 8 12.8 8H5.2c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C2 9.52 2 10.08 2 11.2v7.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C3.52 22 4.08 22 5.2 22Z"}));Be.displayName="CheckDone01";const gt=({size:t=24,color:e="currentColor",...i})=>I.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i},I.createElement("path",{d:"M15.938 15.938A7.001 7.001 0 0 0 15 2a7.001 7.001 0 0 0-6.938 6.062M16 15a7 7 0 1 1-14 0 7 7 0 0 1 14 0Z"}));gt.displayName="Coins01";const bt=({size:t=24,color:e="currentColor",...i})=>I.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i},I.createElement("path",{d:"m16 17 5-5m0 0-5-5m5 5H9m0-9H7.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C3 5.28 3 6.12 3 7.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 21 6.12 21 7.8 21H9"}));bt.displayName="LogOut01";function Ls(){const t=w.c(70),{org:e}=ze(),[,i]=ot(),n=Xt(),{selectedVirtualMcp:l,isChatEmpty:o,activeTaskId:r,createTask:a,switchToTask:c,tasks:d}=Jt();let m;if(t[0]!==r||t[1]!==d){let B;t[3]!==r?(B=Z=>Z.id===r,t[3]=r,t[4]=B):B=t[4],m=d.find(B),t[0]=r,t[1]=d,t[2]=m}else m=t[2];const u=m,[f,p]=I.useState("chat"),[h,b]=I.useTransition();let v;t[5]!==e.id?(v=Ft(e.id),t[5]=e.id,t[6]=v):v=t[6];const g=l??v;let x;t[7]!==a?(x=()=>{b(()=>{a()})},t[7]=a,t[8]=x):x=t[8];const N=x;if(n?.providers?.length===0){let B;t[9]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx(ge.Header.Left,{className:"gap-2"}),t[9]=B):B=t[9];let Z;t[10]!==i?(Z=()=>i(!1),t[10]=i,t[11]=Z):Z=t[11];let se;t[12]===Symbol.for("react.memo_cache_sentinel")?(se=s.jsx(tt,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[12]=se):se=t[12];let fe;t[13]!==Z?(fe=s.jsxs(ge.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[B,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:se})})]}),t[13]=Z,t[14]=fe):fe=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]!==fe?(ne=s.jsxs(oe,{className:"animate-in fade-in-0 duration-200",children:[fe,je]}),t[16]=fe,t[17]=ne):ne=t[17],ne}const C=f!=="chat"||h?"opacity-0 pointer-events-none":"opacity-100";let j;t[18]!==C?(j=P("absolute inset-0 flex flex-col transition-opacity duration-100 ease-out",C),t[18]=C,t[19]=j):j=t[19];let y;t[20]!==u||t[21]!==o?(y=!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]=y):y=t[22];let k;t[23]!==y?(k=s.jsx(ge.Header.Left,{className:"gap-2",children:y}),t[23]=y,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]!==N||t[27]!==h?(z=s.jsx("button",{type:"button",onClick:N,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]=N,t[27]=h,t[28]=z):z=t[28];let D;t[29]===Symbol.for("react.memo_cache_sentinel")?(D=()=>p("tasks"),t[29]=D):D=t[29];let M;t[30]===Symbol.for("react.memo_cache_sentinel")?(M=s.jsx("button",{type:"button",onClick:D,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]=M):M=t[30];let R;t[31]!==i?(R=()=>i(!1),t[31]=i,t[32]=R):R=t[32];let L;t[33]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx(tt,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[33]=L):L=t[33];let O;t[34]!==R?(O=s.jsx("button",{type:"button",onClick:R,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:L}),t[34]=R,t[35]=O):O=t[35];let A;t[36]!==O||t[37]!==z?(A=s.jsxs(ge.Header.Right,{className:"gap-1",children:[z,M,O]}),t[36]=O,t[37]=z,t[38]=A):A=t[38];let T;t[39]!==A||t[40]!==k?(T=s.jsxs(ge.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[k,A]}),t[39]=A,t[40]=k,t[41]=T):T=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 H;t[45]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(oe.Footer,{children:s.jsx(oe.Input,{onOpenContextPanel:()=>p("context")})}),t[45]=H):H=t[45];let F;t[46]!==T||t[47]!==E||t[48]!==j?(F=s.jsxs("div",{className:j,children:[T,E,H]}),t[46]=T,t[47]=E,t[48]=j,t[49]=F):F=t[49];const K=f==="tasks"?"opacity-100":"opacity-0 pointer-events-none";let ie;t[50]!==K?(ie=P("absolute inset-0 flex flex-col transition-opacity duration-100 ease-out",K),t[50]=K,t[51]=ie):ie=t[51];let ee;t[52]===Symbol.for("react.memo_cache_sentinel")?(ee=s.jsx(ge.Header.Left,{className:"gap-2",children:s.jsx("span",{className:"text-sm font-normal text-foreground",children:"Tasks"})}),t[52]=ee):ee=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:[ee,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 G;t[55]===Symbol.for("react.memo_cache_sentinel")?(G=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]=G):G=t[55];let X;t[56]!==c?(X=s.jsx(Ye,{fallback:Hs,children:s.jsx(I.Suspense,{fallback:G,children:s.jsx(Yt,{onTaskSelect:async B=>{await c(B),p("chat")}})})}),t[56]=c,t[57]=X):X=t[57];let V;t[58]!==ie||t[59]!==X?(V=s.jsxs("div",{className:ie,children:[de,X]}),t[58]=ie,t[59]=X,t[60]=V):V=t[60];const me=f==="context"?"opacity-100":"opacity-0 pointer-events-none";let q;t[61]!==me?(q=P("absolute inset-0 flex flex-col transition-opacity duration-100 ease-out",me),t[61]=me,t[62]=q):q=t[62];let Q;t[63]===Symbol.for("react.memo_cache_sentinel")?(Q=s.jsx(Qt,{back:!0,onClose:()=>p("chat")}),t[63]=Q):Q=t[63];let U;t[64]!==q?(U=s.jsx("div",{className:q,children:Q}),t[64]=q,t[65]=U):U=t[65];let te;return t[66]!==F||t[67]!==V||t[68]!==U?(te=s.jsxs(oe,{className:"relative overflow-hidden animate-in fade-in-0 duration-200",children:[F,V,U]}),t[66]=F,t[67]=V,t[68]=U,t[69]=te):te=t[69],te}function Hs(){return s.jsx("div",{className:"flex-1 flex items-center justify-center",children:s.jsx("p",{className:"text-xs text-muted-foreground",children:"Unable to load tasks"})})}function Us(){const t=w.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(oe.Skeleton,{}),t[0]=e):e=t[0];let i;return t[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(Ye,{fallback:e,children:s.jsx(I.Suspense,{fallback:s.jsx(oe.Skeleton,{}),children:s.jsx(Ls,{})})}),t[1]=i):i=t[1],i}function Bs(t){const e=w.c(5),{open:i,onOpenChange:n}=t;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(ts,{children:s.jsx(ss,{children:"Keyboard Shortcuts"})}),e[0]=l):l=e[0];let o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsxs(es,{className:"sm:max-w-md",children:[l,s.jsx("div",{className:"flex flex-col gap-4",children:Lt.map(Fs)})]}),e[1]=o):o=e[1];let r;return e[2]!==n||e[3]!==i?(r=s.jsx(is,{open:i,onOpenChange:n,children:o}),e[2]=n,e[3]=i,e[4]=r):r=e[4],r}function Fs(t){return s.jsxs("div",{children:[s.jsx("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-2",children:t.label}),s.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(Ks)})]},t.label)}function Ks(t){return s.jsxs("div",{className:"flex items-center justify-between py-1",children:[s.jsx("span",{className:"text-sm",children:t.description}),s.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(Ws)})]},t.description)}function Ws(t){return s.jsx("kbd",{className:"inline-flex items-center justify-center min-w-6 h-6 px-1.5 rounded-sm border border-border bg-muted text-muted-foreground text-xs font-mono",children:t},t)}function Gs(){const t=w.c(57),{locator:e,org:i}=ze(),n=Xe(),l=Ze(),[o]=as(),{org:r,project:a}=We.parse(e),c=We.isOrgAdminProject(e),{data:d}=ct(i.id,a);let m;t[0]!==d?.enabledPlugins?(m=d?.enabledPlugins??[],t[0]=d?.enabledPlugins,t[1]=m):m=t[1];const u=m,f=d?.ui?.pinnedViews??[];let p;t[2]!==u?(p=S=>u.includes(S.pluginId),t[2]=u,t[3]=p):p=t[3];const h=_t.filter(p),b=l.location.pathname,v=`/${r}/${a}`,_=b===v||b===`${v}/`;let g;t[4]!==v||t[5]!==b?(g=S=>b.startsWith(`${v}/${S}`),t[4]=v,t[5]=b,t[6]=g):g=t[6];const x=g;let N;t[7]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx(os,{}),t[7]=N):N=t[7];const C={key:"home",label:"Home",icon:N,isActive:_,onClick:()=>{_?window.dispatchEvent(new CustomEvent("reset-home-view")):n({to:"/$org/$project",params:{org:r,project:a}})}};let j;t[8]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx(Be,{}),t[8]=j):j=t[8];const y={key:"tasks",label:"Tasks",icon:j,isActive:x("tasks"),onClick:()=>n({to:"/$org/$project/tasks",params:{org:r,project:J}})};let k;t[9]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx(ns,{}),t[9]=k):k=t[9];const $={key:"mcps",label:"Connections",icon:k,isActive:x("mcps"),onClick:()=>n({to:"/$org/$project/mcps",params:{org:r,project:J}})};let z;t[10]===Symbol.for("react.memo_cache_sentinel")?(z=s.jsx(Ct,{}),t[10]=z):z=t[10];const D={key:"projects",label:"Projects",icon:z,isActive:x("projects"),onClick:()=>n({to:"/$org/$project/projects",params:{org:r,project:J}})};let M;t[11]===Symbol.for("react.memo_cache_sentinel")?(M=s.jsx(et,{}),t[11]=M):M=t[11];const R={key:"agents",label:"Agents",icon:M,isActive:x("agents"),onClick:()=>n({to:"/$org/$project/agents",params:{org:r,project:J}})};let L;t[12]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx(rs,{}),t[12]=L):L=t[12];const O={key:"automations",label:"Automations",icon:L,isActive:x("automations"),onClick:()=>n({to:"/$org/$project/automations",params:{org:r,project:J}})};let A;t[13]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(ht,{}),t[13]=A):A=t[13];const T={key:"monitoring",label:"Monitor",icon:A,isActive:x("monitoring"),onClick:()=>n({to:"/$org/$project/monitoring",params:{org:r,project:J}})},E=h.map(S=>({key:S.pluginId,label:S.label,icon:S.icon,isActive:x(S.pluginId),onClick:()=>n({to:"/$org/$project/$pluginId",params:{org:r,project:a,pluginId:S.pluginId}})}));let H;t[14]!==u?(H=S=>u.includes(S.pluginId),t[14]=u,t[15]=H):H=t[15];const K=kt.filter(H).map(S=>({type:"group",group:{id:`${S.pluginId}-${S.id}`,label:S.label,items:S.items.map((W,le)=>({key:`${S.pluginId}-${S.id}-${le}`,label:W.label,icon:W.icon,isActive:x(S.pluginId),onClick:()=>n({to:"/$org/$project/$pluginId",params:{org:r,project:a,pluginId:S.pluginId}})})),defaultExpanded:S.defaultExpanded??!0}})),ie=f.map(S=>({key:`app-${S.connectionId}-${S.toolName}`,label:S.label||S.toolName,icon:S.icon?s.jsx("img",{src:S.icon,alt:"",className:"size-4 rounded"}):s.jsx(Ve,{}),isActive:x(`apps/${S.connectionId}/${encodeURIComponent(S.toolName)}`),onClick:()=>n({to:"/$org/$project/apps/$connectionId/$toolName",params:{org:r,project:a,connectionId:S.connectionId,toolName:S.toolName}})}));let ee;t[16]!==ie?(ee=ie.length>0?{type:"group",group:{id:"apps",label:"Apps",items:ie,defaultExpanded:!0}}:null,t[16]=ie,t[17]=ee):ee=t[17];const ce=ee;if(c){let S;t[18]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx(He,{}),t[18]=S):S=t[18];let W;t[19]!==x?(W=x("settings"),t[19]=x,t[20]=W):W=t[20];let le;t[21]!==n||t[22]!==r?(le=()=>n({to:"/$org/$project/settings",params:{org:r,project:J}}),t[21]=n,t[22]=r,t[23]=le):le=t[23];let he;t[24]!==W||t[25]!==le?(he={key:"settings",label:"Settings",icon:S,isActive:W,onClick:le},t[24]=W,t[25]=le,t[26]=he):he=t[26];const ye=he,ue=[{type:"items",items:[C,y,D]},{type:"group",group:{id:"build",label:"Build",items:[...o.experimentalAutomations?[O]:[],R,$],defaultExpanded:!0}},{type:"group",group:{id:"manage",label:"Manage",items:[T,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 K.length>0&&ue.push(...K),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 G;t[30]!==x?(G=x("tasks"),t[30]=x,t[31]=G):G=t[31];let X;t[32]!==n||t[33]!==r||t[34]!==a?(X=()=>n({to:"/$org/$project/tasks",params:{org:r,project:a}}),t[32]=n,t[33]=r,t[34]=a,t[35]=X):X=t[35];let V;t[36]!==G||t[37]!==X?(V={key:"tasks",label:"Tasks",icon:de,isActive:G,onClick:X},t[36]=G,t[37]=X,t[38]=V):V=t[38];const me=V;let q;t[39]===Symbol.for("react.memo_cache_sentinel")?(q=s.jsx(ls,{}),t[39]=q):q=t[39];let Q;t[40]!==x?(Q=x("workflows"),t[40]=x,t[41]=Q):Q=t[41];let U;t[42]!==n||t[43]!==r||t[44]!==a?(U=()=>n({to:"/$org/$project/workflows",params:{org:r,project:a}}),t[42]=n,t[43]=r,t[44]=a,t[45]=U):U=t[45];let te;t[46]!==Q||t[47]!==U?(te={key:"workflows",label:"Workflows",icon:q,isActive:Q,onClick:U},t[46]=Q,t[47]=U,t[48]=te):te=t[48];const B=te;let Z;t[49]===Symbol.for("react.memo_cache_sentinel")?(Z=s.jsx(He,{}),t[49]=Z):Z=t[49];let se;t[50]!==n||t[51]!==r||t[52]!==a?(se={key:"configure",label:"Configure",icon:Z,isActive:!1,isExternal:!0,onClick:()=>n({to:"/$org/$project/projects/$slug/settings/general",params:{org:r,project:J,slug:a}})},t[50]=n,t[51]=r,t[52]=a,t[53]=se):se=t[53];const ne=[{type:"items",items:[C,me,B,se]}];if(E.length>0){let S;t[54]===Symbol.for("react.memo_cache_sentinel")?(S={type:"divider"},t[54]=S):S=t[54],ne.push(S);let W;t[55]!==E?(W={type:"items",items:E},t[55]=E,t[56]=W):W=t[56],ne.push(W)}return K.length>0&&ne.push(...K),ce&&ne.push(ce),ne}const Vs="sidebar_state",qs=3600*24*7,Qs="16rem",Ys="18rem",Xs="3rem",Zs="b",jt=I.createContext(null);function Ke(){const t=I.useContext(jt);if(!t)throw new Error("useSidebar must be used within a SidebarProvider.");return t}function Js(t){const e=w.c(21),{defaultOpen:i,open:n,onOpenChange:l,children:o}=t,r=i===void 0?!0:i,a=cs(),[c,d]=I.useState(!1),[m,u]=I.useState(r),f=n??m;let p;e[0]!==f||e[1]!==l?(p=k=>{const $=typeof k=="function"?k(f):k;l?l($):u($),document.cookie=`${Vs}=${$}; path=/; max-age=${qs}`},e[0]=f,e[1]=l,e[2]=p):p=e[2];const h=p;let b;e[3]!==a||e[4]!==h?(b=()=>a?d(ti):h(ei),e[3]=a,e[4]=h,e[5]=b):b=e[5];const v=b;let _,g;e[6]!==v?(_=()=>{const k=$=>{if($.key===Zs&&($.metaKey||$.ctrlKey)){const z=$.target;if(z.tagName==="INPUT"||z.tagName==="TEXTAREA"||z.isContentEditable)return;$.preventDefault(),v()}};return globalThis.addEventListener("keydown",k),()=>globalThis.removeEventListener("keydown",k)},g=[v],e[6]=v,e[7]=_,e[8]=g):(_=e[7],g=e[8]),I.useEffect(_,g);const x=f?"expanded":"collapsed";let N;e[9]!==a||e[10]!==f||e[11]!==c||e[12]!==h||e[13]!==x||e[14]!==v?(N={state:x,open:f,setOpen:h,isMobile:a,openMobile:c,setOpenMobile:d,toggleSidebar:v},e[9]=a,e[10]=f,e[11]=c,e[12]=h,e[13]=x,e[14]=v,e[15]=N):N=e[15];const C=N;let j;e[16]!==o?(j=s.jsx(xs,{delayDuration:0,children:o}),e[16]=o,e[17]=j):j=e[17];let y;return e[18]!==C||e[19]!==j?(y=s.jsx(jt.Provider,{value:C,children:j}),e[18]=C,e[19]=j,e[20]=y):y=e[20],y}function ei(t){return!t}function ti(t){return!t}function si(t){const e=w.c(14);let i,n,l,o;e[0]!==t?({className:n,style:o,children:i,...l}=t,e[0]=t,e[1]=i,e[2]=n,e[3]=l,e[4]=o):(i=e[1],n=e[2],l=e[3],o=e[4]);let r;e[5]!==o?(r={"--sidebar-width":Qs,"--sidebar-width-icon":Xs,...o},e[5]=o,e[6]=r):r=e[6];const a=r;let c;e[7]!==n?(c=P("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",n),e[7]=n,e[8]=c):c=e[8];let d;return e[9]!==i||e[10]!==l||e[11]!==a||e[12]!==c?(d=s.jsx("div",{"data-slot":"sidebar-wrapper",style:a,className:c,...l,children:i}),e[9]=i,e[10]=l,e[11]=a,e[12]=c,e[13]=d):d=e[13],d}function ii(t){const e=w.c(42);let i,n,l,o,r,a;e[0]!==t?({side:o,variant:r,collapsible:a,className:n,children:i,...l}=t,e[0]=t,e[1]=i,e[2]=n,e[3]=l,e[4]=o,e[5]=r,e[6]=a):(i=e[1],n=e[2],l=e[3],o=e[4],r=e[5],a=e[6]);const c=o===void 0?"left":o,d=r===void 0?"sidebar":r,m=a===void 0?"offcanvas":a,{isMobile:u,state:f,openMobile:p,setOpenMobile:h}=Ke();if(m==="none"){let j;e[7]!==n?(j=P("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",n),e[7]=n,e[8]=j):j=e[8];let y;return e[9]!==i||e[10]!==l||e[11]!==j?(y=s.jsx("div",{"data-slot":"sidebar",className:j,...l,children:i}),e[9]=i,e[10]=l,e[11]=j,e[12]=y):y=e[12],y}if(u){let j;e[13]===Symbol.for("react.memo_cache_sentinel")?(j={"--sidebar-width":Ys},e[13]=j):j=e[13];let y;e[14]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsxs(ms,{className:"sr-only",children:[s.jsx(fs,{children:"Sidebar"}),s.jsx(us,{children:"Displays the mobile sidebar."})]}),e[14]=y):y=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:j,side:c,children:[y,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 b=d==="floating"||d==="inset"?"data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"data-[collapsible=icon]:w-(--sidebar-width-icon)";let v;e[25]!==b?(v=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",b),e[25]=b,e[26]=v):v=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 N;e[31]!==l||e[32]!==g||e[33]!==x?(N=s.jsx("div",{"data-slot":"sidebar-container",className:g,...l,children:x}),e[31]=l,e[32]=g,e[33]=x,e[34]=N):N=e[34];let C;return e[35]!==c||e[36]!==f||e[37]!==v||e[38]!==_||e[39]!==N||e[40]!==d?(C=s.jsx("div",{className:v,"data-state":f,"data-collapsible":_,"data-variant":d,"data-side":c,"data-slot":"sidebar",children:N}),e[35]=c,e[36]=f,e[37]=v,e[38]=_,e[39]=N,e[40]=d,e[41]=C):C=e[41],C}function ni(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("bg-background relative flex w-full flex-1 flex-col min-w-0","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("main",{"data-slot":"sidebar-inset",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function vt(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("flex flex-col gap-2 p-2",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function li(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("flex flex-col gap-2 p-2",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function oi(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("h-4 m-0! w-full",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("div",{"data-sidebar":"separator",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function ri(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function Ae(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("relative flex w-full min-w-0 flex-col px-2 py-2 md:py-0",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function Ee(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("w-full text-sm",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function be(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("flex w-full min-w-0 flex-col gap-1",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}function xe(t){const e=w.c(8);let i,n;e[0]!==t?({className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n):(i=e[1],n=e[2]);let l;e[3]!==i?(l=P("group/menu-item relative",i),e[3]=i,e[4]=l):l=e[4];let o;return e[5]!==n||e[6]!==l?(o=s.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:l,...n}),e[5]=n,e[6]=l,e[7]=o):o=e[7],o}const ai=$t("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md py-0 pr-0.5 pl-1.5 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&_svg]:opacity-60 hover:[&_svg]:opacity-100",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2!",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function Oe(t){const e=w.c(28);let i,n,l,o,r,a,c;e[0]!==t?({asChild:l,isActive:o,variant:r,size:a,tooltip:c,className:i,...n}=t,e[0]=t,e[1]=i,e[2]=n,e[3]=l,e[4]=o,e[5]=r,e[6]=a,e[7]=c):(i=e[1],n=e[2],l=e[3],o=e[4],r=e[5],a=e[6],c=e[7]);const d=l===void 0?!1:l,m=o===void 0?!1:o,u=r===void 0?"default":r,f=a===void 0?"default":a,p=d?wt:"button",{isMobile:h,state:b}=Ke();let v;e[8]!==i||e[9]!==f||e[10]!==u?(v=P(ai({variant:u,size:f}),i),e[8]=i,e[9]=f,e[10]=u,e[11]=v):v=e[11];let _;e[12]!==p||e[13]!==m||e[14]!==n||e[15]!==f||e[16]!==v?(_=s.jsx(p,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":f,"data-active":m,className:v,...n}),e[12]=p,e[13]=m,e[14]=n,e[15]=f,e[16]=v,e[17]=_):_=e[17];const g=_;if(!c)return g;if(typeof c=="string"){let y;e[18]!==c?(y={children:c},e[18]=c,e[19]=y):y=e[19],c=y}let x;e[20]!==g?(x=s.jsx(gs,{asChild:!0,children:g}),e[20]=g,e[21]=x):x=e[21];const N=b!=="collapsed"||h;let C;e[22]!==N||e[23]!==c?(C=s.jsx(hs,{side:"right",align:"center",hidden:N,...c}),e[22]=N,e[23]=c,e[24]=C):C=e[24];let j;return e[25]!==x||e[26]!==C?(j=s.jsxs(bs,{children:[x,C]}),e[25]=x,e[26]=C,e[27]=j):j=e[27],j}function ci(t){const e=w.c(11),{label:i,children:n,defaultExpanded:l}=t,o=l===void 0?!0:l,[r,a]=I.useState(o),{state:c}=Ke(),d=c==="collapsed";let m;e[0]!==r||e[1]!==d||e[2]!==i?(m=d?s.jsx("div",{className:"flex h-6 items-center",children:s.jsx("div",{className:"h-0.5 w-8 rounded-full bg-sidebar-foreground/15"})}):s.jsx(be,{children:s.jsx(xe,{children:s.jsxs(Oe,{className:"h-6 cursor-pointer select-none gap-1 [&>svg]:size-3",onClick:()=>a(!r),children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:i}),s.jsx(mt,{size:12,className:P("text-muted-foreground transition-transform duration-200",!r&&"-rotate-90")})]})})}),e[0]=r,e[1]=d,e[2]=i,e[3]=m):m=e[3];let u;e[4]!==n||e[5]!==r||e[6]!==d?(u=(d||r)&&s.jsx(Ee,{children:s.jsx(be,{className:"gap-0.5",children:n})}),e[4]=n,e[5]=r,e[6]=d,e[7]=u):u=e[7];let f;return e[8]!==m||e[9]!==u?(f=s.jsxs(Ae,{className:"pt-0 pr-0 pb-2 pl-0 mt-2",children:[m,u]}),e[8]=m,e[9]=u,e[10]=f):f=e[10],f}function Nt(t){const e=w.c(22),{item:i}=t,n=i.key,l=i.onClick,o=i.isActive,r=i.label,a=i.isExternal&&"group/external";let c;e[0]!==a?(c=P(a),e[0]=a,e[1]=c):c=e[1];let d;e[2]!==i.icon?(d=s.jsx("span",{className:"[&>svg]:size-4",children:i.icon}),e[2]=i.icon,e[3]=d):d=e[3];const m=i.isExternal&&"group-hover/external:underline underline-offset-2";let u;e[4]!==m?(u=P("truncate group-data-[collapsible=icon]:hidden",m),e[4]=m,e[5]=u):u=e[5];let f;e[6]!==i.label||e[7]!==u?(f=s.jsx("span",{className:u,children:i.label}),e[6]=i.label,e[7]=u,e[8]=f):f=e[8];let p;e[9]!==i.isExternal?(p=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[9]=i.isExternal,e[10]=p):p=e[10];let h;e[11]!==i.isActive||e[12]!==i.label||e[13]!==i.onClick||e[14]!==f||e[15]!==p||e[16]!==c||e[17]!==d?(h=s.jsxs(Oe,{onClick:l,isActive:o,tooltip:r,className:c,children:[d,f,p]}),e[11]=i.isActive,e[12]=i.label,e[13]=i.onClick,e[14]=f,e[15]=p,e[16]=c,e[17]=d,e[18]=h):h=e[18];let b;return e[19]!==i.key||e[20]!==h?(b=s.jsx(xe,{children:h},n),e[19]=i.key,e[20]=h,e[21]=b):b=e[21],b}function di(t){const e=w.c(12),{section:i}=t;switch(i.type){case"divider":{let n;return e[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(oi,{className:"my-2"}),e[0]=n):n=e[0],n}case"spacer":{let n;return e[1]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx("div",{className:"flex-1"}),e[1]=n):n=e[1],n}case"group":{const n=i.group.label,l=i.group.defaultExpanded;let o;e[2]!==i.group.items?(o=i.group.items.map(fi),e[2]=i.group.items,e[3]=o):o=e[3];let r;return e[4]!==i.group.defaultExpanded||e[5]!==i.group.label||e[6]!==o?(r=s.jsx(ci,{label:n,defaultExpanded:l,children:o}),e[4]=i.group.defaultExpanded,e[5]=i.group.label,e[6]=o,e[7]=r):r=e[7],r}case"items":{let n;e[8]!==i.items?(n=i.items.map(mi),e[8]=i.items,e[9]=n):n=e[9];let l;return e[10]!==n?(l=s.jsx(Ae,{className:"pt-0 pr-0 pb-0 pl-0",children:s.jsx(Ee,{children:s.jsx(be,{className:"gap-0.5",children:n})})}),e[10]=n,e[11]=l):l=e[11],l}}}function mi(t){return s.jsx(Nt,{item:t},t.key)}function fi(t){return s.jsx(Nt,{item:t},t.key)}function yt(t){const e=w.c(14),{sections:i,header:n,footer:l,additionalContent:o,variant:r,collapsible:a,contentClassName:c}=t,d=r===void 0?"sidebar":r,m=a===void 0?"icon":a;let u;e[0]!==c?(u=P("flex flex-col flex-1 overflow-x-hidden mt-1 px-3.5 pb-2 group-data-[collapsible=icon]:px-2",c),e[0]=c,e[1]=u):u=e[1];let f;e[2]!==i?(f=i.map(ui),e[2]=i,e[3]=f):f=e[3];let p;e[4]!==o||e[5]!==u||e[6]!==f?(p=s.jsxs(ri,{className:u,children:[f,o]}),e[4]=o,e[5]=u,e[6]=f,e[7]=p):p=e[7];let h;return e[8]!==m||e[9]!==l||e[10]!==n||e[11]!==p||e[12]!==d?(h=s.jsxs(ii,{variant:d,collapsible:m,children:[n,p,l]}),e[8]=m,e[9]=l,e[10]=n,e[11]=p,e[12]=d,e[13]=h):h=e[13],h}function ui(t,e){return s.jsx(di,{section:t},e)}yt.Skeleton=function(){return s.jsx("div",{className:"flex flex-col gap-0.5",children:Array.from({length:8}).map((e,i)=>s.jsx("div",{className:"w-full h-8",children:s.jsx(ae,{className:"h-full bg-sidebar-accent rounded-md"})},i))})};function pi(){const t=w.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsxs("div",{className:"space-y-0.5 px-1 py-1",children:[s.jsx(ae,{className:"h-8 w-full rounded-lg"}),s.jsx(ae,{className:"h-8 w-full rounded-lg"})]}),t[0]=e):e=t[0],e}function xi(t){const e=w.c(12),{organizationId:i,currentProjectSlug:n,onSelect:l}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={suspense:!0},e[0]=o):o=e[0];const{data:r}=dt(i,o);let a,c;if(e[1]!==n||e[2]!==l||e[3]!==r){c=Symbol.for("react.early_return_sentinel");e:{const m=r?.filter(hi)??[];if(m.length===0){let f;e[6]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx("div",{className:"px-2 py-3 text-center text-xs text-muted-foreground",children:"No projects yet"}),e[6]=f):f=e[6],c=f;break e}let u;e[7]!==n||e[8]!==l?(u=f=>{const p=n===f.slug,h=f.ui?.themeColor??"#3B82F6";return s.jsxs(re,{className:P("gap-2.5",p&&"bg-accent"),onClick:()=>l(f.slug),children:[s.jsx("div",{className:"size-6 rounded-md shrink-0 flex items-center justify-center overflow-hidden border border-border/50",style:f.ui?.icon?void 0:{backgroundColor:h},children:f.ui?.icon?s.jsx("img",{src:f.ui.icon,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:"text-xs font-semibold text-white",children:f.name.charAt(0).toUpperCase()})}),s.jsx("span",{className:"flex-1 truncate",children:f.name}),p&&s.jsx(Pe,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},f.id)},e[7]=n,e[8]=l,e[9]=u):u=e[9],a=m.map(u)}e[1]=n,e[2]=l,e[3]=r,e[4]=a,e[5]=c}else a=e[4],c=e[5];if(c!==Symbol.for("react.early_return_sentinel"))return c;let d;return e[10]!==a?(d=s.jsx(s.Fragment,{children:a}),e[10]=a,e[11]=d):d=e[11],d}function hi(t){return t.slug!==J}function gi(t){let e=0;for(let n=0;n<t.length;n++)e=t.charCodeAt(n)+((e<<5)-e);const i=Math.abs(e)%360;return{backgroundColor:`hsl(${i} 55% 70%)`,color:`hsl(${i} 55% 20%)`}}function qe(t){const e=w.c(96),{isCollapsed:i,onCreateProject:n}=t,l=i===void 0?!1:i;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={strict:!1},e[0]=o):o=e[0];const{org:r,project:a}=it(o),{data:c}=Ne.useListOrganizations(),d=Xe(),m=c?.find(Y=>Y.slug===r),[u,f]=I.useState(!1),p=a===J,{data:h}=ct(m?.id??"",p?"":a??"");let b;e[1]!==r?(b=(Y,Re)=>Y.slug===r?-1:Re.slug===r?1:Y.name.localeCompare(Re.name),e[1]=r,e[2]=b):b=e[2];const v=[...c??[]].sort(b);let _;e[3]!==d||e[4]!==r?(_=()=>{r&&d({to:"/$org/$project",params:{org:r,project:J}})},e[3]=d,e[4]=r,e[5]=_):_=e[5];const g=_;let x;e[6]!==d||e[7]!==r?(x=Y=>{r&&d({to:"/$org/$project",params:{org:r,project:Y}})},e[6]=d,e[7]=r,e[8]=x):x=e[8];const N=x;let C;e[9]!==d?(C=Y=>{d({to:"/$org/$project",params:{org:Y,project:J}})},e[9]=d,e[10]=C):C=e[10];const j=C;let y;e[11]!==n?(y=n?()=>n():void 0,e[11]=n,e[12]=y):y=e[12];const k=y;let $;e[13]!==d||e[14]!==r||e[15]!==a?($=()=>{if(!r||!a)return;const Y=a===J;d({to:"/$org/$project",params:{org:r,project:a},search:Re=>({...Re,settings:Y?"org.general":`project:${a}:general`})})},e[13]=d,e[14]=r,e[15]=a,e[16]=$):$=e[16];const z=$,D=ut,M=l?"w-auto pr-1.5":"w-full";let R;e[17]!==M?(R=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]",M),e[17]=M,e[18]=R):R=e[18];const L=p?s.jsx("div",{className:P("shrink-0 rounded-md flex items-center justify-center border border-border/50 overflow-hidden transition-[width,height] duration-300 ease-[var(--ease-out-quart)]",l?"size-6":"size-8"),style:m?.logo?void 0:gi(m?.name??""),children:m?.logo?s.jsx("img",{src:m.logo,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:P("font-semibold leading-none",l?"text-[9px]":"text-xs"),children:(m?.name??"?").slice(0,2).toUpperCase()})}):s.jsx("div",{className:P("shrink-0 rounded-md flex items-center justify-center border border-border/50 overflow-hidden transition-[width,height] duration-300 ease-[var(--ease-out-quart)]",l?"size-6":"size-8"),style:h?.ui?.icon?void 0:{backgroundColor:h?.ui?.themeColor??"#60a5fa"},children:h?.ui?.icon?s.jsx("img",{src:h.ui.icon,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:P("font-semibold text-white",l?"text-xs":"text-lg"),children:(h?.name??a??"?").charAt(0).toUpperCase()})});let O;e[19]!==m?.name||e[20]!==h?.name||e[21]!==l||e[22]!==p||e[23]!==a?(O=!l&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex-1 min-w-0 flex flex-col justify-center",children:[s.jsx("span",{className:"block text-[11px] text-sidebar-foreground/50 leading-tight truncate",children:m?.name??"Select org"}),s.jsx("span",{className:"block text-sm font-semibold text-sidebar-foreground truncate leading-tight",children:p?"Studio":h?.name??a??""})]}),s.jsx(Ht,{size:16,className:"shrink-0 text-sidebar-foreground/40"})]}),e[19]=m?.name,e[20]=h?.name,e[21]=l,e[22]=p,e[23]=a,e[24]=O):O=e[24];let A;e[25]!==R||e[26]!==L||e[27]!==O?(A=s.jsx(pt,{asChild:!0,children:s.jsxs("button",{type:"button",className:R,children:[L,O]})}),e[25]=R,e[26]=L,e[27]=O,e[28]=A):A=e[28];const T=ft,E="start",H="bottom",F="w-64 flex flex-col gap-0.5",K=bi,ie=p&&"bg-accent";let ee;e[29]!==ie?(ee=P("gap-2.5",ie),e[29]=ie,e[30]=ee):ee=e[30];const ce=m?.logo??"",de=m?.name??"";let G;e[31]!==ce||e[32]!==de?(G=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]=G):G=e[33];const X=m?.name;let V;e[34]!==X?(V=s.jsxs("span",{className:"flex-1 truncate",children:["Studio · ",X]}),e[34]=X,e[35]=V):V=e[35];let me;e[36]!==p?(me=p&&s.jsx(Pe,{size:14,className:"ml-auto text-muted-foreground shrink-0"}),e[36]=p,e[37]=me):me=e[37];let q;e[38]!==g||e[39]!==ee||e[40]!==G||e[41]!==V||e[42]!==me?(q=s.jsxs(re,{className:ee,onClick:g,children:[G,V,me]}),e[38]=g,e[39]=ee,e[40]=G,e[41]=V,e[42]=me,e[43]=q):q=e[43];let Q;e[44]===Symbol.for("react.memo_cache_sentinel")?(Q=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]=Q):Q=e[44];let U;e[45]!==m||e[46]!==N||e[47]!==r||e[48]!==a?(U=m&&s.jsx(I.Suspense,{fallback:s.jsx(pi,{}),children:s.jsx(xi,{organizationId:m.id,currentProjectSlug:a,orgSlug:r??"",onSelect:N})}),e[45]=m,e[46]=N,e[47]=r,e[48]=a,e[49]=U):U=e[49];let te;e[50]!==k?(te=k&&s.jsxs(re,{className:"gap-2.5",onClick:k,children:[s.jsx(Le,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Create project"})]}),e[50]=k,e[51]=te):te=e[51];let B;e[52]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx(Ue,{}),e[52]=B):B=e[52];const Z=vs;let se;e[53]===Symbol.for("react.memo_cache_sentinel")?(se=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]=se):se=e[53];const fe=js,je="w-48 flex flex-col gap-0.5";let ne;e[54]!==j||e[55]!==r?(ne=Y=>s.jsxs(re,{className:P("gap-2.5",Y.slug===r&&"bg-accent"),onClick:()=>j(Y.slug),children:[s.jsx(Ie,{url:Y.logo??"",fallback:Y.name,size:"xs",className:"size-5 rounded-md shrink-0",objectFit:"cover"}),s.jsx("span",{className:"flex-1 truncate",children:Y.name}),Y.slug===r&&s.jsx(Pe,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},Y.id),e[54]=j,e[55]=r,e[56]=ne):ne=e[56];const S=v.map(ne);let W;e[57]===Symbol.for("react.memo_cache_sentinel")?(W=s.jsx(Ue,{}),e[57]=W):W=e[57];let le;e[58]!==f?(le=()=>f(!0),e[58]=f,e[59]=le):le=e[59];let he,ye;e[60]===Symbol.for("react.memo_cache_sentinel")?(he=s.jsx(Le,{size:14,className:"shrink-0 text-muted-foreground"}),ye=s.jsx("span",{children:"Create organization"}),e[60]=he,e[61]=ye):(he=e[60],ye=e[61]);let ue;e[62]!==le?(ue=s.jsxs(re,{className:"gap-2.5",onClick:le,children:[he,ye]}),e[62]=le,e[63]=ue):ue=e[63];let pe;e[64]!==fe||e[65]!==S||e[66]!==ue?(pe=s.jsxs(fe,{className:je,children:[S,W,ue]}),e[64]=fe,e[65]=S,e[66]=ue,e[67]=pe):pe=e[67];let Se;e[68]!==Z||e[69]!==se||e[70]!==pe?(Se=s.jsxs(Z,{children:[se,pe]}),e[68]=Z,e[69]=se,e[70]=pe,e[71]=Se):Se=e[71];let Te,De;e[72]===Symbol.for("react.memo_cache_sentinel")?(Te=s.jsx(He,{size:14,className:"shrink-0 text-muted-foreground"}),De=s.jsx("span",{children:"Settings"}),e[72]=Te,e[73]=De):(Te=e[72],De=e[73]);let _e;e[74]!==z?(_e=s.jsxs(re,{className:"gap-2.5",onClick:z,children:[Te,De]}),e[74]=z,e[75]=_e):_e=e[75];let ke;e[76]!==T||e[77]!==K||e[78]!==q||e[79]!==Q||e[80]!==U||e[81]!==te||e[82]!==B||e[83]!==Se||e[84]!==_e?(ke=s.jsxs(T,{align:E,side:H,className:F,onCloseAutoFocus:K,children:[q,Q,U,te,B,Se,_e]}),e[76]=T,e[77]=K,e[78]=q,e[79]=Q,e[80]=U,e[81]=te,e[82]=B,e[83]=Se,e[84]=_e,e[85]=ke):ke=e[85];let Ce;e[86]!==D||e[87]!==A||e[88]!==ke?(Ce=s.jsxs(D,{children:[A,ke]}),e[86]=D,e[87]=A,e[88]=ke,e[89]=Ce):Ce=e[89];let we;e[90]!==u||e[91]!==f?(we=s.jsx(Ss,{open:u,onOpenChange:f}),e[90]=u,e[91]=f,e[92]=we):we=e[92];let Me;return e[93]!==Ce||e[94]!==we?(Me=s.jsxs(s.Fragment,{children:[Ce,we]}),e[93]=Ce,e[94]=we,e[95]=Me):Me=e[95],Me}function bi(t){return t.preventDefault()}qe.Skeleton=function(){return s.jsxs("div",{className:"flex items-center gap-1.5 h-7 px-1.5 w-full",children:[s.jsx(ae,{className:"size-5 rounded-[5px] shrink-0 bg-sidebar-accent"}),s.jsx(ae,{className:"h-3.5 flex-1 bg-sidebar-accent"})]})};function Qe(t){const e=w.c(4),{onCreateProject:i}=t,{state:n,toggleSidebar:l}=Ke(),o=n==="collapsed";let r;return e[0]!==o||e[1]!==i||e[2]!==l?(r=s.jsx(vt,{className:"px-3 group-data-[collapsible=icon]:px-2 animate-in fade-in-0 duration-200",children:s.jsx(be,{children:s.jsx(xe,{children:o?s.jsxs("div",{className:"flex flex-col w-full gap-0.5",children:[s.jsx(qe,{isCollapsed:!0,onCreateProject:i}),s.jsx(Oe,{onClick:l,tooltip:"Expand sidebar",children:s.jsx(Ve,{})})]}):s.jsxs("div",{className:"flex items-center justify-between w-full gap-1",children:[s.jsx("div",{className:"min-w-0 flex-1",children:s.jsx(qe,{isCollapsed:!1,onCreateProject:i})}),s.jsx(Oe,{onClick:l,tooltip:"Collapse sidebar",className:"size-7 shrink-0",children:s.jsx(Ve,{})})]})})})}),e[0]=o,e[1]=i,e[2]=l,e[3]=r):r=e[3],r}Qe.Skeleton=function(){return s.jsx(vt,{className:"px-3",children:s.jsx(be,{children:s.jsx(xe,{children:s.jsxs("div",{className:"flex items-center justify-between w-full",children:[s.jsxs("div",{className:"flex items-center gap-3 min-w-0 flex-1 p-1.5",children:[s.jsx(ae,{className:"size-8 rounded-md shrink-0 bg-sidebar-accent"}),s.jsx(ae,{className:"h-3.5 w-16 bg-sidebar-accent"})]}),s.jsx("div",{className:"flex items-center gap-0.5",children:s.jsx(ae,{className:"size-7 rounded-lg bg-sidebar-accent"})})]})})})})};function ji(t){const e=w.c(50),{user:i,userImage:n}=t,{open:l}=at(),[o,r]=I.useState(!1);let a;e[0]!==i.email||e[1]!==i.id||e[2]!==i.name?(a=()=>{const K=`ID: ${i.id}
|
|
2
|
-
Name: ${i.name||"N/A"}
|
|
3
|
-
Email: ${i.email}`;navigator.clipboard.writeText(K),r(!0),ve.success("User info copied to clipboard"),setTimeout(()=>r(!1),2e3)},e[0]=i.email,e[1]=i.id,e[2]=i.name,e[3]=a):a=e[3];const c=a,d=i.name||i.email||"U";let m;e[4]!==d||e[5]!==n?(m=s.jsx(Ie,{url:n,fallback:d,shape:"circle",size:"2xs",className:"shrink-0 size-5"}),e[4]=d,e[5]=n,e[6]=m):m=e[6];const u=i.name||"User";let f;e[7]!==u?(f=s.jsx("div",{className:"flex-1 min-w-0 group-data-[collapsible=icon]:hidden",children:s.jsx("div",{className:"text-sm font-medium truncate text-sidebar-foreground leading-none",children:u})}),e[7]=u,e[8]=f):f=e[8];let p;e[9]!==m||e[10]!==f?(p=s.jsx(pt,{asChild:!0,children:s.jsxs("button",{className:"flex w-full h-8 items-center gap-2 rounded-md px-1 hover:bg-sidebar-accent transition-colors text-left min-w-0",children:[m,f]})}),e[9]=m,e[10]=f,e[11]=p):p=e[11];const h=i.name||i.email||"U";let b;e[12]!==h||e[13]!==n?(b=s.jsx(Ie,{url:n,fallback:h,shape:"circle",size:"sm",className:"shrink-0"}),e[12]=h,e[13]=n,e[14]=b):b=e[14];const v=i.name||"User";let _;e[15]!==v?(_=s.jsx("div",{className:"text-sm font-medium truncate",children:v}),e[15]=v,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 N;e[22]!==o?(N=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]=N):N=e[23];let C;e[24]!==c||e[25]!==x||e[26]!==N||e[27]!==b?(C=s.jsxs(re,{onClick:c,className:"gap-2.5 group",children:[b,x,N]}),e[24]=c,e[25]=x,e[26]=N,e[27]=b,e[28]=C):C=e[28];let j;e[29]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx(Ue,{}),e[29]=j):j=e[29];let y;e[30]!==l?(y=()=>l("account.preferences"),e[30]=l,e[31]=y):y=e[31];let 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]!==y?(z=s.jsxs(re,{className:"gap-2.5",onClick:y,children:[k,$]}),e[34]=y,e[35]=z):z=e[35];let D;e[36]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx(re,{asChild:!0,children:s.jsxs("a",{href:"https://www.decocms.com/terms-of-use",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(ks,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Terms of Use"}),s.jsx($e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[36]=D):D=e[36];let M;e[37]===Symbol.for("react.memo_cache_sentinel")?(M=s.jsx(re,{asChild:!0,children:s.jsxs("a",{href:"https://www.decocms.com/privacy-policy",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(ws,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Privacy Policy"}),s.jsx($e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[37]=M):M=e[37];let R;e[38]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx(re,{asChild:!0,children:s.jsxs("a",{href:"https://github.com/decocms/mesh",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(zt,{className:"w-3.5 h-3.5 shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"decocms/mesh"}),s.jsx($e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[38]=R):R=e[38];let L;e[39]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx(re,{asChild:!0,children:s.jsxs("a",{href:"https://decocms.com/discord",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(et,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Community"}),s.jsx($e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[39]=L):L=e[39];let O,A;e[40]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsx(re,{asChild:!0,children:s.jsxs("a",{href:"https://decocms.com",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(Cs,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Homepage"}),s.jsx($e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),A=s.jsx(Ue,{}),e[40]=O,e[41]=A):(O=e[40],A=e[41]);let T;e[42]===Symbol.for("react.memo_cache_sentinel")?(T=s.jsxs(re,{className:"gap-2.5",onClick:vi,children:[s.jsx(bt,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Sign out"})]}),e[42]=T):T=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.175.9"]})}),e[43]=E):E=e[43];let H;e[44]!==C||e[45]!==z?(H=s.jsxs(ft,{side:"top",align:"end",collisionPadding:8,className:"w-64 flex flex-col gap-0.5",onCloseAutoFocus:Ni,children:[C,j,z,D,M,R,L,O,A,T,E]}),e[44]=C,e[45]=z,e[46]=H):H=e[46];let F;return e[47]!==H||e[48]!==p?(F=s.jsxs(ut,{children:[p,H]}),e[47]=H,e[48]=p,e[49]=F):F=e[49],F}function vi(){return Ne.signOut()}function Ni(t){return t.preventDefault()}function St(){const t=w.c(7),{data:e}=Ne.useSession();if(!e?.user){let c;return t[0]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(Ie,{url:void 0,fallback:"U",shape:"circle",size:"sm",className:"cursor-pointer h-7 w-7",muted:!0}),t[0]=c):c=t[0],c}const i=e.user,n=i.name??void 0;let l;t[1]!==n||t[2]!==i?(l={...i,name:n},t[1]=n,t[2]=i,t[3]=l):l=t[3];const o=l,r=i.image;let a;return t[4]!==r||t[5]!==o?(a=s.jsx(ji,{user:o,userImage:r}),t[4]=r,t[5]=o,t[6]=a):a=t[6],a}function yi({invitation:t}){const[e,i]=I.useState(!1),[n,l]=I.useState(!1),o=Pt(),r=async()=>{i(!0);try{const c=await Ne.organization.acceptInvitation({invitationId:t.id});if(c.error)ve.error(c.error.message),i(!1);else{const d=await Ne.organization.setActive({organizationId:t.organizationId});ve.success("Invitation accepted!");const m=d?.data?.slug;window.location.href=m?`/${m}`:"/"}}catch{ve.error("Failed to accept invitation"),i(!1)}},a=async()=>{l(!0);try{const c=await Ne.organization.rejectInvitation({invitationId:t.id});c.error?(ve.error(c.error.message),l(!1)):(ve.success("Invitation declined"),o.invalidateQueries())}catch{ve.error("Failed to decline invitation"),l(!1)}};return s.jsxs("div",{className:"flex items-center gap-3 px-5 py-4 border-b border-border last:border-0 hover:bg-muted/25 transition-colors",children:[s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("p",{className:"text-xs text-muted-foreground",children:"You've been invited to join"}),s.jsx("p",{className:"text-sm font-medium truncate",children:t.organizationName??"Unknown organization"})]}),s.jsxs("div",{className:"flex items-center gap-1 shrink-0",children:[s.jsx(Ge,{size:"icon",variant:"ghost",className:"size-7 text-green-600 hover:text-green-700 hover:bg-green-50 dark:hover:bg-green-950",onClick:r,disabled:e||n,"aria-label":"Accept invitation",children:s.jsx(Pe,{size:14})}),s.jsx(Ge,{size:"icon",variant:"ghost",className:"size-7 text-muted-foreground hover:text-destructive hover:bg-destructive/10",onClick:a,disabled:e||n,"aria-label":"Decline invitation",children:s.jsx(Ps,{size:14})})]})]})}function Si(){const t=I.useContext(It),{data:e}=t.hooks.useListUserInvitations();return(e??[]).filter(n=>n.status==="pending"&&new Date(n.expiresAt)>new Date)}class _i extends I.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,i){}render(){return this.state.hasError?null:this.props.children}}function ki(t){return t<=1?"text-destructive":t<=5?"text-amber-500 dark:text-amber-400":"text-foreground/70"}function Ci(){const t=w.c(15),{open:e}=at(),{org:i}=ze();let n;t[0]!==i.id?(n={connectionId:Kt,orgId:i.id},t[0]=i.id,t[1]=n):n=t[1];const l=Wt(n);let o;t[2]===Symbol.for("react.memo_cache_sentinel")?(o={providerId:"deco"},t[2]=o):o=t[2];let r;t[3]!==l?(r={client:l,toolName:"AI_PROVIDER_CREDITS",toolArguments:o,staleTime:6e4,select:wi},t[3]=l,t[4]=r):r=t[4];const{data:a,isPending:c,isError:d}=As(r),m=a?.balanceCents!=null?a.balanceCents/100:null;let u;t[5]!==e?(u=()=>e("org.billing"),t[5]=e,t[6]=u):u=t[6];let f;t[7]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx(gt,{size:13,className:"text-muted-foreground/60 shrink-0"}),s.jsx("span",{className:"text-xs text-muted-foreground",children:"Credits"})]}),t[7]=f):f=t[7];let p;t[8]!==m||t[9]!==d||t[10]!==c?(p=c||d||m==null?s.jsx("span",{className:"text-xs font-medium tabular-nums text-muted-foreground/40",children:"—"}):s.jsxs("span",{className:P("text-xs font-medium tabular-nums",ki(m)),children:["$",m.toFixed(2)]}),t[8]=m,t[9]=d,t[10]=c,t[11]=p):p=t[11];let h;return t[12]!==u||t[13]!==p?(h=s.jsxs("button",{type:"button",onClick:u,className:"group-data-[collapsible=icon]:hidden flex items-center justify-between w-full px-2 py-1.5 rounded-md hover:bg-sidebar-accent transition-colors",children:[f,p]}),t[12]=u,t[13]=p,t[14]=h):h=t[14],h}function wi(t){return t.structuredContent}function $i(){const t=w.c(1);if(!Zt().some(zi))return null;let n;return t[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(Ci,{}),t[0]=n):n=t[0],n}function zi(t){return t.providerId==="deco"}function Ii(){const t=w.c(13),e=Si();let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(_i,{children:s.jsx(I.Suspense,{fallback:null,children:s.jsx($i,{})})}),t[0]=i):i=t[0];let n;t[1]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx("div",{className:"flex-1 min-w-0",children:s.jsx(St,{})}),t[1]=n):n=t[1];let l;t[2]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(zs,{asChild:!0,children:s.jsx(Ge,{variant:"ghost",size:"icon",className:"size-8 text-sidebar-foreground/50 hover:text-sidebar-foreground hover:bg-sidebar-accent","aria-label":"Open inbox",children:s.jsx(st,{size:16})})}),t[2]=l):l=t[2];let o;t[3]!==e.length?(o=e.length>0&&s.jsx("span",{className:"absolute top-1 right-1 size-2 rounded-full bg-red-500 ring-2 ring-sidebar pointer-events-none"}),t[3]=e.length,t[4]=o):o=t[4];let r;t[5]!==o?(r=s.jsxs("div",{className:"relative",children:[l,o]}),t[5]=o,t[6]=r):r=t[6];let a;t[7]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx("div",{className:"px-4 py-3 border-b border-border shrink-0",children:s.jsx("h3",{className:"text-sm font-medium",children:"Inbox"})}),t[7]=a):a=t[7];let c;t[8]!==e?(c=s.jsxs($s,{side:"right",align:"end",sideOffset:24,className:"w-[400px] p-0 h-[650px] flex flex-col",children:[a,e.length===0?s.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center gap-2 px-6 text-center",children:[s.jsx(st,{size:24,className:"text-muted-foreground/50"}),s.jsx("p",{className:"text-sm font-medium text-foreground",children:"No messages or invites pending"}),s.jsx("p",{className:"text-xs text-muted-foreground",children:"Messages, workspace and project invitations will appear here"})]}):s.jsx("div",{className:"overflow-y-auto flex-1",children:e.map(Pi)})]}),t[8]=e,t[9]=c):c=t[9];let d;return t[10]!==r||t[11]!==c?(d=s.jsxs(li,{className:"px-3.5 pb-3 group-data-[collapsible=icon]:px-2",children:[i,s.jsx(be,{children:s.jsx(xe,{children:s.jsxs("div",{className:"flex items-center w-full gap-1",children:[n,s.jsx("div",{className:"group-data-[collapsible=icon]:hidden",children:s.jsxs(Is,{children:[r,c]})})]})})})]}),t[10]=r,t[11]=c,t[12]=d):d=t[12],d}function Pi(t){return s.jsx(yi,{invitation:t},t.id)}function Ai(t){const e=w.c(11),{project:i}=t,n=i.ui?.themeColor??"#60a5fa";if(i.ui?.icon){let c;return e[0]!==i.ui.icon?(c=s.jsx("img",{src:i.ui.icon,alt:"",className:"size-4 rounded object-cover border border-border/50"}),e[0]=i.ui.icon,e[1]=c):c=e[1],c}let l;e[2]!==n?(l={backgroundColor:n},e[2]=n,e[3]=l):l=e[3];let o;e[4]!==i.name?(o=i.name.charAt(0).toUpperCase(),e[4]=i.name,e[5]=o):o=e[5];let r;e[6]!==o?(r=s.jsx("span",{className:"text-[10px] font-medium text-white",children:o}),e[6]=o,e[7]=r):r=e[7];let a;return e[8]!==l||e[9]!==r?(a=s.jsx("div",{className:"size-4 rounded flex items-center justify-center border border-border/50",style:l,children:r}),e[8]=l,e[9]=r,e[10]=a):a=e[10],a}function Ei(t){const e=w.c(14),{project:i}=t,n=Xe(),{org:l}=ze();let o;e[0]!==n||e[1]!==l.slug||e[2]!==i.slug?(o=()=>{n({to:"/$org/$project",params:{org:l.slug,project:i.slug}})},e[0]=n,e[1]=l.slug,e[2]=i.slug,e[3]=o):o=e[3];let r;e[4]!==i?(r=s.jsx(Ai,{project:i}),e[4]=i,e[5]=r):r=e[5];let a;e[6]!==i.name?(a=s.jsx("span",{className:"truncate flex-1 group-data-[collapsible=icon]:hidden",children:i.name}),e[6]=i.name,e[7]=a):a=e[7];let c;e[8]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(Ds,{size:12,className:"text-muted-foreground opacity-0 group-hover/item:opacity-100 transition-opacity group-data-[collapsible=icon]:hidden"}),e[8]=c):c=e[8];let d;return e[9]!==i.name||e[10]!==o||e[11]!==r||e[12]!==a?(d=s.jsx(xe,{children:s.jsxs(Oe,{onClick:o,tooltip:i.name,children:[r,a,c]})}),e[9]=i.name,e[10]=o,e[11]=r,e[12]=a,e[13]=d):d=e[13],d}function Oi(){const t=w.c(55),{org:e}=ze(),{data:i,isLoading:n}=dt(e.id),[l,o]=I.useState(!0),[r,a]=I.useState(!1);let c,d,m,u,f,p,h,b,v,_,g,x,N;if(t[0]!==n||t[1]!==l||t[2]!==i){N=Symbol.for("react.early_return_sentinel");e:{const R=i?.filter(Di)??[];if(n){let F;t[16]===Symbol.for("react.memo_cache_sentinel")?(F=s.jsx(xe,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(ae,{className:"h-4 w-4 rounded"}),s.jsx(ae,{className:"h-4 flex-1"})]})}),t[16]=F):F=t[16];let K;t[17]===Symbol.for("react.memo_cache_sentinel")?(K=s.jsx(Ae,{className:"py-0 px-0",children:s.jsx(Ee,{children:s.jsxs(be,{className:"gap-0.5",children:[F,s.jsx(xe,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(ae,{className:"h-4 w-4 rounded"}),s.jsx(ae,{className:"h-4 flex-1"})]})})]})})}),t[17]=K):K=t[17],N=K;break e}x="group/projects-section mt-2",f=Es,_=l,g=o,u=Ae,v="py-0 px-0",m=Ee,d=be,h="gap-0.5";let L;t[18]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Projects"}),t[18]=L):L=t[18];const O=!l&&"-rotate-90";let A;t[19]!==O?(A=P("text-muted-foreground shrink-0 transition-transform duration-200",O),t[19]=O,t[20]=A):A=t[20];let T;t[21]!==A?(T=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:[L,s.jsx(mt,{size:12,className:A})]})}),t[21]=A,t[22]=T):T=t[22];let E;t[23]===Symbol.for("react.memo_cache_sentinel")?(E=()=>a(!0),t[23]=E):E=t[23];let H;t[24]===Symbol.for("react.memo_cache_sentinel")?(H=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]=H):H=t[24],t[25]!==T?(b=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:[T,H]})}),t[25]=T,t[26]=b):b=t[26],c=Ts,p=R.length===0?s.jsx(xe,{children:s.jsx("div",{className:"px-2 py-2 text-xs text-muted-foreground",children:"No projects yet"})}):R.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]=b,t[11]=v,t[12]=_,t[13]=g,t[14]=x,t[15]=N}else c=t[3],d=t[4],m=t[5],u=t[6],f=t[7],p=t[8],h=t[9],b=t[10],v=t[11],_=t[12],g=t[13],x=t[14],N=t[15];if(N!==Symbol.for("react.early_return_sentinel"))return N;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 j;t[30]!==d||t[31]!==h||t[32]!==b||t[33]!==C?(j=s.jsxs(d,{className:h,children:[b,C]}),t[30]=d,t[31]=h,t[32]=b,t[33]=C,t[34]=j):j=t[34];let y;t[35]!==m||t[36]!==j?(y=s.jsx(m,{children:j}),t[35]=m,t[36]=j,t[37]=y):y=t[37];let k;t[38]!==u||t[39]!==y||t[40]!==v?(k=s.jsx(u,{className:v,children:y}),t[38]=u,t[39]=y,t[40]=v,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 D;t[50]!==r?(D=s.jsx(rt,{open:r,onOpenChange:a}),t[50]=r,t[51]=D):D=t[51];let M;return t[52]!==z||t[53]!==D?(M=s.jsxs(s.Fragment,{children:[z,D]}),t[52]=z,t[53]=D,t[54]=M):M=t[54],M}function Ti(t){return s.jsx(Ei,{project:t},t.id)}function Di(t){return t.slug!==J}function Mi(){const t=w.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(I.Suspense,{fallback:s.jsx(Ae,{className:"py-0 px-0",children:s.jsx(Ee,{children:s.jsx(be,{className:"gap-0.5",children:s.jsx(xe,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(ae,{className:"h-4 w-4 rounded"}),s.jsx(ae,{className:"h-4 flex-1"})]})})})})}),children:s.jsx(Oi,{})}),t[0]=e):e=t[0],e}function Ri(t){const e=w.c(12),{onCreateProject:i}=t,n=Gs(),{locator:l}=ze();let o;e[0]!==l?(o=We.isOrgAdminProject(l),e[0]=l,e[1]=o):o=e[1];const r=o;let a;e[2]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(Qe.Skeleton,{}),e[2]=a):a=e[2];let c;e[3]!==i?(c=s.jsx(I.Suspense,{fallback:a,children:s.jsx(Qe,{onCreateProject:i})}),e[3]=i,e[4]=c):c=e[4];let d;e[5]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(Ii,{}),e[5]=d):d=e[5];let m;e[6]!==r?(m=r?s.jsx(Ye,{children:s.jsx(I.Suspense,{fallback:null,children:s.jsx(Mi,{})})}):null,e[6]=r,e[7]=m):m=e[7];let u;return e[8]!==n||e[9]!==c||e[10]!==m?(u=s.jsx(yt,{sections:n,header:c,footer:d,additionalContent:m}),e[8]=n,e[9]=c,e[10]=m,e[11]=u):u=e[11],u}function Li(){const t=w.c(5),i=Ze().location.href;let n;t[0]!==i?(n=i==="/login"||i.startsWith("/login?"),t[0]=i,t[1]=n):n=t[1];const l=n;let o;if(t[2]!==i||t[3]!==l){const r=l?{}:{next:i};o=s.jsx(Tt,{to:"/login",search:r,replace:!0}),t[2]=i,t[3]=l,t[4]=o}else o=t[4];return o}function Hi(t){const e=w.c(6),{children:i}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(At,{children:s.jsx(nt,{})}),e[0]=n):n=e[0];let l;e[1]!==i?(l=s.jsx(Et,{children:i}),e[1]=i,e[2]=l):l=e[2];let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(Ot,{children:s.jsx(Li,{})}),e[3]=o):o=e[3];let r;return e[4]!==l?(r=s.jsxs(s.Fragment,{children:[n,l,o]}),e[4]=l,e[5]=r):r=e[5],r}function Ui(t){const e=w.c(10),{children:i,className:n}=t,[,l]=I.useTransition();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=Fe.decoChatPanelWidth(),e[0]=o):o=e[0];const[r,a]=Je(o,30);let c;e[1]!==a?(c=f=>l(()=>a(f)),e[1]=a,e[2]=c):c=e[2];const d=c;let m;e[3]!==n?(m=P("min-w-0",n),e[3]=n,e[4]=m):m=e[4];let u;return e[5]!==r||e[6]!==i||e[7]!==d||e[8]!==m?(u=s.jsx(xt,{defaultSize:r,minSize:20,className:m,onResize:d,children:i}),e[5]=r,e[6]=i,e[7]=d,e[8]=m,e[9]=u):u=e[9],u}function Bi(t){const e=w.c(5),{children:i}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=Fe.sidebarOpen(),e[0]=n):n=e[0];const[l,o]=Je(n,!0);let r;return e[1]!==i||e[2]!==o||e[3]!==l?(r=s.jsx(Js,{open:l,onOpenChange:o,children:i}),e[1]=i,e[2]=o,e[3]=l,e[4]=r):r=e[4],r}function Fi(t){const e=w.c(23),{isHomeRoute:i,onCreateProject:n}=t,[l]=ot();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=Fe.decoChatPanelWidth(),e[0]=o):o=e[0];const[r]=Je(o,30),a=`${r}cqi`;let c;e[1]!==a?(c={"--sidebar-width":"13.5rem","--sidebar-width-mobile":"11rem","--chat-panel-w":a},e[1]=a,e[2]=c):c=e[2];const d=c;let m;e[3]!==n?(m=s.jsx(Ri,{onCreateProject:n}),e[3]=n,e[4]=m):m=e[4];let u;e[5]===Symbol.for("react.memo_cache_sentinel")?(u={background:"transparent",containerType:"inline-size"},e[5]=u):u=e[5];let f;e[6]===Symbol.for("react.memo_cache_sentinel")?(f={overflow:"visible"},e[6]=f):f=e[6];let p;e[7]===Symbol.for("react.memo_cache_sentinel")?(p={overflow:"visible"},e[7]=p):p=e[7];const h=l&&"rounded-tr-[0.75rem] border-r";let b;e[8]!==h?(b=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]=b):b=e[9];let v;e[10]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx("div",{className:"flex-1 overflow-hidden",children:s.jsx(lt,{})}),e[10]=v):v=e[10];let _;e[11]!==b?(_=s.jsx(xt,{className:"min-w-0 flex flex-col",style:p,children:s.jsx("div",{className:b,children:v})}),e[11]=b,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 N;return e[19]!==x||e[20]!==d||e[21]!==m?(N=s.jsxs(si,{className:"flex-1 bg-sidebar",style:d,children:[m,x]}),e[19]=x,e[20]=d,e[21]=m,e[22]=N):N=e[22],N}function Ki(){const{org:t,project:e}=it({strict:!1}),i=Ze(),[n,l]=I.useState(!1),[o,r]=I.useState(!1);I.useEffect(()=>{const u=f=>{Ut(f)&&f.code==="KeyK"&&(f.preventDefault(),r(!0))};return document.addEventListener("keydown",u),()=>document.removeEventListener("keydown",u)},[]);const a=i.location.pathname===`/${t}/${e}`||i.location.pathname===`/${t}/${e}/`,c=e??J,{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===J}}},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===J}};return s.jsxs(Rt,{...m,children:[s.jsx(Bi,{children:s.jsx("div",{className:"flex flex-col h-screen overflow-hidden",children:s.jsx(oe.Provider,{children:s.jsx(Fi,{isHomeRoute:a,onCreateProject:()=>l(!0)})})})}),s.jsx(rt,{open:n,onOpenChange:l}),s.jsx(Bs,{open:o,onOpenChange:r})]})}function Ul(){const t=w.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Hi,{children:s.jsx(I.Suspense,{fallback:s.jsx(nt,{}),children:s.jsx(Ki,{})})}),t[0]=e):e=t[0],e}export{Ul as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as n,j as r,E as d,r as f,u as x,e as j}from"./index-arVkExis.js";import{T as h}from"./tasks-panel-DgG7Fs5h.js";import{P as p}from"./index-C3ftP7Sl.js";import{B as g,a as b,b as T,c as k}from"./breadcrumb-d18jYUDM.js";import{i as B}from"./Loading01-DxSeN67O.js";import{u as S}from"./context-Dw20ueMA.js";import"./task-status-DUXjLyV-.js";import"./popover-nQ7We-Lc.js";import"./skeleton-toLdhVeE.js";import"./spinner-KvxFQg-_.js";import"./tooltip-CEipEk8R.js";import"./index-B4KuSVaI.js";import"./constants-2xTOnIfa.js";import"./use-mcp-prompts-Dyl3ENGt.js";import"./useQuery-DYrQlIK1.js";import"./dialog-MKggjCdI.js";import"./X-D-hccS2q.js";import"./form-D0i7a49m.js";import"./label-CYg2MwFH.js";import"./input-BQT91Y-t.js";import"./index-1d-yx2Zl.js";import"./usage-BW6ztpN6.js";import"./ArrowUp-C0J0tyPV.js";import"./ChevronDown-BGYYwpml.js";import"./Edit01-DGglw0UP.js";import"./Lock01-Ct-zRKhn.js";import"./Users03-DFk8QutD.js";import"./use-copy-DqnyAasC.js";import"./AlertCircle-C1aHEN6f.js";import"./select-DgOkL7kV.js";import"./ChevronUp-D3BUkjtX.js";import"./Check-DnuqdVIb.js";import"./org-ai-providers-BMiTYNS_.js";import"./useMutation-CsmEWi-Q.js";import"./EyeOff-BZvotA6E.js";import"./Eye-TnopHMFL.js";import"./Key01-B7vWLx8d.js";import"./Trash01-DxNUrtVd.js";import"./card-742ND_Cc.js";import"./toggle-group-Bp4K1sba.js";import"./avatar-BV0YYD73.js";import"./ai-providers-logos-C04Mmt5f.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./ArrowLeft-CMmSGoxl.js";import"./tabs-Do1Ndlvl.js";import"./badge-BWycpk7k.js";import"./collapsible-DvRv2NnT.js";import"./index-DR3pnEhs.js";import"./Code01-C9q2vUXt.js";import"./checkbox-BVAXPERq.js";import"./AlignLeft-KEOqBH6V.js";import"./Image01-Cy0jUz67.js";import"./RefreshCcw01-BU2NGbmd.js";import"./SearchMd-CEm1UsrH.js";import"./Settings01-DOl461Rl.js";import"./Tool01-rIq-JrIA.js";import"./select-virtual-mcp-C3OM3L9w.js";import"./integration-icon-Bi_79Mu8.js";import"./Container-BTi1js90.js";import"./use-virtual-mcp-Du2a-bSk.js";import"./use-collections-Cw5P_4lQ.js";import"./use-create-virtual-mcp-UQ78Smrd.js";import"./use-mcp-resources-dnInY4Ju.js";import"./ChevronRight-DEonWml9.js";import"./Copy01-DG9TIebr.js";import"./marked.esm-BaswSlok.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-ZV-o4QFa.js";import"./types-CSjd7C9V.js";import"./Globe02-DHo2krVx.js";import"./LayersTwo01-ZqHw9gvu.js";import"./XClose-kThV85vf.js";import"./Clock-XRULycfK.js";import"./useSuspenseInfiniteQuery-DnqWbzTD.js";import"./infiniteQueryObserver-DojBlr7V.js";import"./CheckCircle-D6b9AmJJ.js";import"./collection-search-CtXFaqLY.js";import"./user-CmVhIMM1.js";import"./format-time-CMKyl-GC.js";import"./Plus-Bsw2xx3c.js";import"./dropdown-menu-CMlIw-S-.js";import"./decopilot-events-Brt4gAR6.js";import"./index-DeLtuFdF.js";function v(){const t=n.c(8),{org:o,project:s}=x(),a=j(),{switchToTask:c}=S();let i;t[0]!==a||t[1]!==o.slug||t[2]!==s.slug||t[3]!==c?(i=async u=>{await c(u),a({to:"/$org/$project",params:{org:o.slug,project:s.slug}})},t[0]=a,t[1]=o.slug,t[2]=s.slug,t[3]=c,t[4]=i):i=t[4];const l=i;let m;t[5]===Symbol.for("react.memo_cache_sentinel")?(m=r.jsx(p.Header,{children:r.jsx(p.Header.Left,{children:r.jsx(g,{children:r.jsx(b,{children:r.jsx(T,{children:r.jsx(k,{children:"Tasks"})})})})})}),t[5]=m):m=t[5];let e;return t[6]!==l?(e=r.jsxs(p,{children:[m,r.jsx(p.Content,{children:r.jsx("div",{className:"h-full flex flex-col overflow-hidden",children:r.jsx(h,{onTaskSelect:l})})})]}),t[6]=l,t[7]=e):e=t[7],e}function rr(){const t=n.c(1);let o;return t[0]===Symbol.for("react.memo_cache_sentinel")?(o=r.jsx(d,{children:r.jsx(f.Suspense,{fallback:r.jsx("div",{className:"flex h-full items-center justify-center",children:r.jsx(B,{size:32,className:"animate-spin text-muted-foreground"})}),children:r.jsx(v,{})})}),t[0]=o):o=t[0],o}export{rr as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{v as I,c as K,x as D,w}from"./index-arVkExis.js";import{u as x}from"./useMutation-CsmEWi-Q.js";import{K as A}from"./constants-2xTOnIfa.js";function q(o,n,s){const t=[];if(o?.trim()){const e=o.trim(),r=s.map(a=>({field:[String(a)],operator:"contains",value:e}));r.length===1&&r[0]?t.push(r[0]):r.length>1&&t.push({operator:"or",conditions:r})}if(n&&n.length>0)for(const e of n)t.push({field:[e.column],operator:"eq",value:e.value});if(t.length!==0)return t.length===1?t[0]:{operator:"and",conditions:t}}function U(o,n,s){const t=o??s,e=n??"asc";return[{field:[String(t)],direction:e}]}function O(o){if(!o||typeof o!="object")throw new Error("Invalid result");if("isError"in o&&o.isError)throw new Error("content"in o&&Array.isArray(o.content)&&o.content[0]?.type==="text"?o.content[0].text:"Unknown error");if("structuredContent"in o)return o.structuredContent;throw new Error("No structured content found")}function Y(o,n,s,t){const e=K.c(14);let r,a,u;if(e[0]!==t||e[1]!==n||e[2]!==s||e[3]!==o){const i=n.toUpperCase();r=`COLLECTION_${i}_GET`,u=I,a=A.collectionItem(t,o,"",i,s??""),e[0]=t,e[1]=n,e[2]=s,e[3]=o,e[4]=r,e[5]=a,e[6]=u}else r=e[4],a=e[5],u=e[6];let c;e[7]!==t||e[8]!==r||e[9]!==s?(c=async()=>{if(!s)return{item:null};const i=await t.callTool({name:r,arguments:{id:s}});return O(i)},e[7]=t,e[8]=r,e[9]=s,e[10]=c):c=e[10];let f;e[11]!==a||e[12]!==c?(f={queryKey:a,queryFn:c,staleTime:6e4},e[11]=a,e[12]=c,e[13]=f):f=e[13];const{data:p}=u(f);return p?.item??null}const Q={structuredContent:{items:[]},isError:!1};function j(o,n,s,t={}){const{searchTerm:e,filters:r,sortKey:a,sortDirection:u,searchFields:c=["title","description"],defaultSortKey:f="updated_at",pageSize:p=100}=t,i=n.toUpperCase(),m=`COLLECTION_${i}_LIST`,d=q(e,r,c),y=U(a,u,f),E={...d&&{where:d},...y&&{orderBy:y},limit:p,offset:0},g=JSON.stringify(E),C=A.collectionList(s,o,"",i,g),{data:S}=I({queryKey:C,queryFn:async()=>s?await s.callTool({name:m,arguments:E}):Q,staleTime:3e4,retry:!1,select:h=>O(h??{})?.items??[]});return S}function G(o,n,s,t={}){const{searchTerm:e,filters:r,sortKey:a,sortDirection:u,searchFields:c=["title","description"],defaultSortKey:f="updated_at",pageSize:p=100}=t,i=n.toUpperCase(),m=q(e,r,c),d=U(a,u,f),y={...m&&{where:m},...d&&{orderBy:d},limit:p,offset:0},E=JSON.stringify(y);return A.collectionList(o,s,"",i,E)}function W(o,n,s){const t=K.c(34),e=D();let r;t[0]!==n?(r=n.toUpperCase(),t[0]=n,t[1]=r):r=t[1];const a=r,u=`COLLECTION_${a}_CREATE`,c=`COLLECTION_${a}_UPDATE`,f=`COLLECTION_${a}_DELETE`;let p;t[2]!==e||t[3]!==o||t[4]!==a?(p=()=>{e.invalidateQueries({predicate:_=>{const l=_.queryKey;return l[1]===o&&l[3]==="collection"&&l[4]===a}})},t[2]=e,t[3]=o,t[4]=a,t[5]=p):p=t[5];const i=p;let m;t[6]!==s||t[7]!==u?(m=async _=>{const l=await s.callTool({name:u,arguments:{data:_}});if(l.isError)throw new Error(Array.isArray(l.content)?l.content[0]?.text:String(l.content));return O(l).item},t[6]=s,t[7]=u,t[8]=m):m=t[8];let d;t[9]!==i?(d=()=>{i(),w.success("Item created successfully")},t[9]=i,t[10]=d):d=t[10];let y;t[11]!==m||t[12]!==d?(y={mutationFn:m,onSuccess:d,onError:P},t[11]=m,t[12]=d,t[13]=y):y=t[13];const E=x(y);let g;t[14]!==s||t[15]!==c?(g=async _=>{const{id:l,data:v}=_,b=await s.callTool({name:c,arguments:{id:l,data:v}});return O(b).item},t[14]=s,t[15]=c,t[16]=g):g=t[16];let C;t[17]!==i?(C=()=>{i(),w.success("Item updated successfully")},t[17]=i,t[18]=C):C=t[18];let S;t[19]!==g||t[20]!==C?(S={mutationFn:g,onSuccess:C,onError:B},t[19]=g,t[20]=C,t[21]=S):S=t[21];const h=x(S);let T;t[22]!==s||t[23]!==f?(T=async _=>{const l=await s.callTool({name:f,arguments:{id:_}});return O(l).item.id},t[22]=s,t[23]=f,t[24]=T):T=t[24];let L;t[25]!==i?(L=()=>{i(),w.success("Item deleted successfully")},t[25]=i,t[26]=L):L=t[26];let N;t[27]!==T||t[28]!==L?(N={mutationFn:T,onSuccess:L,onError:k},t[27]=T,t[28]=L,t[29]=N):N=t[29];const $=x(N);let F;return t[30]!==E||t[31]!==$||t[32]!==h?(F={create:E,update:h,delete:$},t[30]=E,t[31]=$,t[32]=h,t[33]=F):F=t[33],F}function k(o){const n=o instanceof Error?o.message:String(o);w.error(`Failed to delete item: ${n}`)}function B(o){const n=o instanceof Error?o.message:String(o);w.error(`Failed to update item: ${n}`)}function P(o){const n=o instanceof Error?o.message:String(o);w.error(`Failed to create item: ${n}`)}export{Q as E,U as a,G as b,q as c,Y as d,j as e,W as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as u}from"./infiniteQueryObserver-DojBlr7V.js";import{Y as i}from"./index-arVkExis.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Y as u,ah as s}from"./index-arVkExis.js";function o(e,r){return u(e,s,r)}export{o as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as s}from"./infiniteQueryObserver-DojBlr7V.js";import{Y as u,Z as n}from"./index-arVkExis.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
Copyright © 2017, Charmander <~@charmander.me>
|
|
2
|
-
|
|
3
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
4
|
-
purpose with or without fee is hereby granted, provided that the above
|
|
5
|
-
copyright notice and this permission notice appear in all copies.
|
|
6
|
-
|
|
7
|
-
THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
|
9
|
-
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
11
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
[![Build status][ci image]][ci]
|
|
2
|
-
|
|
3
|
-
64-bit big-endian signed integer-to-string conversion designed for [pg][].
|
|
4
|
-
|
|
5
|
-
```js
|
|
6
|
-
const readInt8 = require('pg-int8');
|
|
7
|
-
|
|
8
|
-
readInt8(Buffer.from([0, 1, 2, 3, 4, 5, 6, 7]))
|
|
9
|
-
// '283686952306183'
|
|
10
|
-
```
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
[pg]: https://github.com/brianc/node-postgres
|
|
14
|
-
|
|
15
|
-
[ci]: https://travis-ci.org/charmander/pg-int8
|
|
16
|
-
[ci image]: https://api.travis-ci.org/charmander/pg-int8.svg
|