decocms 3.10.3 → 3.12.0
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-DQ3zaMns.js → AlertCircle-l0Fpo8hU.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-UT01ancE.js → ArrowUpRight-nFWH1Ez9.js} +1 -1
- package/dist/client/assets/{Check-DCJCCJt5.js → Check-c_jJpxb1.js} +1 -1
- package/dist/client/assets/{CheckCircle-CN8csJmd.js → CheckCircle-38u06F5f.js} +1 -1
- package/dist/client/assets/{ChevronDown-vntP1LF0.js → ChevronDown-BD_mAbO2.js} +1 -1
- package/dist/client/assets/{ChevronLeft-_4tt3JbP.js → ChevronLeft-CpIXC6Gs.js} +1 -1
- package/dist/client/assets/{ChevronRight-BD7fiLv7.js → ChevronRight-DLrAfqVe.js} +1 -1
- package/dist/client/assets/{ChevronUp-B9NZzlEX.js → ChevronUp-CSbcB5D_.js} +1 -1
- package/dist/client/assets/{Container-DlDQbtuJ.js → Container-DhunwrH9.js} +1 -1
- package/dist/client/assets/{DotsVertical-DDPFnnRS.js → DotsVertical-Drb9z9hu.js} +1 -1
- package/dist/client/assets/{Eye-ogI2y4CN.js → Eye-cKsI4OxT.js} +1 -1
- package/dist/client/assets/{FilterLines-DpUfIC-u.js → FilterLines-BiHh13xm.js} +1 -1
- package/dist/client/assets/{Globe01-C2fKyC2-.js → Globe01-BqxI6QZP.js} +1 -1
- package/dist/client/assets/{HardDrive-Ik-OtFON.js → HardDrive-BwbAMrUb.js} +1 -1
- package/dist/client/assets/{Key01-CmprkySl.js → Key01-qQx1LV2o.js} +1 -1
- package/dist/client/assets/{LayoutLeft-BO92HMhM.js → LayoutLeft-CpIWBcma.js} +1 -1
- package/dist/client/assets/{LinkExternal01-9W209kLr.js → LinkExternal01-CXoDDgz6.js} +1 -1
- package/dist/client/assets/{Monitor01-B0FKK9nk.js → Monitor01-DdJ7wtCm.js} +1 -1
- package/dist/client/assets/{Palette-OtFJ1ywH.js → Palette-B-k8xsYD.js} +1 -1
- package/dist/client/assets/{Play-B9TsjtCB.js → Play-CjnZZCXU.js} +1 -1
- package/dist/client/assets/{Plus-BnGx63GX.js → Plus-DhX2w18y.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-Dk9AOo-m.js → RefreshCcw01-COCceFoS.js} +1 -1
- package/dist/client/assets/{SearchMd-CxJnyPJ2.js → SearchMd-DrKxcX2-.js} +1 -1
- package/dist/client/assets/{Settings02-PSRUEgfS.js → Settings02-YFMXLzh7.js} +1 -1
- package/dist/client/assets/{Shield01-Do71Dyqk.js → Shield01-C0lG89zR.js} +1 -1
- package/dist/client/assets/{Star01-Cu6cUuhf.js → Star01-DSZcWlXz.js} +1 -1
- package/dist/client/assets/{Stars01-BuMp0jeZ.js → Stars01-CJvAL1Fd.js} +1 -1
- package/dist/client/assets/{Stars02-Bo6vryYW.js → Stars02-BZvUEwJW.js} +1 -1
- package/dist/client/assets/{Sun-Bg1tFzcn.js → Sun-Bc4Ui5gi.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-BjgMZfW7.js → SwitchHorizontal01-Dh0Hb3Cs.js} +1 -1
- package/dist/client/assets/{Tool01-DRibBi0T.js → Tool01-C6w2kT2d.js} +1 -1
- package/dist/client/assets/{Trash01-DfuJtop_.js → Trash01-CicwXof9.js} +1 -1
- package/dist/client/assets/{Upload01-DGWS8Icx.js → Upload01-Cjsy_A0C.js} +1 -1
- package/dist/client/assets/{User01-B1RcIkcM.js → User01-C-Fxjmsz.js} +1 -1
- package/dist/client/assets/{Users01-CyxI-ZiC.js → Users01-Bcdl2fo8.js} +1 -1
- package/dist/client/assets/{Users03-DhXF_0sH.js → Users03-BQUStXwY.js} +1 -1
- package/dist/client/assets/{X-COnjMnsv.js → X-BZgcfyxc.js} +1 -1
- package/dist/client/assets/{XCircle-BvIhN4E7.js → XCircle-DZXIRf5B.js} +1 -1
- package/dist/client/assets/{XClose-CXacF9IM.js → XClose-BJgeWVDy.js} +1 -1
- package/dist/client/assets/{Zap-BM6RWRPw.js → Zap-DHRMF6hr.js} +1 -1
- package/dist/client/assets/{ZapSquare-C79zBXJj.js → ZapSquare-DHYwZGs3.js} +1 -1
- package/dist/client/assets/{ZoomOut-B5B07_-g.js → ZoomOut-DUCp8Gob.js} +1 -1
- package/dist/client/assets/{access-gate-BHd_MMZj.js → access-gate-D3K4mW0p.js} +1 -1
- package/dist/client/assets/accordion-Dczz3n4d.js +1 -0
- package/dist/client/assets/add-section-modal-UjRtSYXi.js +1 -0
- package/dist/client/assets/{agent-capabilities-BQdt-MuJ.js → agent-capabilities-CTp309mj.js} +2 -2
- package/dist/client/assets/{agent-icon-DFJgaXFK.js → agent-icon-BGlV6q8v.js} +1 -1
- package/dist/client/assets/{agent-icons-CkZUPYja.js → agent-icons-D51QBNe2.js} +1 -1
- package/dist/client/assets/{agents-list-DNyHPwF6.js → agents-list-BDjAtGII.js} +1 -1
- package/dist/client/assets/{ai-providers-D3kDr_eM.js → ai-providers-C5FRtqVa.js} +1 -1
- package/dist/client/assets/{alert-kxVKcfjz.js → alert-C2SAdiMn.js} +1 -1
- package/dist/client/assets/{alert-dialog-BpOf9MAK.js → alert-dialog-CfIqXXf0.js} +1 -1
- package/dist/client/assets/app-editor-BtCGiT5R.js +1 -0
- package/dist/client/assets/{auth-catchall-0zpjCrAp.js → auth-catchall-BNIV3K68.js} +1 -1
- package/dist/client/assets/{auth-split-layout-qhIpjF8b.js → auth-split-layout-Ur7ekzLQ.js} +1 -1
- package/dist/client/assets/{automation-list-row-CPxwK1jZ.js → automation-list-row-BI945zvy.js} +1 -1
- package/dist/client/assets/{automation-runs-W1XLcZy_.js → automation-runs-BYBNQ-JJ.js} +1 -1
- package/dist/client/assets/{automations-D1j8zNJi.js → automations-BS4h-ogy.js} +1 -1
- package/dist/client/assets/{avatar-CuZPsvd7.js → avatar-CV-HskE0.js} +1 -1
- package/dist/client/assets/{badge-BCXaZ3jr.js → badge-BIbhtFGp.js} +1 -1
- package/dist/client/assets/{brand-context-BMZ4j5vM.js → brand-context-DoHj9jxR.js} +1 -1
- package/dist/client/assets/{buckets-DsWGuu5e.js → buckets-3KyheLMz.js} +1 -1
- package/dist/client/assets/{calendar-DfGnEJr6.js → calendar-anoyFX3_.js} +1 -1
- package/dist/client/assets/{capability-load-error-DjoRzFiH.js → capability-load-error-5fpCsl-E.js} +1 -1
- package/dist/client/assets/{card-DsraaOS_.js → card-clJ4_TXy.js} +1 -1
- package/dist/client/assets/{chat-context-CL-ll6R6.js → chat-context-CMCmhu0x.js} +7 -7
- package/dist/client/assets/{checkbox-4DJ-sElS.js → checkbox-D5ZsgUiL.js} +1 -1
- package/dist/client/assets/{cli-auth-success-BVgFFt5r.js → cli-auth-success-DUs_glfQ.js} +1 -1
- package/dist/client/assets/{collection-detail-DS5E30Me.js → collection-detail-DoORbeIU.js} +1 -1
- package/dist/client/assets/{collection-display-button-C-mBXp6g.js → collection-display-button-BHU3gVjd.js} +1 -1
- package/dist/client/assets/{collection-search-CljcPIbT.js → collection-search-XnV7IoL4.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-DO_P7QvK.js → collection-table-wrapper-Def6_fTh.js} +1 -1
- package/dist/client/assets/{collection-tabs-BgZPPjBK.js → collection-tabs-BL5EWXFo.js} +1 -1
- package/dist/client/assets/{collections-C8UGR0dQ.js → collections-CjrPw-fH.js} +1 -1
- package/dist/client/assets/{command-Cwxrfu8T.js → command-xElkUveT.js} +1 -1
- package/dist/client/assets/{connect-desktop-dialog-CAgFYUmf.js → connect-desktop-dialog-z9_d2OMY.js} +1 -1
- package/dist/client/assets/{connection-card-Dmrkhocz.js → connection-card-CdjjPmMy.js} +1 -1
- package/dist/client/assets/connection-detail-CLkds3z5.js +1 -0
- package/dist/client/assets/connection-form-helpers-x6Qv_JQD.js +1 -0
- package/dist/client/assets/connections-scTFfwYa.js +1 -0
- package/dist/client/assets/constants-_NfKPeA7.js +10 -0
- package/dist/client/assets/{decopilot-sse-pool-DIAcxt2i.js → decopilot-sse-pool-uVjHemnd.js} +1 -1
- package/dist/client/assets/{dialog-J9xRnRHX.js → dialog-DAZt_PYz.js} +1 -1
- package/dist/client/assets/{domain-settings-Cq5_HOtz.js → domain-settings-BeuJal2Z.js} +1 -1
- package/dist/client/assets/{drawer-NwIwuvOD.js → drawer-DgVqJYUv.js} +1 -1
- package/dist/client/assets/{dropdown-menu-Do65ajnt.js → dropdown-menu-D8Jq0EXH.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-DYQZtWgt.js → dynamic-plugin-layout-DfSmXQDS.js} +1 -1
- package/dist/client/assets/{empty-state-BqVzURvi.js → empty-state-ClDtXUcE.js} +1 -1
- package/dist/client/assets/{empty-state-Dl_snts0.js → empty-state-D2uf8sZL.js} +1 -1
- package/dist/client/assets/{extract-connection-data-J0nLi0pB.js → extract-connection-data-CXd7xn8D.js} +1 -1
- package/dist/client/assets/features-D5HpJxEl.js +1 -0
- package/dist/client/assets/{file-explorer-B3VjqNs-.js → file-explorer-0O3gnUbG.js} +2 -2
- package/dist/client/assets/{file-type-icon-DPEVE6_q.js → file-type-icon-CM5FDHHb.js} +1 -1
- package/dist/client/assets/{files-DFPQhmGr.js → files-CbWK6Oem.js} +1 -1
- package/dist/client/assets/{form-C4TJnG5K.js → form-Bom2oLZH.js} +1 -1
- package/dist/client/assets/{general-B4bDWRqK.js → general-C1lfdTH5.js} +1 -1
- package/dist/client/assets/{generate-id-C8OHZs1-.js → generate-id-Bloedyht.js} +1 -1
- package/dist/client/assets/{github-repo-picker-BXy4amYZ.js → github-repo-picker-BLseIx3l.js} +2 -2
- package/dist/client/assets/{header-tab-button-CfRERpsl.js → header-tab-button-HHwdKYUp.js} +3 -3
- package/dist/client/assets/{hover-card-CzsSQjRq.js → hover-card-BbAh8d7J.js} +1 -1
- package/dist/client/assets/{image-field-ixadfB5p.js → image-field-A74OnXkk.js} +1 -1
- package/dist/client/assets/{index-CtCZ2lVU.js → index-BztCosFc.js} +12 -12
- package/dist/client/assets/{index-CPhpCeI1.js → index-CRqPsUNG.js} +23 -23
- package/dist/client/assets/{index-DSVt98oz.js → index-Cwch4eob.js} +1 -1
- package/dist/client/assets/{index-FjrzqkXH.js → index-DFAITwpu.js} +1 -1
- package/dist/client/assets/{index-2TKWj64n.js → index-DKNjAJFI.js} +1 -1
- package/dist/client/assets/{index-bbsI4OK2.js → index-DNtm0JLi.js} +1 -1
- package/dist/client/assets/{index-CjY_0Wnz.js → index-DRh6u24v.js} +1 -1
- package/dist/client/assets/{index-Bx5wFMxU.js → index-DV3Yfg7N.js} +1 -1
- package/dist/client/assets/{index-DgQteD84.js → index-DdDGbzVq.js} +1 -1
- package/dist/client/assets/{index-BQhstHsz.js → index-DlenCt7g.js} +1 -1
- package/dist/client/assets/{index-jPAWrqoL.js → index-DoK0XiUD.js} +1 -1
- package/dist/client/assets/{index-hwNqvXOX.js → index-DtS-92Oz.js} +1 -1
- package/dist/client/assets/{index-C3EQc9K0.js → index-eZWazEyz.js} +4 -4
- package/dist/client/assets/{index-B9kRhzg7.js → index-kq5yUS_7.js} +30 -30
- package/dist/client/assets/{index-redirect-Cu5slcp-.js → index-redirect-BE0FdN2x.js} +1 -1
- package/dist/client/assets/{index-X8qPybJt.js → index-u752Wts1.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-Xb1xysnw.js → infiniteQueryObserver-BMRPwu0B.js} +1 -1
- package/dist/client/assets/{input-DCOoktZX.js → input-CwrS-iub.js} +1 -1
- package/dist/client/assets/{integration-icon-D0rRtQFH.js → integration-icon-CpXFY6_W.js} +1 -1
- package/dist/client/assets/{label-dlG4_xKf.js → label-CLJ0AedA.js} +1 -1
- package/dist/client/assets/{layout-CqY1dIbQ.js → layout-CRFmyheT.js} +1 -1
- package/dist/client/assets/{login-D5Kc2gHp.js → login-ZDQxXAlc.js} +1 -1
- package/dist/client/assets/{members-CtWFCCAM.js → members-CETsRg6c.js} +2 -2
- package/dist/client/assets/{monaco-editor-C03OGypq.js → monaco-editor-DqjxL8qC.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-B5_JF7d0.js → monitoring-stats-row-BtrtxUC2.js} +1 -1
- package/dist/client/assets/{oauth-callback-Bq0llziz.js → oauth-callback-DKUIBnJx.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-Dqhr4g5S.js → oauth-callback-ai-provider-CQsd2o0a.js} +1 -1
- package/dist/client/assets/{onboarding-B8asD6BW.js → onboarding-Dp9u-AR8.js} +1 -1
- package/dist/client/assets/org-install-B0DdE2Cp.js +1 -0
- package/dist/client/assets/{org-layout-_HQPGRGc.js → org-layout-CbZhwhjC.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-CrzvtX56.js → org-plugin-layout-nvcLwDDm.js} +1 -1
- package/dist/client/assets/{page-seo-form-DgC67IZh.js → page-seo-form-BfAIN8Sl.js} +1 -1
- package/dist/client/assets/page-seo-sheet-1M0ZQCXy.js +1 -0
- package/dist/client/assets/{pair-ETmN3fj_.js → pair-Ddwa7ge4.js} +5 -5
- package/dist/client/assets/{plugin-empty-state-rsU-dNVu.js → plugin-empty-state-DIWYp1SI.js} +1 -1
- package/dist/client/assets/{plugin-header-D7vi3yKZ.js → plugin-header-BK3X79ek.js} +1 -1
- package/dist/client/assets/{plugin-layout-CNRc47uO.js → plugin-layout-G84GIXAW.js} +1 -1
- package/dist/client/assets/{popover-Dinj8RAt.js → popover-DsfanlnP.js} +1 -1
- package/dist/client/assets/{post-editor-D_b2wd_z.js → post-editor-HYnj9aMU.js} +3 -3
- package/dist/client/assets/{primitives-DqpziEOx.js → primitives-h_5eGcD7.js} +1 -1
- package/dist/client/assets/{profile-p9UvcTh7.js → profile-C_EEhrOq.js} +1 -1
- package/dist/client/assets/project-app-view-ClBF_FE1.js +1 -0
- package/dist/client/assets/record-editor-D_XxtmM1.js +1 -0
- package/dist/client/assets/registry-DuikH1Le.js +2 -0
- package/dist/client/assets/registry-layout-ClLggzAs.js +27 -0
- package/dist/client/assets/{require-capability-DjstlBCS.js → require-capability-B9yp1djm.js} +1 -1
- package/dist/client/assets/{required-auth-layout-DQ_j0OWf.js → required-auth-layout-BsLlfTDJ.js} +1 -1
- package/dist/client/assets/{reset-password-PhkeCWUg.js → reset-password-C2JTjbtA.js} +1 -1
- package/dist/client/assets/{resizable-CEMGS5N9.js → resizable-Bos_97Hr.js} +1 -1
- package/dist/client/assets/{roles-C9PxfSEA.js → roles-CBUmzMVz.js} +1 -1
- package/dist/client/assets/{save-status-BCvLZZx5.js → save-status-BbK1RQSX.js} +1 -1
- package/dist/client/assets/{schema-form-ETVh-DHz.js → schema-form-CUO9haBq.js} +1 -1
- package/dist/client/assets/{scroll-area-DSB3avJ3.js → scroll-area-Cq2TqSe0.js} +1 -1
- package/dist/client/assets/{search-input-Dny3m5xa.js → search-input-W-g6XRjC.js} +1 -1
- package/dist/client/assets/{secrets-CWGMYwDs.js → secrets-BDICEFKM.js} +1 -1
- package/dist/client/assets/{sections-editor-rkPkrwr9.js → sections-editor-BaZsoyW0.js} +1 -1
- package/dist/client/assets/select-ci3BSqp5.js +1 -0
- package/dist/client/assets/{select-model-BLCOUHJb.js → select-model-DHOmXmSc.js} +1 -1
- package/dist/client/assets/{seo-editor-Dv6Vrh4r.js → seo-editor-BbPcLsSR.js} +1 -1
- package/dist/client/assets/{settings-layout-D33DplHx.js → settings-layout-JiHWSow4.js} +1 -1
- package/dist/client/assets/{settings-section-Bx1_7ym7.js → settings-section-x9o4zXy4.js} +1 -1
- package/dist/client/assets/{sheet-BLkB41eQ.js → sheet-BwdJHIyp.js} +1 -1
- package/dist/client/assets/{shell-controls-yn92xA7D.js → shell-controls-Bk1-5JuX.js} +1 -1
- package/dist/client/assets/shell-layout-BSanGTZR.js +1 -0
- package/dist/client/assets/shell-route-loading-Oji4SthS.js +1 -0
- package/dist/client/assets/{sidebar-BMIDAt6t.js → sidebar-CZfP1p-N.js} +1 -1
- package/dist/client/assets/{skeleton-KI9W-P-f.js → skeleton-C868IqtJ.js} +1 -1
- package/dist/client/assets/{sortable.esm-tovEx4aa.js → sortable.esm-D3VtLwMe.js} +1 -1
- package/dist/client/assets/{spinner-1Hxy4oL5.js → spinner-DFgihVtE.js} +1 -1
- package/dist/client/assets/{sso-D_4gD-Yv.js → sso-Dd4ntKKA.js} +1 -1
- package/dist/client/assets/{store-DeB9eSSk.js → store-WLHJZJYL.js} +1 -1
- package/dist/client/assets/store-registry-Bipqg_S3.js +2 -0
- package/dist/client/assets/{switch-BtXimVeh.js → switch-dV1jxIo5.js} +1 -1
- package/dist/client/assets/{tab-id-DiLpeikj.js → tab-id-DQ11sDJ5.js} +1 -1
- package/dist/client/assets/{table-CZLBrik6.js → table-CHKmKoKb.js} +1 -1
- package/dist/client/assets/{tabs-DGoyKbi9.js → tabs-CSjv4io2.js} +1 -1
- package/dist/client/assets/{task-status-nPHS0i2v.js → task-status-CAwvZzfY.js} +1 -1
- package/dist/client/assets/{textarea-CaPEW-IU.js → textarea-CSfWC_ri.js} +1 -1
- package/dist/client/assets/{toggle-group-kjmQGkBo.js → toggle-group-D1uW02Dw.js} +1 -1
- package/dist/client/assets/{toolbar-CuMC4awt.js → toolbar-C_QNuxJc.js} +1 -1
- package/dist/client/assets/{tools-list-CCmWgH3U.js → tools-list-DSls0TxE.js} +1 -1
- package/dist/client/assets/{tooltip-Cx8u2hvs.js → tooltip-DjBYlSjK.js} +1 -1
- package/dist/client/assets/{types-CZnHlJyi.js → types-I4bGGmPg.js} +19 -19
- package/dist/client/assets/{use-ai-providers-CmWP-lNT.js → use-ai-providers-BdU26Ah1.js} +1 -1
- package/dist/client/assets/{use-automations-Bi6clolz.js → use-automations-DOs6eBSZ.js} +1 -1
- package/dist/client/assets/{use-capability-B6JwqpW7.js → use-capability-Dzq6Bisq.js} +1 -1
- package/dist/client/assets/use-collections-VJ2gqsdi.js +1 -0
- package/dist/client/assets/{use-connection-DkHV4tpA.js → use-connection-CXK4eJ8D.js} +1 -1
- package/dist/client/assets/{use-copy-BKH_ay1V.js → use-copy-DNF_xTyk.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-UfIRObXS.js → use-create-virtual-mcp-YcZkU7UR.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-BTVTsOKV.js → use-debounced-autosave-B3zncsM_.js} +1 -1
- package/dist/client/assets/use-delete-connection-BwHdKngt.js +1 -0
- package/dist/client/assets/{use-file-configs-DC8U7Oa7.js → use-file-configs-DkyMSTLH.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-DV-4RP03.js → use-infinite-scroll-HH8GENKX.js} +1 -1
- package/dist/client/assets/{use-list-state-Mwh_8jAB.js → use-list-state-DTTdz8wm.js} +1 -1
- package/dist/client/assets/use-mcp-prompts-CVpfcaNj.js +1 -0
- package/dist/client/assets/use-mcp-tools-PoAtDkM2.js +1 -0
- package/dist/client/assets/{use-members-CtpiNo8J.js → use-members-BtoFg3-I.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-C81Y1E7k.js → use-navigate-to-agent-C9nwjmya.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-DVt08ImK.js → use-org-auth-client-q5-USMbu.js} +1 -1
- package/dist/client/assets/{use-org-sso-B96bQNMI.js → use-org-sso-zB87Inuk.js} +1 -1
- package/dist/client/assets/{use-organization-roles-DRbW9m6o.js → use-organization-roles-Bye-MpK5.js} +1 -1
- package/dist/client/assets/{use-organization-settings-BDlR4IeW.js → use-organization-settings--vsQI-Ms.js} +1 -1
- package/dist/client/assets/{use-registry-connections-BCrdHAv1.js → use-registry-connections-BYv9Ob-m.js} +1 -1
- package/dist/client/assets/{use-secrets-ODuzEevV.js → use-secrets-uqIdLNLc.js} +1 -1
- package/dist/client/assets/{use-status-sounds-DEheRMHk.js → use-status-sounds-DrT-Tr09.js} +1 -1
- package/dist/client/assets/{use-view-mode-BoGNEuZa.js → use-view-mode-Cp1ETvgV.js} +1 -1
- package/dist/client/assets/use-virtual-mcp-z0hFit1f.js +1 -0
- package/dist/client/assets/useInfiniteQuery-JptJrV0H.js +1 -0
- package/dist/client/assets/{useRouterState-BRj2kxuq.js → useRouterState-fo-Z74Ek.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-Dg59byu5.js +1 -0
- package/dist/client/assets/{user-C5EKJb7v.js → user-DIXNb7DL.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-DbMrI7Rd.js → view-mode-toggle-BaN0GlRl.js} +1 -1
- package/dist/client/assets/{workflow-DyKfGm6u.js → workflow-CE3SA7F3.js} +1 -1
- package/dist/client/assets/workflow-detail-CL1QoJdW.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +425 -415
- package/dist/server/migrate.js +57 -57
- package/dist/server/server.js +288 -278
- package/package.json +1 -1
- package/dist/client/assets/accordion-BelQbjLG.js +0 -1
- package/dist/client/assets/add-section-modal-ClL4Powp.js +0 -1
- package/dist/client/assets/app-editor-D9kT95TJ.js +0 -1
- package/dist/client/assets/connection-detail-DWDzLFqi.js +0 -1
- package/dist/client/assets/connection-form-helpers-BL61O5Zc.js +0 -1
- package/dist/client/assets/connections-uscIXarN.js +0 -1
- package/dist/client/assets/constants-BFQrPD6r.js +0 -10
- package/dist/client/assets/features-B1yvHilR.js +0 -1
- package/dist/client/assets/org-install-Chh9koDm.js +0 -1
- package/dist/client/assets/page-seo-sheet-Dra624a7.js +0 -1
- package/dist/client/assets/project-app-view-uOoeNe2E.js +0 -1
- package/dist/client/assets/record-editor-CMLZ85jn.js +0 -1
- package/dist/client/assets/registry-aoqZ94q5.js +0 -2
- package/dist/client/assets/registry-layout-CEjdQi8i.js +0 -27
- package/dist/client/assets/select-CVZQAcm7.js +0 -1
- package/dist/client/assets/shell-layout-v69WfJwF.js +0 -1
- package/dist/client/assets/shell-route-loading-DqEXsH0r.js +0 -1
- package/dist/client/assets/store-registry-s8ISYHIv.js +0 -2
- package/dist/client/assets/use-collections-C1EEoGdl.js +0 -1
- package/dist/client/assets/use-delete-connection-D9RSUNNZ.js +0 -1
- package/dist/client/assets/use-mcp-prompts-CeFy4g83.js +0 -1
- package/dist/client/assets/use-mcp-tools-BS9dyBS-.js +0 -1
- package/dist/client/assets/use-virtual-mcp-CtYRrEgz.js +0 -1
- package/dist/client/assets/useInfiniteQuery-B2j87XPZ.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BbIHskrR.js +0 -1
- package/dist/client/assets/workflow-detail-DBpAT1yB.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as n,c as f,j as i,
|
|
1
|
+
import{e as n,c as f,j as i,dc as N,cx as y,bE as S,dd as v,cy as $,de as C,cz as w}from"./index-kq5yUS_7.js";import{i as z}from"./X-BZgcfyxc.js";function D(o){const e=n.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let s;return e[2]!==t?(s=i.jsx(y,{"data-slot":"sheet",...t}),e[2]=t,e[3]=s):s=e[3],s}function k(o){const e=n.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let s;return e[2]!==t?(s=i.jsx($,{"data-slot":"sheet-portal",...t}),e[2]=t,e[3]=s):s=e[3],s}function E(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=f("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx(w,{"data-slot":"sheet-overlay",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function O(o){const e=n.c(20);let t,s,a,l,c;e[0]!==o?({className:s,children:t,side:l,hideCloseButton:c,...a}=o,e[0]=o,e[1]=t,e[2]=s,e[3]=a,e[4]=l,e[5]=c):(t=e[1],s=e[2],a=e[3],l=e[4],c=e[5]);const p=l===void 0?"right":l,h=c===void 0?!1:c;let m;e[6]===Symbol.for("react.memo_cache_sentinel")?(m=i.jsx(E,{}),e[6]=m):m=e[6];const x=p==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",b=p==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",g=p==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",j=p==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t";let r;e[7]!==s||e[8]!==x||e[9]!==b||e[10]!==g||e[11]!==j?(r=f("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-200 data-[state=open]:duration-200",x,b,g,j,s),e[7]=s,e[8]=x,e[9]=b,e[10]=g,e[11]=j,e[12]=r):r=e[12];let d;e[13]!==h?(d=!h&&i.jsxs(C,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[i.jsx(z,{className:"size-4"}),i.jsx("span",{className:"sr-only",children:"Close"})]}),e[13]=h,e[14]=d):d=e[14];let u;return e[15]!==t||e[16]!==a||e[17]!==r||e[18]!==d?(u=i.jsxs(k,{children:[m,i.jsxs(S,{"data-slot":"sheet-content",className:r,...a,children:[t,d]})]}),e[15]=t,e[16]=a,e[17]=r,e[18]=d,e[19]=u):u=e[19],u}function P(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=f("flex flex-col gap-1.5 p-4",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx("div",{"data-slot":"sheet-header",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function T(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=f("text-foreground font-semibold",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx(N,{"data-slot":"sheet-title",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}function _(o){const e=n.c(8);let t,s;e[0]!==o?({className:t,...s}=o,e[0]=o,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=f("text-muted-foreground text-sm",t),e[3]=t,e[4]=a):a=e[4];let l;return e[5]!==s||e[6]!==a?(l=i.jsx(v,{"data-slot":"sheet-description",className:a,...s}),e[5]=s,e[6]=a,e[7]=l):l=e[7],l}export{T as S,O as a,D as b,_ as c,P as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as f,j as a}from"./index-
|
|
1
|
+
import{e as f,j as a}from"./index-kq5yUS_7.js";import{S as d,a as p,b as S}from"./sheet-BwdJHIyp.js";import{u as b}from"./sidebar-CZfP1p-N.js";import{i as h}from"./LayoutLeft-CpIWBcma.js";import{T as u}from"./toolbar-C_QNuxJc.js";function M(){const t=f.c(3),{toggleSidebar:e}=b();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=a.jsx(h,{size:16}),t[0]=o):o=t[0];let s;return t[1]!==e?(s=a.jsx(u,{onClick:e,"aria-label":"Toggle sidebar",children:o}),t[1]=e,t[2]=s):s=t[2],s}function _(t){const e=f.c(12),{renderSidebar:o}=t,{openMobile:s,setOpenMobile:i}=b();let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=a.jsx(d,{className:"sr-only",children:"Navigation"}),e[0]=c):c=e[0];let l;e[1]!==i?(l=()=>i(!1),e[1]=i,e[2]=l):l=e[2];let r;e[3]!==o||e[4]!==l?(r=o({onClose:l}),e[3]=o,e[4]=l,e[5]=r):r=e[5];let n;e[6]!==r?(n=a.jsxs(p,{side:"left",hideCloseButton:!0,className:"w-[calc(100vw-3rem)] sm:max-w-md! p-0",children:[c,r]}),e[6]=r,e[7]=n):n=e[7];let m;return e[8]!==s||e[9]!==i||e[10]!==n?(m=a.jsx(S,{open:s,onOpenChange:i,children:n}),e[8]=s,e[9]=i,e[10]=n,e[11]=m):m=e[11],m}export{_ as M,M as S};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as k,a as Z,j as o,B as E,bJ as Y,o as Q,F as re,b as W,a4 as pe,s as le,K as ne,L as K,r as B,bK as xe,bL as ye,n as ce,f as be,q as we,g as de,d as Se,a0 as je,bM as ve,bN as se,bO as ke,bP as Ne,S as Oe,O as _e,bQ as Ce}from"./index-kq5yUS_7.js";import{A as ue}from"./avatar-CV-HskE0.js";import{t as Ae,a as Ee}from"./Users03-BQUStXwY.js";import{i as $e,a as ze,s as R,n as Te}from"./Stars02-BZvUEwJW.js";import{s as Me}from"./XClose-BJgeWVDy.js";import{i as G}from"./CheckCircle-38u06F5f.js";import{i as oe}from"./FilterLines-BiHh13xm.js";import{i as X}from"./Zap-DHRMF6hr.js";import{a as Ie,b as Fe,c as Le,D as Pe}from"./dialog-DAZt_PYz.js";import{R as De}from"./required-auth-layout-BsLlfTDJ.js";import{s as Re,n as Ke,v as qe,A as He}from"./tab-id-DQ11sDJ5.js";import{g as Ue}from"./constants-_NfKPeA7.js";import{c as Ge}from"./use-organization-settings--vsQI-Ms.js";import{u as Be}from"./use-org-sso-zB87Inuk.js";function We(t){const e=k.c(27),{orgName:n,orgSlug:s,orgLogo:r,domain:a}=t;let i;e[0]!==s?(i={mutationFn:async()=>{const b=await fetch("/api/auth/custom/domain-join",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({organizationSlug:s})}),v=await b.json();if(!b.ok||!v.success)throw new Error(v.error??"Failed to join organization");return v},onSuccess:b=>{window.location.href=`/${b.slug??s}`},onError:Ye},e[0]=s,e[1]=i):i=e[1];const l=Z(i),d=Je;let c;e[2]!==r||e[3]!==n?(c=r?o.jsx(ue,{url:r,fallback:n.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):o.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:o.jsx(Ae,{className:"h-6 w-6 text-primary"})}),e[2]=r,e[3]=n,e[4]=c):c=e[4];let m;e[5]!==n?(m=o.jsxs("h3",{className:"text-lg font-medium",children:["Join ",n,"?"]}),e[5]=n,e[6]=m):m=e[6];let u;e[7]!==a?(u=o.jsxs("p",{className:"text-sm text-muted-foreground",children:["Anyone with an ",o.jsxs("strong",{children:["@",a]})," email can join this organization."]}),e[7]=a,e[8]=u):u=e[8];let p;e[9]!==m||e[10]!==u?(p=o.jsxs("div",{className:"space-y-2",children:[m,u]}),e[9]=m,e[10]=u,e[11]=p):p=e[11];let h;e[12]!==l?(h=()=>l.mutate(),e[12]=l,e[13]=h):h=e[13];const x=l.isPending?"Joining…":`Enter ${n}`;let f;e[14]!==l.isPending||e[15]!==h||e[16]!==x?(f=o.jsx(E,{onClick:h,disabled:l.isPending,children:x}),e[14]=l.isPending,e[15]=h,e[16]=x,e[17]=f):f=e[17];let g;e[18]!==l.isPending?(g=o.jsx(E,{variant:"ghost",onClick:d,disabled:l.isPending,children:"Go to home"}),e[18]=l.isPending,e[19]=g):g=e[19];let y;e[20]!==f||e[21]!==g?(y=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[f,g]}),e[20]=f,e[21]=g,e[22]=y):y=e[22];let S;return e[23]!==y||e[24]!==c||e[25]!==p?(S=o.jsxs(Y,{children:[c,p,y]}),e[23]=y,e[24]=c,e[25]=p,e[26]=S):S=e[26],S}function Je(){window.location.href="/"}function Ye(t){Q.error(t instanceof Error?t.message:"Failed to join organization")}function ae(t){const e=k.c(17),{orgSlug:n,orgName:s,reason:r}=t,a=Qe,i=r==="not-found",l=i?$e:re,d=i?"Organization not found":"No access";let c;e[0]!==i||e[1]!==s||e[2]!==n?(c=i?o.jsxs(o.Fragment,{children:["We couldn't find an organization called ",o.jsx("strong",{children:n}),"."]}):o.jsxs(o.Fragment,{children:["You don't have access to ",o.jsx("strong",{children:s??n}),".",o.jsx("br",{}),"Ask an admin to invite you."]}),e[0]=i,e[1]=s,e[2]=n,e[3]=c):c=e[3];const m=c;let u;e[4]!==l?(u=o.jsx("div",{className:"bg-muted p-3 rounded-full",children:o.jsx(l,{className:"h-6 w-6 text-muted-foreground"})}),e[4]=l,e[5]=u):u=e[5];let p;e[6]!==d?(p=o.jsx("h3",{className:"text-lg font-medium",children:d}),e[6]=d,e[7]=p):p=e[7];let h;e[8]!==m?(h=o.jsx("p",{className:"text-sm text-muted-foreground",children:m}),e[8]=m,e[9]=h):h=e[9];let x;e[10]!==p||e[11]!==h?(x=o.jsxs("div",{className:"space-y-2",children:[p,h]}),e[10]=p,e[11]=h,e[12]=x):x=e[12];let f;e[13]===Symbol.for("react.memo_cache_sentinel")?(f=o.jsx(E,{onClick:a,children:"Go to home"}),e[13]=f):f=e[13];let g;return e[14]!==u||e[15]!==x?(g=o.jsxs(Y,{children:[u,x,f]}),e[14]=u,e[15]=x,e[16]=g):g=e[16],g}function Qe(){window.location.href="/"}function Ve(t){const e=k.c(39),{invitationId:n,orgName:s,orgSlug:r,orgLogo:a}=t;let i;e[0]!==n?(i=async()=>{const T=await W.organization.acceptInvitation({invitationId:n});if(T.error)throw new Error(T.error.message);return T.data},e[0]=n,e[1]=i):i=e[1];let l;e[2]!==r?(l=()=>{pe(),window.location.href=`/${r}`},e[2]=r,e[3]=l):l=e[3];let d;e[4]!==i||e[5]!==l?(d={mutationFn:i,onSuccess:l,onError:et},e[4]=i,e[5]=l,e[6]=d):d=e[6];const c=Z(d);let m;e[7]!==n?(m=async()=>{const T=await W.organization.rejectInvitation({invitationId:n});if(T.error)throw new Error(T.error.message);return T.data},e[7]=n,e[8]=m):m=e[8];let u;e[9]===Symbol.for("react.memo_cache_sentinel")?(u=Ze,e[9]=u):u=e[9];let p;e[10]!==m?(p={mutationFn:m,onSuccess:u,onError:Xe},e[10]=m,e[11]=p):p=e[11];const h=Z(p),x=c.isPending||h.isPending;let f;e[12]!==a||e[13]!==s?(f=a?o.jsx(ue,{url:a,fallback:s.charAt(0).toUpperCase(),shape:"square",size:"base",className:"h-12 w-12"}):o.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:o.jsx(ze,{className:"h-6 w-6 text-primary"})}),e[12]=a,e[13]=s,e[14]=f):f=e[14];let g;e[15]!==s?(g=o.jsxs("h3",{className:"text-lg font-medium",children:["You've been invited to ",o.jsx("strong",{children:s})]}),e[15]=s,e[16]=g):g=e[16];let y;e[17]===Symbol.for("react.memo_cache_sentinel")?(y=o.jsx("p",{className:"text-sm text-muted-foreground",children:"Accept the invitation to join this organization."}),e[17]=y):y=e[17];let S;e[18]!==g?(S=o.jsxs("div",{className:"space-y-2",children:[g,y]}),e[18]=g,e[19]=S):S=e[19];let b;e[20]!==c?(b=()=>c.mutate(),e[20]=c,e[21]=b):b=e[21];const v=c.isPending?"Accepting…":"Accept invitation";let O;e[22]!==x||e[23]!==b||e[24]!==v?(O=o.jsx(E,{onClick:b,disabled:x,children:v}),e[22]=x,e[23]=b,e[24]=v,e[25]=O):O=e[25];let N;e[26]!==h?(N=()=>h.mutate(),e[26]=h,e[27]=N):N=e[27];const w=h.isPending?"Declining…":"Decline";let $;e[28]!==x||e[29]!==N||e[30]!==w?($=o.jsx(E,{variant:"ghost",onClick:N,disabled:x,children:w}),e[28]=x,e[29]=N,e[30]=w,e[31]=$):$=e[31];let z;e[32]!==O||e[33]!==$?(z=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[O,$]}),e[32]=O,e[33]=$,e[34]=z):z=e[34];let _;return e[35]!==S||e[36]!==z||e[37]!==f?(_=o.jsxs(Y,{children:[f,S,z]}),e[35]=S,e[36]=z,e[37]=f,e[38]=_):_=e[38],_}function Xe(t){Q.error(t instanceof Error?t.message:"Failed to decline invitation")}function Ze(){Q.success("Invitation declined"),window.location.href="/"}function et(t){Q.error(t instanceof Error?t.message:"Failed to accept invitation")}function tt(t){const e=k.c(7);let n;e[0]!==t?(n=ne.orgAccessStatus(t),e[0]=t,e[1]=n):n=e[1];let s;e[2]!==t?(s=async()=>{const a=await fetch(`/api/auth/custom/org-access-status/${encodeURIComponent(t)}`,{credentials:"include"});if(!a.ok)throw new Error(`org-access-status failed (${a.status})`);return await a.json()},e[2]=t,e[3]=s):s=e[3];let r;return e[4]!==n||e[5]!==s?(r={queryKey:n,queryFn:s,refetchOnWindowFocus:!1},e[4]=n,e[5]=s,e[6]=r):r=e[6],le(r)}function nt({orgSlug:t}){const{data:e}=tt(t);return(e.status==="not-found"||e.status==="no-access")&&localStorage.getItem(K.lastOrgSlug())===t?(localStorage.removeItem(K.lastOrgSlug()),window.location.href="/",null):e.status==="not-found"?o.jsx(ae,{orgSlug:t,reason:"not-found"}):e.status==="pending-invite"?o.jsx(Ve,{invitationId:e.invitation.id,orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo}):e.status==="auto-domain-join"?o.jsx(We,{orgName:e.organization.name,orgSlug:e.organization.slug,orgLogo:e.organization.logo,domain:e.organization.domain??""}):e.status==="member"?(window.location.reload(),null):o.jsx(ae,{orgSlug:t,orgName:e.organization.name,reason:"no-access"})}function st(t){const e=k.c(20),{release:n,onCtaClick:s,onLearnMoreClick:r}=t;let a;e[0]!==n.eyebrow?(a=n.eyebrow&&o.jsx("p",{className:"text-xs text-muted-foreground",children:n.eyebrow}),e[0]=n.eyebrow,e[1]=a):a=e[1];let i;e[2]!==n.title?(i=o.jsx("h3",{className:"text-base font-semibold text-foreground",children:n.title}),e[2]=n.title,e[3]=i):i=e[3];let l;e[4]!==a||e[5]!==i?(l=o.jsxs("div",{children:[a,i]}),e[4]=a,e[5]=i,e[6]=l):l=e[6];let d;e[7]!==n.bullets?(d=n.bullets.map(ot),e[7]=n.bullets,e[8]=d):d=e[8];let c;e[9]!==d?(c=o.jsx("ul",{className:"flex flex-col gap-3",children:d}),e[9]=d,e[10]=c):c=e[10];let m;e[11]!==s||e[12]!==r||e[13]!==n.cta||e[14]!==n.learnMoreHref?(m=(n.cta||n.learnMoreHref)&&o.jsxs("div",{className:"flex items-center justify-between pt-1",children:[n.learnMoreHref?o.jsx("a",{href:n.learnMoreHref,target:"_blank",rel:"noreferrer",onClick:r,className:"text-xs text-muted-foreground hover:text-foreground underline-offset-2 hover:underline",children:"Learn More"}):o.jsx("span",{}),n.cta&&o.jsx(E,{asChild:!0,size:"sm",onClick:s,children:o.jsx("a",{href:n.cta.href,children:n.cta.label})})]}),e[11]=s,e[12]=r,e[13]=n.cta,e[14]=n.learnMoreHref,e[15]=m):m=e[15];let u;return e[16]!==l||e[17]!==c||e[18]!==m?(u=o.jsxs("div",{className:"flex flex-col gap-3",children:[l,c,m]}),e[16]=l,e[17]=c,e[18]=m,e[19]=u):u=e[19],u}function ot(t,e){return o.jsxs("li",{className:"flex items-start gap-3",children:[o.jsx(t.icon,{size:20,className:"text-muted-foreground mt-0.5 shrink-0"}),o.jsxs("div",{className:"min-w-0",children:[o.jsx("p",{className:"text-sm font-medium text-foreground",children:t.title}),o.jsx("p",{className:"text-xs text-muted-foreground",children:t.body})]})]},e)}const me=[{id:"claude-fable-5",date:"2026-06-09",eyebrow:"Now Available",title:"Claude Fable 5 leads the Thinking tier",bullets:[{icon:R,title:"State-of-the-art reasoning",body:"Fable 5 takes the Thinking tier, posting top scores across software engineering, knowledge work, and vision — and outperforming Opus 4.8 on nearly every benchmark Anthropic tested."},{icon:G,title:"Safety without the slowdown",body:"New classifiers route the small slice of high-risk requests (cybersecurity, bio/chem) back to Opus 4.8. Anthropic reports more than 95% of sessions never trigger a fallback."},{icon:X,title:"Nothing to change",body:"Chats and agents pick up Fable 5 automatically wherever the Thinking tier is selected. Opus 4.8 stays available as the safety fallback."}],learnMoreHref:"https://www.anthropic.com/news/claude-fable-5-mythos-5"},{id:"claude-opus-4-8",date:"2026-05-28",eyebrow:"Now Available",title:"Claude Opus 4.8 is the new default",bullets:[{icon:R,title:"Smarter thinking, same price",body:"Opus 4.8 now leads the Thinking and Smarter tiers, outperforming Opus 4.7 on coding, reasoning, and agent tasks at the same cost."},{icon:G,title:"More honest answers",body:"It's about 4× less likely to let a code flaw slip through unflagged, and surfaces uncertainty instead of making unsupported claims."},{icon:X,title:"Nothing to change",body:"Chats and agents pick up Opus 4.8 automatically wherever the Thinking or Smarter tier is selected."}],learnMoreHref:"https://www.anthropic.com/news/claude-opus-4-8"},{id:"enhanced-sidebar",date:"2026-05-28",eyebrow:"Now Available",title:"Enhanced sidebar",bullets:[{icon:R,title:"A clearer view of what's running",body:"See every task in your organization at a glance, with each agent and status group laid out so you can spot active work without hunting for it."},{icon:oe,title:"Browse one group at a time",body:"Expand the groups you care about and pull in more results on demand — no more endless scrolling to find an older conversation."},{icon:G,title:"Polished and steadier",body:"Several sidebar bugs are fixed, including empty agent groups showing the right action and status filters returning the right tasks."}]},{id:"smarter-task-delegation",date:"2026-05-27",eyebrow:"Now Available",title:"Smarter task delegation",bullets:[{icon:Ee,title:"Real results from delegated agents",body:"When one agent hands work to another, you'll see the full report inline — no more empty replies hiding the work that was done."},{icon:X,title:"Same powers, top to bottom",body:"Delegated agents now work with the same tools, context, and memory as the agent that called them, so complex multi-agent investigations finish on the first try."},{icon:G,title:"Clearer progress signals",body:"When a delegated task hits its limit or runs into a problem, you get a plain-language message instead of a silent stall."}]},{id:"sidebar-task-groups",date:"2026-05-27",eyebrow:"Now Available",title:"Redesigned sidebar",bullets:[{icon:R,title:"Group by agent or status",body:"Switch the task list between grouping by agent or by status — pick whichever matches how you're working right now."},{icon:oe,title:"Sharper filters",body:"Narrow the list to your tasks, manual chats, or automations from a compact filter row above the groups."}]},{id:"release-channel",date:"2026-05-26",eyebrow:"Now Available",title:"Release announcements",bullets:[{icon:R,title:"Heads-up when features ship",body:"New releases surface in a corner card the first time you see them, then stick around in your inbox."},{icon:Te,title:"Unified inbox",body:"Org invitations and product updates now share one chronological feed in the sidebar."}]}],J="studio.release-feed.v1",ee=new Set;let I="",F={},te=!1;function at(){if(te)return I||"{}";try{return localStorage.getItem(J)??"{}"}catch{return I||"{}"}}function fe(t){try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function ie(){const t=at();return t!==I&&(I=t,F=fe(t)),F}function it(t){ee.add(t);const e=n=>{if(!(n.key!==J&&n.key!==null)){try{const s=localStorage.getItem(J)??"{}",a={...fe(s),...F};F=a,I=JSON.stringify(a)}catch{}t()}};return window.addEventListener("storage",e),()=>{ee.delete(t),window.removeEventListener("storage",e)}}function rt(t){F=t,I=JSON.stringify(t);try{localStorage.setItem(J,I),te=!1}catch{te=!0}ee.forEach(e=>e())}function lt(){const t=k.c(7),e=B.useSyncExternalStore(it,ie,ie);let n;t[0]!==e?(n=d=>!!e[d],t[0]=e,t[1]=n):n=t[1];const s=n,r=ct;let a;t[2]!==e?(a=me.reduce((d,c)=>e[c.id]?d:d+1,0),t[2]=e,t[3]=a):a=t[3];const i=a;let l;return t[4]!==s||t[5]!==i?(l={isSeen:s,markSeen:r,unseenCount:i},t[4]=s,t[5]=i,t[6]=l):l=t[6],l}function ct(t){F[t]||rt({...F,[t]:{seenAt:new Date().toISOString()}})}const dt=720*60*60*1e3;function ut(t){const[e,n,s]=t.split("-").map(Number);return!e||!n||!s?new Date(t).getTime():new Date(e,n-1,s).getTime()}function mt(t){const e=me[0];if(!e)return null;const n=ut(e.date),s=t-n;return s<0||s>dt?null:e}function ft(){const t=k.c(21),{isSeen:e,markSeen:n}=lt();let s,r,a;if(t[0]!==e){a=Symbol.for("react.early_return_sentinel");e:{if(s=mt(Date.now()),!s){a=null;break e}r=e(s.id)}t[0]=e,t[1]=s,t[2]=r,t[3]=a}else s=t[1],r=t[2],a=t[3];if(a!==Symbol.for("react.early_return_sentinel"))return a;if(r)return null;let i;t[4]!==s.id||t[5]!==n?(i=()=>n(s.id),t[4]=s.id,t[5]=n,t[6]=i):i=t[6];let l;t[7]===Symbol.for("react.memo_cache_sentinel")?(l=o.jsx(Me,{size:14}),t[7]=l):l=t[7];let d;t[8]!==i?(d=o.jsx(E,{size:"icon",variant:"ghost","aria-label":"Dismiss release announcement",className:"absolute right-2 top-2 size-7 text-muted-foreground",onClick:i,children:l}),t[8]=i,t[9]=d):d=t[9];let c,m;t[10]!==s.id||t[11]!==n?(c=()=>n(s.id),m=()=>n(s.id),t[10]=s.id,t[11]=n,t[12]=c,t[13]=m):(c=t[12],m=t[13]);let u;t[14]!==s||t[15]!==c||t[16]!==m?(u=o.jsx(st,{release:s,onCtaClick:c,onLearnMoreClick:m}),t[14]=s,t[15]=c,t[16]=m,t[17]=u):u=t[17];let p;return t[18]!==d||t[19]!==u?(p=o.jsxs("div",{role:"dialog","aria-label":"Release announcement",className:"fixed bottom-6 right-6 z-50 w-[min(360px,calc(100vw-3rem))] rounded-lg border border-border bg-background p-4 shadow-lg animate-in fade-in slide-in-from-bottom-2 duration-300",children:[d,u]}),t[18]=d,t[19]=u,t[20]=p):p=t[20],p}const ge=typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.platform),M=ge?"⌘":"Ctrl",A={keyboardShortcuts:{keys:[M,"K"],description:"Keyboard shortcuts"},focusChatInput:{keys:[M,"L"],description:"Focus chat input"},saveAndFormat:{keys:[M,"S"],description:"Save & format"},sendMessage:{keys:["Enter"],description:"Send message"},newLine:{keys:["Shift","Enter"],description:"New line"},selectOption:{keys:["1-9"],description:"Select option"},applyFilter:{keys:[M,"Enter"],description:"Apply filter"},togglePlanMode:{keys:[M,"Shift","L"],description:"Toggle plan mode"},newTask:{keys:["Shift",M,"S"],description:"New task"},toggleDaemon:{keys:[M,"D"],description:"Toggle daemon logs"}},gt=[{label:"General",shortcuts:[A.keyboardShortcuts,A.newTask,A.toggleDaemon]},{label:"Editor",shortcuts:[A.saveAndFormat]},{label:"Chat",shortcuts:[A.focusChatInput,A.togglePlanMode,A.sendMessage,A.newLine]},{label:"Questions",shortcuts:[A.selectOption]},{label:"Monitoring",shortcuts:[A.applyFilter]}];function ht(t){return ge?t.metaKey:t.ctrlKey}function pt(t){const e=k.c(5),{open:n,onOpenChange:s}=t;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx(Fe,{children:o.jsx(Le,{children:"Keyboard Shortcuts"})}),e[0]=r):r=e[0];let a;e[1]===Symbol.for("react.memo_cache_sentinel")?(a=o.jsxs(Ie,{className:"sm:max-w-md",children:[r,o.jsx("div",{className:"flex flex-col gap-4",children:gt.map(xt)})]}),e[1]=a):a=e[1];let i;return e[2]!==s||e[3]!==n?(i=o.jsx(Pe,{open:n,onOpenChange:s,children:a}),e[2]=s,e[3]=n,e[4]=i):i=e[4],i}function xt(t){return o.jsxs("div",{children:[o.jsx("h3",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-2",children:t.label}),o.jsx("div",{className:"flex flex-col gap-1.5",children:t.shortcuts.map(yt)})]},t.label)}function yt(t){return o.jsxs("div",{className:"flex items-center justify-between py-1",children:[o.jsx("span",{className:"text-sm",children:t.description}),o.jsx("div",{className:"flex items-center gap-1",children:t.keys.map(bt)})]},t.description)}function bt(t){return o.jsx("kbd",{className:"inline-flex items-center justify-center min-w-6 h-6 px-1.5 rounded-sm border border-border bg-muted text-muted-foreground text-xs font-mono",children:t},t)}function wt({activeOrg:t}){return t&&(xe(t.id,{name:t.name??void 0,slug:t.slug??void 0}),ye()),null}function St(t,e,n){if(!n)return null;const s=Re(t,e);return s?s.threads.get().find(a=>a.id===n)?.branch??null:null}function he(t){return{queryKey:ne.homeNextActions(t),queryFn:async()=>{const e=await fetch(`/api/${t}/home-next-actions`,{cache:"no-store"});if(!e.ok)throw new Error("Failed to load home next actions");return await e.json()},staleTime:0,refetchOnWindowFocus:"always"}}function Ht(t){const e=k.c(10);let n;e[0]!==t?(n=he(t),e[0]=t,e[1]=n):n=e[1];const s=ce(n);let r;e[2]!==s.data?.prompts?(r=s.data?.prompts??[],e[2]=s.data?.prompts,e[3]=r):r=e[3];let a;e[4]!==s.data?.tiles?(a=s.data?.tiles??[],e[4]=s.data?.tiles,e[5]=a):a=e[5];let i;return e[6]!==s.isLoading||e[7]!==r||e[8]!==a?(i={isLoading:s.isLoading,prompts:r,tiles:a},e[6]=s.isLoading,e[7]=r,e[8]=a,e[9]=i):i=e[9],i}function jt(t){const e=k.c(17),{orgSlug:n,orgName:s,domain:r}=t;let a;e[0]!==n?(a=()=>{window.location.href=`/api/${encodeURIComponent(n)}/sso/authorize`},e[0]=n,e[1]=a):a=e[1];const i=a,l=vt;let d;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=o.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:o.jsx(re,{className:"h-6 w-6 text-primary"})}),e[2]=d):d=e[2];let c;e[3]===Symbol.for("react.memo_cache_sentinel")?(c=o.jsx("h3",{className:"text-lg font-medium",children:"SSO Authentication Required"}),e[3]=c):c=e[3];let m;e[4]!==r||e[5]!==s?(m=s?o.jsxs(o.Fragment,{children:[o.jsx("strong",{children:s})," requires SSO authentication",r?` via ${r}`:"","."]}):"This organization requires SSO authentication to access.",e[4]=r,e[5]=s,e[6]=m):m=e[6];let u;e[7]!==m?(u=o.jsxs("div",{className:"space-y-2",children:[c,o.jsx("p",{className:"text-sm text-muted-foreground",children:m})]}),e[7]=m,e[8]=u):u=e[8];let p;e[9]!==i?(p=o.jsx(E,{onClick:i,children:"Sign in with SSO"}),e[9]=i,e[10]=p):p=e[10];let h;e[11]===Symbol.for("react.memo_cache_sentinel")?(h=o.jsx(E,{variant:"ghost",onClick:l,children:"Go back"}),e[11]=h):h=e[11];let x;e[12]!==p?(x=o.jsxs("div",{className:"flex flex-col gap-2 w-full",children:[p,h]}),e[12]=p,e[13]=x):x=e[13];let f;return e[14]!==u||e[15]!==x?(f=o.jsxs(Y,{children:[d,u,x]}),e[14]=u,e[15]=x,e[16]=f):f=e[16],f}function vt(){window.location.href="/"}function kt(t){const e=k.c(8),{org:n,children:s}=t,a=Ge(n.id,n.slug)?.enabled_plugins??null;let i;e[0]!==n.id||e[1]!==n.name||e[2]!==a?(i={id:n.id,organizationId:n.id,slug:"_org",name:n.name,enabledPlugins:a,ui:null},e[0]=n.id,e[1]=n.name,e[2]=a,e[3]=i):i=e[3];const l=i;let d;return e[4]!==s||e[5]!==n||e[6]!==l?(d=o.jsx(Ce,{org:n,project:l,children:s}),e[4]=s,e[5]=n,e[6]=l,e[7]=d):d=e[7],d}function Nt(){const t=be(),e=Ke(),{org:n,locator:s}=we(),r=de({strict:!1}),a=Se({strict:!1}),i=r.org??"",l=r.taskId??"",d=(f,g,y=!0)=>t({to:"/$org/$taskId",params:{org:i,taskId:f},search:g,replace:y}),c=(f,g=!0)=>d(l,f,g),m=f=>c(g=>({...g,chat:f?1:0})),u=(f,g,y)=>d(f,S=>{const b={chat:1};g?b.virtualmcpid=g:S.virtualmcpid&&(b.virtualmcpid=S.virtualmcpid);const v=S.main;return v&&typeof v=="string"&&!qe(v)&&(b.main=v),y?.autosend&&(b.autosend=He),b},!1);return{setChatOpen:m,setTaskId:u,createNewTask:async f=>{const g=crypto.randomUUID(),y=f??a.virtualmcpid??Ue(n.id).id,b=y===a.virtualmcpid?St(n.slug,s,l):null;try{await e?.create({id:g,virtual_mcp_id:y,...b?{branch:b}:{}})}catch{}u(g,y)},openTab:f=>d(l||crypto.randomUUID(),g=>({...g,main:f})),toggleMain:()=>c(f=>{if(f.main!==void 0&&f.main!=="0")return{...f,main:"0"};const y={...f};return delete y.main,y})}}function Ot(){const t=k.c(45);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org",shouldThrow:!1},t[0]=e):e=t[0];const s=je(e)?.params.org;let r;t[1]===Symbol.for("react.memo_cache_sentinel")?(r={strict:!1},t[1]=r):r=t[1];const{taskId:a}=de(r),[i,l]=B.useState(!1),d=s??"";let c;t[2]!==d?(c=he(d),t[2]=d,t[3]=c):c=t[3];const m=!!s&&!a;let u;t[4]!==c||t[5]!==m?(u={...c,enabled:m},t[4]=c,t[5]=m,t[6]=u):u=t[6],ce(u);const{data:p}=W.useSession(),h=p?.user?.id;let x;t[7]!==s||t[8]!==h?(x=s&&h?ve(h,s):null,t[7]=s,t[8]=h,t[9]=x):x=t[9];const f=x;let g,y;t[10]===Symbol.for("react.memo_cache_sentinel")?(g=()=>{const j=C=>{ht(C)&&C.code==="KeyK"&&(C.preventDefault(),l(!0))};return document.addEventListener("keydown",j),()=>document.removeEventListener("keydown",j)},y=[],t[10]=g,t[11]=y):(g=t[10],y=t[11]),B.useEffect(g,y);let S;t[12]!==s?(S=ne.activeOrganization(s),t[12]=s,t[13]=S):S=t[13];let b;t[14]!==s||t[15]!==h?(b=async()=>{if(!s)return null;performance.mark("mesh:active-org-fetch:start");const{data:j}=await W.organization.getFullOrganization({query:{organizationSlug:s}}).finally(_t),C=se(j);return j&&!C&&localStorage.setItem(K.lastOrgSlug(),s),h&&j&&Ne(h,s,j),j},t[14]=s,t[15]=h,t[16]=b):b=t[16];const v=f?f.data:void 0,O=f?.updatedAt;let N;t[17]!==b||t[18]!==v||t[19]!==O||t[20]!==S?(N={queryKey:S,queryFn:b,initialData:v,initialDataUpdatedAt:O,gcTime:1/0,refetchOnWindowFocus:!1},t[17]=b,t[18]=v,t[19]=O,t[20]=S,t[21]=N):N=t[21];const{data:w}=le(N),$=w?.id,z=w?.slug,{data:_}=Be($,z);if(!w){let j;t[22]===Symbol.for("react.memo_cache_sentinel")?(j=o.jsx(Oe,{}),t[22]=j):j=t[22];let C;return t[23]!==s?(C=o.jsx(B.Suspense,{fallback:j,children:o.jsx(nt,{orgSlug:s})}),t[23]=s,t[24]=C):C=t[24],C}if(se(w)){localStorage.getItem(K.lastOrgSlug())===s&&localStorage.removeItem(K.lastOrgSlug());let j;return t[25]!==w.name?(j=o.jsx(ke,{orgName:w.name}),t[25]=w.name,t[26]=j):j=t[26],j}if(_?.ssoRequired&&!_.authenticated){let j;return t[27]!==w.id||t[28]!==w.name||t[29]!==w.slug||t[30]!==_.domain?(j=o.jsx(jt,{orgId:w.id,orgSlug:w.slug,orgName:w.name,domain:_.domain}),t[27]=w.id,t[28]=w.name,t[29]=w.slug,t[30]=_.domain,t[31]=j):j=t[31],j}const V=w.logo??null;let L;t[32]!==w||t[33]!==V?(L={...w,logo:V},t[32]=w,t[33]=V,t[34]=L):L=t[34];let P;t[35]!==w?(P=o.jsx(wt,{activeOrg:w}),t[35]=w,t[36]=P):P=t[36];let q,H;t[37]===Symbol.for("react.memo_cache_sentinel")?(q=o.jsx(_e,{}),H=o.jsx(ft,{}),t[37]=q,t[38]=H):(q=t[37],H=t[38]);let D;t[39]!==i?(D=o.jsx(pt,{open:i,onOpenChange:l}),t[39]=i,t[40]=D):D=t[40];let U;return t[41]!==L||t[42]!==P||t[43]!==D?(U=o.jsxs(kt,{org:L,children:[P,q,H,D]}),t[41]=L,t[42]=P,t[43]=D,t[44]=U):U=t[44],U}function _t(){performance.mark("mesh:active-org-fetch:end"),performance.measure("mesh:active-org-fetch","mesh:active-org-fetch:start","mesh:active-org-fetch:end")}function Ct(){const t=k.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx(De,{children:o.jsx(Ot,{})}),t[0]=e):e=t[0],e}const Ut=Object.freeze(Object.defineProperty({__proto__:null,default:Ct,usePanelActions:Nt},Symbol.toStringTag,{value:"Module"}));export{A as K,me as R,lt as a,st as b,Ht as c,he as h,ht as i,St as r,Ut as s,Nt as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as C,c as K,j as s,l as qt,r as $,t as ee,q as xe,b as ke,X as ks,K as Yt,n as Xt,f as Re,g as Is,d as Fn,P as Gn,Y as Ln,Z as Bn,T as Hn,W as Un,I as Kn,H as Vn,a as Wn,B as $t,$ as qn,a0 as Yn,a1 as Xn,a2 as Qn,o as ze,a3 as Zn,G as Jn,a4 as er,a5 as tr,a6 as sr,a7 as nr,a8 as xt,a9 as rr,aa as or,ab as ir,ac as lr,ad as ar,ae as cr,af as Ms,ag as dr,ah as ur,ai as mr,aj as fr,ak as xr,al as hr,am as pr,an as gr,ao as br,ap as jr,aq as vr,p as yr,E as As}from"./index-kq5yUS_7.js";import{u as _r}from"./useRouterState-fo-Z74Ek.js";import{c as Sr,a as Cr,i as Nr}from"./ZoomOut-DUCp8Gob.js";import{u as Qe,c as fe,d as Me,e as zt,f as Pt,g as Pe,h as $s,i as Ts,j as wr,k as kr,l as Ut}from"./sidebar-CZfP1p-N.js";import{T as Ie}from"./toolbar-C_QNuxJc.js";import{u as Os,T as Ve,a as We,b as qe,c as ns}from"./tooltip-DjBYlSjK.js";import{S as Ne}from"./skeleton-C868IqtJ.js";import{P as Et,a as mt,b as Rt}from"./popover-DsfanlnP.js";import{b as zs,a as Ps,D as Es}from"./drawer-DgVqJYUv.js";import{i as Rs}from"./SearchMd-DrKxcX2-.js";import{s as Ir}from"./Star01-DSZcWlXz.js";import{s as we}from"./Plus-DhX2w18y.js";import{i as Mr,S as Dt,u as Ft,g as Ar}from"./constants-_NfKPeA7.js";import{a as Ds,u as ht,b as $r}from"./use-virtual-mcp-z0hFit1f.js";import{u as Tr}from"./use-create-virtual-mcp-YcZkU7UR.js";import{I as Or,a as zr,u as Pr,W as Er,H as Rr,S as Dr,G as Fr}from"./github-repo-picker-BLseIx3l.js";import{A as Ee,V as rs,W as os,X as Fs,Y as Gr,Z as Lr,_ as Br}from"./agent-icon-BGlV6q8v.js";import{u as Gs,d as Hr,l as Ls,m as is}from"./tab-id-DQ11sDJ5.js";import{r as Ur,a as Kr,R as Vr,b as Wr,u as Bs}from"./shell-layout-BSanGTZR.js";import{u as qr,a as Yr,b as Xr,s as Qr,c as Zr,r as Jr,d as eo,e as to,f as so,p as no,T as Hs,g as ro,h as oo,i as io,j as lo,k as ao,l as co,m as uo,n as mo,S as ls,o as Us}from"./use-navigate-to-agent-C9nwjmya.js";import{A as as}from"./avatar-CV-HskE0.js";import{i as Ks}from"./Check-c_jJpxb1.js";import{a as cs}from"./Eye-cKsI4OxT.js";import{n as fo,i as xo}from"./Globe01-BqxI6QZP.js";import{i as ho,a as Vs}from"./ZapSquare-DHYwZGs3.js";import{i as po}from"./Monitor01-DdJ7wtCm.js";import{n as go,a as bo}from"./Sun-Bc4Ui5gi.js";import{a as pt}from"./Settings02-YFMXLzh7.js";import{i as jo}from"./Shield01-C0lG89zR.js";import{a as vo}from"./Users03-BQUStXwY.js";import{s as Ws}from"./XClose-BJgeWVDy.js";import{f as yo,a as _o,b as So,c as Co,d as No,e as wo,A as ko}from"./alert-dialog-CfIqXXf0.js";import{F as Io,a as Mo,b as Ao,c as $o,d as To,e as Oo,f as zo}from"./form-Bom2oLZH.js";import{I as Po}from"./input-CwrS-iub.js";import{S as Eo}from"./spinner-DFgihVtE.js";import"./index-DdDGbzVq.js";import{i as Ro,a as Do}from"./RefreshCcw01-COCceFoS.js";import{n as Qt}from"./Stars02-BZvUEwJW.js";import{A as qs,g as Fo,u as Go,a as ds,K as Lo,P as Bo,s as Ho,S as Uo,v as Ko,D as Vo,c as Wo,b as qo,C as Yo}from"./sortable.esm-D3VtLwMe.js";import{i as Zt}from"./ChevronRight-DLrAfqVe.js";import{u as Ys}from"./use-mcp-tools-PoAtDkM2.js";import{u as Xs}from"./use-ai-providers-BdU26Ah1.js";import{i as Xo}from"./FilterLines-BiHh13xm.js";import{t as Qo}from"./Users01-Bcdl2fo8.js";import{b as us,c as Qs,S as ms,a as fs,d as xs}from"./select-ci3BSqp5.js";import{b as Zo,c as Jo,e as ei,a as ti,D as si}from"./dialog-DAZt_PYz.js";import{C as ni,e as ri,c as oi,d as ii,b as li}from"./command-xElkUveT.js";import{i as Zs}from"./Zap-DHRMF6hr.js";import{u as ai}from"./use-org-auth-client-q5-USMbu.js";import{H as ci,a as di,b as ui}from"./hover-card-BbAh8d7J.js";import{g as mi,S as fi}from"./task-status-CAwvZzfY.js";import{f as xi}from"./format-time-Cy7tTmZp.js";import{t as Js}from"./ChevronDown-BD_mAbO2.js";function hi(t){const e=C.c(21),{value:n,onChange:r,placeholder:o,onKeyDown:i,className:a,isSearching:l,disabled:c}=t,u=o===void 0?"Search...":o;let d;e[0]!==a?(d=K("shrink-0 w-full border-b border-border h-12",a),e[0]=a,e[1]=d):d=e[1];const m=c?"cursor-not-allowed opacity-50":"cursor-text";let f;e[2]!==m?(f=K("flex items-center gap-2.5 h-12 px-4",m),e[2]=m,e[3]=f):f=e[3];let x;e[4]!==l?(x=l?s.jsx(qt,{size:16,className:"animate-spin text-muted-foreground shrink-0"}):s.jsx(Rs,{size:16,className:"text-muted-foreground shrink-0"}),e[4]=l,e[5]=x):x=e[5];let p;e[6]!==r?(p=v=>r(v.target.value),e[6]=r,e[7]=p):p=e[7];let h;e[8]!==c||e[9]!==i||e[10]!==u||e[11]!==p||e[12]!==n?(h=s.jsx("input",{type:"text",value:n,onChange:p,onKeyDown:i,placeholder:u,disabled:c,className:"flex-1 min-w-0 bg-transparent text-sm text-foreground placeholder:text-muted-foreground/50 outline-none"}),e[8]=c,e[9]=i,e[10]=u,e[11]=p,e[12]=n,e[13]=h):h=e[13];let g;e[14]!==f||e[15]!==x||e[16]!==h?(g=s.jsxs("label",{className:f,children:[x,h]}),e[14]=f,e[15]=x,e[16]=h,e[17]=g):g=e[17];let b;return e[18]!==d||e[19]!==g?(b=s.jsx("div",{className:d,children:g}),e[18]=d,e[19]=g,e[20]=b):b=e[20],b}const pi="Select an existing agent";function gi(t){const e=C.c(5),{children:n}=t;let r;e[0]!==n?(r=s.jsx(Ve,{asChild:!0,children:n}),e[0]=n,e[1]=r):r=e[1];let o;e[2]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(We,{side:"right",sideOffset:8,children:pi}),e[2]=o):o=e[2];let i;return e[3]!==r?(i=s.jsxs(qe,{defaultOpen:!0,delayDuration:0,children:[r,o]}),e[3]=r,e[4]=i):i=e[4],i}function bi(){const t=C.c(5),{enableDecoImport:e}=ks(),{data:n}=ke.useSession();let r;t[0]!==n?.user?.email?(r=Yt.decoProfile(n?.user?.email),t[0]=n?.user?.email,t[1]=r):r=t[1];const o=!!e&&!!n?.user?.email;let i;t[2]!==r||t[3]!==o?(i={queryKey:r,queryFn:ji,enabled:o,staleTime:3e5},t[2]=r,t[3]=o,t[4]=i):i=t[4];const{data:a}=Xt(i);return a?.isDecoUser??!1}async function ji(){const t=await fetch("/api/deco-sites/profile");return t.ok?t.json():{isDecoUser:!1}}function vi(t){const e=Re(),{create:n}=Gs(),{locator:r}=xe(),o=Is({strict:!1}),i=Fn({strict:!1});return async a=>{const l=crypto.randomUUID(),c=a===i.virtualmcpid?Ur(t,r,o.taskId??""):null;try{await n({id:l,virtual_mcp_id:a,...c?{branch:c}:{}})}catch{}e({to:"/$org/$taskId",params:{org:t,taskId:l},search:{virtualmcpid:a}})}}function yi(t){const e=C.c(9),{agent:n,onClick:r}=t;let o;e[0]!==n.icon||e[1]!==n.title?(o=s.jsx(Ee,{icon:n.icon,name:n.title,size:"md",className:"transition-transform group-hover:scale-105"}),e[0]=n.icon,e[1]=n.title,e[2]=o):o=e[2];let i;e[3]!==n.title?(i=s.jsx("span",{className:"text-xs leading-tight text-center text-muted-foreground group-hover:text-foreground line-clamp-2 w-full",children:n.title}),e[3]=n.title,e[4]=i):i=e[4];let a;return e[5]!==r||e[6]!==o||e[7]!==i?(a=s.jsxs("button",{type:"button",onClick:r,className:"flex flex-col items-center gap-2 p-3 rounded-xl transition-colors hover:bg-accent cursor-pointer group",children:[o,i]}),e[5]=r,e[6]=o,e[7]=i,e[8]=a):a=e[8],a}function _i(t){const e=C.c(65),{onClose:n,onOpenImportDeco:r,onOpenGithubImport:o}=t,[i,a]=$.useState(""),l=Ds(),{org:c}=xe(),{data:u}=ke.useSession(),d=u?.user?.id??"anon",m=l.filter(Ni).map(Ci),f=Yr();let x;e[0]===Symbol.for("react.memo_cache_sentinel")?(x={navigateOnCreate:!0},e[0]=x):x=e[0];const{createVirtualMCP:p,isCreating:h}=Tr(x),{createFromTemplate:g,isCreating:b}=Pr(),v=bi(),j=vi(c.slug),y=i.toLowerCase(),_=l.filter(Si).filter(oe=>!i||oe.title.toLowerCase().includes(y)),N=oe=>{Xr({orgId:c.id,userId:d},oe.id,m),f(),n(),a(""),j(oe.id)},S="flex flex-col max-h-[min(640px,80dvh)]";let M;e[1]!==i?(M=s.jsx(hi,{value:i,onChange:a,placeholder:"Search agents..."}),e[1]=i,e[2]=M):M=e[2];const I="overflow-y-auto flex-1 min-h-0 px-3 pb-3";let A;e[3]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx("div",{className:"px-1 pt-3 pb-2",children:s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Agents"})}),e[3]=A):A=e[3];const E="grid grid-cols-3 gap-1";let T;e[4]!==p||e[5]!==n?(T=async()=>{ee("agent_create_new_clicked",{source:"browse_popover"}),await p(),n()},e[4]=p,e[5]=n,e[6]=T):T=e[6];let z,w;e[7]===Symbol.for("react.memo_cache_sentinel")?(z=s.jsx("div",{className:"w-12 h-12 rounded-xl border-2 border-dashed border-border flex items-center justify-center shrink-0 transition-transform group-hover:scale-105",children:s.jsx(we,{size:16,className:"text-muted-foreground"})}),w=s.jsx("span",{className:"text-xs leading-tight text-center text-muted-foreground group-hover:text-foreground",children:"Create new"}),e[7]=z,e[8]=w):(z=e[7],w=e[8]);let P;e[9]!==h||e[10]!==T?(P=s.jsxs("button",{type:"button",disabled:h,onClick:T,className:"flex flex-col items-center gap-2 p-3 rounded-xl transition-colors hover:bg-accent cursor-pointer group disabled:opacity-50 disabled:cursor-not-allowed",children:[z,w]}),e[9]=h,e[10]=T,e[11]=P):P=e[11];let O;e[12]!==g||e[13]!==n?(O=async()=>{ee("agent_create_clicked",{source:"browse_popover",method:"website"}),await g(Er),n()},e[12]=g,e[13]=n,e[14]=O):O=e[14];let H,L;e[15]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx("div",{className:"w-12 h-12 rounded-xl border-2 border-border flex items-center justify-center shrink-0 transition-transform group-hover:scale-105",children:s.jsx(Ir,{className:"size-5 text-muted-foreground"})}),L=s.jsx("span",{className:"text-xs leading-tight text-center text-muted-foreground group-hover:text-foreground",children:"Start Website"}),e[15]=H,e[16]=L):(H=e[15],L=e[16]);let U;e[17]!==b||e[18]!==O?(U=s.jsxs("button",{type:"button",disabled:b,onClick:O,className:"flex flex-col items-center gap-2 p-3 rounded-xl transition-colors hover:bg-accent cursor-pointer group disabled:opacity-50 disabled:cursor-not-allowed",children:[H,L]}),e[17]=b,e[18]=O,e[19]=U):U=e[19];let R;e[20]!==g||e[21]!==n?(R=async()=>{ee("agent_create_clicked",{source:"browse_popover",method:"hydrogen"}),await g(Rr),n()},e[20]=g,e[21]=n,e[22]=R):R=e[22];let G,D;e[23]===Symbol.for("react.memo_cache_sentinel")?(G=s.jsx("div",{className:"w-12 h-12 rounded-xl border-2 border-border flex items-center justify-center shrink-0 transition-transform group-hover:scale-105",children:s.jsx("img",{src:Dr,alt:"",className:"size-5 object-contain"})}),D=s.jsx("span",{className:"text-xs leading-tight text-center text-muted-foreground group-hover:text-foreground",children:"Shopify Headless Store"}),e[23]=G,e[24]=D):(G=e[23],D=e[24]);let F;e[25]!==b||e[26]!==R?(F=s.jsxs("button",{type:"button",disabled:b,onClick:R,className:"flex flex-col items-center gap-2 p-3 rounded-xl transition-colors hover:bg-accent cursor-pointer group disabled:opacity-50 disabled:cursor-not-allowed",children:[G,D]}),e[25]=b,e[26]=R,e[27]=F):F=e[27];let X;e[28]!==n||e[29]!==o?(X=()=>{ee("agent_import_clicked",{source:"github"}),o(),n()},e[28]=n,e[29]=o,e[30]=X):X=e[30];let q,V;e[31]===Symbol.for("react.memo_cache_sentinel")?(q=s.jsx("div",{className:"w-12 h-12 rounded-xl border-2 border-border flex items-center justify-center shrink-0 transition-transform group-hover:scale-105",children:s.jsx(Fr,{className:"size-5 text-muted-foreground"})}),V=s.jsx("span",{className:"text-xs leading-tight text-center text-muted-foreground group-hover:text-foreground",children:"Import GitHub"}),e[31]=q,e[32]=V):(q=e[31],V=e[32]);let Y;e[33]!==X?(Y=s.jsxs("button",{type:"button",onClick:X,className:"flex flex-col items-center gap-2 p-3 rounded-xl transition-colors hover:bg-accent cursor-pointer group",children:[q,V]}),e[33]=X,e[34]=Y):Y=e[34];let Z;e[35]!==v||e[36]!==n||e[37]!==r?(Z=v&&s.jsxs("button",{type:"button",onClick:()=>{ee("agent_import_clicked",{source:"deco"}),r(),n()},className:"flex flex-col items-center gap-2 p-3 rounded-xl transition-colors hover:bg-accent cursor-pointer group",children:[s.jsx("div",{className:"w-12 h-12 rounded-xl border-2 border-border flex items-center justify-center shrink-0 transition-transform group-hover:scale-105",children:s.jsx("img",{src:"/logos/deco%20logo.svg",alt:"",className:"size-5 object-contain"})}),s.jsx("span",{className:"text-xs leading-tight text-center text-muted-foreground group-hover:text-foreground",children:"Import deco.cx"})]}),e[35]=v,e[36]=n,e[37]=r,e[38]=Z):Z=e[38];const te=_.map(oe=>s.jsx(yi,{agent:oe,onClick:()=>N(oe)},oe.id));let ie;e[39]!==P||e[40]!==U||e[41]!==F||e[42]!==Y||e[43]!==Z||e[44]!==te?(ie=s.jsxs("div",{className:E,children:[P,U,F,Y,Z,te]}),e[39]=P,e[40]=U,e[41]=F,e[42]=Y,e[43]=Z,e[44]=te,e[45]=ie):ie=e[45];let J;e[46]!==h||e[47]!==i||e[48]!==_.length?(J=_.length===0&&!h&&s.jsx("div",{className:"flex items-center justify-center py-6 text-xs text-muted-foreground",children:i?"No agents found":"No agents yet"}),e[46]=h,e[47]=i,e[48]=_.length,e[49]=J):J=e[49];let W;e[50]!==ie||e[51]!==J||e[52]!==A?(W=s.jsxs("div",{className:I,children:[A,ie,J]}),e[50]=ie,e[51]=J,e[52]=A,e[53]=W):W=e[53];let re;e[54]!==c.slug?(re={org:c.slug},e[54]=c.slug,e[55]=re):re=e[55];let Q;e[56]!==n?(Q=()=>n(),e[56]=n,e[57]=Q):Q=e[57];let le;e[58]!==re||e[59]!==Q?(le=s.jsx("div",{className:"border-t border-border px-3 py-2.5",children:s.jsx(Gn,{to:"/$org/settings/agents",params:re,onClick:Q,className:"text-xs text-muted-foreground hover:text-foreground transition-colors flex items-center justify-center",children:"See all agents"})}),e[58]=re,e[59]=Q,e[60]=le):le=e[60];let se;return e[61]!==W||e[62]!==M||e[63]!==le?(se=s.jsxs("div",{className:S,children:[M,W,le]}),e[61]=W,e[62]=M,e[63]=le,e[64]=se):se=e[64],se}function Si(t){return!Mr(t.id)}function Ci(t){return t.id}function Ni(t){return t.pinned}function en(t){const e=C.c(26);let n;e[0]!==t?(n=t===void 0?{}:t,e[0]=t,e[1]=n):n=e[1];const{compact:r}=n,o=r===void 0?!1:r,[i,a]=$.useState(!1),[l,c]=$.useState(!1),[u,d]=$.useState(!1),m=Os(),{setOpenMobile:f}=Qe(),x=qr(),p=x?"border border-border":void 0;let h;e[2]!==x?(h=I=>x?s.jsx(gi,{children:I}):I,e[2]=x,e[3]=h):h=e[3];const g=h;let b;e[4]!==m||e[5]!==f?(b=()=>{a(!1),m&&f(!1)},e[4]=m,e[5]=f,e[6]=b):b=e[6];const v=b;let j;e[7]!==v||e[8]!==i?(j=i&&s.jsx($.Suspense,{fallback:s.jsx("div",{className:"flex items-center justify-center py-8",children:s.jsx(Ne,{className:"h-4 w-24"})}),children:s.jsx(_i,{onClose:v,onOpenImportDeco:()=>c(!0),onOpenGithubImport:()=>{d(!0),v()}})}),e[7]=v,e[8]=i,e[9]=j):j=e[9];const y=j;let _;e[10]!==o||e[11]!==p||e[12]!==x||e[13]!==m||e[14]!==i||e[15]!==y||e[16]!==g?(_=m?s.jsxs(s.Fragment,{children:[o?g(s.jsx(Ie,{"aria-label":"Browse agents",className:K(p),onClick:()=>{ee("agent_browser_opened",{surface:"mobile_drawer"}),a(!0)},children:s.jsx(we,{className:"size-4"})})):s.jsx(fe,{children:g(s.jsxs(Me,{tooltip:x?void 0:"Browse agents",className:K(p),onClick:()=>{ee("agent_browser_opened",{surface:"mobile_drawer"}),a(!0)},children:[s.jsx(we,{}),s.jsx("span",{children:"New agent"})]}))}),s.jsx(zs,{open:i,onOpenChange:a,direction:"bottom",children:s.jsxs(Ps,{className:"max-h-[85dvh] p-0",children:[s.jsx(Es,{className:"sr-only",children:"Browse agents"}),y]})})]}):s.jsxs(Et,{open:i,onOpenChange:I=>{I&&!i&&ee("agent_browser_opened",{surface:"desktop_popover"}),a(I)},children:[o?g(s.jsx(mt,{asChild:!0,children:s.jsx(Ie,{"aria-label":"Browse agents",className:K(p),children:s.jsx(we,{className:"size-4"})})})):s.jsx(fe,{children:g(s.jsx(mt,{asChild:!0,children:s.jsxs(Me,{tooltip:x?void 0:"Browse agents",className:K(p),children:[s.jsx(we,{}),s.jsx("span",{children:"New agent"})]})}))}),s.jsx(Rt,{className:"w-[380px] p-0 overflow-hidden",side:"right",align:"start",children:y})]}),e[10]=o,e[11]=p,e[12]=x,e[13]=m,e[14]=i,e[15]=y,e[16]=g,e[17]=_):_=e[17];let N;e[18]!==l?(N=s.jsx(Or,{open:l,onOpenChange:c}),e[18]=l,e[19]=N):N=e[19];let S;e[20]!==u?(S=s.jsx(zr,{open:u,onOpenChange:d}),e[20]=u,e[21]=S):S=e[21];let M;return e[22]!==_||e[23]!==N||e[24]!==S?(M=s.jsxs(s.Fragment,{children:[_,N,S]}),e[22]=_,e[23]=N,e[24]=S,e[25]=M):M=e[25],M}function tn(){const t=C.c(24),{org:e}=xe(),n=Re(),o=_r().location.pathname,i=e.slug,{state:a,isMobile:l}=Qe(),c=!l&&a==="collapsed";let u;t[0]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx(Sr,{className:"size-4!"}),t[0]=u):u=t[0];const d=o===`/${i}`||o===`/${i}/`;let m;t[1]!==n||t[2]!==i?(m=()=>{n({to:"/$org",params:{org:i}})},t[1]=n,t[2]=i,t[3]=m):m=t[3];let f;t[4]!==d||t[5]!==m?(f={key:"home",label:"Home",icon:u,isActive:d,onClick:m},t[4]=d,t[5]=m,t[6]=f):f=t[6];const x=f;let p;t[7]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsx(Cr,{className:"size-4!"}),t[7]=p):p=t[7];let h;t[8]!==o||t[9]!==i?(h=o.startsWith(`/${i}/files`),t[8]=o,t[9]=i,t[10]=h):h=t[10];let g;t[11]!==n||t[12]!==i?(g=()=>{n({to:"/$org/files",params:{org:i}})},t[11]=n,t[12]=i,t[13]=g):g=t[13];let b;t[14]!==h||t[15]!==g?(b={key:"files",label:"Library",icon:p,isActive:h,onClick:g},t[14]=h,t[15]=g,t[16]=b):b=t[16];const v=b;let j;t[17]!==v||t[18]!==x?(j={type:"items",items:[x,v]},t[17]=v,t[18]=x,t[19]=j):j=t[19];let y;if(t[20]!==c||t[21]!==j){if(y=[j],c){let _;t[23]===Symbol.for("react.memo_cache_sentinel")?(_={type:"custom",key:"new-task",content:s.jsx(zt,{className:"pt-0 pr-0 pb-0 pl-0",children:s.jsx(Pt,{children:s.jsx(Pe,{className:"gap-1.5",children:s.jsx(en,{})})})})},t[23]=_):_=t[23],y.push(_)}t[20]=c,t[21]=j,t[22]=y}else y=t[22];return y}function Tt(t){const e=C.c(12);let n,r,o,i;e[0]!==t?({className:n,orientation:o,decorative:i,...r}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=o,e[4]=i):(n=e[1],r=e[2],o=e[3],i=e[4]);const a=o===void 0?"horizontal":o,l=i===void 0?!0:i;let c;e[5]!==n?(c=K("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",n),e[5]=n,e[6]=c):c=e[6];let u;return e[7]!==l||e[8]!==a||e[9]!==r||e[10]!==c?(u=s.jsx(Ln,{"data-slot":"separator-root",decorative:l,orientation:a,className:c,...r}),e[7]=l,e[8]=a,e[9]=r,e[10]=c,e[11]=u):u=e[11],u}function sn(t){const e=C.c(3),{children:n}=t;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx("div",{className:"flex h-6 items-center",children:s.jsx("div",{className:"h-0.5 w-16 rounded-full bg-sidebar-foreground/15"})}),e[0]=r):r=e[0];let o;return e[1]!==n?(o=s.jsxs(zt,{className:"pt-0 pr-0 pb-2 pl-0 mt-2",children:[r,s.jsx(Pt,{children:s.jsx(Pe,{className:"gap-0.5",children:n})})]}),e[1]=n,e[2]=o):o=e[2],o}function nn(t){const e=C.c(18),{item:n}=t,{isMobile:r,setOpenMobile:o}=Qe();let i;e[0]!==r||e[1]!==n||e[2]!==o?(i=()=>{ee("nav_item_clicked",{nav_key:n.key,nav_label:n.label,is_active:!!n.isActive,is_mobile:r}),n.onClick?.(),r&&o(!1)},e[0]=r,e[1]=n,e[2]=o,e[3]=i):i=e[3];const a=i,l=n.key,c=n.isActive&&"z-10";let u;e[4]!==c?(u=K(c),e[4]=c,e[5]=u):u=e[5];let d;e[6]!==n.label?(d=s.jsx("span",{children:n.label}),e[6]=n.label,e[7]=d):d=e[7];let m;e[8]!==a||e[9]!==n.icon||e[10]!==n.isActive||e[11]!==n.label||e[12]!==d?(m=s.jsxs(Me,{onClick:a,isActive:n.isActive,tooltip:n.label,children:[n.icon,d]}),e[8]=a,e[9]=n.icon,e[10]=n.isActive,e[11]=n.label,e[12]=d,e[13]=m):m=e[13];let f;return e[14]!==n.key||e[15]!==u||e[16]!==m?(f=s.jsx(fe,{className:u,children:m},l),e[14]=n.key,e[15]=u,e[16]=m,e[17]=f):f=e[17],f}function wi(t){const e=C.c(12),{section:n}=t;switch(n.type){case"divider":{let r;return e[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx($s,{className:"my-2"}),e[0]=r):r=e[0],r}case"spacer":{let r;return e[1]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx("div",{className:"flex-1"}),e[1]=r):r=e[1],r}case"group":{const r=n.group.label,o=n.group.defaultExpanded;let i;e[2]!==n.group.items?(i=n.group.items.map(Ii),e[2]=n.group.items,e[3]=i):i=e[3];let a;return e[4]!==n.group.defaultExpanded||e[5]!==n.group.label||e[6]!==i?(a=s.jsx(sn,{label:r,defaultExpanded:o,children:i}),e[4]=n.group.defaultExpanded,e[5]=n.group.label,e[6]=i,e[7]=a):a=e[7],a}case"items":{let r;e[8]!==n.items?(r=n.items.map(ki),e[8]=n.items,e[9]=r):r=e[9];let o;return e[10]!==r?(o=s.jsx(zt,{className:"pt-0 pr-0 pb-0 pl-0",children:s.jsx(Pt,{children:s.jsx(Pe,{className:"gap-1.5",children:r})})}),e[10]=r,e[11]=o):o=e[11],o}case"custom":return n.content}}function ki(t){return s.jsx(nn,{item:t},t.key)}function Ii(t){return s.jsx(nn,{item:t},t.key)}function Mi(t){const e=C.c(14),{sections:n,footer:r,additionalContent:o,variant:i,contentClassName:a}=t,l=i===void 0?"sidebar":i;let c;e[0]!==a?(c=K("flex flex-col flex-1 px-2 py-2 gap-0.5",a),e[0]=a,e[1]=c):c=e[1];let u;e[2]!==n?(u=n.map(Ai),e[2]=n,e[3]=u):u=e[3];let d;e[4]!==o?(d=o&&s.jsx("div",{className:"flex flex-col flex-1 min-h-0 group-data-[state=collapsed]/sidebar:mt-1 group-data-[state=expanded]/sidebar:mt-2",children:o}),e[4]=o,e[5]=d):d=e[5];let m;e[6]!==c||e[7]!==u||e[8]!==d?(m=s.jsxs(Ts,{className:c,children:[u,d]}),e[6]=c,e[7]=u,e[8]=d,e[9]=m):m=e[9];let f;return e[10]!==r||e[11]!==m||e[12]!==l?(f=s.jsxs(wr,{variant:l,children:[m,r]}),e[10]=r,e[11]=m,e[12]=l,e[13]=f):f=e[13],f}function Ai(t,e){return s.jsx(wi,{section:t},e)}function rn(t){const e=C.c(2);let n;return e[0]!==t?(n=s.jsx(Mi,{...t}),e[0]=t,e[1]=n):n=e[1],n}rn.Skeleton=function(){return s.jsx("div",{className:"flex flex-col gap-0.5",children:Array.from({length:8}).map((e,n)=>s.jsx("div",{className:"w-full h-8",children:s.jsx(Ne,{className:"h-full bg-sidebar-accent rounded-md"})},n))})};function $i(){const t=C.c(7),n=ks().logo??Bn,r=typeof n=="string"?n:n.light,o=typeof n=="string"?n:n.dark;let i;t[0]!==r?(i=s.jsx("img",{src:r,alt:"Logo",className:"size-6 object-contain dark:hidden"}),t[0]=r,t[1]=i):i=t[1];let a;t[2]!==o?(a=s.jsx("img",{src:o,alt:"Logo",className:"size-6 object-contain hidden dark:block"}),t[2]=o,t[3]=a):a=t[3];let l;return t[4]!==i||t[5]!==a?(l=s.jsxs(kr,{className:"flex flex-row items-center shrink-0 h-12 px-3 pb-0",children:[i,a]}),t[4]=i,t[5]=a,t[6]=l):l=t[6],l}function hs(t){const e=C.c(18),{item:n,onClose:r}=t,o=n.isActive&&"z-10";let i;e[0]!==o?(i=K(o),e[0]=o,e[1]=i):i=e[1];let a;e[2]!==n||e[3]!==r?(a=()=>{n.onClick?.(),r()},e[2]=n,e[3]=r,e[4]=a):a=e[4];let l;e[5]!==n.icon?(l=s.jsx("span",{className:"[&>svg]:size-5 shrink-0",children:n.icon}),e[5]=n.icon,e[6]=l):l=e[6];let c;e[7]!==n.label?(c=s.jsx("span",{children:n.label}),e[7]=n.label,e[8]=c):c=e[8];let u;e[9]!==n.isActive||e[10]!==n.label||e[11]!==a||e[12]!==l||e[13]!==c?(u=s.jsxs(Me,{onClick:a,isActive:n.isActive,tooltip:n.label,className:"h-10! text-sm!",children:[l,c]}),e[9]=n.isActive,e[10]=n.label,e[11]=a,e[12]=l,e[13]=c,e[14]=u):u=e[14];let d;return e[15]!==i||e[16]!==u?(d=s.jsx(fe,{className:i,children:u}),e[15]=i,e[16]=u,e[17]=d):d=e[17],d}function Ti(t){const e=C.c(18),{section:n,onClose:r}=t;switch(n.type){case"divider":{let o;return e[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx($s,{className:"my-2"}),e[0]=o):o=e[0],o}case"spacer":{let o;return e[1]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("div",{className:"flex-1"}),e[1]=o):o=e[1],o}case"group":{const o=n.group.label,i=n.group.defaultExpanded;let a;if(e[2]!==r||e[3]!==n.group.items){let c;e[5]!==r?(c=u=>s.jsx(hs,{item:u,onClose:r},u.key),e[5]=r,e[6]=c):c=e[6],a=n.group.items.map(c),e[2]=r,e[3]=n.group.items,e[4]=a}else a=e[4];let l;return e[7]!==n.group.defaultExpanded||e[8]!==n.group.label||e[9]!==a?(l=s.jsx(sn,{label:o,defaultExpanded:i,children:a}),e[7]=n.group.defaultExpanded,e[8]=n.group.label,e[9]=a,e[10]=l):l=e[10],l}case"items":{let o;if(e[11]!==r||e[12]!==n.items){let a;e[14]!==r?(a=l=>s.jsx(hs,{item:l,onClose:r},l.key),e[14]=r,e[15]=a):a=e[15],o=n.items.map(a),e[11]=r,e[12]=n.items,e[13]=o}else o=e[13];let i;return e[16]!==o?(i=s.jsx(zt,{className:"pt-0 pr-0 pb-0 pl-0",children:s.jsx(Pt,{children:s.jsx(Pe,{className:"gap-1.5",children:o})})}),e[16]=o,e[17]=i):i=e[17],i}case"custom":return n.content}}function Oi(t){const e=C.c(14),{sections:n,onClose:r,footer:o,additionalContent:i}=t;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx($.Suspense,{fallback:s.jsx("div",{className:"h-10 shrink-0"}),children:s.jsx($i,{})}),e[0]=a):a=e[0];let l;if(e[1]!==r||e[2]!==n){let m;e[4]!==r?(m=(f,x)=>s.jsx(Ti,{section:f,onClose:r},x),e[4]=r,e[5]=m):m=e[5],l=n.map(m),e[1]=r,e[2]=n,e[3]=l}else l=e[3];let c;e[6]!==i?(c=i&&s.jsx("div",{className:"mt-3 flex flex-col flex-1 min-h-0",children:i}),e[6]=i,e[7]=c):c=e[7];let u;e[8]!==l||e[9]!==c?(u=s.jsxs(Ts,{className:"flex flex-col flex-1 px-2 py-2 gap-0",children:[l,c]}),e[8]=l,e[9]=c,e[10]=u):u=e[10];let d;return e[11]!==o||e[12]!==u?(d=s.jsxs("div",{className:"bg-sidebar flex h-full w-full flex-col","data-sidebar":"sidebar",children:[a,u,o]}),e[11]=o,e[12]=u,e[13]=d):d=e[13],d}function on(t){return t.toLowerCase().trim().replace(/[^a-z0-9\s_-]+/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const zi=Hn({name:Un().min(2,"Organization name is required")});function Pi(t){const e=C.c(41),{open:n,onOpenChange:r}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={resolver:Kn(zi),defaultValues:{name:""}},e[0]=o):o=e[0];const i=Vn(o);let a;e[1]===Symbol.for("react.memo_cache_sentinel")?(a={mutationFn:Ri,onSuccess:Ei},e[1]=a):a=e[1];const l=Wn(a),c=l.error instanceof Error?l.error.message:l.error?"Failed to create organization.":null;let u;e[2]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsxs(So,{children:[s.jsx(Co,{children:"Create a new organization"}),s.jsx(No,{children:"Set up a new organization to collaborate with others."})]}),e[2]=u):u=e[2];let d;if(e[3]!==l||e[4]!==i){let S;e[6]!==l?(S=M=>l.mutateAsync(M),e[6]=l,e[7]=S):S=e[7],d=i.handleSubmit(S),e[3]=l,e[4]=i,e[5]=d}else d=e[5];let m;e[8]!==i.formState.isSubmitting?(m=S=>{const{field:M}=S;return s.jsxs(Ao,{children:[s.jsx($o,{children:"Organization Name"}),s.jsx(To,{children:s.jsx(Po,{...M,placeholder:"Acme Inc.",disabled:i.formState.isSubmitting})}),s.jsx(Oo,{children:"The name of your company or organization"}),M.value&&s.jsxs("div",{className:"text-xs text-muted-foreground mt-1",children:["Organization URL:"," ",s.jsxs("span",{className:"font-mono",children:[typeof window<"u"?globalThis.location.origin:"","/",on(M.value)]})]}),s.jsx(zo,{})]})},e[8]=i.formState.isSubmitting,e[9]=m):m=e[9];let f;e[10]!==i.control||e[11]!==m?(f=s.jsx(Io,{control:i.control,name:"name",render:m}),e[10]=i.control,e[11]=m,e[12]=f):f=e[12];let x;e[13]!==c?(x=c&&s.jsx("div",{className:"text-destructive text-sm mt-2",children:c}),e[13]=c,e[14]=x):x=e[14];let p;e[15]!==l||e[16]!==i?(p=()=>{l.reset(),i.reset()},e[15]=l,e[16]=i,e[17]=p):p=e[17];let h;e[18]!==i.formState.isSubmitting||e[19]!==p?(h=s.jsx(yo,{disabled:i.formState.isSubmitting,onClick:p,children:"Cancel"}),e[18]=i.formState.isSubmitting,e[19]=p,e[20]=h):h=e[20];const g=!i.formState.isValid||i.formState.isSubmitting;let b;e[21]!==i.formState.isSubmitting?(b=i.formState.isSubmitting?s.jsxs("span",{className:"flex items-center gap-2",children:[s.jsx(Eo,{size:"xs"})," Creating..."]}):"Create Organization",e[21]=i.formState.isSubmitting,e[22]=b):b=e[22];let v;e[23]!==g||e[24]!==b?(v=s.jsx($t,{type:"submit",variant:"default",disabled:g,children:b}),e[23]=g,e[24]=b,e[25]=v):v=e[25];let j;e[26]!==v||e[27]!==h?(j=s.jsxs(wo,{children:[h,v]}),e[26]=v,e[27]=h,e[28]=j):j=e[28];let y;e[29]!==j||e[30]!==d||e[31]!==f||e[32]!==x?(y=s.jsxs("form",{className:"space-y-6",onSubmit:d,autoComplete:"off",children:[f,x,j]}),e[29]=j,e[30]=d,e[31]=f,e[32]=x,e[33]=y):y=e[33];let _;e[34]!==i||e[35]!==y?(_=s.jsxs(_o,{children:[u,s.jsx(Mo,{...i,children:y})]}),e[34]=i,e[35]=y,e[36]=_):_=e[36];let N;return e[37]!==r||e[38]!==n||e[39]!==_?(N=s.jsx(ko,{open:n,onOpenChange:r,children:_}),e[37]=r,e[38]=n,e[39]=_,e[40]=N):N=e[40],N}function Ei(t){const{orgSlug:e}=t;window.location.href=`/${e}`}async function Ri(t){const e=on(t.name);if(!e)throw new Error("Organization slug is invalid");const n=await ke.organization.create({name:t.name,slug:e});if(n?.error)throw new Error(n.error.message||"Failed to create organization");const r=n?.data?.slug??e;if(!r)throw new Error("Failed to create organization");return{orgSlug:r}}function Kt(t){let e=0;for(let r=0;r<t.length;r++)e=t.charCodeAt(r)+((e<<5)-e);const n=Math.abs(e)%360;return{backgroundColor:`hsl(${n} 55% 70%)`,color:`hsl(${n} 55% 20%)`}}function Di(t){const e=C.c(13),{org:n,size:r}=t,o=r===void 0?"sm":r,i=o==="xs"?"size-5":"size-6",a=o==="xs"?"text-[9px]":"text-xs";let l;e[0]!==i?(l=K(i,"shrink-0 rounded-md flex items-center justify-center border border-border/50 overflow-hidden"),e[0]=i,e[1]=l):l=e[1];let c;e[2]!==n.logo||e[3]!==n.name?(c=n.logo?void 0:Kt(n.name),e[2]=n.logo,e[3]=n.name,e[4]=c):c=e[4];let u;e[5]!==n.logo||e[6]!==n.name||e[7]!==a?(u=n.logo?s.jsx("img",{src:n.logo,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:K("font-semibold leading-none",a),children:n.name.slice(0,2).toUpperCase()}),e[5]=n.logo,e[6]=n.name,e[7]=a,e[8]=u):u=e[8];let d;return e[9]!==l||e[10]!==c||e[11]!==u?(d=s.jsx("div",{className:l,style:c,children:u}),e[9]=l,e[10]=c,e[11]=u,e[12]=d):d=e[12],d}function wt(t){const e=C.c(22),{item:n,onClose:r}=t;if(n.href){const c=n.external?"_blank":void 0,u=n.external?"noopener noreferrer":void 0;let d;e[0]!==n.icon?(d=s.jsx("span",{className:"shrink-0 text-muted-foreground",children:n.icon}),e[0]=n.icon,e[1]=d):d=e[1];let m;e[2]!==n.label?(m=s.jsx("span",{className:"flex-1",children:n.label}),e[2]=n.label,e[3]=m):m=e[3];let f;return e[4]!==n.href||e[5]!==r||e[6]!==c||e[7]!==u||e[8]!==d||e[9]!==m?(f=s.jsxs("a",{href:n.href,target:c,rel:u,className:"flex items-center gap-2.5 px-3 py-2 rounded-md text-sm text-left w-full transition-colors text-foreground/80 hover:bg-sidebar-accent hover:text-foreground",onClick:r,children:[d,m]}),e[4]=n.href,e[5]=r,e[6]=c,e[7]=u,e[8]=d,e[9]=m,e[10]=f):f=e[10],f}let o;e[11]!==n||e[12]!==r?(o=()=>{n.onClick?.(),r()},e[11]=n,e[12]=r,e[13]=o):o=e[13];let i;e[14]!==n.icon?(i=s.jsx("span",{className:"shrink-0 text-muted-foreground",children:n.icon}),e[14]=n.icon,e[15]=i):i=e[15];let a;e[16]!==n.label?(a=s.jsx("span",{className:"flex-1",children:n.label}),e[16]=n.label,e[17]=a):a=e[17];let l;return e[18]!==o||e[19]!==i||e[20]!==a?(l=s.jsxs("button",{type:"button",onClick:o,className:"flex items-center gap-2.5 px-3 py-2 rounded-md text-sm text-left w-full transition-colors text-foreground/80 hover:bg-sidebar-accent hover:text-foreground",children:[i,a]}),e[18]=o,e[19]=i,e[20]=a,e[21]=l):l=e[21],l}function ps(t){const e=C.c(39),{sortedOrgs:n,orgParam:r,onSelectOrg:o,onCreateOrg:i}=t,[a,l]=$.useState(!1),[c,u]=$.useState("");let d;if(e[0]!==c||e[1]!==n){const I=c.toLowerCase();d=I?n.filter(A=>A.name.toLowerCase().includes(I)||A.slug.toLowerCase().includes(I)):n,e[0]=c,e[1]=n,e[2]=d}else d=e[2];const m=d;let f;e[3]!==a?(f=function(){a&&u(""),l(Fi)},e[3]=a,e[4]=f):f=e[4];const x=f;let p;e[5]!==c||e[6]!==a||e[7]!==x?(p=a?s.jsx("input",{autoFocus:!0,type:"text",value:c,onChange:I=>u(I.target.value),onKeyDown:I=>I.key==="Escape"&&x(),placeholder:"Search organizations...",className:"flex-1 min-w-0 bg-transparent text-sm outline-none placeholder:text-muted-foreground/60"}):s.jsx("span",{className:"text-sm font-medium text-muted-foreground/60",children:"Your Organizations"}),e[5]=c,e[6]=a,e[7]=x,e[8]=p):p=e[8];let h;e[9]!==a?(h=a?s.jsx(Ws,{size:16}):s.jsx(Rs,{size:16}),e[9]=a,e[10]=h):h=e[10];let g;e[11]!==h||e[12]!==x?(g=s.jsx("button",{type:"button",onClick:x,className:"flex items-center justify-center size-7 rounded-md text-muted-foreground hover:bg-accent/50 hover:text-foreground transition-colors",children:h}),e[11]=h,e[12]=x,e[13]=g):g=e[13];let b;e[14]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(we,{size:16}),e[14]=b):b=e[14];let v;e[15]!==i?(v=s.jsx("button",{type:"button",onClick:i,className:"flex items-center justify-center size-7 rounded-md text-muted-foreground hover:bg-accent/50 hover:text-foreground transition-colors",children:b}),e[15]=i,e[16]=v):v=e[16];let j;e[17]!==g||e[18]!==v?(j=s.jsxs("div",{className:"flex items-center gap-1 shrink-0",children:[g,v]}),e[17]=g,e[18]=v,e[19]=j):j=e[19];let y;e[20]!==p||e[21]!==j?(y=s.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[p,j]}),e[20]=p,e[21]=j,e[22]=y):y=e[22];let _;e[23]!==m.length||e[24]!==c?(_=m.length===0&&s.jsx("p",{className:"px-3 py-4 text-sm text-muted-foreground/60 text-center",children:c?`No organizations match "${c}"`:"No organizations available"}),e[23]=m.length,e[24]=c,e[25]=_):_=e[25];let N;if(e[26]!==m||e[27]!==o||e[28]!==r){let I;e[30]!==o||e[31]!==r?(I=A=>s.jsxs("button",{type:"button",onClick:()=>o(A.slug),className:K("flex items-center gap-3 px-3 py-2.5 rounded-md text-sm text-left w-full transition-colors",A.slug===r?"bg-accent text-accent-foreground":"text-foreground hover:bg-accent/50"),children:[s.jsx(Di,{org:A,size:"sm"}),s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("p",{className:"text-sm font-medium truncate",children:A.name}),s.jsx("p",{className:"text-xs text-muted-foreground truncate",children:A.slug})]}),A.slug===r&&s.jsx(Ks,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},A.id),e[30]=o,e[31]=r,e[32]=I):I=e[32],N=m.map(I),e[26]=m,e[27]=o,e[28]=r,e[29]=N}else N=e[29];let S;e[33]!==_||e[34]!==N?(S=s.jsxs("div",{className:"flex-1 min-h-0 overflow-y-auto p-1.5 flex flex-col gap-1",children:[_,N]}),e[33]=_,e[34]=N,e[35]=S):S=e[35];let M;return e[36]!==S||e[37]!==y?(M=s.jsxs(s.Fragment,{children:[y,S]}),e[36]=S,e[37]=y,e[38]=M):M=e[38],M}function Fi(t){return!t}function gs(t){const e=C.c(144),{user:n,userImage:r,menuItems:o,signOutItem:i,themeOptions:a,preferences:l,setPreferences:c,sortedOrgs:u,orgParam:d,onSelectOrg:m,onCreateOrg:f,close:x,isMobile:p,open:h}=t;if(p){const J=n?.name??"U";let W;e[0]!==J||e[1]!==r?(W=s.jsx(as,{url:r,fallback:J,shape:"circle",size:"sm",className:"shrink-0"}),e[0]=J,e[1]=r,e[2]=W):W=e[2];const re=n?.name??"User";let Q;e[3]!==re?(Q=s.jsx("p",{className:"text-sm font-medium truncate",children:re}),e[3]=re,e[4]=Q):Q=e[4];const le=n?.email;let se;e[5]!==le?(se=s.jsx("p",{className:"text-xs text-muted-foreground truncate",children:le}),e[5]=le,e[6]=se):se=e[6];let oe;e[7]!==Q||e[8]!==se?(oe=s.jsxs("div",{className:"flex-1 min-w-0",children:[Q,se]}),e[7]=Q,e[8]=se,e[9]=oe):oe=e[9];let he;e[10]!==n?(he=()=>{n?.id&&navigator.clipboard.writeText(n.id).then(Hi)},e[10]=n,e[11]=he):he=e[11];let Ze;e[12]===Symbol.for("react.memo_cache_sentinel")?(Ze=s.jsx(cs,{size:14}),e[12]=Ze):Ze=e[12];let be;e[13]!==he?(be=s.jsx(Ve,{asChild:!0,children:s.jsx("button",{type:"button",tabIndex:-1,onClick:he,className:"shrink-0 text-muted-foreground hover:text-foreground transition-colors",children:Ze})}),e[13]=he,e[14]=be):be=e[14];let Ae;e[15]===Symbol.for("react.memo_cache_sentinel")?(Ae=s.jsx(We,{side:"right",children:s.jsx("p",{className:"text-xs",children:"Copy user ID"})}),e[15]=Ae):Ae=e[15];let De;e[16]!==be?(De=s.jsx(ns,{delayDuration:300,children:s.jsxs(qe,{children:[be,Ae]})}),e[16]=be,e[17]=De):De=e[17];let Fe;e[18]!==De||e[19]!==W||e[20]!==oe?(Fe=s.jsxs("div",{className:"flex items-center gap-3 px-4 py-4 border-b border-border",children:[W,oe,De]}),e[18]=De,e[19]=W,e[20]=oe,e[21]=Fe):Fe=e[21];const ft=String(h);let Ge;e[22]!==f||e[23]!==m||e[24]!==d||e[25]!==u||e[26]!==ft?(Ge=s.jsx("div",{className:"border-b border-border pb-2",children:s.jsx(ps,{sortedOrgs:u,orgParam:d,onSelectOrg:m,onCreateOrg:f},ft)}),e[22]=f,e[23]=m,e[24]=d,e[25]=u,e[26]=ft,e[27]=Ge):Ge=e[27];let $e;if(e[28]!==x||e[29]!==o){let me;e[31]!==x?(me=ge=>s.jsx(wt,{item:ge,onClose:x},ge.key),e[31]=x,e[32]=me):me=e[32],$e=o.map(me),e[28]=x,e[29]=o,e[30]=$e}else $e=e[30];let ae;e[33]!==x||e[34]!==i?(ae=s.jsx(wt,{item:i,onClose:x}),e[33]=x,e[34]=i,e[35]=ae):ae=e[35];let Le;e[36]!==$e||e[37]!==ae?(Le=s.jsxs("nav",{className:"flex flex-col px-2 pt-2 pb-2 gap-0.5",children:[$e,ae]}),e[36]=$e,e[37]=ae,e[38]=Le):Le=e[38];let Be;e[39]!==Ge||e[40]!==Le?(Be=s.jsxs("div",{className:"flex-1 min-h-0 overflow-y-auto",children:[Ge,Le]}),e[39]=Ge,e[40]=Le,e[41]=Be):Be=e[41];let Ye;if(e[42]!==l.theme||e[43]!==c||e[44]!==a){let me;e[46]!==l.theme||e[47]!==c?(me=ge=>{const{value:Se,icon:Ue,label:Je}=ge;return s.jsx("button",{type:"button","aria-label":Je,onClick:()=>c(Ke=>({...Ke,theme:Se})),className:K("size-8 rounded-md flex items-center justify-center transition-colors",l.theme===Se?"bg-sidebar-accent text-foreground":"text-muted-foreground hover:bg-sidebar-accent/50 hover:text-foreground"),children:Ue},Se)},e[46]=l.theme,e[47]=c,e[48]=me):me=e[48],Ye=a.map(me),e[42]=l.theme,e[43]=c,e[44]=a,e[45]=Ye}else Ye=e[45];let He;e[49]!==Ye?(He=s.jsx("div",{className:"flex items-center gap-0.5",children:Ye}),e[49]=Ye,e[50]=He):He=e[50];const Xe=l.enableSounds?"Disable sounds":"Enable sounds";let de;e[51]!==c?(de=()=>c(Bi),e[51]=c,e[52]=de):de=e[52];const je=l.enableSounds?"text-foreground hover:bg-sidebar-accent/50":"text-muted-foreground hover:bg-sidebar-accent/50 hover:text-foreground";let pe;e[53]!==je?(pe=K("size-8 rounded-md flex items-center justify-center transition-colors",je),e[53]=je,e[54]=pe):pe=e[54];let ue;e[55]!==l.enableSounds?(ue=l.enableSounds?s.jsx(rs,{size:14}):s.jsx(os,{size:14}),e[55]=l.enableSounds,e[56]=ue):ue=e[56];let ve;e[57]!==Xe||e[58]!==de||e[59]!==pe||e[60]!==ue?(ve=s.jsx("button",{type:"button","aria-label":Xe,onClick:de,className:pe,children:ue}),e[57]=Xe,e[58]=de,e[59]=pe,e[60]=ue,e[61]=ve):ve=e[61];let Te;e[62]===Symbol.for("react.memo_cache_sentinel")?(Te=s.jsxs("span",{className:"text-xs text-muted-foreground/60",children:["v","3.12.0"]}),e[62]=Te):Te=e[62];let ye;e[63]!==ve?(ye=s.jsxs("div",{className:"flex items-center gap-2",children:[ve,Te]}),e[63]=ve,e[64]=ye):ye=e[64];let _e;e[65]!==He||e[66]!==ye?(_e=s.jsxs("div",{className:"flex items-center justify-between px-3 py-3 border-t border-border/50",children:[He,ye]}),e[65]=He,e[66]=ye,e[67]=_e):_e=e[67];let Oe;return e[68]!==Fe||e[69]!==Be||e[70]!==_e?(Oe=s.jsxs("div",{className:"flex flex-col h-full overflow-hidden",children:[Fe,Be,_e]}),e[68]=Fe,e[69]=Be,e[70]=_e,e[71]=Oe):Oe=e[71],Oe}const g=n?.name??"U";let b;e[72]!==g||e[73]!==r?(b=s.jsx(as,{url:r,fallback:g,shape:"circle",size:"sm",className:"shrink-0"}),e[72]=g,e[73]=r,e[74]=b):b=e[74];const v=n?.name??"User";let j;e[75]!==v?(j=s.jsx("p",{className:"text-sm font-medium truncate",children:v}),e[75]=v,e[76]=j):j=e[76];const y=n?.email;let _;e[77]!==y?(_=s.jsx("p",{className:"text-xs text-muted-foreground truncate",children:y}),e[77]=y,e[78]=_):_=e[78];let N;e[79]!==j||e[80]!==_?(N=s.jsxs("div",{className:"flex-1 min-w-0",children:[j,_]}),e[79]=j,e[80]=_,e[81]=N):N=e[81];let S;e[82]!==n?(S=()=>{n?.id&&navigator.clipboard.writeText(n.id).then(Li)},e[82]=n,e[83]=S):S=e[83];let M;e[84]===Symbol.for("react.memo_cache_sentinel")?(M=s.jsx(cs,{size:14}),e[84]=M):M=e[84];let I;e[85]!==S?(I=s.jsx(Ve,{asChild:!0,children:s.jsx("button",{type:"button",tabIndex:-1,onClick:S,className:"shrink-0 text-muted-foreground hover:text-foreground transition-colors",children:M})}),e[85]=S,e[86]=I):I=e[86];let A;e[87]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(We,{side:"right",children:s.jsx("p",{className:"text-xs",children:"Copy user ID"})}),e[87]=A):A=e[87];let E;e[88]!==I?(E=s.jsx(ns,{delayDuration:300,children:s.jsxs(qe,{children:[I,A]})}),e[88]=I,e[89]=E):E=e[89];let T;e[90]!==E||e[91]!==b||e[92]!==N?(T=s.jsxs("div",{className:"flex items-center gap-3 px-4 py-3 mx-1 mt-1",children:[b,N,E]}),e[90]=E,e[91]=b,e[92]=N,e[93]=T):T=e[93];let z;if(e[94]!==x||e[95]!==o){let J;e[97]!==x?(J=W=>s.jsx(wt,{item:W,onClose:x},W.key),e[97]=x,e[98]=J):J=e[98],z=o.map(J),e[94]=x,e[95]=o,e[96]=z}else z=e[96];let w;e[99]!==x||e[100]!==i?(w=s.jsx(wt,{item:i,onClose:x}),e[99]=x,e[100]=i,e[101]=w):w=e[101];let P;e[102]!==z||e[103]!==w?(P=s.jsxs("nav",{className:"flex-1 flex flex-col px-2 pt-1 overflow-y-auto",children:[z,w]}),e[102]=z,e[103]=w,e[104]=P):P=e[104];let O;if(e[105]!==l.theme||e[106]!==c||e[107]!==a){let J;e[109]!==l.theme||e[110]!==c?(J=W=>{const{value:re,icon:Q,label:le}=W;return s.jsx("button",{type:"button","aria-label":le,onClick:()=>c(se=>({...se,theme:re})),className:K("size-7 rounded-md flex items-center justify-center transition-colors",l.theme===re?"bg-sidebar-accent text-foreground":"text-muted-foreground hover:bg-sidebar-accent/50 hover:text-foreground"),children:Q},re)},e[109]=l.theme,e[110]=c,e[111]=J):J=e[111],O=a.map(J),e[105]=l.theme,e[106]=c,e[107]=a,e[108]=O}else O=e[108];let H;e[112]!==O?(H=s.jsx("div",{className:"flex items-center gap-0.5",children:O}),e[112]=O,e[113]=H):H=e[113];const L=l.enableSounds?"Disable sounds":"Enable sounds";let U;e[114]!==c?(U=()=>c(Gi),e[114]=c,e[115]=U):U=e[115];const R=l.enableSounds?"text-foreground hover:bg-sidebar-accent/50":"text-muted-foreground hover:bg-sidebar-accent/50 hover:text-foreground";let G;e[116]!==R?(G=K("size-7 rounded-md flex items-center justify-center transition-colors",R),e[116]=R,e[117]=G):G=e[117];let D;e[118]!==l.enableSounds?(D=l.enableSounds?s.jsx(rs,{size:14}):s.jsx(os,{size:14}),e[118]=l.enableSounds,e[119]=D):D=e[119];let F;e[120]!==L||e[121]!==U||e[122]!==G||e[123]!==D?(F=s.jsx("button",{type:"button","aria-label":L,onClick:U,className:G,children:D}),e[120]=L,e[121]=U,e[122]=G,e[123]=D,e[124]=F):F=e[124];let X;e[125]===Symbol.for("react.memo_cache_sentinel")?(X=s.jsxs("span",{className:"text-xs text-muted-foreground/60",children:["v","3.12.0"]}),e[125]=X):X=e[125];let q;e[126]!==F?(q=s.jsxs("div",{className:"flex items-center gap-2",children:[F,X]}),e[126]=F,e[127]=q):q=e[127];let V;e[128]!==H||e[129]!==q?(V=s.jsxs("div",{className:"flex items-center justify-between px-2 py-1.5 border-t border-border/50",children:[H,q]}),e[128]=H,e[129]=q,e[130]=V):V=e[130];let Y;e[131]!==T||e[132]!==P||e[133]!==V?(Y=s.jsxs("div",{className:"w-60 shrink-0 flex flex-col border-r border-border bg-sidebar/75",children:[T,P,V]}),e[131]=T,e[132]=P,e[133]=V,e[134]=Y):Y=e[134];const Z=String(h);let te;e[135]!==f||e[136]!==m||e[137]!==d||e[138]!==u||e[139]!==Z?(te=s.jsx("div",{className:"flex-1 flex flex-col min-w-0 min-h-0 overflow-hidden",children:s.jsx(ps,{sortedOrgs:u,orgParam:d,onSelectOrg:m,onCreateOrg:f},Z)}),e[135]=f,e[136]=m,e[137]=d,e[138]=u,e[139]=Z,e[140]=te):te=e[140];let ie;return e[141]!==Y||e[142]!==te?(ie=s.jsxs("div",{className:"flex min-h-[380px] w-full overflow-hidden",children:[Y,te]}),e[141]=Y,e[142]=te,e[143]=ie):ie=e[143],ie}function Gi(t){return{...t,enableSounds:!t.enableSounds}}function Li(){ze.success("User ID copied")}function Bi(t){return{...t,enableSounds:!t.enableSounds}}function Hi(){ze.success("User ID copied")}function Vt(){const t=C.c(35),{data:e}=ke.useSession(),{data:n}=qn(),r=Re();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={from:"/shell/$org",shouldThrow:!1},t[0]=o):o=t[0];const a=Yn(o)?.params.org,[l,c]=Xn(),u=Os(),[d,m]=$.useState(!1),[f,x]=$.useState(!1),p=e?.user,h=p?.image;let g;if(t[1]!==u||t[2]!==r||t[3]!==d||t[4]!==a||t[5]!==n||t[6]!==l||t[7]!==c||t[8]!==p||t[9]!==h){const j=n?.find(V=>V.slug===a);let y;t[11]!==a?(y=(V,Y)=>V.slug===a?-1:Y.slug===a?1:V.name.localeCompare(Y.name),t[11]=a,t[12]=y):y=t[12];const _=[...n??[]].sort(y);let N;t[13]!==r?(N=V=>{m(!1),r({to:"/$org",params:{org:V}})},t[13]=r,t[14]=N):N=t[14];const S=N;let M;t[15]===Symbol.for("react.memo_cache_sentinel")?(M=()=>m(!1),t[15]=M):M=t[15];const I=M;let A;t[16]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(pt,{size:16}),t[16]=A):A=t[16];let E;t[17]!==r||t[18]!==a?(E=()=>{r({to:"/$org/settings/profile",params:{org:a??""}})},t[17]=r,t[18]=a,t[19]=E):E=t[19];let T;t[20]===Symbol.for("react.memo_cache_sentinel")?(T=s.jsx(Nr,{size:16}),t[20]=T):T=t[20];let z;t[21]===Symbol.for("react.memo_cache_sentinel")?(z=s.jsx(jo,{size:16}),t[21]=z):z=t[21];let w;t[22]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(Zn,{className:"w-4 h-4"}),t[22]=w):w=t[22];let P;t[23]===Symbol.for("react.memo_cache_sentinel")?(P=s.jsx(vo,{size:16}),t[23]=P):P=t[23];let O;t[24]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsx(xo,{size:16}),t[24]=O):O=t[24];const H=[{key:"preferences",label:"Preferences",icon:A,onClick:E},...j?[{key:"install-app",label:"Add to Home Screen",icon:s.jsx(fo,{size:16}),onClick:()=>{r({to:"/$org/install",params:{org:j.slug}})}}]:[],{key:"terms",label:"Terms of Use",icon:T,href:"https://www.decocms.com/terms-of-use",external:!0},{key:"privacy",label:"Privacy Policy",icon:z,href:"https://www.decocms.com/privacy-policy",external:!0},{key:"github",label:"decocms/studio",icon:w,href:"https://github.com/decocms/studio",external:!0},{key:"community",label:"Community",icon:P,href:"https://decocms.com/discord",external:!0},{key:"homepage",label:"Homepage",icon:O,href:"https://decocms.com",external:!0}];let L;t[25]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx(ho,{size:16}),t[25]=L):L=t[25];const U={key:"logout",label:"Sign out",icon:L,onClick:Ki};let R;t[26]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx(go,{size:14}),t[26]=R):R=t[26];let G;t[27]===Symbol.for("react.memo_cache_sentinel")?(G=s.jsx(bo,{size:14}),t[27]=G):G=t[27];let D;t[28]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx(po,{size:14}),t[28]=D):D=t[28];const F=[{value:"light",icon:R,label:"Light theme"},{value:"dark",icon:G,label:"Dark theme"},{value:"system",icon:D,label:"System theme"}];let X;t[29]===Symbol.for("react.memo_cache_sentinel")?(X=()=>{m(!1),x(!0)},t[29]=X):X=t[29];const q={user:p,userImage:h,menuItems:H,signOutItem:U,themeOptions:F,preferences:l,setPreferences:c,sortedOrgs:_,orgParam:a,onSelectOrg:S,onCreateOrg:X,close:I,isMobile:u,open:d};g=u?s.jsxs(zs,{open:d,onOpenChange:m,direction:"bottom",children:[s.jsxs("button",{type:"button",onClick:()=>m(!0),className:"flex items-center gap-3 w-full px-3 py-2.5 rounded-lg transition-colors text-sm text-sidebar-foreground/70 hover:bg-sidebar-accent hover:text-sidebar-foreground",children:[s.jsx("div",{className:"shrink-0 size-5 rounded-md flex items-center justify-center border border-border/50 overflow-hidden",style:j?.logo?void 0:Kt(j?.name??""),children:j?.logo?s.jsx("img",{src:j.logo,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:"font-semibold leading-none text-[8px]",children:(j?.name??"?").slice(0,2).toUpperCase()})}),s.jsx("span",{className:"truncate",children:j?.name??"Account"})]}),s.jsxs(Ps,{className:"h-[80dvh] p-0",children:[s.jsx(Es,{className:"sr-only",children:"Account"}),s.jsx(gs,{...q})]})]}):s.jsxs(Et,{open:d,onOpenChange:m,children:[s.jsx(mt,{asChild:!0,children:s.jsxs(Me,{tooltip:j?.name??"Account",className:"rounded-md",children:[s.jsx("div",{className:"shrink-0 size-6 rounded-md flex items-center justify-center border border-border/50 overflow-hidden",style:j?.logo?void 0:Kt(j?.name??""),children:j?.logo?s.jsx("img",{src:j.logo,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:"font-semibold leading-none text-[9px]",children:(j?.name??"?").slice(0,2).toUpperCase()})}),s.jsx("span",{className:"truncate",children:j?.name??"Account"})]})}),s.jsx(Rt,{side:"right",align:"end",sideOffset:18,collisionPadding:16,className:"w-[520px] p-0 flex max-h-[520px]",onCloseAutoFocus:Ui,children:s.jsx(gs,{...q})})]}),t[1]=u,t[2]=r,t[3]=d,t[4]=a,t[5]=n,t[6]=l,t[7]=c,t[8]=p,t[9]=h,t[10]=g}else g=t[10];let b;t[30]!==f?(b=s.jsx(Pi,{open:f,onOpenChange:x}),t[30]=f,t[31]=b):b=t[31];let v;return t[32]!==g||t[33]!==b?(v=s.jsxs(s.Fragment,{children:[g,b]}),t[32]=g,t[33]=b,t[34]=v):v=t[34],v}function Ui(t){return t.preventDefault()}function Ki(){ee("signed_out",{source:"account_popover"}),Qn(),ke.signOut()}function Vi({invitation:t}){const[e,n]=$.useState(!1),[r,o]=$.useState(!1),i=Jn(),a=async()=>{n(!0);try{const u=await ke.organization.acceptInvitation({invitationId:t.id});if(u.error){ze.error(u.error.message),n(!1);return}}catch{ze.error("Failed to accept invitation"),n(!1);return}ze.success("Invitation accepted!"),er();let c;try{c=(await ke.organization.getFullOrganization({query:{organizationId:t.organizationId}}))?.data?.slug}catch{}window.location.href=c?`/${c}`:"/"},l=async()=>{o(!0);try{const c=await ke.organization.rejectInvitation({invitationId:t.id});c.error?(ze.error(c.error.message),o(!1)):(ze.success("Invitation declined"),i.invalidateQueries())}catch{ze.error("Failed to decline invitation"),o(!1)}};return s.jsxs("div",{className:"flex items-center gap-3 px-5 py-4 border-b border-border last:border-0 hover:bg-muted/25 transition-colors",children:[s.jsxs("div",{className:"flex-1 min-w-0",children:[s.jsx("p",{className:"text-xs text-muted-foreground",children:"You've been invited to join"}),s.jsx("p",{className:"text-sm font-medium truncate",children:t.organizationName??"Unknown organization"})]}),s.jsxs("div",{className:"flex items-center gap-1 shrink-0",children:[s.jsx($t,{size:"icon",variant:"ghost",className:"size-7 text-green-600 hover:text-green-700 hover:bg-green-50 dark:hover:bg-green-950",onClick:a,disabled:e||r,"aria-label":"Accept invitation",children:s.jsx(Ks,{size:14})}),s.jsx($t,{size:"icon",variant:"ghost",className:"size-7 text-muted-foreground hover:text-destructive hover:bg-destructive/10",onClick:l,disabled:e||r,"aria-label":"Decline invitation",children:s.jsx(Ws,{size:14})})]})]})}function Wi(t){const e=C.c(14),{release:n,isSeen:r,onSelect:o}=t;let i;e[0]!==r?(i=!r&&s.jsx("span",{"aria-label":"New release",className:"absolute left-2 top-1/2 -translate-y-1/2 size-1.5 rounded-full bg-primary"}),e[0]=r,e[1]=i):i=e[1];let a;e[2]!==n.eyebrow?(a=n.eyebrow&&s.jsx("p",{className:"text-xs text-muted-foreground",children:n.eyebrow}),e[2]=n.eyebrow,e[3]=a):a=e[3];let l;e[4]!==n.title?(l=s.jsx("p",{className:"text-sm font-medium text-foreground truncate",children:n.title}),e[4]=n.title,e[5]=l):l=e[5];let c;e[6]!==a||e[7]!==l?(c=s.jsxs("div",{className:"flex-1 min-w-0",children:[a,l]}),e[6]=a,e[7]=l,e[8]=c):c=e[8];let u;e[9]===Symbol.for("react.memo_cache_sentinel")?(u=s.jsx(Zt,{size:16,className:"text-muted-foreground shrink-0"}),e[9]=u):u=e[9];let d;return e[10]!==o||e[11]!==i||e[12]!==c?(d=s.jsxs("button",{type:"button",onClick:o,className:"relative w-full flex items-center gap-3 px-5 py-4 border-b border-border last:border-0 hover:bg-muted/25 transition-colors text-left",children:[i,c,u]}),e[10]=o,e[11]=i,e[12]=c,e[13]=d):d=e[13],d}function qi(){const t=$.useContext(tr),{data:e}=t.hooks.useListUserInvitations();return(e??[]).filter(r=>r.status==="pending"&&new Date(r.expiresAt)>new Date)}function ln(){const t=C.c(10),{isSeen:e,markSeen:n,unseenCount:r}=Kr(),o=qi();let i;if(t[0]!==e||t[1]!==o){const c=[...o].sort(Qi).map(Xi);let u;t[3]!==e?(u=m=>({type:"release",release:m,isSeen:e(m.id)}),t[3]=e,t[4]=u):u=t[4];const d=[...Vr].sort(Yi).map(u);i=[...c,...d],t[0]=e,t[1]=o,t[2]=i}else i=t[2];const a=r+o.length;let l;return t[5]!==n||t[6]!==o||t[7]!==i||t[8]!==a?(l={items:i,pendingInvitations:o,redDotCount:a,markReleaseSeen:n},t[5]=n,t[6]=o,t[7]=i,t[8]=a,t[9]=l):l=t[9],l}function Yi(t,e){return new Date(e.date).getTime()-new Date(t.date).getTime()}function Xi(t){return{type:"invitation",invitation:t}}function Qi(t,e){return new Date(t.expiresAt).getTime()-new Date(e.expiresAt).getTime()}class an extends $.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,n){}render(){return this.state.hasError?null:this.props.children}}function cn(t){return t<=1?"text-destructive":t<=5?"text-amber-500 dark:text-amber-400":"text-foreground/70"}function Zi(){const t=C.c(25),e=Re(),{org:n}=xe();let r;t[0]!==n.id||t[1]!==n.slug?(r={connectionId:Dt,orgId:n.id,orgSlug:n.slug},t[0]=n.id,t[1]=n.slug,t[2]=r):r=t[2];const o=Ft(r);let i;t[3]===Symbol.for("react.memo_cache_sentinel")?(i={providerId:"deco"},t[3]=i):i=t[3];let a;t[4]!==o?(a={client:o,toolName:"AI_PROVIDER_CREDITS",toolArguments:i,staleTime:6e4,select:Ji},t[4]=o,t[5]=a):a=t[5];const{data:l,isPending:c,isError:u}=Ys(a),d=l?.balanceCents!=null?l.balanceCents/100:null;let m;t[6]!==d||t[7]!==u||t[8]!==c?(m=c||u||d==null?"Credits":`Credits: $${d.toFixed(2)}`,t[6]=d,t[7]=u,t[8]=c,t[9]=m):m=t[9];const f=m;let x;t[10]!==d?(x=K(d!=null&&cn(d)),t[10]=d,t[11]=x):x=t[11];let p;t[12]!==e||t[13]!==n.slug?(p=()=>e({to:"/$org/settings/ai-providers",params:{org:n.slug}}),t[12]=e,t[13]=n.slug,t[14]=p):p=t[14];let h;t[15]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsx(Fs,{}),t[15]=h):h=t[15];let g;t[16]!==d?(g=d!=null?`$${d.toFixed(2)}`:"Credits",t[16]=d,t[17]=g):g=t[17];let b;t[18]!==g?(b=s.jsx("span",{children:g}),t[18]=g,t[19]=b):b=t[19];let v;return t[20]!==x||t[21]!==p||t[22]!==b||t[23]!==f?(v=s.jsx(Pe,{children:s.jsx(fe,{children:s.jsxs(Me,{tooltip:f,className:x,onClick:p,children:[h,b]})})}),t[20]=x,t[21]=p,t[22]=b,t[23]=f,t[24]=v):v=t[24],v}function Ji(t){return t.structuredContent}function el(){const t=C.c(1);if(!Xs().some(tl))return null;let r;return t[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(Zi,{}),t[0]=r):r=t[0],r}function tl(t){return t.providerId==="deco"}function sl(){const t=C.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(an,{children:s.jsx($.Suspense,{fallback:null,children:s.jsx(el,{})})}),t[0]=e):e=t[0],e}function nl(){const t=C.c(25),e=Re(),{org:n}=xe();let r;t[0]!==n.id||t[1]!==n.slug?(r={connectionId:Dt,orgId:n.id,orgSlug:n.slug},t[0]=n.id,t[1]=n.slug,t[2]=r):r=t[2];const o=Ft(r);let i;t[3]===Symbol.for("react.memo_cache_sentinel")?(i={providerId:"deco"},t[3]=i):i=t[3];let a;t[4]!==o?(a={client:o,toolName:"AI_PROVIDER_CREDITS",toolArguments:i,staleTime:6e4,select:rl},t[4]=o,t[5]=a):a=t[5];const{data:l,isPending:c,isError:u}=Ys(a),d=l?.balanceCents!=null?l.balanceCents/100:null;let m;t[6]!==d||t[7]!==u||t[8]!==c?(m=c||u||d==null?"Credits":`Credits: $${d.toFixed(2)}`,t[6]=d,t[7]=u,t[8]=c,t[9]=m):m=t[9];const f=m;let x;t[10]!==e||t[11]!==n.slug?(x=()=>e({to:"/$org/settings/ai-providers",params:{org:n.slug}}),t[10]=e,t[11]=n.slug,t[12]=x):x=t[12];let p;t[13]!==d?(p=K(d!=null&&cn(d)),t[13]=d,t[14]=p):p=t[14];let h;t[15]===Symbol.for("react.memo_cache_sentinel")?(h=s.jsx(Fs,{className:"size-4"}),t[15]=h):h=t[15];let g;t[16]!==x||t[17]!==p||t[18]!==f?(g=s.jsx(Ve,{asChild:!0,children:s.jsx(Ie,{"aria-label":f,onClick:x,className:p,children:h})}),t[16]=x,t[17]=p,t[18]=f,t[19]=g):g=t[19];let b;t[20]!==f?(b=s.jsx(We,{side:"top",children:f}),t[20]=f,t[21]=b):b=t[21];let v;return t[22]!==g||t[23]!==b?(v=s.jsxs(qe,{delayDuration:300,children:[g,b]}),t[22]=g,t[23]=b,t[24]=v):v=t[24],v}function rl(t){return t.structuredContent}function ol(){const t=C.c(1);if(!Xs().some(il))return null;let r;return t[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(nl,{}),t[0]=r):r=t[0],r}function il(t){return t.providerId==="deco"}function ll(){const t=C.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(an,{children:s.jsx($.Suspense,{fallback:null,children:s.jsx(ol,{})})}),t[0]=e):e=t[0],e}function dn(t){const e=C.c(15),{children:n}=t,{items:r,markReleaseSeen:o}=ln(),[i,a]=$.useState(null);let l;if(e[0]!==r||e[1]!==i){let h;e[3]!==i?(h=g=>g.type==="release"&&g.release.id===i,e[3]=i,e[4]=h):h=e[4],l=r.find(h),e[0]=r,e[1]=i,e[2]=l}else l=e[2];const c=l,u=c?.type==="release"?c.release:null;let d;e[5]!==o?(d=h=>{a(h),o(h)},e[5]=o,e[6]=d):d=e[6];const m=d;let f;e[7]===Symbol.for("react.memo_cache_sentinel")?(f=h=>{h||a(null)},e[7]=f):f=e[7];let x;e[8]!==m||e[9]!==r||e[10]!==u?(x=s.jsx(Rt,{side:"right",align:"start",sideOffset:16,collisionPadding:16,className:"w-[min(400px,calc(100vw-2rem))] p-0 h-[min(650px,calc(100dvh-4rem))] flex flex-col",children:u?s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex items-center gap-2 px-3 py-3 border-b border-border shrink-0",children:[s.jsx($t,{size:"icon",variant:"ghost","aria-label":"Back to inbox",className:"size-7 text-muted-foreground",onClick:()=>a(null),children:s.jsx(Ro,{size:16})}),s.jsx("h3",{className:"text-sm font-medium truncate",children:u.title})]}),s.jsx("div",{className:"overflow-y-auto flex-1 p-5",children:s.jsx(Wr,{release:u})})]}):s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"px-4 py-3 border-b border-border shrink-0",children:s.jsx("h3",{className:"text-sm font-medium",children:"Inbox"})}),r.length===0?s.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center gap-2 px-6 text-center",children:[s.jsx(Qt,{size:24,className:"text-muted-foreground/50"}),s.jsx("p",{className:"text-sm font-medium text-foreground",children:"Nothing here yet"}),s.jsx("p",{className:"text-xs text-muted-foreground",children:"Invitations and release updates will appear here"})]}):s.jsx("div",{className:"overflow-y-auto flex-1",children:r.map(h=>h.type==="invitation"?s.jsx(Vi,{invitation:h.invitation},`inv-${h.invitation.id}`):s.jsx(Wi,{release:h.release,isSeen:h.isSeen,onSelect:()=>m(h.release.id)},`rel-${h.release.id}`))})]})}),e[8]=m,e[9]=r,e[10]=u,e[11]=x):x=e[11];let p;return e[12]!==n||e[13]!==x?(p=s.jsxs(Et,{onOpenChange:f,children:[n,x]}),e[12]=n,e[13]=x,e[14]=p):p=e[14],p}function un(){const{redDotCount:t}=ln();return t>0}function al(){const t=C.c(6),e=un();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(Qt,{}),t[0]=n):n=t[0];let r;t[1]!==e?(r=e&&s.jsx("span",{className:"absolute top-1 right-1 size-2 rounded-full bg-red-500 pointer-events-none"}),t[1]=e,t[2]=r):r=t[2];let o;t[3]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("span",{children:"Inbox"}),t[3]=o):o=t[3];let i;return t[4]!==r?(i=s.jsx(dn,{children:s.jsx(mt,{asChild:!0,children:s.jsxs(Me,{tooltip:"Inbox",className:"relative",children:[n,r,o]})})}),t[4]=r,t[5]=i):i=t[5],i}function cl(){const t=C.c(8),e=un();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(Qt,{className:"size-4"}),t[0]=n):n=t[0];let r;t[1]!==e?(r=e&&s.jsx("span",{className:"absolute top-0.5 right-0.5 size-2 rounded-full bg-red-500 pointer-events-none"}),t[1]=e,t[2]=r):r=t[2];let o;t[3]!==r?(o=s.jsx(mt,{asChild:!0,children:s.jsx(Ve,{asChild:!0,children:s.jsxs(Ie,{"aria-label":"Inbox",children:[n,r]})})}),t[3]=r,t[4]=o):o=t[4];let i;t[5]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(We,{side:"top",children:"Inbox"}),t[5]=i):i=t[5];let a;return t[6]!==o?(a=s.jsx(dn,{children:s.jsxs(qe,{delayDuration:300,children:[o,i]})}),t[6]=o,t[7]=a):a=t[7],a}function dl(){const t=C.c(3),[e,n]=$.useState(!1);let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsxs(Me,{tooltip:"Connections",onClick:()=>{ee("connections_dialog_opened",{source:"sidebar_footer",mode:"browse"}),n(!0)},children:[s.jsx(Vs,{}),s.jsx("span",{children:"Connections"})]}),t[0]=r):r=t[0];let o;return t[1]!==e?(o=s.jsxs(s.Fragment,{children:[r,s.jsx(qs,{mode:"browse",open:e,onOpenChange:n,defaultTab:"all"})]}),t[1]=e,t[2]=o):o=t[2],o}function ul(){const t=C.c(3),[e,n]=$.useState(!1);let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsxs(qe,{delayDuration:300,children:[s.jsx(Ve,{asChild:!0,children:s.jsx(Ie,{"aria-label":"Connections",onClick:()=>{ee("connections_dialog_opened",{source:"sidebar_footer",mode:"browse"}),n(!0)},children:s.jsx(Vs,{className:"size-4"})})}),s.jsx(We,{side:"top",children:"Connections"})]}),t[0]=r):r=t[0];let o;return t[1]!==e?(o=s.jsxs(s.Fragment,{children:[r,s.jsx(qs,{mode:"browse",open:e,onOpenChange:n,defaultTab:"all"})]}),t[1]=e,t[2]=o):o=t[2],o}function ml(){const t=C.c(7),e=Re(),{org:n}=xe();let r;t[0]!==e||t[1]!==n.slug?(r=()=>e({to:"/$org/settings",params:{org:n.slug}}),t[0]=e,t[1]=n.slug,t[2]=r):r=t[2];let o,i;t[3]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(pt,{}),i=s.jsx("span",{children:"Settings"}),t[3]=o,t[4]=i):(o=t[3],i=t[4]);let a;return t[5]!==r?(a=s.jsxs(Me,{tooltip:"Settings",onClick:r,children:[o,i]}),t[5]=r,t[6]=a):a=t[6],a}function fl(){const t=C.c(9),e=Re(),{org:n}=xe();let r;t[0]!==e||t[1]!==n.slug?(r=()=>e({to:"/$org/settings",params:{org:n.slug}}),t[0]=e,t[1]=n.slug,t[2]=r):r=t[2];let o;t[3]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(pt,{className:"size-4"}),t[3]=o):o=t[3];let i;t[4]!==r?(i=s.jsx(Ve,{asChild:!0,children:s.jsx(Ie,{"aria-label":"Settings",onClick:r,children:o})}),t[4]=r,t[5]=i):i=t[5];let a;t[6]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(We,{side:"top",children:"Settings"}),t[6]=a):a=t[6];let l;return t[7]!==i?(l=s.jsxs(qe,{delayDuration:300,children:[i,a]}),t[7]=i,t[8]=l):l=t[8],l}function xl(){const t=C.c(6),{state:e}=Qe();if(e==="collapsed"){let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(sl,{}),t[0]=o):o=t[0];let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(fe,{children:s.jsx(dl,{})}),t[1]=i):i=t[1];let a;t[2]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(fe,{children:s.jsx(al,{})}),t[2]=a):a=t[2];let l;t[3]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(fe,{children:s.jsx(ml,{})}),t[3]=l):l=t[3];let c;return t[4]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsxs(Ut,{className:"px-2 pb-3 gap-1",children:[o,s.jsxs(Pe,{children:[i,a,l,s.jsx(fe,{children:s.jsx(Vt,{})})]})]}),t[4]=c):c=t[4],c}let r;return t[5]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(Ut,{className:"px-2 pb-3",children:s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx("div",{className:"flex-1 min-w-0",children:s.jsx(Pe,{children:s.jsx(fe,{children:s.jsx(Vt,{})})})}),s.jsx(fl,{}),s.jsx(cl,{}),s.jsx(ul,{}),s.jsx(ll,{})]})}),t[5]=r):r=t[5],r}function hl(){const t=C.c(8),e=Re(),{org:n}=xe(),{setOpenMobile:r}=Qe();let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("div",{className:"flex-1 min-w-0",children:s.jsx(Pe,{children:s.jsx(fe,{children:s.jsx(Vt,{})})})}),t[0]=o):o=t[0];let i;t[1]!==e||t[2]!==n.slug||t[3]!==r?(i=()=>{e({to:"/$org/settings",params:{org:n.slug}}),r(!1)},t[1]=e,t[2]=n.slug,t[3]=r,t[4]=i):i=t[4];let a;t[5]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(pt,{className:"size-4"}),t[5]=a):a=t[5];let l;return t[6]!==i?(l=s.jsx(Ut,{className:"px-2 pb-3",children:s.jsxs("div",{className:"flex items-center gap-1",children:[o,s.jsx(Ie,{"aria-label":"Settings",onClick:i,children:a})]})}),t[6]=i,t[7]=l):l=t[7],l}function pl(t,e){return t.filter(n=>!(e.ownerUserId!==void 0&&n.created_by!==e.ownerUserId||e.hasTrigger!==void 0&&!!n.trigger_id!==e.hasTrigger||!!n.hidden!==e.hidden))}function gl(t){const e=C.c(8),{virtualMcpId:n,size:r,showAutomationBadge:o}=t,i=r===void 0?"sm":r;let a;e[0]!==i||e[1]!==n?(a=n?s.jsx(bl,{virtualMcpId:n,size:i}):s.jsx(Ee,{icon:null,name:"?",size:i}),e[0]=i,e[1]=n,e[2]=a):a=e[2];let l;e[3]!==o?(l=o&&s.jsx("span",{"aria-label":"Automation-triggered",className:"absolute -bottom-0.5 -right-0.5 flex size-4 items-center justify-center rounded-full bg-blue-500 border border-blue-600 text-white",children:s.jsx(Zs,{size:10,className:"text-white"})}),e[3]=o,e[4]=l):l=e[4];let c;return e[5]!==a||e[6]!==l?(c=s.jsxs("div",{className:"relative shrink-0",children:[a,l]}),e[5]=a,e[6]=l,e[7]=c):c=e[7],c}function bl(t){const e=C.c(6),{virtualMcpId:n,size:r}=t,o=ht(n);if(!o){let l;return e[0]!==r?(l=s.jsx(Ee,{icon:null,name:"?",size:r}),e[0]=r,e[1]=l):l=e[1],l}const i=o.icon??null;let a;return e[2]!==o.title||e[3]!==r||e[4]!==i?(a=s.jsx(Ee,{icon:i,name:o.title,size:r}),e[2]=o.title,e[3]=r,e[4]=i,e[5]=a):a=e[5],a}function jl(t){const e=C.c(39),{open:n,onOpenChange:r}=t,[o,i]=$.useState(""),{org:a}=xe(),{setTaskId:l}=Bs();let c;e[0]!==a.id||e[1]!==a.slug?(c={connectionId:Dt,orgId:a.id,orgSlug:a.slug},e[0]=a.id,e[1]=a.slug,e[2]=c):c=e[2];const u=Ft(c);let d,m,f;e[3]!==a.id||e[4]!==o?(f=o.trim(),m=Xt,d=Yt.globalSearch(a.id,f),e[3]=a.id,e[4]=o,e[5]=d,e[6]=m,e[7]=f):(d=e[5],m=e[6],f=e[7]);const x=n&&f.length>0;let p;e[8]!==u||e[9]!==f?(p=async()=>{if(!u)throw new Error("MCP client unavailable");const w=await u.callTool({name:"GLOBAL_SEARCH",arguments:{query:f,limit:20}});return w.structuredContent??w},e[8]=u,e[9]=f,e[10]=p):p=e[10];let h;e[11]!==d||e[12]!==x||e[13]!==p?(h={queryKey:d,enabled:x,queryFn:p,staleTime:1e4},e[11]=d,e[12]=x,e[13]=p,e[14]=h):h=e[14];const{data:g,isFetching:b}=m(h);let v;e[15]!==g?.items?(v=g?.items??[],e[15]=g?.items,e[16]=v):v=e[16];const j=v;let y;e[17]!==r?(y=w=>{w||i(""),r(w)},e[17]=r,e[18]=y):y=e[18];const _=y;let N;e[19]!==_||e[20]!==l?(N=w=>{_(!1),l(w.id,w.virtual_mcp_id??void 0)},e[19]=_,e[20]=l,e[21]=N):N=e[21];const S=N;let M;e[22]===Symbol.for("react.memo_cache_sentinel")?(M=s.jsxs(Zo,{className:"sr-only",children:[s.jsx(Jo,{children:"Search"}),s.jsx(ei,{children:"Search across your organization's resources."})]}),e[22]=M):M=e[22];let I;e[23]!==o?(I=s.jsx(oi,{value:o,onValueChange:i,placeholder:"Search..."}),e[23]=o,e[24]=I):I=e[24];let A;e[25]!==S||e[26]!==b||e[27]!==j||e[28]!==f?(A=f?b&&j.length===0?s.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:"Searching…"}):j.length===0?s.jsx(ni,{children:"No results."}):j.map(w=>w.type==="thread"?s.jsxs(ri,{value:`thread:${w.id}:${w.title}`,onSelect:()=>S(w),className:"gap-2.5",children:[s.jsx(gl,{virtualMcpId:w.virtual_mcp_id,size:"xs"}),s.jsx("div",{className:"flex-1 min-w-0",children:s.jsx("div",{className:"text-sm text-foreground truncate",children:w.title||"Untitled thread"})}),s.jsx("span",{className:"text-xs text-muted-foreground shrink-0",children:new Date(w.updated_at).toLocaleDateString("en-US",{month:"short",day:"numeric"})})]},`thread:${w.id}`):null):s.jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:"Start typing to search."}),e[25]=S,e[26]=b,e[27]=j,e[28]=f,e[29]=A):A=e[29];let E;e[30]!==A?(E=s.jsx(ii,{children:A}),e[30]=A,e[31]=E):E=e[31];let T;e[32]!==I||e[33]!==E?(T=s.jsxs(ti,{className:"overflow-hidden p-0",closeButtonClassName:"hidden",children:[M,s.jsxs(li,{shouldFilter:!1,className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:[I,E]})]}),e[32]=I,e[33]=E,e[34]=T):T=e[34];let z;return e[35]!==_||e[36]!==n||e[37]!==T?(z=s.jsx(si,{open:n,onOpenChange:_,children:T}),e[35]=_,e[36]=n,e[37]=T,e[38]=z):z=e[38],z}function vl(t){return t==="owner"||t==="admin"}function yl(){const t=C.c(11),{locator:e}=xe(),n=ai(),{data:r}=ke.useSession(),o=r?.user?.id;let i;t[0]!==e?(i=Yt.members(e),t[0]=e,t[1]=i):i=t[1];let a;t[2]!==n?(a=()=>n.organization.listMembers(),t[2]=n,t[3]=a):a=t[3];const l=!!o;let c;t[4]!==i||t[5]!==a||t[6]!==l?(c={queryKey:i,queryFn:a,enabled:l,staleTime:6e4},t[4]=i,t[5]=a,t[6]=l,t[7]=c):c=t[7];const{data:u}=Xt(c);let d;if(t[8]!==u?.data?.members||t[9]!==o){const f=(u?.data?.members??[]).find(x=>x.userId===o)?.role;d=vl(f??void 0),t[8]=u?.data?.members,t[9]=o,t[10]=d}else d=t[10];return d}var Jt="ContextMenu",[_l]=dr(Jt,[Ms]),ce=Ms(),[Sl,mn]=_l(Jt),fn=t=>{const{__scopeContextMenu:e,children:n,onOpenChange:r,dir:o,modal:i=!0}=t,[a,l]=$.useState(!1),c=ce(e),u=ar(r),d=$.useCallback(m=>{l(m),u(m)},[u]);return s.jsx(Sl,{scope:e,open:a,onOpenChange:d,modal:i,children:s.jsx(cr,{...c,dir:o,open:a,onOpenChange:d,modal:i,children:n})})};fn.displayName=Jt;var xn="ContextMenuTrigger",hn=$.forwardRef((t,e)=>{const{__scopeContextMenu:n,disabled:r=!1,...o}=t,i=mn(xn,n),a=ce(n),l=$.useRef({x:0,y:0}),c=$.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...l.current})}),u=$.useRef(0),d=$.useCallback(()=>window.clearTimeout(u.current),[]),m=f=>{l.current={x:f.clientX,y:f.clientY},i.onOpenChange(!0)};return $.useEffect(()=>d,[d]),$.useEffect(()=>{r&&d()},[r,d]),s.jsxs(s.Fragment,{children:[s.jsx(sr,{...a,virtualRef:c}),s.jsx(nr.span,{"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,...o,ref:e,style:{WebkitTouchCallout:"none",...t.style},onContextMenu:r?t.onContextMenu:xt(t.onContextMenu,f=>{d(),m(f),f.preventDefault()}),onPointerDown:r?t.onPointerDown:xt(t.onPointerDown,kt(f=>{d(),u.current=window.setTimeout(()=>m(f),700)})),onPointerMove:r?t.onPointerMove:xt(t.onPointerMove,kt(d)),onPointerCancel:r?t.onPointerCancel:xt(t.onPointerCancel,kt(d)),onPointerUp:r?t.onPointerUp:xt(t.onPointerUp,kt(d))})]})});hn.displayName=xn;var Cl="ContextMenuPortal",pn=t=>{const{__scopeContextMenu:e,...n}=t,r=ce(e);return s.jsx(ir,{...r,...n})};pn.displayName=Cl;var gn="ContextMenuContent",bn=$.forwardRef((t,e)=>{const{__scopeContextMenu:n,...r}=t,o=mn(gn,n),i=ce(n),a=$.useRef(!1);return s.jsx(lr,{...i,...r,ref:e,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:l=>{t.onCloseAutoFocus?.(l),!l.defaultPrevented&&a.current&&l.preventDefault(),a.current=!1},onInteractOutside:l=>{t.onInteractOutside?.(l),!l.defaultPrevented&&!o.modal&&(a.current=!0)},style:{...t.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});bn.displayName=gn;var Nl="ContextMenuGroup",wl=$.forwardRef((t,e)=>{const{__scopeContextMenu:n,...r}=t,o=ce(n);return s.jsx(ur,{...o,...r,ref:e})});wl.displayName=Nl;var kl="ContextMenuLabel",Il=$.forwardRef((t,e)=>{const{__scopeContextMenu:n,...r}=t,o=ce(n);return s.jsx(mr,{...o,...r,ref:e})});Il.displayName=kl;var Ml="ContextMenuItem",jn=$.forwardRef((t,e)=>{const{__scopeContextMenu:n,...r}=t,o=ce(n);return s.jsx(rr,{...o,...r,ref:e})});jn.displayName=Ml;var Al="ContextMenuCheckboxItem",$l=$.forwardRef((t,e)=>{const{__scopeContextMenu:n,...r}=t,o=ce(n);return s.jsx(fr,{...o,...r,ref:e})});$l.displayName=Al;var Tl="ContextMenuRadioGroup",Ol=$.forwardRef((t,e)=>{const{__scopeContextMenu:n,...r}=t,o=ce(n);return s.jsx(xr,{...o,...r,ref:e})});Ol.displayName=Tl;var zl="ContextMenuRadioItem",Pl=$.forwardRef((t,e)=>{const{__scopeContextMenu:n,...r}=t,o=ce(n);return s.jsx(hr,{...o,...r,ref:e})});Pl.displayName=zl;var El="ContextMenuItemIndicator",Rl=$.forwardRef((t,e)=>{const{__scopeContextMenu:n,...r}=t,o=ce(n);return s.jsx(pr,{...o,...r,ref:e})});Rl.displayName=El;var Dl="ContextMenuSeparator",vn=$.forwardRef((t,e)=>{const{__scopeContextMenu:n,...r}=t,o=ce(n);return s.jsx(or,{...o,...r,ref:e})});vn.displayName=Dl;var Fl="ContextMenuArrow",Gl=$.forwardRef((t,e)=>{const{__scopeContextMenu:n,...r}=t,o=ce(n);return s.jsx(gr,{...o,...r,ref:e})});Gl.displayName=Fl;var Ll="ContextMenuSubTrigger",Bl=$.forwardRef((t,e)=>{const{__scopeContextMenu:n,...r}=t,o=ce(n);return s.jsx(br,{...o,...r,ref:e})});Bl.displayName=Ll;var Hl="ContextMenuSubContent",Ul=$.forwardRef((t,e)=>{const{__scopeContextMenu:n,...r}=t,o=ce(n);return s.jsx(jr,{...o,...r,ref:e,style:{...t.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Ul.displayName=Hl;function kt(t){return e=>e.pointerType!=="mouse"?t(e):void 0}var Kl=fn,Vl=hn,Wl=pn,ql=bn,Yl=jn,Xl=vn;function yn(t){const e=C.c(4);let n;e[0]!==t?({...n}=t,e[0]=t,e[1]=n):n=e[1];let r;return e[2]!==n?(r=s.jsx(Kl,{"data-slot":"context-menu",...n}),e[2]=n,e[3]=r):r=e[3],r}function _n(t){const e=C.c(4);let n;e[0]!==t?({...n}=t,e[0]=t,e[1]=n):n=e[1];let r;return e[2]!==n?(r=s.jsx(Vl,{"data-slot":"context-menu-trigger",...n}),e[2]=n,e[3]=r):r=e[3],r}function Sn(t){const e=C.c(8);let n,r;e[0]!==t?({className:n,...r}=t,e[0]=t,e[1]=n,e[2]=r):(n=e[1],r=e[2]);let o;e[3]!==n?(o=K("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",n),e[3]=n,e[4]=o):o=e[4];let i;return e[5]!==r||e[6]!==o?(i=s.jsx(Wl,{children:s.jsx(ql,{"data-slot":"context-menu-content",className:o,...r})}),e[5]=r,e[6]=o,e[7]=i):i=e[7],i}function It(t){const e=C.c(12);let n,r,o,i;e[0]!==t?({className:n,inset:r,variant:i,...o}=t,e[0]=t,e[1]=n,e[2]=r,e[3]=o,e[4]=i):(n=e[1],r=e[2],o=e[3],i=e[4]);const a=i===void 0?"default":i;let l;e[5]!==n?(l=K("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",n),e[5]=n,e[6]=l):l=e[6];let c;return e[7]!==r||e[8]!==o||e[9]!==l||e[10]!==a?(c=s.jsx(Yl,{"data-slot":"context-menu-item","data-inset":r,"data-variant":a,className:l,...o}),e[7]=r,e[8]=o,e[9]=l,e[10]=a,e[11]=c):c=e[11],c}function bs(t){const e=C.c(8);let n,r;e[0]!==t?({className:n,...r}=t,e[0]=t,e[1]=n,e[2]=r):(n=e[1],r=e[2]);let o;e[3]!==n?(o=K("bg-border -mx-1 my-1 h-px",n),e[3]=n,e[4]=o):o=e[4];let i;return e[5]!==r||e[6]!==o?(i=s.jsx(Xl,{"data-slot":"context-menu-separator",className:o,...r}),e[5]=r,e[6]=o,e[7]=i):i=e[7],i}function Cn(t){const e=C.c(26),{virtualMcpId:n,isOrgPinned:r,canManageOrgPin:o,onNewTaskInGroup:i,onShowSettings:a,onToggleOrgPin:l,onHideGroup:c}=t;let u;e[0]!==i||e[1]!==n?(u=()=>i(n),e[0]=i,e[1]=n,e[2]=u):u=e[2];let d;e[3]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(we,{size:14,className:"mr-2"}),e[3]=d):d=e[3];let m;e[4]!==u?(m=s.jsxs(It,{onSelect:u,children:[d,"New task"]}),e[4]=u,e[5]=m):m=e[5];let f;e[6]!==a||e[7]!==n?(f=()=>a(n),e[6]=a,e[7]=n,e[8]=f):f=e[8];let x;e[9]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx(pt,{size:14,className:"mr-2"}),e[9]=x):x=e[9];let p;e[10]!==f?(p=s.jsxs(It,{onSelect:f,children:[x,"Settings"]}),e[10]=f,e[11]=p):p=e[11];let h;e[12]!==o||e[13]!==r||e[14]!==l||e[15]!==n?(h=o&&s.jsxs(s.Fragment,{children:[s.jsx(bs,{}),s.jsxs(It,{onSelect:()=>l(n,!r),children:[s.jsx(Gr,{size:14,className:"mr-2"}),r?"Unpin for all members":"Pin for all members"]})]}),e[12]=o,e[13]=r,e[14]=l,e[15]=n,e[16]=h):h=e[16];let g;e[17]!==r||e[18]!==c||e[19]!==n?(g=!r&&s.jsxs(s.Fragment,{children:[s.jsx(bs,{}),s.jsxs(It,{onSelect:()=>c(n),children:[s.jsx(Do,{size:14,className:"mr-2"}),"Hide"]})]}),e[17]=r,e[18]=c,e[19]=n,e[20]=g):g=e[20];let b;return e[21]!==m||e[22]!==p||e[23]!==h||e[24]!==g?(b=s.jsxs(s.Fragment,{children:[m,p,h,g]}),e[21]=m,e[22]=p,e[23]=h,e[24]=g,e[25]=b):b=e[25],b}function Ql(t){return t==="ephemeral"||t.startsWith("thread:")}const js=new Map;function Nn(t){let e=js.get(t);return e||(e={tick:0,subscribers:new Set,intervalId:null},js.set(t,e)),e}function Zl(t,e){const n=Nn(t);return n.subscribers.add(e),n.intervalId===null&&(n.intervalId=setInterval(()=>{n.tick+=1;for(const r of n.subscribers)r()},t)),()=>{n.subscribers.delete(e),n.subscribers.size===0&&n.intervalId!==null&&(clearInterval(n.intervalId),n.intervalId=null)}}function Jl(t){const e=C.c(3),n=t;let r,o;return e[0]!==n?(r=i=>Zl(n,i),o=()=>Nn(n).tick,e[0]=n,e[1]=r,e[2]=o):(r=e[1],o=e[2]),$.useSyncExternalStore(r,o,ea)}function ea(){return 0}function Gt(t){const e=C.c(45),{task:n,isActive:r,onClick:o,onArchive:i,showAutomationBadge:a,showAgentIcon:l,hideStatusIdle:c}=t,u=mi(n.status),d=u.icon,m=n.metadata?.kind==="tool_call_run",f=ht(m?void 0:n.virtual_mcp_id);let x;e[0]!==f?(x=Fo(f),e[0]=f,e[1]=x):x=e[1];const p=x;Jl(6e4);const h=a||!!n.trigger_id,g=n.id,b="button",v=0;let j;e[2]!==o?(j=D=>{D.target===D.currentTarget&&(D.key==="Enter"||D.key===" ")&&(D.preventDefault(),o())},e[2]=o,e[3]=j):j=e[3];const y=r?"bg-accent text-accent-foreground":"hover:bg-accent/60";let _;e[4]!==y?(_=K("group/row flex items-center gap-2 px-2 py-1.5 rounded-md cursor-pointer transition-colors","focus-visible:outline-none focus-visible:inset-ring-2 focus-visible:inset-ring-ring/50",y),e[4]=y,e[5]=_):_=e[5];let N;e[6]!==m||e[7]!==l||e[8]!==f?.icon||e[9]!==f?.title?(N=l&&!m&&s.jsx(Ee,{icon:f?.icon??null,name:f?.title??"?",size:"2xs"}),e[6]=m,e[7]=l,e[8]=f?.icon,e[9]=f?.title,e[10]=N):N=e[10];let S;e[11]!==h?(S=h&&s.jsx(Zs,{size:12,"aria-label":"Automation-triggered",className:"shrink-0 text-blue-500"}),e[11]=h,e[12]=S):S=e[12];const M=n.title||"Untitled task";let I;e[13]!==M?(I=s.jsx("div",{className:"text-sm text-foreground truncate",children:M}),e[13]=M,e[14]=I):I=e[14];let A;e[15]!==I||e[16]!==S?(A=s.jsxs("div",{className:"flex items-center gap-1.5 min-w-0",children:[S,I]}),e[15]=I,e[16]=S,e[17]=A):A=e[17];let E;e[18]!==p||e[19]!==r||e[20]!==n.branch||e[21]!==n.updated_at?(E=n.updated_at&&s.jsxs("div",{className:K("flex items-center gap-1 text-[11px] min-w-0",r?"text-accent-foreground/70":"text-muted-foreground/60"),children:[n.branch&&!Ql(n.branch)?s.jsxs(s.Fragment,{children:[s.jsx("span",{className:"truncate font-mono",children:n.branch}),s.jsx("span",{className:"shrink-0",children:"·"})]}):p?s.jsxs(s.Fragment,{children:[s.jsxs("span",{className:"truncate",children:[p.owner,"/",p.name]}),s.jsx("span",{className:"shrink-0",children:"·"})]}):null,s.jsx("span",{className:"shrink-0",children:xi(new Date(n.updated_at))})]}),e[18]=p,e[19]=r,e[20]=n.branch,e[21]=n.updated_at,e[22]=E):E=e[22];let T;e[23]!==A||e[24]!==E?(T=s.jsxs("div",{className:"flex-1 min-w-0",children:[A,E]}),e[23]=A,e[24]=E,e[25]=T):T=e[25];const z="shrink-0 grid [grid-template-areas:'slot'] items-center justify-items-center",w=!c&&s.jsx("span",{className:"[grid-area:slot] flex size-7 items-center justify-center pointer-events-none transition-opacity group-hover/row:opacity-0","aria-label":u.label,children:s.jsx(d,{size:14,className:K(u.iconClassName,n.status==="in_progress"&&"animate-spin")})});let P;e[26]!==i?(P=D=>{D.stopPropagation(),i()},e[26]=i,e[27]=P):P=e[27];let O;e[28]===Symbol.for("react.memo_cache_sentinel")?(O=s.jsx(vr,{size:14}),e[28]=O):O=e[28];let H;e[29]!==P?(H=s.jsx(Ve,{asChild:!0,children:s.jsx("button",{type:"button","aria-label":"Archive task",onClick:P,className:"[grid-area:slot] opacity-0 pointer-events-none group-hover/row:opacity-100 group-hover/row:pointer-events-auto focus-visible:opacity-100 focus-visible:pointer-events-auto transition-opacity flex size-7 items-center justify-center rounded-md text-muted-foreground hover:text-foreground hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50",children:O})}),e[29]=P,e[30]=H):H=e[30];let L;e[31]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx(We,{side:"right",children:"Archive"}),e[31]=L):L=e[31];let U;e[32]!==H?(U=s.jsxs(qe,{children:[H,L]}),e[32]=H,e[33]=U):U=e[33];let R;e[34]!==w||e[35]!==U?(R=s.jsxs("div",{className:z,children:[w,U]}),e[34]=w,e[35]=U,e[36]=R):R=e[36];let G;return e[37]!==o||e[38]!==T||e[39]!==R||e[40]!==j||e[41]!==_||e[42]!==N||e[43]!==n.id?(G=s.jsxs("div",{"data-task-id":g,role:b,tabIndex:v,onClick:o,onKeyDown:j,className:_,children:[N,T,R]}),e[37]=o,e[38]=T,e[39]=R,e[40]=j,e[41]=_,e[42]=N,e[43]=n.id,e[44]=G):G=e[44],G}function es(t){const e=C.c(10),{onClick:n,isFetching:r}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=K("flex items-center gap-2 px-2 py-1.5 rounded-md text-sm text-muted-foreground","hover:bg-accent/60 hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50","transition-colors disabled:cursor-progress disabled:opacity-60"),e[0]=o):o=e[0];let i;e[1]!==r?(i=r&&s.jsx(qt,{size:14,className:"animate-spin"}),e[1]=r,e[2]=i):i=e[2];const a=r?"Loading…":"Show more";let l;e[3]!==a?(l=s.jsx("span",{children:a}),e[3]=a,e[4]=l):l=e[4];let c;return e[5]!==r||e[6]!==n||e[7]!==i||e[8]!==l?(c=s.jsxs("button",{type:"button","aria-label":"Show more tasks",onClick:n,disabled:r,className:o,children:[i,l]}),e[5]=r,e[6]=n,e[7]=i,e[8]=l,e[9]=c):c=e[9],c}function ta(t,e,n,r){return[t,e,n,r.type,r.member,r.currentUserId??""].join("|")}function sa(t){return t.member==="mine"&&!t.currentUserId}const wn=4;let At=0;const Wt=[];function na(){for(;At<wn&&Wt.length>0;){const t=Wt.shift();t&&t()}}function kn(t){return new Promise((e,n)=>{const r=()=>{At++,t().then(e,n).finally(()=>{At--,na()})};At<wn?r():Wt.push(r)})}const Lt=10;function vs(t,e,n,r,o){const i={hidden:!1};t==="agent"&&(i.virtual_mcp_id=e),r.member==="mine"&&r.currentUserId&&(i.created_by=r.currentUserId),r.type==="automation"&&(i.has_trigger=!0),r.type==="manual"&&(i.has_trigger=!1);const a={where:i,limit:o,offset:n,orderBy:[{field:["updated_at"],direction:"desc"}]};return t==="status"&&(a.status=e),a}function ra(t,e,n,r){let o=0;for(const i of t)ts(i,e,n,r)&&o++;return o}function Ht(t,e,n,r){return ra(t,e,n,r)}function oa(t,e,n){const r=new Map;for(const o of t){const i=o.virtual_mcp_id;i&&ts(o,e,i,n)&&r.set(i,(r.get(i)??0)+1)}return r}function ia(t,e){return!!(t>=Lt||t===0&&e)}function ys(t,e){return t<e}function la(t,e){return e===!1?!1:e===!0?!0:t}function ts(t,e,n,r){return!(t.hidden||e==="agent"&&t.virtual_mcp_id!==n||e==="status"&&(t.status??"completed")!==n||r.member==="mine"&&r.currentUserId&&t.created_by!==r.currentUserId||r.type==="automation"&&!t.trigger_id||r.type==="manual"&&t.trigger_id)}const Ot=new Map,Mt=new Map;function aa(t,e){return e?t>=Lt?!0:null:!1}function _s(t){return Ot.get(t)}function ca(t,e){Ot.set(t,e)}function da(t,e,n){const r=Ot.get(t);if(r!==void 0){n(r);return}let o=Mt.get(t);o||(o=kn(e).then(i=>(Ot.set(t,i),Mt.delete(t),i)).catch(()=>(Mt.delete(t),Promise.reject(new Error("group probe failed")))),Mt.set(t,o)),o.then(n,()=>n(!1))}function Ss(t){const e=t.structuredContent??t,n=Array.isArray(e.items)?e.items:[];return{items:n,hasMore:e.hasMore??n.length===Lt,totalCount:typeof e.totalCount=="number"?e.totalCount:void 0}}function ua(t,e,n,r,o){let i=0;for(const a of t)e.has(a.id)||ts(a,n,r,o)&&i++;return i}function ss(t,e,n,r){const{org:o}=xe(),i=ta(o.id,t,e,n),a=sa(n),[l,c]=$.useState({isFetching:!1,isProbing:!1,identity:i,probeSubscribedIdentity:null,serverHasMore:null});l.identity!==i&&c({isFetching:!1,isProbing:!1,identity:i,probeSubscribedIdentity:null,serverHasMore:null});const u=Hr(),{threads:d,hasMore:m}=Ls(),f=r??Ht(d,t,e,n),x=ia(f,m),p=aa(f,m),h=Ft({connectionId:Dt,orgId:o.id,orgSlug:o.slug});if(l.identity===i&&l.serverHasMore===null){const y=p??_s(i);y!==void 0&&c({isFetching:!1,isProbing:!1,identity:i,probeSubscribedIdentity:l.probeSubscribedIdentity,serverHasMore:y})}!a&&l.identity===i&&l.serverHasMore===null&&p===null&&_s(i)===void 0&&l.probeSubscribedIdentity!==i&&(c(y=>y.identity===i?{...y,isProbing:!0,probeSubscribedIdentity:i}:y),da(i,async()=>{const y=vs(t,e,0,n,1),_=await h.callTool({name:"COLLECTION_THREADS_LIST",arguments:y});if(_.isError)throw new Error(is(_,"COLLECTION_THREADS_LIST failed"));const{totalCount:N}=Ss(_),S=Ht(u.threads.get(),t,e,n);return N===void 0?!1:ys(S,N)},y=>{c(_=>_.identity!==i?_:{..._,isProbing:!1,serverHasMore:y})}));async function b(){if(l.isFetching||l.isProbing||a)return;const y=i;c(_=>_.identity===y?{..._,isFetching:!0}:_);try{const _=Ht(d,t,e,n),N=vs(t,e,_,n,Lt),S=await kn(()=>h.callTool({name:"COLLECTION_THREADS_LIST",arguments:N}));if(S.isError)throw new Error(is(S,"COLLECTION_THREADS_LIST failed"));const{items:M,hasMore:I,totalCount:A}=Ss(S),E=new Set(d.map(w=>w.id)),T=ua(M,E,t,e,n),z=_;u.mergeThreads(M),c(w=>{if(w.identity!==y)return w;let P;return A!==void 0?P=ys(z+T,A):P=M.length===0||T===0?!1:I,ca(y,P),{...w,isFetching:!1,serverHasMore:P}})}catch(_){const N=_ instanceof Error?_.message:String(_);ze.error(`Could not load more tasks: ${N}`),c(S=>S.identity===y?{...S,isFetching:!1}:S)}}const v=l.isFetching||l.isProbing;return{hasMore:!a&&!v&&la(x,l.serverHasMore),isFetching:v,isProbing:l.isProbing,serverHasMore:l.serverHasMore,loadMore:b}}function In(t){const e=C.c(61),{virtualMcpId:n,threads:r,activeTaskId:o,filters:i,onSelectTask:a,onArchiveTask:l,onNewTaskInGroup:c,onShowSettings:u,onHideGroup:d,isOrgPinned:m,canManageOrgPin:f,onToggleOrgPin:x,sortable:p,groupVisibleCount:h}=t,g=m===void 0?!1:m,b=f===void 0?!1:f,v=ht(n),j=r[0];let y;e[0]!==j||e[1]!==c||e[2]!==a||e[3]!==n?(y=()=>{j?a(j):c(n)},e[0]=j,e[1]=c,e[2]=a,e[3]=n,e[4]=y):y=e[4];const _=y,N=p?.isDragging?!1:void 0;let S;e[5]!==p?.isDragging||e[6]!==n?(S=ie=>{p?.isDragging||ie&&ee("sidebar_group_hover_popover_opened",{virtual_mcp_id:n})},e[5]=p?.isDragging,e[6]=n,e[7]=S):S=e[7];const M=!!(j&&o&&j.id===o),I=p?"Drag to reorder":void 0;let A;e[8]!==p?(A=p?{...p.attributes,...p.listeners}:{},e[8]=p,e[9]=A):A=e[9];const E=p&&"cursor-pointer active:cursor-grabbing touch-none",T=p?.isDragging&&"cursor-grabbing";let z;e[10]!==T||e[11]!==E?(z=K("group-data-[state=collapsed]/sidebar:!size-10 group-data-[state=collapsed]/sidebar:!max-w-none group-data-[state=collapsed]/sidebar:!overflow-visible group-data-[state=collapsed]/sidebar:[&_svg]:opacity-100",E,T),e[10]=T,e[11]=E,e[12]=z):z=e[12];const w=v?.icon??null,P=v?.title??"?";let O;e[13]!==w||e[14]!==P?(O=s.jsx(Ee,{icon:w,name:P,size:"sm+",className:"rounded-lg"}),e[13]=w,e[14]=P,e[15]=O):O=e[15];let H;e[16]!==_||e[17]!==z||e[18]!==O||e[19]!==M||e[20]!==I||e[21]!==A?(H=s.jsx(fe,{children:s.jsx(_n,{asChild:!0,children:s.jsx(ci,{asChild:!0,children:s.jsx(Me,{onClick:_,isActive:M,title:I,...A,className:z,children:O})})})}),e[16]=_,e[17]=z,e[18]=O,e[19]=M,e[20]=I,e[21]=A,e[22]=H):H=e[22];const L=x??ma;let U;e[23]!==b||e[24]!==g||e[25]!==d||e[26]!==c||e[27]!==u||e[28]!==L||e[29]!==n?(U=s.jsx(Sn,{className:"w-56",children:s.jsx(Cn,{virtualMcpId:n,isOrgPinned:g,canManageOrgPin:b,onNewTaskInGroup:c,onShowSettings:u,onToggleOrgPin:L,onHideGroup:d})}),e[23]=b,e[24]=g,e[25]=d,e[26]=c,e[27]=u,e[28]=L,e[29]=n,e[30]=U):U=e[30];let R;e[31]!==H||e[32]!==U?(R=s.jsxs(yn,{children:[H,U]}),e[31]=H,e[32]=U,e[33]=R):R=e[33];const G=v?.title??"Agent";let D;e[34]!==G?(D=s.jsx("span",{className:"truncate",children:G}),e[34]=G,e[35]=D):D=e[35];let F;e[36]!==c||e[37]!==n?(F=()=>c(n),e[36]=c,e[37]=n,e[38]=F):F=e[38];let X;e[39]===Symbol.for("react.memo_cache_sentinel")?(X=s.jsx(we,{size:14}),e[39]=X):X=e[39];let q;e[40]!==F?(q=s.jsx("button",{type:"button","aria-label":"New task in this agent",onClick:F,className:"flex size-6 items-center justify-center rounded-md hover:bg-accent text-muted-foreground hover:text-foreground",children:X}),e[40]=F,e[41]=q):q=e[41];let V;e[42]!==D||e[43]!==q?(V=s.jsxs("div",{className:"flex items-center justify-between px-1 pb-1 text-xs font-medium",children:[D,q]}),e[42]=D,e[43]=q,e[44]=V):V=e[44];let Y;e[45]!==o||e[46]!==i||e[47]!==h||e[48]!==l||e[49]!==a||e[50]!==r||e[51]!==n?(Y=s.jsx(fa,{virtualMcpId:n,threads:r,activeTaskId:o,filters:i,groupVisibleCount:h,onSelectTask:a,onArchiveTask:l}),e[45]=o,e[46]=i,e[47]=h,e[48]=l,e[49]=a,e[50]=r,e[51]=n,e[52]=Y):Y=e[52];let Z;e[53]!==V||e[54]!==Y?(Z=s.jsxs(di,{side:"right",align:"start",sideOffset:8,className:"w-72 p-2",children:[V,Y]}),e[53]=V,e[54]=Y,e[55]=Z):Z=e[55];let te;return e[56]!==R||e[57]!==Z||e[58]!==N||e[59]!==S?(te=s.jsxs(ui,{open:N,openDelay:120,closeDelay:150,onOpenChange:S,children:[R,Z]}),e[56]=R,e[57]=Z,e[58]=N,e[59]=S,e[60]=te):te=e[60],te}function ma(){}function fa(t){const e=C.c(6),{virtualMcpId:n,threads:r,activeTaskId:o,filters:i,groupVisibleCount:a,onSelectTask:l,onArchiveTask:c}=t,u=ss("agent",n,i,a);let d;return e[0]!==o||e[1]!==c||e[2]!==l||e[3]!==u||e[4]!==r?(d=s.jsx("div",{className:"flex flex-col gap-0.5 max-h-[60vh] overflow-y-auto",children:r.length===0&&!u.hasMore&&!u.isFetching?s.jsx("div",{className:"px-2 py-1.5 text-xs text-muted-foreground",children:"No tasks yet"}):s.jsxs(s.Fragment,{children:[r.map(m=>s.jsx(Gt,{task:m,isActive:o===m.id,onClick:()=>l(m),onArchive:()=>c(m),showAutomationBadge:!!m.trigger_id},m.id)),(u.hasMore||u.isFetching)&&s.jsx(es,{onClick:()=>{u.loadMore()},isFetching:u.isFetching})]})}),e[0]=o,e[1]=c,e[2]=l,e[3]=u,e[4]=r,e[5]=d):d=e[5],d}function xa(t,e,n,r,o,i,a){const l=C.c(18),c=a===void 0?"expanded":a;let u;l[0]===Symbol.for("react.memo_cache_sentinel")?(u={activationConstraint:{distance:8}},l[0]=u):u=l[0];let d;l[1]===Symbol.for("react.memo_cache_sentinel")?(d={coordinateGetter:Ho},l[1]=d):d=l[1];const m=Go(ds(Bo,u),ds(Lo,d));let f;l[2]!==r||l[3]!==o||l[4]!==e||l[5]!==t?(f=Qr(t,e,r,o),l[2]=r,l[3]=o,l[4]=e,l[5]=t,l[6]=f):f=l[6];const x=f;let p;l[7]!==i||l[8]!==n||l[9]!==o||l[10]!==e||l[11]!==x||l[12]!==c?(p=b=>{const{active:v,over:j}=b;if(!j||v.id===j.id)return;const y=String(v.id),_=String(j.id);if(!Zr(y,_,o))return;const N=Jr(x,y,_),S=eo(e,n,o,N);e==="org"?to(n.orgId,S):so(n,S),ee("sidebar_group_reordered",{virtual_mcp_id:y,over_virtual_mcp_id:_,surface:c,section:e}),i()},l[7]=i,l[8]=n,l[9]=o,l[10]=e,l[11]=x,l[12]=c,l[13]=p):p=l[13];const h=p;let g;return l[14]!==h||l[15]!==m||l[16]!==x?(g={sensors:m,sortableIds:x,handleDragEnd:h},l[14]=h,l[15]=m,l[16]=x,l[17]=g):g=l[17],g}function ha(t){const e=C.c(2),{collapsed:n}=t;if(n===void 0?!1:n){let i;return e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("div",{role:"separator","aria-orientation":"horizontal",className:"mx-auto my-1 h-px w-6 shrink-0 bg-border"}),e[0]=i):i=e[0],i}let o;return e[1]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("div",{role:"separator","aria-orientation":"horizontal",className:"my-1.5 h-px w-full shrink-0 bg-border"}),e[1]=o):o=e[1],o}function pa(t){const e=C.c(12),{id:n,children:r}=t;let o;e[0]!==n?(o={id:n},e[0]=n,e[1]=o):o=e[1];const{attributes:i,listeners:a,setNodeRef:l,transform:c,transition:u,isDragging:d}=qo(o);let m;if(e[2]!==i||e[3]!==r||e[4]!==d||e[5]!==a||e[6]!==l||e[7]!==c||e[8]!==u){const x={transform:Yo.Transform.toString(c),transition:u,zIndex:d?100:void 0};m=r({setNodeRef:l,style:x,isDragging:d,attributes:i,listeners:a}),e[2]=i,e[3]=r,e[4]=d,e[5]=a,e[6]=l,e[7]=c,e[8]=u,e[9]=m}else m=e[9];let f;return e[10]!==m?(f=s.jsx(s.Fragment,{children:m}),e[10]=m,e[11]=f):f=e[11],f}function Cs(t){const e=C.c(18),{section:n,groups:r,orderScope:o,decopilotId:i,orgPinnedIds:a,onReorder:l,surface:c,renderGroup:u,renderSortable:d,renderFixed:m}=t,{sensors:f,sortableIds:x,handleDragEnd:p}=xa(r,n,o,i,a,l,c);if(r.length===0)return null;const h=x;let g;if(e[0]!==r||e[1]!==m||e[2]!==u||e[3]!==d||e[4]!==x){let j;e[6]!==m||e[7]!==u||e[8]!==d||e[9]!==x?(j=y=>{const _=u(y);return x.includes(y.virtualMcpId)?s.jsx(pa,{id:y.virtualMcpId,children:N=>{const{setNodeRef:S,style:M,isDragging:I,attributes:A,listeners:E}=N;return s.jsx("div",{ref:S,style:M,className:K(I&&"opacity-50"),children:d(_,{attributes:A,listeners:E,isDragging:I})})}},y.virtualMcpId):s.jsx("div",{children:m(_)},y.virtualMcpId)},e[6]=m,e[7]=u,e[8]=d,e[9]=x,e[10]=j):j=e[10],g=r.map(j),e[0]=r,e[1]=m,e[2]=u,e[3]=d,e[4]=x,e[5]=g}else g=e[5];let b;e[11]!==h||e[12]!==g?(b=s.jsx(Uo,{items:h,strategy:Ko,children:g}),e[11]=h,e[12]=g,e[13]=b):b=e[13];let v;return e[14]!==p||e[15]!==f||e[16]!==b?(v=s.jsx(Vo,{sensors:f,collisionDetection:Wo,onDragEnd:p,children:b}),e[14]=p,e[15]=f,e[16]=b,e[17]=v):v=e[17],v}function Mn(t){const e=C.c(23),{groups:n,orderScope:r,decopilotId:o,orgPinnedIds:i,onReorder:a,surface:l,collapsedSeparator:c,renderGroup:u,renderSortable:d,renderFixed:m}=t;let f;if(e[0]!==c||e[1]!==o||e[2]!==n||e[3]!==a||e[4]!==r||e[5]!==i||e[6]!==m||e[7]!==u||e[8]!==d||e[9]!==l){const{decopilot:x,orgPinned:p,user:h,toolCallRuns:g}=no(n,o,i),b=p.length>0&&h.length>0;let v;e[11]!==o||e[12]!==a||e[13]!==r||e[14]!==i||e[15]!==m||e[16]!==u||e[17]!==d||e[18]!==l?(v={orderScope:r,decopilotId:o,orgPinnedIds:i,onReorder:a,surface:l,renderGroup:u,renderSortable:d,renderFixed:m},e[11]=o,e[12]=a,e[13]=r,e[14]=i,e[15]=m,e[16]=u,e[17]=d,e[18]=l,e[19]=v):v=e[19];const j=v;let y;e[20]!==c||e[21]!==b?(y=b&&s.jsx(ha,{collapsed:c}),e[20]=c,e[21]=b,e[22]=y):y=e[22],f=s.jsxs(s.Fragment,{children:[x&&m(u(x)),s.jsx(Cs,{section:"org",groups:p,...j}),y,s.jsx(Cs,{section:"user",groups:h,...j}),g&&m(u(g))]}),e[0]=c,e[1]=o,e[2]=n,e[3]=a,e[4]=r,e[5]=i,e[6]=m,e[7]=u,e[8]=d,e[9]=l,e[10]=f}else f=e[10];return f}function ga(t){const e=C.c(7),{groups:n,orderScope:r,decopilotId:o,orgPinnedIds:i,onReorder:a,renderGroup:l}=t;let c;return e[0]!==o||e[1]!==n||e[2]!==a||e[3]!==r||e[4]!==i||e[5]!==l?(c=s.jsx(Mn,{groups:n,orderScope:r,decopilotId:o,orgPinnedIds:i,onReorder:a,surface:"collapsed_rail",collapsedSeparator:!0,renderGroup:l,renderFixed:ja,renderSortable:ba}),e[0]=o,e[1]=n,e[2]=a,e[3]=r,e[4]=i,e[5]=l,e[6]=c):c=e[6],c}function ba(t,e){return s.jsx(In,{...t,sortable:{attributes:e.attributes,listeners:e.listeners,isDragging:e.isDragging}},t.virtualMcpId)}function ja(t){return s.jsx(In,{...t},t.virtualMcpId)}const va="sidebar.group.expanded.";function An(t,e){const n=C.c(3),[r,o]=yr(`${va}${t}`,e);let i;return n[0]!==r||n[1]!==o?(i=[r,o],n[0]=r,n[1]=o,n[2]=i):i=n[2],i}function $n(t){const e=C.c(59),{virtualMcpId:n,threads:r,activeTaskId:o,onSelectTask:i,onArchiveTask:a,onNewTaskInGroup:l,onShowSettings:c,onHideGroup:u,isOrgPinned:d,canManageOrgPin:m,onToggleOrgPin:f,filters:x,groupVisibleCount:p,sortable:h}=t,g=d===void 0?!1:d,b=m===void 0?!1:m,[v,j]=An(n,!1),y=n===Hs,_=h?.isDragging??!1;let N;e[0]!==v||e[1]!==j?(N=function(){j(!v)},e[0]=v,e[1]=j,e[2]=N):N=e[2];const S=N;let M;e[3]!==y||e[4]!==h?(M=h&&!y?{...h.attributes,...h.listeners}:{},e[3]=y,e[4]=h,e[5]=M):M=e[5];let I;e[6]!==S?(I=F=>{F.target===F.currentTarget&&(F.key==="Enter"||F.key===" ")&&(F.preventDefault(),S())},e[6]=S,e[7]=I):I=e[7];const A=h&&!y&&"touch-none active:cursor-grabbing",E=_&&"shadow-md bg-accent/40 cursor-grabbing";let T;e[8]!==A||e[9]!==E?(T=K("group/group flex items-center gap-2 px-2 py-1.5 rounded-md text-sm font-medium text-foreground","cursor-pointer hover:bg-accent/60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50 transition-colors",A,E),e[8]=A,e[9]=E,e[10]=T):T=e[10];let z;e[11]!==y||e[12]!==n?(z=s.jsx("span",{className:"absolute inset-0 flex items-center justify-center transition-opacity group-hover/group:opacity-0",children:s.jsx(_a,{virtualMcpId:n,isToolCallRuns:y})}),e[11]=y,e[12]=n,e[13]=z):z=e[13];let w;e[14]!==v?(w=s.jsx("span",{className:"absolute inset-0 flex items-center justify-center text-muted-foreground opacity-0 transition-opacity group-hover/group:opacity-100",children:v?s.jsx(Js,{size:14}):s.jsx(Zt,{size:14})}),e[14]=v,e[15]=w):w=e[15];let P;e[16]!==w||e[17]!==z?(P=s.jsxs("div",{className:"relative size-5 shrink-0 flex items-center justify-center",children:[z,w]}),e[16]=w,e[17]=z,e[18]=P):P=e[18];let O;e[19]!==y||e[20]!==n?(O=s.jsx("span",{className:"flex-1 truncate",children:s.jsx(Ca,{virtualMcpId:n,isToolCallRuns:y})}),e[19]=y,e[20]=n,e[21]=O):O=e[21];let H;e[22]!==y||e[23]!==l||e[24]!==n?(H=!y&&s.jsx("button",{type:"button","aria-label":"New task in this agent",onClick:F=>{F.stopPropagation(),l(n)},className:"opacity-0 group-hover/group:opacity-100 focus-visible:opacity-100 transition-opacity flex size-7 items-center justify-center rounded-md hover:bg-accent text-muted-foreground hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50",children:s.jsx(we,{size:14})}),e[22]=y,e[23]=l,e[24]=n,e[25]=H):H=e[25];let L;e[26]!==v||e[27]!==S||e[28]!==P||e[29]!==O||e[30]!==H||e[31]!==M||e[32]!==I||e[33]!==T?(L=s.jsxs("div",{...M,role:"button",tabIndex:0,"aria-expanded":v,onClick:S,onKeyDown:I,className:T,children:[P,O,H]}),e[26]=v,e[27]=S,e[28]=P,e[29]=O,e[30]=H,e[31]=M,e[32]=I,e[33]=T,e[34]=L):L=e[34];const U=L;let R;e[35]!==b||e[36]!==U||e[37]!==g||e[38]!==y||e[39]!==u||e[40]!==l||e[41]!==c||e[42]!==f||e[43]!==n?(R=y?U:s.jsxs(yn,{children:[s.jsx(_n,{asChild:!0,children:U}),s.jsx(Sn,{className:"w-56",children:s.jsx(Cn,{virtualMcpId:n,isOrgPinned:g,canManageOrgPin:b,onNewTaskInGroup:l,onShowSettings:c,onToggleOrgPin:f??ya,onHideGroup:u})})]}),e[35]=b,e[36]=U,e[37]=g,e[38]=y,e[39]=u,e[40]=l,e[41]=c,e[42]=f,e[43]=n,e[44]=R):R=e[44];let G;e[45]!==o||e[46]!==v||e[47]!==x||e[48]!==p||e[49]!==y||e[50]!==a||e[51]!==l||e[52]!==i||e[53]!==r||e[54]!==n?(G=v&&s.jsx("div",{className:"flex flex-col gap-0.5 pb-1 pl-4",children:y?r.map(F=>s.jsx(Gt,{task:F,isActive:o===F.id,onClick:()=>i(F),onArchive:()=>a(F),showAutomationBadge:!!F.trigger_id},F.id)):s.jsx(wa,{virtualMcpId:n,threads:r,activeTaskId:o,onSelectTask:i,onArchiveTask:a,onNewTaskInGroup:l,filters:x,groupVisibleCount:p})}),e[45]=o,e[46]=v,e[47]=x,e[48]=p,e[49]=y,e[50]=a,e[51]=l,e[52]=i,e[53]=r,e[54]=n,e[55]=G):G=e[55];let D;return e[56]!==R||e[57]!==G?(D=s.jsxs("div",{className:"flex flex-col gap-0.5",children:[R,G]}),e[56]=R,e[57]=G,e[58]=D):D=e[58],D}function ya(){}function _a(t){const e=C.c(3),{virtualMcpId:n,isToolCallRuns:r}=t;if(r){let i;return e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(Ee,{icon:null,name:"⚙",size:"2xs"}),e[0]=i):i=e[0],i}let o;return e[1]!==n?(o=s.jsx(Sa,{virtualMcpId:n}),e[1]=n,e[2]=o):o=e[2],o}function Sa(t){const e=C.c(4),{virtualMcpId:n}=t,r=ht(n);if(!r){let a;return e[0]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(Ee,{icon:null,name:"?",size:"2xs"}),e[0]=a):a=e[0],a}const o=r.icon??null;let i;return e[1]!==r.title||e[2]!==o?(i=s.jsx(Ee,{icon:o,name:r.title,size:"2xs"}),e[1]=r.title,e[2]=o,e[3]=i):i=e[3],i}function Ca(t){const e=C.c(3),{virtualMcpId:n,isToolCallRuns:r}=t;if(r){let i;return e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(s.Fragment,{children:"Automation runs"}),e[0]=i):i=e[0],i}let o;return e[1]!==n?(o=s.jsx(Na,{virtualMcpId:n}),e[1]=n,e[2]=o):o=e[2],o}function Na(t){const e=C.c(2),{virtualMcpId:n}=t,o=ht(n)?.title??"Agent";let i;return e[0]!==o?(i=s.jsx(s.Fragment,{children:o}),e[0]=o,e[1]=i):i=e[1],i}function wa(t){const e=C.c(10),{virtualMcpId:n,threads:r,activeTaskId:o,onSelectTask:i,onArchiveTask:a,onNewTaskInGroup:l,filters:c,groupVisibleCount:u}=t,d=ss("agent",n,c,u),{isFetching:m,isProbing:f,loadMore:x,serverHasMore:p}=d,[h,g]=$.useState(!1);!h&&r.length===0&&p===!0&&!m&&!f&&(g(!0),queueMicrotask(()=>{x()}));const{hasMore:b}=d;let v;return e[0]!==o||e[1]!==b||e[2]!==m||e[3]!==x||e[4]!==a||e[5]!==l||e[6]!==i||e[7]!==r||e[8]!==n?(v=s.jsx(s.Fragment,{children:r.length===0?s.jsxs("button",{type:"button",onClick:()=>l(n),className:"flex items-center gap-2 px-2 py-1.5 rounded-md cursor-pointer text-sm text-muted-foreground hover:bg-accent/60 hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50 transition-colors",children:[s.jsx(we,{size:14}),s.jsx("span",{children:"New thread"})]}):s.jsxs(s.Fragment,{children:[r.map(j=>s.jsx(Gt,{task:j,isActive:o===j.id,onClick:()=>i(j),onArchive:()=>a(j),showAutomationBadge:!!j.trigger_id},j.id)),(b||m)&&s.jsx(es,{onClick:()=>{x()},isFetching:m})]})}),e[0]=o,e[1]=b,e[2]=m,e[3]=x,e[4]=a,e[5]=l,e[6]=i,e[7]=r,e[8]=n,e[9]=v):v=e[9],v}function ka(t){const e=C.c(16),{status:n,threads:r,activeTaskId:o,onSelectTask:i,onArchiveTask:a,filters:l}=t,{isFetching:c,isProbing:u,loadMore:d,hasMore:m,serverHasMore:f}=ss("status",n,l),[x,p]=$.useState(!1);!x&&r.length===0&&f===!0&&!c&&!u&&(p(!0),queueMicrotask(()=>{d()}));let h;if(e[0]!==o||e[1]!==a||e[2]!==i||e[3]!==r){let v;e[5]!==o||e[6]!==a||e[7]!==i?(v=j=>s.jsx(Gt,{task:j,isActive:o===j.id,onClick:()=>i(j),onArchive:()=>a(j),showAutomationBadge:!!j.trigger_id,showAgentIcon:!0,hideStatusIdle:!0},j.id),e[5]=o,e[6]=a,e[7]=i,e[8]=v):v=e[8],h=r.map(v),e[0]=o,e[1]=a,e[2]=i,e[3]=r,e[4]=h}else h=e[4];let g;e[9]!==m||e[10]!==c||e[11]!==d?(g=(m||c)&&s.jsx(es,{onClick:()=>{d()},isFetching:c}),e[9]=m,e[10]=c,e[11]=d,e[12]=g):g=e[12];let b;return e[13]!==h||e[14]!==g?(b=s.jsxs(s.Fragment,{children:[h,g]}),e[13]=h,e[14]=g,e[15]=b):b=e[15],b}function Ia(t){const e=C.c(35),{status:n,threads:r,activeTaskId:o,onSelectTask:i,onArchiveTask:a,filters:l}=t,c=fi[n],u=c.icon,[d,m]=An(`status-${n}`,!1);let f;e[0]!==d||e[1]!==m?(f=function(){m(!d)},e[0]=d,e[1]=m,e[2]=f):f=e[2];const x=f;let p;e[3]!==x?(p=S=>{S.target===S.currentTarget&&(S.key==="Enter"||S.key===" ")&&(S.preventDefault(),x())},e[3]=x,e[4]=p):p=e[4];let h;e[5]!==u||e[6]!==c.iconClassName?(h=s.jsx("span",{className:"absolute inset-0 flex items-center justify-center transition-opacity group-hover/group:opacity-0",children:s.jsx(u,{size:12,className:c.iconClassName})}),e[5]=u,e[6]=c.iconClassName,e[7]=h):h=e[7];let g;e[8]!==d?(g=s.jsx("span",{className:"absolute inset-0 flex items-center justify-center text-muted-foreground opacity-0 transition-opacity group-hover/group:opacity-100",children:d?s.jsx(Js,{size:14}):s.jsx(Zt,{size:14})}),e[8]=d,e[9]=g):g=e[9];let b;e[10]!==h||e[11]!==g?(b=s.jsxs("div",{className:"relative size-5 shrink-0 flex items-center justify-center",children:[h,g]}),e[10]=h,e[11]=g,e[12]=b):b=e[12];let v;e[13]!==c.label?(v=s.jsx("span",{className:"flex-1 truncate",children:c.label}),e[13]=c.label,e[14]=v):v=e[14];let j;e[15]!==r.length?(j=s.jsx("div",{className:"size-5 shrink-0 flex items-center justify-center",children:s.jsx("span",{className:"text-xs text-muted-foreground tabular-nums",children:r.length})}),e[15]=r.length,e[16]=j):j=e[16];let y;e[17]!==d||e[18]!==x||e[19]!==p||e[20]!==b||e[21]!==v||e[22]!==j?(y=s.jsxs("div",{role:"button",tabIndex:0,"aria-expanded":d,onClick:x,onKeyDown:p,className:"group/group flex items-center gap-2 px-2 py-1.5 rounded-md text-sm font-medium text-foreground cursor-pointer hover:bg-accent/60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/50 transition-colors",children:[b,v,j]}),e[17]=d,e[18]=x,e[19]=p,e[20]=b,e[21]=v,e[22]=j,e[23]=y):y=e[23];let _;e[24]!==o||e[25]!==d||e[26]!==l||e[27]!==a||e[28]!==i||e[29]!==n||e[30]!==r?(_=d&&s.jsx("div",{className:"flex flex-col gap-0.5 pb-1 pl-4",children:s.jsx(ka,{status:n,threads:r,activeTaskId:o,onSelectTask:i,onArchiveTask:a,filters:l})}),e[24]=o,e[25]=d,e[26]=l,e[27]=a,e[28]=i,e[29]=n,e[30]=r,e[31]=_):_=e[31];let N;return e[32]!==y||e[33]!==_?(N=s.jsxs("div",{className:"flex flex-col gap-0.5",children:[y,_]}),e[32]=y,e[33]=_,e[34]=N):N=e[34],N}function Ma(t){const e=C.c(7),{groups:n,orderScope:r,decopilotId:o,orgPinnedIds:i,onReorder:a,renderGroup:l}=t;let c;return e[0]!==o||e[1]!==n||e[2]!==a||e[3]!==r||e[4]!==i||e[5]!==l?(c=s.jsx(Mn,{groups:n,orderScope:r,decopilotId:o,orgPinnedIds:i,onReorder:a,surface:"expanded",renderGroup:l,renderFixed:$a,renderSortable:Aa}),e[0]=o,e[1]=n,e[2]=a,e[3]=r,e[4]=i,e[5]=l,e[6]=c):c=e[6],c}function Aa(t,e){return s.jsx($n,{...t,sortable:e},t.virtualMcpId)}function $a(t){return s.jsx($n,{...t},t.virtualMcpId)}function Ta(t,e,n,r){return[t.orgId,t.userId,r,n.slice().sort().join(","),e.map(o=>o.virtualMcpId).sort().join(",")].join("|")}function Oa(t,e,n,r,o){const i=C.c(5),a=Ta(t,e,r,o),[l,c]=$.useState("");l!==a&&(ro(t,e,n,r),c(a));let u;return i[0]!==n||i[1]!==r||i[2]!==t||i[3]!==e?(u=oo(t,e,n,r),i[0]=n,i[1]=r,i[2]=t,i[3]=e,i[4]=u):u=i[4],u}const Tn={all:"All tasks",manual:"Chats",automation:"Automation"},On={all:"All members",mine:"Mine only"},Ns={agent:"Agent",status:"Status"};function zn(){const t=C.c(92),{data:e}=ke.useSession(),n=e?.user?.id,r=n??"anon",{org:o}=xe(),i=Ar(o.id).id,l=Ds().filter(Ha).map(Ba),c=yl(),u=$r();let d;t[0]===Symbol.for("react.memo_cache_sentinel")?(d={},t[0]=d):d=t[0];const[m,f]=$.useState(d),x=new Set(l),p={},h=[];let g;t[1]!==m?(g=Object.entries(m),t[1]=m,t[2]=g):g=t[2];for(const[k,B]of g)x.has(k)!==B?p[k]=B:h.push(k);h.length>0&&f(k=>{const B={...k};for(const ne of h)delete B[ne];return B});const b=new Set(l);for(const[k,B]of Object.entries(p))B?b.add(k):b.delete(k);const v=[...b],j=new Set(v),{threads:y}=Ls(),_=pl(y,{hidden:!1}),{hide:N}=Gs(),S=Re(),{setTaskId:M,createNewTask:I}=Bs();let A;t[3]===Symbol.for("react.memo_cache_sentinel")?(A={strict:!1},t[3]=A):A=t[3];const T=Is(A).taskId??null,z=[..._].sort(La),[w,P]=$.useState("all"),[O,H]=$.useState("mine"),[L,U]=$.useState("agent"),[R,G]=$.useState(!1),[D,F]=$.useState(!1),[X,q]=$.useState(0),V=io(),Y=X+V;let Z;t[4]!==o.id||t[5]!==r?(Z={orgId:o.id,userId:r},t[4]=o.id,t[5]=r,t[6]=Z):Z=t[6];const te=Z,ie={type:w,member:O,currentUserId:n??null},J=oa(z,"agent",ie),W=Oa(te,lo(z,i),i,v,Y);let re;t[7]!==n||t[8]!==O?(re=k=>O==="mine"&&n?k.filter(B=>B.created_by===n):k,t[7]=n,t[8]=O,t[9]=re):re=t[9];const Q=re;let le;t[10]!==w?(le=k=>w==="automation"?k.filter(Ga):w==="manual"?k.filter(Fa):k,t[10]=w,t[11]=le):le=t[11];const se=le,oe=k=>{const B=k.id===T;if(N(k.id),!B)return;const ne=z.find(Ce=>Ce.id!==k.id&&Ce.virtual_mcp_id===k.virtual_mcp_id);ne?M(ne.id,ne.virtual_mcp_id):S({to:"/$org",params:{org:o.slug}})};let he;t[12]!==I?(he=k=>{ee("sidebar_group_new_clicked",{virtual_mcp_id:k}),I(k)},t[12]=I,t[13]=he):he=t[13];const Ze=he,be=ao();let Ae;t[14]!==be?(Ae=k=>{ee("sidebar_group_settings_clicked",{virtual_mcp_id:k}),be(k,{search:{main:"instructions"}})},t[14]=be,t[15]=Ae):Ae=t[15];const De=Ae,Fe=k=>{if(j.has(k))return;ee("sidebar_group_hide_clicked",{virtual_mcp_id:k});const B=W.find(ne=>ne.virtualMcpId===k);if(B)for(const ne of B.threads)N(ne.id);uo(te,k,v),q(Da)},ft=async(k,B)=>{if(c&&p[k]===void 0){ee("sidebar_group_org_pin_toggled",{virtual_mcp_id:k,pinned:B}),f(ne=>({...ne,[k]:B}));try{await u.update.mutateAsync({id:k,data:{pinned:B}})}catch{mo(te,k,!B),f(ne=>{const Ce={...ne};return delete Ce[k],Ce})}}},Ge=k=>{const B=k===i||k===Hs;return{isOrgPinned:j.has(k),canManageOrgPin:B?!1:c,onToggleOrgPin:B?void 0:ft}},$e=k=>{const B=se(Q(k.threads));return{virtualMcpId:k.virtualMcpId,threads:B,activeTaskId:T,filters:ie,groupVisibleCount:J.get(k.virtualMcpId)??0,onSelectTask:ne=>M(ne.id,ne.virtual_mcp_id),onArchiveTask:oe,onNewTaskInGroup:Ze,onShowSettings:De,onHideGroup:Fe,...Ge(k.virtualMcpId)}},ae=w!=="all"||O!=="mine",{state:Le,isMobile:Be}=Qe();if(Le==="collapsed"&&!Be){let k;if(t[16]!==ae||t[17]!==W||t[18]!==Q||t[19]!==se){let ut;t[21]!==ae||t[22]!==Q||t[23]!==se?(ut=Rn=>{const Dn=se(Q(Rn.threads));return!(ae&&Dn.length===0)},t[21]=ae,t[22]=Q,t[23]=se,t[24]=ut):ut=t[24],k=W.filter(ut),t[16]=ae,t[17]=W,t[18]=Q,t[19]=se,t[20]=k}else k=t[20];const B=k,ne=L==="agent"&&W.length===0;let Ce;t[25]!==ne?(Ce=s.jsx(ls,{value:ne}),t[25]=ne,t[26]=Ce):Ce=t[26];let Nt;return t[27]===Symbol.for("react.memo_cache_sentinel")?(Nt=()=>q(Ra),t[27]=Nt):Nt=t[27],s.jsxs(s.Fragment,{children:[Ce,s.jsx(Pe,{className:"min-h-0 gap-1.5 overflow-y-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:s.jsx(ga,{groups:B,orderScope:te,decopilotId:i,orgPinnedIds:v,onReorder:Nt,renderGroup:ut=>$e(ut)})})]})}const He="flex flex-col h-full min-h-0",Xe=L==="agent"&&W.length===0;let de;t[28]!==Xe?(de=s.jsx(ls,{value:Xe}),t[28]=Xe,t[29]=de):de=t[29];let je;t[30]!==G?(je=()=>{ee("tasks_panel_search_opened"),F(!0),G(!0)},t[30]=G,t[31]=je):je=t[31];let pe;t[32]===Symbol.for("react.memo_cache_sentinel")?(pe=s.jsx(Lr,{size:16}),t[32]=pe):pe=t[32];let ue;t[33]!==je?(ue=s.jsx(Ie,{"aria-label":"Search threads",onClick:je,children:pe}),t[33]=je,t[34]=ue):ue=t[34];const ve=Ns[L==="agent"?"status":"agent"];let Te;t[35]!==ve?(Te=ve.toLowerCase(),t[35]=ve,t[36]=Te):Te=t[36];const ye=`Group by ${Te}`,_e=Ns[L];let Oe;t[37]!==_e?(Oe=_e.toLowerCase(),t[37]=_e,t[38]=Oe):Oe=t[38];const me=`Grouped by ${Oe}`;let ge,Se;t[39]!==L?(ge=()=>{const k=L==="agent"?"status":"agent";ee("tasks_panel_group_by_changed",{to_value:k}),U(k)},Se=L==="agent"?s.jsx(Qo,{size:16}):s.jsx(Br,{size:16}),t[39]=L,t[40]=ge,t[41]=Se):(ge=t[40],Se=t[41]);let Ue;t[42]!==ye||t[43]!==me||t[44]!==ge||t[45]!==Se?(Ue=s.jsx(Ie,{"aria-label":ye,title:me,onClick:ge,children:Se}),t[42]=ye,t[43]=me,t[44]=ge,t[45]=Se,t[46]=Ue):Ue=t[46];let Je;t[47]===Symbol.for("react.memo_cache_sentinel")?(Je=s.jsx(Xo,{size:16}),t[47]=Je):Je=t[47];let Ke;t[48]!==ae?(Ke=ae&&s.jsx("span",{className:"absolute top-0.5 right-0.5 size-2 rounded-full bg-red-500 ring-1 ring-sidebar pointer-events-none"}),t[48]=ae,t[49]=Ke):Ke=t[49];let et;t[50]!==Ke?(et=s.jsx(mt,{asChild:!0,children:s.jsxs(Ie,{"aria-label":"Filter tasks",children:[Je,Ke]})}),t[50]=Ke,t[51]=et):et=t[51];let tt;t[52]!==O?(tt=k=>{const B=k;B!==O&&ee("tasks_panel_member_filter_changed",{to_value:B}),H(B)},t[52]=O,t[53]=tt):tt=t[53];let gt;t[54]===Symbol.for("react.memo_cache_sentinel")?(gt=s.jsx(ms,{size:"sm",className:"w-full",children:s.jsx(fs,{})}),t[54]=gt):gt=t[54];let bt;t[55]===Symbol.for("react.memo_cache_sentinel")?(bt=Object.keys(On),t[55]=bt):bt=t[55];let jt;t[56]===Symbol.for("react.memo_cache_sentinel")?(jt=s.jsx(us,{children:bt.map(Ea)}),t[56]=jt):jt=t[56];let st;t[57]!==O||t[58]!==tt?(st=s.jsx(ws,{label:"Members",children:s.jsxs(xs,{value:O,onValueChange:tt,children:[gt,jt]})}),t[57]=O,t[58]=tt,t[59]=st):st=t[59];let nt;t[60]!==w?(nt=k=>{const B=k;B!==w&&ee("tasks_panel_filter_changed",{to_value:B}),P(B)},t[60]=w,t[61]=nt):nt=t[61];let vt;t[62]===Symbol.for("react.memo_cache_sentinel")?(vt=s.jsx(ms,{size:"sm",className:"w-full",children:s.jsx(fs,{})}),t[62]=vt):vt=t[62];let yt;t[63]===Symbol.for("react.memo_cache_sentinel")?(yt=Object.keys(Tn),t[63]=yt):yt=t[63];let _t;t[64]===Symbol.for("react.memo_cache_sentinel")?(_t=s.jsx(us,{children:yt.map(Pa)}),t[64]=_t):_t=t[64];let rt;t[65]!==nt||t[66]!==w?(rt=s.jsx(ws,{label:"Type",children:s.jsxs(xs,{value:w,onValueChange:nt,children:[vt,_t]})}),t[65]=nt,t[66]=w,t[67]=rt):rt=t[67];let ot;t[68]!==st||t[69]!==rt?(ot=s.jsx(Rt,{align:"start",sideOffset:8,collisionPadding:16,className:"w-72 p-3",children:s.jsxs("div",{className:"flex flex-col gap-2",children:[st,rt]})}),t[68]=st,t[69]=rt,t[70]=ot):ot=t[70];let it;t[71]!==et||t[72]!==ot?(it=s.jsxs(Et,{children:[et,ot]}),t[71]=et,t[72]=ot,t[73]=it):it=t[73];let lt;t[74]!==ue||t[75]!==Ue||t[76]!==it?(lt=s.jsxs("div",{className:"flex items-center gap-0.5",children:[ue,Ue,it]}),t[74]=ue,t[75]=Ue,t[76]=it,t[77]=lt):lt=t[77];let St;t[78]===Symbol.for("react.memo_cache_sentinel")?(St=s.jsx(en,{compact:!0}),t[78]=St):St=t[78];let at;t[79]!==lt?(at=s.jsxs("div",{className:"shrink-0 px-1 h-10 md:h-7 mb-2 flex items-center justify-between",children:[lt,St]}),t[79]=lt,t[80]=at):at=t[80];const En="flex-1 min-h-0 overflow-y-auto overscroll-contain flex flex-col gap-0.5 -mr-2 pr-2",Bt=L==="status"?s.jsx(s.Fragment,{children:co(se(Q(z))).map(k=>s.jsx(Ia,{status:k.status,threads:k.threads,activeTaskId:T,onSelectTask:B=>M(B.id,B.virtual_mcp_id),onArchiveTask:oe,filters:ie},k.status))}):s.jsx(Ma,{groups:W,orderScope:te,decopilotId:i,orgPinnedIds:v,onReorder:()=>q(za),renderGroup:k=>({...$e(k)})});let ct;t[81]!==Bt?(ct=s.jsx("div",{className:En,children:Bt}),t[81]=Bt,t[82]=ct):ct=t[82];let dt;t[83]!==D||t[84]!==R||t[85]!==G?(dt=D&&s.jsx(jl,{open:R,onOpenChange:G}),t[83]=D,t[84]=R,t[85]=G,t[86]=dt):dt=t[86];let Ct;return t[87]!==de||t[88]!==at||t[89]!==ct||t[90]!==dt?(Ct=s.jsxs("div",{className:He,children:[de,at,ct,dt]}),t[87]=de,t[88]=at,t[89]=ct,t[90]=dt,t[91]=Ct):Ct=t[91],Ct}function za(t){return t+1}function Pa(t){return s.jsx(Qs,{value:t,children:Tn[t]},t)}function Ea(t){return s.jsx(Qs,{value:t,children:On[t]},t)}function Ra(t){return t+1}function Da(t){return t+1}function Fa(t){return!t.trigger_id}function Ga(t){return!!t.trigger_id}function La(t,e){return(e.updated_at??"").localeCompare(t.updated_at??"")}function Ba(t){return t.id}function Ha(t){return t.pinned}function ws(t){const e=C.c(7),{label:n,children:r}=t;let o;e[0]!==n?(o=s.jsx("span",{className:"text-sm text-muted-foreground",children:n}),e[0]=n,e[1]=o):o=e[1];let i;e[2]!==r?(i=s.jsx("div",{className:"w-36 shrink-0",children:r}),e[2]=r,e[3]=i):i=e[3];let a;return e[4]!==o||e[5]!==i?(a=s.jsxs("div",{className:"flex items-center justify-between gap-3",children:[o,i]}),e[4]=o,e[5]=i,e[6]=a):a=e[6],a}const Ua=5,Ka=[{nameWidth:"w-24",taskRows:2},{nameWidth:"w-28",taskRows:0},{nameWidth:"w-20",taskRows:1},{nameWidth:"w-32",taskRows:0},{nameWidth:"w-24",taskRows:0}];function Pn(){const t=C.c(3),{state:e}=Qe();if(e==="collapsed"){let o;return t[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx("div",{className:"flex flex-col gap-1.5",children:Array.from({length:Ua}).map(qa)}),t[0]=o):o=t[0],o}let n;t[1]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsxs("div",{className:"shrink-0 px-1 h-10 md:h-7 mb-2 flex items-center justify-between",children:[s.jsxs("div",{className:"flex items-center gap-1",children:[s.jsx(Ne,{className:"size-6 rounded-md"}),s.jsx(Ne,{className:"size-6 rounded-md"}),s.jsx(Ne,{className:"size-6 rounded-md"})]}),s.jsx(Ne,{className:"h-6 w-20 rounded-md"})]}),t[1]=n):n=t[1];let r;return t[2]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsxs("div",{className:"flex flex-col h-full min-h-0",children:[n,s.jsx("div",{className:"flex flex-col gap-0.5",children:Ka.map(Va)})]}),t[2]=r):r=t[2],r}function Va(t,e){return s.jsxs("div",{className:"flex flex-col gap-0.5",children:[s.jsxs("div",{className:"flex items-center gap-2 px-2 py-1.5",children:[s.jsx(Ne,{className:"size-5 rounded-full shrink-0"}),s.jsx(Ne,{className:K("h-3",t.nameWidth,"rounded-sm")})]}),t.taskRows>0&&s.jsx("div",{className:"flex flex-col gap-0.5 pb-1 pl-4",children:Array.from({length:t.taskRows}).map(Wa)})]},e)}function Wa(t,e){return s.jsx("div",{className:"flex items-center gap-2 px-2 py-1.5",children:s.jsx(Ne,{className:"h-3 flex-1 rounded-sm"})},e)}function qa(t,e){return s.jsx(Ne,{className:"size-10 rounded-lg mx-auto"},e)}function qc(){const t=C.c(4),e=tn();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(xl,{}),t[0]=n):n=t[0];let r;t[1]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(As,{children:s.jsxs($.Suspense,{fallback:s.jsxs(s.Fragment,{children:[s.jsx(Tt,{className:"mb-2"}),s.jsx(Pn,{})]}),children:[s.jsx(Tt,{className:"mb-2"}),s.jsx(zn,{})]})}),t[1]=r):r=t[1];let o;return t[2]!==e?(o=s.jsx(Us,{children:s.jsx(rn,{sections:e,footer:n,additionalContent:r})}),t[2]=e,t[3]=o):o=t[3],o}function Yc(t){const e=C.c(5),{onClose:n}=t,r=tn();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(hl,{}),e[0]=o):o=e[0];let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(As,{children:s.jsxs($.Suspense,{fallback:s.jsxs(s.Fragment,{children:[s.jsx(Tt,{className:"mb-2"}),s.jsx(Pn,{})]}),children:[s.jsx(Tt,{className:"mb-2"}),s.jsx(zn,{})]})}),e[1]=i):i=e[1];let a;return e[2]!==n||e[3]!==r?(a=s.jsx(Us,{children:s.jsx(Oi,{sections:r,onClose:n,footer:o,additionalContent:i})}),e[2]=n,e[3]=r,e[4]=a):a=e[4],a}function Xc(){const t=C.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx("div",{"data-testid":"shell-route-loading",className:"absolute inset-0 flex items-center justify-center",children:s.jsx(qt,{size:20,className:"animate-spin text-muted-foreground"})}),t[0]=e):e=t[0],e}export{_n as C,qc as S,Yc as a,Xc as b,It as c,bs as d,Sn as e,yn as f};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as S,c as w,j as r,r as T,bg as A,bm as H,B as P}from"./index-B9kRhzg7.js";import{i as R}from"./LayoutLeft-BO92HMhM.js";import{u as V,c as D,a as B,T as E,b as z}from"./tooltip-Cx8u2hvs.js";import{b as W,d as G,S as L,c as q,a as F}from"./sheet-BLkB41eQ.js";const J="15rem",K="18rem",Q="4.5rem",k=T.createContext(null);function O(){const l=T.useContext(k);if(!l)throw new Error("useSidebar must be used within a SidebarProvider.");return l}function se(l){const e=S.c(19),{children:t,defaultOpen:s,open:a,onOpenChange:i}=l,d=s===void 0?!1:s,n=V(),[o,h]=T.useState(d),[u,g]=T.useState(!1),c=a!==void 0,b=c?a:o;let N;e[0]!==c||e[1]!==i?(N=_=>{c||h(_),i?.(_)},e[0]=c,e[1]=i,e[2]=N):N=e[2];const f=N;let j;e[3]!==n||e[4]!==b||e[5]!==f?(j=()=>{n?g(U):f(!b)},e[3]=n,e[4]=b,e[5]=f,e[6]=j):j=e[6];const y=j,m=b?"expanded":"collapsed";let p;e[7]!==n||e[8]!==b||e[9]!==u||e[10]!==f||e[11]!==m||e[12]!==y?(p={state:m,open:b,setOpen:f,isMobile:n,openMobile:u,setOpenMobile:g,toggleSidebar:y},e[7]=n,e[8]=b,e[9]=u,e[10]=f,e[11]=m,e[12]=y,e[13]=p):p=e[13];const v=p;let x;e[14]!==t?(x=r.jsx(D,{delayDuration:0,children:t}),e[14]=t,e[15]=x):x=e[15];let C;return e[16]!==v||e[17]!==x?(C=r.jsx(k.Provider,{value:v,children:x}),e[16]=v,e[17]=x,e[18]=C):C=e[18],C}function U(l){return!l}function ie(l){const e=S.c(14);let t,s,a,i;e[0]!==l?({className:s,style:i,children:t,...a}=l,e[0]=l,e[1]=t,e[2]=s,e[3]=a,e[4]=i):(t=e[1],s=e[2],a=e[3],i=e[4]);let d;e[5]!==i?(d={"--sidebar-width":J,"--sidebar-width-icon":Q,...i},e[5]=i,e[6]=d):d=e[6];const n=d;let o;e[7]!==s?(o=w("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",s),e[7]=s,e[8]=o):o=e[8];let h;return e[9]!==t||e[10]!==a||e[11]!==n||e[12]!==o?(h=r.jsx("div",{"data-slot":"sidebar-wrapper",style:n,className:o,...a,children:t}),e[9]=t,e[10]=a,e[11]=n,e[12]=o,e[13]=h):h=e[13],h}function le(l){const e=S.c(36);let t,s,a,i,d;e[0]!==l?({side:i,variant:d,className:s,children:t,...a}=l,e[0]=l,e[1]=t,e[2]=s,e[3]=a,e[4]=i,e[5]=d):(t=e[1],s=e[2],a=e[3],i=e[4],d=e[5]);const n=i===void 0?"left":i,o=d===void 0?"sidebar":d,{isMobile:h,state:u,openMobile:g,setOpenMobile:c}=O();if(h){let C;e[6]===Symbol.for("react.memo_cache_sentinel")?(C={"--sidebar-width":K},e[6]=C):C=e[6];let _;e[7]===Symbol.for("react.memo_cache_sentinel")?(_=r.jsxs(G,{className:"sr-only",children:[r.jsx(L,{children:"Sidebar"}),r.jsx(q,{children:"Displays the mobile sidebar."})]}),e[7]=_):_=e[7];let $;e[8]!==t?($=r.jsx("div",{className:"flex h-full w-full flex-col",children:t}),e[8]=t,e[9]=$):$=e[9];let M;e[10]!==n||e[11]!==$?(M=r.jsxs(F,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:C,side:n,children:[_,$]}),e[10]=n,e[11]=$,e[12]=M):M=e[12];let I;return e[13]!==g||e[14]!==a||e[15]!==c||e[16]!==M?(I=r.jsx(W,{open:g,onOpenChange:c,...a,children:M}),e[13]=g,e[14]=a,e[15]=c,e[16]=M,e[17]=I):I=e[17],I}const b=u==="expanded",N=b?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let f;e[18]!==N?(f=w("group/sidebar peer text-sidebar-foreground hidden md:flex flex-col shrink-0 overflow-hidden","transition-[width] duration-150 ease-out motion-reduce:transition-none",N),e[18]=N,e[19]=f):f=e[19];const j=b?void 0:"icon",y=b?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let m;e[20]!==s||e[21]!==y?(m=w("flex flex-col h-full transition-[width] duration-150 ease-out motion-reduce:transition-none",y,s),e[20]=s,e[21]=y,e[22]=m):m=e[22];let p;e[23]!==t?(p=r.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar flex h-full w-full flex-col",children:t}),e[23]=t,e[24]=p):p=e[24];let v;e[25]!==a||e[26]!==m||e[27]!==p?(v=r.jsx("div",{"data-slot":"sidebar-container",className:m,...a,children:p}),e[25]=a,e[26]=m,e[27]=p,e[28]=v):v=e[28];let x;return e[29]!==n||e[30]!==u||e[31]!==f||e[32]!==j||e[33]!==v||e[34]!==o?(x=r.jsx("div",{className:f,"data-state":u,"data-collapsible":j,"data-variant":o,"data-side":n,"data-slot":"sidebar",children:v}),e[29]=n,e[30]=u,e[31]=f,e[32]=j,e[33]=v,e[34]=o,e[35]=x):x=e[35],x}function re(l){const e=S.c(18);let t,s,a;e[0]!==l?({className:t,onClick:s,...a}=l,e[0]=l,e[1]=t,e[2]=s,e[3]=a):(t=e[1],s=e[2],a=e[3]);const{toggleSidebar:i}=O();let d;e[4]!==t?(d=w("size-7",t),e[4]=t,e[5]=d):d=e[5];let n;e[6]!==s||e[7]!==i?(n=b=>{s?.(b),i()},e[6]=s,e[7]=i,e[8]=n):n=e[8];let o,h;e[9]===Symbol.for("react.memo_cache_sentinel")?(o=r.jsx(R,{}),h=r.jsx("span",{className:"sr-only",children:"Toggle Sidebar"}),e[9]=o,e[10]=h):(o=e[9],h=e[10]);let u;e[11]!==a||e[12]!==d||e[13]!==n?(u=r.jsx(E,{asChild:!0,children:r.jsxs(P,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:d,onClick:n,...a,children:[o,h]})}),e[11]=a,e[12]=d,e[13]=n,e[14]=u):u=e[14];let g;e[15]===Symbol.for("react.memo_cache_sentinel")?(g=r.jsxs(B,{side:"bottom",className:"flex items-center gap-1.5",children:["Collapse sidebar",r.jsx("span",{className:"flex items-center gap-0.5",children:["⌘","B"].map(X)})]}),e[15]=g):g=e[15];let c;return e[16]!==u?(c=r.jsx(D,{delayDuration:300,children:r.jsxs(z,{children:[u,g]})}),e[16]=u,e[17]=c):c=e[17],c}function X(l){return r.jsx("kbd",{className:"inline-flex items-center justify-center min-w-5 h-5 px-1 rounded-sm border border-white/20 bg-white/10 text-white/70 text-xs font-mono",children:l},l)}function ne(l){const e=S.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=w("bg-background relative flex w-full flex-1 flex-col min-w-0","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=r.jsx("main",{"data-slot":"sidebar-inset",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function oe(l){const e=S.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=w("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=r.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function de(l){const e=S.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=w("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=r.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function ce(l){const e=S.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=w("h-4 m-0! w-full",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=r.jsx("div",{"data-sidebar":"separator",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function fe(l){const e=S.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=w("flex min-h-0 flex-1 flex-col gap-2",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=r.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function ue(l){const e=S.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=w("relative flex w-full min-w-0 flex-col px-2 py-2 md:py-0",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=r.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function pe(l){const e=S.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=w("w-full text-sm overflow-visible",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=r.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function be(l){const e=S.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=w("flex w-full min-w-0 list-none flex-col gap-1 group-data-[state=collapsed]/sidebar:items-center",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=r.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function me(l){const e=S.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=w("group/menu-item relative w-full list-none",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=r.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}const Y=H("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-lg py-0 pr-0.5 pl-1.5 text-left text-sm outline-0 outline-sidebar-ring transition-[width,height,padding] duration-150 ease-out motion-reduce:transition-none focus-visible:outline-2 focus-visible:-outline-offset-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate group-data-[state=collapsed]/sidebar:[&>span:last-child]:hidden [&>svg]:size-4 [&>svg]:shrink-0 [&_svg]:opacity-60 hover:[&_svg]:opacity-100",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background ring-1 ring-sidebar-border hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:ring-sidebar-accent"},size:{default:"group-data-[state=expanded]/sidebar:h-8 group-data-[state=expanded]/sidebar:px-2 group-data-[state=collapsed]/sidebar:w-full! group-data-[state=collapsed]/sidebar:aspect-square! group-data-[state=collapsed]/sidebar:max-w-[calc(var(--sidebar-width-icon)-1rem)]! group-data-[state=collapsed]/sidebar:h-auto! group-data-[state=collapsed]/sidebar:p-0! group-data-[state=collapsed]/sidebar:mx-auto group-data-[state=collapsed]/sidebar:justify-center text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm p-0!"}},defaultVariants:{variant:"default",size:"default"}});function xe(l){const e=S.c(28);let t,s,a,i,d,n,o;e[0]!==l?({asChild:a,isActive:i,variant:d,size:n,tooltip:o,className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s,e[3]=a,e[4]=i,e[5]=d,e[6]=n,e[7]=o):(t=e[1],s=e[2],a=e[3],i=e[4],d=e[5],n=e[6],o=e[7]);const h=a===void 0?!1:a,u=i===void 0?!1:i,g=d===void 0?"default":d,c=n===void 0?"default":n,b=h?A:"button",{isMobile:N}=O();let f;e[8]!==t||e[9]!==c||e[10]!==g?(f=w(Y({variant:g,size:c}),t),e[8]=t,e[9]=c,e[10]=g,e[11]=f):f=e[11];let j;e[12]!==b||e[13]!==u||e[14]!==s||e[15]!==c||e[16]!==f?(j=r.jsx(b,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":c,"data-active":u,className:f,...s}),e[12]=b,e[13]=u,e[14]=s,e[15]=c,e[16]=f,e[17]=j):j=e[17];const y=j;if(!o)return y;if(typeof o=="string"){let x;e[18]!==o?(x={children:o},e[18]=o,e[19]=x):x=e[19],o=x}let m;e[20]!==y?(m=r.jsx(E,{asChild:!0,children:y}),e[20]=y,e[21]=m):m=e[21];let p;e[22]!==N||e[23]!==o?(p=r.jsx(B,{side:"right",align:"center",hidden:N,...o}),e[22]=N,e[23]=o,e[24]=p):p=e[24];let v;return e[25]!==m||e[26]!==p?(v=r.jsxs(z,{children:[m,p]}),e[25]=m,e[26]=p,e[27]=v):v=e[27],v}export{ne as S,ie as a,se as b,me as c,xe as d,ue as e,pe as f,be as g,ce as h,fe as i,le as j,oe as k,de as l,re as m,O as u};
|
|
1
|
+
import{e as S,c as w,j as r,r as T,bn as A,bt as H,B as P}from"./index-kq5yUS_7.js";import{i as R}from"./LayoutLeft-CpIWBcma.js";import{u as V,c as D,a as B,T as E,b as z}from"./tooltip-DjBYlSjK.js";import{b as W,d as G,S as L,c as q,a as F}from"./sheet-BwdJHIyp.js";const J="15rem",K="18rem",Q="4.5rem",k=T.createContext(null);function O(){const l=T.useContext(k);if(!l)throw new Error("useSidebar must be used within a SidebarProvider.");return l}function se(l){const e=S.c(19),{children:t,defaultOpen:s,open:a,onOpenChange:i}=l,d=s===void 0?!1:s,n=V(),[o,h]=T.useState(d),[u,g]=T.useState(!1),c=a!==void 0,b=c?a:o;let N;e[0]!==c||e[1]!==i?(N=_=>{c||h(_),i?.(_)},e[0]=c,e[1]=i,e[2]=N):N=e[2];const f=N;let j;e[3]!==n||e[4]!==b||e[5]!==f?(j=()=>{n?g(U):f(!b)},e[3]=n,e[4]=b,e[5]=f,e[6]=j):j=e[6];const y=j,m=b?"expanded":"collapsed";let p;e[7]!==n||e[8]!==b||e[9]!==u||e[10]!==f||e[11]!==m||e[12]!==y?(p={state:m,open:b,setOpen:f,isMobile:n,openMobile:u,setOpenMobile:g,toggleSidebar:y},e[7]=n,e[8]=b,e[9]=u,e[10]=f,e[11]=m,e[12]=y,e[13]=p):p=e[13];const v=p;let x;e[14]!==t?(x=r.jsx(D,{delayDuration:0,children:t}),e[14]=t,e[15]=x):x=e[15];let C;return e[16]!==v||e[17]!==x?(C=r.jsx(k.Provider,{value:v,children:x}),e[16]=v,e[17]=x,e[18]=C):C=e[18],C}function U(l){return!l}function ie(l){const e=S.c(14);let t,s,a,i;e[0]!==l?({className:s,style:i,children:t,...a}=l,e[0]=l,e[1]=t,e[2]=s,e[3]=a,e[4]=i):(t=e[1],s=e[2],a=e[3],i=e[4]);let d;e[5]!==i?(d={"--sidebar-width":J,"--sidebar-width-icon":Q,...i},e[5]=i,e[6]=d):d=e[6];const n=d;let o;e[7]!==s?(o=w("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",s),e[7]=s,e[8]=o):o=e[8];let h;return e[9]!==t||e[10]!==a||e[11]!==n||e[12]!==o?(h=r.jsx("div",{"data-slot":"sidebar-wrapper",style:n,className:o,...a,children:t}),e[9]=t,e[10]=a,e[11]=n,e[12]=o,e[13]=h):h=e[13],h}function le(l){const e=S.c(36);let t,s,a,i,d;e[0]!==l?({side:i,variant:d,className:s,children:t,...a}=l,e[0]=l,e[1]=t,e[2]=s,e[3]=a,e[4]=i,e[5]=d):(t=e[1],s=e[2],a=e[3],i=e[4],d=e[5]);const n=i===void 0?"left":i,o=d===void 0?"sidebar":d,{isMobile:h,state:u,openMobile:g,setOpenMobile:c}=O();if(h){let C;e[6]===Symbol.for("react.memo_cache_sentinel")?(C={"--sidebar-width":K},e[6]=C):C=e[6];let _;e[7]===Symbol.for("react.memo_cache_sentinel")?(_=r.jsxs(G,{className:"sr-only",children:[r.jsx(L,{children:"Sidebar"}),r.jsx(q,{children:"Displays the mobile sidebar."})]}),e[7]=_):_=e[7];let $;e[8]!==t?($=r.jsx("div",{className:"flex h-full w-full flex-col",children:t}),e[8]=t,e[9]=$):$=e[9];let M;e[10]!==n||e[11]!==$?(M=r.jsxs(F,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:C,side:n,children:[_,$]}),e[10]=n,e[11]=$,e[12]=M):M=e[12];let I;return e[13]!==g||e[14]!==a||e[15]!==c||e[16]!==M?(I=r.jsx(W,{open:g,onOpenChange:c,...a,children:M}),e[13]=g,e[14]=a,e[15]=c,e[16]=M,e[17]=I):I=e[17],I}const b=u==="expanded",N=b?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let f;e[18]!==N?(f=w("group/sidebar peer text-sidebar-foreground hidden md:flex flex-col shrink-0 overflow-hidden","transition-[width] duration-150 ease-out motion-reduce:transition-none",N),e[18]=N,e[19]=f):f=e[19];const j=b?void 0:"icon",y=b?"w-(--sidebar-width)":"w-(--sidebar-width-icon)";let m;e[20]!==s||e[21]!==y?(m=w("flex flex-col h-full transition-[width] duration-150 ease-out motion-reduce:transition-none",y,s),e[20]=s,e[21]=y,e[22]=m):m=e[22];let p;e[23]!==t?(p=r.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar flex h-full w-full flex-col",children:t}),e[23]=t,e[24]=p):p=e[24];let v;e[25]!==a||e[26]!==m||e[27]!==p?(v=r.jsx("div",{"data-slot":"sidebar-container",className:m,...a,children:p}),e[25]=a,e[26]=m,e[27]=p,e[28]=v):v=e[28];let x;return e[29]!==n||e[30]!==u||e[31]!==f||e[32]!==j||e[33]!==v||e[34]!==o?(x=r.jsx("div",{className:f,"data-state":u,"data-collapsible":j,"data-variant":o,"data-side":n,"data-slot":"sidebar",children:v}),e[29]=n,e[30]=u,e[31]=f,e[32]=j,e[33]=v,e[34]=o,e[35]=x):x=e[35],x}function re(l){const e=S.c(18);let t,s,a;e[0]!==l?({className:t,onClick:s,...a}=l,e[0]=l,e[1]=t,e[2]=s,e[3]=a):(t=e[1],s=e[2],a=e[3]);const{toggleSidebar:i}=O();let d;e[4]!==t?(d=w("size-7",t),e[4]=t,e[5]=d):d=e[5];let n;e[6]!==s||e[7]!==i?(n=b=>{s?.(b),i()},e[6]=s,e[7]=i,e[8]=n):n=e[8];let o,h;e[9]===Symbol.for("react.memo_cache_sentinel")?(o=r.jsx(R,{}),h=r.jsx("span",{className:"sr-only",children:"Toggle Sidebar"}),e[9]=o,e[10]=h):(o=e[9],h=e[10]);let u;e[11]!==a||e[12]!==d||e[13]!==n?(u=r.jsx(E,{asChild:!0,children:r.jsxs(P,{"data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:d,onClick:n,...a,children:[o,h]})}),e[11]=a,e[12]=d,e[13]=n,e[14]=u):u=e[14];let g;e[15]===Symbol.for("react.memo_cache_sentinel")?(g=r.jsxs(B,{side:"bottom",className:"flex items-center gap-1.5",children:["Collapse sidebar",r.jsx("span",{className:"flex items-center gap-0.5",children:["⌘","B"].map(X)})]}),e[15]=g):g=e[15];let c;return e[16]!==u?(c=r.jsx(D,{delayDuration:300,children:r.jsxs(z,{children:[u,g]})}),e[16]=u,e[17]=c):c=e[17],c}function X(l){return r.jsx("kbd",{className:"inline-flex items-center justify-center min-w-5 h-5 px-1 rounded-sm border border-white/20 bg-white/10 text-white/70 text-xs font-mono",children:l},l)}function ne(l){const e=S.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=w("bg-background relative flex w-full flex-1 flex-col min-w-0","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=r.jsx("main",{"data-slot":"sidebar-inset",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function oe(l){const e=S.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=w("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=r.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function de(l){const e=S.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=w("flex flex-col gap-2 p-2",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=r.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function ce(l){const e=S.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=w("h-4 m-0! w-full",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=r.jsx("div",{"data-sidebar":"separator",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function fe(l){const e=S.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=w("flex min-h-0 flex-1 flex-col gap-2",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=r.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function ue(l){const e=S.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=w("relative flex w-full min-w-0 flex-col px-2 py-2 md:py-0",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=r.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function pe(l){const e=S.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=w("w-full text-sm overflow-visible",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=r.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function be(l){const e=S.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=w("flex w-full min-w-0 list-none flex-col gap-1 group-data-[state=collapsed]/sidebar:items-center",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=r.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}function me(l){const e=S.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=w("group/menu-item relative w-full list-none",t),e[3]=t,e[4]=a):a=e[4];let i;return e[5]!==s||e[6]!==a?(i=r.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:a,...s}),e[5]=s,e[6]=a,e[7]=i):i=e[7],i}const Y=H("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-lg py-0 pr-0.5 pl-1.5 text-left text-sm outline-0 outline-sidebar-ring transition-[width,height,padding] duration-150 ease-out motion-reduce:transition-none focus-visible:outline-2 focus-visible:-outline-offset-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate group-data-[state=collapsed]/sidebar:[&>span:last-child]:hidden [&>svg]:size-4 [&>svg]:shrink-0 [&_svg]:opacity-60 hover:[&_svg]:opacity-100",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background ring-1 ring-sidebar-border hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:ring-sidebar-accent"},size:{default:"group-data-[state=expanded]/sidebar:h-8 group-data-[state=expanded]/sidebar:px-2 group-data-[state=collapsed]/sidebar:w-full! group-data-[state=collapsed]/sidebar:aspect-square! group-data-[state=collapsed]/sidebar:max-w-[calc(var(--sidebar-width-icon)-1rem)]! group-data-[state=collapsed]/sidebar:h-auto! group-data-[state=collapsed]/sidebar:p-0! group-data-[state=collapsed]/sidebar:mx-auto group-data-[state=collapsed]/sidebar:justify-center text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm p-0!"}},defaultVariants:{variant:"default",size:"default"}});function xe(l){const e=S.c(28);let t,s,a,i,d,n,o;e[0]!==l?({asChild:a,isActive:i,variant:d,size:n,tooltip:o,className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s,e[3]=a,e[4]=i,e[5]=d,e[6]=n,e[7]=o):(t=e[1],s=e[2],a=e[3],i=e[4],d=e[5],n=e[6],o=e[7]);const h=a===void 0?!1:a,u=i===void 0?!1:i,g=d===void 0?"default":d,c=n===void 0?"default":n,b=h?A:"button",{isMobile:N}=O();let f;e[8]!==t||e[9]!==c||e[10]!==g?(f=w(Y({variant:g,size:c}),t),e[8]=t,e[9]=c,e[10]=g,e[11]=f):f=e[11];let j;e[12]!==b||e[13]!==u||e[14]!==s||e[15]!==c||e[16]!==f?(j=r.jsx(b,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":c,"data-active":u,className:f,...s}),e[12]=b,e[13]=u,e[14]=s,e[15]=c,e[16]=f,e[17]=j):j=e[17];const y=j;if(!o)return y;if(typeof o=="string"){let x;e[18]!==o?(x={children:o},e[18]=o,e[19]=x):x=e[19],o=x}let m;e[20]!==y?(m=r.jsx(E,{asChild:!0,children:y}),e[20]=y,e[21]=m):m=e[21];let p;e[22]!==N||e[23]!==o?(p=r.jsx(B,{side:"right",align:"center",hidden:N,...o}),e[22]=N,e[23]=o,e[24]=p):p=e[24];let v;return e[25]!==m||e[26]!==p?(v=r.jsxs(z,{children:[m,p]}),e[25]=m,e[26]=p,e[27]=v):v=e[27],v}export{ne as S,ie as a,se as b,me as c,xe as d,ue as e,pe as f,be as g,ce as h,fe as i,le as j,oe as k,de as l,re as m,O as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as n,c,j as i}from"./index-
|
|
1
|
+
import{e as n,c,j as i}from"./index-kq5yUS_7.js";function m(o){const e=n.c(8);let s,t;e[0]!==o?({className:s,...t}=o,e[0]=o,e[1]=s,e[2]=t):(s=e[1],t=e[2]);let l;e[3]!==s?(l=c("bg-accent animate-pulse rounded-md",s),e[3]=s,e[4]=l):l=e[4];let a;return e[5]!==t||e[6]!==l?(a=i.jsx("div",{"data-slot":"skeleton",className:l,...t}),e[5]=t,e[6]=l,e[7]=a):a=e[7],a}export{m as S};
|