1 | !function(global,factory){"object"==typeof exports&&"undefined"!=typeof module?factory(exports,require("rxjs/Subscriber"),require("rxjs/operator/pluck"),require("rxjs/operator/map"),require("rxjs/operator/distinctUntilChanged")):"function"==typeof define&&define.amd?define(["exports","rxjs/Subscriber","rxjs/operator/pluck","rxjs/operator/map","rxjs/operator/distinctUntilChanged"],factory):factory((global.ngrx=global.ngrx||{},global.ngrx.core=global.ngrx.core||{}),global.Rx,global.Rx.Observable.prototype,global.Rx.Observable.prototype,global.Rx.Observable.prototype)}(this,function(exports,rxjs_Subscriber,rxjs_operator_pluck,rxjs_operator_map,rxjs_operator_distinctUntilChanged){"use strict";function enterZone(zone){return this.lift(new EnterZoneOperator(zone))}function leaveZone(zone){return this.lift(new LeaveZoneOperator(zone))}function select(pathOrMapFn){for(var paths=[],_i=1;_i<arguments.length;_i++)paths[_i-1]=arguments[_i];var mapped$;if("string"==typeof pathOrMapFn)mapped$=rxjs_operator_pluck.pluck.call.apply(rxjs_operator_pluck.pluck,[this,pathOrMapFn].concat(paths));else{if("function"!=typeof pathOrMapFn)throw new TypeError("Unexpected type "+typeof pathOrMapFn+" in select operator, expected 'string' or 'function'");mapped$=rxjs_operator_map.map.call(this,pathOrMapFn)}return rxjs_operator_distinctUntilChanged.distinctUntilChanged.call(mapped$)}var __extends=void 0||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},EnterZoneOperator=function(){function EnterZoneOperator(_zone){this._zone=_zone}return EnterZoneOperator.prototype.call=function(subscriber,source){return source._subscribe(new EnterZoneSubscriber(subscriber,this._zone))},EnterZoneOperator}(),EnterZoneSubscriber=function(_super){function EnterZoneSubscriber(destination,_zone){_super.call(this,destination),this._zone=_zone}return __extends(EnterZoneSubscriber,_super),EnterZoneSubscriber.prototype._next=function(value){var _this=this;this._zone.run(function(){return _this.destination.next(value)})},EnterZoneSubscriber}(rxjs_Subscriber.Subscriber),__extends$1=void 0||function(d,b){function __(){this.constructor=d}for(var p in b)b.hasOwnProperty(p)&&(d[p]=b[p]);d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)},LeaveZoneOperator=function(){function LeaveZoneOperator(_zone){this._zone=_zone}return LeaveZoneOperator.prototype.call=function(subscriber,source){return source._subscribe(new LeaveZoneSubscriber(subscriber,this._zone))},LeaveZoneOperator}(),LeaveZoneSubscriber=function(_super){function LeaveZoneSubscriber(destination,_zone){_super.call(this,destination),this._zone=_zone}return __extends$1(LeaveZoneSubscriber,_super),LeaveZoneSubscriber.prototype._next=function(value){var _this=this;this._zone.runOutsideAngular(function(){return _this.destination.next(value)})},LeaveZoneSubscriber}(rxjs_Subscriber.Subscriber),compose=function(){for(var functions=[],_i=0;_i<arguments.length;_i++)functions[_i-0]=arguments[_i];return function(arg){if(0===functions.length)return arg;var last=functions[functions.length-1],rest=functions.slice(0,-1);return rest.reduceRight(function(composed,fn){return fn(composed)},last(arg))}};exports.enterZone=enterZone,exports.EnterZoneOperator=EnterZoneOperator,exports.leaveZone=leaveZone,exports.LeaveZoneOperator=LeaveZoneOperator,exports.select=select,exports.compose=compose,Object.defineProperty(exports,"__esModule",{value:!0})}); |