decocms 2.312.7 → 2.313.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-C2o5q6vc.js → AlertCircle-VR9e1Kdm.js} +1 -1
- package/dist/client/assets/{Archive-DFar6uKs.js → Archive-C8b1PbwD.js} +1 -1
- package/dist/client/assets/{ArrowNarrowLeft-Dc1sniQF.js → ArrowNarrowLeft-BomndbPT.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-DoW21rsG.js → ArrowUpRight-BBedSsf2.js} +1 -1
- package/dist/client/assets/{Check-C6Q1bblL.js → Check-_x9Smiby.js} +1 -1
- package/dist/client/assets/{CheckCircle-BAZINfwL.js → CheckCircle-DqkJltcw.js} +1 -1
- package/dist/client/assets/{ChevronDown-CLABqX5x.js → ChevronDown-B0KKFW7z.js} +1 -1
- package/dist/client/assets/{ChevronRight-srFzWZbn.js → ChevronRight-DmzXQRyN.js} +1 -1
- package/dist/client/assets/{ChevronUp-CYhx7PBM.js → ChevronUp-D80nIxW6.js} +1 -1
- package/dist/client/assets/{Container-CDeA-o5s.js → Container-hPWrMd_K.js} +1 -1
- package/dist/client/assets/{DotsVertical-Cr_XWVYH.js → DotsVertical-DTAmMuFp.js} +1 -1
- package/dist/client/assets/{LayoutLeft-D10kQiES.js → LayoutLeft-CvHk6_1v.js} +1 -1
- package/dist/client/assets/{LinkExternal01-D7Bf92jL.js → LinkExternal01-ChBg4lCh.js} +1 -1
- package/dist/client/assets/{Lock01-B5nxky6K.js → Lock01-omvVfDsq.js} +1 -1
- package/dist/client/assets/{Palette-BzdGUPw1.js → Palette-Rwaz6Ux1.js} +1 -1
- package/dist/client/assets/{Play-Cv1sPHtp.js → Play-B5Y5OgEF.js} +1 -1
- package/dist/client/assets/{Plus-D7J-ZpF_.js → Plus-BfYJ_fhU.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-1mb0qscd.js → RefreshCcw01-BVYIhLNw.js} +1 -1
- package/dist/client/assets/{SearchMd-B0Lvg3Xk.js → SearchMd-x9jEzWto.js} +1 -1
- package/dist/client/assets/{Settings02-CxQQ6hnP.js → Settings02-A2QUyA04.js} +1 -1
- package/dist/client/assets/{Shield01-CWlsOsl1.js → Shield01-VFZnVzgJ.js} +1 -1
- package/dist/client/assets/{Star01-DxYo9bx0.js → Star01-Bsoh5hNL.js} +1 -1
- package/dist/client/assets/{Sun-C3FNZe_T.js → Sun-Bp5SyQ9x.js} +1 -1
- package/dist/client/assets/{Tool01-8PZBFCSr.js → Tool01-1p7InVa9.js} +1 -1
- package/dist/client/assets/{Trash01-sqipAjJs.js → Trash01-CCICAviE.js} +1 -1
- package/dist/client/assets/{User01-CMGdQkcX.js → User01-DYAGpiu4.js} +1 -1
- package/dist/client/assets/{Users03-B2lBHlGZ.js → Users03-C-LNtnHq.js} +1 -1
- package/dist/client/assets/{X-UcFDhK-I.js → X-DOmcQBqy.js} +1 -1
- package/dist/client/assets/{XCircle-Rqvc6PWM.js → XCircle-DHsXO2jG.js} +1 -1
- package/dist/client/assets/{XClose-BEPgM0J7.js → XClose-C9tO3uLm.js} +1 -1
- package/dist/client/assets/{Zap-CV9G-Zfk.js → Zap-Cr3JL-JC.js} +1 -1
- package/dist/client/assets/{ZapSquare-BTR8NCmq.js → ZapSquare-CLYRUiny.js} +1 -1
- package/dist/client/assets/{accordion-CvWJabH1.js → accordion-B8b6ADv4.js} +1 -1
- package/dist/client/assets/{agent-icon-D6T8ZDaV.js → agent-icon-B3dbwQQF.js} +1 -1
- package/dist/client/assets/{agents-list-DyNXshyO.js → agents-list-BOs5vYpf.js} +1 -1
- package/dist/client/assets/{ai-providers-7aj7Dvnr.js → ai-providers-DHyC2swB.js} +1 -1
- package/dist/client/assets/{alert-dialog-CL1ufXLZ.js → alert-dialog-BJTNrOhl.js} +1 -1
- package/dist/client/assets/{auth-catchall-B-Lg7W2q.js → auth-catchall-BaS7NCCR.js} +1 -1
- package/dist/client/assets/{automation-list-row-CKuBxKCh.js → automation-list-row-CjV4TdfL.js} +1 -1
- package/dist/client/assets/{automations-b35IyYNi.js → automations-DDxuxMI7.js} +1 -1
- package/dist/client/assets/{avatar-Cz84VRfi.js → avatar-CVlDCU5h.js} +1 -1
- package/dist/client/assets/{badge-BDIezRWl.js → badge-DOjxQOhJ.js} +1 -1
- package/dist/client/assets/{brand-context-Bw8yIqM4.js → brand-context-Dx6aAWU2.js} +1 -1
- package/dist/client/assets/{card-BkUSFoeH.js → card-DotruZR7.js} +1 -1
- package/dist/client/assets/{chat-context-COr23Pvp.js → chat-context-CgTzImbK.js} +1 -1
- package/dist/client/assets/{checkbox-D9uJNURD.js → checkbox-DrmZvzrT.js} +1 -1
- package/dist/client/assets/{collection-detail-r3yDw2nE.js → collection-detail-CcTNmbP8.js} +1 -1
- package/dist/client/assets/{collection-display-button-BkhKa8Fq.js → collection-display-button-C4cuirx7.js} +1 -1
- package/dist/client/assets/{collection-search-CYRwFc6W.js → collection-search-BF8ZdP7L.js} +1 -1
- package/dist/client/assets/{collection-search-CC32ghxz.js → collection-search-DWrG5qGb.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-CsPeZBHE.js → collection-table-wrapper-B4KtrooZ.js} +1 -1
- package/dist/client/assets/{collection-tabs-DjuikHg2.js → collection-tabs-JbvPv0ww.js} +1 -1
- package/dist/client/assets/{collections-h6SIG2VD.js → collections-BccjtmBC.js} +1 -1
- package/dist/client/assets/{command-B6Opzxt3.js → command-BJCrWXQl.js} +1 -1
- package/dist/client/assets/{connection-card-Do5z7MRC.js → connection-card-BHwpWrBx.js} +1 -1
- package/dist/client/assets/{connection-detail-CCkyT_oS.js → connection-detail-DYbyDpiw.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-DTUZBSNs.js → connection-form-helpers-B_EAPKs9.js} +1 -1
- package/dist/client/assets/{connections-D1l0zvWe.js → connections-Cr6QbSRh.js} +1 -1
- package/dist/client/assets/{constants-CkJVGrih.js → constants-CImNHUX-.js} +1 -1
- package/dist/client/assets/{constants-eHuCaQ_P.js → constants-kgqnlOHa.js} +1 -1
- package/dist/client/assets/{dialog-BCrxZaWW.js → dialog-CK63STP4.js} +1 -1
- package/dist/client/assets/{domain-settings-DjfYV1So.js → domain-settings-6QMSs4wn.js} +1 -1
- package/dist/client/assets/{drawer-CAqFFbhs.js → drawer-wCIWEAI5.js} +1 -1
- package/dist/client/assets/{dropdown-menu-CapVicMN.js → dropdown-menu-B7T7Iogo.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-vfq9KprT.js → dynamic-plugin-layout-C3G8K_nu.js} +1 -1
- package/dist/client/assets/{empty-state-DrcmKKqy.js → empty-state-BU8pZLnA.js} +1 -1
- package/dist/client/assets/{empty-state-CyNHLjJr.js → empty-state-Du82mGBp.js} +1 -1
- package/dist/client/assets/{extract-connection-data-DkJkN3o2.js → extract-connection-data-BVruRO7o.js} +1 -1
- package/dist/client/assets/{features-C2-XIDYj.js → features-BQ0vyboB.js} +1 -1
- package/dist/client/assets/{form-te3NdICa.js → form-ePgXfPjK.js} +1 -1
- package/dist/client/assets/{general-B-vosNM8.js → general-B_ZIET5j.js} +1 -1
- package/dist/client/assets/{index-CBCw04gM.js → index-3_pBkl9I.js} +1 -1
- package/dist/client/assets/{index-C_s96l4K.js → index-BUosmNAK.js} +1 -1
- package/dist/client/assets/{index-CkV3bKsF.js → index-BziHhYLY.js} +1 -1
- package/dist/client/assets/{index-CKCUmH_m.js → index-CJcKkFSf.js} +3 -3
- package/dist/client/assets/{index-Csm4dluq.js → index-CPA6TTAv.js} +1 -1
- package/dist/client/assets/{index-Dt8YClUX.js → index-CYtBy4YL.js} +1 -1
- package/dist/client/assets/index-CcjQJiQG.js +547 -0
- package/dist/client/assets/{index-CzeuUc9U.css → index-Cm3pqTt-.css} +1 -1
- package/dist/client/assets/{index-C7jN5neb.js → index-CsKe3YZC.js} +3 -3
- package/dist/client/assets/{index-CwW_wLKg.js → index-DMzQ42Ay.js} +1 -1
- package/dist/client/assets/{index-fexbvrAq.js → index-Dtca8DdX.js} +1 -1
- package/dist/client/assets/{index-BRxzMJGJ.js → index-Q_nE-B09.js} +1 -1
- package/dist/client/assets/{index-zwJpQueu.js → index-SHpCCFvp.js} +1 -1
- package/dist/client/assets/{index-5jrl6Co-.js → index-_CUdtdz8.js} +2 -2
- package/dist/client/assets/{index-B_6WEs0q.js → index-aVeyrrsb.js} +1 -1
- package/dist/client/assets/{index-BKbuKSG2.js → index-ig98RAvX.js} +1 -1
- package/dist/client/assets/{index-Bg-dgfxo.js → index-pKuooFel.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-DUrDxQsV.js → infiniteQueryObserver-7fxmXXdp.js} +1 -1
- package/dist/client/assets/{input-D-ZjkErJ.js → input-Ko_SrZ4_.js} +1 -1
- package/dist/client/assets/{integration-icon-Cnjj_f25.js → integration-icon-DcYB2a8l.js} +1 -1
- package/dist/client/assets/{label-BYocE4uU.js → label-D_dfHcwE.js} +1 -1
- package/dist/client/assets/{layout-DZBilHGN.js → layout-Dw6LlsHX.js} +1 -1
- package/dist/client/assets/{lean-canvas-recruit-modal-DTNkFQF7.js → lean-canvas-recruit-modal-CFAZK9w1.js} +1 -1
- package/dist/client/assets/{login-TpNdCcSE.js → login-CWpiwEaq.js} +1 -1
- package/dist/client/assets/{members-Bc9_guMN.js → members-C4z0efAZ.js} +1 -1
- package/dist/client/assets/{monaco-editor-Bk3MeNtT.js → monaco-editor-C6DOPPfO.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-atuJDMtL.js → monitoring-stats-row-BKcjpP7m.js} +1 -1
- package/dist/client/assets/{oauth-callback-BU51YAFZ.js → oauth-callback-BN7age-F.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DHobA1oV.js → oauth-callback-ai-provider-RkxZgbDA.js} +1 -1
- package/dist/client/assets/{onboarding-xa_XNWs7.js → onboarding-BYACWd1_.js} +1 -1
- package/dist/client/assets/{org-layout-DfZsgPJH.js → org-layout-kAlrK_Sz.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-BNtiSb4W.js → org-plugin-layout-DUXHrilB.js} +1 -1
- package/dist/client/assets/{pair-DlFSBO5g.js → pair-7uYiW7Rh.js} +39 -39
- package/dist/client/assets/{plugin-empty-state-B9V3iWPP.js → plugin-empty-state-DBdc9DDY.js} +1 -1
- package/dist/client/assets/{plugin-header-Sl8TyoFF.js → plugin-header-_TX1Y9Vb.js} +1 -1
- package/dist/client/assets/{plugin-layout-rl6DCWgI.js → plugin-layout-BNL2k5o3.js} +1 -1
- package/dist/client/assets/{popover-Dn4j0mPz.js → popover-B166_aeY.js} +1 -1
- package/dist/client/assets/{profile-DUg1r9pS.js → profile-DVs_o4X-.js} +1 -1
- package/dist/client/assets/{project-app-view-Ba31KrUb.js → project-app-view-CsESRZfU.js} +1 -1
- package/dist/client/assets/registry-Cf9xWu3H.js +2 -0
- package/dist/client/assets/{registry-layout-ZGApx0j6.js → registry-layout-CiycvO4e.js} +1 -1
- package/dist/client/assets/{required-auth-layout-DZwCJHl_.js → required-auth-layout-CzyyMsWp.js} +1 -1
- package/dist/client/assets/{reset-password-DPn3UIPm.js → reset-password-CAqQV6rn.js} +1 -1
- package/dist/client/assets/{roles-CKivK7GA.js → roles-DwmHbB0D.js} +1 -1
- package/dist/client/assets/{scroll-area-CEHywN8A.js → scroll-area-CYD6rIcU.js} +1 -1
- package/dist/client/assets/{search-input-DQUdthWP.js → search-input-DDZfQYkG.js} +1 -1
- package/dist/client/assets/{select-B5UhPE3o.js → select-DhMWgQ3s.js} +1 -1
- package/dist/client/assets/{select-model-CTDZYKlK.js → select-model-Twg2cKHt.js} +1 -1
- package/dist/client/assets/{settings-layout-C7k8LFse.js → settings-layout-DLGNEr9H.js} +1 -1
- package/dist/client/assets/{settings-section-CLiE2XoW.js → settings-section-CIvaDAqO.js} +1 -1
- package/dist/client/assets/{shell-layout-CSQshMOg.js → shell-layout-Ddrq5Nx0.js} +1 -1
- package/dist/client/assets/{sidebar-yJ2bKdp0.js → sidebar-C6KGCyfz.js} +1 -1
- package/dist/client/assets/{skeleton-DO9x4Rmx.js → skeleton-CAInevCf.js} +1 -1
- package/dist/client/assets/{spinner-DKEalby6.js → spinner-DIWCCR1u.js} +1 -1
- package/dist/client/assets/{sso-DOSWI8BP.js → sso-BF1j_yNV.js} +1 -1
- package/dist/client/assets/store-registry-WzODKi73.js +2 -0
- package/dist/client/assets/{store-D5UphBa3.js → store-tnnxPHF8.js} +1 -1
- package/dist/client/assets/{switch-DnFBbNMj.js → switch-B_6i5d1i.js} +1 -1
- package/dist/client/assets/{table-4kNaNJRz.js → table-DKmWjuZu.js} +1 -1
- package/dist/client/assets/{tabs-B-6zDMoB.js → tabs-DbLM1syJ.js} +1 -1
- package/dist/client/assets/{task-status-CH2K09YA.js → task-status-6a9U-fmJ.js} +1 -1
- package/dist/client/assets/{textarea-4YHnq21B.js → textarea-D2OceG5K.js} +1 -1
- package/dist/client/assets/{toggle-group-ClNyHH4s.js → toggle-group-DmWZZQ5J.js} +1 -1
- package/dist/client/assets/{tools-list-B79oEyUv.js → tools-list-CjYs-Nl2.js} +1 -1
- package/dist/client/assets/{tooltip-CBWMgMUA.js → tooltip-DEoNevOj.js} +1 -1
- package/dist/client/assets/{types-DzQyumzv.js → types-DLyGIXuU.js} +1 -1
- package/dist/client/assets/{use-ai-providers-6IUbUXz_.js → use-ai-providers-BRYLtBQi.js} +1 -1
- package/dist/client/assets/{use-collections-fNwAKHqm.js → use-collections-T8lAmXe-.js} +1 -1
- package/dist/client/assets/{use-connection-kZb9ifhw.js → use-connection-CHxcvnwB.js} +1 -1
- package/dist/client/assets/{use-copy-B9Cl132r.js → use-copy-DTsrGSHm.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-D4YXt-ZE.js → use-create-virtual-mcp-1k0qsXpZ.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-BsxczRNv.js → use-debounced-autosave-DkSi9ajl.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-BHxLXAgz.js → use-decopilot-events-ChHy1YwQ.js} +1 -1
- package/dist/client/assets/{use-delete-connection-DzBX3Y5X.js → use-delete-connection-Da8pd8GR.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-DC9PNnqU.js → use-infinite-scroll-4R3Erhbk.js} +1 -1
- package/dist/client/assets/{use-list-state-Cm9upsvA.js → use-list-state-DD5dSsUl.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-CwvPDTWi.js → use-mcp-tools-DLLnZTwr.js} +1 -1
- package/dist/client/assets/{use-members-ClIilp4X.js → use-members-Du6jDL4h.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-DYmmiFA6.js → use-navigate-to-agent-BOtA8s0B.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-DgUDC_02.js → use-org-auth-client-CLIYZ8XR.js} +1 -1
- package/dist/client/assets/{use-org-sso-DnHHFQsb.js → use-org-sso-cXprxxGV.js} +1 -1
- package/dist/client/assets/{use-organization-roles-Bz3GUN0h.js → use-organization-roles-BfqEa00I.js} +1 -1
- package/dist/client/assets/{use-organization-settings-DfjHTWfJ.js → use-organization-settings-DH3Cx32-.js} +1 -1
- package/dist/client/assets/{use-registry-connections-B6kptdp7.js → use-registry-connections-Di-IdwT_.js} +1 -1
- package/dist/client/assets/{use-status-sounds-BqG86mfx.js → use-status-sounds-CowwkJT4.js} +1 -1
- package/dist/client/assets/{use-tasks-POUiiV_o.js → use-tasks-2n2QJ_JS.js} +1 -1
- package/dist/client/assets/{use-view-mode-CrZp_Guy.js → use-view-mode-Bv0IukaU.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-BQvDkFLT.js → use-virtual-mcp-MITPdtzC.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-CY-Wzev4.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-DV-M7yay.js +1 -0
- package/dist/client/assets/{user-DSZMPWc6.js → user-DiRuL5kE.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-Cgp8wSpL.js → view-mode-toggle-cZTPYUmn.js} +1 -1
- package/dist/client/assets/{workflow-Dywulu_i.js → workflow-Cnw6Z3Ej.js} +1 -1
- package/dist/client/assets/workflow-detail-CkzZBhlC.js +1 -0
- package/dist/client/index.html +2 -2
- package/dist/server/cli.js +1 -1
- package/dist/server/node_modules/pg-int8/LICENSE +13 -0
- package/dist/server/node_modules/pg-int8/README.md +16 -0
- package/dist/server/node_modules/pg-int8/index.js +100 -0
- package/dist/server/node_modules/pg-int8/package.json +24 -0
- package/dist/server/node_modules/split2/LICENSE +13 -0
- package/dist/server/node_modules/split2/README.md +85 -0
- package/dist/server/node_modules/split2/bench.js +27 -0
- package/dist/server/node_modules/split2/index.js +141 -0
- package/dist/server/node_modules/split2/package.json +39 -0
- package/dist/server/node_modules/split2/test.js +409 -0
- package/package.json +1 -1
- package/dist/client/assets/index-C_gN6VMh.js +0 -547
- package/dist/client/assets/registry-EC12Boik.js +0 -2
- package/dist/client/assets/store-registry-DipUkX4F.js +0 -2
- package/dist/client/assets/useInfiniteQuery-BiqW5IFh.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-ZvSBUcQH.js +0 -1
- package/dist/client/assets/workflow-detail-CnTjiGvc.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/plugin-header-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/plugin-header-_TX1Y9Vb.js","assets/Check-_x9Smiby.js","assets/ChevronDown-B0KKFW7z.js","assets/login-CWpiwEaq.js","assets/input-Ko_SrZ4_.js","assets/reset-password-CAqQV6rn.js","assets/shell-layout-Ddrq5Nx0.js","assets/dialog-CK63STP4.js","assets/X-DOmcQBqy.js","assets/required-auth-layout-CzyyMsWp.js","assets/use-tasks-2n2QJ_JS.js","assets/use-collections-T8lAmXe-.js","assets/constants-CImNHUX-.js","assets/use-organization-settings-DH3Cx32-.js","assets/use-org-sso-cXprxxGV.js","assets/Lock01-omvVfDsq.js","assets/Archive-C8b1PbwD.js","assets/onboarding-BYACWd1_.js","assets/label-D_dfHcwE.js","assets/Users03-C-LNtnHq.js","assets/CheckCircle-DqkJltcw.js","assets/Palette-Rwaz6Ux1.js","assets/index-CYtBy4YL.js","assets/sidebar-C6KGCyfz.js","assets/LayoutLeft-CvHk6_1v.js","assets/tooltip-DEoNevOj.js","assets/ZapSquare-CLYRUiny.js","assets/index-BUosmNAK.js","assets/agent-icon-B3dbwQQF.js","assets/AlertCircle-VR9e1Kdm.js","assets/Tool01-1p7InVa9.js","assets/XClose-C9tO3uLm.js","assets/RefreshCcw01-BVYIhLNw.js","assets/ArrowNarrowLeft-BomndbPT.js","assets/XCircle-DHsXO2jG.js","assets/ArrowUpRight-BBedSsf2.js","assets/ChevronRight-DmzXQRyN.js","assets/ChevronUp-D80nIxW6.js","assets/DotsVertical-DTAmMuFp.js","assets/Container-hPWrMd_K.js","assets/Star01-Bsoh5hNL.js","assets/SearchMd-x9jEzWto.js","assets/LinkExternal01-ChBg4lCh.js","assets/Sun-Bp5SyQ9x.js","assets/Play-B5Y5OgEF.js","assets/Plus-BfYJ_fhU.js","assets/Settings02-A2QUyA04.js","assets/Shield01-VFZnVzgJ.js","assets/Trash01-CCICAviE.js","assets/User01-DYAGpiu4.js","assets/Zap-Cr3JL-JC.js","assets/pair-7uYiW7Rh.js","assets/index-SHpCCFvp.js","assets/use-copy-DTsrGSHm.js","assets/differenceInSeconds-NQ4PDo0z.js","assets/content-blocks-o63cs2vh.js","assets/types-DLyGIXuU.js","assets/chat-context-CgTzImbK.js","assets/use-virtual-mcp-MITPdtzC.js","assets/use-ai-providers-BRYLtBQi.js","assets/use-decopilot-events-ChHy1YwQ.js","assets/create-sse-subscription-CxkOgzKf.js","assets/integration-icon-DcYB2a8l.js","assets/skeleton-CAInevCf.js","assets/popover-B166_aeY.js","assets/drawer-wCIWEAI5.js","assets/avatar-CVlDCU5h.js","assets/alert-dialog-BJTNrOhl.js","assets/form-ePgXfPjK.js","assets/spinner-DIWCCR1u.js","assets/index-3_pBkl9I.js","assets/use-mcp-tools-DLLnZTwr.js","assets/index-CcjQJiQG.js","assets/switch-B_6i5d1i.js","assets/use-connection-CHxcvnwB.js","assets/lean-canvas-recruit-modal-CFAZK9w1.js","assets/use-navigate-to-agent-BOtA8s0B.js","assets/collection-search-DWrG5qGb.js","assets/checkbox-DrmZvzrT.js","assets/extract-connection-data-BVruRO7o.js","assets/constants-kgqnlOHa.js","assets/collections-BccjtmBC.js","assets/tabs-DbLM1syJ.js","assets/select-DhMWgQ3s.js","assets/toggle-group-DmWZZQ5J.js","assets/select-model-Twg2cKHt.js","assets/ai-providers-logos-DD3qZ33J.js","assets/settings-section-CIvaDAqO.js","assets/card-DotruZR7.js","assets/unwrap-tool-result-BYXdCQMg.js","assets/dropdown-menu-B7T7Iogo.js","assets/index-Q_nE-B09.js","assets/question-004-sINsf4GQ.js","assets/connection-slug-eyAPH6o3.js","assets/connection-card-BHwpWrBx.js","assets/use-registry-connections-Di-IdwT_.js","assets/useInfiniteQuery-CY-Wzev4.js","assets/infiniteQueryObserver-7fxmXXdp.js","assets/collection-tabs-JbvPv0ww.js","assets/badge-DOjxQOhJ.js","assets/textarea-D2OceG5K.js","assets/connection-form-helpers-B_EAPKs9.js","assets/use-infinite-scroll-4R3Erhbk.js","assets/useSuspenseInfiniteQuery-DV-M7yay.js","assets/collection-search-BF8ZdP7L.js","assets/use-create-virtual-mcp-1k0qsXpZ.js","assets/empty-state-Du82mGBp.js","assets/task-status-6a9U-fmJ.js","assets/index-CJcKkFSf.js","assets/command-BJCrWXQl.js","assets/index-aVeyrrsb.js","assets/use-status-sounds-CowwkJT4.js","assets/accordion-B8b6ADv4.js","assets/user-DiRuL5kE.js","assets/tools-list-CjYs-Nl2.js","assets/use-debounced-autosave-DkSi9ajl.js","assets/scroll-area-CYD6rIcU.js","assets/index-DMzQ42Ay.js","assets/view-mode-toggle-cZTPYUmn.js","assets/automation-list-row-CjV4TdfL.js","assets/search-input-DDZfQYkG.js","assets/index-DDGTF8rc.css","assets/index-ig98RAvX.js","assets/settings-layout-DLGNEr9H.js","assets/connections-Cr6QbSRh.js","assets/collection-display-button-C4cuirx7.js","assets/use-delete-connection-Da8pd8GR.js","assets/use-list-state-DD5dSsUl.js","assets/use-view-mode-Bv0IukaU.js","assets/connection-detail-DYbyDpiw.js","assets/index-BziHhYLY.js","assets/index-Dtca8DdX.js","assets/index-CPA6TTAv.js","assets/use-members-Du6jDL4h.js","assets/use-org-auth-client-CLIYZ8XR.js","assets/layout-Dw6LlsHX.js","assets/monitoring-stats-row-BKcjpP7m.js","assets/collection-detail-CcTNmbP8.js","assets/index-pKuooFel.js","assets/monaco-editor-C6DOPPfO.js","assets/empty-state-BU8pZLnA.js","assets/index-CsKe3YZC.js","assets/table-DKmWjuZu.js","assets/general-B_ZIET5j.js","assets/domain-settings-6QMSs4wn.js","assets/features-BQ0vyboB.js","assets/brand-context-Dx6aAWU2.js","assets/ai-providers-DHyC2swB.js","assets/formatDistanceToNow-Cb2QZZJn.js","assets/members-C4z0efAZ.js","assets/collection-table-wrapper-B4KtrooZ.js","assets/use-organization-roles-BfqEa00I.js","assets/roles-DwmHbB0D.js","assets/sso-BF1j_yNV.js","assets/profile-DVs_o4X-.js","assets/store-tnnxPHF8.js","assets/workflow-Cnw6Z3Ej.js","assets/workflow-detail-CkzZBhlC.js","assets/org-plugin-layout-DUXHrilB.js","assets/plugin-layout-BNL2k5o3.js","assets/agents-list-BOs5vYpf.js","assets/automations-DDxuxMI7.js","assets/dynamic-plugin-layout-C3G8K_nu.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
function F$(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();const B$="modulepreload",V$=function(e){return"/"+e},J2={},At=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){let l=function(f){return Promise.all(f.map(m=>Promise.resolve(m).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),d=c?.nonce||c?.getAttribute("nonce");i=l(n.map(f=>{if(f=V$(f),f in J2)return;J2[f]=!0;const m=f.endsWith(".css"),p=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${p}`))return;const g=document.createElement("link");if(g.rel=m?"stylesheet":B$,m||(g.as="script"),g.crossOrigin="",g.href=f,d&&g.setAttribute("nonce",d),document.head.appendChild(g),m)return new Promise((v,y)=>{g.addEventListener("load",v),g.addEventListener("error",()=>y(Error(`Unable to preload CSS for ${f}`)))})}))}function s(l){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=l,window.dispatchEvent(c),!c.defaultPrevented)throw l}return i.then(l=>{for(const c of l||[])c.status==="rejected"&&s(c.reason);return t().catch(s)})};var tle=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function la(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var __={exports:{}},Bu={};var eO;function q$(){if(eO)return Bu;eO=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,s){var l=null;if(s!==void 0&&(l=""+s),i.key!==void 0&&(l=""+i.key),"key"in i){s={};for(var c in i)c!=="key"&&(s[c]=i[c])}else s=i;return i=s.ref,{$$typeof:e,type:r,key:l,ref:i!==void 0?i:null,props:s}}return Bu.Fragment=t,Bu.jsx=n,Bu.jsxs=n,Bu}var tO;function H$(){return tO||(tO=1,__.exports=q$()),__.exports}var T=H$(),y_={exports:{}},Vu={},b_={exports:{}},w_={};var nO;function G$(){return nO||(nO=1,(function(e){function t(q,W){var ee=q.length;q.push(W);e:for(;0<ee;){var ae=ee-1>>>1,Q=q[ae];if(0<i(Q,W))q[ae]=W,q[ee]=Q,ee=ae;else break e}}function n(q){return q.length===0?null:q[0]}function r(q){if(q.length===0)return null;var W=q[0],ee=q.pop();if(ee!==W){q[0]=ee;e:for(var ae=0,Q=q.length,k=Q>>>1;ae<k;){var K=2*(ae+1)-1,V=q[K],D=K+1,F=q[D];if(0>i(V,ee))D<Q&&0>i(F,V)?(q[ae]=F,q[D]=ee,ae=D):(q[ae]=V,q[K]=ee,ae=K);else if(D<Q&&0>i(F,ee))q[ae]=F,q[D]=ee,ae=D;else break e}}return W}function i(q,W){var ee=q.sortIndex-W.sortIndex;return ee!==0?ee:q.id-W.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,c=l.now();e.unstable_now=function(){return l.now()-c}}var d=[],f=[],m=1,p=null,g=3,v=!1,y=!1,b=!1,x=!1,S=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function C(q){for(var W=n(f);W!==null;){if(W.callback===null)r(f);else if(W.startTime<=q)r(f),W.sortIndex=W.expirationTime,t(d,W);else break;W=n(f)}}function O(q){if(b=!1,C(q),!y)if(n(d)!==null)y=!0,A||(A=!0,B());else{var W=n(f);W!==null&&re(O,W.startTime-q)}}var A=!1,M=-1,P=5,L=-1;function H(){return x?!0:!(e.unstable_now()-L<P)}function j(){if(x=!1,A){var q=e.unstable_now();L=q;var W=!0;try{e:{y=!1,b&&(b=!1,E(M),M=-1),v=!0;var ee=g;try{t:{for(C(q),p=n(d);p!==null&&!(p.expirationTime>q&&H());){var ae=p.callback;if(typeof ae=="function"){p.callback=null,g=p.priorityLevel;var Q=ae(p.expirationTime<=q);if(q=e.unstable_now(),typeof Q=="function"){p.callback=Q,C(q),W=!0;break t}p===n(d)&&r(d),C(q)}else r(d);p=n(d)}if(p!==null)W=!0;else{var k=n(f);k!==null&&re(O,k.startTime-q),W=!1}}break e}finally{p=null,g=ee,v=!1}W=void 0}}finally{W?B():A=!1}}}var B;if(typeof R=="function")B=function(){R(j)};else if(typeof MessageChannel<"u"){var U=new MessageChannel,Z=U.port2;U.port1.onmessage=j,B=function(){Z.postMessage(null)}}else B=function(){S(j,0)};function re(q,W){M=S(function(){q(e.unstable_now())},W)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(q){q.callback=null},e.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<q?Math.floor(1e3/q):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_next=function(q){switch(g){case 1:case 2:case 3:var W=3;break;default:W=g}var ee=g;g=W;try{return q()}finally{g=ee}},e.unstable_requestPaint=function(){x=!0},e.unstable_runWithPriority=function(q,W){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var ee=g;g=q;try{return W()}finally{g=ee}},e.unstable_scheduleCallback=function(q,W,ee){var ae=e.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?ae+ee:ae):ee=ae,q){case 1:var Q=-1;break;case 2:Q=250;break;case 5:Q=1073741823;break;case 4:Q=1e4;break;default:Q=5e3}return Q=ee+Q,q={id:m++,callback:W,priorityLevel:q,startTime:ee,expirationTime:Q,sortIndex:-1},ee>ae?(q.sortIndex=ee,t(f,q),n(d)===null&&q===n(f)&&(b?(E(M),M=-1):b=!0,re(O,ee-ae))):(q.sortIndex=Q,t(d,q),y||v||(y=!0,A||(A=!0,B()))),q},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(q){var W=g;return function(){var ee=g;g=W;try{return q.apply(this,arguments)}finally{g=ee}}}})(w_)),w_}var rO;function K$(){return rO||(rO=1,b_.exports=G$()),b_.exports}var S_={exports:{}},rt={};var iO;function Z$(){if(iO)return rt;iO=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),g=Symbol.iterator;function v(k){return k===null||typeof k!="object"?null:(k=g&&k[g]||k["@@iterator"],typeof k=="function"?k:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,x={};function S(k,K,V){this.props=k,this.context=K,this.refs=x,this.updater=V||y}S.prototype.isReactComponent={},S.prototype.setState=function(k,K){if(typeof k!="object"&&typeof k!="function"&&k!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,k,K,"setState")},S.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function E(){}E.prototype=S.prototype;function R(k,K,V){this.props=k,this.context=K,this.refs=x,this.updater=V||y}var C=R.prototype=new E;C.constructor=R,b(C,S.prototype),C.isPureReactComponent=!0;var O=Array.isArray;function A(){}var M={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function L(k,K,V){var D=V.ref;return{$$typeof:e,type:k,key:K,ref:D!==void 0?D:null,props:V}}function H(k,K){return L(k.type,K,k.props)}function j(k){return typeof k=="object"&&k!==null&&k.$$typeof===e}function B(k){var K={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(V){return K[V]})}var U=/\/+/g;function Z(k,K){return typeof k=="object"&&k!==null&&k.key!=null?B(""+k.key):K.toString(36)}function re(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(A,A):(k.status="pending",k.then(function(K){k.status==="pending"&&(k.status="fulfilled",k.value=K)},function(K){k.status==="pending"&&(k.status="rejected",k.reason=K)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function q(k,K,V,D,F){var X=typeof k;(X==="undefined"||X==="boolean")&&(k=null);var fe=!1;if(k===null)fe=!0;else switch(X){case"bigint":case"string":case"number":fe=!0;break;case"object":switch(k.$$typeof){case e:case t:fe=!0;break;case m:return fe=k._init,q(fe(k._payload),K,V,D,F)}}if(fe)return F=F(k),fe=D===""?"."+Z(k,0):D,O(F)?(V="",fe!=null&&(V=fe.replace(U,"$&/")+"/"),q(F,K,V,"",function(Ue){return Ue})):F!=null&&(j(F)&&(F=H(F,V+(F.key==null||k&&k.key===F.key?"":(""+F.key).replace(U,"$&/")+"/")+fe)),K.push(F)),1;fe=0;var pe=D===""?".":D+":";if(O(k))for(var xe=0;xe<k.length;xe++)D=k[xe],X=pe+Z(D,xe),fe+=q(D,K,V,X,F);else if(xe=v(k),typeof xe=="function")for(k=xe.call(k),xe=0;!(D=k.next()).done;)D=D.value,X=pe+Z(D,xe++),fe+=q(D,K,V,X,F);else if(X==="object"){if(typeof k.then=="function")return q(re(k),K,V,D,F);throw K=String(k),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.")}return fe}function W(k,K,V){if(k==null)return k;var D=[],F=0;return q(k,D,"","",function(X){return K.call(V,X,F++)}),D}function ee(k){if(k._status===-1){var K=k._result;K=K(),K.then(function(V){(k._status===0||k._status===-1)&&(k._status=1,k._result=V)},function(V){(k._status===0||k._status===-1)&&(k._status=2,k._result=V)}),k._status===-1&&(k._status=0,k._result=K)}if(k._status===1)return k._result.default;throw k._result}var ae=typeof reportError=="function"?reportError:function(k){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var K=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof k=="object"&&k!==null&&typeof k.message=="string"?String(k.message):String(k),error:k});if(!window.dispatchEvent(K))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",k);return}console.error(k)},Q={map:W,forEach:function(k,K,V){W(k,function(){K.apply(this,arguments)},V)},count:function(k){var K=0;return W(k,function(){K++}),K},toArray:function(k){return W(k,function(K){return K})||[]},only:function(k){if(!j(k))throw Error("React.Children.only expected to receive a single React element child.");return k}};return rt.Activity=p,rt.Children=Q,rt.Component=S,rt.Fragment=n,rt.Profiler=i,rt.PureComponent=R,rt.StrictMode=r,rt.Suspense=d,rt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,rt.__COMPILER_RUNTIME={__proto__:null,c:function(k){return M.H.useMemoCache(k)}},rt.cache=function(k){return function(){return k.apply(null,arguments)}},rt.cacheSignal=function(){return null},rt.cloneElement=function(k,K,V){if(k==null)throw Error("The argument must be a React element, but you passed "+k+".");var D=b({},k.props),F=k.key;if(K!=null)for(X in K.key!==void 0&&(F=""+K.key),K)!P.call(K,X)||X==="key"||X==="__self"||X==="__source"||X==="ref"&&K.ref===void 0||(D[X]=K[X]);var X=arguments.length-2;if(X===1)D.children=V;else if(1<X){for(var fe=Array(X),pe=0;pe<X;pe++)fe[pe]=arguments[pe+2];D.children=fe}return L(k.type,F,D)},rt.createContext=function(k){return k={$$typeof:l,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null},k.Provider=k,k.Consumer={$$typeof:s,_context:k},k},rt.createElement=function(k,K,V){var D,F={},X=null;if(K!=null)for(D in K.key!==void 0&&(X=""+K.key),K)P.call(K,D)&&D!=="key"&&D!=="__self"&&D!=="__source"&&(F[D]=K[D]);var fe=arguments.length-2;if(fe===1)F.children=V;else if(1<fe){for(var pe=Array(fe),xe=0;xe<fe;xe++)pe[xe]=arguments[xe+2];F.children=pe}if(k&&k.defaultProps)for(D in fe=k.defaultProps,fe)F[D]===void 0&&(F[D]=fe[D]);return L(k,X,F)},rt.createRef=function(){return{current:null}},rt.forwardRef=function(k){return{$$typeof:c,render:k}},rt.isValidElement=j,rt.lazy=function(k){return{$$typeof:m,_payload:{_status:-1,_result:k},_init:ee}},rt.memo=function(k,K){return{$$typeof:f,type:k,compare:K===void 0?null:K}},rt.startTransition=function(k){var K=M.T,V={};M.T=V;try{var D=k(),F=M.S;F!==null&&F(V,D),typeof D=="object"&&D!==null&&typeof D.then=="function"&&D.then(A,ae)}catch(X){ae(X)}finally{K!==null&&V.types!==null&&(K.types=V.types),M.T=K}},rt.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},rt.use=function(k){return M.H.use(k)},rt.useActionState=function(k,K,V){return M.H.useActionState(k,K,V)},rt.useCallback=function(k,K){return M.H.useCallback(k,K)},rt.useContext=function(k){return M.H.useContext(k)},rt.useDebugValue=function(){},rt.useDeferredValue=function(k,K){return M.H.useDeferredValue(k,K)},rt.useEffect=function(k,K){return M.H.useEffect(k,K)},rt.useEffectEvent=function(k){return M.H.useEffectEvent(k)},rt.useId=function(){return M.H.useId()},rt.useImperativeHandle=function(k,K,V){return M.H.useImperativeHandle(k,K,V)},rt.useInsertionEffect=function(k,K){return M.H.useInsertionEffect(k,K)},rt.useLayoutEffect=function(k,K){return M.H.useLayoutEffect(k,K)},rt.useMemo=function(k,K){return M.H.useMemo(k,K)},rt.useOptimistic=function(k,K){return M.H.useOptimistic(k,K)},rt.useReducer=function(k,K,V){return M.H.useReducer(k,K,V)},rt.useRef=function(k){return M.H.useRef(k)},rt.useState=function(k){return M.H.useState(k)},rt.useSyncExternalStore=function(k,K,V){return M.H.useSyncExternalStore(k,K,V)},rt.useTransition=function(){return M.H.useTransition()},rt.version="19.2.5",rt}var oO;function ca(){return oO||(oO=1,S_.exports=Z$()),S_.exports}var E_={exports:{}},yr={};var sO;function Y$(){if(sO)return yr;sO=1;var e=ca();function t(d){var f="https://react.dev/errors/"+d;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)f+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+d+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},i=Symbol.for("react.portal");function s(d,f,m){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:p==null?null:""+p,children:d,containerInfo:f,implementation:m}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(d,f){if(d==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return yr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,yr.createPortal=function(d,f){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(t(299));return s(d,f,null,m)},yr.flushSync=function(d){var f=l.T,m=r.p;try{if(l.T=null,r.p=2,d)return d()}finally{l.T=f,r.p=m,r.d.f()}},yr.preconnect=function(d,f){typeof d=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,r.d.C(d,f))},yr.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},yr.preinit=function(d,f){if(typeof d=="string"&&f&&typeof f.as=="string"){var m=f.as,p=c(m,f.crossOrigin),g=typeof f.integrity=="string"?f.integrity:void 0,v=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;m==="style"?r.d.S(d,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:p,integrity:g,fetchPriority:v}):m==="script"&&r.d.X(d,{crossOrigin:p,integrity:g,fetchPriority:v,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},yr.preinitModule=function(d,f){if(typeof d=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var m=c(f.as,f.crossOrigin);r.d.M(d,{crossOrigin:m,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&r.d.M(d)},yr.preload=function(d,f){if(typeof d=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var m=f.as,p=c(m,f.crossOrigin);r.d.L(d,m,{crossOrigin:p,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},yr.preloadModule=function(d,f){if(typeof d=="string")if(f){var m=c(f.as,f.crossOrigin);r.d.m(d,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:m,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else r.d.m(d)},yr.requestFormReset=function(d){r.d.r(d)},yr.unstable_batchedUpdates=function(d,f){return d(f)},yr.useFormState=function(d,f,m){return l.H.useFormState(d,f,m)},yr.useFormStatus=function(){return l.H.useHostTransitionStatus()},yr.version="19.2.5",yr}var aO;function MM(){if(aO)return E_.exports;aO=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),E_.exports=Y$(),E_.exports}var lO;function W$(){if(lO)return Vu;lO=1;var e=K$(),t=ca(),n=MM();function r(o){var a="https://react.dev/errors/"+o;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)a+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+o+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function s(o){var a=o,u=o;if(o.alternate)for(;a.return;)a=a.return;else{o=a;do a=o,(a.flags&4098)!==0&&(u=a.return),o=a.return;while(o)}return a.tag===3?u:null}function l(o){if(o.tag===13){var a=o.memoizedState;if(a===null&&(o=o.alternate,o!==null&&(a=o.memoizedState)),a!==null)return a.dehydrated}return null}function c(o){if(o.tag===31){var a=o.memoizedState;if(a===null&&(o=o.alternate,o!==null&&(a=o.memoizedState)),a!==null)return a.dehydrated}return null}function d(o){if(s(o)!==o)throw Error(r(188))}function f(o){var a=o.alternate;if(!a){if(a=s(o),a===null)throw Error(r(188));return a!==o?null:o}for(var u=o,h=a;;){var _=u.return;if(_===null)break;var w=_.alternate;if(w===null){if(h=_.return,h!==null){u=h;continue}break}if(_.child===w.child){for(w=_.child;w;){if(w===u)return d(_),o;if(w===h)return d(_),a;w=w.sibling}throw Error(r(188))}if(u.return!==h.return)u=_,h=w;else{for(var N=!1,$=_.child;$;){if($===u){N=!0,u=_,h=w;break}if($===h){N=!0,h=_,u=w;break}$=$.sibling}if(!N){for($=w.child;$;){if($===u){N=!0,u=w,h=_;break}if($===h){N=!0,h=w,u=_;break}$=$.sibling}if(!N)throw Error(r(189))}}if(u.alternate!==h)throw Error(r(190))}if(u.tag!==3)throw Error(r(188));return u.stateNode.current===u?o:a}function m(o){var a=o.tag;if(a===5||a===26||a===27||a===6)return o;for(o=o.child;o!==null;){if(a=m(o),a!==null)return a;o=o.sibling}return null}var p=Object.assign,g=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),E=Symbol.for("react.consumer"),R=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),H=Symbol.for("react.memo_cache_sentinel"),j=Symbol.iterator;function B(o){return o===null||typeof o!="object"?null:(o=j&&o[j]||o["@@iterator"],typeof o=="function"?o:null)}var U=Symbol.for("react.client.reference");function Z(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===U?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case b:return"Fragment";case S:return"Profiler";case x:return"StrictMode";case O:return"Suspense";case A:return"SuspenseList";case L:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case y:return"Portal";case R:return o.displayName||"Context";case E:return(o._context.displayName||"Context")+".Consumer";case C:var a=o.render;return o=o.displayName,o||(o=a.displayName||a.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case M:return a=o.displayName||null,a!==null?a:Z(o.type)||"Memo";case P:a=o._payload,o=o._init;try{return Z(o(a))}catch{}}return null}var re=Array.isArray,q=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ee={pending:!1,data:null,method:null,action:null},ae=[],Q=-1;function k(o){return{current:o}}function K(o){0>Q||(o.current=ae[Q],ae[Q]=null,Q--)}function V(o,a){Q++,ae[Q]=o.current,o.current=a}var D=k(null),F=k(null),X=k(null),fe=k(null);function pe(o,a){switch(V(X,a),V(F,o),V(D,null),a.nodeType){case 9:case 11:o=(o=a.documentElement)&&(o=o.namespaceURI)?S2(o):0;break;default:if(o=a.tagName,a=a.namespaceURI)a=S2(a),o=E2(a,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}K(D),V(D,o)}function xe(){K(D),K(F),K(X)}function Ue(o){o.memoizedState!==null&&V(fe,o);var a=D.current,u=E2(a,o.type);a!==u&&(V(F,o),V(D,u))}function Y(o){F.current===o&&(K(D),K(F)),fe.current===o&&(K(fe),ju._currentValue=ee)}var te,ve;function se(o){if(te===void 0)try{throw Error()}catch(u){var a=u.stack.trim().match(/\n( *(at )?)/);te=a&&a[1]||"",ve=-1<u.stack.indexOf(`
|
|
3
3
|
at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
4
4
|
`+te+o+ve}var we=!1;function Oe(o,a){if(!o||we)return"";we=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var h={DetermineComponentFrameRoot:function(){try{if(a){var Se=function(){throw Error()};if(Object.defineProperty(Se.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Se,[])}catch(ge){var he=ge}Reflect.construct(o,[],Se)}else{try{Se.call()}catch(ge){he=ge}o.call(Se.prototype)}}else{try{throw Error()}catch(ge){he=ge}(Se=o())&&typeof Se.catch=="function"&&Se.catch(function(){})}}catch(ge){if(ge&&he&&typeof ge.stack=="string")return[ge.stack,he.stack]}return[null,null]}};h.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var _=Object.getOwnPropertyDescriptor(h.DetermineComponentFrameRoot,"name");_&&_.configurable&&Object.defineProperty(h.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var w=h.DetermineComponentFrameRoot(),N=w[0],$=w[1];if(N&&$){var J=N.split(`
|
|
@@ -168,4 +168,4 @@ ${r}
|
|
|
168
168
|
${r}
|
|
169
169
|
}`)}if(n.length>0){const r=document.createElement("style");r.id="mesh-theme-overrides",r.textContent=n.join(`
|
|
170
170
|
|
|
171
|
-
`),document.head.appendChild(r)}}function eae(e){const t=Ro.c(9),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={queryKey:KM.publicConfig(),queryFn:Xse,staleTime:1/0},t[0]=r):r=t[0];const{data:i}=GM(r),[s]=Wse();i.internalUrl&&zse(i.internalUrl);let l,c;t[1]!==i.theme?(l=()=>{Jse(i.theme)},c=[i.theme],t[1]=i.theme,t[2]=l,t[3]=c):(l=t[2],c=t[3]),I.useLayoutEffect(l,c);let d,f;t[4]!==s.theme?(d=()=>{const p=document.documentElement;if(s.theme==="dark"){p.classList.add("dark");return}if(s.theme==="light"){p.classList.remove("dark");return}const g=window.matchMedia("(prefers-color-scheme: dark)"),v=b=>p.classList.toggle("dark",b);v(g.matches);const y=b=>v(b.matches);return g.addEventListener("change",y),()=>g.removeEventListener("change",y)},f=[s.theme],t[4]=s.theme,t[5]=d,t[6]=f):(d=t[5],f=t[6]),I.useLayoutEffect(d,f);let m;return t[7]!==n?(m=T.jsx(T.Fragment,{children:n}),t[7]=n,t[8]=m):m=t[8],m}const tae=new wj({defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!0,refetchOnMount:!0,retry:1,gcTime:300*1e3}}});function nae(e){const t=Ro.c(4),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=T.jsx(pH,{}),t[0]=r):r=t[0];let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=T.jsx(UD,{}),t[1]=i):i=t[1];let s;return t[2]!==n?(s=T.jsxs(Sj,{client:tae,children:[r,T.jsx(I.Suspense,{fallback:i,children:T.jsx(eae,{children:T.jsx($j,{children:T.jsx(Bee,{children:T.jsx(Qne,{children:n})})})})})]}),t[2]=n,t[3]=s):s=t[3],s}function rae(...e){return VP(pw(e))}const iae=b4("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:hover:bg-input/50 card-shadow",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",success:"bg-success text-success-foreground hover:bg-success/90 focus-visible:ring-success/20 dark:focus-visible:ring-success/40",special:"bg-special text-special-foreground hover:bg-special/90 focus-visible:ring-special/20 dark:focus-visible:ring-special/40",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-foreground/80 hover:text-foreground"},size:{default:"h-8 px-3 has-[>svg]:px-2.5",sm:"h-7 gap-1.5 px-2.5 has-[>svg]:px-2",xs:"h-6 gap-1 px-1.5 text-xs has-[>svg]:px-1",lg:"h-10 px-3.5 has-[>svg]:px-3",icon:"size-8","icon-sm":"size-7"}},defaultVariants:{variant:"default",size:"default"}});function W1(e){const t=Ro.c(14);let n,r,i,s,l;t[0]!==e?({className:n,variant:l,size:i,asChild:s,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=s,t[5]=l):(n=t[1],r=t[2],i=t[3],s=t[4],l=t[5]);const d=(s===void 0?!1:s)?jw:"button";let f;t[6]!==n||t[7]!==i||t[8]!==l?(f=rae(iae({variant:l,size:i,className:n})),t[6]=n,t[7]=i,t[8]=l,t[9]=f):f=t[9];let m;return t[10]!==d||t[11]!==r||t[12]!==f?(m=T.jsx(d,{"data-slot":"button",className:f,...r}),t[10]=d,t[11]=r,t[12]=f,t[13]=m):m=t[13],m}const AM="__mesh_chunk_reload_ts";function IM(e){if(!e)return!1;const t=e.message||"";return t.includes("Failed to fetch dynamically imported module")||t.includes("Importing a module script failed")||t.includes("error loading dynamically imported module")||t.includes("Failed to fetch")&&e.name==="TypeError"}class oce extends I.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("Uncaught error:",t,n),DD(t,{boundary:"default",error_name:t.name,error_message:t.message,component_stack:n.componentStack??null,route:typeof window<"u"?window.location.pathname:null})}resetError=()=>{this.setState({hasError:!1,error:null})};render(){if(this.state.hasError){const{fallback:t}=this.props;return typeof t=="function"?t({error:this.state.error,resetError:this.resetError}):t!==void 0?t:T.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[T.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:T.jsx(NS,{className:"h-6 w-6 text-destructive"})}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),T.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||"An unexpected error occurred"})]}),T.jsx(W1,{variant:"outline",onClick:this.resetError,children:"Try again"})]})}return this.props.children}}class oae extends I.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("Uncaught error:",t,n);const r=IM(t);if(DD(t,{boundary:"chunk_root",is_chunk_load_error:r,error_name:t.name,error_message:t.message,component_stack:n.componentStack??null,route:typeof window<"u"?window.location.pathname:null}),!r)return;const i=sessionStorage.getItem(AM),s=Date.now();(!i||s-Number(i)>1e4)&&(sessionStorage.setItem(AM,String(s)),window.location.reload())}render(){return this.state.hasError&&IM(this.state.error)?T.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[T.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:T.jsx(jD,{className:"h-6 w-6 text-primary"})}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("h3",{className:"text-lg font-medium",children:"New version available"}),T.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:"A new version has been deployed. Refresh to continue."})]}),T.jsx(W1,{onClick:()=>window.location.reload(),children:"Refresh"})]}):this.state.hasError?T.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[T.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:T.jsx(NS,{className:"h-6 w-6 text-destructive"})}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),T.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||"An unexpected error occurred"})]}),T.jsx(W1,{variant:"outline",onClick:()=>this.setState({hasError:!1,error:null}),children:"Try again"})]}):this.props.children}}const sae="MCP Workflows",aae="Create workflows using your MCP tools",lae=I.lazy(()=>At(()=>import("./plugin-header-Sl8TyoFF.js"),__vite__mapDeps([0,1,2]))),cae=I.lazy(()=>At(()=>import("./plugin-empty-state-B9V3iWPP.js"),[])),uae={id:sae,description:aae,bindingName:"WORKFLOW",renderHeader:e=>T.jsx(lae,{...e}),renderEmptyState:()=>T.jsx(cae,{}),setup:e=>{e.registerSettingsSidebarItem({key:"workflows",icon:T.jsx(LD,{size:14}),label:"MCP Workflows",to:"/$org/settings/workflows"})}},dae=[uae],ma=n7({component:()=>T.jsx(oae,{children:T.jsx(nae,{children:T.jsx(I.Suspense,{fallback:T.jsx(UD,{}),children:T.jsx(gP,{})})})})}),fae=mt({getParentRoute:()=>ma,path:"/login",component:It(()=>At(()=>import("./login-TpNdCcSE.js"),__vite__mapDeps([3,4]))),validateSearch:ul(()=>Ee({next:z().optional(),client_id:z().optional(),redirect_uri:z().optional(),response_type:z().optional(),state:z().optional(),scope:z().optional(),code_challenge:z().optional(),code_challenge_method:z().optional()}))}),hae=mt({getParentRoute:()=>ma,path:"/reset-password",component:It(()=>At(()=>import("./reset-password-DPn3UIPm.js"),__vite__mapDeps([5,4]))),validateSearch:ul(()=>Ee({token:z().optional(),error:z().optional()}))}),pae=mt({getParentRoute:()=>ma,path:"/auth/$pathname",component:It(()=>At(()=>import("./auth-catchall-B-Lg7W2q.js"),[]))}),mae=mt({getParentRoute:()=>ma,path:"/oauth/callback",component:It(()=>At(()=>import("./oauth-callback-BU51YAFZ.js"),[]))}),gae=mt({getParentRoute:()=>ma,path:"/oauth/callback/ai-provider",component:It(()=>At(()=>import("./oauth-callback-ai-provider-DHobA1oV.js"),[]))}),iE=mt({getParentRoute:()=>ma,id:"shell",component:It(()=>At(()=>import("./shell-layout-CSQshMOg.js").then(e=>e.s),__vite__mapDeps([6,7,8,9,10,11,12,13,14,15,16])))}),vae=mt({getParentRoute:()=>iE,path:"/",beforeLoad:async()=>{const{data:e}=await Mg.organization.list();if(!e)return;const t=e.filter(i=>!i.metadata?.archived),n=localStorage.getItem(Rg.lastOrgSlug());if(n){if(t.some(s=>s.slug===n))throw Oc({to:"/$org",params:{org:n}});localStorage.removeItem(Rg.lastOrgSlug())}const r=t[0];throw Oc(r?{to:"/$org",params:{org:r.slug}}:{to:"/onboarding"})}}),_ae=mt({getParentRoute:()=>ma,path:"/onboarding",beforeLoad:async()=>{const{data:e}=await Mg.organization.list(),t=e?.filter(n=>!n.metadata?.archived);if(t&&t.length>0)throw Oc({to:"/"})},component:It(()=>At(()=>import("./onboarding-xa_XNWs7.js"),__vite__mapDeps([17,9,4,18,19,20,21])))}),oE=mt({getParentRoute:()=>iE,path:"/$org",component:It(()=>At(()=>import("./org-layout-DfZsgPJH.js"),[]))}),sE=mt({getParentRoute:()=>oE,id:"org-shell",component:It(()=>At(()=>import("./index-Dt8YClUX.js"),__vite__mapDeps([22,23,24,25,8,26,27,28,29,30,16,31,32,33,34,35,19,20,1,2,36,37,38,39,40,21,41,42,15,43,44,45,46,47,48,49,50,6,7,9,10,11,12,13,14,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,18,4,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107])))}),aE=mt({getParentRoute:()=>sE,id:"agent-shell",component:It(()=>At(()=>import("./index-CKCUmH_m.js"),__vite__mapDeps([108,72,7,8,73,4,74,11,12,75,76,58,32,77,41,78,1,15,28,29,30,16,31,33,34,35,26,19,20,2,36,37,38,39,40,21,24,42,43,44,45,46,47,48,49,50,79,80,81,65,25,62,71,57,59,60,61,10,13,6,9,14,51,52,53,54,55,56,69,82,68,18,83,84,85,63,86,66,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,109,110,64,27,23,67,70,104,105,106,107,111,112,113,114,115,116,117,118,119,120,121])))}),yae=Ee({virtualmcpid:z().optional(),tab:z().optional(),main:z().optional(),id:z().optional(),toolName:z().optional(),tasks:St().optional(),mainOpen:St().optional(),chat:St().optional(),autosend:z().optional()}),T6=mt({getParentRoute:()=>aE,path:"/$taskId",validateSearch:yae,component:()=>null}),bae=mt({getParentRoute:()=>sE,path:"/",component:It(()=>At(()=>import("./index-BKbuKSG2.js"),__vite__mapDeps([122,25,62,39,28,29,30,16,31,32,33,34,35,26,19,20,1,2,36,37,38,40,21,41,24,42,15,43,44,45,46,47,48,49,8,50,63,12,58,11,13,75,76,7,77,78,74,79,80,81,65,71,72,73,4,57,59,60,61,10,6,9,14,51,52,53,54,55,56,69,82,68,18,83,84,85,86,66,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,105])))}),Pn=mt({getParentRoute:()=>oE,path:"/settings",component:It(()=>At(()=>import("./settings-layout-C7k8LFse.js"),__vite__mapDeps([123,23,24,25,8,117,33,26,19,36,15,47,49,50,111,92,60,61])))}),wae=mt({getParentRoute:()=>Pn,path:"/",beforeLoad:({params:e})=>{throw Oc({to:"/$org/settings/general",params:{org:e.org}})},component:()=>null}),Sae=mt({getParentRoute:()=>Pn,path:"/connections",component:It(()=>At(()=>import("./connections-D1l0zvWe.js"),__vite__mapDeps([124,80,81,125,90,1,36,38,31,25,118,99,120,41,98,94,93,95,74,11,12,13,96,97,79,88,62,39,28,29,30,16,32,33,34,35,26,19,20,2,37,40,21,24,42,15,43,44,45,46,47,48,49,8,50,106,117,23,126,67,102,127,128,78,7,65,68,18,4,83,100,58,101]))),validateSearch:ul(()=>Ee({action:dn(["create"]).optional(),tab:dn(["all","connected"]).optional()}))}),Eae=mt({getParentRoute:()=>Pn,path:"/connections/$appSlug",component:It(()=>At(()=>import("./connection-detail-CCkyT_oS.js"),__vite__mapDeps([129,80,81,106,101,4,45,48,130,12,71,28,29,30,16,31,32,33,34,35,26,19,20,1,2,36,37,38,39,40,21,41,24,42,15,43,44,46,47,49,8,50,74,11,131,132,79,95,13,83,25,110,64,58,105,76,114,99,56,133,134,66,82,62,23,68,18,126,67,135,117,136,93,77,88,90]))),validateSearch:ul(()=>Ee({tab:z().optional()}))}),xae=mt({getParentRoute:()=>Pn,path:"/connections/$appSlug/$collectionName/$itemId",component:It(()=>At(()=>import("./collection-detail-r3yDw2nE.js"),__vite__mapDeps([137,106,11,12,68,18,4,100,135,117,23,24,25,8,138,131,81,132,58,139,69,112,28,29,30,16,31,32,33,34,35,26,19,20,1,2,36,37,38,39,40,21,41,42,15,43,44,45,46,47,48,49,50,52,99,83,118,74,71,7,91,90,62,116,70,140,61,56,130,79,80,95,13,110,64,105,76,93,114,55,57,59,60,10,6,9,14]))),validateSearch:ul(()=>Ee({replayId:z().optional()}))}),Rae=mt({getParentRoute:()=>Pn,path:"/monitor",component:It(()=>At(()=>import("./index-C7jN5neb.js"),__vite__mapDeps([141,120,41,117,23,24,25,8,106,99,64,1,34,44,28,29,30,16,31,32,33,35,26,19,20,2,36,37,38,39,40,21,42,15,43,45,46,47,48,49,50,139,69,133,134,74,11,12,58,4,78,109,110,83,116,100,98,73,18,62,66,88,136,132,71,93,103,97,142,102,96,51,52,53,54,7,55,56,57,59,60,61,10,13,6,9,14,107]))),validateSearch:ul(()=>Ee({tab:dn(["overview","audit","threads"]).default("overview"),from:z().default("now-30m"),to:z().default("now"),connectionId:Ie(z()).optional().default([]),virtualMcpId:Ie(z()).optional().default([]),tool:z().default(""),status:dn(["all","success","errors"]).default("all"),search:z().default(""),page:St().optional(),streaming:Pt().default(!0),propertyFilters:z().default(""),hideSystem:Pt().default(!1)}))}),Oae=mt({getParentRoute:()=>Pn,path:"/general",component:It(()=>At(()=>import("./general-B-vosNM8.js"),__vite__mapDeps([143,117,23,24,25,8,134,115,66,49,4,87,88,35,144,89,12,73,104,41,58,11,64,63,28,29,30,16,31,32,33,34,26,19,20,1,2,36,37,38,39,40,21,42,15,43,44,45,46,47,48,50,62,13,67])))}),Tae=mt({getParentRoute:()=>Pn,path:"/features",component:It(()=>At(()=>import("./features-C2-XIDYj.js"),__vite__mapDeps([145,117,23,24,25,8,13,12,73,39,87,88,35])))}),Cae=mt({getParentRoute:()=>Pn,path:"/brand-context",component:It(()=>At(()=>import("./brand-context-Bw8yIqM4.js"),__vite__mapDeps([146,12,2,36,40,42,45,48,50,67,4,100,117,23,24,25,8,89,115])))}),Aae=mt({getParentRoute:()=>Pn,path:"/ai-providers",component:It(()=>At(()=>import("./ai-providers-7aj7Dvnr.js"),__vite__mapDeps([147,29,117,23,24,25,8,63,87,88,35,59,12,20,57,58,11,60,61,10,13,85,78,1,4,7,65,83,2,37,30,32,41,46,86,50,69,66,49,89,115,84,67,106,45,48,148,54])))}),Iae=mt({getParentRoute:()=>Pn,path:"/members",component:It(()=>At(()=>import("./members-Bc9_guMN.js"),__vite__mapDeps([149,125,90,1,36,38,31,25,118,99,120,41,117,23,24,8,150,142,106,7,68,18,83,2,37,100,134,151,133,12,67,66,49,88,47,48,78,109,110,64,45])))}),Mae=mt({getParentRoute:()=>Pn,path:"/roles",component:It(()=>At(()=>import("./roles-CKivK7GA.js"),__vite__mapDeps([152,151,134,99,67,90,1,36,38,15,45,48,150,142,31,117,23,24,25,8,106,120,41,86,62,39,28,29,30,16,32,33,34,35,26,19,20,2,37,40,21,42,43,44,46,47,49,50,102,78,103,97,12,77,133,74,11,59,66,73,87,88]))),validateSearch:ul(()=>Ee({role:z().optional()}))}),Pae=mt({getParentRoute:()=>Pn,path:"/sso",component:It(()=>At(()=>import("./sso-DOSWI8BP.js"),__vite__mapDeps([153,144,89,12,73,87,88,35,117,23,24,25,8,4,14,48])))}),Nae=mt({getParentRoute:()=>Pn,path:"/profile",component:It(()=>At(()=>import("./profile-DUg1r9pS.js"),__vite__mapDeps([154,117,23,24,25,8,66,49,73,83,1,2,37,84,4,43,44,115,92,70,87,88,35])))}),kae=mt({getParentRoute:()=>Pn,path:"/store",component:It(()=>At(()=>import("./store-D5UphBa3.js"),__vite__mapDeps([155,29,36,45,48,4,73,63,66,49,64,74,11,12,117,23,24,25,8,95,13,87,88,35])))}),Dae=mt({getParentRoute:()=>Pn,path:"/registry",component:It(()=>At(()=>import("./registry-EC12Boik.js"),[]))}),Lae=mt({getParentRoute:()=>Pn,path:"/store/registry",component:It(()=>At(()=>import("./store-registry-DipUkX4F.js"),[]))}),$ae=mt({getParentRoute:()=>Pn,path:"/workflows",component:It(()=>At(()=>import("./workflow-Dywulu_i.js"),__vite__mapDeps([156,12,80,81,125,90,1,36,38,31,25,118,99,77,41,88,62,39,28,29,30,16,32,33,34,35,26,19,20,2,37,40,21,24,42,15,43,44,45,46,47,48,49,8,50,150,142,140,113,66,106,127,128,93,67,11,74,135,117,23])))}),jae=mt({getParentRoute:()=>Pn,path:"/workflows/$itemId",component:It(()=>At(()=>import("./workflow-detail-CnTjiGvc.js"),__vite__mapDeps([157,138,131,12,81,132,58,11,139,69,112,28,29,30,16,31,32,33,34,35,26,19,20,1,2,36,37,38,39,40,21,41,24,42,15,43,44,45,46,47,48,49,8,50,52,99,83,25,118,135,117,23,74,71,7,91,90,62,116,70,140,61,4])))}),Uae=mt({getParentRoute:()=>aE,path:"/plugins/$pluginId",component:It(()=>At(()=>import("./org-plugin-layout-BNtiSb4W.js"),__vite__mapDeps([158,159,74,11,12,46,117,23,24,25,8])))}),zae=mt({getParentRoute:()=>Pn,path:"/agents",component:It(()=>At(()=>import("./agents-list-DyNXshyO.js"),__vite__mapDeps([160,90,1,36,38,19,75,12,76,58,11,7,8,32,77,41,78,74,15,28,29,30,16,31,33,34,35,26,20,2,37,39,40,21,24,42,43,44,45,46,47,48,49,50,79,80,81,65,25,62,71,117,23,88,148,54,106,105,67,120])))}),Fae=mt({getParentRoute:()=>Pn,path:"/automations",component:It(()=>At(()=>import("./automations-b35IyYNi.js"),__vite__mapDeps([161,45,50,120,41,117,23,24,25,8,106,119,67,90,1,36,38,28,29,30,16,31,32,33,34,35,26,19,20,2,37,39,40,21,42,15,43,44,46,47,48,49,58,11,12,76])))}),C6=mt({getParentRoute:()=>T6,path:"/$pluginId",component:It(()=>At(()=>import("./dynamic-plugin-layout-vfq9KprT.js"),__vite__mapDeps([162,159,74,11,12,46,117,23,24,25,8])))}),Bae=[],Vae=[],qae=[],A6=[];dae.forEach(e=>{if(!e.setup)return;const t={parentRoute:C6,routing:{createRoute:mt,lazyRouteComponent:It},registerRootSidebarItem:n=>Bae.push({pluginId:e.id,...n}),registerSidebarGroup:n=>Vae.push({pluginId:e.id,...n}),registerSettingsSidebarItem:n=>qae.push({pluginId:e.id,...n}),registerPluginRoutes:n=>{A6.push(...n)}};e.setup(t)});const Hae=C6.addChildren(A6),Gae=Pn.addChildren([wae,Sae,Eae,xae,zae,Fae,Rae,Oae,Tae,Cae,Aae,Iae,Mae,Pae,Nae,kae,Lae,Dae,$ae,jae]),Kae=T6.addChildren([Hae]),Zae=aE.addChildren([Kae,Uae]),Yae=sE.addChildren([bae,Zae]),Wae=oE.addChildren([Yae,Gae]),Qae=iE.addChildren([vae,Wae]),Xae=ma.addChildren([Qae,_ae,fae,hae,pae,mae,gae]),Jae=d7({routeTree:Xae,defaultNotFoundComponent:()=>T.jsx("div",{className:"flex h-full items-center justify-center",children:T.jsxs("div",{className:"flex flex-col items-center gap-4 p-8",children:[T.jsx("h3",{className:"text-lg font-medium text-foreground",children:"Page not found"}),T.jsx("p",{className:"text-sm text-muted-foreground text-center max-w-[300px]",children:"The page you are looking for does not exist or has been moved."}),T.jsx("button",{type:"button",onClick:()=>window.history.back(),className:"text-sm text-primary hover:underline",children:"Go back"})]})})}),ele=document.getElementById("root");X$.createRoot(ele).render(T.jsx(I.StrictMode,{children:T.jsx(p7,{router:Jae})}));export{ZM as $,Ple as A,W1 as B,nG as C,To as D,oce as E,tce as F,rce as G,Ee as H,St as I,z as J,KM as K,fw as L,jD as M,ule as N,gP as O,Wse as P,Kse as Q,Rg as R,UD as S,$J as T,Yr as U,ece as V,Bae as W,Vae as X,sae as Y,LD as Z,At as _,Dj as a,OV as a$,ale as a0,xo as a1,tee as a2,ht as a3,no as a4,uW as a5,dW as a6,yn as a7,lt as a8,fW as a9,n3 as aA,aY as aB,uY as aC,lY as aD,YZ as aE,qae as aF,nle as aG,Ut as aH,Xt as aI,Ie as aJ,eG as aK,Jle as aL,Xle as aM,HS as aN,vg as aO,LY as aP,R3 as aQ,J4 as aR,lf as aS,ta as aT,DY as aU,ds as aV,b4 as aW,jw as aX,Wr as aY,Pt as aZ,Ye as a_,hW as aa,gW as ab,wW as ac,M3 as ad,fl as ae,pW as af,mW as ag,vW as ah,_W as ai,yW as aj,bW as ak,SW as al,xW as am,RW as an,Ig as ao,dn as ap,hC as aq,Q1 as ar,oY as as,ro as at,Kd as au,Ww as av,jc as aw,aa as ax,fs as ay,io as az,Mg as b,iZ as b$,VP as b0,pw as b1,Ok as b2,Ck as b3,WW as b4,Wn as b5,SQ as b6,f3 as b7,X4 as b8,iae as b9,Rre as bA,Lre as bB,Yre as bC,Xre as bD,wre as bE,Ere as bF,Ore as bG,Tre as bH,$re as bI,Hre as bJ,Hle as bK,dae as bL,mV as bM,dle as bN,gle as bO,vq as bP,ul as bQ,qN as bR,KN as bS,hle as bT,ice as bU,iG as bV,rG as bW,d4 as bX,pf as bY,tZ as bZ,rZ as b_,la as ba,ne as bb,tle as bc,oZ as bd,$le as be,dP as bf,ca as bg,as as bh,Lle as bi,jle as bj,rn as bk,fle as bl,HN as bm,Fre as bn,Bre as bo,VS as bp,c6 as bq,qS as br,nv as bs,KD as bt,nie as bu,YD as bv,Qre as bw,uie as bx,bre as by,Sre as bz,rae as c,Kle as c$,af as c0,HM as c1,Ij as c2,E3 as c3,SY as c4,Fw as c5,p3 as c6,D4 as c7,Bw as c8,Gd as c9,toe as cA,pt as cB,Goe as cC,to as cD,JW as cE,hP as cF,Ile as cG,sZ as cH,aZ as cI,nZ as cJ,lZ as cK,Vz as cL,GD as cM,WD as cN,JD as cO,t6 as cP,n6 as cQ,i6 as cR,Vle as cS,qle as cT,Fle as cU,Ble as cV,ere as cW,zle as cX,QD as cY,e6 as cZ,r6 as c_,O4 as ca,zw as cb,Uw as cc,EY as cd,xY as ce,sQ as cf,aQ as cg,oQ as ch,Or as ci,cle as cj,XH as ck,WH as cl,GH as cm,r4 as cn,GV as co,Sw as cp,xV as cq,ple as cr,YV as cs,xw as ct,Ew as cu,JV as cv,mle as cw,Wle as cx,yse as cy,Qle as cz,dw as d,XD as d0,Yle as d1,kS as d2,hre as d3,Ule as d4,HD as d5,Lie as d6,qre as d7,Zle as d8,Cie as d9,Mie as da,fie as db,die as dc,Gle as dd,vle as de,VW as df,qW as dg,KW as dh,HW as di,GW as dj,ble as dk,wle as dl,Rle as dm,xle as dn,Tle as dp,Ole as dq,Cle as dr,Ele as ds,Sle as dt,yle as du,_le as dv,zM as dw,bO as dx,ile as dy,rle as dz,Ro as e,rf as f,uw as g,Nle as h,Mle as i,T as j,kle as k,$D as l,nce as m,kj as n,nw as o,NM as p,Zn as q,I as r,Jne as s,Dle as t,lle as u,sle as v,GM as w,OT as x,NS as y,Oo as z};
|
|
171
|
+
`),document.head.appendChild(r)}}function eae(e){const t=Ro.c(9),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={queryKey:KM.publicConfig(),queryFn:Xse,staleTime:1/0},t[0]=r):r=t[0];const{data:i}=GM(r),[s]=Wse();i.internalUrl&&zse(i.internalUrl);let l,c;t[1]!==i.theme?(l=()=>{Jse(i.theme)},c=[i.theme],t[1]=i.theme,t[2]=l,t[3]=c):(l=t[2],c=t[3]),I.useLayoutEffect(l,c);let d,f;t[4]!==s.theme?(d=()=>{const p=document.documentElement;if(s.theme==="dark"){p.classList.add("dark");return}if(s.theme==="light"){p.classList.remove("dark");return}const g=window.matchMedia("(prefers-color-scheme: dark)"),v=b=>p.classList.toggle("dark",b);v(g.matches);const y=b=>v(b.matches);return g.addEventListener("change",y),()=>g.removeEventListener("change",y)},f=[s.theme],t[4]=s.theme,t[5]=d,t[6]=f):(d=t[5],f=t[6]),I.useLayoutEffect(d,f);let m;return t[7]!==n?(m=T.jsx(T.Fragment,{children:n}),t[7]=n,t[8]=m):m=t[8],m}const tae=new wj({defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!0,refetchOnMount:!0,retry:1,gcTime:300*1e3}}});function nae(e){const t=Ro.c(4),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=T.jsx(pH,{}),t[0]=r):r=t[0];let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=T.jsx(UD,{}),t[1]=i):i=t[1];let s;return t[2]!==n?(s=T.jsxs(Sj,{client:tae,children:[r,T.jsx(I.Suspense,{fallback:i,children:T.jsx(eae,{children:T.jsx($j,{children:T.jsx(Bee,{children:T.jsx(Qne,{children:n})})})})})]}),t[2]=n,t[3]=s):s=t[3],s}function rae(...e){return VP(pw(e))}const iae=b4("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:hover:bg-input/50 card-shadow",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",success:"bg-success text-success-foreground hover:bg-success/90 focus-visible:ring-success/20 dark:focus-visible:ring-success/40",special:"bg-special text-special-foreground hover:bg-special/90 focus-visible:ring-special/20 dark:focus-visible:ring-special/40",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-foreground/80 hover:text-foreground"},size:{default:"h-8 px-3 has-[>svg]:px-2.5",sm:"h-7 gap-1.5 px-2.5 has-[>svg]:px-2",xs:"h-6 gap-1 px-1.5 text-xs has-[>svg]:px-1",lg:"h-10 px-3.5 has-[>svg]:px-3",icon:"size-8","icon-sm":"size-7"}},defaultVariants:{variant:"default",size:"default"}});function W1(e){const t=Ro.c(14);let n,r,i,s,l;t[0]!==e?({className:n,variant:l,size:i,asChild:s,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=s,t[5]=l):(n=t[1],r=t[2],i=t[3],s=t[4],l=t[5]);const d=(s===void 0?!1:s)?jw:"button";let f;t[6]!==n||t[7]!==i||t[8]!==l?(f=rae(iae({variant:l,size:i,className:n})),t[6]=n,t[7]=i,t[8]=l,t[9]=f):f=t[9];let m;return t[10]!==d||t[11]!==r||t[12]!==f?(m=T.jsx(d,{"data-slot":"button",className:f,...r}),t[10]=d,t[11]=r,t[12]=f,t[13]=m):m=t[13],m}const AM="__mesh_chunk_reload_ts";function IM(e){if(!e)return!1;const t=e.message||"";return t.includes("Failed to fetch dynamically imported module")||t.includes("Importing a module script failed")||t.includes("error loading dynamically imported module")||t.includes("Failed to fetch")&&e.name==="TypeError"}class oce extends I.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("Uncaught error:",t,n),DD(t,{boundary:"default",error_name:t.name,error_message:t.message,component_stack:n.componentStack??null,route:typeof window<"u"?window.location.pathname:null})}resetError=()=>{this.setState({hasError:!1,error:null})};render(){if(this.state.hasError){const{fallback:t}=this.props;return typeof t=="function"?t({error:this.state.error,resetError:this.resetError}):t!==void 0?t:T.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[T.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:T.jsx(NS,{className:"h-6 w-6 text-destructive"})}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),T.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||"An unexpected error occurred"})]}),T.jsx(W1,{variant:"outline",onClick:this.resetError,children:"Try again"})]})}return this.props.children}}class oae extends I.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("Uncaught error:",t,n);const r=IM(t);if(DD(t,{boundary:"chunk_root",is_chunk_load_error:r,error_name:t.name,error_message:t.message,component_stack:n.componentStack??null,route:typeof window<"u"?window.location.pathname:null}),!r)return;const i=sessionStorage.getItem(AM),s=Date.now();(!i||s-Number(i)>1e4)&&(sessionStorage.setItem(AM,String(s)),window.location.reload())}render(){return this.state.hasError&&IM(this.state.error)?T.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[T.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:T.jsx(jD,{className:"h-6 w-6 text-primary"})}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("h3",{className:"text-lg font-medium",children:"New version available"}),T.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:"A new version has been deployed. Refresh to continue."})]}),T.jsx(W1,{onClick:()=>window.location.reload(),children:"Refresh"})]}):this.state.hasError?T.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[T.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:T.jsx(NS,{className:"h-6 w-6 text-destructive"})}),T.jsxs("div",{className:"space-y-2",children:[T.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),T.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||"An unexpected error occurred"})]}),T.jsx(W1,{variant:"outline",onClick:()=>this.setState({hasError:!1,error:null}),children:"Try again"})]}):this.props.children}}const sae="MCP Workflows",aae="Create workflows using your MCP tools",lae=I.lazy(()=>At(()=>import("./plugin-header-_TX1Y9Vb.js"),__vite__mapDeps([0,1,2]))),cae=I.lazy(()=>At(()=>import("./plugin-empty-state-DBdc9DDY.js"),[])),uae={id:sae,description:aae,bindingName:"WORKFLOW",renderHeader:e=>T.jsx(lae,{...e}),renderEmptyState:()=>T.jsx(cae,{}),setup:e=>{e.registerSettingsSidebarItem({key:"workflows",icon:T.jsx(LD,{size:14}),label:"MCP Workflows",to:"/$org/settings/workflows"})}},dae=[uae],ma=n7({component:()=>T.jsx(oae,{children:T.jsx(nae,{children:T.jsx(I.Suspense,{fallback:T.jsx(UD,{}),children:T.jsx(gP,{})})})})}),fae=mt({getParentRoute:()=>ma,path:"/login",component:It(()=>At(()=>import("./login-CWpiwEaq.js"),__vite__mapDeps([3,4]))),validateSearch:ul(()=>Ee({next:z().optional(),client_id:z().optional(),redirect_uri:z().optional(),response_type:z().optional(),state:z().optional(),scope:z().optional(),code_challenge:z().optional(),code_challenge_method:z().optional()}))}),hae=mt({getParentRoute:()=>ma,path:"/reset-password",component:It(()=>At(()=>import("./reset-password-CAqQV6rn.js"),__vite__mapDeps([5,4]))),validateSearch:ul(()=>Ee({token:z().optional(),error:z().optional()}))}),pae=mt({getParentRoute:()=>ma,path:"/auth/$pathname",component:It(()=>At(()=>import("./auth-catchall-BaS7NCCR.js"),[]))}),mae=mt({getParentRoute:()=>ma,path:"/oauth/callback",component:It(()=>At(()=>import("./oauth-callback-BN7age-F.js"),[]))}),gae=mt({getParentRoute:()=>ma,path:"/oauth/callback/ai-provider",component:It(()=>At(()=>import("./oauth-callback-ai-provider-RkxZgbDA.js"),[]))}),iE=mt({getParentRoute:()=>ma,id:"shell",component:It(()=>At(()=>import("./shell-layout-Ddrq5Nx0.js").then(e=>e.s),__vite__mapDeps([6,7,8,9,10,11,12,13,14,15,16])))}),vae=mt({getParentRoute:()=>iE,path:"/",beforeLoad:async()=>{const{data:e}=await Mg.organization.list();if(!e)return;const t=e.filter(i=>!i.metadata?.archived),n=localStorage.getItem(Rg.lastOrgSlug());if(n){if(t.some(s=>s.slug===n))throw Oc({to:"/$org",params:{org:n}});localStorage.removeItem(Rg.lastOrgSlug())}const r=t[0];throw Oc(r?{to:"/$org",params:{org:r.slug}}:{to:"/onboarding"})}}),_ae=mt({getParentRoute:()=>ma,path:"/onboarding",beforeLoad:async()=>{const{data:e}=await Mg.organization.list(),t=e?.filter(n=>!n.metadata?.archived);if(t&&t.length>0)throw Oc({to:"/"})},component:It(()=>At(()=>import("./onboarding-BYACWd1_.js"),__vite__mapDeps([17,9,4,18,19,20,21])))}),oE=mt({getParentRoute:()=>iE,path:"/$org",component:It(()=>At(()=>import("./org-layout-kAlrK_Sz.js"),[]))}),sE=mt({getParentRoute:()=>oE,id:"org-shell",component:It(()=>At(()=>import("./index-CYtBy4YL.js"),__vite__mapDeps([22,23,24,25,8,26,27,28,29,30,16,31,32,33,34,35,19,20,1,2,36,37,38,39,40,21,41,42,15,43,44,45,46,47,48,49,50,6,7,9,10,11,12,13,14,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,18,4,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107])))}),aE=mt({getParentRoute:()=>sE,id:"agent-shell",component:It(()=>At(()=>import("./index-CJcKkFSf.js"),__vite__mapDeps([108,72,7,8,73,4,74,11,12,75,76,58,32,77,41,78,1,15,28,29,30,16,31,33,34,35,26,19,20,2,36,37,38,39,40,21,24,42,43,44,45,46,47,48,49,50,79,80,81,65,25,62,71,57,59,60,61,10,13,6,9,14,51,52,53,54,55,56,69,82,68,18,83,84,85,63,86,66,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,109,110,64,27,23,67,70,104,105,106,107,111,112,113,114,115,116,117,118,119,120,121])))}),yae=Ee({virtualmcpid:z().optional(),tab:z().optional(),main:z().optional(),id:z().optional(),toolName:z().optional(),tasks:St().optional(),mainOpen:St().optional(),chat:St().optional(),autosend:z().optional()}),T6=mt({getParentRoute:()=>aE,path:"/$taskId",validateSearch:yae,component:()=>null}),bae=mt({getParentRoute:()=>sE,path:"/",component:It(()=>At(()=>import("./index-ig98RAvX.js"),__vite__mapDeps([122,25,62,39,28,29,30,16,31,32,33,34,35,26,19,20,1,2,36,37,38,40,21,41,24,42,15,43,44,45,46,47,48,49,8,50,63,12,58,11,13,75,76,7,77,78,74,79,80,81,65,71,72,73,4,57,59,60,61,10,6,9,14,51,52,53,54,55,56,69,82,68,18,83,84,85,86,66,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,105])))}),Pn=mt({getParentRoute:()=>oE,path:"/settings",component:It(()=>At(()=>import("./settings-layout-DLGNEr9H.js"),__vite__mapDeps([123,23,24,25,8,117,33,26,19,36,15,47,49,50,111,92,60,61])))}),wae=mt({getParentRoute:()=>Pn,path:"/",beforeLoad:({params:e})=>{throw Oc({to:"/$org/settings/general",params:{org:e.org}})},component:()=>null}),Sae=mt({getParentRoute:()=>Pn,path:"/connections",component:It(()=>At(()=>import("./connections-Cr6QbSRh.js"),__vite__mapDeps([124,80,81,125,90,1,36,38,31,25,118,99,120,41,98,94,93,95,74,11,12,13,96,97,79,88,62,39,28,29,30,16,32,33,34,35,26,19,20,2,37,40,21,24,42,15,43,44,45,46,47,48,49,8,50,106,117,23,126,67,102,127,128,78,7,65,68,18,4,83,100,58,101]))),validateSearch:ul(()=>Ee({action:dn(["create"]).optional(),tab:dn(["all","connected"]).optional()}))}),Eae=mt({getParentRoute:()=>Pn,path:"/connections/$appSlug",component:It(()=>At(()=>import("./connection-detail-DYbyDpiw.js"),__vite__mapDeps([129,80,81,106,101,4,45,48,130,12,71,28,29,30,16,31,32,33,34,35,26,19,20,1,2,36,37,38,39,40,21,41,24,42,15,43,44,46,47,49,8,50,74,11,131,132,79,95,13,83,25,110,64,58,105,76,114,99,56,133,134,66,82,62,23,68,18,126,67,135,117,136,93,77,88,90]))),validateSearch:ul(()=>Ee({tab:z().optional()}))}),xae=mt({getParentRoute:()=>Pn,path:"/connections/$appSlug/$collectionName/$itemId",component:It(()=>At(()=>import("./collection-detail-CcTNmbP8.js"),__vite__mapDeps([137,106,11,12,68,18,4,100,135,117,23,24,25,8,138,131,81,132,58,139,69,112,28,29,30,16,31,32,33,34,35,26,19,20,1,2,36,37,38,39,40,21,41,42,15,43,44,45,46,47,48,49,50,52,99,83,118,74,71,7,91,90,62,116,70,140,61,56,130,79,80,95,13,110,64,105,76,93,114,55,57,59,60,10,6,9,14]))),validateSearch:ul(()=>Ee({replayId:z().optional()}))}),Rae=mt({getParentRoute:()=>Pn,path:"/monitor",component:It(()=>At(()=>import("./index-CsKe3YZC.js"),__vite__mapDeps([141,120,41,117,23,24,25,8,106,99,64,1,34,44,28,29,30,16,31,32,33,35,26,19,20,2,36,37,38,39,40,21,42,15,43,45,46,47,48,49,50,139,69,133,134,74,11,12,58,4,78,109,110,83,116,100,98,73,18,62,66,88,136,132,71,93,103,97,142,102,96,51,52,53,54,7,55,56,57,59,60,61,10,13,6,9,14,107]))),validateSearch:ul(()=>Ee({tab:dn(["overview","audit","threads"]).default("overview"),from:z().default("now-30m"),to:z().default("now"),connectionId:Ie(z()).optional().default([]),virtualMcpId:Ie(z()).optional().default([]),tool:z().default(""),status:dn(["all","success","errors"]).default("all"),search:z().default(""),page:St().optional(),streaming:Pt().default(!0),propertyFilters:z().default(""),hideSystem:Pt().default(!1)}))}),Oae=mt({getParentRoute:()=>Pn,path:"/general",component:It(()=>At(()=>import("./general-B_ZIET5j.js"),__vite__mapDeps([143,117,23,24,25,8,134,115,66,49,4,87,88,35,144,89,12,73,104,41,58,11,64,63,28,29,30,16,31,32,33,34,26,19,20,1,2,36,37,38,39,40,21,42,15,43,44,45,46,47,48,50,62,13,67])))}),Tae=mt({getParentRoute:()=>Pn,path:"/features",component:It(()=>At(()=>import("./features-BQ0vyboB.js"),__vite__mapDeps([145,117,23,24,25,8,13,12,73,39,87,88,35])))}),Cae=mt({getParentRoute:()=>Pn,path:"/brand-context",component:It(()=>At(()=>import("./brand-context-Dx6aAWU2.js"),__vite__mapDeps([146,12,2,36,40,42,45,48,50,67,4,100,117,23,24,25,8,89,115])))}),Aae=mt({getParentRoute:()=>Pn,path:"/ai-providers",component:It(()=>At(()=>import("./ai-providers-DHyC2swB.js"),__vite__mapDeps([147,29,117,23,24,25,8,63,87,88,35,59,12,20,57,58,11,60,61,10,13,85,78,1,4,7,65,83,2,37,30,32,41,46,86,50,69,66,49,89,115,84,67,106,45,48,148,54])))}),Iae=mt({getParentRoute:()=>Pn,path:"/members",component:It(()=>At(()=>import("./members-C4z0efAZ.js"),__vite__mapDeps([149,125,90,1,36,38,31,25,118,99,120,41,117,23,24,8,150,142,106,7,68,18,83,2,37,100,134,151,133,12,67,66,49,88,47,48,78,109,110,64,45])))}),Mae=mt({getParentRoute:()=>Pn,path:"/roles",component:It(()=>At(()=>import("./roles-DwmHbB0D.js"),__vite__mapDeps([152,151,134,99,67,90,1,36,38,15,45,48,150,142,31,117,23,24,25,8,106,120,41,86,62,39,28,29,30,16,32,33,34,35,26,19,20,2,37,40,21,42,43,44,46,47,49,50,102,78,103,97,12,77,133,74,11,59,66,73,87,88]))),validateSearch:ul(()=>Ee({role:z().optional()}))}),Pae=mt({getParentRoute:()=>Pn,path:"/sso",component:It(()=>At(()=>import("./sso-BF1j_yNV.js"),__vite__mapDeps([153,144,89,12,73,87,88,35,117,23,24,25,8,4,14,48])))}),Nae=mt({getParentRoute:()=>Pn,path:"/profile",component:It(()=>At(()=>import("./profile-DVs_o4X-.js"),__vite__mapDeps([154,117,23,24,25,8,66,49,73,83,1,2,37,84,4,43,44,115,92,70,87,88,35])))}),kae=mt({getParentRoute:()=>Pn,path:"/store",component:It(()=>At(()=>import("./store-tnnxPHF8.js"),__vite__mapDeps([155,29,36,45,48,4,73,63,66,49,64,74,11,12,117,23,24,25,8,95,13,87,88,35])))}),Dae=mt({getParentRoute:()=>Pn,path:"/registry",component:It(()=>At(()=>import("./registry-Cf9xWu3H.js"),[]))}),Lae=mt({getParentRoute:()=>Pn,path:"/store/registry",component:It(()=>At(()=>import("./store-registry-WzODKi73.js"),[]))}),$ae=mt({getParentRoute:()=>Pn,path:"/workflows",component:It(()=>At(()=>import("./workflow-Cnw6Z3Ej.js"),__vite__mapDeps([156,12,80,81,125,90,1,36,38,31,25,118,99,77,41,88,62,39,28,29,30,16,32,33,34,35,26,19,20,2,37,40,21,24,42,15,43,44,45,46,47,48,49,8,50,150,142,140,113,66,106,127,128,93,67,11,74,135,117,23])))}),jae=mt({getParentRoute:()=>Pn,path:"/workflows/$itemId",component:It(()=>At(()=>import("./workflow-detail-CkzZBhlC.js"),__vite__mapDeps([157,138,131,12,81,132,58,11,139,69,112,28,29,30,16,31,32,33,34,35,26,19,20,1,2,36,37,38,39,40,21,41,24,42,15,43,44,45,46,47,48,49,8,50,52,99,83,25,118,135,117,23,74,71,7,91,90,62,116,70,140,61,4])))}),Uae=mt({getParentRoute:()=>aE,path:"/plugins/$pluginId",component:It(()=>At(()=>import("./org-plugin-layout-DUXHrilB.js"),__vite__mapDeps([158,159,74,11,12,46,117,23,24,25,8])))}),zae=mt({getParentRoute:()=>Pn,path:"/agents",component:It(()=>At(()=>import("./agents-list-BOs5vYpf.js"),__vite__mapDeps([160,90,1,36,38,19,75,12,76,58,11,7,8,32,77,41,78,74,15,28,29,30,16,31,33,34,35,26,20,2,37,39,40,21,24,42,43,44,45,46,47,48,49,50,79,80,81,65,25,62,71,117,23,88,148,54,106,105,67,120])))}),Fae=mt({getParentRoute:()=>Pn,path:"/automations",component:It(()=>At(()=>import("./automations-DDxuxMI7.js"),__vite__mapDeps([161,45,50,120,41,117,23,24,25,8,106,119,67,90,1,36,38,28,29,30,16,31,32,33,34,35,26,19,20,2,37,39,40,21,42,15,43,44,46,47,48,49,58,11,12,76])))}),C6=mt({getParentRoute:()=>T6,path:"/$pluginId",component:It(()=>At(()=>import("./dynamic-plugin-layout-C3G8K_nu.js"),__vite__mapDeps([162,159,74,11,12,46,117,23,24,25,8])))}),Bae=[],Vae=[],qae=[],A6=[];dae.forEach(e=>{if(!e.setup)return;const t={parentRoute:C6,routing:{createRoute:mt,lazyRouteComponent:It},registerRootSidebarItem:n=>Bae.push({pluginId:e.id,...n}),registerSidebarGroup:n=>Vae.push({pluginId:e.id,...n}),registerSettingsSidebarItem:n=>qae.push({pluginId:e.id,...n}),registerPluginRoutes:n=>{A6.push(...n)}};e.setup(t)});const Hae=C6.addChildren(A6),Gae=Pn.addChildren([wae,Sae,Eae,xae,zae,Fae,Rae,Oae,Tae,Cae,Aae,Iae,Mae,Pae,Nae,kae,Lae,Dae,$ae,jae]),Kae=T6.addChildren([Hae]),Zae=aE.addChildren([Kae,Uae]),Yae=sE.addChildren([bae,Zae]),Wae=oE.addChildren([Yae,Gae]),Qae=iE.addChildren([vae,Wae]),Xae=ma.addChildren([Qae,_ae,fae,hae,pae,mae,gae]),Jae=d7({routeTree:Xae,defaultNotFoundComponent:()=>T.jsx("div",{className:"flex h-full items-center justify-center",children:T.jsxs("div",{className:"flex flex-col items-center gap-4 p-8",children:[T.jsx("h3",{className:"text-lg font-medium text-foreground",children:"Page not found"}),T.jsx("p",{className:"text-sm text-muted-foreground text-center max-w-[300px]",children:"The page you are looking for does not exist or has been moved."}),T.jsx("button",{type:"button",onClick:()=>window.history.back(),className:"text-sm text-primary hover:underline",children:"Go back"})]})})}),ele=document.getElementById("root");X$.createRoot(ele).render(T.jsx(I.StrictMode,{children:T.jsx(p7,{router:Jae})}));export{ZM as $,Ple as A,W1 as B,nG as C,To as D,oce as E,tce as F,rce as G,Ee as H,St as I,z as J,KM as K,fw as L,jD as M,ule as N,gP as O,Wse as P,Kse as Q,Rg as R,UD as S,$J as T,Yr as U,ece as V,Bae as W,Vae as X,sae as Y,LD as Z,At as _,Dj as a,OV as a$,ale as a0,xo as a1,tee as a2,ht as a3,no as a4,uW as a5,dW as a6,yn as a7,lt as a8,fW as a9,n3 as aA,aY as aB,uY as aC,lY as aD,YZ as aE,qae as aF,nle as aG,Ut as aH,Xt as aI,Ie as aJ,eG as aK,Jle as aL,Xle as aM,HS as aN,vg as aO,LY as aP,R3 as aQ,J4 as aR,lf as aS,ta as aT,DY as aU,ds as aV,b4 as aW,jw as aX,Wr as aY,Pt as aZ,Ye as a_,hW as aa,gW as ab,wW as ac,M3 as ad,fl as ae,pW as af,mW as ag,vW as ah,_W as ai,yW as aj,bW as ak,SW as al,xW as am,RW as an,Ig as ao,dn as ap,hC as aq,Q1 as ar,oY as as,ro as at,Kd as au,Ww as av,jc as aw,aa as ax,fs as ay,io as az,Mg as b,iZ as b$,VP as b0,pw as b1,Ok as b2,Ck as b3,WW as b4,Wn as b5,SQ as b6,f3 as b7,X4 as b8,iae as b9,Rre as bA,Lre as bB,Yre as bC,Xre as bD,wre as bE,Ere as bF,Ore as bG,Tre as bH,$re as bI,Hre as bJ,Hle as bK,dae as bL,mV as bM,dle as bN,gle as bO,vq as bP,ul as bQ,qN as bR,KN as bS,hle as bT,ice as bU,iG as bV,rG as bW,d4 as bX,pf as bY,tZ as bZ,rZ as b_,la as ba,ne as bb,tle as bc,oZ as bd,$le as be,dP as bf,ca as bg,as as bh,Lle as bi,jle as bj,rn as bk,fle as bl,HN as bm,Fre as bn,Bre as bo,VS as bp,c6 as bq,qS as br,nv as bs,KD as bt,nie as bu,YD as bv,Qre as bw,uie as bx,bre as by,Sre as bz,rae as c,Kle as c$,af as c0,HM as c1,Ij as c2,E3 as c3,SY as c4,Fw as c5,p3 as c6,D4 as c7,Bw as c8,Gd as c9,toe as cA,pt as cB,Goe as cC,to as cD,JW as cE,hP as cF,Ile as cG,sZ as cH,aZ as cI,nZ as cJ,lZ as cK,Vz as cL,GD as cM,WD as cN,JD as cO,t6 as cP,n6 as cQ,i6 as cR,Vle as cS,qle as cT,Fle as cU,Ble as cV,ere as cW,zle as cX,QD as cY,e6 as cZ,r6 as c_,O4 as ca,zw as cb,Uw as cc,EY as cd,xY as ce,sQ as cf,aQ as cg,oQ as ch,Or as ci,cle as cj,XH as ck,WH as cl,GH as cm,r4 as cn,GV as co,Sw as cp,xV as cq,ple as cr,YV as cs,xw as ct,Ew as cu,JV as cv,mle as cw,Wle as cx,yse as cy,Qle as cz,dw as d,XD as d0,Yle as d1,kS as d2,hre as d3,Ule as d4,HD as d5,Lie as d6,qre as d7,Zle as d8,Cie as d9,Mie as da,fie as db,die as dc,Gle as dd,vle as de,VW as df,qW as dg,KW as dh,HW as di,GW as dj,ble as dk,wle as dl,Rle as dm,xle as dn,Tle as dp,Ole as dq,Cle as dr,Ele as ds,Sle as dt,yle as du,_le as dv,zM as dw,bO as dx,ile as dy,rle as dz,Ro as e,rf as f,uw as g,Nle as h,Mle as i,T as j,kle as k,$D as l,nce as m,kj as n,nw as o,NM as p,Zn as q,I as r,Jne as s,Dle as t,lle as u,sle as v,GM as w,OT as x,NS as y,Oo as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as n,aT as q,bY as R,bZ as Ee,b_ as ke,b$ as Se,bd as xe,c0 as j}from"./index-5jrl6Co-.js";var de=1,Ie=.9,Ce=.8,Re=.17,Z=.1,Q=.999,Ae=.9999,Me=.99,$e=/[\\\/_+.#"@\[\(\{&]/,De=/[\\\/_+.#"@\[\(\{&]/g,Fe=/[\s-]/,ve=/[\s-]/g;function ee(t,l,r,f,u,c,d){if(c===l.length)return u===t.length?de:Me;var v=`${u},${c}`;if(d[v]!==void 0)return d[v];for(var b=f.charAt(c),i=r.indexOf(b,u),p=0,h,x,E,I;i>=0;)h=ee(t,l,r,f,i+1,c+1,d),h>p&&(i===u?h*=de:$e.test(t.charAt(i-1))?(h*=Ce,E=t.slice(u,i-1).match(De),E&&u>0&&(h*=Math.pow(Q,E.length))):Fe.test(t.charAt(i-1))?(h*=Ie,I=t.slice(u,i-1).match(ve),I&&u>0&&(h*=Math.pow(Q,I.length))):(h*=Re,u>0&&(h*=Math.pow(Q,i-u))),t.charAt(i)!==l.charAt(c)&&(h*=Ae)),(h<Z&&r.charAt(i-1)===f.charAt(c+1)||f.charAt(c+1)===f.charAt(c)&&r.charAt(i-1)!==f.charAt(c))&&(x=ee(t,l,r,f,i+1,c+2,d),x*Z>h&&(h=x*Z)),h>p&&(p=h),i=r.indexOf(b,i+1);return d[v]=p,p}function se(t){return t.toLowerCase().replace(ve," ")}function Ke(t,l,r){return t=r&&r.length>0?`${t+" "+r.join(" ")}`:t,ee(t,l,se(t),se(l),0,0,{})}var V='[cmdk-group=""]',_='[cmdk-group-items=""]',qe='[cmdk-group-heading=""]',me='[cmdk-item=""]',fe=`${me}:not([aria-disabled="true"])`,te="cmdk-item-select",F="data-value",Pe=(t,l,r)=>Ke(t,l,r),pe=n.createContext(void 0),L=()=>n.useContext(pe),he=n.createContext(void 0),re=()=>n.useContext(he),ge=n.createContext(void 0),be=n.forwardRef((t,l)=>{let r=K(()=>{var e,o;return{search:"",value:(o=(e=t.value)!=null?e:t.defaultValue)!=null?o:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),f=K(()=>new Set),u=K(()=>new Map),c=K(()=>new Map),d=K(()=>new Set),v=we(t),{label:b,children:i,value:p,onValueChange:h,filter:x,shouldFilter:E,loop:I,disablePointerSelection:T=!1,vimBindings:A=!0,...O}=t,U=q(),ne=q(),H=q(),M=n.useRef(null),w=We();$(()=>{if(p!==void 0){let e=p.trim();r.current.value=e,k.emit()}},[p]),$(()=>{w(6,ae)},[]);let k=n.useMemo(()=>({subscribe:e=>(d.current.add(e),()=>d.current.delete(e)),snapshot:()=>r.current,setState:(e,o,s)=>{var a,m,g,S;if(!Object.is(r.current[e],o)){if(r.current[e]=o,e==="search")G(),W(),w(1,Y);else if(e==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let y=document.getElementById(H);y?y.focus():(a=document.getElementById(U))==null||a.focus()}if(w(7,()=>{var y;r.current.selectedItemId=(y=D())==null?void 0:y.id,k.emit()}),s||w(5,ae),((m=v.current)==null?void 0:m.value)!==void 0){let y=o??"";(S=(g=v.current).onValueChange)==null||S.call(g,y);return}}k.emit()}},emit:()=>{d.current.forEach(e=>e())}}),[]),N=n.useMemo(()=>({value:(e,o,s)=>{var a;o!==((a=c.current.get(e))==null?void 0:a.value)&&(c.current.set(e,{value:o,keywords:s}),r.current.filtered.items.set(e,le(o,s)),w(2,()=>{W(),k.emit()}))},item:(e,o)=>(f.current.add(e),o&&(u.current.has(o)?u.current.get(o).add(e):u.current.set(o,new Set([e]))),w(3,()=>{G(),W(),r.current.value||Y(),k.emit()}),()=>{c.current.delete(e),f.current.delete(e),r.current.filtered.items.delete(e);let s=D();w(4,()=>{G(),s?.getAttribute("id")===e&&Y(),k.emit()})}),group:e=>(u.current.has(e)||u.current.set(e,new Set),()=>{c.current.delete(e),u.current.delete(e)}),filter:()=>v.current.shouldFilter,label:b||t["aria-label"],getDisablePointerSelection:()=>v.current.disablePointerSelection,listId:U,inputId:H,labelId:ne,listInnerRef:M}),[]);function le(e,o){var s,a;let m=(a=(s=v.current)==null?void 0:s.filter)!=null?a:Pe;return e?m(e,r.current.search,o):0}function W(){if(!r.current.search||v.current.shouldFilter===!1)return;let e=r.current.filtered.items,o=[];r.current.filtered.groups.forEach(a=>{let m=u.current.get(a),g=0;m.forEach(S=>{let y=e.get(S);g=Math.max(y,g)}),o.push([a,g])});let s=M.current;P().sort((a,m)=>{var g,S;let y=a.getAttribute("id"),B=m.getAttribute("id");return((g=e.get(B))!=null?g:0)-((S=e.get(y))!=null?S:0)}).forEach(a=>{let m=a.closest(_);m?m.appendChild(a.parentElement===m?a:a.closest(`${_} > *`)):s.appendChild(a.parentElement===s?a:a.closest(`${_} > *`))}),o.sort((a,m)=>m[1]-a[1]).forEach(a=>{var m;let g=(m=M.current)==null?void 0:m.querySelector(`${V}[${F}="${encodeURIComponent(a[0])}"]`);g?.parentElement.appendChild(g)})}function Y(){let e=P().find(s=>s.getAttribute("aria-disabled")!=="true"),o=e?.getAttribute(F);k.setState("value",o||void 0)}function G(){var e,o,s,a;if(!r.current.search||v.current.shouldFilter===!1){r.current.filtered.count=f.current.size;return}r.current.filtered.groups=new Set;let m=0;for(let g of f.current){let S=(o=(e=c.current.get(g))==null?void 0:e.value)!=null?o:"",y=(a=(s=c.current.get(g))==null?void 0:s.keywords)!=null?a:[],B=le(S,y);r.current.filtered.items.set(g,B),B>0&&m++}for(let[g,S]of u.current)for(let y of S)if(r.current.filtered.items.get(y)>0){r.current.filtered.groups.add(g);break}r.current.filtered.count=m}function ae(){var e,o,s;let a=D();a&&(((e=a.parentElement)==null?void 0:e.firstChild)===a&&((s=(o=a.closest(V))==null?void 0:o.querySelector(qe))==null||s.scrollIntoView({block:"nearest"})),a.scrollIntoView({block:"nearest"}))}function D(){var e;return(e=M.current)==null?void 0:e.querySelector(`${me}[aria-selected="true"]`)}function P(){var e;return Array.from(((e=M.current)==null?void 0:e.querySelectorAll(fe))||[])}function J(e){let o=P()[e];o&&k.setState("value",o.getAttribute(F))}function X(e){var o;let s=D(),a=P(),m=a.findIndex(S=>S===s),g=a[m+e];(o=v.current)!=null&&o.loop&&(g=m+e<0?a[a.length-1]:m+e===a.length?a[0]:a[m+e]),g&&k.setState("value",g.getAttribute(F))}function ue(e){let o=D(),s=o?.closest(V),a;for(;s&&!a;)s=e>0?He(s,V):Ne(s,V),a=s?.querySelector(fe);a?k.setState("value",a.getAttribute(F)):X(e)}let ie=()=>J(P().length-1),oe=e=>{e.preventDefault(),e.metaKey?ie():e.altKey?ue(1):X(1)},ce=e=>{e.preventDefault(),e.metaKey?J(0):e.altKey?ue(-1):X(-1)};return n.createElement(R.div,{ref:l,tabIndex:-1,...O,"cmdk-root":"",onKeyDown:e=>{var o;(o=O.onKeyDown)==null||o.call(O,e);let s=e.nativeEvent.isComposing||e.keyCode===229;if(!(e.defaultPrevented||s))switch(e.key){case"n":case"j":{A&&e.ctrlKey&&oe(e);break}case"ArrowDown":{oe(e);break}case"p":case"k":{A&&e.ctrlKey&&ce(e);break}case"ArrowUp":{ce(e);break}case"Home":{e.preventDefault(),J(0);break}case"End":{e.preventDefault(),ie();break}case"Enter":{e.preventDefault();let a=D();if(a){let m=new Event(te);a.dispatchEvent(m)}}}}},n.createElement("label",{"cmdk-label":"",htmlFor:N.inputId,id:N.labelId,style:Ge},b),z(t,e=>n.createElement(he.Provider,{value:k},n.createElement(pe.Provider,{value:N},e))))}),Ve=n.forwardRef((t,l)=>{var r,f;let u=q(),c=n.useRef(null),d=n.useContext(ge),v=L(),b=we(t),i=(f=(r=b.current)==null?void 0:r.forceMount)!=null?f:d?.forceMount;$(()=>{if(!i)return v.item(u,d?.id)},[i]);let p=ye(u,c,[t.value,t.children,c],t.keywords),h=re(),x=C(w=>w.value&&w.value===p.current),E=C(w=>i||v.filter()===!1?!0:w.search?w.filtered.items.get(u)>0:!0);n.useEffect(()=>{let w=c.current;if(!(!w||t.disabled))return w.addEventListener(te,I),()=>w.removeEventListener(te,I)},[E,t.onSelect,t.disabled]);function I(){var w,k;T(),(k=(w=b.current).onSelect)==null||k.call(w,p.current)}function T(){h.setState("value",p.current,!0)}if(!E)return null;let{disabled:A,value:O,onSelect:U,forceMount:ne,keywords:H,...M}=t;return n.createElement(R.div,{ref:j(c,l),...M,id:u,"cmdk-item":"",role:"option","aria-disabled":!!A,"aria-selected":!!x,"data-disabled":!!A,"data-selected":!!x,onPointerMove:A||v.getDisablePointerSelection()?void 0:T,onClick:A?void 0:I},t.children)}),je=n.forwardRef((t,l)=>{let{heading:r,children:f,forceMount:u,...c}=t,d=q(),v=n.useRef(null),b=n.useRef(null),i=q(),p=L(),h=C(E=>u||p.filter()===!1?!0:E.search?E.filtered.groups.has(d):!0);$(()=>p.group(d),[]),ye(d,v,[t.value,t.heading,b]);let x=n.useMemo(()=>({id:d,forceMount:u}),[u]);return n.createElement(R.div,{ref:j(v,l),...c,"cmdk-group":"",role:"presentation",hidden:h?void 0:!0},r&&n.createElement("div",{ref:b,"cmdk-group-heading":"","aria-hidden":!0,id:i},r),z(t,E=>n.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?i:void 0},n.createElement(ge.Provider,{value:x},E))))}),Le=n.forwardRef((t,l)=>{let{alwaysRender:r,...f}=t,u=n.useRef(null),c=C(d=>!d.search);return!r&&!c?null:n.createElement(R.div,{ref:j(u,l),...f,"cmdk-separator":"",role:"separator"})}),Oe=n.forwardRef((t,l)=>{let{onValueChange:r,...f}=t,u=t.value!=null,c=re(),d=C(i=>i.search),v=C(i=>i.selectedItemId),b=L();return n.useEffect(()=>{t.value!=null&&c.setState("search",t.value)},[t.value]),n.createElement(R.input,{ref:l,...f,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":b.listId,"aria-labelledby":b.labelId,"aria-activedescendant":v,id:b.inputId,type:"text",value:u?t.value:d,onChange:i=>{u||c.setState("search",i.target.value),r?.(i.target.value)}})}),Be=n.forwardRef((t,l)=>{let{children:r,label:f="Suggestions",...u}=t,c=n.useRef(null),d=n.useRef(null),v=C(i=>i.selectedItemId),b=L();return n.useEffect(()=>{if(d.current&&c.current){let i=d.current,p=c.current,h,x=new ResizeObserver(()=>{h=requestAnimationFrame(()=>{let E=i.offsetHeight;p.style.setProperty("--cmdk-list-height",E.toFixed(1)+"px")})});return x.observe(i),()=>{cancelAnimationFrame(h),x.unobserve(i)}}},[]),n.createElement(R.div,{ref:j(c,l),...u,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":v,"aria-label":f,id:b.listId},z(t,i=>n.createElement("div",{ref:j(d,b.listInnerRef),"cmdk-list-sizer":""},i)))}),ze=n.forwardRef((t,l)=>{let{open:r,onOpenChange:f,overlayClassName:u,contentClassName:c,container:d,...v}=t;return n.createElement(Ee,{open:r,onOpenChange:f},n.createElement(ke,{container:d},n.createElement(Se,{"cmdk-overlay":"",className:u}),n.createElement(xe,{"aria-label":t.label,"cmdk-dialog":"",className:c},n.createElement(be,{ref:l,...v}))))}),Te=n.forwardRef((t,l)=>C(r=>r.filtered.count===0)?n.createElement(R.div,{ref:l,...t,"cmdk-empty":"",role:"presentation"}):null),Ue=n.forwardRef((t,l)=>{let{progress:r,children:f,label:u="Loading...",...c}=t;return n.createElement(R.div,{ref:l,...c,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":u},z(t,d=>n.createElement("div",{"aria-hidden":!0},d)))}),Xe=Object.assign(be,{List:Be,Item:Ve,Input:Oe,Group:je,Separator:Le,Dialog:ze,Empty:Te,Loading:Ue});function He(t,l){let r=t.nextElementSibling;for(;r;){if(r.matches(l))return r;r=r.nextElementSibling}}function Ne(t,l){let r=t.previousElementSibling;for(;r;){if(r.matches(l))return r;r=r.previousElementSibling}}function we(t){let l=n.useRef(t);return $(()=>{l.current=t}),l}var $=typeof window>"u"?n.useEffect:n.useLayoutEffect;function K(t){let l=n.useRef();return l.current===void 0&&(l.current=t()),l}function C(t){let l=re(),r=()=>t(l.snapshot());return n.useSyncExternalStore(l.subscribe,r,r)}function ye(t,l,r,f=[]){let u=n.useRef(),c=L();return $(()=>{var d;let v=(()=>{var i;for(let p of r){if(typeof p=="string")return p.trim();if(typeof p=="object"&&"current"in p)return p.current?(i=p.current.textContent)==null?void 0:i.trim():u.current}})(),b=f.map(i=>i.trim());c.value(t,v,b),(d=l.current)==null||d.setAttribute(F,v),u.current=v}),u}var We=()=>{let[t,l]=n.useState(),r=K(()=>new Map);return $(()=>{r.current.forEach(f=>f()),r.current=new Map},[t]),(f,u)=>{r.current.set(f,u),l({})}};function Ye(t){let l=t.type;return typeof l=="function"?l(t.props):"render"in l?l.render(t.props):t}function z({asChild:t,children:l},r){return t&&n.isValidElement(l)?n.cloneElement(Ye(l),{ref:l.ref},r(l.props.children)):r(l)}var Ge={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};export{Xe as _};
|
|
1
|
+
import{r as n,aT as q,bY as R,bZ as Ee,b_ as ke,b$ as Se,bd as xe,c0 as j}from"./index-_CUdtdz8.js";var de=1,Ie=.9,Ce=.8,Re=.17,Z=.1,Q=.999,Ae=.9999,Me=.99,$e=/[\\\/_+.#"@\[\(\{&]/,De=/[\\\/_+.#"@\[\(\{&]/g,Fe=/[\s-]/,ve=/[\s-]/g;function ee(t,l,r,f,u,c,d){if(c===l.length)return u===t.length?de:Me;var v=`${u},${c}`;if(d[v]!==void 0)return d[v];for(var b=f.charAt(c),i=r.indexOf(b,u),p=0,h,x,E,I;i>=0;)h=ee(t,l,r,f,i+1,c+1,d),h>p&&(i===u?h*=de:$e.test(t.charAt(i-1))?(h*=Ce,E=t.slice(u,i-1).match(De),E&&u>0&&(h*=Math.pow(Q,E.length))):Fe.test(t.charAt(i-1))?(h*=Ie,I=t.slice(u,i-1).match(ve),I&&u>0&&(h*=Math.pow(Q,I.length))):(h*=Re,u>0&&(h*=Math.pow(Q,i-u))),t.charAt(i)!==l.charAt(c)&&(h*=Ae)),(h<Z&&r.charAt(i-1)===f.charAt(c+1)||f.charAt(c+1)===f.charAt(c)&&r.charAt(i-1)!==f.charAt(c))&&(x=ee(t,l,r,f,i+1,c+2,d),x*Z>h&&(h=x*Z)),h>p&&(p=h),i=r.indexOf(b,i+1);return d[v]=p,p}function se(t){return t.toLowerCase().replace(ve," ")}function Ke(t,l,r){return t=r&&r.length>0?`${t+" "+r.join(" ")}`:t,ee(t,l,se(t),se(l),0,0,{})}var V='[cmdk-group=""]',_='[cmdk-group-items=""]',qe='[cmdk-group-heading=""]',me='[cmdk-item=""]',fe=`${me}:not([aria-disabled="true"])`,te="cmdk-item-select",F="data-value",Pe=(t,l,r)=>Ke(t,l,r),pe=n.createContext(void 0),L=()=>n.useContext(pe),he=n.createContext(void 0),re=()=>n.useContext(he),ge=n.createContext(void 0),be=n.forwardRef((t,l)=>{let r=K(()=>{var e,o;return{search:"",value:(o=(e=t.value)!=null?e:t.defaultValue)!=null?o:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),f=K(()=>new Set),u=K(()=>new Map),c=K(()=>new Map),d=K(()=>new Set),v=we(t),{label:b,children:i,value:p,onValueChange:h,filter:x,shouldFilter:E,loop:I,disablePointerSelection:T=!1,vimBindings:A=!0,...O}=t,U=q(),ne=q(),H=q(),M=n.useRef(null),w=We();$(()=>{if(p!==void 0){let e=p.trim();r.current.value=e,k.emit()}},[p]),$(()=>{w(6,ae)},[]);let k=n.useMemo(()=>({subscribe:e=>(d.current.add(e),()=>d.current.delete(e)),snapshot:()=>r.current,setState:(e,o,s)=>{var a,m,g,S;if(!Object.is(r.current[e],o)){if(r.current[e]=o,e==="search")G(),W(),w(1,Y);else if(e==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let y=document.getElementById(H);y?y.focus():(a=document.getElementById(U))==null||a.focus()}if(w(7,()=>{var y;r.current.selectedItemId=(y=D())==null?void 0:y.id,k.emit()}),s||w(5,ae),((m=v.current)==null?void 0:m.value)!==void 0){let y=o??"";(S=(g=v.current).onValueChange)==null||S.call(g,y);return}}k.emit()}},emit:()=>{d.current.forEach(e=>e())}}),[]),N=n.useMemo(()=>({value:(e,o,s)=>{var a;o!==((a=c.current.get(e))==null?void 0:a.value)&&(c.current.set(e,{value:o,keywords:s}),r.current.filtered.items.set(e,le(o,s)),w(2,()=>{W(),k.emit()}))},item:(e,o)=>(f.current.add(e),o&&(u.current.has(o)?u.current.get(o).add(e):u.current.set(o,new Set([e]))),w(3,()=>{G(),W(),r.current.value||Y(),k.emit()}),()=>{c.current.delete(e),f.current.delete(e),r.current.filtered.items.delete(e);let s=D();w(4,()=>{G(),s?.getAttribute("id")===e&&Y(),k.emit()})}),group:e=>(u.current.has(e)||u.current.set(e,new Set),()=>{c.current.delete(e),u.current.delete(e)}),filter:()=>v.current.shouldFilter,label:b||t["aria-label"],getDisablePointerSelection:()=>v.current.disablePointerSelection,listId:U,inputId:H,labelId:ne,listInnerRef:M}),[]);function le(e,o){var s,a;let m=(a=(s=v.current)==null?void 0:s.filter)!=null?a:Pe;return e?m(e,r.current.search,o):0}function W(){if(!r.current.search||v.current.shouldFilter===!1)return;let e=r.current.filtered.items,o=[];r.current.filtered.groups.forEach(a=>{let m=u.current.get(a),g=0;m.forEach(S=>{let y=e.get(S);g=Math.max(y,g)}),o.push([a,g])});let s=M.current;P().sort((a,m)=>{var g,S;let y=a.getAttribute("id"),B=m.getAttribute("id");return((g=e.get(B))!=null?g:0)-((S=e.get(y))!=null?S:0)}).forEach(a=>{let m=a.closest(_);m?m.appendChild(a.parentElement===m?a:a.closest(`${_} > *`)):s.appendChild(a.parentElement===s?a:a.closest(`${_} > *`))}),o.sort((a,m)=>m[1]-a[1]).forEach(a=>{var m;let g=(m=M.current)==null?void 0:m.querySelector(`${V}[${F}="${encodeURIComponent(a[0])}"]`);g?.parentElement.appendChild(g)})}function Y(){let e=P().find(s=>s.getAttribute("aria-disabled")!=="true"),o=e?.getAttribute(F);k.setState("value",o||void 0)}function G(){var e,o,s,a;if(!r.current.search||v.current.shouldFilter===!1){r.current.filtered.count=f.current.size;return}r.current.filtered.groups=new Set;let m=0;for(let g of f.current){let S=(o=(e=c.current.get(g))==null?void 0:e.value)!=null?o:"",y=(a=(s=c.current.get(g))==null?void 0:s.keywords)!=null?a:[],B=le(S,y);r.current.filtered.items.set(g,B),B>0&&m++}for(let[g,S]of u.current)for(let y of S)if(r.current.filtered.items.get(y)>0){r.current.filtered.groups.add(g);break}r.current.filtered.count=m}function ae(){var e,o,s;let a=D();a&&(((e=a.parentElement)==null?void 0:e.firstChild)===a&&((s=(o=a.closest(V))==null?void 0:o.querySelector(qe))==null||s.scrollIntoView({block:"nearest"})),a.scrollIntoView({block:"nearest"}))}function D(){var e;return(e=M.current)==null?void 0:e.querySelector(`${me}[aria-selected="true"]`)}function P(){var e;return Array.from(((e=M.current)==null?void 0:e.querySelectorAll(fe))||[])}function J(e){let o=P()[e];o&&k.setState("value",o.getAttribute(F))}function X(e){var o;let s=D(),a=P(),m=a.findIndex(S=>S===s),g=a[m+e];(o=v.current)!=null&&o.loop&&(g=m+e<0?a[a.length-1]:m+e===a.length?a[0]:a[m+e]),g&&k.setState("value",g.getAttribute(F))}function ue(e){let o=D(),s=o?.closest(V),a;for(;s&&!a;)s=e>0?He(s,V):Ne(s,V),a=s?.querySelector(fe);a?k.setState("value",a.getAttribute(F)):X(e)}let ie=()=>J(P().length-1),oe=e=>{e.preventDefault(),e.metaKey?ie():e.altKey?ue(1):X(1)},ce=e=>{e.preventDefault(),e.metaKey?J(0):e.altKey?ue(-1):X(-1)};return n.createElement(R.div,{ref:l,tabIndex:-1,...O,"cmdk-root":"",onKeyDown:e=>{var o;(o=O.onKeyDown)==null||o.call(O,e);let s=e.nativeEvent.isComposing||e.keyCode===229;if(!(e.defaultPrevented||s))switch(e.key){case"n":case"j":{A&&e.ctrlKey&&oe(e);break}case"ArrowDown":{oe(e);break}case"p":case"k":{A&&e.ctrlKey&&ce(e);break}case"ArrowUp":{ce(e);break}case"Home":{e.preventDefault(),J(0);break}case"End":{e.preventDefault(),ie();break}case"Enter":{e.preventDefault();let a=D();if(a){let m=new Event(te);a.dispatchEvent(m)}}}}},n.createElement("label",{"cmdk-label":"",htmlFor:N.inputId,id:N.labelId,style:Ge},b),z(t,e=>n.createElement(he.Provider,{value:k},n.createElement(pe.Provider,{value:N},e))))}),Ve=n.forwardRef((t,l)=>{var r,f;let u=q(),c=n.useRef(null),d=n.useContext(ge),v=L(),b=we(t),i=(f=(r=b.current)==null?void 0:r.forceMount)!=null?f:d?.forceMount;$(()=>{if(!i)return v.item(u,d?.id)},[i]);let p=ye(u,c,[t.value,t.children,c],t.keywords),h=re(),x=C(w=>w.value&&w.value===p.current),E=C(w=>i||v.filter()===!1?!0:w.search?w.filtered.items.get(u)>0:!0);n.useEffect(()=>{let w=c.current;if(!(!w||t.disabled))return w.addEventListener(te,I),()=>w.removeEventListener(te,I)},[E,t.onSelect,t.disabled]);function I(){var w,k;T(),(k=(w=b.current).onSelect)==null||k.call(w,p.current)}function T(){h.setState("value",p.current,!0)}if(!E)return null;let{disabled:A,value:O,onSelect:U,forceMount:ne,keywords:H,...M}=t;return n.createElement(R.div,{ref:j(c,l),...M,id:u,"cmdk-item":"",role:"option","aria-disabled":!!A,"aria-selected":!!x,"data-disabled":!!A,"data-selected":!!x,onPointerMove:A||v.getDisablePointerSelection()?void 0:T,onClick:A?void 0:I},t.children)}),je=n.forwardRef((t,l)=>{let{heading:r,children:f,forceMount:u,...c}=t,d=q(),v=n.useRef(null),b=n.useRef(null),i=q(),p=L(),h=C(E=>u||p.filter()===!1?!0:E.search?E.filtered.groups.has(d):!0);$(()=>p.group(d),[]),ye(d,v,[t.value,t.heading,b]);let x=n.useMemo(()=>({id:d,forceMount:u}),[u]);return n.createElement(R.div,{ref:j(v,l),...c,"cmdk-group":"",role:"presentation",hidden:h?void 0:!0},r&&n.createElement("div",{ref:b,"cmdk-group-heading":"","aria-hidden":!0,id:i},r),z(t,E=>n.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?i:void 0},n.createElement(ge.Provider,{value:x},E))))}),Le=n.forwardRef((t,l)=>{let{alwaysRender:r,...f}=t,u=n.useRef(null),c=C(d=>!d.search);return!r&&!c?null:n.createElement(R.div,{ref:j(u,l),...f,"cmdk-separator":"",role:"separator"})}),Oe=n.forwardRef((t,l)=>{let{onValueChange:r,...f}=t,u=t.value!=null,c=re(),d=C(i=>i.search),v=C(i=>i.selectedItemId),b=L();return n.useEffect(()=>{t.value!=null&&c.setState("search",t.value)},[t.value]),n.createElement(R.input,{ref:l,...f,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":b.listId,"aria-labelledby":b.labelId,"aria-activedescendant":v,id:b.inputId,type:"text",value:u?t.value:d,onChange:i=>{u||c.setState("search",i.target.value),r?.(i.target.value)}})}),Be=n.forwardRef((t,l)=>{let{children:r,label:f="Suggestions",...u}=t,c=n.useRef(null),d=n.useRef(null),v=C(i=>i.selectedItemId),b=L();return n.useEffect(()=>{if(d.current&&c.current){let i=d.current,p=c.current,h,x=new ResizeObserver(()=>{h=requestAnimationFrame(()=>{let E=i.offsetHeight;p.style.setProperty("--cmdk-list-height",E.toFixed(1)+"px")})});return x.observe(i),()=>{cancelAnimationFrame(h),x.unobserve(i)}}},[]),n.createElement(R.div,{ref:j(c,l),...u,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":v,"aria-label":f,id:b.listId},z(t,i=>n.createElement("div",{ref:j(d,b.listInnerRef),"cmdk-list-sizer":""},i)))}),ze=n.forwardRef((t,l)=>{let{open:r,onOpenChange:f,overlayClassName:u,contentClassName:c,container:d,...v}=t;return n.createElement(Ee,{open:r,onOpenChange:f},n.createElement(ke,{container:d},n.createElement(Se,{"cmdk-overlay":"",className:u}),n.createElement(xe,{"aria-label":t.label,"cmdk-dialog":"",className:c},n.createElement(be,{ref:l,...v}))))}),Te=n.forwardRef((t,l)=>C(r=>r.filtered.count===0)?n.createElement(R.div,{ref:l,...t,"cmdk-empty":"",role:"presentation"}):null),Ue=n.forwardRef((t,l)=>{let{progress:r,children:f,label:u="Loading...",...c}=t;return n.createElement(R.div,{ref:l,...c,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":u},z(t,d=>n.createElement("div",{"aria-hidden":!0},d)))}),Xe=Object.assign(be,{List:Be,Item:Ve,Input:Oe,Group:je,Separator:Le,Dialog:ze,Empty:Te,Loading:Ue});function He(t,l){let r=t.nextElementSibling;for(;r;){if(r.matches(l))return r;r=r.nextElementSibling}}function Ne(t,l){let r=t.previousElementSibling;for(;r;){if(r.matches(l))return r;r=r.previousElementSibling}}function we(t){let l=n.useRef(t);return $(()=>{l.current=t}),l}var $=typeof window>"u"?n.useEffect:n.useLayoutEffect;function K(t){let l=n.useRef();return l.current===void 0&&(l.current=t()),l}function C(t){let l=re(),r=()=>t(l.snapshot());return n.useSyncExternalStore(l.subscribe,r,r)}function ye(t,l,r,f=[]){let u=n.useRef(),c=L();return $(()=>{var d;let v=(()=>{var i;for(let p of r){if(typeof p=="string")return p.trim();if(typeof p=="object"&&"current"in p)return p.current?(i=p.current.textContent)==null?void 0:i.trim():u.current}})(),b=f.map(i=>i.trim());c.value(t,v,b),(d=l.current)==null||d.setAttribute(F,v),u.current=v}),u}var We=()=>{let[t,l]=n.useState(),r=K(()=>new Map);return $(()=>{r.current.forEach(f=>f()),r.current=new Map},[t]),(f,u)=>{r.current.set(f,u),l({})}};function Ye(t){let l=t.type;return typeof l=="function"?l(t.props):"render"in l?l.render(t.props):t}function z({asChild:t,children:l},r){return t&&n.isValidElement(l)?n.cloneElement(Ye(l),{ref:l.ref},r(l.props.children)):r(l)}var Ge={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};export{Xe as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as $,j as i,r as B,s as ae,P as Ce,f as je,c as ce,t as me,b as ke,K as Se,n as Ie}from"./index-5jrl6Co-.js";import{u as _e}from"./tooltip-CBWMgMUA.js";import{I as ye}from"./integration-icon-Cnjj_f25.js";import{S as ue}from"./skeleton-DO9x4Rmx.js";import{W as H,i as ve}from"./constants-CkJVGrih.js";import{b as Ae}from"./use-virtual-mcp-BQvDkFLT.js";import{u as Oe}from"./use-organization-settings-DfjHTWfJ.js";import{i as De}from"./ChevronRight-srFzWZbn.js";import{s as Ee}from"./Plus-D7J-ZpF_.js";import{a as Me}from"./Users03-B2lBHlGZ.js";import{I as oe,S as Pe,L as Re,b as Te}from"./lean-canvas-recruit-modal-DTNkFQF7.js";import{b as $e,d as Le,e as ze,c as Be,u as Fe,C as G}from"./index-C_gN6VMh.js";import{u as He}from"./use-create-virtual-mcp-D4YXt-ZE.js";import{N as Ke}from"./select-model-CTDZYKlK.js";import{u as Ue}from"./use-ai-providers-6IUbUXz_.js";import{d as We}from"./XCircle-Rqvc6PWM.js";import"./Container-CDeA-o5s.js";import"./agent-icon-D6T8ZDaV.js";import"./AlertCircle-C2o5q6vc.js";import"./Tool01-8PZBFCSr.js";import"./Archive-DFar6uKs.js";import"./XClose-BEPgM0J7.js";import"./RefreshCcw01-1mb0qscd.js";import"./ArrowNarrowLeft-Dc1sniQF.js";import"./ArrowUpRight-DoW21rsG.js";import"./ZapSquare-BTR8NCmq.js";import"./CheckCircle-BAZINfwL.js";import"./Check-C6Q1bblL.js";import"./ChevronDown-CLABqX5x.js";import"./ChevronUp-CYhx7PBM.js";import"./DotsVertical-Cr_XWVYH.js";import"./Star01-DxYo9bx0.js";import"./Palette-BzdGUPw1.js";import"./SearchMd-B0Lvg3Xk.js";import"./LayoutLeft-D10kQiES.js";import"./LinkExternal01-D7Bf92jL.js";import"./Lock01-B5nxky6K.js";import"./Sun-C3FNZe_T.js";import"./Play-Cv1sPHtp.js";import"./Settings02-CxQQ6hnP.js";import"./Shield01-CWlsOsl1.js";import"./Trash01-sqipAjJs.js";import"./User01-CMGdQkcX.js";import"./X-UcFDhK-I.js";import"./Zap-CV9G-Zfk.js";import"./use-collections-fNwAKHqm.js";import"./use-navigate-to-agent-DYmmiFA6.js";import"./dialog-BCrxZaWW.js";import"./collection-search-CC32ghxz.js";import"./checkbox-D9uJNURD.js";import"./use-connection-kZb9ifhw.js";import"./extract-connection-data-DkJkN3o2.js";import"./constants-eHuCaQ_P.js";import"./collections-h6SIG2VD.js";import"./drawer-CAqFFbhs.js";import"./use-mcp-tools-CwvPDTWi.js";import"./switch-DnFBbNMj.js";import"./input-D-ZjkErJ.js";import"./chat-context-COr23Pvp.js";import"./use-decopilot-events-BHxLXAgz.js";import"./create-sse-subscription-CxkOgzKf.js";import"./use-tasks-POUiiV_o.js";import"./shell-layout-CSQshMOg.js";import"./required-auth-layout-DZwCJHl_.js";import"./use-org-sso-DnHHFQsb.js";import"./pair-DlFSBO5g.js";import"./index-zwJpQueu.js";import"./use-copy-B9Cl132r.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./content-blocks-o63cs2vh.js";import"./types-DzQyumzv.js";import"./spinner-DKEalby6.js";import"./tabs-B-6zDMoB.js";import"./form-te3NdICa.js";import"./label-BYocE4uU.js";import"./select-B5UhPE3o.js";import"./toggle-group-ClNyHH4s.js";import"./dropdown-menu-CapVicMN.js";import"./index-BRxzMJGJ.js";import"./question-004-sINsf4GQ.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-Do5z7MRC.js";import"./use-registry-connections-B6kptdp7.js";import"./useInfiniteQuery-BiqW5IFh.js";import"./infiniteQueryObserver-DUrDxQsV.js";import"./card-BkUSFoeH.js";import"./collection-tabs-DjuikHg2.js";import"./badge-BDIezRWl.js";import"./textarea-4YHnq21B.js";import"./connection-form-helpers-DTUZBSNs.js";import"./use-infinite-scroll-DC9PNnqU.js";import"./useSuspenseInfiniteQuery-ZvSBUcQH.js";import"./ai-providers-logos-DD3qZ33J.js";import"./avatar-Cz84VRfi.js";import"./settings-section-CLiE2XoW.js";import"./unwrap-tool-result-BYXdCQMg.js";function Ve(e){try{const t=localStorage.getItem(`mesh:chat:recent-agents:${e}`);return t?JSON.parse(t):[]}catch{return[]}}const qe=8;function xe(e){const t=$.c(21),{agent:s,onSpecialClick:r,tracking:n}=e,{org:o}=ae(),c=je();let a;t[0]!==s.id||t[1]!==s.title||t[2]!==c||t[3]!==r||t[4]!==o||t[5]!==n.action||t[6]!==n.template_id||t[7]!==n.tile_kind?(a=()=>{if(me("home_agent_tile_clicked",{template_id:n.template_id,agent_id:s.id,agent_title:s.title,tile_kind:n.tile_kind,action:n.action}),r)r();else{const S=crypto.randomUUID();c({to:"/$org/$taskId",params:{org:o.slug,taskId:S},search:{virtualmcpid:s.id}})}},t[0]=s.id,t[1]=s.title,t[2]=c,t[3]=r,t[4]=o,t[5]=n.action,t[6]=n.template_id,t[7]=n.tile_kind,t[8]=a):a=t[8];const m=a;let E;t[9]===Symbol.for("react.memo_cache_sentinel")?(E=ce("flex flex-col items-center gap-3 p-2 rounded-lg","transition-colors","cursor-pointer","w-[100px] shrink-0","group"),t[9]=E):E=t[9];const h=`Select agent ${s.title}`;let M;t[10]===Symbol.for("react.memo_cache_sentinel")?(M=i.jsx(Me,{size:24}),t[10]=M):M=t[10];let b;t[11]!==s.icon||t[12]!==s.title?(b=i.jsx(ye,{icon:s.icon,name:s.title,size:"md",fallbackIcon:M,className:"transition-transform group-hover:scale-110"}),t[11]=s.icon,t[12]=s.title,t[13]=b):b=t[13];let p;t[14]!==s.title?(p=i.jsx("p",{className:"text-xs sm:text-sm text-foreground text-center leading-tight line-clamp-2 break-words w-full",children:s.title}),t[14]=s.title,t[15]=p):p=t[15];let j;return t[16]!==m||t[17]!==h||t[18]!==b||t[19]!==p?(j=i.jsxs("button",{type:"button",onClick:m,className:E,"aria-label":h,children:[b,p]}),t[16]=m,t[17]=h,t[18]=b,t[19]=p,t[20]=j):j=t[20],j}function Ge(){const e=$.c(8),t=je(),{org:s}=ae();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=ce("flex flex-col items-center gap-3 p-2 rounded-lg","transition-colors","cursor-pointer","w-[100px] shrink-0","group"),e[0]=r):r=e[0];let n;e[1]!==t||e[2]!==s.slug?(n=()=>{me("home_see_all_agents_clicked"),t({to:"/$org/settings/agents",params:{org:s.slug}})},e[1]=t,e[2]=s.slug,e[3]=n):n=e[3];let o,c;e[4]===Symbol.for("react.memo_cache_sentinel")?(o=i.jsx("div",{className:"size-12 rounded-xl bg-accent flex items-center justify-center shrink-0 transition-transform group-hover:scale-110",children:i.jsx(De,{size:20,className:"text-foreground"})}),c=i.jsx("p",{className:"text-xs sm:text-sm text-foreground text-center leading-tight",children:"See all"}),e[4]=o,e[5]=c):(o=e[4],c=e[5]);let a;return e[6]!==n?(a=i.jsxs("button",{type:"button",className:r,"aria-label":"See all agents",onClick:n,children:[o,c]}),e[6]=n,e[7]=a):a=e[7],a}function Ye(){const e=$.c(9);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={navigateOnCreate:!0},e[0]=t):t=e[0];const{createVirtualMCP:s,isCreating:r}=He(t);let n;e[1]!==s?(n=()=>{me("home_create_agent_clicked"),s()},e[1]=s,e[2]=n):n=e[2];let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o=ce("flex flex-col items-center gap-3 p-2 rounded-lg","transition-colors","cursor-pointer","w-[100px] shrink-0","group","disabled:opacity-50 disabled:cursor-not-allowed"),e[3]=o):o=e[3];let c,a;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=i.jsx("div",{className:"size-12 rounded-xl bg-background border-2 border-dashed border-border flex items-center justify-center shrink-0 transition-transform group-hover:scale-110",children:i.jsx(Ee,{size:20,className:"text-muted-foreground"})}),a=i.jsx("p",{className:"text-xs sm:text-sm text-foreground text-center leading-tight",children:"Create agent"}),e[4]=c,e[5]=a):(c=e[4],a=e[5]);let m;return e[6]!==r||e[7]!==n?(m=i.jsxs("button",{type:"button",onClick:n,disabled:r,className:o,"aria-label":"Create agent",children:[c,a]}),e[6]=r,e[7]=n,e[8]=m):m=e[8],m}function ie(e,t,s){return e.find(r=>r.id!==null&&(r.metadata?.type===t||r.title===s))}function Je(){const e=$.c(52),t=Ae(),{locator:s,org:r}=ae(),n=Oe(),[o,c]=B.useState(!1),[a,m]=B.useState(!1),[E,h]=B.useState(!1),[M,b]=B.useState(!1),[p,j]=B.useState(!1),[S,L]=B.useState(!1),[P,z]=B.useState(!1),[R]=Ce(),T=$e(r.slug);let f,g,u,x,k,_,I,d;if(e[0]!==s||e[1]!==T||e[2]!==n||e[3]!==R||e[4]!==t){const se=H.find(at),Y=H.find(ot),J=H.find(lt),Q=H.find(rt),Z=H.find(nt),de=H.find(st),ne=H.find(it);u=ie(t,Y.id,Y.title),f=ie(t,J.id,J.title),g=ie(t,Q.id,Q.title),x=ie(t,Z.id,Z.title);const pe=l=>{if(l===se.id)return{key:l,kind:"template-recruit",templateId:"site-editor",agent:se,onClick:"import-deco"};if(l===Y.id)return u?{key:u.id,kind:"existing",templateId:"site-diagnostics",agent:u}:{key:l,kind:"template-recruit",templateId:"site-diagnostics",agent:Y,onClick:"diagnostics"};if(l===J.id)return f?{key:f.id,kind:"existing",templateId:"ai-image",agent:f}:{key:l,kind:"template-recruit",templateId:"ai-image",agent:J,onClick:"ai-image"};if(l===Z.id)return x?{key:x.id,kind:"existing",templateId:"lean-canvas",agent:x}:{key:l,kind:"template-recruit",templateId:"lean-canvas",agent:Z,onClick:"lean-canvas"};if(l===de.id)return{key:l,kind:"template-recruit",templateId:"studio-pack",agent:de,onClick:"studio-pack"};if(l===ne.id)return R.experimental_vibecode?{key:l,kind:"template-recruit",templateId:"self-healing-storefront",agent:ne,onClick:"self-healing"}:null;if(l===Q.id)return g?{key:g.id,kind:"existing",templateId:"ai-research",agent:g}:{key:l,kind:"template-recruit",templateId:"ai-research",agent:Q,onClick:"ai-research"};const F=t.find(V=>V.id!==null&&V.id===l&&!ve(V.id));return F?{key:F.id,kind:"existing",templateId:null,agent:F}:null};let ee;if(n?.ids)ee=n.ids.map(pe).filter(tt).slice(0,qe);else{const F=[se.id,ne.id,Y.id,J.id,Q.id].map(pe).filter(et),V=Ve(s),we=t.filter(Ze).filter(q=>q.id!==u?.id&&q.id!==f?.id&&q.id!==g?.id).sort((q,fe)=>{const re=V.indexOf(q.id),le=V.indexOf(fe.id);return re!==-1&&le!==-1?re-le:re!==-1?-1:le!==-1?1:new Date(fe.updated_at).getTime()-new Date(q.updated_at).getTime()}).slice(0,4).map(Xe);ee=[...F,...we]}k=ee.some(Qe);let te;e[13]!==T?(te=l=>{if(l.kind==="template-recruit"){const F={"import-deco":()=>c(!0),diagnostics:()=>m(!0),"ai-image":()=>h(!0),"ai-research":()=>b(!0),"lean-canvas":()=>j(!0),"studio-pack":()=>L(!0),"self-healing":()=>z(!0)}[l.onClick];return i.jsx(xe,{agent:l.agent,onSpecialClick:F,tracking:{template_id:l.templateId,tile_kind:"template",action:"open_modal"}},l.key)}return i.jsx(xe,{agent:l.agent,onSpecialClick:()=>T(l.agent.id),tracking:{template_id:l.templateId,tile_kind:l.templateId?"existing":"recent",action:"navigate"}},l.key)},e[13]=T,e[14]=te):te=e[14];const Ne=te;d="w-full max-md:overflow-x-auto max-md:[scrollbar-width:none] max-md:[&::-webkit-scrollbar]:hidden",_="flex flex-wrap justify-center gap-1.5 max-md:flex-nowrap max-md:justify-start md:max-h-52 md:overflow-hidden",I=ee.map(Ne),e[0]=s,e[1]=T,e[2]=n,e[3]=R,e[4]=t,e[5]=f,e[6]=g,e[7]=u,e[8]=x,e[9]=k,e[10]=_,e[11]=I,e[12]=d}else f=e[5],g=e[6],u=e[7],x=e[8],k=e[9],_=e[10],I=e[11],d=e[12];let A;e[15]===Symbol.for("react.memo_cache_sentinel")?(A=i.jsx(Ye,{}),e[15]=A):A=e[15];let y;e[16]!==k?(y=k&&i.jsx(Ge,{}),e[16]=k,e[17]=y):y=e[17];let v;e[18]!==_||e[19]!==I||e[20]!==y?(v=i.jsxs("div",{className:_,children:[I,A,y]}),e[18]=_,e[19]=I,e[20]=y,e[21]=v):v=e[21];let O;e[22]!==d||e[23]!==v?(O=i.jsx("div",{className:d,children:v}),e[22]=d,e[23]=v,e[24]=O):O=e[24];let N;e[25]!==o?(N=i.jsx(oe,{open:o,onOpenChange:c}),e[25]=o,e[26]=N):N=e[26];let w;e[27]!==a||e[28]!==u?(w=i.jsx(Pe,{open:a,onOpenChange:m,existingAgent:u}),e[27]=a,e[28]=u,e[29]=w):w=e[29];let C;e[30]!==E||e[31]!==f?(C=i.jsx(Le,{open:E,onOpenChange:h,existingAgent:f}),e[30]=E,e[31]=f,e[32]=C):C=e[32];let D;e[33]!==M||e[34]!==g?(D=i.jsx(ze,{open:M,onOpenChange:b,existingAgent:g}),e[33]=M,e[34]=g,e[35]=D):D=e[35];let K;e[36]!==x||e[37]!==p?(K=i.jsx(Re,{open:p,onOpenChange:j,existingAgent:x}),e[36]=x,e[37]=p,e[38]=K):K=e[38];let U;e[39]!==S?(U=i.jsx(Te,{open:S,onOpenChange:L}),e[39]=S,e[40]=U):U=e[40];let W;e[41]!==P?(W=i.jsx(Be,{open:P,onOpenChange:z}),e[41]=P,e[42]=W):W=e[42];let X;return e[43]!==D||e[44]!==K||e[45]!==U||e[46]!==W||e[47]!==O||e[48]!==N||e[49]!==w||e[50]!==C?(X=i.jsxs(i.Fragment,{children:[O,N,w,C,D,K,U,W]}),e[43]=D,e[44]=K,e[45]=U,e[46]=W,e[47]=O,e[48]=N,e[49]=w,e[50]=C,e[51]=X):X=e[51],X}function Qe(e){return e.kind==="existing"&&e.templateId===null}function Xe(e){return{key:e.id,kind:"existing",templateId:null,agent:e}}function Ze(e){return e.id!==null&&!ve(e.id)}function et(e){return e!==null}function tt(e){return e!==null}function it(e){return e.id==="self-healing-storefront"}function st(e){return e.id==="studio-pack"}function nt(e){return e.id==="lean-canvas"}function rt(e){return e.id==="ai-research"}function lt(e){return e.id==="ai-image"}function ot(e){return e.id==="site-diagnostics"}function at(e){return e.id==="site-editor"}function ct(){const e=$.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=i.jsx("div",{className:"w-full max-md:overflow-x-auto max-md:[scrollbar-width:none] max-md:[&::-webkit-scrollbar]:hidden",children:i.jsx("div",{className:"flex flex-wrap justify-center gap-1.5 max-md:flex-nowrap max-md:justify-start md:max-h-52 md:overflow-hidden",children:Array.from({length:7}).map(mt)})}),e[0]=t):t=e[0],t}function mt(e,t){return i.jsxs("div",{className:"flex flex-col items-center gap-3 p-2 w-[100px] shrink-0",children:[i.jsx(ue,{className:"size-12 rounded-xl shrink-0"}),i.jsx(ue,{className:"h-3 sm:h-4 w-full"})]},t)}function ge(){const e=$.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=i.jsx(B.Suspense,{fallback:i.jsx(ct,{}),children:i.jsx(Je,{})}),e[0]=t):t=e[0],t}const dt=["radial-gradient(ellipse 25% 220% at -5% 120%, rgba(165,149,255,0.35) 0%, transparent 100%)","radial-gradient(ellipse 25% 220% at 105% -20%, rgba(208,236,26,0.32) 0%, transparent 100%)"].join(", "),pt="/decotexture.svg";function he(e){const t=$.c(7),{onClick:s}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={backgroundImage:dt},t[0]=r):r=t[0];let n,o;t[1]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx("div",{className:"relative shrink-0 p-1.5 bg-[var(--brand-green-light)] rounded-lg border border-border",children:i.jsx(ye,{icon:"/logos/deco%20logo.svg",name:"deco.cx",size:"xs",className:"border-0 rounded-none bg-transparent"})}),o=i.jsx("p",{className:"flex-1 relative text-sm font-medium text-foreground leading-none whitespace-nowrap",children:"Import your deco.cx site"}),t[1]=n,t[2]=o):(n=t[1],o=t[2]);let c;t[3]===Symbol.for("react.memo_cache_sentinel")?(c=i.jsx("img",{src:pt,alt:"","aria-hidden":!0,className:"absolute pointer-events-none",style:{width:"274.5px",height:"272.25px",left:"calc(50% + 145.5px)",top:"calc(50% + 40px)",transform:"translate(-50%, -50%)"}}),t[3]=c):c=t[3];let a;t[4]===Symbol.for("react.memo_cache_sentinel")?(a=i.jsx("div",{className:"relative bg-background flex items-center justify-center size-8 rounded-md shrink-0",children:i.jsx(We,{size:16,className:"text-foreground transition-transform group-hover:translate-x-0.5"})}),t[4]=a):a=t[4];let m;return t[5]!==s?(m=i.jsxs("button",{type:"button",onClick:s,className:"w-full relative flex items-center gap-4 px-4 py-4 rounded-lg border border-border bg-background overflow-hidden transition-colors text-left cursor-pointer group",style:r,children:[n,o,c,a]}),t[5]=s,t[6]=m):m=t[6],m}function ft(){const e=$.c(5),{data:t}=ke.useSession();let s;e[0]!==t?.user?.email?(s=Se.decoProfile(t?.user?.email),e[0]=t?.user?.email,e[1]=s):s=e[1];const r=!!t?.user?.email;let n;e[2]!==s||e[3]!==r?(n={queryKey:s,queryFn:ut,enabled:r,staleTime:3e5},e[2]=s,e[3]=r,e[4]=n):n=e[4];const{data:o}=Ie(n);return o?.isDecoUser??!1}async function ut(){const e=await fetch("/api/deco-sites/profile");return e.ok?e.json():{isDecoUser:!1}}function be(){const e=$.c(52),{data:t}=ke.useSession(),[s,r]=B.useState(!1),n=ft(),o=_e(),c=Ue(),{hasDecoKey:a,isZeroBalance:m,isInitialFreeCredit:E,balanceDollars:h,hasOnlyDecoProvider:M}=Fe();if(c.length===0){let d;return e[0]===Symbol.for("react.memo_cache_sentinel")?(d=i.jsx("div",{className:"flex-1 flex items-center justify-center px-4 py-10",children:i.jsx(Ke,{})}),e[0]=d):d=e[0],d}let b;e[1]!==t?.user?.name?(b=t?.user?.name?.split(" ")[0]||"there",e[1]=t?.user?.name,e[2]=b):b=e[2];const p=b,j=a&&E&&h!=null,S=a&&m&&M;if(o){let d;e[3]!==h||e[4]!==j?(d=j&&i.jsx("div",{className:"mb-4",children:i.jsx(G.CreditsEyebrow,{balanceDollars:h})}),e[3]=h,e[4]=j,e[5]=d):d=e[5];let A;e[6]!==S?(A=S&&i.jsx("div",{className:"mb-4",children:i.jsx(G.NoCreditsEyebrow,{})}),e[6]=S,e[7]=A):A=e[7];let y;e[8]!==p?(y=i.jsxs("p",{className:"text-3xl font-medium text-foreground text-center max-w-[280px]",children:["What's on your mind, ",p,"?"]}),e[8]=p,e[9]=y):y=e[9];let v;e[10]!==d||e[11]!==A||e[12]!==y?(v=i.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center w-full",children:[d,A,y]}),e[10]=d,e[11]=A,e[12]=y,e[13]=v):v=e[13];let O;e[14]===Symbol.for("react.memo_cache_sentinel")?(O=i.jsxs("div",{className:"w-full flex flex-col gap-4 pb-4",children:[i.jsx(ge,{}),i.jsx(G.Input,{showConnectionsBanner:!0})]}),e[14]=O):O=e[14];let N;e[15]!==n?(N=n&&i.jsx("div",{className:"w-full",children:i.jsx(he,{onClick:()=>r(!0)})}),e[15]=n,e[16]=N):N=e[16];let w;e[17]!==v||e[18]!==N?(w=i.jsxs("div",{className:"flex-1 relative flex flex-col items-center px-4",children:[v,O,N]}),e[17]=v,e[18]=N,e[19]=w):w=e[19];let C;e[20]!==s?(C=i.jsx(oe,{open:s,onOpenChange:r}),e[20]=s,e[21]=C):C=e[21];let D;return e[22]!==w||e[23]!==C?(D=i.jsxs(i.Fragment,{children:[w,C]}),e[22]=w,e[23]=C,e[24]=D):D=e[24],D}let L;e[25]!==h||e[26]!==j?(L=j&&i.jsx("div",{className:"mb-4",children:i.jsx(G.CreditsEyebrow,{balanceDollars:h})}),e[25]=h,e[26]=j,e[27]=L):L=e[27];let P;e[28]!==S?(P=S&&i.jsx("div",{className:"mb-4",children:i.jsx(G.NoCreditsEyebrow,{})}),e[28]=S,e[29]=P):P=e[29];let z;e[30]!==p?(z=i.jsxs("p",{className:"text-3xl font-medium text-foreground",children:["What's on your mind, ",p,"?"]}),e[30]=p,e[31]=z):z=e[31];let R;e[32]!==L||e[33]!==P||e[34]!==z?(R=i.jsxs("div",{className:"text-center mb-10",children:[L,P,z]}),e[32]=L,e[33]=P,e[34]=z,e[35]=R):R=e[35];let T;e[36]===Symbol.for("react.memo_cache_sentinel")?(T=i.jsx("div",{className:"w-full",children:i.jsx(G.Input,{showConnectionsBanner:!0})}),e[36]=T):T=e[36];let f;e[37]!==R?(f=i.jsxs("div",{className:"flex flex-col items-center w-full max-w-[672px]",children:[R,T]}),e[37]=R,e[38]=f):f=e[38];let g;e[39]===Symbol.for("react.memo_cache_sentinel")?(g=i.jsx("div",{className:"w-full mt-10 mx-auto",children:i.jsx(ge,{})}),e[39]=g):g=e[39];let u;e[40]!==f?(u=i.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center w-full",children:[f,g]}),e[40]=f,e[41]=u):u=e[41];let x;e[42]!==n?(x=n&&i.jsx("div",{className:"absolute bottom-6 left-0 right-0 px-10",children:i.jsx("div",{className:"w-full max-w-[500px] mx-auto",children:i.jsx(he,{onClick:()=>r(!0)})})}),e[42]=n,e[43]=x):x=e[43];let k;e[44]!==u||e[45]!==x?(k=i.jsxs("div",{className:"flex-1 relative flex flex-col items-center px-10",children:[u,x]}),e[44]=u,e[45]=x,e[46]=k):k=e[46];let _;e[47]!==s?(_=i.jsx(oe,{open:s,onOpenChange:r}),e[47]=s,e[48]=_):_=e[48];let I;return e[49]!==k||e[50]!==_?(I=i.jsxs(i.Fragment,{children:[k,_]}),e[49]=k,e[50]=_,e[51]=I):I=e[51],I}function ss(){const e=$.c(2);if(_e()){let r;return e[0]===Symbol.for("react.memo_cache_sentinel")?(r=i.jsx("div",{className:"flex-1 min-h-0 flex flex-col bg-background overflow-hidden",children:i.jsx(be,{})}),e[0]=r):r=e[0],r}let s;return e[1]===Symbol.for("react.memo_cache_sentinel")?(s=i.jsx("div",{className:"flex-1 min-h-0 p-1.5 overflow-hidden",children:i.jsx("div",{className:"flex h-full flex-col bg-background overflow-hidden card-shadow rounded-[0.75rem]",children:i.jsx(be,{})})}),e[1]=s):s=e[1],s}export{ss as default};
|
|
1
|
+
import{e as $,j as i,r as B,s as ae,P as Ce,f as je,c as ce,t as me,b as ke,K as Se,n as Ie}from"./index-_CUdtdz8.js";import{u as _e}from"./tooltip-DEoNevOj.js";import{I as ye}from"./integration-icon-DcYB2a8l.js";import{S as ue}from"./skeleton-CAInevCf.js";import{W as H,i as ve}from"./constants-CImNHUX-.js";import{b as Ae}from"./use-virtual-mcp-MITPdtzC.js";import{u as Oe}from"./use-organization-settings-DH3Cx32-.js";import{i as De}from"./ChevronRight-DmzXQRyN.js";import{s as Ee}from"./Plus-BfYJ_fhU.js";import{a as Me}from"./Users03-C-LNtnHq.js";import{I as oe,S as Pe,L as Re,b as Te}from"./lean-canvas-recruit-modal-CFAZK9w1.js";import{b as $e,d as Le,e as ze,c as Be,u as Fe,C as G}from"./index-CcjQJiQG.js";import{u as He}from"./use-create-virtual-mcp-1k0qsXpZ.js";import{N as Ke}from"./select-model-Twg2cKHt.js";import{u as Ue}from"./use-ai-providers-BRYLtBQi.js";import{d as We}from"./XCircle-DHsXO2jG.js";import"./Container-hPWrMd_K.js";import"./agent-icon-B3dbwQQF.js";import"./AlertCircle-VR9e1Kdm.js";import"./Tool01-1p7InVa9.js";import"./Archive-C8b1PbwD.js";import"./XClose-C9tO3uLm.js";import"./RefreshCcw01-BVYIhLNw.js";import"./ArrowNarrowLeft-BomndbPT.js";import"./ArrowUpRight-BBedSsf2.js";import"./ZapSquare-CLYRUiny.js";import"./CheckCircle-DqkJltcw.js";import"./Check-_x9Smiby.js";import"./ChevronDown-B0KKFW7z.js";import"./ChevronUp-D80nIxW6.js";import"./DotsVertical-DTAmMuFp.js";import"./Star01-Bsoh5hNL.js";import"./Palette-Rwaz6Ux1.js";import"./SearchMd-x9jEzWto.js";import"./LayoutLeft-CvHk6_1v.js";import"./LinkExternal01-ChBg4lCh.js";import"./Lock01-omvVfDsq.js";import"./Sun-Bp5SyQ9x.js";import"./Play-B5Y5OgEF.js";import"./Settings02-A2QUyA04.js";import"./Shield01-VFZnVzgJ.js";import"./Trash01-CCICAviE.js";import"./User01-DYAGpiu4.js";import"./X-DOmcQBqy.js";import"./Zap-Cr3JL-JC.js";import"./use-collections-T8lAmXe-.js";import"./use-navigate-to-agent-BOtA8s0B.js";import"./dialog-CK63STP4.js";import"./collection-search-DWrG5qGb.js";import"./checkbox-DrmZvzrT.js";import"./use-connection-CHxcvnwB.js";import"./extract-connection-data-BVruRO7o.js";import"./constants-kgqnlOHa.js";import"./collections-BccjtmBC.js";import"./drawer-wCIWEAI5.js";import"./use-mcp-tools-DLLnZTwr.js";import"./switch-B_6i5d1i.js";import"./input-Ko_SrZ4_.js";import"./chat-context-CgTzImbK.js";import"./use-decopilot-events-ChHy1YwQ.js";import"./create-sse-subscription-CxkOgzKf.js";import"./use-tasks-2n2QJ_JS.js";import"./shell-layout-Ddrq5Nx0.js";import"./required-auth-layout-CzyyMsWp.js";import"./use-org-sso-cXprxxGV.js";import"./pair-7uYiW7Rh.js";import"./index-SHpCCFvp.js";import"./use-copy-DTsrGSHm.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./content-blocks-o63cs2vh.js";import"./types-DLyGIXuU.js";import"./spinner-DIWCCR1u.js";import"./tabs-DbLM1syJ.js";import"./form-ePgXfPjK.js";import"./label-D_dfHcwE.js";import"./select-DhMWgQ3s.js";import"./toggle-group-DmWZZQ5J.js";import"./dropdown-menu-B7T7Iogo.js";import"./index-Q_nE-B09.js";import"./question-004-sINsf4GQ.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-BHwpWrBx.js";import"./use-registry-connections-Di-IdwT_.js";import"./useInfiniteQuery-CY-Wzev4.js";import"./infiniteQueryObserver-7fxmXXdp.js";import"./card-DotruZR7.js";import"./collection-tabs-JbvPv0ww.js";import"./badge-DOjxQOhJ.js";import"./textarea-D2OceG5K.js";import"./connection-form-helpers-B_EAPKs9.js";import"./use-infinite-scroll-4R3Erhbk.js";import"./useSuspenseInfiniteQuery-DV-M7yay.js";import"./ai-providers-logos-DD3qZ33J.js";import"./avatar-CVlDCU5h.js";import"./settings-section-CIvaDAqO.js";import"./unwrap-tool-result-BYXdCQMg.js";function Ve(e){try{const t=localStorage.getItem(`mesh:chat:recent-agents:${e}`);return t?JSON.parse(t):[]}catch{return[]}}const qe=8;function xe(e){const t=$.c(21),{agent:s,onSpecialClick:r,tracking:n}=e,{org:o}=ae(),c=je();let a;t[0]!==s.id||t[1]!==s.title||t[2]!==c||t[3]!==r||t[4]!==o||t[5]!==n.action||t[6]!==n.template_id||t[7]!==n.tile_kind?(a=()=>{if(me("home_agent_tile_clicked",{template_id:n.template_id,agent_id:s.id,agent_title:s.title,tile_kind:n.tile_kind,action:n.action}),r)r();else{const S=crypto.randomUUID();c({to:"/$org/$taskId",params:{org:o.slug,taskId:S},search:{virtualmcpid:s.id}})}},t[0]=s.id,t[1]=s.title,t[2]=c,t[3]=r,t[4]=o,t[5]=n.action,t[6]=n.template_id,t[7]=n.tile_kind,t[8]=a):a=t[8];const m=a;let E;t[9]===Symbol.for("react.memo_cache_sentinel")?(E=ce("flex flex-col items-center gap-3 p-2 rounded-lg","transition-colors","cursor-pointer","w-[100px] shrink-0","group"),t[9]=E):E=t[9];const h=`Select agent ${s.title}`;let M;t[10]===Symbol.for("react.memo_cache_sentinel")?(M=i.jsx(Me,{size:24}),t[10]=M):M=t[10];let b;t[11]!==s.icon||t[12]!==s.title?(b=i.jsx(ye,{icon:s.icon,name:s.title,size:"md",fallbackIcon:M,className:"transition-transform group-hover:scale-110"}),t[11]=s.icon,t[12]=s.title,t[13]=b):b=t[13];let p;t[14]!==s.title?(p=i.jsx("p",{className:"text-xs sm:text-sm text-foreground text-center leading-tight line-clamp-2 break-words w-full",children:s.title}),t[14]=s.title,t[15]=p):p=t[15];let j;return t[16]!==m||t[17]!==h||t[18]!==b||t[19]!==p?(j=i.jsxs("button",{type:"button",onClick:m,className:E,"aria-label":h,children:[b,p]}),t[16]=m,t[17]=h,t[18]=b,t[19]=p,t[20]=j):j=t[20],j}function Ge(){const e=$.c(8),t=je(),{org:s}=ae();let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=ce("flex flex-col items-center gap-3 p-2 rounded-lg","transition-colors","cursor-pointer","w-[100px] shrink-0","group"),e[0]=r):r=e[0];let n;e[1]!==t||e[2]!==s.slug?(n=()=>{me("home_see_all_agents_clicked"),t({to:"/$org/settings/agents",params:{org:s.slug}})},e[1]=t,e[2]=s.slug,e[3]=n):n=e[3];let o,c;e[4]===Symbol.for("react.memo_cache_sentinel")?(o=i.jsx("div",{className:"size-12 rounded-xl bg-accent flex items-center justify-center shrink-0 transition-transform group-hover:scale-110",children:i.jsx(De,{size:20,className:"text-foreground"})}),c=i.jsx("p",{className:"text-xs sm:text-sm text-foreground text-center leading-tight",children:"See all"}),e[4]=o,e[5]=c):(o=e[4],c=e[5]);let a;return e[6]!==n?(a=i.jsxs("button",{type:"button",className:r,"aria-label":"See all agents",onClick:n,children:[o,c]}),e[6]=n,e[7]=a):a=e[7],a}function Ye(){const e=$.c(9);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={navigateOnCreate:!0},e[0]=t):t=e[0];const{createVirtualMCP:s,isCreating:r}=He(t);let n;e[1]!==s?(n=()=>{me("home_create_agent_clicked"),s()},e[1]=s,e[2]=n):n=e[2];let o;e[3]===Symbol.for("react.memo_cache_sentinel")?(o=ce("flex flex-col items-center gap-3 p-2 rounded-lg","transition-colors","cursor-pointer","w-[100px] shrink-0","group","disabled:opacity-50 disabled:cursor-not-allowed"),e[3]=o):o=e[3];let c,a;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=i.jsx("div",{className:"size-12 rounded-xl bg-background border-2 border-dashed border-border flex items-center justify-center shrink-0 transition-transform group-hover:scale-110",children:i.jsx(Ee,{size:20,className:"text-muted-foreground"})}),a=i.jsx("p",{className:"text-xs sm:text-sm text-foreground text-center leading-tight",children:"Create agent"}),e[4]=c,e[5]=a):(c=e[4],a=e[5]);let m;return e[6]!==r||e[7]!==n?(m=i.jsxs("button",{type:"button",onClick:n,disabled:r,className:o,"aria-label":"Create agent",children:[c,a]}),e[6]=r,e[7]=n,e[8]=m):m=e[8],m}function ie(e,t,s){return e.find(r=>r.id!==null&&(r.metadata?.type===t||r.title===s))}function Je(){const e=$.c(52),t=Ae(),{locator:s,org:r}=ae(),n=Oe(),[o,c]=B.useState(!1),[a,m]=B.useState(!1),[E,h]=B.useState(!1),[M,b]=B.useState(!1),[p,j]=B.useState(!1),[S,L]=B.useState(!1),[P,z]=B.useState(!1),[R]=Ce(),T=$e(r.slug);let f,g,u,x,k,_,I,d;if(e[0]!==s||e[1]!==T||e[2]!==n||e[3]!==R||e[4]!==t){const se=H.find(at),Y=H.find(ot),J=H.find(lt),Q=H.find(rt),Z=H.find(nt),de=H.find(st),ne=H.find(it);u=ie(t,Y.id,Y.title),f=ie(t,J.id,J.title),g=ie(t,Q.id,Q.title),x=ie(t,Z.id,Z.title);const pe=l=>{if(l===se.id)return{key:l,kind:"template-recruit",templateId:"site-editor",agent:se,onClick:"import-deco"};if(l===Y.id)return u?{key:u.id,kind:"existing",templateId:"site-diagnostics",agent:u}:{key:l,kind:"template-recruit",templateId:"site-diagnostics",agent:Y,onClick:"diagnostics"};if(l===J.id)return f?{key:f.id,kind:"existing",templateId:"ai-image",agent:f}:{key:l,kind:"template-recruit",templateId:"ai-image",agent:J,onClick:"ai-image"};if(l===Z.id)return x?{key:x.id,kind:"existing",templateId:"lean-canvas",agent:x}:{key:l,kind:"template-recruit",templateId:"lean-canvas",agent:Z,onClick:"lean-canvas"};if(l===de.id)return{key:l,kind:"template-recruit",templateId:"studio-pack",agent:de,onClick:"studio-pack"};if(l===ne.id)return R.experimental_vibecode?{key:l,kind:"template-recruit",templateId:"self-healing-storefront",agent:ne,onClick:"self-healing"}:null;if(l===Q.id)return g?{key:g.id,kind:"existing",templateId:"ai-research",agent:g}:{key:l,kind:"template-recruit",templateId:"ai-research",agent:Q,onClick:"ai-research"};const F=t.find(V=>V.id!==null&&V.id===l&&!ve(V.id));return F?{key:F.id,kind:"existing",templateId:null,agent:F}:null};let ee;if(n?.ids)ee=n.ids.map(pe).filter(tt).slice(0,qe);else{const F=[se.id,ne.id,Y.id,J.id,Q.id].map(pe).filter(et),V=Ve(s),we=t.filter(Ze).filter(q=>q.id!==u?.id&&q.id!==f?.id&&q.id!==g?.id).sort((q,fe)=>{const re=V.indexOf(q.id),le=V.indexOf(fe.id);return re!==-1&&le!==-1?re-le:re!==-1?-1:le!==-1?1:new Date(fe.updated_at).getTime()-new Date(q.updated_at).getTime()}).slice(0,4).map(Xe);ee=[...F,...we]}k=ee.some(Qe);let te;e[13]!==T?(te=l=>{if(l.kind==="template-recruit"){const F={"import-deco":()=>c(!0),diagnostics:()=>m(!0),"ai-image":()=>h(!0),"ai-research":()=>b(!0),"lean-canvas":()=>j(!0),"studio-pack":()=>L(!0),"self-healing":()=>z(!0)}[l.onClick];return i.jsx(xe,{agent:l.agent,onSpecialClick:F,tracking:{template_id:l.templateId,tile_kind:"template",action:"open_modal"}},l.key)}return i.jsx(xe,{agent:l.agent,onSpecialClick:()=>T(l.agent.id),tracking:{template_id:l.templateId,tile_kind:l.templateId?"existing":"recent",action:"navigate"}},l.key)},e[13]=T,e[14]=te):te=e[14];const Ne=te;d="w-full max-md:overflow-x-auto max-md:[scrollbar-width:none] max-md:[&::-webkit-scrollbar]:hidden",_="flex flex-wrap justify-center gap-1.5 max-md:flex-nowrap max-md:justify-start md:max-h-52 md:overflow-hidden",I=ee.map(Ne),e[0]=s,e[1]=T,e[2]=n,e[3]=R,e[4]=t,e[5]=f,e[6]=g,e[7]=u,e[8]=x,e[9]=k,e[10]=_,e[11]=I,e[12]=d}else f=e[5],g=e[6],u=e[7],x=e[8],k=e[9],_=e[10],I=e[11],d=e[12];let A;e[15]===Symbol.for("react.memo_cache_sentinel")?(A=i.jsx(Ye,{}),e[15]=A):A=e[15];let y;e[16]!==k?(y=k&&i.jsx(Ge,{}),e[16]=k,e[17]=y):y=e[17];let v;e[18]!==_||e[19]!==I||e[20]!==y?(v=i.jsxs("div",{className:_,children:[I,A,y]}),e[18]=_,e[19]=I,e[20]=y,e[21]=v):v=e[21];let O;e[22]!==d||e[23]!==v?(O=i.jsx("div",{className:d,children:v}),e[22]=d,e[23]=v,e[24]=O):O=e[24];let N;e[25]!==o?(N=i.jsx(oe,{open:o,onOpenChange:c}),e[25]=o,e[26]=N):N=e[26];let w;e[27]!==a||e[28]!==u?(w=i.jsx(Pe,{open:a,onOpenChange:m,existingAgent:u}),e[27]=a,e[28]=u,e[29]=w):w=e[29];let C;e[30]!==E||e[31]!==f?(C=i.jsx(Le,{open:E,onOpenChange:h,existingAgent:f}),e[30]=E,e[31]=f,e[32]=C):C=e[32];let D;e[33]!==M||e[34]!==g?(D=i.jsx(ze,{open:M,onOpenChange:b,existingAgent:g}),e[33]=M,e[34]=g,e[35]=D):D=e[35];let K;e[36]!==x||e[37]!==p?(K=i.jsx(Re,{open:p,onOpenChange:j,existingAgent:x}),e[36]=x,e[37]=p,e[38]=K):K=e[38];let U;e[39]!==S?(U=i.jsx(Te,{open:S,onOpenChange:L}),e[39]=S,e[40]=U):U=e[40];let W;e[41]!==P?(W=i.jsx(Be,{open:P,onOpenChange:z}),e[41]=P,e[42]=W):W=e[42];let X;return e[43]!==D||e[44]!==K||e[45]!==U||e[46]!==W||e[47]!==O||e[48]!==N||e[49]!==w||e[50]!==C?(X=i.jsxs(i.Fragment,{children:[O,N,w,C,D,K,U,W]}),e[43]=D,e[44]=K,e[45]=U,e[46]=W,e[47]=O,e[48]=N,e[49]=w,e[50]=C,e[51]=X):X=e[51],X}function Qe(e){return e.kind==="existing"&&e.templateId===null}function Xe(e){return{key:e.id,kind:"existing",templateId:null,agent:e}}function Ze(e){return e.id!==null&&!ve(e.id)}function et(e){return e!==null}function tt(e){return e!==null}function it(e){return e.id==="self-healing-storefront"}function st(e){return e.id==="studio-pack"}function nt(e){return e.id==="lean-canvas"}function rt(e){return e.id==="ai-research"}function lt(e){return e.id==="ai-image"}function ot(e){return e.id==="site-diagnostics"}function at(e){return e.id==="site-editor"}function ct(){const e=$.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=i.jsx("div",{className:"w-full max-md:overflow-x-auto max-md:[scrollbar-width:none] max-md:[&::-webkit-scrollbar]:hidden",children:i.jsx("div",{className:"flex flex-wrap justify-center gap-1.5 max-md:flex-nowrap max-md:justify-start md:max-h-52 md:overflow-hidden",children:Array.from({length:7}).map(mt)})}),e[0]=t):t=e[0],t}function mt(e,t){return i.jsxs("div",{className:"flex flex-col items-center gap-3 p-2 w-[100px] shrink-0",children:[i.jsx(ue,{className:"size-12 rounded-xl shrink-0"}),i.jsx(ue,{className:"h-3 sm:h-4 w-full"})]},t)}function ge(){const e=$.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=i.jsx(B.Suspense,{fallback:i.jsx(ct,{}),children:i.jsx(Je,{})}),e[0]=t):t=e[0],t}const dt=["radial-gradient(ellipse 25% 220% at -5% 120%, rgba(165,149,255,0.35) 0%, transparent 100%)","radial-gradient(ellipse 25% 220% at 105% -20%, rgba(208,236,26,0.32) 0%, transparent 100%)"].join(", "),pt="/decotexture.svg";function he(e){const t=$.c(7),{onClick:s}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={backgroundImage:dt},t[0]=r):r=t[0];let n,o;t[1]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx("div",{className:"relative shrink-0 p-1.5 bg-[var(--brand-green-light)] rounded-lg border border-border",children:i.jsx(ye,{icon:"/logos/deco%20logo.svg",name:"deco.cx",size:"xs",className:"border-0 rounded-none bg-transparent"})}),o=i.jsx("p",{className:"flex-1 relative text-sm font-medium text-foreground leading-none whitespace-nowrap",children:"Import your deco.cx site"}),t[1]=n,t[2]=o):(n=t[1],o=t[2]);let c;t[3]===Symbol.for("react.memo_cache_sentinel")?(c=i.jsx("img",{src:pt,alt:"","aria-hidden":!0,className:"absolute pointer-events-none",style:{width:"274.5px",height:"272.25px",left:"calc(50% + 145.5px)",top:"calc(50% + 40px)",transform:"translate(-50%, -50%)"}}),t[3]=c):c=t[3];let a;t[4]===Symbol.for("react.memo_cache_sentinel")?(a=i.jsx("div",{className:"relative bg-background flex items-center justify-center size-8 rounded-md shrink-0",children:i.jsx(We,{size:16,className:"text-foreground transition-transform group-hover:translate-x-0.5"})}),t[4]=a):a=t[4];let m;return t[5]!==s?(m=i.jsxs("button",{type:"button",onClick:s,className:"w-full relative flex items-center gap-4 px-4 py-4 rounded-lg border border-border bg-background overflow-hidden transition-colors text-left cursor-pointer group",style:r,children:[n,o,c,a]}),t[5]=s,t[6]=m):m=t[6],m}function ft(){const e=$.c(5),{data:t}=ke.useSession();let s;e[0]!==t?.user?.email?(s=Se.decoProfile(t?.user?.email),e[0]=t?.user?.email,e[1]=s):s=e[1];const r=!!t?.user?.email;let n;e[2]!==s||e[3]!==r?(n={queryKey:s,queryFn:ut,enabled:r,staleTime:3e5},e[2]=s,e[3]=r,e[4]=n):n=e[4];const{data:o}=Ie(n);return o?.isDecoUser??!1}async function ut(){const e=await fetch("/api/deco-sites/profile");return e.ok?e.json():{isDecoUser:!1}}function be(){const e=$.c(52),{data:t}=ke.useSession(),[s,r]=B.useState(!1),n=ft(),o=_e(),c=Ue(),{hasDecoKey:a,isZeroBalance:m,isInitialFreeCredit:E,balanceDollars:h,hasOnlyDecoProvider:M}=Fe();if(c.length===0){let d;return e[0]===Symbol.for("react.memo_cache_sentinel")?(d=i.jsx("div",{className:"flex-1 flex items-center justify-center px-4 py-10",children:i.jsx(Ke,{})}),e[0]=d):d=e[0],d}let b;e[1]!==t?.user?.name?(b=t?.user?.name?.split(" ")[0]||"there",e[1]=t?.user?.name,e[2]=b):b=e[2];const p=b,j=a&&E&&h!=null,S=a&&m&&M;if(o){let d;e[3]!==h||e[4]!==j?(d=j&&i.jsx("div",{className:"mb-4",children:i.jsx(G.CreditsEyebrow,{balanceDollars:h})}),e[3]=h,e[4]=j,e[5]=d):d=e[5];let A;e[6]!==S?(A=S&&i.jsx("div",{className:"mb-4",children:i.jsx(G.NoCreditsEyebrow,{})}),e[6]=S,e[7]=A):A=e[7];let y;e[8]!==p?(y=i.jsxs("p",{className:"text-3xl font-medium text-foreground text-center max-w-[280px]",children:["What's on your mind, ",p,"?"]}),e[8]=p,e[9]=y):y=e[9];let v;e[10]!==d||e[11]!==A||e[12]!==y?(v=i.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center w-full",children:[d,A,y]}),e[10]=d,e[11]=A,e[12]=y,e[13]=v):v=e[13];let O;e[14]===Symbol.for("react.memo_cache_sentinel")?(O=i.jsxs("div",{className:"w-full flex flex-col gap-4 pb-4",children:[i.jsx(ge,{}),i.jsx(G.Input,{showConnectionsBanner:!0})]}),e[14]=O):O=e[14];let N;e[15]!==n?(N=n&&i.jsx("div",{className:"w-full",children:i.jsx(he,{onClick:()=>r(!0)})}),e[15]=n,e[16]=N):N=e[16];let w;e[17]!==v||e[18]!==N?(w=i.jsxs("div",{className:"flex-1 relative flex flex-col items-center px-4",children:[v,O,N]}),e[17]=v,e[18]=N,e[19]=w):w=e[19];let C;e[20]!==s?(C=i.jsx(oe,{open:s,onOpenChange:r}),e[20]=s,e[21]=C):C=e[21];let D;return e[22]!==w||e[23]!==C?(D=i.jsxs(i.Fragment,{children:[w,C]}),e[22]=w,e[23]=C,e[24]=D):D=e[24],D}let L;e[25]!==h||e[26]!==j?(L=j&&i.jsx("div",{className:"mb-4",children:i.jsx(G.CreditsEyebrow,{balanceDollars:h})}),e[25]=h,e[26]=j,e[27]=L):L=e[27];let P;e[28]!==S?(P=S&&i.jsx("div",{className:"mb-4",children:i.jsx(G.NoCreditsEyebrow,{})}),e[28]=S,e[29]=P):P=e[29];let z;e[30]!==p?(z=i.jsxs("p",{className:"text-3xl font-medium text-foreground",children:["What's on your mind, ",p,"?"]}),e[30]=p,e[31]=z):z=e[31];let R;e[32]!==L||e[33]!==P||e[34]!==z?(R=i.jsxs("div",{className:"text-center mb-10",children:[L,P,z]}),e[32]=L,e[33]=P,e[34]=z,e[35]=R):R=e[35];let T;e[36]===Symbol.for("react.memo_cache_sentinel")?(T=i.jsx("div",{className:"w-full",children:i.jsx(G.Input,{showConnectionsBanner:!0})}),e[36]=T):T=e[36];let f;e[37]!==R?(f=i.jsxs("div",{className:"flex flex-col items-center w-full max-w-[672px]",children:[R,T]}),e[37]=R,e[38]=f):f=e[38];let g;e[39]===Symbol.for("react.memo_cache_sentinel")?(g=i.jsx("div",{className:"w-full mt-10 mx-auto",children:i.jsx(ge,{})}),e[39]=g):g=e[39];let u;e[40]!==f?(u=i.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center w-full",children:[f,g]}),e[40]=f,e[41]=u):u=e[41];let x;e[42]!==n?(x=n&&i.jsx("div",{className:"absolute bottom-6 left-0 right-0 px-10",children:i.jsx("div",{className:"w-full max-w-[500px] mx-auto",children:i.jsx(he,{onClick:()=>r(!0)})})}),e[42]=n,e[43]=x):x=e[43];let k;e[44]!==u||e[45]!==x?(k=i.jsxs("div",{className:"flex-1 relative flex flex-col items-center px-10",children:[u,x]}),e[44]=u,e[45]=x,e[46]=k):k=e[46];let _;e[47]!==s?(_=i.jsx(oe,{open:s,onOpenChange:r}),e[47]=s,e[48]=_):_=e[48];let I;return e[49]!==k||e[50]!==_?(I=i.jsxs(i.Fragment,{children:[k,_]}),e[49]=k,e[50]=_,e[51]=I):I=e[51],I}function ss(){const e=$.c(2);if(_e()){let r;return e[0]===Symbol.for("react.memo_cache_sentinel")?(r=i.jsx("div",{className:"flex-1 min-h-0 flex flex-col bg-background overflow-hidden",children:i.jsx(be,{})}),e[0]=r):r=e[0],r}let s;return e[1]===Symbol.for("react.memo_cache_sentinel")?(s=i.jsx("div",{className:"flex-1 min-h-0 p-1.5 overflow-hidden",children:i.jsx("div",{className:"flex h-full flex-col bg-background overflow-hidden card-shadow rounded-[0.75rem]",children:i.jsx(be,{})})}),e[1]=s):s=e[1],s}export{ss as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{ci as ne,e as _,j as o,B as te,l as ln,bb as ze,cj as ms,r as T,s as oe,c as O,g as ps,o as cn,c4 as xs,a7 as hs,a8 as fe,aV as an,c5 as gs,aS as bs,c3 as Ss,c6 as un,b5 as js,cc as ys,cd as vs,ae as ws,ce as Ns,ck as $t,cl as dn,x as ks,y as _s,cm as Cs,cn as Is}from"./index-5jrl6Co-.js";import{D as Ts,F as Es,B as $s}from"./index-fexbvrAq.js";import{e as Fe,i as Os,u as ae}from"./constants-CkJVGrih.js";import{b as fn}from"./use-virtual-mcp-BQvDkFLT.js";import{M as Re}from"./monaco-editor-Bk3MeNtT.js";import{A as Rs,c as Ms,a as Ls,b as Ps,e as As,R as Ut,d as zs}from"./accordion-CvWJabH1.js";import{B as le}from"./badge-BDIezRWl.js";import{c as vt,S as wt,d as nt,b as Nt,a as kt}from"./select-B5UhPE3o.js";import{S as st}from"./spinner-DKEalby6.js";import{V as Ws}from"./view-mode-toggle-Cgp8wSpL.js";import{a8 as Ds,a9 as Fs,i as Hs,a0 as mn,aa as Vs,P as Us,u as qs,ab as pn,X as Ks,T as xn,ac as Bs,ad as Xs,R as bt,ae as Js}from"./agent-icon-D6T8ZDaV.js";import{i as hn}from"./Play-Cv1sPHtp.js";import{b as Gs,a as Qs,V as Qe}from"./layout-DZBilHGN.js";import{c as gn,b as bn,T as Sn,a as jn}from"./tooltip-CBWMgMUA.js";import{u as Ys,a as Zs}from"./use-connection-kZb9ifhw.js";import{u as Ot,d as Rt,b as yn}from"./use-mcp-tools-CwvPDTWi.js";import{c as eo,d as to,e as no,D as so,a as oo,b as ro}from"./dialog-BCrxZaWW.js";import"./index-Csm4dluq.js";import{N as io,h as lo,j as co,m as Be,P as ao,i as uo,R as fo,c as mo,k as po,e as qt,d as xo}from"./index-zwJpQueu.js";import{S as ho}from"./index-BRxzMJGJ.js";import{D as vn,a as wn,b as Nn,c as Ye}from"./dropdown-menu-CapVicMN.js";import{s as go}from"./Plus-D7J-ZpF_.js";import{b as kn}from"./Tool01-8PZBFCSr.js";import{i as He}from"./Check-C6Q1bblL.js";import{s as Mt}from"./XClose-BEPgM0J7.js";import{I as Lt}from"./integration-icon-Cnjj_f25.js";import{a as bo,S as So}from"./scroll-area-CEHywN8A.js";import"./index-CBCw04gM.js";import{i as _n}from"./X-UcFDhK-I.js";import{u as Cn,a as jo}from"./use-collections-fNwAKHqm.js";import{E as In}from"./empty-state-DrcmKKqy.js";import{c as yo}from"./create-sse-subscription-CxkOgzKf.js";import{I as Kt}from"./input-D-ZjkErJ.js";const Tn=ne("Box",[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]);const En=ne("Braces",[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]]);const ot=ne("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const rt=ne("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);const vo=ne("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);const $n=ne("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);const wo=ne("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);const On=ne("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);const Rn=ne("File",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]);const Mn=ne("Hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);const No=ne("OctagonAlert",[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]]);const Ln=ne("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);const Pn=ne("SquareCheckBig",[["path",{d:"M21 10.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.5",key:"1uzm8b"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);const ko=ne("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);const An=ne("Type",[["polyline",{points:"4 7 4 4 20 4 20 7",key:"1nosan"}],["line",{x1:"9",x2:"15",y1:"20",y2:"20",key:"swin9y"}],["line",{x1:"12",x2:"12",y1:"4",y2:"20",key:"1tx1rr"}]]);function _o(t){const e=_.c(15),{onSave:n,onUndo:s,isDirty:i,isSaving:r,saveLabel:l,undoLabel:c}=t,a=l===void 0?"Save":l,u=c===void 0?"Undo":c;if(!i)return null;let d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d=o.jsx(Ds,{size:14}),e[0]=d):d=e[0];let f;e[1]!==r||e[2]!==s||e[3]!==u?(f=o.jsxs(te,{variant:"outline",size:"sm",onClick:s,disabled:r,"aria-label":u,children:[d,u]}),e[1]=r,e[2]=s,e[3]=u,e[4]=f):f=e[4];let m;e[5]!==r?(m=r?o.jsx(ln,{size:14,className:"animate-spin"}):o.jsx(Fs,{size:14}),e[5]=r,e[6]=m):m=e[6];let x;e[7]!==r||e[8]!==n||e[9]!==a||e[10]!==m?(x=o.jsxs(te,{variant:"default",size:"sm",onClick:n,disabled:r,"aria-label":a,children:[m,a]}),e[7]=r,e[8]=n,e[9]=a,e[10]=m,e[11]=x):x=e[11];let p;return e[12]!==f||e[13]!==x?(p=o.jsxs(o.Fragment,{children:[f,x]}),e[12]=f,e[13]=x,e[14]=p):p=e[14],p}const Bt=t=>{let e;const n=new Set,s=(u,d)=>{const f=typeof u=="function"?u(e):u;if(!Object.is(f,e)){const m=e;e=d??(typeof f!="object"||f===null)?f:Object.assign({},e,f),n.forEach(x=>x(e,m))}},i=()=>e,c={setState:s,getState:i,getInitialState:()=>a,subscribe:u=>(n.add(u),()=>n.delete(u))},a=e=t(s,i,c);return c},Pt=(t=>t?Bt(t):Bt),Co=t=>t;function _t(t,e=Co){const n=ze.useSyncExternalStore(t.subscribe,ze.useCallback(()=>e(t.getState()),[t,e]),ze.useCallback(()=>e(t.getInitialState()),[t,e]));return ze.useDebugValue(n),n}const Io=t=>{const e=Pt(t),n=s=>_t(e,s);return Object.assign(n,e),n},To=(t=>Io);function zn(t,e){let n;try{n=t()}catch{return}return{getItem:i=>{var r;const l=a=>a===null?null:JSON.parse(a,void 0),c=(r=n.getItem(i))!=null?r:null;return c instanceof Promise?c.then(l):l(c)},setItem:(i,r)=>n.setItem(i,JSON.stringify(r,void 0)),removeItem:i=>n.removeItem(i)}}const Ct=t=>e=>{try{const n=t(e);return n instanceof Promise?n:{then(s){return Ct(s)(n)},catch(s){return this}}}catch(n){return{then(s){return this},catch(s){return Ct(s)(n)}}}},Eo=(t,e)=>(n,s,i)=>{let r={storage:zn(()=>window.localStorage),partialize:g=>g,version:0,merge:(g,b)=>({...b,...g}),...e},l=!1,c=0;const a=new Set,u=new Set;let d=r.storage;if(!d)return t((...g)=>{console.warn(`[zustand persist middleware] Unable to update item '${r.name}', the given storage is currently unavailable.`),n(...g)},s,i);const f=()=>{const g=r.partialize({...s()});return d.setItem(r.name,{state:g,version:r.version})},m=i.setState;i.setState=(g,b)=>(m(g,b),f());const x=t((...g)=>(n(...g),f()),s,i);i.getInitialState=()=>x;let p;const h=()=>{var g,b;if(!d)return;const j=++c;l=!1,a.forEach(y=>{var S;return y((S=s())!=null?S:x)});const v=((b=r.onRehydrateStorage)==null?void 0:b.call(r,(g=s())!=null?g:x))||void 0;return Ct(d.getItem.bind(d))(r.name).then(y=>{if(y)if(typeof y.version=="number"&&y.version!==r.version){if(r.migrate){const S=r.migrate(y.state,y.version);return S instanceof Promise?S.then(w=>[!0,w]):[!0,S]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,y.state];return[!1,void 0]}).then(y=>{var S;if(j!==c)return;const[w,N]=y;if(p=r.merge(N,(S=s())!=null?S:x),n(p,!0),w)return f()}).then(()=>{j===c&&(v?.(s(),void 0),p=s(),l=!0,u.forEach(y=>y(p)))}).catch(y=>{j===c&&v?.(void 0,y)})};return i.persist={setOptions:g=>{r={...r,...g},g.storage&&(d=g.storage)},clearStorage:()=>{d?.removeItem(r.name)},getOptions:()=>r,rehydrate:()=>h(),hasHydrated:()=>l,onHydrate:g=>(a.add(g),()=>{a.delete(g)}),onFinishHydration:g=>(u.add(g),()=>{u.delete(g)})},r.skipHydration||h(),p||x},Wn=Eo,{useSyncExternalStoreWithSelector:$o}=ms,Oo=t=>t;function Ro(t,e=Oo,n){const s=$o(t.subscribe,t.getState,t.getInitialState,e,n);return ze.useDebugValue(s),s}const Xt=t=>Symbol.iterator in t,Jt=t=>"entries"in t,Gt=(t,e)=>{const n=t instanceof Map?t:new Map(t.entries()),s=e instanceof Map?e:new Map(e.entries());if(n.size!==s.size)return!1;for(const[i,r]of n)if(!s.has(i)||!Object.is(r,s.get(i)))return!1;return!0},Mo=(t,e)=>{const n=t[Symbol.iterator](),s=e[Symbol.iterator]();let i=n.next(),r=s.next();for(;!i.done&&!r.done;){if(!Object.is(i.value,r.value))return!1;i=n.next(),r=s.next()}return!!i.done&&!!r.done};function Lo(t,e){return Object.is(t,e)?!0:typeof t!="object"||t===null||typeof e!="object"||e===null||Object.getPrototypeOf(t)!==Object.getPrototypeOf(e)?!1:Xt(t)&&Xt(e)?Jt(t)&&Jt(e)?Gt(t,e):Mo(t,e):Gt({entries:()=>Object.entries(t)},{entries:()=>Object.entries(e)})}function Dn(t,e="Output"){if(!t)return`interface ${e} {}`;function n(r){if(!r||typeof r!="object")return"unknown";const l=r.type;if(Array.isArray(l))return l.map(c=>s(c)).join(" | ");switch(l){case"string":return r.enum?r.enum.map(c=>`"${c}"`).join(" | "):"string";case"number":case"integer":return"number";case"boolean":return"boolean";case"null":return"null";case"array":{const c=r.items;return c?`${n(c)}[]`:"unknown[]"}case"object":return i(r);default:return r.anyOf?r.anyOf.map(n).join(" | "):r.oneOf?r.oneOf.map(n).join(" | "):r.allOf?r.allOf.map(n).join(" & "):"unknown"}}function s(r){switch(r){case"string":return"string";case"number":case"integer":return"number";case"boolean":return"boolean";case"null":return"null";default:return"unknown"}}function i(r){const l=r.properties;if(!l)return"Record<string, unknown>";const c=new Set(r.required||[]);return`{
|
|
1
|
+
import{ci as ne,e as _,j as o,B as te,l as ln,bb as ze,cj as ms,r as T,s as oe,c as O,g as ps,o as cn,c4 as xs,a7 as hs,a8 as fe,aV as an,c5 as gs,aS as bs,c3 as Ss,c6 as un,b5 as js,cc as ys,cd as vs,ae as ws,ce as Ns,ck as $t,cl as dn,x as ks,y as _s,cm as Cs,cn as Is}from"./index-_CUdtdz8.js";import{D as Ts,F as Es,B as $s}from"./index-Dtca8DdX.js";import{e as Fe,i as Os,u as ae}from"./constants-CImNHUX-.js";import{b as fn}from"./use-virtual-mcp-MITPdtzC.js";import{M as Re}from"./monaco-editor-C6DOPPfO.js";import{A as Rs,c as Ms,a as Ls,b as Ps,e as As,R as Ut,d as zs}from"./accordion-B8b6ADv4.js";import{B as le}from"./badge-DOjxQOhJ.js";import{c as vt,S as wt,d as nt,b as Nt,a as kt}from"./select-DhMWgQ3s.js";import{S as st}from"./spinner-DIWCCR1u.js";import{V as Ws}from"./view-mode-toggle-cZTPYUmn.js";import{a8 as Ds,a9 as Fs,i as Hs,a0 as mn,aa as Vs,P as Us,u as qs,ab as pn,X as Ks,T as xn,ac as Bs,ad as Xs,R as bt,ae as Js}from"./agent-icon-B3dbwQQF.js";import{i as hn}from"./Play-B5Y5OgEF.js";import{b as Gs,a as Qs,V as Qe}from"./layout-Dw6LlsHX.js";import{c as gn,b as bn,T as Sn,a as jn}from"./tooltip-DEoNevOj.js";import{u as Ys,a as Zs}from"./use-connection-CHxcvnwB.js";import{u as Ot,d as Rt,b as yn}from"./use-mcp-tools-DLLnZTwr.js";import{c as eo,d as to,e as no,D as so,a as oo,b as ro}from"./dialog-CK63STP4.js";import"./index-CPA6TTAv.js";import{N as io,h as lo,j as co,m as Be,P as ao,i as uo,R as fo,c as mo,k as po,e as qt,d as xo}from"./index-SHpCCFvp.js";import{S as ho}from"./index-Q_nE-B09.js";import{D as vn,a as wn,b as Nn,c as Ye}from"./dropdown-menu-B7T7Iogo.js";import{s as go}from"./Plus-BfYJ_fhU.js";import{b as kn}from"./Tool01-1p7InVa9.js";import{i as He}from"./Check-_x9Smiby.js";import{s as Mt}from"./XClose-C9tO3uLm.js";import{I as Lt}from"./integration-icon-DcYB2a8l.js";import{a as bo,S as So}from"./scroll-area-CYD6rIcU.js";import"./index-3_pBkl9I.js";import{i as _n}from"./X-DOmcQBqy.js";import{u as Cn,a as jo}from"./use-collections-T8lAmXe-.js";import{E as In}from"./empty-state-BU8pZLnA.js";import{c as yo}from"./create-sse-subscription-CxkOgzKf.js";import{I as Kt}from"./input-Ko_SrZ4_.js";const Tn=ne("Box",[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]);const En=ne("Braces",[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]]);const ot=ne("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);const rt=ne("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);const vo=ne("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);const $n=ne("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);const wo=ne("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);const On=ne("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);const Rn=ne("File",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]);const Mn=ne("Hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);const No=ne("OctagonAlert",[["path",{d:"M12 16h.01",key:"1drbdi"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M15.312 2a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586l-4.688-4.688A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2z",key:"1fd625"}]]);const Ln=ne("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);const Pn=ne("SquareCheckBig",[["path",{d:"M21 10.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.5",key:"1uzm8b"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);const ko=ne("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);const An=ne("Type",[["polyline",{points:"4 7 4 4 20 4 20 7",key:"1nosan"}],["line",{x1:"9",x2:"15",y1:"20",y2:"20",key:"swin9y"}],["line",{x1:"12",x2:"12",y1:"4",y2:"20",key:"1tx1rr"}]]);function _o(t){const e=_.c(15),{onSave:n,onUndo:s,isDirty:i,isSaving:r,saveLabel:l,undoLabel:c}=t,a=l===void 0?"Save":l,u=c===void 0?"Undo":c;if(!i)return null;let d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d=o.jsx(Ds,{size:14}),e[0]=d):d=e[0];let f;e[1]!==r||e[2]!==s||e[3]!==u?(f=o.jsxs(te,{variant:"outline",size:"sm",onClick:s,disabled:r,"aria-label":u,children:[d,u]}),e[1]=r,e[2]=s,e[3]=u,e[4]=f):f=e[4];let m;e[5]!==r?(m=r?o.jsx(ln,{size:14,className:"animate-spin"}):o.jsx(Fs,{size:14}),e[5]=r,e[6]=m):m=e[6];let x;e[7]!==r||e[8]!==n||e[9]!==a||e[10]!==m?(x=o.jsxs(te,{variant:"default",size:"sm",onClick:n,disabled:r,"aria-label":a,children:[m,a]}),e[7]=r,e[8]=n,e[9]=a,e[10]=m,e[11]=x):x=e[11];let p;return e[12]!==f||e[13]!==x?(p=o.jsxs(o.Fragment,{children:[f,x]}),e[12]=f,e[13]=x,e[14]=p):p=e[14],p}const Bt=t=>{let e;const n=new Set,s=(u,d)=>{const f=typeof u=="function"?u(e):u;if(!Object.is(f,e)){const m=e;e=d??(typeof f!="object"||f===null)?f:Object.assign({},e,f),n.forEach(x=>x(e,m))}},i=()=>e,c={setState:s,getState:i,getInitialState:()=>a,subscribe:u=>(n.add(u),()=>n.delete(u))},a=e=t(s,i,c);return c},Pt=(t=>t?Bt(t):Bt),Co=t=>t;function _t(t,e=Co){const n=ze.useSyncExternalStore(t.subscribe,ze.useCallback(()=>e(t.getState()),[t,e]),ze.useCallback(()=>e(t.getInitialState()),[t,e]));return ze.useDebugValue(n),n}const Io=t=>{const e=Pt(t),n=s=>_t(e,s);return Object.assign(n,e),n},To=(t=>Io);function zn(t,e){let n;try{n=t()}catch{return}return{getItem:i=>{var r;const l=a=>a===null?null:JSON.parse(a,void 0),c=(r=n.getItem(i))!=null?r:null;return c instanceof Promise?c.then(l):l(c)},setItem:(i,r)=>n.setItem(i,JSON.stringify(r,void 0)),removeItem:i=>n.removeItem(i)}}const Ct=t=>e=>{try{const n=t(e);return n instanceof Promise?n:{then(s){return Ct(s)(n)},catch(s){return this}}}catch(n){return{then(s){return this},catch(s){return Ct(s)(n)}}}},Eo=(t,e)=>(n,s,i)=>{let r={storage:zn(()=>window.localStorage),partialize:g=>g,version:0,merge:(g,b)=>({...b,...g}),...e},l=!1,c=0;const a=new Set,u=new Set;let d=r.storage;if(!d)return t((...g)=>{console.warn(`[zustand persist middleware] Unable to update item '${r.name}', the given storage is currently unavailable.`),n(...g)},s,i);const f=()=>{const g=r.partialize({...s()});return d.setItem(r.name,{state:g,version:r.version})},m=i.setState;i.setState=(g,b)=>(m(g,b),f());const x=t((...g)=>(n(...g),f()),s,i);i.getInitialState=()=>x;let p;const h=()=>{var g,b;if(!d)return;const j=++c;l=!1,a.forEach(y=>{var S;return y((S=s())!=null?S:x)});const v=((b=r.onRehydrateStorage)==null?void 0:b.call(r,(g=s())!=null?g:x))||void 0;return Ct(d.getItem.bind(d))(r.name).then(y=>{if(y)if(typeof y.version=="number"&&y.version!==r.version){if(r.migrate){const S=r.migrate(y.state,y.version);return S instanceof Promise?S.then(w=>[!0,w]):[!0,S]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,y.state];return[!1,void 0]}).then(y=>{var S;if(j!==c)return;const[w,N]=y;if(p=r.merge(N,(S=s())!=null?S:x),n(p,!0),w)return f()}).then(()=>{j===c&&(v?.(s(),void 0),p=s(),l=!0,u.forEach(y=>y(p)))}).catch(y=>{j===c&&v?.(void 0,y)})};return i.persist={setOptions:g=>{r={...r,...g},g.storage&&(d=g.storage)},clearStorage:()=>{d?.removeItem(r.name)},getOptions:()=>r,rehydrate:()=>h(),hasHydrated:()=>l,onHydrate:g=>(a.add(g),()=>{a.delete(g)}),onFinishHydration:g=>(u.add(g),()=>{u.delete(g)})},r.skipHydration||h(),p||x},Wn=Eo,{useSyncExternalStoreWithSelector:$o}=ms,Oo=t=>t;function Ro(t,e=Oo,n){const s=$o(t.subscribe,t.getState,t.getInitialState,e,n);return ze.useDebugValue(s),s}const Xt=t=>Symbol.iterator in t,Jt=t=>"entries"in t,Gt=(t,e)=>{const n=t instanceof Map?t:new Map(t.entries()),s=e instanceof Map?e:new Map(e.entries());if(n.size!==s.size)return!1;for(const[i,r]of n)if(!s.has(i)||!Object.is(r,s.get(i)))return!1;return!0},Mo=(t,e)=>{const n=t[Symbol.iterator](),s=e[Symbol.iterator]();let i=n.next(),r=s.next();for(;!i.done&&!r.done;){if(!Object.is(i.value,r.value))return!1;i=n.next(),r=s.next()}return!!i.done&&!!r.done};function Lo(t,e){return Object.is(t,e)?!0:typeof t!="object"||t===null||typeof e!="object"||e===null||Object.getPrototypeOf(t)!==Object.getPrototypeOf(e)?!1:Xt(t)&&Xt(e)?Jt(t)&&Jt(e)?Gt(t,e):Mo(t,e):Gt({entries:()=>Object.entries(t)},{entries:()=>Object.entries(e)})}function Dn(t,e="Output"){if(!t)return`interface ${e} {}`;function n(r){if(!r||typeof r!="object")return"unknown";const l=r.type;if(Array.isArray(l))return l.map(c=>s(c)).join(" | ");switch(l){case"string":return r.enum?r.enum.map(c=>`"${c}"`).join(" | "):"string";case"number":case"integer":return"number";case"boolean":return"boolean";case"null":return"null";case"array":{const c=r.items;return c?`${n(c)}[]`:"unknown[]"}case"object":return i(r);default:return r.anyOf?r.anyOf.map(n).join(" | "):r.oneOf?r.oneOf.map(n).join(" | "):r.allOf?r.allOf.map(n).join(" & "):"unknown"}}function s(r){switch(r){case"string":return"string";case"number":case"integer":return"number";case"boolean":return"boolean";case"null":return"null";default:return"unknown"}}function i(r){const l=r.properties;if(!l)return"Record<string, unknown>";const c=new Set(r.required||[]);return`{
|
|
2
2
|
${Object.entries(l).map(([u,d])=>{const f=c.has(u)?"":"?";return`${d.description?` /** ${d.description} */
|
|
3
3
|
`:""} ${u}${f}: ${n(d)};`}).join(`
|
|
4
4
|
`)}
|
package/dist/client/assets/{infiniteQueryObserver-DUrDxQsV.js → infiniteQueryObserver-7fxmXXdp.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{dw as d,dx as f,dy as v,dz as x}from"./index-
|
|
1
|
+
import{dw as d,dx as f,dy as v,dz as x}from"./index-_CUdtdz8.js";var N=class extends d{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:f()})}getOptimisticResult(e){return e.behavior=f(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){const{state:s}=e,i=super.createResult(e,t),{isFetching:a,isRefetching:P,isError:c,isRefetchError:g}=i,r=s.fetchMeta?.fetchMore?.direction,h=c&&r==="forward",o=a&&r==="forward",n=c&&r==="backward",u=a&&r==="backward";return{...i,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:x(t,s.data),hasPreviousPage:v(t,s.data),isFetchNextPageError:h,isFetchingNextPage:o,isFetchPreviousPageError:n,isFetchingPreviousPage:u,isRefetchError:g&&!h&&!n,isRefetching:P&&!o&&!u}}};export{N as I};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as s,c as a,j as d}from"./index-
|
|
1
|
+
import{e as s,c as a,j as d}from"./index-_CUdtdz8.js";function f(l){const e=s.c(10);let i,t,r;e[0]!==l?({className:i,type:r,...t}=l,e[0]=l,e[1]=i,e[2]=t,e[3]=r):(i=e[1],t=e[2],r=e[3]);let n;e[4]!==i?(n=a("file:text-foreground text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground flex h-9 w-full min-w-0 rounded-lg bg-background dark:bg-input/30 px-3 py-1 text-sm transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:opacity-50 card-shadow","focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",i),e[4]=i,e[5]=n):n=e[5];let o;return e[6]!==t||e[7]!==n||e[8]!==r?(o=d.jsx("input",{type:r,"data-slot":"input",className:n,...t}),e[6]=t,e[7]=n,e[8]=r,e[9]=o):o=e[9],o}export{f as I};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as A,j as h,r as z,c as _}from"./index-
|
|
1
|
+
import{e as A,j as h,r as z,c as _}from"./index-_CUdtdz8.js";import{n as L}from"./Container-hPWrMd_K.js";import{A as k}from"./agent-icon-B3dbwQQF.js";const C={"2xs":"h-4 w-4",xs:"h-6 w-6",sm:"h-9 w-9",md:"h-12 w-12",lg:"h-16 w-16",xl:"h-14 w-14"},Z={"2xs":"min-w-4",xs:"min-w-6",sm:"min-w-9",md:"min-w-12",lg:"min-w-16",xl:"min-w-14"},y={"2xs":8,xs:12,sm:16,md:24,lg:32,xl:28},M={"2xs":"xs",xs:"xs",sm:"sm",md:"md",lg:"lg",xl:"lg"};function q(E){const e=A.c(12),{icon:t,name:s,size:w,className:o,fallbackIcon:c}=E,n=w===void 0?"md":w;if(t?.startsWith("icon://")||t?.includes("#agentcolor=")){const r=M[n];let l;return e[0]!==o||e[1]!==t||e[2]!==s||e[3]!==r?(l=h.jsx(k,{icon:t,name:s,size:r,className:o}),e[0]=o,e[1]=t,e[2]=s,e[3]=r,e[4]=l):l=e[4],l}const g=t??"no-icon";let i;return e[5]!==o||e[6]!==c||e[7]!==t||e[8]!==s||e[9]!==n||e[10]!==g?(i=h.jsx(R,{icon:t,name:s,size:n,className:o,fallbackIcon:c},g),e[5]=o,e[6]=c,e[7]=t,e[8]=s,e[9]=n,e[10]=g,e[11]=i):i=e[11],i}function R(E){const e=A.c(24),{icon:t,name:s,size:w,className:o,fallbackIcon:c}=E,n=w===void 0?"md":w,[g,i]=z.useState(!1),r=!!t&&g,l=C[n],b=Z[n];let a;e[0]!==o||e[1]!==l||e[2]!==b?(a=_("rounded-lg border border-border shrink-0 overflow-hidden aspect-square bg-white",l,b,o),e[0]=o,e[1]=l,e[2]=b,e[3]=a):a=e[3];const p=t||void 0,N=!r&&"hidden";let m;e[4]!==N?(m=_("h-full w-full object-cover",N),e[4]=N,e[5]=m):m=e[5];let I,S;e[6]===Symbol.for("react.memo_cache_sentinel")?(I=()=>i(!1),S=()=>i(!0),e[6]=I,e[7]=S):(I=e[6],S=e[7]);let d;e[8]!==s||e[9]!==p||e[10]!==m?(d=h.jsx("img",{src:p,alt:s,className:m,onError:I,onLoad:S}),e[8]=s,e[9]=p,e[10]=m,e[11]=d):d=e[11];const v=r&&"hidden";let f;e[12]!==v?(f=_("h-full w-full flex items-center justify-center bg-muted/20",v),e[12]=v,e[13]=f):f=e[13];let x;e[14]!==c||e[15]!==n?(x=c??h.jsx(L,{size:y[n],className:"text-muted-foreground"}),e[14]=c,e[15]=n,e[16]=x):x=e[16];let u;e[17]!==f||e[18]!==x?(u=h.jsx("div",{className:f,children:x}),e[17]=f,e[18]=x,e[19]=u):u=e[19];let j;return e[20]!==d||e[21]!==u||e[22]!==a?(j=h.jsxs("div",{className:a,children:[d,u]}),e[20]=d,e[21]=u,e[22]=a,e[23]=j):j=e[23],j}export{q as I};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as n,c as r,j as i,b4 as p}from"./index-
|
|
1
|
+
import{e as n,c as r,j as i,b4 as p}from"./index-_CUdtdz8.js";function c(l){const e=n.c(8);let t,s;e[0]!==l?({className:t,...s}=l,e[0]=l,e[1]=t,e[2]=s):(t=e[1],s=e[2]);let a;e[3]!==t?(a=r("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",t),e[3]=t,e[4]=a):a=e[4];let o;return e[5]!==s||e[6]!==a?(o=i.jsx(p,{"data-slot":"label",className:a,...s}),e[5]=s,e[6]=a,e[7]=o):o=e[7],o}export{c as L};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as C,r as i,c as A,j as a,ao as V}from"./index-
|
|
1
|
+
import{e as C,r as i,c as A,j as a,ao as V}from"./index-_CUdtdz8.js";import{P as E}from"./index-DMzQ42Ay.js";const H=i.createContext(null);function z(x){const e=C.c(3),{children:l}=x,s=i.useContext(H);if(!s?.tabsEl)return null;let c;return e[0]!==l||e[1]!==s.tabsEl?(c=V.createPortal(l,s.tabsEl),e[0]=l,e[1]=s.tabsEl,e[2]=c):c=e[2],c}function D(x){const e=C.c(3),{children:l}=x,s=i.useContext(H);if(!s?.actionsEl)return null;let c;return e[0]!==l||e[1]!==s.actionsEl?(c=V.createPortal(l,s.actionsEl),e[0]=l,e[1]=s.actionsEl,e[2]=c):c=e[2],c}const B=D;function F(x){const e=C.c(21),{children:l,breadcrumb:s,hideHeader:c}=x;let b;e[0]===Symbol.for("react.memo_cache_sentinel")?(b={leftEl:null,tabsEl:null,actionsEl:null},e[0]=b):b=e[0];const[w,g]=i.useState(b),N=i.useRef(null),P=i.useRef(null),L=i.useRef(null);let h;e[1]===Symbol.for("react.memo_cache_sentinel")?(h=t=>{N.current=t,t&&g(n=>n.leftEl===t?n:{...n,leftEl:t})},e[1]=h):h=e[1];const $=h;let R;e[2]===Symbol.for("react.memo_cache_sentinel")?(R=t=>{P.current=t,t&&g(n=>n.tabsEl===t?n:{...n,tabsEl:t})},e[2]=R):R=e[2];const _=R;let d;e[3]===Symbol.for("react.memo_cache_sentinel")?(d=t=>{L.current=t,t&&g(n=>n.actionsEl===t?n:{...n,actionsEl:t})},e[3]=d):d=e[3];const k=d,p=c&&"hidden";let o;e[4]!==p?(o=A(p),e[4]=p,e[5]=o):o=e[5];let j;e[6]===Symbol.for("react.memo_cache_sentinel")?(j=a.jsx("div",{ref:$,className:"flex items-center gap-2 min-w-0"}),e[6]=j):j=e[6];let r;e[7]!==s?(r=a.jsxs(E.Header.Left,{children:[s,j]}),e[7]=s,e[8]=r):r=e[8];let y;e[9]===Symbol.for("react.memo_cache_sentinel")?(y=a.jsxs(E.Header.Right,{children:[a.jsx("div",{ref:_,className:"flex items-center gap-2 overflow-x-auto min-w-0"}),a.jsx("div",{ref:k,className:"flex items-center gap-2 shrink-0"})]}),e[9]=y):y=e[9];let f;e[10]!==o||e[11]!==r?(f=a.jsxs(E.Header,{className:o,children:[r,y]}),e[10]=o,e[11]=r,e[12]=f):f=e[12];let m;e[13]!==l?(m=a.jsx(E.Content,{children:l}),e[13]=l,e[14]=m):m=e[14];let u;e[15]!==f||e[16]!==m?(u=a.jsxs(E,{children:[f,m]}),e[15]=f,e[16]=m,e[17]=u):u=e[17];let S;return e[18]!==w||e[19]!==u?(S=a.jsx(H,{value:w,children:u}),e[18]=w,e[19]=u,e[20]=S):S=e[20],S}export{F as V,B as a,z as b};
|