import{L as e,R as t,a as n,h as r,u as i}from"./vscode-api-DjORcpSo.js";import{n as a}from"./platform-BHmTRipH.js";import{d as o,f as s,n as c,u as l}from"./electron-menu-shortcuts-RgqJ2PfO.js";var u=[`thread1`,`thread2`,`thread3`,`thread4`,`thread5`,`thread6`,`thread7`,`thread8`,`thread9`],d=n(r,`codex-command-keymap-state`,{enabled:!0,staleTime:i.ONE_MINUTE}),f=t(r,(e,{get:t})=>{l(e);let n=t(a);return[...o({commandId:e,keymapState:t(d).data,isMacOS:n===`macOS`})]}),p=t(r,(e,{get:t})=>t(f,e)[0]??null),m=t(r,(e,{get:t})=>{let n=t(a);return t(f,e).map(e=>c(e,n===`macOS`,n===`linux`))}),h=t(r,(e,{get:t})=>t(m,e)[0]??null),g=e(r,({get:e})=>u.map(t=>e(h,t))),_=t(r,(e,{get:t})=>t(d).data?.bindings.some(t=>t.command===e)===!0);function v(e,t){return s({commandId:e,isMacOS:t===`macOS`}).length>0}function y(e,t,n){return o({commandId:e,keymapState:t,isMacOS:n===`macOS`}).map(e=>({accelerator:e,label:c(e,n===`macOS`,n===`linux`)}))}export{h as a,v as c,p as i,_ as n,g as o,d as r,y as s,f as t};
//# sourceMappingURL=command-keybindings-DSs_0e8Z.js.map