import{L as e,R as t,W as n,h as r}from"./vscode-api-DjORcpSo.js";import{t as i}from"./persisted-signal-CweW-bgN.js";var a=`updated_at`,o=`codex`,s=`project`,c={},l={},u={chats:!1,cloud:!1,pinned:!1,threads:!1},d=i(`sidebar-organize-mode-v1`,s),f=i(`sidebar-keep-projects-in-recent-v1`,!0),p=i(`projectless-sidebar-chats-first-v1`,!1),m=i(`electron-sidebar-mode-v1`,o),h=i(`thread-sort-key`,a),g=i(`sidebar-section-order-v1`,void 0),_=i(`sidebar-collapsed-groups`,c),v=i(`sidebar-collapsed-sections-v1`,u),y=i(`sidebar-collapsed-custom-sections-v1`,l),b=e(r,({get:e})=>e(d)??s),x=e(r,({get:e})=>e(f)??!0),S=e(r,({get:e})=>e(p)??!1),C=e(r,({get:e})=>e(m)??o),w=e(r,({get:e})=>e(h)??`updated_at`),T=e(r,({get:e})=>e(g)),E=e(r,({get:e})=>e(_)??c),D=e(r,({get:e})=>{let t=e(v);return t==null?u:{...u,...t}}),O=e(r,({get:e})=>e(y)??l),k=n(r,[]),A=n(r,0),j=n(r,null),M=n(r,{}),N=t(r,(e,{get:t})=>t(j)===e),P=t(r,(e,{get:t})=>t(E)[e]===!0),F=t(r,(e,{get:t})=>t(M)[e]===!0),I=t(r,(e,{get:t})=>t(D)[e]),L=t(r,(e,{get:t})=>t(O)[e]===!0);function R(e,t){e.set(d,t)}function z(e,t){e.set(f,t)}function B(e,t){e.set(p,t)}function V(e,t){e.set(h,t)}function H(e,t){e.get(j)!==t&&e.set(j,t)}function U(e,t,n){e.set(v,{...e.get(D),[t]:n})}function W(e,t){e.set(g,t)}function G(e,t,n){let r=e.get(O);if(n===!!r[t])return;if(n){e.set(y,{...r,[t]:!0});return}let i={...r};delete i[t],e.set(y,i)}function K(e,t,n){e.set(_,t),e.set(k,n)}function q(e,t){e.set(_,t),e.set(k,[])}function J(e,t){let n=e.get(E),r={...n};n[t]===!0?delete r[t]:r[t]=!0,q(e,r)}function Y({collapsedGroups:e,importedProjectRoots:t}){if(t.length===0)return e;let n={...e},[r,...i]=t;delete n[r];for(let e of i)n[e]=!0;return n}function X(e,t,n){let r=e.get(M);if(n===!!r[t])return;if(n){e.set(M,{...r,[t]:!0});return}let i={...r};delete i[t],e.set(M,i)}export{a as A,b as C,F as D,N as E,w as O,C as S,T,W as _,x as a,A as b,H as c,X as d,z as f,R as g,K as h,Y as i,J as k,G as l,q as m,E as n,S as o,B as p,M as r,k as s,j as t,U as u,V as v,I as w,P as x,L as y};
//# sourceMappingURL=sidebar-signals-b2zJ93fs.js.map