@@ -2417,9 +2417,13 @@ return /******/ (function(modules) { // webpackBootstrap
24172417 }
24182418 exports.Class = Class;
24192419 var Reflect = lang_1.global.Reflect;
2420- if (!(Reflect && Reflect.getMetadata)) {
2421- throw 'reflect-metadata shim is required when using class decorators';
2422- }
2420+ // Throw statement at top-level is disallowed by closure compiler in ES6 input.
2421+ // Wrap in an IIFE as a work-around.
2422+ (function checkReflect() {
2423+ if (!(Reflect && Reflect.getMetadata)) {
2424+ throw 'reflect-metadata shim is required when using class decorators';
2425+ }
2426+ })();
24232427 function makeDecorator(annotationCls, chainFn) {
24242428 if (chainFn === void 0) { chainFn = null; }
24252429 function DecoratorFactory(objOrType) {
@@ -9951,35 +9955,8 @@ return /******/ (function(modules) { // webpackBootstrap
99519955 return SimpleChange;
99529956 })();
99539957 exports.SimpleChange = SimpleChange;
9954- var _simpleChangesIndex = 0;
9955- var _simpleChanges = [
9956- new SimpleChange(null, null),
9957- new SimpleChange(null, null),
9958- new SimpleChange(null, null),
9959- new SimpleChange(null, null),
9960- new SimpleChange(null, null),
9961- new SimpleChange(null, null),
9962- new SimpleChange(null, null),
9963- new SimpleChange(null, null),
9964- new SimpleChange(null, null),
9965- new SimpleChange(null, null),
9966- new SimpleChange(null, null),
9967- new SimpleChange(null, null),
9968- new SimpleChange(null, null),
9969- new SimpleChange(null, null),
9970- new SimpleChange(null, null),
9971- new SimpleChange(null, null),
9972- new SimpleChange(null, null),
9973- new SimpleChange(null, null),
9974- new SimpleChange(null, null),
9975- new SimpleChange(null, null)
9976- ];
99779958 function _simpleChange(previousValue, currentValue) {
9978- var index = _simpleChangesIndex++ % 20;
9979- var s = _simpleChanges[index];
9980- s.previousValue = previousValue;
9981- s.currentValue = currentValue;
9982- return s;
9959+ return new SimpleChange(previousValue, currentValue);
99839960 }
99849961 /* tslint:disable:requireParameterType */
99859962 var ChangeDetectionUtil = (function () {
@@ -11112,6 +11089,7 @@ return /******/ (function(modules) { // webpackBootstrap
1111211089 var lang_1 = __webpack_require__(5);
1111311090 var promise_1 = __webpack_require__(48);
1111411091 exports.PromiseWrapper = promise_1.PromiseWrapper;
11092+ exports.PromiseCompleter = promise_1.PromiseCompleter;
1111511093 var Subject_1 = __webpack_require__(49);
1111611094 var PromiseObservable_1 = __webpack_require__(50);
1111711095 var toPromise_1 = __webpack_require__(65);
@@ -11257,6 +11235,17 @@ return /******/ (function(modules) { // webpackBootstrap
1125711235/* 48 */
1125811236/***/ function(module, exports) {
1125911237
11238+ var PromiseCompleter = (function () {
11239+ function PromiseCompleter() {
11240+ var _this = this;
11241+ this.promise = new Promise(function (res, rej) {
11242+ _this.resolve = res;
11243+ _this.reject = rej;
11244+ });
11245+ }
11246+ return PromiseCompleter;
11247+ })();
11248+ exports.PromiseCompleter = PromiseCompleter;
1126011249 var PromiseWrapper = (function () {
1126111250 function PromiseWrapper() {
1126211251 }
@@ -11289,15 +11278,7 @@ return /******/ (function(modules) { // webpackBootstrap
1128911278 PromiseWrapper.then(PromiseWrapper.resolve(null), computation, function (_) { });
1129011279 };
1129111280 PromiseWrapper.isPromise = function (obj) { return obj instanceof Promise; };
11292- PromiseWrapper.completer = function () {
11293- var resolve;
11294- var reject;
11295- var p = new Promise(function (res, rej) {
11296- resolve = res;
11297- reject = rej;
11298- });
11299- return { promise: p, resolve: resolve, reject: reject };
11300- };
11281+ PromiseWrapper.completer = function () { return new PromiseCompleter(); };
1130111282 return PromiseWrapper;
1130211283 })();
1130311284 exports.PromiseWrapper = PromiseWrapper;
@@ -13355,7 +13336,7 @@ return /******/ (function(modules) { // webpackBootstrap
1335513336 * Retrieve the platform {@link Injector}, which is the parent injector for
1335613337 * every Angular application on the page and provides singleton providers.
1335713338 */
13358- get: function () { return exceptions_1.unimplemented(); },
13339+ get: function () { throw exceptions_1.unimplemented(); },
1335913340 enumerable: true,
1336013341 configurable: true
1336113342 });
@@ -13576,12 +13557,12 @@ return /******/ (function(modules) { // webpackBootstrap
1357613557 completer.reject(e, e.stack);
1357713558 }
1357813559 });
13579- return completer.promise.then(function (_ ) {
13560+ return completer.promise.then(function (ref ) {
1358013561 var c = _this._injector.get(console_1.Console);
1358113562 if (lang_1.assertionsEnabled()) {
1358213563 c.log("Angular 2 is running in the development mode. Call enableProdMode() to enable the production mode.");
1358313564 }
13584- return _ ;
13565+ return ref ;
1358513566 });
1358613567 };
1358713568 /** @internal */
@@ -18305,7 +18286,7 @@ return /******/ (function(modules) { // webpackBootstrap
1830518286 if (args === void 0) { args = null; }
1830618287 var key;
1830718288 var valueStr;
18308- var pluralMap = args[0];
18289+ var pluralMap = ( args[0]) ;
1830918290 if (!lang_1.isStringMap(pluralMap)) {
1831018291 throw new invalid_pipe_argument_exception_1.InvalidPipeArgumentException(I18nPluralPipe, pluralMap);
1831118292 }
@@ -18375,7 +18356,7 @@ return /******/ (function(modules) { // webpackBootstrap
1837518356 }
1837618357 I18nSelectPipe.prototype.transform = function (value, args) {
1837718358 if (args === void 0) { args = null; }
18378- var mapping = args[0];
18359+ var mapping = ( args[0]) ;
1837918360 if (!lang_1.isStringMap(mapping)) {
1838018361 throw new invalid_pipe_argument_exception_1.InvalidPipeArgumentException(I18nSelectPipe, mapping);
1838118362 }
@@ -19550,15 +19531,16 @@ return /******/ (function(modules) { // webpackBootstrap
1955019531 this._parent.updateValueAndValidity({ onlySelf: onlySelf, emitEvent: emitEvent });
1955119532 }
1955219533 };
19553- AbstractControl.prototype._runValidator = function () { return lang_1.isPresent(this.validator) ? this.validator(this) : null; };
19534+ AbstractControl.prototype._runValidator = function () {
19535+ return lang_1.isPresent(this.validator) ? this.validator(this) : null;
19536+ };
1955419537 AbstractControl.prototype._runAsyncValidator = function (emitEvent) {
1955519538 var _this = this;
1955619539 if (lang_1.isPresent(this.asyncValidator)) {
1955719540 this._status = exports.PENDING;
1955819541 this._cancelExistingSubscription();
1955919542 var obs = toObservable(this.asyncValidator(this));
19560- this._asyncValidationSubscription =
19561- async_1.ObservableWrapper.subscribe(obs, function (res) { return _this.setErrors(res, { emitEvent: emitEvent }); });
19543+ this._asyncValidationSubscription = async_1.ObservableWrapper.subscribe(obs, function (res) { return _this.setErrors(res, { emitEvent: emitEvent }); });
1956219544 }
1956319545 };
1956419546 AbstractControl.prototype._cancelExistingSubscription = function () {
@@ -20275,7 +20257,8 @@ return /******/ (function(modules) { // webpackBootstrap
2027520257 }
2027620258 exports.composeValidators = composeValidators;
2027720259 function composeAsyncValidators(validators) {
20278- return lang_1.isPresent(validators) ? validators_1.Validators.composeAsync(validators.map(normalize_validator_1.normalizeValidator)) : null;
20260+ return lang_1.isPresent(validators) ? validators_1.Validators.composeAsync(validators.map(normalize_validator_1.normalizeAsyncValidator)) :
20261+ null;
2027920262 }
2028020263 exports.composeAsyncValidators = composeAsyncValidators;
2028120264 function isPropertyUpdated(changes, viewModel) {
@@ -20439,7 +20422,7 @@ return /******/ (function(modules) { // webpackBootstrap
2043920422 if (presentValidators.length == 0)
2044020423 return null;
2044120424 return function (control) {
20442- var promises = _executeValidators (control, presentValidators).map(_convertToPromise);
20425+ var promises = _executeAsyncValidators (control, presentValidators).map(_convertToPromise);
2044320426 return promise_1.PromiseWrapper.all(promises).then(_mergeErrors);
2044420427 };
2044520428 };
@@ -20452,6 +20435,9 @@ return /******/ (function(modules) { // webpackBootstrap
2045220435 function _executeValidators(control, validators) {
2045320436 return validators.map(function (v) { return v(control); });
2045420437 }
20438+ function _executeAsyncValidators(control, validators) {
20439+ return validators.map(function (v) { return v(control); });
20440+ }
2045520441 function _mergeErrors(arrayOfErrors) {
2045620442 var res = arrayOfErrors.reduce(function (res, errors) {
2045720443 return lang_1.isPresent(errors) ? collection_1.StringMapWrapper.merge(res, errors) : res;
@@ -20840,6 +20826,15 @@ return /******/ (function(modules) { // webpackBootstrap
2084020826 }
2084120827 }
2084220828 exports.normalizeValidator = normalizeValidator;
20829+ function normalizeAsyncValidator(validator) {
20830+ if (validator.validate !== undefined) {
20831+ return function (c) { return Promise.resolve(validator.validate(c)); };
20832+ }
20833+ else {
20834+ return validator;
20835+ }
20836+ }
20837+ exports.normalizeAsyncValidator = normalizeAsyncValidator;
2084320838
2084420839
2084520840/***/ },
@@ -22021,7 +22016,7 @@ return /******/ (function(modules) { // webpackBootstrap
2202122016 FormBuilder.prototype.group = function (controlsConfig, extra) {
2202222017 if (extra === void 0) { extra = null; }
2202322018 var controls = this._reduceControls(controlsConfig);
22024- var optionals = lang_1.isPresent(extra) ? collection_1.StringMapWrapper.get(extra, "optionals") : null;
22019+ var optionals = ( lang_1.isPresent(extra) ? collection_1.StringMapWrapper.get(extra, "optionals") : null) ;
2202522020 var validator = lang_1.isPresent(extra) ? collection_1.StringMapWrapper.get(extra, "validator") : null;
2202622021 var asyncValidator = lang_1.isPresent(extra) ? collection_1.StringMapWrapper.get(extra, "asyncValidator") : null;
2202722022 return new modelModule.ControlGroup(controls, optionals, validator, asyncValidator);
@@ -25968,7 +25963,9 @@ return /******/ (function(modules) { // webpackBootstrap
2596825963 collection_1.StringMapWrapper.forEach(data, function (value, name) { entryArray.push([name, value]); });
2596925964 // We need to sort to get a defined output order
2597025965 // for tests and for caching generated artifacts...
25971- collection_1.ListWrapper.sort(entryArray, function (entry1, entry2) { return lang_1.StringWrapper.compare(entry1[0], entry2[0]); });
25966+ collection_1.ListWrapper.sort(entryArray, function (entry1, entry2) {
25967+ return lang_1.StringWrapper.compare(entry1[0], entry2[0]);
25968+ });
2597225969 var keyValueArray = [];
2597325970 entryArray.forEach(function (entry) { keyValueArray.push([entry[0], entry[1]]); });
2597425971 return keyValueArray;
@@ -27958,6 +27955,8 @@ return /******/ (function(modules) { // webpackBootstrap
2795827955 // see http://www.w3.org/TR/html51/syntax.html#optional-tags
2795927956 // This implementation does not fully conform to the HTML5 spec.
2796027957 var TAG_DEFINITIONS = {
27958+ 'base': new HtmlTagDefinition({ isVoid: true }),
27959+ 'meta': new HtmlTagDefinition({ isVoid: true }),
2796127960 'area': new HtmlTagDefinition({ isVoid: true }),
2796227961 'embed': new HtmlTagDefinition({ isVoid: true }),
2796327962 'link': new HtmlTagDefinition({ isVoid: true }),
@@ -29111,9 +29110,9 @@ return /******/ (function(modules) { // webpackBootstrap
2911129110 var mc = new Hammer(element);
2911229111 mc.get('pinch').set({ enable: true });
2911329112 mc.get('rotate').set({ enable: true });
29114- var handler = function (eventObj) { zone.run(function () { handler(eventObj); }); };
29115- mc.on(eventName, handler );
29116- return function () { mc.off(eventName, handler ); };
29113+ var callback = function (eventObj) { zone.run(function () { handler(eventObj); }); };
29114+ mc.on(eventName, callback );
29115+ return function () { mc.off(eventName, callback ); };
2911729116 });
2911829117 };
2911929118 HammerGesturesPlugin = __decorate([
@@ -33911,6 +33910,7 @@ return /******/ (function(modules) { // webpackBootstrap
3391133910 if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
3391233911 };
3391333912 var lang_1 = __webpack_require__(5);
33913+ var __make_dart_analyzer_happy = null;
3391433914 /**
3391533915 * The `RouteConfig` decorator defines routes for a given component.
3391633916 *
@@ -34638,7 +34638,7 @@ return /******/ (function(modules) { // webpackBootstrap
3463834638 // default instructions override these
3463934639 Instruction.prototype.toLinkUrl = function () {
3464034640 return this.urlPath + this._stringifyAux() +
34641- (lang_1.isPresent(this.child) ? this.child._toLinkUrl() : '');
34641+ (lang_1.isPresent(this.child) ? this.child._toLinkUrl() : '') + this.toUrlQuery() ;
3464234642 };
3464334643 // this is the non-root version (called recursively)
3464434644 /** @internal */
@@ -36123,6 +36123,21 @@ return /******/ (function(modules) { // webpackBootstrap
3612336123 var PlatformLocation = (function () {
3612436124 function PlatformLocation() {
3612536125 }
36126+ Object.defineProperty(PlatformLocation.prototype, "pathname", {
36127+ /* abstract */ get: function () { return null; },
36128+ enumerable: true,
36129+ configurable: true
36130+ });
36131+ Object.defineProperty(PlatformLocation.prototype, "search", {
36132+ /* abstract */ get: function () { return null; },
36133+ enumerable: true,
36134+ configurable: true
36135+ });
36136+ Object.defineProperty(PlatformLocation.prototype, "hash", {
36137+ /* abstract */ get: function () { return null; },
36138+ enumerable: true,
36139+ configurable: true
36140+ });
3612636141 return PlatformLocation;
3612736142 })();
3612836143 exports.PlatformLocation = PlatformLocation;
0 commit comments