decocms 4.619.2 → 4.619.3
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-BfvLVKvB.js → AlertCircle-DGhmQiH3.js} +1 -1
- package/dist/client/assets/{AreaChart-CacKnj69.js → AreaChart-DKWsvY6W.js} +1 -1
- package/dist/client/assets/{ArrowLeft-C2FykyF6.js → ArrowLeft-FP_83xMo.js} +1 -1
- package/dist/client/assets/{ArrowRight-Bik4c52x.js → ArrowRight-c12L_DBI.js} +1 -1
- package/dist/client/assets/{ArrowUp--UwxK92n.js → ArrowUp-B0lRrz50.js} +1 -1
- package/dist/client/assets/{BookOpen01-BilNTWSK.js → BookOpen01-CGmiFh6c.js} +1 -1
- package/dist/client/assets/{CartesianChart-CPVWB37x.js → CartesianChart-DwY6QAby.js} +1 -1
- package/dist/client/assets/{CategoricalChart-Bey925zy.js → CategoricalChart-CvWzaQub.js} +1 -1
- package/dist/client/assets/{CheckCircle-BnVx8J4a.js → CheckCircle-DQx8J3sX.js} +1 -1
- package/dist/client/assets/{ChevronDown-C0Ct97Nx.js → ChevronDown-C2op7Ztq.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-BCZnYrGE.js → ChevronSelectorVertical-B8fgmPce.js} +1 -1
- package/dist/client/assets/{ChevronUp-DAD1S6Ws.js → ChevronUp-C6GRdhwz.js} +1 -1
- package/dist/client/assets/{CreditCard01-B4XvVhYi.js → CreditCard01-BrYzNGv7.js} +1 -1
- package/dist/client/assets/{Eye-BzGUeBDl.js → Eye-D1n0U2nr.js} +1 -1
- package/dist/client/assets/{File02-DdvQ67zT.js → File02-lnmDsOIM.js} +1 -1
- package/dist/client/assets/{Fingerprint04-BXyUriT5.js → Fingerprint04-DWY8-Yis.js} +1 -1
- package/dist/client/assets/{Globe04-Do5tHxnO.js → Globe04-i-SMP1da.js} +1 -1
- package/dist/client/assets/{Image01-DizkuS2Y.js → Image01-D0d8t9Nf.js} +1 -1
- package/dist/client/assets/{Key01-c2N0ukl0.js → Key01-BNFXrDTG.js} +1 -1
- package/dist/client/assets/{LayoutLeft-D3Tg0rwg.js → LayoutLeft-CzGwliNd.js} +1 -1
- package/dist/client/assets/{LinkBroken01-Bxo-dHHQ.js → LinkBroken01-C-ZJkx1-.js} +1 -1
- package/dist/client/assets/{MessageCircle01-BKKrFlY2.js → MessageCircle01-CmMj6zOJ.js} +1 -1
- package/dist/client/assets/{Minus-CKYLVtbX.js → Minus-C12vvCq7.js} +1 -1
- package/dist/client/assets/{Monitor01-DmoFUfkv.js → Monitor01-DRn7cBTS.js} +1 -1
- package/dist/client/assets/{Play-DC2460rh.js → Play-LuTO-O0l.js} +1 -1
- package/dist/client/assets/{Plus-CGf9Pj2S.js → Plus-lVBJlI-r.js} +1 -1
- package/dist/client/assets/{ReferenceLine-BDZ-RqhX.js → ReferenceLine-1BlSF-eI.js} +1 -1
- package/dist/client/assets/{SearchMd-CLDr5Ga-.js → SearchMd-DlyifTmg.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-BedAVSy9.js → ShoppingBag01-Cqxv0G3l.js} +1 -1
- package/dist/client/assets/{Sun-CgSgDWkf.js → Sun-CHBjoRg5.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-DS2J6EzA.js → SwitchHorizontal01-B9k8zywr.js} +1 -1
- package/dist/client/assets/{Tool01-BXUPQGPn.js → Tool01-BCxvp4xD.js} +1 -1
- package/dist/client/assets/{Tooltip-NtOdkuFA.js → Tooltip-vc07534F.js} +1 -1
- package/dist/client/assets/{Trash01-gZBIPYql.js → Trash01-Tyi0X0KA.js} +1 -1
- package/dist/client/assets/{Upload01-1RPPAA6H.js → Upload01-BE_2AiDk.js} +1 -1
- package/dist/client/assets/{UserCheck01-CiFQCaAM.js → UserCheck01-BzJrArBA.js} +1 -1
- package/dist/client/assets/{UserSquare-mr61dmtZ.js → UserSquare-Csaj5_OE.js} +1 -1
- package/dist/client/assets/{Users01-B7MraNtO.js → Users01-B0nNOy2m.js} +1 -1
- package/dist/client/assets/{XClose-1Ewz688M.js → XClose-BCBhmnTq.js} +1 -1
- package/dist/client/assets/{Zap-Dx6qH61F.js → Zap-DyZkYnvp.js} +1 -1
- package/dist/client/assets/{access-gate-B153xARW.js → access-gate-CAG-WX8M.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-ChwfbObJ.js → add-connection-dialog-B3Q9C4ta.js} +1 -1
- package/dist/client/assets/agent-app-BRcFq3N_.js +1 -0
- package/dist/client/assets/{agent-assets-cXy9keBY.js → agent-assets-a3MaKVet.js} +1 -1
- package/dist/client/assets/{agent-automation-Dqlnvd_M.js → agent-automation-D6Kp8N6n.js} +1 -1
- package/dist/client/assets/{agent-automations-Cm1pnl4T.js → agent-automations-uOc0h2-3.js} +1 -1
- package/dist/client/assets/{agent-blog-DuLOE8My.js → agent-blog-Q0x5W9bL.js} +2 -2
- package/dist/client/assets/{agent-blog-post-Da61in_-.js → agent-blog-post-GPtAup4R.js} +2 -2
- package/dist/client/assets/{agent-business-case-BPnUDMKn.js → agent-business-case-BVl0QdPX.js} +1 -1
- package/dist/client/assets/{agent-calendar-BDlE1v-f.js → agent-calendar-BgUHNM1x.js} +1 -1
- package/dist/client/assets/{agent-capabilities-BOJn7BYH.js → agent-capabilities-CwQVSwUn.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-DOitgxUO.js → agent-connect-sources-DFSqT3hY.js} +1 -1
- package/dist/client/assets/agent-deck-DFZMd15r.js +1 -0
- package/dist/client/assets/{agent-e2e-DxdSZIt9.js → agent-e2e-C6bQi5ly.js} +1 -1
- package/dist/client/assets/agent-experiments-BwmqLj-j.js +1 -0
- package/dist/client/assets/agent-file-DrGdjV8i.js +1 -0
- package/dist/client/assets/{agent-hosting-C4g3f0Eq.js → agent-hosting-CitTgqFF.js} +1 -1
- package/dist/client/assets/{agent-icon-DkxgdTq2.js → agent-icon-BeQK1LIp.js} +1 -1
- package/dist/client/assets/agent-library-file-CmPv7Krc.js +1 -0
- package/dist/client/assets/agent-library-ql5PM1_p.js +1 -0
- package/dist/client/assets/agent-overview-DTDzoW5N.js +1 -0
- package/dist/client/assets/{agent-releases-kG80L9nS.js → agent-releases-Dh5QVSRR.js} +1 -1
- package/dist/client/assets/agent-settings-8YJX0S3n.js +1 -0
- package/dist/client/assets/agent-site-editor-code-BQI2D43u.js +2 -0
- package/dist/client/assets/agent-site-editor-content-CDmctPHk.js +1 -0
- package/dist/client/assets/{agent-site-editor-BQevelAB.js → agent-site-editor-ieqFngGL.js} +1 -1
- package/dist/client/assets/agent-site-editor-preview-CKC5QFTH.js +1 -0
- package/dist/client/assets/agent-view-FUSo29uN.js +1 -0
- package/dist/client/assets/{agent-view-guard-DyNV2uvS.js → agent-view-guard-BsFLMhUD.js} +1 -1
- package/dist/client/assets/{ai-providers-Z5Ymha08.js → ai-providers-C8OUzIy0.js} +1 -1
- package/dist/client/assets/{alert-BoirvPvd.js → alert-qFpOptTR.js} +1 -1
- package/dist/client/assets/{analytics-sections-CeFYB7GM.js → analytics-sections-DY-sMeWR.js} +1 -1
- package/dist/client/assets/{api-keys-DTK_D28p.js → api-keys-BIZ19WbQ.js} +1 -1
- package/dist/client/assets/api-keys-BbCRE0dt.js +1 -0
- package/dist/client/assets/{app-editor-B-h8C24K.js → app-editor-DtEUS7gt.js} +1 -1
- package/dist/client/assets/{asset-utils-NrFtBM4B.js → asset-utils-kGLknUlk.js} +1 -1
- package/dist/client/assets/{auth-BQPga9FC.js → auth-D3aaR56V.js} +1 -1
- package/dist/client/assets/{auth-catchall-vKAvnavC.js → auth-catchall-DXHZSgRo.js} +1 -1
- package/dist/client/assets/{auth-entry-CnGuyFwz.js → auth-entry-teQchOi1.js} +1 -1
- package/dist/client/assets/{auth-split-layout-6G8zIlLd.js → auth-split-layout-DNwm7E6M.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-CsUmaASq.js → authenticate-and-persist-oauth-CfD2cssG.js} +1 -1
- package/dist/client/assets/{automation-list-row-CPXpACjP.js → automation-list-row-DWVzdhwb.js} +1 -1
- package/dist/client/assets/{automation-runs-K--YAEpY.js → automation-runs-Ctc1Vi83.js} +1 -1
- package/dist/client/assets/{automations-ByiY0A2n.js → automations-2Gnmtaih.js} +1 -1
- package/dist/client/assets/{badge-BOmoymVs.js → badge-D4t_0yop.js} +1 -1
- package/dist/client/assets/{block-document-Bm80ONSo.js → block-document-CrxZdpMf.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-BbiquexE.js → blocks-preview-workspace-context-DWu-3MoI.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-DVd6KFfg.js → blocks-tab-states-CBGKB5th.js} +1 -1
- package/dist/client/assets/{blog-preview-url-Bie_MUyb.js → blog-preview-url-C4jHo7Om.js} +1 -1
- package/dist/client/assets/{blog-schema-DyAwxR3Q.js → blog-schema-Diy1WhGr.js} +1 -1
- package/dist/client/assets/{blog-source-gate-C7Fp9Ydi.js → blog-source-gate-Zm7I_b_g.js} +1 -1
- package/dist/client/assets/{blog-view-gate--XSJIWb0.js → blog-view-gate-2cHU2UiQ.js} +1 -1
- package/dist/client/assets/{buckets-Ba5ha1MB.js → buckets-Bgoscg8b.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-DAEQp1Of.js → build-improve-prompt-doc-D5lS20WO.js} +1 -1
- package/dist/client/assets/{calendar-LCBbF8K6.js → calendar-DqJcyMVN.js} +1 -1
- package/dist/client/assets/{capability-load-error-DkyDm-Qy.js → capability-load-error-ntTl1fvk.js} +1 -1
- package/dist/client/assets/{category-editor-Drrnn8TR.js → category-editor-DoyoJKV_.js} +1 -1
- package/dist/client/assets/{category-tree-rzAhrdTe.js → category-tree-BCyFM0Ok.js} +1 -1
- package/dist/client/assets/{chart-HxiMOTyC.js → chart-BbYeI8N4.js} +1 -1
- package/dist/client/assets/{chat-context-DAm8BwnA.js → chat-context-MoYYfmsS.js} +1 -1
- package/dist/client/assets/{chat-draft-D8cO9Mtk.js → chat-draft-Gm7m0AHh.js} +1 -1
- package/dist/client/assets/{checkbox-CRIAj4CS.js → checkbox-BB8KVrhZ.js} +1 -1
- package/dist/client/assets/{choose-editor-Cg7Rd0C0.js → choose-editor-B2XjwftL.js} +1 -1
- package/dist/client/assets/{cli-auth-success-BUF1l_h8.js → cli-auth-success-DMaAArhS.js} +1 -1
- package/dist/client/assets/{cms-settings-editor-tAeFvR3K.js → cms-settings-editor-DtfLPSh_.js} +1 -1
- package/dist/client/assets/{cms-store-drafts-BwmsxIpi.js → cms-store-drafts-CwV6xthd.js} +1 -1
- package/dist/client/assets/{collapsible-DfyJlNR-.js → collapsible-CvOWSuY7.js} +1 -1
- package/dist/client/assets/{collection-detail-Cb0dYZqY.js → collection-detail-BxBiaeiJ.js} +1 -1
- package/dist/client/assets/{collection-display-button-Sx65Qx80.js → collection-display-button-Dzwm3ZFp.js} +1 -1
- package/dist/client/assets/{collection-search-DuVlDXds.js → collection-search-DqZnq1kz.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-B0-ZDHoV.js → collection-table-wrapper-D_jB2iSb.js} +1 -1
- package/dist/client/assets/{collection-tabs-C0TYwx7V.js → collection-tabs-CkIuyvEg.js} +1 -1
- package/dist/client/assets/{combobox-DcqjiInn.js → combobox-BTk2iFx5.js} +1 -1
- package/dist/client/assets/{command-xDoRr7Zi.js → command-gq8mLEwk.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-CGT-aWwJ.js → companion-mcps-section-CoNKZ9Qf.js} +1 -1
- package/dist/client/assets/{config-B5Mj-sZc.js → config-CKam44yj.js} +1 -1
- package/dist/client/assets/{connect-K8BobJ6-.js → connect-BO9LGEER.js} +1 -1
- package/dist/client/assets/{connect-key-iWu2K7Gz.js → connect-key-CDyj_Wt6.js} +1 -1
- package/dist/client/assets/{connect-layout-BGmG1rYK.js → connect-layout-DkDpPrBE.js} +1 -1
- package/dist/client/assets/{connect-source-dialog-5I2WyqQe.js → connect-source-dialog-BNltPBvM.js} +1 -1
- package/dist/client/assets/{connection-CzC5snJW.js → connection-PdY1jdjN.js} +1 -1
- package/dist/client/assets/{connection-card-f8zuwf5b.js → connection-card-rF-q91cm.js} +1 -1
- package/dist/client/assets/{connection-detail-BhsLNEz7.js → connection-detail-C-csQnIc.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-CMSHjiwr.js → connection-form-helpers-BbSye8zz.js} +1 -1
- package/dist/client/assets/{connection-slug-9E_oEIYP.js → connection-slug-CLSeWQFu.js} +1 -1
- package/dist/client/assets/{connections-RA10ERA1.js → connections-n1FwsJcU.js} +1 -1
- package/dist/client/assets/{content-changes-CfE_3Uuw.js → content-changes-B7QLNPm9.js} +1 -1
- package/dist/client/assets/{content-tab-BchiISde.js → content-tab-CCuslwaK.js} +3 -3
- package/dist/client/assets/{context-Dp2ZLynP.js → context-YCyFfQO8.js} +1 -1
- package/dist/client/assets/{context-menu-B2bqvs6b.js → context-menu-CYKN_FLZ.js} +1 -1
- package/dist/client/assets/{context-shell-kSIHnyB7.js → context-shell-Cg3iDcvG.js} +3 -3
- package/dist/client/assets/{create-organization-dialog-Bwdfe3jr.js → create-organization-dialog-BGvuasWD.js} +1 -1
- package/dist/client/assets/{daily-pulse-D1AykLiu.js → daily-pulse-CemPpz9a.js} +1 -1
- package/dist/client/assets/{delete-copy-CYRbIZ6o.js → delete-copy-CKxy6ck-.js} +1 -1
- package/dist/client/assets/{device-hint-DA5TfyvY.js → device-hint-C_jFHzsP.js} +1 -1
- package/dist/client/assets/{discover-BZclHDEr.js → discover-m_-jSxcN.js} +1 -1
- package/dist/client/assets/{domain-settings-C1eNDu3I.js → domain-settings-CQt8yuzL.js} +1 -1
- package/dist/client/assets/{drawer-B6PI4TB_.js → drawer-DgvYa3k0.js} +1 -1
- package/dist/client/assets/{editor-Bys86V9H.js → editor-C2k7wzhY.js} +1 -1
- package/dist/client/assets/{editor-classes-B2dn3Q7Z.js → editor-classes-Ds44wzZG.js} +1 -1
- package/dist/client/assets/{empty-state-ucBYN1Td.js → empty-state-CAav-Xpz.js} +1 -1
- package/dist/client/assets/{empty-state-Djnlj7TD.js → empty-state-R8mrYCIa.js} +1 -1
- package/dist/client/assets/{experiments-tab-choice-DOhfmTbC.js → experiments-tab-choice-4aUPiLsm.js} +1 -1
- package/dist/client/assets/{extract-connection-data-XaoYXMhe.js → extract-connection-data-DJrQm_Aj.js} +1 -1
- package/dist/client/assets/{feature-gate-D6_KyMbI.js → feature-gate-CzNyzvDc.js} +1 -1
- package/dist/client/assets/{feature-paywall-d4w9UVCL.js → feature-paywall-CIskqUv5.js} +1 -1
- package/dist/client/assets/{file-explorer-C9r_oqbL.js → file-explorer-CFx-jGiv.js} +1 -1
- package/dist/client/assets/{file-preview-CzC2GYhX.js → file-preview-D23rhyCZ.js} +1 -1
- package/dist/client/assets/{file-share-button-CWXIrz_P.js → file-share-button-Cdg8mRxK.js} +1 -1
- package/dist/client/assets/{file-type-icon-pmgcN2v-.js → file-type-icon-CFo6D_mq.js} +1 -1
- package/dist/client/assets/{folder-icon-BAbwjyLb.js → folder-icon-DCPIgOII.js} +1 -1
- package/dist/client/assets/{form-DRVojTa5.js → form-lT2yclrj.js} +1 -1
- package/dist/client/assets/{frame-navigation-BJWrLMP3.js → frame-navigation-DDFtKbzS.js} +1 -1
- package/dist/client/assets/{gateway-client-DLXXp1N-.js → gateway-client-BjTndvcO.js} +1 -1
- package/dist/client/assets/{general-O9kwUJgc.js → general-C9WlB8qj.js} +1 -1
- package/dist/client/assets/{github-icon-qTVEZUTW.js → github-icon-CXz0klo1.js} +1 -1
- package/dist/client/assets/{held-block-view-CHgQbXgE.js → held-block-view-Jaxz4Y5b.js} +1 -1
- package/dist/client/assets/{home-C7GrJpP8.js → home-BXZC4jI0.js} +1 -1
- package/dist/client/assets/{home-overview-CVrZFZ4k.js → home-overview-feV5lz_7.js} +1 -1
- package/dist/client/assets/{hosted-reconcile-CJMYkQjT.js → hosted-reconcile-LANuriok.js} +1 -1
- package/dist/client/assets/{icon-button-BxdjX6Vq.js → icon-button-DnYO-W8b.js} +1 -1
- package/dist/client/assets/{index-Dt6n7L4_.js → index-2cNmpT6g.js} +1 -1
- package/dist/client/assets/{index-DZHxLm8N.js → index-B--QVBAJ.js} +1 -1
- package/dist/client/assets/{index-BRXaKePk.js → index-B4E0TU9S.js} +1 -1
- package/dist/client/assets/{index-C-ZMOKWO.js → index-BFdtW_Lt.js} +1 -1
- package/dist/client/assets/{index-D4S3xG-p.js → index-BKxKXWi8.js} +1 -1
- package/dist/client/assets/{index-BemfSVAQ.js → index-BdizT4sC.js} +1 -1
- package/dist/client/assets/{index-CBiOENMk.js → index-CBBEwfQu.js} +1 -1
- package/dist/client/assets/{index-ClPx5Ems.js → index-CC6YS-rB.js} +1 -1
- package/dist/client/assets/{index-JdNECPS1.js → index-CDemOiV4.js} +1 -1
- package/dist/client/assets/{index-DzqvkIWm.js → index-CIjrpBSD.js} +1 -1
- package/dist/client/assets/{index-3KPWvxje.js → index-CTKVsdNw.js} +3 -3
- package/dist/client/assets/{index-Cq6M6Waz.js → index-Cf6V_if2.js} +2 -2
- package/dist/client/assets/{index-BSCGTxJM.js → index-CfZknZT0.js} +1 -1
- package/dist/client/assets/{index-DRanp5tp.js → index-CpCzT9a1.js} +1 -1
- package/dist/client/assets/{index-B5wsqk6m.js → index-CrQFnFIn.js} +1 -1
- package/dist/client/assets/{index-DX5UYX3b.js → index-DjiY50Ig.js} +1 -1
- package/dist/client/assets/{index-BeQ9LAS2.js → index-YMgj8hIR.js} +1 -1
- package/dist/client/assets/{index-redirect-CVTWDMDK.js → index-redirect-CRqpPHp_.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-DDwzaksU.js → infiniteQueryObserver-DpQtHqSr.js} +1 -1
- package/dist/client/assets/{infra-billing-DzK0gTqk.js → infra-billing-B6OZsXvT.js} +1 -1
- package/dist/client/assets/{input-B-smXuT9.js → input-A0pROuXz.js} +3 -3
- package/dist/client/assets/{input-a9DSYTMG.js → input-DGwNGk5F.js} +1 -1
- package/dist/client/assets/{integration-icon-DRSyNBxT.js → integration-icon-CkDjbcLK.js} +1 -1
- package/dist/client/assets/{item-actions-vRTUw5XQ.js → item-actions-KIdbZTtB.js} +1 -1
- package/dist/client/assets/{jira-icon-Da3V93CT.js → jira-icon-BMYvV1_v.js} +1 -1
- package/dist/client/assets/{label-BCLmidyU.js → label-DQEXoY6T.js} +1 -1
- package/dist/client/assets/{layout-sOOpX-Mv.js → layout-iVR8y_67.js} +1 -1
- package/dist/client/assets/{legacy-admin-welcome-dialog-BVecyKGg.js → legacy-admin-welcome-dialog-DwPqDRJj.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-q0_aqrXZ.js → legacy-agents-deep-CAYjJgJ0.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-CsqmOSub.js → legacy-main-redirect-7oq1Xg-K.js} +1 -1
- package/dist/client/assets/library-CcUW4dD6.js +1 -0
- package/dist/client/assets/{library-tab-CS4DdZCs.js → library-tab-Cu5f_jPA.js} +1 -1
- package/dist/client/assets/{login-DaSvVFye.js → login-03pZYKr5.js} +1 -1
- package/dist/client/assets/{markdown-BTc7JQrk.js → markdown-CBsDAJwx.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-QJp5hwpP.js → mcp-app-renderer-GqMvWkA6.js} +1 -1
- package/dist/client/assets/{mcp-oauth-bZxRNian.js → mcp-oauth-JdceSX9b.js} +1 -1
- package/dist/client/assets/{mcp-oauth-Cgq_C9RS.js → mcp-oauth-n1oSp2-S.js} +1 -1
- package/dist/client/assets/{members-DLYdrY3E.js → members-CLfw7bse.js} +1 -1
- package/dist/client/assets/{memory-eIeu-jKi.js → memory-C2r2x0xw.js} +1 -1
- package/dist/client/assets/{mock-board-DpMZR4DN.js → mock-board-Dd8r2LEz.js} +3 -3
- package/dist/client/assets/{monaco-editor-FtA5uzsH.js → monaco-editor-BIu4Dvyb.js} +1 -1
- package/dist/client/assets/{monitoring-DOGcb1Ql.js → monitoring-CoMGNBw0.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-zo9fLVgC.js → monitoring-stats-row-D7PBO8sI.js} +1 -1
- package/dist/client/assets/{multi-select-CNPP6KiX.js → multi-select-CL-U4v6T.js} +1 -1
- package/dist/client/assets/{mustache-YyQS9gls.js → mustache-jt6LkG70.js} +1 -1
- package/dist/client/assets/{named-rule-step-D1aSwbmR.js → named-rule-step-DUY-1xO9.js} +1 -1
- package/dist/client/assets/{named-rule-view-BScEL8a6.js → named-rule-view-BPYxwRaw.js} +1 -1
- package/dist/client/assets/{new-project-dialog-tyX6xQzx.js → new-project-dialog-DGVfOfmA.js} +1 -1
- package/dist/client/assets/{new-project-store-BZsmuGAK.js → new-project-store-DAT5Euei.js} +1 -1
- package/dist/client/assets/{oauth-callback-CXc9MvgY.js → oauth-callback-Bn-MRrdp.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-ZvztIJeo.js → oauth-callback-ai-provider-CApiV1K6.js} +1 -1
- package/dist/client/assets/{oauth-consent-D2jR9HCa.js → oauth-consent-D9k2Pclp.js} +1 -1
- package/dist/client/assets/{onboarding-Ck6tHsf3.js → onboarding-CuJzAlBZ.js} +1 -1
- package/dist/client/assets/{openai-conversation-DSX7q-zS.js → openai-conversation-DZS79nav.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-BXO1Ni2L.js → optimistic-project-sidebar-views-DrPHYnmI.js} +1 -1
- package/dist/client/assets/{order-monitor-day-Cn9WRoo3.js → order-monitor-day-BZweP0_g.js} +1 -1
- package/dist/client/assets/{organization-choice-BUvChqnR.js → organization-choice-Co4VhRJ8.js} +1 -1
- package/dist/client/assets/{orgs-DJSYK6g4.js → orgs-DQU9n7nk.js} +1 -1
- package/dist/client/assets/{own-accounts-section-4nR4Cd1W.js → own-accounts-section-CuZ-eqUG.js} +1 -1
- package/dist/client/assets/{pair-B7N8LimJ.js → pair-BR0xVY7K.js} +1 -1
- package/dist/client/assets/{parse-sections-4BvjzUez.js → parse-sections-DwNpuqYY.js} +2 -2
- package/dist/client/assets/plan-CJ9mRGsN.js +1 -0
- package/dist/client/assets/{plan-ladder-BtkLgtii.js → plan-ladder-CYLyF8a4.js} +1 -1
- package/dist/client/assets/{plan-page-CKTE1h2Z.js → plan-page-CWIUB4vl.js} +1 -1
- package/dist/client/assets/{plan-usage-card-Dl-A5XDA.js → plan-usage-card-D7CUbMYX.js} +1 -1
- package/dist/client/assets/{popover-DP4F7_CN.js → popover-DBuD8VkZ.js} +1 -1
- package/dist/client/assets/{post-calendar-B84Jo4Aq.js → post-calendar-C7KRPE_7.js} +1 -1
- package/dist/client/assets/{post-editor-BGC7HZPr.js → post-editor-BTOUUukW.js} +1 -1
- package/dist/client/assets/{preview-content-cUzhhY8y.js → preview-content-CTLVXt4I.js} +1 -1
- package/dist/client/assets/{preview-dialog-Xi1rqe-H.js → preview-dialog-Dp4GbSi5.js} +1 -1
- package/dist/client/assets/{preview-panel-D-8qUn14.js → preview-panel-CbnF0XdA.js} +1 -1
- package/dist/client/assets/{preview-tab-BOqB_EYb.js → preview-tab-CHmFDbc5.js} +3 -3
- package/dist/client/assets/{primitives-BjRgbHRb.js → primitives-B9kPUDQM.js} +1 -1
- package/dist/client/assets/{product-picker-dialog-DhFRIIIR.js → product-picker-dialog-CUwMfU8B.js} +1 -1
- package/dist/client/assets/{profile-CLdHBuwm.js → profile-CuhUpReQ.js} +1 -1
- package/dist/client/assets/{project-app-view-__42D8va.js → project-app-view-BCEvOARd.js} +1 -1
- package/dist/client/assets/{project-apps-B7O9VjBh.js → project-apps-897ilIEF.js} +1 -1
- package/dist/client/assets/{project-icon-B2VOwuIx.js → project-icon-DWIG3WsN.js} +1 -1
- package/dist/client/assets/{project-index-GcNBPZcw.js → project-index-BUfiy84V.js} +1 -1
- package/dist/client/assets/project-reports-DyX_cnwF.js +1 -0
- package/dist/client/assets/project-tasks-ooMrzCbe.js +1 -0
- package/dist/client/assets/{projects-C9A2ikqQ.js → projects-BWsFj0pV.js} +1 -1
- package/dist/client/assets/{projects-empty-state-CQAcsF2-.js → projects-empty-state-IIoHkVX6.js} +1 -1
- package/dist/client/assets/{prompts-Bjq7TUHR.js → prompts-CzjNQB4y.js} +1 -1
- package/dist/client/assets/record-editor-DXGRK_O0.js +1 -0
- package/dist/client/assets/{redirect-editor-BXx37-Db.js → redirect-editor-Q4eWaKev.js} +1 -1
- package/dist/client/assets/{reports-DAhH0Z7v.js → reports-CPNIXsMR.js} +1 -1
- package/dist/client/assets/reports-Cxm5HLgj.js +1 -0
- package/dist/client/assets/{reports-onboarding--EkoKLih.js → reports-onboarding-sOnle8tZ.js} +1 -1
- package/dist/client/assets/{reports-tab-C_l0_Eva.js → reports-tab-CmQl03Vu.js} +2 -2
- package/dist/client/assets/{repositories-DEEBD-lm.js → repositories-BkFYZENo.js} +1 -1
- package/dist/client/assets/repositories-cv2qvoSk.js +1 -0
- package/dist/client/assets/{repository-binding-CxecY-3I.js → repository-binding-C7rU_ngE.js} +1 -1
- package/dist/client/assets/{repository-picker-BjEFUpD3.js → repository-picker-LXFO8bDM.js} +1 -1
- package/dist/client/assets/{require-capability-DdTTB-il.js → require-capability-3euEuxZx.js} +1 -1
- package/dist/client/assets/{required-auth-layout-Cv07Hy4u.js → required-auth-layout-Xfd5oNH3.js} +1 -1
- package/dist/client/assets/{reset-password-ks0SdAqg.js → reset-password-DT6s-J5W.js} +1 -1
- package/dist/client/assets/{resizable-BEO2qvQg.js → resizable-Bmb2XXOb.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-C-d1zTZY.js → resolve-tab-icon-NbNekjKu.js} +1 -1
- package/dist/client/assets/{review-settings-Db9RdQK1.js → review-settings-B1X3rfKZ.js} +1 -1
- package/dist/client/assets/{role-color-DQKxjTZ-.js → role-color-LobmKhmk.js} +1 -1
- package/dist/client/assets/{roles-DV8n9q3-.js → roles-vlbcWqYa.js} +1 -1
- package/dist/client/assets/{route-5nUjZ1De.js → route-COPrIJ58.js} +1 -1
- package/dist/client/assets/route-DBnYGUy3.js +1 -0
- package/dist/client/assets/{route-BehlBkh3.js → route-DZ15K8C3.js} +1 -1
- package/dist/client/assets/{route-page-header-mSR-nPz5.js → route-page-header-DpYcASGe.js} +1 -1
- package/dist/client/assets/{sandbox-git-api-CHSrWSaf.js → sandbox-git-api-zgEm1abw.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context-B-xM8M8W.js → sandbox-lifecycle-context-B8XBQ27H.js} +1 -1
- package/dist/client/assets/{save-status-B2ZQt9kX.js → save-status-P-MBD5-0.js} +1 -1
- package/dist/client/assets/{schema-CP3jUP8d.js → schema-BNEJODyB.js} +1 -1
- package/dist/client/assets/{schema-D0ZCbisK.js → schema-DehrCLDJ.js} +1 -1
- package/dist/client/assets/{scroll-area-WJkK2teo.js → scroll-area-C9_ZoUPP.js} +1 -1
- package/dist/client/assets/{search-input-DHj1Riv2.js → search-input-DlGuVm3Y.js} +1 -1
- package/dist/client/assets/{search-toggle-DnEXQftZ.js → search-toggle-CCoKiZr4.js} +1 -1
- package/dist/client/assets/{secret-picker-BfWzJVeh.js → secret-picker--vdUnukB.js} +1 -1
- package/dist/client/assets/{secrets-BlqWQN_s.js → secrets-nwRSqY5_.js} +1 -1
- package/dist/client/assets/{section-array-field-DO_gwOGN.js → section-array-field-C-IVu4bI.js} +1 -1
- package/dist/client/assets/{sections-Bgyo0oJ5.js → sections-C-kr2WbP.js} +1 -1
- package/dist/client/assets/{sections-editor-CzH8ZvCz.js → sections-editor-pzrzBV_6.js} +1 -1
- package/dist/client/assets/{select-CTqPYIcK.js → select-DDLvK1MW.js} +1 -1
- package/dist/client/assets/{select-model-DuFpSqC5.js → select-model-9Qz7X06u.js} +1 -1
- package/dist/client/assets/{seo-editor-BCa3--gW.js → seo-editor-D9YUlsJr.js} +1 -1
- package/dist/client/assets/{separator-Bq0KbJRh.js → separator-D4AcMC3Q.js} +1 -1
- package/dist/client/assets/{session-runtime-HHqVO0hb.js → session-runtime-DUDcoTOp.js} +1 -1
- package/dist/client/assets/settings-tab-BSv-jpzu.js +1 -0
- package/dist/client/assets/{sheet-t_HY57A4.js → sheet-DwYk86zq.js} +1 -1
- package/dist/client/assets/{shell-layout-DnwO2R3x.js → shell-layout-DjDFDvAp.js} +1 -1
- package/dist/client/assets/{site-draft-actions-BKv9Ur8e.js → site-draft-actions-BFo_T6rU.js} +1 -1
- package/dist/client/assets/{site-draft-view-VoTohcJv.js → site-draft-view-CKOJ4qSz.js} +1 -1
- package/dist/client/assets/{site-editor-toast-CG83Qxky.js → site-editor-toast-CZULEbbj.js} +1 -1
- package/dist/client/assets/site-editor-yQW8pV2u.js +1 -0
- package/dist/client/assets/{skills-DRvtOyIH.js → skills-DE35uXBB.js} +1 -1
- package/dist/client/assets/{slider-DNed2pvH.js → slider-BM8aiQga.js} +1 -1
- package/dist/client/assets/{sortable.esm-ChhnIhnb.js → sortable.esm-Ci07B_Jj.js} +1 -1
- package/dist/client/assets/{sso-CL9HryEo.js → sso-DYWJrGEf.js} +1 -1
- package/dist/client/assets/{suggestion-CyLxW2tK.js → suggestion-CFxVXMn8.js} +1 -1
- package/dist/client/assets/{super-agent-icon-BCv5AE5m.js → super-agent-icon-DnVZmS9i.js} +1 -1
- package/dist/client/assets/{switch-BSNnfS1l.js → switch-BOASvXY2.js} +1 -1
- package/dist/client/assets/{synced-repos-cYjwE9bC.js → synced-repos-CfF8I9P4.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-IgSVbnId.js → tab-icon-glyph-BdM4WLaj.js} +1 -1
- package/dist/client/assets/{table-ClBEVmMX.js → table-DRfPsdaj.js} +1 -1
- package/dist/client/assets/{tabs-Ce4S_T7L.js → tabs-BGcPqJhP.js} +1 -1
- package/dist/client/assets/{task-board-DhcqtKTY.js → task-board-DHRO-oCR.js} +1 -1
- package/dist/client/assets/{task-key-CXXHGQV2.js → task-key-dODSqtOD.js} +1 -1
- package/dist/client/assets/{task-route-B9NnRYLE.js → task-route-Cy5WEzJq.js} +1 -1
- package/dist/client/assets/{task-status-WCde3JKc.js → task-status-CfOd57tl.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-fCEDrzoz.js → taskboard-analytics-O8vpzQJ4.js} +1 -1
- package/dist/client/assets/{tasks-D5-K-Vxy.js → tasks-BHJB1jJ_.js} +1 -1
- package/dist/client/assets/tasks-BsCMzq1D.js +1 -0
- package/dist/client/assets/{textarea-BYalQz_u.js → textarea-CIDyBlnB.js} +1 -1
- package/dist/client/assets/{thread-analytics-BgUIkknc.js → thread-analytics-B5D5JEsi.js} +1 -1
- package/dist/client/assets/{thread-button-pGAkV8_7.js → thread-button-BjvcH6Vx.js} +1 -1
- package/dist/client/assets/{thread-intent-SHlSNCgz.js → thread-intent-D4UZcJTa.js} +1 -1
- package/dist/client/assets/{thread-route-RIksIyOh.js → thread-route-BoKIU7Oy.js} +1 -1
- package/dist/client/assets/{thread-route-Di0bkzxk.js → thread-route-PqBNFZfw.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-23WKbGin.js → thread-sheet-body-SffXqBpH.js} +1 -1
- package/dist/client/assets/{time-range-picker-BDyGH6MD.js → time-range-picker-BRE9Qg9V.js} +1 -1
- package/dist/client/assets/{toggle-group-CPU4Tqpq.js → toggle-group-BcyNxcnc.js} +1 -1
- package/dist/client/assets/{tool-set-selector-C-PEaWm1.js → tool-set-selector-CkNcSn8D.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-BsBeoM6n.js → toolbar-icon-button-B8gCtGPy.js} +1 -1
- package/dist/client/assets/{tooltip-BTV1JzvH.js → tooltip-Cilmqep0.js} +1 -1
- package/dist/client/assets/{tooltipContext-DanqZXoK.js → tooltipContext-HNg68jH0.js} +1 -1
- package/dist/client/assets/{track-ioGylLqO.js → track-CGCFac8w.js} +1 -1
- package/dist/client/assets/{types-D1rO9ICt.js → types-CnPGvQg1.js} +1 -1
- package/dist/client/assets/{url-slug-Cyp5HUat.js → url-slug-ClELDWkv.js} +1 -1
- package/dist/client/assets/{usage-stats-Bn02Q7VR.js → usage-stats-B3MiRtbE.js} +1 -1
- package/dist/client/assets/use-ai-providers-zUKWfsvx.js +1 -0
- package/dist/client/assets/{use-api-keys-1fBZVEJV.js → use-api-keys-BGtID6j7.js} +1 -1
- package/dist/client/assets/{use-apply-named-rule-DJaxoq3D.js → use-apply-named-rule-M1kWOQUn.js} +1 -1
- package/dist/client/assets/use-ask-in-chat-DwZDq51q.js +1 -0
- package/dist/client/assets/{use-automations-C1dcQ46E.js → use-automations-DNYDf9Ty.js} +1 -1
- package/dist/client/assets/{use-autosave-S06V3cGw.js → use-autosave-C_qxtxF5.js} +1 -1
- package/dist/client/assets/use-blocks-v8-project-B_RMtP9Z.js +1 -0
- package/dist/client/assets/use-blog-view-Cf0gUXmH.js +1 -0
- package/dist/client/assets/{use-chat-layout-state-DvlWnCbM.js → use-chat-layout-state-DyZj7x9R.js} +1 -1
- package/dist/client/assets/{use-cms-publish-actions-Cga9cdmk.js → use-cms-publish-actions-CD9zGQ2J.js} +1 -1
- package/dist/client/assets/{use-connect-companion-oDQx_Afc.js → use-connect-companion-DfgT1HMG.js} +1 -1
- package/dist/client/assets/{use-connection-CvM0KMvL.js → use-connection-CZ1NbbVy.js} +1 -1
- package/dist/client/assets/{use-content-sync-94wWu-pN.js → use-content-sync-Cq2aGUf5.js} +1 -1
- package/dist/client/assets/{use-copy-DwWelTLy.js → use-copy-BktBumBM.js} +1 -1
- package/dist/client/assets/{use-current-view-wwqqw_V_.js → use-current-view-EZITdVTI.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-DccSlPxQ.js → use-date-fns-locale-Bv5Sdh_7.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-CM-ma6ps.js → use-debounced-autosave-CPlvHHLn.js} +1 -1
- package/dist/client/assets/{use-debounced-value-AZePmm7u.js → use-debounced-value-Dd9WXi-P.js} +1 -1
- package/dist/client/assets/{use-deco-credits-C2MrO3B8.js → use-deco-credits-C7fZIj6N.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-jYBoBwHC.js → use-decopilot-events-BnISHAGr.js} +1 -1
- package/dist/client/assets/{use-delete-block-CXohCfLe.js → use-delete-block-DTWO1nrc.js} +1 -1
- package/dist/client/assets/{use-delete-connection-CwmWgQIO.js → use-delete-connection-mXUaCdnB.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-BXnzIfMj.js → use-deployment-admin-BPWk2wkA.js} +1 -1
- package/dist/client/assets/{use-entitlements-DLbX5te6.js → use-entitlements-CGKQp5Ve.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-D0VBvTaa.js → use-fast-preview-draft-url-CPu4xvwz.js} +1 -1
- package/dist/client/assets/{use-file-configs-QJhbV_x3.js → use-file-configs-CcLJWcIx.js} +1 -1
- package/dist/client/assets/{use-id-selection-Buv-_GKW.js → use-id-selection-Umi6LFyy.js} +1 -1
- package/dist/client/assets/{use-in-settings-BeiVDyNP.js → use-in-settings-DpMiymIv.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-ulXxaxiF.js → use-inbox-feed-DQg2WX2L.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-Bta-JaAh.js → use-infinite-scroll-CycWyrzU.js} +1 -1
- package/dist/client/assets/{use-join-requests-CXMb_sXU.js → use-join-requests-B4BhVPi4.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-JZaU4p9w.js → use-main-panel-tabs-ZkgyCIQo.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-EUBq3M4v.js → use-mcp-auth-status-GMXu-v9L.js} +1 -1
- package/dist/client/assets/{use-mcp-client-BiREHqsd.js → use-mcp-client-3JkIBVIw.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-CRSbJqPT.js → use-mcp-prompts-BS4RJMA_.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-B7KRwa9Y.js → use-mcp-tools-ByvSnFS9.js} +1 -1
- package/dist/client/assets/{use-mobile-CyDt-Z7B.js → use-mobile-D4Z5otBR.js} +1 -1
- package/dist/client/assets/{use-move-blocks-DJFj08e5.js → use-move-blocks-Brooe0Rr.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-DakGPNsO.js → use-navigate-to-agent-DNuLTYeG.js} +1 -1
- package/dist/client/assets/{use-never-published-DCeaCTzJ.js → use-never-published-CvngtHyh.js} +1 -1
- package/dist/client/assets/{use-org-fs-D5FKSnJC.js → use-org-fs-BW-3KvTS.js} +1 -1
- package/dist/client/assets/{use-org-notice-D_u9ItiX.js → use-org-notice-BX7WVuqK.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-CRLYVDif.js → use-org-repo-syncs-D4v_lsZY.js} +1 -1
- package/dist/client/assets/{use-org-sso-kNe9eh4A.js → use-org-sso-CGL9Mumz.js} +1 -1
- package/dist/client/assets/{use-organization-settings-BTcyt7Xy.js → use-organization-settings-DkS8IzZH.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-CHnO3l3E.js → use-panel-navigate-D_4zKcAV.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-BFzyOdgy.js → use-project-native-view-presence-BIR5C8xh.js} +1 -1
- package/dist/client/assets/{use-project-scope-CNCMOXKT.js → use-project-scope-DR1wnfkK.js} +1 -1
- package/dist/client/assets/{use-recent-apps-BMh20gXJ.js → use-recent-apps-CedAxvA5.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-Do_O7ozK.js → use-reports-diagnostic-CyE2NKc1.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-BY2i13oh.js → use-sandbox-events-DWTS0v2d.js} +1 -1
- package/dist/client/assets/{use-secrets-BX2B3HLb.js → use-secrets-gsSj0IoF.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-zI8yu8Uc.js → use-section-preview-base-Bc792c4s.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-BGvty8ub.js → use-sidebar-collapsed-D2Rggp6e.js} +1 -1
- package/dist/client/assets/{use-tags-DXyUvmMN.js → use-tags-B-6GGTRQ.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-CHAiPC63.js → use-task-board-analytics-BvySA9kr.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-BugWdmEj.js → use-task-board-item-prs-D66jIICd.js} +1 -1
- package/dist/client/assets/{use-task-board-items-CB6Ggiuk.js → use-task-board-items-D4msWN6P.js} +1 -1
- package/dist/client/assets/{use-task-board-prompts-DsDASDNM.js → use-task-board-prompts-BiKBad5h.js} +1 -1
- package/dist/client/assets/{use-task-metadata-B3vCQYMe.js → use-task-metadata-u5FWrVcz.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-DDTwilua.js → use-thread-outputs-C9z66BGs.js} +1 -1
- package/dist/client/assets/{use-view-draft-kind-Dk36jUvh.js → use-view-draft-kind-BqlsyAow.js} +1 -1
- package/dist/client/assets/{use-voice-input-QiTrJUzH.js → use-voice-input-BxiteUCw.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-C8AjoHI-.js +1 -0
- package/dist/client/assets/{useQueries-CpCX0-id.js → useQueries-Cglcpn8c.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DkDXLw8E.js +1 -0
- package/dist/client/assets/{users-B8otHWD7.js → users-NOOsh3xZ.js} +1 -1
- package/dist/client/assets/{utils-D_sY1gMa.js → utils-BTsdsvJd.js} +1 -1
- package/dist/client/assets/{variant-calendar-aBuzNx2M.js → variant-calendar-fD7BE86h.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-fbdzUl1d.js → variant-matcher-override-CEYGMqhY.js} +1 -1
- package/dist/client/assets/{view-header-C6Bh0Sge.js → view-header-DzcnIXEq.js} +1 -1
- package/dist/client/assets/{virtual-mcp-Dp73yA0V.js → virtual-mcp-cDV9Te_c.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-BdBt8CNZ.js → watch-sse-pool-BkhdInio.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/agent-app-D6rCfG9f.js +0 -1
- package/dist/client/assets/agent-deck-CqnA8f3l.js +0 -1
- package/dist/client/assets/agent-experiments-BVM4jL5w.js +0 -1
- package/dist/client/assets/agent-file-B_k5mQS5.js +0 -1
- package/dist/client/assets/agent-library-Bu201gjH.js +0 -1
- package/dist/client/assets/agent-library-file-C8b79U4e.js +0 -1
- package/dist/client/assets/agent-overview-CZoONQE1.js +0 -1
- package/dist/client/assets/agent-settings-BVWbp5p1.js +0 -1
- package/dist/client/assets/agent-site-editor-code-D09Rxkws.js +0 -2
- package/dist/client/assets/agent-site-editor-content-CnwqI57z.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-CL5DiRaI.js +0 -1
- package/dist/client/assets/agent-view-DRYkDeXh.js +0 -1
- package/dist/client/assets/api-keys-CAtl4EJk.js +0 -1
- package/dist/client/assets/library-CzmS3yP7.js +0 -1
- package/dist/client/assets/plan-B62aDRYQ.js +0 -1
- package/dist/client/assets/project-reports-CkwWzHt8.js +0 -1
- package/dist/client/assets/project-tasks-B7Ud_wCN.js +0 -1
- package/dist/client/assets/record-editor-Ciut_uUK.js +0 -1
- package/dist/client/assets/reports-UhGykAQR.js +0 -1
- package/dist/client/assets/repositories-B7grJC3T.js +0 -1
- package/dist/client/assets/route-4VetkBSy.js +0 -1
- package/dist/client/assets/settings-tab-CD2zIJV1.js +0 -1
- package/dist/client/assets/site-editor-IvqDhUGV.js +0 -1
- package/dist/client/assets/tasks-Bizd3Jgv.js +0 -1
- package/dist/client/assets/use-ai-providers-C1Ih5bzG.js +0 -1
- package/dist/client/assets/use-ask-in-chat-0oKH6tP5.js +0 -1
- package/dist/client/assets/use-blocks-v8-project-BbdXcUHI.js +0 -1
- package/dist/client/assets/use-blog-view-DT5EsjwC.js +0 -1
- package/dist/client/assets/useInfiniteQuery-B2Qtepsr.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-Dy6DLH2g.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as n,m as c,j as o,c1 as d}from"./index-
|
|
1
|
+
import{c as n,m as c,j as o,c1 as d}from"./index-CTKVsdNw.js";const u=d("relative w-full rounded-lg border px-4 py-3 text-sm flex items-start gap-3 [&>svg]:size-4 [&>svg]:flex-shrink-0 [&>svg]:mt-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"bg-destructive/5 text-destructive border-destructive/25 [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90",warning:"bg-warning/5 text-warning border-warning/25 [&>svg]:text-current *:data-[slot=alert-description]:text-warning/90",success:"bg-success/5 text-success border-success/25 [&>svg]:text-current *:data-[slot=alert-description]:text-success/90",info:"bg-card text-card-foreground border-border [&>svg]:text-current *:data-[slot=alert-description]:text-muted-foreground/90"}},defaultVariants:{variant:"default"}});function x(l){const t=n.c(10);let e,r,s;t[0]!==l?({className:e,variant:s,...r}=l,t[0]=l,t[1]=e,t[2]=r,t[3]=s):(e=t[1],r=t[2],s=t[3]);let a;t[4]!==e||t[5]!==s?(a=c(u({variant:s}),e),t[4]=e,t[5]=s,t[6]=a):a=t[6];let i;return t[7]!==r||t[8]!==a?(i=o.jsx("div",{"data-slot":"alert",role:"alert",className:a,...r}),t[7]=r,t[8]=a,t[9]=i):i=t[9],i}function f(l){const t=n.c(8);let e,r;t[0]!==l?({className:e,...r}=l,t[0]=l,t[1]=e,t[2]=r):(e=t[1],r=t[2]);let s;t[3]!==e?(s=c("line-clamp-1 min-h-4 font-medium tracking-tight",e),t[3]=e,t[4]=s):s=t[4];let a;return t[5]!==r||t[6]!==s?(a=o.jsx("div",{"data-slot":"alert-title",className:s,...r}),t[5]=r,t[6]=s,t[7]=a):a=t[7],a}function v(l){const t=n.c(8);let e,r;t[0]!==l?({className:e,...r}=l,t[0]=l,t[1]=e,t[2]=r):(e=t[1],r=t[2]);let s;t[3]!==e?(s=c("text-muted-foreground leading-relaxed",e),t[3]=e,t[4]=s):s=t[4];let a;return t[5]!==r||t[6]!==s?(a=o.jsx("div",{"data-slot":"alert-description",className:s,...r}),t[5]=r,t[6]=s,t[7]=a):a=t[7],a}export{x as A,f as a,v as b};
|
package/dist/client/assets/{analytics-sections-CeFYB7GM.js → analytics-sections-DY-sMeWR.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as C,j as s,b as B,gZ as Q,m as D,F as fe,r as Z,d as xe,hJ as q,aA as pe}from"./index-3KPWvxje.js";import{c as J,b as G,B as U,C as ee}from"./chart-HxiMOTyC.js";import{e as he,a as ge,b as W,T as je,d as be,c as ye}from"./table-ClBEVmMX.js";import{i as ve}from"./AlertCircle-BfvLVKvB.js";import{i as ke,n as Ne}from"./ArrowUp--UwxK92n.js";import{n as Se,c as we,k as Ce,d as $e}from"./UserCheck01-CiFQCaAM.js";import{T as te,a as se}from"./toggle-group-CPU4Tqpq.js";import{B as Y}from"./badge-BOmoymVs.js";import{l as ne,T as Te,P as De,S as Oe}from"./config-B5Mj-sZc.js";import{C as H,X as P,Y as V}from"./CartesianChart-CPVWB37x.js";import{A as Ie,a as Be}from"./AreaChart-CacKnj69.js";function le(a){const e=C.c(8),{href:t,className:d,children:o}=a,c=xe();let r;e[0]!==t||e[1]!==c?(r=n=>{!t||n.button!==0||n.metaKey||n.ctrlKey||n.shiftKey||(n.preventDefault(),c({href:t}))},e[0]=t,e[1]=c,e[2]=r):r=e[2];let l;return e[3]!==o||e[4]!==d||e[5]!==t||e[6]!==r?(l=s.jsx("a",{href:t,className:d,onClick:r,children:o}),e[3]=o,e[4]=d,e[5]=t,e[6]=r,e[7]=l):l=e[7],l}const L=(a,e,t)=>a&&e?()=>a({drill:e,label:t}):void 0,E="cursor-pointer text-left transition-colors hover:bg-accent focus-ring",F=["var(--chart-1)","var(--chart-2)","var(--chart-3)","var(--chart-4)","var(--chart-5)"],R={fontSize:11,fill:"var(--muted-foreground)",opacity:.7};function ae(a){const e=Math.abs(a);return e<60?`${Math.round(a)}s`:e<3600?`${Math.round(a/60)}m`:e<86400?`${(a/3600).toFixed(1)}h`:`${(a/86400).toFixed(1)}d`}function M(a,e){return a===null||Number.isNaN(a)?"—":e==="s"?ae(a):e==="%"?`${Math.round(a*10)/10}%`:e==="USD"?`$${a.toFixed(2)}`:a.toLocaleString()}function X(a,e){return e==="s"?ae(a):e==="%"?`${a}%`:e==="USD"?`$${a}`:a>=1e3?`${(a/1e3).toFixed(1)}k`:String(a)}const re=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}/,Le=/^\d{4}-\d{2}-\d{2}$/;function Me(a,e){return typeof a=="number"?M(a,e):Le.test(a)?new Date(`${a}T12:00:00Z`).toLocaleDateString(void 0,{month:"short",day:"numeric"}):re.test(a)?q(a):a}function _(a){const e=C.c(21),{title:t,value:d,caption:o,aside:c,children:r,onClick:l,className:n}=a,i=l?"button":"section",u=l?"button":void 0,m=l&&E;let x;e[0]!==n||e[1]!==m?(x=D("surface @container flex h-full w-full min-w-0 flex-col gap-6 px-4 pt-4 pb-5",m,n),e[0]=n,e[1]=m,e[2]=x):x=e[2];let f;e[3]!==t?(f=s.jsx("h3",{className:"text-sm text-foreground/70",children:t}),e[3]=t,e[4]=f):f=e[4];let h;e[5]!==d?(h=d!==void 0&&s.jsx("span",{className:"tnum whitespace-nowrap text-4xl font-normal text-foreground @max-xs:text-3xl @max-3xs:text-2xl",children:d}),e[5]=d,e[6]=h):h=e[6];let p;e[7]!==o||e[8]!==f||e[9]!==h?(p=s.jsxs("div",{className:"flex min-w-0 flex-col gap-1",children:[f,h,o]}),e[7]=o,e[8]=f,e[9]=h,e[10]=p):p=e[10];let j;e[11]!==c||e[12]!==p?(j=s.jsxs("div",{className:"flex items-start justify-between gap-4",children:[p,c]}),e[11]=c,e[12]=p,e[13]=j):j=e[13];let b;return e[14]!==i||e[15]!==r||e[16]!==l||e[17]!==u||e[18]!==x||e[19]!==j?(b=s.jsxs(i,{type:u,onClick:l,className:x,children:[j,r]}),e[14]=i,e[15]=r,e[16]=l,e[17]=u,e[18]=x,e[19]=j,e[20]=b):b=e[20],b}function ie(a){const e=C.c(9),{lane:t}=a,d=B();let o;e[0]!==t||e[1]!==d?(o=ne(t,d),e[0]=t,e[1]=d,e[2]=o):o=e[2];const{label:c,visual:r}=o,l=r.icon;let n;e[3]!==l||e[4]!==r.iconClassName?(n=s.jsx(l,{className:r.iconClassName}),e[3]=l,e[4]=r.iconClassName,e[5]=n):n=e[5];let i;return e[6]!==c||e[7]!==n?(i=s.jsxs(Y,{variant:"muted",children:[n,c]}),e[6]=c,e[7]=n,e[8]=i):i=e[8],i}function A(a){const e=C.c(2),{children:t}=a;let d;return e[0]!==t?(d=s.jsx("div",{className:"flex h-20 items-center justify-center text-sm text-muted-foreground",children:t}),e[0]=t,e[1]=d):d=e[1],d}function _e(a){const e=C.c(21),{value:t,previous:d,unit:o,better:c}=a,r=B();if(t===null||d===null||d===void 0){let p;e[0]!==r?(p=r("taskBoard.analytics.noPrior"),e[0]=r,e[1]=p):p=e[1];let j;return e[2]!==p?(j=s.jsx("span",{className:"text-meta",children:p}),e[2]=p,e[3]=j):j=e[3],j}const l=Math.round((t-d)*10)/10,n=c==="down"?l<0:l>0;let i;e[4]!==l||e[5]!==r||e[6]!==o?(i=o==="%"?r("taskBoard.analytics.points",{n:String(Math.abs(l))}):M(Math.abs(l),o),e[4]=l,e[5]=r,e[6]=o,e[7]=i):i=e[7];const u=i;let m;e[8]!==u||e[9]!==c||e[10]!==l||e[11]!==n||e[12]!==r?(m=l===0?r("taskBoard.analytics.unchanged"):s.jsxs("span",{className:D("inline-flex items-center gap-0.5 font-medium",c&&(n?"text-success":"text-destructive")),children:[l>0?s.jsx(ke,{size:12}):s.jsx(Ne,{size:12}),u]}),e[8]=u,e[9]=c,e[10]=l,e[11]=n,e[12]=r,e[13]=m):m=e[13];let x;e[14]!==r?(x=r("taskBoard.analytics.vsPrevious"),e[14]=r,e[15]=x):x=e[15];let f;e[16]!==x?(f=s.jsx("span",{children:x}),e[16]=x,e[17]=f):f=e[17];let h;return e[18]!==m||e[19]!==f?(h=s.jsxs("span",{className:"text-meta inline-flex items-center gap-1",children:[m,f]}),e[18]=m,e[19]=f,e[20]=h):h=e[20],h}const Ae={1:"lg:grid-cols-1",2:"lg:grid-cols-2",3:"lg:grid-cols-3",5:"lg:grid-cols-5",6:"lg:grid-cols-3",9:"lg:grid-cols-3"};function Re(a){const e=C.c(10),{section:t,onDrill:d}=a,o=Ae[t.values.length]??"lg:grid-cols-4";let c;e[0]!==o?(c=D("grid grid-cols-2 gap-4",o),e[0]=o,e[1]=c):c=e[1];let r;if(e[2]!==d||e[3]!==t.values){let n;e[5]!==d?(n=i=>s.jsx(_,{title:i.label,value:M(i.value,i.unit),onClick:L(d,i.drill,i.label),caption:s.jsxs(s.Fragment,{children:[i.detail&&s.jsx("span",{className:"text-sm text-muted-foreground",children:i.detail}),i.previous!==void 0&&s.jsx(_e,{value:i.value,previous:i.previous,unit:i.unit,better:i.better})]})},i.label),e[5]=d,e[6]=n):n=e[6],r=t.values.map(n),e[2]=d,e[3]=t.values,e[4]=r}else r=e[4];let l;return e[7]!==c||e[8]!==r?(l=s.jsx("div",{className:c,children:r}),e[7]=c,e[8]=r,e[9]=l):l=e[9],l}function Ke(a){return Array.from(new Set(a.flatMap(e=>Object.keys(e)))).filter(e=>e!=="t").sort()}function Fe(a,e){const t=e.filter(d=>a.some(o=>typeof o[d]=="number"&&o[d]!==0));return t.length>0?t:e}function Ee(a,e,t){const d=new Map(a.map(l=>[String(l.t??"").slice(0,10),l])),o=new Date(`${t.from.slice(0,10)}T00:00:00.000Z`),c=t.to.slice(0,10),r=[];for(;o.toISOString().slice(0,10)<=c;){const l=o.toISOString().slice(0,10);r.push(d.get(l)??{t:o.toISOString(),...Object.fromEntries(e.map(n=>[n,0]))}),o.setUTCDate(o.getUTCDate()+1)}return r}function oe(a){const e=C.c(17),{active:t,payload:d,unit:o,nameOf:c}=a,r=c===void 0?String:c;if(!t||!d?.length)return null;const l=d[0]?.payload,n=l?.t;let i;e[0]!==l?.label||e[1]!==n?(i=typeof n=="string"?new Date(n).toLocaleDateString(void 0,{month:"short",day:"numeric"}):String(l?.label??""),e[0]=l?.label,e[1]=n,e[2]=i):i=e[2];let u;e[3]!==i?(u=s.jsx("div",{className:"mb-1 text-xs text-muted-foreground",children:i}),e[3]=i,e[4]=u):u=e[4];let m;if(e[5]!==r||e[6]!==d||e[7]!==o){let h;e[9]!==r||e[10]!==o?(h=p=>s.jsxs("div",{className:"flex items-center gap-1.5 text-xs",children:[s.jsx("span",{className:"size-2 shrink-0 rounded-full",style:{backgroundColor:p.color}}),s.jsx("span",{className:"text-muted-foreground",children:r(String(p.dataKey))}),s.jsx("span",{className:"tnum ml-auto pl-3 font-medium",children:M(typeof p.value=="number"?p.value:null,o)})]},String(p.dataKey)),e[9]=r,e[10]=o,e[11]=h):h=e[11],m=d.map(h),e[5]=r,e[6]=d,e[7]=o,e[8]=m}else m=e[8];let x;e[12]!==m?(x=s.jsx("div",{className:"flex flex-col gap-1",children:m}),e[12]=m,e[13]=x):x=e[13];let f;return e[14]!==u||e[15]!==x?(f=s.jsxs("div",{className:"rounded-lg bg-popover px-3 py-2 shadow-soft",children:[u,x]}),e[14]=u,e[15]=x,e[16]=f):f=e[16],f}function ze(a){const e=C.c(27),{section:t,range:d}=a,o=B(),c=t.unit??void 0,r=c!=="%"&&c!=="s";let l;if(e[0]!==r||e[1]!==d||e[2]!==t.points||e[3]!==t.title||e[4]!==o||e[5]!==c){const n=Ke(t.points),i=r?Fe(t.points,n):n,u=v=>F[n.indexOf(v)%F.length],m=Object.fromEntries(i.map(v=>[v,{label:v,color:u(v)}])),f=(r&&d?Ee(t.points,n,d):t.points).map(Ge);let h;if(e[7]!==t.title){let v;e[9]===Symbol.for("react.memo_cache_sentinel")?(v=/\W+/g,e[9]=v):v=e[9],h=t.title.replace(v,"-"),e[7]=t.title,e[8]=h}else h=e[8];const p=`analytics-${h}`;let j;e[10]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx(H,{strokeDasharray:"4 4",stroke:"var(--border)",strokeOpacity:.5,vertical:!1}),e[10]=j):j=e[10];const b=j;let k;e[11]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx(P,{dataKey:"label",axisLine:!1,tickLine:!1,tick:R,minTickGap:24,tickMargin:8}),e[11]=k):k=e[11];const y=k;let $;e[12]!==c?($=c==="%"?[0,100]:[0,"auto"],e[12]=c,e[13]=$):$=e[13];const S=c!==void 0;let g;e[14]!==c?(g=v=>X(v,c),e[14]=c,e[15]=g):g=e[15];let w;e[16]!==$||e[17]!==S||e[18]!==g?(w=s.jsx(V,{orientation:"right",axisLine:!1,tickLine:!1,tick:R,domain:$,allowDecimals:S,tickFormatter:g,width:48,tickCount:5}),e[16]=$,e[17]=S,e[18]=g,e[19]=w):w=e[19];const O=w;let T;e[20]!==r?(T=r?{fill:"var(--muted)",opacity:.4}:{stroke:"var(--border)",strokeDasharray:"4 4"},e[20]=r,e[21]=T):T=e[21];let I;e[22]!==c?(I=v=>{const{active:z,payload:me}=v;return s.jsx(oe,{active:z,payload:me,unit:c})},e[22]=c,e[23]=I):I=e[23];let N;e[24]!==I||e[25]!==T?(N=s.jsx(ee,{cursor:T,content:I}),e[24]=I,e[25]=T,e[26]=N):N=e[26];const K=N;l=s.jsx(_,{title:t.title,aside:i.length>1&&s.jsx("ul",{className:"flex flex-wrap justify-end gap-x-3 gap-y-1",children:i.map(v=>s.jsxs("li",{className:"text-meta flex items-center gap-1.5",children:[s.jsx("span",{className:"size-2 rounded-full",style:{backgroundColor:u(v)}}),v]},v))}),children:f.length===0?s.jsx(A,{children:o("taskBoard.analytics.noDataInRange")}):s.jsx(J,{role:"img","aria-label":t.title,className:"h-[140px] w-full md:h-[180px]",config:m,children:r?s.jsxs(G,{data:f,margin:{left:0,right:0,top:8},children:[b,y,O,K,i.map((v,z)=>s.jsx(U,{dataKey:v,stackId:"day",fill:u(v),maxBarSize:24,radius:z===i.length-1?[4,4,0,0]:0,animationDuration:300},v))]}):s.jsxs(Ie,{data:f,margin:{left:0,right:0,top:8},children:[i.length===1&&s.jsx("defs",{children:s.jsxs("linearGradient",{id:p,x1:"0",y1:"0",x2:"0",y2:"1",children:[s.jsx("stop",{offset:"0%",stopColor:u(i[0]??""),stopOpacity:.2}),s.jsx("stop",{offset:"100%",stopColor:u(i[0]??""),stopOpacity:0})]})}),b,y,O,K,i.map(v=>s.jsx(Be,{type:"linear",dataKey:v,stroke:u(v),strokeWidth:2,fill:i.length===1?`url(#${p})`:"none",dot:f.length===1?{r:4}:!1,activeDot:{r:4,stroke:"var(--background)",strokeWidth:2},connectNulls:!0,animationDuration:300},v))]})})}),e[0]=r,e[1]=d,e[2]=t.points,e[3]=t.title,e[4]=o,e[5]=c,e[6]=l}else l=e[6];return l}function Ge(a){return{...a,label:new Date(String(a.t??"")).toLocaleDateString(void 0,{month:"short",day:"numeric"})}}function ce(a){const e=C.c(25),{label:t,note:d,share:o,value:c,fill:r,color:l,onClick:n}=a,i=n?"button":"div",u=n?"button":void 0;let m;e[0]!==n?(m=n&&D(E,"-mx-2 w-[calc(100%+1rem)] rounded-md px-2"),e[0]=n,e[1]=m):m=e[1];let x;e[2]!==m?(x=D("flex h-10 w-full items-center gap-3",m),e[2]=m,e[3]=x):x=e[3];let f;e[4]!==d?(f=d&&s.jsx("span",{className:"text-meta ml-2",children:d}),e[4]=d,e[5]=f):f=e[5];let h;e[6]!==t||e[7]!==f?(h=s.jsxs("span",{className:"min-w-0 flex-1 truncate text-sm text-muted-foreground",children:[t,f]}),e[6]=t,e[7]=f,e[8]=h):h=e[8];const p=`${Math.max(0,Math.min(100,r))}%`;let j;e[9]!==l||e[10]!==p?(j=s.jsx("span",{className:"h-1.5 w-20 shrink-0 overflow-hidden rounded-full bg-muted",children:s.jsx("span",{className:"block h-full rounded-full",style:{width:p,backgroundColor:l}})}),e[9]=l,e[10]=p,e[11]=j):j=e[11];let b;e[12]!==o?(b=o!==void 0&&s.jsx("span",{className:"tnum w-16 shrink-0 text-right text-sm text-foreground/40",children:o}),e[12]=o,e[13]=b):b=e[13];let k;e[14]!==c?(k=s.jsx("span",{className:"tnum w-8 shrink-0 text-right text-sm text-foreground",children:c}),e[14]=c,e[15]=k):k=e[15];let y;return e[16]!==i||e[17]!==n||e[18]!==u||e[19]!==x||e[20]!==h||e[21]!==j||e[22]!==b||e[23]!==k?(y=s.jsx("li",{className:"border-b border-border/50 last:border-b-0",children:s.jsxs(i,{type:u,onClick:n,className:x,children:[h,j,b,k]})}),e[16]=i,e[17]=n,e[18]=u,e[19]=x,e[20]=h,e[21]=j,e[22]=b,e[23]=k,e[24]=y):y=e[24],y}function Ue(a){const e=C.c(17),{section:t,onDrill:d}=a,o=B(),c=t.stages[0]?.value??0,r=t.stages.at(-1)?.value??0;let l;e[0]!==r||e[1]!==c?(l=c?`${Math.round(100*r/c)}%`:"—",e[0]=r,e[1]=c,e[2]=l):l=e[2];let n;e[3]!==r||e[4]!==c||e[5]!==o?(n=c>0&&s.jsx("span",{className:"text-meta",children:o("taskBoard.analytics.funnelCaption",{end:String(r),start:String(c)})}),e[3]=r,e[4]=c,e[5]=o,e[6]=n):n=e[6];let i;e[7]!==d||e[8]!==t.stages||e[9]!==c||e[10]!==o?(i=c===0?s.jsx(A,{children:o("taskBoard.analytics.noDataInRange")}):s.jsx("ol",{className:"flex flex-col",children:t.stages.map((m,x)=>{const f=t.stages[x-1]?.value,h=f===void 0?0:f-m.value;return s.jsx(ce,{label:m.label,note:h>0?o("taskBoard.analytics.dropped",{n:String(h)}):void 0,share:`${Math.round(100*m.value/c)}%`,value:m.value.toLocaleString(),fill:100*m.value/c,color:"var(--chart-2)",onClick:L(d,m.drill,m.label)},m.label)})}),e[7]=d,e[8]=t.stages,e[9]=c,e[10]=o,e[11]=i):i=e[11];let u;return e[12]!==t.title||e[13]!==l||e[14]!==n||e[15]!==i?(u=s.jsx(_,{title:t.title,value:l,caption:n,children:i}),e[12]=t.title,e[13]=l,e[14]=n,e[15]=i,e[16]=u):u=e[16],u}function He(a){const e=C.c(19),{section:t,onDrill:d}=a,o=B();let c;e[0]!==t.bars?(c=Math.max(0,...t.bars.map(Pe)),e[0]=t.bars,e[1]=c):c=e[1];const r=c;let l;e[2]!==t.total?.value?(l=t.total?.value.toLocaleString(),e[2]=t.total?.value,e[3]=l):l=e[3];let n;e[4]!==t.total?(n=t.total&&s.jsx("span",{className:"text-meta",children:t.total.label}),e[4]=t.total,e[5]=n):n=e[5];let i;e[6]!==t.unit?(i=t.unit&&s.jsx("span",{className:"text-meta",children:t.unit}),e[6]=t.unit,e[7]=i):i=e[7];let u;e[8]!==r||e[9]!==d||e[10]!==t.bars||e[11]!==o?(u=t.bars.length===0?s.jsx(A,{children:o("taskBoard.analytics.nobodyStepped")}):s.jsx("ul",{className:"flex flex-col",children:t.bars.map(x=>s.jsx(ce,{label:x.label,note:x.note,share:x.detail,value:x.value.toLocaleString(),fill:r?100*x.value/r:0,color:"var(--chart-1)",onClick:L(d,x.drill,x.label)},x.label))}),e[8]=r,e[9]=d,e[10]=t.bars,e[11]=o,e[12]=u):u=e[12];let m;return e[13]!==t.title||e[14]!==l||e[15]!==n||e[16]!==i||e[17]!==u?(m=s.jsx(_,{title:t.title,value:l,caption:n,aside:i,children:u}),e[13]=t.title,e[14]=l,e[15]=n,e[16]=i,e[17]=u,e[18]=m):m=e[18],m}function Pe(a){return a.value}function Ve(a,e){return`/${encodeURIComponent(a)}/${encodeURIComponent(e)}`}const Xe=new Set(["Org ID","Task ID"]),Ye=new Set(["Run outcome","Failure kind","Moved in by","State"]),Qe=new Set(["Error","Signature"]),We=new Set(["Org","Orgs"]);function Ze(a){const e=C.c(32),{section:t,threadLinks:d,showOrg:o,taskHref:c,onDrill:r}=a,l=B(),n=t.columns.indexOf("Org");let i;e[0]!==n||e[1]!==t.columns||e[2]!==d?(i=d&&n>=0?t.columns.indexOf("Thread"):-1,e[0]=n,e[1]=t.columns,e[2]=d,e[3]=i):i=e[3];const u=i,m=t.columns.indexOf("Task ID");let x;e[4]!==t.columns||e[5]!==c||e[6]!==m?(x=c&&m>=0?t.columns.indexOf("Task"):-1,e[4]=t.columns,e[5]=c,e[6]=m,e[7]=x):x=e[7];const f=x,h=t.columns;let p,j;if(e[8]!==r||e[9]!==n||e[10]!==t.columns||e[11]!==t.drills||e[12]!==t.rows||e[13]!==t.title||e[14]!==t.units||e[15]!==o||e[16]!==l||e[17]!==f||e[18]!==c||e[19]!==m||e[20]!==u){j=Symbol.for("react.early_return_sentinel");e:{let b;e[23]!==o?(b=S=>{const{c:g}=S;return!Xe.has(g)&&(o!==!1||!We.has(g))},e[23]=o,e[24]=b):b=e[24];const k=h.map(st).filter(b).sort(tt);let y;e[25]!==t.rows?(y=S=>{const{j:g}=S,w=t.rows.map(O=>O[g]).filter(et);return w.length>0&&w.every(Je)},e[25]=t.rows,e[26]=y):y=e[26];const $=new Set(k.filter(y).map(qe));if(t.rows.length===1&&k.every(S=>{const{c:g}=S;return $.has(g)})){let S;e[27]!==t.rows[0]?(S=t.rows[0]??[],e[27]=t.rows[0],e[28]=S):S=e[28];const g=S;let w;e[29]!==g||e[30]!==t.units?(w=O=>{const{c:T,j:I}=O,N=g[I];return s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsx("dt",{className:"text-meta",children:T}),s.jsx("dd",{className:"tnum text-2xl text-foreground",children:typeof N=="number"?M(N,t.units?.[T]):"—"})]},T)},e[29]=g,e[30]=t.units,e[31]=w):w=e[31],j=s.jsx(Q,{title:t.title,children:s.jsx("dl",{className:"surface grid px-4 pt-4 pb-5 grid-cols-2 gap-x-6 gap-y-4 sm:grid-cols-3 lg:grid-cols-[repeat(auto-fill,minmax(120px,1fr))]",children:k.map(w)})});break e}p=s.jsx(Q,{title:t.title,children:t.rows.length===0?s.jsx("p",{className:"surface px-4 py-4 text-sm text-muted-foreground",children:l("taskBoard.analytics.nothingToShow")}):s.jsx("div",{className:"surface max-h-[480px] overflow-auto",children:s.jsxs(he,{variant:"flush",children:[s.jsx(ge,{children:s.jsx(W,{children:k.map(S=>{const{c:g}=S;return s.jsx(je,{className:D("whitespace-nowrap first:pl-4 last:pr-4",$.has(g)&&"text-right"),children:g==="Thread"?"":g},g)})})}),s.jsx(be,{children:t.rows.map((S,g)=>s.jsx(W,{children:k.map((w,O)=>{const{c:T,j:I}=w,N=S[I],K=f===I?S[m]:null,v=O===0?L(r,t.drills?.[g]??void 0,String(N??"")):void 0;return s.jsx(ye,{className:D("max-w-md truncate text-sm first:pl-4 last:pr-4",$.has(T)&&"text-right"),children:N==null?s.jsx("span",{className:"text-muted-foreground",children:"—"}):I===u?s.jsxs("a",{href:Ve(String(S[n]),String(N)),target:"_blank",rel:"noreferrer",className:"focus-ring inline-flex items-center gap-1 text-muted-foreground underline-offset-2 hover:text-foreground hover:underline",children:[l("taskBoard.analytics.openChat"),s.jsx(fe,{size:12})]}):v?s.jsx("button",{type:"button",onClick:v,className:"focus-ring text-left text-foreground underline-offset-2 hover:underline",children:String(N)}):K?s.jsx(le,{href:c?.(String(K)),className:"focus-ring text-foreground underline-offset-2 hover:underline",children:String(N)}):T==="Lane"&&typeof N=="string"?s.jsx(ie,{lane:N}):T==="Priority"&&typeof N=="string"?s.jsxs("span",{className:"flex items-center gap-2",children:[s.jsx(de,{drill:`priority:${N.toLowerCase()}`}),N]}):Ye.has(T)?s.jsx(Y,{variant:"muted",children:String(N)}):Qe.has(T)?s.jsx("span",{title:String(N),className:"font-mono text-xs text-muted-foreground",children:String(N)}):s.jsx("span",{className:D("tnum",typeof N=="string"&&re.test(N)&&"text-muted-foreground"),children:Me(N,t.units?.[T])})},T)})},`${t.title}-${g}`))})]})})})}e[8]=r,e[9]=n,e[10]=t.columns,e[11]=t.drills,e[12]=t.rows,e[13]=t.title,e[14]=t.units,e[15]=o,e[16]=l,e[17]=f,e[18]=c,e[19]=m,e[20]=u,e[21]=p,e[22]=j}else p=e[21],j=e[22];return j!==Symbol.for("react.early_return_sentinel")?j:p}function qe(a){const{c:e}=a;return e}function Je(a){return typeof a=="number"}function et(a){return a!==null}function tt(a,e){return+(e.c==="Task")-+(a.c==="Task")}function st(a,e){return{c:a,j:e}}function $t(a){const e=C.c(17),{section:t,taskHref:d}=a,o=B();let c;e[0]!==t.columns?(c=i=>t.columns.indexOf(i),e[0]=t.columns,e[1]=c):c=e[1];const r=c;if(t.rows.length===0){let i;e[2]!==o?(i=o("taskBoard.analytics.nothingToShow"),e[2]=o,e[3]=i):i=e[3];let u;return e[4]!==i?(u=s.jsx(A,{children:i}),e[4]=i,e[5]=u):u=e[5],u}let l;if(e[6]!==r||e[7]!==t.rows||e[8]!==o||e[9]!==d){let i;e[11]!==r||e[12]!==o||e[13]!==d?(i=u=>{const m=String(u[r("Task ID")]??""),x=u[r("Lane")],f=u[r("Picked up")],h=Number(u[r("Actions by people")]??0),p=Number(u[r("Failed QA")]??0),j=[typeof f=="string"?q(f):null,h>0&&o(h===1?"taskBoard.analytics.humanActionsOne":"taskBoard.analytics.humanActions",{n:String(h)})].filter(Boolean),b=s.jsxs(s.Fragment,{children:[s.jsxs("span",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[s.jsx("span",{className:"truncate text-sm text-foreground",children:String(u[r("Task")]??"")}),s.jsx("span",{className:"text-meta truncate",children:j.join(" · ")})]}),p>0&&s.jsxs(Y,{variant:"muted",children:[s.jsx(ve,{className:"text-destructive"}),p===1?o("taskBoard.analytics.failedQa"):o("taskBoard.analytics.failedQaTimes",{n:String(p)})]}),typeof x=="string"&&s.jsx(ie,{lane:x})]});return s.jsx("li",{className:"border-b border-border/50 last:border-b-0",children:d?s.jsx(le,{href:d(m),className:D(E,"flex items-center gap-3 rounded-md p-2"),children:b}):s.jsx("div",{className:"flex items-center gap-3 p-2",children:b})},m)},e[11]=r,e[12]=o,e[13]=d,e[14]=i):i=e[14],l=t.rows.map(i),e[6]=r,e[7]=t.rows,e[8]=o,e[9]=d,e[10]=l}else l=e[10];let n;return e[15]!==l?(n=s.jsx("ul",{className:"flex flex-col",children:l}),e[15]=l,e[16]=n):n=e[16],n}const nt={Type:$e,Priority:Ce,Tag:we,Sprint:Se,"Brief by":pe};function de(a){const e=C.c(10),{drill:t}=a;let d;e[0]!==t?(d=(t??"").split("&")[0]?.split(":")??[],e[0]=t,e[1]=d):d=e[1];const[o,c]=d;let r,l,n;if(e[2]!==o||e[3]!==c){n=Symbol.for("react.early_return_sentinel");e:{const u=o==="type"?Object.entries(Te).find(x=>{const[f]=x;return f===c})?.[1]:o==="priority"?Object.entries(De).find(x=>{const[f]=x;return f===c})?.[1]:void 0;if(!u){n=null;break e}r=u.icon,l=D("size-3.5 shrink-0",u.iconClassName)}e[2]=o,e[3]=c,e[4]=r,e[5]=l,e[6]=n}else r=e[4],l=e[5],n=e[6];if(n!==Symbol.for("react.early_return_sentinel"))return n;let i;return e[7]!==r||e[8]!==l?(i=s.jsx(r,{className:l}),e[7]=r,e[8]=l,e[9]=i):i=e[9],i}function lt(a){const e=C.c(11),{value:t,metric:d,color:o}=a,c=t??0,r=`${d.unit==="%"?Math.min(100,c):0}%`;let l;e[0]!==o||e[1]!==r?(l=s.jsx("span",{className:"h-1.5 min-w-0 flex-1 overflow-hidden rounded-full bg-muted",children:s.jsx("span",{className:"block h-full rounded-full",style:{width:r,backgroundColor:o}})}),e[0]=o,e[1]=r,e[2]=l):l=e[2];const n=t??null;let i;e[3]!==d.unit||e[4]!==n?(i=M(n,d.unit),e[3]=d.unit,e[4]=n,e[5]=i):i=e[5];let u;e[6]!==i?(u=s.jsx("span",{className:"tnum w-12 shrink-0 text-right text-sm text-foreground",children:i}),e[6]=i,e[7]=u):u=e[7];let m;return e[8]!==l||e[9]!==u?(m=s.jsxs("span",{className:"flex items-center gap-2",children:[l,u]}),e[8]=l,e[9]=u,e[10]=m):m=e[10],m}function at(a){const e=C.c(16),{section:t,onDrill:d}=a,o=B(),[c,r]=Z.useState(t.dimensions[0]?.label??"");let l;e[0]!==c||e[1]!==t.dimensions?(l=t.dimensions.find(f=>f.label===c)??t.dimensions[0],e[0]=c,e[1]=t.dimensions,e[2]=l):l=e[2];const n=l,i=`minmax(0,1fr) 56px repeat(${t.metrics.length}, minmax(96px, 168px))`;let u;e[3]!==n?.label||e[4]!==t.dimensions?(u=t.dimensions.length>1&&s.jsx(te,{type:"single",variant:"segmented",size:"sm",value:n?.label??"",onValueChange:f=>f&&r(f),children:t.dimensions.map(it)}),e[3]=n?.label,e[4]=t.dimensions,e[5]=u):u=e[5];let m;e[6]!==i||e[7]!==n||e[8]!==d||e[9]!==t.metrics||e[10]!==o?(m=!n||n.rows.length===0?s.jsx(A,{children:o("taskBoard.analytics.noDataInRange")}):s.jsxs("div",{className:"flex flex-col",children:[s.jsxs("div",{className:"text-meta grid items-center gap-4 border-b border-border/50 pb-2",style:{gridTemplateColumns:i},children:[s.jsx("span",{children:n.label}),s.jsx("span",{className:"text-right",children:o("taskBoard.analytics.tasks")}),t.metrics.map(rt)]}),n.rows.map(f=>{const h=L(d,f.drill,f.label),p=h?"button":"div";return s.jsxs(p,{type:h?"button":void 0,onClick:h,className:D("grid h-11 items-center gap-4 border-b border-border/50 last:border-b-0",h&&D(E,"-mx-2 w-[calc(100%+1rem)] rounded-md px-2")),style:{gridTemplateColumns:i},children:[s.jsxs("span",{className:"flex min-w-0 items-center gap-2 text-sm text-foreground",children:[s.jsx(de,{drill:f.drill}),s.jsx("span",{className:"truncate",children:f.label})]}),s.jsx("span",{className:"tnum text-right text-sm text-muted-foreground",children:f.count.toLocaleString()}),t.metrics.map(j=>s.jsx(lt,{value:f.values[j.key],metric:j,color:j.better==="up"?"var(--success)":"var(--destructive)"},j.key))]},f.label)})]}),e[6]=i,e[7]=n,e[8]=d,e[9]=t.metrics,e[10]=o,e[11]=m):m=e[11];let x;return e[12]!==t.title||e[13]!==u||e[14]!==m?(x=s.jsx(_,{title:t.title,aside:u,children:m}),e[12]=t.title,e[13]=u,e[14]=m,e[15]=x):x=e[15],x}function rt(a){return s.jsx("span",{className:"text-right",children:a.label},a.key)}function it(a){const e=nt[a.label];return s.jsxs(se,{value:a.label,children:[e&&s.jsx(e,{}),a.label]},a.label)}const ue=3;function ot(a){const e=C.c(26),{section:t,onDrill:d}=a,o=B(),[c,r]=Z.useState(t.metrics[0]?.key??"");let l;e[0]!==c||e[1]!==t.metrics?(l=t.metrics.find(y=>y.key===c)??t.metrics[0],e[0]=c,e[1]=t.metrics,e[2]=l):l=e[2];const n=l;if(!n)return null;const i=n.better==="up"?"var(--success)":"var(--destructive)";let u;e[3]!==t.cols||e[4]!==t.rows?(u=t.rows.length===t.cols.length&&t.rows.every((y,$)=>t.cols[$]===y),e[3]=t.cols,e[4]=t.rows,e[5]=u):u=e[5];const m=u,x=`minmax(96px, 1fr) repeat(${t.cols.length}, minmax(72px, 1fr))`,f=t.title;let h;e[6]!==o?(h=o("taskBoard.analytics.matrixCaption",{n:String(ue)}),e[6]=o,e[7]=h):h=e[7];let p;e[8]!==h?(p=s.jsx("span",{className:"text-meta",children:h}),e[8]=h,e[9]=p):p=e[9];let j;e[10]!==n.key||e[11]!==t.metrics?(j=t.metrics.length>1&&s.jsx(te,{type:"single",variant:"segmented",size:"sm",value:n.key,onValueChange:y=>y&&r(y),children:t.metrics.map(dt)}),e[10]=n.key,e[11]=t.metrics,e[12]=j):j=e[12];let b;e[13]!==x||e[14]!==n||e[15]!==d||e[16]!==t||e[17]!==m||e[18]!==o||e[19]!==i?(b=t.rows.length===0?s.jsx(A,{children:o("taskBoard.analytics.noDataInRange")}):s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("div",{className:"grid min-w-fit gap-1",style:{gridTemplateColumns:x},children:[s.jsxs("span",{className:"text-meta self-end pb-1",children:[t.rowLabel," / ",t.colLabel]}),t.cols.map(ct),t.rows.map((y,$)=>s.jsx(ut,{row:y,section:t,metric:n,tint:i,onDrill:d,upTo:m?$:void 0},y))]})}),e[13]=x,e[14]=n,e[15]=d,e[16]=t,e[17]=m,e[18]=o,e[19]=i,e[20]=b):b=e[20];let k;return e[21]!==t.title||e[22]!==p||e[23]!==j||e[24]!==b?(k=s.jsx(_,{title:f,caption:p,aside:j,children:b}),e[21]=t.title,e[22]=p,e[23]=j,e[24]=b,e[25]=k):k=e[25],k}function ct(a){return s.jsx("span",{className:"text-meta self-end pb-1 text-center",children:a},a)}function dt(a){return s.jsx(se,{value:a.key,children:a.label},a.key)}function ut(a){const e=C.c(22),{row:t,section:d,metric:o,tint:c,onDrill:r,upTo:l}=a,n=B();let i;e[0]!==t?(i=s.jsx("span",{className:"flex items-center truncate pr-2 text-sm text-foreground",children:t}),e[0]=t,e[1]=i):i=e[1];let u;if(e[2]!==o||e[3]!==r||e[4]!==t||e[5]!==d.cells||e[6]!==d.cols||e[7]!==n||e[8]!==c||e[9]!==l){let x;e[11]!==o||e[12]!==r||e[13]!==t||e[14]!==d.cells||e[15]!==n||e[16]!==c||e[17]!==l?(x=(f,h)=>{if(l!==void 0&&h>l)return s.jsx("span",{},f);const p=d.cells.find(y=>y.row===t&&y.col===f),j=p?.values[o.key]??null;if(!p)return s.jsx("span",{className:"flex h-14 items-center justify-center rounded-md bg-muted/40 text-sm text-muted-foreground",children:"—"},f);const b=j===null?0:Math.min(100,o.unit==="%"?j:0),k=L(r,p.drill,t===f?t:`${t} · ${f}`);return s.jsxs("button",{type:"button",onClick:k,disabled:!k,className:D("flex h-14 flex-col items-center justify-center rounded-md transition-opacity focus-ring",k&&"cursor-pointer hover:opacity-80",p.count<ue&&"opacity-50"),style:{backgroundColor:`color-mix(in oklch, ${c} ${Math.round(8+b*.5)}%, var(--muted))`},children:[s.jsx("span",{className:"tnum text-sm font-medium text-foreground",children:M(j,o.unit)}),s.jsx("span",{className:"text-meta",children:p.count===1?n("taskBoard.analytics.drillCountOne"):n("taskBoard.analytics.drillCount",{n:String(p.count)})})]},f)},e[11]=o,e[12]=r,e[13]=t,e[14]=d.cells,e[15]=n,e[16]=c,e[17]=l,e[18]=x):x=e[18],u=d.cols.map(x),e[2]=o,e[3]=r,e[4]=t,e[5]=d.cells,e[6]=d.cols,e[7]=n,e[8]=c,e[9]=l,e[10]=u}else u=e[10];let m;return e[19]!==i||e[20]!==u?(m=s.jsxs(s.Fragment,{children:[i,u]}),e[19]=i,e[20]=u,e[21]=m):m=e[21],m}function mt(){const a=C.c(2),e=B();let t;return a[0]!==e?(t=d=>Object.hasOwn(Oe,d)?ne(d,e).label:d,a[0]=e,a[1]=t):t=a[1],t}function ft(a){const e=C.c(21),{section:t,onDrill:d}=a,o=B(),c=mt(),r=t.unit??void 0,l=t.layout==="stacked";let n;if(e[0]!==c||e[1]!==d||e[2]!==t.baseline||e[3]!==t.categories||e[4]!==t.keys||e[5]!==t.title||e[6]!==l||e[7]!==o||e[8]!==r){let i;e[10]!==t.baseline?(i=g=>g!==t.baseline,e[10]=t.baseline,e[11]=i):i=e[11];const u=t.keys.filter(i),m=g=>g===t.baseline?"var(--border)":F[u.indexOf(g)%F.length]??"",x=Object.fromEntries(t.keys.map(g=>[g,{label:c(g),color:m(g)}]));let f;e[12]!==t.categories?(f=t.categories.map(pt),e[12]=t.categories,e[13]=f):f=e[13];const h=f;let p;e[14]!==d||e[15]!==t.categories?(p=g=>{const w=t.categories[g];w&&L(d,w.drill,w.label)?.()},e[14]=d,e[15]=t.categories,e[16]=p):p=e[16];const j=p,b=t.categories.some(xt)&&!!d,k=l?Math.max(120,t.categories.length*44+32):220;let y;e[17]===Symbol.for("react.memo_cache_sentinel")?(y={fill:"var(--muted)",opacity:.4},e[17]=y):y=e[17];let $;e[18]!==c||e[19]!==r?($=s.jsx(ee,{cursor:y,content:g=>{const{active:w,payload:O}=g;return s.jsx(oe,{active:w,payload:O,unit:r,nameOf:c})}}),e[18]=c,e[19]=r,e[20]=$):$=e[20];const S=$;n=s.jsx(_,{title:t.title,aside:s.jsx("ul",{className:"flex flex-wrap justify-end gap-x-3 gap-y-1",children:t.keys.map(g=>s.jsxs("li",{className:"text-meta flex items-center gap-1.5",children:[s.jsx("span",{className:"size-2 rounded-full",style:{backgroundColor:m(g)}}),c(g)]},g))}),children:h.length===0?s.jsx(A,{children:o("taskBoard.analytics.noDataInRange")}):s.jsx(J,{role:"img","aria-label":t.title,className:"w-full",style:{height:k},config:x,children:l?s.jsxs(G,{data:h,layout:"vertical",margin:{left:0,right:8,top:0},children:[s.jsx(H,{strokeDasharray:"4 4",stroke:"var(--border)",strokeOpacity:.5,horizontal:!1}),s.jsx(P,{type:"number",axisLine:!1,tickLine:!1,tick:R,tickFormatter:g=>X(g,r)}),s.jsx(V,{type:"category",dataKey:"label",axisLine:!1,tickLine:!1,tick:R,width:72}),S,t.keys.map((g,w)=>s.jsx(U,{dataKey:g,stackId:"all",fill:m(g),maxBarSize:22,radius:w===t.keys.length-1?[0,4,4,0]:0,animationDuration:300},g))]}):s.jsxs(G,{data:h,margin:{left:0,right:0,top:8},barGap:4,barCategoryGap:"28%",children:[s.jsx(H,{strokeDasharray:"4 4",stroke:"var(--border)",strokeOpacity:.5,vertical:!1}),s.jsx(P,{dataKey:"label",axisLine:!1,tickLine:!1,tick:R,tickMargin:8}),s.jsx(V,{orientation:"right",axisLine:!1,tickLine:!1,tick:R,allowDecimals:r!==void 0,tickFormatter:g=>X(g,r),width:48}),S,t.keys.map(g=>s.jsx(U,{dataKey:g,fill:m(g),maxBarSize:32,radius:[4,4,0,0],animationDuration:300,className:D(b&&"cursor-pointer"),onClick:(w,O)=>j(O)},g))]})})}),e[0]=c,e[1]=d,e[2]=t.baseline,e[3]=t.categories,e[4]=t.keys,e[5]=t.title,e[6]=l,e[7]=o,e[8]=r,e[9]=n}else n=e[9];return n}function xt(a){return a.drill}function pt(a){return{label:a.label,...a.values}}function Tt(a){return a.kind==="funnel"||a.kind==="bars"?"half":"full"}function Dt(a){const e=C.c(27),{section:t,threadLinks:d,showOrg:o,taskHref:c,range:r,onDrill:l}=a;switch(t.kind){case"stat":{let n;return e[0]!==l||e[1]!==t?(n=s.jsx(Re,{section:t,onDrill:l}),e[0]=l,e[1]=t,e[2]=n):n=e[2],n}case"series":{let n;return e[3]!==r||e[4]!==t?(n=s.jsx(ze,{section:t,range:r}),e[3]=r,e[4]=t,e[5]=n):n=e[5],n}case"funnel":{let n;return e[6]!==l||e[7]!==t?(n=s.jsx(Ue,{section:t,onDrill:l}),e[6]=l,e[7]=t,e[8]=n):n=e[8],n}case"bars":{let n;return e[9]!==l||e[10]!==t?(n=s.jsx(He,{section:t,onDrill:l}),e[9]=l,e[10]=t,e[11]=n):n=e[11],n}case"breakdown":{let n;return e[12]!==l||e[13]!==t?(n=s.jsx(at,{section:t,onDrill:l}),e[12]=l,e[13]=t,e[14]=n):n=e[14],n}case"matrix":{let n;return e[15]!==l||e[16]!==t?(n=s.jsx(ot,{section:t,onDrill:l}),e[15]=l,e[16]=t,e[17]=n):n=e[17],n}case"categories":{let n;return e[18]!==l||e[19]!==t?(n=s.jsx(ft,{section:t,onDrill:l}),e[18]=l,e[19]=t,e[20]=n):n=e[20],n}case"table":{let n;return e[21]!==l||e[22]!==t||e[23]!==o||e[24]!==c||e[25]!==d?(n=s.jsx(Ze,{section:t,threadLinks:d,showOrg:o,taskHref:c,onDrill:l}),e[21]=l,e[22]=t,e[23]=o,e[24]=c,e[25]=d,e[26]=n):n=e[26],n}default:return t}}export{R as A,$t as D,_ as M,Dt as S,Tt as s};
|
|
1
|
+
import{c as C,j as s,b as B,gZ as Q,m as D,F as fe,r as Z,d as xe,hJ as q,aA as pe}from"./index-CTKVsdNw.js";import{c as J,b as G,B as U,C as ee}from"./chart-BbYeI8N4.js";import{e as he,a as ge,b as W,T as je,d as be,c as ye}from"./table-DRfPsdaj.js";import{i as ve}from"./AlertCircle-DGhmQiH3.js";import{i as ke,n as Ne}from"./ArrowUp-B0lRrz50.js";import{n as Se,c as we,k as Ce,d as $e}from"./UserCheck01-BzJrArBA.js";import{T as te,a as se}from"./toggle-group-BcyNxcnc.js";import{B as Y}from"./badge-D4t_0yop.js";import{l as ne,T as Te,P as De,S as Oe}from"./config-CKam44yj.js";import{C as H,X as P,Y as V}from"./CartesianChart-DwY6QAby.js";import{A as Ie,a as Be}from"./AreaChart-DKWsvY6W.js";function le(a){const e=C.c(8),{href:t,className:d,children:o}=a,c=xe();let r;e[0]!==t||e[1]!==c?(r=n=>{!t||n.button!==0||n.metaKey||n.ctrlKey||n.shiftKey||(n.preventDefault(),c({href:t}))},e[0]=t,e[1]=c,e[2]=r):r=e[2];let l;return e[3]!==o||e[4]!==d||e[5]!==t||e[6]!==r?(l=s.jsx("a",{href:t,className:d,onClick:r,children:o}),e[3]=o,e[4]=d,e[5]=t,e[6]=r,e[7]=l):l=e[7],l}const L=(a,e,t)=>a&&e?()=>a({drill:e,label:t}):void 0,E="cursor-pointer text-left transition-colors hover:bg-accent focus-ring",F=["var(--chart-1)","var(--chart-2)","var(--chart-3)","var(--chart-4)","var(--chart-5)"],R={fontSize:11,fill:"var(--muted-foreground)",opacity:.7};function ae(a){const e=Math.abs(a);return e<60?`${Math.round(a)}s`:e<3600?`${Math.round(a/60)}m`:e<86400?`${(a/3600).toFixed(1)}h`:`${(a/86400).toFixed(1)}d`}function M(a,e){return a===null||Number.isNaN(a)?"—":e==="s"?ae(a):e==="%"?`${Math.round(a*10)/10}%`:e==="USD"?`$${a.toFixed(2)}`:a.toLocaleString()}function X(a,e){return e==="s"?ae(a):e==="%"?`${a}%`:e==="USD"?`$${a}`:a>=1e3?`${(a/1e3).toFixed(1)}k`:String(a)}const re=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}/,Le=/^\d{4}-\d{2}-\d{2}$/;function Me(a,e){return typeof a=="number"?M(a,e):Le.test(a)?new Date(`${a}T12:00:00Z`).toLocaleDateString(void 0,{month:"short",day:"numeric"}):re.test(a)?q(a):a}function _(a){const e=C.c(21),{title:t,value:d,caption:o,aside:c,children:r,onClick:l,className:n}=a,i=l?"button":"section",u=l?"button":void 0,m=l&&E;let x;e[0]!==n||e[1]!==m?(x=D("surface @container flex h-full w-full min-w-0 flex-col gap-6 px-4 pt-4 pb-5",m,n),e[0]=n,e[1]=m,e[2]=x):x=e[2];let f;e[3]!==t?(f=s.jsx("h3",{className:"text-sm text-foreground/70",children:t}),e[3]=t,e[4]=f):f=e[4];let h;e[5]!==d?(h=d!==void 0&&s.jsx("span",{className:"tnum whitespace-nowrap text-4xl font-normal text-foreground @max-xs:text-3xl @max-3xs:text-2xl",children:d}),e[5]=d,e[6]=h):h=e[6];let p;e[7]!==o||e[8]!==f||e[9]!==h?(p=s.jsxs("div",{className:"flex min-w-0 flex-col gap-1",children:[f,h,o]}),e[7]=o,e[8]=f,e[9]=h,e[10]=p):p=e[10];let j;e[11]!==c||e[12]!==p?(j=s.jsxs("div",{className:"flex items-start justify-between gap-4",children:[p,c]}),e[11]=c,e[12]=p,e[13]=j):j=e[13];let b;return e[14]!==i||e[15]!==r||e[16]!==l||e[17]!==u||e[18]!==x||e[19]!==j?(b=s.jsxs(i,{type:u,onClick:l,className:x,children:[j,r]}),e[14]=i,e[15]=r,e[16]=l,e[17]=u,e[18]=x,e[19]=j,e[20]=b):b=e[20],b}function ie(a){const e=C.c(9),{lane:t}=a,d=B();let o;e[0]!==t||e[1]!==d?(o=ne(t,d),e[0]=t,e[1]=d,e[2]=o):o=e[2];const{label:c,visual:r}=o,l=r.icon;let n;e[3]!==l||e[4]!==r.iconClassName?(n=s.jsx(l,{className:r.iconClassName}),e[3]=l,e[4]=r.iconClassName,e[5]=n):n=e[5];let i;return e[6]!==c||e[7]!==n?(i=s.jsxs(Y,{variant:"muted",children:[n,c]}),e[6]=c,e[7]=n,e[8]=i):i=e[8],i}function A(a){const e=C.c(2),{children:t}=a;let d;return e[0]!==t?(d=s.jsx("div",{className:"flex h-20 items-center justify-center text-sm text-muted-foreground",children:t}),e[0]=t,e[1]=d):d=e[1],d}function _e(a){const e=C.c(21),{value:t,previous:d,unit:o,better:c}=a,r=B();if(t===null||d===null||d===void 0){let p;e[0]!==r?(p=r("taskBoard.analytics.noPrior"),e[0]=r,e[1]=p):p=e[1];let j;return e[2]!==p?(j=s.jsx("span",{className:"text-meta",children:p}),e[2]=p,e[3]=j):j=e[3],j}const l=Math.round((t-d)*10)/10,n=c==="down"?l<0:l>0;let i;e[4]!==l||e[5]!==r||e[6]!==o?(i=o==="%"?r("taskBoard.analytics.points",{n:String(Math.abs(l))}):M(Math.abs(l),o),e[4]=l,e[5]=r,e[6]=o,e[7]=i):i=e[7];const u=i;let m;e[8]!==u||e[9]!==c||e[10]!==l||e[11]!==n||e[12]!==r?(m=l===0?r("taskBoard.analytics.unchanged"):s.jsxs("span",{className:D("inline-flex items-center gap-0.5 font-medium",c&&(n?"text-success":"text-destructive")),children:[l>0?s.jsx(ke,{size:12}):s.jsx(Ne,{size:12}),u]}),e[8]=u,e[9]=c,e[10]=l,e[11]=n,e[12]=r,e[13]=m):m=e[13];let x;e[14]!==r?(x=r("taskBoard.analytics.vsPrevious"),e[14]=r,e[15]=x):x=e[15];let f;e[16]!==x?(f=s.jsx("span",{children:x}),e[16]=x,e[17]=f):f=e[17];let h;return e[18]!==m||e[19]!==f?(h=s.jsxs("span",{className:"text-meta inline-flex items-center gap-1",children:[m,f]}),e[18]=m,e[19]=f,e[20]=h):h=e[20],h}const Ae={1:"lg:grid-cols-1",2:"lg:grid-cols-2",3:"lg:grid-cols-3",5:"lg:grid-cols-5",6:"lg:grid-cols-3",9:"lg:grid-cols-3"};function Re(a){const e=C.c(10),{section:t,onDrill:d}=a,o=Ae[t.values.length]??"lg:grid-cols-4";let c;e[0]!==o?(c=D("grid grid-cols-2 gap-4",o),e[0]=o,e[1]=c):c=e[1];let r;if(e[2]!==d||e[3]!==t.values){let n;e[5]!==d?(n=i=>s.jsx(_,{title:i.label,value:M(i.value,i.unit),onClick:L(d,i.drill,i.label),caption:s.jsxs(s.Fragment,{children:[i.detail&&s.jsx("span",{className:"text-sm text-muted-foreground",children:i.detail}),i.previous!==void 0&&s.jsx(_e,{value:i.value,previous:i.previous,unit:i.unit,better:i.better})]})},i.label),e[5]=d,e[6]=n):n=e[6],r=t.values.map(n),e[2]=d,e[3]=t.values,e[4]=r}else r=e[4];let l;return e[7]!==c||e[8]!==r?(l=s.jsx("div",{className:c,children:r}),e[7]=c,e[8]=r,e[9]=l):l=e[9],l}function Ke(a){return Array.from(new Set(a.flatMap(e=>Object.keys(e)))).filter(e=>e!=="t").sort()}function Fe(a,e){const t=e.filter(d=>a.some(o=>typeof o[d]=="number"&&o[d]!==0));return t.length>0?t:e}function Ee(a,e,t){const d=new Map(a.map(l=>[String(l.t??"").slice(0,10),l])),o=new Date(`${t.from.slice(0,10)}T00:00:00.000Z`),c=t.to.slice(0,10),r=[];for(;o.toISOString().slice(0,10)<=c;){const l=o.toISOString().slice(0,10);r.push(d.get(l)??{t:o.toISOString(),...Object.fromEntries(e.map(n=>[n,0]))}),o.setUTCDate(o.getUTCDate()+1)}return r}function oe(a){const e=C.c(17),{active:t,payload:d,unit:o,nameOf:c}=a,r=c===void 0?String:c;if(!t||!d?.length)return null;const l=d[0]?.payload,n=l?.t;let i;e[0]!==l?.label||e[1]!==n?(i=typeof n=="string"?new Date(n).toLocaleDateString(void 0,{month:"short",day:"numeric"}):String(l?.label??""),e[0]=l?.label,e[1]=n,e[2]=i):i=e[2];let u;e[3]!==i?(u=s.jsx("div",{className:"mb-1 text-xs text-muted-foreground",children:i}),e[3]=i,e[4]=u):u=e[4];let m;if(e[5]!==r||e[6]!==d||e[7]!==o){let h;e[9]!==r||e[10]!==o?(h=p=>s.jsxs("div",{className:"flex items-center gap-1.5 text-xs",children:[s.jsx("span",{className:"size-2 shrink-0 rounded-full",style:{backgroundColor:p.color}}),s.jsx("span",{className:"text-muted-foreground",children:r(String(p.dataKey))}),s.jsx("span",{className:"tnum ml-auto pl-3 font-medium",children:M(typeof p.value=="number"?p.value:null,o)})]},String(p.dataKey)),e[9]=r,e[10]=o,e[11]=h):h=e[11],m=d.map(h),e[5]=r,e[6]=d,e[7]=o,e[8]=m}else m=e[8];let x;e[12]!==m?(x=s.jsx("div",{className:"flex flex-col gap-1",children:m}),e[12]=m,e[13]=x):x=e[13];let f;return e[14]!==u||e[15]!==x?(f=s.jsxs("div",{className:"rounded-lg bg-popover px-3 py-2 shadow-soft",children:[u,x]}),e[14]=u,e[15]=x,e[16]=f):f=e[16],f}function ze(a){const e=C.c(27),{section:t,range:d}=a,o=B(),c=t.unit??void 0,r=c!=="%"&&c!=="s";let l;if(e[0]!==r||e[1]!==d||e[2]!==t.points||e[3]!==t.title||e[4]!==o||e[5]!==c){const n=Ke(t.points),i=r?Fe(t.points,n):n,u=v=>F[n.indexOf(v)%F.length],m=Object.fromEntries(i.map(v=>[v,{label:v,color:u(v)}])),f=(r&&d?Ee(t.points,n,d):t.points).map(Ge);let h;if(e[7]!==t.title){let v;e[9]===Symbol.for("react.memo_cache_sentinel")?(v=/\W+/g,e[9]=v):v=e[9],h=t.title.replace(v,"-"),e[7]=t.title,e[8]=h}else h=e[8];const p=`analytics-${h}`;let j;e[10]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx(H,{strokeDasharray:"4 4",stroke:"var(--border)",strokeOpacity:.5,vertical:!1}),e[10]=j):j=e[10];const b=j;let k;e[11]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx(P,{dataKey:"label",axisLine:!1,tickLine:!1,tick:R,minTickGap:24,tickMargin:8}),e[11]=k):k=e[11];const y=k;let $;e[12]!==c?($=c==="%"?[0,100]:[0,"auto"],e[12]=c,e[13]=$):$=e[13];const S=c!==void 0;let g;e[14]!==c?(g=v=>X(v,c),e[14]=c,e[15]=g):g=e[15];let w;e[16]!==$||e[17]!==S||e[18]!==g?(w=s.jsx(V,{orientation:"right",axisLine:!1,tickLine:!1,tick:R,domain:$,allowDecimals:S,tickFormatter:g,width:48,tickCount:5}),e[16]=$,e[17]=S,e[18]=g,e[19]=w):w=e[19];const O=w;let T;e[20]!==r?(T=r?{fill:"var(--muted)",opacity:.4}:{stroke:"var(--border)",strokeDasharray:"4 4"},e[20]=r,e[21]=T):T=e[21];let I;e[22]!==c?(I=v=>{const{active:z,payload:me}=v;return s.jsx(oe,{active:z,payload:me,unit:c})},e[22]=c,e[23]=I):I=e[23];let N;e[24]!==I||e[25]!==T?(N=s.jsx(ee,{cursor:T,content:I}),e[24]=I,e[25]=T,e[26]=N):N=e[26];const K=N;l=s.jsx(_,{title:t.title,aside:i.length>1&&s.jsx("ul",{className:"flex flex-wrap justify-end gap-x-3 gap-y-1",children:i.map(v=>s.jsxs("li",{className:"text-meta flex items-center gap-1.5",children:[s.jsx("span",{className:"size-2 rounded-full",style:{backgroundColor:u(v)}}),v]},v))}),children:f.length===0?s.jsx(A,{children:o("taskBoard.analytics.noDataInRange")}):s.jsx(J,{role:"img","aria-label":t.title,className:"h-[140px] w-full md:h-[180px]",config:m,children:r?s.jsxs(G,{data:f,margin:{left:0,right:0,top:8},children:[b,y,O,K,i.map((v,z)=>s.jsx(U,{dataKey:v,stackId:"day",fill:u(v),maxBarSize:24,radius:z===i.length-1?[4,4,0,0]:0,animationDuration:300},v))]}):s.jsxs(Ie,{data:f,margin:{left:0,right:0,top:8},children:[i.length===1&&s.jsx("defs",{children:s.jsxs("linearGradient",{id:p,x1:"0",y1:"0",x2:"0",y2:"1",children:[s.jsx("stop",{offset:"0%",stopColor:u(i[0]??""),stopOpacity:.2}),s.jsx("stop",{offset:"100%",stopColor:u(i[0]??""),stopOpacity:0})]})}),b,y,O,K,i.map(v=>s.jsx(Be,{type:"linear",dataKey:v,stroke:u(v),strokeWidth:2,fill:i.length===1?`url(#${p})`:"none",dot:f.length===1?{r:4}:!1,activeDot:{r:4,stroke:"var(--background)",strokeWidth:2},connectNulls:!0,animationDuration:300},v))]})})}),e[0]=r,e[1]=d,e[2]=t.points,e[3]=t.title,e[4]=o,e[5]=c,e[6]=l}else l=e[6];return l}function Ge(a){return{...a,label:new Date(String(a.t??"")).toLocaleDateString(void 0,{month:"short",day:"numeric"})}}function ce(a){const e=C.c(25),{label:t,note:d,share:o,value:c,fill:r,color:l,onClick:n}=a,i=n?"button":"div",u=n?"button":void 0;let m;e[0]!==n?(m=n&&D(E,"-mx-2 w-[calc(100%+1rem)] rounded-md px-2"),e[0]=n,e[1]=m):m=e[1];let x;e[2]!==m?(x=D("flex h-10 w-full items-center gap-3",m),e[2]=m,e[3]=x):x=e[3];let f;e[4]!==d?(f=d&&s.jsx("span",{className:"text-meta ml-2",children:d}),e[4]=d,e[5]=f):f=e[5];let h;e[6]!==t||e[7]!==f?(h=s.jsxs("span",{className:"min-w-0 flex-1 truncate text-sm text-muted-foreground",children:[t,f]}),e[6]=t,e[7]=f,e[8]=h):h=e[8];const p=`${Math.max(0,Math.min(100,r))}%`;let j;e[9]!==l||e[10]!==p?(j=s.jsx("span",{className:"h-1.5 w-20 shrink-0 overflow-hidden rounded-full bg-muted",children:s.jsx("span",{className:"block h-full rounded-full",style:{width:p,backgroundColor:l}})}),e[9]=l,e[10]=p,e[11]=j):j=e[11];let b;e[12]!==o?(b=o!==void 0&&s.jsx("span",{className:"tnum w-16 shrink-0 text-right text-sm text-foreground/40",children:o}),e[12]=o,e[13]=b):b=e[13];let k;e[14]!==c?(k=s.jsx("span",{className:"tnum w-8 shrink-0 text-right text-sm text-foreground",children:c}),e[14]=c,e[15]=k):k=e[15];let y;return e[16]!==i||e[17]!==n||e[18]!==u||e[19]!==x||e[20]!==h||e[21]!==j||e[22]!==b||e[23]!==k?(y=s.jsx("li",{className:"border-b border-border/50 last:border-b-0",children:s.jsxs(i,{type:u,onClick:n,className:x,children:[h,j,b,k]})}),e[16]=i,e[17]=n,e[18]=u,e[19]=x,e[20]=h,e[21]=j,e[22]=b,e[23]=k,e[24]=y):y=e[24],y}function Ue(a){const e=C.c(17),{section:t,onDrill:d}=a,o=B(),c=t.stages[0]?.value??0,r=t.stages.at(-1)?.value??0;let l;e[0]!==r||e[1]!==c?(l=c?`${Math.round(100*r/c)}%`:"—",e[0]=r,e[1]=c,e[2]=l):l=e[2];let n;e[3]!==r||e[4]!==c||e[5]!==o?(n=c>0&&s.jsx("span",{className:"text-meta",children:o("taskBoard.analytics.funnelCaption",{end:String(r),start:String(c)})}),e[3]=r,e[4]=c,e[5]=o,e[6]=n):n=e[6];let i;e[7]!==d||e[8]!==t.stages||e[9]!==c||e[10]!==o?(i=c===0?s.jsx(A,{children:o("taskBoard.analytics.noDataInRange")}):s.jsx("ol",{className:"flex flex-col",children:t.stages.map((m,x)=>{const f=t.stages[x-1]?.value,h=f===void 0?0:f-m.value;return s.jsx(ce,{label:m.label,note:h>0?o("taskBoard.analytics.dropped",{n:String(h)}):void 0,share:`${Math.round(100*m.value/c)}%`,value:m.value.toLocaleString(),fill:100*m.value/c,color:"var(--chart-2)",onClick:L(d,m.drill,m.label)},m.label)})}),e[7]=d,e[8]=t.stages,e[9]=c,e[10]=o,e[11]=i):i=e[11];let u;return e[12]!==t.title||e[13]!==l||e[14]!==n||e[15]!==i?(u=s.jsx(_,{title:t.title,value:l,caption:n,children:i}),e[12]=t.title,e[13]=l,e[14]=n,e[15]=i,e[16]=u):u=e[16],u}function He(a){const e=C.c(19),{section:t,onDrill:d}=a,o=B();let c;e[0]!==t.bars?(c=Math.max(0,...t.bars.map(Pe)),e[0]=t.bars,e[1]=c):c=e[1];const r=c;let l;e[2]!==t.total?.value?(l=t.total?.value.toLocaleString(),e[2]=t.total?.value,e[3]=l):l=e[3];let n;e[4]!==t.total?(n=t.total&&s.jsx("span",{className:"text-meta",children:t.total.label}),e[4]=t.total,e[5]=n):n=e[5];let i;e[6]!==t.unit?(i=t.unit&&s.jsx("span",{className:"text-meta",children:t.unit}),e[6]=t.unit,e[7]=i):i=e[7];let u;e[8]!==r||e[9]!==d||e[10]!==t.bars||e[11]!==o?(u=t.bars.length===0?s.jsx(A,{children:o("taskBoard.analytics.nobodyStepped")}):s.jsx("ul",{className:"flex flex-col",children:t.bars.map(x=>s.jsx(ce,{label:x.label,note:x.note,share:x.detail,value:x.value.toLocaleString(),fill:r?100*x.value/r:0,color:"var(--chart-1)",onClick:L(d,x.drill,x.label)},x.label))}),e[8]=r,e[9]=d,e[10]=t.bars,e[11]=o,e[12]=u):u=e[12];let m;return e[13]!==t.title||e[14]!==l||e[15]!==n||e[16]!==i||e[17]!==u?(m=s.jsx(_,{title:t.title,value:l,caption:n,aside:i,children:u}),e[13]=t.title,e[14]=l,e[15]=n,e[16]=i,e[17]=u,e[18]=m):m=e[18],m}function Pe(a){return a.value}function Ve(a,e){return`/${encodeURIComponent(a)}/${encodeURIComponent(e)}`}const Xe=new Set(["Org ID","Task ID"]),Ye=new Set(["Run outcome","Failure kind","Moved in by","State"]),Qe=new Set(["Error","Signature"]),We=new Set(["Org","Orgs"]);function Ze(a){const e=C.c(32),{section:t,threadLinks:d,showOrg:o,taskHref:c,onDrill:r}=a,l=B(),n=t.columns.indexOf("Org");let i;e[0]!==n||e[1]!==t.columns||e[2]!==d?(i=d&&n>=0?t.columns.indexOf("Thread"):-1,e[0]=n,e[1]=t.columns,e[2]=d,e[3]=i):i=e[3];const u=i,m=t.columns.indexOf("Task ID");let x;e[4]!==t.columns||e[5]!==c||e[6]!==m?(x=c&&m>=0?t.columns.indexOf("Task"):-1,e[4]=t.columns,e[5]=c,e[6]=m,e[7]=x):x=e[7];const f=x,h=t.columns;let p,j;if(e[8]!==r||e[9]!==n||e[10]!==t.columns||e[11]!==t.drills||e[12]!==t.rows||e[13]!==t.title||e[14]!==t.units||e[15]!==o||e[16]!==l||e[17]!==f||e[18]!==c||e[19]!==m||e[20]!==u){j=Symbol.for("react.early_return_sentinel");e:{let b;e[23]!==o?(b=S=>{const{c:g}=S;return!Xe.has(g)&&(o!==!1||!We.has(g))},e[23]=o,e[24]=b):b=e[24];const k=h.map(st).filter(b).sort(tt);let y;e[25]!==t.rows?(y=S=>{const{j:g}=S,w=t.rows.map(O=>O[g]).filter(et);return w.length>0&&w.every(Je)},e[25]=t.rows,e[26]=y):y=e[26];const $=new Set(k.filter(y).map(qe));if(t.rows.length===1&&k.every(S=>{const{c:g}=S;return $.has(g)})){let S;e[27]!==t.rows[0]?(S=t.rows[0]??[],e[27]=t.rows[0],e[28]=S):S=e[28];const g=S;let w;e[29]!==g||e[30]!==t.units?(w=O=>{const{c:T,j:I}=O,N=g[I];return s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsx("dt",{className:"text-meta",children:T}),s.jsx("dd",{className:"tnum text-2xl text-foreground",children:typeof N=="number"?M(N,t.units?.[T]):"—"})]},T)},e[29]=g,e[30]=t.units,e[31]=w):w=e[31],j=s.jsx(Q,{title:t.title,children:s.jsx("dl",{className:"surface grid px-4 pt-4 pb-5 grid-cols-2 gap-x-6 gap-y-4 sm:grid-cols-3 lg:grid-cols-[repeat(auto-fill,minmax(120px,1fr))]",children:k.map(w)})});break e}p=s.jsx(Q,{title:t.title,children:t.rows.length===0?s.jsx("p",{className:"surface px-4 py-4 text-sm text-muted-foreground",children:l("taskBoard.analytics.nothingToShow")}):s.jsx("div",{className:"surface max-h-[480px] overflow-auto",children:s.jsxs(he,{variant:"flush",children:[s.jsx(ge,{children:s.jsx(W,{children:k.map(S=>{const{c:g}=S;return s.jsx(je,{className:D("whitespace-nowrap first:pl-4 last:pr-4",$.has(g)&&"text-right"),children:g==="Thread"?"":g},g)})})}),s.jsx(be,{children:t.rows.map((S,g)=>s.jsx(W,{children:k.map((w,O)=>{const{c:T,j:I}=w,N=S[I],K=f===I?S[m]:null,v=O===0?L(r,t.drills?.[g]??void 0,String(N??"")):void 0;return s.jsx(ye,{className:D("max-w-md truncate text-sm first:pl-4 last:pr-4",$.has(T)&&"text-right"),children:N==null?s.jsx("span",{className:"text-muted-foreground",children:"—"}):I===u?s.jsxs("a",{href:Ve(String(S[n]),String(N)),target:"_blank",rel:"noreferrer",className:"focus-ring inline-flex items-center gap-1 text-muted-foreground underline-offset-2 hover:text-foreground hover:underline",children:[l("taskBoard.analytics.openChat"),s.jsx(fe,{size:12})]}):v?s.jsx("button",{type:"button",onClick:v,className:"focus-ring text-left text-foreground underline-offset-2 hover:underline",children:String(N)}):K?s.jsx(le,{href:c?.(String(K)),className:"focus-ring text-foreground underline-offset-2 hover:underline",children:String(N)}):T==="Lane"&&typeof N=="string"?s.jsx(ie,{lane:N}):T==="Priority"&&typeof N=="string"?s.jsxs("span",{className:"flex items-center gap-2",children:[s.jsx(de,{drill:`priority:${N.toLowerCase()}`}),N]}):Ye.has(T)?s.jsx(Y,{variant:"muted",children:String(N)}):Qe.has(T)?s.jsx("span",{title:String(N),className:"font-mono text-xs text-muted-foreground",children:String(N)}):s.jsx("span",{className:D("tnum",typeof N=="string"&&re.test(N)&&"text-muted-foreground"),children:Me(N,t.units?.[T])})},T)})},`${t.title}-${g}`))})]})})})}e[8]=r,e[9]=n,e[10]=t.columns,e[11]=t.drills,e[12]=t.rows,e[13]=t.title,e[14]=t.units,e[15]=o,e[16]=l,e[17]=f,e[18]=c,e[19]=m,e[20]=u,e[21]=p,e[22]=j}else p=e[21],j=e[22];return j!==Symbol.for("react.early_return_sentinel")?j:p}function qe(a){const{c:e}=a;return e}function Je(a){return typeof a=="number"}function et(a){return a!==null}function tt(a,e){return+(e.c==="Task")-+(a.c==="Task")}function st(a,e){return{c:a,j:e}}function $t(a){const e=C.c(17),{section:t,taskHref:d}=a,o=B();let c;e[0]!==t.columns?(c=i=>t.columns.indexOf(i),e[0]=t.columns,e[1]=c):c=e[1];const r=c;if(t.rows.length===0){let i;e[2]!==o?(i=o("taskBoard.analytics.nothingToShow"),e[2]=o,e[3]=i):i=e[3];let u;return e[4]!==i?(u=s.jsx(A,{children:i}),e[4]=i,e[5]=u):u=e[5],u}let l;if(e[6]!==r||e[7]!==t.rows||e[8]!==o||e[9]!==d){let i;e[11]!==r||e[12]!==o||e[13]!==d?(i=u=>{const m=String(u[r("Task ID")]??""),x=u[r("Lane")],f=u[r("Picked up")],h=Number(u[r("Actions by people")]??0),p=Number(u[r("Failed QA")]??0),j=[typeof f=="string"?q(f):null,h>0&&o(h===1?"taskBoard.analytics.humanActionsOne":"taskBoard.analytics.humanActions",{n:String(h)})].filter(Boolean),b=s.jsxs(s.Fragment,{children:[s.jsxs("span",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[s.jsx("span",{className:"truncate text-sm text-foreground",children:String(u[r("Task")]??"")}),s.jsx("span",{className:"text-meta truncate",children:j.join(" · ")})]}),p>0&&s.jsxs(Y,{variant:"muted",children:[s.jsx(ve,{className:"text-destructive"}),p===1?o("taskBoard.analytics.failedQa"):o("taskBoard.analytics.failedQaTimes",{n:String(p)})]}),typeof x=="string"&&s.jsx(ie,{lane:x})]});return s.jsx("li",{className:"border-b border-border/50 last:border-b-0",children:d?s.jsx(le,{href:d(m),className:D(E,"flex items-center gap-3 rounded-md p-2"),children:b}):s.jsx("div",{className:"flex items-center gap-3 p-2",children:b})},m)},e[11]=r,e[12]=o,e[13]=d,e[14]=i):i=e[14],l=t.rows.map(i),e[6]=r,e[7]=t.rows,e[8]=o,e[9]=d,e[10]=l}else l=e[10];let n;return e[15]!==l?(n=s.jsx("ul",{className:"flex flex-col",children:l}),e[15]=l,e[16]=n):n=e[16],n}const nt={Type:$e,Priority:Ce,Tag:we,Sprint:Se,"Brief by":pe};function de(a){const e=C.c(10),{drill:t}=a;let d;e[0]!==t?(d=(t??"").split("&")[0]?.split(":")??[],e[0]=t,e[1]=d):d=e[1];const[o,c]=d;let r,l,n;if(e[2]!==o||e[3]!==c){n=Symbol.for("react.early_return_sentinel");e:{const u=o==="type"?Object.entries(Te).find(x=>{const[f]=x;return f===c})?.[1]:o==="priority"?Object.entries(De).find(x=>{const[f]=x;return f===c})?.[1]:void 0;if(!u){n=null;break e}r=u.icon,l=D("size-3.5 shrink-0",u.iconClassName)}e[2]=o,e[3]=c,e[4]=r,e[5]=l,e[6]=n}else r=e[4],l=e[5],n=e[6];if(n!==Symbol.for("react.early_return_sentinel"))return n;let i;return e[7]!==r||e[8]!==l?(i=s.jsx(r,{className:l}),e[7]=r,e[8]=l,e[9]=i):i=e[9],i}function lt(a){const e=C.c(11),{value:t,metric:d,color:o}=a,c=t??0,r=`${d.unit==="%"?Math.min(100,c):0}%`;let l;e[0]!==o||e[1]!==r?(l=s.jsx("span",{className:"h-1.5 min-w-0 flex-1 overflow-hidden rounded-full bg-muted",children:s.jsx("span",{className:"block h-full rounded-full",style:{width:r,backgroundColor:o}})}),e[0]=o,e[1]=r,e[2]=l):l=e[2];const n=t??null;let i;e[3]!==d.unit||e[4]!==n?(i=M(n,d.unit),e[3]=d.unit,e[4]=n,e[5]=i):i=e[5];let u;e[6]!==i?(u=s.jsx("span",{className:"tnum w-12 shrink-0 text-right text-sm text-foreground",children:i}),e[6]=i,e[7]=u):u=e[7];let m;return e[8]!==l||e[9]!==u?(m=s.jsxs("span",{className:"flex items-center gap-2",children:[l,u]}),e[8]=l,e[9]=u,e[10]=m):m=e[10],m}function at(a){const e=C.c(16),{section:t,onDrill:d}=a,o=B(),[c,r]=Z.useState(t.dimensions[0]?.label??"");let l;e[0]!==c||e[1]!==t.dimensions?(l=t.dimensions.find(f=>f.label===c)??t.dimensions[0],e[0]=c,e[1]=t.dimensions,e[2]=l):l=e[2];const n=l,i=`minmax(0,1fr) 56px repeat(${t.metrics.length}, minmax(96px, 168px))`;let u;e[3]!==n?.label||e[4]!==t.dimensions?(u=t.dimensions.length>1&&s.jsx(te,{type:"single",variant:"segmented",size:"sm",value:n?.label??"",onValueChange:f=>f&&r(f),children:t.dimensions.map(it)}),e[3]=n?.label,e[4]=t.dimensions,e[5]=u):u=e[5];let m;e[6]!==i||e[7]!==n||e[8]!==d||e[9]!==t.metrics||e[10]!==o?(m=!n||n.rows.length===0?s.jsx(A,{children:o("taskBoard.analytics.noDataInRange")}):s.jsxs("div",{className:"flex flex-col",children:[s.jsxs("div",{className:"text-meta grid items-center gap-4 border-b border-border/50 pb-2",style:{gridTemplateColumns:i},children:[s.jsx("span",{children:n.label}),s.jsx("span",{className:"text-right",children:o("taskBoard.analytics.tasks")}),t.metrics.map(rt)]}),n.rows.map(f=>{const h=L(d,f.drill,f.label),p=h?"button":"div";return s.jsxs(p,{type:h?"button":void 0,onClick:h,className:D("grid h-11 items-center gap-4 border-b border-border/50 last:border-b-0",h&&D(E,"-mx-2 w-[calc(100%+1rem)] rounded-md px-2")),style:{gridTemplateColumns:i},children:[s.jsxs("span",{className:"flex min-w-0 items-center gap-2 text-sm text-foreground",children:[s.jsx(de,{drill:f.drill}),s.jsx("span",{className:"truncate",children:f.label})]}),s.jsx("span",{className:"tnum text-right text-sm text-muted-foreground",children:f.count.toLocaleString()}),t.metrics.map(j=>s.jsx(lt,{value:f.values[j.key],metric:j,color:j.better==="up"?"var(--success)":"var(--destructive)"},j.key))]},f.label)})]}),e[6]=i,e[7]=n,e[8]=d,e[9]=t.metrics,e[10]=o,e[11]=m):m=e[11];let x;return e[12]!==t.title||e[13]!==u||e[14]!==m?(x=s.jsx(_,{title:t.title,aside:u,children:m}),e[12]=t.title,e[13]=u,e[14]=m,e[15]=x):x=e[15],x}function rt(a){return s.jsx("span",{className:"text-right",children:a.label},a.key)}function it(a){const e=nt[a.label];return s.jsxs(se,{value:a.label,children:[e&&s.jsx(e,{}),a.label]},a.label)}const ue=3;function ot(a){const e=C.c(26),{section:t,onDrill:d}=a,o=B(),[c,r]=Z.useState(t.metrics[0]?.key??"");let l;e[0]!==c||e[1]!==t.metrics?(l=t.metrics.find(y=>y.key===c)??t.metrics[0],e[0]=c,e[1]=t.metrics,e[2]=l):l=e[2];const n=l;if(!n)return null;const i=n.better==="up"?"var(--success)":"var(--destructive)";let u;e[3]!==t.cols||e[4]!==t.rows?(u=t.rows.length===t.cols.length&&t.rows.every((y,$)=>t.cols[$]===y),e[3]=t.cols,e[4]=t.rows,e[5]=u):u=e[5];const m=u,x=`minmax(96px, 1fr) repeat(${t.cols.length}, minmax(72px, 1fr))`,f=t.title;let h;e[6]!==o?(h=o("taskBoard.analytics.matrixCaption",{n:String(ue)}),e[6]=o,e[7]=h):h=e[7];let p;e[8]!==h?(p=s.jsx("span",{className:"text-meta",children:h}),e[8]=h,e[9]=p):p=e[9];let j;e[10]!==n.key||e[11]!==t.metrics?(j=t.metrics.length>1&&s.jsx(te,{type:"single",variant:"segmented",size:"sm",value:n.key,onValueChange:y=>y&&r(y),children:t.metrics.map(dt)}),e[10]=n.key,e[11]=t.metrics,e[12]=j):j=e[12];let b;e[13]!==x||e[14]!==n||e[15]!==d||e[16]!==t||e[17]!==m||e[18]!==o||e[19]!==i?(b=t.rows.length===0?s.jsx(A,{children:o("taskBoard.analytics.noDataInRange")}):s.jsx("div",{className:"overflow-x-auto",children:s.jsxs("div",{className:"grid min-w-fit gap-1",style:{gridTemplateColumns:x},children:[s.jsxs("span",{className:"text-meta self-end pb-1",children:[t.rowLabel," / ",t.colLabel]}),t.cols.map(ct),t.rows.map((y,$)=>s.jsx(ut,{row:y,section:t,metric:n,tint:i,onDrill:d,upTo:m?$:void 0},y))]})}),e[13]=x,e[14]=n,e[15]=d,e[16]=t,e[17]=m,e[18]=o,e[19]=i,e[20]=b):b=e[20];let k;return e[21]!==t.title||e[22]!==p||e[23]!==j||e[24]!==b?(k=s.jsx(_,{title:f,caption:p,aside:j,children:b}),e[21]=t.title,e[22]=p,e[23]=j,e[24]=b,e[25]=k):k=e[25],k}function ct(a){return s.jsx("span",{className:"text-meta self-end pb-1 text-center",children:a},a)}function dt(a){return s.jsx(se,{value:a.key,children:a.label},a.key)}function ut(a){const e=C.c(22),{row:t,section:d,metric:o,tint:c,onDrill:r,upTo:l}=a,n=B();let i;e[0]!==t?(i=s.jsx("span",{className:"flex items-center truncate pr-2 text-sm text-foreground",children:t}),e[0]=t,e[1]=i):i=e[1];let u;if(e[2]!==o||e[3]!==r||e[4]!==t||e[5]!==d.cells||e[6]!==d.cols||e[7]!==n||e[8]!==c||e[9]!==l){let x;e[11]!==o||e[12]!==r||e[13]!==t||e[14]!==d.cells||e[15]!==n||e[16]!==c||e[17]!==l?(x=(f,h)=>{if(l!==void 0&&h>l)return s.jsx("span",{},f);const p=d.cells.find(y=>y.row===t&&y.col===f),j=p?.values[o.key]??null;if(!p)return s.jsx("span",{className:"flex h-14 items-center justify-center rounded-md bg-muted/40 text-sm text-muted-foreground",children:"—"},f);const b=j===null?0:Math.min(100,o.unit==="%"?j:0),k=L(r,p.drill,t===f?t:`${t} · ${f}`);return s.jsxs("button",{type:"button",onClick:k,disabled:!k,className:D("flex h-14 flex-col items-center justify-center rounded-md transition-opacity focus-ring",k&&"cursor-pointer hover:opacity-80",p.count<ue&&"opacity-50"),style:{backgroundColor:`color-mix(in oklch, ${c} ${Math.round(8+b*.5)}%, var(--muted))`},children:[s.jsx("span",{className:"tnum text-sm font-medium text-foreground",children:M(j,o.unit)}),s.jsx("span",{className:"text-meta",children:p.count===1?n("taskBoard.analytics.drillCountOne"):n("taskBoard.analytics.drillCount",{n:String(p.count)})})]},f)},e[11]=o,e[12]=r,e[13]=t,e[14]=d.cells,e[15]=n,e[16]=c,e[17]=l,e[18]=x):x=e[18],u=d.cols.map(x),e[2]=o,e[3]=r,e[4]=t,e[5]=d.cells,e[6]=d.cols,e[7]=n,e[8]=c,e[9]=l,e[10]=u}else u=e[10];let m;return e[19]!==i||e[20]!==u?(m=s.jsxs(s.Fragment,{children:[i,u]}),e[19]=i,e[20]=u,e[21]=m):m=e[21],m}function mt(){const a=C.c(2),e=B();let t;return a[0]!==e?(t=d=>Object.hasOwn(Oe,d)?ne(d,e).label:d,a[0]=e,a[1]=t):t=a[1],t}function ft(a){const e=C.c(21),{section:t,onDrill:d}=a,o=B(),c=mt(),r=t.unit??void 0,l=t.layout==="stacked";let n;if(e[0]!==c||e[1]!==d||e[2]!==t.baseline||e[3]!==t.categories||e[4]!==t.keys||e[5]!==t.title||e[6]!==l||e[7]!==o||e[8]!==r){let i;e[10]!==t.baseline?(i=g=>g!==t.baseline,e[10]=t.baseline,e[11]=i):i=e[11];const u=t.keys.filter(i),m=g=>g===t.baseline?"var(--border)":F[u.indexOf(g)%F.length]??"",x=Object.fromEntries(t.keys.map(g=>[g,{label:c(g),color:m(g)}]));let f;e[12]!==t.categories?(f=t.categories.map(pt),e[12]=t.categories,e[13]=f):f=e[13];const h=f;let p;e[14]!==d||e[15]!==t.categories?(p=g=>{const w=t.categories[g];w&&L(d,w.drill,w.label)?.()},e[14]=d,e[15]=t.categories,e[16]=p):p=e[16];const j=p,b=t.categories.some(xt)&&!!d,k=l?Math.max(120,t.categories.length*44+32):220;let y;e[17]===Symbol.for("react.memo_cache_sentinel")?(y={fill:"var(--muted)",opacity:.4},e[17]=y):y=e[17];let $;e[18]!==c||e[19]!==r?($=s.jsx(ee,{cursor:y,content:g=>{const{active:w,payload:O}=g;return s.jsx(oe,{active:w,payload:O,unit:r,nameOf:c})}}),e[18]=c,e[19]=r,e[20]=$):$=e[20];const S=$;n=s.jsx(_,{title:t.title,aside:s.jsx("ul",{className:"flex flex-wrap justify-end gap-x-3 gap-y-1",children:t.keys.map(g=>s.jsxs("li",{className:"text-meta flex items-center gap-1.5",children:[s.jsx("span",{className:"size-2 rounded-full",style:{backgroundColor:m(g)}}),c(g)]},g))}),children:h.length===0?s.jsx(A,{children:o("taskBoard.analytics.noDataInRange")}):s.jsx(J,{role:"img","aria-label":t.title,className:"w-full",style:{height:k},config:x,children:l?s.jsxs(G,{data:h,layout:"vertical",margin:{left:0,right:8,top:0},children:[s.jsx(H,{strokeDasharray:"4 4",stroke:"var(--border)",strokeOpacity:.5,horizontal:!1}),s.jsx(P,{type:"number",axisLine:!1,tickLine:!1,tick:R,tickFormatter:g=>X(g,r)}),s.jsx(V,{type:"category",dataKey:"label",axisLine:!1,tickLine:!1,tick:R,width:72}),S,t.keys.map((g,w)=>s.jsx(U,{dataKey:g,stackId:"all",fill:m(g),maxBarSize:22,radius:w===t.keys.length-1?[0,4,4,0]:0,animationDuration:300},g))]}):s.jsxs(G,{data:h,margin:{left:0,right:0,top:8},barGap:4,barCategoryGap:"28%",children:[s.jsx(H,{strokeDasharray:"4 4",stroke:"var(--border)",strokeOpacity:.5,vertical:!1}),s.jsx(P,{dataKey:"label",axisLine:!1,tickLine:!1,tick:R,tickMargin:8}),s.jsx(V,{orientation:"right",axisLine:!1,tickLine:!1,tick:R,allowDecimals:r!==void 0,tickFormatter:g=>X(g,r),width:48}),S,t.keys.map(g=>s.jsx(U,{dataKey:g,fill:m(g),maxBarSize:32,radius:[4,4,0,0],animationDuration:300,className:D(b&&"cursor-pointer"),onClick:(w,O)=>j(O)},g))]})})}),e[0]=c,e[1]=d,e[2]=t.baseline,e[3]=t.categories,e[4]=t.keys,e[5]=t.title,e[6]=l,e[7]=o,e[8]=r,e[9]=n}else n=e[9];return n}function xt(a){return a.drill}function pt(a){return{label:a.label,...a.values}}function Tt(a){return a.kind==="funnel"||a.kind==="bars"?"half":"full"}function Dt(a){const e=C.c(27),{section:t,threadLinks:d,showOrg:o,taskHref:c,range:r,onDrill:l}=a;switch(t.kind){case"stat":{let n;return e[0]!==l||e[1]!==t?(n=s.jsx(Re,{section:t,onDrill:l}),e[0]=l,e[1]=t,e[2]=n):n=e[2],n}case"series":{let n;return e[3]!==r||e[4]!==t?(n=s.jsx(ze,{section:t,range:r}),e[3]=r,e[4]=t,e[5]=n):n=e[5],n}case"funnel":{let n;return e[6]!==l||e[7]!==t?(n=s.jsx(Ue,{section:t,onDrill:l}),e[6]=l,e[7]=t,e[8]=n):n=e[8],n}case"bars":{let n;return e[9]!==l||e[10]!==t?(n=s.jsx(He,{section:t,onDrill:l}),e[9]=l,e[10]=t,e[11]=n):n=e[11],n}case"breakdown":{let n;return e[12]!==l||e[13]!==t?(n=s.jsx(at,{section:t,onDrill:l}),e[12]=l,e[13]=t,e[14]=n):n=e[14],n}case"matrix":{let n;return e[15]!==l||e[16]!==t?(n=s.jsx(ot,{section:t,onDrill:l}),e[15]=l,e[16]=t,e[17]=n):n=e[17],n}case"categories":{let n;return e[18]!==l||e[19]!==t?(n=s.jsx(ft,{section:t,onDrill:l}),e[18]=l,e[19]=t,e[20]=n):n=e[20],n}case"table":{let n;return e[21]!==l||e[22]!==t||e[23]!==o||e[24]!==c||e[25]!==d?(n=s.jsx(Ze,{section:t,threadLinks:d,showOrg:o,taskHref:c,onDrill:l}),e[21]=l,e[22]=t,e[23]=o,e[24]=c,e[25]=d,e[26]=n):n=e[26],n}default:return t}}export{R as A,$t as D,_ as M,Dt as S,Tt as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as L,m as Ie,j as s,b as G,r as P,h as Re,a6 as ze,W as tt,av as st,T as Fe,dT as it,i as lt,i9 as nt,gZ as at,gK as Le,aR as ot,aQ as rt,aN as ct,aL as dt,aM as ut,aP as ft,aO as mt,bc as pt,B as Q,t as ke,gl as xt,x as Be,aW as Ge,w as qe,I as Me,y as Qe,v as He,D as Ve}from"./index-3KPWvxje.js";import{i as gt}from"./AlertCircle-BfvLVKvB.js";import{e as yt}from"./agent-icon-DkxgdTq2.js";import{i as We}from"./Key01-c2N0ukl0.js";import{s as Ye}from"./Plus-CGf9Pj2S.js";import{s as ht}from"./Trash01-gZBIPYql.js";import{E as jt}from"./empty-state-Djnlj7TD.js";import{L as Ee}from"./label-BCLmidyU.js";import{B as Ae}from"./badge-BOmoymVs.js";import{I as Kt,R as bt}from"./index-CBiOENMk.js";import{c as vt,b as Ct,a as St,d as Nt,S as _t}from"./select-CTqPYIcK.js";import{u as Ue}from"./use-mcp-client-BiREHqsd.js";import{u as Dt}from"./use-mcp-tools-B7KRwa9Y.js";import{t as wt}from"./ChevronDown-C0Ct97Nx.js";import{C as At}from"./checkbox-CRIAj4CS.js";import{S as kt}from"./search-input-DHj1Riv2.js";import{I as Tt}from"./integration-icon-DRSyNBxT.js";import{T as Ot}from"./tool-set-selector-C-PEaWm1.js";import{b as Et}from"./use-connection-CvM0KMvL.js";import{u as It,b as zt,a as Pt}from"./use-api-keys-1fBZVEJV.js";function Lt(o){const e=L.c(8);let l,i;e[0]!==o?({className:l,...i}=o,e[0]=o,e[1]=l,e[2]=i):(l=e[1],i=e[2]);let t;e[3]!==l?(t=Ie("grid gap-3",l),e[3]=l,e[4]=t):t=e[4];let a;return e[5]!==i||e[6]!==t?(a=s.jsx(bt,{"data-slot":"radio-group",className:t,...i}),e[5]=i,e[6]=t,e[7]=a):a=e[7],a}function $t(o){const e=L.c(9);let l,i;e[0]!==o?({className:l,...i}=o,e[0]=o,e[1]=l,e[2]=i):(l=e[1],i=e[2]);let t;e[3]!==l?(t=Ie("group relative inline-flex size-4 shrink-0 items-center justify-center rounded-full shadow-[inset_0_0_0_1.5px_var(--input)] transition-[background-color,box-shadow] duration-150 hover:shadow-[inset_0_0_0_1.5px_color-mix(in_oklch,var(--foreground)_30%,var(--input))] data-[state=checked]:bg-primary data-[state=checked]:shadow-[inset_0_0_0_1.5px_var(--primary)] aria-invalid:shadow-[inset_0_0_0_1.5px_var(--destructive)] focus-ring disabled:opacity-50 motion-reduce:transition-none",l),e[3]=l,e[4]=t):t=e[4];let a;e[5]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx("span",{className:"bg-primary-foreground size-1.5 scale-0 rounded-full transition-transform duration-200 ease-[cubic-bezier(0.34,1.56,0.64,1)] group-data-[state=checked]:scale-100 motion-reduce:transition-none"}),e[5]=a):a=e[5];let n;return e[6]!==i||e[7]!==t?(n=s.jsx(Kt,{"data-slot":"radio-group-item",className:t,...i,children:a}),e[6]=i,e[7]=t,e[8]=n):n=e[8],n}const $e=["7","30","90","365","never"],Rt=86400;function Ft(o){return o.filter(e=>e.annotations?.readOnlyHint===!0).map(e=>e.name)}const Ne="self";function Bt(o,e,l){return o==="full"?{"*":["*"]}:o==="read-only"?{[Ne]:e}:Object.fromEntries(Object.entries(l).filter(([,i])=>i.length>0))}function Xe(o){return Object.values(o).reduce((e,l)=>e+l.length,0)}function Gt(o){return o==="never"?void 0:Number(o)*Rt}function qt(o){const e=i=>{const t=o[i];return Array.isArray(t)?t:[]};if(e("*").includes("*")||e("self").includes("*"))return{kind:"full"};const l=new Set;for(const i of Object.keys(o))for(const t of e(i))t.startsWith("!")||l.add(`${i}:${t}`);return{kind:"tools",count:l.size}}function Mt(o,e){return o.name.toLowerCase().includes(e)||(o.description?.toLowerCase().includes(e)??!1)}function Ze(o){const e=L.c(56),{resource:l,title:i,icon:t,tools:a,selected:n,onChange:m,query:c,onExpand:r}=o,d=G(),[p,x]=P.useState(!1);let u;e[0]!==c||e[1]!==i?(u=!c||i.toLowerCase().includes(c),e[0]=c,e[1]=i,e[2]=u):u=e[2];const f=u;let j;e[3]!==c||e[4]!==f||e[5]!==a?(j=a===null?null:f?a:a.filter(A=>Mt(A,c)),e[3]=c,e[4]=f,e[5]=a,e[6]=j):j=e[6];const y=j,g=p||!!c&&(y?.length??0)>0,S=!f&&!y?.length;let K;e[7]!==n?(K=new Set(n),e[7]=n,e[8]=K):K=e[8];const h=K,v=a!==null&&a.length>0&&n.length>=a.length;let b;e[9]!==r||e[10]!==p?(b=()=>{p||r?.(),x(!p)},e[9]=r,e[10]=p,e[11]=b):b=e[11];const C=b;let N;e[12]!==m||e[13]!==r||e[14]!==n.length||e[15]!==a?(N=()=>{if(n.length>0){m([]);return}if(a===null){r?.(),x(!0);return}m(a.map(Qt))},e[12]=m,e[13]=r,e[14]=n.length,e[15]=a,e[16]=N):N=e[16];const _=N;if(S)return null;let w;e[17]!==g?(w=g?s.jsx(wt,{size:16,className:"shrink-0 text-muted-foreground"}):s.jsx(st,{size:16,className:"shrink-0 text-muted-foreground"}),e[17]=g,e[18]=w):w=e[18];let D;e[19]!==t||e[20]!==i?(D=s.jsx(Tt,{icon:t,name:i,size:"xs"}),e[19]=t,e[20]=i,e[21]=D):D=e[21];let k;e[22]!==i?(k=s.jsx("span",{className:"min-w-0 flex-1 truncate text-sm font-medium",children:i}),e[22]=i,e[23]=k):k=e[23];let T;e[24]!==n.length||e[25]!==d||e[26]!==a?(T=(a!==null||n.length>0)&&s.jsx("span",{className:"shrink-0 text-xs text-muted-foreground",children:a===null?n.length:d("settings.apiKeys.toolsGroupCount",{count:n.length,total:a.length})}),e[24]=n.length,e[25]=d,e[26]=a,e[27]=T):T=e[27];let R;e[28]!==g||e[29]!==w||e[30]!==D||e[31]!==k||e[32]!==T||e[33]!==C?(R=s.jsxs("button",{type:"button",onClick:C,"aria-expanded":g,className:"flex min-w-0 flex-1 cursor-pointer items-center gap-3 py-2.5 pl-3 text-left",children:[w,D,k,T]}),e[28]=g,e[29]=w,e[30]=D,e[31]=k,e[32]=T,e[33]=C,e[34]=R):R=e[34];const F=v?!0:n.length>0?"indeterminate":!1;let O;e[35]!==d||e[36]!==i?(O=d("settings.apiKeys.toolsSelectGroup",{name:i}),e[35]=d,e[36]=i,e[37]=O):O=e[37];let E;e[38]!==F||e[39]!==O||e[40]!==_?(E=s.jsx(At,{checked:F,onCheckedChange:_,"aria-label":O}),e[38]=F,e[39]=O,e[40]=_,e[41]=E):E=e[41];let I;e[42]!==R||e[43]!==E?(I=s.jsxs("div",{className:"flex items-center gap-3 pr-4 hover:bg-accent",children:[R,E]}),e[42]=R,e[43]=E,e[44]=I):I=e[44];let z;e[45]!==g||e[46]!==m||e[47]!==l||e[48]!==n||e[49]!==h||e[50]!==d||e[51]!==y?(z=g&&s.jsx("div",{className:"space-y-1 border-t border-border p-1",children:y===null?s.jsx("div",{className:"flex justify-center py-4",children:s.jsx(Re,{className:"size-4 text-muted-foreground"})}):y.length===0?s.jsx("p",{className:"px-3 py-4 text-center text-xs text-muted-foreground",children:d("settings.apiKeys.toolsNone")}):y.map(A=>s.jsx(Ot,{connectionId:l,tool:A,isSelected:h.has(A.name),onToggle:()=>m(h.has(A.name)?n.filter(H=>H!==A.name):[...n,A.name]),badge:A.annotations?.readOnlyHint===!0&&s.jsx(Ae,{variant:"muted",size:"sm",children:d("settings.apiKeys.readOnlyBadge")})},A.name))}),e[45]=g,e[46]=m,e[47]=l,e[48]=n,e[49]=h,e[50]=d,e[51]=y,e[52]=z):z=e[52];let $;return e[53]!==I||e[54]!==z?($=s.jsxs("div",{className:"overflow-hidden rounded-lg border border-border bg-card",children:[I,z]}),e[53]=I,e[54]=z,e[55]=$):$=e[55],$}function Qt(o){return o.name}function Ht(o){const e=L.c(21),{connection:l,selected:i,onChange:t,query:a}=o,{org:n}=ze();let m;e[0]!==n.id||e[1]!==n.slug?(m={connectionId:Fe,orgId:n.id,orgSlug:n.slug},e[0]=n.id,e[1]=n.slug,e[2]=m):m=e[2];const c=Ue(m),[r,d]=P.useState(!1);let p;e[3]!==c||e[4]!==l.id||e[5]!==n.id?(p=it(n.id,"CONNECTIONS",l.id,c),e[3]=c,e[4]=l.id,e[5]=n.id,e[6]=p):p=e[6];let x;e[7]!==r||e[8]!==p?(x={...p,enabled:r},e[7]=r,e[8]=p,e[9]=x):x=e[9];const{data:u}=lt(x);let f;e[10]!==u?(f=u?u.item?.tools??[]:null,e[10]=u,e[11]=f):f=e[11];const j=f;let y;e[12]===Symbol.for("react.memo_cache_sentinel")?(y=()=>d(!0),e[12]=y):y=e[12];let g;return e[13]!==l.icon||e[14]!==l.id||e[15]!==l.title||e[16]!==t||e[17]!==a||e[18]!==i||e[19]!==j?(g=s.jsx(Ze,{resource:l.id,title:l.title,icon:l.icon,tools:j,selected:i,onChange:t,query:a,onExpand:y}),e[13]=l.icon,e[14]=l.id,e[15]=l.title,e[16]=t,e[17]=a,e[18]=i,e[19]=j,e[20]=g):g=e[20],g}function Vt(o){const e=L.c(14),{toolSet:l,onChange:i,query:t}=o,{org:a}=ze();let n;e[0]!==a.id?(n=tt.SELF(a.id),e[0]=a.id,e[1]=n):n=e[1];const m=n,c=Et();let r;if(e[2]!==i||e[3]!==t||e[4]!==m||e[5]!==c||e[6]!==l){let d;e[8]!==m?(d=u=>u.id!==m,e[8]=m,e[9]=d):d=e[9];const p=c.filter(d);let x;e[10]!==i||e[11]!==t||e[12]!==l?(x=u=>s.jsx(Ht,{connection:u,selected:l[u.id]??[],onChange:f=>i(u.id,f),query:t},u.id),e[10]=i,e[11]=t,e[12]=l,e[13]=x):x=e[13],r=p.map(x),e[2]=i,e[3]=t,e[4]=m,e[5]=c,e[6]=l,e[7]=r}else r=e[7];return r}function Wt(o){const e=L.c(41),{studioTools:l,toolSet:i,onChange:t}=o,a=G(),[n,m]=P.useState("");let c;e[0]!==n?(c=n.trim().toLowerCase(),e[0]=n,e[1]=c):c=e[1];const r=P.useDeferredValue(c);let d;e[2]!==t||e[3]!==i?(d=(_,w)=>t({...i,[_]:w}),e[2]=t,e[3]=i,e[4]=d):d=e[4];const p=d;let x;e[5]!==a?(x=a("settings.apiKeys.toolsSearch"),e[5]=a,e[6]=x):x=e[6];let u;e[7]!==n||e[8]!==x?(u=s.jsx(kt,{value:n,onChange:m,placeholder:x,className:"flex-1"}),e[7]=n,e[8]=x,e[9]=u):u=e[9];let f;e[10]!==a||e[11]!==i?(f=a("settings.apiKeys.toolsSelected",{count:Xe(i)}),e[10]=a,e[11]=i,e[12]=f):f=e[12];let j;e[13]!==f?(j=s.jsx("span",{className:"shrink-0 text-xs text-muted-foreground",children:f}),e[13]=f,e[14]=j):j=e[14];let y;e[15]!==u||e[16]!==j?(y=s.jsxs("div",{className:"flex items-center gap-3",children:[u,j]}),e[15]=u,e[16]=j,e[17]=y):y=e[17];let g;e[18]!==a?(g=a("settings.apiKeys.studioTools"),e[18]=a,e[19]=g):g=e[19];let S;e[20]!==i?(S=i[Ne]??[],e[20]=i,e[21]=S):S=e[21];let K;e[22]!==p?(K=_=>p(Ne,_),e[22]=p,e[23]=K):K=e[23];let h;e[24]!==r||e[25]!==l||e[26]!==K||e[27]!==g||e[28]!==S?(h=s.jsx(Ze,{resource:Ne,title:g,icon:"/favicon.svg",tools:l,selected:S,onChange:K,query:r}),e[24]=r,e[25]=l,e[26]=K,e[27]=g,e[28]=S,e[29]=h):h=e[29];let v;e[30]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx("div",{className:"flex justify-center py-3",children:s.jsx(Re,{className:"size-4 text-muted-foreground"})}),e[30]=v):v=e[30];let b;e[31]!==r||e[32]!==p||e[33]!==i?(b=s.jsx(P.Suspense,{fallback:v,children:s.jsx(Vt,{toolSet:i,onChange:p,query:r})}),e[31]=r,e[32]=p,e[33]=i,e[34]=b):b=e[34];let C;e[35]!==h||e[36]!==b?(C=s.jsxs("div",{className:"max-h-80 space-y-2 overflow-y-auto",children:[h,b]}),e[35]=h,e[36]=b,e[37]=C):C=e[37];let N;return e[38]!==C||e[39]!==y?(N=s.jsxs("div",{className:"space-y-2",children:[y,C]}),e[38]=C,e[39]=y,e[40]=N):N=e[40],N}function Je(o){const e=L.c(6),{error:l}=o,i=G();let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(gt,{size:16}),e[0]=t):t=e[0];let a;e[1]!==l.message||e[2]!==i?(a=i("settings.apiKeys.failedToLoadError",{error:l.message}),e[1]=l.message,e[2]=i,e[3]=a):a=e[3];let n;return e[4]!==a?(n=s.jsxs("div",{className:"p-4 rounded-md bg-destructive/10 text-destructive flex items-center gap-2",children:[t,s.jsx("span",{className:"text-sm font-medium",children:a})]}),e[4]=a,e[5]=n):n=e[5],n}function Yt(o){const e=L.c(31),{apiKey:l,onDelete:i}=o,t=G(),a=qt(l.permissions),n=l.expiresAt?new Date(l.expiresAt):null,[m]=P.useState(Ut),c=n!==null&&n.getTime()<=m,r=n?.toLocaleDateString()??"",d="flex items-center justify-between gap-4 px-4 py-3",p="flex items-center gap-3 min-w-0";let x;e[0]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx("div",{className:"size-9 rounded-md bg-muted flex items-center justify-center shrink-0",children:s.jsx(We,{size:16,className:"text-muted-foreground"})}),e[0]=x):x=e[0];const u="min-w-0";let f;e[1]!==l.name?(f=s.jsx("span",{className:"font-medium text-sm truncate",children:l.name}),e[1]=l.name,e[2]=f):f=e[2];const j=a.kind==="full"?s.jsx(Ae,{variant:"warning",size:"sm",children:t("settings.apiKeys.accessFull")}):s.jsx(Ae,{variant:"muted",size:"sm",children:t("settings.apiKeys.toolCount",{count:a.count})});let y;e[3]!==c||e[4]!==t?(y=c&&s.jsx(Ae,{variant:"destructive",size:"sm",children:t("settings.apiKeys.expired")}),e[3]=c,e[4]=t,e[5]=y):y=e[5];let g;e[6]!==f||e[7]!==j||e[8]!==y?(g=s.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[f,j,y]}),e[6]=f,e[7]=j,e[8]=y,e[9]=g):g=e[9];const S="text-xs text-muted-foreground mt-0.5";let K;e[10]!==l.createdAt||e[11]!==t?(K=t("settings.apiKeys.createdAt",{date:new Date(l.createdAt).toLocaleDateString()}),e[10]=l.createdAt,e[11]=t,e[12]=K):K=e[12];const h=" · ",v=l.expiresAt?c?t("settings.apiKeys.expiredOn",{date:r}):t("settings.apiKeys.expiresOn",{date:r}):t("settings.apiKeys.neverExpires");let b;e[13]!==K||e[14]!==v?(b=s.jsxs("p",{className:S,children:[K,h,v]}),e[13]=K,e[14]=v,e[15]=b):b=e[15];let C;e[16]!==b||e[17]!==g?(C=s.jsxs("div",{className:u,children:[g,b]}),e[16]=b,e[17]=g,e[18]=C):C=e[18];let N;e[19]!==C||e[20]!==x?(N=s.jsxs("div",{className:p,children:[x,C]}),e[19]=C,e[20]=x,e[21]=N):N=e[21];let _;e[22]!==t?(_=t("settings.apiKeys.deleteKey"),e[22]=t,e[23]=_):_=e[23];let w;e[24]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(ht,{size:14}),e[24]=w):w=e[24];let D;e[25]!==i||e[26]!==_?(D=s.jsx(Q,{variant:"ghost-destructive",size:"icon",className:"shrink-0",onClick:i,"aria-label":_,children:w}),e[25]=i,e[26]=_,e[27]=D):D=e[27];let k;return e[28]!==N||e[29]!==D?(k=s.jsxs("li",{className:d,children:[N,D]}),e[28]=N,e[29]=D,e[30]=k):k=e[30],k}function Ut(){return Date.now()}function Xt(o){const e=L.c(15),{onCreate:l}=o,i=G();let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(We,{}),e[0]=t):t=e[0];let a;e[1]!==i?(a=i("settings.apiKeys.emptyTitle"),e[1]=i,e[2]=a):a=e[2];let n;e[3]!==i?(n=i("settings.apiKeys.emptyDescription"),e[3]=i,e[4]=n):n=e[4];let m;e[5]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx(Ye,{size:14}),e[5]=m):m=e[5];let c;e[6]!==i?(c=i("settings.apiKeys.newKey"),e[6]=i,e[7]=c):c=e[7];let r;e[8]!==l||e[9]!==c?(r=s.jsxs(Q,{onClick:l,size:"sm",children:[m,c]}),e[8]=l,e[9]=c,e[10]=r):r=e[10];let d;return e[11]!==a||e[12]!==n||e[13]!==r?(d=s.jsx(xt,{children:s.jsx(jt,{size:"inline",icon:t,title:a,description:n,children:r})}),e[11]=a,e[12]=n,e[13]=r,e[14]=d):d=e[14],d}function Zt(o){const e=L.c(40),{createdKey:l,onClose:i}=o,t=G(),a=l!==null;let n;e[0]!==i?(n=C=>!C&&i(),e[0]=i,e[1]=n):n=e[1];let m;e[2]!==t?(m=t("settings.apiKeys.createdTitle"),e[2]=t,e[3]=m):m=e[3];let c;e[4]!==m?(c=s.jsx(Be,{children:m}),e[4]=m,e[5]=c):c=e[5];let r;e[6]!==t?(r=t("settings.apiKeys.createdDescription"),e[6]=t,e[7]=r):r=e[7];let d;e[8]!==r?(d=s.jsx(Ge,{children:r}),e[8]=r,e[9]=d):d=e[9];let p;e[10]!==c||e[11]!==d?(p=s.jsxs(qe,{children:[c,d]}),e[10]=c,e[11]=d,e[12]=p):p=e[12];const x=l?.key??"";let u;e[13]!==x?(u=s.jsx(Me,{readOnly:!0,value:x,className:"font-mono text-xs"}),e[13]=x,e[14]=u):u=e[14];let f;e[15]!==l||e[16]!==t?(f=()=>{l&&(navigator.clipboard?.writeText(l.key),ke.success(t("settings.apiKeys.copied")))},e[15]=l,e[16]=t,e[17]=f):f=e[17];let j;e[18]!==t?(j=t("settings.apiKeys.copyKey"),e[18]=t,e[19]=j):j=e[19];let y;e[20]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx(yt,{size:14}),e[20]=y):y=e[20];let g;e[21]!==f||e[22]!==j?(g=s.jsx(Q,{type:"button",variant:"outline",size:"icon",onClick:f,"aria-label":j,children:y}),e[21]=f,e[22]=j,e[23]=g):g=e[23];let S;e[24]!==g||e[25]!==u?(S=s.jsxs("div",{className:"flex items-center gap-2",children:[u,g]}),e[24]=g,e[25]=u,e[26]=S):S=e[26];let K;e[27]!==t?(K=t("settings.apiKeys.done"),e[27]=t,e[28]=K):K=e[28];let h;e[29]!==i||e[30]!==K?(h=s.jsx(Qe,{children:s.jsx(Q,{onClick:i,children:K})}),e[29]=i,e[30]=K,e[31]=h):h=e[31];let v;e[32]!==S||e[33]!==h||e[34]!==p?(v=s.jsxs(He,{className:"sm:max-w-lg",children:[p,S,h]}),e[32]=S,e[33]=h,e[34]=p,e[35]=v):v=e[35];let b;return e[36]!==a||e[37]!==v||e[38]!==n?(b=s.jsx(Ve,{open:a,onOpenChange:n,children:v}),e[36]=a,e[37]=v,e[38]=n,e[39]=b):b=e[39],b}function Jt(o){const e=L.c(131),{onClose:l,onCreated:i}=o,t=G(),{org:a}=ze();let n;e[0]!==a.id||e[1]!==a.slug?(n={connectionId:Fe,orgId:a.id,orgSlug:a.slug},e[0]=a.id,e[1]=a.slug,e[2]=n):n=e[2];const m=Ue(n);let c;e[3]!==m?(c={client:m},e[3]=m,e[4]=c):c=e[4];const r=Dt(c),d=[...r.data?.tools??[]].sort(ts),p=Ft(d),[x,u]=P.useState(""),[f,j]=P.useState("read-only"),[y,g]=P.useState(null),[S,K]=P.useState("90"),h=Pt(),v=y??{[Ne]:p},b=f!=="full",C=!b||r.isSuccess,N=f==="full"||(f==="read-only"?p.length:Xe(v))>0;let _;e[5]!==h.isPending||e[6]!==N||e[7]!==x||e[8]!==C?(_=!!x.trim()&&C&&N&&!h.isPending,e[5]=h.isPending,e[6]=N,e[7]=x,e[8]=C,e[9]=_):_=e[9];const w=_,D=async function(q){if(q.preventDefault(),!!w)try{const M=await h.mutateAsync({name:x.trim(),permissions:Bt(f,p,v),expiresIn:Gt(S)});l(),i(M)}catch(M){const Pe=M;ke.error(Pe instanceof Error?Pe.message:t("settings.apiKeys.failedToCreateKey"))}},k="read-only";let T;e[10]!==t?(T=t("settings.apiKeys.accessReadOnly"),e[10]=t,e[11]=T):T=e[11];const R=t("settings.apiKeys.accessReadOnlyDescription",{count:p.length});let F;e[12]!==T||e[13]!==R?(F={value:k,label:T,description:R},e[12]=T,e[13]=R,e[14]=F):F=e[14];let O;e[15]!==t?(O=t("settings.apiKeys.accessCustom"),e[15]=t,e[16]=O):O=e[16];let E;e[17]!==t?(E=t("settings.apiKeys.accessCustomDescription"),e[17]=t,e[18]=E):E=e[18];let I;e[19]!==E||e[20]!==O?(I={value:"custom",label:O,description:E},e[19]=E,e[20]=O,e[21]=I):I=e[21];let z;e[22]!==t?(z=t("settings.apiKeys.accessFull"),e[22]=t,e[23]=z):z=e[23];let $;e[24]!==t?($=t("settings.apiKeys.accessFullDescription"),e[24]=t,e[25]=$):$=e[25];let A;e[26]!==z||e[27]!==$?(A={value:"full",label:z,description:$},e[26]=z,e[27]=$,e[28]=A):A=e[28];let H;e[29]!==I||e[30]!==A||e[31]!==F?(H=[F,I,A],e[29]=I,e[30]=A,e[31]=F,e[32]=H):H=e[32];const V=H;let W;e[33]!==t?(W=t("settings.apiKeys.expiryDays",{days:7}),e[33]=t,e[34]=W):W=e[34];let Y;e[35]!==t?(Y=t("settings.apiKeys.expiryDays",{days:30}),e[35]=t,e[36]=Y):Y=e[36];let U;e[37]!==t?(U=t("settings.apiKeys.expiryDays",{days:90}),e[37]=t,e[38]=U):U=e[38];let X;e[39]!==t?(X=t("settings.apiKeys.expiryYear"),e[39]=t,e[40]=X):X=e[40];let Z;e[41]!==t?(Z=t("settings.apiKeys.expiryNever"),e[41]=t,e[42]=Z):Z=e[42];let _e;e[43]!==W||e[44]!==Y||e[45]!==U||e[46]!==X||e[47]!==Z?(_e={7:W,30:Y,90:U,365:X,never:Z},e[43]=W,e[44]=Y,e[45]=U,e[46]=X,e[47]=Z,e[48]=_e):_e=e[48];const Te=_e;let J;e[49]!==t?(J=t("settings.apiKeys.nameLabel"),e[49]=t,e[50]=J):J=e[50];let ee;e[51]!==J?(ee=s.jsx(Ee,{htmlFor:"api-key-name",children:J}),e[51]=J,e[52]=ee):ee=e[52];let te;e[53]!==u?(te=B=>u(B.target.value),e[53]=u,e[54]=te):te=e[54];let se;e[55]!==t?(se=t("settings.apiKeys.namePlaceholder"),e[55]=t,e[56]=se):se=e[56];let ie;e[57]!==x||e[58]!==te||e[59]!==se?(ie=s.jsx(Me,{id:"api-key-name",value:x,onChange:te,placeholder:se,autoComplete:"off",required:!0}),e[57]=x,e[58]=te,e[59]=se,e[60]=ie):ie=e[60];let le;e[61]!==ee||e[62]!==ie?(le=s.jsxs("div",{className:"space-y-1.5",children:[ee,ie]}),e[61]=ee,e[62]=ie,e[63]=le):le=e[63];let ne;e[64]!==t?(ne=t("settings.apiKeys.accessLabel"),e[64]=t,e[65]=ne):ne=e[65];let ae;e[66]!==ne?(ae=s.jsx(Ee,{children:ne}),e[66]=ne,e[67]=ae):ae=e[67];let oe;e[68]!==V||e[69]!==j?(oe=B=>{const q=V.find(M=>M.value===B);q&&j(q.value)},e[68]=V,e[69]=j,e[70]=oe):oe=e[70];let re;e[71]!==V?(re=V.map(es),e[71]=V,e[72]=re):re=e[72];let ce;e[73]!==f||e[74]!==oe||e[75]!==re?(ce=s.jsx(Lt,{value:f,onValueChange:oe,className:"gap-2",children:re}),e[73]=f,e[74]=oe,e[75]=re,e[76]=ce):ce=e[76];let de;e[77]!==ae||e[78]!==ce?(de=s.jsxs("div",{className:"space-y-1.5",children:[ae,ce]}),e[77]=ae,e[78]=ce,e[79]=de):de=e[79];let ue;e[80]!==b||e[81]!==t||e[82]!==r.isError?(ue=b&&r.isError&&s.jsx("p",{className:"text-xs text-destructive",children:t("settings.apiKeys.toolsLoadFailed")}),e[80]=b,e[81]=t,e[82]=r.isError,e[83]=ue):ue=e[83];let fe;e[84]!==f||e[85]!==v||e[86]!==g||e[87]!==d||e[88]!==r.isSuccess?(fe=f==="custom"&&r.isSuccess&&s.jsx(Wt,{studioTools:d,toolSet:v,onChange:g}),e[84]=f,e[85]=v,e[86]=g,e[87]=d,e[88]=r.isSuccess,e[89]=fe):fe=e[89];let me;e[90]!==t?(me=t("settings.apiKeys.expiryLabel"),e[90]=t,e[91]=me):me=e[91];let pe;e[92]!==me?(pe=s.jsx(Ee,{htmlFor:"api-key-expiry",children:me}),e[92]=me,e[93]=pe):pe=e[93];let xe;e[94]!==K?(xe=B=>{const q=$e.find(M=>M===B);q&&K(q)},e[94]=K,e[95]=xe):xe=e[95];let De;e[96]===Symbol.for("react.memo_cache_sentinel")?(De=s.jsx(Ct,{id:"api-key-expiry",className:"w-full",children:s.jsx(St,{})}),e[96]=De):De=e[96];let ge;e[97]!==Te?(ge=$e.map(B=>s.jsx(vt,{value:B,children:Te[B]},B)),e[97]=Te,e[98]=ge):ge=e[98];let ye;e[99]!==ge?(ye=s.jsx(Nt,{children:ge}),e[99]=ge,e[100]=ye):ye=e[100];let he;e[101]!==S||e[102]!==xe||e[103]!==ye?(he=s.jsxs(_t,{value:S,onValueChange:xe,children:[De,ye]}),e[101]=S,e[102]=xe,e[103]=ye,e[104]=he):he=e[104];let je;e[105]!==pe||e[106]!==he?(je=s.jsxs("div",{className:"space-y-1.5",children:[pe,he]}),e[105]=pe,e[106]=he,e[107]=je):je=e[107];const et=h.isPending;let Ke;e[108]!==t?(Ke=t("settings.apiKeys.cancelButton"),e[108]=t,e[109]=Ke):Ke=e[109];let be;e[110]!==h.isPending||e[111]!==l||e[112]!==Ke?(be=s.jsx(Q,{type:"button",variant:"outline",onClick:l,disabled:et,children:Ke}),e[110]=h.isPending,e[111]=l,e[112]=Ke,e[113]=be):be=e[113];const Oe=!w;let ve;e[114]!==h.isPending||e[115]!==t?(ve=h.isPending?t("settings.apiKeys.creatingButton"):t("settings.apiKeys.createButton"),e[114]=h.isPending,e[115]=t,e[116]=ve):ve=e[116];let Ce;e[117]!==Oe||e[118]!==ve?(Ce=s.jsx(Q,{type:"submit",disabled:Oe,children:ve}),e[117]=Oe,e[118]=ve,e[119]=Ce):Ce=e[119];let Se;e[120]!==be||e[121]!==Ce?(Se=s.jsxs(Qe,{children:[be,Ce]}),e[120]=be,e[121]=Ce,e[122]=Se):Se=e[122];let we;return e[123]!==D||e[124]!==le||e[125]!==de||e[126]!==ue||e[127]!==fe||e[128]!==je||e[129]!==Se?(we=s.jsxs("form",{onSubmit:D,className:"space-y-4",children:[le,de,ue,fe,je,Se]}),e[123]=D,e[124]=le,e[125]=de,e[126]=ue,e[127]=fe,e[128]=je,e[129]=Se,e[130]=we):we=e[130],we}function es(o){return s.jsxs("label",{className:"flex cursor-pointer items-start gap-3 rounded-md border border-border px-3 py-2.5 hover:bg-accent has-[[data-state=checked]]:border-primary",children:[s.jsx($t,{value:o.value,className:"mt-0.5"}),s.jsxs("div",{className:"min-w-0",children:[s.jsx("span",{className:"block text-sm font-medium",children:o.label}),s.jsx("span",{className:Ie("block text-xs",o.value==="full"?"text-warning":"text-muted-foreground"),children:o.description})]})]},o.value)}function ts(o,e){return o.name.localeCompare(e.name)}function ss(o){const e=L.c(23),{open:l,onOpenChange:i,onCreated:t}=o,a=G();let n;e[0]!==a?(n=a("settings.apiKeys.newKeyTitle"),e[0]=a,e[1]=n):n=e[1];let m;e[2]!==n?(m=s.jsx(Be,{children:n}),e[2]=n,e[3]=m):m=e[3];let c;e[4]!==a?(c=a("settings.apiKeys.newKeyDescription"),e[4]=a,e[5]=c):c=e[5];let r;e[6]!==c?(r=s.jsx(Ge,{children:c}),e[6]=c,e[7]=r):r=e[7];let d;e[8]!==m||e[9]!==r?(d=s.jsxs(qe,{children:[m,r]}),e[8]=m,e[9]=r,e[10]=d):d=e[10];let p;e[11]!==i?(p=()=>i(!1),e[11]=i,e[12]=p):p=e[12];let x;e[13]!==t||e[14]!==p?(x=s.jsx(Jt,{onClose:p,onCreated:t}),e[13]=t,e[14]=p,e[15]=x):x=e[15];let u;e[16]!==d||e[17]!==x?(u=s.jsxs(He,{className:"sm:max-w-xl",children:[d,x]}),e[16]=d,e[17]=x,e[18]=u):u=e[18];let f;return e[19]!==i||e[20]!==l||e[21]!==u?(f=s.jsx(Ve,{open:l,onOpenChange:i,children:u}),e[19]=i,e[20]=l,e[21]=u,e[22]=f):f=e[22],f}function is(){const o=G(),{data:e,isLoading:l,error:i}=It(),t=zt(),[a,n]=P.useState(!1),[m,c]=P.useState(null),[r,d]=P.useState(null),p=e??[];async function x(){if(r)try{await t.mutateAsync(r.id),ke.success(o("settings.apiKeys.keyDeleted",{name:r.name}))}catch(u){ke.error(u instanceof Error?u.message:o("settings.apiKeys.failedToDeleteKey"))}finally{d(null)}}return s.jsxs(at,{title:o("settings.apiKeys.sectionTitle"),description:o("settings.apiKeys.sectionDescription"),actions:p.length>0?s.jsxs(Q,{onClick:()=>n(!0),size:"sm",children:[s.jsx(Ye,{size:14}),o("settings.apiKeys.newKey")]}):void 0,children:[l?s.jsx(Le,{className:"gap-0 overflow-hidden p-0",children:s.jsx("p",{className:"px-4 py-3 text-xs text-muted-foreground",children:o("settings.apiKeys.loading")})}):i&&p.length===0?s.jsx(Je,{error:i}):p.length===0?s.jsx(Xt,{onCreate:()=>n(!0)}):s.jsx(Le,{className:"gap-0 overflow-hidden p-0",children:s.jsx("ul",{className:"divide-y divide-border",children:p.map(u=>s.jsx(Yt,{apiKey:u,onDelete:()=>d(u)},u.id))})}),s.jsx(ss,{open:a,onOpenChange:n,onCreated:c}),s.jsx(Zt,{createdKey:m,onClose:()=>c(null)}),s.jsx(ot,{open:r!==null,onOpenChange:u=>{u||d(null)},children:s.jsxs(rt,{children:[s.jsxs(ct,{children:[s.jsx(dt,{children:o("settings.apiKeys.deleteTitle",{name:r?.name??""})}),s.jsx(ut,{children:o("settings.apiKeys.deleteDescription")})]}),s.jsxs(ft,{children:[s.jsx(mt,{children:o("settings.apiKeys.cancelButton")}),s.jsx(pt,{onClick:x,children:o("settings.apiKeys.deleteKey")})]})]})})]})}function Ns(){const o=L.c(1);let e;return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(nt,{group:"connect",errorFallback:ls,children:s.jsx(is,{})}),o[0]=e):e=o[0],e}function ls(o){const{error:e}=o;return s.jsx(Je,{error:e??new Error("Failed to load API keys")})}export{is as A,Ns as O};
|
|
1
|
+
import{c as L,m as Ie,j as s,b as G,r as P,h as Re,a6 as ze,W as tt,av as st,T as Fe,dT as it,i as lt,i9 as nt,gZ as at,gK as Le,aR as ot,aQ as rt,aN as ct,aL as dt,aM as ut,aP as ft,aO as mt,bc as pt,B as Q,t as ke,gl as xt,x as Be,aW as Ge,w as qe,I as Me,y as Qe,v as He,D as Ve}from"./index-CTKVsdNw.js";import{i as gt}from"./AlertCircle-DGhmQiH3.js";import{e as yt}from"./agent-icon-BeQK1LIp.js";import{i as We}from"./Key01-BNFXrDTG.js";import{s as Ye}from"./Plus-lVBJlI-r.js";import{s as ht}from"./Trash01-Tyi0X0KA.js";import{E as jt}from"./empty-state-R8mrYCIa.js";import{L as Ee}from"./label-DQEXoY6T.js";import{B as Ae}from"./badge-D4t_0yop.js";import{I as Kt,R as bt}from"./index-CBBEwfQu.js";import{c as vt,b as Ct,a as St,d as Nt,S as _t}from"./select-DDLvK1MW.js";import{u as Ue}from"./use-mcp-client-3JkIBVIw.js";import{u as Dt}from"./use-mcp-tools-ByvSnFS9.js";import{t as wt}from"./ChevronDown-C2op7Ztq.js";import{C as At}from"./checkbox-BB8KVrhZ.js";import{S as kt}from"./search-input-DlGuVm3Y.js";import{I as Tt}from"./integration-icon-CkDjbcLK.js";import{T as Ot}from"./tool-set-selector-CkNcSn8D.js";import{b as Et}from"./use-connection-CZ1NbbVy.js";import{u as It,b as zt,a as Pt}from"./use-api-keys-BGtID6j7.js";function Lt(o){const e=L.c(8);let l,i;e[0]!==o?({className:l,...i}=o,e[0]=o,e[1]=l,e[2]=i):(l=e[1],i=e[2]);let t;e[3]!==l?(t=Ie("grid gap-3",l),e[3]=l,e[4]=t):t=e[4];let a;return e[5]!==i||e[6]!==t?(a=s.jsx(bt,{"data-slot":"radio-group",className:t,...i}),e[5]=i,e[6]=t,e[7]=a):a=e[7],a}function $t(o){const e=L.c(9);let l,i;e[0]!==o?({className:l,...i}=o,e[0]=o,e[1]=l,e[2]=i):(l=e[1],i=e[2]);let t;e[3]!==l?(t=Ie("group relative inline-flex size-4 shrink-0 items-center justify-center rounded-full shadow-[inset_0_0_0_1.5px_var(--input)] transition-[background-color,box-shadow] duration-150 hover:shadow-[inset_0_0_0_1.5px_color-mix(in_oklch,var(--foreground)_30%,var(--input))] data-[state=checked]:bg-primary data-[state=checked]:shadow-[inset_0_0_0_1.5px_var(--primary)] aria-invalid:shadow-[inset_0_0_0_1.5px_var(--destructive)] focus-ring disabled:opacity-50 motion-reduce:transition-none",l),e[3]=l,e[4]=t):t=e[4];let a;e[5]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx("span",{className:"bg-primary-foreground size-1.5 scale-0 rounded-full transition-transform duration-200 ease-[cubic-bezier(0.34,1.56,0.64,1)] group-data-[state=checked]:scale-100 motion-reduce:transition-none"}),e[5]=a):a=e[5];let n;return e[6]!==i||e[7]!==t?(n=s.jsx(Kt,{"data-slot":"radio-group-item",className:t,...i,children:a}),e[6]=i,e[7]=t,e[8]=n):n=e[8],n}const $e=["7","30","90","365","never"],Rt=86400;function Ft(o){return o.filter(e=>e.annotations?.readOnlyHint===!0).map(e=>e.name)}const Ne="self";function Bt(o,e,l){return o==="full"?{"*":["*"]}:o==="read-only"?{[Ne]:e}:Object.fromEntries(Object.entries(l).filter(([,i])=>i.length>0))}function Xe(o){return Object.values(o).reduce((e,l)=>e+l.length,0)}function Gt(o){return o==="never"?void 0:Number(o)*Rt}function qt(o){const e=i=>{const t=o[i];return Array.isArray(t)?t:[]};if(e("*").includes("*")||e("self").includes("*"))return{kind:"full"};const l=new Set;for(const i of Object.keys(o))for(const t of e(i))t.startsWith("!")||l.add(`${i}:${t}`);return{kind:"tools",count:l.size}}function Mt(o,e){return o.name.toLowerCase().includes(e)||(o.description?.toLowerCase().includes(e)??!1)}function Ze(o){const e=L.c(56),{resource:l,title:i,icon:t,tools:a,selected:n,onChange:m,query:c,onExpand:r}=o,d=G(),[p,x]=P.useState(!1);let u;e[0]!==c||e[1]!==i?(u=!c||i.toLowerCase().includes(c),e[0]=c,e[1]=i,e[2]=u):u=e[2];const f=u;let j;e[3]!==c||e[4]!==f||e[5]!==a?(j=a===null?null:f?a:a.filter(A=>Mt(A,c)),e[3]=c,e[4]=f,e[5]=a,e[6]=j):j=e[6];const y=j,g=p||!!c&&(y?.length??0)>0,S=!f&&!y?.length;let K;e[7]!==n?(K=new Set(n),e[7]=n,e[8]=K):K=e[8];const h=K,v=a!==null&&a.length>0&&n.length>=a.length;let b;e[9]!==r||e[10]!==p?(b=()=>{p||r?.(),x(!p)},e[9]=r,e[10]=p,e[11]=b):b=e[11];const C=b;let N;e[12]!==m||e[13]!==r||e[14]!==n.length||e[15]!==a?(N=()=>{if(n.length>0){m([]);return}if(a===null){r?.(),x(!0);return}m(a.map(Qt))},e[12]=m,e[13]=r,e[14]=n.length,e[15]=a,e[16]=N):N=e[16];const _=N;if(S)return null;let w;e[17]!==g?(w=g?s.jsx(wt,{size:16,className:"shrink-0 text-muted-foreground"}):s.jsx(st,{size:16,className:"shrink-0 text-muted-foreground"}),e[17]=g,e[18]=w):w=e[18];let D;e[19]!==t||e[20]!==i?(D=s.jsx(Tt,{icon:t,name:i,size:"xs"}),e[19]=t,e[20]=i,e[21]=D):D=e[21];let k;e[22]!==i?(k=s.jsx("span",{className:"min-w-0 flex-1 truncate text-sm font-medium",children:i}),e[22]=i,e[23]=k):k=e[23];let T;e[24]!==n.length||e[25]!==d||e[26]!==a?(T=(a!==null||n.length>0)&&s.jsx("span",{className:"shrink-0 text-xs text-muted-foreground",children:a===null?n.length:d("settings.apiKeys.toolsGroupCount",{count:n.length,total:a.length})}),e[24]=n.length,e[25]=d,e[26]=a,e[27]=T):T=e[27];let R;e[28]!==g||e[29]!==w||e[30]!==D||e[31]!==k||e[32]!==T||e[33]!==C?(R=s.jsxs("button",{type:"button",onClick:C,"aria-expanded":g,className:"flex min-w-0 flex-1 cursor-pointer items-center gap-3 py-2.5 pl-3 text-left",children:[w,D,k,T]}),e[28]=g,e[29]=w,e[30]=D,e[31]=k,e[32]=T,e[33]=C,e[34]=R):R=e[34];const F=v?!0:n.length>0?"indeterminate":!1;let O;e[35]!==d||e[36]!==i?(O=d("settings.apiKeys.toolsSelectGroup",{name:i}),e[35]=d,e[36]=i,e[37]=O):O=e[37];let E;e[38]!==F||e[39]!==O||e[40]!==_?(E=s.jsx(At,{checked:F,onCheckedChange:_,"aria-label":O}),e[38]=F,e[39]=O,e[40]=_,e[41]=E):E=e[41];let I;e[42]!==R||e[43]!==E?(I=s.jsxs("div",{className:"flex items-center gap-3 pr-4 hover:bg-accent",children:[R,E]}),e[42]=R,e[43]=E,e[44]=I):I=e[44];let z;e[45]!==g||e[46]!==m||e[47]!==l||e[48]!==n||e[49]!==h||e[50]!==d||e[51]!==y?(z=g&&s.jsx("div",{className:"space-y-1 border-t border-border p-1",children:y===null?s.jsx("div",{className:"flex justify-center py-4",children:s.jsx(Re,{className:"size-4 text-muted-foreground"})}):y.length===0?s.jsx("p",{className:"px-3 py-4 text-center text-xs text-muted-foreground",children:d("settings.apiKeys.toolsNone")}):y.map(A=>s.jsx(Ot,{connectionId:l,tool:A,isSelected:h.has(A.name),onToggle:()=>m(h.has(A.name)?n.filter(H=>H!==A.name):[...n,A.name]),badge:A.annotations?.readOnlyHint===!0&&s.jsx(Ae,{variant:"muted",size:"sm",children:d("settings.apiKeys.readOnlyBadge")})},A.name))}),e[45]=g,e[46]=m,e[47]=l,e[48]=n,e[49]=h,e[50]=d,e[51]=y,e[52]=z):z=e[52];let $;return e[53]!==I||e[54]!==z?($=s.jsxs("div",{className:"overflow-hidden rounded-lg border border-border bg-card",children:[I,z]}),e[53]=I,e[54]=z,e[55]=$):$=e[55],$}function Qt(o){return o.name}function Ht(o){const e=L.c(21),{connection:l,selected:i,onChange:t,query:a}=o,{org:n}=ze();let m;e[0]!==n.id||e[1]!==n.slug?(m={connectionId:Fe,orgId:n.id,orgSlug:n.slug},e[0]=n.id,e[1]=n.slug,e[2]=m):m=e[2];const c=Ue(m),[r,d]=P.useState(!1);let p;e[3]!==c||e[4]!==l.id||e[5]!==n.id?(p=it(n.id,"CONNECTIONS",l.id,c),e[3]=c,e[4]=l.id,e[5]=n.id,e[6]=p):p=e[6];let x;e[7]!==r||e[8]!==p?(x={...p,enabled:r},e[7]=r,e[8]=p,e[9]=x):x=e[9];const{data:u}=lt(x);let f;e[10]!==u?(f=u?u.item?.tools??[]:null,e[10]=u,e[11]=f):f=e[11];const j=f;let y;e[12]===Symbol.for("react.memo_cache_sentinel")?(y=()=>d(!0),e[12]=y):y=e[12];let g;return e[13]!==l.icon||e[14]!==l.id||e[15]!==l.title||e[16]!==t||e[17]!==a||e[18]!==i||e[19]!==j?(g=s.jsx(Ze,{resource:l.id,title:l.title,icon:l.icon,tools:j,selected:i,onChange:t,query:a,onExpand:y}),e[13]=l.icon,e[14]=l.id,e[15]=l.title,e[16]=t,e[17]=a,e[18]=i,e[19]=j,e[20]=g):g=e[20],g}function Vt(o){const e=L.c(14),{toolSet:l,onChange:i,query:t}=o,{org:a}=ze();let n;e[0]!==a.id?(n=tt.SELF(a.id),e[0]=a.id,e[1]=n):n=e[1];const m=n,c=Et();let r;if(e[2]!==i||e[3]!==t||e[4]!==m||e[5]!==c||e[6]!==l){let d;e[8]!==m?(d=u=>u.id!==m,e[8]=m,e[9]=d):d=e[9];const p=c.filter(d);let x;e[10]!==i||e[11]!==t||e[12]!==l?(x=u=>s.jsx(Ht,{connection:u,selected:l[u.id]??[],onChange:f=>i(u.id,f),query:t},u.id),e[10]=i,e[11]=t,e[12]=l,e[13]=x):x=e[13],r=p.map(x),e[2]=i,e[3]=t,e[4]=m,e[5]=c,e[6]=l,e[7]=r}else r=e[7];return r}function Wt(o){const e=L.c(41),{studioTools:l,toolSet:i,onChange:t}=o,a=G(),[n,m]=P.useState("");let c;e[0]!==n?(c=n.trim().toLowerCase(),e[0]=n,e[1]=c):c=e[1];const r=P.useDeferredValue(c);let d;e[2]!==t||e[3]!==i?(d=(_,w)=>t({...i,[_]:w}),e[2]=t,e[3]=i,e[4]=d):d=e[4];const p=d;let x;e[5]!==a?(x=a("settings.apiKeys.toolsSearch"),e[5]=a,e[6]=x):x=e[6];let u;e[7]!==n||e[8]!==x?(u=s.jsx(kt,{value:n,onChange:m,placeholder:x,className:"flex-1"}),e[7]=n,e[8]=x,e[9]=u):u=e[9];let f;e[10]!==a||e[11]!==i?(f=a("settings.apiKeys.toolsSelected",{count:Xe(i)}),e[10]=a,e[11]=i,e[12]=f):f=e[12];let j;e[13]!==f?(j=s.jsx("span",{className:"shrink-0 text-xs text-muted-foreground",children:f}),e[13]=f,e[14]=j):j=e[14];let y;e[15]!==u||e[16]!==j?(y=s.jsxs("div",{className:"flex items-center gap-3",children:[u,j]}),e[15]=u,e[16]=j,e[17]=y):y=e[17];let g;e[18]!==a?(g=a("settings.apiKeys.studioTools"),e[18]=a,e[19]=g):g=e[19];let S;e[20]!==i?(S=i[Ne]??[],e[20]=i,e[21]=S):S=e[21];let K;e[22]!==p?(K=_=>p(Ne,_),e[22]=p,e[23]=K):K=e[23];let h;e[24]!==r||e[25]!==l||e[26]!==K||e[27]!==g||e[28]!==S?(h=s.jsx(Ze,{resource:Ne,title:g,icon:"/favicon.svg",tools:l,selected:S,onChange:K,query:r}),e[24]=r,e[25]=l,e[26]=K,e[27]=g,e[28]=S,e[29]=h):h=e[29];let v;e[30]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx("div",{className:"flex justify-center py-3",children:s.jsx(Re,{className:"size-4 text-muted-foreground"})}),e[30]=v):v=e[30];let b;e[31]!==r||e[32]!==p||e[33]!==i?(b=s.jsx(P.Suspense,{fallback:v,children:s.jsx(Vt,{toolSet:i,onChange:p,query:r})}),e[31]=r,e[32]=p,e[33]=i,e[34]=b):b=e[34];let C;e[35]!==h||e[36]!==b?(C=s.jsxs("div",{className:"max-h-80 space-y-2 overflow-y-auto",children:[h,b]}),e[35]=h,e[36]=b,e[37]=C):C=e[37];let N;return e[38]!==C||e[39]!==y?(N=s.jsxs("div",{className:"space-y-2",children:[y,C]}),e[38]=C,e[39]=y,e[40]=N):N=e[40],N}function Je(o){const e=L.c(6),{error:l}=o,i=G();let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(gt,{size:16}),e[0]=t):t=e[0];let a;e[1]!==l.message||e[2]!==i?(a=i("settings.apiKeys.failedToLoadError",{error:l.message}),e[1]=l.message,e[2]=i,e[3]=a):a=e[3];let n;return e[4]!==a?(n=s.jsxs("div",{className:"p-4 rounded-md bg-destructive/10 text-destructive flex items-center gap-2",children:[t,s.jsx("span",{className:"text-sm font-medium",children:a})]}),e[4]=a,e[5]=n):n=e[5],n}function Yt(o){const e=L.c(31),{apiKey:l,onDelete:i}=o,t=G(),a=qt(l.permissions),n=l.expiresAt?new Date(l.expiresAt):null,[m]=P.useState(Ut),c=n!==null&&n.getTime()<=m,r=n?.toLocaleDateString()??"",d="flex items-center justify-between gap-4 px-4 py-3",p="flex items-center gap-3 min-w-0";let x;e[0]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx("div",{className:"size-9 rounded-md bg-muted flex items-center justify-center shrink-0",children:s.jsx(We,{size:16,className:"text-muted-foreground"})}),e[0]=x):x=e[0];const u="min-w-0";let f;e[1]!==l.name?(f=s.jsx("span",{className:"font-medium text-sm truncate",children:l.name}),e[1]=l.name,e[2]=f):f=e[2];const j=a.kind==="full"?s.jsx(Ae,{variant:"warning",size:"sm",children:t("settings.apiKeys.accessFull")}):s.jsx(Ae,{variant:"muted",size:"sm",children:t("settings.apiKeys.toolCount",{count:a.count})});let y;e[3]!==c||e[4]!==t?(y=c&&s.jsx(Ae,{variant:"destructive",size:"sm",children:t("settings.apiKeys.expired")}),e[3]=c,e[4]=t,e[5]=y):y=e[5];let g;e[6]!==f||e[7]!==j||e[8]!==y?(g=s.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[f,j,y]}),e[6]=f,e[7]=j,e[8]=y,e[9]=g):g=e[9];const S="text-xs text-muted-foreground mt-0.5";let K;e[10]!==l.createdAt||e[11]!==t?(K=t("settings.apiKeys.createdAt",{date:new Date(l.createdAt).toLocaleDateString()}),e[10]=l.createdAt,e[11]=t,e[12]=K):K=e[12];const h=" · ",v=l.expiresAt?c?t("settings.apiKeys.expiredOn",{date:r}):t("settings.apiKeys.expiresOn",{date:r}):t("settings.apiKeys.neverExpires");let b;e[13]!==K||e[14]!==v?(b=s.jsxs("p",{className:S,children:[K,h,v]}),e[13]=K,e[14]=v,e[15]=b):b=e[15];let C;e[16]!==b||e[17]!==g?(C=s.jsxs("div",{className:u,children:[g,b]}),e[16]=b,e[17]=g,e[18]=C):C=e[18];let N;e[19]!==C||e[20]!==x?(N=s.jsxs("div",{className:p,children:[x,C]}),e[19]=C,e[20]=x,e[21]=N):N=e[21];let _;e[22]!==t?(_=t("settings.apiKeys.deleteKey"),e[22]=t,e[23]=_):_=e[23];let w;e[24]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(ht,{size:14}),e[24]=w):w=e[24];let D;e[25]!==i||e[26]!==_?(D=s.jsx(Q,{variant:"ghost-destructive",size:"icon",className:"shrink-0",onClick:i,"aria-label":_,children:w}),e[25]=i,e[26]=_,e[27]=D):D=e[27];let k;return e[28]!==N||e[29]!==D?(k=s.jsxs("li",{className:d,children:[N,D]}),e[28]=N,e[29]=D,e[30]=k):k=e[30],k}function Ut(){return Date.now()}function Xt(o){const e=L.c(15),{onCreate:l}=o,i=G();let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t=s.jsx(We,{}),e[0]=t):t=e[0];let a;e[1]!==i?(a=i("settings.apiKeys.emptyTitle"),e[1]=i,e[2]=a):a=e[2];let n;e[3]!==i?(n=i("settings.apiKeys.emptyDescription"),e[3]=i,e[4]=n):n=e[4];let m;e[5]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx(Ye,{size:14}),e[5]=m):m=e[5];let c;e[6]!==i?(c=i("settings.apiKeys.newKey"),e[6]=i,e[7]=c):c=e[7];let r;e[8]!==l||e[9]!==c?(r=s.jsxs(Q,{onClick:l,size:"sm",children:[m,c]}),e[8]=l,e[9]=c,e[10]=r):r=e[10];let d;return e[11]!==a||e[12]!==n||e[13]!==r?(d=s.jsx(xt,{children:s.jsx(jt,{size:"inline",icon:t,title:a,description:n,children:r})}),e[11]=a,e[12]=n,e[13]=r,e[14]=d):d=e[14],d}function Zt(o){const e=L.c(40),{createdKey:l,onClose:i}=o,t=G(),a=l!==null;let n;e[0]!==i?(n=C=>!C&&i(),e[0]=i,e[1]=n):n=e[1];let m;e[2]!==t?(m=t("settings.apiKeys.createdTitle"),e[2]=t,e[3]=m):m=e[3];let c;e[4]!==m?(c=s.jsx(Be,{children:m}),e[4]=m,e[5]=c):c=e[5];let r;e[6]!==t?(r=t("settings.apiKeys.createdDescription"),e[6]=t,e[7]=r):r=e[7];let d;e[8]!==r?(d=s.jsx(Ge,{children:r}),e[8]=r,e[9]=d):d=e[9];let p;e[10]!==c||e[11]!==d?(p=s.jsxs(qe,{children:[c,d]}),e[10]=c,e[11]=d,e[12]=p):p=e[12];const x=l?.key??"";let u;e[13]!==x?(u=s.jsx(Me,{readOnly:!0,value:x,className:"font-mono text-xs"}),e[13]=x,e[14]=u):u=e[14];let f;e[15]!==l||e[16]!==t?(f=()=>{l&&(navigator.clipboard?.writeText(l.key),ke.success(t("settings.apiKeys.copied")))},e[15]=l,e[16]=t,e[17]=f):f=e[17];let j;e[18]!==t?(j=t("settings.apiKeys.copyKey"),e[18]=t,e[19]=j):j=e[19];let y;e[20]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx(yt,{size:14}),e[20]=y):y=e[20];let g;e[21]!==f||e[22]!==j?(g=s.jsx(Q,{type:"button",variant:"outline",size:"icon",onClick:f,"aria-label":j,children:y}),e[21]=f,e[22]=j,e[23]=g):g=e[23];let S;e[24]!==g||e[25]!==u?(S=s.jsxs("div",{className:"flex items-center gap-2",children:[u,g]}),e[24]=g,e[25]=u,e[26]=S):S=e[26];let K;e[27]!==t?(K=t("settings.apiKeys.done"),e[27]=t,e[28]=K):K=e[28];let h;e[29]!==i||e[30]!==K?(h=s.jsx(Qe,{children:s.jsx(Q,{onClick:i,children:K})}),e[29]=i,e[30]=K,e[31]=h):h=e[31];let v;e[32]!==S||e[33]!==h||e[34]!==p?(v=s.jsxs(He,{className:"sm:max-w-lg",children:[p,S,h]}),e[32]=S,e[33]=h,e[34]=p,e[35]=v):v=e[35];let b;return e[36]!==a||e[37]!==v||e[38]!==n?(b=s.jsx(Ve,{open:a,onOpenChange:n,children:v}),e[36]=a,e[37]=v,e[38]=n,e[39]=b):b=e[39],b}function Jt(o){const e=L.c(131),{onClose:l,onCreated:i}=o,t=G(),{org:a}=ze();let n;e[0]!==a.id||e[1]!==a.slug?(n={connectionId:Fe,orgId:a.id,orgSlug:a.slug},e[0]=a.id,e[1]=a.slug,e[2]=n):n=e[2];const m=Ue(n);let c;e[3]!==m?(c={client:m},e[3]=m,e[4]=c):c=e[4];const r=Dt(c),d=[...r.data?.tools??[]].sort(ts),p=Ft(d),[x,u]=P.useState(""),[f,j]=P.useState("read-only"),[y,g]=P.useState(null),[S,K]=P.useState("90"),h=Pt(),v=y??{[Ne]:p},b=f!=="full",C=!b||r.isSuccess,N=f==="full"||(f==="read-only"?p.length:Xe(v))>0;let _;e[5]!==h.isPending||e[6]!==N||e[7]!==x||e[8]!==C?(_=!!x.trim()&&C&&N&&!h.isPending,e[5]=h.isPending,e[6]=N,e[7]=x,e[8]=C,e[9]=_):_=e[9];const w=_,D=async function(q){if(q.preventDefault(),!!w)try{const M=await h.mutateAsync({name:x.trim(),permissions:Bt(f,p,v),expiresIn:Gt(S)});l(),i(M)}catch(M){const Pe=M;ke.error(Pe instanceof Error?Pe.message:t("settings.apiKeys.failedToCreateKey"))}},k="read-only";let T;e[10]!==t?(T=t("settings.apiKeys.accessReadOnly"),e[10]=t,e[11]=T):T=e[11];const R=t("settings.apiKeys.accessReadOnlyDescription",{count:p.length});let F;e[12]!==T||e[13]!==R?(F={value:k,label:T,description:R},e[12]=T,e[13]=R,e[14]=F):F=e[14];let O;e[15]!==t?(O=t("settings.apiKeys.accessCustom"),e[15]=t,e[16]=O):O=e[16];let E;e[17]!==t?(E=t("settings.apiKeys.accessCustomDescription"),e[17]=t,e[18]=E):E=e[18];let I;e[19]!==E||e[20]!==O?(I={value:"custom",label:O,description:E},e[19]=E,e[20]=O,e[21]=I):I=e[21];let z;e[22]!==t?(z=t("settings.apiKeys.accessFull"),e[22]=t,e[23]=z):z=e[23];let $;e[24]!==t?($=t("settings.apiKeys.accessFullDescription"),e[24]=t,e[25]=$):$=e[25];let A;e[26]!==z||e[27]!==$?(A={value:"full",label:z,description:$},e[26]=z,e[27]=$,e[28]=A):A=e[28];let H;e[29]!==I||e[30]!==A||e[31]!==F?(H=[F,I,A],e[29]=I,e[30]=A,e[31]=F,e[32]=H):H=e[32];const V=H;let W;e[33]!==t?(W=t("settings.apiKeys.expiryDays",{days:7}),e[33]=t,e[34]=W):W=e[34];let Y;e[35]!==t?(Y=t("settings.apiKeys.expiryDays",{days:30}),e[35]=t,e[36]=Y):Y=e[36];let U;e[37]!==t?(U=t("settings.apiKeys.expiryDays",{days:90}),e[37]=t,e[38]=U):U=e[38];let X;e[39]!==t?(X=t("settings.apiKeys.expiryYear"),e[39]=t,e[40]=X):X=e[40];let Z;e[41]!==t?(Z=t("settings.apiKeys.expiryNever"),e[41]=t,e[42]=Z):Z=e[42];let _e;e[43]!==W||e[44]!==Y||e[45]!==U||e[46]!==X||e[47]!==Z?(_e={7:W,30:Y,90:U,365:X,never:Z},e[43]=W,e[44]=Y,e[45]=U,e[46]=X,e[47]=Z,e[48]=_e):_e=e[48];const Te=_e;let J;e[49]!==t?(J=t("settings.apiKeys.nameLabel"),e[49]=t,e[50]=J):J=e[50];let ee;e[51]!==J?(ee=s.jsx(Ee,{htmlFor:"api-key-name",children:J}),e[51]=J,e[52]=ee):ee=e[52];let te;e[53]!==u?(te=B=>u(B.target.value),e[53]=u,e[54]=te):te=e[54];let se;e[55]!==t?(se=t("settings.apiKeys.namePlaceholder"),e[55]=t,e[56]=se):se=e[56];let ie;e[57]!==x||e[58]!==te||e[59]!==se?(ie=s.jsx(Me,{id:"api-key-name",value:x,onChange:te,placeholder:se,autoComplete:"off",required:!0}),e[57]=x,e[58]=te,e[59]=se,e[60]=ie):ie=e[60];let le;e[61]!==ee||e[62]!==ie?(le=s.jsxs("div",{className:"space-y-1.5",children:[ee,ie]}),e[61]=ee,e[62]=ie,e[63]=le):le=e[63];let ne;e[64]!==t?(ne=t("settings.apiKeys.accessLabel"),e[64]=t,e[65]=ne):ne=e[65];let ae;e[66]!==ne?(ae=s.jsx(Ee,{children:ne}),e[66]=ne,e[67]=ae):ae=e[67];let oe;e[68]!==V||e[69]!==j?(oe=B=>{const q=V.find(M=>M.value===B);q&&j(q.value)},e[68]=V,e[69]=j,e[70]=oe):oe=e[70];let re;e[71]!==V?(re=V.map(es),e[71]=V,e[72]=re):re=e[72];let ce;e[73]!==f||e[74]!==oe||e[75]!==re?(ce=s.jsx(Lt,{value:f,onValueChange:oe,className:"gap-2",children:re}),e[73]=f,e[74]=oe,e[75]=re,e[76]=ce):ce=e[76];let de;e[77]!==ae||e[78]!==ce?(de=s.jsxs("div",{className:"space-y-1.5",children:[ae,ce]}),e[77]=ae,e[78]=ce,e[79]=de):de=e[79];let ue;e[80]!==b||e[81]!==t||e[82]!==r.isError?(ue=b&&r.isError&&s.jsx("p",{className:"text-xs text-destructive",children:t("settings.apiKeys.toolsLoadFailed")}),e[80]=b,e[81]=t,e[82]=r.isError,e[83]=ue):ue=e[83];let fe;e[84]!==f||e[85]!==v||e[86]!==g||e[87]!==d||e[88]!==r.isSuccess?(fe=f==="custom"&&r.isSuccess&&s.jsx(Wt,{studioTools:d,toolSet:v,onChange:g}),e[84]=f,e[85]=v,e[86]=g,e[87]=d,e[88]=r.isSuccess,e[89]=fe):fe=e[89];let me;e[90]!==t?(me=t("settings.apiKeys.expiryLabel"),e[90]=t,e[91]=me):me=e[91];let pe;e[92]!==me?(pe=s.jsx(Ee,{htmlFor:"api-key-expiry",children:me}),e[92]=me,e[93]=pe):pe=e[93];let xe;e[94]!==K?(xe=B=>{const q=$e.find(M=>M===B);q&&K(q)},e[94]=K,e[95]=xe):xe=e[95];let De;e[96]===Symbol.for("react.memo_cache_sentinel")?(De=s.jsx(Ct,{id:"api-key-expiry",className:"w-full",children:s.jsx(St,{})}),e[96]=De):De=e[96];let ge;e[97]!==Te?(ge=$e.map(B=>s.jsx(vt,{value:B,children:Te[B]},B)),e[97]=Te,e[98]=ge):ge=e[98];let ye;e[99]!==ge?(ye=s.jsx(Nt,{children:ge}),e[99]=ge,e[100]=ye):ye=e[100];let he;e[101]!==S||e[102]!==xe||e[103]!==ye?(he=s.jsxs(_t,{value:S,onValueChange:xe,children:[De,ye]}),e[101]=S,e[102]=xe,e[103]=ye,e[104]=he):he=e[104];let je;e[105]!==pe||e[106]!==he?(je=s.jsxs("div",{className:"space-y-1.5",children:[pe,he]}),e[105]=pe,e[106]=he,e[107]=je):je=e[107];const et=h.isPending;let Ke;e[108]!==t?(Ke=t("settings.apiKeys.cancelButton"),e[108]=t,e[109]=Ke):Ke=e[109];let be;e[110]!==h.isPending||e[111]!==l||e[112]!==Ke?(be=s.jsx(Q,{type:"button",variant:"outline",onClick:l,disabled:et,children:Ke}),e[110]=h.isPending,e[111]=l,e[112]=Ke,e[113]=be):be=e[113];const Oe=!w;let ve;e[114]!==h.isPending||e[115]!==t?(ve=h.isPending?t("settings.apiKeys.creatingButton"):t("settings.apiKeys.createButton"),e[114]=h.isPending,e[115]=t,e[116]=ve):ve=e[116];let Ce;e[117]!==Oe||e[118]!==ve?(Ce=s.jsx(Q,{type:"submit",disabled:Oe,children:ve}),e[117]=Oe,e[118]=ve,e[119]=Ce):Ce=e[119];let Se;e[120]!==be||e[121]!==Ce?(Se=s.jsxs(Qe,{children:[be,Ce]}),e[120]=be,e[121]=Ce,e[122]=Se):Se=e[122];let we;return e[123]!==D||e[124]!==le||e[125]!==de||e[126]!==ue||e[127]!==fe||e[128]!==je||e[129]!==Se?(we=s.jsxs("form",{onSubmit:D,className:"space-y-4",children:[le,de,ue,fe,je,Se]}),e[123]=D,e[124]=le,e[125]=de,e[126]=ue,e[127]=fe,e[128]=je,e[129]=Se,e[130]=we):we=e[130],we}function es(o){return s.jsxs("label",{className:"flex cursor-pointer items-start gap-3 rounded-md border border-border px-3 py-2.5 hover:bg-accent has-[[data-state=checked]]:border-primary",children:[s.jsx($t,{value:o.value,className:"mt-0.5"}),s.jsxs("div",{className:"min-w-0",children:[s.jsx("span",{className:"block text-sm font-medium",children:o.label}),s.jsx("span",{className:Ie("block text-xs",o.value==="full"?"text-warning":"text-muted-foreground"),children:o.description})]})]},o.value)}function ts(o,e){return o.name.localeCompare(e.name)}function ss(o){const e=L.c(23),{open:l,onOpenChange:i,onCreated:t}=o,a=G();let n;e[0]!==a?(n=a("settings.apiKeys.newKeyTitle"),e[0]=a,e[1]=n):n=e[1];let m;e[2]!==n?(m=s.jsx(Be,{children:n}),e[2]=n,e[3]=m):m=e[3];let c;e[4]!==a?(c=a("settings.apiKeys.newKeyDescription"),e[4]=a,e[5]=c):c=e[5];let r;e[6]!==c?(r=s.jsx(Ge,{children:c}),e[6]=c,e[7]=r):r=e[7];let d;e[8]!==m||e[9]!==r?(d=s.jsxs(qe,{children:[m,r]}),e[8]=m,e[9]=r,e[10]=d):d=e[10];let p;e[11]!==i?(p=()=>i(!1),e[11]=i,e[12]=p):p=e[12];let x;e[13]!==t||e[14]!==p?(x=s.jsx(Jt,{onClose:p,onCreated:t}),e[13]=t,e[14]=p,e[15]=x):x=e[15];let u;e[16]!==d||e[17]!==x?(u=s.jsxs(He,{className:"sm:max-w-xl",children:[d,x]}),e[16]=d,e[17]=x,e[18]=u):u=e[18];let f;return e[19]!==i||e[20]!==l||e[21]!==u?(f=s.jsx(Ve,{open:l,onOpenChange:i,children:u}),e[19]=i,e[20]=l,e[21]=u,e[22]=f):f=e[22],f}function is(){const o=G(),{data:e,isLoading:l,error:i}=It(),t=zt(),[a,n]=P.useState(!1),[m,c]=P.useState(null),[r,d]=P.useState(null),p=e??[];async function x(){if(r)try{await t.mutateAsync(r.id),ke.success(o("settings.apiKeys.keyDeleted",{name:r.name}))}catch(u){ke.error(u instanceof Error?u.message:o("settings.apiKeys.failedToDeleteKey"))}finally{d(null)}}return s.jsxs(at,{title:o("settings.apiKeys.sectionTitle"),description:o("settings.apiKeys.sectionDescription"),actions:p.length>0?s.jsxs(Q,{onClick:()=>n(!0),size:"sm",children:[s.jsx(Ye,{size:14}),o("settings.apiKeys.newKey")]}):void 0,children:[l?s.jsx(Le,{className:"gap-0 overflow-hidden p-0",children:s.jsx("p",{className:"px-4 py-3 text-xs text-muted-foreground",children:o("settings.apiKeys.loading")})}):i&&p.length===0?s.jsx(Je,{error:i}):p.length===0?s.jsx(Xt,{onCreate:()=>n(!0)}):s.jsx(Le,{className:"gap-0 overflow-hidden p-0",children:s.jsx("ul",{className:"divide-y divide-border",children:p.map(u=>s.jsx(Yt,{apiKey:u,onDelete:()=>d(u)},u.id))})}),s.jsx(ss,{open:a,onOpenChange:n,onCreated:c}),s.jsx(Zt,{createdKey:m,onClose:()=>c(null)}),s.jsx(ot,{open:r!==null,onOpenChange:u=>{u||d(null)},children:s.jsxs(rt,{children:[s.jsxs(ct,{children:[s.jsx(dt,{children:o("settings.apiKeys.deleteTitle",{name:r?.name??""})}),s.jsx(ut,{children:o("settings.apiKeys.deleteDescription")})]}),s.jsxs(ft,{children:[s.jsx(mt,{children:o("settings.apiKeys.cancelButton")}),s.jsx(pt,{onClick:x,children:o("settings.apiKeys.deleteKey")})]})]})})]})}function Ns(){const o=L.c(1);let e;return o[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(nt,{group:"connect",errorFallback:ls,children:s.jsx(is,{})}),o[0]=e):e=o[0],e}function ls(o){const{error:e}=o;return s.jsx(Je,{error:e??new Error("Failed to load API keys")})}export{is as A,Ns as O};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as o,j as r}from"./index-CTKVsdNw.js";import{O as m}from"./api-keys-BIZ19WbQ.js";import{R as p}from"./require-capability-3euEuxZx.js";import"./AlertCircle-DGhmQiH3.js";import"./agent-icon-BeQK1LIp.js";import"./UserCheck01-BzJrArBA.js";import"./Tool01-BCxvp4xD.js";import"./ArrowUp-B0lRrz50.js";import"./ArrowLeft-FP_83xMo.js";import"./ArrowRight-c12L_DBI.js";import"./BookOpen01-CGmiFh6c.js";import"./Globe04-i-SMP1da.js";import"./CheckCircle-DQx8J3sX.js";import"./ChevronDown-C2op7Ztq.js";import"./ChevronSelectorVertical-B8fgmPce.js";import"./ChevronUp-C6GRdhwz.js";import"./UserSquare-Csaj5_OE.js";import"./LinkBroken01-C-ZJkx1-.js";import"./CreditCard01-BrYzNGv7.js";import"./File02-lnmDsOIM.js";import"./MessageCircle01-CmMj6zOJ.js";import"./SwitchHorizontal01-B9k8zywr.js";import"./Eye-D1n0U2nr.js";import"./Fingerprint04-DWY8-Yis.js";import"./Image01-D0d8t9Nf.js";import"./Key01-BNFXrDTG.js";import"./LayoutLeft-CzGwliNd.js";import"./Minus-C12vvCq7.js";import"./Monitor01-DRn7cBTS.js";import"./Sun-CHBjoRg5.js";import"./Play-LuTO-O0l.js";import"./Plus-lVBJlI-r.js";import"./SearchMd-DlyifTmg.js";import"./ShoppingBag01-Cqxv0G3l.js";import"./Trash01-Tyi0X0KA.js";import"./Upload01-BE_2AiDk.js";import"./Users01-B0nNOy2m.js";import"./XClose-BCBhmnTq.js";import"./Zap-DyZkYnvp.js";import"./empty-state-R8mrYCIa.js";import"./label-DQEXoY6T.js";import"./badge-D4t_0yop.js";import"./index-CBBEwfQu.js";import"./select-DDLvK1MW.js";import"./index-BdQq_4o_.js";import"./index-BFdtW_Lt.js";import"./use-mcp-client-3JkIBVIw.js";import"./auth-D3aaR56V.js";import"./use-mcp-tools-ByvSnFS9.js";import"./checkbox-BB8KVrhZ.js";import"./search-input-DlGuVm3Y.js";import"./integration-icon-CkDjbcLK.js";import"./tool-set-selector-CkNcSn8D.js";import"./use-infinite-scroll-CycWyrzU.js";import"./useSuspenseInfiniteQuery-DkDXLw8E.js";import"./infiniteQueryObserver-DpQtHqSr.js";import"./collection-search-DqZnq1kz.js";import"./connection-PdY1jdjN.js";import"./url-slug-ClELDWkv.js";import"./use-connection-CZ1NbbVy.js";import"./use-api-keys-BGtID6j7.js";import"./access-gate-CAG-WX8M.js";import"./capability-load-error-ntTl1fvk.js";function xi(){const t=o.c(1);let i;return t[0]===Symbol.for("react.memo_cache_sentinel")?(i=r.jsx(p,{capability:"api-keys:manage",area:"api-keys",children:r.jsx(m,{})}),t[0]=i):i=t[0],i}export{xi as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as Et,j as s,b as Tt,r as _,av as It,m as Ot,h as Ft,t as wt}from"./index-3KPWvxje.js";import{u as Mt}from"./chat-context-DAm8BwnA.js";import{u as Pt}from"./use-voice-input-QiTrJUzH.js";import{S as $t}from"./scroll-area-WJkK2teo.js";import{u as Ut,A as Vt}from"./use-section-preview-base-zI8yu8Uc.js";import{z as zt,m as Lt,w as qt}from"./blocks-tab-states-DVd6KFfg.js";import{H as Ht,u as Dt,c as Gt,b as Wt,S as Zt}from"./held-block-view-CHgQbXgE.js";import{b as Jt,u as Qt,k as Xt}from"./use-never-published-DCeaCTzJ.js";import{n as Yt}from"./content-tab-BchiISde.js";import{S as te}from"./save-status-B2ZQt9kX.js";import"./use-panel-navigate-CHnO3l3E.js";import"./thread-route-Di0bkzxk.js";import"./use-project-scope-CNCMOXKT.js";import"./repository-binding-CxecY-3I.js";import"./use-mcp-client-BiREHqsd.js";import"./auth-BQPga9FC.js";import"./use-view-draft-kind-Dk36jUvh.js";import"./use-blog-view-DT5EsjwC.js";import"./use-organization-settings-BTcyt7Xy.js";import"./schema-CP3jUP8d.js";import"./task-board-DhcqtKTY.js";import"./thread-intent-SHlSNCgz.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-BdBt8CNZ.js";import"./session-runtime-HHqVO0hb.js";import"./use-entitlements-DLbX5te6.js";import"./use-ai-providers-C1Ih5bzG.js";import"./use-current-view-wwqqw_V_.js";import"./use-in-settings-BeiVDyNP.js";import"./use-decopilot-events-jYBoBwHC.js";import"./use-org-fs-D5FKSnJC.js";import"./useInfiniteQuery-B2Qtepsr.js";import"./infiniteQueryObserver-DDwzaksU.js";import"./popover-DP4F7_CN.js";import"./drawer-B6PI4TB_.js";import"./tooltip-BTV1JzvH.js";import"./index-C-ZMOKWO.js";import"./use-mobile-CyDt-Z7B.js";import"./agent-icon-DkxgdTq2.js";import"./AlertCircle-BfvLVKvB.js";import"./UserCheck01-CiFQCaAM.js";import"./Tool01-BXUPQGPn.js";import"./ArrowUp--UwxK92n.js";import"./ArrowLeft-C2FykyF6.js";import"./ArrowRight-Bik4c52x.js";import"./BookOpen01-BilNTWSK.js";import"./Globe04-Do5tHxnO.js";import"./CheckCircle-BnVx8J4a.js";import"./ChevronDown-C0Ct97Nx.js";import"./ChevronSelectorVertical-BCZnYrGE.js";import"./ChevronUp-DAD1S6Ws.js";import"./UserSquare-mr61dmtZ.js";import"./LinkBroken01-Bxo-dHHQ.js";import"./CreditCard01-B4XvVhYi.js";import"./File02-DdvQ67zT.js";import"./MessageCircle01-BKKrFlY2.js";import"./SwitchHorizontal01-DS2J6EzA.js";import"./Eye-BzGUeBDl.js";import"./Fingerprint04-BXyUriT5.js";import"./Image01-DizkuS2Y.js";import"./Key01-c2N0ukl0.js";import"./LayoutLeft-D3Tg0rwg.js";import"./Minus-CKYLVtbX.js";import"./Monitor01-DmoFUfkv.js";import"./Sun-CgSgDWkf.js";import"./Play-DC2460rh.js";import"./Plus-CGf9Pj2S.js";import"./SearchMd-CLDr5Ga-.js";import"./ShoppingBag01-BedAVSy9.js";import"./Trash01-gZBIPYql.js";import"./Upload01-1RPPAA6H.js";import"./Users01-B7MraNtO.js";import"./XClose-1Ewz688M.js";import"./Zap-Dx6qH61F.js";import"./index-Cq6M6Waz.js";import"./checkbox-CRIAj4CS.js";import"./select-CTqPYIcK.js";import"./index-BdQq_4o_.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./site-editor-toast-CG83Qxky.js";import"./content-changes-CfE_3Uuw.js";import"./sandbox-url-D3mC8qhT.js";import"./use-sandbox-events-BY2i13oh.js";import"./use-blocks-v8-project-BbdXcUHI.js";import"./utils-D_sY1gMa.js";import"./sandbox-git-api-CHSrWSaf.js";import"./empty-state-ucBYN1Td.js";import"./calendar-LCBbF8K6.js";import"./textarea-BYalQz_u.js";import"./usage-stats-Bn02Q7VR.js";import"./utils-CVEq3hMx.js";import"./markdown-BTc7JQrk.js";import"./use-copy-DwWelTLy.js";import"./gateway-client-DLXXp1N-.js";import"./form-DRVojTa5.js";import"./label-BCLmidyU.js";import"./editor-classes-B2dn3Q7Z.js";import"./switch-BSNnfS1l.js";import"./task-key-CXXHGQV2.js";import"./sortable.esm-ChhnIhnb.js";import"./toggle-group-CPU4Tqpq.js";import"./active-indicator-CCMhAsc_.js";import"./category-tree-rzAhrdTe.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-B7N8LimJ.js";import"./collapsible-DfyJlNR-.js";import"./use-task-board-items-CB6Ggiuk.js";import"./config-B5Mj-sZc.js";import"./task-route-B9NnRYLE.js";import"./project-index-GcNBPZcw.js";import"./shell-layout-DnwO2R3x.js";import"./use-deployment-admin-BXnzIfMj.js";import"./admin-fetch-BhTJlAsX.js";import"./use-org-notice-D_u9ItiX.js";import"./command-xDoRr7Zi.js";import"./index-DzqvkIWm.js";import"./integration-icon-DRSyNBxT.js";import"./project-icon-B2VOwuIx.js";import"./use-navigate-to-agent-DakGPNsO.js";import"./use-debounced-value-AZePmm7u.js";import"./new-project-dialog-tyX6xQzx.js";import"./repository-picker-BjEFUpD3.js";import"./github-icon-qTVEZUTW.js";import"./collection-search-DuVlDXds.js";import"./new-project-store-BZsmuGAK.js";import"./legacy-admin-welcome-dialog-BVecyKGg.js";import"./required-auth-layout-Cv07Hy4u.js";import"./use-org-sso-kNe9eh4A.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-QJp5hwpP.js";import"./types-D1rO9ICt.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./sheet-t_HY57A4.js";import"./use-connection-CvM0KMvL.js";import"./use-mcp-prompts-CRSbJqPT.js";import"./use-thread-outputs-DDTwilua.js";import"./file-type-icon-pmgcN2v-.js";import"./section-array-field-DO_gwOGN.js";import"./named-rule-step-D1aSwbmR.js";import"./slider-DNed2pvH.js";import"./index-DZHxLm8N.js";import"./tooltipContext-DanqZXoK.js";import"./CategoricalChart-Bey925zy.js";import"./index-B5wsqk6m.js";import"./combobox-DcqjiInn.js";import"./match-site-slug-config-B47_xZCi.js";import"./use-file-configs-QJhbV_x3.js";import"./asset-utils-NrFtBM4B.js";import"./hosted-reconcile-CJMYkQjT.js";import"./search-input-DHj1Riv2.js";import"./tabs-Ce4S_T7L.js";import"./delete-copy-CYRbIZ6o.js";import"./index-DRanp5tp.js";import"./view-header-C6Bh0Sge.js";import"./use-cms-publish-actions-Cga9cdmk.js";import"./use-content-sync-94wWu-pN.js";import"./use-delete-block-CXohCfLe.js";import"./item-actions-vRTUw5XQ.js";import"./date-utils-CrvIKg-s.js";import"./badge-BOmoymVs.js";import"./empty-state-Djnlj7TD.js";import"./primitives-BjRgbHRb.js";import"./use-move-blocks-DJFj08e5.js";import"./monaco-editor-FtA5uzsH.js";import"./editor-Bys86V9H.js";import"./sandbox-lifecycle-context-B-xM8M8W.js";import"./parse-sections-4BvjzUez.js";import"./mustache-YyQS9gls.js";import"./collection-table-wrapper-B0-ZDHoV.js";import"./table-ClBEVmMX.js";import"./agent-capabilities-BOJn7BYH.js";function ee(e,t){if(!e||!t?.length)return e;const o=Object.fromEntries(Object.entries(e.properties??{}).filter(([r])=>!t.includes(r)));return Object.keys(o).length>0?{...e,properties:o}:e}function _t(e,t,o){return typeof e!="string"?null:ee(zt(e,t),o)}function re(e,t,o){if(!t||typeof e!="string")return!1;const r=_t(e,t,o);return!!r&&Object.keys(r.properties??{}).length>0}function oe(e,t){const o=(e.title||e.resolveType.split("/").pop()||"").replace(/\.(tsx?|jsx?)$/,"").replace(/[^A-Za-z0-9_-]/g,""),r=/^[A-Za-z]/.test(o)&&o.length>0?o:"Section",i=Yt(t,r);return{blockKey:i,data:{__resolveType:e.resolveType,name:i}}}function gi(e){const t=Et.c(10),o=e.saveGuard?void 0:e.block!==void 0;let r;t[0]!==e?(r=s.jsx(ie,{...e}),t[0]=e,t[1]=r):r=t[1];let i;return t[2]!==e.blockKey||t[3]!==e.branch||t[4]!==e.decofile||t[5]!==e.orgSlug||t[6]!==e.virtualMcpId||t[7]!==o||t[8]!==r?(i=s.jsx(Ht,{listing:e.decofile,orgSlug:e.orgSlug,virtualMcpId:e.virtualMcpId,branch:e.branch,blockKey:e.blockKey,present:o,children:r}),t[2]=e.blockKey,t[3]=e.branch,t[4]=e.decofile,t[5]=e.orgSlug,t[6]=e.virtualMcpId,t[7]=o,t[8]=r,t[9]=i):i=t[9],i}function ie(e){const t=Et.c(95),{orgSlug:o,virtualMcpId:r,branch:i,blockKey:a,block:b,meta:m,decofile:c,title:At,excludeFields:v,previewBaseUrl:gt,notice:Z,saveGuard:J,persistDefaults:Q,schemaWaiting:St}=e,X=gt===void 0?null:gt,Y=St===void 0?!0:St,tt=Mt()?.taskId??null,h=Tt(),K=Pt(r);let R;t[0]!==i||t[1]!==X||t[2]!==r?(R={virtualMcpId:r,branch:i,sandboxUrl:X},t[0]=i,t[1]=X,t[2]=r,t[3]=R):R=t[3];const x=Ut(R),l=typeof b?.__resolveType=="string"?b.__resolveType:"";let N;t[4]!==v||t[5]!==m||t[6]!==l?(N=_t(l,m,v),t[4]=v,t[5]=m,t[6]=l,t[7]=N):N=t[7];const et=N;let C;t[8]!==v||t[9]!==m||t[10]!==l?(C=re(l,m,v),t[8]=v,t[9]=m,t[10]=l,t[11]=C):C=t[11];const rt=C;let T;t[12]!==m||t[13]!==l||t[14]!==Y||t[15]!==K?(T=Y&&l!==""&&!(K.resolved&&K.runtime==="cms")&&!Lt(l,m),t[12]=m,t[13]=l,t[14]=Y,t[15]=K,t[16]=T):T=t[16];const I=T,yt=At??(b?qt(a,b,m):a);let O;t[17]!==i||t[18]!==o||t[19]!==r?(O={orgSlug:o,virtualMcpId:r,branch:i},t[17]=i,t[18]=o,t[19]=r,t[20]=O):O=t[20];let F;t[21]!==J?(F={guard:J,holdsCopy:!0},t[21]=J,t[22]=F):F=t[22];const{save:ot,flush:it,isPending:st}=Jt(O,F);let M;t[23]!==i||t[24]!==o||t[25]!==r?(M={orgSlug:o,virtualMcpId:r,branch:i},t[23]=i,t[24]=o,t[25]=r,t[26]=M):M=t[26];const mt=Qt(M);let P;t[27]!==i||t[28]!==o||t[29]!==r?(P={orgSlug:o,virtualMcpId:r,branch:i},t[27]=i,t[28]=o,t[29]=r,t[30]=P):P=t[30];const nt=Dt(P,c).save,[Kt,Rt]=_.useState(a),[lt,kt]=_.useState(null),[pt,jt]=_.useState(0);let $;t[31]===Symbol.for("react.memo_cache_sentinel")?($=[],t[31]=$):$=t[31];const[g,Bt]=_.useState($),[at,d]=_.useState(!1),U=_.useRef(null);Kt!==a&&(Rt(a),kt(null),jt(me),Bt([]));let V;t[32]!==b?(V=b??{},t[32]=b,t[33]=V):V=t[33];const ct=V;let S;t[34]!==lt?(S=lt??{},t[34]=lt,t[35]=S):S=t[35];let z;t[36]!==ct||t[37]!==S?(z={...ct,...S},t[36]=ct,t[37]=S,t[38]=z):z=t[38];const dt=z;let L;t[39]!==a||t[40]!==l||t[41]!==ot?(L=n=>{const p=n;kt(p),ot(a,{...p,__resolveType:l})},t[39]=a,t[40]=l,t[41]=ot,t[42]=L):L=t[42];const ut=L;let q;t[43]===Symbol.for("react.memo_cache_sentinel")?(q=n=>{Bt(n)},t[43]=q):q=t[43];const A=q;let H;t[44]!==c||t[45]!==it||t[46]!==mt||t[47]!==h?(H=async(n,p)=>{try{const{blockKey:u,data:f}=oe(n,c),vt=await mt.mutateAsync({blockKey:u,data:f});Xt(vt)||wt.success(h("sandbox.appEditor.createdSection",{name:u})),p({__resolveType:u}),it()}catch(u){const f=u,vt=f instanceof Error?f.message:h("sandbox.appEditor.failedAddSection");throw wt.error(vt),f}},t[44]=c,t[45]=it,t[46]=mt,t[47]=h,t[48]=H):H=t[48];const y=H;let D;t[49]!==d?(D=n=>{U.current=n.append,d(!0)},t[49]=d,t[50]=D):D=t[50];const ft=D;let G;t[51]!==y||t[52]!==d?(G=async n=>{const p=U.current;if(p)try{await y(n,u=>{p(u),d(!1),U.current=null})}catch{}},t[51]=y,t[52]=d,t[53]=G):G=t[53];const ht=G,bt=g.length>0?[yt,...g]:[],Nt="flex h-full flex-col",Ct="flex h-12 shrink-0 items-center justify-between border-b px-6",xt=bt.length>0?s.jsx("nav",{"aria-label":h("sandbox.appEditor.editingBreadcrumb"),className:"flex min-w-0 flex-1 items-center gap-1 overflow-hidden text-sm",children:bt.map((n,p)=>{const u=p===bt.length-1,f=Gt(n);return s.jsxs("span",{className:"flex min-w-0 items-center gap-1 overflow-hidden",children:[p>0&&s.jsx(It,{className:"size-3 shrink-0 text-muted-foreground/60"}),s.jsx("button",{type:"button",onClick:()=>{A(p===0?[]:Wt(g,p)),jt(se)},title:f,className:Ot("min-w-0 truncate rounded-lg px-1 py-0.5 text-left transition-colors",u?"font-medium text-foreground":"text-muted-foreground hover:bg-accent hover:text-accent-foreground"),children:f})]},`${f}-${p}`)})}):s.jsx("span",{className:"text-sm font-medium",children:yt});let k;t[54]!==st?(k=s.jsx(te,{isPending:st,isError:!1}),t[54]=st,t[55]=k):k=t[55];let j;t[56]!==xt||t[57]!==k?(j=s.jsxs("div",{className:Ct,children:[xt,k]}),t[56]=xt,t[57]=k,t[58]=j):j=t[58];let B;t[59]!==I||t[60]!==a||t[61]!==i||t[62]!==g||t[63]!==c||t[64]!==dt||t[65]!==pt||t[66]!==y||t[67]!==A||t[68]!==ut||t[69]!==ft||t[70]!==rt||t[71]!==m||t[72]!==o||t[73]!==Q||t[74]!==nt||t[75]!==et||t[76]!==x||t[77]!==h||t[78]!==tt||t[79]!==r?(B=rt?s.jsx(Zt,{schema:et,value:dt,onChange:ut,persistDefaults:Q,basePath:"",breadcrumbPath:g,onBreadcrumbChange:A,decofile:c,meta:m,onSaveReferencedBlock:nt,previewBaseUrl:x,onAddSectionItem:y,onRequestAddSection:ft,sandbox:{orgSlug:o,virtualMcpId:r,branch:i,threadId:tt}},`${a}:${pt}`):s.jsxs("div",{className:"flex flex-col items-center gap-3 py-6 text-center text-xs text-muted-foreground",children:[I&&s.jsx(Ft,{className:"size-4"}),s.jsx("p",{children:h(I?"sandbox.appEditor.schemaAwaitsBuild":"sandbox.appEditor.noEditableSchema")})]}),t[59]=I,t[60]=a,t[61]=i,t[62]=g,t[63]=c,t[64]=dt,t[65]=pt,t[66]=y,t[67]=A,t[68]=ut,t[69]=ft,t[70]=rt,t[71]=m,t[72]=o,t[73]=Q,t[74]=nt,t[75]=et,t[76]=x,t[77]=h,t[78]=tt,t[79]=r,t[80]=B):B=t[80];let w;t[81]!==Z||t[82]!==B?(w=s.jsx($t,{className:"min-h-0 min-w-0 flex-1 [&_[data-slot=scroll-area-viewport]>div]:!block",children:s.jsx("div",{className:"px-6 py-6",children:s.jsxs("div",{className:"mx-auto max-w-xl",children:[Z,B]})})}),t[81]=Z,t[82]=B,t[83]=w):w=t[83];let E;t[84]!==at||t[85]!==c||t[86]!==ht||t[87]!==m||t[88]!==x||t[89]!==d?(E=x&&s.jsx(Vt,{open:at,onOpenChange:n=>{d(n),n||(U.current=null)},meta:m,decofile:c,previewBaseUrl:x,onSelect:n=>{ht(n)}}),t[84]=at,t[85]=c,t[86]=ht,t[87]=m,t[88]=x,t[89]=d,t[90]=E):E=t[90];let W;return t[91]!==j||t[92]!==w||t[93]!==E?(W=s.jsxs("div",{className:Nt,children:[j,w,E]}),t[91]=j,t[92]=w,t[93]=E,t[94]=W):W=t[94],W}function se(e){return e+1}function me(e){return e+1}export{gi as AppEditor};
|
|
1
|
+
import{c as Et,j as s,b as Tt,r as _,av as It,m as Ot,h as Ft,t as wt}from"./index-CTKVsdNw.js";import{u as Mt}from"./chat-context-MoYYfmsS.js";import{u as Pt}from"./use-voice-input-BxiteUCw.js";import{S as $t}from"./scroll-area-C9_ZoUPP.js";import{u as Ut,A as Vt}from"./use-section-preview-base-Bc792c4s.js";import{z as zt,m as Lt,w as qt}from"./blocks-tab-states-CBGKB5th.js";import{H as Ht,u as Dt,c as Gt,b as Wt,S as Zt}from"./held-block-view-Jaxz4Y5b.js";import{b as Jt,u as Qt,k as Xt}from"./use-never-published-CvngtHyh.js";import{n as Yt}from"./content-tab-CCuslwaK.js";import{S as te}from"./save-status-P-MBD5-0.js";import"./use-panel-navigate-D_4zKcAV.js";import"./thread-route-PqBNFZfw.js";import"./use-project-scope-DR1wnfkK.js";import"./repository-binding-C7rU_ngE.js";import"./use-mcp-client-3JkIBVIw.js";import"./auth-D3aaR56V.js";import"./use-view-draft-kind-BqlsyAow.js";import"./use-blog-view-Cf0gUXmH.js";import"./use-organization-settings-DkS8IzZH.js";import"./schema-BNEJODyB.js";import"./task-board-DHRO-oCR.js";import"./thread-intent-D4UZcJTa.js";import"./delay-CnY5UFtP.js";import"./backoff-CrEUbyZT.js";import"./watch-sse-pool-BkhdInio.js";import"./session-runtime-DUDcoTOp.js";import"./use-entitlements-CGKQp5Ve.js";import"./use-ai-providers-zUKWfsvx.js";import"./use-current-view-EZITdVTI.js";import"./use-in-settings-DpMiymIv.js";import"./use-decopilot-events-BnISHAGr.js";import"./use-org-fs-BW-3KvTS.js";import"./useInfiniteQuery-C8AjoHI-.js";import"./infiniteQueryObserver-DpQtHqSr.js";import"./popover-DBuD8VkZ.js";import"./drawer-DgvYa3k0.js";import"./tooltip-Cilmqep0.js";import"./index-BFdtW_Lt.js";import"./use-mobile-D4Z5otBR.js";import"./agent-icon-BeQK1LIp.js";import"./AlertCircle-DGhmQiH3.js";import"./UserCheck01-BzJrArBA.js";import"./Tool01-BCxvp4xD.js";import"./ArrowUp-B0lRrz50.js";import"./ArrowLeft-FP_83xMo.js";import"./ArrowRight-c12L_DBI.js";import"./BookOpen01-CGmiFh6c.js";import"./Globe04-i-SMP1da.js";import"./CheckCircle-DQx8J3sX.js";import"./ChevronDown-C2op7Ztq.js";import"./ChevronSelectorVertical-B8fgmPce.js";import"./ChevronUp-C6GRdhwz.js";import"./UserSquare-Csaj5_OE.js";import"./LinkBroken01-C-ZJkx1-.js";import"./CreditCard01-BrYzNGv7.js";import"./File02-lnmDsOIM.js";import"./MessageCircle01-CmMj6zOJ.js";import"./SwitchHorizontal01-B9k8zywr.js";import"./Eye-D1n0U2nr.js";import"./Fingerprint04-DWY8-Yis.js";import"./Image01-D0d8t9Nf.js";import"./Key01-BNFXrDTG.js";import"./LayoutLeft-CzGwliNd.js";import"./Minus-C12vvCq7.js";import"./Monitor01-DRn7cBTS.js";import"./Sun-CHBjoRg5.js";import"./Play-LuTO-O0l.js";import"./Plus-lVBJlI-r.js";import"./SearchMd-DlyifTmg.js";import"./ShoppingBag01-Cqxv0G3l.js";import"./Trash01-Tyi0X0KA.js";import"./Upload01-BE_2AiDk.js";import"./Users01-B0nNOy2m.js";import"./XClose-BCBhmnTq.js";import"./Zap-DyZkYnvp.js";import"./index-Cf6V_if2.js";import"./checkbox-BB8KVrhZ.js";import"./select-DDLvK1MW.js";import"./index-BdQq_4o_.js";import"./ai-providers-logos-DD3qZ33J.js";import"./openai-compatible-presets-BKGfVqEx.js";import"./site-editor-toast-CZULEbbj.js";import"./content-changes-B7QLNPm9.js";import"./sandbox-url-D3mC8qhT.js";import"./use-sandbox-events-DWTS0v2d.js";import"./use-blocks-v8-project-B_RMtP9Z.js";import"./utils-BTsdsvJd.js";import"./sandbox-git-api-zgEm1abw.js";import"./empty-state-CAav-Xpz.js";import"./calendar-DqJcyMVN.js";import"./textarea-CIDyBlnB.js";import"./usage-stats-B3MiRtbE.js";import"./utils-CVEq3hMx.js";import"./markdown-CBsDAJwx.js";import"./use-copy-BktBumBM.js";import"./gateway-client-BjTndvcO.js";import"./form-lT2yclrj.js";import"./label-DQEXoY6T.js";import"./editor-classes-Ds44wzZG.js";import"./switch-BOASvXY2.js";import"./task-key-dODSqtOD.js";import"./sortable.esm-Ci07B_Jj.js";import"./toggle-group-BcyNxcnc.js";import"./active-indicator-CCMhAsc_.js";import"./category-tree-BCyFM0Ok.js";import"./sandbox-start-errors-BK_aDCyt.js";import"./pair-BR0xVY7K.js";import"./collapsible-CvOWSuY7.js";import"./use-task-board-items-D4msWN6P.js";import"./config-CKam44yj.js";import"./task-route-Cy5WEzJq.js";import"./project-index-BUfiy84V.js";import"./shell-layout-DjDFDvAp.js";import"./use-deployment-admin-BPWk2wkA.js";import"./admin-fetch-BhTJlAsX.js";import"./use-org-notice-BX7WVuqK.js";import"./command-gq8mLEwk.js";import"./index-CIjrpBSD.js";import"./integration-icon-CkDjbcLK.js";import"./project-icon-DWIG3WsN.js";import"./use-navigate-to-agent-DNuLTYeG.js";import"./use-debounced-value-Dd9WXi-P.js";import"./new-project-dialog-DGVfOfmA.js";import"./repository-picker-LXFO8bDM.js";import"./github-icon-CXz0klo1.js";import"./collection-search-DqZnq1kz.js";import"./new-project-store-DAT5Euei.js";import"./legacy-admin-welcome-dialog-DwPqDRJj.js";import"./required-auth-layout-Xfd5oNH3.js";import"./use-org-sso-CGL9Mumz.js";import"./content-blocks-o63cs2vh.js";import"./mcp-app-renderer-GqMvWkA6.js";import"./types-CnPGvQg1.js";import"./omit-server-managed-metadata-L5IhjRZB.js";import"./sheet-DwYk86zq.js";import"./use-connection-CZ1NbbVy.js";import"./use-mcp-prompts-BS4RJMA_.js";import"./use-thread-outputs-C9z66BGs.js";import"./file-type-icon-CFo6D_mq.js";import"./section-array-field-C-IVu4bI.js";import"./named-rule-step-DUY-1xO9.js";import"./slider-BM8aiQga.js";import"./index-B--QVBAJ.js";import"./tooltipContext-HNg68jH0.js";import"./CategoricalChart-CvWzaQub.js";import"./index-CrQFnFIn.js";import"./combobox-BTk2iFx5.js";import"./match-site-slug-config-B47_xZCi.js";import"./use-file-configs-CcLJWcIx.js";import"./asset-utils-kGLknUlk.js";import"./hosted-reconcile-LANuriok.js";import"./search-input-DlGuVm3Y.js";import"./tabs-BGcPqJhP.js";import"./delete-copy-CKxy6ck-.js";import"./index-CpCzT9a1.js";import"./view-header-DzcnIXEq.js";import"./use-cms-publish-actions-CD9zGQ2J.js";import"./use-content-sync-Cq2aGUf5.js";import"./use-delete-block-DTWO1nrc.js";import"./item-actions-KIdbZTtB.js";import"./date-utils-CrvIKg-s.js";import"./badge-D4t_0yop.js";import"./empty-state-R8mrYCIa.js";import"./primitives-B9kPUDQM.js";import"./use-move-blocks-Brooe0Rr.js";import"./monaco-editor-BIu4Dvyb.js";import"./editor-C2k7wzhY.js";import"./sandbox-lifecycle-context-B8XBQ27H.js";import"./parse-sections-DwNpuqYY.js";import"./mustache-jt6LkG70.js";import"./collection-table-wrapper-D_jB2iSb.js";import"./table-DRfPsdaj.js";import"./agent-capabilities-CwQVSwUn.js";function ee(e,t){if(!e||!t?.length)return e;const o=Object.fromEntries(Object.entries(e.properties??{}).filter(([r])=>!t.includes(r)));return Object.keys(o).length>0?{...e,properties:o}:e}function _t(e,t,o){return typeof e!="string"?null:ee(zt(e,t),o)}function re(e,t,o){if(!t||typeof e!="string")return!1;const r=_t(e,t,o);return!!r&&Object.keys(r.properties??{}).length>0}function oe(e,t){const o=(e.title||e.resolveType.split("/").pop()||"").replace(/\.(tsx?|jsx?)$/,"").replace(/[^A-Za-z0-9_-]/g,""),r=/^[A-Za-z]/.test(o)&&o.length>0?o:"Section",i=Yt(t,r);return{blockKey:i,data:{__resolveType:e.resolveType,name:i}}}function gi(e){const t=Et.c(10),o=e.saveGuard?void 0:e.block!==void 0;let r;t[0]!==e?(r=s.jsx(ie,{...e}),t[0]=e,t[1]=r):r=t[1];let i;return t[2]!==e.blockKey||t[3]!==e.branch||t[4]!==e.decofile||t[5]!==e.orgSlug||t[6]!==e.virtualMcpId||t[7]!==o||t[8]!==r?(i=s.jsx(Ht,{listing:e.decofile,orgSlug:e.orgSlug,virtualMcpId:e.virtualMcpId,branch:e.branch,blockKey:e.blockKey,present:o,children:r}),t[2]=e.blockKey,t[3]=e.branch,t[4]=e.decofile,t[5]=e.orgSlug,t[6]=e.virtualMcpId,t[7]=o,t[8]=r,t[9]=i):i=t[9],i}function ie(e){const t=Et.c(95),{orgSlug:o,virtualMcpId:r,branch:i,blockKey:a,block:b,meta:m,decofile:c,title:At,excludeFields:v,previewBaseUrl:gt,notice:Z,saveGuard:J,persistDefaults:Q,schemaWaiting:St}=e,X=gt===void 0?null:gt,Y=St===void 0?!0:St,tt=Mt()?.taskId??null,h=Tt(),K=Pt(r);let R;t[0]!==i||t[1]!==X||t[2]!==r?(R={virtualMcpId:r,branch:i,sandboxUrl:X},t[0]=i,t[1]=X,t[2]=r,t[3]=R):R=t[3];const x=Ut(R),l=typeof b?.__resolveType=="string"?b.__resolveType:"";let N;t[4]!==v||t[5]!==m||t[6]!==l?(N=_t(l,m,v),t[4]=v,t[5]=m,t[6]=l,t[7]=N):N=t[7];const et=N;let C;t[8]!==v||t[9]!==m||t[10]!==l?(C=re(l,m,v),t[8]=v,t[9]=m,t[10]=l,t[11]=C):C=t[11];const rt=C;let T;t[12]!==m||t[13]!==l||t[14]!==Y||t[15]!==K?(T=Y&&l!==""&&!(K.resolved&&K.runtime==="cms")&&!Lt(l,m),t[12]=m,t[13]=l,t[14]=Y,t[15]=K,t[16]=T):T=t[16];const I=T,yt=At??(b?qt(a,b,m):a);let O;t[17]!==i||t[18]!==o||t[19]!==r?(O={orgSlug:o,virtualMcpId:r,branch:i},t[17]=i,t[18]=o,t[19]=r,t[20]=O):O=t[20];let F;t[21]!==J?(F={guard:J,holdsCopy:!0},t[21]=J,t[22]=F):F=t[22];const{save:ot,flush:it,isPending:st}=Jt(O,F);let M;t[23]!==i||t[24]!==o||t[25]!==r?(M={orgSlug:o,virtualMcpId:r,branch:i},t[23]=i,t[24]=o,t[25]=r,t[26]=M):M=t[26];const mt=Qt(M);let P;t[27]!==i||t[28]!==o||t[29]!==r?(P={orgSlug:o,virtualMcpId:r,branch:i},t[27]=i,t[28]=o,t[29]=r,t[30]=P):P=t[30];const nt=Dt(P,c).save,[Kt,Rt]=_.useState(a),[lt,kt]=_.useState(null),[pt,jt]=_.useState(0);let $;t[31]===Symbol.for("react.memo_cache_sentinel")?($=[],t[31]=$):$=t[31];const[g,Bt]=_.useState($),[at,d]=_.useState(!1),U=_.useRef(null);Kt!==a&&(Rt(a),kt(null),jt(me),Bt([]));let V;t[32]!==b?(V=b??{},t[32]=b,t[33]=V):V=t[33];const ct=V;let S;t[34]!==lt?(S=lt??{},t[34]=lt,t[35]=S):S=t[35];let z;t[36]!==ct||t[37]!==S?(z={...ct,...S},t[36]=ct,t[37]=S,t[38]=z):z=t[38];const dt=z;let L;t[39]!==a||t[40]!==l||t[41]!==ot?(L=n=>{const p=n;kt(p),ot(a,{...p,__resolveType:l})},t[39]=a,t[40]=l,t[41]=ot,t[42]=L):L=t[42];const ut=L;let q;t[43]===Symbol.for("react.memo_cache_sentinel")?(q=n=>{Bt(n)},t[43]=q):q=t[43];const A=q;let H;t[44]!==c||t[45]!==it||t[46]!==mt||t[47]!==h?(H=async(n,p)=>{try{const{blockKey:u,data:f}=oe(n,c),vt=await mt.mutateAsync({blockKey:u,data:f});Xt(vt)||wt.success(h("sandbox.appEditor.createdSection",{name:u})),p({__resolveType:u}),it()}catch(u){const f=u,vt=f instanceof Error?f.message:h("sandbox.appEditor.failedAddSection");throw wt.error(vt),f}},t[44]=c,t[45]=it,t[46]=mt,t[47]=h,t[48]=H):H=t[48];const y=H;let D;t[49]!==d?(D=n=>{U.current=n.append,d(!0)},t[49]=d,t[50]=D):D=t[50];const ft=D;let G;t[51]!==y||t[52]!==d?(G=async n=>{const p=U.current;if(p)try{await y(n,u=>{p(u),d(!1),U.current=null})}catch{}},t[51]=y,t[52]=d,t[53]=G):G=t[53];const ht=G,bt=g.length>0?[yt,...g]:[],Nt="flex h-full flex-col",Ct="flex h-12 shrink-0 items-center justify-between border-b px-6",xt=bt.length>0?s.jsx("nav",{"aria-label":h("sandbox.appEditor.editingBreadcrumb"),className:"flex min-w-0 flex-1 items-center gap-1 overflow-hidden text-sm",children:bt.map((n,p)=>{const u=p===bt.length-1,f=Gt(n);return s.jsxs("span",{className:"flex min-w-0 items-center gap-1 overflow-hidden",children:[p>0&&s.jsx(It,{className:"size-3 shrink-0 text-muted-foreground/60"}),s.jsx("button",{type:"button",onClick:()=>{A(p===0?[]:Wt(g,p)),jt(se)},title:f,className:Ot("min-w-0 truncate rounded-lg px-1 py-0.5 text-left transition-colors",u?"font-medium text-foreground":"text-muted-foreground hover:bg-accent hover:text-accent-foreground"),children:f})]},`${f}-${p}`)})}):s.jsx("span",{className:"text-sm font-medium",children:yt});let k;t[54]!==st?(k=s.jsx(te,{isPending:st,isError:!1}),t[54]=st,t[55]=k):k=t[55];let j;t[56]!==xt||t[57]!==k?(j=s.jsxs("div",{className:Ct,children:[xt,k]}),t[56]=xt,t[57]=k,t[58]=j):j=t[58];let B;t[59]!==I||t[60]!==a||t[61]!==i||t[62]!==g||t[63]!==c||t[64]!==dt||t[65]!==pt||t[66]!==y||t[67]!==A||t[68]!==ut||t[69]!==ft||t[70]!==rt||t[71]!==m||t[72]!==o||t[73]!==Q||t[74]!==nt||t[75]!==et||t[76]!==x||t[77]!==h||t[78]!==tt||t[79]!==r?(B=rt?s.jsx(Zt,{schema:et,value:dt,onChange:ut,persistDefaults:Q,basePath:"",breadcrumbPath:g,onBreadcrumbChange:A,decofile:c,meta:m,onSaveReferencedBlock:nt,previewBaseUrl:x,onAddSectionItem:y,onRequestAddSection:ft,sandbox:{orgSlug:o,virtualMcpId:r,branch:i,threadId:tt}},`${a}:${pt}`):s.jsxs("div",{className:"flex flex-col items-center gap-3 py-6 text-center text-xs text-muted-foreground",children:[I&&s.jsx(Ft,{className:"size-4"}),s.jsx("p",{children:h(I?"sandbox.appEditor.schemaAwaitsBuild":"sandbox.appEditor.noEditableSchema")})]}),t[59]=I,t[60]=a,t[61]=i,t[62]=g,t[63]=c,t[64]=dt,t[65]=pt,t[66]=y,t[67]=A,t[68]=ut,t[69]=ft,t[70]=rt,t[71]=m,t[72]=o,t[73]=Q,t[74]=nt,t[75]=et,t[76]=x,t[77]=h,t[78]=tt,t[79]=r,t[80]=B):B=t[80];let w;t[81]!==Z||t[82]!==B?(w=s.jsx($t,{className:"min-h-0 min-w-0 flex-1 [&_[data-slot=scroll-area-viewport]>div]:!block",children:s.jsx("div",{className:"px-6 py-6",children:s.jsxs("div",{className:"mx-auto max-w-xl",children:[Z,B]})})}),t[81]=Z,t[82]=B,t[83]=w):w=t[83];let E;t[84]!==at||t[85]!==c||t[86]!==ht||t[87]!==m||t[88]!==x||t[89]!==d?(E=x&&s.jsx(Vt,{open:at,onOpenChange:n=>{d(n),n||(U.current=null)},meta:m,decofile:c,previewBaseUrl:x,onSelect:n=>{ht(n)}}),t[84]=at,t[85]=c,t[86]=ht,t[87]=m,t[88]=x,t[89]=d,t[90]=E):E=t[90];let W;return t[91]!==j||t[92]!==w||t[93]!==E?(W=s.jsxs("div",{className:Nt,children:[j,w,E]}),t[91]=j,t[92]=w,t[93]=E,t[94]=W):W=t[94],W}function se(e){return e+1}function me(e){return e+1}export{gi as AppEditor};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as d,a6 as m,e as p,an as y,K as I,q as P,b as $,j as g,B as v}from"./index-
|
|
1
|
+
import{c as d,a6 as m,e as p,an as y,K as I,q as P,b as $,j as g,B as v}from"./index-CTKVsdNw.js";import{u as C}from"./useInfiniteQuery-C8AjoHI-.js";function k(t){const e=d.c(17),{org:r}=m(),i=y();let s,n,o,c;e[0]!==r.id||e[1]!==t.configId||e[2]!==t.imageOnly||e[3]!==t.search?(n=t.search?.trim()||void 0,s=t.imageOnly??!1,c=C,o=I.filePickerObjects(r.id,t.configId,n,s),e[0]=r.id,e[1]=t.configId,e[2]=t.imageOnly,e[3]=t.search,e[4]=s,e[5]=n,e[6]=o,e[7]=c):(s=e[4],n=e[5],o=e[6],c=e[7]);const a=t.enabled!==!1&&!!t.configId;let l;e[8]!==s||e[9]!==t.configId||e[10]!==n||e[11]!==i?(l=async u=>{const{pageParam:x}=u;return await i.call("FILE_OBJECTS_LIST",{configId:t.configId,cursor:x??void 0,search:n,imageOnly:s||void 0})},e[8]=s,e[9]=t.configId,e[10]=n,e[11]=i,e[12]=l):l=e[12];let f;return e[13]!==o||e[14]!==a||e[15]!==l?(f={queryKey:o,enabled:a,staleTime:3e4,initialPageParam:null,queryFn:l,getNextPageParam:E},e[13]=o,e[14]=a,e[15]=l,e[16]=f):f=e[16],c(f)}function E(t){return t.nextCursor??void 0}function D(){const t=d.c(2),{org:e}=m();let r;return t[0]!==e?(r={mutationFn:async i=>{const s=i.file.type||"application/octet-stream",n=i.replaceKey?`replace=${encodeURIComponent(i.replaceKey)}`:`filename=${encodeURIComponent(i.file.name)}`,o=await fetch(`/api/${encodeURIComponent(e.slug)}/file-configs/${encodeURIComponent(i.configId)}/upload?${n}`,{method:"POST",headers:{"Content-Type":s},body:i.file});if(!o.ok){const c=await o.text().catch(O);let a=`${o.status} ${o.statusText}`;try{const l=JSON.parse(c);l.message&&(a=l.message)}catch{c&&(a=c.slice(0,200))}throw new Error(`Upload failed: ${a}`)}return await o.json()}},t[0]=e,t[1]=r):r=t[1],p(r)}function O(){return""}function K(){const t=d.c(8),{org:e}=m(),r=y(),i=P();let s;t[0]!==r?(s=c=>r.call("FILE_OBJECT_DELETE",c),t[0]=r,t[1]=s):s=t[1];let n;t[2]!==e||t[3]!==i?(n=(c,a)=>{i.invalidateQueries({queryKey:I.filePickerObjectsByConfig(e.id,a.configId)})},t[2]=e,t[3]=i,t[4]=n):n=t[4];let o;return t[5]!==s||t[6]!==n?(o={mutationFn:s,onSuccess:n},t[5]=s,t[6]=n,t[7]=o):o=t[7],p(o)}function R(t){const e=d.c(14),{denied:r,retrying:i,onRetry:s}=t,n=$(),o=r?"filePicker.filePickerDialog.listingDenied":"filePicker.filePickerDialog.listingFailed";let c;e[0]!==n||e[1]!==o?(c=n(o),e[0]=n,e[1]=o,e[2]=c):c=e[2];let a;e[3]!==c?(a=g.jsx("p",{className:"text-sm text-muted-foreground",children:c}),e[3]=c,e[4]=a):a=e[4];let l;e[5]!==n?(l=n("filePicker.filePickerDialog.retryListing"),e[5]=n,e[6]=l):l=e[6];let f;e[7]!==s||e[8]!==i||e[9]!==l?(f=g.jsx(v,{type:"button",variant:"outline",size:"sm",disabled:i,onClick:s,children:l}),e[7]=s,e[8]=i,e[9]=l,e[10]=f):f=e[10];let u;return e[11]!==a||e[12]!==f?(u=g.jsxs("div",{role:"alert",className:"rounded-lg border border-border p-4 space-y-3",children:[a,f]}),e[11]=a,e[12]=f,e[13]=u):u=e[13],u}function j(t){return/\.(png|jpe?g|gif|webp|svg|avif|bmp)$/i.test(t)}function F(t){return/\.(mp4|webm|mov|m4v|ogv)$/i.test(t)}function _(t){return j(t)?"image":F(t)?"video":"document"}function b(t){const e=t.lastIndexOf(".");return e<0||e===t.length-1?"file":t.slice(e+1).toLowerCase()}function w(t){const e=t.split("/");return e[e.length-1]??t}const T=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}-(?=.)/i;function L(t){return w(t).replace(T,"")}function h(t){const e=b(t);return e==="jpeg"?"jpg":e}function S(t,e){return h(t)===h(e)}function U(t,e){const r=e?Date.parse(e):Number.NaN;return Number.isNaN(r)?t:`${t}${t.includes("?")?"&":"?"}v=${r}`}function q(t,e){if(t.height<=0||e.height<=0)return!1;const r=t.width/t.height,i=e.width/e.height;return Math.abs(r-i)/i>.01}function J(t){return t<1024?`${t} B`:t<1024*1024?`${(t/1024).toFixed(1)} KB`:`${(t/(1024*1024)).toFixed(1)} MB`}export{R as B,k as a,w as b,_ as c,L as d,b as e,J as f,q as g,K as h,j as i,U as p,S as s,D as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bK as v,bL as $,bM as W,bN as H,bO as V,bP as y,bQ as D,bR as x,bS as E,bT as q,bU as j,bV as N,bW as B,bX as Z,bY as F}from"./index-3KPWvxje.js";function G(e){const t=typeof e=="string"?new URL(e):new URL(e.href);return t.hash="",t}function J({requestedResource:e,configuredResource:t}){const n=typeof e=="string"?new URL(e):new URL(e.href),r=typeof t=="string"?new URL(t):new URL(t.href);if(n.origin!==r.origin||n.pathname.length<r.pathname.length)return!1;const a=n.pathname.endsWith("/")?n.pathname:n.pathname+"/",i=r.pathname.endsWith("/")?r.pathname:r.pathname+"/";return a.startsWith(i)}class pe extends Error{constructor(t){super(t??"Unauthorized")}}function Y(e){return["client_secret_basic","client_secret_post","none"].includes(e)}const p="code",_="S256";function K(e,t){const n=e.client_secret!==void 0;return"token_endpoint_auth_method"in e&&e.token_endpoint_auth_method&&Y(e.token_endpoint_auth_method)&&(t.length===0||t.includes(e.token_endpoint_auth_method))?e.token_endpoint_auth_method:t.length===0?n?"client_secret_basic":"none":n&&t.includes("client_secret_basic")?"client_secret_basic":n&&t.includes("client_secret_post")?"client_secret_post":t.includes("none")?"none":n?"client_secret_post":"none"}function Q(e,t,n,r){const{client_id:a,client_secret:i}=t;switch(e){case"client_secret_basic":X(a,i,n);return;case"client_secret_post":ee(a,i,r);return;case"none":te(a,r);return;default:throw new Error(`Unsupported client authentication method: ${e}`)}}function X(e,t,n){if(!t)throw new Error("client_secret_basic authentication requires a client_secret");const r=btoa(`${e}:${t}`);n.set("Authorization",`Basic ${r}`)}function ee(e,t,n){n.set("client_id",e),t&&n.set("client_secret",t)}function te(e,t){t.set("client_id",e)}async function L(e){const t=e instanceof Response?e.status:void 0,n=e instanceof Response?await e.text():e;try{const r=B.parse(JSON.parse(n)),{error:a,error_description:i,error_uri:s}=r,o=Z[a]||y;return new o(i||"",s)}catch(r){const a=`${t?`HTTP ${t}: `:""}Invalid OAuth error response: ${r}. Raw body: ${n}`;return new y(a)}}async function _e(e,t){try{return await U(e,t)}catch(n){if(n instanceof v||n instanceof $)return await e.invalidateCredentials?.("all"),await U(e,t);if(n instanceof W)return await e.invalidateCredentials?.("tokens"),await U(e,t);throw n}}async function U(e,{serverUrl:t,authorizationCode:n,scope:r,resourceMetadataUrl:a,fetchFn:i}){const s=await e.discoveryState?.();let o,c,u,h=a;if(!h&&s?.resourceMetadataUrl&&(h=new URL(s.resourceMetadataUrl)),s?.authorizationServerUrl){if(c=s.authorizationServerUrl,o=s.resourceMetadata,u=s.authorizationServerMetadata??await T(c,{fetchFn:i}),!o)try{o=await M(t,{resourceMetadataUrl:h},i)}catch{}(u!==s.authorizationServerMetadata||o!==s.resourceMetadata)&&await e.saveDiscoveryState?.({authorizationServerUrl:String(c),resourceMetadataUrl:h?.toString(),resourceMetadata:o,authorizationServerMetadata:u})}else{const l=await ce(t,{resourceMetadataUrl:h,fetchFn:i});c=l.authorizationServerUrl,u=l.authorizationServerMetadata,o=l.resourceMetadata,await e.saveDiscoveryState?.({authorizationServerUrl:String(c),resourceMetadataUrl:h?.toString(),resourceMetadata:o,authorizationServerMetadata:u})}const f=await re(t,e,o),A=r||o?.scopes_supported?.join(" ")||e.clientMetadata.scope;let d=await Promise.resolve(e.clientInformation());if(!d){if(n!==void 0)throw new Error("Existing OAuth client information is required when exchanging an authorization code");const l=u?.client_id_metadata_document_supported===!0,w=e.clientMetadataUrl;if(w&&!ne(w))throw new H(`clientMetadataUrl must be a valid HTTPS URL with a non-root pathname, got: ${w}`);if(l&&w)d={client_id:w},await e.saveClientInformation?.(d);else{if(!e.saveClientInformation)throw new Error("OAuth client information must be saveable for dynamic registration");const k=await de(c,{metadata:u,clientMetadata:e.clientMetadata,scope:A,fetchFn:i});await e.saveClientInformation(k),d=k}}const O=!e.redirectUrl;if(n!==void 0||O){const l=await he(e,c,{metadata:u,resource:f,authorizationCode:n,fetchFn:i});return await e.saveTokens(l),"AUTHORIZED"}const S=await e.tokens();if(S?.refresh_token)try{const l=await le(c,{metadata:u,clientInformation:d,refreshToken:S.refresh_token,resource:f,addClientAuthentication:e.addClientAuthentication,fetchFn:i});return await e.saveTokens(l),"AUTHORIZED"}catch(l){if(!(!(l instanceof V)||l instanceof y))throw l}const C=e.state?await e.state():void 0,{authorizationUrl:z,codeVerifier:I}=await ue(c,{metadata:u,clientInformation:d,state:C,redirectUrl:e.redirectUrl,scope:A,resource:f});return await e.saveCodeVerifier(I),await e.redirectToAuthorization(z),"REDIRECT"}function ne(e){if(!e)return!1;try{const t=new URL(e);return t.protocol==="https:"&&t.pathname!=="/"}catch{return!1}}async function re(e,t,n){const r=G(e);if(t.validateResourceURL)return await t.validateResourceURL(r,n?.resource);if(n){if(!J({requestedResource:r,configuredResource:n.resource}))throw new Error(`Protected resource ${n.resource} does not match expected ${r} (or origin)`);return new URL(n.resource)}}function Ue(e){const t=e.headers.get("WWW-Authenticate");if(!t)return{};const[n,r]=t.split(" ");if(n.toLowerCase()!=="bearer"||!r)return{};const a=m(e,"resource_metadata")||void 0;let i;if(a)try{i=new URL(a)}catch{}const s=m(e,"scope")||void 0,o=m(e,"error")||void 0;return{resourceMetadataUrl:i,scope:s,error:o}}function m(e,t){const n=e.headers.get("WWW-Authenticate");if(!n)return null;const r=new RegExp(`${t}=(?:"([^"]+)"|([^\\s,]+))`),a=n.match(r);return a?a[1]||a[2]:null}async function M(e,t,n=fetch){const r=await ie(e,"oauth-protected-resource",n,{protocolVersion:t?.protocolVersion,metadataUrl:t?.resourceMetadataUrl});if(!r||r.status===404)throw await r?.body?.cancel(),new Error("Resource server does not implement OAuth 2.0 Protected Resource Metadata.");if(!r.ok)throw await r.body?.cancel(),new Error(`HTTP ${r.status} trying to load well-known OAuth protected resource metadata.`);return q.parse(await r.json())}async function R(e,t,n=fetch){try{return await n(e,{headers:t})}catch(r){if(r instanceof TypeError)return t?R(e,void 0,n):void 0;throw r}}function ae(e,t="",n={}){return t.endsWith("/")&&(t=t.slice(0,-1)),n.prependPathname?`${t}/.well-known/${e}`:`/.well-known/${e}${t}`}async function b(e,t,n=fetch){return await R(e,{"MCP-Protocol-Version":t},n)}function oe(e,t){return!e||e.status>=400&&e.status<500&&t!=="/"}async function ie(e,t,n,r){const a=new URL(e),i=r?.protocolVersion??E;let s;if(r?.metadataUrl)s=new URL(r.metadataUrl);else{const c=ae(t,a.pathname);s=new URL(c,r?.metadataServerUrl??a),s.search=a.search}let o=await b(s,i,n);if(!r?.metadataUrl&&oe(o,a.pathname)){const c=new URL(`/.well-known/${t}`,a);o=await b(c,i,n)}return o}function se(e){const t=typeof e=="string"?new URL(e):e,n=t.pathname!=="/",r=[];if(!n)return r.push({url:new URL("/.well-known/oauth-authorization-server",t.origin),type:"oauth"}),r.push({url:new URL("/.well-known/openid-configuration",t.origin),type:"oidc"}),r;let a=t.pathname;return a.endsWith("/")&&(a=a.slice(0,-1)),r.push({url:new URL(`/.well-known/oauth-authorization-server${a}`,t.origin),type:"oauth"}),r.push({url:new URL(`/.well-known/openid-configuration${a}`,t.origin),type:"oidc"}),r.push({url:new URL(`${a}/.well-known/openid-configuration`,t.origin),type:"oidc"}),r}async function T(e,{fetchFn:t=fetch,protocolVersion:n=E}={}){const r={"MCP-Protocol-Version":n,Accept:"application/json"},a=se(e);for(const{url:i,type:s}of a){const o=await R(i,r,t);if(o){if(!o.ok){if(await o.body?.cancel(),o.status>=400&&o.status<500)continue;throw new Error(`HTTP ${o.status} trying to load ${s==="oauth"?"OAuth":"OpenID provider"} metadata from ${i}`)}return s==="oauth"?D.parse(await o.json()):x.parse(await o.json())}}}async function ce(e,t){let n,r;try{n=await M(e,{resourceMetadataUrl:t?.resourceMetadataUrl},t?.fetchFn),n.authorization_servers&&n.authorization_servers.length>0&&(r=n.authorization_servers[0])}catch{}r||(r=String(new URL("/",e)));const a=await T(r,{fetchFn:t?.fetchFn});return{authorizationServerUrl:r,authorizationServerMetadata:a,resourceMetadata:n}}async function ue(e,{metadata:t,clientInformation:n,redirectUrl:r,scope:a,state:i,resource:s}){let o;if(t){if(o=new URL(t.authorization_endpoint),!t.response_types_supported.includes(p))throw new Error(`Incompatible auth server: does not support response type ${p}`);if(t.code_challenge_methods_supported&&!t.code_challenge_methods_supported.includes(_))throw new Error(`Incompatible auth server: does not support code challenge method ${_}`)}else o=new URL("/authorize",e);const c=await N(),u=c.code_verifier,h=c.code_challenge;return o.searchParams.set("response_type",p),o.searchParams.set("client_id",n.client_id),o.searchParams.set("code_challenge",h),o.searchParams.set("code_challenge_method",_),o.searchParams.set("redirect_uri",String(r)),i&&o.searchParams.set("state",i),a&&o.searchParams.set("scope",a),a?.includes("offline_access")&&o.searchParams.append("prompt","consent"),s&&o.searchParams.set("resource",s.href),{authorizationUrl:o,codeVerifier:u}}function P(e,t,n){return new URLSearchParams({grant_type:"authorization_code",code:e,code_verifier:t,redirect_uri:String(n)})}async function g(e,{metadata:t,tokenRequestParams:n,clientInformation:r,addClientAuthentication:a,resource:i,fetchFn:s}){const o=t?.token_endpoint?new URL(t.token_endpoint):new URL("/token",e),c=new Headers({"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"});if(i&&n.set("resource",i.href),a)await a(c,n,o,t);else if(r){const h=t?.token_endpoint_auth_methods_supported??[],f=K(r,h);Q(f,r,c,n)}const u=await(s??fetch)(o,{method:"POST",headers:c,body:n});if(!u.ok)throw await L(u);return F.parse(await u.json())}async function me(e,{metadata:t,clientInformation:n,authorizationCode:r,codeVerifier:a,redirectUri:i,resource:s,addClientAuthentication:o,fetchFn:c}){const u=P(r,a,i);return g(e,{metadata:t,tokenRequestParams:u,clientInformation:n,addClientAuthentication:o,resource:s,fetchFn:c})}async function le(e,{metadata:t,clientInformation:n,refreshToken:r,resource:a,addClientAuthentication:i,fetchFn:s}){const o=new URLSearchParams({grant_type:"refresh_token",refresh_token:r}),c=await g(e,{metadata:t,tokenRequestParams:o,clientInformation:n,addClientAuthentication:i,resource:a,fetchFn:s});return{refresh_token:r,...c}}async function he(e,t,{metadata:n,resource:r,authorizationCode:a,fetchFn:i}={}){const s=e.clientMetadata.scope;let o;if(e.prepareTokenRequest&&(o=await e.prepareTokenRequest(s)),!o){if(!a)throw new Error("Either provider.prepareTokenRequest() or authorizationCode is required");if(!e.redirectUrl)throw new Error("redirectUrl is required for authorization_code flow");const u=await e.codeVerifier();o=P(a,u,e.redirectUrl)}const c=await e.clientInformation();return g(t,{metadata:n,tokenRequestParams:o,clientInformation:c??void 0,addClientAuthentication:e.addClientAuthentication,resource:r,fetchFn:i})}async function de(e,{metadata:t,clientMetadata:n,scope:r,fetchFn:a}){let i;if(t){if(!t.registration_endpoint)throw new Error("Incompatible auth server: does not support dynamic client registration");i=new URL(t.registration_endpoint)}else i=new URL("/register",e);const s=await(a??fetch)(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...n,...r!==void 0?{scope:r}:{}})});if(!s.ok)throw await L(s);return j.parse(await s.json())}export{pe as U,T as a,_e as b,Ue as c,M as d,me as e};
|
|
1
|
+
import{bK as v,bL as $,bM as W,bN as H,bO as V,bP as y,bQ as D,bR as x,bS as E,bT as q,bU as j,bV as N,bW as B,bX as Z,bY as F}from"./index-CTKVsdNw.js";function G(e){const t=typeof e=="string"?new URL(e):new URL(e.href);return t.hash="",t}function J({requestedResource:e,configuredResource:t}){const n=typeof e=="string"?new URL(e):new URL(e.href),r=typeof t=="string"?new URL(t):new URL(t.href);if(n.origin!==r.origin||n.pathname.length<r.pathname.length)return!1;const a=n.pathname.endsWith("/")?n.pathname:n.pathname+"/",i=r.pathname.endsWith("/")?r.pathname:r.pathname+"/";return a.startsWith(i)}class pe extends Error{constructor(t){super(t??"Unauthorized")}}function Y(e){return["client_secret_basic","client_secret_post","none"].includes(e)}const p="code",_="S256";function K(e,t){const n=e.client_secret!==void 0;return"token_endpoint_auth_method"in e&&e.token_endpoint_auth_method&&Y(e.token_endpoint_auth_method)&&(t.length===0||t.includes(e.token_endpoint_auth_method))?e.token_endpoint_auth_method:t.length===0?n?"client_secret_basic":"none":n&&t.includes("client_secret_basic")?"client_secret_basic":n&&t.includes("client_secret_post")?"client_secret_post":t.includes("none")?"none":n?"client_secret_post":"none"}function Q(e,t,n,r){const{client_id:a,client_secret:i}=t;switch(e){case"client_secret_basic":X(a,i,n);return;case"client_secret_post":ee(a,i,r);return;case"none":te(a,r);return;default:throw new Error(`Unsupported client authentication method: ${e}`)}}function X(e,t,n){if(!t)throw new Error("client_secret_basic authentication requires a client_secret");const r=btoa(`${e}:${t}`);n.set("Authorization",`Basic ${r}`)}function ee(e,t,n){n.set("client_id",e),t&&n.set("client_secret",t)}function te(e,t){t.set("client_id",e)}async function L(e){const t=e instanceof Response?e.status:void 0,n=e instanceof Response?await e.text():e;try{const r=B.parse(JSON.parse(n)),{error:a,error_description:i,error_uri:s}=r,o=Z[a]||y;return new o(i||"",s)}catch(r){const a=`${t?`HTTP ${t}: `:""}Invalid OAuth error response: ${r}. Raw body: ${n}`;return new y(a)}}async function _e(e,t){try{return await U(e,t)}catch(n){if(n instanceof v||n instanceof $)return await e.invalidateCredentials?.("all"),await U(e,t);if(n instanceof W)return await e.invalidateCredentials?.("tokens"),await U(e,t);throw n}}async function U(e,{serverUrl:t,authorizationCode:n,scope:r,resourceMetadataUrl:a,fetchFn:i}){const s=await e.discoveryState?.();let o,c,u,h=a;if(!h&&s?.resourceMetadataUrl&&(h=new URL(s.resourceMetadataUrl)),s?.authorizationServerUrl){if(c=s.authorizationServerUrl,o=s.resourceMetadata,u=s.authorizationServerMetadata??await T(c,{fetchFn:i}),!o)try{o=await M(t,{resourceMetadataUrl:h},i)}catch{}(u!==s.authorizationServerMetadata||o!==s.resourceMetadata)&&await e.saveDiscoveryState?.({authorizationServerUrl:String(c),resourceMetadataUrl:h?.toString(),resourceMetadata:o,authorizationServerMetadata:u})}else{const l=await ce(t,{resourceMetadataUrl:h,fetchFn:i});c=l.authorizationServerUrl,u=l.authorizationServerMetadata,o=l.resourceMetadata,await e.saveDiscoveryState?.({authorizationServerUrl:String(c),resourceMetadataUrl:h?.toString(),resourceMetadata:o,authorizationServerMetadata:u})}const f=await re(t,e,o),A=r||o?.scopes_supported?.join(" ")||e.clientMetadata.scope;let d=await Promise.resolve(e.clientInformation());if(!d){if(n!==void 0)throw new Error("Existing OAuth client information is required when exchanging an authorization code");const l=u?.client_id_metadata_document_supported===!0,w=e.clientMetadataUrl;if(w&&!ne(w))throw new H(`clientMetadataUrl must be a valid HTTPS URL with a non-root pathname, got: ${w}`);if(l&&w)d={client_id:w},await e.saveClientInformation?.(d);else{if(!e.saveClientInformation)throw new Error("OAuth client information must be saveable for dynamic registration");const k=await de(c,{metadata:u,clientMetadata:e.clientMetadata,scope:A,fetchFn:i});await e.saveClientInformation(k),d=k}}const O=!e.redirectUrl;if(n!==void 0||O){const l=await he(e,c,{metadata:u,resource:f,authorizationCode:n,fetchFn:i});return await e.saveTokens(l),"AUTHORIZED"}const S=await e.tokens();if(S?.refresh_token)try{const l=await le(c,{metadata:u,clientInformation:d,refreshToken:S.refresh_token,resource:f,addClientAuthentication:e.addClientAuthentication,fetchFn:i});return await e.saveTokens(l),"AUTHORIZED"}catch(l){if(!(!(l instanceof V)||l instanceof y))throw l}const C=e.state?await e.state():void 0,{authorizationUrl:z,codeVerifier:I}=await ue(c,{metadata:u,clientInformation:d,state:C,redirectUrl:e.redirectUrl,scope:A,resource:f});return await e.saveCodeVerifier(I),await e.redirectToAuthorization(z),"REDIRECT"}function ne(e){if(!e)return!1;try{const t=new URL(e);return t.protocol==="https:"&&t.pathname!=="/"}catch{return!1}}async function re(e,t,n){const r=G(e);if(t.validateResourceURL)return await t.validateResourceURL(r,n?.resource);if(n){if(!J({requestedResource:r,configuredResource:n.resource}))throw new Error(`Protected resource ${n.resource} does not match expected ${r} (or origin)`);return new URL(n.resource)}}function Ue(e){const t=e.headers.get("WWW-Authenticate");if(!t)return{};const[n,r]=t.split(" ");if(n.toLowerCase()!=="bearer"||!r)return{};const a=m(e,"resource_metadata")||void 0;let i;if(a)try{i=new URL(a)}catch{}const s=m(e,"scope")||void 0,o=m(e,"error")||void 0;return{resourceMetadataUrl:i,scope:s,error:o}}function m(e,t){const n=e.headers.get("WWW-Authenticate");if(!n)return null;const r=new RegExp(`${t}=(?:"([^"]+)"|([^\\s,]+))`),a=n.match(r);return a?a[1]||a[2]:null}async function M(e,t,n=fetch){const r=await ie(e,"oauth-protected-resource",n,{protocolVersion:t?.protocolVersion,metadataUrl:t?.resourceMetadataUrl});if(!r||r.status===404)throw await r?.body?.cancel(),new Error("Resource server does not implement OAuth 2.0 Protected Resource Metadata.");if(!r.ok)throw await r.body?.cancel(),new Error(`HTTP ${r.status} trying to load well-known OAuth protected resource metadata.`);return q.parse(await r.json())}async function R(e,t,n=fetch){try{return await n(e,{headers:t})}catch(r){if(r instanceof TypeError)return t?R(e,void 0,n):void 0;throw r}}function ae(e,t="",n={}){return t.endsWith("/")&&(t=t.slice(0,-1)),n.prependPathname?`${t}/.well-known/${e}`:`/.well-known/${e}${t}`}async function b(e,t,n=fetch){return await R(e,{"MCP-Protocol-Version":t},n)}function oe(e,t){return!e||e.status>=400&&e.status<500&&t!=="/"}async function ie(e,t,n,r){const a=new URL(e),i=r?.protocolVersion??E;let s;if(r?.metadataUrl)s=new URL(r.metadataUrl);else{const c=ae(t,a.pathname);s=new URL(c,r?.metadataServerUrl??a),s.search=a.search}let o=await b(s,i,n);if(!r?.metadataUrl&&oe(o,a.pathname)){const c=new URL(`/.well-known/${t}`,a);o=await b(c,i,n)}return o}function se(e){const t=typeof e=="string"?new URL(e):e,n=t.pathname!=="/",r=[];if(!n)return r.push({url:new URL("/.well-known/oauth-authorization-server",t.origin),type:"oauth"}),r.push({url:new URL("/.well-known/openid-configuration",t.origin),type:"oidc"}),r;let a=t.pathname;return a.endsWith("/")&&(a=a.slice(0,-1)),r.push({url:new URL(`/.well-known/oauth-authorization-server${a}`,t.origin),type:"oauth"}),r.push({url:new URL(`/.well-known/openid-configuration${a}`,t.origin),type:"oidc"}),r.push({url:new URL(`${a}/.well-known/openid-configuration`,t.origin),type:"oidc"}),r}async function T(e,{fetchFn:t=fetch,protocolVersion:n=E}={}){const r={"MCP-Protocol-Version":n,Accept:"application/json"},a=se(e);for(const{url:i,type:s}of a){const o=await R(i,r,t);if(o){if(!o.ok){if(await o.body?.cancel(),o.status>=400&&o.status<500)continue;throw new Error(`HTTP ${o.status} trying to load ${s==="oauth"?"OAuth":"OpenID provider"} metadata from ${i}`)}return s==="oauth"?D.parse(await o.json()):x.parse(await o.json())}}}async function ce(e,t){let n,r;try{n=await M(e,{resourceMetadataUrl:t?.resourceMetadataUrl},t?.fetchFn),n.authorization_servers&&n.authorization_servers.length>0&&(r=n.authorization_servers[0])}catch{}r||(r=String(new URL("/",e)));const a=await T(r,{fetchFn:t?.fetchFn});return{authorizationServerUrl:r,authorizationServerMetadata:a,resourceMetadata:n}}async function ue(e,{metadata:t,clientInformation:n,redirectUrl:r,scope:a,state:i,resource:s}){let o;if(t){if(o=new URL(t.authorization_endpoint),!t.response_types_supported.includes(p))throw new Error(`Incompatible auth server: does not support response type ${p}`);if(t.code_challenge_methods_supported&&!t.code_challenge_methods_supported.includes(_))throw new Error(`Incompatible auth server: does not support code challenge method ${_}`)}else o=new URL("/authorize",e);const c=await N(),u=c.code_verifier,h=c.code_challenge;return o.searchParams.set("response_type",p),o.searchParams.set("client_id",n.client_id),o.searchParams.set("code_challenge",h),o.searchParams.set("code_challenge_method",_),o.searchParams.set("redirect_uri",String(r)),i&&o.searchParams.set("state",i),a&&o.searchParams.set("scope",a),a?.includes("offline_access")&&o.searchParams.append("prompt","consent"),s&&o.searchParams.set("resource",s.href),{authorizationUrl:o,codeVerifier:u}}function P(e,t,n){return new URLSearchParams({grant_type:"authorization_code",code:e,code_verifier:t,redirect_uri:String(n)})}async function g(e,{metadata:t,tokenRequestParams:n,clientInformation:r,addClientAuthentication:a,resource:i,fetchFn:s}){const o=t?.token_endpoint?new URL(t.token_endpoint):new URL("/token",e),c=new Headers({"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"});if(i&&n.set("resource",i.href),a)await a(c,n,o,t);else if(r){const h=t?.token_endpoint_auth_methods_supported??[],f=K(r,h);Q(f,r,c,n)}const u=await(s??fetch)(o,{method:"POST",headers:c,body:n});if(!u.ok)throw await L(u);return F.parse(await u.json())}async function me(e,{metadata:t,clientInformation:n,authorizationCode:r,codeVerifier:a,redirectUri:i,resource:s,addClientAuthentication:o,fetchFn:c}){const u=P(r,a,i);return g(e,{metadata:t,tokenRequestParams:u,clientInformation:n,addClientAuthentication:o,resource:s,fetchFn:c})}async function le(e,{metadata:t,clientInformation:n,refreshToken:r,resource:a,addClientAuthentication:i,fetchFn:s}){const o=new URLSearchParams({grant_type:"refresh_token",refresh_token:r}),c=await g(e,{metadata:t,tokenRequestParams:o,clientInformation:n,addClientAuthentication:i,resource:a,fetchFn:s});return{refresh_token:r,...c}}async function he(e,t,{metadata:n,resource:r,authorizationCode:a,fetchFn:i}={}){const s=e.clientMetadata.scope;let o;if(e.prepareTokenRequest&&(o=await e.prepareTokenRequest(s)),!o){if(!a)throw new Error("Either provider.prepareTokenRequest() or authorizationCode is required");if(!e.redirectUrl)throw new Error("redirectUrl is required for authorization_code flow");const u=await e.codeVerifier();o=P(a,u,e.redirectUrl)}const c=await e.clientInformation();return g(t,{metadata:n,tokenRequestParams:o,clientInformation:c??void 0,addClientAuthentication:e.addClientAuthentication,resource:r,fetchFn:i})}async function de(e,{metadata:t,clientMetadata:n,scope:r,fetchFn:a}){let i;if(t){if(!t.registration_endpoint)throw new Error("Incompatible auth server: does not support dynamic client registration");i=new URL(t.registration_endpoint)}else i=new URL("/register",e);const s=await(a??fetch)(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...n,...r!==void 0?{scope:r}:{}})});if(!s.ok)throw await L(s);return j.parse(await s.json())}export{pe as U,T as a,_e as b,Ue as c,M as d,me as e};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as r,f as l,j as t,S as m,A as o,g as f,N as x}from"./index-
|
|
1
|
+
import{c as r,f as l,j as t,S as m,A as o,g as f,N as x}from"./index-CTKVsdNw.js";function h(){const e=r.c(1),a=window.location.pathname+window.location.search;let n;return e[0]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx(x,{to:"/login",search:{next:a},replace:!0}),e[0]=n):n=e[0],n}function u(){const e=r.c(5);let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={from:"/auth/$pathname"},e[0]=a):a=e[0];const{pathname:n}=l(a);if(n==="accept-invitation"){let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s=t.jsx(m,{children:t.jsx("main",{className:"container mx-auto flex grow flex-col items-center justify-center gap-3 self-center p-4 md:p-6",children:t.jsx(o,{pathname:"accept-invitation"})})}),e[1]=s):s=e[1];let i;return e[2]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsxs(t.Fragment,{children:[s,t.jsx(f,{children:t.jsx(h,{})})]}),e[2]=i):i=e[2],i}let c;return e[3]!==n?(c=t.jsx("main",{className:"container mx-auto flex grow flex-col items-center justify-center gap-3 self-center p-4 md:p-6",children:t.jsx(o,{pathname:n})}),e[3]=n,e[4]=c):c=e[4],c}export{u as default};
|