decocms 4.355.0 → 4.355.1
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-Bpv9M3Mo.js → AlertCircle-BnJSjvRr.js} +1 -1
- package/dist/client/assets/{AreaChart-CI6aJo6b.js → AreaChart-CZfx3tNT.js} +1 -1
- package/dist/client/assets/{ArrowLeft-DdhFLsvX.js → ArrowLeft-CFd_URtJ.js} +1 -1
- package/dist/client/assets/{ArrowRight-BuNp61o4.js → ArrowRight-CIjsALWT.js} +1 -1
- package/dist/client/assets/{ArrowUp-3idF8h-F.js → ArrowUp-BL_Z3gaA.js} +1 -1
- package/dist/client/assets/{Check-BeSUa4SA.js → Check-PVF6vrar.js} +1 -1
- package/dist/client/assets/{CheckCircle-B9b2Ze8a.js → CheckCircle-DWGenYVe.js} +1 -1
- package/dist/client/assets/{ChevronRight-B4xjdR-V.js → ChevronRight-DZ_A_9gi.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-Bookbgd_.js → ChevronSelectorVertical-DM1bCZ5U.js} +1 -1
- package/dist/client/assets/{ChevronUp-92pPtFia.js → ChevronUp-DCxC4nqn.js} +1 -1
- package/dist/client/assets/{Copy01-DZjNdwnY.js → Copy01-DCWIjDLi.js} +1 -1
- package/dist/client/assets/{CreditCard01-ja32JXES.js → CreditCard01-C5_XNJti.js} +1 -1
- package/dist/client/assets/{DotsVertical-Cyoi6mM-.js → DotsVertical-DpjgNoh-.js} +1 -1
- package/dist/client/assets/{Download01-BJ0Aw71K.js → Download01-Du8Vadan.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-DmjAhEdT.js → ErrorBarContext-DzIqoDvw.js} +1 -1
- package/dist/client/assets/{Eye-BokJBg-8.js → Eye-BByX4xau.js} +1 -1
- package/dist/client/assets/{GitBranch01-DjBM23NV.js → GitBranch01-BH6dGtWi.js} +1 -1
- package/dist/client/assets/{Globe01-BpBePEO9.js → Globe01-DlaG-NnI.js} +1 -1
- package/dist/client/assets/{HardDrive-nnly2qPC.js → HardDrive-CUdLIQ85.js} +1 -1
- package/dist/client/assets/{Image01-C7w_5NYE.js → Image01-7KOsFSn6.js} +1 -1
- package/dist/client/assets/{Key01-DpcwZmv-.js → Key01-Cgpr5iVq.js} +1 -1
- package/dist/client/assets/{Link01-CAQid5t0.js → Link01-BwBpqz0z.js} +1 -1
- package/dist/client/assets/{LinkExternal01-DFTJ8Aoq.js → LinkExternal01-DEZgimKD.js} +1 -1
- package/dist/client/assets/{Monitor01-BslR886c.js → Monitor01-BrWUHiMt.js} +1 -1
- package/dist/client/assets/{Package-DXK0LLmt.js → Package-Cz6cuFXC.js} +1 -1
- package/dist/client/assets/{Palette-CuHE99fD.js → Palette-C62-AS5d.js} +1 -1
- package/dist/client/assets/{Play-BvFpl0fO.js → Play-y6LHuyl1.js} +1 -1
- package/dist/client/assets/{Plus-BQUCrYF9.js → Plus-C4BLg9rY.js} +1 -1
- package/dist/client/assets/{SearchLg-Bt9MbMuw.js → SearchLg-5JXlPePj.js} +1 -1
- package/dist/client/assets/{SearchMd-DaEAX-Rt.js → SearchMd-iLxrs9MR.js} +1 -1
- package/dist/client/assets/{Sector-ZbPmglZy.js → Sector-DHEwtC7f.js} +1 -1
- package/dist/client/assets/{Settings02-BCUOna1P.js → Settings02-HilGA_l8.js} +1 -1
- package/dist/client/assets/{Share07-5UuFsPQD.js → Share07-C5fLDjhG.js} +1 -1
- package/dist/client/assets/{Shield01-DujarpiA.js → Shield01-CM8p_GEF.js} +1 -1
- package/dist/client/assets/{Stars01-CEuw7OKB.js → Stars01-B27dL-gW.js} +1 -1
- package/dist/client/assets/{Sun-DyvDnRb-.js → Sun-C6IH4klW.js} +1 -1
- package/dist/client/assets/{Tool01-C9HWfAnp.js → Tool01-q_jLTCKZ.js} +1 -1
- package/dist/client/assets/{Tool02-AemZ--z3.js → Tool02-DKVecUxz.js} +1 -1
- package/dist/client/assets/{Trash01-Djv1nLoz.js → Trash01-DTRwSnwl.js} +1 -1
- package/dist/client/assets/{TrendUp01-Dqmx1wpU.js → TrendUp01-Dc0HNJry.js} +1 -1
- package/dist/client/assets/{Upload01-Z5iM-Tiz.js → Upload01-D7EURws9.js} +1 -1
- package/dist/client/assets/{User01-wEgf8NoL.js → User01-CIoTN2qr.js} +1 -1
- package/dist/client/assets/{UserSquare-DtPXmwBX.js → UserSquare-BoLQORca.js} +1 -1
- package/dist/client/assets/{Users01-l-9DDbBW.js → Users01-DMZvF9yz.js} +1 -1
- package/dist/client/assets/{Users03-DhT0plpt.js → Users03-C-hy1klX.js} +1 -1
- package/dist/client/assets/{XCircle-C-xpPFXd.js → XCircle-B2HwIa6n.js} +1 -1
- package/dist/client/assets/{XClose-D4Bvg4QW.js → XClose-DljE5x9b.js} +1 -1
- package/dist/client/assets/{Zap-Z_UfUTMz.js → Zap-DL_o7-ob.js} +1 -1
- package/dist/client/assets/{ZoomOut-DoJ8bcep.js → ZoomOut-RWKUY6hj.js} +1 -1
- package/dist/client/assets/{access-gate-6EYcqWG4.js → access-gate-D30eITwH.js} +1 -1
- package/dist/client/assets/{agent-icon-1FhRoNmT.js → agent-icon-BA5Q75L0.js} +1 -1
- package/dist/client/assets/{agents-list-aTiLEV6u.js → agents-list-NrabdqUD.js} +1 -1
- package/dist/client/assets/{ai-providers-BPHj7NHz.js → ai-providers-ClqQNrqt.js} +1 -1
- package/dist/client/assets/{alert-dialog-D4B8xwmj.js → alert-dialog-B9Cqya-5.js} +1 -1
- package/dist/client/assets/{alert-Cz-ifxc3.js → alert-pUX7_vwd.js} +1 -1
- package/dist/client/assets/{analytics-tab-CL4wOZ2T.js → analytics-tab-CZWO9-z3.js} +1 -1
- package/dist/client/assets/api-keys-BC4QXn71.js +1 -0
- package/dist/client/assets/{api-keys-G_Due0S2.js → api-keys-p8sqiCGM.js} +1 -1
- package/dist/client/assets/app-editor-zB_RgTfi.js +1 -0
- package/dist/client/assets/{auth-BwGmO91c.js → auth-SROEnleF.js} +1 -1
- package/dist/client/assets/{auth-catchall-DDJQYz5_.js → auth-catchall-B3FaofbX.js} +1 -1
- package/dist/client/assets/{auth-entry-B2ZJMuFl.js → auth-entry-D8OvofyR.js} +1 -1
- package/dist/client/assets/{auth-split-layout-CN1G0CMa.js → auth-split-layout-C1ukWJzE.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-CXHQCghQ.js → authenticate-and-persist-oauth-B94cTWsZ.js} +1 -1
- package/dist/client/assets/{automation-list-row-C5k98k29.js → automation-list-row-Cq-8ml_t.js} +1 -1
- package/dist/client/assets/{automation-runs-T6pywo7x.js → automation-runs-D1o8Ui_t.js} +1 -1
- package/dist/client/assets/{automations-DM5wnYr-.js → automations-5Xtw4sgu.js} +1 -1
- package/dist/client/assets/{autosend-BSYpWfil.js → autosend-BYDxYeyM.js} +1 -1
- package/dist/client/assets/{avatar-D1uraqXx.js → avatar-DCRnkiqQ.js} +1 -1
- package/dist/client/assets/{badge-DJqPRhkR.js → badge-DTaRDPAR.js} +1 -1
- package/dist/client/assets/{block-document-DTd65w3u.js → block-document-CzuOrMeM.js} +1 -1
- package/dist/client/assets/{breadcrumb-BlpOkR-x.js → breadcrumb-DF8Vvl2V.js} +1 -1
- package/dist/client/assets/{buckets-iaZdXcps.js → buckets-OS788J9T.js} +1 -1
- package/dist/client/assets/{bulk-category-panel-CVW02rsB.js → bulk-category-panel-DemyqjzI.js} +1 -1
- package/dist/client/assets/{capability-load-error-CZZauU11.js → capability-load-error-RhsCsNaD.js} +1 -1
- package/dist/client/assets/{cards-CSiCIOz0.js → cards-CJz74Frj.js} +1 -1
- package/dist/client/assets/{category-editor-9CubYkk1.js → category-editor-BPDkqZ1X.js} +1 -1
- package/dist/client/assets/{cdn-tab-BKqDZ-uC.js → cdn-tab-Ce_KteSc.js} +1 -1
- package/dist/client/assets/{chart-BnDfVchh.js → chart-FV76nfQo.js} +1 -1
- package/dist/client/assets/{chat-context-BIl0a_-x.js → chat-context-BYX6I5Fd.js} +1 -1
- package/dist/client/assets/{checkbox-BImR-liK.js → checkbox-BimlBJuz.js} +1 -1
- package/dist/client/assets/{choose-editor-0NO9eWVe.js → choose-editor-vZzAVuzE.js} +1 -1
- package/dist/client/assets/{cli-auth-success-DY7HYokl.js → cli-auth-success-BazJY0CD.js} +1 -1
- package/dist/client/assets/{client-icons-vSG7gy4v.js → client-icons-CshWnPu5.js} +1 -1
- package/dist/client/assets/{collection-detail-sBWmRaHM.js → collection-detail-BIN49Vpt.js} +1 -1
- package/dist/client/assets/{collection-display-button-ClvPIcxe.js → collection-display-button-DY2hUVUs.js} +1 -1
- package/dist/client/assets/{collection-search-DkFPt7IO.js → collection-search-D7Cj6HfC.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-McYG2YRD.js → collection-table-wrapper-B71xPUgB.js} +1 -1
- package/dist/client/assets/{collection-tabs-BuLa0mCq.js → collection-tabs-DJy9997W.js} +1 -1
- package/dist/client/assets/{command-vpSyzNuL.js → command-oMq_pqOr.js} +1 -1
- package/dist/client/assets/{commerce-onboarding-4St63hl8.js → commerce-onboarding-Y7LU1MOI.js} +1 -1
- package/dist/client/assets/{connect-DBMogdEa.js → connect-fh0xumf2.js} +1 -1
- package/dist/client/assets/{connect-layout-Col0jLYd.js → connect-layout-Bnimxjt0.js} +1 -1
- package/dist/client/assets/{connection-yNLgkrwi.js → connection-BKgK4EEG.js} +1 -1
- package/dist/client/assets/{connection-card-DyBNdLax.js → connection-card-CzNHvctS.js} +1 -1
- package/dist/client/assets/{connection-detail-B3UtQpZv.js → connection-detail-CRdmgjvx.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-CthU9O7u.js → connection-form-helpers-DJji_Jb6.js} +1 -1
- package/dist/client/assets/{connections-B5JhkcgY.js → connections-C6KImWhr.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-B7gkkCpX.js → create-organization-dialog-rvg59v3U.js} +1 -1
- package/dist/client/assets/{decopilot-sse-pool-DLf4riY9.js → decopilot-sse-pool-ByRDScf2.js} +1 -1
- package/dist/client/assets/{dialog-Cu56JIH4.js → dialog-B04kc62g.js} +1 -1
- package/dist/client/assets/{domain-settings-BDQWQ3G5.js → domain-settings-oaLI5FB-.js} +1 -1
- package/dist/client/assets/{drawer-xpx6fUMk.js → drawer-Bw_O4REy.js} +1 -1
- package/dist/client/assets/{dropdown-menu-DhGKgZoF.js → dropdown-menu-EWXYU2mk.js} +1 -1
- package/dist/client/assets/{e2e-tab-Uok9Zbg0.js → e2e-tab-CF2p5Tm4.js} +1 -1
- package/dist/client/assets/{editor-CHXbZUF2.js → editor-ChkB79mK.js} +1 -1
- package/dist/client/assets/{empty-state-E9qel69s.js → empty-state-8xdT9fUB.js} +1 -1
- package/dist/client/assets/{empty-state-BJi4GyzM.js → empty-state-CRzdgRHh.js} +1 -1
- package/dist/client/assets/{extract-connection-data-C8qw7buo.js → extract-connection-data-C-oki4yl.js} +1 -1
- package/dist/client/assets/{file-explorer-D2MaNOOd.js → file-explorer-Duxdjlta.js} +1 -1
- package/dist/client/assets/{file-type-icon-CelUV-GT.js → file-type-icon-BTszDjtn.js} +1 -1
- package/dist/client/assets/{folder-icon-CjwmyQMd.js → folder-icon-zfr8GEIh.js} +1 -1
- package/dist/client/assets/{form-DHeCY5Wn.js → form-NAnvNKNh.js} +1 -1
- package/dist/client/assets/{general-BNBamkvz.js → general-EYNf96uo.js} +1 -1
- package/dist/client/assets/{github-icon-BKLlhfRv.js → github-icon-D2iLhKKS.js} +1 -1
- package/dist/client/assets/{hooks-DFJk8jbs.js → hooks-5upKNaET.js} +1 -1
- package/dist/client/assets/{hosting-tab-CVGB2-Es.js → hosting-tab-BhNndoGk.js} +1 -1
- package/dist/client/assets/{index-Dyeksy7m.js → index-BICosFUY.js} +1 -1
- package/dist/client/assets/{index-C-J8uMw0.js → index-BLXX2F1Z.js} +1 -1
- package/dist/client/assets/{index-DoxGoN7B.js → index-BVkcOayd.js} +1 -1
- package/dist/client/assets/{index-DELErGs0.js → index-BlPslUSo.js} +6 -6
- package/dist/client/assets/{index-og4Spetx.js → index-CHCyce6s.js} +1 -1
- package/dist/client/assets/{index-7UtRrrfH.js → index-CRkq3miP.js} +1 -1
- package/dist/client/assets/{index-Cc7KoEkT.js → index-CsMaAxoQ.js} +1 -1
- package/dist/client/assets/{index-CFeGxYqE.js → index-DbGHY7ae.js} +1 -1
- package/dist/client/assets/{index-dxjbAgdh.js → index-Duje61Xv.js} +4 -4
- package/dist/client/assets/{index-DmJkJ48u.js → index-HsBszKk6.js} +1 -1
- package/dist/client/assets/{index-va4b2aOg.js → index-U0llG_rw.js} +1 -1
- package/dist/client/assets/{index-redirect-DfPYmTWZ.js → index-redirect-lymg6hAq.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-Ckg2pf_5.js → infiniteQueryObserver-BtQxTAMd.js} +1 -1
- package/dist/client/assets/{infra-billing-D3bxP1xR.js → infra-billing-jf3Yd95B.js} +1 -1
- package/dist/client/assets/{input-D3JPMdmV.js → input-CnXtEqVa.js} +1 -1
- package/dist/client/assets/{integration-icon-CEDJP9F9.js → integration-icon-vlzFlFo_.js} +1 -1
- package/dist/client/assets/{invite-member-dialog-7yVBiVZs.js → invite-member-dialog-BRD-sISH.js} +1 -1
- package/dist/client/assets/{label-Dh3WRFmE.js → label-Cde57soC.js} +1 -1
- package/dist/client/assets/{layout-DqyOlEbl.js → layout-d2-6fCTF.js} +1 -1
- package/dist/client/assets/{login-D278JoQz.js → login-P60d9M35.js} +1 -1
- package/dist/client/assets/{markdown-1rFQRUR9.js → markdown-DazdNUyR.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-DFHspdqa.js → mcp-app-renderer-Cfgwv9Wj.js} +1 -1
- package/dist/client/assets/{mcp-oauth-ByU5B1wW.js → mcp-oauth-86AEuQu1.js} +1 -1
- package/dist/client/assets/{members-gPb1VBrz.js → members-BHfkyhcb.js} +1 -1
- package/dist/client/assets/{monaco-editor-xNBPUyci.js → monaco-editor-IBD3LTXE.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-CTcn8kET.js → monitoring-stats-row-BaKMUKiS.js} +1 -1
- package/dist/client/assets/{multi-select-CSTRbAjP.js → multi-select-DSik8jKk.js} +1 -1
- package/dist/client/assets/{oauth-callback-D9RrrWns.js → oauth-callback-Kh-wXxBV.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-UfQuJ5IE.js → oauth-callback-ai-provider-Ji2YoCih.js} +1 -1
- package/dist/client/assets/{onboarding-hxoYisO5.js → onboarding-DI36rduC.js} +1 -1
- package/dist/client/assets/{org-layout-DALqGD_O.js → org-layout-xq5l_bu4.js} +1 -1
- package/dist/client/assets/{organization-choice-WksAAcxm.js → organization-choice-DPa54bzi.js} +1 -1
- package/dist/client/assets/{orgs-wJxsPbri.js → orgs-mzc4Kx78.js} +1 -1
- package/dist/client/assets/{page-seo-form-B3aDHmKL.js → page-seo-form-Dq9tYJrQ.js} +1 -1
- package/dist/client/assets/{popover-CyZEnWsJ.js → popover-BjSCyJZK.js} +1 -1
- package/dist/client/assets/{post-calendar-C8q4m1oe.js → post-calendar-BStgFHMo.js} +1 -1
- package/dist/client/assets/{post-editor-uE69x_3z.js → post-editor-BfBnFBgl.js} +1 -1
- package/dist/client/assets/{primitives-XEg2tBES.js → primitives-B2Acr6Dc.js} +1 -1
- package/dist/client/assets/{profile-C_-FxiCf.js → profile-DCWeRvLG.js} +1 -1
- package/dist/client/assets/{project-app-view-CeV_fYE3.js → project-app-view-Di4BAidr.js} +1 -1
- package/dist/client/assets/{project-icon-vuMrDOh-.js → project-icon-BVyI4baU.js} +1 -1
- package/dist/client/assets/{prompts-2WRJdZ-p.js → prompts-B3fp8Esg.js} +1 -1
- package/dist/client/assets/record-editor-W0g2bYOc.js +1 -0
- package/dist/client/assets/redirect-editor-D7U0akLq.js +1 -0
- package/dist/client/assets/registry-BQLcUCof.js +2 -0
- package/dist/client/assets/{registry-layout-D8zhDJsw.js → registry-layout-8a-v4D4w.js} +1 -1
- package/dist/client/assets/{reports-DNGBgxvJ.js → reports-s9Svwh5t.js} +1 -1
- package/dist/client/assets/{repositories-BO2Ye-lN.js → repositories-DmXLABm9.js} +1 -1
- package/dist/client/assets/{repository-import-picker-B8nAlUYR.js → repository-import-picker-_l8ASYjL.js} +1 -1
- package/dist/client/assets/{repository-picker-IES4m5H2.js → repository-picker-BccrsPEM.js} +1 -1
- package/dist/client/assets/{require-capability-CqfrOrds.js → require-capability-Bkv89TrS.js} +1 -1
- package/dist/client/assets/{required-auth-layout-BXfNtcI6.js → required-auth-layout-DJNMkIXV.js} +1 -1
- package/dist/client/assets/{reset-password-BQhxf0JD.js → reset-password-BIeLWYRD.js} +1 -1
- package/dist/client/assets/{review-settings-CG3U9yzv.js → review-settings-2purjtcb.js} +1 -1
- package/dist/client/assets/{roles-CeFlz1UN.js → roles-B7gOar-B.js} +1 -1
- package/dist/client/assets/{schema-DQy-MMoa.js → schema-CAcwVKmY.js} +1 -1
- package/dist/client/assets/{scroll-area-BkNjOKC8.js → scroll-area-DkGYPmJq.js} +1 -1
- package/dist/client/assets/{search-input-eoYbj2iI.js → search-input-BiMlIRHS.js} +1 -1
- package/dist/client/assets/{secrets-CtcK8Vn7.js → secrets-CyoBUMAP.js} +1 -1
- package/dist/client/assets/{sections-editor-_BhutJJ6.js → sections-editor-C9s3lw32.js} +1 -1
- package/dist/client/assets/{select-Ct-Vazyk.js → select-B8LB9lO7.js} +1 -1
- package/dist/client/assets/{select-model-BBoxa44t.js → select-model-Baf2kyO0.js} +1 -1
- package/dist/client/assets/{self-tool-result-DD5pnXiw.js → self-tool-result-Slq8ovsm.js} +1 -1
- package/dist/client/assets/{seo-editor-BYkeE4su.js → seo-editor-C45phfWQ.js} +1 -1
- package/dist/client/assets/settings-layout-6xaNrNLJ.js +1 -0
- package/dist/client/assets/{settings-sidebar-C-qdLxMs.js → settings-sidebar-BiJXC2C-.js} +1 -1
- package/dist/client/assets/{shell-controls-DLKaFX61.js → shell-controls-6IQR3cDd.js} +1 -1
- package/dist/client/assets/shell-layout-CO1dT5ds.js +1 -0
- package/dist/client/assets/{skill-preview-Bl-BIFnv.js → skill-preview-UZAbAgBZ.js} +1 -1
- package/dist/client/assets/{skills-DPvJrrRO.js → skills-D2qDiu5k.js} +1 -1
- package/dist/client/assets/{sso-7PkZ1tuC.js → sso-CEWJ6VLR.js} +1 -1
- package/dist/client/assets/{store-DfLmQEre.js → store-CyL9NuEO.js} +1 -1
- package/dist/client/assets/store-registry-Ba8_Y8s8.js +2 -0
- package/dist/client/assets/{switch-C1Yuo9_H.js → switch-BZ58mkBX.js} +1 -1
- package/dist/client/assets/{synced-repos-soGE7AGi.js → synced-repos-ChDFGnqn.js} +1 -1
- package/dist/client/assets/{table-CbOz2xhC.js → table-CmlmtKb5.js} +1 -1
- package/dist/client/assets/{tabs-Dq7ksO9-.js → tabs-d7ElgGKc.js} +1 -1
- package/dist/client/assets/{task-board-DWbv4I55.js → task-board-Cnr1TJQ1.js} +1 -1
- package/dist/client/assets/{task-route-C9livXIE.js → task-route-B574jwlk.js} +1 -1
- package/dist/client/assets/{tasks-DOwOmld3.js → tasks-B0RW0MCw.js} +1 -1
- package/dist/client/assets/{textarea-BWBed-O-.js → textarea-BhDs4BBF.js} +1 -1
- package/dist/client/assets/{thread-intent-DWuPeyAN.js → thread-intent-CHazkyv1.js} +1 -1
- package/dist/client/assets/{thread-route-L2CtS7ly.js → thread-route-BQtBayab.js} +1 -1
- package/dist/client/assets/{toggle-group-BlJcjaFK.js → toggle-group-Bq2mpWXX.js} +1 -1
- package/dist/client/assets/{toolbar-BO2mXtlL.js → toolbar-CegxR6KC.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-2CMFgKa_.js → toolbar-icon-button-Bb7pbVII.js} +1 -1
- package/dist/client/assets/{track-DXTftUee.js → track-Cplx0Mu9.js} +1 -1
- package/dist/client/assets/{types-BTxDgr7_.js → types-C3giwja2.js} +1 -1
- package/dist/client/assets/{use-ai-providers-BTBvY4Hc.js → use-ai-providers-CwXo7Cny.js} +1 -1
- package/dist/client/assets/{use-automations-Dxsq9WaT.js → use-automations-BElfIooR.js} +1 -1
- package/dist/client/assets/{use-autosave-B38Bs9jC.js → use-autosave-Cph-jhEM.js} +1 -1
- package/dist/client/assets/{use-connection-CrxTr3Cd.js → use-connection-FIA-Lf_9.js} +1 -1
- package/dist/client/assets/{use-copy-CUHkYQd1.js → use-copy-Bdm0S55W.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-wOn_ER-R.js → use-create-virtual-mcp-DWkmjuGw.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-D5Kfx3IJ.js → use-date-fns-locale-BjUZEcSO.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-BsXfln5P.js → use-debounced-autosave-BzRg2UAO.js} +1 -1
- package/dist/client/assets/{use-debounced-value-NNOICPj0.js → use-debounced-value-BuXRpR3Q.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-kkwWTwqq.js → use-decopilot-events-BRvv0b78.js} +1 -1
- package/dist/client/assets/{use-delete-connection-DzOGsxSh.js → use-delete-connection-DfegaiO4.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-Dq6Kse1K.js → use-deployment-admin-CrJxsiox.js} +1 -1
- package/dist/client/assets/{use-destination-route-90XzfzKs.js → use-destination-route-CTsCUJVB.js} +1 -1
- package/dist/client/assets/{use-file-configs-DsqznNn1.js → use-file-configs-lycL_AWx.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-D3GKVSmf.js → use-infinite-scroll-DChOO1cg.js} +1 -1
- package/dist/client/assets/{use-join-requests-CoN1MGnf.js → use-join-requests-Dt0o50jr.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-BOrIszZ6.js → use-mcp-auth-status-CBOBI4HE.js} +1 -1
- package/dist/client/assets/{use-mcp-client-CXOd5tZp.js → use-mcp-client-CuZUnG6t.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-Zu5xtpsP.js → use-mcp-prompts-HyDOtegX.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-Bltq7NmB.js → use-mcp-tools-CgIxaS-u.js} +1 -1
- package/dist/client/assets/{use-members-DzijC0_l.js → use-members-f6D1bcBl.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-CB-8_p6y.js → use-navigate-to-agent-i21QRbbT.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-CSFkNScF.js → use-org-auth-client-9XX1c-po.js} +1 -1
- package/dist/client/assets/{use-org-notice-BzBLqmJL.js → use-org-notice-D5-v8g1h.js} +1 -1
- package/dist/client/assets/{use-org-sso-C5M-ulSH.js → use-org-sso-CMIztxNP.js} +1 -1
- package/dist/client/assets/{use-organization-roles-CY5TW73V.js → use-organization-roles-BupS39pr.js} +1 -1
- package/dist/client/assets/{use-organization-settings-JhsPi-Rf.js → use-organization-settings-CKyr56Kd.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-B2TRoIaG.js → use-panel-navigate-DlAzxK8S.js} +1 -1
- package/dist/client/assets/{use-registry-connections-BysFk2t2.js → use-registry-connections-DhQHrKbp.js} +1 -1
- package/dist/client/assets/{use-secrets-7JT6TbB-.js → use-secrets-DNJM3_Iq.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-DtY_dTeP.js → use-section-preview-base-nhx9elgv.js} +1 -1
- package/dist/client/assets/{use-status-sounds-CIRXPjsN.js → use-status-sounds-Da9LCTcB.js} +1 -1
- package/dist/client/assets/{use-tags-dN-p9yRr.js → use-tags-clLk5v1W.js} +1 -1
- package/dist/client/assets/{use-view-mode-Bh9qtqUQ.js → use-view-mode-jaWbiw3O.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-BLkoZxZw.js → use-virtual-mcp-DFQ-_cXE.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-BWFATqB4.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-BiSsymj1.js +1 -0
- package/dist/client/assets/{users-cD0KEoyU.js → users-CLqg0p6h.js} +1 -1
- package/dist/client/assets/{variant-calendar-unJAtvEl.js → variant-calendar-DN--0tLd.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-DZtQZapo.js → view-mode-toggle-CRobbFgX.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +646 -646
- package/dist/server/server.js +485 -485
- package/package.json +1 -1
- package/dist/client/assets/api-keys-bqGnawOP.js +0 -1
- package/dist/client/assets/app-editor-DYemrJon.js +0 -1
- package/dist/client/assets/record-editor-DOL_Mr7i.js +0 -1
- package/dist/client/assets/redirect-editor-D1d24axR.js +0 -1
- package/dist/client/assets/registry-0lYMx3SZ.js +0 -2
- package/dist/client/assets/settings-layout-74s2xPsO.js +0 -1
- package/dist/client/assets/shell-layout-DKfp4SNR.js +0 -1
- package/dist/client/assets/store-registry-BTZSImF_.js +0 -2
- package/dist/client/assets/useInfiniteQuery-tHUa8vcP.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-axnqWbbC.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as Ee,b as cs,G as at,m as ms,K as Ue,j as s,n as Ss,r as ne,e as as,B as ce,b8 as Rs,t as de}from"./index-dxjbAgdh.js";import{i as ot}from"./AlertCircle-Bpv9M3Mo.js";import{t as rt}from"./ChevronUp-92pPtFia.js";import{i as ct}from"./ChevronRight-B4xjdR-V.js";import{be as dt,bf as Us,aD as it,av as mt,aF as ft,aY as ht,bg as ut,k as As}from"./agent-icon-1FhRoNmT.js";import{a as gt}from"./Copy01-DZjNdwnY.js";import{i as Ns}from"./Globe01-BpBePEO9.js";import{n as et}from"./LinkExternal01-DFTJ8Aoq.js";import{s as qs}from"./Plus-BQUCrYF9.js";import{d as Bs}from"./UserSquare-DtPXmwBX.js";import{s as Os}from"./Trash01-Djv1nLoz.js";import{i as xt}from"./Zap-Z_UfUTMz.js";import{B as me}from"./badge-DJqPRhkR.js";import{I as ls}from"./input-D3JPMdmV.js";import{L as hs}from"./label-Dh3WRFmE.js";import{c as Cs,d as Ds,b as ws,f as $s,g as zs,e as Ls,a as _s,A as ks}from"./alert-dialog-D4B8xwmj.js";import{c as Hs,d as Ms,e as Ws,b as Ks,D as Qs}from"./dialog-Cu56JIH4.js";import{S as Ys,b as Gs,a as Xs,d as Zs,c as js}from"./select-Ct-Vazyk.js";import{c as ss,e as os,a as ye,d as I,b as ts,T as q}from"./table-CbOz2xhC.js";import{E as Ps}from"./empty-state-E9qel69s.js";import{u as bt}from"./use-virtual-mcp-BLkoZxZw.js";import{r as Tt}from"./site-slug-uya6Wp4-.js";import"./Tool01-C9HWfAnp.js";import"./ArrowUp-3idF8h-F.js";import"./ArrowLeft-DdhFLsvX.js";import"./Tool02-AemZ--z3.js";import"./ArrowRight-BuNp61o4.js";import"./TrendUp01-Dqmx1wpU.js";import"./ZoomOut-DoJ8bcep.js";import"./Users03-DhT0plpt.js";import"./CheckCircle-B9b2Ze8a.js";import"./Check-BeSUa4SA.js";import"./ChevronSelectorVertical-Bookbgd_.js";import"./DotsVertical-Cyoi6mM-.js";import"./CreditCard01-ja32JXES.js";import"./Download01-BJ0Aw71K.js";import"./Settings02-BCUOna1P.js";import"./Eye-BokJBg-8.js";import"./Share07-5UuFsPQD.js";import"./GitBranch01-DjBM23NV.js";import"./XClose-D4Bvg4QW.js";import"./HardDrive-nnly2qPC.js";import"./Image01-C7w_5NYE.js";import"./Key01-DpcwZmv-.js";import"./Link01-CAQid5t0.js";import"./Monitor01-BslR886c.js";import"./Sun-DyvDnRb-.js";import"./Package-DXK0LLmt.js";import"./Palette-CuHE99fD.js";import"./Play-BvFpl0fO.js";import"./SearchLg-Bt9MbMuw.js";import"./SearchMd-DaEAX-Rt.js";import"./Shield01-DujarpiA.js";import"./Stars01-CEuw7OKB.js";import"./Upload01-Z5iM-Tiz.js";import"./User01-wEgf8NoL.js";import"./Users01-l-9DDbBW.js";import"./XCircle-C-xpPFXd.js";import"./use-mcp-client-CXOd5tZp.js";import"./auth-BwGmO91c.js";function Is(r,e){return r.name===e.name&&(r.scope??"runtime")===e.scope}function ps(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 Js(r){return r==="deco-deno"?"Deco Deno":r==="deco-tanstack"?"Deco TanStack":r??null}function pt(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 st(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"}),i=[["year",31536e3],["month",2592e3],["day",86400],["hour",3600],["minute",60]];for(const[a,c]of i)if(Math.abs(o)>=c)return l.format(-Math.round(o/c),a);return l.format(-o,"second")}function jt(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.floor(e/60),l=Math.round(e%60);return`${o}m ${l}s`}function Vs(r){const e=r instanceof Error?r.message.toLowerCase():"";return e.includes("unauthorized")||e.includes("401")}function ds(r){return r instanceof Error?r.message:String(r)}async function fs(r){const e=await fetch(r),o=await e.json().catch(()=>({}));if(!e.ok){const l=o&&typeof o=="object"&&"error"in o?String(o.error):`request failed (${e.status})`;throw new Error(l)}return o}async function rs(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}),i=await l.json().catch(()=>({}));if(!l.ok){const a=i&&typeof i=="object"&&"error"in i?String(i.error):`request failed (${l.status})`;throw new Error(a)}return i}function ys(r){const e=Ee.c(15),{title:o,count:l,action:i,children:a}=r;let c;e[0]!==o?(c=s.jsx("h3",{className:"text-sm font-medium text-foreground",children:o}),e[0]=o,e[1]=c):c=e[1];let d;e[2]!==l?(d=typeof l=="number"&&l>0&&s.jsx(me,{variant:"secondary",className:"tabular-nums",children:l}),e[2]=l,e[3]=d):d=e[3];let t;e[4]!==i?(t=i&&s.jsx("div",{className:"ml-auto",children:i}),e[4]=i,e[5]=t):t=e[5];let n;e[6]!==c||e[7]!==d||e[8]!==t?(n=s.jsxs("header",{className:"flex items-center gap-2 px-4 py-3 border-b border-border",children:[c,d,t]}),e[6]=c,e[7]=d,e[8]=t,e[9]=n):n=e[9];let u;e[10]!==a?(u=s.jsx("div",{className:"p-2",children:a}),e[10]=a,e[11]=u):u=e[11];let v;return e[12]!==n||e[13]!==u?(v=s.jsxs("section",{className:"rounded-xl border border-border bg-card overflow-hidden",children:[n,u]}),e[12]=n,e[13]=u,e[14]=v):v=e[14],v}function vs(r){const e=Ee.c(3),{cols:o}=r;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=[0,1,2],e[0]=l):l=e[0];let i;return e[1]!==o?(i=s.jsx("div",{className:"flex flex-col gap-2 p-2",children:l.map(a=>s.jsx("div",{className:"flex gap-3",children:Array.from({length:o}).map(Pt)},a))}),e[1]=o,e[2]=i):i=e[2],i}function Pt(r,e){return s.jsx(Rs,{className:"h-4 flex-1"},e)}function Ye(r){const e=Ee.c(2),{children:o}=r;let l;return e[0]!==o?(l=s.jsx("div",{className:"px-3 py-6 text-sm text-muted-foreground",children:o}),e[0]=o,e[1]=l):l=e[1],l}function yt(r){const e=Ee.c(54),{base:o,orgSlug:l,site:i}=r,a=cs(),c=Ss(),[d,t]=ne.useState(!1);let n;e[0]!==o?(n=()=>rs(`${o}/deploy`,"POST",{mode:"current"}),e[0]=o,e[1]=n):n=e[1];let u;e[2]!==l||e[3]!==c||e[4]!==i||e[5]!==a?(u=()=>{c.invalidateQueries({queryKey:Ue.hostingDeployments(l,i)}),c.invalidateQueries({queryKey:Ue.hostingDeploymentHistory(l,i)}),de.success(a("mainPanelTabs.hostingTab.toastDeployQueued")),t(!1)},e[2]=l,e[3]=c,e[4]=i,e[5]=a,e[6]=u):u=e[6];let v;e[7]!==n||e[8]!==u?(v={mutationFn:n,onSuccess:u,onError:vt},e[7]=n,e[8]=u,e[9]=v):v=e[9];const m=as(v);let N;e[10]===Symbol.for("react.memo_cache_sentinel")?(N=()=>t(!0),e[10]=N):N=e[10];let g;e[11]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(Bs,{className:"size-4"}),e[11]=g):g=e[11];let p;e[12]!==m.isPending||e[13]!==a?(p=m.isPending?a("mainPanelTabs.hostingTab.deploying"):a("mainPanelTabs.hostingTab.deploy"),e[12]=m.isPending,e[13]=a,e[14]=p):p=e[14];let h;e[15]!==m.isPending||e[16]!==p?(h=s.jsxs(ce,{size:"sm",onClick:N,disabled:m.isPending,children:[g,p]}),e[15]=m.isPending,e[16]=p,e[17]=h):h=e[17];let y;e[18]!==a?(y=a("mainPanelTabs.hostingTab.deployConfirmTitle"),e[18]=a,e[19]=y):y=e[19];let j;e[20]!==y?(j=s.jsx(Cs,{children:y}),e[20]=y,e[21]=j):j=e[21];let w;e[22]!==a?(w=a("mainPanelTabs.hostingTab.deployConfirmDescription"),e[22]=a,e[23]=w):w=e[23];let T;e[24]!==w?(T=s.jsx(Ds,{children:w}),e[24]=w,e[25]=T):T=e[25];let S;e[26]!==T||e[27]!==j?(S=s.jsxs(ws,{children:[j,T]}),e[26]=T,e[27]=j,e[28]=S):S=e[28];const $=m.isPending;let z;e[29]!==a?(z=a("mainPanelTabs.hostingTab.cancel"),e[29]=a,e[30]=z):z=e[30];let C;e[31]!==m.isPending||e[32]!==z?(C=s.jsx($s,{disabled:$,children:z}),e[31]=m.isPending,e[32]=z,e[33]=C):C=e[33];let x;e[34]!==m?(x=f=>{f.preventDefault(),m.mutate()},e[34]=m,e[35]=x):x=e[35];const P=m.isPending;let L;e[36]!==a?(L=a("mainPanelTabs.hostingTab.deploy"),e[36]=a,e[37]=L):L=e[37];let _;e[38]!==m.isPending||e[39]!==x||e[40]!==L?(_=s.jsx(zs,{onClick:x,disabled:P,children:L}),e[38]=m.isPending,e[39]=x,e[40]=L,e[41]=_):_=e[41];let b;e[42]!==C||e[43]!==_?(b=s.jsxs(Ls,{children:[C,_]}),e[42]=C,e[43]=_,e[44]=b):b=e[44];let B;e[45]!==S||e[46]!==b?(B=s.jsxs(_s,{children:[S,b]}),e[45]=S,e[46]=b,e[47]=B):B=e[47];let A;e[48]!==d||e[49]!==B?(A=s.jsx(ks,{open:d,onOpenChange:t,children:B}),e[48]=d,e[49]=B,e[50]=A):A=e[50];let V;return e[51]!==A||e[52]!==h?(V=s.jsxs(s.Fragment,{children:[h,A]}),e[51]=A,e[52]=h,e[53]=V):V=e[53],V}function vt(r){return de.error(ds(r))}function Nt(r,e){const o=(r??"").toLowerCase();return o.includes("rollback")?s.jsxs(me,{variant:"warning",children:[s.jsx(ht,{className:"size-3"}),e("mainPanelTabs.hostingTab.actionRollback")]}):o.includes("redeploy")?s.jsxs(me,{variant:"secondary",children:[s.jsx(ut,{className:"size-3"}),e("mainPanelTabs.hostingTab.actionRedeploy")]}):s.jsxs(me,{variant:"secondary",children:[s.jsx(Bs,{className:"size-3"}),e("mainPanelTabs.hostingTab.actionDeploy")]})}function St(r,e,o){const l=(r??"").toLowerCase();return l==="build"?s.jsxs(me,{variant:"secondary",children:[s.jsx(Us,{className:"size-3"}),o("mainPanelTabs.hostingTab.typeBuild")]}):l==="fast-deploy"?s.jsxs(me,{variant:"secondary",children:[s.jsx(xt,{className:"size-3"}),o("mainPanelTabs.hostingTab.typeFastDeploy")]}):l==="deploy"?s.jsxs(me,{variant:"secondary",children:[s.jsx(Bs,{className:"size-3"}),o("mainPanelTabs.hostingTab.typeDeploy")]}):Nt(e,o)}function Ct(r,e){const o=(r??"").toLowerCase();return o==="success"?s.jsx(me,{variant:"success",children:e("mainPanelTabs.hostingTab.outcomeSuccess")}):o==="failure"?s.jsx(me,{variant:"destructive",children:e("mainPanelTabs.hostingTab.outcomeFailure")}):o==="pending"?s.jsxs(me,{variant:"secondary",children:[s.jsx(it,{className:"size-3"}),e("mainPanelTabs.hostingTab.outcomePending")]}):null}function Dt(r){const e=Ee.c(35),{base:o,orgSlug:l,site:i,target:a,onOpenChange:c}=r,d=cs(),t=a!=null,n=a?.commit??"",u=a?.env??"";let v;e[0]!==n||e[1]!==u||e[2]!==l||e[3]!==i?(v=Ue.hostingBuildLogs(l,i,n,u),e[0]=n,e[1]=u,e[2]=l,e[3]=i,e[4]=v):v=e[4];let m;e[5]!==o||e[6]!==n||e[7]!==u?(m=()=>fs(`${o}/deployments/logs?commit=${encodeURIComponent(n)}&env=${encodeURIComponent(u)}`),e[5]=o,e[6]=n,e[7]=u,e[8]=m):m=e[8];const N=t&&!!n;let g;e[9]!==v||e[10]!==m||e[11]!==N?(g={queryKey:v,queryFn:m,enabled:N,retry:!1,staleTime:0,gcTime:0,refetchOnMount:"always"},e[9]=v,e[10]=m,e[11]=N,e[12]=g):g=e[12];const p=ms(g),h=p.data;let y;e[13]!==d?(y=d("mainPanelTabs.hostingTab.buildLogsTitle"),e[13]=d,e[14]=y):y=e[14];let j;e[15]!==y?(j=s.jsx(Hs,{children:s.jsx(Ms,{children:y})}),e[15]=y,e[16]=j):j=e[16];let w;e[17]!==n||e[18]!==d?(w=d("mainPanelTabs.hostingTab.buildLogsCommit",{commit:n.slice(0,7)}),e[17]=n,e[18]=d,e[19]=w):w=e[19];let T;e[20]!==w?(T=s.jsx("p",{className:"font-mono text-xs text-muted-foreground",children:w}),e[20]=w,e[21]=T):T=e[21];let S;e[22]!==h||e[23]!==p.error||e[24]!==p.isLoading||e[25]!==d?(S=Vs(p.error)?s.jsx(Ps,{icon:s.jsx(As,{className:"size-5"}),title:d("mainPanelTabs.hostingTab.notConnectedTitle"),description:d("mainPanelTabs.hostingTab.notConnectedDescription")}):p.isLoading?s.jsxs("div",{className:"flex flex-col gap-2",children:[s.jsx(Rs,{className:"h-4 w-full"}),s.jsx(Rs,{className:"h-4 w-full"}),s.jsx(Rs,{className:"h-4 w-2/3"})]}):p.error?s.jsx(Ye,{children:d("mainPanelTabs.hostingTab.buildLogsError")}):h&&h.configured===!1?s.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:[s.jsx(ot,{className:"size-5 text-muted-foreground"}),s.jsx("p",{className:"text-sm font-medium text-foreground",children:d("mainPanelTabs.hostingTab.buildLogsNotWiredTitle")}),s.jsx("p",{className:"text-xs text-muted-foreground",children:h.reason??d("mainPanelTabs.hostingTab.buildLogsNotWiredDescription")})]}):h?.text?s.jsxs("div",{className:"flex flex-col gap-2",children:[s.jsx("pre",{className:"max-h-[52vh] overflow-auto rounded-lg border border-border bg-muted/40 p-3 font-mono text-[11px] leading-relaxed text-foreground/80 whitespace-pre-wrap break-words",children:h.text}),h.truncated&&s.jsx("p",{className:"text-xs text-warning",children:d("mainPanelTabs.hostingTab.buildLogsTruncated")}),h.url&&s.jsxs("a",{href:h.url,target:"_blank",rel:"noreferrer",className:"inline-flex w-fit items-center gap-1.5 text-xs text-primary hover:underline",children:[s.jsx(et,{className:"size-3.5"}),d("mainPanelTabs.hostingTab.buildLogsOpenFull")]})]}):h?.url?s.jsxs("a",{href:h.url,target:"_blank",rel:"noreferrer",className:"inline-flex w-fit items-center gap-1.5 text-sm text-primary hover:underline",children:[s.jsx(et,{className:"size-4"}),d("mainPanelTabs.hostingTab.buildLogsOpenFull")]}):s.jsx(Ye,{children:d("mainPanelTabs.hostingTab.buildLogsEmpty")}),e[22]=h,e[23]=p.error,e[24]=p.isLoading,e[25]=d,e[26]=S):S=e[26];let $;e[27]!==j||e[28]!==T||e[29]!==S?($=s.jsxs(Ks,{className:"sm:max-w-2xl",children:[j,T,S]}),e[27]=j,e[28]=T,e[29]=S,e[30]=$):$=e[30];let z;return e[31]!==c||e[32]!==t||e[33]!==$?(z=s.jsx(Qs,{open:t,onOpenChange:c,children:$}),e[31]=c,e[32]=t,e[33]=$,e[34]=z):z=e[34],z}function wt(r){const e=Ee.c(52),{base:o,orgSlug:l,site:i,enabled:a,deployments:c,isLoading:d,error:t}=r,n=cs(),[u,v]=ne.useState(null),[m,N]=ne.useState(null);let g;e[0]!==l||e[1]!==i?(g=Ue.hostingDeploymentHistory(l,i),e[0]=l,e[1]=i,e[2]=g):g=e[2];let p;e[3]!==o?(p=()=>fs(`${o}/deployments/history?limit=50`),e[3]=o,e[4]=p):p=e[4];let h;e[5]!==a||e[6]!==g||e[7]!==p?(h={queryKey:g,queryFn:p,enabled:a,retry:!1,staleTime:3e4},e[5]=a,e[6]=g,e[7]=p,e[8]=h):h=e[8];const y=ms(h);let j,w,T,S,$;if(e[9]!==c||e[10]!==t||e[11]!==u||e[12]!==y.data||e[13]!==y.error||e[14]!==y.isLoading||e[15]!==d||e[16]!==n){const L=ps(y.data,"items"),_=c.find(zt)?.commitSha??c.find($t)?.commitSha??null;let b;e[22]===Symbol.for("react.memo_cache_sentinel")?(b=(f,G)=>{f&&N({commit:f,env:G??"production"})},e[22]=b):b=e[22];const B=b;let A;e[23]!==n?(A=n("mainPanelTabs.hostingTab.deployments"),e[23]=n,e[24]=A):A=e[24];let V;e[25]!==c||e[26]!==t||e[27]!==u||e[28]!==d||e[29]!==n?(V=d?s.jsx(vs,{cols:5}):t?s.jsx(Ye,{children:n("mainPanelTabs.hostingTab.deploymentsError")}):c.length===0?s.jsx(Ye,{children:n("mainPanelTabs.hostingTab.noDeployments")}):s.jsxs(ss,{children:[s.jsx(os,{children:s.jsxs(ye,{children:[s.jsx(I,{children:n("mainPanelTabs.hostingTab.colCommit")}),s.jsx(I,{children:n("mainPanelTabs.hostingTab.colStatus")}),s.jsx(I,{children:n("mainPanelTabs.hostingTab.colFramework")}),s.jsx(I,{className:"text-right",children:n("mainPanelTabs.hostingTab.colDuration")}),s.jsx(I,{className:"text-right",children:n("mainPanelTabs.hostingTab.colUpdated")}),s.jsx(I,{className:"w-[1%]"})]})}),s.jsx(ts,{children:c.map(f=>{const G=!!f.buildMessage,Z=u===f.id;return s.jsxs(ne.Fragment,{children:[s.jsxs(ye,{children:[s.jsx(q,{className:"align-middle",children:s.jsxs("div",{className:"flex items-center gap-1.5",children:[G?s.jsx("button",{type:"button",onClick:()=>v(Z?null:f.id),"aria-label":n("mainPanelTabs.hostingTab.showBuildMessage"),className:"text-muted-foreground hover:text-foreground",children:Z?s.jsx(rt,{className:"size-4"}):s.jsx(ct,{className:"size-4"})}):s.jsx(dt,{className:"size-4 text-muted-foreground/60"}),s.jsx("span",{className:"font-mono text-xs",children:f.shortCommit??f.commitSha?.slice(0,7)??"—"}),f.production===!0&&s.jsx(me,{variant:"outline",children:n("mainPanelTabs.hostingTab.production")})]})}),s.jsx(q,{className:"align-middle",children:s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx(me,{variant:pt(f.phase),children:f.phase??"—"}),f.up===!0&&s.jsx(me,{variant:"success",children:n("mainPanelTabs.hostingTab.live")})]})}),s.jsx(q,{className:"align-middle text-xs text-muted-foreground",children:Js(f.framework)??"—"}),s.jsx(q,{className:"text-right align-middle font-mono text-xs text-muted-foreground tabular-nums",children:jt(f.durationMs)}),s.jsx(q,{className:"text-right align-middle text-xs text-muted-foreground whitespace-nowrap",children:st(f.finishedAt??f.startedAt??f.createdAt)}),s.jsx(q,{className:"text-right align-middle",children:s.jsx(ce,{size:"icon-sm",variant:"ghost","aria-label":n("mainPanelTabs.hostingTab.buildLogs"),onClick:()=>B(f.commitSha,f.env),disabled:!f.commitSha,children:s.jsx(Us,{className:"size-4"})})})]}),G&&Z&&s.jsx(ye,{children:s.jsx(q,{colSpan:6,className:"bg-muted/10",children:s.jsx("p",{className:"whitespace-pre-wrap break-words px-2 py-1 font-mono text-xs text-muted-foreground",children:f.buildMessage})})})]},f.id)})})]}),e[25]=c,e[26]=t,e[27]=u,e[28]=d,e[29]=n,e[30]=V):V=e[30],e[31]!==c.length||e[32]!==V||e[33]!==A?($=s.jsx(ys,{title:A,count:c.length,children:V}),e[31]=c.length,e[32]=V,e[33]=A,e[34]=$):$=e[34],j=ys,e[35]!==n?(w=n("mainPanelTabs.hostingTab.deployHistory"),e[35]=n,e[36]=w):w=e[36],T=L.length,S=y.isLoading?s.jsx(vs,{cols:4}):y.error?s.jsx(Ye,{children:n("mainPanelTabs.hostingTab.deployHistoryError")}):L.length===0?s.jsx(Ps,{icon:s.jsx(Bs,{className:"size-5"}),title:n("mainPanelTabs.hostingTab.noDeployHistory")}):s.jsxs(ss,{children:[s.jsx(os,{children:s.jsxs(ye,{children:[s.jsx(I,{children:n("mainPanelTabs.hostingTab.colAction")}),s.jsx(I,{children:n("mainPanelTabs.hostingTab.colCommit")}),s.jsx(I,{children:n("mainPanelTabs.hostingTab.colFramework")}),s.jsx(I,{children:n("mainPanelTabs.hostingTab.colActor")}),s.jsx(I,{className:"text-right",children:n("mainPanelTabs.hostingTab.colDate")}),s.jsx(I,{className:"w-[1%]"})]})}),s.jsx(ts,{children:L.map(f=>{const G=!!_&&f.commitSha===_;return s.jsxs(ye,{children:[s.jsx(q,{className:"align-middle",children:s.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[St(f.type,f.action,n),Ct(f.outcome,n)]})}),s.jsx(q,{className:"align-middle",children:s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx("span",{className:"font-mono text-xs",children:f.commitSha?.slice(0,7)??"—"}),G&&s.jsx(me,{variant:"success",children:n("mainPanelTabs.hostingTab.live")})]})}),s.jsx(q,{className:"align-middle text-xs text-muted-foreground",children:Js(f.framework)??"—"}),s.jsx(q,{className:"align-middle text-xs text-muted-foreground",children:f.actor??"—"}),s.jsx(q,{className:"text-right align-middle text-xs text-muted-foreground whitespace-nowrap",children:s.jsxs("span",{className:"inline-flex items-center gap-1",children:[s.jsx(it,{className:"size-3"}),st(f.createdAt)]})}),s.jsx(q,{className:"text-right align-middle",children:s.jsx(ce,{size:"icon-sm",variant:"ghost","aria-label":n("mainPanelTabs.hostingTab.buildLogs"),onClick:()=>B(f.commitSha,f.env),disabled:!f.commitSha,children:s.jsx(Us,{className:"size-4"})})})]},f.id)})})]}),e[9]=c,e[10]=t,e[11]=u,e[12]=y.data,e[13]=y.error,e[14]=y.isLoading,e[15]=d,e[16]=n,e[17]=j,e[18]=w,e[19]=T,e[20]=S,e[21]=$}else j=e[17],w=e[18],T=e[19],S=e[20],$=e[21];let z;e[37]!==j||e[38]!==w||e[39]!==T||e[40]!==S?(z=s.jsx(j,{title:w,count:T,children:S}),e[37]=j,e[38]=w,e[39]=T,e[40]=S,e[41]=z):z=e[41];let C;e[42]===Symbol.for("react.memo_cache_sentinel")?(C=L=>{L||N(null)},e[42]=C):C=e[42];let x;e[43]!==o||e[44]!==m||e[45]!==l||e[46]!==i?(x=s.jsx(Dt,{base:o,orgSlug:l,site:i,target:m,onOpenChange:C}),e[43]=o,e[44]=m,e[45]=l,e[46]=i,e[47]=x):x=e[47];let P;return e[48]!==x||e[49]!==$||e[50]!==z?(P=s.jsxs(s.Fragment,{children:[$,z,x]}),e[48]=x,e[49]=$,e[50]=z,e[51]=P):P=e[51],P}function $t(r){return r.production===!0&&r.up}function zt(r){return r.up===!0}function Lt(r){const e=Ee.c(82),{base:o,orgSlug:l,site:i,envVars:a,codeVars:c,isLoading:d,error:t}=r,n=cs(),u=Ss(),[v,m]=ne.useState(""),[N,g]=ne.useState(""),[p,h]=ne.useState("runtime"),[y,j]=ne.useState(null),[w,T]=ne.useState(""),[S,$]=ne.useState(null);let z;e[0]!==o?(z=D=>rs(`${o}/env`,"PUT",{vars:D}),e[0]=o,e[1]=z):z=e[1];let C;e[2]!==l||e[3]!==u||e[4]!==i||e[5]!==n?(C=()=>{u.invalidateQueries({queryKey:Ue.hostingEnv(l,i)}),de.success(n("mainPanelTabs.hostingTab.toastEnvSaved"))},e[2]=l,e[3]=u,e[4]=i,e[5]=n,e[6]=C):C=e[6];let x;e[7]!==z||e[8]!==C?(x={mutationFn:z,onSuccess:C,onError:kt},e[7]=z,e[8]=C,e[9]=x):x=e[9];const P=as(x);let L;e[10]!==v||e[11]!==p||e[12]!==N||e[13]!==P||e[14]!==a||e[15]!==n?(L=()=>{const D=v.trim();if(!D){de.error(n("mainPanelTabs.hostingTab.errorEnvNameRequired"));return}if(a.some(O=>Is(O,{name:D,scope:p}))){de.error(n("mainPanelTabs.hostingTab.errorEnvNameDuplicate"));return}P.mutate([...a,{name:D,value:N,scope:p}],{onSuccess:()=>{m(""),g(""),h("runtime")}})},e[10]=v,e[11]=p,e[12]=N,e[13]=P,e[14]=a,e[15]=n,e[16]=L):L=e[16];const _=L;let b;e[17]!==w||e[18]!==P||e[19]!==a?(b=D=>{P.mutate(a.map(O=>Is(O,D)?{name:D.name,value:w,scope:D.scope}:O),{onSuccess:()=>j(null)})},e[17]=w,e[18]=P,e[19]=a,e[20]=b):b=e[20];const B=b;let A;e[21]!==S||e[22]!==P||e[23]!==a?(A=()=>{S&&P.mutate(a.filter(D=>!Is(D,S)),{onSuccess:()=>$(null)})},e[21]=S,e[22]=P,e[23]=a,e[24]=A):A=e[24];const V=A;let f;e[25]!==n?(f=n("mainPanelTabs.hostingTab.env"),e[25]=n,e[26]=f):f=e[26];const G=a.length;let Z;e[27]!==v||e[28]!==p||e[29]!==N||e[30]!==c||e[31]!==w||e[32]!==y?.name||e[33]!==y?.scope||e[34]!==P.isPending||e[35]!==a||e[36]!==t||e[37]!==_||e[38]!==B||e[39]!==d||e[40]!==n?(Z=d?s.jsx(vs,{cols:2}):t?s.jsx(Ye,{children:n("mainPanelTabs.hostingTab.envError")}):s.jsxs("div",{className:"flex flex-col gap-2",children:[a.length===0?s.jsx(Ye,{children:n("mainPanelTabs.hostingTab.noEnv")}):s.jsxs(ss,{children:[s.jsx(os,{children:s.jsxs(ye,{children:[s.jsx(I,{children:n("mainPanelTabs.hostingTab.colName")}),s.jsx(I,{children:n("mainPanelTabs.hostingTab.colValue")}),s.jsx(I,{className:"w-[1%]"})]})}),s.jsx(ts,{children:a.map(D=>{const O=D.scope==="build"?"build":"runtime",ze=y?.name===D.name&&y?.scope===O;return s.jsxs(ye,{children:[s.jsx(q,{className:"font-mono text-xs align-middle",children:s.jsxs("span",{className:"inline-flex items-center gap-2",children:[D.name,s.jsx(me,{variant:O==="build"?"outline":"secondary",className:"font-sans text-[10px] capitalize",children:n(O==="build"?"mainPanelTabs.hostingTab.secretScopeBuild":"mainPanelTabs.hostingTab.secretScopeRuntime")})]})}),s.jsx(q,{className:"font-mono text-xs text-muted-foreground max-w-[360px] align-middle",children:ze?s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(ls,{value:w,onChange:fe=>T(fe.target.value),className:"h-7 font-mono text-xs"}),s.jsx(ce,{size:"xs",onClick:()=>B({name:D.name,scope:O}),disabled:P.isPending,children:n("mainPanelTabs.hostingTab.save")}),s.jsx(ce,{size:"xs",variant:"ghost",onClick:()=>j(null),disabled:P.isPending,children:n("mainPanelTabs.hostingTab.cancel")})]}):s.jsx("button",{type:"button",onClick:()=>{j({name:D.name,scope:O}),T(D.value)},className:"block w-full truncate text-left hover:underline","aria-label":n("mainPanelTabs.hostingTab.editValue"),children:D.value})}),s.jsx(q,{className:"text-right align-middle",children:s.jsx(ce,{size:"icon-sm",variant:"ghost","aria-label":n("mainPanelTabs.hostingTab.deleteVariable"),onClick:()=>$({name:D.name,scope:O}),disabled:P.isPending,children:s.jsx(Os,{className:"size-4"})})})]},`${D.name}:${O}`)})})]}),s.jsxs("div",{className:"flex items-center gap-2 px-2 py-1",children:[s.jsx(ls,{placeholder:n("mainPanelTabs.hostingTab.envNamePlaceholder"),value:v,onChange:D=>m(D.target.value),className:"h-8 flex-1 font-mono text-xs"}),s.jsx(ls,{placeholder:n("mainPanelTabs.hostingTab.envValuePlaceholder"),value:N,onChange:D=>g(D.target.value),className:"h-8 flex-1 font-mono text-xs"}),s.jsxs(Ys,{value:p,onValueChange:D=>h(D==="build"?"build":"runtime"),disabled:P.isPending,children:[s.jsx(Gs,{className:"h-8 w-[110px]",children:s.jsx(Xs,{})}),s.jsxs(Zs,{children:[s.jsx(js,{value:"runtime",children:n("mainPanelTabs.hostingTab.secretScopeRuntime")}),s.jsx(js,{value:"build",children:n("mainPanelTabs.hostingTab.secretScopeBuild")})]})]}),s.jsxs(ce,{size:"sm","aria-label":n("mainPanelTabs.hostingTab.addVariable"),onClick:_,disabled:P.isPending||!v.trim(),children:[s.jsx(qs,{className:"size-4"}),n("mainPanelTabs.hostingTab.add")]})]}),c.length>0&&s.jsxs("div",{className:"mt-3 flex flex-col gap-1.5 border-t border-border pt-3",children:[s.jsx("p",{className:"px-2 text-xs text-muted-foreground",children:n("mainPanelTabs.hostingTab.codeVarsHint")}),s.jsx(ss,{children:s.jsx(ts,{children:c.map(_t)})})]})]}),e[27]=v,e[28]=p,e[29]=N,e[30]=c,e[31]=w,e[32]=y?.name,e[33]=y?.scope,e[34]=P.isPending,e[35]=a,e[36]=t,e[37]=_,e[38]=B,e[39]=d,e[40]=n,e[41]=Z):Z=e[41];const le=S!=null;let ae;e[42]===Symbol.for("react.memo_cache_sentinel")?(ae=D=>{D||$(null)},e[42]=ae):ae=e[42];let ve;e[43]!==n?(ve=n("mainPanelTabs.hostingTab.confirmDeleteVariableTitle"),e[43]=n,e[44]=ve):ve=e[44];let te;e[45]!==ve?(te=s.jsx(Cs,{children:ve}),e[45]=ve,e[46]=te):te=e[46];const re=S?.name??"";let M;e[47]!==n||e[48]!==re?(M=n("mainPanelTabs.hostingTab.confirmDeleteVariableDescription",{name:re}),e[47]=n,e[48]=re,e[49]=M):M=e[49];let U;e[50]!==M?(U=s.jsx(Ds,{children:M}),e[50]=M,e[51]=U):U=e[51];let X;e[52]!==te||e[53]!==U?(X=s.jsxs(ws,{children:[te,U]}),e[52]=te,e[53]=U,e[54]=X):X=e[54];const ee=P.isPending;let ie;e[55]!==n?(ie=n("mainPanelTabs.hostingTab.cancel"),e[55]=n,e[56]=ie):ie=e[56];let K;e[57]!==P.isPending||e[58]!==ie?(K=s.jsx($s,{disabled:ee,children:ie}),e[57]=P.isPending,e[58]=ie,e[59]=K):K=e[59];let J;e[60]!==V?(J=D=>{D.preventDefault(),V()},e[60]=V,e[61]=J):J=e[61];const se=P.isPending;let W;e[62]!==n?(W=n("mainPanelTabs.hostingTab.deleteVariable"),e[62]=n,e[63]=W):W=e[63];let E;e[64]!==P.isPending||e[65]!==J||e[66]!==W?(E=s.jsx(zs,{className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",onClick:J,disabled:se,children:W}),e[64]=P.isPending,e[65]=J,e[66]=W,e[67]=E):E=e[67];let k;e[68]!==K||e[69]!==E?(k=s.jsxs(Ls,{children:[K,E]}),e[68]=K,e[69]=E,e[70]=k):k=e[70];let F;e[71]!==X||e[72]!==k?(F=s.jsxs(_s,{children:[X,k]}),e[71]=X,e[72]=k,e[73]=F):F=e[73];let Q;e[74]!==le||e[75]!==F?(Q=s.jsx(ks,{open:le,onOpenChange:ae,children:F}),e[74]=le,e[75]=F,e[76]=Q):Q=e[76];let Y;return e[77]!==a.length||e[78]!==Q||e[79]!==f||e[80]!==Z?(Y=s.jsxs(ys,{title:f,count:G,children:[Z,Q]}),e[77]=a.length,e[78]=Q,e[79]=f,e[80]=Z,e[81]=Y):Y=e[81],Y}function _t(r){return s.jsxs(ye,{children:[s.jsx(q,{className:"font-mono text-xs align-middle",children:r.name}),s.jsx(q,{className:"font-mono text-xs text-muted-foreground max-w-[360px] truncate align-middle",children:r.value})]},r.name)}function kt(r){return de.error(ds(r))}function Et(r){const e=Ee.c(176),{base:o,orgSlug:l,site:i,secrets:a,isLoading:c,error:d}=r,t=cs(),n=Ss(),[u,v]=ne.useState(!1),[m,N]=ne.useState(""),[g,p]=ne.useState(""),[h,y]=ne.useState("runtime"),[j,w]=ne.useState(null);let T;e[0]!==l||e[1]!==n||e[2]!==i?(T=()=>n.invalidateQueries({queryKey:Ue.hostingSecrets(l,i)}),e[0]=l,e[1]=n,e[2]=i,e[3]=T):T=e[3];const S=T;let $;e[4]!==o?($=oe=>rs(`${o}/secrets`,"PUT",oe),e[4]=o,e[5]=$):$=e[5];let z;e[6]!==S||e[7]!==t?(z=()=>{S(),de.success(t("mainPanelTabs.hostingTab.toastSecretSaved")),v(!1),N(""),p(""),y("runtime")},e[6]=S,e[7]=t,e[8]=z):z=e[8];let C;e[9]!==$||e[10]!==z?(C={mutationFn:$,onSuccess:z,onError:Rt},e[9]=$,e[10]=z,e[11]=C):C=e[11];const x=as(C);let P;e[12]!==o?(P=oe=>rs(`${o}/secrets/${encodeURIComponent(oe.name)}?scope=${oe.scope}`,"DELETE"),e[12]=o,e[13]=P):P=e[13];let L;e[14]!==S||e[15]!==t?(L=()=>{S(),de.success(t("mainPanelTabs.hostingTab.toastSecretDeleted")),w(null)},e[14]=S,e[15]=t,e[16]=L):L=e[16];let _;e[17]!==P||e[18]!==L?(_={mutationFn:P,onSuccess:L,onError:Ft},e[17]=P,e[18]=L,e[19]=_):_=e[19];const b=as(_);let B;e[20]!==m||e[21]!==h||e[22]!==g||e[23]!==x||e[24]!==t?(B=()=>{const oe=m.trim();if(!oe){de.error(t("mainPanelTabs.hostingTab.errorSecretNameRequired"));return}if(!g){de.error(t("mainPanelTabs.hostingTab.errorSecretValueRequired"));return}x.mutate({name:oe,value:g,scope:h})},e[20]=m,e[21]=h,e[22]=g,e[23]=x,e[24]=t,e[25]=B):B=e[25];const A=B;let V,f;e[26]===Symbol.for("react.memo_cache_sentinel")?(f=()=>v(!0),V=s.jsx(qs,{className:"size-4"}),e[26]=V,e[27]=f):(V=e[26],f=e[27]);let G;e[28]!==t?(G=t("mainPanelTabs.hostingTab.addSecret"),e[28]=t,e[29]=G):G=e[29];let Z;e[30]!==G?(Z=s.jsxs(ce,{size:"sm",variant:"secondary",onClick:f,children:[V,G]}),e[30]=G,e[31]=Z):Z=e[31];const le=Z;let ae;e[32]!==t?(ae=t("mainPanelTabs.hostingTab.secrets"),e[32]=t,e[33]=ae):ae=e[33];const ve=a.length;let te;e[34]!==b.isPending||e[35]!==d||e[36]!==c||e[37]!==a||e[38]!==t?(te=c?s.jsx(vs,{cols:2}):d?s.jsx(Ye,{children:t("mainPanelTabs.hostingTab.secretsError")}):a.length===0?s.jsx(Ye,{children:t("mainPanelTabs.hostingTab.noSecrets")}):s.jsxs(ss,{children:[s.jsx(os,{children:s.jsxs(ye,{children:[s.jsx(I,{children:t("mainPanelTabs.hostingTab.colName")}),s.jsx(I,{children:t("mainPanelTabs.hostingTab.colValue")}),s.jsx(I,{className:"w-[1%]"})]})}),s.jsx(ts,{children:a.map(oe=>{const We=oe.scope==="build"?"build":"runtime";return s.jsxs(ye,{children:[s.jsx(q,{className:"font-mono text-xs align-middle",children:s.jsxs("span",{className:"inline-flex items-center gap-2",children:[oe.name,s.jsx(me,{variant:We==="build"?"outline":"secondary",className:"font-sans text-[10px] capitalize",children:t(We==="build"?"mainPanelTabs.hostingTab.secretScopeBuild":"mainPanelTabs.hostingTab.secretScopeRuntime")}),oe.origin==="worker"&&s.jsx(me,{variant:"secondary",className:"font-sans text-[10px]",children:t("mainPanelTabs.hostingTab.secretOnWorker")})]})}),s.jsx(q,{className:"font-mono text-xs text-muted-foreground align-middle",children:t("mainPanelTabs.hostingTab.secretValueHidden")}),s.jsx(q,{className:"text-right align-middle",children:s.jsx(ce,{size:"icon-sm",variant:"ghost","aria-label":t("mainPanelTabs.hostingTab.deleteSecret"),onClick:()=>w({name:oe.name,scope:We}),disabled:b.isPending,children:s.jsx(Os,{className:"size-4"})})})]},`${oe.name}:${We}`)})})]}),e[34]=b.isPending,e[35]=d,e[36]=c,e[37]=a,e[38]=t,e[39]=te):te=e[39];let re;e[40]!==t?(re=t("mainPanelTabs.hostingTab.addSecretTitle"),e[40]=t,e[41]=re):re=e[41];let M;e[42]!==re?(M=s.jsx(Hs,{children:s.jsx(Ms,{children:re})}),e[42]=re,e[43]=M):M=e[43];let U;e[44]!==t?(U=t("mainPanelTabs.hostingTab.colName"),e[44]=t,e[45]=U):U=e[45];let X;e[46]!==U?(X=s.jsx(hs,{htmlFor:"secret-name",children:U}),e[46]=U,e[47]=X):X=e[47];let ee;e[48]!==t?(ee=t("mainPanelTabs.hostingTab.secretNamePlaceholder"),e[48]=t,e[49]=ee):ee=e[49];let ie;e[50]===Symbol.for("react.memo_cache_sentinel")?(ie=oe=>N(oe.target.value),e[50]=ie):ie=e[50];let K;e[51]!==m||e[52]!==x.isPending||e[53]!==ee?(K=s.jsx(ls,{id:"secret-name",placeholder:ee,value:m,onChange:ie,className:"font-mono text-xs",disabled:x.isPending}),e[51]=m,e[52]=x.isPending,e[53]=ee,e[54]=K):K=e[54];let J;e[55]!==X||e[56]!==K?(J=s.jsxs("div",{className:"flex flex-col gap-2",children:[X,K]}),e[55]=X,e[56]=K,e[57]=J):J=e[57];let se;e[58]!==t?(se=t("mainPanelTabs.hostingTab.colValue"),e[58]=t,e[59]=se):se=e[59];let W;e[60]!==se?(W=s.jsx(hs,{htmlFor:"secret-value",children:se}),e[60]=se,e[61]=W):W=e[61];let E;e[62]!==t?(E=t("mainPanelTabs.hostingTab.secretValuePlaceholder"),e[62]=t,e[63]=E):E=e[63];let k;e[64]===Symbol.for("react.memo_cache_sentinel")?(k=oe=>p(oe.target.value),e[64]=k):k=e[64];let F;e[65]!==g||e[66]!==x.isPending||e[67]!==E?(F=s.jsx(ls,{id:"secret-value",type:"password",placeholder:E,value:g,onChange:k,className:"font-mono text-xs",disabled:x.isPending}),e[65]=g,e[66]=x.isPending,e[67]=E,e[68]=F):F=e[68];let Q;e[69]!==W||e[70]!==F?(Q=s.jsxs("div",{className:"flex flex-col gap-2",children:[W,F]}),e[69]=W,e[70]=F,e[71]=Q):Q=e[71];let Y;e[72]!==t?(Y=t("mainPanelTabs.hostingTab.secretScope"),e[72]=t,e[73]=Y):Y=e[73];let D;e[74]!==Y?(D=s.jsx(hs,{children:Y}),e[74]=Y,e[75]=D):D=e[75];let O;e[76]===Symbol.for("react.memo_cache_sentinel")?(O=oe=>y(oe==="build"?"build":"runtime"),e[76]=O):O=e[76];const ze=x.isPending;let fe;e[77]===Symbol.for("react.memo_cache_sentinel")?(fe=s.jsx(Gs,{className:"w-full",children:s.jsx(Xs,{})}),e[77]=fe):fe=e[77];let Ne;e[78]!==t?(Ne=t("mainPanelTabs.hostingTab.secretScopeRuntime"),e[78]=t,e[79]=Ne):Ne=e[79];let he;e[80]!==Ne?(he=s.jsx(js,{value:"runtime",children:Ne}),e[80]=Ne,e[81]=he):he=e[81];let ue;e[82]!==t?(ue=t("mainPanelTabs.hostingTab.secretScopeBuild"),e[82]=t,e[83]=ue):ue=e[83];let Le;e[84]!==ue?(Le=s.jsx(js,{value:"build",children:ue}),e[84]=ue,e[85]=Le):Le=e[85];let Se;e[86]!==he||e[87]!==Le?(Se=s.jsxs(Zs,{children:[he,Le]}),e[86]=he,e[87]=Le,e[88]=Se):Se=e[88];let Ce;e[89]!==h||e[90]!==x.isPending||e[91]!==Se?(Ce=s.jsxs(Ys,{value:h,onValueChange:O,disabled:ze,children:[fe,Se]}),e[89]=h,e[90]=x.isPending,e[91]=Se,e[92]=Ce):Ce=e[92];let Fe;e[93]!==h||e[94]!==t?(Fe=t(h==="build"?"mainPanelTabs.hostingTab.secretScopeBuildHint":"mainPanelTabs.hostingTab.secretScopeRuntimeHint"),e[93]=h,e[94]=t,e[95]=Fe):Fe=e[95];let Re;e[96]!==Fe?(Re=s.jsx("p",{className:"text-xs text-muted-foreground",children:Fe}),e[96]=Fe,e[97]=Re):Re=e[97];let ge;e[98]!==D||e[99]!==Ce||e[100]!==Re?(ge=s.jsxs("div",{className:"flex flex-col gap-2",children:[D,Ce,Re]}),e[98]=D,e[99]=Ce,e[100]=Re,e[101]=ge):ge=e[101];let xe;e[102]!==J||e[103]!==Q||e[104]!==ge?(xe=s.jsxs("div",{className:"flex flex-col gap-4",children:[J,Q,ge]}),e[102]=J,e[103]=Q,e[104]=ge,e[105]=xe):xe=e[105];let De;e[106]===Symbol.for("react.memo_cache_sentinel")?(De=()=>v(!1),e[106]=De):De=e[106];const Ge=x.isPending;let be;e[107]!==t?(be=t("mainPanelTabs.hostingTab.cancel"),e[107]=t,e[108]=be):be=e[108];let Te;e[109]!==x.isPending||e[110]!==be?(Te=s.jsx(ce,{variant:"outline",type:"button",onClick:De,disabled:Ge,children:be}),e[109]=x.isPending,e[110]=be,e[111]=Te):Te=e[111];let pe;e[112]!==m||e[113]!==g||e[114]!==x.isPending?(pe=x.isPending||!m.trim()||!g,e[112]=m,e[113]=g,e[114]=x.isPending,e[115]=pe):pe=e[115];let Ae;e[116]!==x.isPending||e[117]!==t?(Ae=x.isPending?t("mainPanelTabs.hostingTab.saving"):t("mainPanelTabs.hostingTab.add"),e[116]=x.isPending,e[117]=t,e[118]=Ae):Ae=e[118];let je;e[119]!==A||e[120]!==pe||e[121]!==Ae?(je=s.jsx(ce,{type:"button",onClick:A,disabled:pe,children:Ae}),e[119]=A,e[120]=pe,e[121]=Ae,e[122]=je):je=e[122];let we;e[123]!==Te||e[124]!==je?(we=s.jsxs(Ws,{children:[Te,je]}),e[123]=Te,e[124]=je,e[125]=we):we=e[125];let Ve;e[126]!==M||e[127]!==xe||e[128]!==we?(Ve=s.jsxs(Ks,{className:"sm:max-w-md",children:[M,xe,we]}),e[126]=M,e[127]=xe,e[128]=we,e[129]=Ve):Ve=e[129];let Pe;e[130]!==u||e[131]!==Ve?(Pe=s.jsx(Qs,{open:u,onOpenChange:v,children:Ve}),e[130]=u,e[131]=Ve,e[132]=Pe):Pe=e[132];const _e=j!=null;let ke;e[133]===Symbol.for("react.memo_cache_sentinel")?(ke=oe=>{oe||w(null)},e[133]=ke):ke=e[133];let R;e[134]!==t?(R=t("mainPanelTabs.hostingTab.confirmDeleteSecretTitle"),e[134]=t,e[135]=R):R=e[135];let $e;e[136]!==R?($e=s.jsx(Cs,{children:R}),e[136]=R,e[137]=$e):$e=e[137];const Xe=j?.name??"";let qe;e[138]!==t||e[139]!==Xe?(qe=t("mainPanelTabs.hostingTab.confirmDeleteSecretDescription",{name:Xe}),e[138]=t,e[139]=Xe,e[140]=qe):qe=e[140];let Be;e[141]!==qe?(Be=s.jsx(Ds,{children:qe}),e[141]=qe,e[142]=Be):Be=e[142];let Ze;e[143]!==$e||e[144]!==Be?(Ze=s.jsxs(ws,{children:[$e,Be]}),e[143]=$e,e[144]=Be,e[145]=Ze):Ze=e[145];const us=b.isPending;let Oe;e[146]!==t?(Oe=t("mainPanelTabs.hostingTab.cancel"),e[146]=t,e[147]=Oe):Oe=e[147];let He;e[148]!==b.isPending||e[149]!==Oe?(He=s.jsx($s,{disabled:us,children:Oe}),e[148]=b.isPending,e[149]=Oe,e[150]=He):He=e[150];let es;e[151]!==b||e[152]!==j?(es=oe=>{oe.preventDefault(),j&&b.mutate(j)},e[151]=b,e[152]=j,e[153]=es):es=e[153];const ns=b.isPending;let Me;e[154]!==t?(Me=t("mainPanelTabs.hostingTab.deleteSecret"),e[154]=t,e[155]=Me):Me=e[155];let Ke;e[156]!==b.isPending||e[157]!==es||e[158]!==Me?(Ke=s.jsx(zs,{className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",onClick:es,disabled:ns,children:Me}),e[156]=b.isPending,e[157]=es,e[158]=Me,e[159]=Ke):Ke=e[159];let is;e[160]!==He||e[161]!==Ke?(is=s.jsxs(Ls,{children:[He,Ke]}),e[160]=He,e[161]=Ke,e[162]=is):is=e[162];let Qe;e[163]!==Ze||e[164]!==is?(Qe=s.jsxs(_s,{children:[Ze,is]}),e[163]=Ze,e[164]=is,e[165]=Qe):Qe=e[165];let Ie;e[166]!==_e||e[167]!==Qe?(Ie=s.jsx(ks,{open:_e,onOpenChange:ke,children:Qe}),e[166]=_e,e[167]=Qe,e[168]=Ie):Ie=e[168];let Je;return e[169]!==le||e[170]!==a.length||e[171]!==ae||e[172]!==te||e[173]!==Pe||e[174]!==Ie?(Je=s.jsxs(ys,{title:ae,count:ve,action:le,children:[te,Pe,Ie]}),e[169]=le,e[170]=a.length,e[171]=ae,e[172]=te,e[173]=Pe,e[174]=Ie,e[175]=Je):Je=e[175],Je}function Ft(r){return de.error(ds(r))}function Rt(r){return de.error(ds(r))}const At=["16.148.147.194","52.32.122.94","52.35.156.199"];function Vt(r){return r.replace(/\.$/,"").split(".").filter(Boolean).length===2}function qt(r){return Vt(r)?"@":r}function lt(r){const e=Ee.c(9),{value:o,t:l}=r;let i;e[0]!==l?(i=l("mainPanelTabs.hostingTab.dnsCopy"),e[0]=l,e[1]=i):i=e[1];let a;e[2]!==l||e[3]!==o?(a=()=>{navigator.clipboard?.writeText(o),de.success(l("mainPanelTabs.hostingTab.dnsCopied"))},e[2]=l,e[3]=o,e[4]=a):a=e[4];let c;e[5]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(gt,{className:"size-3.5"}),e[5]=c):c=e[5];let d;return e[6]!==i||e[7]!==a?(d=s.jsx(ce,{size:"icon-sm",variant:"ghost","aria-label":i,onClick:a,children:c}),e[6]=i,e[7]=a,e[8]=d):d=e[8],d}function tt(r){const e=Ee.c(64),{from:o,source:l,t:i}=r;let a,c,d,t,n,u,v;if(e[0]!==o||e[1]!==l||e[2]!==i){const L=o.trim().replace(/\.$/,"");c=L?qt(L):"@",a=l==="both",n="flex flex-col gap-3 rounded-md border bg-muted/30 p-3";let _;e[10]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx(Ns,{className:"size-4 text-muted-foreground"}),e[10]=_):_=e[10];let b;e[11]!==i?(b=i("mainPanelTabs.hostingTab.dnsSetupTitle"),e[11]=i,e[12]=b):b=e[12];let B;e[13]!==b?(B=s.jsx("span",{className:"text-xs font-medium",children:b}),e[13]=b,e[14]=B):B=e[14];const A=a?"secondary":"outline";let V;e[15]!==a||e[16]!==i?(V=i(a?"mainPanelTabs.hostingTab.dnsActive":"mainPanelTabs.hostingTab.dnsAwaiting"),e[15]=a,e[16]=i,e[17]=V):V=e[17];let f;e[18]!==V||e[19]!==A?(f=s.jsx(me,{variant:A,className:"ml-auto",children:V}),e[18]=V,e[19]=A,e[20]=f):f=e[20],e[21]!==f||e[22]!==B?(u=s.jsxs("div",{className:"flex items-center gap-2",children:[_,B,f]}),e[21]=f,e[22]=B,e[23]=u):u=e[23],v=s.jsx("p",{className:"text-xs text-muted-foreground",children:i("mainPanelTabs.hostingTab.dnsRedirectIntent",{from:L||"—"})}),d="text-xs text-muted-foreground",t=i("mainPanelTabs.hostingTab.dnsSetupDescription",{host:L||"—"}),e[0]=o,e[1]=l,e[2]=i,e[3]=a,e[4]=c,e[5]=d,e[6]=t,e[7]=n,e[8]=u,e[9]=v}else a=e[3],c=e[4],d=e[5],t=e[6],n=e[7],u=e[8],v=e[9];let m;e[24]!==d||e[25]!==t?(m=s.jsx("p",{className:d,children:t}),e[24]=d,e[25]=t,e[26]=m):m=e[26];let N;e[27]!==a||e[28]!==i?(N=i(a?"mainPanelTabs.hostingTab.dnsActiveHint":"mainPanelTabs.hostingTab.dnsAwaitingHint"),e[27]=a,e[28]=i,e[29]=N):N=e[29];let g;e[30]!==N?(g=s.jsx("p",{className:"text-xs text-muted-foreground",children:N}),e[30]=N,e[31]=g):g=e[31];let p;e[32]!==i?(p=i("mainPanelTabs.hostingTab.dnsColType"),e[32]=i,e[33]=p):p=e[33];let h;e[34]!==p?(h=s.jsx(I,{children:p}),e[34]=p,e[35]=h):h=e[35];let y;e[36]!==i?(y=i("mainPanelTabs.hostingTab.dnsColName"),e[36]=i,e[37]=y):y=e[37];let j;e[38]!==y?(j=s.jsx(I,{children:y}),e[38]=y,e[39]=j):j=e[39];let w;e[40]!==i?(w=i("mainPanelTabs.hostingTab.dnsColValue"),e[40]=i,e[41]=w):w=e[41];let T;e[42]!==w?(T=s.jsx(I,{children:w}),e[42]=w,e[43]=T):T=e[43];let S;e[44]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx(I,{className:"w-[1%]"}),e[44]=S):S=e[44];let $;e[45]!==h||e[46]!==j||e[47]!==T?($=s.jsx(os,{children:s.jsxs(ye,{children:[h,j,T,S]})}),e[45]=h,e[46]=j,e[47]=T,e[48]=$):$=e[48];let z;e[49]!==c||e[50]!==i?(z=At.map(L=>s.jsxs(ye,{children:[s.jsx(q,{className:"font-mono text-xs align-middle",children:"A"}),s.jsx(q,{className:"font-mono text-xs align-middle",children:c}),s.jsx(q,{className:"font-mono text-xs align-middle",children:L}),s.jsx(q,{className:"text-right align-middle",children:s.jsx(lt,{value:L,t:i})})]},L)),e[49]=c,e[50]=i,e[51]=z):z=e[51];let C;e[52]!==z?(C=s.jsx(ts,{children:z}),e[52]=z,e[53]=C):C=e[53];let x;e[54]!==$||e[55]!==C?(x=s.jsxs(ss,{children:[$,C]}),e[54]=$,e[55]=C,e[56]=x):x=e[56];let P;return e[57]!==x||e[58]!==n||e[59]!==u||e[60]!==v||e[61]!==m||e[62]!==g?(P=s.jsxs("div",{className:n,children:[u,v,m,g,x]}),e[57]=x,e[58]=n,e[59]=u,e[60]=v,e[61]=m,e[62]=g,e[63]=P):P=e[63],P}function Bt(r){const e=Ee.c(6),{type:o,t:l}=r,i=o==="permanent"?"secondary":"outline";let a;e[0]!==l||e[1]!==o?(a=l(o==="permanent"?"mainPanelTabs.hostingTab.permanent":"mainPanelTabs.hostingTab.temporary"),e[0]=l,e[1]=o,e[2]=a):a=e[2];let c;return e[3]!==i||e[4]!==a?(c=s.jsx(me,{variant:i,children:a}),e[3]=i,e[4]=a,e[5]=c):c=e[5],c}function Ot(r){const e=Ee.c(180),{base:o,orgSlug:l,site:i,redirects:a,isLoading:c,error:d}=r,t=cs(),n=Ss(),[u,v]=ne.useState(!1),[m,N]=ne.useState(null),[g,p]=ne.useState(""),[h,y]=ne.useState(""),[j,w]=ne.useState("permanent"),[T,S]=ne.useState(null),[$,z]=ne.useState(null);let C;e[0]!==l||e[1]!==n||e[2]!==i?(C=()=>n.invalidateQueries({queryKey:Ue.hostingRedirects(l,i)}),e[0]=l,e[1]=n,e[2]=i,e[3]=C):C=e[3];const x=C;let P;e[4]!==o?(P=H=>rs(`${o}/redirects`,"PUT",H),e[4]=o,e[5]=P):P=e[5];let L;e[6]!==x||e[7]!==t?(L=()=>{x(),de.success(t("mainPanelTabs.hostingTab.toastRedirectSaved")),v(!1)},e[6]=x,e[7]=t,e[8]=L):L=e[8];let _;e[9]!==P||e[10]!==L?(_={mutationFn:P,onSuccess:L,onError:Mt},e[9]=P,e[10]=L,e[11]=_):_=e[11];const b=as(_);let B;e[12]!==o?(B=H=>rs(`${o}/redirects/${encodeURIComponent(H)}`,"DELETE"),e[12]=o,e[13]=B):B=e[13];let A;e[14]!==x||e[15]!==t?(A=()=>{x(),de.success(t("mainPanelTabs.hostingTab.toastRedirectDeleted")),S(null)},e[14]=x,e[15]=t,e[16]=A):A=e[16];let V;e[17]!==B||e[18]!==A?(V={mutationFn:B,onSuccess:A,onError:Ht},e[17]=B,e[18]=A,e[19]=V):V=e[19];const f=as(V);let G;e[20]===Symbol.for("react.memo_cache_sentinel")?(G=()=>{N(null),p(""),y(""),w("permanent"),v(!0)},e[20]=G):G=e[20];const Z=G;let le;e[21]===Symbol.for("react.memo_cache_sentinel")?(le=H=>{N(H.from),p(H.from),y(H.to),w(H.type==="temporary"?"temporary":"permanent"),v(!0)},e[21]=le):le=e[21];const ae=le;let ve;e[22]!==g||e[23]!==h||e[24]!==j||e[25]!==b||e[26]!==t?(ve=()=>{const H=g.trim(),Fs=h.trim();if(!H||!Fs){de.error(t("mainPanelTabs.hostingTab.errorRedirectFieldsRequired"));return}b.mutate({from:H,to:Fs,type:j})},e[22]=g,e[23]=h,e[24]=j,e[25]=b,e[26]=t,e[27]=ve):ve=e[27];const te=ve;let re;e[28]===Symbol.for("react.memo_cache_sentinel")?(re=s.jsx(qs,{className:"size-4"}),e[28]=re):re=e[28];let M;e[29]!==t?(M=t("mainPanelTabs.hostingTab.addRedirect"),e[29]=t,e[30]=M):M=e[30];let U;e[31]!==M?(U=s.jsxs(ce,{size:"sm",variant:"secondary",onClick:Z,children:[re,M]}),e[31]=M,e[32]=U):U=e[32];const X=U;let ee;e[33]!==t?(ee=t("mainPanelTabs.hostingTab.redirects"),e[33]=t,e[34]=ee):ee=e[34];const ie=a.length;let K;e[35]!==f.isPending||e[36]!==$||e[37]!==d||e[38]!==c||e[39]!==b.isPending||e[40]!==a||e[41]!==t?(K=c?s.jsx(vs,{cols:3}):d?s.jsx(Ye,{children:t("mainPanelTabs.hostingTab.redirectsError")}):a.length===0?s.jsx(Ps,{icon:s.jsx(mt,{className:"size-5"}),title:t("mainPanelTabs.hostingTab.noRedirects")}):s.jsxs(ss,{children:[s.jsx(os,{children:s.jsxs(ye,{children:[s.jsx(I,{children:t("mainPanelTabs.hostingTab.colFrom")}),s.jsx(I,{children:t("mainPanelTabs.hostingTab.colTo")}),s.jsx(I,{children:t("mainPanelTabs.hostingTab.colType")}),s.jsx(I,{className:"w-[1%]"})]})}),s.jsx(ts,{children:a.map((H,Fs)=>s.jsxs(ne.Fragment,{children:[s.jsxs(ye,{children:[s.jsx(q,{className:"font-mono text-xs align-middle",children:H.from}),s.jsx(q,{className:"font-mono text-xs text-muted-foreground max-w-[280px] truncate align-middle",children:H.to}),s.jsx(q,{className:"align-middle",children:s.jsx(Bt,{type:H.type,t})}),s.jsxs(q,{className:"text-right align-middle whitespace-nowrap",children:[s.jsx(ce,{size:"icon-sm",variant:"ghost","aria-label":t("mainPanelTabs.hostingTab.dnsSetup"),onClick:()=>z($===H.from?null:H.from),children:s.jsx(Ns,{className:"size-4"})}),s.jsx(ce,{size:"icon-sm",variant:"ghost","aria-label":t("mainPanelTabs.hostingTab.editRedirect"),onClick:()=>ae(H),disabled:b.isPending,children:s.jsx(ft,{className:"size-4"})}),s.jsx(ce,{size:"icon-sm",variant:"ghost","aria-label":t("mainPanelTabs.hostingTab.deleteRedirect"),onClick:()=>S(H.from),disabled:f.isPending,children:s.jsx(Os,{className:"size-4"})})]})]}),$===H.from&&s.jsx(ye,{children:s.jsx(q,{colSpan:4,className:"bg-muted/10",children:s.jsx(tt,{from:H.from,source:H.source,t})})})]},H.id??`${H.from}-${Fs}`))})]}),e[35]=f.isPending,e[36]=$,e[37]=d,e[38]=c,e[39]=b.isPending,e[40]=a,e[41]=t,e[42]=K):K=e[42];let J;e[43]!==m||e[44]!==t?(J=m!=null?t("mainPanelTabs.hostingTab.editRedirectTitle"):t("mainPanelTabs.hostingTab.addRedirectTitle"),e[43]=m,e[44]=t,e[45]=J):J=e[45];let se;e[46]!==J?(se=s.jsx(Hs,{children:s.jsx(Ms,{children:J})}),e[46]=J,e[47]=se):se=e[47];let W;e[48]!==t?(W=t("mainPanelTabs.hostingTab.colFrom"),e[48]=t,e[49]=W):W=e[49];let E;e[50]!==W?(E=s.jsx(hs,{htmlFor:"redirect-from",children:W}),e[50]=W,e[51]=E):E=e[51];let k;e[52]!==t?(k=t("mainPanelTabs.hostingTab.redirectFromPlaceholder"),e[52]=t,e[53]=k):k=e[53];let F;e[54]===Symbol.for("react.memo_cache_sentinel")?(F=H=>p(H.target.value),e[54]=F):F=e[54];const Q=m!=null||b.isPending;let Y;e[55]!==g||e[56]!==k||e[57]!==Q?(Y=s.jsx(ls,{id:"redirect-from",placeholder:k,value:g,onChange:F,className:"font-mono text-xs",disabled:Q}),e[55]=g,e[56]=k,e[57]=Q,e[58]=Y):Y=e[58];let D;e[59]!==E||e[60]!==Y?(D=s.jsxs("div",{className:"flex flex-col gap-2",children:[E,Y]}),e[59]=E,e[60]=Y,e[61]=D):D=e[61];let O;e[62]!==t?(O=t("mainPanelTabs.hostingTab.colTo"),e[62]=t,e[63]=O):O=e[63];let ze;e[64]!==O?(ze=s.jsx(hs,{htmlFor:"redirect-to",children:O}),e[64]=O,e[65]=ze):ze=e[65];let fe;e[66]!==t?(fe=t("mainPanelTabs.hostingTab.redirectToPlaceholder"),e[66]=t,e[67]=fe):fe=e[67];let Ne;e[68]===Symbol.for("react.memo_cache_sentinel")?(Ne=H=>y(H.target.value),e[68]=Ne):Ne=e[68];let he;e[69]!==h||e[70]!==b.isPending||e[71]!==fe?(he=s.jsx(ls,{id:"redirect-to",placeholder:fe,value:h,onChange:Ne,className:"font-mono text-xs",disabled:b.isPending}),e[69]=h,e[70]=b.isPending,e[71]=fe,e[72]=he):he=e[72];let ue;e[73]!==ze||e[74]!==he?(ue=s.jsxs("div",{className:"flex flex-col gap-2",children:[ze,he]}),e[73]=ze,e[74]=he,e[75]=ue):ue=e[75];let Le;e[76]!==t?(Le=t("mainPanelTabs.hostingTab.colType"),e[76]=t,e[77]=Le):Le=e[77];let Se;e[78]!==Le?(Se=s.jsx(hs,{children:Le}),e[78]=Le,e[79]=Se):Se=e[79];let Ce;e[80]===Symbol.for("react.memo_cache_sentinel")?(Ce=H=>w(H==="temporary"?"temporary":"permanent"),e[80]=Ce):Ce=e[80];const Fe=b.isPending;let Re;e[81]===Symbol.for("react.memo_cache_sentinel")?(Re=s.jsx(Gs,{className:"w-full",children:s.jsx(Xs,{})}),e[81]=Re):Re=e[81];let ge;e[82]!==t?(ge=t("mainPanelTabs.hostingTab.permanent"),e[82]=t,e[83]=ge):ge=e[83];let xe;e[84]!==ge?(xe=s.jsx(js,{value:"permanent",children:ge}),e[84]=ge,e[85]=xe):xe=e[85];let De;e[86]!==t?(De=t("mainPanelTabs.hostingTab.temporary"),e[86]=t,e[87]=De):De=e[87];let Ge;e[88]!==De?(Ge=s.jsx(js,{value:"temporary",children:De}),e[88]=De,e[89]=Ge):Ge=e[89];let be;e[90]!==xe||e[91]!==Ge?(be=s.jsxs(Zs,{children:[xe,Ge]}),e[90]=xe,e[91]=Ge,e[92]=be):be=e[92];let Te;e[93]!==j||e[94]!==b.isPending||e[95]!==be?(Te=s.jsxs(Ys,{value:j,onValueChange:Ce,disabled:Fe,children:[Re,be]}),e[93]=j,e[94]=b.isPending,e[95]=be,e[96]=Te):Te=e[96];let pe;e[97]!==Se||e[98]!==Te?(pe=s.jsxs("div",{className:"flex flex-col gap-2",children:[Se,Te]}),e[97]=Se,e[98]=Te,e[99]=pe):pe=e[99];let Ae;e[100]!==m||e[101]!==g||e[102]!==a||e[103]!==t?(Ae=g.trim()&&s.jsx(tt,{from:g,source:a.find(H=>H.from===m)?.source,t}),e[100]=m,e[101]=g,e[102]=a,e[103]=t,e[104]=Ae):Ae=e[104];let je;e[105]!==D||e[106]!==ue||e[107]!==pe||e[108]!==Ae?(je=s.jsxs("div",{className:"flex flex-col gap-4",children:[D,ue,pe,Ae]}),e[105]=D,e[106]=ue,e[107]=pe,e[108]=Ae,e[109]=je):je=e[109];let we;e[110]===Symbol.for("react.memo_cache_sentinel")?(we=()=>v(!1),e[110]=we):we=e[110];const Ve=b.isPending;let Pe;e[111]!==t?(Pe=t("mainPanelTabs.hostingTab.cancel"),e[111]=t,e[112]=Pe):Pe=e[112];let _e;e[113]!==b.isPending||e[114]!==Pe?(_e=s.jsx(ce,{variant:"outline",type:"button",onClick:we,disabled:Ve,children:Pe}),e[113]=b.isPending,e[114]=Pe,e[115]=_e):_e=e[115];let ke;e[116]!==g||e[117]!==h||e[118]!==b.isPending?(ke=b.isPending||!g.trim()||!h.trim(),e[116]=g,e[117]=h,e[118]=b.isPending,e[119]=ke):ke=e[119];let R;e[120]!==b.isPending||e[121]!==t?(R=b.isPending?t("mainPanelTabs.hostingTab.saving"):t("mainPanelTabs.hostingTab.save"),e[120]=b.isPending,e[121]=t,e[122]=R):R=e[122];let $e;e[123]!==te||e[124]!==ke||e[125]!==R?($e=s.jsx(ce,{type:"button",onClick:te,disabled:ke,children:R}),e[123]=te,e[124]=ke,e[125]=R,e[126]=$e):$e=e[126];let Xe;e[127]!==_e||e[128]!==$e?(Xe=s.jsxs(Ws,{children:[_e,$e]}),e[127]=_e,e[128]=$e,e[129]=Xe):Xe=e[129];let qe;e[130]!==se||e[131]!==je||e[132]!==Xe?(qe=s.jsxs(Ks,{className:"sm:max-w-md",children:[se,je,Xe]}),e[130]=se,e[131]=je,e[132]=Xe,e[133]=qe):qe=e[133];let Be;e[134]!==u||e[135]!==qe?(Be=s.jsx(Qs,{open:u,onOpenChange:v,children:qe}),e[134]=u,e[135]=qe,e[136]=Be):Be=e[136];const Ze=T!=null;let us;e[137]===Symbol.for("react.memo_cache_sentinel")?(us=H=>{H||S(null)},e[137]=us):us=e[137];let Oe;e[138]!==t?(Oe=t("mainPanelTabs.hostingTab.confirmDeleteRedirectTitle"),e[138]=t,e[139]=Oe):Oe=e[139];let He;e[140]!==Oe?(He=s.jsx(Cs,{children:Oe}),e[140]=Oe,e[141]=He):He=e[141];const es=T??"";let ns;e[142]!==t||e[143]!==es?(ns=t("mainPanelTabs.hostingTab.confirmDeleteRedirectDescription",{from:es}),e[142]=t,e[143]=es,e[144]=ns):ns=e[144];let Me;e[145]!==ns?(Me=s.jsx(Ds,{children:ns}),e[145]=ns,e[146]=Me):Me=e[146];let Ke;e[147]!==He||e[148]!==Me?(Ke=s.jsxs(ws,{children:[He,Me]}),e[147]=He,e[148]=Me,e[149]=Ke):Ke=e[149];const is=f.isPending;let Qe;e[150]!==t?(Qe=t("mainPanelTabs.hostingTab.cancel"),e[150]=t,e[151]=Qe):Qe=e[151];let Ie;e[152]!==f.isPending||e[153]!==Qe?(Ie=s.jsx($s,{disabled:is,children:Qe}),e[152]=f.isPending,e[153]=Qe,e[154]=Ie):Ie=e[154];let Je;e[155]!==f||e[156]!==T?(Je=H=>{H.preventDefault(),T&&f.mutate(T)},e[155]=f,e[156]=T,e[157]=Je):Je=e[157];const oe=f.isPending;let We;e[158]!==t?(We=t("mainPanelTabs.hostingTab.deleteRedirect"),e[158]=t,e[159]=We):We=e[159];let gs;e[160]!==f.isPending||e[161]!==Je||e[162]!==We?(gs=s.jsx(zs,{className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",onClick:Je,disabled:oe,children:We}),e[160]=f.isPending,e[161]=Je,e[162]=We,e[163]=gs):gs=e[163];let xs;e[164]!==Ie||e[165]!==gs?(xs=s.jsxs(Ls,{children:[Ie,gs]}),e[164]=Ie,e[165]=gs,e[166]=xs):xs=e[166];let bs;e[167]!==Ke||e[168]!==xs?(bs=s.jsxs(_s,{children:[Ke,xs]}),e[167]=Ke,e[168]=xs,e[169]=bs):bs=e[169];let Ts;e[170]!==Ze||e[171]!==bs?(Ts=s.jsx(ks,{open:Ze,onOpenChange:us,children:bs}),e[170]=Ze,e[171]=bs,e[172]=Ts):Ts=e[172];let Es;return e[173]!==X||e[174]!==a.length||e[175]!==ee||e[176]!==K||e[177]!==Be||e[178]!==Ts?(Es=s.jsxs(ys,{title:ee,count:ie,action:X,children:[K,Be,Ts]}),e[173]=X,e[174]=a.length,e[175]=ee,e[176]=K,e[177]=Be,e[178]=Ts,e[179]=Es):Es=e[179],Es}function Ht(r){return de.error(ds(r))}function Mt(r){return de.error(ds(r))}function nt(r){const e=Ee.c(35),{records:o,t:l}=r;if(o.length===0)return null;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(Ns,{className:"size-4 text-muted-foreground"}),e[0]=i):i=e[0];let a;e[1]!==l?(a=l("mainPanelTabs.hostingTab.dnsSetupTitle"),e[1]=l,e[2]=a):a=e[2];let c;e[3]!==a?(c=s.jsxs("div",{className:"flex items-center gap-2",children:[i,s.jsx("span",{className:"text-xs font-medium",children:a})]}),e[3]=a,e[4]=c):c=e[4];let d;e[5]!==l?(d=l("mainPanelTabs.hostingTab.dnsColType"),e[5]=l,e[6]=d):d=e[6];let t;e[7]!==d?(t=s.jsx(I,{className:"w-14",children:d}),e[7]=d,e[8]=t):t=e[8];let n;e[9]!==l?(n=l("mainPanelTabs.hostingTab.dnsColName"),e[9]=l,e[10]=n):n=e[10];let u;e[11]!==n?(u=s.jsx(I,{children:n}),e[11]=n,e[12]=u):u=e[12];let v;e[13]!==l?(v=l("mainPanelTabs.hostingTab.dnsColValue"),e[13]=l,e[14]=v):v=e[14];let m;e[15]!==v?(m=s.jsx(I,{children:v}),e[15]=v,e[16]=m):m=e[16];let N;e[17]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx(I,{className:"w-8"}),e[17]=N):N=e[17];let g;e[18]!==t||e[19]!==u||e[20]!==m?(g=s.jsx(os,{children:s.jsxs(ye,{children:[t,u,m,N]})}),e[18]=t,e[19]=u,e[20]=m,e[21]=g):g=e[21];let p;if(e[22]!==o||e[23]!==l){let w;e[25]!==l?(w=T=>s.jsxs(ye,{children:[s.jsx(q,{className:"font-mono text-xs align-top",children:T.type}),s.jsx(q,{className:"break-all font-mono text-xs align-top",children:T.name}),s.jsx(q,{className:"break-all font-mono text-xs align-top",children:T.value}),s.jsx(q,{className:"text-right align-top",children:s.jsx(lt,{value:T.value,t:l})})]},`${T.type}-${T.name}-${T.value}`),e[25]=l,e[26]=w):w=e[26],p=o.map(w),e[22]=o,e[23]=l,e[24]=p}else p=e[24];let h;e[27]!==p?(h=s.jsx(ts,{children:p}),e[27]=p,e[28]=h):h=e[28];let y;e[29]!==g||e[30]!==h?(y=s.jsxs(ss,{className:"w-full table-fixed",children:[g,h]}),e[29]=g,e[30]=h,e[31]=y):y=e[31];let j;return e[32]!==y||e[33]!==c?(j=s.jsxs("div",{className:"flex min-w-0 flex-col gap-3 rounded-md border bg-muted/30 p-3",children:[c,y]}),e[32]=y,e[33]=c,e[34]=j):j=e[34],j}function Kt(r){const e=Ee.c(10),{domain:o,t:l}=r,i=o.status??"pending";let a;e[0]!==i||e[1]!==l?(a=l(i==="active"?"mainPanelTabs.hostingTab.statusActive":i==="action-required"?"mainPanelTabs.hostingTab.statusActionRequired":"mainPanelTabs.hostingTab.statusPending"),e[0]=i,e[1]=l,e[2]=a):a=e[2];const c=a;let d;e[3]!==o.detail||e[4]!==l?(d=o.detail==="zone-not-onboarded"?l("mainPanelTabs.hostingTab.detailZoneNotOnboarded"):void 0,e[3]=o.detail,e[4]=l,e[5]=d):d=e[5];const t=d,n=i==="active"?"secondary":"outline";let u;return e[6]!==t||e[7]!==c||e[8]!==n?(u=s.jsx(me,{variant:n,title:t,children:c}),e[6]=t,e[7]=c,e[8]=n,e[9]=u):u=e[9],u}function Qt(r){const e=Ee.c(138),{base:o,orgSlug:l,site:i,domains:a,dnsTemplate:c,isLoading:d,error:t}=r,n=cs(),u=Ss(),[v,m]=ne.useState(!1),[N,g]=ne.useState(""),[p,h]=ne.useState(null),[y,j]=ne.useState(null);let w;e[0]!==l||e[1]!==u||e[2]!==i?(w=()=>u.invalidateQueries({queryKey:Ue.hostingDomains(l,i)}),e[0]=l,e[1]=u,e[2]=i,e[3]=w):w=e[3];const T=w;let S;e[4]!==o?(S=R=>rs(`${o}/domains`,"PUT",R),e[4]=o,e[5]=S):S=e[5];let $;e[6]!==T||e[7]!==n?($=()=>{T(),de.success(n("mainPanelTabs.hostingTab.toastDomainSaved")),m(!1)},e[6]=T,e[7]=n,e[8]=$):$=e[8];let z;e[9]!==S||e[10]!==$?(z={mutationFn:S,onSuccess:$,onError:Ut},e[9]=S,e[10]=$,e[11]=z):z=e[11];const C=as(z);let x;e[12]!==o?(x=R=>rs(`${o}/domains/${encodeURIComponent(R)}`,"DELETE"),e[12]=o,e[13]=x):x=e[13];let P;e[14]!==T||e[15]!==n?(P=()=>{T(),de.success(n("mainPanelTabs.hostingTab.toastDomainDeleted")),h(null)},e[14]=T,e[15]=n,e[16]=P):P=e[16];let L;e[17]!==x||e[18]!==P?(L={mutationFn:x,onSuccess:P,onError:It},e[17]=x,e[18]=P,e[19]=L):L=e[19];const _=as(L);let b;e[20]===Symbol.for("react.memo_cache_sentinel")?(b=()=>{g(""),m(!0)},e[20]=b):b=e[20];const B=b;let A;e[21]!==N||e[22]!==C||e[23]!==n?(A=()=>{const R=N.trim().toLowerCase();if(!R){de.error(n("mainPanelTabs.hostingTab.errorDomainHostRequired"));return}C.mutate({host:R})},e[21]=N,e[22]=C,e[23]=n,e[24]=A):A=e[24];const V=A;let f;if(e[25]!==c||e[26]!==N){let R;e[28]!==N?(R=$e=>({...$e,name:N.trim().toLowerCase()||$e.name}),e[28]=N,e[29]=R):R=e[29],f=c.map(R),e[25]=c,e[26]=N,e[27]=f}else f=e[27];const G=f;let Z;e[30]===Symbol.for("react.memo_cache_sentinel")?(Z=s.jsx(qs,{className:"size-4"}),e[30]=Z):Z=e[30];let le;e[31]!==n?(le=n("mainPanelTabs.hostingTab.addDomain"),e[31]=n,e[32]=le):le=e[32];let ae;e[33]!==le?(ae=s.jsxs(ce,{size:"sm",variant:"secondary",onClick:B,children:[Z,le]}),e[33]=le,e[34]=ae):ae=e[34];const ve=ae;let te;e[35]!==n?(te=n("mainPanelTabs.hostingTab.domains"),e[35]=n,e[36]=te):te=e[36];const re=a.length;let M;e[37]!==_.isPending||e[38]!==y||e[39]!==a||e[40]!==t||e[41]!==d||e[42]!==n?(M=d?s.jsx(vs,{cols:3}):t?s.jsx(Ye,{children:n("mainPanelTabs.hostingTab.domainsError")}):a.length===0?s.jsx(Ps,{icon:s.jsx(Ns,{className:"size-5"}),title:n("mainPanelTabs.hostingTab.noDomains")}):s.jsxs(ss,{children:[s.jsx(os,{children:s.jsxs(ye,{children:[s.jsx(I,{children:n("mainPanelTabs.hostingTab.colHost")}),s.jsx(I,{children:n("mainPanelTabs.hostingTab.colStatus")}),s.jsx(I,{className:"w-[1%]"})]})}),s.jsx(ts,{children:a.map((R,$e)=>s.jsxs(ne.Fragment,{children:[s.jsxs(ye,{children:[s.jsxs(q,{className:"font-mono text-xs align-middle",children:[R.host,R.canonical&&s.jsx(me,{variant:"outline",className:"ml-2",children:n("mainPanelTabs.hostingTab.canonical")})]}),s.jsx(q,{className:"align-middle",children:s.jsx(Kt,{domain:R,t:n})}),s.jsx(q,{className:"text-right align-middle whitespace-nowrap",children:!R.canonical&&s.jsxs(s.Fragment,{children:[s.jsx(ce,{size:"icon-sm",variant:"ghost","aria-label":n("mainPanelTabs.hostingTab.dnsSetup"),onClick:()=>j(y===R.host?null:R.host),children:s.jsx(Ns,{className:"size-4"})}),s.jsx(ce,{size:"icon-sm",variant:"ghost","aria-label":n("mainPanelTabs.hostingTab.deleteDomain"),onClick:()=>h(R.host),disabled:_.isPending,children:s.jsx(Os,{className:"size-4"})})]})})]}),y===R.host&&s.jsx(ye,{children:s.jsx(q,{colSpan:3,className:"bg-muted/10",children:s.jsx(nt,{records:R.dns??[],t:n})})})]},`${R.host}-${$e}`))})]}),e[37]=_.isPending,e[38]=y,e[39]=a,e[40]=t,e[41]=d,e[42]=n,e[43]=M):M=e[43];let U;e[44]!==n?(U=n("mainPanelTabs.hostingTab.addDomainTitle"),e[44]=n,e[45]=U):U=e[45];let X;e[46]!==U?(X=s.jsx(Hs,{children:s.jsx(Ms,{children:U})}),e[46]=U,e[47]=X):X=e[47];let ee;e[48]!==n?(ee=n("mainPanelTabs.hostingTab.colHost"),e[48]=n,e[49]=ee):ee=e[49];let ie;e[50]!==ee?(ie=s.jsx(hs,{htmlFor:"domain-host",children:ee}),e[50]=ee,e[51]=ie):ie=e[51];let K;e[52]!==n?(K=n("mainPanelTabs.hostingTab.domainHostPlaceholder"),e[52]=n,e[53]=K):K=e[53];let J;e[54]===Symbol.for("react.memo_cache_sentinel")?(J=R=>g(R.target.value),e[54]=J):J=e[54];let se;e[55]!==N||e[56]!==C.isPending||e[57]!==K?(se=s.jsx(ls,{id:"domain-host",placeholder:K,value:N,onChange:J,className:"font-mono text-xs",disabled:C.isPending}),e[55]=N,e[56]=C.isPending,e[57]=K,e[58]=se):se=e[58];let W;e[59]!==ie||e[60]!==se?(W=s.jsxs("div",{className:"flex flex-col gap-2",children:[ie,se]}),e[59]=ie,e[60]=se,e[61]=W):W=e[61];let E;e[62]!==N||e[63]!==G||e[64]!==n?(E=N.trim()&&s.jsx(nt,{records:G,t:n}),e[62]=N,e[63]=G,e[64]=n,e[65]=E):E=e[65];let k;e[66]!==W||e[67]!==E?(k=s.jsxs("div",{className:"flex flex-col gap-4",children:[W,E]}),e[66]=W,e[67]=E,e[68]=k):k=e[68];let F;e[69]===Symbol.for("react.memo_cache_sentinel")?(F=()=>m(!1),e[69]=F):F=e[69];const Q=C.isPending;let Y;e[70]!==n?(Y=n("mainPanelTabs.hostingTab.cancel"),e[70]=n,e[71]=Y):Y=e[71];let D;e[72]!==C.isPending||e[73]!==Y?(D=s.jsx(ce,{variant:"outline",type:"button",onClick:F,disabled:Q,children:Y}),e[72]=C.isPending,e[73]=Y,e[74]=D):D=e[74];let O;e[75]!==N||e[76]!==C.isPending?(O=C.isPending||!N.trim(),e[75]=N,e[76]=C.isPending,e[77]=O):O=e[77];let ze;e[78]!==C.isPending||e[79]!==n?(ze=C.isPending?n("mainPanelTabs.hostingTab.saving"):n("mainPanelTabs.hostingTab.save"),e[78]=C.isPending,e[79]=n,e[80]=ze):ze=e[80];let fe;e[81]!==V||e[82]!==O||e[83]!==ze?(fe=s.jsx(ce,{type:"button",onClick:V,disabled:O,children:ze}),e[81]=V,e[82]=O,e[83]=ze,e[84]=fe):fe=e[84];let Ne;e[85]!==D||e[86]!==fe?(Ne=s.jsxs(Ws,{children:[D,fe]}),e[85]=D,e[86]=fe,e[87]=Ne):Ne=e[87];let he;e[88]!==X||e[89]!==k||e[90]!==Ne?(he=s.jsxs(Ks,{className:"sm:max-w-md",children:[X,k,Ne]}),e[88]=X,e[89]=k,e[90]=Ne,e[91]=he):he=e[91];let ue;e[92]!==v||e[93]!==he?(ue=s.jsx(Qs,{open:v,onOpenChange:m,children:he}),e[92]=v,e[93]=he,e[94]=ue):ue=e[94];const Le=p!=null;let Se;e[95]===Symbol.for("react.memo_cache_sentinel")?(Se=R=>{R||h(null)},e[95]=Se):Se=e[95];let Ce;e[96]!==n?(Ce=n("mainPanelTabs.hostingTab.confirmDeleteDomainTitle"),e[96]=n,e[97]=Ce):Ce=e[97];let Fe;e[98]!==Ce?(Fe=s.jsx(Cs,{children:Ce}),e[98]=Ce,e[99]=Fe):Fe=e[99];const Re=p??"";let ge;e[100]!==n||e[101]!==Re?(ge=n("mainPanelTabs.hostingTab.confirmDeleteDomainDescription",{host:Re}),e[100]=n,e[101]=Re,e[102]=ge):ge=e[102];let xe;e[103]!==ge?(xe=s.jsx(Ds,{children:ge}),e[103]=ge,e[104]=xe):xe=e[104];let De;e[105]!==Fe||e[106]!==xe?(De=s.jsxs(ws,{children:[Fe,xe]}),e[105]=Fe,e[106]=xe,e[107]=De):De=e[107];const Ge=_.isPending;let be;e[108]!==n?(be=n("mainPanelTabs.hostingTab.cancel"),e[108]=n,e[109]=be):be=e[109];let Te;e[110]!==_.isPending||e[111]!==be?(Te=s.jsx($s,{disabled:Ge,children:be}),e[110]=_.isPending,e[111]=be,e[112]=Te):Te=e[112];let pe;e[113]!==_||e[114]!==p?(pe=R=>{R.preventDefault(),p&&_.mutate(p)},e[113]=_,e[114]=p,e[115]=pe):pe=e[115];const Ae=_.isPending;let je;e[116]!==n?(je=n("mainPanelTabs.hostingTab.deleteDomain"),e[116]=n,e[117]=je):je=e[117];let we;e[118]!==_.isPending||e[119]!==pe||e[120]!==je?(we=s.jsx(zs,{className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",onClick:pe,disabled:Ae,children:je}),e[118]=_.isPending,e[119]=pe,e[120]=je,e[121]=we):we=e[121];let Ve;e[122]!==Te||e[123]!==we?(Ve=s.jsxs(Ls,{children:[Te,we]}),e[122]=Te,e[123]=we,e[124]=Ve):Ve=e[124];let Pe;e[125]!==De||e[126]!==Ve?(Pe=s.jsxs(_s,{children:[De,Ve]}),e[125]=De,e[126]=Ve,e[127]=Pe):Pe=e[127];let _e;e[128]!==Le||e[129]!==Pe?(_e=s.jsx(ks,{open:Le,onOpenChange:Se,children:Pe}),e[128]=Le,e[129]=Pe,e[130]=_e):_e=e[130];let ke;return e[131]!==ve||e[132]!==a.length||e[133]!==te||e[134]!==M||e[135]!==ue||e[136]!==_e?(ke=s.jsxs(ys,{title:te,count:re,action:ve,children:[M,ue,_e]}),e[131]=ve,e[132]=a.length,e[133]=te,e[134]=M,e[135]=ue,e[136]=_e,e[137]=ke):ke=e[137],ke}function It(r){return de.error(ds(r))}function Ut(r){return de.error(ds(r))}function ti(r){const e=Ee.c(118),{virtualMcpId:o}=r,l=cs(),{org:i}=at(),a=bt(o),c=Tt(a),d=!!c,t=c?`/api/${i.slug}/hosting/${encodeURIComponent(c)}`:"";let n;e[0]!==t?(n=()=>fs(`${t}/deployments`),e[0]=t,e[1]=n):n=e[1];const u=ms({queryKey:Ue.hostingDeployments(i.slug,c??""),queryFn:n,enabled:d,retry:!1,staleTime:3e4});let v;e[2]!==t?(v=()=>fs(`${t}/env`),e[2]=t,e[3]=v):v=e[3];const m=ms({queryKey:Ue.hostingEnv(i.slug,c??""),queryFn:v,enabled:d,retry:!1,staleTime:3e4});let N;e[4]!==t?(N=()=>fs(`${t}/secrets`),e[4]=t,e[5]=N):N=e[5];const g=ms({queryKey:Ue.hostingSecrets(i.slug,c??""),queryFn:N,enabled:d,retry:!1,staleTime:3e4});let p;e[6]!==t?(p=()=>fs(`${t}/redirects`),e[6]=t,e[7]=p):p=e[7];const h=ms({queryKey:Ue.hostingRedirects(i.slug,c??""),queryFn:p,enabled:d,retry:!1,staleTime:3e4});let y;e[8]!==t?(y=()=>fs(`${t}/domains`),e[8]=t,e[9]=y):y=e[9];const j=ms({queryKey:Ue.hostingDomains(i.slug,c??""),queryFn:y,enabled:d,retry:!1,staleTime:3e4});if(!c){let E;e[10]===Symbol.for("react.memo_cache_sentinel")?(E=s.jsx(As,{className:"size-5"}),e[10]=E):E=e[10];let k;e[11]!==l?(k=l("mainPanelTabs.hostingTab.noSiteTitle"),e[11]=l,e[12]=k):k=e[12];let F;e[13]!==l?(F=l("mainPanelTabs.hostingTab.noSiteDescription"),e[13]=l,e[14]=F):F=e[14];let Q;return e[15]!==k||e[16]!==F?(Q=s.jsx("div",{className:"flex-1 flex items-center justify-center p-6",children:s.jsx(Ps,{icon:E,title:k,description:F})}),e[15]=k,e[16]=F,e[17]=Q):Q=e[17],Q}if(Vs(u.error)&&Vs(m.error)&&Vs(h.error)){let E;e[18]===Symbol.for("react.memo_cache_sentinel")?(E=s.jsx(As,{className:"size-5"}),e[18]=E):E=e[18];let k;e[19]!==l?(k=l("mainPanelTabs.hostingTab.notConnectedTitle"),e[19]=l,e[20]=k):k=e[20];let F;e[21]!==l?(F=l("mainPanelTabs.hostingTab.notConnectedDescription"),e[21]=l,e[22]=F):F=e[22];let Q;return e[23]!==k||e[24]!==F?(Q=s.jsx("div",{className:"flex-1 flex items-center justify-center p-6",children:s.jsx(Ps,{icon:E,title:k,description:F})}),e[23]=k,e[24]=F,e[25]=Q):Q=e[25],Q}let T,S,$,z,C,x,P,L;if(e[26]!==u.data||e[27]!==j.data||e[28]!==m.data||e[29]!==h.data||e[30]!==g.data){S=ps(u.data,"items");let E;e[39]!==m.data?(E=ps(m.data,"vars"),e[39]=m.data,e[40]=E):E=e[40],C=E;let k;e[41]!==m.data?(k=ps(m.data,"codeVars"),e[41]=m.data,e[42]=k):k=e[42],T=k;let F;e[43]!==g.data?(F=ps(g.data,"secrets"),e[43]=g.data,e[44]=F):F=e[44],P=F;let Q;e[45]!==h.data?(Q=ps(h.data,"items"),e[45]=h.data,e[46]=Q):Q=e[46],x=Q;const Y=j.data;let D;e[47]!==Y?.items?(D=Y?.items??[],e[47]=Y?.items,e[48]=D):D=e[48],z=D;let O;e[49]!==Y?.dnsTemplate?(O=Y?.dnsTemplate??[],e[49]=Y?.dnsTemplate,e[50]=O):O=e[50],$=O,L=Js(S.find(Jt)?.framework),e[26]=u.data,e[27]=j.data,e[28]=m.data,e[29]=h.data,e[30]=g.data,e[31]=T,e[32]=S,e[33]=$,e[34]=z,e[35]=C,e[36]=x,e[37]=P,e[38]=L}else T=e[31],S=e[32],$=e[33],z=e[34],C=e[35],x=e[36],P=e[37],L=e[38];const _=L,b="h-full min-h-0 overflow-y-auto",B="mx-auto flex max-w-4xl flex-col gap-6 p-6",A="flex items-start justify-between gap-4",V="flex flex-col gap-1";let f;e[51]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(As,{className:"size-[18px] text-muted-foreground"}),e[51]=f):f=e[51];let G;e[52]!==l?(G=l("mainPanelTabs.hostingTab.title"),e[52]=l,e[53]=G):G=e[53];let Z;e[54]!==G?(Z=s.jsx("h2",{className:"text-base font-semibold text-foreground",children:G}),e[54]=G,e[55]=Z):Z=e[55];let le;e[56]!==_?(le=_&&s.jsx(me,{variant:"secondary",children:_}),e[56]=_,e[57]=le):le=e[57];let ae;e[58]!==Z||e[59]!==le?(ae=s.jsxs("div",{className:"flex items-center gap-2",children:[f,Z,le]}),e[58]=Z,e[59]=le,e[60]=ae):ae=e[60];const ve="text-sm text-muted-foreground",te=l("mainPanelTabs.hostingTab.subtitle",{site:c});let re;e[61]!==te?(re=s.jsx("p",{className:ve,children:te}),e[61]=te,e[62]=re):re=e[62];let M;e[63]!==ae||e[64]!==re?(M=s.jsxs("div",{className:V,children:[ae,re]}),e[63]=ae,e[64]=re,e[65]=M):M=e[65];let U;e[66]!==t||e[67]!==i.slug||e[68]!==c?(U=s.jsx(yt,{base:t,orgSlug:i.slug,site:c}),e[66]=t,e[67]=i.slug,e[68]=c,e[69]=U):U=e[69];let X;e[70]!==M||e[71]!==U?(X=s.jsxs("div",{className:A,children:[M,U]}),e[70]=M,e[71]=U,e[72]=X):X=e[72];let ee;e[73]!==t||e[74]!==S||e[75]!==u.error||e[76]!==u.isLoading||e[77]!==d||e[78]!==i.slug||e[79]!==c?(ee=s.jsx(wt,{base:t,orgSlug:i.slug,site:c,enabled:d,deployments:S,isLoading:u.isLoading,error:u.error}),e[73]=t,e[74]=S,e[75]=u.error,e[76]=u.isLoading,e[77]=d,e[78]=i.slug,e[79]=c,e[80]=ee):ee=e[80];let ie;e[81]!==t||e[82]!==T||e[83]!==m.error||e[84]!==m.isLoading||e[85]!==C||e[86]!==i.slug||e[87]!==c?(ie=s.jsx(Lt,{base:t,orgSlug:i.slug,site:c,envVars:C,codeVars:T,isLoading:m.isLoading,error:m.error}),e[81]=t,e[82]=T,e[83]=m.error,e[84]=m.isLoading,e[85]=C,e[86]=i.slug,e[87]=c,e[88]=ie):ie=e[88];let K;e[89]!==t||e[90]!==i.slug||e[91]!==P||e[92]!==g.error||e[93]!==g.isLoading||e[94]!==c?(K=s.jsx(Et,{base:t,orgSlug:i.slug,site:c,secrets:P,isLoading:g.isLoading,error:g.error}),e[89]=t,e[90]=i.slug,e[91]=P,e[92]=g.error,e[93]=g.isLoading,e[94]=c,e[95]=K):K=e[95];let J;e[96]!==t||e[97]!==$||e[98]!==z||e[99]!==j.error||e[100]!==j.isLoading||e[101]!==i.slug||e[102]!==c?(J=s.jsx(Qt,{base:t,orgSlug:i.slug,site:c,domains:z,dnsTemplate:$,isLoading:j.isLoading,error:j.error}),e[96]=t,e[97]=$,e[98]=z,e[99]=j.error,e[100]=j.isLoading,e[101]=i.slug,e[102]=c,e[103]=J):J=e[103];let se;e[104]!==t||e[105]!==i.slug||e[106]!==x||e[107]!==h.error||e[108]!==h.isLoading||e[109]!==c?(se=s.jsx(Ot,{base:t,orgSlug:i.slug,site:c,redirects:x,isLoading:h.isLoading,error:h.error}),e[104]=t,e[105]=i.slug,e[106]=x,e[107]=h.error,e[108]=h.isLoading,e[109]=c,e[110]=se):se=e[110];let W;return e[111]!==X||e[112]!==ee||e[113]!==ie||e[114]!==K||e[115]!==J||e[116]!==se?(W=s.jsx("div",{className:b,children:s.jsxs("div",{className:B,children:[X,ee,ie,K,J,se]})}),e[111]=X,e[112]=ee,e[113]=ie,e[114]=K,e[115]=J,e[116]=se,e[117]=W):W=e[117],W}function Jt(r){return r.framework}export{ti as HostingTab};
|
|
1
|
+
import{c as Ee,b as cs,G as at,m as ms,K as Ue,j as s,n as Ss,r as ne,e as as,B as ce,b8 as Rs,t as de}from"./index-Duje61Xv.js";import{i as ot}from"./AlertCircle-BnJSjvRr.js";import{t as rt}from"./ChevronUp-DCxC4nqn.js";import{i as ct}from"./ChevronRight-DZ_A_9gi.js";import{be as dt,bf as Us,aD as it,av as mt,aF as ft,aY as ht,bg as ut,k as As}from"./agent-icon-BA5Q75L0.js";import{a as gt}from"./Copy01-DCWIjDLi.js";import{i as Ns}from"./Globe01-DlaG-NnI.js";import{n as et}from"./LinkExternal01-DEZgimKD.js";import{s as qs}from"./Plus-C4BLg9rY.js";import{d as Bs}from"./UserSquare-BoLQORca.js";import{s as Os}from"./Trash01-DTRwSnwl.js";import{i as xt}from"./Zap-DL_o7-ob.js";import{B as me}from"./badge-DTaRDPAR.js";import{I as ls}from"./input-CnXtEqVa.js";import{L as hs}from"./label-Cde57soC.js";import{c as Cs,d as Ds,b as ws,f as $s,g as zs,e as Ls,a as _s,A as ks}from"./alert-dialog-B9Cqya-5.js";import{c as Hs,d as Ms,e as Ws,b as Ks,D as Qs}from"./dialog-B04kc62g.js";import{S as Ys,b as Gs,a as Xs,d as Zs,c as js}from"./select-B8LB9lO7.js";import{c as ss,e as os,a as ye,d as I,b as ts,T as q}from"./table-CmlmtKb5.js";import{E as Ps}from"./empty-state-8xdT9fUB.js";import{u as bt}from"./use-virtual-mcp-DFQ-_cXE.js";import{r as Tt}from"./site-slug-uya6Wp4-.js";import"./Tool01-q_jLTCKZ.js";import"./ArrowUp-BL_Z3gaA.js";import"./ArrowLeft-CFd_URtJ.js";import"./Tool02-DKVecUxz.js";import"./ArrowRight-CIjsALWT.js";import"./TrendUp01-Dc0HNJry.js";import"./ZoomOut-RWKUY6hj.js";import"./Users03-C-hy1klX.js";import"./CheckCircle-DWGenYVe.js";import"./Check-PVF6vrar.js";import"./ChevronSelectorVertical-DM1bCZ5U.js";import"./DotsVertical-DpjgNoh-.js";import"./CreditCard01-C5_XNJti.js";import"./Download01-Du8Vadan.js";import"./Settings02-HilGA_l8.js";import"./Eye-BByX4xau.js";import"./Share07-C5fLDjhG.js";import"./GitBranch01-BH6dGtWi.js";import"./XClose-DljE5x9b.js";import"./HardDrive-CUdLIQ85.js";import"./Image01-7KOsFSn6.js";import"./Key01-Cgpr5iVq.js";import"./Link01-BwBpqz0z.js";import"./Monitor01-BrWUHiMt.js";import"./Sun-C6IH4klW.js";import"./Package-Cz6cuFXC.js";import"./Palette-C62-AS5d.js";import"./Play-y6LHuyl1.js";import"./SearchLg-5JXlPePj.js";import"./SearchMd-iLxrs9MR.js";import"./Shield01-CM8p_GEF.js";import"./Stars01-B27dL-gW.js";import"./Upload01-D7EURws9.js";import"./User01-CIoTN2qr.js";import"./Users01-DMZvF9yz.js";import"./XCircle-B2HwIa6n.js";import"./use-mcp-client-CuZUnG6t.js";import"./auth-SROEnleF.js";function Is(r,e){return r.name===e.name&&(r.scope??"runtime")===e.scope}function ps(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 Js(r){return r==="deco-deno"?"Deco Deno":r==="deco-tanstack"?"Deco TanStack":r??null}function pt(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 st(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"}),i=[["year",31536e3],["month",2592e3],["day",86400],["hour",3600],["minute",60]];for(const[a,c]of i)if(Math.abs(o)>=c)return l.format(-Math.round(o/c),a);return l.format(-o,"second")}function jt(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.floor(e/60),l=Math.round(e%60);return`${o}m ${l}s`}function Vs(r){const e=r instanceof Error?r.message.toLowerCase():"";return e.includes("unauthorized")||e.includes("401")}function ds(r){return r instanceof Error?r.message:String(r)}async function fs(r){const e=await fetch(r),o=await e.json().catch(()=>({}));if(!e.ok){const l=o&&typeof o=="object"&&"error"in o?String(o.error):`request failed (${e.status})`;throw new Error(l)}return o}async function rs(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}),i=await l.json().catch(()=>({}));if(!l.ok){const a=i&&typeof i=="object"&&"error"in i?String(i.error):`request failed (${l.status})`;throw new Error(a)}return i}function ys(r){const e=Ee.c(15),{title:o,count:l,action:i,children:a}=r;let c;e[0]!==o?(c=s.jsx("h3",{className:"text-sm font-medium text-foreground",children:o}),e[0]=o,e[1]=c):c=e[1];let d;e[2]!==l?(d=typeof l=="number"&&l>0&&s.jsx(me,{variant:"secondary",className:"tabular-nums",children:l}),e[2]=l,e[3]=d):d=e[3];let t;e[4]!==i?(t=i&&s.jsx("div",{className:"ml-auto",children:i}),e[4]=i,e[5]=t):t=e[5];let n;e[6]!==c||e[7]!==d||e[8]!==t?(n=s.jsxs("header",{className:"flex items-center gap-2 px-4 py-3 border-b border-border",children:[c,d,t]}),e[6]=c,e[7]=d,e[8]=t,e[9]=n):n=e[9];let u;e[10]!==a?(u=s.jsx("div",{className:"p-2",children:a}),e[10]=a,e[11]=u):u=e[11];let v;return e[12]!==n||e[13]!==u?(v=s.jsxs("section",{className:"rounded-xl border border-border bg-card overflow-hidden",children:[n,u]}),e[12]=n,e[13]=u,e[14]=v):v=e[14],v}function vs(r){const e=Ee.c(3),{cols:o}=r;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=[0,1,2],e[0]=l):l=e[0];let i;return e[1]!==o?(i=s.jsx("div",{className:"flex flex-col gap-2 p-2",children:l.map(a=>s.jsx("div",{className:"flex gap-3",children:Array.from({length:o}).map(Pt)},a))}),e[1]=o,e[2]=i):i=e[2],i}function Pt(r,e){return s.jsx(Rs,{className:"h-4 flex-1"},e)}function Ye(r){const e=Ee.c(2),{children:o}=r;let l;return e[0]!==o?(l=s.jsx("div",{className:"px-3 py-6 text-sm text-muted-foreground",children:o}),e[0]=o,e[1]=l):l=e[1],l}function yt(r){const e=Ee.c(54),{base:o,orgSlug:l,site:i}=r,a=cs(),c=Ss(),[d,t]=ne.useState(!1);let n;e[0]!==o?(n=()=>rs(`${o}/deploy`,"POST",{mode:"current"}),e[0]=o,e[1]=n):n=e[1];let u;e[2]!==l||e[3]!==c||e[4]!==i||e[5]!==a?(u=()=>{c.invalidateQueries({queryKey:Ue.hostingDeployments(l,i)}),c.invalidateQueries({queryKey:Ue.hostingDeploymentHistory(l,i)}),de.success(a("mainPanelTabs.hostingTab.toastDeployQueued")),t(!1)},e[2]=l,e[3]=c,e[4]=i,e[5]=a,e[6]=u):u=e[6];let v;e[7]!==n||e[8]!==u?(v={mutationFn:n,onSuccess:u,onError:vt},e[7]=n,e[8]=u,e[9]=v):v=e[9];const m=as(v);let N;e[10]===Symbol.for("react.memo_cache_sentinel")?(N=()=>t(!0),e[10]=N):N=e[10];let g;e[11]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(Bs,{className:"size-4"}),e[11]=g):g=e[11];let p;e[12]!==m.isPending||e[13]!==a?(p=m.isPending?a("mainPanelTabs.hostingTab.deploying"):a("mainPanelTabs.hostingTab.deploy"),e[12]=m.isPending,e[13]=a,e[14]=p):p=e[14];let h;e[15]!==m.isPending||e[16]!==p?(h=s.jsxs(ce,{size:"sm",onClick:N,disabled:m.isPending,children:[g,p]}),e[15]=m.isPending,e[16]=p,e[17]=h):h=e[17];let y;e[18]!==a?(y=a("mainPanelTabs.hostingTab.deployConfirmTitle"),e[18]=a,e[19]=y):y=e[19];let j;e[20]!==y?(j=s.jsx(Cs,{children:y}),e[20]=y,e[21]=j):j=e[21];let w;e[22]!==a?(w=a("mainPanelTabs.hostingTab.deployConfirmDescription"),e[22]=a,e[23]=w):w=e[23];let T;e[24]!==w?(T=s.jsx(Ds,{children:w}),e[24]=w,e[25]=T):T=e[25];let S;e[26]!==T||e[27]!==j?(S=s.jsxs(ws,{children:[j,T]}),e[26]=T,e[27]=j,e[28]=S):S=e[28];const $=m.isPending;let z;e[29]!==a?(z=a("mainPanelTabs.hostingTab.cancel"),e[29]=a,e[30]=z):z=e[30];let C;e[31]!==m.isPending||e[32]!==z?(C=s.jsx($s,{disabled:$,children:z}),e[31]=m.isPending,e[32]=z,e[33]=C):C=e[33];let x;e[34]!==m?(x=f=>{f.preventDefault(),m.mutate()},e[34]=m,e[35]=x):x=e[35];const P=m.isPending;let L;e[36]!==a?(L=a("mainPanelTabs.hostingTab.deploy"),e[36]=a,e[37]=L):L=e[37];let _;e[38]!==m.isPending||e[39]!==x||e[40]!==L?(_=s.jsx(zs,{onClick:x,disabled:P,children:L}),e[38]=m.isPending,e[39]=x,e[40]=L,e[41]=_):_=e[41];let b;e[42]!==C||e[43]!==_?(b=s.jsxs(Ls,{children:[C,_]}),e[42]=C,e[43]=_,e[44]=b):b=e[44];let B;e[45]!==S||e[46]!==b?(B=s.jsxs(_s,{children:[S,b]}),e[45]=S,e[46]=b,e[47]=B):B=e[47];let A;e[48]!==d||e[49]!==B?(A=s.jsx(ks,{open:d,onOpenChange:t,children:B}),e[48]=d,e[49]=B,e[50]=A):A=e[50];let V;return e[51]!==A||e[52]!==h?(V=s.jsxs(s.Fragment,{children:[h,A]}),e[51]=A,e[52]=h,e[53]=V):V=e[53],V}function vt(r){return de.error(ds(r))}function Nt(r,e){const o=(r??"").toLowerCase();return o.includes("rollback")?s.jsxs(me,{variant:"warning",children:[s.jsx(ht,{className:"size-3"}),e("mainPanelTabs.hostingTab.actionRollback")]}):o.includes("redeploy")?s.jsxs(me,{variant:"secondary",children:[s.jsx(ut,{className:"size-3"}),e("mainPanelTabs.hostingTab.actionRedeploy")]}):s.jsxs(me,{variant:"secondary",children:[s.jsx(Bs,{className:"size-3"}),e("mainPanelTabs.hostingTab.actionDeploy")]})}function St(r,e,o){const l=(r??"").toLowerCase();return l==="build"?s.jsxs(me,{variant:"secondary",children:[s.jsx(Us,{className:"size-3"}),o("mainPanelTabs.hostingTab.typeBuild")]}):l==="fast-deploy"?s.jsxs(me,{variant:"secondary",children:[s.jsx(xt,{className:"size-3"}),o("mainPanelTabs.hostingTab.typeFastDeploy")]}):l==="deploy"?s.jsxs(me,{variant:"secondary",children:[s.jsx(Bs,{className:"size-3"}),o("mainPanelTabs.hostingTab.typeDeploy")]}):Nt(e,o)}function Ct(r,e){const o=(r??"").toLowerCase();return o==="success"?s.jsx(me,{variant:"success",children:e("mainPanelTabs.hostingTab.outcomeSuccess")}):o==="failure"?s.jsx(me,{variant:"destructive",children:e("mainPanelTabs.hostingTab.outcomeFailure")}):o==="pending"?s.jsxs(me,{variant:"secondary",children:[s.jsx(it,{className:"size-3"}),e("mainPanelTabs.hostingTab.outcomePending")]}):null}function Dt(r){const e=Ee.c(35),{base:o,orgSlug:l,site:i,target:a,onOpenChange:c}=r,d=cs(),t=a!=null,n=a?.commit??"",u=a?.env??"";let v;e[0]!==n||e[1]!==u||e[2]!==l||e[3]!==i?(v=Ue.hostingBuildLogs(l,i,n,u),e[0]=n,e[1]=u,e[2]=l,e[3]=i,e[4]=v):v=e[4];let m;e[5]!==o||e[6]!==n||e[7]!==u?(m=()=>fs(`${o}/deployments/logs?commit=${encodeURIComponent(n)}&env=${encodeURIComponent(u)}`),e[5]=o,e[6]=n,e[7]=u,e[8]=m):m=e[8];const N=t&&!!n;let g;e[9]!==v||e[10]!==m||e[11]!==N?(g={queryKey:v,queryFn:m,enabled:N,retry:!1,staleTime:0,gcTime:0,refetchOnMount:"always"},e[9]=v,e[10]=m,e[11]=N,e[12]=g):g=e[12];const p=ms(g),h=p.data;let y;e[13]!==d?(y=d("mainPanelTabs.hostingTab.buildLogsTitle"),e[13]=d,e[14]=y):y=e[14];let j;e[15]!==y?(j=s.jsx(Hs,{children:s.jsx(Ms,{children:y})}),e[15]=y,e[16]=j):j=e[16];let w;e[17]!==n||e[18]!==d?(w=d("mainPanelTabs.hostingTab.buildLogsCommit",{commit:n.slice(0,7)}),e[17]=n,e[18]=d,e[19]=w):w=e[19];let T;e[20]!==w?(T=s.jsx("p",{className:"font-mono text-xs text-muted-foreground",children:w}),e[20]=w,e[21]=T):T=e[21];let S;e[22]!==h||e[23]!==p.error||e[24]!==p.isLoading||e[25]!==d?(S=Vs(p.error)?s.jsx(Ps,{icon:s.jsx(As,{className:"size-5"}),title:d("mainPanelTabs.hostingTab.notConnectedTitle"),description:d("mainPanelTabs.hostingTab.notConnectedDescription")}):p.isLoading?s.jsxs("div",{className:"flex flex-col gap-2",children:[s.jsx(Rs,{className:"h-4 w-full"}),s.jsx(Rs,{className:"h-4 w-full"}),s.jsx(Rs,{className:"h-4 w-2/3"})]}):p.error?s.jsx(Ye,{children:d("mainPanelTabs.hostingTab.buildLogsError")}):h&&h.configured===!1?s.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:[s.jsx(ot,{className:"size-5 text-muted-foreground"}),s.jsx("p",{className:"text-sm font-medium text-foreground",children:d("mainPanelTabs.hostingTab.buildLogsNotWiredTitle")}),s.jsx("p",{className:"text-xs text-muted-foreground",children:h.reason??d("mainPanelTabs.hostingTab.buildLogsNotWiredDescription")})]}):h?.text?s.jsxs("div",{className:"flex flex-col gap-2",children:[s.jsx("pre",{className:"max-h-[52vh] overflow-auto rounded-lg border border-border bg-muted/40 p-3 font-mono text-[11px] leading-relaxed text-foreground/80 whitespace-pre-wrap break-words",children:h.text}),h.truncated&&s.jsx("p",{className:"text-xs text-warning",children:d("mainPanelTabs.hostingTab.buildLogsTruncated")}),h.url&&s.jsxs("a",{href:h.url,target:"_blank",rel:"noreferrer",className:"inline-flex w-fit items-center gap-1.5 text-xs text-primary hover:underline",children:[s.jsx(et,{className:"size-3.5"}),d("mainPanelTabs.hostingTab.buildLogsOpenFull")]})]}):h?.url?s.jsxs("a",{href:h.url,target:"_blank",rel:"noreferrer",className:"inline-flex w-fit items-center gap-1.5 text-sm text-primary hover:underline",children:[s.jsx(et,{className:"size-4"}),d("mainPanelTabs.hostingTab.buildLogsOpenFull")]}):s.jsx(Ye,{children:d("mainPanelTabs.hostingTab.buildLogsEmpty")}),e[22]=h,e[23]=p.error,e[24]=p.isLoading,e[25]=d,e[26]=S):S=e[26];let $;e[27]!==j||e[28]!==T||e[29]!==S?($=s.jsxs(Ks,{className:"sm:max-w-2xl",children:[j,T,S]}),e[27]=j,e[28]=T,e[29]=S,e[30]=$):$=e[30];let z;return e[31]!==c||e[32]!==t||e[33]!==$?(z=s.jsx(Qs,{open:t,onOpenChange:c,children:$}),e[31]=c,e[32]=t,e[33]=$,e[34]=z):z=e[34],z}function wt(r){const e=Ee.c(52),{base:o,orgSlug:l,site:i,enabled:a,deployments:c,isLoading:d,error:t}=r,n=cs(),[u,v]=ne.useState(null),[m,N]=ne.useState(null);let g;e[0]!==l||e[1]!==i?(g=Ue.hostingDeploymentHistory(l,i),e[0]=l,e[1]=i,e[2]=g):g=e[2];let p;e[3]!==o?(p=()=>fs(`${o}/deployments/history?limit=50`),e[3]=o,e[4]=p):p=e[4];let h;e[5]!==a||e[6]!==g||e[7]!==p?(h={queryKey:g,queryFn:p,enabled:a,retry:!1,staleTime:3e4},e[5]=a,e[6]=g,e[7]=p,e[8]=h):h=e[8];const y=ms(h);let j,w,T,S,$;if(e[9]!==c||e[10]!==t||e[11]!==u||e[12]!==y.data||e[13]!==y.error||e[14]!==y.isLoading||e[15]!==d||e[16]!==n){const L=ps(y.data,"items"),_=c.find(zt)?.commitSha??c.find($t)?.commitSha??null;let b;e[22]===Symbol.for("react.memo_cache_sentinel")?(b=(f,G)=>{f&&N({commit:f,env:G??"production"})},e[22]=b):b=e[22];const B=b;let A;e[23]!==n?(A=n("mainPanelTabs.hostingTab.deployments"),e[23]=n,e[24]=A):A=e[24];let V;e[25]!==c||e[26]!==t||e[27]!==u||e[28]!==d||e[29]!==n?(V=d?s.jsx(vs,{cols:5}):t?s.jsx(Ye,{children:n("mainPanelTabs.hostingTab.deploymentsError")}):c.length===0?s.jsx(Ye,{children:n("mainPanelTabs.hostingTab.noDeployments")}):s.jsxs(ss,{children:[s.jsx(os,{children:s.jsxs(ye,{children:[s.jsx(I,{children:n("mainPanelTabs.hostingTab.colCommit")}),s.jsx(I,{children:n("mainPanelTabs.hostingTab.colStatus")}),s.jsx(I,{children:n("mainPanelTabs.hostingTab.colFramework")}),s.jsx(I,{className:"text-right",children:n("mainPanelTabs.hostingTab.colDuration")}),s.jsx(I,{className:"text-right",children:n("mainPanelTabs.hostingTab.colUpdated")}),s.jsx(I,{className:"w-[1%]"})]})}),s.jsx(ts,{children:c.map(f=>{const G=!!f.buildMessage,Z=u===f.id;return s.jsxs(ne.Fragment,{children:[s.jsxs(ye,{children:[s.jsx(q,{className:"align-middle",children:s.jsxs("div",{className:"flex items-center gap-1.5",children:[G?s.jsx("button",{type:"button",onClick:()=>v(Z?null:f.id),"aria-label":n("mainPanelTabs.hostingTab.showBuildMessage"),className:"text-muted-foreground hover:text-foreground",children:Z?s.jsx(rt,{className:"size-4"}):s.jsx(ct,{className:"size-4"})}):s.jsx(dt,{className:"size-4 text-muted-foreground/60"}),s.jsx("span",{className:"font-mono text-xs",children:f.shortCommit??f.commitSha?.slice(0,7)??"—"}),f.production===!0&&s.jsx(me,{variant:"outline",children:n("mainPanelTabs.hostingTab.production")})]})}),s.jsx(q,{className:"align-middle",children:s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx(me,{variant:pt(f.phase),children:f.phase??"—"}),f.up===!0&&s.jsx(me,{variant:"success",children:n("mainPanelTabs.hostingTab.live")})]})}),s.jsx(q,{className:"align-middle text-xs text-muted-foreground",children:Js(f.framework)??"—"}),s.jsx(q,{className:"text-right align-middle font-mono text-xs text-muted-foreground tabular-nums",children:jt(f.durationMs)}),s.jsx(q,{className:"text-right align-middle text-xs text-muted-foreground whitespace-nowrap",children:st(f.finishedAt??f.startedAt??f.createdAt)}),s.jsx(q,{className:"text-right align-middle",children:s.jsx(ce,{size:"icon-sm",variant:"ghost","aria-label":n("mainPanelTabs.hostingTab.buildLogs"),onClick:()=>B(f.commitSha,f.env),disabled:!f.commitSha,children:s.jsx(Us,{className:"size-4"})})})]}),G&&Z&&s.jsx(ye,{children:s.jsx(q,{colSpan:6,className:"bg-muted/10",children:s.jsx("p",{className:"whitespace-pre-wrap break-words px-2 py-1 font-mono text-xs text-muted-foreground",children:f.buildMessage})})})]},f.id)})})]}),e[25]=c,e[26]=t,e[27]=u,e[28]=d,e[29]=n,e[30]=V):V=e[30],e[31]!==c.length||e[32]!==V||e[33]!==A?($=s.jsx(ys,{title:A,count:c.length,children:V}),e[31]=c.length,e[32]=V,e[33]=A,e[34]=$):$=e[34],j=ys,e[35]!==n?(w=n("mainPanelTabs.hostingTab.deployHistory"),e[35]=n,e[36]=w):w=e[36],T=L.length,S=y.isLoading?s.jsx(vs,{cols:4}):y.error?s.jsx(Ye,{children:n("mainPanelTabs.hostingTab.deployHistoryError")}):L.length===0?s.jsx(Ps,{icon:s.jsx(Bs,{className:"size-5"}),title:n("mainPanelTabs.hostingTab.noDeployHistory")}):s.jsxs(ss,{children:[s.jsx(os,{children:s.jsxs(ye,{children:[s.jsx(I,{children:n("mainPanelTabs.hostingTab.colAction")}),s.jsx(I,{children:n("mainPanelTabs.hostingTab.colCommit")}),s.jsx(I,{children:n("mainPanelTabs.hostingTab.colFramework")}),s.jsx(I,{children:n("mainPanelTabs.hostingTab.colActor")}),s.jsx(I,{className:"text-right",children:n("mainPanelTabs.hostingTab.colDate")}),s.jsx(I,{className:"w-[1%]"})]})}),s.jsx(ts,{children:L.map(f=>{const G=!!_&&f.commitSha===_;return s.jsxs(ye,{children:[s.jsx(q,{className:"align-middle",children:s.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[St(f.type,f.action,n),Ct(f.outcome,n)]})}),s.jsx(q,{className:"align-middle",children:s.jsxs("div",{className:"flex items-center gap-1.5",children:[s.jsx("span",{className:"font-mono text-xs",children:f.commitSha?.slice(0,7)??"—"}),G&&s.jsx(me,{variant:"success",children:n("mainPanelTabs.hostingTab.live")})]})}),s.jsx(q,{className:"align-middle text-xs text-muted-foreground",children:Js(f.framework)??"—"}),s.jsx(q,{className:"align-middle text-xs text-muted-foreground",children:f.actor??"—"}),s.jsx(q,{className:"text-right align-middle text-xs text-muted-foreground whitespace-nowrap",children:s.jsxs("span",{className:"inline-flex items-center gap-1",children:[s.jsx(it,{className:"size-3"}),st(f.createdAt)]})}),s.jsx(q,{className:"text-right align-middle",children:s.jsx(ce,{size:"icon-sm",variant:"ghost","aria-label":n("mainPanelTabs.hostingTab.buildLogs"),onClick:()=>B(f.commitSha,f.env),disabled:!f.commitSha,children:s.jsx(Us,{className:"size-4"})})})]},f.id)})})]}),e[9]=c,e[10]=t,e[11]=u,e[12]=y.data,e[13]=y.error,e[14]=y.isLoading,e[15]=d,e[16]=n,e[17]=j,e[18]=w,e[19]=T,e[20]=S,e[21]=$}else j=e[17],w=e[18],T=e[19],S=e[20],$=e[21];let z;e[37]!==j||e[38]!==w||e[39]!==T||e[40]!==S?(z=s.jsx(j,{title:w,count:T,children:S}),e[37]=j,e[38]=w,e[39]=T,e[40]=S,e[41]=z):z=e[41];let C;e[42]===Symbol.for("react.memo_cache_sentinel")?(C=L=>{L||N(null)},e[42]=C):C=e[42];let x;e[43]!==o||e[44]!==m||e[45]!==l||e[46]!==i?(x=s.jsx(Dt,{base:o,orgSlug:l,site:i,target:m,onOpenChange:C}),e[43]=o,e[44]=m,e[45]=l,e[46]=i,e[47]=x):x=e[47];let P;return e[48]!==x||e[49]!==$||e[50]!==z?(P=s.jsxs(s.Fragment,{children:[$,z,x]}),e[48]=x,e[49]=$,e[50]=z,e[51]=P):P=e[51],P}function $t(r){return r.production===!0&&r.up}function zt(r){return r.up===!0}function Lt(r){const e=Ee.c(82),{base:o,orgSlug:l,site:i,envVars:a,codeVars:c,isLoading:d,error:t}=r,n=cs(),u=Ss(),[v,m]=ne.useState(""),[N,g]=ne.useState(""),[p,h]=ne.useState("runtime"),[y,j]=ne.useState(null),[w,T]=ne.useState(""),[S,$]=ne.useState(null);let z;e[0]!==o?(z=D=>rs(`${o}/env`,"PUT",{vars:D}),e[0]=o,e[1]=z):z=e[1];let C;e[2]!==l||e[3]!==u||e[4]!==i||e[5]!==n?(C=()=>{u.invalidateQueries({queryKey:Ue.hostingEnv(l,i)}),de.success(n("mainPanelTabs.hostingTab.toastEnvSaved"))},e[2]=l,e[3]=u,e[4]=i,e[5]=n,e[6]=C):C=e[6];let x;e[7]!==z||e[8]!==C?(x={mutationFn:z,onSuccess:C,onError:kt},e[7]=z,e[8]=C,e[9]=x):x=e[9];const P=as(x);let L;e[10]!==v||e[11]!==p||e[12]!==N||e[13]!==P||e[14]!==a||e[15]!==n?(L=()=>{const D=v.trim();if(!D){de.error(n("mainPanelTabs.hostingTab.errorEnvNameRequired"));return}if(a.some(O=>Is(O,{name:D,scope:p}))){de.error(n("mainPanelTabs.hostingTab.errorEnvNameDuplicate"));return}P.mutate([...a,{name:D,value:N,scope:p}],{onSuccess:()=>{m(""),g(""),h("runtime")}})},e[10]=v,e[11]=p,e[12]=N,e[13]=P,e[14]=a,e[15]=n,e[16]=L):L=e[16];const _=L;let b;e[17]!==w||e[18]!==P||e[19]!==a?(b=D=>{P.mutate(a.map(O=>Is(O,D)?{name:D.name,value:w,scope:D.scope}:O),{onSuccess:()=>j(null)})},e[17]=w,e[18]=P,e[19]=a,e[20]=b):b=e[20];const B=b;let A;e[21]!==S||e[22]!==P||e[23]!==a?(A=()=>{S&&P.mutate(a.filter(D=>!Is(D,S)),{onSuccess:()=>$(null)})},e[21]=S,e[22]=P,e[23]=a,e[24]=A):A=e[24];const V=A;let f;e[25]!==n?(f=n("mainPanelTabs.hostingTab.env"),e[25]=n,e[26]=f):f=e[26];const G=a.length;let Z;e[27]!==v||e[28]!==p||e[29]!==N||e[30]!==c||e[31]!==w||e[32]!==y?.name||e[33]!==y?.scope||e[34]!==P.isPending||e[35]!==a||e[36]!==t||e[37]!==_||e[38]!==B||e[39]!==d||e[40]!==n?(Z=d?s.jsx(vs,{cols:2}):t?s.jsx(Ye,{children:n("mainPanelTabs.hostingTab.envError")}):s.jsxs("div",{className:"flex flex-col gap-2",children:[a.length===0?s.jsx(Ye,{children:n("mainPanelTabs.hostingTab.noEnv")}):s.jsxs(ss,{children:[s.jsx(os,{children:s.jsxs(ye,{children:[s.jsx(I,{children:n("mainPanelTabs.hostingTab.colName")}),s.jsx(I,{children:n("mainPanelTabs.hostingTab.colValue")}),s.jsx(I,{className:"w-[1%]"})]})}),s.jsx(ts,{children:a.map(D=>{const O=D.scope==="build"?"build":"runtime",ze=y?.name===D.name&&y?.scope===O;return s.jsxs(ye,{children:[s.jsx(q,{className:"font-mono text-xs align-middle",children:s.jsxs("span",{className:"inline-flex items-center gap-2",children:[D.name,s.jsx(me,{variant:O==="build"?"outline":"secondary",className:"font-sans text-[10px] capitalize",children:n(O==="build"?"mainPanelTabs.hostingTab.secretScopeBuild":"mainPanelTabs.hostingTab.secretScopeRuntime")})]})}),s.jsx(q,{className:"font-mono text-xs text-muted-foreground max-w-[360px] align-middle",children:ze?s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsx(ls,{value:w,onChange:fe=>T(fe.target.value),className:"h-7 font-mono text-xs"}),s.jsx(ce,{size:"xs",onClick:()=>B({name:D.name,scope:O}),disabled:P.isPending,children:n("mainPanelTabs.hostingTab.save")}),s.jsx(ce,{size:"xs",variant:"ghost",onClick:()=>j(null),disabled:P.isPending,children:n("mainPanelTabs.hostingTab.cancel")})]}):s.jsx("button",{type:"button",onClick:()=>{j({name:D.name,scope:O}),T(D.value)},className:"block w-full truncate text-left hover:underline","aria-label":n("mainPanelTabs.hostingTab.editValue"),children:D.value})}),s.jsx(q,{className:"text-right align-middle",children:s.jsx(ce,{size:"icon-sm",variant:"ghost","aria-label":n("mainPanelTabs.hostingTab.deleteVariable"),onClick:()=>$({name:D.name,scope:O}),disabled:P.isPending,children:s.jsx(Os,{className:"size-4"})})})]},`${D.name}:${O}`)})})]}),s.jsxs("div",{className:"flex items-center gap-2 px-2 py-1",children:[s.jsx(ls,{placeholder:n("mainPanelTabs.hostingTab.envNamePlaceholder"),value:v,onChange:D=>m(D.target.value),className:"h-8 flex-1 font-mono text-xs"}),s.jsx(ls,{placeholder:n("mainPanelTabs.hostingTab.envValuePlaceholder"),value:N,onChange:D=>g(D.target.value),className:"h-8 flex-1 font-mono text-xs"}),s.jsxs(Ys,{value:p,onValueChange:D=>h(D==="build"?"build":"runtime"),disabled:P.isPending,children:[s.jsx(Gs,{className:"h-8 w-[110px]",children:s.jsx(Xs,{})}),s.jsxs(Zs,{children:[s.jsx(js,{value:"runtime",children:n("mainPanelTabs.hostingTab.secretScopeRuntime")}),s.jsx(js,{value:"build",children:n("mainPanelTabs.hostingTab.secretScopeBuild")})]})]}),s.jsxs(ce,{size:"sm","aria-label":n("mainPanelTabs.hostingTab.addVariable"),onClick:_,disabled:P.isPending||!v.trim(),children:[s.jsx(qs,{className:"size-4"}),n("mainPanelTabs.hostingTab.add")]})]}),c.length>0&&s.jsxs("div",{className:"mt-3 flex flex-col gap-1.5 border-t border-border pt-3",children:[s.jsx("p",{className:"px-2 text-xs text-muted-foreground",children:n("mainPanelTabs.hostingTab.codeVarsHint")}),s.jsx(ss,{children:s.jsx(ts,{children:c.map(_t)})})]})]}),e[27]=v,e[28]=p,e[29]=N,e[30]=c,e[31]=w,e[32]=y?.name,e[33]=y?.scope,e[34]=P.isPending,e[35]=a,e[36]=t,e[37]=_,e[38]=B,e[39]=d,e[40]=n,e[41]=Z):Z=e[41];const le=S!=null;let ae;e[42]===Symbol.for("react.memo_cache_sentinel")?(ae=D=>{D||$(null)},e[42]=ae):ae=e[42];let ve;e[43]!==n?(ve=n("mainPanelTabs.hostingTab.confirmDeleteVariableTitle"),e[43]=n,e[44]=ve):ve=e[44];let te;e[45]!==ve?(te=s.jsx(Cs,{children:ve}),e[45]=ve,e[46]=te):te=e[46];const re=S?.name??"";let M;e[47]!==n||e[48]!==re?(M=n("mainPanelTabs.hostingTab.confirmDeleteVariableDescription",{name:re}),e[47]=n,e[48]=re,e[49]=M):M=e[49];let U;e[50]!==M?(U=s.jsx(Ds,{children:M}),e[50]=M,e[51]=U):U=e[51];let X;e[52]!==te||e[53]!==U?(X=s.jsxs(ws,{children:[te,U]}),e[52]=te,e[53]=U,e[54]=X):X=e[54];const ee=P.isPending;let ie;e[55]!==n?(ie=n("mainPanelTabs.hostingTab.cancel"),e[55]=n,e[56]=ie):ie=e[56];let K;e[57]!==P.isPending||e[58]!==ie?(K=s.jsx($s,{disabled:ee,children:ie}),e[57]=P.isPending,e[58]=ie,e[59]=K):K=e[59];let J;e[60]!==V?(J=D=>{D.preventDefault(),V()},e[60]=V,e[61]=J):J=e[61];const se=P.isPending;let W;e[62]!==n?(W=n("mainPanelTabs.hostingTab.deleteVariable"),e[62]=n,e[63]=W):W=e[63];let E;e[64]!==P.isPending||e[65]!==J||e[66]!==W?(E=s.jsx(zs,{className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",onClick:J,disabled:se,children:W}),e[64]=P.isPending,e[65]=J,e[66]=W,e[67]=E):E=e[67];let k;e[68]!==K||e[69]!==E?(k=s.jsxs(Ls,{children:[K,E]}),e[68]=K,e[69]=E,e[70]=k):k=e[70];let F;e[71]!==X||e[72]!==k?(F=s.jsxs(_s,{children:[X,k]}),e[71]=X,e[72]=k,e[73]=F):F=e[73];let Q;e[74]!==le||e[75]!==F?(Q=s.jsx(ks,{open:le,onOpenChange:ae,children:F}),e[74]=le,e[75]=F,e[76]=Q):Q=e[76];let Y;return e[77]!==a.length||e[78]!==Q||e[79]!==f||e[80]!==Z?(Y=s.jsxs(ys,{title:f,count:G,children:[Z,Q]}),e[77]=a.length,e[78]=Q,e[79]=f,e[80]=Z,e[81]=Y):Y=e[81],Y}function _t(r){return s.jsxs(ye,{children:[s.jsx(q,{className:"font-mono text-xs align-middle",children:r.name}),s.jsx(q,{className:"font-mono text-xs text-muted-foreground max-w-[360px] truncate align-middle",children:r.value})]},r.name)}function kt(r){return de.error(ds(r))}function Et(r){const e=Ee.c(176),{base:o,orgSlug:l,site:i,secrets:a,isLoading:c,error:d}=r,t=cs(),n=Ss(),[u,v]=ne.useState(!1),[m,N]=ne.useState(""),[g,p]=ne.useState(""),[h,y]=ne.useState("runtime"),[j,w]=ne.useState(null);let T;e[0]!==l||e[1]!==n||e[2]!==i?(T=()=>n.invalidateQueries({queryKey:Ue.hostingSecrets(l,i)}),e[0]=l,e[1]=n,e[2]=i,e[3]=T):T=e[3];const S=T;let $;e[4]!==o?($=oe=>rs(`${o}/secrets`,"PUT",oe),e[4]=o,e[5]=$):$=e[5];let z;e[6]!==S||e[7]!==t?(z=()=>{S(),de.success(t("mainPanelTabs.hostingTab.toastSecretSaved")),v(!1),N(""),p(""),y("runtime")},e[6]=S,e[7]=t,e[8]=z):z=e[8];let C;e[9]!==$||e[10]!==z?(C={mutationFn:$,onSuccess:z,onError:Rt},e[9]=$,e[10]=z,e[11]=C):C=e[11];const x=as(C);let P;e[12]!==o?(P=oe=>rs(`${o}/secrets/${encodeURIComponent(oe.name)}?scope=${oe.scope}`,"DELETE"),e[12]=o,e[13]=P):P=e[13];let L;e[14]!==S||e[15]!==t?(L=()=>{S(),de.success(t("mainPanelTabs.hostingTab.toastSecretDeleted")),w(null)},e[14]=S,e[15]=t,e[16]=L):L=e[16];let _;e[17]!==P||e[18]!==L?(_={mutationFn:P,onSuccess:L,onError:Ft},e[17]=P,e[18]=L,e[19]=_):_=e[19];const b=as(_);let B;e[20]!==m||e[21]!==h||e[22]!==g||e[23]!==x||e[24]!==t?(B=()=>{const oe=m.trim();if(!oe){de.error(t("mainPanelTabs.hostingTab.errorSecretNameRequired"));return}if(!g){de.error(t("mainPanelTabs.hostingTab.errorSecretValueRequired"));return}x.mutate({name:oe,value:g,scope:h})},e[20]=m,e[21]=h,e[22]=g,e[23]=x,e[24]=t,e[25]=B):B=e[25];const A=B;let V,f;e[26]===Symbol.for("react.memo_cache_sentinel")?(f=()=>v(!0),V=s.jsx(qs,{className:"size-4"}),e[26]=V,e[27]=f):(V=e[26],f=e[27]);let G;e[28]!==t?(G=t("mainPanelTabs.hostingTab.addSecret"),e[28]=t,e[29]=G):G=e[29];let Z;e[30]!==G?(Z=s.jsxs(ce,{size:"sm",variant:"secondary",onClick:f,children:[V,G]}),e[30]=G,e[31]=Z):Z=e[31];const le=Z;let ae;e[32]!==t?(ae=t("mainPanelTabs.hostingTab.secrets"),e[32]=t,e[33]=ae):ae=e[33];const ve=a.length;let te;e[34]!==b.isPending||e[35]!==d||e[36]!==c||e[37]!==a||e[38]!==t?(te=c?s.jsx(vs,{cols:2}):d?s.jsx(Ye,{children:t("mainPanelTabs.hostingTab.secretsError")}):a.length===0?s.jsx(Ye,{children:t("mainPanelTabs.hostingTab.noSecrets")}):s.jsxs(ss,{children:[s.jsx(os,{children:s.jsxs(ye,{children:[s.jsx(I,{children:t("mainPanelTabs.hostingTab.colName")}),s.jsx(I,{children:t("mainPanelTabs.hostingTab.colValue")}),s.jsx(I,{className:"w-[1%]"})]})}),s.jsx(ts,{children:a.map(oe=>{const We=oe.scope==="build"?"build":"runtime";return s.jsxs(ye,{children:[s.jsx(q,{className:"font-mono text-xs align-middle",children:s.jsxs("span",{className:"inline-flex items-center gap-2",children:[oe.name,s.jsx(me,{variant:We==="build"?"outline":"secondary",className:"font-sans text-[10px] capitalize",children:t(We==="build"?"mainPanelTabs.hostingTab.secretScopeBuild":"mainPanelTabs.hostingTab.secretScopeRuntime")}),oe.origin==="worker"&&s.jsx(me,{variant:"secondary",className:"font-sans text-[10px]",children:t("mainPanelTabs.hostingTab.secretOnWorker")})]})}),s.jsx(q,{className:"font-mono text-xs text-muted-foreground align-middle",children:t("mainPanelTabs.hostingTab.secretValueHidden")}),s.jsx(q,{className:"text-right align-middle",children:s.jsx(ce,{size:"icon-sm",variant:"ghost","aria-label":t("mainPanelTabs.hostingTab.deleteSecret"),onClick:()=>w({name:oe.name,scope:We}),disabled:b.isPending,children:s.jsx(Os,{className:"size-4"})})})]},`${oe.name}:${We}`)})})]}),e[34]=b.isPending,e[35]=d,e[36]=c,e[37]=a,e[38]=t,e[39]=te):te=e[39];let re;e[40]!==t?(re=t("mainPanelTabs.hostingTab.addSecretTitle"),e[40]=t,e[41]=re):re=e[41];let M;e[42]!==re?(M=s.jsx(Hs,{children:s.jsx(Ms,{children:re})}),e[42]=re,e[43]=M):M=e[43];let U;e[44]!==t?(U=t("mainPanelTabs.hostingTab.colName"),e[44]=t,e[45]=U):U=e[45];let X;e[46]!==U?(X=s.jsx(hs,{htmlFor:"secret-name",children:U}),e[46]=U,e[47]=X):X=e[47];let ee;e[48]!==t?(ee=t("mainPanelTabs.hostingTab.secretNamePlaceholder"),e[48]=t,e[49]=ee):ee=e[49];let ie;e[50]===Symbol.for("react.memo_cache_sentinel")?(ie=oe=>N(oe.target.value),e[50]=ie):ie=e[50];let K;e[51]!==m||e[52]!==x.isPending||e[53]!==ee?(K=s.jsx(ls,{id:"secret-name",placeholder:ee,value:m,onChange:ie,className:"font-mono text-xs",disabled:x.isPending}),e[51]=m,e[52]=x.isPending,e[53]=ee,e[54]=K):K=e[54];let J;e[55]!==X||e[56]!==K?(J=s.jsxs("div",{className:"flex flex-col gap-2",children:[X,K]}),e[55]=X,e[56]=K,e[57]=J):J=e[57];let se;e[58]!==t?(se=t("mainPanelTabs.hostingTab.colValue"),e[58]=t,e[59]=se):se=e[59];let W;e[60]!==se?(W=s.jsx(hs,{htmlFor:"secret-value",children:se}),e[60]=se,e[61]=W):W=e[61];let E;e[62]!==t?(E=t("mainPanelTabs.hostingTab.secretValuePlaceholder"),e[62]=t,e[63]=E):E=e[63];let k;e[64]===Symbol.for("react.memo_cache_sentinel")?(k=oe=>p(oe.target.value),e[64]=k):k=e[64];let F;e[65]!==g||e[66]!==x.isPending||e[67]!==E?(F=s.jsx(ls,{id:"secret-value",type:"password",placeholder:E,value:g,onChange:k,className:"font-mono text-xs",disabled:x.isPending}),e[65]=g,e[66]=x.isPending,e[67]=E,e[68]=F):F=e[68];let Q;e[69]!==W||e[70]!==F?(Q=s.jsxs("div",{className:"flex flex-col gap-2",children:[W,F]}),e[69]=W,e[70]=F,e[71]=Q):Q=e[71];let Y;e[72]!==t?(Y=t("mainPanelTabs.hostingTab.secretScope"),e[72]=t,e[73]=Y):Y=e[73];let D;e[74]!==Y?(D=s.jsx(hs,{children:Y}),e[74]=Y,e[75]=D):D=e[75];let O;e[76]===Symbol.for("react.memo_cache_sentinel")?(O=oe=>y(oe==="build"?"build":"runtime"),e[76]=O):O=e[76];const ze=x.isPending;let fe;e[77]===Symbol.for("react.memo_cache_sentinel")?(fe=s.jsx(Gs,{className:"w-full",children:s.jsx(Xs,{})}),e[77]=fe):fe=e[77];let Ne;e[78]!==t?(Ne=t("mainPanelTabs.hostingTab.secretScopeRuntime"),e[78]=t,e[79]=Ne):Ne=e[79];let he;e[80]!==Ne?(he=s.jsx(js,{value:"runtime",children:Ne}),e[80]=Ne,e[81]=he):he=e[81];let ue;e[82]!==t?(ue=t("mainPanelTabs.hostingTab.secretScopeBuild"),e[82]=t,e[83]=ue):ue=e[83];let Le;e[84]!==ue?(Le=s.jsx(js,{value:"build",children:ue}),e[84]=ue,e[85]=Le):Le=e[85];let Se;e[86]!==he||e[87]!==Le?(Se=s.jsxs(Zs,{children:[he,Le]}),e[86]=he,e[87]=Le,e[88]=Se):Se=e[88];let Ce;e[89]!==h||e[90]!==x.isPending||e[91]!==Se?(Ce=s.jsxs(Ys,{value:h,onValueChange:O,disabled:ze,children:[fe,Se]}),e[89]=h,e[90]=x.isPending,e[91]=Se,e[92]=Ce):Ce=e[92];let Fe;e[93]!==h||e[94]!==t?(Fe=t(h==="build"?"mainPanelTabs.hostingTab.secretScopeBuildHint":"mainPanelTabs.hostingTab.secretScopeRuntimeHint"),e[93]=h,e[94]=t,e[95]=Fe):Fe=e[95];let Re;e[96]!==Fe?(Re=s.jsx("p",{className:"text-xs text-muted-foreground",children:Fe}),e[96]=Fe,e[97]=Re):Re=e[97];let ge;e[98]!==D||e[99]!==Ce||e[100]!==Re?(ge=s.jsxs("div",{className:"flex flex-col gap-2",children:[D,Ce,Re]}),e[98]=D,e[99]=Ce,e[100]=Re,e[101]=ge):ge=e[101];let xe;e[102]!==J||e[103]!==Q||e[104]!==ge?(xe=s.jsxs("div",{className:"flex flex-col gap-4",children:[J,Q,ge]}),e[102]=J,e[103]=Q,e[104]=ge,e[105]=xe):xe=e[105];let De;e[106]===Symbol.for("react.memo_cache_sentinel")?(De=()=>v(!1),e[106]=De):De=e[106];const Ge=x.isPending;let be;e[107]!==t?(be=t("mainPanelTabs.hostingTab.cancel"),e[107]=t,e[108]=be):be=e[108];let Te;e[109]!==x.isPending||e[110]!==be?(Te=s.jsx(ce,{variant:"outline",type:"button",onClick:De,disabled:Ge,children:be}),e[109]=x.isPending,e[110]=be,e[111]=Te):Te=e[111];let pe;e[112]!==m||e[113]!==g||e[114]!==x.isPending?(pe=x.isPending||!m.trim()||!g,e[112]=m,e[113]=g,e[114]=x.isPending,e[115]=pe):pe=e[115];let Ae;e[116]!==x.isPending||e[117]!==t?(Ae=x.isPending?t("mainPanelTabs.hostingTab.saving"):t("mainPanelTabs.hostingTab.add"),e[116]=x.isPending,e[117]=t,e[118]=Ae):Ae=e[118];let je;e[119]!==A||e[120]!==pe||e[121]!==Ae?(je=s.jsx(ce,{type:"button",onClick:A,disabled:pe,children:Ae}),e[119]=A,e[120]=pe,e[121]=Ae,e[122]=je):je=e[122];let we;e[123]!==Te||e[124]!==je?(we=s.jsxs(Ws,{children:[Te,je]}),e[123]=Te,e[124]=je,e[125]=we):we=e[125];let Ve;e[126]!==M||e[127]!==xe||e[128]!==we?(Ve=s.jsxs(Ks,{className:"sm:max-w-md",children:[M,xe,we]}),e[126]=M,e[127]=xe,e[128]=we,e[129]=Ve):Ve=e[129];let Pe;e[130]!==u||e[131]!==Ve?(Pe=s.jsx(Qs,{open:u,onOpenChange:v,children:Ve}),e[130]=u,e[131]=Ve,e[132]=Pe):Pe=e[132];const _e=j!=null;let ke;e[133]===Symbol.for("react.memo_cache_sentinel")?(ke=oe=>{oe||w(null)},e[133]=ke):ke=e[133];let R;e[134]!==t?(R=t("mainPanelTabs.hostingTab.confirmDeleteSecretTitle"),e[134]=t,e[135]=R):R=e[135];let $e;e[136]!==R?($e=s.jsx(Cs,{children:R}),e[136]=R,e[137]=$e):$e=e[137];const Xe=j?.name??"";let qe;e[138]!==t||e[139]!==Xe?(qe=t("mainPanelTabs.hostingTab.confirmDeleteSecretDescription",{name:Xe}),e[138]=t,e[139]=Xe,e[140]=qe):qe=e[140];let Be;e[141]!==qe?(Be=s.jsx(Ds,{children:qe}),e[141]=qe,e[142]=Be):Be=e[142];let Ze;e[143]!==$e||e[144]!==Be?(Ze=s.jsxs(ws,{children:[$e,Be]}),e[143]=$e,e[144]=Be,e[145]=Ze):Ze=e[145];const us=b.isPending;let Oe;e[146]!==t?(Oe=t("mainPanelTabs.hostingTab.cancel"),e[146]=t,e[147]=Oe):Oe=e[147];let He;e[148]!==b.isPending||e[149]!==Oe?(He=s.jsx($s,{disabled:us,children:Oe}),e[148]=b.isPending,e[149]=Oe,e[150]=He):He=e[150];let es;e[151]!==b||e[152]!==j?(es=oe=>{oe.preventDefault(),j&&b.mutate(j)},e[151]=b,e[152]=j,e[153]=es):es=e[153];const ns=b.isPending;let Me;e[154]!==t?(Me=t("mainPanelTabs.hostingTab.deleteSecret"),e[154]=t,e[155]=Me):Me=e[155];let Ke;e[156]!==b.isPending||e[157]!==es||e[158]!==Me?(Ke=s.jsx(zs,{className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",onClick:es,disabled:ns,children:Me}),e[156]=b.isPending,e[157]=es,e[158]=Me,e[159]=Ke):Ke=e[159];let is;e[160]!==He||e[161]!==Ke?(is=s.jsxs(Ls,{children:[He,Ke]}),e[160]=He,e[161]=Ke,e[162]=is):is=e[162];let Qe;e[163]!==Ze||e[164]!==is?(Qe=s.jsxs(_s,{children:[Ze,is]}),e[163]=Ze,e[164]=is,e[165]=Qe):Qe=e[165];let Ie;e[166]!==_e||e[167]!==Qe?(Ie=s.jsx(ks,{open:_e,onOpenChange:ke,children:Qe}),e[166]=_e,e[167]=Qe,e[168]=Ie):Ie=e[168];let Je;return e[169]!==le||e[170]!==a.length||e[171]!==ae||e[172]!==te||e[173]!==Pe||e[174]!==Ie?(Je=s.jsxs(ys,{title:ae,count:ve,action:le,children:[te,Pe,Ie]}),e[169]=le,e[170]=a.length,e[171]=ae,e[172]=te,e[173]=Pe,e[174]=Ie,e[175]=Je):Je=e[175],Je}function Ft(r){return de.error(ds(r))}function Rt(r){return de.error(ds(r))}const At=["16.148.147.194","52.32.122.94","52.35.156.199"];function Vt(r){return r.replace(/\.$/,"").split(".").filter(Boolean).length===2}function qt(r){return Vt(r)?"@":r}function lt(r){const e=Ee.c(9),{value:o,t:l}=r;let i;e[0]!==l?(i=l("mainPanelTabs.hostingTab.dnsCopy"),e[0]=l,e[1]=i):i=e[1];let a;e[2]!==l||e[3]!==o?(a=()=>{navigator.clipboard?.writeText(o),de.success(l("mainPanelTabs.hostingTab.dnsCopied"))},e[2]=l,e[3]=o,e[4]=a):a=e[4];let c;e[5]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(gt,{className:"size-3.5"}),e[5]=c):c=e[5];let d;return e[6]!==i||e[7]!==a?(d=s.jsx(ce,{size:"icon-sm",variant:"ghost","aria-label":i,onClick:a,children:c}),e[6]=i,e[7]=a,e[8]=d):d=e[8],d}function tt(r){const e=Ee.c(64),{from:o,source:l,t:i}=r;let a,c,d,t,n,u,v;if(e[0]!==o||e[1]!==l||e[2]!==i){const L=o.trim().replace(/\.$/,"");c=L?qt(L):"@",a=l==="both",n="flex flex-col gap-3 rounded-md border bg-muted/30 p-3";let _;e[10]===Symbol.for("react.memo_cache_sentinel")?(_=s.jsx(Ns,{className:"size-4 text-muted-foreground"}),e[10]=_):_=e[10];let b;e[11]!==i?(b=i("mainPanelTabs.hostingTab.dnsSetupTitle"),e[11]=i,e[12]=b):b=e[12];let B;e[13]!==b?(B=s.jsx("span",{className:"text-xs font-medium",children:b}),e[13]=b,e[14]=B):B=e[14];const A=a?"secondary":"outline";let V;e[15]!==a||e[16]!==i?(V=i(a?"mainPanelTabs.hostingTab.dnsActive":"mainPanelTabs.hostingTab.dnsAwaiting"),e[15]=a,e[16]=i,e[17]=V):V=e[17];let f;e[18]!==V||e[19]!==A?(f=s.jsx(me,{variant:A,className:"ml-auto",children:V}),e[18]=V,e[19]=A,e[20]=f):f=e[20],e[21]!==f||e[22]!==B?(u=s.jsxs("div",{className:"flex items-center gap-2",children:[_,B,f]}),e[21]=f,e[22]=B,e[23]=u):u=e[23],v=s.jsx("p",{className:"text-xs text-muted-foreground",children:i("mainPanelTabs.hostingTab.dnsRedirectIntent",{from:L||"—"})}),d="text-xs text-muted-foreground",t=i("mainPanelTabs.hostingTab.dnsSetupDescription",{host:L||"—"}),e[0]=o,e[1]=l,e[2]=i,e[3]=a,e[4]=c,e[5]=d,e[6]=t,e[7]=n,e[8]=u,e[9]=v}else a=e[3],c=e[4],d=e[5],t=e[6],n=e[7],u=e[8],v=e[9];let m;e[24]!==d||e[25]!==t?(m=s.jsx("p",{className:d,children:t}),e[24]=d,e[25]=t,e[26]=m):m=e[26];let N;e[27]!==a||e[28]!==i?(N=i(a?"mainPanelTabs.hostingTab.dnsActiveHint":"mainPanelTabs.hostingTab.dnsAwaitingHint"),e[27]=a,e[28]=i,e[29]=N):N=e[29];let g;e[30]!==N?(g=s.jsx("p",{className:"text-xs text-muted-foreground",children:N}),e[30]=N,e[31]=g):g=e[31];let p;e[32]!==i?(p=i("mainPanelTabs.hostingTab.dnsColType"),e[32]=i,e[33]=p):p=e[33];let h;e[34]!==p?(h=s.jsx(I,{children:p}),e[34]=p,e[35]=h):h=e[35];let y;e[36]!==i?(y=i("mainPanelTabs.hostingTab.dnsColName"),e[36]=i,e[37]=y):y=e[37];let j;e[38]!==y?(j=s.jsx(I,{children:y}),e[38]=y,e[39]=j):j=e[39];let w;e[40]!==i?(w=i("mainPanelTabs.hostingTab.dnsColValue"),e[40]=i,e[41]=w):w=e[41];let T;e[42]!==w?(T=s.jsx(I,{children:w}),e[42]=w,e[43]=T):T=e[43];let S;e[44]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx(I,{className:"w-[1%]"}),e[44]=S):S=e[44];let $;e[45]!==h||e[46]!==j||e[47]!==T?($=s.jsx(os,{children:s.jsxs(ye,{children:[h,j,T,S]})}),e[45]=h,e[46]=j,e[47]=T,e[48]=$):$=e[48];let z;e[49]!==c||e[50]!==i?(z=At.map(L=>s.jsxs(ye,{children:[s.jsx(q,{className:"font-mono text-xs align-middle",children:"A"}),s.jsx(q,{className:"font-mono text-xs align-middle",children:c}),s.jsx(q,{className:"font-mono text-xs align-middle",children:L}),s.jsx(q,{className:"text-right align-middle",children:s.jsx(lt,{value:L,t:i})})]},L)),e[49]=c,e[50]=i,e[51]=z):z=e[51];let C;e[52]!==z?(C=s.jsx(ts,{children:z}),e[52]=z,e[53]=C):C=e[53];let x;e[54]!==$||e[55]!==C?(x=s.jsxs(ss,{children:[$,C]}),e[54]=$,e[55]=C,e[56]=x):x=e[56];let P;return e[57]!==x||e[58]!==n||e[59]!==u||e[60]!==v||e[61]!==m||e[62]!==g?(P=s.jsxs("div",{className:n,children:[u,v,m,g,x]}),e[57]=x,e[58]=n,e[59]=u,e[60]=v,e[61]=m,e[62]=g,e[63]=P):P=e[63],P}function Bt(r){const e=Ee.c(6),{type:o,t:l}=r,i=o==="permanent"?"secondary":"outline";let a;e[0]!==l||e[1]!==o?(a=l(o==="permanent"?"mainPanelTabs.hostingTab.permanent":"mainPanelTabs.hostingTab.temporary"),e[0]=l,e[1]=o,e[2]=a):a=e[2];let c;return e[3]!==i||e[4]!==a?(c=s.jsx(me,{variant:i,children:a}),e[3]=i,e[4]=a,e[5]=c):c=e[5],c}function Ot(r){const e=Ee.c(180),{base:o,orgSlug:l,site:i,redirects:a,isLoading:c,error:d}=r,t=cs(),n=Ss(),[u,v]=ne.useState(!1),[m,N]=ne.useState(null),[g,p]=ne.useState(""),[h,y]=ne.useState(""),[j,w]=ne.useState("permanent"),[T,S]=ne.useState(null),[$,z]=ne.useState(null);let C;e[0]!==l||e[1]!==n||e[2]!==i?(C=()=>n.invalidateQueries({queryKey:Ue.hostingRedirects(l,i)}),e[0]=l,e[1]=n,e[2]=i,e[3]=C):C=e[3];const x=C;let P;e[4]!==o?(P=H=>rs(`${o}/redirects`,"PUT",H),e[4]=o,e[5]=P):P=e[5];let L;e[6]!==x||e[7]!==t?(L=()=>{x(),de.success(t("mainPanelTabs.hostingTab.toastRedirectSaved")),v(!1)},e[6]=x,e[7]=t,e[8]=L):L=e[8];let _;e[9]!==P||e[10]!==L?(_={mutationFn:P,onSuccess:L,onError:Mt},e[9]=P,e[10]=L,e[11]=_):_=e[11];const b=as(_);let B;e[12]!==o?(B=H=>rs(`${o}/redirects/${encodeURIComponent(H)}`,"DELETE"),e[12]=o,e[13]=B):B=e[13];let A;e[14]!==x||e[15]!==t?(A=()=>{x(),de.success(t("mainPanelTabs.hostingTab.toastRedirectDeleted")),S(null)},e[14]=x,e[15]=t,e[16]=A):A=e[16];let V;e[17]!==B||e[18]!==A?(V={mutationFn:B,onSuccess:A,onError:Ht},e[17]=B,e[18]=A,e[19]=V):V=e[19];const f=as(V);let G;e[20]===Symbol.for("react.memo_cache_sentinel")?(G=()=>{N(null),p(""),y(""),w("permanent"),v(!0)},e[20]=G):G=e[20];const Z=G;let le;e[21]===Symbol.for("react.memo_cache_sentinel")?(le=H=>{N(H.from),p(H.from),y(H.to),w(H.type==="temporary"?"temporary":"permanent"),v(!0)},e[21]=le):le=e[21];const ae=le;let ve;e[22]!==g||e[23]!==h||e[24]!==j||e[25]!==b||e[26]!==t?(ve=()=>{const H=g.trim(),Fs=h.trim();if(!H||!Fs){de.error(t("mainPanelTabs.hostingTab.errorRedirectFieldsRequired"));return}b.mutate({from:H,to:Fs,type:j})},e[22]=g,e[23]=h,e[24]=j,e[25]=b,e[26]=t,e[27]=ve):ve=e[27];const te=ve;let re;e[28]===Symbol.for("react.memo_cache_sentinel")?(re=s.jsx(qs,{className:"size-4"}),e[28]=re):re=e[28];let M;e[29]!==t?(M=t("mainPanelTabs.hostingTab.addRedirect"),e[29]=t,e[30]=M):M=e[30];let U;e[31]!==M?(U=s.jsxs(ce,{size:"sm",variant:"secondary",onClick:Z,children:[re,M]}),e[31]=M,e[32]=U):U=e[32];const X=U;let ee;e[33]!==t?(ee=t("mainPanelTabs.hostingTab.redirects"),e[33]=t,e[34]=ee):ee=e[34];const ie=a.length;let K;e[35]!==f.isPending||e[36]!==$||e[37]!==d||e[38]!==c||e[39]!==b.isPending||e[40]!==a||e[41]!==t?(K=c?s.jsx(vs,{cols:3}):d?s.jsx(Ye,{children:t("mainPanelTabs.hostingTab.redirectsError")}):a.length===0?s.jsx(Ps,{icon:s.jsx(mt,{className:"size-5"}),title:t("mainPanelTabs.hostingTab.noRedirects")}):s.jsxs(ss,{children:[s.jsx(os,{children:s.jsxs(ye,{children:[s.jsx(I,{children:t("mainPanelTabs.hostingTab.colFrom")}),s.jsx(I,{children:t("mainPanelTabs.hostingTab.colTo")}),s.jsx(I,{children:t("mainPanelTabs.hostingTab.colType")}),s.jsx(I,{className:"w-[1%]"})]})}),s.jsx(ts,{children:a.map((H,Fs)=>s.jsxs(ne.Fragment,{children:[s.jsxs(ye,{children:[s.jsx(q,{className:"font-mono text-xs align-middle",children:H.from}),s.jsx(q,{className:"font-mono text-xs text-muted-foreground max-w-[280px] truncate align-middle",children:H.to}),s.jsx(q,{className:"align-middle",children:s.jsx(Bt,{type:H.type,t})}),s.jsxs(q,{className:"text-right align-middle whitespace-nowrap",children:[s.jsx(ce,{size:"icon-sm",variant:"ghost","aria-label":t("mainPanelTabs.hostingTab.dnsSetup"),onClick:()=>z($===H.from?null:H.from),children:s.jsx(Ns,{className:"size-4"})}),s.jsx(ce,{size:"icon-sm",variant:"ghost","aria-label":t("mainPanelTabs.hostingTab.editRedirect"),onClick:()=>ae(H),disabled:b.isPending,children:s.jsx(ft,{className:"size-4"})}),s.jsx(ce,{size:"icon-sm",variant:"ghost","aria-label":t("mainPanelTabs.hostingTab.deleteRedirect"),onClick:()=>S(H.from),disabled:f.isPending,children:s.jsx(Os,{className:"size-4"})})]})]}),$===H.from&&s.jsx(ye,{children:s.jsx(q,{colSpan:4,className:"bg-muted/10",children:s.jsx(tt,{from:H.from,source:H.source,t})})})]},H.id??`${H.from}-${Fs}`))})]}),e[35]=f.isPending,e[36]=$,e[37]=d,e[38]=c,e[39]=b.isPending,e[40]=a,e[41]=t,e[42]=K):K=e[42];let J;e[43]!==m||e[44]!==t?(J=m!=null?t("mainPanelTabs.hostingTab.editRedirectTitle"):t("mainPanelTabs.hostingTab.addRedirectTitle"),e[43]=m,e[44]=t,e[45]=J):J=e[45];let se;e[46]!==J?(se=s.jsx(Hs,{children:s.jsx(Ms,{children:J})}),e[46]=J,e[47]=se):se=e[47];let W;e[48]!==t?(W=t("mainPanelTabs.hostingTab.colFrom"),e[48]=t,e[49]=W):W=e[49];let E;e[50]!==W?(E=s.jsx(hs,{htmlFor:"redirect-from",children:W}),e[50]=W,e[51]=E):E=e[51];let k;e[52]!==t?(k=t("mainPanelTabs.hostingTab.redirectFromPlaceholder"),e[52]=t,e[53]=k):k=e[53];let F;e[54]===Symbol.for("react.memo_cache_sentinel")?(F=H=>p(H.target.value),e[54]=F):F=e[54];const Q=m!=null||b.isPending;let Y;e[55]!==g||e[56]!==k||e[57]!==Q?(Y=s.jsx(ls,{id:"redirect-from",placeholder:k,value:g,onChange:F,className:"font-mono text-xs",disabled:Q}),e[55]=g,e[56]=k,e[57]=Q,e[58]=Y):Y=e[58];let D;e[59]!==E||e[60]!==Y?(D=s.jsxs("div",{className:"flex flex-col gap-2",children:[E,Y]}),e[59]=E,e[60]=Y,e[61]=D):D=e[61];let O;e[62]!==t?(O=t("mainPanelTabs.hostingTab.colTo"),e[62]=t,e[63]=O):O=e[63];let ze;e[64]!==O?(ze=s.jsx(hs,{htmlFor:"redirect-to",children:O}),e[64]=O,e[65]=ze):ze=e[65];let fe;e[66]!==t?(fe=t("mainPanelTabs.hostingTab.redirectToPlaceholder"),e[66]=t,e[67]=fe):fe=e[67];let Ne;e[68]===Symbol.for("react.memo_cache_sentinel")?(Ne=H=>y(H.target.value),e[68]=Ne):Ne=e[68];let he;e[69]!==h||e[70]!==b.isPending||e[71]!==fe?(he=s.jsx(ls,{id:"redirect-to",placeholder:fe,value:h,onChange:Ne,className:"font-mono text-xs",disabled:b.isPending}),e[69]=h,e[70]=b.isPending,e[71]=fe,e[72]=he):he=e[72];let ue;e[73]!==ze||e[74]!==he?(ue=s.jsxs("div",{className:"flex flex-col gap-2",children:[ze,he]}),e[73]=ze,e[74]=he,e[75]=ue):ue=e[75];let Le;e[76]!==t?(Le=t("mainPanelTabs.hostingTab.colType"),e[76]=t,e[77]=Le):Le=e[77];let Se;e[78]!==Le?(Se=s.jsx(hs,{children:Le}),e[78]=Le,e[79]=Se):Se=e[79];let Ce;e[80]===Symbol.for("react.memo_cache_sentinel")?(Ce=H=>w(H==="temporary"?"temporary":"permanent"),e[80]=Ce):Ce=e[80];const Fe=b.isPending;let Re;e[81]===Symbol.for("react.memo_cache_sentinel")?(Re=s.jsx(Gs,{className:"w-full",children:s.jsx(Xs,{})}),e[81]=Re):Re=e[81];let ge;e[82]!==t?(ge=t("mainPanelTabs.hostingTab.permanent"),e[82]=t,e[83]=ge):ge=e[83];let xe;e[84]!==ge?(xe=s.jsx(js,{value:"permanent",children:ge}),e[84]=ge,e[85]=xe):xe=e[85];let De;e[86]!==t?(De=t("mainPanelTabs.hostingTab.temporary"),e[86]=t,e[87]=De):De=e[87];let Ge;e[88]!==De?(Ge=s.jsx(js,{value:"temporary",children:De}),e[88]=De,e[89]=Ge):Ge=e[89];let be;e[90]!==xe||e[91]!==Ge?(be=s.jsxs(Zs,{children:[xe,Ge]}),e[90]=xe,e[91]=Ge,e[92]=be):be=e[92];let Te;e[93]!==j||e[94]!==b.isPending||e[95]!==be?(Te=s.jsxs(Ys,{value:j,onValueChange:Ce,disabled:Fe,children:[Re,be]}),e[93]=j,e[94]=b.isPending,e[95]=be,e[96]=Te):Te=e[96];let pe;e[97]!==Se||e[98]!==Te?(pe=s.jsxs("div",{className:"flex flex-col gap-2",children:[Se,Te]}),e[97]=Se,e[98]=Te,e[99]=pe):pe=e[99];let Ae;e[100]!==m||e[101]!==g||e[102]!==a||e[103]!==t?(Ae=g.trim()&&s.jsx(tt,{from:g,source:a.find(H=>H.from===m)?.source,t}),e[100]=m,e[101]=g,e[102]=a,e[103]=t,e[104]=Ae):Ae=e[104];let je;e[105]!==D||e[106]!==ue||e[107]!==pe||e[108]!==Ae?(je=s.jsxs("div",{className:"flex flex-col gap-4",children:[D,ue,pe,Ae]}),e[105]=D,e[106]=ue,e[107]=pe,e[108]=Ae,e[109]=je):je=e[109];let we;e[110]===Symbol.for("react.memo_cache_sentinel")?(we=()=>v(!1),e[110]=we):we=e[110];const Ve=b.isPending;let Pe;e[111]!==t?(Pe=t("mainPanelTabs.hostingTab.cancel"),e[111]=t,e[112]=Pe):Pe=e[112];let _e;e[113]!==b.isPending||e[114]!==Pe?(_e=s.jsx(ce,{variant:"outline",type:"button",onClick:we,disabled:Ve,children:Pe}),e[113]=b.isPending,e[114]=Pe,e[115]=_e):_e=e[115];let ke;e[116]!==g||e[117]!==h||e[118]!==b.isPending?(ke=b.isPending||!g.trim()||!h.trim(),e[116]=g,e[117]=h,e[118]=b.isPending,e[119]=ke):ke=e[119];let R;e[120]!==b.isPending||e[121]!==t?(R=b.isPending?t("mainPanelTabs.hostingTab.saving"):t("mainPanelTabs.hostingTab.save"),e[120]=b.isPending,e[121]=t,e[122]=R):R=e[122];let $e;e[123]!==te||e[124]!==ke||e[125]!==R?($e=s.jsx(ce,{type:"button",onClick:te,disabled:ke,children:R}),e[123]=te,e[124]=ke,e[125]=R,e[126]=$e):$e=e[126];let Xe;e[127]!==_e||e[128]!==$e?(Xe=s.jsxs(Ws,{children:[_e,$e]}),e[127]=_e,e[128]=$e,e[129]=Xe):Xe=e[129];let qe;e[130]!==se||e[131]!==je||e[132]!==Xe?(qe=s.jsxs(Ks,{className:"sm:max-w-md",children:[se,je,Xe]}),e[130]=se,e[131]=je,e[132]=Xe,e[133]=qe):qe=e[133];let Be;e[134]!==u||e[135]!==qe?(Be=s.jsx(Qs,{open:u,onOpenChange:v,children:qe}),e[134]=u,e[135]=qe,e[136]=Be):Be=e[136];const Ze=T!=null;let us;e[137]===Symbol.for("react.memo_cache_sentinel")?(us=H=>{H||S(null)},e[137]=us):us=e[137];let Oe;e[138]!==t?(Oe=t("mainPanelTabs.hostingTab.confirmDeleteRedirectTitle"),e[138]=t,e[139]=Oe):Oe=e[139];let He;e[140]!==Oe?(He=s.jsx(Cs,{children:Oe}),e[140]=Oe,e[141]=He):He=e[141];const es=T??"";let ns;e[142]!==t||e[143]!==es?(ns=t("mainPanelTabs.hostingTab.confirmDeleteRedirectDescription",{from:es}),e[142]=t,e[143]=es,e[144]=ns):ns=e[144];let Me;e[145]!==ns?(Me=s.jsx(Ds,{children:ns}),e[145]=ns,e[146]=Me):Me=e[146];let Ke;e[147]!==He||e[148]!==Me?(Ke=s.jsxs(ws,{children:[He,Me]}),e[147]=He,e[148]=Me,e[149]=Ke):Ke=e[149];const is=f.isPending;let Qe;e[150]!==t?(Qe=t("mainPanelTabs.hostingTab.cancel"),e[150]=t,e[151]=Qe):Qe=e[151];let Ie;e[152]!==f.isPending||e[153]!==Qe?(Ie=s.jsx($s,{disabled:is,children:Qe}),e[152]=f.isPending,e[153]=Qe,e[154]=Ie):Ie=e[154];let Je;e[155]!==f||e[156]!==T?(Je=H=>{H.preventDefault(),T&&f.mutate(T)},e[155]=f,e[156]=T,e[157]=Je):Je=e[157];const oe=f.isPending;let We;e[158]!==t?(We=t("mainPanelTabs.hostingTab.deleteRedirect"),e[158]=t,e[159]=We):We=e[159];let gs;e[160]!==f.isPending||e[161]!==Je||e[162]!==We?(gs=s.jsx(zs,{className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",onClick:Je,disabled:oe,children:We}),e[160]=f.isPending,e[161]=Je,e[162]=We,e[163]=gs):gs=e[163];let xs;e[164]!==Ie||e[165]!==gs?(xs=s.jsxs(Ls,{children:[Ie,gs]}),e[164]=Ie,e[165]=gs,e[166]=xs):xs=e[166];let bs;e[167]!==Ke||e[168]!==xs?(bs=s.jsxs(_s,{children:[Ke,xs]}),e[167]=Ke,e[168]=xs,e[169]=bs):bs=e[169];let Ts;e[170]!==Ze||e[171]!==bs?(Ts=s.jsx(ks,{open:Ze,onOpenChange:us,children:bs}),e[170]=Ze,e[171]=bs,e[172]=Ts):Ts=e[172];let Es;return e[173]!==X||e[174]!==a.length||e[175]!==ee||e[176]!==K||e[177]!==Be||e[178]!==Ts?(Es=s.jsxs(ys,{title:ee,count:ie,action:X,children:[K,Be,Ts]}),e[173]=X,e[174]=a.length,e[175]=ee,e[176]=K,e[177]=Be,e[178]=Ts,e[179]=Es):Es=e[179],Es}function Ht(r){return de.error(ds(r))}function Mt(r){return de.error(ds(r))}function nt(r){const e=Ee.c(35),{records:o,t:l}=r;if(o.length===0)return null;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(Ns,{className:"size-4 text-muted-foreground"}),e[0]=i):i=e[0];let a;e[1]!==l?(a=l("mainPanelTabs.hostingTab.dnsSetupTitle"),e[1]=l,e[2]=a):a=e[2];let c;e[3]!==a?(c=s.jsxs("div",{className:"flex items-center gap-2",children:[i,s.jsx("span",{className:"text-xs font-medium",children:a})]}),e[3]=a,e[4]=c):c=e[4];let d;e[5]!==l?(d=l("mainPanelTabs.hostingTab.dnsColType"),e[5]=l,e[6]=d):d=e[6];let t;e[7]!==d?(t=s.jsx(I,{className:"w-14",children:d}),e[7]=d,e[8]=t):t=e[8];let n;e[9]!==l?(n=l("mainPanelTabs.hostingTab.dnsColName"),e[9]=l,e[10]=n):n=e[10];let u;e[11]!==n?(u=s.jsx(I,{children:n}),e[11]=n,e[12]=u):u=e[12];let v;e[13]!==l?(v=l("mainPanelTabs.hostingTab.dnsColValue"),e[13]=l,e[14]=v):v=e[14];let m;e[15]!==v?(m=s.jsx(I,{children:v}),e[15]=v,e[16]=m):m=e[16];let N;e[17]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx(I,{className:"w-8"}),e[17]=N):N=e[17];let g;e[18]!==t||e[19]!==u||e[20]!==m?(g=s.jsx(os,{children:s.jsxs(ye,{children:[t,u,m,N]})}),e[18]=t,e[19]=u,e[20]=m,e[21]=g):g=e[21];let p;if(e[22]!==o||e[23]!==l){let w;e[25]!==l?(w=T=>s.jsxs(ye,{children:[s.jsx(q,{className:"font-mono text-xs align-top",children:T.type}),s.jsx(q,{className:"break-all font-mono text-xs align-top",children:T.name}),s.jsx(q,{className:"break-all font-mono text-xs align-top",children:T.value}),s.jsx(q,{className:"text-right align-top",children:s.jsx(lt,{value:T.value,t:l})})]},`${T.type}-${T.name}-${T.value}`),e[25]=l,e[26]=w):w=e[26],p=o.map(w),e[22]=o,e[23]=l,e[24]=p}else p=e[24];let h;e[27]!==p?(h=s.jsx(ts,{children:p}),e[27]=p,e[28]=h):h=e[28];let y;e[29]!==g||e[30]!==h?(y=s.jsxs(ss,{className:"w-full table-fixed",children:[g,h]}),e[29]=g,e[30]=h,e[31]=y):y=e[31];let j;return e[32]!==y||e[33]!==c?(j=s.jsxs("div",{className:"flex min-w-0 flex-col gap-3 rounded-md border bg-muted/30 p-3",children:[c,y]}),e[32]=y,e[33]=c,e[34]=j):j=e[34],j}function Kt(r){const e=Ee.c(10),{domain:o,t:l}=r,i=o.status??"pending";let a;e[0]!==i||e[1]!==l?(a=l(i==="active"?"mainPanelTabs.hostingTab.statusActive":i==="action-required"?"mainPanelTabs.hostingTab.statusActionRequired":"mainPanelTabs.hostingTab.statusPending"),e[0]=i,e[1]=l,e[2]=a):a=e[2];const c=a;let d;e[3]!==o.detail||e[4]!==l?(d=o.detail==="zone-not-onboarded"?l("mainPanelTabs.hostingTab.detailZoneNotOnboarded"):void 0,e[3]=o.detail,e[4]=l,e[5]=d):d=e[5];const t=d,n=i==="active"?"secondary":"outline";let u;return e[6]!==t||e[7]!==c||e[8]!==n?(u=s.jsx(me,{variant:n,title:t,children:c}),e[6]=t,e[7]=c,e[8]=n,e[9]=u):u=e[9],u}function Qt(r){const e=Ee.c(138),{base:o,orgSlug:l,site:i,domains:a,dnsTemplate:c,isLoading:d,error:t}=r,n=cs(),u=Ss(),[v,m]=ne.useState(!1),[N,g]=ne.useState(""),[p,h]=ne.useState(null),[y,j]=ne.useState(null);let w;e[0]!==l||e[1]!==u||e[2]!==i?(w=()=>u.invalidateQueries({queryKey:Ue.hostingDomains(l,i)}),e[0]=l,e[1]=u,e[2]=i,e[3]=w):w=e[3];const T=w;let S;e[4]!==o?(S=R=>rs(`${o}/domains`,"PUT",R),e[4]=o,e[5]=S):S=e[5];let $;e[6]!==T||e[7]!==n?($=()=>{T(),de.success(n("mainPanelTabs.hostingTab.toastDomainSaved")),m(!1)},e[6]=T,e[7]=n,e[8]=$):$=e[8];let z;e[9]!==S||e[10]!==$?(z={mutationFn:S,onSuccess:$,onError:Ut},e[9]=S,e[10]=$,e[11]=z):z=e[11];const C=as(z);let x;e[12]!==o?(x=R=>rs(`${o}/domains/${encodeURIComponent(R)}`,"DELETE"),e[12]=o,e[13]=x):x=e[13];let P;e[14]!==T||e[15]!==n?(P=()=>{T(),de.success(n("mainPanelTabs.hostingTab.toastDomainDeleted")),h(null)},e[14]=T,e[15]=n,e[16]=P):P=e[16];let L;e[17]!==x||e[18]!==P?(L={mutationFn:x,onSuccess:P,onError:It},e[17]=x,e[18]=P,e[19]=L):L=e[19];const _=as(L);let b;e[20]===Symbol.for("react.memo_cache_sentinel")?(b=()=>{g(""),m(!0)},e[20]=b):b=e[20];const B=b;let A;e[21]!==N||e[22]!==C||e[23]!==n?(A=()=>{const R=N.trim().toLowerCase();if(!R){de.error(n("mainPanelTabs.hostingTab.errorDomainHostRequired"));return}C.mutate({host:R})},e[21]=N,e[22]=C,e[23]=n,e[24]=A):A=e[24];const V=A;let f;if(e[25]!==c||e[26]!==N){let R;e[28]!==N?(R=$e=>({...$e,name:N.trim().toLowerCase()||$e.name}),e[28]=N,e[29]=R):R=e[29],f=c.map(R),e[25]=c,e[26]=N,e[27]=f}else f=e[27];const G=f;let Z;e[30]===Symbol.for("react.memo_cache_sentinel")?(Z=s.jsx(qs,{className:"size-4"}),e[30]=Z):Z=e[30];let le;e[31]!==n?(le=n("mainPanelTabs.hostingTab.addDomain"),e[31]=n,e[32]=le):le=e[32];let ae;e[33]!==le?(ae=s.jsxs(ce,{size:"sm",variant:"secondary",onClick:B,children:[Z,le]}),e[33]=le,e[34]=ae):ae=e[34];const ve=ae;let te;e[35]!==n?(te=n("mainPanelTabs.hostingTab.domains"),e[35]=n,e[36]=te):te=e[36];const re=a.length;let M;e[37]!==_.isPending||e[38]!==y||e[39]!==a||e[40]!==t||e[41]!==d||e[42]!==n?(M=d?s.jsx(vs,{cols:3}):t?s.jsx(Ye,{children:n("mainPanelTabs.hostingTab.domainsError")}):a.length===0?s.jsx(Ps,{icon:s.jsx(Ns,{className:"size-5"}),title:n("mainPanelTabs.hostingTab.noDomains")}):s.jsxs(ss,{children:[s.jsx(os,{children:s.jsxs(ye,{children:[s.jsx(I,{children:n("mainPanelTabs.hostingTab.colHost")}),s.jsx(I,{children:n("mainPanelTabs.hostingTab.colStatus")}),s.jsx(I,{className:"w-[1%]"})]})}),s.jsx(ts,{children:a.map((R,$e)=>s.jsxs(ne.Fragment,{children:[s.jsxs(ye,{children:[s.jsxs(q,{className:"font-mono text-xs align-middle",children:[R.host,R.canonical&&s.jsx(me,{variant:"outline",className:"ml-2",children:n("mainPanelTabs.hostingTab.canonical")})]}),s.jsx(q,{className:"align-middle",children:s.jsx(Kt,{domain:R,t:n})}),s.jsx(q,{className:"text-right align-middle whitespace-nowrap",children:!R.canonical&&s.jsxs(s.Fragment,{children:[s.jsx(ce,{size:"icon-sm",variant:"ghost","aria-label":n("mainPanelTabs.hostingTab.dnsSetup"),onClick:()=>j(y===R.host?null:R.host),children:s.jsx(Ns,{className:"size-4"})}),s.jsx(ce,{size:"icon-sm",variant:"ghost","aria-label":n("mainPanelTabs.hostingTab.deleteDomain"),onClick:()=>h(R.host),disabled:_.isPending,children:s.jsx(Os,{className:"size-4"})})]})})]}),y===R.host&&s.jsx(ye,{children:s.jsx(q,{colSpan:3,className:"bg-muted/10",children:s.jsx(nt,{records:R.dns??[],t:n})})})]},`${R.host}-${$e}`))})]}),e[37]=_.isPending,e[38]=y,e[39]=a,e[40]=t,e[41]=d,e[42]=n,e[43]=M):M=e[43];let U;e[44]!==n?(U=n("mainPanelTabs.hostingTab.addDomainTitle"),e[44]=n,e[45]=U):U=e[45];let X;e[46]!==U?(X=s.jsx(Hs,{children:s.jsx(Ms,{children:U})}),e[46]=U,e[47]=X):X=e[47];let ee;e[48]!==n?(ee=n("mainPanelTabs.hostingTab.colHost"),e[48]=n,e[49]=ee):ee=e[49];let ie;e[50]!==ee?(ie=s.jsx(hs,{htmlFor:"domain-host",children:ee}),e[50]=ee,e[51]=ie):ie=e[51];let K;e[52]!==n?(K=n("mainPanelTabs.hostingTab.domainHostPlaceholder"),e[52]=n,e[53]=K):K=e[53];let J;e[54]===Symbol.for("react.memo_cache_sentinel")?(J=R=>g(R.target.value),e[54]=J):J=e[54];let se;e[55]!==N||e[56]!==C.isPending||e[57]!==K?(se=s.jsx(ls,{id:"domain-host",placeholder:K,value:N,onChange:J,className:"font-mono text-xs",disabled:C.isPending}),e[55]=N,e[56]=C.isPending,e[57]=K,e[58]=se):se=e[58];let W;e[59]!==ie||e[60]!==se?(W=s.jsxs("div",{className:"flex flex-col gap-2",children:[ie,se]}),e[59]=ie,e[60]=se,e[61]=W):W=e[61];let E;e[62]!==N||e[63]!==G||e[64]!==n?(E=N.trim()&&s.jsx(nt,{records:G,t:n}),e[62]=N,e[63]=G,e[64]=n,e[65]=E):E=e[65];let k;e[66]!==W||e[67]!==E?(k=s.jsxs("div",{className:"flex flex-col gap-4",children:[W,E]}),e[66]=W,e[67]=E,e[68]=k):k=e[68];let F;e[69]===Symbol.for("react.memo_cache_sentinel")?(F=()=>m(!1),e[69]=F):F=e[69];const Q=C.isPending;let Y;e[70]!==n?(Y=n("mainPanelTabs.hostingTab.cancel"),e[70]=n,e[71]=Y):Y=e[71];let D;e[72]!==C.isPending||e[73]!==Y?(D=s.jsx(ce,{variant:"outline",type:"button",onClick:F,disabled:Q,children:Y}),e[72]=C.isPending,e[73]=Y,e[74]=D):D=e[74];let O;e[75]!==N||e[76]!==C.isPending?(O=C.isPending||!N.trim(),e[75]=N,e[76]=C.isPending,e[77]=O):O=e[77];let ze;e[78]!==C.isPending||e[79]!==n?(ze=C.isPending?n("mainPanelTabs.hostingTab.saving"):n("mainPanelTabs.hostingTab.save"),e[78]=C.isPending,e[79]=n,e[80]=ze):ze=e[80];let fe;e[81]!==V||e[82]!==O||e[83]!==ze?(fe=s.jsx(ce,{type:"button",onClick:V,disabled:O,children:ze}),e[81]=V,e[82]=O,e[83]=ze,e[84]=fe):fe=e[84];let Ne;e[85]!==D||e[86]!==fe?(Ne=s.jsxs(Ws,{children:[D,fe]}),e[85]=D,e[86]=fe,e[87]=Ne):Ne=e[87];let he;e[88]!==X||e[89]!==k||e[90]!==Ne?(he=s.jsxs(Ks,{className:"sm:max-w-md",children:[X,k,Ne]}),e[88]=X,e[89]=k,e[90]=Ne,e[91]=he):he=e[91];let ue;e[92]!==v||e[93]!==he?(ue=s.jsx(Qs,{open:v,onOpenChange:m,children:he}),e[92]=v,e[93]=he,e[94]=ue):ue=e[94];const Le=p!=null;let Se;e[95]===Symbol.for("react.memo_cache_sentinel")?(Se=R=>{R||h(null)},e[95]=Se):Se=e[95];let Ce;e[96]!==n?(Ce=n("mainPanelTabs.hostingTab.confirmDeleteDomainTitle"),e[96]=n,e[97]=Ce):Ce=e[97];let Fe;e[98]!==Ce?(Fe=s.jsx(Cs,{children:Ce}),e[98]=Ce,e[99]=Fe):Fe=e[99];const Re=p??"";let ge;e[100]!==n||e[101]!==Re?(ge=n("mainPanelTabs.hostingTab.confirmDeleteDomainDescription",{host:Re}),e[100]=n,e[101]=Re,e[102]=ge):ge=e[102];let xe;e[103]!==ge?(xe=s.jsx(Ds,{children:ge}),e[103]=ge,e[104]=xe):xe=e[104];let De;e[105]!==Fe||e[106]!==xe?(De=s.jsxs(ws,{children:[Fe,xe]}),e[105]=Fe,e[106]=xe,e[107]=De):De=e[107];const Ge=_.isPending;let be;e[108]!==n?(be=n("mainPanelTabs.hostingTab.cancel"),e[108]=n,e[109]=be):be=e[109];let Te;e[110]!==_.isPending||e[111]!==be?(Te=s.jsx($s,{disabled:Ge,children:be}),e[110]=_.isPending,e[111]=be,e[112]=Te):Te=e[112];let pe;e[113]!==_||e[114]!==p?(pe=R=>{R.preventDefault(),p&&_.mutate(p)},e[113]=_,e[114]=p,e[115]=pe):pe=e[115];const Ae=_.isPending;let je;e[116]!==n?(je=n("mainPanelTabs.hostingTab.deleteDomain"),e[116]=n,e[117]=je):je=e[117];let we;e[118]!==_.isPending||e[119]!==pe||e[120]!==je?(we=s.jsx(zs,{className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",onClick:pe,disabled:Ae,children:je}),e[118]=_.isPending,e[119]=pe,e[120]=je,e[121]=we):we=e[121];let Ve;e[122]!==Te||e[123]!==we?(Ve=s.jsxs(Ls,{children:[Te,we]}),e[122]=Te,e[123]=we,e[124]=Ve):Ve=e[124];let Pe;e[125]!==De||e[126]!==Ve?(Pe=s.jsxs(_s,{children:[De,Ve]}),e[125]=De,e[126]=Ve,e[127]=Pe):Pe=e[127];let _e;e[128]!==Le||e[129]!==Pe?(_e=s.jsx(ks,{open:Le,onOpenChange:Se,children:Pe}),e[128]=Le,e[129]=Pe,e[130]=_e):_e=e[130];let ke;return e[131]!==ve||e[132]!==a.length||e[133]!==te||e[134]!==M||e[135]!==ue||e[136]!==_e?(ke=s.jsxs(ys,{title:te,count:re,action:ve,children:[M,ue,_e]}),e[131]=ve,e[132]=a.length,e[133]=te,e[134]=M,e[135]=ue,e[136]=_e,e[137]=ke):ke=e[137],ke}function It(r){return de.error(ds(r))}function Ut(r){return de.error(ds(r))}function ti(r){const e=Ee.c(118),{virtualMcpId:o}=r,l=cs(),{org:i}=at(),a=bt(o),c=Tt(a),d=!!c,t=c?`/api/${i.slug}/hosting/${encodeURIComponent(c)}`:"";let n;e[0]!==t?(n=()=>fs(`${t}/deployments`),e[0]=t,e[1]=n):n=e[1];const u=ms({queryKey:Ue.hostingDeployments(i.slug,c??""),queryFn:n,enabled:d,retry:!1,staleTime:3e4});let v;e[2]!==t?(v=()=>fs(`${t}/env`),e[2]=t,e[3]=v):v=e[3];const m=ms({queryKey:Ue.hostingEnv(i.slug,c??""),queryFn:v,enabled:d,retry:!1,staleTime:3e4});let N;e[4]!==t?(N=()=>fs(`${t}/secrets`),e[4]=t,e[5]=N):N=e[5];const g=ms({queryKey:Ue.hostingSecrets(i.slug,c??""),queryFn:N,enabled:d,retry:!1,staleTime:3e4});let p;e[6]!==t?(p=()=>fs(`${t}/redirects`),e[6]=t,e[7]=p):p=e[7];const h=ms({queryKey:Ue.hostingRedirects(i.slug,c??""),queryFn:p,enabled:d,retry:!1,staleTime:3e4});let y;e[8]!==t?(y=()=>fs(`${t}/domains`),e[8]=t,e[9]=y):y=e[9];const j=ms({queryKey:Ue.hostingDomains(i.slug,c??""),queryFn:y,enabled:d,retry:!1,staleTime:3e4});if(!c){let E;e[10]===Symbol.for("react.memo_cache_sentinel")?(E=s.jsx(As,{className:"size-5"}),e[10]=E):E=e[10];let k;e[11]!==l?(k=l("mainPanelTabs.hostingTab.noSiteTitle"),e[11]=l,e[12]=k):k=e[12];let F;e[13]!==l?(F=l("mainPanelTabs.hostingTab.noSiteDescription"),e[13]=l,e[14]=F):F=e[14];let Q;return e[15]!==k||e[16]!==F?(Q=s.jsx("div",{className:"flex-1 flex items-center justify-center p-6",children:s.jsx(Ps,{icon:E,title:k,description:F})}),e[15]=k,e[16]=F,e[17]=Q):Q=e[17],Q}if(Vs(u.error)&&Vs(m.error)&&Vs(h.error)){let E;e[18]===Symbol.for("react.memo_cache_sentinel")?(E=s.jsx(As,{className:"size-5"}),e[18]=E):E=e[18];let k;e[19]!==l?(k=l("mainPanelTabs.hostingTab.notConnectedTitle"),e[19]=l,e[20]=k):k=e[20];let F;e[21]!==l?(F=l("mainPanelTabs.hostingTab.notConnectedDescription"),e[21]=l,e[22]=F):F=e[22];let Q;return e[23]!==k||e[24]!==F?(Q=s.jsx("div",{className:"flex-1 flex items-center justify-center p-6",children:s.jsx(Ps,{icon:E,title:k,description:F})}),e[23]=k,e[24]=F,e[25]=Q):Q=e[25],Q}let T,S,$,z,C,x,P,L;if(e[26]!==u.data||e[27]!==j.data||e[28]!==m.data||e[29]!==h.data||e[30]!==g.data){S=ps(u.data,"items");let E;e[39]!==m.data?(E=ps(m.data,"vars"),e[39]=m.data,e[40]=E):E=e[40],C=E;let k;e[41]!==m.data?(k=ps(m.data,"codeVars"),e[41]=m.data,e[42]=k):k=e[42],T=k;let F;e[43]!==g.data?(F=ps(g.data,"secrets"),e[43]=g.data,e[44]=F):F=e[44],P=F;let Q;e[45]!==h.data?(Q=ps(h.data,"items"),e[45]=h.data,e[46]=Q):Q=e[46],x=Q;const Y=j.data;let D;e[47]!==Y?.items?(D=Y?.items??[],e[47]=Y?.items,e[48]=D):D=e[48],z=D;let O;e[49]!==Y?.dnsTemplate?(O=Y?.dnsTemplate??[],e[49]=Y?.dnsTemplate,e[50]=O):O=e[50],$=O,L=Js(S.find(Jt)?.framework),e[26]=u.data,e[27]=j.data,e[28]=m.data,e[29]=h.data,e[30]=g.data,e[31]=T,e[32]=S,e[33]=$,e[34]=z,e[35]=C,e[36]=x,e[37]=P,e[38]=L}else T=e[31],S=e[32],$=e[33],z=e[34],C=e[35],x=e[36],P=e[37],L=e[38];const _=L,b="h-full min-h-0 overflow-y-auto",B="mx-auto flex max-w-4xl flex-col gap-6 p-6",A="flex items-start justify-between gap-4",V="flex flex-col gap-1";let f;e[51]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(As,{className:"size-[18px] text-muted-foreground"}),e[51]=f):f=e[51];let G;e[52]!==l?(G=l("mainPanelTabs.hostingTab.title"),e[52]=l,e[53]=G):G=e[53];let Z;e[54]!==G?(Z=s.jsx("h2",{className:"text-base font-semibold text-foreground",children:G}),e[54]=G,e[55]=Z):Z=e[55];let le;e[56]!==_?(le=_&&s.jsx(me,{variant:"secondary",children:_}),e[56]=_,e[57]=le):le=e[57];let ae;e[58]!==Z||e[59]!==le?(ae=s.jsxs("div",{className:"flex items-center gap-2",children:[f,Z,le]}),e[58]=Z,e[59]=le,e[60]=ae):ae=e[60];const ve="text-sm text-muted-foreground",te=l("mainPanelTabs.hostingTab.subtitle",{site:c});let re;e[61]!==te?(re=s.jsx("p",{className:ve,children:te}),e[61]=te,e[62]=re):re=e[62];let M;e[63]!==ae||e[64]!==re?(M=s.jsxs("div",{className:V,children:[ae,re]}),e[63]=ae,e[64]=re,e[65]=M):M=e[65];let U;e[66]!==t||e[67]!==i.slug||e[68]!==c?(U=s.jsx(yt,{base:t,orgSlug:i.slug,site:c}),e[66]=t,e[67]=i.slug,e[68]=c,e[69]=U):U=e[69];let X;e[70]!==M||e[71]!==U?(X=s.jsxs("div",{className:A,children:[M,U]}),e[70]=M,e[71]=U,e[72]=X):X=e[72];let ee;e[73]!==t||e[74]!==S||e[75]!==u.error||e[76]!==u.isLoading||e[77]!==d||e[78]!==i.slug||e[79]!==c?(ee=s.jsx(wt,{base:t,orgSlug:i.slug,site:c,enabled:d,deployments:S,isLoading:u.isLoading,error:u.error}),e[73]=t,e[74]=S,e[75]=u.error,e[76]=u.isLoading,e[77]=d,e[78]=i.slug,e[79]=c,e[80]=ee):ee=e[80];let ie;e[81]!==t||e[82]!==T||e[83]!==m.error||e[84]!==m.isLoading||e[85]!==C||e[86]!==i.slug||e[87]!==c?(ie=s.jsx(Lt,{base:t,orgSlug:i.slug,site:c,envVars:C,codeVars:T,isLoading:m.isLoading,error:m.error}),e[81]=t,e[82]=T,e[83]=m.error,e[84]=m.isLoading,e[85]=C,e[86]=i.slug,e[87]=c,e[88]=ie):ie=e[88];let K;e[89]!==t||e[90]!==i.slug||e[91]!==P||e[92]!==g.error||e[93]!==g.isLoading||e[94]!==c?(K=s.jsx(Et,{base:t,orgSlug:i.slug,site:c,secrets:P,isLoading:g.isLoading,error:g.error}),e[89]=t,e[90]=i.slug,e[91]=P,e[92]=g.error,e[93]=g.isLoading,e[94]=c,e[95]=K):K=e[95];let J;e[96]!==t||e[97]!==$||e[98]!==z||e[99]!==j.error||e[100]!==j.isLoading||e[101]!==i.slug||e[102]!==c?(J=s.jsx(Qt,{base:t,orgSlug:i.slug,site:c,domains:z,dnsTemplate:$,isLoading:j.isLoading,error:j.error}),e[96]=t,e[97]=$,e[98]=z,e[99]=j.error,e[100]=j.isLoading,e[101]=i.slug,e[102]=c,e[103]=J):J=e[103];let se;e[104]!==t||e[105]!==i.slug||e[106]!==x||e[107]!==h.error||e[108]!==h.isLoading||e[109]!==c?(se=s.jsx(Ot,{base:t,orgSlug:i.slug,site:c,redirects:x,isLoading:h.isLoading,error:h.error}),e[104]=t,e[105]=i.slug,e[106]=x,e[107]=h.error,e[108]=h.isLoading,e[109]=c,e[110]=se):se=e[110];let W;return e[111]!==X||e[112]!==ee||e[113]!==ie||e[114]!==K||e[115]!==J||e[116]!==se?(W=s.jsx("div",{className:b,children:s.jsxs("div",{className:B,children:[X,ee,ie,K,J,se]})}),e[111]=X,e[112]=ee,e[113]=ie,e[114]=K,e[115]=J,e[116]=se,e[117]=W):W=e[117],W}function Jt(r){return r.framework}export{ti as HostingTab};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as l,bu as ce,j as p,bx as _,br as T,bv as C,bs as le,bw as de,ee as ue,bt as fe,e4 as me}from"./index-
|
|
1
|
+
import{r as l,bu as ce,j as p,bx as _,br as T,bv as C,bs as le,bw as de,ee as ue,bt as fe,e4 as me}from"./index-Duje61Xv.js";import{e as Y}from"./select-B8LB9lO7.js";var $=["PageUp","PageDown"],X=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],G={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},M="Slider",[H,Se,pe]=le(M),[W]=fe(M,[pe]),[he,V]=W(M),q=l.forwardRef((e,t)=>{const{name:o,min:n=0,max:s=100,step:c=1,orientation:r="horizontal",disabled:a=!1,minStepsBetweenThumbs:u=0,defaultValue:w=[n],value:h,onValueChange:i=()=>{},onValueCommit:d=()=>{},inverted:v=!1,form:R,...g}=e,m=l.useRef(new Set),f=l.useRef(0),b=r==="horizontal"?ge:ve,[S=[],K]=ce({prop:h,defaultProp:w,onChange:x=>{[...m.current][f.current]?.focus(),i(x)}}),j=l.useRef(S);function B(x){const y=ye(S,x);I(x,y)}function se(x){I(x,f.current)}function ae(){const x=j.current[f.current];S[f.current]!==x&&d(S)}function I(x,y,{commit:k}={commit:!1}){const U=_e(c),z=Ce(Math.round((x-n)/c)*c+n,U),A=Y(z,[n,s]);K((E=[])=>{const P=xe(E,A,y);if(Ee(P,u*c)){f.current=P.indexOf(A);const F=String(P)!==String(E);return F&&k&&d(P),F?P:E}else return E})}return p.jsx(he,{scope:e.__scopeSlider,name:o,disabled:a,min:n,max:s,valueIndexToChangeRef:f,thumbs:m.current,values:S,orientation:r,form:R,children:p.jsx(H.Provider,{scope:e.__scopeSlider,children:p.jsx(H.Slot,{scope:e.__scopeSlider,children:p.jsx(b,{"aria-disabled":a,"data-disabled":a?"":void 0,...g,ref:t,onPointerDown:_(g.onPointerDown,()=>{a||(j.current=S)}),min:n,max:s,inverted:v,onSlideStart:a?void 0:B,onSlideMove:a?void 0:se,onSlideEnd:a?void 0:ae,onHomeKeyDown:()=>!a&&I(n,0,{commit:!0}),onEndKeyDown:()=>!a&&I(s,S.length-1,{commit:!0}),onStepKeyDown:({event:x,direction:y})=>{if(!a){const z=$.includes(x.key)||x.shiftKey&&X.includes(x.key)?10:1,A=f.current,E=S[A],P=c*z*y;I(E+P,A,{commit:!0})}}})})})})});q.displayName=M;var[J,Q]=W(M,{startEdge:"left",endEdge:"right",size:"width",direction:1}),ge=l.forwardRef((e,t)=>{const{min:o,max:n,dir:s,inverted:c,onSlideStart:r,onSlideMove:a,onSlideEnd:u,onStepKeyDown:w,...h}=e,[i,d]=l.useState(null),v=C(t,b=>d(b)),R=l.useRef(void 0),g=de(s),m=g==="ltr",f=m&&!c||!m&&c;function D(b){const S=R.current||i.getBoundingClientRect(),K=[0,S.width],B=O(K,f?[o,n]:[n,o]);return R.current=S,B(b-S.left)}return p.jsx(J,{scope:e.__scopeSlider,startEdge:f?"left":"right",endEdge:f?"right":"left",direction:f?1:-1,size:"width",children:p.jsx(Z,{dir:g,"data-orientation":"horizontal",...h,ref:v,style:{...h.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:b=>{const S=D(b.clientX);r?.(S)},onSlideMove:b=>{const S=D(b.clientX);a?.(S)},onSlideEnd:()=>{R.current=void 0,u?.()},onStepKeyDown:b=>{const K=G[f?"from-left":"from-right"].includes(b.key);w?.({event:b,direction:K?-1:1})}})})}),ve=l.forwardRef((e,t)=>{const{min:o,max:n,inverted:s,onSlideStart:c,onSlideMove:r,onSlideEnd:a,onStepKeyDown:u,...w}=e,h=l.useRef(null),i=C(t,h),d=l.useRef(void 0),v=!s;function R(g){const m=d.current||h.current.getBoundingClientRect(),f=[0,m.height],b=O(f,v?[n,o]:[o,n]);return d.current=m,b(g-m.top)}return p.jsx(J,{scope:e.__scopeSlider,startEdge:v?"bottom":"top",endEdge:v?"top":"bottom",size:"height",direction:v?1:-1,children:p.jsx(Z,{"data-orientation":"vertical",...w,ref:i,style:{...w.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:g=>{const m=R(g.clientY);c?.(m)},onSlideMove:g=>{const m=R(g.clientY);r?.(m)},onSlideEnd:()=>{d.current=void 0,a?.()},onStepKeyDown:g=>{const f=G[v?"from-bottom":"from-top"].includes(g.key);u?.({event:g,direction:f?-1:1})}})})}),Z=l.forwardRef((e,t)=>{const{__scopeSlider:o,onSlideStart:n,onSlideMove:s,onSlideEnd:c,onHomeKeyDown:r,onEndKeyDown:a,onStepKeyDown:u,...w}=e,h=V(M,o);return p.jsx(T.span,{...w,ref:t,onKeyDown:_(e.onKeyDown,i=>{i.key==="Home"?(r(i),i.preventDefault()):i.key==="End"?(a(i),i.preventDefault()):$.concat(X).includes(i.key)&&(u(i),i.preventDefault())}),onPointerDown:_(e.onPointerDown,i=>{const d=i.target;d.setPointerCapture(i.pointerId),i.preventDefault(),h.thumbs.has(d)?d.focus():n(i)}),onPointerMove:_(e.onPointerMove,i=>{i.target.hasPointerCapture(i.pointerId)&&s(i)}),onPointerUp:_(e.onPointerUp,i=>{const d=i.target;d.hasPointerCapture(i.pointerId)&&(d.releasePointerCapture(i.pointerId),c(i))})})}),ee="SliderTrack",te=l.forwardRef((e,t)=>{const{__scopeSlider:o,...n}=e,s=V(ee,o);return p.jsx(T.span,{"data-disabled":s.disabled?"":void 0,"data-orientation":s.orientation,...n,ref:t})});te.displayName=ee;var N="SliderRange",ne=l.forwardRef((e,t)=>{const{__scopeSlider:o,...n}=e,s=V(N,o),c=Q(N,o),r=l.useRef(null),a=C(t,r),u=s.values.length,w=s.values.map(d=>ie(d,s.min,s.max)),h=u>1?Math.min(...w):0,i=100-Math.max(...w);return p.jsx(T.span,{"data-orientation":s.orientation,"data-disabled":s.disabled?"":void 0,...n,ref:a,style:{...e.style,[c.startEdge]:h+"%",[c.endEdge]:i+"%"}})});ne.displayName=N;var L="SliderThumb",oe=l.forwardRef((e,t)=>{const o=Se(e.__scopeSlider),[n,s]=l.useState(null),c=C(t,a=>s(a)),r=l.useMemo(()=>n?o().findIndex(a=>a.ref.current===n):-1,[o,n]);return p.jsx(we,{...e,ref:c,index:r})}),we=l.forwardRef((e,t)=>{const{__scopeSlider:o,index:n,name:s,...c}=e,r=V(L,o),a=Q(L,o),[u,w]=l.useState(null),h=C(t,D=>w(D)),i=u?r.form||!!u.closest("form"):!0,d=ue(u),v=r.values[n],R=v===void 0?0:ie(v,r.min,r.max),g=Re(n,r.values.length),m=d?.[a.size],f=m?Pe(m,R,a.direction):0;return l.useEffect(()=>{if(u)return r.thumbs.add(u),()=>{r.thumbs.delete(u)}},[u,r.thumbs]),p.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[a.startEdge]:`calc(${R}% + ${f}px)`},children:[p.jsx(H.ItemSlot,{scope:e.__scopeSlider,children:p.jsx(T.span,{role:"slider","aria-label":e["aria-label"]||g,"aria-valuemin":r.min,"aria-valuenow":v,"aria-valuemax":r.max,"aria-orientation":r.orientation,"data-orientation":r.orientation,"data-disabled":r.disabled?"":void 0,tabIndex:r.disabled?void 0:0,...c,ref:h,style:v===void 0?{display:"none"}:e.style,onFocus:_(e.onFocus,()=>{r.valueIndexToChangeRef.current=n})})}),i&&p.jsx(re,{name:s??(r.name?r.name+(r.values.length>1?"[]":""):void 0),form:r.form,value:v},n)]})});oe.displayName=L;var be="RadioBubbleInput",re=l.forwardRef(({__scopeSlider:e,value:t,...o},n)=>{const s=l.useRef(null),c=C(s,n),r=me(t);return l.useEffect(()=>{const a=s.current;if(!a)return;const u=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(u,"value").set;if(r!==t&&h){const i=new Event("input",{bubbles:!0});h.call(a,t),a.dispatchEvent(i)}},[r,t]),p.jsx(T.input,{style:{display:"none"},...o,ref:c,defaultValue:t})});re.displayName=be;function xe(e=[],t,o){const n=[...e];return n[o]=t,n.sort((s,c)=>s-c)}function ie(e,t,o){const c=100/(o-t)*(e-t);return Y(c,[0,100])}function Re(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function ye(e,t){if(e.length===1)return 0;const o=e.map(s=>Math.abs(s-t)),n=Math.min(...o);return o.indexOf(n)}function Pe(e,t,o){const n=e/2,c=O([0,50],[0,n]);return(n-c(t)*o)*o}function De(e){return e.slice(0,-1).map((t,o)=>e[o+1]-t)}function Ee(e,t){if(t>0){const o=De(e);return Math.min(...o)>=t}return!0}function O(e,t){return o=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const n=(t[1]-t[0])/(e[1]-e[0]);return t[0]+n*(o-e[0])}}function _e(e){return(String(e).split(".")[1]||"").length}function Ce(e,t){const o=Math.pow(10,t);return Math.round(e*o)/o}var Ie=q,Ae=te,Te=ne,Ve=oe;export{Ie as R,Ae as T,Te as a,Ve as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as E,d as U,G as N,b as w,M as k,j as o,B as R,r as y,E as P,X as z,x as F,K as L,e as O,o as _,J as A,u as B,Y,O as H}from"./index-dxjbAgdh.js";import{C as K,p as j,s as G,a as V,n as W}from"./self-tool-result-DD5pnXiw.js";import{f as Q,d as $,D as q,g as J}from"./dialog-Cu56JIH4.js";import{c as X,C as Z,a as ee}from"./connect-layout-Col0jLYd.js";import{W as T,u as te,S as oe}from"./use-mcp-client-CXOd5tZp.js";import{i as D}from"./ArrowRight-BuNp61o4.js";import{u as re}from"./use-organization-settings-JhsPi-Rf.js";import{a as ie}from"./index-CFeGxYqE.js";import{C as ne}from"./chat-context-BIl0a_-x.js";import{T as ae}from"./hooks-DFJk8jbs.js";import{T as S}from"./toolbar-BO2mXtlL.js";import{S as se,M as me}from"./shell-controls-DLKaFX61.js";import"./integration-icon-CEDJP9F9.js";import"./Tool02-AemZ--z3.js";import"./agent-icon-1FhRoNmT.js";import"./AlertCircle-Bpv9M3Mo.js";import"./Tool01-C9HWfAnp.js";import"./ArrowUp-3idF8h-F.js";import"./ArrowLeft-DdhFLsvX.js";import"./TrendUp01-Dqmx1wpU.js";import"./ZoomOut-DoJ8bcep.js";import"./Users03-DhT0plpt.js";import"./CheckCircle-B9b2Ze8a.js";import"./Check-BeSUa4SA.js";import"./ChevronUp-92pPtFia.js";import"./ChevronRight-B4xjdR-V.js";import"./ChevronSelectorVertical-Bookbgd_.js";import"./DotsVertical-Cyoi6mM-.js";import"./UserSquare-DtPXmwBX.js";import"./Copy01-DZjNdwnY.js";import"./CreditCard01-ja32JXES.js";import"./Download01-BJ0Aw71K.js";import"./Settings02-BCUOna1P.js";import"./Eye-BokJBg-8.js";import"./Share07-5UuFsPQD.js";import"./GitBranch01-DjBM23NV.js";import"./Globe01-BpBePEO9.js";import"./XClose-D4Bvg4QW.js";import"./HardDrive-nnly2qPC.js";import"./Image01-C7w_5NYE.js";import"./Key01-DpcwZmv-.js";import"./Link01-CAQid5t0.js";import"./LinkExternal01-DFTJ8Aoq.js";import"./Monitor01-BslR886c.js";import"./Sun-DyvDnRb-.js";import"./Package-DXK0LLmt.js";import"./Palette-CuHE99fD.js";import"./Play-BvFpl0fO.js";import"./Plus-BQUCrYF9.js";import"./SearchLg-Bt9MbMuw.js";import"./SearchMd-DaEAX-Rt.js";import"./Shield01-DujarpiA.js";import"./Stars01-CEuw7OKB.js";import"./Trash01-Djv1nLoz.js";import"./Upload01-Z5iM-Tiz.js";import"./User01-wEgf8NoL.js";import"./Users01-l-9DDbBW.js";import"./XCircle-C-xpPFXd.js";import"./Zap-Z_UfUTMz.js";import"./extract-connection-data-C8qw7buo.js";import"./metadata-dUsYcpuu.js";import"./connection-yNLgkrwi.js";import"./provision-repo-scoped-github-connection-WQFARyHG.js";import"./form-DHeCY5Wn.js";import"./label-Dh3WRFmE.js";import"./input-D3JPMdmV.js";import"./use-debounced-value-NNOICPj0.js";import"./authenticate-and-persist-oauth-CXHQCghQ.js";import"./mcp-oauth-ByU5B1wW.js";import"./auth-BwGmO91c.js";import"./track-DXTftUee.js";import"./use-destination-route-90XzfzKs.js";import"./schema-DQy-MMoa.js";import"./task-board-DWbv4I55.js";import"./project-icon-vuMrDOh-.js";import"./use-virtual-mcp-BLkoZxZw.js";import"./github-repo-CTPv5ZM2.js";import"./thread-route-L2CtS7ly.js";import"./settings-sidebar-C-qdLxMs.js";import"./toolbar-icon-button-2CMFgKa_.js";import"./command-vpSyzNuL.js";import"./index-og4Spetx.js";import"./drawer-xpx6fUMk.js";import"./popover-CyZEnWsJ.js";import"./create-organization-dialog-B7gkkCpX.js";import"./alert-dialog-D4B8xwmj.js";import"./use-join-requests-CoN1MGnf.js";import"./avatar-D1uraqXx.js";import"./use-deployment-admin-Dq6Kse1K.js";import"./use-is-desktop-app-BNujXJc_.js";import"./invite-member-dialog-7yVBiVZs.js";import"./select-Ct-Vazyk.js";import"./textarea-BWBed-O-.js";import"./use-org-auth-client-CSFkNScF.js";import"./use-organization-roles-CY5TW73V.js";import"./task-route-C9livXIE.js";import"./collection-search-DkFPt7IO.js";import"./connection-card-DyBNdLax.js";import"./use-registry-connections-BysFk2t2.js";import"./use-connection-CrxTr3Cd.js";import"./useInfiniteQuery-tHUa8vcP.js";import"./infiniteQueryObserver-Ckg2pf_5.js";import"./retry-CErkP7V6.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./connection-slug-CITJ0kGN.js";import"./slugify-CEUa2lfQ.js";import"./connection-form-helpers-CthU9O7u.js";import"./collection-tabs-BuLa0mCq.js";import"./badge-DJqPRhkR.js";import"./use-infinite-scroll-D3GKVSmf.js";import"./useSuspenseInfiniteQuery-axnqWbbC.js";import"./use-ai-providers-BTBvY4Hc.js";import"./use-file-configs-DsqznNn1.js";import"./site-slug-uya6Wp4-.js";import"./decopilot-sse-pool-DLf4riY9.js";import"./use-decopilot-events-kkwWTwqq.js";import"./dropdown-menu-DhGKgZoF.js";import"./github-icon-BKLlhfRv.js";import"./get-initials-D-f_fDFw.js";import"./scroll-area-BkNjOKC8.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-navigate-to-agent-CB-8_p6y.js";import"./thread-intent-DWuPeyAN.js";import"./use-panel-navigate-B2TRoIaG.js";import"./source-system-tabs-CnEGUb4r.js";import"./autosend-BSYpWfil.js";import"./location-oTTXFrSF.js";function le(t){const e=E.c(21),{siteUrl:c}=t,n=U(),{org:u}=N(),a=w();let h;e[0]!==n||e[1]!==u?(h=()=>{localStorage.setItem(k.sidebarOpen(),JSON.stringify(!1));const x=X(u,T.COMMERCE_DISCOVERY(u.id));n({...x,search:{...x.search,sidepanel:!1}})},e[0]=n,e[1]=u,e[2]=h):h=e[2];const p=h;let C;e[3]===Symbol.for("react.memo_cache_sentinel")?(C=o.jsx(Q,{className:"bg-black/15 backdrop-blur-sm"}),e[3]=C):C=e[3];let s;e[4]!==a?(s=a("routes.commerceOnboarding.connectModal.dialogTitle"),e[4]=a,e[5]=s):s=e[5];let r;e[6]!==s?(r=o.jsx($,{className:"sr-only",children:s}),e[6]=s,e[7]=r):r=e[7];let m;e[8]!==p||e[9]!==a?(m=()=>o.jsxs("div",{className:"grid gap-4 p-6",children:[o.jsx("p",{className:"text-sm text-muted-foreground",children:a("routes.commerceOnboarding.connectModal.loadError")}),o.jsxs(R,{type:"button",size:"xl",className:"w-full",onClick:p,children:[a("routes.commerceOnboarding.connectModal.continueButton"),o.jsx(D,{size:18})]})]}),e[8]=p,e[9]=a,e[10]=m):m=e[10];let d;e[11]===Symbol.for("react.memo_cache_sentinel")?(d=o.jsx(K,{}),e[11]=d):d=e[11];let i;e[12]!==p||e[13]!==c?(i=o.jsx(y.Suspense,{fallback:d,children:o.jsx(ue,{siteUrlFromUrl:c,onComplete:p})}),e[12]=p,e[13]=c,e[14]=i):i=e[14];let l;e[15]!==m||e[16]!==i?(l=o.jsx(P,{fallback:m,children:i}),e[15]=m,e[16]=i,e[17]=l):l=e[17];let b;return e[18]!==r||e[19]!==l?(b=o.jsx(q,{open:!0,children:o.jsxs(J,{children:[C,o.jsxs(z,{"data-slot":"commerce-connect-modal",onEscapeKeyDown:de,onPointerDownOutside:pe,onInteractOutside:ce,className:"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 flex h-[calc(100dvh-1rem)] w-full max-w-[calc(100%-1rem)] translate-x-[-50%] translate-y-[-50%] flex-col overflow-hidden rounded-2xl border p-0 shadow-md duration-200 sm:max-w-lg md:h-auto md:max-h-[calc(100dvh-2rem)] lg:max-h-[calc(100dvh-4rem)] lg:max-w-5xl",children:[r,l]})]})}),e[18]=r,e[19]=l,e[20]=b):b=e[20],b}function ce(t){return t.preventDefault()}function pe(t){return t.preventDefault()}function de(t){return t.preventDefault()}function ue({siteUrlFromUrl:t,onComplete:e}){const c=w(),{org:n}=N(),u=T.COMMERCE_DISCOVERY(n.id),a=te({connectionId:oe,orgId:n.id,orgSlug:n.slug}),p=F({queryKey:L.commerceDiscoveryConnection(n.id,u),queryFn:async()=>{const f=await a.callTool({name:"COLLECTION_CONNECTIONS_GET",arguments:{id:u}});return j(f)},retry:!1}).data.item,C=typeof p?.metadata?.siteUrl=="string"?p.metadata.siteUrl:void 0,s=t||C,r=G(s),[m,d]=y.useState(!0),[i,l]=y.useState(null),b=O({mutationFn:async f=>j(await a.callTool({name:"COMMERCE_DISCOVERY_SETUP",arguments:{siteUrl:f}})),retry:!1}),x=O({mutationFn:async f=>j(await a.callTool({name:"COMMERCE_DISCOVERY_RUN",arguments:{siteUrl:f}})),retry:!1}),v=async()=>{l(null),_("commerce_onboarding_open_report_clicked",{domain:r??void 0,organization_id:n.id});const f=s?W(s):null;if(f?.ok)try{let g=await x.mutateAsync(f.value);if(g.triggered||(_("commerce_onboarding_run_reclaim",{domain:r??void 0,organization_id:n.id,reason:g.reason??"not_upgraded"}),await b.mutateAsync(f.value),g=await x.mutateAsync(f.value)),!g.triggered){_("commerce_onboarding_run_failed",{domain:r??void 0,organization_id:n.id,error:g.reason??"not_triggered"}),l(c("routes.commerceOnboarding.connectModal.couldNotGenerateReport"));return}}catch(g){_("commerce_onboarding_run_failed",{domain:r??void 0,organization_id:n.id,error:g instanceof Error?g.message:String(g)}),l(c("routes.commerceOnboarding.connectModal.somethingWentWrong"));return}e()},I=re("demo_mode"),M=m||I;return o.jsx(Z,{siteHost:r,footer:o.jsxs(o.Fragment,{children:[i?o.jsx("p",{className:"text-sm leading-5 text-destructive",role:"alert",children:i}):null,o.jsxs("div",{className:"flex gap-3",children:[o.jsx("div",{className:"min-w-0 flex-1",children:o.jsx(ee,{ready:M,pending:x.isPending,label:x.isPending?c("routes.commerceOnboarding.connectModal.openingReport"):c("routes.commerceOnboarding.connectModal.viewDiagnostic"),onClick:()=>{v()},children:o.jsx(D,{size:18})})}),M?null:o.jsx(R,{type:"button",variant:"secondary",size:"lg",className:"h-auto min-h-12 shrink-0 rounded-lg py-3 text-base font-medium leading-tight",disabled:x.isPending,onClick:()=>{v()},children:c("routes.commerceOnboarding.connectModal.skip")})]})]}),children:o.jsx(V,{org:n,cdConnectionId:u,siteUrl:s,onReadinessChange:d})})}function zo(){const t=E.c(14),e=A();let c;t[0]===Symbol.for("react.memo_cache_sentinel")?(c={strict:!1},t[0]=c):c=t[0];const{connect:n,siteUrl:u}=B(c),a=n==="1",h=e;let p;t[1]===Symbol.for("react.memo_cache_sentinel")?(p=o.jsx(S.Header,{className:"grid-cols-1 px-1",children:o.jsxs("div",{className:"flex w-full min-w-0 items-center gap-1",children:[o.jsx(se,{}),o.jsx(S.TogglesSlot,{}),o.jsx(S.TabsSlot,{className:"shrink-0"}),o.jsx(S.CenterSlot,{}),o.jsx(S.RightSlot,{})]})}),t[1]=p):p=t[1];const s=h&&p;let r;t[2]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx("div",{className:"relative flex-1 min-h-0 flex flex-row",children:o.jsx(Y,{children:o.jsx(H,{})})}),t[2]=r):r=t[2];let m;t[3]!==s?(m=o.jsxs("div",{className:"flex flex-col h-full min-h-0",children:[s,r]}),t[3]=s,t[4]=m):m=t[4];let d;t[5]!==e?(d=e&&o.jsx(me,{renderSidebar:fe}),t[5]=e,t[6]=d):d=t[6];let i;t[7]!==u||t[8]!==a?(i=a&&o.jsx(le,{siteUrl:u}),t[7]=u,t[8]=a,t[9]=i):i=t[9];let l;return t[10]!==m||t[11]!==d||t[12]!==i?(l=o.jsx(ae,{children:o.jsx(S.Provider,{children:o.jsxs(ne,{children:[m,d,i]})})}),t[10]=m,t[11]=d,t[12]=i,t[13]=l):l=t[13],l}function fe(t){const{onClose:e}=t;return o.jsx("div",{className:"flex h-full",children:o.jsx("div",{className:"w-full bg-sidebar flex flex-col overflow-y-auto group/sidebar","data-state":"expanded",children:o.jsx(ie,{onClose:e})})})}export{zo as default};
|
|
1
|
+
import{c as E,d as U,G as N,b as w,M as k,j as o,B as R,r as y,E as P,X as z,x as F,K as L,e as O,o as _,J as A,u as B,Y,O as H}from"./index-Duje61Xv.js";import{C as K,p as j,s as G,a as V,n as W}from"./self-tool-result-Slq8ovsm.js";import{f as Q,d as $,D as q,g as J}from"./dialog-B04kc62g.js";import{c as X,C as Z,a as ee}from"./connect-layout-Bnimxjt0.js";import{W as T,u as te,S as oe}from"./use-mcp-client-CuZUnG6t.js";import{i as D}from"./ArrowRight-CIjsALWT.js";import{u as re}from"./use-organization-settings-CKyr56Kd.js";import{a as ie}from"./index-DbGHY7ae.js";import{C as ne}from"./chat-context-BYX6I5Fd.js";import{T as ae}from"./hooks-5upKNaET.js";import{T as S}from"./toolbar-CegxR6KC.js";import{S as se,M as me}from"./shell-controls-6IQR3cDd.js";import"./integration-icon-vlzFlFo_.js";import"./Tool02-DKVecUxz.js";import"./agent-icon-BA5Q75L0.js";import"./AlertCircle-BnJSjvRr.js";import"./Tool01-q_jLTCKZ.js";import"./ArrowUp-BL_Z3gaA.js";import"./ArrowLeft-CFd_URtJ.js";import"./TrendUp01-Dc0HNJry.js";import"./ZoomOut-RWKUY6hj.js";import"./Users03-C-hy1klX.js";import"./CheckCircle-DWGenYVe.js";import"./Check-PVF6vrar.js";import"./ChevronUp-DCxC4nqn.js";import"./ChevronRight-DZ_A_9gi.js";import"./ChevronSelectorVertical-DM1bCZ5U.js";import"./DotsVertical-DpjgNoh-.js";import"./UserSquare-BoLQORca.js";import"./Copy01-DCWIjDLi.js";import"./CreditCard01-C5_XNJti.js";import"./Download01-Du8Vadan.js";import"./Settings02-HilGA_l8.js";import"./Eye-BByX4xau.js";import"./Share07-C5fLDjhG.js";import"./GitBranch01-BH6dGtWi.js";import"./Globe01-DlaG-NnI.js";import"./XClose-DljE5x9b.js";import"./HardDrive-CUdLIQ85.js";import"./Image01-7KOsFSn6.js";import"./Key01-Cgpr5iVq.js";import"./Link01-BwBpqz0z.js";import"./LinkExternal01-DEZgimKD.js";import"./Monitor01-BrWUHiMt.js";import"./Sun-C6IH4klW.js";import"./Package-Cz6cuFXC.js";import"./Palette-C62-AS5d.js";import"./Play-y6LHuyl1.js";import"./Plus-C4BLg9rY.js";import"./SearchLg-5JXlPePj.js";import"./SearchMd-iLxrs9MR.js";import"./Shield01-CM8p_GEF.js";import"./Stars01-B27dL-gW.js";import"./Trash01-DTRwSnwl.js";import"./Upload01-D7EURws9.js";import"./User01-CIoTN2qr.js";import"./Users01-DMZvF9yz.js";import"./XCircle-B2HwIa6n.js";import"./Zap-DL_o7-ob.js";import"./extract-connection-data-C-oki4yl.js";import"./metadata-dUsYcpuu.js";import"./connection-BKgK4EEG.js";import"./provision-repo-scoped-github-connection-WQFARyHG.js";import"./form-NAnvNKNh.js";import"./label-Cde57soC.js";import"./input-CnXtEqVa.js";import"./use-debounced-value-BuXRpR3Q.js";import"./authenticate-and-persist-oauth-B94cTWsZ.js";import"./mcp-oauth-86AEuQu1.js";import"./auth-SROEnleF.js";import"./track-Cplx0Mu9.js";import"./use-destination-route-CTsCUJVB.js";import"./schema-CAcwVKmY.js";import"./task-board-Cnr1TJQ1.js";import"./project-icon-BVyI4baU.js";import"./use-virtual-mcp-DFQ-_cXE.js";import"./github-repo-CTPv5ZM2.js";import"./thread-route-BQtBayab.js";import"./settings-sidebar-BiJXC2C-.js";import"./toolbar-icon-button-Bb7pbVII.js";import"./command-oMq_pqOr.js";import"./index-CHCyce6s.js";import"./drawer-Bw_O4REy.js";import"./popover-BjSCyJZK.js";import"./create-organization-dialog-rvg59v3U.js";import"./alert-dialog-B9Cqya-5.js";import"./use-join-requests-Dt0o50jr.js";import"./avatar-DCRnkiqQ.js";import"./use-deployment-admin-CrJxsiox.js";import"./use-is-desktop-app-BNujXJc_.js";import"./invite-member-dialog-BRD-sISH.js";import"./select-B8LB9lO7.js";import"./textarea-BhDs4BBF.js";import"./use-org-auth-client-9XX1c-po.js";import"./use-organization-roles-BupS39pr.js";import"./task-route-B574jwlk.js";import"./collection-search-D7Cj6HfC.js";import"./connection-card-CzNHvctS.js";import"./use-registry-connections-DhQHrKbp.js";import"./use-connection-FIA-Lf_9.js";import"./useInfiniteQuery-BWFATqB4.js";import"./infiniteQueryObserver-BtQxTAMd.js";import"./retry-CErkP7V6.js";import"./backoff-CrEUbyZT.js";import"./delay-CnY5UFtP.js";import"./connection-slug-CITJ0kGN.js";import"./slugify-CEUa2lfQ.js";import"./connection-form-helpers-DJji_Jb6.js";import"./collection-tabs-DJy9997W.js";import"./badge-DTaRDPAR.js";import"./use-infinite-scroll-DChOO1cg.js";import"./useSuspenseInfiniteQuery-BiSsymj1.js";import"./use-ai-providers-CwXo7Cny.js";import"./use-file-configs-lycL_AWx.js";import"./site-slug-uya6Wp4-.js";import"./decopilot-sse-pool-ByRDScf2.js";import"./use-decopilot-events-BRvv0b78.js";import"./dropdown-menu-EWXYU2mk.js";import"./github-icon-D2iLhKKS.js";import"./get-initials-D-f_fDFw.js";import"./scroll-area-DkGYPmJq.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-navigate-to-agent-i21QRbbT.js";import"./thread-intent-CHazkyv1.js";import"./use-panel-navigate-DlAzxK8S.js";import"./source-system-tabs-CnEGUb4r.js";import"./autosend-BYDxYeyM.js";import"./location-oTTXFrSF.js";function le(t){const e=E.c(21),{siteUrl:c}=t,n=U(),{org:u}=N(),a=w();let h;e[0]!==n||e[1]!==u?(h=()=>{localStorage.setItem(k.sidebarOpen(),JSON.stringify(!1));const x=X(u,T.COMMERCE_DISCOVERY(u.id));n({...x,search:{...x.search,sidepanel:!1}})},e[0]=n,e[1]=u,e[2]=h):h=e[2];const p=h;let C;e[3]===Symbol.for("react.memo_cache_sentinel")?(C=o.jsx(Q,{className:"bg-black/15 backdrop-blur-sm"}),e[3]=C):C=e[3];let s;e[4]!==a?(s=a("routes.commerceOnboarding.connectModal.dialogTitle"),e[4]=a,e[5]=s):s=e[5];let r;e[6]!==s?(r=o.jsx($,{className:"sr-only",children:s}),e[6]=s,e[7]=r):r=e[7];let m;e[8]!==p||e[9]!==a?(m=()=>o.jsxs("div",{className:"grid gap-4 p-6",children:[o.jsx("p",{className:"text-sm text-muted-foreground",children:a("routes.commerceOnboarding.connectModal.loadError")}),o.jsxs(R,{type:"button",size:"xl",className:"w-full",onClick:p,children:[a("routes.commerceOnboarding.connectModal.continueButton"),o.jsx(D,{size:18})]})]}),e[8]=p,e[9]=a,e[10]=m):m=e[10];let d;e[11]===Symbol.for("react.memo_cache_sentinel")?(d=o.jsx(K,{}),e[11]=d):d=e[11];let i;e[12]!==p||e[13]!==c?(i=o.jsx(y.Suspense,{fallback:d,children:o.jsx(ue,{siteUrlFromUrl:c,onComplete:p})}),e[12]=p,e[13]=c,e[14]=i):i=e[14];let l;e[15]!==m||e[16]!==i?(l=o.jsx(P,{fallback:m,children:i}),e[15]=m,e[16]=i,e[17]=l):l=e[17];let b;return e[18]!==r||e[19]!==l?(b=o.jsx(q,{open:!0,children:o.jsxs(J,{children:[C,o.jsxs(z,{"data-slot":"commerce-connect-modal",onEscapeKeyDown:de,onPointerDownOutside:pe,onInteractOutside:ce,className:"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 flex h-[calc(100dvh-1rem)] w-full max-w-[calc(100%-1rem)] translate-x-[-50%] translate-y-[-50%] flex-col overflow-hidden rounded-2xl border p-0 shadow-md duration-200 sm:max-w-lg md:h-auto md:max-h-[calc(100dvh-2rem)] lg:max-h-[calc(100dvh-4rem)] lg:max-w-5xl",children:[r,l]})]})}),e[18]=r,e[19]=l,e[20]=b):b=e[20],b}function ce(t){return t.preventDefault()}function pe(t){return t.preventDefault()}function de(t){return t.preventDefault()}function ue({siteUrlFromUrl:t,onComplete:e}){const c=w(),{org:n}=N(),u=T.COMMERCE_DISCOVERY(n.id),a=te({connectionId:oe,orgId:n.id,orgSlug:n.slug}),p=F({queryKey:L.commerceDiscoveryConnection(n.id,u),queryFn:async()=>{const f=await a.callTool({name:"COLLECTION_CONNECTIONS_GET",arguments:{id:u}});return j(f)},retry:!1}).data.item,C=typeof p?.metadata?.siteUrl=="string"?p.metadata.siteUrl:void 0,s=t||C,r=G(s),[m,d]=y.useState(!0),[i,l]=y.useState(null),b=O({mutationFn:async f=>j(await a.callTool({name:"COMMERCE_DISCOVERY_SETUP",arguments:{siteUrl:f}})),retry:!1}),x=O({mutationFn:async f=>j(await a.callTool({name:"COMMERCE_DISCOVERY_RUN",arguments:{siteUrl:f}})),retry:!1}),v=async()=>{l(null),_("commerce_onboarding_open_report_clicked",{domain:r??void 0,organization_id:n.id});const f=s?W(s):null;if(f?.ok)try{let g=await x.mutateAsync(f.value);if(g.triggered||(_("commerce_onboarding_run_reclaim",{domain:r??void 0,organization_id:n.id,reason:g.reason??"not_upgraded"}),await b.mutateAsync(f.value),g=await x.mutateAsync(f.value)),!g.triggered){_("commerce_onboarding_run_failed",{domain:r??void 0,organization_id:n.id,error:g.reason??"not_triggered"}),l(c("routes.commerceOnboarding.connectModal.couldNotGenerateReport"));return}}catch(g){_("commerce_onboarding_run_failed",{domain:r??void 0,organization_id:n.id,error:g instanceof Error?g.message:String(g)}),l(c("routes.commerceOnboarding.connectModal.somethingWentWrong"));return}e()},I=re("demo_mode"),M=m||I;return o.jsx(Z,{siteHost:r,footer:o.jsxs(o.Fragment,{children:[i?o.jsx("p",{className:"text-sm leading-5 text-destructive",role:"alert",children:i}):null,o.jsxs("div",{className:"flex gap-3",children:[o.jsx("div",{className:"min-w-0 flex-1",children:o.jsx(ee,{ready:M,pending:x.isPending,label:x.isPending?c("routes.commerceOnboarding.connectModal.openingReport"):c("routes.commerceOnboarding.connectModal.viewDiagnostic"),onClick:()=>{v()},children:o.jsx(D,{size:18})})}),M?null:o.jsx(R,{type:"button",variant:"secondary",size:"lg",className:"h-auto min-h-12 shrink-0 rounded-lg py-3 text-base font-medium leading-tight",disabled:x.isPending,onClick:()=>{v()},children:c("routes.commerceOnboarding.connectModal.skip")})]})]}),children:o.jsx(V,{org:n,cdConnectionId:u,siteUrl:s,onReadinessChange:d})})}function zo(){const t=E.c(14),e=A();let c;t[0]===Symbol.for("react.memo_cache_sentinel")?(c={strict:!1},t[0]=c):c=t[0];const{connect:n,siteUrl:u}=B(c),a=n==="1",h=e;let p;t[1]===Symbol.for("react.memo_cache_sentinel")?(p=o.jsx(S.Header,{className:"grid-cols-1 px-1",children:o.jsxs("div",{className:"flex w-full min-w-0 items-center gap-1",children:[o.jsx(se,{}),o.jsx(S.TogglesSlot,{}),o.jsx(S.TabsSlot,{className:"shrink-0"}),o.jsx(S.CenterSlot,{}),o.jsx(S.RightSlot,{})]})}),t[1]=p):p=t[1];const s=h&&p;let r;t[2]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx("div",{className:"relative flex-1 min-h-0 flex flex-row",children:o.jsx(Y,{children:o.jsx(H,{})})}),t[2]=r):r=t[2];let m;t[3]!==s?(m=o.jsxs("div",{className:"flex flex-col h-full min-h-0",children:[s,r]}),t[3]=s,t[4]=m):m=t[4];let d;t[5]!==e?(d=e&&o.jsx(me,{renderSidebar:fe}),t[5]=e,t[6]=d):d=t[6];let i;t[7]!==u||t[8]!==a?(i=a&&o.jsx(le,{siteUrl:u}),t[7]=u,t[8]=a,t[9]=i):i=t[9];let l;return t[10]!==m||t[11]!==d||t[12]!==i?(l=o.jsx(ae,{children:o.jsx(S.Provider,{children:o.jsxs(ne,{children:[m,d,i]})})}),t[10]=m,t[11]=d,t[12]=i,t[13]=l):l=t[13],l}function fe(t){const{onClose:e}=t;return o.jsx("div",{className:"flex h-full",children:o.jsx("div",{className:"w-full bg-sidebar flex flex-col overflow-y-auto group/sidebar","data-state":"expanded",children:o.jsx(ie,{onClose:e})})})}export{zo as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,bw as L,bu as B,j as d,dv as q,br as x,bv as E,dt as K,bx as C,du as w,cJ as T,bt as _,e4 as U,ee as V}from"./index-
|
|
1
|
+
import{r as s,bw as L,bu as B,j as d,dv as q,br as x,bv as E,dt as K,bx as C,du as w,cJ as T,bt as _,e4 as U,ee as V}from"./index-Duje61Xv.js";var I="Radio",[z,P]=_(I),[H,J]=z(I),k=s.forwardRef((t,c)=>{const{__scopeRadio:o,name:n,checked:e=!1,required:r,disabled:a,value:l="on",onCheck:f,form:R,...v}=t,[p,m]=s.useState(null),i=E(c,h=>m(h)),u=s.useRef(!1),b=p?R||!!p.closest("form"):!0;return d.jsxs(H,{scope:o,checked:e,disabled:a,children:[d.jsx(x.button,{type:"button",role:"radio","aria-checked":e,"data-state":A(e),"data-disabled":a?"":void 0,disabled:a,value:l,...v,ref:i,onClick:C(t.onClick,h=>{e||f?.(),b&&(u.current=h.isPropagationStopped(),u.current||h.stopPropagation())})}),b&&d.jsx(S,{control:p,bubbles:!u.current,name:n,value:l,checked:e,required:r,disabled:a,form:R,style:{transform:"translateX(-100%)"}})]})});k.displayName=I;var g="RadioIndicator",G=s.forwardRef((t,c)=>{const{__scopeRadio:o,forceMount:n,...e}=t,r=J(g,o);return d.jsx(T,{present:n||r.checked,children:d.jsx(x.span,{"data-state":A(r.checked),"data-disabled":r.disabled?"":void 0,...e,ref:c})})});G.displayName=g;var W="RadioBubbleInput",S=s.forwardRef(({__scopeRadio:t,control:c,checked:o,bubbles:n=!0,...e},r)=>{const a=s.useRef(null),l=E(a,r),f=U(o),R=V(c);return s.useEffect(()=>{const v=a.current;if(!v)return;const p=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(p,"checked").set;if(f!==o&&i){const u=new Event("click",{bubbles:n});i.call(v,o),v.dispatchEvent(u)}},[f,o,n]),d.jsx(x.input,{type:"radio","aria-hidden":!0,defaultChecked:o,...e,tabIndex:-1,ref:l,style:{...e.style,...R,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});S.displayName=W;function A(t){return t?"checked":"unchecked"}var X=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],y="RadioGroup",[Y]=_(y,[w,P]),j=w(),N=P(),[Q,Z]=Y(y),D=s.forwardRef((t,c)=>{const{__scopeRadioGroup:o,name:n,defaultValue:e,value:r,required:a=!1,disabled:l=!1,orientation:f,dir:R,loop:v=!0,onValueChange:p,...m}=t,i=j(o),u=L(R),[b,h]=B({prop:r,defaultProp:e??null,onChange:p,caller:y});return d.jsx(Q,{scope:o,name:n,required:a,disabled:l,value:b,onValueChange:h,children:d.jsx(q,{asChild:!0,...i,orientation:f,dir:u,loop:v,children:d.jsx(x.div,{role:"radiogroup","aria-required":a,"aria-orientation":f,"data-disabled":l?"":void 0,dir:u,...m,ref:c})})})});D.displayName=y;var M="RadioGroupItem",O=s.forwardRef((t,c)=>{const{__scopeRadioGroup:o,disabled:n,...e}=t,r=Z(M,o),a=r.disabled||n,l=j(o),f=N(o),R=s.useRef(null),v=E(c,R),p=r.value===e.value,m=s.useRef(!1);return s.useEffect(()=>{const i=b=>{X.includes(b.key)&&(m.current=!0)},u=()=>m.current=!1;return document.addEventListener("keydown",i),document.addEventListener("keyup",u),()=>{document.removeEventListener("keydown",i),document.removeEventListener("keyup",u)}},[]),d.jsx(K,{asChild:!0,...l,focusable:!a,active:p,children:d.jsx(k,{disabled:a,required:r.required,checked:p,...f,...e,name:r.name,ref:v,onCheck:()=>r.onValueChange(e.value),onKeyDown:C(i=>{i.key==="Enter"&&i.preventDefault()}),onFocus:C(e.onFocus,()=>{m.current&&R.current?.click()})})})});O.displayName=M;var $="RadioGroupIndicator",F=s.forwardRef((t,c)=>{const{__scopeRadioGroup:o,...n}=t,e=N(o);return d.jsx(G,{...e,...n,ref:c})});F.displayName=$;var oe=D,re=O,te=F;export{re as I,oe as R,te as a};
|