decocms 4.357.1 → 4.357.3
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-UmLlY8gt.js → AlertCircle-jfjjhRb2.js} +1 -1
- package/dist/client/assets/{AreaChart-DQQeycfj.js → AreaChart-Bo5HXO4p.js} +1 -1
- package/dist/client/assets/{ArrowLeft-CKGsgaFO.js → ArrowLeft-C8cZM3Lb.js} +1 -1
- package/dist/client/assets/{ArrowRight-DkzY_YHb.js → ArrowRight-C1SqRJva.js} +1 -1
- package/dist/client/assets/{ArrowUp-tJnhyHYV.js → ArrowUp-DO8L5TQb.js} +1 -1
- package/dist/client/assets/{Check-mIk-Zdri.js → Check-Ce-kdiAz.js} +1 -1
- package/dist/client/assets/{CheckCircle-DrFO4Bvc.js → CheckCircle-De9uZjVS.js} +1 -1
- package/dist/client/assets/{ChevronRight-CoUl6dHM.js → ChevronRight-DubHTmQO.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-DgbgJIgx.js → ChevronSelectorVertical-CrgjPjbL.js} +1 -1
- package/dist/client/assets/{ChevronUp-BsQdOFhn.js → ChevronUp-Dv1bs5gv.js} +1 -1
- package/dist/client/assets/{Copy01-B9voSPXW.js → Copy01-CfdtsKHZ.js} +1 -1
- package/dist/client/assets/{CreditCard01-BwVgysoQ.js → CreditCard01-58le4qDM.js} +1 -1
- package/dist/client/assets/{DotsVertical-LQnPIhpJ.js → DotsVertical-CQhOWron.js} +1 -1
- package/dist/client/assets/{Download01-DuC_qV7_.js → Download01-CkEHYCtu.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-B2GlswO2.js → ErrorBarContext-BqHL-Y3p.js} +1 -1
- package/dist/client/assets/{Eye-BNbA0ZH1.js → Eye-CjvyVBpK.js} +1 -1
- package/dist/client/assets/{GitBranch01-CEGTuE7l.js → GitBranch01-CnDUj8k9.js} +1 -1
- package/dist/client/assets/{Globe01-Ct8tiHdr.js → Globe01-DRlTHhah.js} +1 -1
- package/dist/client/assets/{HardDrive-DeQRGeCm.js → HardDrive-CU-VjDaY.js} +1 -1
- package/dist/client/assets/{Image01-BOV108nN.js → Image01-CQKrLpko.js} +1 -1
- package/dist/client/assets/{Key01-DwPkNGAi.js → Key01-BUkCS-VZ.js} +1 -1
- package/dist/client/assets/{Link01-CaYtZMuf.js → Link01-CJhugVGT.js} +1 -1
- package/dist/client/assets/{LinkExternal01-BL5IYsGT.js → LinkExternal01-DwM11BM3.js} +1 -1
- package/dist/client/assets/{Monitor01-CcdvNcNU.js → Monitor01-CAf3l_fb.js} +1 -1
- package/dist/client/assets/{Package-DuXJoDs3.js → Package-DfHUZvfF.js} +1 -1
- package/dist/client/assets/{Palette-BZ4o6l5p.js → Palette-CVbKokzl.js} +1 -1
- package/dist/client/assets/{Play-BuyaXe7U.js → Play-ByimPZLH.js} +1 -1
- package/dist/client/assets/{Plus-3CMW8aY5.js → Plus-B7Qgs6c0.js} +1 -1
- package/dist/client/assets/{SearchLg-Cw3nH7Cl.js → SearchLg-Cr93RqzH.js} +1 -1
- package/dist/client/assets/{SearchMd-DNTL0r7E.js → SearchMd-aOpSh9NS.js} +1 -1
- package/dist/client/assets/{Sector-KEmpVao_.js → Sector-BRXBEr54.js} +1 -1
- package/dist/client/assets/{Settings02-BkXl17NJ.js → Settings02-BIgS-joO.js} +1 -1
- package/dist/client/assets/{Share07-_ciA_Du3.js → Share07-BNlRIACF.js} +1 -1
- package/dist/client/assets/{Shield01-DEeMJbvH.js → Shield01-CnOipa-t.js} +1 -1
- package/dist/client/assets/{Stars01-119xkrYB.js → Stars01-D8eMm3ti.js} +1 -1
- package/dist/client/assets/{Sun-iXMmiuE1.js → Sun-BtcTAfVi.js} +1 -1
- package/dist/client/assets/{Tool01-CxaNpYBN.js → Tool01-DZy0-yfv.js} +1 -1
- package/dist/client/assets/{Tool02-D8aijKEK.js → Tool02-DPuAnCAs.js} +1 -1
- package/dist/client/assets/{Trash01-aDQVPlte.js → Trash01-Cwsg9CQi.js} +1 -1
- package/dist/client/assets/{TrendUp01-BPcG0VZ2.js → TrendUp01-__f9sEcH.js} +1 -1
- package/dist/client/assets/{Upload01-DP3uFIbj.js → Upload01-CxQ-qFsJ.js} +1 -1
- package/dist/client/assets/{User01-uB5x1Z7I.js → User01-CZd90OjM.js} +1 -1
- package/dist/client/assets/{UserSquare-DgMxtQAT.js → UserSquare-COtt7gjo.js} +1 -1
- package/dist/client/assets/{Users01-C5oQyGpK.js → Users01-PS4F8E96.js} +1 -1
- package/dist/client/assets/{Users03-DLEUw1TQ.js → Users03-ARzfb3UY.js} +1 -1
- package/dist/client/assets/{XCircle-CPARFFz5.js → XCircle-B5aGe555.js} +1 -1
- package/dist/client/assets/{XClose-D4ceJ-NM.js → XClose-y4JAlviW.js} +1 -1
- package/dist/client/assets/{Zap-CN63rPHF.js → Zap-Gixj78c9.js} +1 -1
- package/dist/client/assets/{ZoomOut-C2eKrhT6.js → ZoomOut-wpvlOZYU.js} +1 -1
- package/dist/client/assets/{access-gate-BL9g1s42.js → access-gate-Bs17QafM.js} +1 -1
- package/dist/client/assets/{agent-icon-CNkeVIGx.js → agent-icon-B0zL3xsA.js} +1 -1
- package/dist/client/assets/{agents-list-DcW9W957.js → agents-list-BI-RmVBQ.js} +1 -1
- package/dist/client/assets/{ai-providers-Cg7WqewV.js → ai-providers-CsBCilMD.js} +1 -1
- package/dist/client/assets/{alert-DuYG853b.js → alert-B4UstmCX.js} +1 -1
- package/dist/client/assets/{alert-dialog-yY0onn0b.js → alert-dialog-7FdjBzh_.js} +1 -1
- package/dist/client/assets/{analytics-tab-CBaiSDzS.js → analytics-tab-BzqGWkfe.js} +1 -1
- package/dist/client/assets/api-keys-BNjTcj4j.js +1 -0
- package/dist/client/assets/{api-keys-DZUDO68_.js → api-keys-C89b48IE.js} +1 -1
- package/dist/client/assets/{app-editor-DhnCLGga.js → app-editor-DXiKuQ9Q.js} +1 -1
- package/dist/client/assets/{auth-BifFxAMn.js → auth-BwqdG3Ap.js} +1 -1
- package/dist/client/assets/{auth-catchall-B0Qn0v5n.js → auth-catchall-f7qd16_z.js} +1 -1
- package/dist/client/assets/{auth-entry-PO0b8IvR.js → auth-entry-9wyzoGen.js} +1 -1
- package/dist/client/assets/{auth-split-layout-C99XAMUI.js → auth-split-layout-CZRDe2TQ.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-B89pdNMd.js → authenticate-and-persist-oauth-B_u4xVVy.js} +1 -1
- package/dist/client/assets/{automation-list-row-CzBcz6q8.js → automation-list-row-CNebDiLM.js} +1 -1
- package/dist/client/assets/{automation-runs-CkurNXaa.js → automation-runs-DKaFHTtT.js} +1 -1
- package/dist/client/assets/{automations-C796hwhr.js → automations-C1K9TrHw.js} +1 -1
- package/dist/client/assets/{autosend-H7vEr2E4.js → autosend-B-jgA69G.js} +1 -1
- package/dist/client/assets/{avatar-BRVlWhlB.js → avatar-DI1HnM92.js} +1 -1
- package/dist/client/assets/{badge-Bek9yAA7.js → badge-BgHS8KSi.js} +1 -1
- package/dist/client/assets/{block-document-C7l_-EBM.js → block-document-duIP5v8b.js} +1 -1
- package/dist/client/assets/{breadcrumb-CqlTgO8l.js → breadcrumb-wpeYVl2H.js} +1 -1
- package/dist/client/assets/{buckets-BTiZmovd.js → buckets-DUw9frSr.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-CdkBUcU1.js → bulk-category-panel-DTRoiF65.js} +1 -1
- package/dist/client/assets/{capability-load-error-C8dRTAUB.js → capability-load-error-B7b7PR00.js} +1 -1
- package/dist/client/assets/{cards-C-vB_PHu.js → cards-wXXfO7Nb.js} +1 -1
- package/dist/client/assets/{category-editor-DOHGDj5Z.js → category-editor-CYSdvuua.js} +1 -1
- package/dist/client/assets/{cdn-tab-x9o5M_Ww.js → cdn-tab-CWx59t_V.js} +1 -1
- package/dist/client/assets/{chart-qdoCOGln.js → chart-Ra8xZy5i.js} +1 -1
- package/dist/client/assets/{chat-context-kYTm66h1.js → chat-context-CXjyxt6m.js} +1 -1
- package/dist/client/assets/{checkbox-D5UNPAi9.js → checkbox-BvViD30Z.js} +1 -1
- package/dist/client/assets/{choose-editor-Dslm8T8o.js → choose-editor-CVd7grTs.js} +1 -1
- package/dist/client/assets/{cli-auth-success-DOUtQsSl.js → cli-auth-success-CCANiGfr.js} +1 -1
- package/dist/client/assets/{client-icons-DiZSUf5o.js → client-icons-C1pRwtw_.js} +1 -1
- package/dist/client/assets/{collection-detail-Xf86HRc4.js → collection-detail-CJFB3PMG.js} +1 -1
- package/dist/client/assets/{collection-display-button-BFmvDGYf.js → collection-display-button-C3xR51VT.js} +1 -1
- package/dist/client/assets/{collection-search-DgCzDom2.js → collection-search-BE8f9vRK.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-DWmtfHla.js → collection-table-wrapper-Dnd_hEnl.js} +1 -1
- package/dist/client/assets/{collection-tabs-htCjlN6e.js → collection-tabs-D9ewltT5.js} +1 -1
- package/dist/client/assets/{command-C8qMEhaG.js → command-Dv5YEFBw.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-DTQ0b9qS.js → commerce-onboarding-By728Fey.js} +1 -1
- package/dist/client/assets/{connect-CAB2STVc.js → connect-BZaPjICq.js} +1 -1
- package/dist/client/assets/{connect-layout-DrVv2vSW.js → connect-layout-B4zhPiyO.js} +1 -1
- package/dist/client/assets/{connection-D3PCvxub.js → connection-QBAxJEoy.js} +1 -1
- package/dist/client/assets/{connection-card-CuQsth2r.js → connection-card-DkjhCUXb.js} +1 -1
- package/dist/client/assets/{connection-detail-_Gp4DDsf.js → connection-detail-DpTDoRut.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-GOmangL6.js → connection-form-helpers-C5Y6efxy.js} +1 -1
- package/dist/client/assets/{connections-BPVxWIfq.js → connections-BIPLGOsz.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-DnARvowu.js → create-organization-dialog-B-Bm7EZ0.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-CGUVxGA5.js → decopilot-sse-pool-Ch9nFiQG.js} +1 -1
- package/dist/client/assets/{dialog-D6PrlHs3.js → dialog-D4N2L8L5.js} +1 -1
- package/dist/client/assets/{domain-settings-BBTMrO34.js → domain-settings-nZzWnRbl.js} +1 -1
- package/dist/client/assets/{drawer-CKDQN4Qv.js → drawer-D2HwKF1I.js} +1 -1
- package/dist/client/assets/{dropdown-menu-BN-ZPax7.js → dropdown-menu-CHJ4BpRz.js} +1 -1
- package/dist/client/assets/{e2e-tab-BlET88YO.js → e2e-tab-B0o1fvlx.js} +1 -1
- package/dist/client/assets/{editor-0D0nYwQZ.js → editor-TuVrz7Iq.js} +1 -1
- package/dist/client/assets/{empty-state-PedwR9BY.js → empty-state-DiiNcbuD.js} +1 -1
- package/dist/client/assets/{empty-state-oW1HtioG.js → empty-state-h2SsdZ1q.js} +1 -1
- package/dist/client/assets/{extract-connection-data-D_ov4A1f.js → extract-connection-data-DX_w-Ghd.js} +1 -1
- package/dist/client/assets/{file-explorer-BZ-qzAOo.js → file-explorer-byZrLJlW.js} +1 -1
- package/dist/client/assets/{file-type-icon-Bnpkm6mQ.js → file-type-icon-CG0G5HUU.js} +1 -1
- package/dist/client/assets/{folder-icon-Cvyr8eQ5.js → folder-icon-eaUJBf11.js} +1 -1
- package/dist/client/assets/{form-DCRMYQ5T.js → form-C5JJI1Vh.js} +1 -1
- package/dist/client/assets/{general-CE5xUtk_.js → general-CRIXvhlS.js} +1 -1
- package/dist/client/assets/{github-icon-Dxk6kG9J.js → github-icon-gRPFnmHh.js} +1 -1
- package/dist/client/assets/{hooks-BE6Qu5f_.js → hooks-BjnKaON5.js} +1 -1
- package/dist/client/assets/{index-BTUJIvwF.js → index-BbucPeOb.js} +1 -1
- package/dist/client/assets/{index-BEoXIi96.js → index-Bn5MDF24.js} +4 -4
- package/dist/client/assets/{index-DSxOSuj0.js → index-C7SrHuHZ.js} +1 -1
- package/dist/client/assets/{index-Dg7HcLhN.js → index-CHLHllxW.js} +1 -1
- package/dist/client/assets/{index-CcAGGW2C.js → index-Cjz2zRCj.js} +1 -1
- package/dist/client/assets/{index-KykP8MNQ.js → index-DH0R-Drj.js} +1 -1
- package/dist/client/assets/{index-CeaJSAMa.js → index-DH2JNReW.js} +1 -1
- package/dist/client/assets/{index-CcwjIcL7.js → index-DuD13czs.js} +58 -58
- package/dist/client/assets/{index-DC6772TW.js → index-DwIonCju.js} +1 -1
- package/dist/client/assets/index-nnbvBXse.js +1 -0
- package/dist/client/assets/{index-CnMMSaSr.js → index-p7kfrftX.js} +1 -1
- package/dist/client/assets/{index-redirect-CkemZHoW.js → index-redirect-CRd3Qsu6.js} +1 -1
- package/dist/client/assets/{index-BCYWiv5V.js → index-smpHz6ga.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-C0gtCSKc.js → infiniteQueryObserver-Bt185Q7m.js} +1 -1
- package/dist/client/assets/{infra-billing-Cgv1Q04H.js → infra-billing--wlfjAgd.js} +1 -1
- package/dist/client/assets/{input-DuuQU-5P.js → input-COLB0lXy.js} +1 -1
- package/dist/client/assets/{integration-icon-_O5BXH5s.js → integration-icon-40D482vj.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-DNbOb0sE.js → invite-member-dialog-D_MSGZYc.js} +1 -1
- package/dist/client/assets/{label-DfTzeVB6.js → label-lQGkeEZ4.js} +1 -1
- package/dist/client/assets/{layout-CkEok-uQ.js → layout-CNomkWSC.js} +1 -1
- package/dist/client/assets/{login-Cd7PyCNO.js → login-DFMOgTsE.js} +1 -1
- package/dist/client/assets/{markdown-Bk2_0Mpp.js → markdown-D0-Bpc1L.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-IailASEA.js → mcp-app-renderer-Bq2_4Tdn.js} +1 -1
- package/dist/client/assets/{mcp-oauth-ytJMtAma.js → mcp-oauth-EKzo4Q5p.js} +1 -1
- package/dist/client/assets/{members-BkTiUwYV.js → members-DqZ5b1Wx.js} +1 -1
- package/dist/client/assets/{monaco-editor-xqrL4C9W.js → monaco-editor-CFK2_4zy.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-9YJ3YK5E.js → monitoring-stats-row-BcSraWTC.js} +1 -1
- package/dist/client/assets/{multi-select-LkAyTIB4.js → multi-select-C0U2yJGQ.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-BuI4vq64.js → oauth-callback-ai-provider-CHPy64ZA.js} +1 -1
- package/dist/client/assets/{oauth-callback-Dk0et3QU.js → oauth-callback-vJRuz9W_.js} +1 -1
- package/dist/client/assets/{onboarding-BNomTh4g.js → onboarding-SzE27Q9Y.js} +1 -1
- package/dist/client/assets/{org-layout-CTJtERf2.js → org-layout-x32Pk_Sc.js} +1 -1
- package/dist/client/assets/{organization-choice-BI6EZHK-.js → organization-choice-Ds0gxQ0w.js} +1 -1
- package/dist/client/assets/{orgs-CTUQ8-uM.js → orgs-wZ1NXjjr.js} +1 -1
- package/dist/client/assets/{page-seo-form-CBA1iAiu.js → page-seo-form-D_KynfmE.js} +1 -1
- package/dist/client/assets/{popover-CEyILQP8.js → popover-CsN9E7aA.js} +1 -1
- package/dist/client/assets/{post-calendar-DenT8uYn.js → post-calendar-Br7sSiJK.js} +1 -1
- package/dist/client/assets/{post-editor-Hc46Mx_G.js → post-editor-LNWcb1KC.js} +1 -1
- package/dist/client/assets/{primitives-BmJPSaCw.js → primitives-C4V4-BlQ.js} +1 -1
- package/dist/client/assets/{profile-0vekQ69B.js → profile-DjRgrhkJ.js} +1 -1
- package/dist/client/assets/{project-app-view-BXnLQtLD.js → project-app-view-VZEIh-kO.js} +1 -1
- package/dist/client/assets/{project-icon-Cvf-f60M.js → project-icon-BA4DFvq4.js} +1 -1
- package/dist/client/assets/{prompts-BM9Vcg8I.js → prompts-D4SSnXOP.js} +1 -1
- package/dist/client/assets/record-editor-fJhK2izF.js +1 -0
- package/dist/client/assets/redirect-editor-rctd5Mmo.js +1 -0
- package/dist/client/assets/registry-7GCMTJNu.js +2 -0
- package/dist/client/assets/{registry-layout-BHrN6Ljc.js → registry-layout-CVuyjftF.js} +1 -1
- package/dist/client/assets/{reports-DgOiS-mQ.js → reports-B_AxJYCl.js} +1 -1
- package/dist/client/assets/{repositories-Bm6VO7EF.js → repositories-oah-zImY.js} +1 -1
- package/dist/client/assets/{repository-import-picker-CjXC2SBe.js → repository-import-picker-1LyaoTqg.js} +1 -1
- package/dist/client/assets/repository-picker-CpQcNYDH.js +1 -0
- package/dist/client/assets/{require-capability-OCZS-hol.js → require-capability-BlaZkuqj.js} +1 -1
- package/dist/client/assets/{required-auth-layout-Ce5Llpbj.js → required-auth-layout-L5xsKKVK.js} +1 -1
- package/dist/client/assets/{reset-password-C4ad7SK4.js → reset-password-BYBuz6aM.js} +1 -1
- package/dist/client/assets/{review-settings-DTwV71Zz.js → review-settings-D-QyaUE2.js} +1 -1
- package/dist/client/assets/{roles-22e4YaK0.js → roles-COMR0j_3.js} +1 -1
- package/dist/client/assets/{schema-BjF21APH.js → schema-D3_22XhA.js} +1 -1
- package/dist/client/assets/{scroll-area-Dmoe3ZyS.js → scroll-area-B56g89me.js} +1 -1
- package/dist/client/assets/{search-input-COgY1JoQ.js → search-input-lhXKFaNQ.js} +1 -1
- package/dist/client/assets/{secrets-CwLIw14N.js → secrets-CSUQIGy5.js} +1 -1
- package/dist/client/assets/{sections-editor-BJdi0j1x.js → sections-editor-9Zz1_h_e.js} +1 -1
- package/dist/client/assets/{select-model-CI017hbz.js → select-model-CruJ_6AR.js} +1 -1
- package/dist/client/assets/{select-Ctm5j_ac.js → select-p7yngpsd.js} +1 -1
- package/dist/client/assets/{self-tool-result-hnx7DL9g.js → self-tool-result-BTBMs-jP.js} +1 -1
- package/dist/client/assets/{seo-editor-BAQhcdhi.js → seo-editor-TP9xYmsD.js} +1 -1
- package/dist/client/assets/settings-layout-CT1H3JRF.js +1 -0
- package/dist/client/assets/{settings-sidebar-BBKY62CM.js → settings-sidebar-CUH43O0-.js} +1 -1
- package/dist/client/assets/{shell-controls-CThcSmeK.js → shell-controls-oTO6nNXY.js} +1 -1
- package/dist/client/assets/{shell-layout-51PfGFjn.js → shell-layout-DuPmQJYC.js} +1 -1
- package/dist/client/assets/{skill-preview-yijVBbhT.js → skill-preview-C_6jO4GP.js} +1 -1
- package/dist/client/assets/{skills-C2FUwmX3.js → skills-DH6IuHUS.js} +1 -1
- package/dist/client/assets/{sso-CWsgRRWL.js → sso-bcQWhb9S.js} +1 -1
- package/dist/client/assets/{store-GojCzbD_.js → store-DTkf_kYx.js} +1 -1
- package/dist/client/assets/store-registry-BsHqIHoT.js +2 -0
- package/dist/client/assets/{switch-C6U0UT4f.js → switch-4ja6AhWl.js} +1 -1
- package/dist/client/assets/{synced-repos-AN0hdpOT.js → synced-repos-CyfnK_1v.js} +1 -1
- package/dist/client/assets/{table-CFBqR8pE.js → table-Be5bQFpi.js} +1 -1
- package/dist/client/assets/{tabs-BTqDMSRY.js → tabs-sscXT2pp.js} +1 -1
- package/dist/client/assets/{task-board-BfutDBLl.js → task-board-nGQ2UxbD.js} +1 -1
- package/dist/client/assets/{task-route-CZAIG5rT.js → task-route-Cxv-CBMt.js} +1 -1
- package/dist/client/assets/{tasks-bHdnjs2n.js → tasks-DrtaBq8O.js} +1 -1
- package/dist/client/assets/{textarea-UK3aSYEU.js → textarea-B7xsPmoA.js} +1 -1
- package/dist/client/assets/{thread-intent-Boq8aDUm.js → thread-intent-CyyupJWA.js} +1 -1
- package/dist/client/assets/{thread-route-Ba6jPMs1.js → thread-route-CQoYyKuQ.js} +1 -1
- package/dist/client/assets/{toggle-group-jOXSCXvB.js → toggle-group-Cg3Y8J6R.js} +1 -1
- package/dist/client/assets/{toolbar-DJSf7gmi.js → toolbar-DL6H0DmB.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-DcRfKvZu.js → toolbar-icon-button-mBRz8jY3.js} +1 -1
- package/dist/client/assets/{track-CyUm3Jh9.js → track-syFVQNcu.js} +1 -1
- package/dist/client/assets/{types-CBEiD8NV.js → types-CjIJtVZ7.js} +1 -1
- package/dist/client/assets/{use-ai-providers-b-_ZQ5bN.js → use-ai-providers-rNtbOrqG.js} +1 -1
- package/dist/client/assets/{use-automations-BKfuici4.js → use-automations-DtLeeb27.js} +1 -1
- package/dist/client/assets/{use-autosave-Cix74pa3.js → use-autosave-8Rikw2-Q.js} +1 -1
- package/dist/client/assets/{use-connection-J9HU__FI.js → use-connection-Qu_w_dFw.js} +1 -1
- package/dist/client/assets/{use-copy-1Ld-wFUW.js → use-copy-u46GCmDT.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-Cuf8IhFL.js → use-create-virtual-mcp-DWbEaKG8.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-iIq3KU2P.js → use-date-fns-locale-o1_plq9L.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-BehbSyh9.js → use-debounced-autosave-Diz7TRnE.js} +1 -1
- package/dist/client/assets/{use-debounced-value-BJpIKS_c.js → use-debounced-value-BpDIP26o.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-BmNBMYMj.js → use-decopilot-events-C2aQUfqP.js} +1 -1
- package/dist/client/assets/{use-delete-connection-8aB1gc6x.js → use-delete-connection-CYY4nbhP.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-BnOU53k8.js → use-deployment-admin-D015CxeY.js} +1 -1
- package/dist/client/assets/{use-destination-route-0bGpW2wX.js → use-destination-route-BXLm7_bW.js} +1 -1
- package/dist/client/assets/{use-file-configs-ChaOBE4-.js → use-file-configs-DTokR-9Y.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-B16CEhLl.js → use-infinite-scroll-Bogp9ITP.js} +1 -1
- package/dist/client/assets/{use-join-requests-CHsZ3BPZ.js → use-join-requests-CP6K6loS.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-CIHDcWYi.js → use-mcp-auth-status-CvFn5PbI.js} +1 -1
- package/dist/client/assets/{use-mcp-client-CBIDHgJb.js → use-mcp-client-ztOpcBVC.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-Dv2usnUu.js → use-mcp-prompts-BfyAEcLL.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-CiXvaZ0u.js → use-mcp-tools-BlyQQiiH.js} +1 -1
- package/dist/client/assets/{use-members-DhN8JYyT.js → use-members-1t8hgnnT.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-gJlVtuGH.js → use-navigate-to-agent-Da_3agSF.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-DvxCLPMe.js → use-org-auth-client-pnUDxNMA.js} +1 -1
- package/dist/client/assets/{use-org-notice-BRkRTeOZ.js → use-org-notice-DwAM8ed1.js} +1 -1
- package/dist/client/assets/{use-org-sso-DsSzpTkG.js → use-org-sso-DGf5Yy22.js} +1 -1
- package/dist/client/assets/{use-organization-roles-D4YqA3AC.js → use-organization-roles-DMTTjSm5.js} +1 -1
- package/dist/client/assets/{use-organization-settings-PpTmoWC6.js → use-organization-settings-19eauAzQ.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-7pCkPHyQ.js → use-panel-navigate-BzdqNtUm.js} +1 -1
- package/dist/client/assets/{use-registry-connections-Ddw_x5tM.js → use-registry-connections-CHANtvqH.js} +1 -1
- package/dist/client/assets/{use-secrets-C5CB8OUG.js → use-secrets-DILMBbkM.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-B6RUH88V.js → use-section-preview-base-DqFc2SHZ.js} +1 -1
- package/dist/client/assets/{use-status-sounds-D3jpKPg_.js → use-status-sounds-0aMVuNED.js} +1 -1
- package/dist/client/assets/{use-tags-DRQoa0LP.js → use-tags-D6Lu5sd9.js} +1 -1
- package/dist/client/assets/{use-view-mode-C2w1nkdo.js → use-view-mode-DHOTwbRY.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-BBIVsgiJ.js → use-virtual-mcp-F82bzGEv.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-C7bAGLtl.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-TPKC9uCU.js +1 -0
- package/dist/client/assets/{users-DTDbkDSX.js → users-Bjlb31LO.js} +1 -1
- package/dist/client/assets/{variant-calendar-F1ire2me.js → variant-calendar-CveayuFW.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-QdvFAndV.js → view-mode-toggle-CfOTWIMM.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +3 -3
- package/dist/server/server.js +3 -3
- package/package.json +1 -1
- package/dist/client/assets/api-keys-sLubfM9V.js +0 -1
- package/dist/client/assets/index-Px4ImwVA.js +0 -1
- package/dist/client/assets/record-editor-BavTRniY.js +0 -1
- package/dist/client/assets/redirect-editor-Chge8yeg.js +0 -1
- package/dist/client/assets/registry-yoOi33CH.js +0 -2
- package/dist/client/assets/repository-picker-DJhzZwbT.js +0 -1
- package/dist/client/assets/settings-layout-xYB5QvKm.js +0 -1
- package/dist/client/assets/store-registry-Cb8iuSTe.js +0 -2
- package/dist/client/assets/useInfiniteQuery-D46s077h.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-Dt1al92J.js +0 -1
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as o,j as r}from"./index-BEoXIi96.js";import{O as m}from"./api-keys-DZUDO68_.js";import{R as p}from"./require-capability-OCZS-hol.js";import"./AlertCircle-UmLlY8gt.js";import"./Copy01-B9voSPXW.js";import"./Key01-DwPkNGAi.js";import"./Plus-3CMW8aY5.js";import"./Trash01-aDQVPlte.js";import"./alert-dialog-yY0onn0b.js";import"./dialog-D6PrlHs3.js";import"./input-DuuQU-5P.js";import"./label-DfTzeVB6.js";import"./use-mcp-client-CBIDHgJb.js";import"./auth-BifFxAMn.js";import"./access-gate-BL9g1s42.js";import"./capability-load-error-C8dRTAUB.js";function k(){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{k as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as ee,j as t,a1 as ss,B as Ie,a2 as ns,a4 as is,l as xt,b as Ae,b8 as dt,b6 as js,b1 as Ps,t as je,n as bt,r as Z,e as lt,m as ct,K as Ye,bm as vs,bl as ys,bn as Ss,bo as Ns,z as Kt,G as Cs,P as Wt,b5 as Ds}from"./index-BEoXIi96.js";import{n as _t}from"./LinkExternal01-BL5IYsGT.js";import{be as ws,bf as ls,aD as $s,aY as Ls,bg as _s,k as kt,C as Jt,av as Yt,aF as ks}from"./agent-icon-CNkeVIGx.js";import{B as Re}from"./badge-Bek9yAA7.js";import{E as Ze}from"./empty-state-PedwR9BY.js";import{u as Es}from"./use-virtual-mcp-BBIVsgiJ.js";import{r as Rs}from"./site-slug-uya6Wp4-.js";import{i as Fs}from"./AlertCircle-UmLlY8gt.js";import{d as gt}from"./UserSquare-DgMxtQAT.js";import{i as As}from"./Zap-CN63rPHF.js";import{c as as,d as os,b as rs,f as cs,g as ms,e as ds,a as fs,A as us}from"./alert-dialog-yY0onn0b.js";import{d as zs,a as nt,T as Fe,c as Et,e as Rt,b as Ft}from"./table-CFBqR8pE.js";import{i as hs}from"./ChevronRight-CoUl6dHM.js";import{a as Vs}from"./Copy01-B9voSPXW.js";import{am as Vt,an as Bt,al as Bs}from"./automation-runs-CkurNXaa.js";import{i as At}from"./Globe01-Ct8tiHdr.js";import{s as Pt}from"./Plus-3CMW8aY5.js";import{s as vt}from"./Trash01-aDQVPlte.js";import{c as yt,d as St,e as Nt,b as Ct,D as Dt}from"./dialog-D6PrlHs3.js";import{I as it}from"./input-DuuQU-5P.js";import{L as Xe}from"./label-DfTzeVB6.js";import{i as Hs}from"./Settings02-BkXl17NJ.js";import{s as Os}from"./Eye-BNbA0ZH1.js";import{a as Ht,b as Ot,c as ft,d as qt,S as Mt}from"./select-Ctm5j_ac.js";import{i as qs}from"./ArrowRight-DkzY_YHb.js";import"./Tool01-CxaNpYBN.js";import"./ArrowUp-tJnhyHYV.js";import"./ArrowLeft-CKGsgaFO.js";import"./Tool02-D8aijKEK.js";import"./TrendUp01-BPcG0VZ2.js";import"./ZoomOut-C2eKrhT6.js";import"./Users03-DLEUw1TQ.js";import"./CheckCircle-DrFO4Bvc.js";import"./Check-mIk-Zdri.js";import"./ChevronUp-BsQdOFhn.js";import"./ChevronSelectorVertical-DgbgJIgx.js";import"./DotsVertical-LQnPIhpJ.js";import"./CreditCard01-BwVgysoQ.js";import"./Download01-DuC_qV7_.js";import"./Share07-_ciA_Du3.js";import"./GitBranch01-CEGTuE7l.js";import"./XClose-D4ceJ-NM.js";import"./HardDrive-DeQRGeCm.js";import"./Image01-BOV108nN.js";import"./Key01-DwPkNGAi.js";import"./Link01-CaYtZMuf.js";import"./Monitor01-CcdvNcNU.js";import"./Sun-iXMmiuE1.js";import"./Package-DuXJoDs3.js";import"./Palette-BZ4o6l5p.js";import"./Play-BuyaXe7U.js";import"./SearchLg-Cw3nH7Cl.js";import"./SearchMd-DNTL0r7E.js";import"./Shield01-DEeMJbvH.js";import"./Stars01-119xkrYB.js";import"./Upload01-DP3uFIbj.js";import"./User01-uB5x1Z7I.js";import"./Users01-C5oQyGpK.js";import"./XCircle-CPARFFz5.js";import"./use-mcp-client-CBIDHgJb.js";import"./auth-BifFxAMn.js";import"./useInfiniteQuery-D46s077h.js";import"./infiniteQueryObserver-C0gtCSKc.js";import"./use-connection-J9HU__FI.js";import"./empty-state-oW1HtioG.js";import"./use-infinite-scroll-B16CEhLl.js";import"./use-members-DhN8JYyT.js";import"./use-org-auth-client-DvxCLPMe.js";import"./use-automations-BKfuici4.js";import"./useSuspenseInfiniteQuery-Dt1al92J.js";import"./avatar-BRVlWhlB.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-copy-1Ld-wFUW.js";import"./markdown-Bk2_0Mpp.js";import"./use-panel-navigate-7pCkPHyQ.js";import"./use-destination-route-0bGpW2wX.js";import"./hooks-BE6Qu5f_.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-CGUVxGA5.js";import"./task-board-BfutDBLl.js";import"./schema-BjF21APH.js";import"./chat-context-kYTm66h1.js";import"./autosend-H7vEr2E4.js";import"./thread-intent-Boq8aDUm.js";import"./slugify-CEUa2lfQ.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-ai-providers-b-_ZQ5bN.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-BmNBMYMj.js";import"./thread-route-Ba6jPMs1.js";import"./use-organization-settings-PpTmoWC6.js";import"./monaco-editor-xqrL4C9W.js";import"./editor-0D0nYwQZ.js";import"./mcp-app-renderer-IailASEA.js";import"./types-CBEiD8NV.js";import"./shell-layout-51PfGFjn.js";import"./anchors-yqDzZN4K.js";import"./project-icon-Cvf-f60M.js";import"./github-repo-CTPv5ZM2.js";import"./source-system-tabs-CnEGUb4r.js";import"./command-C8qMEhaG.js";import"./index-KykP8MNQ.js";import"./integration-icon-_O5BXH5s.js";import"./required-auth-layout-Ce5Llpbj.js";import"./use-org-sso-DsSzpTkG.js";import"./use-org-notice-BRkRTeOZ.js";import"./use-navigate-to-agent-gJlVtuGH.js";import"./use-mcp-prompts-Dv2usnUu.js";import"./form-DCRMYQ5T.js";import"./file-type-icon-Bnpkm6mQ.js";function Lt(r,e){return r.name===e.name&&(r.scope??"runtime")===e.scope}function mt(r,e){if(Array.isArray(r))return r;if(r&&typeof r=="object"){const o=r[e];if(Array.isArray(o))return o}return[]}function zt(r){return r==="deco-deno"?"Deco Deno":r==="deco-tanstack"?"Deco TanStack":r??null}function Ms(r){const e=(r??"").toLowerCase();return e.includes("ready")||e.includes("success")||e.includes("active")?"success":e.includes("fail")||e.includes("error")?"destructive":e.includes("build")||e.includes("pend")||e.includes("progress")?"warning":"secondary"}function Gt(r){if(!r)return"—";const e=new Date(r).getTime();if(Number.isNaN(e))return"—";const o=Math.round((Date.now()-e)/1e3),l=new Intl.RelativeTimeFormat(void 0,{numeric:"auto"}),a=[["year",31536e3],["month",2592e3],["day",86400],["hour",3600],["minute",60]];for(const[i,c]of a)if(Math.abs(o)>=c)return l.format(-Math.round(o/c),i);return l.format(-o,"second")}function Is(r){if(r==null||!Number.isFinite(r))return"—";if(r<1e3)return`${Math.round(r)}ms`;const e=r/1e3;if(e<60)return`${e.toFixed(e>=10?0:1)}s`;const o=Math.round(e);return`${Math.floor(o/60)}m ${o%60}s`}function jt(r){const e=r instanceof Error?r.message.toLowerCase():"";return e.includes("unauthorized")||e.includes("401")}function rt(r){return r instanceof Error?r.message:String(r)}function Qs(r){const e=r.trim();if(!e)return null;const o=e.split(".").filter(Boolean);if(o.length<2)return"Domain must include a TLD (e.g., example.com)";if(e.length>253)return"Domain name is too long (max 253 characters)";for(const l of o){if(l.length>63)return`Label "${l}" is too long (max 63 characters)`;if(!/^[a-z0-9]([a-z0-9-]*[a-z0-9])?$/i.test(l))return`Label "${l}" has invalid characters or format`}return null}function xs(r,e){return r&&typeof r=="object"&&"error"in r?String(r.error):`request failed (${e})`}async function It(r){const e=await fetch(r),o=await e.json().catch(()=>({}));if(!e.ok)throw new Error(xs(o,e.status));return o}async function at(r,e,o){const l=await fetch(r,{method:e,headers:o!==void 0?{"Content-Type":"application/json"}:{},body:o!==void 0?JSON.stringify(o):void 0}),a=await l.json().catch(()=>({}));if(!l.ok)throw new Error(xs(a,l.status));return a}function et(r){const e=ee.c(19);let o,l,a,i,c,m;e[0]!==r?({label:l,tooltipSide:i,variant:c,size:m,children:o,...a}=r,e[0]=r,e[1]=o,e[2]=l,e[3]=a,e[4]=i,e[5]=c,e[6]=m):(o=e[1],l=e[2],a=e[3],i=e[4],c=e[5],m=e[6]);const s=i===void 0?"top":i,n=c===void 0?"ghost":c,h=m===void 0?"icon-sm":m;let g;e[7]!==o||e[8]!==l||e[9]!==a||e[10]!==h||e[11]!==n?(g=t.jsx(ss,{asChild:!0,children:t.jsx(Ie,{"data-slot":"icon-button","aria-label":l,variant:n,size:h,...a,children:o})}),e[7]=o,e[8]=l,e[9]=a,e[10]=h,e[11]=n,e[12]=g):g=e[12];let d;e[13]!==l||e[14]!==s?(d=t.jsx(ns,{side:s,children:l}),e[13]=l,e[14]=s,e[15]=d):d=e[15];let f;return e[16]!==g||e[17]!==d?(f=t.jsxs(is,{children:[g,d]}),e[16]=g,e[17]=d,e[18]=f):f=e[18],f}function ut(r){const e=ee.c(4),{title:o,actions:l,children:a}=r;let i;return e[0]!==l||e[1]!==a||e[2]!==o?(i=t.jsx(Ps,{title:o,actions:l,children:a}),e[0]=l,e[1]=a,e[2]=o,e[3]=i):i=e[3],i}function Qe(r){const e=ee.c(5),{className:o,children:l}=r;let a;e[0]!==o?(a=xt("gap-0 overflow-hidden p-0 divide-y divide-border",o),e[0]=o,e[1]=a):a=e[1];let i;return e[2]!==l||e[3]!==a?(i=t.jsx(js,{className:a,children:l}),e[2]=l,e[3]=a,e[4]=i):i=e[4],i}function pt(r){const e=ee.c(5),{className:o,children:l}=r;let a;e[0]!==o?(a=xt("flex min-h-12 items-center gap-3 px-4 py-2",o),e[0]=o,e[1]=a):a=e[1];let i;return e[2]!==l||e[3]!==a?(i=t.jsx("div",{className:a,children:l}),e[2]=l,e[3]=a,e[4]=i):i=e[4],i}function ot(r){const e=ee.c(2),{children:o}=r;let l;return e[0]!==o?(l=t.jsx("p",{className:"px-4 py-6 text-sm text-muted-foreground",children:o}),e[0]=o,e[1]=l):l=e[1],l}function ht(r){const e=ee.c(2),{rows:o}=r,l=o===void 0?3:o;let a;return e[0]!==l?(a=t.jsx(Qe,{children:Array.from({length:l},Us)}),e[0]=l,e[1]=a):a=e[1],a}function Us(r,e){return t.jsxs(pt,{children:[t.jsx(dt,{className:"h-4 w-40"}),t.jsx(dt,{className:"h-4 flex-1"}),t.jsx(dt,{className:"size-7 rounded-lg"})]},e)}function Me(r){const e=ee.c(5),{className:o,children:l}=r;let a;e[0]!==o?(a=xt("text-xs font-medium text-muted-foreground",o),e[0]=o,e[1]=a):a=e[1];let i;return e[2]!==l||e[3]!==a?(i=t.jsx(zs,{className:a,children:l}),e[2]=l,e[3]=a,e[4]=i):i=e[4],i}function Qt(r){const e=ee.c(12),{open:o,onClick:l}=r,a=Ae();let i;e[0]!==o||e[1]!==a?(i=a(o?"mainPanelTabs.hostingTab.hideDetails":"mainPanelTabs.hostingTab.showDetails"),e[0]=o,e[1]=a,e[2]=i):i=e[2];const c=o&&"rotate-90";let m;e[3]!==c?(m=xt("transition-transform duration-200 motion-reduce:transition-none",c),e[3]=c,e[4]=m):m=e[4];let s;e[5]!==m?(s=t.jsx(hs,{className:m}),e[5]=m,e[6]=s):s=e[6];let n;return e[7]!==l||e[8]!==o||e[9]!==i||e[10]!==s?(n=t.jsx(et,{label:i,size:"icon-sm",className:"-ml-1.5 text-muted-foreground","aria-expanded":o,onClick:l,children:s}),e[7]=l,e[8]=o,e[9]=i,e[10]=s,e[11]=n):n=e[11],n}function Ks(r){const e=ee.c(8),{open:o,colSpan:l,children:a}=r;let i;e[0]!==a?(i=t.jsx(Vt,{children:t.jsx("div",{className:"border-b border-border bg-muted/30 px-4 py-3",children:a})}),e[0]=a,e[1]=i):i=e[1];let c;e[2]!==o||e[3]!==i?(c=t.jsx(Bt,{open:o,children:i}),e[2]=o,e[3]=i,e[4]=c):c=e[4];let m;return e[5]!==l||e[6]!==c?(m=t.jsx(nt,{className:"border-0 hover:bg-transparent",children:t.jsx(Fe,{colSpan:l,className:"p-0 whitespace-normal",children:c})}),e[5]=l,e[6]=c,e[7]=m):m=e[7],m}function gs(r){const e=ee.c(5),{open:o,children:l}=r;let a;e[0]!==l?(a=t.jsx(Vt,{children:t.jsx("div",{className:"border-t border-border bg-muted/30 px-4 py-3",children:l})}),e[0]=l,e[1]=a):a=e[1];let i;return e[2]!==o||e[3]!==a?(i=t.jsx(Bt,{open:o,children:a}),e[2]=o,e[3]=a,e[4]=i):i=e[4],i}function bs(r){const e=ee.c(6),{scope:o}=r,l=Ae(),a=o==="build"?"outline":"secondary";let i;e[0]!==o||e[1]!==l?(i=l(o==="build"?"mainPanelTabs.hostingTab.secretScopeBuild":"mainPanelTabs.hostingTab.secretScopeRuntime"),e[0]=o,e[1]=l,e[2]=i):i=e[2];let c;return e[3]!==a||e[4]!==i?(c=t.jsx(Re,{variant:a,children:i}),e[3]=a,e[4]=i,e[5]=c):c=e[5],c}function Ws(r){const e=ee.c(9),{value:o}=r,l=Ae();let a;e[0]!==l?(a=l("mainPanelTabs.hostingTab.dnsCopy"),e[0]=l,e[1]=a):a=e[1];let i;e[2]!==l||e[3]!==o?(i=()=>{navigator.clipboard?.writeText(o),je.success(l("mainPanelTabs.hostingTab.dnsCopied"))},e[2]=l,e[3]=o,e[4]=i):i=e[4];let c;e[5]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx(Vs,{className:"size-3.5"}),e[5]=c):c=e[5];let m;return e[6]!==a||e[7]!==i?(m=t.jsx(et,{label:a,onClick:i,children:c}),e[6]=a,e[7]=i,e[8]=m):m=e[8],m}function wt(r){const e=ee.c(28),{open:o,onOpenChange:l,title:a,description:i,confirmLabel:c,pending:m,onConfirm:s}=r,n=Ae();let h;e[0]!==a?(h=t.jsx(as,{children:a}),e[0]=a,e[1]=h):h=e[1];let g;e[2]!==i?(g=t.jsx(os,{children:i}),e[2]=i,e[3]=g):g=e[3];let d;e[4]!==h||e[5]!==g?(d=t.jsxs(rs,{children:[h,g]}),e[4]=h,e[5]=g,e[6]=d):d=e[6];let f;e[7]!==n?(f=n("mainPanelTabs.hostingTab.cancel"),e[7]=n,e[8]=f):f=e[8];let u;e[9]!==m||e[10]!==f?(u=t.jsx(cs,{disabled:m,children:f}),e[9]=m,e[10]=f,e[11]=u):u=e[11];let b;e[12]!==s?(b=S=>{S.preventDefault(),s()},e[12]=s,e[13]=b):b=e[13];let x;e[14]!==c||e[15]!==m||e[16]!==b?(x=t.jsx(ms,{className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",onClick:b,disabled:m,children:c}),e[14]=c,e[15]=m,e[16]=b,e[17]=x):x=e[17];let N;e[18]!==u||e[19]!==x?(N=t.jsxs(ds,{children:[u,x]}),e[18]=u,e[19]=x,e[20]=N):N=e[20];let C;e[21]!==d||e[22]!==N?(C=t.jsxs(fs,{children:[d,N]}),e[21]=d,e[22]=N,e[23]=C):C=e[23];let P;return e[24]!==l||e[25]!==o||e[26]!==C?(P=t.jsx(us,{open:o,onOpenChange:l,children:C}),e[24]=l,e[25]=o,e[26]=C,e[27]=P):P=e[27],P}const Js=8;function Ys(r){const e=ee.c(54),{base:o,orgSlug:l,site:a}=r,i=Ae(),c=bt(),[m,s]=Z.useState(!1);let n;e[0]!==o?(n=()=>at(`${o}/deploy`,"POST",{mode:"current"}),e[0]=o,e[1]=n):n=e[1];let h;e[2]!==l||e[3]!==c||e[4]!==a||e[5]!==i?(h=()=>{c.invalidateQueries({queryKey:Ye.hostingDeployments(l,a)}),c.invalidateQueries({queryKey:Ye.hostingDeploymentHistory(l,a)}),je.success(i("mainPanelTabs.hostingTab.toastDeployQueued")),s(!1)},e[2]=l,e[3]=c,e[4]=a,e[5]=i,e[6]=h):h=e[6];let g;e[7]!==n||e[8]!==h?(g={mutationFn:n,onSuccess:h,onError:Gs},e[7]=n,e[8]=h,e[9]=g):g=e[9];const d=lt(g);let f;e[10]===Symbol.for("react.memo_cache_sentinel")?(f=()=>s(!0),e[10]=f):f=e[10];let u;e[11]===Symbol.for("react.memo_cache_sentinel")?(u=t.jsx(gt,{}),e[11]=u):u=e[11];let b;e[12]!==d.isPending||e[13]!==i?(b=d.isPending?i("mainPanelTabs.hostingTab.deploying"):i("mainPanelTabs.hostingTab.deploy"),e[12]=d.isPending,e[13]=i,e[14]=b):b=e[14];let x;e[15]!==d.isPending||e[16]!==b?(x=t.jsxs(Ie,{size:"sm",onClick:f,disabled:d.isPending,children:[u,b]}),e[15]=d.isPending,e[16]=b,e[17]=x):x=e[17];let N;e[18]!==i?(N=i("mainPanelTabs.hostingTab.deployConfirmTitle"),e[18]=i,e[19]=N):N=e[19];let C;e[20]!==N?(C=t.jsx(as,{children:N}),e[20]=N,e[21]=C):C=e[21];let P;e[22]!==i?(P=i("mainPanelTabs.hostingTab.deployConfirmDescription"),e[22]=i,e[23]=P):P=e[23];let S;e[24]!==P?(S=t.jsx(os,{children:P}),e[24]=P,e[25]=S):S=e[25];let y;e[26]!==S||e[27]!==C?(y=t.jsxs(rs,{children:[C,S]}),e[26]=S,e[27]=C,e[28]=y):y=e[28];const R=d.isPending;let w;e[29]!==i?(w=i("mainPanelTabs.hostingTab.cancel"),e[29]=i,e[30]=w):w=e[30];let j;e[31]!==d.isPending||e[32]!==w?(j=t.jsx(cs,{disabled:R,children:w}),e[31]=d.isPending,e[32]=w,e[33]=j):j=e[33];let T;e[34]!==d?(T=_=>{_.preventDefault(),d.mutate()},e[34]=d,e[35]=T):T=e[35];const V=d.isPending;let q;e[36]!==i?(q=i("mainPanelTabs.hostingTab.deploy"),e[36]=i,e[37]=q):q=e[37];let F;e[38]!==d.isPending||e[39]!==T||e[40]!==q?(F=t.jsx(ms,{onClick:T,disabled:V,children:q}),e[38]=d.isPending,e[39]=T,e[40]=q,e[41]=F):F=e[41];let v;e[42]!==j||e[43]!==F?(v=t.jsxs(ds,{children:[j,F]}),e[42]=j,e[43]=F,e[44]=v):v=e[44];let B;e[45]!==y||e[46]!==v?(B=t.jsxs(fs,{children:[y,v]}),e[45]=y,e[46]=v,e[47]=B):B=e[47];let A;e[48]!==m||e[49]!==B?(A=t.jsx(us,{open:m,onOpenChange:s,children:B}),e[48]=m,e[49]=B,e[50]=A):A=e[50];let Q;return e[51]!==A||e[52]!==x?(Q=t.jsxs(t.Fragment,{children:[x,A]}),e[51]=A,e[52]=x,e[53]=Q):Q=e[53],Q}function Gs(r){return je.error(rt(r))}function Xs(r,e){const o=(r??"").toLowerCase();return o.includes("rollback")?t.jsxs(Re,{variant:"warning",children:[t.jsx(Ls,{}),e("mainPanelTabs.hostingTab.actionRollback")]}):o.includes("redeploy")?t.jsxs(Re,{variant:"secondary",children:[t.jsx(_s,{}),e("mainPanelTabs.hostingTab.actionRedeploy")]}):t.jsxs(Re,{variant:"secondary",children:[t.jsx(gt,{}),e("mainPanelTabs.hostingTab.actionDeploy")]})}function Zs(r,e,o){const l=(r??"").toLowerCase();return l==="build"?t.jsxs(Re,{variant:"secondary",children:[t.jsx(ls,{}),o("mainPanelTabs.hostingTab.typeBuild")]}):l==="fast-deploy"?t.jsxs(Re,{variant:"secondary",children:[t.jsx(As,{}),o("mainPanelTabs.hostingTab.typeFastDeploy")]}):l==="deploy"?t.jsxs(Re,{variant:"secondary",children:[t.jsx(gt,{}),o("mainPanelTabs.hostingTab.typeDeploy")]}):Xs(e,o)}function en(r,e){const o=(r??"").toLowerCase();return o==="success"?t.jsx(Re,{variant:"success",children:e("mainPanelTabs.hostingTab.outcomeSuccess")}):o==="failure"?t.jsx(Re,{variant:"destructive",children:e("mainPanelTabs.hostingTab.outcomeFailure")}):o==="pending"?t.jsxs(Re,{variant:"secondary",children:[t.jsx($s,{}),e("mainPanelTabs.hostingTab.outcomePending")]}):null}function Xt(r){const e=ee.c(7),{commit:o,onClick:l}=r,a=Ae();let i;e[0]!==a?(i=a("mainPanelTabs.hostingTab.buildLogs"),e[0]=a,e[1]=i):i=e[1];const c=!o;let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx(ls,{}),e[2]=m):m=e[2];let s;return e[3]!==l||e[4]!==i||e[5]!==c?(s=t.jsx(et,{label:i,onClick:l,disabled:c,children:m}),e[3]=l,e[4]=i,e[5]=c,e[6]=s):s=e[6],s}function tn(r){const e=ee.c(37),{base:o,orgSlug:l,site:a,target:i,onOpenChange:c}=r,m=Ae(),s=i!=null,n=i?.commit??"",h=i?.env??"";let g;e[0]!==n||e[1]!==h||e[2]!==l||e[3]!==a?(g=Ye.hostingBuildLogs(l,a,n,h),e[0]=n,e[1]=h,e[2]=l,e[3]=a,e[4]=g):g=e[4];let d;e[5]!==o||e[6]!==n||e[7]!==h?(d=()=>It(`${o}/deployments/logs?commit=${encodeURIComponent(n)}&env=${encodeURIComponent(h)}`),e[5]=o,e[6]=n,e[7]=h,e[8]=d):d=e[8];const f=s&&!!n;let u;e[9]!==g||e[10]!==d||e[11]!==f?(u={queryKey:g,queryFn:d,enabled:f,retry:!1,staleTime:0,gcTime:0,refetchOnMount:"always"},e[9]=g,e[10]=d,e[11]=f,e[12]=u):u=e[12];const b=ct(u),x=b.data;let N;e[13]!==m?(N=m("mainPanelTabs.hostingTab.buildLogsTitle"),e[13]=m,e[14]=N):N=e[14];let C;e[15]!==N?(C=t.jsx(vs,{children:N}),e[15]=N,e[16]=C):C=e[16];let P;e[17]!==n||e[18]!==m?(P=m("mainPanelTabs.hostingTab.buildLogsCommit",{commit:n.slice(0,7)}),e[17]=n,e[18]=m,e[19]=P):P=e[19];let S;e[20]!==P?(S=t.jsx("p",{className:"font-mono text-xs text-muted-foreground",children:P}),e[20]=P,e[21]=S):S=e[21];let y;e[22]!==C||e[23]!==S?(y=t.jsxs(ys,{className:"shrink-0 border-b border-border px-5 py-5 md:px-6",children:[C,S]}),e[22]=C,e[23]=S,e[24]=y):y=e[24];let R;e[25]!==x||e[26]!==b.error||e[27]!==b.isLoading||e[28]!==m?(R=t.jsx("div",{className:"min-h-0 flex-1 overflow-y-auto px-5 py-5 md:px-6",children:jt(b.error)?t.jsx(Ze,{icon:t.jsx(kt,{className:"size-5"}),title:m("mainPanelTabs.hostingTab.notConnectedTitle"),description:m("mainPanelTabs.hostingTab.notConnectedDescription")}):b.isLoading?t.jsxs("div",{className:"flex flex-col gap-2",children:[t.jsx(dt,{className:"h-4 w-full"}),t.jsx(dt,{className:"h-4 w-full"}),t.jsx(dt,{className:"h-4 w-2/3"})]}):b.error?t.jsx(ot,{children:m("mainPanelTabs.hostingTab.buildLogsError")}):x&&x.configured===!1?t.jsxs("div",{className:"flex flex-col items-center gap-2 rounded-lg border border-border bg-muted/30 px-4 py-8 text-center",children:[t.jsx(Fs,{className:"size-5 text-muted-foreground"}),t.jsx("p",{className:"text-sm font-medium text-foreground",children:m("mainPanelTabs.hostingTab.buildLogsNotWiredTitle")}),t.jsx("p",{className:"text-xs text-muted-foreground",children:x.reason??m("mainPanelTabs.hostingTab.buildLogsNotWiredDescription")})]}):x?.text?t.jsxs("div",{className:"flex flex-col gap-2",children:[t.jsx("pre",{className:"overflow-auto font-mono text-[11px] leading-relaxed text-foreground/80 whitespace-pre-wrap break-words",children:x.text}),x.truncated&&t.jsx("p",{className:"text-xs text-warning",children:m("mainPanelTabs.hostingTab.buildLogsTruncated")}),x.url&&t.jsxs("a",{href:x.url,target:"_blank",rel:"noreferrer",className:"inline-flex w-fit items-center gap-1.5 text-xs text-primary hover:underline",children:[t.jsx(_t,{className:"size-3.5"}),m("mainPanelTabs.hostingTab.buildLogsOpenFull")]})]}):x?.url?t.jsxs("a",{href:x.url,target:"_blank",rel:"noreferrer",className:"inline-flex w-fit items-center gap-1.5 text-sm text-primary hover:underline",children:[t.jsx(_t,{className:"size-4"}),m("mainPanelTabs.hostingTab.buildLogsOpenFull")]}):t.jsx(ot,{children:m("mainPanelTabs.hostingTab.buildLogsEmpty")})}),e[25]=x,e[26]=b.error,e[27]=b.isLoading,e[28]=m,e[29]=R):R=e[29];let w;e[30]!==R||e[31]!==y?(w=t.jsxs(Ss,{className:"flex flex-col gap-0 p-0 sm:max-w-2xl",children:[y,R]}),e[30]=R,e[31]=y,e[32]=w):w=e[32];let j;return e[33]!==c||e[34]!==s||e[35]!==w?(j=t.jsx(Ns,{open:s,onOpenChange:c,children:w}),e[33]=c,e[34]=s,e[35]=w,e[36]=j):j=e[36],j}function sn(r){const e=ee.c(52),{base:o,orgSlug:l,site:a,enabled:i,deployments:c,isLoading:m,error:s}=r,n=Ae(),[h,g]=Z.useState(null),[d,f]=Z.useState(Js),[u,b]=Z.useState(null);let x;e[0]!==l||e[1]!==a?(x=Ye.hostingDeploymentHistory(l,a),e[0]=l,e[1]=a,e[2]=x):x=e[2];let N;e[3]!==o?(N=()=>It(`${o}/deployments/history?limit=50`),e[3]=o,e[4]=N):N=e[4];let C;e[5]!==i||e[6]!==x||e[7]!==N?(C={queryKey:x,queryFn:N,enabled:i,retry:!1,staleTime:3e4},e[5]=i,e[6]=x,e[7]=N,e[8]=C):C=e[8];const P=ct(C);let S,y,R,w;if(e[9]!==c||e[10]!==s||e[11]!==h||e[12]!==d||e[13]!==P.data||e[14]!==P.error||e[15]!==P.isLoading||e[16]!==m||e[17]!==n){const F=mt(P.data,"items"),v=F.slice(0,d),B=F.length-v.length;let A;e[22]!==c?(A=c.find(an)?.commitSha??c.find(ln)?.commitSha??null,e[22]=c,e[23]=A):A=e[23];const Q=A;let _;e[24]===Symbol.for("react.memo_cache_sentinel")?(_=(p,I)=>{p&&b({commit:p,env:I??"production"})},e[24]=_):_=e[24];const W=_;let J;e[25]!==n?(J=n("mainPanelTabs.hostingTab.deployments"),e[25]=n,e[26]=J):J=e[26];let U;e[27]!==c||e[28]!==s||e[29]!==h||e[30]!==m||e[31]!==n?(U=m?t.jsx(ht,{}):s?t.jsx(Qe,{children:t.jsx(ot,{children:n("mainPanelTabs.hostingTab.deploymentsError")})}):c.length===0?t.jsx(Qe,{children:t.jsx(Ze,{icon:t.jsx(gt,{className:"size-5"}),title:n("mainPanelTabs.hostingTab.noDeployments"),className:"py-10"})}):t.jsxs(Et,{children:[t.jsx(Rt,{children:t.jsxs(nt,{children:[t.jsx(Me,{className:"pl-4",children:n("mainPanelTabs.hostingTab.colCommit")}),t.jsx(Me,{children:n("mainPanelTabs.hostingTab.colStatus")}),t.jsx(Me,{children:n("mainPanelTabs.hostingTab.colFramework")}),t.jsx(Me,{className:"text-right",children:n("mainPanelTabs.hostingTab.colDuration")}),t.jsx(Me,{className:"text-right",children:n("mainPanelTabs.hostingTab.colUpdated")}),t.jsx(Me,{className:"w-[1%]"})]})}),t.jsx(Ft,{children:c.map(p=>{const I=!!p.buildMessage,Y=h===p.id;return t.jsxs(Z.Fragment,{children:[t.jsxs(nt,{className:xt(I&&"cursor-pointer hover:bg-muted/40"),onClick:I?()=>g(Y?null:p.id):void 0,children:[t.jsx(Fe,{className:"px-4",children:t.jsxs("div",{className:"flex items-center gap-1.5",children:[I?t.jsx(Qt,{open:Y,onClick:()=>g(Y?null:p.id)}):t.jsx(ws,{className:"size-4 text-muted-foreground/60"}),t.jsx("span",{className:"font-mono text-xs",children:p.shortCommit??p.commitSha?.slice(0,7)??"—"}),p.production===!0&&t.jsx(Re,{variant:"outline",children:n("mainPanelTabs.hostingTab.production")})]})}),t.jsx(Fe,{children:t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx(Re,{variant:Ms(p.phase),children:p.phase??"—"}),p.up===!0&&t.jsx(Re,{variant:"success",children:n("mainPanelTabs.hostingTab.live")})]})}),t.jsx(Fe,{className:"text-xs text-muted-foreground",children:zt(p.framework)??"—"}),t.jsx(Fe,{className:"text-right font-mono text-xs text-muted-foreground tabular-nums",children:Is(p.durationMs)}),t.jsx(Fe,{className:"text-right text-xs text-muted-foreground",children:Gt(p.finishedAt??p.startedAt??p.createdAt)}),t.jsx(Fe,{className:"pr-3 text-right",onClick:nn,children:t.jsx(Xt,{commit:p.commitSha,onClick:()=>W(p.commitSha,p.env)})})]}),I&&t.jsx(Ks,{open:Y,colSpan:6,children:t.jsx("p",{className:"whitespace-pre-wrap break-words font-mono text-xs text-muted-foreground",children:p.buildMessage})})]},p.id)})})]}),e[27]=c,e[28]=s,e[29]=h,e[30]=m,e[31]=n,e[32]=U):U=e[32],e[33]!==U||e[34]!==J?(w=t.jsx(ut,{title:J,children:U}),e[33]=U,e[34]=J,e[35]=w):w=e[35],S=ut,e[36]!==n?(y=n("mainPanelTabs.hostingTab.deployHistory"),e[36]=n,e[37]=y):y=e[37],R=P.isLoading?t.jsx(ht,{}):P.error?t.jsx(Qe,{children:t.jsx(ot,{children:n("mainPanelTabs.hostingTab.deployHistoryError")})}):F.length===0?t.jsx(Qe,{children:t.jsx(Ze,{icon:t.jsx(gt,{className:"size-5"}),title:n("mainPanelTabs.hostingTab.noDeployHistory"),className:"py-10"})}):t.jsxs(Et,{children:[t.jsx(Rt,{children:t.jsxs(nt,{children:[t.jsx(Me,{className:"pl-4",children:n("mainPanelTabs.hostingTab.colAction")}),t.jsx(Me,{children:n("mainPanelTabs.hostingTab.colStatus")}),t.jsx(Me,{children:n("mainPanelTabs.hostingTab.colCommit")}),t.jsx(Me,{children:n("mainPanelTabs.hostingTab.colFramework")}),t.jsx(Me,{children:n("mainPanelTabs.hostingTab.colActor")}),t.jsx(Me,{className:"text-right",children:n("mainPanelTabs.hostingTab.colDate")}),t.jsx(Me,{className:"w-[1%]"})]})}),t.jsxs(Ft,{children:[v.map(p=>{const I=!!Q&&p.commitSha===Q;return t.jsxs(nt,{children:[t.jsx(Fe,{className:"pl-4",children:Zs(p.type,p.action,n)}),t.jsx(Fe,{children:en(p.outcome,n)}),t.jsx(Fe,{children:t.jsxs("div",{className:"flex items-center gap-1.5",children:[t.jsx("span",{className:"font-mono text-xs",children:p.commitSha?.slice(0,7)??"—"}),I&&t.jsx(Re,{variant:"success",children:n("mainPanelTabs.hostingTab.live")})]})}),t.jsx(Fe,{className:"text-xs text-muted-foreground",children:zt(p.framework)??"—"}),t.jsx(Fe,{className:"text-xs text-muted-foreground",children:p.actor??"—"}),t.jsx(Fe,{className:"text-right text-xs text-muted-foreground",children:Gt(p.createdAt)}),t.jsx(Fe,{className:"pr-3 text-right",children:t.jsx(Xt,{commit:p.commitSha,onClick:()=>W(p.commitSha,p.env)})})]},p.id)}),B>0&&t.jsx(nt,{className:"hover:bg-transparent",children:t.jsx(Fe,{colSpan:7,className:"p-2 text-center",children:t.jsx(Ie,{variant:"ghost",size:"sm",onClick:()=>f(F.length),children:n("mainPanelTabs.hostingTab.showMoreHistory",{count:String(B)})})})})]})]}),e[9]=c,e[10]=s,e[11]=h,e[12]=d,e[13]=P.data,e[14]=P.error,e[15]=P.isLoading,e[16]=m,e[17]=n,e[18]=S,e[19]=y,e[20]=R,e[21]=w}else S=e[18],y=e[19],R=e[20],w=e[21];let j;e[38]!==S||e[39]!==y||e[40]!==R?(j=t.jsx(S,{title:y,children:R}),e[38]=S,e[39]=y,e[40]=R,e[41]=j):j=e[41];let T;e[42]===Symbol.for("react.memo_cache_sentinel")?(T=F=>{F||b(null)},e[42]=T):T=e[42];let V;e[43]!==o||e[44]!==u||e[45]!==l||e[46]!==a?(V=t.jsx(tn,{base:o,orgSlug:l,site:a,target:u,onOpenChange:T}),e[43]=o,e[44]=u,e[45]=l,e[46]=a,e[47]=V):V=e[47];let q;return e[48]!==w||e[49]!==j||e[50]!==V?(q=t.jsxs(t.Fragment,{children:[w,j,V]}),e[48]=w,e[49]=j,e[50]=V,e[51]=q):q=e[51],q}function nn(r){return r.stopPropagation()}function ln(r){return r.production===!0&&r.up}function an(r){return r.up===!0}const on=["16.148.147.194","52.32.122.94","52.35.156.199"];function rn(r){return r.replace(/\.$/,"").split(".").filter(Boolean).length===2}function Zt(r){const e=r.trim();return e.length>0&&!e.startsWith("/")&&e.includes(".")}function ps(r){const e=ee.c(24),{records:o}=r,l=Ae();let a;e[0]!==l?(a=l("mainPanelTabs.hostingTab.dnsColType"),e[0]=l,e[1]=a):a=e[1];let i;e[2]!==a?(i=t.jsx(Me,{className:"w-16",children:a}),e[2]=a,e[3]=i):i=e[3];let c;e[4]!==l?(c=l("mainPanelTabs.hostingTab.dnsColName"),e[4]=l,e[5]=c):c=e[5];let m;e[6]!==c?(m=t.jsx(Me,{children:c}),e[6]=c,e[7]=m):m=e[7];let s;e[8]!==l?(s=l("mainPanelTabs.hostingTab.dnsColValue"),e[8]=l,e[9]=s):s=e[9];let n;e[10]!==s?(n=t.jsx(Me,{children:s}),e[10]=s,e[11]=n):n=e[11];let h;e[12]===Symbol.for("react.memo_cache_sentinel")?(h=t.jsx(Me,{className:"w-10"}),e[12]=h):h=e[12];let g;e[13]!==i||e[14]!==m||e[15]!==n?(g=t.jsx(Rt,{children:t.jsxs(nt,{children:[i,m,n,h]})}),e[13]=i,e[14]=m,e[15]=n,e[16]=g):g=e[16];let d;e[17]!==o?(d=o.map(cn),e[17]=o,e[18]=d):d=e[18];let f;e[19]!==d?(f=t.jsx(Ft,{children:d}),e[19]=d,e[20]=f):f=e[20];let u;return e[21]!==f||e[22]!==g?(u=t.jsxs(Et,{className:"table-fixed",children:[g,f]}),e[21]=f,e[22]=g,e[23]=u):u=e[23],u}function cn(r){return t.jsxs(nt,{children:[t.jsx(Fe,{className:"font-mono text-xs",children:r.type}),t.jsx(Fe,{className:"break-all whitespace-normal font-mono text-xs",children:r.name}),t.jsx(Fe,{className:"break-all whitespace-normal font-mono text-xs text-muted-foreground",children:r.value}),t.jsx(Fe,{className:"text-right",children:t.jsx(Ws,{value:r.value})})]},`${r.type}-${r.name}-${r.value}`)}function Ts(r){const e=ee.c(14),{status:o,children:l}=r,a=Ae();let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx(At,{className:"size-4 text-muted-foreground"}),e[0]=i):i=e[0];let c;e[1]!==a?(c=a("mainPanelTabs.hostingTab.dnsSetupTitle"),e[1]=a,e[2]=c):c=e[2];let m;e[3]!==c?(m=t.jsx("span",{className:"text-sm font-medium",children:c}),e[3]=c,e[4]=m):m=e[4];let s;e[5]!==o||e[6]!==a?(s=o&&t.jsx(Re,{variant:o.active?"success":"outline",className:"ml-auto",children:o.active?a("mainPanelTabs.hostingTab.dnsActive"):a("mainPanelTabs.hostingTab.dnsAwaiting")}),e[5]=o,e[6]=a,e[7]=s):s=e[7];let n;e[8]!==m||e[9]!==s?(n=t.jsxs("div",{className:"flex items-center gap-2",children:[i,m,s]}),e[8]=m,e[9]=s,e[10]=n):n=e[10];let h;return e[11]!==l||e[12]!==n?(h=t.jsxs("div",{className:"flex min-w-0 flex-col gap-3",children:[n,l]}),e[11]=l,e[12]=n,e[13]=h):h=e[13],h}function es(r){const e=ee.c(21),{from:o,source:l}=r,a=Ae();let i,c,m,s,n;if(e[0]!==o||e[1]!==l||e[2]!==a){const d=o.trim().replace(/\.$/,""),f=d?rn(d)?"@":d:"@",u=l==="both";c=Ts,e[8]!==u?(s={active:u},e[8]=u,e[9]=s):s=e[9];let b;e[10]!==u||e[11]!==a?(b=a(u?"mainPanelTabs.hostingTab.dnsActiveHint":"mainPanelTabs.hostingTab.dnsAwaitingHint"),e[10]=u,e[11]=a,e[12]=b):b=e[12],n=t.jsxs("p",{className:"text-xs text-muted-foreground",children:[a("mainPanelTabs.hostingTab.dnsRedirectIntent",{from:d||"—"})," ",b]}),i=ps,m=on.map(x=>({type:"A",name:f,value:x})),e[0]=o,e[1]=l,e[2]=a,e[3]=i,e[4]=c,e[5]=m,e[6]=s,e[7]=n}else i=e[3],c=e[4],m=e[5],s=e[6],n=e[7];let h;e[13]!==i||e[14]!==m?(h=t.jsx(i,{records:m}),e[13]=i,e[14]=m,e[15]=h):h=e[15];let g;return e[16]!==c||e[17]!==s||e[18]!==n||e[19]!==h?(g=t.jsxs(c,{status:s,children:[n,h]}),e[16]=c,e[17]=s,e[18]=n,e[19]=h,e[20]=g):g=e[20],g}function ts(r){const e=ee.c(2),{records:o}=r;if(o.length===0)return null;let l;return e[0]!==o?(l=t.jsx(Ts,{children:t.jsx(ps,{records:o})}),e[0]=o,e[1]=l):l=e[1],l}function mn(r){const e=ee.c(16),{domain:o}=r,l=Ae(),a=o.status??"pending";let i;e[0]!==a||e[1]!==l?(i=l(a==="active"?"mainPanelTabs.hostingTab.statusActive":a==="action-required"?"mainPanelTabs.hostingTab.statusActionRequired":"mainPanelTabs.hostingTab.statusPending"),e[0]=a,e[1]=l,e[2]=i):i=e[2];const c=i;let m;e[3]!==o.detail||e[4]!==l?(m=o.detail==="zone-not-onboarded"?l("mainPanelTabs.hostingTab.detailZoneNotOnboarded"):void 0,e[3]=o.detail,e[4]=l,e[5]=m):m=e[5];const s=m,n=a==="active"?"success":a==="action-required"?"warning":"outline";let h;e[6]!==c||e[7]!==n?(h=t.jsx(Re,{variant:n,children:c}),e[6]=c,e[7]=n,e[8]=h):h=e[8];const g=h;if(!s)return g;let d;e[9]!==g?(d=t.jsx(ss,{asChild:!0,children:g}),e[9]=g,e[10]=d):d=e[10];let f;e[11]!==s?(f=t.jsx(ns,{className:"max-w-xs",children:s}),e[11]=s,e[12]=f):f=e[12];let u;return e[13]!==d||e[14]!==f?(u=t.jsxs(is,{children:[d,f]}),e[13]=d,e[14]=f,e[15]=u):u=e[15],u}function dn(r){const e=ee.c(121),{base:o,orgSlug:l,site:a,domains:i,dnsTemplate:c,isLoading:m,error:s}=r,n=Ae(),h=bt(),[g,d]=Z.useState(!1),[f,u]=Z.useState(""),[b,x]=Z.useState(null),[N,C]=Z.useState(null);let P;e[0]!==l||e[1]!==h||e[2]!==a?(P=()=>h.invalidateQueries({queryKey:Ye.hostingDomains(l,a)}),e[0]=l,e[1]=h,e[2]=a,e[3]=P):P=e[3];const S=P;let y;e[4]!==o?(y=$=>at(`${o}/domains`,"PUT",$),e[4]=o,e[5]=y):y=e[5];let R;e[6]!==S||e[7]!==n?(R=()=>{S(),je.success(n("mainPanelTabs.hostingTab.toastDomainSaved")),d(!1)},e[6]=S,e[7]=n,e[8]=R):R=e[8];let w;e[9]!==y||e[10]!==R?(w={mutationFn:y,onSuccess:R,onError:un},e[9]=y,e[10]=R,e[11]=w):w=e[11];const j=lt(w);let T;e[12]!==o?(T=$=>at(`${o}/domains/${encodeURIComponent($)}`,"DELETE"),e[12]=o,e[13]=T):T=e[13];let V;e[14]!==S||e[15]!==n?(V=()=>{S(),je.success(n("mainPanelTabs.hostingTab.toastDomainDeleted")),x(null)},e[14]=S,e[15]=n,e[16]=V):V=e[16];let q;e[17]!==T||e[18]!==V?(q={mutationFn:T,onSuccess:V,onError:fn},e[17]=T,e[18]=V,e[19]=q):q=e[19];const F=lt(q);let v;e[20]!==f||e[21]!==j||e[22]!==n?(v=()=>{const $=f.trim().toLowerCase();if(!$){je.error(n("mainPanelTabs.hostingTab.errorDomainHostRequired"));return}const se=Qs($);if(se){je.error(se);return}j.mutate({host:$})},e[20]=f,e[21]=j,e[22]=n,e[23]=v):v=e[23];const B=v;let A;if(e[24]!==c||e[25]!==f){let $;e[27]!==f?($=se=>({...se,name:f.trim().toLowerCase()||se.name}),e[27]=f,e[28]=$):$=e[28],A=c.map($),e[24]=c,e[25]=f,e[26]=A}else A=e[26];const Q=A;let _,W;e[29]===Symbol.for("react.memo_cache_sentinel")?(_=()=>{u(""),d(!0)},W=t.jsx(Pt,{}),e[29]=_,e[30]=W):(_=e[29],W=e[30]);let J;e[31]!==n?(J=n("mainPanelTabs.hostingTab.addDomain"),e[31]=n,e[32]=J):J=e[32];let U;e[33]!==J?(U=t.jsxs(Ie,{size:"sm",variant:"outline",onClick:_,children:[W,J]}),e[33]=J,e[34]=U):U=e[34];const p=U;let I;e[35]!==n?(I=n("mainPanelTabs.hostingTab.domains"),e[35]=n,e[36]=I):I=e[36];const Y=i.length>0?p:void 0;let D;e[37]!==p||e[38]!==F.isPending||e[39]!==N||e[40]!==i||e[41]!==s||e[42]!==m||e[43]!==n?(D=m?t.jsx(ht,{}):s?t.jsx(Qe,{children:t.jsx(ot,{children:n("mainPanelTabs.hostingTab.domainsError")})}):i.length===0?t.jsx(Qe,{children:t.jsx(Ze,{icon:t.jsx(At,{className:"size-5"}),title:n("mainPanelTabs.hostingTab.noDomains"),className:"py-10",buttonComponent:p})}):t.jsx(Qe,{children:i.map(($,se)=>{const Se=!$.canonical&&($.dns?.length??0)>0,Te=N===$.host;return t.jsxs("div",{children:[t.jsxs(pt,{children:[Se?t.jsx(Qt,{open:Te,onClick:()=>C(Te?null:$.host)}):t.jsx(At,{className:"size-4 shrink-0 text-muted-foreground/60"}),t.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-2",children:[t.jsx("span",{className:"truncate font-mono text-xs",children:$.host}),$.canonical&&t.jsx(Re,{variant:"outline",children:n("mainPanelTabs.hostingTab.canonical")})]}),t.jsx(mn,{domain:$}),!$.canonical&&t.jsx(et,{label:n("mainPanelTabs.hostingTab.deleteDomain"),onClick:()=>x($.host),disabled:F.isPending,className:"text-muted-foreground",children:t.jsx(vt,{})})]}),Se&&t.jsx(gs,{open:Te,children:t.jsx(ts,{records:$.dns??[]})})]},`${$.host}-${se}`)})}),e[37]=p,e[38]=F.isPending,e[39]=N,e[40]=i,e[41]=s,e[42]=m,e[43]=n,e[44]=D):D=e[44];let G;e[45]!==n?(G=n("mainPanelTabs.hostingTab.addDomainTitle"),e[45]=n,e[46]=G):G=e[46];let O;e[47]!==G?(O=t.jsx(yt,{children:t.jsx(St,{children:G})}),e[47]=G,e[48]=O):O=e[48];let k;e[49]!==B?(k=$=>{$.preventDefault(),B()},e[49]=B,e[50]=k):k=e[50];let E;e[51]!==n?(E=n("mainPanelTabs.hostingTab.colHost"),e[51]=n,e[52]=E):E=e[52];let H;e[53]!==E?(H=t.jsx(Xe,{htmlFor:"domain-host",children:E}),e[53]=E,e[54]=H):H=e[54];let X;e[55]!==n?(X=n("mainPanelTabs.hostingTab.domainHostPlaceholder"),e[55]=n,e[56]=X):X=e[56];let te;e[57]===Symbol.for("react.memo_cache_sentinel")?(te=$=>u($.target.value),e[57]=te):te=e[57];let K;e[58]!==f||e[59]!==j.isPending||e[60]!==X?(K=t.jsx(it,{id:"domain-host",placeholder:X,value:f,onChange:te,className:"font-mono text-xs",autoComplete:"off",disabled:j.isPending}),e[58]=f,e[59]=j.isPending,e[60]=X,e[61]=K):K=e[61];let ne;e[62]!==H||e[63]!==K?(ne=t.jsxs("div",{className:"flex flex-col gap-2",children:[H,K]}),e[62]=H,e[63]=K,e[64]=ne):ne=e[64];let ie;e[65]!==f||e[66]!==Q?(ie=f.trim()&&t.jsx("div",{className:"rounded-lg border border-border bg-muted/30 p-3",children:t.jsx(ts,{records:Q})}),e[65]=f,e[66]=Q,e[67]=ie):ie=e[67];let Pe;e[68]===Symbol.for("react.memo_cache_sentinel")?(Pe=()=>d(!1),e[68]=Pe):Pe=e[68];const Ce=j.isPending;let ce;e[69]!==n?(ce=n("mainPanelTabs.hostingTab.cancel"),e[69]=n,e[70]=ce):ce=e[70];let be;e[71]!==j.isPending||e[72]!==ce?(be=t.jsx(Ie,{variant:"outline",type:"button",onClick:Pe,disabled:Ce,children:ce}),e[71]=j.isPending,e[72]=ce,e[73]=be):be=e[73];let le;e[74]!==f||e[75]!==j.isPending?(le=j.isPending||!f.trim(),e[74]=f,e[75]=j.isPending,e[76]=le):le=e[76];let ae;e[77]!==j.isPending||e[78]!==n?(ae=j.isPending?n("mainPanelTabs.hostingTab.saving"):n("mainPanelTabs.hostingTab.save"),e[77]=j.isPending,e[78]=n,e[79]=ae):ae=e[79];let me;e[80]!==le||e[81]!==ae?(me=t.jsx(Ie,{type:"submit",disabled:le,children:ae}),e[80]=le,e[81]=ae,e[82]=me):me=e[82];let De;e[83]!==be||e[84]!==me?(De=t.jsxs(Nt,{children:[be,me]}),e[83]=be,e[84]=me,e[85]=De):De=e[85];let de;e[86]!==k||e[87]!==ne||e[88]!==ie||e[89]!==De?(de=t.jsxs("form",{className:"flex flex-col gap-4",onSubmit:k,children:[ne,ie,De]}),e[86]=k,e[87]=ne,e[88]=ie,e[89]=De,e[90]=de):de=e[90];let fe;e[91]!==O||e[92]!==de?(fe=t.jsxs(Ct,{className:"sm:max-w-md",children:[O,de]}),e[91]=O,e[92]=de,e[93]=fe):fe=e[93];let oe;e[94]!==g||e[95]!==fe?(oe=t.jsx(Dt,{open:g,onOpenChange:d,children:fe}),e[94]=g,e[95]=fe,e[96]=oe):oe=e[96];const pe=b!=null;let ue;e[97]===Symbol.for("react.memo_cache_sentinel")?(ue=$=>{$||x(null)},e[97]=ue):ue=e[97];let he;e[98]!==n?(he=n("mainPanelTabs.hostingTab.confirmDeleteDomainTitle"),e[98]=n,e[99]=he):he=e[99];const ve=b??"";let ye;e[100]!==n||e[101]!==ve?(ye=n("mainPanelTabs.hostingTab.confirmDeleteDomainDescription",{host:ve}),e[100]=n,e[101]=ve,e[102]=ye):ye=e[102];let xe;e[103]!==n?(xe=n("mainPanelTabs.hostingTab.deleteDomain"),e[103]=n,e[104]=xe):xe=e[104];let re;e[105]!==F||e[106]!==b?(re=()=>{b&&F.mutate(b)},e[105]=F,e[106]=b,e[107]=re):re=e[107];let ge;e[108]!==F.isPending||e[109]!==pe||e[110]!==he||e[111]!==ye||e[112]!==xe||e[113]!==re?(ge=t.jsx(wt,{open:pe,onOpenChange:ue,title:he,description:ye,confirmLabel:xe,pending:F.isPending,onConfirm:re}),e[108]=F.isPending,e[109]=pe,e[110]=he,e[111]=ye,e[112]=xe,e[113]=re,e[114]=ge):ge=e[114];let we;return e[115]!==I||e[116]!==Y||e[117]!==D||e[118]!==oe||e[119]!==ge?(we=t.jsxs(ut,{title:I,actions:Y,children:[D,oe,ge]}),e[115]=I,e[116]=Y,e[117]=D,e[118]=oe,e[119]=ge,e[120]=we):we=e[120],we}function fn(r){return je.error(rt(r))}function un(r){return je.error(rt(r))}function hn(r){const e=ee.c(24),{value:o,onChange:l,disabled:a,className:i}=r,c=Ae();let m;e[0]!==l?(m=N=>l(N==="build"?"build":"runtime"),e[0]=l,e[1]=m):m=e[1];let s;e[2]!==i?(s=xt("h-8",i),e[2]=i,e[3]=s):s=e[3];let n;e[4]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(Ht,{}),e[4]=n):n=e[4];let h;e[5]!==s?(h=t.jsx(Ot,{className:s,children:n}),e[5]=s,e[6]=h):h=e[6];let g;e[7]!==c?(g=c("mainPanelTabs.hostingTab.secretScopeRuntime"),e[7]=c,e[8]=g):g=e[8];let d;e[9]!==g?(d=t.jsx(ft,{value:"runtime",children:g}),e[9]=g,e[10]=d):d=e[10];let f;e[11]!==c?(f=c("mainPanelTabs.hostingTab.secretScopeBuild"),e[11]=c,e[12]=f):f=e[12];let u;e[13]!==f?(u=t.jsx(ft,{value:"build",children:f}),e[13]=f,e[14]=u):u=e[14];let b;e[15]!==d||e[16]!==u?(b=t.jsxs(qt,{children:[d,u]}),e[15]=d,e[16]=u,e[17]=b):b=e[17];let x;return e[18]!==a||e[19]!==m||e[20]!==h||e[21]!==b||e[22]!==o?(x=t.jsxs(Mt,{value:o,onValueChange:m,disabled:a,children:[h,b]}),e[18]=a,e[19]=m,e[20]=h,e[21]=b,e[22]=o,e[23]=x):x=e[23],x}function xn(r){const e=ee.c(151),{base:o,orgSlug:l,site:a,envVars:i,codeVars:c,isLoading:m,error:s}=r,n=Ae(),h=bt(),[g,d]=Z.useState(!1),[f,u]=Z.useState(""),[b,x]=Z.useState(""),[N,C]=Z.useState("runtime"),[P,S]=Z.useState(null),[y,R]=Z.useState(""),[w,j]=Z.useState(null);let T;e[0]===Symbol.for("react.memo_cache_sentinel")?(T=new Set,e[0]=T):T=e[0];const[V,q]=Z.useState(T);let F;e[1]===Symbol.for("react.memo_cache_sentinel")?(F=L=>{q(Ne=>{const We=new Set(Ne);return We.has(L)?We.delete(L):We.add(L),We})},e[1]=F):F=e[1];const v=F;let B;e[2]!==o?(B=L=>at(`${o}/env`,"PUT",{vars:L}),e[2]=o,e[3]=B):B=e[3];let A;e[4]!==l||e[5]!==h||e[6]!==a||e[7]!==n?(A=()=>{h.invalidateQueries({queryKey:Ye.hostingEnv(l,a)}),je.success(n("mainPanelTabs.hostingTab.toastEnvSaved"))},e[4]=l,e[5]=h,e[6]=a,e[7]=n,e[8]=A):A=e[8];let Q;e[9]!==B||e[10]!==A?(Q={mutationFn:B,onSuccess:A,onError:bn},e[9]=B,e[10]=A,e[11]=Q):Q=e[11];const _=lt(Q);let W;e[12]!==f||e[13]!==N||e[14]!==b||e[15]!==_||e[16]!==i||e[17]!==n?(W=()=>{const L=f.trim();if(!L){je.error(n("mainPanelTabs.hostingTab.errorEnvNameRequired"));return}if(i.some(Ne=>Lt(Ne,{name:L,scope:N}))){je.error(n("mainPanelTabs.hostingTab.errorEnvNameDuplicate"));return}_.mutate([...i,{name:L,value:b,scope:N}],{onSuccess:()=>{d(!1),u(""),x(""),C("runtime")}})},e[12]=f,e[13]=N,e[14]=b,e[15]=_,e[16]=i,e[17]=n,e[18]=W):W=e[18];const J=W;let U;e[19]!==y||e[20]!==_||e[21]!==i?(U=L=>{_.mutate(i.map(Ne=>Lt(Ne,L)?{name:L.name,value:y,scope:L.scope}:Ne),{onSuccess:()=>S(null)})},e[19]=y,e[20]=_,e[21]=i,e[22]=U):U=e[22];const p=U;let I;e[23]!==w||e[24]!==_||e[25]!==i?(I=()=>{w&&_.mutate(i.filter(L=>!Lt(L,w)),{onSuccess:()=>j(null)})},e[23]=w,e[24]=_,e[25]=i,e[26]=I):I=e[26];const Y=I,D=_.isPending;let G;e[27]===Symbol.for("react.memo_cache_sentinel")?(G=()=>{u(""),x(""),C("runtime")},e[27]=G):G=e[27];const O=G;let k,E;e[28]===Symbol.for("react.memo_cache_sentinel")?(k=()=>d(!0),E=t.jsx(Pt,{}),e[28]=k,e[29]=E):(k=e[28],E=e[29]);let H;e[30]!==n?(H=n("mainPanelTabs.hostingTab.addVariable"),e[30]=n,e[31]=H):H=e[31];let X;e[32]!==H?(X=t.jsxs(Ie,{size:"sm",variant:"outline",onClick:k,children:[E,H]}),e[32]=H,e[33]=X):X=e[33];const te=X;let K;e[34]!==n?(K=n("mainPanelTabs.hostingTab.env"),e[34]=n,e[35]=K):K=e[35];const ne=i.length>0||c.length>0?te:void 0;let ie;e[36]!==te||e[37]!==c||e[38]!==y||e[39]!==P?.name||e[40]!==P?.scope||e[41]!==i||e[42]!==s||e[43]!==p||e[44]!==m||e[45]!==D||e[46]!==V||e[47]!==n?(ie=m?t.jsx(ht,{}):s?t.jsx(Qe,{children:t.jsx(ot,{children:n("mainPanelTabs.hostingTab.envError")})}):i.length===0&&c.length===0?t.jsx(Qe,{children:t.jsx(Ze,{icon:t.jsx(Jt,{className:"size-5"}),title:n("mainPanelTabs.hostingTab.noEnv"),className:"py-10",buttonComponent:te})}):t.jsxs(Qe,{children:[i.map(L=>{const Ne=L.scope==="build"?"build":"runtime",We=`${L.name}:${Ne}`,tt=P?.name===L.name&&P?.scope===Ne,st=V.has(We);return t.jsxs(pt,{children:[t.jsxs("div",{className:"flex min-w-0 flex-1 basis-0 items-center gap-2",children:[t.jsx("div",{className:"w-20 shrink-0",children:t.jsx(bs,{scope:Ne})}),t.jsx("span",{className:"truncate font-mono text-xs",children:L.name})]}),t.jsx("div",{className:"flex min-w-0 flex-1 basis-0 items-center justify-end gap-2",children:tt?t.jsxs(t.Fragment,{children:[t.jsx(it,{value:y,onChange:z=>R(z.target.value),onKeyDown:z=>{z.key==="Enter"&&p({name:L.name,scope:Ne}),z.key==="Escape"&&S(null)},autoFocus:!0,className:"h-8 font-mono text-xs"}),t.jsx(Ie,{size:"sm",onClick:()=>p({name:L.name,scope:Ne}),disabled:D,children:n("mainPanelTabs.hostingTab.save")}),t.jsx(Ie,{size:"sm",variant:"ghost",onClick:()=>S(null),disabled:D,children:n("mainPanelTabs.hostingTab.cancel")})]}):t.jsxs(t.Fragment,{children:[t.jsx(et,{label:n(st?"mainPanelTabs.hostingTab.hideValue":"mainPanelTabs.hostingTab.showValue"),onClick:()=>v(We),className:"text-muted-foreground",children:st?t.jsx(Hs,{}):t.jsx(Os,{})}),st?t.jsx("button",{type:"button",onClick:()=>{S({name:L.name,scope:Ne}),R(L.value)},title:n("mainPanelTabs.hostingTab.editValue"),className:"min-w-0 truncate rounded px-1.5 py-0.5 text-right font-mono text-xs text-muted-foreground hover:bg-muted hover:text-foreground",children:L.value||"—"}):t.jsx("span",{className:"min-w-0 truncate px-1.5 py-0.5 text-right font-mono text-xs text-muted-foreground/60",children:L.value?"••••••••••":"—"})]})}),t.jsx(et,{label:n("mainPanelTabs.hostingTab.deleteVariable"),onClick:()=>j({name:L.name,scope:Ne}),disabled:D,className:"text-muted-foreground",children:t.jsx(vt,{})})]},We)}),c.length>0&&t.jsxs(Bt,{children:[t.jsx(Bs,{asChild:!0,children:t.jsxs("button",{type:"button",className:"group flex w-full items-center gap-2 px-4 py-2.5 text-left text-xs text-muted-foreground hover:bg-muted/40",children:[t.jsx(hs,{className:"size-4 transition-transform duration-200 group-data-[state=open]:rotate-90 motion-reduce:transition-none"}),t.jsx(Jt,{className:"size-4"}),n("mainPanelTabs.hostingTab.codeVarsToggle",{count:String(c.length)})]})}),t.jsx(Vt,{children:t.jsx("div",{className:"divide-y divide-border/60 border-t border-border bg-muted/30",children:c.map(gn)})})]})]}),e[36]=te,e[37]=c,e[38]=y,e[39]=P?.name,e[40]=P?.scope,e[41]=i,e[42]=s,e[43]=p,e[44]=m,e[45]=D,e[46]=V,e[47]=n,e[48]=ie):ie=e[48];let Pe;e[49]===Symbol.for("react.memo_cache_sentinel")?(Pe=L=>{d(L),L||O()},e[49]=Pe):Pe=e[49];let Ce;e[50]!==n?(Ce=n("mainPanelTabs.hostingTab.addVariable"),e[50]=n,e[51]=Ce):Ce=e[51];let ce;e[52]!==Ce?(ce=t.jsx(yt,{children:t.jsx(St,{children:Ce})}),e[52]=Ce,e[53]=ce):ce=e[53];let be;e[54]!==J?(be=L=>{L.preventDefault(),J()},e[54]=J,e[55]=be):be=e[55];let le;e[56]!==n?(le=n("mainPanelTabs.hostingTab.colName"),e[56]=n,e[57]=le):le=e[57];let ae;e[58]!==le?(ae=t.jsx(Xe,{htmlFor:"env-name",children:le}),e[58]=le,e[59]=ae):ae=e[59];let me;e[60]!==n?(me=n("mainPanelTabs.hostingTab.envNamePlaceholder"),e[60]=n,e[61]=me):me=e[61];let De;e[62]===Symbol.for("react.memo_cache_sentinel")?(De=L=>u(L.target.value),e[62]=De):De=e[62];let de;e[63]!==f||e[64]!==D||e[65]!==me?(de=t.jsx(it,{id:"env-name",placeholder:me,value:f,onChange:De,className:"font-mono text-xs",autoComplete:"off",disabled:D}),e[63]=f,e[64]=D,e[65]=me,e[66]=de):de=e[66];let fe;e[67]!==ae||e[68]!==de?(fe=t.jsxs("div",{className:"flex flex-col gap-2",children:[ae,de]}),e[67]=ae,e[68]=de,e[69]=fe):fe=e[69];let oe;e[70]!==n?(oe=n("mainPanelTabs.hostingTab.colValue"),e[70]=n,e[71]=oe):oe=e[71];let pe;e[72]!==oe?(pe=t.jsx(Xe,{htmlFor:"env-value",children:oe}),e[72]=oe,e[73]=pe):pe=e[73];let ue;e[74]!==n?(ue=n("mainPanelTabs.hostingTab.envValuePlaceholder"),e[74]=n,e[75]=ue):ue=e[75];let he;e[76]===Symbol.for("react.memo_cache_sentinel")?(he=L=>x(L.target.value),e[76]=he):he=e[76];let ve;e[77]!==b||e[78]!==D||e[79]!==ue?(ve=t.jsx(it,{id:"env-value",placeholder:ue,value:b,onChange:he,className:"font-mono text-xs",autoComplete:"off",disabled:D}),e[77]=b,e[78]=D,e[79]=ue,e[80]=ve):ve=e[80];let ye;e[81]!==pe||e[82]!==ve?(ye=t.jsxs("div",{className:"flex flex-col gap-2",children:[pe,ve]}),e[81]=pe,e[82]=ve,e[83]=ye):ye=e[83];let xe;e[84]!==n?(xe=n("mainPanelTabs.hostingTab.secretScope"),e[84]=n,e[85]=xe):xe=e[85];let re;e[86]!==xe?(re=t.jsx(Xe,{children:xe}),e[86]=xe,e[87]=re):re=e[87];let ge;e[88]!==N||e[89]!==D?(ge=t.jsx(hn,{value:N,onChange:C,disabled:D,className:"w-full"}),e[88]=N,e[89]=D,e[90]=ge):ge=e[90];let we;e[91]!==N||e[92]!==n?(we=n(N==="build"?"mainPanelTabs.hostingTab.secretScopeBuildHint":"mainPanelTabs.hostingTab.secretScopeRuntimeHint"),e[91]=N,e[92]=n,e[93]=we):we=e[93];let $;e[94]!==we?($=t.jsx("p",{className:"text-xs text-muted-foreground",children:we}),e[94]=we,e[95]=$):$=e[95];let se;e[96]!==re||e[97]!==ge||e[98]!==$?(se=t.jsxs("div",{className:"flex flex-col gap-2",children:[re,ge,$]}),e[96]=re,e[97]=ge,e[98]=$,e[99]=se):se=e[99];let Se;e[100]===Symbol.for("react.memo_cache_sentinel")?(Se=()=>{d(!1),O()},e[100]=Se):Se=e[100];let Te;e[101]!==n?(Te=n("mainPanelTabs.hostingTab.cancel"),e[101]=n,e[102]=Te):Te=e[102];let $e;e[103]!==D||e[104]!==Te?($e=t.jsx(Ie,{variant:"outline",type:"button",onClick:Se,disabled:D,children:Te}),e[103]=D,e[104]=Te,e[105]=$e):$e=e[105];let ze;e[106]!==f||e[107]!==D?(ze=D||!f.trim(),e[106]=f,e[107]=D,e[108]=ze):ze=e[108];let Ke;e[109]!==D||e[110]!==n?(Ke=n(D?"mainPanelTabs.hostingTab.saving":"mainPanelTabs.hostingTab.add"),e[109]=D,e[110]=n,e[111]=Ke):Ke=e[111];let Le;e[112]!==ze||e[113]!==Ke?(Le=t.jsx(Ie,{type:"submit",disabled:ze,children:Ke}),e[112]=ze,e[113]=Ke,e[114]=Le):Le=e[114];let _e;e[115]!==$e||e[116]!==Le?(_e=t.jsxs(Nt,{children:[$e,Le]}),e[115]=$e,e[116]=Le,e[117]=_e):_e=e[117];let He;e[118]!==be||e[119]!==fe||e[120]!==ye||e[121]!==se||e[122]!==_e?(He=t.jsxs("form",{className:"flex flex-col gap-4",onSubmit:be,children:[fe,ye,se,_e]}),e[118]=be,e[119]=fe,e[120]=ye,e[121]=se,e[122]=_e,e[123]=He):He=e[123];let Ve;e[124]!==ce||e[125]!==He?(Ve=t.jsxs(Ct,{className:"sm:max-w-md",children:[ce,He]}),e[124]=ce,e[125]=He,e[126]=Ve):Ve=e[126];let ke;e[127]!==g||e[128]!==Ve?(ke=t.jsx(Dt,{open:g,onOpenChange:Pe,children:Ve}),e[127]=g,e[128]=Ve,e[129]=ke):ke=e[129];const Je=w!=null;let Be;e[130]===Symbol.for("react.memo_cache_sentinel")?(Be=L=>{L||j(null)},e[130]=Be):Be=e[130];let Ee;e[131]!==n?(Ee=n("mainPanelTabs.hostingTab.confirmDeleteVariableTitle"),e[131]=n,e[132]=Ee):Ee=e[132];const Oe=w?.name??"";let qe;e[133]!==n||e[134]!==Oe?(qe=n("mainPanelTabs.hostingTab.confirmDeleteVariableDescription",{name:Oe}),e[133]=n,e[134]=Oe,e[135]=qe):qe=e[135];let Ue;e[136]!==n?(Ue=n("mainPanelTabs.hostingTab.deleteVariable"),e[136]=n,e[137]=Ue):Ue=e[137];let M;e[138]!==Y||e[139]!==D||e[140]!==Je||e[141]!==Ee||e[142]!==qe||e[143]!==Ue?(M=t.jsx(wt,{open:Je,onOpenChange:Be,title:Ee,description:qe,confirmLabel:Ue,pending:D,onConfirm:Y}),e[138]=Y,e[139]=D,e[140]=Je,e[141]=Ee,e[142]=qe,e[143]=Ue,e[144]=M):M=e[144];let Ge;return e[145]!==K||e[146]!==ne||e[147]!==ie||e[148]!==ke||e[149]!==M?(Ge=t.jsxs(ut,{title:K,actions:ne,children:[ie,ke,M]}),e[145]=K,e[146]=ne,e[147]=ie,e[148]=ke,e[149]=M,e[150]=Ge):Ge=e[150],Ge}function gn(r){return t.jsxs("div",{className:"flex items-center gap-3 px-4 py-2 font-mono text-xs",children:[t.jsx("span",{className:"flex-1 basis-0 truncate",children:r.name}),t.jsx("span",{className:"flex-1 basis-0 truncate text-right text-muted-foreground",children:r.value})]},r.name)}function bn(r){return je.error(rt(r))}function pn(r){const e=ee.c(6),{type:o}=r,l=Ae(),a=o==="permanent"?"secondary":"outline";let i;e[0]!==l||e[1]!==o?(i=l(o==="permanent"?"mainPanelTabs.hostingTab.permanent":"mainPanelTabs.hostingTab.temporary"),e[0]=l,e[1]=o,e[2]=i):i=e[2];let c;return e[3]!==a||e[4]!==i?(c=t.jsx(Re,{variant:a,children:i}),e[3]=a,e[4]=i,e[5]=c):c=e[5],c}function Tn(r){const e=ee.c(163),{base:o,orgSlug:l,site:a,redirects:i,isLoading:c,error:m}=r,s=Ae(),n=bt(),[h,g]=Z.useState(!1),[d,f]=Z.useState(null),[u,b]=Z.useState(""),[x,N]=Z.useState(""),[C,P]=Z.useState("permanent"),[S,y]=Z.useState(null),[R,w]=Z.useState(null);let j;e[0]!==l||e[1]!==n||e[2]!==a?(j=()=>n.invalidateQueries({queryKey:Ye.hostingRedirects(l,a)}),e[0]=l,e[1]=n,e[2]=a,e[3]=j):j=e[3];const T=j;let V;e[4]!==o?(V=z=>at(`${o}/redirects`,"PUT",z),e[4]=o,e[5]=V):V=e[5];let q;e[6]!==T||e[7]!==s?(q=()=>{T(),je.success(s("mainPanelTabs.hostingTab.toastRedirectSaved")),g(!1)},e[6]=T,e[7]=s,e[8]=q):q=e[8];let F;e[9]!==V||e[10]!==q?(F={mutationFn:V,onSuccess:q,onError:Pn},e[9]=V,e[10]=q,e[11]=F):F=e[11];const v=lt(F);let B;e[12]!==o?(B=z=>at(`${o}/redirects/${encodeURIComponent(z)}`,"DELETE"),e[12]=o,e[13]=B):B=e[13];let A;e[14]!==T||e[15]!==s?(A=()=>{T(),je.success(s("mainPanelTabs.hostingTab.toastRedirectDeleted")),y(null)},e[14]=T,e[15]=s,e[16]=A):A=e[16];let Q;e[17]!==B||e[18]!==A?(Q={mutationFn:B,onSuccess:A,onError:jn},e[17]=B,e[18]=A,e[19]=Q):Q=e[19];const _=lt(Q);let W;e[20]===Symbol.for("react.memo_cache_sentinel")?(W=()=>{f(null),b(""),N(""),P("permanent"),g(!0)},e[20]=W):W=e[20];const J=W;let U;e[21]===Symbol.for("react.memo_cache_sentinel")?(U=z=>{f(z.from),b(z.from),N(z.to),P(z.type==="temporary"?"temporary":"permanent"),g(!0)},e[21]=U):U=e[21];const p=U;let I;e[22]!==u||e[23]!==x||e[24]!==C||e[25]!==v||e[26]!==s?(I=()=>{const z=u.trim(),Tt=x.trim();if(!z||!Tt){je.error(s("mainPanelTabs.hostingTab.errorRedirectFieldsRequired"));return}v.mutate({from:z,to:Tt,type:C})},e[22]=u,e[23]=x,e[24]=C,e[25]=v,e[26]=s,e[27]=I):I=e[27];const Y=I;let D;e[28]===Symbol.for("react.memo_cache_sentinel")?(D=t.jsx(Pt,{}),e[28]=D):D=e[28];let G;e[29]!==s?(G=s("mainPanelTabs.hostingTab.addRedirect"),e[29]=s,e[30]=G):G=e[30];let O;e[31]!==G?(O=t.jsxs(Ie,{size:"sm",variant:"outline",onClick:J,children:[D,G]}),e[31]=G,e[32]=O):O=e[32];const k=O;let E;e[33]!==s?(E=s("mainPanelTabs.hostingTab.redirects"),e[33]=s,e[34]=E):E=e[34];const H=i.length>0?k:void 0;let X;e[35]!==k||e[36]!==_.isPending||e[37]!==R||e[38]!==m||e[39]!==c||e[40]!==v.isPending||e[41]!==i||e[42]!==s?(X=c?t.jsx(ht,{}):m?t.jsx(Qe,{children:t.jsx(ot,{children:s("mainPanelTabs.hostingTab.redirectsError")})}):i.length===0?t.jsx(Qe,{children:t.jsx(Ze,{icon:t.jsx(Yt,{className:"size-5"}),title:s("mainPanelTabs.hostingTab.noRedirects"),className:"py-10",buttonComponent:k})}):t.jsx(Qe,{children:i.map((z,Tt)=>{const Ut=Zt(z.from),$t=R===z.from;return t.jsxs("div",{children:[t.jsxs(pt,{children:[Ut?t.jsx(Qt,{open:$t,onClick:()=>w($t?null:z.from)}):t.jsx(Yt,{className:"size-4 shrink-0 text-muted-foreground/60"}),t.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-2 font-mono text-xs",children:[t.jsx("span",{className:"truncate",children:z.from}),t.jsx(qs,{className:"size-3.5 shrink-0 text-muted-foreground/60"}),t.jsx("span",{className:"truncate text-muted-foreground",children:z.to})]}),t.jsx(pn,{type:z.type}),t.jsx(et,{label:s("mainPanelTabs.hostingTab.editRedirect"),onClick:()=>p(z),disabled:v.isPending,className:"text-muted-foreground",children:t.jsx(ks,{})}),t.jsx(et,{label:s("mainPanelTabs.hostingTab.deleteRedirect"),onClick:()=>y(z.from),disabled:_.isPending,className:"-ml-1 text-muted-foreground",children:t.jsx(vt,{})})]}),Ut&&t.jsx(gs,{open:$t,children:t.jsx(es,{from:z.from,source:z.source})})]},z.id??`${z.from}-${Tt}`)})}),e[35]=k,e[36]=_.isPending,e[37]=R,e[38]=m,e[39]=c,e[40]=v.isPending,e[41]=i,e[42]=s,e[43]=X):X=e[43];let te;e[44]!==d||e[45]!==s?(te=d!=null?s("mainPanelTabs.hostingTab.editRedirectTitle"):s("mainPanelTabs.hostingTab.addRedirectTitle"),e[44]=d,e[45]=s,e[46]=te):te=e[46];let K;e[47]!==te?(K=t.jsx(yt,{children:t.jsx(St,{children:te})}),e[47]=te,e[48]=K):K=e[48];let ne;e[49]!==Y?(ne=z=>{z.preventDefault(),Y()},e[49]=Y,e[50]=ne):ne=e[50];let ie;e[51]!==s?(ie=s("mainPanelTabs.hostingTab.colFrom"),e[51]=s,e[52]=ie):ie=e[52];let Pe;e[53]!==ie?(Pe=t.jsx(Xe,{htmlFor:"redirect-from",children:ie}),e[53]=ie,e[54]=Pe):Pe=e[54];let Ce;e[55]!==s?(Ce=s("mainPanelTabs.hostingTab.redirectFromPlaceholder"),e[55]=s,e[56]=Ce):Ce=e[56];let ce;e[57]===Symbol.for("react.memo_cache_sentinel")?(ce=z=>b(z.target.value),e[57]=ce):ce=e[57];const be=d!=null||v.isPending;let le;e[58]!==u||e[59]!==Ce||e[60]!==be?(le=t.jsx(it,{id:"redirect-from",placeholder:Ce,value:u,onChange:ce,className:"font-mono text-xs",disabled:be}),e[58]=u,e[59]=Ce,e[60]=be,e[61]=le):le=e[61];let ae;e[62]!==Pe||e[63]!==le?(ae=t.jsxs("div",{className:"flex flex-col gap-2",children:[Pe,le]}),e[62]=Pe,e[63]=le,e[64]=ae):ae=e[64];let me;e[65]!==s?(me=s("mainPanelTabs.hostingTab.colTo"),e[65]=s,e[66]=me):me=e[66];let De;e[67]!==me?(De=t.jsx(Xe,{htmlFor:"redirect-to",children:me}),e[67]=me,e[68]=De):De=e[68];let de;e[69]!==s?(de=s("mainPanelTabs.hostingTab.redirectToPlaceholder"),e[69]=s,e[70]=de):de=e[70];let fe;e[71]===Symbol.for("react.memo_cache_sentinel")?(fe=z=>N(z.target.value),e[71]=fe):fe=e[71];let oe;e[72]!==x||e[73]!==v.isPending||e[74]!==de?(oe=t.jsx(it,{id:"redirect-to",placeholder:de,value:x,onChange:fe,className:"font-mono text-xs",disabled:v.isPending}),e[72]=x,e[73]=v.isPending,e[74]=de,e[75]=oe):oe=e[75];let pe;e[76]!==De||e[77]!==oe?(pe=t.jsxs("div",{className:"flex flex-col gap-2",children:[De,oe]}),e[76]=De,e[77]=oe,e[78]=pe):pe=e[78];let ue;e[79]!==s?(ue=s("mainPanelTabs.hostingTab.colType"),e[79]=s,e[80]=ue):ue=e[80];let he;e[81]!==ue?(he=t.jsx(Xe,{children:ue}),e[81]=ue,e[82]=he):he=e[82];let ve;e[83]===Symbol.for("react.memo_cache_sentinel")?(ve=z=>P(z==="temporary"?"temporary":"permanent"),e[83]=ve):ve=e[83];const ye=v.isPending;let xe;e[84]===Symbol.for("react.memo_cache_sentinel")?(xe=t.jsx(Ot,{className:"w-full",children:t.jsx(Ht,{})}),e[84]=xe):xe=e[84];let re;e[85]!==s?(re=s("mainPanelTabs.hostingTab.permanent"),e[85]=s,e[86]=re):re=e[86];let ge;e[87]!==re?(ge=t.jsx(ft,{value:"permanent",children:re}),e[87]=re,e[88]=ge):ge=e[88];let we;e[89]!==s?(we=s("mainPanelTabs.hostingTab.temporary"),e[89]=s,e[90]=we):we=e[90];let $;e[91]!==we?($=t.jsx(ft,{value:"temporary",children:we}),e[91]=we,e[92]=$):$=e[92];let se;e[93]!==ge||e[94]!==$?(se=t.jsxs(qt,{children:[ge,$]}),e[93]=ge,e[94]=$,e[95]=se):se=e[95];let Se;e[96]!==C||e[97]!==v.isPending||e[98]!==se?(Se=t.jsxs(Mt,{value:C,onValueChange:ve,disabled:ye,children:[xe,se]}),e[96]=C,e[97]=v.isPending,e[98]=se,e[99]=Se):Se=e[99];let Te;e[100]!==he||e[101]!==Se?(Te=t.jsxs("div",{className:"flex flex-col gap-2",children:[he,Se]}),e[100]=he,e[101]=Se,e[102]=Te):Te=e[102];let $e;e[103]!==d||e[104]!==u||e[105]!==i?($e=Zt(u)&&t.jsx("div",{className:"rounded-lg border border-border bg-muted/30 p-3",children:t.jsx(es,{from:u,source:i.find(z=>z.from===d)?.source})}),e[103]=d,e[104]=u,e[105]=i,e[106]=$e):$e=e[106];let ze;e[107]===Symbol.for("react.memo_cache_sentinel")?(ze=()=>g(!1),e[107]=ze):ze=e[107];const Ke=v.isPending;let Le;e[108]!==s?(Le=s("mainPanelTabs.hostingTab.cancel"),e[108]=s,e[109]=Le):Le=e[109];let _e;e[110]!==v.isPending||e[111]!==Le?(_e=t.jsx(Ie,{variant:"outline",type:"button",onClick:ze,disabled:Ke,children:Le}),e[110]=v.isPending,e[111]=Le,e[112]=_e):_e=e[112];let He;e[113]!==u||e[114]!==x||e[115]!==v.isPending?(He=v.isPending||!u.trim()||!x.trim(),e[113]=u,e[114]=x,e[115]=v.isPending,e[116]=He):He=e[116];let Ve;e[117]!==v.isPending||e[118]!==s?(Ve=v.isPending?s("mainPanelTabs.hostingTab.saving"):s("mainPanelTabs.hostingTab.save"),e[117]=v.isPending,e[118]=s,e[119]=Ve):Ve=e[119];let ke;e[120]!==He||e[121]!==Ve?(ke=t.jsx(Ie,{type:"submit",disabled:He,children:Ve}),e[120]=He,e[121]=Ve,e[122]=ke):ke=e[122];let Je;e[123]!==_e||e[124]!==ke?(Je=t.jsxs(Nt,{children:[_e,ke]}),e[123]=_e,e[124]=ke,e[125]=Je):Je=e[125];let Be;e[126]!==ne||e[127]!==ae||e[128]!==pe||e[129]!==Te||e[130]!==$e||e[131]!==Je?(Be=t.jsxs("form",{className:"flex flex-col gap-4",onSubmit:ne,children:[ae,pe,Te,$e,Je]}),e[126]=ne,e[127]=ae,e[128]=pe,e[129]=Te,e[130]=$e,e[131]=Je,e[132]=Be):Be=e[132];let Ee;e[133]!==K||e[134]!==Be?(Ee=t.jsxs(Ct,{className:"sm:max-w-md",children:[K,Be]}),e[133]=K,e[134]=Be,e[135]=Ee):Ee=e[135];let Oe;e[136]!==h||e[137]!==Ee?(Oe=t.jsx(Dt,{open:h,onOpenChange:g,children:Ee}),e[136]=h,e[137]=Ee,e[138]=Oe):Oe=e[138];const qe=S!=null;let Ue;e[139]===Symbol.for("react.memo_cache_sentinel")?(Ue=z=>{z||y(null)},e[139]=Ue):Ue=e[139];let M;e[140]!==s?(M=s("mainPanelTabs.hostingTab.confirmDeleteRedirectTitle"),e[140]=s,e[141]=M):M=e[141];const Ge=S??"";let L;e[142]!==s||e[143]!==Ge?(L=s("mainPanelTabs.hostingTab.confirmDeleteRedirectDescription",{from:Ge}),e[142]=s,e[143]=Ge,e[144]=L):L=e[144];let Ne;e[145]!==s?(Ne=s("mainPanelTabs.hostingTab.deleteRedirect"),e[145]=s,e[146]=Ne):Ne=e[146];let We;e[147]!==_||e[148]!==S?(We=()=>{S&&_.mutate(S)},e[147]=_,e[148]=S,e[149]=We):We=e[149];let tt;e[150]!==_.isPending||e[151]!==qe||e[152]!==M||e[153]!==L||e[154]!==Ne||e[155]!==We?(tt=t.jsx(wt,{open:qe,onOpenChange:Ue,title:M,description:L,confirmLabel:Ne,pending:_.isPending,onConfirm:We}),e[150]=_.isPending,e[151]=qe,e[152]=M,e[153]=L,e[154]=Ne,e[155]=We,e[156]=tt):tt=e[156];let st;return e[157]!==E||e[158]!==H||e[159]!==X||e[160]!==Oe||e[161]!==tt?(st=t.jsxs(ut,{title:E,actions:H,children:[X,Oe,tt]}),e[157]=E,e[158]=H,e[159]=X,e[160]=Oe,e[161]=tt,e[162]=st):st=e[162],st}function jn(r){return je.error(rt(r))}function Pn(r){return je.error(rt(r))}function vn(r){const e=ee.c(160),{base:o,orgSlug:l,site:a,secrets:i,isLoading:c,error:m}=r,s=Ae(),n=bt(),[h,g]=Z.useState(!1),[d,f]=Z.useState(""),[u,b]=Z.useState(""),[x,N]=Z.useState("runtime"),[C,P]=Z.useState(null);let S;e[0]!==l||e[1]!==n||e[2]!==a?(S=()=>n.invalidateQueries({queryKey:Ye.hostingSecrets(l,a)}),e[0]=l,e[1]=n,e[2]=a,e[3]=S):S=e[3];const y=S;let R;e[4]!==o?(R=M=>at(`${o}/secrets`,"PUT",M),e[4]=o,e[5]=R):R=e[5];let w;e[6]!==y||e[7]!==s?(w=()=>{y(),je.success(s("mainPanelTabs.hostingTab.toastSecretSaved")),g(!1),f(""),b(""),N("runtime")},e[6]=y,e[7]=s,e[8]=w):w=e[8];let j;e[9]!==R||e[10]!==w?(j={mutationFn:R,onSuccess:w,onError:Sn},e[9]=R,e[10]=w,e[11]=j):j=e[11];const T=lt(j);let V;e[12]!==o?(V=M=>at(`${o}/secrets/${encodeURIComponent(M.name)}?scope=${M.scope}`,"DELETE"),e[12]=o,e[13]=V):V=e[13];let q;e[14]!==y||e[15]!==s?(q=()=>{y(),je.success(s("mainPanelTabs.hostingTab.toastSecretDeleted")),P(null)},e[14]=y,e[15]=s,e[16]=q):q=e[16];let F;e[17]!==V||e[18]!==q?(F={mutationFn:V,onSuccess:q,onError:yn},e[17]=V,e[18]=q,e[19]=F):F=e[19];const v=lt(F);let B;e[20]!==d||e[21]!==x||e[22]!==u||e[23]!==T||e[24]!==s?(B=()=>{const M=d.trim();if(!M){je.error(s("mainPanelTabs.hostingTab.errorSecretNameRequired"));return}if(!u){je.error(s("mainPanelTabs.hostingTab.errorSecretValueRequired"));return}T.mutate({name:M,value:u,scope:x})},e[20]=d,e[21]=x,e[22]=u,e[23]=T,e[24]=s,e[25]=B):B=e[25];const A=B;let Q,_;e[26]===Symbol.for("react.memo_cache_sentinel")?(_=()=>g(!0),Q=t.jsx(Pt,{}),e[26]=Q,e[27]=_):(Q=e[26],_=e[27]);let W;e[28]!==s?(W=s("mainPanelTabs.hostingTab.addSecret"),e[28]=s,e[29]=W):W=e[29];let J;e[30]!==W?(J=t.jsxs(Ie,{size:"sm",variant:"outline",onClick:_,children:[Q,W]}),e[30]=W,e[31]=J):J=e[31];const U=J;let p;e[32]!==s?(p=s("mainPanelTabs.hostingTab.secrets"),e[32]=s,e[33]=p):p=e[33];const I=i.length>0?U:void 0;let Y;e[34]!==U||e[35]!==v.isPending||e[36]!==m||e[37]!==c||e[38]!==i||e[39]!==s?(Y=c?t.jsx(ht,{}):m?t.jsx(Qe,{children:t.jsx(ot,{children:s("mainPanelTabs.hostingTab.secretsError")})}):i.length===0?t.jsx(Qe,{children:t.jsx(Ze,{icon:t.jsx(Kt,{className:"size-5"}),title:s("mainPanelTabs.hostingTab.noSecrets"),className:"py-10",buttonComponent:U})}):t.jsx(Qe,{children:i.map(M=>{const Ge=M.scope==="build"?"build":"runtime";return t.jsxs(pt,{children:[t.jsx(Kt,{className:"size-4 shrink-0 text-muted-foreground/60"}),t.jsxs("div",{className:"flex min-w-0 flex-1 items-center gap-2",children:[t.jsx("div",{className:"w-20 shrink-0",children:t.jsx(bs,{scope:Ge})}),t.jsx("span",{className:"truncate font-mono text-xs",children:M.name}),M.origin==="worker"&&t.jsx(Re,{variant:"secondary",children:s("mainPanelTabs.hostingTab.secretOnWorker")})]}),t.jsx("span",{className:"font-mono text-xs text-muted-foreground/60",children:s("mainPanelTabs.hostingTab.secretValueHidden")}),t.jsx(et,{label:s("mainPanelTabs.hostingTab.deleteSecret"),onClick:()=>P({name:M.name,scope:Ge}),disabled:v.isPending,className:"text-muted-foreground",children:t.jsx(vt,{})})]},`${M.name}:${Ge}`)})}),e[34]=U,e[35]=v.isPending,e[36]=m,e[37]=c,e[38]=i,e[39]=s,e[40]=Y):Y=e[40];let D;e[41]!==s?(D=s("mainPanelTabs.hostingTab.addSecretTitle"),e[41]=s,e[42]=D):D=e[42];let G;e[43]!==D?(G=t.jsx(yt,{children:t.jsx(St,{children:D})}),e[43]=D,e[44]=G):G=e[44];let O;e[45]!==A?(O=M=>{M.preventDefault(),A()},e[45]=A,e[46]=O):O=e[46];let k;e[47]!==s?(k=s("mainPanelTabs.hostingTab.colName"),e[47]=s,e[48]=k):k=e[48];let E;e[49]!==k?(E=t.jsx(Xe,{htmlFor:"secret-name",children:k}),e[49]=k,e[50]=E):E=e[50];let H;e[51]!==s?(H=s("mainPanelTabs.hostingTab.secretNamePlaceholder"),e[51]=s,e[52]=H):H=e[52];let X;e[53]===Symbol.for("react.memo_cache_sentinel")?(X=M=>f(M.target.value),e[53]=X):X=e[53];let te;e[54]!==d||e[55]!==T.isPending||e[56]!==H?(te=t.jsx(it,{id:"secret-name",placeholder:H,value:d,onChange:X,className:"font-mono text-xs",autoComplete:"off",disabled:T.isPending}),e[54]=d,e[55]=T.isPending,e[56]=H,e[57]=te):te=e[57];let K;e[58]!==E||e[59]!==te?(K=t.jsxs("div",{className:"flex flex-col gap-2",children:[E,te]}),e[58]=E,e[59]=te,e[60]=K):K=e[60];let ne;e[61]!==s?(ne=s("mainPanelTabs.hostingTab.colValue"),e[61]=s,e[62]=ne):ne=e[62];let ie;e[63]!==ne?(ie=t.jsx(Xe,{htmlFor:"secret-value",children:ne}),e[63]=ne,e[64]=ie):ie=e[64];let Pe;e[65]!==s?(Pe=s("mainPanelTabs.hostingTab.secretValuePlaceholder"),e[65]=s,e[66]=Pe):Pe=e[66];let Ce;e[67]===Symbol.for("react.memo_cache_sentinel")?(Ce=M=>b(M.target.value),e[67]=Ce):Ce=e[67];let ce;e[68]!==u||e[69]!==T.isPending||e[70]!==Pe?(ce=t.jsx(it,{id:"secret-value",type:"password",placeholder:Pe,value:u,onChange:Ce,className:"font-mono text-xs",autoComplete:"new-password",disabled:T.isPending}),e[68]=u,e[69]=T.isPending,e[70]=Pe,e[71]=ce):ce=e[71];let be;e[72]!==ie||e[73]!==ce?(be=t.jsxs("div",{className:"flex flex-col gap-2",children:[ie,ce]}),e[72]=ie,e[73]=ce,e[74]=be):be=e[74];let le;e[75]!==s?(le=s("mainPanelTabs.hostingTab.secretScope"),e[75]=s,e[76]=le):le=e[76];let ae;e[77]!==le?(ae=t.jsx(Xe,{children:le}),e[77]=le,e[78]=ae):ae=e[78];let me;e[79]===Symbol.for("react.memo_cache_sentinel")?(me=M=>N(M==="build"?"build":"runtime"),e[79]=me):me=e[79];const De=T.isPending;let de;e[80]===Symbol.for("react.memo_cache_sentinel")?(de=t.jsx(Ot,{className:"w-full",children:t.jsx(Ht,{})}),e[80]=de):de=e[80];let fe;e[81]!==s?(fe=s("mainPanelTabs.hostingTab.secretScopeRuntime"),e[81]=s,e[82]=fe):fe=e[82];let oe;e[83]!==fe?(oe=t.jsx(ft,{value:"runtime",children:fe}),e[83]=fe,e[84]=oe):oe=e[84];let pe;e[85]!==s?(pe=s("mainPanelTabs.hostingTab.secretScopeBuild"),e[85]=s,e[86]=pe):pe=e[86];let ue;e[87]!==pe?(ue=t.jsx(ft,{value:"build",children:pe}),e[87]=pe,e[88]=ue):ue=e[88];let he;e[89]!==oe||e[90]!==ue?(he=t.jsxs(qt,{children:[oe,ue]}),e[89]=oe,e[90]=ue,e[91]=he):he=e[91];let ve;e[92]!==x||e[93]!==T.isPending||e[94]!==he?(ve=t.jsxs(Mt,{value:x,onValueChange:me,disabled:De,children:[de,he]}),e[92]=x,e[93]=T.isPending,e[94]=he,e[95]=ve):ve=e[95];let ye;e[96]!==x||e[97]!==s?(ye=s(x==="build"?"mainPanelTabs.hostingTab.secretScopeBuildHint":"mainPanelTabs.hostingTab.secretScopeRuntimeHint"),e[96]=x,e[97]=s,e[98]=ye):ye=e[98];let xe;e[99]!==ye?(xe=t.jsx("p",{className:"text-xs text-muted-foreground",children:ye}),e[99]=ye,e[100]=xe):xe=e[100];let re;e[101]!==ae||e[102]!==ve||e[103]!==xe?(re=t.jsxs("div",{className:"flex flex-col gap-2",children:[ae,ve,xe]}),e[101]=ae,e[102]=ve,e[103]=xe,e[104]=re):re=e[104];let ge;e[105]===Symbol.for("react.memo_cache_sentinel")?(ge=()=>g(!1),e[105]=ge):ge=e[105];const we=T.isPending;let $;e[106]!==s?($=s("mainPanelTabs.hostingTab.cancel"),e[106]=s,e[107]=$):$=e[107];let se;e[108]!==T.isPending||e[109]!==$?(se=t.jsx(Ie,{variant:"outline",type:"button",onClick:ge,disabled:we,children:$}),e[108]=T.isPending,e[109]=$,e[110]=se):se=e[110];let Se;e[111]!==d||e[112]!==u||e[113]!==T.isPending?(Se=T.isPending||!d.trim()||!u,e[111]=d,e[112]=u,e[113]=T.isPending,e[114]=Se):Se=e[114];let Te;e[115]!==T.isPending||e[116]!==s?(Te=T.isPending?s("mainPanelTabs.hostingTab.saving"):s("mainPanelTabs.hostingTab.add"),e[115]=T.isPending,e[116]=s,e[117]=Te):Te=e[117];let $e;e[118]!==Se||e[119]!==Te?($e=t.jsx(Ie,{type:"submit",disabled:Se,children:Te}),e[118]=Se,e[119]=Te,e[120]=$e):$e=e[120];let ze;e[121]!==se||e[122]!==$e?(ze=t.jsxs(Nt,{children:[se,$e]}),e[121]=se,e[122]=$e,e[123]=ze):ze=e[123];let Ke;e[124]!==O||e[125]!==K||e[126]!==be||e[127]!==re||e[128]!==ze?(Ke=t.jsxs("form",{className:"flex flex-col gap-4",onSubmit:O,children:[K,be,re,ze]}),e[124]=O,e[125]=K,e[126]=be,e[127]=re,e[128]=ze,e[129]=Ke):Ke=e[129];let Le;e[130]!==G||e[131]!==Ke?(Le=t.jsxs(Ct,{className:"sm:max-w-md",children:[G,Ke]}),e[130]=G,e[131]=Ke,e[132]=Le):Le=e[132];let _e;e[133]!==h||e[134]!==Le?(_e=t.jsx(Dt,{open:h,onOpenChange:g,children:Le}),e[133]=h,e[134]=Le,e[135]=_e):_e=e[135];const He=C!=null;let Ve;e[136]===Symbol.for("react.memo_cache_sentinel")?(Ve=M=>{M||P(null)},e[136]=Ve):Ve=e[136];let ke;e[137]!==s?(ke=s("mainPanelTabs.hostingTab.confirmDeleteSecretTitle"),e[137]=s,e[138]=ke):ke=e[138];const Je=C?.name??"";let Be;e[139]!==s||e[140]!==Je?(Be=s("mainPanelTabs.hostingTab.confirmDeleteSecretDescription",{name:Je}),e[139]=s,e[140]=Je,e[141]=Be):Be=e[141];let Ee;e[142]!==s?(Ee=s("mainPanelTabs.hostingTab.deleteSecret"),e[142]=s,e[143]=Ee):Ee=e[143];let Oe;e[144]!==v||e[145]!==C?(Oe=()=>{C&&v.mutate(C)},e[144]=v,e[145]=C,e[146]=Oe):Oe=e[146];let qe;e[147]!==v.isPending||e[148]!==He||e[149]!==ke||e[150]!==Be||e[151]!==Ee||e[152]!==Oe?(qe=t.jsx(wt,{open:He,onOpenChange:Ve,title:ke,description:Be,confirmLabel:Ee,pending:v.isPending,onConfirm:Oe}),e[147]=v.isPending,e[148]=He,e[149]=ke,e[150]=Be,e[151]=Ee,e[152]=Oe,e[153]=qe):qe=e[153];let Ue;return e[154]!==p||e[155]!==I||e[156]!==Y||e[157]!==_e||e[158]!==qe?(Ue=t.jsxs(ut,{title:p,actions:I,children:[Y,_e,qe]}),e[154]=p,e[155]=I,e[156]=Y,e[157]=_e,e[158]=qe,e[159]=Ue):Ue=e[159],Ue}function yn(r){return je.error(rt(r))}function Sn(r){return je.error(rt(r))}const Nn=3e4;function kl(r){const e=ee.c(111),{virtualMcpId:o}=r,l=Ae(),{org:a}=Cs(),i=Es(o),c=Rs(i),m=!!c,s=c?`/api/${a.slug}/hosting/${encodeURIComponent(c)}`:"";let n;e[0]!==s||e[1]!==m?(n=(O,k)=>({queryKey:O,queryFn:()=>It(`${s}${k}`),enabled:m,retry:!1,staleTime:Nn}),e[0]=s,e[1]=m,e[2]=n):n=e[2];const h=n,g=c??"",d=ct(h(Ye.hostingDeployments(a.slug,g),"/deployments")),f=ct(h(Ye.hostingEnv(a.slug,g),"/env")),u=ct(h(Ye.hostingSecrets(a.slug,g),"/secrets")),b=ct(h(Ye.hostingRedirects(a.slug,g),"/redirects")),x=ct(h(Ye.hostingDomains(a.slug,g),"/domains"));if(!c){let O;e[3]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsx(kt,{className:"size-5"}),e[3]=O):O=e[3];let k;e[4]!==l?(k=l("mainPanelTabs.hostingTab.noSiteTitle"),e[4]=l,e[5]=k):k=e[5];let E;e[6]!==l?(E=l("mainPanelTabs.hostingTab.noSiteDescription"),e[6]=l,e[7]=E):E=e[7];let H;return e[8]!==k||e[9]!==E?(H=t.jsx("div",{className:"flex flex-1 items-center justify-center p-6",children:t.jsx(Ze,{icon:O,title:k,description:E})}),e[8]=k,e[9]=E,e[10]=H):H=e[10],H}if(jt(d.error)&&jt(f.error)&&jt(b.error)){let O;e[11]===Symbol.for("react.memo_cache_sentinel")?(O=t.jsx(kt,{className:"size-5"}),e[11]=O):O=e[11];let k;e[12]!==l?(k=l("mainPanelTabs.hostingTab.notConnectedTitle"),e[12]=l,e[13]=k):k=e[13];let E;e[14]!==l?(E=l("mainPanelTabs.hostingTab.notConnectedDescription"),e[14]=l,e[15]=E):E=e[15];let H;return e[16]!==k||e[17]!==E?(H=t.jsx("div",{className:"flex flex-1 items-center justify-center p-6",children:t.jsx(Ze,{icon:O,title:k,description:E})}),e[16]=k,e[17]=E,e[18]=H):H=e[18],H}let C,P,S,y,R,w,j,T,V,q;if(e[19]!==d.data||e[20]!==x.data||e[21]!==f.data||e[22]!==b.data||e[23]!==u.data){P=mt(d.data,"items");let O;e[34]!==f.data?(O=mt(f.data,"vars"),e[34]=f.data,e[35]=O):O=e[35],R=O;let k;e[36]!==f.data?(k=mt(f.data,"codeVars"),e[36]=f.data,e[37]=k):k=e[37],C=k;let E;e[38]!==u.data?(E=mt(u.data,"secrets"),e[38]=u.data,e[39]=E):E=e[39],V=E;let H;e[40]!==b.data?(H=mt(b.data,"items"),e[40]=b.data,e[41]=H):H=e[41],T=H;const X=x.data;let te;e[42]!==X?.items?(te=X?.items??[],e[42]=X?.items,e[43]=te):te=e[43],y=te;let K;e[44]!==X?.dnsTemplate?(K=X?.dnsTemplate??[],e[44]=X?.dnsTemplate,e[45]=K):K=e[45],S=K;const ne=P.find(Dn);w=zt((ne??P.find(Cn))?.framework),j=ne?.servingUrl??null,q=j?j.replace(/^https?:\/\//,"").replace(/\/$/,""):null,e[19]=d.data,e[20]=x.data,e[21]=f.data,e[22]=b.data,e[23]=u.data,e[24]=C,e[25]=P,e[26]=S,e[27]=y,e[28]=R,e[29]=w,e[30]=j,e[31]=T,e[32]=V,e[33]=q}else C=e[24],P=e[25],S=e[26],y=e[27],R=e[28],w=e[29],j=e[30],T=e[31],V=e[32],q=e[33];const F=q;let v;e[46]!==s||e[47]!==a.slug||e[48]!==c?(v=t.jsx(Ys,{base:s,orgSlug:a.slug,site:c}),e[46]=s,e[47]=a.slug,e[48]=c,e[49]=v):v=e[49];let B;e[50]!==l?(B=l("mainPanelTabs.hostingTab.title"),e[50]=l,e[51]=B):B=e[51];let A;e[52]!==w?(A=w&&t.jsx(Re,{variant:"secondary",children:w}),e[52]=w,e[53]=A):A=e[53];let Q;e[54]!==B||e[55]!==A?(Q=t.jsxs("span",{className:"inline-flex items-center gap-2.5",children:[B,A]}),e[54]=B,e[55]=A,e[56]=Q):Q=e[56];let _;e[57]!==v||e[58]!==Q?(_=t.jsx(Wt.Title,{actions:v,children:Q}),e[57]=v,e[58]=Q,e[59]=_):_=e[59];let W;e[60]!==F||e[61]!==j?(W=j&&F&&t.jsx("p",{className:"flex flex-wrap items-center gap-x-1.5 text-sm text-muted-foreground",children:t.jsxs("a",{href:j,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-1 font-mono text-xs text-foreground hover:underline",children:[F,t.jsx(_t,{className:"size-3"})]})}),e[60]=F,e[61]=j,e[62]=W):W=e[62];let J;e[63]!==_||e[64]!==W?(J=t.jsxs("div",{className:"flex flex-col gap-2",children:[_,W]}),e[63]=_,e[64]=W,e[65]=J):J=e[65];let U;e[66]!==s||e[67]!==P||e[68]!==d.error||e[69]!==d.isLoading||e[70]!==m||e[71]!==a.slug||e[72]!==c?(U=t.jsx(sn,{base:s,orgSlug:a.slug,site:c,enabled:m,deployments:P,isLoading:d.isLoading,error:d.error}),e[66]=s,e[67]=P,e[68]=d.error,e[69]=d.isLoading,e[70]=m,e[71]=a.slug,e[72]=c,e[73]=U):U=e[73];let p;e[74]!==s||e[75]!==C||e[76]!==f.error||e[77]!==f.isLoading||e[78]!==R||e[79]!==a.slug||e[80]!==c?(p=t.jsx(xn,{base:s,orgSlug:a.slug,site:c,envVars:R,codeVars:C,isLoading:f.isLoading,error:f.error}),e[74]=s,e[75]=C,e[76]=f.error,e[77]=f.isLoading,e[78]=R,e[79]=a.slug,e[80]=c,e[81]=p):p=e[81];let I;e[82]!==s||e[83]!==a.slug||e[84]!==V||e[85]!==u.error||e[86]!==u.isLoading||e[87]!==c?(I=t.jsx(vn,{base:s,orgSlug:a.slug,site:c,secrets:V,isLoading:u.isLoading,error:u.error}),e[82]=s,e[83]=a.slug,e[84]=V,e[85]=u.error,e[86]=u.isLoading,e[87]=c,e[88]=I):I=e[88];let Y;e[89]!==s||e[90]!==S||e[91]!==y||e[92]!==x.error||e[93]!==x.isLoading||e[94]!==a.slug||e[95]!==c?(Y=t.jsx(dn,{base:s,orgSlug:a.slug,site:c,domains:y,dnsTemplate:S,isLoading:x.isLoading,error:x.error}),e[89]=s,e[90]=S,e[91]=y,e[92]=x.error,e[93]=x.isLoading,e[94]=a.slug,e[95]=c,e[96]=Y):Y=e[96];let D;e[97]!==s||e[98]!==a.slug||e[99]!==T||e[100]!==b.error||e[101]!==b.isLoading||e[102]!==c?(D=t.jsx(Tn,{base:s,orgSlug:a.slug,site:c,redirects:T,isLoading:b.isLoading,error:b.error}),e[97]=s,e[98]=a.slug,e[99]=T,e[100]=b.error,e[101]=b.isLoading,e[102]=c,e[103]=D):D=e[103];let G;return e[104]!==U||e[105]!==p||e[106]!==I||e[107]!==Y||e[108]!==D||e[109]!==J?(G=t.jsx("div",{className:"h-full min-h-0 overflow-y-auto",children:t.jsx(Wt.Body,{maxWidth:"max-w-5xl",children:t.jsxs(Ds,{children:[J,U,p,I,Y,D]})})}),e[104]=U,e[105]=p,e[106]=I,e[107]=Y,e[108]=D,e[109]=J,e[110]=G):G=e[110],G}function Cn(r){return r.framework}function Dn(r){return r.up===!0}export{kl as HostingTab};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as L,b as A,j as r}from"./index-BEoXIi96.js";import{I as R}from"./input-DuuQU-5P.js";import{L as I}from"./label-DfTzeVB6.js";import{S as z,b as J,a as O,d as V,c as D}from"./select-Ctm5j_ac.js";import{T as M}from"./textarea-UK3aSYEU.js";import{e as $,w as q,j as G,y as H,J as Q}from"./index-CcwjIcL7.js";import{s as F}from"./primitives-BmJPSaCw.js";import{u as U}from"./use-autosave-Cix74pa3.js";import"./Check-mIk-Zdri.js";import"./ChevronUp-BsQdOFhn.js";import"./ArrowUp-tJnhyHYV.js";import"./chat-context-kYTm66h1.js";import"./use-panel-navigate-7pCkPHyQ.js";import"./use-destination-route-0bGpW2wX.js";import"./autosend-H7vEr2E4.js";import"./thread-intent-Boq8aDUm.js";import"./slugify-CEUa2lfQ.js";import"./hooks-BE6Qu5f_.js";import"./use-mcp-client-CBIDHgJb.js";import"./auth-BifFxAMn.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-CGUVxGA5.js";import"./task-board-BfutDBLl.js";import"./schema-BjF21APH.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-BBIVsgiJ.js";import"./use-ai-providers-b-_ZQ5bN.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-BmNBMYMj.js";import"./thread-route-Ba6jPMs1.js";import"./dialog-D6PrlHs3.js";import"./Copy01-B9voSPXW.js";import"./Download01-DuC_qV7_.js";import"./use-organization-settings-PpTmoWC6.js";import"./automation-runs-CkurNXaa.js";import"./agent-icon-CNkeVIGx.js";import"./AlertCircle-UmLlY8gt.js";import"./Tool01-CxaNpYBN.js";import"./ArrowLeft-CKGsgaFO.js";import"./Tool02-D8aijKEK.js";import"./ArrowRight-DkzY_YHb.js";import"./TrendUp01-BPcG0VZ2.js";import"./ZoomOut-C2eKrhT6.js";import"./Users03-DLEUw1TQ.js";import"./CheckCircle-DrFO4Bvc.js";import"./ChevronRight-CoUl6dHM.js";import"./ChevronSelectorVertical-DgbgJIgx.js";import"./DotsVertical-LQnPIhpJ.js";import"./UserSquare-DgMxtQAT.js";import"./CreditCard01-BwVgysoQ.js";import"./Settings02-BkXl17NJ.js";import"./Eye-BNbA0ZH1.js";import"./Share07-_ciA_Du3.js";import"./GitBranch01-CEGTuE7l.js";import"./Globe01-Ct8tiHdr.js";import"./XClose-D4ceJ-NM.js";import"./HardDrive-DeQRGeCm.js";import"./Image01-BOV108nN.js";import"./Key01-DwPkNGAi.js";import"./Link01-CaYtZMuf.js";import"./LinkExternal01-BL5IYsGT.js";import"./Monitor01-CcdvNcNU.js";import"./Sun-iXMmiuE1.js";import"./Package-DuXJoDs3.js";import"./Palette-BZ4o6l5p.js";import"./Play-BuyaXe7U.js";import"./Plus-3CMW8aY5.js";import"./SearchLg-Cw3nH7Cl.js";import"./SearchMd-DNTL0r7E.js";import"./Shield01-DEeMJbvH.js";import"./Stars01-119xkrYB.js";import"./Trash01-aDQVPlte.js";import"./Upload01-DP3uFIbj.js";import"./User01-uB5x1Z7I.js";import"./Users01-C5oQyGpK.js";import"./XCircle-CPARFFz5.js";import"./Zap-CN63rPHF.js";import"./useInfiniteQuery-D46s077h.js";import"./infiniteQueryObserver-C0gtCSKc.js";import"./use-connection-J9HU__FI.js";import"./table-CFBqR8pE.js";import"./empty-state-oW1HtioG.js";import"./use-infinite-scroll-B16CEhLl.js";import"./use-members-DhN8JYyT.js";import"./use-org-auth-client-DvxCLPMe.js";import"./use-automations-BKfuici4.js";import"./useSuspenseInfiniteQuery-Dt1al92J.js";import"./avatar-BRVlWhlB.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-copy-1Ld-wFUW.js";import"./markdown-Bk2_0Mpp.js";import"./monaco-editor-xqrL4C9W.js";import"./editor-0D0nYwQZ.js";import"./mcp-app-renderer-IailASEA.js";import"./types-CBEiD8NV.js";import"./shell-layout-51PfGFjn.js";import"./anchors-yqDzZN4K.js";import"./project-icon-Cvf-f60M.js";import"./github-repo-CTPv5ZM2.js";import"./source-system-tabs-CnEGUb4r.js";import"./command-C8qMEhaG.js";import"./index-KykP8MNQ.js";import"./integration-icon-_O5BXH5s.js";import"./required-auth-layout-Ce5Llpbj.js";import"./use-org-sso-DsSzpTkG.js";import"./use-org-notice-BRkRTeOZ.js";import"./use-navigate-to-agent-gJlVtuGH.js";import"./use-mcp-prompts-Dv2usnUu.js";import"./form-DCRMYQ5T.js";import"./file-type-icon-Bnpkm6mQ.js";import"./drawer-CKDQN4Qv.js";import"./collection-search-DgCzDom2.js";import"./tabs-BTqDMSRY.js";import"./toggle-group-jOXSCXvB.js";import"./task-route-CZAIG5rT.js";import"./extract-connection-data-D_ov4A1f.js";import"./metadata-dUsYcpuu.js";import"./connection-D3PCvxub.js";import"./connection-card-CuQsth2r.js";import"./use-registry-connections-Ddw_x5tM.js";import"./retry-CErkP7V6.js";import"./connection-slug-CITJ0kGN.js";import"./connection-form-helpers-GOmangL6.js";import"./authenticate-and-persist-oauth-B89pdNMd.js";import"./mcp-oauth-ytJMtAma.js";import"./collection-tabs-htCjlN6e.js";import"./badge-Bek9yAA7.js";import"./use-file-configs-ChaOBE4-.js";import"./site-slug-uya6Wp4-.js";import"./dropdown-menu-BN-ZPax7.js";import"./popover-CEyILQP8.js";import"./github-icon-Dxk6kG9J.js";import"./get-initials-D-f_fDFw.js";import"./select-model-CI017hbz.js";import"./checkbox-D5UNPAi9.js";import"./ai-providers-logos-DD3qZ33J.js";import"./folder-icon-Cvyr8eQ5.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-D3jpKPg_.js";import"./toolbar-DJSf7gmi.js";import"./use-mcp-tools-CiXvaZ0u.js";import"./skill-preview-yijVBbhT.js";import"./use-date-fns-locale-iIq3KU2P.js";import"./alert-dialog-yY0onn0b.js";import"./use-debounced-autosave-BehbSyh9.js";import"./scroll-area-Dmoe3ZyS.js";import"./search-input-COgY1JoQ.js";import"./use-mcp-auth-status-CIHDcWYi.js";import"./switch-C6U0UT4f.js";import"./breadcrumb-CqlTgO8l.js";import"./repository-import-picker-CjXC2SBe.js";import"./repository-picker-DJhzZwbT.js";import"./use-debounced-value-BJpIKS_c.js";import"./use-secrets-C5CB8OUG.js";import"./client-icons-DiZSUf5o.js";import"./connect-layout-DrVv2vSW.js";import"./self-tool-result-hnx7DL9g.js";import"./provision-repo-scoped-github-connection-WQFARyHG.js";import"./track-CyUm3Jh9.js";import"./use-tags-DRQoa0LP.js";import"./toolbar-icon-button-DcRfKvZu.js";import"./safe-image-url-D5z803Ot.js";import"./automation-list-row-CzBcz6q8.js";import"./site-error--i37Vnuw.js";import"./cards-C-vB_PHu.js";const W={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"}]},X={authors:"sandbox.recordEditor.titleAuthor"};function ii(C){const t=L.c(41),{orgSlug:K,virtualMcpId:w,branch:f,kind:a,blockKey:u,block:S}=C,i=A();let b;t[0]!==f||t[1]!==K||t[2]!==w?(b={orgSlug:K,virtualMcpId:w,branch:f},t[0]=f,t[1]=K,t[2]=w,t[3]=b):b=t[3];const e=$(b);let h;t[4]!==S||t[5]!==a?(h=q(S,a),t[4]=S,t[5]=a,t[6]=h):h=t[6];const B=h;let k;t[7]!==u||t[8]!==a||t[9]!==e?(k=l=>{e.mutate({blockKey:u,data:H(u,a,l)})},t[7]=u,t[8]=a,t[9]=e,t[10]=k):k=t[10];let v;t[11]!==e.isPending?(v={isSaving:e.isPending},t[11]=e.isPending,t[12]=v):v=t[12];const[m,P]=U(B,k,v);let j;t[13]!==m||t[14]!==P?(j=(l,o)=>P({...m,[l]:o}),t[13]=m,t[14]=P,t[15]=j):j=t[15];const s=j,N=X[a];let n;t[16]!==i||t[17]!==N?(n=i(N),t[16]=i,t[17]=N,t[18]=n):n=t[18];let c;t[19]!==n?(c=r.jsx("span",{className:"text-sm font-medium",children:n}),t[19]=n,t[20]=c):c=t[20];let d;t[21]!==e.isError||t[22]!==e.isPending?(d=r.jsx(G,{isPending:e.isPending,isError:e.isError}),t[21]=e.isError,t[22]=e.isPending,t[23]=d):d=t[23];let y;t[24]!==c||t[25]!==d?(y=r.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[c,d]}),t[24]=c,t[25]=d,t[26]=y):y=t[26];const T=W[a];let x;if(t[27]!==m||t[28]!==s||t[29]!==i||t[30]!==T){let l;t[32]!==m||t[33]!==s||t[34]!==i?(l=o=>r.jsx("div",{className:"space-y-2",children:o.widget==="image"?r.jsx(Q,{schema:{type:"string",format:"image-uri",title:i(o.labelKey)},value:m[o.key],onChange:p=>s(o.key,p),path:o.key,label:i(o.labelKey)}):o.widget==="select"?r.jsxs(r.Fragment,{children:[r.jsx(I,{htmlFor:o.key,children:i(o.labelKey)}),r.jsxs(z,{value:F(m[o.key])||o.options?.[0]?.value,onValueChange:p=>s(o.key,p),children:[r.jsx(J,{id:o.key,className:"h-10 w-full",children:r.jsx(O,{placeholder:i(o.labelKey)})}),r.jsx(V,{children:(o.options??[]).map(p=>r.jsx(D,{value:p.value,children:i(p.labelKey)},p.value))})]})]}):r.jsxs(r.Fragment,{children:[r.jsx(I,{htmlFor:o.key,children:i(o.labelKey)}),o.widget==="textarea"?r.jsx(M,{id:o.key,value:F(m[o.key]),onChange:p=>s(o.key,p.target.value),rows:3}):r.jsx(R,{id:o.key,value:F(m[o.key]),placeholder:o.placeholderKey?i(o.placeholderKey):void 0,onChange:p=>s(o.key,p.target.value),className:"h-10"})]})},o.key),t[32]=m,t[33]=s,t[34]=i,t[35]=l):l=t[35],x=T.map(l),t[27]=m,t[28]=s,t[29]=i,t[30]=T,t[31]=x}else x=t[31];let g;t[36]!==x?(g=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[36]=x,t[37]=g):g=t[37];let E;return t[38]!==y||t[39]!==g?(E=r.jsxs("div",{className:"flex h-full flex-col",children:[y,g]}),t[38]=y,t[39]=g,t[40]=E):E=t[40],E}export{ii as RecordEditor};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as at,b as ct,j as r}from"./index-BEoXIi96.js";import{C as dt}from"./checkbox-D5UNPAi9.js";import{I as it}from"./input-DuuQU-5P.js";import{L as rt}from"./label-DfTzeVB6.js";import{c as nt,b as ft,a as xt,d as ht,S as ut}from"./select-Ctm5j_ac.js";import{e as bt,bF as yt,j as jt,bG as gt,bH as vt}from"./index-CcwjIcL7.js";import{u as Et}from"./use-autosave-Cix74pa3.js";import"./Check-mIk-Zdri.js";import"./ChevronUp-BsQdOFhn.js";import"./ArrowUp-tJnhyHYV.js";import"./chat-context-kYTm66h1.js";import"./use-panel-navigate-7pCkPHyQ.js";import"./use-destination-route-0bGpW2wX.js";import"./autosend-H7vEr2E4.js";import"./thread-intent-Boq8aDUm.js";import"./slugify-CEUa2lfQ.js";import"./hooks-BE6Qu5f_.js";import"./use-mcp-client-CBIDHgJb.js";import"./auth-BifFxAMn.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./decopilot-sse-pool-CGUVxGA5.js";import"./task-board-BfutDBLl.js";import"./schema-BjF21APH.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-virtual-mcp-BBIVsgiJ.js";import"./use-ai-providers-b-_ZQ5bN.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-BmNBMYMj.js";import"./thread-route-Ba6jPMs1.js";import"./dialog-D6PrlHs3.js";import"./Copy01-B9voSPXW.js";import"./Download01-DuC_qV7_.js";import"./use-organization-settings-PpTmoWC6.js";import"./automation-runs-CkurNXaa.js";import"./agent-icon-CNkeVIGx.js";import"./AlertCircle-UmLlY8gt.js";import"./Tool01-CxaNpYBN.js";import"./ArrowLeft-CKGsgaFO.js";import"./Tool02-D8aijKEK.js";import"./ArrowRight-DkzY_YHb.js";import"./TrendUp01-BPcG0VZ2.js";import"./ZoomOut-C2eKrhT6.js";import"./Users03-DLEUw1TQ.js";import"./CheckCircle-DrFO4Bvc.js";import"./ChevronRight-CoUl6dHM.js";import"./ChevronSelectorVertical-DgbgJIgx.js";import"./DotsVertical-LQnPIhpJ.js";import"./UserSquare-DgMxtQAT.js";import"./CreditCard01-BwVgysoQ.js";import"./Settings02-BkXl17NJ.js";import"./Eye-BNbA0ZH1.js";import"./Share07-_ciA_Du3.js";import"./GitBranch01-CEGTuE7l.js";import"./Globe01-Ct8tiHdr.js";import"./XClose-D4ceJ-NM.js";import"./HardDrive-DeQRGeCm.js";import"./Image01-BOV108nN.js";import"./Key01-DwPkNGAi.js";import"./Link01-CaYtZMuf.js";import"./LinkExternal01-BL5IYsGT.js";import"./Monitor01-CcdvNcNU.js";import"./Sun-iXMmiuE1.js";import"./Package-DuXJoDs3.js";import"./Palette-BZ4o6l5p.js";import"./Play-BuyaXe7U.js";import"./Plus-3CMW8aY5.js";import"./SearchLg-Cw3nH7Cl.js";import"./SearchMd-DNTL0r7E.js";import"./Shield01-DEeMJbvH.js";import"./Stars01-119xkrYB.js";import"./Trash01-aDQVPlte.js";import"./Upload01-DP3uFIbj.js";import"./User01-uB5x1Z7I.js";import"./Users01-C5oQyGpK.js";import"./XCircle-CPARFFz5.js";import"./Zap-CN63rPHF.js";import"./useInfiniteQuery-D46s077h.js";import"./infiniteQueryObserver-C0gtCSKc.js";import"./use-connection-J9HU__FI.js";import"./table-CFBqR8pE.js";import"./empty-state-oW1HtioG.js";import"./use-infinite-scroll-B16CEhLl.js";import"./use-members-DhN8JYyT.js";import"./use-org-auth-client-DvxCLPMe.js";import"./use-automations-BKfuici4.js";import"./useSuspenseInfiniteQuery-Dt1al92J.js";import"./avatar-BRVlWhlB.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-copy-1Ld-wFUW.js";import"./markdown-Bk2_0Mpp.js";import"./monaco-editor-xqrL4C9W.js";import"./editor-0D0nYwQZ.js";import"./mcp-app-renderer-IailASEA.js";import"./types-CBEiD8NV.js";import"./shell-layout-51PfGFjn.js";import"./anchors-yqDzZN4K.js";import"./project-icon-Cvf-f60M.js";import"./github-repo-CTPv5ZM2.js";import"./source-system-tabs-CnEGUb4r.js";import"./command-C8qMEhaG.js";import"./index-KykP8MNQ.js";import"./integration-icon-_O5BXH5s.js";import"./required-auth-layout-Ce5Llpbj.js";import"./use-org-sso-DsSzpTkG.js";import"./use-org-notice-BRkRTeOZ.js";import"./use-navigate-to-agent-gJlVtuGH.js";import"./use-mcp-prompts-Dv2usnUu.js";import"./form-DCRMYQ5T.js";import"./file-type-icon-Bnpkm6mQ.js";import"./drawer-CKDQN4Qv.js";import"./collection-search-DgCzDom2.js";import"./tabs-BTqDMSRY.js";import"./toggle-group-jOXSCXvB.js";import"./task-route-CZAIG5rT.js";import"./extract-connection-data-D_ov4A1f.js";import"./metadata-dUsYcpuu.js";import"./connection-D3PCvxub.js";import"./connection-card-CuQsth2r.js";import"./use-registry-connections-Ddw_x5tM.js";import"./retry-CErkP7V6.js";import"./connection-slug-CITJ0kGN.js";import"./textarea-UK3aSYEU.js";import"./connection-form-helpers-GOmangL6.js";import"./authenticate-and-persist-oauth-B89pdNMd.js";import"./mcp-oauth-ytJMtAma.js";import"./collection-tabs-htCjlN6e.js";import"./badge-Bek9yAA7.js";import"./use-file-configs-ChaOBE4-.js";import"./site-slug-uya6Wp4-.js";import"./dropdown-menu-BN-ZPax7.js";import"./popover-CEyILQP8.js";import"./github-icon-Dxk6kG9J.js";import"./get-initials-D-f_fDFw.js";import"./select-model-CI017hbz.js";import"./ai-providers-logos-DD3qZ33J.js";import"./folder-icon-Cvyr8eQ5.js";import"./question-004-sINsf4GQ.js";import"./use-status-sounds-D3jpKPg_.js";import"./toolbar-DJSf7gmi.js";import"./use-mcp-tools-CiXvaZ0u.js";import"./skill-preview-yijVBbhT.js";import"./use-date-fns-locale-iIq3KU2P.js";import"./alert-dialog-yY0onn0b.js";import"./use-debounced-autosave-BehbSyh9.js";import"./scroll-area-Dmoe3ZyS.js";import"./search-input-COgY1JoQ.js";import"./use-mcp-auth-status-CIHDcWYi.js";import"./switch-C6U0UT4f.js";import"./breadcrumb-CqlTgO8l.js";import"./repository-import-picker-CjXC2SBe.js";import"./repository-picker-DJhzZwbT.js";import"./use-debounced-value-BJpIKS_c.js";import"./use-secrets-C5CB8OUG.js";import"./client-icons-DiZSUf5o.js";import"./connect-layout-DrVv2vSW.js";import"./self-tool-result-hnx7DL9g.js";import"./provision-repo-scoped-github-connection-WQFARyHG.js";import"./track-CyUm3Jh9.js";import"./use-tags-DRQoa0LP.js";import"./toolbar-icon-button-DcRfKvZu.js";import"./safe-image-url-D5z803Ot.js";import"./automation-list-row-CzBcz6q8.js";import"./site-error--i37Vnuw.js";import"./cards-C-vB_PHu.js";const Pt=[{value:"temporary",labelKey:"sandbox.redirectEditor.typeTemporary"},{value:"permanent",labelKey:"sandbox.redirectEditor.typePermanent"}];function ki(ot){const t=at.c(108),{orgSlug:J,virtualMcpId:W,branch:X,blockKey:Z,block:tt}=ot,e=ct();let V;t[0]!==X||t[1]!==J||t[2]!==W?(V={orgSlug:J,virtualMcpId:W,branch:X},t[0]=X,t[1]=J,t[2]=W,t[3]=V):V=t[3];const m=bt(V);let G;t[4]!==tt?(G=yt(tt),t[4]=tt,t[5]=G):G=t[5];const mt=G;let H;t[6]!==Z||t[7]!==m?(H=i=>{m.mutate({blockKey:Z,data:vt(i)})},t[6]=Z,t[7]=m,t[8]=H):H=t[8];let M;t[9]!==m.isPending?(M={isSaving:m.isPending},t[9]=m.isPending,t[10]=M):M=t[10];const[o,et]=Et(mt,H,M);let Y;t[11]!==o||t[12]!==et?(Y=i=>et({...o,...i}),t[11]=o,t[12]=et,t[13]=Y):Y=t[13];const s=Y;let p;t[14]!==e?(p=e("sandbox.redirectEditor.title"),t[14]=e,t[15]=p):p=t[15];let l;t[16]!==p?(l=r.jsx("span",{className:"text-sm font-medium",children:p}),t[16]=p,t[17]=l):l=t[17];let a;t[18]!==m.isError||t[19]!==m.isPending?(a=r.jsx(jt,{isPending:m.isPending,isError:m.isError}),t[18]=m.isError,t[19]=m.isPending,t[20]=a):a=t[20];let c;t[21]!==l||t[22]!==a?(c=r.jsxs("div",{className:"flex h-12 shrink-0 items-center justify-between border-b px-6",children:[l,a]}),t[21]=l,t[22]=a,t[23]=c):c=t[23];let d;t[24]!==e?(d=e("sandbox.redirectEditor.fromLabel"),t[24]=e,t[25]=d):d=t[25];let n;t[26]!==d?(n=r.jsx(rt,{htmlFor:"redirect-from",children:d}),t[26]=d,t[27]=n):n=t[27];const st=o.from;let f;t[28]!==e?(f=e("sandbox.redirectEditor.fromPlaceholder"),t[28]=e,t[29]=f):f=t[29];let x;t[30]!==s?(x=i=>s({from:i.target.value}),t[30]=s,t[31]=x):x=t[31];let h;t[32]!==o.from||t[33]!==f||t[34]!==x?(h=r.jsx(it,{id:"redirect-from",value:st,placeholder:f,onChange:x,className:"h-10"}),t[32]=o.from,t[33]=f,t[34]=x,t[35]=h):h=t[35];let u;t[36]!==e?(u=e("sandbox.redirectEditor.fromDescription"),t[36]=e,t[37]=u):u=t[37];let b;t[38]!==u?(b=r.jsx("p",{className:"text-xs text-muted-foreground",children:u}),t[38]=u,t[39]=b):b=t[39];let y;t[40]!==n||t[41]!==h||t[42]!==b?(y=r.jsxs("div",{className:"space-y-2",children:[n,h,b]}),t[40]=n,t[41]=h,t[42]=b,t[43]=y):y=t[43];let j;t[44]!==e?(j=e("sandbox.redirectEditor.toLabel"),t[44]=e,t[45]=j):j=t[45];let g;t[46]!==j?(g=r.jsx(rt,{htmlFor:"redirect-to",children:j}),t[46]=j,t[47]=g):g=t[47];const pt=o.to;let v;t[48]!==e?(v=e("sandbox.redirectEditor.toPlaceholder"),t[48]=e,t[49]=v):v=t[49];let E;t[50]!==s?(E=i=>s({to:i.target.value}),t[50]=s,t[51]=E):E=t[51];let P;t[52]!==o.to||t[53]!==v||t[54]!==E?(P=r.jsx(it,{id:"redirect-to",value:pt,placeholder:v,onChange:E,className:"h-10"}),t[52]=o.to,t[53]=v,t[54]=E,t[55]=P):P=t[55];let N;t[56]!==e?(N=e("sandbox.redirectEditor.toDescription"),t[56]=e,t[57]=N):N=t[57];let S;t[58]!==N?(S=r.jsx("p",{className:"text-xs text-muted-foreground",children:N}),t[58]=N,t[59]=S):S=t[59];let C;t[60]!==g||t[61]!==P||t[62]!==S?(C=r.jsxs("div",{className:"space-y-2",children:[g,P,S]}),t[60]=g,t[61]=P,t[62]=S,t[63]=C):C=t[63];let T;t[64]!==e?(T=e("sandbox.redirectEditor.typeLabel"),t[64]=e,t[65]=T):T=t[65];let k;t[66]!==T?(k=r.jsx(rt,{htmlFor:"redirect-type",children:T}),t[66]=T,t[67]=k):k=t[67];const lt=o.type;let w;t[68]!==s?(w=i=>s({type:i}),t[68]=s,t[69]=w):w=t[69];let R;t[70]!==e?(R=e("sandbox.redirectEditor.typePlaceholder"),t[70]=e,t[71]=R):R=t[71];let I;t[72]!==R?(I=r.jsx(ft,{id:"redirect-type",className:"h-10 w-full",children:r.jsx(xt,{placeholder:R})}),t[72]=R,t[73]=I):I=t[73];let _;t[74]!==e?(_=Pt.map(i=>r.jsx(nt,{value:i.value,children:e(i.labelKey,{status:gt[i.value]})},i.value)),t[74]=e,t[75]=_):_=t[75];let F;t[76]!==_?(F=r.jsx(ht,{children:_}),t[76]=_,t[77]=F):F=t[77];let L;t[78]!==o.type||t[79]!==w||t[80]!==I||t[81]!==F?(L=r.jsxs(ut,{value:lt,onValueChange:w,children:[I,F]}),t[78]=o.type,t[79]=w,t[80]=I,t[81]=F,t[82]=L):L=t[82];let $;t[83]===Symbol.for("react.memo_cache_sentinel")?($=r.jsx("strong",{children:"Temporary"}),t[83]=$):$=t[83];let q;t[84]===Symbol.for("react.memo_cache_sentinel")?(q=r.jsxs("p",{className:"text-xs text-muted-foreground",children:["Use ",$," when the redirect may change;"," ",r.jsx("strong",{children:"Permanent"})," lets browsers cache it."]}),t[84]=q):q=t[84];let Q;t[85]!==k||t[86]!==L?(Q=r.jsxs("div",{className:"space-y-2",children:[k,L,q]}),t[85]=k,t[86]=L,t[87]=Q):Q=t[87];let K;t[88]!==s?(K=i=>s({discardQueryParameters:i===!0}),t[88]=s,t[89]=K):K=t[89];let D;t[90]!==o.discardQueryParameters||t[91]!==K?(D=r.jsx(dt,{checked:o.discardQueryParameters,onCheckedChange:K}),t[90]=o.discardQueryParameters,t[91]=K,t[92]=D):D=t[92];let A;t[93]!==e?(A=e("sandbox.redirectEditor.discardQueryParameters"),t[93]=e,t[94]=A):A=t[94];let B;t[95]!==A?(B=r.jsx("span",{className:"text-sm",children:A}),t[95]=A,t[96]=B):B=t[96];let O;t[97]!==D||t[98]!==B?(O=r.jsxs("label",{className:"flex cursor-pointer items-center gap-2.5",children:[D,B]}),t[97]=D,t[98]=B,t[99]=O):O=t[99];let U;t[100]!==y||t[101]!==C||t[102]!==Q||t[103]!==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[100]=y,t[101]=C,t[102]=Q,t[103]=O,t[104]=U):U=t[104];let z;return t[105]!==U||t[106]!==c?(z=r.jsxs("div",{className:"flex h-full flex-col",children:[c,U]}),t[105]=U,t[106]=c,t[107]=z):z=t[107],z}export{ki as RedirectEditor};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-BHrN6Ljc.js","assets/index-BEoXIi96.js","assets/index-DJADaZ4J.css","assets/Tool02-D8aijKEK.js","assets/CheckCircle-DrFO4Bvc.js","assets/Settings02-BkXl17NJ.js","assets/use-mcp-client-CBIDHgJb.js","assets/auth-BifFxAMn.js","assets/useInfiniteQuery-D46s077h.js","assets/infiniteQueryObserver-C0gtCSKc.js","assets/badge-Bek9yAA7.js","assets/input-DuuQU-5P.js","assets/dropdown-menu-BN-ZPax7.js","assets/Check-mIk-Zdri.js","assets/ChevronRight-CoUl6dHM.js","assets/DotsVertical-LQnPIhpJ.js","assets/table-CFBqR8pE.js","assets/toggle-group-jOXSCXvB.js","assets/use-view-mode-C2w1nkdo.js","assets/Globe01-Ct8tiHdr.js","assets/SearchMd-DNTL0r7E.js","assets/dialog-D6PrlHs3.js","assets/AlertCircle-UmLlY8gt.js","assets/Download01-DuC_qV7_.js","assets/Upload01-DP3uFIbj.js","assets/metadata-dUsYcpuu.js","assets/alert-dialog-yY0onn0b.js","assets/Trash01-aDQVPlte.js","assets/label-DfTzeVB6.js","assets/select-Ctm5j_ac.js","assets/ChevronUp-BsQdOFhn.js","assets/switch-C6U0UT4f.js","assets/textarea-UK3aSYEU.js","assets/ArrowLeft-CKGsgaFO.js","assets/ArrowRight-DkzY_YHb.js","assets/Link01-CaYtZMuf.js","assets/safe-image-url-D5z803Ot.js","assets/checkbox-D5UNPAi9.js","assets/Eye-BNbA0ZH1.js","assets/LinkExternal01-BL5IYsGT.js","assets/XCircle-CPARFFz5.js","assets/use-infinite-scroll-B16CEhLl.js","assets/use-copy-1Ld-wFUW.js","assets/Copy01-B9voSPXW.js","assets/Key01-DwPkNGAi.js","assets/Plus-3CMW8aY5.js","assets/mcp-oauth-ytJMtAma.js","assets/Play-BuyaXe7U.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{c as i,j as e,r as s,h as a,bq as o}from"./index-BEoXIi96.js";import{R as n}from"./require-capability-OCZS-hol.js";import"./access-gate-BL9g1s42.js";import"./capability-load-error-C8dRTAUB.js";const c=s.lazy(()=>o(()=>import("./registry-layout-BHrN6Ljc.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(n,{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(c,{})})}),r[0]=t):t=r[0],t}export{u as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as N,j as l,G as R,a7 as O,K as L,m as ee,n as V,e as W,r as A,b as K,l as J,b8 as te,t as ne,B as U,a4 as ge,a1 as xe,a2 as be,h as re}from"./index-BEoXIi96.js";import{i as se}from"./ChevronRight-CoUl6dHM.js";import{d as ce,h as ae,c as ue,e as je,b as de,D as fe}from"./dialog-D6PrlHs3.js";import{I as oe}from"./input-DuuQU-5P.js";import{L as le}from"./label-DfTzeVB6.js";import{G as ye}from"./github-icon-Dxk6kG9J.js";import{u as ke}from"./useInfiniteQuery-D46s077h.js";import{i as ve}from"./ArrowLeft-CKGsgaFO.js";import{i as Ne}from"./GitBranch01-CEGTuE7l.js";import{A as me}from"./avatar-BRVlWhlB.js";import{C as he}from"./collection-search-DgCzDom2.js";import{u as Pe}from"./use-debounced-value-BJpIKS_c.js";const we={github:"github.com",gitlab:"gitlab.com",bitbucket:"bitbucket.org"},Ce=new Set(["github","bitbucket"]);function Se(t){const e=t.toLowerCase();return e==="github.com"||e==="www.github.com"?"github":e==="gitlab.com"||e==="www.gitlab.com"?"gitlab":e==="bitbucket.org"||e==="www.bitbucket.org"?"bitbucket":/(^|[.-])gitlab([.-]|$)/.test(e)?"gitlab":null}function Te(t){const e=t.toLowerCase();return e.startsWith("www.")?e.slice(4):e}function rt(t,e){const n=t.trim();if(!n)return null;let o,s;const i=/^(?:[\w.-]+@)?([\w.-]+(?::\d+)?):(?!\/\/)(.+)$/.exec(n);if(i&&!/^[a-z][a-z0-9+.-]*:\/\//i.test(n))o=i[1],s=i[2];else if(/^[a-z][a-z0-9+.-]*:\/\//i.test(n)){let c;try{c=new URL(n)}catch{return null}if(!/^(https?|ssh|git)(\+ssh)?:$/.test(c.protocol))return null;o=c.host,s=c.pathname}else return null;o=Te(o);const r=e?.provider??Se(o);if(!r)return null;let a=s.split("/").map(c=>c.trim()).filter(Boolean);const d=a.indexOf("-");if(d>=0&&(a=a.slice(0,d)),Ce.has(r)&&(a=a.slice(0,2)),a.length<2)return null;const f=a[a.length-1];return a[a.length-1]=f.replace(/\.git$/i,""),a.some(c=>c.length===0||c==="."||c==="..")?null:{provider:r,host:o,path:a.join("/")}}function ct(t){return`https://${t.host}/${t.path}`}function Ee(t){const e=N.c(4),{size:n,className:o}=t;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=l.jsx("path",{d:"M.778 1.213a.768.768 0 00-.768.892l3.263 19.81c.084.5.515.868 1.022.873H19.95a.772.772 0 00.77-.646l3.27-20.03a.768.768 0 00-.768-.891zM14.52 15.53H9.522L8.17 8.466h7.561z"}),e[0]=s):s=e[0];let i;return e[1]!==o||e[2]!==n?(i=l.jsx("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",className:o,children:s}),e[1]=o,e[2]=n,e[3]=i):i=e[3],i}function $e(t){const e=N.c(4),{size:n,className:o}=t;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=l.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]!==o||e[2]!==n?(i=l.jsx("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",className:o,children:s}),e[1]=o,e[2]=n,e[3]=i):i=e[3],i}const _e={github:ye,gitlab:$e,bitbucket:Ee};function q(t){const e=N.c(4),{provider:n,size:o,className:s}=t,i=o===void 0?16:o,r=_e[n];let a;return e[0]!==r||e[1]!==s||e[2]!==i?(a=l.jsx(r,{size:i,className:s}),e[0]=r,e[1]=s,e[2]=i,e[3]=a):a=e[3],a}const ze=5*6e4;function Ae(){const t=N.c(7),{org:e}=R(),n=O();let o;t[0]!==e.id?(o=L.gitProviderCapabilities(e.id),t[0]=e.id,t[1]=o):o=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]!==o||t[5]!==s?(i={queryKey:o,staleTime:ze,queryFn:s},t[4]=o,t[5]=s,t[6]=i):i=t[6],ee(i)}function Le(){const t=N.c(7),{org:e}=R(),n=O();let o;t[0]!==e.id?(o=L.gitAccounts(e.id),t[0]=e.id,t[1]=o):o=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]!==o||t[5]!==s?(i={queryKey:o,staleTime:6e4,queryFn:s},t[4]=o,t[5]=s,t[6]=i):i=t[6],ee(i)}function Re(t){const e=N.c(9),{org:n}=R(),o=O();let s;e[0]!==t||e[1]!==n.id?(s=L.repositories(n.id,t),e[0]=t,e[1]=n.id,e[2]=s):s=e[2];let i;e[3]!==t||e[4]!==o?(i=async()=>(await o.call("REPOSITORY_LIST",{})).repositories,e[3]=t,e[4]=o,e[5]=i):i=e[5];let r;return e[6]!==s||e[7]!==i?(r={queryKey:s,staleTime:6e4,queryFn:i},e[6]=s,e[7]=i,e[8]=r):r=e[8],ee(r)}function De(t,e){const n=N.c(12),{org:o}=R(),s=O();let i;n[0]!==t||n[1]!==o.id||n[2]!==e?(i=L.providerRepoSearch(o.id,t??"",e),n[0]=t,n[1]=o.id,n[2]=e,n[3]=i):i=n[3];const r=t!==null;let a;n[4]!==t||n[5]!==e||n[6]!==s?(a=async f=>{const{pageParam:c}=f;return t===null?{repositories:[],hasMore:!1}:await s.call("REPOSITORY_SEARCH",{accountId:t,page:c,perPage:100,...e?{query:e}:{}})},n[4]=t,n[5]=e,n[6]=s,n[7]=a):a=n[7];let d;return n[8]!==i||n[9]!==r||n[10]!==a?(d={queryKey:i,enabled:r,initialPageParam:1,getNextPageParam:Oe,staleTime:3e4,retry:!1,queryFn:a},n[8]=i,n[9]=r,n[10]=a,n[11]=d):d=n[11],ke(d)}function Oe(t,e){return t.hasMore?e.length+1:void 0}function Fe(){const t=N.c(8),{org:e}=R(),n=O(),o=V();let s;t[0]!==n?(s=async a=>(await n.call("GIT_ACCOUNT_CONNECT_TOKEN",a)).account,t[0]=n,t[1]=s):s=t[1];let i;t[2]!==e||t[3]!==o?(i=()=>o.invalidateQueries({queryKey:L.gitAccounts(e.id)}),t[2]=e,t[3]=o,t[4]=i):i=t[4];let r;return t[5]!==s||t[6]!==i?(r={mutationFn:s,onSettled:i},t[5]=s,t[6]=i,t[7]=r):r=t[7],W(r)}function at(){const t=N.c(8),{org:e}=R(),n=O(),o=V();let s;t[0]!==n?(s=a=>n.call("GIT_ACCOUNT_DELETE",{id:a}),t[0]=n,t[1]=s):s=t[1];let i;t[2]!==e||t[3]!==o?(i=()=>{o.invalidateQueries({queryKey:L.gitAccounts(e.id)}),o.invalidateQueries({queryKey:L.repositories(e.id)})},t[2]=e,t[3]=o,t[4]=i):i=t[4];let r;return t[5]!==s||t[6]!==i?(r={mutationFn:s,onSettled:i},t[5]=s,t[6]=i,t[7]=r):r=t[7],W(r)}function He(){const t=N.c(8),{org:e}=R(),n=O(),o=V();let s;t[0]!==n?(s=async a=>(await n.call("REPOSITORY_LINK",a)).repository,t[0]=n,t[1]=s):s=t[1];let i;t[2]!==e||t[3]!==o?(i=()=>o.invalidateQueries({queryKey:L.repositories(e.id)}),t[2]=e,t[3]=o,t[4]=i):i=t[4];let r;return t[5]!==s||t[6]!==i?(r={mutationFn:s,onSettled:i},t[5]=s,t[6]=i,t[7]=r):r=t[7],W(r)}function ut(){const t=N.c(8),{org:e}=R(),n=O(),o=V();let s;t[0]!==n?(s=a=>n.call("REPOSITORY_DELETE",{id:a}),t[0]=n,t[1]=s):s=t[1];let i;t[2]!==e||t[3]!==o?(i=()=>o.invalidateQueries({queryKey:L.repositories(e.id)}),t[2]=e,t[3]=o,t[4]=i):i=t[4];let r;return t[5]!==s||t[6]!==i?(r={mutationFn:s,onSettled:i},t[5]=s,t[6]=i,t[7]=r):r=t[7],W(r)}const Z={gitlab:{action:"settings.repositories.connectGitlabToken",hint:"settings.repositories.gitlabTokenHint",title:"settings.repositories.tokenDialogTitle",description:"settings.repositories.tokenDialogDescription",placeholder:"settings.repositories.tokenPlaceholder",askHost:!0},bitbucket:{action:"settings.repositories.connectBitbucketToken",hint:"settings.repositories.bitbucketTokenHint",title:"settings.repositories.tokenDialogTitleBitbucket",description:"settings.repositories.tokenDialogDescriptionBitbucket",placeholder:"settings.repositories.tokenPlaceholderBitbucket",askHost:!1}};function Ie(t,e){return t instanceof Error?t.message:e}function Ge(t){const e=N.c(8),{layout:n,disabled:o}=t,s=n===void 0?"buttons":n,i=o===void 0?!1:o,[r,a]=A.useState(null);let d;e[0]!==i||e[1]!==s?(d=l.jsx(Ke,{layout:s,disabled:i,onTokenDialog:a}),e[0]=i,e[1]=s,e[2]=d):d=e[2];let f;e[3]!==r?(f=r&&l.jsx(Be,{provider:r,onOpenChange:u=>{u||a(null)}}),e[3]=r,e[4]=f):f=e[4];let c;return e[5]!==d||e[6]!==f?(c=l.jsxs(l.Fragment,{children:[d,f]}),e[5]=d,e[6]=f,e[7]=c):c=e[7],c}function Be(t){const e=N.c(73),{provider:n,onOpenChange:o}=t,s=K(),i=Z[n],r=Fe(),[a,d]=A.useState(we[n]),[f,c]=A.useState("");let u;e[0]!==r||e[1]!==a||e[2]!==o||e[3]!==n||e[4]!==s||e[5]!==f?(u=function(){!a.trim()||!f.trim()||r.mutate({type:n,host:a.trim(),token:f.trim()},{onSuccess:X=>{ne.success(s("settings.repositories.connected",{login:X.login})),c(""),o(!1)},onError:X=>ne.error(Ie(X,s("settings.repositories.failed")))})},e[0]=r,e[1]=a,e[2]=o,e[3]=n,e[4]=s,e[5]=f,e[6]=u):u=e[6];const x=u;let m;e[7]!==i.title||e[8]!==s?(m=s(i.title),e[7]=i.title,e[8]=s,e[9]=m):m=e[9];let b;e[10]!==m?(b=l.jsx(ce,{children:m}),e[10]=m,e[11]=b):b=e[11];let h;e[12]!==i.description||e[13]!==s?(h=s(i.description),e[12]=i.description,e[13]=s,e[14]=h):h=e[14];let g;e[15]!==h?(g=l.jsx(ae,{children:h}),e[15]=h,e[16]=g):g=e[16];let j;e[17]!==b||e[18]!==g?(j=l.jsxs(ue,{children:[b,g]}),e[17]=b,e[18]=g,e[19]=j):j=e[19];let p;e[20]!==i.askHost||e[21]!==a||e[22]!==n||e[23]!==s?(p=i.askHost&&l.jsxs("div",{className:"flex flex-col gap-1.5",children:[l.jsx(le,{htmlFor:`${n}-host`,children:s("settings.repositories.tokenHostLabel")}),l.jsx(oe,{id:`${n}-host`,value:a,onChange:Q=>d(Q.target.value),placeholder:s("settings.repositories.tokenHostPlaceholder")})]}),e[20]=i.askHost,e[21]=a,e[22]=n,e[23]=s,e[24]=p):p=e[24];const y=`${n}-token`;let v;e[25]!==s?(v=s("settings.repositories.tokenLabel"),e[25]=s,e[26]=v):v=e[26];let w;e[27]!==y||e[28]!==v?(w=l.jsx(le,{htmlFor:y,children:v}),e[27]=y,e[28]=v,e[29]=w):w=e[29];const E=`${n}-token`;let P;e[30]===Symbol.for("react.memo_cache_sentinel")?(P=Q=>c(Q.target.value),e[30]=P):P=e[30];let z;e[31]!==i.placeholder||e[32]!==s?(z=s(i.placeholder),e[31]=i.placeholder,e[32]=s,e[33]=z):z=e[33];let C;e[34]!==E||e[35]!==z||e[36]!==f?(C=l.jsx(oe,{id:E,type:"password",value:f,onChange:P,placeholder:z,autoComplete:"off"}),e[34]=E,e[35]=z,e[36]=f,e[37]=C):C=e[37];let S;e[38]!==w||e[39]!==C?(S=l.jsxs("div",{className:"flex flex-col gap-1.5",children:[w,C]}),e[38]=w,e[39]=C,e[40]=S):S=e[40];let T;e[41]!==S||e[42]!==p?(T=l.jsxs("div",{className:"flex flex-col gap-3",children:[p,S]}),e[41]=S,e[42]=p,e[43]=T):T=e[43];let $;e[44]!==o?($=()=>o(!1),e[44]=o,e[45]=$):$=e[45];const D=r.isPending;let _;e[46]!==s?(_=s("settings.repositories.cancel"),e[46]=s,e[47]=_):_=e[47];let k;e[48]!==r.isPending||e[49]!==$||e[50]!==_?(k=l.jsx(U,{variant:"outline",onClick:$,disabled:D,children:_}),e[48]=r.isPending,e[49]=$,e[50]=_,e[51]=k):k=e[51];let F;e[52]!==r.isPending||e[53]!==a||e[54]!==f?(F=!a.trim()||!f.trim()||r.isPending,e[52]=r.isPending,e[53]=a,e[54]=f,e[55]=F):F=e[55];let H;e[56]!==r.isPending||e[57]!==s?(H=r.isPending?s("settings.repositories.connecting"):s("settings.repositories.connect"),e[56]=r.isPending,e[57]=s,e[58]=H):H=e[58];let I;e[59]!==x||e[60]!==F||e[61]!==H?(I=l.jsx(U,{onClick:x,disabled:F,children:H}),e[59]=x,e[60]=F,e[61]=H,e[62]=I):I=e[62];let G;e[63]!==k||e[64]!==I?(G=l.jsxs(je,{children:[k,I]}),e[63]=k,e[64]=I,e[65]=G):G=e[65];let B;e[66]!==T||e[67]!==G||e[68]!==j?(B=l.jsxs(de,{className:"sm:max-w-md",children:[j,T,G]}),e[66]=T,e[67]=G,e[68]=j,e[69]=B):B=e[69];let M;return e[70]!==o||e[71]!==B?(M=l.jsx(fe,{open:!0,onOpenChange:o,children:B}),e[70]=o,e[71]=B,e[72]=M):M=e[72],M}function Y(t){const e=N.c(25),{layout:n,label:o,description:s,icon:i,href:r,onClick:a,disabled:d}=t;let f;e[0]!==s||e[1]!==d||e[2]!==i||e[3]!==o||e[4]!==n?(f=n==="picker"?l.jsxs(l.Fragment,{children:[l.jsx("span",{className:"size-8 rounded-lg bg-muted flex items-center justify-center shrink-0",children:i}),l.jsxs("span",{className:"flex-1 min-w-0 text-left",children:[l.jsx("span",{className:"block text-sm font-medium",children:o}),l.jsx("span",{className:"block text-xs font-normal text-muted-foreground whitespace-normal",children:s})]}),!d&&l.jsx("span",{className:"shrink-0 text-muted-foreground",children:l.jsx(se,{size:16})})]}):l.jsxs(l.Fragment,{children:[i,o]}),e[0]=s,e[1]=d,e[2]=i,e[3]=o,e[4]=n,e[5]=f):f=e[5];const c=f,u=n==="picker"?"ghost":"outline",x=n==="picker"&&"w-full h-auto justify-start gap-3 rounded-none px-4 py-3 hover:bg-accent";let m;e[6]!==x?(m=J(x),e[6]=x,e[7]=m):m=e[7];const b=!!r&&!d;let h;e[8]!==c||e[9]!==d||e[10]!==r?(h=r&&!d?l.jsx("a",{href:r,children:c}):c,e[8]=c,e[9]=d,e[10]=r,e[11]=h):h=e[11];let g;e[12]!==d||e[13]!==o||e[14]!==a||e[15]!==u||e[16]!==m||e[17]!==b||e[18]!==h?(g=l.jsx(U,{size:"sm",variant:u,className:m,"aria-label":o,disabled:d,asChild:b,onClick:a,children:h}),e[12]=d,e[13]=o,e[14]=a,e[15]=u,e[16]=m,e[17]=b,e[18]=h,e[19]=g):g=e[19];const j=g;let p;return e[20]!==j||e[21]!==s||e[22]!==d||e[23]!==n?(p=n==="buttons"&&d?l.jsxs(ge,{children:[l.jsx(xe,{asChild:!0,children:l.jsx("span",{tabIndex:0,children:j})}),l.jsx(be,{children:s})]}):j,e[20]=j,e[21]=s,e[22]=d,e[23]=n,e[24]=p):p=e[24],p}function Ke(t){const e=N.c(45),{layout:n,disabled:o,onTokenDialog:s}=t,i=K(),r=Ae(),{org:a}=R(),d=`/${a.slug}/settings/repositories`;let f;e[0]!==d?(f=k=>`${k}?returnTo=${encodeURIComponent(d)}`,e[0]=d,e[1]=f):f=e[1];const c=f;if(r.isError){let k;return e[2]!==r.error.message?(k=l.jsx("p",{role:"alert",className:"text-sm text-destructive",children:r.error.message}),e[2]=r.error.message,e[3]=k):k=e[3],k}const u=r.data?.github,x=r.data?.gitlab,m=r.data?.bitbucket,b=u?.configured===!0,h=(x?.oauthHosts.length??0)>0,g=(m?.oauthHosts.length??0)>0;if(r.isPending){let k;return e[4]===Symbol.for("react.memo_cache_sentinel")?(k=l.jsx(te,{className:"h-9 w-40"}),e[4]=k):k=e[4],k}const j=n==="picker"?"flex-col":"flex-wrap items-center gap-2";let p;e[5]!==j?(p=J("flex",j),e[5]=j,e[6]=p):p=e[6];let y;e[7]!==i?(y=i("settings.repositories.addGithubAccount"),e[7]=i,e[8]=y):y=e[8];const v=b?"settings.repositories.browseAccount":"settings.repositories.githubUnavailable";let w;e[9]!==i||e[10]!==v?(w=i(v),e[9]=i,e[10]=v,e[11]=w):w=e[11];let E;e[12]===Symbol.for("react.memo_cache_sentinel")?(E=l.jsx(q,{provider:"github",size:16}),e[12]=E):E=e[12];const P=u?.connectPath?c(u.connectPath):void 0,z=o||!b||!u?.connectPath;let C;e[13]!==n||e[14]!==y||e[15]!==w||e[16]!==P||e[17]!==z?(C=l.jsx(Y,{layout:n,label:y,description:w,icon:E,href:P,disabled:z}),e[13]=n,e[14]=y,e[15]=w,e[16]=P,e[17]=z,e[18]=C):C=e[18];let S;e[19]!==c||e[20]!==o||e[21]!==x||e[22]!==h||e[23]!==n||e[24]!==i?(S=h&&x?.connectPath&&l.jsx(Y,{layout:n,label:i("settings.repositories.connectGitlab"),description:i("settings.repositories.browseAccount"),icon:l.jsx(q,{provider:"gitlab",size:16}),href:c(x.connectPath),disabled:o}),e[19]=c,e[20]=o,e[21]=x,e[22]=h,e[23]=n,e[24]=i,e[25]=S):S=e[25];let T;e[26]!==m||e[27]!==g||e[28]!==c||e[29]!==o||e[30]!==n||e[31]!==i?(T=g&&m?.connectPath&&l.jsx(Y,{layout:n,label:i("settings.repositories.connectBitbucket"),description:i("settings.repositories.browseAccount"),icon:l.jsx(q,{provider:"bitbucket",size:16}),href:c(m.connectPath),disabled:o}),e[26]=m,e[27]=g,e[28]=c,e[29]=o,e[30]=n,e[31]=i,e[32]=T):T=e[32];let $;e[33]===Symbol.for("react.memo_cache_sentinel")?($=["gitlab","bitbucket"],e[33]=$):$=e[33];let D;e[34]!==o||e[35]!==n||e[36]!==s||e[37]!==i?(D=$.map(k=>l.jsx(Y,{layout:n,label:i(Z[k].action),description:i(Z[k].hint),icon:l.jsx(q,{provider:k,size:16}),onClick:()=>s(k),disabled:o},k)),e[34]=o,e[35]=n,e[36]=s,e[37]=i,e[38]=D):D=e[38];let _;return e[39]!==C||e[40]!==S||e[41]!==T||e[42]!==D||e[43]!==p?(_=l.jsxs("div",{className:p,children:[C,S,T,D]}),e[39]=C,e[40]=S,e[41]=T,e[42]=D,e[43]=p,e[44]=_):_=e[44],_}function ie(t){const e=N.c(3),{provider:n,className:o}=t;let s;return e[0]!==o||e[1]!==n?(s=l.jsx(q,{provider:n,size:16,className:o}),e[0]=o,e[1]=n,e[2]=s):s=e[2],s}function qe(t){return(t??[]).filter(e=>e.status==="active"&&e.servable)}function pe(t){const e=N.c(20),{provider:n,path:o,host:s,hint:i,disabled:r,busy:a,onSelect:d}=t,f=r&&"opacity-60 cursor-not-allowed";let c;e[0]!==f?(c=J("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",f),e[0]=f,e[1]=c):c=e[1];let u;e[2]!==n?(u=l.jsx("div",{className:"size-8 rounded-lg bg-muted flex items-center justify-center shrink-0",children:l.jsx(ie,{provider:n,className:"text-muted-foreground"})}),e[2]=n,e[3]=u):u=e[3];let x;e[4]!==o?(x=l.jsx("span",{className:"block text-sm font-medium truncate",children:o}),e[4]=o,e[5]=x):x=e[5];const m=i?`${s} · ${i}`:s;let b;e[6]!==m?(b=l.jsx("span",{className:"block text-xs text-muted-foreground truncate",children:m}),e[6]=m,e[7]=b):b=e[7];let h;e[8]!==x||e[9]!==b?(h=l.jsxs("span",{className:"flex-1 min-w-0",children:[x,b]}),e[8]=x,e[9]=b,e[10]=h):h=e[10];let g;e[11]!==a?(g=a?l.jsx(re,{className:"size-4 text-muted-foreground"}):l.jsx(se,{size:16,className:"shrink-0 text-muted-foreground"}),e[11]=a,e[12]=g):g=e[12];let j;return e[13]!==r||e[14]!==d||e[15]!==c||e[16]!==u||e[17]!==h||e[18]!==g?(j=l.jsxs("button",{type:"button",disabled:r,onClick:d,className:c,children:[u,h,g]}),e[13]=r,e[14]=d,e[15]=c,e[16]=u,e[17]=h,e[18]=g,e[19]=j):j=e[19],j}function Ue(t){const e=N.c(25),{onPick:n,pendingPath:o}=t,s=K(),i=Re(),[r,a]=A.useState("");if(i.isPending){let c;return e[0]===Symbol.for("react.memo_cache_sentinel")?(c=l.jsx(te,{className:"h-24 w-full"}),e[0]=c):c=e[0],c}if(i.isError){let c;return e[1]!==i.error.message?(c=l.jsx("p",{role:"alert",className:"p-4 text-sm text-destructive",children:i.error.message}),e[1]=i.error.message,e[2]=c):c=e[2],c}let d,f;if(e[3]!==n||e[4]!==o||e[5]!==r||e[6]!==i.data||e[7]!==s){f=Symbol.for("react.early_return_sentinel");e:{const c=i.data??[];if(c.length===0){f=null;break e}let u;e[10]!==r?(u=y=>y.path.toLowerCase().includes(r.trim().toLowerCase()),e[10]=r,e[11]=u):u=e[11];const x=c.filter(u);let m;e[12]!==s?(m=s("common.repositoryPicker.searchPlaceholder"),e[12]=s,e[13]=m):m=e[13];const b=o!==null;let h;e[14]!==r||e[15]!==m||e[16]!==b?(h=l.jsx(he,{value:r,onChange:a,placeholder:m,disabled:b}),e[14]=r,e[15]=m,e[16]=b,e[17]=h):h=e[17];let g;e[18]!==s?(g=s("common.repositoryPicker.linkedSection"),e[18]=s,e[19]=g):g=e[19];let j;e[20]!==g?(j=l.jsx("p",{className:"px-4 pt-4 pb-2 text-xs font-medium text-muted-foreground",children:g}),e[20]=g,e[21]=j):j=e[21];let p;e[22]!==n||e[23]!==o?(p=y=>l.jsx(pe,{provider:y.provider,path:y.path,host:y.host,hint:y.defaultBranch,disabled:o!==null,busy:o===y.id,onSelect:()=>n(y)},y.id),e[22]=n,e[23]=o,e[24]=p):p=e[24],d=l.jsxs("div",{className:"pb-2",children:[h,j,x.length===0&&l.jsx("p",{className:"px-4 py-6 text-center text-sm text-muted-foreground",children:s("common.repositoryPicker.searchEmpty")}),x.map(p)]})}e[3]=n,e[4]=o,e[5]=r,e[6]=i.data,e[7]=s,e[8]=d,e[9]=f}else d=e[8],f=e[9];return f!==Symbol.for("react.early_return_sentinel")?f:d}function Me(t){const e=N.c(35),{account:n,onLink:o,pendingPath:s}=t,i=K(),[r,a]=A.useState(""),d=Pe(r,300),f=A.useDeferredValue(d),c=r!==f,u=De(n.id,f);let x,m,b,h;if(e[0]!==c||e[1]!==o||e[2]!==s||e[3]!==r||e[4]!==u.data?.pages||e[5]!==u.error||e[6]!==u.hasNextPage||e[7]!==u.isError||e[8]!==u.isFetching||e[9]!==u.isPending||e[10]!==i){const y=u.data?.pages.flatMap(Qe)??[];b="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 w=c||u.isFetching;e[17]!==r||e[18]!==v||e[19]!==w?(h=l.jsx(he,{placeholder:v,value:r,onChange:a,isSearching:w}),e[17]=r,e[18]=v,e[19]=w,e[20]=h):h=e[20];const E=c?"opacity-40":"opacity-100";e[21]!==E?(x=J("flex-1 overflow-y-auto transition-opacity duration-150",E),e[21]=E,e[22]=x):x=e[22],m=u.isPending?l.jsx("div",{className:"flex-1 flex items-center justify-center py-10",children:l.jsx(re,{className:"size-4.5 text-muted-foreground"})}):u.isError?l.jsx("p",{className:"px-4 py-10 text-center text-sm text-muted-foreground",children:u.error instanceof Error?u.error.message:i("common.repositoryPicker.searchFailed")}):y.length===0?l.jsx("p",{className:"px-4 py-10 text-center text-sm text-muted-foreground",children:i(u.hasNextPage?"common.repositoryPicker.searchMore":"common.repositoryPicker.searchEmpty")}):y.map(P=>l.jsx(pe,{provider:P.ref.provider,path:P.ref.path,host:P.ref.host,hint:P.visibility,disabled:s!==null,busy:s===P.ref.path,onSelect:()=>o(P.webUrl,P.ref.path)},`${P.ref.host}/${P.ref.path}`)),e[0]=c,e[1]=o,e[2]=s,e[3]=r,e[4]=u.data?.pages,e[5]=u.error,e[6]=u.hasNextPage,e[7]=u.isError,e[8]=u.isFetching,e[9]=u.isPending,e[10]=i,e[11]=x,e[12]=m,e[13]=b,e[14]=h}else x=e[11],m=e[12],b=e[13],h=e[14];let g;e[23]!==s||e[24]!==u||e[25]!==i?(g=u.hasNextPage&&l.jsx(U,{variant:"ghost",className:"w-full",disabled:u.isFetchingNextPage||s!==null,onClick:()=>{u.fetchNextPage()},children:i("common.repositoryPicker.loadMore")}),e[23]=s,e[24]=u,e[25]=i,e[26]=g):g=e[26];let j;e[27]!==x||e[28]!==m||e[29]!==g?(j=l.jsxs("div",{className:x,children:[m,g]}),e[27]=x,e[28]=m,e[29]=g,e[30]=j):j=e[30];let p;return e[31]!==b||e[32]!==h||e[33]!==j?(p=l.jsxs("div",{className:b,children:[h,j]}),e[31]=b,e[32]=h,e[33]=j,e[34]=p):p=e[34],p}function Qe(t){return t.repositories}function Ye(t){const e=N.c(14),{accounts:n,onSelect:o,disabled:s}=t,i=K();let r;e[0]!==i?(r=i("common.repositoryPicker.browseSection"),e[0]=i,e[1]=r):r=e[1];let a;e[2]!==r?(a=l.jsx("p",{className:"px-4 py-2 text-xs font-medium text-muted-foreground",children:r}),e[2]=r,e[3]=a):a=e[3];let d;if(e[4]!==n||e[5]!==s||e[6]!==o){let c;e[8]!==s||e[9]!==o?(c=u=>l.jsxs("button",{type:"button",onClick:()=>o(u),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:[l.jsx(me,{url:u.avatarUrl?.trim()||void 0,fallback:l.jsx(ie,{provider:u.type,className:"text-muted-foreground"}),shape:"circle",size:"sm",className:"size-8",muted:!0}),l.jsxs("span",{className:"flex-1 min-w-0",children:[l.jsx("span",{className:"block text-sm font-medium truncate",children:u.login}),l.jsx("span",{className:"block text-xs text-muted-foreground truncate",children:u.host})]}),l.jsx(se,{size:16,className:"text-muted-foreground"})]},u.id),e[8]=s,e[9]=o,e[10]=c):c=e[10],d=n.map(c),e[4]=n,e[5]=s,e[6]=o,e[7]=d}else d=e[7];let f;return e[11]!==a||e[12]!==d?(f=l.jsxs("div",{className:"py-2",children:[a,d]}),e[11]=a,e[12]=d,e[13]=f):f=e[13],f}function dt({open:t,onOpenChange:e,title:n,onPicked:o,onError:s}){const i=K(),r=Le(),a=He(),[d,f]=A.useState(null),[c,u]=A.useState(null),[x,m]=A.useState(null),b=qe(r.data);function h(p){const y=p instanceof Error?p.message:i("common.repositoryPicker.linkFailed");m(y),s?.(y)}async function g(p){u(p.id),m(null);try{await o({repository:p})}catch(y){h(y)}finally{u(null)}}async function j(p,y){if(d){u(y),m(null);try{const v=await a.mutateAsync({url:p,accountId:d.id});await o({repository:v})}catch(v){h(v)}finally{u(null)}}}return l.jsx(fe,{open:t,onOpenChange:p=>{c===null&&(p||(f(null),m(null)),e(p))},children:l.jsxs(de,{className:"sm:max-w-lg max-h-[85svh] p-0 gap-0 overflow-hidden flex flex-col",children:[l.jsxs(ue,{className:"sr-only",children:[l.jsx(ce,{children:n}),l.jsx(ae,{children:i("common.repositoryPicker.description")})]}),l.jsxs("div",{className:"flex items-center h-12 border-b border-border px-4 pr-12 gap-3 shrink-0",children:[d?l.jsx(U,{size:"icon",variant:"ghost",className:"size-6 -ml-1",disabled:c!==null,onClick:()=>f(null),"aria-label":i("common.repositoryPicker.back"),children:l.jsx(ve,{size:16})}):l.jsx(Ne,{size:16,className:"text-muted-foreground shrink-0"}),d&&l.jsx(me,{url:d.avatarUrl?.trim()||void 0,fallback:l.jsx(ie,{provider:d.type,className:"text-muted-foreground"}),shape:"circle",size:"sm",className:"size-6",muted:!0}),l.jsx("span",{className:"text-sm font-medium truncate",children:d?d.login:n})]}),r.isPending?l.jsx("div",{className:"p-4",children:l.jsx(te,{className:"h-24 w-full"})}):r.isError?l.jsx("p",{role:"alert",className:"p-4 text-sm text-destructive",children:r.error.message}):d?l.jsx(Me,{account:d,onLink:(p,y)=>{j(p,y)},pendingPath:c},d.id):l.jsxs("div",{className:"flex-1 overflow-y-auto",children:[l.jsx(Ue,{onPick:g,pendingPath:c}),b.length>0&&l.jsx(Ye,{accounts:b,onSelect:f,disabled:c!==null}),l.jsxs("div",{className:"border-t border-border py-2",children:[l.jsx("p",{className:"px-4 py-2 text-xs text-muted-foreground leading-relaxed",children:i("common.repositoryPicker.description")}),l.jsx(Ge,{layout:"picker",disabled:c!==null})]})]}),x&&l.jsx("p",{role:"alert",className:"px-4 pb-3 text-sm text-destructive",children:x})]})})}export{q as G,dt as R,Ae as a,at as b,ut as c,Le as d,Ge as e,rt as p,ct as r,Re 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,b$ as x,O as h}from"./index-BEoXIi96.js";import{i as u}from"./settings-sidebar-BBKY62CM.js";import{T as l}from"./toolbar-DJSf7gmi.js";import{S as j,M as b}from"./shell-controls-CThcSmeK.js";import{u as S}from"./use-status-sounds-D3jpKPg_.js";import"./ChevronUp-BsQdOFhn.js";import"./ChevronRight-CoUl6dHM.js";import"./TrendUp01-BPcG0VZ2.js";import"./toolbar-icon-button-DcRfKvZu.js";import"./Check-mIk-Zdri.js";import"./ChevronSelectorVertical-DgbgJIgx.js";import"./Plus-3CMW8aY5.js";import"./command-C8qMEhaG.js";import"./index-KykP8MNQ.js";import"./dialog-D6PrlHs3.js";import"./SearchMd-DNTL0r7E.js";import"./drawer-CKDQN4Qv.js";import"./popover-CEyILQP8.js";import"./agent-icon-CNkeVIGx.js";import"./AlertCircle-UmLlY8gt.js";import"./Tool01-CxaNpYBN.js";import"./ArrowUp-tJnhyHYV.js";import"./ArrowLeft-CKGsgaFO.js";import"./Tool02-D8aijKEK.js";import"./ArrowRight-DkzY_YHb.js";import"./ZoomOut-C2eKrhT6.js";import"./Users03-DLEUw1TQ.js";import"./CheckCircle-DrFO4Bvc.js";import"./DotsVertical-LQnPIhpJ.js";import"./UserSquare-DgMxtQAT.js";import"./Copy01-B9voSPXW.js";import"./CreditCard01-BwVgysoQ.js";import"./Download01-DuC_qV7_.js";import"./Settings02-BkXl17NJ.js";import"./Eye-BNbA0ZH1.js";import"./Share07-_ciA_Du3.js";import"./GitBranch01-CEGTuE7l.js";import"./Globe01-Ct8tiHdr.js";import"./XClose-D4ceJ-NM.js";import"./HardDrive-DeQRGeCm.js";import"./Image01-BOV108nN.js";import"./Key01-DwPkNGAi.js";import"./Link01-CaYtZMuf.js";import"./LinkExternal01-BL5IYsGT.js";import"./Monitor01-CcdvNcNU.js";import"./Sun-iXMmiuE1.js";import"./Package-DuXJoDs3.js";import"./Palette-BZ4o6l5p.js";import"./Play-BuyaXe7U.js";import"./SearchLg-Cw3nH7Cl.js";import"./Shield01-DEeMJbvH.js";import"./Stars01-119xkrYB.js";import"./Trash01-aDQVPlte.js";import"./Upload01-DP3uFIbj.js";import"./User01-uB5x1Z7I.js";import"./Users01-C5oQyGpK.js";import"./XCircle-CPARFFz5.js";import"./Zap-CN63rPHF.js";import"./project-icon-Cvf-f60M.js";import"./use-mcp-client-CBIDHgJb.js";import"./auth-BifFxAMn.js";import"./use-virtual-mcp-BBIVsgiJ.js";import"./github-repo-CTPv5ZM2.js";import"./create-organization-dialog-DnARvowu.js";import"./alert-dialog-yY0onn0b.js";import"./form-DCRMYQ5T.js";import"./label-DfTzeVB6.js";import"./input-DuuQU-5P.js";import"./use-destination-route-0bGpW2wX.js";import"./anchors-yqDzZN4K.js";import"./use-join-requests-CHsZ3BPZ.js";import"./question-004-sINsf4GQ.js";import"./use-decopilot-events-BmNBMYMj.js";import"./decopilot-sse-pool-CGUVxGA5.js";import"./task-board-BfutDBLl.js";import"./schema-BjF21APH.js";import"./backoff-CrEUbyZT.js";function g(){const t=n.c(3),r=a(),{org:p}=c();S(p.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 Dt(){const t=n.c(10),r=a();let p;t[0]!==r?(p=r&&o.jsxs(l.Header,{children:[o.jsx(l.LeftColumn,{children:o.jsx(j,{})}),o.jsx(l.CenterSlot,{}),o.jsx(l.RightColumn,{children:o.jsx("span",{})})]}),t[0]=r,t[1]=p):p=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]!==p?(m=o.jsxs("div",{className:"flex flex-col h-full min-h-0",children:[p,e]}),t[3]=p,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(l.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{Dt as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/registry-layout-BHrN6Ljc.js","assets/index-BEoXIi96.js","assets/index-DJADaZ4J.css","assets/Tool02-D8aijKEK.js","assets/CheckCircle-DrFO4Bvc.js","assets/Settings02-BkXl17NJ.js","assets/use-mcp-client-CBIDHgJb.js","assets/auth-BifFxAMn.js","assets/useInfiniteQuery-D46s077h.js","assets/infiniteQueryObserver-C0gtCSKc.js","assets/badge-Bek9yAA7.js","assets/input-DuuQU-5P.js","assets/dropdown-menu-BN-ZPax7.js","assets/Check-mIk-Zdri.js","assets/ChevronRight-CoUl6dHM.js","assets/DotsVertical-LQnPIhpJ.js","assets/table-CFBqR8pE.js","assets/toggle-group-jOXSCXvB.js","assets/use-view-mode-C2w1nkdo.js","assets/Globe01-Ct8tiHdr.js","assets/SearchMd-DNTL0r7E.js","assets/dialog-D6PrlHs3.js","assets/AlertCircle-UmLlY8gt.js","assets/Download01-DuC_qV7_.js","assets/Upload01-DP3uFIbj.js","assets/metadata-dUsYcpuu.js","assets/alert-dialog-yY0onn0b.js","assets/Trash01-aDQVPlte.js","assets/label-DfTzeVB6.js","assets/select-Ctm5j_ac.js","assets/ChevronUp-BsQdOFhn.js","assets/switch-C6U0UT4f.js","assets/textarea-UK3aSYEU.js","assets/ArrowLeft-CKGsgaFO.js","assets/ArrowRight-DkzY_YHb.js","assets/Link01-CaYtZMuf.js","assets/safe-image-url-D5z803Ot.js","assets/checkbox-D5UNPAi9.js","assets/Eye-BNbA0ZH1.js","assets/LinkExternal01-BL5IYsGT.js","assets/XCircle-CPARFFz5.js","assets/use-infinite-scroll-B16CEhLl.js","assets/use-copy-1Ld-wFUW.js","assets/Copy01-B9voSPXW.js","assets/Key01-DwPkNGAi.js","assets/Plus-3CMW8aY5.js","assets/mcp-oauth-ytJMtAma.js","assets/Play-BuyaXe7U.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,bq as p}from"./index-BEoXIi96.js";import{R as u}from"./require-capability-OCZS-hol.js";import"./access-gate-BL9g1s42.js";import"./capability-load-error-C8dRTAUB.js";const g=l.lazy(()=>p(()=>import("./registry-layout-BHrN6Ljc.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{I as u}from"./infiniteQueryObserver-C0gtCSKc.js";import{fd as i}from"./index-BEoXIi96.js";function t(e,r){return i(e,u,r)}export{t as u};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{I as s}from"./infiniteQueryObserver-C0gtCSKc.js";import{fd as u,bY as n}from"./index-BEoXIi96.js";function a(r,e){return u({...r,enabled:!0,suspense:!0,throwOnError:n},s,e)}export{a as u};
|