import{n as e}from"./rolldown-runtime-BG2f4sTM.js";import{Ac as t,Nc as n,w as r}from"./app-initial~avatarOverlayCompositionSurface~artifact-tab-content.electron~notebook-preview-~ngwudnyz-D_QFwR2V.js";import{n as i,r as a}from"./codex-micro-commands-CIuhuKZZ.js";var o,s=e((()=>{o=[{id:`FAST`,icon:`lightning-outline`,size:`single`,action:{type:`command`,command:`composer.toggleFastMode`}},{id:`APPR`,icon:`check-circle`,size:`single`,action:{type:`command`,command:`approval.approve`}},{id:`REJ`,icon:`x-circle`,size:`single`,action:{type:`command`,command:`approval.decline`}},{id:`SPLIT`,icon:`branch`,size:`single`,action:{type:`command`,command:`forkThread`}},{id:`MIC`,icon:`mic`,size:`double`,action:{type:`named`,label:`Push to talk`}},{id:`CODEX`,icon:`codex`,size:`single`,action:{type:`command`,command:`composer.submit`}},{id:`BUG`,icon:`bug`,size:`single`,action:{type:`command`,command:`feedback`}},{id:`OAI`,icon:`openai`,size:`single`,action:{type:`external-url`,label:`Open OpenAI docs`,url:`https://developers.openai.com`}},{id:`TERM`,icon:`terminal`,size:`single`,action:{type:`command`,command:`toggleTerminal`}},{id:`DWN`,icon:`download`,size:`single`,action:{type:`command`,command:`copyConversationMarkdown`}},{id:`DEL`,icon:`trash`,size:`single`,action:{type:`command`,command:`archiveThread`}},{id:`NEW`,icon:`compose`,size:`single`,action:{type:`command`,command:`newTask`}},{id:`NAV`,icon:`pointer-outline`,size:`single`,action:{type:`command`,command:`openBrowserTab`}},{id:`MAGIC`,icon:`star`,size:`single`,action:{type:`command`,command:`toggleThreadPin`}},{id:`DIFF`,icon:`diff`,size:`single`,action:{type:`command`,command:`toggleReviewTab`}},{id:`PLAY`,icon:`play-outline`,size:`single`,action:{type:`command`,command:`environmentAction1`}},{id:`GIT`,icon:`diff`,size:`single`,action:{type:`command`,command:`git.commit`}},{id:`BRCH`,icon:`pull-request-draft`,size:`single`,action:{type:`command`,command:`toggleReviewTab`}},{id:`MRG`,icon:`pull-request-merged`,size:`single`,action:{type:`command`,command:`toggleReviewTab`}},{id:`PR`,icon:`pull-request`,size:`single`,action:{type:`command`,command:`git.createPullRequest`}},{id:`PAINT`,icon:`paint`,size:`single`,action:{type:`command`,command:`composer.addPhotos`}},{id:`LAB`,icon:`flask`,size:`single`,action:{type:`command`,command:`settings`}},{id:`PARTY`,icon:`confetti`,size:`single`,action:{type:`command`,command:`openSideChat`}},{id:`TIME`,icon:`clock`,size:`single`,action:{type:`command`,command:`manageTasks`}},{id:`MIND+`,icon:`brain-medium`,size:`single`,action:{type:`command`,command:`composer.increaseReasoningEffort`}},{id:`MIND-`,icon:`brain-outline`,size:`single`,action:{type:`command`,command:`composer.decreaseReasoningEffort`}},{id:`EMPT1`,icon:`empty`,size:`single`,action:{type:`custom-shortcut`}},{id:`EMPT2`,icon:`empty`,size:`single`,action:{type:`custom-shortcut`}},{id:`EMPT3`,icon:`empty`,size:`single`,action:{type:`custom-shortcut`}},{id:`EMPT4`,icon:`empty`,size:`single`,action:{type:`custom-shortcut`}},{id:`SETUP`,icon:`settings`,size:`single`,action:{type:`command`,command:`settings`}},{id:`FOLD`,icon:`folder-plus`,size:`single`,action:{type:`command`,command:`openFolder`}},{id:`UPL`,icon:`cloud-upload`,size:`single`,action:{type:`command`,command:`composer.addFiles`}},{id:`APPS`,icon:`all-products`,size:`single`,action:{type:`command`,command:`openSkills`}},{id:`YOLO`,icon:`empty`,size:`single`,action:{type:`composer-text`,label:`Write :yolo: in the composer`,text:`:yolo:`}},{id:`YEET`,icon:`empty`,size:`single`,action:{type:`composer-text`,label:`Write :yeet: in the composer`,text:`:yeet:`}},{id:`EMPT5`,icon:`empty`,size:`double`,action:{type:`custom-shortcut`}}]}));function c(e){return n.safeParse(e).data??t}function l(e){return o.find(t=>t.id===e)??o[0]}function u(e){let t=e===`ACT10_ACT11`?`double`:`single`;return o.filter(e=>e.size===t)}function d(e,t,n){let r={...e.slots},i=r[t],a=h.find(e=>e!==t&&r[e].keycapId===n.keycapId);return r[t]=n,a!=null&&(r[a]=i),{...e,slots:r}}function f(e,t,n){return{...e,analogStick:{...e.analogStick,[t]:n}}}function p(e){switch(e){case`ACT06`:case`ACT07`:case`ACT08`:case`ACT09`:case`ACT12`:return e;case`ACT10`:case`ACT11`:return`ACT10_ACT11`;default:return null}}function m(e){let t=l(e.keycapId);if(e.commandId!=null){let n=i(e.commandId);if(n!=null)return{type:`command`,command:n.id};if(t.action.type===`custom-shortcut`)return null}if(t.id===`MIC`)return{type:`push-to-talk`};switch(t.action.type){case`command`:case`composer-text`:case`external-url`:return t.action;case`custom-shortcut`:case`named`:return null}}var h,g=e((()=>{r(),a(),s(),h=[`ACT06`,`ACT07`,`ACT08`,`ACT09`,`ACT10_ACT11`,`ACT12`]}));export{m as a,d as c,c as i,u as n,g as o,l as r,f as s,p as t};
//# sourceMappingURL=codex-micro-layout-DsdS0fjo.js.map