import{z as u,u as p}from"./ReferenceContentLoader-34zh6S1n.js";import{d as f,s as m,c as o,o as n,F as g,q as h,a as s,t as i,u as l,n as k,g as A}from"./index-CDPBytck.js";const c={"⌘":"Command","^":"Control",ctrl:"Control","⌥":"Option",alt:"Alt","⇧":"Shift","⇪":"Caps Lock","↵":"Enter","←":"Left Arrow","→":"Right Arrow","↑":"Up Arrow","↓":"Down Arrow"},C={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 u()?C[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"},M={class:"sr-only"},z=f({inheritAttrs:!1,__name:"ScalarHotkey",props:{hotkey:{},modifier:{default:()=>["Meta"]}},setup(e){const{cx:t}=p(),r=m(()=>y(e.hotkey,e.modifier));return(B,E)=>(n(),o("div",k(A(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(g,null,h(r.value,(a,d)=>(n(),o("div",{key:d},[s("span",b,i(a),1),s("span",M,i(l(S)(a)),1)]))),128))],16))}});export{z as E};
