decocms 2.161.2 → 2.161.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-pqdPgDlg.js → AlertCircle-wzCWgJKp.js} +1 -1
- package/dist/client/assets/{AlignLeft-BvhXqcAM.js → AlignLeft-Cm7D7Jz2.js} +1 -1
- package/dist/client/assets/{ArrowDown-CZcxuDlT.js → ArrowDown-D7VDMxao.js} +1 -1
- package/dist/client/assets/{ArrowLeft-DKz-4xQV.js → ArrowLeft-CRiE2QCS.js} +1 -1
- package/dist/client/assets/{ArrowUp-GyzIO44k.js → ArrowUp-WlBoHBUF.js} +1 -1
- package/dist/client/assets/{Check-CDFiVxzc.js → Check-CxalVwyD.js} +1 -1
- package/dist/client/assets/{CheckCircle-DCUZbDbf.js → CheckCircle-BqWi0uzz.js} +1 -1
- package/dist/client/assets/{CheckDone01-DZ3FVLwH.js → CheckDone01-DcQm_x6s.js} +1 -1
- package/dist/client/assets/{CheckVerified02-BxkeUz6L.js → CheckVerified02-CCgMV0Xo.js} +1 -1
- package/dist/client/assets/{ChevronDown-CUijSoMc.js → ChevronDown-92pMp2oX.js} +1 -1
- package/dist/client/assets/{ChevronLeft-Cbh1TRDV.js → ChevronLeft-Bf6LLh_f.js} +1 -1
- package/dist/client/assets/{ChevronRight-NxpG2X5l.js → ChevronRight-tF0xM-4Z.js} +1 -1
- package/dist/client/assets/{Clock-CJUYUnBj.js → Clock-B7L5NA_R.js} +1 -1
- package/dist/client/assets/{Code01-DePjsj74.js → Code01-CSlTufbJ.js} +1 -1
- package/dist/client/assets/{Container-DegtKaTT.js → Container-DMtRMvOi.js} +1 -1
- package/dist/client/assets/{Copy01-CNPA12Jg.js → Copy01-DEpVJelC.js} +1 -1
- package/dist/client/assets/{Dataflow03-BVQa7VBE.js → Dataflow03-BhLXgKlQ.js} +1 -1
- package/dist/client/assets/{DotsHorizontal-Cmta8mvI.js → DotsHorizontal-zOYK6o8m.js} +1 -1
- package/dist/client/assets/{DotsVertical-tmylCaVb.js → DotsVertical-CLkpl368.js} +1 -1
- package/dist/client/assets/{Download01-BMpUSmpB.js → Download01-uDAq7ugX.js} +1 -1
- package/dist/client/assets/{Edit01-Dxc70kRZ.js → Edit01-DTFNmaeE.js} +1 -1
- package/dist/client/assets/{Edit05-BGwpCOy8.js → Edit05-syMMdkAn.js} +1 -1
- package/dist/client/assets/{Eye-Dn6eQVRc.js → Eye-DZR5Sgqw.js} +1 -1
- package/dist/client/assets/{File02-D6qDtegb.js → File02-p2vd5gRf.js} +1 -1
- package/dist/client/assets/{File06-Dq0JHkfg.js → File06-5rM4N04P.js} +1 -1
- package/dist/client/assets/{FilterLines-DsZEIYdO.js → FilterLines-DsZqrmoJ.js} +1 -1
- package/dist/client/assets/{Globe01-nCFh23MN.js → Globe01-Cna-7yb_.js} +1 -1
- package/dist/client/assets/{Globe02-58PFDYOO.js → Globe02-BLgrzxIE.js} +1 -1
- package/dist/client/assets/{Grid01-C3T5n4Ns.js → Grid01-BxyHC8oa.js} +1 -1
- package/dist/client/assets/{Hash02-BtbHJwIA.js → Hash02-up1a7Yk0.js} +1 -1
- package/dist/client/assets/{Home02-CVP_-AAq.js → Home02-C8u5Jhw0.js} +1 -1
- package/dist/client/assets/{Image01-Df4shQrN.js → Image01-CLI9NfSq.js} +1 -1
- package/dist/client/assets/{Inbox01-C2MChB8W.js → Inbox01-CMG4E9ai.js} +1 -1
- package/dist/client/assets/{InfoCircle-DdCgd8w-.js → InfoCircle-CgRpog_z.js} +1 -1
- package/dist/client/assets/{Key01-B75dBfxy.js → Key01-DCd_LGTZ.js} +1 -1
- package/dist/client/assets/{LayersTwo01-Bl8XKBa1.js → LayersTwo01-BvTnUwGe.js} +1 -1
- package/dist/client/assets/{LayoutLeft-DBgpHH4b.js → LayoutLeft-CJYXpDCf.js} +1 -1
- package/dist/client/assets/{Link01-DRbcjvnt.js → Link01-DPzj4tpz.js} +1 -1
- package/dist/client/assets/{LinkExternal01-BuW_IxKI.js → LinkExternal01-CGtY5qZg.js} +1 -1
- package/dist/client/assets/{List-JP-IMB61.js → List-SMahZTO4.js} +1 -1
- package/dist/client/assets/{Loading01-Bg86p_4S.js → Loading01-Bze1WZW-.js} +1 -1
- package/dist/client/assets/{Lock01-CUvqR8A1.js → Lock01-B_0cjFTJ.js} +1 -1
- package/dist/client/assets/{Play-BpTz5kZm.js → Play-niUvi64J.js} +1 -1
- package/dist/client/assets/{Plus-CJHPMEjp.js → Plus-LN4mY-9i.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-CEzW5PgL.js → RefreshCcw01-C0C5ptaM.js} +1 -1
- package/dist/client/assets/{Save01-BkKVEz4t.js → Save01-DlZ1-cfR.js} +1 -1
- package/dist/client/assets/{SearchMd-CwJLSOLk.js → SearchMd-F_aXmF-3.js} +1 -1
- package/dist/client/assets/{Settings01-BsSJuzwS.js → Settings01-CaZwmsCJ.js} +1 -1
- package/dist/client/assets/{Shield01-BZwBHewX.js → Shield01-DngARJc0.js} +1 -1
- package/dist/client/assets/{Terminal-1srXw7Rb.js → Terminal-CtU-OVGn.js} +1 -1
- package/dist/client/assets/{Trash01-cTJibjyo.js → Trash01-Bwp87fCr.js} +1 -1
- package/dist/client/assets/{Upload01-DNqKt2Ex.js → Upload01-DaeDmQtZ.js} +1 -1
- package/dist/client/assets/{Users03-DIxTnlo-.js → Users03-DpxIJiCb.js} +1 -1
- package/dist/client/assets/{X-DBGegVwb.js → X-gf_3nNHG.js} +1 -1
- package/dist/client/assets/{XCircle-COZoJP07.js → XCircle-DWwJhgPa.js} +1 -1
- package/dist/client/assets/{XClose-BvkrJnEc.js → XClose-C-K_Vaja.js} +1 -1
- package/dist/client/assets/{Zap-BCX9_zhf.js → Zap-BlQhJ_AT.js} +1 -1
- package/dist/client/assets/{agent-connections-preview-CFJw9GRB.js → agent-connections-preview-gR-iq9W7.js} +1 -1
- package/dist/client/assets/{agent-detail-BiTkjuJB.js → agent-detail-VK4T-_6I.js} +1 -1
- package/dist/client/assets/{agents-CE4lmgtV.js → agents-DCGGwBmH.js} +1 -1
- package/dist/client/assets/{alert-dialog-CW_u7eeV.js → alert-dialog-Bin5Tfuj.js} +2 -2
- package/dist/client/assets/{auth-catchall-Ct6Cr7Jp.js → auth-catchall-DtU2g9Mj.js} +1 -1
- package/dist/client/assets/{avatar-DRLqoNkW.js → avatar-B31kskAu.js} +1 -1
- package/dist/client/assets/{badge-BWAmAiUV.js → badge-B3jUOBeA.js} +1 -1
- package/dist/client/assets/{binder-D_AU3Ukn.js → binder-CHjF8z7t.js} +1 -1
- package/dist/client/assets/{breadcrumb-Bg67HRy9.js → breadcrumb-RbNIhzC-.js} +1 -1
- package/dist/client/assets/{card-7hcLkCEB.js → card-20_V1oP3.js} +1 -1
- package/dist/client/assets/{chart-Dw0NZjkg.js → chart-BLHHpC2I.js} +1 -1
- package/dist/client/assets/{checkbox-6x2X31Pv.js → checkbox-DNOEZe6O.js} +1 -1
- package/dist/client/assets/{circle-alert-BWN8SLrI.js → circle-alert-hz2vvmc1.js} +1 -1
- package/dist/client/assets/{collapsible-DwbiUeUb.js → collapsible-D_ju1zYz.js} +1 -1
- package/dist/client/assets/{collection-detail-BBwCylSh.js → collection-detail-Bbc7xOYn.js} +1 -1
- package/dist/client/assets/{collection-display-button-WFmVtIi7.js → collection-display-button-CPl7pq_-.js} +1 -1
- package/dist/client/assets/{collection-search-B54umXGp.js → collection-search-Dta_7bLf.js} +1 -1
- package/dist/client/assets/{collection-tab-CsqqKCXP.js → collection-tab-CEV5V3f-.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-BZOIm27z.js → collection-table-wrapper-Cnt9IhWx.js} +1 -1
- package/dist/client/assets/{collection-tabs-DOOzAXiO.js → collection-tabs-Cqam0Wq_.js} +1 -1
- package/dist/client/assets/{command-BzHx0nFf.js → command-CpDdpJuA.js} +1 -1
- package/dist/client/assets/{connect-Xg64wSud.js → connect-7xkdm7Ir.js} +1 -1
- package/dist/client/assets/{connection-card-DmPIw4Kg.js → connection-card-nPL8X300.js} +1 -1
- package/dist/client/assets/{connection-detail-CEXWHLXf.js → connection-detail-CgVIKGuL.js} +1 -1
- package/dist/client/assets/{connection-status-B_Z109Ry.js → connection-status-BKjCpqS3.js} +1 -1
- package/dist/client/assets/{connections-YxVBFdW8.js → connections-DeZMKw48.js} +1 -1
- package/dist/client/assets/{constants-DaSprOUn.js → constants-5XohhD_f.js} +1 -1
- package/dist/client/assets/constants-BFru2KWV.js +1 -0
- package/dist/client/assets/{context-ZdWC0La7.js → context-CTtcoCIi.js} +9 -9
- package/dist/client/assets/{create-organization-dialog-CZ7XLJZ2.js → create-organization-dialog-BTGz9lFR.js} +1 -1
- package/dist/client/assets/{create-project-dialog-4nsCEPvB.js → create-project-dialog-DU8b5qIM.js} +1 -1
- package/dist/client/assets/{danger-9AY19M9I.js → danger-BF5r1XMZ.js} +1 -1
- package/dist/client/assets/{danger-zone-DUuYBmgY.js → danger-zone-BZF6899E.js} +1 -1
- package/dist/client/assets/{decopilot-events-Cs-pdJXs.js → decopilot-events-Dwy6dXgg.js} +1 -1
- package/dist/client/assets/{dependencies-6_1PBWMZ.js → dependencies-DNEszsvl.js} +1 -1
- package/dist/client/assets/{dialog-CRJHcV_w.js → dialog-DxH8GO4d.js} +1 -1
- package/dist/client/assets/{dropdown-menu-ByUVopOy.js → dropdown-menu-CFEWQa_K.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-BQems7BE.js → dynamic-plugin-layout-B0o94jmF.js} +1 -1
- package/dist/client/assets/{editable-task-title-CrLCl8ja.js → editable-task-title-Dt_WaZpR.js} +1 -1
- package/dist/client/assets/{empty-state-DlQl9kGl.js → empty-state-Bxs7XZNI.js} +1 -1
- package/dist/client/assets/{env-vars-editor-C01OdNa1.js → env-vars-editor-DWgND44l.js} +1 -1
- package/dist/client/assets/{extract-connection-data-BKLs62Bt.js → extract-connection-data-Dp0FIsZq.js} +1 -1
- package/dist/client/assets/{file-browser-_OPiYVIh.js → file-browser-B0WY7QVG.js} +2 -2
- package/dist/client/assets/{form-Bz8l0jHv.js → form--EiAjir4.js} +1 -1
- package/dist/client/assets/{general-BaVO7kUh.js → general-BLQW0SWq.js} +1 -1
- package/dist/client/assets/{grid-view-D5jnfnXS.js → grid-view-C1eQZV6T.js} +1 -1
- package/dist/client/assets/{home-GJ33QBLJ.js → home-BhlGjt60.js} +1 -1
- package/dist/client/assets/{icon-picker-xxyJ8vlW.js → icon-picker-CamZ5oDW.js} +1 -1
- package/dist/client/assets/{index-BobyOFZi.js → index-BhvDbEFS.js} +1 -1
- package/dist/client/assets/{index-Dj-lsKhk.js → index-BoCyb2nQ.js} +1 -1
- package/dist/client/assets/{index-D1yfwwV4.js → index-BtrdkWUP.js} +1 -1
- package/dist/client/assets/{index-C2na4guL.js → index-Cag7rf5f.js} +3 -3
- package/dist/client/assets/{index-vgijt9J_.js → index-DFtp5nAe.js} +1 -1
- package/dist/client/assets/{index-BU2sT9tj.js → index-DktUqq7R.js} +1 -1
- package/dist/client/assets/{index-Bqz2mF-E.js → index-OPym4w5o.js} +1 -1
- package/dist/client/assets/{index-ICSQACSj.js → index-eNFlYk0_.js} +7 -7
- package/dist/client/assets/index-iChka6qr.js +1 -0
- package/dist/client/assets/{infiniteQueryObserver-Bo5FxNtU.js → infiniteQueryObserver-B3dSQxWm.js} +1 -1
- package/dist/client/assets/{input-DUsZ0674.js → input-BU10AGC6.js} +1 -1
- package/dist/client/assets/{integration-icon-DGtldPz9.js → integration-icon-BKhIZQox.js} +1 -1
- package/dist/client/assets/{label-CSGfgop7.js → label-C6bT3eG4.js} +1 -1
- package/dist/client/assets/{layout-Cd_QYQV8.js → layout-a5d200P2.js} +1 -1
- package/dist/client/assets/{layout-Bv5qTAVf.js → layout-vXZA4ess.js} +1 -1
- package/dist/client/assets/{localstorage-keys-rCdSk7V1.js → localstorage-keys-Cc-8xT2Q.js} +1 -1
- package/dist/client/assets/{login-DnmLD1yR.js → login-Dbq21Mu8.js} +1 -1
- package/dist/client/assets/{markdown-7O_t6qjD.js → markdown-COW3UK8R.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-D4E7hypr.js → mcp-app-renderer-C0sSQYUl.js} +1 -1
- package/dist/client/assets/{mcp-server-card-B5bdDRrO.js → mcp-server-card-BVTY4fFK.js} +1 -1
- package/dist/client/assets/{mcp-server-detail-BipYUahd.js → mcp-server-detail-BfFEU3Ca.js} +2 -2
- package/dist/client/assets/{members-DXAGCIzX.js → members-Bzr6Eusy.js} +1 -1
- package/dist/client/assets/{monaco-editor-BqVWju5E.js → monaco-editor-3FBKoSxm.js} +4 -4
- package/dist/client/assets/{monitoring-C16CCkds.js → monitoring-B9_G9rGi.js} +10 -10
- package/dist/client/assets/{monitoring-dashboard-edit-kRZzzeLE.js → monitoring-dashboard-edit-ihZjovsR.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-view-dupkPgnr.js → monitoring-dashboard-view-DPJ5oOTL.js} +1 -1
- package/dist/client/assets/{oauth-callback-D6OSg7HB.js → oauth-callback-BfO8DiMX.js} +1 -1
- package/dist/client/assets/{page-CrwdxmJx.js → page-BK2FlAm7.js} +1 -1
- package/dist/client/assets/{page-JVDQd7Pa.js → page-DrNv2hLE.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-B5OREokA.js → plugin-empty-state-BsIaJnf_.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-CJTXfK5G.js → plugin-empty-state-DB3a-CPN.js} +1 -1
- package/dist/client/assets/{plugin-header-BMsRFrsD.js → plugin-header-DDUqZYqS.js} +1 -1
- package/dist/client/assets/{plugin-header-Mne8oE1c.js → plugin-header-DZoxK7XC.js} +1 -1
- package/dist/client/assets/plugins-D_dg2liE.js +1 -0
- package/dist/client/assets/{popover-BmtBdGjb.js → popover-BGTZ4Jg2.js} +1 -1
- package/dist/client/assets/{project-app-view-DEA_89TX.js → project-app-view-Cm5ZjDvK.js} +1 -1
- package/dist/client/assets/{project-layout-B_g2ZCw2.js → project-layout-BgkRCgXh.js} +1 -1
- package/dist/client/assets/{project-plugins-yhhcAtKz.js → project-plugins-B8wYA_TO.js} +1 -1
- package/dist/client/assets/{projects-list-Dbu7WBPl.js → projects-list-BFZq7rRM.js} +1 -1
- package/dist/client/assets/{readme-viewer-CnL3dK7d.js → readme-viewer-eWzpImJ-.js} +1 -1
- package/dist/client/assets/{registry-layout-3t7vZz5Q.js → registry-layout-QIjOoCIB.js} +1 -1
- package/dist/client/assets/{registry-utils-CpY2YQZE.js → registry-utils-CXytYPKT.js} +1 -1
- package/dist/client/assets/{reports-layout-f1uXp8Wf.js → reports-layout-C0EBnxlu.js} +1 -1
- package/dist/client/assets/{reset-password-CWh0Stuy.js → reset-password-CZbBRUWh.js} +1 -1
- package/dist/client/assets/{resizable-Qi5e07L5.js → resizable-Dx94LkuC.js} +1 -1
- package/dist/client/assets/{save-actions-c2kWRBna.js → save-actions-Dy1mpcoK.js} +1 -1
- package/dist/client/assets/{scroll-area-CCwz27Cs.js → scroll-area-B52F-BUc.js} +1 -1
- package/dist/client/assets/{select-T9DEkcHR.js → select-DDvIxYC9.js} +1 -1
- package/dist/client/assets/{shell-layout-CRsdpEqy.js → shell-layout-8je4eclk.js} +2 -2
- package/dist/client/assets/{sidebar-settings-ZtDhOJ6Z.js → sidebar-settings-COcD5aX9.js} +1 -1
- package/dist/client/assets/{skeleton-BGhieoub.js → skeleton-vPkfHL7x.js} +1 -1
- package/dist/client/assets/{spinner-Bk3X7OJx.js → spinner-BxzkOyD6.js} +1 -1
- package/dist/client/assets/{store-invite-CZnlE5ip.js → store-invite-CRXC_N2h.js} +1 -1
- package/dist/client/assets/{switch-D0mfz5pr.js → switch-CT1_NI6K.js} +1 -1
- package/dist/client/assets/{table-DZiJB3ll.js → table-zdx3E6v9.js} +1 -1
- package/dist/client/assets/{tabs-BJ9uf_RZ.js → tabs-DK6oUINY.js} +1 -1
- package/dist/client/assets/tasks-BIo2z4kh.js +1 -0
- package/dist/client/assets/{tasks-panel-wqluKmNr.js → tasks-panel-dDHzZhim.js} +1 -1
- package/dist/client/assets/{textarea-kzEpH4RL.js → textarea-BPWoaNFn.js} +1 -1
- package/dist/client/assets/{time-range-picker-BQ1TWL3N.js → time-range-picker-Ctmd8k0x.js} +1 -1
- package/dist/client/assets/{toggle-group-CXudIshV.js → toggle-group-CegKLH1n.js} +1 -1
- package/dist/client/assets/{tools-list-SUAoOCuM.js → tools-list-BY3uMZdA.js} +1 -1
- package/dist/client/assets/{tooltip-BdAKZv54.js → tooltip-s11dEtpO.js} +1 -1
- package/dist/client/assets/{topbar-portal-El7xAic9.js → topbar-portal-rPJmCois.js} +1 -1
- package/dist/client/assets/{types-UVafsfzF.js → types-DRyYjHsT.js} +1 -1
- package/dist/client/assets/{use-binding-B7oG4xk1.js → use-binding-Dc1kKEIB.js} +1 -1
- package/dist/client/assets/{use-collections--9SGeKjH.js → use-collections-BG9rywMN.js} +1 -1
- package/dist/client/assets/{use-connection-Dr0AHpj7.js → use-connection-Dx2EaFOc.js} +1 -1
- package/dist/client/assets/{use-copy-vMjmnXEc.js → use-copy-BFB-OGf3.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-ChqLoL1m.js → use-create-virtual-mcp-Boh0ylO8.js} +1 -1
- package/dist/client/assets/{use-install-from-registry-VJLNAOzt.js → use-install-from-registry-BUnkMe_u.js} +1 -1
- package/dist/client/assets/{use-list-state-D_iRo0PJ.js → use-list-state-f-AMTm78.js} +1 -1
- package/dist/client/assets/{use-llm-DnQz3dsu.js → use-llm-BSkNsxRE.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-DhKfEu5C.js → use-mcp-prompts-CAEcR_lH.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-DiVZVnvo.js → use-mcp-tools-Bn0JXnu7.js} +1 -1
- package/dist/client/assets/{use-members-mIA8yoGT.js → use-members-1che_jpy.js} +1 -1
- package/dist/client/assets/{use-mobile-DHwqDvar.js → use-mobile-DAXjM9XF.js} +1 -1
- package/dist/client/assets/{use-preferences-DE_OGVCO.js → use-preferences-D5ktNb6g.js} +1 -1
- package/dist/client/assets/{use-project-BRmCR_r0.js → use-project-BLkau85f.js} +1 -1
- package/dist/client/assets/{use-settings-modal-DU2uB_2j.js → use-settings-modal-DKWQxpc-.js} +1 -1
- package/dist/client/assets/{use-view-mode-BZc5mOXP.js → use-view-mode-DoyNiHJV.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-BpJ2qfK9.js → use-virtual-mcp-gWnd6DnQ.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-Bt8cle7l.js +1 -0
- package/dist/client/assets/{useMutation-Cu1CYNQ4.js → useMutation-CCDwZCqX.js} +1 -1
- package/dist/client/assets/useQuery-Clb9lPv3.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-a8ay6F8p.js +1 -0
- package/dist/client/assets/{user-r4C-ASlZ.js → user-Dc2KBRdg.js} +1 -1
- package/dist/client/assets/{workflow-DwGrEsyc.js → workflow-DstksxgA.js} +1 -1
- package/dist/client/index.html +1 -1
- package/package.json +1 -1
- package/dist/client/assets/constants-YgRD23Vv.js +0 -1
- package/dist/client/assets/index-C5rk7Y_P.js +0 -1
- package/dist/client/assets/plugins-BmICZHEP.js +0 -1
- package/dist/client/assets/tasks-dtcrF_V6.js +0 -1
- package/dist/client/assets/useInfiniteQuery-D6h6YOzH.js +0 -1
- package/dist/client/assets/useQuery-DnHeIEbf.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CE3o8dC9.js +0 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{r as A,c as $,j as s,E as Qe,u as ze,z as I,e as Ze,as as Xe,L as Fe,c8 as _t,be as Ct,O as q,ar as wt,ab as $t,ad as zt,ae as It,ac as Pt,af as At,ah as Et,ag as Tt,H as Ot,M as Mt,g as lt,f as Se,x as ye,c9 as Dt,bK as Rt,w as Lt,B as We,A as Ht,S as it,k as Ut,m as Bt,N as Ft,v as Wt,K as Gt,au as nt,P as Kt}from"./index-C2na4guL.js";import{C as oe}from"./index-vgijt9J_.js";import{I as Vt}from"./integration-icon-DGtldPz9.js";import{u as ot,P as je}from"./index-BU2sT9tj.js";import{d as qt,u as Yt}from"./constants-DaSprOUn.js";import{n as Ge}from"./CheckDone01-DZ3FVLwH.js";import{n as Qt}from"./ChevronLeft-Cbh1TRDV.js";import{i as Zt}from"./Loading01-Bg86p_4S.js";import{s as Le}from"./Plus-CJHPMEjp.js";import{t as Je}from"./Users03-DIxTnlo-.js";import{i as Ke}from"./X-DBGegVwb.js";import{E as Xt,C as Jt}from"./editable-task-title-CrLCl8ja.js";import{T as es}from"./tasks-panel-wqluKmNr.js";import{a as ts,i as ss}from"./context-ZdWC0La7.js";import{C as at}from"./create-project-dialog-4nsCEPvB.js";import{t as rt,u as ct,i as ls}from"./use-settings-modal-DU2uB_2j.js";import{n as is}from"./Container-DegtKaTT.js";import{e as ns}from"./Dataflow03-BVQa7VBE.js";import{a as os}from"./Home02-CVP_-AAq.js";import{i as Ve}from"./LayoutLeft-DBgpHH4b.js";import{t as He}from"./Settings01-BsSJuzwS.js";import{u as dt,a as mt}from"./use-project-BRmCR_r0.js";import{u as as}from"./use-mobile-DHwqDvar.js";import{c as rs,b as cs,a as ds,T as ms}from"./tooltip-BdAKZv54.js";import{S as re}from"./skeleton-BGhieoub.js";import{n as $e}from"./LinkExternal01-BuW_IxKI.js";import{t as ft}from"./ChevronDown-CUijSoMc.js";import{A as Ie}from"./avatar-DRLqoNkW.js";import{c as ae,k as fs,h as us,b as ut,D as pt,a as xt,e as Ue,j as ps}from"./dropdown-menu-ByUVopOy.js";import{i as Pe}from"./Check-CDFiVxzc.js";import{C as xs}from"./create-organization-dialog-CZ7XLJZ2.js";import{a as hs}from"./Copy01-CNPA12Jg.js";import{i as gs}from"./File06-Dq0JHkfg.js";import{i as bs}from"./Globe01-nCFh23MN.js";import{i as js}from"./Shield01-BZwBHewX.js";import{P as vs,b as Ns,a as ys}from"./popover-BmtBdGjb.js";import{n as st}from"./Inbox01-C2MChB8W.js";import{s as Ss}from"./XClose-BvkrJnEc.js";import{b as ks}from"./use-connection-Dr0AHpj7.js";import{b as _s}from"./use-mcp-tools-DiVZVnvo.js";import{c as Cs,A as ws}from"./use-binding-B7oG4xk1.js";import{C as $s,b as zs,c as Is}from"./collapsible-DwbiUeUb.js";import{i as Ps}from"./ChevronRight-NxpG2X5l.js";import{u as et,L as tt}from"./localstorage-keys-rCdSk7V1.js";import{a as As,R as ht,b as Es}from"./resizable-Qi5e07L5.js";import"./spinner-Bk3X7OJx.js";import"./use-mcp-prompts-DhKfEu5C.js";import"./useQuery-DnHeIEbf.js";import"./dialog-CRJHcV_w.js";import"./form-Bz8l0jHv.js";import"./label-CSGfgop7.js";import"./input-DUsZ0674.js";import"./usage-B8eRkRZY.js";import"./ArrowUp-GyzIO44k.js";import"./Edit01-Dxc70kRZ.js";import"./Lock01-CUvqR8A1.js";import"./XCircle-COZoJP07.js";import"./AlertCircle-pqdPgDlg.js";import"./select-T9DEkcHR.js";import"./index-BobyOFZi.js";import"./use-preferences-DE_OGVCO.js";import"./ArrowLeft-DKz-4xQV.js";import"./use-copy-vMjmnXEc.js";import"./tabs-BJ9uf_RZ.js";import"./badge-BWAmAiUV.js";import"./Code01-DePjsj74.js";import"./use-virtual-mcp-BpJ2qfK9.js";import"./use-collections--9SGeKjH.js";import"./useMutation-Cu1CYNQ4.js";import"./SearchMd-CwJLSOLk.js";import"./use-create-virtual-mcp-ChqLoL1m.js";import"./decopilot-events-Cs-pdJXs.js";import"./marked.esm-BaswSlok.js";import"./markdown-7O_t6qjD.js";import"./mcp-app-renderer-D4E7hypr.js";import"./types-UVafsfzF.js";import"./Eye-Dn6eQVRc.js";import"./Globe02-58PFDYOO.js";import"./LayersTwo01-Bl8XKBa1.js";import"./collection-search-B54umXGp.js";import"./generate-id-Dyweu44Y.js";import"./Clock-CJUYUnBj.js";import"./Trash01-cTJibjyo.js";import"./CheckCircle-DCUZbDbf.js";import"./user-r4C-ASlZ.js";import"./format-time-CMKyl-GC.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-llm-DnQz3dsu.js";import"./checkbox-6x2X31Pv.js";import"./AlignLeft-BvhXqcAM.js";import"./Image01-Df4shQrN.js";import"./RefreshCcw01-CEzW5PgL.js";import"./useSuspenseInfiniteQuery-CE3o8dC9.js";import"./infiniteQueryObserver-Bo5FxNtU.js";import"./textarea-kzEpH4RL.js";import"./alert-dialog-CW_u7eeV.js";import"./binder-D_AU3Ukn.js";const gt=({size:t=24,color:e="currentColor",...l})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...l},A.createElement("path",{d:"M9 7H4.6c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C3 7.76 3 8.04 3 8.6v10.8c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C3.76 21 4.04 21 4.6 21H9m0 0h6m-6 0V4.6c0-.56 0-.84.109-1.054a1 1 0 0 1 .437-.437C9.76 3 10.04 3 10.6 3h2.8c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C15 3.76 15 4.04 15 4.6V21m0-10h4.4c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C21 11.76 21 12.04 21 12.6v6.8c0 .56 0 .84-.109 1.054a1 1 0 0 1-.437.437C20.24 21 19.96 21 19.4 21H15"}));gt.displayName="BarChart10";const bt=({size:t=24,color:e="currentColor",...l})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...l},A.createElement("path",{d:"M8 14s1.5 2 4 2 4-2 4-2m-1-5h.01M9 9h.01M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-6.5-3a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0Zm-6 0a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0Z"}));bt.displayName="FaceSmile";const jt=({size:t=24,color:e="currentColor",...l})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...l},A.createElement("path",{d:"m16 17 5-5m0 0-5-5m5 5H9m0-9H7.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C3 5.28 3 6.12 3 7.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 21 6.12 21 7.8 21H9"}));jt.displayName="LogOut01";function Ts(){const t=$.c(72),{org:e}=ze(),[,l]=ot(),{selectedVirtualMcp:i,modelsConnections:n,isChatEmpty:o,activeTaskId:a,createTask:c,switchToTask:r,tasks:d}=ts();let f;if(t[0]!==a||t[1]!==d){let H;t[3]!==a?(H=ne=>ne.id===a,t[3]=a,t[4]=H):H=t[4],f=d.find(H),t[0]=a,t[1]=d,t[2]=f}else f=t[2];const u=f,[m,p]=A.useState("chat"),[h,g]=A.useTransition();let j;t[5]!==e.id?(j=qt(e.id),t[5]=e.id,t[6]=j):j=t[6];const x=i??j;let b;t[7]!==c?(b=()=>{g(()=>{c()})},t[7]=c,t[8]=b):b=t[8];const S=b;if(n.length===0){let H;t[9]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(je.Header.Left,{className:"gap-2"}),t[9]=H):H=t[9];let ne;t[10]!==l?(ne=()=>l(!1),t[10]=l,t[11]=ne):ne=t[11];let J;t[12]===Symbol.for("react.memo_cache_sentinel")?(J=s.jsx(Ke,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[12]=J):J=t[12];let ie;t[13]!==ne?(ie=s.jsxs(je.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[H,s.jsx(je.Header.Right,{className:"gap-1",children:s.jsx("button",{type:"button",onClick:ne,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:J})})]}),t[13]=ne,t[14]=ie):ie=t[14];let he;t[15]!==e?(he=s.jsx(oe.Main,{className:"flex flex-col items-center",children:s.jsx(oe.EmptyState,{children:s.jsx(oe.NoLlmBindingEmptyState,{title:"No model provider connected",description:"Connect to a model provider to unlock AI-powered features.",org:e})})}),t[15]=e,t[16]=he):he=t[16];let xe;return t[17]!==ie||t[18]!==he?(xe=s.jsxs(oe,{className:"animate-in fade-in-0 duration-200",children:[ie,he]}),t[17]=ie,t[18]=he,t[19]=xe):xe=t[19],xe}const k=m!=="chat"||h?"opacity-0 pointer-events-none":"opacity-100";let v;t[20]!==k?(v=I("absolute inset-0 flex flex-col transition-opacity duration-100 ease-out",k),t[20]=k,t[21]=v):v=t[21];let N;t[22]!==u||t[23]!==o?(N=!o&&u?.title&&s.jsx(Xt,{taskId:u.id,text:u.title,className:"text-sm font-medium text-foreground"}),t[22]=u,t[23]=o,t[24]=N):N=t[24];let z;t[25]!==N?(z=s.jsx(je.Header.Left,{className:"gap-2",children:N}),t[25]=N,t[26]=z):z=t[26];let C;t[27]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(Le,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[27]=C):C=t[27];let _;t[28]!==S||t[29]!==h?(_=s.jsx("button",{type:"button",onClick:S,disabled:h,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent group cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",title:"New chat",children:C}),t[28]=S,t[29]=h,t[30]=_):_=t[30];let P;t[31]===Symbol.for("react.memo_cache_sentinel")?(P=()=>p("tasks"),t[31]=P):P=t[31];let R;t[32]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx("button",{type:"button",onClick:P,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent group cursor-pointer",title:"Tasks",children:s.jsx(Ge,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"})}),t[32]=R):R=t[32];let E;t[33]!==l?(E=()=>l(!1),t[33]=l,t[34]=E):E=t[34];let B;t[35]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx(Ke,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[35]=B):B=t[35];let T;t[36]!==E?(T=s.jsx("button",{type:"button",onClick:E,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:B}),t[36]=E,t[37]=T):T=t[37];let O;t[38]!==T||t[39]!==_?(O=s.jsxs(je.Header.Right,{className:"gap-1",children:[_,R,T]}),t[38]=T,t[39]=_,t[40]=O):O=t[40];let M;t[41]!==O||t[42]!==z?(M=s.jsxs(je.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[z,O]}),t[41]=O,t[42]=z,t[43]=M):M=t[43];let F;t[44]!==x||t[45]!==o?(F=s.jsx(oe.Main,{children:o?s.jsx(oe.EmptyState,{children:s.jsxs("div",{className:"flex flex-col items-center gap-6 w-full px-4",children:[s.jsxs("div",{className:"flex flex-col items-center justify-center gap-4 p-0 text-center",children:[s.jsx(Vt,{icon:x.icon,name:x.title,size:"lg",fallbackIcon:s.jsx(Je,{size:32}),className:"size-[60px]! rounded-[18px]!"}),s.jsx("h3",{className:"text-xl font-medium text-foreground",children:x.title}),s.jsx("div",{className:"text-muted-foreground text-center text-sm max-w-md",children:x.description??"Ask anything about configuring model providers or using MCP Mesh."})]}),s.jsx(oe.IceBreakers,{})]})}):s.jsx(oe.Messages,{})}),t[44]=x,t[45]=o,t[46]=F):F=t[46];let D;t[47]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx(oe.Footer,{children:s.jsx(oe.Input,{onOpenContextPanel:()=>p("context")})}),t[47]=D):D=t[47];let L;t[48]!==M||t[49]!==F||t[50]!==v?(L=s.jsxs("div",{className:v,children:[M,F,D]}),t[48]=M,t[49]=F,t[50]=v,t[51]=L):L=t[51];const ee=m==="tasks"?"opacity-100":"opacity-0 pointer-events-none";let te;t[52]!==ee?(te=I("absolute inset-0 flex flex-col transition-opacity duration-100 ease-out",ee),t[52]=ee,t[53]=te):te=t[53];let Q;t[54]===Symbol.for("react.memo_cache_sentinel")?(Q=s.jsx(je.Header.Left,{className:"gap-2",children:s.jsx("span",{className:"text-sm font-normal text-foreground",children:"Tasks"})}),t[54]=Q):Q=t[54];let ce;t[55]===Symbol.for("react.memo_cache_sentinel")?(ce=()=>p("chat"),t[55]=ce):ce=t[55];let de;t[56]===Symbol.for("react.memo_cache_sentinel")?(de=s.jsxs(je.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[Q,s.jsx(je.Header.Right,{className:"gap-1",children:s.jsx("button",{type:"button",onClick:ce,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Back to chat",children:s.jsx(Qt,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"})})})]}),t[56]=de):de=t[56];let Z;t[57]===Symbol.for("react.memo_cache_sentinel")?(Z=s.jsx("div",{className:"flex-1 flex items-center justify-center",children:s.jsx(Zt,{size:16,className:"animate-spin text-muted-foreground"})}),t[57]=Z):Z=t[57];let Y;t[58]!==r?(Y=s.jsx(Qe,{fallback:Os,children:s.jsx(A.Suspense,{fallback:Z,children:s.jsx(es,{onTaskSelect:async H=>{await r(H),p("chat")}})})}),t[58]=r,t[59]=Y):Y=t[59];let W;t[60]!==te||t[61]!==Y?(W=s.jsxs("div",{className:te,children:[de,Y]}),t[60]=te,t[61]=Y,t[62]=W):W=t[62];const se=m==="context"?"opacity-100":"opacity-0 pointer-events-none";let le;t[63]!==se?(le=I("absolute inset-0 flex flex-col transition-opacity duration-100 ease-out",se),t[63]=se,t[64]=le):le=t[64];let X;t[65]===Symbol.for("react.memo_cache_sentinel")?(X=s.jsx(Jt,{back:!0,onClose:()=>p("chat")}),t[65]=X):X=t[65];let G;t[66]!==le?(G=s.jsx("div",{className:le,children:X}),t[66]=le,t[67]=G):G=t[67];let K;return t[68]!==L||t[69]!==W||t[70]!==G?(K=s.jsxs(oe,{className:"relative overflow-hidden animate-in fade-in-0 duration-200",children:[L,W,G]}),t[68]=L,t[69]=W,t[70]=G,t[71]=K):K=t[71],K}function Os(){return s.jsx("div",{className:"flex-1 flex items-center justify-center",children:s.jsx("p",{className:"text-xs text-muted-foreground",children:"Unable to load tasks"})})}function Ms(){const t=$.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(oe.Skeleton,{}),t[0]=e):e=t[0];let l;return t[1]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(Qe,{fallback:e,children:s.jsx(A.Suspense,{fallback:s.jsx(oe.Skeleton,{}),children:s.jsx(Ts,{})})}),t[1]=l):l=t[1],l}function Ds(){const t=$.c(58),{locator:e,org:l}=ze(),i=Ze(),n=Xe(),{org:o,project:a}=Fe.parse(e),c=Fe.isOrgAdminProject(e),{data:r}=dt(l.id,a);let d;t[0]!==r?.enabledPlugins?(d=r?.enabledPlugins??[],t[0]=r?.enabledPlugins,t[1]=d):d=t[1];const f=d,u=r?.ui?.pinnedViews??[];let m;t[2]!==f?(m=w=>f.includes(w.pluginId),t[2]=f,t[3]=m):m=t[3];const p=_t.filter(m),h=n.location.pathname,g=`/${o}/${a}`,j=h===g||h===`${g}/`;let y;t[4]!==g||t[5]!==h?(y=w=>h.startsWith(`${g}/${w}`),t[4]=g,t[5]=h,t[6]=y):y=t[6];const x=y;let b;t[7]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(os,{}),t[7]=b):b=t[7];const S={key:"home",label:"Home",icon:b,isActive:j,onClick:()=>{j?window.dispatchEvent(new CustomEvent("reset-home-view")):i({to:"/$org/$project",params:{org:o,project:a}})}};let k;t[8]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx(Ge,{}),t[8]=k):k=t[8];const v={key:"tasks",label:"Tasks",icon:k,isActive:x("tasks"),onClick:()=>i({to:"/$org/$project/tasks",params:{org:o,project:q}})};let N;t[9]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx(is,{}),t[9]=N):N=t[9];const z={key:"mcps",label:"Connections",icon:N,isActive:x("mcps"),onClick:()=>i({to:"/$org/$project/mcps",params:{org:o,project:q}})};let C;t[10]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(wt,{}),t[10]=C):C=t[10];const _={key:"projects",label:"Projects",icon:C,isActive:x("projects"),onClick:()=>i({to:"/$org/$project/projects",params:{org:o,project:q}})};let P;t[11]===Symbol.for("react.memo_cache_sentinel")?(P=s.jsx(rt,{}),t[11]=P):P=t[11];const R={key:"store",label:"Store",icon:P,isActive:x("store"),onClick:()=>i({to:"/$org/$project/store",params:{org:o,project:q}})};let E;t[12]===Symbol.for("react.memo_cache_sentinel")?(E=s.jsx(Je,{}),t[12]=E):E=t[12];const B={key:"agents",label:"Agents",icon:E,isActive:x("agents"),onClick:()=>i({to:"/$org/$project/agents",params:{org:o,project:q}})};let T;t[13]===Symbol.for("react.memo_cache_sentinel")?(T=s.jsx(gt,{}),t[13]=T):T=t[13];const O={key:"monitoring",label:"Monitor",icon:T,isActive:x("monitoring"),onClick:()=>i({to:"/$org/$project/monitoring",params:{org:o,project:q}})};let M;t[14]===Symbol.for("react.memo_cache_sentinel")?(M=s.jsx(bt,{}),t[14]=M):M=t[14];const F={key:"members",label:"Members",icon:M,isActive:x("members"),onClick:()=>i({to:"/$org/$project/members",params:{org:o,project:q}})},D=p.map(w=>({key:w.pluginId,label:w.label,icon:w.icon,isActive:x(w.pluginId),onClick:()=>i({to:"/$org/$project/$pluginId",params:{org:o,project:a,pluginId:w.pluginId}})}));let L;t[15]!==f?(L=w=>f.includes(w.pluginId),t[15]=f,t[16]=L):L=t[16];const te=Ct.filter(L).map(w=>({type:"group",group:{id:`${w.pluginId}-${w.id}`,label:w.label,items:w.items.map((U,me)=>({key:`${w.pluginId}-${w.id}-${me}`,label:U.label,icon:U.icon,isActive:x(w.pluginId),onClick:()=>i({to:"/$org/$project/$pluginId",params:{org:o,project:a,pluginId:w.pluginId}})})),defaultExpanded:w.defaultExpanded??!0}})),Q=u.map(w=>({key:`app-${w.connectionId}-${w.toolName}`,label:w.label||w.toolName,icon:w.icon?s.jsx("img",{src:w.icon,alt:"",className:"size-4 rounded"}):s.jsx(Ve,{}),isActive:x(`apps/${w.connectionId}/${encodeURIComponent(w.toolName)}`),onClick:()=>i({to:"/$org/$project/apps/$connectionId/$toolName",params:{org:o,project:a,connectionId:w.connectionId,toolName:w.toolName}})}));let ce;t[17]!==Q?(ce=Q.length>0?{type:"group",group:{id:"apps",label:"Apps",items:Q,defaultExpanded:!0}}:null,t[17]=Q,t[18]=ce):ce=t[18];const de=ce;if(c){let w;t[19]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(He,{}),t[19]=w):w=t[19];let U;t[20]!==x?(U=x("settings"),t[20]=x,t[21]=U):U=t[21];let me;t[22]!==i||t[23]!==o?(me=()=>i({to:"/$org/$project/settings",params:{org:o,project:q}}),t[22]=i,t[23]=o,t[24]=me):me=t[24];let be;t[25]!==U||t[26]!==me?(be={key:"settings",label:"Settings",icon:w,isActive:U,onClick:me},t[25]=U,t[26]=me,t[27]=be):be=t[27];const fe=[{type:"items",items:[S,v,_]},{type:"group",group:{id:"build",label:"Build",items:[B,z,R],defaultExpanded:!0}},{type:"group",group:{id:"manage",label:"Manage",items:[O,F,be],defaultExpanded:!0}}];if(D.length>0){let ue;t[28]!==D?(ue={type:"items",items:D},t[28]=D,t[29]=ue):ue=t[29],fe.push(ue)}return te.length>0&&fe.push(...te),de&&fe.push(de),fe}let Z;t[30]===Symbol.for("react.memo_cache_sentinel")?(Z=s.jsx(Ge,{}),t[30]=Z):Z=t[30];let Y;t[31]!==x?(Y=x("tasks"),t[31]=x,t[32]=Y):Y=t[32];let W;t[33]!==i||t[34]!==o||t[35]!==a?(W=()=>i({to:"/$org/$project/tasks",params:{org:o,project:a}}),t[33]=i,t[34]=o,t[35]=a,t[36]=W):W=t[36];let se;t[37]!==Y||t[38]!==W?(se={key:"tasks",label:"Tasks",icon:Z,isActive:Y,onClick:W},t[37]=Y,t[38]=W,t[39]=se):se=t[39];const le=se;let X;t[40]===Symbol.for("react.memo_cache_sentinel")?(X=s.jsx(ns,{}),t[40]=X):X=t[40];let G;t[41]!==x?(G=x("workflows"),t[41]=x,t[42]=G):G=t[42];let K;t[43]!==i||t[44]!==o||t[45]!==a?(K=()=>i({to:"/$org/$project/workflows",params:{org:o,project:a}}),t[43]=i,t[44]=o,t[45]=a,t[46]=K):K=t[46];let H;t[47]!==G||t[48]!==K?(H={key:"workflows",label:"Workflows",icon:X,isActive:G,onClick:K},t[47]=G,t[48]=K,t[49]=H):H=t[49];const ne=H;let J;t[50]===Symbol.for("react.memo_cache_sentinel")?(J=s.jsx(He,{}),t[50]=J):J=t[50];let ie;t[51]!==i||t[52]!==o||t[53]!==a?(ie={key:"configure",label:"Configure",icon:J,isActive:!1,isExternal:!0,onClick:()=>i({to:"/$org/$project/projects/$slug/settings/general",params:{org:o,project:q,slug:a}})},t[51]=i,t[52]=o,t[53]=a,t[54]=ie):ie=t[54];const ge=[{type:"items",items:[S,le,ne,ie]}];if(D.length>0){let w;t[55]===Symbol.for("react.memo_cache_sentinel")?(w={type:"divider"},t[55]=w):w=t[55],ge.push(w);let U;t[56]!==D?(U={type:"items",items:D},t[56]=D,t[57]=U):U=t[57],ge.push(U)}return te.length>0&&ge.push(...te),de&&ge.push(de),ge}function Rs(t){const e=$.c(4);let l;e[0]!==t?({...l}=t,e[0]=t,e[1]=l):l=e[1];let i;return e[2]!==l?(i=s.jsx($t,{"data-slot":"sheet",...l}),e[2]=l,e[3]=i):i=e[3],i}function Ls(t){const e=$.c(4);let l;e[0]!==t?({...l}=t,e[0]=t,e[1]=l):l=e[1];let i;return e[2]!==l?(i=s.jsx(At,{"data-slot":"sheet-portal",...l}),e[2]=l,e[3]=i):i=e[3],i}function Hs(t){const e=$.c(8);let l,i;e[0]!==t?({className:l,...i}=t,e[0]=t,e[1]=l,e[2]=i):(l=e[1],i=e[2]);let n;e[3]!==l?(n=I("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",l),e[3]=l,e[4]=n):n=e[4];let o;return e[5]!==i||e[6]!==n?(o=s.jsx(Tt,{"data-slot":"sheet-overlay",className:n,...i}),e[5]=i,e[6]=n,e[7]=o):o=e[7],o}function Us(t){const e=$.c(17);let l,i,n,o;e[0]!==t?({className:i,children:l,side:o,...n}=t,e[0]=t,e[1]=l,e[2]=i,e[3]=n,e[4]=o):(l=e[1],i=e[2],n=e[3],o=e[4]);const a=o===void 0?"right":o;let c;e[5]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(Hs,{}),e[5]=c):c=e[5];const r=a==="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",d=a==="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",f=a==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",u=a==="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 m;e[6]!==i||e[7]!==r||e[8]!==d||e[9]!==f||e[10]!==u?(m=I("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-300 data-[state=open]:duration-500",r,d,f,u,i),e[6]=i,e[7]=r,e[8]=d,e[9]=f,e[10]=u,e[11]=m):m=e[11];let p;e[12]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsxs(Et,{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:[s.jsx(Ke,{className:"size-4"}),s.jsx("span",{className:"sr-only",children:"Close"})]}),e[12]=p):p=e[12];let h;return e[13]!==l||e[14]!==n||e[15]!==m?(h=s.jsxs(Ls,{children:[c,s.jsxs(Pt,{"data-slot":"sheet-content",className:m,...n,children:[l,p]})]}),e[13]=l,e[14]=n,e[15]=m,e[16]=h):h=e[16],h}function Bs(t){const e=$.c(8);let l,i;e[0]!==t?({className:l,...i}=t,e[0]=t,e[1]=l,e[2]=i):(l=e[1],i=e[2]);let n;e[3]!==l?(n=I("flex flex-col gap-1.5 p-4",l),e[3]=l,e[4]=n):n=e[4];let o;return e[5]!==i||e[6]!==n?(o=s.jsx("div",{"data-slot":"sheet-header",className:n,...i}),e[5]=i,e[6]=n,e[7]=o):o=e[7],o}function Fs(t){const e=$.c(8);let l,i;e[0]!==t?({className:l,...i}=t,e[0]=t,e[1]=l,e[2]=i):(l=e[1],i=e[2]);let n;e[3]!==l?(n=I("text-foreground font-semibold",l),e[3]=l,e[4]=n):n=e[4];let o;return e[5]!==i||e[6]!==n?(o=s.jsx(zt,{"data-slot":"sheet-title",className:n,...i}),e[5]=i,e[6]=n,e[7]=o):o=e[7],o}function Ws(t){const e=$.c(8);let l,i;e[0]!==t?({className:l,...i}=t,e[0]=t,e[1]=l,e[2]=i):(l=e[1],i=e[2]);let n;e[3]!==l?(n=I("text-muted-foreground text-sm",l),e[3]=l,e[4]=n):n=e[4];let o;return e[5]!==i||e[6]!==n?(o=s.jsx(It,{"data-slot":"sheet-description",className:n,...i}),e[5]=i,e[6]=n,e[7]=o):o=e[7],o}const Gs="sidebar_state",Ks=3600*24*7,Vs="16rem",qs="18rem",Ys="3rem",Qs="b",vt=A.createContext(null);function Be(){const t=A.useContext(vt);if(!t)throw new Error("useSidebar must be used within a SidebarProvider.");return t}function Zs(t){const e=$.c(21),{defaultOpen:l,open:i,onOpenChange:n,children:o}=t,a=l===void 0?!0:l,c=as(),[r,d]=A.useState(!1),[f,u]=A.useState(a),m=i??f;let p;e[0]!==m||e[1]!==n?(p=z=>{const C=typeof z=="function"?z(m):z;n?n(C):u(C),document.cookie=`${Gs}=${C}; path=/; max-age=${Ks}`},e[0]=m,e[1]=n,e[2]=p):p=e[2];const h=p;let g;e[3]!==c||e[4]!==h?(g=()=>c?d(Js):h(Xs),e[3]=c,e[4]=h,e[5]=g):g=e[5];const j=g;let y,x;e[6]!==j?(y=()=>{const z=C=>{if(C.key===Qs&&(C.metaKey||C.ctrlKey)){const _=C.target;if(_.tagName==="INPUT"||_.tagName==="TEXTAREA"||_.isContentEditable)return;C.preventDefault(),j()}};return globalThis.addEventListener("keydown",z),()=>globalThis.removeEventListener("keydown",z)},x=[j],e[6]=j,e[7]=y,e[8]=x):(y=e[7],x=e[8]),A.useEffect(y,x);const b=m?"expanded":"collapsed";let S;e[9]!==c||e[10]!==m||e[11]!==r||e[12]!==h||e[13]!==b||e[14]!==j?(S={state:b,open:m,setOpen:h,isMobile:c,openMobile:r,setOpenMobile:d,toggleSidebar:j},e[9]=c,e[10]=m,e[11]=r,e[12]=h,e[13]=b,e[14]=j,e[15]=S):S=e[15];const k=S;let v;e[16]!==o?(v=s.jsx(rs,{delayDuration:0,children:o}),e[16]=o,e[17]=v):v=e[17];let N;return e[18]!==k||e[19]!==v?(N=s.jsx(vt.Provider,{value:k,children:v}),e[18]=k,e[19]=v,e[20]=N):N=e[20],N}function Xs(t){return!t}function Js(t){return!t}function el(t){const e=$.c(14);let l,i,n,o;e[0]!==t?({className:i,style:o,children:l,...n}=t,e[0]=t,e[1]=l,e[2]=i,e[3]=n,e[4]=o):(l=e[1],i=e[2],n=e[3],o=e[4]);let a;e[5]!==o?(a={"--sidebar-width":Vs,"--sidebar-width-icon":Ys,...o},e[5]=o,e[6]=a):a=e[6];const c=a;let r;e[7]!==i?(r=I("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",i),e[7]=i,e[8]=r):r=e[8];let d;return e[9]!==l||e[10]!==n||e[11]!==c||e[12]!==r?(d=s.jsx("div",{"data-slot":"sidebar-wrapper",style:c,className:r,...n,children:l}),e[9]=l,e[10]=n,e[11]=c,e[12]=r,e[13]=d):d=e[13],d}function tl(t){const e=$.c(42);let l,i,n,o,a,c;e[0]!==t?({side:o,variant:a,collapsible:c,className:i,children:l,...n}=t,e[0]=t,e[1]=l,e[2]=i,e[3]=n,e[4]=o,e[5]=a,e[6]=c):(l=e[1],i=e[2],n=e[3],o=e[4],a=e[5],c=e[6]);const r=o===void 0?"left":o,d=a===void 0?"sidebar":a,f=c===void 0?"offcanvas":c,{isMobile:u,state:m,openMobile:p,setOpenMobile:h}=Be();if(f==="none"){let v;e[7]!==i?(v=I("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",i),e[7]=i,e[8]=v):v=e[8];let N;return e[9]!==l||e[10]!==n||e[11]!==v?(N=s.jsx("div",{"data-slot":"sidebar",className:v,...n,children:l}),e[9]=l,e[10]=n,e[11]=v,e[12]=N):N=e[12],N}if(u){let v;e[13]===Symbol.for("react.memo_cache_sentinel")?(v={"--sidebar-width":qs},e[13]=v):v=e[13];let N;e[14]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsxs(Bs,{className:"sr-only",children:[s.jsx(Fs,{children:"Sidebar"}),s.jsx(Ws,{children:"Displays the mobile sidebar."})]}),e[14]=N):N=e[14];let z;e[15]!==l?(z=s.jsx("div",{className:"flex h-full w-full flex-col",children:l}),e[15]=l,e[16]=z):z=e[16];let C;e[17]!==r||e[18]!==z?(C=s.jsxs(Us,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:v,side:r,children:[N,z]}),e[17]=r,e[18]=z,e[19]=C):C=e[19];let _;return e[20]!==p||e[21]!==n||e[22]!==h||e[23]!==C?(_=s.jsx(Rs,{open:p,onOpenChange:h,...n,children:C}),e[20]=p,e[21]=n,e[22]=h,e[23]=C,e[24]=_):_=e[24],_}const g=d==="floating"||d==="inset"?"data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"data-[collapsible=icon]:w-(--sidebar-width-icon)";let j;e[25]!==g?(j=I("group peer text-sidebar-foreground hidden md:flex flex-col shrink-0 overflow-hidden","w-(--sidebar-width) transition-[width] duration-300 ease-[var(--ease-out-quart)]","data-[collapsible=offcanvas]:w-0",g),e[25]=g,e[26]=j):j=e[26];const y=m==="collapsed"?f:"";let x;e[27]!==i?(x=I("flex flex-col h-full w-(--sidebar-width)",i),e[27]=i,e[28]=x):x=e[28];let b;e[29]!==l?(b=s.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:l}),e[29]=l,e[30]=b):b=e[30];let S;e[31]!==n||e[32]!==x||e[33]!==b?(S=s.jsx("div",{"data-slot":"sidebar-container",className:x,...n,children:b}),e[31]=n,e[32]=x,e[33]=b,e[34]=S):S=e[34];let k;return e[35]!==r||e[36]!==m||e[37]!==j||e[38]!==y||e[39]!==S||e[40]!==d?(k=s.jsx("div",{className:j,"data-state":m,"data-collapsible":y,"data-variant":d,"data-side":r,"data-slot":"sidebar",children:S}),e[35]=r,e[36]=m,e[37]=j,e[38]=y,e[39]=S,e[40]=d,e[41]=k):k=e[41],k}function sl(t){const e=$.c(8);let l,i;e[0]!==t?({className:l,...i}=t,e[0]=t,e[1]=l,e[2]=i):(l=e[1],i=e[2]);let n;e[3]!==l?(n=I("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",l),e[3]=l,e[4]=n):n=e[4];let o;return e[5]!==i||e[6]!==n?(o=s.jsx("main",{"data-slot":"sidebar-inset",className:n,...i}),e[5]=i,e[6]=n,e[7]=o):o=e[7],o}function Nt(t){const e=$.c(8);let l,i;e[0]!==t?({className:l,...i}=t,e[0]=t,e[1]=l,e[2]=i):(l=e[1],i=e[2]);let n;e[3]!==l?(n=I("flex flex-col gap-2 p-2",l),e[3]=l,e[4]=n):n=e[4];let o;return e[5]!==i||e[6]!==n?(o=s.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:n,...i}),e[5]=i,e[6]=n,e[7]=o):o=e[7],o}function ll(t){const e=$.c(8);let l,i;e[0]!==t?({className:l,...i}=t,e[0]=t,e[1]=l,e[2]=i):(l=e[1],i=e[2]);let n;e[3]!==l?(n=I("flex flex-col gap-2 p-2",l),e[3]=l,e[4]=n):n=e[4];let o;return e[5]!==i||e[6]!==n?(o=s.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:n,...i}),e[5]=i,e[6]=n,e[7]=o):o=e[7],o}function il(t){const e=$.c(8);let l,i;e[0]!==t?({className:l,...i}=t,e[0]=t,e[1]=l,e[2]=i):(l=e[1],i=e[2]);let n;e[3]!==l?(n=I("h-4 m-0! w-full",l),e[3]=l,e[4]=n):n=e[4];let o;return e[5]!==i||e[6]!==n?(o=s.jsx("div",{"data-sidebar":"separator",className:n,...i}),e[5]=i,e[6]=n,e[7]=o):o=e[7],o}function nl(t){const e=$.c(8);let l,i;e[0]!==t?({className:l,...i}=t,e[0]=t,e[1]=l,e[2]=i):(l=e[1],i=e[2]);let n;e[3]!==l?(n=I("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",l),e[3]=l,e[4]=n):n=e[4];let o;return e[5]!==i||e[6]!==n?(o=s.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:n,...i}),e[5]=i,e[6]=n,e[7]=o):o=e[7],o}function Ae(t){const e=$.c(8);let l,i;e[0]!==t?({className:l,...i}=t,e[0]=t,e[1]=l,e[2]=i):(l=e[1],i=e[2]);let n;e[3]!==l?(n=I("relative flex w-full min-w-0 flex-col px-2 py-2 md:py-0",l),e[3]=l,e[4]=n):n=e[4];let o;return e[5]!==i||e[6]!==n?(o=s.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:n,...i}),e[5]=i,e[6]=n,e[7]=o):o=e[7],o}function Ee(t){const e=$.c(8);let l,i;e[0]!==t?({className:l,...i}=t,e[0]=t,e[1]=l,e[2]=i):(l=e[1],i=e[2]);let n;e[3]!==l?(n=I("w-full text-sm",l),e[3]=l,e[4]=n):n=e[4];let o;return e[5]!==i||e[6]!==n?(o=s.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:n,...i}),e[5]=i,e[6]=n,e[7]=o):o=e[7],o}function ve(t){const e=$.c(8);let l,i;e[0]!==t?({className:l,...i}=t,e[0]=t,e[1]=l,e[2]=i):(l=e[1],i=e[2]);let n;e[3]!==l?(n=I("flex w-full min-w-0 flex-col gap-1",l),e[3]=l,e[4]=n):n=e[4];let o;return e[5]!==i||e[6]!==n?(o=s.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:n,...i}),e[5]=i,e[6]=n,e[7]=o):o=e[7],o}function pe(t){const e=$.c(8);let l,i;e[0]!==t?({className:l,...i}=t,e[0]=t,e[1]=l,e[2]=i):(l=e[1],i=e[2]);let n;e[3]!==l?(n=I("group/menu-item relative",l),e[3]=l,e[4]=n):n=e[4];let o;return e[5]!==i||e[6]!==n?(o=s.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:n,...i}),e[5]=i,e[6]=n,e[7]=o):o=e[7],o}const ol=Mt("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md py-0 pr-0.5 pl-1.5 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] focus-visible:ring-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 [&>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 shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2!",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function Te(t){const e=$.c(28);let l,i,n,o,a,c,r;e[0]!==t?({asChild:n,isActive:o,variant:a,size:c,tooltip:r,className:l,...i}=t,e[0]=t,e[1]=l,e[2]=i,e[3]=n,e[4]=o,e[5]=a,e[6]=c,e[7]=r):(l=e[1],i=e[2],n=e[3],o=e[4],a=e[5],c=e[6],r=e[7]);const d=n===void 0?!1:n,f=o===void 0?!1:o,u=a===void 0?"default":a,m=c===void 0?"default":c,p=d?Ot:"button",{isMobile:h,state:g}=Be();let j;e[8]!==l||e[9]!==m||e[10]!==u?(j=I(ol({variant:u,size:m}),l),e[8]=l,e[9]=m,e[10]=u,e[11]=j):j=e[11];let y;e[12]!==p||e[13]!==f||e[14]!==i||e[15]!==m||e[16]!==j?(y=s.jsx(p,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":m,"data-active":f,className:j,...i}),e[12]=p,e[13]=f,e[14]=i,e[15]=m,e[16]=j,e[17]=y):y=e[17];const x=y;if(!r)return x;if(typeof r=="string"){let N;e[18]!==r?(N={children:r},e[18]=r,e[19]=N):N=e[19],r=N}let b;e[20]!==x?(b=s.jsx(ds,{asChild:!0,children:x}),e[20]=x,e[21]=b):b=e[21];const S=g!=="collapsed"||h;let k;e[22]!==S||e[23]!==r?(k=s.jsx(cs,{side:"right",align:"center",hidden:S,...r}),e[22]=S,e[23]=r,e[24]=k):k=e[24];let v;return e[25]!==b||e[26]!==k?(v=s.jsxs(ms,{children:[b,k]}),e[25]=b,e[26]=k,e[27]=v):v=e[27],v}function al(t){const e=$.c(11),{label:l,children:i,defaultExpanded:n}=t,o=n===void 0?!0:n,[a,c]=A.useState(o),{state:r}=Be(),d=r==="collapsed";let f;e[0]!==a||e[1]!==d||e[2]!==l?(f=d?s.jsx("div",{className:"flex h-6 items-center",children:s.jsx("div",{className:"h-0.5 w-8 rounded-full bg-sidebar-foreground/15"})}):s.jsx(ve,{children:s.jsx(pe,{children:s.jsxs(Te,{className:"h-6 cursor-pointer select-none gap-1 [&>svg]:size-3",onClick:()=>c(!a),children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:l}),s.jsx(ft,{size:12,className:I("text-muted-foreground transition-transform duration-200",!a&&"-rotate-90")})]})})}),e[0]=a,e[1]=d,e[2]=l,e[3]=f):f=e[3];let u;e[4]!==i||e[5]!==a||e[6]!==d?(u=(d||a)&&s.jsx(Ee,{children:s.jsx(ve,{className:"gap-0.5",children:i})}),e[4]=i,e[5]=a,e[6]=d,e[7]=u):u=e[7];let m;return e[8]!==f||e[9]!==u?(m=s.jsxs(Ae,{className:"pt-0 pr-0 pb-2 pl-0 mt-2",children:[f,u]}),e[8]=f,e[9]=u,e[10]=m):m=e[10],m}function yt(t){const e=$.c(22),{item:l}=t,i=l.key,n=l.onClick,o=l.isActive,a=l.label,c=l.isExternal&&"group/external";let r;e[0]!==c?(r=I(c),e[0]=c,e[1]=r):r=e[1];let d;e[2]!==l.icon?(d=s.jsx("span",{className:"[&>svg]:size-4",children:l.icon}),e[2]=l.icon,e[3]=d):d=e[3];const f=l.isExternal&&"group-hover/external:underline underline-offset-2";let u;e[4]!==f?(u=I("truncate group-data-[collapsible=icon]:hidden",f),e[4]=f,e[5]=u):u=e[5];let m;e[6]!==l.label||e[7]!==u?(m=s.jsx("span",{className:u,children:l.label}),e[6]=l.label,e[7]=u,e[8]=m):m=e[8];let p;e[9]!==l.isExternal?(p=l.isExternal&&s.jsx($e,{size:12,className:"ml-auto mr-1 shrink-0 opacity-0 group-hover/external:opacity-60 transition-opacity group-data-[collapsible=icon]:hidden"}),e[9]=l.isExternal,e[10]=p):p=e[10];let h;e[11]!==l.isActive||e[12]!==l.label||e[13]!==l.onClick||e[14]!==m||e[15]!==p||e[16]!==r||e[17]!==d?(h=s.jsxs(Te,{onClick:n,isActive:o,tooltip:a,className:r,children:[d,m,p]}),e[11]=l.isActive,e[12]=l.label,e[13]=l.onClick,e[14]=m,e[15]=p,e[16]=r,e[17]=d,e[18]=h):h=e[18];let g;return e[19]!==l.key||e[20]!==h?(g=s.jsx(pe,{children:h},i),e[19]=l.key,e[20]=h,e[21]=g):g=e[21],g}function rl(t){const e=$.c(12),{section:l}=t;switch(l.type){case"divider":{let i;return e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(il,{className:"my-2"}),e[0]=i):i=e[0],i}case"spacer":{let i;return e[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("div",{className:"flex-1"}),e[1]=i):i=e[1],i}case"group":{const i=l.group.label,n=l.group.defaultExpanded;let o;e[2]!==l.group.items?(o=l.group.items.map(dl),e[2]=l.group.items,e[3]=o):o=e[3];let a;return e[4]!==l.group.defaultExpanded||e[5]!==l.group.label||e[6]!==o?(a=s.jsx(al,{label:i,defaultExpanded:n,children:o}),e[4]=l.group.defaultExpanded,e[5]=l.group.label,e[6]=o,e[7]=a):a=e[7],a}case"items":{let i;e[8]!==l.items?(i=l.items.map(cl),e[8]=l.items,e[9]=i):i=e[9];let n;return e[10]!==i?(n=s.jsx(Ae,{className:"pt-0 pr-0 pb-0 pl-0",children:s.jsx(Ee,{children:s.jsx(ve,{className:"gap-0.5",children:i})})}),e[10]=i,e[11]=n):n=e[11],n}}}function cl(t){return s.jsx(yt,{item:t},t.key)}function dl(t){return s.jsx(yt,{item:t},t.key)}function St(t){const e=$.c(14),{sections:l,header:i,footer:n,additionalContent:o,variant:a,collapsible:c,contentClassName:r}=t,d=a===void 0?"sidebar":a,f=c===void 0?"icon":c;let u;e[0]!==r?(u=I("flex flex-col flex-1 overflow-x-hidden mt-1 px-3.5 pb-2 group-data-[collapsible=icon]:px-2",r),e[0]=r,e[1]=u):u=e[1];let m;e[2]!==l?(m=l.map(ml),e[2]=l,e[3]=m):m=e[3];let p;e[4]!==o||e[5]!==u||e[6]!==m?(p=s.jsxs(nl,{className:u,children:[m,o]}),e[4]=o,e[5]=u,e[6]=m,e[7]=p):p=e[7];let h;return e[8]!==f||e[9]!==n||e[10]!==i||e[11]!==p||e[12]!==d?(h=s.jsxs(tl,{variant:d,collapsible:f,children:[i,p,n]}),e[8]=f,e[9]=n,e[10]=i,e[11]=p,e[12]=d,e[13]=h):h=e[13],h}function ml(t,e){return s.jsx(rl,{section:t},e)}St.Skeleton=function(){return s.jsx("div",{className:"flex flex-col gap-0.5",children:Array.from({length:8}).map((e,l)=>s.jsx("div",{className:"w-full h-8",children:s.jsx(re,{className:"h-full bg-sidebar-accent rounded-md"})},l))})};function fl(){const t=$.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsxs("div",{className:"space-y-0.5 px-1 py-1",children:[s.jsx(re,{className:"h-8 w-full rounded-lg"}),s.jsx(re,{className:"h-8 w-full rounded-lg"})]}),t[0]=e):e=t[0],e}function ul(t){const e=$.c(12),{organizationId:l,currentProjectSlug:i,onSelect:n}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={suspense:!0},e[0]=o):o=e[0];const{data:a}=mt(l,o);let c,r;if(e[1]!==i||e[2]!==n||e[3]!==a){r=Symbol.for("react.early_return_sentinel");e:{const f=a?.filter(pl)??[];if(f.length===0){let m;e[6]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx("div",{className:"px-2 py-3 text-center text-xs text-muted-foreground",children:"No projects yet"}),e[6]=m):m=e[6],r=m;break e}let u;e[7]!==i||e[8]!==n?(u=m=>{const p=i===m.slug,h=m.ui?.themeColor??"#3B82F6";return s.jsxs(ae,{className:I("gap-2.5",p&&"bg-accent"),onClick:()=>n(m.slug),children:[s.jsx("div",{className:"size-6 rounded-md shrink-0 flex items-center justify-center overflow-hidden border border-border/50",style:{backgroundColor:h},children:m.ui?.icon?s.jsx("img",{src:m.ui.icon,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:"text-xs font-semibold text-white",children:m.name.charAt(0).toUpperCase()})}),s.jsx("span",{className:"flex-1 truncate",children:m.name}),p&&s.jsx(Pe,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},m.id)},e[7]=i,e[8]=n,e[9]=u):u=e[9],c=f.map(u)}e[1]=i,e[2]=n,e[3]=a,e[4]=c,e[5]=r}else c=e[4],r=e[5];if(r!==Symbol.for("react.early_return_sentinel"))return r;let d;return e[10]!==c?(d=s.jsx(s.Fragment,{children:c}),e[10]=c,e[11]=d):d=e[11],d}function pl(t){return t.slug!==q}function xl(t){let e=0;for(let i=0;i<t.length;i++)e=t.charCodeAt(i)+((e<<5)-e);const l=Math.abs(e)%360;return{backgroundColor:`hsl(${l} 55% 70%)`,color:`hsl(${l} 55% 20%)`}}function qe(t){const e=$.c(96),{isCollapsed:l,onCreateProject:i}=t,n=l===void 0?!1:l;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={strict:!1},e[0]=o):o=e[0];const{org:a,project:c}=lt(o),{data:r}=Se.useListOrganizations(),d=Ze(),f=r?.find(V=>V.slug===a),[u,m]=A.useState(!1),p=c===q,{data:h}=dt(f?.id??"",p?"":c??"");let g;e[1]!==a?(g=(V,Re)=>V.slug===a?-1:Re.slug===a?1:V.name.localeCompare(Re.name),e[1]=a,e[2]=g):g=e[2];const j=[...r??[]].sort(g);let y;e[3]!==d||e[4]!==a?(y=()=>{a&&d({to:"/$org/$project",params:{org:a,project:q}})},e[3]=d,e[4]=a,e[5]=y):y=e[5];const x=y;let b;e[6]!==d||e[7]!==a?(b=V=>{a&&d({to:"/$org/$project",params:{org:a,project:V}})},e[6]=d,e[7]=a,e[8]=b):b=e[8];const S=b;let k;e[9]!==d?(k=V=>{d({to:"/$org/$project",params:{org:V,project:q}})},e[9]=d,e[10]=k):k=e[10];const v=k;let N;e[11]!==i?(N=i?()=>i():void 0,e[11]=i,e[12]=N):N=e[12];const z=N;let C;e[13]!==d||e[14]!==a||e[15]!==c?(C=()=>{if(!a||!c)return;const V=c===q;d({to:"/$org/$project",params:{org:a,project:c},search:Re=>({...Re,settings:V?"org.general":`project:${c}:general`})})},e[13]=d,e[14]=a,e[15]=c,e[16]=C):C=e[16];const _=C,P=pt,R=n?"w-auto pr-1.5":"w-full";let E;e[17]!==R?(E=I("flex items-center gap-3 rounded-md p-1.5 pr-2 text-left hover:bg-sidebar-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring min-h-[2.75rem]",R),e[17]=R,e[18]=E):E=e[18];const B=p?s.jsx("div",{className:I("shrink-0 rounded-md flex items-center justify-center border border-border/50 overflow-hidden transition-[width,height] duration-300 ease-[var(--ease-out-quart)]",n?"size-6":"size-8"),style:f?.logo?void 0:xl(f?.name??""),children:f?.logo?s.jsx("img",{src:f.logo,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:I("font-semibold leading-none",n?"text-[9px]":"text-xs"),children:(f?.name??"?").slice(0,2).toUpperCase()})}):s.jsx("div",{className:I("shrink-0 rounded-md flex items-center justify-center border border-border/50 overflow-hidden transition-[width,height] duration-300 ease-[var(--ease-out-quart)]",n?"size-6":"size-8"),style:{backgroundColor:h?.ui?.themeColor??"#60a5fa"},children:h?.ui?.icon?s.jsx("img",{src:h.ui.icon,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:I("font-semibold text-white",n?"text-xs":"text-lg"),children:(h?.name??c??"?").charAt(0).toUpperCase()})});let T;e[19]!==f?.name||e[20]!==h?.name||e[21]!==n||e[22]!==p||e[23]!==c?(T=!n&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex-1 min-w-0 flex flex-col justify-center",children:[s.jsx("span",{className:"block text-[11px] text-sidebar-foreground/50 leading-tight truncate",children:f?.name??"Select org"}),s.jsx("span",{className:"block text-sm font-semibold text-sidebar-foreground truncate leading-tight",children:p?"Studio":h?.name??c??""})]}),s.jsx(ss,{size:16,className:"shrink-0 text-sidebar-foreground/40"})]}),e[19]=f?.name,e[20]=h?.name,e[21]=n,e[22]=p,e[23]=c,e[24]=T):T=e[24];let O;e[25]!==E||e[26]!==B||e[27]!==T?(O=s.jsx(xt,{asChild:!0,children:s.jsxs("button",{type:"button",className:E,children:[B,T]})}),e[25]=E,e[26]=B,e[27]=T,e[28]=O):O=e[28];const M=ut,F="start",D="bottom",L="w-64 flex flex-col gap-0.5",ee=hl,te=p&&"bg-accent";let Q;e[29]!==te?(Q=I("gap-2.5",te),e[29]=te,e[30]=Q):Q=e[30];const ce=f?.logo??"",de=f?.name??"";let Z;e[31]!==ce||e[32]!==de?(Z=s.jsx(Ie,{url:ce,fallback:de,size:"sm",className:"size-6 rounded-md shrink-0",objectFit:"cover"}),e[31]=ce,e[32]=de,e[33]=Z):Z=e[33];const Y=f?.name;let W;e[34]!==Y?(W=s.jsxs("span",{className:"flex-1 truncate",children:["Studio · ",Y]}),e[34]=Y,e[35]=W):W=e[35];let se;e[36]!==p?(se=p&&s.jsx(Pe,{size:14,className:"ml-auto text-muted-foreground shrink-0"}),e[36]=p,e[37]=se):se=e[37];let le;e[38]!==x||e[39]!==Q||e[40]!==Z||e[41]!==W||e[42]!==se?(le=s.jsxs(ae,{className:Q,onClick:x,children:[Z,W,se]}),e[38]=x,e[39]=Q,e[40]=Z,e[41]=W,e[42]=se,e[43]=le):le=e[43];let X;e[44]===Symbol.for("react.memo_cache_sentinel")?(X=s.jsx("p",{className:"px-2 pt-2 pb-0.5 text-[11px] font-medium text-muted-foreground/50 uppercase tracking-wider",children:"Projects"}),e[44]=X):X=e[44];let G;e[45]!==f||e[46]!==S||e[47]!==a||e[48]!==c?(G=f&&s.jsx(A.Suspense,{fallback:s.jsx(fl,{}),children:s.jsx(ul,{organizationId:f.id,currentProjectSlug:c,orgSlug:a??"",onSelect:S})}),e[45]=f,e[46]=S,e[47]=a,e[48]=c,e[49]=G):G=e[49];let K;e[50]!==z?(K=z&&s.jsxs(ae,{className:"gap-2.5",onClick:z,children:[s.jsx(Le,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Create project"})]}),e[50]=z,e[51]=K):K=e[51];let H;e[52]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(Ue,{}),e[52]=H):H=e[52];const ne=us;let J;e[53]===Symbol.for("react.memo_cache_sentinel")?(J=s.jsxs(ps,{className:"gap-2.5",children:[s.jsx(rt,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Switch organization"})]}),e[53]=J):J=e[53];const ie=fs,he="w-48 flex flex-col gap-0.5";let xe;e[54]!==v||e[55]!==a?(xe=V=>s.jsxs(ae,{className:I("gap-2.5",V.slug===a&&"bg-accent"),onClick:()=>v(V.slug),children:[s.jsx(Ie,{url:V.logo??"",fallback:V.name,size:"xs",className:"size-5 rounded-md shrink-0",objectFit:"cover"}),s.jsx("span",{className:"flex-1 truncate",children:V.name}),V.slug===a&&s.jsx(Pe,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},V.id),e[54]=v,e[55]=a,e[56]=xe):xe=e[56];const ge=j.map(xe);let w;e[57]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(Ue,{}),e[57]=w):w=e[57];let U;e[58]!==m?(U=()=>m(!0),e[58]=m,e[59]=U):U=e[59];let me,be;e[60]===Symbol.for("react.memo_cache_sentinel")?(me=s.jsx(Le,{size:14,className:"shrink-0 text-muted-foreground"}),be=s.jsx("span",{children:"Create organization"}),e[60]=me,e[61]=be):(me=e[60],be=e[61]);let Ne;e[62]!==U?(Ne=s.jsxs(ae,{className:"gap-2.5",onClick:U,children:[me,be]}),e[62]=U,e[63]=Ne):Ne=e[63];let fe;e[64]!==ie||e[65]!==ge||e[66]!==Ne?(fe=s.jsxs(ie,{className:he,children:[ge,w,Ne]}),e[64]=ie,e[65]=ge,e[66]=Ne,e[67]=fe):fe=e[67];let ue;e[68]!==ne||e[69]!==J||e[70]!==fe?(ue=s.jsxs(ne,{children:[J,fe]}),e[68]=ne,e[69]=J,e[70]=fe,e[71]=ue):ue=e[71];let Oe,Me;e[72]===Symbol.for("react.memo_cache_sentinel")?(Oe=s.jsx(He,{size:14,className:"shrink-0 text-muted-foreground"}),Me=s.jsx("span",{children:"Settings"}),e[72]=Oe,e[73]=Me):(Oe=e[72],Me=e[73]);let ke;e[74]!==_?(ke=s.jsxs(ae,{className:"gap-2.5",onClick:_,children:[Oe,Me]}),e[74]=_,e[75]=ke):ke=e[75];let _e;e[76]!==M||e[77]!==ee||e[78]!==le||e[79]!==X||e[80]!==G||e[81]!==K||e[82]!==H||e[83]!==ue||e[84]!==ke?(_e=s.jsxs(M,{align:F,side:D,className:L,onCloseAutoFocus:ee,children:[le,X,G,K,H,ue,ke]}),e[76]=M,e[77]=ee,e[78]=le,e[79]=X,e[80]=G,e[81]=K,e[82]=H,e[83]=ue,e[84]=ke,e[85]=_e):_e=e[85];let Ce;e[86]!==P||e[87]!==O||e[88]!==_e?(Ce=s.jsxs(P,{children:[O,_e]}),e[86]=P,e[87]=O,e[88]=_e,e[89]=Ce):Ce=e[89];let we;e[90]!==u||e[91]!==m?(we=s.jsx(xs,{open:u,onOpenChange:m}),e[90]=u,e[91]=m,e[92]=we):we=e[92];let De;return e[93]!==Ce||e[94]!==we?(De=s.jsxs(s.Fragment,{children:[Ce,we]}),e[93]=Ce,e[94]=we,e[95]=De):De=e[95],De}function hl(t){return t.preventDefault()}qe.Skeleton=function(){return s.jsxs("div",{className:"flex items-center gap-1.5 h-7 px-1.5 w-full",children:[s.jsx(re,{className:"size-5 rounded-[5px] shrink-0 bg-sidebar-accent"}),s.jsx(re,{className:"h-3.5 flex-1 bg-sidebar-accent"})]})};function Ye(t){const e=$.c(4),{onCreateProject:l}=t,{state:i,toggleSidebar:n}=Be(),o=i==="collapsed";let a;return e[0]!==o||e[1]!==l||e[2]!==n?(a=s.jsx(Nt,{className:"px-3 group-data-[collapsible=icon]:px-2 animate-in fade-in-0 duration-200",children:s.jsx(ve,{children:s.jsx(pe,{children:o?s.jsxs("div",{className:"flex flex-col w-full gap-0.5",children:[s.jsx(qe,{isCollapsed:!0,onCreateProject:l}),s.jsx(Te,{onClick:n,tooltip:"Expand sidebar",children:s.jsx(Ve,{})})]}):s.jsxs("div",{className:"flex items-center justify-between w-full gap-1",children:[s.jsx("div",{className:"min-w-0 flex-1",children:s.jsx(qe,{isCollapsed:!1,onCreateProject:l})}),s.jsx(Te,{onClick:n,tooltip:"Collapse sidebar",className:"size-7 shrink-0",children:s.jsx(Ve,{})})]})})})}),e[0]=o,e[1]=l,e[2]=n,e[3]=a):a=e[3],a}Ye.Skeleton=function(){return s.jsx(Nt,{className:"px-3",children:s.jsx(ve,{children:s.jsx(pe,{children:s.jsxs("div",{className:"flex items-center justify-between w-full",children:[s.jsxs("div",{className:"flex items-center gap-3 min-w-0 flex-1 p-1.5",children:[s.jsx(re,{className:"size-8 rounded-md shrink-0 bg-sidebar-accent"}),s.jsx(re,{className:"h-3.5 w-16 bg-sidebar-accent"})]}),s.jsx("div",{className:"flex items-center gap-0.5",children:s.jsx(re,{className:"size-7 rounded-lg bg-sidebar-accent"})})]})})})})};function gl(t){const e=$.c(50),{user:l,userImage:i}=t,{open:n}=ct(),[o,a]=A.useState(!1);let c;e[0]!==l.email||e[1]!==l.id||e[2]!==l.name?(c=()=>{const ee=`ID: ${l.id}
|
|
1
|
+
import{r as A,c as $,j as s,E as Qe,u as ze,z as I,e as Ze,as as Je,L as Fe,c7 as _t,bd as Ct,O as q,ar as wt,ab as $t,ad as zt,ae as It,ac as Pt,af as At,ah as Et,ag as Tt,H as Ot,M as Mt,g as lt,f as Se,x as ye,c8 as Dt,bJ as Rt,w as Lt,B as We,A as Ht,S as it,k as Ut,m as Bt,N as Ft,v as Wt,K as Gt,au as nt,P as Kt}from"./index-Cag7rf5f.js";import{C as oe}from"./index-DFtp5nAe.js";import{I as Vt}from"./integration-icon-BKhIZQox.js";import{u as ot,P as je}from"./index-DktUqq7R.js";import{d as qt,u as Yt}from"./constants-5XohhD_f.js";import{n as Ge}from"./CheckDone01-DcQm_x6s.js";import{n as Qt}from"./ChevronLeft-Bf6LLh_f.js";import{i as Zt}from"./Loading01-Bze1WZW-.js";import{s as Le}from"./Plus-LN4mY-9i.js";import{t as Xe}from"./Users03-DpxIJiCb.js";import{i as Ke}from"./X-gf_3nNHG.js";import{E as Jt,C as Xt}from"./editable-task-title-Dt_WaZpR.js";import{T as es}from"./tasks-panel-dDHzZhim.js";import{a as ts,i as ss}from"./context-CTtcoCIi.js";import{C as at}from"./create-project-dialog-DU8b5qIM.js";import{t as rt,u as ct,i as ls}from"./use-settings-modal-DKWQxpc-.js";import{n as is}from"./Container-DMtRMvOi.js";import{e as ns}from"./Dataflow03-BhLXgKlQ.js";import{a as os}from"./Home02-C8u5Jhw0.js";import{i as Ve}from"./LayoutLeft-CJYXpDCf.js";import{t as He}from"./Settings01-CaZwmsCJ.js";import{u as dt,a as mt}from"./use-project-BLkau85f.js";import{u as as}from"./use-mobile-DAXjM9XF.js";import{c as rs,b as cs,a as ds,T as ms}from"./tooltip-s11dEtpO.js";import{S as re}from"./skeleton-vPkfHL7x.js";import{n as $e}from"./LinkExternal01-CGtY5qZg.js";import{t as ft}from"./ChevronDown-92pMp2oX.js";import{A as Ie}from"./avatar-B31kskAu.js";import{c as ae,k as fs,h as us,b as ut,D as pt,a as xt,e as Ue,j as ps}from"./dropdown-menu-CFEWQa_K.js";import{i as Pe}from"./Check-CxalVwyD.js";import{C as xs}from"./create-organization-dialog-BTGz9lFR.js";import{a as hs}from"./Copy01-DEpVJelC.js";import{i as gs}from"./File06-5rM4N04P.js";import{i as bs}from"./Globe01-Cna-7yb_.js";import{i as js}from"./Shield01-DngARJc0.js";import{P as vs,b as Ns,a as ys}from"./popover-BGTZ4Jg2.js";import{n as st}from"./Inbox01-CMG4E9ai.js";import{s as Ss}from"./XClose-C-K_Vaja.js";import{b as ks}from"./use-connection-Dx2EaFOc.js";import{b as _s}from"./use-mcp-tools-Bn0JXnu7.js";import{c as Cs,A as ws}from"./use-binding-Dc1kKEIB.js";import{C as $s,b as zs,c as Is}from"./collapsible-D_ju1zYz.js";import{i as Ps}from"./ChevronRight-tF0xM-4Z.js";import{u as et,L as tt}from"./localstorage-keys-Cc-8xT2Q.js";import{a as As,R as ht,b as Es}from"./resizable-Dx94LkuC.js";import"./spinner-BxzkOyD6.js";import"./use-mcp-prompts-CAEcR_lH.js";import"./useQuery-Clb9lPv3.js";import"./dialog-DxH8GO4d.js";import"./form--EiAjir4.js";import"./label-C6bT3eG4.js";import"./input-BU10AGC6.js";import"./usage-B8eRkRZY.js";import"./ArrowUp-WlBoHBUF.js";import"./Edit01-DTFNmaeE.js";import"./Lock01-B_0cjFTJ.js";import"./XCircle-DWwJhgPa.js";import"./AlertCircle-wzCWgJKp.js";import"./select-DDvIxYC9.js";import"./index-BhvDbEFS.js";import"./use-preferences-D5ktNb6g.js";import"./ArrowLeft-CRiE2QCS.js";import"./use-copy-BFB-OGf3.js";import"./tabs-DK6oUINY.js";import"./badge-B3jUOBeA.js";import"./Code01-CSlTufbJ.js";import"./use-virtual-mcp-gWnd6DnQ.js";import"./use-collections-BG9rywMN.js";import"./useMutation-CCDwZCqX.js";import"./SearchMd-F_aXmF-3.js";import"./use-create-virtual-mcp-Boh0ylO8.js";import"./decopilot-events-Dwy6dXgg.js";import"./marked.esm-BaswSlok.js";import"./markdown-COW3UK8R.js";import"./mcp-app-renderer-C0sSQYUl.js";import"./types-DRyYjHsT.js";import"./Eye-DZR5Sgqw.js";import"./Globe02-BLgrzxIE.js";import"./LayersTwo01-BvTnUwGe.js";import"./collection-search-Dta_7bLf.js";import"./generate-id-Dyweu44Y.js";import"./Clock-B7L5NA_R.js";import"./Trash01-Bwp87fCr.js";import"./CheckCircle-BqWi0uzz.js";import"./user-Dc2KBRdg.js";import"./format-time-CMKyl-GC.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./use-llm-BSkNsxRE.js";import"./checkbox-DNOEZe6O.js";import"./AlignLeft-Cm7D7Jz2.js";import"./Image01-CLI9NfSq.js";import"./RefreshCcw01-C0C5ptaM.js";import"./useSuspenseInfiniteQuery-a8ay6F8p.js";import"./infiniteQueryObserver-B3dSQxWm.js";import"./textarea-BPWoaNFn.js";import"./alert-dialog-Bin5Tfuj.js";import"./binder-CHjF8z7t.js";const gt=({size:t=24,color:e="currentColor",...l})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...l},A.createElement("path",{d:"M9 7H4.6c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C3 7.76 3 8.04 3 8.6v10.8c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C3.76 21 4.04 21 4.6 21H9m0 0h6m-6 0V4.6c0-.56 0-.84.109-1.054a1 1 0 0 1 .437-.437C9.76 3 10.04 3 10.6 3h2.8c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C15 3.76 15 4.04 15 4.6V21m0-10h4.4c.56 0 .84 0 1.054.109a1 1 0 0 1 .437.437C21 11.76 21 12.04 21 12.6v6.8c0 .56 0 .84-.109 1.054a1 1 0 0 1-.437.437C20.24 21 19.96 21 19.4 21H15"}));gt.displayName="BarChart10";const bt=({size:t=24,color:e="currentColor",...l})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...l},A.createElement("path",{d:"M8 14s1.5 2 4 2 4-2 4-2m-1-5h.01M9 9h.01M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-6.5-3a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0Zm-6 0a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0Z"}));bt.displayName="FaceSmile";const jt=({size:t=24,color:e="currentColor",...l})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...l},A.createElement("path",{d:"m16 17 5-5m0 0-5-5m5 5H9m0-9H7.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C3 5.28 3 6.12 3 7.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 21 6.12 21 7.8 21H9"}));jt.displayName="LogOut01";function Ts(){const t=$.c(72),{org:e}=ze(),[,l]=ot(),{selectedVirtualMcp:i,modelsConnections:n,isChatEmpty:o,activeTaskId:a,createTask:c,switchToTask:r,tasks:d}=ts();let f;if(t[0]!==a||t[1]!==d){let H;t[3]!==a?(H=ne=>ne.id===a,t[3]=a,t[4]=H):H=t[4],f=d.find(H),t[0]=a,t[1]=d,t[2]=f}else f=t[2];const u=f,[m,p]=A.useState("chat"),[h,g]=A.useTransition();let j;t[5]!==e.id?(j=qt(e.id),t[5]=e.id,t[6]=j):j=t[6];const x=i??j;let b;t[7]!==c?(b=()=>{g(()=>{c()})},t[7]=c,t[8]=b):b=t[8];const S=b;if(n.length===0){let H;t[9]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(je.Header.Left,{className:"gap-2"}),t[9]=H):H=t[9];let ne;t[10]!==l?(ne=()=>l(!1),t[10]=l,t[11]=ne):ne=t[11];let X;t[12]===Symbol.for("react.memo_cache_sentinel")?(X=s.jsx(Ke,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[12]=X):X=t[12];let ie;t[13]!==ne?(ie=s.jsxs(je.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[H,s.jsx(je.Header.Right,{className:"gap-1",children:s.jsx("button",{type:"button",onClick:ne,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:X})})]}),t[13]=ne,t[14]=ie):ie=t[14];let he;t[15]!==e?(he=s.jsx(oe.Main,{className:"flex flex-col items-center",children:s.jsx(oe.EmptyState,{children:s.jsx(oe.NoLlmBindingEmptyState,{title:"No model provider connected",description:"Connect to a model provider to unlock AI-powered features.",org:e})})}),t[15]=e,t[16]=he):he=t[16];let xe;return t[17]!==ie||t[18]!==he?(xe=s.jsxs(oe,{className:"animate-in fade-in-0 duration-200",children:[ie,he]}),t[17]=ie,t[18]=he,t[19]=xe):xe=t[19],xe}const k=m!=="chat"||h?"opacity-0 pointer-events-none":"opacity-100";let v;t[20]!==k?(v=I("absolute inset-0 flex flex-col transition-opacity duration-100 ease-out",k),t[20]=k,t[21]=v):v=t[21];let N;t[22]!==u||t[23]!==o?(N=!o&&u?.title&&s.jsx(Jt,{taskId:u.id,text:u.title,className:"text-sm font-medium text-foreground"}),t[22]=u,t[23]=o,t[24]=N):N=t[24];let z;t[25]!==N?(z=s.jsx(je.Header.Left,{className:"gap-2",children:N}),t[25]=N,t[26]=z):z=t[26];let C;t[27]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(Le,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[27]=C):C=t[27];let _;t[28]!==S||t[29]!==h?(_=s.jsx("button",{type:"button",onClick:S,disabled:h,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent group cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed",title:"New chat",children:C}),t[28]=S,t[29]=h,t[30]=_):_=t[30];let P;t[31]===Symbol.for("react.memo_cache_sentinel")?(P=()=>p("tasks"),t[31]=P):P=t[31];let R;t[32]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx("button",{type:"button",onClick:P,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent group cursor-pointer",title:"Tasks",children:s.jsx(Ge,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"})}),t[32]=R):R=t[32];let E;t[33]!==l?(E=()=>l(!1),t[33]=l,t[34]=E):E=t[34];let B;t[35]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx(Ke,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"}),t[35]=B):B=t[35];let T;t[36]!==E?(T=s.jsx("button",{type:"button",onClick:E,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Close chat",children:B}),t[36]=E,t[37]=T):T=t[37];let O;t[38]!==T||t[39]!==_?(O=s.jsxs(je.Header.Right,{className:"gap-1",children:[_,R,T]}),t[38]=T,t[39]=_,t[40]=O):O=t[40];let M;t[41]!==O||t[42]!==z?(M=s.jsxs(je.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[z,O]}),t[41]=O,t[42]=z,t[43]=M):M=t[43];let F;t[44]!==x||t[45]!==o?(F=s.jsx(oe.Main,{children:o?s.jsx(oe.EmptyState,{children:s.jsxs("div",{className:"flex flex-col items-center gap-6 w-full px-4",children:[s.jsxs("div",{className:"flex flex-col items-center justify-center gap-4 p-0 text-center",children:[s.jsx(Vt,{icon:x.icon,name:x.title,size:"lg",fallbackIcon:s.jsx(Xe,{size:32}),className:"size-[60px]! rounded-[18px]!"}),s.jsx("h3",{className:"text-xl font-medium text-foreground",children:x.title}),s.jsx("div",{className:"text-muted-foreground text-center text-sm max-w-md",children:x.description??"Ask anything about configuring model providers or using MCP Mesh."})]}),s.jsx(oe.IceBreakers,{})]})}):s.jsx(oe.Messages,{})}),t[44]=x,t[45]=o,t[46]=F):F=t[46];let D;t[47]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx(oe.Footer,{children:s.jsx(oe.Input,{onOpenContextPanel:()=>p("context")})}),t[47]=D):D=t[47];let L;t[48]!==M||t[49]!==F||t[50]!==v?(L=s.jsxs("div",{className:v,children:[M,F,D]}),t[48]=M,t[49]=F,t[50]=v,t[51]=L):L=t[51];const ee=m==="tasks"?"opacity-100":"opacity-0 pointer-events-none";let te;t[52]!==ee?(te=I("absolute inset-0 flex flex-col transition-opacity duration-100 ease-out",ee),t[52]=ee,t[53]=te):te=t[53];let Q;t[54]===Symbol.for("react.memo_cache_sentinel")?(Q=s.jsx(je.Header.Left,{className:"gap-2",children:s.jsx("span",{className:"text-sm font-normal text-foreground",children:"Tasks"})}),t[54]=Q):Q=t[54];let ce;t[55]===Symbol.for("react.memo_cache_sentinel")?(ce=()=>p("chat"),t[55]=ce):ce=t[55];let de;t[56]===Symbol.for("react.memo_cache_sentinel")?(de=s.jsxs(je.Header,{className:"flex-none",hideSidebarTrigger:!0,children:[Q,s.jsx(je.Header.Right,{className:"gap-1",children:s.jsx("button",{type:"button",onClick:ce,className:"flex size-6 items-center justify-center rounded-full p-1 hover:bg-transparent transition-colors group cursor-pointer",title:"Back to chat",children:s.jsx(Qt,{size:16,className:"text-muted-foreground group-hover:text-foreground transition-colors"})})})]}),t[56]=de):de=t[56];let Z;t[57]===Symbol.for("react.memo_cache_sentinel")?(Z=s.jsx("div",{className:"flex-1 flex items-center justify-center",children:s.jsx(Zt,{size:16,className:"animate-spin text-muted-foreground"})}),t[57]=Z):Z=t[57];let Y;t[58]!==r?(Y=s.jsx(Qe,{fallback:Os,children:s.jsx(A.Suspense,{fallback:Z,children:s.jsx(es,{onTaskSelect:async H=>{await r(H),p("chat")}})})}),t[58]=r,t[59]=Y):Y=t[59];let W;t[60]!==te||t[61]!==Y?(W=s.jsxs("div",{className:te,children:[de,Y]}),t[60]=te,t[61]=Y,t[62]=W):W=t[62];const se=m==="context"?"opacity-100":"opacity-0 pointer-events-none";let le;t[63]!==se?(le=I("absolute inset-0 flex flex-col transition-opacity duration-100 ease-out",se),t[63]=se,t[64]=le):le=t[64];let J;t[65]===Symbol.for("react.memo_cache_sentinel")?(J=s.jsx(Xt,{back:!0,onClose:()=>p("chat")}),t[65]=J):J=t[65];let G;t[66]!==le?(G=s.jsx("div",{className:le,children:J}),t[66]=le,t[67]=G):G=t[67];let K;return t[68]!==L||t[69]!==W||t[70]!==G?(K=s.jsxs(oe,{className:"relative overflow-hidden animate-in fade-in-0 duration-200",children:[L,W,G]}),t[68]=L,t[69]=W,t[70]=G,t[71]=K):K=t[71],K}function Os(){return s.jsx("div",{className:"flex-1 flex items-center justify-center",children:s.jsx("p",{className:"text-xs text-muted-foreground",children:"Unable to load tasks"})})}function Ms(){const t=$.c(2);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(oe.Skeleton,{}),t[0]=e):e=t[0];let l;return t[1]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(Qe,{fallback:e,children:s.jsx(A.Suspense,{fallback:s.jsx(oe.Skeleton,{}),children:s.jsx(Ts,{})})}),t[1]=l):l=t[1],l}function Ds(){const t=$.c(58),{locator:e,org:l}=ze(),i=Ze(),n=Je(),{org:o,project:a}=Fe.parse(e),c=Fe.isOrgAdminProject(e),{data:r}=dt(l.id,a);let d;t[0]!==r?.enabledPlugins?(d=r?.enabledPlugins??[],t[0]=r?.enabledPlugins,t[1]=d):d=t[1];const f=d,u=r?.ui?.pinnedViews??[];let m;t[2]!==f?(m=w=>f.includes(w.pluginId),t[2]=f,t[3]=m):m=t[3];const p=_t.filter(m),h=n.location.pathname,g=`/${o}/${a}`,j=h===g||h===`${g}/`;let y;t[4]!==g||t[5]!==h?(y=w=>h.startsWith(`${g}/${w}`),t[4]=g,t[5]=h,t[6]=y):y=t[6];const x=y;let b;t[7]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(os,{}),t[7]=b):b=t[7];const S={key:"home",label:"Home",icon:b,isActive:j,onClick:()=>{j?window.dispatchEvent(new CustomEvent("reset-home-view")):i({to:"/$org/$project",params:{org:o,project:a}})}};let k;t[8]===Symbol.for("react.memo_cache_sentinel")?(k=s.jsx(Ge,{}),t[8]=k):k=t[8];const v={key:"tasks",label:"Tasks",icon:k,isActive:x("tasks"),onClick:()=>i({to:"/$org/$project/tasks",params:{org:o,project:q}})};let N;t[9]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx(is,{}),t[9]=N):N=t[9];const z={key:"mcps",label:"Connections",icon:N,isActive:x("mcps"),onClick:()=>i({to:"/$org/$project/mcps",params:{org:o,project:q}})};let C;t[10]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(wt,{}),t[10]=C):C=t[10];const _={key:"projects",label:"Projects",icon:C,isActive:x("projects"),onClick:()=>i({to:"/$org/$project/projects",params:{org:o,project:q}})};let P;t[11]===Symbol.for("react.memo_cache_sentinel")?(P=s.jsx(rt,{}),t[11]=P):P=t[11];const R={key:"store",label:"Store",icon:P,isActive:x("store"),onClick:()=>i({to:"/$org/$project/store",params:{org:o,project:q}})};let E;t[12]===Symbol.for("react.memo_cache_sentinel")?(E=s.jsx(Xe,{}),t[12]=E):E=t[12];const B={key:"agents",label:"Agents",icon:E,isActive:x("agents"),onClick:()=>i({to:"/$org/$project/agents",params:{org:o,project:q}})};let T;t[13]===Symbol.for("react.memo_cache_sentinel")?(T=s.jsx(gt,{}),t[13]=T):T=t[13];const O={key:"monitoring",label:"Monitor",icon:T,isActive:x("monitoring"),onClick:()=>i({to:"/$org/$project/monitoring",params:{org:o,project:q}})};let M;t[14]===Symbol.for("react.memo_cache_sentinel")?(M=s.jsx(bt,{}),t[14]=M):M=t[14];const F={key:"members",label:"Members",icon:M,isActive:x("members"),onClick:()=>i({to:"/$org/$project/members",params:{org:o,project:q}})},D=p.map(w=>({key:w.pluginId,label:w.label,icon:w.icon,isActive:x(w.pluginId),onClick:()=>i({to:"/$org/$project/$pluginId",params:{org:o,project:a,pluginId:w.pluginId}})}));let L;t[15]!==f?(L=w=>f.includes(w.pluginId),t[15]=f,t[16]=L):L=t[16];const te=Ct.filter(L).map(w=>({type:"group",group:{id:`${w.pluginId}-${w.id}`,label:w.label,items:w.items.map((U,me)=>({key:`${w.pluginId}-${w.id}-${me}`,label:U.label,icon:U.icon,isActive:x(w.pluginId),onClick:()=>i({to:"/$org/$project/$pluginId",params:{org:o,project:a,pluginId:w.pluginId}})})),defaultExpanded:w.defaultExpanded??!0}})),Q=u.map(w=>({key:`app-${w.connectionId}-${w.toolName}`,label:w.label||w.toolName,icon:w.icon?s.jsx("img",{src:w.icon,alt:"",className:"size-4 rounded"}):s.jsx(Ve,{}),isActive:x(`apps/${w.connectionId}/${encodeURIComponent(w.toolName)}`),onClick:()=>i({to:"/$org/$project/apps/$connectionId/$toolName",params:{org:o,project:a,connectionId:w.connectionId,toolName:w.toolName}})}));let ce;t[17]!==Q?(ce=Q.length>0?{type:"group",group:{id:"apps",label:"Apps",items:Q,defaultExpanded:!0}}:null,t[17]=Q,t[18]=ce):ce=t[18];const de=ce;if(c){let w;t[19]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(He,{}),t[19]=w):w=t[19];let U;t[20]!==x?(U=x("settings"),t[20]=x,t[21]=U):U=t[21];let me;t[22]!==i||t[23]!==o?(me=()=>i({to:"/$org/$project/settings",params:{org:o,project:q}}),t[22]=i,t[23]=o,t[24]=me):me=t[24];let be;t[25]!==U||t[26]!==me?(be={key:"settings",label:"Settings",icon:w,isActive:U,onClick:me},t[25]=U,t[26]=me,t[27]=be):be=t[27];const fe=[{type:"items",items:[S,v,_]},{type:"group",group:{id:"build",label:"Build",items:[B,z,R],defaultExpanded:!0}},{type:"group",group:{id:"manage",label:"Manage",items:[O,F,be],defaultExpanded:!0}}];if(D.length>0){let ue;t[28]!==D?(ue={type:"items",items:D},t[28]=D,t[29]=ue):ue=t[29],fe.push(ue)}return te.length>0&&fe.push(...te),de&&fe.push(de),fe}let Z;t[30]===Symbol.for("react.memo_cache_sentinel")?(Z=s.jsx(Ge,{}),t[30]=Z):Z=t[30];let Y;t[31]!==x?(Y=x("tasks"),t[31]=x,t[32]=Y):Y=t[32];let W;t[33]!==i||t[34]!==o||t[35]!==a?(W=()=>i({to:"/$org/$project/tasks",params:{org:o,project:a}}),t[33]=i,t[34]=o,t[35]=a,t[36]=W):W=t[36];let se;t[37]!==Y||t[38]!==W?(se={key:"tasks",label:"Tasks",icon:Z,isActive:Y,onClick:W},t[37]=Y,t[38]=W,t[39]=se):se=t[39];const le=se;let J;t[40]===Symbol.for("react.memo_cache_sentinel")?(J=s.jsx(ns,{}),t[40]=J):J=t[40];let G;t[41]!==x?(G=x("workflows"),t[41]=x,t[42]=G):G=t[42];let K;t[43]!==i||t[44]!==o||t[45]!==a?(K=()=>i({to:"/$org/$project/workflows",params:{org:o,project:a}}),t[43]=i,t[44]=o,t[45]=a,t[46]=K):K=t[46];let H;t[47]!==G||t[48]!==K?(H={key:"workflows",label:"Workflows",icon:J,isActive:G,onClick:K},t[47]=G,t[48]=K,t[49]=H):H=t[49];const ne=H;let X;t[50]===Symbol.for("react.memo_cache_sentinel")?(X=s.jsx(He,{}),t[50]=X):X=t[50];let ie;t[51]!==i||t[52]!==o||t[53]!==a?(ie={key:"configure",label:"Configure",icon:X,isActive:!1,isExternal:!0,onClick:()=>i({to:"/$org/$project/projects/$slug/settings/general",params:{org:o,project:q,slug:a}})},t[51]=i,t[52]=o,t[53]=a,t[54]=ie):ie=t[54];const ge=[{type:"items",items:[S,le,ne,ie]}];if(D.length>0){let w;t[55]===Symbol.for("react.memo_cache_sentinel")?(w={type:"divider"},t[55]=w):w=t[55],ge.push(w);let U;t[56]!==D?(U={type:"items",items:D},t[56]=D,t[57]=U):U=t[57],ge.push(U)}return te.length>0&&ge.push(...te),de&&ge.push(de),ge}function Rs(t){const e=$.c(4);let l;e[0]!==t?({...l}=t,e[0]=t,e[1]=l):l=e[1];let i;return e[2]!==l?(i=s.jsx($t,{"data-slot":"sheet",...l}),e[2]=l,e[3]=i):i=e[3],i}function Ls(t){const e=$.c(4);let l;e[0]!==t?({...l}=t,e[0]=t,e[1]=l):l=e[1];let i;return e[2]!==l?(i=s.jsx(At,{"data-slot":"sheet-portal",...l}),e[2]=l,e[3]=i):i=e[3],i}function Hs(t){const e=$.c(8);let l,i;e[0]!==t?({className:l,...i}=t,e[0]=t,e[1]=l,e[2]=i):(l=e[1],i=e[2]);let n;e[3]!==l?(n=I("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",l),e[3]=l,e[4]=n):n=e[4];let o;return e[5]!==i||e[6]!==n?(o=s.jsx(Tt,{"data-slot":"sheet-overlay",className:n,...i}),e[5]=i,e[6]=n,e[7]=o):o=e[7],o}function Us(t){const e=$.c(17);let l,i,n,o;e[0]!==t?({className:i,children:l,side:o,...n}=t,e[0]=t,e[1]=l,e[2]=i,e[3]=n,e[4]=o):(l=e[1],i=e[2],n=e[3],o=e[4]);const a=o===void 0?"right":o;let c;e[5]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(Hs,{}),e[5]=c):c=e[5];const r=a==="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",d=a==="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",f=a==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",u=a==="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 m;e[6]!==i||e[7]!==r||e[8]!==d||e[9]!==f||e[10]!==u?(m=I("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-300 data-[state=open]:duration-500",r,d,f,u,i),e[6]=i,e[7]=r,e[8]=d,e[9]=f,e[10]=u,e[11]=m):m=e[11];let p;e[12]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsxs(Et,{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:[s.jsx(Ke,{className:"size-4"}),s.jsx("span",{className:"sr-only",children:"Close"})]}),e[12]=p):p=e[12];let h;return e[13]!==l||e[14]!==n||e[15]!==m?(h=s.jsxs(Ls,{children:[c,s.jsxs(Pt,{"data-slot":"sheet-content",className:m,...n,children:[l,p]})]}),e[13]=l,e[14]=n,e[15]=m,e[16]=h):h=e[16],h}function Bs(t){const e=$.c(8);let l,i;e[0]!==t?({className:l,...i}=t,e[0]=t,e[1]=l,e[2]=i):(l=e[1],i=e[2]);let n;e[3]!==l?(n=I("flex flex-col gap-1.5 p-4",l),e[3]=l,e[4]=n):n=e[4];let o;return e[5]!==i||e[6]!==n?(o=s.jsx("div",{"data-slot":"sheet-header",className:n,...i}),e[5]=i,e[6]=n,e[7]=o):o=e[7],o}function Fs(t){const e=$.c(8);let l,i;e[0]!==t?({className:l,...i}=t,e[0]=t,e[1]=l,e[2]=i):(l=e[1],i=e[2]);let n;e[3]!==l?(n=I("text-foreground font-semibold",l),e[3]=l,e[4]=n):n=e[4];let o;return e[5]!==i||e[6]!==n?(o=s.jsx(zt,{"data-slot":"sheet-title",className:n,...i}),e[5]=i,e[6]=n,e[7]=o):o=e[7],o}function Ws(t){const e=$.c(8);let l,i;e[0]!==t?({className:l,...i}=t,e[0]=t,e[1]=l,e[2]=i):(l=e[1],i=e[2]);let n;e[3]!==l?(n=I("text-muted-foreground text-sm",l),e[3]=l,e[4]=n):n=e[4];let o;return e[5]!==i||e[6]!==n?(o=s.jsx(It,{"data-slot":"sheet-description",className:n,...i}),e[5]=i,e[6]=n,e[7]=o):o=e[7],o}const Gs="sidebar_state",Ks=3600*24*7,Vs="16rem",qs="18rem",Ys="3rem",Qs="b",vt=A.createContext(null);function Be(){const t=A.useContext(vt);if(!t)throw new Error("useSidebar must be used within a SidebarProvider.");return t}function Zs(t){const e=$.c(21),{defaultOpen:l,open:i,onOpenChange:n,children:o}=t,a=l===void 0?!0:l,c=as(),[r,d]=A.useState(!1),[f,u]=A.useState(a),m=i??f;let p;e[0]!==m||e[1]!==n?(p=z=>{const C=typeof z=="function"?z(m):z;n?n(C):u(C),document.cookie=`${Gs}=${C}; path=/; max-age=${Ks}`},e[0]=m,e[1]=n,e[2]=p):p=e[2];const h=p;let g;e[3]!==c||e[4]!==h?(g=()=>c?d(Xs):h(Js),e[3]=c,e[4]=h,e[5]=g):g=e[5];const j=g;let y,x;e[6]!==j?(y=()=>{const z=C=>{if(C.key===Qs&&(C.metaKey||C.ctrlKey)){const _=C.target;if(_.tagName==="INPUT"||_.tagName==="TEXTAREA"||_.isContentEditable)return;C.preventDefault(),j()}};return globalThis.addEventListener("keydown",z),()=>globalThis.removeEventListener("keydown",z)},x=[j],e[6]=j,e[7]=y,e[8]=x):(y=e[7],x=e[8]),A.useEffect(y,x);const b=m?"expanded":"collapsed";let S;e[9]!==c||e[10]!==m||e[11]!==r||e[12]!==h||e[13]!==b||e[14]!==j?(S={state:b,open:m,setOpen:h,isMobile:c,openMobile:r,setOpenMobile:d,toggleSidebar:j},e[9]=c,e[10]=m,e[11]=r,e[12]=h,e[13]=b,e[14]=j,e[15]=S):S=e[15];const k=S;let v;e[16]!==o?(v=s.jsx(rs,{delayDuration:0,children:o}),e[16]=o,e[17]=v):v=e[17];let N;return e[18]!==k||e[19]!==v?(N=s.jsx(vt.Provider,{value:k,children:v}),e[18]=k,e[19]=v,e[20]=N):N=e[20],N}function Js(t){return!t}function Xs(t){return!t}function el(t){const e=$.c(14);let l,i,n,o;e[0]!==t?({className:i,style:o,children:l,...n}=t,e[0]=t,e[1]=l,e[2]=i,e[3]=n,e[4]=o):(l=e[1],i=e[2],n=e[3],o=e[4]);let a;e[5]!==o?(a={"--sidebar-width":Vs,"--sidebar-width-icon":Ys,...o},e[5]=o,e[6]=a):a=e[6];const c=a;let r;e[7]!==i?(r=I("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex h-full w-full",i),e[7]=i,e[8]=r):r=e[8];let d;return e[9]!==l||e[10]!==n||e[11]!==c||e[12]!==r?(d=s.jsx("div",{"data-slot":"sidebar-wrapper",style:c,className:r,...n,children:l}),e[9]=l,e[10]=n,e[11]=c,e[12]=r,e[13]=d):d=e[13],d}function tl(t){const e=$.c(42);let l,i,n,o,a,c;e[0]!==t?({side:o,variant:a,collapsible:c,className:i,children:l,...n}=t,e[0]=t,e[1]=l,e[2]=i,e[3]=n,e[4]=o,e[5]=a,e[6]=c):(l=e[1],i=e[2],n=e[3],o=e[4],a=e[5],c=e[6]);const r=o===void 0?"left":o,d=a===void 0?"sidebar":a,f=c===void 0?"offcanvas":c,{isMobile:u,state:m,openMobile:p,setOpenMobile:h}=Be();if(f==="none"){let v;e[7]!==i?(v=I("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",i),e[7]=i,e[8]=v):v=e[8];let N;return e[9]!==l||e[10]!==n||e[11]!==v?(N=s.jsx("div",{"data-slot":"sidebar",className:v,...n,children:l}),e[9]=l,e[10]=n,e[11]=v,e[12]=N):N=e[12],N}if(u){let v;e[13]===Symbol.for("react.memo_cache_sentinel")?(v={"--sidebar-width":qs},e[13]=v):v=e[13];let N;e[14]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsxs(Bs,{className:"sr-only",children:[s.jsx(Fs,{children:"Sidebar"}),s.jsx(Ws,{children:"Displays the mobile sidebar."})]}),e[14]=N):N=e[14];let z;e[15]!==l?(z=s.jsx("div",{className:"flex h-full w-full flex-col",children:l}),e[15]=l,e[16]=z):z=e[16];let C;e[17]!==r||e[18]!==z?(C=s.jsxs(Us,{"data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:v,side:r,children:[N,z]}),e[17]=r,e[18]=z,e[19]=C):C=e[19];let _;return e[20]!==p||e[21]!==n||e[22]!==h||e[23]!==C?(_=s.jsx(Rs,{open:p,onOpenChange:h,...n,children:C}),e[20]=p,e[21]=n,e[22]=h,e[23]=C,e[24]=_):_=e[24],_}const g=d==="floating"||d==="inset"?"data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"data-[collapsible=icon]:w-(--sidebar-width-icon)";let j;e[25]!==g?(j=I("group peer text-sidebar-foreground hidden md:flex flex-col shrink-0 overflow-hidden","w-(--sidebar-width) transition-[width] duration-300 ease-[var(--ease-out-quart)]","data-[collapsible=offcanvas]:w-0",g),e[25]=g,e[26]=j):j=e[26];const y=m==="collapsed"?f:"";let x;e[27]!==i?(x=I("flex flex-col h-full w-(--sidebar-width)",i),e[27]=i,e[28]=x):x=e[28];let b;e[29]!==l?(b=s.jsx("div",{"data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:l}),e[29]=l,e[30]=b):b=e[30];let S;e[31]!==n||e[32]!==x||e[33]!==b?(S=s.jsx("div",{"data-slot":"sidebar-container",className:x,...n,children:b}),e[31]=n,e[32]=x,e[33]=b,e[34]=S):S=e[34];let k;return e[35]!==r||e[36]!==m||e[37]!==j||e[38]!==y||e[39]!==S||e[40]!==d?(k=s.jsx("div",{className:j,"data-state":m,"data-collapsible":y,"data-variant":d,"data-side":r,"data-slot":"sidebar",children:S}),e[35]=r,e[36]=m,e[37]=j,e[38]=y,e[39]=S,e[40]=d,e[41]=k):k=e[41],k}function sl(t){const e=$.c(8);let l,i;e[0]!==t?({className:l,...i}=t,e[0]=t,e[1]=l,e[2]=i):(l=e[1],i=e[2]);let n;e[3]!==l?(n=I("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",l),e[3]=l,e[4]=n):n=e[4];let o;return e[5]!==i||e[6]!==n?(o=s.jsx("main",{"data-slot":"sidebar-inset",className:n,...i}),e[5]=i,e[6]=n,e[7]=o):o=e[7],o}function Nt(t){const e=$.c(8);let l,i;e[0]!==t?({className:l,...i}=t,e[0]=t,e[1]=l,e[2]=i):(l=e[1],i=e[2]);let n;e[3]!==l?(n=I("flex flex-col gap-2 p-2",l),e[3]=l,e[4]=n):n=e[4];let o;return e[5]!==i||e[6]!==n?(o=s.jsx("div",{"data-slot":"sidebar-header","data-sidebar":"header",className:n,...i}),e[5]=i,e[6]=n,e[7]=o):o=e[7],o}function ll(t){const e=$.c(8);let l,i;e[0]!==t?({className:l,...i}=t,e[0]=t,e[1]=l,e[2]=i):(l=e[1],i=e[2]);let n;e[3]!==l?(n=I("flex flex-col gap-2 p-2",l),e[3]=l,e[4]=n):n=e[4];let o;return e[5]!==i||e[6]!==n?(o=s.jsx("div",{"data-slot":"sidebar-footer","data-sidebar":"footer",className:n,...i}),e[5]=i,e[6]=n,e[7]=o):o=e[7],o}function il(t){const e=$.c(8);let l,i;e[0]!==t?({className:l,...i}=t,e[0]=t,e[1]=l,e[2]=i):(l=e[1],i=e[2]);let n;e[3]!==l?(n=I("h-4 m-0! w-full",l),e[3]=l,e[4]=n):n=e[4];let o;return e[5]!==i||e[6]!==n?(o=s.jsx("div",{"data-sidebar":"separator",className:n,...i}),e[5]=i,e[6]=n,e[7]=o):o=e[7],o}function nl(t){const e=$.c(8);let l,i;e[0]!==t?({className:l,...i}=t,e[0]=t,e[1]=l,e[2]=i):(l=e[1],i=e[2]);let n;e[3]!==l?(n=I("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",l),e[3]=l,e[4]=n):n=e[4];let o;return e[5]!==i||e[6]!==n?(o=s.jsx("div",{"data-slot":"sidebar-content","data-sidebar":"content",className:n,...i}),e[5]=i,e[6]=n,e[7]=o):o=e[7],o}function Ae(t){const e=$.c(8);let l,i;e[0]!==t?({className:l,...i}=t,e[0]=t,e[1]=l,e[2]=i):(l=e[1],i=e[2]);let n;e[3]!==l?(n=I("relative flex w-full min-w-0 flex-col px-2 py-2 md:py-0",l),e[3]=l,e[4]=n):n=e[4];let o;return e[5]!==i||e[6]!==n?(o=s.jsx("div",{"data-slot":"sidebar-group","data-sidebar":"group",className:n,...i}),e[5]=i,e[6]=n,e[7]=o):o=e[7],o}function Ee(t){const e=$.c(8);let l,i;e[0]!==t?({className:l,...i}=t,e[0]=t,e[1]=l,e[2]=i):(l=e[1],i=e[2]);let n;e[3]!==l?(n=I("w-full text-sm",l),e[3]=l,e[4]=n):n=e[4];let o;return e[5]!==i||e[6]!==n?(o=s.jsx("div",{"data-slot":"sidebar-group-content","data-sidebar":"group-content",className:n,...i}),e[5]=i,e[6]=n,e[7]=o):o=e[7],o}function ve(t){const e=$.c(8);let l,i;e[0]!==t?({className:l,...i}=t,e[0]=t,e[1]=l,e[2]=i):(l=e[1],i=e[2]);let n;e[3]!==l?(n=I("flex w-full min-w-0 flex-col gap-1",l),e[3]=l,e[4]=n):n=e[4];let o;return e[5]!==i||e[6]!==n?(o=s.jsx("ul",{"data-slot":"sidebar-menu","data-sidebar":"menu",className:n,...i}),e[5]=i,e[6]=n,e[7]=o):o=e[7],o}function pe(t){const e=$.c(8);let l,i;e[0]!==t?({className:l,...i}=t,e[0]=t,e[1]=l,e[2]=i):(l=e[1],i=e[2]);let n;e[3]!==l?(n=I("group/menu-item relative",l),e[3]=l,e[4]=n):n=e[4];let o;return e[5]!==i||e[6]!==n?(o=s.jsx("li",{"data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:n,...i}),e[5]=i,e[6]=n,e[7]=o):o=e[7],o}const ol=Mt("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md py-0 pr-0.5 pl-1.5 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] focus-visible:ring-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 [&>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 shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2!",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function Te(t){const e=$.c(28);let l,i,n,o,a,c,r;e[0]!==t?({asChild:n,isActive:o,variant:a,size:c,tooltip:r,className:l,...i}=t,e[0]=t,e[1]=l,e[2]=i,e[3]=n,e[4]=o,e[5]=a,e[6]=c,e[7]=r):(l=e[1],i=e[2],n=e[3],o=e[4],a=e[5],c=e[6],r=e[7]);const d=n===void 0?!1:n,f=o===void 0?!1:o,u=a===void 0?"default":a,m=c===void 0?"default":c,p=d?Ot:"button",{isMobile:h,state:g}=Be();let j;e[8]!==l||e[9]!==m||e[10]!==u?(j=I(ol({variant:u,size:m}),l),e[8]=l,e[9]=m,e[10]=u,e[11]=j):j=e[11];let y;e[12]!==p||e[13]!==f||e[14]!==i||e[15]!==m||e[16]!==j?(y=s.jsx(p,{"data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":m,"data-active":f,className:j,...i}),e[12]=p,e[13]=f,e[14]=i,e[15]=m,e[16]=j,e[17]=y):y=e[17];const x=y;if(!r)return x;if(typeof r=="string"){let N;e[18]!==r?(N={children:r},e[18]=r,e[19]=N):N=e[19],r=N}let b;e[20]!==x?(b=s.jsx(ds,{asChild:!0,children:x}),e[20]=x,e[21]=b):b=e[21];const S=g!=="collapsed"||h;let k;e[22]!==S||e[23]!==r?(k=s.jsx(cs,{side:"right",align:"center",hidden:S,...r}),e[22]=S,e[23]=r,e[24]=k):k=e[24];let v;return e[25]!==b||e[26]!==k?(v=s.jsxs(ms,{children:[b,k]}),e[25]=b,e[26]=k,e[27]=v):v=e[27],v}function al(t){const e=$.c(11),{label:l,children:i,defaultExpanded:n}=t,o=n===void 0?!0:n,[a,c]=A.useState(o),{state:r}=Be(),d=r==="collapsed";let f;e[0]!==a||e[1]!==d||e[2]!==l?(f=d?s.jsx("div",{className:"flex h-6 items-center",children:s.jsx("div",{className:"h-0.5 w-8 rounded-full bg-sidebar-foreground/15"})}):s.jsx(ve,{children:s.jsx(pe,{children:s.jsxs(Te,{className:"h-6 cursor-pointer select-none gap-1 [&>svg]:size-3",onClick:()=>c(!a),children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:l}),s.jsx(ft,{size:12,className:I("text-muted-foreground transition-transform duration-200",!a&&"-rotate-90")})]})})}),e[0]=a,e[1]=d,e[2]=l,e[3]=f):f=e[3];let u;e[4]!==i||e[5]!==a||e[6]!==d?(u=(d||a)&&s.jsx(Ee,{children:s.jsx(ve,{className:"gap-0.5",children:i})}),e[4]=i,e[5]=a,e[6]=d,e[7]=u):u=e[7];let m;return e[8]!==f||e[9]!==u?(m=s.jsxs(Ae,{className:"pt-0 pr-0 pb-2 pl-0 mt-2",children:[f,u]}),e[8]=f,e[9]=u,e[10]=m):m=e[10],m}function yt(t){const e=$.c(22),{item:l}=t,i=l.key,n=l.onClick,o=l.isActive,a=l.label,c=l.isExternal&&"group/external";let r;e[0]!==c?(r=I(c),e[0]=c,e[1]=r):r=e[1];let d;e[2]!==l.icon?(d=s.jsx("span",{className:"[&>svg]:size-4",children:l.icon}),e[2]=l.icon,e[3]=d):d=e[3];const f=l.isExternal&&"group-hover/external:underline underline-offset-2";let u;e[4]!==f?(u=I("truncate group-data-[collapsible=icon]:hidden",f),e[4]=f,e[5]=u):u=e[5];let m;e[6]!==l.label||e[7]!==u?(m=s.jsx("span",{className:u,children:l.label}),e[6]=l.label,e[7]=u,e[8]=m):m=e[8];let p;e[9]!==l.isExternal?(p=l.isExternal&&s.jsx($e,{size:12,className:"ml-auto mr-1 shrink-0 opacity-0 group-hover/external:opacity-60 transition-opacity group-data-[collapsible=icon]:hidden"}),e[9]=l.isExternal,e[10]=p):p=e[10];let h;e[11]!==l.isActive||e[12]!==l.label||e[13]!==l.onClick||e[14]!==m||e[15]!==p||e[16]!==r||e[17]!==d?(h=s.jsxs(Te,{onClick:n,isActive:o,tooltip:a,className:r,children:[d,m,p]}),e[11]=l.isActive,e[12]=l.label,e[13]=l.onClick,e[14]=m,e[15]=p,e[16]=r,e[17]=d,e[18]=h):h=e[18];let g;return e[19]!==l.key||e[20]!==h?(g=s.jsx(pe,{children:h},i),e[19]=l.key,e[20]=h,e[21]=g):g=e[21],g}function rl(t){const e=$.c(12),{section:l}=t;switch(l.type){case"divider":{let i;return e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(il,{className:"my-2"}),e[0]=i):i=e[0],i}case"spacer":{let i;return e[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("div",{className:"flex-1"}),e[1]=i):i=e[1],i}case"group":{const i=l.group.label,n=l.group.defaultExpanded;let o;e[2]!==l.group.items?(o=l.group.items.map(dl),e[2]=l.group.items,e[3]=o):o=e[3];let a;return e[4]!==l.group.defaultExpanded||e[5]!==l.group.label||e[6]!==o?(a=s.jsx(al,{label:i,defaultExpanded:n,children:o}),e[4]=l.group.defaultExpanded,e[5]=l.group.label,e[6]=o,e[7]=a):a=e[7],a}case"items":{let i;e[8]!==l.items?(i=l.items.map(cl),e[8]=l.items,e[9]=i):i=e[9];let n;return e[10]!==i?(n=s.jsx(Ae,{className:"pt-0 pr-0 pb-0 pl-0",children:s.jsx(Ee,{children:s.jsx(ve,{className:"gap-0.5",children:i})})}),e[10]=i,e[11]=n):n=e[11],n}}}function cl(t){return s.jsx(yt,{item:t},t.key)}function dl(t){return s.jsx(yt,{item:t},t.key)}function St(t){const e=$.c(14),{sections:l,header:i,footer:n,additionalContent:o,variant:a,collapsible:c,contentClassName:r}=t,d=a===void 0?"sidebar":a,f=c===void 0?"icon":c;let u;e[0]!==r?(u=I("flex flex-col flex-1 overflow-x-hidden mt-1 px-3.5 pb-2 group-data-[collapsible=icon]:px-2",r),e[0]=r,e[1]=u):u=e[1];let m;e[2]!==l?(m=l.map(ml),e[2]=l,e[3]=m):m=e[3];let p;e[4]!==o||e[5]!==u||e[6]!==m?(p=s.jsxs(nl,{className:u,children:[m,o]}),e[4]=o,e[5]=u,e[6]=m,e[7]=p):p=e[7];let h;return e[8]!==f||e[9]!==n||e[10]!==i||e[11]!==p||e[12]!==d?(h=s.jsxs(tl,{variant:d,collapsible:f,children:[i,p,n]}),e[8]=f,e[9]=n,e[10]=i,e[11]=p,e[12]=d,e[13]=h):h=e[13],h}function ml(t,e){return s.jsx(rl,{section:t},e)}St.Skeleton=function(){return s.jsx("div",{className:"flex flex-col gap-0.5",children:Array.from({length:8}).map((e,l)=>s.jsx("div",{className:"w-full h-8",children:s.jsx(re,{className:"h-full bg-sidebar-accent rounded-md"})},l))})};function fl(){const t=$.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsxs("div",{className:"space-y-0.5 px-1 py-1",children:[s.jsx(re,{className:"h-8 w-full rounded-lg"}),s.jsx(re,{className:"h-8 w-full rounded-lg"})]}),t[0]=e):e=t[0],e}function ul(t){const e=$.c(12),{organizationId:l,currentProjectSlug:i,onSelect:n}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={suspense:!0},e[0]=o):o=e[0];const{data:a}=mt(l,o);let c,r;if(e[1]!==i||e[2]!==n||e[3]!==a){r=Symbol.for("react.early_return_sentinel");e:{const f=a?.filter(pl)??[];if(f.length===0){let m;e[6]===Symbol.for("react.memo_cache_sentinel")?(m=s.jsx("div",{className:"px-2 py-3 text-center text-xs text-muted-foreground",children:"No projects yet"}),e[6]=m):m=e[6],r=m;break e}let u;e[7]!==i||e[8]!==n?(u=m=>{const p=i===m.slug,h=m.ui?.themeColor??"#3B82F6";return s.jsxs(ae,{className:I("gap-2.5",p&&"bg-accent"),onClick:()=>n(m.slug),children:[s.jsx("div",{className:"size-6 rounded-md shrink-0 flex items-center justify-center overflow-hidden border border-border/50",style:{backgroundColor:h},children:m.ui?.icon?s.jsx("img",{src:m.ui.icon,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:"text-xs font-semibold text-white",children:m.name.charAt(0).toUpperCase()})}),s.jsx("span",{className:"flex-1 truncate",children:m.name}),p&&s.jsx(Pe,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},m.id)},e[7]=i,e[8]=n,e[9]=u):u=e[9],c=f.map(u)}e[1]=i,e[2]=n,e[3]=a,e[4]=c,e[5]=r}else c=e[4],r=e[5];if(r!==Symbol.for("react.early_return_sentinel"))return r;let d;return e[10]!==c?(d=s.jsx(s.Fragment,{children:c}),e[10]=c,e[11]=d):d=e[11],d}function pl(t){return t.slug!==q}function xl(t){let e=0;for(let i=0;i<t.length;i++)e=t.charCodeAt(i)+((e<<5)-e);const l=Math.abs(e)%360;return{backgroundColor:`hsl(${l} 55% 70%)`,color:`hsl(${l} 55% 20%)`}}function qe(t){const e=$.c(96),{isCollapsed:l,onCreateProject:i}=t,n=l===void 0?!1:l;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={strict:!1},e[0]=o):o=e[0];const{org:a,project:c}=lt(o),{data:r}=Se.useListOrganizations(),d=Ze(),f=r?.find(V=>V.slug===a),[u,m]=A.useState(!1),p=c===q,{data:h}=dt(f?.id??"",p?"":c??"");let g;e[1]!==a?(g=(V,Re)=>V.slug===a?-1:Re.slug===a?1:V.name.localeCompare(Re.name),e[1]=a,e[2]=g):g=e[2];const j=[...r??[]].sort(g);let y;e[3]!==d||e[4]!==a?(y=()=>{a&&d({to:"/$org/$project",params:{org:a,project:q}})},e[3]=d,e[4]=a,e[5]=y):y=e[5];const x=y;let b;e[6]!==d||e[7]!==a?(b=V=>{a&&d({to:"/$org/$project",params:{org:a,project:V}})},e[6]=d,e[7]=a,e[8]=b):b=e[8];const S=b;let k;e[9]!==d?(k=V=>{d({to:"/$org/$project",params:{org:V,project:q}})},e[9]=d,e[10]=k):k=e[10];const v=k;let N;e[11]!==i?(N=i?()=>i():void 0,e[11]=i,e[12]=N):N=e[12];const z=N;let C;e[13]!==d||e[14]!==a||e[15]!==c?(C=()=>{if(!a||!c)return;const V=c===q;d({to:"/$org/$project",params:{org:a,project:c},search:Re=>({...Re,settings:V?"org.general":`project:${c}:general`})})},e[13]=d,e[14]=a,e[15]=c,e[16]=C):C=e[16];const _=C,P=pt,R=n?"w-auto pr-1.5":"w-full";let E;e[17]!==R?(E=I("flex items-center gap-3 rounded-md p-1.5 pr-2 text-left hover:bg-sidebar-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring min-h-[2.75rem]",R),e[17]=R,e[18]=E):E=e[18];const B=p?s.jsx("div",{className:I("shrink-0 rounded-md flex items-center justify-center border border-border/50 overflow-hidden transition-[width,height] duration-300 ease-[var(--ease-out-quart)]",n?"size-6":"size-8"),style:f?.logo?void 0:xl(f?.name??""),children:f?.logo?s.jsx("img",{src:f.logo,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:I("font-semibold leading-none",n?"text-[9px]":"text-xs"),children:(f?.name??"?").slice(0,2).toUpperCase()})}):s.jsx("div",{className:I("shrink-0 rounded-md flex items-center justify-center border border-border/50 overflow-hidden transition-[width,height] duration-300 ease-[var(--ease-out-quart)]",n?"size-6":"size-8"),style:{backgroundColor:h?.ui?.themeColor??"#60a5fa"},children:h?.ui?.icon?s.jsx("img",{src:h.ui.icon,alt:"",className:"size-full object-cover"}):s.jsx("span",{className:I("font-semibold text-white",n?"text-xs":"text-lg"),children:(h?.name??c??"?").charAt(0).toUpperCase()})});let T;e[19]!==f?.name||e[20]!==h?.name||e[21]!==n||e[22]!==p||e[23]!==c?(T=!n&&s.jsxs(s.Fragment,{children:[s.jsxs("div",{className:"flex-1 min-w-0 flex flex-col justify-center",children:[s.jsx("span",{className:"block text-[11px] text-sidebar-foreground/50 leading-tight truncate",children:f?.name??"Select org"}),s.jsx("span",{className:"block text-sm font-semibold text-sidebar-foreground truncate leading-tight",children:p?"Studio":h?.name??c??""})]}),s.jsx(ss,{size:16,className:"shrink-0 text-sidebar-foreground/40"})]}),e[19]=f?.name,e[20]=h?.name,e[21]=n,e[22]=p,e[23]=c,e[24]=T):T=e[24];let O;e[25]!==E||e[26]!==B||e[27]!==T?(O=s.jsx(xt,{asChild:!0,children:s.jsxs("button",{type:"button",className:E,children:[B,T]})}),e[25]=E,e[26]=B,e[27]=T,e[28]=O):O=e[28];const M=ut,F="start",D="bottom",L="w-64 flex flex-col gap-0.5",ee=hl,te=p&&"bg-accent";let Q;e[29]!==te?(Q=I("gap-2.5",te),e[29]=te,e[30]=Q):Q=e[30];const ce=f?.logo??"",de=f?.name??"";let Z;e[31]!==ce||e[32]!==de?(Z=s.jsx(Ie,{url:ce,fallback:de,size:"sm",className:"size-6 rounded-md shrink-0",objectFit:"cover"}),e[31]=ce,e[32]=de,e[33]=Z):Z=e[33];const Y=f?.name;let W;e[34]!==Y?(W=s.jsxs("span",{className:"flex-1 truncate",children:["Studio · ",Y]}),e[34]=Y,e[35]=W):W=e[35];let se;e[36]!==p?(se=p&&s.jsx(Pe,{size:14,className:"ml-auto text-muted-foreground shrink-0"}),e[36]=p,e[37]=se):se=e[37];let le;e[38]!==x||e[39]!==Q||e[40]!==Z||e[41]!==W||e[42]!==se?(le=s.jsxs(ae,{className:Q,onClick:x,children:[Z,W,se]}),e[38]=x,e[39]=Q,e[40]=Z,e[41]=W,e[42]=se,e[43]=le):le=e[43];let J;e[44]===Symbol.for("react.memo_cache_sentinel")?(J=s.jsx("p",{className:"px-2 pt-2 pb-0.5 text-[11px] font-medium text-muted-foreground/50 uppercase tracking-wider",children:"Projects"}),e[44]=J):J=e[44];let G;e[45]!==f||e[46]!==S||e[47]!==a||e[48]!==c?(G=f&&s.jsx(A.Suspense,{fallback:s.jsx(fl,{}),children:s.jsx(ul,{organizationId:f.id,currentProjectSlug:c,orgSlug:a??"",onSelect:S})}),e[45]=f,e[46]=S,e[47]=a,e[48]=c,e[49]=G):G=e[49];let K;e[50]!==z?(K=z&&s.jsxs(ae,{className:"gap-2.5",onClick:z,children:[s.jsx(Le,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Create project"})]}),e[50]=z,e[51]=K):K=e[51];let H;e[52]===Symbol.for("react.memo_cache_sentinel")?(H=s.jsx(Ue,{}),e[52]=H):H=e[52];const ne=us;let X;e[53]===Symbol.for("react.memo_cache_sentinel")?(X=s.jsxs(ps,{className:"gap-2.5",children:[s.jsx(rt,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Switch organization"})]}),e[53]=X):X=e[53];const ie=fs,he="w-48 flex flex-col gap-0.5";let xe;e[54]!==v||e[55]!==a?(xe=V=>s.jsxs(ae,{className:I("gap-2.5",V.slug===a&&"bg-accent"),onClick:()=>v(V.slug),children:[s.jsx(Ie,{url:V.logo??"",fallback:V.name,size:"xs",className:"size-5 rounded-md shrink-0",objectFit:"cover"}),s.jsx("span",{className:"flex-1 truncate",children:V.name}),V.slug===a&&s.jsx(Pe,{size:14,className:"ml-auto text-muted-foreground shrink-0"})]},V.id),e[54]=v,e[55]=a,e[56]=xe):xe=e[56];const ge=j.map(xe);let w;e[57]===Symbol.for("react.memo_cache_sentinel")?(w=s.jsx(Ue,{}),e[57]=w):w=e[57];let U;e[58]!==m?(U=()=>m(!0),e[58]=m,e[59]=U):U=e[59];let me,be;e[60]===Symbol.for("react.memo_cache_sentinel")?(me=s.jsx(Le,{size:14,className:"shrink-0 text-muted-foreground"}),be=s.jsx("span",{children:"Create organization"}),e[60]=me,e[61]=be):(me=e[60],be=e[61]);let Ne;e[62]!==U?(Ne=s.jsxs(ae,{className:"gap-2.5",onClick:U,children:[me,be]}),e[62]=U,e[63]=Ne):Ne=e[63];let fe;e[64]!==ie||e[65]!==ge||e[66]!==Ne?(fe=s.jsxs(ie,{className:he,children:[ge,w,Ne]}),e[64]=ie,e[65]=ge,e[66]=Ne,e[67]=fe):fe=e[67];let ue;e[68]!==ne||e[69]!==X||e[70]!==fe?(ue=s.jsxs(ne,{children:[X,fe]}),e[68]=ne,e[69]=X,e[70]=fe,e[71]=ue):ue=e[71];let Oe,Me;e[72]===Symbol.for("react.memo_cache_sentinel")?(Oe=s.jsx(He,{size:14,className:"shrink-0 text-muted-foreground"}),Me=s.jsx("span",{children:"Settings"}),e[72]=Oe,e[73]=Me):(Oe=e[72],Me=e[73]);let ke;e[74]!==_?(ke=s.jsxs(ae,{className:"gap-2.5",onClick:_,children:[Oe,Me]}),e[74]=_,e[75]=ke):ke=e[75];let _e;e[76]!==M||e[77]!==ee||e[78]!==le||e[79]!==J||e[80]!==G||e[81]!==K||e[82]!==H||e[83]!==ue||e[84]!==ke?(_e=s.jsxs(M,{align:F,side:D,className:L,onCloseAutoFocus:ee,children:[le,J,G,K,H,ue,ke]}),e[76]=M,e[77]=ee,e[78]=le,e[79]=J,e[80]=G,e[81]=K,e[82]=H,e[83]=ue,e[84]=ke,e[85]=_e):_e=e[85];let Ce;e[86]!==P||e[87]!==O||e[88]!==_e?(Ce=s.jsxs(P,{children:[O,_e]}),e[86]=P,e[87]=O,e[88]=_e,e[89]=Ce):Ce=e[89];let we;e[90]!==u||e[91]!==m?(we=s.jsx(xs,{open:u,onOpenChange:m}),e[90]=u,e[91]=m,e[92]=we):we=e[92];let De;return e[93]!==Ce||e[94]!==we?(De=s.jsxs(s.Fragment,{children:[Ce,we]}),e[93]=Ce,e[94]=we,e[95]=De):De=e[95],De}function hl(t){return t.preventDefault()}qe.Skeleton=function(){return s.jsxs("div",{className:"flex items-center gap-1.5 h-7 px-1.5 w-full",children:[s.jsx(re,{className:"size-5 rounded-[5px] shrink-0 bg-sidebar-accent"}),s.jsx(re,{className:"h-3.5 flex-1 bg-sidebar-accent"})]})};function Ye(t){const e=$.c(4),{onCreateProject:l}=t,{state:i,toggleSidebar:n}=Be(),o=i==="collapsed";let a;return e[0]!==o||e[1]!==l||e[2]!==n?(a=s.jsx(Nt,{className:"px-3 group-data-[collapsible=icon]:px-2 animate-in fade-in-0 duration-200",children:s.jsx(ve,{children:s.jsx(pe,{children:o?s.jsxs("div",{className:"flex flex-col w-full gap-0.5",children:[s.jsx(qe,{isCollapsed:!0,onCreateProject:l}),s.jsx(Te,{onClick:n,tooltip:"Expand sidebar",children:s.jsx(Ve,{})})]}):s.jsxs("div",{className:"flex items-center justify-between w-full gap-1",children:[s.jsx("div",{className:"min-w-0 flex-1",children:s.jsx(qe,{isCollapsed:!1,onCreateProject:l})}),s.jsx(Te,{onClick:n,tooltip:"Collapse sidebar",className:"size-7 shrink-0",children:s.jsx(Ve,{})})]})})})}),e[0]=o,e[1]=l,e[2]=n,e[3]=a):a=e[3],a}Ye.Skeleton=function(){return s.jsx(Nt,{className:"px-3",children:s.jsx(ve,{children:s.jsx(pe,{children:s.jsxs("div",{className:"flex items-center justify-between w-full",children:[s.jsxs("div",{className:"flex items-center gap-3 min-w-0 flex-1 p-1.5",children:[s.jsx(re,{className:"size-8 rounded-md shrink-0 bg-sidebar-accent"}),s.jsx(re,{className:"h-3.5 w-16 bg-sidebar-accent"})]}),s.jsx("div",{className:"flex items-center gap-0.5",children:s.jsx(re,{className:"size-7 rounded-lg bg-sidebar-accent"})})]})})})})};function gl(t){const e=$.c(50),{user:l,userImage:i}=t,{open:n}=ct(),[o,a]=A.useState(!1);let c;e[0]!==l.email||e[1]!==l.id||e[2]!==l.name?(c=()=>{const ee=`ID: ${l.id}
|
|
2
2
|
Name: ${l.name||"N/A"}
|
|
3
|
-
Email: ${l.email}`;navigator.clipboard.writeText(ee),a(!0),ye.success("User info copied to clipboard"),setTimeout(()=>a(!1),2e3)},e[0]=l.email,e[1]=l.id,e[2]=l.name,e[3]=c):c=e[3];const r=c,d=l.name||l.email||"U";let f;e[4]!==d||e[5]!==i?(f=s.jsx(Ie,{url:i,fallback:d,shape:"circle",size:"2xs",className:"shrink-0 size-5"}),e[4]=d,e[5]=i,e[6]=f):f=e[6];const u=l.name||"User";let m;e[7]!==u?(m=s.jsx("div",{className:"flex-1 min-w-0 group-data-[collapsible=icon]:hidden",children:s.jsx("div",{className:"text-sm font-medium truncate text-sidebar-foreground leading-none",children:u})}),e[7]=u,e[8]=m):m=e[8];let p;e[9]!==f||e[10]!==m?(p=s.jsx(xt,{asChild:!0,children:s.jsxs("button",{className:"flex w-full h-8 items-center gap-2 rounded-md px-1 hover:bg-sidebar-accent transition-colors text-left min-w-0",children:[f,m]})}),e[9]=f,e[10]=m,e[11]=p):p=e[11];const h=l.name||l.email||"U";let g;e[12]!==h||e[13]!==i?(g=s.jsx(Ie,{url:i,fallback:h,shape:"circle",size:"sm",className:"shrink-0"}),e[12]=h,e[13]=i,e[14]=g):g=e[14];const j=l.name||"User";let y;e[15]!==j?(y=s.jsx("div",{className:"text-sm font-medium truncate",children:j}),e[15]=j,e[16]=y):y=e[16];let x;e[17]!==l.email?(x=s.jsx("div",{className:"text-xs text-muted-foreground truncate",children:l.email}),e[17]=l.email,e[18]=x):x=e[18];let b;e[19]!==y||e[20]!==x?(b=s.jsxs("div",{className:"flex-1 min-w-0",children:[y,x]}),e[19]=y,e[20]=x,e[21]=b):b=e[21];let S;e[22]!==o?(S=s.jsx("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity shrink-0",children:o?s.jsx(Pe,{size:14,className:"text-green-600"}):s.jsx(hs,{size:14,className:"text-muted-foreground"})}),e[22]=o,e[23]=S):S=e[23];let k;e[24]!==r||e[25]!==b||e[26]!==S||e[27]!==g?(k=s.jsxs(ae,{onClick:r,className:"gap-2.5 group",children:[g,b,S]}),e[24]=r,e[25]=b,e[26]=S,e[27]=g,e[28]=k):k=e[28];let v;e[29]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx(Ue,{}),e[29]=v):v=e[29];let N;e[30]!==n?(N=()=>n("account.preferences"),e[30]=n,e[31]=N):N=e[31];let z,C;e[32]===Symbol.for("react.memo_cache_sentinel")?(z=s.jsx(He,{size:14,className:"shrink-0 text-muted-foreground"}),C=s.jsx("span",{children:"Settings"}),e[32]=z,e[33]=C):(z=e[32],C=e[33]);let _;e[34]!==N?(_=s.jsxs(ae,{className:"gap-2.5",onClick:N,children:[z,C]}),e[34]=N,e[35]=_):_=e[35];let P;e[36]===Symbol.for("react.memo_cache_sentinel")?(P=s.jsx(ae,{asChild:!0,children:s.jsxs("a",{href:"https://www.decocms.com/terms-of-use",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(gs,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Terms of Use"}),s.jsx($e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[36]=P):P=e[36];let R;e[37]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx(ae,{asChild:!0,children:s.jsxs("a",{href:"https://www.decocms.com/privacy-policy",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(js,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Privacy Policy"}),s.jsx($e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[37]=R):R=e[37];let E;e[38]===Symbol.for("react.memo_cache_sentinel")?(E=s.jsx(ae,{asChild:!0,children:s.jsxs("a",{href:"https://github.com/decocms/mesh",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(Dt,{className:"w-3.5 h-3.5 shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"decocms/mesh"}),s.jsx($e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[38]=E):E=e[38];let B;e[39]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx(ae,{asChild:!0,children:s.jsxs("a",{href:"https://decocms.com/discord",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(Je,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Community"}),s.jsx($e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[39]=B):B=e[39];let T,O;e[40]===Symbol.for("react.memo_cache_sentinel")?(T=s.jsx(ae,{asChild:!0,children:s.jsxs("a",{href:"https://decocms.com",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(bs,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Homepage"}),s.jsx($e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),O=s.jsx(Ue,{}),e[40]=T,e[41]=O):(T=e[40],O=e[41]);let M;e[42]===Symbol.for("react.memo_cache_sentinel")?(M=s.jsxs(ae,{className:"gap-2.5",onClick:bl,children:[s.jsx(jt,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Sign out"})]}),e[42]=M):M=e[42];let F;e[43]===Symbol.for("react.memo_cache_sentinel")?(F=s.jsx("div",{className:"px-2 py-1.5",children:s.jsxs("span",{className:"text-xs text-muted-foreground/60",children:["v","2.161.2"]})}),e[43]=F):F=e[43];let D;e[44]!==k||e[45]!==_?(D=s.jsxs(ut,{side:"top",align:"end",collisionPadding:8,className:"w-64 flex flex-col gap-0.5",onCloseAutoFocus:jl,children:[k,v,_,P,R,E,B,T,O,M,F]}),e[44]=k,e[45]=_,e[46]=D):D=e[46];let L;return e[47]!==D||e[48]!==p?(L=s.jsxs(pt,{children:[p,D]}),e[47]=D,e[48]=p,e[49]=L):L=e[49],L}function bl(){return Se.signOut()}function jl(t){return t.preventDefault()}function kt(){const t=$.c(7),{data:e}=Se.useSession();if(!e?.user){let r;return t[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(Ie,{url:void 0,fallback:"U",shape:"circle",size:"sm",className:"cursor-pointer h-7 w-7",muted:!0}),t[0]=r):r=t[0],r}const l=e.user,i=l.name??void 0;let n;t[1]!==i||t[2]!==l?(n={...l,name:i},t[1]=i,t[2]=l,t[3]=n):n=t[3];const o=n,a=l.image;let c;return t[4]!==a||t[5]!==o?(c=s.jsx(gl,{user:o,userImage:a}),t[4]=a,t[5]=o,t[6]=c):c=t[6],c}function vl({invitation:t}){const[e,l]=A.useState(!1),[i,n]=A.useState(!1),o=Lt(),a=async()=>{l(!0);try{const r=await Se.organization.acceptInvitation({invitationId:t.id});if(r.error)ye.error(r.error.message),l(!1);else{const d=await Se.organization.setActive({organizationId:t.organizationId});ye.success("Invitation accepted!");const f=d?.data?.slug;window.location.href=f?`/${f}`:"/"}}catch{ye.error("Failed to accept invitation"),l(!1)}},c=async()=>{n(!0);try{const r=await Se.organization.rejectInvitation({invitationId:t.id});r.error?(ye.error(r.error.message),n(!1)):(ye.success("Invitation declined"),o.invalidateQueries())}catch{ye.error("Failed to decline invitation"),n(!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(We,{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||i,"aria-label":"Accept invitation",children:s.jsx(Pe,{size:14})}),s.jsx(We,{size:"icon",variant:"ghost",className:"size-7 text-muted-foreground hover:text-destructive hover:bg-destructive/10",onClick:c,disabled:e||i,"aria-label":"Decline invitation",children:s.jsx(Ss,{size:14})})]})]})}function Nl(){const t=A.useContext(Rt),{data:e}=t.hooks.useListUserInvitations();return(e??[]).filter(i=>i.status==="pending"&&new Date(i.expiresAt)>new Date)}class yl extends A.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,l){}render(){return this.state.hasError?null:this.props.children}}const Sl="gateway-chip-period";function kl(){try{const t=localStorage.getItem(Sl);if(t==="daily"||t==="weekly"||t==="monthly")return t}catch{}return"daily"}function _l(t,e){if(!e||e<=0)return"text-foreground/70";const l=t/e;return l<=.05?"text-destructive":l<=.2?"text-amber-500 dark:text-amber-400":"text-foreground/70"}function Cl(t){return t>=90?"text-destructive":t>=70?"text-amber-500 dark:text-amber-400":"text-foreground/70"}function wl(t){const e=$.c(42),{connectionId:l}=t,{open:i}=ct(),{org:n}=ze();let o;e[0]!==l||e[1]!==n.id?(o={connectionId:l,orgId:n.id},e[0]=l,e[1]=n.id,e[2]=o):o=e[2];const a=Yt(o);let c;e[3]===Symbol.for("react.memo_cache_sentinel")?(c={},e[3]=c):c=e[3];let r;e[4]!==a?(r={client:a,toolName:"GATEWAY_USAGE",toolArguments:c,staleTime:6e4,select:$l},e[4]=a,e[5]=r):r=e[5];const{data:d}=_s(r),f=d?.billing.mode??"prepaid",u=d?.limit.total??null,m=d?.limit.remaining??0;let p;e[6]!==d?.usage?(p=d?.usage??{total:0,daily:0,weekly:0,monthly:0},e[6]=d?.usage,e[7]=p):p=e[7];const h=p;let g,j,y,x,b,S,k;if(e[8]!==f||e[9]!==g||e[10]!==m||e[11]!==u||e[12]!==i||e[13]!==h){let z;if(f==="prepaid"){g="Credits";let _;e[21]!==m?(_=m.toFixed(2),e[21]=m,e[22]=_):_=e[22],j=`$${_}`,z=_l(m,u)}else if(u!=null&&u>0){const _=u-m;let P;e[23]!==u||e[24]!==_?(P=Math.round(_/u*100),e[23]=u,e[24]=_,e[25]=P):P=e[25];const R=Math.min(100,P);g="Usage",j=`${R}%`,z=Cl(R)}else{const _=kl(),P=_==="daily"?h.daily:_==="weekly"?h.weekly:h.monthly,R=_==="daily"?"/day":_==="weekly"?"/wk":"/mo";g="Usage";let E;e[26]!==P?(E=P.toFixed(2),e[26]=P,e[27]=E):E=e[27],j=`$${E}${R}`,z="text-foreground/70"}x="button",e[28]!==i?(b=()=>i("org.billing"),e[28]=i,e[29]=b):b=e[29],S="group-data-[collapsible=icon]:hidden flex items-center justify-between w-full px-2 py-1.5 rounded-md hover:bg-sidebar-accent transition-colors";let C;e[30]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(ls,{size:13,className:"text-muted-foreground/60 shrink-0"}),e[30]=C):C=e[30],e[31]!==g?(k=s.jsxs("div",{className:"flex items-center gap-1.5",children:[C,s.jsx("span",{className:"text-xs text-muted-foreground",children:g})]}),e[31]=g,e[32]=k):k=e[32],y=I("text-xs font-medium tabular-nums",z),e[8]=f,e[9]=g,e[10]=m,e[11]=u,e[12]=i,e[13]=h,e[14]=y,e[15]=x,e[16]=b,e[17]=S,e[18]=k,e[19]=g,e[20]=j}else y=e[14],x=e[15],b=e[16],S=e[17],k=e[18],g=e[19],j=e[20];let v;e[33]!==y||e[34]!==j?(v=s.jsx("span",{className:y,children:j}),e[33]=y,e[34]=j,e[35]=v):v=e[35];let N;return e[36]!==v||e[37]!==x||e[38]!==b||e[39]!==S||e[40]!==k?(N=s.jsxs("button",{type:x,onClick:b,className:S,children:[k,v]}),e[36]=v,e[37]=x,e[38]=b,e[39]=S,e[40]=k,e[41]=N):N=e[41],N}function $l(t){return t.structuredContent}function zl(){const t=$.c(4),e=ks();let l;t[0]!==e?(l=e.find(Il),t[0]=e,t[1]=l):l=t[1];const i=l;if(!i?.id)return null;let n;return t[2]!==i.id?(n=s.jsx(wl,{connectionId:i.id}),t[2]=i.id,t[3]=n):n=t[3],n}function Il(t){return Cs(t,ws)}function Pl(){const t=$.c(13),e=Nl();let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(yl,{children:s.jsx(A.Suspense,{fallback:null,children:s.jsx(zl,{})})}),t[0]=l):l=t[0];let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("div",{className:"flex-1 min-w-0",children:s.jsx(kt,{})}),t[1]=i):i=t[1];let n;t[2]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(Ns,{asChild:!0,children:s.jsx(We,{variant:"ghost",size:"icon",className:"size-8 text-sidebar-foreground/50 hover:text-sidebar-foreground hover:bg-sidebar-accent","aria-label":"Open inbox",children:s.jsx(st,{size:16})})}),t[2]=n):n=t[2];let o;t[3]!==e.length?(o=e.length>0&&s.jsx("span",{className:"absolute top-1 right-1 size-2 rounded-full bg-red-500 ring-2 ring-sidebar pointer-events-none"}),t[3]=e.length,t[4]=o):o=t[4];let a;t[5]!==o?(a=s.jsxs("div",{className:"relative",children:[n,o]}),t[5]=o,t[6]=a):a=t[6];let c;t[7]===Symbol.for("react.memo_cache_sentinel")?(c=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"})}),t[7]=c):c=t[7];let r;t[8]!==e?(r=s.jsxs(vs,{side:"right",align:"end",sideOffset:24,className:"w-[400px] p-0 h-[650px] flex flex-col",children:[c,e.length===0?s.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center gap-2 px-6 text-center",children:[s.jsx(st,{size:24,className:"text-muted-foreground/50"}),s.jsx("p",{className:"text-sm font-medium text-foreground",children:"No messages or invites pending"}),s.jsx("p",{className:"text-xs text-muted-foreground",children:"Messages, workspace and project invitations will appear here"})]}):s.jsx("div",{className:"overflow-y-auto flex-1",children:e.map(Al)})]}),t[8]=e,t[9]=r):r=t[9];let d;return t[10]!==a||t[11]!==r?(d=s.jsxs(ll,{className:"px-3.5 pb-3 group-data-[collapsible=icon]:px-2",children:[l,s.jsx(ve,{children:s.jsx(pe,{children:s.jsxs("div",{className:"flex items-center w-full gap-1",children:[i,s.jsx("div",{className:"group-data-[collapsible=icon]:hidden",children:s.jsxs(ys,{children:[a,r]})})]})})})]}),t[10]=a,t[11]=r,t[12]=d):d=t[12],d}function Al(t){return s.jsx(vl,{invitation:t},t.id)}function El(t){const e=$.c(11),{project:l}=t,i=l.ui?.themeColor??"#60a5fa";if(l.ui?.icon){let r;return e[0]!==l.ui.icon?(r=s.jsx("img",{src:l.ui.icon,alt:"",className:"size-4 rounded object-cover border border-border/50"}),e[0]=l.ui.icon,e[1]=r):r=e[1],r}let n;e[2]!==i?(n={backgroundColor:i},e[2]=i,e[3]=n):n=e[3];let o;e[4]!==l.name?(o=l.name.charAt(0).toUpperCase(),e[4]=l.name,e[5]=o):o=e[5];let a;e[6]!==o?(a=s.jsx("span",{className:"text-[10px] font-medium text-white",children:o}),e[6]=o,e[7]=a):a=e[7];let c;return e[8]!==n||e[9]!==a?(c=s.jsx("div",{className:"size-4 rounded flex items-center justify-center border border-border/50",style:n,children:a}),e[8]=n,e[9]=a,e[10]=c):c=e[10],c}function Tl(t){const e=$.c(14),{project:l}=t,i=Ze(),{org:n}=ze();let o;e[0]!==i||e[1]!==n.slug||e[2]!==l.slug?(o=()=>{i({to:"/$org/$project",params:{org:n.slug,project:l.slug}})},e[0]=i,e[1]=n.slug,e[2]=l.slug,e[3]=o):o=e[3];let a;e[4]!==l?(a=s.jsx(El,{project:l}),e[4]=l,e[5]=a):a=e[5];let c;e[6]!==l.name?(c=s.jsx("span",{className:"truncate flex-1 group-data-[collapsible=icon]:hidden",children:l.name}),e[6]=l.name,e[7]=c):c=e[7];let r;e[8]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(Ps,{size:12,className:"text-muted-foreground opacity-0 group-hover/item:opacity-100 transition-opacity group-data-[collapsible=icon]:hidden"}),e[8]=r):r=e[8];let d;return e[9]!==l.name||e[10]!==o||e[11]!==a||e[12]!==c?(d=s.jsx(pe,{children:s.jsxs(Te,{onClick:o,tooltip:l.name,children:[a,c,r]})}),e[9]=l.name,e[10]=o,e[11]=a,e[12]=c,e[13]=d):d=e[13],d}function Ol(){const t=$.c(55),{org:e}=ze(),{data:l,isLoading:i}=mt(e.id),[n,o]=A.useState(!0),[a,c]=A.useState(!1);let r,d,f,u,m,p,h,g,j,y,x,b,S;if(t[0]!==i||t[1]!==n||t[2]!==l){S=Symbol.for("react.early_return_sentinel");e:{const E=l?.filter(Dl)??[];if(i){let L;t[16]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx(pe,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(re,{className:"h-4 w-4 rounded"}),s.jsx(re,{className:"h-4 flex-1"})]})}),t[16]=L):L=t[16];let ee;t[17]===Symbol.for("react.memo_cache_sentinel")?(ee=s.jsx(Ae,{className:"py-0 px-0",children:s.jsx(Ee,{children:s.jsxs(ve,{className:"gap-0.5",children:[L,s.jsx(pe,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(re,{className:"h-4 w-4 rounded"}),s.jsx(re,{className:"h-4 flex-1"})]})})]})})}),t[17]=ee):ee=t[17],S=ee;break e}b="group/projects-section mt-2",m=$s,y=n,x=o,u=Ae,j="py-0 px-0",f=Ee,d=ve,h="gap-0.5";let B;t[18]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Projects"}),t[18]=B):B=t[18];const T=!n&&"-rotate-90";let O;t[19]!==T?(O=I("text-muted-foreground shrink-0 transition-transform duration-200",T),t[19]=T,t[20]=O):O=t[20];let M;t[21]!==O?(M=s.jsx(zs,{asChild:!0,children:s.jsxs("button",{type:"button",className:"flex flex-1 items-center gap-1 cursor-pointer min-w-0",children:[B,s.jsx(ft,{size:12,className:O})]})}),t[21]=O,t[22]=M):M=t[22];let F;t[23]===Symbol.for("react.memo_cache_sentinel")?(F=()=>c(!0),t[23]=F):F=t[23];let D;t[24]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx("button",{type:"button",onClick:F,title:"Create new project",className:"opacity-0 group-hover/projects-section:opacity-100 transition-opacity text-muted-foreground hover:text-foreground flex items-center justify-center h-4 rounded shrink-0",children:s.jsx(Le,{size:16})}),t[24]=D):D=t[24],t[25]!==M?(g=s.jsx(pe,{className:"group-data-[collapsible=icon]:hidden",children:s.jsxs("div",{className:"flex h-6 w-full items-center gap-1 rounded-md pl-1.5 pr-0.5 hover:bg-sidebar-accent transition-colors",children:[M,D]})}),t[25]=M,t[26]=g):g=t[26],r=Is,p=E.length===0?s.jsx(pe,{children:s.jsx("div",{className:"px-2 py-2 text-xs text-muted-foreground",children:"No projects yet"})}):E.map(Ml)}t[0]=i,t[1]=n,t[2]=l,t[3]=r,t[4]=d,t[5]=f,t[6]=u,t[7]=m,t[8]=p,t[9]=h,t[10]=g,t[11]=j,t[12]=y,t[13]=x,t[14]=b,t[15]=S}else r=t[3],d=t[4],f=t[5],u=t[6],m=t[7],p=t[8],h=t[9],g=t[10],j=t[11],y=t[12],x=t[13],b=t[14],S=t[15];if(S!==Symbol.for("react.early_return_sentinel"))return S;let k;t[27]!==r||t[28]!==p?(k=s.jsx(r,{children:p}),t[27]=r,t[28]=p,t[29]=k):k=t[29];let v;t[30]!==d||t[31]!==h||t[32]!==g||t[33]!==k?(v=s.jsxs(d,{className:h,children:[g,k]}),t[30]=d,t[31]=h,t[32]=g,t[33]=k,t[34]=v):v=t[34];let N;t[35]!==f||t[36]!==v?(N=s.jsx(f,{children:v}),t[35]=f,t[36]=v,t[37]=N):N=t[37];let z;t[38]!==u||t[39]!==N||t[40]!==j?(z=s.jsx(u,{className:j,children:N}),t[38]=u,t[39]=N,t[40]=j,t[41]=z):z=t[41];let C;t[42]!==m||t[43]!==z||t[44]!==y||t[45]!==x?(C=s.jsx(m,{open:y,onOpenChange:x,children:z}),t[42]=m,t[43]=z,t[44]=y,t[45]=x,t[46]=C):C=t[46];let _;t[47]!==C||t[48]!==b?(_=s.jsx("div",{className:b,children:C}),t[47]=C,t[48]=b,t[49]=_):_=t[49];let P;t[50]!==a?(P=s.jsx(at,{open:a,onOpenChange:c}),t[50]=a,t[51]=P):P=t[51];let R;return t[52]!==_||t[53]!==P?(R=s.jsxs(s.Fragment,{children:[_,P]}),t[52]=_,t[53]=P,t[54]=R):R=t[54],R}function Ml(t){return s.jsx(Tl,{project:t},t.id)}function Dl(t){return t.slug!==q}function Rl(){const t=$.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(A.Suspense,{fallback:s.jsx(Ae,{className:"py-0 px-0",children:s.jsx(Ee,{children:s.jsx(ve,{className:"gap-0.5",children:s.jsx(pe,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(re,{className:"h-4 w-4 rounded"}),s.jsx(re,{className:"h-4 flex-1"})]})})})})}),children:s.jsx(Ol,{})}),t[0]=e):e=t[0],e}function Ll(t){const e=$.c(12),{onCreateProject:l}=t,i=Ds(),{locator:n}=ze();let o;e[0]!==n?(o=Fe.isOrgAdminProject(n),e[0]=n,e[1]=o):o=e[1];const a=o;let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(Ye.Skeleton,{}),e[2]=c):c=e[2];let r;e[3]!==l?(r=s.jsx(A.Suspense,{fallback:c,children:s.jsx(Ye,{onCreateProject:l})}),e[3]=l,e[4]=r):r=e[4];let d;e[5]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(Pl,{}),e[5]=d):d=e[5];let f;e[6]!==a?(f=a?s.jsx(Qe,{children:s.jsx(A.Suspense,{fallback:null,children:s.jsx(Rl,{})})}):null,e[6]=a,e[7]=f):f=e[7];let u;return e[8]!==i||e[9]!==r||e[10]!==f?(u=s.jsx(St,{sections:i,header:r,footer:d,additionalContent:f}),e[8]=i,e[9]=r,e[10]=f,e[11]=u):u=e[11],u}function Hl(){const t=$.c(2),l=Xe().location.href;let i;return t[0]!==l?(i=s.jsx(Ft,{to:"/login",search:{next:l},replace:!0}),t[0]=l,t[1]=i):i=t[1],i}function Ul(t){const e=$.c(6),{children:l}=t;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(Ht,{children:s.jsx(it,{})}),e[0]=i):i=e[0];let n;e[1]!==l?(n=s.jsx(Ut,{children:l}),e[1]=l,e[2]=n):n=e[2];let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(Bt,{children:s.jsx(Hl,{})}),e[3]=o):o=e[3];let a;return e[4]!==n?(a=s.jsxs(s.Fragment,{children:[i,n,o]}),e[4]=n,e[5]=a):a=e[5],a}function Bl(t){const e=$.c(10),{children:l,className:i}=t,[,n]=A.useTransition();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=tt.decoChatPanelWidth(),e[0]=o):o=e[0];const[a,c]=et(o,30);let r;e[1]!==c?(r=m=>n(()=>c(m)),e[1]=c,e[2]=r):r=e[2];const d=r;let f;e[3]!==i?(f=I("min-w-0",i),e[3]=i,e[4]=f):f=e[4];let u;return e[5]!==a||e[6]!==l||e[7]!==d||e[8]!==f?(u=s.jsx(ht,{defaultSize:a,minSize:20,className:f,onResize:d,children:l}),e[5]=a,e[6]=l,e[7]=d,e[8]=f,e[9]=u):u=e[9],u}function Fl(t){const e=$.c(5),{children:l}=t;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=tt.sidebarOpen(),e[0]=i):i=e[0];const[n,o]=et(i,!0);let a;return e[1]!==l||e[2]!==o||e[3]!==n?(a=s.jsx(Zs,{open:n,onOpenChange:o,children:l}),e[1]=l,e[2]=o,e[3]=n,e[4]=a):a=e[4],a}function Wl(t){const e=$.c(23),{isHomeRoute:l,onCreateProject:i}=t,[n]=ot();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=tt.decoChatPanelWidth(),e[0]=o):o=e[0];const[a]=et(o,30),c=`${a}cqi`;let r;e[1]!==c?(r={"--sidebar-width":"13.5rem","--sidebar-width-mobile":"11rem","--chat-panel-w":c},e[1]=c,e[2]=r):r=e[2];const d=r;let f;e[3]!==i?(f=s.jsx(Ll,{onCreateProject:i}),e[3]=i,e[4]=f):f=e[4];let u;e[5]===Symbol.for("react.memo_cache_sentinel")?(u={background:"transparent",containerType:"inline-size"},e[5]=u):u=e[5];let m;e[6]===Symbol.for("react.memo_cache_sentinel")?(m={overflow:"visible"},e[6]=m):m=e[6];let p;e[7]===Symbol.for("react.memo_cache_sentinel")?(p={overflow:"visible"},e[7]=p):p=e[7];const h=n&&"rounded-tr-[0.75rem] border-r";let g;e[8]!==h?(g=I("flex flex-col flex-1 min-h-0 bg-card overflow-hidden","border-t border-l border-sidebar-border","rounded-tl-[0.75rem]","transition-[border-radius] duration-200 ease-[var(--ease-out-quart)]",h),e[8]=h,e[9]=g):g=e[9];let j;e[10]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx("div",{className:"flex-1 overflow-hidden",children:s.jsx(nt,{})}),e[10]=j):j=e[10];let y;e[11]!==g?(y=s.jsx(ht,{className:"min-w-0 flex flex-col",style:p,children:s.jsx("div",{className:g,children:j})}),e[11]=g,e[12]=y):y=e[12];let x;e[13]!==n||e[14]!==l?(x=!l&&s.jsxs(s.Fragment,{children:[s.jsx(As,{className:"bg-sidebar"}),s.jsx(Bl,{className:I("transition-[max-width] duration-200 ease-[var(--ease-out-quart)] overflow-hidden",n?"max-w-[var(--chat-panel-w)] bg-sidebar":"max-w-0"),children:s.jsx("div",{className:"h-full min-w-[var(--chat-panel-w)] pl-1.5 pr-1.5 pb-1.5",children:s.jsx("div",{className:"h-full bg-background rounded-[0.75rem] overflow-hidden border border-sidebar-border shadow-sm",children:s.jsx(Ms,{})})})})]}),e[13]=n,e[14]=l,e[15]=x):x=e[15];let b;e[16]!==y||e[17]!==x?(b=s.jsx(sl,{className:"pt-1.5",style:u,children:s.jsxs(Es,{direction:"horizontal",className:"h-full",style:m,children:[y,x]})}),e[16]=y,e[17]=x,e[18]=b):b=e[18];let S;return e[19]!==b||e[20]!==d||e[21]!==f?(S=s.jsxs(el,{className:"flex-1 bg-sidebar",style:d,children:[f,b]}),e[19]=b,e[20]=d,e[21]=f,e[22]=S):S=e[22],S}function Gl(){const{org:t,project:e}=lt({strict:!1}),l=Xe(),[i,n]=A.useState(!1),o=l.location.pathname===`/${t}/${e}`||l.location.pathname===`/${t}/${e}/`,a=e??q,{data:c}=Wt({queryKey:Gt.activeOrganization(t),queryFn:async()=>{if(!t)return null;const{data:d}=await Se.organization.setActive({organizationSlug:t});return{org:d,project:{slug:a,isOrgAdmin:a===q}}},gcTime:1/0,staleTime:1/0,refetchOnWindowFocus:!1,refetchOnMount:!1});if(!c)return s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsx("header",{className:"h-12 flex items-center justify-end px-4 border-b border-border",children:s.jsx("div",{className:"w-fit",children:s.jsx(kt,{})})}),s.jsx(nt,{})]});if(!c.org)return window.location.pathname!=="/"&&(window.location.href="/"),null;const r={...c,project:{...c.project,slug:a,isOrgAdmin:a===q}};return s.jsxs(Kt,{...r,children:[s.jsx(Fl,{children:s.jsx("div",{className:"flex flex-col h-screen overflow-hidden",children:s.jsx(oe.Provider,{children:s.jsx(Wl,{isHomeRoute:o,onCreateProject:()=>n(!0)})})})}),s.jsx(at,{open:i,onOpenChange:n})]})}function Mn(){const t=$.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Ul,{children:s.jsx(A.Suspense,{fallback:s.jsx(it,{}),children:s.jsx(Gl,{})})}),t[0]=e):e=t[0],e}export{Mn as default};
|
|
3
|
+
Email: ${l.email}`;navigator.clipboard.writeText(ee),a(!0),ye.success("User info copied to clipboard"),setTimeout(()=>a(!1),2e3)},e[0]=l.email,e[1]=l.id,e[2]=l.name,e[3]=c):c=e[3];const r=c,d=l.name||l.email||"U";let f;e[4]!==d||e[5]!==i?(f=s.jsx(Ie,{url:i,fallback:d,shape:"circle",size:"2xs",className:"shrink-0 size-5"}),e[4]=d,e[5]=i,e[6]=f):f=e[6];const u=l.name||"User";let m;e[7]!==u?(m=s.jsx("div",{className:"flex-1 min-w-0 group-data-[collapsible=icon]:hidden",children:s.jsx("div",{className:"text-sm font-medium truncate text-sidebar-foreground leading-none",children:u})}),e[7]=u,e[8]=m):m=e[8];let p;e[9]!==f||e[10]!==m?(p=s.jsx(xt,{asChild:!0,children:s.jsxs("button",{className:"flex w-full h-8 items-center gap-2 rounded-md px-1 hover:bg-sidebar-accent transition-colors text-left min-w-0",children:[f,m]})}),e[9]=f,e[10]=m,e[11]=p):p=e[11];const h=l.name||l.email||"U";let g;e[12]!==h||e[13]!==i?(g=s.jsx(Ie,{url:i,fallback:h,shape:"circle",size:"sm",className:"shrink-0"}),e[12]=h,e[13]=i,e[14]=g):g=e[14];const j=l.name||"User";let y;e[15]!==j?(y=s.jsx("div",{className:"text-sm font-medium truncate",children:j}),e[15]=j,e[16]=y):y=e[16];let x;e[17]!==l.email?(x=s.jsx("div",{className:"text-xs text-muted-foreground truncate",children:l.email}),e[17]=l.email,e[18]=x):x=e[18];let b;e[19]!==y||e[20]!==x?(b=s.jsxs("div",{className:"flex-1 min-w-0",children:[y,x]}),e[19]=y,e[20]=x,e[21]=b):b=e[21];let S;e[22]!==o?(S=s.jsx("div",{className:"opacity-0 group-hover:opacity-100 transition-opacity shrink-0",children:o?s.jsx(Pe,{size:14,className:"text-green-600"}):s.jsx(hs,{size:14,className:"text-muted-foreground"})}),e[22]=o,e[23]=S):S=e[23];let k;e[24]!==r||e[25]!==b||e[26]!==S||e[27]!==g?(k=s.jsxs(ae,{onClick:r,className:"gap-2.5 group",children:[g,b,S]}),e[24]=r,e[25]=b,e[26]=S,e[27]=g,e[28]=k):k=e[28];let v;e[29]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx(Ue,{}),e[29]=v):v=e[29];let N;e[30]!==n?(N=()=>n("account.preferences"),e[30]=n,e[31]=N):N=e[31];let z,C;e[32]===Symbol.for("react.memo_cache_sentinel")?(z=s.jsx(He,{size:14,className:"shrink-0 text-muted-foreground"}),C=s.jsx("span",{children:"Settings"}),e[32]=z,e[33]=C):(z=e[32],C=e[33]);let _;e[34]!==N?(_=s.jsxs(ae,{className:"gap-2.5",onClick:N,children:[z,C]}),e[34]=N,e[35]=_):_=e[35];let P;e[36]===Symbol.for("react.memo_cache_sentinel")?(P=s.jsx(ae,{asChild:!0,children:s.jsxs("a",{href:"https://www.decocms.com/terms-of-use",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(gs,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Terms of Use"}),s.jsx($e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[36]=P):P=e[36];let R;e[37]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx(ae,{asChild:!0,children:s.jsxs("a",{href:"https://www.decocms.com/privacy-policy",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(js,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Privacy Policy"}),s.jsx($e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[37]=R):R=e[37];let E;e[38]===Symbol.for("react.memo_cache_sentinel")?(E=s.jsx(ae,{asChild:!0,children:s.jsxs("a",{href:"https://github.com/decocms/mesh",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(Dt,{className:"w-3.5 h-3.5 shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"decocms/mesh"}),s.jsx($e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[38]=E):E=e[38];let B;e[39]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx(ae,{asChild:!0,children:s.jsxs("a",{href:"https://decocms.com/discord",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(Xe,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Community"}),s.jsx($e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),e[39]=B):B=e[39];let T,O;e[40]===Symbol.for("react.memo_cache_sentinel")?(T=s.jsx(ae,{asChild:!0,children:s.jsxs("a",{href:"https://decocms.com",target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-2.5 group",children:[s.jsx(bs,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{className:"flex-1",children:"Homepage"}),s.jsx($e,{size:14,className:"shrink-0 text-muted-foreground opacity-0 group-hover:opacity-100 transition-opacity"})]})}),O=s.jsx(Ue,{}),e[40]=T,e[41]=O):(T=e[40],O=e[41]);let M;e[42]===Symbol.for("react.memo_cache_sentinel")?(M=s.jsxs(ae,{className:"gap-2.5",onClick:bl,children:[s.jsx(jt,{size:14,className:"shrink-0 text-muted-foreground"}),s.jsx("span",{children:"Sign out"})]}),e[42]=M):M=e[42];let F;e[43]===Symbol.for("react.memo_cache_sentinel")?(F=s.jsx("div",{className:"px-2 py-1.5",children:s.jsxs("span",{className:"text-xs text-muted-foreground/60",children:["v","2.161.3"]})}),e[43]=F):F=e[43];let D;e[44]!==k||e[45]!==_?(D=s.jsxs(ut,{side:"top",align:"end",collisionPadding:8,className:"w-64 flex flex-col gap-0.5",onCloseAutoFocus:jl,children:[k,v,_,P,R,E,B,T,O,M,F]}),e[44]=k,e[45]=_,e[46]=D):D=e[46];let L;return e[47]!==D||e[48]!==p?(L=s.jsxs(pt,{children:[p,D]}),e[47]=D,e[48]=p,e[49]=L):L=e[49],L}function bl(){return Se.signOut()}function jl(t){return t.preventDefault()}function kt(){const t=$.c(7),{data:e}=Se.useSession();if(!e?.user){let r;return t[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(Ie,{url:void 0,fallback:"U",shape:"circle",size:"sm",className:"cursor-pointer h-7 w-7",muted:!0}),t[0]=r):r=t[0],r}const l=e.user,i=l.name??void 0;let n;t[1]!==i||t[2]!==l?(n={...l,name:i},t[1]=i,t[2]=l,t[3]=n):n=t[3];const o=n,a=l.image;let c;return t[4]!==a||t[5]!==o?(c=s.jsx(gl,{user:o,userImage:a}),t[4]=a,t[5]=o,t[6]=c):c=t[6],c}function vl({invitation:t}){const[e,l]=A.useState(!1),[i,n]=A.useState(!1),o=Lt(),a=async()=>{l(!0);try{const r=await Se.organization.acceptInvitation({invitationId:t.id});if(r.error)ye.error(r.error.message),l(!1);else{const d=await Se.organization.setActive({organizationId:t.organizationId});ye.success("Invitation accepted!");const f=d?.data?.slug;window.location.href=f?`/${f}`:"/"}}catch{ye.error("Failed to accept invitation"),l(!1)}},c=async()=>{n(!0);try{const r=await Se.organization.rejectInvitation({invitationId:t.id});r.error?(ye.error(r.error.message),n(!1)):(ye.success("Invitation declined"),o.invalidateQueries())}catch{ye.error("Failed to decline invitation"),n(!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(We,{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||i,"aria-label":"Accept invitation",children:s.jsx(Pe,{size:14})}),s.jsx(We,{size:"icon",variant:"ghost",className:"size-7 text-muted-foreground hover:text-destructive hover:bg-destructive/10",onClick:c,disabled:e||i,"aria-label":"Decline invitation",children:s.jsx(Ss,{size:14})})]})]})}function Nl(){const t=A.useContext(Rt),{data:e}=t.hooks.useListUserInvitations();return(e??[]).filter(i=>i.status==="pending"&&new Date(i.expiresAt)>new Date)}class yl extends A.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,l){}render(){return this.state.hasError?null:this.props.children}}const Sl="gateway-chip-period";function kl(){try{const t=localStorage.getItem(Sl);if(t==="daily"||t==="weekly"||t==="monthly")return t}catch{}return"daily"}function _l(t,e){if(!e||e<=0)return"text-foreground/70";const l=t/e;return l<=.05?"text-destructive":l<=.2?"text-amber-500 dark:text-amber-400":"text-foreground/70"}function Cl(t){return t>=90?"text-destructive":t>=70?"text-amber-500 dark:text-amber-400":"text-foreground/70"}function wl(t){const e=$.c(42),{connectionId:l}=t,{open:i}=ct(),{org:n}=ze();let o;e[0]!==l||e[1]!==n.id?(o={connectionId:l,orgId:n.id},e[0]=l,e[1]=n.id,e[2]=o):o=e[2];const a=Yt(o);let c;e[3]===Symbol.for("react.memo_cache_sentinel")?(c={},e[3]=c):c=e[3];let r;e[4]!==a?(r={client:a,toolName:"GATEWAY_USAGE",toolArguments:c,staleTime:6e4,select:$l},e[4]=a,e[5]=r):r=e[5];const{data:d}=_s(r),f=d?.billing.mode??"prepaid",u=d?.limit.total??null,m=d?.limit.remaining??0;let p;e[6]!==d?.usage?(p=d?.usage??{total:0,daily:0,weekly:0,monthly:0},e[6]=d?.usage,e[7]=p):p=e[7];const h=p;let g,j,y,x,b,S,k;if(e[8]!==f||e[9]!==g||e[10]!==m||e[11]!==u||e[12]!==i||e[13]!==h){let z;if(f==="prepaid"){g="Credits";let _;e[21]!==m?(_=m.toFixed(2),e[21]=m,e[22]=_):_=e[22],j=`$${_}`,z=_l(m,u)}else if(u!=null&&u>0){const _=u-m;let P;e[23]!==u||e[24]!==_?(P=Math.round(_/u*100),e[23]=u,e[24]=_,e[25]=P):P=e[25];const R=Math.min(100,P);g="Usage",j=`${R}%`,z=Cl(R)}else{const _=kl(),P=_==="daily"?h.daily:_==="weekly"?h.weekly:h.monthly,R=_==="daily"?"/day":_==="weekly"?"/wk":"/mo";g="Usage";let E;e[26]!==P?(E=P.toFixed(2),e[26]=P,e[27]=E):E=e[27],j=`$${E}${R}`,z="text-foreground/70"}x="button",e[28]!==i?(b=()=>i("org.billing"),e[28]=i,e[29]=b):b=e[29],S="group-data-[collapsible=icon]:hidden flex items-center justify-between w-full px-2 py-1.5 rounded-md hover:bg-sidebar-accent transition-colors";let C;e[30]===Symbol.for("react.memo_cache_sentinel")?(C=s.jsx(ls,{size:13,className:"text-muted-foreground/60 shrink-0"}),e[30]=C):C=e[30],e[31]!==g?(k=s.jsxs("div",{className:"flex items-center gap-1.5",children:[C,s.jsx("span",{className:"text-xs text-muted-foreground",children:g})]}),e[31]=g,e[32]=k):k=e[32],y=I("text-xs font-medium tabular-nums",z),e[8]=f,e[9]=g,e[10]=m,e[11]=u,e[12]=i,e[13]=h,e[14]=y,e[15]=x,e[16]=b,e[17]=S,e[18]=k,e[19]=g,e[20]=j}else y=e[14],x=e[15],b=e[16],S=e[17],k=e[18],g=e[19],j=e[20];let v;e[33]!==y||e[34]!==j?(v=s.jsx("span",{className:y,children:j}),e[33]=y,e[34]=j,e[35]=v):v=e[35];let N;return e[36]!==v||e[37]!==x||e[38]!==b||e[39]!==S||e[40]!==k?(N=s.jsxs("button",{type:x,onClick:b,className:S,children:[k,v]}),e[36]=v,e[37]=x,e[38]=b,e[39]=S,e[40]=k,e[41]=N):N=e[41],N}function $l(t){return t.structuredContent}function zl(){const t=$.c(4),e=ks();let l;t[0]!==e?(l=e.find(Il),t[0]=e,t[1]=l):l=t[1];const i=l;if(!i?.id)return null;let n;return t[2]!==i.id?(n=s.jsx(wl,{connectionId:i.id}),t[2]=i.id,t[3]=n):n=t[3],n}function Il(t){return Cs(t,ws)}function Pl(){const t=$.c(13),e=Nl();let l;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(yl,{children:s.jsx(A.Suspense,{fallback:null,children:s.jsx(zl,{})})}),t[0]=l):l=t[0];let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx("div",{className:"flex-1 min-w-0",children:s.jsx(kt,{})}),t[1]=i):i=t[1];let n;t[2]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(Ns,{asChild:!0,children:s.jsx(We,{variant:"ghost",size:"icon",className:"size-8 text-sidebar-foreground/50 hover:text-sidebar-foreground hover:bg-sidebar-accent","aria-label":"Open inbox",children:s.jsx(st,{size:16})})}),t[2]=n):n=t[2];let o;t[3]!==e.length?(o=e.length>0&&s.jsx("span",{className:"absolute top-1 right-1 size-2 rounded-full bg-red-500 ring-2 ring-sidebar pointer-events-none"}),t[3]=e.length,t[4]=o):o=t[4];let a;t[5]!==o?(a=s.jsxs("div",{className:"relative",children:[n,o]}),t[5]=o,t[6]=a):a=t[6];let c;t[7]===Symbol.for("react.memo_cache_sentinel")?(c=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"})}),t[7]=c):c=t[7];let r;t[8]!==e?(r=s.jsxs(vs,{side:"right",align:"end",sideOffset:24,className:"w-[400px] p-0 h-[650px] flex flex-col",children:[c,e.length===0?s.jsxs("div",{className:"flex flex-1 flex-col items-center justify-center gap-2 px-6 text-center",children:[s.jsx(st,{size:24,className:"text-muted-foreground/50"}),s.jsx("p",{className:"text-sm font-medium text-foreground",children:"No messages or invites pending"}),s.jsx("p",{className:"text-xs text-muted-foreground",children:"Messages, workspace and project invitations will appear here"})]}):s.jsx("div",{className:"overflow-y-auto flex-1",children:e.map(Al)})]}),t[8]=e,t[9]=r):r=t[9];let d;return t[10]!==a||t[11]!==r?(d=s.jsxs(ll,{className:"px-3.5 pb-3 group-data-[collapsible=icon]:px-2",children:[l,s.jsx(ve,{children:s.jsx(pe,{children:s.jsxs("div",{className:"flex items-center w-full gap-1",children:[i,s.jsx("div",{className:"group-data-[collapsible=icon]:hidden",children:s.jsxs(ys,{children:[a,r]})})]})})})]}),t[10]=a,t[11]=r,t[12]=d):d=t[12],d}function Al(t){return s.jsx(vl,{invitation:t},t.id)}function El(t){const e=$.c(11),{project:l}=t,i=l.ui?.themeColor??"#60a5fa";if(l.ui?.icon){let r;return e[0]!==l.ui.icon?(r=s.jsx("img",{src:l.ui.icon,alt:"",className:"size-4 rounded object-cover border border-border/50"}),e[0]=l.ui.icon,e[1]=r):r=e[1],r}let n;e[2]!==i?(n={backgroundColor:i},e[2]=i,e[3]=n):n=e[3];let o;e[4]!==l.name?(o=l.name.charAt(0).toUpperCase(),e[4]=l.name,e[5]=o):o=e[5];let a;e[6]!==o?(a=s.jsx("span",{className:"text-[10px] font-medium text-white",children:o}),e[6]=o,e[7]=a):a=e[7];let c;return e[8]!==n||e[9]!==a?(c=s.jsx("div",{className:"size-4 rounded flex items-center justify-center border border-border/50",style:n,children:a}),e[8]=n,e[9]=a,e[10]=c):c=e[10],c}function Tl(t){const e=$.c(14),{project:l}=t,i=Ze(),{org:n}=ze();let o;e[0]!==i||e[1]!==n.slug||e[2]!==l.slug?(o=()=>{i({to:"/$org/$project",params:{org:n.slug,project:l.slug}})},e[0]=i,e[1]=n.slug,e[2]=l.slug,e[3]=o):o=e[3];let a;e[4]!==l?(a=s.jsx(El,{project:l}),e[4]=l,e[5]=a):a=e[5];let c;e[6]!==l.name?(c=s.jsx("span",{className:"truncate flex-1 group-data-[collapsible=icon]:hidden",children:l.name}),e[6]=l.name,e[7]=c):c=e[7];let r;e[8]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(Ps,{size:12,className:"text-muted-foreground opacity-0 group-hover/item:opacity-100 transition-opacity group-data-[collapsible=icon]:hidden"}),e[8]=r):r=e[8];let d;return e[9]!==l.name||e[10]!==o||e[11]!==a||e[12]!==c?(d=s.jsx(pe,{children:s.jsxs(Te,{onClick:o,tooltip:l.name,children:[a,c,r]})}),e[9]=l.name,e[10]=o,e[11]=a,e[12]=c,e[13]=d):d=e[13],d}function Ol(){const t=$.c(55),{org:e}=ze(),{data:l,isLoading:i}=mt(e.id),[n,o]=A.useState(!0),[a,c]=A.useState(!1);let r,d,f,u,m,p,h,g,j,y,x,b,S;if(t[0]!==i||t[1]!==n||t[2]!==l){S=Symbol.for("react.early_return_sentinel");e:{const E=l?.filter(Dl)??[];if(i){let L;t[16]===Symbol.for("react.memo_cache_sentinel")?(L=s.jsx(pe,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(re,{className:"h-4 w-4 rounded"}),s.jsx(re,{className:"h-4 flex-1"})]})}),t[16]=L):L=t[16];let ee;t[17]===Symbol.for("react.memo_cache_sentinel")?(ee=s.jsx(Ae,{className:"py-0 px-0",children:s.jsx(Ee,{children:s.jsxs(ve,{className:"gap-0.5",children:[L,s.jsx(pe,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(re,{className:"h-4 w-4 rounded"}),s.jsx(re,{className:"h-4 flex-1"})]})})]})})}),t[17]=ee):ee=t[17],S=ee;break e}b="group/projects-section mt-2",m=$s,y=n,x=o,u=Ae,j="py-0 px-0",f=Ee,d=ve,h="gap-0.5";let B;t[18]===Symbol.for("react.memo_cache_sentinel")?(B=s.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:"Projects"}),t[18]=B):B=t[18];const T=!n&&"-rotate-90";let O;t[19]!==T?(O=I("text-muted-foreground shrink-0 transition-transform duration-200",T),t[19]=T,t[20]=O):O=t[20];let M;t[21]!==O?(M=s.jsx(zs,{asChild:!0,children:s.jsxs("button",{type:"button",className:"flex flex-1 items-center gap-1 cursor-pointer min-w-0",children:[B,s.jsx(ft,{size:12,className:O})]})}),t[21]=O,t[22]=M):M=t[22];let F;t[23]===Symbol.for("react.memo_cache_sentinel")?(F=()=>c(!0),t[23]=F):F=t[23];let D;t[24]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx("button",{type:"button",onClick:F,title:"Create new project",className:"opacity-0 group-hover/projects-section:opacity-100 transition-opacity text-muted-foreground hover:text-foreground flex items-center justify-center h-4 rounded shrink-0",children:s.jsx(Le,{size:16})}),t[24]=D):D=t[24],t[25]!==M?(g=s.jsx(pe,{className:"group-data-[collapsible=icon]:hidden",children:s.jsxs("div",{className:"flex h-6 w-full items-center gap-1 rounded-md pl-1.5 pr-0.5 hover:bg-sidebar-accent transition-colors",children:[M,D]})}),t[25]=M,t[26]=g):g=t[26],r=Is,p=E.length===0?s.jsx(pe,{children:s.jsx("div",{className:"px-2 py-2 text-xs text-muted-foreground",children:"No projects yet"})}):E.map(Ml)}t[0]=i,t[1]=n,t[2]=l,t[3]=r,t[4]=d,t[5]=f,t[6]=u,t[7]=m,t[8]=p,t[9]=h,t[10]=g,t[11]=j,t[12]=y,t[13]=x,t[14]=b,t[15]=S}else r=t[3],d=t[4],f=t[5],u=t[6],m=t[7],p=t[8],h=t[9],g=t[10],j=t[11],y=t[12],x=t[13],b=t[14],S=t[15];if(S!==Symbol.for("react.early_return_sentinel"))return S;let k;t[27]!==r||t[28]!==p?(k=s.jsx(r,{children:p}),t[27]=r,t[28]=p,t[29]=k):k=t[29];let v;t[30]!==d||t[31]!==h||t[32]!==g||t[33]!==k?(v=s.jsxs(d,{className:h,children:[g,k]}),t[30]=d,t[31]=h,t[32]=g,t[33]=k,t[34]=v):v=t[34];let N;t[35]!==f||t[36]!==v?(N=s.jsx(f,{children:v}),t[35]=f,t[36]=v,t[37]=N):N=t[37];let z;t[38]!==u||t[39]!==N||t[40]!==j?(z=s.jsx(u,{className:j,children:N}),t[38]=u,t[39]=N,t[40]=j,t[41]=z):z=t[41];let C;t[42]!==m||t[43]!==z||t[44]!==y||t[45]!==x?(C=s.jsx(m,{open:y,onOpenChange:x,children:z}),t[42]=m,t[43]=z,t[44]=y,t[45]=x,t[46]=C):C=t[46];let _;t[47]!==C||t[48]!==b?(_=s.jsx("div",{className:b,children:C}),t[47]=C,t[48]=b,t[49]=_):_=t[49];let P;t[50]!==a?(P=s.jsx(at,{open:a,onOpenChange:c}),t[50]=a,t[51]=P):P=t[51];let R;return t[52]!==_||t[53]!==P?(R=s.jsxs(s.Fragment,{children:[_,P]}),t[52]=_,t[53]=P,t[54]=R):R=t[54],R}function Ml(t){return s.jsx(Tl,{project:t},t.id)}function Dl(t){return t.slug!==q}function Rl(){const t=$.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(A.Suspense,{fallback:s.jsx(Ae,{className:"py-0 px-0",children:s.jsx(Ee,{children:s.jsx(ve,{className:"gap-0.5",children:s.jsx(pe,{children:s.jsxs("div",{className:"flex items-center gap-2 px-2 py-2",children:[s.jsx(re,{className:"h-4 w-4 rounded"}),s.jsx(re,{className:"h-4 flex-1"})]})})})})}),children:s.jsx(Ol,{})}),t[0]=e):e=t[0],e}function Ll(t){const e=$.c(12),{onCreateProject:l}=t,i=Ds(),{locator:n}=ze();let o;e[0]!==n?(o=Fe.isOrgAdminProject(n),e[0]=n,e[1]=o):o=e[1];const a=o;let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=s.jsx(Ye.Skeleton,{}),e[2]=c):c=e[2];let r;e[3]!==l?(r=s.jsx(A.Suspense,{fallback:c,children:s.jsx(Ye,{onCreateProject:l})}),e[3]=l,e[4]=r):r=e[4];let d;e[5]===Symbol.for("react.memo_cache_sentinel")?(d=s.jsx(Pl,{}),e[5]=d):d=e[5];let f;e[6]!==a?(f=a?s.jsx(Qe,{children:s.jsx(A.Suspense,{fallback:null,children:s.jsx(Rl,{})})}):null,e[6]=a,e[7]=f):f=e[7];let u;return e[8]!==i||e[9]!==r||e[10]!==f?(u=s.jsx(St,{sections:i,header:r,footer:d,additionalContent:f}),e[8]=i,e[9]=r,e[10]=f,e[11]=u):u=e[11],u}function Hl(){const t=$.c(2),l=Je().location.href;let i;return t[0]!==l?(i=s.jsx(Ft,{to:"/login",search:{next:l},replace:!0}),t[0]=l,t[1]=i):i=t[1],i}function Ul(t){const e=$.c(6),{children:l}=t;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(Ht,{children:s.jsx(it,{})}),e[0]=i):i=e[0];let n;e[1]!==l?(n=s.jsx(Ut,{children:l}),e[1]=l,e[2]=n):n=e[2];let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o=s.jsx(Bt,{children:s.jsx(Hl,{})}),e[3]=o):o=e[3];let a;return e[4]!==n?(a=s.jsxs(s.Fragment,{children:[i,n,o]}),e[4]=n,e[5]=a):a=e[5],a}function Bl(t){const e=$.c(10),{children:l,className:i}=t,[,n]=A.useTransition();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=tt.decoChatPanelWidth(),e[0]=o):o=e[0];const[a,c]=et(o,30);let r;e[1]!==c?(r=m=>n(()=>c(m)),e[1]=c,e[2]=r):r=e[2];const d=r;let f;e[3]!==i?(f=I("min-w-0",i),e[3]=i,e[4]=f):f=e[4];let u;return e[5]!==a||e[6]!==l||e[7]!==d||e[8]!==f?(u=s.jsx(ht,{defaultSize:a,minSize:20,className:f,onResize:d,children:l}),e[5]=a,e[6]=l,e[7]=d,e[8]=f,e[9]=u):u=e[9],u}function Fl(t){const e=$.c(5),{children:l}=t;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=tt.sidebarOpen(),e[0]=i):i=e[0];const[n,o]=et(i,!0);let a;return e[1]!==l||e[2]!==o||e[3]!==n?(a=s.jsx(Zs,{open:n,onOpenChange:o,children:l}),e[1]=l,e[2]=o,e[3]=n,e[4]=a):a=e[4],a}function Wl(t){const e=$.c(23),{isHomeRoute:l,onCreateProject:i}=t,[n]=ot();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=tt.decoChatPanelWidth(),e[0]=o):o=e[0];const[a]=et(o,30),c=`${a}cqi`;let r;e[1]!==c?(r={"--sidebar-width":"13.5rem","--sidebar-width-mobile":"11rem","--chat-panel-w":c},e[1]=c,e[2]=r):r=e[2];const d=r;let f;e[3]!==i?(f=s.jsx(Ll,{onCreateProject:i}),e[3]=i,e[4]=f):f=e[4];let u;e[5]===Symbol.for("react.memo_cache_sentinel")?(u={background:"transparent",containerType:"inline-size"},e[5]=u):u=e[5];let m;e[6]===Symbol.for("react.memo_cache_sentinel")?(m={overflow:"visible"},e[6]=m):m=e[6];let p;e[7]===Symbol.for("react.memo_cache_sentinel")?(p={overflow:"visible"},e[7]=p):p=e[7];const h=n&&"rounded-tr-[0.75rem] border-r";let g;e[8]!==h?(g=I("flex flex-col flex-1 min-h-0 bg-card overflow-hidden","border-t border-l border-sidebar-border","rounded-tl-[0.75rem]","transition-[border-radius] duration-200 ease-[var(--ease-out-quart)]",h),e[8]=h,e[9]=g):g=e[9];let j;e[10]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx("div",{className:"flex-1 overflow-hidden",children:s.jsx(nt,{})}),e[10]=j):j=e[10];let y;e[11]!==g?(y=s.jsx(ht,{className:"min-w-0 flex flex-col",style:p,children:s.jsx("div",{className:g,children:j})}),e[11]=g,e[12]=y):y=e[12];let x;e[13]!==n||e[14]!==l?(x=!l&&s.jsxs(s.Fragment,{children:[s.jsx(As,{className:"bg-sidebar"}),s.jsx(Bl,{className:I("transition-[max-width] duration-200 ease-[var(--ease-out-quart)] overflow-hidden",n?"max-w-[var(--chat-panel-w)] bg-sidebar":"max-w-0"),children:s.jsx("div",{className:"h-full min-w-[var(--chat-panel-w)] pl-1.5 pr-1.5 pb-1.5",children:s.jsx("div",{className:"h-full bg-background rounded-[0.75rem] overflow-hidden border border-sidebar-border shadow-sm",children:s.jsx(Ms,{})})})})]}),e[13]=n,e[14]=l,e[15]=x):x=e[15];let b;e[16]!==y||e[17]!==x?(b=s.jsx(sl,{className:"pt-1.5",style:u,children:s.jsxs(Es,{direction:"horizontal",className:"h-full",style:m,children:[y,x]})}),e[16]=y,e[17]=x,e[18]=b):b=e[18];let S;return e[19]!==b||e[20]!==d||e[21]!==f?(S=s.jsxs(el,{className:"flex-1 bg-sidebar",style:d,children:[f,b]}),e[19]=b,e[20]=d,e[21]=f,e[22]=S):S=e[22],S}function Gl(){const{org:t,project:e}=lt({strict:!1}),l=Je(),[i,n]=A.useState(!1),o=l.location.pathname===`/${t}/${e}`||l.location.pathname===`/${t}/${e}/`,a=e??q,{data:c}=Wt({queryKey:Gt.activeOrganization(t),queryFn:async()=>{if(!t)return null;const{data:d}=await Se.organization.setActive({organizationSlug:t});return{org:d,project:{slug:a,isOrgAdmin:a===q}}},gcTime:1/0,staleTime:1/0,refetchOnWindowFocus:!1,refetchOnMount:!1});if(!c)return s.jsxs("div",{className:"min-h-screen bg-background",children:[s.jsx("header",{className:"h-12 flex items-center justify-end px-4 border-b border-border",children:s.jsx("div",{className:"w-fit",children:s.jsx(kt,{})})}),s.jsx(nt,{})]});if(!c.org)return window.location.pathname!=="/"&&(window.location.href="/"),null;const r={...c,project:{...c.project,slug:a,isOrgAdmin:a===q}};return s.jsxs(Kt,{...r,children:[s.jsx(Fl,{children:s.jsx("div",{className:"flex flex-col h-screen overflow-hidden",children:s.jsx(oe.Provider,{children:s.jsx(Wl,{isHomeRoute:o,onCreateProject:()=>n(!0)})})})}),s.jsx(at,{open:i,onOpenChange:n})]})}function Mn(){const t=$.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Ul,{children:s.jsx(A.Suspense,{fallback:s.jsx(it,{}),children:s.jsx(Gl,{})})}),t[0]=e):e=t[0],e}export{Mn as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as E,u as q,j as n,w as F,K as v,r as k,x as _,B as O}from"./index-
|
|
1
|
+
import{c as E,u as q,j as n,w as F,K as v,r as k,x as _,B as O}from"./index-Cag7rf5f.js";import{u as L}from"./useQuery-Clb9lPv3.js";import{u as R}from"./useMutation-CCDwZCqX.js";import{S as V}from"./switch-CT1_NI6K.js";import{I as A}from"./input-BU10AGC6.js";import{u as K,a as U}from"./constants-5XohhD_f.js";import{g as J}from"./types-DRyYjHsT.js";import{u as w}from"./unwrap-tool-result-BYXdCQMg.js";function M(s){const e=E.c(33),{connection:t,pinnedViews:o,isSaving:u,onTogglePin:h,onLabelChange:f}=s;if(t.uiTools.length===0)return null;let j;e[0]!==t.id||e[1]!==o?(j=x=>o.some(c=>c.connectionId===t.id&&c.toolName===x),e[0]=t.id,e[1]=o,e[2]=j):j=e[2];const N=j;let g;e[3]!==t.icon||e[4]!==t.title?(g=t.icon?n.jsx("img",{src:t.icon,alt:"",className:"size-4 shrink-0 rounded"}):n.jsx("div",{className:"size-4 shrink-0 rounded bg-muted flex items-center justify-center",children:n.jsx("span",{className:"text-[8px] font-medium text-muted-foreground",children:t.title.charAt(0).toUpperCase()})}),e[3]=t.icon,e[4]=t.title,e[5]=g):g=e[5];let p;e[6]!==t.title?(p=n.jsx("h3",{className:"text-sm font-medium text-foreground",children:t.title}),e[6]=t.title,e[7]=p):p=e[7];let l;e[8]!==g||e[9]!==p?(l=n.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[g,p]}),e[8]=g,e[9]=p,e[10]=l):l=e[10];let d;if(e[11]!==t.icon||e[12]!==t.id||e[13]!==t.uiTools||e[14]!==N||e[15]!==u||e[16]!==f||e[17]!==h||e[18]!==o){let x;e[20]!==t.icon||e[21]!==t.id||e[22]!==N||e[23]!==u||e[24]!==f||e[25]!==h||e[26]!==o?(x=c=>{const P=N(c.name),I=o.find(S=>S.connectionId===t.id&&S.toolName===c.name);return n.jsxs("div",{className:"flex flex-col border-b border-border last:border-0",children:[n.jsxs("div",{className:"flex items-center justify-between gap-6 py-3 cursor-pointer",onClick:()=>h(t.id,c.name,t.icon),children:[n.jsxs("div",{className:"min-w-0 flex-1",children:[n.jsx("p",{className:"text-sm font-medium text-foreground",children:c.name}),c.description&&n.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:c.description})]}),n.jsx("div",{onClick:$,className:"shrink-0",children:n.jsx(V,{checked:P,onCheckedChange:()=>h(t.id,c.name,t.icon),disabled:u})})]}),P&&I&&n.jsxs("div",{className:"pb-3 pl-0 flex items-center gap-3",onClick:Q,children:[n.jsx("label",{className:"text-xs text-muted-foreground w-12 shrink-0",children:"Label"}),n.jsx(A,{value:I.label,onChange:S=>f(t.id,c.name,S.target.value),className:"h-8 text-sm w-56",disabled:u})]})]},c.name)},e[20]=t.icon,e[21]=t.id,e[22]=N,e[23]=u,e[24]=f,e[25]=h,e[26]=o,e[27]=x):x=e[27],d=t.uiTools.map(x),e[11]=t.icon,e[12]=t.id,e[13]=t.uiTools,e[14]=N,e[15]=u,e[16]=f,e[17]=h,e[18]=o,e[19]=d}else d=e[19];let m;e[28]!==d?(m=n.jsx("div",{className:"flex flex-col",children:d}),e[28]=d,e[29]=m):m=e[29];let C;return e[30]!==l||e[31]!==m?(C=n.jsxs("div",{children:[l,m]}),e[30]=l,e[31]=m,e[32]=C):C=e[32],C}function Q(s){return s.stopPropagation()}function $(s){return s.stopPropagation()}function z(){const{org:s,project:e}=q(),t=K({connectionId:U,orgId:s.id}),o=F(),u=e.id??"",{data:h}=L({queryKey:v.projectConnections(u),enabled:!!e.id,queryFn:async()=>{const i=await t.callTool({name:"PROJECT_CONNECTION_LIST",arguments:{projectId:u}});return w(i)}}),f=h?.connections??[],j=f.map(i=>i.id).sort(),{data:N}=L({queryKey:v.projectConnectionDetails(u,j),enabled:j.length>0,queryFn:async()=>await Promise.all(f.map(async a=>{try{const y=await t.callTool({name:"COLLECTION_CONNECTIONS_GET",arguments:{id:a.id}}),{item:T}=w(y),r=(T?.tools??[]).filter(b=>!!J(b._meta)).map(b=>({name:b.name,description:b.description}));return{id:a.id,title:a.title,icon:a.icon,uiTools:r}}catch{return{id:a.id,title:a.title,icon:a.icon,uiTools:[]}}}))}),g=N??[],p=e.ui?.pinnedViews??[],[l,d]=k.useState(p),[m,C]=k.useState(!1),x=JSON.stringify(l)!==JSON.stringify(p),c=(i,a,y)=>{const T=l.some(r=>r.connectionId===i&&r.toolName===a);d(T?r=>r.filter(b=>!(b.connectionId===i&&b.toolName===a)):r=>[...r,{connectionId:i,toolName:a,label:a,icon:y}])},P=(i,a,y)=>{d(T=>T.map(r=>r.connectionId===i&&r.toolName===a?{...r,label:y}:r))},I=R({mutationFn:async()=>{const i=await t.callTool({name:"PROJECT_PINNED_VIEWS_UPDATE",arguments:{projectId:e.id,pinnedViews:l}});w(i)},onSuccess:()=>{o.invalidateQueries({queryKey:v.project(s.id,e.slug)}),_.success("Sidebar updated")},onError:i=>{_.error("Failed to update sidebar: "+(i instanceof Error?i.message:"Unknown error"))},onSettled:()=>C(!1)}),S=()=>{C(!0),I.mutate()},D=()=>{d(p)};return f.length===0?n.jsx("p",{className:"text-sm text-muted-foreground py-4",children:"No connections associated with this project. Add connections in the Dependencies section first."}):n.jsxs("div",{className:"space-y-6",children:[g.map(i=>n.jsx(M,{connection:i,pinnedViews:l,isSaving:m,onTogglePin:c,onLabelChange:P},i.id)),n.jsxs("div",{className:"flex items-center gap-3 pt-4",children:[n.jsx(O,{variant:"outline",onClick:D,disabled:!x||m,children:"Cancel"}),n.jsx(O,{onClick:S,disabled:!x||m,children:m?"Saving...":"Save Changes"})]})]})}function B(){const s=E.c(3),{project:e}=q();let t;s[0]===Symbol.for("react.memo_cache_sentinel")?(t=n.jsxs("div",{children:[n.jsx("h2",{className:"text-base font-semibold text-foreground",children:"Sidebar"}),n.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:"Pin interactive tools from your dependencies to the project sidebar for quick access."})]}),s[0]=t):t=s[0];let o;return s[1]!==e.id?(o=n.jsxs("div",{className:"flex flex-col gap-6",children:[t,n.jsx(z,{},e.id)]}),s[1]=e.id,s[2]=o):o=s[2],o}function ne(){const s=E.c(1);let e;return s[0]===Symbol.for("react.memo_cache_sentinel")?(e=n.jsx(B,{}),s[0]=e):e=s[0],e}export{ne as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as n,z as c,j as i}from"./index-
|
|
1
|
+
import{c as n,z as c,j as i}from"./index-Cag7rf5f.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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as C,z as d,M as m,j as a}from"./index-
|
|
1
|
+
import{c as C,z as d,M as m,j as a}from"./index-Cag7rf5f.js";const u=m("animate-spin",{variants:{variant:{default:"fill-primary text-gray-200",destructive:"fill-destructive text-gray-200",secondary:"fill-secondary text-gray-200",special:"fill-special text-backround"},size:{default:"h-7 w-7",sm:"h-6 w-6",lg:"h-8 w-8",icon:"h-6 w-6",xs:"h-4 w-4"}},defaultVariants:{variant:"default",size:"default"}});function h(f){const e=C.c(10),{variant:c,size:o}=f;let t;e[0]!==o||e[1]!==c?(t=d(u({variant:c,size:o})),e[0]=o,e[1]=c,e[2]=t):t=e[2];let l,i;e[3]===Symbol.for("react.memo_cache_sentinel")?(l=a.jsx("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),i=a.jsx("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"}),e[3]=l,e[4]=i):(l=e[3],i=e[4]);let s;e[5]!==t?(s=a.jsxs("svg",{"aria-hidden":"true",className:t,viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[l,i]}),e[5]=t,e[6]=s):s=e[6];let r;e[7]===Symbol.for("react.memo_cache_sentinel")?(r=a.jsx("span",{className:"sr-only",children:"Loading..."}),e[7]=r):r=e[7];let n;return e[8]!==s?(n=a.jsxs("div",{role:"status",children:[s,r]}),e[8]=s,e[9]=n):n=e[9],n}export{h as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as h,g as S,j as o,A as x,S as g,k as j,m as b,d,f as y,O as N,N as p}from"./index-
|
|
1
|
+
import{c as h,g as S,j as o,A as x,S as g,k as j,m as b,d,f as y,O as N,N as p}from"./index-Cag7rf5f.js";function R(e){const t=h.c(5),{appName:l}=e;let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s={strict:!1},t[0]=s):s=t[0];const n=d(s);let a;if(t[1]!==n){const r=new URLSearchParams;for(const[_,u]of Object.entries(n))u!=null&&r.set(_,String(u));a=r.toString(),t[1]=n,t[2]=a}else a=t[2];const f=a,c=`/store/${encodeURIComponent(l)}${f?`?${f}`:""}`;let i;return t[3]!==c?(i=o.jsx(p,{to:"/login",search:{next:c},replace:!0}),t[3]=c,t[4]=i):i=t[4],i}function $(){const e=h.c(10);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const{appName:l}=S(t);let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s={strict:!1},e[1]=s):s=e[1];const n=d(s),{data:a,isPending:f}=y.useListOrganizations();if(f){let r;return e[2]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx(g,{}),e[2]=r):r=e[2],r}const m=a?.[0];if(!m){let r;return e[3]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsx(p,{to:"/",replace:!0}),e[3]=r):r=e[3],r}let c;e[4]!==l||e[5]!==m.slug?(c={org:m.slug,project:N,appName:l},e[4]=l,e[5]=m.slug,e[6]=c):c=e[6];let i;return e[7]!==n||e[8]!==c?(i=o.jsx(p,{to:"/$org/$project/store/$appName",params:c,search:n,replace:!0}),e[7]=n,e[8]=c,e[9]=i):i=e[9],i}function v(){const e=h.c(5);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={strict:!1},e[0]=t):t=e[0];const{appName:l}=S(t);let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsx(x,{children:o.jsx(g,{})}),e[1]=s):s=e[1];let n;e[2]===Symbol.for("react.memo_cache_sentinel")?(n=o.jsx(j,{children:o.jsx($,{})}),e[2]=n):n=e[2];let a;return e[3]!==l?(a=o.jsxs(o.Fragment,{children:[s,n,o.jsx(b,{children:o.jsx(R,{appName:l})})]}),e[3]=l,e[4]=a):a=e[4],a}export{v as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as c,j as i,U as C,W as y,R as T,Y as I,a1 as M,a2 as z,a0 as H,c as U,z as g}from"./index-
|
|
1
|
+
import{r as c,j as i,U as C,W as y,R as T,Y as I,a1 as M,a2 as z,a0 as H,c as U,z as g}from"./index-Cag7rf5f.js";var m="Switch",[A]=H(m),[q,L]=A(m),E=c.forwardRef((r,e)=>{const{__scopeSwitch:t,name:a,checked:s,defaultChecked:n,required:o,disabled:d,value:u="on",onCheckedChange:k,form:l,...w}=r,[p,h]=c.useState(null),v=y(e,b=>h(b)),x=c.useRef(!1),S=p?l||!!p.closest("form"):!0,[f,N]=T({prop:s,defaultProp:n??!1,onChange:k,caller:m});return i.jsxs(q,{scope:t,checked:f,disabled:d,children:[i.jsx(C.button,{type:"button",role:"switch","aria-checked":f,"aria-required":o,"data-state":j(f),"data-disabled":d?"":void 0,disabled:d,value:u,...w,ref:v,onClick:I(r.onClick,b=>{N(B=>!B),S&&(x.current=b.isPropagationStopped(),x.current||b.stopPropagation())})}),S&&i.jsx(_,{control:p,bubbles:!x.current,name:a,value:u,checked:f,required:o,disabled:d,form:l,style:{transform:"translateX(-100%)"}})]})});E.displayName=m;var P="SwitchThumb",R=c.forwardRef((r,e)=>{const{__scopeSwitch:t,...a}=r,s=L(P,t);return i.jsx(C.span,{"data-state":j(s.checked),"data-disabled":s.disabled?"":void 0,...a,ref:e})});R.displayName=P;var O="SwitchBubbleInput",_=c.forwardRef(({__scopeSwitch:r,control:e,checked:t,bubbles:a=!0,...s},n)=>{const o=c.useRef(null),d=y(o,n),u=M(t),k=z(e);return c.useEffect(()=>{const l=o.current;if(!l)return;const w=window.HTMLInputElement.prototype,h=Object.getOwnPropertyDescriptor(w,"checked").set;if(u!==t&&h){const v=new Event("click",{bubbles:a});h.call(l,t),l.dispatchEvent(v)}},[u,t,a]),i.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:t,...s,tabIndex:-1,ref:d,style:{...s.style,...k,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});_.displayName=O;function j(r){return r?"checked":"unchecked"}var W=E,$=R;function F(r){const e=U.c(9);let t,a;e[0]!==r?({className:t,...a}=r,e[0]=r,e[1]=t,e[2]=a):(t=e[1],a=e[2]);let s;e[3]!==t?(s=g("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",t),e[3]=t,e[4]=s):s=e[4];let n;e[5]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx($,{"data-slot":"switch-thumb",className:g("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")}),e[5]=n):n=e[5];let o;return e[6]!==a||e[7]!==s?(o=i.jsx(W,{"data-slot":"switch",className:s,...a,children:n}),e[6]=a,e[7]=s,e[8]=o):o=e[8],o}export{F as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as r,z as i,j as c}from"./index-
|
|
1
|
+
import{c as r,z as i,j as c}from"./index-Cag7rf5f.js";function d(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("w-full caption-bottom text-sm min-w-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("div",{"data-slot":"table-container",className:"w-full min-w-0 bg-background",children:c.jsx("table",{"data-slot":"table",className:s,...l})}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function b(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr]:border-b sticky top-0 z-10 bg-background",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("thead",{"data-slot":"table-header",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function f(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("[&_tr:last-child]:border-0",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("tbody",{"data-slot":"table-body",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function p(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("data-[state=selected]:bg-muted border-b transition-colors",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("tr",{"data-slot":"table-row",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function m(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("th",{"data-slot":"table-head",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}function u(o){const e=r.c(8);let t,l;e[0]!==o?({className:t,...l}=o,e[0]=o,e[1]=t,e[2]=l):(t=e[1],l=e[2]);let s;e[3]!==t?(s=i("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",t),e[3]=t,e[4]=s):s=e[4];let a;return e[5]!==l||e[6]!==s?(a=c.jsx("td",{"data-slot":"table-cell",className:s,...l}),e[5]=l,e[6]=s,e[7]=a):a=e[7],a}export{m as T,b as a,p as b,u as c,f as d,d as e};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as p,Q as k,R as M,j as d,U as f,av as P,$ as S,a0 as F,Z as y,X as V,Y as T,T as D,c as x,z as g}from"./index-
|
|
1
|
+
import{r as p,Q as k,R as M,j as d,U as f,av as P,$ as S,a0 as F,Z as y,X as V,Y as T,T as D,c as x,z as g}from"./index-Cag7rf5f.js";var m="Tabs",[G]=F(m,[y]),w=y(),[L,h]=G(m),C=p.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,onValueChange:r,defaultValue:s,orientation:o="horizontal",dir:i,activationMode:l="automatic",...v}=n,u=k(i),[c,b]=M({prop:t,onChange:r,defaultProp:s??"",caller:m});return d.jsx(L,{scope:a,baseId:P(),value:c,onValueChange:b,orientation:o,dir:u,activationMode:l,children:d.jsx(f.div,{dir:u,"data-orientation":o,...v,ref:e})})});C.displayName=m;var N="TabsList",j=p.forwardRef((n,e)=>{const{__scopeTabs:a,loop:t=!0,...r}=n,s=h(N,a),o=w(a);return d.jsx(D,{asChild:!0,...o,orientation:s.orientation,dir:s.dir,loop:t,children:d.jsx(f.div,{role:"tablist","aria-orientation":s.orientation,...r,ref:e})})});j.displayName=N;var I="TabsTrigger",_=p.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,disabled:r=!1,...s}=n,o=h(I,a),i=w(a),l=A(o.baseId,t),v=E(o.baseId,t),u=t===o.value;return d.jsx(V,{asChild:!0,...i,focusable:!r,active:u,children:d.jsx(f.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":v,"data-state":u?"active":"inactive","data-disabled":r?"":void 0,disabled:r,id:l,...s,ref:e,onMouseDown:T(n.onMouseDown,c=>{!r&&c.button===0&&c.ctrlKey===!1?o.onValueChange(t):c.preventDefault()}),onKeyDown:T(n.onKeyDown,c=>{[" ","Enter"].includes(c.key)&&o.onValueChange(t)}),onFocus:T(n.onFocus,()=>{const c=o.activationMode!=="manual";!u&&!r&&c&&o.onValueChange(t)})})})});_.displayName=I;var R="TabsContent",$=p.forwardRef((n,e)=>{const{__scopeTabs:a,value:t,forceMount:r,children:s,...o}=n,i=h(R,a),l=A(i.baseId,t),v=E(i.baseId,t),u=t===i.value,c=p.useRef(u);return p.useEffect(()=>{const b=requestAnimationFrame(()=>c.current=!1);return()=>cancelAnimationFrame(b)},[]),d.jsx(S,{present:r||u,children:({present:b})=>d.jsx(f.div,{"data-state":u?"active":"inactive","data-orientation":i.orientation,role:"tabpanel","aria-labelledby":l,hidden:!b,id:v,tabIndex:0,...o,ref:e,style:{...n.style,animationDuration:c.current?"0s":void 0},children:b&&s})})});$.displayName=R;function A(n,e){return`${n}-trigger-${e}`}function E(n,e){return`${n}-content-${e}`}var z=C,K=j,B=_,q=$;function O(n){const e=x.c(10);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r===void 0?"pill":r;let o;e[4]!==a?(o=g("flex flex-col gap-2",a),e[4]=a,e[5]=o):o=e[5];let i;return e[6]!==t||e[7]!==o||e[8]!==s?(i=d.jsx(z,{"data-slot":"tabs","data-variant":s,className:o,...t}),e[6]=t,e[7]=o,e[8]=s,e[9]=i):i=e[9],i}function Q(n){const e=x.c(11);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r||"pill",o=s==="underline"?"flex h-[52px] items-center border-b border-border":s==="canvas"?"flex h-10 items-center bg-background relative":"bg-muted text-muted-foreground inline-flex h-10 w-fit items-center justify-center rounded-xl p-[3px]";let i;e[4]!==a||e[5]!==o?(i=g(o,a),e[4]=a,e[5]=o,e[6]=i):i=e[6];let l;return e[7]!==s||e[8]!==t||e[9]!==i?(l=d.jsx(K,{"data-slot":"tabs-list","data-variant":s,className:i,...t}),e[7]=s,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function U(n){const e=x.c(11);let a,t,r;e[0]!==n?({className:a,variant:r,...t}=n,e[0]=n,e[1]=a,e[2]=t,e[3]=r):(a=e[1],t=e[2],r=e[3]);const s=r||"pill",o=s==="underline"?"cursor-pointer flex items-center h-full px-3 relative text-sm whitespace-nowrap border-b-2 mb-[-1px] transition-all text-muted-foreground border-transparent hover:text-foreground data-[state=active]:text-foreground data-[state=active]:border-primary disabled:pointer-events-none disabled:opacity-50":s==="canvas"?"cursor-pointer flex items-center h-full px-3 gap-2.5 text-sm whitespace-nowrap transition-all border-r border-b border-border [&>*]:opacity-50 data-[state=active]:[&>*]:opacity-100 data-[state=active]:border-b-0 last:border-r-0 disabled:pointer-events-none max-w-2xs":"data-[state=active]:bg-background dark:data-[state=active]:text-foreground cursor-pointer focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-lg border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4";let i;e[4]!==a||e[5]!==o?(i=g(o,a),e[4]=a,e[5]=o,e[6]=i):i=e[6];let l;return e[7]!==s||e[8]!==t||e[9]!==i?(l=d.jsx(B,{"data-slot":"tabs-trigger","data-variant":s,className:i,...t}),e[7]=s,e[8]=t,e[9]=i,e[10]=l):l=e[10],l}function X(n){const e=x.c(8);let a,t;e[0]!==n?({className:a,...t}=n,e[0]=n,e[1]=a,e[2]=t):(a=e[1],t=e[2]);let r;e[3]!==a?(r=g("flex-1 outline-none h-full",a),e[3]=a,e[4]=r):r=e[4];let s;return e[5]!==t||e[6]!==r?(s=d.jsx(q,{"data-slot":"tabs-content",className:r,...t}),e[5]=t,e[6]=r,e[7]=s):s=e[7],s}export{U as T,Q as a,X as b,O as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as n,j as r,E as d,r as f,u as x,e as j}from"./index-Cag7rf5f.js";import{T as h}from"./tasks-panel-dDHzZhim.js";import{P as p}from"./index-DktUqq7R.js";import{B as g,a as b,b as T,c as k}from"./breadcrumb-RbNIhzC-.js";import{i as B}from"./Loading01-Bze1WZW-.js";import{u as S}from"./context-CTtcoCIi.js";import"./index-DFtp5nAe.js";import"./popover-BGTZ4Jg2.js";import"./skeleton-vPkfHL7x.js";import"./spinner-BxzkOyD6.js";import"./tooltip-s11dEtpO.js";import"./index-BhvDbEFS.js";import"./constants-5XohhD_f.js";import"./use-mcp-prompts-CAEcR_lH.js";import"./useQuery-Clb9lPv3.js";import"./dialog-DxH8GO4d.js";import"./X-gf_3nNHG.js";import"./form--EiAjir4.js";import"./label-C6bT3eG4.js";import"./input-BU10AGC6.js";import"./usage-B8eRkRZY.js";import"./ArrowUp-WlBoHBUF.js";import"./ChevronDown-92pMp2oX.js";import"./Edit01-DTFNmaeE.js";import"./Lock01-B_0cjFTJ.js";import"./Users03-DpxIJiCb.js";import"./XCircle-DWwJhgPa.js";import"./AlertCircle-wzCWgJKp.js";import"./select-DDvIxYC9.js";import"./Check-CxalVwyD.js";import"./use-preferences-D5ktNb6g.js";import"./localstorage-keys-Cc-8xT2Q.js";import"./useMutation-CCDwZCqX.js";import"./ArrowLeft-CRiE2QCS.js";import"./use-copy-BFB-OGf3.js";import"./tabs-DK6oUINY.js";import"./badge-B3jUOBeA.js";import"./collapsible-D_ju1zYz.js";import"./Code01-CSlTufbJ.js";import"./integration-icon-BKhIZQox.js";import"./Container-DMtRMvOi.js";import"./use-virtual-mcp-gWnd6DnQ.js";import"./use-collections-BG9rywMN.js";import"./SearchMd-F_aXmF-3.js";import"./use-create-virtual-mcp-Boh0ylO8.js";import"./decopilot-events-Dwy6dXgg.js";import"./ChevronRight-tF0xM-4Z.js";import"./Copy01-DEpVJelC.js";import"./marked.esm-BaswSlok.js";import"./markdown-COW3UK8R.js";import"./mcp-app-renderer-C0sSQYUl.js";import"./types-DRyYjHsT.js";import"./Eye-DZR5Sgqw.js";import"./Globe02-BLgrzxIE.js";import"./LayersTwo01-BvTnUwGe.js";import"./XClose-C-K_Vaja.js";import"./collection-search-Dta_7bLf.js";import"./use-connection-Dx2EaFOc.js";import"./generate-id-Dyweu44Y.js";import"./Clock-B7L5NA_R.js";import"./Trash01-Bwp87fCr.js";import"./user-Dc2KBRdg.js";import"./avatar-B31kskAu.js";import"./format-time-CMKyl-GC.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./CheckCircle-BqWi0uzz.js";import"./Plus-LN4mY-9i.js";import"./dropdown-menu-CFEWQa_K.js";import"./use-llm-BSkNsxRE.js";import"./use-binding-Dc1kKEIB.js";import"./binder-CHjF8z7t.js";import"./checkbox-DNOEZe6O.js";import"./AlignLeft-Cm7D7Jz2.js";import"./Image01-CLI9NfSq.js";import"./RefreshCcw01-C0C5ptaM.js";import"./Settings01-CaZwmsCJ.js";import"./useSuspenseInfiniteQuery-a8ay6F8p.js";import"./infiniteQueryObserver-B3dSQxWm.js";function v(){const t=n.c(8),{org:o,project:s}=x(),a=j(),{switchToTask:c}=S();let i;t[0]!==a||t[1]!==o.slug||t[2]!==s.slug||t[3]!==c?(i=async u=>{await c(u),a({to:"/$org/$project",params:{org:o.slug,project:s.slug}})},t[0]=a,t[1]=o.slug,t[2]=s.slug,t[3]=c,t[4]=i):i=t[4];const l=i;let m;t[5]===Symbol.for("react.memo_cache_sentinel")?(m=r.jsx(p.Header,{children:r.jsx(p.Header.Left,{children:r.jsx(g,{children:r.jsx(b,{children:r.jsx(T,{children:r.jsx(k,{children:"Tasks"})})})})})}),t[5]=m):m=t[5];let e;return t[6]!==l?(e=r.jsxs(p,{children:[m,r.jsx(p.Content,{children:r.jsx("div",{className:"h-full flex flex-col overflow-hidden",children:r.jsx(h,{onTaskSelect:l})})})]}),t[6]=l,t[7]=e):e=t[7],e}function Vt(){const t=n.c(1);let o;return t[0]===Symbol.for("react.memo_cache_sentinel")?(o=r.jsx(d,{children:r.jsx(f.Suspense,{fallback:r.jsx("div",{className:"flex h-full items-center justify-center",children:r.jsx(B,{size:32,className:"animate-spin text-muted-foreground"})}),children:r.jsx(v,{})})}),t[0]=o):o=t[0],o}export{Vt as default};
|