import{d as u,az as p,c as f,j as o,o as n,F as m,I as h,i as s,t as i,p as l,aA as A,aB as C}from"./index-BX34W763.js";import{aC as g}from"./ReferenceContentLoader-D7Cnl9bC.js";const c={"⌘":"Command","^":"Control",ctrl:"Control","⌥":"Option",alt:"Alt","⇧":"Shift","⇪":"Caps Lock","↵":"Enter","←":"Left Arrow","→":"Right Arrow","↑":"Up Arrow","↓":"Down Arrow"},k={Meta:"⌘",Shift:"⇧",Alt:"⌥",Control:"^"},x={Meta:"ctrl",Shift:"⇧",Alt:"alt",Control:"ctrl"};function v(e){return e==="default"}function w(e){const t=v(e)?"Meta":e;return g()?k[t]:x[t]}function y(e,t){return[...t.map(r=>w(r)),e]}function S(e){return e in c?c[e]:e}const b={"aria-hidden":"true",class:"contents"},B={class:"sr-only"},z=u({inheritAttrs:!1,__name:"ScalarHotkey",props:{hotkey:{},modifier:{default:()=>["Meta"]}},setup(e){const{cx:t}=p(),r=f(()=>y(e.hotkey,e.modifier));return(M,E)=>(n(),o("div",A(C(l(t)("border-(--scalar-background-3) inline-flex gap-0.5 overflow-hidden rounded border text-xxs rounded-b p-1 font-medium uppercase leading-none"))),[(n(!0),o(m,null,h(r.value,(a,d)=>(n(),o("div",{key:d},[s("span",b,i(a),1),s("span",B,i(l(S)(a)),1)]))),128))],16))}});export{z as E};
