import {J,c as tS,a6 as pi,a_ as Oo,a8 as x,aa as ye,n6 as ar,gH as zi,ad as ce,H as ul,L as w,N as Sr,bJ as F,fX as XT}from'./main-WUGO6e7n.js';var s,p=J(()=>{s=()=>["Mac","iPhone","iPad","iPhone"].some(t=>navigator.platform.includes(t))?"apple":"pc";});function m(t){return s()!=="apple"&&t==="meta"&&(t="control"),t}var U,P=J(()=>{tS();pi();p();tS();Oo();U=(()=>{class t{constructor(e,r){this.eventManager=e,this.document=r;}addShortcut({element:e,keys:r}){let i=`keydown.${r}`.split(".").map(o=>m(o)).join(".");return new x(o=>{let j=f=>{f.preventDefault(),document.querySelectorAll(".p-dialog.p-component, .p-drawer-active, .p-drawer").length||o.next(f);},w=this.eventManager.addEventListener(e??this.document.documentElement,i,j);return ()=>w()})}static{this.\u0275fac=function(r){return new(r||t)(ye(ar),ye(zi))};}static{this.\u0275prov=ce({token:t,factory:t.\u0275fac,providedIn:"root"});}}return t})();});var g,I,O,Q,k=J(()=>{tS();p();P();ul();tS();g={shift:"\u21E7",backspace:"\u232B",tab:"\u21E5",space:"\u2423",left:"\u2190",right:"\u2192",up:"\u2191",down:"\u2193",enter:"\u23CE"},I={meta:"\u2318",altleft:"\u2325",control:"\u2303",escape:"\u238B"},O={control:"lblCtrl",altleft:"lblAlt",escape:"Esc"},Q=(()=>{class t{constructor(){this.translatorService=w(Sr),this.symbols=this.getPlatformSymbols(s());}transform(e,r=" + "){return e?e.split(">").map(i=>i.split(".").map(o=>m(o.toLowerCase())).map(o=>this.translatorService.translate(this.symbols[o])||o).join(r)):""}getPlatformSymbols(e){return e==="apple"?F(F({},g),I):F(F({},g),O)}static{this.\u0275fac=function(r){return new(r||t)};}static{this.\u0275pipe=XT({name:"hotkeysShortcut",type:t,pure:!0});}}return t})();});export{P,Q,U,k};