decocms 4.619.6 → 4.619.7
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-DHp8jmot.js → AlertCircle-C5IcBKVv.js} +1 -1
- package/dist/client/assets/{AreaChart-BCnkx5UN.js → AreaChart-B2H1WOGA.js} +1 -1
- package/dist/client/assets/{ArrowLeft-Cc8j816i.js → ArrowLeft-BZRa3Prb.js} +1 -1
- package/dist/client/assets/{ArrowRight-BUt920-t.js → ArrowRight-CO7t3_mZ.js} +1 -1
- package/dist/client/assets/{ArrowUp-B8f1LOA3.js → ArrowUp-D_S-rNcV.js} +1 -1
- package/dist/client/assets/{BookOpen01-wKirkJO-.js → BookOpen01-C-0ZZ7xz.js} +1 -1
- package/dist/client/assets/{CartesianChart-JVyn_tGK.js → CartesianChart-DCfWEjbp.js} +1 -1
- package/dist/client/assets/{CategoricalChart-5Q9H1rNo.js → CategoricalChart-Bti1V1bE.js} +1 -1
- package/dist/client/assets/{CheckCircle-D9S6CGWx.js → CheckCircle-B3xnyufs.js} +1 -1
- package/dist/client/assets/{ChevronDown-B1gaFpI7.js → ChevronDown-DtBQPgDr.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-BYXBHXDb.js → ChevronSelectorVertical-BJY9ZtnD.js} +1 -1
- package/dist/client/assets/{ChevronUp-DSM4WhEr.js → ChevronUp-rDqeU0sa.js} +1 -1
- package/dist/client/assets/{CreditCard01-D-Qqod57.js → CreditCard01-VS59ZHH7.js} +1 -1
- package/dist/client/assets/{Eye-Bh0QZwW5.js → Eye-D2SrYnw3.js} +1 -1
- package/dist/client/assets/{File02-D76n5ez3.js → File02-CdVrg4Ze.js} +1 -1
- package/dist/client/assets/{Fingerprint04-DjShbp4X.js → Fingerprint04-DYu2trr5.js} +1 -1
- package/dist/client/assets/{Globe04-Bxguc1EN.js → Globe04-BdGaHZ3d.js} +1 -1
- package/dist/client/assets/{Image01-CtspV51W.js → Image01-AcutHfxy.js} +1 -1
- package/dist/client/assets/{Key01-CCIPurFY.js → Key01-BGw6Mss-.js} +1 -1
- package/dist/client/assets/{LayoutLeft-BFEHmKRP.js → LayoutLeft-1Z0D80D0.js} +1 -1
- package/dist/client/assets/{LinkBroken01-CpT6Lliq.js → LinkBroken01-CIEsHvum.js} +1 -1
- package/dist/client/assets/{MessageCircle01-_SN8etfV.js → MessageCircle01-B60_WqfQ.js} +1 -1
- package/dist/client/assets/{Minus-zPel_kH5.js → Minus-B0iH16cD.js} +1 -1
- package/dist/client/assets/{Monitor01-BdlJaMku.js → Monitor01-BVsLU-CT.js} +1 -1
- package/dist/client/assets/{Play-CzaN7ibQ.js → Play-BmnNNnuq.js} +1 -1
- package/dist/client/assets/{Plus-CMkKmZUL.js → Plus-CxjsXIQx.js} +1 -1
- package/dist/client/assets/{ReferenceLine-BwLqp31q.js → ReferenceLine-COfwL_ek.js} +1 -1
- package/dist/client/assets/{SearchMd-B5pf9UZz.js → SearchMd-oUneVOtx.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-5gtGqRTw.js → ShoppingBag01-DgjlfDxN.js} +1 -1
- package/dist/client/assets/{Sun-DBNaH9_q.js → Sun-B_Ztmr7U.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-BfUFdJcM.js → SwitchHorizontal01-DptIGy5I.js} +1 -1
- package/dist/client/assets/{Tool01-rzNtDuyc.js → Tool01-a2zo_Nh2.js} +1 -1
- package/dist/client/assets/{Tooltip-BNBczjCi.js → Tooltip-BUJvjg6p.js} +1 -1
- package/dist/client/assets/{Trash01-B4tXzI57.js → Trash01-DdWfB3p_.js} +1 -1
- package/dist/client/assets/{Upload01-C1ZsDyJy.js → Upload01-DDZaKror.js} +1 -1
- package/dist/client/assets/{UserCheck01-D-oZ1wVL.js → UserCheck01-BQk8M2vE.js} +1 -1
- package/dist/client/assets/{UserSquare-tdzty-ZP.js → UserSquare-DMtJtFsc.js} +1 -1
- package/dist/client/assets/{Users01-CBt7al_u.js → Users01-B7IyHIv3.js} +1 -1
- package/dist/client/assets/{XClose-DMw8v31t.js → XClose-B9QBg8Hw.js} +1 -1
- package/dist/client/assets/{Zap-Yb9Moy0J.js → Zap-DvCvOF0f.js} +1 -1
- package/dist/client/assets/{access-gate-Dcoi2jtR.js → access-gate-B_wXNW8_.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-CwJflcFh.js → add-connection-dialog-DHRN4AlC.js} +1 -1
- package/dist/client/assets/agent-app-42Ddv_wD.js +1 -0
- package/dist/client/assets/{agent-assets-D-flEvx9.js → agent-assets-V54jktFt.js} +1 -1
- package/dist/client/assets/{agent-automation-BheK98aT.js → agent-automation-B5Rrh4U5.js} +1 -1
- package/dist/client/assets/{agent-automations-BzbFIJuq.js → agent-automations-DXdA8yst.js} +1 -1
- package/dist/client/assets/{agent-blog-BIo3B1qy.js → agent-blog-C1s1aL9T.js} +2 -2
- package/dist/client/assets/{agent-blog-post-B_DGkpDQ.js → agent-blog-post-CDv4FfL_.js} +2 -2
- package/dist/client/assets/{agent-business-case-BwDARxnq.js → agent-business-case-rAgsfx68.js} +1 -1
- package/dist/client/assets/{agent-calendar-D7xlE1HQ.js → agent-calendar-CZ3xkWRZ.js} +1 -1
- package/dist/client/assets/{agent-capabilities-B4hv5XuU.js → agent-capabilities-gnOhsa2o.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-DEG1IMAt.js → agent-connect-sources-CkMKnOID.js} +1 -1
- package/dist/client/assets/agent-deck-CUHtE8yw.js +1 -0
- package/dist/client/assets/{agent-e2e-C6VbZw3g.js → agent-e2e-CLyQ5SdR.js} +1 -1
- package/dist/client/assets/agent-experiments-BErFwNsi.js +1 -0
- package/dist/client/assets/agent-file-C9cLBrX6.js +1 -0
- package/dist/client/assets/{agent-hosting-RPLiJ5b7.js → agent-hosting-CaM-66SR.js} +1 -1
- package/dist/client/assets/{agent-icon-DzQTekjt.js → agent-icon-usffbRRI.js} +1 -1
- package/dist/client/assets/agent-library-5k969p_q.js +1 -0
- package/dist/client/assets/agent-library-file-Bh10DaAz.js +1 -0
- package/dist/client/assets/agent-overview-CNB4WGny.js +1 -0
- package/dist/client/assets/{agent-releases-Cha0MP_1.js → agent-releases-BreJMe6b.js} +1 -1
- package/dist/client/assets/agent-settings-D-b8iDX2.js +1 -0
- package/dist/client/assets/{agent-site-editor-Y8zbm0PS.js → agent-site-editor-Czv48wVM.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-rjgbndHa.js +2 -0
- package/dist/client/assets/agent-site-editor-content-DZNX_5o_.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-DSBZc-f3.js +1 -0
- package/dist/client/assets/agent-view-BERAkvOe.js +1 -0
- package/dist/client/assets/{agent-view-guard-CAdmeTDj.js → agent-view-guard-DH7o6p1h.js} +1 -1
- package/dist/client/assets/{ai-providers-CNNvgNlU.js → ai-providers-CMY5OO2Y.js} +1 -1
- package/dist/client/assets/{alert-CqPOQxMp.js → alert-BvmNXhKo.js} +1 -1
- package/dist/client/assets/{analytics-sections-ZrJ9Ok5y.js → analytics-sections-2K6Q2SWt.js} +1 -1
- package/dist/client/assets/{api-keys-MrlLuITv.js → api-keys-3E2OUFN2.js} +1 -1
- package/dist/client/assets/api-keys-BJkSoBEK.js +1 -0
- package/dist/client/assets/{app-editor-vtnPo8Im.js → app-editor-DDHzNHhc.js} +1 -1
- package/dist/client/assets/{asset-utils-CUn_5xsl.js → asset-utils-Bh65EkIi.js} +1 -1
- package/dist/client/assets/{auth-catchall-CDYRwxSn.js → auth-catchall-BZYdYIWZ.js} +1 -1
- package/dist/client/assets/{auth-entry-BsLI_vbj.js → auth-entry-BBQRIIw6.js} +1 -1
- package/dist/client/assets/{auth-1RBDppc7.js → auth-ljl_IgPN.js} +1 -1
- package/dist/client/assets/{auth-split-layout-CshhJmWJ.js → auth-split-layout-BknvLkhe.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-DQVg8owO.js → authenticate-and-persist-oauth-Bs5ASyev.js} +1 -1
- package/dist/client/assets/{automation-list-row-BVbZucV7.js → automation-list-row-Bdq7_Dhd.js} +1 -1
- package/dist/client/assets/{automation-runs-DxvZ0Vg7.js → automation-runs-0F8FAeok.js} +1 -1
- package/dist/client/assets/{automations-BtJ5B1mZ.js → automations-CFBniQiY.js} +1 -1
- package/dist/client/assets/{badge-BkTpr2bz.js → badge-CcLprL9P.js} +1 -1
- package/dist/client/assets/{block-document-DAlO6-UW.js → block-document-BLtq_1ET.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-DUpChG8Q.js → blocks-preview-workspace-context-Cwu4UHGR.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-CeS8zOug.js → blocks-tab-states-BFYpeUrU.js} +1 -1
- package/dist/client/assets/{blog-preview-url-ChrVoHFE.js → blog-preview-url-BgP1ZGW2.js} +1 -1
- package/dist/client/assets/{blog-schema-CowB3Vhk.js → blog-schema-OP3tJznq.js} +1 -1
- package/dist/client/assets/{blog-source-gate-BwRo6Xxn.js → blog-source-gate-CEZmhZd5.js} +1 -1
- package/dist/client/assets/{blog-view-gate-CJsGeXoq.js → blog-view-gate-BqigEeda.js} +1 -1
- package/dist/client/assets/{buckets-CTyZadKu.js → buckets-DjlZI89A.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-C1yVzkfg.js → build-improve-prompt-doc-P3f8rCv7.js} +1 -1
- package/dist/client/assets/{calendar-Bk1qHpAt.js → calendar-DKsPNVb-.js} +1 -1
- package/dist/client/assets/{capability-load-error-Ci7s4JAp.js → capability-load-error-D0DSslqz.js} +1 -1
- package/dist/client/assets/{category-editor-CUPpQaMQ.js → category-editor-D-iSbA9s.js} +1 -1
- package/dist/client/assets/{category-tree-CO5INV74.js → category-tree-BkWzLfeb.js} +1 -1
- package/dist/client/assets/{chart-Bj0GFMeT.js → chart-CCUaKjCe.js} +1 -1
- package/dist/client/assets/{chat-context-yyPx2rIJ.js → chat-context-DvLeIzFQ.js} +1 -1
- package/dist/client/assets/{chat-draft-BmyLKmwq.js → chat-draft-4BFbPpRf.js} +1 -1
- package/dist/client/assets/{checkbox-CHo6EREP.js → checkbox-Bbsio9J6.js} +1 -1
- package/dist/client/assets/{choose-editor-DfPGf9v_.js → choose-editor-D9QkB389.js} +1 -1
- package/dist/client/assets/{cli-auth-success-RguCwH3A.js → cli-auth-success-8s-fzwHw.js} +1 -1
- package/dist/client/assets/{cms-settings-editor-DepLNTkT.js → cms-settings-editor-CtiJom4u.js} +1 -1
- package/dist/client/assets/{cms-store-drafts-BNFJq4GH.js → cms-store-drafts-BfXkPSrC.js} +1 -1
- package/dist/client/assets/{collapsible-DVsFa4NS.js → collapsible-B-3Qa12p.js} +1 -1
- package/dist/client/assets/{collection-detail-B65pW7Nc.js → collection-detail-ByynPl98.js} +1 -1
- package/dist/client/assets/{collection-display-button-D_LOQzsE.js → collection-display-button-BaOWrVAr.js} +1 -1
- package/dist/client/assets/{collection-search-RqO-SK3r.js → collection-search-3nPQayOE.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-DNexX6dz.js → collection-table-wrapper-FdvHf9jQ.js} +1 -1
- package/dist/client/assets/{collection-tabs-DmbFKQxC.js → collection-tabs-B-5zgbe0.js} +1 -1
- package/dist/client/assets/{combobox-Bv7BqZ1W.js → combobox-BHxpMQQ6.js} +1 -1
- package/dist/client/assets/{command-C9rwBG9w.js → command-D2i9KgXa.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-BSCFzQK2.js → companion-mcps-section-BV9NrKyl.js} +1 -1
- package/dist/client/assets/{config-D02z0SHv.js → config-Cz2t4Ozn.js} +1 -1
- package/dist/client/assets/{connect-236tE3dT.js → connect-CUy2b31t.js} +1 -1
- package/dist/client/assets/{connect-key-SP9WeF99.js → connect-key-BNGUEwiG.js} +1 -1
- package/dist/client/assets/{connect-layout-BXeSWfFe.js → connect-layout-BmKWKTCR.js} +1 -1
- package/dist/client/assets/{connect-source-dialog-CMsyR0xL.js → connect-source-dialog-DMjg5PaZ.js} +1 -1
- package/dist/client/assets/{connection-BPOqR5jC.js → connection-BsOFHbE4.js} +1 -1
- package/dist/client/assets/{connection-card-BPcZnnPw.js → connection-card-tE3zrEjD.js} +1 -1
- package/dist/client/assets/{connection-detail-BXES69sd.js → connection-detail-BQCLs1dX.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-DR7GZW9d.js → connection-form-helpers-DGyCREAo.js} +1 -1
- package/dist/client/assets/{connection-slug-CRx4gig2.js → connection-slug-CtIzZ2zc.js} +1 -1
- package/dist/client/assets/{connections-BF7MikmV.js → connections-Beq2u3I0.js} +1 -1
- package/dist/client/assets/{content-changes-mLMSBZZ5.js → content-changes-D6umA6sC.js} +1 -1
- package/dist/client/assets/{content-tab-CGi6-ZiS.js → content-tab-DvJgDgx9.js} +3 -3
- package/dist/client/assets/{context-CL3zKAWm.js → context-DG04oOHR.js} +1 -1
- package/dist/client/assets/{context-menu-DiN0zv18.js → context-menu-CfkjHTIG.js} +1 -1
- package/dist/client/assets/{context-shell-BXW3Waph.js → context-shell-Bno9WSee.js} +3 -3
- package/dist/client/assets/{create-organization-dialog-BPYB1Ahd.js → create-organization-dialog-CLND_mWF.js} +1 -1
- package/dist/client/assets/{daily-pulse-Cup6B7Xe.js → daily-pulse-DCsFO1ME.js} +1 -1
- package/dist/client/assets/{delete-copy-DriZ6Crp.js → delete-copy-I9FZA_jS.js} +1 -1
- package/dist/client/assets/{device-hint-DhCa5ryt.js → device-hint-BuUJ2y5W.js} +1 -1
- package/dist/client/assets/{discover-D1IXFmiH.js → discover-me98o1cI.js} +1 -1
- package/dist/client/assets/{domain-settings-DuQr6aqz.js → domain-settings-BWcu6JMC.js} +1 -1
- package/dist/client/assets/{drawer-BTK1jSPp.js → drawer-DB8NnEGw.js} +1 -1
- package/dist/client/assets/{editor-CLi5FNkS.js → editor-DVebT0ZZ.js} +1 -1
- package/dist/client/assets/{editor-classes-DQpF2ty5.js → editor-classes-C3iWtRWI.js} +1 -1
- package/dist/client/assets/{empty-state-DKFwgMmI.js → empty-state-CaLsechF.js} +1 -1
- package/dist/client/assets/{empty-state-3MtUuiU-.js → empty-state-Cn1beEFv.js} +1 -1
- package/dist/client/assets/{experiments-tab-choice-GzzAPDsc.js → experiments-tab-choice-D9M8caAG.js} +1 -1
- package/dist/client/assets/{extract-connection-data-D3d3d8Qt.js → extract-connection-data-ChU2qvHl.js} +1 -1
- package/dist/client/assets/{feature-gate-CYz2IeXe.js → feature-gate-BbI2poNL.js} +1 -1
- package/dist/client/assets/{feature-paywall-CgIsHGkH.js → feature-paywall-Nyu1L44W.js} +1 -1
- package/dist/client/assets/{file-explorer-DBtPUisZ.js → file-explorer-D0CY6DpT.js} +1 -1
- package/dist/client/assets/{file-preview-C-esP3NK.js → file-preview-de0IBQRJ.js} +1 -1
- package/dist/client/assets/{file-share-button-BaByaZ7b.js → file-share-button-XDaD5KdK.js} +1 -1
- package/dist/client/assets/{file-type-icon-D1J6tGkj.js → file-type-icon-DrEzxhRF.js} +1 -1
- package/dist/client/assets/{folder-icon-DqSHO0jY.js → folder-icon-Vkg55i1f.js} +1 -1
- package/dist/client/assets/{form-DMcWIvIF.js → form-MAQ0_mTx.js} +1 -1
- package/dist/client/assets/{frame-navigation-CcrZbeAO.js → frame-navigation-Bm3emgWE.js} +1 -1
- package/dist/client/assets/{gateway-client-B1hGGLzm.js → gateway-client-pG1MTCXD.js} +1 -1
- package/dist/client/assets/{general-Cf75F7uM.js → general-CGRDtuGl.js} +1 -1
- package/dist/client/assets/{github-icon-DNotwPHV.js → github-icon-DYeDHhFE.js} +1 -1
- package/dist/client/assets/{held-block-view-CSpQDT-s.js → held-block-view-CwEdtPs7.js} +1 -1
- package/dist/client/assets/{home-C9uRWk5E.js → home-BxQjITwz.js} +1 -1
- package/dist/client/assets/{home-overview-DTVWOIwt.js → home-overview-BpQE0z1H.js} +1 -1
- package/dist/client/assets/{hosted-reconcile-Dxd6r2s5.js → hosted-reconcile-DGFZMqoq.js} +1 -1
- package/dist/client/assets/{icon-button-MVGGBlCH.js → icon-button-DjKsXZXx.js} +1 -1
- package/dist/client/assets/{index-DNEP98uE.js → index-B8QWcTDF.js} +3 -3
- package/dist/client/assets/{index-DX2EqHyG.js → index-B8d3Gshb.js} +1 -1
- package/dist/client/assets/{index-D2gplbs-.js → index-BCHsOhCh.js} +1 -1
- package/dist/client/assets/{index-D64SsaeL.js → index-BnW8k7YN.js} +1 -1
- package/dist/client/assets/{index-BVfKTUYS.js → index-BuW9mRX4.js} +1 -1
- package/dist/client/assets/{index-D6srrQSn.js → index-CX5I8d0k.js} +1 -1
- package/dist/client/assets/{index-CtPviu66.js → index-CmchXZ5k.js} +1 -1
- package/dist/client/assets/{index-DRrOw8hN.js → index-CzrZrSQQ.js} +1 -1
- package/dist/client/assets/{index-Bh2FDaEn.js → index-D-btmdmU.js} +1 -1
- package/dist/client/assets/{index-BLL4K5LV.js → index-D3b-nvLF.js} +1 -1
- package/dist/client/assets/{index-CniBEhTj.js → index-DOWBPeVo.js} +1 -1
- package/dist/client/assets/{index-B00QDrsY.js → index-DS7_d1Rd.js} +1 -1
- package/dist/client/assets/{index-lHHEN3Z1.js → index-JoATPvrb.js} +1 -1
- package/dist/client/assets/{index-Tahc1fIR.js → index-N08IYcaA.js} +1 -1
- package/dist/client/assets/{index-D1LmdTpS.js → index-cNtCmRrS.js} +1 -1
- package/dist/client/assets/{index-CAjlpkqs.js → index-eAr2nu-s.js} +1 -1
- package/dist/client/assets/{index-redirect-BuGfr5EZ.js → index-redirect-BZ2ocOR_.js} +1 -1
- package/dist/client/assets/{index-BuaoXdcD.js → index-wu6FYi2a.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-x-lMrujU.js → infiniteQueryObserver-WCDClAoA.js} +1 -1
- package/dist/client/assets/{infra-billing-bjcXWCci.js → infra-billing-r7uDborI.js} +1 -1
- package/dist/client/assets/{input-4IRdSFiu.js → input-CT96cDcm.js} +3 -3
- package/dist/client/assets/{input-FDGrN9SW.js → input-oHwODrBP.js} +1 -1
- package/dist/client/assets/{integration-icon-hIAyXyRW.js → integration-icon-D6d1THcW.js} +1 -1
- package/dist/client/assets/{item-actions-CiY040jy.js → item-actions-DbjuAZ1b.js} +1 -1
- package/dist/client/assets/{jira-icon--cJsxEo7.js → jira-icon-AY_aB_eX.js} +1 -1
- package/dist/client/assets/{label-Ca5MZTD5.js → label-CAxblce3.js} +1 -1
- package/dist/client/assets/{layout-J10BZ9yi.js → layout-D2pfAJPo.js} +1 -1
- package/dist/client/assets/{legacy-admin-welcome-dialog-hP0R2yl6.js → legacy-admin-welcome-dialog-D93lYLDp.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-YzxB8whb.js → legacy-agents-deep-BxhffE4E.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-C_1qOqnr.js → legacy-main-redirect-BCdGz2kc.js} +1 -1
- package/dist/client/assets/library-55AwsyF5.js +1 -0
- package/dist/client/assets/{library-tab-BgLUrgYH.js → library-tab-CJVRmuZx.js} +1 -1
- package/dist/client/assets/{login-CCweWFdx.js → login-D5g_ztYq.js} +1 -1
- package/dist/client/assets/{markdown-DZFRPRoB.js → markdown-Dn5BYvjF.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-C_9J5Yv1.js → mcp-app-renderer-D5eKPqGN.js} +1 -1
- package/dist/client/assets/{mcp-oauth-Djmj4HZ6.js → mcp-oauth-BPfeOxs9.js} +1 -1
- package/dist/client/assets/{mcp-oauth-znJenz9K.js → mcp-oauth-BVidCgdK.js} +1 -1
- package/dist/client/assets/{members-BqlAWLOF.js → members-DIKOgvUP.js} +1 -1
- package/dist/client/assets/{memory-BxN4h_Wv.js → memory-D3Jwomic.js} +1 -1
- package/dist/client/assets/{mock-board-CEXa1O58.js → mock-board-vv37mdFa.js} +3 -3
- package/dist/client/assets/{monaco-editor-CMh6NnkO.js → monaco-editor-CDUFmvgd.js} +1 -1
- package/dist/client/assets/{monitoring-DVEIhEWP.js → monitoring-CZlFgIM7.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-Oxzbr4iJ.js → monitoring-stats-row-8WauuBlR.js} +1 -1
- package/dist/client/assets/{multi-select-CK_kvydu.js → multi-select-DlzzCHRP.js} +1 -1
- package/dist/client/assets/{mustache-Bls12Mh4.js → mustache-D1772Za6.js} +1 -1
- package/dist/client/assets/{named-rule-step-CCZNZ2hF.js → named-rule-step-CiW-uewB.js} +1 -1
- package/dist/client/assets/{named-rule-view-DxU8-HSg.js → named-rule-view-c6oBP-7h.js} +1 -1
- package/dist/client/assets/{new-project-dialog-D1cyyVGy.js → new-project-dialog-DCobxduv.js} +1 -1
- package/dist/client/assets/{new-project-store-eiJMaBrb.js → new-project-store-DMdsfD6k.js} +1 -1
- package/dist/client/assets/{oauth-callback-CYi-irgA.js → oauth-callback-VzV-8CV_.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-C8oC0v6N.js → oauth-callback-ai-provider-AHHY1FKA.js} +1 -1
- package/dist/client/assets/{oauth-consent-WUa2-ReG.js → oauth-consent-DbMqZt9i.js} +1 -1
- package/dist/client/assets/{onboarding-Bbo9BhhB.js → onboarding-ax89gpqv.js} +1 -1
- package/dist/client/assets/{openai-conversation-BmjRgG2f.js → openai-conversation-CDmIq2kF.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-o-2BmBZe.js → optimistic-project-sidebar-views-COrJWaog.js} +1 -1
- package/dist/client/assets/{order-monitor-day-BmWc9x2A.js → order-monitor-day-BnVK9Ah0.js} +1 -1
- package/dist/client/assets/{organization-choice-BDtfZI2z.js → organization-choice-CRwFnkUP.js} +1 -1
- package/dist/client/assets/{orgs-DWkqRpKg.js → orgs-B6C73JF3.js} +1 -1
- package/dist/client/assets/{own-accounts-section-CYxES8bR.js → own-accounts-section-C_HhR832.js} +1 -1
- package/dist/client/assets/{pair-DPK0tZYI.js → pair-BM_IemBe.js} +1 -1
- package/dist/client/assets/{parse-sections-njtzm4Vo.js → parse-sections-BBmKlmTK.js} +2 -2
- package/dist/client/assets/plan-gt4Fygl0.js +1 -0
- package/dist/client/assets/{plan-ladder-CSKDeIiJ.js → plan-ladder-BXpvk7Fi.js} +1 -1
- package/dist/client/assets/{plan-page-DMBb7kT8.js → plan-page-C9fTwCkQ.js} +1 -1
- package/dist/client/assets/{plan-usage-card-K6pKs38V.js → plan-usage-card-CVHfxFDL.js} +1 -1
- package/dist/client/assets/{popover-CCOFpzUY.js → popover-DAX4UVcw.js} +1 -1
- package/dist/client/assets/{post-calendar-D694Pqwk.js → post-calendar-h8wLR1lE.js} +1 -1
- package/dist/client/assets/{post-editor-gcZQOrAg.js → post-editor-DveUCAju.js} +1 -1
- package/dist/client/assets/{preview-content-tbC4XCE-.js → preview-content-Dzu--ezE.js} +1 -1
- package/dist/client/assets/{preview-dialog-BLlXaTfV.js → preview-dialog-CuifpLHp.js} +1 -1
- package/dist/client/assets/{preview-panel-B1NdzphY.js → preview-panel-BX-CWIf2.js} +1 -1
- package/dist/client/assets/{preview-tab-DddcXWFM.js → preview-tab-BXTC4uZ3.js} +3 -3
- package/dist/client/assets/{primitives-DfTXLqM8.js → primitives-DfO68oeq.js} +1 -1
- package/dist/client/assets/{product-picker-dialog-DRVt2A8s.js → product-picker-dialog-DxwgZtTm.js} +1 -1
- package/dist/client/assets/{profile-DrV3wEfj.js → profile-BYeC90kh.js} +1 -1
- package/dist/client/assets/{project-app-view-C6Tu5GvP.js → project-app-view-D8b_sBWr.js} +1 -1
- package/dist/client/assets/{project-apps-F0gCUaJn.js → project-apps-X3gar6bk.js} +1 -1
- package/dist/client/assets/{project-icon-CqkI0jiP.js → project-icon-Dp7ZaT9L.js} +1 -1
- package/dist/client/assets/{project-index-4jBQMFEQ.js → project-index-DcziWicz.js} +1 -1
- package/dist/client/assets/project-reports-BBbxgvrY.js +1 -0
- package/dist/client/assets/project-tasks-C3W9wGad.js +1 -0
- package/dist/client/assets/{projects-DB3vDo-v.js → projects-DjJhykXG.js} +1 -1
- package/dist/client/assets/{projects-empty-state-B9RGgyCj.js → projects-empty-state-DxkD_pQO.js} +1 -1
- package/dist/client/assets/{prompts-CYlJaXxa.js → prompts-CTPqPQuy.js} +1 -1
- package/dist/client/assets/record-editor-BmtdVay6.js +1 -0
- package/dist/client/assets/{redirect-editor-BxmPEaTO.js → redirect-editor-NY6BxUAG.js} +1 -1
- package/dist/client/assets/{reports-ITpmAIV6.js → reports-CMA5fueI.js} +1 -1
- package/dist/client/assets/reports-DacwdMRs.js +1 -0
- package/dist/client/assets/{reports-onboarding-Bm3DrtPP.js → reports-onboarding-DSyA9ZH8.js} +1 -1
- package/dist/client/assets/{reports-tab-DzfSwh1a.js → reports-tab-_D4SqVjK.js} +2 -2
- package/dist/client/assets/repositories-BxFca_8T.js +1 -0
- package/dist/client/assets/{repositories-CoeoWxHC.js → repositories-C7EimcZv.js} +1 -1
- package/dist/client/assets/{repository-binding-BSo0e4YD.js → repository-binding-Cxtw7__X.js} +1 -1
- package/dist/client/assets/{repository-picker-DEbD1z5w.js → repository-picker-Bjq9Gq0C.js} +1 -1
- package/dist/client/assets/{require-capability-DQrIT2YJ.js → require-capability-Cf4tdfID.js} +1 -1
- package/dist/client/assets/{required-auth-layout-C44tyAFW.js → required-auth-layout-ChaXjU_p.js} +1 -1
- package/dist/client/assets/{reset-password-B_GdiPZV.js → reset-password-CdSys6xr.js} +1 -1
- package/dist/client/assets/{resizable-hGGyCmvy.js → resizable-DbC6YHjE.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-CjoL-Nnr.js → resolve-tab-icon-B2Eoh0dc.js} +1 -1
- package/dist/client/assets/{review-settings-rMM1sIv_.js → review-settings-B7AnctqS.js} +1 -1
- package/dist/client/assets/{role-color-DxbbP3ST.js → role-color-fnshflgn.js} +1 -1
- package/dist/client/assets/{roles-ByKVogtr.js → roles-CuiB0-5P.js} +1 -1
- package/dist/client/assets/{route-CMuFwPuX.js → route-BCBSysaN.js} +1 -1
- package/dist/client/assets/{route-C48yqGCV.js → route-BHR712ec.js} +1 -1
- package/dist/client/assets/route-Uynax0ej.js +1 -0
- package/dist/client/assets/{route-page-header-VU590e0t.js → route-page-header--Z4tnJsx.js} +1 -1
- package/dist/client/assets/{sandbox-git-api-bKApbRDP.js → sandbox-git-api-C1PcDxF4.js} +1 -1
- package/dist/client/assets/{sandbox-lifecycle-context--0-uKoOe.js → sandbox-lifecycle-context-BXPcxNgX.js} +1 -1
- package/dist/client/assets/{save-status-BZVih_z6.js → save-status-DfjczLNO.js} +1 -1
- package/dist/client/assets/{schema-DNR_ieD-.js → schema-CENv2aVJ.js} +1 -1
- package/dist/client/assets/{schema-Dzg3vzko.js → schema-c0z3WXBE.js} +1 -1
- package/dist/client/assets/{scroll-area-4ellC6IW.js → scroll-area-Dz5gTav2.js} +1 -1
- package/dist/client/assets/{search-input-DacBaNr4.js → search-input-CF9v-W5_.js} +1 -1
- package/dist/client/assets/{search-toggle-aDt74fxo.js → search-toggle-CfPFtBzs.js} +1 -1
- package/dist/client/assets/{secret-picker-BjK1bnoa.js → secret-picker-MDKKtqKl.js} +1 -1
- package/dist/client/assets/{secrets-DVq_jBUa.js → secrets-cVqtN0h2.js} +1 -1
- package/dist/client/assets/{section-array-field-q8a_n1BD.js → section-array-field-Cwe4uEIF.js} +1 -1
- package/dist/client/assets/{sections-BKMqy0Uy.js → sections-CE_ZxUkL.js} +1 -1
- package/dist/client/assets/{sections-editor-BUha5Gd0.js → sections-editor-BTcXib2t.js} +1 -1
- package/dist/client/assets/{select-G_rB04k4.js → select-DXRCrWOv.js} +1 -1
- package/dist/client/assets/{select-model-C7QfFyFF.js → select-model-DTtc7Byk.js} +1 -1
- package/dist/client/assets/{seo-editor-CE5GiCys.js → seo-editor-DcXBwvKf.js} +1 -1
- package/dist/client/assets/{separator-OYQCNCFu.js → separator-DMeJ40Py.js} +1 -1
- package/dist/client/assets/{session-runtime-BzF84eTn.js → session-runtime-CzCcXzCd.js} +1 -1
- package/dist/client/assets/settings-tab-sJxfCtRG.js +1 -0
- package/dist/client/assets/{sheet-CHMLXZw3.js → sheet-Bj9po_dr.js} +1 -1
- package/dist/client/assets/{shell-layout-TxSDEyf7.js → shell-layout-CidYb71I.js} +1 -1
- package/dist/client/assets/{site-draft-actions-BHdE97O0.js → site-draft-actions-BRoeP8P1.js} +1 -1
- package/dist/client/assets/{site-draft-view-BXynMRvu.js → site-draft-view-BBOEabzM.js} +1 -1
- package/dist/client/assets/site-editor-CGa5Pnwo.js +1 -0
- package/dist/client/assets/{site-editor-toast-CC2KhUs0.js → site-editor-toast-DdX2S2iP.js} +1 -1
- package/dist/client/assets/{skills-CpmU7ohz.js → skills-rn3vnzoJ.js} +1 -1
- package/dist/client/assets/{slider-CDNba26E.js → slider-Bl1DQvTN.js} +1 -1
- package/dist/client/assets/{sortable.esm-IpuZLFTJ.js → sortable.esm-DPUvyVgz.js} +1 -1
- package/dist/client/assets/{sso-Du-AMoHG.js → sso-CW55fB88.js} +1 -1
- package/dist/client/assets/{suggestion-BUOBKuNt.js → suggestion-BcaAH77j.js} +1 -1
- package/dist/client/assets/{super-agent-icon-Cr7O76Vd.js → super-agent-icon-Bu7Hd3UO.js} +1 -1
- package/dist/client/assets/{switch-qsDVAroR.js → switch-DPcEaQjC.js} +1 -1
- package/dist/client/assets/{synced-repos-vfT_dDCL.js → synced-repos-CKmEVjR_.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-CZQGxG-i.js → tab-icon-glyph-CrdoHb5a.js} +1 -1
- package/dist/client/assets/{table-CISXsQtv.js → table-BUEd8HXj.js} +1 -1
- package/dist/client/assets/{tabs-C0IS9Ljz.js → tabs-BsPo689s.js} +1 -1
- package/dist/client/assets/{task-board-YFal7Tvy.js → task-board-6jjKwApS.js} +1 -1
- package/dist/client/assets/{task-key-3woPhebb.js → task-key-Dz9RL1aI.js} +1 -1
- package/dist/client/assets/{task-route-Brug9Cyq.js → task-route-CC1eGzrs.js} +1 -1
- package/dist/client/assets/{task-status-OKpaTeHG.js → task-status-DNuzWoZM.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-wGYvYIWc.js → taskboard-analytics-DDqe9lVM.js} +1 -1
- package/dist/client/assets/tasks-BWSrdTCZ.js +1 -0
- package/dist/client/assets/{tasks-DMwfOSSx.js → tasks-Cr_MFryu.js} +1 -1
- package/dist/client/assets/{textarea-1AY0B1hO.js → textarea-Bs6mZYew.js} +1 -1
- package/dist/client/assets/{thread-analytics-CBdzgyM4.js → thread-analytics-D40srXtR.js} +1 -1
- package/dist/client/assets/{thread-button-BGH6V5G2.js → thread-button-DbXruDUJ.js} +1 -1
- package/dist/client/assets/{thread-intent-G92RnE-h.js → thread-intent-rSsi3kJm.js} +1 -1
- package/dist/client/assets/{thread-route-CUQDr2HT.js → thread-route-BGvUcmOf.js} +1 -1
- package/dist/client/assets/{thread-route-4PJplbfY.js → thread-route-Iay6zzQH.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-QI1TescN.js → thread-sheet-body-ClOY6OwF.js} +1 -1
- package/dist/client/assets/{time-range-picker-BNino2pU.js → time-range-picker-bWMPD9cD.js} +1 -1
- package/dist/client/assets/{toggle-group-Bd3t5lhz.js → toggle-group-Diweh86c.js} +1 -1
- package/dist/client/assets/{tool-set-selector-B77MUy4w.js → tool-set-selector-Bf5EzVA7.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-CnJvt8BY.js → toolbar-icon-button-UTqODJtb.js} +1 -1
- package/dist/client/assets/{tooltip-MMDYKMfe.js → tooltip-ddzAdkdR.js} +1 -1
- package/dist/client/assets/{tooltipContext-BKLrK_Bn.js → tooltipContext-DJWVbtf1.js} +1 -1
- package/dist/client/assets/{track-D9uzv_5b.js → track-I3ijZbSP.js} +1 -1
- package/dist/client/assets/{types-DlGZThny.js → types-3Ueu7MTE.js} +1 -1
- package/dist/client/assets/{url-slug-Baml4J6j.js → url-slug-CGdGNrQ9.js} +1 -1
- package/dist/client/assets/{usage-stats-DTlqWseR.js → usage-stats-DS4znXgN.js} +1 -1
- package/dist/client/assets/{use-ai-providers-Dw1EmGiS.js → use-ai-providers-DeJZuA0q.js} +1 -1
- package/dist/client/assets/{use-api-keys-BNZQozj4.js → use-api-keys-Ba74bIox.js} +1 -1
- package/dist/client/assets/{use-apply-named-rule-BWuqGx9R.js → use-apply-named-rule-CVWe7Mx1.js} +1 -1
- package/dist/client/assets/use-ask-in-chat-CcJ7qBgl.js +1 -0
- package/dist/client/assets/{use-automations-DUt2GmFn.js → use-automations-BKSQtoLX.js} +1 -1
- package/dist/client/assets/{use-autosave-DPByyy5f.js → use-autosave-DqFoEMt7.js} +1 -1
- package/dist/client/assets/use-blocks-v8-project-BSd7NF50.js +1 -0
- package/dist/client/assets/use-blog-view-w-0_WS9c.js +1 -0
- package/dist/client/assets/{use-chat-layout-state-DmBRi693.js → use-chat-layout-state-RbyZQ3kf.js} +1 -1
- package/dist/client/assets/{use-cms-publish-actions-dMuUgV3I.js → use-cms-publish-actions-rtaDCYBp.js} +1 -1
- package/dist/client/assets/{use-connect-companion-BoAU-wzT.js → use-connect-companion-7sFr84Xl.js} +1 -1
- package/dist/client/assets/{use-connection-Czrr4bc3.js → use-connection-DJtAnIHe.js} +1 -1
- package/dist/client/assets/{use-content-sync-A5wPHkwh.js → use-content-sync-B45bnUth.js} +1 -1
- package/dist/client/assets/{use-copy-BaFW5n9h.js → use-copy-CcMqX5Mc.js} +1 -1
- package/dist/client/assets/{use-current-view-DbuYI3RB.js → use-current-view-B3Oq9mLH.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-CYdTOAYK.js → use-date-fns-locale-BlEevBWu.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-CYeQ_PFp.js → use-debounced-autosave-Cb4kdMSC.js} +1 -1
- package/dist/client/assets/{use-debounced-value-D_6vEHnU.js → use-debounced-value-6WtU6EGD.js} +1 -1
- package/dist/client/assets/{use-deco-credits-D3GSQZY4.js → use-deco-credits-asWFZ8FZ.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-BvVHHOq1.js → use-decopilot-events-BfKY6vx0.js} +1 -1
- package/dist/client/assets/{use-delete-block-FDd-p0Am.js → use-delete-block-eg-N7BxA.js} +1 -1
- package/dist/client/assets/{use-delete-connection-bN1IjQvo.js → use-delete-connection-2m27wa7I.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-UF0ldmgN.js → use-deployment-admin-rUW-u--N.js} +1 -1
- package/dist/client/assets/{use-entitlements-DX3PoH_U.js → use-entitlements-CRw06zNb.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-B00ZfMfz.js → use-fast-preview-draft-url-Du0r3hj1.js} +1 -1
- package/dist/client/assets/{use-file-configs-opNmVmFf.js → use-file-configs-D5DRgbYj.js} +1 -1
- package/dist/client/assets/{use-id-selection-CSMXbJVw.js → use-id-selection-1D2rFbli.js} +1 -1
- package/dist/client/assets/{use-in-settings-Dve2WG3T.js → use-in-settings-0_m9Ie8M.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-BLKFITc0.js → use-inbox-feed-K7pvvTG0.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-w9u_m9IV.js → use-infinite-scroll-5IcqHhSV.js} +1 -1
- package/dist/client/assets/{use-join-requests-D-ah10TN.js → use-join-requests-DZUyR00q.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-DDUr88po.js → use-main-panel-tabs-F1ZExQDO.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-C-_2MLIW.js → use-mcp-auth-status-BmeCbDCs.js} +1 -1
- package/dist/client/assets/{use-mcp-client-DbhjYqPO.js → use-mcp-client-2GA3JYr0.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-DG98ZDBF.js → use-mcp-prompts-Ckb81_e4.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-BzdbsDoG.js → use-mcp-tools-GTXWF1lU.js} +1 -1
- package/dist/client/assets/{use-mobile-BirI-ACx.js → use-mobile-BWNIpIib.js} +1 -1
- package/dist/client/assets/{use-move-blocks-DXHfrtUy.js → use-move-blocks-CRGGjB1w.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-Cf1Dm8Le.js → use-navigate-to-agent-CXGbGghX.js} +1 -1
- package/dist/client/assets/{use-never-published-xc7jnIYY.js → use-never-published-DVxsFUrB.js} +1 -1
- package/dist/client/assets/{use-org-fs-DsHSUOhf.js → use-org-fs-0g7bis36.js} +1 -1
- package/dist/client/assets/{use-org-notice-CamFMT18.js → use-org-notice-DdZVdYZq.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-BPPg7F3R.js → use-org-repo-syncs-C4HrQQ1J.js} +1 -1
- package/dist/client/assets/{use-org-sso-C3TyUfCY.js → use-org-sso-8ZcAsXeH.js} +1 -1
- package/dist/client/assets/{use-organization-settings-BQJcJ_k1.js → use-organization-settings-W_UL6Dsk.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-D9Qkq72P.js → use-panel-navigate-DomAZd7k.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-DM4OMG9y.js → use-project-native-view-presence-C9055geU.js} +1 -1
- package/dist/client/assets/{use-project-scope-CVCBcvn8.js → use-project-scope-AKiXHlRB.js} +1 -1
- package/dist/client/assets/{use-recent-apps-Cbb6bcls.js → use-recent-apps-CCw03Z3Z.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-CeiGQ1P1.js → use-reports-diagnostic-CVsWts3E.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-NZClrcQ-.js → use-sandbox-events-BBkst5Ou.js} +1 -1
- package/dist/client/assets/{use-secrets-BEyDVr2e.js → use-secrets-D_pl7_Dm.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-tvdi1rW4.js → use-section-preview-base-KxnYbN68.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-DG3NRMlg.js → use-sidebar-collapsed-CUSRdzNV.js} +1 -1
- package/dist/client/assets/{use-tags-B3bEQCE4.js → use-tags-D8mm3Zk4.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-2QRaYkeO.js → use-task-board-analytics-B4UFHV-E.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-Bv4tuX5U.js → use-task-board-item-prs-BUUwxVat.js} +1 -1
- package/dist/client/assets/{use-task-board-items-ClhfbTqu.js → use-task-board-items-CHGGGJoc.js} +1 -1
- package/dist/client/assets/{use-task-board-prompts-Bmew3TZz.js → use-task-board-prompts-D47xAPgf.js} +1 -1
- package/dist/client/assets/{use-task-metadata-zlecrPG-.js → use-task-metadata-Bwuo7BMy.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-BiLFMeDG.js → use-thread-outputs-DWO0K330.js} +1 -1
- package/dist/client/assets/{use-view-draft-kind-1kOOFoex.js → use-view-draft-kind-B6ZbhhVP.js} +1 -1
- package/dist/client/assets/{use-voice-input-BVCZJVoi.js → use-voice-input-DD19u7J5.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-Cewdyf6m.js +1 -0
- package/dist/client/assets/{useQueries-BpDyseQs.js → useQueries-DC16AkCX.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BUAyRYtS.js +1 -0
- package/dist/client/assets/{users-DBFtgTQM.js → users-BWVZzazY.js} +1 -1
- package/dist/client/assets/{utils-aeTcsIC2.js → utils-CgvqLMPd.js} +1 -1
- package/dist/client/assets/{variant-calendar-CpBZnMRJ.js → variant-calendar-BsURWDDY.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-BFYNdPbQ.js → variant-matcher-override-cOPSE1XO.js} +1 -1
- package/dist/client/assets/{view-header-DOmqt1hT.js → view-header-DJnm_qjO.js} +1 -1
- package/dist/client/assets/{virtual-mcp-Bgg79tSs.js → virtual-mcp-BbGNYK_v.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-Cf95lcU1.js → watch-sse-pool-CCL19_hQ.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-CtqhDgWg.js +0 -1
- package/dist/client/assets/agent-deck-Cj-DfjZ3.js +0 -1
- package/dist/client/assets/agent-experiments-ys0-eyrm.js +0 -1
- package/dist/client/assets/agent-file-BPJ-RX9z.js +0 -1
- package/dist/client/assets/agent-library--yv7PiZs.js +0 -1
- package/dist/client/assets/agent-library-file-CPzWuUMo.js +0 -1
- package/dist/client/assets/agent-overview-TZq7rxYp.js +0 -1
- package/dist/client/assets/agent-settings-YMDT_Dxn.js +0 -1
- package/dist/client/assets/agent-site-editor-code-D9W_mqLB.js +0 -2
- package/dist/client/assets/agent-site-editor-content-BA400oZW.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-DbYCLfpt.js +0 -1
- package/dist/client/assets/agent-view-CR0RgccJ.js +0 -1
- package/dist/client/assets/api-keys-D4CIkyPv.js +0 -1
- package/dist/client/assets/library-JJrHhzaM.js +0 -1
- package/dist/client/assets/plan-DbHgUiX-.js +0 -1
- package/dist/client/assets/project-reports-DBcWJSKO.js +0 -1
- package/dist/client/assets/project-tasks-UkgKvD-J.js +0 -1
- package/dist/client/assets/record-editor-CqfvVmxL.js +0 -1
- package/dist/client/assets/reports-Dc_Go2P-.js +0 -1
- package/dist/client/assets/repositories-DW42J1kg.js +0 -1
- package/dist/client/assets/route-vxdUdsxe.js +0 -1
- package/dist/client/assets/settings-tab-CiqEZZG8.js +0 -1
- package/dist/client/assets/site-editor-DCfiN9df.js +0 -1
- package/dist/client/assets/tasks-CE_y-zeT.js +0 -1
- package/dist/client/assets/use-ask-in-chat-VwJOkV6n.js +0 -1
- package/dist/client/assets/use-blocks-v8-project-5aAX_FdD.js +0 -1
- package/dist/client/assets/use-blog-view-CH7h9bCF.js +0 -1
- package/dist/client/assets/useInfiniteQuery-BHMmGrWM.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BJKeyW7i.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{B as H,v as U,ab as S,H as X,ac as Z,f as R,ad as J,ae as Q,p as z}from"./usage-stats-DTlqWseR.js";import{gE as M,hp as C,gD as P,hq as x,hr as L,hs as V,ht as K,hu as _,gG as A,eX as N,r as p,cd as B}from"./index-DNEP98uE.js";import{C as k}from"./index-Bh2FDaEn.js";function tt(t,e){const i=Math.min(t.top,e.top),s=Math.max(t.bottom,e.bottom),l=Math.min(t.left,e.left),r=Math.max(t.right,e.right)-l,n=s-i;return new DOMRect(l,i,r,n)}var et=class{get middlewares(){const t=[];return this.floatingUIOptions.flip&&t.push(M(typeof this.floatingUIOptions.flip!="boolean"?this.floatingUIOptions.flip:void 0)),this.floatingUIOptions.shift&&t.push(C(typeof this.floatingUIOptions.shift!="boolean"?this.floatingUIOptions.shift:void 0)),this.floatingUIOptions.offset&&t.push(P(typeof this.floatingUIOptions.offset!="boolean"?this.floatingUIOptions.offset:void 0)),this.floatingUIOptions.arrow&&t.push(x(this.floatingUIOptions.arrow)),this.floatingUIOptions.size&&t.push(L(typeof this.floatingUIOptions.size!="boolean"?this.floatingUIOptions.size:void 0)),this.floatingUIOptions.autoPlacement&&t.push(V(typeof this.floatingUIOptions.autoPlacement!="boolean"?this.floatingUIOptions.autoPlacement:void 0)),this.floatingUIOptions.hide&&t.push(K(typeof this.floatingUIOptions.hide!="boolean"?this.floatingUIOptions.hide:void 0)),this.floatingUIOptions.inline&&t.push(_(typeof this.floatingUIOptions.inline!="boolean"?this.floatingUIOptions.inline:void 0)),t}get virtualElement(){var t,e;const{selection:i}=this.editor.state,s=(t=this.getReferencedVirtualElement)===null||t===void 0?void 0:t.call(this);if(s)return s;if(!(!((e=this.view)===null||e===void 0||(e=e.dom)===null||e===void 0)&&e.parentNode))return;const l=S(this.view,i.from,i.to);let r={getBoundingClientRect:()=>l,getClientRects:()=>[l]};if(i instanceof X){let n=this.view.nodeDOM(i.from);const d=n.dataset.nodeViewWrapper?n:n.querySelector("[data-node-view-wrapper]");d&&(n=d),n&&(r={getBoundingClientRect:()=>n.getBoundingClientRect(),getClientRects:()=>[n.getBoundingClientRect()]})}if(i instanceof k){const{$anchorCell:n,$headCell:d}=i,g=n?n.pos:d.pos,f=d?d.pos:n.pos,u=this.view.nodeDOM(g),o=this.view.nodeDOM(f);if(!u||!o)return;const a=u===o?u.getBoundingClientRect():tt(u.getBoundingClientRect(),o.getBoundingClientRect());r={getBoundingClientRect:()=>a,getClientRects:()=>[a]}}return r}constructor({editor:t,element:e,view:i,pluginKey:s="bubbleMenu",updateDelay:l=250,resizeDelay:r=60,shouldShow:n,appendTo:d,getReferencedVirtualElement:g,options:f}){var u;this.preventHide=!1,this.isVisible=!1,this.scrollTarget=window,this.floatingUIOptions={strategy:"absolute",placement:"top",offset:8,flip:{},shift:{},arrow:!1,size:!1,autoPlacement:!1,hide:!1,inline:!1,onShow:void 0,onHide:void 0,onUpdate:void 0,onDestroy:void 0},this.shouldShow=({view:o,state:a,from:h,to:c})=>{const{doc:m,selection:y}=a,{empty:O}=y,b=!m.textBetween(h,c).length&&Z(a.selection),v=this.element.contains(document.activeElement);return!(!(o.hasFocus()||v)||O||b||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.resizeHandler=()=>{this.resizeDebounceTimer&&clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=window.setTimeout(()=>{this.updatePosition()},this.resizeDelay)},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:o})=>{var a;if(this.editor.isDestroyed){this.destroy();return}if(this.preventHide){this.preventHide=!1;return}o?.relatedTarget&&(!((a=this.element.parentNode)===null||a===void 0)&&a.contains(o.relatedTarget))||o?.relatedTarget!==this.editor.view.dom&&this.hide()},this.handleDebouncedUpdate=(o,a)=>{const h=!a?.selection.eq(o.state.selection),c=!a?.doc.eq(o.state.doc);!h&&!c||(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(o,h,c,a)},this.updateDelay))},this.updateHandler=(o,a,h,c)=>{const{composing:m}=o;if(!(m||!a&&!h)){if(!this.getShouldShow(c)){this.hide();return}this.show(),this.updatePosition()}},this.transactionHandler=({transaction:o})=>{const a=o.getMeta(this.pluginKey);a==="updatePosition"?this.updatePosition():a&&typeof a=="object"&&a.type==="updateOptions"?this.updateOptions(a.options):a==="hide"?this.hide():a==="show"&&(this.updatePosition(),this.show())},this.editor=t,this.element=e,this.view=i,this.pluginKey=s,this.updateDelay=l,this.resizeDelay=r,this.appendTo=d,this.scrollTarget=(u=f?.scrollTarget)!==null&&u!==void 0?u:window,this.getReferencedVirtualElement=g,this.floatingUIOptions={...this.floatingUIOptions,...f},this.element.tabIndex=0,n&&(this.shouldShow=n),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.editor.on("transaction",this.transactionHandler),window.addEventListener("resize",this.resizeHandler),this.scrollTarget.addEventListener("scroll",this.resizeHandler),this.update(i,i.state),this.getShouldShow()&&(this.show(),this.updatePosition())}updatePosition(){if(!this.isVisible)return;const t=this.virtualElement;t&&A(t,this.element,{placement:this.floatingUIOptions.placement,strategy:this.floatingUIOptions.strategy,middleware:this.middlewares}).then(({x:e,y:i,strategy:s,middlewareData:l})=>{var r,n;if(!(!this.isVisible||this.editor.isDestroyed||!this.element.isConnected)){if(!((r=l.hide)===null||r===void 0)&&r.referenceHidden||!((n=l.hide)===null||n===void 0)&&n.escaped){this.element.style.visibility="hidden";return}this.element.style.visibility="visible",this.element.style.width="max-content",this.element.style.position=s,this.element.style.left=`${e}px`,this.element.style.top=`${i}px`,this.isVisible&&this.floatingUIOptions.onUpdate&&this.floatingUIOptions.onUpdate()}})}update(t,e){const{state:i}=t,s=i.selection.from!==i.selection.to;if(this.updateDelay>0&&s){this.handleDebouncedUpdate(t,e);return}const l=!e?.selection.eq(t.state.selection),r=!e?.doc.eq(t.state.doc);this.updateHandler(t,l,r,e)}getShouldShow(t){var e;const{state:i}=this.view,{selection:s}=i,{ranges:l}=s,r=Math.min(...l.map(d=>d.$from.pos)),n=Math.max(...l.map(d=>d.$to.pos));return((e=this.shouldShow)===null||e===void 0?void 0:e.call(this,{editor:this.editor,element:this.element,view:this.view,state:i,oldState:t,from:r,to:n}))||!1}show(){var t;if(this.isVisible)return;this.element.style.visibility="visible",this.element.style.opacity="1";const e=typeof this.appendTo=="function"?this.appendTo():this.appendTo;(t=e??this.view.dom.parentElement)===null||t===void 0||t.appendChild(this.element),this.floatingUIOptions.onShow&&this.floatingUIOptions.onShow(),this.isVisible=!0}hide(){this.isVisible&&(this.element.style.visibility="hidden",this.element.style.opacity="0",this.element.remove(),this.floatingUIOptions.onHide&&this.floatingUIOptions.onHide(),this.isVisible=!1)}updateOptions(t){if(t.updateDelay!==void 0&&(this.updateDelay=t.updateDelay),t.resizeDelay!==void 0&&(this.resizeDelay=t.resizeDelay),t.appendTo!==void 0&&(this.appendTo=t.appendTo),t.getReferencedVirtualElement!==void 0&&(this.getReferencedVirtualElement=t.getReferencedVirtualElement),t.shouldShow!==void 0&&t.shouldShow&&(this.shouldShow=t.shouldShow),t.options!==void 0){var e;const i=(e=t.options.scrollTarget)!==null&&e!==void 0?e:window;i!==this.scrollTarget&&(this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.scrollTarget=i,this.scrollTarget.addEventListener("scroll",this.resizeHandler)),this.floatingUIOptions={...this.floatingUIOptions,...t.options}}}destroy(){this.hide(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),window.removeEventListener("resize",this.resizeHandler),this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler),this.editor.off("transaction",this.transactionHandler),this.floatingUIOptions.onDestroy&&this.floatingUIOptions.onDestroy()}};const $=t=>new H({key:typeof t.pluginKey=="string"?new U(t.pluginKey):t.pluginKey,view:e=>new et({view:e,...t})});R.create({name:"bubbleMenu",addOptions(){return{element:null,pluginKey:"bubbleMenu",updateDelay:void 0,appendTo:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[$({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,updateDelay:this.options.updateDelay,options:this.options.options,appendTo:this.options.appendTo,getReferencedVirtualElement:this.options.getReferencedVirtualElement,shouldShow:this.options.shouldShow})]:[]}});var it=class{getTextContent(t){return J(t,{textSerializers:Q(this.editor.schema)})}get middlewares(){const t=[];return this.floatingUIOptions.flip&&t.push(M(typeof this.floatingUIOptions.flip!="boolean"?this.floatingUIOptions.flip:void 0)),this.floatingUIOptions.shift&&t.push(C(typeof this.floatingUIOptions.shift!="boolean"?this.floatingUIOptions.shift:void 0)),this.floatingUIOptions.offset&&t.push(P(typeof this.floatingUIOptions.offset!="boolean"?this.floatingUIOptions.offset:void 0)),this.floatingUIOptions.arrow&&t.push(x(this.floatingUIOptions.arrow)),this.floatingUIOptions.size&&t.push(L(typeof this.floatingUIOptions.size!="boolean"?this.floatingUIOptions.size:void 0)),this.floatingUIOptions.autoPlacement&&t.push(V(typeof this.floatingUIOptions.autoPlacement!="boolean"?this.floatingUIOptions.autoPlacement:void 0)),this.floatingUIOptions.hide&&t.push(K(typeof this.floatingUIOptions.hide!="boolean"?this.floatingUIOptions.hide:void 0)),this.floatingUIOptions.inline&&t.push(_(typeof this.floatingUIOptions.inline!="boolean"?this.floatingUIOptions.inline:void 0)),t}constructor({editor:t,element:e,view:i,pluginKey:s="floatingMenu",updateDelay:l=250,resizeDelay:r=60,options:n,appendTo:d,shouldShow:g}){var f;this.preventHide=!1,this.isVisible=!1,this.scrollTarget=window,this.shouldShow=({view:u,state:o})=>{const{selection:a}=o,{$anchor:h,empty:c}=a,m=h.depth===1,y=h.parent.isTextblock&&!h.parent.type.spec.code&&!h.parent.textContent&&h.parent.childCount===0&&!this.getTextContent(h.parent);return!(!u.hasFocus()||!c||!m||!y||!this.editor.isEditable)},this.floatingUIOptions={strategy:"absolute",placement:"right",offset:8,flip:{},shift:{},arrow:!1,size:!1,autoPlacement:!1,hide:!1,inline:!1},this.updateHandler=(u,o,a,h)=>{const{composing:c}=u;if(!(c||!o&&!a)){if(!this.getShouldShow(h)){this.hide();return}this.updatePosition(),this.show()}},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:u})=>{var o;if(this.preventHide){this.preventHide=!1;return}u?.relatedTarget&&(!((o=this.element.parentNode)===null||o===void 0)&&o.contains(u.relatedTarget))||u?.relatedTarget!==this.editor.view.dom&&this.hide()},this.transactionHandler=({transaction:u})=>{const o=u.getMeta(this.pluginKey);o==="updatePosition"?this.updatePosition():o&&typeof o=="object"&&o.type==="updateOptions"?this.updateOptions(o.options):o==="hide"?this.hide():o==="show"&&(this.updatePosition(),this.show())},this.resizeHandler=()=>{this.resizeDebounceTimer&&clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=window.setTimeout(()=>{this.updatePosition()},this.resizeDelay)},this.editor=t,this.element=e,this.view=i,this.pluginKey=s,this.updateDelay=l,this.resizeDelay=r,this.appendTo=d,this.scrollTarget=(f=n?.scrollTarget)!==null&&f!==void 0?f:window,this.floatingUIOptions={...this.floatingUIOptions,...n},this.element.tabIndex=0,g&&(this.shouldShow=g),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.editor.on("transaction",this.transactionHandler),window.addEventListener("resize",this.resizeHandler),this.scrollTarget.addEventListener("scroll",this.resizeHandler),this.update(i,i.state),this.getShouldShow()&&(this.show(),this.updatePosition())}getShouldShow(t){var e;const{state:i}=this.view,{selection:s}=i,{ranges:l}=s,r=Math.min(...l.map(d=>d.$from.pos)),n=Math.max(...l.map(d=>d.$to.pos));return(e=this.shouldShow)===null||e===void 0?void 0:e.call(this,{editor:this.editor,view:this.view,state:i,oldState:t,from:r,to:n})}updateOptions(t){if(t.updateDelay!==void 0&&(this.updateDelay=t.updateDelay),t.resizeDelay!==void 0&&(this.resizeDelay=t.resizeDelay),t.appendTo!==void 0&&(this.appendTo=t.appendTo),t.shouldShow!==void 0&&t.shouldShow&&(this.shouldShow=t.shouldShow),t.options!==void 0){var e;const i=(e=t.options.scrollTarget)!==null&&e!==void 0?e:window;i!==this.scrollTarget&&(this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.scrollTarget=i,this.scrollTarget.addEventListener("scroll",this.resizeHandler)),this.floatingUIOptions={...this.floatingUIOptions,...t.options}}}updatePosition(){var t;if(!(!((t=this.view)===null||t===void 0||(t=t.dom)===null||t===void 0)&&t.parentNode))return;const{selection:e}=this.editor.state,i=S(this.view,e.from,e.to);A({getBoundingClientRect:()=>i,getClientRects:()=>[i]},this.element,{placement:this.floatingUIOptions.placement,strategy:this.floatingUIOptions.strategy,middleware:this.middlewares}).then(({x:s,y:l,strategy:r,middlewareData:n})=>{var d,g;if(!((d=n.hide)===null||d===void 0)&&d.referenceHidden||!((g=n.hide)===null||g===void 0)&&g.escaped){this.element.style.visibility="hidden";return}this.element.style.visibility="visible",this.element.style.width="max-content",this.element.style.position=r,this.element.style.left=`${s}px`,this.element.style.top=`${l}px`,this.isVisible&&this.floatingUIOptions.onUpdate&&this.floatingUIOptions.onUpdate()})}update(t,e){const i=!e?.selection.eq(t.state.selection),s=!e?.doc.eq(t.state.doc);this.updateHandler(t,i,s,e)}show(){var t;if(this.isVisible)return;this.element.style.visibility="visible",this.element.style.opacity="1";const e=typeof this.appendTo=="function"?this.appendTo():this.appendTo;(t=e??this.view.dom.parentElement)===null||t===void 0||t.appendChild(this.element),this.floatingUIOptions.onShow&&this.floatingUIOptions.onShow(),this.isVisible=!0}hide(){this.isVisible&&(this.element.style.visibility="hidden",this.element.style.opacity="0",this.element.remove(),this.floatingUIOptions.onHide&&this.floatingUIOptions.onHide(),this.isVisible=!1)}destroy(){this.hide(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),window.removeEventListener("resize",this.resizeHandler),this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler),this.editor.off("transaction",this.transactionHandler),this.floatingUIOptions.onDestroy&&this.floatingUIOptions.onDestroy()}};const F=t=>new H({key:typeof t.pluginKey=="string"?new U(t.pluginKey):t.pluginKey,view:e=>new it({view:e,...t})});R.create({name:"floatingMenu",addOptions(){return{element:null,options:{},pluginKey:"floatingMenu",updateDelay:void 0,resizeDelay:void 0,appendTo:void 0,shouldShow:null}},addCommands(){return{updateFloatingMenuPosition:()=>({tr:t,dispatch:e})=>(e&&t.setMeta(this.options.pluginKey,"updatePosition"),!0)}},addProseMirrorPlugins(){return this.options.element?[F({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,updateDelay:this.options.updateDelay,resizeDelay:this.options.resizeDelay,options:this.options.options,appendTo:this.options.appendTo,shouldShow:this.options.shouldShow})]:[]}});function W(t,e){return t??new U(e)}const st=typeof window<"u"?p.useLayoutEffect:p.useEffect,q=new Set(["left","opacity","position","top","visibility","width"]),nt=new Set(["animationIterationCount","aspectRatio","borderImageOutset","borderImageSlice","borderImageWidth","columnCount","columns","fillOpacity","flex","flexGrow","flexShrink","fontWeight","gridArea","gridColumn","gridColumnEnd","gridColumnStart","gridRow","gridRowEnd","gridRowStart","lineClamp","lineHeight","opacity","order","orphans","scale","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","tabSize","widows","zIndex","zoom"]),ot=new Set(["children","className","style"]),rt=new Set(["tabIndex"]),lt=new Set(["accessKey","autoCapitalize","contentEditable","contextMenu","dir","draggable","enterKeyHint","hidden","id","lang","nonce","role","slot","spellCheck","tabIndex","title","translate"]),at={Blur:"focusout",DoubleClick:"dblclick",Focus:"focusin",MouseEnter:"mouseenter",MouseLeave:"mouseleave"};function T(t,e){return/^on[A-Z]/.test(t)&&typeof e=="function"}function dt(t){return t.startsWith("aria-")||t.startsWith("data-"),t}function ut(t){return t.startsWith("aria-")||t.startsWith("data-")||lt.has(t)}function j(t){return t.startsWith("--")?t:t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function ht(t){var e;const i=t.endsWith("Capture"),s=(i?t.slice(0,-7):t).slice(2);return{eventName:(e=at[s])!==null&&e!==void 0?e:s.toLowerCase(),options:i?{capture:!0}:void 0}}function ct(t,e){let i=e.defaultPrevented,s=!1;const l=Object.create(e);return Object.defineProperties(l,{nativeEvent:{value:e},currentTarget:{value:t},target:{value:e.target},persist:{value:()=>{}},isDefaultPrevented:{value:()=>i},isPropagationStopped:{value:()=>s},preventDefault:{value:()=>{i=!0,e.preventDefault()}},stopPropagation:{value:()=>{s=!0,e.stopPropagation()}}}),l}function E(t){return rt.has(t)}function D(t,e,i){if(e==="tabIndex"){t.tabIndex=Number(i);return}t[e]=i}function ft(t,e){if(e==="tabIndex"){t.removeAttribute("tabindex");return}const i=t[e];if(typeof i=="boolean"){t[e]=!1;return}if(typeof i=="number"){t[e]=0;return}t[e]=""}function pt(t,e){return typeof e!="number"||e===0||t.startsWith("--")||nt.has(t)?String(e):`${e}px`}function gt(t,e){q.has(e)||t.style.removeProperty(j(e))}function mt(t,e,i){q.has(e)||t.style.setProperty(j(e),pt(e,i))}function vt(t,e,i){new Set([...Object.keys(e),...Object.keys(i)]).forEach(s=>{if(ot.has(s)||!ut(s)||T(s,e[s])||T(s,i[s]))return;const l=e[s],r=i[s];if(l===r)return;const n=dt(s);if(r==null||r===!1){E(s)&&ft(t,s),t.removeAttribute(n);return}if(r===!0){E(s)&&D(t,s,!0),t.setAttribute(n,"");return}if(E(s)){D(t,s,r);return}t.setAttribute(n,String(r))})}function yt(t,e,i){if(e!==i){if(i){t.className=i;return}t.removeAttribute("class")}}function bt(t,e,i){const s=e??{},l=i??{};new Set([...Object.keys(s),...Object.keys(l)]).forEach(r=>{const n=s[r],d=l[r];if(n!==d){if(d==null){gt(t,r);return}mt(t,r,d)}})}function wt(t,e,i){e.forEach(({eventName:l,listener:r,options:n})=>{t.removeEventListener(l,r,n)});const s=[];return Object.entries(i).forEach(([l,r])=>{if(!T(l,r))return;const{eventName:n,options:d}=ht(l),g=f=>{r(ct(t,f))};t.addEventListener(n,g,d),s.push({eventName:n,listener:g,options:d})}),s}function Y(t,e){const i=p.useRef({}),s=p.useRef([]);st(()=>{const l=i.current;return yt(t,l.className,e.className),bt(t,l.style,e.style),vt(t,l,e),s.current=wt(t,s.current,e),i.current=e,()=>{s.current.forEach(({eventName:r,listener:n,options:d})=>{t.removeEventListener(r,n,d)}),s.current=[]}},[t,e])}const Tt=N.forwardRef(({pluginKey:t,editor:e,updateDelay:i,resizeDelay:s,appendTo:l,shouldShow:r=null,getReferencedVirtualElement:n,options:d,children:g,...f},u)=>{const o=p.useRef(document.createElement("div")),a=p.useRef(W(t,"bubbleMenu")).current;Y(o.current,f),typeof u=="function"?u(o.current):u&&(u.current=o.current);const{editor:h}=z(),c=e||h,m={updateDelay:i,resizeDelay:s,appendTo:l,pluginKey:a,shouldShow:r,getReferencedVirtualElement:n,options:d},y=p.useRef(m);y.current=m;const[O,b]=p.useState(!1),v=p.useRef(!0);return p.useEffect(()=>{if(c?.isDestroyed)return;if(!c){console.warn("BubbleMenu component is not rendered inside of an editor component or does not have editor prop.");return}const w=o.current;w.style.visibility="hidden",w.style.position="absolute";const I=$({...y.current,editor:c,element:w});c.registerPlugin(I);const G=y.current.pluginKey;return v.current=!0,b(!0),()=>{b(!1),c.unregisterPlugin(G),window.requestAnimationFrame(()=>{w.parentNode&&w.parentNode.removeChild(w)})}},[c]),p.useEffect(()=>{if(!(!O||!c||c.isDestroyed)){if(v.current){v.current=!1;return}c.view.dispatch(c.state.tr.setMeta(a,{type:"updateOptions",options:y.current}))}},[O,c,i,s,r,d,l,n,a]),B.createPortal(g,o.current)});N.forwardRef(({pluginKey:t,editor:e,updateDelay:i,resizeDelay:s,appendTo:l,shouldShow:r=null,options:n,children:d,...g},f)=>{const u=p.useRef(document.createElement("div")),o=p.useRef(W(t,"floatingMenu")).current;Y(u.current,g),typeof f=="function"?f(u.current):f&&(f.current=u.current);const{editor:a}=z(),h=e||a,c={updateDelay:i,resizeDelay:s,appendTo:l,pluginKey:o,shouldShow:r,options:n},m=p.useRef(c);m.current=c;const[y,O]=p.useState(!1),b=p.useRef(!0);return p.useEffect(()=>{if(h?.isDestroyed)return;if(!h){console.warn("FloatingMenu component is not rendered inside of an editor component or does not have editor prop.");return}const v=u.current;v.style.visibility="hidden",v.style.position="absolute";const w=F({...m.current,editor:h,element:v});h.registerPlugin(w);const I=m.current.pluginKey;return b.current=!0,O(!0),()=>{O(!1),h.unregisterPlugin(I),window.requestAnimationFrame(()=>{v.parentNode&&v.parentNode.removeChild(v)})}},[h]),p.useEffect(()=>{if(!(!y||!h||h.isDestroyed)){if(b.current){b.current=!1;return}h.view.dispatch(h.state.tr.setMeta(o,{type:"updateOptions",options:m.current}))}},[y,h,i,s,r,n,l,o]),B.createPortal(d,u.current)});export{Tt as B};
|
|
1
|
+
import{B as H,v as U,ab as S,H as X,ac as Z,f as R,ad as J,ae as Q,p as z}from"./usage-stats-DS4znXgN.js";import{gE as M,hp as C,gD as P,hq as x,hr as L,hs as V,ht as K,hu as _,gG as A,eX as N,r as p,cd as B}from"./index-B8QWcTDF.js";import{C as k}from"./index-D-btmdmU.js";function tt(t,e){const i=Math.min(t.top,e.top),s=Math.max(t.bottom,e.bottom),l=Math.min(t.left,e.left),r=Math.max(t.right,e.right)-l,n=s-i;return new DOMRect(l,i,r,n)}var et=class{get middlewares(){const t=[];return this.floatingUIOptions.flip&&t.push(M(typeof this.floatingUIOptions.flip!="boolean"?this.floatingUIOptions.flip:void 0)),this.floatingUIOptions.shift&&t.push(C(typeof this.floatingUIOptions.shift!="boolean"?this.floatingUIOptions.shift:void 0)),this.floatingUIOptions.offset&&t.push(P(typeof this.floatingUIOptions.offset!="boolean"?this.floatingUIOptions.offset:void 0)),this.floatingUIOptions.arrow&&t.push(x(this.floatingUIOptions.arrow)),this.floatingUIOptions.size&&t.push(L(typeof this.floatingUIOptions.size!="boolean"?this.floatingUIOptions.size:void 0)),this.floatingUIOptions.autoPlacement&&t.push(V(typeof this.floatingUIOptions.autoPlacement!="boolean"?this.floatingUIOptions.autoPlacement:void 0)),this.floatingUIOptions.hide&&t.push(K(typeof this.floatingUIOptions.hide!="boolean"?this.floatingUIOptions.hide:void 0)),this.floatingUIOptions.inline&&t.push(_(typeof this.floatingUIOptions.inline!="boolean"?this.floatingUIOptions.inline:void 0)),t}get virtualElement(){var t,e;const{selection:i}=this.editor.state,s=(t=this.getReferencedVirtualElement)===null||t===void 0?void 0:t.call(this);if(s)return s;if(!(!((e=this.view)===null||e===void 0||(e=e.dom)===null||e===void 0)&&e.parentNode))return;const l=S(this.view,i.from,i.to);let r={getBoundingClientRect:()=>l,getClientRects:()=>[l]};if(i instanceof X){let n=this.view.nodeDOM(i.from);const d=n.dataset.nodeViewWrapper?n:n.querySelector("[data-node-view-wrapper]");d&&(n=d),n&&(r={getBoundingClientRect:()=>n.getBoundingClientRect(),getClientRects:()=>[n.getBoundingClientRect()]})}if(i instanceof k){const{$anchorCell:n,$headCell:d}=i,g=n?n.pos:d.pos,f=d?d.pos:n.pos,u=this.view.nodeDOM(g),o=this.view.nodeDOM(f);if(!u||!o)return;const a=u===o?u.getBoundingClientRect():tt(u.getBoundingClientRect(),o.getBoundingClientRect());r={getBoundingClientRect:()=>a,getClientRects:()=>[a]}}return r}constructor({editor:t,element:e,view:i,pluginKey:s="bubbleMenu",updateDelay:l=250,resizeDelay:r=60,shouldShow:n,appendTo:d,getReferencedVirtualElement:g,options:f}){var u;this.preventHide=!1,this.isVisible=!1,this.scrollTarget=window,this.floatingUIOptions={strategy:"absolute",placement:"top",offset:8,flip:{},shift:{},arrow:!1,size:!1,autoPlacement:!1,hide:!1,inline:!1,onShow:void 0,onHide:void 0,onUpdate:void 0,onDestroy:void 0},this.shouldShow=({view:o,state:a,from:h,to:c})=>{const{doc:m,selection:y}=a,{empty:O}=y,b=!m.textBetween(h,c).length&&Z(a.selection),v=this.element.contains(document.activeElement);return!(!(o.hasFocus()||v)||O||b||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.resizeHandler=()=>{this.resizeDebounceTimer&&clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=window.setTimeout(()=>{this.updatePosition()},this.resizeDelay)},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:o})=>{var a;if(this.editor.isDestroyed){this.destroy();return}if(this.preventHide){this.preventHide=!1;return}o?.relatedTarget&&(!((a=this.element.parentNode)===null||a===void 0)&&a.contains(o.relatedTarget))||o?.relatedTarget!==this.editor.view.dom&&this.hide()},this.handleDebouncedUpdate=(o,a)=>{const h=!a?.selection.eq(o.state.selection),c=!a?.doc.eq(o.state.doc);!h&&!c||(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(o,h,c,a)},this.updateDelay))},this.updateHandler=(o,a,h,c)=>{const{composing:m}=o;if(!(m||!a&&!h)){if(!this.getShouldShow(c)){this.hide();return}this.show(),this.updatePosition()}},this.transactionHandler=({transaction:o})=>{const a=o.getMeta(this.pluginKey);a==="updatePosition"?this.updatePosition():a&&typeof a=="object"&&a.type==="updateOptions"?this.updateOptions(a.options):a==="hide"?this.hide():a==="show"&&(this.updatePosition(),this.show())},this.editor=t,this.element=e,this.view=i,this.pluginKey=s,this.updateDelay=l,this.resizeDelay=r,this.appendTo=d,this.scrollTarget=(u=f?.scrollTarget)!==null&&u!==void 0?u:window,this.getReferencedVirtualElement=g,this.floatingUIOptions={...this.floatingUIOptions,...f},this.element.tabIndex=0,n&&(this.shouldShow=n),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.editor.on("transaction",this.transactionHandler),window.addEventListener("resize",this.resizeHandler),this.scrollTarget.addEventListener("scroll",this.resizeHandler),this.update(i,i.state),this.getShouldShow()&&(this.show(),this.updatePosition())}updatePosition(){if(!this.isVisible)return;const t=this.virtualElement;t&&A(t,this.element,{placement:this.floatingUIOptions.placement,strategy:this.floatingUIOptions.strategy,middleware:this.middlewares}).then(({x:e,y:i,strategy:s,middlewareData:l})=>{var r,n;if(!(!this.isVisible||this.editor.isDestroyed||!this.element.isConnected)){if(!((r=l.hide)===null||r===void 0)&&r.referenceHidden||!((n=l.hide)===null||n===void 0)&&n.escaped){this.element.style.visibility="hidden";return}this.element.style.visibility="visible",this.element.style.width="max-content",this.element.style.position=s,this.element.style.left=`${e}px`,this.element.style.top=`${i}px`,this.isVisible&&this.floatingUIOptions.onUpdate&&this.floatingUIOptions.onUpdate()}})}update(t,e){const{state:i}=t,s=i.selection.from!==i.selection.to;if(this.updateDelay>0&&s){this.handleDebouncedUpdate(t,e);return}const l=!e?.selection.eq(t.state.selection),r=!e?.doc.eq(t.state.doc);this.updateHandler(t,l,r,e)}getShouldShow(t){var e;const{state:i}=this.view,{selection:s}=i,{ranges:l}=s,r=Math.min(...l.map(d=>d.$from.pos)),n=Math.max(...l.map(d=>d.$to.pos));return((e=this.shouldShow)===null||e===void 0?void 0:e.call(this,{editor:this.editor,element:this.element,view:this.view,state:i,oldState:t,from:r,to:n}))||!1}show(){var t;if(this.isVisible)return;this.element.style.visibility="visible",this.element.style.opacity="1";const e=typeof this.appendTo=="function"?this.appendTo():this.appendTo;(t=e??this.view.dom.parentElement)===null||t===void 0||t.appendChild(this.element),this.floatingUIOptions.onShow&&this.floatingUIOptions.onShow(),this.isVisible=!0}hide(){this.isVisible&&(this.element.style.visibility="hidden",this.element.style.opacity="0",this.element.remove(),this.floatingUIOptions.onHide&&this.floatingUIOptions.onHide(),this.isVisible=!1)}updateOptions(t){if(t.updateDelay!==void 0&&(this.updateDelay=t.updateDelay),t.resizeDelay!==void 0&&(this.resizeDelay=t.resizeDelay),t.appendTo!==void 0&&(this.appendTo=t.appendTo),t.getReferencedVirtualElement!==void 0&&(this.getReferencedVirtualElement=t.getReferencedVirtualElement),t.shouldShow!==void 0&&t.shouldShow&&(this.shouldShow=t.shouldShow),t.options!==void 0){var e;const i=(e=t.options.scrollTarget)!==null&&e!==void 0?e:window;i!==this.scrollTarget&&(this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.scrollTarget=i,this.scrollTarget.addEventListener("scroll",this.resizeHandler)),this.floatingUIOptions={...this.floatingUIOptions,...t.options}}}destroy(){this.hide(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),window.removeEventListener("resize",this.resizeHandler),this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler),this.editor.off("transaction",this.transactionHandler),this.floatingUIOptions.onDestroy&&this.floatingUIOptions.onDestroy()}};const $=t=>new H({key:typeof t.pluginKey=="string"?new U(t.pluginKey):t.pluginKey,view:e=>new et({view:e,...t})});R.create({name:"bubbleMenu",addOptions(){return{element:null,pluginKey:"bubbleMenu",updateDelay:void 0,appendTo:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[$({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,updateDelay:this.options.updateDelay,options:this.options.options,appendTo:this.options.appendTo,getReferencedVirtualElement:this.options.getReferencedVirtualElement,shouldShow:this.options.shouldShow})]:[]}});var it=class{getTextContent(t){return J(t,{textSerializers:Q(this.editor.schema)})}get middlewares(){const t=[];return this.floatingUIOptions.flip&&t.push(M(typeof this.floatingUIOptions.flip!="boolean"?this.floatingUIOptions.flip:void 0)),this.floatingUIOptions.shift&&t.push(C(typeof this.floatingUIOptions.shift!="boolean"?this.floatingUIOptions.shift:void 0)),this.floatingUIOptions.offset&&t.push(P(typeof this.floatingUIOptions.offset!="boolean"?this.floatingUIOptions.offset:void 0)),this.floatingUIOptions.arrow&&t.push(x(this.floatingUIOptions.arrow)),this.floatingUIOptions.size&&t.push(L(typeof this.floatingUIOptions.size!="boolean"?this.floatingUIOptions.size:void 0)),this.floatingUIOptions.autoPlacement&&t.push(V(typeof this.floatingUIOptions.autoPlacement!="boolean"?this.floatingUIOptions.autoPlacement:void 0)),this.floatingUIOptions.hide&&t.push(K(typeof this.floatingUIOptions.hide!="boolean"?this.floatingUIOptions.hide:void 0)),this.floatingUIOptions.inline&&t.push(_(typeof this.floatingUIOptions.inline!="boolean"?this.floatingUIOptions.inline:void 0)),t}constructor({editor:t,element:e,view:i,pluginKey:s="floatingMenu",updateDelay:l=250,resizeDelay:r=60,options:n,appendTo:d,shouldShow:g}){var f;this.preventHide=!1,this.isVisible=!1,this.scrollTarget=window,this.shouldShow=({view:u,state:o})=>{const{selection:a}=o,{$anchor:h,empty:c}=a,m=h.depth===1,y=h.parent.isTextblock&&!h.parent.type.spec.code&&!h.parent.textContent&&h.parent.childCount===0&&!this.getTextContent(h.parent);return!(!u.hasFocus()||!c||!m||!y||!this.editor.isEditable)},this.floatingUIOptions={strategy:"absolute",placement:"right",offset:8,flip:{},shift:{},arrow:!1,size:!1,autoPlacement:!1,hide:!1,inline:!1},this.updateHandler=(u,o,a,h)=>{const{composing:c}=u;if(!(c||!o&&!a)){if(!this.getShouldShow(h)){this.hide();return}this.updatePosition(),this.show()}},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:u})=>{var o;if(this.preventHide){this.preventHide=!1;return}u?.relatedTarget&&(!((o=this.element.parentNode)===null||o===void 0)&&o.contains(u.relatedTarget))||u?.relatedTarget!==this.editor.view.dom&&this.hide()},this.transactionHandler=({transaction:u})=>{const o=u.getMeta(this.pluginKey);o==="updatePosition"?this.updatePosition():o&&typeof o=="object"&&o.type==="updateOptions"?this.updateOptions(o.options):o==="hide"?this.hide():o==="show"&&(this.updatePosition(),this.show())},this.resizeHandler=()=>{this.resizeDebounceTimer&&clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=window.setTimeout(()=>{this.updatePosition()},this.resizeDelay)},this.editor=t,this.element=e,this.view=i,this.pluginKey=s,this.updateDelay=l,this.resizeDelay=r,this.appendTo=d,this.scrollTarget=(f=n?.scrollTarget)!==null&&f!==void 0?f:window,this.floatingUIOptions={...this.floatingUIOptions,...n},this.element.tabIndex=0,g&&(this.shouldShow=g),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.editor.on("transaction",this.transactionHandler),window.addEventListener("resize",this.resizeHandler),this.scrollTarget.addEventListener("scroll",this.resizeHandler),this.update(i,i.state),this.getShouldShow()&&(this.show(),this.updatePosition())}getShouldShow(t){var e;const{state:i}=this.view,{selection:s}=i,{ranges:l}=s,r=Math.min(...l.map(d=>d.$from.pos)),n=Math.max(...l.map(d=>d.$to.pos));return(e=this.shouldShow)===null||e===void 0?void 0:e.call(this,{editor:this.editor,view:this.view,state:i,oldState:t,from:r,to:n})}updateOptions(t){if(t.updateDelay!==void 0&&(this.updateDelay=t.updateDelay),t.resizeDelay!==void 0&&(this.resizeDelay=t.resizeDelay),t.appendTo!==void 0&&(this.appendTo=t.appendTo),t.shouldShow!==void 0&&t.shouldShow&&(this.shouldShow=t.shouldShow),t.options!==void 0){var e;const i=(e=t.options.scrollTarget)!==null&&e!==void 0?e:window;i!==this.scrollTarget&&(this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.scrollTarget=i,this.scrollTarget.addEventListener("scroll",this.resizeHandler)),this.floatingUIOptions={...this.floatingUIOptions,...t.options}}}updatePosition(){var t;if(!(!((t=this.view)===null||t===void 0||(t=t.dom)===null||t===void 0)&&t.parentNode))return;const{selection:e}=this.editor.state,i=S(this.view,e.from,e.to);A({getBoundingClientRect:()=>i,getClientRects:()=>[i]},this.element,{placement:this.floatingUIOptions.placement,strategy:this.floatingUIOptions.strategy,middleware:this.middlewares}).then(({x:s,y:l,strategy:r,middlewareData:n})=>{var d,g;if(!((d=n.hide)===null||d===void 0)&&d.referenceHidden||!((g=n.hide)===null||g===void 0)&&g.escaped){this.element.style.visibility="hidden";return}this.element.style.visibility="visible",this.element.style.width="max-content",this.element.style.position=r,this.element.style.left=`${s}px`,this.element.style.top=`${l}px`,this.isVisible&&this.floatingUIOptions.onUpdate&&this.floatingUIOptions.onUpdate()})}update(t,e){const i=!e?.selection.eq(t.state.selection),s=!e?.doc.eq(t.state.doc);this.updateHandler(t,i,s,e)}show(){var t;if(this.isVisible)return;this.element.style.visibility="visible",this.element.style.opacity="1";const e=typeof this.appendTo=="function"?this.appendTo():this.appendTo;(t=e??this.view.dom.parentElement)===null||t===void 0||t.appendChild(this.element),this.floatingUIOptions.onShow&&this.floatingUIOptions.onShow(),this.isVisible=!0}hide(){this.isVisible&&(this.element.style.visibility="hidden",this.element.style.opacity="0",this.element.remove(),this.floatingUIOptions.onHide&&this.floatingUIOptions.onHide(),this.isVisible=!1)}destroy(){this.hide(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),window.removeEventListener("resize",this.resizeHandler),this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler),this.editor.off("transaction",this.transactionHandler),this.floatingUIOptions.onDestroy&&this.floatingUIOptions.onDestroy()}};const F=t=>new H({key:typeof t.pluginKey=="string"?new U(t.pluginKey):t.pluginKey,view:e=>new it({view:e,...t})});R.create({name:"floatingMenu",addOptions(){return{element:null,options:{},pluginKey:"floatingMenu",updateDelay:void 0,resizeDelay:void 0,appendTo:void 0,shouldShow:null}},addCommands(){return{updateFloatingMenuPosition:()=>({tr:t,dispatch:e})=>(e&&t.setMeta(this.options.pluginKey,"updatePosition"),!0)}},addProseMirrorPlugins(){return this.options.element?[F({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,updateDelay:this.options.updateDelay,resizeDelay:this.options.resizeDelay,options:this.options.options,appendTo:this.options.appendTo,shouldShow:this.options.shouldShow})]:[]}});function W(t,e){return t??new U(e)}const st=typeof window<"u"?p.useLayoutEffect:p.useEffect,q=new Set(["left","opacity","position","top","visibility","width"]),nt=new Set(["animationIterationCount","aspectRatio","borderImageOutset","borderImageSlice","borderImageWidth","columnCount","columns","fillOpacity","flex","flexGrow","flexShrink","fontWeight","gridArea","gridColumn","gridColumnEnd","gridColumnStart","gridRow","gridRowEnd","gridRowStart","lineClamp","lineHeight","opacity","order","orphans","scale","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","tabSize","widows","zIndex","zoom"]),ot=new Set(["children","className","style"]),rt=new Set(["tabIndex"]),lt=new Set(["accessKey","autoCapitalize","contentEditable","contextMenu","dir","draggable","enterKeyHint","hidden","id","lang","nonce","role","slot","spellCheck","tabIndex","title","translate"]),at={Blur:"focusout",DoubleClick:"dblclick",Focus:"focusin",MouseEnter:"mouseenter",MouseLeave:"mouseleave"};function T(t,e){return/^on[A-Z]/.test(t)&&typeof e=="function"}function dt(t){return t.startsWith("aria-")||t.startsWith("data-"),t}function ut(t){return t.startsWith("aria-")||t.startsWith("data-")||lt.has(t)}function j(t){return t.startsWith("--")?t:t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function ht(t){var e;const i=t.endsWith("Capture"),s=(i?t.slice(0,-7):t).slice(2);return{eventName:(e=at[s])!==null&&e!==void 0?e:s.toLowerCase(),options:i?{capture:!0}:void 0}}function ct(t,e){let i=e.defaultPrevented,s=!1;const l=Object.create(e);return Object.defineProperties(l,{nativeEvent:{value:e},currentTarget:{value:t},target:{value:e.target},persist:{value:()=>{}},isDefaultPrevented:{value:()=>i},isPropagationStopped:{value:()=>s},preventDefault:{value:()=>{i=!0,e.preventDefault()}},stopPropagation:{value:()=>{s=!0,e.stopPropagation()}}}),l}function E(t){return rt.has(t)}function D(t,e,i){if(e==="tabIndex"){t.tabIndex=Number(i);return}t[e]=i}function ft(t,e){if(e==="tabIndex"){t.removeAttribute("tabindex");return}const i=t[e];if(typeof i=="boolean"){t[e]=!1;return}if(typeof i=="number"){t[e]=0;return}t[e]=""}function pt(t,e){return typeof e!="number"||e===0||t.startsWith("--")||nt.has(t)?String(e):`${e}px`}function gt(t,e){q.has(e)||t.style.removeProperty(j(e))}function mt(t,e,i){q.has(e)||t.style.setProperty(j(e),pt(e,i))}function vt(t,e,i){new Set([...Object.keys(e),...Object.keys(i)]).forEach(s=>{if(ot.has(s)||!ut(s)||T(s,e[s])||T(s,i[s]))return;const l=e[s],r=i[s];if(l===r)return;const n=dt(s);if(r==null||r===!1){E(s)&&ft(t,s),t.removeAttribute(n);return}if(r===!0){E(s)&&D(t,s,!0),t.setAttribute(n,"");return}if(E(s)){D(t,s,r);return}t.setAttribute(n,String(r))})}function yt(t,e,i){if(e!==i){if(i){t.className=i;return}t.removeAttribute("class")}}function bt(t,e,i){const s=e??{},l=i??{};new Set([...Object.keys(s),...Object.keys(l)]).forEach(r=>{const n=s[r],d=l[r];if(n!==d){if(d==null){gt(t,r);return}mt(t,r,d)}})}function wt(t,e,i){e.forEach(({eventName:l,listener:r,options:n})=>{t.removeEventListener(l,r,n)});const s=[];return Object.entries(i).forEach(([l,r])=>{if(!T(l,r))return;const{eventName:n,options:d}=ht(l),g=f=>{r(ct(t,f))};t.addEventListener(n,g,d),s.push({eventName:n,listener:g,options:d})}),s}function Y(t,e){const i=p.useRef({}),s=p.useRef([]);st(()=>{const l=i.current;return yt(t,l.className,e.className),bt(t,l.style,e.style),vt(t,l,e),s.current=wt(t,s.current,e),i.current=e,()=>{s.current.forEach(({eventName:r,listener:n,options:d})=>{t.removeEventListener(r,n,d)}),s.current=[]}},[t,e])}const Tt=N.forwardRef(({pluginKey:t,editor:e,updateDelay:i,resizeDelay:s,appendTo:l,shouldShow:r=null,getReferencedVirtualElement:n,options:d,children:g,...f},u)=>{const o=p.useRef(document.createElement("div")),a=p.useRef(W(t,"bubbleMenu")).current;Y(o.current,f),typeof u=="function"?u(o.current):u&&(u.current=o.current);const{editor:h}=z(),c=e||h,m={updateDelay:i,resizeDelay:s,appendTo:l,pluginKey:a,shouldShow:r,getReferencedVirtualElement:n,options:d},y=p.useRef(m);y.current=m;const[O,b]=p.useState(!1),v=p.useRef(!0);return p.useEffect(()=>{if(c?.isDestroyed)return;if(!c){console.warn("BubbleMenu component is not rendered inside of an editor component or does not have editor prop.");return}const w=o.current;w.style.visibility="hidden",w.style.position="absolute";const I=$({...y.current,editor:c,element:w});c.registerPlugin(I);const G=y.current.pluginKey;return v.current=!0,b(!0),()=>{b(!1),c.unregisterPlugin(G),window.requestAnimationFrame(()=>{w.parentNode&&w.parentNode.removeChild(w)})}},[c]),p.useEffect(()=>{if(!(!O||!c||c.isDestroyed)){if(v.current){v.current=!1;return}c.view.dispatch(c.state.tr.setMeta(a,{type:"updateOptions",options:y.current}))}},[O,c,i,s,r,d,l,n,a]),B.createPortal(g,o.current)});N.forwardRef(({pluginKey:t,editor:e,updateDelay:i,resizeDelay:s,appendTo:l,shouldShow:r=null,options:n,children:d,...g},f)=>{const u=p.useRef(document.createElement("div")),o=p.useRef(W(t,"floatingMenu")).current;Y(u.current,g),typeof f=="function"?f(u.current):f&&(f.current=u.current);const{editor:a}=z(),h=e||a,c={updateDelay:i,resizeDelay:s,appendTo:l,pluginKey:o,shouldShow:r,options:n},m=p.useRef(c);m.current=c;const[y,O]=p.useState(!1),b=p.useRef(!0);return p.useEffect(()=>{if(h?.isDestroyed)return;if(!h){console.warn("FloatingMenu component is not rendered inside of an editor component or does not have editor prop.");return}const v=u.current;v.style.visibility="hidden",v.style.position="absolute";const w=F({...m.current,editor:h,element:v});h.registerPlugin(w);const I=m.current.pluginKey;return b.current=!0,O(!0),()=>{O(!1),h.unregisterPlugin(I),window.requestAnimationFrame(()=>{v.parentNode&&v.parentNode.removeChild(v)})}},[h]),p.useEffect(()=>{if(!(!y||!h||h.isDestroyed)){if(b.current){b.current=!1;return}h.view.dispatch(h.state.tr.setMeta(o,{type:"updateOptions",options:m.current}))}},[y,h,i,s,r,n,l,o]),B.createPortal(d,u.current)});export{Tt as B};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as i,j as t,c9 as o}from"./index-
|
|
1
|
+
import{r as i,j as t,c9 as o}from"./index-B8QWcTDF.js";var s=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),d="VisuallyHidden",e=i.forwardRef((r,a)=>t.jsx(o.span,{...r,ref:a,style:{...s,...r.style}}));e.displayName=d;var n=e;export{n as R,s as V};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as v,a6 as z,K as Y,i as U,m as $,j as l,b as M,B,L as V,r as w,d as K,E as L,x as X,aW as Z,w as J,v as ee,D as te}from"./index-DNEP98uE.js";import{n as se}from"./ArrowUp-B8f1LOA3.js";import{u as H,f as G,T as ne,A as ae,n as re,o as ie,b as oe,c as le,p as ce,q as ue,t as de,L as fe}from"./chat-context-yyPx2rIJ.js";import{T as me,c as ge,b as xe,d as pe,H as he}from"./input-4IRdSFiu.js";import{u as je,a as ve,S as be,M as A}from"./pair-DPK0tZYI.js";import{A as ye,f as W}from"./agent-icon-DzQTekjt.js";import{j as Ne}from"./content-changes-mLMSBZZ5.js";import{a as Ce}from"./agent-capabilities-B4hv5XuU.js";import{a as we}from"./repository-binding-BSo0e4YD.js";import{c as Se,i as ke}from"./thread-intent-G92RnE-h.js";import{a as Te}from"./use-panel-navigate-D9Qkq72P.js";import{N as $e}from"./index-BLL4K5LV.js";import{i as Ee}from"./ArrowRight-BUt920-t.js";import{c as De}from"./use-entitlements-DX3PoH_U.js";import{u as Pe}from"./use-deco-credits-D3GSQZY4.js";import{F as _e}from"./feature-paywall-CgIsHGkH.js";import{i as Ie}from"./AlertCircle-DHp8jmot.js";const Oe=15e3;function Me(e,t,n){const s=v.c(20),r=n===void 0?{}:n,{org:a}=z(),i=we(e);let c;s[0]!==t||s[1]!==i?.metadata||s[2]!==e?(c=!!e&&!!t&&Ce(i?.metadata),s[0]=t,s[1]=i?.metadata,s[2]=e,s[3]=c):c=s[3];const u=c;let o;s[4]!==t||s[5]!==a.slug||s[6]!==e?(o=Y.chatDraftChanges(a.slug,e??"",t??""),s[4]=t,s[5]=a.slug,s[6]=e,s[7]=o):o=s[7];let d;s[8]!==t||s[9]!==a.slug||s[10]!==e?(d=()=>Ne(a.slug,e,t),s[8]=t,s[9]=a.slug,s[10]=e,s[11]=d):d=s[11];const p=r.poll===!1?!1:Oe;let g;s[12]!==u||s[13]!==o||s[14]!==d||s[15]!==p?(g={queryKey:o,queryFn:d,enabled:u,refetchInterval:p,retry:!1},s[12]=u,s[13]=o,s[14]=d,s[15]=p,s[16]=g):g=s[16];const{data:m}=U(g),f=m===void 0?0:m,x=u?i:null;let h;return s[17]!==f||s[18]!==x?(h={project:x,changeCount:f},s[17]=f,s[18]=x,s[19]=h):h=s[19],h}function Fe(){const e=v.c(7),t=H(),n=G(),s=t?.virtualMcpId??null,r=t?.currentBranch??null,{project:a,changeCount:i}=Me(s,r);if(!a||!s||!r||i===0)return null;const c=a.icon??null,u=!!n&&(n.isRunInProgress||n.status==="streaming"||n.status==="submitted");let o;return e[0]!==r||e[1]!==i||e[2]!==a.title||e[3]!==c||e[4]!==u||e[5]!==s?(o={virtualMcpId:s,projectTitle:a.title,projectIcon:c,branch:r,changeCount:i,editing:u},e[0]=r,e[1]=i,e[2]=a.title,e[3]=c,e[4]=u,e[5]=s,e[6]=o):o=e[6],o}function Re(e){const t=v.c(24),{icon:n,title:s,subtitle:r,status:a,detail:i,action:c,className:u}=e;let o;t[0]!==u?(o=$("rounded-xl border border-border bg-card p-3",u),t[0]=u,t[1]=o):o=t[1];let d;t[2]!==n?(d=l.jsx("div",{className:"shrink-0",children:n}),t[2]=n,t[3]=d):d=t[3];let p;t[4]!==s?(p=l.jsx("p",{className:"truncate text-sm font-medium text-foreground",children:s}),t[4]=s,t[5]=p):p=t[5];let g;t[6]!==r?(g=r&&l.jsx("p",{className:"truncate text-xs text-muted-foreground",children:r}),t[6]=r,t[7]=g):g=t[7];let m;t[8]!==p||t[9]!==g?(m=l.jsxs("div",{className:"min-w-0 flex-1",children:[p,g]}),t[8]=p,t[9]=g,t[10]=m):m=t[10];let f;t[11]!==a?(f=a&&l.jsx("span",{className:"flex shrink-0 items-center gap-1.5 text-sm text-muted-foreground",children:a}),t[11]=a,t[12]=f):f=t[12];let x;t[13]!==d||t[14]!==m||t[15]!==f?(x=l.jsxs("div",{className:"flex items-center gap-2.5",children:[d,m,f]}),t[13]=d,t[14]=m,t[15]=f,t[16]=x):x=t[16];let h;t[17]!==c||t[18]!==i?(h=(i||c)&&l.jsxs("div",{className:"mt-3 flex items-center justify-between gap-2",children:[l.jsx("span",{className:"text-sm text-muted-foreground",children:i}),c]}),t[17]=c,t[18]=i,t[19]=h):h=t[19];let b;return t[20]!==o||t[21]!==x||t[22]!==h?(b=l.jsxs("div",{className:o,children:[x,h]}),t[20]=o,t[21]=x,t[22]=h,t[23]=b):b=t[23],b}function ze(e){const t=v.c(10),{draft:n}=e,s=M(),r=n.editing?"animate-pulse bg-warning":"bg-success";let a;t[0]!==r?(a=$("size-1.5 rounded-full",r),t[0]=r,t[1]=a):a=t[1];let i;t[2]!==a?(i=l.jsx("span",{"aria-hidden":!0,className:a}),t[2]=a,t[3]=i):i=t[3];const c=n.editing?"chat.draft.editing":"chat.draft.ready";let u;t[4]!==s||t[5]!==c?(u=s(c),t[4]=s,t[5]=c,t[6]=u):u=t[6];let o;return t[7]!==i||t[8]!==u?(o=l.jsxs(l.Fragment,{children:[i,u]}),t[7]=i,t[8]=u,t[9]=o):o=t[9],o}function Be(e){const t=v.c(11),{draft:n}=e,s=M(),{org:r}=z(),a=H()?.taskId??null;let i;t[0]!==n.virtualMcpId||t[1]!==r.slug?(i={org:r.slug,agentId:n.virtualMcpId},t[0]=n.virtualMcpId,t[1]=r.slug,t[2]=i):i=t[2];let c;t[3]!==a?(c=a?{thread:a}:{},t[3]=a,t[4]=c):c=t[4];let u;t[5]!==s?(u=s("chat.draft.open"),t[5]=s,t[6]=u):u=t[6];let o;return t[7]!==i||t[8]!==c||t[9]!==u?(o=l.jsx(B,{variant:"outline",size:"sm",asChild:!0,children:l.jsx(V,{to:"/$org/projects/$agentId/site-editor",params:i,search:c,children:u})}),t[7]=i,t[8]=c,t[9]=u,t[10]=o):o=t[10],o}function q(){const e=v.c(20),t=M(),n=Fe();if(!n)return null;let s;e[0]!==n.projectIcon||e[1]!==n.projectTitle?(s=l.jsx(ye,{icon:n.projectIcon,name:n.projectTitle,size:"sm"}),e[0]=n.projectIcon,e[1]=n.projectTitle,e[2]=s):s=e[2];const r=n.projectTitle;let a;e[3]!==n.branch?(a=l.jsx("span",{className:"font-mono",children:n.branch}),e[3]=n.branch,e[4]=a):a=e[4];let i;e[5]!==n?(i=l.jsx(ze,{draft:n}),e[5]=n,e[6]=i):i=e[6];const c=n.changeCount===1?"chat.draft.change":"chat.draft.changes";let u;e[7]!==n.changeCount||e[8]!==t||e[9]!==c?(u=t(c,{count:n.changeCount}),e[7]=n.changeCount,e[8]=t,e[9]=c,e[10]=u):u=e[10];let o;e[11]!==n?(o=l.jsx(Be,{draft:n}),e[11]=n,e[12]=o):o=e[12];let d;return e[13]!==n.projectTitle||e[14]!==s||e[15]!==a||e[16]!==i||e[17]!==u||e[18]!==o?(d=l.jsx(Re,{className:"mx-2.5 mb-6",icon:s,title:r,subtitle:a,status:i,detail:u,action:o}),e[13]=n.projectTitle,e[14]=s,e[15]=a,e[16]=i,e[17]=u,e[18]=o,e[19]=d):d=e[19],d}function He(e){return e.parts.some(t=>t.type==="dynamic-tool"||t.type.startsWith("tool-"))}function Le(e){let t=0;for(const n of e)for(const s of n.parts??[]){const r=s;r.type==="tool-load_repo"&&r.state==="output-available"&&r.output?.success===!0&&t++}return t}function Ae(){const e=v.c(11),{openPanel:t}=Te(),n=Se(),s=G()?.messages??[],r=H(),a=r?.taskId??null,i=r?.currentBranch;let c;e[0]!==i?(c=ke(i),e[0]=i,e[1]=c):c=e[1];const u=c;let o;e[2]!==s?(o=Le(s),e[2]=s,e[3]=o):o=e[3];const d=o,p=w.useRef(null),g=w.useRef(null);let m,f;e[4]!==u||e[5]!==d||e[6]!==n||e[7]!==t||e[8]!==a?(m=()=>{if(!d||!a)return;const x=`${a}:${d}`;g.current!==x&&(g.current=x,n?.refreshThreadMetadata(a)),p.current!==a&&(p.current=a,u||t("site-editor"))},f=[d,a,t,n,u],e[4]=u,e[5]=d,e[6]=n,e[7]=t,e[8]=a,e[9]=m,e[10]=f):(m=e[9],f=e[10]),w.useEffect(m,f)}function Q(e){return`deco-credits-empty-dismissed:${e}`}function pt(e){try{return localStorage.getItem(Q(e))==="1"}catch{return!1}}function qe(){const e=v.c(56),t=M(),{org:n}=z(),s=De("credits"),r=K(),{decoKeyId:a}=Pe(),[i,c]=w.useState(!0);let u;e[0]!==n.id?(u=()=>{L("credits_empty_state_dismissed",{organization_id:n.id}),c(!1);try{localStorage.setItem(Q(n.id),"1")}catch{}},e[0]=n.id,e[1]=u):u=e[1];const o=u;let d,p;if(e[2]!==i||e[3]!==n.id?(d=()=>{i&&L("credits_empty_state_shown",{organization_id:n.id})},p=[i,n.id],e[2]=i,e[3]=n.id,e[4]=d,e[5]=p):(d=e[4],p=e[5]),w.useEffect(d,p),!i)return null;if(!s){let k;e[6]!==t?(k=t("chat.input.allowanceExhaustedTitle"),e[6]=t,e[7]=k):k=e[7];let O;e[8]!==k?(O={title:k},e[8]=k,e[9]=O):O=e[9];let R;return e[10]!==o||e[11]!==O?(R=l.jsx(_e,{feature:"chat",copy:O,onDismiss:o}),e[10]=o,e[11]=O,e[12]=R):R=e[12],R}let g;e[13]!==o?(g=k=>!k&&o(),e[13]=o,e[14]=g):g=e[14];let m;e[15]===Symbol.for("react.memo_cache_sentinel")?(m=l.jsx("div",{className:"absolute inset-x-0 top-0 h-24 bg-gradient-to-b from-warning/8 to-transparent pointer-events-none rounded-t-lg"}),e[15]=m):m=e[15];let f;e[16]===Symbol.for("react.memo_cache_sentinel")?(f=l.jsx("div",{className:"flex items-center justify-center size-11 rounded-full bg-warning/10 border border-warning/20 mx-auto",children:l.jsx(W,{size:20,className:"text-warning"})}),e[16]=f):f=e[16];let x;e[17]!==t?(x=t("chat.creditsEmptyState.title"),e[17]=t,e[18]=x):x=e[18];let h;e[19]!==x?(h=l.jsx(X,{className:"text-lg font-semibold",children:x}),e[19]=x,e[20]=h):h=e[20];let b;e[21]!==t?(b=t("chat.creditsEmptyState.description"),e[21]=t,e[22]=b):b=e[22];let N;e[23]!==b?(N=l.jsx(Z,{className:"mt-2 text-sm leading-relaxed max-w-[320px] mx-auto",children:b}),e[23]=b,e[24]=N):N=e[24];let C;e[25]!==h||e[26]!==N?(C=l.jsxs("div",{className:"relative px-6 pt-7 pb-5",children:[m,l.jsxs(J,{className:"relative gap-3",children:[f,l.jsxs("div",{className:"text-center",children:[h,N]})]})]}),e[25]=h,e[26]=N,e[27]=C):C=e[27];let y;e[28]!==a||e[29]!==o?(y=a&&l.jsx("div",{className:"px-6 pb-5",children:l.jsx(me,{source:"empty_state",onDone:o})}),e[28]=a,e[29]=o,e[30]=y):y=e[30];let S;e[31]!==o||e[32]!==r||e[33]!==n.slug?(S=()=>{r({to:"/$org/settings/ai-providers",params:{org:n.slug}}),o()},e[31]=o,e[32]=r,e[33]=n.slug,e[34]=S):S=e[34];let j;e[35]!==t?(j=t("chat.creditsEmptyState.useYourOwnProvider"),e[35]=t,e[36]=j):j=e[36];let T;e[37]===Symbol.for("react.memo_cache_sentinel")?(T=l.jsx(Ee,{size:12,className:"transition-transform duration-150 group-hover:translate-x-0.5"}),e[37]=T):T=e[37];let E;e[38]!==S||e[39]!==j?(E=l.jsxs("button",{type:"button",className:"group flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground transition-colors",onClick:S,children:[j,T]}),e[38]=S,e[39]=j,e[40]=E):E=e[40];let D;e[41]!==t?(D=t("chat.creditsEmptyState.skipForNow"),e[41]=t,e[42]=D):D=e[42];let P;e[43]!==o||e[44]!==D?(P=l.jsx(B,{variant:"ghost",size:"sm",className:"text-xs text-muted-foreground",onClick:o,children:D}),e[43]=o,e[44]=D,e[45]=P):P=e[45];let _;e[46]!==E||e[47]!==P?(_=l.jsxs("div",{className:"px-6 py-3.5 border-t border-border bg-muted/30 flex items-center justify-between",children:[E,P]}),e[46]=E,e[47]=P,e[48]=_):_=e[48];let I;e[49]!==C||e[50]!==y||e[51]!==_?(I=l.jsxs(ee,{className:"sm:max-w-[500px] gap-0 p-0 overflow-hidden",onOpenAutoFocus:Ke,children:[C,y,_]}),e[49]=C,e[50]=y,e[51]=_,e[52]=I):I=e[52];let F;return e[53]!==I||e[54]!==g?(F=l.jsx(te,{open:!0,onOpenChange:g,children:I}),e[53]=I,e[54]=g,e[55]=F):F=e[55],F}function Ke(e){return e.preventDefault()}function Ge(e){const t=v.c(6),{balanceDollars:n}=e;let s;t[0]!==n?(s=n.toFixed(2),t[0]=n,t[1]=s):s=t[1];const r=s;let a,i;t[2]===Symbol.for("react.memo_cache_sentinel")?(a=$("inline-flex items-center gap-1.5 px-3 py-1 rounded-full","bg-success/10 border border-success/20","animate-in fade-in-0 slide-in-from-bottom-2 duration-300"),i=l.jsx(W,{size:13,className:"text-success"}),t[2]=a,t[3]=i):(a=t[2],i=t[3]);let c;return t[4]!==r?(c=l.jsxs("div",{className:a,children:[i,l.jsxs("span",{className:"text-xs font-medium text-success tabular-nums",children:["$",r," in credits to get started"]})]}),t[4]=r,t[5]=c):c=t[5],c}function We(){const e=v.c(8),{org:t}=z(),n=K();let s;e[0]!==n||e[1]!==t.slug?(s=()=>n({to:"/$org/settings/ai-providers",params:{org:t.slug}}),e[0]=n,e[1]=t.slug,e[2]=s):s=e[2];let r,a,i;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=$("inline-flex items-center gap-1.5 px-3 py-1 rounded-lg cursor-pointer","bg-warning/10 border border-warning/20","hover:bg-warning/15","transition-colors duration-150","animate-in fade-in-0 slide-in-from-bottom-2 duration-300"),a=l.jsx(Ie,{size:13,className:"text-warning"}),i=l.jsx("span",{className:"text-xs font-medium text-warning",children:"No credits remaining · Add more"}),e[3]=r,e[4]=a,e[5]=i):(r=e[3],a=e[4],i=e[5]);let c;return e[6]!==s?(c=l.jsxs("button",{type:"button",onClick:s,className:r,children:[a,i]}),e[6]=s,e[7]=c):c=e[7],c}function Qe(e){const t=v.c(7),{scrollRef:n,sentinelRef:s,hasMoreOlder:r,isFetchingOlder:a,fetchOlderMessages:i}=e;let c,u;t[0]!==i||t[1]!==r||t[2]!==a||t[3]!==n||t[4]!==s?(c=()=>{const o=s.current,d=n.current;if(!o||!d||!r)return;const p=new IntersectionObserver(async g=>{if(!g[0]?.isIntersecting||a||!r)return;const f=d.scrollHeight,x=d.scrollTop;await i(),requestAnimationFrame(()=>{const h=d.scrollHeight;d.scrollTop=x+(h-f)})},{root:d,rootMargin:"200px 0px 0px 0px"});return p.observe(o),()=>p.disconnect()},u=[n,s,r,a,i],t[0]=i,t[1]=r,t[2]=a,t[3]=n,t[4]=s,t[5]=c,t[6]=u):(c=t[5],u=t[6]),w.useEffect(c,u)}function Ye(e){const t=v.c(5),{className:n,children:s}=e;let r;t[0]!==n?(r=$("flex flex-col h-full w-full bg-background transform-[translateZ(0)]",n),t[0]=n,t[1]=r):r=t[1];let a;return t[2]!==s||t[3]!==r?(a=l.jsx("div",{className:r,children:s}),t[2]=s,t[3]=r,t[4]=a):a=t[4],a}function Ue(e){const t=v.c(5),{children:n,className:s}=e;let r;t[0]!==s?(r=$("flex-1 min-h-0 overflow-y-auto isolate",s),t[0]=s,t[1]=r):r=t[1];let a;return t[2]!==n||t[3]!==r?(a=l.jsx("div",{className:r,children:n}),t[2]=n,t[3]=r,t[4]=a):a=t[4],a}function Ve(e){const t=v.c(2),{children:n}=e;let s;return t[0]!==n?(s=l.jsx("div",{className:"min-h-full shrink-0 w-full flex items-center justify-center max-w-2xl mx-auto py-10",children:n}),t[0]=n,t[1]=s):s=t[1],s}function Xe(){const e=M(),{messages:t,status:n,hasMoreOlder:s,isFetchingOlder:r,fetchOlderMessages:a,isRunInProgress:i}=oe(),{taskId:c}=le();Ae();const u=ce(c??""),o=ue(u),d=o.size===0?t:t.filter(j=>!o.has(j.id)),p=de(d,n==="submitted"||n==="streaming"||i),g=p.visible,m=je(g),f=m.at(-1),x=m.findIndex(j=>!!j.assistant&&He(j.assistant)),b=pe()*he+16,N=w.useRef(null),C=w.useRef(null);Qe({scrollRef:N,sentinelRef:C,hasMoreOlder:s,isFetchingOlder:r,fetchOlderMessages:a});const y=ve({initial:!1}),S=j=>{N.current=j,y.scrollRef(j)};return l.jsx(fe.Provider,{value:p,children:l.jsx(be,{messages:t,children:l.jsxs("div",{className:"relative h-full w-full min-w-0",children:[l.jsx("div",{ref:S,"data-chat-scroller":!0,className:"w-full min-w-0 max-w-full overflow-y-auto h-full [container-type:size]",style:{paddingBottom:b},children:l.jsxs("div",{ref:y.contentRef,className:"overflow-x-clip",children:[l.jsxs("div",{className:"flex flex-col min-w-0 max-w-2xl mx-auto w-full",children:[l.jsx("div",{ref:C,"aria-hidden":!0,className:"h-px"}),r&&l.jsx("div",{className:"flex items-center justify-center py-3 text-xs text-muted-foreground",children:e("chat.chat.loadingOlderMessages")}),m.slice(0,-1).map((j,T)=>l.jsxs(w.Fragment,{children:[l.jsx(A,{pair:j,isLastPair:!1,status:T===m.length-1?n:void 0}),T===x&&l.jsx(q,{})]},`pair-${j.user?.id??j.assistant?.id}`))]}),f&&l.jsxs("div",{className:"min-h-[100cqh] min-w-0 max-w-2xl mx-auto w-full",children:[l.jsx(A,{pair:f,isLastPair:!0,status:n},`pair-${f.user?.id??f.assistant?.id}`),x===m.length-1&&l.jsx(q,{})]})]})}),!y.isAtBottom&&l.jsx(B,{type:"button",variant:"outline",size:"icon-sm","aria-label":e("chat.chat.jumpToLatest"),className:"absolute left-1/2 z-50 -translate-x-1/2 shadow-soft animate-in fade-in duration-200 dark:bg-background dark:hover:bg-accent",style:{bottom:b+8},onClick:()=>{y.scrollToBottom()},children:l.jsx(se,{size:14})})]})})})}function Ze(e){const t=v.c(5),{children:n,className:s}=e;let r;t[0]!==s?(r=$("flex-none w-full mx-auto p-2 pt-0","max-w-2xl min-w-0",s),t[0]=s,t[1]=r):r=t[1];let a;return t[2]!==n||t[3]!==r?(a=l.jsx("div",{className:r,children:n}),t[2]=n,t[3]=r,t[4]=a):a=t[4],a}const ht=Object.assign(Ye,{Main:Ue,Messages:Xe,EmptyState:Ve,Footer:Ze,Input:xe,Provider:ie,StreamHost:re,ActiveTaskStreamSource:ae,ThreadlessStreamSource:ne,NoAiProviderEmptyState:$e,CreditsEmptyState:qe,CreditsEyebrow:Ge,NoCreditsEyebrow:We,CreditsExhaustedBanner:ge});export{ht as C,Me as u,pt as w};
|
|
1
|
+
import{c as v,a6 as z,K as Y,i as U,m as $,j as l,b as M,B,L as V,r as w,d as K,E as L,x as X,aW as Z,w as J,v as ee,D as te}from"./index-B8QWcTDF.js";import{n as se}from"./ArrowUp-D_S-rNcV.js";import{u as H,f as G,T as ne,A as ae,n as re,o as ie,b as oe,c as le,p as ce,q as ue,t as de,L as fe}from"./chat-context-DvLeIzFQ.js";import{T as me,c as ge,b as xe,d as pe,H as he}from"./input-CT96cDcm.js";import{u as je,a as ve,S as be,M as A}from"./pair-BM_IemBe.js";import{A as ye,f as W}from"./agent-icon-usffbRRI.js";import{j as Ne}from"./content-changes-D6umA6sC.js";import{a as Ce}from"./agent-capabilities-gnOhsa2o.js";import{a as we}from"./repository-binding-Cxtw7__X.js";import{c as Se,i as ke}from"./thread-intent-rSsi3kJm.js";import{a as Te}from"./use-panel-navigate-DomAZd7k.js";import{N as $e}from"./index-D3b-nvLF.js";import{i as Ee}from"./ArrowRight-CO7t3_mZ.js";import{c as De}from"./use-entitlements-CRw06zNb.js";import{u as Pe}from"./use-deco-credits-asWFZ8FZ.js";import{F as _e}from"./feature-paywall-Nyu1L44W.js";import{i as Ie}from"./AlertCircle-C5IcBKVv.js";const Oe=15e3;function Me(e,t,n){const s=v.c(20),r=n===void 0?{}:n,{org:a}=z(),i=we(e);let c;s[0]!==t||s[1]!==i?.metadata||s[2]!==e?(c=!!e&&!!t&&Ce(i?.metadata),s[0]=t,s[1]=i?.metadata,s[2]=e,s[3]=c):c=s[3];const u=c;let o;s[4]!==t||s[5]!==a.slug||s[6]!==e?(o=Y.chatDraftChanges(a.slug,e??"",t??""),s[4]=t,s[5]=a.slug,s[6]=e,s[7]=o):o=s[7];let d;s[8]!==t||s[9]!==a.slug||s[10]!==e?(d=()=>Ne(a.slug,e,t),s[8]=t,s[9]=a.slug,s[10]=e,s[11]=d):d=s[11];const p=r.poll===!1?!1:Oe;let g;s[12]!==u||s[13]!==o||s[14]!==d||s[15]!==p?(g={queryKey:o,queryFn:d,enabled:u,refetchInterval:p,retry:!1},s[12]=u,s[13]=o,s[14]=d,s[15]=p,s[16]=g):g=s[16];const{data:m}=U(g),f=m===void 0?0:m,x=u?i:null;let h;return s[17]!==f||s[18]!==x?(h={project:x,changeCount:f},s[17]=f,s[18]=x,s[19]=h):h=s[19],h}function Fe(){const e=v.c(7),t=H(),n=G(),s=t?.virtualMcpId??null,r=t?.currentBranch??null,{project:a,changeCount:i}=Me(s,r);if(!a||!s||!r||i===0)return null;const c=a.icon??null,u=!!n&&(n.isRunInProgress||n.status==="streaming"||n.status==="submitted");let o;return e[0]!==r||e[1]!==i||e[2]!==a.title||e[3]!==c||e[4]!==u||e[5]!==s?(o={virtualMcpId:s,projectTitle:a.title,projectIcon:c,branch:r,changeCount:i,editing:u},e[0]=r,e[1]=i,e[2]=a.title,e[3]=c,e[4]=u,e[5]=s,e[6]=o):o=e[6],o}function Re(e){const t=v.c(24),{icon:n,title:s,subtitle:r,status:a,detail:i,action:c,className:u}=e;let o;t[0]!==u?(o=$("rounded-xl border border-border bg-card p-3",u),t[0]=u,t[1]=o):o=t[1];let d;t[2]!==n?(d=l.jsx("div",{className:"shrink-0",children:n}),t[2]=n,t[3]=d):d=t[3];let p;t[4]!==s?(p=l.jsx("p",{className:"truncate text-sm font-medium text-foreground",children:s}),t[4]=s,t[5]=p):p=t[5];let g;t[6]!==r?(g=r&&l.jsx("p",{className:"truncate text-xs text-muted-foreground",children:r}),t[6]=r,t[7]=g):g=t[7];let m;t[8]!==p||t[9]!==g?(m=l.jsxs("div",{className:"min-w-0 flex-1",children:[p,g]}),t[8]=p,t[9]=g,t[10]=m):m=t[10];let f;t[11]!==a?(f=a&&l.jsx("span",{className:"flex shrink-0 items-center gap-1.5 text-sm text-muted-foreground",children:a}),t[11]=a,t[12]=f):f=t[12];let x;t[13]!==d||t[14]!==m||t[15]!==f?(x=l.jsxs("div",{className:"flex items-center gap-2.5",children:[d,m,f]}),t[13]=d,t[14]=m,t[15]=f,t[16]=x):x=t[16];let h;t[17]!==c||t[18]!==i?(h=(i||c)&&l.jsxs("div",{className:"mt-3 flex items-center justify-between gap-2",children:[l.jsx("span",{className:"text-sm text-muted-foreground",children:i}),c]}),t[17]=c,t[18]=i,t[19]=h):h=t[19];let b;return t[20]!==o||t[21]!==x||t[22]!==h?(b=l.jsxs("div",{className:o,children:[x,h]}),t[20]=o,t[21]=x,t[22]=h,t[23]=b):b=t[23],b}function ze(e){const t=v.c(10),{draft:n}=e,s=M(),r=n.editing?"animate-pulse bg-warning":"bg-success";let a;t[0]!==r?(a=$("size-1.5 rounded-full",r),t[0]=r,t[1]=a):a=t[1];let i;t[2]!==a?(i=l.jsx("span",{"aria-hidden":!0,className:a}),t[2]=a,t[3]=i):i=t[3];const c=n.editing?"chat.draft.editing":"chat.draft.ready";let u;t[4]!==s||t[5]!==c?(u=s(c),t[4]=s,t[5]=c,t[6]=u):u=t[6];let o;return t[7]!==i||t[8]!==u?(o=l.jsxs(l.Fragment,{children:[i,u]}),t[7]=i,t[8]=u,t[9]=o):o=t[9],o}function Be(e){const t=v.c(11),{draft:n}=e,s=M(),{org:r}=z(),a=H()?.taskId??null;let i;t[0]!==n.virtualMcpId||t[1]!==r.slug?(i={org:r.slug,agentId:n.virtualMcpId},t[0]=n.virtualMcpId,t[1]=r.slug,t[2]=i):i=t[2];let c;t[3]!==a?(c=a?{thread:a}:{},t[3]=a,t[4]=c):c=t[4];let u;t[5]!==s?(u=s("chat.draft.open"),t[5]=s,t[6]=u):u=t[6];let o;return t[7]!==i||t[8]!==c||t[9]!==u?(o=l.jsx(B,{variant:"outline",size:"sm",asChild:!0,children:l.jsx(V,{to:"/$org/projects/$agentId/site-editor",params:i,search:c,children:u})}),t[7]=i,t[8]=c,t[9]=u,t[10]=o):o=t[10],o}function q(){const e=v.c(20),t=M(),n=Fe();if(!n)return null;let s;e[0]!==n.projectIcon||e[1]!==n.projectTitle?(s=l.jsx(ye,{icon:n.projectIcon,name:n.projectTitle,size:"sm"}),e[0]=n.projectIcon,e[1]=n.projectTitle,e[2]=s):s=e[2];const r=n.projectTitle;let a;e[3]!==n.branch?(a=l.jsx("span",{className:"font-mono",children:n.branch}),e[3]=n.branch,e[4]=a):a=e[4];let i;e[5]!==n?(i=l.jsx(ze,{draft:n}),e[5]=n,e[6]=i):i=e[6];const c=n.changeCount===1?"chat.draft.change":"chat.draft.changes";let u;e[7]!==n.changeCount||e[8]!==t||e[9]!==c?(u=t(c,{count:n.changeCount}),e[7]=n.changeCount,e[8]=t,e[9]=c,e[10]=u):u=e[10];let o;e[11]!==n?(o=l.jsx(Be,{draft:n}),e[11]=n,e[12]=o):o=e[12];let d;return e[13]!==n.projectTitle||e[14]!==s||e[15]!==a||e[16]!==i||e[17]!==u||e[18]!==o?(d=l.jsx(Re,{className:"mx-2.5 mb-6",icon:s,title:r,subtitle:a,status:i,detail:u,action:o}),e[13]=n.projectTitle,e[14]=s,e[15]=a,e[16]=i,e[17]=u,e[18]=o,e[19]=d):d=e[19],d}function He(e){return e.parts.some(t=>t.type==="dynamic-tool"||t.type.startsWith("tool-"))}function Le(e){let t=0;for(const n of e)for(const s of n.parts??[]){const r=s;r.type==="tool-load_repo"&&r.state==="output-available"&&r.output?.success===!0&&t++}return t}function Ae(){const e=v.c(11),{openPanel:t}=Te(),n=Se(),s=G()?.messages??[],r=H(),a=r?.taskId??null,i=r?.currentBranch;let c;e[0]!==i?(c=ke(i),e[0]=i,e[1]=c):c=e[1];const u=c;let o;e[2]!==s?(o=Le(s),e[2]=s,e[3]=o):o=e[3];const d=o,p=w.useRef(null),g=w.useRef(null);let m,f;e[4]!==u||e[5]!==d||e[6]!==n||e[7]!==t||e[8]!==a?(m=()=>{if(!d||!a)return;const x=`${a}:${d}`;g.current!==x&&(g.current=x,n?.refreshThreadMetadata(a)),p.current!==a&&(p.current=a,u||t("site-editor"))},f=[d,a,t,n,u],e[4]=u,e[5]=d,e[6]=n,e[7]=t,e[8]=a,e[9]=m,e[10]=f):(m=e[9],f=e[10]),w.useEffect(m,f)}function Q(e){return`deco-credits-empty-dismissed:${e}`}function pt(e){try{return localStorage.getItem(Q(e))==="1"}catch{return!1}}function qe(){const e=v.c(56),t=M(),{org:n}=z(),s=De("credits"),r=K(),{decoKeyId:a}=Pe(),[i,c]=w.useState(!0);let u;e[0]!==n.id?(u=()=>{L("credits_empty_state_dismissed",{organization_id:n.id}),c(!1);try{localStorage.setItem(Q(n.id),"1")}catch{}},e[0]=n.id,e[1]=u):u=e[1];const o=u;let d,p;if(e[2]!==i||e[3]!==n.id?(d=()=>{i&&L("credits_empty_state_shown",{organization_id:n.id})},p=[i,n.id],e[2]=i,e[3]=n.id,e[4]=d,e[5]=p):(d=e[4],p=e[5]),w.useEffect(d,p),!i)return null;if(!s){let k;e[6]!==t?(k=t("chat.input.allowanceExhaustedTitle"),e[6]=t,e[7]=k):k=e[7];let O;e[8]!==k?(O={title:k},e[8]=k,e[9]=O):O=e[9];let R;return e[10]!==o||e[11]!==O?(R=l.jsx(_e,{feature:"chat",copy:O,onDismiss:o}),e[10]=o,e[11]=O,e[12]=R):R=e[12],R}let g;e[13]!==o?(g=k=>!k&&o(),e[13]=o,e[14]=g):g=e[14];let m;e[15]===Symbol.for("react.memo_cache_sentinel")?(m=l.jsx("div",{className:"absolute inset-x-0 top-0 h-24 bg-gradient-to-b from-warning/8 to-transparent pointer-events-none rounded-t-lg"}),e[15]=m):m=e[15];let f;e[16]===Symbol.for("react.memo_cache_sentinel")?(f=l.jsx("div",{className:"flex items-center justify-center size-11 rounded-full bg-warning/10 border border-warning/20 mx-auto",children:l.jsx(W,{size:20,className:"text-warning"})}),e[16]=f):f=e[16];let x;e[17]!==t?(x=t("chat.creditsEmptyState.title"),e[17]=t,e[18]=x):x=e[18];let h;e[19]!==x?(h=l.jsx(X,{className:"text-lg font-semibold",children:x}),e[19]=x,e[20]=h):h=e[20];let b;e[21]!==t?(b=t("chat.creditsEmptyState.description"),e[21]=t,e[22]=b):b=e[22];let N;e[23]!==b?(N=l.jsx(Z,{className:"mt-2 text-sm leading-relaxed max-w-[320px] mx-auto",children:b}),e[23]=b,e[24]=N):N=e[24];let C;e[25]!==h||e[26]!==N?(C=l.jsxs("div",{className:"relative px-6 pt-7 pb-5",children:[m,l.jsxs(J,{className:"relative gap-3",children:[f,l.jsxs("div",{className:"text-center",children:[h,N]})]})]}),e[25]=h,e[26]=N,e[27]=C):C=e[27];let y;e[28]!==a||e[29]!==o?(y=a&&l.jsx("div",{className:"px-6 pb-5",children:l.jsx(me,{source:"empty_state",onDone:o})}),e[28]=a,e[29]=o,e[30]=y):y=e[30];let S;e[31]!==o||e[32]!==r||e[33]!==n.slug?(S=()=>{r({to:"/$org/settings/ai-providers",params:{org:n.slug}}),o()},e[31]=o,e[32]=r,e[33]=n.slug,e[34]=S):S=e[34];let j;e[35]!==t?(j=t("chat.creditsEmptyState.useYourOwnProvider"),e[35]=t,e[36]=j):j=e[36];let T;e[37]===Symbol.for("react.memo_cache_sentinel")?(T=l.jsx(Ee,{size:12,className:"transition-transform duration-150 group-hover:translate-x-0.5"}),e[37]=T):T=e[37];let E;e[38]!==S||e[39]!==j?(E=l.jsxs("button",{type:"button",className:"group flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground transition-colors",onClick:S,children:[j,T]}),e[38]=S,e[39]=j,e[40]=E):E=e[40];let D;e[41]!==t?(D=t("chat.creditsEmptyState.skipForNow"),e[41]=t,e[42]=D):D=e[42];let P;e[43]!==o||e[44]!==D?(P=l.jsx(B,{variant:"ghost",size:"sm",className:"text-xs text-muted-foreground",onClick:o,children:D}),e[43]=o,e[44]=D,e[45]=P):P=e[45];let _;e[46]!==E||e[47]!==P?(_=l.jsxs("div",{className:"px-6 py-3.5 border-t border-border bg-muted/30 flex items-center justify-between",children:[E,P]}),e[46]=E,e[47]=P,e[48]=_):_=e[48];let I;e[49]!==C||e[50]!==y||e[51]!==_?(I=l.jsxs(ee,{className:"sm:max-w-[500px] gap-0 p-0 overflow-hidden",onOpenAutoFocus:Ke,children:[C,y,_]}),e[49]=C,e[50]=y,e[51]=_,e[52]=I):I=e[52];let F;return e[53]!==I||e[54]!==g?(F=l.jsx(te,{open:!0,onOpenChange:g,children:I}),e[53]=I,e[54]=g,e[55]=F):F=e[55],F}function Ke(e){return e.preventDefault()}function Ge(e){const t=v.c(6),{balanceDollars:n}=e;let s;t[0]!==n?(s=n.toFixed(2),t[0]=n,t[1]=s):s=t[1];const r=s;let a,i;t[2]===Symbol.for("react.memo_cache_sentinel")?(a=$("inline-flex items-center gap-1.5 px-3 py-1 rounded-full","bg-success/10 border border-success/20","animate-in fade-in-0 slide-in-from-bottom-2 duration-300"),i=l.jsx(W,{size:13,className:"text-success"}),t[2]=a,t[3]=i):(a=t[2],i=t[3]);let c;return t[4]!==r?(c=l.jsxs("div",{className:a,children:[i,l.jsxs("span",{className:"text-xs font-medium text-success tabular-nums",children:["$",r," in credits to get started"]})]}),t[4]=r,t[5]=c):c=t[5],c}function We(){const e=v.c(8),{org:t}=z(),n=K();let s;e[0]!==n||e[1]!==t.slug?(s=()=>n({to:"/$org/settings/ai-providers",params:{org:t.slug}}),e[0]=n,e[1]=t.slug,e[2]=s):s=e[2];let r,a,i;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=$("inline-flex items-center gap-1.5 px-3 py-1 rounded-lg cursor-pointer","bg-warning/10 border border-warning/20","hover:bg-warning/15","transition-colors duration-150","animate-in fade-in-0 slide-in-from-bottom-2 duration-300"),a=l.jsx(Ie,{size:13,className:"text-warning"}),i=l.jsx("span",{className:"text-xs font-medium text-warning",children:"No credits remaining · Add more"}),e[3]=r,e[4]=a,e[5]=i):(r=e[3],a=e[4],i=e[5]);let c;return e[6]!==s?(c=l.jsxs("button",{type:"button",onClick:s,className:r,children:[a,i]}),e[6]=s,e[7]=c):c=e[7],c}function Qe(e){const t=v.c(7),{scrollRef:n,sentinelRef:s,hasMoreOlder:r,isFetchingOlder:a,fetchOlderMessages:i}=e;let c,u;t[0]!==i||t[1]!==r||t[2]!==a||t[3]!==n||t[4]!==s?(c=()=>{const o=s.current,d=n.current;if(!o||!d||!r)return;const p=new IntersectionObserver(async g=>{if(!g[0]?.isIntersecting||a||!r)return;const f=d.scrollHeight,x=d.scrollTop;await i(),requestAnimationFrame(()=>{const h=d.scrollHeight;d.scrollTop=x+(h-f)})},{root:d,rootMargin:"200px 0px 0px 0px"});return p.observe(o),()=>p.disconnect()},u=[n,s,r,a,i],t[0]=i,t[1]=r,t[2]=a,t[3]=n,t[4]=s,t[5]=c,t[6]=u):(c=t[5],u=t[6]),w.useEffect(c,u)}function Ye(e){const t=v.c(5),{className:n,children:s}=e;let r;t[0]!==n?(r=$("flex flex-col h-full w-full bg-background transform-[translateZ(0)]",n),t[0]=n,t[1]=r):r=t[1];let a;return t[2]!==s||t[3]!==r?(a=l.jsx("div",{className:r,children:s}),t[2]=s,t[3]=r,t[4]=a):a=t[4],a}function Ue(e){const t=v.c(5),{children:n,className:s}=e;let r;t[0]!==s?(r=$("flex-1 min-h-0 overflow-y-auto isolate",s),t[0]=s,t[1]=r):r=t[1];let a;return t[2]!==n||t[3]!==r?(a=l.jsx("div",{className:r,children:n}),t[2]=n,t[3]=r,t[4]=a):a=t[4],a}function Ve(e){const t=v.c(2),{children:n}=e;let s;return t[0]!==n?(s=l.jsx("div",{className:"min-h-full shrink-0 w-full flex items-center justify-center max-w-2xl mx-auto py-10",children:n}),t[0]=n,t[1]=s):s=t[1],s}function Xe(){const e=M(),{messages:t,status:n,hasMoreOlder:s,isFetchingOlder:r,fetchOlderMessages:a,isRunInProgress:i}=oe(),{taskId:c}=le();Ae();const u=ce(c??""),o=ue(u),d=o.size===0?t:t.filter(j=>!o.has(j.id)),p=de(d,n==="submitted"||n==="streaming"||i),g=p.visible,m=je(g),f=m.at(-1),x=m.findIndex(j=>!!j.assistant&&He(j.assistant)),b=pe()*he+16,N=w.useRef(null),C=w.useRef(null);Qe({scrollRef:N,sentinelRef:C,hasMoreOlder:s,isFetchingOlder:r,fetchOlderMessages:a});const y=ve({initial:!1}),S=j=>{N.current=j,y.scrollRef(j)};return l.jsx(fe.Provider,{value:p,children:l.jsx(be,{messages:t,children:l.jsxs("div",{className:"relative h-full w-full min-w-0",children:[l.jsx("div",{ref:S,"data-chat-scroller":!0,className:"w-full min-w-0 max-w-full overflow-y-auto h-full [container-type:size]",style:{paddingBottom:b},children:l.jsxs("div",{ref:y.contentRef,className:"overflow-x-clip",children:[l.jsxs("div",{className:"flex flex-col min-w-0 max-w-2xl mx-auto w-full",children:[l.jsx("div",{ref:C,"aria-hidden":!0,className:"h-px"}),r&&l.jsx("div",{className:"flex items-center justify-center py-3 text-xs text-muted-foreground",children:e("chat.chat.loadingOlderMessages")}),m.slice(0,-1).map((j,T)=>l.jsxs(w.Fragment,{children:[l.jsx(A,{pair:j,isLastPair:!1,status:T===m.length-1?n:void 0}),T===x&&l.jsx(q,{})]},`pair-${j.user?.id??j.assistant?.id}`))]}),f&&l.jsxs("div",{className:"min-h-[100cqh] min-w-0 max-w-2xl mx-auto w-full",children:[l.jsx(A,{pair:f,isLastPair:!0,status:n},`pair-${f.user?.id??f.assistant?.id}`),x===m.length-1&&l.jsx(q,{})]})]})}),!y.isAtBottom&&l.jsx(B,{type:"button",variant:"outline",size:"icon-sm","aria-label":e("chat.chat.jumpToLatest"),className:"absolute left-1/2 z-50 -translate-x-1/2 shadow-soft animate-in fade-in duration-200 dark:bg-background dark:hover:bg-accent",style:{bottom:b+8},onClick:()=>{y.scrollToBottom()},children:l.jsx(se,{size:14})})]})})})}function Ze(e){const t=v.c(5),{children:n,className:s}=e;let r;t[0]!==s?(r=$("flex-none w-full mx-auto p-2 pt-0","max-w-2xl min-w-0",s),t[0]=s,t[1]=r):r=t[1];let a;return t[2]!==n||t[3]!==r?(a=l.jsx("div",{className:r,children:n}),t[2]=n,t[3]=r,t[4]=a):a=t[4],a}const ht=Object.assign(Ye,{Main:Ue,Messages:Xe,EmptyState:Ve,Footer:Ze,Input:xe,Provider:ie,StreamHost:re,ActiveTaskStreamSource:ae,ThreadlessStreamSource:ne,NoAiProviderEmptyState:$e,CreditsEmptyState:qe,CreditsEyebrow:Ge,NoCreditsEyebrow:We,CreditsExhaustedBanner:ge});export{ht as C,Me as u,pt as w};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as I,b as X,r as M,m as B,j as s,a6 as Re,e as nt,t as je,D as lt,v as ot,w as at,x as ct,y as dt,B as Fe,ax as ut,Y as ke,a7 as ft,E as H,X as mt,Z as ht,_ as pt,d as gt,aE as bt,l as Ye,H as xt,au as $e,L as Ge,$ as jt,aw as Ve,aF as vt,aG as yt,P as St}from"./index-DNEP98uE.js";import{u as Ie,c as Ze,g as wt,h as Ct,i as _t}from"./use-sidebar-collapsed-DG3NRMlg.js";import{S as kt,a as Ot,b as Rt}from"./sheet-CHMLXZw3.js";import{u as Et}from"./use-mobile-BirI-ACx.js";import{u as zt,a as Dt,D as Nt,c as Tt,C as Lt,P as Pt}from"./task-key-3woPhebb.js";import{S as At,v as Mt,u as $t}from"./sortable.esm-IpuZLFTJ.js";import{i as It}from"./Tool01-rzNtDuyc.js";import{t as Kt,u as Ft,v as Ut,w as Wt,A as Bt,x as Ue}from"./agent-icon-DzQTekjt.js";import{s as Ht}from"./Plus-CMkKmZUL.js";import{a as Xt}from"./UserSquare-tdzty-ZP.js";import{a as Yt}from"./UserCheck01-D-oZ1wVL.js";import{s as qe}from"./XClose-DMw8v31t.js";import{T as ge,a as be,c as xe}from"./tooltip-MMDYKMfe.js";import{C as Pe,f as Gt,g as Vt,e as Zt}from"./context-menu-DiN0zv18.js";import{a as qt,O as Je,w as Jt,b as Qt,c as es,E as ts,r as Oe,d as ss,e as rs,h as is,t as ns,f as Qe,m as ls,o as os}from"./use-org-notice-CamFMT18.js";import{C as as}from"./create-organization-dialog-BPYB1Ahd.js";import{P as cs}from"./project-apps-F0gCUaJn.js";import{u as ds,a as us}from"./use-recent-apps-Cbb6bcls.js";import{a as fs}from"./use-navigate-to-agent-Cf1Dm8Le.js";import{a as ms,u as hs}from"./use-project-scope-CVCBcvn8.js";import{C as We,a as ps,b as gs,c as bs,d as xs}from"./command-C9rwBG9w.js";import{u as js}from"./use-debounced-value-D_6vEHnU.js";import{n as vs}from"./BookOpen01-wKirkJO-.js";import{F as ys,a as Ae,b as Ss,c as et}from"./feedback-BqoIMOg7.js";import{T as ws}from"./textarea-1AY0B1hO.js";import{a as Cs}from"./thread-button-BGH6V5G2.js";function _s(t){const e=I.c(48),{open:i,onOpenChange:r,orgs:n,currentSlug:d,onSelect:l}=t,a=X(),[o,u]=M.useState("");let b;e[0]!==o?(b=o.trim(),e[0]=o,e[1]=b):b=e[1];const p=b,m=js(p,150),h=p.length>0,f=m===p,{hits:v,isSearching:j,isStale:C,isError:w}=qt(h?m:""),c=h?v:n;let x;e[2]!==r?(x=L=>{r(L),L||u("")},e[2]=r,e[3]=x):x=e[3];const g=x;let y;e[4]!==a?(y=a("sidebar.rail.searchOrganizations"),e[4]=a,e[5]=y):y=e[5];let S;e[6]!==a?(S=a("sidebar.rail.searchPlaceholder"),e[6]=a,e[7]=S):S=e[7];let k;e[8]!==a?(k=a("sidebar.rail.searchPlaceholder"),e[8]=a,e[9]=k):k=e[9];let _;e[10]!==o||e[11]!==k?(_=s.jsx(ps,{value:o,onValueChange:u,placeholder:k}),e[10]=o,e[11]=k,e[12]=_):_=e[12];const T=h&&(C||!f)&&"opacity-50";let E;e[13]!==T?(E=B(T),e[13]=T,e[14]=E):E=e[14];let O;e[15]!==w||e[16]!==h||e[17]!==a?(O=h&&w&&s.jsx(We,{children:a("sidebar.rail.searchFailed")}),e[15]=w,e[16]=h,e[17]=a,e[18]=O):O=e[18];let z;e[19]!==w||e[20]!==j||e[21]!==c.length||e[22]!==f||e[23]!==a?(z=!w&&f&&!j&&c.length===0&&s.jsx(We,{children:a("sidebar.rail.searchEmpty")}),e[19]=w,e[20]=j,e[21]=c.length,e[22]=f,e[23]=a,e[24]=z):z=e[24];let D;if(e[25]!==d||e[26]!==l||e[27]!==g||e[28]!==c||e[29]!==a){let L;e[31]!==d||e[32]!==l||e[33]!==g||e[34]!==a?(L=P=>s.jsxs(gs,{value:P.slug,onSelect:()=>{g(!1),P.slug!==d&&l(P.slug)},className:"gap-2.5",children:[s.jsx(Je,{org:P,size:"sm"}),s.jsx("span",{className:"min-w-0 flex-1 truncate",children:P.name}),P.slug===d&&s.jsx("span",{className:"text-meta shrink-0",children:a("sidebar.rail.currentOrganization")})]},P.id),e[31]=d,e[32]=l,e[33]=g,e[34]=a,e[35]=L):L=e[35],D=c.map(L),e[25]=d,e[26]=l,e[27]=g,e[28]=c,e[29]=a,e[30]=D}else D=e[30];let R;e[36]!==z||e[37]!==D||e[38]!==E||e[39]!==O?(R=s.jsxs(bs,{className:E,children:[O,z,D]}),e[36]=z,e[37]=D,e[38]=E,e[39]=O,e[40]=R):R=e[40];let A;return e[41]!==i||e[42]!==g||e[43]!==R||e[44]!==y||e[45]!==S||e[46]!==_?(A=s.jsxs(xs,{open:i,onOpenChange:g,title:y,description:S,shouldFilter:!1,children:[_,R]}),e[41]=i,e[42]=g,e[43]=R,e[44]=y,e[45]=S,e[46]=_,e[47]=A):A=e[47],A}function ks(t){const e=I.c(4),{size:i,className:r}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx("path",{d:"M20.317 4.37a19.79 19.79 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.865-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.74 19.74 0 0 0 3.677 4.37a.07.07 0 0 0-.032.028C.533 9.046-.32 13.58.099 18.058a.082.082 0 0 0 .031.056 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028c.462-.63.874-1.295 1.226-1.994a.076.076 0 0 0-.042-.106 13.1 13.1 0 0 1-1.872-.892.077.077 0 0 1-.008-.128c.126-.094.252-.192.372-.291a.074.074 0 0 1 .078-.01c3.927 1.793 8.18 1.793 12.061 0a.074.074 0 0 1 .079.009c.12.099.246.198.373.292a.077.077 0 0 1-.007.128 12.3 12.3 0 0 1-1.873.891.077.077 0 0 0-.041.107c.36.698.772 1.363 1.225 1.993a.076.076 0 0 0 .084.029 19.84 19.84 0 0 0 6.002-3.03.077.077 0 0 0 .032-.055c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.029ZM8.02 15.331c-1.183 0-2.157-1.086-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.095 2.157 2.42 0 1.332-.956 2.418-2.157 2.418Zm7.975 0c-1.183 0-2.157-1.086-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.095 2.157 2.42 0 1.332-.946 2.418-2.157 2.418Z"}),e[0]=n):n=e[0];let d;return e[1]!==r||e[2]!==i?(d=s.jsx("svg",{width:i,height:i,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",className:r,children:n}),e[1]=r,e[2]=i,e[3]=d):d=e[3],d}const Os=250;function Rs(){return typeof navigator<"u"&&!!navigator.mediaDevices?.getDisplayMedia}function Be(t,e,i){return new Promise(r=>t.toBlob(r,e,i))}async function Es(){const t=await navigator.mediaDevices.getDisplayMedia({video:{displaySurface:"browser"},audio:!1,preferCurrentTab:!0,selfBrowserSurface:"include"});try{const e=document.createElement("video");e.muted=!0,e.srcObject=t,await e.play(),await new Promise(d=>setTimeout(d,Os));const i=document.createElement("canvas");i.width=e.videoWidth,i.height=e.videoHeight,i.getContext("2d")?.drawImage(e,0,0),e.srcObject=null;let r=await Be(i,"image/png");if((!r||r.size>et)&&(r=await Be(i,"image/jpeg",.85)),!r)throw new Error("Could not encode the screenshot");const n=r.type==="image/png"?"png":"jpg";return new File([r],`screenshot.${n}`,{type:r.type})}finally{for(const e of t.getTracks())e.stop()}}function He({kind:t,open:e,onOpenChange:i}){const r=X(),n=t==="problem"?{title:r("sidebar.problem.title"),placeholder:r("sidebar.problem.placeholder"),sent:r("sidebar.problem.sent"),failed:r("sidebar.problem.failed")}:{title:r("sidebar.feedback.title"),placeholder:r("sidebar.feedback.placeholder"),sent:r("sidebar.feedback.sent"),failed:r("sidebar.feedback.failed")},{org:d}=Re(),[l,a]=M.useState(""),[o,u]=M.useState([]),[b,p]=M.useState(!1),m=()=>{for(const c of o)URL.revokeObjectURL(c.previewUrl);u([]),a("")},h=c=>{const x=c.filter(S=>Ss.includes(S.type)?S.size>et?(je.error(r("sidebar.feedback.screenshotTooLarge")),!1):!0:!1),g=Ae-o.length;x.length>g&&je.error(r("sidebar.feedback.tooManyScreenshots",{max:String(Ae)}));const y=x.slice(0,Math.max(g,0)).map(S=>({file:S,previewUrl:URL.createObjectURL(S)}));y.length>0&&u(S=>[...S,...y])},f=c=>{URL.revokeObjectURL(c.previewUrl),u(x=>x.filter(g=>g!==c))},v=async()=>{p(!0);try{h([await Es()])}catch(c){c instanceof DOMException&&c.name==="NotAllowedError"||(console.error("[feedback] screenshot failed",c),je.error(r("sidebar.feedback.screenshotFailed")))}finally{p(!1)}},j=c=>{const x=Array.from(c.clipboardData.files).filter(g=>g.type.startsWith("image/"));x.length!==0&&(c.preventDefault(),h(x))},C=nt({mutationFn:async()=>{const c=new FormData;c.set("kind",t),c.set("message",l.trim()),c.set("pageUrl",window.location.href);for(const g of o)c.append("screenshot",g.file);const x=await fetch(`/api/${encodeURIComponent(d.slug)}/feedback`,{method:"POST",body:c});if(!x.ok)throw new Error(`Feedback failed: ${x.status}`)},onSuccess:()=>{je.success(n.sent),m(),i(!1)},onError:()=>je.error(n.failed)}),w=l.trim().length>0&&!C.isPending;return s.jsx(lt,{open:e&&!b,onOpenChange:i,children:s.jsxs(ot,{className:"sm:max-w-lg","aria-describedby":void 0,children:[s.jsx(at,{children:s.jsx(ct,{children:n.title})}),s.jsx(ws,{autoFocus:!0,value:l,onChange:c=>a(c.target.value),onPaste:j,onKeyDown:c=>{c.key==="Enter"&&(c.metaKey||c.ctrlKey)&&(c.preventDefault(),w&&C.mutate())},placeholder:n.placeholder,className:"min-h-32 max-h-80",maxLength:ys}),o.length>0&&s.jsx("div",{className:"flex flex-wrap gap-2",children:o.map((c,x)=>s.jsxs("div",{className:"group relative size-20 overflow-hidden rounded-lg shadow-edge",children:[s.jsx("a",{href:c.previewUrl,target:"_blank",rel:"noreferrer",children:s.jsx("img",{src:c.previewUrl,alt:r("sidebar.feedback.screenshotAlt",{n:String(x+1)}),className:"size-full object-cover"})}),s.jsx("button",{type:"button",onClick:()=>f(c),"aria-label":r("sidebar.feedback.removeScreenshot"),className:"absolute top-1 right-1 flex size-5 items-center justify-center rounded-full bg-background/90 text-foreground opacity-0 shadow-edge transition-opacity group-hover:opacity-100 focus-visible:opacity-100",children:s.jsx(qe,{size:12})})]},c.previewUrl))}),s.jsxs(dt,{className:"sm:justify-between",children:[Rs()?s.jsxs(Fe,{type:"button",variant:"outline",onClick:v,disabled:o.length>=Ae,children:[s.jsx(Kt,{size:14}),r("sidebar.feedback.takeScreenshot")]}):s.jsx("span",{}),s.jsx(Fe,{type:"button",onClick:()=>C.mutate(),disabled:!w,children:C.isPending?r("sidebar.feedback.sending"):r("sidebar.feedback.send")})]})]})})}function ve(t){const e=I.c(11),{active:i,label:r,children:n}=t,d=i?"h-7 opacity-100":"h-2 opacity-0 group-hover/rail:opacity-60";let l;e[0]!==d?(l=B("w-1 rounded-r-full bg-foreground","transition-[height,opacity] duration-200 ease-[var(--ease-out-cubic)]","motion-reduce:transition-none",d),e[0]=d,e[1]=l):l=e[1];let a;e[2]!==l?(a=s.jsx("span",{"aria-hidden":!0,className:"absolute top-0 -left-2.5 flex h-9 items-center",children:s.jsx("span",{className:l})}),e[2]=l,e[3]=a):a=e[3];let o;e[4]!==i||e[5]!==r?(o=r&&s.jsx("span",{"aria-hidden":!0,className:B("line-clamp-2 w-full px-0.5 text-center text-2xs text-ellipsis transition-colors",i?"font-medium text-sidebar-foreground":"text-muted-foreground group-hover/rail:text-sidebar-foreground"),children:r}),e[4]=i,e[5]=r,e[6]=o):o=e[6];let u;return e[7]!==n||e[8]!==a||e[9]!==o?(u=s.jsxs("div",{className:"group/rail relative flex w-full shrink-0 flex-col items-center gap-1",children:[a,n,o]}),e[7]=n,e[8]=a,e[9]=o,e[10]=u):u=e[10],u}const zs="https://docs.decocms.com/",Ds="https://discord.gg/EQkX7CymV";function Ns(){const t=I.c(39),e=X(),{org:i}=Re(),[r,n]=M.useState(null),d=!!i.id;let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=_=>{H("help_menu_dialog_opened",{kind:_}),n(_)},t[0]=l):l=t[0];const a=l;let o;t[1]!==e?(o=e("sidebar.help.button"),t[1]=e,t[2]=o):o=t[2];let u;t[3]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx(Ut,{size:18}),t[3]=u):u=t[3];let b;t[4]!==o?(b=s.jsx(ge,{asChild:!0,children:s.jsx(mt,{asChild:!0,children:s.jsx("button",{type:"button","aria-label":o,onClick:Ps,className:"flex size-9 shrink-0 cursor-pointer items-center justify-center rounded-full text-muted-foreground transition-colors hover:bg-sidebar-accent hover:text-foreground focus-ring data-[state=open]:bg-sidebar-accent data-[state=open]:text-foreground",children:u})})}),t[4]=o,t[5]=b):b=t[5];let p;t[6]!==e?(p=e("sidebar.help.button"),t[6]=e,t[7]=p):p=t[7];let m;t[8]!==p?(m=s.jsx(be,{side:"right",children:p}),t[8]=p,t[9]=m):m=t[9];let h;t[10]!==b||t[11]!==m?(h=s.jsxs(xe,{children:[b,m]}),t[10]=b,t[11]=m,t[12]=h):h=t[12];let f;t[13]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(vs,{}),t[13]=f):f=t[13];let v;t[14]!==e?(v=e("sidebar.help.guides"),t[14]=e,t[15]=v):v=t[15];let j;t[16]!==v?(j=s.jsx(ke,{asChild:!0,children:s.jsxs("a",{href:zs,target:"_blank",rel:"noopener noreferrer",onClick:Ls,children:[f,v]})}),t[16]=v,t[17]=j):j=t[17];let C;t[18]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(ks,{}),t[18]=C):C=t[18];let w;t[19]!==e?(w=e("sidebar.help.discord"),t[19]=e,t[20]=w):w=t[20];let c;t[21]!==w?(c=s.jsx(ke,{asChild:!0,children:s.jsxs("a",{href:Ds,target:"_blank",rel:"noopener noreferrer",onClick:Ts,children:[C,w]})}),t[21]=w,t[22]=c):c=t[22];let x;t[23]!==d||t[24]!==e?(x=d&&s.jsxs(s.Fragment,{children:[s.jsx(ut,{}),s.jsxs(ke,{onSelect:()=>a("problem"),children:[s.jsx(ft,{}),e("sidebar.help.reportProblem")]}),s.jsxs(ke,{onSelect:()=>a("feedback"),children:[s.jsx(Ft,{}),e("sidebar.feedback.button")]})]}),t[23]=d,t[24]=e,t[25]=x):x=t[25];let g;t[26]!==c||t[27]!==x||t[28]!==j?(g=s.jsxs(ht,{side:"right",align:"end",className:"w-56",children:[j,c,x]}),t[26]=c,t[27]=x,t[28]=j,t[29]=g):g=t[29];let y;t[30]!==g||t[31]!==h?(y=s.jsx(ve,{active:!1,children:s.jsxs(pt,{children:[h,g]})}),t[30]=g,t[31]=h,t[32]=y):y=t[32];let S;t[33]!==d||t[34]!==r?(S=d&&s.jsxs(s.Fragment,{children:[s.jsx(He,{kind:"problem",open:r==="problem",onOpenChange:_=>n(_?"problem":null)}),s.jsx(He,{kind:"feedback",open:r==="feedback",onOpenChange:_=>n(_?"feedback":null)})]}),t[33]=d,t[34]=r,t[35]=S):S=t[35];let k;return t[36]!==y||t[37]!==S?(k=s.jsxs(s.Fragment,{children:[y,S]}),t[36]=y,t[37]=S,t[38]=k):k=t[38],k}function Ts(){return H("help_menu_discord_opened")}function Ls(){return H("help_menu_guides_opened")}function Ps(){return H("help_menu_opened")}function As(t){return globalThis.addEventListener("resize",t),()=>globalThis.removeEventListener("resize",t)}const Ms=()=>Qe(globalThis.innerHeight),$s=()=>Qe(0);function Is(t){const e=I.c(59),{org:i,active:r,onSelect:n,pinned:d,onOpenSettings:l,onTogglePin:a,onHide:o}=t,u=X();let b;e[0]!==i.slug?(b={id:i.slug},e[0]=i.slug,e[1]=b):b=e[1];const{setNodeRef:p,listeners:m,transform:h,transition:f,isDragging:v}=$t(b);let j;e[2]!==h?(j=Lt.Transform.toString(h?{...h,x:0}:null),e[2]=h,e[3]=j):j=e[3];const C=v?1:void 0,w=`rail-org-${i.slug}`;let c;e[4]!==j||e[5]!==C||e[6]!==w||e[7]!==f?(c={transform:j,transition:f,zIndex:C,viewTransitionName:w},e[4]=j,e[5]=C,e[6]=w,e[7]=f,e[8]=c):c=e[8];const x=i.name,g=r||void 0,y=r?"opacity-100":"opacity-60 hover:scale-105 hover:opacity-100",S=n&&"cursor-pointer";let k;e[9]!==y||e[10]!==S?(k=B("relative flex shrink-0 items-center justify-center rounded-xl focus-ring","transition-[opacity,transform] duration-150 ease-out",y,S),e[9]=y,e[10]=S,e[11]=k):k=e[11];let _;e[12]!==i?(_=s.jsx(Je,{org:i,size:"lg"}),e[12]=i,e[13]=_):_=e[13];let T;e[14]!==d?(T=d&&s.jsx("span",{"aria-hidden":!0,className:"absolute -top-1 -right-1 flex size-4 items-center justify-center rounded-full bg-sidebar-accent text-muted-foreground ring-2 ring-sidebar",children:s.jsx(Ue,{size:9})}),e[14]=d,e[15]=T):T=e[15];let E;e[16]!==n||e[17]!==i.name||e[18]!==k||e[19]!==_||e[20]!==T||e[21]!==g?(E=s.jsx(ge,{asChild:!0,children:s.jsx(Gt,{asChild:!0,children:s.jsxs("button",{type:"button","aria-label":x,"aria-current":g,onClick:n,className:k,children:[_,T]})})}),e[16]=n,e[17]=i.name,e[18]=k,e[19]=_,e[20]=T,e[21]=g,e[22]=E):E=e[22];let O;e[23]!==i.name?(O=s.jsx(be,{side:"right",children:i.name}),e[23]=i.name,e[24]=O):O=e[24];let z;e[25]!==E||e[26]!==O?(z=s.jsxs(xe,{children:[E,O]}),e[25]=E,e[26]=O,e[27]=z):z=e[27];let D;e[28]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx(Yt,{}),e[28]=D):D=e[28];let R;e[29]!==u?(R=u("sidebar.rail.organizationSettings"),e[29]=u,e[30]=R):R=e[30];let A;e[31]!==l||e[32]!==R?(A=s.jsxs(Pe,{onSelect:l,children:[D,R]}),e[31]=l,e[32]=R,e[33]=A):A=e[33];let L;e[34]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx(Ue,{}),e[34]=L):L=e[34];let P;e[35]!==d||e[36]!==u?(P=u(d?"sidebar.rail.unpinOrganization":"sidebar.rail.pinOrganization"),e[35]=d,e[36]=u,e[37]=P):P=e[37];let F;e[38]!==a||e[39]!==P?(F=s.jsxs(Pe,{onSelect:a,children:[L,P]}),e[38]=a,e[39]=P,e[40]=F):F=e[40];let U;e[41]!==o||e[42]!==u?(U=o&&s.jsxs(Pe,{onSelect:o,children:[s.jsx(It,{}),u("sidebar.rail.hideOrganization")]}),e[41]=o,e[42]=u,e[43]=U):U=e[43];let Y;e[44]!==A||e[45]!==F||e[46]!==U?(Y=s.jsxs(Vt,{children:[A,F,U]}),e[44]=A,e[45]=F,e[46]=U,e[47]=Y):Y=e[47];let K;e[48]!==z||e[49]!==Y?(K=s.jsxs(Zt,{children:[z,Y]}),e[48]=z,e[49]=Y,e[50]=K):K=e[50];let W;e[51]!==r||e[52]!==K?(W=s.jsx(ve,{active:r,children:K}),e[51]=r,e[52]=K,e[53]=W):W=e[53];let G;return e[54]!==m||e[55]!==p||e[56]!==W||e[57]!==c?(G=s.jsx("div",{ref:p,...m,style:c,className:"w-full shrink-0 touch-none",children:W}),e[54]=m,e[55]=p,e[56]=W,e[57]=c,e[58]=G):G=e[58],G}function Ks(t){const e=I.c(64),{project:i,orgSlug:r,active:n,onClose:d,onNavigate:l}=t,a=X();let o,u,b,p,m,h,f,v,j,C,w;if(e[0]!==n||e[1]!==l||e[2]!==r||e[3]!==i.icon||e[4]!==i.id||e[5]!==i.title){const L=Wt(i.icon,i.title);w="group/rail relative flex w-full flex-col items-center gap-1",b=xe,u=ge,C=!0,o=Ge,p=jt.root,e[17]!==r||e[18]!==i.id?(m={org:r,agentId:i.id},e[17]=r,e[18]=i.id,e[19]=m):m=e[19],h=i.title,f=n||void 0,e[20]!==l?(v=()=>{H("org_rail_recent_project_opened"),l?.()},e[20]=l,e[21]=v):v=e[21],j=B("flex shrink-0 rounded-lg focus-ring",L.text,n&&"ring-[1.5px] ring-current"),e[0]=n,e[1]=l,e[2]=r,e[3]=i.icon,e[4]=i.id,e[5]=i.title,e[6]=o,e[7]=u,e[8]=b,e[9]=p,e[10]=m,e[11]=h,e[12]=f,e[13]=v,e[14]=j,e[15]=C,e[16]=w}else o=e[6],u=e[7],b=e[8],p=e[9],m=e[10],h=e[11],f=e[12],v=e[13],j=e[14],C=e[15],w=e[16];let c;e[22]!==i.icon||e[23]!==i.title?(c=s.jsx(Bt,{icon:i.icon,name:i.title,size:"sm",className:"size-8 rounded-lg"}),e[22]=i.icon,e[23]=i.title,e[24]=c):c=e[24];let x;e[25]!==o||e[26]!==p||e[27]!==m||e[28]!==h||e[29]!==f||e[30]!==v||e[31]!==j||e[32]!==c?(x=s.jsx(o,{to:p,params:m,"aria-label":h,"aria-current":f,onClick:v,className:j,children:c}),e[25]=o,e[26]=p,e[27]=m,e[28]=h,e[29]=f,e[30]=v,e[31]=j,e[32]=c,e[33]=x):x=e[33];let g;e[34]!==u||e[35]!==x||e[36]!==C?(g=s.jsx(u,{asChild:C,children:x}),e[34]=u,e[35]=x,e[36]=C,e[37]=g):g=e[37];let y;e[38]!==i.title?(y=s.jsx(be,{side:"right",children:i.title}),e[38]=i.title,e[39]=y):y=e[39];let S;e[40]!==b||e[41]!==g||e[42]!==y?(S=s.jsxs(b,{children:[g,y]}),e[40]=b,e[41]=g,e[42]=y,e[43]=S):S=e[43];const k=n?"font-medium text-sidebar-foreground":"text-muted-foreground group-hover/rail:text-sidebar-foreground";let _;e[44]!==k?(_=B("line-clamp-2 w-full text-center text-2xs break-words transition-colors",k),e[44]=k,e[45]=_):_=e[45];let T;e[46]!==i.title||e[47]!==_?(T=s.jsx("span",{"aria-hidden":!0,className:_,children:i.title}),e[46]=i.title,e[47]=_,e[48]=T):T=e[48];let E;e[49]!==i.title||e[50]!==a?(E=a("sidebar.rail.closeApp",{name:i.title}),e[49]=i.title,e[50]=a,e[51]=E):E=e[51];let O;e[52]!==d?(O=()=>{H("org_rail_recent_project_closed"),d()},e[52]=d,e[53]=O):O=e[53];let z,D;e[54]===Symbol.for("react.memo_cache_sentinel")?(z=B("absolute -top-1.5 right-[calc(50%-1.25rem)] flex size-4 cursor-pointer items-center justify-center rounded-full","bg-sidebar-accent text-muted-foreground ring-2 ring-sidebar hover:text-foreground","opacity-0 transition-opacity duration-150 group-hover/rail:opacity-100 focus-visible:opacity-100 focus-visible:outline-none"),D=s.jsx(qe,{size:10}),e[54]=z,e[55]=D):(z=e[54],D=e[55]);let R;e[56]!==E||e[57]!==O?(R=s.jsx("button",{type:"button","aria-label":E,onClick:O,className:z,children:D}),e[56]=E,e[57]=O,e[58]=R):R=e[58];let A;return e[59]!==S||e[60]!==T||e[61]!==R||e[62]!==w?(A=s.jsxs("div",{className:w,children:[S,T,R]}),e[59]=S,e[60]=T,e[61]=R,e[62]=w,e[63]=A):A=e[63],A}const Fs={"site-editor":"/site-editor"};function Us(t){const e=I.c(26),{app:i}=t,r=X(),n=cs[i],d=Fs[i];if(!n||!d)return null;let l;e[0]!==n.labelKey||e[1]!==r?(l=r(n.labelKey),e[0]=n.labelKey,e[1]=r,e[2]=l):l=e[2];let a;e[3]!==n.labelKey||e[4]!==r?(a=r(n.labelKey),e[3]=n.labelKey,e[4]=r,e[5]=a):a=e[5];let o;e[6]!==n.tone?(o=B("flex size-9 shrink-0 items-center justify-center rounded-xl focus-ring opacity-100",n.tone),e[6]=n.tone,e[7]=o):o=e[7];let u;e[8]!==n.Icon?(u=s.jsx(n.Icon,{size:18}),e[8]=n.Icon,e[9]=u):u=e[9];let b;e[10]!==a||e[11]!==o||e[12]!==u||e[13]!==d?(b=s.jsx(ge,{asChild:!0,children:s.jsx(Ge,{to:d,"aria-label":a,"aria-current":"page","data-testid":"org-rail-local-app",className:o,children:u})}),e[10]=a,e[11]=o,e[12]=u,e[13]=d,e[14]=b):b=e[14];let p;e[15]!==n.labelKey||e[16]!==r?(p=r(n.labelKey),e[15]=n.labelKey,e[16]=r,e[17]=p):p=e[17];let m;e[18]!==p?(m=s.jsx(be,{side:"right",children:p}),e[18]=p,e[19]=m):m=e[19];let h;e[20]!==b||e[21]!==m?(h=s.jsxs(xe,{children:[b,m]}),e[20]=b,e[21]=m,e[22]=h):h=e[22];let f;return e[23]!==l||e[24]!==h?(f=s.jsx(ve,{active:!0,label:l,children:h}),e[23]=l,e[24]=h,e[25]=f):f=e[25],f}function Ws(){const{org:t}=Re();return ds(t.slug),null}function tt(t){const e=I.c(77),{onNavigate:i}=t===void 0?{}:t,r=X(),n=gt(),{org:d}=Re(),l=bt();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={select:Ys},e[0]=a):a=e[0];const o=Ye(a);let u;e[1]!==o||e[2]!==l?(u=o?l({to:"/$org",fuzzy:!0,pending:!0}):!1,e[1]=o,e[2]=l,e[3]=u):u=e[3];const b=u,p=b?b.org:d.slug,{data:m}=xt(),[h,f]=M.useState(!1),[v,j]=M.useState(!1),C=Ie(),{recent:w,forget:c}=fs(d.slug),{projects:x}=ms(),g=hs(),y=us(),S=y&&y.projectId===null?y.app:null,k=S?[]:w.flatMap(N=>x.filter($=>$.id===N)),_=Jt(m??[],d),{recent:T}=Qt(),E=es();let O;e[4]===Symbol.for("react.memo_cache_sentinel")?(O=Ve.railOrgPrefs(),e[4]=O):O=e[4];const[z,D]=$e(O,ts),R=Oe(z),A=M.useSyncExternalStore(As,Ms,$s),{shown:L}=ss(rs(_,R,d.slug),T,d.slug,A,R.pinned);let P;e[5]===Symbol.for("react.memo_cache_sentinel")?(P={activationConstraint:{distance:8}},e[5]=P):P=e[5];const F=zt(Dt(Pt,P)),U=N=>{const{active:$,over:Ke}=N;Ke&&(H("org_rail_reordered"),D(it=>ls(Oe(it),L.map(Xs),String($.id),String(Ke.id))))},Y=N=>{i?.(),n({to:"/$org/home",params:{org:N},viewTransition:!0})},K=N=>{H("org_rail_travel"),i?.(),E(N,L.map(Hs))},W=()=>{if(H("org_rail_search_opened"),!d.id){j(!0);return}i?.(),os()},G=!C&&"border-r border-sidebar-border";let V;e[6]!==G?(V=B("flex w-[68px] shrink-0 flex-col bg-sidebar",G),e[6]=G,e[7]=V):V=e[7];const rt="flex min-h-0 flex-1 flex-col items-center gap-2.5 overflow-y-auto px-2.5 pt-3 pb-2 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden";let Z;e[8]!==r?(Z=r("sidebar.rail.ariaLabel"),e[8]=r,e[9]=Z):Z=e[9];const Ee=Nt,ze=Tt,De=At,Ne=L.map(Bs),Te=Mt,Le=L.map(N=>s.jsxs(M.Fragment,{children:[s.jsx(Is,{org:N,active:N.slug===p,pinned:R.pinned.includes(N.slug),onSelect:N.slug!==d.slug?()=>K(N.slug):g?()=>Y(N.slug):void 0,onOpenSettings:()=>{i?.(),n({to:"/$org/settings",params:{org:N.slug},search:{thread:void 0}})},onTogglePin:()=>D($=>ns(Oe($),N.slug)),onHide:N.slug===d.slug?void 0:()=>D($=>is(Oe($),N.slug))}),N.slug===d.slug&&k.length>0&&s.jsx("div",{style:{viewTransitionName:"rail-projects"},className:"-mx-1.5 flex w-[calc(100%+0.75rem)] flex-col items-center gap-3 rounded-[12px] bg-foreground/4 px-1 py-3",children:k.map($=>s.jsx(Ks,{project:$,orgSlug:d.slug,active:g===$.id,onClose:()=>c($.id),onNavigate:i},$.id))})]},N.id));let q;e[10]!==De||e[11]!==Ne||e[12]!==Te||e[13]!==Le?(q=s.jsx(De,{items:Ne,strategy:Te,children:Le}),e[10]=De,e[11]=Ne,e[12]=Te,e[13]=Le,e[14]=q):q=e[14];let J;e[15]!==Ee||e[16]!==U||e[17]!==F||e[18]!==ze||e[19]!==q?(J=s.jsx(Ee,{sensors:F,collisionDetection:ze,onDragEnd:U,children:q}),e[15]=Ee,e[16]=U,e[17]=F,e[18]=ze,e[19]=q,e[20]=J):J=e[20];let Q;e[21]!==S?(Q=S&&s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"my-2 h-px w-6 shrink-0 bg-sidebar-border","aria-hidden":!0}),s.jsx(Us,{app:S})]}),e[21]=S,e[22]=Q):Q=e[22];let ee;e[23]!==J||e[24]!==Q||e[25]!==Z?(ee=s.jsxs("div",{className:rt,"aria-label":Z,children:[J,Q]}),e[23]=J,e[24]=Q,e[25]=Z,e[26]=ee):ee=e[26];let te;e[27]!==r?(te=r("sidebar.rail.search"),e[27]=r,e[28]=te):te=e[28];let ye;e[29]===Symbol.for("react.memo_cache_sentinel")?(ye=s.jsx(Xt,{size:18}),e[29]=ye):ye=e[29];let se;e[30]!==W||e[31]!==te?(se=s.jsx(ge,{asChild:!0,children:s.jsx("button",{type:"button","aria-label":te,"aria-keyshortcuts":"Meta+K Control+K",onClick:W,className:"flex size-9 shrink-0 cursor-pointer items-center justify-center rounded-full text-muted-foreground transition-colors hover:bg-sidebar-accent hover:text-foreground focus-ring",children:ye})}),e[30]=W,e[31]=te,e[32]=se):se=e[32];let re;e[33]!==r?(re=r("sidebar.rail.search"),e[33]=r,e[34]=re):re=e[34];let Se;e[35]===Symbol.for("react.memo_cache_sentinel")?(Se=s.jsx("span",{className:"ml-2 text-muted-foreground",children:vt.commandPalette.keys.join("")}),e[35]=Se):Se=e[35];let ie;e[36]!==re?(ie=s.jsxs(be,{side:"right",children:[re,Se]}),e[36]=re,e[37]=ie):ie=e[37];let ne;e[38]!==se||e[39]!==ie?(ne=s.jsx(ve,{active:!1,children:s.jsxs(xe,{children:[se,ie]})}),e[38]=se,e[39]=ie,e[40]=ne):ne=e[40];let le;e[41]!==r?(le=r("sidebar.picker.newOrganization"),e[41]=r,e[42]=le):le=e[42];let oe;e[43]!==f?(oe=()=>f(!0),e[43]=f,e[44]=oe):oe=e[44];let we;e[45]===Symbol.for("react.memo_cache_sentinel")?(we=s.jsx(Ht,{size:18}),e[45]=we):we=e[45];let ae;e[46]!==le||e[47]!==oe?(ae=s.jsx(ge,{asChild:!0,children:s.jsx("button",{type:"button","aria-label":le,onClick:oe,className:"flex size-9 shrink-0 cursor-pointer items-center justify-center rounded-full text-muted-foreground transition-colors hover:bg-sidebar-accent hover:text-foreground focus-ring",children:we})}),e[46]=le,e[47]=oe,e[48]=ae):ae=e[48];let ce;e[49]!==r?(ce=r("sidebar.picker.newOrganization"),e[49]=r,e[50]=ce):ce=e[50];let de;e[51]!==ce?(de=s.jsx(be,{side:"right",children:ce}),e[51]=ce,e[52]=de):de=e[52];let ue;e[53]!==ae||e[54]!==de?(ue=s.jsx(ve,{active:!1,children:s.jsxs(xe,{children:[ae,de]})}),e[53]=ae,e[54]=de,e[55]=ue):ue=e[55];let Ce;e[56]===Symbol.for("react.memo_cache_sentinel")?(Ce=s.jsx(Ns,{}),e[56]=Ce):Ce=e[56];let fe;e[57]!==ne||e[58]!==ue?(fe=s.jsxs("div",{className:"flex shrink-0 flex-col items-center gap-1 px-2.5 pt-2 pb-3",children:[ne,ue,Ce]}),e[57]=ne,e[58]=ue,e[59]=fe):fe=e[59];let me;e[60]!==ee||e[61]!==fe||e[62]!==V?(me=s.jsxs("div",{className:V,children:[ee,fe]}),e[60]=ee,e[61]=fe,e[62]=V,e[63]=me):me=e[63];let he;e[64]!==d.slug||e[65]!==_||e[66]!==v||e[67]!==j||e[68]!==K?(he=s.jsx(_s,{open:v,onOpenChange:j,orgs:_,currentSlug:d.slug,onSelect:K}),e[64]=d.slug,e[65]=_,e[66]=v,e[67]=j,e[68]=K,e[69]=he):he=e[69];let pe;e[70]!==h||e[71]!==f?(pe=s.jsx(as,{open:h,onOpenChange:f}),e[70]=h,e[71]=f,e[72]=pe):pe=e[72];let _e;return e[73]!==me||e[74]!==he||e[75]!==pe?(_e=s.jsxs(s.Fragment,{children:[me,he,pe]}),e[73]=me,e[74]=he,e[75]=pe,e[76]=_e):_e=e[76],_e}function Bs(t){return t.slug}function Hs(t){return t.slug}function Xs(t){return t.slug}function Ys(t){return t.isLoading}function Gs(t){const e=I.c(15),{width:i,minWidth:r,maxWidth:n,onPointerDown:d,onKeyDown:l,onDoubleClick:a}=t,o=X(),{isMobile:u}=Ze(),b=Ie();if(u||b)return null;let p;e[0]!==o?(p=o("sidebar.sidebarResizeHandle.ariaLabel"),e[0]=o,e[1]=p):p=e[1];let m;e[2]!==o?(m=o("sidebar.sidebarResizeHandle.title"),e[2]=o,e[3]=m):m=e[3];let h,f;e[4]===Symbol.for("react.memo_cache_sentinel")?(h={left:"var(--sidebar-width)"},f=s.jsx("span",{className:"pointer-events-none absolute inset-y-0 left-1/2 w-px -translate-x-1/2 bg-transparent transition-colors duration-150 group-hover/resize:bg-border group-active/resize:bg-border group-focus-visible/resize:bg-ring"}),e[4]=h,e[5]=f):(h=e[4],f=e[5]);let v;return e[6]!==n||e[7]!==r||e[8]!==a||e[9]!==l||e[10]!==d||e[11]!==p||e[12]!==m||e[13]!==i?(v=s.jsx("div",{role:"separator","aria-orientation":"vertical","aria-label":p,"aria-valuenow":i,"aria-valuemin":r,"aria-valuemax":n,title:m,tabIndex:0,onPointerDown:d,onKeyDown:l,onDoubleClick:a,className:"group/resize absolute top-0 z-20 h-full w-2 -translate-x-1/2 cursor-col-resize focus-visible:outline-none",style:h,children:f}),e[6]=n,e[7]=r,e[8]=a,e[9]=l,e[10]=d,e[11]=p,e[12]=m,e[13]=i,e[14]=v):v=e[14],v}const Me=400,Xe=16,Vs="sidebar.width.v2";function Zs(){const t=I.c(14),e=qs;let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=f=>typeof f=="number"?e(f):192,t[0]=i):i=t[0];const[r,n]=$e(Vs,i),d=M.useRef(null);let l;t[1]!==n||t[2]!==r?(l=f=>{f.preventDefault();const v=f.clientX,j=e(r),C=d.current??(typeof document<"u"?document.querySelector('[data-slot="sidebar-wrapper"]'):null),w=C?Array.from(C.querySelectorAll('[data-slot="sidebar"], [data-slot="sidebar-container"]')):[];for(const g of w)g.style.transition="none";const c=g=>{const y=e(j+(g.clientX-v));C?.style.setProperty("--sidebar-width",`${y}px`)},x=g=>{const y=e(j+(g.clientX-v));n(y);for(const S of w)S.style.transition="";window.removeEventListener("pointermove",c),window.removeEventListener("pointerup",x),window.removeEventListener("pointercancel",x),document.body.style.userSelect="",document.body.style.cursor=""};document.body.style.userSelect="none",document.body.style.cursor="col-resize",window.addEventListener("pointermove",c),window.addEventListener("pointerup",x),window.addEventListener("pointercancel",x)},t[1]=n,t[2]=r,t[3]=l):l=t[3];const a=l;let o;t[4]!==n?(o=()=>{n(192)},t[4]=n,t[5]=o):o=t[5];const u=o;let b;t[6]!==n||t[7]!==r?(b=f=>{if(f.key==="ArrowLeft")n(e(r-Xe));else if(f.key==="ArrowRight")n(e(r+Xe));else if(f.key==="Home")n(192);else if(f.key==="End")n(Me);else return;f.preventDefault()},t[6]=n,t[7]=r,t[8]=b):b=t[8];const p=b,m=e(r);let h;return t[9]!==p||t[10]!==a||t[11]!==u||t[12]!==m?(h={width:m,minWidth:192,maxWidth:Me,wrapperRef:d,onStartResize:a,onKeyDownResize:p,resetWidth:u},t[9]=p,t[10]=a,t[11]=u,t[12]=m,t[13]=h):h=t[13],h}function qs(t){return Math.max(192,Math.min(Me,t))}const st=M.createContext(null);function Js(){const t=M.use(st);if(!t)throw new Error("Layout regions require a Layout");return t}function Qs({children:t,notice:e,outsideOrg:i}){const r=Et(),[n,d]=$e(Ve.sidebarOpen(),!0),l=Zs(),a=Ye({select:m=>yt(m.location.state)}),[o,u]=M.useState(!1);!a&&o&&u(!1);const b=a&&!o?!1:n,p=m=>{if(!a){d(m);return}u(m),m&&!n&&d(!0)};return s.jsx(st,{value:{isMobile:r,resize:l},children:s.jsx(wt,{open:b,onOpenChange:p,children:s.jsxs("div",{className:"app-shell-root flex flex-col h-dvh overflow-hidden",children:[e,s.jsxs("div",{className:"flex flex-1 flex-row min-h-0",children:[!i&&s.jsx(Ws,{}),!r&&(i?.rail??!0)&&s.jsx(tt,{}),s.jsx(Ct,{ref:l.wrapperRef,className:"flex-1 bg-sidebar relative min-h-0",style:{"--sidebar-width":`${l.width}px`,"--sidebar-width-icon":"0px"},children:s.jsx(Cs,{children:t})})]})]})})})}function er(t){const e=I.c(36),{children:i,renderMobile:r}=t,n=X(),{isMobile:d,resize:l}=Js(),{openMobile:a,setOpenMobile:o}=Ze(),u=Ie();let b;e[0]!==o?(b=()=>o(!1),e[0]=o,e[1]=b):b=e[1];const p=b;if(!d){let x;e[2]!==i||e[3]!==u?(x=s.jsx("div",{className:"contents",inert:u,children:i}),e[2]=i,e[3]=u,e[4]=x):x=e[4];let g;e[5]!==l.maxWidth||e[6]!==l.minWidth||e[7]!==l.onKeyDownResize||e[8]!==l.onStartResize||e[9]!==l.resetWidth||e[10]!==l.width?(g=s.jsx(Gs,{width:l.width,minWidth:l.minWidth,maxWidth:l.maxWidth,onPointerDown:l.onStartResize,onKeyDown:l.onKeyDownResize,onDoubleClick:l.resetWidth}),e[5]=l.maxWidth,e[6]=l.minWidth,e[7]=l.onKeyDownResize,e[8]=l.onStartResize,e[9]=l.resetWidth,e[10]=l.width,e[11]=g):g=e[11];let y;return e[12]!==x||e[13]!==g?(y=s.jsxs(s.Fragment,{children:[x,g]}),e[12]=x,e[13]=g,e[14]=y):y=e[14],y}let m;e[15]!==n?(m=n("layouts.shellControls.navigationTitle"),e[15]=n,e[16]=m):m=e[16];let h;e[17]!==m?(h=s.jsx(kt,{className:"sr-only",children:m}),e[17]=m,e[18]=h):h=e[18];let f;e[19]!==p?(f=s.jsx(tt,{onNavigate:p}),e[19]=p,e[20]=f):f=e[20];let v;e[21]!==p||e[22]!==r?(v=r({onClose:p}),e[21]=p,e[22]=r,e[23]=v):v=e[23];let j;e[24]!==v?(j=s.jsx("div",{className:"min-w-0 flex-1",children:v}),e[24]=v,e[25]=j):j=e[25];let C;e[26]!==f||e[27]!==j?(C=s.jsxs("div",{className:"flex h-full min-h-0",children:[f,j]}),e[26]=f,e[27]=j,e[28]=C):C=e[28];let w;e[29]!==h||e[30]!==C?(w=s.jsxs(Ot,{side:"left",hideCloseButton:!0,className:"w-screen max-w-none! p-0",onOpenAutoFocus:tr,children:[h,C]}),e[29]=h,e[30]=C,e[31]=w):w=e[31];let c;return e[32]!==a||e[33]!==o||e[34]!==w?(c=s.jsx(Rt,{open:a,onOpenChange:o,children:w}),e[32]=a,e[33]=o,e[34]=w,e[35]=c):c=e[35],c}function tr(t){return t.preventDefault()}function sr(t){const e=I.c(3),{children:i}=t;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={background:"transparent",containerType:"inline-size"},e[0]=r):r=e[0];let n;return e[1]!==i?(n=s.jsx(_t,{className:"flex flex-col min-h-0",style:r,children:s.jsx(St,{variant:"plain",className:"bg-sidebar",children:s.jsx("div",{className:"relative flex-1 min-h-0 flex flex-row",children:i})})}),e[1]=i,e[2]=n):n=e[2],n}const Er=Object.assign(Qs,{Sidebar:er,Content:sr});export{Er as L};
|
|
1
|
+
import{c as I,b as X,r as M,m as B,j as s,a6 as Re,e as nt,t as je,D as lt,v as ot,w as at,x as ct,y as dt,B as Fe,ax as ut,Y as ke,a7 as ft,E as H,X as mt,Z as ht,_ as pt,d as gt,aE as bt,l as Ye,H as xt,au as $e,L as Ge,$ as jt,aw as Ve,aF as vt,aG as yt,P as St}from"./index-B8QWcTDF.js";import{u as Ie,c as Ze,g as wt,h as Ct,i as _t}from"./use-sidebar-collapsed-CUSRdzNV.js";import{S as kt,a as Ot,b as Rt}from"./sheet-Bj9po_dr.js";import{u as Et}from"./use-mobile-BWNIpIib.js";import{u as zt,a as Dt,D as Nt,c as Tt,C as Lt,P as Pt}from"./task-key-Dz9RL1aI.js";import{S as At,v as Mt,u as $t}from"./sortable.esm-DPUvyVgz.js";import{i as It}from"./Tool01-a2zo_Nh2.js";import{t as Kt,u as Ft,v as Ut,w as Wt,A as Bt,x as Ue}from"./agent-icon-usffbRRI.js";import{s as Ht}from"./Plus-CxjsXIQx.js";import{a as Xt}from"./UserSquare-DMtJtFsc.js";import{a as Yt}from"./UserCheck01-BQk8M2vE.js";import{s as qe}from"./XClose-B9QBg8Hw.js";import{T as ge,a as be,c as xe}from"./tooltip-ddzAdkdR.js";import{C as Pe,f as Gt,g as Vt,e as Zt}from"./context-menu-CfkjHTIG.js";import{a as qt,O as Je,w as Jt,b as Qt,c as es,E as ts,r as Oe,d as ss,e as rs,h as is,t as ns,f as Qe,m as ls,o as os}from"./use-org-notice-DdZVdYZq.js";import{C as as}from"./create-organization-dialog-CLND_mWF.js";import{P as cs}from"./project-apps-X3gar6bk.js";import{u as ds,a as us}from"./use-recent-apps-CCw03Z3Z.js";import{a as fs}from"./use-navigate-to-agent-CXGbGghX.js";import{a as ms,u as hs}from"./use-project-scope-AKiXHlRB.js";import{C as We,a as ps,b as gs,c as bs,d as xs}from"./command-D2i9KgXa.js";import{u as js}from"./use-debounced-value-6WtU6EGD.js";import{n as vs}from"./BookOpen01-C-0ZZ7xz.js";import{F as ys,a as Ae,b as Ss,c as et}from"./feedback-BqoIMOg7.js";import{T as ws}from"./textarea-Bs6mZYew.js";import{a as Cs}from"./thread-button-DbXruDUJ.js";function _s(t){const e=I.c(48),{open:i,onOpenChange:r,orgs:n,currentSlug:d,onSelect:l}=t,a=X(),[o,u]=M.useState("");let b;e[0]!==o?(b=o.trim(),e[0]=o,e[1]=b):b=e[1];const p=b,m=js(p,150),h=p.length>0,f=m===p,{hits:v,isSearching:j,isStale:C,isError:w}=qt(h?m:""),c=h?v:n;let x;e[2]!==r?(x=L=>{r(L),L||u("")},e[2]=r,e[3]=x):x=e[3];const g=x;let y;e[4]!==a?(y=a("sidebar.rail.searchOrganizations"),e[4]=a,e[5]=y):y=e[5];let S;e[6]!==a?(S=a("sidebar.rail.searchPlaceholder"),e[6]=a,e[7]=S):S=e[7];let k;e[8]!==a?(k=a("sidebar.rail.searchPlaceholder"),e[8]=a,e[9]=k):k=e[9];let _;e[10]!==o||e[11]!==k?(_=s.jsx(ps,{value:o,onValueChange:u,placeholder:k}),e[10]=o,e[11]=k,e[12]=_):_=e[12];const T=h&&(C||!f)&&"opacity-50";let E;e[13]!==T?(E=B(T),e[13]=T,e[14]=E):E=e[14];let O;e[15]!==w||e[16]!==h||e[17]!==a?(O=h&&w&&s.jsx(We,{children:a("sidebar.rail.searchFailed")}),e[15]=w,e[16]=h,e[17]=a,e[18]=O):O=e[18];let z;e[19]!==w||e[20]!==j||e[21]!==c.length||e[22]!==f||e[23]!==a?(z=!w&&f&&!j&&c.length===0&&s.jsx(We,{children:a("sidebar.rail.searchEmpty")}),e[19]=w,e[20]=j,e[21]=c.length,e[22]=f,e[23]=a,e[24]=z):z=e[24];let D;if(e[25]!==d||e[26]!==l||e[27]!==g||e[28]!==c||e[29]!==a){let L;e[31]!==d||e[32]!==l||e[33]!==g||e[34]!==a?(L=P=>s.jsxs(gs,{value:P.slug,onSelect:()=>{g(!1),P.slug!==d&&l(P.slug)},className:"gap-2.5",children:[s.jsx(Je,{org:P,size:"sm"}),s.jsx("span",{className:"min-w-0 flex-1 truncate",children:P.name}),P.slug===d&&s.jsx("span",{className:"text-meta shrink-0",children:a("sidebar.rail.currentOrganization")})]},P.id),e[31]=d,e[32]=l,e[33]=g,e[34]=a,e[35]=L):L=e[35],D=c.map(L),e[25]=d,e[26]=l,e[27]=g,e[28]=c,e[29]=a,e[30]=D}else D=e[30];let R;e[36]!==z||e[37]!==D||e[38]!==E||e[39]!==O?(R=s.jsxs(bs,{className:E,children:[O,z,D]}),e[36]=z,e[37]=D,e[38]=E,e[39]=O,e[40]=R):R=e[40];let A;return e[41]!==i||e[42]!==g||e[43]!==R||e[44]!==y||e[45]!==S||e[46]!==_?(A=s.jsxs(xs,{open:i,onOpenChange:g,title:y,description:S,shouldFilter:!1,children:[_,R]}),e[41]=i,e[42]=g,e[43]=R,e[44]=y,e[45]=S,e[46]=_,e[47]=A):A=e[47],A}function ks(t){const e=I.c(4),{size:i,className:r}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx("path",{d:"M20.317 4.37a19.79 19.79 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.865-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.74 19.74 0 0 0 3.677 4.37a.07.07 0 0 0-.032.028C.533 9.046-.32 13.58.099 18.058a.082.082 0 0 0 .031.056 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028c.462-.63.874-1.295 1.226-1.994a.076.076 0 0 0-.042-.106 13.1 13.1 0 0 1-1.872-.892.077.077 0 0 1-.008-.128c.126-.094.252-.192.372-.291a.074.074 0 0 1 .078-.01c3.927 1.793 8.18 1.793 12.061 0a.074.074 0 0 1 .079.009c.12.099.246.198.373.292a.077.077 0 0 1-.007.128 12.3 12.3 0 0 1-1.873.891.077.077 0 0 0-.041.107c.36.698.772 1.363 1.225 1.993a.076.076 0 0 0 .084.029 19.84 19.84 0 0 0 6.002-3.03.077.077 0 0 0 .032-.055c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.029ZM8.02 15.331c-1.183 0-2.157-1.086-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.095 2.157 2.42 0 1.332-.956 2.418-2.157 2.418Zm7.975 0c-1.183 0-2.157-1.086-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.095 2.157 2.42 0 1.332-.946 2.418-2.157 2.418Z"}),e[0]=n):n=e[0];let d;return e[1]!==r||e[2]!==i?(d=s.jsx("svg",{width:i,height:i,viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",className:r,children:n}),e[1]=r,e[2]=i,e[3]=d):d=e[3],d}const Os=250;function Rs(){return typeof navigator<"u"&&!!navigator.mediaDevices?.getDisplayMedia}function Be(t,e,i){return new Promise(r=>t.toBlob(r,e,i))}async function Es(){const t=await navigator.mediaDevices.getDisplayMedia({video:{displaySurface:"browser"},audio:!1,preferCurrentTab:!0,selfBrowserSurface:"include"});try{const e=document.createElement("video");e.muted=!0,e.srcObject=t,await e.play(),await new Promise(d=>setTimeout(d,Os));const i=document.createElement("canvas");i.width=e.videoWidth,i.height=e.videoHeight,i.getContext("2d")?.drawImage(e,0,0),e.srcObject=null;let r=await Be(i,"image/png");if((!r||r.size>et)&&(r=await Be(i,"image/jpeg",.85)),!r)throw new Error("Could not encode the screenshot");const n=r.type==="image/png"?"png":"jpg";return new File([r],`screenshot.${n}`,{type:r.type})}finally{for(const e of t.getTracks())e.stop()}}function He({kind:t,open:e,onOpenChange:i}){const r=X(),n=t==="problem"?{title:r("sidebar.problem.title"),placeholder:r("sidebar.problem.placeholder"),sent:r("sidebar.problem.sent"),failed:r("sidebar.problem.failed")}:{title:r("sidebar.feedback.title"),placeholder:r("sidebar.feedback.placeholder"),sent:r("sidebar.feedback.sent"),failed:r("sidebar.feedback.failed")},{org:d}=Re(),[l,a]=M.useState(""),[o,u]=M.useState([]),[b,p]=M.useState(!1),m=()=>{for(const c of o)URL.revokeObjectURL(c.previewUrl);u([]),a("")},h=c=>{const x=c.filter(S=>Ss.includes(S.type)?S.size>et?(je.error(r("sidebar.feedback.screenshotTooLarge")),!1):!0:!1),g=Ae-o.length;x.length>g&&je.error(r("sidebar.feedback.tooManyScreenshots",{max:String(Ae)}));const y=x.slice(0,Math.max(g,0)).map(S=>({file:S,previewUrl:URL.createObjectURL(S)}));y.length>0&&u(S=>[...S,...y])},f=c=>{URL.revokeObjectURL(c.previewUrl),u(x=>x.filter(g=>g!==c))},v=async()=>{p(!0);try{h([await Es()])}catch(c){c instanceof DOMException&&c.name==="NotAllowedError"||(console.error("[feedback] screenshot failed",c),je.error(r("sidebar.feedback.screenshotFailed")))}finally{p(!1)}},j=c=>{const x=Array.from(c.clipboardData.files).filter(g=>g.type.startsWith("image/"));x.length!==0&&(c.preventDefault(),h(x))},C=nt({mutationFn:async()=>{const c=new FormData;c.set("kind",t),c.set("message",l.trim()),c.set("pageUrl",window.location.href);for(const g of o)c.append("screenshot",g.file);const x=await fetch(`/api/${encodeURIComponent(d.slug)}/feedback`,{method:"POST",body:c});if(!x.ok)throw new Error(`Feedback failed: ${x.status}`)},onSuccess:()=>{je.success(n.sent),m(),i(!1)},onError:()=>je.error(n.failed)}),w=l.trim().length>0&&!C.isPending;return s.jsx(lt,{open:e&&!b,onOpenChange:i,children:s.jsxs(ot,{className:"sm:max-w-lg","aria-describedby":void 0,children:[s.jsx(at,{children:s.jsx(ct,{children:n.title})}),s.jsx(ws,{autoFocus:!0,value:l,onChange:c=>a(c.target.value),onPaste:j,onKeyDown:c=>{c.key==="Enter"&&(c.metaKey||c.ctrlKey)&&(c.preventDefault(),w&&C.mutate())},placeholder:n.placeholder,className:"min-h-32 max-h-80",maxLength:ys}),o.length>0&&s.jsx("div",{className:"flex flex-wrap gap-2",children:o.map((c,x)=>s.jsxs("div",{className:"group relative size-20 overflow-hidden rounded-lg shadow-edge",children:[s.jsx("a",{href:c.previewUrl,target:"_blank",rel:"noreferrer",children:s.jsx("img",{src:c.previewUrl,alt:r("sidebar.feedback.screenshotAlt",{n:String(x+1)}),className:"size-full object-cover"})}),s.jsx("button",{type:"button",onClick:()=>f(c),"aria-label":r("sidebar.feedback.removeScreenshot"),className:"absolute top-1 right-1 flex size-5 items-center justify-center rounded-full bg-background/90 text-foreground opacity-0 shadow-edge transition-opacity group-hover:opacity-100 focus-visible:opacity-100",children:s.jsx(qe,{size:12})})]},c.previewUrl))}),s.jsxs(dt,{className:"sm:justify-between",children:[Rs()?s.jsxs(Fe,{type:"button",variant:"outline",onClick:v,disabled:o.length>=Ae,children:[s.jsx(Kt,{size:14}),r("sidebar.feedback.takeScreenshot")]}):s.jsx("span",{}),s.jsx(Fe,{type:"button",onClick:()=>C.mutate(),disabled:!w,children:C.isPending?r("sidebar.feedback.sending"):r("sidebar.feedback.send")})]})]})})}function ve(t){const e=I.c(11),{active:i,label:r,children:n}=t,d=i?"h-7 opacity-100":"h-2 opacity-0 group-hover/rail:opacity-60";let l;e[0]!==d?(l=B("w-1 rounded-r-full bg-foreground","transition-[height,opacity] duration-200 ease-[var(--ease-out-cubic)]","motion-reduce:transition-none",d),e[0]=d,e[1]=l):l=e[1];let a;e[2]!==l?(a=s.jsx("span",{"aria-hidden":!0,className:"absolute top-0 -left-2.5 flex h-9 items-center",children:s.jsx("span",{className:l})}),e[2]=l,e[3]=a):a=e[3];let o;e[4]!==i||e[5]!==r?(o=r&&s.jsx("span",{"aria-hidden":!0,className:B("line-clamp-2 w-full px-0.5 text-center text-2xs text-ellipsis transition-colors",i?"font-medium text-sidebar-foreground":"text-muted-foreground group-hover/rail:text-sidebar-foreground"),children:r}),e[4]=i,e[5]=r,e[6]=o):o=e[6];let u;return e[7]!==n||e[8]!==a||e[9]!==o?(u=s.jsxs("div",{className:"group/rail relative flex w-full shrink-0 flex-col items-center gap-1",children:[a,n,o]}),e[7]=n,e[8]=a,e[9]=o,e[10]=u):u=e[10],u}const zs="https://docs.decocms.com/",Ds="https://discord.gg/EQkX7CymV";function Ns(){const t=I.c(39),e=X(),{org:i}=Re(),[r,n]=M.useState(null),d=!!i.id;let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=_=>{H("help_menu_dialog_opened",{kind:_}),n(_)},t[0]=l):l=t[0];const a=l;let o;t[1]!==e?(o=e("sidebar.help.button"),t[1]=e,t[2]=o):o=t[2];let u;t[3]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx(Ut,{size:18}),t[3]=u):u=t[3];let b;t[4]!==o?(b=s.jsx(ge,{asChild:!0,children:s.jsx(mt,{asChild:!0,children:s.jsx("button",{type:"button","aria-label":o,onClick:Ps,className:"flex size-9 shrink-0 cursor-pointer items-center justify-center rounded-full text-muted-foreground transition-colors hover:bg-sidebar-accent hover:text-foreground focus-ring data-[state=open]:bg-sidebar-accent data-[state=open]:text-foreground",children:u})})}),t[4]=o,t[5]=b):b=t[5];let p;t[6]!==e?(p=e("sidebar.help.button"),t[6]=e,t[7]=p):p=t[7];let m;t[8]!==p?(m=s.jsx(be,{side:"right",children:p}),t[8]=p,t[9]=m):m=t[9];let h;t[10]!==b||t[11]!==m?(h=s.jsxs(xe,{children:[b,m]}),t[10]=b,t[11]=m,t[12]=h):h=t[12];let f;t[13]===Symbol.for("react.memo_cache_sentinel")?(f=s.jsx(vs,{}),t[13]=f):f=t[13];let v;t[14]!==e?(v=e("sidebar.help.guides"),t[14]=e,t[15]=v):v=t[15];let j;t[16]!==v?(j=s.jsx(ke,{asChild:!0,children:s.jsxs("a",{href:zs,target:"_blank",rel:"noopener noreferrer",onClick:Ls,children:[f,v]})}),t[16]=v,t[17]=j):j=t[17];let C;t[18]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(ks,{}),t[18]=C):C=t[18];let w;t[19]!==e?(w=e("sidebar.help.discord"),t[19]=e,t[20]=w):w=t[20];let c;t[21]!==w?(c=s.jsx(ke,{asChild:!0,children:s.jsxs("a",{href:Ds,target:"_blank",rel:"noopener noreferrer",onClick:Ts,children:[C,w]})}),t[21]=w,t[22]=c):c=t[22];let x;t[23]!==d||t[24]!==e?(x=d&&s.jsxs(s.Fragment,{children:[s.jsx(ut,{}),s.jsxs(ke,{onSelect:()=>a("problem"),children:[s.jsx(ft,{}),e("sidebar.help.reportProblem")]}),s.jsxs(ke,{onSelect:()=>a("feedback"),children:[s.jsx(Ft,{}),e("sidebar.feedback.button")]})]}),t[23]=d,t[24]=e,t[25]=x):x=t[25];let g;t[26]!==c||t[27]!==x||t[28]!==j?(g=s.jsxs(ht,{side:"right",align:"end",className:"w-56",children:[j,c,x]}),t[26]=c,t[27]=x,t[28]=j,t[29]=g):g=t[29];let y;t[30]!==g||t[31]!==h?(y=s.jsx(ve,{active:!1,children:s.jsxs(pt,{children:[h,g]})}),t[30]=g,t[31]=h,t[32]=y):y=t[32];let S;t[33]!==d||t[34]!==r?(S=d&&s.jsxs(s.Fragment,{children:[s.jsx(He,{kind:"problem",open:r==="problem",onOpenChange:_=>n(_?"problem":null)}),s.jsx(He,{kind:"feedback",open:r==="feedback",onOpenChange:_=>n(_?"feedback":null)})]}),t[33]=d,t[34]=r,t[35]=S):S=t[35];let k;return t[36]!==y||t[37]!==S?(k=s.jsxs(s.Fragment,{children:[y,S]}),t[36]=y,t[37]=S,t[38]=k):k=t[38],k}function Ts(){return H("help_menu_discord_opened")}function Ls(){return H("help_menu_guides_opened")}function Ps(){return H("help_menu_opened")}function As(t){return globalThis.addEventListener("resize",t),()=>globalThis.removeEventListener("resize",t)}const Ms=()=>Qe(globalThis.innerHeight),$s=()=>Qe(0);function Is(t){const e=I.c(59),{org:i,active:r,onSelect:n,pinned:d,onOpenSettings:l,onTogglePin:a,onHide:o}=t,u=X();let b;e[0]!==i.slug?(b={id:i.slug},e[0]=i.slug,e[1]=b):b=e[1];const{setNodeRef:p,listeners:m,transform:h,transition:f,isDragging:v}=$t(b);let j;e[2]!==h?(j=Lt.Transform.toString(h?{...h,x:0}:null),e[2]=h,e[3]=j):j=e[3];const C=v?1:void 0,w=`rail-org-${i.slug}`;let c;e[4]!==j||e[5]!==C||e[6]!==w||e[7]!==f?(c={transform:j,transition:f,zIndex:C,viewTransitionName:w},e[4]=j,e[5]=C,e[6]=w,e[7]=f,e[8]=c):c=e[8];const x=i.name,g=r||void 0,y=r?"opacity-100":"opacity-60 hover:scale-105 hover:opacity-100",S=n&&"cursor-pointer";let k;e[9]!==y||e[10]!==S?(k=B("relative flex shrink-0 items-center justify-center rounded-xl focus-ring","transition-[opacity,transform] duration-150 ease-out",y,S),e[9]=y,e[10]=S,e[11]=k):k=e[11];let _;e[12]!==i?(_=s.jsx(Je,{org:i,size:"lg"}),e[12]=i,e[13]=_):_=e[13];let T;e[14]!==d?(T=d&&s.jsx("span",{"aria-hidden":!0,className:"absolute -top-1 -right-1 flex size-4 items-center justify-center rounded-full bg-sidebar-accent text-muted-foreground ring-2 ring-sidebar",children:s.jsx(Ue,{size:9})}),e[14]=d,e[15]=T):T=e[15];let E;e[16]!==n||e[17]!==i.name||e[18]!==k||e[19]!==_||e[20]!==T||e[21]!==g?(E=s.jsx(ge,{asChild:!0,children:s.jsx(Gt,{asChild:!0,children:s.jsxs("button",{type:"button","aria-label":x,"aria-current":g,onClick:n,className:k,children:[_,T]})})}),e[16]=n,e[17]=i.name,e[18]=k,e[19]=_,e[20]=T,e[21]=g,e[22]=E):E=e[22];let O;e[23]!==i.name?(O=s.jsx(be,{side:"right",children:i.name}),e[23]=i.name,e[24]=O):O=e[24];let z;e[25]!==E||e[26]!==O?(z=s.jsxs(xe,{children:[E,O]}),e[25]=E,e[26]=O,e[27]=z):z=e[27];let D;e[28]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx(Yt,{}),e[28]=D):D=e[28];let R;e[29]!==u?(R=u("sidebar.rail.organizationSettings"),e[29]=u,e[30]=R):R=e[30];let A;e[31]!==l||e[32]!==R?(A=s.jsxs(Pe,{onSelect:l,children:[D,R]}),e[31]=l,e[32]=R,e[33]=A):A=e[33];let L;e[34]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx(Ue,{}),e[34]=L):L=e[34];let P;e[35]!==d||e[36]!==u?(P=u(d?"sidebar.rail.unpinOrganization":"sidebar.rail.pinOrganization"),e[35]=d,e[36]=u,e[37]=P):P=e[37];let F;e[38]!==a||e[39]!==P?(F=s.jsxs(Pe,{onSelect:a,children:[L,P]}),e[38]=a,e[39]=P,e[40]=F):F=e[40];let U;e[41]!==o||e[42]!==u?(U=o&&s.jsxs(Pe,{onSelect:o,children:[s.jsx(It,{}),u("sidebar.rail.hideOrganization")]}),e[41]=o,e[42]=u,e[43]=U):U=e[43];let Y;e[44]!==A||e[45]!==F||e[46]!==U?(Y=s.jsxs(Vt,{children:[A,F,U]}),e[44]=A,e[45]=F,e[46]=U,e[47]=Y):Y=e[47];let K;e[48]!==z||e[49]!==Y?(K=s.jsxs(Zt,{children:[z,Y]}),e[48]=z,e[49]=Y,e[50]=K):K=e[50];let W;e[51]!==r||e[52]!==K?(W=s.jsx(ve,{active:r,children:K}),e[51]=r,e[52]=K,e[53]=W):W=e[53];let G;return e[54]!==m||e[55]!==p||e[56]!==W||e[57]!==c?(G=s.jsx("div",{ref:p,...m,style:c,className:"w-full shrink-0 touch-none",children:W}),e[54]=m,e[55]=p,e[56]=W,e[57]=c,e[58]=G):G=e[58],G}function Ks(t){const e=I.c(64),{project:i,orgSlug:r,active:n,onClose:d,onNavigate:l}=t,a=X();let o,u,b,p,m,h,f,v,j,C,w;if(e[0]!==n||e[1]!==l||e[2]!==r||e[3]!==i.icon||e[4]!==i.id||e[5]!==i.title){const L=Wt(i.icon,i.title);w="group/rail relative flex w-full flex-col items-center gap-1",b=xe,u=ge,C=!0,o=Ge,p=jt.root,e[17]!==r||e[18]!==i.id?(m={org:r,agentId:i.id},e[17]=r,e[18]=i.id,e[19]=m):m=e[19],h=i.title,f=n||void 0,e[20]!==l?(v=()=>{H("org_rail_recent_project_opened"),l?.()},e[20]=l,e[21]=v):v=e[21],j=B("flex shrink-0 rounded-lg focus-ring",L.text,n&&"ring-[1.5px] ring-current"),e[0]=n,e[1]=l,e[2]=r,e[3]=i.icon,e[4]=i.id,e[5]=i.title,e[6]=o,e[7]=u,e[8]=b,e[9]=p,e[10]=m,e[11]=h,e[12]=f,e[13]=v,e[14]=j,e[15]=C,e[16]=w}else o=e[6],u=e[7],b=e[8],p=e[9],m=e[10],h=e[11],f=e[12],v=e[13],j=e[14],C=e[15],w=e[16];let c;e[22]!==i.icon||e[23]!==i.title?(c=s.jsx(Bt,{icon:i.icon,name:i.title,size:"sm",className:"size-8 rounded-lg"}),e[22]=i.icon,e[23]=i.title,e[24]=c):c=e[24];let x;e[25]!==o||e[26]!==p||e[27]!==m||e[28]!==h||e[29]!==f||e[30]!==v||e[31]!==j||e[32]!==c?(x=s.jsx(o,{to:p,params:m,"aria-label":h,"aria-current":f,onClick:v,className:j,children:c}),e[25]=o,e[26]=p,e[27]=m,e[28]=h,e[29]=f,e[30]=v,e[31]=j,e[32]=c,e[33]=x):x=e[33];let g;e[34]!==u||e[35]!==x||e[36]!==C?(g=s.jsx(u,{asChild:C,children:x}),e[34]=u,e[35]=x,e[36]=C,e[37]=g):g=e[37];let y;e[38]!==i.title?(y=s.jsx(be,{side:"right",children:i.title}),e[38]=i.title,e[39]=y):y=e[39];let S;e[40]!==b||e[41]!==g||e[42]!==y?(S=s.jsxs(b,{children:[g,y]}),e[40]=b,e[41]=g,e[42]=y,e[43]=S):S=e[43];const k=n?"font-medium text-sidebar-foreground":"text-muted-foreground group-hover/rail:text-sidebar-foreground";let _;e[44]!==k?(_=B("line-clamp-2 w-full text-center text-2xs break-words transition-colors",k),e[44]=k,e[45]=_):_=e[45];let T;e[46]!==i.title||e[47]!==_?(T=s.jsx("span",{"aria-hidden":!0,className:_,children:i.title}),e[46]=i.title,e[47]=_,e[48]=T):T=e[48];let E;e[49]!==i.title||e[50]!==a?(E=a("sidebar.rail.closeApp",{name:i.title}),e[49]=i.title,e[50]=a,e[51]=E):E=e[51];let O;e[52]!==d?(O=()=>{H("org_rail_recent_project_closed"),d()},e[52]=d,e[53]=O):O=e[53];let z,D;e[54]===Symbol.for("react.memo_cache_sentinel")?(z=B("absolute -top-1.5 right-[calc(50%-1.25rem)] flex size-4 cursor-pointer items-center justify-center rounded-full","bg-sidebar-accent text-muted-foreground ring-2 ring-sidebar hover:text-foreground","opacity-0 transition-opacity duration-150 group-hover/rail:opacity-100 focus-visible:opacity-100 focus-visible:outline-none"),D=s.jsx(qe,{size:10}),e[54]=z,e[55]=D):(z=e[54],D=e[55]);let R;e[56]!==E||e[57]!==O?(R=s.jsx("button",{type:"button","aria-label":E,onClick:O,className:z,children:D}),e[56]=E,e[57]=O,e[58]=R):R=e[58];let A;return e[59]!==S||e[60]!==T||e[61]!==R||e[62]!==w?(A=s.jsxs("div",{className:w,children:[S,T,R]}),e[59]=S,e[60]=T,e[61]=R,e[62]=w,e[63]=A):A=e[63],A}const Fs={"site-editor":"/site-editor"};function Us(t){const e=I.c(26),{app:i}=t,r=X(),n=cs[i],d=Fs[i];if(!n||!d)return null;let l;e[0]!==n.labelKey||e[1]!==r?(l=r(n.labelKey),e[0]=n.labelKey,e[1]=r,e[2]=l):l=e[2];let a;e[3]!==n.labelKey||e[4]!==r?(a=r(n.labelKey),e[3]=n.labelKey,e[4]=r,e[5]=a):a=e[5];let o;e[6]!==n.tone?(o=B("flex size-9 shrink-0 items-center justify-center rounded-xl focus-ring opacity-100",n.tone),e[6]=n.tone,e[7]=o):o=e[7];let u;e[8]!==n.Icon?(u=s.jsx(n.Icon,{size:18}),e[8]=n.Icon,e[9]=u):u=e[9];let b;e[10]!==a||e[11]!==o||e[12]!==u||e[13]!==d?(b=s.jsx(ge,{asChild:!0,children:s.jsx(Ge,{to:d,"aria-label":a,"aria-current":"page","data-testid":"org-rail-local-app",className:o,children:u})}),e[10]=a,e[11]=o,e[12]=u,e[13]=d,e[14]=b):b=e[14];let p;e[15]!==n.labelKey||e[16]!==r?(p=r(n.labelKey),e[15]=n.labelKey,e[16]=r,e[17]=p):p=e[17];let m;e[18]!==p?(m=s.jsx(be,{side:"right",children:p}),e[18]=p,e[19]=m):m=e[19];let h;e[20]!==b||e[21]!==m?(h=s.jsxs(xe,{children:[b,m]}),e[20]=b,e[21]=m,e[22]=h):h=e[22];let f;return e[23]!==l||e[24]!==h?(f=s.jsx(ve,{active:!0,label:l,children:h}),e[23]=l,e[24]=h,e[25]=f):f=e[25],f}function Ws(){const{org:t}=Re();return ds(t.slug),null}function tt(t){const e=I.c(77),{onNavigate:i}=t===void 0?{}:t,r=X(),n=gt(),{org:d}=Re(),l=bt();let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={select:Ys},e[0]=a):a=e[0];const o=Ye(a);let u;e[1]!==o||e[2]!==l?(u=o?l({to:"/$org",fuzzy:!0,pending:!0}):!1,e[1]=o,e[2]=l,e[3]=u):u=e[3];const b=u,p=b?b.org:d.slug,{data:m}=xt(),[h,f]=M.useState(!1),[v,j]=M.useState(!1),C=Ie(),{recent:w,forget:c}=fs(d.slug),{projects:x}=ms(),g=hs(),y=us(),S=y&&y.projectId===null?y.app:null,k=S?[]:w.flatMap(N=>x.filter($=>$.id===N)),_=Jt(m??[],d),{recent:T}=Qt(),E=es();let O;e[4]===Symbol.for("react.memo_cache_sentinel")?(O=Ve.railOrgPrefs(),e[4]=O):O=e[4];const[z,D]=$e(O,ts),R=Oe(z),A=M.useSyncExternalStore(As,Ms,$s),{shown:L}=ss(rs(_,R,d.slug),T,d.slug,A,R.pinned);let P;e[5]===Symbol.for("react.memo_cache_sentinel")?(P={activationConstraint:{distance:8}},e[5]=P):P=e[5];const F=zt(Dt(Pt,P)),U=N=>{const{active:$,over:Ke}=N;Ke&&(H("org_rail_reordered"),D(it=>ls(Oe(it),L.map(Xs),String($.id),String(Ke.id))))},Y=N=>{i?.(),n({to:"/$org/home",params:{org:N},viewTransition:!0})},K=N=>{H("org_rail_travel"),i?.(),E(N,L.map(Hs))},W=()=>{if(H("org_rail_search_opened"),!d.id){j(!0);return}i?.(),os()},G=!C&&"border-r border-sidebar-border";let V;e[6]!==G?(V=B("flex w-[68px] shrink-0 flex-col bg-sidebar",G),e[6]=G,e[7]=V):V=e[7];const rt="flex min-h-0 flex-1 flex-col items-center gap-2.5 overflow-y-auto px-2.5 pt-3 pb-2 [scrollbar-width:none] [&::-webkit-scrollbar]:hidden";let Z;e[8]!==r?(Z=r("sidebar.rail.ariaLabel"),e[8]=r,e[9]=Z):Z=e[9];const Ee=Nt,ze=Tt,De=At,Ne=L.map(Bs),Te=Mt,Le=L.map(N=>s.jsxs(M.Fragment,{children:[s.jsx(Is,{org:N,active:N.slug===p,pinned:R.pinned.includes(N.slug),onSelect:N.slug!==d.slug?()=>K(N.slug):g?()=>Y(N.slug):void 0,onOpenSettings:()=>{i?.(),n({to:"/$org/settings",params:{org:N.slug},search:{thread:void 0}})},onTogglePin:()=>D($=>ns(Oe($),N.slug)),onHide:N.slug===d.slug?void 0:()=>D($=>is(Oe($),N.slug))}),N.slug===d.slug&&k.length>0&&s.jsx("div",{style:{viewTransitionName:"rail-projects"},className:"-mx-1.5 flex w-[calc(100%+0.75rem)] flex-col items-center gap-3 rounded-[12px] bg-foreground/4 px-1 py-3",children:k.map($=>s.jsx(Ks,{project:$,orgSlug:d.slug,active:g===$.id,onClose:()=>c($.id),onNavigate:i},$.id))})]},N.id));let q;e[10]!==De||e[11]!==Ne||e[12]!==Te||e[13]!==Le?(q=s.jsx(De,{items:Ne,strategy:Te,children:Le}),e[10]=De,e[11]=Ne,e[12]=Te,e[13]=Le,e[14]=q):q=e[14];let J;e[15]!==Ee||e[16]!==U||e[17]!==F||e[18]!==ze||e[19]!==q?(J=s.jsx(Ee,{sensors:F,collisionDetection:ze,onDragEnd:U,children:q}),e[15]=Ee,e[16]=U,e[17]=F,e[18]=ze,e[19]=q,e[20]=J):J=e[20];let Q;e[21]!==S?(Q=S&&s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"my-2 h-px w-6 shrink-0 bg-sidebar-border","aria-hidden":!0}),s.jsx(Us,{app:S})]}),e[21]=S,e[22]=Q):Q=e[22];let ee;e[23]!==J||e[24]!==Q||e[25]!==Z?(ee=s.jsxs("div",{className:rt,"aria-label":Z,children:[J,Q]}),e[23]=J,e[24]=Q,e[25]=Z,e[26]=ee):ee=e[26];let te;e[27]!==r?(te=r("sidebar.rail.search"),e[27]=r,e[28]=te):te=e[28];let ye;e[29]===Symbol.for("react.memo_cache_sentinel")?(ye=s.jsx(Xt,{size:18}),e[29]=ye):ye=e[29];let se;e[30]!==W||e[31]!==te?(se=s.jsx(ge,{asChild:!0,children:s.jsx("button",{type:"button","aria-label":te,"aria-keyshortcuts":"Meta+K Control+K",onClick:W,className:"flex size-9 shrink-0 cursor-pointer items-center justify-center rounded-full text-muted-foreground transition-colors hover:bg-sidebar-accent hover:text-foreground focus-ring",children:ye})}),e[30]=W,e[31]=te,e[32]=se):se=e[32];let re;e[33]!==r?(re=r("sidebar.rail.search"),e[33]=r,e[34]=re):re=e[34];let Se;e[35]===Symbol.for("react.memo_cache_sentinel")?(Se=s.jsx("span",{className:"ml-2 text-muted-foreground",children:vt.commandPalette.keys.join("")}),e[35]=Se):Se=e[35];let ie;e[36]!==re?(ie=s.jsxs(be,{side:"right",children:[re,Se]}),e[36]=re,e[37]=ie):ie=e[37];let ne;e[38]!==se||e[39]!==ie?(ne=s.jsx(ve,{active:!1,children:s.jsxs(xe,{children:[se,ie]})}),e[38]=se,e[39]=ie,e[40]=ne):ne=e[40];let le;e[41]!==r?(le=r("sidebar.picker.newOrganization"),e[41]=r,e[42]=le):le=e[42];let oe;e[43]!==f?(oe=()=>f(!0),e[43]=f,e[44]=oe):oe=e[44];let we;e[45]===Symbol.for("react.memo_cache_sentinel")?(we=s.jsx(Ht,{size:18}),e[45]=we):we=e[45];let ae;e[46]!==le||e[47]!==oe?(ae=s.jsx(ge,{asChild:!0,children:s.jsx("button",{type:"button","aria-label":le,onClick:oe,className:"flex size-9 shrink-0 cursor-pointer items-center justify-center rounded-full text-muted-foreground transition-colors hover:bg-sidebar-accent hover:text-foreground focus-ring",children:we})}),e[46]=le,e[47]=oe,e[48]=ae):ae=e[48];let ce;e[49]!==r?(ce=r("sidebar.picker.newOrganization"),e[49]=r,e[50]=ce):ce=e[50];let de;e[51]!==ce?(de=s.jsx(be,{side:"right",children:ce}),e[51]=ce,e[52]=de):de=e[52];let ue;e[53]!==ae||e[54]!==de?(ue=s.jsx(ve,{active:!1,children:s.jsxs(xe,{children:[ae,de]})}),e[53]=ae,e[54]=de,e[55]=ue):ue=e[55];let Ce;e[56]===Symbol.for("react.memo_cache_sentinel")?(Ce=s.jsx(Ns,{}),e[56]=Ce):Ce=e[56];let fe;e[57]!==ne||e[58]!==ue?(fe=s.jsxs("div",{className:"flex shrink-0 flex-col items-center gap-1 px-2.5 pt-2 pb-3",children:[ne,ue,Ce]}),e[57]=ne,e[58]=ue,e[59]=fe):fe=e[59];let me;e[60]!==ee||e[61]!==fe||e[62]!==V?(me=s.jsxs("div",{className:V,children:[ee,fe]}),e[60]=ee,e[61]=fe,e[62]=V,e[63]=me):me=e[63];let he;e[64]!==d.slug||e[65]!==_||e[66]!==v||e[67]!==j||e[68]!==K?(he=s.jsx(_s,{open:v,onOpenChange:j,orgs:_,currentSlug:d.slug,onSelect:K}),e[64]=d.slug,e[65]=_,e[66]=v,e[67]=j,e[68]=K,e[69]=he):he=e[69];let pe;e[70]!==h||e[71]!==f?(pe=s.jsx(as,{open:h,onOpenChange:f}),e[70]=h,e[71]=f,e[72]=pe):pe=e[72];let _e;return e[73]!==me||e[74]!==he||e[75]!==pe?(_e=s.jsxs(s.Fragment,{children:[me,he,pe]}),e[73]=me,e[74]=he,e[75]=pe,e[76]=_e):_e=e[76],_e}function Bs(t){return t.slug}function Hs(t){return t.slug}function Xs(t){return t.slug}function Ys(t){return t.isLoading}function Gs(t){const e=I.c(15),{width:i,minWidth:r,maxWidth:n,onPointerDown:d,onKeyDown:l,onDoubleClick:a}=t,o=X(),{isMobile:u}=Ze(),b=Ie();if(u||b)return null;let p;e[0]!==o?(p=o("sidebar.sidebarResizeHandle.ariaLabel"),e[0]=o,e[1]=p):p=e[1];let m;e[2]!==o?(m=o("sidebar.sidebarResizeHandle.title"),e[2]=o,e[3]=m):m=e[3];let h,f;e[4]===Symbol.for("react.memo_cache_sentinel")?(h={left:"var(--sidebar-width)"},f=s.jsx("span",{className:"pointer-events-none absolute inset-y-0 left-1/2 w-px -translate-x-1/2 bg-transparent transition-colors duration-150 group-hover/resize:bg-border group-active/resize:bg-border group-focus-visible/resize:bg-ring"}),e[4]=h,e[5]=f):(h=e[4],f=e[5]);let v;return e[6]!==n||e[7]!==r||e[8]!==a||e[9]!==l||e[10]!==d||e[11]!==p||e[12]!==m||e[13]!==i?(v=s.jsx("div",{role:"separator","aria-orientation":"vertical","aria-label":p,"aria-valuenow":i,"aria-valuemin":r,"aria-valuemax":n,title:m,tabIndex:0,onPointerDown:d,onKeyDown:l,onDoubleClick:a,className:"group/resize absolute top-0 z-20 h-full w-2 -translate-x-1/2 cursor-col-resize focus-visible:outline-none",style:h,children:f}),e[6]=n,e[7]=r,e[8]=a,e[9]=l,e[10]=d,e[11]=p,e[12]=m,e[13]=i,e[14]=v):v=e[14],v}const Me=400,Xe=16,Vs="sidebar.width.v2";function Zs(){const t=I.c(14),e=qs;let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=f=>typeof f=="number"?e(f):192,t[0]=i):i=t[0];const[r,n]=$e(Vs,i),d=M.useRef(null);let l;t[1]!==n||t[2]!==r?(l=f=>{f.preventDefault();const v=f.clientX,j=e(r),C=d.current??(typeof document<"u"?document.querySelector('[data-slot="sidebar-wrapper"]'):null),w=C?Array.from(C.querySelectorAll('[data-slot="sidebar"], [data-slot="sidebar-container"]')):[];for(const g of w)g.style.transition="none";const c=g=>{const y=e(j+(g.clientX-v));C?.style.setProperty("--sidebar-width",`${y}px`)},x=g=>{const y=e(j+(g.clientX-v));n(y);for(const S of w)S.style.transition="";window.removeEventListener("pointermove",c),window.removeEventListener("pointerup",x),window.removeEventListener("pointercancel",x),document.body.style.userSelect="",document.body.style.cursor=""};document.body.style.userSelect="none",document.body.style.cursor="col-resize",window.addEventListener("pointermove",c),window.addEventListener("pointerup",x),window.addEventListener("pointercancel",x)},t[1]=n,t[2]=r,t[3]=l):l=t[3];const a=l;let o;t[4]!==n?(o=()=>{n(192)},t[4]=n,t[5]=o):o=t[5];const u=o;let b;t[6]!==n||t[7]!==r?(b=f=>{if(f.key==="ArrowLeft")n(e(r-Xe));else if(f.key==="ArrowRight")n(e(r+Xe));else if(f.key==="Home")n(192);else if(f.key==="End")n(Me);else return;f.preventDefault()},t[6]=n,t[7]=r,t[8]=b):b=t[8];const p=b,m=e(r);let h;return t[9]!==p||t[10]!==a||t[11]!==u||t[12]!==m?(h={width:m,minWidth:192,maxWidth:Me,wrapperRef:d,onStartResize:a,onKeyDownResize:p,resetWidth:u},t[9]=p,t[10]=a,t[11]=u,t[12]=m,t[13]=h):h=t[13],h}function qs(t){return Math.max(192,Math.min(Me,t))}const st=M.createContext(null);function Js(){const t=M.use(st);if(!t)throw new Error("Layout regions require a Layout");return t}function Qs({children:t,notice:e,outsideOrg:i}){const r=Et(),[n,d]=$e(Ve.sidebarOpen(),!0),l=Zs(),a=Ye({select:m=>yt(m.location.state)}),[o,u]=M.useState(!1);!a&&o&&u(!1);const b=a&&!o?!1:n,p=m=>{if(!a){d(m);return}u(m),m&&!n&&d(!0)};return s.jsx(st,{value:{isMobile:r,resize:l},children:s.jsx(wt,{open:b,onOpenChange:p,children:s.jsxs("div",{className:"app-shell-root flex flex-col h-dvh overflow-hidden",children:[e,s.jsxs("div",{className:"flex flex-1 flex-row min-h-0",children:[!i&&s.jsx(Ws,{}),!r&&(i?.rail??!0)&&s.jsx(tt,{}),s.jsx(Ct,{ref:l.wrapperRef,className:"flex-1 bg-sidebar relative min-h-0",style:{"--sidebar-width":`${l.width}px`,"--sidebar-width-icon":"0px"},children:s.jsx(Cs,{children:t})})]})]})})})}function er(t){const e=I.c(36),{children:i,renderMobile:r}=t,n=X(),{isMobile:d,resize:l}=Js(),{openMobile:a,setOpenMobile:o}=Ze(),u=Ie();let b;e[0]!==o?(b=()=>o(!1),e[0]=o,e[1]=b):b=e[1];const p=b;if(!d){let x;e[2]!==i||e[3]!==u?(x=s.jsx("div",{className:"contents",inert:u,children:i}),e[2]=i,e[3]=u,e[4]=x):x=e[4];let g;e[5]!==l.maxWidth||e[6]!==l.minWidth||e[7]!==l.onKeyDownResize||e[8]!==l.onStartResize||e[9]!==l.resetWidth||e[10]!==l.width?(g=s.jsx(Gs,{width:l.width,minWidth:l.minWidth,maxWidth:l.maxWidth,onPointerDown:l.onStartResize,onKeyDown:l.onKeyDownResize,onDoubleClick:l.resetWidth}),e[5]=l.maxWidth,e[6]=l.minWidth,e[7]=l.onKeyDownResize,e[8]=l.onStartResize,e[9]=l.resetWidth,e[10]=l.width,e[11]=g):g=e[11];let y;return e[12]!==x||e[13]!==g?(y=s.jsxs(s.Fragment,{children:[x,g]}),e[12]=x,e[13]=g,e[14]=y):y=e[14],y}let m;e[15]!==n?(m=n("layouts.shellControls.navigationTitle"),e[15]=n,e[16]=m):m=e[16];let h;e[17]!==m?(h=s.jsx(kt,{className:"sr-only",children:m}),e[17]=m,e[18]=h):h=e[18];let f;e[19]!==p?(f=s.jsx(tt,{onNavigate:p}),e[19]=p,e[20]=f):f=e[20];let v;e[21]!==p||e[22]!==r?(v=r({onClose:p}),e[21]=p,e[22]=r,e[23]=v):v=e[23];let j;e[24]!==v?(j=s.jsx("div",{className:"min-w-0 flex-1",children:v}),e[24]=v,e[25]=j):j=e[25];let C;e[26]!==f||e[27]!==j?(C=s.jsxs("div",{className:"flex h-full min-h-0",children:[f,j]}),e[26]=f,e[27]=j,e[28]=C):C=e[28];let w;e[29]!==h||e[30]!==C?(w=s.jsxs(Ot,{side:"left",hideCloseButton:!0,className:"w-screen max-w-none! p-0",onOpenAutoFocus:tr,children:[h,C]}),e[29]=h,e[30]=C,e[31]=w):w=e[31];let c;return e[32]!==a||e[33]!==o||e[34]!==w?(c=s.jsx(Rt,{open:a,onOpenChange:o,children:w}),e[32]=a,e[33]=o,e[34]=w,e[35]=c):c=e[35],c}function tr(t){return t.preventDefault()}function sr(t){const e=I.c(3),{children:i}=t;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r={background:"transparent",containerType:"inline-size"},e[0]=r):r=e[0];let n;return e[1]!==i?(n=s.jsx(_t,{className:"flex flex-col min-h-0",style:r,children:s.jsx(St,{variant:"plain",className:"bg-sidebar",children:s.jsx("div",{className:"relative flex-1 min-h-0 flex flex-row",children:i})})}),e[1]=i,e[2]=n):n=e[2],n}const Er=Object.assign(Qs,{Sidebar:er,Content:sr});export{Er as L};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,c3 as L,c4 as B,j as c,g4 as q,c9 as y,c7 as b,g3 as K,ca as E,g5 as g,e4 as T,cn as _,cg as U,cr as V}from"./index-
|
|
1
|
+
import{r as s,c3 as L,c4 as B,j as c,g4 as q,c9 as y,c7 as b,g3 as K,ca as E,g5 as g,e4 as T,cn as _,cg as U,cr as V}from"./index-B8QWcTDF.js";var I="Radio",[z,w]=_(I),[H,W]=z(I),P=s.forwardRef((t,d)=>{const{__scopeRadio:o,name:n,checked:e=!1,required:r,disabled:a,value:l="on",onCheck:f,form:R,...v}=t,[p,m]=s.useState(null),i=b(d,x=>m(x)),u=s.useRef(!1),h=p?R||!!p.closest("form"):!0;return c.jsxs(H,{scope:o,checked:e,disabled:a,children:[c.jsx(y.button,{type:"button",role:"radio","aria-checked":e,"data-state":A(e),"data-disabled":a?"":void 0,disabled:a,value:l,...v,ref:i,onClick:E(t.onClick,x=>{e||f?.(),h&&(u.current=x.isPropagationStopped(),u.current||x.stopPropagation())})}),h&&c.jsx(S,{control:p,bubbles:!u.current,name:n,value:l,checked:e,required:r,disabled:a,form:R,style:{transform:"translateX(-100%)"}})]})});P.displayName=I;var k="RadioIndicator",G=s.forwardRef((t,d)=>{const{__scopeRadio:o,forceMount:n,...e}=t,r=W(k,o);return c.jsx(T,{present:n||r.checked,children:c.jsx(y.span,{"data-state":A(r.checked),"data-disabled":r.disabled?"":void 0,...e,ref:d})})});G.displayName=k;var X="RadioBubbleInput",S=s.forwardRef(({__scopeRadio:t,control:d,checked:o,bubbles:n=!0,...e},r)=>{const a=s.useRef(null),l=b(a,r),f=U(o),R=V(d);return s.useEffect(()=>{const v=a.current;if(!v)return;const p=window.HTMLInputElement.prototype,i=Object.getOwnPropertyDescriptor(p,"checked").set;if(f!==o&&i){const u=new Event("click",{bubbles:n});i.call(v,o),v.dispatchEvent(u)}},[f,o,n]),c.jsx(y.input,{type:"radio","aria-hidden":!0,defaultChecked:o,...e,tabIndex:-1,ref:l,style:{...e.style,...R,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});S.displayName=X;function A(t){return t?"checked":"unchecked"}var Y=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],C="RadioGroup",[J]=_(C,[g,w]),j=g(),N=w(),[Q,Z]=J(C),D=s.forwardRef((t,d)=>{const{__scopeRadioGroup:o,name:n,defaultValue:e,value:r,required:a=!1,disabled:l=!1,orientation:f,dir:R,loop:v=!0,onValueChange:p,...m}=t,i=j(o),u=L(R),[h,x]=B({prop:r,defaultProp:e??null,onChange:p,caller:C});return c.jsx(Q,{scope:o,name:n,required:a,disabled:l,value:h,onValueChange:x,children:c.jsx(q,{asChild:!0,...i,orientation:f,dir:u,loop:v,children:c.jsx(y.div,{role:"radiogroup","aria-required":a,"aria-orientation":f,"data-disabled":l?"":void 0,dir:u,...m,ref:d})})})});D.displayName=C;var M="RadioGroupItem",O=s.forwardRef((t,d)=>{const{__scopeRadioGroup:o,disabled:n,...e}=t,r=Z(M,o),a=r.disabled||n,l=j(o),f=N(o),R=s.useRef(null),v=b(d,R),p=r.value===e.value,m=s.useRef(!1);return s.useEffect(()=>{const i=h=>{Y.includes(h.key)&&(m.current=!0)},u=()=>m.current=!1;return document.addEventListener("keydown",i),document.addEventListener("keyup",u),()=>{document.removeEventListener("keydown",i),document.removeEventListener("keyup",u)}},[]),c.jsx(K,{asChild:!0,...l,focusable:!a,active:p,children:c.jsx(P,{disabled:a,required:r.required,checked:p,...f,...e,name:r.name,ref:v,onCheck:()=>r.onValueChange(e.value),onKeyDown:E(i=>{i.key==="Enter"&&i.preventDefault()}),onFocus:E(e.onFocus,()=>{m.current&&R.current?.click()})})})});O.displayName=M;var $="RadioGroupIndicator",F=s.forwardRef((t,d)=>{const{__scopeRadioGroup:o,...n}=t,e=N(o);return c.jsx(G,{...e,...n,ref:d})});F.displayName=$;var oe=D,re=O,te=F;export{re as I,oe as R,te as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as f,a6 as h,h6 as d,j as g,N as m,ag as p,a2 as j}from"./index-
|
|
1
|
+
import{c as f,a6 as h,h6 as d,j as g,N as m,ag as p,a2 as j}from"./index-B8QWcTDF.js";import{L as v}from"./legacy-main-redirect-BCdGz2kc.js";import"./thread-route-Iay6zzQH.js";const x=j("/shell/$org/org-shell/");function L(){const t=f.c(19),{org:a}=h(),l=x.useSearch(),{main:i,virtualmcpid:o}=l;if(i!==void 0){let e;t[0]!==i||t[1]!==a.slug||t[2]!==l||t[3]!==o?(e=d({org:a.slug,agentId:o,main:i,search:l}),t[0]=i,t[1]=a.slug,t[2]=l,t[3]=o,t[4]=e):e=t[4];const s=e;if(s?.kind==="canonical"){let r;return t[5]!==s?(r=g.jsx(v,{target:s}),t[5]=s,t[6]=r):r=t[6],r}}let n;t[7]!==o?(n=o?.trim()||null,t[7]=o,t[8]=n):n=t[8];const u=n;if(u){let e;t[9]!==a.slug||t[10]!==u?(e={org:a.slug,agentId:u},t[9]=a.slug,t[10]=u,t[11]=e):e=t[11];let s;t[12]!==l?(s={...l,virtualmcpid:void 0},t[12]=l,t[13]=s):s=t[13];let r;return t[14]!==e||t[15]!==s?(r=g.jsx(m,{to:p.projects,params:e,search:s,hash:!0,replace:!0}),t[14]=e,t[15]=s,t[16]=r):r=t[16],r}let c;return t[17]!==a.slug?(c=g.jsx(m,{to:p.home,params:{org:a.slug},search:N,hash:!0,replace:!0}),t[17]=a.slug,t[18]=c):c=t[18],c}function N(t){return{...t,virtualmcpid:void 0}}export{L as default};
|