import{Wo as e}from"./app-server-manager-signals-Yn0WSnoY.js";import{F as t,I as n,W as r,h as i,lt as a}from"./vscode-api-DjORcpSo.js";import{n as o}from"./selectable-remote-connections-signal-db9FavQq.js";import{t as s}from"./use-connected-remote-connections-z8xPLzPt.js";function c(t,n){return n==null||t===`local`||n.some(e=>e.hostId===t)?t:e}function l(e,t){return e.filter(e=>t===`local`?e.projectKind===`local`:e.projectKind===`remote`&&e.hostId===t)}var u=a(),d=r(i,e);function f(){let e=(0,u.c)(12),r=t(i),a=n(o),l=s(a),f=n(d),m;e[0]===a?m=e[1]:(m=a?.map(p),e[0]=a,e[1]=m);let h;e[2]!==l||e[3]!==f?(h=c(f,l),e[2]=l,e[3]=f,e[4]=h):h=e[4];let g;e[5]===r?g=e[6]:(g=e=>{r.set(d,e)},e[5]=r,e[6]=g);let _;return e[7]!==l||e[8]!==m||e[9]!==h||e[10]!==g?(_={connectedRemoteConnections:l,remoteConnectionHostIds:m,selectedHostId:h,setSelectedHostId:g},e[7]=l,e[8]=m,e[9]=h,e[10]=g,e[11]=_):_=e[11],_}function p(e){return e.hostId}export{l as n,c as r,f as t};
//# sourceMappingURL=settings-host-context-B04SlyCx.js.map