decocms 4.500.4 → 4.500.6
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/{ActiveShapeUtils-r8jaNALG.js → ActiveShapeUtils-BHdUySfQ.js} +1 -1
- package/dist/client/assets/{AlertCircle-BgwifFMG.js → AlertCircle-BBiRNTdE.js} +1 -1
- package/dist/client/assets/{AreaChart-DB6yNBzt.js → AreaChart-DzGyoHJY.js} +1 -1
- package/dist/client/assets/{ArrowLeft-BP0atRPX.js → ArrowLeft-DwPfX3sc.js} +1 -1
- package/dist/client/assets/{ArrowUp-AxzDl8Z3.js → ArrowUp-XUO4rGpO.js} +1 -1
- package/dist/client/assets/{BarChart-CwA-ga4F.js → BarChart-DAturvGe.js} +1 -1
- package/dist/client/assets/{Building02-DDW-F58b.js → Building02-CFG818HY.js} +1 -1
- package/dist/client/assets/{CategoricalChart-DVQp8mi8.js → CategoricalChart-DIdWIqvV.js} +1 -1
- package/dist/client/assets/{CheckCircle-pe1RxSse.js → CheckCircle-BZiV5rFy.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-B9RLS3HF.js → ChevronSelectorVertical-Dc4zDElk.js} +1 -1
- package/dist/client/assets/{ChevronUp-QaPEzxVx.js → ChevronUp-ZSzJudc4.js} +1 -1
- package/dist/client/assets/{Copy01-YTn6AAPK.js → Copy01-CT9uxfj6.js} +1 -1
- package/dist/client/assets/{CreditCard01-DPxzkwQY.js → CreditCard01-DCwoKma6.js} +1 -1
- package/dist/client/assets/{DotsVertical-D1KewbnO.js → DotsVertical-CcRpaMtq.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-DFDHSMqE.js → ErrorBarContext-9Kz0FTp2.js} +1 -1
- package/dist/client/assets/{Globe04-Cq4nB1G2.js → Globe04-D88PtZSB.js} +1 -1
- package/dist/client/assets/{Image01-Bpynux_N.js → Image01-DUunwh52.js} +1 -1
- package/dist/client/assets/{Key01-ByMBFx-i.js → Key01-Dy9XOW24.js} +1 -1
- package/dist/client/assets/{Link01-Zi8wbjzB.js → Link01-BDbdWLwx.js} +1 -1
- package/dist/client/assets/{LinkBroken01-tO8JEBqa.js → LinkBroken01-BFW8MxYc.js} +1 -1
- package/dist/client/assets/{Monitor01-wrmGnmsX.js → Monitor01-Cm6_ReiN.js} +1 -1
- package/dist/client/assets/{Play-W6HcQ7l_.js → Play-DFfgxv2q.js} +1 -1
- package/dist/client/assets/{Plus-BKb3EUuT.js → Plus-clvoB9-y.js} +1 -1
- package/dist/client/assets/{SearchMd-BXSC0WTH.js → SearchMd-Bg-9XsfQ.js} +1 -1
- package/dist/client/assets/{Sector-DqutoVk-.js → Sector-Byc95Y0H.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-D0kKEJuH.js → ShoppingBag01-C_AR4ZKW.js} +1 -1
- package/dist/client/assets/{Sun-CfiICDcE.js → Sun-Dzm8FpU3.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-CAC-8ZOB.js → SwitchHorizontal01-D8mpLNM6.js} +1 -1
- package/dist/client/assets/{Tool01-C9pjFqwV.js → Tool01-D8RNlK5k.js} +1 -1
- package/dist/client/assets/{Trash01-BO35Cov_.js → Trash01-ByfCfoe2.js} +1 -1
- package/dist/client/assets/{Upload01-DJFAu4Mm.js → Upload01-BOzWcBO4.js} +1 -1
- package/dist/client/assets/{User01-B7hPiYB7.js → User01-VVR3ncLA.js} +1 -1
- package/dist/client/assets/{UserSquare-CLXjlx3Y.js → UserSquare-BG_D4lBt.js} +1 -1
- package/dist/client/assets/{Users01-DxG-qkCG.js → Users01-BT5Jdc2I.js} +1 -1
- package/dist/client/assets/{XAxis-BlThxQ5X.js → XAxis-BL1uz4Hu.js} +1 -1
- package/dist/client/assets/{XClose-CMdSy1nN.js → XClose-Ck0EFhGe.js} +1 -1
- package/dist/client/assets/{ZoomOut-DLs2h_6j.js → ZoomOut-DJOChAz1.js} +1 -1
- package/dist/client/assets/{access-gate-3MCIFFcK.js → access-gate-DTjgjsQi.js} +1 -1
- package/dist/client/assets/add-connection-dialog-DhxH1mO6.js +1 -0
- package/dist/client/assets/agent-analytics-CRCDBvT9.js +2 -0
- package/dist/client/assets/agent-app-DuWlTve8.js +1 -0
- package/dist/client/assets/agent-assets-BupbbWua.js +1 -0
- package/dist/client/assets/{agent-automation-D7MtRcpp.js → agent-automation-BrF1bbQv.js} +1 -1
- package/dist/client/assets/{agent-automations-C6QL27by.js → agent-automations-Bf5oYp8h.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-3TeEngKZ.js → agent-connect-sources-CyYVygog.js} +1 -1
- package/dist/client/assets/agent-deck-DBdSSaIH.js +1 -0
- package/dist/client/assets/agent-e2e-Dc15KMWY.js +1 -0
- package/dist/client/assets/agent-experiments-Dn4D2o0f.js +1 -0
- package/dist/client/assets/agent-file-HtB1MCoL.js +1 -0
- package/dist/client/assets/agent-hosting-B16K2Ojh.js +1 -0
- package/dist/client/assets/{agent-icon-DjnOmCBc.js → agent-icon-CSrsRkkV.js} +1 -1
- package/dist/client/assets/agent-library-Dfzx9j-W.js +1 -0
- package/dist/client/assets/agent-library-file-B0MZUu0i.js +1 -0
- package/dist/client/assets/agent-monitor-BVZ6dj6l.js +1 -0
- package/dist/client/assets/{agent-overview-1r1Kovqy.js → agent-overview-Fv2Tlbaf.js} +1 -1
- package/dist/client/assets/agent-settings-E9aYbTuV.js +1 -0
- package/dist/client/assets/{agent-site-editor-AFFGIJna.js → agent-site-editor-CXtKOY2R.js} +2 -2
- package/dist/client/assets/agent-site-editor-code-C7kSpllc.js +2 -0
- package/dist/client/assets/{agent-site-editor-content-8UmzG7GR.js → agent-site-editor-content-C7FjEODf.js} +3 -3
- package/dist/client/assets/{agent-site-editor-preview-CKZy7Tmh.js → agent-site-editor-preview-BfKLwBCP.js} +3 -3
- package/dist/client/assets/agent-view-BqtBvPf5.js +1 -0
- package/dist/client/assets/{agent-view-guard-BlKWFB7P.js → agent-view-guard-CbFaNTaO.js} +1 -1
- package/dist/client/assets/{agents-list-CNENncPv.js → agents-list-rRAvXkxo.js} +1 -1
- package/dist/client/assets/{ai-providers-DurLhw5y.js → ai-providers-DxQSPA6H.js} +1 -1
- package/dist/client/assets/{alert-BavK6rpL.js → alert-BB7UNECi.js} +1 -1
- package/dist/client/assets/{alert-dialog-DLvf9XpO.js → alert-dialog-Bq1vUmcb.js} +1 -1
- package/dist/client/assets/{analytics-sections-BILOZ8xI.js → analytics-sections-D4hmenz2.js} +1 -1
- package/dist/client/assets/api-keys-C9apOrj-.js +1 -0
- package/dist/client/assets/{api-keys-DxfnV1wH.js → api-keys-CwCZzaXX.js} +1 -1
- package/dist/client/assets/app-editor-BNTMP2XY.js +1 -0
- package/dist/client/assets/{asset-utils-RL-ZiBha.js → asset-utils-D2JqsHLw.js} +1 -1
- package/dist/client/assets/{auth-C11WExuf.js → auth-Cf8kTvK7.js} +1 -1
- package/dist/client/assets/{auth-catchall-DtdWlB5Z.js → auth-catchall-CMb2pPKe.js} +1 -1
- package/dist/client/assets/{auth-entry-DzUfVYJ4.js → auth-entry-DJDQHUOg.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DdRT7pwN.js → auth-split-layout-DL8EKWzu.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-DyuZVm6i.js → authenticate-and-persist-oauth-CNIjDkAv.js} +1 -1
- package/dist/client/assets/{automation-list-row-DQWI_wwj.js → automation-list-row-CmUakn9s.js} +1 -1
- package/dist/client/assets/{automation-runs-BMd-xJ2A.js → automation-runs-CBloXkSc.js} +1 -1
- package/dist/client/assets/{automations-DEn-h47r.js → automations-Bc2qeNY9.js} +1 -1
- package/dist/client/assets/{autosend-BxzE8tXY.js → autosend-Dbvfg9pv.js} +1 -1
- package/dist/client/assets/{avatar-BQ1clUOI.js → avatar-CVhMMaTf.js} +1 -1
- package/dist/client/assets/{badge-NHL6jQ7U.js → badge-GBNejOns.js} +1 -1
- package/dist/client/assets/{block-document-Cn1hz4p_.js → block-document-L5yAxhd6.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-C7BK9yT5.js → blocks-preview-workspace-context-BeUFeWIT.js} +1 -1
- package/dist/client/assets/{blog-schema-rNr5GnCl.js → blog-schema-BIMlJLWj.js} +1 -1
- package/dist/client/assets/{board-analytics-IRwojiVB.js → board-analytics-CBArh6Zy.js} +1 -1
- package/dist/client/assets/{buckets-CbnqPAbV.js → buckets-DMjEyGOV.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-DIcVxtkz.js → build-improve-prompt-doc-DMgFOt46.js} +1 -1
- package/dist/client/assets/{calendar-wJdw6sZE.js → calendar-D4OoX9Wr.js} +1 -1
- package/dist/client/assets/{capability-load-error-BegMkJwl.js → capability-load-error-C0o_DJDN.js} +1 -1
- package/dist/client/assets/category-editor-Bc1AHLqb.js +1 -0
- package/dist/client/assets/{chart-yyGN_0NT.js → chart-DcIK_AOG.js} +1 -1
- package/dist/client/assets/{chat-context-Bdbu4aFj.js → chat-context-NYUfgJBl.js} +1 -1
- package/dist/client/assets/{chat-draft-CKhySLl4.js → chat-draft-BIT8lUsr.js} +1 -1
- package/dist/client/assets/{checkbox-B6gj5-qt.js → checkbox-1mSDcatb.js} +1 -1
- package/dist/client/assets/{choose-editor-pJnZ58-b.js → choose-editor-DSkLDSjl.js} +1 -1
- package/dist/client/assets/{claim-phase-copy-CNoIfrVp.js → claim-phase-copy-Clje3zqq.js} +1 -1
- package/dist/client/assets/{cli-auth-success-C2CP1C9i.js → cli-auth-success-DK3FztVN.js} +1 -1
- package/dist/client/assets/{client-icons-BG3NCFov.js → client-icons-C0HcvKpc.js} +1 -1
- package/dist/client/assets/{collapsible-8Gh0baiT.js → collapsible-CeMlXkLt.js} +1 -1
- package/dist/client/assets/collection-detail-CBbaNdto.js +1 -0
- package/dist/client/assets/{collection-display-button-Guyqw9do.js → collection-display-button-Cp21-jdI.js} +1 -1
- package/dist/client/assets/{collection-search-ji1JjZMn.js → collection-search-JcNHcOFg.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-CSxKmndL.js → collection-table-wrapper-DoyJbjYf.js} +1 -1
- package/dist/client/assets/{collection-tabs-C39YFQ2E.js → collection-tabs-CSZlwXCA.js} +1 -1
- package/dist/client/assets/{column-rules-vK8DsKaQ.js → column-rules-CDXH6Bu0.js} +1 -1
- package/dist/client/assets/{combobox-sJwovF14.js → combobox-B0RpAw2t.js} +1 -1
- package/dist/client/assets/{command-CloMVJTp.js → command-CJiwms5W.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-DkcpjKJu.js → companion-mcps-section--NmxcAor.js} +1 -1
- package/dist/client/assets/{config-BGvl3kPw.js → config-C1YCQZ8E.js} +1 -1
- package/dist/client/assets/{connect-BXtTpX6G.js → connect-6HWvGxM0.js} +1 -1
- package/dist/client/assets/{connect-layout-3qTDxx-Z.js → connect-layout-m9uvi79-.js} +1 -1
- package/dist/client/assets/{connection-card-VZBAZ1By.js → connection-card-CWkexnWw.js} +1 -1
- package/dist/client/assets/connection-detail-CkRea4yr.js +1 -0
- package/dist/client/assets/connection-form-helpers-W4yLfkzt.js +1 -0
- package/dist/client/assets/{connection-BKamaNd5.js → connection-pgjV95kc.js} +1 -1
- package/dist/client/assets/connections-BRM4t7Yz.js +1 -0
- package/dist/client/assets/context-BJ70LQt3.js +1 -0
- package/dist/client/assets/{context-menu-BL7ReY3s.js → context-menu-oPFsFXlL.js} +1 -1
- package/dist/client/assets/{core.esm-CAijLSig.js → core.esm-BaMzqjA4.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-CzdjGKlM.js → create-organization-dialog-TMOD9u6U.js} +1 -1
- package/dist/client/assets/{daily-pulse-Do7Bv4JX.js → daily-pulse-BO10zQ_I.js} +1 -1
- package/dist/client/assets/{device-hint-CWzU-IYs.js → device-hint-DAX5UNJH.js} +1 -1
- package/dist/client/assets/{discover-BnV5JtgA.js → discover-CTV9dsNW.js} +1 -1
- package/dist/client/assets/{domain-settings-Dp99mfI4.js → domain-settings-CYeaKhkK.js} +1 -1
- package/dist/client/assets/{drawer-CBMcEEQM.js → drawer-DWjMBwyf.js} +1 -1
- package/dist/client/assets/{editor-B4h2oI8R.js → editor-D6w2Bb1A.js} +1 -1
- package/dist/client/assets/{empty-state-YI3BPcNO.js → empty-state-BjrW4gr3.js} +1 -1
- package/dist/client/assets/{empty-state-BZTHulBK.js → empty-state-DfOpTmwf.js} +1 -1
- package/dist/client/assets/{extract-connection-data-U1HCpmI2.js → extract-connection-data-BWH-Gguq.js} +1 -1
- package/dist/client/assets/{feature-gate-Bz1_kJfU.js → feature-gate-CAHn_bYX.js} +1 -1
- package/dist/client/assets/{feature-paywall-Hzw839qS.js → feature-paywall-D3P0r-v1.js} +1 -1
- package/dist/client/assets/{file-explorer-D-yZsL4s.js → file-explorer-D8gxxm_3.js} +1 -1
- package/dist/client/assets/{file-preview-BPquMk7t.js → file-preview-Dfh2A-J9.js} +1 -1
- package/dist/client/assets/{file-share-button-CZio6GIv.js → file-share-button-BDicbalV.js} +1 -1
- package/dist/client/assets/{file-type-icon-BQzv7Wym.js → file-type-icon-hf5iGs8U.js} +1 -1
- package/dist/client/assets/flat-project-BZC_AY-t.js +1 -0
- package/dist/client/assets/{folder-icon-hFIrLwS2.js → folder-icon-BNfJeIOf.js} +1 -1
- package/dist/client/assets/{form-BRZ5DZiG.js → form-Bn1uWhLp.js} +1 -1
- package/dist/client/assets/{general-D4j81pur.js → general-CMoIUwrd.js} +1 -1
- package/dist/client/assets/home-C5N5Yasj.js +1 -0
- package/dist/client/assets/{icon-button-7qsU_2OV.js → icon-button-D9OpoKyB.js} +1 -1
- package/dist/client/assets/{index-CsiOLq0m.js → index-2uENFhiF.js} +3 -3
- package/dist/client/assets/{index-p5cxA0SC.js → index-4oHb6320.js} +1 -1
- package/dist/client/assets/{index-6SpfJF4P.js → index-BW9tBS1_.js} +1 -1
- package/dist/client/assets/index-BYDys87w.js +26 -0
- package/dist/client/assets/{index-Csp02eVI.js → index-C0M3jIYV.js} +1 -1
- package/dist/client/assets/{index-C3moojPl.js → index-CRbDzsEl.js} +2 -2
- package/dist/client/assets/{index-rN0rlunX.js → index-Cei-7zh-.js} +1 -1
- package/dist/client/assets/{index-qV0aMVfj.js → index-CijieWPb.js} +1 -1
- package/dist/client/assets/{index-BFQV-2t6.js → index-D8JxMS8j.js} +1 -1
- package/dist/client/assets/{index-lfns9uh8.js → index-DBXjCQdJ.js} +1 -1
- package/dist/client/assets/{index-DjXrdMkW.js → index-DPPcuuZa.js} +1 -1
- package/dist/client/assets/{index-DOFxzI-C.js → index-aGwRFVIr.js} +1 -1
- package/dist/client/assets/{index-BXITXB61.js → index-m-B-HtFl.js} +1 -1
- package/dist/client/assets/{index-redirect-4gzc5Gy_.js → index-redirect-oFouPYya.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-DMRptffd.js → infiniteQueryObserver-Dhuk-wHX.js} +1 -1
- package/dist/client/assets/{infra-billing-BK2k2AIQ.js → infra-billing-D-XVEkhR.js} +1 -1
- package/dist/client/assets/{input-Dy0JrrC0.js → input-C8SbKhCo.js} +1 -1
- package/dist/client/assets/{input-C8o95ZIl.js → input-XQLahzDk.js} +3 -3
- package/dist/client/assets/{integration-icon-CmzyrNbk.js → integration-icon-BELz_pOH.js} +1 -1
- package/dist/client/assets/{jira-icon-CaqntM3w.js → jira-icon-DtfD9SYH.js} +1 -1
- package/dist/client/assets/{label-C-C9Ou_x.js → label-BUw2LYOJ.js} +1 -1
- package/dist/client/assets/{layout-SMB9U0zE.js → layout-d6dVT2i7.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-DH5S5sM5.js → legacy-agents-deep-pzQxt8GU.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-CgxK0F6X.js → legacy-main-redirect-Dxx-LsCk.js} +1 -1
- package/dist/client/assets/library-C1bBtD2v.js +1 -0
- package/dist/client/assets/{library-tab-BDN7_SPX.js → library-tab-CSQBidcn.js} +1 -1
- package/dist/client/assets/{login-KvBjhXxT.js → login-C9F3Ei8y.js} +1 -1
- package/dist/client/assets/{markdown-BUXU5oD6.js → markdown-CW257Zz5.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-DyZ3_ABn.js → mcp-app-renderer-1q9SfIz-.js} +1 -1
- package/dist/client/assets/{mcp-oauth-L9MT2tEQ.js → mcp-oauth-DJzQquAH.js} +1 -1
- package/dist/client/assets/{mcp-oauth-BkcOWs3t.js → mcp-oauth-DcDGTHX8.js} +1 -1
- package/dist/client/assets/{members-DDmeZze3.js → members-Cq2hjNgQ.js} +1 -1
- package/dist/client/assets/{memory-Bz_z-OHW.js → memory-lQR7baEY.js} +1 -1
- package/dist/client/assets/{mini-report-page-Du9prRn4.js → mini-report-page-BW6etI3e.js} +1 -1
- package/dist/client/assets/{mock-board-wu3yr1Uh.js → mock-board-v0ispli3.js} +1 -1
- package/dist/client/assets/{monaco-editor-Cpw9JqW2.js → monaco-editor-BuUSistE.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-CR8Pz4AG.js → monitoring-stats-row-oudHSLAL.js} +1 -1
- package/dist/client/assets/{multi-select-d0qSjN1D.js → multi-select-C-uRGkhX.js} +1 -1
- package/dist/client/assets/{mustache-BlQTgv16.js → mustache-BISt82Zb.js} +1 -1
- package/dist/client/assets/{new-project-dialog-BLbuP-We.js → new-project-dialog-CU6GK7Hi.js} +1 -1
- package/dist/client/assets/{oauth-callback-CEt2mysn.js → oauth-callback-Bl3J_Goo.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-CrSicNp6.js → oauth-callback-ai-provider-C2G5PQSS.js} +1 -1
- package/dist/client/assets/{onboarding-ChZQ4_Cn.js → onboarding-CCQgINAK.js} +1 -1
- package/dist/client/assets/openai-conversation-Dd1mqt5t.js +3 -0
- package/dist/client/assets/{optimistic-project-sidebar-views-DBs2dIsI.js → optimistic-project-sidebar-views-6bEngMBF.js} +1 -1
- package/dist/client/assets/{organization-choice-W78BZNeA.js → organization-choice-BsLbocoH.js} +1 -1
- package/dist/client/assets/{orgs-DueEMR7Z.js → orgs-BviopEAn.js} +1 -1
- package/dist/client/assets/{page-seo-form-CY1JVNQO.js → page-seo-form-BI_Up050.js} +1 -1
- package/dist/client/assets/{pair-BL76LvR6.js → pair-gT7Vn8Gp.js} +1 -1
- package/dist/client/assets/{plan-ladder-CBREr6Ld.js → plan-ladder-eppTKAOz.js} +1 -1
- package/dist/client/assets/{popover-P9zPzqJX.js → popover-UZd_hI6l.js} +1 -1
- package/dist/client/assets/post-calendar-Cjve8Rxv.js +1 -0
- package/dist/client/assets/{post-editor-C5HYxFbJ.js → post-editor-CZ0y9t6g.js} +2 -2
- package/dist/client/assets/{preview-content-ChI0T8Cs.js → preview-content-DDkyBqjA.js} +1 -1
- package/dist/client/assets/{preview-dialog-CFiVBx33.js → preview-dialog-ClQDORRP.js} +1 -1
- package/dist/client/assets/{preview-panel-BMAYjh5J.js → preview-panel-D6Cx93Va.js} +1 -1
- package/dist/client/assets/{product-picker-dialog-DZ5LfyYE.js → product-picker-dialog-BzADIVCT.js} +1 -1
- package/dist/client/assets/{profile-DB49xk9A.js → profile-3pRJt6iK.js} +1 -1
- package/dist/client/assets/{project-app-view-Dv1i76zf.js → project-app-view-DOlvQRFJ.js} +1 -1
- package/dist/client/assets/{project-feed-CvGIQNLX.js → project-feed-DwG8xB7e.js} +1 -1
- package/dist/client/assets/{project-icon-Ds5KkwAm.js → project-icon-CgRPdhMz.js} +1 -1
- package/dist/client/assets/project-reports-D_goeZQT.js +1 -0
- package/dist/client/assets/project-tasks-DzgzriDY.js +1 -0
- package/dist/client/assets/{projects-8sHbBlFT.js → projects-DAlf21yV.js} +1 -1
- package/dist/client/assets/{projects-empty-state-IOAu-wpI.js → projects-empty-state-NpSKf9NQ.js} +1 -1
- package/dist/client/assets/{prompts-Ce0XP9qb.js → prompts-BqXStpOV.js} +1 -1
- package/dist/client/assets/record-editor-CwaNJSND.js +1 -0
- package/dist/client/assets/redirect-editor-CfZclWU6.js +1 -0
- package/dist/client/assets/reports-FtFAx270.js +1 -0
- package/dist/client/assets/{reports-onboarding-p3K1uYqw.js → reports-onboarding-DNardEjj.js} +1 -1
- package/dist/client/assets/{reports-tab-BXua1NQM.js → reports-tab-B7A5GfAR.js} +2 -2
- package/dist/client/assets/{reports-CE5LHXXr.js → reports-zibGg05d.js} +1 -1
- package/dist/client/assets/{repositories-ToQv_rZB.js → repositories-DCzfX5wT.js} +1 -1
- package/dist/client/assets/{repository-binding-CPA8-dMz.js → repository-binding-GEAUbB-O.js} +1 -1
- package/dist/client/assets/{repository-import-picker-DG4AirBH.js → repository-import-picker-CGZicTtt.js} +1 -1
- package/dist/client/assets/{repository-picker-BfnPBGTa.js → repository-picker-ipWiqqIY.js} +1 -1
- package/dist/client/assets/{require-capability-B_m0hTh2.js → require-capability-DCY-qqzS.js} +1 -1
- package/dist/client/assets/{required-auth-layout-DqtVx04D.js → required-auth-layout-B0JL0M-z.js} +1 -1
- package/dist/client/assets/{reset-password-Badkqm_7.js → reset-password-C0OP0JfY.js} +1 -1
- package/dist/client/assets/{resizable-BTJacEf8.js → resizable-CNroF4sn.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-rGkJ7QGs.js → resolve-tab-icon-Dxlq4MHo.js} +1 -1
- package/dist/client/assets/{review-settings-DFCkjKmA.js → review-settings-DUuUJ0iP.js} +1 -1
- package/dist/client/assets/{rich-text-link-control-CGRceWX2.js → rich-text-link-control-Cyib9lpp.js} +1 -1
- package/dist/client/assets/{roles-BirPgyBv.js → roles-B3QPIjlh.js} +1 -1
- package/dist/client/assets/route--gK_s8W2.js +1 -0
- package/dist/client/assets/{route-BelNzFge.js → route-Dh4tgoWv.js} +1 -1
- package/dist/client/assets/route-K7GDvkOp.js +1 -0
- package/dist/client/assets/{runnable-block-editor-BfWUQRiS.js → runnable-block-editor-cJtvApNo.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-BUwLKKqW.js → sandbox-lifecycle-context-DtkY5KHH.js} +1 -1
- package/dist/client/assets/{schema-DyDDwNs8.js → schema-DCzFPjhQ.js} +1 -1
- package/dist/client/assets/schema-DxY623qB.js +1 -0
- package/dist/client/assets/{scroll-area-BJew8KVi.js → scroll-area-BOuDQrjF.js} +1 -1
- package/dist/client/assets/{search-input-iE4YnSAW.js → search-input-DXojQXHS.js} +1 -1
- package/dist/client/assets/{search-toggle-BcxWLlTq.js → search-toggle-BHQUIlgP.js} +1 -1
- package/dist/client/assets/{secret-picker-DPGoj7h_.js → secret-picker-DghVxrjs.js} +1 -1
- package/dist/client/assets/{secrets-B8z_kU7L.js → secrets-Bw5YDwtb.js} +1 -1
- package/dist/client/assets/{sections-editor-CrDBRhDJ.js → sections-editor-zfrx_XIM.js} +2 -2
- package/dist/client/assets/{select-model-DktuB9we.js → select-model-B19lAAyT.js} +1 -1
- package/dist/client/assets/{select-DStdJ5GE.js → select-nSDsr0Zi.js} +1 -1
- package/dist/client/assets/seo-editor-Do7Fekf0.js +1 -0
- package/dist/client/assets/{separator-DjT0GNN3.js → separator-D9Lu8Cm9.js} +1 -1
- package/dist/client/assets/{settings-tab-Bp_kIMZk.js → settings-tab-TpMIkIJy.js} +1 -1
- package/dist/client/assets/{sheet-DrnvYUkv.js → sheet-Bg01hTvG.js} +1 -1
- package/dist/client/assets/{shell-layout-es79-GX2.js → shell-layout-BO31z5MQ.js} +1 -1
- package/dist/client/assets/{skills-tgcVsI6y.js → skills-Bf1PjaTY.js} +1 -1
- package/dist/client/assets/{slider-DDCTVa3c.js → slider-D1s4eRGk.js} +1 -1
- package/dist/client/assets/{sortable.esm-DMnnxTnV.js → sortable.esm-DcO5R1X-.js} +1 -1
- package/dist/client/assets/{sso-CjxHBVq1.js → sso-C7L4UDB8.js} +1 -1
- package/dist/client/assets/{suggestion-lK-gfS31.js → suggestion-D6_m0iRs.js} +1 -1
- package/dist/client/assets/{switch-Kct2nT2R.js → switch-C2mEXqfo.js} +1 -1
- package/dist/client/assets/{symbol-ConDXyHb.js → symbol-Cb89sKGf.js} +1 -1
- package/dist/client/assets/{synced-repos-BldmP6l5.js → synced-repos-uukt7jKa.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-TqQzdqzw.js → tab-icon-glyph-Cmkw2CVR.js} +1 -1
- package/dist/client/assets/{table-D3NAm7Bc.js → table-CtPELWNl.js} +1 -1
- package/dist/client/assets/{tabs-BmpbjUEc.js → tabs-D0ZapmHf.js} +1 -1
- package/dist/client/assets/{task-board-B3rwHKUr.js → task-board-Cq7KN9Yp.js} +1 -1
- package/dist/client/assets/{task-route-BuUiu92l.js → task-route-Cj_KfcXd.js} +1 -1
- package/dist/client/assets/{task-status-D3rjOgq8.js → task-status-Dl4YXdIS.js} +1 -1
- package/dist/client/assets/taskboard-analytics-DynaE5kc.js +1 -0
- package/dist/client/assets/tasks-YwCQME0_.js +1 -0
- package/dist/client/assets/{tasks-ChYbt0G7.js → tasks-ZUmpusO0.js} +1 -1
- package/dist/client/assets/{textarea-BWzL69YC.js → textarea-DKdq_MAz.js} +1 -1
- package/dist/client/assets/{thread-analytics-tujDJaK3.js → thread-analytics-Dmg-wMap.js} +1 -1
- package/dist/client/assets/{thread-button-BzqfKMW2.js → thread-button-D0vpHKhc.js} +1 -1
- package/dist/client/assets/{thread-intent-CJ-s3I0o.js → thread-intent-DTPz1weL.js} +1 -1
- package/dist/client/assets/{thread-route-GHLN4JK9.js → thread-route-COCJBhr6.js} +1 -1
- package/dist/client/assets/{thread-route-CV6SbsTq.js → thread-route-gGOzpjkp.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-D5eS4AiQ.js → thread-sheet-body-BuMvTCp6.js} +1 -1
- package/dist/client/assets/{time-range-picker-D2lucQp_.js → time-range-picker-MFuLyt2k.js} +1 -1
- package/dist/client/assets/{toggle-group-OQufBZdd.js → toggle-group-CZ2TAUmo.js} +1 -1
- package/dist/client/assets/{tool-namespace-BNEevFqW.js → tool-namespace-BsBj6Gec.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-CXgkBoho.js → toolbar-icon-button-BbfFE6qt.js} +1 -1
- package/dist/client/assets/{tooltip-B7gx1fFf.js → tooltip-3DBbiHrv.js} +1 -1
- package/dist/client/assets/{tooltipContext-C3VsicNY.js → tooltipContext-Bv4e3_jQ.js} +1 -1
- package/dist/client/assets/{track-BmECy8By.js → track-2QxiEKmh.js} +1 -1
- package/dist/client/assets/{types-D-iizAZX.js → types-DJQTaYxP.js} +1 -1
- package/dist/client/assets/{url-slug-yE9p_CBQ.js → url-slug-CVpOSHeG.js} +1 -1
- package/dist/client/assets/{usage-stats-CmZMkNV4.js → usage-stats-x-NR7rQ4.js} +1 -1
- package/dist/client/assets/{use-ai-providers-BuM6ovEv.js → use-ai-providers-scSugiQF.js} +1 -1
- package/dist/client/assets/{use-automations-LJ6ovb1E.js → use-automations-DxHm0Snl.js} +1 -1
- package/dist/client/assets/{use-autosave-CF8yQfdB.js → use-autosave-6XZ1t5rl.js} +1 -1
- package/dist/client/assets/{use-chat-layout-state-DSr0gtOa.js → use-chat-layout-state-n4Q3uYHD.js} +1 -1
- package/dist/client/assets/{use-chat-navigation-CtLOIOM3.js → use-chat-navigation-CpL4JFZX.js} +1 -1
- package/dist/client/assets/{use-clock-tick-CjMIMPxr.js → use-clock-tick-X8apRSs5.js} +1 -1
- package/dist/client/assets/{use-connect-companion-CwbSClFC.js → use-connect-companion-DejR02Br.js} +1 -1
- package/dist/client/assets/{use-connection-CYbCdCg-.js → use-connection--fjYRP_g.js} +1 -1
- package/dist/client/assets/{use-copy-DQJK1-Md.js → use-copy-DWNF2ghn.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-BUTNkXFZ.js → use-create-virtual-mcp-CSStLbyC.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-Co69xfV4.js → use-date-fns-locale-uYFiDToW.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-x27V8Nl7.js → use-debounced-autosave-NE-5LrTu.js} +1 -1
- package/dist/client/assets/{use-debounced-value-gqRwYLiP.js → use-debounced-value-Db_6wQub.js} +1 -1
- package/dist/client/assets/{use-deco-credits-BXoQO4ZL.js → use-deco-credits-DiTvJIB8.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-DTg4q8xq.js → use-decopilot-events-D14uF_Cy.js} +1 -1
- package/dist/client/assets/{use-delete-connection-AGx8DbMG.js → use-delete-connection-CJW-ymsx.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-0LqCMWJq.js → use-deployment-admin-RiMk6_Ng.js} +1 -1
- package/dist/client/assets/{use-ensure-project-folder-BJtbErXB.js → use-ensure-project-folder-CJRjmHmY.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-Cf70Sary.js → use-fast-preview-draft-url-CSEoIdMd.js} +1 -1
- package/dist/client/assets/{use-file-configs-yKzFEaLv.js → use-file-configs-BJG54sLn.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-bleQjS0V.js → use-infinite-scroll-BPxCDDTo.js} +1 -1
- package/dist/client/assets/{use-join-requests-hLy1Es2J.js → use-join-requests-CPoLxTNh.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-CnECwxGP.js → use-main-panel-tabs-Cal5VUTK.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-96a5nrqO.js → use-mcp-auth-status-CqBzsTJX.js} +1 -1
- package/dist/client/assets/{use-mcp-client-CaTe2ylT.js → use-mcp-client-BWo29jbN.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-CatolySn.js → use-mcp-prompts-BmY4-dHy.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-DSK4UhCW.js → use-mcp-tools-D9a3atY2.js} +1 -1
- package/dist/client/assets/{use-members-DpzUOwzJ.js → use-members-BsPA0Ct2.js} +1 -1
- package/dist/client/assets/{use-mobile-CW5odOpu.js → use-mobile-BcwC7VU3.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-d5laMYnC.js → use-navigate-to-agent-f1RDTOQU.js} +1 -1
- package/dist/client/assets/use-new-blocks-editor-Enk3EEXi.js +1 -0
- package/dist/client/assets/{use-open-billing-url-Cp2-WoXr.js → use-open-billing-url-B1MJm7M5.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-BK9SNEwg.js → use-org-auth-client-sBWqKZAZ.js} +1 -1
- package/dist/client/assets/{use-org-fs-CGkxTNmD.js → use-org-fs-BruBSf1P.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-DD7U_Wvq.js → use-org-repo-syncs-CzMHVaws.js} +1 -1
- package/dist/client/assets/{use-org-sso-BFc5mu2c.js → use-org-sso-DQNJJVcp.js} +1 -1
- package/dist/client/assets/{use-organization-roles-_ra6WqmV.js → use-organization-roles-BLHGg1C0.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DYBuXxZf.js → use-organization-settings-C2COOtae.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-BSNsfU5E.js → use-panel-navigate-sjPSBICL.js} +1 -1
- package/dist/client/assets/{use-project-scope-B0llZYB3.js → use-project-scope-B_oLVbNv.js} +1 -1
- package/dist/client/assets/{use-releases-CtMKqMnj.js → use-releases-BDZh8PFH.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-BUInMZkH.js → use-reports-diagnostic-bJK07n1G.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-BWuyZLCb.js → use-sandbox-events-BxpyP1-g.js} +1 -1
- package/dist/client/assets/{use-secrets-DZiT1hfy.js → use-secrets-Dut38iEG.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-C_HnXvmD.js → use-section-preview-base-7N5lxhPB.js} +1 -1
- package/dist/client/assets/{use-tags-D9KDSClM.js → use-tags-CjD7AOOq.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-BeVdM1sk.js → use-task-board-analytics-C-GLsHqS.js} +1 -1
- package/dist/client/assets/{use-task-board-events-BGOp2VgA.js → use-task-board-events-B4nYkYUb.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-CoAaBXmY.js → use-task-board-item-prs-CdlxN-Va.js} +1 -1
- package/dist/client/assets/{use-task-board-items-5GcCOG2k.js → use-task-board-items-Bx0LqpaH.js} +1 -1
- package/dist/client/assets/{use-task-metadata-BtjkeyMc.js → use-task-metadata-BULXjcEM.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-hmgxoK5f.js → use-thread-analytics-BtDukIrk.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-PMUX8yZJ.js → use-thread-outputs-CaENK2ep.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-BBVki4Du.js +1 -0
- package/dist/client/assets/{useQueries-CYxeWZY5.js → useQueries-Ij5noImS.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DP1_6mso.js +1 -0
- package/dist/client/assets/{users-D-me7s_R.js → users-Dd13UOxE.js} +1 -1
- package/dist/client/assets/{utils-B68PenDU.js → utils-CoFqD39i.js} +1 -1
- package/dist/client/assets/variant-calendar-DLgW_8Bs.js +1 -0
- package/dist/client/assets/{variant-matcher-override-cnXBxn5m.js → variant-matcher-override-BLuZbjc2.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-t5oMnsLw.js → view-mode-toggle-DGF1qVNP.js} +1 -1
- package/dist/client/assets/{virtual-mcp-EknFjHGW.js → virtual-mcp-eMBT1Rwh.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-BBIuBzhf.js → watch-sse-pool-Bb7_5bsI.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/server.js +235 -235
- package/package.json +1 -1
- package/dist/client/assets/add-connection-dialog-DNMm7BIu.js +0 -1
- package/dist/client/assets/agent-analytics-CrniEuaQ.js +0 -2
- package/dist/client/assets/agent-app-BQhyv8DF.js +0 -1
- package/dist/client/assets/agent-assets-IKAQ5dPz.js +0 -1
- package/dist/client/assets/agent-deck-f6820vT8.js +0 -1
- package/dist/client/assets/agent-e2e-BPlZoWAG.js +0 -1
- package/dist/client/assets/agent-experiments-DUjuqx9x.js +0 -1
- package/dist/client/assets/agent-file-Cx3yLMJg.js +0 -1
- package/dist/client/assets/agent-hosting-D42N4TPy.js +0 -1
- package/dist/client/assets/agent-library-BIn7dUjB.js +0 -1
- package/dist/client/assets/agent-library-file-CeiO8mwA.js +0 -1
- package/dist/client/assets/agent-monitor-mP9taLUf.js +0 -1
- package/dist/client/assets/agent-settings-klWG-4n_.js +0 -1
- package/dist/client/assets/agent-site-editor-code-C4ytTmHW.js +0 -2
- package/dist/client/assets/agent-view-Hz67HaQW.js +0 -1
- package/dist/client/assets/api-keys-Bar4CNhW.js +0 -1
- package/dist/client/assets/app-editor-BpQwl80B.js +0 -1
- package/dist/client/assets/category-editor-D92K-w8g.js +0 -1
- package/dist/client/assets/collection-detail-DgpOivN_.js +0 -1
- package/dist/client/assets/connection-detail-DmNwjYLW.js +0 -1
- package/dist/client/assets/connection-form-helpers-T_Ai4T1w.js +0 -1
- package/dist/client/assets/connections-CRhKf5Aw.js +0 -1
- package/dist/client/assets/context-DDqIS5x2.js +0 -1
- package/dist/client/assets/flat-project-xIeYzzyp.js +0 -1
- package/dist/client/assets/home-BlQ7XxUT.js +0 -1
- package/dist/client/assets/index-b34wBOnq.js +0 -26
- package/dist/client/assets/library-DxhILUSJ.js +0 -1
- package/dist/client/assets/openai-conversation-Qck38y07.js +0 -3
- package/dist/client/assets/post-calendar-JcrcT1nM.js +0 -1
- package/dist/client/assets/project-reports-Bt1ILOwc.js +0 -1
- package/dist/client/assets/project-tasks-CMbWkOn0.js +0 -1
- package/dist/client/assets/record-editor-C6Bydih8.js +0 -1
- package/dist/client/assets/redirect-editor-BH-M-WaR.js +0 -1
- package/dist/client/assets/reports-CKooFM0m.js +0 -1
- package/dist/client/assets/route-AynshQR9.js +0 -1
- package/dist/client/assets/route-Dx6968P1.js +0 -1
- package/dist/client/assets/seo-editor-Do_o2mpU.js +0 -1
- package/dist/client/assets/taskboard-analytics-DQb8UlLT.js +0 -1
- package/dist/client/assets/tasks-B-ZKkcGw.js +0 -1
- package/dist/client/assets/use-new-blocks-editor-Cz0Ycsmz.js +0 -1
- package/dist/client/assets/useInfiniteQuery-Cogq3tDA.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BbeYvXgw.js +0 -1
- package/dist/client/assets/variant-calendar-DRmc-Qwc.js +0 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{c as te,b as xe,a2 as vt,m as it,K as Ve,r as ie,j as t,b2 as Ue,u as Nt,l as Le,o as Ze,e as Fe,I as Qe,t as ge,B as be,at as wt,s as rt,v as ot,q as ct,D as mt,ah as Pt,w as St}from"./index-CRbDzsEl.js";import{C as kt}from"./index-BW9tBS1_.js";import{p as Oe,t as _t,bv as Ct,b8 as Kt}from"./agent-icon-CSrsRkkV.js";import{a as dt}from"./Copy01-CT9uxfj6.js";import{s as At}from"./Trash01-ByfCfoe2.js";import{B as Me}from"./badge-GBNejOns.js";import{C as Je}from"./checkbox-1mSDcatb.js";import{L as qe}from"./label-BUw2LYOJ.js";import{b as at,T as $t,c as Et,e as Dt,a as Ot,d as qt}from"./table-CtPELWNl.js";import{b as Lt,c as Mt,d as zt,C as Rt,a as Ft}from"./chart-DcIK_AOG.js";import{g as It,A as Vt,a as Bt,b as Ht,c as Ut,d as Qt,e as Yt,f as Wt}from"./alert-dialog-Bq1vUmcb.js";import{E as Re}from"./empty-state-BjrW4gr3.js";import{a as Gt}from"./repository-binding-GEAUbB-O.js";import{r as Jt}from"./site-slug-DebpOoQq.js";import{A as Xt,a as Zt,C as es,Y as ts}from"./AreaChart-DzGyoHJY.js";import{X as ss}from"./XAxis-BL1uz4Hu.js";import{S as as}from"./settings-tab-TpMIkIJy.js";import{c as ls}from"./use-organization-settings-C2COOtae.js";import{b as ns}from"./thread-route-gGOzpjkp.js";import"./use-mobile-BcwC7VU3.js";import"./thread-button-D0vpHKhc.js";import"./UserSquare-BG_D4lBt.js";import"./Image01-DUunwh52.js";import"./ZoomOut-DJOChAz1.js";import"./use-chat-layout-state-n4Q3uYHD.js";import"./use-file-configs-BJG54sLn.js";import"./use-panel-navigate-sjPSBICL.js";import"./use-project-scope-B_oLVbNv.js";import"./thread-intent-DTPz1weL.js";import"./use-mcp-client-BWo29jbN.js";import"./auth-Cf8kTvK7.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-Bb7_5bsI.js";import"./task-board-Cq7KN9Yp.js";import"./schema-DCzFPjhQ.js";import"./slugify-CEUa2lfQ.js";import"./sheet-Bg01hTvG.js";import"./tooltip-3DBbiHrv.js";import"./index-DPPcuuZa.js";import"./toolbar-icon-button-BbfFE6qt.js";import"./shell-layout-BO31z5MQ.js";import"./avatar-CVhMMaTf.js";import"./User01-VVR3ncLA.js";import"./Building02-CFG818HY.js";import"./XClose-Ck0EFhGe.js";import"./CheckCircle-BZiV5rFy.js";import"./Monitor01-Cm6_ReiN.js";import"./use-clock-tick-X8apRSs5.js";import"./Plus-clvoB9-y.js";import"./Tool01-D8RNlK5k.js";import"./command-CJiwms5W.js";import"./index-4oHb6320.js";import"./SearchMd-Bg-9XsfQ.js";import"./integration-icon-BELz_pOH.js";import"./LinkBroken01-BFW8MxYc.js";import"./project-icon-CgRPdhMz.js";import"./new-project-dialog-CU6GK7Hi.js";import"./ArrowLeft-DwPfX3sc.js";import"./repository-import-picker-CGZicTtt.js";import"./use-navigate-to-agent-f1RDTOQU.js";import"./repository-picker-ipWiqqIY.js";import"./useInfiniteQuery-BBVki4Du.js";import"./infiniteQueryObserver-Dhuk-wHX.js";import"./collection-search-JcNHcOFg.js";import"./ShoppingBag01-C_AR4ZKW.js";import"./use-debounced-value-Db_6wQub.js";import"./required-auth-layout-B0JL0M-z.js";import"./autosend-Dbvfg9pv.js";import"./use-org-sso-DQNJJVcp.js";import"./resizable-CNroF4sn.js";import"./icon-button-D9OpoKyB.js";import"./AlertCircle-BBiRNTdE.js";import"./ArrowUp-XUO4rGpO.js";import"./ChevronUp-ZSzJudc4.js";import"./ChevronSelectorVertical-Dc4zDElk.js";import"./CreditCard01-DCwoKma6.js";import"./DotsVertical-CcRpaMtq.js";import"./Globe04-D88PtZSB.js";import"./SwitchHorizontal01-D8mpLNM6.js";import"./Key01-Dy9XOW24.js";import"./Link01-BDbdWLwx.js";import"./Sun-Dzm8FpU3.js";import"./Play-DFfgxv2q.js";import"./Upload01-BOzWcBO4.js";import"./Users01-BT5Jdc2I.js";import"./index-DBXjCQdJ.js";import"./symbol-Cb89sKGf.js";import"./CategoricalChart-DIdWIqvV.js";import"./extract-connection-data-BWH-Gguq.js";import"./metadata-D72DunRR.js";import"./connection-pgjV95kc.js";import"./url-slug-CVpOSHeG.js";import"./chat-context-NYUfgJBl.js";import"./use-decopilot-events-D14uF_Cy.js";import"./use-ai-providers-scSugiQF.js";import"./use-chat-navigation-CpL4JFZX.js";import"./location-BjlyegC2.js";import"./build-improve-prompt-doc-DMgFOt46.js";import"./empty-state-DfOpTmwf.js";import"./use-date-fns-locale-uYFiDToW.js";import"./differenceInSeconds-C3x8sHUj.js";import"./mcp-oauth-DJzQquAH.js";import"./mcp-oauth-DcDGTHX8.js";import"./textarea-DKdq_MAz.js";import"./use-connection--fjYRP_g.js";import"./use-debounced-autosave-NE-5LrTu.js";import"./add-connection-dialog-DhxH1mO6.js";import"./connection-card-CWkexnWw.js";import"./connection-slug-CITJ0kGN.js";import"./drawer-DWjMBwyf.js";import"./form-Bn1uWhLp.js";import"./select-nSDsr0Zi.js";import"./index-BdQq_4o_.js";import"./schema-DxY623qB.js";import"./connection-form-helpers-W4yLfkzt.js";import"./authenticate-and-persist-oauth-CNIjDkAv.js";import"./collection-tabs-CSZlwXCA.js";import"./use-infinite-scroll-BPxCDDTo.js";import"./useSuspenseInfiniteQuery-DP1_6mso.js";import"./file-type-icon-hf5iGs8U.js";import"./use-org-fs-BruBSf1P.js";import"./search-input-DXojQXHS.js";import"./use-mcp-auth-status-CqBzsTJX.js";import"./types-DJQTaYxP.js";import"./use-mcp-tools-D9a3atY2.js";import"./use-mcp-prompts-BmY4-dHy.js";import"./utils-CVEq3hMx.js";import"./switch-C2mEXqfo.js";import"./popover-UZd_hI6l.js";import"./scroll-area-BOuDQrjF.js";import"./optimistic-project-sidebar-views-6bEngMBF.js";import"./virtual-mcp-eMBT1Rwh.js";import"./sandbox-url-D3mC8qhT.js";import"./secret-picker-DghVxrjs.js";import"./use-secrets-Dut38iEG.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./serial-task-queue-CGOeQgpr.js";const ft=[{key:"core",labelKey:"mainPanelTabs.analyticsTab.moduleCore",hintKey:"mainPanelTabs.analyticsTab.moduleCoreHint"},{key:"commerce",labelKey:"mainPanelTabs.analyticsTab.moduleCommerce",hintKey:"mainPanelTabs.analyticsTab.moduleCommerceHint"},{key:"vitals",labelKey:"mainPanelTabs.analyticsTab.moduleVitals",hintKey:"mainPanelTabs.analyticsTab.moduleVitalsHint"},{key:"errors",labelKey:"mainPanelTabs.analyticsTab.moduleErrors",hintKey:"mainPanelTabs.analyticsTab.moduleErrorsHint"},{key:"engagement",labelKey:"mainPanelTabs.analyticsTab.moduleEngagement",hintKey:"mainPanelTabs.analyticsTab.moduleEngagementHint"}],is=[{view:"live",labelKey:"mainPanelTabs.analyticsTab.viewLive"},{view:"overview",labelKey:"mainPanelTabs.analyticsTab.viewOverview"},{view:"behaviour",labelKey:"mainPanelTabs.analyticsTab.viewBehaviour"},{view:"events",labelKey:"mainPanelTabs.analyticsTab.viewEvents"},{view:"errors",labelKey:"mainPanelTabs.analyticsTab.viewErrors"},{view:"experiments",labelKey:"mainPanelTabs.analyticsTab.viewExperiments"},{view:"vitals",labelKey:"mainPanelTabs.analyticsTab.viewVitals"},{view:"quality",labelKey:"mainPanelTabs.analyticsTab.viewQuality"},{view:"usage",labelKey:"mainPanelTabs.analyticsTab.viewUsage"}],rs=["5m","15m","30m","1h","24h","7d","30d"],os=new Set(["usageScope","currency","currencies","dimensions","operators","goals","goal","range","site","view","propKey","filters","usageExplained"]),ut=/^(t|ts|bucket|minute|min|hour|day|date)$/i;class et extends Error{constructor(e,i){super(e),this.status=i}status}function cs(n){return n instanceof et&&n.status===401}function xt(n){const e=n instanceof Error?n.message.toLowerCase():"";return e.includes("not_configured")||e.includes("not configured")}function Be(n){return n instanceof Error?n.message:String(n)}function Te(n){const e=n.replace(/([a-z\d])([A-Z])/g,"$1 $2").replace(/[_-]+/g," ").trim();return e.charAt(0).toUpperCase()+e.slice(1)}function Ye(n){const e=typeof n=="number"?n:Number(n);return Number.isFinite(e)?new Intl.NumberFormat().format(e):"—"}function We(n){if(n==null||n==="")return"—";if(Array.isArray(n))return n.length?n.map(e=>String(e)).join(", "):"—";if(typeof n=="number")return Ye(n);if(typeof n=="object")try{return JSON.stringify(n)}catch{return String(n)}return String(n)}function ms(n){return n===null||["string","number","boolean"].includes(typeof n)}async function pt(n){const e=await fetch(n),i=await e.json().catch(()=>({}));if(!e.ok){const a=i&&typeof i=="object"&&"error"in i?String(i.error):`request failed (${e.status})`;throw new et(a,e.status)}return i}async function Ie(n,e,i){const a=await fetch(n,{method:e,headers:i!==void 0?{"Content-Type":"application/json"}:{},body:i!==void 0?JSON.stringify(i):void 0}),c=await a.json().catch(()=>({}));if(!a.ok){const o=c&&typeof c=="object"&&"error"in c?String(c.error):`request failed (${a.status})`;throw new et(o,a.status)}return c}function he(n){const e=te.c(12),{title:i,action:a,children:c}=n;let o;e[0]!==i?(o=t.jsx("h3",{className:"text-sm font-medium text-foreground",children:i}),e[0]=i,e[1]=o):o=e[1];let s;e[2]!==a?(s=a&&t.jsx("div",{className:"ml-auto",children:a}),e[2]=a,e[3]=s):s=e[3];let l;e[4]!==o||e[5]!==s?(l=t.jsxs("header",{className:"flex items-center gap-2 px-4 py-3 border-b border-border",children:[o,s]}),e[4]=o,e[5]=s,e[6]=l):l=e[6];let r;e[7]!==c?(r=t.jsx("div",{className:"p-4",children:c}),e[7]=c,e[8]=r):r=e[8];let m;return e[9]!==l||e[10]!==r?(m=t.jsxs("section",{className:"rounded-xl border border-border bg-card overflow-hidden",children:[l,r]}),e[9]=l,e[10]=r,e[11]=m):m=e[11],m}function Ge(n,e){if(e==null)return"—";const i=Number(e);if(!Number.isFinite(i))return We(e);if(/(_s$|duration|seconds)/i.test(n)){const a=Math.floor(i/60);return a?`${a}m ${Math.round(i%60)}s`:`${Math.round(i)}s`}return/(pct|rate|bounce|ratio)/i.test(n)?`${Math.round(i)}%`:Ye(i)}const ds={kpis:"Overview",series:"Traffic over time",funnel:"Funnel",sources:"Top sources",pages:"Top pages",entryPages:"Entry pages",exitPages:"Exit pages",devices:"Devices",os:"Operating systems",browser:"Browsers",countries:"Countries",regions:"Regions",cities:"Cities",channels:"Channels",channelConversion:"Channel conversion",campaigns:"Campaigns",campaignNames:"Campaign names",attribution:"Attribution",products:"Top products",events:"Events",errors:"Errors",propKeys:"Property keys",propValues:"Property values",scrollDepth:"Scroll depth",searches:"Site searches",outbound:"Outbound links",downloads:"Downloads",variants:"Experiment variants",vitals:"Web vitals",vitalsByPage:"Vitals by page",liveVisitors:"Live visitors",livePages:"Active pages",liveFeed:"Live feed",liveByMinute:"Visitors per minute",usage:"Usage",usageTrend:"Usage over time",usageSites:"Usage by site"},lt=["pages","sources","channels","devices","browser","os","countries","regions","cities","entryPages","exitPages","campaigns","products","events","errors"];function bt(n){return ds[n]??Te(n)}function fs(n){if(n.length<4)return null;const e=Math.floor(n.length/2),i=n.slice(0,e).reduce((c,o)=>c+o,0),a=n.slice(e).reduce((c,o)=>c+o,0);return i===0?null:(a-i)/i*100}function us(n){const e=te.c(8),{pct:i,goodDown:a}=n,c=i>=0,s=(a?!c:c)?"text-[var(--chart-2,#16a34a)]":"text-destructive";let l;e[0]!==s?(l=Le("text-xs font-medium tabular-nums",s),e[0]=s,e[1]=l):l=e[1];const r=c?"↑":"↓";let m;e[2]!==i?(m=Math.abs(Math.round(i)),e[2]=i,e[3]=m):m=e[3];let d;return e[4]!==l||e[5]!==r||e[6]!==m?(d=t.jsxs("span",{className:l,children:[r,m,"%"]}),e[4]=l,e[5]=r,e[6]=m,e[7]=d):d=e[7],d}const xs=new Set(["min_sampling","sessions_built"]);function ps(n){const e=te.c(2),{row:i}=n;let a;if(e[0]!==i){const c=Object.entries(i).filter(gs);a=t.jsx("div",{className:"grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-4",children:c.map(bs)}),e[0]=i,e[1]=a}else a=e[1];return a}function bs(n){const[e,i]=n;return t.jsxs("div",{className:"flex flex-col gap-1.5 rounded-xl border border-border bg-card p-4",children:[t.jsx("span",{className:"text-[11px] font-medium uppercase tracking-wide text-muted-foreground",children:Te(e)}),t.jsx("span",{className:"text-3xl font-semibold leading-none text-foreground tabular-nums",children:Ge(e,i)})]},e)}function gs(n){const[e,i]=n;return(typeof i=="number"||i===null)&&!xs.has(e)}function hs(n){if(!Number.isFinite(n))return"";const e=Math.abs(n);return e>=1e6?`${(n/1e6).toFixed(1)}M`:e>=1e3?`${(n/1e3).toFixed(1)}k`:String(n)}function gt(n){const e=te.c(39),{rows:i,timeKey:a,metricKeys:c}=n;let o,s,l,r,m,d,u,b,v,p,g,h,T;if(e[0]!==c||e[1]!==i||e[2]!==a){l=c.filter(Boolean).slice(0,4);const j=l.map(js),N=i.map(S=>{const w={label:String(S[a]??"")};for(const P of l)w[P]=Number(S[P])||0;return w}),_=Object.fromEntries(l.map((S,w)=>[S,{label:Te(S),color:j[w]}]));s=zt,T=_,m="h-64 w-full",o=Zt,r=N,e[16]===Symbol.for("react.memo_cache_sentinel")?(d={top:8,right:-8,bottom:8,left:0},e[16]=d):d=e[16],u=t.jsx("defs",{children:l.map((S,w)=>t.jsxs("linearGradient",{id:`dq-grad-${S}`,x1:"0",y1:"0",x2:"0",y2:"1",children:[t.jsx("stop",{offset:"0%",stopColor:j[w],stopOpacity:.2}),t.jsx("stop",{offset:"100%",stopColor:j[w],stopOpacity:0})]},S))}),e[17]===Symbol.for("react.memo_cache_sentinel")?(b=t.jsx(es,{strokeDasharray:"4 4",stroke:"var(--border)",strokeOpacity:.5,vertical:!1}),e[17]=b):b=e[17],e[18]===Symbol.for("react.memo_cache_sentinel")?(v=t.jsx(ss,{dataKey:"label",axisLine:!1,tickLine:!1,tick:{fontSize:11,fill:"var(--muted-foreground)",opacity:.7},tickMargin:8,minTickGap:40,interval:"preserveStartEnd",tickFormatter:ys}),e[18]=v):v=e[18],e[19]===Symbol.for("react.memo_cache_sentinel")?(p=t.jsx(ts,{orientation:"right",axisLine:!1,tickLine:!1,tick:{fontSize:11,fill:"var(--muted-foreground)",opacity:.7},tickFormatter:hs,width:40,tickCount:5}),e[19]=p):p=e[19],e[20]===Symbol.for("react.memo_cache_sentinel")?(g=t.jsx(Rt,{content:t.jsx(Ft,{indicator:"line"})}),e[20]=g):g=e[20],h=l.map((S,w)=>t.jsx(Xt,{type:"linear",dataKey:S,stroke:j[w],strokeWidth:2,fill:`url(#dq-grad-${S})`,dot:!1,activeDot:{r:4,fill:j[w],stroke:"var(--background)",strokeWidth:2},animationDuration:300},S)),e[0]=c,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=l,e[6]=r,e[7]=m,e[8]=d,e[9]=u,e[10]=b,e[11]=v,e[12]=p,e[13]=g,e[14]=h,e[15]=T}else o=e[3],s=e[4],l=e[5],r=e[6],m=e[7],d=e[8],u=e[9],b=e[10],v=e[11],p=e[12],g=e[13],h=e[14],T=e[15];let x;e[21]!==l.length?(x=l.length>1&&t.jsx(Lt,{content:t.jsx(Mt,{})}),e[21]=l.length,e[22]=x):x=e[22];let y;e[23]!==o||e[24]!==r||e[25]!==x||e[26]!==d||e[27]!==u||e[28]!==b||e[29]!==v||e[30]!==p||e[31]!==g||e[32]!==h?(y=t.jsxs(o,{data:r,margin:d,children:[u,b,v,p,g,h,x]}),e[23]=o,e[24]=r,e[25]=x,e[26]=d,e[27]=u,e[28]=b,e[29]=v,e[30]=p,e[31]=g,e[32]=h,e[33]=y):y=e[33];let f;return e[34]!==s||e[35]!==m||e[36]!==y||e[37]!==T?(f=t.jsx(s,{config:T,className:m,children:y}),e[34]=s,e[35]=m,e[36]=y,e[37]=T,e[38]=f):f=e[38],f}function ys(n){return n.replace("T"," ").slice(5,16)}function js(n,e){return`var(--chart-${e%5+1})`}function tt(n){const e=te.c(37),{rows:i,labelKey:a,valueKey:c}=n;let o,s,l,r;if(e[0]!==a||e[1]!==i||e[2]!==c){let u;e[7]!==c?(u=(N,_)=>(Number(_[c])||0)-(Number(N[c])||0),e[7]=c,e[8]=u):u=e[8];const b=[...i].sort(u).slice(0,10);let v;e[9]!==c?(v=N=>Number(N[c])||0,e[9]=c,e[10]=v):v=e[10];const p=Math.max(1,...b.map(v));let g;e[11]!==i||e[12]!==c?(g=i.reduce((N,_)=>N+(Number(_[c])||0),0)||1,e[11]=i,e[12]=c,e[13]=g):g=e[13];const h=g;l="flex flex-col";let T;e[14]!==a?(T=Te(a),e[14]=a,e[15]=T):T=e[15];let x;e[16]!==T?(x=t.jsx("span",{children:T}),e[16]=T,e[17]=x):x=e[17];let y;e[18]!==c?(y=Te(c),e[18]=c,e[19]=y):y=e[19];let f;e[20]!==y?(f=t.jsx("span",{children:y}),e[20]=y,e[21]=f):f=e[21],e[22]!==f||e[23]!==x?(r=t.jsxs("div",{className:"flex items-center justify-between px-2.5 pb-2 text-[11px] font-medium uppercase tracking-wide text-muted-foreground",children:[x,f]}),e[22]=f,e[23]=x,e[24]=r):r=e[24],o="flex flex-col gap-0.5";let j;e[25]!==a||e[26]!==p||e[27]!==h||e[28]!==c?(j=(N,_)=>{const S=Number(N[c])||0;return t.jsxs("div",{className:"relative flex items-center justify-between gap-3 overflow-hidden rounded-md px-2.5 py-2",children:[t.jsx("div",{className:"absolute inset-y-0 left-0 rounded-md bg-muted",style:{width:`${S/p*100}%`}}),t.jsx("span",{className:"relative z-10 truncate font-mono text-xs text-foreground",children:We(N[a])||"—"}),t.jsxs("span",{className:"relative z-10 shrink-0 text-sm tabular-nums text-foreground",children:[Ye(S),t.jsxs("span",{className:"ml-2 text-xs text-muted-foreground",children:[Math.round(S/h*100),"%"]})]})]},_)},e[25]=a,e[26]=p,e[27]=h,e[28]=c,e[29]=j):j=e[29],s=b.map(j),e[0]=a,e[1]=i,e[2]=c,e[3]=o,e[4]=s,e[5]=l,e[6]=r}else o=e[3],s=e[4],l=e[5],r=e[6];let m;e[30]!==o||e[31]!==s?(m=t.jsx("div",{className:o,children:s}),e[30]=o,e[31]=s,e[32]=m):m=e[32];let d;return e[33]!==l||e[34]!==r||e[35]!==m?(d=t.jsxs("div",{className:l,children:[r,m]}),e[33]=l,e[34]=r,e[35]=m,e[36]=d):d=e[36],d}function ht(n){const e=te.c(7),{row:i}=n;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=[["viewed","Viewed"],["view_item","View item"],["view_item_list","View list"],["select_item","Select item"],["add_to_cart","Add to cart"],["begin_checkout","Begin checkout"],["purchase","Purchase"]],e[0]=a):a=e[0];const c=a;let o;e[1]!==i?(o=c.filter(m=>{const[d]=m;return d in i}),e[1]=i,e[2]=o):o=e[2];const s=o,l=Number(i[s[0]?.[0]??""])||1;let r;return e[3]!==l||e[4]!==i||e[5]!==s?(r=t.jsx("div",{className:"flex flex-col gap-1.5",children:s.map(m=>{const[d,u]=m,b=Number(i[d])||0;return t.jsxs("div",{className:"relative flex items-center justify-between gap-3 overflow-hidden rounded-md px-2.5 py-2",children:[t.jsx("div",{className:"absolute inset-y-0 left-0 rounded-md bg-primary/15",style:{width:`${b/l*100}%`}}),t.jsx("span",{className:"relative z-10 text-sm text-foreground",children:u}),t.jsxs("span",{className:"relative z-10 shrink-0 text-sm tabular-nums text-muted-foreground",children:[Ye(b),t.jsxs("span",{className:"ml-2 text-xs opacity-70",children:[Math.round(b/l*100),"%"]})]})]},d)})}),e[3]=l,e[4]=i,e[5]=s,e[6]=r):r=e[6],r}function yt(n){const e=te.c(18),{rows:i}=n;let a,c,o,s,l;if(e[0]!==i){const u=Array.from(i.reduce(Ts,new Set)),b=new Set(u.filter(h=>i.some(T=>typeof T[h]=="number"))),v=u.find(h=>b.has(h)),p=[...i].sort((h,T)=>v?(Number(T[v])||0)-(Number(h[v])||0):0).slice(0,50);l="overflow-x-auto",c=Dt;const g=t.jsx(at,{className:"border-border hover:bg-transparent",children:u.map(h=>t.jsx($t,{className:Le("h-8 whitespace-nowrap text-[11px] font-medium uppercase tracking-wide text-muted-foreground",b.has(h)&&"text-right"),children:Te(h)},h))});e[6]!==g?(s=t.jsx(Ot,{children:g}),e[6]=g,e[7]=s):s=e[7],a=qt,o=p.map((h,T)=>t.jsx(at,{className:"border-border/50",children:u.map(x=>t.jsx(Et,{className:Le("whitespace-nowrap py-1.5 text-sm tabular-nums",b.has(x)?"text-right text-foreground":"font-mono text-xs text-muted-foreground"),children:typeof h[x]=="number"?Ge(x,h[x]):We(h[x])},x))},T)),e[0]=i,e[1]=a,e[2]=c,e[3]=o,e[4]=s,e[5]=l}else a=e[1],c=e[2],o=e[3],s=e[4],l=e[5];let r;e[8]!==a||e[9]!==o?(r=t.jsx(a,{children:o}),e[8]=a,e[9]=o,e[10]=r):r=e[10];let m;e[11]!==c||e[12]!==s||e[13]!==r?(m=t.jsxs(c,{children:[s,r]}),e[11]=c,e[12]=s,e[13]=r,e[14]=m):m=e[14];let d;return e[15]!==l||e[16]!==m?(d=t.jsx("div",{className:l,children:m}),e[15]=l,e[16]=m,e[17]=d):d=e[17],d}function Ts(n,e){return Object.keys(e).forEach(i=>n.add(i)),n}function vs(n){if(n.length===0)return null;const e=n[0]??{},i=Object.keys(e);if(n.length===1&&("viewed"in e||"purchase"in e||"add_to_cart"in e))return{kind:"funnel"};const a=i.find(l=>ut.test(l)),c=a?i.filter(l=>l!==a&&typeof e[l]=="number"):[];if(a&&c.length>0&&n.length>1)return{kind:"series",timeKey:a,metricKeys:c};const o=i.find(l=>l!==a&&typeof e[l]=="string"),s=i.find(l=>typeof e[l]=="number");return o&&s&&i.length<=3?{kind:"bars",labelKey:o,valueKey:s}:n.length===1&&!a&&!o&&Object.values(e).every(ms)?{kind:"kpi"}:{kind:"table"}}function st(n){const e=te.c(18),{rows:i,meta:a}=n;let c;e[0]!==i[0]?(c=i[0]??{},e[0]=i[0],e[1]=c):c=e[1];const o=c;switch(a.kind){case"kpi":{let s;return e[2]!==o?(s=t.jsx(ps,{row:o}),e[2]=o,e[3]=s):s=e[3],s}case"funnel":{let s;return e[4]!==o?(s=t.jsx(ht,{row:o}),e[4]=o,e[5]=s):s=e[5],s}case"series":{const s=a.timeKey??"";let l;e[6]!==a.metricKeys?(l=a.metricKeys??[],e[6]=a.metricKeys,e[7]=l):l=e[7];let r;return e[8]!==i||e[9]!==s||e[10]!==l?(r=t.jsx(gt,{rows:i,timeKey:s,metricKeys:l}),e[8]=i,e[9]=s,e[10]=l,e[11]=r):r=e[11],r}case"bars":{const s=a.labelKey??"",l=a.valueKey??"";let r;return e[12]!==i||e[13]!==s||e[14]!==l?(r=t.jsx(tt,{rows:i,labelKey:s,valueKey:l}),e[12]=i,e[13]=s,e[14]=l,e[15]=r):r=e[15],r}default:{let s;return e[16]!==i?(s=t.jsx(yt,{rows:i}),e[16]=i,e[17]=s):s=e[17],s}}}function nt(n){const e=te.c(8),{payload:i,t:a}=n;let c,o;if(e[0]!==i||e[1]!==a){o=Symbol.for("react.early_return_sentinel");e:{const s=Object.entries(i).filter($s).map(As).filter(Ks);if(s.length===0){let d;e[4]!==a?(d=a("mainPanelTabs.analyticsTab.emptyView"),e[4]=a,e[5]=d):d=e[5];let u;e[6]!==d?(u=t.jsx("p",{className:"text-sm text-muted-foreground",children:d}),e[6]=d,e[7]=u):u=e[7],o=u;break e}const l=s.filter(Cs),r=s.filter(_s),m=s.filter(ks).sort(Ss);c=t.jsxs("div",{className:"flex flex-col gap-4",children:[l.map(Ps),r.map(ws),m.length>0&&t.jsx("div",{className:"grid gap-4 lg:grid-cols-2 xl:grid-cols-3",children:m.map(Ns)})]})}e[0]=i,e[1]=a,e[2]=c,e[3]=o}else c=e[2],o=e[3];return o!==Symbol.for("react.early_return_sentinel")?o:c}function Ns(n){return t.jsx(he,{title:bt(n.name),children:t.jsx(st,{rows:n.rows,meta:n.meta})},n.name)}function ws(n){return t.jsx(he,{title:bt(n.name),children:t.jsx(st,{rows:n.rows,meta:n.meta})},n.name)}function Ps(n){return t.jsx(st,{rows:n.rows,meta:n.meta},n.name)}function Ss(n,e){const i=lt.indexOf(n.name),a=lt.indexOf(e.name);return(i<0?999:i)-(a<0?999:a)}function ks(n){return n.meta.kind==="bars"||n.meta.kind==="table"}function _s(n){return n.meta.kind==="series"||n.meta.kind==="funnel"}function Cs(n){return n.meta.kind==="kpi"}function Ks(n){return!!n.meta}function As(n){const[e,i]=n;return{name:e,rows:i,meta:vs(i)}}function $s(n){const[e,i]=n;return!os.has(e)&&Array.isArray(i)}const Es=[["visitors","Visitors"],["pageviews","Pageviews"],["sessions","Sessions"],["bounce_pct","Bounce rate"],["duration_s","Avg duration"]];function Ds(n){const e=te.c(24),{payload:i}=n,a=xe();let c;e[0]!==i?(c=w=>Array.isArray(i[w])?i[w]:[],e[0]=i,e[1]=c):c=e[1];const o=c,s=o("kpis")[0]??{},l=o("series");let r;e[2]!==o?(r=o("sources"),e[2]=o,e[3]=r):r=e[3];const m=r;let d;e[4]!==o?(d=o("funnel"),e[4]=o,e[5]=d):d=e[5];const u=d[0],b=l[0]?Object.keys(l[0]).filter(w=>!ut.test(w)&&typeof l[0]?.[w]=="number"):[],v=Es.filter(w=>{const[P]=w;return P in s}),[p,g]=ie.useState(v.find(w=>{const[P]=w;return b.includes(P)})?.[0]??b[0]??""),h="flex flex-col gap-4",T="grid grid-cols-2 gap-3 sm:grid-cols-3 lg:grid-cols-5",x=v.map(w=>{const[P,K]=w,k=b.includes(P),A=p===P,C=k?fs(l.map(D=>Number(D[P])||0)):null;return t.jsxs("button",{type:"button",disabled:!k,onClick:()=>k&&g(P),className:Le("flex flex-col gap-1.5 rounded-xl border p-4 text-left transition-colors",A?"border-[var(--chart-1)] bg-[var(--chart-1)]/5":"border-border bg-card",k?"cursor-pointer hover:border-[var(--chart-1)]/60":"cursor-default"),children:[t.jsx("span",{className:"text-[11px] font-medium uppercase tracking-wide text-muted-foreground",children:K}),t.jsxs("span",{className:"flex items-baseline gap-2",children:[t.jsx("span",{className:"text-3xl font-semibold leading-none text-foreground tabular-nums",children:Ge(P,s[P])}),C!==null&&t.jsx(us,{pct:C,goodDown:P==="bounce_pct"})]})]},P)});let y;e[6]!==x?(y=t.jsx("div",{className:T,children:x}),e[6]=x,e[7]=y):y=e[7];let f;e[8]!==p||e[9]!==l?(f=p&&l.length>0&&t.jsx(he,{title:`${Te(p)} over time`,children:t.jsx(gt,{rows:l,timeKey:"t",metricKeys:[p]})}),e[8]=p,e[9]=l,e[10]=f):f=e[10];let j;e[11]!==m||e[12]!==a?(j=m.length>0&&t.jsx(he,{title:a("mainPanelTabs.analyticsTab.cardTopSources"),children:t.jsx(tt,{rows:m,labelKey:"k",valueKey:"n"})}),e[11]=m,e[12]=a,e[13]=j):j=e[13];let N;e[14]!==u||e[15]!==a?(N=u&&t.jsx(he,{title:a("mainPanelTabs.analyticsTab.cardFunnel"),children:t.jsx(ht,{row:u})}),e[14]=u,e[15]=a,e[16]=N):N=e[16];let _;e[17]!==j||e[18]!==N?(_=t.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[j,N]}),e[17]=j,e[18]=N,e[19]=_):_=e[19];let S;return e[20]!==y||e[21]!==f||e[22]!==_?(S=t.jsxs("div",{className:h,children:[y,f,_]}),e[20]=y,e[21]=f,e[22]=_,e[23]=S):S=e[23],S}function Os(n){const e=te.c(46),{payload:i}=n,a=xe();let c;e[0]!==i?(c=j=>Array.isArray(i[j])?i[j]:[],e[0]=i,e[1]=c):c=e[1];const o=c;let s,l,r,m,d,u;if(e[2]!==o||e[3]!==a){const j=o("liveVisitors")[0]??{};let N;e[10]!==o?(N=o("liveFeed"),e[10]=o,e[11]=N):N=e[11],s=N;let _;e[12]!==o?(_=o("livePages"),e[12]=o,e[13]=_):_=e[13],l=_;const S=[["visitors","Visitors"],["pageviews","Pageviews"],["events","Events"],["last_event","Last event"]];d="flex flex-col gap-4";let w;e[14]===Symbol.for("react.memo_cache_sentinel")?(w=t.jsxs("span",{className:"relative flex size-2",children:[t.jsx("span",{className:"absolute inline-flex size-full animate-ping rounded-full bg-[var(--chart-1)] opacity-75"}),t.jsx("span",{className:"relative inline-flex size-2 rounded-full bg-[var(--chart-1)]"})]}),e[14]=w):w=e[14];let P;e[15]!==a?(P=a("mainPanelTabs.analyticsTab.liveHint"),e[15]=a,e[16]=P):P=e[16],e[17]!==P?(u=t.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[w,P]}),e[17]=P,e[18]=u):u=e[18],r="grid grid-cols-2 gap-3 sm:grid-cols-4",m=S.map(K=>{const[k,A]=K;return t.jsxs("div",{className:"flex flex-col gap-1.5 rounded-xl border border-border bg-card p-4",children:[t.jsx("span",{className:"text-[11px] font-medium uppercase tracking-wide text-muted-foreground",children:A}),t.jsx("span",{className:"text-3xl font-semibold leading-none text-foreground tabular-nums",children:k==="last_event"?We(j[k]):Ge(k,j[k])})]},k)}),e[2]=o,e[3]=a,e[4]=s,e[5]=l,e[6]=r,e[7]=m,e[8]=d,e[9]=u}else s=e[4],l=e[5],r=e[6],m=e[7],d=e[8],u=e[9];let b;e[19]!==r||e[20]!==m?(b=t.jsx("div",{className:r,children:m}),e[19]=r,e[20]=m,e[21]=b):b=e[21];let v;e[22]!==a?(v=a("mainPanelTabs.analyticsTab.cardLiveFeed"),e[22]=a,e[23]=v):v=e[23];let p;e[24]!==s||e[25]!==a?(p=s.length>0?t.jsx(yt,{rows:s}):t.jsx("p",{className:"text-sm text-muted-foreground",children:a("mainPanelTabs.analyticsTab.emptyLive")}),e[24]=s,e[25]=a,e[26]=p):p=e[26];let g;e[27]!==v||e[28]!==p?(g=t.jsx(he,{title:v,children:p}),e[27]=v,e[28]=p,e[29]=g):g=e[29];let h;e[30]!==a?(h=a("mainPanelTabs.analyticsTab.cardPagesNow"),e[30]=a,e[31]=h):h=e[31];let T;e[32]!==l||e[33]!==a?(T=l.length>0?t.jsx(tt,{rows:l,labelKey:"k",valueKey:"n"}):t.jsx("p",{className:"text-sm text-muted-foreground",children:a("mainPanelTabs.analyticsTab.emptyView")}),e[32]=l,e[33]=a,e[34]=T):T=e[34];let x;e[35]!==h||e[36]!==T?(x=t.jsx(he,{title:h,children:T}),e[35]=h,e[36]=T,e[37]=x):x=e[37];let y;e[38]!==x||e[39]!==g?(y=t.jsxs("div",{className:"grid gap-4 lg:grid-cols-2",children:[g,x]}),e[38]=x,e[39]=g,e[40]=y):y=e[40];let f;return e[41]!==y||e[42]!==d||e[43]!==u||e[44]!==b?(f=t.jsxs("div",{className:d,children:[u,b,y]}),e[41]=y,e[42]=d,e[43]=u,e[44]=b,e[45]=f):f=e[45],f}function qs(n){const e=te.c(42),{base:i,orgSlug:a,site:c,view:o,range:s,quota:l}=n,r=xe(),m=o==="live",d=m?"5m":s;let u;e[0]!==d||e[1]!==a||e[2]!==c||e[3]!==o?(u=Ve.analyticsData(a,c,o,d),e[0]=d,e[1]=a,e[2]=c,e[3]=o,e[4]=u):u=e[4];let b;e[5]!==i||e[6]!==d||e[7]!==o?(b=()=>pt(`${i}/analytics/data?view=${encodeURIComponent(o)}&range=${encodeURIComponent(d)}`),e[5]=i,e[6]=d,e[7]=o,e[8]=b):b=e[8];const v=m?0:3e4,p=m?5e3:!1;let g;e[9]!==u||e[10]!==b||e[11]!==v||e[12]!==p?(g={queryKey:u,queryFn:b,retry:!1,staleTime:v,refetchInterval:p},e[9]=u,e[10]=b,e[11]=v,e[12]=p,e[13]=g):g=e[13];const h=it(g);if(h.isLoading){let f;return e[14]===Symbol.for("react.memo_cache_sentinel")?(f=t.jsxs("div",{className:"flex flex-col gap-3",children:[t.jsx(Ue,{className:"h-20 w-full"}),t.jsx(Ue,{className:"h-64 w-full"})]}),e[14]=f):f=e[14],f}if(h.error){let f;e[15]!==h.error||e[16]!==r?(f=xt(h.error)?r("mainPanelTabs.analyticsTab.dataNotConfiguredDescription"):r("mainPanelTabs.analyticsTab.dataLoadError"),e[15]=h.error,e[16]=r,e[17]=f):f=e[17];let j;return e[18]!==f?(j=t.jsx("p",{className:"text-sm text-muted-foreground",children:f}),e[18]=f,e[19]=j):j=e[19],j}let T;e[20]!==h.data?(T=h.data??{},e[20]=h.data,e[21]=T):T=e[21];const x=T;if(!x.data){let f;e[22]!==r?(f=r("mainPanelTabs.analyticsTab.emptyView"),e[22]=r,e[23]=f):f=e[23];let j;return e[24]!==f?(j=t.jsx("p",{className:"text-sm text-muted-foreground",children:f}),e[24]=f,e[25]=j):j=e[25],j}if(m){let f;return e[26]!==x.data?(f=t.jsx(Os,{payload:x.data}),e[26]=x.data,e[27]=f):f=e[27],f}if(o==="overview"){let f;return e[28]!==x.data?(f=t.jsx(Ds,{payload:x.data}),e[28]=x.data,e[29]=f):f=e[29],f}if(o==="usage"){let f;e[30]!==l||e[31]!==x.data?(f=t.jsx(Ls,{quota:l,payload:x.data}),e[30]=l,e[31]=x.data,e[32]=f):f=e[32];let j;e[33]!==x.data||e[34]!==r?(j=t.jsx(nt,{payload:x.data,t:r}),e[33]=x.data,e[34]=r,e[35]=j):j=e[35];let N;return e[36]!==f||e[37]!==j?(N=t.jsxs("div",{className:"flex flex-col gap-5",children:[f,j]}),e[36]=f,e[37]=j,e[38]=N):N=e[38],N}let y;return e[39]!==x.data||e[40]!==r?(y=t.jsx(nt,{payload:x.data,t:r}),e[39]=x.data,e[40]=r,e[41]=y):y=e[41],y}function Ls(n){const e=te.c(27),{quota:i,payload:a}=n,c=xe(),o=typeof i=="number"&&i>0;let s,l,r;if(e[0]!==o||e[1]!==a||e[2]!==i||e[3]!==c){let u=null;for(const T of Object.values(a)){const x=T&&typeof T=="object"&&!Array.isArray(T)?T:Array.isArray(T)&&T[0]&&typeof T[0]=="object"?T[0]:null;if(!x)continue;const y=x.events_accepted??x.accepted??x.events;if(typeof y=="number"){u=y;break}}const b=Ms;s="flex flex-col gap-2 rounded-xl border border-border bg-card p-4";let v;e[7]!==c?(v=c("mainPanelTabs.analyticsTab.monthlyQuota"),e[7]=c,e[8]=v):v=e[8];let p;e[9]!==v?(p=t.jsx("span",{className:"text-[11px] font-medium uppercase tracking-wide text-muted-foreground",children:v}),e[9]=v,e[10]=p):p=e[10];let g;e[11]!==o||e[12]!==i||e[13]!==c?(g=o?`${b(i)} ${c("mainPanelTabs.analyticsTab.eventsPerMonthSuffix")}`:c("mainPanelTabs.analyticsTab.uncapped"),e[11]=o,e[12]=i,e[13]=c,e[14]=g):g=e[14];let h;e[15]!==g?(h=t.jsx("span",{className:"font-mono text-sm tabular-nums text-foreground",children:g}),e[15]=g,e[16]=h):h=e[16],e[17]!==p||e[18]!==h?(l=t.jsxs("div",{className:"flex items-center justify-between gap-2",children:[p,h]}),e[17]=p,e[18]=h,e[19]=l):l=e[19],r=o&&u!==null&&t.jsx("p",{className:"text-xs text-muted-foreground",children:c("mainPanelTabs.analyticsTab.acceptedInRange",{count:b(u)})}),e[0]=o,e[1]=a,e[2]=i,e[3]=c,e[4]=s,e[5]=l,e[6]=r}else s=e[4],l=e[5],r=e[6];let m;e[20]!==o?(m=!o&&t.jsx("p",{className:"text-xs text-muted-foreground",children:"No monthly cap is set — every accepted event is stored. Set one in Configuration to enforce a limit."}),e[20]=o,e[21]=m):m=e[21];let d;return e[22]!==s||e[23]!==l||e[24]!==r||e[25]!==m?(d=t.jsxs("div",{className:s,children:[l,r,m]}),e[22]=s,e[23]=l,e[24]=r,e[25]=m,e[26]=d):d=e[26],d}function Ms(n){return n.toLocaleString()}function zs(n){const e=te.c(53),{status:i}=n,a=xe(),c=i.config?.id??"",o=i.key??null,s=`<script async src="https://analytics.decocdn.com/_dq/a.js?k=${o??"YOUR_TOKEN"}"><\/script>`;let l;e[0]!==a?(l=a("mainPanelTabs.analyticsTab.installTitle"),e[0]=a,e[1]=l):l=e[1];let r;e[2]!==a?(r=a("mainPanelTabs.analyticsTab.installHow"),e[2]=a,e[3]=r):r=e[3];let m;e[4]!==r?(m=t.jsx("p",{className:"text-sm text-muted-foreground",children:r}),e[4]=r,e[5]=m):m=e[5];let d;e[6]!==a?(d=a("mainPanelTabs.analyticsTab.installHostTitle"),e[6]=a,e[7]=d):d=e[7];let u;e[8]!==d?(u=t.jsx("span",{className:"text-[11px] font-medium uppercase tracking-wide text-muted-foreground",children:d}),e[8]=d,e[9]=u):u=e[9];let b;e[10]!==a?(b=a("mainPanelTabs.analyticsTab.installAuto"),e[10]=a,e[11]=b):b=e[11];let v;e[12]!==b?(v=t.jsx("p",{className:"text-xs text-muted-foreground",children:b}),e[12]=b,e[13]=v):v=e[13];let p;e[14]!==u||e[15]!==v?(p=t.jsxs("div",{className:"flex flex-col gap-1.5",children:[u,v]}),e[14]=u,e[15]=v,e[16]=p):p=e[16];let g;e[17]!==a?(g=a("mainPanelTabs.analyticsTab.installKeyTitle"),e[17]=a,e[18]=g):g=e[18];let h;e[19]!==g?(h=t.jsx("span",{className:"text-[11px] font-medium uppercase tracking-wide text-muted-foreground",children:g}),e[19]=g,e[20]=h):h=e[20];let T;e[21]!==o?(T=o&&t.jsxs("div",{className:"flex items-center justify-between gap-3 rounded-lg border border-border bg-muted/30 px-3 py-1.5",children:[t.jsx("code",{className:"overflow-x-auto text-xs text-foreground",children:o}),t.jsx(Xe,{text:o})]}),e[21]=o,e[22]=T):T=e[22];let x;e[23]!==s?(x=t.jsxs("div",{className:"flex items-start justify-between gap-3 rounded-lg border border-border bg-muted/30 px-3 py-2",children:[t.jsx("code",{className:"overflow-x-auto whitespace-pre-wrap break-all text-xs text-muted-foreground",children:s}),t.jsx(Xe,{text:s})]}),e[23]=s,e[24]=x):x=e[24];let y;e[25]!==a||e[26]!==o?(y=!o&&t.jsx("span",{className:"text-xs text-muted-foreground",children:a("mainPanelTabs.analyticsTab.installTokenNote")}),e[25]=a,e[26]=o,e[27]=y):y=e[27];let f;e[28]!==h||e[29]!==T||e[30]!==x||e[31]!==y?(f=t.jsxs("div",{className:"flex flex-col gap-1.5",children:[h,T,x,y]}),e[28]=h,e[29]=T,e[30]=x,e[31]=y,e[32]=f):f=e[32];let j;e[33]!==a?(j=a("mainPanelTabs.analyticsTab.installTrackPrefix"),e[33]=a,e[34]=j):j=e[34];let N;e[35]===Symbol.for("react.memo_cache_sentinel")?(N=t.jsx("span",{className:"font-mono",children:"window.__dq"}),e[35]=N):N=e[35];let _;e[36]===Symbol.for("react.memo_cache_sentinel")?(_=t.jsx("span",{className:"font-mono",children:"pageview()"}),e[36]=_):_=e[36];let S;e[37]===Symbol.for("react.memo_cache_sentinel")?(S=t.jsx("span",{className:"font-mono",children:"track(name, props)"}),e[37]=S):S=e[37];let w;e[38]===Symbol.for("react.memo_cache_sentinel")?(w=t.jsx("span",{className:"font-mono",children:"purchase({…})"}),e[38]=w):w=e[38];let P;e[39]!==j?(P=t.jsxs("p",{className:"text-xs text-muted-foreground",children:[j,N," —"," ",_,","," ",S,","," ",w,"."]}),e[39]=j,e[40]=P):P=e[40];let K;e[41]!==c||e[42]!==a?(K=c&&t.jsxs("p",{className:"text-xs text-muted-foreground",children:[a("mainPanelTabs.analyticsTab.installSiteId"),":"," ",t.jsx("span",{className:"font-mono text-foreground",children:c})]}),e[41]=c,e[42]=a,e[43]=K):K=e[43];let k;e[44]!==f||e[45]!==P||e[46]!==K||e[47]!==m||e[48]!==p?(k=t.jsxs("div",{className:"flex flex-col gap-4",children:[m,p,f,P,K]}),e[44]=f,e[45]=P,e[46]=K,e[47]=m,e[48]=p,e[49]=k):k=e[49];let A;return e[50]!==l||e[51]!==k?(A=t.jsx(he,{title:l,children:k}),e[50]=l,e[51]=k,e[52]=A):A=e[52],A}function Xe(n){const e=te.c(11),{text:i}=n,a=xe(),[c,o]=ie.useState(!1);let s;e[0]!==i?(s=()=>{navigator.clipboard?.writeText(i)?.then(()=>{o(!0),setTimeout(()=>o(!1),1500)},Rs)},e[0]=i,e[1]=s):s=e[1];let l;e[2]!==c?(l=c?t.jsx(Pt,{className:"size-4"}):t.jsx(dt,{className:"size-4"}),e[2]=c,e[3]=l):l=e[3];let r;e[4]!==c||e[5]!==a?(r=a(c?"mainPanelTabs.analyticsTab.copied":"mainPanelTabs.analyticsTab.copy"),e[4]=c,e[5]=a,e[6]=r):r=e[6];let m;return e[7]!==s||e[8]!==l||e[9]!==r?(m=t.jsxs(be,{variant:"ghost",size:"sm",onClick:s,children:[l,r]}),e[7]=s,e[8]=l,e[9]=r,e[10]=m):m=e[10],m}function Rs(){}function jt(n){const e=te.c(27),{result:i,onDismiss:a}=n,c=xe();let o;e[0]!==i.notes?(o=i.notes??[],e[0]=i.notes,e[1]=o):o=e[1];const s=o,l=!!i.key;if(!l&&!i.snippet&&s.length===0)return null;let r;e[2]!==l||e[3]!==c?(r=c(l?"mainPanelTabs.analyticsTab.tokenTitle":"mainPanelTabs.analyticsTab.registeredOk"),e[2]=l,e[3]=c,e[4]=r):r=e[4];let m;e[5]!==r?(m=t.jsx("h3",{className:"text-sm font-medium text-foreground",children:r}),e[5]=r,e[6]=m):m=e[6];let d;e[7]!==c?(d=c("mainPanelTabs.analyticsTab.dismiss"),e[7]=c,e[8]=d):d=e[8];let u;e[9]!==a||e[10]!==d?(u=t.jsx(be,{variant:"ghost",size:"sm",onClick:a,children:d}),e[9]=a,e[10]=d,e[11]=u):u=e[11];let b;e[12]!==m||e[13]!==u?(b=t.jsxs("div",{className:"flex items-start justify-between gap-4",children:[m,u]}),e[12]=m,e[13]=u,e[14]=b):b=e[14];let v;e[15]!==l||e[16]!==c?(v=l&&t.jsx("p",{className:"text-xs text-muted-foreground",children:c("mainPanelTabs.analyticsTab.tokenOnce")}),e[15]=l,e[16]=c,e[17]=v):v=e[17];let p;e[18]!==i.snippet?(p=i.snippet&&t.jsxs("div",{className:"flex items-start justify-between gap-3 rounded-lg border border-border bg-muted/30 px-3 py-2",children:[t.jsx("code",{className:"overflow-x-auto whitespace-pre-wrap break-all text-xs text-muted-foreground",children:i.snippet}),t.jsx(Xe,{text:i.snippet})]}),e[18]=i.snippet,e[19]=p):p=e[19];let g;e[20]!==s?(g=s.length>0&&t.jsx("ul",{className:"flex flex-col gap-1.5",children:s.map(Fs)}),e[20]=s,e[21]=g):g=e[21];let h;return e[22]!==b||e[23]!==v||e[24]!==p||e[25]!==g?(h=t.jsxs("section",{className:"flex flex-col gap-3 rounded-xl border border-primary/30 bg-primary/5 p-4",children:[b,v,p,g]}),e[22]=b,e[23]=v,e[24]=p,e[25]=g,e[26]=h):h=e[26],h}function Fs(n,e){return t.jsx("li",{className:"rounded-md border border-warning/30 bg-warning/5 px-3 py-2 text-xs text-warning",children:n},e)}function Is(n){const e=te.c(96),{base:i,orgSlug:a,site:c,host:o,onRegistered:s}=n,l=xe(),r=Ze();let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m=new Set(["core","commerce","vitals"]),e[0]=m):m=e[0];const[d,u]=ie.useState(m),[b,v]=ie.useState(""),[p,g]=ie.useState(!1),[h,T]=ie.useState("");let x;e[1]!==i?(x=$=>Ie(`${i}/analytics/register`,"POST",$),e[1]=i,e[2]=x):x=e[2];let y;e[3]!==s||e[4]!==a||e[5]!==r||e[6]!==c||e[7]!==l?(y=$=>{r.invalidateQueries({queryKey:Ve.analyticsStatus(a,c)}),s($),ge.success(l("mainPanelTabs.analyticsTab.toastRegistered"))},e[3]=s,e[4]=a,e[5]=r,e[6]=c,e[7]=l,e[8]=y):y=e[8];let f;e[9]!==x||e[10]!==y?(f={mutationFn:x,onSuccess:y,onError:Bs},e[9]=x,e[10]=y,e[11]=f):f=e[11];const j=Fe(f);let N;e[12]===Symbol.for("react.memo_cache_sentinel")?(N=$=>{$!=="core"&&u(z=>{const E=new Set(z);return E.has($)?E.delete($):E.add($),E})},e[12]=N):N=e[12];const _=N;let S,w,P,K,k,A,C;if(e[13]!==h||e[14]!==o||e[15]!==b||e[16]!==j||e[17]!==d||e[18]!==l||e[19]!==p){w=h.split(/[\s,]+/).map(Vs).filter(Boolean),P=()=>{if(p){j.mutate({key:!0,domains:w,modules:[...d]});return}const z=b.trim();j.mutate({modules:[...d],...z?{host:z}:{}})};const $=b.trim()||o||l("mainPanelTabs.analyticsTab.registerHostFallback");S=he,e[27]!==l?(C=l("mainPanelTabs.analyticsTab.registerTitle"),e[27]=l,e[28]=C):C=e[28],A="flex flex-col gap-5",K="text-sm text-muted-foreground",k=l("mainPanelTabs.analyticsTab.registerDescription",{host:p?w[0]||"your domains":$}),e[13]=h,e[14]=o,e[15]=b,e[16]=j,e[17]=d,e[18]=l,e[19]=p,e[20]=S,e[21]=w,e[22]=P,e[23]=K,e[24]=k,e[25]=A,e[26]=C}else S=e[20],w=e[21],P=e[22],K=e[23],k=e[24],A=e[25],C=e[26];let D;e[29]!==K||e[30]!==k?(D=t.jsx("p",{className:K,children:k}),e[29]=K,e[30]=k,e[31]=D):D=e[31];let ae;e[32]!==l?(ae=l("mainPanelTabs.analyticsTab.modules"),e[32]=l,e[33]=ae):ae=e[33];let O;e[34]!==ae?(O=t.jsx(qe,{children:ae}),e[34]=ae,e[35]=O):O=e[35];let W;e[36]!==d||e[37]!==l?(W=ft.map($=>{const z=$.key==="core",E=z||d.has($.key);return t.jsxs("label",{className:"flex cursor-pointer items-start gap-3 rounded-lg border border-border p-3 hover:border-border/70",children:[t.jsx(Je,{checked:E,disabled:z,onCheckedChange:()=>_($.key),className:"mt-0.5"}),t.jsxs("span",{className:"flex flex-col",children:[t.jsx("span",{className:"text-sm font-medium text-foreground",children:l($.labelKey)}),t.jsx("span",{className:"text-xs text-muted-foreground",children:l($.hintKey)})]})]},$.key)}),e[36]=d,e[37]=l,e[38]=W):W=e[38];let q;e[39]!==W?(q=t.jsx("div",{className:"grid grid-cols-1 gap-2 sm:grid-cols-2",children:W}),e[39]=W,e[40]=q):q=e[40];let G;e[41]!==O||e[42]!==q?(G=t.jsxs("div",{className:"flex flex-col gap-2",children:[O,q]}),e[41]=O,e[42]=q,e[43]=G):G=e[43];let R;e[44]===Symbol.for("react.memo_cache_sentinel")?(R=$=>g(!!$),e[44]=R):R=e[44];let F;e[45]!==p?(F=t.jsx(Je,{checked:p,onCheckedChange:R,className:"mt-0.5"}),e[45]=p,e[46]=F):F=e[46];let L;e[47]!==l?(L=l("mainPanelTabs.analyticsTab.registerByKey"),e[47]=l,e[48]=L):L=e[48];let I;e[49]!==L?(I=t.jsx("span",{className:"text-sm font-medium text-foreground",children:L}),e[49]=L,e[50]=I):I=e[50];let X;e[51]!==l?(X=l("mainPanelTabs.analyticsTab.registerByKeyHint"),e[51]=l,e[52]=X):X=e[52];let Z;e[53]!==X?(Z=t.jsx("span",{className:"text-xs text-muted-foreground",children:X}),e[53]=X,e[54]=Z):Z=e[54];let V;e[55]!==I||e[56]!==Z?(V=t.jsxs("span",{className:"flex flex-col",children:[I,Z]}),e[55]=I,e[56]=Z,e[57]=V):V=e[57];let B;e[58]!==F||e[59]!==V?(B=t.jsxs("label",{className:"flex cursor-pointer items-start gap-3 rounded-lg border border-border p-3 hover:border-border/70",children:[F,V]}),e[58]=F,e[59]=V,e[60]=B):B=e[60];let H;e[61]!==h||e[62]!==o||e[63]!==b||e[64]!==l||e[65]!==p?(H=p?t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsx(qe,{htmlFor:"analytics-domains",children:l("mainPanelTabs.analyticsTab.domainsLabel")}),t.jsx(Qe,{id:"analytics-domains",value:h,onChange:$=>T($.target.value),placeholder:l("mainPanelTabs.analyticsTab.domainsPlaceholder"),className:"font-mono text-xs"}),t.jsx("span",{className:"text-xs text-muted-foreground",children:l("mainPanelTabs.analyticsTab.domainsHint")})]}):!o&&t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsx(qe,{htmlFor:"analytics-host",children:l("mainPanelTabs.analyticsTab.hostLabel")}),t.jsx(Qe,{id:"analytics-host",value:b,onChange:$=>v($.target.value),placeholder:l("mainPanelTabs.analyticsTab.hostPlaceholder"),className:"font-mono text-xs"}),t.jsx("span",{className:"text-xs text-muted-foreground",children:l("mainPanelTabs.analyticsTab.hostHint")})]}),e[61]=h,e[62]=o,e[63]=b,e[64]=l,e[65]=p,e[66]=H):H=e[66];let U;e[67]!==l?(U=l("mainPanelTabs.analyticsTab.registerInstallHint"),e[67]=l,e[68]=U):U=e[68];let Q;e[69]!==U?(Q=t.jsx("p",{className:"text-xs text-muted-foreground",children:U}),e[69]=U,e[70]=Q):Q=e[70];let ee;e[71]!==w||e[72]!==o||e[73]!==b||e[74]!==j.isPending||e[75]!==p?(ee=j.isPending||(p?w.length===0:!o&&!b.trim()),e[71]=w,e[72]=o,e[73]=b,e[74]=j.isPending,e[75]=p,e[76]=ee):ee=e[76];let Y;e[77]!==j.isPending||e[78]!==l?(Y=j.isPending?l("mainPanelTabs.analyticsTab.enabling"):l("mainPanelTabs.analyticsTab.enableAnalytics"),e[77]=j.isPending,e[78]=l,e[79]=Y):Y=e[79];let J;e[80]!==P||e[81]!==ee||e[82]!==Y?(J=t.jsx("div",{className:"flex justify-end",children:t.jsx(be,{onClick:P,disabled:ee,children:Y})}),e[80]=P,e[81]=ee,e[82]=Y,e[83]=J):J=e[83];let se;e[84]!==D||e[85]!==G||e[86]!==B||e[87]!==H||e[88]!==Q||e[89]!==J||e[90]!==A?(se=t.jsxs("div",{className:A,children:[D,G,B,H,Q,J]}),e[84]=D,e[85]=G,e[86]=B,e[87]=H,e[88]=Q,e[89]=J,e[90]=A,e[91]=se):se=e[91];let le;return e[92]!==S||e[93]!==se||e[94]!==C?(le=t.jsx(S,{title:C,children:se}),e[92]=S,e[93]=se,e[94]=C,e[95]=le):le=e[95],le}function Vs(n){return n.trim()}function Bs(n){return ge.error(Be(n))}function Hs(n){const e=te.c(108),{base:i,orgSlug:a,site:c,config:o,open:s,onOpenChange:l}=n,r=xe(),m=Ze();let d;e[0]!==o.modules?(d=o.modules??["core"],e[0]=o.modules,e[1]=d):d=e[1];let u;e[2]!==d?(u=new Set(d),e[2]=d,e[3]=u):u=e[3];const[b,v]=ie.useState(u);let p;e[4]!==o.sampling?(p=Math.round((o.sampling??1)*100),e[4]=o.sampling,e[5]=p):p=e[5];const[g,h]=ie.useState(String(p)),[T,x]=ie.useState(typeof o.quota=="number"&&o.quota>0?String(o.quota):"");let y;e[6]!==i?(y=M=>Ie(`${i}/analytics/config`,"PUT",M),e[6]=i,e[7]=y):y=e[7];let f;e[8]!==l||e[9]!==a||e[10]!==m||e[11]!==c||e[12]!==r?(f=()=>{m.invalidateQueries({queryKey:Ve.analyticsStatus(a,c)}),ge.success(r("mainPanelTabs.analyticsTab.toastCollectionUpdated")),l(!1)},e[8]=l,e[9]=a,e[10]=m,e[11]=c,e[12]=r,e[13]=f):f=e[13];let j;e[14]!==y||e[15]!==f?(j={mutationFn:y,onSuccess:f,onError:Us},e[14]=y,e[15]=f,e[16]=j):j=e[16];const N=Fe(j);let _;e[17]===Symbol.for("react.memo_cache_sentinel")?(_=M=>{M!=="core"&&v(fe=>{const ue=new Set(fe);return ue.has(M)?ue.delete(M):ue.add(M),ue})},e[17]=_):_=e[17];const S=_;let w;e[18]!==T?(w=T.trim()===""?null:Number(T),e[18]=T,e[19]=w):w=e[19];const P=w,K=P!==null&&(!Number.isInteger(P)||P<1)?"Quota must be a positive whole number of events.":null;let k;e[20]!==o.quota||e[21]!==T?(k=T.trim()===""&&typeof o.quota=="number"&&o.quota>0,e[20]=o.quota,e[21]=T,e[22]=k):k=e[22];const A=k;let C;e[23]!==K||e[24]!==P||e[25]!==g||e[26]!==N||e[27]!==b?(C=()=>{if(K)return;const M=Number(g),fe=Number.isFinite(M)&&M>0?Math.min(M,100)/100:1;N.mutate({modules:[...b],sampling:fe,...P!==null?{quota:P}:{}})},e[23]=K,e[24]=P,e[25]=g,e[26]=N,e[27]=b,e[28]=C):C=e[28];const D=C;let ae;e[29]!==r?(ae=r("mainPanelTabs.analyticsTab.editTitle"),e[29]=r,e[30]=ae):ae=e[30];let O;e[31]!==ae?(O=t.jsx(rt,{children:t.jsx(ot,{children:ae})}),e[31]=ae,e[32]=O):O=e[32];let W;e[33]!==r?(W=r("mainPanelTabs.analyticsTab.editModules"),e[33]=r,e[34]=W):W=e[34];let q;e[35]!==W?(q=t.jsx(qe,{children:W}),e[35]=W,e[36]=q):q=e[36];let G;e[37]!==b||e[38]!==r?(G=ft.map(M=>{const fe=M.key==="core",ue=fe||b.has(M.key);return t.jsxs("label",{className:"flex cursor-pointer items-center gap-2.5 rounded-lg border border-border px-3 py-2 hover:border-border/70",children:[t.jsx(Je,{checked:ue,disabled:fe,onCheckedChange:()=>S(M.key)}),t.jsx("span",{className:"text-sm text-foreground",children:r(M.labelKey)})]},M.key)}),e[37]=b,e[38]=r,e[39]=G):G=e[39];let R;e[40]!==G?(R=t.jsx("div",{className:"grid grid-cols-1 gap-2",children:G}),e[40]=G,e[41]=R):R=e[41];let F;e[42]!==q||e[43]!==R?(F=t.jsxs("div",{className:"flex flex-col gap-2",children:[q,R]}),e[42]=q,e[43]=R,e[44]=F):F=e[44];let L;e[45]!==r?(L=r("mainPanelTabs.analyticsTab.editSampling"),e[45]=r,e[46]=L):L=e[46];let I;e[47]!==L?(I=t.jsx(qe,{htmlFor:"analytics-sampling",children:L}),e[47]=L,e[48]=I):I=e[48];let X;e[49]===Symbol.for("react.memo_cache_sentinel")?(X=M=>h(M.target.value),e[49]=X):X=e[49];let Z;e[50]!==g?(Z=t.jsx(Qe,{id:"analytics-sampling",type:"number",min:1,max:100,value:g,onChange:X,className:"font-mono text-xs"}),e[50]=g,e[51]=Z):Z=e[51];let V;e[52]!==r?(V=r("mainPanelTabs.analyticsTab.editSamplingHint"),e[52]=r,e[53]=V):V=e[53];let B;e[54]!==V?(B=t.jsx("span",{className:"text-xs text-muted-foreground",children:V}),e[54]=V,e[55]=B):B=e[55];let H;e[56]!==I||e[57]!==Z||e[58]!==B?(H=t.jsxs("div",{className:"flex flex-col gap-1.5",children:[I,Z,B]}),e[56]=I,e[57]=Z,e[58]=B,e[59]=H):H=e[59];let U;e[60]!==r?(U=r("mainPanelTabs.analyticsTab.monthlyQuota"),e[60]=r,e[61]=U):U=e[61];let Q;e[62]!==U?(Q=t.jsx(qe,{htmlFor:"analytics-quota",children:U}),e[62]=U,e[63]=Q):Q=e[63];let ee;e[64]!==r?(ee=r("mainPanelTabs.analyticsTab.uncapped"),e[64]=r,e[65]=ee):ee=e[65];let Y;e[66]===Symbol.for("react.memo_cache_sentinel")?(Y=M=>x(M.target.value),e[66]=Y):Y=e[66];const J=K!=null;let se;e[67]!==T||e[68]!==ee||e[69]!==J?(se=t.jsx(Qe,{id:"analytics-quota",type:"number",min:1,value:T,placeholder:ee,onChange:Y,"aria-invalid":J,className:"font-mono text-xs"}),e[67]=T,e[68]=ee,e[69]=J,e[70]=se):se=e[70];let le;e[71]!==A||e[72]!==K?(le=K?t.jsx("span",{className:"text-xs text-destructive",children:K}):A?t.jsx("span",{className:"text-xs text-warning",children:"Leaving this blank keeps the current cap — clearing a quota isn't a patch. Unregister + re-register to make it uncapped."}):t.jsx("span",{className:"text-xs text-muted-foreground",children:"Accepted events per calendar month. Once the reconciler flags the site as over, the collector drops further events. Blank = uncapped."}),e[71]=A,e[72]=K,e[73]=le):le=e[73];let $;e[74]!==Q||e[75]!==se||e[76]!==le?($=t.jsxs("div",{className:"flex flex-col gap-1.5",children:[Q,se,le]}),e[74]=Q,e[75]=se,e[76]=le,e[77]=$):$=e[77];let z;e[78]!==F||e[79]!==H||e[80]!==$?(z=t.jsxs("div",{className:"flex flex-col gap-4",children:[F,H,$]}),e[78]=F,e[79]=H,e[80]=$,e[81]=z):z=e[81];let E;e[82]!==l?(E=()=>l(!1),e[82]=l,e[83]=E):E=e[83];const ye=N.isPending;let ne;e[84]!==r?(ne=r("mainPanelTabs.analyticsTab.cancel"),e[84]=r,e[85]=ne):ne=e[85];let re;e[86]!==N.isPending||e[87]!==E||e[88]!==ne?(re=t.jsx(be,{variant:"outline",type:"button",onClick:E,disabled:ye,children:ne}),e[86]=N.isPending,e[87]=E,e[88]=ne,e[89]=re):re=e[89];const je=N.isPending||K!=null;let oe;e[90]!==N.isPending||e[91]!==r?(oe=N.isPending?r("mainPanelTabs.analyticsTab.saving"):r("mainPanelTabs.analyticsTab.save"),e[90]=N.isPending,e[91]=r,e[92]=oe):oe=e[92];let ce;e[93]!==D||e[94]!==je||e[95]!==oe?(ce=t.jsx(be,{type:"button",onClick:D,disabled:je,children:oe}),e[93]=D,e[94]=je,e[95]=oe,e[96]=ce):ce=e[96];let me;e[97]!==re||e[98]!==ce?(me=t.jsxs(St,{children:[re,ce]}),e[97]=re,e[98]=ce,e[99]=me):me=e[99];let de;e[100]!==O||e[101]!==z||e[102]!==me?(de=t.jsxs(ct,{className:"sm:max-w-md",children:[O,z,me]}),e[100]=O,e[101]=z,e[102]=me,e[103]=de):de=e[103];let pe;return e[104]!==l||e[105]!==s||e[106]!==de?(pe=t.jsx(mt,{open:s,onOpenChange:l,children:de}),e[104]=l,e[105]=s,e[106]=de,e[107]=pe):pe=e[107],pe}function Us(n){return ge.error(Be(n))}function Qs(n){const e=te.c(151),{base:i,orgSlug:a,site:c,status:o}=n,s=xe(),l=Ze(),r=o.config??{},m=r.enabled!==!1,[d,u]=ie.useState(!1),[b,v]=ie.useState(!1),[p,g]=ie.useState(null),h=(r.domains?.length??0)>0;let T;e[0]!==a||e[1]!==l||e[2]!==c?(T=()=>l.invalidateQueries({queryKey:Ve.analyticsStatus(a,c)}),e[0]=a,e[1]=l,e[2]=c,e[3]=T):T=e[3];const x=T;let y;e[4]!==i?(y=()=>Ie(`${i}/analytics/rotate-key`,"POST"),e[4]=i,e[5]=y):y=e[5];let f;e[6]!==x||e[7]!==s?(f=ze=>{x(),g(ze),ge.success(s("mainPanelTabs.analyticsTab.toastTokenRotated"))},e[6]=x,e[7]=s,e[8]=f):f=e[8];let j;e[9]!==y||e[10]!==f?(j={mutationFn:y,onSuccess:f,onError:Js},e[9]=y,e[10]=f,e[11]=j):j=e[11];const N=Fe(j);let _;e[12]!==i?(_=ze=>Ie(`${i}/analytics/disable`,"PUT",{enabled:ze}),e[12]=i,e[13]=_):_=e[13];let S;e[14]!==x||e[15]!==s?(S=()=>{x(),ge.success(s("mainPanelTabs.analyticsTab.toastCollectionUpdated"))},e[14]=x,e[15]=s,e[16]=S):S=e[16];let w;e[17]!==_||e[18]!==S?(w={mutationFn:_,onSuccess:S,onError:Gs},e[17]=_,e[18]=S,e[19]=w):w=e[19];const P=Fe(w);let K;e[20]!==i?(K=()=>Ie(`${i}/analytics`,"DELETE"),e[20]=i,e[21]=K):K=e[21];let k;e[22]!==x||e[23]!==v||e[24]!==s?(k=()=>{x(),ge.success(s("mainPanelTabs.analyticsTab.toastUnregistered")),v(!1)},e[22]=x,e[23]=v,e[24]=s,e[25]=k):k=e[25];let A;e[26]!==K||e[27]!==k?(A={mutationFn:K,onSuccess:k,onError:Ws},e[26]=K,e[27]=k,e[28]=A):A=e[28];const C=Fe(A),D=r.modules??["core"],ae="flex flex-col gap-6";let O;e[29]!==p?(O=p&&t.jsx(jt,{result:p,onDismiss:()=>g(null)}),e[29]=p,e[30]=O):O=e[30];const W=he;let q;e[31]!==s?(q=s("mainPanelTabs.analyticsTab.collection"),e[31]=s,e[32]=q):q=e[32];const G=m?"outline":"default";let R;e[33]!==m||e[34]!==P?(R=()=>P.mutate(!m),e[33]=m,e[34]=P,e[35]=R):R=e[35];let F;e[36]===Symbol.for("react.memo_cache_sentinel")?(F=t.jsx(Ct,{className:"size-4"}),e[36]=F):F=e[36];let L;e[37]!==m||e[38]!==s?(L=s(m?"mainPanelTabs.analyticsTab.pause":"mainPanelTabs.analyticsTab.resume"),e[37]=m,e[38]=s,e[39]=L):L=e[39];let I;e[40]!==G||e[41]!==R||e[42]!==L||e[43]!==P.isPending?(I=t.jsxs(be,{size:"sm",variant:G,disabled:P.isPending,onClick:R,children:[F,L]}),e[40]=G,e[41]=R,e[42]=L,e[43]=P.isPending,e[44]=I):I=e[44];let X;e[45]!==u?(X=()=>u(!0),e[45]=u,e[46]=X):X=e[46];let Z;e[47]===Symbol.for("react.memo_cache_sentinel")?(Z=t.jsx(Kt,{className:"size-4"}),e[47]=Z):Z=e[47];let V;e[48]!==s?(V=s("mainPanelTabs.analyticsTab.edit"),e[48]=s,e[49]=V):V=e[49];let B;e[50]!==X||e[51]!==V?(B=t.jsxs(be,{size:"sm",variant:"ghost",onClick:X,children:[Z,V]}),e[50]=X,e[51]=V,e[52]=B):B=e[52];let H;e[53]!==h||e[54]!==N?(H=h&&t.jsxs(be,{size:"sm",variant:"ghost",disabled:N.isPending,onClick:()=>N.mutate(),children:[t.jsx(dt,{className:"size-4"}),N.isPending?"Rotating…":"Rotate token"]}),e[53]=h,e[54]=N,e[55]=H):H=e[55];let U;e[56]!==s?(U=s("mainPanelTabs.analyticsTab.unregister"),e[56]=s,e[57]=U):U=e[57];let Q;e[58]!==v?(Q=()=>v(!0),e[58]=v,e[59]=Q):Q=e[59];let ee;e[60]===Symbol.for("react.memo_cache_sentinel")?(ee=t.jsx(At,{className:"size-4"}),e[60]=ee):ee=e[60];let Y;e[61]!==U||e[62]!==Q?(Y=t.jsx(be,{size:"icon-sm",variant:"ghost","aria-label":U,className:"text-muted-foreground hover:text-destructive",onClick:Q,children:ee}),e[61]=U,e[62]=Q,e[63]=Y):Y=e[63];let J;e[64]!==I||e[65]!==B||e[66]!==H||e[67]!==Y?(J=t.jsxs("div",{className:"flex items-center gap-1.5",children:[I,B,H,Y]}),e[64]=I,e[65]=B,e[66]=H,e[67]=Y,e[68]=J):J=e[68];const se="flex flex-col gap-3",le="flex flex-wrap items-center gap-2",$=m?"success":"outline";let z;e[69]!==m||e[70]!==s?(z=s(m?"mainPanelTabs.analyticsTab.active":"mainPanelTabs.analyticsTab.paused"),e[69]=m,e[70]=s,e[71]=z):z=e[71];let E;e[72]!==$||e[73]!==z?(E=t.jsx(Me,{variant:$,children:z}),e[72]=$,e[73]=z,e[74]=E):E=e[74];const ye=o.host??"—";let ne;e[75]!==s||e[76]!==ye?(ne=s("mainPanelTabs.analyticsTab.collectingUnder",{host:ye}),e[75]=s,e[76]=ye,e[77]=ne):ne=e[77];let re;e[78]!==ne?(re=t.jsx("span",{className:"text-sm text-muted-foreground",children:ne}),e[78]=ne,e[79]=re):re=e[79];const je=r.id&&t.jsx("span",{className:"font-mono text-xs text-muted-foreground/80",children:s("mainPanelTabs.analyticsTab.idLabel",{id:r.id})});let oe;e[80]!==E||e[81]!==re||e[82]!==je?(oe=t.jsxs("div",{className:le,children:[E,re,je]}),e[80]=E,e[81]=re,e[82]=je,e[83]=oe):oe=e[83];let ce;e[84]!==D?(ce=D.map(Ys),e[84]=D,e[85]=ce):ce=e[85];let me;e[86]!==r.sampling||e[87]!==s?(me=typeof r.sampling=="number"&&r.sampling<1&&t.jsx(Me,{variant:"outline",children:s("mainPanelTabs.analyticsTab.sampling",{percent:String(Math.round(r.sampling*100))})}),e[86]=r.sampling,e[87]=s,e[88]=me):me=e[88];let de;e[89]!==ce||e[90]!==me?(de=t.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[ce,me]}),e[89]=ce,e[90]=me,e[91]=de):de=e[91];let pe;e[92]!==oe||e[93]!==de?(pe=t.jsxs("div",{className:se,children:[oe,de]}),e[92]=oe,e[93]=de,e[94]=pe):pe=e[94];let M;e[95]!==W||e[96]!==q||e[97]!==J||e[98]!==pe?(M=t.jsx(W,{title:q,action:J,children:pe}),e[95]=W,e[96]=q,e[97]=J,e[98]=pe,e[99]=M):M=e[99];let fe;e[100]!==o?(fe=t.jsx(zs,{status:o}),e[100]=o,e[101]=fe):fe=e[101];let ue;e[102]!==i||e[103]!==r||e[104]!==d||e[105]!==a||e[106]!==u||e[107]!==c?(ue=t.jsx(Hs,{base:i,orgSlug:a,site:c,config:r,open:d,onOpenChange:u}),e[102]=i,e[103]=r,e[104]=d,e[105]=a,e[106]=u,e[107]=c,e[108]=ue):ue=e[108];let ve;e[109]!==s?(ve=s("mainPanelTabs.analyticsTab.unregisterTitle"),e[109]=s,e[110]=ve):ve=e[110];let Ne;e[111]!==ve?(Ne=t.jsx(Vt,{children:ve}),e[111]=ve,e[112]=Ne):Ne=e[112];let we;e[113]!==c||e[114]!==s?(we=s("mainPanelTabs.analyticsTab.unregisterDescription",{site:c}),e[113]=c,e[114]=s,e[115]=we):we=e[115];let Pe;e[116]!==we?(Pe=t.jsx(Bt,{children:we}),e[116]=we,e[117]=Pe):Pe=e[117];let Se;e[118]!==Ne||e[119]!==Pe?(Se=t.jsxs(Ht,{children:[Ne,Pe]}),e[118]=Ne,e[119]=Pe,e[120]=Se):Se=e[120];const Tt=C.isPending;let ke;e[121]!==s?(ke=s("mainPanelTabs.analyticsTab.cancel"),e[121]=s,e[122]=ke):ke=e[122];let _e;e[123]!==C.isPending||e[124]!==ke?(_e=t.jsx(Ut,{disabled:Tt,children:ke}),e[123]=C.isPending,e[124]=ke,e[125]=_e):_e=e[125];let Ce;e[126]!==C?(Ce=ze=>{ze.preventDefault(),C.mutate()},e[126]=C,e[127]=Ce):Ce=e[127];let Ke;e[128]!==C.isPending||e[129]!==s?(Ke=C.isPending?s("mainPanelTabs.analyticsTab.unregistering"):s("mainPanelTabs.analyticsTab.unregister"),e[128]=C.isPending,e[129]=s,e[130]=Ke):Ke=e[130];let Ae;e[131]!==C.isPending||e[132]!==Ce||e[133]!==Ke?(Ae=t.jsx(It,{className:"bg-destructive text-destructive-foreground hover:bg-destructive/90",onClick:Ce,disabled:C.isPending,children:Ke}),e[131]=C.isPending,e[132]=Ce,e[133]=Ke,e[134]=Ae):Ae=e[134];let $e;e[135]!==_e||e[136]!==Ae?($e=t.jsxs(Qt,{children:[_e,Ae]}),e[135]=_e,e[136]=Ae,e[137]=$e):$e=e[137];let Ee;e[138]!==Se||e[139]!==$e?(Ee=t.jsxs(Yt,{children:[Se,$e]}),e[138]=Se,e[139]=$e,e[140]=Ee):Ee=e[140];let De;e[141]!==b||e[142]!==v||e[143]!==Ee?(De=t.jsx(Wt,{open:b,onOpenChange:v,children:Ee}),e[141]=b,e[142]=v,e[143]=Ee,e[144]=De):De=e[144];let He;return e[145]!==O||e[146]!==M||e[147]!==fe||e[148]!==ue||e[149]!==De?(He=t.jsxs("div",{className:ae,children:[O,M,fe,ue,De]}),e[145]=O,e[146]=M,e[147]=fe,e[148]=ue,e[149]=De,e[150]=He):He=e[150],He}function Ys(n){return t.jsx(Me,{variant:"secondary",children:n},n)}function Ws(n){return ge.error(Be(n))}function Gs(n){return ge.error(Be(n))}function Js(n){return ge.error(Be(n))}function Xs(n){const e=te.c(96),{base:i,orgSlug:a,site:c,status:o}=n,s=xe();let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={strict:!1},e[0]=l):l=e[0];const{view:r}=Nt(l),[m,d]=ie.useState("24h"),[u,b]=ie.useState(r??"overview"),[v,p]=ie.useState(!1);let g,h,T,x,y,f,j,N,_,S;if(e[1]!==u||e[2]!==o.config||e[3]!==o.host||e[4]!==s){g=o.config??{};const E=g.enabled!==!1;T=g.modules??["core"],h=u==="live",S="flex flex-col gap-5",_="flex flex-wrap items-start justify-between gap-3",N="flex flex-col gap-2",x="flex flex-wrap items-center gap-2";const ye=E?"success":"outline";let ne;e[15]!==E||e[16]!==s?(ne=s(E?"mainPanelTabs.analyticsTab.active":"mainPanelTabs.analyticsTab.paused"),e[15]=E,e[16]=s,e[17]=ne):ne=e[17],e[18]!==ne||e[19]!==ye?(y=t.jsx(Me,{variant:ye,children:ne}),e[18]=ne,e[19]=ye,e[20]=y):y=e[20],f=t.jsx("span",{className:"text-sm text-muted-foreground",children:s("mainPanelTabs.analyticsTab.collectingUnder",{host:o.host??g.id??"—"})}),j=g.id&&t.jsx("span",{className:"font-mono text-xs text-muted-foreground/70",children:s("mainPanelTabs.analyticsTab.idLabel",{id:g.id})}),e[1]=u,e[2]=o.config,e[3]=o.host,e[4]=s,e[5]=g,e[6]=h,e[7]=T,e[8]=x,e[9]=y,e[10]=f,e[11]=j,e[12]=N,e[13]=_,e[14]=S}else g=e[5],h=e[6],T=e[7],x=e[8],y=e[9],f=e[10],j=e[11],N=e[12],_=e[13],S=e[14];let w;e[21]!==x||e[22]!==y||e[23]!==f||e[24]!==j?(w=t.jsxs("div",{className:x,children:[y,f,j]}),e[21]=x,e[22]=y,e[23]=f,e[24]=j,e[25]=w):w=e[25];let P;e[26]!==T?(P=T.map(Zs),e[26]=T,e[27]=P):P=e[27];let K;e[28]!==g.sampling||e[29]!==s?(K=typeof g.sampling=="number"&&g.sampling<1&&t.jsx(Me,{variant:"outline",children:s("mainPanelTabs.analyticsTab.sampling",{percent:String(Math.round(g.sampling*100))})}),e[28]=g.sampling,e[29]=s,e[30]=K):K=e[30];let k;e[31]!==P||e[32]!==K?(k=t.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[P,K]}),e[31]=P,e[32]=K,e[33]=k):k=e[33];let A;e[34]!==k||e[35]!==N||e[36]!==w?(A=t.jsxs("div",{className:N,children:[w,k]}),e[34]=k,e[35]=N,e[36]=w,e[37]=A):A=e[37];let C;e[38]!==h||e[39]!==m?(C=!h&&t.jsx("div",{className:"flex items-center gap-0.5 rounded-lg border border-border p-0.5",children:rs.map(E=>t.jsx("button",{type:"button",onClick:()=>d(E),className:Le("rounded-lg px-2 py-1 text-xs font-medium tabular-nums transition-colors",m===E?"bg-muted text-foreground":"text-muted-foreground hover:text-foreground"),children:E},E))}),e[38]=h,e[39]=m,e[40]=C):C=e[40];let D,ae;e[41]===Symbol.for("react.memo_cache_sentinel")?(D=()=>p(!0),ae=t.jsx(_t,{className:"size-4"}),e[41]=D,e[42]=ae):(D=e[41],ae=e[42]);let O;e[43]!==s?(O=s("mainPanelTabs.analyticsTab.configSectionTitle"),e[43]=s,e[44]=O):O=e[44];let W;e[45]!==O?(W=t.jsxs(be,{variant:"outline",size:"sm",onClick:D,children:[ae,O]}),e[45]=O,e[46]=W):W=e[46];let q;e[47]!==C||e[48]!==W?(q=t.jsxs("div",{className:"flex items-center gap-2",children:[C,W]}),e[47]=C,e[48]=W,e[49]=q):q=e[49];let G;e[50]!==A||e[51]!==q||e[52]!==_?(G=t.jsxs("div",{className:_,children:[A,q]}),e[50]=A,e[51]=q,e[52]=_,e[53]=G):G=e[53];let R;e[54]!==u||e[55]!==s?(R=is.map(E=>t.jsx("button",{type:"button",onClick:()=>b(E.view),className:Le("shrink-0 border-b-2 px-3 py-2 text-sm font-medium transition-colors",u===E.view?"border-[var(--chart-1)] text-foreground":"border-transparent text-muted-foreground hover:text-foreground"),children:s(E.labelKey)},E.view)),e[54]=u,e[55]=s,e[56]=R):R=e[56];let F;e[57]!==R?(F=t.jsx("div",{className:"flex items-center gap-1 overflow-x-auto border-b border-border",children:R}),e[57]=R,e[58]=F):F=e[58];let L;e[59]!==u||e[60]!==i||e[61]!==g.quota||e[62]!==a||e[63]!==m||e[64]!==c?(L=t.jsx(qs,{base:i,orgSlug:a,site:c,view:u,range:m,quota:g.quota},u),e[59]=u,e[60]=i,e[61]=g.quota,e[62]=a,e[63]=m,e[64]=c,e[65]=L):L=e[65];let I;e[66]===Symbol.for("react.memo_cache_sentinel")?(I=t.jsxs("summary",{className:"flex cursor-pointer list-none items-center gap-2 px-4 py-3 text-sm font-medium text-foreground hover:bg-muted/40",children:[t.jsx(wt,{className:"size-4 text-muted-foreground transition-transform group-open:rotate-90"}),"Send custom events from your code"]}),e[66]=I):I=e[66];let X;e[67]===Symbol.for("react.memo_cache_sentinel")?(X=t.jsxs("p",{children:["Analytics is active automatically — pageviews are collected with no code. For custom events, call the public client API on"," ",t.jsx("span",{className:"font-mono text-foreground",children:"window.__dq"}),":"]}),e[67]=X):X=e[67];let Z;e[68]===Symbol.for("react.memo_cache_sentinel")?(Z=t.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.jsx("dt",{className:"font-mono text-xs text-foreground",children:"pageview()"}),t.jsx("dd",{className:"text-xs",children:"Record a pageview manually (SPA route change)."})]}),e[68]=Z):Z=e[68];let V;e[69]===Symbol.for("react.memo_cache_sentinel")?(V=t.jsx("dt",{className:"font-mono text-xs text-foreground",children:"track(name, props?)"}),e[69]=V):V=e[69];let B;e[70]===Symbol.for("react.memo_cache_sentinel")?(B=t.jsx("span",{className:"font-mono",children:"name"}),e[70]=B):B=e[70];let H;e[71]===Symbol.for("react.memo_cache_sentinel")?(H=t.jsxs("div",{className:"flex flex-col gap-0.5",children:[V,t.jsxs("dd",{className:"text-xs",children:["A custom event. ",B," is lowercase a–z, digits and underscore, up to 40 characters;"," ",t.jsx("span",{className:"font-mono",children:"props"})," is an optional flat object."]})]}),e[71]=H):H=e[71];let U;e[72]===Symbol.for("react.memo_cache_sentinel")?(U=t.jsx("dt",{className:"font-mono text-xs text-foreground",children:"purchase({ transactionId, value, currency, items, itemIds })"}),e[72]=U):U=e[72];let Q;e[73]===Symbol.for("react.memo_cache_sentinel")?(Q=t.jsxs("dl",{className:"flex flex-col gap-2",children:[Z,H,t.jsxs("div",{className:"flex flex-col gap-0.5",children:[U,t.jsxs("dd",{className:"text-xs",children:["A purchase. ",t.jsx("span",{className:"font-mono",children:"transactionId"})," ","dedupes a reloaded confirmation page so a sale isn't counted twice."]})]})]}),e[73]=Q):Q=e[73];let ee;e[74]===Symbol.for("react.memo_cache_sentinel")?(ee=t.jsxs("details",{className:"group rounded-xl border border-border bg-card",children:[I,t.jsxs("div",{className:"flex flex-col gap-3 border-t border-border px-4 py-4 text-sm text-muted-foreground",children:[X,Q,t.jsx("div",{className:"rounded-lg border border-border bg-muted/30 px-3 py-2",children:t.jsx("code",{className:"whitespace-pre-wrap break-all text-xs text-muted-foreground",children:`window.__dq.track("newsletter_signup", { plan: "pro" })
|
|
2
|
+
window.__dq.purchase({ transactionId: "A123", value: 99.9, currency: "BRL" })`})})]})]}),e[74]=ee):ee=e[74];let Y;e[75]!==s?(Y=s("mainPanelTabs.analyticsTab.configSectionTitle"),e[75]=s,e[76]=Y):Y=e[76];let J;e[77]!==Y?(J=t.jsx(rt,{children:t.jsx(ot,{children:Y})}),e[77]=Y,e[78]=J):J=e[78];let se;e[79]!==i||e[80]!==a||e[81]!==c||e[82]!==o?(se=t.jsx(Qs,{base:i,orgSlug:a,site:c,status:o}),e[79]=i,e[80]=a,e[81]=c,e[82]=o,e[83]=se):se=e[83];let le;e[84]!==J||e[85]!==se?(le=t.jsxs(ct,{className:"max-h-[85vh] overflow-y-auto sm:max-w-lg",children:[J,se]}),e[84]=J,e[85]=se,e[86]=le):le=e[86];let $;e[87]!==v||e[88]!==le?($=t.jsx(mt,{open:v,onOpenChange:p,children:le}),e[87]=v,e[88]=le,e[89]=$):$=e[89];let z;return e[90]!==G||e[91]!==F||e[92]!==L||e[93]!==$||e[94]!==S?(z=t.jsxs("div",{className:S,children:[G,F,L,ee,$]}),e[90]=G,e[91]=F,e[92]=L,e[93]=$,e[94]=S,e[95]=z):z=e[95],z}function Zs(n){return t.jsx(Me,{variant:"secondary",children:n},n)}function ea(n){const e=te.c(46),{virtualMcpId:i}=n,a=xe(),{org:c}=vt(),o=Gt(i),s=Jt(o),l=!!s,r=s?`/api/${c.slug}/hosting/${encodeURIComponent(s)}`:"";let m;e[0]!==r?(m=()=>pt(`${r}/analytics/status`),e[0]=r,e[1]=m):m=e[1];const d=it({queryKey:Ve.analyticsStatus(c.slug,s??""),queryFn:m,enabled:l,retry:!1,staleTime:3e4}),[u,b]=ie.useState(null);if(!s){let k;e[2]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx(Oe,{className:"size-5"}),e[2]=k):k=e[2];let A;e[3]!==a?(A=a("mainPanelTabs.analyticsTab.noSiteTitle"),e[3]=a,e[4]=A):A=e[4];let C;e[5]!==a?(C=a("mainPanelTabs.analyticsTab.noSiteDescription"),e[5]=a,e[6]=C):C=e[6];let D;return e[7]!==A||e[8]!==C?(D=t.jsx("div",{className:"flex-1 flex items-center justify-center p-6",children:t.jsx(Re,{icon:k,title:A,description:C})}),e[7]=A,e[8]=C,e[9]=D):D=e[9],D}if(cs(d.error)){let k;e[10]===Symbol.for("react.memo_cache_sentinel")?(k=t.jsx(Oe,{className:"size-5"}),e[10]=k):k=e[10];let A;e[11]!==a?(A=a("mainPanelTabs.analyticsTab.notConnectedTitle"),e[11]=a,e[12]=A):A=e[12];let C;e[13]!==a?(C=a("mainPanelTabs.analyticsTab.notConnectedDescription"),e[13]=a,e[14]=C):C=e[14];let D;return e[15]!==A||e[16]!==C?(D=t.jsx("div",{className:"flex-1 flex items-center justify-center p-6",children:t.jsx(Re,{icon:k,title:A,description:C})}),e[15]=A,e[16]=C,e[17]=D):D=e[17],D}let v;e[18]!==d.data?(v=d.data??{},e[18]=d.data,e[19]=v):v=e[19];const p=v,g="h-full min-h-0 overflow-y-auto",h="mx-auto flex w-full max-w-[1400px] flex-col gap-6 p-6",T="flex flex-col gap-1";let x;e[20]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(Oe,{className:"size-[18px] text-muted-foreground"}),e[20]=x):x=e[20];let y;e[21]!==a?(y=a("mainPanelTabs.analyticsTab.title"),e[21]=a,e[22]=y):y=e[22];let f;e[23]!==y?(f=t.jsxs("div",{className:"flex items-center gap-2",children:[x,t.jsx("h2",{className:"text-base font-semibold text-foreground",children:y})]}),e[23]=y,e[24]=f):f=e[24];const j="text-sm text-muted-foreground",N=a("mainPanelTabs.analyticsTab.subtitle",{site:s});let _;e[25]!==N?(_=t.jsx("p",{className:j,children:N}),e[25]=N,e[26]=_):_=e[26];let S;e[27]!==_||e[28]!==f?(S=t.jsxs("div",{className:T,children:[f,_]}),e[27]=_,e[28]=f,e[29]=S):S=e[29];let w;e[30]!==u||e[31]!==b?(w=u&&t.jsx(jt,{result:u,onDismiss:()=>b(null)}),e[30]=u,e[31]=b,e[32]=w):w=e[32];let P;e[33]!==r||e[34]!==c.slug||e[35]!==b||e[36]!==s||e[37]!==p||e[38]!==d.error||e[39]!==d.isLoading||e[40]!==a?(P=d.isLoading?t.jsxs("div",{className:"flex flex-col gap-3",children:[t.jsx(Ue,{className:"h-8 w-full"}),t.jsx(Ue,{className:"h-40 w-full"})]}):d.error?xt(d.error)?t.jsx(Re,{icon:t.jsx(Oe,{className:"size-5"}),title:a("mainPanelTabs.analyticsTab.backendNotConfiguredTitle"),description:a("mainPanelTabs.analyticsTab.backendNotConfiguredDescription")}):t.jsx(Re,{icon:t.jsx(Oe,{className:"size-5"}),title:a("mainPanelTabs.analyticsTab.statusError")}):p.configured===!1?t.jsx(Re,{icon:t.jsx(Oe,{className:"size-5"}),title:a("mainPanelTabs.analyticsTab.backendNotConfiguredTitle"),description:a("mainPanelTabs.analyticsTab.backendNotConfiguredDescription")}):p.registered?t.jsx(Xs,{base:r,orgSlug:c.slug,site:s,status:p}):t.jsx(Is,{base:r,orgSlug:c.slug,site:s,host:p.host??null,onRegistered:b}),e[33]=r,e[34]=c.slug,e[35]=b,e[36]=s,e[37]=p,e[38]=d.error,e[39]=d.isLoading,e[40]=a,e[41]=P):P=e[41];let K;return e[42]!==S||e[43]!==w||e[44]!==P?(K=t.jsx("div",{className:g,children:t.jsxs("div",{className:h,children:[S,w,P]})}),e[42]=S,e[43]=w,e[44]=P,e[45]=K):K=e[45],K}function ta(){const n=te.c(3),e=ns(),i=ls();let a;return n[0]!==i.analytics||n[1]!==e?(a=i.analytics?t.jsx(ea,{virtualMcpId:e}):t.jsx(as,{virtualMcpId:e}),n[0]=i.analytics,n[1]=e,n[2]=a):a=n[2],a}function En(){const n=te.c(1);let e;return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=t.jsx(kt.Content,{children:t.jsx(ta,{})}),n[0]=e):e=n[0],e}export{En as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c,j as s,_ as u}from"./index-CRbDzsEl.js";import{C as f}from"./index-BW9tBS1_.js";import{a as x}from"./thread-route-gGOzpjkp.js";import{u as g}from"./use-task-metadata-BULXjcEM.js";import{AppViewContent as h}from"./project-app-view-DOlvQRFJ.js";import"./use-mobile-BcwC7VU3.js";import"./thread-button-D0vpHKhc.js";import"./agent-icon-CSrsRkkV.js";import"./AlertCircle-BBiRNTdE.js";import"./Tool01-D8RNlK5k.js";import"./ArrowUp-XUO4rGpO.js";import"./ArrowLeft-DwPfX3sc.js";import"./LinkBroken01-BFW8MxYc.js";import"./ShoppingBag01-C_AR4ZKW.js";import"./ZoomOut-DJOChAz1.js";import"./Building02-CFG818HY.js";import"./CheckCircle-BZiV5rFy.js";import"./ChevronUp-ZSzJudc4.js";import"./ChevronSelectorVertical-Dc4zDElk.js";import"./UserSquare-BG_D4lBt.js";import"./Copy01-CT9uxfj6.js";import"./CreditCard01-DCwoKma6.js";import"./DotsVertical-CcRpaMtq.js";import"./Image01-DUunwh52.js";import"./Globe04-D88PtZSB.js";import"./SwitchHorizontal01-D8mpLNM6.js";import"./Key01-Dy9XOW24.js";import"./Link01-BDbdWLwx.js";import"./Monitor01-Cm6_ReiN.js";import"./Sun-Dzm8FpU3.js";import"./Play-DFfgxv2q.js";import"./Plus-clvoB9-y.js";import"./SearchMd-Bg-9XsfQ.js";import"./Trash01-ByfCfoe2.js";import"./Upload01-BOzWcBO4.js";import"./User01-VVR3ncLA.js";import"./Users01-BT5Jdc2I.js";import"./XClose-Ck0EFhGe.js";import"./use-chat-layout-state-n4Q3uYHD.js";import"./use-file-configs-BJG54sLn.js";import"./use-organization-settings-C2COOtae.js";import"./schema-DCzFPjhQ.js";import"./task-board-Cq7KN9Yp.js";import"./site-slug-DebpOoQq.js";import"./repository-binding-GEAUbB-O.js";import"./use-mcp-client-BWo29jbN.js";import"./auth-Cf8kTvK7.js";import"./use-panel-navigate-sjPSBICL.js";import"./use-project-scope-B_oLVbNv.js";import"./thread-intent-DTPz1weL.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-Bb7_5bsI.js";import"./slugify-CEUa2lfQ.js";import"./sheet-Bg01hTvG.js";import"./tooltip-3DBbiHrv.js";import"./index-DPPcuuZa.js";import"./toolbar-icon-button-BbfFE6qt.js";import"./shell-layout-BO31z5MQ.js";import"./avatar-CVhMMaTf.js";import"./use-clock-tick-X8apRSs5.js";import"./command-CJiwms5W.js";import"./index-4oHb6320.js";import"./integration-icon-BELz_pOH.js";import"./project-icon-CgRPdhMz.js";import"./new-project-dialog-CU6GK7Hi.js";import"./label-BUw2LYOJ.js";import"./repository-import-picker-CGZicTtt.js";import"./use-navigate-to-agent-f1RDTOQU.js";import"./repository-picker-ipWiqqIY.js";import"./useInfiniteQuery-BBVki4Du.js";import"./infiniteQueryObserver-Dhuk-wHX.js";import"./collection-search-JcNHcOFg.js";import"./use-debounced-value-Db_6wQub.js";import"./required-auth-layout-B0JL0M-z.js";import"./autosend-Dbvfg9pv.js";import"./use-org-sso-DQNJJVcp.js";import"./resizable-CNroF4sn.js";import"./icon-button-D9OpoKyB.js";import"./tool-namespace-BsBj6Gec.js";import"./use-mcp-tools-D9a3atY2.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-1q9SfIz-.js";import"./types-DJQTaYxP.js";import"./chat-context-NYUfgJBl.js";import"./use-decopilot-events-D14uF_Cy.js";import"./use-ai-providers-scSugiQF.js";import"./use-chat-navigation-CpL4JFZX.js";import"./location-BjlyegC2.js";import"./task-route-Cj_KfcXd.js";import"./core.esm-BaMzqjA4.js";import"./site-url-en5df9c-.js";import"./use-connect-companion-DejR02Br.js";import"./companions-core-DzyeM-yJ.js";import"./metadata-D72DunRR.js";import"./github-repo-scope-ByTYKy_L.js";import"./form-Bn1uWhLp.js";import"./provision-repo-scoped-github-connection-lckxpDHD.js";import"./useQueries-Ij5noImS.js";import"./authenticate-and-persist-oauth-CNIjDkAv.js";import"./mcp-oauth-DJzQquAH.js";import"./mcp-oauth-DcDGTHX8.js";import"./track-2QxiEKmh.js";import"./extract-connection-data-BWH-Gguq.js";import"./connection-pgjV95kc.js";import"./url-slug-CVpOSHeG.js";const $=u("/shell/$org/org-shell/agent-shell/projects/$agentId/apps/$connectionId/$toolName");function j(){const t=c.c(9),{connectionId:o,toolName:r}=$.useParams(),l=x(),i=g(l);let p;t[0]!==o||t[1]!==i?.expanded_tools||t[2]!==r?(p=i?.expanded_tools?.find(a=>a.appId===o&&a.toolName===r),t[0]=o,t[1]=i?.expanded_tools,t[2]=r,t[3]=p):p=t[3];const d=p,e=`${o}:${r}`,n=d?.args;let m;return t[4]!==o||t[5]!==e||t[6]!==n||t[7]!==r?(m=s.jsx(h,{connectionId:o,toolName:r,args:n},e),t[4]=o,t[5]=e,t[6]=n,t[7]=r,t[8]=m):m=t[8],m}function jo(){const t=c.c(1);let o;return t[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(f.Content,{children:s.jsx(j,{})}),t[0]=o):o=t[0],o}export{jo as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as F,j as i,b as ce,r as ee,fH as ye,h as ge,B as xe,l as je,dy as Pe,t as ae,T as De,ah as Ne,U as ue,a6 as ve,V as Ce,X as Se}from"./index-CRbDzsEl.js";import{C as we}from"./index-BW9tBS1_.js";import{A as Ae}from"./agent-view-guard-CbFaNTaO.js";import{a as _e}from"./Copy01-CT9uxfj6.js";import{i as ze}from"./DotsVertical-CcRpaMtq.js";import{b as Fe,a as Ue}from"./ZoomOut-DJOChAz1.js";import{a as Ie}from"./Image01-DUunwh52.js";import{s as $e}from"./Trash01-ByfCfoe2.js";import{i as he}from"./Upload01-BOzWcBO4.js";import{A as Te,a as Me,b as Ee,c as Oe,g as Re,d as Be,e as Le,f as Ve}from"./alert-dialog-Bq1vUmcb.js";import{S as qe}from"./search-input-DXojQXHS.js";import{a as Ge}from"./repository-binding-GEAUbB-O.js";import{u as He}from"./use-debounced-value-Db_6wQub.js";import{a as We}from"./use-file-configs-BJG54sLn.js";import{u as Ke,a as Qe,e as Xe,i as Ye,b as ke,f as Je,c as Ze}from"./asset-utils-D2JqsHLw.js";import{d as et}from"./use-chat-layout-state-n4Q3uYHD.js";import{r as tt}from"./site-slug-DebpOoQq.js";import{b as it}from"./thread-route-gGOzpjkp.js";import"./use-mobile-BcwC7VU3.js";import"./thread-button-D0vpHKhc.js";import"./agent-icon-CSrsRkkV.js";import"./AlertCircle-BBiRNTdE.js";import"./Tool01-D8RNlK5k.js";import"./ArrowUp-XUO4rGpO.js";import"./ArrowLeft-DwPfX3sc.js";import"./LinkBroken01-BFW8MxYc.js";import"./ShoppingBag01-C_AR4ZKW.js";import"./Building02-CFG818HY.js";import"./CheckCircle-BZiV5rFy.js";import"./ChevronUp-ZSzJudc4.js";import"./ChevronSelectorVertical-Dc4zDElk.js";import"./UserSquare-BG_D4lBt.js";import"./CreditCard01-DCwoKma6.js";import"./Globe04-D88PtZSB.js";import"./SwitchHorizontal01-D8mpLNM6.js";import"./Key01-Dy9XOW24.js";import"./Link01-BDbdWLwx.js";import"./Monitor01-Cm6_ReiN.js";import"./Sun-Dzm8FpU3.js";import"./Play-DFfgxv2q.js";import"./Plus-clvoB9-y.js";import"./SearchMd-Bg-9XsfQ.js";import"./User01-VVR3ncLA.js";import"./Users01-BT5Jdc2I.js";import"./XClose-Ck0EFhGe.js";import"./sheet-Bg01hTvG.js";import"./tooltip-3DBbiHrv.js";import"./index-DPPcuuZa.js";import"./toolbar-icon-button-BbfFE6qt.js";import"./shell-layout-BO31z5MQ.js";import"./avatar-CVhMMaTf.js";import"./use-project-scope-B_oLVbNv.js";import"./use-panel-navigate-sjPSBICL.js";import"./use-clock-tick-X8apRSs5.js";import"./command-CJiwms5W.js";import"./index-4oHb6320.js";import"./integration-icon-BELz_pOH.js";import"./project-icon-CgRPdhMz.js";import"./use-mcp-client-BWo29jbN.js";import"./auth-Cf8kTvK7.js";import"./new-project-dialog-CU6GK7Hi.js";import"./label-BUw2LYOJ.js";import"./repository-import-picker-CGZicTtt.js";import"./use-navigate-to-agent-f1RDTOQU.js";import"./thread-intent-DTPz1weL.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-Bb7_5bsI.js";import"./task-board-Cq7KN9Yp.js";import"./schema-DCzFPjhQ.js";import"./slugify-CEUa2lfQ.js";import"./repository-picker-ipWiqqIY.js";import"./useInfiniteQuery-BBVki4Du.js";import"./infiniteQueryObserver-Dhuk-wHX.js";import"./collection-search-JcNHcOFg.js";import"./use-organization-settings-C2COOtae.js";import"./required-auth-layout-B0JL0M-z.js";import"./autosend-Dbvfg9pv.js";import"./use-org-sso-DQNJJVcp.js";import"./resizable-CNroF4sn.js";import"./icon-button-D9OpoKyB.js";import"./use-main-panel-tabs-Cal5VUTK.js";import"./use-connection--fjYRP_g.js";import"./use-mcp-tools-D9a3atY2.js";import"./types-DJQTaYxP.js";import"./utils-CVEq3hMx.js";import"./use-sandbox-events-BxpyP1-g.js";import"./chat-context-NYUfgJBl.js";import"./use-decopilot-events-D14uF_Cy.js";import"./use-ai-providers-scSugiQF.js";import"./use-chat-navigation-CpL4JFZX.js";import"./location-BjlyegC2.js";import"./tool-namespace-BsBj6Gec.js";import"./drawer-DWjMBwyf.js";import"./use-mcp-prompts-BmY4-dHy.js";import"./usage-stats-x-NR7rQ4.js";import"./form-Bn1uWhLp.js";import"./markdown-CW257Zz5.js";import"./use-copy-DWNF2ghn.js";import"./format-time-CjIPQhCN.js";import"./differenceInSeconds-C3x8sHUj.js";import"./input-XQLahzDk.js";import"./file-type-icon-hf5iGs8U.js";import"./chat-draft-BIT8lUsr.js";import"./select-nSDsr0Zi.js";import"./index-BdQq_4o_.js";import"./tabs-D0ZapmHf.js";import"./use-deco-credits-DiTvJIB8.js";import"./toggle-group-CZ2TAUmo.js";import"./use-open-billing-url-B1MJm7M5.js";import"./index-m-B-HtFl.js";import"./checkbox-1mSDcatb.js";import"./ai-providers-logos-DD3qZ33J.js";import"./popover-UZd_hI6l.js";import"./input-C8SbKhCo.js";import"./suggestion-D6_m0iRs.js";import"./use-org-fs-BruBSf1P.js";import"./question-004-sINsf4GQ.js";import"./use-members-BsPA0Ct2.js";import"./use-org-auth-client-sBWqKZAZ.js";import"./feature-paywall-D3P0r-v1.js";import"./plan-ladder-eppTKAOz.js";import"./add-connection-dialog-DhxH1mO6.js";import"./extract-connection-data-BWH-Gguq.js";import"./metadata-D72DunRR.js";import"./connection-pgjV95kc.js";import"./url-slug-CVpOSHeG.js";import"./connection-card-CWkexnWw.js";import"./connection-slug-CITJ0kGN.js";import"./textarea-DKdq_MAz.js";import"./schema-DxY623qB.js";import"./connection-form-helpers-W4yLfkzt.js";import"./authenticate-and-persist-oauth-CNIjDkAv.js";import"./mcp-oauth-DJzQquAH.js";import"./mcp-oauth-DcDGTHX8.js";import"./collection-tabs-CSZlwXCA.js";import"./badge-GBNejOns.js";import"./use-infinite-scroll-BPxCDDTo.js";import"./useSuspenseInfiniteQuery-DP1_6mso.js";import"./use-task-board-events-B4nYkYUb.js";import"./pair-gT7Vn8Gp.js";import"./collapsible-CeMlXkLt.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-1q9SfIz-.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./use-thread-outputs-CaENK2ep.js";import"./sandbox-url-D3mC8qhT.js";import"./resolve-tab-icon-Dxlq4MHo.js";import"./use-task-metadata-BULXjcEM.js";import"./virtual-mcp-eMBT1Rwh.js";function st(r){const e=F.c(6),{virtualMcpId:t}=r,s=Ge(t),l=We();let o;e[0]!==l||e[1]!==s?(o=et(l,tt(s)),e[0]=l,e[1]=s,e[2]=o):o=e[2];const n=o;if(!n){let a;return e[3]===Symbol.for("react.memo_cache_sentinel")?(a=i.jsx(rt,{}),e[3]=a):a=e[3],a}let c;return e[4]!==n?(c=i.jsx(nt,{config:n}),e[4]=n,e[5]=c):c=e[5],c}function rt(){const r=F.c(12),e=ce();let t;r[0]===Symbol.for("react.memo_cache_sentinel")?(t=i.jsx("div",{className:"flex size-12 items-center justify-center rounded-full bg-muted",children:i.jsx(Ue,{size:20,className:"text-muted-foreground"})}),r[0]=t):t=r[0];let s;r[1]!==e?(s=e("assets.browser.noBucketTitle"),r[1]=e,r[2]=s):s=r[2];let l;r[3]!==s?(l=i.jsx("p",{className:"text-sm font-medium",children:s}),r[3]=s,r[4]=l):l=r[4];let o;r[5]!==e?(o=e("assets.browser.noBucketDescription"),r[5]=e,r[6]=o):o=r[6];let n;r[7]!==o?(n=i.jsx("p",{className:"mt-1 max-w-sm text-xs text-muted-foreground",children:o}),r[7]=o,r[8]=n):n=r[8];let c;return r[9]!==l||r[10]!==n?(c=i.jsxs("div",{className:"flex h-full min-h-0 flex-col items-center justify-center gap-3 p-10 text-center",children:[t,i.jsxs("div",{children:[l,n]})]}),r[9]=l,r[10]=n,r[11]=c):c=r[11],c}function lt(r){return r<0||r<640?2:r<768?3:r<1024?4:5}function ot(r,e){const t=Array.from({length:e},()=>[]);return r.forEach((s,l)=>t[l%e].push(s)),t}function nt(r){const e=F.c(99),{config:t}=r,s=ce(),[l,o]=ee.useState(""),n=He(l,300);let c;e[0]!==t.id||e[1]!==n?(c={configId:t.id,search:n},e[0]=t.id,e[1]=n,e[2]=c):c=e[2];const a=Ke(c),m=Qe(),[y,p]=ee.useState(!1),[d,g]=ee.useState(null),u=ee.useRef(null);let h;e[3]!==t.id||e[4]!==a||e[5]!==s||e[6]!==m?(h=async function(A){if(!A)return;const Z=Array.from(A);if(Z.length===0)return;const I=[];for(const R of Z)try{await m.mutateAsync({configId:t.id,file:R})}catch($){const z=$;I.push(`${R.name} (${z instanceof Error?z.message:"upload failed"})`)}await a.refetch(),I.length>0&&ae.error(I.length===Z.length?s("filePicker.filePickerDialog.uploadFailedAll",{errors:I.join("; ")}):s("filePicker.filePickerDialog.uploadFailedSome",{errors:I.join("; ")}))},e[3]=t.id,e[4]=a,e[5]=s,e[6]=m,e[7]=h):h=e[7];const x=h;let f;e[8]===Symbol.for("react.memo_cache_sentinel")?(f=function(A){A.preventDefault(),p(!0)},e[8]=f):f=e[8];const b=f;let v;e[9]===Symbol.for("react.memo_cache_sentinel")?(v=function(){p(!1)},e[9]=v):v=e[9];const _=v;let k;e[10]!==x?(k=function(A){A.preventDefault(),A.stopPropagation(),p(!1),x(A.dataTransfer.files)},e[10]=x,e[11]=k):k=e[11];const j=k,[P,C]=ye();let D,N,S,w,T,U;if(e[12]!==t.name||e[13]!==n||e[14]!==C||e[15]!==P||e[16]!==x||e[17]!==y||e[18]!==a.data?.pages||e[19]!==a.isFetching||e[20]!==a.isFetchingNextPage||e[21]!==j||e[22]!==l||e[23]!==s||e[24]!==m.isPending){const A=(a.data?.pages??[]).flatMap(at),Z=ot(A,lt(P)),I=n.trim(),R=l!==n||a.isFetching&&!a.isFetchingNextPage;T="flex h-full min-h-0 flex-col gap-3 p-4";let $;e[31]!==s?($=s("assets.browser.title"),e[31]=s,e[32]=$):$=e[32];let z;e[33]!==$?(z=i.jsx("h2",{className:"text-sm font-semibold",children:$}),e[33]=$,e[34]=z):z=e[34];let B;e[35]!==t.name||e[36]!==s?(B=s("assets.browser.bucketLabel",{name:t.name}),e[35]=t.name,e[36]=s,e[37]=B):B=e[37];let L;e[38]!==B?(L=i.jsx("p",{className:"truncate text-xs text-muted-foreground",children:B}),e[38]=B,e[39]=L):L=e[39];let V;e[40]!==z||e[41]!==L?(V=i.jsxs("div",{className:"min-w-0",children:[z,L]}),e[40]=z,e[41]=L,e[42]=V):V=e[42];let re;e[43]===Symbol.for("react.memo_cache_sentinel")?(re=()=>u.current?.click(),e[43]=re):re=e[43];let q;e[44]!==m.isPending?(q=m.isPending?i.jsx(ge,{className:"size-3.5"}):i.jsx(he,{size:14}),e[44]=m.isPending,e[45]=q):q=e[45];let G;e[46]!==s||e[47]!==m.isPending?(G=m.isPending?s("filePicker.filePickerDialog.uploading"):s("filePicker.filePickerDialog.dropFilesOrClick"),e[46]=s,e[47]=m.isPending,e[48]=G):G=e[48];let H;e[49]!==q||e[50]!==G||e[51]!==m.isPending?(H=i.jsxs(xe,{type:"button",size:"sm",disabled:m.isPending,onClick:re,children:[q,G]}),e[49]=q,e[50]=G,e[51]=m.isPending,e[52]=H):H=e[52];let W;e[53]!==x?(W=i.jsx("input",{ref:u,type:"file",multiple:!0,className:"hidden",onChange:ne=>{const pe=Array.from(ne.target.files??[]);ne.target.value="",x(pe)}}),e[53]=x,e[54]=W):W=e[54],e[55]!==V||e[56]!==H||e[57]!==W?(U=i.jsxs("div",{className:"flex shrink-0 items-center justify-between gap-3",children:[V,H,W]}),e[55]=V,e[56]=H,e[57]=W,e[58]=U):U=e[58];let K;e[59]!==s?(K=s("filePicker.filePickerDialog.searchFilesPlaceholder"),e[59]=s,e[60]=K):K=e[60],e[61]!==R||e[62]!==l||e[63]!==K?(D=i.jsx(qe,{value:l,onChange:o,isSearching:R,placeholder:K,className:"shrink-0"}),e[61]=R,e[62]=l,e[63]=K,e[64]=D):D=e[64];let le;e[65]===Symbol.for("react.memo_cache_sentinel")?(le=()=>u.current?.click(),e[65]=le):le=e[65];const me=y&&"border-primary bg-primary/5",fe=m.isPending&&"pointer-events-none opacity-60";let Q;e[66]!==me||e[67]!==fe?(Q=je("flex shrink-0 flex-col items-center justify-center gap-1 rounded-xl border border-dashed border-border/60 p-4 text-center transition-colors",me,fe),e[66]=me,e[67]=fe,e[68]=Q):Q=e[68];let oe;e[69]===Symbol.for("react.memo_cache_sentinel")?(oe=i.jsx(he,{size:16,className:"text-muted-foreground"}),e[69]=oe):oe=e[69];let X;e[70]!==s?(X=s("filePicker.filePickerDialog.dropFilesOrClick"),e[70]=s,e[71]=X):X=e[71];let Y;e[72]!==s?(Y=s("filePicker.filePickerDialog.uploadSizeLimit"),e[72]=s,e[73]=Y):Y=e[73];let J;e[74]!==X||e[75]!==Y?(J=i.jsxs("p",{className:"text-xs text-muted-foreground",children:[X," ",Y]}),e[74]=X,e[75]=Y,e[76]=J):J=e[76],e[77]!==j||e[78]!==Q||e[79]!==J?(N=i.jsxs("button",{type:"button",onClick:le,onDragOver:b,onDragLeave:_,onDrop:j,className:Q,children:[oe,J]}),e[77]=j,e[78]=Q,e[79]=J,e[80]=N):N=e[80],S="min-h-0 flex-1 overflow-y-auto pr-1",w=A.length===0?I?i.jsx(be,{title:s("filePicker.filePickerDialog.noMatches",{query:I}),description:s("filePicker.filePickerDialog.tryDifferentSearchOrLoadMore")}):i.jsx(be,{title:s("filePicker.filePickerDialog.noFilesYet"),description:s("filePicker.filePickerDialog.dropFileToGetStarted")}):i.jsx("div",{ref:C,className:"flex items-start gap-3",children:Z.map((ne,pe)=>i.jsx("div",{className:"flex min-w-0 flex-1 flex-col gap-3",children:ne.map(de=>i.jsx(ct,{item:de,onDelete:()=>g(de)},de.key))},pe))}),e[12]=t.name,e[13]=n,e[14]=C,e[15]=P,e[16]=x,e[17]=y,e[18]=a.data?.pages,e[19]=a.isFetching,e[20]=a.isFetchingNextPage,e[21]=j,e[22]=l,e[23]=s,e[24]=m.isPending,e[25]=D,e[26]=N,e[27]=S,e[28]=w,e[29]=T,e[30]=U}else D=e[25],N=e[26],S=e[27],w=e[28],T=e[29],U=e[30];let M;e[81]!==a||e[82]!==s?(M=a.hasNextPage&&i.jsx("div",{className:"flex justify-center py-4",children:i.jsx(xe,{type:"button",variant:"outline",size:"sm",disabled:a.isFetchingNextPage,onClick:()=>a.fetchNextPage(),children:a.isFetchingNextPage?i.jsxs(i.Fragment,{children:[i.jsx(ge,{className:"size-3.5"}),s("filePicker.filePickerDialog.loading")]}):s("filePicker.filePickerDialog.loadMore")})}),e[81]=a,e[82]=s,e[83]=M):M=e[83];let E;e[84]!==M||e[85]!==S||e[86]!==w?(E=i.jsxs("div",{className:S,children:[w,M]}),e[84]=M,e[85]=S,e[86]=w,e[87]=E):E=e[87];let te;e[88]===Symbol.for("react.memo_cache_sentinel")?(te=()=>g(null),e[88]=te):te=e[88];let O;e[89]!==t.id||e[90]!==d?(O=i.jsx(pt,{configId:t.id,item:d,onClose:te}),e[89]=t.id,e[90]=d,e[91]=O):O=e[91];let ie;return e[92]!==D||e[93]!==N||e[94]!==E||e[95]!==O||e[96]!==T||e[97]!==U?(ie=i.jsxs("div",{className:T,children:[U,D,N,E,O]}),e[92]=D,e[93]=N,e[94]=E,e[95]=O,e[96]=T,e[97]=U,e[98]=ie):ie=e[98],ie}function at(r){return r.items}function be(r){const e=F.c(8),{title:t,description:s}=r;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=i.jsx("div",{className:"flex size-10 items-center justify-center rounded-full bg-muted",children:i.jsx(Ie,{size:18,className:"text-muted-foreground"})}),e[0]=l):l=e[0];let o;e[1]!==t?(o=i.jsx("p",{className:"text-sm font-medium",children:t}),e[1]=t,e[2]=o):o=e[2];let n;e[3]!==s?(n=i.jsx("p",{className:"text-xs text-muted-foreground",children:s}),e[3]=s,e[4]=n):n=e[4];let c;return e[5]!==o||e[6]!==n?(c=i.jsxs("div",{className:"flex h-full min-h-40 flex-col items-center justify-center gap-2 py-8 text-center",children:[l,o,n]}),e[5]=o,e[6]=n,e[7]=c):c=e[7],c}function ct(r){const e=F.c(34),{item:t,onDelete:s}=r;let l;e[0]!==t.key?(l=Xe(t.key),e[0]=t.key,e[1]=l):l=e[1];const o=l;let n;e[2]!==t.key?(n=Ye(t.key),e[2]=t.key,e[3]=n):n=e[3];const c=n;let a;e[4]!==c||e[5]!==t.key||e[6]!==t.publicUrl?(a=c?i.jsx("img",{src:t.publicUrl,alt:t.key,loading:"lazy",className:"block h-auto w-full",onError:mt}):i.jsx("div",{className:"flex aspect-square items-center justify-center",children:i.jsx(Fe,{size:28,className:"text-muted-foreground"})}),e[4]=c,e[5]=t.key,e[6]=t.publicUrl,e[7]=a):a=e[7];let m;e[8]!==t.key||e[9]!==t.publicUrl||e[10]!==a?(m=i.jsx("a",{href:t.publicUrl,target:"_blank",rel:"noreferrer",title:t.key,className:"block transition hover:ring-2 hover:ring-inset hover:ring-primary",children:a}),e[8]=t.key,e[9]=t.publicUrl,e[10]=a,e[11]=m):m=e[11];const y=t.key;let p;e[12]!==t.key?(p=ke(t.key),e[12]=t.key,e[13]=p):p=e[13];let d;e[14]!==t.key||e[15]!==p?(d=i.jsx("p",{className:"truncate text-xs font-medium",title:y,children:p}),e[14]=t.key,e[15]=p,e[16]=d):d=e[16];let g;e[17]!==t.size?(g=Je(t.size),e[17]=t.size,e[18]=g):g=e[18];let u;e[19]!==o||e[20]!==g?(u=i.jsxs("p",{className:"text-[10px] uppercase text-muted-foreground",children:[o," · ",g]}),e[19]=o,e[20]=g,e[21]=u):u=e[21];let h;e[22]!==d||e[23]!==u?(h=i.jsxs("div",{className:"min-w-0 flex-1",children:[d,u]}),e[22]=d,e[23]=u,e[24]=h):h=e[24];let x;e[25]!==t||e[26]!==s?(x=i.jsx(ft,{item:t,onDelete:s}),e[25]=t,e[26]=s,e[27]=x):x=e[27];let f;e[28]!==h||e[29]!==x?(f=i.jsxs("div",{className:"flex items-center gap-1 border-t border-border/60 bg-background px-2 py-1.5",children:[h,x]}),e[28]=h,e[29]=x,e[30]=f):f=e[30];let b;return e[31]!==f||e[32]!==m?(b=i.jsxs("div",{className:"group relative flex flex-col overflow-hidden rounded-lg border border-border/60 bg-muted",children:[m,f]}),e[31]=f,e[32]=m,e[33]=b):b=e[33],b}function mt(r){r.target.style.display="none"}function ft(r){const e=F.c(36),{item:t,onDelete:s}=r,l=ce(),[o,n]=ee.useState(!1);let c;e[0]!==t.publicUrl||e[1]!==l?(c=async function(){try{await navigator.clipboard.writeText(t.publicUrl),n(!0),window.setTimeout(()=>n(!1),1500)}catch{ae.error(l("filePicker.filePickerDialog.failedToCopyUrl"))}},e[0]=t.publicUrl,e[1]=l,e[2]=c):c=e[2];const a=c;let m;e[3]!==l?(m=l("filePicker.filePickerDialog.assetActions"),e[3]=l,e[4]=m):m=e[4];let y;e[5]===Symbol.for("react.memo_cache_sentinel")?(y=i.jsx(ze,{size:14}),e[5]=y):y=e[5];let p;e[6]!==m?(p=i.jsx(De,{asChild:!0,children:i.jsx(xe,{type:"button",variant:"ghost",size:"icon",className:"size-7 shrink-0","aria-label":m,children:y})}),e[6]=m,e[7]=p):p=e[7];let d;e[8]!==o?(d=o?i.jsx(Ne,{size:14}):i.jsx(_e,{size:14}),e[8]=o,e[9]=d):d=e[9];let g;e[10]!==o||e[11]!==l?(g=l(o?"filePicker.filePickerDialog.copied":"filePicker.filePickerDialog.copyUrl"),e[10]=o,e[11]=l,e[12]=g):g=e[12];let u;e[13]!==a||e[14]!==d||e[15]!==g?(u=i.jsxs(ue,{onClick:a,children:[d,g]}),e[13]=a,e[14]=d,e[15]=g,e[16]=u):u=e[16];const h=t.publicUrl;let x;e[17]===Symbol.for("react.memo_cache_sentinel")?(x=i.jsx(ve,{size:14}),e[17]=x):x=e[17];let f;e[18]!==l?(f=l("filePicker.filePickerDialog.openInNewTab"),e[18]=l,e[19]=f):f=e[19];let b;e[20]!==t.publicUrl||e[21]!==f?(b=i.jsx(ue,{asChild:!0,children:i.jsxs("a",{href:h,target:"_blank",rel:"noreferrer",children:[x,f]})}),e[20]=t.publicUrl,e[21]=f,e[22]=b):b=e[22];let v;e[23]===Symbol.for("react.memo_cache_sentinel")?(v=i.jsx($e,{size:14}),e[23]=v):v=e[23];let _;e[24]!==l?(_=l("assets.browser.deleteAction"),e[24]=l,e[25]=_):_=e[25];let k;e[26]!==s||e[27]!==_?(k=i.jsxs(ue,{variant:"destructive",onClick:s,children:[v,_]}),e[26]=s,e[27]=_,e[28]=k):k=e[28];let j;e[29]!==b||e[30]!==k||e[31]!==u?(j=i.jsxs(Ce,{align:"end",children:[u,b,k]}),e[29]=b,e[30]=k,e[31]=u,e[32]=j):j=e[32];let P;return e[33]!==j||e[34]!==p?(P=i.jsxs(Se,{children:[p,j]}),e[33]=j,e[34]=p,e[35]=P):P=e[35],P}function pt(r){const e=F.c(47),{configId:t,item:s,onClose:l}=r,o=ce(),n=Ze();let c;e[0]!==t||e[1]!==n||e[2]!==s||e[3]!==l||e[4]!==o?(c=async function(){if(s)try{await n.mutateAsync({configId:t,key:s.key}),ae.success(o("assets.browser.deleted")),l()}catch{ae.error(o("assets.browser.deleteFailed"))}},e[0]=t,e[1]=n,e[2]=s,e[3]=l,e[4]=o,e[5]=c):c=e[5];const a=c,m=!!s;let y;e[6]!==l?(y=w=>!w&&l(),e[6]=l,e[7]=y):y=e[7];let p;e[8]!==o?(p=o("assets.browser.deleteConfirmTitle"),e[8]=o,e[9]=p):p=e[9];let d;e[10]!==p?(d=i.jsx(Te,{children:p}),e[10]=p,e[11]=d):d=e[11];let g;e[12]!==s||e[13]!==o?(g=o("assets.browser.deleteConfirmDescription",{name:s?ke(s.key):""}),e[12]=s,e[13]=o,e[14]=g):g=e[14];let u;e[15]!==g?(u=i.jsx(Me,{children:g}),e[15]=g,e[16]=u):u=e[16];let h;e[17]!==d||e[18]!==u?(h=i.jsxs(Ee,{children:[d,u]}),e[17]=d,e[18]=u,e[19]=h):h=e[19];const x=n.isPending;let f;e[20]!==o?(f=o("assets.browser.deleteCancel"),e[20]=o,e[21]=f):f=e[21];let b;e[22]!==n.isPending||e[23]!==f?(b=i.jsx(Oe,{disabled:x,children:f}),e[22]=n.isPending,e[23]=f,e[24]=b):b=e[24];let v;e[25]===Symbol.for("react.memo_cache_sentinel")?(v=je(Pe({variant:"destructive"})),e[25]=v):v=e[25];const _=n.isPending;let k;e[26]!==a?(k=w=>{w.preventDefault(),a()},e[26]=a,e[27]=k):k=e[27];let j;e[28]!==n.isPending?(j=n.isPending?i.jsx(ge,{className:"size-3.5"}):null,e[28]=n.isPending,e[29]=j):j=e[29];let P;e[30]!==o?(P=o("assets.browser.deleteConfirm"),e[30]=o,e[31]=P):P=e[31];let C;e[32]!==n.isPending||e[33]!==k||e[34]!==j||e[35]!==P?(C=i.jsxs(Re,{className:v,disabled:_,onClick:k,children:[j,P]}),e[32]=n.isPending,e[33]=k,e[34]=j,e[35]=P,e[36]=C):C=e[36];let D;e[37]!==b||e[38]!==C?(D=i.jsxs(Be,{children:[b,C]}),e[37]=b,e[38]=C,e[39]=D):D=e[39];let N;e[40]!==D||e[41]!==h?(N=i.jsxs(Le,{children:[h,D]}),e[40]=D,e[41]=h,e[42]=N):N=e[42];let S;return e[43]!==N||e[44]!==m||e[45]!==y?(S=i.jsx(Ve,{open:m,onOpenChange:y,children:N}),e[43]=N,e[44]=m,e[45]=y,e[46]=S):S=e[46],S}function dt(){const r=F.c(2),e=it();let t;return r[0]!==e?(t=i.jsx(Ae,{tabId:"assets",children:i.jsx(st,{virtualMcpId:e})}),r[0]=e,r[1]=t):t=r[1],t}function ir(){const r=F.c(1);let e;return r[0]===Symbol.for("react.memo_cache_sentinel")?(e=i.jsx(we.Content,{children:i.jsx(dt,{})}),r[0]=e):e=r[0],e}export{ir as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{ax as Qt,c as Z,b as ee,r as w,j as t,B,ah as Zt,l as Pt,a2 as $t,D as et,q as tt,s as st,v as ot,aK as at,w as nt,t as X,b2 as es,X as ts,T as ss,V as os,as,aq as ns,ar as is,U as Oe,aU as rs,h as Le,y as Ke,aC as ls,b7 as pt,I as xt,b8 as cs,al as ds,aY as Qe,n as Xe,f as ms}from"./index-C3moojPl.js";import{C as us}from"./index-6SpfJF4P.js";import{d as it,N as fs,b as ps,a2 as xs,k as gt,as as gs,T as ht,at as hs,h as js,M as Me,au as zt}from"./agent-icon-DjnOmCBc.js";import{n as jt}from"./ShoppingBag01-D0kKEJuH.js";import{t as rt}from"./ChevronUp-QaPEzxVx.js";import{e as ys}from"./UserSquare-CLXjlx3Y.js";import{e as lt,b as Et,t as Ot}from"./Tool01-C9pjFqwV.js";import{a as bs}from"./Image01-Bpynux_N.js";import{i as vs}from"./SearchMd-BXSC0WTH.js";import{B as Kt}from"./badge-NHL6jQ7U.js";import{C as Ft}from"./checkbox-B6gj5-qt.js";import{S as ct}from"./switch-Kct2nT2R.js";import{a as Mt,b as Rt,P as Lt}from"./popover-P9zPzqJX.js";import{a as Cs,e as yt,b as Ns,f as Ss,C as ks,c as Ts}from"./command-CloMVJTp.js";import{g as ws,s as Ds}from"./tool-namespace-BNEevFqW.js";import{u as dt}from"./use-connection-CYbCdCg-.js";import{u as _s}from"./use-mcp-client-CaTe2ylT.js";import{u as Is}from"./use-mcp-tools-DSK4UhCW.js";import{I as As}from"./integration-icon-CmzyrNbk.js";import{M as Ps}from"./select-model-DktuB9we.js";import{u as $s}from"./use-ai-providers-BuM6ovEv.js";import{U as zs,b as Es}from"./build-improve-prompt-doc-DIcVxtkz.js";import{a as ve,c as Os,d as Ks}from"./use-automations-LJ6ovb1E.js";import{b as Fs,a as Ms,g as Rs,t as Ls}from"./chat-context-Bdbu4aFj.js";import{b as Us,C as Vs,a as Ws}from"./collapsible-8Gh0baiT.js";import{b as Bs,T as Gs,a as Hs}from"./tooltip-B7gx1fFf.js";import{a as Js}from"./shell-layout-es79-GX2.js";import{i as Ut}from"./ArrowLeft-BP0atRPX.js";import{i as Xs}from"./ArrowUp-AxzDl8Z3.js";import{s as qs}from"./Trash01-BO35Cov_.js";import{s as mt}from"./XClose-CMdSy1nN.js";import{u as bt}from"./use-debounced-autosave-x27V8Nl7.js";import{T as Ys,a as Qs}from"./input-Dy0JrrC0.js";import{u as Zs,a as eo,J as Vt}from"./jira-icon-CaqntM3w.js";import{s as to}from"./Plus-BKb3EUuT.js";import{i as ut}from"./ZoomOut-DLs2h_6j.js";import{l as Be,H as so}from"./config-BGvl3kPw.js";import{C as oo}from"./task-board-B3rwHKUr.js";import{M as Wt}from"./multi-select-d0qSjN1D.js";import{S as ge,b as he,a as je,d as ye,c as be}from"./select-DStdJ5GE.js";import{b as ao,a as no,T as vt}from"./tabs-BmpbjUEc.js";import{a as qe}from"./Copy01-YTn6AAPK.js";import{M as io}from"./monaco-editor-Cpw9JqW2.js";import{A as Ct,a as Nt,b as St,c as kt,g as Tt,d as wt,e as Dt,f as _t}from"./alert-dialog-DLvf9XpO.js";import{A as ro}from"./automation-runs-BMd-xJ2A.js";import{C as lo}from"./collection-tabs-C39YFQ2E.js";import{a as co}from"./use-panel-navigate-BSNsfU5E.js";import"./use-mobile-CW5odOpu.js";import"./thread-button-BzqfKMW2.js";import"./use-chat-layout-state-DSr0gtOa.js";import"./use-file-configs-yKzFEaLv.js";import"./use-organization-settings-DYBuXxZf.js";import"./schema-DyDDwNs8.js";import"./site-slug-DebpOoQq.js";import"./repository-binding-CPA8-dMz.js";import"./thread-route-CV6SbsTq.js";import"./thread-intent-CJ-s3I0o.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-BBIuBzhf.js";import"./slugify-CEUa2lfQ.js";import"./sheet-DrnvYUkv.js";import"./toolbar-icon-button-CXgkBoho.js";import"./resizable-BTJacEf8.js";import"./icon-button-7qsU_2OV.js";import"./use-project-scope-B0llZYB3.js";import"./AlertCircle-BgwifFMG.js";import"./LinkBroken01-tO8JEBqa.js";import"./Building02-DDW-F58b.js";import"./CheckCircle-pe1RxSse.js";import"./ChevronSelectorVertical-B9RLS3HF.js";import"./CreditCard01-DPxzkwQY.js";import"./DotsVertical-D1KewbnO.js";import"./Globe04-Cq4nB1G2.js";import"./SwitchHorizontal01-CAC-8ZOB.js";import"./Key01-ByMBFx-i.js";import"./Link01-Zi8wbjzB.js";import"./Monitor01-wrmGnmsX.js";import"./Sun-CfiICDcE.js";import"./Play-W6HcQ7l_.js";import"./Upload01-DJFAu4Mm.js";import"./User01-B7hPiYB7.js";import"./Users01-DxG-qkCG.js";import"./index-p5cxA0SC.js";import"./auth-C11WExuf.js";import"./drawer-CBMcEEQM.js";import"./index-BXITXB61.js";import"./ai-providers-logos-DD3qZ33J.js";import"./avatar-BQ1clUOI.js";import"./autosend-BxzE8tXY.js";import"./use-decopilot-events-DTg4q8xq.js";import"./use-chat-navigation-CtLOIOM3.js";import"./location-BjlyegC2.js";import"./index-DjXrdMkW.js";import"./use-clock-tick-CjMIMPxr.js";import"./project-icon-Ds5KkwAm.js";import"./new-project-dialog-BLbuP-We.js";import"./label-C-C9Ou_x.js";import"./repository-import-picker-DG4AirBH.js";import"./use-navigate-to-agent-d5laMYnC.js";import"./repository-picker-BfnPBGTa.js";import"./useInfiniteQuery-Cogq3tDA.js";import"./infiniteQueryObserver-DMRptffd.js";import"./collection-search-ji1JjZMn.js";import"./use-debounced-value-gqRwYLiP.js";import"./required-auth-layout-DqtVx04D.js";import"./use-org-sso-BFc5mu2c.js";import"./suggestion-lK-gfS31.js";import"./usage-stats-CmZMkNV4.js";import"./form-BRZ5DZiG.js";import"./utils-CVEq3hMx.js";import"./markdown-BUXU5oD6.js";import"./use-copy-DQJK1-Md.js";import"./format-time-CjIPQhCN.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-mcp-prompts-CatolySn.js";import"./use-org-fs-CGkxTNmD.js";import"./core.esm-CAijLSig.js";import"./index-BdQq_4o_.js";import"./editor-B4h2oI8R.js";import"./table-D3NAm7Bc.js";import"./empty-state-BZTHulBK.js";import"./use-infinite-scroll-bleQjS0V.js";import"./use-members-DpzUOwzJ.js";import"./use-org-auth-client-BK9SNEwg.js";import"./task-status-D3rjOgq8.js";import"./thread-sheet-body-D5eS4AiQ.js";import"./useSuspenseInfiniteQuery-BbeYvXgw.js";import"./pair-BL76LvR6.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-DyZ3_ABn.js";import"./types-D-iizAZX.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./use-thread-outputs-PMUX8yZJ.js";import"./file-type-icon-BQzv7Wym.js";const Ye={fast:{labelKey:"automations.automationConfig.tierFast",subtitleKey:"automations.automationConfig.tierFastSubtitle",icon:js},smart:{labelKey:"automations.automationConfig.tierSmart",subtitleKey:"automations.automationConfig.tierSmartSubtitle",icon:Ot},thinking:{labelKey:"automations.automationConfig.tierThinking",subtitleKey:"automations.automationConfig.tierThinkingSubtitle",icon:hs}},mo=["fast","smart","thinking"];function uo(r){const e=Z.c(19),{tier:s,onSelect:n}=r,o=ee(),[i,c]=w.useState(!1),a=Ye[s].icon;let j;e[0]!==a?(j=t.jsx(a,{size:14,className:"text-muted-foreground"}),e[0]=a,e[1]=j):j=e[1];const d=Ye[s];let m;e[2]!==o||e[3]!==d.labelKey?(m=o(d.labelKey),e[2]=o,e[3]=d.labelKey,e[4]=m):m=e[4];let x;e[5]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(rt,{size:14,className:"text-muted-foreground"}),e[5]=x):x=e[5];let f;e[6]!==j||e[7]!==m?(f=t.jsx(Mt,{asChild:!0,children:t.jsxs(B,{variant:"outline",size:"sm",className:"w-fit gap-1.5",children:[j,m,x]})}),e[6]=j,e[7]=m,e[8]=f):f=e[8];let g;e[9]!==n||e[10]!==o||e[11]!==s?(g=mo.map(p=>{const l=Ye[p],y=l.icon;return t.jsxs("button",{type:"button",onClick:()=>{n(p),c(!1)},className:Pt("flex items-start gap-2 px-2 py-1.5 rounded-lg text-left hover:bg-muted"),children:[t.jsx(y,{size:16,className:"shrink-0 text-muted-foreground mt-0.5"}),t.jsxs("div",{className:"flex-1",children:[t.jsx("div",{className:"text-sm",children:o(l.labelKey)}),t.jsx("div",{className:"text-xs text-muted-foreground",children:o(l.subtitleKey)})]}),p===s&&t.jsx(Zt,{size:14,className:"text-foreground mt-0.5"})]},p)}),e[9]=n,e[10]=o,e[11]=s,e[12]=g):g=e[12];let u;e[13]!==g?(u=t.jsx(Rt,{align:"start",className:"p-1 w-64",children:t.jsx("div",{className:"flex flex-col",children:g})}),e[13]=g,e[14]=u):u=e[14];let h;return e[15]!==i||e[16]!==f||e[17]!==u?(h=t.jsxs(Lt,{open:i,onOpenChange:c,children:[f,u]}),e[15]=i,e[16]=f,e[17]=u,e[18]=h):h=e[18],h}function fo(r){const e=Z.c(27),{tier:s,onTierChange:n,override:o,onOverrideChange:i}=r,c=ee(),[a,j]=w.useState(o!==null);let d;e[0]!==c?(d=c("automations.automationConfig.modelLabel"),e[0]=c,e[1]=d):d=e[1];let m;e[2]!==d?(m=t.jsx("span",{className:"text-xs font-semibold text-muted-foreground/60",children:d}),e[2]=d,e[3]=m):m=e[3];let x;e[4]!==i||e[5]!==n||e[6]!==o||e[7]!==c||e[8]!==s||e[9]!==a?(x=a?t.jsx(w.Suspense,{fallback:t.jsx(B,{variant:"outline",size:"sm",disabled:!0,className:"w-fit",children:c("automations.automationConfig.loadingModels")}),children:t.jsx(po,{override:o,onOverrideChange:i})}):t.jsx(uo,{tier:s,onSelect:n}),e[4]=i,e[5]=n,e[6]=o,e[7]=c,e[8]=s,e[9]=a,e[10]=x):x=e[10];let f;e[11]!==i?(f=y=>{j(y),y||i(null)},e[11]=i,e[12]=f):f=e[12];let g;e[13]!==f||e[14]!==a?(g=t.jsx(ct,{checked:a,onCheckedChange:f,className:"cursor-pointer"}),e[13]=f,e[14]=a,e[15]=g):g=e[15];let u;e[16]!==c?(u=c("automations.automationConfig.specificModel"),e[16]=c,e[17]=u):u=e[17];let h;e[18]!==g||e[19]!==u?(h=t.jsxs("label",{className:"flex items-center gap-2 text-xs text-muted-foreground cursor-pointer select-none",children:[g,u]}),e[18]=g,e[19]=u,e[20]=h):h=e[20];let p;e[21]!==x||e[22]!==h?(p=t.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[x,h]}),e[21]=x,e[22]=h,e[23]=p):p=e[23];let l;return e[24]!==m||e[25]!==p?(l=t.jsxs("div",{className:"flex flex-col gap-2",children:[m,p]}),e[24]=m,e[25]=p,e[26]=l):l=e[26],l}function po(r){const e=Z.c(25),{override:s,onOverrideChange:n}=r,o=ee(),i=$s(),c=i[0]?.id??null;let a;e[0]!==c||e[1]!==i||e[2]!==s?.credentialId?(a=i.some(l=>l.id===s?.credentialId)?s?.credentialId??null:c,e[0]=c,e[1]=i,e[2]=s?.credentialId,e[3]=a):a=e[3];const[j,d]=w.useState(a);let m;e[4]!==j||e[5]!==c||e[6]!==i?(m=i.some(l=>l.id===j)?j:c,e[4]=j,e[5]=c,e[6]=i,e[7]=m):m=e[7];const x=m;let f;e[8]!==i||e[9]!==s?(f=s&&i.some(l=>l.id===s.credentialId)?{modelId:s.modelId,title:s.title||s.modelId,keyId:s.credentialId,providerId:"deco",description:null,logo:null,capabilities:[],limits:null,costs:null}:null,e[8]=i,e[9]=s,e[10]=f):f=e[10];const g=f;if(i.length===0){let l;e[11]!==o?(l=o("automations.automationConfig.connectAiProviderHint"),e[11]=o,e[12]=l):l=e[12];let y;return e[13]!==l?(y=t.jsx("span",{className:"text-xs text-muted-foreground italic",children:l}),e[13]=l,e[14]=y):y=e[14],y}let u;e[15]!==o?(u=o("automations.automationConfig.pickModelPlaceholder"),e[15]=o,e[16]=u):u=e[16];let h;e[17]!==x||e[18]!==n?(h=l=>{const y=l.keyId??x??"";d(y),n({modelId:l.modelId,credentialId:y,title:l.title??l.modelId})},e[17]=x,e[18]=n,e[19]=h):h=e[19];let p;return e[20]!==x||e[21]!==g||e[22]!==u||e[23]!==h?(p=t.jsx("div",{className:"w-fit max-w-full",children:t.jsx(Ps,{variant:"bordered",placeholder:u,model:g,credentialId:x,onCredentialChange:d,onModelChange:h})}),e[20]=x,e[21]=g,e[22]=u,e[23]=h,e[24]=p):p=e[24],p}const Bt=[{key:"capabilities",headingKey:"automations.automationConfig.builtinCapabilities",icon:lt,tools:[{name:"web_search",titleKey:"automations.automationConfig.toolWebSearch",descriptionKey:"automations.automationConfig.toolWebSearchDesc",icon:it},{name:"generate_image",titleKey:"automations.automationConfig.toolGenerateImage",descriptionKey:"automations.automationConfig.toolGenerateImageDesc",icon:bs},{name:"subtask",titleKey:"automations.automationConfig.toolSubtask",descriptionKey:"automations.automationConfig.toolSubtaskDesc",icon:Qt},{name:"user_ask",titleKey:"automations.automationConfig.toolAskUser",descriptionKey:"automations.automationConfig.toolAskUserDesc",icon:fs}]},{key:"files",headingKey:"automations.automationConfig.filesCode",icon:gt,tools:[{name:"read",titleKey:"automations.automationConfig.toolReadFile",descriptionKey:"automations.automationConfig.toolReadFileDesc",icon:ps},{name:"write",titleKey:"automations.automationConfig.toolWriteFile",descriptionKey:"automations.automationConfig.toolWriteFileDesc",icon:Et},{name:"edit",titleKey:"automations.automationConfig.toolEditFile",descriptionKey:"automations.automationConfig.toolEditFileDesc",icon:xs},{name:"grep",titleKey:"automations.automationConfig.toolSearchContent",descriptionKey:"automations.automationConfig.toolSearchContentDesc",icon:vs},{name:"glob",titleKey:"automations.automationConfig.toolFindFiles",descriptionKey:"automations.automationConfig.toolFindFilesDesc",icon:gt},{name:"bash",titleKey:"automations.automationConfig.toolRunCommand",descriptionKey:"automations.automationConfig.toolRunCommandDesc",icon:gs}]},{key:"context",headingKey:"automations.automationConfig.context",icon:ht,tools:[{name:"read_resource",titleKey:"automations.automationConfig.toolReadResource",descriptionKey:"automations.automationConfig.toolReadResourceDesc",icon:ht},{name:"read_prompt",titleKey:"automations.automationConfig.toolReadPrompt",descriptionKey:"automations.automationConfig.toolReadPromptDesc",icon:jt},{name:"skill",titleKey:"automations.automationConfig.toolLoadSkill",descriptionKey:"automations.automationConfig.toolLoadSkillDesc",icon:jt}]}],xo=Bt.flatMap(r=>r.tools.map(e=>e.name));function go(r){const e=r.replace(/[_-]+/g," ").trim();return e?e.toLowerCase().replace(/\b\w/g,s=>s.toUpperCase()):r}function ho(r){const e=Z.c(12),{agentId:s,value:n,onChange:o}=r,i=ee();let c;e[0]!==i?(c=i("automations.automationConfig.toolsLabel"),e[0]=i,e[1]=c):c=e[1];let a;e[2]!==c?(a=t.jsx("span",{className:"text-xs font-semibold text-muted-foreground/60",children:c}),e[2]=c,e[3]=a):a=e[3];let j;e[4]!==s||e[5]!==o||e[6]!==i||e[7]!==n?(j=s?t.jsx(w.Suspense,{fallback:t.jsxs(B,{variant:"outline",size:"sm",disabled:!0,className:"w-fit",children:[t.jsx(lt,{size:14}),i("automations.automationConfig.loadingTools")]}),children:t.jsx(jo,{agentId:s,value:n,onChange:o})}):t.jsx("span",{className:"text-xs text-muted-foreground italic",children:i("automations.automationConfig.pickAgentFirst")}),e[4]=s,e[5]=o,e[6]=i,e[7]=n,e[8]=j):j=e[8];let d;return e[9]!==a||e[10]!==j?(d=t.jsxs("div",{className:"flex flex-col gap-2",children:[a,j]}),e[9]=a,e[10]=j,e[11]=d):d=e[11],d}function It(r){const e=Z.c(17),{value:s,checked:n,onToggle:o,title:i,description:c,leading:a}=r;let j;e[0]!==n?(j=t.jsx(Ft,{checked:n,className:"pointer-events-none mt-0.5"}),e[0]=n,e[1]=j):j=e[1];let d;e[2]!==a?(d=a&&t.jsx("span",{className:"mt-px shrink-0",children:a}),e[2]=a,e[3]=d):d=e[3];let m;e[4]!==i?(m=t.jsx("span",{className:"truncate text-sm leading-tight",children:i}),e[4]=i,e[5]=m):m=e[5];let x;e[6]!==c?(x=c&&t.jsx("span",{className:"line-clamp-2 text-xs leading-snug text-muted-foreground",children:c}),e[6]=c,e[7]=x):x=e[7];let f;e[8]!==m||e[9]!==x?(f=t.jsxs("div",{className:"flex min-w-0 flex-col gap-0.5",children:[m,x]}),e[8]=m,e[9]=x,e[10]=f):f=e[10];let g;return e[11]!==o||e[12]!==j||e[13]!==d||e[14]!==f||e[15]!==s?(g=t.jsxs(Ns,{value:s,onSelect:o,className:"items-start gap-2.5 py-2",children:[j,d,f]}),e[11]=o,e[12]=j,e[13]=d,e[14]=f,e[15]=s,e[16]=g):g=e[16],g}function At(r){const e=Z.c(27),{conn:s,label:n,icon:o,on:i,total:c,onToggle:a}=r,j=ee(),d=i===c;let m;e[0]!==o||e[1]!==s?(m=s?t.jsx(As,{icon:s.icon,name:s.title,size:"2xs"}):o?t.jsx(o,{size:14,className:"text-muted-foreground"}):t.jsx(ys,{size:14,className:"text-muted-foreground"}),e[0]=o,e[1]=s,e[2]=m):m=e[2];let x;e[3]!==s?.title||e[4]!==n||e[5]!==j?(x=s?.title??n??j("automations.automationConfig.otherTools"),e[3]=s?.title,e[4]=n,e[5]=j,e[6]=x):x=e[6];let f;e[7]!==x?(f=t.jsx("span",{className:"truncate",children:x}),e[7]=x,e[8]=f):f=e[8];let g;e[9]!==i||e[10]!==c?(g=t.jsxs("span",{className:"text-[11px] font-normal tabular-nums text-muted-foreground/70",children:[i,"/",c]}),e[9]=i,e[10]=c,e[11]=g):g=e[11];let u;e[12]!==a?(u=v=>{v.stopPropagation(),a()},e[12]=a,e[13]=u):u=e[13];let h;e[14]!==d||e[15]!==j?(h=j(d?"automations.automationConfig.none":"automations.automationConfig.all"),e[14]=d,e[15]=j,e[16]=h):h=e[16];let p;e[17]!==u||e[18]!==h?(p=t.jsx("button",{type:"button",onClick:u,className:"text-[11px] font-medium text-primary hover:underline",children:h}),e[17]=u,e[18]=h,e[19]=p):p=e[19];let l;e[20]!==g||e[21]!==p?(l=t.jsxs("span",{className:"ml-auto flex items-center gap-2",children:[g,p]}),e[20]=g,e[21]=p,e[22]=l):l=e[22];let y;return e[23]!==m||e[24]!==f||e[25]!==l?(y=t.jsxs("div",{className:"flex items-center gap-2",children:[m,f,l]}),e[23]=m,e[24]=f,e[25]=l,e[26]=y):y=e[26],y}function jo(r){const e=Z.c(83),{agentId:s,value:n,onChange:o}=r,i=ee(),{org:c}=$t(),[a,j]=w.useState(!1);let d;e[0]!==s||e[1]!==c.id||e[2]!==c.slug?(d={connectionId:s,orgId:c.id,orgSlug:c.slug},e[0]=s,e[1]=c.id,e[2]=c.slug,e[3]=d):d=e[3];const m=_s(d);let x;e[4]!==m?(x={client:m},e[4]=m,e[5]=x):x=e[5];const{data:f,isLoading:g}=Is(x),u=dt();let h,p,l,y,v,N,S,b,T,D,_,k,A;if(e[6]!==u||e[7]!==f?.tools||e[8]!==g||e[9]!==o||e[10]!==a||e[11]!==i||e[12]!==n){const q=new Map(u.map(No)),H=new Map;for(const I of f?.tools??[]){const E=ws(I._meta)??"__other__",Q=Ds(I.name,E==="__other__"?void 0:E),P=I.title,xe=P&&P!==I.name?P:go(Q);H.has(E)||H.set(E,{clientId:E,conn:q.get(E),tools:[]}),H.get(E).tools.push({name:I.name,display:xe,description:I.description})}const W=[...H.values()].sort(Co),G=(f?.tools??[]).map(vo),J=[...xo,...G],U=n===null?new Set(J):new Set(n),V=J.every(I=>U.has(I)),z=I=>o(J.every(E=>I.has(E))?null:[...I]),ae=I=>{const E=new Set(U);E.has(I)?E.delete(I):E.add(I),z(E)},ne=(I,E)=>{const Q=new Set(U);for(const P of I)E?Q.add(P):Q.delete(P);z(Q)};y=Lt,A=a,v=j;let Y;e[26]===Symbol.for("react.memo_cache_sentinel")?(Y=t.jsx(lt,{size:14,className:"text-muted-foreground"}),e[26]=Y):Y=e[26];let ie;e[27]!==V||e[28]!==i?(ie=i(V?"automations.automationConfig.allTools":"automations.automationConfig.tools"),e[27]=V,e[28]=i,e[29]=ie):ie=e[29];const ue=!V&&t.jsxs(Kt,{variant:"secondary",className:"ml-0.5 h-5 px-1.5 text-[11px] tabular-nums",children:[U.size,"/",J.length]});let me;e[30]===Symbol.for("react.memo_cache_sentinel")?(me=t.jsx(rt,{size:14,className:"text-muted-foreground"}),e[30]=me):me=e[30],e[31]!==ie||e[32]!==ue?(N=t.jsx(Mt,{asChild:!0,children:t.jsxs(B,{variant:"outline",size:"sm",className:"w-fit gap-1.5",children:[Y,ie,ue,me]})}),e[31]=ie,e[32]=ue,e[33]=N):N=e[33],l=Rt,_="p-0 w-80",k="start",p=Ss;let te;e[34]!==i?(te=i("automations.automationConfig.searchToolsPlaceholder"),e[34]=i,e[35]=te):te=e[35],e[36]!==te?(T=t.jsx(ks,{placeholder:te}),e[36]=te,e[37]=T):T=e[37];const fe=V?i("automations.automationConfig.allToolsEnabled",{count:J.length}):i("automations.automationConfig.toolsEnabledCount",{enabled:U.size,total:J.length});let se;e[38]!==fe?(se=t.jsx("span",{className:"text-xs text-muted-foreground",children:fe}),e[38]=fe,e[39]=se):se=e[39];let re;e[40]!==o?(re=()=>o(null),e[40]=o,e[41]=re):re=e[41];let le;e[42]!==i?(le=i("automations.automationConfig.selectAll"),e[42]=i,e[43]=le):le=e[43];let C;e[44]!==V||e[45]!==re||e[46]!==le?(C=t.jsx("button",{type:"button",onClick:re,disabled:V,className:"text-xs font-medium text-primary hover:underline disabled:cursor-default disabled:opacity-40 disabled:no-underline",children:le}),e[44]=V,e[45]=re,e[46]=le,e[47]=C):C=e[47];let M;e[48]===Symbol.for("react.memo_cache_sentinel")?(M=t.jsx("span",{className:"text-muted-foreground/30",children:"·"}),e[48]=M):M=e[48];let O;e[49]!==o?(O=()=>o([]),e[49]=o,e[50]=O):O=e[50];const pe=U.size===0;let oe;e[51]!==i?(oe=i("automations.automationConfig.clear"),e[51]=i,e[52]=oe):oe=e[52];let ce;e[53]!==O||e[54]!==pe||e[55]!==oe?(ce=t.jsx("button",{type:"button",onClick:O,disabled:pe,className:"text-xs font-medium text-muted-foreground hover:underline disabled:cursor-default disabled:opacity-40 disabled:no-underline",children:oe}),e[53]=O,e[54]=pe,e[55]=oe,e[56]=ce):ce=e[56];let de;e[57]!==C||e[58]!==ce?(de=t.jsxs("div",{className:"flex items-center gap-2",children:[C,M,ce]}),e[57]=C,e[58]=ce,e[59]=de):de=e[59],e[60]!==se||e[61]!==de?(D=t.jsxs("div",{className:"flex items-center justify-between border-b px-3 py-2",children:[se,de]}),e[60]=se,e[61]=de,e[62]=D):D=e[62],h=Ts,S="max-h-80",b=g?t.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:i("automations.automationConfig.loadingTools")}):t.jsxs(t.Fragment,{children:[t.jsx(Cs,{children:i("automations.automationConfig.noToolsFound")}),Bt.map(I=>{const E=I.tools.map(bo),Q=E.filter(P=>U.has(P)).length;return t.jsx(yt,{heading:t.jsx(At,{label:i(I.headingKey),icon:I.icon,on:Q,total:E.length,onToggle:()=>ne(E,Q!==E.length)}),children:I.tools.map(P=>t.jsx(It,{value:`${i(P.titleKey)} ${P.name}`,checked:U.has(P.name),onToggle:()=>ae(P.name),title:i(P.titleKey),description:i(P.descriptionKey),leading:t.jsx(P.icon,{size:16,className:"text-muted-foreground"})},P.name))},I.key)}),W.map(I=>{const E=I.tools.map(yo),Q=E.filter(P=>U.has(P)).length;return t.jsx(yt,{heading:t.jsx(At,{conn:I.conn,on:Q,total:E.length,onToggle:()=>ne(E,Q!==E.length)}),children:I.tools.map(P=>t.jsx(It,{value:`${P.display} ${P.name} ${I.conn?.title??""}`,checked:U.has(P.name),onToggle:()=>ae(P.name),title:P.display,description:P.description},P.name))},I.clientId)})]}),e[6]=u,e[7]=f?.tools,e[8]=g,e[9]=o,e[10]=a,e[11]=i,e[12]=n,e[13]=h,e[14]=p,e[15]=l,e[16]=y,e[17]=v,e[18]=N,e[19]=S,e[20]=b,e[21]=T,e[22]=D,e[23]=_,e[24]=k,e[25]=A}else h=e[13],p=e[14],l=e[15],y=e[16],v=e[17],N=e[18],S=e[19],b=e[20],T=e[21],D=e[22],_=e[23],k=e[24],A=e[25];let $;e[63]!==h||e[64]!==S||e[65]!==b?($=t.jsx(h,{className:S,children:b}),e[63]=h,e[64]=S,e[65]=b,e[66]=$):$=e[66];let R;e[67]!==p||e[68]!==$||e[69]!==T||e[70]!==D?(R=t.jsxs(p,{children:[T,D,$]}),e[67]=p,e[68]=$,e[69]=T,e[70]=D,e[71]=R):R=e[71];let K;e[72]!==l||e[73]!==R||e[74]!==_||e[75]!==k?(K=t.jsx(l,{className:_,align:k,children:R}),e[72]=l,e[73]=R,e[74]=_,e[75]=k,e[76]=K):K=e[76];let F;return e[77]!==y||e[78]!==v||e[79]!==N||e[80]!==K||e[81]!==A?(F=t.jsxs(y,{open:A,onOpenChange:v,children:[N,K]}),e[77]=y,e[78]=v,e[79]=N,e[80]=K,e[81]=A,e[82]=F):F=e[82],F}function yo(r){return r.name}function bo(r){return r.name}function vo(r){return r.name}function Co(r,e){return(r.conn?.title??r.clientId).localeCompare(e.conn?.title??e.clientId)}function No(r){return[r.id,r]}function Re(r){const e=r.trim().split(/\s+/);return e.length!==5?!1:e.every(s=>/^[\d*/,-]+$/.test(s))}function So(r){if(!r)return"Unknown schedule";const e=r.trim();if(e==="* * * * *")return"Every minute";if(e==="0 * * * *")return"Every hour";if(e==="0 0 * * *")return"Every day";if(e==="0 0 * * 1")return"Every week";const s=e.match(/^\*\/(\d+)\s+\*\s+\*\s+\*\s+\*$/);if(s)return`Every ${s[1]} minutes`;const n=e.match(/^0\s+\*\/(\d+)\s+\*\s+\*\s+\*$/);if(n)return`Every ${n[1]} hours`;const o=e.match(/^0\s+0\s+\*\/(\d+)\s+\*\s+\*$/);if(o){const a=parseInt(o[1]??"1");return a%7===0?`Every ${a/7} weeks`:`Every ${a} days`}const i=e.match(/^(\d+)\s+(\d+)\s+\*\s+\*\s+\*$/);if(i){const a=(i[2]??"0").padStart(2,"0"),j=(i[1]??"0").padStart(2,"0");return`Every day at ${a}:${j} UTC`}const c=e.match(/^(\d+)\s+(\d+)\s+\*\s+\*\s+(\d)$/);if(c){const j=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][parseInt(c[3]??"0")]??"day",d=(c[2]??"0").padStart(2,"0"),m=(c[1]??"0").padStart(2,"0");return`Every ${j} at ${d}:${m} UTC`}return r}function ko(r,e){const s=Math.max(1,r);switch(e){case"minutes":return s===1?"* * * * *":`*/${s} * * * *`;case"hours":return s===1?"0 * * * *":`0 */${s} * * *`;case"days":return s===1?"0 0 * * *":`0 0 */${s} * *`;case"weeks":return s===1?"0 0 * * 1":`0 0 */${s*7} * *`}}function To(r){const e=r.trim();if(e==="* * * * *")return{count:1,unit:"minutes"};if(e==="0 * * * *")return{count:1,unit:"hours"};if(e==="0 0 * * *")return{count:1,unit:"days"};if(e==="0 0 * * 1")return{count:1,unit:"weeks"};const s=e.match(/^\*\/(\d+)\s+\*\s+\*\s+\*\s+\*$/);if(s)return{count:parseInt(s[1]),unit:"minutes"};const n=e.match(/^0\s+\*\/(\d+)\s+\*\s+\*\s+\*$/);if(n)return{count:parseInt(n[1]),unit:"hours"};const o=e.match(/^0\s+0\s+\*\/(\d+)\s+\*\s+\*$/);return o?{count:parseInt(o[1]),unit:"days"}:null}function wo(r,e){return e===1?{minutes:"minute",hours:"hour",days:"day",weeks:"week"}[r]??r:r}const Do=[{label:"5 minutes",cron:"*/5 * * * *"},{label:"Hour",cron:"0 * * * *"},{label:"Day",cron:"0 0 * * *"},{label:"Week",cron:"0 0 * * 1"}],Ze=oo.filter(r=>!so.includes(r)),Gt=["any","earlier","later","statuses"],_o=r=>Ze.some(e=>e===r),Io=r=>Gt.some(e=>e===r);function Ao({automationId:r,open:e,onOpenChange:s}){const n=ee(),{triggerAdd:o}=ve(),[i,c]=w.useState("in_progress"),[a,j]=w.useState("any"),[d,m]=w.useState([]),x=Ze.filter(l=>l!==i),f=d.filter(l=>l!==i),g=a!=="statuses"||f.length>0,u=l=>{l||(c("in_progress"),j("any"),m([])),s(l)},h=async()=>{try{await o.mutateAsync({automation_id:r,type:"board_column_transition",column_key:i,from:a==="statuses"?{kind:a,statuses:f}:{kind:a}}),X.success(n("automations.addStarterPopover.starterAdded")),u(!1)}catch(l){X.error(l instanceof Error?l.message:n("automations.addStarterPopover.failedAddStarter"))}},p=l=>n(l==="any"?"automations.columnTransitionDialog.fromAny":l==="earlier"?"automations.columnTransitionDialog.fromEarlier":l==="later"?"automations.columnTransitionDialog.fromLater":"automations.columnTransitionDialog.fromColumns");return t.jsx(et,{open:e,onOpenChange:u,children:t.jsxs(tt,{className:"max-w-md",children:[t.jsxs(st,{children:[t.jsx(ot,{children:n("automations.columnTransitionDialog.title")}),t.jsx(at,{children:n("automations.columnTransitionDialog.description")})]}),t.jsxs("div",{className:"flex flex-col gap-4",children:[t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsx("span",{className:"text-xs font-semibold text-muted-foreground",children:n("automations.columnTransitionDialog.column")}),t.jsxs(ge,{value:i,onValueChange:l=>{_o(l)&&c(l)},children:[t.jsx(he,{className:"w-full",children:t.jsx(je,{})}),t.jsx(ye,{children:Ze.map(l=>{const{label:y,visual:v}=Be(l,n),N=v.icon;return t.jsxs(be,{value:l,children:[t.jsx(N,{size:14,className:Pt("shrink-0",v.iconClassName)}),y]},l)})})]})]}),t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsx("span",{className:"text-xs font-semibold text-muted-foreground",children:n("automations.columnTransitionDialog.origin")}),t.jsxs(ge,{value:a,onValueChange:l=>{Io(l)&&j(l)},children:[t.jsx(he,{className:"w-full",children:t.jsx(je,{})}),t.jsx(ye,{children:Gt.map(l=>t.jsx(be,{value:l,children:p(l)},l))})]}),a==="statuses"&&t.jsx(Wt,{options:x.map(l=>({label:Be(l,n).label,value:l})),defaultValue:f,onValueChange:m,placeholder:n("automations.columnTransitionDialog.columnsPlaceholder"),modalPopover:!0,className:"max-w-none"},i)]}),t.jsx("p",{className:"text-xs text-muted-foreground",children:n("automations.columnTransitionDialog.help")})]}),t.jsxs(nt,{children:[t.jsx(B,{variant:"ghost",onClick:()=>u(!1),children:n("automations.columnTransitionDialog.cancel")}),t.jsx(B,{disabled:!g||o.isPending,onClick:h,children:n("automations.columnTransitionDialog.add")})]})]})})}const Ht=["any","earlier","later","statuses"],Po=r=>Ht.some(e=>e===r);function $o({automationId:r,boardId:e,open:s,onOpenChange:n}){const o=ee(),{triggerAdd:i}=ve(),c=Zs(s?e:null),[a,j]=w.useState(null),[d,m]=w.useState("any"),[x,f]=w.useState([]),g=(c.data??[]).flatMap(b=>b.statuses.map(T=>({column:b.name,status:T}))),u=a??g[0]?.status??null,h=g.map(b=>b.status).filter(b=>b!==u),p=x.filter(b=>b!==u),l=u!==null&&(d!=="statuses"||p.length>0),y=b=>{b||(j(null),m("any"),f([])),n(b)},v=async()=>{if(u)try{await i.mutateAsync({automation_id:r,type:"jira_transition",jira_status:u,from:d==="statuses"?{kind:d,statuses:p}:{kind:d}}),X.success(o("automations.addStarterPopover.starterAdded")),y(!1)}catch(b){X.error(b instanceof Error?b.message:o("automations.addStarterPopover.failedAddStarter"))}},N=b=>o(b==="any"?"automations.jiraTransitionDialog.fromAny":b==="earlier"?"automations.jiraTransitionDialog.fromEarlier":b==="later"?"automations.jiraTransitionDialog.fromLater":"automations.jiraTransitionDialog.fromStatuses");let S;return c.isPending?S=t.jsx(es,{className:"h-9 w-full"}):c.isError||g.length===0?S=t.jsx("p",{className:"text-xs text-muted-foreground",children:o("automations.jiraTransitionDialog.noStatuses")}):S=t.jsxs(ge,{value:u??void 0,onValueChange:j,children:[t.jsx(he,{className:"w-full",children:t.jsx(je,{})}),t.jsx(ye,{children:g.map(b=>t.jsxs(be,{value:b.status,children:[b.status,b.column!==b.status&&t.jsx("span",{className:"text-muted-foreground",children:b.column})]},b.status))})]}),t.jsx(et,{open:s,onOpenChange:y,children:t.jsxs(tt,{className:"max-w-md",children:[t.jsxs(st,{children:[t.jsx(ot,{children:o("automations.jiraTransitionDialog.title")}),t.jsx(at,{children:o("automations.jiraTransitionDialog.description")})]}),t.jsxs("div",{className:"flex flex-col gap-4",children:[t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsx("span",{className:"text-xs font-semibold text-muted-foreground",children:o("automations.jiraTransitionDialog.status")}),S]}),t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsx("span",{className:"text-xs font-semibold text-muted-foreground",children:o("automations.jiraTransitionDialog.origin")}),t.jsxs(ge,{value:d,onValueChange:b=>{Po(b)&&m(b)},children:[t.jsx(he,{className:"w-full",children:t.jsx(je,{})}),t.jsx(ye,{children:Ht.map(b=>t.jsx(be,{value:b,children:N(b)},b))})]}),d==="statuses"&&t.jsx(Wt,{options:h.map(b=>({label:b,value:b})),defaultValue:p,onValueChange:f,placeholder:o("automations.jiraTransitionDialog.statusesPlaceholder"),modalPopover:!0,className:"max-w-none"},u)]}),t.jsx("p",{className:"text-xs text-muted-foreground",children:o("automations.jiraTransitionDialog.help")})]}),t.jsxs(nt,{children:[t.jsx(B,{variant:"ghost",onClick:()=>y(!1),children:o("automations.jiraTransitionDialog.cancel")}),t.jsx(B,{disabled:!l||i.isPending,onClick:v,children:o("automations.jiraTransitionDialog.add")})]})]})})}function zo({automationId:r,open:e,onOpenChange:s,onCustomSelect:n,onEventSelect:o,onWebhookCreated:i}){const c=ee(),{triggerAdd:a}=ve(),[j,d]=w.useState(!1),[m,x]=w.useState(!1),[f,g]=w.useState(!1),u=eo().data?.boardId??null,h=e??j,p=v=>{s?s(v):d(v)},l=async v=>{try{await a.mutateAsync({automation_id:r,type:"cron",cron_expression:v}),X.success(c("automations.addStarterPopover.starterAdded")),p(!1)}catch(N){const S=N instanceof Error?N.message:c("automations.addStarterPopover.failedAddStarter");X.error(S)}},y=async()=>{try{const v=await a.mutateAsync({automation_id:r,type:"webhook"});p(!1),v.webhook?i?.(v.webhook):X.success(c("automations.addStarterPopover.webhookStarterAdded"))}catch(v){const N=v instanceof Error?v.message:c("automations.addStarterPopover.failedAddWebhookStarter");X.error(N)}};return t.jsxs(t.Fragment,{children:[t.jsxs(ts,{open:h,onOpenChange:p,children:[t.jsx(ss,{asChild:!0,children:t.jsxs(B,{variant:"outline",size:"sm",children:[t.jsx(to,{size:14}),c("automations.addStarterPopover.addStarter")]})}),t.jsxs(os,{align:"end",className:"w-[240px]",children:[t.jsxs(as,{children:[t.jsxs(ns,{className:"gap-2.5",children:[t.jsx(Me,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.every")]}),t.jsx(is,{className:"w-[160px]",children:Do.map(v=>t.jsxs(Oe,{className:"gap-2.5",onSelect:()=>l(v.cron),disabled:a.isPending,children:[t.jsx(Me,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.everyUnit",{unit:v.label})]},v.cron))})]}),t.jsxs(Oe,{className:"gap-2.5",onSelect:()=>{p(!1),n?.()},children:[t.jsx(Me,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.customCron")]}),t.jsxs(Oe,{className:"gap-2.5",onSelect:()=>{p(!1),o?.()},children:[t.jsx(ut,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.event")]}),t.jsxs(Oe,{className:"gap-2.5",onSelect:()=>{p(!1),x(!0)},children:[t.jsx(zt,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.cardEntersColumn")]}),u&&t.jsxs(Oe,{className:"gap-2.5",onSelect:()=>{p(!1),g(!0)},children:[t.jsx(Vt,{size:14,className:"shrink-0"}),c("automations.addStarterPopover.jiraIssueEntersStatus")]}),t.jsxs(Oe,{className:"gap-2.5",onSelect:()=>{y()},disabled:a.isPending,children:[t.jsx(it,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.webhook")]})]})]}),t.jsx(Ao,{automationId:r,open:m,onOpenChange:x}),u&&t.jsx($o,{automationId:r,boardId:u,open:f,onOpenChange:g})]})}function Jt(r){const e=Z.c(39),{open:s,onOpenChange:n,url:o,token:i,title:c,description:a}=r,j=c===void 0?"Webhook ready":c,d=a===void 0?"Send a POST to this URL with the bearer token to fire the automation. The token is shown once — copy it now.":a,m=ee(),[x,f]=w.useState(null),[g,u]=w.useState("curl"),[h,p]=w.useState("header"),l=w.useId();let y;e[0]!==m?(y=async(W,G)=>{try{await navigator.clipboard.writeText(W),f(G),X.success(m("automations.webhookSecretDialog.copied")),setTimeout(()=>f(null),1500)}catch{X.error(m("automations.webhookSecretDialog.failedCopy"))}},e[0]=m,e[1]=y):y=e[1];const v=y;let N;e[2]!==h||e[3]!==i||e[4]!==o?(N=o&&i&&h==="url"?`${o.replace(/\/$/,"")}/${i}`:o??"",e[2]=h,e[3]=i,e[4]=o,e[5]=N):N=e[5];const S=N,b=o&&i?h==="header"?`curl -X POST "${S}" \\
|
|
1
|
+
import{ax as Qt,c as Z,b as ee,r as w,j as t,B,ah as Zt,l as Pt,a2 as $t,D as et,q as tt,s as st,v as ot,aK as at,w as nt,t as X,b2 as es,X as ts,T as ss,V as os,as,aq as ns,ar as is,U as Oe,aU as rs,h as Le,y as Ke,aC as ls,b7 as pt,I as xt,b8 as cs,al as ds,aY as Qe,n as Xe,f as ms}from"./index-CRbDzsEl.js";import{C as us}from"./index-BW9tBS1_.js";import{d as it,N as fs,b as ps,a2 as xs,k as gt,as as gs,T as ht,at as hs,h as js,M as Me,au as zt}from"./agent-icon-CSrsRkkV.js";import{n as jt}from"./ShoppingBag01-C_AR4ZKW.js";import{t as rt}from"./ChevronUp-ZSzJudc4.js";import{e as ys}from"./UserSquare-BG_D4lBt.js";import{e as lt,b as Et,t as Ot}from"./Tool01-D8RNlK5k.js";import{a as bs}from"./Image01-DUunwh52.js";import{i as vs}from"./SearchMd-Bg-9XsfQ.js";import{B as Kt}from"./badge-GBNejOns.js";import{C as Ft}from"./checkbox-1mSDcatb.js";import{S as ct}from"./switch-C2mEXqfo.js";import{a as Mt,b as Rt,P as Lt}from"./popover-UZd_hI6l.js";import{a as Cs,e as yt,b as Ns,f as Ss,C as ks,c as Ts}from"./command-CJiwms5W.js";import{g as ws,s as Ds}from"./tool-namespace-BsBj6Gec.js";import{u as dt}from"./use-connection--fjYRP_g.js";import{u as _s}from"./use-mcp-client-BWo29jbN.js";import{u as Is}from"./use-mcp-tools-D9a3atY2.js";import{I as As}from"./integration-icon-BELz_pOH.js";import{M as Ps}from"./select-model-B19lAAyT.js";import{u as $s}from"./use-ai-providers-scSugiQF.js";import{U as zs,b as Es}from"./build-improve-prompt-doc-DMgFOt46.js";import{a as ve,c as Os,d as Ks}from"./use-automations-DxHm0Snl.js";import{b as Fs,a as Ms,g as Rs,t as Ls}from"./chat-context-NYUfgJBl.js";import{b as Us,C as Vs,a as Ws}from"./collapsible-CeMlXkLt.js";import{b as Bs,T as Gs,a as Hs}from"./tooltip-3DBbiHrv.js";import{a as Js}from"./shell-layout-BO31z5MQ.js";import{i as Ut}from"./ArrowLeft-DwPfX3sc.js";import{i as Xs}from"./ArrowUp-XUO4rGpO.js";import{s as qs}from"./Trash01-ByfCfoe2.js";import{s as mt}from"./XClose-Ck0EFhGe.js";import{u as bt}from"./use-debounced-autosave-NE-5LrTu.js";import{T as Ys,a as Qs}from"./input-C8SbKhCo.js";import{u as Zs,a as eo,J as Vt}from"./jira-icon-DtfD9SYH.js";import{s as to}from"./Plus-clvoB9-y.js";import{i as ut}from"./ZoomOut-DJOChAz1.js";import{l as Be,H as so}from"./config-C1YCQZ8E.js";import{C as oo}from"./task-board-Cq7KN9Yp.js";import{M as Wt}from"./multi-select-C-uRGkhX.js";import{S as ge,b as he,a as je,d as ye,c as be}from"./select-nSDsr0Zi.js";import{b as ao,a as no,T as vt}from"./tabs-D0ZapmHf.js";import{a as qe}from"./Copy01-CT9uxfj6.js";import{M as io}from"./monaco-editor-BuUSistE.js";import{A as Ct,a as Nt,b as St,c as kt,g as Tt,d as wt,e as Dt,f as _t}from"./alert-dialog-Bq1vUmcb.js";import{A as ro}from"./automation-runs-CBloXkSc.js";import{C as lo}from"./collection-tabs-CSZlwXCA.js";import{a as co}from"./use-panel-navigate-sjPSBICL.js";import"./use-mobile-BcwC7VU3.js";import"./thread-button-D0vpHKhc.js";import"./use-chat-layout-state-n4Q3uYHD.js";import"./use-file-configs-BJG54sLn.js";import"./use-organization-settings-C2COOtae.js";import"./schema-DCzFPjhQ.js";import"./site-slug-DebpOoQq.js";import"./repository-binding-GEAUbB-O.js";import"./thread-route-gGOzpjkp.js";import"./thread-intent-DTPz1weL.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-Bb7_5bsI.js";import"./slugify-CEUa2lfQ.js";import"./sheet-Bg01hTvG.js";import"./toolbar-icon-button-BbfFE6qt.js";import"./resizable-CNroF4sn.js";import"./icon-button-D9OpoKyB.js";import"./use-project-scope-B_oLVbNv.js";import"./AlertCircle-BBiRNTdE.js";import"./LinkBroken01-BFW8MxYc.js";import"./Building02-CFG818HY.js";import"./CheckCircle-BZiV5rFy.js";import"./ChevronSelectorVertical-Dc4zDElk.js";import"./CreditCard01-DCwoKma6.js";import"./DotsVertical-CcRpaMtq.js";import"./Globe04-D88PtZSB.js";import"./SwitchHorizontal01-D8mpLNM6.js";import"./Key01-Dy9XOW24.js";import"./Link01-BDbdWLwx.js";import"./Monitor01-Cm6_ReiN.js";import"./Sun-Dzm8FpU3.js";import"./Play-DFfgxv2q.js";import"./Upload01-BOzWcBO4.js";import"./User01-VVR3ncLA.js";import"./Users01-BT5Jdc2I.js";import"./index-4oHb6320.js";import"./auth-Cf8kTvK7.js";import"./drawer-DWjMBwyf.js";import"./index-m-B-HtFl.js";import"./ai-providers-logos-DD3qZ33J.js";import"./avatar-CVhMMaTf.js";import"./autosend-Dbvfg9pv.js";import"./use-decopilot-events-D14uF_Cy.js";import"./use-chat-navigation-CpL4JFZX.js";import"./location-BjlyegC2.js";import"./index-DPPcuuZa.js";import"./use-clock-tick-X8apRSs5.js";import"./project-icon-CgRPdhMz.js";import"./new-project-dialog-CU6GK7Hi.js";import"./label-BUw2LYOJ.js";import"./repository-import-picker-CGZicTtt.js";import"./use-navigate-to-agent-f1RDTOQU.js";import"./repository-picker-ipWiqqIY.js";import"./useInfiniteQuery-BBVki4Du.js";import"./infiniteQueryObserver-Dhuk-wHX.js";import"./collection-search-JcNHcOFg.js";import"./use-debounced-value-Db_6wQub.js";import"./required-auth-layout-B0JL0M-z.js";import"./use-org-sso-DQNJJVcp.js";import"./suggestion-D6_m0iRs.js";import"./usage-stats-x-NR7rQ4.js";import"./form-Bn1uWhLp.js";import"./utils-CVEq3hMx.js";import"./markdown-CW257Zz5.js";import"./use-copy-DWNF2ghn.js";import"./format-time-CjIPQhCN.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-mcp-prompts-BmY4-dHy.js";import"./use-org-fs-BruBSf1P.js";import"./core.esm-BaMzqjA4.js";import"./index-BdQq_4o_.js";import"./editor-D6w2Bb1A.js";import"./table-CtPELWNl.js";import"./empty-state-DfOpTmwf.js";import"./use-infinite-scroll-BPxCDDTo.js";import"./use-members-BsPA0Ct2.js";import"./use-org-auth-client-sBWqKZAZ.js";import"./task-status-Dl4YXdIS.js";import"./thread-sheet-body-BuMvTCp6.js";import"./useSuspenseInfiniteQuery-DP1_6mso.js";import"./pair-gT7Vn8Gp.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-1q9SfIz-.js";import"./types-DJQTaYxP.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./use-thread-outputs-CaENK2ep.js";import"./file-type-icon-hf5iGs8U.js";const Ye={fast:{labelKey:"automations.automationConfig.tierFast",subtitleKey:"automations.automationConfig.tierFastSubtitle",icon:js},smart:{labelKey:"automations.automationConfig.tierSmart",subtitleKey:"automations.automationConfig.tierSmartSubtitle",icon:Ot},thinking:{labelKey:"automations.automationConfig.tierThinking",subtitleKey:"automations.automationConfig.tierThinkingSubtitle",icon:hs}},mo=["fast","smart","thinking"];function uo(r){const e=Z.c(19),{tier:s,onSelect:n}=r,o=ee(),[i,c]=w.useState(!1),a=Ye[s].icon;let j;e[0]!==a?(j=t.jsx(a,{size:14,className:"text-muted-foreground"}),e[0]=a,e[1]=j):j=e[1];const d=Ye[s];let m;e[2]!==o||e[3]!==d.labelKey?(m=o(d.labelKey),e[2]=o,e[3]=d.labelKey,e[4]=m):m=e[4];let x;e[5]===Symbol.for("react.memo_cache_sentinel")?(x=t.jsx(rt,{size:14,className:"text-muted-foreground"}),e[5]=x):x=e[5];let f;e[6]!==j||e[7]!==m?(f=t.jsx(Mt,{asChild:!0,children:t.jsxs(B,{variant:"outline",size:"sm",className:"w-fit gap-1.5",children:[j,m,x]})}),e[6]=j,e[7]=m,e[8]=f):f=e[8];let g;e[9]!==n||e[10]!==o||e[11]!==s?(g=mo.map(p=>{const l=Ye[p],y=l.icon;return t.jsxs("button",{type:"button",onClick:()=>{n(p),c(!1)},className:Pt("flex items-start gap-2 px-2 py-1.5 rounded-lg text-left hover:bg-muted"),children:[t.jsx(y,{size:16,className:"shrink-0 text-muted-foreground mt-0.5"}),t.jsxs("div",{className:"flex-1",children:[t.jsx("div",{className:"text-sm",children:o(l.labelKey)}),t.jsx("div",{className:"text-xs text-muted-foreground",children:o(l.subtitleKey)})]}),p===s&&t.jsx(Zt,{size:14,className:"text-foreground mt-0.5"})]},p)}),e[9]=n,e[10]=o,e[11]=s,e[12]=g):g=e[12];let u;e[13]!==g?(u=t.jsx(Rt,{align:"start",className:"p-1 w-64",children:t.jsx("div",{className:"flex flex-col",children:g})}),e[13]=g,e[14]=u):u=e[14];let h;return e[15]!==i||e[16]!==f||e[17]!==u?(h=t.jsxs(Lt,{open:i,onOpenChange:c,children:[f,u]}),e[15]=i,e[16]=f,e[17]=u,e[18]=h):h=e[18],h}function fo(r){const e=Z.c(27),{tier:s,onTierChange:n,override:o,onOverrideChange:i}=r,c=ee(),[a,j]=w.useState(o!==null);let d;e[0]!==c?(d=c("automations.automationConfig.modelLabel"),e[0]=c,e[1]=d):d=e[1];let m;e[2]!==d?(m=t.jsx("span",{className:"text-xs font-semibold text-muted-foreground/60",children:d}),e[2]=d,e[3]=m):m=e[3];let x;e[4]!==i||e[5]!==n||e[6]!==o||e[7]!==c||e[8]!==s||e[9]!==a?(x=a?t.jsx(w.Suspense,{fallback:t.jsx(B,{variant:"outline",size:"sm",disabled:!0,className:"w-fit",children:c("automations.automationConfig.loadingModels")}),children:t.jsx(po,{override:o,onOverrideChange:i})}):t.jsx(uo,{tier:s,onSelect:n}),e[4]=i,e[5]=n,e[6]=o,e[7]=c,e[8]=s,e[9]=a,e[10]=x):x=e[10];let f;e[11]!==i?(f=y=>{j(y),y||i(null)},e[11]=i,e[12]=f):f=e[12];let g;e[13]!==f||e[14]!==a?(g=t.jsx(ct,{checked:a,onCheckedChange:f,className:"cursor-pointer"}),e[13]=f,e[14]=a,e[15]=g):g=e[15];let u;e[16]!==c?(u=c("automations.automationConfig.specificModel"),e[16]=c,e[17]=u):u=e[17];let h;e[18]!==g||e[19]!==u?(h=t.jsxs("label",{className:"flex items-center gap-2 text-xs text-muted-foreground cursor-pointer select-none",children:[g,u]}),e[18]=g,e[19]=u,e[20]=h):h=e[20];let p;e[21]!==x||e[22]!==h?(p=t.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[x,h]}),e[21]=x,e[22]=h,e[23]=p):p=e[23];let l;return e[24]!==m||e[25]!==p?(l=t.jsxs("div",{className:"flex flex-col gap-2",children:[m,p]}),e[24]=m,e[25]=p,e[26]=l):l=e[26],l}function po(r){const e=Z.c(25),{override:s,onOverrideChange:n}=r,o=ee(),i=$s(),c=i[0]?.id??null;let a;e[0]!==c||e[1]!==i||e[2]!==s?.credentialId?(a=i.some(l=>l.id===s?.credentialId)?s?.credentialId??null:c,e[0]=c,e[1]=i,e[2]=s?.credentialId,e[3]=a):a=e[3];const[j,d]=w.useState(a);let m;e[4]!==j||e[5]!==c||e[6]!==i?(m=i.some(l=>l.id===j)?j:c,e[4]=j,e[5]=c,e[6]=i,e[7]=m):m=e[7];const x=m;let f;e[8]!==i||e[9]!==s?(f=s&&i.some(l=>l.id===s.credentialId)?{modelId:s.modelId,title:s.title||s.modelId,keyId:s.credentialId,providerId:"deco",description:null,logo:null,capabilities:[],limits:null,costs:null}:null,e[8]=i,e[9]=s,e[10]=f):f=e[10];const g=f;if(i.length===0){let l;e[11]!==o?(l=o("automations.automationConfig.connectAiProviderHint"),e[11]=o,e[12]=l):l=e[12];let y;return e[13]!==l?(y=t.jsx("span",{className:"text-xs text-muted-foreground italic",children:l}),e[13]=l,e[14]=y):y=e[14],y}let u;e[15]!==o?(u=o("automations.automationConfig.pickModelPlaceholder"),e[15]=o,e[16]=u):u=e[16];let h;e[17]!==x||e[18]!==n?(h=l=>{const y=l.keyId??x??"";d(y),n({modelId:l.modelId,credentialId:y,title:l.title??l.modelId})},e[17]=x,e[18]=n,e[19]=h):h=e[19];let p;return e[20]!==x||e[21]!==g||e[22]!==u||e[23]!==h?(p=t.jsx("div",{className:"w-fit max-w-full",children:t.jsx(Ps,{variant:"bordered",placeholder:u,model:g,credentialId:x,onCredentialChange:d,onModelChange:h})}),e[20]=x,e[21]=g,e[22]=u,e[23]=h,e[24]=p):p=e[24],p}const Bt=[{key:"capabilities",headingKey:"automations.automationConfig.builtinCapabilities",icon:lt,tools:[{name:"web_search",titleKey:"automations.automationConfig.toolWebSearch",descriptionKey:"automations.automationConfig.toolWebSearchDesc",icon:it},{name:"generate_image",titleKey:"automations.automationConfig.toolGenerateImage",descriptionKey:"automations.automationConfig.toolGenerateImageDesc",icon:bs},{name:"subtask",titleKey:"automations.automationConfig.toolSubtask",descriptionKey:"automations.automationConfig.toolSubtaskDesc",icon:Qt},{name:"user_ask",titleKey:"automations.automationConfig.toolAskUser",descriptionKey:"automations.automationConfig.toolAskUserDesc",icon:fs}]},{key:"files",headingKey:"automations.automationConfig.filesCode",icon:gt,tools:[{name:"read",titleKey:"automations.automationConfig.toolReadFile",descriptionKey:"automations.automationConfig.toolReadFileDesc",icon:ps},{name:"write",titleKey:"automations.automationConfig.toolWriteFile",descriptionKey:"automations.automationConfig.toolWriteFileDesc",icon:Et},{name:"edit",titleKey:"automations.automationConfig.toolEditFile",descriptionKey:"automations.automationConfig.toolEditFileDesc",icon:xs},{name:"grep",titleKey:"automations.automationConfig.toolSearchContent",descriptionKey:"automations.automationConfig.toolSearchContentDesc",icon:vs},{name:"glob",titleKey:"automations.automationConfig.toolFindFiles",descriptionKey:"automations.automationConfig.toolFindFilesDesc",icon:gt},{name:"bash",titleKey:"automations.automationConfig.toolRunCommand",descriptionKey:"automations.automationConfig.toolRunCommandDesc",icon:gs}]},{key:"context",headingKey:"automations.automationConfig.context",icon:ht,tools:[{name:"read_resource",titleKey:"automations.automationConfig.toolReadResource",descriptionKey:"automations.automationConfig.toolReadResourceDesc",icon:ht},{name:"read_prompt",titleKey:"automations.automationConfig.toolReadPrompt",descriptionKey:"automations.automationConfig.toolReadPromptDesc",icon:jt},{name:"skill",titleKey:"automations.automationConfig.toolLoadSkill",descriptionKey:"automations.automationConfig.toolLoadSkillDesc",icon:jt}]}],xo=Bt.flatMap(r=>r.tools.map(e=>e.name));function go(r){const e=r.replace(/[_-]+/g," ").trim();return e?e.toLowerCase().replace(/\b\w/g,s=>s.toUpperCase()):r}function ho(r){const e=Z.c(12),{agentId:s,value:n,onChange:o}=r,i=ee();let c;e[0]!==i?(c=i("automations.automationConfig.toolsLabel"),e[0]=i,e[1]=c):c=e[1];let a;e[2]!==c?(a=t.jsx("span",{className:"text-xs font-semibold text-muted-foreground/60",children:c}),e[2]=c,e[3]=a):a=e[3];let j;e[4]!==s||e[5]!==o||e[6]!==i||e[7]!==n?(j=s?t.jsx(w.Suspense,{fallback:t.jsxs(B,{variant:"outline",size:"sm",disabled:!0,className:"w-fit",children:[t.jsx(lt,{size:14}),i("automations.automationConfig.loadingTools")]}),children:t.jsx(jo,{agentId:s,value:n,onChange:o})}):t.jsx("span",{className:"text-xs text-muted-foreground italic",children:i("automations.automationConfig.pickAgentFirst")}),e[4]=s,e[5]=o,e[6]=i,e[7]=n,e[8]=j):j=e[8];let d;return e[9]!==a||e[10]!==j?(d=t.jsxs("div",{className:"flex flex-col gap-2",children:[a,j]}),e[9]=a,e[10]=j,e[11]=d):d=e[11],d}function It(r){const e=Z.c(17),{value:s,checked:n,onToggle:o,title:i,description:c,leading:a}=r;let j;e[0]!==n?(j=t.jsx(Ft,{checked:n,className:"pointer-events-none mt-0.5"}),e[0]=n,e[1]=j):j=e[1];let d;e[2]!==a?(d=a&&t.jsx("span",{className:"mt-px shrink-0",children:a}),e[2]=a,e[3]=d):d=e[3];let m;e[4]!==i?(m=t.jsx("span",{className:"truncate text-sm leading-tight",children:i}),e[4]=i,e[5]=m):m=e[5];let x;e[6]!==c?(x=c&&t.jsx("span",{className:"line-clamp-2 text-xs leading-snug text-muted-foreground",children:c}),e[6]=c,e[7]=x):x=e[7];let f;e[8]!==m||e[9]!==x?(f=t.jsxs("div",{className:"flex min-w-0 flex-col gap-0.5",children:[m,x]}),e[8]=m,e[9]=x,e[10]=f):f=e[10];let g;return e[11]!==o||e[12]!==j||e[13]!==d||e[14]!==f||e[15]!==s?(g=t.jsxs(Ns,{value:s,onSelect:o,className:"items-start gap-2.5 py-2",children:[j,d,f]}),e[11]=o,e[12]=j,e[13]=d,e[14]=f,e[15]=s,e[16]=g):g=e[16],g}function At(r){const e=Z.c(27),{conn:s,label:n,icon:o,on:i,total:c,onToggle:a}=r,j=ee(),d=i===c;let m;e[0]!==o||e[1]!==s?(m=s?t.jsx(As,{icon:s.icon,name:s.title,size:"2xs"}):o?t.jsx(o,{size:14,className:"text-muted-foreground"}):t.jsx(ys,{size:14,className:"text-muted-foreground"}),e[0]=o,e[1]=s,e[2]=m):m=e[2];let x;e[3]!==s?.title||e[4]!==n||e[5]!==j?(x=s?.title??n??j("automations.automationConfig.otherTools"),e[3]=s?.title,e[4]=n,e[5]=j,e[6]=x):x=e[6];let f;e[7]!==x?(f=t.jsx("span",{className:"truncate",children:x}),e[7]=x,e[8]=f):f=e[8];let g;e[9]!==i||e[10]!==c?(g=t.jsxs("span",{className:"text-[11px] font-normal tabular-nums text-muted-foreground/70",children:[i,"/",c]}),e[9]=i,e[10]=c,e[11]=g):g=e[11];let u;e[12]!==a?(u=v=>{v.stopPropagation(),a()},e[12]=a,e[13]=u):u=e[13];let h;e[14]!==d||e[15]!==j?(h=j(d?"automations.automationConfig.none":"automations.automationConfig.all"),e[14]=d,e[15]=j,e[16]=h):h=e[16];let p;e[17]!==u||e[18]!==h?(p=t.jsx("button",{type:"button",onClick:u,className:"text-[11px] font-medium text-primary hover:underline",children:h}),e[17]=u,e[18]=h,e[19]=p):p=e[19];let l;e[20]!==g||e[21]!==p?(l=t.jsxs("span",{className:"ml-auto flex items-center gap-2",children:[g,p]}),e[20]=g,e[21]=p,e[22]=l):l=e[22];let y;return e[23]!==m||e[24]!==f||e[25]!==l?(y=t.jsxs("div",{className:"flex items-center gap-2",children:[m,f,l]}),e[23]=m,e[24]=f,e[25]=l,e[26]=y):y=e[26],y}function jo(r){const e=Z.c(83),{agentId:s,value:n,onChange:o}=r,i=ee(),{org:c}=$t(),[a,j]=w.useState(!1);let d;e[0]!==s||e[1]!==c.id||e[2]!==c.slug?(d={connectionId:s,orgId:c.id,orgSlug:c.slug},e[0]=s,e[1]=c.id,e[2]=c.slug,e[3]=d):d=e[3];const m=_s(d);let x;e[4]!==m?(x={client:m},e[4]=m,e[5]=x):x=e[5];const{data:f,isLoading:g}=Is(x),u=dt();let h,p,l,y,v,N,S,b,T,D,_,k,A;if(e[6]!==u||e[7]!==f?.tools||e[8]!==g||e[9]!==o||e[10]!==a||e[11]!==i||e[12]!==n){const q=new Map(u.map(No)),H=new Map;for(const I of f?.tools??[]){const E=ws(I._meta)??"__other__",Q=Ds(I.name,E==="__other__"?void 0:E),P=I.title,xe=P&&P!==I.name?P:go(Q);H.has(E)||H.set(E,{clientId:E,conn:q.get(E),tools:[]}),H.get(E).tools.push({name:I.name,display:xe,description:I.description})}const W=[...H.values()].sort(Co),G=(f?.tools??[]).map(vo),J=[...xo,...G],U=n===null?new Set(J):new Set(n),V=J.every(I=>U.has(I)),z=I=>o(J.every(E=>I.has(E))?null:[...I]),ae=I=>{const E=new Set(U);E.has(I)?E.delete(I):E.add(I),z(E)},ne=(I,E)=>{const Q=new Set(U);for(const P of I)E?Q.add(P):Q.delete(P);z(Q)};y=Lt,A=a,v=j;let Y;e[26]===Symbol.for("react.memo_cache_sentinel")?(Y=t.jsx(lt,{size:14,className:"text-muted-foreground"}),e[26]=Y):Y=e[26];let ie;e[27]!==V||e[28]!==i?(ie=i(V?"automations.automationConfig.allTools":"automations.automationConfig.tools"),e[27]=V,e[28]=i,e[29]=ie):ie=e[29];const ue=!V&&t.jsxs(Kt,{variant:"secondary",className:"ml-0.5 h-5 px-1.5 text-[11px] tabular-nums",children:[U.size,"/",J.length]});let me;e[30]===Symbol.for("react.memo_cache_sentinel")?(me=t.jsx(rt,{size:14,className:"text-muted-foreground"}),e[30]=me):me=e[30],e[31]!==ie||e[32]!==ue?(N=t.jsx(Mt,{asChild:!0,children:t.jsxs(B,{variant:"outline",size:"sm",className:"w-fit gap-1.5",children:[Y,ie,ue,me]})}),e[31]=ie,e[32]=ue,e[33]=N):N=e[33],l=Rt,_="p-0 w-80",k="start",p=Ss;let te;e[34]!==i?(te=i("automations.automationConfig.searchToolsPlaceholder"),e[34]=i,e[35]=te):te=e[35],e[36]!==te?(T=t.jsx(ks,{placeholder:te}),e[36]=te,e[37]=T):T=e[37];const fe=V?i("automations.automationConfig.allToolsEnabled",{count:J.length}):i("automations.automationConfig.toolsEnabledCount",{enabled:U.size,total:J.length});let se;e[38]!==fe?(se=t.jsx("span",{className:"text-xs text-muted-foreground",children:fe}),e[38]=fe,e[39]=se):se=e[39];let re;e[40]!==o?(re=()=>o(null),e[40]=o,e[41]=re):re=e[41];let le;e[42]!==i?(le=i("automations.automationConfig.selectAll"),e[42]=i,e[43]=le):le=e[43];let C;e[44]!==V||e[45]!==re||e[46]!==le?(C=t.jsx("button",{type:"button",onClick:re,disabled:V,className:"text-xs font-medium text-primary hover:underline disabled:cursor-default disabled:opacity-40 disabled:no-underline",children:le}),e[44]=V,e[45]=re,e[46]=le,e[47]=C):C=e[47];let M;e[48]===Symbol.for("react.memo_cache_sentinel")?(M=t.jsx("span",{className:"text-muted-foreground/30",children:"·"}),e[48]=M):M=e[48];let O;e[49]!==o?(O=()=>o([]),e[49]=o,e[50]=O):O=e[50];const pe=U.size===0;let oe;e[51]!==i?(oe=i("automations.automationConfig.clear"),e[51]=i,e[52]=oe):oe=e[52];let ce;e[53]!==O||e[54]!==pe||e[55]!==oe?(ce=t.jsx("button",{type:"button",onClick:O,disabled:pe,className:"text-xs font-medium text-muted-foreground hover:underline disabled:cursor-default disabled:opacity-40 disabled:no-underline",children:oe}),e[53]=O,e[54]=pe,e[55]=oe,e[56]=ce):ce=e[56];let de;e[57]!==C||e[58]!==ce?(de=t.jsxs("div",{className:"flex items-center gap-2",children:[C,M,ce]}),e[57]=C,e[58]=ce,e[59]=de):de=e[59],e[60]!==se||e[61]!==de?(D=t.jsxs("div",{className:"flex items-center justify-between border-b px-3 py-2",children:[se,de]}),e[60]=se,e[61]=de,e[62]=D):D=e[62],h=Ts,S="max-h-80",b=g?t.jsx("div",{className:"px-3 py-6 text-center text-xs text-muted-foreground",children:i("automations.automationConfig.loadingTools")}):t.jsxs(t.Fragment,{children:[t.jsx(Cs,{children:i("automations.automationConfig.noToolsFound")}),Bt.map(I=>{const E=I.tools.map(bo),Q=E.filter(P=>U.has(P)).length;return t.jsx(yt,{heading:t.jsx(At,{label:i(I.headingKey),icon:I.icon,on:Q,total:E.length,onToggle:()=>ne(E,Q!==E.length)}),children:I.tools.map(P=>t.jsx(It,{value:`${i(P.titleKey)} ${P.name}`,checked:U.has(P.name),onToggle:()=>ae(P.name),title:i(P.titleKey),description:i(P.descriptionKey),leading:t.jsx(P.icon,{size:16,className:"text-muted-foreground"})},P.name))},I.key)}),W.map(I=>{const E=I.tools.map(yo),Q=E.filter(P=>U.has(P)).length;return t.jsx(yt,{heading:t.jsx(At,{conn:I.conn,on:Q,total:E.length,onToggle:()=>ne(E,Q!==E.length)}),children:I.tools.map(P=>t.jsx(It,{value:`${P.display} ${P.name} ${I.conn?.title??""}`,checked:U.has(P.name),onToggle:()=>ae(P.name),title:P.display,description:P.description},P.name))},I.clientId)})]}),e[6]=u,e[7]=f?.tools,e[8]=g,e[9]=o,e[10]=a,e[11]=i,e[12]=n,e[13]=h,e[14]=p,e[15]=l,e[16]=y,e[17]=v,e[18]=N,e[19]=S,e[20]=b,e[21]=T,e[22]=D,e[23]=_,e[24]=k,e[25]=A}else h=e[13],p=e[14],l=e[15],y=e[16],v=e[17],N=e[18],S=e[19],b=e[20],T=e[21],D=e[22],_=e[23],k=e[24],A=e[25];let $;e[63]!==h||e[64]!==S||e[65]!==b?($=t.jsx(h,{className:S,children:b}),e[63]=h,e[64]=S,e[65]=b,e[66]=$):$=e[66];let R;e[67]!==p||e[68]!==$||e[69]!==T||e[70]!==D?(R=t.jsxs(p,{children:[T,D,$]}),e[67]=p,e[68]=$,e[69]=T,e[70]=D,e[71]=R):R=e[71];let K;e[72]!==l||e[73]!==R||e[74]!==_||e[75]!==k?(K=t.jsx(l,{className:_,align:k,children:R}),e[72]=l,e[73]=R,e[74]=_,e[75]=k,e[76]=K):K=e[76];let F;return e[77]!==y||e[78]!==v||e[79]!==N||e[80]!==K||e[81]!==A?(F=t.jsxs(y,{open:A,onOpenChange:v,children:[N,K]}),e[77]=y,e[78]=v,e[79]=N,e[80]=K,e[81]=A,e[82]=F):F=e[82],F}function yo(r){return r.name}function bo(r){return r.name}function vo(r){return r.name}function Co(r,e){return(r.conn?.title??r.clientId).localeCompare(e.conn?.title??e.clientId)}function No(r){return[r.id,r]}function Re(r){const e=r.trim().split(/\s+/);return e.length!==5?!1:e.every(s=>/^[\d*/,-]+$/.test(s))}function So(r){if(!r)return"Unknown schedule";const e=r.trim();if(e==="* * * * *")return"Every minute";if(e==="0 * * * *")return"Every hour";if(e==="0 0 * * *")return"Every day";if(e==="0 0 * * 1")return"Every week";const s=e.match(/^\*\/(\d+)\s+\*\s+\*\s+\*\s+\*$/);if(s)return`Every ${s[1]} minutes`;const n=e.match(/^0\s+\*\/(\d+)\s+\*\s+\*\s+\*$/);if(n)return`Every ${n[1]} hours`;const o=e.match(/^0\s+0\s+\*\/(\d+)\s+\*\s+\*$/);if(o){const a=parseInt(o[1]??"1");return a%7===0?`Every ${a/7} weeks`:`Every ${a} days`}const i=e.match(/^(\d+)\s+(\d+)\s+\*\s+\*\s+\*$/);if(i){const a=(i[2]??"0").padStart(2,"0"),j=(i[1]??"0").padStart(2,"0");return`Every day at ${a}:${j} UTC`}const c=e.match(/^(\d+)\s+(\d+)\s+\*\s+\*\s+(\d)$/);if(c){const j=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][parseInt(c[3]??"0")]??"day",d=(c[2]??"0").padStart(2,"0"),m=(c[1]??"0").padStart(2,"0");return`Every ${j} at ${d}:${m} UTC`}return r}function ko(r,e){const s=Math.max(1,r);switch(e){case"minutes":return s===1?"* * * * *":`*/${s} * * * *`;case"hours":return s===1?"0 * * * *":`0 */${s} * * *`;case"days":return s===1?"0 0 * * *":`0 0 */${s} * *`;case"weeks":return s===1?"0 0 * * 1":`0 0 */${s*7} * *`}}function To(r){const e=r.trim();if(e==="* * * * *")return{count:1,unit:"minutes"};if(e==="0 * * * *")return{count:1,unit:"hours"};if(e==="0 0 * * *")return{count:1,unit:"days"};if(e==="0 0 * * 1")return{count:1,unit:"weeks"};const s=e.match(/^\*\/(\d+)\s+\*\s+\*\s+\*\s+\*$/);if(s)return{count:parseInt(s[1]),unit:"minutes"};const n=e.match(/^0\s+\*\/(\d+)\s+\*\s+\*\s+\*$/);if(n)return{count:parseInt(n[1]),unit:"hours"};const o=e.match(/^0\s+0\s+\*\/(\d+)\s+\*\s+\*$/);return o?{count:parseInt(o[1]),unit:"days"}:null}function wo(r,e){return e===1?{minutes:"minute",hours:"hour",days:"day",weeks:"week"}[r]??r:r}const Do=[{label:"5 minutes",cron:"*/5 * * * *"},{label:"Hour",cron:"0 * * * *"},{label:"Day",cron:"0 0 * * *"},{label:"Week",cron:"0 0 * * 1"}],Ze=oo.filter(r=>!so.includes(r)),Gt=["any","earlier","later","statuses"],_o=r=>Ze.some(e=>e===r),Io=r=>Gt.some(e=>e===r);function Ao({automationId:r,open:e,onOpenChange:s}){const n=ee(),{triggerAdd:o}=ve(),[i,c]=w.useState("in_progress"),[a,j]=w.useState("any"),[d,m]=w.useState([]),x=Ze.filter(l=>l!==i),f=d.filter(l=>l!==i),g=a!=="statuses"||f.length>0,u=l=>{l||(c("in_progress"),j("any"),m([])),s(l)},h=async()=>{try{await o.mutateAsync({automation_id:r,type:"board_column_transition",column_key:i,from:a==="statuses"?{kind:a,statuses:f}:{kind:a}}),X.success(n("automations.addStarterPopover.starterAdded")),u(!1)}catch(l){X.error(l instanceof Error?l.message:n("automations.addStarterPopover.failedAddStarter"))}},p=l=>n(l==="any"?"automations.columnTransitionDialog.fromAny":l==="earlier"?"automations.columnTransitionDialog.fromEarlier":l==="later"?"automations.columnTransitionDialog.fromLater":"automations.columnTransitionDialog.fromColumns");return t.jsx(et,{open:e,onOpenChange:u,children:t.jsxs(tt,{className:"max-w-md",children:[t.jsxs(st,{children:[t.jsx(ot,{children:n("automations.columnTransitionDialog.title")}),t.jsx(at,{children:n("automations.columnTransitionDialog.description")})]}),t.jsxs("div",{className:"flex flex-col gap-4",children:[t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsx("span",{className:"text-xs font-semibold text-muted-foreground",children:n("automations.columnTransitionDialog.column")}),t.jsxs(ge,{value:i,onValueChange:l=>{_o(l)&&c(l)},children:[t.jsx(he,{className:"w-full",children:t.jsx(je,{})}),t.jsx(ye,{children:Ze.map(l=>{const{label:y,visual:v}=Be(l,n),N=v.icon;return t.jsxs(be,{value:l,children:[t.jsx(N,{size:14,className:Pt("shrink-0",v.iconClassName)}),y]},l)})})]})]}),t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsx("span",{className:"text-xs font-semibold text-muted-foreground",children:n("automations.columnTransitionDialog.origin")}),t.jsxs(ge,{value:a,onValueChange:l=>{Io(l)&&j(l)},children:[t.jsx(he,{className:"w-full",children:t.jsx(je,{})}),t.jsx(ye,{children:Gt.map(l=>t.jsx(be,{value:l,children:p(l)},l))})]}),a==="statuses"&&t.jsx(Wt,{options:x.map(l=>({label:Be(l,n).label,value:l})),defaultValue:f,onValueChange:m,placeholder:n("automations.columnTransitionDialog.columnsPlaceholder"),modalPopover:!0,className:"max-w-none"},i)]}),t.jsx("p",{className:"text-xs text-muted-foreground",children:n("automations.columnTransitionDialog.help")})]}),t.jsxs(nt,{children:[t.jsx(B,{variant:"ghost",onClick:()=>u(!1),children:n("automations.columnTransitionDialog.cancel")}),t.jsx(B,{disabled:!g||o.isPending,onClick:h,children:n("automations.columnTransitionDialog.add")})]})]})})}const Ht=["any","earlier","later","statuses"],Po=r=>Ht.some(e=>e===r);function $o({automationId:r,boardId:e,open:s,onOpenChange:n}){const o=ee(),{triggerAdd:i}=ve(),c=Zs(s?e:null),[a,j]=w.useState(null),[d,m]=w.useState("any"),[x,f]=w.useState([]),g=(c.data??[]).flatMap(b=>b.statuses.map(T=>({column:b.name,status:T}))),u=a??g[0]?.status??null,h=g.map(b=>b.status).filter(b=>b!==u),p=x.filter(b=>b!==u),l=u!==null&&(d!=="statuses"||p.length>0),y=b=>{b||(j(null),m("any"),f([])),n(b)},v=async()=>{if(u)try{await i.mutateAsync({automation_id:r,type:"jira_transition",jira_status:u,from:d==="statuses"?{kind:d,statuses:p}:{kind:d}}),X.success(o("automations.addStarterPopover.starterAdded")),y(!1)}catch(b){X.error(b instanceof Error?b.message:o("automations.addStarterPopover.failedAddStarter"))}},N=b=>o(b==="any"?"automations.jiraTransitionDialog.fromAny":b==="earlier"?"automations.jiraTransitionDialog.fromEarlier":b==="later"?"automations.jiraTransitionDialog.fromLater":"automations.jiraTransitionDialog.fromStatuses");let S;return c.isPending?S=t.jsx(es,{className:"h-9 w-full"}):c.isError||g.length===0?S=t.jsx("p",{className:"text-xs text-muted-foreground",children:o("automations.jiraTransitionDialog.noStatuses")}):S=t.jsxs(ge,{value:u??void 0,onValueChange:j,children:[t.jsx(he,{className:"w-full",children:t.jsx(je,{})}),t.jsx(ye,{children:g.map(b=>t.jsxs(be,{value:b.status,children:[b.status,b.column!==b.status&&t.jsx("span",{className:"text-muted-foreground",children:b.column})]},b.status))})]}),t.jsx(et,{open:s,onOpenChange:y,children:t.jsxs(tt,{className:"max-w-md",children:[t.jsxs(st,{children:[t.jsx(ot,{children:o("automations.jiraTransitionDialog.title")}),t.jsx(at,{children:o("automations.jiraTransitionDialog.description")})]}),t.jsxs("div",{className:"flex flex-col gap-4",children:[t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsx("span",{className:"text-xs font-semibold text-muted-foreground",children:o("automations.jiraTransitionDialog.status")}),S]}),t.jsxs("div",{className:"flex flex-col gap-1.5",children:[t.jsx("span",{className:"text-xs font-semibold text-muted-foreground",children:o("automations.jiraTransitionDialog.origin")}),t.jsxs(ge,{value:d,onValueChange:b=>{Po(b)&&m(b)},children:[t.jsx(he,{className:"w-full",children:t.jsx(je,{})}),t.jsx(ye,{children:Ht.map(b=>t.jsx(be,{value:b,children:N(b)},b))})]}),d==="statuses"&&t.jsx(Wt,{options:h.map(b=>({label:b,value:b})),defaultValue:p,onValueChange:f,placeholder:o("automations.jiraTransitionDialog.statusesPlaceholder"),modalPopover:!0,className:"max-w-none"},u)]}),t.jsx("p",{className:"text-xs text-muted-foreground",children:o("automations.jiraTransitionDialog.help")})]}),t.jsxs(nt,{children:[t.jsx(B,{variant:"ghost",onClick:()=>y(!1),children:o("automations.jiraTransitionDialog.cancel")}),t.jsx(B,{disabled:!l||i.isPending,onClick:v,children:o("automations.jiraTransitionDialog.add")})]})]})})}function zo({automationId:r,open:e,onOpenChange:s,onCustomSelect:n,onEventSelect:o,onWebhookCreated:i}){const c=ee(),{triggerAdd:a}=ve(),[j,d]=w.useState(!1),[m,x]=w.useState(!1),[f,g]=w.useState(!1),u=eo().data?.boardId??null,h=e??j,p=v=>{s?s(v):d(v)},l=async v=>{try{await a.mutateAsync({automation_id:r,type:"cron",cron_expression:v}),X.success(c("automations.addStarterPopover.starterAdded")),p(!1)}catch(N){const S=N instanceof Error?N.message:c("automations.addStarterPopover.failedAddStarter");X.error(S)}},y=async()=>{try{const v=await a.mutateAsync({automation_id:r,type:"webhook"});p(!1),v.webhook?i?.(v.webhook):X.success(c("automations.addStarterPopover.webhookStarterAdded"))}catch(v){const N=v instanceof Error?v.message:c("automations.addStarterPopover.failedAddWebhookStarter");X.error(N)}};return t.jsxs(t.Fragment,{children:[t.jsxs(ts,{open:h,onOpenChange:p,children:[t.jsx(ss,{asChild:!0,children:t.jsxs(B,{variant:"outline",size:"sm",children:[t.jsx(to,{size:14}),c("automations.addStarterPopover.addStarter")]})}),t.jsxs(os,{align:"end",className:"w-[240px]",children:[t.jsxs(as,{children:[t.jsxs(ns,{className:"gap-2.5",children:[t.jsx(Me,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.every")]}),t.jsx(is,{className:"w-[160px]",children:Do.map(v=>t.jsxs(Oe,{className:"gap-2.5",onSelect:()=>l(v.cron),disabled:a.isPending,children:[t.jsx(Me,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.everyUnit",{unit:v.label})]},v.cron))})]}),t.jsxs(Oe,{className:"gap-2.5",onSelect:()=>{p(!1),n?.()},children:[t.jsx(Me,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.customCron")]}),t.jsxs(Oe,{className:"gap-2.5",onSelect:()=>{p(!1),o?.()},children:[t.jsx(ut,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.event")]}),t.jsxs(Oe,{className:"gap-2.5",onSelect:()=>{p(!1),x(!0)},children:[t.jsx(zt,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.cardEntersColumn")]}),u&&t.jsxs(Oe,{className:"gap-2.5",onSelect:()=>{p(!1),g(!0)},children:[t.jsx(Vt,{size:14,className:"shrink-0"}),c("automations.addStarterPopover.jiraIssueEntersStatus")]}),t.jsxs(Oe,{className:"gap-2.5",onSelect:()=>{y()},disabled:a.isPending,children:[t.jsx(it,{size:14,className:"text-muted-foreground shrink-0"}),c("automations.addStarterPopover.webhook")]})]})]}),t.jsx(Ao,{automationId:r,open:m,onOpenChange:x}),u&&t.jsx($o,{automationId:r,boardId:u,open:f,onOpenChange:g})]})}function Jt(r){const e=Z.c(39),{open:s,onOpenChange:n,url:o,token:i,title:c,description:a}=r,j=c===void 0?"Webhook ready":c,d=a===void 0?"Send a POST to this URL with the bearer token to fire the automation. The token is shown once — copy it now.":a,m=ee(),[x,f]=w.useState(null),[g,u]=w.useState("curl"),[h,p]=w.useState("header"),l=w.useId();let y;e[0]!==m?(y=async(W,G)=>{try{await navigator.clipboard.writeText(W),f(G),X.success(m("automations.webhookSecretDialog.copied")),setTimeout(()=>f(null),1500)}catch{X.error(m("automations.webhookSecretDialog.failedCopy"))}},e[0]=m,e[1]=y):y=e[1];const v=y;let N;e[2]!==h||e[3]!==i||e[4]!==o?(N=o&&i&&h==="url"?`${o.replace(/\/$/,"")}/${i}`:o??"",e[2]=h,e[3]=i,e[4]=o,e[5]=N):N=e[5];const S=N,b=o&&i?h==="header"?`curl -X POST "${S}" \\
|
|
2
2
|
-H "Authorization: Bearer ${i}" \\
|
|
3
3
|
-H "Content-Type: application/json" \\
|
|
4
4
|
-d '{"hello":"world"}'`:`curl -X POST "${S}" \\
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as S,b as K,r as F,j as e,n as m,y as O,B as V,aY as Q}from"./index-
|
|
1
|
+
import{c as S,b as K,r as F,j as e,n as m,y as O,B as V,aY as Q}from"./index-CRbDzsEl.js";import{C as U}from"./index-BW9tBS1_.js";import{s as W}from"./Plus-clvoB9-y.js";import{t as X}from"./agent-icon-CSrsRkkV.js";import{i as Y}from"./ZoomOut-DJOChAz1.js";import{S as Z}from"./search-input-DXojQXHS.js";import{E as $}from"./empty-state-DfOpTmwf.js";import{u as tt,a as et,b as it}from"./use-automations-DxHm0Snl.js";import{a as ot}from"./use-panel-navigate-sjPSBICL.js";import{A as st}from"./automation-list-row-CmUakn9s.js";import{b as rt}from"./thread-route-gGOzpjkp.js";import"./use-mobile-BcwC7VU3.js";import"./thread-button-D0vpHKhc.js";import"./UserSquare-BG_D4lBt.js";import"./Image01-DUunwh52.js";import"./use-chat-layout-state-n4Q3uYHD.js";import"./use-file-configs-BJG54sLn.js";import"./use-organization-settings-C2COOtae.js";import"./schema-DCzFPjhQ.js";import"./task-board-Cq7KN9Yp.js";import"./site-slug-DebpOoQq.js";import"./repository-binding-GEAUbB-O.js";import"./use-mcp-client-BWo29jbN.js";import"./auth-Cf8kTvK7.js";import"./thread-intent-DTPz1weL.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-Bb7_5bsI.js";import"./slugify-CEUa2lfQ.js";import"./sheet-Bg01hTvG.js";import"./tooltip-3DBbiHrv.js";import"./index-DPPcuuZa.js";import"./toolbar-icon-button-BbfFE6qt.js";import"./shell-layout-BO31z5MQ.js";import"./avatar-CVhMMaTf.js";import"./User01-VVR3ncLA.js";import"./Building02-CFG818HY.js";import"./XClose-Ck0EFhGe.js";import"./use-project-scope-B_oLVbNv.js";import"./CheckCircle-BZiV5rFy.js";import"./Monitor01-Cm6_ReiN.js";import"./use-clock-tick-X8apRSs5.js";import"./Tool01-D8RNlK5k.js";import"./command-CJiwms5W.js";import"./index-4oHb6320.js";import"./SearchMd-Bg-9XsfQ.js";import"./integration-icon-BELz_pOH.js";import"./LinkBroken01-BFW8MxYc.js";import"./project-icon-CgRPdhMz.js";import"./new-project-dialog-CU6GK7Hi.js";import"./ArrowLeft-DwPfX3sc.js";import"./label-BUw2LYOJ.js";import"./repository-import-picker-CGZicTtt.js";import"./use-navigate-to-agent-f1RDTOQU.js";import"./repository-picker-ipWiqqIY.js";import"./useInfiniteQuery-BBVki4Du.js";import"./infiniteQueryObserver-Dhuk-wHX.js";import"./collection-search-JcNHcOFg.js";import"./ShoppingBag01-C_AR4ZKW.js";import"./use-debounced-value-Db_6wQub.js";import"./required-auth-layout-B0JL0M-z.js";import"./autosend-Dbvfg9pv.js";import"./use-org-sso-DQNJJVcp.js";import"./resizable-CNroF4sn.js";import"./icon-button-D9OpoKyB.js";import"./AlertCircle-BBiRNTdE.js";import"./ArrowUp-XUO4rGpO.js";import"./ChevronUp-ZSzJudc4.js";import"./ChevronSelectorVertical-Dc4zDElk.js";import"./Copy01-CT9uxfj6.js";import"./CreditCard01-DCwoKma6.js";import"./DotsVertical-CcRpaMtq.js";import"./Globe04-D88PtZSB.js";import"./SwitchHorizontal01-D8mpLNM6.js";import"./Key01-Dy9XOW24.js";import"./Link01-BDbdWLwx.js";import"./Sun-Dzm8FpU3.js";import"./Play-DFfgxv2q.js";import"./Trash01-ByfCfoe2.js";import"./Upload01-BOzWcBO4.js";import"./Users01-BT5Jdc2I.js";import"./badge-GBNejOns.js";import"./alert-dialog-Bq1vUmcb.js";function nt(o){if(!(o instanceof Error))return!1;const t=o.message.toLowerCase();return t.includes("relation")&&t.includes("does not exist")}function mt(o){const t=S.c(45),{virtualMcpId:r}=o,i=K(),{openPanel:n}=ot(),{data:D,error:M}=tt(r),b=D===void 0?[]:D,{create:y}=et(),[_,G]=F.useState("");if(M&&nt(M)){let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=e.jsx(X,{size:48,className:"text-muted-foreground"}),t[0]=s):s=t[0];let x;t[1]!==i?(x=i("automations.setupRequired.title"),t[1]=i,t[2]=x):x=t[2];let h;t[3]!==i?(h=i("automations.setupRequired.description"),t[3]=i,t[4]=h):h=t[4];let j;t[5]!==n?(j=()=>n("settings"),t[5]=n,t[6]=j):j=t[6];let g;t[7]!==i?(g=i("automations.setupRequired.goToSetup"),t[7]=i,t[8]=g):g=t[8];let C;t[9]!==j||t[10]!==g?(C=e.jsx(V,{size:"sm",onClick:j,children:g}),t[9]=j,t[10]=g,t[11]=C):C=t[11];let N;return t[12]!==x||t[13]!==h||t[14]!==C?(N=e.jsx(m,{children:e.jsx(m.Content,{children:e.jsx(m.Container,{children:e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx($,{image:s,title:x,description:h,actions:C})})})})}),t[12]=x,t[13]=h,t[14]=C,t[15]=N):N=t[15],N}const H=_.toLowerCase(),q=b.filter(s=>s.name.toLowerCase().includes(H));let w;t[16]!==n?(w=s=>n(`automation:${s}`),t[16]=n,t[17]=w):w=t[17];const B=w,R=async()=>{if(y.isPending)return;O("automation_new_clicked",{virtual_mcp_id:r,existing_count:b.length});const s=await y.mutateAsync(it(r));B(s.id)},J=y.isPending;let A;t[18]===Symbol.for("react.memo_cache_sentinel")?(A=e.jsx(W,{size:14}),t[18]=A):A=t[18];let a;t[19]!==i?(a=i("automations.automationsList.newAutomation"),t[19]=i,t[20]=a):a=t[20];let L;t[21]!==y.isPending||t[22]!==R||t[23]!==a?(L=e.jsxs(V,{size:"sm",onClick:R,disabled:J,children:[A,a]}),t[21]=y.isPending,t[22]=R,t[23]=a,t[24]=L):L=t[24];const P=L,T=m,E=m,k=m;let l;t[25]!==i?(l=i("automations.automationsList.title"),t[25]=i,t[26]=l):l=t[26];let c;t[27]!==P||t[28]!==l?(c=e.jsx(m.Title,{actions:P,children:l}),t[27]=P,t[28]=l,t[29]=c):c=t[29];const z=b.length>0&&e.jsx(Z,{value:_,onChange:G,placeholder:i("automations.automationsList.searchPlaceholder"),className:"w-full md:w-[375px]"});let p;t[30]!==z?(p=e.jsx("div",{className:"flex flex-wrap items-center justify-between gap-3",children:z}),t[30]=z,t[31]=p):p=t[31];let u;t[32]!==c||t[33]!==p?(u=e.jsxs("div",{className:"flex flex-col gap-6",children:[c,p]}),t[32]=c,t[33]=p,t[34]=u):u=t[34];const I=b.length===0?e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx($,{image:e.jsx(Y,{size:48,className:"text-muted-foreground"}),title:i("automations.automationsList.emptyTitle"),description:i("automations.automationsList.emptyDescription"),actions:!1})}):q.length===0?e.jsx("div",{className:"flex items-center justify-center py-20",children:e.jsx($,{image:e.jsx(Y,{size:48,className:"text-muted-foreground"}),title:i("automations.automationsList.noResultsTitle"),description:i("automations.automationsList.noResultsDescription",{search:_})})}):e.jsx("div",{className:"mt-6 rounded-xl border border-border overflow-hidden",children:q.map(s=>e.jsx(st,{automation:s,onClick:()=>B(s.id)},s.id))});let d;t[35]!==u||t[36]!==I||t[37]!==k.Container?(d=e.jsxs(k.Container,{children:[u,I]}),t[35]=u,t[36]=I,t[37]=k.Container,t[38]=d):d=t[38];let f;t[39]!==d||t[40]!==E.Content?(f=e.jsx(E.Content,{children:d}),t[39]=d,t[40]=E.Content,t[41]=f):f=t[41];let v;return t[42]!==T||t[43]!==f?(v=e.jsx(T,{children:f}),t[42]=T,t[43]=f,t[44]=v):v=t[44],v}function at(o){const t=S.c(3),{virtualMcpId:r}=o;let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=e.jsx(Q,{}),t[0]=i):i=t[0];let n;return t[1]!==r?(n=e.jsx(F.Suspense,{fallback:i,children:e.jsx(mt,{virtualMcpId:r})}),t[1]=r,t[2]=n):n=t[2],n}function lt(){const o=S.c(2),t=rt();let r;return o[0]!==t?(r=e.jsx(at,{virtualMcpId:t}),o[0]=t,o[1]=r):r=o[1],r}function qe(){const o=S.c(1);let t;return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(U.Content,{children:e.jsx(lt,{})}),o[0]=t):t=o[0],t}export{qe as default};
|
package/dist/client/assets/{agent-connect-sources-3TeEngKZ.js → agent-connect-sources-CyYVygog.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as M,j as i,r as _,H as F,b as w,a2 as L,W as U,J as W,e as $}from"./index-
|
|
1
|
+
import{c as M,j as i,r as _,H as F,b as w,a2 as L,W as U,J as W,e as $}from"./index-CRbDzsEl.js";import{C as D}from"./index-BW9tBS1_.js";import{u as B}from"./use-mcp-client-BWo29jbN.js";import{C as H,a as J}from"./companion-mcps-section--NmxcAor.js";import{c as K}from"./use-connect-companion-DejR02Br.js";import{C as v,a as q}from"./connect-layout-m9uvi79-.js";import{p as z}from"./self-tool-result-8OxPN9Nm.js";import{a as G}from"./use-panel-navigate-sjPSBICL.js";import"./use-mobile-BcwC7VU3.js";import"./thread-button-D0vpHKhc.js";import"./agent-icon-CSrsRkkV.js";import"./AlertCircle-BBiRNTdE.js";import"./Tool01-D8RNlK5k.js";import"./ArrowUp-XUO4rGpO.js";import"./ArrowLeft-DwPfX3sc.js";import"./LinkBroken01-BFW8MxYc.js";import"./ShoppingBag01-C_AR4ZKW.js";import"./ZoomOut-DJOChAz1.js";import"./Building02-CFG818HY.js";import"./CheckCircle-BZiV5rFy.js";import"./ChevronUp-ZSzJudc4.js";import"./ChevronSelectorVertical-Dc4zDElk.js";import"./UserSquare-BG_D4lBt.js";import"./Copy01-CT9uxfj6.js";import"./CreditCard01-DCwoKma6.js";import"./DotsVertical-CcRpaMtq.js";import"./Image01-DUunwh52.js";import"./Globe04-D88PtZSB.js";import"./SwitchHorizontal01-D8mpLNM6.js";import"./Key01-Dy9XOW24.js";import"./Link01-BDbdWLwx.js";import"./Monitor01-Cm6_ReiN.js";import"./Sun-Dzm8FpU3.js";import"./Play-DFfgxv2q.js";import"./Plus-clvoB9-y.js";import"./SearchMd-Bg-9XsfQ.js";import"./Trash01-ByfCfoe2.js";import"./Upload01-BOzWcBO4.js";import"./User01-VVR3ncLA.js";import"./Users01-BT5Jdc2I.js";import"./XClose-Ck0EFhGe.js";import"./use-chat-layout-state-n4Q3uYHD.js";import"./use-file-configs-BJG54sLn.js";import"./use-organization-settings-C2COOtae.js";import"./schema-DCzFPjhQ.js";import"./task-board-Cq7KN9Yp.js";import"./site-slug-DebpOoQq.js";import"./repository-binding-GEAUbB-O.js";import"./thread-route-gGOzpjkp.js";import"./thread-intent-DTPz1weL.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-Bb7_5bsI.js";import"./slugify-CEUa2lfQ.js";import"./sheet-Bg01hTvG.js";import"./tooltip-3DBbiHrv.js";import"./index-DPPcuuZa.js";import"./toolbar-icon-button-BbfFE6qt.js";import"./shell-layout-BO31z5MQ.js";import"./avatar-CVhMMaTf.js";import"./use-project-scope-B_oLVbNv.js";import"./use-clock-tick-X8apRSs5.js";import"./command-CJiwms5W.js";import"./index-4oHb6320.js";import"./integration-icon-BELz_pOH.js";import"./project-icon-CgRPdhMz.js";import"./new-project-dialog-CU6GK7Hi.js";import"./label-BUw2LYOJ.js";import"./repository-import-picker-CGZicTtt.js";import"./use-navigate-to-agent-f1RDTOQU.js";import"./repository-picker-ipWiqqIY.js";import"./useInfiniteQuery-BBVki4Du.js";import"./infiniteQueryObserver-Dhuk-wHX.js";import"./collection-search-JcNHcOFg.js";import"./use-debounced-value-Db_6wQub.js";import"./required-auth-layout-B0JL0M-z.js";import"./autosend-Dbvfg9pv.js";import"./use-org-sso-DQNJJVcp.js";import"./resizable-CNroF4sn.js";import"./icon-button-D9OpoKyB.js";import"./auth-Cf8kTvK7.js";import"./site-url-en5df9c-.js";import"./companions-core-DzyeM-yJ.js";import"./metadata-D72DunRR.js";import"./github-repo-scope-ByTYKy_L.js";import"./form-Bn1uWhLp.js";import"./provision-repo-scoped-github-connection-lckxpDHD.js";import"./useQueries-Ij5noImS.js";import"./authenticate-and-persist-oauth-CNIjDkAv.js";import"./mcp-oauth-DJzQquAH.js";import"./mcp-oauth-DcDGTHX8.js";import"./track-2QxiEKmh.js";import"./extract-connection-data-BWH-Gguq.js";import"./connection-pgjV95kc.js";import"./url-slug-CVpOSHeG.js";function Q(o){const t=M.c(7),{onClose:l}=o,n=w();let r;t[0]!==n?(r=n("routes.reportsOnboarding.connectModal.loadError"),t[0]=n,t[1]=r):r=t[1];let e;t[2]!==r?(e=i.jsx("p",{className:"text-sm text-muted-foreground",children:r}),t[2]=r,t[3]=e):e=t[3];let s;return t[4]!==l||t[5]!==e?(s=i.jsx(v,{onClose:l,footer:null,children:e}),t[4]=l,t[5]=e,t[6]=s):s=t[6],s}function V(){const o=M.c(10),{closePanel:t}=G();let l;o[0]!==t?(l=()=>t(),o[0]=t,o[1]=l):l=o[1];const n=l;let r;o[2]!==n?(r=()=>i.jsx(Q,{onClose:n}),o[2]=n,o[3]=r):r=o[3];let e;o[4]===Symbol.for("react.memo_cache_sentinel")?(e=i.jsx(H,{}),o[4]=e):e=o[4];let s;o[5]!==n?(s=i.jsx(_.Suspense,{fallback:i.jsx(v,{onClose:n,footer:null,children:e}),children:i.jsx(X,{onDone:n,onClose:n})}),o[5]=n,o[6]=s):s=o[6];let m;return o[7]!==r||o[8]!==s?(m=i.jsx("div",{className:"flex h-full min-h-0 flex-col overflow-hidden",children:i.jsx(F,{fallback:r,children:s})}),o[7]=r,o[8]=s,o[9]=m):m=o[9],m}function X(o){const t=M.c(46),{onDone:l,onClose:n}=o,r=w(),{org:e}=L();let s;t[0]!==e.id?(s=U.REPORTS(e.id),t[0]=e.id,t[1]=s):s=t[1];const m=s;let b;t[2]!==e.id||t[3]!==e.slug?(b={connectionId:W,orgId:e.id,orgSlug:e.slug},t[2]=e.id,t[3]=e.slug,t[4]=b):b=t[4];const a=B(b);let P;t[5]!==m||t[6]!==e||t[7]!==a?(P={selfClient:a,org:e,cdConnectionId:m},t[5]=m,t[6]=e,t[7]=a,t[8]=P):P=t[8];const c=K(P),[I,k]=_.useState(!1),[R,N]=_.useState(null);let y;t[9]!==a?(y={mutationFn:async A=>z(await a.callTool({name:"REPORTS_RUN",arguments:{siteUrl:A}})),retry:!1},t[9]=a,t[10]=y):y=t[10];const p=$(y);let E;t[11]!==l||t[12]!==p||t[13]!==c||t[14]!==r?(E=async()=>{if(N(null),c)try{await p.mutateAsync(c)}catch{N(r("routes.reportsOnboarding.connectModal.somethingWentWrong"));return}l()},t[11]=l,t[12]=p,t[13]=c,t[14]=r,t[15]=E):E=t[15];const O=E;let u;t[16]!==R?(u=R?i.jsx("p",{className:"text-sm leading-5 text-destructive",role:"alert",children:R}):null,t[16]=R,t[17]=u):u=t[17];let f;t[18]!==p.isPending||t[19]!==r?(f=p.isPending?r("routes.reportsOnboarding.connectSourcesTab.refreshing"):r("routes.reportsOnboarding.connectSourcesTab.refresh"),t[18]=p.isPending,t[19]=r,t[20]=f):f=t[20];let d;t[21]!==O?(d=()=>{O()},t[21]=O,t[22]=d):d=t[22];let x;t[23]!==I||t[24]!==p.isPending||t[25]!==f||t[26]!==d?(x=i.jsx(q,{ready:I,pending:p.isPending,label:f,onClick:d}),t[23]=I,t[24]=p.isPending,t[25]=f,t[26]=d,t[27]=x):x=t[27];let g;t[28]!==u||t[29]!==x?(g=i.jsxs(i.Fragment,{children:[u,x]}),t[28]=u,t[29]=x,t[30]=g):g=t[30];let C;t[31]!==r?(C=r("routes.reportsOnboarding.connectSourcesTab.title"),t[31]=r,t[32]=C):C=t[32];let h;t[33]!==C?(h=i.jsx("h2",{className:"text-xl font-medium leading-tight text-foreground",children:C}),t[33]=C,t[34]=h):h=t[34];let S;t[35]!==m||t[36]!==e||t[37]!==c?(S=i.jsx(J,{org:e,cdConnectionId:m,siteUrl:c,onReadinessChange:k}),t[35]=m,t[36]=e,t[37]=c,t[38]=S):S=t[38];let j;t[39]!==h||t[40]!==S?(j=i.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-8 overflow-y-auto",children:[h,S]}),t[39]=h,t[40]=S,t[41]=j):j=t[41];let T;return t[42]!==n||t[43]!==g||t[44]!==j?(T=i.jsx(v,{onClose:n,footer:g,children:j}),t[42]=n,t[43]=g,t[44]=j,t[45]=T):T=t[45],T}function $o(){const o=M.c(1);let t;return o[0]===Symbol.for("react.memo_cache_sentinel")?(t=i.jsx(D.Content,{children:i.jsx(V,{})}),o[0]=t):t=o[0],t}export{$o as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c,j as e,b2 as b,u as g}from"./index-CRbDzsEl.js";import{C as j}from"./index-BW9tBS1_.js";import{F as v,H as S}from"./file-share-button-BDicbalV.js";import{u as k,b as y,e as _}from"./use-org-fs-BruBSf1P.js";import{S as w}from"./settings-tab-TpMIkIJy.js";import{b as M}from"./thread-route-gGOzpjkp.js";import"./use-mobile-BcwC7VU3.js";import"./thread-button-D0vpHKhc.js";import"./agent-icon-CSrsRkkV.js";import"./AlertCircle-BBiRNTdE.js";import"./Tool01-D8RNlK5k.js";import"./ArrowUp-XUO4rGpO.js";import"./ArrowLeft-DwPfX3sc.js";import"./LinkBroken01-BFW8MxYc.js";import"./ShoppingBag01-C_AR4ZKW.js";import"./ZoomOut-DJOChAz1.js";import"./Building02-CFG818HY.js";import"./CheckCircle-BZiV5rFy.js";import"./ChevronUp-ZSzJudc4.js";import"./ChevronSelectorVertical-Dc4zDElk.js";import"./UserSquare-BG_D4lBt.js";import"./Copy01-CT9uxfj6.js";import"./CreditCard01-DCwoKma6.js";import"./DotsVertical-CcRpaMtq.js";import"./Image01-DUunwh52.js";import"./Globe04-D88PtZSB.js";import"./SwitchHorizontal01-D8mpLNM6.js";import"./Key01-Dy9XOW24.js";import"./Link01-BDbdWLwx.js";import"./Monitor01-Cm6_ReiN.js";import"./Sun-Dzm8FpU3.js";import"./Play-DFfgxv2q.js";import"./Plus-clvoB9-y.js";import"./SearchMd-Bg-9XsfQ.js";import"./Trash01-ByfCfoe2.js";import"./Upload01-BOzWcBO4.js";import"./User01-VVR3ncLA.js";import"./Users01-BT5Jdc2I.js";import"./XClose-Ck0EFhGe.js";import"./use-chat-layout-state-n4Q3uYHD.js";import"./use-file-configs-BJG54sLn.js";import"./use-organization-settings-C2COOtae.js";import"./schema-DCzFPjhQ.js";import"./task-board-Cq7KN9Yp.js";import"./site-slug-DebpOoQq.js";import"./repository-binding-GEAUbB-O.js";import"./use-mcp-client-BWo29jbN.js";import"./auth-Cf8kTvK7.js";import"./use-panel-navigate-sjPSBICL.js";import"./use-project-scope-B_oLVbNv.js";import"./thread-intent-DTPz1weL.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-Bb7_5bsI.js";import"./slugify-CEUa2lfQ.js";import"./sheet-Bg01hTvG.js";import"./tooltip-3DBbiHrv.js";import"./index-DPPcuuZa.js";import"./toolbar-icon-button-BbfFE6qt.js";import"./shell-layout-BO31z5MQ.js";import"./avatar-CVhMMaTf.js";import"./use-clock-tick-X8apRSs5.js";import"./command-CJiwms5W.js";import"./index-4oHb6320.js";import"./integration-icon-BELz_pOH.js";import"./project-icon-CgRPdhMz.js";import"./new-project-dialog-CU6GK7Hi.js";import"./label-BUw2LYOJ.js";import"./repository-import-picker-CGZicTtt.js";import"./use-navigate-to-agent-f1RDTOQU.js";import"./repository-picker-ipWiqqIY.js";import"./useInfiniteQuery-BBVki4Du.js";import"./infiniteQueryObserver-Dhuk-wHX.js";import"./collection-search-JcNHcOFg.js";import"./use-debounced-value-Db_6wQub.js";import"./required-auth-layout-B0JL0M-z.js";import"./autosend-Dbvfg9pv.js";import"./use-org-sso-DQNJJVcp.js";import"./resizable-CNroF4sn.js";import"./icon-button-D9OpoKyB.js";import"./popover-UZd_hI6l.js";import"./extract-connection-data-BWH-Gguq.js";import"./metadata-D72DunRR.js";import"./connection-pgjV95kc.js";import"./url-slug-CVpOSHeG.js";import"./chat-context-NYUfgJBl.js";import"./use-decopilot-events-D14uF_Cy.js";import"./use-ai-providers-scSugiQF.js";import"./use-chat-navigation-CpL4JFZX.js";import"./location-BjlyegC2.js";import"./build-improve-prompt-doc-DMgFOt46.js";import"./empty-state-DfOpTmwf.js";import"./use-date-fns-locale-uYFiDToW.js";import"./differenceInSeconds-C3x8sHUj.js";import"./mcp-oauth-DJzQquAH.js";import"./mcp-oauth-DcDGTHX8.js";import"./alert-dialog-Bq1vUmcb.js";import"./textarea-DKdq_MAz.js";import"./use-connection--fjYRP_g.js";import"./use-debounced-autosave-NE-5LrTu.js";import"./add-connection-dialog-DhxH1mO6.js";import"./connection-card-CWkexnWw.js";import"./connection-slug-CITJ0kGN.js";import"./drawer-DWjMBwyf.js";import"./form-Bn1uWhLp.js";import"./select-nSDsr0Zi.js";import"./index-BdQq_4o_.js";import"./schema-DxY623qB.js";import"./connection-form-helpers-W4yLfkzt.js";import"./authenticate-and-persist-oauth-CNIjDkAv.js";import"./collection-tabs-CSZlwXCA.js";import"./badge-GBNejOns.js";import"./use-infinite-scroll-BPxCDDTo.js";import"./useSuspenseInfiniteQuery-DP1_6mso.js";import"./file-type-icon-hf5iGs8U.js";import"./checkbox-1mSDcatb.js";import"./search-input-DXojQXHS.js";import"./use-mcp-auth-status-CqBzsTJX.js";import"./types-DJQTaYxP.js";import"./use-mcp-tools-D9a3atY2.js";import"./use-mcp-prompts-BmY4-dHy.js";import"./utils-CVEq3hMx.js";import"./switch-C2mEXqfo.js";import"./scroll-area-BOuDQrjF.js";import"./optimistic-project-sidebar-views-6bEngMBF.js";import"./virtual-mcp-eMBT1Rwh.js";import"./sandbox-url-D3mC8qhT.js";import"./secret-picker-DghVxrjs.js";import"./use-secrets-Dut38iEG.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./serial-task-queue-CGOeQgpr.js";const x="home";function P(i){const t=c.c(5),{label:r}=i;let p;t[0]===Symbol.for("react.memo_cache_sentinel")?(p=e.jsx(b,{className:"aspect-video w-2/3 max-w-xl"}),t[0]=p):p=t[0];let o;t[1]!==r?(o=r&&e.jsx("p",{className:"text-xs text-muted-foreground",children:r}),t[1]=r,t[2]=o):o=t[2];let m;return t[3]!==o?(m=e.jsxs("div",{className:"flex h-full w-full flex-col items-center justify-center gap-3 bg-background",children:[p,o]}),t[3]=o,t[4]=m):m=t[4],m}function D(i){const t=c.c(15),{path:r}=i;let p;t[0]===Symbol.for("react.memo_cache_sentinel")?(p={refetchIntervalWhenAbsent:2e3},t[0]=p):p=t[0];const o=k(x,r,p),m=y(x)(r);if(o.isPending||!o.data){const h=!o.isPending&&!o.data?"Waiting for the deck to sync…":void 0;let l;return t[1]!==h?(l=e.jsx(P,{label:h}),t[1]=h,t[2]=l):l=t[2],l}let s;t[3]!==o.data?(s=_(o.data),t[3]=o.data,t[4]=s):s=t[4];const f=o.data.shareMode??"private",u=o.data.effectivePublic??!1,d=window.location.origin+m;let a;t[5]!==r||t[6]!==f||t[7]!==u||t[8]!==d?(a=e.jsx(v,{volume:x,path:r,shareMode:f,effectivePublic:u,url:d}),t[5]=r,t[6]=f,t[7]=u,t[8]=d,t[9]=a):a=t[9];let n;return t[10]!==r||t[11]!==m||t[12]!==s||t[13]!==a?(n=e.jsx(S,{readUrl:m,marker:s,title:r,savePath:r,trailing:a}),t[10]=r,t[11]=m,t[12]=s,t[13]=a,t[14]=n):n=t[14],n}function C(){const i=c.c(4);let t;i[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},i[0]=t):t=i[0];const r=g(t),p=M(),o="path"in r&&typeof r.path=="string"?r.path:void 0;let m;return i[1]!==o||i[2]!==p?(m=o?e.jsx(D,{path:o},o):e.jsx(w,{virtualMcpId:p}),i[1]=o,i[2]=p,i[3]=m):m=i[3],m}function tr(){const i=c.c(1);let t;return i[0]===Symbol.for("react.memo_cache_sentinel")?(t=e.jsx(j.Content,{children:e.jsx(C,{})}),i[0]=t):t=i[0],t}export{tr as default};
|