decocms 2.311.8 → 2.311.10
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-9Ey0HjEK.js → AlertCircle-CBFejk6X.js} +1 -1
- package/dist/client/assets/{Archive-DPagM8Sv.js → Archive-iAwIFcLN.js} +1 -1
- package/dist/client/assets/{ArrowNarrowLeft-CX80utcZ.js → ArrowNarrowLeft-C0NWe8i5.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-Dnm-Dm1H.js → ArrowUpRight-wDGVfxe4.js} +1 -1
- package/dist/client/assets/{Check-C0YCNcAk.js → Check-BzVO1AiZ.js} +1 -1
- package/dist/client/assets/{CheckCircle-DC6iqfFI.js → CheckCircle-B7pbvHXn.js} +1 -1
- package/dist/client/assets/{ChevronDown-Cwqb-1uD.js → ChevronDown-Deq9bkeU.js} +1 -1
- package/dist/client/assets/{ChevronRight-CrWz1sFy.js → ChevronRight-De9CjTSZ.js} +1 -1
- package/dist/client/assets/{ChevronUp-BMBmNR0B.js → ChevronUp-B22gTkPS.js} +1 -1
- package/dist/client/assets/{Container-Bk9UG2qc.js → Container-10kbY0mV.js} +1 -1
- package/dist/client/assets/{DotsVertical-B7yU948Y.js → DotsVertical-B0gKWs5D.js} +1 -1
- package/dist/client/assets/{LinkExternal01-DxfMOMNm.js → LinkExternal01-DkQ5Dk0s.js} +1 -1
- package/dist/client/assets/{Lock01-Cds15CcD.js → Lock01-CHNFEFTO.js} +1 -1
- package/dist/client/assets/{Palette-BhAbwiYB.js → Palette-B7UA48pi.js} +1 -1
- package/dist/client/assets/{Play-DT05vsyX.js → Play-BunaO9my.js} +1 -1
- package/dist/client/assets/{Plus-LaAbD5qL.js → Plus-DlXyaJQM.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-BS-aU6o_.js → RefreshCcw01-BsycvfGb.js} +1 -1
- package/dist/client/assets/{SearchMd-DLpvei6Y.js → SearchMd-15kzRVQe.js} +1 -1
- package/dist/client/assets/{Settings02-DIJ_hqNi.js → Settings02-DVi1PM0X.js} +1 -1
- package/dist/client/assets/{Shield01-B0gusvIt.js → Shield01-B70wMBqd.js} +1 -1
- package/dist/client/assets/{Star01-Dr3hv_f2.js → Star01-CJoi6RDa.js} +1 -1
- package/dist/client/assets/{Sun-Cjk_RdSq.js → Sun-CGoBYMaF.js} +1 -1
- package/dist/client/assets/{Tool01-CKIVHH97.js → Tool01-D48iIlf1.js} +1 -1
- package/dist/client/assets/{Trash01-CGR2s5lX.js → Trash01-r5gnirq_.js} +1 -1
- package/dist/client/assets/{User01-TUOjLrvV.js → User01-DJ7t0J9b.js} +1 -1
- package/dist/client/assets/{Users03-CrFC9gy5.js → Users03-DYLtKI27.js} +1 -1
- package/dist/client/assets/{X-EkEnxljM.js → X-BkKDRlJI.js} +1 -1
- package/dist/client/assets/{XCircle-DX3ew0Vv.js → XCircle-sedM5Yzu.js} +1 -1
- package/dist/client/assets/{XClose-Bgl_mrN0.js → XClose-Bx_xQQD_.js} +1 -1
- package/dist/client/assets/{Zap-nGrPPn6s.js → Zap-Cf_cpNNU.js} +1 -1
- package/dist/client/assets/{ZapSquare-3WrsQC0a.js → ZapSquare-DlRSLgAv.js} +1 -1
- package/dist/client/assets/{accordion-CVBGYkjx.js → accordion-DT47aOa3.js} +1 -1
- package/dist/client/assets/{agent-icon-C5r21-mU.js → agent-icon-DUbGEO2S.js} +1 -1
- package/dist/client/assets/{agents-list-DYSwFq4O.js → agents-list-rwKMRHld.js} +1 -1
- package/dist/client/assets/ai-providers-CRf0IUiu.js +1 -0
- package/dist/client/assets/{alert-dialog-CUlBW44D.js → alert-dialog-2Jj762BJ.js} +1 -1
- package/dist/client/assets/{auth-catchall-b0gnrvFE.js → auth-catchall-DTur9gCU.js} +1 -1
- package/dist/client/assets/{automation-list-row-B0Yyrl0C.js → automation-list-row-Cuemsvmv.js} +1 -1
- package/dist/client/assets/{automations-BoyHWA09.js → automations-DN3LYNZV.js} +1 -1
- package/dist/client/assets/{avatar-CCEBXDhS.js → avatar-BoueLWcb.js} +1 -1
- package/dist/client/assets/{badge-Br91qQU7.js → badge-kdIe7Szq.js} +1 -1
- package/dist/client/assets/{brand-context-BssJ3FOZ.js → brand-context-C39FhTOD.js} +1 -1
- package/dist/client/assets/{card-DQgc505G.js → card-1EoqQ-Q7.js} +1 -1
- package/dist/client/assets/{chat-context-D0lbPtlR.js → chat-context-CqLR71Tu.js} +1 -1
- package/dist/client/assets/{checkbox-BCxF1VyO.js → checkbox-CL4jg0mR.js} +1 -1
- package/dist/client/assets/{collection-detail-BPMkE5rf.js → collection-detail-Be93090Z.js} +1 -1
- package/dist/client/assets/{collection-display-button-DTW3X--x.js → collection-display-button-BWk8xHdj.js} +1 -1
- package/dist/client/assets/{collection-search-DzJ2_6S7.js → collection-search-B-8Jnp5p.js} +1 -1
- package/dist/client/assets/{collection-search-Cm33ynx1.js → collection-search-BOMyE6Ld.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-D6-pSdID.js → collection-table-wrapper-Cb-FxojL.js} +1 -1
- package/dist/client/assets/{collection-tabs-DNkzHSYG.js → collection-tabs-Li95C-8Z.js} +1 -1
- package/dist/client/assets/{collections-C9L2aOYp.js → collections-BpcdhWS9.js} +1 -1
- package/dist/client/assets/{command-C-2IxKk5.js → command-D-VqtTkt.js} +1 -1
- package/dist/client/assets/{connection-card-BoxVMaxE.js → connection-card-D4MG7ceA.js} +1 -1
- package/dist/client/assets/{connection-detail-_uhhok2G.js → connection-detail-C9HOgjUN.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-o8Xx8W0s.js → connection-form-helpers-C96WddUN.js} +1 -1
- package/dist/client/assets/{connections-BiBKwha4.js → connections-Dudt-pG4.js} +1 -1
- package/dist/client/assets/{constants--Dugzbiv.js → constants--Z68frQS.js} +1 -1
- package/dist/client/assets/{constants-CK0eEQbn.js → constants-BY3slQ5k.js} +1 -1
- package/dist/client/assets/{dialog-BxXbq3AD.js → dialog-2qod6XLb.js} +1 -1
- package/dist/client/assets/{domain-settings-C-3L2-eL.js → domain-settings-BXrvw6Lv.js} +1 -1
- package/dist/client/assets/{drawer-UeGl-sjm.js → drawer-DSH3rjuX.js} +1 -1
- package/dist/client/assets/{dropdown-menu-DQ7iI93C.js → dropdown-menu-CYyf-ZrC.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-Dn0vyVNY.js → dynamic-plugin-layout-RlhEpflE.js} +1 -1
- package/dist/client/assets/{empty-state-CKzOWRtK.js → empty-state-BdiBdNme.js} +1 -1
- package/dist/client/assets/{empty-state-D_f63UFh.js → empty-state-DebOy9XU.js} +1 -1
- package/dist/client/assets/{extract-connection-data-DMpmuOOJ.js → extract-connection-data-BTMDGqDD.js} +1 -1
- package/dist/client/assets/{features-DyUlYERL.js → features-Cxt-JPsD.js} +1 -1
- package/dist/client/assets/{form-BwE1BJrb.js → form-BxsxXSuZ.js} +1 -1
- package/dist/client/assets/{general-DUugdid2.js → general-u1Y39J62.js} +1 -1
- package/dist/client/assets/{index-C4DcQ8LW.js → index-0enbmaSe.js} +2 -2
- package/dist/client/assets/{index-CxyXuh3-.js → index-BNtQbO2i.js} +1 -1
- package/dist/client/assets/{index-DUyJmZSw.js → index-BVirFM6V.js} +1 -1
- package/dist/client/assets/{index-C1CY6-RI.js → index-Bna4Mzv7.js} +1 -1
- package/dist/client/assets/{index-D2MseDzL.js → index-CJ3mMCam.js} +1 -1
- package/dist/client/assets/{index-Cnh6l9lE.js → index-CbJD4O9M.js} +3 -3
- package/dist/client/assets/{index-cE983NnZ.js → index-Co04TeZ5.js} +1 -1
- package/dist/client/assets/{index-DLI7RfTF.js → index-CucV4lBd.js} +1 -1
- package/dist/client/assets/{index-C7x_kc-H.js → index-D1Os768e.js} +1 -1
- package/dist/client/assets/{index-CeMlJGK7.js → index-D9p0G3vk.js} +1 -1
- package/dist/client/assets/{index-DX5CKVPt.js → index-DKffdYnU.js} +1 -1
- package/dist/client/assets/{index-CpyFP_Y6.js → index-Dk7VTW9z.js} +1 -1
- package/dist/client/assets/index-DmW2ChV3.js +1 -0
- package/dist/client/assets/{index-B0gV229o.js → index-DyLEkJ9h.js} +1 -1
- package/dist/client/assets/{index-CwEMRsg9.js → index-fQuO2Dc3.js} +1 -1
- package/dist/client/assets/{index-cFrtNDeh.js → index-sxBFqhbB.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-M5HXhTa-.js → infiniteQueryObserver-sxIykUWp.js} +1 -1
- package/dist/client/assets/{input-Zc7XqLBz.js → input-CZy7VBF-.js} +1 -1
- package/dist/client/assets/{integration-icon-dIK4SySX.js → integration-icon-Cgu3nEbl.js} +1 -1
- package/dist/client/assets/{label-DQVfYyGa.js → label-BhPoqbH1.js} +1 -1
- package/dist/client/assets/{layout-DoXFaFc9.js → layout-jAXEQlv4.js} +1 -1
- package/dist/client/assets/{lean-canvas-recruit-modal-B6jYbHdS.js → lean-canvas-recruit-modal-Mo-uvZiE.js} +1 -1
- package/dist/client/assets/{login-C53Yny6q.js → login-BgB-8JX_.js} +1 -1
- package/dist/client/assets/{members-CXQHdw2n.js → members-D5i4jyvH.js} +1 -1
- package/dist/client/assets/{monaco-editor-BluEEKw9.js → monaco-editor-D-E1NsT_.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-C7uh_AJ1.js → monitoring-stats-row-CaU12GnW.js} +1 -1
- package/dist/client/assets/{oauth-callback-B18mSbUX.js → oauth-callback-BrTY445n.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-B5LWXlVw.js → oauth-callback-ai-provider-BA8nRDph.js} +1 -1
- package/dist/client/assets/{onboarding-B9N5e87t.js → onboarding-CAft2_BY.js} +1 -1
- package/dist/client/assets/{org-layout-HZO2enZQ.js → org-layout-C0XY3j3w.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-X1oNY1R9.js → org-plugin-layout-CiPGTy9y.js} +1 -1
- package/dist/client/assets/{pair-Cl7nEWLx.js → pair-DyP8v5ZE.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-mFDhSKtm.js → plugin-empty-state-CPC4iNPZ.js} +1 -1
- package/dist/client/assets/{plugin-header-BzIWRAUv.js → plugin-header-BaIUgM8O.js} +1 -1
- package/dist/client/assets/{plugin-layout-Ckgza9x1.js → plugin-layout-CP7WeU3S.js} +1 -1
- package/dist/client/assets/{popover-fFiZRgP_.js → popover-g5bCjakL.js} +1 -1
- package/dist/client/assets/{profile-CDEKCuy5.js → profile-DE9V4UAe.js} +1 -1
- package/dist/client/assets/{project-app-view-DYhcROSR.js → project-app-view-CsUA3eWI.js} +1 -1
- package/dist/client/assets/registry-Cth6leQk.js +2 -0
- package/dist/client/assets/{registry-layout-DhmXFNYV.js → registry-layout-IV9o5tdh.js} +1 -1
- package/dist/client/assets/{required-auth-layout-DdqUlG6N.js → required-auth-layout-CbwdpaRZ.js} +1 -1
- package/dist/client/assets/{reset-password-CG-HQXTs.js → reset-password-HK92arRg.js} +1 -1
- package/dist/client/assets/{roles-BToZK3zI.js → roles-BWPZWJaM.js} +1 -1
- package/dist/client/assets/{scroll-area-DDk0Exbn.js → scroll-area-DPp3zriG.js} +1 -1
- package/dist/client/assets/{search-input-BHdl2Sic.js → search-input-DFpePjxv.js} +1 -1
- package/dist/client/assets/{select-CdC5gLdi.js → select-DNBVly7-.js} +1 -1
- package/dist/client/assets/{select-model-BkJ0KPp-.js → select-model-DeUWMCqm.js} +1 -1
- package/dist/client/assets/settings-layout-D82thllZ.js +1 -0
- package/dist/client/assets/{settings-section-Dab3WzAF.js → settings-section-DLmrAiBm.js} +1 -1
- package/dist/client/assets/{shell-layout-lDvOUVZf.js → shell-layout-R4iIIify.js} +1 -1
- package/dist/client/assets/{skeleton-jCfWKtEG.js → skeleton-D3XIs5gC.js} +1 -1
- package/dist/client/assets/{sso-y81n9RBZ.js → sso-DM0bDf34.js} +1 -1
- package/dist/client/assets/{store-CvYwjdEK.js → store-DBYsfjv2.js} +1 -1
- package/dist/client/assets/store-registry-Be_BNgv2.js +2 -0
- package/dist/client/assets/{switch-fkgGJ6Y_.js → switch-ChHlr-0p.js} +1 -1
- package/dist/client/assets/{table-B_6GznCu.js → table-D-EfNZTA.js} +1 -1
- package/dist/client/assets/{tabs-qDZiCngi.js → tabs-C3Y9bmk3.js} +1 -1
- package/dist/client/assets/{task-status-BaBW3UXJ.js → task-status-Byb391SI.js} +1 -1
- package/dist/client/assets/{textarea-C2BrY9Le.js → textarea-TEFGem1K.js} +1 -1
- package/dist/client/assets/{toggle-group-B-jspLpZ.js → toggle-group-DYAaGRJB.js} +1 -1
- package/dist/client/assets/{tools-list-6JBD-Zot.js → tools-list-DHP55xBU.js} +1 -1
- package/dist/client/assets/{tooltip-CC8e8bYw.js → tooltip-DZ4hI4gi.js} +1 -1
- package/dist/client/assets/{types-BrKOUOZu.js → types-D599MtjY.js} +1 -1
- package/dist/client/assets/{use-ai-providers-B2sC2ALY.js → use-ai-providers-DSutNjVp.js} +1 -1
- package/dist/client/assets/{use-collections-CeVghh3K.js → use-collections-BbQAdI3o.js} +1 -1
- package/dist/client/assets/{use-connection-Cyq0iJ5j.js → use-connection-CrEyI3P_.js} +1 -1
- package/dist/client/assets/{use-copy-DR2hWJaD.js → use-copy-Df3K3sfk.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-DGMHB2cc.js → use-create-virtual-mcp-t8SMbFkV.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-DwUIvZBw.js → use-debounced-autosave-IAh8TU4o.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-YJpIJj4i.js → use-decopilot-events-CxAD33F2.js} +1 -1
- package/dist/client/assets/{use-delete-connection-BkbDfapg.js → use-delete-connection-zP-NAmKT.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-Hb3Vf_3I.js → use-infinite-scroll-hrqUZmbE.js} +1 -1
- package/dist/client/assets/{use-list-state-wzK4SDnM.js → use-list-state-DsStSeaC.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-CPgnB2kL.js → use-mcp-tools-kqffQmIa.js} +1 -1
- package/dist/client/assets/{use-members-BXnMgIf9.js → use-members-BqQiitMx.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-BJNAm35_.js → use-navigate-to-agent-DkjTuG5H.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-B2VsJjxT.js → use-org-auth-client-DM9zvqH-.js} +1 -1
- package/dist/client/assets/{use-org-sso-D98ffRJ_.js → use-org-sso-DFTMWioi.js} +1 -1
- package/dist/client/assets/{use-organization-roles-CsvLhbKb.js → use-organization-roles-CzgnOad2.js} +1 -1
- package/dist/client/assets/{use-organization-settings-SrrzYdc9.js → use-organization-settings-CZnRZbph.js} +1 -1
- package/dist/client/assets/{use-registry-connections-B0GzmRQn.js → use-registry-connections-CT-N1sCh.js} +1 -1
- package/dist/client/assets/{use-status-sounds-CtnKWsOu.js → use-status-sounds-Bewyc919.js} +1 -1
- package/dist/client/assets/{use-tasks-DToWWiz1.js → use-tasks-9cquzKq3.js} +1 -1
- package/dist/client/assets/{use-view-mode-BqpScb5m.js → use-view-mode-B2bqG4ko.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-DA2HdrC3.js → use-virtual-mcp-Bl5HfgtI.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-P_vpKUlW.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-CdjREh1b.js +1 -0
- package/dist/client/assets/{user-CrGRA0V7.js → user-BmqT7ATa.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-DlPw4C1T.js → view-mode-toggle-DdV_2G2i.js} +1 -1
- package/dist/client/assets/{workflow-YCSeFh2m.js → workflow-Oj5odTn3.js} +1 -1
- package/dist/client/assets/workflow-detail-BT6eq7UZ.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +86 -91
- package/dist/server/node_modules/ansi-styles/index.d.ts +236 -0
- package/dist/server/node_modules/ansi-styles/index.js +223 -0
- package/dist/server/node_modules/{ansi-regex → ansi-styles}/package.json +13 -20
- package/dist/server/node_modules/ansi-styles/readme.md +173 -0
- package/dist/server/node_modules/onetime/index.d.ts +64 -0
- package/dist/server/node_modules/onetime/index.js +44 -0
- package/dist/server/node_modules/onetime/package.json +43 -0
- package/dist/server/node_modules/onetime/readme.md +94 -0
- package/dist/server/node_modules/pg/LICENSE +21 -0
- package/dist/server/node_modules/pg/README.md +95 -0
- package/dist/server/node_modules/pg/esm/index.mjs +20 -0
- package/dist/server/node_modules/pg/lib/client.js +743 -0
- package/dist/server/node_modules/pg/lib/connection-parameters.js +171 -0
- package/dist/server/node_modules/pg/lib/connection.js +221 -0
- package/dist/server/node_modules/pg/lib/crypto/cert-signatures.js +122 -0
- package/dist/server/node_modules/pg/lib/crypto/sasl.js +212 -0
- package/dist/server/node_modules/pg/lib/crypto/utils-legacy.js +43 -0
- package/dist/server/node_modules/pg/lib/crypto/utils-webcrypto.js +89 -0
- package/dist/server/node_modules/pg/lib/crypto/utils.js +9 -0
- package/dist/server/node_modules/pg/lib/defaults.js +91 -0
- package/dist/server/node_modules/pg/lib/index.js +73 -0
- package/dist/server/node_modules/pg/lib/native/client.js +323 -0
- package/dist/server/node_modules/pg/lib/native/index.js +2 -0
- package/dist/server/node_modules/pg/lib/native/query.js +165 -0
- package/dist/server/node_modules/pg/lib/query.js +252 -0
- package/dist/server/node_modules/pg/lib/result.js +109 -0
- package/dist/server/node_modules/pg/lib/stream.js +83 -0
- package/dist/server/node_modules/pg/lib/type-overrides.js +35 -0
- package/dist/server/node_modules/pg/lib/utils.js +217 -0
- package/dist/server/node_modules/pg/package.json +76 -0
- package/dist/server/server.js +85 -90
- package/package.json +1 -1
- package/dist/client/assets/ai-providers-C23uGGTh.js +0 -1
- package/dist/client/assets/index-BtV0adYp.js +0 -1
- package/dist/client/assets/registry-SRrrOWaz.js +0 -2
- package/dist/client/assets/settings-layout-C75rVJeh.js +0 -1
- package/dist/client/assets/store-registry-DNpjvrs_.js +0 -2
- package/dist/client/assets/useInfiniteQuery-DZyvg0dy.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DItg4qEF.js +0 -1
- package/dist/client/assets/workflow-detail-C-1jRApT.js +0 -1
- package/dist/server/node_modules/ansi-regex/index.d.ts +0 -33
- package/dist/server/node_modules/ansi-regex/index.js +0 -14
- package/dist/server/node_modules/ansi-regex/readme.md +0 -66
- package/dist/server/node_modules/emoji-regex/LICENSE-MIT.txt +0 -20
- package/dist/server/node_modules/emoji-regex/README.md +0 -107
- package/dist/server/node_modules/emoji-regex/index.d.ts +0 -3
- package/dist/server/node_modules/emoji-regex/index.js +0 -4
- package/dist/server/node_modules/emoji-regex/index.mjs +0 -4
- package/dist/server/node_modules/emoji-regex/package.json +0 -45
- package/dist/server/node_modules/is-fullwidth-code-point/index.d.ts +0 -17
- package/dist/server/node_modules/is-fullwidth-code-point/index.js +0 -12
- package/dist/server/node_modules/is-fullwidth-code-point/package.json +0 -53
- package/dist/server/node_modules/is-fullwidth-code-point/readme.md +0 -31
- /package/dist/server/node_modules/{ansi-regex → ansi-styles}/license +0 -0
- /package/dist/server/node_modules/{is-fullwidth-code-point → onetime}/license +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as b,s as k,o as E,bM as P,j as i,X as K,aG as _,K as S,x as q}from"./index-
|
|
1
|
+
import{e as b,s as k,o as E,bM as P,j as i,X as K,aG as _,K as S,x as q}from"./index-0enbmaSe.js";import{P as x}from"./index-Bna4Mzv7.js";import{e as I}from"./use-organization-settings-CZnRZbph.js";import{S as Q}from"./switch-ChHlr-0p.js";import{n as R}from"./Container-10kbY0mV.js";import{b as w,S as z,a as F,d as M}from"./settings-section-DLmrAiBm.js";import"./tooltip-DZ4hI4gi.js";import"./X-BkKDRlJI.js";import"./constants--Z68frQS.js";import"./card-1EoqQ-Q7.js";import"./ArrowUpRight-wDGVfxe4.js";function N(){const e=b.c(17),{org:t,project:s}=k(),o=E();let d;e[0]!==s.enabledPlugins?(d=s.enabledPlugins??[],e[0]=s.enabledPlugins,e[1]=d):d=e[1];const c=d,l=I();let m;e[2]!==t||e[3]!==s.slug||e[4]!==o?(m=()=>{o.invalidateQueries({queryKey:S.project(t.id,s.slug)}),o.invalidateQueries({queryKey:S.projects(t.id)}),o.invalidateQueries({predicate:n=>{const r=n.queryKey;return r[1]===t.id&&r[3]==="collection"&&r[4]==="VIRTUAL_MCP"}})},e[2]=t,e[3]=s.slug,e[4]=o,e[5]=m):m=e[5];const j=m;let g;e[6]!==j||e[7]!==l||e[8]!==c?(g=(n,r)=>{const u=new Set(c);r?u.add(n):u.delete(n),l.mutate({enabled_plugins:Array.from(u)},{onSuccess:j,onError:A})},e[6]=j,e[7]=l,e[8]=c,e[9]=g):g=e[9];const p=g,y=$,C=U;if(P.length===0){let n;return e[10]===Symbol.for("react.memo_cache_sentinel")?(n=i.jsx("p",{className:"text-sm text-muted-foreground",children:"No plugins available."}),e[10]=n):n=e[10],n}let a;e[11]!==p||e[12]!==l||e[13]!==c?(a=P.map(n=>{const r=y(n.id),u=C(n.id),h=c.includes(n.id);return i.jsx(w,{title:r?.label??n.id,description:u??void 0,icon:i.jsx("span",{className:"text-muted-foreground [&>svg]:size-4",children:r?.icon??i.jsx(R,{size:14})}),onClick:()=>!l.isPending&&p(n.id,!h),action:i.jsx(Q,{checked:h,onCheckedChange:v=>p(n.id,v),disabled:l.isPending,onClick:T})},n.id)}),e[11]=p,e[12]=l,e[13]=c,e[14]=a):a=e[14];let f;return e[15]!==a?(f=i.jsx(z,{children:i.jsx(F,{children:a})}),e[15]=a,e[16]=f):f=e[16],f}function T(e){return e.stopPropagation()}function U(e){return P.find(s=>s.id===e)?.description??null}function $(e){const t=K.find(o=>o.pluginId===e);if(t)return{label:t.label,icon:t.items[0]?.icon};const s=_.find(o=>o.pluginId===e);return s?{label:s.label,icon:s.icon}:null}function A(e){q.error("Failed to update plugin: "+(e instanceof Error?e.message:"Unknown error"))}function D(){const e=b.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=i.jsx(x,{children:i.jsx(x.Content,{children:i.jsx(x.Body,{children:i.jsxs(M,{children:[i.jsx(x.Title,{children:"Plugins"}),i.jsx(N,{})]})})})}),e[0]=t):t=e[0],t}function ee(){const e=b.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=i.jsx(D,{}),e[0]=t):t=e[0],t}export{ee as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bW as b,e as f,j as c,D as C,r as d,c as p,aY as j,bX as v,bY as h}from"./index-
|
|
1
|
+
import{bW as b,e as f,j as c,D as C,r as d,c as p,aY as j,bX as v,bY as h}from"./index-0enbmaSe.js";import{L as N}from"./label-BhPoqbH1.js";const E=b,g=d.createContext({}),M=t=>{const e=f.c(9);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];let o;e[2]!==s.name?(o={name:s.name},e[2]=s.name,e[3]=o):o=e[3];let n;e[4]!==s?(n=c.jsx(C,{...s}),e[4]=s,e[5]=n):n=e[5];let r;return e[6]!==o||e[7]!==n?(r=c.jsx(g.Provider,{value:o,children:n}),e[6]=o,e[7]=n,e[8]=r):r=e[8],r},x=()=>{const t=f.c(13),e=d.useContext(g),s=d.useContext($),{getFieldState:o}=v();let n;t[0]!==e.name?(n={name:e.name},t[0]=e.name,t[1]=n):n=t[1];const r=h(n);let a;t[2]!==e.name||t[3]!==r||t[4]!==o?(a=o(e.name,r),t[2]=e.name,t[3]=r,t[4]=o,t[5]=a):a=t[5];const l=a;if(!e)throw new Error("useFormField should be used within <FormField>");const{id:i}=s,m=`${i}-form-item`,F=`${i}-form-item-description`,I=`${i}-form-item-message`;let u;return t[6]!==e.name||t[7]!==l||t[8]!==i||t[9]!==m||t[10]!==F||t[11]!==I?(u={id:i,name:e.name,formItemId:m,formDescriptionId:F,formMessageId:I,...l},t[6]=e.name,t[7]=l,t[8]=i,t[9]=m,t[10]=F,t[11]=I,t[12]=u):u=t[12],u},$=d.createContext({});function w(t){const e=f.c(13);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);const n=d.useId();let r;e[3]!==n?(r={id:n},e[3]=n,e[4]=r):r=e[4];let a;e[5]!==s?(a=p("grid gap-2",s),e[5]=s,e[6]=a):a=e[6];let l;e[7]!==o||e[8]!==a?(l=c.jsx("div",{"data-slot":"form-item",className:a,...o}),e[7]=o,e[8]=a,e[9]=l):l=e[9];let i;return e[10]!==r||e[11]!==l?(i=c.jsx($.Provider,{value:r,children:l}),e[10]=r,e[11]=l,e[12]=i):i=e[12],i}function L(t){const e=f.c(10);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);const{error:n,formItemId:r}=x(),a=!!n;let l;e[3]!==s?(l=p("text-foreground data-[error=true]:text-destructive",s),e[3]=s,e[4]=l):l=e[4];let i;return e[5]!==r||e[6]!==o||e[7]!==a||e[8]!==l?(i=c.jsx(N,{"data-slot":"form-label","data-error":a,className:l,htmlFor:r,...o}),e[5]=r,e[6]=o,e[7]=a,e[8]=l,e[9]=i):i=e[9],i}function P(t){const e=f.c(7);let s;e[0]!==t?({...s}=t,e[0]=t,e[1]=s):s=e[1];const{error:o,formItemId:n,formDescriptionId:r,formMessageId:a}=x(),l=o?`${r} ${a}`:`${r}`,i=!!o;let m;return e[2]!==n||e[3]!==s||e[4]!==l||e[5]!==i?(m=c.jsx(j,{"data-slot":"form-control",id:n,"aria-describedby":l,"aria-invalid":i,...s}),e[2]=n,e[3]=s,e[4]=l,e[5]=i,e[6]=m):m=e[6],m}function y(t){const e=f.c(9);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);const{formDescriptionId:n}=x();let r;e[3]!==s?(r=p("text-muted-foreground text-sm",s),e[3]=s,e[4]=r):r=e[4];let a;return e[5]!==n||e[6]!==o||e[7]!==r?(a=c.jsx("p",{"data-slot":"form-description",id:n,className:r,...o}),e[5]=n,e[6]=o,e[7]=r,e[8]=a):a=e[8],a}function R(t){const e=f.c(10);let s,o;e[0]!==t?({className:s,...o}=t,e[0]=t,e[1]=s,e[2]=o):(s=e[1],o=e[2]);const{error:n,formMessageId:r}=x(),a=n?String(n?.message??""):o.children;if(!a)return null;let l;e[3]!==s?(l=p("text-destructive text-sm",s),e[3]=s,e[4]=l):l=e[4];let i;return e[5]!==a||e[6]!==r||e[7]!==o||e[8]!==l?(i=c.jsx("p",{"data-slot":"form-message",id:r,className:l,...o,children:a}),e[5]=a,e[6]=r,e[7]=o,e[8]=l,e[9]=i):i=e[9],i}export{M as F,E as a,w as b,L as c,P as d,y as e,R as f};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as ae,s as re,o as ce,z as fe,C as xe,a as de,t as W,x as M,K as Y,j as s,D as se,H as pe,J as X,e as F,r as K,B as H,c as he,M as je,R as ne}from"./index-C4DcQ8LW.js";import{P as U}from"./index-C1CY6-RI.js";import{u as ve}from"./use-org-auth-client-B2VsJjxT.js";import{u as be}from"./use-debounced-autosave-DwUIvZBw.js";import{A as ye}from"./avatar-CCEBXDhS.js";import{I as me}from"./input-Zc7XqLBz.js";import{S as Z,a as J,b as Q,c as Se,d as Ce}from"./settings-section-Dab3WzAF.js";import{D as Ne}from"./domain-settings-C-3L2-eL.js";import{u as _e,a as oe,D as De,c as ze,S as Ae,v as we,K as Pe,P as Oe,d as Ee,C as Ie,s as ke,b as Te,e as Fe}from"./collection-search-Cm33ynx1.js";import{W as te,i as Le,S as Re,u as $e}from"./constants--Dugzbiv.js";import{b as ue}from"./use-virtual-mcp-DA2HdrC3.js";import{b as Me,P as Ke,a as qe}from"./popover-fFiZRgP_.js";import{S as Be}from"./skeleton-jCfWKtEG.js";import{y as He}from"./agent-icon-C5r21-mU.js";import{s as Ve}from"./Plus-LaAbD5qL.js";import{a as ge}from"./Users03-CrFC9gy5.js";import{i as Ge}from"./X-EkEnxljM.js";import{I as ee}from"./integration-icon-dIK4SySX.js";import{a as Ue,d as Qe}from"./use-organization-settings-SrrzYdc9.js";import{c as We,b as Ye,d as Ze,f as Je,e as Xe,g as et,a as tt,A as st}from"./alert-dialog-CUlBW44D.js";import"./tooltip-CC8e8bYw.js";import"./User01-TUOjLrvV.js";import"./card-DQgc505G.js";import"./ArrowUpRight-Dnm-Dm1H.js";import"./unwrap-tool-result-BYXdCQMg.js";import"./switch-fkgGJ6Y_.js";import"./SearchMd-DLpvei6Y.js";import"./use-collections-CeVghh3K.js";import"./AlertCircle-9Ey0HjEK.js";import"./Tool01-CKIVHH97.js";import"./Archive-DPagM8Sv.js";import"./XClose-Bgl_mrN0.js";import"./RefreshCcw01-BS-aU6o_.js";import"./ArrowNarrowLeft-CX80utcZ.js";import"./XCircle-DX3ew0Vv.js";import"./ZapSquare-3WrsQC0a.js";import"./CheckCircle-DC6iqfFI.js";import"./Check-C0YCNcAk.js";import"./ChevronDown-Cwqb-1uD.js";import"./ChevronRight-CrWz1sFy.js";import"./ChevronUp-BMBmNR0B.js";import"./DotsVertical-B7yU948Y.js";import"./Container-Bk9UG2qc.js";import"./Star01-Dr3hv_f2.js";import"./Palette-BhAbwiYB.js";import"./LinkExternal01-DxfMOMNm.js";import"./Lock01-Cds15CcD.js";import"./Sun-Cjk_RdSq.js";import"./Play-DT05vsyX.js";import"./Settings02-DIJ_hqNi.js";import"./Shield01-B0gusvIt.js";import"./Trash01-CGR2s5lX.js";import"./Zap-nGrPPn6s.js";const nt=pe({name:X().min(1,"Name is required").max(255,"Name is too long"),slug:X().min(1,"Slug is required").max(50,"Slug is too long").regex(/^[a-z0-9-]+$/,"Slug must contain only lowercase letters, numbers, and hyphens"),logo:X().optional()});function ot(t){const e=F.c(13),{value:r,onChange:l,name:a,disabled:u}=t,n=K.useRef(null);let S;e[0]===Symbol.for("react.memo_cache_sentinel")?(S=()=>n.current?.click(),e[0]=S):S=e[0];const g=S;let C;e[1]!==l?(C=P=>{const p=P.target.files?.[0];if(!p)return;if(p.size>2097152){M.error("Image must be smaller than 2MB");return}const h=new FileReader;h.onerror=it,h.onloadend=()=>{h.result&&l(h.result),n.current&&(n.current.value="")},h.readAsDataURL(p)},e[1]=l,e[2]=C):C=e[2];const o=C;let i;e[3]!==u||e[4]!==o?(i=s.jsx("input",{ref:n,type:"file",accept:"image/*",onChange:o,className:"hidden",disabled:u}),e[3]=u,e[4]=o,e[5]=i):i=e[5];const d=r||void 0,m=a??"?";let f;e[6]!==d||e[7]!==m?(f=s.jsx(ye,{url:d,fallback:m,shape:"square",size:"base"}),e[6]=d,e[7]=m,e[8]=f):f=e[8];let x;return e[9]!==u||e[10]!==i||e[11]!==f?(x=s.jsxs("button",{type:"button",onClick:g,disabled:u,className:"rounded-lg overflow-hidden hover:ring-2 hover:ring-border transition-all disabled:opacity-50","aria-label":"Upload organization logo",children:[i,f]}),e[9]=u,e[10]=i,e[11]=f,e[12]=x):x=e[12],x}function it(){return M.error("Failed to read image")}function lt(){const t=ae(),{org:e}=re(),r=ve(),l=ce(),a=fe({resolver:xe(nt),values:{name:e.name??"",slug:e.slug??"",logo:e.logo??""}}),u=de({mutationFn:async o=>{const i={name:o.name,slug:o.slug};o.logo&&(i.logo=o.logo);const d=await r.organization.update({data:i});if(d?.error)throw new Error(d.error.message||"Failed to update organization");return d},onSuccess:(o,i)=>{W("organization_settings_updated",{organization_id:e.id,fields:Object.keys(i)}),l.invalidateQueries({queryKey:Y.organizations()}),l.invalidateQueries({queryKey:Y.activeOrganization(e.slug)}),M.success("Organization updated successfully"),o?.data?.slug&&o.data.slug!==e.slug&&t({to:"/$org/settings/general",params:{org:o.data.slug}})},onError:(o,i)=>{W("organization_settings_update_failed",{organization_id:e.id,fields:Object.keys(i),error:o instanceof Error?o.message:String(o)}),M.error(o instanceof Error?o.message:"Failed to update organization")}}),{schedule:n,flush:S}=be({save:async()=>{const o=a.control._formState.dirtyFields;if(Object.keys(o).length===0||!await a.trigger())return;const d=a.getValues(),m=a.control._defaultValues;a.reset(d,{keepValues:!0});try{await u.mutateAsync(d)}catch{a.reset(m,{keepValues:!0})}}}),g=a.formState.errors,C=typeof window<"u"?`${window.location.host}/`:"";return s.jsx(Z,{children:s.jsxs(J,{children:[s.jsx(Q,{title:"Logo",description:"Recommended size is 256x256px",action:s.jsx(ot,{value:a.watch("logo"),onChange:o=>{a.setValue("logo",o??"",{shouldDirty:!0}),S()},name:a.watch("name")})}),s.jsx(Q,{title:"Name",action:s.jsx(se,{control:a.control,name:"name",render:({field:o})=>s.jsx(me,{id:"org-name",...o,onChange:i=>{o.onChange(i),n()},onBlur:()=>{o.onBlur(),S()},placeholder:"Organization name",className:"w-[280px]"})})}),s.jsx(Q,{title:"URL",action:s.jsxs("div",{className:"flex items-center w-[280px] rounded-md border border-input bg-input/30 focus-within:ring-2 focus-within:ring-ring/50 overflow-hidden",children:[C&&s.jsx("span",{className:"pl-3 text-sm text-muted-foreground select-none",children:C}),s.jsx(se,{control:a.control,name:"slug",render:({field:o})=>s.jsx("input",{id:"org-slug",value:o.value??"",name:o.name,ref:o.ref,placeholder:"my-organization",className:"flex-1 min-w-0 bg-transparent px-2 py-1.5 text-sm text-foreground placeholder:text-muted-foreground/60 outline-none",onChange:i=>{const d=i.target.value.toLowerCase().replace(/[^a-z0-9-]/g,"");a.setValue("slug",d,{shouldDirty:!0,shouldTouch:!0,shouldValidate:!0}),n()},onBlur:()=>{o.onBlur(),S()}})})]})}),(g.name||g.slug||g.logo)&&s.jsxs("div",{className:"px-5 pb-3 flex flex-col gap-1",children:[g.name&&s.jsx("p",{className:"text-xs text-destructive",children:g.name.message}),g.slug&&s.jsx("p",{className:"text-xs text-destructive",children:g.slug.message}),g.logo&&s.jsx("p",{className:"text-xs text-destructive",children:g.logo.message})]})]})})}const ie=["site-editor","site-diagnostics","ai-image","ai-research"],le=8;function at(t,e,r){const l=e.find(u=>u.id===t);if(l)return{id:l.id,title:l.title,icon:l.icon,kind:"template"};const a=r.find(u=>u.id===t);return a?{id:t,title:a.title,icon:a.icon??null,kind:"custom"}:{id:t,title:t,icon:null,kind:"missing"}}function rt(t){const e=F.c(39),{agent:r,onRemove:l}=t;let a;e[0]!==r.id?(a={id:r.id},e[0]=r.id,e[1]=a):a=e[1];const{attributes:u,listeners:n,setNodeRef:S,transform:g,transition:C,isDragging:o}=Ee(a);let i;e[2]!==g?(i=Ie.Transform.toString(g),e[2]=g,e[3]=i):i=e[3];const d=o?.5:void 0,m=o?100:void 0;let f;e[4]!==i||e[5]!==d||e[6]!==m||e[7]!==C?(f={transform:i,transition:C,opacity:d,zIndex:m},e[4]=i,e[5]=d,e[6]=m,e[7]=C,e[8]=f):f=e[8];const x=f,P=o&&"shadow-lg";let p;e[9]!==P?(p=he("flex items-center gap-3 px-3 py-2 rounded-lg border border-border bg-background",P),e[9]=P,e[10]=p):p=e[10];const h=`Drag to reorder ${r.title}`;let z;e[11]===Symbol.for("react.memo_cache_sentinel")?(z=s.jsx(He,{size:14}),e[11]=z):z=e[11];let E;e[12]!==u||e[13]!==n||e[14]!==h?(E=s.jsx("button",{type:"button",...u,...n,className:"text-muted-foreground hover:text-foreground cursor-grab active:cursor-grabbing","aria-label":h,children:z}),e[12]=u,e[13]=n,e[14]=h,e[15]=E):E=e[15];let v;e[16]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx(ge,{size:14}),e[16]=v):v=e[16];let N;e[17]!==r.icon||e[18]!==r.title?(N=s.jsx(ee,{icon:r.icon,name:r.title,size:"xs",fallbackIcon:v}),e[17]=r.icon,e[18]=r.title,e[19]=N):N=e[19];let b;e[20]!==r.title?(b=s.jsx("span",{className:"text-sm text-foreground truncate",children:r.title}),e[20]=r.title,e[21]=b):b=e[21];const _=r.kind==="template"?"Template":r.kind==="custom"?"Custom agent":"Unavailable";let j;e[22]!==_?(j=s.jsx("span",{className:"text-xs text-muted-foreground",children:_}),e[22]=_,e[23]=j):j=e[23];let D;e[24]!==b||e[25]!==j?(D=s.jsxs("div",{className:"flex flex-col min-w-0 flex-1",children:[b,j]}),e[24]=b,e[25]=j,e[26]=D):D=e[26];const w=`Remove ${r.title}`;let A;e[27]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(Ge,{size:14}),e[27]=A):A=e[27];let y;e[28]!==l||e[29]!==w?(y=s.jsx("button",{type:"button",onClick:l,className:"text-muted-foreground hover:text-foreground p-1 rounded","aria-label":w,children:A}),e[28]=l,e[29]=w,e[30]=y):y=e[30];let O;return e[31]!==S||e[32]!==x||e[33]!==E||e[34]!==N||e[35]!==D||e[36]!==y||e[37]!==p?(O=s.jsxs("div",{ref:S,style:x,className:p,children:[E,N,D,y]}),e[31]=S,e[32]=x,e[33]=E,e[34]=N,e[35]=D,e[36]=y,e[37]=p,e[38]=O):O=e[38],O}function ct(t){const e=F.c(48),{selectedIds:r,onAdd:l}=t,[a,u]=K.useState(!1),[n,S]=K.useState(""),g=ue();let C;e[0]!==r?(C=new Set(r),e[0]=r,e[1]=C):C=e[1];const o=C;let i,d,m,f,x,P,p,h,z,E,v,N,b;if(e[2]!==g||e[3]!==l||e[4]!==a||e[5]!==n||e[6]!==o){const A=n.toLowerCase();f=te.filter(c=>!o.has(c.id)&&(!n||c.title.toLowerCase().includes(A)));let y;e[20]!==o?(y=c=>c.id!==null&&!Le(c.id)&&!o.has(c.id),e[20]=o,e[21]=y):y=e[21],m=g.filter(y).filter(c=>!n||c.title.toLowerCase().includes(A));let O;e[22]!==l?(O=c=>{l(c),u(!1),S("")},e[22]=l,e[23]=O):O=e[23];const I=O;d=Me,N=a,b=u,e[24]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx(Ke,{asChild:!0,children:s.jsxs(H,{type:"button",variant:"outline",size:"sm",children:[s.jsx(Ve,{size:14}),"Add agent"]})}),e[24]=x):x=e[24],i=qe,z="w-[320px] p-0 overflow-hidden",E="start",e[25]!==n?(v=s.jsx(Fe,{value:n,onChange:S,placeholder:"Search agents..."}),e[25]=n,e[26]=v):v=e[26],P="max-h-[320px] overflow-y-auto p-2 flex flex-col gap-3",p=f.length>0&&s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground px-1",children:"Templates"}),f.map(c=>s.jsxs("button",{type:"button",onClick:()=>I(c.id),className:"flex items-center gap-2 px-2 py-1.5 rounded-md hover:bg-accent text-left",children:[s.jsx(ee,{icon:c.icon,name:c.title,size:"xs"}),s.jsx("span",{className:"text-sm truncate",children:c.title})]},c.id))]}),h=m.length>0&&s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground px-1",children:"Custom agents"}),m.map(c=>s.jsxs("button",{type:"button",onClick:()=>I(c.id),className:"flex items-center gap-2 px-2 py-1.5 rounded-md hover:bg-accent text-left",children:[s.jsx(ee,{icon:c.icon,name:c.title,size:"xs",fallbackIcon:s.jsx(ge,{size:14})}),s.jsx("span",{className:"text-sm truncate",children:c.title})]},c.id))]}),e[2]=g,e[3]=l,e[4]=a,e[5]=n,e[6]=o,e[7]=i,e[8]=d,e[9]=m,e[10]=f,e[11]=x,e[12]=P,e[13]=p,e[14]=h,e[15]=z,e[16]=E,e[17]=v,e[18]=N,e[19]=b}else i=e[7],d=e[8],m=e[9],f=e[10],x=e[11],P=e[12],p=e[13],h=e[14],z=e[15],E=e[16],v=e[17],N=e[18],b=e[19];let _;e[27]!==m||e[28]!==f.length||e[29]!==n?(_=f.length===0&&m.length===0&&s.jsx("div",{className:"text-xs text-muted-foreground text-center py-6",children:n?"No agents found":"All agents are already added"}),e[27]=m,e[28]=f.length,e[29]=n,e[30]=_):_=e[30];let j;e[31]!==_||e[32]!==P||e[33]!==p||e[34]!==h?(j=s.jsxs("div",{className:P,children:[p,h,_]}),e[31]=_,e[32]=P,e[33]=p,e[34]=h,e[35]=j):j=e[35];let D;e[36]!==i||e[37]!==j||e[38]!==z||e[39]!==E||e[40]!==v?(D=s.jsxs(i,{className:z,align:E,children:[v,j]}),e[36]=i,e[37]=j,e[38]=z,e[39]=E,e[40]=v,e[41]=D):D=e[41];let w;return e[42]!==d||e[43]!==x||e[44]!==D||e[45]!==N||e[46]!==b?(w=s.jsxs(d,{open:N,onOpenChange:b,children:[x,D]}),e[42]=d,e[43]=x,e[44]=D,e[45]=N,e[46]=b,e[47]=w):w=e[47],w}function dt(){const t=F.c(61),e=Ue(),r=ue(),l=Qe();let a;t[0]!==e?.ids?(a=e?.ids??[...ie],t[0]=e?.ids,t[1]=a):a=t[1];const u=a,[n,S]=K.useState(u);let g;t[2]!==n||t[3]!==u?(g=n.length!==u.length||n.some((k,T)=>k!==u[T]),t[2]=n,t[3]=u,t[4]=g):g=t[4];const C=g;let o;t[5]===Symbol.for("react.memo_cache_sentinel")?(o={activationConstraint:{distance:5}},t[5]=o):o=t[5];let i;t[6]===Symbol.for("react.memo_cache_sentinel")?(i={coordinateGetter:ke},t[6]=i):i=t[6];const d=_e(oe(Oe,o),oe(Pe,i));let m;t[7]!==n?(m=k=>{const{active:T,over:R}=k;if(!R||T.id===R.id)return;const $=n.indexOf(T.id),G=n.indexOf(R.id);$===-1||G===-1||S(Te([...n],$,G))},t[7]=n,t[8]=m):m=t[8];const f=m;let x;t[9]!==n?(x=k=>{n.includes(k)||S([...n,k])},t[9]=n,t[10]=x):x=t[10];const P=x;let p;t[11]!==n?(p=k=>{S(n.filter(T=>T!==k))},t[11]=n,t[12]=p):p=t[12];const h=p;let z;t[13]===Symbol.for("react.memo_cache_sentinel")?(z=()=>{S([...ie])},t[13]=z):z=t[13];const E=z;let v;t[14]!==n||t[15]!==l?(v=()=>{l.mutate({ids:n},{onSuccess:()=>{W("default_home_agents_updated",{count:n.length,template_count:n.filter(ut).length}),M.success("Default home agents updated")},onError:mt})},t[14]=n,t[15]=l,t[16]=v):v=t[16];const N=v;let b,_,j,D,w,A,y;if(t[17]!==r||t[18]!==n||t[19]!==f||t[20]!==h||t[21]!==d||t[22]!==l.isPending){let k;t[30]!==r?(k=$=>at($,te,r),t[30]=r,t[31]=k):k=t[31];const T=n.map(k);j=Math.max(0,n.length-le),_=Z,w="Default home agents";let R;t[32]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx(je,{size:14}),t[32]=R):R=t[32],t[33]!==l.isPending?(A=s.jsxs(H,{type:"button",variant:"ghost",size:"sm",onClick:E,disabled:l.isPending,children:[R,"Reset defaults"]}),t[33]=l.isPending,t[34]=A):A=t[34],b=J,y="px-5 py-5 flex flex-col gap-3",D=T.length===0?s.jsx("div",{className:"rounded-lg border border-dashed border-border p-6 text-center text-xs text-muted-foreground",children:'No agents selected. The home view will only show "Create agent".'}):s.jsx(De,{sensors:d,collisionDetection:ze,onDragEnd:f,children:s.jsx(Ae,{items:n,strategy:we,children:s.jsx("div",{className:"flex flex-col gap-1.5",children:T.map(($,G)=>s.jsxs("div",{className:"flex flex-col gap-1.5",children:[G===le&&s.jsxs("div",{className:"flex items-center gap-2 px-1 py-1 text-xs text-muted-foreground",children:[s.jsx("div",{className:"flex-1 h-px bg-border"}),s.jsx("span",{children:"Below this line is hidden on the home view"}),s.jsx("div",{className:"flex-1 h-px bg-border"})]}),s.jsx(rt,{agent:$,onRemove:()=>h($.id)})]},$.id))})})}),t[17]=r,t[18]=n,t[19]=f,t[20]=h,t[21]=d,t[22]=l.isPending,t[23]=b,t[24]=_,t[25]=j,t[26]=D,t[27]=w,t[28]=A,t[29]=y}else b=t[23],_=t[24],j=t[25],D=t[26],w=t[27],A=t[28],y=t[29];let O;t[35]!==n||t[36]!==P?(O=s.jsx(ct,{selectedIds:n,onAdd:P}),t[35]=n,t[36]=P,t[37]=O):O=t[37];let I;t[38]!==j?(I=j>0&&s.jsxs("span",{className:"text-xs text-muted-foreground",children:[j," agent",j===1?"":"s"," won't fit on the home view"]}),t[38]=j,t[39]=I):I=t[39];let c;t[40]!==O||t[41]!==I?(c=s.jsxs("div",{className:"flex items-center justify-between",children:[O,I]}),t[40]=O,t[41]=I,t[42]=c):c=t[42];let L;t[43]!==D||t[44]!==c||t[45]!==y?(L=s.jsxs("div",{className:y,children:[D,c]}),t[43]=D,t[44]=c,t[45]=y,t[46]=L):L=t[46];let q;t[47]!==N||t[48]!==u||t[49]!==C||t[50]!==l.isPending?(q=C&&s.jsxs(Se,{children:[s.jsx(H,{type:"button",variant:"outline",onClick:()=>S(u),disabled:l.isPending,children:"Cancel"}),s.jsx(H,{type:"button",onClick:N,disabled:l.isPending,children:l.isPending?"Saving…":"Save"})]}),t[47]=N,t[48]=u,t[49]=C,t[50]=l.isPending,t[51]=q):q=t[51];let B;t[52]!==b||t[53]!==L||t[54]!==q?(B=s.jsxs(b,{children:[L,q]}),t[52]=b,t[53]=L,t[54]=q,t[55]=B):B=t[55];let V;return t[56]!==_||t[57]!==w||t[58]!==A||t[59]!==B?(V=s.jsx(_,{title:w,actions:A,children:B}),t[56]=_,t[57]=w,t[58]=A,t[59]=B,t[60]=V):V=t[60],V}function mt(t){M.error(t instanceof Error?t.message:"Failed to update default home agents")}function ut(t){return te.some(e=>e.id===t)}function gt(){const t=F.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Z,{title:"Default home agents",children:s.jsx(J,{children:s.jsx("div",{className:"px-5 py-5 flex flex-col gap-2",children:Array.from({length:4}).map(ft)})})}),t[0]=e):e=t[0],e}function ft(t,e){return s.jsx(Be,{className:"h-12 w-full rounded-lg"},e)}function xt(){const t=F.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(K.Suspense,{fallback:s.jsx(gt,{}),children:s.jsx(dt,{})}),t[0]=e):e=t[0],e}function pt(){const t=F.c(47),{org:e}=re(),r=ae(),l=ce(),[a,u]=K.useState(!1),[n,S]=K.useState("");let g;t[0]!==e.id||t[1]!==e.slug?(g={connectionId:Re,orgSlug:e.slug,orgId:e.id},t[0]=e.id,t[1]=e.slug,t[2]=g):g=t[2];const C=$e(g);let o;t[3]!==e.id||t[4]!==C?(o=async()=>{const I=await C.callTool({name:"ORGANIZATION_DELETE",arguments:{id:e.id}});if(I.isError){const c=I.content,L=Array.isArray(c)&&c[0]?.type==="text"&&typeof c[0].text=="string"?c[0].text:"Failed to delete organization";throw new Error(L)}},t[3]=e.id,t[4]=C,t[5]=o):o=t[5];let i;t[6]!==r||t[7]!==e.id||t[8]!==e.slug||t[9]!==l?(i=()=>{W("organization_deleted",{organization_id:e.id}),localStorage.getItem(ne.lastOrgSlug())===e.slug&&localStorage.removeItem(ne.lastOrgSlug()),l.removeQueries({queryKey:Y.activeOrganization(e.slug)}),l.invalidateQueries({queryKey:Y.organizations()}),M.success("Organization deleted"),r({to:"/"})},t[6]=r,t[7]=e.id,t[8]=e.slug,t[9]=l,t[10]=i):i=t[10];let d;t[11]!==o||t[12]!==i?(d={mutationFn:o,onSuccess:i,onError:ht},t[11]=o,t[12]=i,t[13]=d):d=t[13];const m=de(d);let f;t[14]===Symbol.for("react.memo_cache_sentinel")?(f=()=>u(!0),t[14]=f):f=t[14];let x;t[15]!==m.isPending?(x=s.jsx(Z,{title:"Danger Zone",description:"Irreversible actions that affect your entire organization.",children:s.jsx(J,{className:"border-destructive/40",children:s.jsx(Q,{title:"Delete organization",description:"Permanently delete this organization and all of its data. This action cannot be undone.",action:s.jsx(H,{variant:"destructive",size:"sm",onClick:f,disabled:m.isPending,children:"Delete"})})})}),t[15]=m.isPending,t[16]=x):x=t[16];let P;t[17]===Symbol.for("react.memo_cache_sentinel")?(P=I=>{u(I),I||S("")},t[17]=P):P=t[17];let p;t[18]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsx(We,{children:"Delete Organization?"}),t[18]=p):p=t[18];let h;t[19]!==e.name?(h=s.jsxs("p",{children:["This will permanently delete all data associated with"," ",s.jsx("span",{className:"font-medium text-foreground",children:e.name}),". This action cannot be undone."]}),t[19]=e.name,t[20]=h):h=t[20];let z;t[21]!==e.name?(z=s.jsxs("p",{className:"mt-3 mb-1.5",children:["Type"," ",s.jsx("span",{className:"font-medium text-foreground",children:e.name})," ","to confirm:"]}),t[21]=e.name,t[22]=z):z=t[22];let E;t[23]===Symbol.for("react.memo_cache_sentinel")?(E=I=>S(I.target.value),t[23]=E):E=t[23];let v;t[24]!==n||t[25]!==e.name?(v=s.jsx(me,{value:n,onChange:E,placeholder:e.name,autoFocus:!0}),t[24]=n,t[25]=e.name,t[26]=v):v=t[26];let N;t[27]!==v||t[28]!==h||t[29]!==z?(N=s.jsxs(Ye,{children:[p,s.jsx(Ze,{asChild:!0,children:s.jsxs("div",{children:[h,z,v]})})]}),t[27]=v,t[28]=h,t[29]=z,t[30]=N):N=t[30];let b;t[31]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(Je,{children:"Cancel"}),t[31]=b):b=t[31];let _;t[32]!==m?(_=()=>m.mutate(),t[32]=m,t[33]=_):_=t[33];const j=n!==e.name||m.isPending,D=m.isPending?"Deleting…":"Delete organization";let w;t[34]!==_||t[35]!==j||t[36]!==D?(w=s.jsxs(Xe,{children:[b,s.jsx(et,{onClick:_,disabled:j,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90 disabled:opacity-50",children:D})]}),t[34]=_,t[35]=j,t[36]=D,t[37]=w):w=t[37];let A;t[38]!==N||t[39]!==w?(A=s.jsxs(tt,{children:[N,w]}),t[38]=N,t[39]=w,t[40]=A):A=t[40];let y;t[41]!==a||t[42]!==A?(y=s.jsx(st,{open:a,onOpenChange:P,children:A}),t[41]=a,t[42]=A,t[43]=y):y=t[43];let O;return t[44]!==y||t[45]!==x?(O=s.jsxs(s.Fragment,{children:[x,y]}),t[44]=y,t[45]=x,t[46]=O):O=t[46],O}function ht(t){M.error(t instanceof Error?t.message:"Failed to delete organization")}function jt(){const t=F.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(U,{children:s.jsx(U.Content,{children:s.jsx(U.Body,{children:s.jsxs(Ce,{children:[s.jsx(U.Title,{children:"Organization"}),s.jsx(lt,{}),s.jsx(Ne,{}),s.jsx(xt,{}),s.jsx(pt,{})]})})})}),t[0]=e):e=t[0],e}function js(){const t=F.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(jt,{}),t[0]=e):e=t[0],e}export{js as default};
|
|
1
|
+
import{f as ae,s as re,o as ce,z as fe,C as xe,a as de,t as W,x as M,K as Y,j as s,D as se,H as pe,J as X,e as F,r as K,B as H,c as he,M as je,R as ne}from"./index-0enbmaSe.js";import{P as U}from"./index-Bna4Mzv7.js";import{u as ve}from"./use-org-auth-client-DM9zvqH-.js";import{u as be}from"./use-debounced-autosave-IAh8TU4o.js";import{A as ye}from"./avatar-BoueLWcb.js";import{I as me}from"./input-CZy7VBF-.js";import{S as Z,a as J,b as Q,c as Se,d as Ce}from"./settings-section-DLmrAiBm.js";import{D as Ne}from"./domain-settings-BXrvw6Lv.js";import{u as _e,a as oe,D as De,c as ze,S as Ae,v as we,K as Pe,P as Oe,d as Ee,C as Ie,s as ke,b as Te,e as Fe}from"./collection-search-BOMyE6Ld.js";import{W as te,i as Le,S as Re,u as $e}from"./constants--Z68frQS.js";import{b as ue}from"./use-virtual-mcp-Bl5HfgtI.js";import{b as Me,P as Ke,a as qe}from"./popover-g5bCjakL.js";import{S as Be}from"./skeleton-D3XIs5gC.js";import{y as He}from"./agent-icon-DUbGEO2S.js";import{s as Ve}from"./Plus-DlXyaJQM.js";import{a as ge}from"./Users03-DYLtKI27.js";import{i as Ge}from"./X-BkKDRlJI.js";import{I as ee}from"./integration-icon-Cgu3nEbl.js";import{a as Ue,d as Qe}from"./use-organization-settings-CZnRZbph.js";import{c as We,b as Ye,d as Ze,f as Je,e as Xe,g as et,a as tt,A as st}from"./alert-dialog-2Jj762BJ.js";import"./tooltip-DZ4hI4gi.js";import"./User01-DJ7t0J9b.js";import"./card-1EoqQ-Q7.js";import"./ArrowUpRight-wDGVfxe4.js";import"./unwrap-tool-result-BYXdCQMg.js";import"./switch-ChHlr-0p.js";import"./SearchMd-15kzRVQe.js";import"./use-collections-BbQAdI3o.js";import"./AlertCircle-CBFejk6X.js";import"./Tool01-D48iIlf1.js";import"./Archive-iAwIFcLN.js";import"./XClose-Bx_xQQD_.js";import"./RefreshCcw01-BsycvfGb.js";import"./ArrowNarrowLeft-C0NWe8i5.js";import"./XCircle-sedM5Yzu.js";import"./ZapSquare-DlRSLgAv.js";import"./CheckCircle-B7pbvHXn.js";import"./Check-BzVO1AiZ.js";import"./ChevronDown-Deq9bkeU.js";import"./ChevronRight-De9CjTSZ.js";import"./ChevronUp-B22gTkPS.js";import"./DotsVertical-B0gKWs5D.js";import"./Container-10kbY0mV.js";import"./Star01-CJoi6RDa.js";import"./Palette-B7UA48pi.js";import"./LinkExternal01-DkQ5Dk0s.js";import"./Lock01-CHNFEFTO.js";import"./Sun-CGoBYMaF.js";import"./Play-BunaO9my.js";import"./Settings02-DVi1PM0X.js";import"./Shield01-B70wMBqd.js";import"./Trash01-r5gnirq_.js";import"./Zap-Cf_cpNNU.js";const nt=pe({name:X().min(1,"Name is required").max(255,"Name is too long"),slug:X().min(1,"Slug is required").max(50,"Slug is too long").regex(/^[a-z0-9-]+$/,"Slug must contain only lowercase letters, numbers, and hyphens"),logo:X().optional()});function ot(t){const e=F.c(13),{value:r,onChange:l,name:a,disabled:u}=t,n=K.useRef(null);let S;e[0]===Symbol.for("react.memo_cache_sentinel")?(S=()=>n.current?.click(),e[0]=S):S=e[0];const g=S;let C;e[1]!==l?(C=P=>{const p=P.target.files?.[0];if(!p)return;if(p.size>2097152){M.error("Image must be smaller than 2MB");return}const h=new FileReader;h.onerror=it,h.onloadend=()=>{h.result&&l(h.result),n.current&&(n.current.value="")},h.readAsDataURL(p)},e[1]=l,e[2]=C):C=e[2];const o=C;let i;e[3]!==u||e[4]!==o?(i=s.jsx("input",{ref:n,type:"file",accept:"image/*",onChange:o,className:"hidden",disabled:u}),e[3]=u,e[4]=o,e[5]=i):i=e[5];const d=r||void 0,m=a??"?";let f;e[6]!==d||e[7]!==m?(f=s.jsx(ye,{url:d,fallback:m,shape:"square",size:"base"}),e[6]=d,e[7]=m,e[8]=f):f=e[8];let x;return e[9]!==u||e[10]!==i||e[11]!==f?(x=s.jsxs("button",{type:"button",onClick:g,disabled:u,className:"rounded-lg overflow-hidden hover:ring-2 hover:ring-border transition-all disabled:opacity-50","aria-label":"Upload organization logo",children:[i,f]}),e[9]=u,e[10]=i,e[11]=f,e[12]=x):x=e[12],x}function it(){return M.error("Failed to read image")}function lt(){const t=ae(),{org:e}=re(),r=ve(),l=ce(),a=fe({resolver:xe(nt),values:{name:e.name??"",slug:e.slug??"",logo:e.logo??""}}),u=de({mutationFn:async o=>{const i={name:o.name,slug:o.slug};o.logo&&(i.logo=o.logo);const d=await r.organization.update({data:i});if(d?.error)throw new Error(d.error.message||"Failed to update organization");return d},onSuccess:(o,i)=>{W("organization_settings_updated",{organization_id:e.id,fields:Object.keys(i)}),l.invalidateQueries({queryKey:Y.organizations()}),l.invalidateQueries({queryKey:Y.activeOrganization(e.slug)}),M.success("Organization updated successfully"),o?.data?.slug&&o.data.slug!==e.slug&&t({to:"/$org/settings/general",params:{org:o.data.slug}})},onError:(o,i)=>{W("organization_settings_update_failed",{organization_id:e.id,fields:Object.keys(i),error:o instanceof Error?o.message:String(o)}),M.error(o instanceof Error?o.message:"Failed to update organization")}}),{schedule:n,flush:S}=be({save:async()=>{const o=a.control._formState.dirtyFields;if(Object.keys(o).length===0||!await a.trigger())return;const d=a.getValues(),m=a.control._defaultValues;a.reset(d,{keepValues:!0});try{await u.mutateAsync(d)}catch{a.reset(m,{keepValues:!0})}}}),g=a.formState.errors,C=typeof window<"u"?`${window.location.host}/`:"";return s.jsx(Z,{children:s.jsxs(J,{children:[s.jsx(Q,{title:"Logo",description:"Recommended size is 256x256px",action:s.jsx(ot,{value:a.watch("logo"),onChange:o=>{a.setValue("logo",o??"",{shouldDirty:!0}),S()},name:a.watch("name")})}),s.jsx(Q,{title:"Name",action:s.jsx(se,{control:a.control,name:"name",render:({field:o})=>s.jsx(me,{id:"org-name",...o,onChange:i=>{o.onChange(i),n()},onBlur:()=>{o.onBlur(),S()},placeholder:"Organization name",className:"w-[280px]"})})}),s.jsx(Q,{title:"URL",action:s.jsxs("div",{className:"flex items-center w-[280px] rounded-md border border-input bg-input/30 focus-within:ring-2 focus-within:ring-ring/50 overflow-hidden",children:[C&&s.jsx("span",{className:"pl-3 text-sm text-muted-foreground select-none",children:C}),s.jsx(se,{control:a.control,name:"slug",render:({field:o})=>s.jsx("input",{id:"org-slug",value:o.value??"",name:o.name,ref:o.ref,placeholder:"my-organization",className:"flex-1 min-w-0 bg-transparent px-2 py-1.5 text-sm text-foreground placeholder:text-muted-foreground/60 outline-none",onChange:i=>{const d=i.target.value.toLowerCase().replace(/[^a-z0-9-]/g,"");a.setValue("slug",d,{shouldDirty:!0,shouldTouch:!0,shouldValidate:!0}),n()},onBlur:()=>{o.onBlur(),S()}})})]})}),(g.name||g.slug||g.logo)&&s.jsxs("div",{className:"px-5 pb-3 flex flex-col gap-1",children:[g.name&&s.jsx("p",{className:"text-xs text-destructive",children:g.name.message}),g.slug&&s.jsx("p",{className:"text-xs text-destructive",children:g.slug.message}),g.logo&&s.jsx("p",{className:"text-xs text-destructive",children:g.logo.message})]})]})})}const ie=["site-editor","site-diagnostics","ai-image","ai-research"],le=8;function at(t,e,r){const l=e.find(u=>u.id===t);if(l)return{id:l.id,title:l.title,icon:l.icon,kind:"template"};const a=r.find(u=>u.id===t);return a?{id:t,title:a.title,icon:a.icon??null,kind:"custom"}:{id:t,title:t,icon:null,kind:"missing"}}function rt(t){const e=F.c(39),{agent:r,onRemove:l}=t;let a;e[0]!==r.id?(a={id:r.id},e[0]=r.id,e[1]=a):a=e[1];const{attributes:u,listeners:n,setNodeRef:S,transform:g,transition:C,isDragging:o}=Ee(a);let i;e[2]!==g?(i=Ie.Transform.toString(g),e[2]=g,e[3]=i):i=e[3];const d=o?.5:void 0,m=o?100:void 0;let f;e[4]!==i||e[5]!==d||e[6]!==m||e[7]!==C?(f={transform:i,transition:C,opacity:d,zIndex:m},e[4]=i,e[5]=d,e[6]=m,e[7]=C,e[8]=f):f=e[8];const x=f,P=o&&"shadow-lg";let p;e[9]!==P?(p=he("flex items-center gap-3 px-3 py-2 rounded-lg border border-border bg-background",P),e[9]=P,e[10]=p):p=e[10];const h=`Drag to reorder ${r.title}`;let z;e[11]===Symbol.for("react.memo_cache_sentinel")?(z=s.jsx(He,{size:14}),e[11]=z):z=e[11];let E;e[12]!==u||e[13]!==n||e[14]!==h?(E=s.jsx("button",{type:"button",...u,...n,className:"text-muted-foreground hover:text-foreground cursor-grab active:cursor-grabbing","aria-label":h,children:z}),e[12]=u,e[13]=n,e[14]=h,e[15]=E):E=e[15];let v;e[16]===Symbol.for("react.memo_cache_sentinel")?(v=s.jsx(ge,{size:14}),e[16]=v):v=e[16];let N;e[17]!==r.icon||e[18]!==r.title?(N=s.jsx(ee,{icon:r.icon,name:r.title,size:"xs",fallbackIcon:v}),e[17]=r.icon,e[18]=r.title,e[19]=N):N=e[19];let b;e[20]!==r.title?(b=s.jsx("span",{className:"text-sm text-foreground truncate",children:r.title}),e[20]=r.title,e[21]=b):b=e[21];const _=r.kind==="template"?"Template":r.kind==="custom"?"Custom agent":"Unavailable";let j;e[22]!==_?(j=s.jsx("span",{className:"text-xs text-muted-foreground",children:_}),e[22]=_,e[23]=j):j=e[23];let D;e[24]!==b||e[25]!==j?(D=s.jsxs("div",{className:"flex flex-col min-w-0 flex-1",children:[b,j]}),e[24]=b,e[25]=j,e[26]=D):D=e[26];const w=`Remove ${r.title}`;let A;e[27]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(Ge,{size:14}),e[27]=A):A=e[27];let y;e[28]!==l||e[29]!==w?(y=s.jsx("button",{type:"button",onClick:l,className:"text-muted-foreground hover:text-foreground p-1 rounded","aria-label":w,children:A}),e[28]=l,e[29]=w,e[30]=y):y=e[30];let O;return e[31]!==S||e[32]!==x||e[33]!==E||e[34]!==N||e[35]!==D||e[36]!==y||e[37]!==p?(O=s.jsxs("div",{ref:S,style:x,className:p,children:[E,N,D,y]}),e[31]=S,e[32]=x,e[33]=E,e[34]=N,e[35]=D,e[36]=y,e[37]=p,e[38]=O):O=e[38],O}function ct(t){const e=F.c(48),{selectedIds:r,onAdd:l}=t,[a,u]=K.useState(!1),[n,S]=K.useState(""),g=ue();let C;e[0]!==r?(C=new Set(r),e[0]=r,e[1]=C):C=e[1];const o=C;let i,d,m,f,x,P,p,h,z,E,v,N,b;if(e[2]!==g||e[3]!==l||e[4]!==a||e[5]!==n||e[6]!==o){const A=n.toLowerCase();f=te.filter(c=>!o.has(c.id)&&(!n||c.title.toLowerCase().includes(A)));let y;e[20]!==o?(y=c=>c.id!==null&&!Le(c.id)&&!o.has(c.id),e[20]=o,e[21]=y):y=e[21],m=g.filter(y).filter(c=>!n||c.title.toLowerCase().includes(A));let O;e[22]!==l?(O=c=>{l(c),u(!1),S("")},e[22]=l,e[23]=O):O=e[23];const I=O;d=Me,N=a,b=u,e[24]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx(Ke,{asChild:!0,children:s.jsxs(H,{type:"button",variant:"outline",size:"sm",children:[s.jsx(Ve,{size:14}),"Add agent"]})}),e[24]=x):x=e[24],i=qe,z="w-[320px] p-0 overflow-hidden",E="start",e[25]!==n?(v=s.jsx(Fe,{value:n,onChange:S,placeholder:"Search agents..."}),e[25]=n,e[26]=v):v=e[26],P="max-h-[320px] overflow-y-auto p-2 flex flex-col gap-3",p=f.length>0&&s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground px-1",children:"Templates"}),f.map(c=>s.jsxs("button",{type:"button",onClick:()=>I(c.id),className:"flex items-center gap-2 px-2 py-1.5 rounded-md hover:bg-accent text-left",children:[s.jsx(ee,{icon:c.icon,name:c.title,size:"xs"}),s.jsx("span",{className:"text-sm truncate",children:c.title})]},c.id))]}),h=m.length>0&&s.jsxs("div",{className:"flex flex-col gap-1",children:[s.jsx("span",{className:"text-xs font-medium text-muted-foreground px-1",children:"Custom agents"}),m.map(c=>s.jsxs("button",{type:"button",onClick:()=>I(c.id),className:"flex items-center gap-2 px-2 py-1.5 rounded-md hover:bg-accent text-left",children:[s.jsx(ee,{icon:c.icon,name:c.title,size:"xs",fallbackIcon:s.jsx(ge,{size:14})}),s.jsx("span",{className:"text-sm truncate",children:c.title})]},c.id))]}),e[2]=g,e[3]=l,e[4]=a,e[5]=n,e[6]=o,e[7]=i,e[8]=d,e[9]=m,e[10]=f,e[11]=x,e[12]=P,e[13]=p,e[14]=h,e[15]=z,e[16]=E,e[17]=v,e[18]=N,e[19]=b}else i=e[7],d=e[8],m=e[9],f=e[10],x=e[11],P=e[12],p=e[13],h=e[14],z=e[15],E=e[16],v=e[17],N=e[18],b=e[19];let _;e[27]!==m||e[28]!==f.length||e[29]!==n?(_=f.length===0&&m.length===0&&s.jsx("div",{className:"text-xs text-muted-foreground text-center py-6",children:n?"No agents found":"All agents are already added"}),e[27]=m,e[28]=f.length,e[29]=n,e[30]=_):_=e[30];let j;e[31]!==_||e[32]!==P||e[33]!==p||e[34]!==h?(j=s.jsxs("div",{className:P,children:[p,h,_]}),e[31]=_,e[32]=P,e[33]=p,e[34]=h,e[35]=j):j=e[35];let D;e[36]!==i||e[37]!==j||e[38]!==z||e[39]!==E||e[40]!==v?(D=s.jsxs(i,{className:z,align:E,children:[v,j]}),e[36]=i,e[37]=j,e[38]=z,e[39]=E,e[40]=v,e[41]=D):D=e[41];let w;return e[42]!==d||e[43]!==x||e[44]!==D||e[45]!==N||e[46]!==b?(w=s.jsxs(d,{open:N,onOpenChange:b,children:[x,D]}),e[42]=d,e[43]=x,e[44]=D,e[45]=N,e[46]=b,e[47]=w):w=e[47],w}function dt(){const t=F.c(61),e=Ue(),r=ue(),l=Qe();let a;t[0]!==e?.ids?(a=e?.ids??[...ie],t[0]=e?.ids,t[1]=a):a=t[1];const u=a,[n,S]=K.useState(u);let g;t[2]!==n||t[3]!==u?(g=n.length!==u.length||n.some((k,T)=>k!==u[T]),t[2]=n,t[3]=u,t[4]=g):g=t[4];const C=g;let o;t[5]===Symbol.for("react.memo_cache_sentinel")?(o={activationConstraint:{distance:5}},t[5]=o):o=t[5];let i;t[6]===Symbol.for("react.memo_cache_sentinel")?(i={coordinateGetter:ke},t[6]=i):i=t[6];const d=_e(oe(Oe,o),oe(Pe,i));let m;t[7]!==n?(m=k=>{const{active:T,over:R}=k;if(!R||T.id===R.id)return;const $=n.indexOf(T.id),G=n.indexOf(R.id);$===-1||G===-1||S(Te([...n],$,G))},t[7]=n,t[8]=m):m=t[8];const f=m;let x;t[9]!==n?(x=k=>{n.includes(k)||S([...n,k])},t[9]=n,t[10]=x):x=t[10];const P=x;let p;t[11]!==n?(p=k=>{S(n.filter(T=>T!==k))},t[11]=n,t[12]=p):p=t[12];const h=p;let z;t[13]===Symbol.for("react.memo_cache_sentinel")?(z=()=>{S([...ie])},t[13]=z):z=t[13];const E=z;let v;t[14]!==n||t[15]!==l?(v=()=>{l.mutate({ids:n},{onSuccess:()=>{W("default_home_agents_updated",{count:n.length,template_count:n.filter(ut).length}),M.success("Default home agents updated")},onError:mt})},t[14]=n,t[15]=l,t[16]=v):v=t[16];const N=v;let b,_,j,D,w,A,y;if(t[17]!==r||t[18]!==n||t[19]!==f||t[20]!==h||t[21]!==d||t[22]!==l.isPending){let k;t[30]!==r?(k=$=>at($,te,r),t[30]=r,t[31]=k):k=t[31];const T=n.map(k);j=Math.max(0,n.length-le),_=Z,w="Default home agents";let R;t[32]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx(je,{size:14}),t[32]=R):R=t[32],t[33]!==l.isPending?(A=s.jsxs(H,{type:"button",variant:"ghost",size:"sm",onClick:E,disabled:l.isPending,children:[R,"Reset defaults"]}),t[33]=l.isPending,t[34]=A):A=t[34],b=J,y="px-5 py-5 flex flex-col gap-3",D=T.length===0?s.jsx("div",{className:"rounded-lg border border-dashed border-border p-6 text-center text-xs text-muted-foreground",children:'No agents selected. The home view will only show "Create agent".'}):s.jsx(De,{sensors:d,collisionDetection:ze,onDragEnd:f,children:s.jsx(Ae,{items:n,strategy:we,children:s.jsx("div",{className:"flex flex-col gap-1.5",children:T.map(($,G)=>s.jsxs("div",{className:"flex flex-col gap-1.5",children:[G===le&&s.jsxs("div",{className:"flex items-center gap-2 px-1 py-1 text-xs text-muted-foreground",children:[s.jsx("div",{className:"flex-1 h-px bg-border"}),s.jsx("span",{children:"Below this line is hidden on the home view"}),s.jsx("div",{className:"flex-1 h-px bg-border"})]}),s.jsx(rt,{agent:$,onRemove:()=>h($.id)})]},$.id))})})}),t[17]=r,t[18]=n,t[19]=f,t[20]=h,t[21]=d,t[22]=l.isPending,t[23]=b,t[24]=_,t[25]=j,t[26]=D,t[27]=w,t[28]=A,t[29]=y}else b=t[23],_=t[24],j=t[25],D=t[26],w=t[27],A=t[28],y=t[29];let O;t[35]!==n||t[36]!==P?(O=s.jsx(ct,{selectedIds:n,onAdd:P}),t[35]=n,t[36]=P,t[37]=O):O=t[37];let I;t[38]!==j?(I=j>0&&s.jsxs("span",{className:"text-xs text-muted-foreground",children:[j," agent",j===1?"":"s"," won't fit on the home view"]}),t[38]=j,t[39]=I):I=t[39];let c;t[40]!==O||t[41]!==I?(c=s.jsxs("div",{className:"flex items-center justify-between",children:[O,I]}),t[40]=O,t[41]=I,t[42]=c):c=t[42];let L;t[43]!==D||t[44]!==c||t[45]!==y?(L=s.jsxs("div",{className:y,children:[D,c]}),t[43]=D,t[44]=c,t[45]=y,t[46]=L):L=t[46];let q;t[47]!==N||t[48]!==u||t[49]!==C||t[50]!==l.isPending?(q=C&&s.jsxs(Se,{children:[s.jsx(H,{type:"button",variant:"outline",onClick:()=>S(u),disabled:l.isPending,children:"Cancel"}),s.jsx(H,{type:"button",onClick:N,disabled:l.isPending,children:l.isPending?"Saving…":"Save"})]}),t[47]=N,t[48]=u,t[49]=C,t[50]=l.isPending,t[51]=q):q=t[51];let B;t[52]!==b||t[53]!==L||t[54]!==q?(B=s.jsxs(b,{children:[L,q]}),t[52]=b,t[53]=L,t[54]=q,t[55]=B):B=t[55];let V;return t[56]!==_||t[57]!==w||t[58]!==A||t[59]!==B?(V=s.jsx(_,{title:w,actions:A,children:B}),t[56]=_,t[57]=w,t[58]=A,t[59]=B,t[60]=V):V=t[60],V}function mt(t){M.error(t instanceof Error?t.message:"Failed to update default home agents")}function ut(t){return te.some(e=>e.id===t)}function gt(){const t=F.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(Z,{title:"Default home agents",children:s.jsx(J,{children:s.jsx("div",{className:"px-5 py-5 flex flex-col gap-2",children:Array.from({length:4}).map(ft)})})}),t[0]=e):e=t[0],e}function ft(t,e){return s.jsx(Be,{className:"h-12 w-full rounded-lg"},e)}function xt(){const t=F.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(K.Suspense,{fallback:s.jsx(gt,{}),children:s.jsx(dt,{})}),t[0]=e):e=t[0],e}function pt(){const t=F.c(47),{org:e}=re(),r=ae(),l=ce(),[a,u]=K.useState(!1),[n,S]=K.useState("");let g;t[0]!==e.id||t[1]!==e.slug?(g={connectionId:Re,orgSlug:e.slug,orgId:e.id},t[0]=e.id,t[1]=e.slug,t[2]=g):g=t[2];const C=$e(g);let o;t[3]!==e.id||t[4]!==C?(o=async()=>{const I=await C.callTool({name:"ORGANIZATION_DELETE",arguments:{id:e.id}});if(I.isError){const c=I.content,L=Array.isArray(c)&&c[0]?.type==="text"&&typeof c[0].text=="string"?c[0].text:"Failed to delete organization";throw new Error(L)}},t[3]=e.id,t[4]=C,t[5]=o):o=t[5];let i;t[6]!==r||t[7]!==e.id||t[8]!==e.slug||t[9]!==l?(i=()=>{W("organization_deleted",{organization_id:e.id}),localStorage.getItem(ne.lastOrgSlug())===e.slug&&localStorage.removeItem(ne.lastOrgSlug()),l.removeQueries({queryKey:Y.activeOrganization(e.slug)}),l.invalidateQueries({queryKey:Y.organizations()}),M.success("Organization deleted"),r({to:"/"})},t[6]=r,t[7]=e.id,t[8]=e.slug,t[9]=l,t[10]=i):i=t[10];let d;t[11]!==o||t[12]!==i?(d={mutationFn:o,onSuccess:i,onError:ht},t[11]=o,t[12]=i,t[13]=d):d=t[13];const m=de(d);let f;t[14]===Symbol.for("react.memo_cache_sentinel")?(f=()=>u(!0),t[14]=f):f=t[14];let x;t[15]!==m.isPending?(x=s.jsx(Z,{title:"Danger Zone",description:"Irreversible actions that affect your entire organization.",children:s.jsx(J,{className:"border-destructive/40",children:s.jsx(Q,{title:"Delete organization",description:"Permanently delete this organization and all of its data. This action cannot be undone.",action:s.jsx(H,{variant:"destructive",size:"sm",onClick:f,disabled:m.isPending,children:"Delete"})})})}),t[15]=m.isPending,t[16]=x):x=t[16];let P;t[17]===Symbol.for("react.memo_cache_sentinel")?(P=I=>{u(I),I||S("")},t[17]=P):P=t[17];let p;t[18]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsx(We,{children:"Delete Organization?"}),t[18]=p):p=t[18];let h;t[19]!==e.name?(h=s.jsxs("p",{children:["This will permanently delete all data associated with"," ",s.jsx("span",{className:"font-medium text-foreground",children:e.name}),". This action cannot be undone."]}),t[19]=e.name,t[20]=h):h=t[20];let z;t[21]!==e.name?(z=s.jsxs("p",{className:"mt-3 mb-1.5",children:["Type"," ",s.jsx("span",{className:"font-medium text-foreground",children:e.name})," ","to confirm:"]}),t[21]=e.name,t[22]=z):z=t[22];let E;t[23]===Symbol.for("react.memo_cache_sentinel")?(E=I=>S(I.target.value),t[23]=E):E=t[23];let v;t[24]!==n||t[25]!==e.name?(v=s.jsx(me,{value:n,onChange:E,placeholder:e.name,autoFocus:!0}),t[24]=n,t[25]=e.name,t[26]=v):v=t[26];let N;t[27]!==v||t[28]!==h||t[29]!==z?(N=s.jsxs(Ye,{children:[p,s.jsx(Ze,{asChild:!0,children:s.jsxs("div",{children:[h,z,v]})})]}),t[27]=v,t[28]=h,t[29]=z,t[30]=N):N=t[30];let b;t[31]===Symbol.for("react.memo_cache_sentinel")?(b=s.jsx(Je,{children:"Cancel"}),t[31]=b):b=t[31];let _;t[32]!==m?(_=()=>m.mutate(),t[32]=m,t[33]=_):_=t[33];const j=n!==e.name||m.isPending,D=m.isPending?"Deleting…":"Delete organization";let w;t[34]!==_||t[35]!==j||t[36]!==D?(w=s.jsxs(Xe,{children:[b,s.jsx(et,{onClick:_,disabled:j,className:"bg-destructive text-destructive-foreground hover:bg-destructive/90 disabled:opacity-50",children:D})]}),t[34]=_,t[35]=j,t[36]=D,t[37]=w):w=t[37];let A;t[38]!==N||t[39]!==w?(A=s.jsxs(tt,{children:[N,w]}),t[38]=N,t[39]=w,t[40]=A):A=t[40];let y;t[41]!==a||t[42]!==A?(y=s.jsx(st,{open:a,onOpenChange:P,children:A}),t[41]=a,t[42]=A,t[43]=y):y=t[43];let O;return t[44]!==y||t[45]!==x?(O=s.jsxs(s.Fragment,{children:[x,y]}),t[44]=y,t[45]=x,t[46]=O):O=t[46],O}function ht(t){M.error(t instanceof Error?t.message:"Failed to delete organization")}function jt(){const t=F.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(U,{children:s.jsx(U.Content,{children:s.jsx(U.Body,{children:s.jsxs(Ce,{children:[s.jsx(U.Title,{children:"Organization"}),s.jsx(lt,{}),s.jsx(Ne,{}),s.jsx(xt,{}),s.jsx(pt,{})]})})})}),t[0]=e):e=t[0],e}function js(){const t=F.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(jt,{}),t[0]=e):e=t[0],e}export{js as default};
|
|
@@ -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-BaIUgM8O.js","assets/Check-BzVO1AiZ.js","assets/ChevronDown-Deq9bkeU.js","assets/login-BgB-8JX_.js","assets/input-CZy7VBF-.js","assets/reset-password-HK92arRg.js","assets/shell-layout-R4iIIify.js","assets/dialog-2qod6XLb.js","assets/X-BkKDRlJI.js","assets/required-auth-layout-CbwdpaRZ.js","assets/use-tasks-9cquzKq3.js","assets/use-collections-BbQAdI3o.js","assets/constants--Z68frQS.js","assets/use-organization-settings-CZnRZbph.js","assets/use-org-sso-DFTMWioi.js","assets/Lock01-CHNFEFTO.js","assets/Archive-iAwIFcLN.js","assets/onboarding-CAft2_BY.js","assets/label-BhPoqbH1.js","assets/Users03-DYLtKI27.js","assets/CheckCircle-B7pbvHXn.js","assets/Palette-B7UA48pi.js","assets/index-BNtQbO2i.js","assets/index-Bna4Mzv7.js","assets/tooltip-DZ4hI4gi.js","assets/ZapSquare-DlRSLgAv.js","assets/index-DmW2ChV3.js","assets/agent-icon-DUbGEO2S.js","assets/AlertCircle-CBFejk6X.js","assets/Tool01-D48iIlf1.js","assets/XClose-Bx_xQQD_.js","assets/RefreshCcw01-BsycvfGb.js","assets/ArrowNarrowLeft-C0NWe8i5.js","assets/XCircle-sedM5Yzu.js","assets/ArrowUpRight-wDGVfxe4.js","assets/ChevronRight-De9CjTSZ.js","assets/ChevronUp-B22gTkPS.js","assets/DotsVertical-B0gKWs5D.js","assets/Container-10kbY0mV.js","assets/Star01-CJoi6RDa.js","assets/SearchMd-15kzRVQe.js","assets/LinkExternal01-DkQ5Dk0s.js","assets/Sun-CGoBYMaF.js","assets/Play-BunaO9my.js","assets/Plus-DlXyaJQM.js","assets/Settings02-DVi1PM0X.js","assets/Shield01-B70wMBqd.js","assets/Trash01-r5gnirq_.js","assets/User01-DJ7t0J9b.js","assets/Zap-Cf_cpNNU.js","assets/pair-DyP8v5ZE.js","assets/index-BVirFM6V.js","assets/use-copy-Df3K3sfk.js","assets/differenceInSeconds-NQ4PDo0z.js","assets/content-blocks-o63cs2vh.js","assets/types-D599MtjY.js","assets/chat-context-CqLR71Tu.js","assets/use-virtual-mcp-Bl5HfgtI.js","assets/use-ai-providers-DSutNjVp.js","assets/use-decopilot-events-CxAD33F2.js","assets/create-sse-subscription-CxkOgzKf.js","assets/integration-icon-Cgu3nEbl.js","assets/skeleton-D3XIs5gC.js","assets/popover-g5bCjakL.js","assets/drawer-DSH3rjuX.js","assets/avatar-BoueLWcb.js","assets/alert-dialog-2Jj762BJ.js","assets/form-BxsxXSuZ.js","assets/index-D9p0G3vk.js","assets/use-mcp-tools-kqffQmIa.js","assets/index-sxBFqhbB.js","assets/switch-ChHlr-0p.js","assets/use-connection-CrEyI3P_.js","assets/lean-canvas-recruit-modal-Mo-uvZiE.js","assets/use-navigate-to-agent-DkjTuG5H.js","assets/collection-search-B-8Jnp5p.js","assets/checkbox-CL4jg0mR.js","assets/extract-connection-data-BTMDGqDD.js","assets/constants-BY3slQ5k.js","assets/collections-BpcdhWS9.js","assets/tabs-C3Y9bmk3.js","assets/select-DNBVly7-.js","assets/toggle-group-DYAaGRJB.js","assets/select-model-DeUWMCqm.js","assets/ai-providers-logos-DD3qZ33J.js","assets/use-debounced-autosave-IAh8TU4o.js","assets/settings-section-DLmrAiBm.js","assets/card-1EoqQ-Q7.js","assets/formatDistanceToNow-Cb2QZZJn.js","assets/unwrap-tool-result-BYXdCQMg.js","assets/dropdown-menu-CYyf-ZrC.js","assets/index-Dk7VTW9z.js","assets/question-004-sINsf4GQ.js","assets/connection-slug-eyAPH6o3.js","assets/connection-card-D4MG7ceA.js","assets/use-registry-connections-CT-N1sCh.js","assets/useInfiniteQuery-P_vpKUlW.js","assets/infiniteQueryObserver-sxIykUWp.js","assets/collection-tabs-Li95C-8Z.js","assets/badge-kdIe7Szq.js","assets/textarea-TEFGem1K.js","assets/connection-form-helpers-C96WddUN.js","assets/use-infinite-scroll-hrqUZmbE.js","assets/useSuspenseInfiniteQuery-CdjREh1b.js","assets/collection-search-BOMyE6Ld.js","assets/use-create-virtual-mcp-t8SMbFkV.js","assets/empty-state-DebOy9XU.js","assets/task-status-Byb391SI.js","assets/index-CbJD4O9M.js","assets/command-D-VqtTkt.js","assets/index-DyLEkJ9h.js","assets/use-status-sounds-Bewyc919.js","assets/accordion-DT47aOa3.js","assets/user-BmqT7ATa.js","assets/tools-list-DHP55xBU.js","assets/scroll-area-DPp3zriG.js","assets/view-mode-toggle-DdV_2G2i.js","assets/automation-list-row-Cuemsvmv.js","assets/search-input-DFpePjxv.js","assets/index-DDGTF8rc.css","assets/index-CucV4lBd.js","assets/settings-layout-D82thllZ.js","assets/connections-Dudt-pG4.js","assets/collection-display-button-BWk8xHdj.js","assets/use-delete-connection-zP-NAmKT.js","assets/use-list-state-DsStSeaC.js","assets/use-view-mode-B2bqG4ko.js","assets/connection-detail-C9HOgjUN.js","assets/index-Co04TeZ5.js","assets/index-fQuO2Dc3.js","assets/index-CJ3mMCam.js","assets/use-members-BqQiitMx.js","assets/use-org-auth-client-DM9zvqH-.js","assets/layout-jAXEQlv4.js","assets/monitoring-stats-row-CaU12GnW.js","assets/collection-detail-Be93090Z.js","assets/index-D1Os768e.js","assets/monaco-editor-D-E1NsT_.js","assets/empty-state-BdiBdNme.js","assets/index-DKffdYnU.js","assets/table-D-EfNZTA.js","assets/general-u1Y39J62.js","assets/domain-settings-BXrvw6Lv.js","assets/features-Cxt-JPsD.js","assets/brand-context-C39FhTOD.js","assets/ai-providers-CRf0IUiu.js","assets/members-D5i4jyvH.js","assets/collection-table-wrapper-Cb-FxojL.js","assets/use-organization-roles-CzgnOad2.js","assets/roles-BWPZWJaM.js","assets/sso-DM0bDf34.js","assets/profile-DE9V4UAe.js","assets/store-DBYsfjv2.js","assets/workflow-Oj5odTn3.js","assets/workflow-detail-BT6eq7UZ.js","assets/org-plugin-layout-CiPGTy9y.js","assets/plugin-layout-CP7WeU3S.js","assets/agents-list-rwKMRHld.js","assets/automations-DN3LYNZV.js","assets/dynamic-plugin-layout-RlhEpflE.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
function z$(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 F$="modulepreload",B$=function(e){return"/"+e},X2={},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=B$(f),f in X2)return;X2[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":F$,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 ele=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 J2;function V$(){if(J2)return Bu;J2=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 eO;function q$(){return eO||(eO=1,__.exports=V$()),__.exports}var T=q$(),y_={exports:{}},Vu={},b_={exports:{}},w_={};var tO;function H$(){return tO||(tO=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 nO;function G$(){return nO||(nO=1,b_.exports=H$()),b_.exports}var S_={exports:{}},rt={};var rO;function K$(){if(rO)return rt;rO=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 iO;function ca(){return iO||(iO=1,S_.exports=K$()),S_.exports}var E_={exports:{}},yr={};var oO;function Z$(){if(oO)return yr;oO=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 sO;function IM(){if(sO)return E_.exports;sO=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=Z$(),E_.exports}var aO;function Y$(){if(aO)return Vu;aO=1;var e=G$(),t=ca(),n=IM();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)?w2(o):0;break;default:if(o=a.tagName,a=a.namespaceURI)a=w2(a),o=S2(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=S2(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 Jse(e){const t=Ro.c(9),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={queryKey:GM.publicConfig(),queryFn:Qse,staleTime:1/0},t[0]=r):r=t[0];const{data:i}=HM(r),[s]=Yse();i.internalUrl&&Use(i.internalUrl);let l,c;t[1]!==i.theme?(l=()=>{Xse(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 eae=new bj({defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!0,refetchOnMount:!0,retry:1,gcTime:300*1e3}}});function tae(e){const t=Ro.c(4),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=T.jsx(hH,{}),t[0]=r):r=t[0];let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=T.jsx(jD,{}),t[1]=i):i=t[1];let s;return t[2]!==n?(s=T.jsxs(wj,{client:eae,children:[r,T.jsx(I.Suspense,{fallback:i,children:T.jsx(Jse,{children:T.jsx(Lj,{children:T.jsx(Fee,{children:T.jsx(Wne,{children:n})})})})})]}),t[2]=n,t[3]=s):s=t[3],s}function nae(...e){return BP(pw(e))}const rae=y4("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=nae(rae({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 CM="__mesh_chunk_reload_ts";function AM(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 ice 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),kD(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 iae 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=AM(t);if(kD(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(CM),s=Date.now();(!i||s-Number(i)>1e4)&&(sessionStorage.setItem(CM,String(s)),window.location.reload())}render(){return this.state.hasError&&AM(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($D,{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 oae="MCP Workflows",sae="Create workflows using your MCP tools",aae=I.lazy(()=>At(()=>import("./plugin-header-BzIWRAUv.js"),__vite__mapDeps([0,1,2]))),lae=I.lazy(()=>At(()=>import("./plugin-empty-state-mFDhSKtm.js"),[])),cae={id:oae,description:sae,bindingName:"WORKFLOW",renderHeader:e=>T.jsx(aae,{...e}),renderEmptyState:()=>T.jsx(lae,{}),setup:e=>{e.registerSettingsSidebarItem({key:"workflows",icon:T.jsx(DD,{size:14}),label:"MCP Workflows",to:"/$org/settings/workflows"})}},uae=[cae],ma=t7({component:()=>T.jsx(iae,{children:T.jsx(tae,{children:T.jsx(I.Suspense,{fallback:T.jsx(jD,{}),children:T.jsx(mP,{})})})})}),dae=mt({getParentRoute:()=>ma,path:"/login",component:It(()=>At(()=>import("./login-C53Yny6q.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()}))}),fae=mt({getParentRoute:()=>ma,path:"/reset-password",component:It(()=>At(()=>import("./reset-password-CG-HQXTs.js"),__vite__mapDeps([5,4]))),validateSearch:ul(()=>Ee({token:z().optional(),error:z().optional()}))}),hae=mt({getParentRoute:()=>ma,path:"/auth/$pathname",component:It(()=>At(()=>import("./auth-catchall-b0gnrvFE.js"),[]))}),pae=mt({getParentRoute:()=>ma,path:"/oauth/callback",component:It(()=>At(()=>import("./oauth-callback-B18mSbUX.js"),[]))}),mae=mt({getParentRoute:()=>ma,path:"/oauth/callback/ai-provider",component:It(()=>At(()=>import("./oauth-callback-ai-provider-B5LWXlVw.js"),[]))}),rE=mt({getParentRoute:()=>ma,id:"shell",component:It(()=>At(()=>import("./shell-layout-lDvOUVZf.js").then(e=>e.s),__vite__mapDeps([6,7,8,9,10,11,12,13,14,15,16])))}),gae=mt({getParentRoute:()=>rE,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"})}}),vae=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-B9N5e87t.js"),__vite__mapDeps([17,9,4,18,19,20,21])))}),iE=mt({getParentRoute:()=>rE,path:"/$org",component:It(()=>At(()=>import("./org-layout-HZO2enZQ.js"),[]))}),oE=mt({getParentRoute:()=>iE,id:"org-shell",component:It(()=>At(()=>import("./index-CxyXuh3-.js"),__vite__mapDeps([22,23,24,8,25,26,27,28,29,16,30,31,32,33,34,19,20,1,2,35,36,37,38,39,21,40,41,15,42,43,44,45,46,47,48,49,6,7,9,10,11,12,13,14,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,18,4,68,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])))}),sE=mt({getParentRoute:()=>oE,id:"agent-shell",component:It(()=>At(()=>import("./index-Cnh6l9lE.js"),__vite__mapDeps([108,70,7,8,71,4,72,11,12,73,74,57,31,75,40,76,1,15,27,28,29,16,30,32,33,34,25,19,20,2,35,36,37,38,39,21,23,24,41,42,43,44,45,46,47,48,49,77,78,79,64,61,69,56,58,59,60,10,13,6,9,14,50,51,52,53,54,55,80,67,18,81,82,83,62,84,85,86,87,65,66,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,109,110,63,26,68,104,105,106,107,111,112,113,114,115,116,117,118,119])))}),_ae=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()}),O6=mt({getParentRoute:()=>sE,path:"/$taskId",validateSearch:_ae,component:()=>null}),yae=mt({getParentRoute:()=>oE,path:"/",component:It(()=>At(()=>import("./index-DLI7RfTF.js"),__vite__mapDeps([120,24,61,38,27,28,29,16,30,31,32,33,34,25,19,20,1,2,35,36,37,39,21,40,23,8,41,15,42,43,44,45,46,47,48,49,62,12,57,11,13,73,74,7,75,76,72,77,78,79,64,69,70,71,4,56,58,59,60,10,6,9,14,50,51,52,53,54,55,80,67,18,81,82,83,84,85,86,87,65,66,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,105])))}),Pn=mt({getParentRoute:()=>iE,path:"/settings",component:It(()=>At(()=>import("./settings-layout-C75rVJeh.js"),__vite__mapDeps([121,23,24,8,32,25,19,35,15,46,48,49,111,92,59,60])))}),bae=mt({getParentRoute:()=>Pn,path:"/",beforeLoad:({params:e})=>{throw Oc({to:"/$org/settings/general",params:{org:e.org}})},component:()=>null}),wae=mt({getParentRoute:()=>Pn,path:"/connections",component:It(()=>At(()=>import("./connections-BiBKwha4.js"),__vite__mapDeps([122,78,79,123,90,1,35,37,30,24,116,99,118,40,98,94,93,95,72,11,12,13,96,97,77,87,61,38,27,28,29,16,31,32,33,34,25,19,20,2,36,39,21,23,8,41,15,42,43,44,45,46,47,48,49,106,124,66,102,125,126,76,7,64,67,18,4,81,100,57,101]))),validateSearch:ul(()=>Ee({action:dn(["create"]).optional(),tab:dn(["all","connected"]).optional()}))}),Sae=mt({getParentRoute:()=>Pn,path:"/connections/$appSlug",component:It(()=>At(()=>import("./connection-detail-_uhhok2G.js"),__vite__mapDeps([127,78,79,106,101,4,44,47,128,12,69,27,28,29,16,30,31,32,33,34,25,19,20,1,2,35,36,37,38,39,21,40,23,24,8,41,15,42,43,45,46,48,49,72,11,129,130,77,95,13,81,110,63,57,105,74,114,99,55,131,132,65,80,61,67,18,124,66,133,134,93,75,87,90]))),validateSearch:ul(()=>Ee({tab:z().optional()}))}),Eae=mt({getParentRoute:()=>Pn,path:"/connections/$appSlug/$collectionName/$itemId",component:It(()=>At(()=>import("./collection-detail-BPMkE5rf.js"),__vite__mapDeps([135,106,11,12,67,18,4,100,133,23,24,8,136,129,79,130,57,137,51,112,27,28,29,16,30,31,32,33,34,25,19,20,1,2,35,36,37,38,39,21,40,41,15,42,43,44,45,46,47,48,49,99,81,116,72,69,7,91,90,61,115,68,138,60,55,128,77,78,95,13,110,63,105,74,93,114,54,56,58,59,10,6,9,14]))),validateSearch:ul(()=>Ee({replayId:z().optional()}))}),xae=mt({getParentRoute:()=>Pn,path:"/monitor",component:It(()=>At(()=>import("./index-DX5CKVPt.js"),__vite__mapDeps([139,118,40,23,24,8,106,99,63,1,33,43,27,28,29,16,30,31,32,34,25,19,20,2,35,36,37,38,39,21,41,15,42,44,45,46,47,48,49,137,51,131,132,72,11,12,57,4,76,109,110,81,115,100,98,71,18,61,65,87,134,130,69,93,103,97,140,102,96,50,52,53,7,54,55,56,58,59,60,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)}))}),Rae=mt({getParentRoute:()=>Pn,path:"/general",component:It(()=>At(()=>import("./general-DUugdid2.js"),__vite__mapDeps([141,23,24,8,132,85,65,48,4,86,87,34,142,89,12,71,104,40,57,11,63,62,27,28,29,16,30,31,32,33,25,19,20,1,2,35,36,37,38,39,21,41,15,42,43,44,45,46,47,49,61,13,66])))}),Oae=mt({getParentRoute:()=>Pn,path:"/features",component:It(()=>At(()=>import("./features-DyUlYERL.js"),__vite__mapDeps([143,23,24,8,13,12,71,38,86,87,34])))}),Tae=mt({getParentRoute:()=>Pn,path:"/brand-context",component:It(()=>At(()=>import("./brand-context-BssJ3FOZ.js"),__vite__mapDeps([144,12,2,35,39,41,44,47,49,66,4,100,23,24,8,89,85])))}),Cae=mt({getParentRoute:()=>Pn,path:"/ai-providers",component:It(()=>At(()=>import("./ai-providers-C23uGGTh.js"),__vite__mapDeps([145,83,76,1,4,7,8,64,24,81,2,36,62,29,31,40,45,58,12,56,57,11,59,60,10,13,84,49,85,28,20,47,23,86,87,34,71,82,65,48,66,88,53,89])))}),Aae=mt({getParentRoute:()=>Pn,path:"/members",component:It(()=>At(()=>import("./members-CXQHdw2n.js"),__vite__mapDeps([146,123,90,1,35,37,30,24,116,99,118,40,23,8,147,140,106,7,67,18,81,2,36,100,132,148,131,12,66,65,48,87,46,47,76,109,110,63,44])))}),Iae=mt({getParentRoute:()=>Pn,path:"/roles",component:It(()=>At(()=>import("./roles-BToZK3zI.js"),__vite__mapDeps([149,148,132,99,66,90,1,35,37,15,44,47,147,140,30,23,24,8,106,118,40,84,61,38,27,28,29,16,31,32,33,34,25,19,20,2,36,39,21,41,42,43,45,46,48,49,102,76,103,97,12,75,131,72,11,58,65,71,86,87]))),validateSearch:ul(()=>Ee({role:z().optional()}))}),Mae=mt({getParentRoute:()=>Pn,path:"/sso",component:It(()=>At(()=>import("./sso-y81n9RBZ.js"),__vite__mapDeps([150,142,89,12,71,86,87,34,23,24,8,4,14,47])))}),Pae=mt({getParentRoute:()=>Pn,path:"/profile",component:It(()=>At(()=>import("./profile-CDEKCuy5.js"),__vite__mapDeps([151,23,24,8,65,48,71,81,1,2,36,82,4,42,43,85,92,68,86,87,34])))}),Nae=mt({getParentRoute:()=>Pn,path:"/store",component:It(()=>At(()=>import("./store-CvYwjdEK.js"),__vite__mapDeps([152,28,35,44,47,4,71,62,65,48,63,72,11,12,23,24,8,95,13,86,87,34])))}),kae=mt({getParentRoute:()=>Pn,path:"/registry",component:It(()=>At(()=>import("./registry-SRrrOWaz.js"),[]))}),Dae=mt({getParentRoute:()=>Pn,path:"/store/registry",component:It(()=>At(()=>import("./store-registry-DNpjvrs_.js"),[]))}),Lae=mt({getParentRoute:()=>Pn,path:"/workflows",component:It(()=>At(()=>import("./workflow-YCSeFh2m.js"),__vite__mapDeps([153,12,78,79,123,90,1,35,37,30,24,116,99,75,40,87,61,38,27,28,29,16,31,32,33,34,25,19,20,2,36,39,21,23,8,41,15,42,43,44,45,46,47,48,49,147,140,138,113,65,106,125,126,93,66,11,72,133])))}),$ae=mt({getParentRoute:()=>Pn,path:"/workflows/$itemId",component:It(()=>At(()=>import("./workflow-detail-C-1jRApT.js"),__vite__mapDeps([154,136,129,12,79,130,57,11,137,51,112,27,28,29,16,30,31,32,33,34,25,19,20,1,2,35,36,37,38,39,21,40,23,24,8,41,15,42,43,44,45,46,47,48,49,99,81,116,133,72,69,7,91,90,61,115,68,138,60,4])))}),jae=mt({getParentRoute:()=>sE,path:"/plugins/$pluginId",component:It(()=>At(()=>import("./org-plugin-layout-X1oNY1R9.js"),__vite__mapDeps([155,156,72,11,12,45,23,24,8])))}),Uae=mt({getParentRoute:()=>Pn,path:"/agents",component:It(()=>At(()=>import("./agents-list-DYSwFq4O.js"),__vite__mapDeps([157,90,1,35,37,19,73,12,74,57,11,7,8,31,75,40,76,72,15,27,28,29,16,30,32,33,34,25,20,2,36,38,39,21,23,24,41,42,43,44,45,46,47,48,49,77,78,79,64,61,69,87,88,53,106,105,66,118])))}),zae=mt({getParentRoute:()=>Pn,path:"/automations",component:It(()=>At(()=>import("./automations-BoyHWA09.js"),__vite__mapDeps([158,44,49,118,40,23,24,8,106,117,66,90,1,35,37,27,28,29,16,30,31,32,33,34,25,19,20,2,36,38,39,21,41,15,42,43,45,46,47,48,57,11,12,74])))}),T6=mt({getParentRoute:()=>O6,path:"/$pluginId",component:It(()=>At(()=>import("./dynamic-plugin-layout-Dn0vyVNY.js"),__vite__mapDeps([159,156,72,11,12,45,23,24,8])))}),Fae=[],Bae=[],Vae=[],C6=[];uae.forEach(e=>{if(!e.setup)return;const t={parentRoute:T6,routing:{createRoute:mt,lazyRouteComponent:It},registerRootSidebarItem:n=>Fae.push({pluginId:e.id,...n}),registerSidebarGroup:n=>Bae.push({pluginId:e.id,...n}),registerSettingsSidebarItem:n=>Vae.push({pluginId:e.id,...n}),registerPluginRoutes:n=>{C6.push(...n)}};e.setup(t)});const qae=T6.addChildren(C6),Hae=Pn.addChildren([bae,wae,Sae,Eae,Uae,zae,xae,Rae,Oae,Tae,Cae,Aae,Iae,Mae,Pae,Nae,Dae,kae,Lae,$ae]),Gae=O6.addChildren([qae]),Kae=sE.addChildren([Gae,jae]),Zae=oE.addChildren([yae,Kae]),Yae=iE.addChildren([Zae,Hae]),Wae=rE.addChildren([gae,Yae]),Qae=ma.addChildren([Wae,vae,dae,fae,hae,pae,mae]),Xae=u7({routeTree:Qae,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"})]})})}),Jae=document.getElementById("root");Q$.createRoot(Jae).render(T.jsx(I.StrictMode,{children:T.jsx(h7,{router:Xae})}));export{KM as $,Mle as A,W1 as B,To as C,tG as D,ice as E,ece as F,nce as G,Ee as H,St as I,z as J,GM as K,fw as L,$D as M,cle as N,mP as O,Yse as P,Gse as Q,Rg as R,jD as S,LJ as T,Yr as U,Jle as V,Fae as W,Bae as X,oae as Y,DD as Z,At as _,kj as a,Ye as a$,sle as a0,xo as a1,eee as a2,ht as a3,no as a4,cW as a5,uW as a6,yn as a7,lt as a8,dW as a9,t3 as aA,sY as aB,cY as aC,aY as aD,ZZ as aE,Ole as aF,Vae as aG,tle as aH,Ut as aI,Xt as aJ,Ie as aK,JH as aL,Xle as aM,Qle as aN,HS as aO,vg as aP,DY as aQ,x3 as aR,X4 as aS,lf as aT,ta as aU,kY as aV,ds as aW,y4 as aX,jw as aY,Wr as aZ,Pt as a_,fW as aa,mW as ab,bW as ac,I3 as ad,fl as ae,hW as af,pW as ag,gW as ah,vW as ai,_W as aj,yW as ak,wW as al,EW as am,xW as an,Ig as ao,dn as ap,fC as aq,Q1 as ar,iY 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,nZ as b$,RV as b0,BP as b1,pw as b2,Rk as b3,Tk as b4,YW as b5,Wn as b6,wQ as b7,d3 as b8,Q4 as b9,wre as bA,xre as bB,Dre as bC,Zre as bD,Qre as bE,bre as bF,Sre as bG,Rre as bH,Ore as bI,Lre as bJ,qre as bK,qle as bL,uae as bM,pV as bN,ule as bO,mle as bP,gq as bQ,ul as bR,VN as bS,GN as bT,fle as bU,rce as bV,rG as bW,nG as bX,u4 as bY,pf as bZ,eZ as b_,rae as ba,la as bb,ne as bc,ele as bd,iZ as be,Lle as bf,uP as bg,ca as bh,as as bi,Dle as bj,$le as bk,rn as bl,dle as bm,qN as bn,zre as bo,Fre as bp,VS as bq,l6 as br,qS as bs,nv as bt,GD as bu,tie as bv,ZD as bw,Wre as bx,cie as by,yre as bz,nae as c,n6 as c$,rZ as c0,af as c1,qM as c2,Aj as c3,S3 as c4,wY as c5,Fw as c6,h3 as c7,k4 as c8,Bw as c9,Wle as cA,eoe as cB,pt as cC,Hoe as cD,to as cE,XW as cF,fP as cG,Ale as cH,oZ as cI,sZ as cJ,tZ as cK,aZ as cL,Bz as cM,HD as cN,YD as cO,XD as cP,e6 as cQ,t6 as cR,r6 as cS,Ble as cT,Vle as cU,zle as cV,Fle as cW,Jne as cX,Ule as cY,WD as cZ,JD as c_,Gd as ca,R4 as cb,zw as cc,Uw as cd,SY as ce,EY as cf,oQ as cg,sQ as ch,iQ as ci,Or as cj,lle as ck,QH as cl,YH as cm,HH as cn,n4 as co,HV as cp,Sw as cq,EV as cr,hle as cs,ZV as ct,xw as cu,Ew as cv,XV as cw,ple as cx,Yle as cy,_se as cz,dw as d,Gle as d0,QD as d1,Zle as d2,kS as d3,fre as d4,jle as d5,qD as d6,Die as d7,Vre as d8,Kle as d9,Tie as da,Iie as db,die as dc,uie as dd,Hle as de,gle as df,BW as dg,VW as dh,GW as di,qW as dj,HW as dk,yle as dl,ble as dm,xle as dn,Rle as dp,Tle as dq,Ele as dr,Sle as ds,wle as dt,_le as du,vle as dv,UM as dw,yO as dx,rle as dy,nle as dz,Ro as e,rf as f,uw as g,Ple as h,Ile as i,T as j,Nle as k,LD as l,tce as m,Nj as n,nw as o,PM as p,Zn as q,I as r,Xne as s,kle as t,ale as u,ole as v,HM as w,RT as x,NS as y,Oo as z};
|
|
171
|
+
`),document.head.appendChild(r)}}function Jse(e){const t=Ro.c(9),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={queryKey:GM.publicConfig(),queryFn:Qse,staleTime:1/0},t[0]=r):r=t[0];const{data:i}=HM(r),[s]=Yse();i.internalUrl&&Use(i.internalUrl);let l,c;t[1]!==i.theme?(l=()=>{Xse(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 eae=new bj({defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!0,refetchOnMount:!0,retry:1,gcTime:300*1e3}}});function tae(e){const t=Ro.c(4),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=T.jsx(hH,{}),t[0]=r):r=t[0];let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i=T.jsx(jD,{}),t[1]=i):i=t[1];let s;return t[2]!==n?(s=T.jsxs(wj,{client:eae,children:[r,T.jsx(I.Suspense,{fallback:i,children:T.jsx(Jse,{children:T.jsx(Lj,{children:T.jsx(Fee,{children:T.jsx(Wne,{children:n})})})})})]}),t[2]=n,t[3]=s):s=t[3],s}function nae(...e){return BP(pw(e))}const rae=y4("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=nae(rae({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 CM="__mesh_chunk_reload_ts";function AM(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 ice 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),kD(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 iae 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=AM(t);if(kD(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(CM),s=Date.now();(!i||s-Number(i)>1e4)&&(sessionStorage.setItem(CM,String(s)),window.location.reload())}render(){return this.state.hasError&&AM(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($D,{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 oae="MCP Workflows",sae="Create workflows using your MCP tools",aae=I.lazy(()=>At(()=>import("./plugin-header-BaIUgM8O.js"),__vite__mapDeps([0,1,2]))),lae=I.lazy(()=>At(()=>import("./plugin-empty-state-CPC4iNPZ.js"),[])),cae={id:oae,description:sae,bindingName:"WORKFLOW",renderHeader:e=>T.jsx(aae,{...e}),renderEmptyState:()=>T.jsx(lae,{}),setup:e=>{e.registerSettingsSidebarItem({key:"workflows",icon:T.jsx(DD,{size:14}),label:"MCP Workflows",to:"/$org/settings/workflows"})}},uae=[cae],ma=t7({component:()=>T.jsx(iae,{children:T.jsx(tae,{children:T.jsx(I.Suspense,{fallback:T.jsx(jD,{}),children:T.jsx(mP,{})})})})}),dae=mt({getParentRoute:()=>ma,path:"/login",component:It(()=>At(()=>import("./login-BgB-8JX_.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()}))}),fae=mt({getParentRoute:()=>ma,path:"/reset-password",component:It(()=>At(()=>import("./reset-password-HK92arRg.js"),__vite__mapDeps([5,4]))),validateSearch:ul(()=>Ee({token:z().optional(),error:z().optional()}))}),hae=mt({getParentRoute:()=>ma,path:"/auth/$pathname",component:It(()=>At(()=>import("./auth-catchall-DTur9gCU.js"),[]))}),pae=mt({getParentRoute:()=>ma,path:"/oauth/callback",component:It(()=>At(()=>import("./oauth-callback-BrTY445n.js"),[]))}),mae=mt({getParentRoute:()=>ma,path:"/oauth/callback/ai-provider",component:It(()=>At(()=>import("./oauth-callback-ai-provider-BA8nRDph.js"),[]))}),rE=mt({getParentRoute:()=>ma,id:"shell",component:It(()=>At(()=>import("./shell-layout-R4iIIify.js").then(e=>e.s),__vite__mapDeps([6,7,8,9,10,11,12,13,14,15,16])))}),gae=mt({getParentRoute:()=>rE,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"})}}),vae=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-CAft2_BY.js"),__vite__mapDeps([17,9,4,18,19,20,21])))}),iE=mt({getParentRoute:()=>rE,path:"/$org",component:It(()=>At(()=>import("./org-layout-C0XY3j3w.js"),[]))}),oE=mt({getParentRoute:()=>iE,id:"org-shell",component:It(()=>At(()=>import("./index-BNtQbO2i.js"),__vite__mapDeps([22,23,24,8,25,26,27,28,29,16,30,31,32,33,34,19,20,1,2,35,36,37,38,39,21,40,41,15,42,43,44,45,46,47,48,49,6,7,9,10,11,12,13,14,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,18,4,68,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])))}),sE=mt({getParentRoute:()=>oE,id:"agent-shell",component:It(()=>At(()=>import("./index-CbJD4O9M.js"),__vite__mapDeps([108,70,7,8,71,4,72,11,12,73,74,57,31,75,40,76,1,15,27,28,29,16,30,32,33,34,25,19,20,2,35,36,37,38,39,21,23,24,41,42,43,44,45,46,47,48,49,77,78,79,64,61,69,56,58,59,60,10,13,6,9,14,50,51,52,53,54,55,80,67,18,81,82,83,62,84,85,86,87,65,66,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,109,110,63,26,68,104,105,106,107,111,112,113,114,115,116,117,118,119])))}),_ae=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()}),O6=mt({getParentRoute:()=>sE,path:"/$taskId",validateSearch:_ae,component:()=>null}),yae=mt({getParentRoute:()=>oE,path:"/",component:It(()=>At(()=>import("./index-CucV4lBd.js"),__vite__mapDeps([120,24,61,38,27,28,29,16,30,31,32,33,34,25,19,20,1,2,35,36,37,39,21,40,23,8,41,15,42,43,44,45,46,47,48,49,62,12,57,11,13,73,74,7,75,76,72,77,78,79,64,69,70,71,4,56,58,59,60,10,6,9,14,50,51,52,53,54,55,80,67,18,81,82,83,84,85,86,87,65,66,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,105])))}),Pn=mt({getParentRoute:()=>iE,path:"/settings",component:It(()=>At(()=>import("./settings-layout-D82thllZ.js"),__vite__mapDeps([121,23,24,8,32,25,19,35,15,46,48,49,111,92,59,60])))}),bae=mt({getParentRoute:()=>Pn,path:"/",beforeLoad:({params:e})=>{throw Oc({to:"/$org/settings/general",params:{org:e.org}})},component:()=>null}),wae=mt({getParentRoute:()=>Pn,path:"/connections",component:It(()=>At(()=>import("./connections-Dudt-pG4.js"),__vite__mapDeps([122,78,79,123,90,1,35,37,30,24,116,99,118,40,98,94,93,95,72,11,12,13,96,97,77,87,61,38,27,28,29,16,31,32,33,34,25,19,20,2,36,39,21,23,8,41,15,42,43,44,45,46,47,48,49,106,124,66,102,125,126,76,7,64,67,18,4,81,100,57,101]))),validateSearch:ul(()=>Ee({action:dn(["create"]).optional(),tab:dn(["all","connected"]).optional()}))}),Sae=mt({getParentRoute:()=>Pn,path:"/connections/$appSlug",component:It(()=>At(()=>import("./connection-detail-C9HOgjUN.js"),__vite__mapDeps([127,78,79,106,101,4,44,47,128,12,69,27,28,29,16,30,31,32,33,34,25,19,20,1,2,35,36,37,38,39,21,40,23,24,8,41,15,42,43,45,46,48,49,72,11,129,130,77,95,13,81,110,63,57,105,74,114,99,55,131,132,65,80,61,67,18,124,66,133,134,93,75,87,90]))),validateSearch:ul(()=>Ee({tab:z().optional()}))}),Eae=mt({getParentRoute:()=>Pn,path:"/connections/$appSlug/$collectionName/$itemId",component:It(()=>At(()=>import("./collection-detail-Be93090Z.js"),__vite__mapDeps([135,106,11,12,67,18,4,100,133,23,24,8,136,129,79,130,57,137,51,112,27,28,29,16,30,31,32,33,34,25,19,20,1,2,35,36,37,38,39,21,40,41,15,42,43,44,45,46,47,48,49,99,81,116,72,69,7,91,90,61,115,68,138,60,55,128,77,78,95,13,110,63,105,74,93,114,54,56,58,59,10,6,9,14]))),validateSearch:ul(()=>Ee({replayId:z().optional()}))}),xae=mt({getParentRoute:()=>Pn,path:"/monitor",component:It(()=>At(()=>import("./index-DKffdYnU.js"),__vite__mapDeps([139,118,40,23,24,8,106,99,63,1,33,43,27,28,29,16,30,31,32,34,25,19,20,2,35,36,37,38,39,21,41,15,42,44,45,46,47,48,49,137,51,131,132,72,11,12,57,4,76,109,110,81,115,100,98,71,18,61,65,87,134,130,69,93,103,97,140,102,96,50,52,53,7,54,55,56,58,59,60,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)}))}),Rae=mt({getParentRoute:()=>Pn,path:"/general",component:It(()=>At(()=>import("./general-u1Y39J62.js"),__vite__mapDeps([141,23,24,8,132,85,65,48,4,86,87,34,142,89,12,71,104,40,57,11,63,62,27,28,29,16,30,31,32,33,25,19,20,1,2,35,36,37,38,39,21,41,15,42,43,44,45,46,47,49,61,13,66])))}),Oae=mt({getParentRoute:()=>Pn,path:"/features",component:It(()=>At(()=>import("./features-Cxt-JPsD.js"),__vite__mapDeps([143,23,24,8,13,12,71,38,86,87,34])))}),Tae=mt({getParentRoute:()=>Pn,path:"/brand-context",component:It(()=>At(()=>import("./brand-context-C39FhTOD.js"),__vite__mapDeps([144,12,2,35,39,41,44,47,49,66,4,100,23,24,8,89,85])))}),Cae=mt({getParentRoute:()=>Pn,path:"/ai-providers",component:It(()=>At(()=>import("./ai-providers-CRf0IUiu.js"),__vite__mapDeps([145,83,76,1,4,7,8,64,24,81,2,36,62,29,31,40,45,58,12,56,57,11,59,60,10,13,84,49,85,28,20,47,23,86,87,34,71,82,65,48,66,88,53,89])))}),Aae=mt({getParentRoute:()=>Pn,path:"/members",component:It(()=>At(()=>import("./members-D5i4jyvH.js"),__vite__mapDeps([146,123,90,1,35,37,30,24,116,99,118,40,23,8,147,140,106,7,67,18,81,2,36,100,132,148,131,12,66,65,48,87,46,47,76,109,110,63,44])))}),Iae=mt({getParentRoute:()=>Pn,path:"/roles",component:It(()=>At(()=>import("./roles-BWPZWJaM.js"),__vite__mapDeps([149,148,132,99,66,90,1,35,37,15,44,47,147,140,30,23,24,8,106,118,40,84,61,38,27,28,29,16,31,32,33,34,25,19,20,2,36,39,21,41,42,43,45,46,48,49,102,76,103,97,12,75,131,72,11,58,65,71,86,87]))),validateSearch:ul(()=>Ee({role:z().optional()}))}),Mae=mt({getParentRoute:()=>Pn,path:"/sso",component:It(()=>At(()=>import("./sso-DM0bDf34.js"),__vite__mapDeps([150,142,89,12,71,86,87,34,23,24,8,4,14,47])))}),Pae=mt({getParentRoute:()=>Pn,path:"/profile",component:It(()=>At(()=>import("./profile-DE9V4UAe.js"),__vite__mapDeps([151,23,24,8,65,48,71,81,1,2,36,82,4,42,43,85,92,68,86,87,34])))}),Nae=mt({getParentRoute:()=>Pn,path:"/store",component:It(()=>At(()=>import("./store-DBYsfjv2.js"),__vite__mapDeps([152,28,35,44,47,4,71,62,65,48,63,72,11,12,23,24,8,95,13,86,87,34])))}),kae=mt({getParentRoute:()=>Pn,path:"/registry",component:It(()=>At(()=>import("./registry-Cth6leQk.js"),[]))}),Dae=mt({getParentRoute:()=>Pn,path:"/store/registry",component:It(()=>At(()=>import("./store-registry-Be_BNgv2.js"),[]))}),Lae=mt({getParentRoute:()=>Pn,path:"/workflows",component:It(()=>At(()=>import("./workflow-Oj5odTn3.js"),__vite__mapDeps([153,12,78,79,123,90,1,35,37,30,24,116,99,75,40,87,61,38,27,28,29,16,31,32,33,34,25,19,20,2,36,39,21,23,8,41,15,42,43,44,45,46,47,48,49,147,140,138,113,65,106,125,126,93,66,11,72,133])))}),$ae=mt({getParentRoute:()=>Pn,path:"/workflows/$itemId",component:It(()=>At(()=>import("./workflow-detail-BT6eq7UZ.js"),__vite__mapDeps([154,136,129,12,79,130,57,11,137,51,112,27,28,29,16,30,31,32,33,34,25,19,20,1,2,35,36,37,38,39,21,40,23,24,8,41,15,42,43,44,45,46,47,48,49,99,81,116,133,72,69,7,91,90,61,115,68,138,60,4])))}),jae=mt({getParentRoute:()=>sE,path:"/plugins/$pluginId",component:It(()=>At(()=>import("./org-plugin-layout-CiPGTy9y.js"),__vite__mapDeps([155,156,72,11,12,45,23,24,8])))}),Uae=mt({getParentRoute:()=>Pn,path:"/agents",component:It(()=>At(()=>import("./agents-list-rwKMRHld.js"),__vite__mapDeps([157,90,1,35,37,19,73,12,74,57,11,7,8,31,75,40,76,72,15,27,28,29,16,30,32,33,34,25,20,2,36,38,39,21,23,24,41,42,43,44,45,46,47,48,49,77,78,79,64,61,69,87,88,53,106,105,66,118])))}),zae=mt({getParentRoute:()=>Pn,path:"/automations",component:It(()=>At(()=>import("./automations-DN3LYNZV.js"),__vite__mapDeps([158,44,49,118,40,23,24,8,106,117,66,90,1,35,37,27,28,29,16,30,31,32,33,34,25,19,20,2,36,38,39,21,41,15,42,43,45,46,47,48,57,11,12,74])))}),T6=mt({getParentRoute:()=>O6,path:"/$pluginId",component:It(()=>At(()=>import("./dynamic-plugin-layout-RlhEpflE.js"),__vite__mapDeps([159,156,72,11,12,45,23,24,8])))}),Fae=[],Bae=[],Vae=[],C6=[];uae.forEach(e=>{if(!e.setup)return;const t={parentRoute:T6,routing:{createRoute:mt,lazyRouteComponent:It},registerRootSidebarItem:n=>Fae.push({pluginId:e.id,...n}),registerSidebarGroup:n=>Bae.push({pluginId:e.id,...n}),registerSettingsSidebarItem:n=>Vae.push({pluginId:e.id,...n}),registerPluginRoutes:n=>{C6.push(...n)}};e.setup(t)});const qae=T6.addChildren(C6),Hae=Pn.addChildren([bae,wae,Sae,Eae,Uae,zae,xae,Rae,Oae,Tae,Cae,Aae,Iae,Mae,Pae,Nae,Dae,kae,Lae,$ae]),Gae=O6.addChildren([qae]),Kae=sE.addChildren([Gae,jae]),Zae=oE.addChildren([yae,Kae]),Yae=iE.addChildren([Zae,Hae]),Wae=rE.addChildren([gae,Yae]),Qae=ma.addChildren([Wae,vae,dae,fae,hae,pae,mae]),Xae=u7({routeTree:Qae,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"})]})})}),Jae=document.getElementById("root");Q$.createRoot(Jae).render(T.jsx(I.StrictMode,{children:T.jsx(h7,{router:Xae})}));export{KM as $,Mle as A,W1 as B,To as C,tG as D,ice as E,ece as F,nce as G,Ee as H,St as I,z as J,GM as K,fw as L,$D as M,cle as N,mP as O,Yse as P,Gse as Q,Rg as R,jD as S,LJ as T,Yr as U,Jle as V,Fae as W,Bae as X,oae as Y,DD as Z,At as _,kj as a,Ye as a$,sle as a0,xo as a1,eee as a2,ht as a3,no as a4,cW as a5,uW as a6,yn as a7,lt as a8,dW as a9,t3 as aA,sY as aB,cY as aC,aY as aD,ZZ as aE,Ole as aF,Vae as aG,tle as aH,Ut as aI,Xt as aJ,Ie as aK,JH as aL,Xle as aM,Qle as aN,HS as aO,vg as aP,DY as aQ,x3 as aR,X4 as aS,lf as aT,ta as aU,kY as aV,ds as aW,y4 as aX,jw as aY,Wr as aZ,Pt as a_,fW as aa,mW as ab,bW as ac,I3 as ad,fl as ae,hW as af,pW as ag,gW as ah,vW as ai,_W as aj,yW as ak,wW as al,EW as am,xW as an,Ig as ao,dn as ap,fC as aq,Q1 as ar,iY 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,nZ as b$,RV as b0,BP as b1,pw as b2,Rk as b3,Tk as b4,YW as b5,Wn as b6,wQ as b7,d3 as b8,Q4 as b9,wre as bA,xre as bB,Dre as bC,Zre as bD,Qre as bE,bre as bF,Sre as bG,Rre as bH,Ore as bI,Lre as bJ,qre as bK,qle as bL,uae as bM,pV as bN,ule as bO,mle as bP,gq as bQ,ul as bR,VN as bS,GN as bT,fle as bU,rce as bV,rG as bW,nG as bX,u4 as bY,pf as bZ,eZ as b_,rae as ba,la as bb,ne as bc,ele as bd,iZ as be,Lle as bf,uP as bg,ca as bh,as as bi,Dle as bj,$le as bk,rn as bl,dle as bm,qN as bn,zre as bo,Fre as bp,VS as bq,l6 as br,qS as bs,nv as bt,GD as bu,tie as bv,ZD as bw,Wre as bx,cie as by,yre as bz,nae as c,n6 as c$,rZ as c0,af as c1,qM as c2,Aj as c3,S3 as c4,wY as c5,Fw as c6,h3 as c7,k4 as c8,Bw as c9,Wle as cA,eoe as cB,pt as cC,Hoe as cD,to as cE,XW as cF,fP as cG,Ale as cH,oZ as cI,sZ as cJ,tZ as cK,aZ as cL,Bz as cM,HD as cN,YD as cO,XD as cP,e6 as cQ,t6 as cR,r6 as cS,Ble as cT,Vle as cU,zle as cV,Fle as cW,Jne as cX,Ule as cY,WD as cZ,JD as c_,Gd as ca,R4 as cb,zw as cc,Uw as cd,SY as ce,EY as cf,oQ as cg,sQ as ch,iQ as ci,Or as cj,lle as ck,QH as cl,YH as cm,HH as cn,n4 as co,HV as cp,Sw as cq,EV as cr,hle as cs,ZV as ct,xw as cu,Ew as cv,XV as cw,ple as cx,Yle as cy,_se as cz,dw as d,Gle as d0,QD as d1,Zle as d2,kS as d3,fre as d4,jle as d5,qD as d6,Die as d7,Vre as d8,Kle as d9,Tie as da,Iie as db,die as dc,uie as dd,Hle as de,gle as df,BW as dg,VW as dh,GW as di,qW as dj,HW as dk,yle as dl,ble as dm,xle as dn,Rle as dp,Tle as dq,Ele as dr,Sle as ds,wle as dt,_le as du,vle as dv,UM as dw,yO as dx,rle as dy,nle as dz,Ro as e,rf as f,uw as g,Ple as h,Ile as i,T as j,Nle as k,LD as l,tce as m,Nj as n,nw as o,PM as p,Zn as q,I as r,Xne as s,kle as t,ale as u,ole as v,HM as w,RT as x,NS as y,Oo as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as f,j as t,r as h,g as S,O as u,l as _}from"./index-
|
|
1
|
+
import{e as f,j as t,r as h,g as S,O as u,l as _}from"./index-0enbmaSe.js";import{S as g,a as v,b as y,u as k,c as N,d as T,e as w}from"./index-Bna4Mzv7.js";import{u as C}from"./tooltip-DZ4hI4gi.js";import{n as P}from"./ZapSquare-DlRSLgAv.js";import{u as O,T as j,a as M,b as p,S as R,c as $}from"./index-DmW2ChV3.js";import{C as I}from"./chat-context-CqLR71Tu.js";import"./X-BkKDRlJI.js";import"./agent-icon-DUbGEO2S.js";import"./AlertCircle-CBFejk6X.js";import"./Tool01-D48iIlf1.js";import"./Archive-iAwIFcLN.js";import"./XClose-Bx_xQQD_.js";import"./RefreshCcw01-BsycvfGb.js";import"./ArrowNarrowLeft-C0NWe8i5.js";import"./XCircle-sedM5Yzu.js";import"./ArrowUpRight-wDGVfxe4.js";import"./Users03-DYLtKI27.js";import"./CheckCircle-B7pbvHXn.js";import"./Check-BzVO1AiZ.js";import"./ChevronDown-Deq9bkeU.js";import"./ChevronRight-De9CjTSZ.js";import"./ChevronUp-B22gTkPS.js";import"./DotsVertical-B0gKWs5D.js";import"./Container-10kbY0mV.js";import"./Star01-CJoi6RDa.js";import"./Palette-B7UA48pi.js";import"./SearchMd-15kzRVQe.js";import"./LinkExternal01-DkQ5Dk0s.js";import"./Lock01-CHNFEFTO.js";import"./Sun-CGoBYMaF.js";import"./Play-BunaO9my.js";import"./Plus-DlXyaJQM.js";import"./Settings02-DVi1PM0X.js";import"./Shield01-B70wMBqd.js";import"./Trash01-r5gnirq_.js";import"./User01-DJ7t0J9b.js";import"./Zap-Cf_cpNNU.js";import"./shell-layout-R4iIIify.js";import"./dialog-2qod6XLb.js";import"./required-auth-layout-CbwdpaRZ.js";import"./use-tasks-9cquzKq3.js";import"./use-collections-BbQAdI3o.js";import"./constants--Z68frQS.js";import"./use-organization-settings-CZnRZbph.js";import"./use-org-sso-DFTMWioi.js";import"./pair-DyP8v5ZE.js";import"./index-BVirFM6V.js";import"./use-copy-Df3K3sfk.js";import"./differenceInSeconds-NQ4PDo0z.js";import"./content-blocks-o63cs2vh.js";import"./types-D599MtjY.js";import"./integration-icon-Cgu3nEbl.js";import"./use-virtual-mcp-Bl5HfgtI.js";import"./skeleton-D3XIs5gC.js";import"./popover-g5bCjakL.js";import"./drawer-DSH3rjuX.js";import"./avatar-BoueLWcb.js";import"./alert-dialog-2Jj762BJ.js";import"./form-BxsxXSuZ.js";import"./label-BhPoqbH1.js";import"./input-CZy7VBF-.js";import"./index-D9p0G3vk.js";import"./use-mcp-tools-kqffQmIa.js";import"./use-ai-providers-DSutNjVp.js";import"./index-sxBFqhbB.js";import"./switch-ChHlr-0p.js";import"./use-connection-CrEyI3P_.js";import"./lean-canvas-recruit-modal-Mo-uvZiE.js";import"./use-navigate-to-agent-DkjTuG5H.js";import"./collection-search-B-8Jnp5p.js";import"./checkbox-CL4jg0mR.js";import"./extract-connection-data-BTMDGqDD.js";import"./constants-BY3slQ5k.js";import"./collections-BpcdhWS9.js";import"./tabs-C3Y9bmk3.js";import"./select-DNBVly7-.js";import"./toggle-group-DYAaGRJB.js";import"./select-model-DeUWMCqm.js";import"./ai-providers-logos-DD3qZ33J.js";import"./use-debounced-autosave-IAh8TU4o.js";import"./settings-section-DLmrAiBm.js";import"./card-1EoqQ-Q7.js";import"./formatDistanceToNow-Cb2QZZJn.js";import"./unwrap-tool-result-BYXdCQMg.js";import"./dropdown-menu-CYyf-ZrC.js";import"./index-Dk7VTW9z.js";import"./question-004-sINsf4GQ.js";import"./connection-slug-eyAPH6o3.js";import"./connection-card-D4MG7ceA.js";import"./use-registry-connections-CT-N1sCh.js";import"./useInfiniteQuery-P_vpKUlW.js";import"./infiniteQueryObserver-sxIykUWp.js";import"./collection-tabs-Li95C-8Z.js";import"./badge-kdIe7Szq.js";import"./textarea-TEFGem1K.js";import"./connection-form-helpers-C96WddUN.js";import"./use-infinite-scroll-hrqUZmbE.js";import"./useSuspenseInfiniteQuery-CdjREh1b.js";import"./collection-search-BOMyE6Ld.js";import"./use-create-virtual-mcp-t8SMbFkV.js";import"./empty-state-DebOy9XU.js";import"./use-decopilot-events-CxAD33F2.js";import"./create-sse-subscription-CxkOgzKf.js";import"./task-status-Byb391SI.js";const z=280;function L(){const e=f.c(2),{tasksOpen:r}=O();if(!r)return null;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={width:`${z}px`},e[0]=o):o=e[0];let i;return e[1]===Symbol.for("react.memo_cache_sentinel")?(i=t.jsx("aside",{className:"shrink-0 h-full bg-sidebar pb-1",style:o,children:t.jsx("div",{className:"h-full p-0.5 pt-0.25",children:t.jsx("div",{className:"h-full bg-background rounded-[0.75rem] overflow-hidden card-shadow",children:t.jsx(j,{})})})}),e[1]=i):i=e[1],i}function E(){const e=f.c(1);let r;return e[0]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx(h.Suspense,{fallback:null,children:t.jsx(L,{})}),e[0]=r):r=e[0],r}function b(){const e=f.c(1);let r;return e[0]===Symbol.for("react.memo_cache_sentinel")?(r=t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx(_,{size:20,className:"animate-spin text-muted-foreground"})}),e[0]=r):r=e[0],r}function F(){const e=f.c(18),{setOpenMobile:r,openMobile:o}=k();let i;e[0]!==r?(i=()=>r(!0),e[0]=r,e[1]=i):i=e[1];let m;e[2]===Symbol.for("react.memo_cache_sentinel")?(m=t.jsx(P,{size:20}),e[2]=m):m=e[2];let s;e[3]!==i?(s=t.jsx("div",{className:"shrink-0 flex items-center px-2 h-12 bg-background border-b border-border",children:t.jsx("button",{type:"button",onClick:i,className:"flex size-8 shrink-0 items-center justify-center rounded-md text-foreground/60 hover:bg-accent hover:text-foreground transition-colors","aria-label":"Open menu",children:m})}),e[3]=i,e[4]=s):s=e[4];let a;e[5]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(N,{className:"sr-only",children:"Navigation"}),e[5]=a):a=e[5];let l;e[6]!==r?(l=t.jsx("div",{className:"w-14 shrink-0 bg-sidebar flex flex-col items-center border-r border-border overflow-y-auto group/sidebar","data-state":"collapsed",children:t.jsx($,{onClose:()=>r(!1)})}),e[6]=r,e[7]=l):l=e[7];let n;e[8]===Symbol.for("react.memo_cache_sentinel")?(n=t.jsx("div",{className:"flex-1 min-w-0 overflow-hidden",children:t.jsx(j,{})}),e[8]=n):n=e[8];let c;e[9]!==l?(c=t.jsxs(T,{side:"left",hideCloseButton:!0,className:"w-[calc(100vw-3rem)] sm:max-w-md! p-0",children:[a,t.jsxs("div",{className:"flex h-full",children:[l,n]})]}),e[9]=l,e[10]=c):c=e[10];let d;e[11]!==o||e[12]!==r||e[13]!==c?(d=t.jsx(w,{open:o,onOpenChange:r,children:c}),e[11]=o,e[12]=r,e[13]=c,e[14]=d):d=e[14];let x;return e[15]!==s||e[16]!==d?(x=t.jsxs(t.Fragment,{children:[s,d]}),e[15]=s,e[16]=d,e[17]=x):x=e[17],x}function zt(){const e=f.c(7),r=C();let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={strict:!1},e[0]=o):o=e[0];const m=!!S(o).taskId;let s;e[1]===Symbol.for("react.memo_cache_sentinel")?(s={"--sidebar-width-icon":"3.5rem"},e[1]=s):s=e[1];let a;e[2]===Symbol.for("react.memo_cache_sentinel")?(a=t.jsx(R,{}),e[2]=a):a=e[2];let l;e[3]===Symbol.for("react.memo_cache_sentinel")?(l={background:"transparent",containerType:"inline-size"},e[3]=l):l=e[3];let n;return e[4]!==m||e[5]!==r?(n=t.jsx(g,{defaultOpen:!1,children:t.jsx("div",{className:"flex flex-col h-dvh overflow-hidden",children:t.jsxs(v,{className:"flex-1 bg-sidebar",style:s,children:[a,t.jsx(y,{className:"flex flex-col",style:l,children:t.jsx(I,{children:t.jsx(M,{children:r?t.jsxs(t.Fragment,{children:[!m&&t.jsx(F,{}),t.jsx(h.Suspense,{fallback:t.jsx(b,{}),children:t.jsx(u,{})})]}):t.jsxs(p,{children:[t.jsxs(p.Header,{children:[t.jsxs(p.LeftColumn,{children:[t.jsx(p.Nav,{}),t.jsx(p.TogglesSlot,{})]}),t.jsx(p.CenterSlot,{}),t.jsxs(p.RightColumn,{children:[t.jsx(p.TabsSlot,{}),t.jsx(p.RightSlot,{})]})]}),t.jsxs("div",{className:"flex-1 min-h-0 flex flex-row",children:[m&&t.jsx(E,{}),t.jsx(h.Suspense,{fallback:t.jsx(b,{}),children:t.jsx(u,{})})]})]})})})})]})})}),e[4]=m,e[5]=r,e[6]=n):n=e[6],n}export{zt as default};
|