decocms 4.430.1 → 4.430.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-BUkWQfB_.js → AlertCircle-CVYthSXp.js} +1 -1
- package/dist/client/assets/{AreaChart-DNVY-5xH.js → AreaChart-qNgHWHyJ.js} +1 -1
- package/dist/client/assets/{ArrowLeft-C_Aui1-t.js → ArrowLeft-CyFyBJmn.js} +1 -1
- package/dist/client/assets/{ArrowUp-dUCC1h4R.js → ArrowUp-CeSPU7QT.js} +1 -1
- package/dist/client/assets/{CartesianChart-BJS29ety.js → CartesianChart-B5tlzKMt.js} +1 -1
- package/dist/client/assets/{Check-D53o53z1.js → Check-DN3fVKj8.js} +1 -1
- package/dist/client/assets/{CheckCircle-CiGc92II.js → CheckCircle-BsdvfhEK.js} +1 -1
- package/dist/client/assets/{ChevronUp-C0R59WlW.js → ChevronUp-xWbDxNSk.js} +1 -1
- package/dist/client/assets/{Copy01-Bc_ajdkn.js → Copy01-Dv7sipLd.js} +1 -1
- package/dist/client/assets/{CreditCard01-kOAv1J_D.js → CreditCard01-Dk07lq-0.js} +1 -1
- package/dist/client/assets/{DotsVertical-COvSpfVi.js → DotsVertical-DhmK4qgN.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-DT3_OZEr.js → ErrorBarContext-gSfovbHF.js} +1 -1
- package/dist/client/assets/{Image01-BOx8LVbG.js → Image01-Y9Scw-o_.js} +1 -1
- package/dist/client/assets/{Key01-CmosOv0s.js → Key01-CtWEwt_r.js} +1 -1
- package/dist/client/assets/{Line-CComtnBD.js → Line-DBvwF3QX.js} +1 -1
- package/dist/client/assets/{Link01-B-BcpSea.js → Link01-CsZgPYpl.js} +1 -1
- package/dist/client/assets/LinkBroken01-DGoMMKbF.js +1 -0
- package/dist/client/assets/{LinkExternal01-BOhmrkdK.js → LinkExternal01-B-WvSbZy.js} +1 -1
- package/dist/client/assets/{Monitor01-CqmqvaJt.js → Monitor01-kmeIS50B.js} +1 -1
- package/dist/client/assets/{Palette-Dn80uz2_.js → Palette-CmpIZcQI.js} +1 -1
- package/dist/client/assets/{Plus-B0T7sCOu.js → Plus-CGgnB9yV.js} +1 -1
- package/dist/client/assets/{SearchMd-BjiZq5Ss.js → SearchMd-B7WxOr73.js} +1 -1
- package/dist/client/assets/{Sector-WjC96jsi.js → Sector-CEcu8yPs.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-mLNM1PWh.js → ShoppingBag01-BG3AWGBS.js} +1 -1
- package/dist/client/assets/{Sun--68QpCgd.js → Sun-Be_v4SgI.js} +1 -1
- package/dist/client/assets/{Tool01-UwOdqleo.js → Tool01-U6VAdTvK.js} +1 -1
- package/dist/client/assets/{Trash01-CzavZmmt.js → Trash01-d2ldPDpp.js} +1 -1
- package/dist/client/assets/{Upload01-BWIuH341.js → Upload01-vuUJE-Un.js} +1 -1
- package/dist/client/assets/{User01-CUsG_6c_.js → User01-DrdqUOnb.js} +1 -1
- package/dist/client/assets/{UserSquare-BMQF7dC1.js → UserSquare-zqtxIeMd.js} +1 -1
- package/dist/client/assets/{Users01-Bbfu9MdC.js → Users01-BSNk1mAx.js} +1 -1
- package/dist/client/assets/{X-CtohJRXR.js → X-MCJw_lkE.js} +1 -1
- package/dist/client/assets/{XAxis-Depi7ZOt.js → XAxis-CUk_D47K.js} +1 -1
- package/dist/client/assets/{XClose-Bg9Zp2j0.js → XClose-DJWS3DCR.js} +1 -1
- package/dist/client/assets/{ZoomOut-C_zus5H2.js → ZoomOut-DxgRaJHf.js} +1 -1
- package/dist/client/assets/{access-gate-BSw0CcmD.js → access-gate-buHLOhRt.js} +1 -1
- package/dist/client/assets/add-connection-dialog-b2gPK4A2.js +1 -0
- package/dist/client/assets/agent-analytics-CkHKK2sI.js +2 -0
- package/dist/client/assets/agent-app-xUbOx1nA.js +1 -0
- package/dist/client/assets/agent-assets-BLWW7tSV.js +1 -0
- package/dist/client/assets/{agent-automation-CWPvYNFY.js → agent-automation-C585Dco7.js} +2 -2
- package/dist/client/assets/agent-automations-DipmSooi.js +1 -0
- package/dist/client/assets/agent-connect-sources-Cg-rDHA_.js +1 -0
- package/dist/client/assets/agent-deck-BOFjOn39.js +1 -0
- package/dist/client/assets/agent-e2e-BF3tKvyc.js +1 -0
- package/dist/client/assets/agent-experiments-fsdGMiOY.js +1 -0
- package/dist/client/assets/agent-file-BbcJd6HM.js +1 -0
- package/dist/client/assets/{agent-git-C1jtwOs1.js → agent-git-vy54BjiV.js} +2 -2
- package/dist/client/assets/agent-hosting-Bnd-xqY4.js +1 -0
- package/dist/client/assets/agent-icon-DQhX6pyL.js +1 -0
- package/dist/client/assets/agent-library-CoQDyojP.js +1 -0
- package/dist/client/assets/agent-library-file-Bp-seD91.js +1 -0
- package/dist/client/assets/agent-monitor-DIqqvckJ.js +1 -0
- package/dist/client/assets/agent-overview-DIPsKuHn.js +1 -0
- package/dist/client/assets/agent-settings-CuSkQv6E.js +1 -0
- package/dist/client/assets/{agent-site-editor-DQ9aUQOK.js → agent-site-editor-C_9Sp-ko.js} +2 -2
- package/dist/client/assets/agent-site-editor-code-BWwVQZ5b.js +2 -0
- package/dist/client/assets/{agent-site-editor-content-D62zi8Ka.js → agent-site-editor-content-BIULxMT9.js} +3 -3
- package/dist/client/assets/{agent-site-editor-preview-BFe9L8ZC.js → agent-site-editor-preview-CA1JSDGo.js} +3 -3
- package/dist/client/assets/agent-view-bJuK5JMH.js +1 -0
- package/dist/client/assets/{agent-view-guard-DvkFRuT1.js → agent-view-guard-CRvRYAMg.js} +1 -1
- package/dist/client/assets/agents-list-BguEBZWs.js +1 -0
- package/dist/client/assets/{ai-providers-BKaAhkKr.js → ai-providers-DQfBdh-5.js} +1 -1
- package/dist/client/assets/{alert-hHCCxPrm.js → alert-BxbrJMD6.js} +1 -1
- package/dist/client/assets/{alert-dialog-DPE6kDht.js → alert-dialog-BYJnmaQz.js} +1 -1
- package/dist/client/assets/{analytics-sections-BaLMxjIR.js → analytics-sections-BupuHkrr.js} +1 -1
- package/dist/client/assets/{api-keys-Cs2lX4sa.js → api-keys-9ma74-9W.js} +1 -1
- package/dist/client/assets/api-keys-CgI6_AMK.js +1 -0
- package/dist/client/assets/app-editor-Cw0XiLbp.js +1 -0
- package/dist/client/assets/{asset-utils-6K_UaEMl.js → asset-utils-Qk5h-wqe.js} +1 -1
- package/dist/client/assets/{auth-yZ0dbxiQ.js → auth-BA3Q_TJo.js} +1 -1
- package/dist/client/assets/{auth-catchall-C2FsnDrX.js → auth-catchall-knLcWJNd.js} +1 -1
- package/dist/client/assets/{auth-entry-BVb_LGQt.js → auth-entry-DJOJ8Rs7.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DCczOAkV.js → auth-split-layout-Dt6Lr3jy.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-DSfbaJXn.js → authenticate-and-persist-oauth-BTuznNbi.js} +1 -1
- package/dist/client/assets/{automation-list-row-BX95wnlk.js → automation-list-row-DGBpkMxN.js} +1 -1
- package/dist/client/assets/{automation-runs-rMXYly96.js → automation-runs-CgYsY8Ss.js} +1 -1
- package/dist/client/assets/automations-CB7gLMbz.js +1 -0
- package/dist/client/assets/{autosend-DaQ0WgM_.js → autosend-D_HIQJhP.js} +1 -1
- package/dist/client/assets/{avatar-qgmN1uFW.js → avatar-DnckqjGp.js} +1 -1
- package/dist/client/assets/{badge-Bjr6roKX.js → badge-BeT90Jfh.js} +1 -1
- package/dist/client/assets/{block-document-CmPQoPil.js → block-document-g-hQygUE.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-Bt2a6bTr.js → blocks-preview-workspace-context-CIl38gkx.js} +1 -1
- package/dist/client/assets/{buckets-CUvpxamI.js → buckets-0BdD_fJX.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-DVZptWMu.js → build-improve-prompt-doc-C5i29eyt.js} +1 -1
- package/dist/client/assets/{calendar-hWMukXvu.js → calendar-DwEcUKGe.js} +1 -1
- package/dist/client/assets/{capability-load-error-BhEiGFSy.js → capability-load-error-BwY99ChM.js} +1 -1
- package/dist/client/assets/category-editor-BPnM7ZcX.js +1 -0
- package/dist/client/assets/{chart-CpCJ5a7h.js → chart-DzZFGD1z.js} +1 -1
- package/dist/client/assets/{chat-context-CG9Mp_L-.js → chat-context-CSREXmZ-.js} +1 -1
- package/dist/client/assets/{chat-draft-DApZt_La.js → chat-draft-BYIogZvi.js} +1 -1
- package/dist/client/assets/{checkbox-DoT4yq3W.js → checkbox-VSFOqgpI.js} +1 -1
- package/dist/client/assets/choose-editor-BhFFcEad.js +1 -0
- package/dist/client/assets/{claim-phase-copy-BVJw-2Sg.js → claim-phase-copy-DMl_wfzl.js} +1 -1
- package/dist/client/assets/{cli-auth-success-B4d0MFu9.js → cli-auth-success-rCzd61IP.js} +1 -1
- package/dist/client/assets/{client-icons-B2Ky8xii.js → client-icons-DQokRtPQ.js} +1 -1
- package/dist/client/assets/{collapsible-D2a3Inov.js → collapsible-hh2QeFQx.js} +1 -1
- package/dist/client/assets/collection-detail-CZHU581t.js +1 -0
- package/dist/client/assets/{collection-display-button-YClOnQnk.js → collection-display-button-BHhyBowf.js} +1 -1
- package/dist/client/assets/{collection-search-B5LfgGj5.js → collection-search-Be2s73S6.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-1_pTlxny.js → collection-table-wrapper-CZd1WcSO.js} +1 -1
- package/dist/client/assets/{collection-tabs-CYKC6woL.js → collection-tabs-B1fc3hEx.js} +1 -1
- package/dist/client/assets/{combobox-Bi0f4g0J.js → combobox-DJXjtyos.js} +1 -1
- package/dist/client/assets/{command-DcCoSxh3.js → command-i-VcjjfU.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-Dk-qAE2Z.js → companion-mcps-section-BNGcJQ5q.js} +1 -1
- package/dist/client/assets/{config-bRaSZ6ZI.js → config-B-PocAul.js} +1 -1
- package/dist/client/assets/{connect-CDe5uHFz.js → connect-CJrfrNOc.js} +1 -1
- package/dist/client/assets/{connect-layout-6lDDk3bO.js → connect-layout-Ck9_7bFy.js} +1 -1
- package/dist/client/assets/{connection-DLRl6H0w.js → connection-DWKQsiJ1.js} +1 -1
- package/dist/client/assets/{connection-card-BMfy_L46.js → connection-card-BxTTbMjg.js} +1 -1
- package/dist/client/assets/connection-detail-CwaF40yO.js +1 -0
- package/dist/client/assets/{connection-form-helpers-DyGM93YP.js → connection-form-helpers-UQvDnJ_o.js} +1 -1
- package/dist/client/assets/connections-BLQ5SqNN.js +1 -0
- package/dist/client/assets/context-BkyMYnN6.js +1 -0
- package/dist/client/assets/{context-menu-BWEhojhE.js → context-menu-D2E2BNSJ.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-D2gREUUr.js → create-organization-dialog-BPnp8P72.js} +1 -1
- package/dist/client/assets/daily-pulse-BmnQTDoG.js +1 -0
- package/dist/client/assets/{decopilot-Cp1gF-AT.js → decopilot-CaWhcF5x.js} +1 -1
- package/dist/client/assets/{dialog-D1MsBTH7.js → dialog-DwOXW4AO.js} +1 -1
- package/dist/client/assets/discover-DakQJU5_.js +1 -0
- package/dist/client/assets/{domain-settings-CVSAVAoV.js → domain-settings-CrCw_lIY.js} +1 -1
- package/dist/client/assets/{download-app-dialog-CI6vYgNV.js → download-app-dialog-CZZmW5dI.js} +1 -1
- package/dist/client/assets/{drawer-DQ1B0U-G.js → drawer-DYVK-Yxy.js} +1 -1
- package/dist/client/assets/{editor-CXgFNygO.js → editor-fs_-xqtP.js} +1 -1
- package/dist/client/assets/{empty-state-CwnTG9Vu.js → empty-state-B8AHzTIo.js} +1 -1
- package/dist/client/assets/{empty-state-zFf02K5-.js → empty-state-GPBYJgGv.js} +1 -1
- package/dist/client/assets/{extract-connection-data-CD-3Cduz.js → extract-connection-data-DwhEeit2.js} +1 -1
- package/dist/client/assets/{feature-gate-DxAWWJZd.js → feature-gate-CitKKOE2.js} +1 -1
- package/dist/client/assets/{feature-paywall-C7fyZx2V.js → feature-paywall-DweqAdFr.js} +1 -1
- package/dist/client/assets/file-explorer-DCrNzMRJ.js +2 -0
- package/dist/client/assets/{file-preview-WwyFKcds.js → file-preview-CUNQwIMu.js} +1 -1
- package/dist/client/assets/{file-share-button-0thUGHHJ.js → file-share-button-DVNdVkoS.js} +2 -2
- package/dist/client/assets/{file-type-icon-TH99y45i.js → file-type-icon-BKMgh7vP.js} +1 -1
- package/dist/client/assets/flat-project-BzPFVO8c.js +1 -0
- package/dist/client/assets/{folder-icon-Dmxyn26B.js → folder-icon-DFC1tMoz.js} +1 -1
- package/dist/client/assets/{form-CelWRzw5.js → form-CBqY_Qj5.js} +1 -1
- package/dist/client/assets/{gateway-client-B5Pd686Y.js → gateway-client-BgWzL4m_.js} +1 -1
- package/dist/client/assets/{general-DeFJH4BS.js → general-CpwupPfh.js} +1 -1
- package/dist/client/assets/home-DL5QzWnK.js +1 -0
- package/dist/client/assets/icon-button-BtLKyT7m.js +1 -0
- package/dist/client/assets/{index-CMZSUEgF.js → index-BbS4gDnQ.js} +1 -1
- package/dist/client/assets/{index-CtnFCw07.js → index-BeeQz6mt.js} +1 -1
- package/dist/client/assets/{index-COzII8Rl.js → index-BzcY0Rd6.js} +1 -1
- package/dist/client/assets/{index-CdVv5PyR.js → index-BznQH_sl.js} +1 -1
- package/dist/client/assets/{index-BBMMcl5D.js → index-C8jZ4bpw.js} +1 -1
- package/dist/client/assets/{index-CyQyr88p.js → index-CWzlOAQX.js} +46 -46
- package/dist/client/assets/{index-9e8H03cs.js → index-Cy0Tj9zL.js} +1 -1
- package/dist/client/assets/{index-De2ebevC.js → index-DCYp09DY.js} +1 -1
- package/dist/client/assets/{index-3gIKLZj9.css → index-DDkAv5gF.css} +1 -1
- package/dist/client/assets/{index-xqiApMBX.js → index-DSVDaqXP.js} +1 -1
- package/dist/client/assets/{index-DXD6LtMh.js → index-DYrWEQp-.js} +1 -1
- package/dist/client/assets/index-Dh5O1uzF.js +1 -0
- package/dist/client/assets/{index-Bp8O3HWE.js → index-DrVMQFyO.js} +1 -1
- package/dist/client/assets/index-HhorfmmF.js +1 -0
- package/dist/client/assets/{index-POiEXzT7.js → index-Qp03HhfC.js} +1 -1
- package/dist/client/assets/{index-DbPTqP1k.js → index-h4lVf9qd.js} +4 -4
- package/dist/client/assets/{index-redirect-XX1RPnFl.js → index-redirect-BzVBOYpG.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-Bm7kObFT.js → infiniteQueryObserver-z6KpeaXk.js} +1 -1
- package/dist/client/assets/{infra-billing-Wd0aWcPF.js → infra-billing-Dm9O0MpT.js} +1 -1
- package/dist/client/assets/{input-CeDoO_Rr.js → input-BT8saI27.js} +1 -1
- package/dist/client/assets/{input-D-tRfEUe.js → input-CJK7pC9G.js} +1 -1
- package/dist/client/assets/{input-C19kkoiF.js → input-bivLuh-1.js} +3 -3
- package/dist/client/assets/integration-icon-B95GPMKQ.js +1 -0
- package/dist/client/assets/{label-DO3jRcdx.js → label-0TZ28Umz.js} +1 -1
- package/dist/client/assets/{last-preview-page-CI8sVa42.js → last-preview-page-ZNVmf1EU.js} +1 -1
- package/dist/client/assets/{layout-C3JP2G-I.js → layout-j1X96Ggx.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-BJqv5541.js → legacy-agents-deep-cacTD8f_.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-CXYH487V.js → legacy-main-redirect--cYJW20n.js} +1 -1
- package/dist/client/assets/library-DtGn3FJA.js +1 -0
- package/dist/client/assets/{library-tab-vy9WBvuU.js → library-tab-CTkh7nfn.js} +1 -1
- package/dist/client/assets/{login-DZytsZWm.js → login-c8HNUl_C.js} +1 -1
- package/dist/client/assets/{markdown-CD9qrdS_.js → markdown-Bqzss8Ii.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-C_mTIe3Q.js → mcp-app-renderer-BXwhxgcp.js} +1 -1
- package/dist/client/assets/{mcp-oauth-BHkP1C2P.js → mcp-oauth-C0PojFFt.js} +1 -1
- package/dist/client/assets/{members-BXW762DS.js → members-CyyrlPEt.js} +1 -1
- package/dist/client/assets/{message-templates-Y1dkPYIa.js → message-templates-BDPyGA1f.js} +1 -1
- package/dist/client/assets/{mini-report-page-BBWmfTbX.js → mini-report-page-BNC-xTjm.js} +1 -1
- package/dist/client/assets/{mock-board-DAh526hI.js → mock-board-DovrLxym.js} +1 -1
- package/dist/client/assets/{monaco-editor-1WiLwMoS.js → monaco-editor-DCqxqYSj.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-DvfsN9_z.js → monitoring-stats-row-OA16NnfT.js} +1 -1
- package/dist/client/assets/{multi-select-CUTVdKAC.js → multi-select-tRlT3L5z.js} +1 -1
- package/dist/client/assets/{mustache-BoM8yvOe.js → mustache-BP7du7Zy.js} +1 -1
- package/dist/client/assets/{new-project-dialog-_BSkwB51.js → new-project-dialog-I6QtJuZt.js} +1 -1
- package/dist/client/assets/{oauth-callback-DsCdusXE.js → oauth-callback-MJTjt1We.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-C5T-VDKL.js → oauth-callback-ai-provider-B0EhyPGD.js} +1 -1
- package/dist/client/assets/{onboarding-DetvWDKL.js → onboarding-X4AYCK_N.js} +1 -1
- package/dist/client/assets/openai-conversation-BrI4LVLa.js +3 -0
- package/dist/client/assets/{optimistic-project-sidebar-views-DVSvifkv.js → optimistic-project-sidebar-views-B35k6512.js} +1 -1
- package/dist/client/assets/{org-file-open-context-vlnvSapQ.js → org-file-open-context-W094eyab.js} +1 -1
- package/dist/client/assets/{organization-choice-Bl7AK6HJ.js → organization-choice-BLsuyEtq.js} +1 -1
- package/dist/client/assets/{orgs-_O4TUqxu.js → orgs-Y9G8A5Ph.js} +1 -1
- package/dist/client/assets/{page-seo-form--aiitwzb.js → page-seo-form-CJW4yq3f.js} +1 -1
- package/dist/client/assets/{pair-Bjle9-b6.js → pair-csGGOkx1.js} +7 -7
- package/dist/client/assets/{plan-ladder-C9iTCEoq.js → plan-ladder-C4roHlM5.js} +1 -1
- package/dist/client/assets/{popover-BlirYmOQ.js → popover-Cd3ISjs_.js} +1 -1
- package/dist/client/assets/post-calendar-CAWS2Vmq.js +1 -0
- package/dist/client/assets/{post-editor-QaOkF5FX.js → post-editor-D2xBHjct.js} +1 -1
- package/dist/client/assets/{preview-content-C4Rard2P.js → preview-content-CzVZuXbr.js} +1 -1
- package/dist/client/assets/{preview-dialog-Cz9jaB0z.js → preview-dialog-8lnbKA_n.js} +1 -1
- package/dist/client/assets/{profile-C-BPCyIp.js → profile-BgxkafeL.js} +1 -1
- package/dist/client/assets/project-app-view-icxI7Rov.js +1 -0
- package/dist/client/assets/project-feed-BgMHYF1Z.js +1 -0
- package/dist/client/assets/{project-icon-C1d9Z0m5.js → project-icon-BfkDVtEt.js} +1 -1
- package/dist/client/assets/project-reports-BFfWvANX.js +1 -0
- package/dist/client/assets/project-tasks-C64LpTAA.js +1 -0
- package/dist/client/assets/projects-BUTz1MMd.js +1 -0
- package/dist/client/assets/{projects-empty-state-Bdo_Rhj-.js → projects-empty-state-D4QNY6yf.js} +1 -1
- package/dist/client/assets/{prompts-BsB5FTPC.js → prompts-_wvcaZiq.js} +1 -1
- package/dist/client/assets/record-editor-6OpzvMEF.js +1 -0
- package/dist/client/assets/redirect-editor-D7uptbDW.js +1 -0
- package/dist/client/assets/reports-DLhsthYj.js +1 -0
- package/dist/client/assets/{reports-Chj5li8_.js → reports-KcjvDixJ.js} +1 -1
- package/dist/client/assets/reports-onboarding-Zp49oKKp.js +1 -0
- package/dist/client/assets/reports-tab-BbyRBNRf.js +2 -0
- package/dist/client/assets/repositories-EkSR0y55.js +1 -0
- package/dist/client/assets/{repository-binding-Dgq5OsMA.js → repository-binding-3gizJnq4.js} +1 -1
- package/dist/client/assets/{repository-import-picker-D2pzrWr6.js → repository-import-picker-DG_yM72C.js} +1 -1
- package/dist/client/assets/{repository-picker-STEm8zmF.js → repository-picker-BR_sMkOw.js} +1 -1
- package/dist/client/assets/{require-capability-BH1WwajD.js → require-capability-C2Nda3jm.js} +1 -1
- package/dist/client/assets/{required-auth-layout-Cy0atFVL.js → required-auth-layout-CtzgnDx3.js} +1 -1
- package/dist/client/assets/{reset-password-BwPcMGPY.js → reset-password-D2Alw1H7.js} +1 -1
- package/dist/client/assets/{resizable-BU4a2PvY.js → resizable-DqYE28tG.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-c84JJRcB.js → resolve-tab-icon-liQGha1g.js} +1 -1
- package/dist/client/assets/{review-settings-iEyMCfp2.js → review-settings-B0nVs037.js} +1 -1
- package/dist/client/assets/{rich-text-link-control-DlGKoKEw.js → rich-text-link-control-U94G_E0v.js} +1 -1
- package/dist/client/assets/roles-B_4b_QUD.js +1 -0
- package/dist/client/assets/route-16Qzmh2H.js +1 -0
- package/dist/client/assets/route-B3tjN4Zg.js +1 -0
- package/dist/client/assets/route-C_Hs1TIL.js +1 -0
- package/dist/client/assets/{runnable-block-editor-R-_6elGy.js → runnable-block-editor-Dx2bIxdz.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-BEIzLgKJ.js → sandbox-lifecycle-context-BxUTEul4.js} +1 -1
- package/dist/client/assets/{schema-Gtjoj1mV.js → schema-BKdAxrjN.js} +1 -1
- package/dist/client/assets/{scroll-area-BItWkZyD.js → scroll-area-Cay3wJhN.js} +1 -1
- package/dist/client/assets/{search-input-2HqPa1gU.js → search-input-B_YmmZHV.js} +1 -1
- package/dist/client/assets/{search-toggle-TwxL51Rq.js → search-toggle-B17M6kpS.js} +1 -1
- package/dist/client/assets/{secret-picker-LUd97qaj.js → secret-picker-DaCIoDrN.js} +1 -1
- package/dist/client/assets/{secrets-C-fl25hO.js → secrets-2PSicqyQ.js} +1 -1
- package/dist/client/assets/sections-editor-DBJwN3fQ.js +1 -0
- package/dist/client/assets/{select-BqcGTWMZ.js → select-CF6Gp6z2.js} +1 -1
- package/dist/client/assets/{select-model-UIikOcTl.js → select-model-BfrFqNKL.js} +1 -1
- package/dist/client/assets/seo-editor-DWB8ATJr.js +1 -0
- package/dist/client/assets/{separator-Cfi478VR.js → separator-7nNJ8bt3.js} +1 -1
- package/dist/client/assets/{settings-tab-32WTJPDU.js → settings-tab-BjVbMHuj.js} +1 -1
- package/dist/client/assets/{sheet-jXYhJY1b.js → sheet-BxvcwNse.js} +1 -1
- package/dist/client/assets/{shell-layout-CqQIq2hS.js → shell-layout-CzhXAO9S.js} +1 -1
- package/dist/client/assets/{skills-DoXVf8Lu.js → skills-DgHWYsVv.js} +1 -1
- package/dist/client/assets/{sso-CkmBYFtO.js → sso-Be79miIa.js} +1 -1
- package/dist/client/assets/{suggestion-DKXZWHaN.js → suggestion-RCbdRB_3.js} +1 -1
- package/dist/client/assets/{switch-Dcx0z8yf.js → switch-CAhfktTZ.js} +1 -1
- package/dist/client/assets/{synced-repos-BmYDHZBR.js → synced-repos-Cfc_noHz.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-CJeQz4Ym.js → tab-icon-glyph-C3JncEmv.js} +1 -1
- package/dist/client/assets/{table-2Z24Uf7A.js → table-BiIyEc6M.js} +1 -1
- package/dist/client/assets/{tabs-Dcs_wljk.js → tabs-MJcU_hz5.js} +1 -1
- package/dist/client/assets/{task-board-BZQiH6lk.js → task-board-ZOkVjFfb.js} +1 -1
- package/dist/client/assets/{task-route-Y6qsNyYg.js → task-route-2jOSkzR_.js} +1 -1
- package/dist/client/assets/{task-status-DJtE9wAV.js → task-status-DnIsBsG3.js} +1 -1
- package/dist/client/assets/taskboard-analytics-CagGkIPc.js +1 -0
- package/dist/client/assets/{tasks-CMIeA9v4.js → tasks-BYfXzj9g.js} +1 -1
- package/dist/client/assets/tasks-C59QR4O_.js +1 -0
- package/dist/client/assets/{textarea-Crpj1sFF.js → textarea-DPzgPhO0.js} +1 -1
- package/dist/client/assets/thread-analytics-D4ZCwT01.js +1 -0
- package/dist/client/assets/thread-button-KYXikVLO.js +1 -0
- package/dist/client/assets/{thread-intent-CCZj7A0k.js → thread-intent-uQTUqJNN.js} +1 -1
- package/dist/client/assets/thread-route-D1S383-w.js +1 -0
- package/dist/client/assets/{thread-route-BnMz_7UO.js → thread-route-D9Gbeij-.js} +1 -1
- package/dist/client/assets/thread-sheet-body-CywQ9hos.js +1 -0
- package/dist/client/assets/{toggle-group-C6K0IvrN.js → toggle-group-Ddc-8H1o.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-xv3yPHM9.js → toolbar-icon-button-ByY5u7GY.js} +1 -1
- package/dist/client/assets/{tooltip-MkmbJW_K.js → tooltip-BqndO78a.js} +1 -1
- package/dist/client/assets/{track-DiI841S7.js → track-hlVnSAov.js} +1 -1
- package/dist/client/assets/{types-CRa6H_aI.js → types-sBzHo8Ih.js} +1 -1
- package/dist/client/assets/{usage-stats-D9M3mjk5.js → usage-stats-yhYX0e5G.js} +1 -1
- package/dist/client/assets/{use-ai-providers-CkGkm3q3.js → use-ai-providers-BYo-eRGm.js} +1 -1
- package/dist/client/assets/{use-automations-Ln-ZgedH.js → use-automations-ChYX58CC.js} +1 -1
- package/dist/client/assets/{use-autosave-DCbYTwqE.js → use-autosave-Bex7Xrty.js} +1 -1
- package/dist/client/assets/{use-chat-layout-state-BPeSMGIC.js → use-chat-layout-state-TqbwuuZk.js} +1 -1
- package/dist/client/assets/{use-connect-companion-DB9iKUcO.js → use-connect-companion-BRtgSb9P.js} +1 -1
- package/dist/client/assets/{use-connection-DpAJRH1j.js → use-connection-CI6FQy3s.js} +1 -1
- package/dist/client/assets/{use-copy-C7mYE0cr.js → use-copy-PnkEhrhy.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-YtxQuBqL.js → use-create-virtual-mcp-BziW--Xo.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-b7C9_zv4.js → use-date-fns-locale-DvDfBLBf.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-Dl2BkZfj.js → use-debounced-autosave-BesgsSGy.js} +1 -1
- package/dist/client/assets/{use-debounced-value-Csr5jCDV.js → use-debounced-value-DfLnstW7.js} +1 -1
- package/dist/client/assets/{use-deco-credits-CjSuIvCj.js → use-deco-credits-vsffD2IB.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-1ymO_vHG.js → use-decopilot-events-jyM4oYaJ.js} +1 -1
- package/dist/client/assets/{use-delete-connection-DIl-WTwH.js → use-delete-connection-B9XzXBHi.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-Bln500bu.js → use-deployment-admin-DnuvCNsE.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-BVH9ntfX.js → use-fast-preview-draft-url-D4k5eZ2W.js} +1 -1
- package/dist/client/assets/{use-file-configs-BmM3RnWT.js → use-file-configs-DXe1xU9a.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-DKthVIzG.js → use-infinite-scroll-DViN6YmU.js} +1 -1
- package/dist/client/assets/{use-join-requests-CMXs54Gp.js → use-join-requests-BAj95XYz.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-D9AQTjhM.js → use-main-panel-tabs-CASquBgs.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-BzOtb6NF.js → use-mcp-auth-status-W5VgXonZ.js} +1 -1
- package/dist/client/assets/{use-mcp-client-BuS_j4o-.js → use-mcp-client-Ct2vdUoM.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-BBHmJESk.js → use-mcp-prompts-Dk_d3SlG.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-DMDsoga2.js → use-mcp-tools-Bnl7RrzG.js} +1 -1
- package/dist/client/assets/{use-members-oDlXNVCE.js → use-members-9XNbNa6j.js} +1 -1
- package/dist/client/assets/{use-mobile-BCh8YRo6.js → use-mobile--np6aWAG.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-4LkoL-j8.js → use-navigate-to-agent-0Fvf2Lpw.js} +1 -1
- package/dist/client/assets/use-new-blocks-editor-BXR_sYex.js +1 -0
- package/dist/client/assets/{use-open-billing-url-BXuHuuOL.js → use-open-billing-url-BMXuqlhP.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-C-MfZ94G.js → use-org-auth-client-CN0iwzUb.js} +1 -1
- package/dist/client/assets/{use-org-fs-CmBvsBMY.js → use-org-fs-k5NldW-7.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-d4JgzgQp.js → use-org-repo-syncs-EkZ_pjWr.js} +1 -1
- package/dist/client/assets/{use-org-sso-DUqEoTxr.js → use-org-sso-B__Yf47H.js} +1 -1
- package/dist/client/assets/{use-organization-roles-C_c0eWOx.js → use-organization-roles-B3rV1LLK.js} +1 -1
- package/dist/client/assets/{use-organization-settings-Cm1vewr9.js → use-organization-settings-B0MM1DlS.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-CiX_5778.js → use-panel-navigate-Dk1Ye1GR.js} +1 -1
- package/dist/client/assets/{use-project-scope-BxTK_qgl.js → use-project-scope-C9VWhN8V.js} +1 -1
- package/dist/client/assets/{use-releases-BQ508TNB.js → use-releases-DN0A-Kpr.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-CuugPiuf.js → use-reports-diagnostic-DHXQZUvd.js} +1 -1
- package/dist/client/assets/{use-secrets-TLJHLrLj.js → use-secrets-C2MxSlcA.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-gSStkCYp.js → use-section-preview-base-BYyvYPZ7.js} +1 -1
- package/dist/client/assets/{use-session-runtime-BVWXx-Hx.js → use-session-runtime-DsnbbYN7.js} +1 -1
- package/dist/client/assets/{use-tags-CuAeOwml.js → use-tags-CjTVjQFf.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-DpORgpIb.js → use-task-board-analytics-CCzrdEy3.js} +1 -1
- package/dist/client/assets/{use-task-board-events-1XpVNJEd.js → use-task-board-events-BHC_8phf.js} +1 -1
- package/dist/client/assets/{use-task-metadata-o5vDdJtC.js → use-task-metadata-BzPIvyyo.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-CpdUNsgX.js → use-thread-analytics-B0VguZq2.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-qbmnSZLU.js → use-thread-outputs-DCJFafqq.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-Dxc2v4r4.js +1 -0
- package/dist/client/assets/{useQueries-Cp9cPmFE.js → useQueries-JVjEwDAw.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-C8qiUH4q.js +1 -0
- package/dist/client/assets/{users-BysYiEd8.js → users-CfobUiGt.js} +1 -1
- package/dist/client/assets/{utils-BkJACT4F.js → utils-C39wfwww.js} +1 -1
- package/dist/client/assets/variant-calendar-Bjori3kc.js +1 -0
- package/dist/client/assets/{variant-matcher-override-CDsPfWCr.js → variant-matcher-override-C3oDv2Ac.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-DPCA9Xp0.js → view-mode-toggle-7tgTSsST.js} +1 -1
- package/dist/client/assets/{virtual-mcp-gaJd4WQ5.js → virtual-mcp-BoM8jJW7.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/server/cli.js +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/ArrowRight-Q7Kpem3P.js +0 -1
- package/dist/client/assets/add-connection-dialog-B13l82-x.js +0 -1
- package/dist/client/assets/agent-analytics-Bg7OGjPz.js +0 -2
- package/dist/client/assets/agent-app-CYu2vHrt.js +0 -1
- package/dist/client/assets/agent-assets-PeHArOTz.js +0 -1
- package/dist/client/assets/agent-automations-CG4WPLmg.js +0 -1
- package/dist/client/assets/agent-connect-sources-DBVMs9Oh.js +0 -1
- package/dist/client/assets/agent-deck-CnP02u1J.js +0 -1
- package/dist/client/assets/agent-e2e-CKp4ujG6.js +0 -1
- package/dist/client/assets/agent-experiments-B_K8GWFz.js +0 -1
- package/dist/client/assets/agent-file-DCWTkVS7.js +0 -1
- package/dist/client/assets/agent-hosting-CyJCp9zC.js +0 -1
- package/dist/client/assets/agent-icon-DyICUp-0.js +0 -1
- package/dist/client/assets/agent-library-C9HW9AGH.js +0 -1
- package/dist/client/assets/agent-library-file-BhPllWzW.js +0 -1
- package/dist/client/assets/agent-monitor-DE6uc-Yc.js +0 -1
- package/dist/client/assets/agent-overview-D2xoxQj1.js +0 -1
- package/dist/client/assets/agent-settings-DWsqVjSl.js +0 -1
- package/dist/client/assets/agent-site-editor-code-9ugnawPt.js +0 -2
- package/dist/client/assets/agent-view-QI30T6v_.js +0 -1
- package/dist/client/assets/agents-list-Cve154Hx.js +0 -1
- package/dist/client/assets/api-keys-i59HI6Dn.js +0 -1
- package/dist/client/assets/app-editor-DRm1-NGV.js +0 -1
- package/dist/client/assets/automations-C4ySvzYV.js +0 -1
- package/dist/client/assets/category-editor-BZufyouv.js +0 -1
- package/dist/client/assets/choose-editor-Bm8A4VvY.js +0 -1
- package/dist/client/assets/collection-detail-DvYBq4qN.js +0 -1
- package/dist/client/assets/connection-detail-kRlYCz4f.js +0 -1
- package/dist/client/assets/connections-5gKP9SMR.js +0 -1
- package/dist/client/assets/context-DukDU2Rq.js +0 -1
- package/dist/client/assets/daily-pulse-B5jGavJp.js +0 -1
- package/dist/client/assets/discover-CUlGD-kG.js +0 -1
- package/dist/client/assets/file-explorer-BacigDk4.js +0 -2
- package/dist/client/assets/flat-project-TSS3UcZe.js +0 -1
- package/dist/client/assets/home-DscOh6R0.js +0 -1
- package/dist/client/assets/icon-button-a92J-8vv.js +0 -1
- package/dist/client/assets/index-DqGHQkvC.js +0 -1
- package/dist/client/assets/index-vBm2nEpb.js +0 -1
- package/dist/client/assets/integration-icon--cgW91vt.js +0 -1
- package/dist/client/assets/library-CRn84l2y.js +0 -1
- package/dist/client/assets/openai-conversation-DB0maE3r.js +0 -3
- package/dist/client/assets/post-calendar-BQ6EJh_c.js +0 -1
- package/dist/client/assets/project-app-view-DNZzY5H1.js +0 -1
- package/dist/client/assets/project-feed-CpIs1E9q.js +0 -1
- package/dist/client/assets/project-reports-vXhY3Phe.js +0 -1
- package/dist/client/assets/project-tasks-Cq_ycqFh.js +0 -1
- package/dist/client/assets/projects-BS00BQBL.js +0 -1
- package/dist/client/assets/record-editor-DxsPRjbm.js +0 -1
- package/dist/client/assets/redirect-editor-CYq4KwMq.js +0 -1
- package/dist/client/assets/reports-BAxcoVP6.js +0 -1
- package/dist/client/assets/reports-onboarding-CVv2rrQL.js +0 -1
- package/dist/client/assets/reports-tab-B_N3nqkf.js +0 -2
- package/dist/client/assets/repositories-Bg9oubuI.js +0 -1
- package/dist/client/assets/roles-BMSsHGlS.js +0 -1
- package/dist/client/assets/route-B-A-TKed.js +0 -1
- package/dist/client/assets/route-BbGr0Fmz.js +0 -1
- package/dist/client/assets/route-CKffRuty.js +0 -1
- package/dist/client/assets/sections-editor-Ua2U9XX8.js +0 -1
- package/dist/client/assets/seo-editor-C3FxnQ4B.js +0 -1
- package/dist/client/assets/taskboard-analytics-Cxz6IAs5.js +0 -1
- package/dist/client/assets/tasks-zUoRMh__.js +0 -1
- package/dist/client/assets/thread-analytics-D8Oxt_vz.js +0 -1
- package/dist/client/assets/thread-route-CTg48XGa.js +0 -1
- package/dist/client/assets/thread-sheet-body-BQ5QR1zb.js +0 -1
- package/dist/client/assets/use-new-blocks-editor-C9Lf0NAr.js +0 -1
- package/dist/client/assets/useInfiniteQuery-CucDp1Bl.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-Bv9C99VC.js +0 -1
- package/dist/client/assets/variant-calendar-BDehoemX.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{o as Ye,j as Qe,h as ie,D as Ge,p as ze,q as Ze}from"./index-CtnFCw07.js";import{r as p,eI as Je,eJ as we,eK as et,eL as j,eM as te,j as I,aR as tt,eN as nt,eO as ne,eP as ot,eQ as rt,eR as st,eS as it,eT as at,eU as lt,eV as Ce,eW as ct,c as X,D as ut,K as dt,eX as ft,eY as gt,eZ as mt,b as pt,l as vt,h as ht}from"./index-CyQyr88p.js";import{g as bt,d as xt}from"./gateway-client-B5Pd686Y.js";import{A as yt}from"./agent-icon-DyICUp-0.js";var Xn=Ye;var Rt=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],ae=Rt.join(","),Ie=typeof Element>"u",G=Ie?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,J=!Ie&&Element.prototype.getRootNode?function(n){var e;return n==null||(e=n.getRootNode)===null||e===void 0?void 0:e.call(n)}:function(n){return n?.ownerDocument},ee=function(e,t){var o;t===void 0&&(t=!0);var r=e==null||(o=e.getAttribute)===null||o===void 0?void 0:o.call(e,"inert"),s=r===""||r==="true",i=s||t&&e&&(typeof e.closest=="function"?e.closest("[inert]"):ee(e.parentNode));return i},St=function(e){var t,o=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return o===""||o==="true"},Et=function(e,t,o){if(ee(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(ae));return t&&G.call(e,ae)&&r.unshift(e),r=r.filter(o),r},le=function(e,t,o){for(var r=[],s=Array.from(e);s.length;){var i=s.shift();if(!ee(i,!1))if(i.tagName==="SLOT"){var a=i.assignedElements(),l=a.length?a:i.children,c=le(l,!0,o);o.flatten?r.push.apply(r,c):r.push({scopeParent:i,candidates:c})}else{var d=G.call(i,ae);d&&o.filter(i)&&(t||!e.includes(i))&&r.push(i);var u=i.shadowRoot||typeof o.getShadowRoot=="function"&&o.getShadowRoot(i),g=!ee(u,!1)&&(!o.shadowRootFilter||o.shadowRootFilter(i));if(u&&g){var h=le(u===!0?i.children:u.children,!0,o);o.flatten?r.push.apply(r,h):r.push({scopeParent:i,candidates:h})}else s.unshift.apply(s,i.children)}}return r},Te=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Pe=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||St(e))&&!Te(e)?0:e.tabIndex},wt=function(e,t){var o=Pe(e);return o<0&&t&&!Te(e)?0:o},Ct=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Ae=function(e){return e.tagName==="INPUT"},It=function(e){return Ae(e)&&e.type==="hidden"},Tt=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(o){return o.tagName==="SUMMARY"});return t},Pt=function(e,t){for(var o=0;o<e.length;o++)if(e[o].checked&&e[o].form===t)return e[o]},At=function(e){if(!e.name)return!0;var t=e.form||J(e),o=function(a){return t.querySelectorAll('input[type="radio"][name="'+a+'"]')},r;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")r=o(window.CSS.escape(e.name));else try{r=o(e.name)}catch(i){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",i.message),!1}var s=Pt(r,e.form);return!s||s===e},Nt=function(e){return Ae(e)&&e.type==="radio"},Dt=function(e){return Nt(e)&&!At(e)},Mt=function(e){var t,o=e&&J(e),r=(t=o)===null||t===void 0?void 0:t.host,s=!1;if(o&&o!==e){var i,a,l;for(s=!!((i=r)!==null&&i!==void 0&&(a=i.ownerDocument)!==null&&a!==void 0&&a.contains(r)||e!=null&&(l=e.ownerDocument)!==null&&l!==void 0&&l.contains(e));!s&&r;){var c,d,u;o=J(r),r=(c=o)===null||c===void 0?void 0:c.host,s=!!((d=r)!==null&&d!==void 0&&(u=d.ownerDocument)!==null&&u!==void 0&&u.contains(r))}}return s},ge=function(e){var t=e.getBoundingClientRect(),o=t.width,r=t.height;return o===0&&r===0},Ot=function(e,t){var o=t.displayCheck,r=t.getShadowRoot;if(o==="full-native"&&"checkVisibility"in e){var s=e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!s}if(getComputedStyle(e).visibility==="hidden")return!0;var i=G.call(e,"details>summary:first-of-type"),a=i?e.parentElement:e;if(G.call(a,"details:not([open]) *"))return!0;if(!o||o==="full"||o==="full-native"||o==="legacy-full"){if(typeof r=="function"){for(var l=e;e;){var c=e.parentElement,d=J(e);if(c&&!c.shadowRoot&&r(c)===!0)return ge(e);e.assignedSlot?e=e.assignedSlot:!c&&d!==e.ownerDocument?e=d.host:e=c}e=l}if(Mt(e))return!e.getClientRects().length;if(o!=="legacy-full")return!0}else if(o==="non-zero-area")return ge(e);return!1},Ft=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var o=0;o<t.children.length;o++){var r=t.children.item(o);if(r.tagName==="LEGEND")return G.call(t,"fieldset[disabled] *")?!0:!r.contains(e)}return!0}t=t.parentElement}return!1},qt=function(e,t){return!(t.disabled||It(t)||Ot(t,e)||Tt(t)||Ft(t))},me=function(e,t){return!(Dt(t)||Pe(t)<0||!qt(e,t))},$t=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},Ne=function(e){var t=[],o=[];return e.forEach(function(r,s){var i=!!r.scopeParent,a=i?r.scopeParent:r,l=wt(a,i),c=i?Ne(r.candidates):a;l===0?i?t.push.apply(t,c):t.push(a):o.push({documentOrder:s,tabIndex:l,item:r,isScope:i,content:c})}),o.sort(Ct).reduce(function(r,s){return s.isScope?r.push.apply(r,s.content):r.push(s.content),r},[]).concat(t)},De=function(e,t){t=t||{};var o;return t.getShadowRoot?o=le([e],t.includeContainer,{filter:me.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:$t}):o=Et(e,t.includeContainer,me.bind(null,t)),Ne(o)};function 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 Q(n){return"composedPath"in n?n.composedPath()[0]:n.target}function oe(n,e){if(e==null)return!1;if("composedPath"in n)return n.composedPath().includes(e);const t=n;return t.target!=null&&e.contains(t.target)}function Lt(n){return n.matches("html,body")}function z(n){return n?.ownerDocument||document}function jt(n){return n?n.hasAttribute(pe)?n:n.querySelector("["+pe+"]")||n:null}function Z(n,e,t){return t===void 0&&(t=!0),n.filter(r=>{var s;return r.parentId===e&&(!t||((s=r.context)==null?void 0:s.open))}).flatMap(r=>[r,...Z(n,r.id,t)])}function Kt(n){return"nativeEvent"in n}var Bt=typeof document<"u",Ut=function(){},V=Bt?p.useLayoutEffect:Ut;const Vt={...we},Wt=Vt.useInsertionEffect,Xt=Wt||(n=>n());function W(n){const e=p.useRef(()=>{});return Xt(()=>{e.current=n}),p.useCallback(function(){for(var t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];return e.current==null?void 0:e.current(...o)},[])}const Me=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Oe(n,e){const t=De(n,Me()),o=t.length;if(o===0)return;const r=_t(z(n)),s=t.indexOf(r),i=s===-1?e===1?0:o-1:s+e;return t[i]}function Ht(n){return Oe(z(n).body,1)||n}function Yt(n){return Oe(z(n).body,-1)||n}function re(n,e){const t=e||n.currentTarget,o=n.relatedTarget;return!o||!ce(t,o)}function Qt(n){De(n,Me()).forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")})}function ve(n){n.querySelectorAll("[data-tabindex]").forEach(t=>{const o=t.dataset.tabindex;delete t.dataset.tabindex,o?t.setAttribute("tabindex",o):t.removeAttribute("tabindex")})}const Gt="data-floating-ui-focusable",he="active",be="selected",zt={...we};let xe=!1,Zt=0;const ye=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Zt++;function Jt(){const[n,e]=p.useState(()=>xe?ye():void 0);return V(()=>{n==null&&e(ye())},[]),p.useEffect(()=>{xe=!0},[]),n}const en=zt.useId,ue=en||Jt;function tn(){const n=new Map;return{emit(e,t){var o;(o=n.get(e))==null||o.forEach(r=>r(t))},on(e,t){n.has(e)||n.set(e,new Set),n.get(e).add(t)},off(e,t){var o;(o=n.get(e))==null||o.delete(t)}}}const nn=p.createContext(null),on=p.createContext(null),Fe=()=>{var n;return((n=p.useContext(nn))==null?void 0:n.id)||null},qe=()=>p.useContext(on);function de(n){return"data-floating-ui-"+n}const rn={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0},Re=p.forwardRef(function(e,t){const[o,r]=p.useState();V(()=>{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),Se=de("portal");function an(n){n===void 0&&(n={});const{id:e,root:t}=n,o=ue(),r=cn(),[s,i]=p.useState(null),a=p.useRef(null);return V(()=>()=>{s?.remove(),queueMicrotask(()=>{a.current=null})},[s]),V(()=>{if(!o||a.current)return;const l=e?document.getElementById(e):null;if(!l)return;const c=document.createElement("div");c.id=o,c.setAttribute(Se,""),l.appendChild(c),a.current=c,i(c)},[e,o]),V(()=>{if(t===null||!o||a.current)return;let l=t||r?.portalNode;l&&!it(l)&&(l=l.current),l=l||document.body;let c=null;e&&(c=document.createElement("div"),c.id=e,l.appendChild(c));const d=document.createElement("div");d.id=o,d.setAttribute(Se,""),l=c||l,l.appendChild(d),a.current=d,i(d)},[e,t,o,r]),s}function ln(n){const{children:e,id:t,root:o,preserveTabOrder:r=!0}=n,s=an({id:t,root:o}),[i,a]=p.useState(null),l=p.useRef(null),c=p.useRef(null),d=p.useRef(null),u=p.useRef(null),g=i?.modal,h=i?.open,y=!!i&&!i.modal&&i.open&&r&&!!(o||s);return p.useEffect(()=>{if(!s||!r||g)return;function m(f){s&&re(f)&&(f.type==="focusin"?ve:Qt)(s)}return s.addEventListener("focusin",m,!0),s.addEventListener("focusout",m,!0),()=>{s.removeEventListener("focusin",m,!0),s.removeEventListener("focusout",m,!0)}},[s,r,g]),p.useEffect(()=>{s&&(h||ve(s))},[h,s]),I.jsxs($e.Provider,{value:p.useMemo(()=>({preserveTabOrder:r,beforeOutsideRef:l,afterOutsideRef:c,beforeInsideRef:d,afterInsideRef:u,portalNode:s,setFocusManagerState:a}),[r,s]),children:[y&&s&&I.jsx(Re,{"data-type":"outside",ref:l,onFocus:m=>{if(re(m,s)){var f;(f=d.current)==null||f.focus()}else{const x=i?i.domReference:null,b=Yt(x);b?.focus()}}}),y&&s&&I.jsx("span",{"aria-owns":s.id,style:sn}),s&&tt.createPortal(e,s),y&&s&&I.jsx(Re,{"data-type":"outside",ref:c,onFocus:m=>{if(re(m,s)){var f;(f=u.current)==null||f.focus()}else{const x=i?i.domReference:null,b=Ht(x);b?.focus(),i?.closeOnFocusOut&&i?.onOpenChange(!1,m.nativeEvent,"focus-out")}}})]})}const cn=()=>p.useContext($e),un={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},dn={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Ee=n=>{var e,t;return{escapeKey:typeof n=="boolean"?n:(e=n?.escapeKey)!=null?e:!1,outsidePress:typeof n=="boolean"?n:(t=n?.outsidePress)!=null?t:!0}};function fn(n,e){e===void 0&&(e={});const{open:t,onOpenChange:o,elements:r,dataRef:s}=n,{enabled:i=!0,escapeKey:a=!0,outsidePress:l=!0,outsidePressEvent:c="pointerdown",referencePress:d=!1,referencePressEvent:u="pointerdown",ancestorScroll:g=!1,bubbles:h,capture:y}=e,m=qe(),f=W(typeof l=="function"?l:()=>!1),x=typeof l=="function"?f:l,b=p.useRef(!1),{escapeKey:R,outsidePress:v}=Ee(h),{escapeKey:D,outsidePress:C}=Ee(y),O=p.useRef(!1),A=W(S=>{var E;if(!t||!i||!a||S.key!=="Escape"||O.current)return;const P=(E=s.current.floatingContext)==null?void 0:E.nodeId,M=m?Z(m.nodesRef.current,P):[];if(!R&&(S.stopPropagation(),M.length>0)){let w=!0;if(M.forEach(N=>{var q;if((q=N.context)!=null&&q.open&&!N.context.dataRef.current.__escapeKeyBubbles){w=!1;return}}),!w)return}o(!1,Kt(S)?S.nativeEvent:S,"escape-key")}),F=W(S=>{var E;const P=()=>{var M;A(S),(M=Q(S))==null||M.removeEventListener("keydown",P)};(E=Q(S))==null||E.addEventListener("keydown",P)}),T=W(S=>{var E;const P=s.current.insideReactTree;s.current.insideReactTree=!1;const M=b.current;if(b.current=!1,c==="click"&&M||P||typeof x=="function"&&!x(S))return;const w=Q(S),N="["+de("inert")+"]",q=z(r.floating).querySelectorAll(N);let L=j(w)?w:null;for(;L&&!ne(L);){const 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",Xe=Ve&&(We?S.offsetX<=w.offsetWidth-w.clientWidth:S.offsetX>w.clientWidth),He=Ue&&S.offsetY>w.clientHeight;if(Xe||He)return}const U=(E=s.current.floatingContext)==null?void 0:E.nodeId,H=m&&Z(m.nodesRef.current,U).some(k=>{var B;return oe(S,(B=k.context)==null?void 0:B.elements.floating)});if(oe(S,r.floating)||oe(S,r.domReference)||H)return;const fe=m?Z(m.nodesRef.current,U):[];if(fe.length>0){let 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,S,"outside-press")}),$=W(S=>{var E;const P=()=>{var M;T(S),(M=Q(S))==null||M.removeEventListener(c,P)};(E=Q(S))==null||E.addEventListener(c,P)});p.useEffect(()=>{if(!t||!i)return;s.current.__escapeKeyBubbles=R,s.current.__outsidePressBubbles=v;let S=-1;function E(q){o(!1,q,"ancestor-scroll")}function P(){window.clearTimeout(S),O.current=!0}function M(){S=window.setTimeout(()=>{O.current=!1},nt()?5:0)}const w=z(r.floating);a&&(w.addEventListener("keydown",D?F:A,D),w.addEventListener("compositionstart",P),w.addEventListener("compositionend",M)),x&&w.addEventListener(c,C?$:T,C);let N=[];return g&&(j(r.domReference)&&(N=te(r.domReference)),j(r.floating)&&(N=N.concat(te(r.floating))),!j(r.reference)&&r.reference&&r.reference.contextElement&&(N=N.concat(te(r.reference.contextElement)))),N=N.filter(q=>{var L;return q!==((L=w.defaultView)==null?void 0:L.visualViewport)}),N.forEach(q=>{q.addEventListener("scroll",E,{passive:!0})}),()=>{a&&(w.removeEventListener("keydown",D?F:A,D),w.removeEventListener("compositionstart",P),w.removeEventListener("compositionend",M)),x&&w.removeEventListener(c,C?$:T,C),N.forEach(q=>{q.removeEventListener("scroll",E)}),window.clearTimeout(S)}},[s,r,a,x,c,t,o,g,i,R,v,A,D,F,T,C,$]),p.useEffect(()=>{s.current.insideReactTree=!1},[s,x,c]);const _=p.useMemo(()=>({onKeyDown:A,...d&&{[un[u]]:S=>{o(!1,S.nativeEvent,"reference-press")},...u!=="click"&&{onClick(S){o(!1,S.nativeEvent,"reference-press")}}}}),[A,o,d,u]),K=p.useMemo(()=>{function S(E){E.button===0&&(b.current=!0)}return{onKeyDown:A,onMouseDown:S,onMouseUp:S,[dn[c]]:()=>{s.current.insideReactTree=!0}}},[A,c,s]);return p.useMemo(()=>i?{reference:_,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(R=>{const v=j(R)?{getBoundingClientRect:()=>R.getBoundingClientRect(),getClientRects:()=>R.getClientRects(),contextElement:R}:R;l(v),h.refs.setReference(v)},[h.refs]),m=p.useCallback(R=>{(j(R)||R===null)&&(u.current=R,i(R)),(j(h.refs.reference.current)||h.refs.reference.current===null||R!==null&&!j(R))&&h.refs.setReference(R)},[h.refs]),f=p.useMemo(()=>({...h.refs,setReference:m,setPositionReference:y,domReference:u}),[h.refs,m,y]),x=p.useMemo(()=>({...h.elements,domReference:d}),[h.elements,d]),b=p.useMemo(()=>({...h,...o,refs:f,elements:x,nodeId:e}),[h,f,x,e,o]);return V(()=>{o.dataRef.current.floatingContext=b;const R=g?.nodesRef.current.find(v=>v.id===e);R&&(R.context=b)}),p.useMemo(()=>({...h,context:b,refs:f,elements:x}),[h,f,x,b])}function se(n,e,t){const o=new Map,r=t==="item";let s=n;if(r&&n){const{[he]:i,[be]:a,...l}=n;s=l}return{...t==="floating"&&{tabIndex:-1,[Gt]:""},...s,...e.map(i=>{const a=i?i[t]:null;return typeof a=="function"?n?a(n):null:a}).concat(n).reduce((i,a)=>(a&&Object.entries(a).forEach(l=>{let[c,d]=l;if(!(r&&[he,be].includes(c)))if(c.indexOf("on")===0){if(o.has(c)||o.set(c,[]),typeof d=="function"){var u;(u=o.get(c))==null||u.push(d),i[c]=function(){for(var g,h=arguments.length,y=new Array(h),m=0;m<h;m++)y[m]=arguments[m];return(g=o.get(c))==null?void 0:g.map(f=>f(...y)).find(f=>f!==void 0)}}}else i[c]=d}),i),{})}}function pn(n){n===void 0&&(n=[]);const e=n.map(a=>a?.reference),t=n.map(a=>a?.floating),o=n.map(a=>a?.item),r=p.useCallback(a=>se(a,n,"reference"),e),s=p.useCallback(a=>se(a,n,"floating"),t),i=p.useCallback(a=>se(a,n,"item"),o);return p.useMemo(()=>({getReferenceProps:r,getFloatingProps:s,getItemProps:i}),[r,s,i])}const vn=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function hn(n,e){var t,o;e===void 0&&(e={});const{open:r,elements:s,floatingId:i}=n,{enabled:a=!0,role:l="dialog"}=e,c=ue(),d=((t=s.domReference)==null?void 0:t.id)||c,u=p.useMemo(()=>{var b;return((b=jt(s.floating))==null?void 0:b.id)||i},[s.floating,i]),g=(o=vn.get(l))!=null?o:l,y=Fe()!=null,m=p.useMemo(()=>g==="tooltip"||l==="label"?{["aria-"+(l==="label"?"labelledby":"describedby")]:r?u:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":g==="alertdialog"?"dialog":g,"aria-controls":r?u:void 0,...g==="listbox"&&{role:"combobox"},...g==="menu"&&{id:d},...g==="menu"&&y&&{role:"menuitem"},...l==="select"&&{"aria-autocomplete":"none"},...l==="combobox"&&{"aria-autocomplete":"list"}},[g,u,y,r,d,l]),f=p.useMemo(()=>{const b={id:u,...g&&{role:g}};return g==="tooltip"||l==="label"?b:{...b,...g==="menu"&&{"aria-labelledby":d}}},[g,u,d,l]),x=p.useCallback(b=>{let{active:R,selected:v}=b;const D={role:"option",...R&&{id:u+"-fui-option"}};switch(l){case"select":case"combobox":return{...D,"aria-selected":v}}return{}},[u,l]);return p.useMemo(()=>a?{reference:m,floating:f,item:x}:{},[a,m,f,x])}function bn(n){var e;const{char:t,allowSpaces:o,allowToIncludeChar:r,allowedPrefixes:s,startOfLine:i,$position:a}=n,l=o&&!r,c=Ze(t),d=new RegExp(`\\s${c}$`),u=i?"^":"",g=r?"":c,h=l?new RegExp(`${u}${c}.*?(?=\\s${g}|$)`,"gm"):new RegExp(`${u}(?:^)?${c}[^\\s${g}]*`,"gm"),y=((e=a.nodeBefore)===null||e===void 0?void 0:e.isText)&&a.nodeBefore.text;if(!y)return null;const m=a.pos-y.length,f=Array.from(y.matchAll(h)).pop();if(!f||f.input===void 0||f.index===void 0)return null;const x=f.input.slice(Math.max(0,f.index-1),f.index),b=new RegExp(`^[${s?.join("")}\0]?$`).test(x);if(s!==null&&!b)return null;const R=m+f.index;let v=R+f[0].length;return l&&d.test(y.slice(v-1,v+1))&&(f[0]+=" ",v+=1),R<a.pos&&v>=a.pos?{range:{from:R,to:v},query:f[0].slice(t.length),text:f[0]}:null}function xn(n){return n.docChanged?n.steps.some(e=>{const t=e.slice;if(!t?.content)return!1;const o=t.content.textBetween(0,t.content.size,`
|
|
1
|
+
import{o as Ye,j as Qe,h as ie,D as Ge,p as ze,q as Ze}from"./index-BeeQz6mt.js";import{r as p,eI as Je,eJ as we,eK as et,eL as j,eM as te,j as I,aR as tt,eN as nt,eO as ne,eP as ot,eQ as rt,eR as st,eS as it,eT as at,eU as lt,eV as Ce,eW as ct,c as X,D as ut,K as dt,eX as ft,eY as gt,eZ as mt,b as pt,l as vt,h as ht}from"./index-CWzlOAQX.js";import{g as bt,d as xt}from"./gateway-client-BgWzL4m_.js";import{A as yt}from"./agent-icon-DQhX6pyL.js";var Xn=Ye;var Rt=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],ae=Rt.join(","),Ie=typeof Element>"u",G=Ie?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,J=!Ie&&Element.prototype.getRootNode?function(n){var e;return n==null||(e=n.getRootNode)===null||e===void 0?void 0:e.call(n)}:function(n){return n?.ownerDocument},ee=function(e,t){var o;t===void 0&&(t=!0);var r=e==null||(o=e.getAttribute)===null||o===void 0?void 0:o.call(e,"inert"),s=r===""||r==="true",i=s||t&&e&&(typeof e.closest=="function"?e.closest("[inert]"):ee(e.parentNode));return i},St=function(e){var t,o=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return o===""||o==="true"},Et=function(e,t,o){if(ee(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(ae));return t&&G.call(e,ae)&&r.unshift(e),r=r.filter(o),r},le=function(e,t,o){for(var r=[],s=Array.from(e);s.length;){var i=s.shift();if(!ee(i,!1))if(i.tagName==="SLOT"){var a=i.assignedElements(),l=a.length?a:i.children,c=le(l,!0,o);o.flatten?r.push.apply(r,c):r.push({scopeParent:i,candidates:c})}else{var d=G.call(i,ae);d&&o.filter(i)&&(t||!e.includes(i))&&r.push(i);var u=i.shadowRoot||typeof o.getShadowRoot=="function"&&o.getShadowRoot(i),g=!ee(u,!1)&&(!o.shadowRootFilter||o.shadowRootFilter(i));if(u&&g){var h=le(u===!0?i.children:u.children,!0,o);o.flatten?r.push.apply(r,h):r.push({scopeParent:i,candidates:h})}else s.unshift.apply(s,i.children)}}return r},Te=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Pe=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||St(e))&&!Te(e)?0:e.tabIndex},wt=function(e,t){var o=Pe(e);return o<0&&t&&!Te(e)?0:o},Ct=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Ae=function(e){return e.tagName==="INPUT"},It=function(e){return Ae(e)&&e.type==="hidden"},Tt=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(o){return o.tagName==="SUMMARY"});return t},Pt=function(e,t){for(var o=0;o<e.length;o++)if(e[o].checked&&e[o].form===t)return e[o]},At=function(e){if(!e.name)return!0;var t=e.form||J(e),o=function(a){return t.querySelectorAll('input[type="radio"][name="'+a+'"]')},r;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")r=o(window.CSS.escape(e.name));else try{r=o(e.name)}catch(i){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",i.message),!1}var s=Pt(r,e.form);return!s||s===e},Nt=function(e){return Ae(e)&&e.type==="radio"},Dt=function(e){return Nt(e)&&!At(e)},Mt=function(e){var t,o=e&&J(e),r=(t=o)===null||t===void 0?void 0:t.host,s=!1;if(o&&o!==e){var i,a,l;for(s=!!((i=r)!==null&&i!==void 0&&(a=i.ownerDocument)!==null&&a!==void 0&&a.contains(r)||e!=null&&(l=e.ownerDocument)!==null&&l!==void 0&&l.contains(e));!s&&r;){var c,d,u;o=J(r),r=(c=o)===null||c===void 0?void 0:c.host,s=!!((d=r)!==null&&d!==void 0&&(u=d.ownerDocument)!==null&&u!==void 0&&u.contains(r))}}return s},ge=function(e){var t=e.getBoundingClientRect(),o=t.width,r=t.height;return o===0&&r===0},Ot=function(e,t){var o=t.displayCheck,r=t.getShadowRoot;if(o==="full-native"&&"checkVisibility"in e){var s=e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!s}if(getComputedStyle(e).visibility==="hidden")return!0;var i=G.call(e,"details>summary:first-of-type"),a=i?e.parentElement:e;if(G.call(a,"details:not([open]) *"))return!0;if(!o||o==="full"||o==="full-native"||o==="legacy-full"){if(typeof r=="function"){for(var l=e;e;){var c=e.parentElement,d=J(e);if(c&&!c.shadowRoot&&r(c)===!0)return ge(e);e.assignedSlot?e=e.assignedSlot:!c&&d!==e.ownerDocument?e=d.host:e=c}e=l}if(Mt(e))return!e.getClientRects().length;if(o!=="legacy-full")return!0}else if(o==="non-zero-area")return ge(e);return!1},Ft=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var o=0;o<t.children.length;o++){var r=t.children.item(o);if(r.tagName==="LEGEND")return G.call(t,"fieldset[disabled] *")?!0:!r.contains(e)}return!0}t=t.parentElement}return!1},qt=function(e,t){return!(t.disabled||It(t)||Ot(t,e)||Tt(t)||Ft(t))},me=function(e,t){return!(Dt(t)||Pe(t)<0||!qt(e,t))},$t=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},Ne=function(e){var t=[],o=[];return e.forEach(function(r,s){var i=!!r.scopeParent,a=i?r.scopeParent:r,l=wt(a,i),c=i?Ne(r.candidates):a;l===0?i?t.push.apply(t,c):t.push(a):o.push({documentOrder:s,tabIndex:l,item:r,isScope:i,content:c})}),o.sort(Ct).reduce(function(r,s){return s.isScope?r.push.apply(r,s.content):r.push(s.content),r},[]).concat(t)},De=function(e,t){t=t||{};var o;return t.getShadowRoot?o=le([e],t.includeContainer,{filter:me.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:$t}):o=Et(e,t.includeContainer,me.bind(null,t)),Ne(o)};function 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 Q(n){return"composedPath"in n?n.composedPath()[0]:n.target}function oe(n,e){if(e==null)return!1;if("composedPath"in n)return n.composedPath().includes(e);const t=n;return t.target!=null&&e.contains(t.target)}function Lt(n){return n.matches("html,body")}function z(n){return n?.ownerDocument||document}function jt(n){return n?n.hasAttribute(pe)?n:n.querySelector("["+pe+"]")||n:null}function Z(n,e,t){return t===void 0&&(t=!0),n.filter(r=>{var s;return r.parentId===e&&(!t||((s=r.context)==null?void 0:s.open))}).flatMap(r=>[r,...Z(n,r.id,t)])}function Kt(n){return"nativeEvent"in n}var Bt=typeof document<"u",Ut=function(){},V=Bt?p.useLayoutEffect:Ut;const Vt={...we},Wt=Vt.useInsertionEffect,Xt=Wt||(n=>n());function W(n){const e=p.useRef(()=>{});return Xt(()=>{e.current=n}),p.useCallback(function(){for(var t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];return e.current==null?void 0:e.current(...o)},[])}const Me=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Oe(n,e){const t=De(n,Me()),o=t.length;if(o===0)return;const r=_t(z(n)),s=t.indexOf(r),i=s===-1?e===1?0:o-1:s+e;return t[i]}function Ht(n){return Oe(z(n).body,1)||n}function Yt(n){return Oe(z(n).body,-1)||n}function re(n,e){const t=e||n.currentTarget,o=n.relatedTarget;return!o||!ce(t,o)}function Qt(n){De(n,Me()).forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")})}function ve(n){n.querySelectorAll("[data-tabindex]").forEach(t=>{const o=t.dataset.tabindex;delete t.dataset.tabindex,o?t.setAttribute("tabindex",o):t.removeAttribute("tabindex")})}const Gt="data-floating-ui-focusable",he="active",be="selected",zt={...we};let xe=!1,Zt=0;const ye=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Zt++;function Jt(){const[n,e]=p.useState(()=>xe?ye():void 0);return V(()=>{n==null&&e(ye())},[]),p.useEffect(()=>{xe=!0},[]),n}const en=zt.useId,ue=en||Jt;function tn(){const n=new Map;return{emit(e,t){var o;(o=n.get(e))==null||o.forEach(r=>r(t))},on(e,t){n.has(e)||n.set(e,new Set),n.get(e).add(t)},off(e,t){var o;(o=n.get(e))==null||o.delete(t)}}}const nn=p.createContext(null),on=p.createContext(null),Fe=()=>{var n;return((n=p.useContext(nn))==null?void 0:n.id)||null},qe=()=>p.useContext(on);function de(n){return"data-floating-ui-"+n}const rn={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0},Re=p.forwardRef(function(e,t){const[o,r]=p.useState();V(()=>{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),Se=de("portal");function an(n){n===void 0&&(n={});const{id:e,root:t}=n,o=ue(),r=cn(),[s,i]=p.useState(null),a=p.useRef(null);return V(()=>()=>{s?.remove(),queueMicrotask(()=>{a.current=null})},[s]),V(()=>{if(!o||a.current)return;const l=e?document.getElementById(e):null;if(!l)return;const c=document.createElement("div");c.id=o,c.setAttribute(Se,""),l.appendChild(c),a.current=c,i(c)},[e,o]),V(()=>{if(t===null||!o||a.current)return;let l=t||r?.portalNode;l&&!it(l)&&(l=l.current),l=l||document.body;let c=null;e&&(c=document.createElement("div"),c.id=e,l.appendChild(c));const d=document.createElement("div");d.id=o,d.setAttribute(Se,""),l=c||l,l.appendChild(d),a.current=d,i(d)},[e,t,o,r]),s}function ln(n){const{children:e,id:t,root:o,preserveTabOrder:r=!0}=n,s=an({id:t,root:o}),[i,a]=p.useState(null),l=p.useRef(null),c=p.useRef(null),d=p.useRef(null),u=p.useRef(null),g=i?.modal,h=i?.open,y=!!i&&!i.modal&&i.open&&r&&!!(o||s);return p.useEffect(()=>{if(!s||!r||g)return;function m(f){s&&re(f)&&(f.type==="focusin"?ve:Qt)(s)}return s.addEventListener("focusin",m,!0),s.addEventListener("focusout",m,!0),()=>{s.removeEventListener("focusin",m,!0),s.removeEventListener("focusout",m,!0)}},[s,r,g]),p.useEffect(()=>{s&&(h||ve(s))},[h,s]),I.jsxs($e.Provider,{value:p.useMemo(()=>({preserveTabOrder:r,beforeOutsideRef:l,afterOutsideRef:c,beforeInsideRef:d,afterInsideRef:u,portalNode:s,setFocusManagerState:a}),[r,s]),children:[y&&s&&I.jsx(Re,{"data-type":"outside",ref:l,onFocus:m=>{if(re(m,s)){var f;(f=d.current)==null||f.focus()}else{const x=i?i.domReference:null,b=Yt(x);b?.focus()}}}),y&&s&&I.jsx("span",{"aria-owns":s.id,style:sn}),s&&tt.createPortal(e,s),y&&s&&I.jsx(Re,{"data-type":"outside",ref:c,onFocus:m=>{if(re(m,s)){var f;(f=u.current)==null||f.focus()}else{const x=i?i.domReference:null,b=Ht(x);b?.focus(),i?.closeOnFocusOut&&i?.onOpenChange(!1,m.nativeEvent,"focus-out")}}})]})}const cn=()=>p.useContext($e),un={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},dn={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Ee=n=>{var e,t;return{escapeKey:typeof n=="boolean"?n:(e=n?.escapeKey)!=null?e:!1,outsidePress:typeof n=="boolean"?n:(t=n?.outsidePress)!=null?t:!0}};function fn(n,e){e===void 0&&(e={});const{open:t,onOpenChange:o,elements:r,dataRef:s}=n,{enabled:i=!0,escapeKey:a=!0,outsidePress:l=!0,outsidePressEvent:c="pointerdown",referencePress:d=!1,referencePressEvent:u="pointerdown",ancestorScroll:g=!1,bubbles:h,capture:y}=e,m=qe(),f=W(typeof l=="function"?l:()=>!1),x=typeof l=="function"?f:l,b=p.useRef(!1),{escapeKey:R,outsidePress:v}=Ee(h),{escapeKey:D,outsidePress:C}=Ee(y),O=p.useRef(!1),A=W(S=>{var E;if(!t||!i||!a||S.key!=="Escape"||O.current)return;const P=(E=s.current.floatingContext)==null?void 0:E.nodeId,M=m?Z(m.nodesRef.current,P):[];if(!R&&(S.stopPropagation(),M.length>0)){let w=!0;if(M.forEach(N=>{var q;if((q=N.context)!=null&&q.open&&!N.context.dataRef.current.__escapeKeyBubbles){w=!1;return}}),!w)return}o(!1,Kt(S)?S.nativeEvent:S,"escape-key")}),F=W(S=>{var E;const P=()=>{var M;A(S),(M=Q(S))==null||M.removeEventListener("keydown",P)};(E=Q(S))==null||E.addEventListener("keydown",P)}),T=W(S=>{var E;const P=s.current.insideReactTree;s.current.insideReactTree=!1;const M=b.current;if(b.current=!1,c==="click"&&M||P||typeof x=="function"&&!x(S))return;const w=Q(S),N="["+de("inert")+"]",q=z(r.floating).querySelectorAll(N);let L=j(w)?w:null;for(;L&&!ne(L);){const 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",Xe=Ve&&(We?S.offsetX<=w.offsetWidth-w.clientWidth:S.offsetX>w.clientWidth),He=Ue&&S.offsetY>w.clientHeight;if(Xe||He)return}const U=(E=s.current.floatingContext)==null?void 0:E.nodeId,H=m&&Z(m.nodesRef.current,U).some(k=>{var B;return oe(S,(B=k.context)==null?void 0:B.elements.floating)});if(oe(S,r.floating)||oe(S,r.domReference)||H)return;const fe=m?Z(m.nodesRef.current,U):[];if(fe.length>0){let 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,S,"outside-press")}),$=W(S=>{var E;const P=()=>{var M;T(S),(M=Q(S))==null||M.removeEventListener(c,P)};(E=Q(S))==null||E.addEventListener(c,P)});p.useEffect(()=>{if(!t||!i)return;s.current.__escapeKeyBubbles=R,s.current.__outsidePressBubbles=v;let S=-1;function E(q){o(!1,q,"ancestor-scroll")}function P(){window.clearTimeout(S),O.current=!0}function M(){S=window.setTimeout(()=>{O.current=!1},nt()?5:0)}const w=z(r.floating);a&&(w.addEventListener("keydown",D?F:A,D),w.addEventListener("compositionstart",P),w.addEventListener("compositionend",M)),x&&w.addEventListener(c,C?$:T,C);let N=[];return g&&(j(r.domReference)&&(N=te(r.domReference)),j(r.floating)&&(N=N.concat(te(r.floating))),!j(r.reference)&&r.reference&&r.reference.contextElement&&(N=N.concat(te(r.reference.contextElement)))),N=N.filter(q=>{var L;return q!==((L=w.defaultView)==null?void 0:L.visualViewport)}),N.forEach(q=>{q.addEventListener("scroll",E,{passive:!0})}),()=>{a&&(w.removeEventListener("keydown",D?F:A,D),w.removeEventListener("compositionstart",P),w.removeEventListener("compositionend",M)),x&&w.removeEventListener(c,C?$:T,C),N.forEach(q=>{q.removeEventListener("scroll",E)}),window.clearTimeout(S)}},[s,r,a,x,c,t,o,g,i,R,v,A,D,F,T,C,$]),p.useEffect(()=>{s.current.insideReactTree=!1},[s,x,c]);const _=p.useMemo(()=>({onKeyDown:A,...d&&{[un[u]]:S=>{o(!1,S.nativeEvent,"reference-press")},...u!=="click"&&{onClick(S){o(!1,S.nativeEvent,"reference-press")}}}}),[A,o,d,u]),K=p.useMemo(()=>{function S(E){E.button===0&&(b.current=!0)}return{onKeyDown:A,onMouseDown:S,onMouseUp:S,[dn[c]]:()=>{s.current.insideReactTree=!0}}},[A,c,s]);return p.useMemo(()=>i?{reference:_,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(R=>{const v=j(R)?{getBoundingClientRect:()=>R.getBoundingClientRect(),getClientRects:()=>R.getClientRects(),contextElement:R}:R;l(v),h.refs.setReference(v)},[h.refs]),m=p.useCallback(R=>{(j(R)||R===null)&&(u.current=R,i(R)),(j(h.refs.reference.current)||h.refs.reference.current===null||R!==null&&!j(R))&&h.refs.setReference(R)},[h.refs]),f=p.useMemo(()=>({...h.refs,setReference:m,setPositionReference:y,domReference:u}),[h.refs,m,y]),x=p.useMemo(()=>({...h.elements,domReference:d}),[h.elements,d]),b=p.useMemo(()=>({...h,...o,refs:f,elements:x,nodeId:e}),[h,f,x,e,o]);return V(()=>{o.dataRef.current.floatingContext=b;const R=g?.nodesRef.current.find(v=>v.id===e);R&&(R.context=b)}),p.useMemo(()=>({...h,context:b,refs:f,elements:x}),[h,f,x,b])}function se(n,e,t){const o=new Map,r=t==="item";let s=n;if(r&&n){const{[he]:i,[be]:a,...l}=n;s=l}return{...t==="floating"&&{tabIndex:-1,[Gt]:""},...s,...e.map(i=>{const a=i?i[t]:null;return typeof a=="function"?n?a(n):null:a}).concat(n).reduce((i,a)=>(a&&Object.entries(a).forEach(l=>{let[c,d]=l;if(!(r&&[he,be].includes(c)))if(c.indexOf("on")===0){if(o.has(c)||o.set(c,[]),typeof d=="function"){var u;(u=o.get(c))==null||u.push(d),i[c]=function(){for(var g,h=arguments.length,y=new Array(h),m=0;m<h;m++)y[m]=arguments[m];return(g=o.get(c))==null?void 0:g.map(f=>f(...y)).find(f=>f!==void 0)}}}else i[c]=d}),i),{})}}function pn(n){n===void 0&&(n=[]);const e=n.map(a=>a?.reference),t=n.map(a=>a?.floating),o=n.map(a=>a?.item),r=p.useCallback(a=>se(a,n,"reference"),e),s=p.useCallback(a=>se(a,n,"floating"),t),i=p.useCallback(a=>se(a,n,"item"),o);return p.useMemo(()=>({getReferenceProps:r,getFloatingProps:s,getItemProps:i}),[r,s,i])}const vn=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function hn(n,e){var t,o;e===void 0&&(e={});const{open:r,elements:s,floatingId:i}=n,{enabled:a=!0,role:l="dialog"}=e,c=ue(),d=((t=s.domReference)==null?void 0:t.id)||c,u=p.useMemo(()=>{var b;return((b=jt(s.floating))==null?void 0:b.id)||i},[s.floating,i]),g=(o=vn.get(l))!=null?o:l,y=Fe()!=null,m=p.useMemo(()=>g==="tooltip"||l==="label"?{["aria-"+(l==="label"?"labelledby":"describedby")]:r?u:void 0}:{"aria-expanded":r?"true":"false","aria-haspopup":g==="alertdialog"?"dialog":g,"aria-controls":r?u:void 0,...g==="listbox"&&{role:"combobox"},...g==="menu"&&{id:d},...g==="menu"&&y&&{role:"menuitem"},...l==="select"&&{"aria-autocomplete":"none"},...l==="combobox"&&{"aria-autocomplete":"list"}},[g,u,y,r,d,l]),f=p.useMemo(()=>{const b={id:u,...g&&{role:g}};return g==="tooltip"||l==="label"?b:{...b,...g==="menu"&&{"aria-labelledby":d}}},[g,u,d,l]),x=p.useCallback(b=>{let{active:R,selected:v}=b;const D={role:"option",...R&&{id:u+"-fui-option"}};switch(l){case"select":case"combobox":return{...D,"aria-selected":v}}return{}},[u,l]);return p.useMemo(()=>a?{reference:m,floating:f,item:x}:{},[a,m,f,x])}function bn(n){var e;const{char:t,allowSpaces:o,allowToIncludeChar:r,allowedPrefixes:s,startOfLine:i,$position:a}=n,l=o&&!r,c=Ze(t),d=new RegExp(`\\s${c}$`),u=i?"^":"",g=r?"":c,h=l?new RegExp(`${u}${c}.*?(?=\\s${g}|$)`,"gm"):new RegExp(`${u}(?:^)?${c}[^\\s${g}]*`,"gm"),y=((e=a.nodeBefore)===null||e===void 0?void 0:e.isText)&&a.nodeBefore.text;if(!y)return null;const m=a.pos-y.length,f=Array.from(y.matchAll(h)).pop();if(!f||f.input===void 0||f.index===void 0)return null;const x=f.input.slice(Math.max(0,f.index-1),f.index),b=new RegExp(`^[${s?.join("")}\0]?$`).test(x);if(s!==null&&!b)return null;const R=m+f.index;let v=R+f[0].length;return l&&d.test(y.slice(v-1,v+1))&&(f[0]+=" ",v+=1),R<a.pos&&v>=a.pos?{range:{from:R,to:v},query:f[0].slice(t.length),text:f[0]}:null}function xn(n){return n.docChanged?n.steps.some(e=>{const t=e.slice;if(!t?.content)return!1;const o=t.content.textBetween(0,t.content.size,`
|
|
2
2
|
`);return/\s/.test(o)}):!1}function yn(n){return()=>{const e=n.state.selection.$anchor.pos,{top:t,right:o,bottom:r,left:s}=n.view.coordsAtPos(e);try{return new DOMRect(s,t,o-s,r-t)}catch{return null}}}function Rn(n,e,t,o){return t?()=>{const r=o.getState(n.state),s=r?.decorationId,i=e.dom.querySelector(`[data-decoration-id="${s}"]`);return i?.getBoundingClientRect()||null}:yn(n)}function Sn({match:n,dismissedRange:e,state:t,transaction:o,editor:r,shouldResetDismissed:s,effectiveAllowSpaces:i}){return s?.({editor:r,state:t,range:e,match:n,transaction:o,allowSpaces:i})?!1:i?n.range.from===e.from:n.range.from===e.from&&!xn(o)}function En({view:n,pluginKeyRef:e}){const t=n.state.tr.setMeta(e,{exit:!0});n.dispatch(t)}function wn({pluginKey:n,decorationTag:e,decorationClass:t,decorationContent:o,decorationEmptyClass:r,renderer:s,dispatchExit:i}){return{handleKeyDown(a,l){var c;const d=n.getState(a.state);if(!d.active)return!1;if(l.key==="Escape"||l.key==="Esc"){var u;return s==null||(u=s.onKeyDown)===null||u===void 0||u.call(s,{view:a,event:l,range:d.range}),i(a),!0}return(s==null||(c=s.onKeyDown)===null||c===void 0?void 0:c.call(s,{view:a,event:l,range:d.range}))||!1},decorations(a){const{active:l,range:c,decorationId:d,query:u}=n.getState(a);if(!l)return null;const g=!u?.length,h=[t];return g&&h.push(r),Ge.create(a.doc,[ze.inline(c.from,c.to,{nodeName:e,class:h.join(" "),"data-decoration-id":d||void 0,"data-decoration-content":o})])}}}function Cn({editor:n,char:e,effectiveAllowSpaces:t,allowToIncludeChar:o,allowedPrefixes:r,startOfLine:s,findSuggestionMatch:i,allow:a,shouldShow:l,shouldKeepDismissed:c,pluginKey:d}){return{init(){return{active:!1,range:{from:0,to:0},query:null,text:null,composing:!1,dismissedRange:null}},apply(u,g,h,y){const{isEditable:m}=n,{composing:f}=n.view,{selection:x}=u,{empty:b,from:R}=x,v={...g},D=u.getMeta(d);if(D&&D.exit)return v.active=!1,v.decorationId=null,v.range={from:0,to:0},v.query=null,v.text=null,v.dismissedRange=g.active?{...g.range}:g.dismissedRange,v;if(v.composing=f,u.docChanged&&v.dismissedRange!==null&&(v.dismissedRange={from:u.mapping.map(v.dismissedRange.from),to:u.mapping.map(v.dismissedRange.to)}),m&&(b||n.view.composing)){(R<g.range.from||R>g.range.to)&&!f&&!g.composing&&(v.active=!1);const C=i({char:e,allowSpaces:t,allowToIncludeChar:o,allowedPrefixes:r,startOfLine:s,$position:x.$from}),O=`id_${Math.floor(Math.random()*4294967295)}`;C&&a({editor:n,state:y,range:C.range,isActive:g.active})&&(!l||l({editor:n,range:C.range,query:C.query,text:C.text,transaction:u}))?(v.dismissedRange!==null&&!c({match:C,dismissedRange:v.dismissedRange,state:y,transaction:u})&&(v.dismissedRange=null),v.dismissedRange===null?(v.active=!0,v.decorationId=g.decorationId||O,v.range=C.range,v.query=C.query,v.text=C.text):v.active=!1):(C||(v.dismissedRange=null),v.active=!1)}else v.active=!1;return v.active||(v.decorationId=null,v.range={from:0,to:0},v.query=null,v.text=null),v}}}function In({editor:n,items:e}){let t=null,o=null,r=null;const s=()=>{o!==null&&(clearTimeout(o),o=null),r?.(),r=null},i=c=>new Promise(d=>{r=d,o=setTimeout(()=>{o=null;const u=r;r=null,u?.()},c)}),a=()=>{t?.abort(),s(),t=null};return{abort:a,fetch:async(c,d)=>{a(),t=new AbortController;const u=t;if(d>0&&await i(d),t!==u||u.signal.aborted)return{status:"aborted"};try{const g=await e({editor:n,query:c,signal:u.signal});return t!==u||u.signal.aborted?{status:"aborted"}:{status:"resolved",items:g}}catch{return t!==u||u.signal.aborted?{status:"aborted"}:{status:"error"}}}}}function Tn({placement:n,offset:e,flip:t,floatingUi:o}){var r,s,i,a;const l=[at({mainAxis:(r=e.mainAxis)!==null&&r!==void 0?r:4,crossAxis:(s=e.crossAxis)!==null&&s!==void 0?s:0})];return t&&l.push(lt()),!(o==null||(i=o.middleware)===null||i===void 0)&&i.length&&l.push(...o.middleware),{placement:n,strategy:(a=o?.strategy)!==null&&a!==void 0?a:"absolute",middleware:l}}function Pn(n){if(n instanceof HTMLElement)return n;if(typeof n=="string")try{const e=document.querySelector(n);if(e)return e}catch{return document.body}return document.body}function An({getReferenceRect:n,contextElement:e,config:t,container:o,dismissOnOutsideClick:r,dismiss:s}){return(i,a={})=>{const l={getBoundingClientRect:()=>{var y;return(y=n())!==null&&y!==void 0?y:new DOMRect},contextElement:e};let c=!1;const d=!i.isConnected;d&&Pn(o).appendChild(i),a.onPosition||(i.style.visibility="hidden",i.style.width="max-content");const g=Ce(l,i,()=>{ct(l,i,{placement:t.placement,strategy:t.strategy,middleware:t.middleware}).then(({x:y,y:m,placement:f,strategy:x})=>{if(a.onPosition){a.onPosition({x:y,y:m,placement:f,strategy:x});return}Object.assign(i.style,{position:x,left:`${y}px`,top:`${m}px`}),c||(c=!0,i.style.visibility="")})},a.autoUpdate);let h;return r&&(h=y=>{const m=y.target;!(m instanceof Node)||i.contains(m)||e.contains(m)||s()},document.addEventListener("pointerdown",h,!0)),()=>{g(),h&&document.removeEventListener("pointerdown",h,!0),d&&i.remove()}}}function Nn({editor:n,pluginKey:e,items:t,renderer:o,minQueryLength:r,debounce:s,initialItems:i,placement:a,offset:l,container:c,flip:d,floatingUi:u,dismissOnOutsideClick:g,command:h,clientRectFor:y,dispatchExit:m}){let f;const x=In({editor:n,items:t}),b=Tn({placement:a,offset:l,flip:d,floatingUi:u});function R(v,D){switch(v){case"started":var C;o==null||(C=o.onStart)===null||C===void 0||C.call(o,D);break;case"updated":var O;o==null||(O=o.onUpdate)===null||O===void 0||O.call(o,D);break;case"stopped":var A;o==null||(A=o.onExit)===null||A===void 0||A.call(o,D)}}return{update:async(v,D)=>{var C,O;const A=e.getState(D),F=e.getState(v.state);if(!A||!F)return;let T=null;const $=A.query!==F.query,_=A.text!==F.text,K=A.range.from!==F.range.from||A.range.to!==F.range.to,S=$||_||K;if(!A.active&&F.active)T="started";else if(A.active&&!F.active)T="stopped";else if(F.active&&S)T="updated";else return;const E=T==="stopped"?A:F,P=v.dom.querySelector(`[data-decoration-id="${E.decorationId}"]`),M=y(v,P),w=r===0||(E.query?E.query.length>=r:!1),N=(T==="started"||T==="updated")&&w;if(f={editor:n,range:E.range,query:E.query||"",text:E.text||"",items:i??[],command:U=>h({editor:n,range:E.range,props:U}),decorationNode:P,clientRect:M,loading:N,placement:a,offset:{mainAxis:(C=l.mainAxis)!==null&&C!==void 0?C:4,crossAxis:(O=l.crossAxis)!==null&&O!==void 0?O:0},container:c,flip:d,floatingUi:b,mount:An({getReferenceRect:M,contextElement:v.dom,config:b,container:c,dismissOnOutsideClick:g,dismiss:()=>m(n.view)})},T==="started"){var q;o==null||(q=o.onBeforeStart)===null||q===void 0||q.call(o,f)}if(T==="updated"){var L;o==null||(L=o.onBeforeUpdate)===null||L===void 0||L.call(o,f)}if(T==="started"&&R(T,f),T==="started"||T==="updated")if(!N)x.abort(),f={...f,items:i??[],loading:!1};else{f={...f,items:i??[],loading:!0},T="updated",R(T,f);const U=await x.fetch(E.query||"",s);if(U.status==="aborted")return;const H=e.getState(v.state);if(!H?.active){x.abort();return}f=U.status==="resolved"?{...f,items:U.items,loading:!1}:{...f,loading:!1}}if(T==="stopped"){x.abort(),R(T,f),f=void 0;return}T==="updated"&&R(T,f)},destroy:()=>{var v;x.abort(),f&&(o==null||(v=o.onExit)===null||v===void 0||v.call(o,f))}}}const 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:R=!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)=>Rn(e,P,M,n);function S(P){return Sn({...P,editor:e,shouldResetDismissed:T,effectiveAllowSpaces:_})}const E=P=>En({view:P,pluginKeyRef:n});return new Qe({key:n,view:()=>Nn({editor:e,pluginKey:n,items:g,renderer:$,minQueryLength:h,debounce:y,initialItems:m,placement:f,offset:x,container:b,flip:R,floatingUi:v,dismissOnOutsideClick:D,command:u,clientRectFor:K,dispatchExit:E}),state:Cn({editor:e,char:t,effectiveAllowSpaces:_,allowToIncludeChar:r,allowedPrefixes:s,startOfLine:i,findSuggestionMatch:A,allow:O,shouldShow:F,shouldKeepDismissed:S,pluginKey:n}),props:wn({pluginKey:n,decorationTag:a,decorationClass:l,decorationContent:c,decorationEmptyClass:d,renderer:$,dispatchExit:E})})}function Hn(n,e=ke){const t=n.state.tr.setMeta(e,{exit:!0});n.dispatch(t)}var Yn=_e;function Dn(n){const e=X.c(17),{editor:t,query:o,items:r,onSelect:s,onClose:i}=n,[a,l]=p.useState(0),c=p.useRef(r),d=p.useRef(a),u=p.useRef(s),g=p.useRef(i),h=p.useDeferredValue(o),[y,m]=p.useState(h);y!==h&&(m(h),l(0)),a>=r.length&&r.length>0&&l(0);let f,x;e[0]!==r?(f=()=>{c.current=r},x=[r],e[0]=r,e[1]=f,e[2]=x):(f=e[1],x=e[2]),p.useEffect(f,x);let b,R;e[3]!==a?(b=()=>{d.current=a},R=[a],e[3]=a,e[4]=b,e[5]=R):(b=e[4],R=e[5]),p.useEffect(b,R);let v,D;e[6]!==s?(v=()=>{u.current=s},D=[s],e[6]=s,e[7]=v,e[8]=D):(v=e[7],D=e[8]),p.useEffect(v,D);let C,O;e[9]!==i?(C=()=>{g.current=i},O=[i],e[9]=i,e[10]=C,e[11]=O):(C=e[10],O=e[11]),p.useEffect(C,O);let A,F;e[12]!==t?(F=()=>{if(t?.isDestroyed)return;let _;try{_=t.view.dom}catch{return}if(!_)return;const K=E=>{const P=c.current;if(!P.length)return!1;const M=()=>l(N=>(N+1)%P.length),w=()=>l(N=>(N-1+P.length)%P.length);switch(E.key){case"ArrowUp":return E.preventDefault(),w(),!0;case"ArrowDown":return E.preventDefault(),M(),!0;case"Tab":return E.preventDefault(),E.shiftKey?w():M(),!0;case"Home":return E.preventDefault(),l(0),!0;case"End":return E.preventDefault(),l(P.length-1),!0;case"Enter":{if(E.isComposing)return!1;E.preventDefault();const N=d.current;return N!==-1&&P[N]&&u.current?.(P[N],N),!0}case"Escape":return E.preventDefault(),g.current?.(),!0;default:return!1}},S=E=>{K(E)};return _.addEventListener("keydown",S,!0),()=>{_?.removeEventListener("keydown",S,!0)}},A=[t],e[12]=t,e[13]=A,e[14]=F):(A=e[13],F=e[14]),p.useEffect(F,A);const T=r.length?a:void 0;let $;return e[15]!==T?($={selectedIndex:T,setSelectedIndex:l},e[15]=T,e[16]=$):$=e[16],$}function Mn(n,e){switch(e.type){case"SET_SELECTED_ITEM":return{...n,selectedItem:e.payload};case"ON_START":return{...n,open:!0,selectedItem:null,element:e.payload.element,query:e.payload.query,range:e.payload.range};case"ON_UPDATE":return{...n,element:e.payload.element,query:e.payload.query,range:e.payload.range};case"ON_EXIT":return{open:!1,element:null,query:"",range:null,selectedItem:null};default:return n}}const Le=p.createContext(void 0);function je(){const n=p.useContext(Le);if(!n)throw new Error("useSuggestionContext must be used within a SuggestionContext.Provider");return n}function On(n){const e=X.c(16),{editor:t,char:o,pluginKey:r,allow:s,onOpenChange:i}=n;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={open:!1,element:null,query:"",range:null,selectedItem:null},e[0]=a):a=e[0];const[l,c]=p.useReducer(Mn,a);let d;e[1]!==i?(d=m=>{i?.(m)},e[1]=i,e[2]=d):d=e[2];const u=p.useEffectEvent(d);let g;e[3]!==o||e[4]!==s||e[5]!==t||e[6]!==u||e[7]!==r?(g=()=>{if(t?.isDestroyed)return;const m=r instanceof ie?r:new ie(r);t.state.plugins.find(b=>b.spec.key===m)&&t.unregisterPlugin(m);const x=_e({pluginKey:m,editor:t,char:o,allow(b){const R=t.state.doc.resolve(b.range.from);for(let v=R.depth;v>0;v--)if(R.node(v).type.name==="image")return!1;return!(s&&!s(b))},command(){},render:()=>({onStart:b=>{c({type:"ON_START",payload:{element:b.decorationNode??null,query:b.query,range:b.range}}),u(!0)},onUpdate:b=>{c({type:"ON_UPDATE",payload:{element:b.decorationNode??null,query:b.query,range:b.range}})},onKeyDown:b=>b.event.key==="Escape"?(c({type:"ON_EXIT"}),!0):!1,onExit:()=>{c({type:"ON_EXIT"}),u(!1)}}),items:Fn});return t.registerPlugin(x),()=>{t?.isDestroyed||t.unregisterPlugin(m)}},e[3]=o,e[4]=s,e[5]=t,e[6]=u,e[7]=r,e[8]=g):g=e[8];let h;e[9]!==o||e[10]!==s||e[11]!==t||e[12]!==r?(h=[t,r,o,c,s],e[9]=o,e[10]=s,e[11]=t,e[12]=r,e[13]=h):h=e[13],p.useEffect(g,h);let y;return e[14]!==l?(y={state:l,dispatch:c},e[14]=l,e[15]=y):y=e[15],y}function Fn(){return[]}function qn({editor:n,queryKey:e,queryFn:t,onSelect:o}){const{state:r,dispatch:s}=je(),i=p.useDeferredValue(r.query),{data:a}=ut({queryKey:dt.suggestionItems(e,r.open,i),queryFn:()=>r.open?t({query:i}):[]}),l=()=>{s({type:"ON_EXIT"})},c=async(u,g)=>{if(!(r.selectedItem!==null||!r.range)){s({type:"SET_SELECTED_ITEM",payload:u});try{const{view:h}=n,m=h.state.selection.$to.nodeAfter?.text?.startsWith(" "),f=r.range?{...r.range}:{from:0,to:0};m&&r.range&&(f.to+=1),await o({range:f,item:u})===!1?s({type:"SET_SELECTED_ITEM",payload:null}):l()}catch{l()}}},{selectedIndex:d}=Dn({editor:n,query:i,items:a,onSelect:c,onClose:l});return{selectedItem:r.selectedItem,items:a,selectedIndex:d,close:l,onSelect:c}}function $n({children:n}){const{state:e,dispatch:t}=je(),{open:o,element:r}=e,s=()=>{t({type:"ON_EXIT"})},{refs:i,floatingStyles:a,context:l}=mn({placement:"bottom-start",open:o,onOpenChange:g=>{g||s()},elements:{reference:r},middleware:[ft(10),gt(),mt()],whileElementsMounted:Ce}),c=fn(l,{outsidePress:g=>!(g.target instanceof Element&&g.target.closest(".ProseMirror"))}),d=hn(l,{role:"listbox"}),{getFloatingProps:u}=pn([c,d]);return o?I.jsx(ln,{children:I.jsx("div",{ref:i.setFloating,style:a,...u(),className:"z-50 w-auto min-w-[360px] max-w-[520px] rounded-lg border bg-popover p-0 text-popover-foreground shadow-md outline-hidden overflow-hidden",children:n})}):null}const kn=n=>{const e=X.c(17),{item:t,isSelected:o,onSelect:r,isLoading:s,ref:i,renderItem:a}=n;let l;if(e[0]!==t){const x=bt(t._meta);l=t.title||xt(t.name,x),e[0]=t,e[1]=l}else l=e[1];const c=l,d=t.description||null,u=t.icon,g=o&&"bg-accent text-accent-foreground",h=s&&"pointer-events-none opacity-50";let y;e[2]!==g||e[3]!==h?(y=vt("relative flex w-full cursor-pointer select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors","hover:bg-accent hover:text-accent-foreground","focus:bg-accent focus:text-accent-foreground",g,h),e[2]=g,e[3]=h,e[4]=y):y=e[4];let m;e[5]!==d||e[6]!==u||e[7]!==s||e[8]!==t||e[9]!==c||e[10]!==a?(m=a?a(t):I.jsxs(I.Fragment,{children:[u!==void 0&&I.jsx(yt,{icon:u,name:c,size:"xs",className:"mr-2"}),I.jsxs("div",{className:"flex flex-col gap-0.5 flex-1 min-w-0",children:[I.jsxs("div",{className:"flex items-center justify-between gap-2",children:[I.jsx("span",{className:"font-medium flex items-center truncate capitalize",children:c}),s&&I.jsx(ht,{size:"xs"})]}),d&&I.jsx("div",{className:"text-xs text-muted-foreground line-clamp-1",children:d})]}),t.drillable&&I.jsx("kbd",{className:"shrink-0 ml-2 px-1.5 py-0.5 text-[10px] font-medium text-muted-foreground bg-muted border border-border rounded",children:"↵"})]}),e[5]=d,e[6]=u,e[7]=s,e[8]=t,e[9]=c,e[10]=a,e[11]=m):m=e[11];let f;return e[12]!==r||e[13]!==i||e[14]!==y||e[15]!==m?(f=I.jsx("div",{ref:i,onClick:r,className:y,children:m}),e[12]=r,e[13]=i,e[14]=y,e[15]=m,e[16]=f):f=e[16],f},_n=n=>{const e=X.c(24),{editor:t,queryKey:o,queryFn:r,onSelect:s,renderItem:i,emptyLabel:a}=n,l=pt();let c;e[0]!==t||e[1]!==s||e[2]!==r||e[3]!==o?(c={editor:t,queryKey:o,queryFn:r,onSelect:s},e[0]=t,e[1]=s,e[2]=r,e[3]=o,e[4]=c):c=e[4];const{items:d,selectedIndex:u,onSelect:g,selectedItem:h}=qn(c);if(!d.length){let x;e[5]!==a||e[6]!==l?(x=a??l("chat.mention.noItemsFound"),e[5]=a,e[6]=l,e[7]=x):x=e[7];let b;return e[8]!==x?(b=I.jsx("div",{className:"min-w-[360px] max-w-[520px] bg-popover text-popover-foreground rounded-md border shadow-md p-3 text-sm",children:x}),e[8]=x,e[9]=b):b=e[9],b}let y;e[10]===Symbol.for("react.memo_cache_sentinel")?(y={maxHeight:"min(320px, var(--radix-popover-content-available-height, 320px))"},e[10]=y):y=e[10];let m;if(e[11]!==g||e[12]!==d||e[13]!==i||e[14]!==u||e[15]!==h?.name){let x;e[17]!==g||e[18]!==i||e[19]!==u||e[20]!==h?.name?(x=(b,R)=>I.jsx(kn,{item:b,isSelected:R===u,ref:R===u?Kn:void 0,onSelect:()=>g(b,R),isLoading:h?.name===b.name,renderItem:i},`${b.kind??"item"}:${b.name}`),e[17]=g,e[18]=i,e[19]=u,e[20]=h?.name,e[21]=x):x=e[21],m=d.map(x),e[11]=g,e[12]=d,e[13]=i,e[14]=u,e[15]=h?.name,e[16]=m}else m=e[16];let f;return e[22]!==m?(f=I.jsx("div",{className:"min-w-[360px] max-w-[520px] bg-popover text-popover-foreground rounded-md overflow-y-auto",style:y,children:I.jsx("div",{className:"p-1",children:m})}),e[22]=m,e[23]=f):f=e[23],f};function Ln(){const n=X.c(1);let e;return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=I.jsx("div",{className:"p-1",children:[...Array(3)].map(jn)}),n[0]=e):e=n[0],e}function jn(n,e){return I.jsxs("div",{className:"flex items-center gap-1.5 px-2 py-1.5 animate-pulse",children:[I.jsx("div",{className:"h-4 w-24 bg-muted rounded"}),I.jsx("div",{className:"h-3 w-32 bg-muted rounded"})]},e)}function Qn(n){const e=X.c(20),{editor:t,char:o,pluginKey:r,queryKey:s,queryFn:i,onSelect:a,allow:l,onOpenChange:c,renderItem:d,emptyLabel:u}=n;let g;e[0]!==l||e[1]!==o||e[2]!==t||e[3]!==c||e[4]!==r?(g={editor:t,char:o,pluginKey:r,allow:l,onOpenChange:c},e[0]=l,e[1]=o,e[2]=t,e[3]=c,e[4]=r,e[5]=g):g=e[5];const{state:h,dispatch:y}=On(g);let m;e[6]!==y||e[7]!==h?(m={state:h,dispatch:y},e[6]=y,e[7]=h,e[8]=m):m=e[8];let f;e[9]===Symbol.for("react.memo_cache_sentinel")?(f=I.jsx(Ln,{}),e[9]=f):f=e[9];let x;e[10]!==t||e[11]!==u||e[12]!==a||e[13]!==i||e[14]!==s||e[15]!==d?(x=I.jsx($n,{children:I.jsx(p.Suspense,{fallback:f,children:I.jsx(_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{Qn as S,Yn as a,Hn as e,Xn as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as c,j as i,bo as C,bm as y,br as T,bp as I,by as M,bJ as H,bF as z,c as A,l as g}from"./index-
|
|
1
|
+
import{r as c,j as i,bo as C,bm as y,br as T,bp as I,by as M,bJ as H,bF as z,c as A,l as g}from"./index-CWzlOAQX.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,fH as he,b as ue,r as ae,B as te,ao as ge,l as je,t as ce,aS as be}from"./index-CyQyr88p.js";import{s as xe}from"./Plus-B0T7sCOu.js";import{A as Re,a as ve,b as Se,c as De,g as Ne,d as _e,e as Ce,f as Pe}from"./alert-dialog-DPE6kDht.js";import{d as Ae,h as ke,c as we,e as ze,b as Ee,D as Oe}from"./dialog-D1MsBTH7.js";import{I as Ie}from"./input-CeDoO_Rr.js";import{u as $e,a as Fe,R as Te}from"./repository-picker-STEm8zmF.js";import{u as He,b as Be,c as Ge}from"./use-org-repo-syncs-d4JgzgQp.js";import{t as qe}from"./format-time-CjIPQhCN.js";import{R as Le}from"./require-capability-BH1WwajD.js";import"./X-CtohJRXR.js";import"./ArrowLeft-C_Aui1-t.js";import"./LinkExternal01-BOhmrkdK.js";import"./tooltip-MkmbJW_K.js";import"./index-POiEXzT7.js";import"./label-DO3jRcdx.js";import"./useInfiniteQuery-CucDp1Bl.js";import"./infiniteQueryObserver-Bm7kObFT.js";import"./collection-search-B5LfgGj5.js";import"./SearchMd-BjiZq5Ss.js";import"./ShoppingBag01-mLNM1PWh.js";import"./avatar-qgmN1uFW.js";import"./User01-CUsG_6c_.js";import"./use-debounced-value-Csr5jCDV.js";import"./use-organization-settings-Cm1vewr9.js";import"./schema-Gtjoj1mV.js";import"./task-board-BZQiH6lk.js";import"./differenceInSeconds-C3x8sHUj.js";import"./access-gate-BSw0CcmD.js";import"./capability-load-error-BhEiGFSy.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:i,onRemove:l}=e,o=ue();let u;t[0]!==i||t[1]!==o?(u=Je(i,o),t[0]=i,t[1]=o,t[2]=u):u=t[2];const m=u,r=$e();let f;t[3]!==i.repositoryId||t[4]!==r.data?(f=r.data?.find(C=>C.id===i.repositoryId),t[3]=i.repositoryId,t[4]=r.data,t[5]=f):f=t[5];const n=f;let g;t[6]!==n?(g=s.jsx("div",{className:"size-9 rounded-md bg-muted flex items-center justify-center shrink-0",children:n?s.jsx(Fe,{provider:n.provider,size:16,className:"text-muted-foreground"}):s.jsx(ge,{size:16,className:"text-muted-foreground"})}),t[6]=n,t[7]=g):g=t[7];const c=n?.path??`${i.repoOwner}/${i.repoName}`;let d;t[8]!==c?(d=s.jsx("span",{className:"font-medium text-sm truncate",children:c}),t[8]=c,t[9]=d):d=t[9];let p;t[10]!==i.ref?(p=s.jsxs("span",{className:"text-xs text-muted-foreground shrink-0",children:["@",i.ref]}),t[10]=i.ref,t[11]=p):p=t[11];let S;t[12]!==d||t[13]!==p?(S=s.jsxs("div",{className:"flex items-center gap-2",children:[d,p]}),t[12]=d,t[13]=p,t[14]=S):S=t[14];const _=m.error?"text-destructive":"text-muted-foreground";let D;t[15]!==_?(D=je("text-xs mt-0.5 truncate",_),t[15]=_,t[16]=D):D=t[16];let b;t[17]!==i.volume||t[18]!==o?(b=o("settings.syncedRepos.rowSubtitle",{volume:i.volume}),t[17]=i.volume,t[18]=o,t[19]=b):b=t[19];let R;t[20]!==m.label||t[21]!==b||t[22]!==D?(R=s.jsxs("p",{className:D,children:[b," ·"," ",m.label]}),t[20]=m.label,t[21]=b,t[22]=D,t[23]=R):R=t[23];let x;t[24]!==R||t[25]!==S?(x=s.jsxs("div",{className:"min-w-0",children:[S,R]}),t[24]=R,t[25]=S,t[26]=x):x=t[26];let y;t[27]!==x||t[28]!==g?(y=s.jsxs("div",{className:"flex items-start gap-3 min-w-0",children:[g,x]}),t[27]=x,t[28]=g,t[29]=y):y=t[29];let h;t[30]!==o?(h=o("settings.syncedRepos.remove"),t[30]=o,t[31]=h):h=t[31];let j;t[32]!==l||t[33]!==h?(j=s.jsx(te,{variant:"outline",size:"sm",onClick:l,children:h}),t[32]=l,t[33]=h,t[34]=j):j=t[34];let N;return t[35]!==y||t[36]!==j?(N=s.jsxs("div",{className:"flex items-center justify-between gap-4 py-3 border-b border-border/60 last:border-b-0",children:[y,j]}),t[35]=y,t[36]=j,t[37]=N):N=t[37],N}function Me(e){const t=se.c(21),{onAdd:i}=e,l=ue();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("div",{className:"size-12 rounded-full bg-muted flex items-center justify-center",children:s.jsx(ge,{size:20,className:"text-muted-foreground"})}),t[0]=o):o=t[0];let u;t[1]!==l?(u=l("settings.syncedRepos.emptyTitle"),t[1]=l,t[2]=u):u=t[2];let m;t[3]!==u?(m=s.jsx("p",{className:"font-medium text-sm",children:u}),t[3]=u,t[4]=m):m=t[4];let r;t[5]!==l?(r=l("settings.syncedRepos.emptyDescription"),t[5]=l,t[6]=r):r=t[6];let f;t[7]!==r?(f=s.jsx("p",{className:"text-xs text-muted-foreground mt-1 max-w-sm",children:r}),t[7]=r,t[8]=f):f=t[8];let n;t[9]!==m||t[10]!==f?(n=s.jsxs("div",{children:[m,f]}),t[9]=m,t[10]=f,t[11]=n):n=t[11];let g;t[12]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(xe,{size:14}),t[12]=g):g=t[12];let c;t[13]!==l?(c=l("settings.syncedRepos.addRepo"),t[13]=l,t[14]=c):c=t[14];let d;t[15]!==i||t[16]!==c?(d=s.jsxs(te,{onClick:i,size:"sm",className:"mt-2",children:[g,c]}),t[15]=i,t[16]=c,t[17]=d):d=t[17];let p;return t[18]!==n||t[19]!==d?(p=s.jsxs("div",{className:"rounded-2xl border border-dashed border-border/60 p-10 flex flex-col items-center justify-center text-center gap-3",children:[o,n,d]}),t[18]=n,t[19]=d,t[20]=p):p=t[20],p}function Qe(){const e=se.c(107),t=ue(),i=He(),l=Be(),o=Ge(),[u,m]=ae.useState(!1),[r,f]=ae.useState(null),[n,g]=ae.useState(""),[c,d]=ae.useState(null);let p;e[0]!==l||e[1]!==r||e[2]!==t||e[3]!==n?(p=function(){!r||!n.trim()||l.mutate({repositoryId:r.id,volume:n.trim()},{onSuccess:v=>{f(null),ce.success(t("settings.syncedRepos.created",{volume:v.volume}))},onError:v=>{ce.error(v instanceof Error?v.message:t("settings.syncedRepos.failed"))}})},e[0]=l,e[1]=r,e[2]=t,e[3]=n,e[4]=p):p=e[4];const S=p;let _;e[5]!==c||e[6]!==o||e[7]!==t?(_=function(){c&&o.mutate(c.id,{onSuccess:()=>ce.success(t("settings.syncedRepos.removed")),onError:v=>ce.error(v instanceof Error?v.message:t("settings.syncedRepos.failed")),onSettled:()=>d(null)})},e[5]=c,e[6]=o,e[7]=t,e[8]=_):_=e[8];const D=_;if(i.isPending){let a;return e[9]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(be,{className:"h-32 w-full"}),e[9]=a):a=e[9],a}let b;e[10]!==i.data?(b=i.data??[],e[10]=i.data,e[11]=b):b=e[11];const R=b;let x;e[12]!==t?(x=t("settings.syncedRepos.pageDescription"),e[12]=t,e[13]=x):x=e[13];let y;e[14]!==x?(y=s.jsx("p",{className:"text-sm text-muted-foreground",children:x}),e[14]=x,e[15]=y):y=e[15];let h;e[16]!==R||e[17]!==t?(h=R.length===0?s.jsx(Me,{onAdd:()=>m(!0)}):s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"flex items-center justify-end",children:s.jsxs(te,{onClick:()=>m(!0),size:"sm",children:[s.jsx(xe,{size:14}),t("settings.syncedRepos.addRepo")]})}),s.jsx("section",{className:"rounded-2xl border border-border/60 bg-background px-5 py-2",children:R.map(a=>s.jsx(Ke,{config:a,onRemove:()=>d(a)},a.id))})]}),e[16]=R,e[17]=t,e[18]=h):h=e[18];let j;e[19]!==t?(j=t("settings.syncedRepos.pickerTitle"),e[19]=t,e[20]=j):j=e[20];let N;e[21]===Symbol.for("react.memo_cache_sentinel")?(N=a=>{const{repository:v}=a;m(!1),f(v),g(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 le;e[25]===Symbol.for("react.memo_cache_sentinel")?(le=a=>{a||f(null)},e[25]=le):le=e[25];let P;e[26]!==t?(P=t("settings.syncedRepos.nameDialogTitle"),e[26]=t,e[27]=P):P=e[27];let A;e[28]!==P?(A=s.jsx(Ae,{children:P}),e[28]=P,e[29]=A):A=e[29];const me=r?r.path:"";let k;e[30]!==t||e[31]!==me?(k=t("settings.syncedRepos.nameDialogDescription",{repo:me}),e[30]=t,e[31]=me,e[32]=k):k=e[32];let w;e[33]!==k?(w=s.jsx(ke,{children:k}),e[33]=k,e[34]=w):w=e[34];let z;e[35]!==A||e[36]!==w?(z=s.jsxs(we,{children:[A,w]}),e[35]=A,e[36]=w,e[37]=z):z=e[37];let ie;e[38]===Symbol.for("react.memo_cache_sentinel")?(ie=a=>g(a.target.value),e[38]=ie):ie=e[38];let E;e[39]!==t?(E=t("settings.syncedRepos.namePlaceholder"),e[39]=t,e[40]=E):E=e[40];let O;e[41]!==E||e[42]!==n?(O=s.jsx(Ie,{value:n,onChange:ie,placeholder:E,autoFocus:!0}),e[41]=E,e[42]=n,e[43]=O):O=e[43];let ne;e[44]===Symbol.for("react.memo_cache_sentinel")?(ne=()=>f(null),e[44]=ne):ne=e[44];const ye=l.isPending;let I;e[45]!==t?(I=t("settings.syncedRepos.cancel"),e[45]=t,e[46]=I):I=e[46];let $;e[47]!==l.isPending||e[48]!==I?($=s.jsx(te,{variant:"outline",onClick:ne,disabled:ye,children:I}),e[47]=l.isPending,e[48]=I,e[49]=$):$=e[49];let F;e[50]!==l.isPending||e[51]!==n?(F=!n.trim()||l.isPending,e[50]=l.isPending,e[51]=n,e[52]=F):F=e[52];let T;e[53]!==l.isPending||e[54]!==t?(T=l.isPending?t("settings.syncedRepos.creating"):t("settings.syncedRepos.create"),e[53]=l.isPending,e[54]=t,e[55]=T):T=e[55];let H;e[56]!==S||e[57]!==F||e[58]!==T?(H=s.jsx(te,{disabled:F,onClick:S,children:T}),e[56]=S,e[57]=F,e[58]=T,e[59]=H):H=e[59];let B;e[60]!==$||e[61]!==H?(B=s.jsxs(ze,{children:[$,H]}),e[60]=$,e[61]=H,e[62]=B):B=e[62];let G;e[63]!==z||e[64]!==O||e[65]!==B?(G=s.jsxs(Ee,{className:"sm:max-w-sm",children:[z,O,B]}),e[63]=z,e[64]=O,e[65]=B,e[66]=G):G=e[66];let q;e[67]!==G||e[68]!==de?(q=s.jsx(Oe,{open:de,onOpenChange:le,children:G}),e[67]=G,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(Re,{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]!==y||e[103]!==ee||e[104]!==h||e[105]!==C?(re=s.jsxs(s.Fragment,{children:[y,h,C,q,ee]}),e[101]=q,e[102]=y,e[103]=ee,e[104]=h,e[105]=C,e[106]=re):re=e[106],re}function Ue(){const e=se.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(he,{group:"storage",children:s.jsx(Qe,{})}),e[0]=t):t=e[0],t}function Nt(){const e=se.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(Le,{capability:"file-configs:manage",area:"files",children:s.jsx(Ue,{})}),e[0]=t):t=e[0],t}export{Nt as default};
|
|
1
|
+
import{c as se,j as s,fH as he,b as ue,r as ae,B as te,ao as ge,l as je,t as ce,aS as be}from"./index-CWzlOAQX.js";import{s as xe}from"./Plus-CGgnB9yV.js";import{A as Re,a as ve,b as Se,c as De,g as Ne,d as _e,e as Ce,f as Pe}from"./alert-dialog-BYJnmaQz.js";import{d as Ae,h as ke,c as we,e as ze,b as Ee,D as Oe}from"./dialog-DwOXW4AO.js";import{I as Ie}from"./input-BT8saI27.js";import{u as $e,a as Fe,R as Te}from"./repository-picker-BR_sMkOw.js";import{u as He,b as Be,c as Ge}from"./use-org-repo-syncs-EkZ_pjWr.js";import{t as qe}from"./format-time-CjIPQhCN.js";import{R as Le}from"./require-capability-C2Nda3jm.js";import"./X-MCJw_lkE.js";import"./ArrowLeft-CyFyBJmn.js";import"./LinkExternal01-B-WvSbZy.js";import"./tooltip-BqndO78a.js";import"./index-Qp03HhfC.js";import"./label-0TZ28Umz.js";import"./useInfiniteQuery-Dxc2v4r4.js";import"./infiniteQueryObserver-z6KpeaXk.js";import"./collection-search-Be2s73S6.js";import"./SearchMd-B7WxOr73.js";import"./ShoppingBag01-BG3AWGBS.js";import"./avatar-DnckqjGp.js";import"./User01-DrdqUOnb.js";import"./use-debounced-value-DfLnstW7.js";import"./use-organization-settings-B0MM1DlS.js";import"./schema-BKdAxrjN.js";import"./task-board-ZOkVjFfb.js";import"./differenceInSeconds-C3x8sHUj.js";import"./access-gate-buHLOhRt.js";import"./capability-load-error-BwY99ChM.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:i,onRemove:l}=e,o=ue();let u;t[0]!==i||t[1]!==o?(u=Je(i,o),t[0]=i,t[1]=o,t[2]=u):u=t[2];const m=u,r=$e();let f;t[3]!==i.repositoryId||t[4]!==r.data?(f=r.data?.find(C=>C.id===i.repositoryId),t[3]=i.repositoryId,t[4]=r.data,t[5]=f):f=t[5];const n=f;let g;t[6]!==n?(g=s.jsx("div",{className:"size-9 rounded-md bg-muted flex items-center justify-center shrink-0",children:n?s.jsx(Fe,{provider:n.provider,size:16,className:"text-muted-foreground"}):s.jsx(ge,{size:16,className:"text-muted-foreground"})}),t[6]=n,t[7]=g):g=t[7];const c=n?.path??`${i.repoOwner}/${i.repoName}`;let d;t[8]!==c?(d=s.jsx("span",{className:"font-medium text-sm truncate",children:c}),t[8]=c,t[9]=d):d=t[9];let p;t[10]!==i.ref?(p=s.jsxs("span",{className:"text-xs text-muted-foreground shrink-0",children:["@",i.ref]}),t[10]=i.ref,t[11]=p):p=t[11];let S;t[12]!==d||t[13]!==p?(S=s.jsxs("div",{className:"flex items-center gap-2",children:[d,p]}),t[12]=d,t[13]=p,t[14]=S):S=t[14];const _=m.error?"text-destructive":"text-muted-foreground";let D;t[15]!==_?(D=je("text-xs mt-0.5 truncate",_),t[15]=_,t[16]=D):D=t[16];let b;t[17]!==i.volume||t[18]!==o?(b=o("settings.syncedRepos.rowSubtitle",{volume:i.volume}),t[17]=i.volume,t[18]=o,t[19]=b):b=t[19];let R;t[20]!==m.label||t[21]!==b||t[22]!==D?(R=s.jsxs("p",{className:D,children:[b," ·"," ",m.label]}),t[20]=m.label,t[21]=b,t[22]=D,t[23]=R):R=t[23];let x;t[24]!==R||t[25]!==S?(x=s.jsxs("div",{className:"min-w-0",children:[S,R]}),t[24]=R,t[25]=S,t[26]=x):x=t[26];let y;t[27]!==x||t[28]!==g?(y=s.jsxs("div",{className:"flex items-start gap-3 min-w-0",children:[g,x]}),t[27]=x,t[28]=g,t[29]=y):y=t[29];let h;t[30]!==o?(h=o("settings.syncedRepos.remove"),t[30]=o,t[31]=h):h=t[31];let j;t[32]!==l||t[33]!==h?(j=s.jsx(te,{variant:"outline",size:"sm",onClick:l,children:h}),t[32]=l,t[33]=h,t[34]=j):j=t[34];let N;return t[35]!==y||t[36]!==j?(N=s.jsxs("div",{className:"flex items-center justify-between gap-4 py-3 border-b border-border/60 last:border-b-0",children:[y,j]}),t[35]=y,t[36]=j,t[37]=N):N=t[37],N}function Me(e){const t=se.c(21),{onAdd:i}=e,l=ue();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("div",{className:"size-12 rounded-full bg-muted flex items-center justify-center",children:s.jsx(ge,{size:20,className:"text-muted-foreground"})}),t[0]=o):o=t[0];let u;t[1]!==l?(u=l("settings.syncedRepos.emptyTitle"),t[1]=l,t[2]=u):u=t[2];let m;t[3]!==u?(m=s.jsx("p",{className:"font-medium text-sm",children:u}),t[3]=u,t[4]=m):m=t[4];let r;t[5]!==l?(r=l("settings.syncedRepos.emptyDescription"),t[5]=l,t[6]=r):r=t[6];let f;t[7]!==r?(f=s.jsx("p",{className:"text-xs text-muted-foreground mt-1 max-w-sm",children:r}),t[7]=r,t[8]=f):f=t[8];let n;t[9]!==m||t[10]!==f?(n=s.jsxs("div",{children:[m,f]}),t[9]=m,t[10]=f,t[11]=n):n=t[11];let g;t[12]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(xe,{size:14}),t[12]=g):g=t[12];let c;t[13]!==l?(c=l("settings.syncedRepos.addRepo"),t[13]=l,t[14]=c):c=t[14];let d;t[15]!==i||t[16]!==c?(d=s.jsxs(te,{onClick:i,size:"sm",className:"mt-2",children:[g,c]}),t[15]=i,t[16]=c,t[17]=d):d=t[17];let p;return t[18]!==n||t[19]!==d?(p=s.jsxs("div",{className:"rounded-2xl border border-dashed border-border/60 p-10 flex flex-col items-center justify-center text-center gap-3",children:[o,n,d]}),t[18]=n,t[19]=d,t[20]=p):p=t[20],p}function Qe(){const e=se.c(107),t=ue(),i=He(),l=Be(),o=Ge(),[u,m]=ae.useState(!1),[r,f]=ae.useState(null),[n,g]=ae.useState(""),[c,d]=ae.useState(null);let p;e[0]!==l||e[1]!==r||e[2]!==t||e[3]!==n?(p=function(){!r||!n.trim()||l.mutate({repositoryId:r.id,volume:n.trim()},{onSuccess:v=>{f(null),ce.success(t("settings.syncedRepos.created",{volume:v.volume}))},onError:v=>{ce.error(v instanceof Error?v.message:t("settings.syncedRepos.failed"))}})},e[0]=l,e[1]=r,e[2]=t,e[3]=n,e[4]=p):p=e[4];const S=p;let _;e[5]!==c||e[6]!==o||e[7]!==t?(_=function(){c&&o.mutate(c.id,{onSuccess:()=>ce.success(t("settings.syncedRepos.removed")),onError:v=>ce.error(v instanceof Error?v.message:t("settings.syncedRepos.failed")),onSettled:()=>d(null)})},e[5]=c,e[6]=o,e[7]=t,e[8]=_):_=e[8];const D=_;if(i.isPending){let a;return e[9]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(be,{className:"h-32 w-full"}),e[9]=a):a=e[9],a}let b;e[10]!==i.data?(b=i.data??[],e[10]=i.data,e[11]=b):b=e[11];const R=b;let x;e[12]!==t?(x=t("settings.syncedRepos.pageDescription"),e[12]=t,e[13]=x):x=e[13];let y;e[14]!==x?(y=s.jsx("p",{className:"text-sm text-muted-foreground",children:x}),e[14]=x,e[15]=y):y=e[15];let h;e[16]!==R||e[17]!==t?(h=R.length===0?s.jsx(Me,{onAdd:()=>m(!0)}):s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"flex items-center justify-end",children:s.jsxs(te,{onClick:()=>m(!0),size:"sm",children:[s.jsx(xe,{size:14}),t("settings.syncedRepos.addRepo")]})}),s.jsx("section",{className:"rounded-2xl border border-border/60 bg-background px-5 py-2",children:R.map(a=>s.jsx(Ke,{config:a,onRemove:()=>d(a)},a.id))})]}),e[16]=R,e[17]=t,e[18]=h):h=e[18];let j;e[19]!==t?(j=t("settings.syncedRepos.pickerTitle"),e[19]=t,e[20]=j):j=e[20];let N;e[21]===Symbol.for("react.memo_cache_sentinel")?(N=a=>{const{repository:v}=a;m(!1),f(v),g(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 le;e[25]===Symbol.for("react.memo_cache_sentinel")?(le=a=>{a||f(null)},e[25]=le):le=e[25];let P;e[26]!==t?(P=t("settings.syncedRepos.nameDialogTitle"),e[26]=t,e[27]=P):P=e[27];let A;e[28]!==P?(A=s.jsx(Ae,{children:P}),e[28]=P,e[29]=A):A=e[29];const me=r?r.path:"";let k;e[30]!==t||e[31]!==me?(k=t("settings.syncedRepos.nameDialogDescription",{repo:me}),e[30]=t,e[31]=me,e[32]=k):k=e[32];let w;e[33]!==k?(w=s.jsx(ke,{children:k}),e[33]=k,e[34]=w):w=e[34];let z;e[35]!==A||e[36]!==w?(z=s.jsxs(we,{children:[A,w]}),e[35]=A,e[36]=w,e[37]=z):z=e[37];let ie;e[38]===Symbol.for("react.memo_cache_sentinel")?(ie=a=>g(a.target.value),e[38]=ie):ie=e[38];let E;e[39]!==t?(E=t("settings.syncedRepos.namePlaceholder"),e[39]=t,e[40]=E):E=e[40];let O;e[41]!==E||e[42]!==n?(O=s.jsx(Ie,{value:n,onChange:ie,placeholder:E,autoFocus:!0}),e[41]=E,e[42]=n,e[43]=O):O=e[43];let ne;e[44]===Symbol.for("react.memo_cache_sentinel")?(ne=()=>f(null),e[44]=ne):ne=e[44];const ye=l.isPending;let I;e[45]!==t?(I=t("settings.syncedRepos.cancel"),e[45]=t,e[46]=I):I=e[46];let $;e[47]!==l.isPending||e[48]!==I?($=s.jsx(te,{variant:"outline",onClick:ne,disabled:ye,children:I}),e[47]=l.isPending,e[48]=I,e[49]=$):$=e[49];let F;e[50]!==l.isPending||e[51]!==n?(F=!n.trim()||l.isPending,e[50]=l.isPending,e[51]=n,e[52]=F):F=e[52];let T;e[53]!==l.isPending||e[54]!==t?(T=l.isPending?t("settings.syncedRepos.creating"):t("settings.syncedRepos.create"),e[53]=l.isPending,e[54]=t,e[55]=T):T=e[55];let H;e[56]!==S||e[57]!==F||e[58]!==T?(H=s.jsx(te,{disabled:F,onClick:S,children:T}),e[56]=S,e[57]=F,e[58]=T,e[59]=H):H=e[59];let B;e[60]!==$||e[61]!==H?(B=s.jsxs(ze,{children:[$,H]}),e[60]=$,e[61]=H,e[62]=B):B=e[62];let G;e[63]!==z||e[64]!==O||e[65]!==B?(G=s.jsxs(Ee,{className:"sm:max-w-sm",children:[z,O,B]}),e[63]=z,e[64]=O,e[65]=B,e[66]=G):G=e[66];let q;e[67]!==G||e[68]!==de?(q=s.jsx(Oe,{open:de,onOpenChange:le,children:G}),e[67]=G,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(Re,{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]!==y||e[103]!==ee||e[104]!==h||e[105]!==C?(re=s.jsxs(s.Fragment,{children:[y,h,C,q,ee]}),e[101]=q,e[102]=y,e[103]=ee,e[104]=h,e[105]=C,e[106]=re):re=e[106],re}function Ue(){const e=se.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(he,{group:"storage",children:s.jsx(Qe,{})}),e[0]=t):t=e[0],t}function Nt(){const e=se.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(Le,{capability:"file-configs:manage",area:"files",children:s.jsx(Ue,{})}),e[0]=t):t=e[0],t}export{Nt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as a,l as f,j as i}from"./index-
|
|
1
|
+
import{c as a,l as f,j as i}from"./index-CWzlOAQX.js";import{a as p}from"./ZoomOut-DxgRaJHf.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-CWzlOAQX.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,et as k,bo as p,bp as T,ev as F,dc as M,bq as P,br as S,bn as V,eu as y,bF as D,c as x,l as g}from"./index-
|
|
1
|
+
import{r as v,j as d,et as k,bo as p,bp as T,ev as F,dc as M,bq as P,br as S,bn as V,eu as y,bF as D,c as x,l as g}from"./index-CWzlOAQX.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-BKdAxrjN.js";const T="super-agent",o=["#9ca3af","#ef4444","#f97316","#f59e0b","#22c55e","#3b82f6","#a855f7","#ec4899"],c=o[0];function A(e){return o[e%o.length]??c}function w(e){return e.createdBy==="system"}const p="chore",d=["reviewer"],_={reviewer:"Reviewer"},E=["QA Agent","Code Reviewer"];function R(e){return e?.reviewer_enabled===void 0&&e?.qa_agent_enabled===!1&&e?.code_reviewer_enabled===!1?!1:s(e,"reviewer_enabled")}const S=["triage","todo","in_progress","in_review","approved","merged","post_deploy_validation","done","archived"],D={queue:"todo"},L=["approved","merged","post_deploy_validation"];function u(e,t){return e?[_[t],...E].some(r=>e.startsWith(`${r}:`)):!1}function g(e){return e.reviewerEnabled||!e.hasPullRequest?!1:!e.threadTitles.some(t=>d.some(r=>u(t,r)))}function f(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 v(e,t){const r=f(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 m(e,t,r){if(t.length===0)return!1;const n=v(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{S as C,p as D,D as L,d as R,T as S,h as T,b as a,N as b,c,L as d,m as e,u as f,g,C as h,w as i,A as n,R as r};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as D,d as E}from"./repository-binding-
|
|
1
|
+
import{p as D,d as E}from"./repository-binding-3gizJnq4.js";import{S as R}from"./task-board-ZOkVjFfb.js";const S=4,b="TASK";function v(e){return e.replace(/[^a-zA-Z]/g,"").toUpperCase().slice(0,S)||b}function w(e,t){return t==null?null:`${v(e)}-${String(t).padStart(2,"0")}`}const M=/^(?:[a-z]{1,8}-)?0*(\d+)$/i;function y(e){const t=M.exec(e.trim())?.[1];return t===void 0?null:Number(t)}const j="__no_repo__";function i(e){return(e??"").trim().toLowerCase()}function P(e,t){const r=(e.created_at??"").localeCompare(t.created_at??"");return r!==0?r:e.id.localeCompare(t.id)}function C(e){return e.projects.length===1?e.projects[0]?.title??e.repo??e.id:e.repo??e.id}function G(e,t=[]){const r=new Map,n=new Map,s=[],a=o=>{const u=i(o),c=r.get(u);if(c)return c;const l={id:u,kind:"repo",repo:o.trim(),title:o.trim(),projects:[]};return r.set(u,l),l};for(const o of e){const u=D(o);if(u){const l=a(u);l.projects.push(o),n.set(o.id,l);continue}const c={id:o.id,kind:"project",repo:null,title:o.title,projects:[o]};s.push(c),n.set(o.id,c)}for(const o of t){const u=(o??"").trim();u&&!n.has(u)&&a(u)}for(const o of r.values())o.projects.sort(P),o.title=C(o);const p=[...r.values()].filter(o=>o.projects.length>0),T=[...r.values()].filter(o=>o.projects.length===0),f=(o,u)=>o.title.localeCompare(u.title),g=[...[...p,...s].sort(f),...T.sort(f)];return{entries:g,byId:new Map(g.map(o=>[o.id,o])),byRepo:r,byProject:n}}function d(e,t){for(const s of e.threads??[]){const a=s.virtualMcpId?t.byProject.get(s.virtualMcpId):void 0;if(a)return a}const r=t.byProject.get((e.repo??"").trim());if(r)return r;const n=i(e.repo);return(n?t.byRepo.get(n):void 0)??null}function m(e,t){const r=d(e,t);if(!r)return[];if(r.projects.length<=1)return r.projects;for(const s of e.threads??[]){const a=s.virtualMcpId?r.projects.find(p=>p.id===s.virtualMcpId):void 0;if(a)return[a]}const n=r.projects.find(s=>s.id===e.repo?.trim());return n?[n]:r.projects}function Y(e,t,r){return e.filter(n=>m(n,t).some(s=>s.id===r))}function z(e,t){const r=m(e,t);return r.length===1?r[0]??null:null}function h(e,t){return t.byId.get(e)??t.byRepo.get(i(e))??t.byProject.get(e)}function _(e,t,r){if(t===null)return!0;if(t===j)return d(e,r)===null;const n=h(t,r);return n?n.repo&&i(e.repo)===i(n.repo)?!0:d(e,r)===n:t.includes("/")?i(e.repo)===i(t):!0}function X(e,t){return e===null?!1:e===j?!0:!!h(e,t)||e.includes("/")}function q(e,t,r){return t===null?null:_(e,t,r)?t:null}function H(e){return e.entries.filter(t=>t.repo!==null&&(t.projects.length===0||t.projects.some(r=>E(r).status!=="detached")))}const L="__unassigned__",J={assignee:null,priority:null,due:null,tags:[],project:null,search:""},A=864e5;function I(e,t){const r=new Date(e),n=new Date(t);return r.getFullYear()===n.getFullYear()&&r.getMonth()===n.getMonth()&&r.getDate()===n.getDate()}function k(e,t){const r=e.trim();return r===""?!1:t!=null&&y(r)===t}function N(e,t){return e.assigneeId===t?!0:e.assigneeId===R&&e.assignedBy===t}function W(e,t,r){const n=t.search.trim().toLowerCase();if(n!==""&&!`${e.title} ${e.description??""}`.toLowerCase().includes(n)&&!k(n,e.keySeq))return!1;if(t.assignee!==null){if(t.assignee===L){if(e.assigneeId!==null)return!1}else if(!N(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 s=new Date(e.dueDate).getTime(),a=Date.now();if(t.due==="overdue"&&s>=a||t.due==="today"&&!I(s,a)||t.due==="week"&&(s<a||s>a+7*A))return!1}if(t.tags.length>0){const s=e.tags.map(a=>a.id);if(!t.tags.some(a=>s.includes(a)))return!1}return!!_(e,t.project,r)}const F={overdue:"taskBoard.taskFilters.dueDateFilterOverdue",today:"taskBoard.taskFilters.dueDateFilterDueToday",week:"taskBoard.taskFilters.dueDateFilterDueThisWeek",none:"taskBoard.taskFilters.dueDateFilterNoDueDate"},Z=Object.keys(F);function Q(e){return F[e]}function $(e,t){return w(e,t.keySeq)??t.id}function V(e,t,r){const n=encodeURIComponent(e),s=encodeURIComponent($(e,t));return r?`/${n}/projects/${encodeURIComponent(r)}/tasks/${s}`:`/${n}/tasks/${s}`}function x(e,t){const r=t?.trim();if(r)return e.find(n=>k(r,n.keySeq))??e.find(n=>n.id===r)}const K=/^board_[\w-]+$/,B=64;function ee(e){const t=e.trim();return t.length>B?null:y(t)!==null||K.test(t)?t:null}export{Z as D,J as E,j as N,L as U,$ as a,G as b,z as c,Y as d,d as e,h as f,V as g,X as h,Q as i,W as j,x as k,q as l,ee as m,m as p,H as s,w as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as n}from"./AlertCircle-
|
|
1
|
+
import{i as n}from"./AlertCircle-CVYthSXp.js";import{i as r}from"./CheckCircle-BsdvfhEK.js";import{d2 as i}from"./index-CWzlOAQX.js";import{a_ as s,a$ as l,w as m}from"./agent-icon-DQhX6pyL.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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as M,b as q,f as J,r as P,j as r,B as W,L as X,h as Z}from"./index-CWzlOAQX.js";import{C as tt}from"./index-HhorfmmF.js";import{S as et}from"./analytics-sections-BupuHkrr.js";import{u as rt,A as G,a as st}from"./use-task-board-analytics-CCzrdEy3.js";import{C as at}from"./combobox-DJXjtyos.js";import{c as it,b as ot,a as lt,d as mt,S as nt}from"./select-CF6Gp6z2.js";import{T as pt,a as ct,c as ft,b as dt}from"./tabs-MJcU_hz5.js";import"./use-mobile--np6aWAG.js";import"./thread-button-KYXikVLO.js";import"./agent-icon-DQhX6pyL.js";import"./AlertCircle-CVYthSXp.js";import"./Tool01-U6VAdTvK.js";import"./ArrowUp-CeSPU7QT.js";import"./ArrowLeft-CyFyBJmn.js";import"./LinkBroken01-DGoMMKbF.js";import"./ShoppingBag01-BG3AWGBS.js";import"./ZoomOut-DxgRaJHf.js";import"./Palette-CmpIZcQI.js";import"./CheckCircle-BsdvfhEK.js";import"./Check-DN3fVKj8.js";import"./ChevronUp-xWbDxNSk.js";import"./UserSquare-zqtxIeMd.js";import"./Copy01-Dv7sipLd.js";import"./CreditCard01-Dk07lq-0.js";import"./DotsVertical-DhmK4qgN.js";import"./Image01-Y9Scw-o_.js";import"./XClose-DJWS3DCR.js";import"./Key01-CtWEwt_r.js";import"./Link01-CsZgPYpl.js";import"./LinkExternal01-B-WvSbZy.js";import"./Monitor01-kmeIS50B.js";import"./Sun-Be_v4SgI.js";import"./Plus-CGgnB9yV.js";import"./SearchMd-B7WxOr73.js";import"./Trash01-d2ldPDpp.js";import"./Upload01-vuUJE-Un.js";import"./User01-DrdqUOnb.js";import"./Users01-BSNk1mAx.js";import"./X-MCJw_lkE.js";import"./use-chat-layout-state-TqbwuuZk.js";import"./use-file-configs-DXe1xU9a.js";import"./use-organization-settings-B0MM1DlS.js";import"./schema-BKdAxrjN.js";import"./task-board-ZOkVjFfb.js";import"./site-slug-DebpOoQq.js";import"./thread-route-D9Gbeij-.js";import"./use-panel-navigate-Dk1Ye1GR.js";import"./use-project-scope-C9VWhN8V.js";import"./repository-binding-3gizJnq4.js";import"./use-mcp-client-Ct2vdUoM.js";import"./auth-BA3Q_TJo.js";import"./thread-intent-uQTUqJNN.js";import"./backoff-8mStPHYB.js";import"./slugify-CEUa2lfQ.js";import"./sheet-BxvcwNse.js";import"./tooltip-BqndO78a.js";import"./index-Qp03HhfC.js";import"./toolbar-icon-button-ByY5u7GY.js";import"./shell-layout-CzhXAO9S.js";import"./avatar-DnckqjGp.js";import"./download-app-dialog-CZZmW5dI.js";import"./dialog-DwOXW4AO.js";import"./command-i-VcjjfU.js";import"./index-C8jZ4bpw.js";import"./integration-icon-B95GPMKQ.js";import"./project-icon-BfkDVtEt.js";import"./new-project-dialog-I6QtJuZt.js";import"./input-BT8saI27.js";import"./label-0TZ28Umz.js";import"./repository-import-picker-DG_yM72C.js";import"./use-navigate-to-agent-0Fvf2Lpw.js";import"./repository-picker-BR_sMkOw.js";import"./useInfiniteQuery-Dxc2v4r4.js";import"./infiniteQueryObserver-z6KpeaXk.js";import"./collection-search-Be2s73S6.js";import"./use-debounced-value-DfLnstW7.js";import"./use-is-desktop-app-BNujXJc_.js";import"./required-auth-layout-CtzgnDx3.js";import"./autosend-D_HIQJhP.js";import"./use-org-sso-B__Yf47H.js";import"./resizable-DqYE28tG.js";import"./icon-button-BtLKyT7m.js";import"./chart-DzZFGD1z.js";import"./index-BzcY0Rd6.js";import"./CartesianChart-B5tlzKMt.js";import"./table-BiIyEc6M.js";import"./Line-DBvwF3QX.js";import"./ErrorBarContext-gSfovbHF.js";import"./Sector-CEcu8yPs.js";import"./XAxis-CUk_D47K.js";import"./popover-Cd3ISjs_.js";const ut=[7,30,90],xt={TASK_BOARD_DELIVERY:"taskBoard.analytics.tabDelivery",TASK_BOARD_STUCK:"taskBoard.analytics.tabStuck",TASK_BOARD_COST:"taskBoard.analytics.tabCost",TASK_BOARD_QUALITY:"taskBoard.analytics.tabQuality",TASK_BOARD_ERRORS:"taskBoard.analytics.tabErrors",TASK_BOARD_TENANTS:"taskBoard.analytics.tabTenants"};function gt(t){const e=M.c(18),{tool:a,org:f,from:d,to:K}=t,o=q();let x;e[0]!==d||e[1]!==f||e[2]!==K?(x={org:f,from:d,to:K},e[0]=d,e[1]=f,e[2]=K,e[3]=x):x=e[3];const{data:i,isLoading:Q,error:m}=st(a,x);if(Q){let l;return e[4]===Symbol.for("react.memo_cache_sentinel")?(l=r.jsx("div",{className:"flex justify-center py-12",children:r.jsx(Z,{className:"size-5 text-muted-foreground"})}),e[4]=l):l=e[4],l}if(m){let l;return e[5]!==m.message?(l=r.jsx("div",{className:"rounded-lg border border-border p-8 text-center text-sm text-destructive",children:m.message}),e[5]=m.message,e[6]=l):l=e[6],l}if(!i)return null;let n;e[7]!==i.sections?(n=i.sections.map(St),e[7]=i.sections,e[8]=n):n=e[8];let c;e[9]!==i.range.from||e[10]!==i.range.to||e[11]!==o?(c=o("taskBoard.analytics.rangeFootnote",{from:i.range.from.slice(0,10),to:i.range.to.slice(0,10)}),e[9]=i.range.from,e[10]=i.range.to,e[11]=o,e[12]=c):c=e[12];let p;e[13]!==c?(p=r.jsx("p",{className:"text-xs text-muted-foreground",children:c}),e[13]=c,e[14]=p):p=e[14];let u;return e[15]!==n||e[16]!==p?(u=r.jsxs("div",{className:"flex flex-col gap-8 py-6",children:[n,p]}),e[15]=n,e[16]=p,e[17]=u):u=e[17],u}function St(t){return r.jsx(et,{section:t,threadLinks:!0},t.title)}function sr(){const t=M.c(75),e=q(),a=J({strict:!1}).org??"",f=rt(),[d,K]=P.useState(30),[o,x]=P.useState(a),[i,Q]=P.useState("TASK_BOARD_DELIVERY"),[m]=P.useState(yt);let n;t[0]!==m?(n=new Date(m).toISOString(),t[0]=m,t[1]=n):n=t[1];const c=n;let p;t[2]!==d||t[3]!==m?(p=new Date(m-d*864e5).toISOString(),t[2]=d,t[3]=m,t[4]=p):p=t[4];const u=p,l=f.data?.isTaskBoardAdmin??!1;let g;t[5]!==e?(g=e("taskBoard.analytics.orgCurrent"),t[5]=e,t[6]=g):g=t[6];let S;t[7]!==a||t[8]!==g?(S={value:a,label:g},t[7]=a,t[8]=g,t[9]=S):S=t[9];let h;t[10]!==e?(h=e("taskBoard.analytics.orgAll"),t[10]=e,t[11]=h):h=t[11];let y;t[12]!==h?(y={value:"all",label:h},t[12]=h,t[13]=y):y=t[13];let I;if(t[14]!==f.data?.orgs||t[15]!==a||t[16]!==S||t[17]!==y){let s;t[19]!==a?(s=H=>H.slug!==a,t[19]=a,t[20]=s):s=t[20],I=[S,y,...(f.data?.orgs??[]).filter(s).map(ht)],t[14]=f.data?.orgs,t[15]=a,t[16]=S,t[17]=y,t[18]=I}else I=t[18];const U=I;let b;t[21]!==e?(b=e("taskBoard.analytics.title"),t[21]=e,t[22]=b):b=t[22];let B;t[23]!==b?(B=r.jsx("h1",{className:"text-xl font-medium text-foreground",children:b}),t[23]=b,t[24]=B):B=t[24];let A;t[25]!==l||t[26]!==o||t[27]!==U||t[28]!==e?(A=l&&r.jsx(at,{options:U,value:o,onChange:x,width:"w-[240px]",searchPlaceholder:e("taskBoard.analytics.orgSearch"),emptyMessage:e("taskBoard.analytics.orgEmpty")}),t[25]=l,t[26]=o,t[27]=U,t[28]=e,t[29]=A):A=t[29];const F=String(d);let V;t[30]===Symbol.for("react.memo_cache_sentinel")?(V=s=>K(Number(s)),t[30]=V):V=t[30];let Y;t[31]===Symbol.for("react.memo_cache_sentinel")?(Y=r.jsx(ot,{className:"w-[140px]",size:"sm",children:r.jsx(lt,{})}),t[31]=Y):Y=t[31];let T;t[32]!==e?(T=ut.map(s=>r.jsx(it,{value:String(s),children:e("taskBoard.analytics.rangeDays",{days:String(s)})},s)),t[32]=e,t[33]=T):T=t[33];let j;t[34]!==T?(j=r.jsx(mt,{children:T}),t[34]=T,t[35]=j):j=t[35];let k;t[36]!==F||t[37]!==j?(k=r.jsxs(nt,{value:F,onValueChange:V,children:[Y,j]}),t[36]=F,t[37]=j,t[38]=k):k=t[38];let _;t[39]!==a?(_={org:a},t[39]=a,t[40]=_):_=t[40];let v;t[41]!==e?(v=e("taskBoard.analytics.backToBoard"),t[41]=e,t[42]=v):v=t[42];let N;t[43]!==_||t[44]!==v?(N=r.jsx(W,{size:"sm",variant:"outline",asChild:!0,children:r.jsx(X,{to:"/$org/tasks/{-$taskKey}",params:_,children:v})}),t[43]=_,t[44]=v,t[45]=N):N=t[45];let O;t[46]!==k||t[47]!==N||t[48]!==A?(O=r.jsxs("div",{className:"ml-auto flex items-center gap-2",children:[A,k,N]}),t[46]=k,t[47]=N,t[48]=A,t[49]=O):O=t[49];let C;t[50]!==O||t[51]!==B?(C=r.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[B,O]}),t[50]=O,t[51]=B,t[52]=C):C=t[52];let D;t[53]!==o||t[54]!==a||t[55]!==e?(D=o!==a&&r.jsx("div",{className:"rounded-lg bg-warning/10 px-3 py-2 text-sm text-warning",children:o==="all"?e("taskBoard.analytics.bannerAll"):e("taskBoard.analytics.bannerOrg",{org:o})}),t[53]=o,t[54]=a,t[55]=e,t[56]=D):D=t[56];let $;t[57]===Symbol.for("react.memo_cache_sentinel")?($=s=>Q(s),t[57]=$):$=t[57];let R;t[58]!==e?(R=G.map(s=>r.jsx(pt,{value:s,children:e(xt[s])},s)),t[58]=e,t[59]=R):R=t[59];let E;t[60]!==R?(E=r.jsx(ct,{children:R}),t[60]=R,t[61]=E):E=t[61];let w;t[62]!==u||t[63]!==o||t[64]!==i||t[65]!==c?(w=G.map(s=>r.jsx(ft,{value:s,children:i===s&&r.jsx(gt,{tool:s,org:o,from:u,to:c})},s)),t[62]=u,t[63]=o,t[64]=i,t[65]=c,t[66]=w):w=t[66];let L;t[67]!==E||t[68]!==w||t[69]!==i?(L=r.jsxs(dt,{value:i,onValueChange:$,children:[E,w]}),t[67]=E,t[68]=w,t[69]=i,t[70]=L):L=t[70];let z;return t[71]!==C||t[72]!==D||t[73]!==L?(z=r.jsx(tt.Content,{children:r.jsx("div",{className:"flex h-full min-h-0 flex-col overflow-auto",children:r.jsxs("div",{className:"mx-auto flex w-full max-w-[1680px] flex-col gap-4 px-4 py-6 sm:px-8 sm:py-8",children:[C,D,L]})})}),t[71]=C,t[72]=D,t[73]=L,t[74]=z):z=t[74],z}function ht(t){return{value:t.slug,label:`${t.slug} · ${t.name}`}}function yt(){return Date.now()}export{sr as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{c as C,j as r,X as V,a2 as W,K as G,m as ae,o as ge,e as oe,b as M,r as B,aS as je,B as J,t as q,ed as ue,ee,ec as be,n as de,fn as Te,s as _e,l as Ae,L as Re}from"./index-
|
|
1
|
+
import{c as C,j as r,X as V,a2 as W,K as G,m as ae,o as ge,e as oe,b as M,r as B,aS as je,B as J,t as q,ed as ue,ee,ec as be,n as de,fn as Te,s as _e,l as Ae,L as Re}from"./index-CWzlOAQX.js";import{C as he}from"./checkbox-VSFOqgpI.js";import{I as pe}from"./input-BT8saI27.js";import{T as Ne}from"./textarea-DPzgPhO0.js";import{i as ve}from"./Check-DN3fVKj8.js";import{i as Ie}from"./Tool01-U6VAdTvK.js";import{i as $e}from"./Sun-Be_v4SgI.js";import{s as Ee}from"./Plus-CGgnB9yV.js";import{s as Ke}from"./Trash01-d2ldPDpp.js";import{C as Le}from"./combobox-DJXjtyos.js";import{M as De}from"./multi-select-tRlT3L5z.js";import{d as Oe,c as Fe,b as ze,a as Be,S as Me}from"./select-CF6Gp6z2.js";import{S as Ue}from"./switch-CAhfktTZ.js";import{a as qe,T as Je}from"./input-CJK7pC9G.js";import{p as He}from"./skill-md-ChfVs4uF.js";import{A as Qe,a as Ve,b as We,c as Ge,g as Ye,d as Ze,e as Xe,f as et}from"./alert-dialog-BYJnmaQz.js";import{R as tt,A as st}from"./review-settings-B0nVs037.js";import{h as it}from"./task-board-ZOkVjFfb.js";import{R as lt}from"./require-capability-C2Nda3jm.js";import"./command-i-VcjjfU.js";import"./index-C8jZ4bpw.js";import"./dialog-DwOXW4AO.js";import"./X-MCJw_lkE.js";import"./SearchMd-B7WxOr73.js";import"./popover-Cd3ISjs_.js";import"./badge-BeT90Jfh.js";import"./ChevronUp-xWbDxNSk.js";import"./index-Qp03HhfC.js";import"./suggestion-RCbdRB_3.js";import"./index-BeeQz6mt.js";import"./gateway-client-BgWzL4m_.js";import"./form-CBqY_Qj5.js";import"./label-0TZ28Umz.js";import"./utils-CVEq3hMx.js";import"./org-file-open-context-W094eyab.js";import"./use-mobile--np6aWAG.js";import"./use-panel-navigate-Dk1Ye1GR.js";import"./thread-route-D9Gbeij-.js";import"./use-project-scope-C9VWhN8V.js";import"./repository-binding-3gizJnq4.js";import"./use-mcp-client-Ct2vdUoM.js";import"./auth-BA3Q_TJo.js";import"./tooltip-BqndO78a.js";import"./agent-icon-DQhX6pyL.js";import"./AlertCircle-CVYthSXp.js";import"./ArrowUp-CeSPU7QT.js";import"./ArrowLeft-CyFyBJmn.js";import"./LinkBroken01-DGoMMKbF.js";import"./ShoppingBag01-BG3AWGBS.js";import"./ZoomOut-DxgRaJHf.js";import"./Palette-CmpIZcQI.js";import"./CheckCircle-BsdvfhEK.js";import"./UserSquare-zqtxIeMd.js";import"./Copy01-Dv7sipLd.js";import"./CreditCard01-Dk07lq-0.js";import"./DotsVertical-DhmK4qgN.js";import"./Image01-Y9Scw-o_.js";import"./XClose-DJWS3DCR.js";import"./Key01-CtWEwt_r.js";import"./Link01-CsZgPYpl.js";import"./LinkExternal01-B-WvSbZy.js";import"./Monitor01-kmeIS50B.js";import"./Upload01-vuUJE-Un.js";import"./User01-DrdqUOnb.js";import"./Users01-BSNk1mAx.js";import"./chat-context-CSREXmZ-.js";import"./autosend-D_HIQJhP.js";import"./thread-intent-uQTUqJNN.js";import"./backoff-8mStPHYB.js";import"./slugify-CEUa2lfQ.js";import"./use-is-desktop-app-BNujXJc_.js";import"./use-decopilot-events-jyM4oYaJ.js";import"./use-ai-providers-BYo-eRGm.js";import"./location-DPIrGNp7.js";import"./use-organization-settings-B0MM1DlS.js";import"./schema-BKdAxrjN.js";import"./decopilot-CaWhcF5x.js";import"./ai-providers-logos-DD3qZ33J.js";import"./avatar-DnckqjGp.js";import"./download-app-dialog-CZZmW5dI.js";import"./use-mcp-prompts-Dk_d3SlG.js";import"./use-org-fs-k5NldW-7.js";import"./use-new-blocks-editor-BXR_sYex.js";import"./use-connection-CI6FQy3s.js";import"./access-gate-buHLOhRt.js";import"./capability-load-error-BwY99ChM.js";const nt=/^([A-Za-z][A-Za-z0-9_]*-\d+)$/;function rt(t){const e=t.trim();if(e==="")return null;const s=/(?:\/(?:browse|issues)\/|[?&]selectedIssue=)([A-Za-z][A-Za-z0-9_]*-\d+)/.exec(e)?.[1]??e.split(/[?#]/)[0]??"",i=nt.exec(s);return i?.[1]?i[1].toUpperCase():null}function ke(t){const e=[],n=[],s=new Set;for(const i of t.split(/[\n,;]+/)){const l=i.trim();if(l==="")continue;const a=rt(l);if(!a){n.push(l);continue}s.has(a)||(s.add(a),e.push(a))}return{keys:e,invalid:n}}function at(t){return{type:"doc",content:t.split(`
|
|
2
2
|
`).map(e=>({type:"paragraph",...e===""?{}:{content:[{type:"text",text:e}]}}))}}const ot=new Set(["paragraph","heading","codeBlock","listItem"]);function ct(t){return(t.files??[]).filter(n=>n.content?.trim()).map(n=>n.relPath==="SKILL.md"?He(n.content).body.trim():`${n.relPath}:
|
|
3
3
|
${n.content.trim()}`).join(`
|
|
4
4
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as l,X as n,j as r,K as f}from"./index-CWzlOAQX.js";import{C as d}from"./index-HhorfmmF.js";import{T as u}from"./index-h4lVf9qd.js";import{F as x}from"./feature-gate-CitKKOE2.js";import{m as h,P as j}from"./mock-board-DovrLxym.js";import"./use-mobile--np6aWAG.js";import"./thread-button-KYXikVLO.js";import"./agent-icon-DQhX6pyL.js";import"./AlertCircle-CVYthSXp.js";import"./Tool01-U6VAdTvK.js";import"./ArrowUp-CeSPU7QT.js";import"./ArrowLeft-CyFyBJmn.js";import"./LinkBroken01-DGoMMKbF.js";import"./ShoppingBag01-BG3AWGBS.js";import"./ZoomOut-DxgRaJHf.js";import"./Palette-CmpIZcQI.js";import"./CheckCircle-BsdvfhEK.js";import"./Check-DN3fVKj8.js";import"./ChevronUp-xWbDxNSk.js";import"./UserSquare-zqtxIeMd.js";import"./Copy01-Dv7sipLd.js";import"./CreditCard01-Dk07lq-0.js";import"./DotsVertical-DhmK4qgN.js";import"./Image01-Y9Scw-o_.js";import"./XClose-DJWS3DCR.js";import"./Key01-CtWEwt_r.js";import"./Link01-CsZgPYpl.js";import"./LinkExternal01-B-WvSbZy.js";import"./Monitor01-kmeIS50B.js";import"./Sun-Be_v4SgI.js";import"./Plus-CGgnB9yV.js";import"./SearchMd-B7WxOr73.js";import"./Trash01-d2ldPDpp.js";import"./Upload01-vuUJE-Un.js";import"./User01-DrdqUOnb.js";import"./Users01-BSNk1mAx.js";import"./X-MCJw_lkE.js";import"./use-chat-layout-state-TqbwuuZk.js";import"./use-file-configs-DXe1xU9a.js";import"./use-organization-settings-B0MM1DlS.js";import"./schema-BKdAxrjN.js";import"./task-board-ZOkVjFfb.js";import"./site-slug-DebpOoQq.js";import"./thread-route-D9Gbeij-.js";import"./use-panel-navigate-Dk1Ye1GR.js";import"./use-project-scope-C9VWhN8V.js";import"./repository-binding-3gizJnq4.js";import"./use-mcp-client-Ct2vdUoM.js";import"./auth-BA3Q_TJo.js";import"./thread-intent-uQTUqJNN.js";import"./backoff-8mStPHYB.js";import"./slugify-CEUa2lfQ.js";import"./sheet-BxvcwNse.js";import"./tooltip-BqndO78a.js";import"./index-Qp03HhfC.js";import"./toolbar-icon-button-ByY5u7GY.js";import"./shell-layout-CzhXAO9S.js";import"./avatar-DnckqjGp.js";import"./download-app-dialog-CZZmW5dI.js";import"./dialog-DwOXW4AO.js";import"./command-i-VcjjfU.js";import"./index-C8jZ4bpw.js";import"./integration-icon-B95GPMKQ.js";import"./project-icon-BfkDVtEt.js";import"./new-project-dialog-I6QtJuZt.js";import"./input-BT8saI27.js";import"./label-0TZ28Umz.js";import"./repository-import-picker-DG_yM72C.js";import"./use-navigate-to-agent-0Fvf2Lpw.js";import"./repository-picker-BR_sMkOw.js";import"./useInfiniteQuery-Dxc2v4r4.js";import"./infiniteQueryObserver-z6KpeaXk.js";import"./collection-search-Be2s73S6.js";import"./use-debounced-value-DfLnstW7.js";import"./use-is-desktop-app-BNujXJc_.js";import"./required-auth-layout-CtzgnDx3.js";import"./autosend-D_HIQJhP.js";import"./use-org-sso-B__Yf47H.js";import"./resizable-DqYE28tG.js";import"./icon-button-BtLKyT7m.js";import"./rich-text-link-control-U94G_E0v.js";import"./use-task-board-analytics-CCzrdEy3.js";import"./combobox-DJXjtyos.js";import"./popover-Cd3ISjs_.js";import"./get-initials-D-f_fDFw.js";import"./search-toggle-B17M6kpS.js";import"./config-B-PocAul.js";import"./use-task-board-events-BHC_8phf.js";import"./use-decopilot-events-jyM4oYaJ.js";import"./use-members-9XNbNa6j.js";import"./use-org-auth-client-CN0iwzUb.js";import"./format-time-CjIPQhCN.js";import"./differenceInSeconds-C3x8sHUj.js";import"./use-tags-CjTVjQFf.js";import"./task-route-2jOSkzR_.js";import"./calendar-DwEcUKGe.js";import"./alert-BxbrJMD6.js";import"./collapsible-hh2QeFQx.js";import"./use-copy-PnkEhrhy.js";import"./markdown-Bqzss8Ii.js";import"./location-DPIrGNp7.js";import"./org-file-open-context-W094eyab.js";import"./index-DSVDaqXP.js";import"./index-BeeQz6mt.js";import"./gateway-client-BgWzL4m_.js";import"./form-CBqY_Qj5.js";import"./utils-CVEq3hMx.js";import"./suggestion-RCbdRB_3.js";import"./index-DrVMQFyO.js";import"./use-org-fs-k5NldW-7.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./use-connection-CI6FQy3s.js";import"./github-repo-scope-ByTYKy_L.js";import"./thread-sheet-body-CywQ9hos.js";import"./useSuspenseInfiniteQuery-C8qiUH4q.js";import"./pair-csGGOkx1.js";import"./usage-stats-yhYX0e5G.js";import"./chat-context-CSREXmZ-.js";import"./use-ai-providers-BYo-eRGm.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-BXwhxgcp.js";import"./types-sBzHo8Ih.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./tool-namespace-DmnQIdtF.js";import"./use-mcp-prompts-Dk_d3SlG.js";import"./use-thread-outputs-DCJFafqq.js";import"./file-type-icon-BKMgh7vP.js";import"./use-infinite-scroll-DViN6YmU.js";import"./task-status-DnIsBsG3.js";import"./use-open-billing-url-BMXuqlhP.js";import"./chat-draft-BYIogZvi.js";import"./badge-BeT90Jfh.js";import"./separator-7nNJ8bt3.js";import"./feature-paywall-DweqAdFr.js";import"./plan-ladder-C4roHlM5.js";function a(){const t=l.c(1);let o;return t[0]===Symbol.for("react.memo_cache_sentinel")?(o=r.jsx("div",{className:"flex h-full min-h-0 flex-col overflow-hidden",children:r.jsx(u,{})}),t[0]=o):o=t[0],o}function Ho(){const t=l.c(8),{locator:o}=n();let m;t[0]!==o?(m=c=>c.setQueryData(f.taskBoardItems(o),h()),t[0]=o,t[1]=m):m=t[1];let p;t[2]===Symbol.for("react.memo_cache_sentinel")?(p=r.jsx(a,{}),t[2]=p):p=t[2];let i;t[3]!==m?(i=r.jsx(j,{seed:m,children:p}),t[3]=m,t[4]=i):i=t[4];let e;t[5]===Symbol.for("react.memo_cache_sentinel")?(e=r.jsx(a,{}),t[5]=e):e=t[5];let s;return t[6]!==i?(s=r.jsx(d.Content,{children:r.jsx(x,{feature:"kanban",backdrop:i,children:e})}),t[6]=i,t[7]=s):s=t[7],s}export{Ho as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as o,l,j as n}from"./index-
|
|
1
|
+
import{c as o,l,j as n}from"./index-CWzlOAQX.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};
|
|
@@ -0,0 +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-CWzlOAQX.js";import{C as se}from"./index-HhorfmmF.js";import{S as be}from"./analytics-sections-BupuHkrr.js";import{u as ve,a as Ne,b as Te}from"./use-thread-analytics-B0VguZq2.js";import{B as Ce}from"./badge-BeT90Jfh.js";import{C as _e}from"./combobox-DJXjtyos.js";import{S as ie,b as oe,a as ne,d as ce,c as Z}from"./select-CF6Gp6z2.js";import{e as Ae,a as we,b as fe,T as V,d as ke,c as K}from"./table-BiIyEc6M.js";import{T as le,a as Le,c as re,b as Ee}from"./tabs-MJcU_hz5.js";import{c as Re,S as Ie,a as $e,b as Be}from"./sheet-BxvcwNse.js";import{T as De}from"./thread-sheet-body-CywQ9hos.js";import{u as Oe}from"./use-connection-CI6FQy3s.js";import{u as Pe}from"./use-mcp-client-Ct2vdUoM.js";import{b as He}from"./repository-binding-3gizJnq4.js";import"./use-mobile--np6aWAG.js";import"./thread-button-KYXikVLO.js";import"./agent-icon-DQhX6pyL.js";import"./AlertCircle-CVYthSXp.js";import"./Tool01-U6VAdTvK.js";import"./ArrowUp-CeSPU7QT.js";import"./ArrowLeft-CyFyBJmn.js";import"./LinkBroken01-DGoMMKbF.js";import"./ShoppingBag01-BG3AWGBS.js";import"./ZoomOut-DxgRaJHf.js";import"./Palette-CmpIZcQI.js";import"./CheckCircle-BsdvfhEK.js";import"./Check-DN3fVKj8.js";import"./ChevronUp-xWbDxNSk.js";import"./UserSquare-zqtxIeMd.js";import"./Copy01-Dv7sipLd.js";import"./CreditCard01-Dk07lq-0.js";import"./DotsVertical-DhmK4qgN.js";import"./Image01-Y9Scw-o_.js";import"./XClose-DJWS3DCR.js";import"./Key01-CtWEwt_r.js";import"./Link01-CsZgPYpl.js";import"./LinkExternal01-B-WvSbZy.js";import"./Monitor01-kmeIS50B.js";import"./Sun-Be_v4SgI.js";import"./Plus-CGgnB9yV.js";import"./SearchMd-B7WxOr73.js";import"./Trash01-d2ldPDpp.js";import"./Upload01-vuUJE-Un.js";import"./User01-DrdqUOnb.js";import"./Users01-BSNk1mAx.js";import"./X-MCJw_lkE.js";import"./use-chat-layout-state-TqbwuuZk.js";import"./use-file-configs-DXe1xU9a.js";import"./use-organization-settings-B0MM1DlS.js";import"./schema-BKdAxrjN.js";import"./task-board-ZOkVjFfb.js";import"./site-slug-DebpOoQq.js";import"./thread-route-D9Gbeij-.js";import"./use-panel-navigate-Dk1Ye1GR.js";import"./use-project-scope-C9VWhN8V.js";import"./thread-intent-uQTUqJNN.js";import"./backoff-8mStPHYB.js";import"./slugify-CEUa2lfQ.js";import"./tooltip-BqndO78a.js";import"./index-Qp03HhfC.js";import"./toolbar-icon-button-ByY5u7GY.js";import"./shell-layout-CzhXAO9S.js";import"./avatar-DnckqjGp.js";import"./download-app-dialog-CZZmW5dI.js";import"./dialog-DwOXW4AO.js";import"./command-i-VcjjfU.js";import"./index-C8jZ4bpw.js";import"./integration-icon-B95GPMKQ.js";import"./project-icon-BfkDVtEt.js";import"./new-project-dialog-I6QtJuZt.js";import"./input-BT8saI27.js";import"./label-0TZ28Umz.js";import"./repository-import-picker-DG_yM72C.js";import"./use-navigate-to-agent-0Fvf2Lpw.js";import"./repository-picker-BR_sMkOw.js";import"./useInfiniteQuery-Dxc2v4r4.js";import"./infiniteQueryObserver-z6KpeaXk.js";import"./collection-search-Be2s73S6.js";import"./use-debounced-value-DfLnstW7.js";import"./use-is-desktop-app-BNujXJc_.js";import"./required-auth-layout-CtzgnDx3.js";import"./autosend-D_HIQJhP.js";import"./use-org-sso-B__Yf47H.js";import"./resizable-DqYE28tG.js";import"./icon-button-BtLKyT7m.js";import"./chart-DzZFGD1z.js";import"./index-BzcY0Rd6.js";import"./CartesianChart-B5tlzKMt.js";import"./Line-DBvwF3QX.js";import"./ErrorBarContext-gSfovbHF.js";import"./Sector-CEcu8yPs.js";import"./XAxis-CUk_D47K.js";import"./popover-Cd3ISjs_.js";import"./useSuspenseInfiniteQuery-C8qiUH4q.js";import"./pair-csGGOkx1.js";import"./format-time-CjIPQhCN.js";import"./differenceInSeconds-C3x8sHUj.js";import"./collapsible-hh2QeFQx.js";import"./use-copy-PnkEhrhy.js";import"./usage-stats-yhYX0e5G.js";import"./markdown-Bqzss8Ii.js";import"./location-DPIrGNp7.js";import"./org-file-open-context-W094eyab.js";import"./use-decopilot-events-jyM4oYaJ.js";import"./chat-context-CSREXmZ-.js";import"./use-ai-providers-BYo-eRGm.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-BXwhxgcp.js";import"./types-sBzHo8Ih.js";import"./omit-sandbox-map-jj4lCB2U.js";import"./gateway-client-BgWzL4m_.js";import"./tool-namespace-DmnQIdtF.js";import"./utils-CVEq3hMx.js";import"./use-mcp-prompts-Dk_d3SlG.js";import"./index-BeeQz6mt.js";import"./form-CBqY_Qj5.js";import"./use-thread-outputs-DCJFafqq.js";import"./file-type-icon-BKMgh7vP.js";import"./use-infinite-scroll-DViN6YmU.js";import"./task-status-DnIsBsG3.js";import"./auth-BA3Q_TJo.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 ml(){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{ml as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as C,c as S,j as l,l as P,bd as Y,aH as Q,J as _,ab as Z,b as O,q as z,L as ee,Y as te,k as se,_ as ae,aR as ne,d as oe,X as ie}from"./index-CWzlOAQX.js";import{av as re,aw as le,m as ce,ax as de,A as pe,H as fe}from"./agent-icon-DQhX6pyL.js";import{a as ue,f as me}from"./UserSquare-zqtxIeMd.js";import{a as he}from"./Image01-Y9Scw-o_.js";import{i as be}from"./ZoomOut-DxgRaJHf.js";import{i as B,e as xe,r as ge,u as je,m as ve}from"./use-chat-layout-state-TqbwuuZk.js";import{b as we}from"./use-project-scope-C9VWhN8V.js";import{u as Se}from"./use-mobile--np6aWAG.js";import{b as ye,c as Ne,S as Ie,d as Te,a as $e}from"./sheet-BxvcwNse.js";import{c as Pe,a as D,T as R,b as H}from"./tooltip-BqndO78a.js";import{T as _e}from"./toolbar-icon-button-ByY5u7GY.js";import{a as Ce}from"./shell-layout-CzhXAO9S.js";const Ae="15rem",Ee="18rem",Oe="4.5rem",F=C.createContext(null);function E(){const t=C.useContext(F);if(!t)throw new Error("useSidebar must be used within a SidebarProvider.");return t}function mt(t){const e=S.c(19),{children:s,defaultOpen:a,open:n,onOpenChange:o}=t,c=a===void 0?!1:a,i=Se(),[r,d]=C.useState(c),[p,f]=C.useState(!1),u=n!==void 0,m=u?n:r;let b;e[0]!==u||e[1]!==o?(b=I=>{u||d(I),o?.(I)},e[0]=u,e[1]=o,e[2]=b):b=e[2];const g=b;let j;e[3]!==i||e[4]!==m||e[5]!==g?(j=()=>{i?f(Me):g(!m)},e[3]=i,e[4]=m,e[5]=g,e[6]=j):j=e[6];const h=j,x=m?"expanded":"collapsed";let v;e[7]!==i||e[8]!==m||e[9]!==p||e[10]!==g||e[11]!==x||e[12]!==h?(v={state:x,open:m,setOpen:g,isMobile:i,openMobile:p,setOpenMobile:f,toggleSidebar:h},e[7]=i,e[8]=m,e[9]=p,e[10]=g,e[11]=x,e[12]=h,e[13]=v):v=e[13];const y=v;let w;e[14]!==s?(w=l.jsx(Pe,{delayDuration:0,children:s}),e[14]=s,e[15]=w):w=e[15];let N;return e[16]!==y||e[17]!==w?(N=l.jsx(F.Provider,{value:y,children:w}),e[16]=y,e[17]=w,e[18]=N):N=e[18],N}function Me(t){return!t}function ht(t){const e=S.c(14);let s,a,n,o;e[0]!==t?({className:a,style:o,children:s,...n}=t,e[0]=t,e[1]=s,e[2]=a,e[3]=n,e[4]=o):(s=e[1],a=e[2],n=e[3],o=e[4]);let c;e[5]!==o?(c={"--sidebar-width":Ae,"--sidebar-width-icon":Oe,...o},e[5]=o,e[6]=c):c=e[6];const i=c;let r;e[7]!==a?(r=P("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",a),e[7]=a,e[8]=r):r=e[8];let d;return e[9]!==s||e[10]!==n||e[11]!==i||e[12]!==r?(d=l.jsx("div",{"data-slot":"sidebar-wrapper",style:i,className:r,...n,children:s}),e[9]=s,e[10]=n,e[11]=i,e[12]=r,e[13]=d):d=e[13],d}function bt(t){const e=S.c(36);let s,a,n,o,c;e[0]!==t?({side:o,variant:c,className:a,children:s,...n}=t,e[0]=t,e[1]=s,e[2]=a,e[3]=n,e[4]=o,e[5]=c):(s=e[1],a=e[2],n=e[3],o=e[4],c=e[5]);const i=o===void 0?"left":o,r=c===void 0?"sidebar":c,{isMobile:d,state:p,openMobile:f,setOpenMobile:u}=E();if(d){let N;e[6]===Symbol.for("react.memo_cache_sentinel")?(N={"--sidebar-width":Ee},e[6]=N):N=e[6];let I;e[7]===Symbol.for("react.memo_cache_sentinel")?(I=l.jsxs(Ne,{className:"sr-only",children:[l.jsx(Ie,{children:"Sidebar"}),l.jsx(Te,{children:"Displays the mobile sidebar."})]}),e[7]=I):I=e[7];let T;e[8]!==s?(T=l.jsx("div",{className:"flex h-full w-full flex-col",children:s}),e[8]=s,e[9]=T):T=e[9];let $;e[10]!==i||e[11]!==T?($=l.jsxs($e,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:N,side:i,children:[I,T]}),e[10]=i,e[11]=T,e[12]=$):$=e[12];let A;return e[13]!==f||e[14]!==n||e[15]!==u||e[16]!==$?(A=l.jsx(ye,{open:f,onOpenChange:u,...n,children:$}),e[13]=f,e[14]=n,e[15]=u,e[16]=$,e[17]=A):A=e[17],A}const m=p==="expanded",b=m?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let g;e[18]!==b?(g=P("group/sidebar peer text-sidebar-foreground hidden md:flex flex-col shrink-0 overflow-hidden","transition-[width] duration-150 ease-out motion-reduce:transition-none",b),e[18]=b,e[19]=g):g=e[19];const j=m?void 0:"icon",h=m?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let x;e[20]!==a||e[21]!==h?(x=P("flex flex-col h-full transition-[width] duration-150 ease-out motion-reduce:transition-none",h,a),e[20]=a,e[21]=h,e[22]=x):x=e[22];let v;e[23]!==s?(v=l.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar flex h-full w-full flex-col",children:s}),e[23]=s,e[24]=v):v=e[24];let y;e[25]!==n||e[26]!==x||e[27]!==v?(y=l.jsx("div",{"data-slot":"sidebar-container",className:x,...n,children:v}),e[25]=n,e[26]=x,e[27]=v,e[28]=y):y=e[28];let w;return e[29]!==i||e[30]!==p||e[31]!==g||e[32]!==j||e[33]!==y||e[34]!==r?(w=l.jsx("div",{className:g,"data-state":p,"data-collapsible":j,"data-variant":r,"data-side":i,"data-slot":"sidebar",children:y}),e[29]=i,e[30]=p,e[31]=g,e[32]=j,e[33]=y,e[34]=r,e[35]=w):w=e[35],w}function xt(t){const e=S.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let n;e[3]!==s?(n=P("bg-background relative flex w-full flex-1 flex-col min-w-0","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",s),e[3]=s,e[4]=n):n=e[4];let o;return e[5]!==a||e[6]!==n?(o=l.jsx("main",{"data-slot":"sidebar-inset",className:n,...a}),e[5]=a,e[6]=n,e[7]=o):o=e[7],o}function gt(t){const e=S.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let n;e[3]!==s?(n=P("flex flex-col gap-2 p-2",s),e[3]=s,e[4]=n):n=e[4];let o;return e[5]!==a||e[6]!==n?(o=l.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:n,...a}),e[5]=a,e[6]=n,e[7]=o):o=e[7],o}function jt(t){const e=S.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let n;e[3]!==s?(n=P("flex min-h-0 flex-1 flex-col gap-2",s),e[3]=s,e[4]=n):n=e[4];let o;return e[5]!==a||e[6]!==n?(o=l.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:n,...a}),e[5]=a,e[6]=n,e[7]=o):o=e[7],o}function vt(t){const e=S.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let n;e[3]!==s?(n=P("flex w-full min-w-0 list-none flex-col gap-1 group-data-[state=collapsed]/sidebar:items-center",s),e[3]=s,e[4]=n):n=e[4];let o;return e[5]!==a||e[6]!==n?(o=l.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:n,...a}),e[5]=a,e[6]=n,e[7]=o):o=e[7],o}function wt(t){const e=S.c(8);let s,a;e[0]!==t?({className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a):(s=e[1],a=e[2]);let n;e[3]!==s?(n=P("group/menu-item relative w-full list-none",s),e[3]=s,e[4]=n):n=e[4];let o;return e[5]!==a||e[6]!==n?(o=l.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:n,...a}),e[5]=a,e[6]=n,e[7]=o):o=e[7],o}const ke=Q("peer/menu-button flex w-full cursor-pointer items-center gap-2 overflow-hidden rounded-lg py-0 pr-0.5 pl-1.5 text-left text-sm outline-0 outline-sidebar-ring transition-[width,height,padding] duration-150 ease-out motion-reduce:transition-none focus-visible:outline-2 focus-visible:-outline-offset-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate group-data-[state=collapsed]/sidebar:[&>span:last-child]:hidden [&>svg]:size-4 [&>svg]:shrink-0 [&_svg:not([class*='text-'])]:text-muted-foreground hover:[&_svg:not([class*='text-'])]:text-sidebar-foreground",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background ring-1 ring-sidebar-border hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:ring-sidebar-accent"},size:{default:"group-data-[state=expanded]/sidebar:h-8 group-data-[state=expanded]/sidebar:px-2 group-data-[state=collapsed]/sidebar:p-0! group-data-[state=collapsed]/sidebar:mx-auto group-data-[state=collapsed]/sidebar:justify-center text-sm group-data-[state=collapsed]/sidebar:size-8! group-data-[state=collapsed]/sidebar:rounded-full",sm:"h-7 text-xs",lg:"h-12 text-sm p-0!"}},defaultVariants:{variant:"default",size:"default"}});function St(t){const e=S.c(28);let s,a,n,o,c,i,r;e[0]!==t?({asChild:n,isActive:o,variant:c,size:i,tooltip:r,className:s,...a}=t,e[0]=t,e[1]=s,e[2]=a,e[3]=n,e[4]=o,e[5]=c,e[6]=i,e[7]=r):(s=e[1],a=e[2],n=e[3],o=e[4],c=e[5],i=e[6],r=e[7]);const d=n===void 0?!1:n,p=o===void 0?!1:o,f=c===void 0?"default":c,u=i===void 0?"default":i,m=d?Y:"button",{isMobile:b}=E();let g;e[8]!==s||e[9]!==u||e[10]!==f?(g=P(ke({variant:f,size:u}),s),e[8]=s,e[9]=u,e[10]=f,e[11]=g):g=e[11];let j;e[12]!==m||e[13]!==p||e[14]!==a||e[15]!==u||e[16]!==g?(j=l.jsx(m,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":u,"data-active":p,className:g,...a}),e[12]=m,e[13]=p,e[14]=a,e[15]=u,e[16]=g,e[17]=j):j=e[17];const h=j;if(!r)return h;if(typeof r=="string"){let w;e[18]!==r?(w={children:r},e[18]=r,e[19]=w):w=e[19],r=w}let x;e[20]!==h?(x=l.jsx(R,{asChild:!0,children:h}),e[20]=h,e[21]=x):x=e[21];let v;e[22]!==b||e[23]!==r?(v=l.jsx(D,{side:"right",align:"center",hidden:b,...r}),e[22]=b,e[23]=r,e[24]=v):v=e[24];let y;return e[25]!==x||e[26]!==v?(y=l.jsxs(H,{children:[x,v]}),e[25]=x,e[26]=v,e[27]=y):y=e[27],y}function Ke(t,e){const s=new Set(e);return s.size===0?t:t.filter(a=>s.has(a.connectionId))}function Le(t){const e=t.metadata?.ui;return Array.isArray(e?.pinnedViews)?e.pinnedViews.filter(s=>!!s&&typeof s=="object"&&typeof s.connectionId=="string"&&typeof s.toolName=="string"&&["undefined","string"].includes(typeof s.label)&&(s.icon==null||typeof s.icon=="string")):[]}const Ve=4;function ze(t,e){return t.app===e.app&&t.projectId===e.projectId}function yt(t,e,s=Ve){return[e,...t.filter(a=>!ze(a,e))].slice(0,s)}const Be=100;function K(t,e){return JSON.stringify([t,e])}function Nt(t,e,s=Be){return[e,...t.filter(a=>a!==e)].slice(0,s)}const M={reports:{labelKey:"projects.apps.reports",captionKey:"projects.apps.reportsCaption",Icon:me,to:_.reports,tone:"bg-chart-2/15 text-chart-2"},"site-editor":{labelKey:"projects.apps.siteEditor",captionKey:"projects.apps.siteEditorCaption",Icon:ue,to:_.siteEditor,tone:"bg-chart-1/15 text-chart-1"},assets:{labelKey:"projects.apps.assets",captionKey:"projects.apps.assetsCaption",Icon:he,to:_.assets,tone:"bg-chart-2/15 text-chart-2"},hosting:{labelKey:"projects.apps.hosting",captionKey:"projects.apps.hostingCaption",Icon:Z,to:_.hosting,tone:"bg-chart-3/15 text-chart-3"},e2e:{labelKey:"projects.apps.e2e",captionKey:"projects.apps.e2eCaption",Icon:de,to:_.e2e,tone:"bg-chart-4/15 text-chart-4"},analytics:{labelKey:"projects.apps.analytics",captionKey:"projects.apps.analyticsCaption",Icon:ce,to:_.analytics,tone:"bg-chart-5/15 text-chart-5"},cdn:{labelKey:"projects.apps.cdn",captionKey:"projects.apps.cdnCaption",Icon:le,to:_.monitor,tone:"bg-chart-2/15 text-chart-2"},automations:{labelKey:"projects.apps.automations",captionKey:"projects.apps.automationsCaption",Icon:be,to:_.automations,tone:"bg-chart-4/15 text-chart-4"},experiments:{labelKey:"projects.apps.experiments",captionKey:"projects.apps.experimentsCaption",Icon:re,to:_.experiments,tone:"bg-chart-1/15 text-chart-1"}},It=M,W=Object.keys(M);function J(t,e){const s=new Set(xe(ge(t.metadata),t.metadata?.sidebarViewsVersion));return W.filter(a=>s.has(a)&&(!e||!B(a)||e[a]))}function L(t){const e=S.c(17),{to:s,params:a,title:n,label:o,caption:c,face:i,onClick:r,order:d}=t;let p;e[0]!==d?(p=d===void 0?void 0:{order:d},e[0]=d,e[1]=p):p=e[1];let f;e[2]!==o?(f=l.jsx("span",{className:"line-clamp-2 break-words text-foreground text-xs font-medium",children:o}),e[2]=o,e[3]=f):f=e[3];let u;e[4]!==c?(u=c&&l.jsx("span",{className:"truncate text-muted-foreground text-xs",children:c}),e[4]=c,e[5]=u):u=e[5];let m;e[6]!==f||e[7]!==u?(m=l.jsxs("span",{className:"flex w-full flex-col",children:[f,u]}),e[6]=f,e[7]=u,e[8]=m):m=e[8];let b;return e[9]!==i||e[10]!==r||e[11]!==a||e[12]!==p||e[13]!==m||e[14]!==n||e[15]!==s?(b=l.jsxs(ee,{to:s,params:a,onClick:r,title:n,style:p,className:"group flex shrink-0 flex-col items-center gap-2.5 rounded-xl p-3 text-center transition-[background-color,transform] duration-150 ease-out hover:bg-accent/50 active:scale-[0.97]",children:[i,m]}),e[9]=i,e[10]=r,e[11]=a,e[12]=p,e[13]=m,e[14]=n,e[15]=s,e[16]=b):b=e[16],b}const V="size-14 justify-center rounded-2xl transition-transform group-hover:scale-105",De=new Set(["reports","site-editor"]);function q(t){const e=S.c(5);let s;e[0]!==t.project?(s=J(t.project).some(B),e[0]=t.project,e[1]=s):s=e[1];const a=s;let n;return e[2]!==t||e[3]!==a?(n=a?l.jsx(Re,{...t}):l.jsx(U,{...t,native:null}),e[2]=t,e[3]=a,e[4]=n):n=e[4],n}function Re(t){const e=S.c(3),s=je(t.project);let a;return e[0]!==s.presence||e[1]!==t?(a=l.jsx(U,{...t,native:s.presence}),e[0]=s.presence,e[1]=t,e[2]=a):a=e[2],a}function U(t){const e=S.c(22),{project:s,orgSlug:a,showProject:n,rank:o,native:c}=t,i=O();let r,d;if(e[0]!==c||e[1]!==a||e[2]!==s||e[3]!==o||e[4]!==n||e[5]!==i){const f=we(s.metadata),u=J(s,c??void 0).filter(h=>(h!=="site-editor"&&h!=="experiments"||f)&&!(n&&De.has(h))),m=Ke(Le(s),(s.connections??[]).map(We)).filter(Fe),b=n?s.title:void 0;let g;e[8]!==b||e[9]!==a||e[10]!==s.id||e[11]!==o||e[12]!==i?(g=h=>{const x=M[h];return l.jsx(L,{to:x.to,params:{org:a,agentId:s.id},onClick:()=>z("project_app_launched",{app:h}),title:i(x.captionKey),label:i(x.labelKey),caption:b,order:o?.(K(s.id,h)),face:l.jsx("span",{className:P(V,"flex items-center",x.tone),children:l.jsx(x.Icon,{size:24})})},h)},e[8]=b,e[9]=a,e[10]=s.id,e[11]=o,e[12]=i,e[13]=g):g=e[13],r=u.map(g);let j;e[14]!==b||e[15]!==a||e[16]!==s.id||e[17]!==o?(j=h=>{const x=h.label||h.toolName;return l.jsx(L,{to:_.app,params:{org:a,agentId:s.id,connectionId:h.connectionId,toolName:h.toolName},onClick:He,label:x,caption:b,order:o?.(K(s.id,`app:${h.connectionId}:${h.toolName}`)),face:l.jsx(pe,{icon:h.icon,name:x,size:"md",className:V})},`${h.connectionId}:${h.toolName}`)},e[14]=b,e[15]=a,e[16]=s.id,e[17]=o,e[18]=j):j=e[18],d=m.map(j),e[0]=c,e[1]=a,e[2]=s,e[3]=o,e[4]=n,e[5]=i,e[6]=r,e[7]=d}else r=e[6],d=e[7];let p;return e[19]!==r||e[20]!==d?(p=l.jsxs(l.Fragment,{children:[r,d]}),e[19]=r,e[20]=d,e[21]=p):p=e[21],p}function He(){return z("project_app_launched",{app:"pinned"})}function Fe(t){return t.toolName!=="fetch_assets"}function We(t){return t.connection_id}function Je(){const t=S.c(4);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={overflows:!1,height:null},t[0]=e):e=t[0];const[s,a]=C.useState(e);let n;t[1]===Symbol.for("react.memo_cache_sentinel")?(n=i=>{if(!i)return;const r=()=>{const f=[...i.children];if(f.length===0)return;const u=Math.min(...f.map(Ue)),m=f.filter(j=>j.offsetTop===u),b=m.length<f.length,g=Math.max(...m.map(qe));a(j=>j.overflows===b&&j.height===g?j:{overflows:b,height:g})};r();const d=new ResizeObserver(r);d.observe(i);const p=new MutationObserver(r);return p.observe(i,{childList:!0}),()=>{d.disconnect(),p.disconnect()}},t[1]=n):n=t[1];const o=n;let c;return t[2]!==s?(c=[s,o],t[2]=s,t[3]=c):c=t[3],c}function qe(t){return t.offsetHeight}function Ue(t){return t.offsetTop}function G(t){const e=S.c(32),{children:s,oneLine:a}=t,n=O(),[o,c]=C.useState(!1),[i,r]=Je(),d=a&&!o;let p;e[0]!==n?(p=n("projects.apps.heading"),e[0]=n,e[1]=p):p=e[1];const f=p;let u;e[2]!==o||e[3]!==i.overflows||e[4]!==n?(u=(i.overflows||o)&&l.jsx("button",{type:"button",className:"text-xs text-muted-foreground hover:text-foreground hover:underline",onClick:()=>c(Ge),children:n(o?"projects.apps.showLess":"projects.apps.seeAll")}),e[2]=o,e[3]=i.overflows,e[4]=n,e[5]=u):u=e[5];const m=u,b=a?r:void 0,g=a?"-mx-3 grid grid-cols-[repeat(auto-fill,minmax(7rem,1fr))] gap-x-2 gap-y-4":"flex flex-wrap gap-4 *:w-28",j=d&&"overflow-hidden";let h;e[6]!==g||e[7]!==j?(h=P(g,"min-w-0",j),e[6]=g,e[7]=j,e[8]=h):h=e[8];let x;e[9]!==d||e[10]!==i.height?(x=d&&i.height!==null?{maxHeight:i.height}:void 0,e[9]=d,e[10]=i.height,e[11]=x):x=e[11];let v;e[12]!==s||e[13]!==b||e[14]!==h||e[15]!==x?(v=l.jsx("div",{ref:b,className:h,style:x,children:s}),e[12]=s,e[13]=b,e[14]=h,e[15]=x,e[16]=v):v=e[16];const y=v;if(a){let I;e[17]!==f?(I=l.jsx("h2",{className:"text-[0.9rem] font-medium tracking-tight text-foreground",children:f}),e[17]=f,e[18]=I):I=e[18];let T;e[19]!==m||e[20]!==I?(T=l.jsxs("div",{className:"flex h-12 items-center justify-between gap-3 border-b border-border/70 px-5",children:[I,m]}),e[19]=m,e[20]=I,e[21]=T):T=e[21];let $;e[22]!==y?($=l.jsx("div",{className:"px-5 py-3",children:y}),e[22]=y,e[23]=$):$=e[23];let A;return e[24]!==T||e[25]!==$?(A=l.jsxs("section",{className:"hidden flex-col overflow-hidden rounded-2xl bg-card card-shadow has-[a]:flex",children:[T,$]}),e[24]=T,e[25]=$,e[26]=A):A=e[26],A}let w;e[27]!==f?(w=l.jsx("h2",{className:"pl-3 text-muted-foreground text-sm font-medium",children:f}),e[27]=f,e[28]=w):w=e[28];let N;return e[29]!==y||e[30]!==w?(N=l.jsxs("section",{className:"hidden flex-col gap-3 has-[a]:flex",children:[w,y]}),e[29]=y,e[30]=w,e[31]=N):N=e[31],N}function Ge(t){return!t}function Tt(t){const e=S.c(3),{project:s,orgSlug:a}=t;let n;return e[0]!==a||e[1]!==s?(n=l.jsx(G,{children:l.jsx(q,{project:s,orgSlug:a})}),e[0]=a,e[1]=s,e[2]=n):n=e[2],n}function $t(t){const e=S.c(14),{projects:s,orgSlug:a,opens:n}=t;let o;e[0]!==n?(o=new Map(n.map(Xe)),e[0]=n,e[1]=o):o=e[1];const c=o;let i;e[2]!==n.length||e[3]!==c?(i=f=>c.get(f)??n.length,e[2]=n.length,e[3]=c,e[4]=i):i=e[4];const r=i;let d;if(e[5]!==a||e[6]!==s||e[7]!==r){let f;e[9]!==a||e[10]!==r?(f=u=>l.jsx(q,{project:u,orgSlug:a,showProject:!0,rank:r},u.id),e[9]=a,e[10]=r,e[11]=f):f=e[11],d=s.map(f),e[5]=a,e[6]=s,e[7]=r,e[8]=d}else d=e[8];let p;return e[12]!==d?(p=l.jsx(G,{oneLine:!0,children:d}),e[12]=d,e[13]=p):p=e[13],p}function Xe(t,e){return[t,e]}function Pt(){const t=S.c(3),e=te();let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s={select:Ye},t[0]=s):s=t[0];const a=se(s);if(!e||!a)return!1;let n;return t[1]!==a?(n=a==="app"||W.includes(a),t[1]=a,t[2]=n):n=t[2],n}function Ye(t){const{staticData:e}=t.matches.findLast(Qe)??{};return e?.siteEditorView?"site-editor":e?.mainView}function Qe(t){return t.staticData.mainView}function Ze(){const t=S.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org/settings",shouldThrow:!1},t[0]=e):e=t[0],!!ae(e)}const k=C.createContext(null);function _t(t){const e=S.c(5),{children:s}=t,[a,n]=C.useState(null);let o;e[0]!==a?(o={target:a,setTarget:n},e[0]=a,e[1]=o):o=e[1];let c;return e[2]!==s||e[3]!==o?(c=l.jsx(k,{value:o,children:s}),e[2]=s,e[3]=o,e[4]=c):c=e[4],c}function et(){const t=C.use(k);if(!t)throw new Error("Sidebar thread controls require a Layout");return t}function X(t){const e=S.c(17),{open:s,onToggle:a}=t,n=O(),{isMobile:o,setOpenMobile:c}=E(),i=s?"page.closeThread":"page.openThread";let r;e[0]!==n||e[1]!==i?(r=n(i),e[0]=n,e[1]=i,e[2]=r):r=e[2];const d=r;let p;e[3]!==o||e[4]!==a||e[5]!==c?(p=()=>{a(),o&&c(!1)},e[3]=o,e[4]=a,e[5]=c,e[6]=p):p=e[6];let f;e[7]===Symbol.for("react.memo_cache_sentinel")?(f=l.jsx(fe,{size:16}),e[7]=f):f=e[7];let u;e[8]!==d||e[9]!==s||e[10]!==p?(u=l.jsx(R,{asChild:!0,children:l.jsx(_e,{"aria-label":d,"aria-pressed":s,active:s,className:"size-7 shrink-0 group-data-[state=collapsed]/sidebar:mx-auto group-data-[state=collapsed]/sidebar:size-8",onClick:p,children:f})}),e[8]=d,e[9]=s,e[10]=p,e[11]=u):u=e[11];let m;e[12]!==d?(m=l.jsx(D,{side:"right",children:d}),e[12]=d,e[13]=m):m=e[13];let b;return e[14]!==u||e[15]!==m?(b=l.jsxs(H,{children:[u,m]}),e[14]=u,e[15]=m,e[16]=b):b=e[16],b}function Ct(t){const e=S.c(3),s=C.use(k);let a;return e[0]!==t||e[1]!==s?(a=s?.target?ne.createPortal(l.jsx(X,{...t}),s.target):null,e[0]=t,e[1]=s,e[2]=a):a=e[2],a}function At(){const t=S.c(11),{setTarget:e}=et(),s=Ze(),{isMobile:a}=E(),n=oe(),{org:o}=ie(),{openSidePanel:c}=Ce();let i;t[0]!==e?(i=l.jsx("div",{ref:e,className:"peer/thread-button contents empty:hidden"}),t[0]=e,t[1]=i):i=t[1];let r;t[2]!==s||t[3]!==a||t[4]!==n||t[5]!==c||t[6]!==o?(r=l.jsx("div",{className:"hidden peer-empty/thread-button:contents",children:l.jsx(X,{open:!1,onToggle:()=>{s?n({to:"/$org/home",params:{org:o.slug},search:{sidepanel:!0,mainpanel:!a}}):a?n({to:".",search:tt,replace:!0}):c()}})}),t[2]=s,t[3]=a,t[4]=n,t[5]=c,t[6]=o,t[7]=r):r=t[7];let d;return t[8]!==i||t[9]!==r?(d=l.jsxs(l.Fragment,{children:[i,r]}),t[8]=i,t[9]=r,t[10]=d):d=t[10],d}function tt(t){return{...t,...ve("chat")}}export{$t as O,It as P,mt as S,E as a,ht as b,_t as c,xt as d,St as e,vt as f,wt as g,gt as h,At as i,jt as j,Ke as k,bt as l,Ze as m,Nt as n,K as o,Le as p,yt as q,Tt as r,Ct as s,Pt as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{cN as zt,cO as Wt,cP as Jt,bO as Gt,cQ as Ht,av as ae,bN as Yt,au as de,aK as qt,cR as Kt,cS as Xt,cT as Qt,cU as ea,cV as ta,bL as aa,cW as ra,cX as na,bK as sa,bM as Te,t as he,r as W,c as we,X as oa,z as ia,j as la,V as ua}from"./index-
|
|
1
|
+
import{cN as zt,cO as Wt,cP as Jt,bO as Gt,cQ as Ht,av as ae,bN as Yt,au as de,aK as qt,cR as Kt,cS as Xt,cT as Qt,cU as ea,cV as ta,bL as aa,cW as ra,cX as na,bK as sa,bM as Te,t as he,r as W,c as we,X as oa,z as ia,j as la,V as ua}from"./index-CWzlOAQX.js";import{u as ca}from"./use-mcp-client-Ct2vdUoM.js";import{d as da,e as rt}from"./backoff-8mStPHYB.js";import{T as nt,a as st,b as ot}from"./task-board-ZOkVjFfb.js";import{s as pa}from"./slugify-CEUa2lfQ.js";const ce={STEP:"decopilot.step",FINISH:"decopilot.finish",THREAD_STATUS:"decopilot.thread.status"},it=Object.values(ce);var lt="vercel.ai.error",fa=Symbol.for(lt),Pe,Ne,x=class ut extends(Ne=Error,Pe=fa,Ne){constructor({name:e,message:a,cause:r}){super(a),this[Pe]=!0,this.name=e,this.cause=r}static isInstance(e){return ut.hasMarker(e,lt)}static hasMarker(e,a){const r=Symbol.for(a);return e!=null&&typeof e=="object"&&r in e&&typeof e[r]=="boolean"&&e[r]===!0}};function ct(t){return t==null?"unknown error":typeof t=="string"?t:t instanceof Error?t.toString():JSON.stringify(t)}var dt="AI_InvalidArgumentError",pt=`vercel.ai.error.${dt}`,ma=Symbol.for(pt),xe,De,ha=class extends(De=x,xe=ma,De){constructor({message:e,cause:a,argument:r}){super({name:dt,message:e,cause:a}),this[xe]=!0,this.argument=r}static isInstance(e){return x.hasMarker(e,pt)}},ft="AI_JSONParseError",mt=`vercel.ai.error.${ft}`,ga=Symbol.for(mt),je,Le,$e=class extends(Le=x,je=ga,Le){constructor({text:t,cause:e}){super({name:ft,message:`JSON parsing failed: Text: ${t}.
|
|
2
2
|
Error message: ${ct(e)}`,cause:e}),this[je]=!0,this.text=t}static isInstance(t){return x.hasMarker(t,mt)}},ht="AI_TypeValidationError",gt=`vercel.ai.error.${ht}`,va=Symbol.for(gt),Fe,ke,Z=class ge extends(ke=x,Fe=va,ke){constructor({value:e,cause:a,context:r}){let n="Type validation failed";if(r?.field&&(n+=` for ${r.field}`),r?.entityName||r?.entityId){n+=" (";const i=[];r.entityName&&i.push(r.entityName),r.entityId&&i.push(`id: "${r.entityId}"`),n+=i.join(", "),n+=")"}super({name:ht,message:`${n}: Value: ${JSON.stringify(e)}.
|
|
3
3
|
Error message: ${ct(a)}`,cause:a}),this[Fe]=!0,this.value=e,this.context=r}static isInstance(e){return x.hasMarker(e,gt)}static wrap({value:e,cause:a,context:r}){var n,i,l;return ge.isInstance(a)&&a.value===e&&((n=a.context)==null?void 0:n.field)===r?.field&&((i=a.context)==null?void 0:i.entityName)===r?.entityName&&((l=a.context)==null?void 0:l.entityId)===r?.entityId?a:new ge({value:e,cause:a,context:r})}};new TextDecoder;var D=({prefix:t,size:e=16,alphabet:a="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",separator:r="-"}={})=>{const n=()=>{const i=a.length,l=new Array(e);for(let o=0;o<e;o++)l[o]=a[Math.random()*i|0];return l.join("")};if(t==null)return n;if(a.includes(r))throw new ha({argument:"separator",message:`The separator "${r}" must not be part of the alphabet "${a}".`});return()=>`${t}${r}${n()}`};D();function ya(t){var e,a;return(a=(e=globalThis.Buffer)==null?void 0:e.isBuffer(t))!=null?a:!1}var ba=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/,Sa=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function Ue(t){const e=JSON.parse(t);return e===null||typeof e!="object"||ba.test(t)===!1&&Sa.test(t)===!1?e:Ea(e)}function Ea(t){let e=[t];for(;e.length;){const a=e;e=[];for(const r of a){if(Object.prototype.hasOwnProperty.call(r,"__proto__"))throw new SyntaxError("Object contains forbidden prototype property");if(Object.prototype.hasOwnProperty.call(r,"constructor")&&r.constructor!==null&&typeof r.constructor=="object"&&Object.prototype.hasOwnProperty.call(r.constructor,"prototype"))throw new SyntaxError("Object contains forbidden prototype property");for(const n in r){const i=r[n];i&&typeof i=="object"&&e.push(i)}}}return t}function _a(t){const{stackTraceLimit:e}=Error;try{Error.stackTraceLimit=0}catch{return Ue(t)}try{return Ue(t)}finally{Error.stackTraceLimit=e}}function Ae(t){if(t.type==="object"||Array.isArray(t.type)&&t.type.includes("object")){const{additionalProperties:a}=t;t.additionalProperties=a!=null&&typeof a!="boolean"?B(a):!1;const{properties:r}=t;if(r!=null)for(const n of Object.keys(r))r[n]=B(r[n])}t.items!=null&&(t.items=Array.isArray(t.items)?t.items.map(B):B(t.items)),t.anyOf!=null&&(t.anyOf=t.anyOf.map(B)),t.allOf!=null&&(t.allOf=t.allOf.map(B)),t.oneOf!=null&&(t.oneOf=t.oneOf.map(B));const{definitions:e}=t;if(e!=null)for(const a of Object.keys(e))e[a]=B(e[a]);return t}function B(t){return typeof t=="boolean"?t:Ae(t)}var Ia=Symbol("Let zodToJsonSchema decide on which parser to use"),Be={name:void 0,$refStrategy:"root",basePath:["#"],effectStrategy:"input",pipeStrategy:"all",dateStrategy:"format:date-time",mapStrategy:"entries",removeAdditionalStrategy:"passthrough",allowedAdditionalProperties:!0,rejectedAdditionalProperties:!1,definitionPath:"definitions",strictUnions:!1,definitions:{},errorMessages:!1,patternStrategy:"escape",applyRegexFlags:!1,emailStrategy:"format:email",base64Strategy:"contentEncoding:base64",nameStrategy:"ref"},Ta=t=>typeof t=="string"?{...Be,name:t}:{...Be,...t};function N(){return{}}function wa(t,e){var a,r,n;const i={type:"array"};return(a=t.type)!=null&&a._def&&((n=(r=t.type)==null?void 0:r._def)==null?void 0:n.typeName)!=="ZodAny"&&(i.items=S(t.type._def,{...e,currentPath:[...e.currentPath,"items"]})),t.minLength&&(i.minItems=t.minLength.value),t.maxLength&&(i.maxItems=t.maxLength.value),t.exactLength&&(i.minItems=t.exactLength.value,i.maxItems=t.exactLength.value),i}function Aa(t){const e={type:"integer",format:"int64"};if(!t.checks)return e;for(const a of t.checks)switch(a.kind){case"min":a.inclusive?e.minimum=a.value:e.exclusiveMinimum=a.value;break;case"max":a.inclusive?e.maximum=a.value:e.exclusiveMaximum=a.value;break;case"multipleOf":e.multipleOf=a.value;break}return e}function Oa(){return{type:"boolean"}}function vt(t,e){return S(t.type._def,e)}var Ma=(t,e)=>S(t.innerType._def,e);function yt(t,e,a){const r=a??e.dateStrategy;if(Array.isArray(r))return{anyOf:r.map(n=>yt(t,e,n))};switch(r){case"string":case"format:date-time":return{type:"string",format:"date-time"};case"format:date":return{type:"string",format:"date"};case"integer":return Ra(t)}}var Ra=t=>{const e={type:"integer",format:"unix-time"};for(const a of t.checks)switch(a.kind){case"min":e.minimum=a.value;break;case"max":e.maximum=a.value;break}return e};function Ca(t,e){return{...S(t.innerType._def,e),default:t.defaultValue()}}function Pa(t,e){return e.effectStrategy==="input"?S(t.schema._def,e):N()}function Na(t){return{type:"string",enum:Array.from(t.values)}}var xa=t=>"type"in t&&t.type==="string"?!1:"allOf"in t;function Da(t,e){const a=[S(t.left._def,{...e,currentPath:[...e.currentPath,"allOf","0"]}),S(t.right._def,{...e,currentPath:[...e.currentPath,"allOf","1"]})].filter(n=>!!n),r=[];return a.forEach(n=>{if(xa(n))r.push(...n.allOf);else{let i=n;if("additionalProperties"in n&&n.additionalProperties===!1){const{additionalProperties:l,...o}=n;i=o}r.push(i)}}),r.length?{allOf:r}:void 0}function ja(t){const e=typeof t.value;return e!=="bigint"&&e!=="number"&&e!=="boolean"&&e!=="string"?{type:Array.isArray(t.value)?"array":"object"}:{type:e==="bigint"?"integer":e,const:t.value}}var fe=void 0,j={cuid:/^[cC][^\s-]{8,}$/,cuid2:/^[0-9a-z]+$/,ulid:/^[0-9A-HJKMNP-TV-Z]{26}$/,email:/^(?!\.)(?!.*\.\.)([a-zA-Z0-9_'+\-\.]*)[a-zA-Z0-9_+-]@([a-zA-Z0-9][a-zA-Z0-9\-]*\.)+[a-zA-Z]{2,}$/,emoji:()=>(fe===void 0&&(fe=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),fe),uuid:/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/,ipv4:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ipv4Cidr:/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,ipv6:/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,ipv6Cidr:/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64:/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,base64url:/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,nanoid:/^[a-zA-Z0-9_-]{21}$/,jwt:/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/};function bt(t,e){const a={type:"string"};if(t.checks)for(const r of t.checks)switch(r.kind){case"min":a.minLength=typeof a.minLength=="number"?Math.max(a.minLength,r.value):r.value;break;case"max":a.maxLength=typeof a.maxLength=="number"?Math.min(a.maxLength,r.value):r.value;break;case"email":switch(e.emailStrategy){case"format:email":L(a,"email",r.message,e);break;case"format:idn-email":L(a,"idn-email",r.message,e);break;case"pattern:zod":P(a,j.email,r.message,e);break}break;case"url":L(a,"uri",r.message,e);break;case"uuid":L(a,"uuid",r.message,e);break;case"regex":P(a,r.regex,r.message,e);break;case"cuid":P(a,j.cuid,r.message,e);break;case"cuid2":P(a,j.cuid2,r.message,e);break;case"startsWith":P(a,RegExp(`^${me(r.value,e)}`),r.message,e);break;case"endsWith":P(a,RegExp(`${me(r.value,e)}$`),r.message,e);break;case"datetime":L(a,"date-time",r.message,e);break;case"date":L(a,"date",r.message,e);break;case"time":L(a,"time",r.message,e);break;case"duration":L(a,"duration",r.message,e);break;case"length":a.minLength=typeof a.minLength=="number"?Math.max(a.minLength,r.value):r.value,a.maxLength=typeof a.maxLength=="number"?Math.min(a.maxLength,r.value):r.value;break;case"includes":{P(a,RegExp(me(r.value,e)),r.message,e);break}case"ip":{r.version!=="v6"&&L(a,"ipv4",r.message,e),r.version!=="v4"&&L(a,"ipv6",r.message,e);break}case"base64url":P(a,j.base64url,r.message,e);break;case"jwt":P(a,j.jwt,r.message,e);break;case"cidr":{r.version!=="v6"&&P(a,j.ipv4Cidr,r.message,e),r.version!=="v4"&&P(a,j.ipv6Cidr,r.message,e);break}case"emoji":P(a,j.emoji(),r.message,e);break;case"ulid":{P(a,j.ulid,r.message,e);break}case"base64":{switch(e.base64Strategy){case"format:binary":{L(a,"binary",r.message,e);break}case"contentEncoding:base64":{a.contentEncoding="base64";break}case"pattern:zod":{P(a,j.base64,r.message,e);break}}break}case"nanoid":P(a,j.nanoid,r.message,e)}return a}function me(t,e){return e.patternStrategy==="escape"?$a(t):t}var La=new Set("ABCDEFGHIJKLMNOPQRSTUVXYZabcdefghijklmnopqrstuvxyz0123456789");function $a(t){let e="";for(let a=0;a<t.length;a++)La.has(t[a])||(e+="\\"),e+=t[a];return e}function L(t,e,a,r){var n;t.format||(n=t.anyOf)!=null&&n.some(i=>i.format)?(t.anyOf||(t.anyOf=[]),t.format&&(t.anyOf.push({format:t.format}),delete t.format),t.anyOf.push({format:e,...a&&r.errorMessages&&{errorMessage:{format:a}}})):t.format=e}function P(t,e,a,r){var n;t.pattern||(n=t.allOf)!=null&&n.some(i=>i.pattern)?(t.allOf||(t.allOf=[]),t.pattern&&(t.allOf.push({pattern:t.pattern}),delete t.pattern),t.allOf.push({pattern:Ze(e,r),...a&&r.errorMessages&&{errorMessage:{pattern:a}}})):t.pattern=Ze(e,r)}function Ze(t,e){var a;if(!e.applyRegexFlags||!t.flags)return t.source;const r={i:t.flags.includes("i"),m:t.flags.includes("m"),s:t.flags.includes("s")},n=r.i?t.source.toLowerCase():t.source;let i="",l=!1,o=!1,p=!1;for(let c=0;c<n.length;c++){if(l){i+=n[c],l=!1;continue}if(r.i){if(o){if(n[c].match(/[a-z]/)){p?(i+=n[c],i+=`${n[c-2]}-${n[c]}`.toUpperCase(),p=!1):n[c+1]==="-"&&((a=n[c+2])!=null&&a.match(/[a-z]/))?(i+=n[c],p=!0):i+=`${n[c]}${n[c].toUpperCase()}`;continue}}else if(n[c].match(/[a-z]/)){i+=`[${n[c]}${n[c].toUpperCase()}]`;continue}}if(r.m){if(n[c]==="^"){i+=`(^|(?<=[\r
|
|
4
4
|
]))`;continue}else if(n[c]==="$"){i+=`($|(?=[\r
|