text: !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@angular/common"),require("primeng/dom")):"function"==typeof define&&define.amd?define("primeng/focustrap",["exports","@angular/core","@angular/common","primeng/dom"],t):t(((e=e||self).primeng=e.primeng||{},e.primeng.focustrap={}),e.ng.core,e.ng.common,e.primeng.dom)}(this,(function(e,t,o,n){"use strict";var r=this&&this.__decorate||function(e,t,o,n){var r,i=arguments.length,c=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,o,n);else for(var u=e.length-1;u>=0;u--)(r=e[u])&&(c=(i<3?r(c):i>3?r(t,o,c):r(t,o))||c);return i>3&&c&&Object.defineProperty(t,o,c),c},i=function(){function e(e){this.el=e}return e.prototype.onkeydown=function(e){if(!0!==this.pFocusTrapDisabled){e.preventDefault();var t=n.DomHandler.getFocusableElements(this.el.nativeElement);if(t&&t.length>0)if(document.activeElement){var o=t.indexOf(document.activeElement);e.shiftKey?-1==o||0===o?t[t.length-1].focus():t[o-1].focus():-1==o||o===t.length-1?t[0].focus():t[o+1].focus()}else t[0].focus()}},e.ctorParameters=function(){return[{type:t.ElementRef}]},r([t.Input()],e.prototype,"pFocusTrapDisabled",void 0),r([t.HostListener("keydown.tab",["$event"]),t.HostListener("keydown.shift.tab",["$event"])],e.prototype,"onkeydown",null),e=r([t.Directive({selector:"[pFocusTrap]"})],e)}(),c=function(){function e(){}return e=r([t.NgModule({imports:[o.CommonModule],exports:[i],declarations:[i]})],e)}();e.FocusTrap=i,e.FocusTrapModule=c,Object.defineProperty(e,"__esModule",{value:!0})}));
  //# sourceMappingURL=primeng-focustrap.umd.min.js.map