Your IP : 3.137.136.16


Current Path : /usr/local/mgr5/skins/dragon/
Upload File :
Current File : //usr/local/mgr5/skins/dragon/chunk-EI5KBZMB.js

import{c as f}from"./chunk-SXUPRFOU.js";import{N as d,S as l,p as a}from"./chunk-ERDNNTNA.js";var m=(()=>{let r=class r{constructor(){this.PRIORITY_LEVELS=[["confirm"],["focus-group"],["select"],["drawer-submit"],["form-submit"],["path-editor"],["edit-cell-dropdown"],["escape-from-child-tab"],["table"]],this.subscribers=[],this.keydown$=d(window,"keydown").pipe(l(t=>!["Shift","Control","Alt","Meta","Options","Backspace"].includes(t.key))),this.keydown$.subscribe(t=>{let i=this.subscribers.filter(s=>this.doesEventMatch(t,s));i.filter(s=>s.ispKeydownListenParams.context===void 0).forEach(s=>s.next(t));let e=i.filter(s=>s.ispKeydownListenParams.context),n=e.map(s=>s.ispKeydownListenParams.context);(this.PRIORITY_LEVELS.find(s=>s.some(o=>n.includes(o)))||[]).forEach(s=>e.filter(o=>o.ispKeydownListenParams.context===s).forEach(o=>o.next(t)))})}doesEventMatch(t,i){let e=i.ispKeydownListenParams;return(Array.isArray(e.code)?e.code:[e.code]).includes(t.code)&&(t.metaKey||t.ctrlKey)===!!e.ctrl&&t.altKey===!!e.alt&&t.shiftKey===!!e.shift}listen$(t){return new a(i=>{let e=i;return e.ispKeydownListenParams=t,this.subscribers.push(e),()=>{this.subscribers=this.subscribers.filter(n=>n!==e)}})}};r.\u0275fac=function(i){return new(i||r)},r.\u0275prov=f({token:r,factory:r.\u0275fac,providedIn:"root"});let c=r;return c})();export{m as a};