decocms 4.406.0 → 4.406.2
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-CgujCznd.js → AlertCircle-BQVXEKUc.js} +1 -1
- package/dist/client/assets/{AreaChart-Dl87CKFl.js → AreaChart-B_KOVsWH.js} +1 -1
- package/dist/client/assets/{ArrowLeft-DYz0WE09.js → ArrowLeft-BeFq6jod.js} +1 -1
- package/dist/client/assets/{ArrowRight-CWiigebn.js → ArrowRight-DVxyJd1l.js} +1 -1
- package/dist/client/assets/{ArrowUp-DBpBKFdD.js → ArrowUp-MMes236V.js} +1 -1
- package/dist/client/assets/{CartesianChart-CQtCbOPS.js → CartesianChart-4nAUsvcH.js} +1 -1
- package/dist/client/assets/{Check-BO0tsZXP.js → Check-DjwzpZIC.js} +1 -1
- package/dist/client/assets/{CheckCircle-DppxuNa7.js → CheckCircle-CflfIWoL.js} +1 -1
- package/dist/client/assets/{ChevronUp-WgMV95Wl.js → ChevronUp-BYWuf4SY.js} +1 -1
- package/dist/client/assets/{Copy01-CP89x_RS.js → Copy01-CjQc-Ykz.js} +1 -1
- package/dist/client/assets/{CreditCard01-H8jUQWxs.js → CreditCard01-Cl8DBAML.js} +1 -1
- package/dist/client/assets/{DotsVertical-4TEj21cV.js → DotsVertical-BV4Cp92F.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-qNEZftpi.js → ErrorBarContext-DMbtuZnP.js} +1 -1
- package/dist/client/assets/{Eye-ARN8W0OA.js → Eye-CEZdPSLz.js} +1 -1
- package/dist/client/assets/{Globe04-CdU3biQC.js → Globe04-t1_NZ4S5.js} +1 -1
- package/dist/client/assets/{Image01-l9PMSSY0.js → Image01-Bed8faGM.js} +1 -1
- package/dist/client/assets/{Key01-QkJYBYv-.js → Key01-DDYGtlfn.js} +1 -1
- package/dist/client/assets/{LayoutLeft-CgYc0js8.js → LayoutLeft-CZkz1jNL.js} +1 -1
- package/dist/client/assets/{Line-Bv4GUfne.js → Line-CXvxeuZf.js} +1 -1
- package/dist/client/assets/{Link01-CmwuZgWx.js → Link01-BbIArCE_.js} +1 -1
- package/dist/client/assets/{LinkExternal01-DQ25aknz.js → LinkExternal01-DpNDkCnx.js} +1 -1
- package/dist/client/assets/{Monitor01-BVwwAtM6.js → Monitor01-Ah5De9w0.js} +1 -1
- package/dist/client/assets/{Palette-Bjt7HH4h.js → Palette-ChnBuAtH.js} +1 -1
- package/dist/client/assets/{Plus-TU-OKHt0.js → Plus-BICk297J.js} +1 -1
- package/dist/client/assets/{SearchMd-Cm4pXgfM.js → SearchMd-v8QAVRjQ.js} +1 -1
- package/dist/client/assets/{Sector-BdyQFYKV.js → Sector-Ch6wxiVl.js} +1 -1
- package/dist/client/assets/{Share07-DyeTiScB.js → Share07-CmuXKCN5.js} +1 -1
- package/dist/client/assets/{Sun-DgGlHV06.js → Sun-DTRl56RH.js} +1 -1
- package/dist/client/assets/{Tool01-CQ5Xc26A.js → Tool01-Bdvuj8zb.js} +1 -1
- package/dist/client/assets/{Trash01-B9y1vShv.js → Trash01-B5wUzx2c.js} +1 -1
- package/dist/client/assets/{Upload01-DAXWNq7T.js → Upload01-Cu-9L0qW.js} +1 -1
- package/dist/client/assets/{User01-p3MXVQ0Z.js → User01-DaLqt8Zu.js} +1 -1
- package/dist/client/assets/{UserSquare-C7aUR_aW.js → UserSquare-C7TikGGO.js} +1 -1
- package/dist/client/assets/{Users01-CohEKYSh.js → Users01-BGfUl9Z9.js} +1 -1
- package/dist/client/assets/{X-qOHqlxey.js → X-CRCA8SGk.js} +1 -1
- package/dist/client/assets/{XClose-hPk1Hqkr.js → XClose-DJgtnkEc.js} +1 -1
- package/dist/client/assets/{Zap-CyBIW8px.js → Zap-DHslHQ0t.js} +1 -1
- package/dist/client/assets/{ZoomOut-DZCavZ8o.js → ZoomOut-DIggrZVG.js} +1 -1
- package/dist/client/assets/{access-gate-DNEAyv2j.js → access-gate-Cco763GH.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-bRZtyL-b.js → add-connection-dialog-CvOk-16j.js} +1 -1
- package/dist/client/assets/{agent-analytics-tSEQzJqV.js → agent-analytics-BuShy2lS.js} +1 -1
- package/dist/client/assets/agent-app-D6Tp5vlj.js +1 -0
- package/dist/client/assets/{agent-assets-B0UpGeZB.js → agent-assets-R_wphq7p.js} +1 -1
- package/dist/client/assets/{agent-automation-BnqBubMi.js → agent-automation-C6iPqVOP.js} +1 -1
- package/dist/client/assets/{agent-automations-Bhwn57Bu.js → agent-automations-CLIHaUQn.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-e0UYTGJa.js → agent-connect-sources-tobP9soC.js} +1 -1
- package/dist/client/assets/agent-deck-DtlpMciC.js +1 -0
- package/dist/client/assets/{agent-e2e-nAUWbLbx.js → agent-e2e-DakaaNs8.js} +1 -1
- package/dist/client/assets/{agent-experiments-BolDhf_W.js → agent-experiments-BhEpxS1S.js} +1 -1
- package/dist/client/assets/{agent-file-C1aTOAN-.js → agent-file-B7S5_-vD.js} +1 -1
- package/dist/client/assets/{agent-git-BjUtQS3j.js → agent-git-so-osFz0.js} +1 -1
- package/dist/client/assets/{agent-hosting-DIjx0dPc.js → agent-hosting-BXsuvmaY.js} +1 -1
- package/dist/client/assets/{agent-icon-Bd0IZ2xl.js → agent-icon-DZc84vtW.js} +1 -1
- package/dist/client/assets/agent-library-file-BbHf83br.js +1 -0
- package/dist/client/assets/{agent-monitor-DKKZFNMi.js → agent-monitor-Y-y8WkNo.js} +1 -1
- package/dist/client/assets/{agent-overview-lYvI4Nyl.js → agent-overview-Bxx3mqx3.js} +1 -1
- package/dist/client/assets/agent-settings-BdnQNFuI.js +1 -0
- package/dist/client/assets/{agent-site-editor-CdJOqKVu.js → agent-site-editor-CPf68n1p.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-C5W28gjl.js +2 -0
- package/dist/client/assets/{agent-site-editor-content-DXhW4uZI.js → agent-site-editor-content-Dbmoy-9X.js} +3 -3
- package/dist/client/assets/{agent-site-editor-preview-CWf5w5wW.js → agent-site-editor-preview-GS0ijSSp.js} +3 -3
- package/dist/client/assets/agent-view-BjdG_eVV.js +1 -0
- package/dist/client/assets/{agent-view-guard-yKF0ckjL.js → agent-view-guard-RZaWWh8q.js} +1 -1
- package/dist/client/assets/{agents-list-BGbR4Gn2.js → agents-list-BRhXk1wX.js} +1 -1
- package/dist/client/assets/{ai-providers-D6lyG4Rj.js → ai-providers-DsuBk_lC.js} +1 -1
- package/dist/client/assets/{alert-D1vpzkWd.js → alert-CyFB5Q7g.js} +1 -1
- package/dist/client/assets/{alert-dialog-EQsgmpuA.js → alert-dialog-Cp1oRtvU.js} +1 -1
- package/dist/client/assets/{analytics-sections-YNBdLO_f.js → analytics-sections-BvlUaDYV.js} +1 -1
- package/dist/client/assets/api-keys-C2GXQUdc.js +1 -0
- package/dist/client/assets/{api-keys-Buj2Mg4T.js → api-keys-CClkqBtA.js} +1 -1
- package/dist/client/assets/app-editor-BXC1buiG.js +1 -0
- package/dist/client/assets/{asset-utils-9XLqBp-Q.js → asset-utils-DmV7MwAi.js} +1 -1
- package/dist/client/assets/{auth-B4tHClP5.js → auth-DewE0vsZ.js} +1 -1
- package/dist/client/assets/{auth-catchall-BA6qJurQ.js → auth-catchall-CnLOzh6z.js} +1 -1
- package/dist/client/assets/{auth-entry--UoEULta.js → auth-entry-BYurZCL8.js} +1 -1
- package/dist/client/assets/{auth-split-layout-C2Z78rym.js → auth-split-layout-cVJzCAIz.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-EABJT3_J.js → authenticate-and-persist-oauth-C0spMpLN.js} +1 -1
- package/dist/client/assets/{automation-list-row-C62I8jHw.js → automation-list-row-D9W4FguS.js} +1 -1
- package/dist/client/assets/{automation-runs-CvKbK1mn.js → automation-runs-pUjgCSfr.js} +1 -1
- package/dist/client/assets/{automations-KmRW23R-.js → automations-BWboyFGA.js} +1 -1
- package/dist/client/assets/{autosend-BwqeYDrP.js → autosend-BOLn22FP.js} +1 -1
- package/dist/client/assets/{avatar-DNbeZQMl.js → avatar-BXB8p0uZ.js} +1 -1
- package/dist/client/assets/{badge-Dn4B9MPM.js → badge-L3Pfb7lT.js} +1 -1
- package/dist/client/assets/{block-document-BcubOVW1.js → block-document-CZmZt_GS.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-CiPsRjF4.js → blocks-preview-workspace-context-C6-ILFRy.js} +1 -1
- package/dist/client/assets/{buckets-DuU1P-Pt.js → buckets-C_5U-zUS.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-l2J5lTda.js → build-improve-prompt-doc-CYmkt9A_.js} +1 -1
- package/dist/client/assets/{calendar-Bd64vnKI.js → calendar-mQVeScA0.js} +1 -1
- package/dist/client/assets/{capability-load-error-D7kLzc_F.js → capability-load-error-BjPwGIMH.js} +1 -1
- package/dist/client/assets/{cards-CJ0w9n3U.js → cards-CfITToen.js} +1 -1
- package/dist/client/assets/{category-editor-Ye7w61VX.js → category-editor-_XlPQ_JR.js} +1 -1
- package/dist/client/assets/{chart-YCh8lrvr.js → chart-B_RS6v6i.js} +1 -1
- package/dist/client/assets/{chat-context-BNtTPn2v.js → chat-context-IHDWgDQ6.js} +1 -1
- package/dist/client/assets/{chat-draft-BrbpfreL.js → chat-draft-bxwRcHk2.js} +1 -1
- package/dist/client/assets/{checkbox-CzVzwj4A.js → checkbox-WzAY3JJD.js} +1 -1
- package/dist/client/assets/{choose-editor-DTAKYLOA.js → choose-editor-DHuVN8EQ.js} +1 -1
- package/dist/client/assets/{claim-phase-copy-DQok8asH.js → claim-phase-copy-BXZD4tAp.js} +1 -1
- package/dist/client/assets/{cli-auth-success-CtopuIcy.js → cli-auth-success-BekLnyCd.js} +1 -1
- package/dist/client/assets/{client-icons-C8ttTPrI.js → client-icons-BEF-E-JI.js} +1 -1
- package/dist/client/assets/{collapsible-DlWH4-1Q.js → collapsible-BKe2_9O7.js} +1 -1
- package/dist/client/assets/{collection-detail-DZ5ZAb4J.js → collection-detail-FqVAo6sr.js} +1 -1
- package/dist/client/assets/{collection-display-button-CT2-bXQw.js → collection-display-button-B-NPFUs4.js} +1 -1
- package/dist/client/assets/{collection-search-CCzn1jJM.js → collection-search-66MPCgMJ.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-DCyUxWRM.js → collection-table-wrapper-C04p-A9X.js} +1 -1
- package/dist/client/assets/{collection-tabs-CZs317SQ.js → collection-tabs-PNDYs7Tm.js} +1 -1
- package/dist/client/assets/{combobox-DhpMW_Q6.js → combobox-yM7XxeWn.js} +1 -1
- package/dist/client/assets/{command-C24f7Kyz.js → command-Dz5qWruW.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-DLTvOHE6.js → companion-mcps-section-CseZP29y.js} +1 -1
- package/dist/client/assets/{connect-Dx9YF6jh.js → connect-BbrTSpN5.js} +1 -1
- package/dist/client/assets/{connect-layout-Cs5G1BKf.js → connect-layout-CDDVbEzl.js} +1 -1
- package/dist/client/assets/{connection-DSaol0Ng.js → connection-D_Ad-k2g.js} +1 -1
- package/dist/client/assets/{connection-card-DxtmlEpf.js → connection-card-D84FLYUf.js} +1 -1
- package/dist/client/assets/{connection-detail-D3B1Lmjt.js → connection-detail-CpZDxB7F.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-DCcCOjwY.js → connection-form-helpers-5k0v0Re8.js} +1 -1
- package/dist/client/assets/{connections-DupmsXsG.js → connections-ByYjvA85.js} +1 -1
- package/dist/client/assets/{context-B7GvP0a5.js → context-DzVAzWtC.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-DjT0FfLO.js → create-organization-dialog-DzedjPhW.js} +1 -1
- package/dist/client/assets/{decopilot-CdSUSOau.js → decopilot-OImya6-h.js} +1 -1
- package/dist/client/assets/{dialog-BWmqK6vg.js → dialog-Cz2_YOoM.js} +1 -1
- package/dist/client/assets/{discover-BVVbBxyt.js → discover-BekL4zcZ.js} +1 -1
- package/dist/client/assets/{domain-settings-B-eYE41J.js → domain-settings-BNV22Gio.js} +1 -1
- package/dist/client/assets/{download-app-dialog-ZwXjVAnk.js → download-app-dialog-CLcZY4uQ.js} +1 -1
- package/dist/client/assets/{drawer-DNfsLwl_.js → drawer-BVbxEc-U.js} +1 -1
- package/dist/client/assets/{editor-C4W1ZTll.js → editor-zQPoF7nF.js} +1 -1
- package/dist/client/assets/{empty-state-BCQvGGl1.js → empty-state-BMXb2rB5.js} +1 -1
- package/dist/client/assets/{empty-state-CQWpCNEd.js → empty-state-Da-fHzIT.js} +1 -1
- package/dist/client/assets/{extract-connection-data-fRjq1au-.js → extract-connection-data-BvsecQuq.js} +1 -1
- package/dist/client/assets/{feature-gate-CfqoPyXH.js → feature-gate-DkU3CxuK.js} +1 -1
- package/dist/client/assets/{feature-paywall-BwEH2JPL.js → feature-paywall-D6H1XrEk.js} +1 -1
- package/dist/client/assets/{file-explorer-BpNCsQeN.js → file-explorer-CiVqz-p-.js} +1 -1
- package/dist/client/assets/{file-preview-CPwvdgRN.js → file-preview-BCzcW5IM.js} +1 -1
- package/dist/client/assets/{file-share-button-CNqX1uKM.js → file-share-button-BCbyDdG4.js} +1 -1
- package/dist/client/assets/{file-type-icon-UKBN2uy0.js → file-type-icon-DnKDJ8Kn.js} +1 -1
- package/dist/client/assets/{folder-icon-BUWRYFGK.js → folder-icon-gl7W6Tvq.js} +1 -1
- package/dist/client/assets/{form-Dd8uuw3Z.js → form-BFyytVo6.js} +1 -1
- package/dist/client/assets/{gateway-client-CND_0J2Q.js → gateway-client-C_Ex0ISa.js} +1 -1
- package/dist/client/assets/{general-tgZjCrGf.js → general-D6tjE2j7.js} +1 -1
- package/dist/client/assets/{github-icon-xYGi4_zU.js → github-icon-DWXYv1Ij.js} +1 -1
- package/dist/client/assets/github-repo-B15wwZ1g.js +1 -0
- package/dist/client/assets/{home-Dyn_f2jZ.js → home-CZA4NVdc.js} +1 -1
- package/dist/client/assets/{hooks-57fUVc8E.js → hooks-ClyBk0k_.js} +1 -1
- package/dist/client/assets/{icon-button-CDtcbOEr.js → icon-button-a1oHWXnD.js} +1 -1
- package/dist/client/assets/{index-DG-VU0NB.js → index-B0_orRJ4.js} +1 -1
- package/dist/client/assets/{index-B6Tu7EzF.js → index-BF_gwFuP.js} +1 -1
- package/dist/client/assets/{index-D2aZ-FY9.js → index-CenNUKjy.js} +1 -1
- package/dist/client/assets/{index-DXiYogYY.js → index-CyuU6yZd.js} +1 -1
- package/dist/client/assets/{index-OsBQe2QB.js → index-Cz9e3Wwk.js} +1 -1
- package/dist/client/assets/{index-BRtQvkRe.js → index-D6fwXcTM.js} +1 -1
- package/dist/client/assets/{index-CZmAPBsQ.js → index-D7HYUfJC.js} +1 -1
- package/dist/client/assets/{index-DJL19bsX.js → index-DUDizWti.js} +1 -1
- package/dist/client/assets/{index-D88UyMf8.js → index-Dhz79JsH.js} +1 -1
- package/dist/client/assets/{index-DXnvqmcL.js → index-DuAhWQOd.js} +1 -1
- package/dist/client/assets/{index-a8XScFmZ.js → index-K4Vfh2kg.js} +2 -2
- package/dist/client/assets/{index-_tZ6iIAI.js → index-XQdvud1d.js} +1 -1
- package/dist/client/assets/{index-CGM1QhoP.js → index-q4Xl54Dx.js} +1 -1
- package/dist/client/assets/{index-redirect-B0jTPPl2.js → index-redirect-B6p9S-WJ.js} +1 -1
- package/dist/client/assets/{index-BhOqFKQs.js → index-wc3LsJ73.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-vADGuTxL.js → infiniteQueryObserver-DrFl4m2S.js} +1 -1
- package/dist/client/assets/{infra-billing-C_vV8Zpq.js → infra-billing-HCI22mTY.js} +1 -1
- package/dist/client/assets/{input-HBy0gWnZ.js → input-CjG0yUIG.js} +1 -1
- package/dist/client/assets/{input-5OigQZTm.js → input-DfvZ3ikK.js} +1 -1
- package/dist/client/assets/{input-DBK_w2ku.js → input-JwI18_DS.js} +1 -1
- package/dist/client/assets/{integration-icon-Dz6rheZV.js → integration-icon-DrJdUHVx.js} +1 -1
- package/dist/client/assets/{label-xjEYWx7p.js → label-CbL3uHGW.js} +1 -1
- package/dist/client/assets/{last-preview-page-B6g9UIg-.js → last-preview-page-DEzwzCp-.js} +1 -1
- package/dist/client/assets/{layout-DXU0Xubq.js → layout-DMcycabY.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-VUIOxOMz.js → legacy-agents-deep-C3Zyezst.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-Vdn7ugUH.js → legacy-main-redirect-COndmWyH.js} +1 -1
- package/dist/client/assets/{library-Cu0rCSTQ.js → library-DbAgblb-.js} +1 -1
- package/dist/client/assets/{login-BMhzWIRn.js → login-CXY1yuZY.js} +1 -1
- package/dist/client/assets/{markdown-W3XRuNet.js → markdown-DOZYcDNd.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-DkVBLMEl.js → mcp-app-renderer-DRfDWjg6.js} +1 -1
- package/dist/client/assets/{mcp-oauth-3u1U11Wr.js → mcp-oauth-BTDQqGE0.js} +1 -1
- package/dist/client/assets/{members-v5L4AjzR.js → members-BEiKQ73m.js} +1 -1
- package/dist/client/assets/{message-templates-BvUtBueU.js → message-templates-CzGF1cA9.js} +1 -1
- package/dist/client/assets/{mini-report-page-BmsRKdKM.js → mini-report-page-D2baj09A.js} +1 -1
- package/dist/client/assets/{mock-board-DTt1aI29.js → mock-board-C8LOIHzu.js} +3 -3
- package/dist/client/assets/{monaco-editor-BHGY_yVV.js → monaco-editor-_MEmcrMi.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-CMukw8SN.js → monitoring-stats-row-B5_lpP36.js} +1 -1
- package/dist/client/assets/{multi-select-DEfDPvag.js → multi-select-CdvqIvqU.js} +1 -1
- package/dist/client/assets/{mustache-uYJjGzq3.js → mustache-CPcQeOG0.js} +1 -1
- package/dist/client/assets/{oauth-callback-e_uxEp2U.js → oauth-callback-C3bvGl4h.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-CJR_fnOb.js → oauth-callback-ai-provider-BFMT3UdD.js} +1 -1
- package/dist/client/assets/{onboarding-C_MoLVsp.js → onboarding-DtANDRsT.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-D8HlHK3x.js → optimistic-project-sidebar-views-DEWSMOzi.js} +1 -1
- package/dist/client/assets/{org-file-open-context-DP3MZUa1.js → org-file-open-context-Cej-kKNF.js} +1 -1
- package/dist/client/assets/{organization-choice-8-I0dE_H.js → organization-choice-DJxOpcPs.js} +1 -1
- package/dist/client/assets/{orgs-uAbNfBwh.js → orgs-6Wa09XqX.js} +1 -1
- package/dist/client/assets/{page-seo-form-BOJVpgo6.js → page-seo-form-DJY4lle7.js} +1 -1
- package/dist/client/assets/{pair-DwgUrqzM.js → pair-Bs4OFZd1.js} +1 -1
- package/dist/client/assets/{plan-ladder-DLxu0Wxh.js → plan-ladder-8vg2rlwa.js} +1 -1
- package/dist/client/assets/{popover-DKjcSfLB.js → popover-BhNcAD5X.js} +1 -1
- package/dist/client/assets/{post-calendar-CX7RLqUU.js → post-calendar-8dVtvspR.js} +1 -1
- package/dist/client/assets/{post-editor-DQy-xLxP.js → post-editor-B3pGOrms.js} +1 -1
- package/dist/client/assets/{preview-content-Ch72-5__.js → preview-content-D9TR_OCi.js} +1 -1
- package/dist/client/assets/{preview-dialog-Kdnb3KQ2.js → preview-dialog-uefldvQJ.js} +1 -1
- package/dist/client/assets/{profile-IGVv2rJN.js → profile-BOPnUUUc.js} +1 -1
- package/dist/client/assets/{project-app-view-x_-e_Lbw.js → project-app-view-CXTxnzE0.js} +1 -1
- package/dist/client/assets/{project-feed-DwfoXmCH.js → project-feed-B8QXSSsQ.js} +1 -1
- package/dist/client/assets/{project-icon-DtlCoOxs.js → project-icon-BK7It3uv.js} +1 -1
- package/dist/client/assets/project-reports-CU7shTBi.js +1 -0
- package/dist/client/assets/project-tasks-DFi0AJKe.js +1 -0
- package/dist/client/assets/{prompts-9Ciu0DHj.js → prompts-Cp6MUNg1.js} +1 -1
- package/dist/client/assets/record-editor-BFnZqKUj.js +1 -0
- package/dist/client/assets/{redirect-editor-DhoJUB71.js → redirect-editor-BooBJZnR.js} +1 -1
- package/dist/client/assets/reports-BW-QoVax.js +1 -0
- package/dist/client/assets/{reports-DGmWaCFr.js → reports-DpNr3YR6.js} +1 -1
- package/dist/client/assets/{reports-onboarding-BpRkFZDN.js → reports-onboarding-D8veE4dS.js} +1 -1
- package/dist/client/assets/{reports-tab-DxWEYXL_.js → reports-tab-BrMcs3Pf.js} +2 -2
- package/dist/client/assets/{repositories-CJ6hjTj5.js → repositories-D_tmdpJ8.js} +1 -1
- package/dist/client/assets/{repository-import-picker-CcnsKtpd.js → repository-import-picker-BrVrNQp2.js} +1 -1
- package/dist/client/assets/{repository-picker-72QfMFWx.js → repository-picker-5veCw3bv.js} +1 -1
- package/dist/client/assets/{require-capability-DH6k_3fM.js → require-capability-BXbVP8Te.js} +1 -1
- package/dist/client/assets/{required-auth-layout-DMazcHjn.js → required-auth-layout-q7AyqreJ.js} +1 -1
- package/dist/client/assets/{reset-password-B_iQOKSQ.js → reset-password-BV_oLArt.js} +1 -1
- package/dist/client/assets/{resizable-CDXwX1EQ.js → resizable-D5h_i3Cv.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-D_xtoMYK.js → resolve-tab-icon-BRqSZn8F.js} +1 -1
- package/dist/client/assets/{review-settings-OW0K00fh.js → review-settings-CUXs59zb.js} +1 -1
- package/dist/client/assets/{rich-text-link-control-BhCauUBJ.js → rich-text-link-control-hCgf6vwY.js} +1 -1
- package/dist/client/assets/{roles-mbHqfQsN.js → roles-92Mfuaie.js} +1 -1
- package/dist/client/assets/{route-jTfsMPRt.js → route-B07-zVJy.js} +1 -1
- package/dist/client/assets/{route-DP3hx43s.js → route-Cq_E3u9y.js} +1 -1
- package/dist/client/assets/{route-CFY-8tGH.js → route-DzLLBN_l.js} +1 -1
- package/dist/client/assets/{route-page-header-CGZ8hlbE.js → route-page-header-D2v-N63X.js} +1 -1
- package/dist/client/assets/{runnable-block-editor-a1foluPz.js → runnable-block-editor-D5Om2hS9.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-C_uX5vaY.js → sandbox-lifecycle-context-DDvqjx4F.js} +1 -1
- package/dist/client/assets/{schema-C0UHuNyx.js → schema-OZ6y31ku.js} +1 -1
- package/dist/client/assets/{scroll-area-TOykm0pn.js → scroll-area-CrFzneCm.js} +1 -1
- package/dist/client/assets/{search-input-DX8Af1_h.js → search-input-MXvNbubn.js} +1 -1
- package/dist/client/assets/{search-toggle-CpNXm-HK.js → search-toggle-OXNBAfan.js} +1 -1
- package/dist/client/assets/{secret-picker-BDwnJCqm.js → secret-picker-olJPqPoi.js} +1 -1
- package/dist/client/assets/{secrets-C8P9K06C.js → secrets-Cttvdk2_.js} +1 -1
- package/dist/client/assets/{sections-editor-BVD7-dMM.js → sections-editor-BkzNFswN.js} +1 -1
- package/dist/client/assets/{select-Bqp_U1ks.js → select-DxOzi3UD.js} +1 -1
- package/dist/client/assets/{select-model-CwN0uiJw.js → select-model-N7bwAuKh.js} +1 -1
- package/dist/client/assets/{seo-editor-Z7UEKCep.js → seo-editor-BbScE4FO.js} +1 -1
- package/dist/client/assets/{separator-CRMA5Wms.js → separator-CmRrTp4P.js} +1 -1
- package/dist/client/assets/{settings-tab-gQ1sYUFr.js → settings-tab-F5_VZsFA.js} +1 -1
- package/dist/client/assets/{sheet-CnG_30Tu.js → sheet-AhK1Q4GA.js} +1 -1
- package/dist/client/assets/{shell-layout-C1ofRTSy.js → shell-layout-BbZrykxM.js} +1 -1
- package/dist/client/assets/{skill-preview-D2C3TdbC.js → skill-preview-D2tUoLmU.js} +1 -1
- package/dist/client/assets/{skills-BkdXpy6f.js → skills-8G1WBDrj.js} +1 -1
- package/dist/client/assets/{sso-DS1IZ-Cy.js → sso-D1j1eaaw.js} +1 -1
- package/dist/client/assets/{suggestion-BKo4wcW5.js → suggestion-D2LW2rth.js} +1 -1
- package/dist/client/assets/{switch-CAv8chXa.js → switch-Dxukqc0d.js} +1 -1
- package/dist/client/assets/{synced-repos-BAz91gxb.js → synced-repos-QFrSnbHa.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-C7PcdX64.js → tab-icon-glyph-BJ5K3vOh.js} +1 -1
- package/dist/client/assets/{table-BQzAWihK.js → table-DQGBCTGl.js} +1 -1
- package/dist/client/assets/{tabs-BB69CAa_.js → tabs-CgudHfJv.js} +1 -1
- package/dist/client/assets/{task-board-DAXz0qcI.js → task-board-Bc_5nEh1.js} +1 -1
- package/dist/client/assets/task-route-DMhHeGp_.js +1 -0
- package/dist/client/assets/{task-status-DsuZMZki.js → task-status-CxrGIdHQ.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-CnhQSjI5.js → taskboard-analytics-CkQr3tK7.js} +1 -1
- package/dist/client/assets/tasks-BLCuiNcA.js +1 -0
- package/dist/client/assets/{tasks-EhOSvMOE.js → tasks-Bnn9RQl1.js} +1 -1
- package/dist/client/assets/{textarea-CQB0iWWu.js → textarea-C4Fl7vcj.js} +1 -1
- package/dist/client/assets/{thread-analytics-BxOFKU_J.js → thread-analytics-CE0WviO_.js} +1 -1
- package/dist/client/assets/{thread-button-C9DbsgYC.js → thread-button-EQmrPg3s.js} +1 -1
- package/dist/client/assets/{thread-intent-BVf_UeqN.js → thread-intent-DxlkHtay.js} +1 -1
- package/dist/client/assets/{thread-route-iDCB4hcC.js → thread-route-DC9aU1My.js} +1 -1
- package/dist/client/assets/{thread-route-B1ZSIzzT.js → thread-route-TxjlZd1E.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-D0e7nDaM.js → thread-sheet-body-BrDhZq1Z.js} +1 -1
- package/dist/client/assets/{toggle-group-DN5pA1xA.js → toggle-group-NfZmEEmD.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-DggL__pK.js → toolbar-icon-button-B_lHRucJ.js} +1 -1
- package/dist/client/assets/{tooltip-DG5CnGag.js → tooltip-Cy80lI1Y.js} +1 -1
- package/dist/client/assets/{track-DtcT0XLB.js → track-CKzt_alj.js} +1 -1
- package/dist/client/assets/{types-BuaOQs2H.js → types-mQyngwgP.js} +1 -1
- package/dist/client/assets/{usage-stats-CfoUXIit.js → usage-stats-B-kd-KGd.js} +1 -1
- package/dist/client/assets/{use-ai-providers-DmDozsCa.js → use-ai-providers-zjIftbuA.js} +1 -1
- package/dist/client/assets/{use-automations-DlcqQAT-.js → use-automations-Bos3c2CS.js} +1 -1
- package/dist/client/assets/{use-autosave-Dnad_LVj.js → use-autosave-BPZqx8ru.js} +1 -1
- package/dist/client/assets/{use-connect-companion-De4fpUyT.js → use-connect-companion-DWeMHoIU.js} +1 -1
- package/dist/client/assets/{use-connection-B62IVwoq.js → use-connection-DT6Y_sWB.js} +1 -1
- package/dist/client/assets/{use-copy-PMhIFi8m.js → use-copy-CCt9uq_y.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-CaljxpC7.js → use-create-virtual-mcp-D8BgGLo0.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-C_k-ZNvB.js → use-date-fns-locale-8-Vndgvf.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-8--WWWFZ.js → use-debounced-autosave-CVGhSw1y.js} +1 -1
- package/dist/client/assets/{use-debounced-value-JsQcnlEX.js → use-debounced-value-CQxBbX3z.js} +1 -1
- package/dist/client/assets/{use-deco-credits-D7jE3Gb7.js → use-deco-credits-Bbxg62mu.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-CXHHAExG.js → use-decopilot-events-C-TjDtpG.js} +1 -1
- package/dist/client/assets/{use-delete-connection-CQADYnj0.js → use-delete-connection-DoGBhXiK.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-BeJp7zBn.js → use-deployment-admin-CMAr5-sz.js} +1 -1
- package/dist/client/assets/{use-entitlements-e5g60LFP.js → use-entitlements-OYbyxqXu.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-BoXMuGAj.js → use-fast-preview-draft-url-H9Q-1XHg.js} +1 -1
- package/dist/client/assets/{use-file-configs-DzDjWDbA.js → use-file-configs-C3rsyIax.js} +1 -1
- package/dist/client/assets/{use-in-settings-DF5a-yr6.js → use-in-settings-DTfVU5gG.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-BWjbZqkI.js → use-infinite-scroll-CitEQv_Q.js} +1 -1
- package/dist/client/assets/{use-join-requests-C-vRDubL.js → use-join-requests-DURmdBJt.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-COSZEEJN.js → use-main-panel-tabs-DCZX5mxy.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-cOXVTEWe.js → use-mcp-auth-status-DcPv-6wk.js} +1 -1
- package/dist/client/assets/{use-mcp-client-QkI6RUae.js → use-mcp-client-CR19JjtG.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-CTv5hWKn.js → use-mcp-prompts-C9ZSqhtN.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-CRxMLxmD.js → use-mcp-tools-NQLn3o-8.js} +1 -1
- package/dist/client/assets/{use-members-DJtmQ5I0.js → use-members-DGHnBAVp.js} +1 -1
- package/dist/client/assets/{use-mobile-BR3euFAT.js → use-mobile-rtsj2MZ1.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-CATWBqpJ.js → use-navigate-to-agent-DYgqDFZF.js} +1 -1
- package/dist/client/assets/use-new-blocks-editor-xOOrbCjh.js +1 -0
- package/dist/client/assets/{use-open-billing-url-CssGGbOV.js → use-open-billing-url-1mXCzVjQ.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-DD1x9ZUx.js → use-org-auth-client-Dq37iZE-.js} +1 -1
- package/dist/client/assets/{use-org-fs-CUzmVYxO.js → use-org-fs-mfYIenam.js} +1 -1
- package/dist/client/assets/{use-org-sso-C4Rm3HPT.js → use-org-sso-C8N9NZ6V.js} +1 -1
- package/dist/client/assets/{use-organization-roles-CbALx4Il.js → use-organization-roles-B1Y6_86t.js} +1 -1
- package/dist/client/assets/{use-organization-settings-Chk2oNMp.js → use-organization-settings-CY6osCto.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-BvXmhCXE.js → use-panel-navigate-BqFBzSWd.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-eLIweUr6.js → use-project-native-view-presence-7vj8rIc7.js} +1 -1
- package/dist/client/assets/{use-project-scope-Dg5JkMxK.js → use-project-scope-CdGBXW9U.js} +1 -1
- package/dist/client/assets/{use-releases-DFTelrXq.js → use-releases-DRDVY8Xc.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-DpBTdRcc.js → use-reports-diagnostic-D48-pm_p.js} +1 -1
- package/dist/client/assets/{use-route-default-main-RAA9Xu9b.js → use-route-default-main-CG99dur1.js} +1 -1
- package/dist/client/assets/{use-secrets-Be7dbg8N.js → use-secrets-BQr1wgkC.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-BsBwRpxR.js → use-section-preview-base-Be_ffjg-.js} +1 -1
- package/dist/client/assets/{use-session-runtime-16mMZo3B.js → use-session-runtime-epDsfla0.js} +1 -1
- package/dist/client/assets/{use-tags-TXZWvSN2.js → use-tags-BDr8xPIF.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-B3jA7fHY.js → use-task-board-analytics-DyOwTb8x.js} +1 -1
- package/dist/client/assets/{use-task-metadata-fbwKPdOL.js → use-task-metadata-B625VJsm.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-U5Jj6xFb.js → use-thread-analytics-D4T2O8XJ.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-fY2YVo4L.js → use-thread-outputs-CfLMzkB9.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-B22df3lH.js → use-virtual-mcp-gM6wRQv6.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-Bdkrqs8P.js +1 -0
- package/dist/client/assets/{useQueries-B7hWegsL.js → useQueries-MatxMDm4.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-6_TWTeTT.js +1 -0
- package/dist/client/assets/{users-B1mD9fdQ.js → users-DSJ7gYEW.js} +1 -1
- package/dist/client/assets/{utils-BvSnSvcy.js → utils-D2l1844I.js} +1 -1
- package/dist/client/assets/{variant-calendar-CpWcO1WH.js → variant-calendar-DP0eqUJc.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-CqVph4cp.js → variant-matcher-override-CHhx77jc.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-D6C4LcX3.js → view-mode-toggle-DSnYHXmD.js} +1 -1
- package/dist/client/assets/{virtual-mcp-CZOMxd4f.js → virtual-mcp-BLyxO2qI.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-D_LRMpO5.js +0 -1
- package/dist/client/assets/agent-deck-1Gy5jl1Q.js +0 -1
- package/dist/client/assets/agent-library-file-C6HS0CDW.js +0 -1
- package/dist/client/assets/agent-settings-Braq0K0j.js +0 -1
- package/dist/client/assets/agent-site-editor-code-_pcbcBCM.js +0 -2
- package/dist/client/assets/agent-view-B5TTa9Fr.js +0 -1
- package/dist/client/assets/api-keys-BIsdKQsQ.js +0 -1
- package/dist/client/assets/app-editor-Bc6BpUGO.js +0 -1
- package/dist/client/assets/github-repo-BknN0SVI.js +0 -1
- package/dist/client/assets/project-reports-Dc50o0bW.js +0 -1
- package/dist/client/assets/project-tasks-BTlGW7tU.js +0 -1
- package/dist/client/assets/record-editor-QZJr0INE.js +0 -1
- package/dist/client/assets/reports-CAO0dNuU.js +0 -1
- package/dist/client/assets/task-route-Dfyu6KvD.js +0 -1
- package/dist/client/assets/tasks-CNDczBnp.js +0 -1
- package/dist/client/assets/use-new-blocks-editor-DQBU1F-m.js +0 -1
- package/dist/client/assets/useInfiniteQuery-kTLnckn3.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-D3KJwbuZ.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{o as Ye,j as Ge,h as ie,D as ze,p as Qe,q as Ze}from"./index-_tZ6iIAI.js";import{r as p,er as Je,es as we,et,eu as j,ev as te,j as I,aN as tt,ew as nt,ex as ne,ey as ot,ez as rt,eA as st,eB as it,eC as at,eD as lt,eE as Ce,eF as ct,c as H,D as ut,K as dt,eG as ft,eH as gt,eI as mt,b as pt,l as vt,h as ht}from"./index-a8XScFmZ.js";import{g as bt,d as xt}from"./gateway-client-CND_0J2Q.js";import{A as yt}from"./agent-icon-Bd0IZ2xl.js";var Hn=Ye;var Et=["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=Et.join(","),Ie=typeof Element>"u",z=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},Rt=function(e){var t,o=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return o===""||o==="true"},St=function(e,t,o){if(ee(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(ae));return t&&z.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=z.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)||Rt(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=z.call(e,"details>summary:first-of-type"),a=i?e.parentElement:e;if(z.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 z.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=St(e,t.includeContainer,me.bind(null,t)),Ne(o)};function kt(){return/apple/i.test(navigator.vendor)}const pe="data-floating-ui-focusable";function _t(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 G(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 Q(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,Ht=Wt||(n=>n());function W(n){const e=p.useRef(()=>{});return Ht(()=>{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=_t(Q(n)),s=t.indexOf(r),i=s===-1?e===1?0:o-1:s+e;return t[i]}function Xt(n){return Oe(Q(n).body,1)||n}function Yt(n){return Oe(Q(n).body,-1)||n}function re(n,e){const t=e||n.currentTarget,o=n.relatedTarget;return!o||!ce(t,o)}function Gt(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 zt="data-floating-ui-focusable",he="active",be="selected",Qt={...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=Qt.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},Ee=p.forwardRef(function(e,t){const[o,r]=p.useState();V(()=>{kt()&&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),Re=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(Re,""),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(Re,""),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:Gt)(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(Ee,{"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(Ee,{"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=Xt(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"},Se=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:E,outsidePress:v}=Se(h),{escapeKey:D,outsidePress:C}=Se(y),O=p.useRef(!1),A=W(R=>{var S;if(!t||!i||!a||R.key!=="Escape"||O.current)return;const P=(S=s.current.floatingContext)==null?void 0:S.nodeId,M=m?Z(m.nodesRef.current,P):[];if(!E&&(R.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(R)?R.nativeEvent:R,"escape-key")}),F=W(R=>{var S;const P=()=>{var M;A(R),(M=G(R))==null||M.removeEventListener("keydown",P)};(S=G(R))==null||S.addEventListener("keydown",P)}),T=W(R=>{var S;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(R))return;const w=G(R),N="["+de("inert")+"]",q=Q(r.floating).querySelectorAll(N);let L=j(w)?w:null;for(;L&&!ne(L);){const k=ot(L);if(ne(k)||!j(k))break;L=k}if(q.length&&j(w)&&!Lt(w)&&!ce(w,r.floating)&&Array.from(q).every(k=>!ce(L,k)))return;if(rt(w)&&K){const k=ne(w),B=st(w),Y=/auto|scroll/,Ke=k||Y.test(B.overflowX),Be=k||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",He=Ve&&(We?R.offsetX<=w.offsetWidth-w.clientWidth:R.offsetX>w.clientWidth),Xe=Ue&&R.offsetY>w.clientHeight;if(He||Xe)return}const U=(S=s.current.floatingContext)==null?void 0:S.nodeId,X=m&&Z(m.nodesRef.current,U).some(k=>{var B;return oe(R,(B=k.context)==null?void 0:B.elements.floating)});if(oe(R,r.floating)||oe(R,r.domReference)||X)return;const fe=m?Z(m.nodesRef.current,U):[];if(fe.length>0){let k=!0;if(fe.forEach(B=>{var Y;if((Y=B.context)!=null&&Y.open&&!B.context.dataRef.current.__outsidePressBubbles){k=!1;return}}),!k)return}o(!1,R,"outside-press")}),$=W(R=>{var S;const P=()=>{var M;T(R),(M=G(R))==null||M.removeEventListener(c,P)};(S=G(R))==null||S.addEventListener(c,P)});p.useEffect(()=>{if(!t||!i)return;s.current.__escapeKeyBubbles=E,s.current.__outsidePressBubbles=v;let R=-1;function S(q){o(!1,q,"ancestor-scroll")}function P(){window.clearTimeout(R),O.current=!0}function M(){R=window.setTimeout(()=>{O.current=!1},nt()?5:0)}const w=Q(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",S,{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",S)}),window.clearTimeout(R)}},[s,r,a,x,c,t,o,g,i,E,v,A,D,F,T,C,$]),p.useEffect(()=>{s.current.insideReactTree=!1},[s,x,c]);const _=p.useMemo(()=>({onKeyDown:A,...d&&{[un[u]]:R=>{o(!1,R.nativeEvent,"reference-press")},...u!=="click"&&{onClick(R){o(!1,R.nativeEvent,"reference-press")}}}}),[A,o,d,u]),K=p.useMemo(()=>{function R(S){S.button===0&&(b.current=!0)}return{onKeyDown:A,onMouseDown:R,onMouseUp:R,[dn[c]]:()=>{s.current.insideReactTree=!0}}},[A,c,s]);return p.useMemo(()=>i?{reference:_,floating:K}:{},[i,_,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(E=>{const v=j(E)?{getBoundingClientRect:()=>E.getBoundingClientRect(),getClientRects:()=>E.getClientRects(),contextElement:E}:E;l(v),h.refs.setReference(v)},[h.refs]),m=p.useCallback(E=>{(j(E)||E===null)&&(u.current=E,i(E)),(j(h.refs.reference.current)||h.refs.reference.current===null||E!==null&&!j(E))&&h.refs.setReference(E)},[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 E=g?.nodesRef.current.find(v=>v.id===e);E&&(E.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,[zt]:""},...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:E,selected:v}=b;const D={role:"option",...E&&{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 E=m+f.index;let v=E+f[0].length;return l&&d.test(y.slice(v-1,v+1))&&(f[0]+=" ",v+=1),E<a.pos&&v>=a.pos?{range:{from:E,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 Ge,h as ie,D as ze,p as Qe,q as Ze}from"./index-XQdvud1d.js";import{r as p,er as Je,es as we,et,eu as j,ev as te,j as I,aN as tt,ew as nt,ex as ne,ey as ot,ez as rt,eA as st,eB as it,eC as at,eD as lt,eE as Ce,eF as ct,c as H,D as ut,K as dt,eG as ft,eH as gt,eI as mt,b as pt,l as vt,h as ht}from"./index-K4Vfh2kg.js";import{g as bt,d as xt}from"./gateway-client-C_Ex0ISa.js";import{A as yt}from"./agent-icon-DZc84vtW.js";var Hn=Ye;var Et=["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=Et.join(","),Ie=typeof Element>"u",z=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},Rt=function(e){var t,o=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return o===""||o==="true"},St=function(e,t,o){if(ee(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(ae));return t&&z.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=z.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)||Rt(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=z.call(e,"details>summary:first-of-type"),a=i?e.parentElement:e;if(z.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 z.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=St(e,t.includeContainer,me.bind(null,t)),Ne(o)};function kt(){return/apple/i.test(navigator.vendor)}const pe="data-floating-ui-focusable";function _t(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 G(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 Q(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,Ht=Wt||(n=>n());function W(n){const e=p.useRef(()=>{});return Ht(()=>{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=_t(Q(n)),s=t.indexOf(r),i=s===-1?e===1?0:o-1:s+e;return t[i]}function Xt(n){return Oe(Q(n).body,1)||n}function Yt(n){return Oe(Q(n).body,-1)||n}function re(n,e){const t=e||n.currentTarget,o=n.relatedTarget;return!o||!ce(t,o)}function Gt(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 zt="data-floating-ui-focusable",he="active",be="selected",Qt={...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=Qt.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},Ee=p.forwardRef(function(e,t){const[o,r]=p.useState();V(()=>{kt()&&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),Re=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(Re,""),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(Re,""),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:Gt)(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(Ee,{"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(Ee,{"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=Xt(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"},Se=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:E,outsidePress:v}=Se(h),{escapeKey:D,outsidePress:C}=Se(y),O=p.useRef(!1),A=W(R=>{var S;if(!t||!i||!a||R.key!=="Escape"||O.current)return;const P=(S=s.current.floatingContext)==null?void 0:S.nodeId,M=m?Z(m.nodesRef.current,P):[];if(!E&&(R.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(R)?R.nativeEvent:R,"escape-key")}),F=W(R=>{var S;const P=()=>{var M;A(R),(M=G(R))==null||M.removeEventListener("keydown",P)};(S=G(R))==null||S.addEventListener("keydown",P)}),T=W(R=>{var S;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(R))return;const w=G(R),N="["+de("inert")+"]",q=Q(r.floating).querySelectorAll(N);let L=j(w)?w:null;for(;L&&!ne(L);){const k=ot(L);if(ne(k)||!j(k))break;L=k}if(q.length&&j(w)&&!Lt(w)&&!ce(w,r.floating)&&Array.from(q).every(k=>!ce(L,k)))return;if(rt(w)&&K){const k=ne(w),B=st(w),Y=/auto|scroll/,Ke=k||Y.test(B.overflowX),Be=k||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",He=Ve&&(We?R.offsetX<=w.offsetWidth-w.clientWidth:R.offsetX>w.clientWidth),Xe=Ue&&R.offsetY>w.clientHeight;if(He||Xe)return}const U=(S=s.current.floatingContext)==null?void 0:S.nodeId,X=m&&Z(m.nodesRef.current,U).some(k=>{var B;return oe(R,(B=k.context)==null?void 0:B.elements.floating)});if(oe(R,r.floating)||oe(R,r.domReference)||X)return;const fe=m?Z(m.nodesRef.current,U):[];if(fe.length>0){let k=!0;if(fe.forEach(B=>{var Y;if((Y=B.context)!=null&&Y.open&&!B.context.dataRef.current.__outsidePressBubbles){k=!1;return}}),!k)return}o(!1,R,"outside-press")}),$=W(R=>{var S;const P=()=>{var M;T(R),(M=G(R))==null||M.removeEventListener(c,P)};(S=G(R))==null||S.addEventListener(c,P)});p.useEffect(()=>{if(!t||!i)return;s.current.__escapeKeyBubbles=E,s.current.__outsidePressBubbles=v;let R=-1;function S(q){o(!1,q,"ancestor-scroll")}function P(){window.clearTimeout(R),O.current=!0}function M(){R=window.setTimeout(()=>{O.current=!1},nt()?5:0)}const w=Q(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",S,{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",S)}),window.clearTimeout(R)}},[s,r,a,x,c,t,o,g,i,E,v,A,D,F,T,C,$]),p.useEffect(()=>{s.current.insideReactTree=!1},[s,x,c]);const _=p.useMemo(()=>({onKeyDown:A,...d&&{[un[u]]:R=>{o(!1,R.nativeEvent,"reference-press")},...u!=="click"&&{onClick(R){o(!1,R.nativeEvent,"reference-press")}}}}),[A,o,d,u]),K=p.useMemo(()=>{function R(S){S.button===0&&(b.current=!0)}return{onKeyDown:A,onMouseDown:R,onMouseUp:R,[dn[c]]:()=>{s.current.insideReactTree=!0}}},[A,c,s]);return p.useMemo(()=>i?{reference:_,floating:K}:{},[i,_,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(E=>{const v=j(E)?{getBoundingClientRect:()=>E.getBoundingClientRect(),getClientRects:()=>E.getClientRects(),contextElement:E}:E;l(v),h.refs.setReference(v)},[h.refs]),m=p.useCallback(E=>{(j(E)||E===null)&&(u.current=E,i(E)),(j(h.refs.reference.current)||h.refs.reference.current===null||E!==null&&!j(E))&&h.refs.setReference(E)},[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 E=g?.nodesRef.current.find(v=>v.id===e);E&&(E.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,[zt]:""},...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:E,selected:v}=b;const D={role:"option",...E&&{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 E=m+f.index;let v=E+f[0].length;return l&&d.test(y.slice(v-1,v+1))&&(f[0]+=" ",v+=1),E<a.pos&&v>=a.pos?{range:{from:E,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 En(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 Rn({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 Sn({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),ze.create(a.doc,[Qe.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:E}=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)){(E<g.range.from||E>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 E(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,_=A.text!==F.text,K=A.range.from!==F.range.from||A.range.to!==F.range.to,R=$||_||K;if(!A.active&&F.active)T="started";else if(A.active&&!F.active)T="stopped";else if(F.active&&R)T="updated";else return;const S=T==="stopped"?A:F,P=v.dom.querySelector(`[data-decoration-id="${S.decorationId}"]`),M=y(v,P),w=r===0||(S.query?S.query.length>=r:!1),N=(T==="started"||T==="updated")&&w;if(f={editor:n,range:S.range,query:S.query||"",text:S.text||"",items:i??[],command:U=>h({editor:n,range:S.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"&&E(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",E(T,f);const U=await x.fetch(S.query||"",s);if(U.status==="aborted")return;const X=e.getState(v.state);if(!X?.active){x.abort();return}f=U.status==="resolved"?{...f,items:U.items,loading:!1}:{...f,loading:!1}}if(T==="stopped"){x.abort(),E(T,f),f=void 0;return}T==="updated"&&E(T,f)},destroy:()=>{var v;x.abort(),f&&(o==null||(v=o.onExit)===null||v===void 0||v.call(o,f))}}}const ke=new ie("suggestion");function _e({pluginKey:n=ke,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:E=!0,floatingUi:v,dismissOnOutsideClick:D=!0,render:C=()=>({}),allow:O=()=>!0,findSuggestionMatch:A=bn,shouldShow:F,shouldResetDismissed:T}){const $=C?.(),_=o&&!r,K=(P,M)=>En(e,P,M,n);function R(P){return Rn({...P,editor:e,shouldResetDismissed:T,effectiveAllowSpaces:_})}const S=P=>Sn({view:P,pluginKeyRef:n});return new Ge({key:n,view:()=>Nn({editor:e,pluginKey:n,items:g,renderer:$,minQueryLength:h,debounce:y,initialItems:m,placement:f,offset:x,container:b,flip:E,floatingUi:v,dismissOnOutsideClick:D,command:u,clientRectFor:K,dispatchExit:S}),state:Cn({editor:e,char:t,effectiveAllowSpaces:_,allowToIncludeChar:r,allowedPrefixes:s,startOfLine:i,findSuggestionMatch:A,allow:O,shouldShow:F,shouldKeepDismissed:R,pluginKey:n}),props:wn({pluginKey:n,decorationTag:a,decorationClass:l,decorationContent:c,decorationEmptyClass:d,renderer:$,dispatchExit:S})})}function Xn(n,e=ke){const t=n.state.tr.setMeta(e,{exit:!0});n.dispatch(t)}var Yn=_e;function Dn(n){const e=H.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,E;e[3]!==a?(b=()=>{d.current=a},E=[a],e[3]=a,e[4]=b,e[5]=E):(b=e[4],E=e[5]),p.useEffect(b,E);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 _;try{_=t.view.dom}catch{return}if(!_)return;const K=S=>{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(S.key){case"ArrowUp":return S.preventDefault(),w(),!0;case"ArrowDown":return S.preventDefault(),M(),!0;case"Tab":return S.preventDefault(),S.shiftKey?w():M(),!0;case"Home":return S.preventDefault(),l(0),!0;case"End":return S.preventDefault(),l(P.length-1),!0;case"Enter":{if(S.isComposing)return!1;S.preventDefault();const N=d.current;return N!==-1&&P[N]&&u.current?.(P[N],N),!0}case"Escape":return S.preventDefault(),g.current?.(),!0;default:return!1}},R=S=>{K(S)};return _.addEventListener("keydown",R,!0),()=>{_?.removeEventListener("keydown",R,!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=H.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=_e({pluginKey:m,editor:t,char:o,allow(b){const E=t.state.doc.resolve(b.range.from);for(let v=E.depth;v>0;v--)if(E.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 kn=n=>{const e=H.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},_n=n=>{const e=H.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,E)=>I.jsx(kn,{item:b,isSelected:E===u,ref:E===u?Kn:void 0,onSelect:()=>g(b,E),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=H.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 Gn(n){const e=H.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(_n,{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{Gn as S,Yn as a,Xn as e,Hn 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-K4Vfh2kg.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,fp as ye,b as ue,r as ae,B as te,ag as ge,l as je,t as ce,aO as Re}from"./index-a8XScFmZ.js";import{s as xe}from"./Plus-TU-OKHt0.js";import{A as be,a as ve,b as Se,c as De,g as Ne,d as _e,e as Ce,f as Pe}from"./alert-dialog-EQsgmpuA.js";import{d as Ae,h as ke,c as we,e as ze,b as Oe,D as Ee}from"./dialog-BWmqK6vg.js";import{I as Ie}from"./input-HBy0gWnZ.js";import{u as $e,G as Fe,R as Te}from"./repository-picker-72QfMFWx.js";import{a as Ge,d as Be,h as He,t as qe}from"./cards-CJ0w9n3U.js";import{R as Le}from"./require-capability-DH6k_3fM.js";import"./X-qOHqlxey.js";import"./ArrowLeft-DYz0WE09.js";import"./LinkExternal01-DQ25aknz.js";import"./tooltip-DG5CnGag.js";import"./index-D88UyMf8.js";import"./label-xjEYWx7p.js";import"./github-icon-xYGi4_zU.js";import"./useInfiniteQuery-kTLnckn3.js";import"./infiniteQueryObserver-vADGuTxL.js";import"./avatar-DNbeZQMl.js";import"./User01-p3MXVQ0Z.js";import"./collection-search-CCzn1jJM.js";import"./SearchMd-Cm4pXgfM.js";import"./use-debounced-value-JsQcnlEX.js";import"./use-org-fs-CUzmVYxO.js";import"./DotsVertical-4TEj21cV.js";import"./Eye-ARN8W0OA.js";import"./Share07-DyeTiScB.js";import"./Key01-QkJYBYv-.js";import"./Palette-Bjt7HH4h.js";import"./Trash01-B9y1vShv.js";import"./Zap-CyBIW8px.js";import"./file-type-icon-UKBN2uy0.js";import"./folder-icon-BUWRYFGK.js";import"./skill-md-ChfVs4uF.js";import"./access-gate-DNEAyv2j.js";import"./capability-load-error-D7kLzc_F.js";function Ve(e){return e.toLowerCase().replace(/[^a-z0-9_.-]+/g,"-").replace(/^[.-]+|[.-]+$/g,"").slice(0,128)}function Je(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:l,onRemove:i}=e,o=ue();let u;t[0]!==l||t[1]!==o?(u=Je(l,o),t[0]=l,t[1]=o,t[2]=u):u=t[2];const m=u,r=$e();let f;t[3]!==l.repositoryId||t[4]!==r.data?(f=r.data?.find(C=>C.id===l.repositoryId),t[3]=l.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??`${l.repoOwner}/${l.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]!==l.ref?(p=s.jsxs("span",{className:"text-xs text-muted-foreground shrink-0",children:["@",l.ref]}),t[10]=l.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 R;t[17]!==l.volume||t[18]!==o?(R=o("settings.syncedRepos.rowSubtitle",{volume:l.volume}),t[17]=l.volume,t[18]=o,t[19]=R):R=t[19];let b;t[20]!==m.label||t[21]!==R||t[22]!==D?(b=s.jsxs("p",{className:D,children:[R," ·"," ",m.label]}),t[20]=m.label,t[21]=R,t[22]=D,t[23]=b):b=t[23];let x;t[24]!==b||t[25]!==S?(x=s.jsxs("div",{className:"min-w-0",children:[S,b]}),t[24]=b,t[25]=S,t[26]=x):x=t[26];let h;t[27]!==x||t[28]!==g?(h=s.jsxs("div",{className:"flex items-start gap-3 min-w-0",children:[g,x]}),t[27]=x,t[28]=g,t[29]=h):h=t[29];let y;t[30]!==o?(y=o("settings.syncedRepos.remove"),t[30]=o,t[31]=y):y=t[31];let j;t[32]!==i||t[33]!==y?(j=s.jsx(te,{variant:"outline",size:"sm",onClick:i,children:y}),t[32]=i,t[33]=y,t[34]=j):j=t[34];let N;return t[35]!==h||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:[h,j]}),t[35]=h,t[36]=j,t[37]=N):N=t[37],N}function Me(e){const t=se.c(21),{onAdd:l}=e,i=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]!==i?(u=i("settings.syncedRepos.emptyTitle"),t[1]=i,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]!==i?(r=i("settings.syncedRepos.emptyDescription"),t[5]=i,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]!==i?(c=i("settings.syncedRepos.addRepo"),t[13]=i,t[14]=c):c=t[14];let d;t[15]!==l||t[16]!==c?(d=s.jsxs(te,{onClick:l,size:"sm",className:"mt-2",children:[g,c]}),t[15]=l,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(),l=Ge(),i=Be(),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]!==i||e[1]!==r||e[2]!==t||e[3]!==n?(p=function(){!r||!n.trim()||i.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]=i,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(l.isPending){let a;return e[9]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(Re,{className:"h-32 w-full"}),e[9]=a):a=e[9],a}let R;e[10]!==l.data?(R=l.data??[],e[10]=l.data,e[11]=R):R=e[11];const b=R;let x;e[12]!==t?(x=t("settings.syncedRepos.pageDescription"),e[12]=t,e[13]=x):x=e[13];let h;e[14]!==x?(h=s.jsx("p",{className:"text-sm text-muted-foreground",children:x}),e[14]=x,e[15]=h):h=e[15];let y;e[16]!==b||e[17]!==t?(y=b.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:b.map(a=>s.jsx(Ke,{config:a,onRemove:()=>d(a)},a.id))})]}),e[16]=b,e[17]=t,e[18]=y):y=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(Ve(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 ie;e[25]===Symbol.for("react.memo_cache_sentinel")?(ie=a=>{a||f(null)},e[25]=ie):ie=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 le;e[38]===Symbol.for("react.memo_cache_sentinel")?(le=a=>g(a.target.value),e[38]=le):le=e[38];let O;e[39]!==t?(O=t("settings.syncedRepos.namePlaceholder"),e[39]=t,e[40]=O):O=e[40];let E;e[41]!==O||e[42]!==n?(E=s.jsx(Ie,{value:n,onChange:le,placeholder:O,autoFocus:!0}),e[41]=O,e[42]=n,e[43]=E):E=e[43];let ne;e[44]===Symbol.for("react.memo_cache_sentinel")?(ne=()=>f(null),e[44]=ne):ne=e[44];const he=i.isPending;let I;e[45]!==t?(I=t("settings.syncedRepos.cancel"),e[45]=t,e[46]=I):I=e[46];let $;e[47]!==i.isPending||e[48]!==I?($=s.jsx(te,{variant:"outline",onClick:ne,disabled:he,children:I}),e[47]=i.isPending,e[48]=I,e[49]=$):$=e[49];let F;e[50]!==i.isPending||e[51]!==n?(F=!n.trim()||i.isPending,e[50]=i.isPending,e[51]=n,e[52]=F):F=e[52];let T;e[53]!==i.isPending||e[54]!==t?(T=i.isPending?t("settings.syncedRepos.creating"):t("settings.syncedRepos.create"),e[53]=i.isPending,e[54]=t,e[55]=T):T=e[55];let G;e[56]!==S||e[57]!==F||e[58]!==T?(G=s.jsx(te,{disabled:F,onClick:S,children:T}),e[56]=S,e[57]=F,e[58]=T,e[59]=G):G=e[59];let B;e[60]!==$||e[61]!==G?(B=s.jsxs(ze,{children:[$,G]}),e[60]=$,e[61]=G,e[62]=B):B=e[62];let H;e[63]!==z||e[64]!==E||e[65]!==B?(H=s.jsxs(Oe,{className:"sm:max-w-sm",children:[z,E,B]}),e[63]=z,e[64]=E,e[65]=B,e[66]=H):H=e[66];let q;e[67]!==H||e[68]!==de?(q=s.jsx(Ee,{open:de,onOpenChange:ie,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 L;e[71]!==t||e[72]!==pe?(L=t("settings.syncedRepos.removeTitle",{volume:pe}),e[71]=t,e[72]=pe,e[73]=L):L=e[73];let V;e[74]!==L?(V=s.jsx(be,{children:L}),e[74]=L,e[75]=V):V=e[75];let J;e[76]!==t?(J=t("settings.syncedRepos.removeDescription"),e[76]=t,e[77]=J):J=e[77];let K;e[78]!==J?(K=s.jsx(ve,{children:J}),e[78]=J,e[79]=K):K=e[79];let M;e[80]!==V||e[81]!==K?(M=s.jsxs(Se,{children:[V,K]}),e[80]=V,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]!==h||e[103]!==ee||e[104]!==y||e[105]!==C?(re=s.jsxs(s.Fragment,{children:[h,y,C,q,ee]}),e[101]=q,e[102]=h,e[103]=ee,e[104]=y,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(ye,{group:"storage",children:s.jsx(Qe,{})}),e[0]=t):t=e[0],t}function wt(){const e=se.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(Le,{capability:"file-configs:manage",area:"files",children:s.jsx(Ue,{})}),e[0]=t):t=e[0],t}export{wt as default};
|
|
1
|
+
import{c as se,j as s,fp as ye,b as ue,r as ae,B as te,ag as ge,l as je,t as ce,aO as Re}from"./index-K4Vfh2kg.js";import{s as xe}from"./Plus-BICk297J.js";import{A as be,a as ve,b as Se,c as De,g as Ne,d as _e,e as Ce,f as Pe}from"./alert-dialog-Cp1oRtvU.js";import{d as Ae,h as ke,c as we,e as ze,b as Oe,D as Ee}from"./dialog-Cz2_YOoM.js";import{I as Ie}from"./input-CjG0yUIG.js";import{u as $e,G as Fe,R as Te}from"./repository-picker-5veCw3bv.js";import{a as Ge,d as Be,h as He,t as qe}from"./cards-CfITToen.js";import{R as Le}from"./require-capability-BXbVP8Te.js";import"./X-CRCA8SGk.js";import"./ArrowLeft-BeFq6jod.js";import"./LinkExternal01-DpNDkCnx.js";import"./tooltip-Cy80lI1Y.js";import"./index-Dhz79JsH.js";import"./label-CbL3uHGW.js";import"./github-icon-DWXYv1Ij.js";import"./useInfiniteQuery-Bdkrqs8P.js";import"./infiniteQueryObserver-DrFl4m2S.js";import"./avatar-BXB8p0uZ.js";import"./User01-DaLqt8Zu.js";import"./collection-search-66MPCgMJ.js";import"./SearchMd-v8QAVRjQ.js";import"./use-debounced-value-CQxBbX3z.js";import"./use-org-fs-mfYIenam.js";import"./DotsVertical-BV4Cp92F.js";import"./Eye-CEZdPSLz.js";import"./Share07-CmuXKCN5.js";import"./Key01-DDYGtlfn.js";import"./Palette-ChnBuAtH.js";import"./Trash01-B5wUzx2c.js";import"./Zap-DHslHQ0t.js";import"./file-type-icon-DnKDJ8Kn.js";import"./folder-icon-gl7W6Tvq.js";import"./skill-md-ChfVs4uF.js";import"./access-gate-Cco763GH.js";import"./capability-load-error-BjPwGIMH.js";function Ve(e){return e.toLowerCase().replace(/[^a-z0-9_.-]+/g,"-").replace(/^[.-]+|[.-]+$/g,"").slice(0,128)}function Je(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:l,onRemove:i}=e,o=ue();let u;t[0]!==l||t[1]!==o?(u=Je(l,o),t[0]=l,t[1]=o,t[2]=u):u=t[2];const m=u,r=$e();let f;t[3]!==l.repositoryId||t[4]!==r.data?(f=r.data?.find(C=>C.id===l.repositoryId),t[3]=l.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??`${l.repoOwner}/${l.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]!==l.ref?(p=s.jsxs("span",{className:"text-xs text-muted-foreground shrink-0",children:["@",l.ref]}),t[10]=l.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 R;t[17]!==l.volume||t[18]!==o?(R=o("settings.syncedRepos.rowSubtitle",{volume:l.volume}),t[17]=l.volume,t[18]=o,t[19]=R):R=t[19];let b;t[20]!==m.label||t[21]!==R||t[22]!==D?(b=s.jsxs("p",{className:D,children:[R," ·"," ",m.label]}),t[20]=m.label,t[21]=R,t[22]=D,t[23]=b):b=t[23];let x;t[24]!==b||t[25]!==S?(x=s.jsxs("div",{className:"min-w-0",children:[S,b]}),t[24]=b,t[25]=S,t[26]=x):x=t[26];let h;t[27]!==x||t[28]!==g?(h=s.jsxs("div",{className:"flex items-start gap-3 min-w-0",children:[g,x]}),t[27]=x,t[28]=g,t[29]=h):h=t[29];let y;t[30]!==o?(y=o("settings.syncedRepos.remove"),t[30]=o,t[31]=y):y=t[31];let j;t[32]!==i||t[33]!==y?(j=s.jsx(te,{variant:"outline",size:"sm",onClick:i,children:y}),t[32]=i,t[33]=y,t[34]=j):j=t[34];let N;return t[35]!==h||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:[h,j]}),t[35]=h,t[36]=j,t[37]=N):N=t[37],N}function Me(e){const t=se.c(21),{onAdd:l}=e,i=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]!==i?(u=i("settings.syncedRepos.emptyTitle"),t[1]=i,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]!==i?(r=i("settings.syncedRepos.emptyDescription"),t[5]=i,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]!==i?(c=i("settings.syncedRepos.addRepo"),t[13]=i,t[14]=c):c=t[14];let d;t[15]!==l||t[16]!==c?(d=s.jsxs(te,{onClick:l,size:"sm",className:"mt-2",children:[g,c]}),t[15]=l,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(),l=Ge(),i=Be(),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]!==i||e[1]!==r||e[2]!==t||e[3]!==n?(p=function(){!r||!n.trim()||i.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]=i,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(l.isPending){let a;return e[9]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(Re,{className:"h-32 w-full"}),e[9]=a):a=e[9],a}let R;e[10]!==l.data?(R=l.data??[],e[10]=l.data,e[11]=R):R=e[11];const b=R;let x;e[12]!==t?(x=t("settings.syncedRepos.pageDescription"),e[12]=t,e[13]=x):x=e[13];let h;e[14]!==x?(h=s.jsx("p",{className:"text-sm text-muted-foreground",children:x}),e[14]=x,e[15]=h):h=e[15];let y;e[16]!==b||e[17]!==t?(y=b.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:b.map(a=>s.jsx(Ke,{config:a,onRemove:()=>d(a)},a.id))})]}),e[16]=b,e[17]=t,e[18]=y):y=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(Ve(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 ie;e[25]===Symbol.for("react.memo_cache_sentinel")?(ie=a=>{a||f(null)},e[25]=ie):ie=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 le;e[38]===Symbol.for("react.memo_cache_sentinel")?(le=a=>g(a.target.value),e[38]=le):le=e[38];let O;e[39]!==t?(O=t("settings.syncedRepos.namePlaceholder"),e[39]=t,e[40]=O):O=e[40];let E;e[41]!==O||e[42]!==n?(E=s.jsx(Ie,{value:n,onChange:le,placeholder:O,autoFocus:!0}),e[41]=O,e[42]=n,e[43]=E):E=e[43];let ne;e[44]===Symbol.for("react.memo_cache_sentinel")?(ne=()=>f(null),e[44]=ne):ne=e[44];const he=i.isPending;let I;e[45]!==t?(I=t("settings.syncedRepos.cancel"),e[45]=t,e[46]=I):I=e[46];let $;e[47]!==i.isPending||e[48]!==I?($=s.jsx(te,{variant:"outline",onClick:ne,disabled:he,children:I}),e[47]=i.isPending,e[48]=I,e[49]=$):$=e[49];let F;e[50]!==i.isPending||e[51]!==n?(F=!n.trim()||i.isPending,e[50]=i.isPending,e[51]=n,e[52]=F):F=e[52];let T;e[53]!==i.isPending||e[54]!==t?(T=i.isPending?t("settings.syncedRepos.creating"):t("settings.syncedRepos.create"),e[53]=i.isPending,e[54]=t,e[55]=T):T=e[55];let G;e[56]!==S||e[57]!==F||e[58]!==T?(G=s.jsx(te,{disabled:F,onClick:S,children:T}),e[56]=S,e[57]=F,e[58]=T,e[59]=G):G=e[59];let B;e[60]!==$||e[61]!==G?(B=s.jsxs(ze,{children:[$,G]}),e[60]=$,e[61]=G,e[62]=B):B=e[62];let H;e[63]!==z||e[64]!==E||e[65]!==B?(H=s.jsxs(Oe,{className:"sm:max-w-sm",children:[z,E,B]}),e[63]=z,e[64]=E,e[65]=B,e[66]=H):H=e[66];let q;e[67]!==H||e[68]!==de?(q=s.jsx(Ee,{open:de,onOpenChange:ie,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 L;e[71]!==t||e[72]!==pe?(L=t("settings.syncedRepos.removeTitle",{volume:pe}),e[71]=t,e[72]=pe,e[73]=L):L=e[73];let V;e[74]!==L?(V=s.jsx(be,{children:L}),e[74]=L,e[75]=V):V=e[75];let J;e[76]!==t?(J=t("settings.syncedRepos.removeDescription"),e[76]=t,e[77]=J):J=e[77];let K;e[78]!==J?(K=s.jsx(ve,{children:J}),e[78]=J,e[79]=K):K=e[79];let M;e[80]!==V||e[81]!==K?(M=s.jsxs(Se,{children:[V,K]}),e[80]=V,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]!==h||e[103]!==ee||e[104]!==y||e[105]!==C?(re=s.jsxs(s.Fragment,{children:[h,y,C,q,ee]}),e[101]=q,e[102]=h,e[103]=ee,e[104]=y,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(ye,{group:"storage",children:s.jsx(Qe,{})}),e[0]=t):t=e[0],t}function wt(){const e=se.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(Le,{capability:"file-configs:manage",area:"files",children:s.jsx(Ue,{})}),e[0]=t):t=e[0],t}export{wt 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-K4Vfh2kg.js";import{a as p}from"./ZoomOut-DIggrZVG.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-K4Vfh2kg.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,ea as k,bo as p,bp as T,ec as F,dj as M,bq as P,br as S,bn as V,eb as y,bF as D,c as x,l as g}from"./index-
|
|
1
|
+
import{r as v,j as d,ea as k,bo as p,bp as T,ec as F,dj as M,bq as P,br as S,bn as V,eb as y,bF as D,c as x,l as g}from"./index-K4Vfh2kg.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 s}from"./schema-
|
|
1
|
+
import{o as s}from"./schema-OZ6y31ku.js";const A="super-agent",o=["#9ca3af","#ef4444","#f97316","#f59e0b","#22c55e","#3b82f6","#a855f7","#ec4899"],c=o[0];function p(e){return o[e%o.length]??c}function w(e){return e.createdBy==="system"}const R="chore",d=["reviewer"],_={reviewer:"Reviewer"},E=["QA Agent","Code Reviewer"];function S(e){return e?.reviewer_enabled===void 0&&e?.qa_agent_enabled===!1&&e?.code_reviewer_enabled===!1?!1:s(e,"reviewer_enabled")}const u=["triage","todo","in_progress","in_review","approved","merged","post_deploy_validation","done","archived"],D={queue:"todo"};u.map((e,t)=>({key:e,title:e,position:t}));const L=["approved","merged","post_deploy_validation"];function f(e,t){return e?[_[t],...E].some(r=>e.startsWith(`${r}:`)):!1}function m(e){return e.reviewerEnabled||!e.hasPullRequest?!1:!e.threadTitles.some(t=>d.some(r=>f(t,r)))}function v(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 l(e,t){const r=v(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 i=a.data??{};if(i.reviewer==="reviewer")if(a.action==="review_approved"){if(t?.verifiedOnly&&i.verified!==!0)continue;n.set("reviewer","approved")}else n.set("reviewer","changes_requested")}return n}function g(e,t,r){if(t.length===0)return!1;const n=l(e,r);return t.every(a=>n.get(a)==="approved")}const h="task-board.item.updated",b="task-board.item.deleted",N="task-board.item.prs.updated",C=4e3;export{u as C,R as D,D as L,d as R,A as S,h as T,b as a,N as b,c,L as d,g as e,f,m as g,C as h,w as i,p as n,S as r};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{aK as de,c as M,l as fe,j as ge,dA as pe,r as S,X as V,o as ee,a3 as te,b as me,e as v,K as I,q as ye,t as G,m as ke,a0 as _e,at as he,d2 as se}from"./index-K4Vfh2kg.js";import{a as Ee,C as W,c as Se,d as Te,S as Ne}from"./task-board-Bc_5nEh1.js";import{t as be}from"./hooks-ClyBk0k_.js";import{u as Ce}from"./use-decopilot-events-C-TjDtpG.js";import{i as De}from"./AlertCircle-BQVXEKUc.js";import{aw as Re,ax as Be,ay as X,az as Ae,aA as Ke,T as ve,aB as Ie,t as we,aC as xe,Y as Fe}from"./agent-icon-DZc84vtW.js";import{i as Le}from"./CheckCircle-CflfIWoL.js";import{s as je}from"./Eye-CEZdPSLz.js";import{g as Oe}from"./UserSquare-C7TikGGO.js";import{p as Me,b as Pe}from"./github-repo-B15wwZ1g.js";const Ue=de("Bug",[["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M9 7.13v-1a3.003 3.003 0 1 1 6 0v1",key:"d7y7pr"}],["path",{d:"M12 20c-3.3 0-6-2.7-6-6v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v3c0 3.3-2.7 6-6 6",key:"xs1cw7"}],["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M6.53 9C4.6 8.8 3 7.1 3 5",key:"32zzws"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"M3 21c0-2.1 1.7-3.9 3.8-4",key:"4p0ekp"}],["path",{d:"M20.97 5c0 2.1-1.6 3.8-3.5 4",key:"18gb23"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M17.2 17c2.1.1 3.8 1.9 3.8 4",key:"k3fwyw"}]]),$e=4,Qe="TASK";function qe(e){return e.replace(/[^a-zA-Z]/g,"").toUpperCase().slice(0,$e)||Qe}function Ye(e,t){return t==null?null:`${qe(e)}-${String(t).padStart(2,"0")}`}const Ge=/^(?:[a-z]{1,8}-)?0*(\d+)$/i;function ze(e){const t=Ge.exec(e.trim())?.[1];return t===void 0?null:Number(t)}function Nt(e){const t=M.c(8),{size:s,className:r}=e,n=s===void 0?16:s;let a;t[0]!==n?(a={width:n,height:n},t[0]=n,t[1]=a):a=t[1];let i;t[2]!==r?(i=fe("shrink-0 rounded-full object-cover",r),t[2]=r,t[3]=i):i=t[3];let c;return t[4]!==n||t[5]!==a||t[6]!==i?(c=ge.jsx("img",{src:pe,alt:"Super Agent",width:n,height:n,style:a,className:i}),t[4]=n,t[5]=a,t[6]=i,t[7]=c):c=t[7],c}const J=()=>0;function He(e){const{orgSlug:t,enabled:s=!0,onUpdate:r,onDelete:n,onResync:a}=e,i=S.useRef(r);i.current=r;const c=S.useRef(n);c.current=n;const g=S.useRef(a);g.current=a;const u=S.useRef(null),o=S.useRef(s),d=S.useRef(t);(!u.current||o.current!==s||d.current!==t)&&(o.current=s,d.current=t,u.current=l=>{if(!s||!t)return()=>{};const m=_=>{let y;try{y=JSON.parse(_.data)}catch{return}y.data&&(_.type===Ee?c.current?.(y.data.id):i.current(y.data)),l()};return be.subscribe(t,m,()=>g.current?.())}),S.useSyncExternalStore(u.current,J,J)}function Ve(e,t){return{queryKey:I.taskBoardItems(e),refetchInterval:6e4,queryFn:async()=>{const{items:s}=await t.call("TASK_BOARD_ITEM_LIST",{});return{items:s}}}}function We(){const e=M.c(21),{org:t,locator:s}=V(),r=ee();let n;e[0]!==s?(n=I.taskBoardItems(s),e[0]=s,e[1]=n):n=e[1];const a=n;let i;e[2]!==s||e[3]!==r||e[4]!==a?(i=p=>{r.cancelQueries({queryKey:a}),r.setQueryData(a,l=>l&&{...l,items:l.items.some(m=>m.id===p.id)?l.items.map(m=>m.id===p.id?p:m):[p,...l.items]}),r.invalidateQueries({queryKey:I.taskBoardActivity(s,p.id)})},e[2]=s,e[3]=r,e[4]=a,e[5]=i):i=e[5];let c,g;e[6]!==r||e[7]!==a?(c=()=>{r.invalidateQueries({queryKey:a})},g=p=>{r.cancelQueries({queryKey:a}),r.setQueryData(a,l=>l&&{...l,items:l.items.filter(m=>m.id!==p)})},e[6]=r,e[7]=a,e[8]=c,e[9]=g):(c=e[8],g=e[9]);let u;e[10]!==t.slug||e[11]!==i||e[12]!==c||e[13]!==g?(u={orgSlug:t.slug,onUpdate:i,onResync:c,onDelete:g},e[10]=t.slug,e[11]=i,e[12]=c,e[13]=g,e[14]=u):u=e[14],He(u);let o;e[15]!==r||e[16]!==a?(o=p=>{const l=p.subject,m=p.data.status;r.cancelQueries({queryKey:a}),r.setQueryData(a,_=>_&&{..._,items:_.items.map(y=>y.threads.some(h=>h.threadId===l)?{...y,threads:y.threads.map(h=>h.threadId===l?{...h,status:m}:h)}:y)})},e[15]=r,e[16]=a,e[17]=o):o=e[17];let d;e[18]!==t.slug||e[19]!==o?(d={orgSlug:t.slug,onTaskStatus:o},e[18]=t.slug,e[19]=o,e[20]=d):d=e[20],Ce(d)}function bt(){const e=M.c(9),{locator:t}=V(),s=te();let r;e[0]!==t||e[1]!==s?(r=Ve(t,s),e[0]=t,e[1]=s,e[2]=r):r=e[2];const n=ke(r);We();let a;e[3]!==n.data?.items?(a=n.data?.items??[],e[3]=n.data?.items,e[4]=a):a=e[4];let i;return e[5]!==n.error||e[6]!==n.isLoading||e[7]!==a?(i={items:a,isLoading:n.isLoading,error:n.error},e[5]=n.error,e[6]=n.isLoading,e[7]=a,e[8]=i):i=e[8],i}function Ct(){const e=M.c(70),{org:t,locator:s}=V(),r=te(),n=ee(),a=me();let i;e[0]!==s?(i=I.taskBoardItems(s),e[0]=s,e[1]=i):i=e[1];const c=i;let g;e[2]!==n||e[3]!==c?(g=()=>n.invalidateQueries({queryKey:c}),e[2]=n,e[3]=c,e[4]=g):g=e[4];const u=g;let o;e[5]!==r?(o=f=>r.call("TASK_BOARD_ITEM_CREATE",f),e[5]=r,e[6]=o):o=e[6];let d;e[7]!==u||e[8]!==o?(d={mutationFn:o,onSuccess:u},e[7]=u,e[8]=o,e[9]=d):d=e[9];const p=v(d);let l;e[10]!==r?(l=f=>r.call("TASK_BOARD_ITEM_UPDATE",f),e[10]=r,e[11]=l):l=e[11];let m;e[12]!==n||e[13]!==c?(m=async f=>{await n.cancelQueries({queryKey:c});const E=n.getQueryData(c);return n.setQueryData(c,k=>k&&{...k,items:k.items.map(Y=>Y.id===f.id?{...Y,...f}:Y)}),{previous:E}},e[12]=n,e[13]=c,e[14]=m):m=e[14];let _;e[15]!==t?(_=(f,E)=>{E.status==="done"&&ye("task_marked_done",{organization_id:t.id,task_board_item_id:E.id})},e[15]=t,e[16]=_):_=e[16];let y;e[17]!==n||e[18]!==c?(y=(f,E,k)=>{k?.previous&&n.setQueryData(c,k.previous)},e[17]=n,e[18]=c,e[19]=y):y=e[19];let h;e[20]!==u||e[21]!==s||e[22]!==n?(h=(f,E,k)=>{u(),n.invalidateQueries({queryKey:I.taskBoardActivity(s,k.id)})},e[20]=u,e[21]=s,e[22]=n,e[23]=h):h=e[23];let w;e[24]!==l||e[25]!==m||e[26]!==_||e[27]!==y||e[28]!==h?(w={mutationFn:l,onMutate:m,onSuccess:_,onError:y,onSettled:h},e[24]=l,e[25]=m,e[26]=_,e[27]=y,e[28]=h,e[29]=w):w=e[29];const P=v(w);let N;e[30]!==r?(N=f=>r.call("TASK_BOARD_ITEM_DELETE",{id:f}),e[30]=r,e[31]=N):N=e[31];let b;e[32]!==u||e[33]!==a?(b=f=>{G.error(f instanceof Error&&f.message?f.message:a("taskBoard.taskBoard.deleteError")),u()},e[32]=u,e[33]=a,e[34]=b):b=e[34];let x;e[35]!==u||e[36]!==N||e[37]!==b?(x={mutationFn:N,onSuccess:u,onError:b},e[35]=u,e[36]=N,e[37]=b,e[38]=x):x=e[38];const U=v(x);let C;e[39]!==r?(C=async f=>{const E=await Promise.allSettled(f.map(k=>r.call("TASK_BOARD_ITEM_DELETE",{id:k})));return{total:f.length,failed:E.filter(Xe).length}},e[39]=r,e[40]=C):C=e[40];let D,R;e[41]!==a?(D=f=>{const{total:E,failed:k}=f;k!==0&&G.error(a("taskBoard.taskBoard.deleteBulkError",{failed:String(k),total:String(E)}))},R=()=>G.error(a("taskBoard.taskBoard.deleteError")),e[41]=a,e[42]=D,e[43]=R):(D=e[42],R=e[43]);let F;e[44]!==u||e[45]!==C||e[46]!==D||e[47]!==R?(F={mutationFn:C,onSuccess:D,onError:R,onSettled:u},e[44]=u,e[45]=C,e[46]=D,e[47]=R,e[48]=F):F=e[48];const $=v(F);let B;e[49]!==r?(B=f=>r.call("TASK_BOARD_ITEM_UPDATE",f),e[49]=r,e[50]=B):B=e[50];let L;e[51]!==u||e[52]!==B?(L={mutationFn:B,onSuccess:u},e[51]=u,e[52]=B,e[53]=L):L=e[53];const Q=v(L);let A;e[54]!==r?(A=f=>r.call("TASK_BOARD_ITEM_RERUN",f),e[54]=r,e[55]=A):A=e[55];let K;e[56]!==u||e[57]!==s||e[58]!==n?(K=(f,E,k)=>{u(),n.invalidateQueries({queryKey:I.taskBoardActivity(s,k.id)})},e[56]=u,e[57]=s,e[58]=n,e[59]=K):K=e[59];let j;e[60]!==A||e[61]!==K?(j={mutationFn:A,onSettled:K},e[60]=A,e[61]=K,e[62]=j):j=e[62];const q=v(j);let O;return e[63]!==p||e[64]!==Q||e[65]!==U||e[66]!==$||e[67]!==q||e[68]!==P?(O={create:p,update:P,remove:U,removeMany:$,link:Q,rerun:q},e[63]=p,e[64]=Q,e[65]=U,e[66]=$,e[67]=q,e[68]=P,e[69]=O):O=e[69],O}function Xe(e){return e.status==="rejected"}const Je=["ended_after_delivery","superseded"];function Ze(e){return!!e&&Je.includes(e)}function Dt(e){return!(e.action==="status_changed"&&typeof e.data?.retry=="number")}function Rt(e){return e.failureKind!=="superseded"}function re(e){return e.threads.some(t=>t.status==="requires_action")}function Bt(e){return e.status==="in_review"&&!e.assigneeId}function At(e){return re(e)}function Kt(e){return e.status==="in_progress"&&re(e)?"text-warning animate-pulse":ae(e.status).iconClassName}function vt(e){return e.threads.some(s=>s.status==="in_progress")?"running":e.threads.some(s=>s.status==="failed"&&!Ze(s.failureKind))?"failed":null}function It(e,t,s){const r=e.findIndex(o=>o.id===s),n=t===s?e[r+1]?.id??null:t,a=e.filter(o=>o.id!==s),i=n?a.findIndex(o=>o.id===n):-1,c=i===-1?a.length:i,g=a[c-1],u=a[c];return g&&u?(g.sortOrder+u.sortOrder)/2:g?g.sortOrder+1:u?u.sortOrder-1:0}function wt(e,t){return Array.from({length:t},(s,r)=>e-(t-1-r)*1e-4)}const et=["archived"],ne={triage:{labelKey:"taskBoard.config.statusBacklog",icon:De,iconClassName:"text-muted-foreground"},todo:{labelKey:"taskBoard.config.statusTodo",icon:se,iconClassName:"text-muted-foreground"},in_progress:{labelKey:"taskBoard.config.statusInProgress",icon:Fe,iconClassName:"text-primary"},in_review:{labelKey:"taskBoard.config.statusInReview",icon:je,iconClassName:"text-warning"},approved:{labelKey:"taskBoard.config.statusApproved",icon:xe,iconClassName:"text-success"},merged:{labelKey:"taskBoard.config.statusMerged",icon:Oe,iconClassName:"text-primary"},post_deploy_validation:{labelKey:"taskBoard.config.statusPostDeployValidation",icon:we,iconClassName:"text-warning"},done:{labelKey:"taskBoard.config.statusDone",icon:Le,iconClassName:"text-success"},archived:{labelKey:"taskBoard.config.statusArchived",icon:he,iconClassName:"text-muted-foreground"}},tt={icon:se,iconClassName:"text-muted-foreground"},st=ne;function ae(e){return st[e]??tt}function xt(e,t){const s=ne[e];return{label:s?t(s.labelKey):e,visual:ae(e)}}const Ft=["bug","feature","chore","spike","security"],Lt={bug:{labelKey:"taskBoard.config.typeBug",icon:Ue,iconClassName:"text-destructive"},feature:{labelKey:"taskBoard.config.typeFeature",icon:Ie,iconClassName:"text-success"},chore:{labelKey:"taskBoard.config.typeChore",icon:ve,iconClassName:"text-muted-foreground"},spike:{labelKey:"taskBoard.config.typeSpike",icon:Ke,iconClassName:"text-yellow-500"},security:{labelKey:"taskBoard.config.typeSecurity",icon:_e,iconClassName:"text-purple-500"}};function z(e){return Te.includes(e)}function jt(e){return W.filter(t=>e||!z(t))}function Ot({deliveryEnabled:e,shownLanes:t,occupied:s}){const r=W.filter(i=>e||!z(i)||s.includes(i)),n=r.filter(i=>et.includes(i)||!e&&z(i)),a=n.filter(i=>!t.includes(i));return{lanes:r.filter(i=>!a.includes(i)),hidden:a,hideable:n}}const Z="lane:";function rt(e){return W.includes(e)}function Mt({overId:e,statusOf:t}){if(e===void 0)return null;const s=String(e),r=s.startsWith(Z)?s.slice(Z.length):t(s);return r!==void 0&&rt(r)?r:null}const Pt=["none","low","medium","high","urgent"],Ut={none:{labelKey:"taskBoard.config.priorityNone",flagClassName:"text-muted-foreground",dotClassName:"border border-muted-foreground/50",icon:X,iconClassName:"text-muted-foreground/40"},low:{labelKey:"taskBoard.config.priorityLow",flagClassName:"text-muted-foreground",dotClassName:"bg-muted-foreground/40",icon:Ae,iconClassName:"text-muted-foreground"},medium:{labelKey:"taskBoard.config.priorityMedium",flagClassName:"text-blue-500",dotClassName:"bg-blue-500",icon:X,iconClassName:"text-blue-500"},high:{labelKey:"taskBoard.config.priorityHigh",flagClassName:"text-warning",dotClassName:"bg-warning",icon:Be,iconClassName:"text-warning"},urgent:{labelKey:"taskBoard.config.priorityUrgent",flagClassName:"text-destructive",dotClassName:"bg-destructive",icon:Re,iconClassName:"text-destructive"}};function $t(e,t=Date.now()){const s=new Date(e).getTime();return Number.isNaN(s)?null:s<t?"overdue":s-t<=nt*864e5?"soon":null}const nt=3;function Qt(e){return`color-mix(in oklab, ${e??Se} var(--user-color-strength), transparent)`}const oe="__no_repo__";function T(e){return(e??"").trim().toLowerCase()}function at(e,t){const s=(e.created_at??"").localeCompare(t.created_at??"");return s!==0?s:e.id.localeCompare(t.id)}function ot(e){return e.projects.length===1?e.projects[0]?.title??e.repo??e.id:e.repo??e.id}function qt(e,t=[]){const s=new Map,r=new Map,n=[],a=o=>{const d=T(o),p=s.get(d);if(p)return p;const l={id:d,kind:"repo",repo:o.trim(),title:o.trim(),projects:[]};return s.set(d,l),l};for(const o of e){const d=Me(o);if(d){const l=a(d);l.projects.push(o),r.set(o.id,l);continue}const p={id:o.id,kind:"project",repo:null,title:o.title,projects:[o]};n.push(p),r.set(o.id,p)}for(const o of t){const d=(o??"").trim();d&&!r.has(d)&&a(d)}for(const o of s.values())o.projects.sort(at),o.title=ot(o);const i=[...s.values()].filter(o=>o.projects.length>0),c=[...s.values()].filter(o=>o.projects.length===0),g=(o,d)=>o.title.localeCompare(d.title),u=[...[...i,...n].sort(g),...c.sort(g)];return{entries:u,byId:new Map(u.map(o=>[o.id,o])),byRepo:s,byProject:r}}function H(e,t){for(const n of e.threads??[]){const a=n.virtualMcpId?t.byProject.get(n.virtualMcpId):void 0;if(a)return a}const s=t.byProject.get((e.repo??"").trim());if(s)return s;const r=T(e.repo);return(r?t.byRepo.get(r):void 0)??null}function it(e,t){const s=H(e,t);if(!s)return[];if(s.projects.length<=1)return s.projects;for(const n of e.threads??[]){const a=n.virtualMcpId?s.projects.find(i=>i.id===n.virtualMcpId):void 0;if(a)return[a]}const r=s.projects.find(n=>n.id===e.repo?.trim());return r?[r]:s.projects}function Yt(e,t){const s=it(e,t);return s.length===1?s[0]??null:null}function ie(e,t){return t.byId.get(e)??t.byRepo.get(T(e))??t.byProject.get(e)}function ue(e,t,s){if(t===null)return!0;if(t===oe)return H(e,s)===null;const r=ie(t,s);return r?r.repo&&T(e.repo)===T(r.repo)?!0:H(e,s)===r:t.includes("/")?T(e.repo)===T(t):!0}function Gt(e,t){return e===null?!1:e===oe?!0:!!ie(e,t)||e.includes("/")}function zt(e,t,s){return t===null?null:ue(e,t,s)?t:null}function Ht(e){return e.entries.filter(t=>t.repo!==null&&(t.projects.length===0||t.projects.some(s=>Pe(s).status!=="detached")))}const ut="__unassigned__",Vt={assignee:null,priority:null,due:null,tags:[],project:null,search:""},ct=864e5;function lt(e,t){const s=new Date(e),r=new Date(t);return s.getFullYear()===r.getFullYear()&&s.getMonth()===r.getMonth()&&s.getDate()===r.getDate()}function ce(e,t){const s=e.trim();return s===""?!1:t!=null&&ze(s)===t}function dt(e,t){return e.assigneeId===t?!0:e.assigneeId===Ne&&e.assignedBy===t}function Wt(e,t,s){const r=t.search.trim().toLowerCase();if(r!==""&&!`${e.title} ${e.description??""}`.toLowerCase().includes(r)&&!ce(r,e.keySeq))return!1;if(t.assignee!==null){if(t.assignee===ut){if(e.assigneeId!==null)return!1}else if(!dt(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 n=new Date(e.dueDate).getTime(),a=Date.now();if(t.due==="overdue"&&n>=a||t.due==="today"&&!lt(n,a)||t.due==="week"&&(n<a||n>a+7*ct))return!1}if(t.tags.length>0){const n=e.tags.map(a=>a.id);if(!t.tags.some(a=>n.includes(a)))return!1}return!!ue(e,t.project,s)}const le={overdue:"taskBoard.taskFilters.dueDateFilterOverdue",today:"taskBoard.taskFilters.dueDateFilterDueToday",week:"taskBoard.taskFilters.dueDateFilterDueThisWeek",none:"taskBoard.taskFilters.dueDateFilterNoDueDate"},Xt=Object.keys(le);function Jt(e){return le[e]}function ft(e,t){return Ye(e,t.keySeq)??t.id}function Zt(e,t,s){const r=encodeURIComponent(e),n=encodeURIComponent(ft(e,t));return s?`/${r}/projects/${encodeURIComponent(s)}/tasks/${n}`:`/${r}/tasks/${n}`}function es(e,t){const s=t?.trim();if(s)return e.find(r=>ce(s,r.keySeq))??e.find(r=>r.id===s)}export{Jt as A,Wt as B,bt as C,Xt as D,Vt as E,es as F,wt as G,Ot as H,vt as I,At as J,et as K,Z as L,zt as M,oe as N,It as O,Pt as P,Mt as Q,$t as R,Nt as S,Ft as T,ut as U,ft as a,qt as b,Bt as c,Ve as d,Ut as e,Lt as f,We as g,H as h,re as i,Yt as j,ie as k,xt as l,Qt as m,Zt as n,Kt as o,it as p,ae as q,jt as r,Ht as s,Ye as t,Ct as u,Dt as v,Rt as w,Ze as x,ne as y,Gt as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as n}from"./AlertCircle-
|
|
1
|
+
import{i as n}from"./AlertCircle-BQVXEKUc.js";import{i as r}from"./CheckCircle-CflfIWoL.js";import{d2 as i}from"./index-K4Vfh2kg.js";import{aV as s,aW as l,q as m}from"./agent-icon-DZc84vtW.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-CnhQSjI5.js → taskboard-analytics-CkQr3tK7.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as M,b as q,f as J,r as P,j as s,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 s,B as W,L as X,h as Z}from"./index-K4Vfh2kg.js";import{ChatLayout as tt}from"./index-CyuU6yZd.js";import{S as et}from"./analytics-sections-BvlUaDYV.js";import{u as st,A as G,a as rt}from"./use-task-board-analytics-DyOwTb8x.js";import{C as at}from"./combobox-yM7XxeWn.js";import{c as it,b as ot,a as lt,d as mt,S as nt}from"./select-DxOzi3UD.js";import{T as pt,a as ct,c as ft,b as dt}from"./tabs-CgudHfJv.js";import"./use-mobile-rtsj2MZ1.js";import"./thread-button-EQmrPg3s.js";import"./use-in-settings-DTfVU5gG.js";import"./sheet-AhK1Q4GA.js";import"./X-CRCA8SGk.js";import"./tooltip-Cy80lI1Y.js";import"./index-Dhz79JsH.js";import"./thread-route-TxjlZd1E.js";import"./use-panel-navigate-BqFBzSWd.js";import"./use-project-scope-CdGBXW9U.js";import"./use-virtual-mcp-gM6wRQv6.js";import"./use-mcp-client-CR19JjtG.js";import"./auth-DewE0vsZ.js";import"./github-repo-B15wwZ1g.js";import"./use-route-default-main-CG99dur1.js";import"./hooks-ClyBk0k_.js";import"./backoff-8mStPHYB.js";import"./task-board-Bc_5nEh1.js";import"./schema-OZ6y31ku.js";import"./agent-icon-DZc84vtW.js";import"./AlertCircle-BQVXEKUc.js";import"./Tool01-Bdvuj8zb.js";import"./ArrowUp-MMes236V.js";import"./ArrowLeft-BeFq6jod.js";import"./ArrowRight-DVxyJd1l.js";import"./ZoomOut-DIggrZVG.js";import"./Globe04-t1_NZ4S5.js";import"./CheckCircle-CflfIWoL.js";import"./Check-DjwzpZIC.js";import"./ChevronUp-BYWuf4SY.js";import"./UserSquare-C7TikGGO.js";import"./Copy01-CjQc-Ykz.js";import"./CreditCard01-Cl8DBAML.js";import"./DotsVertical-BV4Cp92F.js";import"./Eye-CEZdPSLz.js";import"./Share07-CmuXKCN5.js";import"./XClose-DJgtnkEc.js";import"./Image01-Bed8faGM.js";import"./Key01-DDYGtlfn.js";import"./LayoutLeft-CZkz1jNL.js";import"./Link01-BbIArCE_.js";import"./LinkExternal01-DpNDkCnx.js";import"./Monitor01-Ah5De9w0.js";import"./Sun-DTRl56RH.js";import"./Palette-ChnBuAtH.js";import"./Plus-BICk297J.js";import"./SearchMd-v8QAVRjQ.js";import"./Trash01-B5wUzx2c.js";import"./Upload01-Cu-9L0qW.js";import"./User01-DaLqt8Zu.js";import"./Users01-BGfUl9Z9.js";import"./Zap-DHslHQ0t.js";import"./toolbar-icon-button-B_lHRucJ.js";import"./shell-layout-BbZrykxM.js";import"./avatar-BXB8p0uZ.js";import"./download-app-dialog-CLcZY4uQ.js";import"./dialog-Cz2_YOoM.js";import"./command-Dz5qWruW.js";import"./index-D7HYUfJC.js";import"./integration-icon-DrJdUHVx.js";import"./project-icon-BK7It3uv.js";import"./use-is-desktop-app-BNujXJc_.js";import"./required-auth-layout-q7AyqreJ.js";import"./autosend-BOLn22FP.js";import"./use-org-sso-C8N9NZ6V.js";import"./resizable-D5h_i3Cv.js";import"./route-page-header-D2v-N63X.js";import"./chart-B_RS6v6i.js";import"./index-Cz9e3Wwk.js";import"./CartesianChart-4nAUsvcH.js";import"./table-DQGBCTGl.js";import"./Line-CXvxeuZf.js";import"./ErrorBarContext-DMbtuZnP.js";import"./Sector-Ch6wxiVl.js";import"./popover-BhNcAD5X.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}=rt(a,x);if(Q){let l;return e[4]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx("div",{className:"flex justify-center py-12",children:s.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=s.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=s.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=s.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 s.jsx(et,{section:t,threadLinks:!0},t.title)}function qe(){const t=M.c(75),e=q(),a=J({strict:!1}).org??"",f=st(),[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 r;t[19]!==a?(r=H=>H.slug!==a,t[19]=a,t[20]=r):r=t[20],I=[S,y,...(f.data?.orgs??[]).filter(r).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=s.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&&s.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=r=>K(Number(r)),t[30]=V):V=t[30];let Y;t[31]===Symbol.for("react.memo_cache_sentinel")?(Y=s.jsx(ot,{className:"w-[140px]",size:"sm",children:s.jsx(lt,{})}),t[31]=Y):Y=t[31];let T;t[32]!==e?(T=ut.map(r=>s.jsx(it,{value:String(r),children:e("taskBoard.analytics.rangeDays",{days:String(r)})},r)),t[32]=e,t[33]=T):T=t[33];let j;t[34]!==T?(j=s.jsx(mt,{children:T}),t[34]=T,t[35]=j):j=t[35];let k;t[36]!==F||t[37]!==j?(k=s.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=s.jsx(W,{size:"sm",variant:"outline",asChild:!0,children:s.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=s.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 D;t[50]!==O||t[51]!==B?(D=s.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[B,O]}),t[50]=O,t[51]=B,t[52]=D):D=t[52];let R;t[53]!==o||t[54]!==a||t[55]!==e?(R=o!==a&&s.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]=R):R=t[56];let $;t[57]===Symbol.for("react.memo_cache_sentinel")?($=r=>Q(r),t[57]=$):$=t[57];let C;t[58]!==e?(C=G.map(r=>s.jsx(pt,{value:r,children:e(xt[r])},r)),t[58]=e,t[59]=C):C=t[59];let E;t[60]!==C?(E=s.jsx(ct,{children:C}),t[60]=C,t[61]=E):E=t[61];let w;t[62]!==u||t[63]!==o||t[64]!==i||t[65]!==c?(w=G.map(r=>s.jsx(ft,{value:r,children:i===r&&s.jsx(gt,{tool:r,org:o,from:u,to:c})},r)),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=s.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]!==D||t[72]!==R||t[73]!==L?(z=s.jsx(tt.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:[D,R,L]})})}),t[71]=D,t[72]=R,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{qe as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as l,X as n,j as r,K as f}from"./index-K4Vfh2kg.js";import{ChatLayout as d}from"./index-CyuU6yZd.js";import{m as u,P as x,T as h}from"./mock-board-C8LOIHzu.js";import{F as j}from"./feature-gate-DkU3CxuK.js";import"./use-mobile-rtsj2MZ1.js";import"./thread-button-EQmrPg3s.js";import"./use-in-settings-DTfVU5gG.js";import"./sheet-AhK1Q4GA.js";import"./X-CRCA8SGk.js";import"./tooltip-Cy80lI1Y.js";import"./index-Dhz79JsH.js";import"./thread-route-TxjlZd1E.js";import"./use-panel-navigate-BqFBzSWd.js";import"./use-project-scope-CdGBXW9U.js";import"./use-virtual-mcp-gM6wRQv6.js";import"./use-mcp-client-CR19JjtG.js";import"./auth-DewE0vsZ.js";import"./github-repo-B15wwZ1g.js";import"./use-route-default-main-CG99dur1.js";import"./hooks-ClyBk0k_.js";import"./backoff-8mStPHYB.js";import"./task-board-Bc_5nEh1.js";import"./schema-OZ6y31ku.js";import"./agent-icon-DZc84vtW.js";import"./AlertCircle-BQVXEKUc.js";import"./Tool01-Bdvuj8zb.js";import"./ArrowUp-MMes236V.js";import"./ArrowLeft-BeFq6jod.js";import"./ArrowRight-DVxyJd1l.js";import"./ZoomOut-DIggrZVG.js";import"./Globe04-t1_NZ4S5.js";import"./CheckCircle-CflfIWoL.js";import"./Check-DjwzpZIC.js";import"./ChevronUp-BYWuf4SY.js";import"./UserSquare-C7TikGGO.js";import"./Copy01-CjQc-Ykz.js";import"./CreditCard01-Cl8DBAML.js";import"./DotsVertical-BV4Cp92F.js";import"./Eye-CEZdPSLz.js";import"./Share07-CmuXKCN5.js";import"./XClose-DJgtnkEc.js";import"./Image01-Bed8faGM.js";import"./Key01-DDYGtlfn.js";import"./LayoutLeft-CZkz1jNL.js";import"./Link01-BbIArCE_.js";import"./LinkExternal01-DpNDkCnx.js";import"./Monitor01-Ah5De9w0.js";import"./Sun-DTRl56RH.js";import"./Palette-ChnBuAtH.js";import"./Plus-BICk297J.js";import"./SearchMd-v8QAVRjQ.js";import"./Trash01-B5wUzx2c.js";import"./Upload01-Cu-9L0qW.js";import"./User01-DaLqt8Zu.js";import"./Users01-BGfUl9Z9.js";import"./Zap-DHslHQ0t.js";import"./toolbar-icon-button-B_lHRucJ.js";import"./shell-layout-BbZrykxM.js";import"./avatar-BXB8p0uZ.js";import"./download-app-dialog-CLcZY4uQ.js";import"./dialog-Cz2_YOoM.js";import"./command-Dz5qWruW.js";import"./index-D7HYUfJC.js";import"./integration-icon-DrJdUHVx.js";import"./project-icon-BK7It3uv.js";import"./use-is-desktop-app-BNujXJc_.js";import"./required-auth-layout-q7AyqreJ.js";import"./autosend-BOLn22FP.js";import"./use-org-sso-C8N9NZ6V.js";import"./resizable-D5h_i3Cv.js";import"./route-page-header-D2v-N63X.js";import"./rich-text-link-control-hCgf6vwY.js";import"./use-task-board-analytics-DyOwTb8x.js";import"./combobox-yM7XxeWn.js";import"./popover-BhNcAD5X.js";import"./get-initials-D-f_fDFw.js";import"./search-toggle-OXNBAfan.js";import"./icon-button-a1oHWXnD.js";import"./task-route-DMhHeGp_.js";import"./use-decopilot-events-C-TjDtpG.js";import"./repository-import-picker-BrVrNQp2.js";import"./use-navigate-to-agent-DYgqDFZF.js";import"./thread-intent-DxlkHtay.js";import"./slugify-CEUa2lfQ.js";import"./repository-picker-5veCw3bv.js";import"./input-CjG0yUIG.js";import"./label-CbL3uHGW.js";import"./github-icon-DWXYv1Ij.js";import"./useInfiniteQuery-Bdkrqs8P.js";import"./infiniteQueryObserver-DrFl4m2S.js";import"./collection-search-66MPCgMJ.js";import"./use-debounced-value-CQxBbX3z.js";import"./use-members-DGHnBAVp.js";import"./use-org-auth-client-Dq37iZE-.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-tags-BDr8xPIF.js";import"./use-organization-settings-CY6osCto.js";import"./calendar-mQVeScA0.js";import"./alert-CyFB5Q7g.js";import"./collapsible-BKe2_9O7.js";import"./use-copy-CCt9uq_y.js";import"./markdown-DOZYcDNd.js";import"./org-file-open-context-Cej-kKNF.js";import"./index-DUDizWti.js";import"./index-XQdvud1d.js";import"./gateway-client-C_Ex0ISa.js";import"./form-BFyytVo6.js";import"./utils-CVEq3hMx.js";import"./suggestion-D2LW2rth.js";import"./index-q4Xl54Dx.js";import"./use-org-fs-mfYIenam.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./use-connection-DT6Y_sWB.js";import"./github-repo-scope-C8GSbvaz.js";import"./thread-sheet-body-BrDhZq1Z.js";import"./useSuspenseInfiniteQuery-6_TWTeTT.js";import"./pair-Bs4OFZd1.js";import"./usage-stats-B-kd-KGd.js";import"./use-entitlements-OYbyxqXu.js";import"./chat-context-IHDWgDQ6.js";import"./use-ai-providers-zjIftbuA.js";import"./location-oTTXFrSF.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-DRfDWjg6.js";import"./types-mQyngwgP.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./tool-namespace-DmnQIdtF.js";import"./use-mcp-prompts-C9ZSqhtN.js";import"./use-thread-outputs-CfLMzkB9.js";import"./file-type-icon-DnKDJ8Kn.js";import"./use-infinite-scroll-CitEQv_Q.js";import"./task-status-CxrGIdHQ.js";import"./use-open-billing-url-1mXCzVjQ.js";import"./chat-draft-bxwRcHk2.js";import"./badge-L3Pfb7lT.js";import"./separator-CmRrTp4P.js";import"./feature-paywall-D6H1XrEk.js";import"./plan-ladder-8vg2rlwa.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(h,{})}),t[0]=o):o=t[0],o}function Uo(){const t=l.c(8),{locator:o}=n();let i;t[0]!==o?(i=c=>c.setQueryData(f.taskBoardItems(o),u()),t[0]=o,t[1]=i):i=t[1];let p;t[2]===Symbol.for("react.memo_cache_sentinel")?(p=r.jsx(a,{}),t[2]=p):p=t[2];let m;t[3]!==i?(m=r.jsx(x,{seed:i,children:p}),t[3]=i,t[4]=m):m=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]!==m?(s=r.jsx(d.Content,{children:r.jsx(j,{feature:"kanban",backdrop:m,children:e})}),t[6]=m,t[7]=s):s=t[7],s}export{Uo as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as _,j as r,X as J,a3 as H,K as W,m as re,o as pe,e as ae,b as D,r as w,aO as he,B as M,t as L,dW as fe,dX as G,dV as be,n as de,f4 as Te,s as Se,l as Ce,L as we}from"./index-
|
|
1
|
+
import{c as _,j as r,X as J,a3 as H,K as W,m as re,o as pe,e as ae,b as D,r as w,aO as he,B as M,t as L,dW as fe,dX as G,dV as be,n as de,f4 as Te,s as Se,l as Ce,L as we}from"./index-K4Vfh2kg.js";import{C as xe}from"./checkbox-WzAY3JJD.js";import{I as ue}from"./input-CjG0yUIG.js";import{T as Ne}from"./textarea-C4Fl7vcj.js";import{i as _e}from"./Check-DjwzpZIC.js";import{i as Ae}from"./Tool01-Bdvuj8zb.js";import{i as Re}from"./Sun-DTRl56RH.js";import{s as Ie}from"./Plus-BICk297J.js";import{s as $e}from"./Trash01-B5wUzx2c.js";import{C as Ee}from"./combobox-yM7XxeWn.js";import{S as Ke}from"./switch-Dxukqc0d.js";import{a as De,T as Le}from"./input-DfvZ3ikK.js";import{p as Oe}from"./skill-md-ChfVs4uF.js";import{A as Be,a as Fe,b as ze,c as Ue,g as qe,d as Me,e as Je,f as He}from"./alert-dialog-Cp1oRtvU.js";import{R as We,A as Qe}from"./review-settings-CUXs59zb.js";import{h as Ge}from"./task-board-Bc_5nEh1.js";import{R as Ve}from"./require-capability-BXbVP8Te.js";import"./command-Dz5qWruW.js";import"./index-D7HYUfJC.js";import"./dialog-Cz2_YOoM.js";import"./X-CRCA8SGk.js";import"./SearchMd-v8QAVRjQ.js";import"./popover-BhNcAD5X.js";import"./suggestion-D2LW2rth.js";import"./index-XQdvud1d.js";import"./gateway-client-C_Ex0ISa.js";import"./form-BFyytVo6.js";import"./label-CbL3uHGW.js";import"./utils-CVEq3hMx.js";import"./org-file-open-context-Cej-kKNF.js";import"./use-mobile-rtsj2MZ1.js";import"./use-panel-navigate-BqFBzSWd.js";import"./thread-route-TxjlZd1E.js";import"./use-project-scope-CdGBXW9U.js";import"./use-virtual-mcp-gM6wRQv6.js";import"./use-mcp-client-CR19JjtG.js";import"./auth-DewE0vsZ.js";import"./github-repo-B15wwZ1g.js";import"./tooltip-Cy80lI1Y.js";import"./index-Dhz79JsH.js";import"./agent-icon-DZc84vtW.js";import"./AlertCircle-BQVXEKUc.js";import"./ArrowUp-MMes236V.js";import"./ArrowLeft-BeFq6jod.js";import"./ArrowRight-DVxyJd1l.js";import"./ZoomOut-DIggrZVG.js";import"./Globe04-t1_NZ4S5.js";import"./CheckCircle-CflfIWoL.js";import"./ChevronUp-BYWuf4SY.js";import"./UserSquare-C7TikGGO.js";import"./Copy01-CjQc-Ykz.js";import"./CreditCard01-Cl8DBAML.js";import"./DotsVertical-BV4Cp92F.js";import"./Eye-CEZdPSLz.js";import"./Share07-CmuXKCN5.js";import"./XClose-DJgtnkEc.js";import"./Image01-Bed8faGM.js";import"./Key01-DDYGtlfn.js";import"./LayoutLeft-CZkz1jNL.js";import"./Link01-BbIArCE_.js";import"./LinkExternal01-DpNDkCnx.js";import"./Monitor01-Ah5De9w0.js";import"./Palette-ChnBuAtH.js";import"./Upload01-Cu-9L0qW.js";import"./User01-DaLqt8Zu.js";import"./Users01-BGfUl9Z9.js";import"./Zap-DHslHQ0t.js";import"./chat-context-IHDWgDQ6.js";import"./autosend-BOLn22FP.js";import"./thread-intent-DxlkHtay.js";import"./slugify-CEUa2lfQ.js";import"./hooks-ClyBk0k_.js";import"./backoff-8mStPHYB.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-entitlements-OYbyxqXu.js";import"./use-ai-providers-zjIftbuA.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-C-TjDtpG.js";import"./use-organization-settings-CY6osCto.js";import"./schema-OZ6y31ku.js";import"./decopilot-OImya6-h.js";import"./select-DxOzi3UD.js";import"./ai-providers-logos-DD3qZ33J.js";import"./avatar-BXB8p0uZ.js";import"./download-app-dialog-CLcZY4uQ.js";import"./use-mcp-prompts-C9ZSqhtN.js";import"./use-org-fs-mfYIenam.js";import"./use-new-blocks-editor-xOOrbCjh.js";import"./use-connection-DT6Y_sWB.js";import"./access-gate-Cco763GH.js";import"./capability-load-error-BjPwGIMH.js";const Ye=/^([A-Za-z][A-Za-z0-9_]*-\d+)$/;function Ze(e){const t=e.trim();if(t==="")return null;const s=/(?:\/(?:browse|issues)\/|[?&]selectedIssue=)([A-Za-z][A-Za-z0-9_]*-\d+)/.exec(t)?.[1]??t.split(/[?#]/)[0]??"",i=Ye.exec(s);return i?.[1]?i[1].toUpperCase():null}function ve(e){const t=[],n=[],s=new Set;for(const i of e.split(/[\n,;]+/)){const l=i.trim();if(l==="")continue;const a=Ze(l);if(!a){n.push(l);continue}s.has(a)||(s.add(a),t.push(a))}return{keys:t,invalid:n}}function Xe(e){return{type:"doc",content:e.split(`
|
|
2
2
|
`).map(t=>({type:"paragraph",...t===""?{}:{content:[{type:"text",text:t}]}}))}}const et=new Set(["paragraph","heading","codeBlock","listItem"]);function tt(e){return(e.files??[]).filter(n=>n.content?.trim()).map(n=>n.relPath==="SKILL.md"?Oe(n.content).body.trim():`${n.relPath}:
|
|
3
3
|
${n.content.trim()}`).join(`
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as o,l,j as n}from"./index-
|
|
1
|
+
import{c as o,l,j as n}from"./index-K4Vfh2kg.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,c2 as Se,z as ye}from"./index-a8XScFmZ.js";import{ChatLayout as se}from"./index-DXiYogYY.js";import{S as be}from"./analytics-sections-YNBdLO_f.js";import{u as ve,a as Ne,b as Te}from"./use-thread-analytics-U5Jj6xFb.js";import{B as Ce}from"./badge-Dn4B9MPM.js";import{C as _e}from"./combobox-DhpMW_Q6.js";import{S as ie,b as oe,a as ne,d as ce,c as Z}from"./select-Bqp_U1ks.js";import{e as Ae,a as we,b as fe,T as V,d as ke,c as K}from"./table-BQzAWihK.js";import{T as le,a as Le,c as re,b as Ee}from"./tabs-BB69CAa_.js";import{c as Re,S as Ie,a as $e,b as Be}from"./sheet-CnG_30Tu.js";import{T as De}from"./thread-sheet-body-D0e7nDaM.js";import{u as Oe}from"./use-connection-B62IVwoq.js";import{u as Pe}from"./use-mcp-client-QkI6RUae.js";import{b as He}from"./use-virtual-mcp-B22df3lH.js";import"./use-mobile-BR3euFAT.js";import"./thread-button-C9DbsgYC.js";import"./use-in-settings-DF5a-yr6.js";import"./tooltip-DG5CnGag.js";import"./index-D88UyMf8.js";import"./thread-route-B1ZSIzzT.js";import"./use-panel-navigate-BvXmhCXE.js";import"./use-project-scope-Dg5JkMxK.js";import"./github-repo-BknN0SVI.js";import"./use-route-default-main-RAA9Xu9b.js";import"./hooks-57fUVc8E.js";import"./backoff-8mStPHYB.js";import"./task-board-DAXz0qcI.js";import"./schema-C0UHuNyx.js";import"./agent-icon-Bd0IZ2xl.js";import"./AlertCircle-CgujCznd.js";import"./Tool01-CQ5Xc26A.js";import"./ArrowUp-DBpBKFdD.js";import"./ArrowLeft-DYz0WE09.js";import"./ArrowRight-CWiigebn.js";import"./ZoomOut-DZCavZ8o.js";import"./Globe04-CdU3biQC.js";import"./CheckCircle-DppxuNa7.js";import"./Check-BO0tsZXP.js";import"./ChevronUp-WgMV95Wl.js";import"./UserSquare-C7aUR_aW.js";import"./Copy01-CP89x_RS.js";import"./CreditCard01-H8jUQWxs.js";import"./DotsVertical-4TEj21cV.js";import"./Eye-ARN8W0OA.js";import"./Share07-DyeTiScB.js";import"./XClose-hPk1Hqkr.js";import"./Image01-l9PMSSY0.js";import"./Key01-QkJYBYv-.js";import"./LayoutLeft-CgYc0js8.js";import"./Link01-CmwuZgWx.js";import"./LinkExternal01-DQ25aknz.js";import"./Monitor01-BVwwAtM6.js";import"./Sun-DgGlHV06.js";import"./Palette-Bjt7HH4h.js";import"./Plus-TU-OKHt0.js";import"./SearchMd-Cm4pXgfM.js";import"./Trash01-B9y1vShv.js";import"./Upload01-DAXWNq7T.js";import"./User01-p3MXVQ0Z.js";import"./Users01-CohEKYSh.js";import"./X-qOHqlxey.js";import"./Zap-CyBIW8px.js";import"./toolbar-icon-button-DggL__pK.js";import"./shell-layout-C1ofRTSy.js";import"./avatar-DNbeZQMl.js";import"./download-app-dialog-ZwXjVAnk.js";import"./dialog-BWmqK6vg.js";import"./command-C24f7Kyz.js";import"./index-CZmAPBsQ.js";import"./integration-icon-Dz6rheZV.js";import"./project-icon-DtlCoOxs.js";import"./use-is-desktop-app-BNujXJc_.js";import"./required-auth-layout-DMazcHjn.js";import"./autosend-BwqeYDrP.js";import"./use-org-sso-C4Rm3HPT.js";import"./resizable-CDXwX1EQ.js";import"./route-page-header-CGZ8hlbE.js";import"./auth-B4tHClP5.js";import"./chart-YCh8lrvr.js";import"./index-OsBQe2QB.js";import"./CartesianChart-CQtCbOPS.js";import"./Line-Bv4GUfne.js";import"./ErrorBarContext-qNEZftpi.js";import"./Sector-BdyQFYKV.js";import"./popover-DKjcSfLB.js";import"./useSuspenseInfiniteQuery-D3KJwbuZ.js";import"./infiniteQueryObserver-vADGuTxL.js";import"./pair-DwgUrqzM.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./collapsible-DlWH4-1Q.js";import"./use-copy-PMhIFi8m.js";import"./usage-stats-CfoUXIit.js";import"./markdown-W3XRuNet.js";import"./org-file-open-context-DP3MZUa1.js";import"./use-entitlements-e5g60LFP.js";import"./chat-context-BNtTPn2v.js";import"./thread-intent-BVf_UeqN.js";import"./slugify-CEUa2lfQ.js";import"./use-ai-providers-DmDozsCa.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-CXHHAExG.js";import"./use-organization-settings-Chk2oNMp.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-DkVBLMEl.js";import"./types-BuaOQs2H.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./gateway-client-CND_0J2Q.js";import"./tool-namespace-DmnQIdtF.js";import"./utils-CVEq3hMx.js";import"./use-navigate-to-agent-CATWBqpJ.js";import"./use-mcp-prompts-CTv5hWKn.js";import"./index-_tZ6iIAI.js";import"./form-Dd8uuw3Z.js";import"./label-xjEYWx7p.js";import"./input-HBy0gWnZ.js";import"./use-thread-outputs-fY2YVo4L.js";import"./file-type-icon-UKBN2uy0.js";import"./use-infinite-scroll-BWjbZqkI.js";import"./task-status-DsuZMZki.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 ae(t){const e=U.c(9),{label:l,value:r}=t;let a;e[0]!==l?(a=s.jsx("div",{className:"text-sm text-muted-foreground",children:l}),e[0]=l,e[1]=a):a=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]!==a||e[7]!==o?(c=s.jsxs("div",{className:"rounded-lg border border-border p-4",children:[a,o]}),e[6]=a,e[7]=o,e[8]=c):c=e[8],c}function Fe(t){const e=U.c(56),{thread:l,onOpen:r}=t,a=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 i;e[4]!==l.orgSlug?(i=s.jsx(K,{className:"text-sm",children:l.orgSlug}),e[4]=l.orgSlug,e[5]=i):i=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]!==a||e[10]!==l.title?(n=l.title||a("thread.analytics.untitled"),e[9]=a,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]!==a||e[23]!==g?(p=a(g),e[22]=a,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]!==a||e[29]!==l.status?(j=me[m]?a(me[m]):l.status,e[27]=m,e[28]=a,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]!==i||e[54]!==h?(_=s.jsxs(fe,{children:[c,i,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]=i,e[54]=h,e[55]=_):_=e[55],_}function Ye(t){const e=U.c(51),{org:l}=t,r=ee(),[a,m]=z.useState(Q),[o,c]=z.useState(Q),i=a===Q?void 0:a,u=o===Q?void 0:o;let n;e[0]!==l||e[1]!==i||e[2]!==u?(n={org:l,status:i,kind:u,limit:150},e[0]=l,e[1]=i,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]!==a||e[15]!==S?(y=s.jsxs(ie,{value:a,onValueChange:m,children:[k,S]}),e[14]=a,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(ie,{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(ae,{label:r("thread.analytics.countRunning"),value:d.counts.running}),s.jsx(ae,{label:r("thread.analytics.countWaiting"),value:d.counts.waiting}),s.jsx(ae,{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:a}=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(),i=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]!==a||e[11]!==u||e[12]!==i?(n=s.jsx(De,{thread:u,client:o,locator:a,connections:c,virtualMcps:i,members:void 0,meta:!1}),e[8]=o,e[9]=c,e[10]=a,e[11]=u,e[12]=i,e[13]=n):n=e[13],n}function qe(t){const e=U.c(12),{thread:l,onClose:r}=t,a=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 i;e[2]!==m||e[3]!==a||e[4]!==l?(i=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||a("thread.analytics.untitled")})}),children:s.jsx(Me,{thread:l})})}),e[2]=m,e[3]=a,e[4]=l,e[5]=i):i=e[5];let u;e[6]!==i?(u=s.jsx($e,{className:"flex flex-col gap-0 p-0 sm:max-w-2xl",children:i}),e[6]=i,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:a,to:m}=t,o=ee();let c;e[0]!==a||e[1]!==r||e[2]!==m?(c={org:r,from:a,to:m},e[0]=a,e[1]=r,e[2]=m,e[3]=c):c=e[3];const{data:i,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(!i)return null;let x;e[7]!==i.sections?(x=i.sections.map(Ge),e[7]=i.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 cl(){const t=U.c(99),e=ee(),l=ge({strict:!1}).org??"",r=ve(),[a,m]=z.useState("all"),[o,c]=z.useState(7),[i,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]!==a||t[35]!==L||t[36]!==b||t[37]!==C?(v=s.jsx(_e,{options:L,value:a,onChange:m,width:"w-[240px]",searchPlaceholder:C,emptyMessage:b}),t[34]=a,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]!==i?(N=i!=="live"&&s.jsxs(ie,{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]=i,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]!==a||t[50]!==l||t[51]!==e?(D=a!==l&&s.jsx("div",{className:"rounded-lg bg-warning/10 px-3 py-2 text-sm text-warning",children:a==="all"?e("taskBoard.analytics.bannerAll"):e("taskBoard.analytics.bannerOrg",{org:a})}),t[49]=a,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]!==a||t[71]!==i?(F=i==="live"&&s.jsx(Ye,{org:a}),t[70]=a,t[71]=i,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]!==a||t[77]!==i||t[78]!==d?(M=i==="usage"&&s.jsx(ue,{tool:"THREAD_ANALYTICS_USAGE",org:a,from:g,to:d}),t[75]=g,t[76]=a,t[77]=i,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]!==a||t[84]!==i||t[85]!==d?(G=i==="errors"&&s.jsx(ue,{tool:"THREAD_ANALYTICS_ERRORS",org:a,from:g,to:d}),t[82]=g,t[83]=a,t[84]=i,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]!==i?(X=s.jsxs(Ee,{value:i,onValueChange:O,children:[A,Y,q,W]}),t[89]=A,t[90]=Y,t[91]=q,t[92]=W,t[93]=i,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{cl 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,c2 as Se,z as ye}from"./index-K4Vfh2kg.js";import{ChatLayout as se}from"./index-CyuU6yZd.js";import{S as be}from"./analytics-sections-BvlUaDYV.js";import{u as ve,a as Ne,b as Te}from"./use-thread-analytics-D4T2O8XJ.js";import{B as Ce}from"./badge-L3Pfb7lT.js";import{C as _e}from"./combobox-yM7XxeWn.js";import{S as ie,b as oe,a as ne,d as ce,c as Z}from"./select-DxOzi3UD.js";import{e as Ae,a as we,b as fe,T as V,d as ke,c as K}from"./table-DQGBCTGl.js";import{T as le,a as Le,c as re,b as Ee}from"./tabs-CgudHfJv.js";import{c as Re,S as Ie,a as $e,b as Be}from"./sheet-AhK1Q4GA.js";import{T as De}from"./thread-sheet-body-BrDhZq1Z.js";import{u as Oe}from"./use-connection-DT6Y_sWB.js";import{u as Pe}from"./use-mcp-client-CR19JjtG.js";import{b as He}from"./use-virtual-mcp-gM6wRQv6.js";import"./use-mobile-rtsj2MZ1.js";import"./thread-button-EQmrPg3s.js";import"./use-in-settings-DTfVU5gG.js";import"./tooltip-Cy80lI1Y.js";import"./index-Dhz79JsH.js";import"./thread-route-TxjlZd1E.js";import"./use-panel-navigate-BqFBzSWd.js";import"./use-project-scope-CdGBXW9U.js";import"./github-repo-B15wwZ1g.js";import"./use-route-default-main-CG99dur1.js";import"./hooks-ClyBk0k_.js";import"./backoff-8mStPHYB.js";import"./task-board-Bc_5nEh1.js";import"./schema-OZ6y31ku.js";import"./agent-icon-DZc84vtW.js";import"./AlertCircle-BQVXEKUc.js";import"./Tool01-Bdvuj8zb.js";import"./ArrowUp-MMes236V.js";import"./ArrowLeft-BeFq6jod.js";import"./ArrowRight-DVxyJd1l.js";import"./ZoomOut-DIggrZVG.js";import"./Globe04-t1_NZ4S5.js";import"./CheckCircle-CflfIWoL.js";import"./Check-DjwzpZIC.js";import"./ChevronUp-BYWuf4SY.js";import"./UserSquare-C7TikGGO.js";import"./Copy01-CjQc-Ykz.js";import"./CreditCard01-Cl8DBAML.js";import"./DotsVertical-BV4Cp92F.js";import"./Eye-CEZdPSLz.js";import"./Share07-CmuXKCN5.js";import"./XClose-DJgtnkEc.js";import"./Image01-Bed8faGM.js";import"./Key01-DDYGtlfn.js";import"./LayoutLeft-CZkz1jNL.js";import"./Link01-BbIArCE_.js";import"./LinkExternal01-DpNDkCnx.js";import"./Monitor01-Ah5De9w0.js";import"./Sun-DTRl56RH.js";import"./Palette-ChnBuAtH.js";import"./Plus-BICk297J.js";import"./SearchMd-v8QAVRjQ.js";import"./Trash01-B5wUzx2c.js";import"./Upload01-Cu-9L0qW.js";import"./User01-DaLqt8Zu.js";import"./Users01-BGfUl9Z9.js";import"./X-CRCA8SGk.js";import"./Zap-DHslHQ0t.js";import"./toolbar-icon-button-B_lHRucJ.js";import"./shell-layout-BbZrykxM.js";import"./avatar-BXB8p0uZ.js";import"./download-app-dialog-CLcZY4uQ.js";import"./dialog-Cz2_YOoM.js";import"./command-Dz5qWruW.js";import"./index-D7HYUfJC.js";import"./integration-icon-DrJdUHVx.js";import"./project-icon-BK7It3uv.js";import"./use-is-desktop-app-BNujXJc_.js";import"./required-auth-layout-q7AyqreJ.js";import"./autosend-BOLn22FP.js";import"./use-org-sso-C8N9NZ6V.js";import"./resizable-D5h_i3Cv.js";import"./route-page-header-D2v-N63X.js";import"./auth-DewE0vsZ.js";import"./chart-B_RS6v6i.js";import"./index-Cz9e3Wwk.js";import"./CartesianChart-4nAUsvcH.js";import"./Line-CXvxeuZf.js";import"./ErrorBarContext-DMbtuZnP.js";import"./Sector-Ch6wxiVl.js";import"./popover-BhNcAD5X.js";import"./useSuspenseInfiniteQuery-6_TWTeTT.js";import"./infiniteQueryObserver-DrFl4m2S.js";import"./pair-Bs4OFZd1.js";import"./format-time-BtXRrtv4.js";import"./differenceInSeconds-C3x8sHUj.js";import"./collapsible-BKe2_9O7.js";import"./use-copy-CCt9uq_y.js";import"./usage-stats-B-kd-KGd.js";import"./markdown-DOZYcDNd.js";import"./org-file-open-context-Cej-kKNF.js";import"./use-entitlements-OYbyxqXu.js";import"./chat-context-IHDWgDQ6.js";import"./thread-intent-DxlkHtay.js";import"./slugify-CEUa2lfQ.js";import"./use-ai-providers-zjIftbuA.js";import"./location-oTTXFrSF.js";import"./use-decopilot-events-C-TjDtpG.js";import"./use-organization-settings-CY6osCto.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-DRfDWjg6.js";import"./types-mQyngwgP.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./gateway-client-C_Ex0ISa.js";import"./tool-namespace-DmnQIdtF.js";import"./utils-CVEq3hMx.js";import"./use-navigate-to-agent-DYgqDFZF.js";import"./use-mcp-prompts-C9ZSqhtN.js";import"./index-XQdvud1d.js";import"./form-BFyytVo6.js";import"./label-CbL3uHGW.js";import"./input-CjG0yUIG.js";import"./use-thread-outputs-CfLMzkB9.js";import"./file-type-icon-DnKDJ8Kn.js";import"./use-infinite-scroll-CitEQv_Q.js";import"./task-status-CxrGIdHQ.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 ae(t){const e=U.c(9),{label:l,value:r}=t;let a;e[0]!==l?(a=s.jsx("div",{className:"text-sm text-muted-foreground",children:l}),e[0]=l,e[1]=a):a=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]!==a||e[7]!==o?(c=s.jsxs("div",{className:"rounded-lg border border-border p-4",children:[a,o]}),e[6]=a,e[7]=o,e[8]=c):c=e[8],c}function Fe(t){const e=U.c(56),{thread:l,onOpen:r}=t,a=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 i;e[4]!==l.orgSlug?(i=s.jsx(K,{className:"text-sm",children:l.orgSlug}),e[4]=l.orgSlug,e[5]=i):i=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]!==a||e[10]!==l.title?(n=l.title||a("thread.analytics.untitled"),e[9]=a,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]!==a||e[23]!==g?(p=a(g),e[22]=a,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]!==a||e[29]!==l.status?(j=me[m]?a(me[m]):l.status,e[27]=m,e[28]=a,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]!==i||e[54]!==h?(_=s.jsxs(fe,{children:[c,i,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]=i,e[54]=h,e[55]=_):_=e[55],_}function Ye(t){const e=U.c(51),{org:l}=t,r=ee(),[a,m]=z.useState(Q),[o,c]=z.useState(Q),i=a===Q?void 0:a,u=o===Q?void 0:o;let n;e[0]!==l||e[1]!==i||e[2]!==u?(n={org:l,status:i,kind:u,limit:150},e[0]=l,e[1]=i,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]!==a||e[15]!==S?(y=s.jsxs(ie,{value:a,onValueChange:m,children:[k,S]}),e[14]=a,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(ie,{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(ae,{label:r("thread.analytics.countRunning"),value:d.counts.running}),s.jsx(ae,{label:r("thread.analytics.countWaiting"),value:d.counts.waiting}),s.jsx(ae,{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:a}=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(),i=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]!==a||e[11]!==u||e[12]!==i?(n=s.jsx(De,{thread:u,client:o,locator:a,connections:c,virtualMcps:i,members:void 0,meta:!1}),e[8]=o,e[9]=c,e[10]=a,e[11]=u,e[12]=i,e[13]=n):n=e[13],n}function qe(t){const e=U.c(12),{thread:l,onClose:r}=t,a=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 i;e[2]!==m||e[3]!==a||e[4]!==l?(i=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||a("thread.analytics.untitled")})}),children:s.jsx(Me,{thread:l})})}),e[2]=m,e[3]=a,e[4]=l,e[5]=i):i=e[5];let u;e[6]!==i?(u=s.jsx($e,{className:"flex flex-col gap-0 p-0 sm:max-w-2xl",children:i}),e[6]=i,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:a,to:m}=t,o=ee();let c;e[0]!==a||e[1]!==r||e[2]!==m?(c={org:r,from:a,to:m},e[0]=a,e[1]=r,e[2]=m,e[3]=c):c=e[3];const{data:i,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(!i)return null;let x;e[7]!==i.sections?(x=i.sections.map(Ge),e[7]=i.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 cl(){const t=U.c(99),e=ee(),l=ge({strict:!1}).org??"",r=ve(),[a,m]=z.useState("all"),[o,c]=z.useState(7),[i,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]!==a||t[35]!==L||t[36]!==b||t[37]!==C?(v=s.jsx(_e,{options:L,value:a,onChange:m,width:"w-[240px]",searchPlaceholder:C,emptyMessage:b}),t[34]=a,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]!==i?(N=i!=="live"&&s.jsxs(ie,{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]=i,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]!==a||t[50]!==l||t[51]!==e?(D=a!==l&&s.jsx("div",{className:"rounded-lg bg-warning/10 px-3 py-2 text-sm text-warning",children:a==="all"?e("taskBoard.analytics.bannerAll"):e("taskBoard.analytics.bannerOrg",{org:a})}),t[49]=a,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]!==a||t[71]!==i?(F=i==="live"&&s.jsx(Ye,{org:a}),t[70]=a,t[71]=i,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]!==a||t[77]!==i||t[78]!==d?(M=i==="usage"&&s.jsx(ue,{tool:"THREAD_ANALYTICS_USAGE",org:a,from:g,to:d}),t[75]=g,t[76]=a,t[77]=i,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]!==a||t[84]!==i||t[85]!==d?(G=i==="errors"&&s.jsx(ue,{tool:"THREAD_ANALYTICS_ERRORS",org:a,from:g,to:d}),t[82]=g,t[83]=a,t[84]=i,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]!==i?(X=s.jsxs(Ee,{value:i,onValueChange:O,children:[A,Y,q,W]}),t[89]=A,t[90]=Y,t[91]=q,t[92]=W,t[93]=i,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{cl as default};
|