decocms 4.50.0 → 4.51.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-LLoHSm66.js → AlertCircle-Ct7weZuE.js} +1 -1
- package/dist/client/assets/ArrowUp-CLqVzt5Z.js +1 -0
- package/dist/client/assets/{ArrowUpRight-BjGLdnBk.js → ArrowUpRight-gaoM5S0k.js} +1 -1
- package/dist/client/assets/{Check-CyDp0HHq.js → Check-C6rOtSdY.js} +1 -1
- package/dist/client/assets/{CheckCircle-BsNta-Ep.js → CheckCircle-CREoH7p2.js} +1 -1
- package/dist/client/assets/{ChevronDown-XDfXJ8c0.js → ChevronDown-BfrTp1Ch.js} +1 -1
- package/dist/client/assets/{ChevronRight-B94RwHdB.js → ChevronRight-CvPpz1Nq.js} +1 -1
- package/dist/client/assets/{ChevronUp-C4k7gPJV.js → ChevronUp-MSW-WrWs.js} +1 -1
- package/dist/client/assets/{Circle-lBEUhCw0.js → Circle-ow_NDQHR.js} +1 -1
- package/dist/client/assets/{Copy01-DYqwaYOh.js → Copy01-DDhuzJaA.js} +1 -1
- package/dist/client/assets/{DotsVertical-cUEvC4nC.js → DotsVertical-CB7QN8Ws.js} +1 -1
- package/dist/client/assets/{Eye-D2mf0D8Z.js → Eye-C1XDNiGB.js} +1 -1
- package/dist/client/assets/{FilterLines-BUh4z1rJ.js → FilterLines-eP80xxCy.js} +1 -1
- package/dist/client/assets/{Globe01-DQWcSqrm.js → Globe01-3_GHOe2E.js} +1 -1
- package/dist/client/assets/{Globe04-C3OwaDqP.js → Globe04-BAF3P1k9.js} +1 -1
- package/dist/client/assets/{HardDrive-mwKZuWq1.js → HardDrive-DW6eIDxP.js} +1 -1
- package/dist/client/assets/{Key01-nwRWTzli.js → Key01-BVXgUn29.js} +1 -1
- package/dist/client/assets/{LayoutLeft-3gTwXMjX.js → LayoutLeft-DKGWBMNA.js} +1 -1
- package/dist/client/assets/{LinkExternal01-DGD0-cUX.js → LinkExternal01-BM0S_VFU.js} +1 -1
- package/dist/client/assets/{List-DvLwT2sF.js → List-vHTogdj7.js} +1 -1
- package/dist/client/assets/Loading02-Bt_dLUWn.js +1 -0
- package/dist/client/assets/{Monitor01-Dcv5mQJu.js → Monitor01-2j67L_aU.js} +1 -1
- package/dist/client/assets/{Palette-_1E1A8wi.js → Palette-D5rmfc3a.js} +1 -1
- package/dist/client/assets/{Play-CSN3IBqZ.js → Play-Bv09TV2w.js} +1 -1
- package/dist/client/assets/{Plus-Bya9qA7w.js → Plus-D9m58hN2.js} +1 -1
- package/dist/client/assets/{SearchLg-DG8S0kSO.js → SearchLg-6CR82X0W.js} +1 -1
- package/dist/client/assets/{SearchMd-BvfQkVfc.js → SearchMd-BfevlctH.js} +1 -1
- package/dist/client/assets/{Settings02-D43Hv2qD.js → Settings02-f8loRSef.js} +1 -1
- package/dist/client/assets/{Shield01-FpkCBVew.js → Shield01-DPzSiB-T.js} +1 -1
- package/dist/client/assets/{Star01-B50-Zz32.js → Star01-DoabU7Hn.js} +1 -1
- package/dist/client/assets/{Stars01-DDFSzCqN.js → Stars01-Q9LxQc27.js} +1 -1
- package/dist/client/assets/{Stars02-EYiMdQNh.js → Stars02-DaEgHmQI.js} +1 -1
- package/dist/client/assets/{Sun-B6_FjvE1.js → Sun-CclxevtX.js} +1 -1
- package/dist/client/assets/SwitchHorizontal01-sGYV2dsM.js +1 -0
- package/dist/client/assets/{Tool01-BXbLpzEO.js → Tool01-Bfw6sadd.js} +1 -1
- package/dist/client/assets/{Trash01-GK3td3R2.js → Trash01-TYv08n93.js} +1 -1
- package/dist/client/assets/{Upload01-C2z_o2K2.js → Upload01-bdtJr5BI.js} +1 -1
- package/dist/client/assets/{User01-C8wnkoj-.js → User01-BZEdjS8N.js} +1 -1
- package/dist/client/assets/{Users01-KFvngVMF.js → Users01-D0TsDHjS.js} +1 -1
- package/dist/client/assets/{Users03-CUk17u5x.js → Users03-B4feTEaY.js} +1 -1
- package/dist/client/assets/{X-BQ5WLsJO.js → X-CJDTMZdu.js} +1 -1
- package/dist/client/assets/{XCircle-DT7o53Jo.js → XCircle-F9-2oAiq.js} +1 -1
- package/dist/client/assets/{XClose-NAXlP6pU.js → XClose-BKoSgWfP.js} +1 -1
- package/dist/client/assets/{Zap-DnLTz7zL.js → Zap-GCvYK6cT.js} +1 -1
- package/dist/client/assets/{ZapSquare-BIlVCAPP.js → ZapSquare-BBu4b6r_.js} +1 -1
- package/dist/client/assets/{ZoomOut-DV7icxu5.js → ZoomOut-ox9YzR1a.js} +1 -1
- package/dist/client/assets/access-gate-Yfi4ekhF.js +1 -0
- package/dist/client/assets/{add-section-modal-Dcy-j_ej.js → add-section-modal-d8gKomF9.js} +1 -1
- package/dist/client/assets/admin-fetch-CCSvjTk1.js +1 -0
- package/dist/client/assets/agent-capabilities-BrHWT2H6.js +1 -0
- package/dist/client/assets/agent-icon-C2ANw4X5.js +1 -0
- package/dist/client/assets/agents-list-DcAZyk1U.js +1 -0
- package/dist/client/assets/ai-providers-CLLgcR35.js +1 -0
- package/dist/client/assets/{alert-NMrYI6J1.js → alert-BLw4eidn.js} +1 -1
- package/dist/client/assets/{alert-dialog-zzII-GLz.js → alert-dialog-BglRhrg0.js} +3 -3
- package/dist/client/assets/app-editor-Be9j6Psz.js +1 -0
- package/dist/client/assets/{auth-GNn2tq-H.js → auth-DKsARQye.js} +1 -1
- package/dist/client/assets/{auth-catchall-CGcrsXBA.js → auth-catchall-DwgEjeTg.js} +1 -1
- package/dist/client/assets/{auth-entry-Dqw51exT.js → auth-entry-CQlhwp6I.js} +1 -1
- package/dist/client/assets/{auth-split-layout-C1eMIc9O.js → auth-split-layout-CZ_OCZxj.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-L6dbdQ7o.js → authenticate-and-persist-oauth-DWDcBYz0.js} +1 -1
- package/dist/client/assets/{automation-list-row-fCAMQYn8.js → automation-list-row-Bq-loDW7.js} +1 -1
- package/dist/client/assets/{automation-runs-Dn4JyN79.js → automation-runs-DoqJWooa.js} +1 -1
- package/dist/client/assets/automations-C-RHUi9C.js +1 -0
- package/dist/client/assets/{autosend-Ct6Ky0VH.js → autosend-CYyCczkd.js} +1 -1
- package/dist/client/assets/{avatar-kqh_R_sO.js → avatar-BvMZq_TI.js} +1 -1
- package/dist/client/assets/{badge-BIeSlTFN.js → badge-7J4kgEzC.js} +1 -1
- package/dist/client/assets/{block-document-DtK0em8F.js → block-document-CEQDI6GW.js} +1 -1
- package/dist/client/assets/brand-context-B-G2N5Cc.js +1 -0
- package/dist/client/assets/{breadcrumb-CC1t3dB8.js → breadcrumb-DX6VmR2b.js} +1 -1
- package/dist/client/assets/{buckets-Kas60ugl.js → buckets-BnVc6A5T.js} +1 -1
- package/dist/client/assets/bulk-category-panel-dwWBDZdx.js +1 -0
- package/dist/client/assets/{calendar-CmKLRVVf.js → calendar-DlspiiCF.js} +1 -1
- package/dist/client/assets/capability-load-error-BM3-quVD.js +1 -0
- package/dist/client/assets/{card-BDVrEmLp.js → card-DJEMjLyN.js} +1 -1
- package/dist/client/assets/category-editor-D49qQ_5A.js +1 -0
- package/dist/client/assets/{chat-context-BRtcUB0n.js → chat-context-DWWQ8fi_.js} +1 -1
- package/dist/client/assets/{checkbox-VOodo84Q.js → checkbox-BW3fb6zN.js} +1 -1
- package/dist/client/assets/{cli-auth-success-Bz0CFpow.js → cli-auth-success-CYZtnqJM.js} +1 -1
- package/dist/client/assets/collection-detail-CuUENpdt.js +1 -0
- package/dist/client/assets/collection-display-button-CwpKpIcC.js +1 -0
- package/dist/client/assets/{collection-search-DYDYxnUQ.js → collection-search-C_SgZaX4.js} +1 -1
- package/dist/client/assets/collection-table-wrapper-CtK9vkZI.js +1 -0
- package/dist/client/assets/{collection-tabs-AuL-kePL.js → collection-tabs-DcJTaWg5.js} +1 -1
- package/dist/client/assets/{command-Cixc9wEL.js → command-BK76iADW.js} +1 -1
- package/dist/client/assets/commerce-onboarding-CacbF47W.js +1 -0
- package/dist/client/assets/connect-desktop-dialog-BVhGL3hA.js +1 -0
- package/dist/client/assets/connection-card-BZCmFzT0.js +1 -0
- package/dist/client/assets/connection-detail-B8lH7kfR.js +1 -0
- package/dist/client/assets/{connection-form-helpers-RrOycYCJ.js → connection-form-helpers-DsmizTyk.js} +1 -1
- package/dist/client/assets/connections-DaqgHt93.js +1 -0
- package/dist/client/assets/{decopilot-sse-pool-BRzo80Bm.js → decopilot-sse-pool-CQt0Qt9t.js} +1 -1
- package/dist/client/assets/{dialog-Cm_JTJHQ.js → dialog-VQoq6ED0.js} +1 -1
- package/dist/client/assets/domain-settings-DQrCzdxW.js +1 -0
- package/dist/client/assets/{drawer-DXXRpEpp.js → drawer-BiUeA1xK.js} +1 -1
- package/dist/client/assets/{dropdown-menu-B9mY8yAx.js → dropdown-menu-Q9JsQJsN.js} +1 -1
- package/dist/client/assets/{empty-state-Byg9A0S5.js → empty-state-Bx2oDYyE.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CPpWEnHj.js → extract-connection-data-CBaWfjW4.js} +1 -1
- package/dist/client/assets/file-explorer-NjBXraWZ.js +2 -0
- package/dist/client/assets/{file-type-icon-D-OAQV03.js → file-type-icon-Byym_Yq8.js} +1 -1
- package/dist/client/assets/{files-B4ht4ofh.js → files-Bzx4vIyM.js} +1 -1
- package/dist/client/assets/{form-zzanm0Lq.js → form-Ck57FY_v.js} +1 -1
- package/dist/client/assets/format-time-BnbuEtat.js +1 -0
- package/dist/client/assets/general-DTNBl6eM.js +1 -0
- package/dist/client/assets/github-repo-picker-Cv4fHpMw.js +1 -0
- package/dist/client/assets/{hooks-_AjVT69_.js → hooks-BCy5e9GO.js} +5 -5
- package/dist/client/assets/{index-CTF3Zt5P.js → index-2V8OIw2c.js} +1 -1
- package/dist/client/assets/{index-CAREMFyV.js → index-BNkKptlK.js} +1 -1
- package/dist/client/assets/{index-CcwE9LIu.js → index-BkSsc9os.js} +1 -1
- package/dist/client/assets/index-BxDQDgZD.js +1 -0
- package/dist/client/assets/{index-CRyiDc_E.js → index-CA5Ck5O8.js} +3 -3
- package/dist/client/assets/{index-Df52FR_E.js → index-CP0NJqZH.js} +6 -6
- package/dist/client/assets/{index-BF0lZnTX.js → index-ChTrjmId.js} +4 -4
- package/dist/client/assets/index-Cz1AR3Zz.js +1 -0
- package/dist/client/assets/{index-Dzsixt0K.js → index-D-yF_uFs.js} +1 -1
- package/dist/client/assets/index-D1Oy1H9B.js +1 -0
- package/dist/client/assets/{index-Ds4Whp7g.js → index-D544QCka.js} +1 -1
- package/dist/client/assets/{index-BQha_puu.js → index-DAFO_OTU.js} +14 -14
- package/dist/client/assets/{index-BEXxcuG9.js → index-RzCbz7G4.js} +28 -28
- package/dist/client/assets/index-ZbSNKPKh.css +1 -0
- package/dist/client/assets/{index-BzAV5OLi.js → index-iSSICeOA.js} +1 -1
- package/dist/client/assets/{index-redirect-DxwkWHHM.js → index-redirect-BTf9IrPi.js} +1 -1
- package/dist/client/assets/{input-DOlqYG5a.js → input-CmS4IhfL.js} +1 -1
- package/dist/client/assets/{integration-icon-CpH20lR5.js → integration-icon-B64oCP0F.js} +1 -1
- package/dist/client/assets/invite-member-dialog-BoCPYFUb.js +3 -0
- package/dist/client/assets/{label-T5OklXhW.js → label-BRuRKPr0.js} +1 -1
- package/dist/client/assets/layout-CT250kMb.js +1 -0
- package/dist/client/assets/{login-BjUYS2gE.js → login-CldG7DZa.js} +1 -1
- package/dist/client/assets/{mcp-oauth-2FfcUYbt.js → mcp-oauth-C23-dwpq.js} +1 -1
- package/dist/client/assets/members-CNrOGJa0.js +1 -0
- package/dist/client/assets/{monaco-editor-B0B3S1UH.js → monaco-editor-DR7220lx.js} +2 -2
- package/dist/client/assets/{monitoring-stats-row-D4UqaZfc.js → monitoring-stats-row-BZL3Rvz8.js} +1 -1
- package/dist/client/assets/{oauth-callback-DaHU35EG.js → oauth-callback-DcfZfqGm.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-BgNzGCxS.js → oauth-callback-ai-provider-Ce9G5qtJ.js} +1 -1
- package/dist/client/assets/{onboarding-BO0FAzn-.js → onboarding-B25kyk06.js} +1 -1
- package/dist/client/assets/org-install-Bji_kE_8.js +1 -0
- package/dist/client/assets/{org-layout-DE1jB_dg.js → org-layout-CKR3WJzm.js} +1 -1
- package/dist/client/assets/{organization-choice-C4tHSipw.js → organization-choice-DTClrrnJ.js} +1 -1
- package/dist/client/assets/orgs-BwjlPx55.js +1 -0
- package/dist/client/assets/page-seo-sheet-BgXbK0SD.js +1 -0
- package/dist/client/assets/{popover-gaw1l3iF.js → popover-DOYlXTug.js} +1 -1
- package/dist/client/assets/post-editor-C_RBUxWZ.js +1 -0
- package/dist/client/assets/{primitives-CeZhQIsS.js → primitives-h6UMy2ac.js} +1 -1
- package/dist/client/assets/{profile-B0IQdA0A.js → profile-BeG5MWeA.js} +1 -1
- package/dist/client/assets/project-app-view-CJsN01Kq.js +1 -0
- package/dist/client/assets/record-editor-Cxnw_s7-.js +1 -0
- package/dist/client/assets/registry-CO3wS9en.js +2 -0
- package/dist/client/assets/{registry-layout-BMfOeqCW.js → registry-layout-B3NcP7G9.js} +1 -1
- package/dist/client/assets/{require-capability-BFcZEdaS.js → require-capability-BwJAyhw_.js} +1 -1
- package/dist/client/assets/{required-auth-layout-U3sz_fBb.js → required-auth-layout-BnUL76ZK.js} +1 -1
- package/dist/client/assets/{reset-password-BakBFzDW.js → reset-password-DXMG8bNT.js} +1 -1
- package/dist/client/assets/roles-Cr24Ru3H.js +1 -0
- package/dist/client/assets/{search-input-BnVx2RlI.js → search-input-Cvhmar4S.js} +1 -1
- package/dist/client/assets/{secrets-DJfg04nj.js → secrets-C_rz33jP.js} +1 -1
- package/dist/client/assets/{sections-editor-QRCx35k3.js → sections-editor-DB_WyCzE.js} +2 -2
- package/dist/client/assets/{select-DKTr-Z9b.js → select-cLkB0xx3.js} +1 -1
- package/dist/client/assets/{select-model-BgppBnWo.js → select-model-C6Zl96g0.js} +2 -2
- package/dist/client/assets/seo-editor-CKENU8Ce.js +1 -0
- package/dist/client/assets/{seo-save-Cu7NCoMs.js → seo-save-CcM551vP.js} +1 -1
- package/dist/client/assets/settings-layout-PBMPJvHi.js +1 -0
- package/dist/client/assets/{settings-section-DWX2rUfA.js → settings-section-B5s6i1AE.js} +1 -1
- package/dist/client/assets/{shell-controls-L-vKBQgs.js → shell-controls-DFx9R0D_.js} +1 -1
- package/dist/client/assets/shell-layout-P9zH_bFZ.js +1 -0
- package/dist/client/assets/{sidebar-DSvrZgJz.js → sidebar-Dg_hr7dR.js} +1 -1
- package/dist/client/assets/{skeleton-ucOVZIBH.js → skeleton-CZJQcXjJ.js} +1 -1
- package/dist/client/assets/sso-Bn2_Oeeg.js +1 -0
- package/dist/client/assets/store-Cy3LEKoA.js +1 -0
- package/dist/client/assets/store-registry-CNggLKId.js +2 -0
- package/dist/client/assets/studio-tools-D1WvthcJ.js +1 -0
- package/dist/client/assets/{switch-D0e_Fa-2.js → switch-DvI4Ivs6.js} +1 -1
- package/dist/client/assets/{table-CtNmLy1D.js → table-Rcs576gh.js} +1 -1
- package/dist/client/assets/{tabs-6x1enb8Y.js → tabs-BYqpHacd.js} +1 -1
- package/dist/client/assets/{textarea-CmkZCAoI.js → textarea-DfbK_YWl.js} +1 -1
- package/dist/client/assets/{toggle-group-CgJXfKwl.js → toggle-group-DPk7hBEB.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-DdeBzFPT.js → toolbar-icon-button-BfscRxQb.js} +1 -1
- package/dist/client/assets/{toolbar-CMOzw9Ju.js → toolbar-spKhA4Pi.js} +1 -1
- package/dist/client/assets/tools-list-GD_nS-CN.js +1 -0
- package/dist/client/assets/{tooltip-BH7LSMRB.js → tooltip-D9y133qH.js} +1 -1
- package/dist/client/assets/{types-CNnnCskz.js → types-u5_F63vr.js} +3 -3
- package/dist/client/assets/use-ai-providers-Be4jiLlp.js +1 -0
- package/dist/client/assets/use-automations-Bj7ea45i.js +1 -0
- package/dist/client/assets/use-capability-BAJSmOR6.js +1 -0
- package/dist/client/assets/{use-clock-tick-B9a2jRAC.js → use-clock-tick-DiAMyzbm.js} +1 -1
- package/dist/client/assets/{use-collections-C-b-oWAo.js → use-collections-B0fmzWMT.js} +1 -1
- package/dist/client/assets/use-connection-CoNk61jl.js +1 -0
- package/dist/client/assets/{use-copy-kgTvYpOm.js → use-copy-CC8l0MM4.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-g9-_Rcyf.js → use-create-virtual-mcp-DHvF-qx5.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave--JR4uBNu.js → use-debounced-autosave-DVAOELdx.js} +1 -1
- package/dist/client/assets/{use-debounced-value-BvgnfNxM.js → use-debounced-value-BUPZwZxl.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-BDKklrBp.js → use-decopilot-events-CwboOo9R.js} +1 -1
- package/dist/client/assets/use-delete-connection-BRROztaa.js +1 -0
- package/dist/client/assets/use-deployment-admin-DjDR8kPw.js +1 -0
- package/dist/client/assets/use-file-configs-CiH7freP.js +1 -0
- package/dist/client/assets/{use-infinite-scroll-BGkzzb-h.js → use-infinite-scroll-CLzTjnPW.js} +1 -1
- package/dist/client/assets/use-join-requests-wFFDbE5s.js +1 -0
- package/dist/client/assets/{use-mcp-client-CI2G-Ic_.js → use-mcp-client-D3e9ceNa.js} +4 -4
- package/dist/client/assets/{use-mcp-prompts-fw4k6acS.js → use-mcp-prompts-D_i1iWd2.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-DolAuxKF.js → use-mcp-tools-eYiXWlAi.js} +1 -1
- package/dist/client/assets/use-members-oJt5povW.js +1 -0
- package/dist/client/assets/{use-mobile-pdwi54ih.js → use-mobile-BD37jY8Y.js} +1 -1
- package/dist/client/assets/use-navigate-to-agent-C_szOIys.js +1 -0
- package/dist/client/assets/use-org-auth-client-BbOBgx1F.js +1 -0
- package/dist/client/assets/{use-org-sso-D6HxuEGW.js → use-org-sso-C5MQ0Bj7.js} +1 -1
- package/dist/client/assets/use-organization-roles-PP5Ze7E4.js +1 -0
- package/dist/client/assets/use-organization-settings-BPsQDYqA.js +1 -0
- package/dist/client/assets/use-registry-connections-sVBXNIyN.js +1 -0
- package/dist/client/assets/use-secrets-C4J7nZmF.js +1 -0
- package/dist/client/assets/{use-status-sounds-pUvF1ErZ.js → use-status-sounds-BEcDaP-9.js} +1 -1
- package/dist/client/assets/{use-view-mode-6xlaoXZV.js → use-view-mode-B8ZvyTJu.js} +1 -1
- package/dist/client/assets/use-virtual-mcp-D1vadQaQ.js +1 -0
- package/dist/client/assets/useInfiniteQuery-FvBo89pe.js +1 -0
- package/dist/client/assets/useRouterState-CKoYWt4i.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-CmezFxqW.js +1 -0
- package/dist/client/assets/users-C0Qc7Jal.js +1 -0
- package/dist/client/assets/variant-calendar-BTZUazZ2.js +1 -0
- package/dist/client/assets/{view-mode-toggle-BcbRpEXT.js → view-mode-toggle-CcfquXZC.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/cli.js +481 -481
- package/dist/server/migrate.js +1 -1
- package/dist/server/server.js +314 -314
- package/package.json +1 -1
- package/dist/client/assets/Loading02-DmLZ2g2B.js +0 -1
- package/dist/client/assets/SwitchHorizontal01-D67LazcU.js +0 -1
- package/dist/client/assets/access-gate-BQbMpKdU.js +0 -1
- package/dist/client/assets/agent-capabilities-HhrysT_w.js +0 -1
- package/dist/client/assets/agent-icon-UjMOBthG.js +0 -1
- package/dist/client/assets/agents-list-SCoLgLsg.js +0 -1
- package/dist/client/assets/ai-providers-DYC1C3Be.js +0 -1
- package/dist/client/assets/app-editor-ByLKe9nE.js +0 -1
- package/dist/client/assets/automations-C0LDrJY8.js +0 -1
- package/dist/client/assets/brand-context-CiWrh9Tp.js +0 -1
- package/dist/client/assets/bulk-category-panel-BdfGBo1k.js +0 -1
- package/dist/client/assets/capability-load-error-DvRPl7Zx.js +0 -1
- package/dist/client/assets/category-editor-DAkUx56U.js +0 -1
- package/dist/client/assets/collection-detail-Ca6rG8pS.js +0 -1
- package/dist/client/assets/collection-display-button-BooDHrmY.js +0 -1
- package/dist/client/assets/collection-table-wrapper-DTPpaVou.js +0 -1
- package/dist/client/assets/commerce-onboarding-BAWnNz1n.js +0 -1
- package/dist/client/assets/connect-desktop-dialog-Bcv-omrf.js +0 -1
- package/dist/client/assets/connection-card-BzhsE4VC.js +0 -1
- package/dist/client/assets/connection-detail-D4uMQyqJ.js +0 -1
- package/dist/client/assets/connections-C-UWMZNt.js +0 -1
- package/dist/client/assets/domain-settings-D9W8BqCW.js +0 -1
- package/dist/client/assets/file-explorer-B5MVdbD4.js +0 -2
- package/dist/client/assets/format-time-Cy7tTmZp.js +0 -1
- package/dist/client/assets/general-CeL0XYkm.js +0 -1
- package/dist/client/assets/github-repo-picker-DUIwdWjX.js +0 -1
- package/dist/client/assets/index--sjDJiSu.js +0 -1
- package/dist/client/assets/index-BGfwJ8lg.js +0 -1
- package/dist/client/assets/index-DghDaK_7.js +0 -1
- package/dist/client/assets/index-b3V1CkLW.css +0 -1
- package/dist/client/assets/invite-member-dialog-BgegP8b6.js +0 -3
- package/dist/client/assets/members-Bb5Y2TPs.js +0 -1
- package/dist/client/assets/org-install-BU09O3MM.js +0 -1
- package/dist/client/assets/page-seo-sheet-DgAThAJq.js +0 -1
- package/dist/client/assets/post-editor-CVNK7-4T.js +0 -1
- package/dist/client/assets/project-app-view-DgcudGM1.js +0 -1
- package/dist/client/assets/record-editor-BHjkzJTf.js +0 -1
- package/dist/client/assets/registry-EKAQ-5zM.js +0 -2
- package/dist/client/assets/roles-Bg0Z3HSx.js +0 -1
- package/dist/client/assets/seo-editor-DMr350Rq.js +0 -1
- package/dist/client/assets/settings-layout-Be1AUfeq.js +0 -1
- package/dist/client/assets/shell-layout-DyvbooVs.js +0 -1
- package/dist/client/assets/sso-D59LXZju.js +0 -1
- package/dist/client/assets/store-P1_xWzY2.js +0 -1
- package/dist/client/assets/store-registry-BYzbgX-N.js +0 -2
- package/dist/client/assets/studio-tools-C6hAFyaI.js +0 -1
- package/dist/client/assets/tools-list-BMssVc1_.js +0 -1
- package/dist/client/assets/use-ai-providers-CH2PteE8.js +0 -1
- package/dist/client/assets/use-automations-BQg7WZhM.js +0 -1
- package/dist/client/assets/use-capability-CYD9NNKO.js +0 -1
- package/dist/client/assets/use-connection-iepx6B9p.js +0 -1
- package/dist/client/assets/use-delete-connection-CahtCNX0.js +0 -1
- package/dist/client/assets/use-file-configs-BuWEiOlF.js +0 -1
- package/dist/client/assets/use-join-requests-CxRcqwjo.js +0 -1
- package/dist/client/assets/use-members-BDmuUoGB.js +0 -1
- package/dist/client/assets/use-navigate-to-agent-23eRt0Ca.js +0 -1
- package/dist/client/assets/use-org-auth-client-En1yKL33.js +0 -1
- package/dist/client/assets/use-organization-roles-CXNao2lg.js +0 -1
- package/dist/client/assets/use-organization-settings-CJjj4PxV.js +0 -1
- package/dist/client/assets/use-registry-connections-DdT1ny1j.js +0 -1
- package/dist/client/assets/use-secrets-CZ3m8_SO.js +0 -1
- package/dist/client/assets/use-virtual-mcp-BtDjGJgx.js +0 -1
- package/dist/client/assets/useInfiniteQuery-EYFPMSDT.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DjA2HpiO.js +0 -1
- package/dist/client/assets/variant-calendar-BuoXANqL.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{bu as zl,j as q,aK as lt,bM as zn,r as Ve,bN as b0,l as Gb,c as Ke,b as E0,e as T0,B as $b}from"./index-RzCbz7G4.js";import{i as zb}from"./Check-C6rOtSdY.js";import{a as jb}from"./Copy01-DDhuzJaA.js";import{e as S0,h as y0,i as A0,a as _0}from"./dialog-VQoq6ED0.js";import{n as I0}from"./Globe01-3_GHOe2E.js";import{j as k0,n as R0}from"./ZoomOut-ox9YzR1a.js";import{u as N0}from"./use-mobile-BD37jY8Y.js";import{h as C0}from"./tab-id-bb-jjgGv.js";function jl(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Nt=jl();function Vb(e){Nt=e}var ln={exec:()=>null};function le(e,t=""){let n=typeof e=="string"?e:e.source;const r={replace:(a,i)=>{let o=typeof i=="string"?i:i.source;return o=o.replace(xe.caret,"$1"),n=n.replace(a,o),r},getRegex:()=>new RegExp(n,t)};return r}var xe={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},v0=/^(?:[ \t]*(?:\n|$))+/,w0=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,x0=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,_n=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,O0=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Vl=/(?:[*+-]|\d{1,9}[.)])/,Yb=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Wb=le(Yb).replace(/bull/g,Vl).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),L0=le(Yb).replace(/bull/g,Vl).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Yl=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,D0=/^[^\n]+/,Wl=/(?!\s*\])(?:\\.|[^\[\]\\])+/,M0=le(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Wl).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),P0=le(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Vl).getRegex(),er="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Kl=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,F0=le("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Kl).replace("tag",er).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Kb=le(Yl).replace("hr",_n).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",er).getRegex(),B0=le(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Kb).getRegex(),Xl={blockquote:B0,code:w0,def:M0,fences:x0,heading:O0,hr:_n,html:F0,lheading:Wb,list:P0,newline:v0,paragraph:Kb,table:ln,text:D0},Mc=le("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",_n).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",er).getRegex(),U0={...Xl,lheading:L0,table:Mc,paragraph:le(Yl).replace("hr",_n).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Mc).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",er).getRegex()},H0={...Xl,html:le(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Kl).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:ln,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:le(Yl).replace("hr",_n).replace("heading",` *#{1,6} *[^
|
|
2
2
|
]`).replace("lheading",Wb).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},q0=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,G0=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Xb=/^( {2,}|\\)\n(?!\s*$)/,$0=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,tr=/[\p{P}\p{S}]/u,Zl=/[\s\p{P}\p{S}]/u,Zb=/[^\s\p{P}\p{S}]/u,z0=le(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Zl).getRegex(),Qb=/(?!~)[\p{P}\p{S}]/u,j0=/(?!~)[\s\p{P}\p{S}]/u,V0=/(?:[^\s\p{P}\p{S}]|~)/u,Y0=/\[[^[\]]*?\]\((?:\\.|[^\\\(\)]|\((?:\\.|[^\\\(\)])*\))*\)|`[^`]*?`|<[^<>]*?>/g,Jb=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,W0=le(Jb,"u").replace(/punct/g,tr).getRegex(),K0=le(Jb,"u").replace(/punct/g,Qb).getRegex(),eE="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",X0=le(eE,"gu").replace(/notPunctSpace/g,Zb).replace(/punctSpace/g,Zl).replace(/punct/g,tr).getRegex(),Z0=le(eE,"gu").replace(/notPunctSpace/g,V0).replace(/punctSpace/g,j0).replace(/punct/g,Qb).getRegex(),Q0=le("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Zb).replace(/punctSpace/g,Zl).replace(/punct/g,tr).getRegex(),J0=le(/\\(punct)/,"gu").replace(/punct/g,tr).getRegex(),eS=le(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),tS=le(Kl).replace("(?:-->|$)","-->").getRegex(),nS=le("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",tS).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),jn=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,rS=le(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",jn).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),tE=le(/^!?\[(label)\]\[(ref)\]/).replace("label",jn).replace("ref",Wl).getRegex(),nE=le(/^!?\[(ref)\](?:\[\])?/).replace("ref",Wl).getRegex(),aS=le("reflink|nolink(?!\\()","g").replace("reflink",tE).replace("nolink",nE).getRegex(),Ql={_backpedal:ln,anyPunctuation:J0,autolink:eS,blockSkip:Y0,br:Xb,code:G0,del:ln,emStrongLDelim:W0,emStrongRDelimAst:X0,emStrongRDelimUnd:Q0,escape:q0,link:rS,nolink:nE,punctuation:z0,reflink:tE,reflinkSearch:aS,tag:nS,text:$0,url:ln},iS={...Ql,link:le(/^!?\[(label)\]\((.*?)\)/).replace("label",jn).getRegex(),reflink:le(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",jn).getRegex()},_l={...Ql,emStrongRDelimAst:Z0,emStrongLDelim:K0,url:le(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},oS={..._l,br:le(Xb).replace("{2,}","*").getRegex(),text:le(_l.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},xn={normal:Xl,gfm:U0,pedantic:H0},Jt={normal:Ql,gfm:_l,breaks:oS,pedantic:iS},sS={"&":"&","<":"<",">":">",'"':""","'":"'"},Pc=e=>sS[e];function Je(e,t){if(t){if(xe.escapeTest.test(e))return e.replace(xe.escapeReplace,Pc)}else if(xe.escapeTestNoEncode.test(e))return e.replace(xe.escapeReplaceNoEncode,Pc);return e}function Fc(e){try{e=encodeURI(e).replace(xe.percentDecode,"%")}catch{return null}return e}function Bc(e,t){const n=e.replace(xe.findPipe,(i,o,s)=>{let u=!1,l=o;for(;--l>=0&&s[l]==="\\";)u=!u;return u?"|":" |"}),r=n.split(xe.splitPipe);let a=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;a<r.length;a++)r[a]=r[a].trim().replace(xe.slashPipe,"|");return r}function en(e,t,n){const r=e.length;if(r===0)return"";let a=0;for(;a<r&&e.charAt(r-a-1)===t;)a++;return e.slice(0,r-a)}function uS(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function Uc(e,t,n,r,a){const i=t.href,o=t.title||null,s=e[1].replace(a.other.outputLinkReplace,"$1");r.state.inLink=!0;const u={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:i,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,u}function lS(e,t,n){const r=e.match(n.other.indentCodeCompensation);if(r===null)return t;const a=r[1];return t.split(`
|
|
3
3
|
`).map(i=>{const o=i.match(n.other.beginningSpace);if(o===null)return i;const[s]=o;return s.length>=a.length?i.slice(a.length):i}).join(`
|
|
4
4
|
`)}var Vn=class{options;rules;lexer;constructor(e){this.options=e||Nt}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const n=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:en(n,`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as a,e as o,j as i,N as l}from"./index-
|
|
1
|
+
import{c as a,e as o,j as i,N as l}from"./index-RzCbz7G4.js";function m(){const e=a.c(3);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const{org:r}=o(t);let s;return e[1]!==r?(s=i.jsx(l,{to:"/$org/files",params:{org:r},replace:!0}),e[1]=r,e[2]=s):s=e[2],s}export{m as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{dC as C,c as d,j as c,ad as j,r as f,l as p,ba as b,dD as v,dE as h}from"./index-RzCbz7G4.js";import{L as N}from"./label-BRuRKPr0.js";const E=C,g=f.createContext({}),M=t=>{const e=d.c(9);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];let o;e[2]!==s.name?(o={name:s.name},e[2]=s.name,e[3]=o):o=e[3];let n;e[4]!==s?(n=c.jsx(j,{...s}),e[4]=s,e[5]=n):n=e[5];let r;return e[6]!==o||e[7]!==n?(r=c.jsx(g.Provider,{value:o,children:n}),e[6]=o,e[7]=n,e[8]=r):r=e[8],r},x=()=>{const t=d.c(13),e=f.useContext(g),s=f.useContext($),{getFieldState:o}=v();let n;t[0]!==e.name?(n={name:e.name},t[0]=e.name,t[1]=n):n=t[1];const r=h(n);let a;t[2]!==e.name||t[3]!==r||t[4]!==o?(a=o(e.name,r),t[2]=e.name,t[3]=r,t[4]=o,t[5]=a):a=t[5];const l=a;if(!e)throw new Error("useFormField should be used within <FormField>");const{id:i}=s,m=`${i}-form-item`,F=`${i}-form-item-description`,I=`${i}-form-item-message`;let u;return t[6]!==e.name||t[7]!==l||t[8]!==i||t[9]!==m||t[10]!==F||t[11]!==I?(u={id:i,name:e.name,formItemId:m,formDescriptionId:F,formMessageId:I,...l},t[6]=e.name,t[7]=l,t[8]=i,t[9]=m,t[10]=F,t[11]=I,t[12]=u):u=t[12],u},$=f.createContext({});function w(t){const e=d.c(13);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);const n=f.useId();let r;e[3]!==n?(r={id:n},e[3]=n,e[4]=r):r=e[4];let a;e[5]!==s?(a=p("grid gap-2",s),e[5]=s,e[6]=a):a=e[6];let l;e[7]!==o||e[8]!==a?(l=c.jsx("div",{"data-slot":"form-item",className:a,...o}),e[7]=o,e[8]=a,e[9]=l):l=e[9];let i;return e[10]!==r||e[11]!==l?(i=c.jsx($.Provider,{value:r,children:l}),e[10]=r,e[11]=l,e[12]=i):i=e[12],i}function L(t){const e=d.c(10);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);const{error:n,formItemId:r}=x(),a=!!n;let l;e[3]!==s?(l=p("text-foreground data-[error=true]:text-destructive",s),e[3]=s,e[4]=l):l=e[4];let i;return e[5]!==r||e[6]!==o||e[7]!==a||e[8]!==l?(i=c.jsx(N,{"data-slot":"form-label","data-error":a,className:l,htmlFor:r,...o}),e[5]=r,e[6]=o,e[7]=a,e[8]=l,e[9]=i):i=e[9],i}function P(t){const e=d.c(7);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];const{error:o,formItemId:n,formDescriptionId:r,formMessageId:a}=x(),l=o?`${r} ${a}`:`${r}`,i=!!o;let m;return e[2]!==n||e[3]!==s||e[4]!==l||e[5]!==i?(m=c.jsx(b,{"data-slot":"form-control",id:n,"aria-describedby":l,"aria-invalid":i,...s}),e[2]=n,e[3]=s,e[4]=l,e[5]=i,e[6]=m):m=e[6],m}function y(t){const e=d.c(9);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);const{formDescriptionId:n}=x();let r;e[3]!==s?(r=p("text-muted-foreground text-sm",s),e[3]=s,e[4]=r):r=e[4];let a;return e[5]!==n||e[6]!==o||e[7]!==r?(a=c.jsx("p",{"data-slot":"form-description",id:n,className:r,...o}),e[5]=n,e[6]=o,e[7]=r,e[8]=a):a=e[8],a}function R(t){const e=d.c(10);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);const{error:n,formMessageId:r}=x(),a=n?String(n?.message??""):o.children;if(!a)return null;let l;e[3]!==s?(l=p("text-destructive text-sm",s),e[3]=s,e[4]=l):l=e[4];let i;return e[5]!==a||e[6]!==r||e[7]!==o||e[8]!==l?(i=c.jsx("p",{"data-slot":"form-message",id:r,className:l,...o,children:a}),e[5]=a,e[6]=r,e[7]=o,e[8]=l,e[9]=i):i=e[9],i}export{M as F,E as a,w as b,L as c,P as d,R as e,y as f};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as n}from"./differenceInSeconds-NQ4PDo0z.js";function f(r){return new Date(r).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})}function s(r){const t=n(new Date,r);return t<60?"<1m":t<3600?`${Math.floor(t/60)}m ago`:t<86400?`${Math.floor(t/3600)}h ago`:t<604800?`${Math.floor(t/86400)}d ago`:t<2592e3?`${Math.floor(t/604800)}w ago`:t<31536e3?`${Math.floor(t/2592e3)}mo ago`:`${Math.floor(t/31536e3)}y ago`}function u(r){if(r==null||r==="")return null;const t=r instanceof Date?r.getTime():Date.parse(r);return Number.isFinite(t)?t:null}function c(r,t){const o=t-r;return o>0?o:0}function m(r){if(r<60)return`${r.toFixed(1)}s`;const t=Math.round(r%60*10)/10,o=t>=60?1:0;return`${Math.floor(r/60)+o}m ${(o?0:t).toFixed(1)}s`}export{s as a,m as b,c,f,u as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b as U,a1 as V,n as G,M as Q,J as Y,d as K,R,t as w,K as L,j as a,ad as $,H,I as F,c as _,r as B,B as Z,Y as q,X as J}from"./index-RzCbz7G4.js";import{P as k}from"./index-iSSICeOA.js";import{u as X}from"./use-org-auth-client-BbOBgx1F.js";import{u as W}from"./use-debounced-autosave-DVAOELdx.js";import{A as ee}from"./avatar-BvMZq_TI.js";import{I as M}from"./input-CmS4IhfL.js";import{S as P,a as I,b as D,c as te}from"./settings-section-B5s6i1AE.js";import{D as ae}from"./domain-settings-DQrCzdxW.js";import{S as ne}from"./switch-DvI4Ivs6.js";import{c as se,g as oe}from"./use-organization-settings-BPsQDYqA.js";import{u as ie}from"./studio-tools-D1WvthcJ.js";import{c as re,b as le,d as ce,A as de,e as ue,g as me,a as ge,f as fe}from"./alert-dialog-BglRhrg0.js";import{R as pe}from"./require-capability-BwJAyhw_.js";import"./sidebar-Dg_hr7dR.js";import"./LayoutLeft-DKGWBMNA.js";import"./use-mobile-BD37jY8Y.js";import"./X-CJDTMZdu.js";import"./tooltip-D9y133qH.js";import"./User01-BZEdjS8N.js";import"./card-DJEMjLyN.js";import"./ArrowUpRight-gaoM5S0k.js";import"./badge-7J4kgEzC.js";import"./select-cLkB0xx3.js";import"./Check-C6rOtSdY.js";import"./ChevronDown-BfrTp1Ch.js";import"./ChevronUp-MSW-WrWs.js";import"./constants-B72Xmt_K.js";import"./use-capability-BAJSmOR6.js";import"./access-gate-Yfi4ekhF.js";import"./capability-load-error-BM3-quVD.js";const he=H({name:F().min(1,"Name is required").max(255,"Name is too long"),slug:F().min(1,"Slug is required").max(50,"Slug is too long").regex(/^[a-z0-9-]+$/,"Slug must contain only lowercase letters, numbers, and hyphens"),logo:F().optional()});function xe(e){const t=_.c(13),{value:f,onChange:d,name:s,disabled:l}=e,u=B.useRef(null);let c;t[0]===Symbol.for("react.memo_cache_sentinel")?(c=()=>u.current?.click(),t[0]=c):c=t[0];const r=c;let m;t[1]!==d?(m=j=>{const b=j.target.files?.[0];if(!b)return;if(b.size>2097152){w.error("Image must be smaller than 2MB");return}const g=new FileReader;g.onerror=je,g.onloadend=()=>{g.result&&d(g.result),u.current&&(u.current.value="")},g.readAsDataURL(b)},t[1]=d,t[2]=m):m=t[2];const n=m;let o;t[3]!==l||t[4]!==n?(o=a.jsx("input",{ref:u,type:"file",accept:"image/*",onChange:n,className:"hidden",disabled:l}),t[3]=l,t[4]=n,t[5]=o):o=t[5];const i=f||void 0,x=s??"?";let p;t[6]!==i||t[7]!==x?(p=a.jsx(ee,{url:i,fallback:x,shape:"square",size:"base"}),t[6]=i,t[7]=x,t[8]=p):p=t[8];let h;return t[9]!==l||t[10]!==o||t[11]!==p?(h=a.jsxs("button",{type:"button",onClick:r,disabled:l,className:"rounded-lg overflow-hidden hover:ring-2 hover:ring-border transition-all disabled:opacity-50","aria-label":"Upload organization logo",children:[o,p]}),t[9]=l,t[10]=o,t[11]=p,t[12]=h):h=t[12],h}function je(){return w.error("Failed to read image")}function be(){const e=U(),{org:t}=V(),f=X(),d=G(),s=Q({resolver:Y(he),values:{name:t.name??"",slug:t.slug??"",logo:t.logo??""}}),l=K({mutationFn:async n=>{const o={name:n.name,slug:n.slug};n.logo&&(o.logo=n.logo);const i=await f.organization.update({data:o});if(i?.error)throw new Error(i.error.message||"Failed to update organization");return i},onSuccess:(n,o)=>{R("organization_settings_updated",{organization_id:t.id,fields:Object.keys(o)}),d.invalidateQueries({queryKey:L.organizations()}),d.invalidateQueries({queryKey:L.activeOrganization(t.slug)}),w.success("Organization updated successfully"),n?.data?.slug&&n.data.slug!==t.slug&&e({to:"/$org/settings/general",params:{org:n.data.slug}})},onError:(n,o)=>{R("organization_settings_update_failed",{organization_id:t.id,fields:Object.keys(o),error:n instanceof Error?n.message:String(n)}),w.error(n instanceof Error?n.message:"Failed to update organization")}}),{schedule:u,flush:c}=W({save:async()=>{const n=s.control._formState.dirtyFields;if(Object.keys(n).length===0||!await s.trigger())return;const i=s.getValues(),x=s.control._defaultValues;s.reset(i,{keepValues:!0});try{await l.mutateAsync(i)}catch{s.reset(x,{keepValues:!0})}}}),r=s.formState.errors,m=typeof window<"u"?`${window.location.host}/`:"";return a.jsx(P,{children:a.jsxs(I,{children:[a.jsx(D,{title:"Logo",description:"Recommended size is 256x256px",action:a.jsx(xe,{value:s.watch("logo"),onChange:n=>{s.setValue("logo",n??"",{shouldDirty:!0}),c()},name:s.watch("name")})}),a.jsx(D,{title:"Name",action:a.jsx($,{control:s.control,name:"name",render:({field:n})=>a.jsx(M,{id:"org-name",...n,onChange:o=>{n.onChange(o),u()},onBlur:()=>{n.onBlur(),c()},placeholder:"Organization name",className:"w-[280px]"})})}),a.jsx(D,{title:"URL",action:a.jsxs("div",{className:"flex items-center w-[280px] rounded-md border border-input bg-input/30 focus-within:ring-2 focus-within:ring-ring/50 overflow-hidden",children:[m&&a.jsx("span",{className:"pl-3 text-sm text-muted-foreground select-none",children:m}),a.jsx($,{control:s.control,name:"slug",render:({field:n})=>a.jsx("input",{id:"org-slug",value:n.value??"",name:n.name,ref:n.ref,placeholder:"my-organization",className:"flex-1 min-w-0 bg-transparent px-2 py-1.5 text-sm text-foreground placeholder:text-muted-foreground/60 outline-none",onChange:o=>{const i=o.target.value.toLowerCase().replace(/[^a-z0-9-]/g,"");s.setValue("slug",i,{shouldDirty:!0,shouldTouch:!0,shouldValidate:!0}),u()},onBlur:()=>{n.onBlur(),c()}})})]})}),(r.name||r.slug||r.logo)&&a.jsxs("div",{className:"px-5 pb-3 flex flex-col gap-1",children:[r.name&&a.jsx("p",{className:"text-xs text-destructive",children:r.name.message}),r.slug&&a.jsx("p",{className:"text-xs text-destructive",children:r.slug.message}),r.logo&&a.jsx("p",{className:"text-xs text-destructive",children:r.logo.message})]})]})})}function ve(){const e=_.c(6),t=se(),{mutate:f,isPending:d}=oe();let s;e[0]!==f?(s=u=>f(u),e[0]=f,e[1]=s):s=e[1];let l;return e[2]!==t||e[3]!==d||e[4]!==s?(l=a.jsx(P,{title:"Task board",description:"A board for tracking org tasks by status, priority, and assignee.",children:a.jsx(I,{children:a.jsx(D,{title:"Enable task board",description:"Adds a Board entry to the sidebar for this organization.",action:a.jsx(ne,{checked:t,disabled:d,onCheckedChange:s})})})}),e[2]=t,e[3]=d,e[4]=s,e[5]=l):l=e[5],l}function ye(){const e=_.c(42),{org:t}=V(),[f,d]=B.useState(!1),[s,l]=B.useState(""),u=ie();let c;e[0]!==t.id||e[1]!==u?(c=async()=>{await u.call("ORGANIZATION_DELETE",{id:t.id})},e[0]=t.id,e[1]=u,e[2]=c):c=e[2];let r;e[3]!==t.id||e[4]!==t.slug?(r=()=>{R("organization_deleted",{organization_id:t.id}),localStorage.getItem(q.lastOrgSlug())===t.slug&&localStorage.removeItem(q.lastOrgSlug()),J(),w.success("Organization deleted"),window.location.href="/"},e[3]=t.id,e[4]=t.slug,e[5]=r):r=e[5];let m;e[6]!==c||e[7]!==r?(m={mutationFn:c,onSuccess:r,onError:Se},e[6]=c,e[7]=r,e[8]=m):m=e[8];const n=K(m);let o;e[9]===Symbol.for("react.memo_cache_sentinel")?(o=()=>d(!0),e[9]=o):o=e[9];let i;e[10]!==n.isPending?(i=a.jsx(P,{title:"Danger Zone",description:"Irreversible actions that affect your entire organization.",children:a.jsx(I,{className:"border-destructive/40",children:a.jsx(D,{title:"Delete organization",description:"Permanently delete this organization and all of its data. This action cannot be undone.",action:a.jsx(Z,{variant:"destructive",size:"sm",onClick:o,disabled:n.isPending,children:"Delete"})})})}),e[10]=n.isPending,e[11]=i):i=e[11];let x;e[12]===Symbol.for("react.memo_cache_sentinel")?(x=N=>{d(N),N||l("")},e[12]=x):x=e[12];let p;e[13]===Symbol.for("react.memo_cache_sentinel")?(p=a.jsx(re,{children:"Delete Organization?"}),e[13]=p):p=e[13];let h;e[14]!==t.name?(h=a.jsxs("p",{children:["This will permanently delete all data associated with"," ",a.jsx("span",{className:"font-medium text-foreground",children:t.name}),". This action cannot be undone."]}),e[14]=t.name,e[15]=h):h=e[15];let j;e[16]!==t.name?(j=a.jsxs("p",{className:"mt-3 mb-1.5",children:["Type"," ",a.jsx("span",{className:"font-medium text-foreground",children:t.name})," ","to confirm:"]}),e[16]=t.name,e[17]=j):j=e[17];let b;e[18]===Symbol.for("react.memo_cache_sentinel")?(b=N=>l(N.target.value),e[18]=b):b=e[18];let g;e[19]!==s||e[20]!==t.name?(g=a.jsx(M,{value:s,onChange:b,placeholder:t.name,autoFocus:!0}),e[19]=s,e[20]=t.name,e[21]=g):g=e[21];let v;e[22]!==g||e[23]!==h||e[24]!==j?(v=a.jsxs(le,{children:[p,a.jsx(ce,{asChild:!0,children:a.jsxs("div",{children:[h,j,g]})})]}),e[22]=g,e[23]=h,e[24]=j,e[25]=v):v=e[25];let O;e[26]===Symbol.for("react.memo_cache_sentinel")?(O=a.jsx(de,{children:"Cancel"}),e[26]=O):O=e[26];let y;e[27]!==n?(y=()=>n.mutate(),e[27]=n,e[28]=y):y=e[28];const E=s!==t.name||n.isPending,T=n.isPending?"Deleting…":"Delete organization";let S;e[29]!==y||e[30]!==E||e[31]!==T?(S=a.jsxs(ue,{children:[O,a.jsx(me,{onClick:y,disabled:E,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90 disabled:opacity-50",children:T})]}),e[29]=y,e[30]=E,e[31]=T,e[32]=S):S=e[32];let z;e[33]!==v||e[34]!==S?(z=a.jsxs(ge,{children:[v,S]}),e[33]=v,e[34]=S,e[35]=z):z=e[35];let C;e[36]!==f||e[37]!==z?(C=a.jsx(fe,{open:f,onOpenChange:x,children:z}),e[36]=f,e[37]=z,e[38]=C):C=e[38];let A;return e[39]!==C||e[40]!==i?(A=a.jsxs(a.Fragment,{children:[i,C]}),e[39]=C,e[40]=i,e[41]=A):A=e[41],A}function Se(e){w.error(e instanceof Error?e.message:"Failed to delete organization")}function ze(){const e=_.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=a.jsx(k,{children:a.jsx(k.Content,{children:a.jsx(k.Body,{children:a.jsxs(te,{children:[a.jsx(k.Title,{children:"Organization"}),a.jsx(be,{}),a.jsx(ae,{}),a.jsx(ve,{}),a.jsx(ye,{})]})})})}),e[0]=t):t=e[0],t}function et(){const e=_.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=a.jsx(pe,{capability:"org:manage",area:"general settings",children:a.jsx(ze,{})}),e[0]=t):t=e[0],t}export{et as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as R,j as t,a1 as U,a as Z,n as B,r as T,aj as $,i as L,d as V,t as F,dF as ee,K as O,m as te,B as ne,l as M,P as se,aD as oe}from"./index-RzCbz7G4.js";import{D as re,a as ie,d as le,e as ae}from"./dialog-VQoq6ED0.js";import{C as ce}from"./collection-search-C_SgZaX4.js";import{u as ue}from"./use-debounced-value-BUPZwZxl.js";import{b as J,u as de}from"./use-connection-CoNk61jl.js";import{u as H}from"./use-mcp-client-D3e9ceNa.js";import{W as me,S as Y}from"./constants-B72Xmt_K.js";import{a as W}from"./authenticate-and-persist-oauth-DWDcBYz0.js";import{b as X}from"./Settings02-f8loRSef.js";import{K as fe}from"./agent-icon-C2ANw4X5.js";import{u as xe}from"./use-mcp-tools-eYiXWlAi.js";import{e as pe}from"./extract-connection-data-CBaWfjW4.js";import{c as ge}from"./use-navigate-to-agent-C_szOIys.js";import{G as q,a as he,f as ye}from"./github-installations-D2vHSx02.js";function P(i){const e=R.c(4),{size:n,className:r}=i;let f;e[0]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsx("path",{d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27s1.36.09 2 .27c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0016 8c0-4.42-3.58-8-8-8z"}),e[0]=f):f=e[0];let l;return e[1]!==r||e[2]!==n?(l=t.jsx("svg",{width:n,height:n,viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":"true",className:r,children:f}),e[1]=r,e[2]=n,e[3]=l):l=e[3],l}function be(i,e){const n=R.c(12),{org:r}=U();let f;n[0]!==r.id?(f=me.REGISTRY(r.id),n[0]=r.id,n[1]=f):f=n[1];const l=f;let o;n[2]!==r.id||n[3]!==r.slug||n[4]!==l?(o={connectionId:l,orgId:r.id,orgSlug:r.slug},n[2]=r.id,n[3]=r.slug,n[4]=l,n[5]=o):o=n[5];const N=H(o);let x;n[6]!==i?(x={name:i},n[6]=i,n[7]=x):x=n[7];const y=e?.enabled??!0;let a;return n[8]!==N||n[9]!==x||n[10]!==y?(a={client:N,toolName:"COLLECTION_REGISTRY_APP_GET",toolArguments:x,enabled:y,staleTime:3e5,select:Ne},n[8]=N,n[9]=x,n[10]=y,n[11]=a):a=n[11],xe(a)}function Ne(i){return i.structuredContent?.item??null}const je="deco/mcp-github";function we(i){const{org:e}=U(),{data:n}=Z.useSession(),r=J(),f=B(),[l,o]=T.useState("idle"),[N,x]=T.useState(null),[y,a]=T.useState(null),{data:j,isLoading:u}=be(je,{enabled:i.enabled}),c=T.useRef(!1);i.enabled&&j&&!u&&!c.current&&n?.user?.id&&l==="idle"&&(c.current=!0,m());async function m(){if(!(!j||!n?.user?.id||!e))try{o("installing"),x(null);const d=pe(j,e.id,n.user.id,{remoteIndex:0});if(!d.connection_url)throw new Error("Registry item is missing a remote URL for mcp-github");const{id:w}=await r.create.mutateAsync(d);o("authenticating");const b=await W({connectionId:w,orgId:e.id,orgSlug:e.slug,persistFallback:s=>r.update.mutateAsync({id:w,data:{connection_token:s}}).then(()=>{})});if(b.ran&&!b.ok){try{await r.delete.mutateAsync(w)}catch{}throw new Error(b.error&&b.error!=="no token received"?b.error:"No token received from GitHub")}$(f,e.id),a(d),o("ready")}catch(d){x(d instanceof Error?d.message:String(d)),o("error")}}function p(){o("idle"),x(null),a(null),c.current=!1}return i.enabled&&u&&l==="idle"?{status:"installing",error:null,connection:null,retry:p}:{status:l,error:N,connection:y,retry:p}}const Q="GitHub MCP did not return refreshable repo grant metadata";function G(i){if(typeof i!="string")return null;const e=i.trim();return e.length>0?e:null}function Ce(i){try{const e=new URL(i);return(e.protocol==="http:"||e.protocol==="https:")&&!e.username&&!e.password}catch{return!1}}function Ie(i){return typeof i=="number"&&Number.isFinite(i)&&Number.isInteger(i)&&i>0?i:void 0}async function K(i){const{orgSlug:e,sourceConnection:n,installationId:r,owner:f,repo:l,githubCallTool:o,selfCallTool:N,orgShared:x}=i,y=await o({name:"MINT_REPO_TOKEN",arguments:{installationId:r,owner:f,repo:l,permissions:q}}),a=y.structuredContent;if(y.isError||!a?.token){const h=y.content?.find(_=>_.type==="text")?.text;throw new Error(h?`Failed to mint a repo-scoped GitHub token: ${h}`:"Failed to mint a repo-scoped GitHub token")}const j=G(a.refreshToken),u=G(a.tokenEndpoint),c=G(a.clientId);if(!j||!u||!c)throw new Error(Q);if(!Ce(u))throw new Error(Q);const m=G(a.repository?.owner),p=G(a.repository?.name),d="GitHub MCP returned refresh metadata for a different repository";if(a.repository?.owner!==void 0&&(!m||m.toLowerCase()!==f.toLowerCase()))throw new Error(d);if(a.repository?.name!==void 0&&(!p||p.toLowerCase()!==l.toLowerCase()))throw new Error(d);const g=Ie(a.repository?.id),w=a.expiresAt?Date.parse(a.expiresAt):NaN,b=Number.isFinite(w)?Math.max(0,Math.floor((w-Date.now())/1e3)):null,C=(typeof a.expiresIn=="number"&&Number.isFinite(a.expiresIn)&&Number.isInteger(a.expiresIn)&&a.expiresIn>0?a.expiresIn:null)??b,S=await N({name:"COLLECTION_CONNECTIONS_CREATE",arguments:{data:{title:`GitHub: ${f}/${l}`,description:`Repo-scoped GitHub access for ${f}/${l}`,icon:n.icon,app_name:n.app_name,app_id:n.app_id,connection_type:n.connection_type,connection_url:n.connection_url,metadata:{...x?{orgShared:!0}:{},repoScope:{installationId:r,repositoryId:g,owner:f,repo:l,permissions:q,grantProvider:"github-mcp"}}}}}),v=S.structuredContent??S,I=v.item?.id??v.id;if(!I)throw new Error("Failed to create the repo-scoped GitHub connection");if(!(await fetch(`/api/${e}/connections/${I}/oauth-token`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({accessToken:a.token,refreshToken:j,expiresIn:C,scope:a.scope??null,clientId:c,tokenEndpoint:u})})).ok)throw await N({name:"COLLECTION_CONNECTIONS_DELETE",arguments:{id:I,force:!0}}).catch(()=>{}),new Error("Failed to persist the repo-scoped token");return{childConnectionId:I}}function Qe(i){const e=R.c(22),{open:n,onOpenChange:r,title:f,onImportComplete:l,mode:o}=i,N=o===void 0?"agent":o,x=f??(N==="connection"?"Add repo":"Import from GitHub"),[y,a]=T.useState(null);let j;e[0]!==x?(j=t.jsx(re,{className:"sr-only",children:t.jsx(ie,{children:x})}),e[0]=x,e[1]=j):j=e[1];let u;e[2]!==x||e[3]!==y?(u=t.jsx("div",{className:"flex items-center h-12 border-b border-border px-4 gap-3 shrink-0",children:y?t.jsxs(t.Fragment,{children:[t.jsx("button",{type:"button",onClick:()=>a(null),className:"flex items-center justify-center text-muted-foreground hover:text-foreground transition-colors shrink-0","aria-label":"Back to accounts",children:t.jsx(X,{size:16})}),t.jsx("img",{src:y.avatarUrl,alt:y.login,className:"size-5 rounded-full ring-1 ring-border shrink-0"}),t.jsx("span",{className:"text-sm font-medium text-foreground",children:y.login})]}):t.jsxs(t.Fragment,{children:[t.jsx(P,{className:"size-4 text-foreground shrink-0"}),t.jsx("span",{className:"text-sm font-medium text-foreground",children:x})]})}),e[2]=x,e[3]=y,e[4]=u):u=e[4];let c;e[5]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(L,{size:18,className:"animate-spin text-muted-foreground"})}),e[5]=c):c=e[5];let m;e[6]!==r?(m=()=>r(!1),e[6]=r,e[7]=m):m=e[7];let p;e[8]!==N||e[9]!==l||e[10]!==n||e[11]!==y||e[12]!==m?(p=t.jsx("div",{className:"flex-1 overflow-hidden flex flex-col min-w-0",children:t.jsx(T.Suspense,{fallback:c,children:t.jsx(Se,{open:n,onComplete:m,selectedInstallation:y,onSelectInstallation:a,onImportComplete:l,mode:N})})}),e[8]=N,e[9]=l,e[10]=n,e[11]=y,e[12]=m,e[13]=p):p=e[13];let d;e[14]!==j||e[15]!==u||e[16]!==p?(d=t.jsxs(le,{className:"sm:max-w-[560px] h-[85svh] sm:h-[520px] p-0 gap-0 overflow-hidden flex flex-col",children:[j,u,p]}),e[14]=j,e[15]=u,e[16]=p,e[17]=d):d=e[17];let g;return e[18]!==r||e[19]!==n||e[20]!==d?(g=t.jsx(ae,{open:n,onOpenChange:r,children:d}),e[18]=r,e[19]=n,e[20]=d,e[21]=g):g=e[21],g}function Se({open:i,onComplete:e,selectedInstallation:n,onSelectInstallation:r,onImportComplete:f,mode:l="agent"}){const{org:o}=U(),N=B(),x=ge(),[y,a]=T.useState(null),j=de({slug:"mcp-github"}),u=he(j),c=we({enabled:i&&u.length===0}),m=u.length===1?u[0]??null:y,p=H({connectionId:m?.id??"",orgId:o.id,orgSlug:o.slug}),d=H({connectionId:Y,orgId:o.id,orgSlug:o.slug}),g=async(s,C)=>{try{const v=await p.callTool({name:"get_file_contents",arguments:{owner:s.owner,repo:s.name,path:C}});if(v.isError)return null;const E=v.content?.find(h=>h.type==="resource")?.resource?.text;if(!E)return null;try{const h=JSON.parse(E);return typeof h=="string"?h:JSON.stringify(h)}catch{return E}}catch{return null}},w=(s,C)=>{Promise.all([g(C,"AGENTS.md"),g(C,"CLAUDE.md")]).then(async([S,v])=>{const I=S??v??null;I&&(await d.callTool({name:"COLLECTION_VIRTUAL_MCP_UPDATE",arguments:{id:s,data:{metadata:{instructions:I}}}}),$(N,o.id))}).catch(S=>{console.error("GitHub instructions fetch failed:",S)})},b=V({mutationFn:async s=>{if(!m||!n)throw new Error("No GitHub connection or installation");const C=n.installationId;if(l==="connection"){const{childConnectionId:I}=await K({orgSlug:o.slug,sourceConnection:m,installationId:C,owner:s.owner,repo:s.name,githubCallTool:E=>p.callTool(E),selfCallTool:E=>d.callTool(E),orgShared:!0});return{virtualMcpId:null,repo:s,connectionId:I,item:null}}const{childConnectionId:S}=await K({orgSlug:o.slug,sourceConnection:m,installationId:C,owner:s.owner,repo:s.name,githubCallTool:I=>p.callTool(I),selfCallTool:I=>d.callTool(I)});let v=null;try{const I=await d.callTool({name:"COLLECTION_VIRTUAL_MCP_CREATE",arguments:{data:{title:s.name,description:s.description||"Imported from GitHub",pinned:!1,icon:null,metadata:{githubRepo:{owner:s.owner,name:s.name,url:s.url,installationId:C,connectionId:S},instructions:null,ui:{pinnedViews:null,layout:{defaultMainView:{type:"preview"},chatDefaultOpen:!0}}},connections:[{connection_id:S}]}}}),E=I.structuredContent??I,h=E.item?.id;if(!E.item||!h)throw new Error("Failed to create the imported agent");return v=h,{virtualMcpId:h,repo:s,connectionId:S,item:E.item}}catch(I){throw v&&await d.callTool({name:"COLLECTION_VIRTUAL_MCP_DELETE",arguments:{id:v}}).catch(()=>{}),await d.callTool({name:"COLLECTION_CONNECTIONS_DELETE",arguments:{id:S,force:!0}}).catch(()=>{}),I}},onSuccess:({virtualMcpId:s,repo:C,connectionId:S,item:v})=>{if(l==="connection"||!s||!v){$(N,o.id),ee(N,o.id),F.success(`Added ${C.name}`),e();return}if(N.setQueryData(O.collectionItem(d,o.id,"","VIRTUAL_MCP",s),{item:v}),$(N,o.id),w(s,C),f){f({virtualMcpId:s,repo:C,connectionId:S});return}F.success(`Imported ${C.name} from GitHub`),e(),localStorage.setItem("mesh:sidebar-open",JSON.stringify(!1)),x(s)},onError:s=>{F.error("Failed to import repo: "+(s instanceof Error?s.message:"Unknown error"))}});return c.status==="installing"||c.status==="authenticating"?t.jsx(D,{status:c.status,error:null,retry:c.retry}):c.status==="error"?t.jsx(D,{status:"error",error:c.error,retry:c.retry}):u.length===0&&c.status==="idle"?t.jsx(D,{status:"installing",error:null,retry:c.retry}):u.length>1&&!m?t.jsxs("div",{className:"flex flex-col py-2",children:[t.jsx("div",{className:"px-4 py-2",children:t.jsx("p",{className:"text-xs font-medium text-muted-foreground",children:"Select a connection"})}),u.map(s=>t.jsxs("button",{type:"button",onClick:()=>a(s),className:"flex items-center gap-3 px-4 py-3 hover:bg-accent transition-colors text-left",children:[s.icon?t.jsx("img",{src:s.icon,alt:s.title,className:"size-7 rounded-full shrink-0"}):t.jsx("div",{className:"size-7 rounded-full bg-muted flex items-center justify-center shrink-0",children:t.jsx(P,{className:"size-3.5 text-muted-foreground"})}),t.jsx("span",{className:"text-sm font-medium",children:s.title})]},s.id))]}):m?n?t.jsx(Te,{connectionId:m.id,orgId:o.id,orgSlug:o.slug,installation:n,onSelectRepo:s=>b.mutate(s),isSaving:b.isPending}):t.jsx(ve,{connectionId:m.id,orgId:o.id,orgSlug:o.slug,onSelect:r,showBackButton:u.length>1,onBack:()=>a(null)}):null}function ve(i){const e=R.c(47),{connectionId:n,orgId:r,orgSlug:f,onSelect:l,showBackButton:o,onBack:N}=i;let x;e[0]!==r||e[1]!==f?(x={connectionId:Y,orgId:r,orgSlug:f},e[0]=r,e[1]=f,e[2]=x):x=e[2];const y=H(x),a=B(),j=J();let u;e[3]!==n||e[4]!==r?(u=O.githubUserOrgs(r,n),e[3]=n,e[4]=r,e[5]=u):u=e[5];let c;e[6]!==n||e[7]!==y?(c=()=>ye(h=>y.callTool(h),n),e[6]=n,e[7]=y,e[8]=c):c=e[8];let m;e[9]!==u||e[10]!==c?(m={queryKey:u,queryFn:c},e[9]=u,e[10]=c,e[11]=m):m=e[11];const p=te(m);let d;e[12]!==j||e[13]!==n||e[14]!==p||e[15]!==r||e[16]!==f||e[17]!==a?(d={mutationFn:async()=>{const h=await W({connectionId:n,orgId:r,orgSlug:f,persistFallback:k=>j.update.mutateAsync({id:n,data:{connection_token:k}}).then(_e)});if(h.ran&&!h.ok)throw new Error(h.error??"no token received");const _=new URL(`/api/${f}/mcp/${n}`,window.location.origin);await a.invalidateQueries({queryKey:O.isMCPAuthenticated(_.href,null)}),await a.invalidateQueries({queryKey:O.mcpClientPrefix()}),await p.refetch()},onError:Ee},e[12]=j,e[13]=n,e[14]=p,e[15]=r,e[16]=f,e[17]=a,e[18]=d):d=e[18];const g=V(d);if(p.isLoading){let h;return e[19]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(L,{size:18,className:"animate-spin text-muted-foreground"})}),e[19]=h):h=e[19],h}if(p.isError){let h,_;e[20]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx("p",{className:"text-sm text-destructive",children:"Failed to load GitHub accounts"}),_=t.jsx("p",{className:"text-xs text-muted-foreground max-w-[280px] leading-relaxed",children:"Your GitHub connection may have expired. Reconnect to restore access."}),e[20]=h,e[21]=_):(h=e[20],_=e[21]);let k;e[22]!==g?(k=()=>g.mutate(),e[22]=g,e[23]=k):k=e[23];let A;e[24]!==g.isPending?(A=g.isPending?t.jsx(L,{size:14,className:"animate-spin"}):t.jsx(P,{className:"size-3.5"}),e[24]=g.isPending,e[25]=A):A=e[25];let z;return e[26]!==g.isPending||e[27]!==k||e[28]!==A?(z=t.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-3 px-6 text-center",children:[h,_,t.jsxs(ne,{type:"button",variant:"outline",size:"sm",onClick:k,disabled:g.isPending,children:[A,"Reconnect GitHub"]})]}),e[26]=g.isPending,e[27]=k,e[28]=A,e[29]=z):z=e[29],z}const w=p.data;if(!w)return null;let b;e[30]!==N||e[31]!==o?(b=o&&t.jsx("div",{className:"flex items-center gap-1 px-4 pt-3 pb-1 shrink-0",children:t.jsxs("button",{type:"button",onClick:N,className:"flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground transition-colors",children:[t.jsx(X,{size:12}),"Change connection"]})}),e[30]=N,e[31]=o,e[32]=b):b=e[32];let s;if(e[33]!==w.installations||e[34]!==l){let h;e[36]!==l?(h=_=>t.jsxs("button",{type:"button",onClick:()=>l(_),className:"w-full flex items-center gap-3 px-4 py-3 hover:bg-accent transition-colors text-left group",children:[t.jsx("img",{src:_.avatarUrl,alt:_.login,className:"size-7 rounded-full shrink-0 ring-1 ring-border"}),t.jsxs("div",{className:"flex flex-col min-w-0 flex-1",children:[t.jsx("span",{className:"text-sm font-medium leading-none",children:_.login}),_.type==="User"&&t.jsx("span",{className:"text-xs text-muted-foreground mt-1",children:"Personal account"})]}),t.jsx("span",{className:"text-xs text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity shrink-0",children:"Select →"})]},_.installationId),e[36]=l,e[37]=h):h=e[37],s=w.installations.map(h),e[33]=w.installations,e[34]=l,e[35]=s}else s=e[35];let C;e[38]!==s?(C=t.jsx("div",{className:"flex-1 overflow-y-auto overflow-x-hidden [scrollbar-gutter:stable]",children:s}),e[38]=s,e[39]=C):C=e[39];const S=w.appSlug?`https://github.com/apps/${w.appSlug}/installations/new`:"https://github.com/settings/installations";let v;e[40]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsx("span",{className:"underline underline-offset-2",children:"Install the GitHub App"}),e[40]=v):v=e[40];let I;e[41]!==S?(I=t.jsx("div",{className:"px-4 py-3 border-t border-border shrink-0",children:t.jsxs("a",{href:S,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-muted-foreground hover:text-foreground transition-colors",children:["Account not listed?"," ",v]})}),e[41]=S,e[42]=I):I=e[42];let E;return e[43]!==I||e[44]!==b||e[45]!==C?(E=t.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[b,C,I]}),e[43]=I,e[44]=b,e[45]=C,e[46]=E):E=e[46],E}function Ee(i){F.error("Failed to reconnect GitHub: "+(i instanceof Error?i.message:"Unknown error"))}function _e(){}function Te(i){const e=R.c(20),{connectionId:n,orgId:r,orgSlug:f,installation:l,onSelectRepo:o,isSaving:N}=i,[x,y]=T.useState(""),a=ue(x,300),j=T.useDeferredValue(a),u=x!==j;let c;e[0]!==u||e[1]!==x?(c=t.jsx(ce,{placeholder:"Search repositories...",value:x,onChange:y,isSearching:u}),e[0]=u,e[1]=x,e[2]=c):c=e[2];const m=u?"opacity-40":"opacity-100";let p;e[3]!==m?(p=M("flex-1 overflow-hidden flex flex-col transition-opacity duration-150",m),e[3]=m,e[4]=p):p=e[4];let d;e[5]===Symbol.for("react.memo_cache_sentinel")?(d=t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(L,{size:18,className:"animate-spin text-muted-foreground"})}),e[5]=d):d=e[5];let g;e[6]!==n||e[7]!==j||e[8]!==l||e[9]!==N||e[10]!==o||e[11]!==r||e[12]!==f?(g=t.jsx(T.Suspense,{fallback:d,children:t.jsx(ke,{connectionId:n,orgId:r,orgSlug:f,installation:l,query:j,onSelectRepo:o,isSaving:N})}),e[6]=n,e[7]=j,e[8]=l,e[9]=N,e[10]=o,e[11]=r,e[12]=f,e[13]=g):g=e[13];let w;e[14]!==p||e[15]!==g?(w=t.jsx("div",{className:p,children:g}),e[14]=p,e[15]=g,e[16]=w):w=e[16];let b;return e[17]!==c||e[18]!==w?(b=t.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[c,w]}),e[17]=c,e[18]=w,e[19]=b):b=e[19],b}function ke(i){const e=R.c(29),{connectionId:n,orgId:r,orgSlug:f,installation:l,query:o,onSelectRepo:N,isSaving:x}=i;let y;e[0]!==n||e[1]!==r||e[2]!==f?(y={connectionId:n,orgId:r,orgSlug:f},e[0]=n,e[1]=r,e[2]=f,e[3]=y):y=e[3];const a=H(y),j=l.type==="User"?"user":"org",u=o?`${j}:${l.login} ${o} in:name`:`${j}:${l.login}`;let c;e[4]!==n||e[5]!==l.login||e[6]!==r||e[7]!==o?(c=O.githubOrgRepos(r,n,l.login,o),e[4]=n,e[5]=l.login,e[6]=r,e[7]=o,e[8]=c):c=e[8];let m;e[9]!==a||e[10]!==u?(m=async b=>{const{signal:s}=b,S=(await a.callTool({name:"search_repositories",arguments:{query:u,page:1,perPage:30}},void 0,{signal:s})).content?.[0]?.text;if(!S)throw new Error("No response from search_repositories");return(JSON.parse(S).items??[]).map(Re)},e[9]=a,e[10]=u,e[11]=m):m=e[11];let p;e[12]!==c||e[13]!==m?(p={queryKey:c,queryFn:m},e[12]=c,e[13]=m,e[14]=p):p=e[14];const{data:d}=se(p);if(d.length===0){let b;e[15]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx("p",{className:"text-sm text-muted-foreground",children:"No repositories found"}),e[15]=b):b=e[15];let s;e[16]!==o?(s=o&&t.jsx("p",{className:"text-xs text-muted-foreground/60",children:"Try a different search term"}),e[16]=o,e[17]=s):s=e[17];let C;return e[18]!==s?(C=t.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-1",children:[b,s]}),e[18]=s,e[19]=C):C=e[19],C}let g;if(e[20]!==x||e[21]!==N||e[22]!==d){let b;e[24]!==x||e[25]!==N?(b=s=>t.jsxs("button",{type:"button",onClick:()=>N(s),disabled:x,className:"flex items-start gap-3 px-4 py-3 hover:bg-accent transition-colors text-left disabled:opacity-50 disabled:cursor-not-allowed",children:[t.jsx(P,{className:"size-4 text-muted-foreground mt-0.5 shrink-0"}),t.jsx("div",{className:"flex items-center gap-2 min-w-0 flex-1",children:t.jsx("span",{className:"text-sm font-medium truncate",children:s.name})}),t.jsxs("span",{className:"flex items-center gap-1 text-xs font-medium text-muted-foreground border border-border rounded px-1.5 py-0.5 shrink-0 leading-none",children:[s.private?t.jsx(oe,{size:10}):t.jsx(fe,{size:10}),s.private?"Private":"Public"]})]},s.fullName),e[24]=x,e[25]=N,e[26]=b):b=e[26],g=d.map(b),e[20]=x,e[21]=N,e[22]=d,e[23]=g}else g=e[23];let w;return e[27]!==g?(w=t.jsx("div",{className:"flex-1 overflow-y-auto overflow-x-hidden flex flex-col [scrollbar-gutter:stable]",children:g}),e[27]=g,e[28]=w):w=e[28],w}function Re(i){return{name:i.name,fullName:i.full_name,owner:i.full_name.split("/")[0]??"",url:i.html_url,private:i.private,description:i.description,updatedAt:i.updated_at}}function D(i){const e=R.c(33),{status:n,error:r,retry:f}=i;if(n==="error"){let S;e[0]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx("div",{className:"size-10 rounded-full bg-destructive/10 flex items-center justify-center",children:t.jsx(P,{className:"size-5 text-destructive"})}),e[0]=S):S=e[0];let v;e[1]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsx("p",{className:"text-sm font-medium",children:"Connection failed"}),e[1]=v):v=e[1];const I=r??"Something went wrong while connecting to GitHub.";let E;e[2]!==I?(E=t.jsxs("div",{className:"flex flex-col items-center gap-1 text-center",children:[v,t.jsx("p",{className:"text-xs text-muted-foreground max-w-[260px] leading-relaxed",children:I})]}),e[2]=I,e[3]=E):E=e[3];let h;e[4]!==f?(h=t.jsx("button",{type:"button",onClick:f,className:"text-xs font-medium text-foreground border border-border rounded-md px-3 py-1.5 hover:bg-accent transition-colors",children:"Try again"}),e[4]=f,e[5]=h):h=e[5];let _;return e[6]!==E||e[7]!==h?(_=t.jsxs("div",{className:"flex flex-col items-center gap-4 px-6 py-10",children:[S,E,h]}),e[6]=E,e[7]=h,e[8]=_):_=e[8],_}const l=n==="authenticating";let o;e[9]===Symbol.for("react.memo_cache_sentinel")?(o=t.jsx("div",{className:"size-10 rounded-full bg-muted flex items-center justify-center",children:t.jsx(P,{className:"size-5 text-foreground"})}),e[9]=o):o=e[9];let N;e[10]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsxs("div",{className:"relative size-10",children:[o,t.jsx("div",{className:"absolute -bottom-0.5 -right-0.5 size-4 rounded-full bg-background flex items-center justify-center",children:t.jsx(L,{size:12,className:"animate-spin text-muted-foreground"})})]}),e[10]=N):N=e[10];const x=l?"Authenticating with GitHub":"Setting up GitHub";let y;e[11]!==x?(y=t.jsx("p",{className:"text-sm font-medium",children:x}),e[11]=x,e[12]=y):y=e[12];const a=l?"Complete the OAuth flow in your browser":"Installing the GitHub connection...";let j;e[13]!==a?(j=t.jsx("p",{className:"text-xs text-muted-foreground",children:a}),e[13]=a,e[14]=j):j=e[14];let u;e[15]!==y||e[16]!==j?(u=t.jsxs("div",{className:"flex flex-col items-center gap-1 text-center",children:[y,j]}),e[15]=y,e[16]=j,e[17]=u):u=e[17];const c=l?"bg-muted-foreground/30":"bg-foreground animate-pulse";let m;e[18]!==c?(m=M("size-1.5 rounded-full",c),e[18]=c,e[19]=m):m=e[19];let p;e[20]!==m?(p=t.jsx("span",{className:m}),e[20]=m,e[21]=p):p=e[21];const d=l?"bg-foreground animate-pulse":"bg-muted-foreground/30";let g;e[22]!==d?(g=M("size-1.5 rounded-full",d),e[22]=d,e[23]=g):g=e[23];let w;e[24]!==g?(w=t.jsx("span",{className:g}),e[24]=g,e[25]=w):w=e[25];let b;e[26]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx("span",{className:"size-1.5 rounded-full bg-muted-foreground/30"}),e[26]=b):b=e[26];let s;e[27]!==p||e[28]!==w?(s=t.jsxs("div",{className:"flex items-center gap-1.5",children:[p,w,b]}),e[27]=p,e[28]=w,e[29]=s):s=e[29];let C;return e[30]!==s||e[31]!==u?(C=t.jsxs("div",{className:"flex flex-col items-center gap-4 px-6 py-10",children:[N,u,s]}),e[30]=s,e[31]=u,e[32]=C):C=e[32],C}export{Qe as G,P as a,we as b,K as p,be as u};
|