decocms 4.342.0 → 4.342.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-LT5wJDIs.js → AlertCircle-Mq4uYP3s.js} +1 -1
- package/dist/client/assets/{AreaChart-DbbBk0gG.js → AreaChart-DSXyRMmm.js} +1 -1
- package/dist/client/assets/{ArrowLeft-DXZudPup.js → ArrowLeft-CVITrxtP.js} +1 -1
- package/dist/client/assets/{ArrowUp-BZuR_K6J.js → ArrowUp-CNHLUPN5.js} +1 -1
- package/dist/client/assets/{Check-BkEv2-AF.js → Check-BhhNRMNU.js} +1 -1
- package/dist/client/assets/{CheckCircle-iXIgUTA-.js → CheckCircle-BCoRYCAM.js} +1 -1
- package/dist/client/assets/{ChevronRight-C_hjJcoX.js → ChevronRight-q_JbYpOo.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-4FSaFUJB.js → ChevronSelectorVertical-BU-CJzRy.js} +1 -1
- package/dist/client/assets/{ChevronUp-BLWk2PLk.js → ChevronUp-b-PzeywI.js} +1 -1
- package/dist/client/assets/{Copy01-CZcJJybg.js → Copy01-DUhBpg4r.js} +1 -1
- package/dist/client/assets/{CreditCard01-BaxlQmSQ.js → CreditCard01-1Ok0QwWF.js} +1 -1
- package/dist/client/assets/{DotsVertical-B5wvzS7T.js → DotsVertical-BQLviQoN.js} +1 -1
- package/dist/client/assets/{Download01-C369braV.js → Download01-C1bDQDgI.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-CbzoFLN7.js → ErrorBarContext-0Eioes4E.js} +1 -1
- package/dist/client/assets/{Eye-BgzuNcZt.js → Eye-ibUTdcXo.js} +1 -1
- package/dist/client/assets/{GitBranch01-D9Dvu6be.js → GitBranch01-bh0uxNpJ.js} +1 -1
- package/dist/client/assets/{Globe01-gtTldyUB.js → Globe01-CiS7RUms.js} +1 -1
- package/dist/client/assets/{HardDrive-BpZt7RR-.js → HardDrive-DYvVbF_2.js} +1 -1
- package/dist/client/assets/{Image01-Caaqnw-u.js → Image01-DAHgvtp4.js} +1 -1
- package/dist/client/assets/{Key01-C-AW9sc8.js → Key01-Cio39wXN.js} +1 -1
- package/dist/client/assets/{Link01-DSkW-LIC.js → Link01-DnReHnVr.js} +1 -1
- package/dist/client/assets/{LinkExternal01-DQh4pxje.js → LinkExternal01-BSsHZ7aL.js} +1 -1
- package/dist/client/assets/{Monitor01-D_TyMHF9.js → Monitor01-vaUnb86V.js} +1 -1
- package/dist/client/assets/{Package-3jrAjqYT.js → Package-XApGlufb.js} +1 -1
- package/dist/client/assets/{Palette-DB1B3_50.js → Palette-dkAr2npF.js} +1 -1
- package/dist/client/assets/{Play-d3AOy9jq.js → Play-gyn4nC-U.js} +1 -1
- package/dist/client/assets/{Plus-DW9MHDo6.js → Plus-DpxQQegv.js} +1 -1
- package/dist/client/assets/{SearchMd-CcTNnV0J.js → SearchMd-CbFIUniO.js} +1 -1
- package/dist/client/assets/{Sector-Sw00eEC-.js → Sector-CrWFGDk9.js} +1 -1
- package/dist/client/assets/{Settings02-CKXbgw8U.js → Settings02-Bpo9X8gv.js} +1 -1
- package/dist/client/assets/{Share07-BXBxd0R_.js → Share07-h7a5KYcB.js} +1 -1
- package/dist/client/assets/{Shield01-C6tyFvr_.js → Shield01-BX_Me7cI.js} +1 -1
- package/dist/client/assets/{Stars01-L1DthZ1x.js → Stars01-12uBgCmr.js} +1 -1
- package/dist/client/assets/{Sun-DznmWcGB.js → Sun-DOVdnR1v.js} +1 -1
- package/dist/client/assets/{Tool01-CK8cjNwP.js → Tool01-Buhr9Y7R.js} +1 -1
- package/dist/client/assets/{Tool02-ZSnZaFRo.js → Tool02-DIw0mhv0.js} +1 -1
- package/dist/client/assets/{Trash01-BHApmYNt.js → Trash01-CDIP8mWC.js} +1 -1
- package/dist/client/assets/{TrendUp01-jtUFJcVZ.js → TrendUp01-Bm64aKBA.js} +1 -1
- package/dist/client/assets/{Upload01-HslS21FF.js → Upload01-D5lIPLBr.js} +1 -1
- package/dist/client/assets/{User01-CbiX60zt.js → User01-BnCb_8UJ.js} +1 -1
- package/dist/client/assets/{UserSquare-GKc7Brd5.js → UserSquare-CI7iMhe-.js} +1 -1
- package/dist/client/assets/{Users01-BlUXt4Hb.js → Users01-byFntVxQ.js} +1 -1
- package/dist/client/assets/{Users03-5G50TJuV.js → Users03-SRCwiQcD.js} +1 -1
- package/dist/client/assets/{XCircle-CXkUSyNu.js → XCircle-CgX4D_Wl.js} +1 -1
- package/dist/client/assets/{XClose-Zdmfrpfd.js → XClose-CnwWALwv.js} +1 -1
- package/dist/client/assets/{Zap-DQmif984.js → Zap-C8JmWe0J.js} +1 -1
- package/dist/client/assets/{ZoomOut-DYIZFe6l.js → ZoomOut-D6sLWwOc.js} +1 -1
- package/dist/client/assets/{access-gate-BH9y-qz3.js → access-gate-CBB1Qus8.js} +1 -1
- package/dist/client/assets/{agent-icon-DxBhLyXA.js → agent-icon-BK--UuNY.js} +1 -1
- package/dist/client/assets/agents-list-62To51q8.js +1 -0
- package/dist/client/assets/{ai-providers-DoIIi7Eg.js → ai-providers-DH-JHBvi.js} +1 -1
- package/dist/client/assets/{alert-vaqg5u6D.js → alert-DETMmQuX.js} +1 -1
- package/dist/client/assets/{alert-dialog-CUqdr4tM.js → alert-dialog-Cw7BmY2P.js} +1 -1
- package/dist/client/assets/{analytics-tab-CQiaxax1.js → analytics-tab-WPqi1-Mb.js} +1 -1
- package/dist/client/assets/{api-keys-Bh3685yH.js → api-keys-BW3D8Cl3.js} +1 -1
- package/dist/client/assets/api-keys-CVTTKe7W.js +1 -0
- package/dist/client/assets/{app-editor-DUjJNll1.js → app-editor-CbxwfKbi.js} +1 -1
- package/dist/client/assets/{auth-CxhEBvSD.js → auth-CWprQaxo.js} +1 -1
- package/dist/client/assets/{auth-catchall-CauIF5Zr.js → auth-catchall-DgZdBG23.js} +1 -1
- package/dist/client/assets/{auth-entry-DWVEYH06.js → auth-entry-BuMtn5hB.js} +1 -1
- package/dist/client/assets/{auth-split-layout-BYmYBRLm.js → auth-split-layout-BW3jd9F4.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-mdGa4gfk.js → authenticate-and-persist-oauth-RvEdCg0n.js} +1 -1
- package/dist/client/assets/{automation-list-row-Czaw2zy3.js → automation-list-row-BFBCjs_3.js} +1 -1
- package/dist/client/assets/{automation-runs-O_Jk_s0m.js → automation-runs-Cb6Gp4pY.js} +1 -1
- package/dist/client/assets/{automations-CEcDUiZl.js → automations-B5IHQrQY.js} +1 -1
- package/dist/client/assets/{autosend-9QZlqHcF.js → autosend-CcA_LUz8.js} +1 -1
- package/dist/client/assets/{avatar-BZv1RFBw.js → avatar-BBxhmrGb.js} +1 -1
- package/dist/client/assets/{badge-DClgT3z5.js → badge-o_twyLc_.js} +1 -1
- package/dist/client/assets/{block-document-b5X_UTQQ.js → block-document-C7S8RrsG.js} +1 -1
- package/dist/client/assets/{breadcrumb-D6u-mq4E.js → breadcrumb-Bv7iafdd.js} +1 -1
- package/dist/client/assets/{buckets-ClZ6xgG8.js → buckets-B2SnW3nz.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-ERiLPboi.js → bulk-category-panel-DxAIiAnN.js} +1 -1
- package/dist/client/assets/{capability-load-error-DR85ybev.js → capability-load-error-CKO9v57M.js} +1 -1
- package/dist/client/assets/{cards-BCs26pYE.js → cards-Dp7Db5mb.js} +1 -1
- package/dist/client/assets/{category-editor-C-wQxWqI.js → category-editor-BPMZZuhm.js} +1 -1
- package/dist/client/assets/{cdn-tab-BoXIPc--.js → cdn-tab-D16BCati.js} +1 -1
- package/dist/client/assets/{chart-4iCl67TK.js → chart-CXoJFyt-.js} +1 -1
- package/dist/client/assets/{chat-context-DZLHrOBJ.js → chat-context-BOubSdoC.js} +1 -1
- package/dist/client/assets/{checkbox-CaayVzrM.js → checkbox-DC1-C0yj.js} +1 -1
- package/dist/client/assets/{choose-editor-DEQTEkkp.js → choose-editor-Bc-cDZws.js} +1 -1
- package/dist/client/assets/{cli-auth-success-BbI6ExVf.js → cli-auth-success-Z3jk5smt.js} +1 -1
- package/dist/client/assets/{client-icons-DhVIqU1v.js → client-icons-D9UKaR21.js} +1 -1
- package/dist/client/assets/{collection-detail-smF55N4t.js → collection-detail--XY3-4VM.js} +1 -1
- package/dist/client/assets/{collection-display-button-DFThXcdQ.js → collection-display-button-CS2gatVL.js} +1 -1
- package/dist/client/assets/{collection-search-CCVQiNWE.js → collection-search-DDhFultb.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-BoRcWEpP.js → collection-table-wrapper-DnxhYnfx.js} +1 -1
- package/dist/client/assets/{collection-tabs-51OugDBz.js → collection-tabs-BTawwpGQ.js} +1 -1
- package/dist/client/assets/{command-CyGuJjsj.js → command-HI0UCA4y.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-DIwvA-ZQ.js → commerce-onboarding-CQ6xNmqG.js} +1 -1
- package/dist/client/assets/{connect-B0PyHBL6.js → connect-DwKNthrs.js} +1 -1
- package/dist/client/assets/{connect-layout-sjinChcA.js → connect-layout-BbPV_CYv.js} +1 -1
- package/dist/client/assets/{connection-card-DTr80mAp.js → connection-card--AbKRYOT.js} +1 -1
- package/dist/client/assets/{connection-detail-CsA7ibu0.js → connection-detail-BnTzL13p.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-BCWvNlJM.js → connection-form-helpers-DvzqbiWX.js} +1 -1
- package/dist/client/assets/{connection-rE87djZE.js → connection-pA4f7OGU.js} +1 -1
- package/dist/client/assets/{connections-LiIQOzkX.js → connections-Bcbqo-1r.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-BTIOP3Mv.js → create-organization-dialog-BDM0SiIn.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-CjlGdJdl.js → decopilot-sse-pool-B5lWFZt-.js} +1 -1
- package/dist/client/assets/{dialog-C0hdN6I-.js → dialog-XLNsYC5N.js} +1 -1
- package/dist/client/assets/{domain-settings-BpC5P8oH.js → domain-settings-D8l3vAYa.js} +1 -1
- package/dist/client/assets/{drawer-CQmL17ky.js → drawer-B9HENLxP.js} +1 -1
- package/dist/client/assets/{dropdown-menu-BR4sIedJ.js → dropdown-menu-Bv4xz-Hs.js} +1 -1
- package/dist/client/assets/{e2e-tab-lwayj0r9.js → e2e-tab-CvVeB4CK.js} +1 -1
- package/dist/client/assets/{editor-ClVf0tX9.js → editor-C9lwPPsr.js} +1 -1
- package/dist/client/assets/{empty-state-BsdxmJEx.js → empty-state-DBeBQToo.js} +1 -1
- package/dist/client/assets/{empty-state-CiEhDfyE.js → empty-state-DbGmoVR9.js} +1 -1
- package/dist/client/assets/{extract-connection-data-i4oPNaMl.js → extract-connection-data-CnBnjNlB.js} +1 -1
- package/dist/client/assets/{file-explorer-BK5P5d7H.js → file-explorer-CzlG2Igr.js} +1 -1
- package/dist/client/assets/{file-type-icon-BOyoD7ig.js → file-type-icon-BEvKB0u0.js} +1 -1
- package/dist/client/assets/{folder-icon-Cx67WJC7.js → folder-icon-KNBEt_sQ.js} +1 -1
- package/dist/client/assets/{form-BemOciZL.js → form-C5ACRAcC.js} +1 -1
- package/dist/client/assets/{general-D6HYFGuD.js → general-D7XFFecn.js} +1 -1
- package/dist/client/assets/{github-icon-CKZchUfd.js → github-icon-CM4v-wXP.js} +1 -1
- package/dist/client/assets/{hooks-BZ2yoAU7.js → hooks-Cn77eRzF.js} +1 -1
- package/dist/client/assets/{hosting-tab-91R1BSAJ.js → hosting-tab-CfrA3kwE.js} +1 -1
- package/dist/client/assets/{index-By3xDZlt.js → index-B8T2qimk.js} +1 -1
- package/dist/client/assets/{index-Dq7NzZeF.js → index-BWXU2njW.js} +1 -1
- package/dist/client/assets/{index-CqtTDPgS.js → index-C6E8zBzO.js} +1 -1
- package/dist/client/assets/{index-dPPdQ8at.js → index-CAxyGGMQ.js} +1 -1
- package/dist/client/assets/{index-AsjoiIuo.js → index-CS-1h95w.js} +1 -1
- package/dist/client/assets/{index-Dzw2OChz.js → index-CXkrxM8i.js} +29 -29
- package/dist/client/assets/{index-D4kNOXaZ.js → index-CmFHzaVd.js} +2 -2
- package/dist/client/assets/{index-B55r_KxQ.js → index-D68yFqMR.js} +1 -1
- package/dist/client/assets/{index-Bb1WDG2O.js → index-Db3hRosd.js} +1 -1
- package/dist/client/assets/{index-4OdJVp9K.js → index-JbbZQ3Xs.js} +1 -1
- package/dist/client/assets/{index-redirect-C5HYd3Jz.js → index-redirect-CZO5gh5Z.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-B38m7S1G.js → infiniteQueryObserver-C1YqOU9I.js} +1 -1
- package/dist/client/assets/{infra-billing-ChPkZ7AP.js → infra-billing-BYA-V5U4.js} +1 -1
- package/dist/client/assets/{input-BsyUUAk4.js → input-BrGTSicR.js} +1 -1
- package/dist/client/assets/{integration-icon-B-nWK7nm.js → integration-icon-Dzu38eaZ.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-BidaVbu9.js → invite-member-dialog-B2h9AYTV.js} +1 -1
- package/dist/client/assets/{label-CFXRIjUC.js → label-MXwspLYA.js} +1 -1
- package/dist/client/assets/{layout-BhYdn-qY.js → layout-CEh12qgq.js} +1 -1
- package/dist/client/assets/{login-B5M5m6HM.js → login-Bia0cwSF.js} +1 -1
- package/dist/client/assets/{markdown-BIMYtFwO.js → markdown-B2HeF9Qf.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-CFiZxB5J.js → mcp-app-renderer-BSbDxloq.js} +1 -1
- package/dist/client/assets/{mcp-oauth-BFc24jEi.js → mcp-oauth-DnRZAi4a.js} +1 -1
- package/dist/client/assets/{members-CCkNrMnh.js → members-B5yE10gT.js} +1 -1
- package/dist/client/assets/{monaco-editor-CcBOmiGc.js → monaco-editor-V_EQb8R1.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-D6jTRgRR.js → monitoring-stats-row-BOnyGIW4.js} +1 -1
- package/dist/client/assets/{multi-select-CgDe1qEz.js → multi-select-SJUONz5_.js} +1 -1
- package/dist/client/assets/{oauth-callback-DRcwkVOk.js → oauth-callback-BEVZ58Xt.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DIet0yLY.js → oauth-callback-ai-provider-DCxPOz99.js} +1 -1
- package/dist/client/assets/{onboarding-C7WOGq7E.js → onboarding-BAPEOo9w.js} +1 -1
- package/dist/client/assets/{org-layout-DRGgPXLg.js → org-layout-DmLXu8Vs.js} +1 -1
- package/dist/client/assets/{organization-choice-CjVkrkNP.js → organization-choice-570eURm6.js} +1 -1
- package/dist/client/assets/{orgs-C4QFVt5W.js → orgs-8DPbTGjs.js} +1 -1
- package/dist/client/assets/{page-seo-form-C2PP6fBK.js → page-seo-form-BWhBnhLr.js} +1 -1
- package/dist/client/assets/{popover-DC0i3xso.js → popover-DU2O05yH.js} +1 -1
- package/dist/client/assets/{post-calendar-CjhQ0YXm.js → post-calendar-Dz5hH17f.js} +1 -1
- package/dist/client/assets/{post-editor-Dn1PaK0o.js → post-editor-C4TYwrwv.js} +1 -1
- package/dist/client/assets/{primitives-DYfujUQv.js → primitives-DIU4mvzq.js} +1 -1
- package/dist/client/assets/{profile-6Rrl-y20.js → profile-BUf3Niqv.js} +1 -1
- package/dist/client/assets/{project-app-view-DmPLKrFR.js → project-app-view-Cq8xtL5V.js} +1 -1
- package/dist/client/assets/{project-icon-c-cAFOOf.js → project-icon-C0iKv_zT.js} +1 -1
- package/dist/client/assets/{prompts-4S-cNFdQ.js → prompts-CpDXA_L9.js} +1 -1
- package/dist/client/assets/record-editor-CKPNfjH-.js +1 -0
- package/dist/client/assets/redirect-editor-G9UZsAZ1.js +1 -0
- package/dist/client/assets/registry-7Yy-bDB0.js +2 -0
- package/dist/client/assets/{registry-layout-BhanBcMZ.js → registry-layout-C1SnPIpK.js} +1 -1
- package/dist/client/assets/{reports-DMyX9rU4.js → reports-B_6mbgI0.js} +1 -1
- package/dist/client/assets/repositories-Pg9k3lzh.js +1 -0
- package/dist/client/assets/{repository-import-picker-DFlMs7XK.js → repository-import-picker-9iV061w7.js} +1 -1
- package/dist/client/assets/repository-picker-CPgsg-CB.js +1 -0
- package/dist/client/assets/{require-capability-B6JXksIq.js → require-capability-B7n_oYja.js} +1 -1
- package/dist/client/assets/{required-auth-layout-BZ9xVc0B.js → required-auth-layout-DFE8-DIF.js} +1 -1
- package/dist/client/assets/{reset-password-DRxzYBte.js → reset-password-DYP5qNRo.js} +1 -1
- package/dist/client/assets/{review-settings-BJL7ozhs.js → review-settings-C3pgFOt_.js} +1 -1
- package/dist/client/assets/{roles-C9QJIZY1.js → roles-CWpFyXFP.js} +1 -1
- package/dist/client/assets/{schema-DRFY0EZd.js → schema-B-h-kqfi.js} +1 -1
- package/dist/client/assets/{scroll-area-BhwFFrHZ.js → scroll-area-CXXmHFR1.js} +1 -1
- package/dist/client/assets/{search-input-CqHcxgIM.js → search-input-B2m2yzjY.js} +1 -1
- package/dist/client/assets/{secrets-qn9-PeK1.js → secrets-BlI3WcxN.js} +1 -1
- package/dist/client/assets/{sections-editor-BwHLAKxe.js → sections-editor-CkoECQTI.js} +1 -1
- package/dist/client/assets/{select-BYhBdU6E.js → select-ZYFyXoho.js} +1 -1
- package/dist/client/assets/{select-model-CQCnKO2N.js → select-model-BfZBoOlP.js} +1 -1
- package/dist/client/assets/{self-tool-result-CZhq5I9G.js → self-tool-result-CHA0E5s4.js} +1 -1
- package/dist/client/assets/{seo-editor-kqdckMy_.js → seo-editor-Dt2IIbuV.js} +1 -1
- package/dist/client/assets/settings-layout-CHlUhcVk.js +1 -0
- package/dist/client/assets/settings-sidebar-Dtey7gUO.js +1 -0
- package/dist/client/assets/{shell-controls-DQHJDBxd.js → shell-controls-EGpvEmQz.js} +1 -1
- package/dist/client/assets/{shell-layout-BOo7rmop.js → shell-layout-Bs8ZFS1F.js} +1 -1
- package/dist/client/assets/{skill-preview-VAHVLmRr.js → skill-preview-DxUM8-Wl.js} +1 -1
- package/dist/client/assets/{skills-BTnDnYOi.js → skills-DeRrWb3d.js} +1 -1
- package/dist/client/assets/{sso-CfgVOUGL.js → sso-Bkh62gtX.js} +1 -1
- package/dist/client/assets/{store-CGOeDIg4.js → store-B2dUsd-4.js} +1 -1
- package/dist/client/assets/store-registry-DC8x-TIM.js +2 -0
- package/dist/client/assets/{switch-CtYBSzxu.js → switch-B1fBRtrL.js} +1 -1
- package/dist/client/assets/synced-repos-D7wJ-Fk5.js +1 -0
- package/dist/client/assets/{table-DQ_f5Jxx.js → table-ckrTQfL3.js} +1 -1
- package/dist/client/assets/{tabs-CD81k0St.js → tabs-5w6Xddnd.js} +1 -1
- package/dist/client/assets/{task-board-DERk_X9g.js → task-board-vKM8wLvG.js} +1 -1
- package/dist/client/assets/{task-route-C2mcC_wg.js → task-route-DLJTLmRN.js} +1 -1
- package/dist/client/assets/{tasks-vFns2C-w.js → tasks-DuH_kQ-7.js} +1 -1
- package/dist/client/assets/{textarea-B5JA25wz.js → textarea-CouUXzG_.js} +1 -1
- package/dist/client/assets/{thread-intent-ChFecqO4.js → thread-intent-BNbhxvmT.js} +1 -1
- package/dist/client/assets/{thread-route-DJfp8oG_.js → thread-route-CQhA6zjL.js} +1 -1
- package/dist/client/assets/{toggle-group-C3HhsNfW.js → toggle-group-DqQ6ooDT.js} +1 -1
- package/dist/client/assets/{toolbar-uHQPH11O.js → toolbar-BOTKelmV.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-BY-zouSr.js → toolbar-icon-button-CTlBJlkO.js} +1 -1
- package/dist/client/assets/{track-CcwhSjx6.js → track-BkY2J4jR.js} +1 -1
- package/dist/client/assets/{types-B8DtDD9W.js → types-CSe4KPYP.js} +1 -1
- package/dist/client/assets/{use-ai-providers-BkhiM5lH.js → use-ai-providers-ClLSQInI.js} +1 -1
- package/dist/client/assets/{use-automations-sDRCZ9sI.js → use-automations-DVhA0-8T.js} +1 -1
- package/dist/client/assets/{use-autosave-DU44GCaz.js → use-autosave-EviKRjdT.js} +1 -1
- package/dist/client/assets/{use-connection-BT4N33PO.js → use-connection-CRp-xUbr.js} +1 -1
- package/dist/client/assets/{use-copy-Bq7EVeAQ.js → use-copy-D_zXi3Mu.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-BK6iWbLs.js → use-create-virtual-mcp-Dd4NmTKS.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-CHcdnASy.js → use-date-fns-locale-VWfZkKej.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-IOqe_tnq.js → use-debounced-autosave-C-4rYsVs.js} +1 -1
- package/dist/client/assets/{use-debounced-value-CIeGTz76.js → use-debounced-value-PAzAs47R.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-CLDQlvrd.js → use-decopilot-events-xc9iStGT.js} +1 -1
- package/dist/client/assets/{use-delete-connection-CoFL78OG.js → use-delete-connection-Bp7wAg9U.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-Dv9Z9YFA.js → use-deployment-admin-my47TH5A.js} +1 -1
- package/dist/client/assets/{use-destination-route-Captgtl7.js → use-destination-route-O64KTzYr.js} +1 -1
- package/dist/client/assets/{use-file-configs-iM_-20np.js → use-file-configs-hpRk_Pkk.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-CSNKbP7x.js → use-infinite-scroll-DiOtQ6ws.js} +1 -1
- package/dist/client/assets/{use-join-requests--dVWDX2j.js → use-join-requests-DcxsWKc9.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-Cr7v3lbp.js → use-mcp-auth-status-eJREGu70.js} +1 -1
- package/dist/client/assets/{use-mcp-client-Cbk4voJc.js → use-mcp-client-6z11vQVY.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-D-uwckyQ.js → use-mcp-prompts-CFzerION.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-D--szZ42.js → use-mcp-tools-g_4kAYMR.js} +1 -1
- package/dist/client/assets/{use-members-rVc9Fto5.js → use-members-CizxuHnf.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-CwdNwJYG.js → use-navigate-to-agent-Du2ZgrOE.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-CEFAedpC.js → use-org-auth-client-DPfwumdn.js} +1 -1
- package/dist/client/assets/{use-org-notice-051vcgd3.js → use-org-notice-Div2O_Tj.js} +1 -1
- package/dist/client/assets/{use-org-sso-DGTa9R4F.js → use-org-sso-BJyGdmQw.js} +1 -1
- package/dist/client/assets/{use-organization-roles-CZrzFpU5.js → use-organization-roles-BBUluABL.js} +1 -1
- package/dist/client/assets/{use-organization-settings-uWI7czIw.js → use-organization-settings-BttgddZb.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-lkvOPsT2.js → use-panel-navigate-BTjS0spz.js} +1 -1
- package/dist/client/assets/{use-registry-connections-DFCxm1cK.js → use-registry-connections-DX4Hl1Wd.js} +1 -1
- package/dist/client/assets/{use-secrets-BTtwpo4u.js → use-secrets-BMVYPd8K.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-Br08gZr-.js → use-section-preview-base-DnizdacS.js} +1 -1
- package/dist/client/assets/{use-status-sounds-BlKY0lJY.js → use-status-sounds-Dn9APq4o.js} +1 -1
- package/dist/client/assets/{use-tags-CUheGlWf.js → use-tags-Cx7pBMvk.js} +1 -1
- package/dist/client/assets/{use-view-mode-CUPdu-w0.js → use-view-mode-DaCGaTX0.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-B28ZZwEO.js → use-virtual-mcp-5Mtd7u99.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-bVpGuzqH.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-vrEavbI2.js +1 -0
- package/dist/client/assets/{users-qYvEM-Ck.js → users-B5KV-t7N.js} +1 -1
- package/dist/client/assets/{variant-calendar-DOvuMUBR.js → variant-calendar-DPKimTvg.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-k5RHmIwI.js → view-mode-toggle-BUmaoNl3.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +564 -564
- package/dist/server/server.js +381 -381
- package/package.json +1 -1
- package/dist/client/assets/agents-list-lRXMnx60.js +0 -1
- package/dist/client/assets/api-keys-JVh8sfDn.js +0 -1
- package/dist/client/assets/record-editor-DutgKQlN.js +0 -1
- package/dist/client/assets/redirect-editor-CWHXB4Xu.js +0 -1
- package/dist/client/assets/registry-C1WT1Tpt.js +0 -2
- package/dist/client/assets/repositories-2Hi8v7gn.js +0 -1
- package/dist/client/assets/repository-picker-BaONTy9t.js +0 -1
- package/dist/client/assets/settings-layout-BTWz6IvD.js +0 -1
- package/dist/client/assets/settings-sidebar-YUq277Fj.js +0 -1
- package/dist/client/assets/store-registry-omMmZSl_.js +0 -2
- package/dist/client/assets/synced-repos-CAmHjOMv.js +0 -1
- package/dist/client/assets/useInfiniteQuery-DSvoY9-3.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-jGXZMp0V.js +0 -1
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as ue,b as pe,j as o,ab as Ae,B as le,b2 as Te,G as ge,a as we,n as Se,r as O,aR as Le,m as Ee,K as je,e as Fe,o as U,t as fe,l as ke,b8 as Pe,P as de}from"./index-D4kNOXaZ.js";import{a as ce,b as _e,D as he,c as xe}from"./dropdown-menu-BR4sIedJ.js";import{i as Ge}from"./GitBranch01-D9Dvu6be.js";import{b as Me}from"./Users03-5G50TJuV.js";import{a as Oe,b as Re,c as ze}from"./use-virtual-mcp-B28ZZwEO.js";import{i as Ue}from"./DotsVertical-B5wvzS7T.js";import{a as Be}from"./Settings02-CKXbgw8U.js";import{s as $e}from"./Trash01-BHApmYNt.js";import{A as Ve,b9 as He}from"./agent-icon-DxBhLyXA.js";import{u as Ke,f as Ce}from"./use-date-fns-locale-CHcdnASy.js";import{u as ve}from"./use-navigate-to-agent-CwdNwJYG.js";import{l as Qe}from"./use-organization-settings-uWI7czIw.js";import{E as qe}from"./empty-state-CiEhDfyE.js";import{u as Ye}from"./use-create-virtual-mcp-BK6iWbLs.js";import{b as We,u as Je}from"./use-connection-BT4N33PO.js";import{u as be}from"./use-mcp-client-Cbk4voJc.js";import{W as Xe,S as Ze}from"./constants-Daqiz8AS.js";import{a as et}from"./authenticate-and-persist-oauth-mdGa4gfk.js";import{c as tt}from"./use-mcp-tools-D--szZ42.js";import{e as ot}from"./extract-connection-data-i4oPNaMl.js";import{f as st,g as rt}from"./thread-intent-ChFecqO4.js";import{b as it,f as nt,a as lt,G as at,p as ct}from"./provision-repo-scoped-github-connection-WQFARyHG.js";import{D as mt,b as dt,c as ut,d as pt,e as gt}from"./dialog-C0hdN6I-.js";import{i as ft}from"./ArrowLeft-DXZudPup.js";import{C as ht}from"./collection-search-CCVQiNWE.js";import{G as xt}from"./github-icon-CKZchUfd.js";import{c as bt,d as jt,b as Ct,f as Dt,g as yt,e as wt,a as St,A as _t}from"./alert-dialog-CUqdr4tM.js";import{S as vt}from"./search-input-CqHcxgIM.js";import{s as De}from"./Plus-DW9MHDo6.js";import{R as Nt}from"./repository-import-picker-DFlMs7XK.js";import{u as It}from"./use-debounced-value-CIeGTz76.js";import"./Check-BkEv2-AF.js";import"./ChevronRight-C_hjJcoX.js";import"./AlertCircle-LT5wJDIs.js";import"./Tool01-CK8cjNwP.js";import"./ArrowUp-BZuR_K6J.js";import"./Tool02-ZSnZaFRo.js";import"./XCircle-CXkUSyNu.js";import"./TrendUp01-jtUFJcVZ.js";import"./ZoomOut-DYIZFe6l.js";import"./CheckCircle-iXIgUTA-.js";import"./ChevronUp-BLWk2PLk.js";import"./ChevronSelectorVertical-4FSaFUJB.js";import"./UserSquare-GKc7Brd5.js";import"./Copy01-CZcJJybg.js";import"./CreditCard01-BaxlQmSQ.js";import"./Download01-C369braV.js";import"./Eye-BgzuNcZt.js";import"./Share07-BXBxd0R_.js";import"./Globe01-gtTldyUB.js";import"./XClose-Zdmfrpfd.js";import"./HardDrive-BpZt7RR-.js";import"./Image01-Caaqnw-u.js";import"./Key01-C-AW9sc8.js";import"./Link01-DSkW-LIC.js";import"./LinkExternal01-DQh4pxje.js";import"./Monitor01-D_TyMHF9.js";import"./Sun-DznmWcGB.js";import"./Package-3jrAjqYT.js";import"./Palette-DB1B3_50.js";import"./Play-d3AOy9jq.js";import"./SearchMd-CcTNnV0J.js";import"./Shield01-C6tyFvr_.js";import"./Stars01-L1DthZ1x.js";import"./Upload01-HslS21FF.js";import"./User01-CbiX60zt.js";import"./Users01-BlUXt4Hb.js";import"./Zap-DQmif984.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-destination-route-Captgtl7.js";import"./hooks-BZ2yoAU7.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-CjlGdJdl.js";import"./task-board-DERk_X9g.js";import"./schema-DRFY0EZd.js";import"./github-repo-CTPv5ZM2.js";import"./auth-CxhEBvSD.js";import"./mcp-oauth-BFc24jEi.js";import"./metadata-dUsYcpuu.js";import"./connection-rE87djZE.js";import"./slugify-CEUa2lfQ.js";import"./repository-picker-BaONTy9t.js";import"./input-BsyUUAk4.js";import"./label-CFXRIjUC.js";import"./useInfiniteQuery-DSvoY9-3.js";import"./infiniteQueryObserver-B38m7S1G.js";function ye(t){const e=ue.c(26),{onCreateFromScratch:s,onImportGitHub:r,onImportDeco:n,isCreating:h,align:p,side:y,showBetaBadge:m,showDecoImport:b}=t,j=p===void 0?"end":p,u=pe();let g;e[0]===Symbol.for("react.memo_cache_sentinel")?(g=o.jsx(Me,{size:14}),e[0]=g):g=e[0];let f;e[1]!==u?(f=u("common.createAgentDropdown.createFromScratch"),e[1]=u,e[2]=f):f=e[2];let x;e[3]!==h||e[4]!==s||e[5]!==f?(x=o.jsxs(ce,{disabled:h,onClick:s,children:[g,f]}),e[3]=h,e[4]=s,e[5]=f,e[6]=x):x=e[6];let C;e[7]===Symbol.for("react.memo_cache_sentinel")?(C=o.jsx(Ge,{className:"size-3.5"}),e[7]=C):C=e[7];let c;e[8]!==u?(c=u("common.createAgentDropdown.importFromGitHub"),e[8]=u,e[9]=c):c=e[9];let l;e[10]!==m?(l=m&&o.jsx("span",{className:"ml-auto text-[10px] font-medium text-muted-foreground bg-muted rounded px-1 py-0.5",children:"Beta"}),e[10]=m,e[11]=l):l=e[11];let a;e[12]!==r||e[13]!==c||e[14]!==l?(a=o.jsxs(ce,{onClick:r,children:[C,c,l]}),e[12]=r,e[13]=c,e[14]=l,e[15]=a):a=e[15];let d;e[16]!==n||e[17]!==b||e[18]!==u?(d=b&&o.jsxs(ce,{onClick:n,children:[o.jsx("img",{src:"/logos/deco%20logo.svg",alt:"deco.cx",className:"size-3.5"}),u("common.createAgentDropdown.importFromDeco")]}),e[16]=n,e[17]=b,e[18]=u,e[19]=d):d=e[19];let D;return e[20]!==j||e[21]!==y||e[22]!==x||e[23]!==a||e[24]!==d?(D=o.jsxs(_e,{side:y,align:j,className:"w-48",children:[x,a,d]}),e[20]=j,e[21]=y,e[22]=x,e[23]=a,e[24]=d,e[25]=D):D=e[25],D}function At(t){const e=ue.c(50),{project:s,lastUsedAt:r,onDeleteClick:n}=t,h=ve(),p=pe(),y=Ke(),m=s.metadata?.ui?.layout;let b;e[0]!==m?(b=Ae(m),e[0]=m,e[1]=b):b=e[1];const j=b;let u;e[2]!==j||e[3]!==h||e[4]!==s.id?(u=()=>h(s.id,{panel:j}),e[2]=j,e[3]=h,e[4]=s.id,e[5]=u):u=e[5];let g;e[6]!==s.title||e[7]!==u?(g=o.jsx("button",{type:"button",onClick:u,className:"absolute inset-0 z-0","aria-label":s.title}),e[6]=s.title,e[7]=u,e[8]=g):g=e[8];let f;e[9]!==s.icon||e[10]!==s.title?(f=o.jsx(Ve,{icon:s.icon,name:s.title,size:"sm",className:"shrink-0 shadow-sm"}),e[9]=s.icon,e[10]=s.title,e[11]=f):f=e[11];let x;e[12]===Symbol.for("react.memo_cache_sentinel")?(x=o.jsx(he,{asChild:!0,children:o.jsx(le,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0",children:o.jsx(Ue,{size:20})})}),e[12]=x):x=e[12];let C;e[13]!==h||e[14]!==s.id?(C=()=>h(s.id,{panel:"settings"}),e[13]=h,e[14]=s.id,e[15]=C):C=e[15];let c;e[16]===Symbol.for("react.memo_cache_sentinel")?(c=o.jsx(Be,{size:16}),e[16]=c):c=e[16];let l;e[17]!==C?(l=o.jsxs(ce,{onClick:C,children:[c,"Settings"]}),e[17]=C,e[18]=l):l=e[18];let a;e[19]!==n?(a=n&&o.jsxs(ce,{variant:"destructive",onClick:i=>{i.stopPropagation(),n(i)},children:[o.jsx($e,{size:16}),"Delete"]}),e[19]=n,e[20]=a):a=e[20];let d;e[21]!==a||e[22]!==l?(d=o.jsx("div",{className:"relative z-10 pointer-events-auto transition-opacity sm:opacity-0 sm:group-hover:opacity-100",children:o.jsxs(xe,{children:[x,o.jsxs(_e,{align:"end",children:[l,a]})]})}),e[21]=a,e[22]=l,e[23]=d):d=e[23];let D;e[24]!==d||e[25]!==f?(D=o.jsxs("div",{className:"flex items-start justify-between",children:[f,d]}),e[24]=d,e[25]=f,e[26]=D):D=e[26];let w;e[27]!==s.title?(w=o.jsx("div",{className:"flex items-center gap-2 min-w-0",children:o.jsx("h3",{className:"text-sm font-medium text-foreground truncate",children:s.title})}),e[27]=s.title,e[28]=w):w=e[28];const K=s.description||"No description";let S;e[29]!==K?(S=o.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2",children:K}),e[29]=K,e[30]=S):S=e[30];let G;e[31]!==w||e[32]!==S?(G=o.jsxs("div",{className:"flex flex-col gap-1",children:[w,S]}),e[31]=w,e[32]=S,e[33]=G):G=e[33];let N;e[34]!==D||e[35]!==G?(N=o.jsxs("div",{className:"flex flex-col gap-3 p-4.5",children:[D,G]}),e[34]=D,e[35]=G,e[36]=N):N=e[36];let T;e[37]!==r||e[38]!==y||e[39]!==s.updated_at||e[40]!==p?(T=r?p("home.projectCard.lastUsed",{time:Ce(new Date(r),{addSuffix:!0,locale:y})}):p("home.projectCard.updated",{time:Ce(new Date(s.updated_at),{addSuffix:!0,locale:y})}),e[37]=r,e[38]=y,e[39]=s.updated_at,e[40]=p,e[41]=T):T=e[41];let L;e[42]!==T?(L=o.jsx("div",{className:"border-t border-border mt-auto",children:o.jsx("div",{className:"h-10 flex items-center px-4.5",children:o.jsx("p",{className:"text-xs text-muted-foreground",children:T})})}),e[42]=T,e[43]=L):L=e[43];let I;e[44]!==N||e[45]!==L?(I=o.jsxs("div",{className:"flex flex-col flex-1 pointer-events-none",children:[N,L]}),e[44]=N,e[45]=L,e[46]=I):I=e[46];let _;return e[47]!==I||e[48]!==g?(_=o.jsxs(Te,{className:"relative transition-colors group overflow-hidden flex flex-col h-full hover:bg-muted/50",children:[g,I]}),e[47]=I,e[48]=g,e[49]=_):_=e[49],_}function Tt(t,e){const s=ue.c(12),{org:r}=ge();let n;s[0]!==r.id?(n=Xe.REGISTRY(r.id),s[0]=r.id,s[1]=n):n=s[1];const h=n;let p;s[2]!==r.id||s[3]!==r.slug||s[4]!==h?(p={connectionId:h,orgId:r.id,orgSlug:r.slug},s[2]=r.id,s[3]=r.slug,s[4]=h,s[5]=p):p=s[5];const y=be(p);let m;s[6]!==t?(m={name:t},s[6]=t,s[7]=m):m=s[7];const b=e?.enabled??!0;let j;return s[8]!==y||s[9]!==m||s[10]!==b?(j={client:y,toolName:"COLLECTION_REGISTRY_APP_GET",toolArguments:m,enabled:b,staleTime:3e5,select:Lt},s[8]=y,s[9]=m,s[10]=b,s[11]=j):j=s[11],tt(j)}function Lt(t){return t.structuredContent?.item??null}const Et="deco/mcp-github";function Ft(t){const{org:e}=ge(),{data:s}=we.useSession(),r=We(),n=Se(),[h,p]=O.useState("idle"),[y,m]=O.useState(null),[b,j]=O.useState(null),{data:u,isLoading:g}=Tt(Et,{enabled:t.enabled}),f=O.useRef(!1);t.enabled&&u&&!g&&!f.current&&s?.user?.id&&h==="idle"&&(f.current=!0,x());async function x(){if(!(!u||!s?.user?.id||!e))try{p("installing"),m(null);const c=ot(u,e.id,s.user.id,{remoteIndex:0});if(!c.connection_url)throw new Error("Registry item is missing a remote URL for mcp-github");const{id:a}=await r.create.mutateAsync(c);p("authenticating");const d=await et({connectionId:a,orgId:e.id,orgSlug:e.slug,persistFallback:D=>r.update.mutateAsync({id:a,data:{connection_token:D}}).then(()=>{})});if(d.ran&&!d.ok){try{await r.delete.mutateAsync(a)}catch{}throw new Error(d.error&&d.error!=="no token received"?d.error:"No token received from GitHub")}Le(n,e.id),j(c),p("ready")}catch(c){m(c instanceof Error?c.message:String(c)),p("error")}}function C(){p("idle"),m(null),j(null),f.current=!1}return t.enabled&&g&&h==="idle"?{status:"installing",error:null,connection:null,retry:C}:{status:h,error:y,connection:b,retry:C}}const kt="deco-sites";function Pt(t){if(!t||typeof t!="object")return null;const e=t.github;if(!e||typeof e!="object")return null;const s=e.owner,r=e.repo;return typeof s!="string"||typeof r!="string"||s.length===0||r.length===0?null:{owner:s,repo:r}}function Gt(t,e){const s=e?Pt(e):null,r=s?.owner??kt,n=s?.repo??t;return{owner:r,name:n,url:`https://github.com/${r}/${n}`}}function Mt(t){return t.toLowerCase().trim().replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"")}async function Ne(t,e,s){const r=await fetch(t,e),n=await r.json().catch(()=>({}));if(!r.ok)throw new Error(n.error??`${s} (${r.status})`);return n}function Ot(t){return Ne(`/api/${t}/deco-sites`,void 0,"Failed to load sites")}function Rt({open:t,onOpenChange:e,onBack:s}){const r=pe(),{org:n}=ge(),h=ve(),p=Se(),{data:y}=we.useSession(),[m,b]=O.useState(null),[j,u]=O.useState(null),[g,f]=O.useState(""),x=be({connectionId:Ze,orgId:n.id,orgSlug:n.slug}),C=Je({slug:"mcp-github"}),c=it(C),l=Ft({enabled:t&&c.length===0}),a=c.length===1?c[0]??null:j,d=c.length>1&&!a,D=be({connectionId:a?.id??"",orgId:n.id,orgSlug:n.slug}),w=t&&c.length===0&&(l.status==="installing"||l.status==="authenticating"||l.status==="idle"),{data:K,isLoading:S,error:G}=Ee({queryKey:je.decoSites(y?.user?.email),queryFn:()=>Ot(n.slug),enabled:t&&!!y?.user?.email,staleTime:6e4,retry:!1}),N=K?.sites??[],T=i=>{i||(b(null),u(null),f("")),e(i)},L=N.filter(i=>i.name.toLowerCase().includes(g.toLowerCase())||(i.domains?.[0]?.domain?.toLowerCase().includes(g.toLowerCase())??!1)),I=!m||L.some(i=>i.name===m),_=Fe({mutationFn:async i=>{if(!a)throw new Error(r("common.importFromDecoDialog.githubNotConnected"));U("deco_site_import_started",{site_name:i});const{installations:P}=await nt(k=>x.callTool(k),a.id),E=N.find(k=>k.name===i);if(!E)throw new Error(r("common.importFromDecoDialog.siteNoLongerAvailable"));const v=Gt(i,E.metadata),F=lt(P,v.owner);if(!F)throw new Error(r("common.importFromDecoDialog.installGithubApp",{owner:v.owner,installUrl:at}));let R=null,Q=null;const ae=async()=>{Q&&await x.callTool({name:"COLLECTION_VIRTUAL_MCP_DELETE",arguments:{id:Q}}).catch(()=>{}),R&&await x.callTool({name:"COLLECTION_CONNECTIONS_DELETE",arguments:{id:R,force:!0}}).catch(()=>{})};try{const k=await Ne(`/api/${n.slug}/deco-sites/prepare`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({siteName:i})},r("common.importFromDecoDialog.failedToPrepareImport")),{childConnectionId:z,reused:H}=await ct({orgSlug:n.slug,sourceConnection:a,installationId:F.installationId,owner:v.owner,repo:v.name,githubCallTool:q=>D.callTool(q),selfCallTool:q=>x.callTool(q)});R=H?null:z;const B=k.icon??null,Y=Mt(i),W=i.toLowerCase(),$=st(i),V=await x.callTool({name:"COLLECTION_VIRTUAL_MCP_CREATE",arguments:{data:{title:i,description:"Imported from deco.cx",pinned:!1,icon:B??null,metadata:{instructions:null,enabled_plugins:[],siteSlug:W,previewServerUrl:$,productionUrl:$,githubRepo:{owner:v.owner,name:v.name,url:v.url,installationId:F.installationId,connectionId:z},ui:{banner:null,bannerColor:"#22C55E",icon:B,themeColor:"#22C55E",slug:Y,pinnedViews:null,layout:{defaultMainView:{type:"site-editor"},chatDefaultOpen:!1}}},connections:[{connection_id:z}]}}}),M=V.structuredContent??V;if(!M.item?.id)throw new Error(r("common.importFromDecoDialog.failedToCreateAgent"));return Q=M.item.id,{slug:Y,virtualMcpId:M.item.id,item:M.item}}catch(k){throw await ae(),k}},onSuccess:({slug:i,virtualMcpId:P,item:E})=>{U("deco_site_import_succeeded",{site_name:E.title,virtual_mcp_id:P,slug:i}),p.setQueryData(je.collectionItem(x,n.id,"","VIRTUAL_MCP",P),{item:E}),p.invalidateQueries({predicate:v=>{const F=v.queryKey;return F[1]===n.id&&F[3]==="collection"&&F[4]==="VIRTUAL_MCP"}}),fe.success(r("common.importFromDecoDialog.importSuccess",{slug:i})),T(!1),h(P)},onError:i=>{U("deco_site_import_failed",{error:i instanceof Error?i.message:"Unknown error"}),fe.error(r("common.importFromDecoDialog.importFailed",{error:(i instanceof Error?i.message:r("common.importFromDecoDialog.unknownError"))??""}))}});return o.jsx(mt,{open:t,onOpenChange:T,children:o.jsxs(dt,{className:"sm:max-w-[900px] p-0 gap-0 overflow-hidden",children:[o.jsx(ut,{className:"sr-only",children:o.jsx(pt,{children:r("common.importFromDecoDialog.title")})}),o.jsxs("div",{className:"flex items-center h-12 border-b border-border px-4 gap-3",children:[s&&o.jsx("button",{type:"button",onClick:s,className:"flex items-center justify-center text-muted-foreground hover:text-foreground transition-colors","aria-label":r("common.importFromDecoDialog.goBack"),children:o.jsx(ft,{size:18})}),o.jsx("span",{className:"text-sm font-medium text-foreground",children:r("common.importFromDecoDialog.title")})]}),o.jsx("div",{children:o.jsx(ht,{value:g,onChange:f,placeholder:r("common.importFromDecoDialog.searchPlaceholder"),onKeyDown:i=>{i.key==="Escape"&&f("")}})}),o.jsxs("div",{className:"pb-0 min-h-[300px]",children:[l.status==="error"&&o.jsxs("div",{className:"flex flex-col items-center justify-center gap-3 h-48 px-8 text-center",children:[o.jsx("p",{className:"text-sm text-destructive",children:l.error??r("common.importFromDecoDialog.failedToConnectGithub")}),o.jsx(le,{variant:"outline",size:"sm",onClick:l.retry,children:r("common.importFromDecoDialog.retryGithubSetup")})]}),w&&l.status!=="error"&&o.jsx("div",{className:"flex items-center justify-center h-48 text-sm text-muted-foreground",children:r("common.importFromDecoDialog.settingUpGithub")}),d&&!w&&l.status!=="error"&&o.jsxs("div",{className:"flex flex-col py-2",children:[o.jsx("div",{className:"px-8 py-2",children:o.jsx("p",{className:"text-xs font-medium text-muted-foreground",children:r("common.importFromDecoDialog.selectGithubConnection")})}),c.map(i=>o.jsxs("button",{type:"button",onClick:()=>u(i),className:"flex items-center gap-3 px-8 py-3 hover:bg-accent transition-colors text-left",children:[i.icon?o.jsx("img",{src:i.icon,alt:i.title,className:"size-7 rounded-full shrink-0"}):o.jsx("div",{className:"size-7 rounded-full bg-muted flex items-center justify-center shrink-0",children:o.jsx(xt,{className:"size-3.5 text-muted-foreground"})}),o.jsx("span",{className:"text-sm font-medium",children:i.title})]},i.id))]}),S&&!w&&l.status!=="error"&&o.jsx("div",{className:"flex items-center justify-center h-48 text-sm text-muted-foreground",children:r("common.importFromDecoDialog.loadingSites")}),!S&&!w&&!d&&l.status!=="error"&&!G&&N.length===0&&o.jsx("div",{className:"flex items-center justify-center h-48 text-sm text-muted-foreground",children:r("common.importFromDecoDialog.noSitesFound")}),!S&&!w&&!d&&l.status!=="error"&&N.length>0&&o.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-4 max-h-[420px] overflow-y-auto py-4 px-8 [scrollbar-gutter:stable]",children:[L.length===0&&o.jsx("p",{className:"col-span-3 text-sm text-muted-foreground text-center py-8",children:r("common.importFromDecoDialog.noSitesMatch",{search:g})}),L.map(i=>{const P=rt(i.domains),E=m===i.name;return o.jsxs("button",{type:"button",onClick:()=>b(i.name),className:ke("flex flex-col rounded-xl border overflow-hidden text-left transition-all cursor-pointer",E?"border-primary ring-1 ring-primary":"border-border hover:border-muted-foreground/40"),children:[o.jsx("div",{className:"w-full aspect-video bg-muted overflow-hidden",children:i.thumb_url?o.jsx("img",{src:i.thumb_url,alt:i.name,className:"w-full h-full object-cover",loading:"lazy"}):o.jsx("div",{className:"w-full h-full bg-muted"})}),o.jsxs("div",{className:"px-4 py-3",children:[o.jsx("p",{className:"text-sm font-medium text-foreground truncate",children:i.name}),P&&o.jsx("p",{className:"text-xs text-muted-foreground truncate mt-0.5",children:P})]})]},i.name)})]})]}),o.jsxs(gt,{className:"px-8 py-5 border-t border-border",children:[o.jsx(le,{variant:"outline",onClick:()=>T(!1),disabled:_.isPending,children:r("common.importFromDecoDialog.cancel")}),o.jsx(le,{disabled:!m||!I||_.isPending||S||w||d||!a||l.status==="error",onClick:()=>m&&_.mutate(m),children:_.isPending?r("common.importFromDecoDialog.importing"):r("common.importFromDecoDialog.import")})]})]})})}function Ds(){const t=ue.c(82),e=pe(),{org:s}=ge(),[r,n]=O.useState(""),h=It(r,300);let p;t[0]!==h?(p={searchTerm:h},t[0]=h,t[1]=p):p=t[1];const y=Oe(p),m=Re();let b;t[2]===Symbol.for("react.memo_cache_sentinel")?(b={navigateOnCreate:!0},t[2]=b):b=t[2];const{createVirtualMCP:j,isCreating:u}=Ye(b),[g,f]=O.useState(null),[x,C]=O.useState(!1),[c,l]=O.useState(!1),{granted:a}=Pe("agents:manage"),d=Qe();let D;t[3]!==s?(D=A=>A.id!==s.id,t[3]=s,t[4]=D):D=t[4];const w=y.filter(D),{data:K}=ze(w.map(zt));let S;t[5]!==m||t[6]!==g||t[7]!==e?(S=async()=>{if(!g)return;const{id:A,title:Ie}=g;f(null);try{await m.delete.mutateAsync(A),U("agent_deleted",{agent_id:A,source:"agents_list"}),fe.success(e("routes.agentsList.deletedAgent",{title:Ie}))}catch{}},t[5]=m,t[6]=g,t[7]=e,t[8]=S):S=t[8];const G=S,N=de,T=de,L=de;let I;t[9]!==e?(I=e("routes.agentsList.title"),t[9]=e,t[10]=I):I=t[10];let _;t[11]!==I?(_=o.jsx(de.Title,{children:I}),t[11]=I,t[12]=_):_=t[12];let i;t[13]!==e?(i=e("routes.agentsList.searchPlaceholder"),t[13]=e,t[14]=i):i=t[14];let P;t[15]===Symbol.for("react.memo_cache_sentinel")?(P=A=>{A.key==="Escape"&&(n(""),A.target.blur())},t[15]=P):P=t[15];let E;t[16]!==r||t[17]!==i?(E=o.jsx(vt,{value:r,onChange:n,placeholder:i,className:"w-full md:w-[375px]",onKeyDown:P}),t[16]=r,t[17]=i,t[18]=E):E=t[18];let v;t[19]!==a||t[20]!==j||t[21]!==u||t[22]!==d||t[23]!==e?(v=a&&o.jsxs(xe,{children:[o.jsx(he,{asChild:!0,children:o.jsxs(le,{size:"sm",children:[o.jsx(De,{size:14}),e("routes.agentsList.createAgent")]})}),o.jsx(ye,{onCreateFromScratch:()=>{U("agent_create_clicked",{source:"agents_list",method:"scratch"}),j()},onImportGitHub:()=>{U("agent_create_clicked",{source:"agents_list",method:"github"}),l(!0)},onImportDeco:()=>{U("agent_create_clicked",{source:"agents_list",method:"deco"}),C(!0)},isCreating:u,align:"end",showDecoImport:d})]}),t[19]=a,t[20]=j,t[21]=u,t[22]=d,t[23]=e,t[24]=v):v=t[24];let F;t[25]!==E||t[26]!==v?(F=o.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[E,v]}),t[25]=E,t[26]=v,t[27]=F):F=t[27];let R;t[28]!==F||t[29]!==_?(R=o.jsxs("div",{className:"flex flex-col gap-6",children:[_,F]}),t[28]=F,t[29]=_,t[30]=R):R=t[30];const Q=w.length===0&&o.jsx("div",{className:"flex items-center justify-center py-20",children:o.jsx(qe,{image:o.jsx(He,{size:48,className:"text-muted-foreground"}),title:e(r?"routes.agentsList.noAgentsFound":"routes.agentsList.noAgentsYet"),description:r?e("routes.agentsList.noAgentsMatchSearch",{search:r}):e(a?"routes.agentsList.createAgentToGetStarted":"routes.agentsList.askAdminToCreate"),actions:!r&&a&&o.jsxs(xe,{children:[o.jsx(he,{asChild:!0,children:o.jsxs(le,{size:"sm",children:[o.jsx(De,{size:14}),e("routes.agentsList.createAgent")]})}),o.jsx(ye,{onCreateFromScratch:()=>{U("agent_create_clicked",{source:"agents_list_empty",method:"scratch"}),j()},onImportGitHub:()=>{U("agent_create_clicked",{source:"agents_list_empty",method:"github"}),l(!0)},onImportDeco:()=>{U("agent_create_clicked",{source:"agents_list_empty",method:"deco"}),C(!0)},isCreating:u,align:"center",showBetaBadge:!0,showDecoImport:d})]})})}),ae=w.length>0&&o.jsxs("div",{className:"mt-6 @container",children:[o.jsx("h3",{className:"text-sm font-medium text-muted-foreground mb-3",children:e("routes.agentsList.agentsHeading")}),o.jsx("div",{className:"grid grid-cols-1 @lg:grid-cols-2 @4xl:grid-cols-3 @6xl:grid-cols-4 gap-4",children:w.map(A=>o.jsx(At,{project:A,lastUsedAt:K?.get(A.id)?.last_used_at,onDeleteClick:a?()=>f({id:A.id,title:A.title}):void 0},A.id))})]});let k;t[31]!==R||t[32]!==Q||t[33]!==ae||t[34]!==L.Body?(k=o.jsxs(L.Body,{children:[R,Q,ae]}),t[31]=R,t[32]=Q,t[33]=ae,t[34]=L.Body,t[35]=k):k=t[35];let z;t[36]!==k||t[37]!==T.Content?(z=o.jsx(T.Content,{children:k}),t[36]=k,t[37]=T.Content,t[38]=z):z=t[38];let H;t[39]!==c?(H=o.jsx(Nt,{open:c,onOpenChange:l}),t[39]=c,t[40]=H):H=t[40];let B;t[41]!==x?(B=o.jsx(Rt,{open:x,onOpenChange:C}),t[41]=x,t[42]=B):B=t[42];const Y=!!g;let W;t[43]===Symbol.for("react.memo_cache_sentinel")?(W=A=>!A&&f(null),t[43]=W):W=t[43];let $;t[44]!==e?($=e("routes.agentsList.deleteAgentTitle"),t[44]=e,t[45]=$):$=t[45];let V;t[46]!==$?(V=o.jsx(bt,{children:$}),t[46]=$,t[47]=V):V=t[47];let M;t[48]!==e?(M=e("routes.agentsList.deleteAgentDescription"),t[48]=e,t[49]=M):M=t[49];const q=g?.title;let J;t[50]!==q?(J=o.jsx("span",{className:"font-medium text-foreground",children:q}),t[50]=q,t[51]=J):J=t[51];let X;t[52]!==M||t[53]!==J?(X=o.jsxs(jt,{children:[M," ",J,"."]}),t[52]=M,t[53]=J,t[54]=X):X=t[54];let Z;t[55]!==V||t[56]!==X?(Z=o.jsxs(Ct,{children:[V,X]}),t[55]=V,t[56]=X,t[57]=Z):Z=t[57];let ee;t[58]!==e?(ee=e("routes.agentsList.cancelButton"),t[58]=e,t[59]=ee):ee=t[59];let te;t[60]!==ee?(te=o.jsx(Dt,{children:ee}),t[60]=ee,t[61]=te):te=t[61];let oe;t[62]!==e?(oe=e("routes.agentsList.deleteButton"),t[62]=e,t[63]=oe):oe=t[63];let se;t[64]!==G||t[65]!==oe?(se=o.jsx(yt,{onClick:G,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",children:oe}),t[64]=G,t[65]=oe,t[66]=se):se=t[66];let re;t[67]!==te||t[68]!==se?(re=o.jsxs(wt,{children:[te,se]}),t[67]=te,t[68]=se,t[69]=re):re=t[69];let ie;t[70]!==Z||t[71]!==re?(ie=o.jsxs(St,{children:[Z,re]}),t[70]=Z,t[71]=re,t[72]=ie):ie=t[72];let ne;t[73]!==Y||t[74]!==ie?(ne=o.jsx(_t,{open:Y,onOpenChange:W,children:ie}),t[73]=Y,t[74]=ie,t[75]=ne):ne=t[75];let me;return t[76]!==N||t[77]!==z||t[78]!==H||t[79]!==B||t[80]!==ne?(me=o.jsxs(N,{children:[z,H,B,ne]}),t[76]=N,t[77]=z,t[78]=H,t[79]=B,t[80]=ne,t[81]=me):me=t[81],me}function zt(t){return t.id}export{Ds as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as o,j as r}from"./index-D4kNOXaZ.js";import{O as m}from"./api-keys-Bh3685yH.js";import{R as p}from"./require-capability-B6JXksIq.js";import"./AlertCircle-LT5wJDIs.js";import"./Copy01-CZcJJybg.js";import"./Key01-C-AW9sc8.js";import"./Plus-DW9MHDo6.js";import"./Trash01-BHApmYNt.js";import"./alert-dialog-CUqdr4tM.js";import"./dialog-C0hdN6I-.js";import"./input-BsyUUAk4.js";import"./label-CFXRIjUC.js";import"./use-mcp-client-Cbk4voJc.js";import"./constants-Daqiz8AS.js";import"./auth-CxhEBvSD.js";import"./access-gate-BH9y-qz3.js";import"./capability-load-error-DR85ybev.js";function A(){const t=o.c(1);let i;return t[0]===Symbol.for("react.memo_cache_sentinel")?(i=r.jsx(p,{capability:"api-keys:manage",area:"api-keys",children:r.jsx(m,{})}),t[0]=i):i=t[0],i}export{A as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as B,b as L,j as r}from"./index-D4kNOXaZ.js";import{I as A}from"./input-BsyUUAk4.js";import{L as F}from"./label-CFXRIjUC.js";import{S as R,b as z,a as J,d as O,c as V}from"./select-BYhBdU6E.js";import{T as D}from"./textarea-B5JA25wz.js";import{e as M,w as $,j as q,y as G,J as H}from"./index-Dzw2OChz.js";import{s as P}from"./primitives-DYfujUQv.js";import{u as Q}from"./use-autosave-DU44GCaz.js";import"./Check-BkEv2-AF.js";import"./ChevronUp-BLWk2PLk.js";import"./ArrowUp-BZuR_K6J.js";import"./chat-context-DZLHrOBJ.js";import"./use-panel-navigate-lkvOPsT2.js";import"./use-destination-route-Captgtl7.js";import"./autosend-9QZlqHcF.js";import"./thread-intent-ChFecqO4.js";import"./slugify-CEUa2lfQ.js";import"./hooks-BZ2yoAU7.js";import"./use-mcp-client-Cbk4voJc.js";import"./constants-Daqiz8AS.js";import"./auth-CxhEBvSD.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-CjlGdJdl.js";import"./task-board-DERk_X9g.js";import"./schema-DRFY0EZd.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-B28ZZwEO.js";import"./use-ai-providers-BkhiM5lH.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-CLDQlvrd.js";import"./thread-route-DJfp8oG_.js";import"./dialog-C0hdN6I-.js";import"./Copy01-CZcJJybg.js";import"./Download01-C369braV.js";import"./use-organization-settings-uWI7czIw.js";import"./automation-runs-O_Jk_s0m.js";import"./agent-icon-DxBhLyXA.js";import"./AlertCircle-LT5wJDIs.js";import"./Tool01-CK8cjNwP.js";import"./ArrowLeft-DXZudPup.js";import"./Tool02-ZSnZaFRo.js";import"./XCircle-CXkUSyNu.js";import"./TrendUp01-jtUFJcVZ.js";import"./ZoomOut-DYIZFe6l.js";import"./Users03-5G50TJuV.js";import"./CheckCircle-iXIgUTA-.js";import"./ChevronRight-C_hjJcoX.js";import"./ChevronSelectorVertical-4FSaFUJB.js";import"./DotsVertical-B5wvzS7T.js";import"./UserSquare-GKc7Brd5.js";import"./CreditCard01-BaxlQmSQ.js";import"./Settings02-CKXbgw8U.js";import"./Eye-BgzuNcZt.js";import"./Share07-BXBxd0R_.js";import"./GitBranch01-D9Dvu6be.js";import"./Globe01-gtTldyUB.js";import"./XClose-Zdmfrpfd.js";import"./HardDrive-BpZt7RR-.js";import"./Image01-Caaqnw-u.js";import"./Key01-C-AW9sc8.js";import"./Link01-DSkW-LIC.js";import"./LinkExternal01-DQh4pxje.js";import"./Monitor01-D_TyMHF9.js";import"./Sun-DznmWcGB.js";import"./Package-3jrAjqYT.js";import"./Palette-DB1B3_50.js";import"./Play-d3AOy9jq.js";import"./Plus-DW9MHDo6.js";import"./SearchMd-CcTNnV0J.js";import"./Shield01-C6tyFvr_.js";import"./Stars01-L1DthZ1x.js";import"./Trash01-BHApmYNt.js";import"./Upload01-HslS21FF.js";import"./User01-CbiX60zt.js";import"./Users01-BlUXt4Hb.js";import"./Zap-DQmif984.js";import"./useInfiniteQuery-DSvoY9-3.js";import"./infiniteQueryObserver-B38m7S1G.js";import"./use-connection-BT4N33PO.js";import"./table-DQ_f5Jxx.js";import"./empty-state-CiEhDfyE.js";import"./use-infinite-scroll-CSNKbP7x.js";import"./use-members-rVc9Fto5.js";import"./use-org-auth-client-CEFAedpC.js";import"./use-automations-sDRCZ9sI.js";import"./useSuspenseInfiniteQuery-jGXZMp0V.js";import"./avatar-BZv1RFBw.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-copy-Bq7EVeAQ.js";import"./markdown-BIMYtFwO.js";import"./monaco-editor-CcBOmiGc.js";import"./editor-ClVf0tX9.js";import"./mcp-app-renderer-CFiZxB5J.js";import"./types-B8DtDD9W.js";import"./shell-layout-BOo7rmop.js";import"./project-icon-c-cAFOOf.js";import"./github-repo-CTPv5ZM2.js";import"./source-system-tabs-CnEGUb4r.js";import"./command-CyGuJjsj.js";import"./index-By3xDZlt.js";import"./required-auth-layout-BZ9xVc0B.js";import"./use-org-sso-DGTa9R4F.js";import"./use-org-notice-051vcgd3.js";import"./integration-icon-B-nWK7nm.js";import"./use-navigate-to-agent-CwdNwJYG.js";import"./use-mcp-prompts-D-uwckyQ.js";import"./form-BemOciZL.js";import"./file-type-icon-BOyoD7ig.js";import"./drawer-CQmL17ky.js";import"./collection-search-CCVQiNWE.js";import"./tabs-CD81k0St.js";import"./toggle-group-C3HhsNfW.js";import"./task-route-C2mcC_wg.js";import"./extract-connection-data-i4oPNaMl.js";import"./metadata-dUsYcpuu.js";import"./connection-rE87djZE.js";import"./connection-card-DTr80mAp.js";import"./use-registry-connections-DFCxm1cK.js";import"./retry-CErkP7V6.js";import"./connection-slug-CITJ0kGN.js";import"./connection-form-helpers-BCWvNlJM.js";import"./authenticate-and-persist-oauth-mdGa4gfk.js";import"./mcp-oauth-BFc24jEi.js";import"./collection-tabs-51OugDBz.js";import"./badge-DClgT3z5.js";import"./use-file-configs-iM_-20np.js";import"./site-slug-uya6Wp4-.js";import"./dropdown-menu-BR4sIedJ.js";import"./popover-DC0i3xso.js";import"./github-icon-CKZchUfd.js";import"./get-initials-D-f_fDFw.js";import"./select-model-CQCnKO2N.js";import"./checkbox-CaayVzrM.js";import"./ai-providers-logos-DD3qZ33J.js";import"./folder-icon-Cx67WJC7.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-BlKY0lJY.js";import"./toolbar-uHQPH11O.js";import"./use-mcp-tools-D--szZ42.js";import"./skill-preview-VAHVLmRr.js";import"./use-date-fns-locale-CHcdnASy.js";import"./alert-dialog-CUqdr4tM.js";import"./use-debounced-autosave-IOqe_tnq.js";import"./scroll-area-BhwFFrHZ.js";import"./search-input-CqHcxgIM.js";import"./use-mcp-auth-status-Cr7v3lbp.js";import"./switch-CtYBSzxu.js";import"./repository-import-picker-DFlMs7XK.js";import"./repository-picker-BaONTy9t.js";import"./use-debounced-value-CIeGTz76.js";import"./use-secrets-BTtwpo4u.js";import"./client-icons-DhVIqU1v.js";import"./connect-layout-sjinChcA.js";import"./self-tool-result-CZhq5I9G.js";import"./provision-repo-scoped-github-connection-WQFARyHG.js";import"./track-CcwhSjx6.js";import"./use-tags-CUheGlWf.js";import"./breadcrumb-D6u-mq4E.js";import"./toolbar-icon-button-BY-zouSr.js";import"./safe-image-url-D5z803Ot.js";import"./automation-list-row-Czaw2zy3.js";import"./site-error--i37Vnuw.js";import"./cards-BCs26pYE.js";const U={authors:[{key:"name",labelKey:"sandbox.recordEditor.fieldName",widget:"text"},{key:"type",labelKey:"sandbox.recordEditor.fieldType",widget:"select",options:[{value:"Person",labelKey:"sandbox.recordEditor.optionPerson"},{value:"Organization",labelKey:"sandbox.recordEditor.optionOrganization"}]},{key:"email",labelKey:"sandbox.recordEditor.fieldEmail",widget:"text",placeholderKey:"sandbox.recordEditor.placeholderEmail"},{key:"jobTitle",labelKey:"sandbox.recordEditor.fieldJobTitle",widget:"text"},{key:"company",labelKey:"sandbox.recordEditor.fieldCompany",widget:"text"},{key:"avatar",labelKey:"sandbox.recordEditor.fieldAvatar",widget:"image"}]},W={authors:"sandbox.recordEditor.titleAuthor"};function ti(I){const t=B.c(39),{orgSlug:E,virtualMcpId:K,branch:w,kind:a,blockKey:b,block:f}=I,i=L();let h;t[0]!==w||t[1]!==E||t[2]!==K?(h={orgSlug:E,virtualMcpId:K,branch:w},t[0]=w,t[1]=E,t[2]=K,t[3]=h):h=t[3];const p=M(h);let g;t[4]!==f||t[5]!==a?(g=$(f,a),t[4]=f,t[5]=a,t[6]=g):g=t[6];const C=g;let k;t[7]!==b||t[8]!==a||t[9]!==p?(k=l=>{p.mutate({blockKey:b,data:G(b,a,l)})},t[7]=b,t[8]=a,t[9]=p,t[10]=k):k=t[10];const[e,S]=Q(C,k);let v;t[11]!==e||t[12]!==S?(v=(l,o)=>S({...e,[l]:o}),t[11]=e,t[12]=S,t[13]=v):v=t[13];const s=v,N=W[a];let n;t[14]!==i||t[15]!==N?(n=i(N),t[14]=i,t[15]=N,t[16]=n):n=t[16];let c;t[17]!==n?(c=r.jsx("span",{className:"text-sm font-medium",children:n}),t[17]=n,t[18]=c):c=t[18];let d;t[19]!==p.isError||t[20]!==p.isPending?(d=r.jsx(q,{isPending:p.isPending,isError:p.isError}),t[19]=p.isError,t[20]=p.isPending,t[21]=d):d=t[21];let y;t[22]!==c||t[23]!==d?(y=r.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[c,d]}),t[22]=c,t[23]=d,t[24]=y):y=t[24];const T=U[a];let x;if(t[25]!==e||t[26]!==s||t[27]!==i||t[28]!==T){let l;t[30]!==e||t[31]!==s||t[32]!==i?(l=o=>r.jsx("div",{className:"space-y-2",children:o.widget==="image"?r.jsx(H,{schema:{type:"string",format:"image-uri",title:i(o.labelKey)},value:e[o.key],onChange:m=>s(o.key,m),path:o.key,label:i(o.labelKey)}):o.widget==="select"?r.jsxs(r.Fragment,{children:[r.jsx(F,{htmlFor:o.key,children:i(o.labelKey)}),r.jsxs(R,{value:P(e[o.key])||o.options?.[0]?.value,onValueChange:m=>s(o.key,m),children:[r.jsx(z,{id:o.key,className:"h-10 w-full",children:r.jsx(J,{placeholder:i(o.labelKey)})}),r.jsx(O,{children:(o.options??[]).map(m=>r.jsx(V,{value:m.value,children:i(m.labelKey)},m.value))})]})]}):r.jsxs(r.Fragment,{children:[r.jsx(F,{htmlFor:o.key,children:i(o.labelKey)}),o.widget==="textarea"?r.jsx(D,{id:o.key,value:P(e[o.key]),onChange:m=>s(o.key,m.target.value),rows:3}):r.jsx(A,{id:o.key,value:P(e[o.key]),placeholder:o.placeholderKey?i(o.placeholderKey):void 0,onChange:m=>s(o.key,m.target.value),className:"h-10"})]})},o.key),t[30]=e,t[31]=s,t[32]=i,t[33]=l):l=t[33],x=T.map(l),t[25]=e,t[26]=s,t[27]=i,t[28]=T,t[29]=x}else x=t[29];let u;t[34]!==x?(u=r.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto px-6 py-6",children:r.jsx("div",{className:"mx-auto max-w-xl space-y-6",children:x})}),t[34]=x,t[35]=u):u=t[35];let j;return t[36]!==u||t[37]!==y?(j=r.jsxs("div",{className:"flex h-full flex-col",children:[y,u]}),t[36]=u,t[37]=y,t[38]=j):j=t[38],j}export{ti as RecordEditor};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as lt,b as at,j as r}from"./index-D4kNOXaZ.js";import{C as ct}from"./checkbox-CaayVzrM.js";import{I as rt}from"./input-BsyUUAk4.js";import{L as et}from"./label-CFXRIjUC.js";import{c as dt,b as nt,a as ft,d as xt,S as ht}from"./select-BYhBdU6E.js";import{e as ut,bD as bt,j as yt,bE as jt,bF as vt}from"./index-Dzw2OChz.js";import{u as Et}from"./use-autosave-DU44GCaz.js";import"./Check-BkEv2-AF.js";import"./ChevronUp-BLWk2PLk.js";import"./ArrowUp-BZuR_K6J.js";import"./chat-context-DZLHrOBJ.js";import"./use-panel-navigate-lkvOPsT2.js";import"./use-destination-route-Captgtl7.js";import"./autosend-9QZlqHcF.js";import"./thread-intent-ChFecqO4.js";import"./slugify-CEUa2lfQ.js";import"./hooks-BZ2yoAU7.js";import"./use-mcp-client-Cbk4voJc.js";import"./constants-Daqiz8AS.js";import"./auth-CxhEBvSD.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-CjlGdJdl.js";import"./task-board-DERk_X9g.js";import"./schema-DRFY0EZd.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-B28ZZwEO.js";import"./use-ai-providers-BkhiM5lH.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-CLDQlvrd.js";import"./thread-route-DJfp8oG_.js";import"./dialog-C0hdN6I-.js";import"./Copy01-CZcJJybg.js";import"./Download01-C369braV.js";import"./use-organization-settings-uWI7czIw.js";import"./automation-runs-O_Jk_s0m.js";import"./agent-icon-DxBhLyXA.js";import"./AlertCircle-LT5wJDIs.js";import"./Tool01-CK8cjNwP.js";import"./ArrowLeft-DXZudPup.js";import"./Tool02-ZSnZaFRo.js";import"./XCircle-CXkUSyNu.js";import"./TrendUp01-jtUFJcVZ.js";import"./ZoomOut-DYIZFe6l.js";import"./Users03-5G50TJuV.js";import"./CheckCircle-iXIgUTA-.js";import"./ChevronRight-C_hjJcoX.js";import"./ChevronSelectorVertical-4FSaFUJB.js";import"./DotsVertical-B5wvzS7T.js";import"./UserSquare-GKc7Brd5.js";import"./CreditCard01-BaxlQmSQ.js";import"./Settings02-CKXbgw8U.js";import"./Eye-BgzuNcZt.js";import"./Share07-BXBxd0R_.js";import"./GitBranch01-D9Dvu6be.js";import"./Globe01-gtTldyUB.js";import"./XClose-Zdmfrpfd.js";import"./HardDrive-BpZt7RR-.js";import"./Image01-Caaqnw-u.js";import"./Key01-C-AW9sc8.js";import"./Link01-DSkW-LIC.js";import"./LinkExternal01-DQh4pxje.js";import"./Monitor01-D_TyMHF9.js";import"./Sun-DznmWcGB.js";import"./Package-3jrAjqYT.js";import"./Palette-DB1B3_50.js";import"./Play-d3AOy9jq.js";import"./Plus-DW9MHDo6.js";import"./SearchMd-CcTNnV0J.js";import"./Shield01-C6tyFvr_.js";import"./Stars01-L1DthZ1x.js";import"./Trash01-BHApmYNt.js";import"./Upload01-HslS21FF.js";import"./User01-CbiX60zt.js";import"./Users01-BlUXt4Hb.js";import"./Zap-DQmif984.js";import"./useInfiniteQuery-DSvoY9-3.js";import"./infiniteQueryObserver-B38m7S1G.js";import"./use-connection-BT4N33PO.js";import"./table-DQ_f5Jxx.js";import"./empty-state-CiEhDfyE.js";import"./use-infinite-scroll-CSNKbP7x.js";import"./use-members-rVc9Fto5.js";import"./use-org-auth-client-CEFAedpC.js";import"./use-automations-sDRCZ9sI.js";import"./useSuspenseInfiniteQuery-jGXZMp0V.js";import"./avatar-BZv1RFBw.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-copy-Bq7EVeAQ.js";import"./markdown-BIMYtFwO.js";import"./monaco-editor-CcBOmiGc.js";import"./editor-ClVf0tX9.js";import"./mcp-app-renderer-CFiZxB5J.js";import"./types-B8DtDD9W.js";import"./shell-layout-BOo7rmop.js";import"./project-icon-c-cAFOOf.js";import"./github-repo-CTPv5ZM2.js";import"./source-system-tabs-CnEGUb4r.js";import"./command-CyGuJjsj.js";import"./index-By3xDZlt.js";import"./required-auth-layout-BZ9xVc0B.js";import"./use-org-sso-DGTa9R4F.js";import"./use-org-notice-051vcgd3.js";import"./integration-icon-B-nWK7nm.js";import"./use-navigate-to-agent-CwdNwJYG.js";import"./use-mcp-prompts-D-uwckyQ.js";import"./form-BemOciZL.js";import"./file-type-icon-BOyoD7ig.js";import"./drawer-CQmL17ky.js";import"./collection-search-CCVQiNWE.js";import"./tabs-CD81k0St.js";import"./toggle-group-C3HhsNfW.js";import"./task-route-C2mcC_wg.js";import"./extract-connection-data-i4oPNaMl.js";import"./metadata-dUsYcpuu.js";import"./connection-rE87djZE.js";import"./connection-card-DTr80mAp.js";import"./use-registry-connections-DFCxm1cK.js";import"./retry-CErkP7V6.js";import"./connection-slug-CITJ0kGN.js";import"./textarea-B5JA25wz.js";import"./connection-form-helpers-BCWvNlJM.js";import"./authenticate-and-persist-oauth-mdGa4gfk.js";import"./mcp-oauth-BFc24jEi.js";import"./collection-tabs-51OugDBz.js";import"./badge-DClgT3z5.js";import"./use-file-configs-iM_-20np.js";import"./site-slug-uya6Wp4-.js";import"./dropdown-menu-BR4sIedJ.js";import"./popover-DC0i3xso.js";import"./github-icon-CKZchUfd.js";import"./get-initials-D-f_fDFw.js";import"./select-model-CQCnKO2N.js";import"./ai-providers-logos-DD3qZ33J.js";import"./folder-icon-Cx67WJC7.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-BlKY0lJY.js";import"./toolbar-uHQPH11O.js";import"./use-mcp-tools-D--szZ42.js";import"./skill-preview-VAHVLmRr.js";import"./use-date-fns-locale-CHcdnASy.js";import"./alert-dialog-CUqdr4tM.js";import"./use-debounced-autosave-IOqe_tnq.js";import"./scroll-area-BhwFFrHZ.js";import"./search-input-CqHcxgIM.js";import"./use-mcp-auth-status-Cr7v3lbp.js";import"./switch-CtYBSzxu.js";import"./repository-import-picker-DFlMs7XK.js";import"./repository-picker-BaONTy9t.js";import"./use-debounced-value-CIeGTz76.js";import"./use-secrets-BTtwpo4u.js";import"./client-icons-DhVIqU1v.js";import"./connect-layout-sjinChcA.js";import"./self-tool-result-CZhq5I9G.js";import"./provision-repo-scoped-github-connection-WQFARyHG.js";import"./track-CcwhSjx6.js";import"./use-tags-CUheGlWf.js";import"./breadcrumb-D6u-mq4E.js";import"./toolbar-icon-button-BY-zouSr.js";import"./safe-image-url-D5z803Ot.js";import"./automation-list-row-Czaw2zy3.js";import"./site-error--i37Vnuw.js";import"./cards-BCs26pYE.js";const gt=[{value:"temporary",labelKey:"sandbox.redirectEditor.typeTemporary"},{value:"permanent",labelKey:"sandbox.redirectEditor.typePermanent"}];function Si(it){const t=lt.c(106),{orgSlug:H,virtualMcpId:J,branch:W,blockKey:X,block:Z}=it,e=at();let V;t[0]!==W||t[1]!==H||t[2]!==J?(V={orgSlug:H,virtualMcpId:J,branch:W},t[0]=W,t[1]=H,t[2]=J,t[3]=V):V=t[3];const s=ut(V);let M;t[4]!==Z?(M=bt(Z),t[4]=Z,t[5]=M):M=t[5];const ot=M;let Y;t[6]!==X||t[7]!==s?(Y=i=>{s.mutate({blockKey:X,data:vt(i)})},t[6]=X,t[7]=s,t[8]=Y):Y=t[8];const[o,tt]=Et(ot,Y);let $;t[9]!==o||t[10]!==tt?($=i=>tt({...o,...i}),t[9]=o,t[10]=tt,t[11]=$):$=t[11];const m=$;let p;t[12]!==e?(p=e("sandbox.redirectEditor.title"),t[12]=e,t[13]=p):p=t[13];let l;t[14]!==p?(l=r.jsx("span",{className:"text-sm font-medium",children:p}),t[14]=p,t[15]=l):l=t[15];let a;t[16]!==s.isError||t[17]!==s.isPending?(a=r.jsx(yt,{isPending:s.isPending,isError:s.isError}),t[16]=s.isError,t[17]=s.isPending,t[18]=a):a=t[18];let c;t[19]!==l||t[20]!==a?(c=r.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[l,a]}),t[19]=l,t[20]=a,t[21]=c):c=t[21];let d;t[22]!==e?(d=e("sandbox.redirectEditor.fromLabel"),t[22]=e,t[23]=d):d=t[23];let n;t[24]!==d?(n=r.jsx(et,{htmlFor:"redirect-from",children:d}),t[24]=d,t[25]=n):n=t[25];const mt=o.from;let f;t[26]!==e?(f=e("sandbox.redirectEditor.fromPlaceholder"),t[26]=e,t[27]=f):f=t[27];let x;t[28]!==m?(x=i=>m({from:i.target.value}),t[28]=m,t[29]=x):x=t[29];let h;t[30]!==o.from||t[31]!==f||t[32]!==x?(h=r.jsx(rt,{id:"redirect-from",value:mt,placeholder:f,onChange:x,className:"h-10"}),t[30]=o.from,t[31]=f,t[32]=x,t[33]=h):h=t[33];let u;t[34]!==e?(u=e("sandbox.redirectEditor.fromDescription"),t[34]=e,t[35]=u):u=t[35];let b;t[36]!==u?(b=r.jsx("p",{className:"text-xs text-muted-foreground",children:u}),t[36]=u,t[37]=b):b=t[37];let y;t[38]!==n||t[39]!==h||t[40]!==b?(y=r.jsxs("div",{className:"space-y-2",children:[n,h,b]}),t[38]=n,t[39]=h,t[40]=b,t[41]=y):y=t[41];let j;t[42]!==e?(j=e("sandbox.redirectEditor.toLabel"),t[42]=e,t[43]=j):j=t[43];let v;t[44]!==j?(v=r.jsx(et,{htmlFor:"redirect-to",children:j}),t[44]=j,t[45]=v):v=t[45];const st=o.to;let E;t[46]!==e?(E=e("sandbox.redirectEditor.toPlaceholder"),t[46]=e,t[47]=E):E=t[47];let g;t[48]!==m?(g=i=>m({to:i.target.value}),t[48]=m,t[49]=g):g=t[49];let P;t[50]!==o.to||t[51]!==E||t[52]!==g?(P=r.jsx(rt,{id:"redirect-to",value:st,placeholder:E,onChange:g,className:"h-10"}),t[50]=o.to,t[51]=E,t[52]=g,t[53]=P):P=t[53];let N;t[54]!==e?(N=e("sandbox.redirectEditor.toDescription"),t[54]=e,t[55]=N):N=t[55];let S;t[56]!==N?(S=r.jsx("p",{className:"text-xs text-muted-foreground",children:N}),t[56]=N,t[57]=S):S=t[57];let C;t[58]!==v||t[59]!==P||t[60]!==S?(C=r.jsxs("div",{className:"space-y-2",children:[v,P,S]}),t[58]=v,t[59]=P,t[60]=S,t[61]=C):C=t[61];let T;t[62]!==e?(T=e("sandbox.redirectEditor.typeLabel"),t[62]=e,t[63]=T):T=t[63];let k;t[64]!==T?(k=r.jsx(et,{htmlFor:"redirect-type",children:T}),t[64]=T,t[65]=k):k=t[65];const pt=o.type;let w;t[66]!==m?(w=i=>m({type:i}),t[66]=m,t[67]=w):w=t[67];let R;t[68]!==e?(R=e("sandbox.redirectEditor.typePlaceholder"),t[68]=e,t[69]=R):R=t[69];let I;t[70]!==R?(I=r.jsx(nt,{id:"redirect-type",className:"h-10 w-full",children:r.jsx(ft,{placeholder:R})}),t[70]=R,t[71]=I):I=t[71];let _;t[72]!==e?(_=gt.map(i=>r.jsx(dt,{value:i.value,children:e(i.labelKey,{status:jt[i.value]})},i.value)),t[72]=e,t[73]=_):_=t[73];let F;t[74]!==_?(F=r.jsx(xt,{children:_}),t[74]=_,t[75]=F):F=t[75];let L;t[76]!==o.type||t[77]!==w||t[78]!==I||t[79]!==F?(L=r.jsxs(ht,{value:pt,onValueChange:w,children:[I,F]}),t[76]=o.type,t[77]=w,t[78]=I,t[79]=F,t[80]=L):L=t[80];let q;t[81]===Symbol.for("react.memo_cache_sentinel")?(q=r.jsx("strong",{children:"Temporary"}),t[81]=q):q=t[81];let z;t[82]===Symbol.for("react.memo_cache_sentinel")?(z=r.jsxs("p",{className:"text-xs text-muted-foreground",children:["Use ",q," when the redirect may change;"," ",r.jsx("strong",{children:"Permanent"})," lets browsers cache it."]}),t[82]=z):z=t[82];let Q;t[83]!==k||t[84]!==L?(Q=r.jsxs("div",{className:"space-y-2",children:[k,L,z]}),t[83]=k,t[84]=L,t[85]=Q):Q=t[85];let D;t[86]!==m?(D=i=>m({discardQueryParameters:i===!0}),t[86]=m,t[87]=D):D=t[87];let K;t[88]!==o.discardQueryParameters||t[89]!==D?(K=r.jsx(ct,{checked:o.discardQueryParameters,onCheckedChange:D}),t[88]=o.discardQueryParameters,t[89]=D,t[90]=K):K=t[90];let A;t[91]!==e?(A=e("sandbox.redirectEditor.discardQueryParameters"),t[91]=e,t[92]=A):A=t[92];let B;t[93]!==A?(B=r.jsx("span",{className:"text-sm",children:A}),t[93]=A,t[94]=B):B=t[94];let O;t[95]!==K||t[96]!==B?(O=r.jsxs("label",{className:"flex cursor-pointer items-center gap-2.5",children:[K,B]}),t[95]=K,t[96]=B,t[97]=O):O=t[97];let U;t[98]!==y||t[99]!==C||t[100]!==Q||t[101]!==O?(U=r.jsx("div",{className:"min-w-0 flex-1 overflow-y-auto px-6 py-6",children:r.jsxs("div",{className:"mx-auto max-w-xl space-y-6",children:[y,C,Q,O]})}),t[98]=y,t[99]=C,t[100]=Q,t[101]=O,t[102]=U):U=t[102];let G;return t[103]!==U||t[104]!==c?(G=r.jsxs("div",{className:"flex h-full flex-col",children:[c,U]}),t[103]=U,t[104]=c,t[105]=G):G=t[105],G}export{Si as RedirectEditor};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-BhanBcMZ.js","assets/index-D4kNOXaZ.js","assets/index-DcKMMVy0.css","assets/Tool02-ZSnZaFRo.js","assets/CheckCircle-iXIgUTA-.js","assets/Settings02-CKXbgw8U.js","assets/use-mcp-client-Cbk4voJc.js","assets/constants-Daqiz8AS.js","assets/auth-CxhEBvSD.js","assets/useInfiniteQuery-DSvoY9-3.js","assets/infiniteQueryObserver-B38m7S1G.js","assets/badge-DClgT3z5.js","assets/input-BsyUUAk4.js","assets/dropdown-menu-BR4sIedJ.js","assets/Check-BkEv2-AF.js","assets/ChevronRight-C_hjJcoX.js","assets/DotsVertical-B5wvzS7T.js","assets/table-DQ_f5Jxx.js","assets/toggle-group-C3HhsNfW.js","assets/use-view-mode-CUPdu-w0.js","assets/Globe01-gtTldyUB.js","assets/SearchMd-CcTNnV0J.js","assets/dialog-C0hdN6I-.js","assets/AlertCircle-LT5wJDIs.js","assets/Download01-C369braV.js","assets/Upload01-HslS21FF.js","assets/metadata-dUsYcpuu.js","assets/alert-dialog-CUqdr4tM.js","assets/Trash01-BHApmYNt.js","assets/label-CFXRIjUC.js","assets/select-BYhBdU6E.js","assets/ChevronUp-BLWk2PLk.js","assets/switch-CtYBSzxu.js","assets/textarea-B5JA25wz.js","assets/ArrowLeft-DXZudPup.js","assets/XCircle-CXkUSyNu.js","assets/Link01-DSkW-LIC.js","assets/safe-image-url-D5z803Ot.js","assets/checkbox-CaayVzrM.js","assets/Eye-BgzuNcZt.js","assets/LinkExternal01-DQh4pxje.js","assets/use-infinite-scroll-CSNKbP7x.js","assets/use-copy-Bq7EVeAQ.js","assets/Copy01-CZcJJybg.js","assets/Key01-C-AW9sc8.js","assets/Plus-DW9MHDo6.js","assets/mcp-oauth-BFc24jEi.js","assets/Play-d3AOy9jq.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{c as i,j as e,r as s,h as a,bl as o}from"./index-D4kNOXaZ.js";import{R as l}from"./require-capability-B6JXksIq.js";import"./access-gate-BH9y-qz3.js";import"./capability-load-error-DR85ybev.js";const n=s.lazy(()=>o(()=>import("./registry-layout-BhanBcMZ.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])));function u(){const r=i.c(1);let t;return r[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(l,{capability:"registry:manage",area:"the registry",children:e.jsx(s.Suspense,{fallback:e.jsx("div",{className:"flex-1 flex items-center justify-center",children:e.jsx(a,{className:"size-5 text-muted-foreground"})}),children:e.jsx(n,{})})}),r[0]=t):t=r[0],t}export{u as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as R,j as s,dt as be,b as W,r as ie,t as Z,b4 as ge,B as V,dp as he}from"./index-D4kNOXaZ.js";import{a as ve,b as ye,R as Ne,c as ke,d as De,e as ne,u as Re,G as Ae}from"./repository-picker-BaONTy9t.js";import{i as we}from"./GitBranch01-D9Dvu6be.js";import{n as Ce}from"./LinkExternal01-DQh4pxje.js";import{s as oe}from"./Plus-DW9MHDo6.js";import{c as le,d as ce,b as ae,f as de,g as fe,e as ue,a as pe,A as me}from"./alert-dialog-CUqdr4tM.js";import{B as re}from"./badge-DClgT3z5.js";import{G as Pe}from"./github-icon-CKZchUfd.js";import{R as Se}from"./require-capability-B6JXksIq.js";import"./ChevronRight-C_hjJcoX.js";import"./dialog-C0hdN6I-.js";import"./input-BsyUUAk4.js";import"./label-CFXRIjUC.js";import"./useInfiniteQuery-DSvoY9-3.js";import"./infiniteQueryObserver-B38m7S1G.js";import"./ArrowLeft-DXZudPup.js";import"./collection-search-CCVQiNWE.js";import"./SearchMd-CcTNnV0J.js";import"./use-debounced-value-CIeGTz76.js";import"./access-gate-BH9y-qz3.js";import"./capability-load-error-DR85ybev.js";function je(t){const e=R.c(3),{provider:i,size:o}=t,n=o===void 0?16:o;let r;return e[0]!==i||e[1]!==n?(r=i==="gitlab"?s.jsx(Ae,{size:n,className:"text-muted-foreground"}):s.jsx(Pe,{size:n,className:"text-muted-foreground"}),e[0]=i,e[1]=n,e[2]=r):r=e[2],r}function xe(t,e){return t instanceof Error&&t.message?t.message:e}function _e(t,e){return t.authKind==="github_app"?e("settings.repositories.authKindGithubApp"):t.authKind==="oauth"?e("settings.repositories.authKindOauth"):e("settings.repositories.authKindToken")}function ze(t,e){return t==="public"?e("settings.repositories.visibilityPublic"):t==="private"?e("settings.repositories.visibilityPrivate"):t==="internal"?e("settings.repositories.visibilityInternal"):null}function Ee(t){const e=R.c(34),{account:i,onDisconnect:o}=t,n=W(),r=i.status==="revoked"||!i.servable;let x;e[0]!==i.type?(x=s.jsx("div",{className:"size-9 rounded-md bg-muted flex items-center justify-center shrink-0",children:s.jsx(je,{provider:i.type})}),e[0]=i.type,e[1]=x):x=e[1];let p;e[2]!==i.login?(p=s.jsx("span",{className:"font-medium text-sm truncate",children:i.login}),e[2]=i.login,e[3]=p):p=e[3];let l;e[4]!==r||e[5]!==n?(l=r&&s.jsx(re,{variant:"outline",className:"shrink-0",children:n("settings.repositories.needsReconnect")}),e[4]=r,e[5]=n,e[6]=l):l=e[6];let d;e[7]!==p||e[8]!==l?(d=s.jsxs("div",{className:"flex items-center gap-2",children:[p,l]}),e[7]=p,e[8]=l,e[9]=d):d=e[9];const f=i.host;let c;e[10]!==i||e[11]!==n?(c=_e(i,n),e[10]=i,e[11]=n,e[12]=c):c=e[12];let a;e[13]!==i.host||e[14]!==c?(a=s.jsxs("p",{className:"text-xs text-muted-foreground mt-0.5 truncate",children:[f," · ",c]}),e[13]=i.host,e[14]=c,e[15]=a):a=e[15];let u;e[16]!==r||e[17]!==n?(u=r&&s.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:n("settings.repositories.needsReconnectHint")}),e[16]=r,e[17]=n,e[18]=u):u=e[18];let m;e[19]!==d||e[20]!==a||e[21]!==u?(m=s.jsxs("div",{className:"min-w-0",children:[d,a,u]}),e[19]=d,e[20]=a,e[21]=u,e[22]=m):m=e[22];let g;e[23]!==x||e[24]!==m?(g=s.jsxs("div",{className:"flex items-start gap-3 min-w-0",children:[x,m]}),e[23]=x,e[24]=m,e[25]=g):g=e[25];let j;e[26]!==n?(j=n("settings.repositories.disconnect"),e[26]=n,e[27]=j):j=e[27];let h;e[28]!==o||e[29]!==j?(h=s.jsx(V,{variant:"outline",size:"sm",onClick:o,children:j}),e[28]=o,e[29]=j,e[30]=h):h=e[30];let b;return e[31]!==g||e[32]!==h?(b=s.jsxs("div",{className:"flex items-center justify-between gap-4 py-3 border-b border-border/60 last:border-b-0",children:[g,h]}),e[31]=g,e[32]=h,e[33]=b):b=e[33],b}function Te(t){const e=R.c(45),{repository:i,onUnlink:o}=t,n=W();let r;e[0]!==i.visibility||e[1]!==n?(r=ze(i.visibility,n),e[0]=i.visibility,e[1]=n,e[2]=r):r=e[2];const x=r;let p;e[3]!==i.provider?(p=s.jsx("div",{className:"size-9 rounded-md bg-muted flex items-center justify-center shrink-0",children:s.jsx(je,{provider:i.provider})}),e[3]=i.provider,e[4]=p):p=e[4];let l;e[5]!==i.path?(l=s.jsx("span",{className:"font-medium text-sm truncate",children:i.path}),e[5]=i.path,e[6]=l):l=e[6];let d;e[7]!==x?(d=x&&s.jsx(re,{variant:"secondary",className:"shrink-0",children:x}),e[7]=x,e[8]=d):d=e[8];let f;e[9]!==i.accountId||e[10]!==n?(f=!i.accountId&&s.jsx(re,{variant:"outline",className:"shrink-0",children:n("settings.repositories.anonymousClone")}),e[9]=i.accountId,e[10]=n,e[11]=f):f=e[11];let c;e[12]!==l||e[13]!==d||e[14]!==f?(c=s.jsxs("div",{className:"flex items-center gap-2",children:[l,d,f]}),e[12]=l,e[13]=d,e[14]=f,e[15]=c):c=e[15];let a;e[16]!==i.defaultBranch||e[17]!==n?(a=i.defaultBranch?` · ${n("settings.repositories.defaultBranch",{branch:i.defaultBranch})}`:"",e[16]=i.defaultBranch,e[17]=n,e[18]=a):a=e[18];let u;e[19]!==i.host||e[20]!==a?(u=s.jsxs("p",{className:"text-xs text-muted-foreground mt-0.5 truncate",children:[i.host,a]}),e[19]=i.host,e[20]=a,e[21]=u):u=e[21];let m;e[22]!==c||e[23]!==u?(m=s.jsxs("div",{className:"min-w-0",children:[c,u]}),e[22]=c,e[23]=u,e[24]=m):m=e[24];let g;e[25]!==p||e[26]!==m?(g=s.jsxs("div",{className:"flex items-start gap-3 min-w-0",children:[p,m]}),e[25]=p,e[26]=m,e[27]=g):g=e[27];const j=i.webUrl;let h;e[28]!==n?(h=n("settings.repositories.openInProvider"),e[28]=n,e[29]=h):h=e[29];let b;e[30]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(Ce,{size:14}),e[30]=b):b=e[30];let k;e[31]!==i.webUrl||e[32]!==h?(k=s.jsx(V,{variant:"ghost",size:"sm",asChild:!0,children:s.jsx("a",{href:j,target:"_blank",rel:"noreferrer","aria-label":h,children:b})}),e[31]=i.webUrl,e[32]=h,e[33]=k):k=e[33];let y;e[34]!==n?(y=n("settings.repositories.unlink"),e[34]=n,e[35]=y):y=e[35];let D;e[36]!==o||e[37]!==y?(D=s.jsx(V,{variant:"outline",size:"sm",onClick:o,children:y}),e[36]=o,e[37]=y,e[38]=D):D=e[38];let v;e[39]!==k||e[40]!==D?(v=s.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[k,D]}),e[39]=k,e[40]=D,e[41]=v):v=e[41];let N;return e[42]!==g||e[43]!==v?(N=s.jsxs("div",{className:"flex items-center justify-between gap-4 py-3 border-b border-border/60 last:border-b-0",children:[g,v]}),e[42]=g,e[43]=v,e[44]=N):N=e[44],N}function Ge(t){const e=R.c(19),{onDisconnect:i}=t,o=W(),n=ke(),r=De(),x=n.data?.github.configured===!0,p=(n.data?.gitlab.oauthHosts.length??0)>0,l=x||p;if(r.isError)throw r.error;let d;e[0]!==r.data?(d=r.data??[],e[0]=r.data,e[1]=d):d=e[1];const f=d;let c;e[2]!==o?(c=o("settings.repositories.accountsTitle"),e[2]=o,e[3]=c):c=e[3];let a;e[4]!==o?(a=o("settings.repositories.accountsDescription"),e[4]=o,e[5]=a):a=e[5];let u;e[6]!==f.length?(u=f.length>0?s.jsx(ne,{}):null,e[6]=f.length,e[7]=u):u=e[7];let m;e[8]!==r.isPending||e[9]!==l||e[10]!==i||e[11]!==f||e[12]!==o?(m=r.isPending?s.jsx(ge,{className:"h-24 w-full"}):!l&&f.length===0?s.jsxs("div",{"data-testid":"git-accounts-list",className:"rounded-2xl border border-dashed border-border/60 p-10 flex flex-col items-center justify-center text-center gap-3",children:[s.jsx("p",{className:"font-medium text-sm",children:o("settings.repositories.noProvidersTitle")}),s.jsx("p",{className:"text-xs text-muted-foreground max-w-sm",children:o("settings.repositories.noProvidersDescription")}),s.jsx(ne,{})]}):f.length===0?s.jsxs("div",{"data-testid":"git-accounts-list",className:"rounded-2xl border border-dashed border-border/60 p-10 flex flex-col items-center justify-center text-center gap-3",children:[s.jsx("div",{className:"size-12 rounded-full bg-muted flex items-center justify-center",children:s.jsx(we,{size:20,className:"text-muted-foreground"})}),s.jsxs("div",{children:[s.jsx("p",{className:"font-medium text-sm",children:o("settings.repositories.accountsEmptyTitle")}),s.jsx("p",{className:"text-xs text-muted-foreground mt-1 max-w-sm",children:o("settings.repositories.accountsEmptyDescription")})]}),s.jsx(ne,{})]}):s.jsx("section",{"data-testid":"git-accounts-list",className:"rounded-2xl border border-border/60 bg-background px-5 py-2",children:f.map(j=>s.jsx(Ee,{account:j,onDisconnect:()=>i(j)},j.id))}),e[8]=r.isPending,e[9]=l,e[10]=i,e[11]=f,e[12]=o,e[13]=m):m=e[13];let g;return e[14]!==c||e[15]!==a||e[16]!==u||e[17]!==m?(g=s.jsx(he,{title:c,description:a,actions:u,children:m}),e[14]=c,e[15]=a,e[16]=u,e[17]=m,e[18]=g):g=e[18],g}function Be(t){const e=R.c(21),{onAdd:i,onUnlink:o}=t,n=W(),r=Re();if(r.isError)throw r.error;let x;e[0]!==r.data?(x=r.data??[],e[0]=r.data,e[1]=x):x=e[1];const p=x;let l;e[2]!==n?(l=n("settings.repositories.reposTitle"),e[2]=n,e[3]=l):l=e[3];let d;e[4]!==n?(d=n("settings.repositories.reposDescription"),e[4]=n,e[5]=d):d=e[5];let f;e[6]!==i||e[7]!==p.length||e[8]!==n?(f=p.length>0?s.jsxs(V,{size:"sm",onClick:i,children:[s.jsx(oe,{size:14}),n("settings.repositories.addRepository")]}):null,e[6]=i,e[7]=p.length,e[8]=n,e[9]=f):f=e[9];let c;e[10]!==i||e[11]!==o||e[12]!==r.isPending||e[13]!==p||e[14]!==n?(c=r.isPending?s.jsx(ge,{className:"h-24 w-full"}):p.length===0?s.jsxs("div",{"data-testid":"repositories-list",className:"rounded-2xl border border-dashed border-border/60 p-10 flex flex-col items-center justify-center text-center gap-3",children:[s.jsxs("div",{children:[s.jsx("p",{className:"font-medium text-sm",children:n("settings.repositories.reposEmptyTitle")}),s.jsx("p",{className:"text-xs text-muted-foreground mt-1 max-w-sm",children:n("settings.repositories.reposEmptyDescription")})]}),s.jsxs(V,{size:"sm",onClick:i,children:[s.jsx(oe,{size:14}),n("settings.repositories.addRepository")]})]}):s.jsx("section",{"data-testid":"repositories-list",className:"rounded-2xl border border-border/60 bg-background px-5 py-2",children:p.map(u=>s.jsx(Te,{repository:u,onUnlink:()=>o(u)},u.id))}),e[10]=i,e[11]=o,e[12]=r.isPending,e[13]=p,e[14]=n,e[15]=c):c=e[15];let a;return e[16]!==l||e[17]!==d||e[18]!==f||e[19]!==c?(a=s.jsx(he,{title:l,description:d,actions:f,children:c}),e[16]=l,e[17]=d,e[18]=f,e[19]=c,e[20]=a):a=e[20],a}function Ue(){const t=R.c(84),e=W(),i=ve(),o=ye(),[n,r]=ie.useState(!1),[x,p]=ie.useState(null),[l,d]=ie.useState(null);let f;t[0]!==i||t[1]!==x||t[2]!==e?(f=function(){x&&i.mutate(x.id,{onSuccess:()=>Z.success(e("settings.repositories.disconnected")),onError:se=>Z.error(xe(se,e("settings.repositories.failed"))),onSettled:()=>p(null)})},t[0]=i,t[1]=x,t[2]=e,t[3]=f):f=t[3];const c=f;let a;t[4]!==o||t[5]!==l||t[6]!==e?(a=function(){l&&o.mutate(l.id,{onSuccess:()=>Z.success(e("settings.repositories.unlinked")),onError:se=>Z.error(xe(se,e("settings.repositories.failed"))),onSettled:()=>d(null)})},t[4]=o,t[5]=l,t[6]=e,t[7]=a):a=t[7];const u=a;let m;t[8]!==e?(m=e("settings.repositories.pageDescription"),t[8]=e,t[9]=m):m=t[9];let g;t[10]!==m?(g=s.jsx("p",{className:"text-sm text-muted-foreground",children:m}),t[10]=m,t[11]=g):g=t[11];let j;t[12]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx(Ge,{onDisconnect:p}),t[12]=j):j=t[12];let h;t[13]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsx(Be,{onAdd:()=>r(!0),onUnlink:d}),t[13]=h):h=t[13];let b;t[14]!==n||t[15]!==e?(b=n&&s.jsx(Ne,{open:!0,onOpenChange:r,title:e("settings.repositories.addDialogTitle"),onPicked:()=>r(!1)}),t[14]=n,t[15]=e,t[16]=b):b=t[16];const k=x!==null;let y;t[17]===Symbol.for("react.memo_cache_sentinel")?(y=Q=>{Q||p(null)},t[17]=y):y=t[17];const D=x?.login??"";let v;t[18]!==e||t[19]!==D?(v=e("settings.repositories.disconnectTitle",{login:D}),t[18]=e,t[19]=D,t[20]=v):v=t[20];let N;t[21]!==v?(N=s.jsx(le,{children:v}),t[21]=v,t[22]=N):N=t[22];let A;t[23]!==e?(A=e("settings.repositories.disconnectDescription"),t[23]=e,t[24]=A):A=t[24];let w;t[25]!==A?(w=s.jsx(ce,{children:A}),t[25]=A,t[26]=w):w=t[26];let C;t[27]!==N||t[28]!==w?(C=s.jsxs(ae,{children:[N,w]}),t[27]=N,t[28]=w,t[29]=C):C=t[29];let P;t[30]!==e?(P=e("settings.repositories.cancel"),t[30]=e,t[31]=P):P=t[31];let S;t[32]!==P?(S=s.jsx(de,{children:P}),t[32]=P,t[33]=S):S=t[33];let _;t[34]!==e?(_=e("settings.repositories.disconnect"),t[34]=e,t[35]=_):_=t[35];let z;t[36]!==c||t[37]!==_?(z=s.jsx(fe,{onClick:c,children:_}),t[36]=c,t[37]=_,t[38]=z):z=t[38];let E;t[39]!==S||t[40]!==z?(E=s.jsxs(ue,{children:[S,z]}),t[39]=S,t[40]=z,t[41]=E):E=t[41];let T;t[42]!==C||t[43]!==E?(T=s.jsxs(pe,{children:[C,E]}),t[42]=C,t[43]=E,t[44]=T):T=t[44];let G;t[45]!==T||t[46]!==k?(G=s.jsx(me,{open:k,onOpenChange:y,children:T}),t[45]=T,t[46]=k,t[47]=G):G=t[47];const ee=l!==null;let X;t[48]===Symbol.for("react.memo_cache_sentinel")?(X=Q=>{Q||d(null)},t[48]=X):X=t[48];const te=l?.path??"";let B;t[49]!==e||t[50]!==te?(B=e("settings.repositories.unlinkTitle",{path:te}),t[49]=e,t[50]=te,t[51]=B):B=t[51];let U;t[52]!==B?(U=s.jsx(le,{children:B}),t[52]=B,t[53]=U):U=t[53];let $;t[54]!==e?($=e("settings.repositories.unlinkDescription"),t[54]=e,t[55]=$):$=t[55];let I;t[56]!==$?(I=s.jsx(ce,{children:$}),t[56]=$,t[57]=I):I=t[57];let O;t[58]!==U||t[59]!==I?(O=s.jsxs(ae,{children:[U,I]}),t[58]=U,t[59]=I,t[60]=O):O=t[60];let K;t[61]!==e?(K=e("settings.repositories.cancel"),t[61]=e,t[62]=K):K=t[62];let H;t[63]!==K?(H=s.jsx(de,{children:K}),t[63]=K,t[64]=H):H=t[64];let L;t[65]!==e?(L=e("settings.repositories.unlink"),t[65]=e,t[66]=L):L=t[66];let F;t[67]!==u||t[68]!==L?(F=s.jsx(fe,{onClick:u,children:L}),t[67]=u,t[68]=L,t[69]=F):F=t[69];let q;t[70]!==H||t[71]!==F?(q=s.jsxs(ue,{children:[H,F]}),t[70]=H,t[71]=F,t[72]=q):q=t[72];let M;t[73]!==O||t[74]!==q?(M=s.jsxs(pe,{children:[O,q]}),t[73]=O,t[74]=q,t[75]=M):M=t[75];let J;t[76]!==ee||t[77]!==M?(J=s.jsx(me,{open:ee,onOpenChange:X,children:M}),t[76]=ee,t[77]=M,t[78]=J):J=t[78];let Y;return t[79]!==G||t[80]!==g||t[81]!==J||t[82]!==b?(Y=s.jsxs(s.Fragment,{children:[g,j,h,b,G,J]}),t[79]=G,t[80]=g,t[81]=J,t[82]=b,t[83]=Y):Y=t[83],Y}function $e(){const t=R.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(be,{group:"repositories",children:s.jsx(Ue,{})}),t[0]=e):e=t[0],e}function ot(){const t=R.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Se,{capability:"file-configs:manage",area:"files",children:s.jsx($e,{})}),t[0]=e):e=t[0],e}export{ot as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as N,j as r,G as D,a7 as F,K as z,m as se,n as J,e as W,r as R,b as M,l as X,b4 as ie,t as le,B as U,a4 as be,a1 as ye,a2 as je,h as ce}from"./index-D4kNOXaZ.js";import{i as ne}from"./ChevronRight-C_hjJcoX.js";import{d as ae,h as de,c as ue,e as ve,b as fe,D as me}from"./dialog-C0hdN6I-.js";import{I as oe}from"./input-BsyUUAk4.js";import{L as re}from"./label-CFXRIjUC.js";import{G as ee}from"./github-icon-CKZchUfd.js";import{u as Pe}from"./useInfiniteQuery-DSvoY9-3.js";import{i as ke}from"./ArrowLeft-DXZudPup.js";import{i as Ne}from"./GitBranch01-D9Dvu6be.js";import{C as he}from"./collection-search-CCVQiNWE.js";import{u as Ce}from"./use-debounced-value-CIeGTz76.js";function te(t){const e=N.c(4),{size:n,className:l}=t;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=r.jsx("path",{d:"M23.6004 9.5927l-.0337-.0862L20.3.9814a.851.851 0 00-.3362-.405.8748.8748 0 00-.9997.0539.8748.8748 0 00-.29.4399l-2.2055 6.748H7.5375L5.3318 1.0702a.8573.8573 0 00-.29-.4412.8748.8748 0 00-.9997-.0537.8585.8585 0 00-.3361.4049L.4332 9.5015l-.0325.0862a6.0657 6.0657 0 002.0119 7.0105l.0113.0087.03.0213 4.976 3.7264 2.462 1.8633 1.4995 1.1321a1.0085 1.0085 0 001.2197 0l1.4995-1.1321 2.462-1.8633 5.0062-3.7489.0125-.01a6.0682 6.0682 0 002.0094-7.003z"}),e[0]=s):s=e[0];let i;return e[1]!==l||e[2]!==n?(i=r.jsx("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",className:l,children:s}),e[1]=l,e[2]=n,e[3]=i):i=e[3],i}const Se=5*6e4;function Te(){const t=N.c(7),{org:e}=D(),n=F();let l;t[0]!==e.id?(l=z.gitProviderCapabilities(e.id),t[0]=e.id,t[1]=l):l=t[1];let s;t[2]!==n?(s=()=>n.call("GIT_PROVIDER_CAPABILITIES",{}),t[2]=n,t[3]=s):s=t[3];let i;return t[4]!==l||t[5]!==s?(i={queryKey:l,staleTime:Se,queryFn:s},t[4]=l,t[5]=s,t[6]=i):i=t[6],se(i)}function xe(){const t=N.c(7),{org:e}=D(),n=F();let l;t[0]!==e.id?(l=z.gitAccounts(e.id),t[0]=e.id,t[1]=l):l=t[1];let s;t[2]!==n?(s=async()=>(await n.call("GIT_ACCOUNT_LIST",{})).accounts,t[2]=n,t[3]=s):s=t[3];let i;return t[4]!==l||t[5]!==s?(i={queryKey:l,staleTime:6e4,queryFn:s},t[4]=l,t[5]=s,t[6]=i):i=t[6],se(i)}function we(t){const e=N.c(9),{org:n}=D(),l=F();let s;e[0]!==t||e[1]!==n.id?(s=z.repositories(n.id,t),e[0]=t,e[1]=n.id,e[2]=s):s=e[2];let i;e[3]!==t||e[4]!==l?(i=async()=>(await l.call("REPOSITORY_LIST",{})).repositories,e[3]=t,e[4]=l,e[5]=i):i=e[5];let o;return e[6]!==s||e[7]!==i?(o={queryKey:s,staleTime:6e4,queryFn:i},e[6]=s,e[7]=i,e[8]=o):o=e[8],se(o)}function Ee(t,e){const n=N.c(12),{org:l}=D(),s=F();let i;n[0]!==t||n[1]!==l.id||n[2]!==e?(i=z.providerRepoSearch(l.id,t??"",e),n[0]=t,n[1]=l.id,n[2]=e,n[3]=i):i=n[3];const o=t!==null;let f;n[4]!==t||n[5]!==e||n[6]!==s?(f=async x=>{const{pageParam:d}=x;return t===null?{repositories:[],hasMore:!1}:await s.call("REPOSITORY_SEARCH",{accountId:t,page:d,perPage:100,...e?{query:e}:{}})},n[4]=t,n[5]=e,n[6]=s,n[7]=f):f=n[7];let a;return n[8]!==i||n[9]!==o||n[10]!==f?(a={queryKey:i,enabled:o,initialPageParam:1,getNextPageParam:_e,staleTime:3e4,retry:!1,queryFn:f},n[8]=i,n[9]=o,n[10]=f,n[11]=a):a=n[11],Pe(a)}function _e(t,e){return t.hasMore?e.length+1:void 0}function $e(){const t=N.c(8),{org:e}=D(),n=F(),l=J();let s;t[0]!==n?(s=async f=>(await n.call("GIT_ACCOUNT_CONNECT_TOKEN",f)).account,t[0]=n,t[1]=s):s=t[1];let i;t[2]!==e||t[3]!==l?(i=()=>l.invalidateQueries({queryKey:z.gitAccounts(e.id)}),t[2]=e,t[3]=l,t[4]=i):i=t[4];let o;return t[5]!==s||t[6]!==i?(o={mutationFn:s,onSettled:i},t[5]=s,t[6]=i,t[7]=o):o=t[7],W(o)}function et(){const t=N.c(8),{org:e}=D(),n=F(),l=J();let s;t[0]!==n?(s=f=>n.call("GIT_ACCOUNT_DELETE",{id:f}),t[0]=n,t[1]=s):s=t[1];let i;t[2]!==e||t[3]!==l?(i=()=>{l.invalidateQueries({queryKey:z.gitAccounts(e.id)}),l.invalidateQueries({queryKey:z.repositories(e.id)})},t[2]=e,t[3]=l,t[4]=i):i=t[4];let o;return t[5]!==s||t[6]!==i?(o={mutationFn:s,onSettled:i},t[5]=s,t[6]=i,t[7]=o):o=t[7],W(o)}function Ae(){const t=N.c(8),{org:e}=D(),n=F(),l=J();let s;t[0]!==n?(s=async f=>(await n.call("REPOSITORY_LINK",f)).repository,t[0]=n,t[1]=s):s=t[1];let i;t[2]!==e||t[3]!==l?(i=()=>l.invalidateQueries({queryKey:z.repositories(e.id)}),t[2]=e,t[3]=l,t[4]=i):i=t[4];let o;return t[5]!==s||t[6]!==i?(o={mutationFn:s,onSettled:i},t[5]=s,t[6]=i,t[7]=o):o=t[7],W(o)}function tt(){const t=N.c(8),{org:e}=D(),n=F(),l=J();let s;t[0]!==n?(s=f=>n.call("REPOSITORY_DELETE",{id:f}),t[0]=n,t[1]=s):s=t[1];let i;t[2]!==e||t[3]!==l?(i=()=>l.invalidateQueries({queryKey:z.repositories(e.id)}),t[2]=e,t[3]=l,t[4]=i):i=t[4];let o;return t[5]!==s||t[6]!==i?(o={mutationFn:s,onSettled:i},t[5]=s,t[6]=i,t[7]=o):o=t[7],W(o)}function Le(t,e){return t instanceof Error?t.message:e}function Re(t){const e=N.c(14),{layout:n,disabled:l}=t,s=n===void 0?"buttons":n,i=l===void 0?!1:l,[o,f]=R.useState(!1),a=xe();let x;e[0]===Symbol.for("react.memo_cache_sentinel")?(x=()=>f(!0),e[0]=x):x=e[0];let d;e[1]!==a.data?(d=a.data??[],e[1]=a.data,e[2]=d):d=e[2];let c;e[3]!==d?(c=d.some(ze),e[3]=d,e[4]=c):c=e[4];let m;e[5]!==i||e[6]!==s||e[7]!==c?(m=r.jsx(Fe,{layout:s,disabled:i,onTokenDialog:x,hasGithubAccount:c}),e[5]=i,e[6]=s,e[7]=c,e[8]=m):m=e[8];let u;e[9]!==o?(u=o&&r.jsx(De,{open:!0,onOpenChange:f}),e[9]=o,e[10]=u):u=e[10];let h;return e[11]!==m||e[12]!==u?(h=r.jsxs(r.Fragment,{children:[m,u]}),e[11]=m,e[12]=u,e[13]=h):h=e[13],h}function ze(t){return t.type==="github"}function De(t){const e=N.c(76),{open:n,onOpenChange:l}=t,s=M(),i=$e(),[o,f]=R.useState("gitlab.com"),[a,x]=R.useState("");let d;e[0]!==i||e[1]!==o||e[2]!==l||e[3]!==s||e[4]!==a?(d=function(){!o.trim()||!a.trim()||i.mutate({type:"gitlab",host:o.trim(),token:a.trim()},{onSuccess:Z=>{le.success(s("settings.repositories.connected",{login:Z.login})),x(""),l(!1)},onError:Z=>le.error(Le(Z,s("settings.repositories.failed")))})},e[0]=i,e[1]=o,e[2]=l,e[3]=s,e[4]=a,e[5]=d):d=e[5];const c=d;let m;e[6]!==s?(m=s("settings.repositories.tokenDialogTitle"),e[6]=s,e[7]=m):m=e[7];let u;e[8]!==m?(u=r.jsx(ae,{children:m}),e[8]=m,e[9]=u):u=e[9];let h;e[10]!==s?(h=s("settings.repositories.tokenDialogDescription"),e[10]=s,e[11]=h):h=e[11];let p;e[12]!==h?(p=r.jsx(de,{children:h}),e[12]=h,e[13]=p):p=e[13];let b;e[14]!==u||e[15]!==p?(b=r.jsxs(ue,{children:[u,p]}),e[14]=u,e[15]=p,e[16]=b):b=e[16];let y;e[17]!==s?(y=s("settings.repositories.tokenHostLabel"),e[17]=s,e[18]=y):y=e[18];let g;e[19]!==y?(g=r.jsx(re,{htmlFor:"gitlab-host",children:y}),e[19]=y,e[20]=g):g=e[20];let j;e[21]===Symbol.for("react.memo_cache_sentinel")?(j=Y=>f(Y.target.value),e[21]=j):j=e[21];let v;e[22]!==s?(v=s("settings.repositories.tokenHostPlaceholder"),e[22]=s,e[23]=v):v=e[23];let C;e[24]!==o||e[25]!==v?(C=r.jsx(oe,{id:"gitlab-host",value:o,onChange:j,placeholder:v}),e[24]=o,e[25]=v,e[26]=C):C=e[26];let S;e[27]!==C||e[28]!==g?(S=r.jsxs("div",{className:"flex flex-col gap-1.5",children:[g,C]}),e[27]=C,e[28]=g,e[29]=S):S=e[29];let P;e[30]!==s?(P=s("settings.repositories.tokenLabel"),e[30]=s,e[31]=P):P=e[31];let T;e[32]!==P?(T=r.jsx(re,{htmlFor:"gitlab-token",children:P}),e[32]=P,e[33]=T):T=e[33];let A;e[34]===Symbol.for("react.memo_cache_sentinel")?(A=Y=>x(Y.target.value),e[34]=A):A=e[34];let w;e[35]!==s?(w=s("settings.repositories.tokenPlaceholder"),e[35]=s,e[36]=w):w=e[36];let E;e[37]!==w||e[38]!==a?(E=r.jsx(oe,{id:"gitlab-token",type:"password",value:a,onChange:A,placeholder:w,autoComplete:"off"}),e[37]=w,e[38]=a,e[39]=E):E=e[39];let _;e[40]!==T||e[41]!==E?(_=r.jsxs("div",{className:"flex flex-col gap-1.5",children:[T,E]}),e[40]=T,e[41]=E,e[42]=_):_=e[42];let L;e[43]!==S||e[44]!==_?(L=r.jsxs("div",{className:"flex flex-col gap-3",children:[S,_]}),e[43]=S,e[44]=_,e[45]=L):L=e[45];let $;e[46]!==l?($=()=>l(!1),e[46]=l,e[47]=$):$=e[47];const G=i.isPending;let k;e[48]!==s?(k=s("settings.repositories.cancel"),e[48]=s,e[49]=k):k=e[49];let O;e[50]!==i.isPending||e[51]!==$||e[52]!==k?(O=r.jsx(U,{variant:"outline",onClick:$,disabled:G,children:k}),e[50]=i.isPending,e[51]=$,e[52]=k,e[53]=O):O=e[53];let I;e[54]!==i.isPending||e[55]!==o||e[56]!==a?(I=!o.trim()||!a.trim()||i.isPending,e[54]=i.isPending,e[55]=o,e[56]=a,e[57]=I):I=e[57];let q;e[58]!==i.isPending||e[59]!==s?(q=i.isPending?s("settings.repositories.connecting"):s("settings.repositories.connect"),e[58]=i.isPending,e[59]=s,e[60]=q):q=e[60];let K;e[61]!==c||e[62]!==I||e[63]!==q?(K=r.jsx(U,{onClick:c,disabled:I,children:q}),e[61]=c,e[62]=I,e[63]=q,e[64]=K):K=e[64];let Q;e[65]!==O||e[66]!==K?(Q=r.jsxs(ve,{children:[O,K]}),e[65]=O,e[66]=K,e[67]=Q):Q=e[67];let H;e[68]!==L||e[69]!==Q||e[70]!==b?(H=r.jsxs(fe,{className:"sm:max-w-md",children:[b,L,Q]}),e[68]=L,e[69]=Q,e[70]=b,e[71]=H):H=e[71];let B;return e[72]!==l||e[73]!==n||e[74]!==H?(B=r.jsx(me,{open:n,onOpenChange:l,children:H}),e[72]=l,e[73]=n,e[74]=H,e[75]=B):B=e[75],B}function V(t){const e=N.c(25),{layout:n,label:l,description:s,icon:i,href:o,onClick:f,disabled:a}=t;let x;e[0]!==s||e[1]!==a||e[2]!==i||e[3]!==l||e[4]!==n?(x=n==="picker"?r.jsxs(r.Fragment,{children:[r.jsx("span",{className:"size-8 rounded-lg bg-muted flex items-center justify-center shrink-0",children:i}),r.jsxs("span",{className:"flex-1 min-w-0 text-left",children:[r.jsx("span",{className:"block text-sm font-medium",children:l}),r.jsx("span",{className:"block text-xs font-normal text-muted-foreground whitespace-normal",children:s})]}),!a&&r.jsx("span",{className:"shrink-0 text-muted-foreground",children:r.jsx(ne,{size:16})})]}):r.jsxs(r.Fragment,{children:[i,l]}),e[0]=s,e[1]=a,e[2]=i,e[3]=l,e[4]=n,e[5]=x):x=e[5];const d=x,c=n==="picker"?"ghost":"outline",m=n==="picker"&&"w-full h-auto justify-start gap-3 rounded-none px-4 py-3 hover:bg-accent";let u;e[6]!==m?(u=X(m),e[6]=m,e[7]=u):u=e[7];const h=!!o&&!a;let p;e[8]!==d||e[9]!==a||e[10]!==o?(p=o&&!a?r.jsx("a",{href:o,children:d}):d,e[8]=d,e[9]=a,e[10]=o,e[11]=p):p=e[11];let b;e[12]!==a||e[13]!==l||e[14]!==f||e[15]!==c||e[16]!==u||e[17]!==h||e[18]!==p?(b=r.jsx(U,{size:"sm",variant:c,className:u,"aria-label":l,disabled:a,asChild:h,onClick:f,children:p}),e[12]=a,e[13]=l,e[14]=f,e[15]=c,e[16]=u,e[17]=h,e[18]=p,e[19]=b):b=e[19];const y=b;let g;return e[20]!==y||e[21]!==s||e[22]!==a||e[23]!==n?(g=n==="buttons"&&a?r.jsxs(be,{children:[r.jsx(ye,{asChild:!0,children:r.jsx("span",{tabIndex:0,children:y})}),r.jsx(je,{children:s})]}):y,e[20]=y,e[21]=s,e[22]=a,e[23]=n,e[24]=g):g=e[24],g}function Fe(t){const e=N.c(51),{layout:n,disabled:l,onTokenDialog:s,hasGithubAccount:i}=t,o=M(),f=Te(),{org:a}=D(),x=`/${a.slug}/settings/repositories`;let d;e[0]!==x?(d=k=>`${k}?returnTo=${encodeURIComponent(x)}`,e[0]=x,e[1]=d):d=e[1];const c=d;if(f.isError){let k;return e[2]!==f.error.message?(k=r.jsx("p",{role:"alert",className:"text-sm text-destructive",children:f.error.message}),e[2]=f.error.message,e[3]=k):k=e[3],k}const m=f.data?.github,u=f.data?.gitlab,h=m?.configured===!0,p=(u?.oauthHosts.length??0)>0;if(f.isPending){let k;return e[4]===Symbol.for("react.memo_cache_sentinel")?(k=r.jsx(ie,{className:"h-9 w-40"}),e[4]=k):k=e[4],k}const b=n==="picker"?"flex-col":"flex-wrap items-center gap-2";let y;e[5]!==b?(y=X("flex",b),e[5]=b,e[6]=y):y=e[6];let g;e[7]!==o?(g=o("settings.repositories.connectGithub"),e[7]=o,e[8]=g):g=e[8];const j=h?"settings.repositories.browseAccount":"settings.repositories.githubUnavailable";let v;e[9]!==o||e[10]!==j?(v=o(j),e[9]=o,e[10]=j,e[11]=v):v=e[11];let C;e[12]===Symbol.for("react.memo_cache_sentinel")?(C=r.jsx(ee,{size:16}),e[12]=C):C=e[12];const S=m?.connectPath?c(m.connectPath):void 0,P=l||!h||!m?.connectPath;let T;e[13]!==n||e[14]!==g||e[15]!==v||e[16]!==S||e[17]!==P?(T=r.jsx(V,{layout:n,label:g,description:v,icon:C,href:S,disabled:P}),e[13]=n,e[14]=g,e[15]=v,e[16]=S,e[17]=P,e[18]=T):T=e[18];let A;e[19]!==c||e[20]!==l||e[21]!==m||e[22]!==h||e[23]!==i||e[24]!==n||e[25]!==o?(A=h&&i&&m?.installPath&&r.jsx(V,{layout:n,label:o("settings.repositories.installGithub"),description:o("settings.repositories.browseAccount"),icon:r.jsx(ee,{size:16}),href:c(m.installPath),disabled:l}),e[19]=c,e[20]=l,e[21]=m,e[22]=h,e[23]=i,e[24]=n,e[25]=o,e[26]=A):A=e[26];let w;e[27]!==c||e[28]!==l||e[29]!==u||e[30]!==p||e[31]!==n||e[32]!==o?(w=p&&u?.connectPath&&r.jsx(V,{layout:n,label:o("settings.repositories.connectGitlab"),description:o("settings.repositories.browseAccount"),icon:r.jsx(te,{size:16}),href:c(u.connectPath),disabled:l}),e[27]=c,e[28]=l,e[29]=u,e[30]=p,e[31]=n,e[32]=o,e[33]=w):w=e[33];let E;e[34]!==o?(E=o("settings.repositories.connectGitlabToken"),e[34]=o,e[35]=E):E=e[35];let _;e[36]!==o?(_=o("settings.repositories.gitlabTokenHint"),e[36]=o,e[37]=_):_=e[37];let L;e[38]===Symbol.for("react.memo_cache_sentinel")?(L=r.jsx(te,{size:16}),e[38]=L):L=e[38];let $;e[39]!==l||e[40]!==n||e[41]!==s||e[42]!==E||e[43]!==_?($=r.jsx(V,{layout:n,label:E,description:_,icon:L,onClick:s,disabled:l}),e[39]=l,e[40]=n,e[41]=s,e[42]=E,e[43]=_,e[44]=$):$=e[44];let G;return e[45]!==T||e[46]!==A||e[47]!==w||e[48]!==$||e[49]!==y?(G=r.jsxs("div",{className:y,children:[T,A,w,$]}),e[45]=T,e[46]=A,e[47]=w,e[48]=$,e[49]=y,e[50]=G):G=e[50],G}function pe(t){const e=N.c(3),{provider:n,className:l}=t;let s;return e[0]!==l||e[1]!==n?(s=n==="gitlab"?r.jsx(te,{size:16,className:l}):r.jsx(ee,{size:16,className:l}),e[0]=l,e[1]=n,e[2]=s):s=e[2],s}function Ge(t){return(t??[]).filter(e=>e.status==="active"&&e.servable)}function ge(t){const e=N.c(20),{provider:n,path:l,host:s,hint:i,disabled:o,busy:f,onSelect:a}=t,x=o&&"opacity-60 cursor-not-allowed";let d;e[0]!==x?(d=X("w-full flex items-center gap-3 px-4 py-3 text-left hover:bg-accent transition-colors focus-visible:outline-none focus-visible:bg-accent",x),e[0]=x,e[1]=d):d=e[1];let c;e[2]!==n?(c=r.jsx("div",{className:"size-8 rounded-lg bg-muted flex items-center justify-center shrink-0",children:r.jsx(pe,{provider:n,className:"text-muted-foreground"})}),e[2]=n,e[3]=c):c=e[3];let m;e[4]!==l?(m=r.jsx("span",{className:"block text-sm font-medium truncate",children:l}),e[4]=l,e[5]=m):m=e[5];const u=i?`${s} · ${i}`:s;let h;e[6]!==u?(h=r.jsx("span",{className:"block text-xs text-muted-foreground truncate",children:u}),e[6]=u,e[7]=h):h=e[7];let p;e[8]!==m||e[9]!==h?(p=r.jsxs("span",{className:"flex-1 min-w-0",children:[m,h]}),e[8]=m,e[9]=h,e[10]=p):p=e[10];let b;e[11]!==f?(b=f?r.jsx(ce,{className:"size-4 text-muted-foreground"}):r.jsx(ne,{size:16,className:"shrink-0 text-muted-foreground"}),e[11]=f,e[12]=b):b=e[12];let y;return e[13]!==o||e[14]!==a||e[15]!==d||e[16]!==c||e[17]!==p||e[18]!==b?(y=r.jsxs("button",{type:"button",disabled:o,onClick:a,className:d,children:[c,p,b]}),e[13]=o,e[14]=a,e[15]=d,e[16]=c,e[17]=p,e[18]=b,e[19]=y):y=e[19],y}function Oe(t){const e=N.c(25),{onPick:n,pendingPath:l}=t,s=M(),i=we(),[o,f]=R.useState("");if(i.isPending){let d;return e[0]===Symbol.for("react.memo_cache_sentinel")?(d=r.jsx(ie,{className:"h-24 w-full"}),e[0]=d):d=e[0],d}if(i.isError){let d;return e[1]!==i.error.message?(d=r.jsx("p",{role:"alert",className:"p-4 text-sm text-destructive",children:i.error.message}),e[1]=i.error.message,e[2]=d):d=e[2],d}let a,x;if(e[3]!==n||e[4]!==l||e[5]!==o||e[6]!==i.data||e[7]!==s){x=Symbol.for("react.early_return_sentinel");e:{const d=i.data??[];if(d.length===0){x=null;break e}let c;e[10]!==o?(c=j=>j.path.toLowerCase().includes(o.trim().toLowerCase()),e[10]=o,e[11]=c):c=e[11];const m=d.filter(c);let u;e[12]!==s?(u=s("common.repositoryPicker.searchPlaceholder"),e[12]=s,e[13]=u):u=e[13];const h=l!==null;let p;e[14]!==o||e[15]!==u||e[16]!==h?(p=r.jsx(he,{value:o,onChange:f,placeholder:u,disabled:h}),e[14]=o,e[15]=u,e[16]=h,e[17]=p):p=e[17];let b;e[18]!==s?(b=s("common.repositoryPicker.linkedSection"),e[18]=s,e[19]=b):b=e[19];let y;e[20]!==b?(y=r.jsx("p",{className:"px-4 pt-4 pb-2 text-xs font-medium text-muted-foreground",children:b}),e[20]=b,e[21]=y):y=e[21];let g;e[22]!==n||e[23]!==l?(g=j=>r.jsx(ge,{provider:j.provider,path:j.path,host:j.host,hint:j.defaultBranch,disabled:l!==null,busy:l===j.id,onSelect:()=>n(j)},j.id),e[22]=n,e[23]=l,e[24]=g):g=e[24],a=r.jsxs("div",{className:"pb-2",children:[p,y,m.length===0&&r.jsx("p",{className:"px-4 py-6 text-center text-sm text-muted-foreground",children:s("common.repositoryPicker.searchEmpty")}),m.map(g)]})}e[3]=n,e[4]=l,e[5]=o,e[6]=i.data,e[7]=s,e[8]=a,e[9]=x}else a=e[8],x=e[9];return x!==Symbol.for("react.early_return_sentinel")?x:a}function Ie(t){const e=N.c(35),{account:n,onLink:l,pendingPath:s}=t,i=M(),[o,f]=R.useState(""),a=Ce(o,300),x=R.useDeferredValue(a),d=o!==x,c=Ee(n.id,x);let m,u,h,p;if(e[0]!==d||e[1]!==l||e[2]!==s||e[3]!==o||e[4]!==c.data?.pages||e[5]!==c.error||e[6]!==c.hasNextPage||e[7]!==c.isError||e[8]!==c.isFetching||e[9]!==c.isPending||e[10]!==i){const j=c.data?.pages.flatMap(qe)??[];h="h-80 min-h-0 flex flex-col overflow-hidden";let v;e[15]!==i?(v=i("common.repositoryPicker.searchPlaceholder"),e[15]=i,e[16]=v):v=e[16];const C=d||c.isFetching;e[17]!==o||e[18]!==v||e[19]!==C?(p=r.jsx(he,{placeholder:v,value:o,onChange:f,isSearching:C}),e[17]=o,e[18]=v,e[19]=C,e[20]=p):p=e[20];const S=d?"opacity-40":"opacity-100";e[21]!==S?(m=X("flex-1 overflow-y-auto transition-opacity duration-150",S),e[21]=S,e[22]=m):m=e[22],u=c.isPending?r.jsx("div",{className:"flex-1 flex items-center justify-center py-10",children:r.jsx(ce,{className:"size-4.5 text-muted-foreground"})}):c.isError?r.jsx("p",{className:"px-4 py-10 text-center text-sm text-muted-foreground",children:c.error instanceof Error?c.error.message:i("common.repositoryPicker.searchFailed")}):j.length===0?r.jsx("p",{className:"px-4 py-10 text-center text-sm text-muted-foreground",children:i(c.hasNextPage?"common.repositoryPicker.searchMore":"common.repositoryPicker.searchEmpty")}):j.map(P=>r.jsx(ge,{provider:P.ref.provider,path:P.ref.path,host:P.ref.host,hint:P.visibility,disabled:s!==null,busy:s===P.ref.path,onSelect:()=>l(P.webUrl,P.ref.path)},`${P.ref.host}/${P.ref.path}`)),e[0]=d,e[1]=l,e[2]=s,e[3]=o,e[4]=c.data?.pages,e[5]=c.error,e[6]=c.hasNextPage,e[7]=c.isError,e[8]=c.isFetching,e[9]=c.isPending,e[10]=i,e[11]=m,e[12]=u,e[13]=h,e[14]=p}else m=e[11],u=e[12],h=e[13],p=e[14];let b;e[23]!==s||e[24]!==c||e[25]!==i?(b=c.hasNextPage&&r.jsx(U,{variant:"ghost",className:"w-full",disabled:c.isFetchingNextPage||s!==null,onClick:()=>{c.fetchNextPage()},children:i("common.repositoryPicker.loadMore")}),e[23]=s,e[24]=c,e[25]=i,e[26]=b):b=e[26];let y;e[27]!==m||e[28]!==u||e[29]!==b?(y=r.jsxs("div",{className:m,children:[u,b]}),e[27]=m,e[28]=u,e[29]=b,e[30]=y):y=e[30];let g;return e[31]!==h||e[32]!==p||e[33]!==y?(g=r.jsxs("div",{className:h,children:[p,y]}),e[31]=h,e[32]=p,e[33]=y,e[34]=g):g=e[34],g}function qe(t){return t.repositories}function Ke(t){const e=N.c(14),{accounts:n,onSelect:l,disabled:s}=t,i=M();let o;e[0]!==i?(o=i("common.repositoryPicker.browseSection"),e[0]=i,e[1]=o):o=e[1];let f;e[2]!==o?(f=r.jsx("p",{className:"px-4 py-2 text-xs font-medium text-muted-foreground",children:o}),e[2]=o,e[3]=f):f=e[3];let a;if(e[4]!==n||e[5]!==s||e[6]!==l){let d;e[8]!==s||e[9]!==l?(d=c=>r.jsxs("button",{type:"button",onClick:()=>l(c),disabled:s,className:"w-full flex items-center gap-3 px-4 py-3 text-left hover:bg-accent transition-colors focus-visible:outline-none focus-visible:bg-accent disabled:opacity-50",children:[r.jsx("div",{className:"size-8 rounded-lg bg-muted flex items-center justify-center shrink-0",children:r.jsx(pe,{provider:c.type,className:"text-muted-foreground"})}),r.jsxs("span",{className:"flex-1 min-w-0",children:[r.jsx("span",{className:"block text-sm font-medium truncate",children:c.login}),r.jsx("span",{className:"block text-xs text-muted-foreground truncate",children:c.host})]}),r.jsx(ne,{size:16,className:"text-muted-foreground"})]},c.id),e[8]=s,e[9]=l,e[10]=d):d=e[10],a=n.map(d),e[4]=n,e[5]=s,e[6]=l,e[7]=a}else a=e[7];let x;return e[11]!==f||e[12]!==a?(x=r.jsxs("div",{className:"py-2",children:[f,a]}),e[11]=f,e[12]=a,e[13]=x):x=e[13],x}function st({open:t,onOpenChange:e,title:n,onPicked:l,onError:s}){const i=M(),o=xe(),f=Ae(),[a,x]=R.useState(null),[d,c]=R.useState(null),[m,u]=R.useState(null),h=Ge(o.data);function p(g){const j=g instanceof Error?g.message:i("common.repositoryPicker.linkFailed");u(j),s?.(j)}async function b(g){c(g.id),u(null);try{await l({repository:g})}catch(j){p(j)}finally{c(null)}}async function y(g,j){if(a){c(j),u(null);try{const v=await f.mutateAsync({url:g,accountId:a.id});await l({repository:v})}catch(v){p(v)}finally{c(null)}}}return r.jsx(me,{open:t,onOpenChange:g=>{d===null&&(g||(x(null),u(null)),e(g))},children:r.jsxs(fe,{className:"sm:max-w-lg max-h-[85svh] p-0 gap-0 overflow-hidden flex flex-col",children:[r.jsxs(ue,{className:"sr-only",children:[r.jsx(ae,{children:n}),r.jsx(de,{children:i("common.repositoryPicker.description")})]}),r.jsxs("div",{className:"flex items-center h-12 border-b border-border px-4 pr-12 gap-3 shrink-0",children:[a?r.jsx(U,{size:"icon",variant:"ghost",className:"size-6 -ml-1",disabled:d!==null,onClick:()=>x(null),"aria-label":i("common.repositoryPicker.back"),children:r.jsx(ke,{size:16})}):r.jsx(Ne,{size:16,className:"text-muted-foreground shrink-0"}),r.jsx("span",{className:"text-sm font-medium truncate",children:a?a.login:n})]}),o.isPending?r.jsx("div",{className:"p-4",children:r.jsx(ie,{className:"h-24 w-full"})}):o.isError?r.jsx("p",{role:"alert",className:"p-4 text-sm text-destructive",children:o.error.message}):a?r.jsx(Ie,{account:a,onLink:(g,j)=>{y(g,j)},pendingPath:d},a.id):r.jsxs("div",{className:"flex-1 overflow-y-auto",children:[r.jsx(Oe,{onPick:b,pendingPath:d}),h.length>0&&r.jsx(Ke,{accounts:h,onSelect:x,disabled:d!==null}),r.jsxs("div",{className:"border-t border-border py-2",children:[r.jsx("p",{className:"px-4 py-2 text-xs text-muted-foreground leading-relaxed",children:i("common.repositoryPicker.description")}),r.jsx(Re,{layout:"picker",disabled:d!==null})]})]}),m&&r.jsx("p",{role:"alert",className:"px-4 pb-3 text-sm text-destructive",children:m})]})})}export{te as G,st as R,et as a,tt as b,Te as c,xe as d,Re as e,we as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as n,J as a,j as o,G as c,l as d,Y as f,bW as x,O as h}from"./index-D4kNOXaZ.js";import{i as u}from"./settings-sidebar-YUq277Fj.js";import{T as p}from"./toolbar-uHQPH11O.js";import{S as j,M as b}from"./shell-controls-DQHJDBxd.js";import{u as S}from"./use-status-sounds-BlKY0lJY.js";import"./ChevronUp-BLWk2PLk.js";import"./ChevronRight-C_hjJcoX.js";import"./TrendUp01-jtUFJcVZ.js";import"./toolbar-icon-button-BY-zouSr.js";import"./Check-BkEv2-AF.js";import"./ChevronSelectorVertical-4FSaFUJB.js";import"./Plus-DW9MHDo6.js";import"./command-CyGuJjsj.js";import"./index-By3xDZlt.js";import"./dialog-C0hdN6I-.js";import"./SearchMd-CcTNnV0J.js";import"./drawer-CQmL17ky.js";import"./popover-DC0i3xso.js";import"./agent-icon-DxBhLyXA.js";import"./AlertCircle-LT5wJDIs.js";import"./Tool01-CK8cjNwP.js";import"./ArrowUp-BZuR_K6J.js";import"./ArrowLeft-DXZudPup.js";import"./Tool02-ZSnZaFRo.js";import"./XCircle-CXkUSyNu.js";import"./ZoomOut-DYIZFe6l.js";import"./Users03-5G50TJuV.js";import"./CheckCircle-iXIgUTA-.js";import"./DotsVertical-B5wvzS7T.js";import"./UserSquare-GKc7Brd5.js";import"./Copy01-CZcJJybg.js";import"./CreditCard01-BaxlQmSQ.js";import"./Download01-C369braV.js";import"./Settings02-CKXbgw8U.js";import"./Eye-BgzuNcZt.js";import"./Share07-BXBxd0R_.js";import"./GitBranch01-D9Dvu6be.js";import"./Globe01-gtTldyUB.js";import"./XClose-Zdmfrpfd.js";import"./HardDrive-BpZt7RR-.js";import"./Image01-Caaqnw-u.js";import"./Key01-C-AW9sc8.js";import"./Link01-DSkW-LIC.js";import"./LinkExternal01-DQh4pxje.js";import"./Monitor01-D_TyMHF9.js";import"./Sun-DznmWcGB.js";import"./Package-3jrAjqYT.js";import"./Palette-DB1B3_50.js";import"./Play-d3AOy9jq.js";import"./Shield01-C6tyFvr_.js";import"./Stars01-L1DthZ1x.js";import"./Trash01-BHApmYNt.js";import"./Upload01-HslS21FF.js";import"./User01-CbiX60zt.js";import"./Users01-BlUXt4Hb.js";import"./Zap-DQmif984.js";import"./project-icon-c-cAFOOf.js";import"./constants-Daqiz8AS.js";import"./use-virtual-mcp-B28ZZwEO.js";import"./use-mcp-client-Cbk4voJc.js";import"./auth-CxhEBvSD.js";import"./github-repo-CTPv5ZM2.js";import"./create-organization-dialog-BTIOP3Mv.js";import"./alert-dialog-CUqdr4tM.js";import"./form-BemOciZL.js";import"./label-CFXRIjUC.js";import"./input-BsyUUAk4.js";import"./use-destination-route-Captgtl7.js";import"./use-join-requests--dVWDX2j.js";import"./question-004-sINsf4GQ.js";import"./use-decopilot-events-CLDQlvrd.js";import"./decopilot-sse-pool-CjlGdJdl.js";import"./task-board-DERk_X9g.js";import"./schema-DRFY0EZd.js";import"./backoff-CrEUbyZT.js";function g(){const t=n.c(3),r=a(),{org:l}=c();S(l.slug);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx(f,{children:o.jsx("div",{className:"flex flex-1 items-center overflow-hidden rounded-[inherit]",children:o.jsx(x,{value:"p-0",children:o.jsx("div",{className:"flex-1 min-w-0 overflow-hidden h-full",children:o.jsx(h,{})})})})}),t[0]=e):e=t[0];const m=e;if(r){let s;return t[1]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsx("div",{className:"flex flex-col flex-1 bg-background min-h-0 overflow-hidden",children:m}),t[1]=s):s=t[1],s}let i;return t[2]===Symbol.for("react.memo_cache_sentinel")?(i=o.jsx("div",{className:"flex-1 min-h-0 p-1.5",children:o.jsx("div",{className:d("flex flex-col h-full min-h-0 bg-background overflow-hidden","card-shadow","rounded-[0.75rem]"),children:m})}),t[2]=i):i=t[2],i}function qt(){const t=n.c(10),r=a();let l;t[0]!==r?(l=r&&o.jsxs(p.Header,{children:[o.jsx(p.LeftColumn,{children:o.jsx(j,{})}),o.jsx(p.CenterSlot,{}),o.jsx(p.RightColumn,{children:o.jsx("span",{})})]}),t[0]=r,t[1]=l):l=t[1];let e;t[2]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx(g,{}),t[2]=e):e=t[2];let m;t[3]!==l?(m=o.jsxs("div",{className:"flex flex-col h-full min-h-0",children:[l,e]}),t[3]=l,t[4]=m):m=t[4];let i;t[5]!==r?(i=r&&o.jsx(b,{renderSidebar:v}),t[5]=r,t[6]=i):i=t[6];let s;return t[7]!==m||t[8]!==i?(s=o.jsxs(p.Provider,{children:[m,i]}),t[7]=m,t[8]=i,t[9]=s):s=t[9],s}function v(t){const{onClose:r}=t;return o.jsx(u,{onClose:r})}export{qt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as v,Z as Te,H as be,l as R,j as a,b as P,r as I,B as ue,a as M,t as D,w as Ae,bX as Re,m as qe,K as De,bY as Fe,G as le,J as Me,_ as ie,d as He,s as Le,a1 as je,a2 as ve,a4 as Se,o as H,a_ as ke,L as Ee,a6 as fe,a5 as re,bZ as Be,b_ as Ue,z as Ve,b$ as Ge,f as Je,k as Ke,c0 as Qe,c1 as We,c2 as Ye,a0 as Ze}from"./index-D4kNOXaZ.js";import{t as Xe}from"./ChevronUp-BLWk2PLk.js";import{i as es}from"./ChevronRight-C_hjJcoX.js";import{h as ss}from"./TrendUp01-jtUFJcVZ.js";import{I as ts,T as ye}from"./toolbar-icon-button-BY-zouSr.js";import{i as Q}from"./Check-BkEv2-AF.js";import{i as as}from"./ChevronSelectorVertical-4FSaFUJB.js";import{s as ns}from"./Plus-DW9MHDo6.js";import{c as he,e as ne,d as W,b as is,C as rs,a as os}from"./command-CyGuJjsj.js";import{D as ls,d as cs,a as ds,b as gs}from"./drawer-CQmL17ky.js";import{P as ms,a as us,b as fs}from"./popover-DC0i3xso.js";import{A as hs,f as ps,e as xs,aQ as bs,aR as js}from"./agent-icon-DxBhLyXA.js";import{u as Ne,L as Z,P as $e}from"./project-icon-c-cAFOOf.js";import{C as vs}from"./create-organization-dialog-BTIOP3Mv.js";import{s as Ss}from"./XClose-Zdmfrpfd.js";import{u as ks}from"./use-destination-route-Captgtl7.js";import{e as ys}from"./use-virtual-mcp-B28ZZwEO.js";import{i as Ns}from"./ArrowLeft-DXZudPup.js";import{t as $s,b as pe}from"./Users03-5G50TJuV.js";import{i as _s}from"./CreditCard01-BaxlQmSQ.js";import{i as Cs}from"./GitBranch01-D9Dvu6be.js";import{i as ws}from"./HardDrive-BpZt7RR-.js";import{i as zs}from"./Key01-C-AW9sc8.js";import{n as Is}from"./LinkExternal01-DQh4pxje.js";import{t as Ps}from"./Stars01-L1DthZ1x.js";import{s as Os}from"./User01-CbiX60zt.js";import{i as Ts}from"./Zap-DQmif984.js";import{u as As}from"./use-join-requests--dVWDX2j.js";function Rs(){const t=v.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org/settings",shouldThrow:!1},t[0]=e):e=t[0],!!Te(e)}function ce(){const{state:t,isMobile:e}=be();return t==="collapsed"&&!e}function qs(t){let e=0;for(let d=0;d<t.length;d++)e=t.charCodeAt(d)+((e<<5)-e);const s=Math.abs(e)%360;return{backgroundColor:`hsl(${s} 55% 70%)`,color:`hsl(${s} 55% 20%)`}}function de(t){const e=v.c(13),{org:s,size:d}=t,i=d===void 0?"sm":d,n=i==="xs"?"size-5":"size-6",o=i==="xs"?"text-[9px]":"text-xs";let l;e[0]!==n?(l=R(n,"shrink-0 rounded-md flex items-center justify-center border border-border/50 overflow-hidden"),e[0]=n,e[1]=l):l=e[1];let c;e[2]!==s.logo||e[3]!==s.name?(c=s.logo?void 0:qs(s.name),e[2]=s.logo,e[3]=s.name,e[4]=c):c=e[4];let r;e[5]!==s.logo||e[6]!==s.name||e[7]!==o?(r=s.logo?a.jsx("img",{src:s.logo,alt:"",className:"size-full object-cover"}):a.jsx("span",{className:R("font-semibold leading-none",o),children:s.name.slice(0,2).toUpperCase()}),e[5]=s.logo,e[6]=s.name,e[7]=o,e[8]=r):r=e[8];let g;return e[9]!==l||e[10]!==c||e[11]!==r?(g=a.jsx("div",{className:l,style:c,children:r}),e[9]=l,e[10]=c,e[11]=r,e[12]=g):g=e[12],g}function Ds({invitation:t,onChanged:e}){const s=P(),[d,i]=I.useState(!1),n=t.organizationName??s("header.orgSwitcher.unknownOrganization"),o=async()=>{i(!0);try{const r=await M.organization.acceptInvitation({invitationId:t.id});if(r.error){D.error(r.error.message),i(!1);return}}catch{D.error(s("header.orgSwitcher.failedToAcceptInvitation")),i(!1);return}D.success(s("header.orgSwitcher.joined",{name:n})),Ae();let c;try{c=(await M.organization.getFullOrganization({query:{organizationId:t.organizationId}}))?.data?.slug}catch{}window.location.href=c?`/${c}`:"/"},l=async()=>{i(!0);try{const c=await M.organization.rejectInvitation({invitationId:t.id});if(c.error){D.error(c.error.message),i(!1);return}D.success(s("header.orgSwitcher.invitationDeclined")),i(!1),e()}catch{D.error(s("header.orgSwitcher.failedToDeclineInvitation")),i(!1)}};return a.jsxs("div",{className:"flex items-center gap-3 rounded-md border border-dashed border-border px-3 py-2.5",children:[a.jsx(de,{org:{name:n},size:"sm"}),a.jsxs("div",{className:"min-w-0 flex-1",children:[a.jsx("p",{className:"truncate text-sm font-medium",children:n}),a.jsx("p",{className:"truncate text-xs text-muted-foreground",children:s("header.orgSwitcher.invitedToJoin")})]}),a.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[a.jsx(ue,{size:"sm",variant:"default",className:"h-7 text-xs",onClick:o,disabled:d,children:s("header.orgSwitcher.accept")}),a.jsx(ue,{size:"icon",variant:"ghost",className:"size-7 text-muted-foreground",onClick:l,disabled:d,"aria-label":s("header.orgSwitcher.declineInvitationTo",{name:n}),children:a.jsx(Ss,{size:14})})]})]})}function _e(){const t=I.useContext(Re),{data:e,refetch:s}=t.hooks.useListUserInvitations();return{invitations:(e??[]).filter(i=>i.status==="pending"&&new Date(i.expiresAt)>new Date),refetch:()=>s?.()}}function Fs(t){const e=v.c(13),s=t.trim(),{data:d}=M.useSession(),i=d?.user?.id??"",n=s.length>0&&!!i,o=De.projectSearch(i,s);let l;e[0]!==s?(l=async k=>{const{signal:j}=k,S=await fetch(`/api/_me/projects/search?q=${encodeURIComponent(s)}`,{signal:j});if(!S.ok)throw new Error(`Project search failed: ${S.status}`);return await S.json()},e[0]=s,e[1]=l):l=e[1];let c;e[2]!==n||e[3]!==o||e[4]!==l?(c={queryKey:o,queryFn:l,enabled:n,placeholderData:Fe,staleTime:3e4,retry:!1},e[2]=n,e[3]=o,e[4]=l,e[5]=c):c=e[5];const{data:r,isFetching:g,isPlaceholderData:m,isError:f}=qe(c);let u;e[6]!==r?.items?(u=r?.items??[],e[6]=r?.items,e[7]=u):u=e[7];const h=n&&g,b=n&&m;let p;return e[8]!==f||e[9]!==u||e[10]!==h||e[11]!==b?(p={hits:u,isSearching:h,isStale:b,isError:f},e[8]=f,e[9]=u,e[10]=h,e[11]=b,e[12]=p):p=e[12],p}function xe(t){const e=v.c(15),{id:s,label:d,createLabel:i,onCreate:n}=t;let o;e[0]!==s||e[1]!==d?(o=a.jsx("span",{id:s,className:"truncate",children:d}),e[0]=s,e[1]=d,e[2]=o):o=e[2];let l;e[3]===Symbol.for("react.memo_cache_sentinel")?(l=a.jsx(ns,{size:14}),e[3]=l):l=e[3];let c;e[4]!==i||e[5]!==n?(c=a.jsx(je,{asChild:!0,children:a.jsx("button",{type:"button","aria-label":i,className:"-my-1 shrink-0 cursor-pointer rounded-md p-1 text-muted-foreground transition-colors hover:bg-accent/60 hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50",onClick:n,children:l})}),e[4]=i,e[5]=n,e[6]=c):c=e[6];let r;e[7]!==i?(r=a.jsx(ve,{side:"right",children:i}),e[7]=i,e[8]=r):r=e[8];let g;e[9]!==c||e[10]!==r?(g=a.jsxs(Se,{children:[c,r]}),e[9]=c,e[10]=r,e[11]=g):g=e[11];let m;return e[12]!==o||e[13]!==g?(m=a.jsxs("div",{className:"flex w-full items-center justify-between gap-2 px-2 py-1.5 text-xs font-medium text-muted-foreground",children:[o,g]}),e[12]=o,e[13]=g,e[14]=m):m=e[14],m}const Y="min-h-9 items-center",A={allProjects:"scope:__all__",project:t=>`scope:${t}`,org:t=>`org:${t}`,foreignProject:(t,e)=>`travel:${t}:${e}`};function Ms(t){const e=v.c(11),{active:s,rows:d}=t,i=P();let n,o,l,c;if(e[0]!==s||e[1]!==d||e[2]!==i){c=Symbol.for("react.early_return_sentinel");e:{const g=d.get(s);if(g?.kind!=="travel"){c=null;break e}n="border-t border-border px-3 py-2 text-xs text-warning",o=i("sidebar.picker.verbTravel",{name:g.label}),l=g.leaves&&a.jsxs("span",{className:"text-muted-foreground",children:[" ",i("sidebar.picker.verbLeaves",{name:g.leaves})]})}e[0]=s,e[1]=d,e[2]=i,e[3]=n,e[4]=o,e[5]=l,e[6]=c}else n=e[3],o=e[4],l=e[5],c=e[6];if(c!==Symbol.for("react.early_return_sentinel"))return c;let r;return e[7]!==n||e[8]!==o||e[9]!==l?(r=a.jsxs("div",{className:n,children:[o,l]}),e[7]=n,e[8]=o,e[9]=l,e[10]=r):r=e[10],r}function Hs(t){const e=v.c(27),{onClose:s,onCreateOrg:d,className:i}=t,n=P(),o=I.useId(),l=I.useId(),c=He(),{org:r}=le(),{scopeId:g,projects:m,setScope:f}=Ne(),{hasMore:u}=ys(),[h,b]=I.useState(""),[p,k]=I.useState(A.allProjects),j=I.useDeferredValue(h);let S;e[0]!==j?(S=j.trim(),e[0]=j,e[1]=S):S=e[1];const N=S,$=N.length>0,{data:w}=Le(),{invitations:_,refetch:z}=_e();let y;e[2]!==r.slug?(y=(x,C)=>x.slug===r.slug?-1:C.slug===r.slug?1:0,e[2]=r.slug,e[3]=y):y=e[3];const O=(w??[]).slice().sort(y),{hits:T,isSearching:L,isStale:Ie,isError:X}=Fs($?N:""),ee=ks();let E;e[4]!==ee?(E=ee.startsWith("/$org/settings"),e[4]=ee,e[5]=E):E=e[5];const B=E,F=new Map;let U;e[6]!==B||e[7]!==c||e[8]!==s||e[9]!==r.slug||e[10]!==f?(U=x=>{H("scope_set",{scoped:x!==null,fromSettings:B}),B?c({to:"/$org",params:{org:r.slug},search:{virtualmcpid:x??void 0}}):f(x),s()},e[6]=B,e[7]=c,e[8]=s,e[9]=r.slug,e[10]=f,e[11]=U):U=e[11];const se=U;let V;e[12]!==c||e[13]!==s?(V=(x,C)=>{H("org_project_travel",{scoped:!!C}),c({to:"/$org",params:{org:x},search:C?{virtualmcpid:C}:{}}),s()},e[12]=c,e[13]=s,e[14]=V):V=e[14];const ge=V;let G;e[15]!==c||e[16]!==s||e[17]!==r.slug?(G=()=>{H("picker_new_project"),c({to:"/$org/agents/{-$panel}",params:{org:r.slug,panel:void 0},search:{virtualmcpid:void 0}}),s()},e[15]=c,e[16]=s,e[17]=r.slug,e[18]=G):G=e[18];const Pe=G;F.set(A.allProjects,{kind:"scope",label:n("sidebar.scope.allProjects")});let q;e[19]!==n?(q=n("sidebar.picker.searchPlaceholder"),e[19]=n,e[20]=q):q=e[20];let J;e[21]!==h||e[22]!==q?(J=a.jsx(os,{value:h,onValueChange:b,placeholder:q}),e[21]=h,e[22]=q,e[23]=J):J=e[23];const te=is,Oe="max-h-none min-h-0 flex-1",ae=$?a.jsxs(a.Fragment,{children:[X&&a.jsx(he,{children:n("sidebar.picker.searchFailed")}),!X&&!L&&T.length===0&&a.jsx(he,{children:n("sidebar.picker.noMatches",{query:N})}),!X&&T.length>0&&a.jsx(ne,{heading:n("sidebar.picker.projectsHeading"),className:R(Ie&&"opacity-50"),children:T.map(x=>a.jsx(Ls,{hit:x,currentOrgSlug:r.slug,currentOrgName:r.name,scopeId:g,rows:F,onScope:se,onTravel:ge},`${x.orgSlug}:${x.id}`))})]}):a.jsxs(a.Fragment,{children:[a.jsx(xe,{id:o,label:n("sidebar.picker.projectsHeading"),createLabel:n("sidebar.picker.newProject"),onCreate:Pe}),a.jsxs(ne,{"aria-labelledby":o,children:[a.jsxs(W,{value:A.allProjects,className:Y,onSelect:()=>se(null),children:[a.jsx("span",{className:"min-w-0 flex-1 truncate",children:n("sidebar.scope.allProjects")}),g===null&&a.jsx(Q,{size:14})]}),m.map(x=>{const C=A.project(x.id);return F.set(C,{kind:"scope",label:x.title}),a.jsxs(W,{value:C,className:Y,onSelect:()=>se(x.id),children:[a.jsx($e,{icon:x.icon,name:x.title}),a.jsx("span",{className:"min-w-0 flex-1 truncate",children:x.title}),g===x.id&&a.jsx(Q,{size:14})]},x.id)}),u&&a.jsx("p",{className:"px-3 py-1.5 text-xs text-muted-foreground",children:n("sidebar.picker.moreExist")})]}),a.jsx(xe,{id:l,label:n("sidebar.picker.orgsHeading"),createLabel:n("sidebar.picker.newOrganization"),onCreate:d}),a.jsxs(ne,{"aria-labelledby":l,children:[_.map(x=>a.jsx(Ds,{invitation:x,onChanged:z},x.id)),O.map(x=>{const C=x.slug===r.slug,me=A.org(x.slug);return F.set(me,{kind:C?"scope":"travel",label:x.name,...C?{}:{leaves:r.name}}),a.jsxs(W,{value:me,className:Y,onSelect:()=>C?s():ge(x.slug),children:[a.jsx(de,{org:x,size:"xs"}),a.jsx("span",{className:"min-w-0 flex-1 truncate",children:x.name}),C&&a.jsx(Q,{size:14})]},x.id)})]})]});let K;return e[24]!==te||e[25]!==ae?(K=a.jsx(te,{className:Oe,children:ae}),e[24]=te,e[25]=ae,e[26]=K):K=e[26],a.jsxs(rs,{shouldFilter:!1,value:p,onValueChange:k,className:i,children:[J,K,a.jsx(Ms,{active:p,rows:F})]})}function Ls(t){const e=v.c(31),{hit:s,currentOrgSlug:d,currentOrgName:i,scopeId:n,rows:o,onScope:l,onTravel:c}=t,r=s.orgSlug===d;let g;e[0]!==i||e[1]!==s.id||e[2]!==s.orgSlug||e[3]!==s.title||e[4]!==r||e[5]!==o?(g=r?A.project(s.id):A.foreignProject(s.orgSlug,s.id),o.set(g,{kind:r?"scope":"travel",label:s.title,leaves:r?void 0:i}),e[0]=i,e[1]=s.id,e[2]=s.orgSlug,e[3]=s.title,e[4]=r,e[5]=o,e[6]=g):g=e[6];let m;e[7]!==s.id||e[8]!==s.orgSlug||e[9]!==r||e[10]!==l||e[11]!==c?(m=()=>r?l(s.id):c(s.orgSlug,s.id),e[7]=s.id,e[8]=s.orgSlug,e[9]=r,e[10]=l,e[11]=c,e[12]=m):m=e[12];let f;e[13]!==s.icon||e[14]!==s.title?(f=a.jsx($e,{icon:s.icon,name:s.title}),e[13]=s.icon,e[14]=s.title,e[15]=f):f=e[15];let u;e[16]!==s.title?(u=a.jsx("span",{className:"min-w-0 flex-1 truncate",children:s.title}),e[16]=s.title,e[17]=u):u=e[17];let h;e[18]!==s.orgName?(h=a.jsx("span",{className:"shrink-0 text-xs text-muted-foreground",children:s.orgName}),e[18]=s.orgName,e[19]=h):h=e[19];let b;e[20]!==s.id||e[21]!==r||e[22]!==n?(b=r&&n===s.id&&a.jsx(Q,{size:14}),e[20]=s.id,e[21]=r,e[22]=n,e[23]=b):b=e[23];let p;return e[24]!==m||e[25]!==f||e[26]!==u||e[27]!==h||e[28]!==b||e[29]!==g?(p=a.jsxs(W,{value:g,className:Y,onSelect:m,children:[f,u,h,b]}),e[24]=m,e[25]=f,e[26]=u,e[27]=h,e[28]=b,e[29]=g,e[30]=p):p=e[30],p}function Ce(t){const e=v.c(32),{collapsed:s,onNavigate:d}=t,i=s===void 0?!1:s,n=P(),{org:o}=le(),{project:l}=Ne(),{invitations:c}=_e(),[r,g]=I.useState(!1),[m,f]=I.useState(!1),u=Me();let h;if(e[0]!==i||e[1]!==c.length||e[2]!==o||e[3]!==l||e[4]!==n){const z=l?n("sidebar.picker.projectInOrg",{project:l.title,org:o.name}):o.name;let y;e[6]!==o||e[7]!==l?(y=l?a.jsx(hs,{icon:l.icon,name:l.title,size:"xs",className:"shrink-0"}):a.jsx(de,{org:o,size:"sm"}),e[6]=o,e[7]=l,e[8]=y):y=e[8];let O;e[9]!==c.length?(O=c.length>0&&a.jsx("span",{className:"absolute -right-1 -top-1 size-2.5 rounded-full bg-destructive ring-2 ring-background"}),e[9]=c.length,e[10]=O):O=e[10];let T;e[11]!==y||e[12]!==O?(T=a.jsxs("div",{className:"relative inline-flex shrink-0",children:[y,O]}),e[11]=y,e[12]=O,e[13]=T):T=e[13];const L=T;h=i?a.jsx(ie,{tooltip:z,"data-tour":Z.switcher,children:L}):a.jsxs("button",{type:"button","data-tour":Z.switcher,"aria-label":n("sidebar.picker.ariaLabel",{name:z}),className:R("flex min-w-0 flex-1 items-center gap-2 rounded-lg py-1.5 pl-1 pr-1.5 text-left md:h-[34px] md:py-0","[transition:background-color_180ms_ease] hover:bg-sidebar-accent",ts),children:[L,a.jsx("span",{className:"min-w-0 flex-1 truncate text-sm font-medium text-foreground",children:l?l.title:o.name}),a.jsx(as,{size:14,className:"shrink-0 text-muted-foreground"})]}),e[0]=i,e[1]=c.length,e[2]=o,e[3]=l,e[4]=n,e[5]=h}else h=e[5];const b=h,p=u?"min-h-0 flex-1":"max-h-[min(560px,70dvh,var(--radix-popover-content-available-height,70dvh))]";let k;e[14]!==d?(k=()=>{g(!1),d?.()},e[14]=d,e[15]=k):k=e[15];let j;e[16]===Symbol.for("react.memo_cache_sentinel")?(j=()=>{g(!1),f(!0)},e[16]=j):j=e[16];let S;e[17]!==p||e[18]!==k?(S=a.jsx(Hs,{onClose:k,onCreateOrg:j,className:p}),e[17]=p,e[18]=k,e[19]=S):S=e[19];const N=S;let $;e[20]!==i||e[21]!==N||e[22]!==u||e[23]!==r||e[24]!==n||e[25]!==b?($=u?a.jsxs(ls,{open:r,onOpenChange:g,direction:"bottom",children:[a.jsx(cs,{asChild:!0,children:b}),a.jsxs(ds,{className:"flex max-h-[85dvh] flex-col p-0",children:[a.jsx(gs,{className:"sr-only",children:n("sidebar.picker.title")}),N]})]}):a.jsxs(ms,{open:r,onOpenChange:g,children:[a.jsx(us,{asChild:!0,children:b}),a.jsx(fs,{side:i?"right":"bottom",align:"start",className:"w-[min(340px,calc(100vw-2rem))] p-0",children:N})]}),e[20]=i,e[21]=N,e[22]=u,e[23]=r,e[24]=n,e[25]=b,e[26]=$):$=e[26];let w;e[27]!==m?(w=a.jsx(vs,{open:m,onOpenChange:f}),e[27]=m,e[28]=w):w=e[28];let _;return e[29]!==$||e[30]!==w?(_=a.jsxs(a.Fragment,{children:[$,w]}),e[29]=$,e[30]=w,e[31]=_):_=e[31],_}const we=16;function Pt(){const t=v.c(7),e=ce(),s=Rs();let d;t[0]!==e?(d=a.jsx(Ce,{collapsed:e}),t[0]=e,t[1]=d):d=t[1];let i;t[2]!==s?(i=!s&&a.jsx(Bs,{}),t[2]=s,t[3]=i):i=t[3];let n;return t[4]!==d||t[5]!==i?(n=a.jsxs(a.Fragment,{children:[d,i]}),t[4]=d,t[5]=i,t[6]=n):n=t[6],n}function Es(t){const e=v.c(12),{onClose:s}=t,d=P();let i;e[0]!==s?(i=a.jsx(Ce,{onNavigate:s}),e[0]=s,e[1]=i):i=e[1];let n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=a.jsx("div",{className:"flex-1"}),e[2]=n):n=e[2];let o;e[3]!==d?(o=d("sidebar.header.closeSidebar"),e[3]=d,e[4]=o):o=e[4];let l;e[5]===Symbol.for("react.memo_cache_sentinel")?(l=a.jsx(ke,{size:we}),e[5]=l):l=e[5];let c;e[6]!==s||e[7]!==o?(c=a.jsx(ye,{onClick:s,"aria-label":o,children:l}),e[6]=s,e[7]=o,e[8]=c):c=e[8];let r;return e[9]!==i||e[10]!==c?(r=a.jsxs(a.Fragment,{children:[i,n,c]}),e[9]=i,e[10]=c,e[11]=r):r=e[11],r}function Bs(){const t=v.c(12),e=P(),s=ce(),{toggleSidebar:d}=be();let i;t[0]!==e?(i=e("sidebar.header.toggleSidebar"),t[0]=e,t[1]=i):i=t[1];const n=i;let o;t[2]===Symbol.for("react.memo_cache_sentinel")?(o=a.jsx(ke,{size:we}),t[2]=o):o=t[2];let l;t[3]!==n||t[4]!==d?(l=a.jsx(je,{asChild:!0,children:a.jsx(ye,{"aria-label":n,onClick:d,className:"shrink-0 rounded-lg md:size-[34px] group-data-[state=collapsed]/sidebar:mx-auto",children:o})}),t[3]=n,t[4]=d,t[5]=l):l=t[5];const c=!s;let r;t[6]!==n||t[7]!==c?(r=a.jsx(ve,{side:"right",hidden:c,children:n}),t[6]=n,t[7]=c,t[8]=r):r=t[8];let g;return t[9]!==l||t[10]!==r?(g=a.jsxs(Se,{children:[l,r]}),t[9]=l,t[10]=r,t[11]=g):g=t[11],g}function oe(t){const e=v.c(30),{icon:s,label:d,isActive:i,link:n,onSelect:o,ariaLabel:l,className:c,dataTour:r,children:g}=t,m=i===void 0?!1:i,f=ce(),u=l??d,h=f?u:void 0;let b;e[0]!==c||e[1]!==r||e[2]!==m||e[3]!==h?(b={isActive:m,tooltip:h,className:c,"data-tour":r},e[0]=c,e[1]=r,e[2]=m,e[3]=h,e[4]=b):b=e[4];const p=b;let k;e[5]!==d?(k=a.jsx("span",{className:"truncate",children:d}),e[5]=d,e[6]=k):k=e[6];let j;e[7]!==s||e[8]!==k?(j=a.jsxs(a.Fragment,{children:[s,k]}),e[7]=s,e[8]=k,e[9]=j):j=e[9];const S=j;if(n){const w=m?"page":void 0;let _;e[10]!==S||e[11]!==n||e[12]!==u||e[13]!==o||e[14]!==w?(_=a.jsx(Ee,{...n,"aria-label":u,"aria-current":w,onClick:o,children:S}),e[10]=S,e[11]=n,e[12]=u,e[13]=o,e[14]=w,e[15]=_):_=e[15];let z;e[16]!==p||e[17]!==_?(z=a.jsx(ie,{asChild:!0,...p,children:_}),e[16]=p,e[17]=_,e[18]=z):z=e[18];let y;return e[19]!==g||e[20]!==z?(y=a.jsxs(fe,{children:[z,g]}),e[19]=g,e[20]=z,e[21]=y):y=e[21],y}let N;e[22]!==S||e[23]!==u||e[24]!==o||e[25]!==p?(N=a.jsx(ie,{...p,"aria-label":u,onClick:o,children:S}),e[22]=S,e[23]=u,e[24]=o,e[25]=p,e[26]=N):N=e[26];let $;return e[27]!==g||e[28]!==N?($=a.jsxs(fe,{children:[N,g]}),e[27]=g,e[28]=N,e[29]=$):$=e[29],$}function Us(t){const e=v.c(5),{label:s,link:d,onSelect:i}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=a.jsx(Ns,{size:16}),e[0]=n):n=e[0];let o;return e[1]!==s||e[2]!==d||e[3]!==i?(o=a.jsx("div",{className:"-mx-2 border-b border-sidebar-border px-2 py-2",children:a.jsx(re,{className:"shrink-0",children:a.jsx(oe,{icon:n,label:s,className:"text-sidebar-foreground/70",link:d,onSelect:i})})}),e[1]=s,e[2]=d,e[3]=i,e[4]=o):o=e[4],o}function Vs(){const t=v.c(8),e=P(),{capabilities:s,isPrivileged:d,loading:i,error:n}=Be(),o=As().length,l=Ue();let c;return t[0]!==s||t[1]!==n||t[2]!==d||t[3]!==o||t[4]!==i||t[5]!==e||t[6]!==l?(c=[{key:"account",label:"",items:[{key:"profile",label:e("settings.nav.profile"),icon:a.jsx(Os,{size:14}),to:"/$org/settings/profile"}]},{key:"organization",label:e("settings.nav.organization"),items:[{key:"general",label:e("settings.nav.general"),icon:a.jsx($s,{size:14}),to:"/$org/settings/general",requires:"org:manage"},{key:"billing",label:e("settings.nav.billing"),icon:a.jsx(_s,{size:14}),to:"/$org/settings/ai-providers",group:"billing"},{key:"connect",label:e("settings.nav.connect"),icon:a.jsx(Is,{size:14}),to:"/$org/settings/connect",group:"connect"},{key:"tasks",label:e("settings.nav.tasks"),icon:a.jsx(ps,{size:14}),to:"/$org/settings/task-board",requires:"org:manage"}]},{key:"build",label:e("settings.nav.build"),items:[{key:"repositories",label:e("settings.nav.repositories"),icon:a.jsx(Cs,{size:14}),to:"/$org/settings/repositories",requires:"file-configs:manage"},{key:"connections",label:e("settings.nav.connections"),icon:a.jsx(xs,{size:14}),to:"/$org/settings/connections"},{key:"agents",label:e("settings.nav.agents"),icon:a.jsx(pe,{size:14}),to:"/$org/settings/agents"},{key:"automations",label:e("settings.nav.automations"),icon:a.jsx(Ts,{size:14}),to:"/$org/settings/automations",requires:"automations:manage"},{key:"skills",label:e("settings.nav.skills"),icon:a.jsx(Ps,{size:14}),to:"/$org/settings/skills"}]},{key:"manage",label:e("settings.nav.manage"),items:[{key:"monitor",label:e("settings.nav.monitor"),icon:a.jsx(bs,{size:14}),to:"/$org/settings/monitor",requires:"monitoring:view"},{key:"members",label:e("settings.nav.members"),icon:a.jsx(pe,{size:14}),to:"/$org/settings/members",group:"members",badge:o}]},{key:"advanced",label:e("settings.nav.advanced"),collapsible:!0,items:[{key:"secrets",label:e("settings.nav.secrets"),icon:a.jsx(zs,{size:14}),to:"/$org/settings/secrets",requires:"secrets:manage"},{key:"storage",label:e("settings.nav.storage"),icon:a.jsx(ws,{size:14}),to:"/$org/settings/buckets",group:"storage"},{key:"store",label:e("settings.nav.store"),icon:a.jsx(js,{size:14}),to:"/$org/settings/store",requires:"registry:manage"},{key:"sso",label:e("settings.nav.security"),icon:a.jsx(Ve,{size:14}),to:"/$org/settings/sso",requires:"org:manage"}]}].map(g=>({...g,items:g.items.flatMap(m=>{if(m.group){const[f]=l[m.group];return f?[{...m,to:f.to}]:Ge(m.group)?[]:[m]}return i||n?[m]:m.privilegedOnly?d?[m]:[]:m.requires?d||s[m.requires]?[m]:[]:[m]})})).filter(Gs),t[0]=s,t[1]=n,t[2]=d,t[3]=o,t[4]=i,t[5]=e,t[6]=l,t[7]=c):c=t[7],c}function Gs(t){return t.items.length>0}function ze(){const t=v.c(8);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org"},t[0]=e):e=t[0];const{org:s}=Je(e);let d;t[1]===Symbol.for("react.memo_cache_sentinel")?(d={select:Js},t[1]=d):d=t[1];const i=Ke(d);let n;if(t[2]!==s||t[3]!==i){const c=r=>{const g=r.replace("$org",s);return i===g||i.startsWith(`${g}/`)};n=r=>[r.to,...r.group?Qe(r.group):[]].some(c),t[2]=s,t[3]=i,t[4]=n}else n=t[4];const o=n;let l;return t[5]!==o||t[6]!==s?(l={org:s,isActive:o},t[5]=o,t[6]=s,t[7]=l):l=t[7],l}function Js(t){return t.location.pathname}const Ks="pt-1.5";function Qs(t){const e=v.c(15),{header:s,back:d,body:i,footer:n,sheet:o}=t;let l;e[0]!==s?(l=s&&a.jsxs(a.Fragment,{children:[a.jsx("div",{className:"flex h-12 shrink-0 flex-row items-center gap-2 px-2 group-data-[state=collapsed]/sidebar:h-auto group-data-[state=collapsed]/sidebar:flex-col group-data-[state=collapsed]/sidebar:py-2",children:s}),a.jsx("div",{className:"mt-1.5 h-px shrink-0 bg-sidebar-border"})]}),e[0]=s,e[1]=l):l=e[1];let c;e[2]!==d?(c=d&&a.jsx("div",{className:"shrink-0 px-2",children:d}),e[2]=d,e[3]=c):c=e[3];let r;e[4]!==i?(r=a.jsx(We,{className:"gap-0 overflow-y-auto px-2 pt-2 pb-2 group-data-[state=collapsed]/sidebar:[scrollbar-width:none] group-data-[state=collapsed]/sidebar:[&::-webkit-scrollbar]:hidden",children:i}),e[4]=i,e[5]=r):r=e[5];let g;e[6]!==n||e[7]!==l||e[8]!==c||e[9]!==r?(g=a.jsxs(a.Fragment,{children:[l,c,r,n]}),e[6]=n,e[7]=l,e[8]=c,e[9]=r,e[10]=g):g=e[10];const m=g;if(o){let u;return e[11]!==m?(u=a.jsx("div",{className:"group/sidebar flex h-full w-full flex-col bg-sidebar text-sidebar-foreground","data-sidebar":"sidebar","data-state":"expanded","data-tour":Z.nav,children:m}),e[11]=m,e[12]=u):u=e[12],u}let f;return e[13]!==m?(f=a.jsx(Ye,{className:Ks,"data-tour":Z.nav,children:m}),e[13]=m,e[14]=f):f=e[14],f}function Ws(){const t=v.c(9),{isActive:e}=ze();let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s={},t[0]=s):s=t[0];const[d,i]=I.useState(s);let n;t[1]!==e||t[2]!==d?(n=g=>d[g.key]??(!g.collapsible||g.items.some(e)),t[1]=e,t[2]=d,t[3]=n):n=t[3];const o=n;let l;t[4]!==o?(l=g=>i(m=>({...m,[g.key]:!o(g)})),t[4]=o,t[5]=l):l=t[5];const c=l;let r;return t[6]!==o||t[7]!==c?(r={isOpen:o,toggle:c},t[6]=o,t[7]=c,t[8]=r):r=t[8],r}function Ys(t){const e=v.c(21),{group:s,open:d,onToggle:i,className:n}=t;let o,l,c,r,g;if(e[0]!==n||e[1]!==s.collapsible||e[2]!==s.label||e[3]!==i||e[4]!==d){g=Symbol.for("react.early_return_sentinel");e:{const h=R("text-xs font-medium text-muted-foreground/60 truncate",n);if(!s.collapsible){g=a.jsx("p",{className:h,children:s.label});break e}o="button",l=i,c=d,r=R("flex w-full items-center gap-1 rounded-md hover:text-muted-foreground",h)}e[0]=n,e[1]=s.collapsible,e[2]=s.label,e[3]=i,e[4]=d,e[5]=o,e[6]=l,e[7]=c,e[8]=r,e[9]=g}else o=e[5],l=e[6],c=e[7],r=e[8],g=e[9];if(g!==Symbol.for("react.early_return_sentinel"))return g;let m;e[10]!==d?(m=d?a.jsx(Xe,{size:12}):a.jsx(es,{size:12}),e[10]=d,e[11]=m):m=e[11];let f;e[12]!==s.label?(f=a.jsx("span",{className:"truncate",children:s.label}),e[12]=s.label,e[13]=f):f=e[13];let u;return e[14]!==o||e[15]!==l||e[16]!==c||e[17]!==r||e[18]!==m||e[19]!==f?(u=a.jsxs("button",{type:o,onClick:l,"aria-expanded":c,className:r,children:[m,f]}),e[14]=o,e[15]=l,e[16]=c,e[17]=r,e[18]=m,e[19]=f,e[20]=u):u=e[20],u}function Zs(t){const e=v.c(5),{icon:s,badge:d}=t;let i;e[0]!==d?(i=d?a.jsx("span",{className:"absolute -right-1 -top-1 size-2 rounded-full bg-destructive pointer-events-none"}):null,e[0]=d,e[1]=i):i=e[1];let n;return e[2]!==s||e[3]!==i?(n=a.jsxs("span",{className:"relative shrink-0",children:[s,i]}),e[2]=s,e[3]=i,e[4]=n):n=e[4],n}function Xs(t){const e=v.c(22),{onNavigate:s}=t,d=P(),i=Vs(),{org:n,isActive:o}=ze(),{isOpen:l,toggle:c}=Ws();let r;if(e[0]!==i||e[1]!==o||e[2]!==l||e[3]!==s||e[4]!==n||e[5]!==c){let b;e[7]!==o||e[8]!==l||e[9]!==s||e[10]!==n||e[11]!==c?(b=(p,k)=>a.jsxs("div",{className:"flex flex-col",children:[p.label&&a.jsx(Ys,{group:p,open:l(p),onToggle:()=>c(p),className:R("px-2 pt-1.5 pb-0.5",k>0&&"mt-3")}),l(p)&&a.jsx(re,{className:"gap-0.5",children:p.items.map(j=>a.jsx(oe,{icon:a.jsx(Zs,{icon:j.icon,badge:j.badge}),label:j.label,isActive:o(j),link:{to:j.to,params:{org:n}},className:"gap-2.5",onSelect:()=>{H("settings_nav_clicked",{section_key:j.key,group_key:p.key}),s?.()}},j.key))})]},p.key),e[7]=o,e[8]=l,e[9]=s,e[10]=n,e[11]=c,e[12]=b):b=e[12],r=i.map(b),e[0]=i,e[1]=o,e[2]=l,e[3]=s,e[4]=n,e[5]=c,e[6]=r}else r=e[6];let g;e[13]===Symbol.for("react.memo_cache_sentinel")?(g=a.jsx("div",{className:"mx-2 my-2 border-t border-border/50"}),e[13]=g):g=e[13];let m;e[14]===Symbol.for("react.memo_cache_sentinel")?(m=a.jsx("span",{className:"shrink-0",children:a.jsx(ss,{size:14})}),e[14]=m):m=e[14];let f;e[15]!==d?(f=d("settings.nav.signOut"),e[15]=d,e[16]=f):f=e[16];let u;e[17]!==f?(u=a.jsxs("div",{className:"mt-auto flex flex-col",children:[g,a.jsx(re,{className:"gap-0.5",children:a.jsx(oe,{icon:m,label:f,className:"gap-2.5",onSelect:et})})]}),e[17]=f,e[18]=u):u=e[18];let h;return e[19]!==r||e[20]!==u?(h=a.jsxs(a.Fragment,{children:[r,u]}),e[19]=r,e[20]=u,e[21]=h):h=e[21],h}function et(){H("signed_out",{source:"settings_sidebar"}),Ze(),M.signOut()}function st(t){const e=v.c(8),{onNavigate:s}=t,d=P(),{org:i}=le();let n;e[0]!==d?(n=d("settings.nav.backToHome"),e[0]=d,e[1]=n):n=e[1];let o;e[2]!==i.slug?(o={to:"/$org/home",params:{org:i.slug}},e[2]=i.slug,e[3]=o):o=e[3];let l;return e[4]!==s||e[5]!==n||e[6]!==o?(l=a.jsx(Us,{label:n,link:o,onSelect:s}),e[4]=s,e[5]=n,e[6]=o,e[7]=l):l=e[7],l}function tt(){const t=v.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=a.jsx("div",{className:"px-4 pb-1",children:a.jsxs("span",{className:"text-xs text-muted-foreground/50",children:["v","4.342.0"]})}),t[0]=e):e=t[0],e}function Ot(t){const e=v.c(9),{onClose:s}=t;let d,i,n;e[0]!==s?(d=a.jsx(Es,{onClose:s}),i=a.jsx(st,{onNavigate:s}),n=a.jsx(Xs,{onNavigate:s}),e[0]=s,e[1]=d,e[2]=i,e[3]=n):(d=e[1],i=e[2],n=e[3]);let o;e[4]===Symbol.for("react.memo_cache_sentinel")?(o=a.jsx(tt,{}),e[4]=o):o=e[4];let l;return e[5]!==d||e[6]!==i||e[7]!==n?(l=a.jsx(Qs,{sheet:!0,header:d,back:i,body:n,footer:o}),e[5]=d,e[6]=i,e[7]=n,e[8]=l):l=e[8],l}export{oe as S,Rs as a,Pt as b,Qs as c,tt as d,Xs as e,st as f,Es as g,Us as h,Ot as i,ce as u};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-BhanBcMZ.js","assets/index-D4kNOXaZ.js","assets/index-DcKMMVy0.css","assets/Tool02-ZSnZaFRo.js","assets/CheckCircle-iXIgUTA-.js","assets/Settings02-CKXbgw8U.js","assets/use-mcp-client-Cbk4voJc.js","assets/constants-Daqiz8AS.js","assets/auth-CxhEBvSD.js","assets/useInfiniteQuery-DSvoY9-3.js","assets/infiniteQueryObserver-B38m7S1G.js","assets/badge-DClgT3z5.js","assets/input-BsyUUAk4.js","assets/dropdown-menu-BR4sIedJ.js","assets/Check-BkEv2-AF.js","assets/ChevronRight-C_hjJcoX.js","assets/DotsVertical-B5wvzS7T.js","assets/table-DQ_f5Jxx.js","assets/toggle-group-C3HhsNfW.js","assets/use-view-mode-CUPdu-w0.js","assets/Globe01-gtTldyUB.js","assets/SearchMd-CcTNnV0J.js","assets/dialog-C0hdN6I-.js","assets/AlertCircle-LT5wJDIs.js","assets/Download01-C369braV.js","assets/Upload01-HslS21FF.js","assets/metadata-dUsYcpuu.js","assets/alert-dialog-CUqdr4tM.js","assets/Trash01-BHApmYNt.js","assets/label-CFXRIjUC.js","assets/select-BYhBdU6E.js","assets/ChevronUp-BLWk2PLk.js","assets/switch-CtYBSzxu.js","assets/textarea-B5JA25wz.js","assets/ArrowLeft-DXZudPup.js","assets/XCircle-CXkUSyNu.js","assets/Link01-DSkW-LIC.js","assets/safe-image-url-D5z803Ot.js","assets/checkbox-CaayVzrM.js","assets/Eye-BgzuNcZt.js","assets/LinkExternal01-DQh4pxje.js","assets/use-infinite-scroll-CSNKbP7x.js","assets/use-copy-Bq7EVeAQ.js","assets/Copy01-CZcJJybg.js","assets/Key01-C-AW9sc8.js","assets/Plus-DW9MHDo6.js","assets/mcp-oauth-BFc24jEi.js","assets/Play-d3AOy9jq.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{c as n,d as c,f as m,j as t,h as f,r as l,bl as p}from"./index-D4kNOXaZ.js";import{R as u}from"./require-capability-B6JXksIq.js";import"./access-gate-BH9y-qz3.js";import"./capability-load-error-DR85ybev.js";const g=l.lazy(()=>p(()=>import("./registry-layout-BhanBcMZ.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47])));function h(){const e=n.c(5),i=c();let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={from:"/shell/$org"},e[0]=s):s=e[0];const{org:o}=m(s);let r;e[1]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"h-full flex items-center justify-center",children:t.jsx(f,{className:"size-5 text-muted-foreground"})}),e[1]=r):r=e[1];let a;return e[2]!==i||e[3]!==o?(a=t.jsx(u,{capability:"registry:manage",area:"the registry",children:t.jsx(l.Suspense,{fallback:r,children:t.jsx(g,{onBack:()=>i({to:"/$org/settings/store",params:{org:o}})})})}),e[2]=i,e[3]=o,e[4]=a):a=e[4],a}export{h as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as se,j as s,dt as ye,b as ue,r as ae,B as te,l as je,t as ce,b4 as be}from"./index-D4kNOXaZ.js";import{i as ge}from"./GitBranch01-D9Dvu6be.js";import{s as xe}from"./Plus-DW9MHDo6.js";import{c as Re,d as ve,b as Se,f as De,g as Ne,e as _e,a as Ce,A as Pe}from"./alert-dialog-CUqdr4tM.js";import{d as Ae,h as ke,c as we,e as ze,b as Ee,D as Oe}from"./dialog-C0hdN6I-.js";import{I as Ie}from"./input-BsyUUAk4.js";import{u as $e,G as Fe,R as Te}from"./repository-picker-BaONTy9t.js";import{a as Ge,d as Be,h as He,t as Le}from"./cards-BCs26pYE.js";import{R as qe}from"./require-capability-B6JXksIq.js";import"./ChevronRight-C_hjJcoX.js";import"./label-CFXRIjUC.js";import"./github-icon-CKZchUfd.js";import"./useInfiniteQuery-DSvoY9-3.js";import"./infiniteQueryObserver-B38m7S1G.js";import"./ArrowLeft-DXZudPup.js";import"./collection-search-CCVQiNWE.js";import"./SearchMd-CcTNnV0J.js";import"./use-debounced-value-CIeGTz76.js";import"./folder-icon-Cx67WJC7.js";import"./Eye-BgzuNcZt.js";import"./DotsVertical-B5wvzS7T.js";import"./Download01-C369braV.js";import"./Share07-BXBxd0R_.js";import"./Globe01-gtTldyUB.js";import"./Key01-C-AW9sc8.js";import"./Palette-DB1B3_50.js";import"./Trash01-BHApmYNt.js";import"./Zap-DQmif984.js";import"./dropdown-menu-BR4sIedJ.js";import"./Check-BkEv2-AF.js";import"./file-type-icon-BOyoD7ig.js";import"./access-gate-BH9y-qz3.js";import"./capability-load-error-DR85ybev.js";function Ve(e){return e.toLowerCase().replace(/[^a-z0-9_.-]+/g,"-").replace(/^[.-]+|[.-]+$/g,"").slice(0,128)}function Je(e,t){return e.lastSyncError?{label:e.lastSyncError,error:!0}:e.lastSyncedAt?{label:t("library.syncedRepos.syncedAgo",{ago:Le(e.lastSyncedAt)}),error:!1}:{label:t("library.syncedRepos.waitingFirstSync"),error:!1}}function Ke(e){const t=se.c(38),{config:i,onRemove:l}=e,o=ue();let u;t[0]!==i||t[1]!==o?(u=Je(i,o),t[0]=i,t[1]=o,t[2]=u):u=t[2];const m=u,r=$e();let f;t[3]!==i.repositoryId||t[4]!==r.data?(f=r.data?.find(C=>C.id===i.repositoryId),t[3]=i.repositoryId,t[4]=r.data,t[5]=f):f=t[5];const n=f;let g;t[6]!==n?.provider?(g=s.jsx("div",{className:"size-9 rounded-md bg-muted flex items-center justify-center shrink-0",children:n?.provider==="gitlab"?s.jsx(Fe,{size:16,className:"text-muted-foreground"}):s.jsx(ge,{size:16,className:"text-muted-foreground"})}),t[6]=n?.provider,t[7]=g):g=t[7];const c=n?.path??`${i.repoOwner}/${i.repoName}`;let d;t[8]!==c?(d=s.jsx("span",{className:"font-medium text-sm truncate",children:c}),t[8]=c,t[9]=d):d=t[9];let p;t[10]!==i.ref?(p=s.jsxs("span",{className:"text-xs text-muted-foreground shrink-0",children:["@",i.ref]}),t[10]=i.ref,t[11]=p):p=t[11];let S;t[12]!==d||t[13]!==p?(S=s.jsxs("div",{className:"flex items-center gap-2",children:[d,p]}),t[12]=d,t[13]=p,t[14]=S):S=t[14];const _=m.error?"text-destructive":"text-muted-foreground";let D;t[15]!==_?(D=je("text-xs mt-0.5 truncate",_),t[15]=_,t[16]=D):D=t[16];let b;t[17]!==i.volume||t[18]!==o?(b=o("settings.syncedRepos.rowSubtitle",{volume:i.volume}),t[17]=i.volume,t[18]=o,t[19]=b):b=t[19];let R;t[20]!==m.label||t[21]!==b||t[22]!==D?(R=s.jsxs("p",{className:D,children:[b," ·"," ",m.label]}),t[20]=m.label,t[21]=b,t[22]=D,t[23]=R):R=t[23];let x;t[24]!==R||t[25]!==S?(x=s.jsxs("div",{className:"min-w-0",children:[S,R]}),t[24]=R,t[25]=S,t[26]=x):x=t[26];let h;t[27]!==x||t[28]!==g?(h=s.jsxs("div",{className:"flex items-start gap-3 min-w-0",children:[g,x]}),t[27]=x,t[28]=g,t[29]=h):h=t[29];let y;t[30]!==o?(y=o("settings.syncedRepos.remove"),t[30]=o,t[31]=y):y=t[31];let j;t[32]!==l||t[33]!==y?(j=s.jsx(te,{variant:"outline",size:"sm",onClick:l,children:y}),t[32]=l,t[33]=y,t[34]=j):j=t[34];let N;return t[35]!==h||t[36]!==j?(N=s.jsxs("div",{className:"flex items-center justify-between gap-4 py-3 border-b border-border/60 last:border-b-0",children:[h,j]}),t[35]=h,t[36]=j,t[37]=N):N=t[37],N}function Me(e){const t=se.c(21),{onAdd:i}=e,l=ue();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("div",{className:"size-12 rounded-full bg-muted flex items-center justify-center",children:s.jsx(ge,{size:20,className:"text-muted-foreground"})}),t[0]=o):o=t[0];let u;t[1]!==l?(u=l("settings.syncedRepos.emptyTitle"),t[1]=l,t[2]=u):u=t[2];let m;t[3]!==u?(m=s.jsx("p",{className:"font-medium text-sm",children:u}),t[3]=u,t[4]=m):m=t[4];let r;t[5]!==l?(r=l("settings.syncedRepos.emptyDescription"),t[5]=l,t[6]=r):r=t[6];let f;t[7]!==r?(f=s.jsx("p",{className:"text-xs text-muted-foreground mt-1 max-w-sm",children:r}),t[7]=r,t[8]=f):f=t[8];let n;t[9]!==m||t[10]!==f?(n=s.jsxs("div",{children:[m,f]}),t[9]=m,t[10]=f,t[11]=n):n=t[11];let g;t[12]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(xe,{size:14}),t[12]=g):g=t[12];let c;t[13]!==l?(c=l("settings.syncedRepos.addRepo"),t[13]=l,t[14]=c):c=t[14];let d;t[15]!==i||t[16]!==c?(d=s.jsxs(te,{onClick:i,size:"sm",className:"mt-2",children:[g,c]}),t[15]=i,t[16]=c,t[17]=d):d=t[17];let p;return t[18]!==n||t[19]!==d?(p=s.jsxs("div",{className:"rounded-2xl border border-dashed border-border/60 p-10 flex flex-col items-center justify-center text-center gap-3",children:[o,n,d]}),t[18]=n,t[19]=d,t[20]=p):p=t[20],p}function Qe(){const e=se.c(107),t=ue(),i=Ge(),l=Be(),o=He(),[u,m]=ae.useState(!1),[r,f]=ae.useState(null),[n,g]=ae.useState(""),[c,d]=ae.useState(null);let p;e[0]!==l||e[1]!==r||e[2]!==t||e[3]!==n?(p=function(){!r||!n.trim()||l.mutate({repositoryId:r.id,volume:n.trim()},{onSuccess:v=>{f(null),ce.success(t("settings.syncedRepos.created",{volume:v.volume}))},onError:v=>{ce.error(v instanceof Error?v.message:t("settings.syncedRepos.failed"))}})},e[0]=l,e[1]=r,e[2]=t,e[3]=n,e[4]=p):p=e[4];const S=p;let _;e[5]!==c||e[6]!==o||e[7]!==t?(_=function(){c&&o.mutate(c.id,{onSuccess:()=>ce.success(t("settings.syncedRepos.removed")),onError:v=>ce.error(v instanceof Error?v.message:t("settings.syncedRepos.failed")),onSettled:()=>d(null)})},e[5]=c,e[6]=o,e[7]=t,e[8]=_):_=e[8];const D=_;if(i.isPending){let a;return e[9]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(be,{className:"h-32 w-full"}),e[9]=a):a=e[9],a}let b;e[10]!==i.data?(b=i.data??[],e[10]=i.data,e[11]=b):b=e[11];const R=b;let x;e[12]!==t?(x=t("settings.syncedRepos.pageDescription"),e[12]=t,e[13]=x):x=e[13];let h;e[14]!==x?(h=s.jsx("p",{className:"text-sm text-muted-foreground",children:x}),e[14]=x,e[15]=h):h=e[15];let y;e[16]!==R||e[17]!==t?(y=R.length===0?s.jsx(Me,{onAdd:()=>m(!0)}):s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"flex items-center justify-end",children:s.jsxs(te,{onClick:()=>m(!0),size:"sm",children:[s.jsx(xe,{size:14}),t("settings.syncedRepos.addRepo")]})}),s.jsx("section",{className:"rounded-2xl border border-border/60 bg-background px-5 py-2",children:R.map(a=>s.jsx(Ke,{config:a,onRemove:()=>d(a)},a.id))})]}),e[16]=R,e[17]=t,e[18]=y):y=e[18];let j;e[19]!==t?(j=t("settings.syncedRepos.pickerTitle"),e[19]=t,e[20]=j):j=e[20];let N;e[21]===Symbol.for("react.memo_cache_sentinel")?(N=a=>{const{repository:v}=a;m(!1),f(v),g(Ve(v.path.split("/").at(-1)??v.path))},e[21]=N):N=e[21];let C;e[22]!==u||e[23]!==j?(C=s.jsx(Te,{open:u,onOpenChange:m,title:j,onPicked:N}),e[22]=u,e[23]=j,e[24]=C):C=e[24];const de=r!==null;let le;e[25]===Symbol.for("react.memo_cache_sentinel")?(le=a=>{a||f(null)},e[25]=le):le=e[25];let P;e[26]!==t?(P=t("settings.syncedRepos.nameDialogTitle"),e[26]=t,e[27]=P):P=e[27];let A;e[28]!==P?(A=s.jsx(Ae,{children:P}),e[28]=P,e[29]=A):A=e[29];const me=r?r.path:"";let k;e[30]!==t||e[31]!==me?(k=t("settings.syncedRepos.nameDialogDescription",{repo:me}),e[30]=t,e[31]=me,e[32]=k):k=e[32];let w;e[33]!==k?(w=s.jsx(ke,{children:k}),e[33]=k,e[34]=w):w=e[34];let z;e[35]!==A||e[36]!==w?(z=s.jsxs(we,{children:[A,w]}),e[35]=A,e[36]=w,e[37]=z):z=e[37];let ie;e[38]===Symbol.for("react.memo_cache_sentinel")?(ie=a=>g(a.target.value),e[38]=ie):ie=e[38];let E;e[39]!==t?(E=t("settings.syncedRepos.namePlaceholder"),e[39]=t,e[40]=E):E=e[40];let O;e[41]!==E||e[42]!==n?(O=s.jsx(Ie,{value:n,onChange:ie,placeholder:E,autoFocus:!0}),e[41]=E,e[42]=n,e[43]=O):O=e[43];let ne;e[44]===Symbol.for("react.memo_cache_sentinel")?(ne=()=>f(null),e[44]=ne):ne=e[44];const he=l.isPending;let I;e[45]!==t?(I=t("settings.syncedRepos.cancel"),e[45]=t,e[46]=I):I=e[46];let $;e[47]!==l.isPending||e[48]!==I?($=s.jsx(te,{variant:"outline",onClick:ne,disabled:he,children:I}),e[47]=l.isPending,e[48]=I,e[49]=$):$=e[49];let F;e[50]!==l.isPending||e[51]!==n?(F=!n.trim()||l.isPending,e[50]=l.isPending,e[51]=n,e[52]=F):F=e[52];let T;e[53]!==l.isPending||e[54]!==t?(T=l.isPending?t("settings.syncedRepos.creating"):t("settings.syncedRepos.create"),e[53]=l.isPending,e[54]=t,e[55]=T):T=e[55];let G;e[56]!==S||e[57]!==F||e[58]!==T?(G=s.jsx(te,{disabled:F,onClick:S,children:T}),e[56]=S,e[57]=F,e[58]=T,e[59]=G):G=e[59];let B;e[60]!==$||e[61]!==G?(B=s.jsxs(ze,{children:[$,G]}),e[60]=$,e[61]=G,e[62]=B):B=e[62];let H;e[63]!==z||e[64]!==O||e[65]!==B?(H=s.jsxs(Ee,{className:"sm:max-w-sm",children:[z,O,B]}),e[63]=z,e[64]=O,e[65]=B,e[66]=H):H=e[66];let L;e[67]!==H||e[68]!==de?(L=s.jsx(Oe,{open:de,onOpenChange:le,children:H}),e[67]=H,e[68]=de,e[69]=L):L=e[69];const fe=c!==null;let oe;e[70]===Symbol.for("react.memo_cache_sentinel")?(oe=a=>{a||d(null)},e[70]=oe):oe=e[70];const pe=c?.volume??"";let q;e[71]!==t||e[72]!==pe?(q=t("settings.syncedRepos.removeTitle",{volume:pe}),e[71]=t,e[72]=pe,e[73]=q):q=e[73];let V;e[74]!==q?(V=s.jsx(Re,{children:q}),e[74]=q,e[75]=V):V=e[75];let J;e[76]!==t?(J=t("settings.syncedRepos.removeDescription"),e[76]=t,e[77]=J):J=e[77];let K;e[78]!==J?(K=s.jsx(ve,{children:J}),e[78]=J,e[79]=K):K=e[79];let M;e[80]!==V||e[81]!==K?(M=s.jsxs(Se,{children:[V,K]}),e[80]=V,e[81]=K,e[82]=M):M=e[82];let Q;e[83]!==t?(Q=t("settings.syncedRepos.cancel"),e[83]=t,e[84]=Q):Q=e[84];let U;e[85]!==Q?(U=s.jsx(De,{children:Q}),e[85]=Q,e[86]=U):U=e[86];let W;e[87]!==t?(W=t("settings.syncedRepos.remove"),e[87]=t,e[88]=W):W=e[88];let X;e[89]!==D||e[90]!==W?(X=s.jsx(Ne,{onClick:D,children:W}),e[89]=D,e[90]=W,e[91]=X):X=e[91];let Y;e[92]!==U||e[93]!==X?(Y=s.jsxs(_e,{children:[U,X]}),e[92]=U,e[93]=X,e[94]=Y):Y=e[94];let Z;e[95]!==M||e[96]!==Y?(Z=s.jsxs(Ce,{children:[M,Y]}),e[95]=M,e[96]=Y,e[97]=Z):Z=e[97];let ee;e[98]!==fe||e[99]!==Z?(ee=s.jsx(Pe,{open:fe,onOpenChange:oe,children:Z}),e[98]=fe,e[99]=Z,e[100]=ee):ee=e[100];let re;return e[101]!==L||e[102]!==h||e[103]!==ee||e[104]!==y||e[105]!==C?(re=s.jsxs(s.Fragment,{children:[h,y,C,L,ee]}),e[101]=L,e[102]=h,e[103]=ee,e[104]=y,e[105]=C,e[106]=re):re=e[106],re}function Ue(){const e=se.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(ye,{group:"storage",children:s.jsx(Qe,{})}),e[0]=t):t=e[0],t}function At(){const e=se.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(qe,{capability:"file-configs:manage",area:"files",children:s.jsx(Ue,{})}),e[0]=t):t=e[0],t}export{At as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as u}from"./infiniteQueryObserver-B38m7S1G.js";import{fc as i}from"./index-D4kNOXaZ.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as s}from"./infiniteQueryObserver-B38m7S1G.js";import{fc as u,bT as n}from"./index-D4kNOXaZ.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
|