decocms 2.295.0 → 2.296.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-TmMuXcjl.js → AlertCircle-DGWwcoQZ.js} +1 -1
- package/dist/client/assets/{ArrowNarrowLeft-XQKT7KRo.js → ArrowNarrowLeft-6CbLfe6R.js} +1 -1
- package/dist/client/assets/{ArrowUpRight-B1eJ8Zux.js → ArrowUpRight-DGFb4j2X.js} +1 -1
- package/dist/client/assets/{CheckCircle-CPpusm9-.js → CheckCircle-TABxOmV2.js} +1 -1
- package/dist/client/assets/{ChevronDown-XsMPED_o.js → ChevronDown-YpILLXr3.js} +1 -1
- package/dist/client/assets/{ChevronRight-DvnZfu1J.js → ChevronRight-C5cwFzdi.js} +1 -1
- package/dist/client/assets/{ChevronUp-g5JeXzsM.js → ChevronUp-D3ACbD1g.js} +1 -1
- package/dist/client/assets/{Container-D8zDQGz9.js → Container-CEV9uk-Z.js} +1 -1
- package/dist/client/assets/{DotsVertical-BOPp4_Zm.js → DotsVertical-uATdSTpl.js} +1 -1
- package/dist/client/assets/{LinkExternal01-CGJf1W_Z.js → LinkExternal01-DRPBZiOD.js} +1 -1
- package/dist/client/assets/{Lock01-LdcfCIRL.js → Lock01-BwE9ru6U.js} +1 -1
- package/dist/client/assets/{Palette-BGUZxjCc.js → Palette-BXvnxfG9.js} +1 -1
- package/dist/client/assets/{Play-DADQfe47.js → Play-DgZHjcoJ.js} +1 -1
- package/dist/client/assets/{Plus-C7kl4UV6.js → Plus-CCywDmjg.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-CrQnDm5g.js → RefreshCcw01-CtjTkTf4.js} +1 -1
- package/dist/client/assets/{SearchMd-CE8VI9gC.js → SearchMd-OYsWp4RC.js} +1 -1
- package/dist/client/assets/{Settings02-_WxqBg1B.js → Settings02-DxdBNXj6.js} +1 -1
- package/dist/client/assets/{Shield01-CieEV22y.js → Shield01-Qjvq_pQT.js} +1 -1
- package/dist/client/assets/{Star01-CoecGSHu.js → Star01-BP3IsurF.js} +1 -1
- package/dist/client/assets/{Sun-D-OJyv5-.js → Sun-beuoApqH.js} +1 -1
- package/dist/client/assets/{Tool01-w4UQOYN_.js → Tool01-CB2DUdHU.js} +1 -1
- package/dist/client/assets/{Trash01-O1QoDagR.js → Trash01-Rux2RMYE.js} +1 -1
- package/dist/client/assets/{User01-C1foHOaz.js → User01-CKOZDyFQ.js} +1 -1
- package/dist/client/assets/{Users03-BhdZR1Z1.js → Users03-CrrZL9MY.js} +1 -1
- package/dist/client/assets/{X-DgFNaccu.js → X-Cg5jWZ6W.js} +1 -1
- package/dist/client/assets/{XCircle-D0VmL_m9.js → XCircle-m0QK52Tq.js} +1 -1
- package/dist/client/assets/{XClose-BkeTzjOp.js → XClose-N2VTvn-z.js} +1 -1
- package/dist/client/assets/{Zap-DUFASc4_.js → Zap-DHpdmH1S.js} +1 -1
- package/dist/client/assets/{ZapSquare-CaSKDWHD.js → ZapSquare-CpCXmnKj.js} +1 -1
- package/dist/client/assets/{accordion-DRSjy726.js → accordion-CCTO7OqO.js} +1 -1
- package/dist/client/assets/{agent-icon-BhmyvzVy.js → agent-icon-BhGa08Fl.js} +1 -1
- package/dist/client/assets/{agents-list-LdRYJqAA.js → agents-list-BCvsLrk3.js} +1 -1
- package/dist/client/assets/ai-providers-CM3jlHKz.js +1 -0
- package/dist/client/assets/{alert-dialog-DTrs5R7J.js → alert-dialog-BvOLTTjL.js} +1 -1
- package/dist/client/assets/{auth-catchall-CczzVYAx.js → auth-catchall-Clb5yvZc.js} +1 -1
- package/dist/client/assets/{automation-list-row-CkuYa5Xq.js → automation-list-row-BP2xxw0G.js} +1 -1
- package/dist/client/assets/{automations-DzTmGwbV.js → automations-CMWGklob.js} +1 -1
- package/dist/client/assets/{avatar-DHedl4lM.js → avatar-Di9GD8dd.js} +1 -1
- package/dist/client/assets/{badge-CUROAd7Y.js → badge-mnYUd_xY.js} +1 -1
- package/dist/client/assets/{brand-context-MhkHZ_rd.js → brand-context-Lx9rMG-L.js} +1 -1
- package/dist/client/assets/{card-DRRYnLR5.js → card-DL6KKkK7.js} +1 -1
- package/dist/client/assets/{chat-context-BIEHgp18.js → chat-context-mYdLYubP.js} +1 -1
- package/dist/client/assets/{checkbox-BTh_K87_.js → checkbox-BYgqHfbE.js} +1 -1
- package/dist/client/assets/{collection-detail-DM6Y21iP.js → collection-detail-BCzBqbUR.js} +1 -1
- package/dist/client/assets/{collection-display-button-BXsRpfWh.js → collection-display-button-CtGgHUwN.js} +1 -1
- package/dist/client/assets/{collection-search-BLwJ-m2r.js → collection-search-CS-ZVub-.js} +1 -1
- package/dist/client/assets/{collection-search-13gXcoNW.js → collection-search-D9AiUt0i.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-BooWJqsY.js → collection-table-wrapper-CuIF1tqK.js} +1 -1
- package/dist/client/assets/{collection-tabs-C2kDDRsi.js → collection-tabs-CQzwJ8u9.js} +1 -1
- package/dist/client/assets/{collections-_hjyrDNM.js → collections-CxHTq2dT.js} +1 -1
- package/dist/client/assets/{command-vxtKK455.js → command-s71Khs6g.js} +1 -1
- package/dist/client/assets/{connection-card-BxYJJKnz.js → connection-card-ICJdFYlE.js} +1 -1
- package/dist/client/assets/{connection-detail-Bbwh3ZPp.js → connection-detail-C-LieaDQ.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-MZU_9Qmb.js → connection-form-helpers-BWfgsLZZ.js} +1 -1
- package/dist/client/assets/{connections-CdIKHQiA.js → connections-CNXnRXJ2.js} +1 -1
- package/dist/client/assets/{constants-Bwo9TbsB.js → constants-BJnjE8Tt.js} +1 -1
- package/dist/client/assets/{constants-CQ_wYHud.js → constants-ajN1Bhug.js} +1 -1
- package/dist/client/assets/{dialog-qUGJw8fC.js → dialog-YE4SL2S_.js} +1 -1
- package/dist/client/assets/{domain-settings-PW3cTWJG.js → domain-settings-DjkUX6V3.js} +1 -1
- package/dist/client/assets/{drawer-C92DFVm0.js → drawer-DoyG2yiq.js} +1 -1
- package/dist/client/assets/{dropdown-menu-SKNeSVuW.js → dropdown-menu-CT4y7aY2.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-BcIicEBf.js → dynamic-plugin-layout-ButDequ-.js} +1 -1
- package/dist/client/assets/{empty-state-LwBr5UHb.js → empty-state-8HZoUHAZ.js} +1 -1
- package/dist/client/assets/{empty-state-E0el_m_Z.js → empty-state-BSrKgguR.js} +1 -1
- package/dist/client/assets/{extract-connection-data-DoQ8Agh8.js → extract-connection-data-D_uDRowj.js} +1 -1
- package/dist/client/assets/{features-CFVyOGN4.js → features-DEPC_xpZ.js} +1 -1
- package/dist/client/assets/{form-DcpGmWEm.js → form-BbmPNrg3.js} +1 -1
- package/dist/client/assets/{general-CfMy1R6k.js → general-D6g4KKmC.js} +1 -1
- package/dist/client/assets/{index-16QTCuVi.js → index-B5pffmvD.js} +3 -3
- package/dist/client/assets/{index-Bei9_KoS.js → index-B7ZBAwSD.js} +1 -1
- package/dist/client/assets/index-BBkns99x.js +1 -0
- package/dist/client/assets/{index-Kp_u_eOI.js → index-BEJTb0Vw.js} +1 -1
- package/dist/client/assets/{index-DWP35Bmu.js → index-BMNXmL0A.js} +1 -1
- package/dist/client/assets/{index-Cf47l9oa.js → index-BjPD6k7-.js} +1 -1
- package/dist/client/assets/{index-6CBqUZKF.js → index-BoZfrZ34.js} +1 -1
- package/dist/client/assets/{index-BLaDEfeN.js → index-BqwQgnOI.js} +1 -1
- package/dist/client/assets/{index-DSFZ7nsY.js → index-C7tDpZrl.js} +1 -1
- package/dist/client/assets/{index-BAywNAd0.js → index-CariFzvs.js} +2 -2
- package/dist/client/assets/{index-_iFpWniT.js → index-DMby3CEd.js} +1 -1
- package/dist/client/assets/{index-CzqHZVv3.js → index-D_1AR6r3.js} +1 -1
- package/dist/client/assets/{index-Uxv9KeQf.js → index-Dcc7hO3D.js} +1 -1
- package/dist/client/assets/{index-CnMeIIuF.js → index-DfKVv3Jm.js} +1 -1
- package/dist/client/assets/{index-GLonPniQ.js → index-Duwc2HjF.js} +1 -1
- package/dist/client/assets/{index-CHNkGrWb.js → index-FEqdxfIc.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-CsxksMd0.js → infiniteQueryObserver-B14O_xhx.js} +1 -1
- package/dist/client/assets/{input-BqrzTDvC.js → input-DHEAaYve.js} +1 -1
- package/dist/client/assets/{integration-icon-Cw-LLP9G.js → integration-icon-Ceb5m9KS.js} +1 -1
- package/dist/client/assets/{label-Cq6u2Lh-.js → label-BMzmJDQh.js} +1 -1
- package/dist/client/assets/{layout-CUERkpHe.js → layout-DOsauSuM.js} +1 -1
- package/dist/client/assets/{lean-canvas-recruit-modal-B99UeYIe.js → lean-canvas-recruit-modal-BkLS8u5W.js} +1 -1
- package/dist/client/assets/{login-CjZqIBoL.js → login-B-Yrcjhs.js} +1 -1
- package/dist/client/assets/{members-Bj8baHVz.js → members-C0mvo5fb.js} +1 -1
- package/dist/client/assets/{monaco-editor-BXagKiI7.js → monaco-editor-BagFQ75t.js} +1 -1
- package/dist/client/assets/{monitoring-stats-row-BkU2srVh.js → monitoring-stats-row-DDPUNMkL.js} +1 -1
- package/dist/client/assets/{oauth-callback-Cqf2XK5j.js → oauth-callback-DO6ysGop.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-DrfnGdmp.js → oauth-callback-ai-provider-BEuoh6UY.js} +1 -1
- package/dist/client/assets/{onboarding-D-Fll1Qd.js → onboarding-DKITn4vN.js} +1 -1
- package/dist/client/assets/{org-layout-Ctr8m-Xy.js → org-layout-Dk4WIIF4.js} +1 -1
- package/dist/client/assets/{org-plugin-layout-BhS0DGxL.js → org-plugin-layout-CLffcHJs.js} +1 -1
- package/dist/client/assets/{pair-D59ITUWs.js → pair-vGTs_zPg.js} +56 -56
- package/dist/client/assets/{plugin-empty-state-CqpHZZ90.js → plugin-empty-state-CmHCNawV.js} +1 -1
- package/dist/client/assets/{plugin-header-CfMDsQ5-.js → plugin-header-C9WSKk3D.js} +1 -1
- package/dist/client/assets/{plugin-layout-DApFJ0hx.js → plugin-layout-DOzo0-WT.js} +1 -1
- package/dist/client/assets/{popover-CIQ5nYbk.js → popover-5Qa5l709.js} +1 -1
- package/dist/client/assets/{profile--MuhnyFH.js → profile-CyjcpQTt.js} +1 -1
- package/dist/client/assets/{project-app-view-C6unfZ4i.js → project-app-view-BL-P3zUl.js} +1 -1
- package/dist/client/assets/registry-BlMP6ABP.js +2 -0
- package/dist/client/assets/{registry-layout-CdfbaMKP.js → registry-layout-CIMBhCba.js} +1 -1
- package/dist/client/assets/{required-auth-layout-DAS0oBtI.js → required-auth-layout-BOwcnbO9.js} +1 -1
- package/dist/client/assets/{reset-password-BI6L3oGg.js → reset-password-Cl6CDyqy.js} +1 -1
- package/dist/client/assets/{roles-C20gcBRH.js → roles-DTF2ANjI.js} +1 -1
- package/dist/client/assets/{scroll-area-CwefWQJz.js → scroll-area-HNGrspxG.js} +1 -1
- package/dist/client/assets/{search-input-Cw7qsY4D.js → search-input-BvZNM2RM.js} +1 -1
- package/dist/client/assets/{select-BsqOoRjy.js → select-C5MYEBtM.js} +1 -1
- package/dist/client/assets/{select-model-2XCyUhYh.js → select-model-_j0smQSE.js} +1 -1
- package/dist/client/assets/{settings-layout-CInduq_4.js → settings-layout-Dq4UX_n_.js} +1 -1
- package/dist/client/assets/{settings-section-a70NRysW.js → settings-section-COnpJzJz.js} +1 -1
- package/dist/client/assets/{shell-layout-vlCxg3wp.js → shell-layout-BnsXbGf-.js} +1 -1
- package/dist/client/assets/{skeleton-ut2Fjnfc.js → skeleton-BzKJgxvw.js} +1 -1
- package/dist/client/assets/{sso-DWQtkeci.js → sso-Dl81_azC.js} +1 -1
- package/dist/client/assets/{store-DzJ4uPv_.js → store-IYIgp3qV.js} +1 -1
- package/dist/client/assets/store-registry-BJ9XvOV4.js +2 -0
- package/dist/client/assets/{switch-BOLNOz2b.js → switch-HROyTNdj.js} +1 -1
- package/dist/client/assets/{table-DP_npJUh.js → table-IqV9GNGa.js} +1 -1
- package/dist/client/assets/{tabs-C14WE3bq.js → tabs-BPvd4P0n.js} +1 -1
- package/dist/client/assets/{task-status-FilXySGc.js → task-status-DZKELKFJ.js} +1 -1
- package/dist/client/assets/{textarea-CmJMc5JU.js → textarea-KDZuzqvR.js} +1 -1
- package/dist/client/assets/{toggle-group-Cw56io9g.js → toggle-group-DM97u04F.js} +1 -1
- package/dist/client/assets/{tools-list-BQ35DR0s.js → tools-list-kpR-DdJQ.js} +1 -1
- package/dist/client/assets/{tooltip-iWA8tsOt.js → tooltip-Dr3uY9D4.js} +1 -1
- package/dist/client/assets/{types-D1-bFUi0.js → types-mFMyaEXB.js} +1 -1
- package/dist/client/assets/{use-ai-providers-O6PDM1es.js → use-ai-providers-D5NHg2Ru.js} +1 -1
- package/dist/client/assets/{use-collections-CB-s1Fe8.js → use-collections-B9qAfcJY.js} +1 -1
- package/dist/client/assets/{use-connection-BRDOgzI9.js → use-connection-Dw3HjptL.js} +1 -1
- package/dist/client/assets/{use-copy-D_tdIgNn.js → use-copy-CpV0fKqM.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-SQq_0wwz.js → use-create-virtual-mcp-GSBx9joR.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-gWQ7TcNv.js → use-decopilot-events-Lyv24iLh.js} +1 -1
- package/dist/client/assets/{use-delete-connection-BoFquqB-.js → use-delete-connection-DJQOIuEz.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-CXsf__mT.js → use-infinite-scroll-C-7Y6eBv.js} +1 -1
- package/dist/client/assets/{use-list-state-vDn3VfBt.js → use-list-state-CuoLDS8v.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-Cqhx2HL6.js → use-mcp-tools-C2NC0OB_.js} +1 -1
- package/dist/client/assets/{use-members-CUqwI0-t.js → use-members-DLx75xut.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-CnLUwuJt.js → use-navigate-to-agent-CxjZQ1fq.js} +1 -1
- package/dist/client/assets/{use-org-auth-client-CEEu3RoZ.js → use-org-auth-client-CBU51XQa.js} +1 -1
- package/dist/client/assets/{use-org-sso-2VDp-rZw.js → use-org-sso-B61uYZKs.js} +1 -1
- package/dist/client/assets/{use-organization-roles-BPmOA_FM.js → use-organization-roles-DMz4JpGH.js} +1 -1
- package/dist/client/assets/{use-organization-settings-Bm3oyYWt.js → use-organization-settings-B81E2rNE.js} +1 -1
- package/dist/client/assets/{use-registry-connections-GaolpGHd.js → use-registry-connections-vur0Zrsf.js} +1 -1
- package/dist/client/assets/{use-status-sounds-CN6Aqzsb.js → use-status-sounds-DkEi-BmD.js} +1 -1
- package/dist/client/assets/{use-tasks-CvLwec2V.js → use-tasks-CIfTcsjC.js} +1 -1
- package/dist/client/assets/{use-view-mode-Cfb_2w0E.js → use-view-mode-NasGzpHg.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-CTsmN-sy.js → use-virtual-mcp-9JsEXBge.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-BOZnPi0L.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-M_8yh3H4.js +1 -0
- package/dist/client/assets/{user-CtOwtNK9.js → user-pxLMJc6I.js} +1 -1
- package/dist/client/assets/{view-mode-toggle-cM3ZdaYG.js → view-mode-toggle-_crWUr2e.js} +1 -1
- package/dist/client/assets/{workflow-DFUEo5vC.js → workflow-DvosQfQf.js} +1 -1
- package/dist/client/assets/workflow-detail-CeNwzbGr.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +1 -1
- package/dist/server/node_modules/postgres-date/index.js +116 -0
- package/dist/server/node_modules/{postgres-interval → postgres-date}/package.json +8 -11
- package/dist/server/node_modules/postgres-date/readme.md +49 -0
- package/package.json +1 -1
- package/dist/client/assets/ai-providers-Beu_Ygx3.js +0 -1
- package/dist/client/assets/index-BdJA1qE_.js +0 -1
- package/dist/client/assets/registry-CKN348lV.js +0 -2
- package/dist/client/assets/store-registry-DsM1-Xx4.js +0 -2
- package/dist/client/assets/useInfiniteQuery-B47NEP-H.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-DKOsvjoC.js +0 -1
- package/dist/client/assets/workflow-detail-Dg_TbZT2.js +0 -1
- package/dist/server/node_modules/mimic-fn/index.d.ts +0 -54
- package/dist/server/node_modules/mimic-fn/index.js +0 -13
- package/dist/server/node_modules/mimic-fn/license +0 -9
- package/dist/server/node_modules/mimic-fn/package.json +0 -42
- package/dist/server/node_modules/mimic-fn/readme.md +0 -69
- package/dist/server/node_modules/postgres-interval/index.d.ts +0 -20
- package/dist/server/node_modules/postgres-interval/index.js +0 -125
- package/dist/server/node_modules/postgres-interval/readme.md +0 -48
- package/dist/server/node_modules/xtend/.jshintrc +0 -30
- package/dist/server/node_modules/xtend/LICENSE +0 -20
- package/dist/server/node_modules/xtend/README.md +0 -32
- package/dist/server/node_modules/xtend/immutable.js +0 -19
- package/dist/server/node_modules/xtend/mutable.js +0 -17
- package/dist/server/node_modules/xtend/package.json +0 -55
- package/dist/server/node_modules/xtend/test.js +0 -103
- /package/dist/server/node_modules/{postgres-interval → postgres-date}/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-CariFzvs.js";import{P as x}from"./index-D_1AR6r3.js";import{d as I}from"./use-organization-settings-B81E2rNE.js";import{S as Q}from"./switch-HROyTNdj.js";import{n as R}from"./Container-CEV9uk-Z.js";import{b as w,S as z,a as F,d as M}from"./settings-section-COnpJzJz.js";import"./tooltip-Dr3uY9D4.js";import"./X-Cg5jWZ6W.js";import"./constants-ajN1Bhug.js";import"./card-DL6KKkK7.js";import"./ArrowUpRight-DGFb4j2X.js";function N(){const e=b.c(17),{org:t,project:s}=k(),o=E();let u;e[0]!==s.enabledPlugins?(u=s.enabledPlugins??[],e[0]=s.enabledPlugins,e[1]=u):u=e[1];const c=u,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 d=new Set(c);r?d.add(n):d.delete(n),l.mutate({enabled_plugins:Array.from(d)},{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),d=C(n.id),h=c.includes(n.id);return i.jsx(w,{title:r?.label??n.id,description:d??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-CariFzvs.js";import{L as N}from"./label-BMzmJDQh.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 re,s as ce,o as de,r as U,z as me,C as ue,a as fe,t as Y,x as q,K as te,j as s,B as K,H as ge,J as W,e as L,c as xe,M as pe}from"./index-BAywNAd0.js";import{P as V}from"./index-CzqHZVv3.js";import{u as he}from"./use-org-auth-client-CEEu3RoZ.js";import{A as be}from"./avatar-DHedl4lM.js";import{I as je}from"./input-BqrzTDvC.js";import{S as X,a as Z,b as Q,c as ie,d as ve}from"./settings-section-a70NRysW.js";import{D as Se}from"./domain-settings-PW3cTWJG.js";import{u as ye,a as se,D as Ne,c as Ce,S as we,v as _e,K as ze,P as De,d as Ae,C as Pe,s as ke,b as Ie,e as Ee}from"./collection-search-BLwJ-m2r.js";import{W as ee,i as Oe}from"./constants-CQ_wYHud.js";import{b as le}from"./use-virtual-mcp-CTsmN-sy.js";import{b as Te,P as Re,a as Fe}from"./popover-CIQ5nYbk.js";import{S as Le}from"./skeleton-ut2Fjnfc.js";import{z as $e}from"./agent-icon-BhmyvzVy.js";import{s as Me}from"./Plus-C7kl4UV6.js";import{a as ae}from"./Users03-BhdZR1Z1.js";import{i as He}from"./X-DgFNaccu.js";import{I as J}from"./integration-icon-Cw-LLP9G.js";import{u as Ke,c as Ue}from"./use-organization-settings-Bm3oyYWt.js";import"./tooltip-iWA8tsOt.js";import"./User01-C1foHOaz.js";import"./card-DRRYnLR5.js";import"./ArrowUpRight-B1eJ8Zux.js";import"./unwrap-tool-result-BYXdCQMg.js";import"./switch-BOLNOz2b.js";import"./SearchMd-CE8VI9gC.js";import"./use-collections-CB-s1Fe8.js";import"./AlertCircle-TmMuXcjl.js";import"./Tool01-w4UQOYN_.js";import"./XClose-BkeTzjOp.js";import"./RefreshCcw01-CrQnDm5g.js";import"./ArrowNarrowLeft-XQKT7KRo.js";import"./XCircle-D0VmL_m9.js";import"./ZapSquare-CaSKDWHD.js";import"./CheckCircle-CPpusm9-.js";import"./ChevronDown-XsMPED_o.js";import"./ChevronRight-DvnZfu1J.js";import"./ChevronUp-g5JeXzsM.js";import"./DotsVertical-BOPp4_Zm.js";import"./Container-D8zDQGz9.js";import"./Star01-CoecGSHu.js";import"./Palette-BGUZxjCc.js";import"./LinkExternal01-CGJf1W_Z.js";import"./Lock01-LdcfCIRL.js";import"./Sun-D-OJyv5-.js";import"./Play-DADQfe47.js";import"./Settings02-_WxqBg1B.js";import"./Shield01-CieEV22y.js";import"./Trash01-O1QoDagR.js";import"./Zap-DUFASc4_.js";const qe=ge({name:W().min(1,"Name is required").max(255,"Name is too long"),slug:W().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:W().optional()});function Be(t){const e=L.c(13),{value:l,onChange:i,name:u,disabled:a}=t,n=U.useRef(null);let v;e[0]===Symbol.for("react.memo_cache_sentinel")?(v=()=>n.current?.click(),e[0]=v):v=e[0];const _=v;let S;e[1]!==i?(S=z=>{const x=z.target.files?.[0];if(!x)return;if(x.size>2097152){q.error("Image must be smaller than 2MB");return}const h=new FileReader;h.onerror=Ge,h.onloadend=()=>{h.result&&i(h.result),n.current&&(n.current.value="")},h.readAsDataURL(x)},e[1]=i,e[2]=S):S=e[2];const r=S;let d;e[3]!==a||e[4]!==r?(d=s.jsx("input",{ref:n,type:"file",accept:"image/*",onChange:r,className:"hidden",disabled:a}),e[3]=a,e[4]=r,e[5]=d):d=e[5];const o=l||void 0,f=u??"?";let m;e[6]!==o||e[7]!==f?(m=s.jsx(be,{url:o,fallback:f,shape:"square",size:"base"}),e[6]=o,e[7]=f,e[8]=m):m=e[8];let g;return e[9]!==a||e[10]!==d||e[11]!==m?(g=s.jsxs("button",{type:"button",onClick:_,disabled:a,className:"rounded-lg overflow-hidden hover:ring-2 hover:ring-border transition-all disabled:opacity-50","aria-label":"Upload organization logo",children:[d,m]}),e[9]=a,e[10]=d,e[11]=m,e[12]=g):g=e[12],g}function Ge(){return q.error("Failed to read image")}function Ve(){const t=re(),{org:e}=ce(),l=he(),i=de(),[u,a]=U.useState(!1),n=me({resolver:ue(qe),values:{name:e.name??"",slug:e.slug??"",logo:e.logo??""}}),v=fe({mutationFn:async o=>{const f={name:o.name,slug:o.slug};o.logo&&(f.logo=o.logo);const m=await l.organization.update({data:f});if(m?.error)throw new Error(m.error.message||"Failed to update organization");return m},onSuccess:o=>{Y("organization_settings_updated",{organization_id:e.id,fields:Object.keys(n.formState.dirtyFields)}),i.invalidateQueries({queryKey:te.organizations()}),i.invalidateQueries({queryKey:te.activeOrganization(e.slug)}),q.success("Organization settings updated successfully"),o?.data?.slug&&o.data.slug!==e.slug&&t({to:"/$org/settings/general",params:{org:o.data.slug}})},onError:o=>{Y("organization_settings_update_failed",{organization_id:e.id,fields:Object.keys(n.formState.dirtyFields),error:o instanceof Error?o.message:String(o)}),q.error(o instanceof Error?o.message:"Failed to update organization")},onSettled:()=>{a(!1)}}),_=o=>{a(!0),v.mutate(o)},S=n.formState.isDirty,r=n.formState.errors,d=typeof window<"u"?`${window.location.host}/`:"";return s.jsx("form",{onSubmit:n.handleSubmit(_),className:"flex flex-col gap-3",children:s.jsx(X,{children:s.jsxs(Z,{children:[s.jsx(Q,{title:"Logo",description:"Recommended size is 256x256px",action:s.jsx(Be,{value:n.watch("logo"),onChange:o=>n.setValue("logo",o??"",{shouldDirty:!0}),name:n.watch("name"),disabled:u})}),s.jsx(Q,{title:"Name",action:s.jsx(je,{id:"org-name",...n.register("name"),placeholder:"Organization name",disabled:u,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:[d&&s.jsx("span",{className:"pl-3 text-sm text-muted-foreground select-none",children:d}),s.jsx("input",{id:"org-slug",...n.register("slug"),placeholder:"my-organization",disabled:u,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:o=>{const f=o.target.value.toLowerCase().replace(/[^a-z0-9-]/g,"");n.setValue("slug",f,{shouldDirty:!0,shouldTouch:!0,shouldValidate:!0})}})]})}),(r.name||r.slug||r.logo)&&s.jsxs("div",{className:"px-5 pb-3 flex flex-col gap-1",children:[r.name&&s.jsx("p",{className:"text-xs text-destructive",children:r.name.message}),r.slug&&s.jsx("p",{className:"text-xs text-destructive",children:r.slug.message}),r.logo&&s.jsx("p",{className:"text-xs text-destructive",children:r.logo.message})]}),S&&s.jsxs(ie,{children:[s.jsx(K,{type:"button",variant:"outline",size:"sm",onClick:()=>n.reset(),disabled:u,children:"Cancel"}),s.jsx(K,{type:"submit",disabled:u,size:"sm",children:u?"Saving…":"Save"})]})]})})})}const ne=["site-editor","site-diagnostics","ai-image","ai-research"],oe=8;function We(t,e,l){const i=e.find(a=>a.id===t);if(i)return{id:i.id,title:i.title,icon:i.icon,kind:"template"};const u=l.find(a=>a.id===t);return u?{id:t,title:u.title,icon:u.icon??null,kind:"custom"}:{id:t,title:t,icon:null,kind:"missing"}}function Qe(t){const e=L.c(39),{agent:l,onRemove:i}=t;let u;e[0]!==l.id?(u={id:l.id},e[0]=l.id,e[1]=u):u=e[1];const{attributes:a,listeners:n,setNodeRef:v,transform:_,transition:S,isDragging:r}=Ae(u);let d;e[2]!==_?(d=Pe.Transform.toString(_),e[2]=_,e[3]=d):d=e[3];const o=r?.5:void 0,f=r?100:void 0;let m;e[4]!==d||e[5]!==o||e[6]!==f||e[7]!==S?(m={transform:d,transition:S,opacity:o,zIndex:f},e[4]=d,e[5]=o,e[6]=f,e[7]=S,e[8]=m):m=e[8];const g=m,z=r&&"shadow-lg";let x;e[9]!==z?(x=xe("flex items-center gap-3 px-3 py-2 rounded-lg border border-border bg-background",z),e[9]=z,e[10]=x):x=e[10];const h=`Drag to reorder ${l.title}`;let D;e[11]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx($e,{size:14}),e[11]=D):D=e[11];let k;e[12]!==a||e[13]!==n||e[14]!==h?(k=s.jsx("button",{type:"button",...a,...n,className:"text-muted-foreground hover:text-foreground cursor-grab active:cursor-grabbing","aria-label":h,children:D}),e[12]=a,e[13]=n,e[14]=h,e[15]=k):k=e[15];let y;e[16]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx(ae,{size:14}),e[16]=y):y=e[16];let C;e[17]!==l.icon||e[18]!==l.title?(C=s.jsx(J,{icon:l.icon,name:l.title,size:"xs",fallbackIcon:y}),e[17]=l.icon,e[18]=l.title,e[19]=C):C=e[19];let b;e[20]!==l.title?(b=s.jsx("span",{className:"text-sm text-foreground truncate",children:l.title}),e[20]=l.title,e[21]=b):b=e[21];const w=l.kind==="template"?"Template":l.kind==="custom"?"Custom agent":"Unavailable";let p;e[22]!==w?(p=s.jsx("span",{className:"text-xs text-muted-foreground",children:w}),e[22]=w,e[23]=p):p=e[23];let j;e[24]!==b||e[25]!==p?(j=s.jsxs("div",{className:"flex flex-col min-w-0 flex-1",children:[b,p]}),e[24]=b,e[25]=p,e[26]=j):j=e[26];const I=`Remove ${l.title}`;let A;e[27]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(He,{size:14}),e[27]=A):A=e[27];let N;e[28]!==i||e[29]!==I?(N=s.jsx("button",{type:"button",onClick:i,className:"text-muted-foreground hover:text-foreground p-1 rounded","aria-label":I,children:A}),e[28]=i,e[29]=I,e[30]=N):N=e[30];let P;return e[31]!==v||e[32]!==g||e[33]!==k||e[34]!==C||e[35]!==j||e[36]!==N||e[37]!==x?(P=s.jsxs("div",{ref:v,style:g,className:x,children:[k,C,j,N]}),e[31]=v,e[32]=g,e[33]=k,e[34]=C,e[35]=j,e[36]=N,e[37]=x,e[38]=P):P=e[38],P}function Ye(t){const e=L.c(48),{selectedIds:l,onAdd:i}=t,[u,a]=U.useState(!1),[n,v]=U.useState(""),_=le();let S;e[0]!==l?(S=new Set(l),e[0]=l,e[1]=S):S=e[1];const r=S;let d,o,f,m,g,z,x,h,D,k,y,C,b;if(e[2]!==_||e[3]!==i||e[4]!==u||e[5]!==n||e[6]!==r){const A=n.toLowerCase();m=ee.filter(c=>!r.has(c.id)&&(!n||c.title.toLowerCase().includes(A)));let N;e[20]!==r?(N=c=>c.id!==null&&!Oe(c.id)&&!r.has(c.id),e[20]=r,e[21]=N):N=e[21],f=_.filter(N).filter(c=>!n||c.title.toLowerCase().includes(A));let P;e[22]!==i?(P=c=>{i(c),a(!1),v("")},e[22]=i,e[23]=P):P=e[23];const O=P;o=Te,C=u,b=a,e[24]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(Re,{asChild:!0,children:s.jsxs(K,{type:"button",variant:"outline",size:"sm",children:[s.jsx(Me,{size:14}),"Add agent"]})}),e[24]=g):g=e[24],d=Fe,D="w-[320px] p-0 overflow-hidden",k="start",e[25]!==n?(y=s.jsx(Ee,{value:n,onChange:v,placeholder:"Search agents..."}),e[25]=n,e[26]=y):y=e[26],z="max-h-[320px] overflow-y-auto p-2 flex flex-col gap-3",x=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:"Templates"}),m.map(c=>s.jsxs("button",{type:"button",onClick:()=>O(c.id),className:"flex items-center gap-2 px-2 py-1.5 rounded-md hover:bg-accent text-left",children:[s.jsx(J,{icon:c.icon,name:c.title,size:"xs"}),s.jsx("span",{className:"text-sm truncate",children:c.title})]},c.id))]}),h=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:"Custom agents"}),f.map(c=>s.jsxs("button",{type:"button",onClick:()=>O(c.id),className:"flex items-center gap-2 px-2 py-1.5 rounded-md hover:bg-accent text-left",children:[s.jsx(J,{icon:c.icon,name:c.title,size:"xs",fallbackIcon:s.jsx(ae,{size:14})}),s.jsx("span",{className:"text-sm truncate",children:c.title})]},c.id))]}),e[2]=_,e[3]=i,e[4]=u,e[5]=n,e[6]=r,e[7]=d,e[8]=o,e[9]=f,e[10]=m,e[11]=g,e[12]=z,e[13]=x,e[14]=h,e[15]=D,e[16]=k,e[17]=y,e[18]=C,e[19]=b}else d=e[7],o=e[8],f=e[9],m=e[10],g=e[11],z=e[12],x=e[13],h=e[14],D=e[15],k=e[16],y=e[17],C=e[18],b=e[19];let w;e[27]!==f||e[28]!==m.length||e[29]!==n?(w=m.length===0&&f.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]=f,e[28]=m.length,e[29]=n,e[30]=w):w=e[30];let p;e[31]!==w||e[32]!==z||e[33]!==x||e[34]!==h?(p=s.jsxs("div",{className:z,children:[x,h,w]}),e[31]=w,e[32]=z,e[33]=x,e[34]=h,e[35]=p):p=e[35];let j;e[36]!==d||e[37]!==p||e[38]!==D||e[39]!==k||e[40]!==y?(j=s.jsxs(d,{className:D,align:k,children:[y,p]}),e[36]=d,e[37]=p,e[38]=D,e[39]=k,e[40]=y,e[41]=j):j=e[41];let I;return e[42]!==o||e[43]!==g||e[44]!==j||e[45]!==C||e[46]!==b?(I=s.jsxs(o,{open:C,onOpenChange:b,children:[g,j]}),e[42]=o,e[43]=g,e[44]=j,e[45]=C,e[46]=b,e[47]=I):I=e[47],I}function Je(){const t=L.c(61),e=Ke(),l=le(),i=Ue();let u;t[0]!==e?.ids?(u=e?.ids??[...ne],t[0]=e?.ids,t[1]=u):u=t[1];const a=u,[n,v]=U.useState(a);let _;t[2]!==n||t[3]!==a?(_=n.length!==a.length||n.some((E,T)=>E!==a[T]),t[2]=n,t[3]=a,t[4]=_):_=t[4];const S=_;let r;t[5]===Symbol.for("react.memo_cache_sentinel")?(r={activationConstraint:{distance:5}},t[5]=r):r=t[5];let d;t[6]===Symbol.for("react.memo_cache_sentinel")?(d={coordinateGetter:ke},t[6]=d):d=t[6];const o=ye(se(De,r),se(ze,d));let f;t[7]!==n?(f=E=>{const{active:T,over:R}=E;if(!R||T.id===R.id)return;const F=n.indexOf(T.id),G=n.indexOf(R.id);F===-1||G===-1||v(Ie([...n],F,G))},t[7]=n,t[8]=f):f=t[8];const m=f;let g;t[9]!==n?(g=E=>{n.includes(E)||v([...n,E])},t[9]=n,t[10]=g):g=t[10];const z=g;let x;t[11]!==n?(x=E=>{v(n.filter(T=>T!==E))},t[11]=n,t[12]=x):x=t[12];const h=x;let D;t[13]===Symbol.for("react.memo_cache_sentinel")?(D=()=>{v([...ne])},t[13]=D):D=t[13];const k=D;let y;t[14]!==n||t[15]!==i?(y=()=>{i.mutate({ids:n},{onSuccess:()=>{Y("default_home_agents_updated",{count:n.length,template_count:n.filter(Ze).length}),q.success("Default home agents updated")},onError:Xe})},t[14]=n,t[15]=i,t[16]=y):y=t[16];const C=y;let b,w,p,j,I,A,N;if(t[17]!==l||t[18]!==n||t[19]!==m||t[20]!==h||t[21]!==o||t[22]!==i.isPending){let E;t[30]!==l?(E=F=>We(F,ee,l),t[30]=l,t[31]=E):E=t[31];const T=n.map(E);p=Math.max(0,n.length-oe),w=X,I="Default home agents";let R;t[32]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx(pe,{size:14}),t[32]=R):R=t[32],t[33]!==i.isPending?(A=s.jsxs(K,{type:"button",variant:"ghost",size:"sm",onClick:k,disabled:i.isPending,children:[R,"Reset defaults"]}),t[33]=i.isPending,t[34]=A):A=t[34],b=Z,N="px-5 py-5 flex flex-col gap-3",j=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(Ne,{sensors:o,collisionDetection:Ce,onDragEnd:m,children:s.jsx(we,{items:n,strategy:_e,children:s.jsx("div",{className:"flex flex-col gap-1.5",children:T.map((F,G)=>s.jsxs("div",{className:"flex flex-col gap-1.5",children:[G===oe&&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(Qe,{agent:F,onRemove:()=>h(F.id)})]},F.id))})})}),t[17]=l,t[18]=n,t[19]=m,t[20]=h,t[21]=o,t[22]=i.isPending,t[23]=b,t[24]=w,t[25]=p,t[26]=j,t[27]=I,t[28]=A,t[29]=N}else b=t[23],w=t[24],p=t[25],j=t[26],I=t[27],A=t[28],N=t[29];let P;t[35]!==n||t[36]!==z?(P=s.jsx(Ye,{selectedIds:n,onAdd:z}),t[35]=n,t[36]=z,t[37]=P):P=t[37];let O;t[38]!==p?(O=p>0&&s.jsxs("span",{className:"text-xs text-muted-foreground",children:[p," agent",p===1?"":"s"," won't fit on the home view"]}),t[38]=p,t[39]=O):O=t[39];let c;t[40]!==P||t[41]!==O?(c=s.jsxs("div",{className:"flex items-center justify-between",children:[P,O]}),t[40]=P,t[41]=O,t[42]=c):c=t[42];let $;t[43]!==j||t[44]!==c||t[45]!==N?($=s.jsxs("div",{className:N,children:[j,c]}),t[43]=j,t[44]=c,t[45]=N,t[46]=$):$=t[46];let M;t[47]!==C||t[48]!==a||t[49]!==S||t[50]!==i.isPending?(M=S&&s.jsxs(ie,{children:[s.jsx(K,{type:"button",variant:"outline",onClick:()=>v(a),disabled:i.isPending,children:"Cancel"}),s.jsx(K,{type:"button",onClick:C,disabled:i.isPending,children:i.isPending?"Saving…":"Save"})]}),t[47]=C,t[48]=a,t[49]=S,t[50]=i.isPending,t[51]=M):M=t[51];let H;t[52]!==b||t[53]!==$||t[54]!==M?(H=s.jsxs(b,{children:[$,M]}),t[52]=b,t[53]=$,t[54]=M,t[55]=H):H=t[55];let B;return t[56]!==w||t[57]!==I||t[58]!==A||t[59]!==H?(B=s.jsx(w,{title:I,actions:A,children:H}),t[56]=w,t[57]=I,t[58]=A,t[59]=H,t[60]=B):B=t[60],B}function Xe(t){q.error(t instanceof Error?t.message:"Failed to update default home agents")}function Ze(t){return ee.some(e=>e.id===t)}function et(){const t=L.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(X,{title:"Default home agents",children:s.jsx(Z,{children:s.jsx("div",{className:"px-5 py-5 flex flex-col gap-2",children:Array.from({length:4}).map(tt)})})}),t[0]=e):e=t[0],e}function tt(t,e){return s.jsx(Le,{className:"h-12 w-full rounded-lg"},e)}function st(){const t=L.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(U.Suspense,{fallback:s.jsx(et,{}),children:s.jsx(Je,{})}),t[0]=e):e=t[0],e}function nt(){const t=L.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(V,{children:s.jsx(V.Content,{children:s.jsx(V.Body,{children:s.jsxs(ve,{children:[s.jsx(V.Title,{children:"Organization"}),s.jsx(Ve,{}),s.jsx(Se,{}),s.jsx(st,{})]})})})}),t[0]=e):e=t[0],e}function Zt(){const t=L.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(nt,{}),t[0]=e):e=t[0],e}export{Zt as default};
|
|
1
|
+
import{f as re,s as ce,o as de,r as U,z as me,C as ue,a as fe,t as Y,x as q,K as te,j as s,B as K,H as ge,J as W,e as L,c as xe,M as pe}from"./index-CariFzvs.js";import{P as V}from"./index-D_1AR6r3.js";import{u as he}from"./use-org-auth-client-CBU51XQa.js";import{A as be}from"./avatar-Di9GD8dd.js";import{I as je}from"./input-DHEAaYve.js";import{S as X,a as Z,b as Q,c as ie,d as ve}from"./settings-section-COnpJzJz.js";import{D as Se}from"./domain-settings-DjkUX6V3.js";import{u as ye,a as se,D as Ne,c as Ce,S as we,v as _e,K as ze,P as De,d as Ae,C as Pe,s as ke,b as Ie,e as Ee}from"./collection-search-CS-ZVub-.js";import{W as ee,i as Oe}from"./constants-ajN1Bhug.js";import{b as le}from"./use-virtual-mcp-9JsEXBge.js";import{b as Te,P as Re,a as Fe}from"./popover-5Qa5l709.js";import{S as Le}from"./skeleton-BzKJgxvw.js";import{z as $e}from"./agent-icon-BhGa08Fl.js";import{s as Me}from"./Plus-CCywDmjg.js";import{a as ae}from"./Users03-CrrZL9MY.js";import{i as He}from"./X-Cg5jWZ6W.js";import{I as J}from"./integration-icon-Ceb5m9KS.js";import{u as Ke,c as Ue}from"./use-organization-settings-B81E2rNE.js";import"./tooltip-Dr3uY9D4.js";import"./User01-CKOZDyFQ.js";import"./card-DL6KKkK7.js";import"./ArrowUpRight-DGFb4j2X.js";import"./unwrap-tool-result-BYXdCQMg.js";import"./switch-HROyTNdj.js";import"./SearchMd-OYsWp4RC.js";import"./use-collections-B9qAfcJY.js";import"./AlertCircle-DGWwcoQZ.js";import"./Tool01-CB2DUdHU.js";import"./XClose-N2VTvn-z.js";import"./RefreshCcw01-CtjTkTf4.js";import"./ArrowNarrowLeft-6CbLfe6R.js";import"./XCircle-m0QK52Tq.js";import"./ZapSquare-CpCXmnKj.js";import"./CheckCircle-TABxOmV2.js";import"./ChevronDown-YpILLXr3.js";import"./ChevronRight-C5cwFzdi.js";import"./ChevronUp-D3ACbD1g.js";import"./DotsVertical-uATdSTpl.js";import"./Container-CEV9uk-Z.js";import"./Star01-BP3IsurF.js";import"./Palette-BXvnxfG9.js";import"./LinkExternal01-DRPBZiOD.js";import"./Lock01-BwE9ru6U.js";import"./Sun-beuoApqH.js";import"./Play-DgZHjcoJ.js";import"./Settings02-DxdBNXj6.js";import"./Shield01-Qjvq_pQT.js";import"./Trash01-Rux2RMYE.js";import"./Zap-DHpdmH1S.js";const qe=ge({name:W().min(1,"Name is required").max(255,"Name is too long"),slug:W().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:W().optional()});function Be(t){const e=L.c(13),{value:l,onChange:i,name:u,disabled:a}=t,n=U.useRef(null);let v;e[0]===Symbol.for("react.memo_cache_sentinel")?(v=()=>n.current?.click(),e[0]=v):v=e[0];const _=v;let S;e[1]!==i?(S=z=>{const x=z.target.files?.[0];if(!x)return;if(x.size>2097152){q.error("Image must be smaller than 2MB");return}const h=new FileReader;h.onerror=Ge,h.onloadend=()=>{h.result&&i(h.result),n.current&&(n.current.value="")},h.readAsDataURL(x)},e[1]=i,e[2]=S):S=e[2];const r=S;let d;e[3]!==a||e[4]!==r?(d=s.jsx("input",{ref:n,type:"file",accept:"image/*",onChange:r,className:"hidden",disabled:a}),e[3]=a,e[4]=r,e[5]=d):d=e[5];const o=l||void 0,f=u??"?";let m;e[6]!==o||e[7]!==f?(m=s.jsx(be,{url:o,fallback:f,shape:"square",size:"base"}),e[6]=o,e[7]=f,e[8]=m):m=e[8];let g;return e[9]!==a||e[10]!==d||e[11]!==m?(g=s.jsxs("button",{type:"button",onClick:_,disabled:a,className:"rounded-lg overflow-hidden hover:ring-2 hover:ring-border transition-all disabled:opacity-50","aria-label":"Upload organization logo",children:[d,m]}),e[9]=a,e[10]=d,e[11]=m,e[12]=g):g=e[12],g}function Ge(){return q.error("Failed to read image")}function Ve(){const t=re(),{org:e}=ce(),l=he(),i=de(),[u,a]=U.useState(!1),n=me({resolver:ue(qe),values:{name:e.name??"",slug:e.slug??"",logo:e.logo??""}}),v=fe({mutationFn:async o=>{const f={name:o.name,slug:o.slug};o.logo&&(f.logo=o.logo);const m=await l.organization.update({data:f});if(m?.error)throw new Error(m.error.message||"Failed to update organization");return m},onSuccess:o=>{Y("organization_settings_updated",{organization_id:e.id,fields:Object.keys(n.formState.dirtyFields)}),i.invalidateQueries({queryKey:te.organizations()}),i.invalidateQueries({queryKey:te.activeOrganization(e.slug)}),q.success("Organization settings updated successfully"),o?.data?.slug&&o.data.slug!==e.slug&&t({to:"/$org/settings/general",params:{org:o.data.slug}})},onError:o=>{Y("organization_settings_update_failed",{organization_id:e.id,fields:Object.keys(n.formState.dirtyFields),error:o instanceof Error?o.message:String(o)}),q.error(o instanceof Error?o.message:"Failed to update organization")},onSettled:()=>{a(!1)}}),_=o=>{a(!0),v.mutate(o)},S=n.formState.isDirty,r=n.formState.errors,d=typeof window<"u"?`${window.location.host}/`:"";return s.jsx("form",{onSubmit:n.handleSubmit(_),className:"flex flex-col gap-3",children:s.jsx(X,{children:s.jsxs(Z,{children:[s.jsx(Q,{title:"Logo",description:"Recommended size is 256x256px",action:s.jsx(Be,{value:n.watch("logo"),onChange:o=>n.setValue("logo",o??"",{shouldDirty:!0}),name:n.watch("name"),disabled:u})}),s.jsx(Q,{title:"Name",action:s.jsx(je,{id:"org-name",...n.register("name"),placeholder:"Organization name",disabled:u,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:[d&&s.jsx("span",{className:"pl-3 text-sm text-muted-foreground select-none",children:d}),s.jsx("input",{id:"org-slug",...n.register("slug"),placeholder:"my-organization",disabled:u,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:o=>{const f=o.target.value.toLowerCase().replace(/[^a-z0-9-]/g,"");n.setValue("slug",f,{shouldDirty:!0,shouldTouch:!0,shouldValidate:!0})}})]})}),(r.name||r.slug||r.logo)&&s.jsxs("div",{className:"px-5 pb-3 flex flex-col gap-1",children:[r.name&&s.jsx("p",{className:"text-xs text-destructive",children:r.name.message}),r.slug&&s.jsx("p",{className:"text-xs text-destructive",children:r.slug.message}),r.logo&&s.jsx("p",{className:"text-xs text-destructive",children:r.logo.message})]}),S&&s.jsxs(ie,{children:[s.jsx(K,{type:"button",variant:"outline",size:"sm",onClick:()=>n.reset(),disabled:u,children:"Cancel"}),s.jsx(K,{type:"submit",disabled:u,size:"sm",children:u?"Saving…":"Save"})]})]})})})}const ne=["site-editor","site-diagnostics","ai-image","ai-research"],oe=8;function We(t,e,l){const i=e.find(a=>a.id===t);if(i)return{id:i.id,title:i.title,icon:i.icon,kind:"template"};const u=l.find(a=>a.id===t);return u?{id:t,title:u.title,icon:u.icon??null,kind:"custom"}:{id:t,title:t,icon:null,kind:"missing"}}function Qe(t){const e=L.c(39),{agent:l,onRemove:i}=t;let u;e[0]!==l.id?(u={id:l.id},e[0]=l.id,e[1]=u):u=e[1];const{attributes:a,listeners:n,setNodeRef:v,transform:_,transition:S,isDragging:r}=Ae(u);let d;e[2]!==_?(d=Pe.Transform.toString(_),e[2]=_,e[3]=d):d=e[3];const o=r?.5:void 0,f=r?100:void 0;let m;e[4]!==d||e[5]!==o||e[6]!==f||e[7]!==S?(m={transform:d,transition:S,opacity:o,zIndex:f},e[4]=d,e[5]=o,e[6]=f,e[7]=S,e[8]=m):m=e[8];const g=m,z=r&&"shadow-lg";let x;e[9]!==z?(x=xe("flex items-center gap-3 px-3 py-2 rounded-lg border border-border bg-background",z),e[9]=z,e[10]=x):x=e[10];const h=`Drag to reorder ${l.title}`;let D;e[11]===Symbol.for("react.memo_cache_sentinel")?(D=s.jsx($e,{size:14}),e[11]=D):D=e[11];let k;e[12]!==a||e[13]!==n||e[14]!==h?(k=s.jsx("button",{type:"button",...a,...n,className:"text-muted-foreground hover:text-foreground cursor-grab active:cursor-grabbing","aria-label":h,children:D}),e[12]=a,e[13]=n,e[14]=h,e[15]=k):k=e[15];let y;e[16]===Symbol.for("react.memo_cache_sentinel")?(y=s.jsx(ae,{size:14}),e[16]=y):y=e[16];let C;e[17]!==l.icon||e[18]!==l.title?(C=s.jsx(J,{icon:l.icon,name:l.title,size:"xs",fallbackIcon:y}),e[17]=l.icon,e[18]=l.title,e[19]=C):C=e[19];let b;e[20]!==l.title?(b=s.jsx("span",{className:"text-sm text-foreground truncate",children:l.title}),e[20]=l.title,e[21]=b):b=e[21];const w=l.kind==="template"?"Template":l.kind==="custom"?"Custom agent":"Unavailable";let p;e[22]!==w?(p=s.jsx("span",{className:"text-xs text-muted-foreground",children:w}),e[22]=w,e[23]=p):p=e[23];let j;e[24]!==b||e[25]!==p?(j=s.jsxs("div",{className:"flex flex-col min-w-0 flex-1",children:[b,p]}),e[24]=b,e[25]=p,e[26]=j):j=e[26];const I=`Remove ${l.title}`;let A;e[27]===Symbol.for("react.memo_cache_sentinel")?(A=s.jsx(He,{size:14}),e[27]=A):A=e[27];let N;e[28]!==i||e[29]!==I?(N=s.jsx("button",{type:"button",onClick:i,className:"text-muted-foreground hover:text-foreground p-1 rounded","aria-label":I,children:A}),e[28]=i,e[29]=I,e[30]=N):N=e[30];let P;return e[31]!==v||e[32]!==g||e[33]!==k||e[34]!==C||e[35]!==j||e[36]!==N||e[37]!==x?(P=s.jsxs("div",{ref:v,style:g,className:x,children:[k,C,j,N]}),e[31]=v,e[32]=g,e[33]=k,e[34]=C,e[35]=j,e[36]=N,e[37]=x,e[38]=P):P=e[38],P}function Ye(t){const e=L.c(48),{selectedIds:l,onAdd:i}=t,[u,a]=U.useState(!1),[n,v]=U.useState(""),_=le();let S;e[0]!==l?(S=new Set(l),e[0]=l,e[1]=S):S=e[1];const r=S;let d,o,f,m,g,z,x,h,D,k,y,C,b;if(e[2]!==_||e[3]!==i||e[4]!==u||e[5]!==n||e[6]!==r){const A=n.toLowerCase();m=ee.filter(c=>!r.has(c.id)&&(!n||c.title.toLowerCase().includes(A)));let N;e[20]!==r?(N=c=>c.id!==null&&!Oe(c.id)&&!r.has(c.id),e[20]=r,e[21]=N):N=e[21],f=_.filter(N).filter(c=>!n||c.title.toLowerCase().includes(A));let P;e[22]!==i?(P=c=>{i(c),a(!1),v("")},e[22]=i,e[23]=P):P=e[23];const O=P;o=Te,C=u,b=a,e[24]===Symbol.for("react.memo_cache_sentinel")?(g=s.jsx(Re,{asChild:!0,children:s.jsxs(K,{type:"button",variant:"outline",size:"sm",children:[s.jsx(Me,{size:14}),"Add agent"]})}),e[24]=g):g=e[24],d=Fe,D="w-[320px] p-0 overflow-hidden",k="start",e[25]!==n?(y=s.jsx(Ee,{value:n,onChange:v,placeholder:"Search agents..."}),e[25]=n,e[26]=y):y=e[26],z="max-h-[320px] overflow-y-auto p-2 flex flex-col gap-3",x=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:"Templates"}),m.map(c=>s.jsxs("button",{type:"button",onClick:()=>O(c.id),className:"flex items-center gap-2 px-2 py-1.5 rounded-md hover:bg-accent text-left",children:[s.jsx(J,{icon:c.icon,name:c.title,size:"xs"}),s.jsx("span",{className:"text-sm truncate",children:c.title})]},c.id))]}),h=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:"Custom agents"}),f.map(c=>s.jsxs("button",{type:"button",onClick:()=>O(c.id),className:"flex items-center gap-2 px-2 py-1.5 rounded-md hover:bg-accent text-left",children:[s.jsx(J,{icon:c.icon,name:c.title,size:"xs",fallbackIcon:s.jsx(ae,{size:14})}),s.jsx("span",{className:"text-sm truncate",children:c.title})]},c.id))]}),e[2]=_,e[3]=i,e[4]=u,e[5]=n,e[6]=r,e[7]=d,e[8]=o,e[9]=f,e[10]=m,e[11]=g,e[12]=z,e[13]=x,e[14]=h,e[15]=D,e[16]=k,e[17]=y,e[18]=C,e[19]=b}else d=e[7],o=e[8],f=e[9],m=e[10],g=e[11],z=e[12],x=e[13],h=e[14],D=e[15],k=e[16],y=e[17],C=e[18],b=e[19];let w;e[27]!==f||e[28]!==m.length||e[29]!==n?(w=m.length===0&&f.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]=f,e[28]=m.length,e[29]=n,e[30]=w):w=e[30];let p;e[31]!==w||e[32]!==z||e[33]!==x||e[34]!==h?(p=s.jsxs("div",{className:z,children:[x,h,w]}),e[31]=w,e[32]=z,e[33]=x,e[34]=h,e[35]=p):p=e[35];let j;e[36]!==d||e[37]!==p||e[38]!==D||e[39]!==k||e[40]!==y?(j=s.jsxs(d,{className:D,align:k,children:[y,p]}),e[36]=d,e[37]=p,e[38]=D,e[39]=k,e[40]=y,e[41]=j):j=e[41];let I;return e[42]!==o||e[43]!==g||e[44]!==j||e[45]!==C||e[46]!==b?(I=s.jsxs(o,{open:C,onOpenChange:b,children:[g,j]}),e[42]=o,e[43]=g,e[44]=j,e[45]=C,e[46]=b,e[47]=I):I=e[47],I}function Je(){const t=L.c(61),e=Ke(),l=le(),i=Ue();let u;t[0]!==e?.ids?(u=e?.ids??[...ne],t[0]=e?.ids,t[1]=u):u=t[1];const a=u,[n,v]=U.useState(a);let _;t[2]!==n||t[3]!==a?(_=n.length!==a.length||n.some((E,T)=>E!==a[T]),t[2]=n,t[3]=a,t[4]=_):_=t[4];const S=_;let r;t[5]===Symbol.for("react.memo_cache_sentinel")?(r={activationConstraint:{distance:5}},t[5]=r):r=t[5];let d;t[6]===Symbol.for("react.memo_cache_sentinel")?(d={coordinateGetter:ke},t[6]=d):d=t[6];const o=ye(se(De,r),se(ze,d));let f;t[7]!==n?(f=E=>{const{active:T,over:R}=E;if(!R||T.id===R.id)return;const F=n.indexOf(T.id),G=n.indexOf(R.id);F===-1||G===-1||v(Ie([...n],F,G))},t[7]=n,t[8]=f):f=t[8];const m=f;let g;t[9]!==n?(g=E=>{n.includes(E)||v([...n,E])},t[9]=n,t[10]=g):g=t[10];const z=g;let x;t[11]!==n?(x=E=>{v(n.filter(T=>T!==E))},t[11]=n,t[12]=x):x=t[12];const h=x;let D;t[13]===Symbol.for("react.memo_cache_sentinel")?(D=()=>{v([...ne])},t[13]=D):D=t[13];const k=D;let y;t[14]!==n||t[15]!==i?(y=()=>{i.mutate({ids:n},{onSuccess:()=>{Y("default_home_agents_updated",{count:n.length,template_count:n.filter(Ze).length}),q.success("Default home agents updated")},onError:Xe})},t[14]=n,t[15]=i,t[16]=y):y=t[16];const C=y;let b,w,p,j,I,A,N;if(t[17]!==l||t[18]!==n||t[19]!==m||t[20]!==h||t[21]!==o||t[22]!==i.isPending){let E;t[30]!==l?(E=F=>We(F,ee,l),t[30]=l,t[31]=E):E=t[31];const T=n.map(E);p=Math.max(0,n.length-oe),w=X,I="Default home agents";let R;t[32]===Symbol.for("react.memo_cache_sentinel")?(R=s.jsx(pe,{size:14}),t[32]=R):R=t[32],t[33]!==i.isPending?(A=s.jsxs(K,{type:"button",variant:"ghost",size:"sm",onClick:k,disabled:i.isPending,children:[R,"Reset defaults"]}),t[33]=i.isPending,t[34]=A):A=t[34],b=Z,N="px-5 py-5 flex flex-col gap-3",j=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(Ne,{sensors:o,collisionDetection:Ce,onDragEnd:m,children:s.jsx(we,{items:n,strategy:_e,children:s.jsx("div",{className:"flex flex-col gap-1.5",children:T.map((F,G)=>s.jsxs("div",{className:"flex flex-col gap-1.5",children:[G===oe&&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(Qe,{agent:F,onRemove:()=>h(F.id)})]},F.id))})})}),t[17]=l,t[18]=n,t[19]=m,t[20]=h,t[21]=o,t[22]=i.isPending,t[23]=b,t[24]=w,t[25]=p,t[26]=j,t[27]=I,t[28]=A,t[29]=N}else b=t[23],w=t[24],p=t[25],j=t[26],I=t[27],A=t[28],N=t[29];let P;t[35]!==n||t[36]!==z?(P=s.jsx(Ye,{selectedIds:n,onAdd:z}),t[35]=n,t[36]=z,t[37]=P):P=t[37];let O;t[38]!==p?(O=p>0&&s.jsxs("span",{className:"text-xs text-muted-foreground",children:[p," agent",p===1?"":"s"," won't fit on the home view"]}),t[38]=p,t[39]=O):O=t[39];let c;t[40]!==P||t[41]!==O?(c=s.jsxs("div",{className:"flex items-center justify-between",children:[P,O]}),t[40]=P,t[41]=O,t[42]=c):c=t[42];let $;t[43]!==j||t[44]!==c||t[45]!==N?($=s.jsxs("div",{className:N,children:[j,c]}),t[43]=j,t[44]=c,t[45]=N,t[46]=$):$=t[46];let M;t[47]!==C||t[48]!==a||t[49]!==S||t[50]!==i.isPending?(M=S&&s.jsxs(ie,{children:[s.jsx(K,{type:"button",variant:"outline",onClick:()=>v(a),disabled:i.isPending,children:"Cancel"}),s.jsx(K,{type:"button",onClick:C,disabled:i.isPending,children:i.isPending?"Saving…":"Save"})]}),t[47]=C,t[48]=a,t[49]=S,t[50]=i.isPending,t[51]=M):M=t[51];let H;t[52]!==b||t[53]!==$||t[54]!==M?(H=s.jsxs(b,{children:[$,M]}),t[52]=b,t[53]=$,t[54]=M,t[55]=H):H=t[55];let B;return t[56]!==w||t[57]!==I||t[58]!==A||t[59]!==H?(B=s.jsx(w,{title:I,actions:A,children:H}),t[56]=w,t[57]=I,t[58]=A,t[59]=H,t[60]=B):B=t[60],B}function Xe(t){q.error(t instanceof Error?t.message:"Failed to update default home agents")}function Ze(t){return ee.some(e=>e.id===t)}function et(){const t=L.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(X,{title:"Default home agents",children:s.jsx(Z,{children:s.jsx("div",{className:"px-5 py-5 flex flex-col gap-2",children:Array.from({length:4}).map(tt)})})}),t[0]=e):e=t[0],e}function tt(t,e){return s.jsx(Le,{className:"h-12 w-full rounded-lg"},e)}function st(){const t=L.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(U.Suspense,{fallback:s.jsx(et,{}),children:s.jsx(Je,{})}),t[0]=e):e=t[0],e}function nt(){const t=L.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(V,{children:s.jsx(V.Content,{children:s.jsx(V.Body,{children:s.jsxs(ve,{children:[s.jsx(V.Title,{children:"Organization"}),s.jsx(Ve,{}),s.jsx(Se,{}),s.jsx(st,{})]})})})}),t[0]=e):e=t[0],e}function Zt(){const t=L.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx(nt,{}),t[0]=e):e=t[0],e}export{Zt as default};
|