UNPKG

ng2-idle-core

Version:

ng-idle for Angular 2+ core module

2 lines (1 loc) 2.03 kB
!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@ng-idle/core")):"function"==typeof define&&define.amd?define(["exports","@ng-idle/core"],n):n((t.ngidle=t.ngidle||{},t.ngidle.core=t.ngidle.core||{},t.ngidle.core.testing=t.ngidle.core.testing||{}),t.ngidle.core)}(this,function(t,n){"use strict";var o=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var o in n)n.hasOwnProperty(o)&&(t[o]=n[o])};return function(n,o){function e(){this.constructor=n}t(n,o),n.prototype=null===o?Object.create(o):(e.prototype=o.prototype,new e)}}(),e=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return o(n,t),n.prototype.last=function(t){return void 0!==t&&(this.lastDate=t),this.lastDate},n.prototype.now=function(){return this.mockNow||new Date},n}(n.IdleExpiry),r=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var o in n)n.hasOwnProperty(o)&&(t[o]=n[o])};return function(n,o){function e(){this.constructor=n}t(n,o),n.prototype=null===o?Object.create(o):(e.prototype=o.prototype,new e)}}(),i=function(t){function o(n,o){return t.call(this,n,o)||this}return r(o,t),o.prototype.trigger=function(t){this.onInterrupt.emit(new n.InterruptArgs(this,t))},o}(n.InterruptSource),c=function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var o in n)n.hasOwnProperty(o)&&(t[o]=n[o])};return function(n,o){function e(){this.constructor=n}t(n,o),n.prototype=null===o?Object.create(o):(e.prototype=o.prototype,new e)}}(),u=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.isRunning=!1,n}return c(n,t),n.prototype.start=function(){this.isRunning=!0},n.prototype.stop=function(){this.isRunning=!1},n.prototype.ping=function(){},n}(n.KeepaliveSvc);t.MockExpiry=e,t.MockInterruptSource=i,t.MockKeepaliveSvc=u,Object.defineProperty(t,"__esModule",{value:!0})});