import{Z as u}from"./navigation-BzNQiq4W.js";import{aw as r}from"./ReferenceContentLoader-Z8YmHBVJ.js";import{d as f,c as n,i as h,o as k,h as s,t as i,R as C,U as w,l as x}from"./index-DPl1iiyq.js";const y={"aria-hidden":"true"},A={class:"sr-only"},g=f({__name:"ScalarHotkey",props:{hotkey:{},modifier:{default:()=>["Meta"]}},setup(o){const d={"⌘":"Command","^":"Control","⌥":"Option","⇧":"Shift","⇪":"Caps Lock","↵":"Enter","←":"Left Arrow","→":"Right Arrow","↑":"Up Arrow","↓":"Down Arrow"},m={Meta:r()?"⌘":"^",default:r()?"⌘":"^",Shift:"⇧",Alt:"⌥",Control:"^"},{cx:p}=u(),l=n(()=>`${o.modifier.map(e=>m[e]).join("+")} ${o.hotkey}`),c=n(()=>{const e=o.modifier.map(a=>a==="Meta"?r()?"Command":"Control":a).join("+"),t=d[o.hotkey]??o.hotkey;return`${e} ${t}`});return(e,t)=>(k(),h("div",C(w(x(p)("border-(--scalar-background-3) inline-block overflow-hidden rounded border text-xxs rounded-b px-1 font-medium uppercase"))),[s("span",y,i(l.value),1),s("span",A,i(c.value),1)],16))}});export{g as A};
