decocms 4.464.0 → 4.464.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-DQV9Mc17.js → AlertCircle-CL-Ba0_Q.js} +1 -1
- package/dist/client/assets/{AreaChart-CzwL_0OC.js → AreaChart-BR3vo-tb.js} +1 -1
- package/dist/client/assets/{ArrowLeft-BIML-f0i.js → ArrowLeft-ZcdIkYz0.js} +1 -1
- package/dist/client/assets/{ArrowUp-CmgvSWvg.js → ArrowUp-CvjiUaVx.js} +1 -1
- package/dist/client/assets/{Building02-DGed7X87.js → Building02-FvnfPLK2.js} +1 -1
- package/dist/client/assets/{CartesianChart-D2XReMlE.js → CartesianChart-BX61N6Vt.js} +1 -1
- package/dist/client/assets/{Check-DmssFQIB.js → Check-m_9M3llp.js} +1 -1
- package/dist/client/assets/{CheckCircle-CGt4I_97.js → CheckCircle-BnDcHqrT.js} +1 -1
- package/dist/client/assets/{ChevronUp-CVGAY_3s.js → ChevronUp-ZFMh5ExZ.js} +1 -1
- package/dist/client/assets/{Copy01-Bv3jpVlA.js → Copy01-C06SX2Rt.js} +1 -1
- package/dist/client/assets/{CreditCard01-CsLyF3kp.js → CreditCard01-CjlTPFuS.js} +1 -1
- package/dist/client/assets/{DotsVertical-CiM8md1y.js → DotsVertical-8IP4yxP4.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-C-Br6GDZ.js → ErrorBarContext-DdXeAmkz.js} +1 -1
- package/dist/client/assets/{Globe04-5mRZfz3d.js → Globe04-Dg-78cI8.js} +1 -1
- package/dist/client/assets/{Image01-DxzRuuii.js → Image01-D9Kt40Xt.js} +1 -1
- package/dist/client/assets/{Key01-4ZMPLPba.js → Key01-CY_jgU1B.js} +1 -1
- package/dist/client/assets/{Line-CDL5qmk5.js → Line-dSLV618t.js} +1 -1
- package/dist/client/assets/{Link01-M6drdXoX.js → Link01-CUs37Sc0.js} +1 -1
- package/dist/client/assets/{LinkBroken01-W0guIiTp.js → LinkBroken01-Bu7OL2cL.js} +1 -1
- package/dist/client/assets/{LinkExternal01-ClcRo1x1.js → LinkExternal01-K_EoOXaI.js} +1 -1
- package/dist/client/assets/{Monitor01-Dk1HgiBj.js → Monitor01-BK0yoFL7.js} +1 -1
- package/dist/client/assets/{Plus-Bq5ZeuHM.js → Plus-D36CJbju.js} +1 -1
- package/dist/client/assets/{SearchMd-tAwrJP3u.js → SearchMd-CWTPI1P9.js} +1 -1
- package/dist/client/assets/{Sector-JvAmi2ld.js → Sector-CBva21QI.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-CQ0azIkw.js → ShoppingBag01-d2G89AZS.js} +1 -1
- package/dist/client/assets/{Sun-k0O1HcgT.js → Sun-rNt0Rjt9.js} +1 -1
- package/dist/client/assets/{Tool01-rcwjZJWt.js → Tool01-BR_2GJVQ.js} +1 -1
- package/dist/client/assets/{Trash01-yUMH9377.js → Trash01-DU_Ipkqh.js} +1 -1
- package/dist/client/assets/{Upload01-BPuydd_6.js → Upload01-BiQc81e2.js} +1 -1
- package/dist/client/assets/{User01-9b4OuT4C.js → User01-YC00nqD8.js} +1 -1
- package/dist/client/assets/{UserSquare-weua4atg.js → UserSquare-CkpWY_Ql.js} +1 -1
- package/dist/client/assets/{Users01-CldLEl2f.js → Users01-BSwysKui.js} +1 -1
- package/dist/client/assets/{X-CSlg1sd1.js → X-DmvkVyms.js} +1 -1
- package/dist/client/assets/{XAxis-B6QoWNgI.js → XAxis-DvKYyO7z.js} +1 -1
- package/dist/client/assets/{XClose-C0S6AMzF.js → XClose-JbZeJDvi.js} +1 -1
- package/dist/client/assets/{ZoomOut-B5ON1ruo.js → ZoomOut-Bz0zUi4W.js} +1 -1
- package/dist/client/assets/{access-gate-wsITlSLv.js → access-gate-CzNiWJFS.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-DmB5Tp1t.js → add-connection-dialog-Ca2dzrIE.js} +1 -1
- package/dist/client/assets/{agent-analytics-COWh3k0y.js → agent-analytics-BgBuzy8G.js} +1 -1
- package/dist/client/assets/agent-app-BFYx_Aa3.js +1 -0
- package/dist/client/assets/{agent-assets-vxaygUwM.js → agent-assets-Ap27_lPr.js} +1 -1
- package/dist/client/assets/{agent-automation-Bql0c9tj.js → agent-automation-C0pchO8T.js} +1 -1
- package/dist/client/assets/{agent-automations-_X1sp0GW.js → agent-automations-BwX355S0.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-CPv0fITp.js → agent-connect-sources-DmOS6diu.js} +1 -1
- package/dist/client/assets/agent-deck-Bbe9Zmh2.js +1 -0
- package/dist/client/assets/{agent-e2e-CMHIR015.js → agent-e2e-BJcOm3zP.js} +1 -1
- package/dist/client/assets/{agent-experiments-CHj6csUz.js → agent-experiments-C-tYLyEj.js} +1 -1
- package/dist/client/assets/{agent-file-CxDhiG4P.js → agent-file-BSkoRDrz.js} +1 -1
- package/dist/client/assets/{agent-hosting-gFRKRolp.js → agent-hosting-u-U2HQrW.js} +1 -1
- package/dist/client/assets/{agent-icon-D8yc3w6R.js → agent-icon-CeBKZuCK.js} +1 -1
- package/dist/client/assets/agent-library-KQo5LOWk.js +1 -0
- package/dist/client/assets/agent-library-file-DQPsK1BN.js +1 -0
- package/dist/client/assets/{agent-monitor-BjVDNyvC.js → agent-monitor-ByTdLN1l.js} +1 -1
- package/dist/client/assets/{agent-overview-J7pfgPo-.js → agent-overview-CVKrU9ZU.js} +1 -1
- package/dist/client/assets/agent-settings-DelSTWSJ.js +1 -0
- package/dist/client/assets/agent-site-editor-code-BsifW_AO.js +2 -0
- package/dist/client/assets/{agent-site-editor-content-D4Uvng3A.js → agent-site-editor-content-BJLTGDqY.js} +3 -3
- package/dist/client/assets/{agent-site-editor-BbsHETjh.js → agent-site-editor-mO5OTUnC.js} +1 -1
- package/dist/client/assets/{agent-site-editor-preview-DlXIF9M4.js → agent-site-editor-preview-C-PksdIY.js} +3 -3
- package/dist/client/assets/agent-view-DY-MrYRj.js +1 -0
- package/dist/client/assets/{agent-view-guard-TDUYhJq5.js → agent-view-guard-BzFZHvtR.js} +1 -1
- package/dist/client/assets/{agents-list-C5OkLPTK.js → agents-list-Dcfx8lEb.js} +1 -1
- package/dist/client/assets/{ai-providers-Bacz0fJf.js → ai-providers-vW5-x0ZF.js} +1 -1
- package/dist/client/assets/{alert-J_b2yVvo.js → alert-C9cUaQVz.js} +1 -1
- package/dist/client/assets/{alert-dialog-CKYS0LsF.js → alert-dialog-CPYvhc00.js} +1 -1
- package/dist/client/assets/{analytics-sections-ZsK7uq3f.js → analytics-sections-DLc9rhby.js} +1 -1
- package/dist/client/assets/api-keys-CgrsI75a.js +1 -0
- package/dist/client/assets/{api-keys-C431U9eo.js → api-keys-CjyoQ8rO.js} +1 -1
- package/dist/client/assets/app-editor-Du9KNJfL.js +1 -0
- package/dist/client/assets/{asset-utils-D5QKKx4Y.js → asset-utils-akMm4V-D.js} +1 -1
- package/dist/client/assets/{auth-X1Z9onOC.js → auth-DHJlUSSu.js} +1 -1
- package/dist/client/assets/{auth-catchall-CR9-8FfT.js → auth-catchall-D3CbNfmH.js} +1 -1
- package/dist/client/assets/{auth-entry-L4bAWuSf.js → auth-entry-qJfVpp8E.js} +1 -1
- package/dist/client/assets/{auth-split-layout-_jdkkrAk.js → auth-split-layout-BfGNogfh.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-BcuXsDL9.js → authenticate-and-persist-oauth-DJj3JB6r.js} +1 -1
- package/dist/client/assets/{automation-list-row-MuL7roXA.js → automation-list-row-4SQR-TkL.js} +1 -1
- package/dist/client/assets/{automation-runs-DwoUyiIm.js → automation-runs-CUNhfO09.js} +1 -1
- package/dist/client/assets/{automations-BbgH8-CD.js → automations-KOD2qegd.js} +1 -1
- package/dist/client/assets/{autosend-DkkevtpV.js → autosend-CswL-6qr.js} +1 -1
- package/dist/client/assets/{avatar-C9IBeU_l.js → avatar-CmavCmK6.js} +1 -1
- package/dist/client/assets/{badge-DnZUOPBJ.js → badge-CZ2-73B_.js} +1 -1
- package/dist/client/assets/{block-document-DF5TRNns.js → block-document-C2FGKeT3.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-CJJUwJec.js → blocks-preview-workspace-context-B93N-0TD.js} +1 -1
- package/dist/client/assets/{blog-schema-DWZAnIQ1.js → blog-schema-CRGWl1rA.js} +1 -1
- package/dist/client/assets/{buckets-Dl9hB7GO.js → buckets-BwiKC7Ad.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-B9VDt7kz.js → build-improve-prompt-doc-sUwADRIV.js} +1 -1
- package/dist/client/assets/{calendar-EePJktQb.js → calendar-CS1amNmI.js} +1 -1
- package/dist/client/assets/{capability-load-error-BXtQ4mcH.js → capability-load-error-I_NPeWs3.js} +1 -1
- package/dist/client/assets/{category-editor-B2ITIbFS.js → category-editor-Cw3He2Uc.js} +1 -1
- package/dist/client/assets/{chart-C517W9OG.js → chart-BsM6mnjI.js} +1 -1
- package/dist/client/assets/{chat-context-BBq6hHFG.js → chat-context-DN6LIhMA.js} +1 -1
- package/dist/client/assets/{chat-draft-CKTALvc8.js → chat-draft-BKdDCS9w.js} +1 -1
- package/dist/client/assets/{checkbox-BVp3RnTH.js → checkbox-DyYQ00vF.js} +1 -1
- package/dist/client/assets/{choose-editor-D6RbpQUd.js → choose-editor-Dqftf-Ai.js} +1 -1
- package/dist/client/assets/{claim-phase-copy-kAK6lKjq.js → claim-phase-copy-Bt2uA5Kj.js} +1 -1
- package/dist/client/assets/{cli-auth-success-B6fw81Mk.js → cli-auth-success-DaSUuxiU.js} +1 -1
- package/dist/client/assets/{client-icons-CZZeWA6p.js → client-icons-CCYwuAhm.js} +1 -1
- package/dist/client/assets/{collapsible-A7bkzZzr.js → collapsible-BD7GNbG6.js} +1 -1
- package/dist/client/assets/{collection-detail-qwuQrEV2.js → collection-detail-CwddTDhY.js} +1 -1
- package/dist/client/assets/{collection-display-button-CSj3XI8l.js → collection-display-button-FBM4jvqv.js} +1 -1
- package/dist/client/assets/{collection-search-B9IMZJsF.js → collection-search-CAzSXhAd.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-pNeiHPqf.js → collection-table-wrapper-BdI2XJ8w.js} +1 -1
- package/dist/client/assets/{collection-tabs-BzgezmYW.js → collection-tabs-DsMUdRBj.js} +1 -1
- package/dist/client/assets/{column-rules-C9tvlrM1.js → column-rules-BsMnsicg.js} +1 -1
- package/dist/client/assets/{combobox-DegZE00E.js → combobox-CMrlh6Sl.js} +1 -1
- package/dist/client/assets/{command-DePL1KHf.js → command-DxTFTkQb.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-CN_sCpjp.js → companion-mcps-section-MUKpyoKt.js} +1 -1
- package/dist/client/assets/{config-7uBrtNMv.js → config-Dwx6d49U.js} +1 -1
- package/dist/client/assets/{connect-p0fOlsLZ.js → connect-BdEJj_nG.js} +1 -1
- package/dist/client/assets/{connect-layout-Cwjckis6.js → connect-layout-BvqZLGvn.js} +1 -1
- package/dist/client/assets/{connection-DCVuC0Zx.js → connection-B-m26Rla.js} +1 -1
- package/dist/client/assets/{connection-card-Btw9Ejzr.js → connection-card-DHnRaoKh.js} +1 -1
- package/dist/client/assets/{connection-detail-CF8jfL8Y.js → connection-detail-CYJj6q1N.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-BQlKyorY.js → connection-form-helpers-CPaxGC2N.js} +1 -1
- package/dist/client/assets/{connections-CJy_kWpN.js → connections-DkmW5KMF.js} +1 -1
- package/dist/client/assets/{context-ChwglEu1.js → context-m53QPYnY.js} +1 -1
- package/dist/client/assets/{context-menu-FQl0AMt3.js → context-menu-DVuJNrS1.js} +1 -1
- package/dist/client/assets/{core.esm-mpmypmP_.js → core.esm-CGkAy4XA.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-gzutvP47.js → create-organization-dialog-Cy6x15Id.js} +1 -1
- package/dist/client/assets/{daily-pulse-BDgY94Bx.js → daily-pulse-CVZ8heo9.js} +1 -1
- package/dist/client/assets/{decopilot-B7t1igaZ.js → decopilot-DSOYunrX.js} +1 -1
- package/dist/client/assets/{device-hint-BSbproDJ.js → device-hint-CcPOM7YJ.js} +1 -1
- package/dist/client/assets/{dialog-l0pufTcv.js → dialog-DbnuA-yG.js} +1 -1
- package/dist/client/assets/{discover-D1melSDb.js → discover-WM0c1VJV.js} +1 -1
- package/dist/client/assets/{domain-settings-BZjTA4JT.js → domain-settings-CDY7Y0PH.js} +1 -1
- package/dist/client/assets/{download-app-dialog-aNLwMPvt.js → download-app-dialog-C1LaJ0G_.js} +1 -1
- package/dist/client/assets/{drawer-O3qcVpDl.js → drawer-B4uZvLI-.js} +1 -1
- package/dist/client/assets/{editor-BIWtbhSE.js → editor-DPmSCsWV.js} +1 -1
- package/dist/client/assets/{empty-state-5G-3M3tz.js → empty-state-BRi_xhPZ.js} +1 -1
- package/dist/client/assets/{empty-state-CnyX2qZd.js → empty-state-CqTPlMA7.js} +1 -1
- package/dist/client/assets/{extract-connection-data-Ou6b9boP.js → extract-connection-data-_hTvOl5A.js} +1 -1
- package/dist/client/assets/{feature-gate-0YtGKR_-.js → feature-gate-C-HGVngx.js} +1 -1
- package/dist/client/assets/{feature-paywall-D8WPGLf9.js → feature-paywall-DuCZdgLh.js} +1 -1
- package/dist/client/assets/{file-explorer-g9d9yH9T.js → file-explorer-hgIFjGGn.js} +1 -1
- package/dist/client/assets/{file-preview-DMt8pvXn.js → file-preview-CgG7dBvK.js} +1 -1
- package/dist/client/assets/{file-share-button-BVh37pd9.js → file-share-button-Dg4CQWtF.js} +1 -1
- package/dist/client/assets/{file-type-icon-hpzbwXLS.js → file-type-icon-DVNIWDia.js} +1 -1
- package/dist/client/assets/flat-project-Bgmg-9nL.js +1 -0
- package/dist/client/assets/{folder-icon-BDmQmtS4.js → folder-icon-C7O8neOR.js} +1 -1
- package/dist/client/assets/{form-DWldHPd_.js → form-KuqtFClp.js} +1 -1
- package/dist/client/assets/{gateway-client-F47a4lAO.js → gateway-client-BBi5nsR6.js} +1 -1
- package/dist/client/assets/{general-D7v_Aq_7.js → general-Coca58ym.js} +1 -1
- package/dist/client/assets/{home-BG1eZNoA.js → home-Dh3UcOln.js} +1 -1
- package/dist/client/assets/{icon-button-DznlvwEZ.js → icon-button-DL2Gkfyl.js} +1 -1
- package/dist/client/assets/{index-CbdGjCTT.js → index-0xzWKuce.js} +1 -1
- package/dist/client/assets/{index-BKCduH1k.js → index-BEPEGJ7j.js} +1 -1
- package/dist/client/assets/{index-BfpLxh6F.js → index-BGXkNlsg.js} +1 -1
- package/dist/client/assets/{index-Dv_pP_8t.js → index-BNL4laDa.js} +1 -1
- package/dist/client/assets/{index-CG2TCOgB.js → index-BVptlPQI.js} +1 -1
- package/dist/client/assets/{index-Cz35IBPv.js → index-BZ6ixhdn.js} +1 -1
- package/dist/client/assets/{index-DR_zH_im.js → index-CEyVx804.js} +1 -1
- package/dist/client/assets/{index-DLbiJWsU.js → index-CGyM_y8a.js} +1 -1
- package/dist/client/assets/{index-Dncdnplw.js → index-Cen25M9q.js} +1 -1
- package/dist/client/assets/{index-VNSzHC97.js → index-D3lMfBVp.js} +1 -1
- package/dist/client/assets/{index-C6yXfhc9.js → index-DBoHOKjw.js} +2 -2
- package/dist/client/assets/{index-D8A1zhxX.js → index-DdwIN7G-.js} +1 -1
- package/dist/client/assets/{index-C7rfJP0V.js → index-DmVG3v82.js} +1 -1
- package/dist/client/assets/{index-ConwWJ1X.js → index-ESo9CHKF.js} +1 -1
- package/dist/client/assets/{index-DPiOtvZ-.js → index-de9CNyc8.js} +3 -3
- package/dist/client/assets/{index-redirect-D9moqplU.js → index-redirect-DORjFJIO.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-Bs8aLdDs.js → infiniteQueryObserver-qgWv5yw5.js} +1 -1
- package/dist/client/assets/{infra-billing-jIDwnAPk.js → infra-billing-CO_qY1tP.js} +1 -1
- package/dist/client/assets/{input-6-0u-Xnr.js → input-CBs_iLvz.js} +3 -3
- package/dist/client/assets/{input-N6YgtZtv.js → input-Djn_KHtM.js} +1 -1
- package/dist/client/assets/{input-Dgrf_P4M.js → input-Mb2meh2H.js} +1 -1
- package/dist/client/assets/{integration-icon-BUQcDswF.js → integration-icon-CP02T0S9.js} +1 -1
- package/dist/client/assets/{label-Ccn3ZfwY.js → label-Bls3Ztde.js} +1 -1
- package/dist/client/assets/{layout-CA0vSGPy.js → layout-CSoc3vwE.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-CMLX5lnO.js → legacy-agents-deep-DdGDpUYi.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-CD-VnYY1.js → legacy-main-redirect-CZ83DKx_.js} +1 -1
- package/dist/client/assets/library-e7DQrG87.js +1 -0
- package/dist/client/assets/{library-tab-DBOv_vFI.js → library-tab-BHkTgcLY.js} +1 -1
- package/dist/client/assets/{login--Au7Agvr.js → login-DVQm32OI.js} +1 -1
- package/dist/client/assets/{markdown-BX8FMyIV.js → markdown-5GYJnvw8.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-NdZTHRTE.js → mcp-app-renderer-CqG6luLG.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DmWr-lw_.js → mcp-oauth-DCwIQfTE.js} +1 -1
- package/dist/client/assets/{members-BYrrt_AB.js → members-D8ZB6rDE.js} +1 -1
- package/dist/client/assets/{memory-AEBksrRq.js → memory-CsD07g6d.js} +1 -1
- package/dist/client/assets/{mini-report-page-B4q5NRJH.js → mini-report-page-ySjBSLSN.js} +1 -1
- package/dist/client/assets/{mock-board-DLS6WsKv.js → mock-board-DCIIgmCI.js} +1 -1
- package/dist/client/assets/{monaco-editor-CL7Ar-yE.js → monaco-editor-CprjM_mH.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-CGiwUMyi.js → monitoring-stats-row-D6ZkTm9Y.js} +1 -1
- package/dist/client/assets/{multi-select-EdnQj9js.js → multi-select-BhBC37m9.js} +1 -1
- package/dist/client/assets/{mustache-BK4wbMc2.js → mustache-CO_KMjdn.js} +1 -1
- package/dist/client/assets/{new-project-dialog-Bk9ESA8g.js → new-project-dialog--kJEKHlL.js} +1 -1
- package/dist/client/assets/{oauth-callback-DIwVH3Uw.js → oauth-callback-Bj1q3tKg.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-CAoyiStn.js → oauth-callback-ai-provider-BmPKDLB3.js} +1 -1
- package/dist/client/assets/{onboarding-CQYgAqHT.js → onboarding-DMNBmvav.js} +1 -1
- package/dist/client/assets/{openai-conversation-iF2kou5K.js → openai-conversation-9ikVcwfz.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-C_sD1ykF.js → optimistic-project-sidebar-views-CScYoFZg.js} +1 -1
- package/dist/client/assets/{org-file-open-context-DcBRlv30.js → org-file-open-context-DB3pye_n.js} +1 -1
- package/dist/client/assets/{organization-choice-veZx-Rz4.js → organization-choice-CRURY2uu.js} +1 -1
- package/dist/client/assets/{orgs-CIc9k45k.js → orgs-Cr1lXFl_.js} +1 -1
- package/dist/client/assets/{page-seo-form-CcIjbE82.js → page-seo-form-Bbey7Ce4.js} +1 -1
- package/dist/client/assets/{pair-BBstx80k.js → pair-DWk_DpxI.js} +1 -1
- package/dist/client/assets/{plan-ladder-DrvNerIK.js → plan-ladder-CNwvQsR1.js} +1 -1
- package/dist/client/assets/{popover-C8xX_Eza.js → popover-DukrbQ3U.js} +1 -1
- package/dist/client/assets/{post-calendar-CRkqaAN3.js → post-calendar-wmye0XdL.js} +1 -1
- package/dist/client/assets/{post-editor-CLQnWrDH.js → post-editor-4zJCCws-.js} +1 -1
- package/dist/client/assets/{preview-content-CPvumstz.js → preview-content-BZ3FF_S-.js} +1 -1
- package/dist/client/assets/{preview-dialog-B9j7S7qG.js → preview-dialog-BjaBwmxD.js} +1 -1
- package/dist/client/assets/{preview-panel-BaneJ62d.js → preview-panel-Dcx0-xiF.js} +1 -1
- package/dist/client/assets/{profile-DIopFBCc.js → profile-DNN30GXV.js} +1 -1
- package/dist/client/assets/{project-app-view-BriIYKSD.js → project-app-view-B9P4C-XK.js} +1 -1
- package/dist/client/assets/{project-feed-D9n28Qy2.js → project-feed-B5NNXlM6.js} +1 -1
- package/dist/client/assets/{project-icon-CrF2bM0B.js → project-icon-YmedO-IS.js} +1 -1
- package/dist/client/assets/project-reports-dRwCamLS.js +1 -0
- package/dist/client/assets/project-tasks-CBXLPROs.js +1 -0
- package/dist/client/assets/{projects-CEsPC-Y6.js → projects-DM5wHRGa.js} +1 -1
- package/dist/client/assets/{projects-empty-state-CHmHBILJ.js → projects-empty-state-xrJ1tYAY.js} +1 -1
- package/dist/client/assets/{prompts-Nu6vt7bw.js → prompts-wY1QeQiv.js} +1 -1
- package/dist/client/assets/record-editor-ny5TkOs1.js +1 -0
- package/dist/client/assets/{redirect-editor-BQvtVD4Q.js → redirect-editor-oXqph8fe.js} +1 -1
- package/dist/client/assets/reports-BHzscsUC.js +1 -0
- package/dist/client/assets/{reports-BVes2qUT.js → reports-O6EsRQxj.js} +1 -1
- package/dist/client/assets/{reports-onboarding-CAdtQjSU.js → reports-onboarding-CvVm35L8.js} +1 -1
- package/dist/client/assets/{reports-tab-CdXXfCkk.js → reports-tab-CuBaSw3e.js} +2 -2
- package/dist/client/assets/{repositories-CeCe9l9R.js → repositories-BXQ1mf1s.js} +1 -1
- package/dist/client/assets/{repository-binding-DgXYHOdO.js → repository-binding-DXQMz8tF.js} +1 -1
- package/dist/client/assets/{repository-import-picker-BTlCavvI.js → repository-import-picker-DPZPijA9.js} +1 -1
- package/dist/client/assets/{repository-picker-DMsQBK4M.js → repository-picker-BWrox8LY.js} +1 -1
- package/dist/client/assets/{require-capability-UaYV_k-8.js → require-capability-HPXJ2_ev.js} +1 -1
- package/dist/client/assets/{required-auth-layout-DG_ssul7.js → required-auth-layout-BDbL7Gbw.js} +1 -1
- package/dist/client/assets/{reset-password-DGch1XH7.js → reset-password-C4R-il0X.js} +1 -1
- package/dist/client/assets/{resizable-B6j59zX8.js → resizable-DS7CYkFv.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-_x8T2L6O.js → resolve-tab-icon-Cola5K3B.js} +1 -1
- package/dist/client/assets/{review-settings-CZ-nYFGq.js → review-settings-CQsh0tPe.js} +1 -1
- package/dist/client/assets/{rich-text-link-control-DV-QGhD4.js → rich-text-link-control-BtuZ_L2U.js} +1 -1
- package/dist/client/assets/{roles-DcdB1xj5.js → roles-D9flL_Yp.js} +1 -1
- package/dist/client/assets/{route-aAVGiY4i.js → route-B4ZiBOgz.js} +1 -1
- package/dist/client/assets/{route-C5HVG4KP.js → route-DL7Rx5it.js} +1 -1
- package/dist/client/assets/route-shsfyNd1.js +1 -0
- package/dist/client/assets/{runnable-block-editor-BHrs2bmd.js → runnable-block-editor-CzDs-bTJ.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-B6h2V6qW.js → sandbox-lifecycle-context-B5MWBdbR.js} +1 -1
- package/dist/client/assets/{schema-Dj8UASRG.js → schema-CE2zpNxo.js} +1 -1
- package/dist/client/assets/{scroll-area-BOatS-pA.js → scroll-area-BQJVDtPp.js} +1 -1
- package/dist/client/assets/{search-input-DZS7SKx0.js → search-input-CNz_66oL.js} +1 -1
- package/dist/client/assets/{search-toggle-B4xKT69H.js → search-toggle-B091-fPr.js} +1 -1
- package/dist/client/assets/{secret-picker-BLO3RbxE.js → secret-picker-CGt4uYbJ.js} +1 -1
- package/dist/client/assets/{secrets-qfecTQ8U.js → secrets-BvOVhzzQ.js} +1 -1
- package/dist/client/assets/{sections-editor-CI_9FmcP.js → sections-editor-Cxr8b5JF.js} +1 -1
- package/dist/client/assets/{select-Bo2QWO2w.js → select-XfsKg17-.js} +1 -1
- package/dist/client/assets/{select-model-BdLOITCD.js → select-model-9rGuQ9nl.js} +1 -1
- package/dist/client/assets/{seo-editor-B4lNoeES.js → seo-editor-BdfvzLAV.js} +1 -1
- package/dist/client/assets/{separator-FTvTuPez.js → separator-Cl1CPKLD.js} +1 -1
- package/dist/client/assets/{settings-tab-BHXpuYUk.js → settings-tab-DJhhqyI2.js} +1 -1
- package/dist/client/assets/{sheet-DY1Ixr3e.js → sheet-CZDkfSKo.js} +1 -1
- package/dist/client/assets/{shell-layout-C91CLPqD.js → shell-layout-CKWKtHmx.js} +1 -1
- package/dist/client/assets/{skills-1nbzg48p.js → skills-CeIax7VH.js} +1 -1
- package/dist/client/assets/{sso-D3CHVXy1.js → sso-CG0dd6UI.js} +1 -1
- package/dist/client/assets/{suggestion-CCY_KFRa.js → suggestion-DfQ8OcsT.js} +1 -1
- package/dist/client/assets/{switch-BcWYdoK-.js → switch-CRBzAnDt.js} +1 -1
- package/dist/client/assets/{synced-repos-B686sh1O.js → synced-repos-5SdJlM-x.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-Bg6ILWDR.js → tab-icon-glyph-D4dYhkmk.js} +1 -1
- package/dist/client/assets/{table-3Ha7m5P3.js → table-DrvAOyO1.js} +1 -1
- package/dist/client/assets/{tabs-1jbcwYzu.js → tabs-e-pd68cf.js} +1 -1
- package/dist/client/assets/{task-board-zQvtvYuz.js → task-board-Crg-IxL1.js} +1 -1
- package/dist/client/assets/{task-route-BRHRnN0K.js → task-route-CV3K0LLg.js} +1 -1
- package/dist/client/assets/{task-status-kHPK4kaa.js → task-status-KkdWXXAC.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-B9W5oi66.js → taskboard-analytics-DwSPghto.js} +1 -1
- package/dist/client/assets/{tasks-Dk0o5vCp.js → tasks-BMvMAQFp.js} +1 -1
- package/dist/client/assets/tasks-CF1HadSm.js +1 -0
- package/dist/client/assets/{textarea-BIXsIYxt.js → textarea-ChUQ9lFy.js} +1 -1
- package/dist/client/assets/{thread-analytics-C_2RxStk.js → thread-analytics-BU8UE37H.js} +1 -1
- package/dist/client/assets/{thread-button-6bHksN1n.js → thread-button-A4ZMbsSJ.js} +1 -1
- package/dist/client/assets/{thread-intent-u_umdxEV.js → thread-intent-DG1RmuFS.js} +1 -1
- package/dist/client/assets/{thread-route-CcA9rsjD.js → thread-route-6l9iNUiH.js} +1 -1
- package/dist/client/assets/{thread-route-Yov0DB_e.js → thread-route-HSca1Egs.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-R93Orwrl.js → thread-sheet-body-DLCAs5ZH.js} +1 -1
- package/dist/client/assets/{toggle-group-Cn1yrmXY.js → toggle-group-BdEeEbYC.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-BqvnfOpl.js → toolbar-icon-button-ClRorWaN.js} +1 -1
- package/dist/client/assets/{tooltip-C1UnC7LD.js → tooltip-B8csev2n.js} +1 -1
- package/dist/client/assets/{track-CeJEG8Ne.js → track-BiOin1MF.js} +1 -1
- package/dist/client/assets/{types-BizZdPTP.js → types-DjyhSdRh.js} +1 -1
- package/dist/client/assets/{usage-stats-hxbQ0K96.js → usage-stats-CgSJBeeW.js} +1 -1
- package/dist/client/assets/{use-ai-providers-C6FUgl61.js → use-ai-providers-D26ARZHw.js} +1 -1
- package/dist/client/assets/{use-automations-BpxeL2MI.js → use-automations-Brb0aSme.js} +1 -1
- package/dist/client/assets/{use-autosave-D--FTllc.js → use-autosave-Bstfr3kU.js} +1 -1
- package/dist/client/assets/{use-chat-layout-state-CWQdZ4Jo.js → use-chat-layout-state-Bixj6ACc.js} +1 -1
- package/dist/client/assets/{use-chat-navigation-BYGGlCTj.js → use-chat-navigation-B6dWmK-d.js} +1 -1
- package/dist/client/assets/{use-clock-tick-DFlnhXpf.js → use-clock-tick-DIsIbH9y.js} +1 -1
- package/dist/client/assets/{use-connect-companion-bsu4z5QT.js → use-connect-companion-CDZLecPR.js} +1 -1
- package/dist/client/assets/{use-connection-BF23bC-4.js → use-connection-BC_H18ml.js} +1 -1
- package/dist/client/assets/{use-copy-CRNOjveD.js → use-copy-tACXwvrN.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-Xevf0e71.js → use-create-virtual-mcp-BvGFoApX.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-BkK3C06N.js → use-date-fns-locale-ne3wBKn3.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-CBc2-HbA.js → use-debounced-autosave-BfKLfZwg.js} +1 -1
- package/dist/client/assets/{use-debounced-value-BSX5d21S.js → use-debounced-value-Db-8HwQf.js} +1 -1
- package/dist/client/assets/{use-deco-credits-D07bG0At.js → use-deco-credits-CJiuJ6L1.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-3jnJN_zB.js → use-decopilot-events-CDXR1Ci3.js} +1 -1
- package/dist/client/assets/{use-delete-connection-DsQLhNm_.js → use-delete-connection-CKL2Cu3m.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-CCHBn7EG.js → use-deployment-admin-CWp-rb-5.js} +1 -1
- package/dist/client/assets/{use-ensure-project-folder-C07lXmh3.js → use-ensure-project-folder-D_QyoUEz.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-Dm9fycKD.js → use-fast-preview-draft-url-BYQ8S4UW.js} +1 -1
- package/dist/client/assets/{use-file-configs-DfsKofS5.js → use-file-configs-BGlASHUP.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-B5kOmcNg.js → use-infinite-scroll-DOdc_fz4.js} +1 -1
- package/dist/client/assets/{use-join-requests-64HL1KDb.js → use-join-requests-HgdBsp9J.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-Bb-TGY0e.js → use-main-panel-tabs-cLroLTa4.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-Cdslu5lD.js → use-mcp-auth-status-Dv9c1L--.js} +1 -1
- package/dist/client/assets/{use-mcp-client-BWdbS58t.js → use-mcp-client-Dr2ieErM.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-BkoAHxEV.js → use-mcp-prompts-BGGFNZKf.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-BPGCmIU7.js → use-mcp-tools-Bv-MgYmZ.js} +1 -1
- package/dist/client/assets/{use-members-DhmaxjpN.js → use-members-GEOPW_Wr.js} +1 -1
- package/dist/client/assets/{use-mobile-BptJ2ig7.js → use-mobile-BIaUANZL.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-CWXwxagr.js → use-navigate-to-agent-CPq0QEyI.js} +1 -1
- package/dist/client/assets/use-new-blocks-editor-BbMlFHjB.js +1 -0
- package/dist/client/assets/{use-open-billing-url-BI5VQ742.js → use-open-billing-url-DYLHVe4s.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-nzWS7Iq-.js → use-org-auth-client-0iE2kOoY.js} +1 -1
- package/dist/client/assets/{use-org-fs-B22En0tH.js → use-org-fs-D0vtotA_.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-BwY7caQP.js → use-org-repo-syncs-DE71GlMs.js} +1 -1
- package/dist/client/assets/{use-org-sso-76vbZ6oa.js → use-org-sso-BDrus71J.js} +1 -1
- package/dist/client/assets/{use-organization-roles-dWcQZzgf.js → use-organization-roles-Bqn1gUt9.js} +1 -1
- package/dist/client/assets/{use-organization-settings-CAFBLWVk.js → use-organization-settings-Dyzll_Gy.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-BM9PNlaW.js → use-panel-navigate-CrpC4hC1.js} +1 -1
- package/dist/client/assets/{use-project-scope-CwEflcY9.js → use-project-scope-DlEsf0bK.js} +1 -1
- package/dist/client/assets/{use-releases-Q6IYliCz.js → use-releases-CIJPIV5m.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-BuSjsvMT.js → use-reports-diagnostic-BompAfFs.js} +1 -1
- package/dist/client/assets/{use-secrets-C-0e_lfK.js → use-secrets-BZLI6rKQ.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-C_voPGNI.js → use-section-preview-base-DRCFji2p.js} +1 -1
- package/dist/client/assets/{use-session-runtime-D2A369zj.js → use-session-runtime-DsOEmnud.js} +1 -1
- package/dist/client/assets/{use-tags-hn2eWZHG.js → use-tags-Ccnnq5Vz.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-DomsBO9-.js → use-task-board-analytics-C1nndHn2.js} +1 -1
- package/dist/client/assets/{use-task-board-events-C3xun5V7.js → use-task-board-events-D2817eXn.js} +1 -1
- package/dist/client/assets/{use-task-metadata-BDjXNlZ6.js → use-task-metadata-MXuQ3G8s.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-Cx9KlOv7.js → use-thread-analytics-Ck12YraO.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-BYXmN7CM.js → use-thread-outputs-wPpOc2oH.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-C7HvpSpg.js +1 -0
- package/dist/client/assets/{useQueries-B13pACFJ.js → useQueries-BsW-wQrg.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BymU4lPH.js +1 -0
- package/dist/client/assets/{users-CWOZu_g0.js → users-mCf7b6Ao.js} +1 -1
- package/dist/client/assets/{utils-BNDdsgmu.js → utils-juZ4A9qu.js} +1 -1
- package/dist/client/assets/{variant-calendar-C9yanec4.js → variant-calendar-89eTCWxO.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-zadyshex.js → variant-matcher-override-BiyuXuoT.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-DWieeNQo.js → view-mode-toggle-D46Y8GJM.js} +1 -1
- package/dist/client/assets/{virtual-mcp-BRj1Z0ns.js → virtual-mcp-GnrvXTzw.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/agent-app-BMiZhYH8.js +0 -1
- package/dist/client/assets/agent-deck-FGeLoxV6.js +0 -1
- package/dist/client/assets/agent-library-LrrHuS7D.js +0 -1
- package/dist/client/assets/agent-library-file-BLw9efSo.js +0 -1
- package/dist/client/assets/agent-settings-CDE-pry8.js +0 -1
- package/dist/client/assets/agent-site-editor-code-BcJo1Q0k.js +0 -2
- package/dist/client/assets/agent-view-R-jvAhEj.js +0 -1
- package/dist/client/assets/api-keys-BgBgaYGy.js +0 -1
- package/dist/client/assets/app-editor-DcmuCwYc.js +0 -1
- package/dist/client/assets/flat-project-C5XVxOtg.js +0 -1
- package/dist/client/assets/library-B0RdJJFZ.js +0 -1
- package/dist/client/assets/project-reports-CoPS9tDg.js +0 -1
- package/dist/client/assets/project-tasks-Ciblt931.js +0 -1
- package/dist/client/assets/record-editor-CE5H19k2.js +0 -1
- package/dist/client/assets/reports-BBzfttIZ.js +0 -1
- package/dist/client/assets/route-BaBwF0jd.js +0 -1
- package/dist/client/assets/tasks-Bb13pLGm.js +0 -1
- package/dist/client/assets/use-new-blocks-editor-DD4ZkAQi.js +0 -1
- package/dist/client/assets/useInfiniteQuery-BIeREFXd.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BWkrsDSs.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{o as Ye,j as Qe,h as ie,D as Ge,p as ze,q as Ze}from"./index-Dncdnplw.js";import{r as p,eJ as Je,eK as we,eL as et,eM as j,eN as te,j as I,aR as tt,eO as nt,eP as ne,eQ as ot,eR as rt,eS as st,eT as it,eU as at,eV as lt,eW as Ce,eX as ct,c as X,D as ut,K as dt,eY as ft,eZ as gt,e_ as mt,b as pt,l as vt,h as ht}from"./index-C6yXfhc9.js";import{g as bt,d as xt}from"./gateway-client-F47a4lAO.js";import{A as yt}from"./agent-icon-D8yc3w6R.js";var Xn=Ye;var Rt=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],ae=Rt.join(","),Ie=typeof Element>"u",G=Ie?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,J=!Ie&&Element.prototype.getRootNode?function(n){var e;return n==null||(e=n.getRootNode)===null||e===void 0?void 0:e.call(n)}:function(n){return n?.ownerDocument},ee=function(e,t){var o;t===void 0&&(t=!0);var r=e==null||(o=e.getAttribute)===null||o===void 0?void 0:o.call(e,"inert"),s=r===""||r==="true",i=s||t&&e&&(typeof e.closest=="function"?e.closest("[inert]"):ee(e.parentNode));return i},St=function(e){var t,o=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return o===""||o==="true"},Et=function(e,t,o){if(ee(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(ae));return t&&G.call(e,ae)&&r.unshift(e),r=r.filter(o),r},le=function(e,t,o){for(var r=[],s=Array.from(e);s.length;){var i=s.shift();if(!ee(i,!1))if(i.tagName==="SLOT"){var a=i.assignedElements(),l=a.length?a:i.children,c=le(l,!0,o);o.flatten?r.push.apply(r,c):r.push({scopeParent:i,candidates:c})}else{var d=G.call(i,ae);d&&o.filter(i)&&(t||!e.includes(i))&&r.push(i);var u=i.shadowRoot||typeof o.getShadowRoot=="function"&&o.getShadowRoot(i),g=!ee(u,!1)&&(!o.shadowRootFilter||o.shadowRootFilter(i));if(u&&g){var h=le(u===!0?i.children:u.children,!0,o);o.flatten?r.push.apply(r,h):r.push({scopeParent:i,candidates:h})}else s.unshift.apply(s,i.children)}}return r},Te=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Pe=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||St(e))&&!Te(e)?0:e.tabIndex},wt=function(e,t){var o=Pe(e);return o<0&&t&&!Te(e)?0:o},Ct=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Ae=function(e){return e.tagName==="INPUT"},It=function(e){return Ae(e)&&e.type==="hidden"},Tt=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(o){return o.tagName==="SUMMARY"});return t},Pt=function(e,t){for(var o=0;o<e.length;o++)if(e[o].checked&&e[o].form===t)return e[o]},At=function(e){if(!e.name)return!0;var t=e.form||J(e),o=function(a){return t.querySelectorAll('input[type="radio"][name="'+a+'"]')},r;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")r=o(window.CSS.escape(e.name));else try{r=o(e.name)}catch(i){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",i.message),!1}var s=Pt(r,e.form);return!s||s===e},Nt=function(e){return Ae(e)&&e.type==="radio"},Dt=function(e){return Nt(e)&&!At(e)},Mt=function(e){var t,o=e&&J(e),r=(t=o)===null||t===void 0?void 0:t.host,s=!1;if(o&&o!==e){var i,a,l;for(s=!!((i=r)!==null&&i!==void 0&&(a=i.ownerDocument)!==null&&a!==void 0&&a.contains(r)||e!=null&&(l=e.ownerDocument)!==null&&l!==void 0&&l.contains(e));!s&&r;){var c,d,u;o=J(r),r=(c=o)===null||c===void 0?void 0:c.host,s=!!((d=r)!==null&&d!==void 0&&(u=d.ownerDocument)!==null&&u!==void 0&&u.contains(r))}}return s},ge=function(e){var t=e.getBoundingClientRect(),o=t.width,r=t.height;return o===0&&r===0},Ot=function(e,t){var o=t.displayCheck,r=t.getShadowRoot;if(o==="full-native"&&"checkVisibility"in e){var s=e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!s}if(getComputedStyle(e).visibility==="hidden")return!0;var i=G.call(e,"details>summary:first-of-type"),a=i?e.parentElement:e;if(G.call(a,"details:not([open]) *"))return!0;if(!o||o==="full"||o==="full-native"||o==="legacy-full"){if(typeof r=="function"){for(var l=e;e;){var c=e.parentElement,d=J(e);if(c&&!c.shadowRoot&&r(c)===!0)return ge(e);e.assignedSlot?e=e.assignedSlot:!c&&d!==e.ownerDocument?e=d.host:e=c}e=l}if(Mt(e))return!e.getClientRects().length;if(o!=="legacy-full")return!0}else if(o==="non-zero-area")return ge(e);return!1},Ft=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var o=0;o<t.children.length;o++){var r=t.children.item(o);if(r.tagName==="LEGEND")return G.call(t,"fieldset[disabled] *")?!0:!r.contains(e)}return!0}t=t.parentElement}return!1},qt=function(e,t){return!(t.disabled||It(t)||Ot(t,e)||Tt(t)||Ft(t))},me=function(e,t){return!(Dt(t)||Pe(t)<0||!qt(e,t))},$t=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},Ne=function(e){var t=[],o=[];return e.forEach(function(r,s){var i=!!r.scopeParent,a=i?r.scopeParent:r,l=wt(a,i),c=i?Ne(r.candidates):a;l===0?i?t.push.apply(t,c):t.push(a):o.push({documentOrder:s,tabIndex:l,item:r,isScope:i,content:c})}),o.sort(Ct).reduce(function(r,s){return s.isScope?r.push.apply(r,s.content):r.push(s.content),r},[]).concat(t)},De=function(e,t){t=t||{};var o;return t.getShadowRoot?o=le([e],t.includeContainer,{filter:me.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:$t}):o=Et(e,t.includeContainer,me.bind(null,t)),Ne(o)};function _t(){return/apple/i.test(navigator.vendor)}const pe="data-floating-ui-focusable";function kt(n){let e=n.activeElement;for(;((t=e)==null||(t=t.shadowRoot)==null?void 0:t.activeElement)!=null;){var t;e=e.shadowRoot.activeElement}return e}function ce(n,e){if(!n||!e)return!1;const t=e.getRootNode==null?void 0:e.getRootNode();if(n.contains(e))return!0;if(t&&Je(t)){let o=e;for(;o;){if(n===o)return!0;o=o.parentNode||o.host}}return!1}function Q(n){return"composedPath"in n?n.composedPath()[0]:n.target}function oe(n,e){if(e==null)return!1;if("composedPath"in n)return n.composedPath().includes(e);const t=n;return t.target!=null&&e.contains(t.target)}function Lt(n){return n.matches("html,body")}function z(n){return n?.ownerDocument||document}function jt(n){return n?n.hasAttribute(pe)?n:n.querySelector("["+pe+"]")||n:null}function Z(n,e,t){return t===void 0&&(t=!0),n.filter(r=>{var s;return r.parentId===e&&(!t||((s=r.context)==null?void 0:s.open))}).flatMap(r=>[r,...Z(n,r.id,t)])}function Kt(n){return"nativeEvent"in n}var Bt=typeof document<"u",Ut=function(){},V=Bt?p.useLayoutEffect:Ut;const Vt={...we},Wt=Vt.useInsertionEffect,Xt=Wt||(n=>n());function W(n){const e=p.useRef(()=>{});return Xt(()=>{e.current=n}),p.useCallback(function(){for(var t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];return e.current==null?void 0:e.current(...o)},[])}const Me=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Oe(n,e){const t=De(n,Me()),o=t.length;if(o===0)return;const r=kt(z(n)),s=t.indexOf(r),i=s===-1?e===1?0:o-1:s+e;return t[i]}function Ht(n){return Oe(z(n).body,1)||n}function Yt(n){return Oe(z(n).body,-1)||n}function re(n,e){const t=e||n.currentTarget,o=n.relatedTarget;return!o||!ce(t,o)}function Qt(n){De(n,Me()).forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")})}function ve(n){n.querySelectorAll("[data-tabindex]").forEach(t=>{const o=t.dataset.tabindex;delete t.dataset.tabindex,o?t.setAttribute("tabindex",o):t.removeAttribute("tabindex")})}const Gt="data-floating-ui-focusable",he="active",be="selected",zt={...we};let xe=!1,Zt=0;const ye=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Zt++;function Jt(){const[n,e]=p.useState(()=>xe?ye():void 0);return V(()=>{n==null&&e(ye())},[]),p.useEffect(()=>{xe=!0},[]),n}const en=zt.useId,ue=en||Jt;function tn(){const n=new Map;return{emit(e,t){var o;(o=n.get(e))==null||o.forEach(r=>r(t))},on(e,t){n.has(e)||n.set(e,new Set),n.get(e).add(t)},off(e,t){var o;(o=n.get(e))==null||o.delete(t)}}}const nn=p.createContext(null),on=p.createContext(null),Fe=()=>{var n;return((n=p.useContext(nn))==null?void 0:n.id)||null},qe=()=>p.useContext(on);function de(n){return"data-floating-ui-"+n}const rn={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0},Re=p.forwardRef(function(e,t){const[o,r]=p.useState();V(()=>{_t()&&r("button")},[]);const s={ref:t,tabIndex:0,role:o,"aria-hidden":o?void 0:!0,[de("focus-guard")]:"",style:rn};return I.jsx("span",{...e,...s})}),sn={clipPath:"inset(50%)",position:"fixed",top:0,left:0},$e=p.createContext(null),Se=de("portal");function an(n){n===void 0&&(n={});const{id:e,root:t}=n,o=ue(),r=cn(),[s,i]=p.useState(null),a=p.useRef(null);return V(()=>()=>{s?.remove(),queueMicrotask(()=>{a.current=null})},[s]),V(()=>{if(!o||a.current)return;const l=e?document.getElementById(e):null;if(!l)return;const c=document.createElement("div");c.id=o,c.setAttribute(Se,""),l.appendChild(c),a.current=c,i(c)},[e,o]),V(()=>{if(t===null||!o||a.current)return;let l=t||r?.portalNode;l&&!it(l)&&(l=l.current),l=l||document.body;let c=null;e&&(c=document.createElement("div"),c.id=e,l.appendChild(c));const d=document.createElement("div");d.id=o,d.setAttribute(Se,""),l=c||l,l.appendChild(d),a.current=d,i(d)},[e,t,o,r]),s}function ln(n){const{children:e,id:t,root:o,preserveTabOrder:r=!0}=n,s=an({id:t,root:o}),[i,a]=p.useState(null),l=p.useRef(null),c=p.useRef(null),d=p.useRef(null),u=p.useRef(null),g=i?.modal,h=i?.open,y=!!i&&!i.modal&&i.open&&r&&!!(o||s);return p.useEffect(()=>{if(!s||!r||g)return;function m(f){s&&re(f)&&(f.type==="focusin"?ve:Qt)(s)}return s.addEventListener("focusin",m,!0),s.addEventListener("focusout",m,!0),()=>{s.removeEventListener("focusin",m,!0),s.removeEventListener("focusout",m,!0)}},[s,r,g]),p.useEffect(()=>{s&&(h||ve(s))},[h,s]),I.jsxs($e.Provider,{value:p.useMemo(()=>({preserveTabOrder:r,beforeOutsideRef:l,afterOutsideRef:c,beforeInsideRef:d,afterInsideRef:u,portalNode:s,setFocusManagerState:a}),[r,s]),children:[y&&s&&I.jsx(Re,{"data-type":"outside",ref:l,onFocus:m=>{if(re(m,s)){var f;(f=d.current)==null||f.focus()}else{const x=i?i.domReference:null,b=Yt(x);b?.focus()}}}),y&&s&&I.jsx("span",{"aria-owns":s.id,style:sn}),s&&tt.createPortal(e,s),y&&s&&I.jsx(Re,{"data-type":"outside",ref:c,onFocus:m=>{if(re(m,s)){var f;(f=u.current)==null||f.focus()}else{const x=i?i.domReference:null,b=Ht(x);b?.focus(),i?.closeOnFocusOut&&i?.onOpenChange(!1,m.nativeEvent,"focus-out")}}})]})}const cn=()=>p.useContext($e),un={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},dn={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Ee=n=>{var e,t;return{escapeKey:typeof n=="boolean"?n:(e=n?.escapeKey)!=null?e:!1,outsidePress:typeof n=="boolean"?n:(t=n?.outsidePress)!=null?t:!0}};function fn(n,e){e===void 0&&(e={});const{open:t,onOpenChange:o,elements:r,dataRef:s}=n,{enabled:i=!0,escapeKey:a=!0,outsidePress:l=!0,outsidePressEvent:c="pointerdown",referencePress:d=!1,referencePressEvent:u="pointerdown",ancestorScroll:g=!1,bubbles:h,capture:y}=e,m=qe(),f=W(typeof l=="function"?l:()=>!1),x=typeof l=="function"?f:l,b=p.useRef(!1),{escapeKey:R,outsidePress:v}=Ee(h),{escapeKey:D,outsidePress:C}=Ee(y),O=p.useRef(!1),A=W(S=>{var E;if(!t||!i||!a||S.key!=="Escape"||O.current)return;const P=(E=s.current.floatingContext)==null?void 0:E.nodeId,M=m?Z(m.nodesRef.current,P):[];if(!R&&(S.stopPropagation(),M.length>0)){let w=!0;if(M.forEach(N=>{var q;if((q=N.context)!=null&&q.open&&!N.context.dataRef.current.__escapeKeyBubbles){w=!1;return}}),!w)return}o(!1,Kt(S)?S.nativeEvent:S,"escape-key")}),F=W(S=>{var E;const P=()=>{var M;A(S),(M=Q(S))==null||M.removeEventListener("keydown",P)};(E=Q(S))==null||E.addEventListener("keydown",P)}),T=W(S=>{var E;const P=s.current.insideReactTree;s.current.insideReactTree=!1;const M=b.current;if(b.current=!1,c==="click"&&M||P||typeof x=="function"&&!x(S))return;const w=Q(S),N="["+de("inert")+"]",q=z(r.floating).querySelectorAll(N);let L=j(w)?w:null;for(;L&&!ne(L);){const _=ot(L);if(ne(_)||!j(_))break;L=_}if(q.length&&j(w)&&!Lt(w)&&!ce(w,r.floating)&&Array.from(q).every(_=>!ce(L,_)))return;if(rt(w)&&K){const _=ne(w),B=st(w),Y=/auto|scroll/,Ke=_||Y.test(B.overflowX),Be=_||Y.test(B.overflowY),Ue=Ke&&w.clientWidth>0&&w.scrollWidth>w.clientWidth,Ve=Be&&w.clientHeight>0&&w.scrollHeight>w.clientHeight,We=B.direction==="rtl",Xe=Ve&&(We?S.offsetX<=w.offsetWidth-w.clientWidth:S.offsetX>w.clientWidth),He=Ue&&S.offsetY>w.clientHeight;if(Xe||He)return}const U=(E=s.current.floatingContext)==null?void 0:E.nodeId,H=m&&Z(m.nodesRef.current,U).some(_=>{var B;return oe(S,(B=_.context)==null?void 0:B.elements.floating)});if(oe(S,r.floating)||oe(S,r.domReference)||H)return;const fe=m?Z(m.nodesRef.current,U):[];if(fe.length>0){let _=!0;if(fe.forEach(B=>{var Y;if((Y=B.context)!=null&&Y.open&&!B.context.dataRef.current.__outsidePressBubbles){_=!1;return}}),!_)return}o(!1,S,"outside-press")}),$=W(S=>{var E;const P=()=>{var M;T(S),(M=Q(S))==null||M.removeEventListener(c,P)};(E=Q(S))==null||E.addEventListener(c,P)});p.useEffect(()=>{if(!t||!i)return;s.current.__escapeKeyBubbles=R,s.current.__outsidePressBubbles=v;let S=-1;function E(q){o(!1,q,"ancestor-scroll")}function P(){window.clearTimeout(S),O.current=!0}function M(){S=window.setTimeout(()=>{O.current=!1},nt()?5:0)}const w=z(r.floating);a&&(w.addEventListener("keydown",D?F:A,D),w.addEventListener("compositionstart",P),w.addEventListener("compositionend",M)),x&&w.addEventListener(c,C?$:T,C);let N=[];return g&&(j(r.domReference)&&(N=te(r.domReference)),j(r.floating)&&(N=N.concat(te(r.floating))),!j(r.reference)&&r.reference&&r.reference.contextElement&&(N=N.concat(te(r.reference.contextElement)))),N=N.filter(q=>{var L;return q!==((L=w.defaultView)==null?void 0:L.visualViewport)}),N.forEach(q=>{q.addEventListener("scroll",E,{passive:!0})}),()=>{a&&(w.removeEventListener("keydown",D?F:A,D),w.removeEventListener("compositionstart",P),w.removeEventListener("compositionend",M)),x&&w.removeEventListener(c,C?$:T,C),N.forEach(q=>{q.removeEventListener("scroll",E)}),window.clearTimeout(S)}},[s,r,a,x,c,t,o,g,i,R,v,A,D,F,T,C,$]),p.useEffect(()=>{s.current.insideReactTree=!1},[s,x,c]);const k=p.useMemo(()=>({onKeyDown:A,...d&&{[un[u]]:S=>{o(!1,S.nativeEvent,"reference-press")},...u!=="click"&&{onClick(S){o(!1,S.nativeEvent,"reference-press")}}}}),[A,o,d,u]),K=p.useMemo(()=>{function S(E){E.button===0&&(b.current=!0)}return{onKeyDown:A,onMouseDown:S,onMouseUp:S,[dn[c]]:()=>{s.current.insideReactTree=!0}}},[A,c,s]);return p.useMemo(()=>i?{reference:k,floating:K}:{},[i,k,K])}function gn(n){const{open:e=!1,onOpenChange:t,elements:o}=n,r=ue(),s=p.useRef({}),[i]=p.useState(()=>tn()),a=Fe()!=null,[l,c]=p.useState(o.reference),d=W((h,y,m)=>{s.current.openEvent=h?y:void 0,i.emit("openchange",{open:h,event:y,reason:m,nested:a}),t?.(h,y,m)}),u=p.useMemo(()=>({setPositionReference:c}),[]),g=p.useMemo(()=>({reference:l||o.reference||null,floating:o.floating||null,domReference:o.reference}),[l,o.reference,o.floating]);return p.useMemo(()=>({dataRef:s,open:e,onOpenChange:d,elements:g,events:i,floatingId:r,refs:u}),[e,d,g,i,r,u])}function mn(n){n===void 0&&(n={});const{nodeId:e}=n,t=gn({...n,elements:{reference:null,floating:null,...n.elements}}),o=n.rootContext||t,r=o.elements,[s,i]=p.useState(null),[a,l]=p.useState(null),d=r?.domReference||s,u=p.useRef(null),g=qe();V(()=>{d&&(u.current=d)},[d]);const h=et({...n,elements:{...r,...a&&{reference:a}}}),y=p.useCallback(R=>{const v=j(R)?{getBoundingClientRect:()=>R.getBoundingClientRect(),getClientRects:()=>R.getClientRects(),contextElement:R}:R;l(v),h.refs.setReference(v)},[h.refs]),m=p.useCallback(R=>{(j(R)||R===null)&&(u.current=R,i(R)),(j(h.refs.reference.current)||h.refs.reference.current===null||R!==null&&!j(R))&&h.refs.setReference(R)},[h.refs]),f=p.useMemo(()=>({...h.refs,setReference:m,setPositionReference:y,domReference:u}),[h.refs,m,y]),x=p.useMemo(()=>({...h.elements,domReference:d}),[h.elements,d]),b=p.useMemo(()=>({...h,...o,refs:f,elements:x,nodeId:e}),[h,f,x,e,o]);return V(()=>{o.dataRef.current.floatingContext=b;const R=g?.nodesRef.current.find(v=>v.id===e);R&&(R.context=b)}),p.useMemo(()=>({...h,context:b,refs:f,elements:x}),[h,f,x,b])}function se(n,e,t){const o=new Map,r=t==="item";let s=n;if(r&&n){const{[he]:i,[be]:a,...l}=n;s=l}return{...t==="floating"&&{tabIndex:-1,[Gt]:""},...s,...e.map(i=>{const a=i?i[t]:null;return typeof a=="function"?n?a(n):null:a}).concat(n).reduce((i,a)=>(a&&Object.entries(a).forEach(l=>{let[c,d]=l;if(!(r&&[he,be].includes(c)))if(c.indexOf("on")===0){if(o.has(c)||o.set(c,[]),typeof d=="function"){var u;(u=o.get(c))==null||u.push(d),i[c]=function(){for(var g,h=arguments.length,y=new Array(h),m=0;m<h;m++)y[m]=arguments[m];return(g=o.get(c))==null?void 0:g.map(f=>f(...y)).find(f=>f!==void 0)}}}else i[c]=d}),i),{})}}function pn(n){n===void 0&&(n=[]);const e=n.map(a=>a?.reference),t=n.map(a=>a?.floating),o=n.map(a=>a?.item),r=p.useCallback(a=>se(a,n,"reference"),e),s=p.useCallback(a=>se(a,n,"floating"),t),i=p.useCallback(a=>se(a,n,"item"),o);return p.useMemo(()=>({getReferenceProps:r,getFloatingProps:s,getItemProps:i}),[r,s,i])}const vn=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function hn(n,e){var t,o;e===void 0&&(e={});const{open:r,elements:s,floatingId:i}=n,{enabled:a=!0,role:l="dialog"}=e,c=ue(),d=((t=s.domReference)==null?void 0:t.id)||c,u=p.useMemo(()=>{var b;return((b=jt(s.floating))==null?void 0:b.id)||i},[s.floating,i]),g=(o=vn.get(l))!=null?o:l,y=Fe()!=null,m=p.useMemo(()=>g==="tooltip"||l==="label"?{["aria-"+(l==="label"?"labelledby":"describedby")]:r?u:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":g==="alertdialog"?"dialog":g,"aria-controls":r?u:void 0,...g==="listbox"&&{role:"combobox"},...g==="menu"&&{id:d},...g==="menu"&&y&&{role:"menuitem"},...l==="select"&&{"aria-autocomplete":"none"},...l==="combobox"&&{"aria-autocomplete":"list"}},[g,u,y,r,d,l]),f=p.useMemo(()=>{const b={id:u,...g&&{role:g}};return g==="tooltip"||l==="label"?b:{...b,...g==="menu"&&{"aria-labelledby":d}}},[g,u,d,l]),x=p.useCallback(b=>{let{active:R,selected:v}=b;const D={role:"option",...R&&{id:u+"-fui-option"}};switch(l){case"select":case"combobox":return{...D,"aria-selected":v}}return{}},[u,l]);return p.useMemo(()=>a?{reference:m,floating:f,item:x}:{},[a,m,f,x])}function bn(n){var e;const{char:t,allowSpaces:o,allowToIncludeChar:r,allowedPrefixes:s,startOfLine:i,$position:a}=n,l=o&&!r,c=Ze(t),d=new RegExp(`\\s${c}$`),u=i?"^":"",g=r?"":c,h=l?new RegExp(`${u}${c}.*?(?=\\s${g}|$)`,"gm"):new RegExp(`${u}(?:^)?${c}[^\\s${g}]*`,"gm"),y=((e=a.nodeBefore)===null||e===void 0?void 0:e.isText)&&a.nodeBefore.text;if(!y)return null;const m=a.pos-y.length,f=Array.from(y.matchAll(h)).pop();if(!f||f.input===void 0||f.index===void 0)return null;const x=f.input.slice(Math.max(0,f.index-1),f.index),b=new RegExp(`^[${s?.join("")}\0]?$`).test(x);if(s!==null&&!b)return null;const R=m+f.index;let v=R+f[0].length;return l&&d.test(y.slice(v-1,v+1))&&(f[0]+=" ",v+=1),R<a.pos&&v>=a.pos?{range:{from:R,to:v},query:f[0].slice(t.length),text:f[0]}:null}function xn(n){return n.docChanged?n.steps.some(e=>{const t=e.slice;if(!t?.content)return!1;const o=t.content.textBetween(0,t.content.size,`
|
|
1
|
+
import{o as Ye,j as Qe,h as ie,D as Ge,p as ze,q as Ze}from"./index-Cen25M9q.js";import{r as p,eJ as Je,eK as we,eL as et,eM as j,eN as te,j as I,aR as tt,eO as nt,eP as ne,eQ as ot,eR as rt,eS as st,eT as it,eU as at,eV as lt,eW as Ce,eX as ct,c as X,D as ut,K as dt,eY as ft,eZ as gt,e_ as mt,b as pt,l as vt,h as ht}from"./index-DBoHOKjw.js";import{g as bt,d as xt}from"./gateway-client-BBi5nsR6.js";import{A as yt}from"./agent-icon-CeBKZuCK.js";var Xn=Ye;var Rt=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],ae=Rt.join(","),Ie=typeof Element>"u",G=Ie?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,J=!Ie&&Element.prototype.getRootNode?function(n){var e;return n==null||(e=n.getRootNode)===null||e===void 0?void 0:e.call(n)}:function(n){return n?.ownerDocument},ee=function(e,t){var o;t===void 0&&(t=!0);var r=e==null||(o=e.getAttribute)===null||o===void 0?void 0:o.call(e,"inert"),s=r===""||r==="true",i=s||t&&e&&(typeof e.closest=="function"?e.closest("[inert]"):ee(e.parentNode));return i},St=function(e){var t,o=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return o===""||o==="true"},Et=function(e,t,o){if(ee(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(ae));return t&&G.call(e,ae)&&r.unshift(e),r=r.filter(o),r},le=function(e,t,o){for(var r=[],s=Array.from(e);s.length;){var i=s.shift();if(!ee(i,!1))if(i.tagName==="SLOT"){var a=i.assignedElements(),l=a.length?a:i.children,c=le(l,!0,o);o.flatten?r.push.apply(r,c):r.push({scopeParent:i,candidates:c})}else{var d=G.call(i,ae);d&&o.filter(i)&&(t||!e.includes(i))&&r.push(i);var u=i.shadowRoot||typeof o.getShadowRoot=="function"&&o.getShadowRoot(i),g=!ee(u,!1)&&(!o.shadowRootFilter||o.shadowRootFilter(i));if(u&&g){var h=le(u===!0?i.children:u.children,!0,o);o.flatten?r.push.apply(r,h):r.push({scopeParent:i,candidates:h})}else s.unshift.apply(s,i.children)}}return r},Te=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Pe=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||St(e))&&!Te(e)?0:e.tabIndex},wt=function(e,t){var o=Pe(e);return o<0&&t&&!Te(e)?0:o},Ct=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Ae=function(e){return e.tagName==="INPUT"},It=function(e){return Ae(e)&&e.type==="hidden"},Tt=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(o){return o.tagName==="SUMMARY"});return t},Pt=function(e,t){for(var o=0;o<e.length;o++)if(e[o].checked&&e[o].form===t)return e[o]},At=function(e){if(!e.name)return!0;var t=e.form||J(e),o=function(a){return t.querySelectorAll('input[type="radio"][name="'+a+'"]')},r;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")r=o(window.CSS.escape(e.name));else try{r=o(e.name)}catch(i){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",i.message),!1}var s=Pt(r,e.form);return!s||s===e},Nt=function(e){return Ae(e)&&e.type==="radio"},Dt=function(e){return Nt(e)&&!At(e)},Mt=function(e){var t,o=e&&J(e),r=(t=o)===null||t===void 0?void 0:t.host,s=!1;if(o&&o!==e){var i,a,l;for(s=!!((i=r)!==null&&i!==void 0&&(a=i.ownerDocument)!==null&&a!==void 0&&a.contains(r)||e!=null&&(l=e.ownerDocument)!==null&&l!==void 0&&l.contains(e));!s&&r;){var c,d,u;o=J(r),r=(c=o)===null||c===void 0?void 0:c.host,s=!!((d=r)!==null&&d!==void 0&&(u=d.ownerDocument)!==null&&u!==void 0&&u.contains(r))}}return s},ge=function(e){var t=e.getBoundingClientRect(),o=t.width,r=t.height;return o===0&&r===0},Ot=function(e,t){var o=t.displayCheck,r=t.getShadowRoot;if(o==="full-native"&&"checkVisibility"in e){var s=e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!s}if(getComputedStyle(e).visibility==="hidden")return!0;var i=G.call(e,"details>summary:first-of-type"),a=i?e.parentElement:e;if(G.call(a,"details:not([open]) *"))return!0;if(!o||o==="full"||o==="full-native"||o==="legacy-full"){if(typeof r=="function"){for(var l=e;e;){var c=e.parentElement,d=J(e);if(c&&!c.shadowRoot&&r(c)===!0)return ge(e);e.assignedSlot?e=e.assignedSlot:!c&&d!==e.ownerDocument?e=d.host:e=c}e=l}if(Mt(e))return!e.getClientRects().length;if(o!=="legacy-full")return!0}else if(o==="non-zero-area")return ge(e);return!1},Ft=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var o=0;o<t.children.length;o++){var r=t.children.item(o);if(r.tagName==="LEGEND")return G.call(t,"fieldset[disabled] *")?!0:!r.contains(e)}return!0}t=t.parentElement}return!1},qt=function(e,t){return!(t.disabled||It(t)||Ot(t,e)||Tt(t)||Ft(t))},me=function(e,t){return!(Dt(t)||Pe(t)<0||!qt(e,t))},$t=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},Ne=function(e){var t=[],o=[];return e.forEach(function(r,s){var i=!!r.scopeParent,a=i?r.scopeParent:r,l=wt(a,i),c=i?Ne(r.candidates):a;l===0?i?t.push.apply(t,c):t.push(a):o.push({documentOrder:s,tabIndex:l,item:r,isScope:i,content:c})}),o.sort(Ct).reduce(function(r,s){return s.isScope?r.push.apply(r,s.content):r.push(s.content),r},[]).concat(t)},De=function(e,t){t=t||{};var o;return t.getShadowRoot?o=le([e],t.includeContainer,{filter:me.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:$t}):o=Et(e,t.includeContainer,me.bind(null,t)),Ne(o)};function _t(){return/apple/i.test(navigator.vendor)}const pe="data-floating-ui-focusable";function kt(n){let e=n.activeElement;for(;((t=e)==null||(t=t.shadowRoot)==null?void 0:t.activeElement)!=null;){var t;e=e.shadowRoot.activeElement}return e}function ce(n,e){if(!n||!e)return!1;const t=e.getRootNode==null?void 0:e.getRootNode();if(n.contains(e))return!0;if(t&&Je(t)){let o=e;for(;o;){if(n===o)return!0;o=o.parentNode||o.host}}return!1}function Q(n){return"composedPath"in n?n.composedPath()[0]:n.target}function oe(n,e){if(e==null)return!1;if("composedPath"in n)return n.composedPath().includes(e);const t=n;return t.target!=null&&e.contains(t.target)}function Lt(n){return n.matches("html,body")}function z(n){return n?.ownerDocument||document}function jt(n){return n?n.hasAttribute(pe)?n:n.querySelector("["+pe+"]")||n:null}function Z(n,e,t){return t===void 0&&(t=!0),n.filter(r=>{var s;return r.parentId===e&&(!t||((s=r.context)==null?void 0:s.open))}).flatMap(r=>[r,...Z(n,r.id,t)])}function Kt(n){return"nativeEvent"in n}var Bt=typeof document<"u",Ut=function(){},V=Bt?p.useLayoutEffect:Ut;const Vt={...we},Wt=Vt.useInsertionEffect,Xt=Wt||(n=>n());function W(n){const e=p.useRef(()=>{});return Xt(()=>{e.current=n}),p.useCallback(function(){for(var t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];return e.current==null?void 0:e.current(...o)},[])}const Me=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Oe(n,e){const t=De(n,Me()),o=t.length;if(o===0)return;const r=kt(z(n)),s=t.indexOf(r),i=s===-1?e===1?0:o-1:s+e;return t[i]}function Ht(n){return Oe(z(n).body,1)||n}function Yt(n){return Oe(z(n).body,-1)||n}function re(n,e){const t=e||n.currentTarget,o=n.relatedTarget;return!o||!ce(t,o)}function Qt(n){De(n,Me()).forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")})}function ve(n){n.querySelectorAll("[data-tabindex]").forEach(t=>{const o=t.dataset.tabindex;delete t.dataset.tabindex,o?t.setAttribute("tabindex",o):t.removeAttribute("tabindex")})}const Gt="data-floating-ui-focusable",he="active",be="selected",zt={...we};let xe=!1,Zt=0;const ye=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Zt++;function Jt(){const[n,e]=p.useState(()=>xe?ye():void 0);return V(()=>{n==null&&e(ye())},[]),p.useEffect(()=>{xe=!0},[]),n}const en=zt.useId,ue=en||Jt;function tn(){const n=new Map;return{emit(e,t){var o;(o=n.get(e))==null||o.forEach(r=>r(t))},on(e,t){n.has(e)||n.set(e,new Set),n.get(e).add(t)},off(e,t){var o;(o=n.get(e))==null||o.delete(t)}}}const nn=p.createContext(null),on=p.createContext(null),Fe=()=>{var n;return((n=p.useContext(nn))==null?void 0:n.id)||null},qe=()=>p.useContext(on);function de(n){return"data-floating-ui-"+n}const rn={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0},Re=p.forwardRef(function(e,t){const[o,r]=p.useState();V(()=>{_t()&&r("button")},[]);const s={ref:t,tabIndex:0,role:o,"aria-hidden":o?void 0:!0,[de("focus-guard")]:"",style:rn};return I.jsx("span",{...e,...s})}),sn={clipPath:"inset(50%)",position:"fixed",top:0,left:0},$e=p.createContext(null),Se=de("portal");function an(n){n===void 0&&(n={});const{id:e,root:t}=n,o=ue(),r=cn(),[s,i]=p.useState(null),a=p.useRef(null);return V(()=>()=>{s?.remove(),queueMicrotask(()=>{a.current=null})},[s]),V(()=>{if(!o||a.current)return;const l=e?document.getElementById(e):null;if(!l)return;const c=document.createElement("div");c.id=o,c.setAttribute(Se,""),l.appendChild(c),a.current=c,i(c)},[e,o]),V(()=>{if(t===null||!o||a.current)return;let l=t||r?.portalNode;l&&!it(l)&&(l=l.current),l=l||document.body;let c=null;e&&(c=document.createElement("div"),c.id=e,l.appendChild(c));const d=document.createElement("div");d.id=o,d.setAttribute(Se,""),l=c||l,l.appendChild(d),a.current=d,i(d)},[e,t,o,r]),s}function ln(n){const{children:e,id:t,root:o,preserveTabOrder:r=!0}=n,s=an({id:t,root:o}),[i,a]=p.useState(null),l=p.useRef(null),c=p.useRef(null),d=p.useRef(null),u=p.useRef(null),g=i?.modal,h=i?.open,y=!!i&&!i.modal&&i.open&&r&&!!(o||s);return p.useEffect(()=>{if(!s||!r||g)return;function m(f){s&&re(f)&&(f.type==="focusin"?ve:Qt)(s)}return s.addEventListener("focusin",m,!0),s.addEventListener("focusout",m,!0),()=>{s.removeEventListener("focusin",m,!0),s.removeEventListener("focusout",m,!0)}},[s,r,g]),p.useEffect(()=>{s&&(h||ve(s))},[h,s]),I.jsxs($e.Provider,{value:p.useMemo(()=>({preserveTabOrder:r,beforeOutsideRef:l,afterOutsideRef:c,beforeInsideRef:d,afterInsideRef:u,portalNode:s,setFocusManagerState:a}),[r,s]),children:[y&&s&&I.jsx(Re,{"data-type":"outside",ref:l,onFocus:m=>{if(re(m,s)){var f;(f=d.current)==null||f.focus()}else{const x=i?i.domReference:null,b=Yt(x);b?.focus()}}}),y&&s&&I.jsx("span",{"aria-owns":s.id,style:sn}),s&&tt.createPortal(e,s),y&&s&&I.jsx(Re,{"data-type":"outside",ref:c,onFocus:m=>{if(re(m,s)){var f;(f=u.current)==null||f.focus()}else{const x=i?i.domReference:null,b=Ht(x);b?.focus(),i?.closeOnFocusOut&&i?.onOpenChange(!1,m.nativeEvent,"focus-out")}}})]})}const cn=()=>p.useContext($e),un={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},dn={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Ee=n=>{var e,t;return{escapeKey:typeof n=="boolean"?n:(e=n?.escapeKey)!=null?e:!1,outsidePress:typeof n=="boolean"?n:(t=n?.outsidePress)!=null?t:!0}};function fn(n,e){e===void 0&&(e={});const{open:t,onOpenChange:o,elements:r,dataRef:s}=n,{enabled:i=!0,escapeKey:a=!0,outsidePress:l=!0,outsidePressEvent:c="pointerdown",referencePress:d=!1,referencePressEvent:u="pointerdown",ancestorScroll:g=!1,bubbles:h,capture:y}=e,m=qe(),f=W(typeof l=="function"?l:()=>!1),x=typeof l=="function"?f:l,b=p.useRef(!1),{escapeKey:R,outsidePress:v}=Ee(h),{escapeKey:D,outsidePress:C}=Ee(y),O=p.useRef(!1),A=W(S=>{var E;if(!t||!i||!a||S.key!=="Escape"||O.current)return;const P=(E=s.current.floatingContext)==null?void 0:E.nodeId,M=m?Z(m.nodesRef.current,P):[];if(!R&&(S.stopPropagation(),M.length>0)){let w=!0;if(M.forEach(N=>{var q;if((q=N.context)!=null&&q.open&&!N.context.dataRef.current.__escapeKeyBubbles){w=!1;return}}),!w)return}o(!1,Kt(S)?S.nativeEvent:S,"escape-key")}),F=W(S=>{var E;const P=()=>{var M;A(S),(M=Q(S))==null||M.removeEventListener("keydown",P)};(E=Q(S))==null||E.addEventListener("keydown",P)}),T=W(S=>{var E;const P=s.current.insideReactTree;s.current.insideReactTree=!1;const M=b.current;if(b.current=!1,c==="click"&&M||P||typeof x=="function"&&!x(S))return;const w=Q(S),N="["+de("inert")+"]",q=z(r.floating).querySelectorAll(N);let L=j(w)?w:null;for(;L&&!ne(L);){const _=ot(L);if(ne(_)||!j(_))break;L=_}if(q.length&&j(w)&&!Lt(w)&&!ce(w,r.floating)&&Array.from(q).every(_=>!ce(L,_)))return;if(rt(w)&&K){const _=ne(w),B=st(w),Y=/auto|scroll/,Ke=_||Y.test(B.overflowX),Be=_||Y.test(B.overflowY),Ue=Ke&&w.clientWidth>0&&w.scrollWidth>w.clientWidth,Ve=Be&&w.clientHeight>0&&w.scrollHeight>w.clientHeight,We=B.direction==="rtl",Xe=Ve&&(We?S.offsetX<=w.offsetWidth-w.clientWidth:S.offsetX>w.clientWidth),He=Ue&&S.offsetY>w.clientHeight;if(Xe||He)return}const U=(E=s.current.floatingContext)==null?void 0:E.nodeId,H=m&&Z(m.nodesRef.current,U).some(_=>{var B;return oe(S,(B=_.context)==null?void 0:B.elements.floating)});if(oe(S,r.floating)||oe(S,r.domReference)||H)return;const fe=m?Z(m.nodesRef.current,U):[];if(fe.length>0){let _=!0;if(fe.forEach(B=>{var Y;if((Y=B.context)!=null&&Y.open&&!B.context.dataRef.current.__outsidePressBubbles){_=!1;return}}),!_)return}o(!1,S,"outside-press")}),$=W(S=>{var E;const P=()=>{var M;T(S),(M=Q(S))==null||M.removeEventListener(c,P)};(E=Q(S))==null||E.addEventListener(c,P)});p.useEffect(()=>{if(!t||!i)return;s.current.__escapeKeyBubbles=R,s.current.__outsidePressBubbles=v;let S=-1;function E(q){o(!1,q,"ancestor-scroll")}function P(){window.clearTimeout(S),O.current=!0}function M(){S=window.setTimeout(()=>{O.current=!1},nt()?5:0)}const w=z(r.floating);a&&(w.addEventListener("keydown",D?F:A,D),w.addEventListener("compositionstart",P),w.addEventListener("compositionend",M)),x&&w.addEventListener(c,C?$:T,C);let N=[];return g&&(j(r.domReference)&&(N=te(r.domReference)),j(r.floating)&&(N=N.concat(te(r.floating))),!j(r.reference)&&r.reference&&r.reference.contextElement&&(N=N.concat(te(r.reference.contextElement)))),N=N.filter(q=>{var L;return q!==((L=w.defaultView)==null?void 0:L.visualViewport)}),N.forEach(q=>{q.addEventListener("scroll",E,{passive:!0})}),()=>{a&&(w.removeEventListener("keydown",D?F:A,D),w.removeEventListener("compositionstart",P),w.removeEventListener("compositionend",M)),x&&w.removeEventListener(c,C?$:T,C),N.forEach(q=>{q.removeEventListener("scroll",E)}),window.clearTimeout(S)}},[s,r,a,x,c,t,o,g,i,R,v,A,D,F,T,C,$]),p.useEffect(()=>{s.current.insideReactTree=!1},[s,x,c]);const k=p.useMemo(()=>({onKeyDown:A,...d&&{[un[u]]:S=>{o(!1,S.nativeEvent,"reference-press")},...u!=="click"&&{onClick(S){o(!1,S.nativeEvent,"reference-press")}}}}),[A,o,d,u]),K=p.useMemo(()=>{function S(E){E.button===0&&(b.current=!0)}return{onKeyDown:A,onMouseDown:S,onMouseUp:S,[dn[c]]:()=>{s.current.insideReactTree=!0}}},[A,c,s]);return p.useMemo(()=>i?{reference:k,floating:K}:{},[i,k,K])}function gn(n){const{open:e=!1,onOpenChange:t,elements:o}=n,r=ue(),s=p.useRef({}),[i]=p.useState(()=>tn()),a=Fe()!=null,[l,c]=p.useState(o.reference),d=W((h,y,m)=>{s.current.openEvent=h?y:void 0,i.emit("openchange",{open:h,event:y,reason:m,nested:a}),t?.(h,y,m)}),u=p.useMemo(()=>({setPositionReference:c}),[]),g=p.useMemo(()=>({reference:l||o.reference||null,floating:o.floating||null,domReference:o.reference}),[l,o.reference,o.floating]);return p.useMemo(()=>({dataRef:s,open:e,onOpenChange:d,elements:g,events:i,floatingId:r,refs:u}),[e,d,g,i,r,u])}function mn(n){n===void 0&&(n={});const{nodeId:e}=n,t=gn({...n,elements:{reference:null,floating:null,...n.elements}}),o=n.rootContext||t,r=o.elements,[s,i]=p.useState(null),[a,l]=p.useState(null),d=r?.domReference||s,u=p.useRef(null),g=qe();V(()=>{d&&(u.current=d)},[d]);const h=et({...n,elements:{...r,...a&&{reference:a}}}),y=p.useCallback(R=>{const v=j(R)?{getBoundingClientRect:()=>R.getBoundingClientRect(),getClientRects:()=>R.getClientRects(),contextElement:R}:R;l(v),h.refs.setReference(v)},[h.refs]),m=p.useCallback(R=>{(j(R)||R===null)&&(u.current=R,i(R)),(j(h.refs.reference.current)||h.refs.reference.current===null||R!==null&&!j(R))&&h.refs.setReference(R)},[h.refs]),f=p.useMemo(()=>({...h.refs,setReference:m,setPositionReference:y,domReference:u}),[h.refs,m,y]),x=p.useMemo(()=>({...h.elements,domReference:d}),[h.elements,d]),b=p.useMemo(()=>({...h,...o,refs:f,elements:x,nodeId:e}),[h,f,x,e,o]);return V(()=>{o.dataRef.current.floatingContext=b;const R=g?.nodesRef.current.find(v=>v.id===e);R&&(R.context=b)}),p.useMemo(()=>({...h,context:b,refs:f,elements:x}),[h,f,x,b])}function se(n,e,t){const o=new Map,r=t==="item";let s=n;if(r&&n){const{[he]:i,[be]:a,...l}=n;s=l}return{...t==="floating"&&{tabIndex:-1,[Gt]:""},...s,...e.map(i=>{const a=i?i[t]:null;return typeof a=="function"?n?a(n):null:a}).concat(n).reduce((i,a)=>(a&&Object.entries(a).forEach(l=>{let[c,d]=l;if(!(r&&[he,be].includes(c)))if(c.indexOf("on")===0){if(o.has(c)||o.set(c,[]),typeof d=="function"){var u;(u=o.get(c))==null||u.push(d),i[c]=function(){for(var g,h=arguments.length,y=new Array(h),m=0;m<h;m++)y[m]=arguments[m];return(g=o.get(c))==null?void 0:g.map(f=>f(...y)).find(f=>f!==void 0)}}}else i[c]=d}),i),{})}}function pn(n){n===void 0&&(n=[]);const e=n.map(a=>a?.reference),t=n.map(a=>a?.floating),o=n.map(a=>a?.item),r=p.useCallback(a=>se(a,n,"reference"),e),s=p.useCallback(a=>se(a,n,"floating"),t),i=p.useCallback(a=>se(a,n,"item"),o);return p.useMemo(()=>({getReferenceProps:r,getFloatingProps:s,getItemProps:i}),[r,s,i])}const vn=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function hn(n,e){var t,o;e===void 0&&(e={});const{open:r,elements:s,floatingId:i}=n,{enabled:a=!0,role:l="dialog"}=e,c=ue(),d=((t=s.domReference)==null?void 0:t.id)||c,u=p.useMemo(()=>{var b;return((b=jt(s.floating))==null?void 0:b.id)||i},[s.floating,i]),g=(o=vn.get(l))!=null?o:l,y=Fe()!=null,m=p.useMemo(()=>g==="tooltip"||l==="label"?{["aria-"+(l==="label"?"labelledby":"describedby")]:r?u:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":g==="alertdialog"?"dialog":g,"aria-controls":r?u:void 0,...g==="listbox"&&{role:"combobox"},...g==="menu"&&{id:d},...g==="menu"&&y&&{role:"menuitem"},...l==="select"&&{"aria-autocomplete":"none"},...l==="combobox"&&{"aria-autocomplete":"list"}},[g,u,y,r,d,l]),f=p.useMemo(()=>{const b={id:u,...g&&{role:g}};return g==="tooltip"||l==="label"?b:{...b,...g==="menu"&&{"aria-labelledby":d}}},[g,u,d,l]),x=p.useCallback(b=>{let{active:R,selected:v}=b;const D={role:"option",...R&&{id:u+"-fui-option"}};switch(l){case"select":case"combobox":return{...D,"aria-selected":v}}return{}},[u,l]);return p.useMemo(()=>a?{reference:m,floating:f,item:x}:{},[a,m,f,x])}function bn(n){var e;const{char:t,allowSpaces:o,allowToIncludeChar:r,allowedPrefixes:s,startOfLine:i,$position:a}=n,l=o&&!r,c=Ze(t),d=new RegExp(`\\s${c}$`),u=i?"^":"",g=r?"":c,h=l?new RegExp(`${u}${c}.*?(?=\\s${g}|$)`,"gm"):new RegExp(`${u}(?:^)?${c}[^\\s${g}]*`,"gm"),y=((e=a.nodeBefore)===null||e===void 0?void 0:e.isText)&&a.nodeBefore.text;if(!y)return null;const m=a.pos-y.length,f=Array.from(y.matchAll(h)).pop();if(!f||f.input===void 0||f.index===void 0)return null;const x=f.input.slice(Math.max(0,f.index-1),f.index),b=new RegExp(`^[${s?.join("")}\0]?$`).test(x);if(s!==null&&!b)return null;const R=m+f.index;let v=R+f[0].length;return l&&d.test(y.slice(v-1,v+1))&&(f[0]+=" ",v+=1),R<a.pos&&v>=a.pos?{range:{from:R,to:v},query:f[0].slice(t.length),text:f[0]}:null}function xn(n){return n.docChanged?n.steps.some(e=>{const t=e.slice;if(!t?.content)return!1;const o=t.content.textBetween(0,t.content.size,`
|
|
2
2
|
`);return/\s/.test(o)}):!1}function yn(n){return()=>{const e=n.state.selection.$anchor.pos,{top:t,right:o,bottom:r,left:s}=n.view.coordsAtPos(e);try{return new DOMRect(s,t,o-s,r-t)}catch{return null}}}function Rn(n,e,t,o){return t?()=>{const r=o.getState(n.state),s=r?.decorationId,i=e.dom.querySelector(`[data-decoration-id="${s}"]`);return i?.getBoundingClientRect()||null}:yn(n)}function Sn({match:n,dismissedRange:e,state:t,transaction:o,editor:r,shouldResetDismissed:s,effectiveAllowSpaces:i}){return s?.({editor:r,state:t,range:e,match:n,transaction:o,allowSpaces:i})?!1:i?n.range.from===e.from:n.range.from===e.from&&!xn(o)}function En({view:n,pluginKeyRef:e}){const t=n.state.tr.setMeta(e,{exit:!0});n.dispatch(t)}function wn({pluginKey:n,decorationTag:e,decorationClass:t,decorationContent:o,decorationEmptyClass:r,renderer:s,dispatchExit:i}){return{handleKeyDown(a,l){var c;const d=n.getState(a.state);if(!d.active)return!1;if(l.key==="Escape"||l.key==="Esc"){var u;return s==null||(u=s.onKeyDown)===null||u===void 0||u.call(s,{view:a,event:l,range:d.range}),i(a),!0}return(s==null||(c=s.onKeyDown)===null||c===void 0?void 0:c.call(s,{view:a,event:l,range:d.range}))||!1},decorations(a){const{active:l,range:c,decorationId:d,query:u}=n.getState(a);if(!l)return null;const g=!u?.length,h=[t];return g&&h.push(r),Ge.create(a.doc,[ze.inline(c.from,c.to,{nodeName:e,class:h.join(" "),"data-decoration-id":d||void 0,"data-decoration-content":o})])}}}function Cn({editor:n,char:e,effectiveAllowSpaces:t,allowToIncludeChar:o,allowedPrefixes:r,startOfLine:s,findSuggestionMatch:i,allow:a,shouldShow:l,shouldKeepDismissed:c,pluginKey:d}){return{init(){return{active:!1,range:{from:0,to:0},query:null,text:null,composing:!1,dismissedRange:null}},apply(u,g,h,y){const{isEditable:m}=n,{composing:f}=n.view,{selection:x}=u,{empty:b,from:R}=x,v={...g},D=u.getMeta(d);if(D&&D.exit)return v.active=!1,v.decorationId=null,v.range={from:0,to:0},v.query=null,v.text=null,v.dismissedRange=g.active?{...g.range}:g.dismissedRange,v;if(v.composing=f,u.docChanged&&v.dismissedRange!==null&&(v.dismissedRange={from:u.mapping.map(v.dismissedRange.from),to:u.mapping.map(v.dismissedRange.to)}),m&&(b||n.view.composing)){(R<g.range.from||R>g.range.to)&&!f&&!g.composing&&(v.active=!1);const C=i({char:e,allowSpaces:t,allowToIncludeChar:o,allowedPrefixes:r,startOfLine:s,$position:x.$from}),O=`id_${Math.floor(Math.random()*4294967295)}`;C&&a({editor:n,state:y,range:C.range,isActive:g.active})&&(!l||l({editor:n,range:C.range,query:C.query,text:C.text,transaction:u}))?(v.dismissedRange!==null&&!c({match:C,dismissedRange:v.dismissedRange,state:y,transaction:u})&&(v.dismissedRange=null),v.dismissedRange===null?(v.active=!0,v.decorationId=g.decorationId||O,v.range=C.range,v.query=C.query,v.text=C.text):v.active=!1):(C||(v.dismissedRange=null),v.active=!1)}else v.active=!1;return v.active||(v.decorationId=null,v.range={from:0,to:0},v.query=null,v.text=null),v}}}function In({editor:n,items:e}){let t=null,o=null,r=null;const s=()=>{o!==null&&(clearTimeout(o),o=null),r?.(),r=null},i=c=>new Promise(d=>{r=d,o=setTimeout(()=>{o=null;const u=r;r=null,u?.()},c)}),a=()=>{t?.abort(),s(),t=null};return{abort:a,fetch:async(c,d)=>{a(),t=new AbortController;const u=t;if(d>0&&await i(d),t!==u||u.signal.aborted)return{status:"aborted"};try{const g=await e({editor:n,query:c,signal:u.signal});return t!==u||u.signal.aborted?{status:"aborted"}:{status:"resolved",items:g}}catch{return t!==u||u.signal.aborted?{status:"aborted"}:{status:"error"}}}}}function Tn({placement:n,offset:e,flip:t,floatingUi:o}){var r,s,i,a;const l=[at({mainAxis:(r=e.mainAxis)!==null&&r!==void 0?r:4,crossAxis:(s=e.crossAxis)!==null&&s!==void 0?s:0})];return t&&l.push(lt()),!(o==null||(i=o.middleware)===null||i===void 0)&&i.length&&l.push(...o.middleware),{placement:n,strategy:(a=o?.strategy)!==null&&a!==void 0?a:"absolute",middleware:l}}function Pn(n){if(n instanceof HTMLElement)return n;if(typeof n=="string")try{const e=document.querySelector(n);if(e)return e}catch{return document.body}return document.body}function An({getReferenceRect:n,contextElement:e,config:t,container:o,dismissOnOutsideClick:r,dismiss:s}){return(i,a={})=>{const l={getBoundingClientRect:()=>{var y;return(y=n())!==null&&y!==void 0?y:new DOMRect},contextElement:e};let c=!1;const d=!i.isConnected;d&&Pn(o).appendChild(i),a.onPosition||(i.style.visibility="hidden",i.style.width="max-content");const g=Ce(l,i,()=>{ct(l,i,{placement:t.placement,strategy:t.strategy,middleware:t.middleware}).then(({x:y,y:m,placement:f,strategy:x})=>{if(a.onPosition){a.onPosition({x:y,y:m,placement:f,strategy:x});return}Object.assign(i.style,{position:x,left:`${y}px`,top:`${m}px`}),c||(c=!0,i.style.visibility="")})},a.autoUpdate);let h;return r&&(h=y=>{const m=y.target;!(m instanceof Node)||i.contains(m)||e.contains(m)||s()},document.addEventListener("pointerdown",h,!0)),()=>{g(),h&&document.removeEventListener("pointerdown",h,!0),d&&i.remove()}}}function Nn({editor:n,pluginKey:e,items:t,renderer:o,minQueryLength:r,debounce:s,initialItems:i,placement:a,offset:l,container:c,flip:d,floatingUi:u,dismissOnOutsideClick:g,command:h,clientRectFor:y,dispatchExit:m}){let f;const x=In({editor:n,items:t}),b=Tn({placement:a,offset:l,flip:d,floatingUi:u});function R(v,D){switch(v){case"started":var C;o==null||(C=o.onStart)===null||C===void 0||C.call(o,D);break;case"updated":var O;o==null||(O=o.onUpdate)===null||O===void 0||O.call(o,D);break;case"stopped":var A;o==null||(A=o.onExit)===null||A===void 0||A.call(o,D)}}return{update:async(v,D)=>{var C,O;const A=e.getState(D),F=e.getState(v.state);if(!A||!F)return;let T=null;const $=A.query!==F.query,k=A.text!==F.text,K=A.range.from!==F.range.from||A.range.to!==F.range.to,S=$||k||K;if(!A.active&&F.active)T="started";else if(A.active&&!F.active)T="stopped";else if(F.active&&S)T="updated";else return;const E=T==="stopped"?A:F,P=v.dom.querySelector(`[data-decoration-id="${E.decorationId}"]`),M=y(v,P),w=r===0||(E.query?E.query.length>=r:!1),N=(T==="started"||T==="updated")&&w;if(f={editor:n,range:E.range,query:E.query||"",text:E.text||"",items:i??[],command:U=>h({editor:n,range:E.range,props:U}),decorationNode:P,clientRect:M,loading:N,placement:a,offset:{mainAxis:(C=l.mainAxis)!==null&&C!==void 0?C:4,crossAxis:(O=l.crossAxis)!==null&&O!==void 0?O:0},container:c,flip:d,floatingUi:b,mount:An({getReferenceRect:M,contextElement:v.dom,config:b,container:c,dismissOnOutsideClick:g,dismiss:()=>m(n.view)})},T==="started"){var q;o==null||(q=o.onBeforeStart)===null||q===void 0||q.call(o,f)}if(T==="updated"){var L;o==null||(L=o.onBeforeUpdate)===null||L===void 0||L.call(o,f)}if(T==="started"&&R(T,f),T==="started"||T==="updated")if(!N)x.abort(),f={...f,items:i??[],loading:!1};else{f={...f,items:i??[],loading:!0},T="updated",R(T,f);const U=await x.fetch(E.query||"",s);if(U.status==="aborted")return;const H=e.getState(v.state);if(!H?.active){x.abort();return}f=U.status==="resolved"?{...f,items:U.items,loading:!1}:{...f,loading:!1}}if(T==="stopped"){x.abort(),R(T,f),f=void 0;return}T==="updated"&&R(T,f)},destroy:()=>{var v;x.abort(),f&&(o==null||(v=o.onExit)===null||v===void 0||v.call(o,f))}}}const _e=new ie("suggestion");function ke({pluginKey:n=_e,editor:e,char:t="@",allowSpaces:o=!1,allowToIncludeChar:r=!1,allowedPrefixes:s=[" "],startOfLine:i=!1,decorationTag:a="span",decorationClass:l="suggestion",decorationContent:c="",decorationEmptyClass:d="is-empty",command:u=()=>null,items:g=()=>[],minQueryLength:h=0,debounce:y=0,initialItems:m,placement:f="bottom-start",offset:x={},container:b,flip:R=!0,floatingUi:v,dismissOnOutsideClick:D=!0,render:C=()=>({}),allow:O=()=>!0,findSuggestionMatch:A=bn,shouldShow:F,shouldResetDismissed:T}){const $=C?.(),k=o&&!r,K=(P,M)=>Rn(e,P,M,n);function S(P){return Sn({...P,editor:e,shouldResetDismissed:T,effectiveAllowSpaces:k})}const E=P=>En({view:P,pluginKeyRef:n});return new Qe({key:n,view:()=>Nn({editor:e,pluginKey:n,items:g,renderer:$,minQueryLength:h,debounce:y,initialItems:m,placement:f,offset:x,container:b,flip:R,floatingUi:v,dismissOnOutsideClick:D,command:u,clientRectFor:K,dispatchExit:E}),state:Cn({editor:e,char:t,effectiveAllowSpaces:k,allowToIncludeChar:r,allowedPrefixes:s,startOfLine:i,findSuggestionMatch:A,allow:O,shouldShow:F,shouldKeepDismissed:S,pluginKey:n}),props:wn({pluginKey:n,decorationTag:a,decorationClass:l,decorationContent:c,decorationEmptyClass:d,renderer:$,dispatchExit:E})})}function Hn(n,e=_e){const t=n.state.tr.setMeta(e,{exit:!0});n.dispatch(t)}var Yn=ke;function Dn(n){const e=X.c(17),{editor:t,query:o,items:r,onSelect:s,onClose:i}=n,[a,l]=p.useState(0),c=p.useRef(r),d=p.useRef(a),u=p.useRef(s),g=p.useRef(i),h=p.useDeferredValue(o),[y,m]=p.useState(h);y!==h&&(m(h),l(0)),a>=r.length&&r.length>0&&l(0);let f,x;e[0]!==r?(f=()=>{c.current=r},x=[r],e[0]=r,e[1]=f,e[2]=x):(f=e[1],x=e[2]),p.useEffect(f,x);let b,R;e[3]!==a?(b=()=>{d.current=a},R=[a],e[3]=a,e[4]=b,e[5]=R):(b=e[4],R=e[5]),p.useEffect(b,R);let v,D;e[6]!==s?(v=()=>{u.current=s},D=[s],e[6]=s,e[7]=v,e[8]=D):(v=e[7],D=e[8]),p.useEffect(v,D);let C,O;e[9]!==i?(C=()=>{g.current=i},O=[i],e[9]=i,e[10]=C,e[11]=O):(C=e[10],O=e[11]),p.useEffect(C,O);let A,F;e[12]!==t?(F=()=>{if(t?.isDestroyed)return;let k;try{k=t.view.dom}catch{return}if(!k)return;const K=E=>{const P=c.current;if(!P.length)return!1;const M=()=>l(N=>(N+1)%P.length),w=()=>l(N=>(N-1+P.length)%P.length);switch(E.key){case"ArrowUp":return E.preventDefault(),w(),!0;case"ArrowDown":return E.preventDefault(),M(),!0;case"Tab":return E.preventDefault(),E.shiftKey?w():M(),!0;case"Home":return E.preventDefault(),l(0),!0;case"End":return E.preventDefault(),l(P.length-1),!0;case"Enter":{if(E.isComposing)return!1;E.preventDefault();const N=d.current;return N!==-1&&P[N]&&u.current?.(P[N],N),!0}case"Escape":return E.preventDefault(),g.current?.(),!0;default:return!1}},S=E=>{K(E)};return k.addEventListener("keydown",S,!0),()=>{k?.removeEventListener("keydown",S,!0)}},A=[t],e[12]=t,e[13]=A,e[14]=F):(A=e[13],F=e[14]),p.useEffect(F,A);const T=r.length?a:void 0;let $;return e[15]!==T?($={selectedIndex:T,setSelectedIndex:l},e[15]=T,e[16]=$):$=e[16],$}function Mn(n,e){switch(e.type){case"SET_SELECTED_ITEM":return{...n,selectedItem:e.payload};case"ON_START":return{...n,open:!0,selectedItem:null,element:e.payload.element,query:e.payload.query,range:e.payload.range};case"ON_UPDATE":return{...n,element:e.payload.element,query:e.payload.query,range:e.payload.range};case"ON_EXIT":return{open:!1,element:null,query:"",range:null,selectedItem:null};default:return n}}const Le=p.createContext(void 0);function je(){const n=p.useContext(Le);if(!n)throw new Error("useSuggestionContext must be used within a SuggestionContext.Provider");return n}function On(n){const e=X.c(16),{editor:t,char:o,pluginKey:r,allow:s,onOpenChange:i}=n;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={open:!1,element:null,query:"",range:null,selectedItem:null},e[0]=a):a=e[0];const[l,c]=p.useReducer(Mn,a);let d;e[1]!==i?(d=m=>{i?.(m)},e[1]=i,e[2]=d):d=e[2];const u=p.useEffectEvent(d);let g;e[3]!==o||e[4]!==s||e[5]!==t||e[6]!==u||e[7]!==r?(g=()=>{if(t?.isDestroyed)return;const m=r instanceof ie?r:new ie(r);t.state.plugins.find(b=>b.spec.key===m)&&t.unregisterPlugin(m);const x=ke({pluginKey:m,editor:t,char:o,allow(b){const R=t.state.doc.resolve(b.range.from);for(let v=R.depth;v>0;v--)if(R.node(v).type.name==="image")return!1;return!(s&&!s(b))},command(){},render:()=>({onStart:b=>{c({type:"ON_START",payload:{element:b.decorationNode??null,query:b.query,range:b.range}}),u(!0)},onUpdate:b=>{c({type:"ON_UPDATE",payload:{element:b.decorationNode??null,query:b.query,range:b.range}})},onKeyDown:b=>b.event.key==="Escape"?(c({type:"ON_EXIT"}),!0):!1,onExit:()=>{c({type:"ON_EXIT"}),u(!1)}}),items:Fn});return t.registerPlugin(x),()=>{t?.isDestroyed||t.unregisterPlugin(m)}},e[3]=o,e[4]=s,e[5]=t,e[6]=u,e[7]=r,e[8]=g):g=e[8];let h;e[9]!==o||e[10]!==s||e[11]!==t||e[12]!==r?(h=[t,r,o,c,s],e[9]=o,e[10]=s,e[11]=t,e[12]=r,e[13]=h):h=e[13],p.useEffect(g,h);let y;return e[14]!==l?(y={state:l,dispatch:c},e[14]=l,e[15]=y):y=e[15],y}function Fn(){return[]}function qn({editor:n,queryKey:e,queryFn:t,onSelect:o}){const{state:r,dispatch:s}=je(),i=p.useDeferredValue(r.query),{data:a}=ut({queryKey:dt.suggestionItems(e,r.open,i),queryFn:()=>r.open?t({query:i}):[]}),l=()=>{s({type:"ON_EXIT"})},c=async(u,g)=>{if(!(r.selectedItem!==null||!r.range)){s({type:"SET_SELECTED_ITEM",payload:u});try{const{view:h}=n,m=h.state.selection.$to.nodeAfter?.text?.startsWith(" "),f=r.range?{...r.range}:{from:0,to:0};m&&r.range&&(f.to+=1),await o({range:f,item:u})===!1?s({type:"SET_SELECTED_ITEM",payload:null}):l()}catch{l()}}},{selectedIndex:d}=Dn({editor:n,query:i,items:a,onSelect:c,onClose:l});return{selectedItem:r.selectedItem,items:a,selectedIndex:d,close:l,onSelect:c}}function $n({children:n}){const{state:e,dispatch:t}=je(),{open:o,element:r}=e,s=()=>{t({type:"ON_EXIT"})},{refs:i,floatingStyles:a,context:l}=mn({placement:"bottom-start",open:o,onOpenChange:g=>{g||s()},elements:{reference:r},middleware:[ft(10),gt(),mt()],whileElementsMounted:Ce}),c=fn(l,{outsidePress:g=>!(g.target instanceof Element&&g.target.closest(".ProseMirror"))}),d=hn(l,{role:"listbox"}),{getFloatingProps:u}=pn([c,d]);return o?I.jsx(ln,{children:I.jsx("div",{ref:i.setFloating,style:a,...u(),className:"z-50 w-auto min-w-[360px] max-w-[520px] rounded-lg border bg-popover p-0 text-popover-foreground shadow-md outline-hidden overflow-hidden",children:n})}):null}const _n=n=>{const e=X.c(17),{item:t,isSelected:o,onSelect:r,isLoading:s,ref:i,renderItem:a}=n;let l;if(e[0]!==t){const x=bt(t._meta);l=t.title||xt(t.name,x),e[0]=t,e[1]=l}else l=e[1];const c=l,d=t.description||null,u=t.icon,g=o&&"bg-accent text-accent-foreground",h=s&&"pointer-events-none opacity-50";let y;e[2]!==g||e[3]!==h?(y=vt("relative flex w-full cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors","hover:bg-accent hover:text-accent-foreground","focus:bg-accent focus:text-accent-foreground",g,h),e[2]=g,e[3]=h,e[4]=y):y=e[4];let m;e[5]!==d||e[6]!==u||e[7]!==s||e[8]!==t||e[9]!==c||e[10]!==a?(m=a?a(t):I.jsxs(I.Fragment,{children:[u!==void 0&&I.jsx(yt,{icon:u,name:c,size:"xs",className:"mr-2"}),I.jsxs("div",{className:"flex flex-col gap-0.5 flex-1 min-w-0",children:[I.jsxs("div",{className:"flex items-center justify-between gap-2",children:[I.jsx("span",{className:"font-medium flex items-center truncate capitalize",children:c}),s&&I.jsx(ht,{size:"xs"})]}),d&&I.jsx("div",{className:"text-xs text-muted-foreground line-clamp-1",children:d})]}),t.drillable&&I.jsx("kbd",{className:"shrink-0 ml-2 px-1.5 py-0.5 text-[10px] font-medium text-muted-foreground bg-muted border border-border rounded",children:"↵"})]}),e[5]=d,e[6]=u,e[7]=s,e[8]=t,e[9]=c,e[10]=a,e[11]=m):m=e[11];let f;return e[12]!==r||e[13]!==i||e[14]!==y||e[15]!==m?(f=I.jsx("div",{ref:i,onClick:r,className:y,children:m}),e[12]=r,e[13]=i,e[14]=y,e[15]=m,e[16]=f):f=e[16],f},kn=n=>{const e=X.c(24),{editor:t,queryKey:o,queryFn:r,onSelect:s,renderItem:i,emptyLabel:a}=n,l=pt();let c;e[0]!==t||e[1]!==s||e[2]!==r||e[3]!==o?(c={editor:t,queryKey:o,queryFn:r,onSelect:s},e[0]=t,e[1]=s,e[2]=r,e[3]=o,e[4]=c):c=e[4];const{items:d,selectedIndex:u,onSelect:g,selectedItem:h}=qn(c);if(!d.length){let x;e[5]!==a||e[6]!==l?(x=a??l("chat.mention.noItemsFound"),e[5]=a,e[6]=l,e[7]=x):x=e[7];let b;return e[8]!==x?(b=I.jsx("div",{className:"min-w-[360px] max-w-[520px] bg-popover text-popover-foreground rounded-md border shadow-md p-3 text-sm",children:x}),e[8]=x,e[9]=b):b=e[9],b}let y;e[10]===Symbol.for("react.memo_cache_sentinel")?(y={maxHeight:"min(320px, var(--radix-popover-content-available-height, 320px))"},e[10]=y):y=e[10];let m;if(e[11]!==g||e[12]!==d||e[13]!==i||e[14]!==u||e[15]!==h?.name){let x;e[17]!==g||e[18]!==i||e[19]!==u||e[20]!==h?.name?(x=(b,R)=>I.jsx(_n,{item:b,isSelected:R===u,ref:R===u?Kn:void 0,onSelect:()=>g(b,R),isLoading:h?.name===b.name,renderItem:i},`${b.kind??"item"}:${b.name}`),e[17]=g,e[18]=i,e[19]=u,e[20]=h?.name,e[21]=x):x=e[21],m=d.map(x),e[11]=g,e[12]=d,e[13]=i,e[14]=u,e[15]=h?.name,e[16]=m}else m=e[16];let f;return e[22]!==m?(f=I.jsx("div",{className:"min-w-[360px] max-w-[520px] bg-popover text-popover-foreground rounded-md overflow-y-auto",style:y,children:I.jsx("div",{className:"p-1",children:m})}),e[22]=m,e[23]=f):f=e[23],f};function Ln(){const n=X.c(1);let e;return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=I.jsx("div",{className:"p-1",children:[...Array(3)].map(jn)}),n[0]=e):e=n[0],e}function jn(n,e){return I.jsxs("div",{className:"flex items-center gap-1.5 px-2 py-1.5 animate-pulse",children:[I.jsx("div",{className:"h-4 w-24 bg-muted rounded"}),I.jsx("div",{className:"h-3 w-32 bg-muted rounded"})]},e)}function Qn(n){const e=X.c(20),{editor:t,char:o,pluginKey:r,queryKey:s,queryFn:i,onSelect:a,allow:l,onOpenChange:c,renderItem:d,emptyLabel:u}=n;let g;e[0]!==l||e[1]!==o||e[2]!==t||e[3]!==c||e[4]!==r?(g={editor:t,char:o,pluginKey:r,allow:l,onOpenChange:c},e[0]=l,e[1]=o,e[2]=t,e[3]=c,e[4]=r,e[5]=g):g=e[5];const{state:h,dispatch:y}=On(g);let m;e[6]!==y||e[7]!==h?(m={state:h,dispatch:y},e[6]=y,e[7]=h,e[8]=m):m=e[8];let f;e[9]===Symbol.for("react.memo_cache_sentinel")?(f=I.jsx(Ln,{}),e[9]=f):f=e[9];let x;e[10]!==t||e[11]!==u||e[12]!==a||e[13]!==i||e[14]!==s||e[15]!==d?(x=I.jsx($n,{children:I.jsx(p.Suspense,{fallback:f,children:I.jsx(kn,{editor:t,queryKey:s,queryFn:i,onSelect:a,renderItem:d,emptyLabel:u})})}),e[10]=t,e[11]=u,e[12]=a,e[13]=i,e[14]=s,e[15]=d,e[16]=x):x=e[16];let b;return e[17]!==m||e[18]!==x?(b=I.jsx(Le.Provider,{value:m,children:x}),e[17]=m,e[18]=x,e[19]=b):b=e[19],b}function Kn(n){n&&n.scrollIntoView({block:"center",behavior:"smooth"})}export{Qn as S,Yn as a,Hn as e,Xn as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as c,j as i,bo as C,bm as y,br as T,bp as I,by as M,bJ as H,bF as z,c as A,l as g}from"./index-
|
|
1
|
+
import{r as c,j as i,bo as C,bm as y,br as T,bp as I,by as M,bJ as H,bF as z,c as A,l as g}from"./index-DBoHOKjw.js";var m="Switch",[U]=z(m),[q,F]=U(m),E=c.forwardRef((a,e)=>{const{__scopeSwitch:t,name:r,checked:s,defaultChecked:n,required:o,disabled:d,value:u="on",onCheckedChange:k,form:l,...w}=a,[p,h]=c.useState(null),v=y(e,b=>h(b)),x=c.useRef(!1),S=p?l||!!p.closest("form"):!0,[f,N]=T({prop:s,defaultProp:n??!1,onChange:k,caller:m});return i.jsxs(q,{scope:t,checked:f,disabled:d,children:[i.jsx(C.button,{type:"button",role:"switch","aria-checked":f,"aria-required":o,"data-state":j(f),"data-disabled":d?"":void 0,disabled:d,value:u,...w,ref:v,onClick:I(a.onClick,b=>{N(B=>!B),S&&(x.current=b.isPropagationStopped(),x.current||b.stopPropagation())})}),S&&i.jsx(_,{control:p,bubbles:!x.current,name:r,value:u,checked:f,required:o,disabled:d,form:l,style:{transform:"translateX(-100%)"}})]})});E.displayName=m;var P="SwitchThumb",R=c.forwardRef((a,e)=>{const{__scopeSwitch:t,...r}=a,s=F(P,t);return i.jsx(C.span,{"data-state":j(s.checked),"data-disabled":s.disabled?"":void 0,...r,ref:e})});R.displayName=P;var L="SwitchBubbleInput",_=c.forwardRef(({__scopeSwitch:a,control:e,checked:t,bubbles:r=!0,...s},n)=>{const o=c.useRef(null),d=y(o,n),u=M(t),k=H(e);return c.useEffect(()=>{const l=o.current;if(!l)return;const w=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(w,"checked").set;if(u!==t&&h){const v=new Event("click",{bubbles:r});h.call(l,t),l.dispatchEvent(v)}},[u,t,r]),i.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:t,...s,tabIndex:-1,ref:d,style:{...s.style,...k,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});_.displayName=L;function j(a){return a?"checked":"unchecked"}var O=E,$=R;function J(a){const e=A.c(9);let t,r;e[0]!==a?({className:t,...r}=a,e[0]=a,e[1]=t,e[2]=r):(t=e[1],r=e[2]);let s;e[3]!==t?(s=g("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/20 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[2px] disabled:opacity-50",t),e[3]=t,e[4]=s):s=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx($,{"data-slot":"switch-thumb",className:g("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")}),e[5]=n):n=e[5];let o;return e[6]!==r||e[7]!==s?(o=i.jsx(O,{"data-slot":"switch",className:s,...r,children:n}),e[6]=r,e[7]=s,e[8]=o):o=e[8],o}export{J as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as se,j as s,fJ as he,b as ue,r as ae,B as te,ao as ge,l as je,t as ce,aS as be}from"./index-C6yXfhc9.js";import{s as xe}from"./Plus-Bq5ZeuHM.js";import{A as Re,a as ve,b as Se,c as De,g as Ne,d as _e,e as Ce,f as Pe}from"./alert-dialog-CKYS0LsF.js";import{d as Ae,h as ke,c as we,e as ze,b as Ee,D as Oe}from"./dialog-l0pufTcv.js";import{I as Ie}from"./input-Dgrf_P4M.js";import{u as $e,a as Fe,R as Te}from"./repository-picker-DMsQBK4M.js";import{a as Be,b as Ge,c as He}from"./use-org-repo-syncs-BwY7caQP.js";import{t as qe}from"./format-time-CjIPQhCN.js";import{R as Je}from"./require-capability-UaYV_k-8.js";import"./X-CSlg1sd1.js";import"./ArrowLeft-BIML-f0i.js";import"./LinkExternal01-ClcRo1x1.js";import"./tooltip-C1UnC7LD.js";import"./index-BfpLxh6F.js";import"./label-Ccn3ZfwY.js";import"./useInfiniteQuery-BIeREFXd.js";import"./infiniteQueryObserver-Bs8aLdDs.js";import"./collection-search-B9IMZJsF.js";import"./SearchMd-tAwrJP3u.js";import"./ShoppingBag01-CQ0azIkw.js";import"./avatar-C9IBeU_l.js";import"./User01-9b4OuT4C.js";import"./use-debounced-value-BSX5d21S.js";import"./use-organization-settings-CAFBLWVk.js";import"./schema-Dj8UASRG.js";import"./task-board-zQvtvYuz.js";import"./differenceInSeconds-C3x8sHUj.js";import"./access-gate-wsITlSLv.js";import"./capability-load-error-BXtQ4mcH.js";function Le(e){return e.toLowerCase().replace(/[^a-z0-9_.-]+/g,"-").replace(/^[.-]+|[.-]+$/g,"").slice(0,128)}function Ve(e,t){return e.lastSyncError?{label:e.lastSyncError,error:!0}:e.lastSyncedAt?{label:t("library.syncedRepos.syncedAgo",{ago:qe(e.lastSyncedAt)}),error:!1}:{label:t("library.syncedRepos.waitingFirstSync"),error:!1}}function Ke(e){const t=se.c(38),{config:i,onRemove:l}=e,o=ue();let u;t[0]!==i||t[1]!==o?(u=Ve(i,o),t[0]=i,t[1]=o,t[2]=u):u=t[2];const m=u,r=$e();let f;t[3]!==i.repositoryId||t[4]!==r.data?(f=r.data?.find(C=>C.id===i.repositoryId),t[3]=i.repositoryId,t[4]=r.data,t[5]=f):f=t[5];const n=f;let g;t[6]!==n?(g=s.jsx("div",{className:"size-9 rounded-md bg-muted flex items-center justify-center shrink-0",children:n?s.jsx(Fe,{provider:n.provider,size:16,className:"text-muted-foreground"}):s.jsx(ge,{size:16,className:"text-muted-foreground"})}),t[6]=n,t[7]=g):g=t[7];const c=n?.path??`${i.repoOwner}/${i.repoName}`;let d;t[8]!==c?(d=s.jsx("span",{className:"font-medium text-sm truncate",children:c}),t[8]=c,t[9]=d):d=t[9];let p;t[10]!==i.ref?(p=s.jsxs("span",{className:"text-xs text-muted-foreground shrink-0",children:["@",i.ref]}),t[10]=i.ref,t[11]=p):p=t[11];let S;t[12]!==d||t[13]!==p?(S=s.jsxs("div",{className:"flex items-center gap-2",children:[d,p]}),t[12]=d,t[13]=p,t[14]=S):S=t[14];const _=m.error?"text-destructive":"text-muted-foreground";let D;t[15]!==_?(D=je("text-xs mt-0.5 truncate",_),t[15]=_,t[16]=D):D=t[16];let b;t[17]!==i.volume||t[18]!==o?(b=o("settings.syncedRepos.rowSubtitle",{volume:i.volume}),t[17]=i.volume,t[18]=o,t[19]=b):b=t[19];let R;t[20]!==m.label||t[21]!==b||t[22]!==D?(R=s.jsxs("p",{className:D,children:[b," ·"," ",m.label]}),t[20]=m.label,t[21]=b,t[22]=D,t[23]=R):R=t[23];let x;t[24]!==R||t[25]!==S?(x=s.jsxs("div",{className:"min-w-0",children:[S,R]}),t[24]=R,t[25]=S,t[26]=x):x=t[26];let y;t[27]!==x||t[28]!==g?(y=s.jsxs("div",{className:"flex items-start gap-3 min-w-0",children:[g,x]}),t[27]=x,t[28]=g,t[29]=y):y=t[29];let h;t[30]!==o?(h=o("settings.syncedRepos.remove"),t[30]=o,t[31]=h):h=t[31];let j;t[32]!==l||t[33]!==h?(j=s.jsx(te,{variant:"outline",size:"sm",onClick:l,children:h}),t[32]=l,t[33]=h,t[34]=j):j=t[34];let N;return t[35]!==y||t[36]!==j?(N=s.jsxs("div",{className:"flex items-center justify-between gap-4 py-3 border-b border-border/60 last:border-b-0",children:[y,j]}),t[35]=y,t[36]=j,t[37]=N):N=t[37],N}function Me(e){const t=se.c(21),{onAdd:i}=e,l=ue();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("div",{className:"size-12 rounded-full bg-muted flex items-center justify-center",children:s.jsx(ge,{size:20,className:"text-muted-foreground"})}),t[0]=o):o=t[0];let u;t[1]!==l?(u=l("settings.syncedRepos.emptyTitle"),t[1]=l,t[2]=u):u=t[2];let m;t[3]!==u?(m=s.jsx("p",{className:"font-medium text-sm",children:u}),t[3]=u,t[4]=m):m=t[4];let r;t[5]!==l?(r=l("settings.syncedRepos.emptyDescription"),t[5]=l,t[6]=r):r=t[6];let f;t[7]!==r?(f=s.jsx("p",{className:"text-xs text-muted-foreground mt-1 max-w-sm",children:r}),t[7]=r,t[8]=f):f=t[8];let n;t[9]!==m||t[10]!==f?(n=s.jsxs("div",{children:[m,f]}),t[9]=m,t[10]=f,t[11]=n):n=t[11];let g;t[12]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(xe,{size:14}),t[12]=g):g=t[12];let c;t[13]!==l?(c=l("settings.syncedRepos.addRepo"),t[13]=l,t[14]=c):c=t[14];let d;t[15]!==i||t[16]!==c?(d=s.jsxs(te,{onClick:i,size:"sm",className:"mt-2",children:[g,c]}),t[15]=i,t[16]=c,t[17]=d):d=t[17];let p;return t[18]!==n||t[19]!==d?(p=s.jsxs("div",{className:"rounded-2xl border border-dashed border-border/60 p-10 flex flex-col items-center justify-center text-center gap-3",children:[o,n,d]}),t[18]=n,t[19]=d,t[20]=p):p=t[20],p}function Qe(){const e=se.c(107),t=ue(),i=Be(),l=Ge(),o=He(),[u,m]=ae.useState(!1),[r,f]=ae.useState(null),[n,g]=ae.useState(""),[c,d]=ae.useState(null);let p;e[0]!==l||e[1]!==r||e[2]!==t||e[3]!==n?(p=function(){!r||!n.trim()||l.mutate({repositoryId:r.id,volume:n.trim()},{onSuccess:v=>{f(null),ce.success(t("settings.syncedRepos.created",{volume:v.volume}))},onError:v=>{ce.error(v instanceof Error?v.message:t("settings.syncedRepos.failed"))}})},e[0]=l,e[1]=r,e[2]=t,e[3]=n,e[4]=p):p=e[4];const S=p;let _;e[5]!==c||e[6]!==o||e[7]!==t?(_=function(){c&&o.mutate(c.id,{onSuccess:()=>ce.success(t("settings.syncedRepos.removed")),onError:v=>ce.error(v instanceof Error?v.message:t("settings.syncedRepos.failed")),onSettled:()=>d(null)})},e[5]=c,e[6]=o,e[7]=t,e[8]=_):_=e[8];const D=_;if(i.isPending){let a;return e[9]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(be,{className:"h-32 w-full"}),e[9]=a):a=e[9],a}let b;e[10]!==i.data?(b=i.data??[],e[10]=i.data,e[11]=b):b=e[11];const R=b;let x;e[12]!==t?(x=t("settings.syncedRepos.pageDescription"),e[12]=t,e[13]=x):x=e[13];let y;e[14]!==x?(y=s.jsx("p",{className:"text-sm text-muted-foreground",children:x}),e[14]=x,e[15]=y):y=e[15];let h;e[16]!==R||e[17]!==t?(h=R.length===0?s.jsx(Me,{onAdd:()=>m(!0)}):s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"flex items-center justify-end",children:s.jsxs(te,{onClick:()=>m(!0),size:"sm",children:[s.jsx(xe,{size:14}),t("settings.syncedRepos.addRepo")]})}),s.jsx("section",{className:"rounded-2xl border border-border/60 bg-background px-5 py-2",children:R.map(a=>s.jsx(Ke,{config:a,onRemove:()=>d(a)},a.id))})]}),e[16]=R,e[17]=t,e[18]=h):h=e[18];let j;e[19]!==t?(j=t("settings.syncedRepos.pickerTitle"),e[19]=t,e[20]=j):j=e[20];let N;e[21]===Symbol.for("react.memo_cache_sentinel")?(N=a=>{const{repository:v}=a;m(!1),f(v),g(Le(v.path.split("/").at(-1)??v.path))},e[21]=N):N=e[21];let C;e[22]!==u||e[23]!==j?(C=s.jsx(Te,{open:u,onOpenChange:m,title:j,onPicked:N}),e[22]=u,e[23]=j,e[24]=C):C=e[24];const de=r!==null;let le;e[25]===Symbol.for("react.memo_cache_sentinel")?(le=a=>{a||f(null)},e[25]=le):le=e[25];let P;e[26]!==t?(P=t("settings.syncedRepos.nameDialogTitle"),e[26]=t,e[27]=P):P=e[27];let A;e[28]!==P?(A=s.jsx(Ae,{children:P}),e[28]=P,e[29]=A):A=e[29];const me=r?r.path:"";let k;e[30]!==t||e[31]!==me?(k=t("settings.syncedRepos.nameDialogDescription",{repo:me}),e[30]=t,e[31]=me,e[32]=k):k=e[32];let w;e[33]!==k?(w=s.jsx(ke,{children:k}),e[33]=k,e[34]=w):w=e[34];let z;e[35]!==A||e[36]!==w?(z=s.jsxs(we,{children:[A,w]}),e[35]=A,e[36]=w,e[37]=z):z=e[37];let ie;e[38]===Symbol.for("react.memo_cache_sentinel")?(ie=a=>g(a.target.value),e[38]=ie):ie=e[38];let E;e[39]!==t?(E=t("settings.syncedRepos.namePlaceholder"),e[39]=t,e[40]=E):E=e[40];let O;e[41]!==E||e[42]!==n?(O=s.jsx(Ie,{value:n,onChange:ie,placeholder:E,autoFocus:!0}),e[41]=E,e[42]=n,e[43]=O):O=e[43];let ne;e[44]===Symbol.for("react.memo_cache_sentinel")?(ne=()=>f(null),e[44]=ne):ne=e[44];const ye=l.isPending;let I;e[45]!==t?(I=t("settings.syncedRepos.cancel"),e[45]=t,e[46]=I):I=e[46];let $;e[47]!==l.isPending||e[48]!==I?($=s.jsx(te,{variant:"outline",onClick:ne,disabled:ye,children:I}),e[47]=l.isPending,e[48]=I,e[49]=$):$=e[49];let F;e[50]!==l.isPending||e[51]!==n?(F=!n.trim()||l.isPending,e[50]=l.isPending,e[51]=n,e[52]=F):F=e[52];let T;e[53]!==l.isPending||e[54]!==t?(T=l.isPending?t("settings.syncedRepos.creating"):t("settings.syncedRepos.create"),e[53]=l.isPending,e[54]=t,e[55]=T):T=e[55];let B;e[56]!==S||e[57]!==F||e[58]!==T?(B=s.jsx(te,{disabled:F,onClick:S,children:T}),e[56]=S,e[57]=F,e[58]=T,e[59]=B):B=e[59];let G;e[60]!==$||e[61]!==B?(G=s.jsxs(ze,{children:[$,B]}),e[60]=$,e[61]=B,e[62]=G):G=e[62];let H;e[63]!==z||e[64]!==O||e[65]!==G?(H=s.jsxs(Ee,{className:"sm:max-w-sm",children:[z,O,G]}),e[63]=z,e[64]=O,e[65]=G,e[66]=H):H=e[66];let q;e[67]!==H||e[68]!==de?(q=s.jsx(Oe,{open:de,onOpenChange:le,children:H}),e[67]=H,e[68]=de,e[69]=q):q=e[69];const fe=c!==null;let oe;e[70]===Symbol.for("react.memo_cache_sentinel")?(oe=a=>{a||d(null)},e[70]=oe):oe=e[70];const pe=c?.volume??"";let J;e[71]!==t||e[72]!==pe?(J=t("settings.syncedRepos.removeTitle",{volume:pe}),e[71]=t,e[72]=pe,e[73]=J):J=e[73];let L;e[74]!==J?(L=s.jsx(Re,{children:J}),e[74]=J,e[75]=L):L=e[75];let V;e[76]!==t?(V=t("settings.syncedRepos.removeDescription"),e[76]=t,e[77]=V):V=e[77];let K;e[78]!==V?(K=s.jsx(ve,{children:V}),e[78]=V,e[79]=K):K=e[79];let M;e[80]!==L||e[81]!==K?(M=s.jsxs(Se,{children:[L,K]}),e[80]=L,e[81]=K,e[82]=M):M=e[82];let Q;e[83]!==t?(Q=t("settings.syncedRepos.cancel"),e[83]=t,e[84]=Q):Q=e[84];let U;e[85]!==Q?(U=s.jsx(De,{children:Q}),e[85]=Q,e[86]=U):U=e[86];let W;e[87]!==t?(W=t("settings.syncedRepos.remove"),e[87]=t,e[88]=W):W=e[88];let X;e[89]!==D||e[90]!==W?(X=s.jsx(Ne,{onClick:D,children:W}),e[89]=D,e[90]=W,e[91]=X):X=e[91];let Y;e[92]!==U||e[93]!==X?(Y=s.jsxs(_e,{children:[U,X]}),e[92]=U,e[93]=X,e[94]=Y):Y=e[94];let Z;e[95]!==M||e[96]!==Y?(Z=s.jsxs(Ce,{children:[M,Y]}),e[95]=M,e[96]=Y,e[97]=Z):Z=e[97];let ee;e[98]!==fe||e[99]!==Z?(ee=s.jsx(Pe,{open:fe,onOpenChange:oe,children:Z}),e[98]=fe,e[99]=Z,e[100]=ee):ee=e[100];let re;return e[101]!==q||e[102]!==y||e[103]!==ee||e[104]!==h||e[105]!==C?(re=s.jsxs(s.Fragment,{children:[y,h,C,q,ee]}),e[101]=q,e[102]=y,e[103]=ee,e[104]=h,e[105]=C,e[106]=re):re=e[106],re}function Ue(){const e=se.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(he,{group:"storage",children:s.jsx(Qe,{})}),e[0]=t):t=e[0],t}function Nt(){const e=se.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(Je,{capability:"file-configs:manage",area:"files",children:s.jsx(Ue,{})}),e[0]=t):t=e[0],t}export{Nt as default};
|
|
1
|
+
import{c as se,j as s,fJ as he,b as ue,r as ae,B as te,ao as ge,l as je,t as ce,aS as be}from"./index-DBoHOKjw.js";import{s as xe}from"./Plus-D36CJbju.js";import{A as Re,a as ve,b as Se,c as De,g as Ne,d as _e,e as Ce,f as Pe}from"./alert-dialog-CPYvhc00.js";import{d as Ae,h as ke,c as we,e as ze,b as Ee,D as Oe}from"./dialog-DbnuA-yG.js";import{I as Ie}from"./input-Mb2meh2H.js";import{u as $e,a as Fe,R as Te}from"./repository-picker-BWrox8LY.js";import{a as Be,b as Ge,c as He}from"./use-org-repo-syncs-DE71GlMs.js";import{t as qe}from"./format-time-CjIPQhCN.js";import{R as Je}from"./require-capability-HPXJ2_ev.js";import"./X-DmvkVyms.js";import"./ArrowLeft-ZcdIkYz0.js";import"./LinkExternal01-K_EoOXaI.js";import"./tooltip-B8csev2n.js";import"./index-BGXkNlsg.js";import"./label-Bls3Ztde.js";import"./useInfiniteQuery-C7HvpSpg.js";import"./infiniteQueryObserver-qgWv5yw5.js";import"./collection-search-CAzSXhAd.js";import"./SearchMd-CWTPI1P9.js";import"./ShoppingBag01-d2G89AZS.js";import"./avatar-CmavCmK6.js";import"./User01-YC00nqD8.js";import"./use-debounced-value-Db-8HwQf.js";import"./use-organization-settings-Dyzll_Gy.js";import"./schema-CE2zpNxo.js";import"./task-board-Crg-IxL1.js";import"./differenceInSeconds-C3x8sHUj.js";import"./access-gate-CzNiWJFS.js";import"./capability-load-error-I_NPeWs3.js";function Le(e){return e.toLowerCase().replace(/[^a-z0-9_.-]+/g,"-").replace(/^[.-]+|[.-]+$/g,"").slice(0,128)}function Ve(e,t){return e.lastSyncError?{label:e.lastSyncError,error:!0}:e.lastSyncedAt?{label:t("library.syncedRepos.syncedAgo",{ago:qe(e.lastSyncedAt)}),error:!1}:{label:t("library.syncedRepos.waitingFirstSync"),error:!1}}function Ke(e){const t=se.c(38),{config:i,onRemove:l}=e,o=ue();let u;t[0]!==i||t[1]!==o?(u=Ve(i,o),t[0]=i,t[1]=o,t[2]=u):u=t[2];const m=u,r=$e();let f;t[3]!==i.repositoryId||t[4]!==r.data?(f=r.data?.find(C=>C.id===i.repositoryId),t[3]=i.repositoryId,t[4]=r.data,t[5]=f):f=t[5];const n=f;let g;t[6]!==n?(g=s.jsx("div",{className:"size-9 rounded-md bg-muted flex items-center justify-center shrink-0",children:n?s.jsx(Fe,{provider:n.provider,size:16,className:"text-muted-foreground"}):s.jsx(ge,{size:16,className:"text-muted-foreground"})}),t[6]=n,t[7]=g):g=t[7];const c=n?.path??`${i.repoOwner}/${i.repoName}`;let d;t[8]!==c?(d=s.jsx("span",{className:"font-medium text-sm truncate",children:c}),t[8]=c,t[9]=d):d=t[9];let p;t[10]!==i.ref?(p=s.jsxs("span",{className:"text-xs text-muted-foreground shrink-0",children:["@",i.ref]}),t[10]=i.ref,t[11]=p):p=t[11];let S;t[12]!==d||t[13]!==p?(S=s.jsxs("div",{className:"flex items-center gap-2",children:[d,p]}),t[12]=d,t[13]=p,t[14]=S):S=t[14];const _=m.error?"text-destructive":"text-muted-foreground";let D;t[15]!==_?(D=je("text-xs mt-0.5 truncate",_),t[15]=_,t[16]=D):D=t[16];let b;t[17]!==i.volume||t[18]!==o?(b=o("settings.syncedRepos.rowSubtitle",{volume:i.volume}),t[17]=i.volume,t[18]=o,t[19]=b):b=t[19];let R;t[20]!==m.label||t[21]!==b||t[22]!==D?(R=s.jsxs("p",{className:D,children:[b," ·"," ",m.label]}),t[20]=m.label,t[21]=b,t[22]=D,t[23]=R):R=t[23];let x;t[24]!==R||t[25]!==S?(x=s.jsxs("div",{className:"min-w-0",children:[S,R]}),t[24]=R,t[25]=S,t[26]=x):x=t[26];let y;t[27]!==x||t[28]!==g?(y=s.jsxs("div",{className:"flex items-start gap-3 min-w-0",children:[g,x]}),t[27]=x,t[28]=g,t[29]=y):y=t[29];let h;t[30]!==o?(h=o("settings.syncedRepos.remove"),t[30]=o,t[31]=h):h=t[31];let j;t[32]!==l||t[33]!==h?(j=s.jsx(te,{variant:"outline",size:"sm",onClick:l,children:h}),t[32]=l,t[33]=h,t[34]=j):j=t[34];let N;return t[35]!==y||t[36]!==j?(N=s.jsxs("div",{className:"flex items-center justify-between gap-4 py-3 border-b border-border/60 last:border-b-0",children:[y,j]}),t[35]=y,t[36]=j,t[37]=N):N=t[37],N}function Me(e){const t=se.c(21),{onAdd:i}=e,l=ue();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("div",{className:"size-12 rounded-full bg-muted flex items-center justify-center",children:s.jsx(ge,{size:20,className:"text-muted-foreground"})}),t[0]=o):o=t[0];let u;t[1]!==l?(u=l("settings.syncedRepos.emptyTitle"),t[1]=l,t[2]=u):u=t[2];let m;t[3]!==u?(m=s.jsx("p",{className:"font-medium text-sm",children:u}),t[3]=u,t[4]=m):m=t[4];let r;t[5]!==l?(r=l("settings.syncedRepos.emptyDescription"),t[5]=l,t[6]=r):r=t[6];let f;t[7]!==r?(f=s.jsx("p",{className:"text-xs text-muted-foreground mt-1 max-w-sm",children:r}),t[7]=r,t[8]=f):f=t[8];let n;t[9]!==m||t[10]!==f?(n=s.jsxs("div",{children:[m,f]}),t[9]=m,t[10]=f,t[11]=n):n=t[11];let g;t[12]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(xe,{size:14}),t[12]=g):g=t[12];let c;t[13]!==l?(c=l("settings.syncedRepos.addRepo"),t[13]=l,t[14]=c):c=t[14];let d;t[15]!==i||t[16]!==c?(d=s.jsxs(te,{onClick:i,size:"sm",className:"mt-2",children:[g,c]}),t[15]=i,t[16]=c,t[17]=d):d=t[17];let p;return t[18]!==n||t[19]!==d?(p=s.jsxs("div",{className:"rounded-2xl border border-dashed border-border/60 p-10 flex flex-col items-center justify-center text-center gap-3",children:[o,n,d]}),t[18]=n,t[19]=d,t[20]=p):p=t[20],p}function Qe(){const e=se.c(107),t=ue(),i=Be(),l=Ge(),o=He(),[u,m]=ae.useState(!1),[r,f]=ae.useState(null),[n,g]=ae.useState(""),[c,d]=ae.useState(null);let p;e[0]!==l||e[1]!==r||e[2]!==t||e[3]!==n?(p=function(){!r||!n.trim()||l.mutate({repositoryId:r.id,volume:n.trim()},{onSuccess:v=>{f(null),ce.success(t("settings.syncedRepos.created",{volume:v.volume}))},onError:v=>{ce.error(v instanceof Error?v.message:t("settings.syncedRepos.failed"))}})},e[0]=l,e[1]=r,e[2]=t,e[3]=n,e[4]=p):p=e[4];const S=p;let _;e[5]!==c||e[6]!==o||e[7]!==t?(_=function(){c&&o.mutate(c.id,{onSuccess:()=>ce.success(t("settings.syncedRepos.removed")),onError:v=>ce.error(v instanceof Error?v.message:t("settings.syncedRepos.failed")),onSettled:()=>d(null)})},e[5]=c,e[6]=o,e[7]=t,e[8]=_):_=e[8];const D=_;if(i.isPending){let a;return e[9]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(be,{className:"h-32 w-full"}),e[9]=a):a=e[9],a}let b;e[10]!==i.data?(b=i.data??[],e[10]=i.data,e[11]=b):b=e[11];const R=b;let x;e[12]!==t?(x=t("settings.syncedRepos.pageDescription"),e[12]=t,e[13]=x):x=e[13];let y;e[14]!==x?(y=s.jsx("p",{className:"text-sm text-muted-foreground",children:x}),e[14]=x,e[15]=y):y=e[15];let h;e[16]!==R||e[17]!==t?(h=R.length===0?s.jsx(Me,{onAdd:()=>m(!0)}):s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"flex items-center justify-end",children:s.jsxs(te,{onClick:()=>m(!0),size:"sm",children:[s.jsx(xe,{size:14}),t("settings.syncedRepos.addRepo")]})}),s.jsx("section",{className:"rounded-2xl border border-border/60 bg-background px-5 py-2",children:R.map(a=>s.jsx(Ke,{config:a,onRemove:()=>d(a)},a.id))})]}),e[16]=R,e[17]=t,e[18]=h):h=e[18];let j;e[19]!==t?(j=t("settings.syncedRepos.pickerTitle"),e[19]=t,e[20]=j):j=e[20];let N;e[21]===Symbol.for("react.memo_cache_sentinel")?(N=a=>{const{repository:v}=a;m(!1),f(v),g(Le(v.path.split("/").at(-1)??v.path))},e[21]=N):N=e[21];let C;e[22]!==u||e[23]!==j?(C=s.jsx(Te,{open:u,onOpenChange:m,title:j,onPicked:N}),e[22]=u,e[23]=j,e[24]=C):C=e[24];const de=r!==null;let le;e[25]===Symbol.for("react.memo_cache_sentinel")?(le=a=>{a||f(null)},e[25]=le):le=e[25];let P;e[26]!==t?(P=t("settings.syncedRepos.nameDialogTitle"),e[26]=t,e[27]=P):P=e[27];let A;e[28]!==P?(A=s.jsx(Ae,{children:P}),e[28]=P,e[29]=A):A=e[29];const me=r?r.path:"";let k;e[30]!==t||e[31]!==me?(k=t("settings.syncedRepos.nameDialogDescription",{repo:me}),e[30]=t,e[31]=me,e[32]=k):k=e[32];let w;e[33]!==k?(w=s.jsx(ke,{children:k}),e[33]=k,e[34]=w):w=e[34];let z;e[35]!==A||e[36]!==w?(z=s.jsxs(we,{children:[A,w]}),e[35]=A,e[36]=w,e[37]=z):z=e[37];let ie;e[38]===Symbol.for("react.memo_cache_sentinel")?(ie=a=>g(a.target.value),e[38]=ie):ie=e[38];let E;e[39]!==t?(E=t("settings.syncedRepos.namePlaceholder"),e[39]=t,e[40]=E):E=e[40];let O;e[41]!==E||e[42]!==n?(O=s.jsx(Ie,{value:n,onChange:ie,placeholder:E,autoFocus:!0}),e[41]=E,e[42]=n,e[43]=O):O=e[43];let ne;e[44]===Symbol.for("react.memo_cache_sentinel")?(ne=()=>f(null),e[44]=ne):ne=e[44];const ye=l.isPending;let I;e[45]!==t?(I=t("settings.syncedRepos.cancel"),e[45]=t,e[46]=I):I=e[46];let $;e[47]!==l.isPending||e[48]!==I?($=s.jsx(te,{variant:"outline",onClick:ne,disabled:ye,children:I}),e[47]=l.isPending,e[48]=I,e[49]=$):$=e[49];let F;e[50]!==l.isPending||e[51]!==n?(F=!n.trim()||l.isPending,e[50]=l.isPending,e[51]=n,e[52]=F):F=e[52];let T;e[53]!==l.isPending||e[54]!==t?(T=l.isPending?t("settings.syncedRepos.creating"):t("settings.syncedRepos.create"),e[53]=l.isPending,e[54]=t,e[55]=T):T=e[55];let B;e[56]!==S||e[57]!==F||e[58]!==T?(B=s.jsx(te,{disabled:F,onClick:S,children:T}),e[56]=S,e[57]=F,e[58]=T,e[59]=B):B=e[59];let G;e[60]!==$||e[61]!==B?(G=s.jsxs(ze,{children:[$,B]}),e[60]=$,e[61]=B,e[62]=G):G=e[62];let H;e[63]!==z||e[64]!==O||e[65]!==G?(H=s.jsxs(Ee,{className:"sm:max-w-sm",children:[z,O,G]}),e[63]=z,e[64]=O,e[65]=G,e[66]=H):H=e[66];let q;e[67]!==H||e[68]!==de?(q=s.jsx(Oe,{open:de,onOpenChange:le,children:H}),e[67]=H,e[68]=de,e[69]=q):q=e[69];const fe=c!==null;let oe;e[70]===Symbol.for("react.memo_cache_sentinel")?(oe=a=>{a||d(null)},e[70]=oe):oe=e[70];const pe=c?.volume??"";let J;e[71]!==t||e[72]!==pe?(J=t("settings.syncedRepos.removeTitle",{volume:pe}),e[71]=t,e[72]=pe,e[73]=J):J=e[73];let L;e[74]!==J?(L=s.jsx(Re,{children:J}),e[74]=J,e[75]=L):L=e[75];let V;e[76]!==t?(V=t("settings.syncedRepos.removeDescription"),e[76]=t,e[77]=V):V=e[77];let K;e[78]!==V?(K=s.jsx(ve,{children:V}),e[78]=V,e[79]=K):K=e[79];let M;e[80]!==L||e[81]!==K?(M=s.jsxs(Se,{children:[L,K]}),e[80]=L,e[81]=K,e[82]=M):M=e[82];let Q;e[83]!==t?(Q=t("settings.syncedRepos.cancel"),e[83]=t,e[84]=Q):Q=e[84];let U;e[85]!==Q?(U=s.jsx(De,{children:Q}),e[85]=Q,e[86]=U):U=e[86];let W;e[87]!==t?(W=t("settings.syncedRepos.remove"),e[87]=t,e[88]=W):W=e[88];let X;e[89]!==D||e[90]!==W?(X=s.jsx(Ne,{onClick:D,children:W}),e[89]=D,e[90]=W,e[91]=X):X=e[91];let Y;e[92]!==U||e[93]!==X?(Y=s.jsxs(_e,{children:[U,X]}),e[92]=U,e[93]=X,e[94]=Y):Y=e[94];let Z;e[95]!==M||e[96]!==Y?(Z=s.jsxs(Ce,{children:[M,Y]}),e[95]=M,e[96]=Y,e[97]=Z):Z=e[97];let ee;e[98]!==fe||e[99]!==Z?(ee=s.jsx(Pe,{open:fe,onOpenChange:oe,children:Z}),e[98]=fe,e[99]=Z,e[100]=ee):ee=e[100];let re;return e[101]!==q||e[102]!==y||e[103]!==ee||e[104]!==h||e[105]!==C?(re=s.jsxs(s.Fragment,{children:[y,h,C,q,ee]}),e[101]=q,e[102]=y,e[103]=ee,e[104]=h,e[105]=C,e[106]=re):re=e[106],re}function Ue(){const e=se.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(he,{group:"storage",children:s.jsx(Qe,{})}),e[0]=t):t=e[0],t}function Nt(){const e=se.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(Je,{capability:"file-configs:manage",area:"files",children:s.jsx(Ue,{})}),e[0]=t):t=e[0],t}export{Nt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as a,l as f,j as i}from"./index-
|
|
1
|
+
import{c as a,l as f,j as i}from"./index-DBoHOKjw.js";import{a as p}from"./ZoomOut-Bz0zUi4W.js";function j(m){const s=a.c(10),{icon:o,className:l}=m,e=l===void 0?"size-4":l;if(o.kind==="component"){const{Component:c}=o;let t;return s[0]!==c||s[1]!==e?(t=i.jsx(c,{className:e}),s[0]=c,s[1]=e,s[2]=t):t=s[2],t}if(o.kind==="url"){const c=o.src;let t;s[3]!==e?(t=f(e,"rounded-sm object-cover"),s[3]=e,s[4]=t):t=s[4];let r;return s[5]!==o.src||s[6]!==t?(r=i.jsx("img",{src:c,alt:"",className:t}),s[5]=o.src,s[6]=t,s[7]=r):r=s[7],r}let n;return s[8]!==e?(n=i.jsx(p,{className:e}),s[8]=e,s[9]=n):n=s[9],n}export{j as T};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c,l as i,j as r}from"./index-
|
|
1
|
+
import{c,l as i,j as r}from"./index-DBoHOKjw.js";function d(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("w-full caption-bottom text-sm min-w-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("div",{"data-slot":"table-container",className:"w-full min-w-0 bg-card rounded-xl card-shadow overflow-hidden",children:r.jsx("table",{"data-slot":"table",className:s,...l})}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function f(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr]:border-b sticky top-0 z-10 bg-card",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("thead",{"data-slot":"table-header",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function b(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr:last-child]:border-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("tbody",{"data-slot":"table-body",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function p(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("data-[state=selected]:bg-muted border-b transition-colors",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("tr",{"data-slot":"table-row",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function m(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("th",{"data-slot":"table-head",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function x(o){const e=c.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("p-2 align-middle whitespace-nowrap text-sm [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=r.jsx("td",{"data-slot":"table-cell",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}export{m as T,f as a,p as b,x as c,b as d,d as e};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as v,j as d,eu as k,bo as p,bp as T,ew as F,dd as M,bq as P,br as S,bn as V,ev as y,bF as D,c as x,l as g}from"./index-
|
|
1
|
+
import{r as v,j as d,eu as k,bo as p,bp as T,ew as F,dd as M,bq as P,br as S,bn as V,ev as y,bF as D,c as x,l as g}from"./index-DBoHOKjw.js";var m="Tabs",[G]=D(m,[y]),w=y(),[L,h]=G(m),C=v.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,onValueChange:r,defaultValue:s,orientation:o="horizontal",dir:i,activationMode:l="automatic",...f}=n,u=P(i),[c,b]=S({prop:t,onChange:r,defaultProp:s??"",caller:m});return d.jsx(L,{scope:a,baseId:V(),value:c,onValueChange:b,orientation:o,dir:u,activationMode:l,children:d.jsx(p.div,{dir:u,"data-orientation":o,...f,ref:e})})});C.displayName=m;var N="TabsList",j=v.forwardRef((n,e)=>{const{__scopeTabs:a,loop:t=!0,...r}=n,s=h(N,a),o=w(a);return d.jsx(F,{asChild:!0,...o,orientation:s.orientation,dir:s.dir,loop:t,children:d.jsx(p.div,{role:"tablist","aria-orientation":s.orientation,...r,ref:e})})});j.displayName=N;var I="TabsTrigger",_=v.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,disabled:r=!1,...s}=n,o=h(I,a),i=w(a),l=E(o.baseId,t),f=$(o.baseId,t),u=t===o.value;return d.jsx(k,{asChild:!0,...i,focusable:!r,active:u,children:d.jsx(p.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":f,"data-state":u?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:l,...s,ref:e,onMouseDown:T(n.onMouseDown,c=>{!r&&c.button===0&&c.ctrlKey===!1?o.onValueChange(t):c.preventDefault()}),onKeyDown:T(n.onKeyDown,c=>{[" ","Enter"].includes(c.key)&&o.onValueChange(t)}),onFocus:T(n.onFocus,()=>{const c=o.activationMode!=="manual";!u&&!r&&c&&o.onValueChange(t)})})})});_.displayName=I;var R="TabsContent",A=v.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,forceMount:r,children:s,...o}=n,i=h(R,a),l=E(i.baseId,t),f=$(i.baseId,t),u=t===i.value,c=v.useRef(u);return v.useEffect(()=>{const b=requestAnimationFrame(()=>c.current=!1);return()=>cancelAnimationFrame(b)},[]),d.jsx(M,{present:r||u,children:({present:b})=>d.jsx(p.div,{"data-state":u?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":l,hidden:!b,id:f,tabIndex:0,...o,ref:e,style:{...n.style,animationDuration:c.current?"0s":void 0},children:b&&s})})});A.displayName=R;function E(n,e){return`${n}-trigger-${e}`}function $(n,e){return`${n}-content-${e}`}var z=C,K=j,q=_,B=A;function O(n){const e=x.c(10);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r===void 0?"pill":r;let o;e[4]!==a?(o=g("flex flex-col gap-2",a),e[4]=a,e[5]=o):o=e[5];let i;return e[6]!==t||e[7]!==o||e[8]!==s?(i=d.jsx(z,{"data-slot":"tabs","data-variant":s,className:o,...t}),e[6]=t,e[7]=o,e[8]=s,e[9]=i):i=e[9],i}function J(n){const e=x.c(11);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r||"pill",o=s==="underline"?"flex h-[52px] items-center border-b border-border":s==="canvas"?"flex h-10 items-center bg-background relative":"bg-muted text-muted-foreground inline-flex h-10 w-fit items-center justify-center rounded-xl p-[3px]";let i;e[4]!==a||e[5]!==o?(i=g(o,a),e[4]=a,e[5]=o,e[6]=i):i=e[6];let l;return e[7]!==s||e[8]!==t||e[9]!==i?(l=d.jsx(K,{"data-slot":"tabs-list","data-variant":s,className:i,...t}),e[7]=s,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function Q(n){const e=x.c(11);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r||"pill",o=s==="underline"?"flex items-center h-full px-3 relative text-sm whitespace-nowrap border-b-2 mb-[-1px] transition-all text-muted-foreground border-transparent hover:text-foreground data-[state=active]:text-foreground data-[state=active]:border-primary disabled:pointer-events-none disabled:opacity-50":s==="canvas"?"flex items-center h-full px-3 gap-2.5 text-sm whitespace-nowrap transition-all border-r border-b border-border [&>*]:opacity-50 data-[state=active]:[&>*]:opacity-100 data-[state=active]:border-b-0 last:border-r-0 disabled:pointer-events-none max-w-2xs":"data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-lg border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[2px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4";let i;e[4]!==a||e[5]!==o?(i=g(o,a),e[4]=a,e[5]=o,e[6]=i):i=e[6];let l;return e[7]!==s||e[8]!==t||e[9]!==i?(l=d.jsx(q,{"data-slot":"tabs-trigger","data-variant":s,className:i,...t}),e[7]=s,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function U(n){const e=x.c(8);let a,t;e[0]!==n?({className:a,...t}=n,e[0]=n,e[1]=a,e[2]=t):(a=e[1],t=e[2]);let r;e[3]!==a?(r=g("flex-1 outline-none h-full",a),e[3]=a,e[4]=r):r=e[4];let s;return e[5]!==t||e[6]!==r?(s=d.jsx(B,{"data-slot":"tabs-content",className:r,...t}),e[5]=t,e[6]=r,e[7]=s):s=e[7],s}export{Q as T,J as a,O as b,U as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as i}from"./schema-
|
|
1
|
+
import{o as i}from"./schema-CE2zpNxo.js";const A="super-agent",o=["#9ca3af","#ef4444","#f97316","#f59e0b","#22c55e","#3b82f6","#a855f7","#ec4899"],c=o[0];function l(e){return o[e%o.length]??c}function p(e){return e.createdBy==="system"}const R="chore",_=["reviewer"],d={reviewer:"Reviewer"},E=["QA Agent","Code Reviewer"];function w(e){return e?.reviewer_enabled===void 0&&e?.qa_agent_enabled===!1&&e?.code_reviewer_enabled===!1?!1:i(e,"reviewer_enabled")}const D=["triage","todo","in_progress","in_review","approved","merged","post_deploy_validation","done","archived"],S={queue:"todo"},L=["approved","merged","post_deploy_validation"];function u(e,t){return e?[d[t],...E].some(r=>e.startsWith(`${r}:`)):!1}function g(e){return e.reviewerEnabled||!e.hasPullRequest?!1:!e.threadTitles.some(t=>_.some(r=>u(t,r)))}function T(e,t){if(t)return new Date(t).getTime();let r=0;for(const n of e)n.action==="status_changed"&&n.data?.to==="in_review"&&(r=Math.max(r,new Date(n.occurredAt).getTime()));return r}function f(e,t){const r=T(e,t.cycleStartedAt),n=new Map;for(const a of e){if(a.action!=="review_approved"&&a.action!=="review_changes_requested"||new Date(a.occurredAt).getTime()<r)continue;const s=a.data??{};if(s.reviewer==="reviewer")if(a.action==="review_approved"){if(t?.verifiedOnly&&s.verified!==!0)continue;n.set("reviewer","approved")}else n.set("reviewer","changes_requested")}return n}function m(e,t,r){if(t.length===0)return!1;const n=f(e,r);return t.every(a=>n.get(a)==="approved")}const N="task-board.item.updated",b="task-board.rules.updated",h="task-board.sprints.updated",O="task-board.item.deleted",I="task-board.item.prs.updated",C=4e3;export{D as C,R as D,S as L,_ as R,A as S,N as T,O as a,I as b,b as c,h as d,c as e,L as f,m as g,u as h,p as i,g as j,C as k,l as n,w as r};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as D,e as R}from"./repository-binding-
|
|
1
|
+
import{p as D,e as R}from"./repository-binding-DXQMz8tF.js";import"./core.esm-CGkAy4XA.js";import{S}from"./task-board-Crg-IxL1.js";const b=4,I="TASK";function w(e){return e.replace(/[^a-zA-Z]/g,"").toUpperCase().slice(0,b)||I}function L(e,t){return t==null?null:`${w(e)}-${String(t).padStart(2,"0")}`}const M=/^(?:[a-z]{1,8}-)?0*(\d+)$/i;function _(e){const t=M.exec(e.trim())?.[1];return t===void 0?null:Number(t)}const y="__no_repo__";function a(e){return(e??"").trim().toLowerCase()}function P(e,t){const r=(e.created_at??"").localeCompare(t.created_at??"");return r!==0?r:e.id.localeCompare(t.id)}function C(e){return e.projects.length===1?e.projects[0]?.title??e.repo??e.id:e.repo??e.id}function z(e,t=[]){const r=new Map,n=new Map,o=[],i=s=>{const u=a(s),c=r.get(u);if(c)return c;const l={id:u,kind:"repo",repo:s.trim(),title:s.trim(),projects:[]};return r.set(u,l),l};for(const s of e){const u=D(s);if(u){const l=i(u);l.projects.push(s),n.set(s.id,l);continue}const c={id:s.id,kind:"project",repo:null,title:s.title,projects:[s]};o.push(c),n.set(s.id,c)}for(const s of t){const u=(s??"").trim();u&&!n.has(u)&&i(u)}for(const s of r.values())s.projects.sort(P),s.title=C(s);const p=[...r.values()].filter(s=>s.projects.length>0),E=[...r.values()].filter(s=>s.projects.length===0),f=(s,u)=>s.title.localeCompare(u.title),g=[...[...p,...o].sort(f),...E.sort(f)];return{entries:g,byId:new Map(g.map(s=>[s.id,s])),byRepo:r,byProject:n}}function d(e,t){for(const o of e.threads??[]){const i=o.virtualMcpId?t.byProject.get(o.virtualMcpId):void 0;if(i)return i}const r=t.byProject.get((e.repo??"").trim());if(r)return r;const n=a(e.repo);return(n?t.byRepo.get(n):void 0)??null}function j(e,t){const r=d(e,t);if(!r)return[];if(r.projects.length<=1)return r.projects;for(const o of e.threads??[]){const i=o.virtualMcpId?r.projects.find(p=>p.id===o.virtualMcpId):void 0;if(i)return[i]}const n=r.projects.find(o=>o.id===e.repo?.trim());return n?[n]:r.projects}function X(e,t,r){return e.filter(n=>j(n,t).some(o=>o.id===r))}function q(e,t){const r=j(e,t);return r.length===1?r[0]??null:null}function m(e,t){return t.byId.get(e)??t.byRepo.get(a(e))??t.byProject.get(e)}function h(e,t,r){if(t===null)return!0;if(t===y)return d(e,r)===null;const n=m(t,r);return n?n.repo&&a(e.repo)===a(n.repo)?!0:d(e,r)===n:t.includes("/")?a(e.repo)===a(t):!0}function H(e,t){return e===null?!1:e===y?!0:!!m(e,t)||e.includes("/")}function J(e,t,r){return t===null?null:h(e,t,r)?t:null}function W(e){return e.entries.filter(t=>t.repo!==null&&(t.projects.length===0||t.projects.some(r=>R(r).status!=="detached")))}const A="__unassigned__",k="__backlog__",Z={assignee:null,priority:null,due:null,tags:[],project:null,sprint:null,search:""},N=864e5;function v(e,t){const r=new Date(e),n=new Date(t);return r.getFullYear()===n.getFullYear()&&r.getMonth()===n.getMonth()&&r.getDate()===n.getDate()}function F(e,t){const r=e.trim();return r===""?!1:t!=null&&_(r)===t}function B(e,t){return e.assigneeId===t?!0:e.assigneeId===S&&e.assignedBy===t}function Q(e,t,r){const n=t.search.trim().toLowerCase();if(n!==""&&!`${e.title} ${e.description??""}`.toLowerCase().includes(n)&&!F(n,e.keySeq))return!1;if(t.assignee!==null){if(t.assignee===A){if(e.assigneeId!==null)return!1}else if(!B(e,t.assignee))return!1}if(t.priority!==null&&e.priority!==t.priority)return!1;if(t.due!==null)if(t.due==="none"){if(e.dueDate)return!1}else{if(!e.dueDate)return!1;const o=new Date(e.dueDate).getTime(),i=Date.now();if(t.due==="overdue"&&o>=i||t.due==="today"&&!v(o,i)||t.due==="week"&&(o<i||o>i+7*N))return!1}if(t.tags.length>0){const o=e.tags.map(i=>i.id);if(!t.tags.some(i=>o.includes(i)))return!1}if(!h(e,t.project,r))return!1;if(t.sprint!==null){const o=t.sprint===k?null:t.sprint;if((e.sprintId??null)!==o)return!1}return!0}function V(e,t){return e===null||e===k||t.some(r=>r.id===e)?e:null}const T={overdue:"taskBoard.taskFilters.dueDateFilterOverdue",today:"taskBoard.taskFilters.dueDateFilterDueToday",week:"taskBoard.taskFilters.dueDateFilterDueThisWeek",none:"taskBoard.taskFilters.dueDateFilterNoDueDate"},x=Object.keys(T);function ee(e){return T[e]}function K(e,t){return L(e,t.keySeq)??t.id}function te(e,t,r){const n=encodeURIComponent(e),o=encodeURIComponent(K(e,t));return r?`/${n}/projects/${encodeURIComponent(r)}/tasks/${o}`:`/${n}/tasks/${o}`}function re(e,t){const r=t?.trim();if(r)return e.find(n=>F(r,n.keySeq))??e.find(n=>n.id===r)}const $=/^board_[\w-]+$/,O=64;function ne(e){const t=e.trim();return t.length>O?null:_(t)!==null||$.test(t)?t:null}export{k as B,x as D,Z as E,y as N,A as U,K as a,z as b,q as c,X as d,d as e,m as f,te as g,H as h,ee as i,Q as j,re as k,J as l,ne as m,j as p,V as r,W as s,L as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as n}from"./AlertCircle-
|
|
1
|
+
import{i as n}from"./AlertCircle-CL-Ba0_Q.js";import{i as r}from"./CheckCircle-BnDcHqrT.js";import{d2 as i}from"./index-DBoHOKjw.js";import{a$ as s,b0 as l,y as m}from"./agent-icon-CeBKZuCK.js";const a={requires_action:{labelKey:"common.taskStatus.requiresAction",icon:n,iconClassName:"text-warning",labelColor:"text-warning"},failed:{labelKey:"common.taskStatus.failed",icon:m,iconClassName:"text-destructive",labelColor:"text-destructive"},expired:{labelKey:"common.taskStatus.expired",icon:l,iconClassName:"text-warning",labelColor:"text-warning"},in_progress:{labelKey:"common.taskStatus.inProgress",icon:s,iconClassName:"text-primary",labelColor:"text-primary"},completed:{labelKey:"common.taskStatus.completed",icon:r,iconClassName:"text-muted-foreground/50",labelColor:"text-muted-foreground"}},o={labelKey:"common.taskStatus.unknown",icon:i,iconClassName:"text-muted-foreground",labelColor:"text-muted-foreground"};function c(e){return e in a}function C(e){if(e===null)return o;const t=e??"completed";return c(t)?a[t]:o}export{a as S,C as g};
|
package/dist/client/assets/{taskboard-analytics-B9W5oi66.js → taskboard-analytics-DwSPghto.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as M,b as q,f as J,r as P,j as r,B as W,L as X,h as Z}from"./index-
|
|
1
|
+
import{c as M,b as q,f as J,r as P,j as r,B as W,L as X,h as Z}from"./index-DBoHOKjw.js";import{C as tt}from"./index-DmVG3v82.js";import{S as et}from"./analytics-sections-DLc9rhby.js";import{u as rt,A as G,a as st}from"./use-task-board-analytics-C1nndHn2.js";import{C as at}from"./combobox-CMrlh6Sl.js";import{c as it,b as ot,a as lt,d as mt,S as nt}from"./select-XfsKg17-.js";import{T as pt,a as ct,c as ft,b as dt}from"./tabs-e-pd68cf.js";import"./use-mobile-BIaUANZL.js";import"./thread-button-A4ZMbsSJ.js";import"./agent-icon-CeBKZuCK.js";import"./AlertCircle-CL-Ba0_Q.js";import"./Tool01-BR_2GJVQ.js";import"./ArrowUp-CvjiUaVx.js";import"./ArrowLeft-ZcdIkYz0.js";import"./LinkBroken01-Bu7OL2cL.js";import"./ShoppingBag01-d2G89AZS.js";import"./ZoomOut-Bz0zUi4W.js";import"./Building02-FvnfPLK2.js";import"./CheckCircle-BnDcHqrT.js";import"./Check-m_9M3llp.js";import"./ChevronUp-ZFMh5ExZ.js";import"./UserSquare-CkpWY_Ql.js";import"./Copy01-C06SX2Rt.js";import"./CreditCard01-CjlTPFuS.js";import"./DotsVertical-8IP4yxP4.js";import"./Image01-D9Kt40Xt.js";import"./Globe04-Dg-78cI8.js";import"./XClose-JbZeJDvi.js";import"./Key01-CY_jgU1B.js";import"./Link01-CUs37Sc0.js";import"./LinkExternal01-K_EoOXaI.js";import"./Monitor01-BK0yoFL7.js";import"./Sun-rNt0Rjt9.js";import"./Plus-D36CJbju.js";import"./SearchMd-CWTPI1P9.js";import"./Trash01-DU_Ipkqh.js";import"./Upload01-BiQc81e2.js";import"./User01-YC00nqD8.js";import"./Users01-BSwysKui.js";import"./X-DmvkVyms.js";import"./use-chat-layout-state-Bixj6ACc.js";import"./use-file-configs-BGlASHUP.js";import"./use-organization-settings-Dyzll_Gy.js";import"./schema-CE2zpNxo.js";import"./task-board-Crg-IxL1.js";import"./site-slug-DebpOoQq.js";import"./thread-route-6l9iNUiH.js";import"./use-panel-navigate-CrpC4hC1.js";import"./use-project-scope-DlEsf0bK.js";import"./repository-binding-DXQMz8tF.js";import"./use-mcp-client-Dr2ieErM.js";import"./auth-DHJlUSSu.js";import"./thread-intent-DG1RmuFS.js";import"./backoff-8mStPHYB.js";import"./slugify-CEUa2lfQ.js";import"./sheet-CZDkfSKo.js";import"./tooltip-B8csev2n.js";import"./index-BGXkNlsg.js";import"./toolbar-icon-button-ClRorWaN.js";import"./shell-layout-CKWKtHmx.js";import"./avatar-CmavCmK6.js";import"./download-app-dialog-C1LaJ0G_.js";import"./dialog-DbnuA-yG.js";import"./use-clock-tick-DIsIbH9y.js";import"./command-DxTFTkQb.js";import"./index-BEPEGJ7j.js";import"./integration-icon-CP02T0S9.js";import"./project-icon-YmedO-IS.js";import"./new-project-dialog--kJEKHlL.js";import"./input-Mb2meh2H.js";import"./label-Bls3Ztde.js";import"./repository-import-picker-DPZPijA9.js";import"./use-navigate-to-agent-CPq0QEyI.js";import"./repository-picker-BWrox8LY.js";import"./useInfiniteQuery-C7HvpSpg.js";import"./infiniteQueryObserver-qgWv5yw5.js";import"./collection-search-CAzSXhAd.js";import"./use-debounced-value-Db-8HwQf.js";import"./use-is-desktop-app-BNujXJc_.js";import"./required-auth-layout-BDbL7Gbw.js";import"./autosend-CswL-6qr.js";import"./use-org-sso-BDrus71J.js";import"./resizable-DS7CYkFv.js";import"./icon-button-DL2Gkfyl.js";import"./chart-BsM6mnjI.js";import"./index-BVptlPQI.js";import"./CartesianChart-BX61N6Vt.js";import"./table-DrvAOyO1.js";import"./Line-dSLV618t.js";import"./ErrorBarContext-DdXeAmkz.js";import"./Sector-CBva21QI.js";import"./XAxis-DvKYyO7z.js";import"./popover-DukrbQ3U.js";const ut=[7,30,90],xt={TASK_BOARD_DELIVERY:"taskBoard.analytics.tabDelivery",TASK_BOARD_STUCK:"taskBoard.analytics.tabStuck",TASK_BOARD_COST:"taskBoard.analytics.tabCost",TASK_BOARD_QUALITY:"taskBoard.analytics.tabQuality",TASK_BOARD_ERRORS:"taskBoard.analytics.tabErrors",TASK_BOARD_TENANTS:"taskBoard.analytics.tabTenants"};function gt(t){const e=M.c(18),{tool:a,org:f,from:d,to:K}=t,o=q();let x;e[0]!==d||e[1]!==f||e[2]!==K?(x={org:f,from:d,to:K},e[0]=d,e[1]=f,e[2]=K,e[3]=x):x=e[3];const{data:i,isLoading:Q,error:m}=st(a,x);if(Q){let l;return e[4]===Symbol.for("react.memo_cache_sentinel")?(l=r.jsx("div",{className:"flex justify-center py-12",children:r.jsx(Z,{className:"size-5 text-muted-foreground"})}),e[4]=l):l=e[4],l}if(m){let l;return e[5]!==m.message?(l=r.jsx("div",{className:"rounded-lg border border-border p-8 text-center text-sm text-destructive",children:m.message}),e[5]=m.message,e[6]=l):l=e[6],l}if(!i)return null;let n;e[7]!==i.sections?(n=i.sections.map(St),e[7]=i.sections,e[8]=n):n=e[8];let c;e[9]!==i.range.from||e[10]!==i.range.to||e[11]!==o?(c=o("taskBoard.analytics.rangeFootnote",{from:i.range.from.slice(0,10),to:i.range.to.slice(0,10)}),e[9]=i.range.from,e[10]=i.range.to,e[11]=o,e[12]=c):c=e[12];let p;e[13]!==c?(p=r.jsx("p",{className:"text-xs text-muted-foreground",children:c}),e[13]=c,e[14]=p):p=e[14];let u;return e[15]!==n||e[16]!==p?(u=r.jsxs("div",{className:"flex flex-col gap-8 py-6",children:[n,p]}),e[15]=n,e[16]=p,e[17]=u):u=e[17],u}function St(t){return r.jsx(et,{section:t,threadLinks:!0},t.title)}function ir(){const t=M.c(75),e=q(),a=J({strict:!1}).org??"",f=rt(),[d,K]=P.useState(30),[o,x]=P.useState(a),[i,Q]=P.useState("TASK_BOARD_DELIVERY"),[m]=P.useState(yt);let n;t[0]!==m?(n=new Date(m).toISOString(),t[0]=m,t[1]=n):n=t[1];const c=n;let p;t[2]!==d||t[3]!==m?(p=new Date(m-d*864e5).toISOString(),t[2]=d,t[3]=m,t[4]=p):p=t[4];const u=p,l=f.data?.isTaskBoardAdmin??!1;let g;t[5]!==e?(g=e("taskBoard.analytics.orgCurrent"),t[5]=e,t[6]=g):g=t[6];let S;t[7]!==a||t[8]!==g?(S={value:a,label:g},t[7]=a,t[8]=g,t[9]=S):S=t[9];let h;t[10]!==e?(h=e("taskBoard.analytics.orgAll"),t[10]=e,t[11]=h):h=t[11];let y;t[12]!==h?(y={value:"all",label:h},t[12]=h,t[13]=y):y=t[13];let I;if(t[14]!==f.data?.orgs||t[15]!==a||t[16]!==S||t[17]!==y){let s;t[19]!==a?(s=H=>H.slug!==a,t[19]=a,t[20]=s):s=t[20],I=[S,y,...(f.data?.orgs??[]).filter(s).map(ht)],t[14]=f.data?.orgs,t[15]=a,t[16]=S,t[17]=y,t[18]=I}else I=t[18];const U=I;let b;t[21]!==e?(b=e("taskBoard.analytics.title"),t[21]=e,t[22]=b):b=t[22];let B;t[23]!==b?(B=r.jsx("h1",{className:"text-xl font-medium text-foreground",children:b}),t[23]=b,t[24]=B):B=t[24];let A;t[25]!==l||t[26]!==o||t[27]!==U||t[28]!==e?(A=l&&r.jsx(at,{options:U,value:o,onChange:x,width:"w-[240px]",searchPlaceholder:e("taskBoard.analytics.orgSearch"),emptyMessage:e("taskBoard.analytics.orgEmpty")}),t[25]=l,t[26]=o,t[27]=U,t[28]=e,t[29]=A):A=t[29];const F=String(d);let V;t[30]===Symbol.for("react.memo_cache_sentinel")?(V=s=>K(Number(s)),t[30]=V):V=t[30];let Y;t[31]===Symbol.for("react.memo_cache_sentinel")?(Y=r.jsx(ot,{className:"w-[140px]",size:"sm",children:r.jsx(lt,{})}),t[31]=Y):Y=t[31];let T;t[32]!==e?(T=ut.map(s=>r.jsx(it,{value:String(s),children:e("taskBoard.analytics.rangeDays",{days:String(s)})},s)),t[32]=e,t[33]=T):T=t[33];let j;t[34]!==T?(j=r.jsx(mt,{children:T}),t[34]=T,t[35]=j):j=t[35];let k;t[36]!==F||t[37]!==j?(k=r.jsxs(nt,{value:F,onValueChange:V,children:[Y,j]}),t[36]=F,t[37]=j,t[38]=k):k=t[38];let _;t[39]!==a?(_={org:a},t[39]=a,t[40]=_):_=t[40];let v;t[41]!==e?(v=e("taskBoard.analytics.backToBoard"),t[41]=e,t[42]=v):v=t[42];let N;t[43]!==_||t[44]!==v?(N=r.jsx(W,{size:"sm",variant:"outline",asChild:!0,children:r.jsx(X,{to:"/$org/tasks/{-$taskKey}",params:_,children:v})}),t[43]=_,t[44]=v,t[45]=N):N=t[45];let O;t[46]!==k||t[47]!==N||t[48]!==A?(O=r.jsxs("div",{className:"ml-auto flex items-center gap-2",children:[A,k,N]}),t[46]=k,t[47]=N,t[48]=A,t[49]=O):O=t[49];let C;t[50]!==O||t[51]!==B?(C=r.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[B,O]}),t[50]=O,t[51]=B,t[52]=C):C=t[52];let D;t[53]!==o||t[54]!==a||t[55]!==e?(D=o!==a&&r.jsx("div",{className:"rounded-lg bg-warning/10 px-3 py-2 text-sm text-warning",children:o==="all"?e("taskBoard.analytics.bannerAll"):e("taskBoard.analytics.bannerOrg",{org:o})}),t[53]=o,t[54]=a,t[55]=e,t[56]=D):D=t[56];let $;t[57]===Symbol.for("react.memo_cache_sentinel")?($=s=>Q(s),t[57]=$):$=t[57];let R;t[58]!==e?(R=G.map(s=>r.jsx(pt,{value:s,children:e(xt[s])},s)),t[58]=e,t[59]=R):R=t[59];let E;t[60]!==R?(E=r.jsx(ct,{children:R}),t[60]=R,t[61]=E):E=t[61];let w;t[62]!==u||t[63]!==o||t[64]!==i||t[65]!==c?(w=G.map(s=>r.jsx(ft,{value:s,children:i===s&&r.jsx(gt,{tool:s,org:o,from:u,to:c})},s)),t[62]=u,t[63]=o,t[64]=i,t[65]=c,t[66]=w):w=t[66];let L;t[67]!==E||t[68]!==w||t[69]!==i?(L=r.jsxs(dt,{value:i,onValueChange:$,children:[E,w]}),t[67]=E,t[68]=w,t[69]=i,t[70]=L):L=t[70];let z;return t[71]!==C||t[72]!==D||t[73]!==L?(z=r.jsx(tt.Content,{children:r.jsx("div",{className:"flex h-full min-h-0 flex-col overflow-auto",children:r.jsxs("div",{className:"mx-auto flex w-full max-w-[1680px] flex-col gap-4 px-4 py-6 sm:px-8 sm:py-8",children:[C,D,L]})})}),t[71]=C,t[72]=D,t[73]=L,t[74]=z):z=t[74],z}function ht(t){return{value:t.slug,label:`${t.slug} · ${t.name}`}}function yt(){return Date.now()}export{ir as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as w,j as n,X as Y,a2 as Z,K as ee,m as ue,o as je,e as pe,b as B,r as U,aS as he,B as q,t as J,ef as fe,eg as X,ee as ye,n as me,fp as Te,s as Ne,l as Ae,L as Re}from"./index-
|
|
1
|
+
import{c as w,j as n,X as Y,a2 as Z,K as ee,m as ue,o as je,e as pe,b as B,r as U,aS as he,B as q,t as J,ef as fe,eg as X,ee as ye,n as me,fp as Te,s as Ne,l as Ae,L as Re}from"./index-DBoHOKjw.js";import{C as xe}from"./checkbox-DyYQ00vF.js";import{I as de}from"./input-Mb2meh2H.js";import{T as ke}from"./textarea-ChUQ9lFy.js";import{i as ve}from"./Check-m_9M3llp.js";import{i as Ie}from"./Tool01-BR_2GJVQ.js";import{i as $e}from"./Sun-rNt0Rjt9.js";import{s as Ee}from"./Plus-D36CJbju.js";import{s as Le}from"./Trash01-DU_Ipkqh.js";import{C as Ke}from"./combobox-CMrlh6Sl.js";import{M as De}from"./multi-select-BhBC37m9.js";import{d as Fe,c as ze,b as Oe,a as Ue,S as Be}from"./select-XfsKg17-.js";import{S as Me}from"./switch-CRBzAnDt.js";import{a as Je,T as qe}from"./input-Djn_KHtM.js";import{p as He}from"./skill-md-ChfVs4uF.js";import{A as Ve,a as We,b as Ge,c as Qe,g as Ye,d as Ze,e as Xe,f as et}from"./alert-dialog-CPYvhc00.js";import{R as tt,A as st}from"./review-settings-CQsh0tPe.js";import{k as it}from"./task-board-Crg-IxL1.js";import{b as lt,c as nt,S as rt}from"./column-rules-BsMnsicg.js";import{R as at}from"./require-capability-HPXJ2_ev.js";import"./command-DxTFTkQb.js";import"./index-BEPEGJ7j.js";import"./dialog-DbnuA-yG.js";import"./X-DmvkVyms.js";import"./SearchMd-CWTPI1P9.js";import"./popover-DukrbQ3U.js";import"./badge-CZ2-73B_.js";import"./ChevronUp-ZFMh5ExZ.js";import"./index-BGXkNlsg.js";import"./suggestion-DfQ8OcsT.js";import"./index-Cen25M9q.js";import"./gateway-client-BBi5nsR6.js";import"./form-KuqtFClp.js";import"./label-Bls3Ztde.js";import"./utils-CVEq3hMx.js";import"./org-file-open-context-DB3pye_n.js";import"./use-mobile-BIaUANZL.js";import"./use-panel-navigate-CrpC4hC1.js";import"./thread-route-6l9iNUiH.js";import"./use-project-scope-DlEsf0bK.js";import"./repository-binding-DXQMz8tF.js";import"./use-mcp-client-Dr2ieErM.js";import"./auth-DHJlUSSu.js";import"./tooltip-B8csev2n.js";import"./agent-icon-CeBKZuCK.js";import"./AlertCircle-CL-Ba0_Q.js";import"./ArrowUp-CvjiUaVx.js";import"./ArrowLeft-ZcdIkYz0.js";import"./LinkBroken01-Bu7OL2cL.js";import"./ShoppingBag01-d2G89AZS.js";import"./ZoomOut-Bz0zUi4W.js";import"./Building02-FvnfPLK2.js";import"./CheckCircle-BnDcHqrT.js";import"./UserSquare-CkpWY_Ql.js";import"./Copy01-C06SX2Rt.js";import"./CreditCard01-CjlTPFuS.js";import"./DotsVertical-8IP4yxP4.js";import"./Image01-D9Kt40Xt.js";import"./Globe04-Dg-78cI8.js";import"./XClose-JbZeJDvi.js";import"./Key01-CY_jgU1B.js";import"./Link01-CUs37Sc0.js";import"./LinkExternal01-K_EoOXaI.js";import"./Monitor01-BK0yoFL7.js";import"./Upload01-BiQc81e2.js";import"./User01-YC00nqD8.js";import"./Users01-BSwysKui.js";import"./chat-context-DN6LIhMA.js";import"./autosend-CswL-6qr.js";import"./thread-intent-DG1RmuFS.js";import"./backoff-8mStPHYB.js";import"./slugify-CEUa2lfQ.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-decopilot-events-CDXR1Ci3.js";import"./use-ai-providers-D26ARZHw.js";import"./use-chat-navigation-B6dWmK-d.js";import"./location-zK0I9Ia6.js";import"./use-organization-settings-Dyzll_Gy.js";import"./schema-CE2zpNxo.js";import"./decopilot-DSOYunrX.js";import"./ai-providers-logos-DD3qZ33J.js";import"./avatar-CmavCmK6.js";import"./download-app-dialog-C1LaJ0G_.js";import"./use-mcp-prompts-BGGFNZKf.js";import"./use-org-fs-D0vtotA_.js";import"./useInfiniteQuery-C7HvpSpg.js";import"./infiniteQueryObserver-qgWv5yw5.js";import"./use-new-blocks-editor-BbMlFHjB.js";import"./use-connection-BC_H18ml.js";import"./icon-button-DL2Gkfyl.js";import"./sheet-CZDkfSKo.js";import"./access-gate-CzNiWJFS.js";import"./capability-load-error-I_NPeWs3.js";const ot=/^([A-Za-z][A-Za-z0-9_]*-\d+)$/;function ct(t){const e=t.trim();if(e==="")return null;const s=/(?:\/(?:browse|issues)\/|[?&]selectedIssue=)([A-Za-z][A-Za-z0-9_]*-\d+)/.exec(e)?.[1]??e.split(/[?#]/)[0]??"",i=ot.exec(s);return i?.[1]?i[1].toUpperCase():null}function _e(t){const e=[],r=[],s=new Set;for(const i of t.split(/[\n,;]+/)){const l=i.trim();if(l==="")continue;const a=ct(l);if(!a){r.push(l);continue}s.has(a)||(s.add(a),e.push(a))}return{keys:e,invalid:r}}function mt(t){return{type:"doc",content:t.split(`
|
|
2
2
|
`).map(e=>({type:"paragraph",...e===""?{}:{content:[{type:"text",text:e}]}}))}}const ft=new Set(["paragraph","heading","codeBlock","listItem"]);function dt(t){return(t.files??[]).filter(r=>r.content?.trim()).map(r=>r.relPath==="SKILL.md"?He(r.content).body.trim():`${r.relPath}:
|
|
3
3
|
${r.content.trim()}`).join(`
|
|
4
4
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as l,X as n,j as r,K as f}from"./index-DBoHOKjw.js";import{C as d}from"./index-DmVG3v82.js";import{T as u}from"./index-de9CNyc8.js";import{F as x}from"./feature-gate-C-HGVngx.js";import{m as h,P as j}from"./mock-board-DCIIgmCI.js";import"./use-mobile-BIaUANZL.js";import"./thread-button-A4ZMbsSJ.js";import"./agent-icon-CeBKZuCK.js";import"./AlertCircle-CL-Ba0_Q.js";import"./Tool01-BR_2GJVQ.js";import"./ArrowUp-CvjiUaVx.js";import"./ArrowLeft-ZcdIkYz0.js";import"./LinkBroken01-Bu7OL2cL.js";import"./ShoppingBag01-d2G89AZS.js";import"./ZoomOut-Bz0zUi4W.js";import"./Building02-FvnfPLK2.js";import"./CheckCircle-BnDcHqrT.js";import"./Check-m_9M3llp.js";import"./ChevronUp-ZFMh5ExZ.js";import"./UserSquare-CkpWY_Ql.js";import"./Copy01-C06SX2Rt.js";import"./CreditCard01-CjlTPFuS.js";import"./DotsVertical-8IP4yxP4.js";import"./Image01-D9Kt40Xt.js";import"./Globe04-Dg-78cI8.js";import"./XClose-JbZeJDvi.js";import"./Key01-CY_jgU1B.js";import"./Link01-CUs37Sc0.js";import"./LinkExternal01-K_EoOXaI.js";import"./Monitor01-BK0yoFL7.js";import"./Sun-rNt0Rjt9.js";import"./Plus-D36CJbju.js";import"./SearchMd-CWTPI1P9.js";import"./Trash01-DU_Ipkqh.js";import"./Upload01-BiQc81e2.js";import"./User01-YC00nqD8.js";import"./Users01-BSwysKui.js";import"./X-DmvkVyms.js";import"./use-chat-layout-state-Bixj6ACc.js";import"./use-file-configs-BGlASHUP.js";import"./use-organization-settings-Dyzll_Gy.js";import"./schema-CE2zpNxo.js";import"./task-board-Crg-IxL1.js";import"./site-slug-DebpOoQq.js";import"./thread-route-6l9iNUiH.js";import"./use-panel-navigate-CrpC4hC1.js";import"./use-project-scope-DlEsf0bK.js";import"./repository-binding-DXQMz8tF.js";import"./use-mcp-client-Dr2ieErM.js";import"./auth-DHJlUSSu.js";import"./thread-intent-DG1RmuFS.js";import"./backoff-8mStPHYB.js";import"./slugify-CEUa2lfQ.js";import"./sheet-CZDkfSKo.js";import"./tooltip-B8csev2n.js";import"./index-BGXkNlsg.js";import"./toolbar-icon-button-ClRorWaN.js";import"./shell-layout-CKWKtHmx.js";import"./avatar-CmavCmK6.js";import"./download-app-dialog-C1LaJ0G_.js";import"./dialog-DbnuA-yG.js";import"./use-clock-tick-DIsIbH9y.js";import"./command-DxTFTkQb.js";import"./index-BEPEGJ7j.js";import"./integration-icon-CP02T0S9.js";import"./project-icon-YmedO-IS.js";import"./new-project-dialog--kJEKHlL.js";import"./input-Mb2meh2H.js";import"./label-Bls3Ztde.js";import"./repository-import-picker-DPZPijA9.js";import"./use-navigate-to-agent-CPq0QEyI.js";import"./repository-picker-BWrox8LY.js";import"./useInfiniteQuery-C7HvpSpg.js";import"./infiniteQueryObserver-qgWv5yw5.js";import"./collection-search-CAzSXhAd.js";import"./use-debounced-value-Db-8HwQf.js";import"./use-is-desktop-app-BNujXJc_.js";import"./required-auth-layout-BDbL7Gbw.js";import"./autosend-CswL-6qr.js";import"./use-org-sso-BDrus71J.js";import"./resizable-DS7CYkFv.js";import"./icon-button-DL2Gkfyl.js";import"./core.esm-CGkAy4XA.js";import"./rich-text-link-control-BtuZ_L2U.js";import"./use-task-board-analytics-C1nndHn2.js";import"./combobox-CMrlh6Sl.js";import"./popover-DukrbQ3U.js";import"./index-Cen25M9q.js";import"./gateway-client-BBi5nsR6.js";import"./form-KuqtFClp.js";import"./utils-CVEq3hMx.js";import"./org-file-open-context-DB3pye_n.js";import"./suggestion-DfQ8OcsT.js";import"./column-rules-BsMnsicg.js";import"./badge-CZ2-73B_.js";import"./switch-CRBzAnDt.js";import"./textarea-ChUQ9lFy.js";import"./use-org-fs-D0vtotA_.js";import"./get-initials-D-f_fDFw.js";import"./search-toggle-B091-fPr.js";import"./config-Dwx6d49U.js";import"./use-task-board-events-D2817eXn.js";import"./use-decopilot-events-CDXR1Ci3.js";import"./use-members-GEOPW_Wr.js";import"./use-org-auth-client-0iE2kOoY.js";import"./select-XfsKg17-.js";import"./task-route-CV3K0LLg.js";import"./format-time-CjIPQhCN.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-tags-Ccnnq5Vz.js";import"./calendar-CS1amNmI.js";import"./alert-C9cUaQVz.js";import"./collapsible-BD7GNbG6.js";import"./use-copy-tACXwvrN.js";import"./markdown-5GYJnvw8.js";import"./location-zK0I9Ia6.js";import"./index-0xzWKuce.js";import"./index-CEyVx804.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./use-connection-BC_H18ml.js";import"./github-repo-scope-ByTYKy_L.js";import"./thread-sheet-body-DLCAs5ZH.js";import"./useSuspenseInfiniteQuery-BymU4lPH.js";import"./pair-DWk_DpxI.js";import"./usage-stats-CgSJBeeW.js";import"./chat-context-DN6LIhMA.js";import"./use-ai-providers-D26ARZHw.js";import"./use-chat-navigation-B6dWmK-d.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-CqG6luLG.js";import"./types-DjyhSdRh.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./tool-namespace-DmnQIdtF.js";import"./use-mcp-prompts-BGGFNZKf.js";import"./use-thread-outputs-wPpOc2oH.js";import"./file-type-icon-DVNIWDia.js";import"./use-infinite-scroll-DOdc_fz4.js";import"./task-status-KkdWXXAC.js";import"./use-open-billing-url-DYLHVe4s.js";import"./chat-draft-BKdDCS9w.js";import"./separator-Cl1CPKLD.js";import"./feature-paywall-DuCZdgLh.js";import"./plan-ladder-CNwvQsR1.js";function a(){const t=l.c(1);let o;return t[0]===Symbol.for("react.memo_cache_sentinel")?(o=r.jsx("div",{className:"flex h-full min-h-0 flex-col overflow-hidden",children:r.jsx(u,{})}),t[0]=o):o=t[0],o}function tr(){const t=l.c(8),{locator:o}=n();let m;t[0]!==o?(m=c=>c.setQueryData(f.taskBoardItems(o),h()),t[0]=o,t[1]=m):m=t[1];let p;t[2]===Symbol.for("react.memo_cache_sentinel")?(p=r.jsx(a,{}),t[2]=p):p=t[2];let i;t[3]!==m?(i=r.jsx(j,{seed:m,children:p}),t[3]=m,t[4]=i):i=t[4];let e;t[5]===Symbol.for("react.memo_cache_sentinel")?(e=r.jsx(a,{}),t[5]=e):e=t[5];let s;return t[6]!==i?(s=r.jsx(d.Content,{children:r.jsx(x,{feature:"kanban",backdrop:i,children:e})}),t[6]=i,t[7]=s):s=t[7],s}export{tr as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as o,l,j as n}from"./index-
|
|
1
|
+
import{c as o,l,j as n}from"./index-DBoHOKjw.js";function c(s){const e=o.c(8);let i,r;e[0]!==s?({className:i,...r}=s,e[0]=s,e[1]=i,e[2]=r):(i=e[1],r=e[2]);let t;e[3]!==i?(t=l("placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/20 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive flex field-sizing-content min-h-16 w-full rounded-[var(--studio-control-radius,var(--radius-xl))] bg-[var(--studio-input-background)] px-3 py-2 text-sm transition-[color,box-shadow] outline-none focus-visible:ring-[2px] card-shadow disabled:cursor-not-allowed disabled:opacity-50",i),e[3]=i,e[4]=t):t=e[4];let a;return e[5]!==r||e[6]!==t?(a=n.jsx("textarea",{"data-slot":"textarea",className:t,...r}),e[5]=r,e[6]=t,e[7]=a):a=e[7],a}export{c as T};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as U,b as ee,f as ge,r as z,j as s,h as je,X as pe,c0 as Se,z as ye}from"./index-C6yXfhc9.js";import{C as se}from"./index-C7rfJP0V.js";import{S as be}from"./analytics-sections-ZsK7uq3f.js";import{u as ve,a as Ne,b as Te}from"./use-thread-analytics-Cx9KlOv7.js";import{B as Ce}from"./badge-DnZUOPBJ.js";import{C as _e}from"./combobox-DegZE00E.js";import{S as ae,b as oe,a as ne,d as ce,c as Z}from"./select-Bo2QWO2w.js";import{e as Ae,a as we,b as fe,T as V,d as ke,c as K}from"./table-3Ha7m5P3.js";import{T as le,a as Le,c as re,b as Ee}from"./tabs-1jbcwYzu.js";import{c as Re,S as Ie,a as $e,b as Be}from"./sheet-DY1Ixr3e.js";import{T as De}from"./thread-sheet-body-R93Orwrl.js";import{u as Oe}from"./use-connection-BF23bC-4.js";import{u as Pe}from"./use-mcp-client-BWdbS58t.js";import{b as He}from"./repository-binding-DgXYHOdO.js";import"./use-mobile-BptJ2ig7.js";import"./thread-button-6bHksN1n.js";import"./agent-icon-D8yc3w6R.js";import"./AlertCircle-DQV9Mc17.js";import"./Tool01-rcwjZJWt.js";import"./ArrowUp-CmgvSWvg.js";import"./ArrowLeft-BIML-f0i.js";import"./LinkBroken01-W0guIiTp.js";import"./ShoppingBag01-CQ0azIkw.js";import"./ZoomOut-B5ON1ruo.js";import"./Building02-DGed7X87.js";import"./CheckCircle-CGt4I_97.js";import"./Check-DmssFQIB.js";import"./ChevronUp-CVGAY_3s.js";import"./UserSquare-weua4atg.js";import"./Copy01-Bv3jpVlA.js";import"./CreditCard01-CsLyF3kp.js";import"./DotsVertical-CiM8md1y.js";import"./Image01-DxzRuuii.js";import"./Globe04-5mRZfz3d.js";import"./XClose-C0S6AMzF.js";import"./Key01-4ZMPLPba.js";import"./Link01-M6drdXoX.js";import"./LinkExternal01-ClcRo1x1.js";import"./Monitor01-Dk1HgiBj.js";import"./Sun-k0O1HcgT.js";import"./Plus-Bq5ZeuHM.js";import"./SearchMd-tAwrJP3u.js";import"./Trash01-yUMH9377.js";import"./Upload01-BPuydd_6.js";import"./User01-9b4OuT4C.js";import"./Users01-CldLEl2f.js";import"./X-CSlg1sd1.js";import"./use-chat-layout-state-CWQdZ4Jo.js";import"./use-file-configs-DfsKofS5.js";import"./use-organization-settings-CAFBLWVk.js";import"./schema-Dj8UASRG.js";import"./task-board-zQvtvYuz.js";import"./site-slug-DebpOoQq.js";import"./thread-route-CcA9rsjD.js";import"./use-panel-navigate-BM9PNlaW.js";import"./use-project-scope-CwEflcY9.js";import"./thread-intent-u_umdxEV.js";import"./backoff-8mStPHYB.js";import"./slugify-CEUa2lfQ.js";import"./tooltip-C1UnC7LD.js";import"./index-BfpLxh6F.js";import"./toolbar-icon-button-BqvnfOpl.js";import"./shell-layout-C91CLPqD.js";import"./avatar-C9IBeU_l.js";import"./download-app-dialog-aNLwMPvt.js";import"./dialog-l0pufTcv.js";import"./use-clock-tick-DFlnhXpf.js";import"./command-DePL1KHf.js";import"./index-BKCduH1k.js";import"./integration-icon-BUQcDswF.js";import"./project-icon-CrF2bM0B.js";import"./new-project-dialog-Bk9ESA8g.js";import"./input-Dgrf_P4M.js";import"./label-Ccn3ZfwY.js";import"./repository-import-picker-BTlCavvI.js";import"./use-navigate-to-agent-CWXwxagr.js";import"./repository-picker-DMsQBK4M.js";import"./useInfiniteQuery-BIeREFXd.js";import"./infiniteQueryObserver-Bs8aLdDs.js";import"./collection-search-B9IMZJsF.js";import"./use-debounced-value-BSX5d21S.js";import"./use-is-desktop-app-BNujXJc_.js";import"./required-auth-layout-DG_ssul7.js";import"./autosend-DkkevtpV.js";import"./use-org-sso-76vbZ6oa.js";import"./resizable-B6j59zX8.js";import"./icon-button-DznlvwEZ.js";import"./chart-C517W9OG.js";import"./index-CG2TCOgB.js";import"./CartesianChart-D2XReMlE.js";import"./Line-CDL5qmk5.js";import"./ErrorBarContext-C-Br6GDZ.js";import"./Sector-JvAmi2ld.js";import"./XAxis-B6QoWNgI.js";import"./popover-C8xX_Eza.js";import"./useSuspenseInfiniteQuery-BWkrsDSs.js";import"./pair-BBstx80k.js";import"./format-time-CjIPQhCN.js";import"./differenceInSeconds-C3x8sHUj.js";import"./collapsible-A7bkzZzr.js";import"./use-copy-CRNOjveD.js";import"./usage-stats-hxbQ0K96.js";import"./markdown-BX8FMyIV.js";import"./location-zK0I9Ia6.js";import"./org-file-open-context-DcBRlv30.js";import"./use-decopilot-events-3jnJN_zB.js";import"./chat-context-BBq6hHFG.js";import"./use-ai-providers-C6FUgl61.js";import"./use-chat-navigation-BYGGlCTj.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-NdZTHRTE.js";import"./types-BizZdPTP.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./gateway-client-F47a4lAO.js";import"./tool-namespace-DmnQIdtF.js";import"./utils-CVEq3hMx.js";import"./use-mcp-prompts-BkoAHxEV.js";import"./index-Dncdnplw.js";import"./form-DWldHPd_.js";import"./use-thread-outputs-BYXmN7CM.js";import"./file-type-icon-hpzbwXLS.js";import"./use-infinite-scroll-B5kOmcNg.js";import"./task-status-kHPK4kaa.js";import"./auth-X1Z9onOC.js";const Ve=[1,7,30,90],Ke=["in_progress","requires_action","failed","completed"],Ue=["chat","automation","task"],Q="any",me={in_progress:"thread.analytics.statusRunning",requires_action:"thread.analytics.statusWaiting",failed:"thread.analytics.statusFailed",completed:"thread.analytics.statusCompleted"},xe={chat:"thread.analytics.kindChat",automation:"thread.analytics.kindAutomation",task:"thread.analytics.kindTask"},ze={in_progress:"default",requires_action:"warning",failed:"destructive",completed:"secondary"};function de(){const t=U.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx("div",{className:"flex justify-center py-12",children:s.jsx(je,{className:"size-5 text-muted-foreground"})}),t[0]=e):e=t[0],e}function he(t){const e=U.c(2),{message:l}=t;let r;return e[0]!==l?(r=s.jsx("div",{className:"rounded-lg border border-border p-8 text-center text-sm text-destructive",children:l}),e[0]=l,e[1]=r):r=e[1],r}function ie(t){const e=U.c(9),{label:l,value:r}=t;let i;e[0]!==l?(i=s.jsx("div",{className:"text-sm text-muted-foreground",children:l}),e[0]=l,e[1]=i):i=e[1];let m;e[2]!==r?(m=r.toLocaleString(),e[2]=r,e[3]=m):m=e[3];let o;e[4]!==m?(o=s.jsx("div",{className:"mt-1 text-2xl font-medium text-foreground tabular-nums",children:m}),e[4]=m,e[5]=o):o=e[5];let c;return e[6]!==i||e[7]!==o?(c=s.jsxs("div",{className:"rounded-lg border border-border p-4",children:[i,o]}),e[6]=i,e[7]=o,e[8]=c):c=e[8],c}function Fe(t){const e=U.c(56),{thread:l,onOpen:r}=t,i=ee(),m=l.status;let o;e[0]!==l.updatedAt?(o=new Date(l.updatedAt).toLocaleString(),e[0]=l.updatedAt,e[1]=o):o=e[1];let c;e[2]!==o?(c=s.jsx(K,{className:"whitespace-nowrap text-sm tabular-nums text-muted-foreground",children:o}),e[2]=o,e[3]=c):c=e[3];let a;e[4]!==l.orgSlug?(a=s.jsx(K,{className:"text-sm",children:l.orgSlug}),e[4]=l.orgSlug,e[5]=a):a=e[5];let u;e[6]!==r||e[7]!==l?(u=()=>r(l),e[6]=r,e[7]=l,e[8]=u):u=e[8];let n;e[9]!==i||e[10]!==l.title?(n=l.title||i("thread.analytics.untitled"),e[9]=i,e[10]=l.title,e[11]=n):n=e[11];let x;e[12]!==u||e[13]!==n?(x=s.jsx("button",{type:"button",onClick:u,className:"block max-w-full truncate text-left text-foreground underline-offset-2 hover:underline",children:n}),e[12]=u,e[13]=n,e[14]=x):x=e[14];let d;e[15]!==l.failureReason||e[16]!==l.lastError||e[17]!==l.status?(d=l.status==="failed"&&(l.lastError||l.failureReason)&&s.jsx("div",{className:"truncate text-xs text-destructive",children:l.lastError??l.failureReason}),e[15]=l.failureReason,e[16]=l.lastError,e[17]=l.status,e[18]=d):d=e[18];let h;e[19]!==x||e[20]!==d?(h=s.jsxs(K,{className:"max-w-sm text-sm",children:[x,d]}),e[19]=x,e[20]=d,e[21]=h):h=e[21];const g=xe[l.kind];let p;e[22]!==i||e[23]!==g?(p=i(g),e[22]=i,e[23]=g,e[24]=p):p=e[24];let w;e[25]!==p?(w=s.jsx(K,{className:"text-sm",children:p}),e[25]=p,e[26]=w):w=e[26];const k=ze[m]??"outline";let j;e[27]!==m||e[28]!==i||e[29]!==l.status?(j=me[m]?i(me[m]):l.status,e[27]=m,e[28]=i,e[29]=l.status,e[30]=j):j=e[30];let T;e[31]!==k||e[32]!==j?(T=s.jsx(K,{children:s.jsx(Ce,{variant:k,children:j})}),e[31]=k,e[32]=j,e[33]=T):T=e[33];const L=l.userEmail??l.userName??"—";let S;e[34]!==L?(S=s.jsx(K,{className:"max-w-48 truncate text-sm",children:L}),e[34]=L,e[35]=S):S=e[35];let y;e[36]!==l.agent?(y=s.jsx(K,{className:"max-w-48 truncate text-sm",children:l.agent}),e[36]=l.agent,e[37]=y):y=e[37];let C;e[38]!==l.usd?(C=l.usd===null?"—":`$${l.usd.toFixed(2)}`,e[38]=l.usd,e[39]=C):C=e[39];let b;e[40]!==C?(b=s.jsx(K,{className:"text-sm tabular-nums",children:C}),e[40]=C,e[41]=b):b=e[41];let v;e[42]!==l.tokens?(v=l.tokens===null?"—":l.tokens.toLocaleString(),e[42]=l.tokens,e[43]=v):v=e[43];let N;e[44]!==v?(N=s.jsx(K,{className:"text-sm tabular-nums",children:v}),e[44]=v,e[45]=N):N=e[45];let _;return e[46]!==w||e[47]!==T||e[48]!==S||e[49]!==y||e[50]!==b||e[51]!==c||e[52]!==N||e[53]!==a||e[54]!==h?(_=s.jsxs(fe,{children:[c,a,h,w,T,S,y,b,N]}),e[46]=w,e[47]=T,e[48]=S,e[49]=y,e[50]=b,e[51]=c,e[52]=N,e[53]=a,e[54]=h,e[55]=_):_=e[55],_}function Ye(t){const e=U.c(51),{org:l}=t,r=ee(),[i,m]=z.useState(Q),[o,c]=z.useState(Q),a=i===Q?void 0:i,u=o===Q?void 0:o;let n;e[0]!==l||e[1]!==a||e[2]!==u?(n={org:l,status:a,kind:u,limit:150},e[0]=l,e[1]=a,e[2]=u,e[3]=n):n=e[3];const x=n,{data:d,isLoading:h,error:g}=Ne(x,!0),[p,w]=z.useState(null);let k;e[4]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx(oe,{className:"w-[180px]",size:"sm",children:s.jsx(ne,{})}),e[4]=k):k=e[4];let j;e[5]!==r?(j=r("thread.analytics.anyStatus"),e[5]=r,e[6]=j):j=e[6];let T;e[7]!==j?(T=s.jsx(Z,{value:Q,children:j}),e[7]=j,e[8]=T):T=e[8];let L;e[9]!==r?(L=Ke.map(A=>s.jsx(Z,{value:A,children:r(me[A])},A)),e[9]=r,e[10]=L):L=e[10];let S;e[11]!==T||e[12]!==L?(S=s.jsxs(ce,{children:[T,L]}),e[11]=T,e[12]=L,e[13]=S):S=e[13];let y;e[14]!==i||e[15]!==S?(y=s.jsxs(ae,{value:i,onValueChange:m,children:[k,S]}),e[14]=i,e[15]=S,e[16]=y):y=e[16];let C;e[17]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(oe,{className:"w-[180px]",size:"sm",children:s.jsx(ne,{})}),e[17]=C):C=e[17];let b;e[18]!==r?(b=r("thread.analytics.anyKind"),e[18]=r,e[19]=b):b=e[19];let v;e[20]!==b?(v=s.jsx(Z,{value:Q,children:b}),e[20]=b,e[21]=v):v=e[21];let N;e[22]!==r?(N=Ue.map(A=>s.jsx(Z,{value:A,children:r(xe[A])},A)),e[22]=r,e[23]=N):N=e[23];let _;e[24]!==v||e[25]!==N?(_=s.jsxs(ce,{children:[v,N]}),e[24]=v,e[25]=N,e[26]=_):_=e[26];let E;e[27]!==o||e[28]!==_?(E=s.jsxs(ae,{value:o,onValueChange:c,children:[C,_]}),e[27]=o,e[28]=_,e[29]=E):E=e[29];let D;e[30]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx("span",{className:"size-2 rounded-full bg-success"}),e[30]=D):D=e[30];let O;e[31]!==r?(O=r("thread.analytics.liveHint"),e[31]=r,e[32]=O):O=e[32];let R;e[33]!==O?(R=s.jsxs("span",{className:"ml-auto flex items-center gap-2 text-xs text-muted-foreground",children:[D,O]}),e[33]=O,e[34]=R):R=e[34];let I;e[35]!==E||e[36]!==R||e[37]!==y?(I=s.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[y,E,R]}),e[35]=E,e[36]=R,e[37]=y,e[38]=I):I=e[38];let $;e[39]!==d||e[40]!==g||e[41]!==h||e[42]!==r?($=h?s.jsx(de,{}):g?s.jsx(he,{message:g.message}):d?s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-3",children:[s.jsx(ie,{label:r("thread.analytics.countRunning"),value:d.counts.running}),s.jsx(ie,{label:r("thread.analytics.countWaiting"),value:d.counts.waiting}),s.jsx(ie,{label:r("thread.analytics.countFailedHour"),value:d.counts.failedLastHour})]}),d.threads.length===0?s.jsx("div",{className:"rounded-lg border border-border p-8 text-center text-sm text-muted-foreground",children:r("thread.analytics.empty")}):s.jsx("div",{className:"overflow-x-auto rounded-lg border border-border",children:s.jsxs(Ae,{children:[s.jsx(we,{children:s.jsxs(fe,{children:[s.jsx(V,{children:r("thread.analytics.colUpdated")}),s.jsx(V,{children:r("thread.analytics.colOrg")}),s.jsx(V,{children:r("thread.analytics.colChat")}),s.jsx(V,{children:r("thread.analytics.colKind")}),s.jsx(V,{children:r("thread.analytics.colStatus")}),s.jsx(V,{children:r("thread.analytics.colUser")}),s.jsx(V,{children:r("thread.analytics.colAgent")}),s.jsx(V,{children:r("thread.analytics.colCost")}),s.jsx(V,{children:r("thread.analytics.colTokens")})]})}),s.jsx(ke,{children:d.threads.map(A=>s.jsx(Fe,{thread:A,onOpen:w},A.id))})]})})]}):null,e[39]=d,e[40]=g,e[41]=h,e[42]=r,e[43]=$):$=e[43];let P;e[44]===Symbol.for("react.memo_cache_sentinel")?(P=()=>w(null),e[44]=P):P=e[44];let B;e[45]!==p?(B=s.jsx(qe,{thread:p,onClose:P}),e[45]=p,e[46]=B):B=e[46];let H;return e[47]!==I||e[48]!==$||e[49]!==B?(H=s.jsxs("div",{className:"flex flex-col gap-6 py-6",children:[I,$,B]}),e[47]=I,e[48]=$,e[49]=B,e[50]=H):H=e[50],H}function Me(t){const e=U.c(14),{thread:l}=t,{org:r,locator:i}=pe();let m;e[0]!==r.id||e[1]!==r.slug?(m={connectionId:ye,orgId:r.id,orgSlug:r.slug},e[0]=r.id,e[1]=r.slug,e[2]=m):m=e[2];const o=Pe(m),c=Oe(),a=He();let u;e[3]!==l.createdAt||e[4]!==l.id||e[5]!==l.status||e[6]!==l.title?(u={id:l.id,title:l.title,status:l.status,created_at:l.createdAt},e[3]=l.createdAt,e[4]=l.id,e[5]=l.status,e[6]=l.title,e[7]=u):u=e[7];let n;return e[8]!==o||e[9]!==c||e[10]!==i||e[11]!==u||e[12]!==a?(n=s.jsx(De,{thread:u,client:o,locator:i,connections:c,virtualMcps:a,members:void 0,meta:!1}),e[8]=o,e[9]=c,e[10]=i,e[11]=u,e[12]=a,e[13]=n):n=e[13],n}function qe(t){const e=U.c(12),{thread:l,onClose:r}=t,i=ee(),{project:m}=pe(),o=!!l;let c;e[0]!==r?(c=x=>!x&&r(),e[0]=r,e[1]=c):c=e[1];let a;e[2]!==m||e[3]!==i||e[4]!==l?(a=l&&s.jsx(Se,{org:{id:l.orgId,name:l.orgSlug,slug:l.orgSlug,logo:null},project:m,children:s.jsx(z.Suspense,{fallback:s.jsx(Re,{className:"shrink-0 border-b border-border px-5 pb-5 pt-6 md:px-6",children:s.jsx(Ie,{className:"truncate text-sm leading-snug",children:l.title||i("thread.analytics.untitled")})}),children:s.jsx(Me,{thread:l})})}),e[2]=m,e[3]=i,e[4]=l,e[5]=a):a=e[5];let u;e[6]!==a?(u=s.jsx($e,{className:"flex flex-col gap-0 p-0 sm:max-w-2xl",children:a}),e[6]=a,e[7]=u):u=e[7];let n;return e[8]!==o||e[9]!==c||e[10]!==u?(n=s.jsx(Be,{open:o,onOpenChange:c,children:u}),e[8]=o,e[9]=c,e[10]=u,e[11]=n):n=e[11],n}function ue(t){const e=U.c(16),{tool:l,org:r,from:i,to:m}=t,o=ee();let c;e[0]!==i||e[1]!==r||e[2]!==m?(c={org:r,from:i,to:m},e[0]=i,e[1]=r,e[2]=m,e[3]=c):c=e[3];const{data:a,isLoading:u,error:n}=Te(l,c);if(u){let p;return e[4]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsx(de,{}),e[4]=p):p=e[4],p}if(n){let p;return e[5]!==n.message?(p=s.jsx(he,{message:n.message}),e[5]=n.message,e[6]=p):p=e[6],p}if(!a)return null;let x;e[7]!==a.sections?(x=a.sections.map(Ge),e[7]=a.sections,e[8]=x):x=e[8];let d;e[9]!==o?(d=o("thread.analytics.costFootnote"),e[9]=o,e[10]=d):d=e[10];let h;e[11]!==d?(h=s.jsx("p",{className:"text-xs text-muted-foreground",children:d}),e[11]=d,e[12]=h):h=e[12];let g;return e[13]!==x||e[14]!==h?(g=s.jsxs("div",{className:"flex flex-col gap-8 py-6",children:[x,h]}),e[13]=x,e[14]=h,e[15]=g):g=e[15],g}function Ge(t){return s.jsx(be,{section:t,threadLinks:!0},t.title)}function pl(){const t=U.c(99),e=ee(),l=ge({strict:!1}).org??"",r=ve(),[i,m]=z.useState("all"),[o,c]=z.useState(7),[a,u]=z.useState("live"),[n]=z.useState(Xe);let x;t[0]!==n?(x=new Date(n).toISOString(),t[0]=n,t[1]=x):x=t[1];const d=x;let h;t[2]!==o||t[3]!==n?(h=new Date(n-o*864e5).toISOString(),t[2]=o,t[3]=n,t[4]=h):h=t[4];const g=h;if(r.isLoading){let f;return t[5]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(se.Content,{children:s.jsx(de,{})}),t[5]=f):f=t[5],f}if(!r.data?.isAdmin){let f;t[6]!==e?(f=e("thread.analytics.notAdmin"),t[6]=e,t[7]=f):f=t[7];let J;return t[8]!==f?(J=s.jsx(se.Content,{children:s.jsx("div",{className:"p-8 text-center text-sm text-muted-foreground",children:f})}),t[8]=f,t[9]=J):J=t[9],J}let p;t[10]!==e?(p=e("taskBoard.analytics.orgAll"),t[10]=e,t[11]=p):p=t[11];let w;t[12]!==p?(w={value:"all",label:p},t[12]=p,t[13]=w):w=t[13];let k;t[14]!==e?(k=e("taskBoard.analytics.orgCurrent"),t[14]=e,t[15]=k):k=t[15];let j;t[16]!==l||t[17]!==k?(j={value:l,label:k},t[16]=l,t[17]=k,t[18]=j):j=t[18];let T;if(t[19]!==r.data.orgs||t[20]!==l||t[21]!==w||t[22]!==j){let f;t[24]!==l?(f=J=>J.slug!==l,t[24]=l,t[25]=f):f=t[25],T=[w,j,...r.data.orgs.filter(f).map(We)],t[19]=r.data.orgs,t[20]=l,t[21]=w,t[22]=j,t[23]=T}else T=t[23];const L=T;let S;t[26]!==e?(S=e("thread.analytics.title"),t[26]=e,t[27]=S):S=t[27];let y;t[28]!==S?(y=s.jsx("h1",{className:"text-xl font-medium text-foreground",children:S}),t[28]=S,t[29]=y):y=t[29];let C;t[30]!==e?(C=e("taskBoard.analytics.orgSearch"),t[30]=e,t[31]=C):C=t[31];let b;t[32]!==e?(b=e("taskBoard.analytics.orgEmpty"),t[32]=e,t[33]=b):b=t[33];let v;t[34]!==i||t[35]!==L||t[36]!==b||t[37]!==C?(v=s.jsx(_e,{options:L,value:i,onChange:m,width:"w-[240px]",searchPlaceholder:C,emptyMessage:b}),t[34]=i,t[35]=L,t[36]=b,t[37]=C,t[38]=v):v=t[38];let N;t[39]!==o||t[40]!==e||t[41]!==a?(N=a!=="live"&&s.jsxs(ae,{value:String(o),onValueChange:f=>c(Number(f)),children:[s.jsx(oe,{className:"w-[140px]",size:"sm",children:s.jsx(ne,{})}),s.jsx(ce,{children:Ve.map(f=>s.jsx(Z,{value:String(f),children:e("taskBoard.analytics.rangeDays",{days:String(f)})},f))})]}),t[39]=o,t[40]=e,t[41]=a,t[42]=N):N=t[42];let _;t[43]!==v||t[44]!==N?(_=s.jsxs("div",{className:"ml-auto flex items-center gap-2",children:[v,N]}),t[43]=v,t[44]=N,t[45]=_):_=t[45];let E;t[46]!==_||t[47]!==y?(E=s.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[y,_]}),t[46]=_,t[47]=y,t[48]=E):E=t[48];let D;t[49]!==i||t[50]!==l||t[51]!==e?(D=i!==l&&s.jsx("div",{className:"rounded-lg bg-warning/10 px-3 py-2 text-sm text-warning",children:i==="all"?e("taskBoard.analytics.bannerAll"):e("taskBoard.analytics.bannerOrg",{org:i})}),t[49]=i,t[50]=l,t[51]=e,t[52]=D):D=t[52];let O;t[53]===Symbol.for("react.memo_cache_sentinel")?(O=f=>u(f),t[53]=O):O=t[53];let R;t[54]!==e?(R=e("thread.analytics.tabLive"),t[54]=e,t[55]=R):R=t[55];let I;t[56]!==R?(I=s.jsx(le,{value:"live",children:R}),t[56]=R,t[57]=I):I=t[57];let $;t[58]!==e?($=e("thread.analytics.tabUsage"),t[58]=e,t[59]=$):$=t[59];let P;t[60]!==$?(P=s.jsx(le,{value:"usage",children:$}),t[60]=$,t[61]=P):P=t[61];let B;t[62]!==e?(B=e("thread.analytics.tabErrors"),t[62]=e,t[63]=B):B=t[63];let H;t[64]!==B?(H=s.jsx(le,{value:"errors",children:B}),t[64]=B,t[65]=H):H=t[65];let A;t[66]!==I||t[67]!==P||t[68]!==H?(A=s.jsxs(Le,{children:[I,P,H]}),t[66]=I,t[67]=P,t[68]=H,t[69]=A):A=t[69];let F;t[70]!==i||t[71]!==a?(F=a==="live"&&s.jsx(Ye,{org:i}),t[70]=i,t[71]=a,t[72]=F):F=t[72];let Y;t[73]!==F?(Y=s.jsx(re,{value:"live",children:F}),t[73]=F,t[74]=Y):Y=t[74];let M;t[75]!==g||t[76]!==i||t[77]!==a||t[78]!==d?(M=a==="usage"&&s.jsx(ue,{tool:"THREAD_ANALYTICS_USAGE",org:i,from:g,to:d}),t[75]=g,t[76]=i,t[77]=a,t[78]=d,t[79]=M):M=t[79];let q;t[80]!==M?(q=s.jsx(re,{value:"usage",children:M}),t[80]=M,t[81]=q):q=t[81];let G;t[82]!==g||t[83]!==i||t[84]!==a||t[85]!==d?(G=a==="errors"&&s.jsx(ue,{tool:"THREAD_ANALYTICS_ERRORS",org:i,from:g,to:d}),t[82]=g,t[83]=i,t[84]=a,t[85]=d,t[86]=G):G=t[86];let W;t[87]!==G?(W=s.jsx(re,{value:"errors",children:G}),t[87]=G,t[88]=W):W=t[88];let X;t[89]!==A||t[90]!==Y||t[91]!==q||t[92]!==W||t[93]!==a?(X=s.jsxs(Ee,{value:a,onValueChange:O,children:[A,Y,q,W]}),t[89]=A,t[90]=Y,t[91]=q,t[92]=W,t[93]=a,t[94]=X):X=t[94];let te;return t[95]!==E||t[96]!==D||t[97]!==X?(te=s.jsx(se.Content,{children:s.jsx("div",{className:"flex h-full min-h-0 flex-col overflow-auto",children:s.jsxs("div",{className:"mx-auto flex w-full max-w-[1680px] flex-col gap-4 px-4 py-6 sm:px-8 sm:py-8",children:[E,D,X]})})}),t[95]=E,t[96]=D,t[97]=X,t[98]=te):te=t[98],te}function We(t){return{value:t.slug,label:`${t.slug} · ${t.name}`}}function Xe(){return Date.now()}export{pl as default};
|
|
1
|
+
import{c as U,b as ee,f as ge,r as z,j as s,h as je,X as pe,c0 as Se,z as ye}from"./index-DBoHOKjw.js";import{C as se}from"./index-DmVG3v82.js";import{S as be}from"./analytics-sections-DLc9rhby.js";import{u as ve,a as Ne,b as Te}from"./use-thread-analytics-Ck12YraO.js";import{B as Ce}from"./badge-CZ2-73B_.js";import{C as _e}from"./combobox-CMrlh6Sl.js";import{S as ae,b as oe,a as ne,d as ce,c as Z}from"./select-XfsKg17-.js";import{e as Ae,a as we,b as fe,T as V,d as ke,c as K}from"./table-DrvAOyO1.js";import{T as le,a as Le,c as re,b as Ee}from"./tabs-e-pd68cf.js";import{c as Re,S as Ie,a as $e,b as Be}from"./sheet-CZDkfSKo.js";import{T as De}from"./thread-sheet-body-DLCAs5ZH.js";import{u as Oe}from"./use-connection-BC_H18ml.js";import{u as Pe}from"./use-mcp-client-Dr2ieErM.js";import{b as He}from"./repository-binding-DXQMz8tF.js";import"./use-mobile-BIaUANZL.js";import"./thread-button-A4ZMbsSJ.js";import"./agent-icon-CeBKZuCK.js";import"./AlertCircle-CL-Ba0_Q.js";import"./Tool01-BR_2GJVQ.js";import"./ArrowUp-CvjiUaVx.js";import"./ArrowLeft-ZcdIkYz0.js";import"./LinkBroken01-Bu7OL2cL.js";import"./ShoppingBag01-d2G89AZS.js";import"./ZoomOut-Bz0zUi4W.js";import"./Building02-FvnfPLK2.js";import"./CheckCircle-BnDcHqrT.js";import"./Check-m_9M3llp.js";import"./ChevronUp-ZFMh5ExZ.js";import"./UserSquare-CkpWY_Ql.js";import"./Copy01-C06SX2Rt.js";import"./CreditCard01-CjlTPFuS.js";import"./DotsVertical-8IP4yxP4.js";import"./Image01-D9Kt40Xt.js";import"./Globe04-Dg-78cI8.js";import"./XClose-JbZeJDvi.js";import"./Key01-CY_jgU1B.js";import"./Link01-CUs37Sc0.js";import"./LinkExternal01-K_EoOXaI.js";import"./Monitor01-BK0yoFL7.js";import"./Sun-rNt0Rjt9.js";import"./Plus-D36CJbju.js";import"./SearchMd-CWTPI1P9.js";import"./Trash01-DU_Ipkqh.js";import"./Upload01-BiQc81e2.js";import"./User01-YC00nqD8.js";import"./Users01-BSwysKui.js";import"./X-DmvkVyms.js";import"./use-chat-layout-state-Bixj6ACc.js";import"./use-file-configs-BGlASHUP.js";import"./use-organization-settings-Dyzll_Gy.js";import"./schema-CE2zpNxo.js";import"./task-board-Crg-IxL1.js";import"./site-slug-DebpOoQq.js";import"./thread-route-6l9iNUiH.js";import"./use-panel-navigate-CrpC4hC1.js";import"./use-project-scope-DlEsf0bK.js";import"./thread-intent-DG1RmuFS.js";import"./backoff-8mStPHYB.js";import"./slugify-CEUa2lfQ.js";import"./tooltip-B8csev2n.js";import"./index-BGXkNlsg.js";import"./toolbar-icon-button-ClRorWaN.js";import"./shell-layout-CKWKtHmx.js";import"./avatar-CmavCmK6.js";import"./download-app-dialog-C1LaJ0G_.js";import"./dialog-DbnuA-yG.js";import"./use-clock-tick-DIsIbH9y.js";import"./command-DxTFTkQb.js";import"./index-BEPEGJ7j.js";import"./integration-icon-CP02T0S9.js";import"./project-icon-YmedO-IS.js";import"./new-project-dialog--kJEKHlL.js";import"./input-Mb2meh2H.js";import"./label-Bls3Ztde.js";import"./repository-import-picker-DPZPijA9.js";import"./use-navigate-to-agent-CPq0QEyI.js";import"./repository-picker-BWrox8LY.js";import"./useInfiniteQuery-C7HvpSpg.js";import"./infiniteQueryObserver-qgWv5yw5.js";import"./collection-search-CAzSXhAd.js";import"./use-debounced-value-Db-8HwQf.js";import"./use-is-desktop-app-BNujXJc_.js";import"./required-auth-layout-BDbL7Gbw.js";import"./autosend-CswL-6qr.js";import"./use-org-sso-BDrus71J.js";import"./resizable-DS7CYkFv.js";import"./icon-button-DL2Gkfyl.js";import"./chart-BsM6mnjI.js";import"./index-BVptlPQI.js";import"./CartesianChart-BX61N6Vt.js";import"./Line-dSLV618t.js";import"./ErrorBarContext-DdXeAmkz.js";import"./Sector-CBva21QI.js";import"./XAxis-DvKYyO7z.js";import"./popover-DukrbQ3U.js";import"./useSuspenseInfiniteQuery-BymU4lPH.js";import"./pair-DWk_DpxI.js";import"./format-time-CjIPQhCN.js";import"./differenceInSeconds-C3x8sHUj.js";import"./collapsible-BD7GNbG6.js";import"./use-copy-tACXwvrN.js";import"./usage-stats-CgSJBeeW.js";import"./markdown-5GYJnvw8.js";import"./location-zK0I9Ia6.js";import"./org-file-open-context-DB3pye_n.js";import"./use-decopilot-events-CDXR1Ci3.js";import"./chat-context-DN6LIhMA.js";import"./use-ai-providers-D26ARZHw.js";import"./use-chat-navigation-B6dWmK-d.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-CqG6luLG.js";import"./types-DjyhSdRh.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./gateway-client-BBi5nsR6.js";import"./tool-namespace-DmnQIdtF.js";import"./utils-CVEq3hMx.js";import"./use-mcp-prompts-BGGFNZKf.js";import"./index-Cen25M9q.js";import"./form-KuqtFClp.js";import"./use-thread-outputs-wPpOc2oH.js";import"./file-type-icon-DVNIWDia.js";import"./use-infinite-scroll-DOdc_fz4.js";import"./task-status-KkdWXXAC.js";import"./auth-DHJlUSSu.js";const Ve=[1,7,30,90],Ke=["in_progress","requires_action","failed","completed"],Ue=["chat","automation","task"],Q="any",me={in_progress:"thread.analytics.statusRunning",requires_action:"thread.analytics.statusWaiting",failed:"thread.analytics.statusFailed",completed:"thread.analytics.statusCompleted"},xe={chat:"thread.analytics.kindChat",automation:"thread.analytics.kindAutomation",task:"thread.analytics.kindTask"},ze={in_progress:"default",requires_action:"warning",failed:"destructive",completed:"secondary"};function de(){const t=U.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx("div",{className:"flex justify-center py-12",children:s.jsx(je,{className:"size-5 text-muted-foreground"})}),t[0]=e):e=t[0],e}function he(t){const e=U.c(2),{message:l}=t;let r;return e[0]!==l?(r=s.jsx("div",{className:"rounded-lg border border-border p-8 text-center text-sm text-destructive",children:l}),e[0]=l,e[1]=r):r=e[1],r}function ie(t){const e=U.c(9),{label:l,value:r}=t;let i;e[0]!==l?(i=s.jsx("div",{className:"text-sm text-muted-foreground",children:l}),e[0]=l,e[1]=i):i=e[1];let m;e[2]!==r?(m=r.toLocaleString(),e[2]=r,e[3]=m):m=e[3];let o;e[4]!==m?(o=s.jsx("div",{className:"mt-1 text-2xl font-medium text-foreground tabular-nums",children:m}),e[4]=m,e[5]=o):o=e[5];let c;return e[6]!==i||e[7]!==o?(c=s.jsxs("div",{className:"rounded-lg border border-border p-4",children:[i,o]}),e[6]=i,e[7]=o,e[8]=c):c=e[8],c}function Fe(t){const e=U.c(56),{thread:l,onOpen:r}=t,i=ee(),m=l.status;let o;e[0]!==l.updatedAt?(o=new Date(l.updatedAt).toLocaleString(),e[0]=l.updatedAt,e[1]=o):o=e[1];let c;e[2]!==o?(c=s.jsx(K,{className:"whitespace-nowrap text-sm tabular-nums text-muted-foreground",children:o}),e[2]=o,e[3]=c):c=e[3];let a;e[4]!==l.orgSlug?(a=s.jsx(K,{className:"text-sm",children:l.orgSlug}),e[4]=l.orgSlug,e[5]=a):a=e[5];let u;e[6]!==r||e[7]!==l?(u=()=>r(l),e[6]=r,e[7]=l,e[8]=u):u=e[8];let n;e[9]!==i||e[10]!==l.title?(n=l.title||i("thread.analytics.untitled"),e[9]=i,e[10]=l.title,e[11]=n):n=e[11];let x;e[12]!==u||e[13]!==n?(x=s.jsx("button",{type:"button",onClick:u,className:"block max-w-full truncate text-left text-foreground underline-offset-2 hover:underline",children:n}),e[12]=u,e[13]=n,e[14]=x):x=e[14];let d;e[15]!==l.failureReason||e[16]!==l.lastError||e[17]!==l.status?(d=l.status==="failed"&&(l.lastError||l.failureReason)&&s.jsx("div",{className:"truncate text-xs text-destructive",children:l.lastError??l.failureReason}),e[15]=l.failureReason,e[16]=l.lastError,e[17]=l.status,e[18]=d):d=e[18];let h;e[19]!==x||e[20]!==d?(h=s.jsxs(K,{className:"max-w-sm text-sm",children:[x,d]}),e[19]=x,e[20]=d,e[21]=h):h=e[21];const g=xe[l.kind];let p;e[22]!==i||e[23]!==g?(p=i(g),e[22]=i,e[23]=g,e[24]=p):p=e[24];let w;e[25]!==p?(w=s.jsx(K,{className:"text-sm",children:p}),e[25]=p,e[26]=w):w=e[26];const k=ze[m]??"outline";let j;e[27]!==m||e[28]!==i||e[29]!==l.status?(j=me[m]?i(me[m]):l.status,e[27]=m,e[28]=i,e[29]=l.status,e[30]=j):j=e[30];let T;e[31]!==k||e[32]!==j?(T=s.jsx(K,{children:s.jsx(Ce,{variant:k,children:j})}),e[31]=k,e[32]=j,e[33]=T):T=e[33];const L=l.userEmail??l.userName??"—";let S;e[34]!==L?(S=s.jsx(K,{className:"max-w-48 truncate text-sm",children:L}),e[34]=L,e[35]=S):S=e[35];let y;e[36]!==l.agent?(y=s.jsx(K,{className:"max-w-48 truncate text-sm",children:l.agent}),e[36]=l.agent,e[37]=y):y=e[37];let C;e[38]!==l.usd?(C=l.usd===null?"—":`$${l.usd.toFixed(2)}`,e[38]=l.usd,e[39]=C):C=e[39];let b;e[40]!==C?(b=s.jsx(K,{className:"text-sm tabular-nums",children:C}),e[40]=C,e[41]=b):b=e[41];let v;e[42]!==l.tokens?(v=l.tokens===null?"—":l.tokens.toLocaleString(),e[42]=l.tokens,e[43]=v):v=e[43];let N;e[44]!==v?(N=s.jsx(K,{className:"text-sm tabular-nums",children:v}),e[44]=v,e[45]=N):N=e[45];let _;return e[46]!==w||e[47]!==T||e[48]!==S||e[49]!==y||e[50]!==b||e[51]!==c||e[52]!==N||e[53]!==a||e[54]!==h?(_=s.jsxs(fe,{children:[c,a,h,w,T,S,y,b,N]}),e[46]=w,e[47]=T,e[48]=S,e[49]=y,e[50]=b,e[51]=c,e[52]=N,e[53]=a,e[54]=h,e[55]=_):_=e[55],_}function Ye(t){const e=U.c(51),{org:l}=t,r=ee(),[i,m]=z.useState(Q),[o,c]=z.useState(Q),a=i===Q?void 0:i,u=o===Q?void 0:o;let n;e[0]!==l||e[1]!==a||e[2]!==u?(n={org:l,status:a,kind:u,limit:150},e[0]=l,e[1]=a,e[2]=u,e[3]=n):n=e[3];const x=n,{data:d,isLoading:h,error:g}=Ne(x,!0),[p,w]=z.useState(null);let k;e[4]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx(oe,{className:"w-[180px]",size:"sm",children:s.jsx(ne,{})}),e[4]=k):k=e[4];let j;e[5]!==r?(j=r("thread.analytics.anyStatus"),e[5]=r,e[6]=j):j=e[6];let T;e[7]!==j?(T=s.jsx(Z,{value:Q,children:j}),e[7]=j,e[8]=T):T=e[8];let L;e[9]!==r?(L=Ke.map(A=>s.jsx(Z,{value:A,children:r(me[A])},A)),e[9]=r,e[10]=L):L=e[10];let S;e[11]!==T||e[12]!==L?(S=s.jsxs(ce,{children:[T,L]}),e[11]=T,e[12]=L,e[13]=S):S=e[13];let y;e[14]!==i||e[15]!==S?(y=s.jsxs(ae,{value:i,onValueChange:m,children:[k,S]}),e[14]=i,e[15]=S,e[16]=y):y=e[16];let C;e[17]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(oe,{className:"w-[180px]",size:"sm",children:s.jsx(ne,{})}),e[17]=C):C=e[17];let b;e[18]!==r?(b=r("thread.analytics.anyKind"),e[18]=r,e[19]=b):b=e[19];let v;e[20]!==b?(v=s.jsx(Z,{value:Q,children:b}),e[20]=b,e[21]=v):v=e[21];let N;e[22]!==r?(N=Ue.map(A=>s.jsx(Z,{value:A,children:r(xe[A])},A)),e[22]=r,e[23]=N):N=e[23];let _;e[24]!==v||e[25]!==N?(_=s.jsxs(ce,{children:[v,N]}),e[24]=v,e[25]=N,e[26]=_):_=e[26];let E;e[27]!==o||e[28]!==_?(E=s.jsxs(ae,{value:o,onValueChange:c,children:[C,_]}),e[27]=o,e[28]=_,e[29]=E):E=e[29];let D;e[30]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx("span",{className:"size-2 rounded-full bg-success"}),e[30]=D):D=e[30];let O;e[31]!==r?(O=r("thread.analytics.liveHint"),e[31]=r,e[32]=O):O=e[32];let R;e[33]!==O?(R=s.jsxs("span",{className:"ml-auto flex items-center gap-2 text-xs text-muted-foreground",children:[D,O]}),e[33]=O,e[34]=R):R=e[34];let I;e[35]!==E||e[36]!==R||e[37]!==y?(I=s.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[y,E,R]}),e[35]=E,e[36]=R,e[37]=y,e[38]=I):I=e[38];let $;e[39]!==d||e[40]!==g||e[41]!==h||e[42]!==r?($=h?s.jsx(de,{}):g?s.jsx(he,{message:g.message}):d?s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-3",children:[s.jsx(ie,{label:r("thread.analytics.countRunning"),value:d.counts.running}),s.jsx(ie,{label:r("thread.analytics.countWaiting"),value:d.counts.waiting}),s.jsx(ie,{label:r("thread.analytics.countFailedHour"),value:d.counts.failedLastHour})]}),d.threads.length===0?s.jsx("div",{className:"rounded-lg border border-border p-8 text-center text-sm text-muted-foreground",children:r("thread.analytics.empty")}):s.jsx("div",{className:"overflow-x-auto rounded-lg border border-border",children:s.jsxs(Ae,{children:[s.jsx(we,{children:s.jsxs(fe,{children:[s.jsx(V,{children:r("thread.analytics.colUpdated")}),s.jsx(V,{children:r("thread.analytics.colOrg")}),s.jsx(V,{children:r("thread.analytics.colChat")}),s.jsx(V,{children:r("thread.analytics.colKind")}),s.jsx(V,{children:r("thread.analytics.colStatus")}),s.jsx(V,{children:r("thread.analytics.colUser")}),s.jsx(V,{children:r("thread.analytics.colAgent")}),s.jsx(V,{children:r("thread.analytics.colCost")}),s.jsx(V,{children:r("thread.analytics.colTokens")})]})}),s.jsx(ke,{children:d.threads.map(A=>s.jsx(Fe,{thread:A,onOpen:w},A.id))})]})})]}):null,e[39]=d,e[40]=g,e[41]=h,e[42]=r,e[43]=$):$=e[43];let P;e[44]===Symbol.for("react.memo_cache_sentinel")?(P=()=>w(null),e[44]=P):P=e[44];let B;e[45]!==p?(B=s.jsx(qe,{thread:p,onClose:P}),e[45]=p,e[46]=B):B=e[46];let H;return e[47]!==I||e[48]!==$||e[49]!==B?(H=s.jsxs("div",{className:"flex flex-col gap-6 py-6",children:[I,$,B]}),e[47]=I,e[48]=$,e[49]=B,e[50]=H):H=e[50],H}function Me(t){const e=U.c(14),{thread:l}=t,{org:r,locator:i}=pe();let m;e[0]!==r.id||e[1]!==r.slug?(m={connectionId:ye,orgId:r.id,orgSlug:r.slug},e[0]=r.id,e[1]=r.slug,e[2]=m):m=e[2];const o=Pe(m),c=Oe(),a=He();let u;e[3]!==l.createdAt||e[4]!==l.id||e[5]!==l.status||e[6]!==l.title?(u={id:l.id,title:l.title,status:l.status,created_at:l.createdAt},e[3]=l.createdAt,e[4]=l.id,e[5]=l.status,e[6]=l.title,e[7]=u):u=e[7];let n;return e[8]!==o||e[9]!==c||e[10]!==i||e[11]!==u||e[12]!==a?(n=s.jsx(De,{thread:u,client:o,locator:i,connections:c,virtualMcps:a,members:void 0,meta:!1}),e[8]=o,e[9]=c,e[10]=i,e[11]=u,e[12]=a,e[13]=n):n=e[13],n}function qe(t){const e=U.c(12),{thread:l,onClose:r}=t,i=ee(),{project:m}=pe(),o=!!l;let c;e[0]!==r?(c=x=>!x&&r(),e[0]=r,e[1]=c):c=e[1];let a;e[2]!==m||e[3]!==i||e[4]!==l?(a=l&&s.jsx(Se,{org:{id:l.orgId,name:l.orgSlug,slug:l.orgSlug,logo:null},project:m,children:s.jsx(z.Suspense,{fallback:s.jsx(Re,{className:"shrink-0 border-b border-border px-5 pb-5 pt-6 md:px-6",children:s.jsx(Ie,{className:"truncate text-sm leading-snug",children:l.title||i("thread.analytics.untitled")})}),children:s.jsx(Me,{thread:l})})}),e[2]=m,e[3]=i,e[4]=l,e[5]=a):a=e[5];let u;e[6]!==a?(u=s.jsx($e,{className:"flex flex-col gap-0 p-0 sm:max-w-2xl",children:a}),e[6]=a,e[7]=u):u=e[7];let n;return e[8]!==o||e[9]!==c||e[10]!==u?(n=s.jsx(Be,{open:o,onOpenChange:c,children:u}),e[8]=o,e[9]=c,e[10]=u,e[11]=n):n=e[11],n}function ue(t){const e=U.c(16),{tool:l,org:r,from:i,to:m}=t,o=ee();let c;e[0]!==i||e[1]!==r||e[2]!==m?(c={org:r,from:i,to:m},e[0]=i,e[1]=r,e[2]=m,e[3]=c):c=e[3];const{data:a,isLoading:u,error:n}=Te(l,c);if(u){let p;return e[4]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsx(de,{}),e[4]=p):p=e[4],p}if(n){let p;return e[5]!==n.message?(p=s.jsx(he,{message:n.message}),e[5]=n.message,e[6]=p):p=e[6],p}if(!a)return null;let x;e[7]!==a.sections?(x=a.sections.map(Ge),e[7]=a.sections,e[8]=x):x=e[8];let d;e[9]!==o?(d=o("thread.analytics.costFootnote"),e[9]=o,e[10]=d):d=e[10];let h;e[11]!==d?(h=s.jsx("p",{className:"text-xs text-muted-foreground",children:d}),e[11]=d,e[12]=h):h=e[12];let g;return e[13]!==x||e[14]!==h?(g=s.jsxs("div",{className:"flex flex-col gap-8 py-6",children:[x,h]}),e[13]=x,e[14]=h,e[15]=g):g=e[15],g}function Ge(t){return s.jsx(be,{section:t,threadLinks:!0},t.title)}function pl(){const t=U.c(99),e=ee(),l=ge({strict:!1}).org??"",r=ve(),[i,m]=z.useState("all"),[o,c]=z.useState(7),[a,u]=z.useState("live"),[n]=z.useState(Xe);let x;t[0]!==n?(x=new Date(n).toISOString(),t[0]=n,t[1]=x):x=t[1];const d=x;let h;t[2]!==o||t[3]!==n?(h=new Date(n-o*864e5).toISOString(),t[2]=o,t[3]=n,t[4]=h):h=t[4];const g=h;if(r.isLoading){let f;return t[5]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(se.Content,{children:s.jsx(de,{})}),t[5]=f):f=t[5],f}if(!r.data?.isAdmin){let f;t[6]!==e?(f=e("thread.analytics.notAdmin"),t[6]=e,t[7]=f):f=t[7];let J;return t[8]!==f?(J=s.jsx(se.Content,{children:s.jsx("div",{className:"p-8 text-center text-sm text-muted-foreground",children:f})}),t[8]=f,t[9]=J):J=t[9],J}let p;t[10]!==e?(p=e("taskBoard.analytics.orgAll"),t[10]=e,t[11]=p):p=t[11];let w;t[12]!==p?(w={value:"all",label:p},t[12]=p,t[13]=w):w=t[13];let k;t[14]!==e?(k=e("taskBoard.analytics.orgCurrent"),t[14]=e,t[15]=k):k=t[15];let j;t[16]!==l||t[17]!==k?(j={value:l,label:k},t[16]=l,t[17]=k,t[18]=j):j=t[18];let T;if(t[19]!==r.data.orgs||t[20]!==l||t[21]!==w||t[22]!==j){let f;t[24]!==l?(f=J=>J.slug!==l,t[24]=l,t[25]=f):f=t[25],T=[w,j,...r.data.orgs.filter(f).map(We)],t[19]=r.data.orgs,t[20]=l,t[21]=w,t[22]=j,t[23]=T}else T=t[23];const L=T;let S;t[26]!==e?(S=e("thread.analytics.title"),t[26]=e,t[27]=S):S=t[27];let y;t[28]!==S?(y=s.jsx("h1",{className:"text-xl font-medium text-foreground",children:S}),t[28]=S,t[29]=y):y=t[29];let C;t[30]!==e?(C=e("taskBoard.analytics.orgSearch"),t[30]=e,t[31]=C):C=t[31];let b;t[32]!==e?(b=e("taskBoard.analytics.orgEmpty"),t[32]=e,t[33]=b):b=t[33];let v;t[34]!==i||t[35]!==L||t[36]!==b||t[37]!==C?(v=s.jsx(_e,{options:L,value:i,onChange:m,width:"w-[240px]",searchPlaceholder:C,emptyMessage:b}),t[34]=i,t[35]=L,t[36]=b,t[37]=C,t[38]=v):v=t[38];let N;t[39]!==o||t[40]!==e||t[41]!==a?(N=a!=="live"&&s.jsxs(ae,{value:String(o),onValueChange:f=>c(Number(f)),children:[s.jsx(oe,{className:"w-[140px]",size:"sm",children:s.jsx(ne,{})}),s.jsx(ce,{children:Ve.map(f=>s.jsx(Z,{value:String(f),children:e("taskBoard.analytics.rangeDays",{days:String(f)})},f))})]}),t[39]=o,t[40]=e,t[41]=a,t[42]=N):N=t[42];let _;t[43]!==v||t[44]!==N?(_=s.jsxs("div",{className:"ml-auto flex items-center gap-2",children:[v,N]}),t[43]=v,t[44]=N,t[45]=_):_=t[45];let E;t[46]!==_||t[47]!==y?(E=s.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[y,_]}),t[46]=_,t[47]=y,t[48]=E):E=t[48];let D;t[49]!==i||t[50]!==l||t[51]!==e?(D=i!==l&&s.jsx("div",{className:"rounded-lg bg-warning/10 px-3 py-2 text-sm text-warning",children:i==="all"?e("taskBoard.analytics.bannerAll"):e("taskBoard.analytics.bannerOrg",{org:i})}),t[49]=i,t[50]=l,t[51]=e,t[52]=D):D=t[52];let O;t[53]===Symbol.for("react.memo_cache_sentinel")?(O=f=>u(f),t[53]=O):O=t[53];let R;t[54]!==e?(R=e("thread.analytics.tabLive"),t[54]=e,t[55]=R):R=t[55];let I;t[56]!==R?(I=s.jsx(le,{value:"live",children:R}),t[56]=R,t[57]=I):I=t[57];let $;t[58]!==e?($=e("thread.analytics.tabUsage"),t[58]=e,t[59]=$):$=t[59];let P;t[60]!==$?(P=s.jsx(le,{value:"usage",children:$}),t[60]=$,t[61]=P):P=t[61];let B;t[62]!==e?(B=e("thread.analytics.tabErrors"),t[62]=e,t[63]=B):B=t[63];let H;t[64]!==B?(H=s.jsx(le,{value:"errors",children:B}),t[64]=B,t[65]=H):H=t[65];let A;t[66]!==I||t[67]!==P||t[68]!==H?(A=s.jsxs(Le,{children:[I,P,H]}),t[66]=I,t[67]=P,t[68]=H,t[69]=A):A=t[69];let F;t[70]!==i||t[71]!==a?(F=a==="live"&&s.jsx(Ye,{org:i}),t[70]=i,t[71]=a,t[72]=F):F=t[72];let Y;t[73]!==F?(Y=s.jsx(re,{value:"live",children:F}),t[73]=F,t[74]=Y):Y=t[74];let M;t[75]!==g||t[76]!==i||t[77]!==a||t[78]!==d?(M=a==="usage"&&s.jsx(ue,{tool:"THREAD_ANALYTICS_USAGE",org:i,from:g,to:d}),t[75]=g,t[76]=i,t[77]=a,t[78]=d,t[79]=M):M=t[79];let q;t[80]!==M?(q=s.jsx(re,{value:"usage",children:M}),t[80]=M,t[81]=q):q=t[81];let G;t[82]!==g||t[83]!==i||t[84]!==a||t[85]!==d?(G=a==="errors"&&s.jsx(ue,{tool:"THREAD_ANALYTICS_ERRORS",org:i,from:g,to:d}),t[82]=g,t[83]=i,t[84]=a,t[85]=d,t[86]=G):G=t[86];let W;t[87]!==G?(W=s.jsx(re,{value:"errors",children:G}),t[87]=G,t[88]=W):W=t[88];let X;t[89]!==A||t[90]!==Y||t[91]!==q||t[92]!==W||t[93]!==a?(X=s.jsxs(Ee,{value:a,onValueChange:O,children:[A,Y,q,W]}),t[89]=A,t[90]=Y,t[91]=q,t[92]=W,t[93]=a,t[94]=X):X=t[94];let te;return t[95]!==E||t[96]!==D||t[97]!==X?(te=s.jsx(se.Content,{children:s.jsx("div",{className:"flex h-full min-h-0 flex-col overflow-auto",children:s.jsxs("div",{className:"mx-auto flex w-full max-w-[1680px] flex-col gap-4 px-4 py-6 sm:px-8 sm:py-8",children:[E,D,X]})})}),t[95]=E,t[96]=D,t[97]=X,t[98]=te):te=t[98],te}function We(t){return{value:t.slug,label:`${t.slug} · ${t.name}`}}function Xe(){return Date.now()}export{pl as default};
|