@sumaris-net/ngx-components 1.16.3 → 1.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/cdk/table'), require('@angular/cdk/a11y'), require('@angular/cdk/overlay'), require('@angular/cdk/scrolling'), require('@angular/material/core'), require('@angular/material/table'), require('@angular/material/sort'), require('@angular/material/paginator'), require('@angular/material/form-field'), require('@angular/material/input'), require('@angular/material/checkbox'), require('@angular/material/expansion'), require('@angular/material/toolbar'), require('@angular/material/icon'), require('@angular/material/button'), require('@angular/material/menu'), require('@angular/material/select'), require('@angular/material/card'), require('@angular/material/tabs'), require('@angular/material/stepper'), require('@angular/material/list'), require('@angular/material/button-toggle'), require('@angular/material/progress-spinner'), require('@angular/material/progress-bar'), require('@angular/material/radio'), require('@angular/material/badge'), require('@angular/material/slide-toggle'), require('@angular/material/dialog'), require('@angular/material/autocomplete'), require('@angular/forms'), require('rxjs'), require('rxjs/operators'), require('@ngx-translate/core'), require('@ionic/angular'), require('moment'), require('@angular/material-moment-adapter'), require('moment-timezone'), require('@ionic-native/keyboard/ngx'), require('angular2-text-mask'), require('ngx-material-timepicker'), require('@angular/material/datepicker'), require('@angular/animations'), require('@angular/material/divider'), require('@angular/material/tooltip'), require('@angular/material/chips'), require('@angular/router'), require('@angular/platform-browser'), require('@angular/common/http'), require('ngx-color-picker'), require('@ionic-native/native-audio/ngx'), require('@ionic-native/vibration/ngx'), require('@ionic-native/audio-management/ngx'), require('@ionic-native/native-audio/ngx/index'), require('@ionic-native/vibration/ngx/index'), require('@ionic-native/audio-management/ngx/index'), require('uuid/v4'), require('@angular/cdk/drag-drop'), require('ngx-markdown'), require('tweetnacl'), require('@ionic/storage'), require('zone.js/dist/zone-error'), require('@ionic-native/splash-screen/ngx'), require('@ionic-native/network/ngx'), require('ionic-cache'), require('ionic-cache/dist/cache.service'), require('@ionic-native/network/ngx/index'), require('@ionic-native/splash-screen/ngx/index'), require('@ionic-native/status-bar/ngx'), require('@angular/cdk/platform'), require('@ionic-native/in-app-browser/ngx'), require('@apollo/client/core'), require('apollo-angular'), require('@apollo/client/link/ws'), require('@apollo/client/utilities'), require('@apollo/client/link/retry'), require('apollo-link-queue'), require('apollo-link-serialize'), require('apollo-link-logger'), require('apollo-angular/http'), require('apollo3-cache-persist'), require('@ionic-native/downloader/ngx'), require('@ionic-native/status-bar/ngx/index'), require('@ionic-native/keyboard/ngx/index'), require('@ionic-native/in-app-browser/ngx/index'), require('@ionic-native/downloader/ngx/index'), require('@angular/cdk/text-field'), require('@e-is/ngx-material-table'), require('@angular/cdk/collections'), require('ngx-jdenticon'), require('tweetnacl-util'), require('scrypt-async'), require('hammerjs')) :
3
3
  typeof define === 'function' && define.amd ? define('@sumaris-net/ngx-components', ['exports', '@angular/core', '@angular/common', '@angular/cdk/table', '@angular/cdk/a11y', '@angular/cdk/overlay', '@angular/cdk/scrolling', '@angular/material/core', '@angular/material/table', '@angular/material/sort', '@angular/material/paginator', '@angular/material/form-field', '@angular/material/input', '@angular/material/checkbox', '@angular/material/expansion', '@angular/material/toolbar', '@angular/material/icon', '@angular/material/button', '@angular/material/menu', '@angular/material/select', '@angular/material/card', '@angular/material/tabs', '@angular/material/stepper', '@angular/material/list', '@angular/material/button-toggle', '@angular/material/progress-spinner', '@angular/material/progress-bar', '@angular/material/radio', '@angular/material/badge', '@angular/material/slide-toggle', '@angular/material/dialog', '@angular/material/autocomplete', '@angular/forms', 'rxjs', 'rxjs/operators', '@ngx-translate/core', '@ionic/angular', 'moment', '@angular/material-moment-adapter', 'moment-timezone', '@ionic-native/keyboard/ngx', 'angular2-text-mask', 'ngx-material-timepicker', '@angular/material/datepicker', '@angular/animations', '@angular/material/divider', '@angular/material/tooltip', '@angular/material/chips', '@angular/router', '@angular/platform-browser', '@angular/common/http', 'ngx-color-picker', '@ionic-native/native-audio/ngx', '@ionic-native/vibration/ngx', '@ionic-native/audio-management/ngx', '@ionic-native/native-audio/ngx/index', '@ionic-native/vibration/ngx/index', '@ionic-native/audio-management/ngx/index', 'uuid/v4', '@angular/cdk/drag-drop', 'ngx-markdown', 'tweetnacl', '@ionic/storage', 'zone.js/dist/zone-error', '@ionic-native/splash-screen/ngx', '@ionic-native/network/ngx', 'ionic-cache', 'ionic-cache/dist/cache.service', '@ionic-native/network/ngx/index', '@ionic-native/splash-screen/ngx/index', '@ionic-native/status-bar/ngx', '@angular/cdk/platform', '@ionic-native/in-app-browser/ngx', '@apollo/client/core', 'apollo-angular', '@apollo/client/link/ws', '@apollo/client/utilities', '@apollo/client/link/retry', 'apollo-link-queue', 'apollo-link-serialize', 'apollo-link-logger', 'apollo-angular/http', 'apollo3-cache-persist', '@ionic-native/downloader/ngx', '@ionic-native/status-bar/ngx/index', '@ionic-native/keyboard/ngx/index', '@ionic-native/in-app-browser/ngx/index', '@ionic-native/downloader/ngx/index', '@angular/cdk/text-field', '@e-is/ngx-material-table', '@angular/cdk/collections', 'ngx-jdenticon', 'tweetnacl-util', 'scrypt-async', 'hammerjs'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["sumaris-net"] = global["sumaris-net"] || {}, global["sumaris-net"]["ngx-components"] = {}), global.ng.core, global.ng.common, global.ng.cdk.table, global.ng.cdk.a11y, global.ng.cdk.overlay, global.ng.cdk.scrolling, global.ng.material.core, global.ng.material.table, global.ng.material.sort, global.ng.material.paginator, global.ng.material.formField, global.ng.material.input, global.ng.material.checkbox, global.ng.material.expansion, global.ng.material.toolbar, global.ng.material.icon, global.ng.material.button, global.ng.material.menu, global.ng.material.select, global.ng.material.card, global.ng.material.tabs, global.ng.material.stepper, global.ng.material.list, global.ng.material.buttonToggle, global.ng.material.progressSpinner, global.ng.material.progressBar, global.ng.material.radio, global.ng.material.badge, global.ng.material.slideToggle, global.ng.material.dialog, global.ng.material.autocomplete, global.ng.forms, global.rxjs, global.rxjs.operators, global["ngx-translate"].core, global.ionic.angular, global.moment, global.ng.materialMomentAdapter, global["moment-timezone"], global["ionic-native"].keyboard.ngx, global["angular2-text-mask"], global["ngx-material-timepicker"], global.ng.material.datepicker, global.ng.animations, global.ng.material.divider, global.ng.material.tooltip, global.ng.material.chips, global.ng.router, global.ng.platformBrowser, global.ng.common.http, global["ngx-color-picker"], global["ionic-native"]["native-audio"].ngx, global["ionic-native"].vibration.ngx, global["ionic-native"]["audio-management"].ngx, global["ionic-native"]["native-audio"].ngx.index, global["ionic-native"].vibration.ngx.index, global["ionic-native"]["audio-management"].ngx.index, global.uuid.v4, global.ng.cdk.dragDrop, global["ngx-markdown"], global.tweetnacl, global.ionic.storage, null, global["ionic-native"]["splash-screen"].ngx, global["ionic-native"].network.ngx, global["ionic-cache"], global["ionic-cache/dist/cache"].service, global["ionic-native"].network.ngx.index, global["ionic-native"]["splash-screen"].ngx.index, global["ionic-native"]["status-bar"].ngx, global.ng.cdk.platform, global["ionic-native"]["in-app-browser"].ngx, global.apollo.client.core, global["apollo-angular"], global.apollo.client.link.ws, global.apollo.client.utilities, global.apollo.client.link.retry, global["apollo-link-queue"], global["apollo-link-serialize"], global["apollo-link-logger"], global["apollo-angular"].http, global["apollo3-cache-persist"], global["ionic-native"].downloader.ngx, global["ionic-native"]["status-bar"].ngx.index, global["ionic-native"].keyboard.ngx.index, global["ionic-native"]["in-app-browser"].ngx.index, global["ionic-native"].downloader.ngx.index, global.ng.cdk.textField, global["e-is"]["ngx-material-table"], global.ng.cdk.collections, global["ngx-jdenticon"]));
5
- })(this, (function (exports, i0, i1$4, table$1, a11y, overlay, scrolling, i1$3, table, sort$1, paginator, formField, input, checkbox, expansion, toolbar, icon, button, menu, select, card, tabs, stepper, list, buttonToggle, progressSpinner, progressBar, radio, badge, slideToggle, i2, autocomplete, i1, rxjs, operators, i1$2, i1$5, momentImported, i1$1, momentTZImported, ngx, angular2TextMask, ngxMaterialTimepicker, datepicker, animations, divider, tooltip, chips, i3, i1$6, i2$1, ngxColorPicker, ngx$2, ngx$3, ngx$1, i2$2, i3$1, i4, uuidv4Imported, dragDrop, ngxMarkdown, tweetnacl, i3$2, zoneError, ngx$5, ngx$4, ionicCache, i6, i9, i10, ngx$7, i2$4, ngx$8, core, i2$3, ws, utilities, retry, QueueLink, SerializingLink, loggerLink, i3$3, apollo3CachePersist, ngx$6, i14, i15, i17, i18, textField, ngxMaterialTable, collections, ngxJdenticon) { 'use strict';
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['sumaris-net'] = global['sumaris-net'] || {}, global['sumaris-net']['ngx-components'] = {}), global.ng.core, global.ng.common, global.ng.cdk.table, global.ng.cdk.a11y, global.ng.cdk.overlay, global.ng.cdk.scrolling, global.ng.material.core, global.ng.material.table, global.ng.material.sort, global.ng.material.paginator, global.ng.material.formField, global.ng.material.input, global.ng.material.checkbox, global.ng.material.expansion, global.ng.material.toolbar, global.ng.material.icon, global.ng.material.button, global.ng.material.menu, global.ng.material.select, global.ng.material.card, global.ng.material.tabs, global.ng.material.stepper, global.ng.material.list, global.ng.material.buttonToggle, global.ng.material.progressSpinner, global.ng.material.progressBar, global.ng.material.radio, global.ng.material.badge, global.ng.material.slideToggle, global.ng.material.dialog, global.ng.material.autocomplete, global.ng.forms, global.rxjs, global.rxjs.operators, global['ngx-translate'].core, global.ionic.angular, global.moment, global.ng.materialMomentAdapter, global['moment-timezone'], global['ionic-native'].keyboard.ngx, global['angular2-text-mask'], global['ngx-material-timepicker'], global.ng.material.datepicker, global.ng.animations, global.ng.material.divider, global.ng.material.tooltip, global.ng.material.chips, global.ng.router, global.ng.platformBrowser, global.ng.common.http, global['ngx-color-picker'], global['ionic-native']['native-audio'].ngx, global['ionic-native'].vibration.ngx, global['ionic-native']['audio-management'].ngx, global['ionic-native']['native-audio'].ngx.index, global['ionic-native'].vibration.ngx.index, global['ionic-native']['audio-management'].ngx.index, global.uuid.v4, global.ng.cdk.dragDrop, global['ngx-markdown'], global.tweetnacl, global.ionic.storage, null, global['ionic-native']['splash-screen'].ngx, global['ionic-native'].network.ngx, global['ionic-cache'], global['ionic-cache/dist/cache'].service, global['ionic-native'].network.ngx.index, global['ionic-native']['splash-screen'].ngx.index, global['ionic-native']['status-bar'].ngx, global.ng.cdk.platform, global['ionic-native']['in-app-browser'].ngx, global.apollo.client.core, global['apollo-angular'], global.apollo.client.link.ws, global.apollo.client.utilities, global.apollo.client.link.retry, global['apollo-link-queue'], global['apollo-link-serialize'], global['apollo-link-logger'], global['apollo-angular'].http, global['apollo3-cache-persist'], global['ionic-native'].downloader.ngx, global['ionic-native']['status-bar'].ngx.index, global['ionic-native'].keyboard.ngx.index, global['ionic-native']['in-app-browser'].ngx.index, global['ionic-native'].downloader.ngx.index, global.ng.cdk.textField, global['e-is']['ngx-material-table'], global.ng.cdk.collections, global['ngx-jdenticon']));
5
+ }(this, (function (exports, i0, i1$4, table$1, a11y, overlay, scrolling, i1$3, table, sort$1, paginator, formField, input, checkbox, expansion, toolbar, icon, button, menu, select, card, tabs, stepper, list, buttonToggle, progressSpinner, progressBar, radio, badge, slideToggle, i2, autocomplete, i1, rxjs, operators, i1$2, i1$5, momentImported, i1$1, momentTZImported, ngx, angular2TextMask, ngxMaterialTimepicker, datepicker, animations, divider, tooltip, chips, i3, i1$6, i2$1, ngxColorPicker, ngx$2, ngx$3, ngx$1, i2$2, i3$1, i4, uuidv4Imported, dragDrop, ngxMarkdown, tweetnacl, i3$2, zoneError, ngx$5, ngx$4, ionicCache, i6, i9, i10, ngx$7, i2$4, ngx$8, core, i2$3, ws, utilities, retry, QueueLink, SerializingLink, loggerLink, i3$3, apollo3CachePersist, ngx$6, i14, i15, i17, i18, textField, ngxMaterialTable, collections, ngxJdenticon) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
@@ -15,46 +15,23 @@
15
15
  var d = Object.getOwnPropertyDescriptor(e, k);
16
16
  Object.defineProperty(n, k, d.get ? d : {
17
17
  enumerable: true,
18
- get: function () { return e[k]; }
18
+ get: function () {
19
+ return e[k];
20
+ }
19
21
  });
20
22
  }
21
23
  });
22
24
  }
23
- n["default"] = e;
25
+ n['default'] = e;
24
26
  return Object.freeze(n);
25
27
  }
26
28
 
27
- var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
28
- var i1__namespace$3 = /*#__PURE__*/_interopNamespace(i1$4);
29
- var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$3);
30
- var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2);
31
- var i1__namespace$6 = /*#__PURE__*/_interopNamespace(i1);
32
- var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$2);
33
- var i1__namespace$4 = /*#__PURE__*/_interopNamespace(i1$5);
34
29
  var momentImported__namespace = /*#__PURE__*/_interopNamespace(momentImported);
35
- var i1__namespace = /*#__PURE__*/_interopNamespace(i1$1);
36
30
  var momentTZImported__namespace = /*#__PURE__*/_interopNamespace(momentTZImported);
37
- var i3__namespace$3 = /*#__PURE__*/_interopNamespace(i3);
38
- var i1__namespace$5 = /*#__PURE__*/_interopNamespace(i1$6);
39
- var i2__namespace$2 = /*#__PURE__*/_interopNamespace(i2$1);
40
- var i2__namespace = /*#__PURE__*/_interopNamespace(i2$2);
41
- var i3__namespace = /*#__PURE__*/_interopNamespace(i3$1);
42
- var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
43
31
  var uuidv4Imported__namespace = /*#__PURE__*/_interopNamespace(uuidv4Imported);
44
- var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$2);
45
- var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
46
- var i9__namespace = /*#__PURE__*/_interopNamespace(i9);
47
- var i10__namespace = /*#__PURE__*/_interopNamespace(i10);
48
- var i2__namespace$4 = /*#__PURE__*/_interopNamespace(i2$4);
49
- var i2__namespace$3 = /*#__PURE__*/_interopNamespace(i2$3);
50
32
  var QueueLink__default = /*#__PURE__*/_interopDefaultLegacy(QueueLink);
51
33
  var SerializingLink__default = /*#__PURE__*/_interopDefaultLegacy(SerializingLink);
52
34
  var loggerLink__default = /*#__PURE__*/_interopDefaultLegacy(loggerLink);
53
- var i3__namespace$2 = /*#__PURE__*/_interopNamespace(i3$3);
54
- var i14__namespace = /*#__PURE__*/_interopNamespace(i14);
55
- var i15__namespace = /*#__PURE__*/_interopNamespace(i15);
56
- var i17__namespace = /*#__PURE__*/_interopNamespace(i17);
57
- var i18__namespace = /*#__PURE__*/_interopNamespace(i18);
58
35
 
59
36
  var ENVIRONMENT = new i0.InjectionToken('ENV');
60
37
  var Environment = /** @class */ (function () {
@@ -1280,14 +1257,14 @@
1280
1257
  };
1281
1258
  return MatAutocompleteConfigHolder;
1282
1259
  }());
1283
- var noop$8 = function (_) { };
1284
- var ɵ0$c = noop$8;
1260
+ var noop = function (_) { };
1261
+ var ɵ0 = noop;
1285
1262
  var MatAutocompleteField = /** @class */ (function () {
1286
1263
  function MatAutocompleteField(cd, formGroupDir) {
1287
1264
  this.cd = cd;
1288
1265
  this.formGroupDir = formGroupDir;
1289
- this._onChangeCallback = noop$8;
1290
- this._onTouchedCallback = noop$8;
1266
+ this._onChangeCallback = noop;
1267
+ this._onTouchedCallback = noop;
1291
1268
  this.logPrefix = '[mat-autocomplete] ';
1292
1269
  this.formControlName = null;
1293
1270
  this.required = false;
@@ -2080,7 +2057,7 @@
2080
2057
  };
2081
2058
  return DateFormatPipe;
2082
2059
  }());
2083
- DateFormatPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function DateFormatPipe_Factory() { return new DateFormatPipe(i0__namespace.ɵɵinject(i1__namespace.MomentDateAdapter), i0__namespace.ɵɵinject(i1__namespace$1.TranslateService)); }, token: DateFormatPipe, providedIn: "root" });
2060
+ DateFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DateFormatPipe_Factory() { return new DateFormatPipe(i0.ɵɵinject(i1$1.MomentDateAdapter), i0.ɵɵinject(i1$2.TranslateService)); }, token: DateFormatPipe, providedIn: "root" });
2084
2061
  DateFormatPipe.decorators = [
2085
2062
  { type: i0.Pipe, args: [{
2086
2063
  name: 'dateFormat'
@@ -2092,7 +2069,7 @@
2092
2069
  { type: i1$2.TranslateService }
2093
2070
  ]; };
2094
2071
 
2095
- var moment$7 = momentImported__namespace;
2072
+ var moment = momentImported__namespace;
2096
2073
  var DateDiffDurationPipe = /** @class */ (function () {
2097
2074
  function DateDiffDurationPipe(dateAdapter, translate) {
2098
2075
  var _this = this;
@@ -2109,10 +2086,10 @@
2109
2086
  return this.format(startDate, endDate);
2110
2087
  };
2111
2088
  DateDiffDurationPipe.prototype.format = function (startDate, endDate) {
2112
- var duration = moment$7.duration(endDate.diff(startDate));
2089
+ var duration = moment.duration(endDate.diff(startDate));
2113
2090
  if (duration.asMinutes() < 0)
2114
2091
  return '';
2115
- var timeDuration = moment$7(0)
2092
+ var timeDuration = moment(0)
2116
2093
  .hour(duration.hours())
2117
2094
  .minute(duration.minutes());
2118
2095
  var days = Math.floor(duration.asDays());
@@ -2120,7 +2097,7 @@
2120
2097
  };
2121
2098
  return DateDiffDurationPipe;
2122
2099
  }());
2123
- DateDiffDurationPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function DateDiffDurationPipe_Factory() { return new DateDiffDurationPipe(i0__namespace.ɵɵinject(i1__namespace$2.DateAdapter), i0__namespace.ɵɵinject(i1__namespace$1.TranslateService)); }, token: DateDiffDurationPipe, providedIn: "root" });
2100
+ DateDiffDurationPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DateDiffDurationPipe_Factory() { return new DateDiffDurationPipe(i0.ɵɵinject(i1$3.DateAdapter), i0.ɵɵinject(i1$2.TranslateService)); }, token: DateDiffDurationPipe, providedIn: "root" });
2124
2101
  DateDiffDurationPipe.decorators = [
2125
2102
  { type: i0.Pipe, args: [{
2126
2103
  name: 'dateDiffDuration'
@@ -2142,7 +2119,7 @@
2142
2119
  };
2143
2120
  return DateFromNowPipe;
2144
2121
  }());
2145
- DateFromNowPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function DateFromNowPipe_Factory() { return new DateFromNowPipe(i0__namespace.ɵɵinject(i1__namespace.MomentDateAdapter)); }, token: DateFromNowPipe, providedIn: "root" });
2122
+ DateFromNowPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DateFromNowPipe_Factory() { return new DateFromNowPipe(i0.ɵɵinject(i1$1.MomentDateAdapter)); }, token: DateFromNowPipe, providedIn: "root" });
2146
2123
  DateFromNowPipe.decorators = [
2147
2124
  { type: i0.Pipe, args: [{
2148
2125
  name: 'dateFromNow'
@@ -2211,7 +2188,7 @@
2211
2188
  value *= -1;
2212
2189
  }
2213
2190
  }
2214
- var degrees = roundFloat$1(value, opts.maxDecimals).toString();
2191
+ var degrees = roundFloat(value, opts.maxDecimals).toString();
2215
2192
  // Add sign
2216
2193
  var sign = negative ? '-' : '+';
2217
2194
  if (opts.placeholderChar) {
@@ -2262,7 +2239,7 @@
2262
2239
  }
2263
2240
  var degrees = Math.trunc(value);
2264
2241
  var minutes = Math.trunc((value - degrees) * 60);
2265
- var seconds = roundFloat$1(((value - degrees) * 60 - minutes) * 60, opts.maxDecimals);
2242
+ var seconds = roundFloat(((value - degrees) * 60 - minutes) * 60, opts.maxDecimals);
2266
2243
  while (seconds >= 60) {
2267
2244
  seconds -= 60;
2268
2245
  minutes += 1;
@@ -2330,7 +2307,7 @@
2330
2307
  }
2331
2308
  }
2332
2309
  var degrees = Math.trunc(value);
2333
- var minutes = roundFloat$1((value - degrees) * 60, opts.maxDecimals);
2310
+ var minutes = roundFloat((value - degrees) * 60, opts.maxDecimals);
2334
2311
  while (minutes >= 60) {
2335
2312
  minutes -= 60;
2336
2313
  degrees += 1;
@@ -2381,15 +2358,15 @@
2381
2358
  return NaN;
2382
2359
  }
2383
2360
  if (pattern === 'DD')
2384
- return roundFloat$1(degrees, maxDecimals);
2361
+ return roundFloat(degrees, maxDecimals);
2385
2362
  var minutes = (pattern === 'DDMMSS' || pattern === 'DDMM') && parts[1] && parseFloat(parts[1].replace(/,/g, '.')) || 0;
2386
2363
  var seconds = (pattern === 'DDMMSS') && parts[2] && parseFloat(parts[2].replace(/,/g, '.')) || 0;
2387
2364
  var direction = ((pattern === 'DDMMSS') && parts[3]) || ((pattern === 'DDMM') && parts[2]) || undefined;
2388
2365
  var sign = (direction && (direction === 's' || direction === 'S' || direction === 'w' || direction === 'W')) ? -1 : 1;
2389
2366
  degrees = sign * (degrees + minutes / 60 + seconds / (60 * 60));
2390
- return roundFloat$1(degrees, maxDecimals);
2367
+ return roundFloat(degrees, maxDecimals);
2391
2368
  }
2392
- function roundFloat$1(input, maxDecimals) {
2369
+ function roundFloat(input, maxDecimals) {
2393
2370
  if (maxDecimals > 0) {
2394
2371
  var powDecimal = Math.pow(10, maxDecimals);
2395
2372
  return Math.trunc(input * powDecimal + 0.5) / powDecimal;
@@ -2412,7 +2389,7 @@
2412
2389
  };
2413
2390
  return LatLongFormatPipe;
2414
2391
  }());
2415
- LatLongFormatPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function LatLongFormatPipe_Factory() { return new LatLongFormatPipe(); }, token: LatLongFormatPipe, providedIn: "root" });
2392
+ LatLongFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function LatLongFormatPipe_Factory() { return new LatLongFormatPipe(); }, token: LatLongFormatPipe, providedIn: "root" });
2416
2393
  LatLongFormatPipe.decorators = [
2417
2394
  { type: i0.Pipe, args: [{
2418
2395
  name: 'latLongFormat'
@@ -2425,7 +2402,7 @@
2425
2402
  }
2426
2403
  return LatitudeFormatPipe;
2427
2404
  }());
2428
- LatitudeFormatPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function LatitudeFormatPipe_Factory() { return new LatitudeFormatPipe(); }, token: LatitudeFormatPipe, providedIn: "root" });
2405
+ LatitudeFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function LatitudeFormatPipe_Factory() { return new LatitudeFormatPipe(); }, token: LatitudeFormatPipe, providedIn: "root" });
2429
2406
  LatitudeFormatPipe.decorators = [
2430
2407
  { type: i0.Pipe, args: [{
2431
2408
  name: 'latitudeFormat'
@@ -2438,7 +2415,7 @@
2438
2415
  }
2439
2416
  return LongitudeFormatPipe;
2440
2417
  }());
2441
- LongitudeFormatPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function LongitudeFormatPipe_Factory() { return new LongitudeFormatPipe(); }, token: LongitudeFormatPipe, providedIn: "root" });
2418
+ LongitudeFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function LongitudeFormatPipe_Factory() { return new LongitudeFormatPipe(); }, token: LongitudeFormatPipe, providedIn: "root" });
2442
2419
  LongitudeFormatPipe.decorators = [
2443
2420
  { type: i0.Pipe, args: [{
2444
2421
  name: 'longitudeFormat'
@@ -2461,7 +2438,7 @@
2461
2438
  };
2462
2439
  return NumberFormatPipe;
2463
2440
  }());
2464
- NumberFormatPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function NumberFormatPipe_Factory() { return new NumberFormatPipe(); }, token: NumberFormatPipe, providedIn: "root" });
2441
+ NumberFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function NumberFormatPipe_Factory() { return new NumberFormatPipe(); }, token: NumberFormatPipe, providedIn: "root" });
2465
2442
  NumberFormatPipe.decorators = [
2466
2443
  { type: i0.Pipe, args: [{
2467
2444
  name: 'numberFormat'
@@ -2504,7 +2481,7 @@
2504
2481
  };
2505
2482
  return HighlightPipe;
2506
2483
  }());
2507
- HighlightPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function HighlightPipe_Factory() { return new HighlightPipe(); }, token: HighlightPipe, providedIn: "root" });
2484
+ HighlightPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function HighlightPipe_Factory() { return new HighlightPipe(); }, token: HighlightPipe, providedIn: "root" });
2508
2485
  HighlightPipe.decorators = [
2509
2486
  { type: i0.Pipe, args: [{
2510
2487
  name: 'highlight'
@@ -2572,7 +2549,7 @@
2572
2549
  { type: i0.Pipe, args: [{ name: 'fileSize' },] }
2573
2550
  ];
2574
2551
 
2575
- var moment$6 = momentImported__namespace;
2552
+ var moment$1 = momentImported__namespace;
2576
2553
  var tz = momentTZImported__namespace;
2577
2554
  var DATE_UNIX_TIMESTAMP = 'X';
2578
2555
  var DATE_UNIX_MS_TIMESTAMP = 'x';
@@ -2650,32 +2627,32 @@
2650
2627
  if (!value || momentImported.isMoment(value))
2651
2628
  return value;
2652
2629
  // Parse the input value, as a ISO date time
2653
- var date = moment$6(value, DATE_ISO_PATTERN);
2630
+ var date = moment$1(value, DATE_ISO_PATTERN);
2654
2631
  if (date.isValid())
2655
2632
  return date;
2656
2633
  // Not valid: trying to convert from unix timestamp
2657
2634
  if (typeof value === 'string') {
2658
2635
  console.warn('Wrong date format - Trying to convert from local time: ' + value);
2659
2636
  if (value.length === 10) {
2660
- return moment$6(value, DATE_UNIX_TIMESTAMP);
2637
+ return moment$1(value, DATE_UNIX_TIMESTAMP);
2661
2638
  }
2662
2639
  else if (value.length === 13) {
2663
- return moment$6(value, DATE_UNIX_MS_TIMESTAMP);
2640
+ return moment$1(value, DATE_UNIX_MS_TIMESTAMP);
2664
2641
  }
2665
2642
  }
2666
2643
  console.warn('Unable to parse date: ' + value);
2667
2644
  return undefined;
2668
2645
  }
2669
2646
  function fromUnixTimestamp(timeInSec) {
2670
- return moment$6(timeInSec, DATE_UNIX_TIMESTAMP);
2647
+ return moment$1(timeInSec, DATE_UNIX_TIMESTAMP);
2671
2648
  }
2672
2649
  function fromUnixMsTimestamp(timeInMs) {
2673
- return moment$6(timeInMs, DATE_UNIX_MS_TIMESTAMP);
2650
+ return moment$1(timeInMs, DATE_UNIX_MS_TIMESTAMP);
2674
2651
  }
2675
2652
  function toDuration(value, unit) {
2676
2653
  if (!value)
2677
2654
  return undefined;
2678
- var duration = moment$6.duration(value, unit);
2655
+ var duration = moment$1.duration(value, unit);
2679
2656
  // fix 990+ ms
2680
2657
  if (duration.milliseconds() >= 990) {
2681
2658
  duration.add(1000 - duration.milliseconds(), 'ms');
@@ -2705,7 +2682,7 @@
2705
2682
  };
2706
2683
  return DurationPipe;
2707
2684
  }());
2708
- DurationPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function DurationPipe_Factory() { return new DurationPipe(i0__namespace.ɵɵinject(i1__namespace$1.TranslateService)); }, token: DurationPipe, providedIn: "root" });
2685
+ DurationPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DurationPipe_Factory() { return new DurationPipe(i0.ɵɵinject(i1$2.TranslateService)); }, token: DurationPipe, providedIn: "root" });
2709
2686
  DurationPipe.decorators = [
2710
2687
  { type: i0.Pipe, args: [{
2711
2688
  name: 'duration'
@@ -2729,7 +2706,7 @@
2729
2706
  };
2730
2707
  return MathAbsPipe;
2731
2708
  }());
2732
- MathAbsPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function MathAbsPipe_Factory() { return new MathAbsPipe(); }, token: MathAbsPipe, providedIn: "root" });
2709
+ MathAbsPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function MathAbsPipe_Factory() { return new MathAbsPipe(); }, token: MathAbsPipe, providedIn: "root" });
2733
2710
  MathAbsPipe.decorators = [
2734
2711
  { type: i0.Pipe, args: [{
2735
2712
  name: 'mathAbs'
@@ -2744,7 +2721,7 @@
2744
2721
  };
2745
2722
  return EvenPipe;
2746
2723
  }());
2747
- EvenPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function EvenPipe_Factory() { return new EvenPipe(); }, token: EvenPipe, providedIn: "root" });
2724
+ EvenPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function EvenPipe_Factory() { return new EvenPipe(); }, token: EvenPipe, providedIn: "root" });
2748
2725
  EvenPipe.decorators = [
2749
2726
  { type: i0.Pipe, args: [{
2750
2727
  name: 'even'
@@ -2759,7 +2736,7 @@
2759
2736
  };
2760
2737
  return OddPipe;
2761
2738
  }());
2762
- OddPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function OddPipe_Factory() { return new OddPipe(); }, token: OddPipe, providedIn: "root" });
2739
+ OddPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function OddPipe_Factory() { return new OddPipe(); }, token: OddPipe, providedIn: "root" });
2763
2740
  OddPipe.decorators = [
2764
2741
  { type: i0.Pipe, args: [{
2765
2742
  name: 'odd'
@@ -2891,7 +2868,7 @@
2891
2868
  };
2892
2869
  return MapGetPipe;
2893
2870
  }());
2894
- MapGetPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function MapGetPipe_Factory() { return new MapGetPipe(); }, token: MapGetPipe, providedIn: "root" });
2871
+ MapGetPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function MapGetPipe_Factory() { return new MapGetPipe(); }, token: MapGetPipe, providedIn: "root" });
2895
2872
  MapGetPipe.decorators = [
2896
2873
  { type: i0.Pipe, args: [{
2897
2874
  name: 'mapGet'
@@ -2908,7 +2885,7 @@
2908
2885
  };
2909
2886
  return MapKeysPipe;
2910
2887
  }());
2911
- MapKeysPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function MapKeysPipe_Factory() { return new MapKeysPipe(); }, token: MapKeysPipe, providedIn: "root" });
2888
+ MapKeysPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function MapKeysPipe_Factory() { return new MapKeysPipe(); }, token: MapKeysPipe, providedIn: "root" });
2912
2889
  MapKeysPipe.decorators = [
2913
2890
  { type: i0.Pipe, args: [{
2914
2891
  name: 'mapKeys'
@@ -2925,7 +2902,7 @@
2925
2902
  };
2926
2903
  return MapValuesPipe;
2927
2904
  }());
2928
- MapValuesPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function MapValuesPipe_Factory() { return new MapValuesPipe(); }, token: MapValuesPipe, providedIn: "root" });
2905
+ MapValuesPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function MapValuesPipe_Factory() { return new MapValuesPipe(); }, token: MapValuesPipe, providedIn: "root" });
2929
2906
  MapValuesPipe.decorators = [
2930
2907
  { type: i0.Pipe, args: [{
2931
2908
  name: 'mapValues'
@@ -2941,7 +2918,7 @@
2941
2918
  };
2942
2919
  return IsNotNilOrBlankPipe;
2943
2920
  }());
2944
- IsNotNilOrBlankPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function IsNotNilOrBlankPipe_Factory() { return new IsNotNilOrBlankPipe(); }, token: IsNotNilOrBlankPipe, providedIn: "root" });
2921
+ IsNotNilOrBlankPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsNotNilOrBlankPipe_Factory() { return new IsNotNilOrBlankPipe(); }, token: IsNotNilOrBlankPipe, providedIn: "root" });
2945
2922
  IsNotNilOrBlankPipe.decorators = [
2946
2923
  { type: i0.Pipe, args: [{
2947
2924
  name: 'isNotNilOrBlank'
@@ -2956,7 +2933,7 @@
2956
2933
  };
2957
2934
  return IsNilOrBlankPipe;
2958
2935
  }());
2959
- IsNilOrBlankPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function IsNilOrBlankPipe_Factory() { return new IsNilOrBlankPipe(); }, token: IsNilOrBlankPipe, providedIn: "root" });
2936
+ IsNilOrBlankPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsNilOrBlankPipe_Factory() { return new IsNilOrBlankPipe(); }, token: IsNilOrBlankPipe, providedIn: "root" });
2960
2937
  IsNilOrBlankPipe.decorators = [
2961
2938
  { type: i0.Pipe, args: [{
2962
2939
  name: 'isNilOrBlank'
@@ -2971,7 +2948,7 @@
2971
2948
  };
2972
2949
  return ToStringPipe;
2973
2950
  }());
2974
- ToStringPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function ToStringPipe_Factory() { return new ToStringPipe(); }, token: ToStringPipe, providedIn: "root" });
2951
+ ToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function ToStringPipe_Factory() { return new ToStringPipe(); }, token: ToStringPipe, providedIn: "root" });
2975
2952
  ToStringPipe.decorators = [
2976
2953
  { type: i0.Pipe, args: [{
2977
2954
  name: 'toString'
@@ -2986,7 +2963,7 @@
2986
2963
  };
2987
2964
  return StrLengthPipe;
2988
2965
  }());
2989
- StrLengthPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function StrLengthPipe_Factory() { return new StrLengthPipe(); }, token: StrLengthPipe, providedIn: "root" });
2966
+ StrLengthPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function StrLengthPipe_Factory() { return new StrLengthPipe(); }, token: StrLengthPipe, providedIn: "root" });
2990
2967
  StrLengthPipe.decorators = [
2991
2968
  { type: i0.Pipe, args: [{
2992
2969
  name: 'strLength'
@@ -3001,7 +2978,7 @@
3001
2978
  };
3002
2979
  return StrIncludesPipe;
3003
2980
  }());
3004
- StrIncludesPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function StrIncludesPipe_Factory() { return new StrIncludesPipe(); }, token: StrIncludesPipe, providedIn: "root" });
2981
+ StrIncludesPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function StrIncludesPipe_Factory() { return new StrIncludesPipe(); }, token: StrIncludesPipe, providedIn: "root" });
3005
2982
  StrIncludesPipe.decorators = [
3006
2983
  { type: i0.Pipe, args: [{
3007
2984
  name: 'strIncludes'
@@ -3092,7 +3069,7 @@
3092
3069
  };
3093
3070
  return TranslateContextService;
3094
3071
  }());
3095
- TranslateContextService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function TranslateContextService_Factory() { return new TranslateContextService(i0__namespace.ɵɵinject(i1__namespace$1.TranslateService)); }, token: TranslateContextService, providedIn: "root" });
3072
+ TranslateContextService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TranslateContextService_Factory() { return new TranslateContextService(i0.ɵɵinject(i1$2.TranslateService)); }, token: TranslateContextService, providedIn: "root" });
3096
3073
  TranslateContextService.decorators = [
3097
3074
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
3098
3075
  ];
@@ -3149,7 +3126,7 @@
3149
3126
  };
3150
3127
  return PropertyGetPipe;
3151
3128
  }());
3152
- PropertyGetPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function PropertyGetPipe_Factory() { return new PropertyGetPipe(); }, token: PropertyGetPipe, providedIn: "root" });
3129
+ PropertyGetPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function PropertyGetPipe_Factory() { return new PropertyGetPipe(); }, token: PropertyGetPipe, providedIn: "root" });
3153
3130
  PropertyGetPipe.decorators = [
3154
3131
  { type: i0.Pipe, args: [{
3155
3132
  name: 'propertyGet'
@@ -3175,7 +3152,7 @@
3175
3152
  ngInit: [{ type: i0.Output }]
3176
3153
  };
3177
3154
 
3178
- var moment$5 = momentImported__namespace;
3155
+ var moment$2 = momentImported__namespace;
3179
3156
  // @dynamic
3180
3157
  var SharedValidators = /** @class */ (function () {
3181
3158
  function SharedValidators() {
@@ -3258,7 +3235,7 @@
3258
3235
  };
3259
3236
  SharedValidators.validDate = function (control) {
3260
3237
  var value = control.value;
3261
- var date = !value || moment$5.isMoment(value) ? value : moment$5(control.value, DATE_ISO_PATTERN);
3238
+ var date = !value || moment$2.isMoment(value) ? value : moment$2(control.value, DATE_ISO_PATTERN);
3262
3239
  if (date && (!date.isValid() || date.year() < 1970)) {
3263
3240
  return { validDate: true };
3264
3241
  }
@@ -4465,7 +4442,7 @@
4465
4442
  };
4466
4443
  return FormErrorTranslator;
4467
4444
  }());
4468
- FormErrorTranslator.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function FormErrorTranslator_Factory() { return new FormErrorTranslator(i0__namespace.ɵɵinject(i1__namespace$1.TranslateService), i0__namespace.ɵɵinject(APP_FORM_ERROR_I18N_KEYS, 8)); }, token: FormErrorTranslator, providedIn: "root" });
4445
+ FormErrorTranslator.ɵprov = i0.ɵɵdefineInjectable({ factory: function FormErrorTranslator_Factory() { return new FormErrorTranslator(i0.ɵɵinject(i1$2.TranslateService), i0.ɵɵinject(APP_FORM_ERROR_I18N_KEYS, 8)); }, token: FormErrorTranslator, providedIn: "root" });
4469
4446
  FormErrorTranslator.decorators = [
4470
4447
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
4471
4448
  ];
@@ -4550,7 +4527,7 @@
4550
4527
  };
4551
4528
  return FormGetPipe;
4552
4529
  }());
4553
- FormGetPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function FormGetPipe_Factory() { return new FormGetPipe(); }, token: FormGetPipe, providedIn: "root" });
4530
+ FormGetPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function FormGetPipe_Factory() { return new FormGetPipe(); }, token: FormGetPipe, providedIn: "root" });
4554
4531
  FormGetPipe.decorators = [
4555
4532
  { type: i0.Pipe, args: [{
4556
4533
  name: 'formGet'
@@ -4565,7 +4542,7 @@
4565
4542
  };
4566
4543
  return FormGetControlPipe;
4567
4544
  }());
4568
- FormGetControlPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function FormGetControlPipe_Factory() { return new FormGetControlPipe(); }, token: FormGetControlPipe, providedIn: "root" });
4545
+ FormGetControlPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function FormGetControlPipe_Factory() { return new FormGetControlPipe(); }, token: FormGetControlPipe, providedIn: "root" });
4569
4546
  FormGetControlPipe.decorators = [
4570
4547
  { type: i0.Pipe, args: [{
4571
4548
  name: 'formGetControl'
@@ -4580,7 +4557,7 @@
4580
4557
  };
4581
4558
  return FormGetArrayPipe;
4582
4559
  }());
4583
- FormGetArrayPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function FormGetArrayPipe_Factory() { return new FormGetArrayPipe(); }, token: FormGetArrayPipe, providedIn: "root" });
4560
+ FormGetArrayPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function FormGetArrayPipe_Factory() { return new FormGetArrayPipe(); }, token: FormGetArrayPipe, providedIn: "root" });
4584
4561
  FormGetArrayPipe.decorators = [
4585
4562
  { type: i0.Pipe, args: [{
4586
4563
  name: 'formGetArray'
@@ -4595,7 +4572,7 @@
4595
4572
  };
4596
4573
  return FormGetGroupPipe;
4597
4574
  }());
4598
- FormGetGroupPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function FormGetGroupPipe_Factory() { return new FormGetGroupPipe(); }, token: FormGetGroupPipe, providedIn: "root" });
4575
+ FormGetGroupPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function FormGetGroupPipe_Factory() { return new FormGetGroupPipe(); }, token: FormGetGroupPipe, providedIn: "root" });
4599
4576
  FormGetGroupPipe.decorators = [
4600
4577
  { type: i0.Pipe, args: [{
4601
4578
  name: 'formGetGroup'
@@ -4718,7 +4695,7 @@
4718
4695
  }
4719
4696
  return false;
4720
4697
  };
4721
- var ɵ0$b = isIpad;
4698
+ var ɵ0$1 = isIpad;
4722
4699
  var isIOS = function (win) { return testUserAgent(win, /iPhone|iPod/i) || isIpad(win); };
4723
4700
  var isAndroid = function (win) { return testUserAgent(win, /android|sink/i); };
4724
4701
  var isCordova = function (win) { return !!(win['cordova'] || win['phonegap'] || win['PhoneGap']); };
@@ -4967,9 +4944,9 @@
4967
4944
  var hour = parseInt(durationParts[0] || '0');
4968
4945
  var minute = parseInt(durationParts[1] || '0');
4969
4946
  var value = hour + (minute + 0.5) / 60;
4970
- return roundFloat(value, maxDecimals);
4947
+ return roundFloat$1(value, maxDecimals);
4971
4948
  }
4972
- function roundFloat(input, maxDecimals) {
4949
+ function roundFloat$1(input, maxDecimals) {
4973
4950
  if (maxDecimals > 0) {
4974
4951
  var powDecimal = Math.pow(10, maxDecimals);
4975
4952
  return Math.trunc(input * powDecimal + 0.5) / powDecimal;
@@ -4993,9 +4970,9 @@
4993
4970
  DD: [/[+-]/, /\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, '°']
4994
4971
  }
4995
4972
  };
4996
- var noop$7 = function () {
4973
+ var noop$1 = function () {
4997
4974
  };
4998
- var ɵ0$a = noop$7;
4975
+ var ɵ0$2 = noop$1;
4999
4976
  var MatLatLongField = /** @class */ (function () {
5000
4977
  function MatLatLongField(platform, translate, formBuilder, cd, formGroupDir) {
5001
4978
  this.platform = platform;
@@ -5003,8 +4980,8 @@
5003
4980
  this.formBuilder = formBuilder;
5004
4981
  this.cd = cd;
5005
4982
  this.formGroupDir = formGroupDir;
5006
- this._onChangeCallback = noop$7;
5007
- this._onTouchedCallback = noop$7;
4983
+ this._onChangeCallback = noop$1;
4984
+ this._onTouchedCallback = noop$1;
5008
4985
  this._subscription = new rxjs.Subscription();
5009
4986
  this.disabling = false;
5010
4987
  this.writing = false;
@@ -5356,14 +5333,14 @@
5356
5333
  },] }
5357
5334
  ];
5358
5335
 
5359
- var DEFAULT_VALUE_ACCESSOR$5 = {
5336
+ var DEFAULT_VALUE_ACCESSOR = {
5360
5337
  provide: i1.NG_VALUE_ACCESSOR,
5361
5338
  useExisting: i0.forwardRef(function () { return MatDate; }),
5362
5339
  multi: true
5363
5340
  };
5364
- var DAY_MASK$2 = [/\d/, /\d/, '/', /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/];
5365
- var noop$6 = function () { };
5366
- var ɵ0$9 = noop$6;
5341
+ var DAY_MASK = [/\d/, /\d/, '/', /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/];
5342
+ var noop$2 = function () { };
5343
+ var ɵ0$3 = noop$2;
5367
5344
  var MatDate = /** @class */ (function () {
5368
5345
  function MatDate(platform, dateAdapter, translate, formBuilder, cd, keyboard, formGroupDir) {
5369
5346
  this.platform = platform;
@@ -5373,13 +5350,13 @@
5373
5350
  this.cd = cd;
5374
5351
  this.keyboard = keyboard;
5375
5352
  this.formGroupDir = formGroupDir;
5376
- this._onChangeCallback = noop$6;
5377
- this._onTouchedCallback = noop$6;
5353
+ this._onChangeCallback = noop$2;
5354
+ this._onTouchedCallback = noop$2;
5378
5355
  this._subscription = new rxjs.Subscription();
5379
5356
  this._writing = true;
5380
5357
  this._disabling = false;
5381
5358
  this._readonly = false;
5382
- this.dayMask = DAY_MASK$2;
5359
+ this.dayMask = DAY_MASK;
5383
5360
  this.floatLabel = 'auto';
5384
5361
  this.compact = false;
5385
5362
  this.placeholderChar = DEFAULT_PLACEHOLDER_CHAR;
@@ -5702,7 +5679,7 @@
5702
5679
  selector: 'mat-date-field',
5703
5680
  template: "<!-- readonly -->\n<mat-form-field *ngIf=\"readonly; else writable\"\n [floatLabel]=\"floatLabel\"\n class=\"mat-form-field-disabled\">\n\n <div matPrefix>\n <ng-container *ngTemplateOutlet=\"matPrefixTemplate\"></ng-container>\n </div>\n\n <input matInput hidden type=\"text\"\n readonly\n [placeholder]=\"placeholder\"\n [formControl]=\"formControl\">\n <ion-text>{{formControl.value|dateFormat: {pattern: displayPattern} }}</ion-text>\n</mat-form-field>\n\n<!-- writable -->\n<ng-template #writable>\n <mat-form-field [floatLabel]=\"floatLabel\">\n\n <mat-label>{{placeholder}}</mat-label>\n\n <div matPrefix>\n <ng-container *ngTemplateOutlet=\"matPrefixTemplate\"></ng-container>\n </div>\n\n <input matInput #matInput autocomplete=\"off\" type=\"text\"\n *ngIf=\"!mobile\"\n [formControl]=\"dayControl\"\n [textMask]=\"{mask: dayMask, keepCharPositions: true, placeholderChar: placeholderChar}\"\n [placeholder]=\"'COMMON.DATE_PLACEHOLDER'|translate\"\n (blur)=\"checkIfTouched()\"\n (keyup.arrowdown)=\"openDatePicker($event, datePicker)\"\n (keyup.escape)=\"preventEvent($event)\"\n [required]=\"required\"\n [tabindex]=\"tabindex\"\n [appAutofocus]=\"autofocus\">\n <input matInput #matInput autocomplete=\"off\" type=\"text\"\n *ngIf=\"mobile\"\n [formControl]=\"dayControl\"\n (click)=\"openDatePickerIfMobile($event, datePicker)\"\n [required]=\"required\"\n [tabindex]=\"tabindex\"\n readonly>\n\n <!-- Hide the final input -->\n <input matInput type=\"text\" [formControl]=\"formControl\"\n hidden\n [matDatepicker]=\"datePicker\"\n [matDatepickerFilter]=\"datePickerFilter\"\n (dateChange)=\"onDatePickerChange($event)\">\n\n <button type=\"button\" mat-icon-button tabindex=\"-1\" matSuffix\n (click)=\"openDatePicker($event, datePicker)\"\n [disabled]=\"formControl.disabled\">\n <div *ngIf=\"mobile; then iconDate; else iconDesktop\"></div>\n </button>\n <button matSuffix mat-icon-button tabindex=\"-1\"\n type=\"button\"\n *ngIf=\"clearable\"\n (click)=\"clear()\"\n [hidden]=\"formControl.disabled || !formControl.value\">\n <mat-icon>close</mat-icon>\n </button>\n\n <!-- errors -->\n <mat-error *ngIf=\"formControl.touched && formControl.errors|mapKeys|arrayFirst; let errorKey\">\n <ng-container [ngSwitch]=\"errorKey\">\n <span *ngSwitchCase=\"'required'\" translate>ERROR.FIELD_REQUIRED</span>\n <span *ngSwitchCase=\"'validDate'\" translate>ERROR.FIELD_NOT_VALID_DATE_TIME</span>\n <span *ngSwitchCase=\"'dateIsAfter'\">{{'ERROR.FIELD_NOT_VALID_DATE_AFTER' | translate: formControl.errors.dateIsAfter }}</span>\n <span *ngSwitchCase=\"'dateIsBefore'\">{{'ERROR.FIELD_NOT_VALID_DATE_BEFORE' | translate: formControl.errors.dateIsBefore }}</span>\n <span *ngSwitchCase=\"'dateRange'\" translate>ERROR.FIELD_NOT_VALID_DATE_RANGE</span>\n <span *ngSwitchCase=\"'dateMaxDuration'\" translate>ERROR.FIELD_NOT_VALID_DATE_MAX_DURATION</span>\n <span *ngSwitchCase=\"'dateMinDuration'\" translate>ERROR.FIELD_NOT_VALID_DATE_MIN_DURATION</span>\n <span *ngSwitchCase=\"'msg'\">{{(formControl.errors.msg?.key || formControl.errors.msg) | translate: formControl.errors.msg?.params}}</span>\n </ng-container>\n </mat-error>\n <ng-content select=\"mat-error\"></ng-content>\n\n <!-- mat hint -->\n <div class=\"mat-form-field-hint-wrapper\" [class.cdk-visually-hidden]=\"formControl.invalid\">\n <div class=\"mat-form-field-hint-spacer\"></div>\n <ng-content select=\"mat-hint\"></ng-content>\n </div>\n </mat-form-field>\n\n <mat-datepicker #datePicker\n [touchUi]=\"mobile\"\n [disabled]=\"formControl.disabled\"\n [startAt]=\"startDate\"\n ></mat-datepicker>\n\n\n\n</ng-template>\n\n<ng-template #iconDesktop>\n <mat-icon>keyboard_arrow_down</mat-icon>\n</ng-template>\n\n<ng-template #iconDate>\n <mat-icon>date_range</mat-icon>\n</ng-template>\n\n<ng-template #matPrefixTemplate>\n <ng-content select=\"[matPrefix]\"></ng-content>\n</ng-template>\n",
5704
5681
  providers: [
5705
- DEFAULT_VALUE_ACCESSOR$5,
5682
+ DEFAULT_VALUE_ACCESSOR,
5706
5683
  ],
5707
5684
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
5708
5685
  styles: [":host{display:inline-block;width:100%;position:relative}:host [no-padding]{--ion-grid-column-padding:0}:host [nowrap]{flex-wrap:nowrap}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}mat-form-field .datetime-md,mat-form-field ion-datetime{padding:0!important}ion-col.day{min-width:100px}ion-col.day .mat-form-field-subscript-wrapper{overflow:visible;right:-64px;width:calc(100% + 64px)}ion-col.day .mat-form-field-subscript-wrapper .mat-form-field-hint-wrapper{display:flex}ion-col.day .mat-form-field-subscript-wrapper .mat-form-field-hint-wrapper .mat-form-field-hint-spacer{flex:1 0 1em}ion-col.hour{min-width:55px;max-width:65px}ion-col.hour mat-form-field{width:100%}ion-col.hour mat-form-field input[type=text],ion-col.hour mat-form-field mat-label{text-align:left;min-width:50px}mat-form-field.mat-form-field-disabled ion-col.day{min-width:100px}.hour .mat-form-field-label{max-width:40px}.hour mat-form-field.mat-form-field-should-float .mat-form-field-placeholder{max-width:inherit}mat-error{text-align:right;width:100%}"]
@@ -5737,16 +5714,16 @@
5737
5714
  matInputs: [{ type: i0.ViewChildren, args: ['matInput',] }]
5738
5715
  };
5739
5716
 
5740
- var DEFAULT_VALUE_ACCESSOR$4 = {
5717
+ var DEFAULT_VALUE_ACCESSOR$1 = {
5741
5718
  provide: i1.NG_VALUE_ACCESSOR,
5742
5719
  useExisting: i0.forwardRef(function () { return MatDateTime; }),
5743
5720
  multi: true
5744
5721
  };
5745
5722
  var DAY_MASK$1 = [/\d/, /\d/, '/', /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/];
5746
5723
  var HOUR_REGEXP = /^[012][0-9][:][012345][0-9]$/;
5747
- var HOUR_MASK$1 = [/[012]/, /\d/, ':', /[012345]/, /\d/];
5748
- var noop$5 = function () { };
5749
- var ɵ0$8 = noop$5;
5724
+ var HOUR_MASK = [/[012]/, /\d/, ':', /[012345]/, /\d/];
5725
+ var noop$3 = function () { };
5726
+ var ɵ0$4 = noop$3;
5750
5727
  var MatDateTime = /** @class */ (function () {
5751
5728
  function MatDateTime(platform, dateAdapter, translate, formBuilder, cd, keyboard, formGroupDir) {
5752
5729
  this.platform = platform;
@@ -5756,14 +5733,14 @@
5756
5733
  this.cd = cd;
5757
5734
  this.keyboard = keyboard;
5758
5735
  this.formGroupDir = formGroupDir;
5759
- this._onChangeCallback = noop$5;
5760
- this._onTouchedCallback = noop$5;
5736
+ this._onChangeCallback = noop$3;
5737
+ this._onTouchedCallback = noop$3;
5761
5738
  this._subscription = new rxjs.Subscription();
5762
5739
  this._writing = true;
5763
5740
  this._disabling = false;
5764
5741
  this._readonly = false;
5765
5742
  this.dayMask = DAY_MASK$1;
5766
- this.hourMask = HOUR_MASK$1;
5743
+ this.hourMask = HOUR_MASK;
5767
5744
  this.floatLabel = 'auto';
5768
5745
  this.compact = false;
5769
5746
  this.placeholderChar = DEFAULT_PLACEHOLDER_CHAR;
@@ -6121,7 +6098,7 @@
6121
6098
  selector: 'mat-date-time-field',
6122
6099
  template: "<!-- readonly -->\n<mat-form-field *ngIf=\"readonly; else writable\"\n [floatLabel]=\"floatLabel\"\n class=\"mat-form-field-disabled\">\n\n <div matPrefix>\n <ng-container *ngTemplateOutlet=\"matPrefixTemplate\"></ng-container>\n </div>\n\n <input matInput hidden type=\"text\"\n readonly\n [placeholder]=\"placeholder\"\n [formControl]=\"formControl\">\n <ion-text>{{formControl.value|dateFormat: {pattern: displayPattern} }}</ion-text>\n</mat-form-field>\n\n<!-- writable + time -->\n<ng-template #writable >\n <ion-grid class=\"ion-no-padding\">\n <ion-row class=\"ion-no-padding no-wrap\" nowrap>\n\n <!-- day -->\n <ion-col class=\"day ion-no-padding\">\n <mat-form-field [floatLabel]=\"floatLabel\"\n [class.mat-form-field-invalid]=\"formControl.touched && formControl.invalid\">\n\n <mat-label>{{placeholder}}</mat-label>\n\n <div matPrefix>\n <ng-container *ngTemplateOutlet=\"matPrefixTemplate\"></ng-container>\n </div>\n\n <input matInput #matInput autocomplete=\"off\" type=\"text\"\n *ngIf=\"!mobile\"\n [formControl]=\"dayControl\"\n [textMask]=\"{mask: dayMask, keepCharPositions: true, placeholderChar: placeholderChar}\"\n [placeholder]=\"'COMMON.DATE_PLACEHOLDER'|translate\"\n (blur)=\"checkIfTouched()\"\n (keyup.arrowdown)=\"openDatePicker($event, datePicker)\"\n (keyup.escape)=\"preventEvent($event)\"\n [required]=\"required\"\n [tabindex]=\"tabindex\"\n [appAutofocus]=\"autofocus\">\n <input matInput #matInput autocomplete=\"off\" type=\"text\"\n *ngIf=\"mobile\"\n [formControl]=\"dayControl\"\n (click)=\"openDatePickerIfMobile($event, datePicker)\"\n [required]=\"required\"\n [tabindex]=\"tabindex\"\n readonly>\n\n <!-- Hide the final input -->\n <input matInput type=\"text\" [formControl]=\"formControl\"\n hidden\n [matDatepicker]=\"datePicker\"\n [matDatepickerFilter]=\"datePickerFilter\"\n (dateChange)=\"onDatePickerChange($event)\">\n\n <button type=\"button\" mat-icon-button tabindex=\"-1\" matSuffix\n (click)=\"openDatePicker($event, datePicker)\"\n [disabled]=\"formControl.disabled\">\n <div *ngIf=\"mobile; then iconDate; else iconDesktop\"></div>\n </button>\n <button matSuffix mat-icon-button tabindex=\"-1\"\n type=\"button\"\n *ngIf=\"clearable\"\n (click)=\"clear()\"\n [hidden]=\"formControl.disabled || !formControl.value\">\n <mat-icon>close</mat-icon>\n </button>\n </mat-form-field>\n <mat-datepicker #datePicker\n [touchUi]=\"mobile\"\n [disabled]=\"formControl.disabled\"\n [startAt]=\"startDate\"></mat-datepicker>\n <div class=\"mat-form-field-subscript mat-form-field-subscript-wrapper\" >\n <!-- errors -->\n <ng-container [ngSwitch]=\"formControl.touched && formControl.errors|mapKeys|arrayFirst\">\n <mat-error *ngSwitchCase=\"'required'\" translate>ERROR.FIELD_REQUIRED</mat-error>\n <mat-error *ngSwitchCase=\"'validDate'\" translate>ERROR.FIELD_NOT_VALID_DATE_TIME</mat-error>\n <mat-error *ngSwitchCase=\"'dateIsAfter'\">{{'ERROR.FIELD_NOT_VALID_DATE_AFTER' | translate: formControl.errors.dateIsAfter }}</mat-error>\n <mat-error *ngSwitchCase=\"'dateIsBefore'\">{{'ERROR.FIELD_NOT_VALID_DATE_BEFORE' | translate: formControl.errors.dateIsBefore }}</mat-error>\n <mat-error *ngSwitchCase=\"'dateRange'\" translate>ERROR.FIELD_NOT_VALID_DATE_RANGE</mat-error>\n <mat-error *ngSwitchCase=\"'dateMaxDuration'\" translate>ERROR.FIELD_NOT_VALID_DATE_MAX_DURATION</mat-error>\n <mat-error *ngSwitchCase=\"'dateMinDuration'\" translate>ERROR.FIELD_NOT_VALID_DATE_MIN_DURATION</mat-error>\n <mat-error *ngSwitchCase=\"'msg'\">{{(formControl.errors.msg?.key || formControl.errors.msg) | translate: formControl.errors.msg?.params}}</mat-error>\n </ng-container>\n <ng-content select=\"mat-error\"></ng-content>\n\n <!-- mat hint -->\n <div class=\"mat-form-field-hint-wrapper\" [class.cdk-visually-hidden]=\"formControl.invalid\">\n <div class=\"mat-form-field-hint-spacer\"></div>\n <ng-content select=\"mat-hint\"></ng-content>\n </div>\n </div>\n\n </ion-col>\n\n <!-- hour -->\n <ion-col class=\"hour ion-no-padding\">\n <mat-form-field [floatLabel]=\"floatLabel\"\n [class.mat-form-field-invalid]=\"formControl.touched && (hourControl.invalid || formControl.invalid)\">\n <mat-label *ngIf=\"placeholder && floatLabel != 'never'\" translate>COMMON.TIME</mat-label>\n <input matInput #matInput type=\"text\"\n *ngIf=\"!mobile\"\n [formControl]=\"hourControl\"\n autocomplete=\"off\"\n min=\"0\" max=\"23\"\n [textMask]=\"{mask: hourMask, keepCharPositions: true, placeholderChar: placeholderChar, guide: true}\"\n [placeholder]=\"'COMMON.TIME_PLACEHOLDER'|translate\"\n [required]=\"required\"\n (keyup.arrowdown)=\"openTimePicker($event)\"\n (keyup.escape)=\"preventEvent($event)\"\n (blur)=\"checkIfTouched()\"\n [tabindex]=\"tabindex !== undefined ? tabindex+1 : undefined\">\n\n <input matInput #matInput type=\"text\"\n *ngIf=\"mobile\"\n [formControl]=\"hourControl\"\n (click)=\"openTimePickerIfMobile($event)\"\n readonly>\n\n <input matInput type=\"text\"\n [formControl]=\"hourControl\"\n hidden\n [ngxTimepicker]=\"timePicker\"\n [format]=\"24\">\n\n <button matSuffix type=\"button\" mat-icon-button\n tabindex=\"-1\"\n *ngIf=\"!compact && !mobile\"\n [disabled]=\"formControl.disabled\"\n (click)=\"openTimePicker($event)\" >\n <mat-icon>keyboard_arrow_down</mat-icon>\n </button>\n <button matSuffix type=\"button\" mat-icon-button\n tabindex=\"-1\"\n *ngIf=\"!compact && mobile\"\n [disabled]=\"formControl.disabled\"\n (click)=\"openTimePickerIfMobile($event)\">\n <mat-icon>access_time</mat-icon>\n </button>\n\n <ngx-material-timepicker #timePicker [@.disabled]=\"true\"\n (timeSet)=\"onTimePickerChange($event)\"\n [ESC]=\"!mobile\"\n [defaultTime]=\"'00:00'\"\n [cancelBtnTmpl]=\"timePickerCancelButton\"\n [confirmBtnTmpl]=\"timePickerOkButton\"\n [preventOverlayClick]=\"mobile\"\n [enableKeyboardInput]=\"false\"\n [disableAnimation]=\"true\">\n <!-- cancel button -->\n <ng-template #timePickerCancelButton>\n <ion-button fill=\"clear\" color=\"dark\">\n <ion-label translate>COMMON.BTN_CANCEL</ion-label>\n </ion-button>\n </ng-template>\n\n <!-- confirm button -->\n <ng-template #timePickerOkButton>\n <ion-button fill=\"solid\" color=\"tertiary\">\n <ion-label translate>COMMON.BTN_VALIDATE</ion-label>\n </ion-button>\n </ng-template>\n\n </ngx-material-timepicker>\n </mat-form-field>\n </ion-col>\n </ion-row>\n </ion-grid>\n\n\n</ng-template>\n\n<ng-template #iconDesktop>\n <mat-icon>keyboard_arrow_down</mat-icon>\n</ng-template>\n\n<ng-template #iconDate>\n <mat-icon>date_range</mat-icon>\n</ng-template>\n\n<ng-template #matPrefixTemplate>\n <ng-content select=\"[matPrefix]\"></ng-content>\n</ng-template>\n",
6123
6100
  providers: [
6124
- DEFAULT_VALUE_ACCESSOR$4,
6101
+ DEFAULT_VALUE_ACCESSOR$1,
6125
6102
  ],
6126
6103
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
6127
6104
  styles: [":host{display:inline-block;width:100%;position:relative;--ion-grid-column-padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}mat-form-field .datetime-md{padding:0!important}ion-row.no-wrap{flex-wrap:nowrap}ion-col.day{min-width:100px}ion-col.day .mat-form-field-subscript-wrapper{overflow:visible;right:-64px;width:calc(100% + 64px)}ion-col.day .mat-form-field-subscript-wrapper .mat-form-field-hint-wrapper{display:flex}ion-col.day .mat-form-field-subscript-wrapper .mat-form-field-hint-wrapper .mat-form-field-hint-spacer{flex:1 0 1em}ion-col.hour{min-width:55px;max-width:65px}ion-col.hour mat-form-field{width:100%}ion-col.hour mat-form-field input[type=text],ion-col.hour mat-form-field mat-label{text-align:left;min-width:50px}mat-form-field.mat-form-field-disabled ion-col.day{min-width:100px}.hour .mat-form-field-label{max-width:40px}.hour mat-form-field.mat-form-field-should-float .mat-form-field-placeholder{max-width:inherit}mat-error{text-align:right;width:100%}"]
@@ -6156,15 +6133,15 @@
6156
6133
  matInputs: [{ type: i0.ViewChildren, args: ['matInput',] }]
6157
6134
  };
6158
6135
 
6159
- var DEFAULT_VALUE_ACCESSOR$3 = {
6136
+ var DEFAULT_VALUE_ACCESSOR$2 = {
6160
6137
  provide: i1.NG_VALUE_ACCESSOR,
6161
6138
  useExisting: i0.forwardRef(function () { return MatDateShort; }),
6162
6139
  multi: true
6163
6140
  };
6164
- var DAY_MASK = [/\d/, /\d/, /\d/, /\d/];
6141
+ var DAY_MASK$2 = [/\d/, /\d/, /\d/, /\d/];
6165
6142
  var noop$4 = function () {
6166
6143
  };
6167
- var ɵ0$7 = noop$4;
6144
+ var ɵ0$5 = noop$4;
6168
6145
  var MatDateShort = /** @class */ (function () {
6169
6146
  function MatDateShort(platform, dateAdapter, translate, formBuilder, cd, keyboard, formGroupDir) {
6170
6147
  this.dateAdapter = dateAdapter;
@@ -6177,7 +6154,7 @@
6177
6154
  this._onTouchedCallback = noop$4;
6178
6155
  this.writing = true;
6179
6156
  this.disabling = false;
6180
- this.dayMask = DAY_MASK;
6157
+ this.dayMask = DAY_MASK$2;
6181
6158
  this.disabled = false;
6182
6159
  this.floatLabel = 'auto';
6183
6160
  this.readonly = false;
@@ -6454,7 +6431,7 @@
6454
6431
  selector: 'mat-date-short-field',
6455
6432
  template: "<!-- readonly -->\n<mat-form-field *ngIf=\"readonly else writable\">\n <input matInput hidden type=\"text\" readonly=\"true\" [formControl]=\"formControl\">\n <ion-text>{{formControl.value|dateFormat: {pattern: displayPattern} }}</ion-text>\n</mat-form-field>\n\n<ng-template #writable>\n <mat-form-field [floatLabel]=\"floatLabel\">\n\n <mat-label>{{placeholder}}</mat-label>\n\n <div matPrefix><ng-content select=\"[matPrefix]\"></ng-content></div>\n\n <input matInput #matInput autocomplete=\"off\" type=\"text\"\n *ngIf=\"!mobile\"\n [formControl]=\"dayControl\"\n [textMask]=\"{mask: dayMask, keepCharPositions: true, placeholderChar: placeholderChar}\"\n [placeholder]=\"'COMMON.DATE_YEAR_PLACEHOLDER'|translate\"\n (blur)=\"checkIfTouched()\"\n (keyup.arrowdown)=\"openDatePicker($event, datePicker1)\"\n (keyup.escape)=\"preventEvent($event)\"\n (click)=\"matInput.select()\"\n [required]=\"required\"\n [tabindex]=\"tabindex\">\n <input matInput #matInput autocomplete=\"off\" type=\"text\"\n *ngIf=\"mobile\"\n [formControl]=\"dayControl\"\n (click)=\"openDatePickerIfMobile($event, datePicker1)\"\n [required]=\"required\"\n [tabindex]=\"tabindex\"\n readonly>\n\n <!-- Hide the final control -->\n <input matInput type=\"text\"\n [formControl]=\"formControl\"\n hidden\n [matDatepicker]=\"datePicker1\"\n (dateChange)=\"onDatePickerChange($event)\">\n\n\n <button matSuffix mat-icon-button tabindex=\"-1\"\n type=\"button\"\n (click)=\"openDatePicker($event, datePicker1)\"\n [disabled]=\"formControl.disabled\">\n <div *ngIf=\"mobile; then iconDate; else iconDesktop\"></div>\n </button>\n <button matSuffix mat-icon-button tabindex=\"-1\"\n type=\"button\"\n *ngIf=\"clearable\"\n (click)=\"writeValue(null)\"\n [hidden]=\"formControl.disabled || !formControl.value\">\n <mat-icon>close</mat-icon>\n </button>\n\n <mat-error *ngIf=\"formControl.hasError('required')\" translate>ERROR.FIELD_REQUIRED</mat-error>\n <mat-error *ngIf=\"formControl.hasError('validDate')\" translate>ERROR.FIELD_NOT_VALID_DATE</mat-error>\n <mat-error *ngIf=\"formControl.hasError('dateIsAfter')\">{{'ERROR.FIELD_NOT_VALID_DATE_AFTER' | translate: formControl.errors.dateIsAfter }}</mat-error>\n <mat-error *ngIf=\"formControl.hasError('dateRange')\" translate>ERROR.FIELD_NOT_VALID_DATE_RANGE</mat-error>\n <mat-error *ngIf=\"!formControl.hasError('dateRange') && formControl.hasError('dateMaxDuration')\" translate>ERROR.FIELD_NOT_VALID_DATE_MAX_DURATION</mat-error>\n <mat-error *ngIf=\"!formControl.hasError('dateRange') && formControl.hasError('dateMinDuration')\" translate>ERROR.FIELD_NOT_VALID_DATE_MIN_DURATION</mat-error>\n <mat-error *ngIf=\"formControl.hasError('msg')\">{{formControl.errors.msg}}</mat-error>\n <ng-content select=\"mat-error\"></ng-content>\n </mat-form-field>\n\n <mat-datepicker #datePicker1\n startView=\"multi-year\"\n [touchUi]=\"mobile\"\n [disabled]=\"formControl.disabled\"\n (yearSelected)=\"closeDatePicker($event, datePicker1)\"\n [startAt]=\"startDate\"></mat-datepicker>\n\n <ng-template #iconDesktop>\n <mat-icon>keyboard_arrow_down</mat-icon>\n </ng-template>\n\n <ng-template #iconDate>\n <mat-icon>date_range</mat-icon>\n </ng-template>\n\n</ng-template>\n",
6456
6433
  providers: [
6457
- DEFAULT_VALUE_ACCESSOR$3,
6434
+ DEFAULT_VALUE_ACCESSOR$2,
6458
6435
  ],
6459
6436
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
6460
6437
  styles: [":host{display:inline-block;width:100%;position:relative}:host [no-padding]{--ion-grid-column-padding:0}:host [nowrap]{flex-wrap:nowrap}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}mat-form-field .datetime-md,mat-form-field ion-datetime{padding:0!important}ion-col.day{min-width:100px}ion-col.day .mat-form-field-subscript-wrapper{overflow:visible;right:-64px;width:calc(100% + 64px)}ion-col.day .mat-form-field-subscript-wrapper .mat-form-field-hint-wrapper{display:flex}ion-col.day .mat-form-field-subscript-wrapper .mat-form-field-hint-wrapper .mat-form-field-hint-spacer{flex:1 0 1em}ion-col.hour{min-width:55px;max-width:65px}ion-col.hour mat-form-field{width:100%}ion-col.hour mat-form-field input[type=text],ion-col.hour mat-form-field mat-label{text-align:left;min-width:50px}mat-form-field.mat-form-field-disabled ion-col.day{min-width:100px}.hour .mat-form-field-label{max-width:40px}.hour mat-form-field.mat-form-field-should-float .mat-form-field-placeholder{max-width:inherit}mat-error{text-align:right;width:100%}"]
@@ -6525,16 +6502,16 @@
6525
6502
  },] }
6526
6503
  ];
6527
6504
 
6528
- var DEFAULT_VALUE_ACCESSOR$2 = {
6505
+ var DEFAULT_VALUE_ACCESSOR$3 = {
6529
6506
  provide: i1.NG_VALUE_ACCESSOR,
6530
6507
  useExisting: i0.forwardRef(function () { return MatDuration; }),
6531
6508
  multi: true
6532
6509
  };
6533
6510
  var HOUR_TIME_PATTERN = /[0-9]\d\d:[0-5]\d/;
6534
- var HOUR_MASK = [/\d/, /\d/, /\d/, ':', /[0-5]/, /\d/];
6535
- var noop$3 = function () {
6511
+ var HOUR_MASK$1 = [/\d/, /\d/, /\d/, ':', /[0-5]/, /\d/];
6512
+ var noop$5 = function () {
6536
6513
  };
6537
- var ɵ0$6 = noop$3;
6514
+ var ɵ0$6 = noop$5;
6538
6515
  var MatDuration = /** @class */ (function () {
6539
6516
  function MatDuration(platform, dateAdapter, translate, formBuilder, cd, formGroupDir) {
6540
6517
  this.dateAdapter = dateAdapter;
@@ -6543,11 +6520,11 @@
6543
6520
  this.cd = cd;
6544
6521
  this.formGroupDir = formGroupDir;
6545
6522
  this._subscription = new rxjs.Subscription();
6546
- this._onChangeCallback = noop$3;
6547
- this._onTouchedCallback = noop$3;
6523
+ this._onChangeCallback = noop$5;
6524
+ this._onTouchedCallback = noop$5;
6548
6525
  this.writing = true;
6549
6526
  this.disabling = false;
6550
- this.hourMask = HOUR_MASK;
6527
+ this.hourMask = HOUR_MASK$1;
6551
6528
  this.disabled = false;
6552
6529
  this.floatLabel = 'auto';
6553
6530
  this.readonly = false;
@@ -6740,7 +6717,7 @@
6740
6717
  selector: 'mat-duration-field',
6741
6718
  template: "<!-- readonly -->\n<mat-form-field *ngIf=\"readonly else writable\">\n <input matInput hidden type=\"text\" readonly=\"true\" [formControl]=\"formControl\">\n <ion-text>{{ formControl.value|duration }}</ion-text>\n</mat-form-field>\n\n<!-- writable -->\n<ng-template #writable>\n <mat-form-field [floatLabel]=\"floatLabel\"\n [class.mat-form-field-disabled]=\"formControl.disabled\"\n [class.mat-form-field-invalid]=\"formControl.touched && formControl.invalid\">\n <mat-label *ngIf=\"placeholder && floatLabel != 'never'\" translate>COMMON.TIME</mat-label>\n\n <div matPrefix><ng-content select=\"[matPrefix]\"></ng-content></div>\n\n <input matInput #matInput type=\"text\"\n autocomplete=\"off\"\n [formControl]=\"textControl\"\n [textMask]=\"{mask: hourMask, keepCharPositions: true, placeholderChar: placeholderChar, guide: true}\"\n [placeholder]=\"'COMMON.DURATION_PLACEHOLDER'|translate\"\n [required]=\"required\"\n (keydown.tab)=\"moveCaretToSeparator($event, true)\"\n (keydown.shift.tab)=\"moveCaretToSeparator($event, false)\"\n (keyup.escape)=\"preventEvent($event)\"\n (blur)=\"checkIfTouched()\"\n [tabindex]=\"tabindex !== undefined ? tabindex+1 : undefined\">\n\n\n <!-- errors -->\n <mat-error *ngIf=\"!formControl.hasError('required') && textControl.hasError('pattern')\" translate>ERROR.FIELD_NOT_VALID_PATTERN</mat-error>\n <mat-error *ngIf=\"formControl.hasError('required')\" translate>ERROR.FIELD_REQUIRED</mat-error>\n <mat-error *ngIf=\"formControl.hasError('min')\">\n {{(compact ? 'ERROR.FIELD_MIN_COMPACT' : 'ERROR.FIELD_MIN') | translate:formControl.errors.min }}</mat-error>\n <mat-error *ngIf=\"formControl.hasError('max')\">\n {{(compact ? 'ERROR.FIELD_MAX_COMPACT' : 'ERROR.FIELD_MAX') | translate:formControl.errors.max }}</mat-error>\n\n <ng-content select=\"mat-error\"></ng-content>\n </mat-form-field>\n</ng-template>\n\n",
6742
6719
  providers: [
6743
- DEFAULT_VALUE_ACCESSOR$2,
6720
+ DEFAULT_VALUE_ACCESSOR$3,
6744
6721
  ],
6745
6722
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
6746
6723
  styles: [":host{display:inline-block;min-width:140px;position:relative;--ion-grid-column-padding:0}:host,mat-form-field{width:100%}mat-form-field .mat-form-field-subscript-wrapper{overflow:visible;top:100%}mat-form-field .mat-form-field-subscript-wrapper .mat-form-field-hint-wrapper{display:flex}mat-form-field .mat-form-field-subscript-wrapper .mat-form-field-hint-wrapper .mat-form-field-hint-spacer{flex:1 0 1em}mat-error{text-align:right;width:100%}"]
@@ -6800,22 +6777,22 @@
6800
6777
  },] }
6801
6778
  ];
6802
6779
 
6803
- var DEFAULT_VALUE_ACCESSOR$1 = {
6780
+ var DEFAULT_VALUE_ACCESSOR$4 = {
6804
6781
  provide: i1.NG_VALUE_ACCESSOR,
6805
6782
  useExisting: i0.forwardRef(function () { return MatBooleanField; }),
6806
6783
  multi: true
6807
6784
  };
6808
- var noop$2 = function () {
6785
+ var noop$6 = function () {
6809
6786
  };
6810
- var ɵ0$5 = noop$2;
6787
+ var ɵ0$7 = noop$6;
6811
6788
  var MatBooleanField = /** @class */ (function () {
6812
6789
  function MatBooleanField(translate, formBuilder, cd, formGroupDir) {
6813
6790
  this.translate = translate;
6814
6791
  this.formBuilder = formBuilder;
6815
6792
  this.cd = cd;
6816
6793
  this.formGroupDir = formGroupDir;
6817
- this._onChangeCallback = noop$2;
6818
- this._onTouchedCallback = noop$2;
6794
+ this._onChangeCallback = noop$6;
6795
+ this._onTouchedCallback = noop$6;
6819
6796
  this._writing = false;
6820
6797
  this.showRadio = false;
6821
6798
  this.disabled = false;
@@ -6990,7 +6967,7 @@
6990
6967
  selector: 'mat-boolean-field',
6991
6968
  template: "<mat-form-field *ngIf=\"readonly; else writable\"\n [floatLabel]=\"floatLabel\"\n class=\"mat-form-field-disabled {{classList}}\">\n <div matPrefix>\n <ng-container *ngTemplateOutlet=\"matPrefixTemplate\"></ng-container>\n </div>\n <input matInput hidden type=\"text\" readonly\n [placeholder]=\"placeholder\"\n [formControl]=\"formControl\">\n <ion-text>{{(formControl.value == null && 'COMMON.EMPTY_OPTION' || (formControl.value === true && yesLabel) || noLabel) | translate }}</ion-text>\n <div matSuffix>\n <ng-container *ngTemplateOutlet=\"matSuffixTemplate\"></ng-container>\n </div>\n</mat-form-field>\n\n<ng-template #writable>\n <ng-container [ngSwitch]=\"style\">\n\n <!-- Radio -->\n <mat-form-field *ngSwitchCase=\"'radio'\"\n [floatLabel]=\"showRadio && (!floatLabel || floatLabel === 'auto') ? 'always': floatLabel\"\n class=\"mat-boolean-field mat-boolean-field-radio {{classList}}\">\n <mat-label *ngIf=\"placeholder && floatLabel!=='never'\">\n {{placeholder}}\n <span [hidden]=\"showRadio\">({{yesLabel|translate}}/{{'COMMON.NO'|translate}})</span>\n </mat-label>\n <div matPrefix>\n <ng-container *ngTemplateOutlet=\"matPrefixTemplate\"></ng-container>\n </div>\n <input matInput #fakeInput type=\"text\" readonly=\"true\"\n [formControl]=\"formControl\"\n (focus)=\"_onFocusFakeInput($event)\"\n [required]=\"required\"\n [class.cdk-visually-hidden]=\"showRadio\"\n [tabindex]=\"tabindex\">\n\n <!-- radio button -->\n <mat-radio-group [hidden]=\"!showRadio\"\n [formControl]=\"formControl\"\n (change)=\"onRadioValueChanged($event)\">\n <mat-radio-button #yesButton [value]=\"true\">\n <span>{{yesLabel|translate}}</span>\n </mat-radio-button>&nbsp;\n <mat-radio-button #noButton [value]=\"false\">\n <span>{{noLabel|translate}}</span>\n </mat-radio-button>\n </mat-radio-group>\n\n <mat-error *ngIf=\"formControl.hasError('required')\" translate>ERROR.FIELD_REQUIRED</mat-error>\n\n <div matSuffix>\n <ng-container *ngTemplateOutlet=\"matSuffixTemplate\"></ng-container>\n </div>\n </mat-form-field>\n\n <!-- Checkbox -->\n <mat-form-field *ngSwitchCase=\"'checkbox'\"\n [floatLabel]=\"floatLabel\"\n class=\"mat-boolean-field mat-boolean-field-checkbox {{classList}}\">\n <mat-label *ngIf=\"placeholder && !showRadio\">\n {{placeholder}}\n </mat-label>\n <div matPrefix>\n <ng-container *ngTemplateOutlet=\"matPrefixTemplate\"></ng-container>\n </div>\n <input matInput #matInput\n [formControl]=\"formControl\"\n (focus)=\"_onFocusFakeInput($event)\"\n [required]=\"required\"\n [class.cdk-visually-hidden]=\"showRadio\"\n [tabindex]=\"tabindex\">\n\n <ion-label>&nbsp;</ion-label>\n\n <!-- checkbox, when compact -->\n <mat-checkbox #checkboxButton\n [formControl]=\"formControl\"\n (change)=\"onCheckboxValueChanged($event)\"\n [indeterminate]=\"value===undefined\"\n [hidden]=\"!showRadio\"\n [tabindex]=\"tabindex\">\n </mat-checkbox>\n\n <mat-error *ngIf=\"formControl.hasError('required')\" translate>ERROR.FIELD_REQUIRED</mat-error>\n\n <div matSuffix>\n <ng-container *ngTemplateOutlet=\"matSuffixTemplate\"></ng-container>\n </div>\n </mat-form-field>\n\n <!-- Buttons -->\n <mat-form-field *ngSwitchCase=\"'button'\"\n [floatLabel]=\"floatLabel === 'never' ? 'never' : 'always'\"\n class=\"mat-boolean-field mat-boolean-field-button {{classList}}\">\n <div matPrefix>\n <ng-container *ngTemplateOutlet=\"matPrefixTemplate\"></ng-container>\n </div>\n <input matInput type=\"text\" hidden\n [formControl]=\"formControl\"\n [placeholder]=\"placeholder\"\n [required]=\"required\">\n <div class=\"mat-form-field-buttons\"\n [style.--buttons-col-count]=\"buttonsColCount\"\n *ngIf=\"!formControl.disabled; else disabledLabel\">\n <!-- yes -->\n <ion-button class=\"mat-form-field-button\"\n [tabindex]=\"_tabindex\"\n (click)=\"writeValue(true, $event)\"\n (keyup.enter)=\"writeValue(true, $event)\"\n [color]=\"_value == null ? 'tertiary' : (_value === true) ? 'accent' : 'light'\">\n <ion-icon *ngIf=\"showButtonIcons && yesIcon; let icon\" slot=\"start\" [name]=\"icon\"></ion-icon>\n {{yesLabel|translate}}\n </ion-button>\n\n <!-- No button -->\n <ion-button class=\"mat-form-field-button\"\n [tabindex]=\"_tabindex !== undefined ? (_tabindex + 1) : undefined\"\n (click)=\"writeValue(false, $event)\"\n (keyup.enter)=\"writeValue(false, $event)\"\n [color]=\"_value == null ? 'tertiary' : (_value === false) ? 'accent' : 'light'\">\n <ion-icon *ngIf=\"showButtonIcons && noIcon; let icon\" slot=\"start\" [name]=\"icon\"></ion-icon>\n {{noLabel|translate}}\n </ion-button>\n </div>\n <ng-template #disabledLabel>\n <ion-label><i translate>COMMON.EMPTY_OPTION</i></ion-label>\n </ng-template>\n\n <mat-error *ngIf=\"formControl.hasError('required')\" translate>ERROR.FIELD_REQUIRED</mat-error>\n <div matSuffix>\n <ng-container *ngTemplateOutlet=\"matSuffixTemplate\"></ng-container>\n </div>\n\n </mat-form-field>\n </ng-container>\n\n</ng-template>\n\n\n<ng-template #matPrefixTemplate>\n <ng-content select=\"[matPrefix]\"></ng-content>\n</ng-template>\n<ng-template #matSuffixTemplate>\n <ng-content select=\"[matSuffix]\"></ng-content>\n</ng-template>\n",
6992
6969
  providers: [
6993
- DEFAULT_VALUE_ACCESSOR$1
6970
+ DEFAULT_VALUE_ACCESSOR$4
6994
6971
  ],
6995
6972
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
6996
6973
  styles: [":host{width:100%}.mat-form-field.mat-boolean-field-radio{margin-top:-2px}.mat-form-field.mat-boolean-field-button{margin-top:-4px}.mat-form-field .mat-form-field-buttons{width:100%;display:flex;flex-flow:row wrap;justify-content:flex-start;align-items:center}.mat-form-field .mat-form-field-buttons .mat-form-field-button{--flex-basis:calc(100% / var(--buttons-col-count, 2));flex:0 1 var(--flex-basis);max-width:min(var(--flex-basis),150px);white-space:normal;padding:0 2px;height:40px}"]
@@ -7077,7 +7054,6 @@
7077
7054
  return MatNumpadEvent;
7078
7055
  }(KeyboardEvent));
7079
7056
 
7080
- exports.AnimationState = void 0;
7081
7057
  (function (AnimationState) {
7082
7058
  AnimationState["ENTER"] = "enter";
7083
7059
  AnimationState["ENTER_INPUT"] = "enter-input";
@@ -7245,7 +7221,7 @@
7245
7221
  };
7246
7222
  return MatNumpadDomService;
7247
7223
  }());
7248
- MatNumpadDomService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function MatNumpadDomService_Factory() { return new MatNumpadDomService(i0__namespace.ɵɵinject(i0__namespace.ComponentFactoryResolver), i0__namespace.ɵɵinject(i0__namespace.ApplicationRef), i0__namespace.ɵɵinject(i0__namespace.INJECTOR), i0__namespace.ɵɵinject(i1__namespace$3.DOCUMENT, 8)); }, token: MatNumpadDomService, providedIn: "root" });
7224
+ MatNumpadDomService.ɵprov = i0.ɵɵdefineInjectable({ factory: function MatNumpadDomService_Factory() { return new MatNumpadDomService(i0.ɵɵinject(i0.ComponentFactoryResolver), i0.ɵɵinject(i0.ApplicationRef), i0.ɵɵinject(i0.INJECTOR), i0.ɵɵinject(i1$4.DOCUMENT, 8)); }, token: MatNumpadDomService, providedIn: "root" });
7249
7225
  MatNumpadDomService.decorators = [
7250
7226
  { type: i0.Injectable, args: [{
7251
7227
  providedIn: 'root'
@@ -7651,7 +7627,7 @@
7651
7627
  },] }
7652
7628
  ];
7653
7629
 
7654
- var DEFAULT_VALUE_ACCESSOR = {
7630
+ var DEFAULT_VALUE_ACCESSOR$5 = {
7655
7631
  provide: i1.NG_VALUE_ACCESSOR,
7656
7632
  useExisting: i0.forwardRef(function () { return MatSwipeField; }),
7657
7633
  multi: true
@@ -7971,7 +7947,7 @@
7971
7947
  { type: i0.Component, args: [{
7972
7948
  selector: 'mat-swipe-field',
7973
7949
  template: "<mat-form-field [floatLabel]=\"showSlides && (!floatLabel || floatLabel === 'auto') ? 'always': floatLabel\"\n [class]=\"classList\"\n [class.mat-form-field-disabled]=\"disabled\">\n <mat-label *ngIf=\"placeholder && floatLabel!=='never'\">\n {{placeholder}}\n </mat-label>\n <input matInput #fakeInput type=\"text\"\n [formControl]=\"formControl\"\n [readonly]=\"true\"\n (focus)=\"_onFocusFakeInput($event)\"\n [required]=\"required\"\n [class.cdk-visually-hidden]=\"showSlides\"\n [tabindex]=\"tabindex\">\n\n <div class=\"slides-container\" [class.hidden]=\"!showSlides\">\n <ion-slides #slides\n [options]=\"slidesOptions\"\n (ionSlidesDidLoad)=\"slidesLoaded()\"\n (ionSlideReachStart)=\"reachStart(true)\"\n (ionSlideReachEnd)=\"reachEnd(true)\"\n (ionSlideNextEnd)=\"reachStart(false)\"\n (ionSlidePrevEnd)=\"reachEnd(false)\"\n (ionSlideDidChange)=\"slideChanged()\"\n >\n <ion-slide *ngFor=\"let item of $items | async\">\n <ion-label>{{ displayWith(item) }}</ion-label>\n </ion-slide>\n\n </ion-slides>\n </div>\n\n <button #prevButton\n mat-icon-button\n type=\"button\"\n class=\"button-prev\"\n [hidden]=\"!showSlides\"\n [disabled]=\"previousDisabled\"\n (click)=\"previous()\">\n <mat-icon>chevron_left</mat-icon>\n </button>\n <button #nextButton\n mat-icon-button\n type=\"button\"\n class=\"button-next\"\n [hidden]=\"!showSlides\"\n [disabled]=\"nextDisabled\"\n (click)=\"next()\">\n <mat-icon>chevron_right</mat-icon>\n </button>\n\n <button matSuffix mat-icon-button tabindex=\"-1\"\n type=\"button\"\n *ngIf=\"clearable\"\n (click)=\"clearValue($event)\"\n [hidden]=\"disabled || !formControl.value\">\n <mat-icon>close</mat-icon>\n </button>\n\n <mat-error *ngIf=\"formControl.hasError('required')\" translate>ERROR.FIELD_REQUIRED</mat-error>\n <mat-error *ngIf=\"formControl.hasError('entity')\" translate>ERROR.FIELD_INVALID</mat-error>\n\n</mat-form-field>\n",
7974
- providers: [DEFAULT_VALUE_ACCESSOR],
7950
+ providers: [DEFAULT_VALUE_ACCESSOR$5],
7975
7951
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
7976
7952
  styles: [":host{display:inline-block;width:100%;position:relative}input.hidden{display:none}.slides-container .swiper-slide{font-size:16px!important}.slides-container.hidden{visibility:hidden;height:0!important}.button-next,.button-prev{position:absolute;top:calc(50% - 20px);z-index:10}.button-prev{left:0;right:auto}.button-next{left:auto;right:0}"]
7977
7953
  },] }
@@ -8032,14 +8008,14 @@
8032
8008
  },] }
8033
8009
  ];
8034
8010
 
8035
- var noop$1 = function () { };
8036
- var ɵ0$4 = noop$1;
8011
+ var noop$7 = function () { };
8012
+ var ɵ0$8 = noop$7;
8037
8013
  var MatChipsField = /** @class */ (function () {
8038
8014
  function MatChipsField(cd, formGroupDir) {
8039
8015
  this.cd = cd;
8040
8016
  this.formGroupDir = formGroupDir;
8041
- this._onChangeCallback = noop$1;
8042
- this._onTouchedCallback = noop$1;
8017
+ this._onChangeCallback = noop$7;
8018
+ this._onTouchedCallback = noop$7;
8043
8019
  this.logPrefix = '[mat-chips] ';
8044
8020
  this.formControlName = null;
8045
8021
  this.required = false;
@@ -9007,7 +8983,7 @@
9007
8983
  };
9008
8984
  return ProgressBarService;
9009
8985
  }());
9010
- ProgressBarService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function ProgressBarService_Factory() { return new ProgressBarService(); }, token: ProgressBarService, providedIn: "root" });
8986
+ ProgressBarService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ProgressBarService_Factory() { return new ProgressBarService(); }, token: ProgressBarService, providedIn: "root" });
9011
8987
  ProgressBarService.decorators = [
9012
8988
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
9013
8989
  ];
@@ -9054,7 +9030,7 @@
9054
9030
  };
9055
9031
  return AppGestureConfig;
9056
9032
  }(i1$6.HammerGestureConfig));
9057
- AppGestureConfig.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function AppGestureConfig_Factory() { return new AppGestureConfig(); }, token: AppGestureConfig, providedIn: "root" });
9033
+ AppGestureConfig.ɵprov = i0.ɵɵdefineInjectable({ factory: function AppGestureConfig_Factory() { return new AppGestureConfig(); }, token: AppGestureConfig, providedIn: "root" });
9058
9034
  AppGestureConfig.decorators = [
9059
9035
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
9060
9036
  ];
@@ -9321,7 +9297,7 @@
9321
9297
  };
9322
9298
  return MatPaginatorI18n;
9323
9299
  }(paginator.MatPaginatorIntl));
9324
- MatPaginatorI18n.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function MatPaginatorI18n_Factory() { return new MatPaginatorI18n(i0__namespace.ɵɵinject(i1__namespace$1.TranslateService)); }, token: MatPaginatorI18n, providedIn: "root" });
9300
+ MatPaginatorI18n.ɵprov = i0.ɵɵdefineInjectable({ factory: function MatPaginatorI18n_Factory() { return new MatPaginatorI18n(i0.ɵɵinject(i1$2.TranslateService)); }, token: MatPaginatorI18n, providedIn: "root" });
9325
9301
  MatPaginatorI18n.decorators = [
9326
9302
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
9327
9303
  ];
@@ -9413,17 +9389,17 @@
9413
9389
  return rgbArrayToHex(rgb.map(function (v) { return 255 - v; }));
9414
9390
  }
9415
9391
 
9416
- var noop = function () {
9392
+ var noop$8 = function () {
9417
9393
  };
9418
- var ɵ0$3 = noop;
9394
+ var ɵ0$9 = noop$8;
9419
9395
  var AppFormField = /** @class */ (function () {
9420
9396
  function AppFormField(translate, cd, injector, formGroupDir) {
9421
9397
  this.translate = translate;
9422
9398
  this.cd = cd;
9423
9399
  this.injector = injector;
9424
9400
  this.formGroupDir = formGroupDir;
9425
- this._onChangeCallback = noop;
9426
- this._onTouchedCallback = noop;
9401
+ this._onChangeCallback = noop$8;
9402
+ this._onTouchedCallback = noop$8;
9427
9403
  this.readonly = false;
9428
9404
  this.compact = false;
9429
9405
  this.floatLabel = 'auto';
@@ -9981,7 +9957,7 @@
9981
9957
  };
9982
9958
  return AudioProvider;
9983
9959
  }(StartableService));
9984
- AudioProvider.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function AudioProvider_Factory() { return new AudioProvider(i0__namespace.ɵɵinject(i1__namespace$4.Platform), i0__namespace.ɵɵinject(i2__namespace.NativeAudio, 8), i0__namespace.ɵɵinject(i3__namespace.Vibration, 8), i0__namespace.ɵɵinject(i4__namespace.AudioManagement, 8)); }, token: AudioProvider, providedIn: "root" });
9960
+ AudioProvider.ɵprov = i0.ɵɵdefineInjectable({ factory: function AudioProvider_Factory() { return new AudioProvider(i0.ɵɵinject(i1$5.Platform), i0.ɵɵinject(i2$2.NativeAudio, 8), i0.ɵɵinject(i3$1.Vibration, 8), i0.ɵɵinject(i4.AudioManagement, 8)); }, token: AudioProvider, providedIn: "root" });
9985
9961
  AudioProvider.decorators = [
9986
9962
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
9987
9963
  ];
@@ -10081,7 +10057,7 @@
10081
10057
  };
10082
10058
  return Hotkeys;
10083
10059
  }());
10084
- Hotkeys.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function Hotkeys_Factory() { return new Hotkeys(i0__namespace.ɵɵinject(i1__namespace$5.EventManager), i0__namespace.ɵɵinject(i2__namespace$1.MatDialog), i0__namespace.ɵɵinject(i1__namespace$3.DOCUMENT), i0__namespace.ɵɵinject(i1__namespace$4.ModalController)); }, token: Hotkeys, providedIn: "root" });
10060
+ Hotkeys.ɵprov = i0.ɵɵdefineInjectable({ factory: function Hotkeys_Factory() { return new Hotkeys(i0.ɵɵinject(i1$6.EventManager), i0.ɵɵinject(i2.MatDialog), i0.ɵɵinject(i1$4.DOCUMENT), i0.ɵɵinject(i1$5.ModalController)); }, token: Hotkeys, providedIn: "root" });
10085
10061
  Hotkeys.decorators = [
10086
10062
  { type: i0.Injectable, args: [{
10087
10063
  providedIn: 'root'
@@ -10285,7 +10261,7 @@
10285
10261
  return Base64ImageReader;
10286
10262
  }());
10287
10263
 
10288
- var uuidv4$1 = uuidv4Imported__namespace;
10264
+ var uuidv4 = uuidv4Imported__namespace;
10289
10265
  var FileService = /** @class */ (function () {
10290
10266
  function FileService(platform,
10291
10267
  //private transfer: FileTransfer,
@@ -10331,7 +10307,7 @@
10331
10307
  lastSlashIndex = source.lastIndexOf('/');
10332
10308
  if (lastSlashIndex === -1)
10333
10309
  throw new Error('Invalid URL: ' + source);
10334
- fileName = lastSlashIndex < (source.length - 1) && source.substring(lastSlashIndex + 1) || uuidv4$1();
10310
+ fileName = lastSlashIndex < (source.length - 1) && source.substring(lastSlashIndex + 1) || uuidv4();
10335
10311
  if (!(responseType === 'file' && this.canUseFileSystem)) return [3 /*break*/, 4];
10336
10312
  console.warn("WARN: [file] Fetching image {" + source + "} in local file...");
10337
10313
  targetFilePath = this._imageDirectory + fileName;
@@ -10394,7 +10370,7 @@
10394
10370
  };
10395
10371
  return FileService;
10396
10372
  }());
10397
- FileService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function FileService_Factory() { return new FileService(i0__namespace.ɵɵinject(i1__namespace$4.Platform), i0__namespace.ɵɵinject(i2__namespace$2.HttpClient), i0__namespace.ɵɵinject(ENVIRONMENT)); }, token: FileService, providedIn: "root" });
10373
+ FileService.ɵprov = i0.ɵɵdefineInjectable({ factory: function FileService_Factory() { return new FileService(i0.ɵɵinject(i1$5.Platform), i0.ɵɵinject(i2$1.HttpClient), i0.ɵɵinject(ENVIRONMENT)); }, token: FileService, providedIn: "root" });
10398
10374
  FileService.decorators = [
10399
10375
  { type: i0.Injectable, args: [{
10400
10376
  providedIn: 'root',
@@ -10561,7 +10537,7 @@
10561
10537
  Base58.alphabet = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz';
10562
10538
 
10563
10539
  var scrypt = require('scrypt-async');
10564
- var sha256$1 = require('hash.js/lib/hash/sha/256');
10540
+ var sha256 = require('hash.js/lib/hash/sha/256');
10565
10541
  var sha512 = require('hash.js/lib/hash/sha/512');
10566
10542
  var nacl = {
10567
10543
  sign: tweetnacl.sign,
@@ -10667,7 +10643,7 @@
10667
10643
  * Hash (using SHA256) a message
10668
10644
  */
10669
10645
  CryptoService.prototype.sha256 = function (message) {
10670
- return sha256$1().update(message).digest('hex');
10646
+ return sha256().update(message).digest('hex');
10671
10647
  };
10672
10648
  /**
10673
10649
  * Hash (using SHA512) a message
@@ -10681,7 +10657,7 @@
10681
10657
  };
10682
10658
  return CryptoService;
10683
10659
  }());
10684
- CryptoService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function CryptoService_Factory() { return new CryptoService(); }, token: CryptoService, providedIn: "root" });
10660
+ CryptoService.ɵprov = i0.ɵɵdefineInjectable({ factory: function CryptoService_Factory() { return new CryptoService(); }, token: CryptoService, providedIn: "root" });
10685
10661
  CryptoService.decorators = [
10686
10662
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
10687
10663
  ];
@@ -10935,9 +10911,6 @@
10935
10911
  EntityUtils.isLocalId = function (id) {
10936
10912
  return isNotNil(id) && +id < 0;
10937
10913
  };
10938
- EntityUtils.isRemoteId = function (id) {
10939
- return isNotNil(id) && +id >= 0;
10940
- };
10941
10914
  return EntityUtils;
10942
10915
  }());
10943
10916
 
@@ -11654,7 +11627,7 @@
11654
11627
  onRefresh: [{ type: i0.Input }]
11655
11628
  };
11656
11629
 
11657
- var moment$4 = momentImported__namespace;
11630
+ var moment$3 = momentImported__namespace;
11658
11631
  var SETTINGS_STORAGE_KEY = 'settings';
11659
11632
  var SETTINGS_TRANSIENT_PROPERTIES = ['mobile', 'touchUi' /*deprecated*/];
11660
11633
  // fixme: this constant points to static environment
@@ -11956,11 +11929,11 @@
11956
11929
  if (!feature) {
11957
11930
  feature = {
11958
11931
  name: featureName.toLowerCase(),
11959
- lastSyncDate: moment$4().toISOString()
11932
+ lastSyncDate: moment$3().toISOString()
11960
11933
  };
11961
11934
  }
11962
11935
  else {
11963
- feature.lastSyncDate = moment$4().toISOString();
11936
+ feature.lastSyncDate = moment$3().toISOString();
11964
11937
  }
11965
11938
  this.saveOfflineFeature(feature);
11966
11939
  };
@@ -12154,7 +12127,7 @@
12154
12127
  if (!page || !page.title || !page.path)
12155
12128
  throw Error('Missing required argument \'page\', \'page.path\' or \'page.title\'');
12156
12129
  // Set time
12157
- page.time = page.time || moment$4();
12130
+ page.time = page.time || moment$3();
12158
12131
  // Clean the title (remove <small> tags)
12159
12132
  if (!opts || opts.removeTitleSmallTag !== false) {
12160
12133
  var tagIndex = page.title.indexOf('</small>');
@@ -12171,7 +12144,7 @@
12171
12144
  };
12172
12145
  return LocalSettingsService;
12173
12146
  }(StartableService));
12174
- LocalSettingsService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function LocalSettingsService_Factory() { return new LocalSettingsService(i0__namespace.ɵɵinject(i1__namespace$1.TranslateService), i0__namespace.ɵɵinject(i1__namespace$4.Platform), i0__namespace.ɵɵinject(i3__namespace$1.Storage), i0__namespace.ɵɵinject(ENVIRONMENT), i0__namespace.ɵɵinject(APP_LOCAL_SETTINGS, 8), i0__namespace.ɵɵinject(APP_LOCAL_SETTINGS_OPTIONS, 8)); }, token: LocalSettingsService, providedIn: "root" });
12147
+ LocalSettingsService.ɵprov = i0.ɵɵdefineInjectable({ factory: function LocalSettingsService_Factory() { return new LocalSettingsService(i0.ɵɵinject(i1$2.TranslateService), i0.ɵɵinject(i1$5.Platform), i0.ɵɵinject(i3$2.Storage), i0.ɵɵinject(ENVIRONMENT), i0.ɵɵinject(APP_LOCAL_SETTINGS, 8), i0.ɵɵinject(APP_LOCAL_SETTINGS_OPTIONS, 8)); }, token: LocalSettingsService, providedIn: "root" });
12175
12148
  LocalSettingsService.decorators = [
12176
12149
  { type: i0.Injectable, args: [{
12177
12150
  providedIn: 'root',
@@ -13052,7 +13025,7 @@
13052
13025
  };
13053
13026
  return NetworkService;
13054
13027
  }(StartableService));
13055
- NetworkService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function NetworkService_Factory() { return new NetworkService(i0__namespace.ɵɵinject(i1__namespace$3.DOCUMENT), i0__namespace.ɵɵinject(i1__namespace$4.Platform), i0__namespace.ɵɵinject(i1__namespace$4.ModalController), i0__namespace.ɵɵinject(CryptoService), i0__namespace.ɵɵinject(i3__namespace$1.Storage), i0__namespace.ɵɵinject(LocalSettingsService), i0__namespace.ɵɵinject(i6__namespace.CacheService), i0__namespace.ɵɵinject(i2__namespace$2.HttpClient), i0__namespace.ɵɵinject(ENVIRONMENT), i0__namespace.ɵɵinject(i9__namespace.Network, 8), i0__namespace.ɵɵinject(i10__namespace.SplashScreen, 8), i0__namespace.ɵɵinject(i1__namespace$1.TranslateService, 8), i0__namespace.ɵɵinject(i1__namespace$4.ToastController, 8)); }, token: NetworkService, providedIn: "root" });
13028
+ NetworkService.ɵprov = i0.ɵɵdefineInjectable({ factory: function NetworkService_Factory() { return new NetworkService(i0.ɵɵinject(i1$4.DOCUMENT), i0.ɵɵinject(i1$5.Platform), i0.ɵɵinject(i1$5.ModalController), i0.ɵɵinject(CryptoService), i0.ɵɵinject(i3$2.Storage), i0.ɵɵinject(LocalSettingsService), i0.ɵɵinject(i6.CacheService), i0.ɵɵinject(i2$1.HttpClient), i0.ɵɵinject(ENVIRONMENT), i0.ɵɵinject(i9.Network, 8), i0.ɵɵinject(i10.SplashScreen, 8), i0.ɵɵinject(i1$2.TranslateService, 8), i0.ɵɵinject(i1$5.ToastController, 8)); }, token: NetworkService, providedIn: "root" });
13056
13029
  NetworkService.decorators = [
13057
13030
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
13058
13031
  ];
@@ -13072,7 +13045,7 @@
13072
13045
  { type: i1$5.ToastController, decorators: [{ type: i0.Optional }] }
13073
13046
  ]; };
13074
13047
 
13075
- var ErrorCodes$2 = {
13048
+ var ErrorCodes = {
13076
13049
  UNKNOWN_ERROR: 0,
13077
13050
  LOAD_ACCOUNT_ERROR: 1,
13078
13051
  BAD_PASSWORD: 2,
@@ -13489,7 +13462,7 @@
13489
13462
  case 13:
13490
13463
  err_1 = _b.sent();
13491
13464
  console.error(err_1);
13492
- throw { code: ErrorCodes$2.ENTITY_STORAGE_MIGRATION_FAILED, message: 'ERROR.ENTITY_STORAGE_MIGRATION_FAILED', details: err_1 };
13465
+ throw { code: ErrorCodes.ENTITY_STORAGE_MIGRATION_FAILED, message: 'ERROR.ENTITY_STORAGE_MIGRATION_FAILED', details: err_1 };
13493
13466
  case 14:
13494
13467
  // Emit update event
13495
13468
  if (!opts || opts.emitEvent !== false) {
@@ -14266,7 +14239,7 @@
14266
14239
  }(StartableService));
14267
14240
  EntitiesStorage.TRASH_PREFIX = 'Trash#';
14268
14241
  EntitiesStorage.REMOTE_PREFIX = 'Remote#';
14269
- EntitiesStorage.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function EntitiesStorage_Factory() { return new EntitiesStorage(i0__namespace.ɵɵinject(i1__namespace$4.Platform), i0__namespace.ɵɵinject(ProgressBarService), i0__namespace.ɵɵinject(i3__namespace$1.Storage), i0__namespace.ɵɵinject(ENVIRONMENT), i0__namespace.ɵɵinject(APP_LOCAL_STORAGE_TYPE_POLICIES, 8)); }, token: EntitiesStorage, providedIn: "root" });
14242
+ EntitiesStorage.ɵprov = i0.ɵɵdefineInjectable({ factory: function EntitiesStorage_Factory() { return new EntitiesStorage(i0.ɵɵinject(i1$5.Platform), i0.ɵɵinject(ProgressBarService), i0.ɵɵinject(i3$2.Storage), i0.ɵɵinject(ENVIRONMENT), i0.ɵɵinject(APP_LOCAL_STORAGE_TYPE_POLICIES, 8)); }, token: EntitiesStorage, providedIn: "root" });
14270
14243
  EntitiesStorage.decorators = [
14271
14244
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
14272
14245
  ];
@@ -14422,10 +14395,10 @@
14422
14395
  function referentialsToString(values, properties, separator) {
14423
14396
  return (values || []).map(function (v) { return referentialToString(v, properties); }).join(separator || ', ');
14424
14397
  }
14425
- var ɵ0$2 = StatusIds.ENABLE, ɵ1 = StatusIds.DISABLE, ɵ2 = StatusIds.TEMPORARY;
14398
+ var ɵ0$a = StatusIds.ENABLE, ɵ1 = StatusIds.DISABLE, ɵ2 = StatusIds.TEMPORARY;
14426
14399
  var StatusList = Object.freeze([
14427
14400
  {
14428
- id: ɵ0$2,
14401
+ id: ɵ0$a,
14429
14402
  icon: 'checkmark',
14430
14403
  label: 'REFERENTIAL.STATUS_ENUM.ENABLE'
14431
14404
  },
@@ -14728,7 +14701,7 @@
14728
14701
  (data.lastName || '')) || '';
14729
14702
  }
14730
14703
 
14731
- var uuidv4 = uuidv4Imported__namespace;
14704
+ var uuidv4$1 = uuidv4Imported__namespace;
14732
14705
  var _global = typeof global !== 'undefined' ? global : (typeof window !== 'undefined' ? window : {});
14733
14706
  var NativeWebSocket = _global.WebSocket || _global.MozWebSocket;
14734
14707
  /**
@@ -14772,7 +14745,7 @@
14772
14745
  // Skip if not tracked
14773
14746
  if (!context || !context.tracked)
14774
14747
  return forward(operation);
14775
- var id = context.serializationKey || uuidv4();
14748
+ var id = context.serializationKey || uuidv4$1();
14776
14749
  console.debug("[apollo-tracker-link] Watching tracked query {" + operation.operationName + "#" + id + "}");
14777
14750
  // Clean context, before calling JSON.stringify (remove unused attributes)
14778
14751
  var cleanContext = Object.assign(Object.assign({}, context), { optimisticResponse: null, cache: null });
@@ -15403,14 +15376,14 @@
15403
15376
  mutationLinks = void 0;
15404
15377
  // Add queue to store tracked queries, when offline
15405
15378
  if (enableTrackMutationQueries) {
15406
- serializingLink = new SerializingLink__default["default"]();
15379
+ serializingLink = new SerializingLink__default['default']();
15407
15380
  trackerLink = createTrackerLink({
15408
15381
  storage: storage,
15409
15382
  onNetworkStatusChange: this._networkStatusChanged$,
15410
15383
  debounce: 1000,
15411
15384
  debug: true
15412
15385
  });
15413
- queueLink_1 = new QueueLink__default["default"]();
15386
+ queueLink_1 = new QueueLink__default['default']();
15414
15387
  this.registerSubscription(this._networkStatusChanged$
15415
15388
  .subscribe(function (type) {
15416
15389
  // Network is offline: start buffering into queue
@@ -15425,7 +15398,7 @@
15425
15398
  }
15426
15399
  }));
15427
15400
  mutationLinks = [
15428
- loggerLink__default["default"],
15401
+ loggerLink__default['default'],
15429
15402
  queueLink_1,
15430
15403
  trackerLink,
15431
15404
  queueLink_1,
@@ -15532,7 +15505,7 @@
15532
15505
  (err.networkError && ((err.networkError.error && this.toAppError(err.networkError.error))
15533
15506
  || this.toAppError(err.networkError)
15534
15507
  || (err.networkError.error && this.createAppErrorByCode(err.networkError.error.status))
15535
- || this.createAppErrorByCode(ErrorCodes$2.UNKNOWN_NETWORK_ERROR)))
15508
+ || this.createAppErrorByCode(ErrorCodes.UNKNOWN_NETWORK_ERROR)))
15536
15509
  // If graphQL: try to convert the first error found
15537
15510
  || (err.graphQLErrors && err.graphQLErrors.length && this.toAppError(err.graphQLErrors[0]))
15538
15511
  || this.toAppError(err)
@@ -15540,7 +15513,7 @@
15540
15513
  || (err.graphQLErrors && err.graphQLErrors[0])
15541
15514
  || err;
15542
15515
  console.error('[graphql] ' + (error && error.message || error), error.stack || '');
15543
- if (error && error.code === ErrorCodes$2.UNKNOWN_NETWORK_ERROR && err.networkError && err.networkError.message) {
15516
+ if (error && error.code === ErrorCodes.UNKNOWN_NETWORK_ERROR && err.networkError && err.networkError.message) {
15544
15517
  console.error('[graphql] original error: ' + err.networkError.message);
15545
15518
  this.onNetworkError.next(error);
15546
15519
  }
@@ -15551,7 +15524,7 @@
15551
15524
  data: null,
15552
15525
  errors: [error],
15553
15526
  loading: false,
15554
- networkStatus: null
15527
+ networkStatus: core.NetworkStatus.error
15555
15528
  };
15556
15529
  };
15557
15530
  GraphqlService.prototype.createAppErrorByCode = function (errorCode) {
@@ -15576,7 +15549,7 @@
15576
15549
  return 'ERROR.UNAUTHORIZED';
15577
15550
  case ServerErrorCodes.FORBIDDEN:
15578
15551
  return 'ERROR.FORBIDDEN';
15579
- case ErrorCodes$2.UNKNOWN_NETWORK_ERROR:
15552
+ case ErrorCodes.UNKNOWN_NETWORK_ERROR:
15580
15553
  return 'ERROR.UNKNOWN_NETWORK_ERROR';
15581
15554
  case ServerErrorCodes.BAD_UPDATE_DATE:
15582
15555
  return 'ERROR.BAD_UPDATE_DATE';
@@ -15608,7 +15581,7 @@
15608
15581
  };
15609
15582
  return GraphqlService;
15610
15583
  }(StartableService));
15611
- GraphqlService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function GraphqlService_Factory() { return new GraphqlService(i0__namespace.ɵɵinject(i1__namespace$4.Platform), i0__namespace.ɵɵinject(i2__namespace$3.Apollo), i0__namespace.ɵɵinject(i3__namespace$2.HttpLink), i0__namespace.ɵɵinject(NetworkService), i0__namespace.ɵɵinject(i3__namespace$1.Storage), i0__namespace.ɵɵinject(CryptoService), i0__namespace.ɵɵinject(ENVIRONMENT), i0__namespace.ɵɵinject(APP_GRAPHQL_TYPE_POLICIES, 8)); }, token: GraphqlService, providedIn: "root" });
15584
+ GraphqlService.ɵprov = i0.ɵɵdefineInjectable({ factory: function GraphqlService_Factory() { return new GraphqlService(i0.ɵɵinject(i1$5.Platform), i0.ɵɵinject(i2$3.Apollo), i0.ɵɵinject(i3$3.HttpLink), i0.ɵɵinject(NetworkService), i0.ɵɵinject(i3$2.Storage), i0.ɵɵinject(CryptoService), i0.ɵɵinject(ENVIRONMENT), i0.ɵɵinject(APP_GRAPHQL_TYPE_POLICIES, 8)); }, token: GraphqlService, providedIn: "root" });
15612
15585
  GraphqlService.decorators = [
15613
15586
  { type: i0.Injectable, args: [{
15614
15587
  providedIn: 'root'
@@ -15625,7 +15598,7 @@
15625
15598
  { type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_GRAPHQL_TYPE_POLICIES,] }] }
15626
15599
  ]; };
15627
15600
 
15628
- var sha256 = require('hash.js/lib/hash/sha/256');
15601
+ var sha256$1 = require('hash.js/lib/hash/sha/256');
15629
15602
  var BaseGraphqlServiceOptions = /** @class */ (function () {
15630
15603
  function BaseGraphqlServiceOptions() {
15631
15604
  }
@@ -15795,8 +15768,8 @@
15795
15768
  };
15796
15769
  /* -- protected methods -- */
15797
15770
  BaseGraphqlService.prototype.computeMutableWatchQueryId = function (opts) {
15798
- var queryName = opts.queryName || sha256().update(JSON.stringify(opts.query)).digest('hex').substring(0, 8);
15799
- var variablesKey = opts.variables && sha256().update(JSON.stringify(opts.variables)).digest('hex').substring(0, 8) || '';
15771
+ var queryName = opts.queryName || sha256$1().update(JSON.stringify(opts.query)).digest('hex').substring(0, 8);
15772
+ var variablesKey = opts.variables && sha256$1().update(JSON.stringify(opts.variables)).digest('hex').substring(0, 8) || '';
15800
15773
  return [queryName, opts.arrayFieldName, variablesKey].join('|');
15801
15774
  };
15802
15775
  BaseGraphqlService.prototype.findMutableWatchQueries = function (opts) {
@@ -15869,19 +15842,19 @@
15869
15842
  /* ------------------------------------
15870
15843
  * GraphQL queries
15871
15844
  * ------------------------------------*/
15872
- var Fragments$1 = {
15873
- account: core.gql(templateObject_1$4 || (templateObject_1$4 = __makeTemplateObject(["\n fragment AccountFragment on AccountVO {\n id\n firstName\n lastName\n email\n pubkey\n avatar\n statusId\n updateDate\n creationDate\n profiles\n settings {\n ...UserSettingsFragment\n }\n department {\n id\n label\n name\n __typename\n }\n __typename\n }"], ["\n fragment AccountFragment on AccountVO {\n id\n firstName\n lastName\n email\n pubkey\n avatar\n statusId\n updateDate\n creationDate\n profiles\n settings {\n ...UserSettingsFragment\n }\n department {\n id\n label\n name\n __typename\n }\n __typename\n }"]))),
15874
- settings: core.gql(templateObject_2$4 || (templateObject_2$4 = __makeTemplateObject(["fragment UserSettingsFragment on UserSettingsVO {\n id\n locale\n latLongFormat\n content\n nonce\n updateDate\n __typename\n }"], ["fragment UserSettingsFragment on UserSettingsVO {\n id\n locale\n latLongFormat\n content\n nonce\n updateDate\n __typename\n }"])))
15845
+ var Fragments = {
15846
+ account: core.gql(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n fragment AccountFragment on AccountVO {\n id\n firstName\n lastName\n email\n pubkey\n avatar\n statusId\n updateDate\n creationDate\n profiles\n settings {\n ...UserSettingsFragment\n }\n department {\n id\n label\n name\n __typename\n }\n __typename\n }"], ["\n fragment AccountFragment on AccountVO {\n id\n firstName\n lastName\n email\n pubkey\n avatar\n statusId\n updateDate\n creationDate\n profiles\n settings {\n ...UserSettingsFragment\n }\n department {\n id\n label\n name\n __typename\n }\n __typename\n }"]))),
15847
+ settings: core.gql(templateObject_2 || (templateObject_2 = __makeTemplateObject(["fragment UserSettingsFragment on UserSettingsVO {\n id\n locale\n latLongFormat\n content\n nonce\n updateDate\n __typename\n }"], ["fragment UserSettingsFragment on UserSettingsVO {\n id\n locale\n latLongFormat\n content\n nonce\n updateDate\n __typename\n }"])))
15875
15848
  };
15876
15849
  // Load account query
15877
- var LoadQuery$1 = core.gql(templateObject_3$3 || (templateObject_3$3 = __makeTemplateObject(["\n query Account {\n data: account {\n ...AccountFragment\n }\n }\n ", "\n ", "\n"], ["\n query Account {\n data: account {\n ...AccountFragment\n }\n }\n ", "\n ", "\n"])), Fragments$1.account, Fragments$1.settings);
15850
+ var LoadQuery = core.gql(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n query Account {\n data: account {\n ...AccountFragment\n }\n }\n ", "\n ", "\n"], ["\n query Account {\n data: account {\n ...AccountFragment\n }\n }\n ", "\n ", "\n"])), Fragments.account, Fragments.settings);
15878
15851
  // Check email query
15879
- var IsEmailExistsQuery = core.gql(templateObject_4$3 || (templateObject_4$3 = __makeTemplateObject(["\n query IsEmailExists($email: String, $hash: String){\n isEmailExists(email: $email, hash: $hash)\n }\n"], ["\n query IsEmailExists($email: String, $hash: String){\n isEmailExists(email: $email, hash: $hash)\n }\n"])));
15852
+ var IsEmailExistsQuery = core.gql(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n query IsEmailExists($email: String, $hash: String){\n isEmailExists(email: $email, hash: $hash)\n }\n"], ["\n query IsEmailExists($email: String, $hash: String){\n isEmailExists(email: $email, hash: $hash)\n }\n"])));
15880
15853
  // Save (create or update) account mutation
15881
15854
  var AccountMutations = {
15882
- save: core.gql(templateObject_5$2 || (templateObject_5$2 = __makeTemplateObject([" mutation SaveAccount($data:AccountVOInput){\n data: saveAccount(account: $data){\n ...AccountFragment\n }\n }\n ", "\n ", ""], [" mutation SaveAccount($data:AccountVOInput){\n data: saveAccount(account: $data){\n ...AccountFragment\n }\n }\n ", "\n ", ""])), Fragments$1.account, Fragments$1.settings),
15883
- create: core.gql(templateObject_6 || (templateObject_6 = __makeTemplateObject(["mutation CreateAccount($data:AccountVOInput){\n data: createAccount(account: $data){\n ...AccountFragment\n }\n }\n ", "\n ", ""], ["mutation CreateAccount($data:AccountVOInput){\n data: createAccount(account: $data){\n ...AccountFragment\n }\n }\n ", "\n ", ""])), Fragments$1.account, Fragments$1.settings),
15884
- saveSettings: core.gql(templateObject_7 || (templateObject_7 = __makeTemplateObject(["mutation SaveSettings($data:UserSettingsVOInput){\n data: saveSettings(settings: $data){\n ...UserSettingsFragment\n }\n }\n ", ""], ["mutation SaveSettings($data:UserSettingsVOInput){\n data: saveSettings(settings: $data){\n ...UserSettingsFragment\n }\n }\n ", ""])), Fragments$1.settings)
15855
+ save: core.gql(templateObject_5 || (templateObject_5 = __makeTemplateObject([" mutation SaveAccount($data:AccountVOInput){\n data: saveAccount(account: $data){\n ...AccountFragment\n }\n }\n ", "\n ", ""], [" mutation SaveAccount($data:AccountVOInput){\n data: saveAccount(account: $data){\n ...AccountFragment\n }\n }\n ", "\n ", ""])), Fragments.account, Fragments.settings),
15856
+ create: core.gql(templateObject_6 || (templateObject_6 = __makeTemplateObject(["mutation CreateAccount($data:AccountVOInput){\n data: createAccount(account: $data){\n ...AccountFragment\n }\n }\n ", "\n ", ""], ["mutation CreateAccount($data:AccountVOInput){\n data: createAccount(account: $data){\n ...AccountFragment\n }\n }\n ", "\n ", ""])), Fragments.account, Fragments.settings),
15857
+ saveSettings: core.gql(templateObject_7 || (templateObject_7 = __makeTemplateObject(["mutation SaveSettings($data:UserSettingsVOInput){\n data: saveSettings(settings: $data){\n ...UserSettingsFragment\n }\n }\n ", ""], ["mutation SaveSettings($data:UserSettingsVOInput){\n data: saveSettings(settings: $data){\n ...UserSettingsFragment\n }\n }\n ", ""])), Fragments.settings)
15885
15858
  };
15886
15859
  // Sent confirmation email
15887
15860
  var SendConfirmEmailMutation = core.gql(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n mutation sendAccountConfirmationEmail($email:String, $locale:String){\n sendAccountConfirmationEmail(email: $email, locale: $locale)\n }\n"], ["\n mutation sendAccountConfirmationEmail($email:String, $locale:String){\n sendAccountConfirmationEmail(email: $email, locale: $locale)\n }\n"])));
@@ -16249,7 +16222,7 @@
16249
16222
  error_3 = _b.sent();
16250
16223
  console.error(error_3);
16251
16224
  this.resetData();
16252
- throw { code: ErrorCodes$2.UNKNOWN_ERROR, message: 'ERROR.SCRYPT_ERROR' };
16225
+ throw { code: ErrorCodes.UNKNOWN_ERROR, message: 'ERROR.SCRYPT_ERROR' };
16253
16226
  case 4:
16254
16227
  // Store pubkey+keypair
16255
16228
  this._cache.pubkey = Base58.encode(keypair.publicKey);
@@ -16285,7 +16258,7 @@
16285
16258
  return [3 /*break*/, 18];
16286
16259
  case 11:
16287
16260
  err_1 = _b.sent();
16288
- if (!(err_1 && +(err_1.code) === ErrorCodes$2.LOAD_ACCOUNT_ERROR)) return [3 /*break*/, 17];
16261
+ if (!(err_1 && +(err_1.code) === ErrorCodes.LOAD_ACCOUNT_ERROR)) return [3 /*break*/, 17];
16289
16262
  if (!(data.username.indexOf('@') !== -1)) return [3 /*break*/, 16];
16290
16263
  isEmailExists = void 0;
16291
16264
  _b.label = 12;
@@ -16301,12 +16274,12 @@
16301
16274
  case 15:
16302
16275
  // Email not exists (no account)
16303
16276
  if (!isEmailExists) {
16304
- throw { code: ErrorCodes$2.UNKNOWN_ACCOUNT_EMAIL, message: 'ERROR.UNKNOWN_ACCOUNT_EMAIL' };
16277
+ throw { code: ErrorCodes.UNKNOWN_ACCOUNT_EMAIL, message: 'ERROR.UNKNOWN_ACCOUNT_EMAIL' };
16305
16278
  }
16306
16279
  _b.label = 16;
16307
16280
  case 16:
16308
16281
  // Email exists, so error = 'bad password'
16309
- throw { code: ErrorCodes$2.BAD_PASSWORD, message: 'ERROR.BAD_PASSWORD' };
16282
+ throw { code: ErrorCodes.BAD_PASSWORD, message: 'ERROR.BAD_PASSWORD' };
16310
16283
  case 17: throw err_1; // resend the first error
16311
16284
  case 18:
16312
16285
  _b.trys.push([18, 20, , 21]);
@@ -16502,8 +16475,8 @@
16502
16475
  _b.label = 3;
16503
16476
  case 3: return [3 /*break*/, 6];
16504
16477
  case 4: return [4 /*yield*/, this.graphql.query({
16505
- query: LoadQuery$1,
16506
- error: { code: ErrorCodes$2.LOAD_ACCOUNT_ERROR, message: 'ERROR.LOAD_ACCOUNT_ERROR' },
16478
+ query: LoadQuery,
16479
+ error: { code: ErrorCodes.LOAD_ACCOUNT_ERROR, message: 'ERROR.LOAD_ACCOUNT_ERROR' },
16507
16480
  fetchPolicy: opts && opts.fetchPolicy || 'no-cache' || undefined
16508
16481
  })];
16509
16482
  case 5:
@@ -16541,7 +16514,7 @@
16541
16514
  case 1:
16542
16515
  isEmailExists = _b.sent();
16543
16516
  if (isEmailExists) {
16544
- throw { code: ErrorCodes$2.EMAIL_ALREADY_REGISTERED, message: 'ERROR.EMAIL_ALREADY_REGISTERED' };
16517
+ throw { code: ErrorCodes.EMAIL_ALREADY_REGISTERED, message: 'ERROR.EMAIL_ALREADY_REGISTERED' };
16545
16518
  }
16546
16519
  return [2 /*return*/];
16547
16520
  }
@@ -16591,7 +16564,7 @@
16591
16564
  locale: locale
16592
16565
  },
16593
16566
  error: {
16594
- code: ErrorCodes$2.SENT_CONFIRMATION_EMAIL_FAILED,
16567
+ code: ErrorCodes.SENT_CONFIRMATION_EMAIL_FAILED,
16595
16568
  message: 'ERROR.SENT_ACCOUNT_CONFIRMATION_EMAIL_FAILED'
16596
16569
  }
16597
16570
  })];
@@ -16614,7 +16587,7 @@
16614
16587
  code: code
16615
16588
  },
16616
16589
  error: {
16617
- code: ErrorCodes$2.CONFIRM_EMAIL_FAILED,
16590
+ code: ErrorCodes.CONFIRM_EMAIL_FAILED,
16618
16591
  message: 'ERROR.CONFIRM_ACCOUNT_EMAIL_FAILED'
16619
16592
  }
16620
16593
  })];
@@ -16714,7 +16687,7 @@
16714
16687
  throw error_7;
16715
16688
  console.error(error_7);
16716
16689
  throw {
16717
- code: ErrorCodes$2.LOAD_ACCOUNT_ERROR,
16690
+ code: ErrorCodes.LOAD_ACCOUNT_ERROR,
16718
16691
  message: 'ERROR.LOAD_ACCOUNT_ERROR'
16719
16692
  };
16720
16693
  case 6: return [2 /*return*/];
@@ -16925,7 +16898,7 @@
16925
16898
  case 1:
16926
16899
  existingAccount = _b.sent();
16927
16900
  if (!existingAccount || !existingAccount.updateDate) {
16928
- throw { code: ErrorCodes$2.ACCOUNT_NOT_EXISTS, message: 'ERROR.ACCOUNT_NOT_EXISTS' };
16901
+ throw { code: ErrorCodes.ACCOUNT_NOT_EXISTS, message: 'ERROR.ACCOUNT_NOT_EXISTS' };
16929
16902
  }
16930
16903
  this.copyIdAndUpdateDate(existingAccount, account);
16931
16904
  _b.label = 2;
@@ -16937,7 +16910,7 @@
16937
16910
  mutation: isNew ? AccountMutations.create : AccountMutations.save,
16938
16911
  variables: { data: json },
16939
16912
  error: {
16940
- code: ErrorCodes$2.SAVE_ACCOUNT_ERROR,
16913
+ code: ErrorCodes.SAVE_ACCOUNT_ERROR,
16941
16914
  message: 'ERROR.SAVE_ACCOUNT_ERROR'
16942
16915
  }
16943
16916
  })];
@@ -16971,7 +16944,7 @@
16971
16944
  mutation: AccountMutations.saveSettings,
16972
16945
  variables: { data: json },
16973
16946
  error: {
16974
- code: ErrorCodes$2.SAVE_SETTINGS_ERROR,
16947
+ code: ErrorCodes.SAVE_SETTINGS_ERROR,
16975
16948
  message: 'ERROR.SAVE_SETTINGS_ERROR'
16976
16949
  }
16977
16950
  })];
@@ -17002,7 +16975,7 @@
17002
16975
  if (counter > 4) {
17003
16976
  if (this._debug)
17004
16977
  console.debug("[account] Failed to authentication on pod (after " + counter + " attempts)");
17005
- throw { code: ErrorCodes$2.AUTH_SERVER_ERROR, message: 'ERROR.AUTH_SERVER_ERROR' };
16978
+ throw { code: ErrorCodes.AUTH_SERVER_ERROR, message: 'ERROR.AUTH_SERVER_ERROR' };
17006
16979
  }
17007
16980
  if (!token) return [3 /*break*/, 2];
17008
16981
  return [4 /*yield*/, this.graphql.query({
@@ -17011,7 +16984,7 @@
17011
16984
  token: token
17012
16985
  },
17013
16986
  error: {
17014
- code: ErrorCodes$2.UNAUTHORIZED,
16987
+ code: ErrorCodes.UNAUTHORIZED,
17015
16988
  message: 'ERROR.UNAUTHORIZED'
17016
16989
  },
17017
16990
  fetchPolicy: 'no-cache'
@@ -17028,7 +17001,7 @@
17028
17001
  _b.label = 2;
17029
17002
  case 2:
17030
17003
  challengeError = {
17031
- code: ErrorCodes$2.AUTH_CHALLENGE_ERROR,
17004
+ code: ErrorCodes.AUTH_CHALLENGE_ERROR,
17032
17005
  message: 'ERROR.AUTH_CHALLENGE_ERROR'
17033
17006
  };
17034
17007
  return [4 /*yield*/, this.graphql.query({
@@ -17115,7 +17088,7 @@
17115
17088
  query: AccountSubscriptions.listenChanges,
17116
17089
  variables: variables,
17117
17090
  error: {
17118
- code: ErrorCodes$2.SUBSCRIBE_ACCOUNT_ERROR,
17091
+ code: ErrorCodes.SUBSCRIBE_ACCOUNT_ERROR,
17119
17092
  message: 'ERROR.ACCOUNT.SUBSCRIBE_ERROR'
17120
17093
  }
17121
17094
  }).pipe(operators.map(function (_b) {
@@ -17148,7 +17121,7 @@
17148
17121
  };
17149
17122
  return AccountService;
17150
17123
  }(BaseGraphqlService));
17151
- AccountService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function AccountService_Factory() { return new AccountService(i0__namespace.ɵɵinject(CryptoService), i0__namespace.ɵɵinject(NetworkService), i0__namespace.ɵɵinject(GraphqlService), i0__namespace.ɵɵinject(LocalSettingsService), i0__namespace.ɵɵinject(i3__namespace$1.Storage), i0__namespace.ɵɵinject(FileService), i0__namespace.ɵɵinject(i1__namespace$1.TranslateService, 8), i0__namespace.ɵɵinject(i1__namespace$4.ToastController, 8), i0__namespace.ɵɵinject(ENVIRONMENT)); }, token: AccountService, providedIn: "root" });
17124
+ AccountService.ɵprov = i0.ɵɵdefineInjectable({ factory: function AccountService_Factory() { return new AccountService(i0.ɵɵinject(CryptoService), i0.ɵɵinject(NetworkService), i0.ɵɵinject(GraphqlService), i0.ɵɵinject(LocalSettingsService), i0.ɵɵinject(i3$2.Storage), i0.ɵɵinject(FileService), i0.ɵɵinject(i1$2.TranslateService, 8), i0.ɵɵinject(i1$5.ToastController, 8), i0.ɵɵinject(ENVIRONMENT)); }, token: AccountService, providedIn: "root" });
17152
17125
  AccountService.decorators = [
17153
17126
  { type: i0.Injectable, args: [{ providedIn: 'root', deps: [ENVIRONMENT] },] }
17154
17127
  ];
@@ -17163,7 +17136,7 @@
17163
17136
  { type: i1$5.ToastController, decorators: [{ type: i0.Optional }] },
17164
17137
  { type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] }
17165
17138
  ]; };
17166
- var templateObject_1$4, templateObject_2$4, templateObject_3$3, templateObject_4$3, templateObject_5$2, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12;
17139
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12;
17167
17140
 
17168
17141
  var Software_1, Configuration_1;
17169
17142
  // @dynamic
@@ -17421,13 +17394,13 @@
17421
17394
  /* ------------------------------------
17422
17395
  * GraphQL queries
17423
17396
  * ------------------------------------*/
17424
- var Fragments = {
17425
- config: core.gql(templateObject_1$3 || (templateObject_1$3 = __makeTemplateObject(["\n fragment ConfigFragment on ConfigurationVO {\n id\n label\n name\n description\n comments\n properties\n smallLogo\n largeLogo\n backgroundImages\n partners {\n id\n label\n name\n logo\n siteUrl\n __typename\n }\n updateDate\n creationDate\n statusId\n __typename\n }\n "], ["\n fragment ConfigFragment on ConfigurationVO {\n id\n label\n name\n description\n comments\n properties\n smallLogo\n largeLogo\n backgroundImages\n partners {\n id\n label\n name\n logo\n siteUrl\n __typename\n }\n updateDate\n creationDate\n statusId\n __typename\n }\n "])))
17397
+ var Fragments$1 = {
17398
+ config: core.gql(templateObject_1$1 || (templateObject_1$1 = __makeTemplateObject(["\n fragment ConfigFragment on ConfigurationVO {\n id\n label\n name\n description\n comments\n properties\n smallLogo\n largeLogo\n backgroundImages\n partners {\n id\n label\n name\n logo\n siteUrl\n __typename\n }\n updateDate\n creationDate\n statusId\n __typename\n }\n "], ["\n fragment ConfigFragment on ConfigurationVO {\n id\n label\n name\n description\n comments\n properties\n smallLogo\n largeLogo\n backgroundImages\n partners {\n id\n label\n name\n logo\n siteUrl\n __typename\n }\n updateDate\n creationDate\n statusId\n __typename\n }\n "])))
17426
17399
  };
17427
- var LoadQuery = core.gql(templateObject_2$3 || (templateObject_2$3 = __makeTemplateObject(["\nquery Configuration{\n data: configuration{\n ...ConfigFragment\n }\n}\n ", "\n"], ["\nquery Configuration{\n data: configuration{\n ...ConfigFragment\n }\n}\n ", "\n"])), Fragments.config);
17400
+ var LoadQuery$1 = core.gql(templateObject_2$1 || (templateObject_2$1 = __makeTemplateObject(["\nquery Configuration{\n data: configuration{\n ...ConfigFragment\n }\n}\n ", "\n"], ["\nquery Configuration{\n data: configuration{\n ...ConfigFragment\n }\n}\n ", "\n"])), Fragments$1.config);
17428
17401
  // Save (create or update) account mutation
17429
- var SaveMutation = core.gql(templateObject_3$2 || (templateObject_3$2 = __makeTemplateObject(["\n mutation SaveConfiguration($data: ConfigurationVOInput){\n data: saveConfiguration(config: $data){\n ...ConfigFragment\n }\n }\n ", "\n"], ["\n mutation SaveConfiguration($data: ConfigurationVOInput){\n data: saveConfiguration(config: $data){\n ...ConfigFragment\n }\n }\n ", "\n"])), Fragments.config);
17430
- var ClearCache = core.gql(templateObject_4$2 || (templateObject_4$2 = __makeTemplateObject(["\n query ClearCache($name: String) {\n clearCache(name: $name)\n }\n"], ["\n query ClearCache($name: String) {\n clearCache(name: $name)\n }\n"])));
17402
+ var SaveMutation = core.gql(templateObject_3$1 || (templateObject_3$1 = __makeTemplateObject(["\n mutation SaveConfiguration($data: ConfigurationVOInput){\n data: saveConfiguration(config: $data){\n ...ConfigFragment\n }\n }\n ", "\n"], ["\n mutation SaveConfiguration($data: ConfigurationVOInput){\n data: saveConfiguration(config: $data){\n ...ConfigFragment\n }\n }\n ", "\n"])), Fragments$1.config);
17403
+ var ClearCache = core.gql(templateObject_4$1 || (templateObject_4$1 = __makeTemplateObject(["\n query ClearCache($name: String) {\n clearCache(name: $name)\n }\n"], ["\n query ClearCache($name: String) {\n clearCache(name: $name)\n }\n"])));
17431
17404
  var CacheStatistics = core.gql(templateObject_5$1 || (templateObject_5$1 = __makeTemplateObject(["\n query CacheStatistics {\n cacheStatistics\n }\n"], ["\n query CacheStatistics {\n cacheStatistics\n }\n"])));
17432
17405
  var APP_CONFIG_OPTIONS = new i0.InjectionToken('defaultOptions');
17433
17406
  var ConfigService = /** @class */ (function (_super) {
@@ -17487,12 +17460,12 @@
17487
17460
  case 0:
17488
17461
  now = Date.now();
17489
17462
  console.debug('[config] Loading Pod configuration...');
17490
- query = opts && opts.query || LoadQuery;
17463
+ query = opts && opts.query || LoadQuery$1;
17491
17464
  variables = opts && opts.variables || undefined;
17492
17465
  return [4 /*yield*/, this.graphql.query({
17493
17466
  query: query,
17494
17467
  variables: variables,
17495
- error: { code: ErrorCodes$2.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
17468
+ error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
17496
17469
  fetchPolicy: opts && opts.fetchPolicy || undefined /*default*/
17497
17470
  })];
17498
17471
  case 1:
@@ -17534,7 +17507,7 @@
17534
17507
  data: json
17535
17508
  },
17536
17509
  error: {
17537
- code: ErrorCodes$2.SAVE_CONFIG_ERROR,
17510
+ code: ErrorCodes.SAVE_CONFIG_ERROR,
17538
17511
  message: 'ERROR.SAVE_CONFIG_ERROR'
17539
17512
  }
17540
17513
  })];
@@ -17569,7 +17542,7 @@
17569
17542
  return [4 /*yield*/, this.graphql.query({
17570
17543
  query: CacheStatistics,
17571
17544
  variables: null,
17572
- error: { code: ErrorCodes$2.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
17545
+ error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
17573
17546
  fetchPolicy: 'network-only'
17574
17547
  })];
17575
17548
  case 1:
@@ -17593,7 +17566,7 @@
17593
17566
  return [4 /*yield*/, this.graphql.query({
17594
17567
  query: ClearCache,
17595
17568
  variables: variables,
17596
- error: { code: ErrorCodes$2.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
17569
+ error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
17597
17570
  fetchPolicy: 'no-cache'
17598
17571
  })];
17599
17572
  case 1:
@@ -17793,7 +17766,7 @@
17793
17766
  };
17794
17767
  return ConfigService;
17795
17768
  }(BaseGraphqlService));
17796
- ConfigService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function ConfigService_Factory() { return new ConfigService(i0__namespace.ɵɵinject(i1__namespace$4.Platform), i0__namespace.ɵɵinject(GraphqlService), i0__namespace.ɵɵinject(i3__namespace$1.Storage), i0__namespace.ɵɵinject(NetworkService), i0__namespace.ɵɵinject(FileService), i0__namespace.ɵɵinject(i1__namespace$4.ToastController), i0__namespace.ɵɵinject(i1__namespace$1.TranslateService), i0__namespace.ɵɵinject(AccountService), i0__namespace.ɵɵinject(ENVIRONMENT), i0__namespace.ɵɵinject(APP_CONFIG_OPTIONS, 8)); }, token: ConfigService, providedIn: "root" });
17769
+ ConfigService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ConfigService_Factory() { return new ConfigService(i0.ɵɵinject(i1$5.Platform), i0.ɵɵinject(GraphqlService), i0.ɵɵinject(i3$2.Storage), i0.ɵɵinject(NetworkService), i0.ɵɵinject(FileService), i0.ɵɵinject(i1$5.ToastController), i0.ɵɵinject(i1$2.TranslateService), i0.ɵɵinject(AccountService), i0.ɵɵinject(ENVIRONMENT), i0.ɵɵinject(APP_CONFIG_OPTIONS, 8)); }, token: ConfigService, providedIn: "root" });
17797
17770
  ConfigService.decorators = [
17798
17771
  { type: i0.Injectable, args: [{
17799
17772
  providedIn: 'root',
@@ -17812,9 +17785,9 @@
17812
17785
  { type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] },
17813
17786
  { type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_CONFIG_OPTIONS,] }] }
17814
17787
  ]; };
17815
- var templateObject_1$3, templateObject_2$3, templateObject_3$2, templateObject_4$2, templateObject_5$1;
17788
+ var templateObject_1$1, templateObject_2$1, templateObject_3$1, templateObject_4$1, templateObject_5$1;
17816
17789
 
17817
- var moment$3 = momentImported__namespace;
17790
+ var moment$4 = momentImported__namespace;
17818
17791
  var AndroidOsEnvironment = Object.freeze({
17819
17792
  DIRECTORY_DOWNLOADS: 'Download',
17820
17793
  DIRECTORY_DOWNLOADS_OLD: 'Downloads',
@@ -18084,16 +18057,16 @@
18084
18057
  }
18085
18058
  // config moment lib
18086
18059
  try {
18087
- moment$3.locale(event.lang);
18060
+ moment$4.locale(event.lang);
18088
18061
  console.debug('[platform] Use locale {' + event.lang + '}');
18089
18062
  }
18090
18063
  // If error, fallback to en
18091
18064
  catch (err) {
18092
- moment$3.locale('en');
18065
+ moment$4.locale('en');
18093
18066
  console.warn('[platform] Unknown local for moment lib. Using default [en]');
18094
18067
  }
18095
18068
  // Config date adapter
18096
- _this.dateAdapter.setLocale(moment$3.locale());
18069
+ _this.dateAdapter.setLocale(moment$4.locale());
18097
18070
  }
18098
18071
  });
18099
18072
  this.settings.onChange.subscribe(function (data) {
@@ -18346,7 +18319,7 @@
18346
18319
  };
18347
18320
  return PlatformService;
18348
18321
  }(StartableService));
18349
- PlatformService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function PlatformService_Factory() { return new PlatformService(i0__namespace.ɵɵinject(i1__namespace$4.Platform), i0__namespace.ɵɵinject(i2__namespace$4.Platform), i0__namespace.ɵɵinject(i1__namespace$4.ToastController), i0__namespace.ɵɵinject(i1__namespace$1.TranslateService), i0__namespace.ɵɵinject(i1__namespace.MomentDateAdapter), i0__namespace.ɵɵinject(EntitiesStorage), i0__namespace.ɵɵinject(LocalSettingsService), i0__namespace.ɵɵinject(NetworkService), i0__namespace.ɵɵinject(AccountService), i0__namespace.ɵɵinject(ConfigService), i0__namespace.ɵɵinject(i6__namespace.CacheService), i0__namespace.ɵɵinject(i3__namespace$1.Storage), i0__namespace.ɵɵinject(AudioProvider), i0__namespace.ɵɵinject(ENVIRONMENT), i0__namespace.ɵɵinject(i14__namespace.StatusBar, 8), i0__namespace.ɵɵinject(i15__namespace.Keyboard, 8), i0__namespace.ɵɵinject(i10__namespace.SplashScreen, 8), i0__namespace.ɵɵinject(i17__namespace.InAppBrowser, 8), i0__namespace.ɵɵinject(i18__namespace.Downloader, 8)); }, token: PlatformService, providedIn: "root" });
18322
+ PlatformService.ɵprov = i0.ɵɵdefineInjectable({ factory: function PlatformService_Factory() { return new PlatformService(i0.ɵɵinject(i1$5.Platform), i0.ɵɵinject(i2$4.Platform), i0.ɵɵinject(i1$5.ToastController), i0.ɵɵinject(i1$2.TranslateService), i0.ɵɵinject(i1$1.MomentDateAdapter), i0.ɵɵinject(EntitiesStorage), i0.ɵɵinject(LocalSettingsService), i0.ɵɵinject(NetworkService), i0.ɵɵinject(AccountService), i0.ɵɵinject(ConfigService), i0.ɵɵinject(i6.CacheService), i0.ɵɵinject(i3$2.Storage), i0.ɵɵinject(AudioProvider), i0.ɵɵinject(ENVIRONMENT), i0.ɵɵinject(i14.StatusBar, 8), i0.ɵɵinject(i15.Keyboard, 8), i0.ɵɵinject(i10.SplashScreen, 8), i0.ɵɵinject(i17.InAppBrowser, 8), i0.ɵɵinject(i18.Downloader, 8)); }, token: PlatformService, providedIn: "root" });
18350
18323
  PlatformService.decorators = [
18351
18324
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
18352
18325
  ];
@@ -18444,7 +18417,7 @@
18444
18417
  };
18445
18418
  return MatStepperI18n;
18446
18419
  }(stepper.MatStepperIntl));
18447
- MatStepperI18n.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function MatStepperI18n_Factory() { return new MatStepperI18n(i0__namespace.ɵɵinject(i1__namespace$1.TranslateService)); }, token: MatStepperI18n, providedIn: "root" });
18420
+ MatStepperI18n.ɵprov = i0.ɵɵdefineInjectable({ factory: function MatStepperI18n_Factory() { return new MatStepperI18n(i0.ɵɵinject(i1$2.TranslateService)); }, token: MatStepperI18n, providedIn: "root" });
18448
18421
  MatStepperI18n.decorators = [
18449
18422
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
18450
18423
  ];
@@ -20308,59 +20281,53 @@
20308
20281
  .then(function () {
20309
20282
  if (opts === null || opts === void 0 ? void 0 : opts.maxProgression)
20310
20283
  progression.next(opts.maxProgression);
20311
- progression.complete();
20284
+ if (opts === null || opts === void 0 ? void 0 : opts.progression)
20285
+ opts.progression.complete();
20312
20286
  })
20313
20287
  .catch(function (err) { return progression.error(err); });
20314
20288
  return progression;
20315
20289
  };
20316
20290
  JobUtils.fetchAllPages = function (loadPageFn, opts) {
20291
+ var _a;
20317
20292
  return __awaiter(this, void 0, void 0, function () {
20318
- var maxProgression, progression, total, pageCount, progressionStep, currentPageDataCount, fetchSize, offset, data, res;
20319
- return __generator(this, function (_a) {
20320
- switch (_a.label) {
20293
+ var maxProgression, total, pageCount, progressionStep, currentPageDataCount, fetchSize, offset, data, res, actualProgression, lastProgressionStep;
20294
+ return __generator(this, function (_b) {
20295
+ switch (_b.label) {
20321
20296
  case 0:
20322
- maxProgression = toNumber(opts === null || opts === void 0 ? void 0 : opts.maxProgression, 100);
20323
- progression = opts === null || opts === void 0 ? void 0 : opts.progression;
20324
- fetchSize = toNumber(opts === null || opts === void 0 ? void 0 : opts.fetchSize, 1000);
20325
- if (fetchSize <= 0)
20326
- throw new Error('Unable to fetch pages: invalid fetchSize: ' + fetchSize);
20297
+ maxProgression = opts && opts.maxProgression || undefined;
20298
+ fetchSize = opts && opts.fetchSize || 1000;
20327
20299
  offset = 0;
20328
20300
  data = [];
20329
- _a.label = 1;
20301
+ _b.label = 1;
20330
20302
  case 1:
20331
20303
  if (opts && opts.logPrefix)
20332
20304
  console.debug(opts.logPrefix + " Fetching page #" + offset / fetchSize + "...");
20333
20305
  return [4 /*yield*/, loadPageFn(offset, fetchSize)];
20334
20306
  case 2:
20335
- res = _a.sent();
20336
- // Concat to previous result
20307
+ res = _b.sent();
20337
20308
  data = data.concat(res.data);
20338
- // Compute variables, for next loop
20339
20309
  currentPageDataCount = res.data && res.data.length || 0;
20340
20310
  offset += currentPageDataCount;
20341
- // Set total count (only once)
20311
+ // Set total count (only if not already set)
20342
20312
  if (isNil(total) && isNotNil(res.total)) {
20343
20313
  total = res.total;
20344
20314
  // Compute the number of page
20345
20315
  pageCount = Math.round(res.total / fetchSize + 0.5); // Round to HALF_UP integer
20346
- // Compute step, by dividing maxProgression by number of page
20347
- if (progression) {
20348
- progressionStep = maxProgression / pageCount;
20349
- // DEBUG
20350
- if (opts && opts.logPrefix)
20351
- console.debug(opts.logPrefix + " {pageCount: " + pageCount + ", progression: " + progression.value + ", pageProgressionStep: " + progressionStep + "}");
20352
- }
20316
+ actualProgression = Math.max(0, toNumber(opts && ((_a = opts.progression) === null || _a === void 0 ? void 0 : _a.value), 0));
20317
+ progressionStep = maxProgression
20318
+ ? (maxProgression - actualProgression) / pageCount
20319
+ : undefined /*if 0 reset to undefined*/;
20353
20320
  }
20354
20321
  // Increment progression on each iteration (if possible)
20355
- if (isNotNil(progressionStep)) {
20356
- progression.next(progression.value + progressionStep);
20322
+ if (opts && opts.progression && isNotNil(progressionStep)) {
20323
+ opts.progression.next(opts.progression.value + progressionStep);
20357
20324
  }
20358
- if (opts === null || opts === void 0 ? void 0 : opts.onPageLoaded)
20325
+ if (opts && opts.onPageLoaded)
20359
20326
  opts.onPageLoaded(res);
20360
- _a.label = 3;
20327
+ _b.label = 3;
20361
20328
  case 3:
20362
20329
  if (currentPageDataCount > 0 && ((isNil(total) && currentPageDataCount === fetchSize) || (isNotNil(total) && (offset < total)))) return [3 /*break*/, 1];
20363
- _a.label = 4;
20330
+ _b.label = 4;
20364
20331
  case 4:
20365
20332
  // Complete progression to reach progressionStep value (because of round)
20366
20333
  if (isNotNil(progressionStep)) {
@@ -20370,19 +20337,14 @@
20370
20337
  total = data.length;
20371
20338
  pageCount = Math.round(data.length / fetchSize + 0.5);
20372
20339
  }
20373
- // Compute final increment, using the real page count
20374
- progressionStep = Math.max(0, maxProgression - (progressionStep * pageCount));
20375
- }
20376
- // Or increment once (e.g. when total is not known, in received LoadResult)
20377
- else if (progression) {
20378
- progressionStep = maxProgression;
20340
+ lastProgressionStep = opts.maxProgression - (progressionStep * pageCount);
20341
+ if (opts && opts.progression && lastProgressionStep > 0) {
20342
+ opts.progression.next(opts.progression.value + lastProgressionStep);
20343
+ }
20379
20344
  }
20380
- // DEBUG
20381
- if (opts && opts.logPrefix)
20382
- console.debug(opts.logPrefix + " All pages fetched - {progression: " + progression.value + ", lastProgressionStep: " + progressionStep);
20383
- // Final increment
20384
- if (progression && progressionStep > 0) {
20385
- progression.next(progression.value + progressionStep);
20345
+ // Or increment once
20346
+ else if (opts && opts.progression && opts.maxProgression) {
20347
+ opts.progression.next(opts.progression.value + opts.maxProgression);
20386
20348
  }
20387
20349
  return [2 /*return*/, {
20388
20350
  data: data,
@@ -20657,7 +20619,7 @@
20657
20619
  return 1;
20658
20620
  }
20659
20621
  }
20660
- var ɵ0$1 = function (defaultStateSize) { return [
20622
+ var ɵ0$b = function (defaultStateSize) { return [
20661
20623
  Math.round((rgbArrayMap.red[0] - 50) / defaultStateSize),
20662
20624
  Math.round((255 - rgbArrayMap.red[1]) / defaultStateSize),
20663
20625
  Math.round((255 - rgbArrayMap.red[2]) / defaultStateSize)
@@ -20665,7 +20627,7 @@
20665
20627
  var SCALE_OPTIONS_DEFAULT = {
20666
20628
  startColor: rgbArrayMap.red,
20667
20629
  startStates: [0, 2, 3],
20668
- startStepsFn: ɵ0$1
20630
+ startStepsFn: ɵ0$b
20669
20631
  };
20670
20632
  /**
20671
20633
  * Internal function, that create a colors scale, using iteration
@@ -21596,7 +21558,7 @@
21596
21558
  };
21597
21559
  return UserSettingsValidatorService;
21598
21560
  }(AppValidatorService));
21599
- UserSettingsValidatorService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function UserSettingsValidatorService_Factory() { return new UserSettingsValidatorService(i0__namespace.ɵɵinject(i1__namespace$6.FormBuilder)); }, token: UserSettingsValidatorService, providedIn: "root" });
21561
+ UserSettingsValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function UserSettingsValidatorService_Factory() { return new UserSettingsValidatorService(i0.ɵɵinject(i1.FormBuilder)); }, token: UserSettingsValidatorService, providedIn: "root" });
21600
21562
  UserSettingsValidatorService.decorators = [
21601
21563
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
21602
21564
  ];
@@ -21644,7 +21606,7 @@
21644
21606
  };
21645
21607
  return AccountValidatorService;
21646
21608
  }(AppValidatorService));
21647
- AccountValidatorService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function AccountValidatorService_Factory() { return new AccountValidatorService(i0__namespace.ɵɵinject(i1__namespace$6.FormBuilder), i0__namespace.ɵɵinject(AccountService)); }, token: AccountValidatorService, providedIn: "root" });
21609
+ AccountValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function AccountValidatorService_Factory() { return new AccountValidatorService(i0.ɵɵinject(i1.FormBuilder), i0.ɵɵinject(AccountService)); }, token: AccountValidatorService, providedIn: "root" });
21648
21610
  AccountValidatorService.decorators = [
21649
21611
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
21650
21612
  ];
@@ -22275,7 +22237,7 @@
22275
22237
  };
22276
22238
  return LocalSettingsValidatorService;
22277
22239
  }(AppValidatorService));
22278
- LocalSettingsValidatorService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function LocalSettingsValidatorService_Factory() { return new LocalSettingsValidatorService(i0__namespace.ɵɵinject(i1__namespace$6.FormBuilder), i0__namespace.ɵɵinject(NetworkService)); }, token: LocalSettingsValidatorService, providedIn: "root" });
22240
+ LocalSettingsValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function LocalSettingsValidatorService_Factory() { return new LocalSettingsValidatorService(i0.ɵɵinject(i1.FormBuilder), i0.ɵɵinject(NetworkService)); }, token: LocalSettingsValidatorService, providedIn: "root" });
22279
22241
  LocalSettingsValidatorService.decorators = [
22280
22242
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
22281
22243
  ];
@@ -23055,7 +23017,7 @@
23055
23017
  };
23056
23018
  return IsOnFieldModePipe;
23057
23019
  }());
23058
- IsOnFieldModePipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function IsOnFieldModePipe_Factory() { return new IsOnFieldModePipe(); }, token: IsOnFieldModePipe, providedIn: "root" });
23020
+ IsOnFieldModePipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsOnFieldModePipe_Factory() { return new IsOnFieldModePipe(); }, token: IsOnFieldModePipe, providedIn: "root" });
23059
23021
  IsOnFieldModePipe.decorators = [
23060
23022
  { type: i0.Pipe, args: [{
23061
23023
  name: 'isOnField'
@@ -23070,7 +23032,7 @@
23070
23032
  };
23071
23033
  return IsNotOnFieldModePipe;
23072
23034
  }());
23073
- IsNotOnFieldModePipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function IsNotOnFieldModePipe_Factory() { return new IsNotOnFieldModePipe(); }, token: IsNotOnFieldModePipe, providedIn: "root" });
23035
+ IsNotOnFieldModePipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsNotOnFieldModePipe_Factory() { return new IsNotOnFieldModePipe(); }, token: IsNotOnFieldModePipe, providedIn: "root" });
23074
23036
  IsNotOnFieldModePipe.decorators = [
23075
23037
  { type: i0.Pipe, args: [{
23076
23038
  name: 'isNotOnField'
@@ -23088,7 +23050,7 @@
23088
23050
  };
23089
23051
  return PersonToStringPipe;
23090
23052
  }());
23091
- PersonToStringPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function PersonToStringPipe_Factory() { return new PersonToStringPipe(); }, token: PersonToStringPipe, providedIn: "root" });
23053
+ PersonToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function PersonToStringPipe_Factory() { return new PersonToStringPipe(); }, token: PersonToStringPipe, providedIn: "root" });
23092
23054
  PersonToStringPipe.decorators = [
23093
23055
  { type: i0.Pipe, args: [{
23094
23056
  name: 'personToString'
@@ -23552,7 +23514,7 @@
23552
23514
  };
23553
23515
  return IsLoginAccountPipe;
23554
23516
  }());
23555
- IsLoginAccountPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function IsLoginAccountPipe_Factory() { return new IsLoginAccountPipe(); }, token: IsLoginAccountPipe, providedIn: "root" });
23517
+ IsLoginAccountPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsLoginAccountPipe_Factory() { return new IsLoginAccountPipe(); }, token: IsLoginAccountPipe, providedIn: "root" });
23556
23518
  IsLoginAccountPipe.decorators = [
23557
23519
  { type: i0.Pipe, args: [{
23558
23520
  name: 'isLogin'
@@ -23567,7 +23529,7 @@
23567
23529
  };
23568
23530
  return AccountToStringPipe;
23569
23531
  }());
23570
- AccountToStringPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function AccountToStringPipe_Factory() { return new AccountToStringPipe(); }, token: AccountToStringPipe, providedIn: "root" });
23532
+ AccountToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function AccountToStringPipe_Factory() { return new AccountToStringPipe(); }, token: AccountToStringPipe, providedIn: "root" });
23571
23533
  AccountToStringPipe.decorators = [
23572
23534
  { type: i0.Pipe, args: [{
23573
23535
  name: 'accountToString'
@@ -23585,7 +23547,7 @@
23585
23547
  };
23586
23548
  return DepartmentToStringPipe;
23587
23549
  }());
23588
- DepartmentToStringPipe.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function DepartmentToStringPipe_Factory() { return new DepartmentToStringPipe(); }, token: DepartmentToStringPipe, providedIn: "root" });
23550
+ DepartmentToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DepartmentToStringPipe_Factory() { return new DepartmentToStringPipe(); }, token: DepartmentToStringPipe, providedIn: "root" });
23589
23551
  DepartmentToStringPipe.decorators = [
23590
23552
  { type: i0.Pipe, args: [{
23591
23553
  name: 'departmentToString'
@@ -23691,7 +23653,7 @@
23691
23653
  };
23692
23654
  return MenuService;
23693
23655
  }());
23694
- MenuService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function MenuService_Factory() { return new MenuService(); }, token: MenuService, providedIn: "root" });
23656
+ MenuService.ɵprov = i0.ɵɵdefineInjectable({ factory: function MenuService_Factory() { return new MenuService(); }, token: MenuService, providedIn: "root" });
23695
23657
  MenuService.decorators = [
23696
23658
  { type: i0.Injectable, args: [{
23697
23659
  providedIn: 'root'
@@ -24242,7 +24204,7 @@
24242
24204
  };
24243
24205
  return AuthGuardService;
24244
24206
  }());
24245
- AuthGuardService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function AuthGuardService_Factory() { return new AuthGuardService(i0__namespace.ɵɵinject(AccountService), i0__namespace.ɵɵinject(i1__namespace$4.ModalController), i0__namespace.ɵɵinject(i3__namespace$3.Router), i0__namespace.ɵɵinject(ENVIRONMENT)); }, token: AuthGuardService, providedIn: "root" });
24207
+ AuthGuardService.ɵprov = i0.ɵɵdefineInjectable({ factory: function AuthGuardService_Factory() { return new AuthGuardService(i0.ɵɵinject(AccountService), i0.ɵɵinject(i1$5.ModalController), i0.ɵɵinject(i3.Router), i0.ɵɵinject(ENVIRONMENT)); }, token: AuthGuardService, providedIn: "root" });
24246
24208
  AuthGuardService.decorators = [
24247
24209
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
24248
24210
  ];
@@ -24287,7 +24249,7 @@
24287
24249
  query: query,
24288
24250
  variables: { id: id },
24289
24251
  fetchPolicy: opts && opts.fetchPolicy || undefined,
24290
- error: { code: ErrorCodes$2.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
24252
+ error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
24291
24253
  })
24292
24254
  .pipe(operators.map(function (_b) {
24293
24255
  var data = _b.data;
@@ -24309,7 +24271,7 @@
24309
24271
  query: query,
24310
24272
  variables: { id: id },
24311
24273
  fetchPolicy: opts && opts.fetchPolicy || undefined,
24312
- error: { code: ErrorCodes$2.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
24274
+ error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
24313
24275
  })];
24314
24276
  case 1:
24315
24277
  data = (_b.sent()).data;
@@ -24345,7 +24307,7 @@
24345
24307
  totalFieldName: withTotal ? 'total' : undefined,
24346
24308
  insertFilterFn: filter && filter.asFilterFn(),
24347
24309
  variables: variables,
24348
- error: { code: ErrorCodes$2.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' },
24310
+ error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' },
24349
24311
  fetchPolicy: opts && opts.fetchPolicy || undefined
24350
24312
  })
24351
24313
  .pipe(operators.map(function (_b) {
@@ -24387,7 +24349,7 @@
24387
24349
  return [4 /*yield*/, this.graphql.query({
24388
24350
  query: query,
24389
24351
  variables: variables,
24390
- error: { code: ErrorCodes$2.LOAD_DATA_ERROR, message: 'ERROR.LOAD_DATA_ERROR' },
24352
+ error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'ERROR.LOAD_DATA_ERROR' },
24391
24353
  fetchPolicy: opts && opts.fetchPolicy || 'network-only'
24392
24354
  })];
24393
24355
  case 1:
@@ -24435,7 +24397,7 @@
24435
24397
  variables: {
24436
24398
  filter: filter && filter.asPodObject()
24437
24399
  },
24438
- error: { code: ErrorCodes$2.LOAD_DATA_ERROR, message: 'ERROR.COUNT_DATA_ERROR' },
24400
+ error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'ERROR.COUNT_DATA_ERROR' },
24439
24401
  fetchPolicy: opts && opts.fetchPolicy || 'network-only'
24440
24402
  })];
24441
24403
  case 3:
@@ -24480,7 +24442,7 @@
24480
24442
  variables: {
24481
24443
  data: json
24482
24444
  },
24483
- error: { code: ErrorCodes$2.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
24445
+ error: { code: ErrorCodes.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
24484
24446
  update: function (proxy, _b) {
24485
24447
  var data = _b.data;
24486
24448
  var savedEntities = data && data.data;
@@ -24547,7 +24509,7 @@
24547
24509
  variables: {
24548
24510
  data: json
24549
24511
  },
24550
- error: { code: ErrorCodes$2.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
24512
+ error: { code: ErrorCodes.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
24551
24513
  update: function (cache, _b) {
24552
24514
  var data = _b.data;
24553
24515
  // Update entity
@@ -24605,7 +24567,7 @@
24605
24567
  refetchQueries: this.getRefetchQueriesForMutation(opts),
24606
24568
  awaitRefetchQueries: opts && opts.awaitRefetchQueries,
24607
24569
  variables: { ids: ids },
24608
- error: { code: ErrorCodes$2.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
24570
+ error: { code: ErrorCodes.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
24609
24571
  update: function (cache, res) {
24610
24572
  // Remove from cache
24611
24573
  if (_this.watchQueriesUpdatePolicy === 'update-cache') {
@@ -24658,7 +24620,7 @@
24658
24620
  refetchQueries: this.getRefetchQueriesForMutation(opts),
24659
24621
  awaitRefetchQueries: opts && opts.awaitRefetchQueries,
24660
24622
  variables: { id: id },
24661
- error: { code: ErrorCodes$2.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
24623
+ error: { code: ErrorCodes.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
24662
24624
  update: function (proxy, res) {
24663
24625
  // Remove from cache
24664
24626
  if (_this.watchQueriesUpdatePolicy === 'update-cache') {
@@ -24700,7 +24662,7 @@
24700
24662
  fetchPolicy: opts && opts.fetchPolicy || 'no-cache',
24701
24663
  variables: variables,
24702
24664
  error: {
24703
- code: ErrorCodes$2.SUBSCRIBE_DATA_ERROR,
24665
+ code: ErrorCodes.SUBSCRIBE_DATA_ERROR,
24704
24666
  message: 'ERROR.SUBSCRIBE_DATA_ERROR'
24705
24667
  }
24706
24668
  })
@@ -24923,7 +24885,7 @@
24923
24885
  if (this._debug)
24924
24886
  invalidRows.forEach(function (row) { return AppTableUtils.logRowErrors(row, "[table-datasource] " + _this._logTypeName + " row #" + row.id); });
24925
24887
  // Stop with an error
24926
- throw { code: ErrorCodes$2.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
24888
+ throw { code: ErrorCodes.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
24927
24889
  }
24928
24890
  this._editingRowCount = 0;
24929
24891
  data = void 0;
@@ -25943,14 +25905,14 @@
25943
25905
  case 0:
25944
25906
  opts = Object.assign({ keepEditing: this.keepEditedRowOnSave }, opts);
25945
25907
  if (this.readOnly) {
25946
- throw { code: ErrorCodes$2.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
25908
+ throw { code: ErrorCodes.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
25947
25909
  }
25948
25910
  this.resetError();
25949
25911
  // Keep edited row id (should be done BEFORE confirmEditCreate() )
25950
25912
  this.previouslyEditedRowId = opts.keepEditing ? ((((_a = this.editedRow) === null || _a === void 0 ? void 0 : _a.editing) ? this.editedRow.id : undefined) || ((_b = this.singleSelectedRow) === null || _b === void 0 ? void 0 : _b.id)) : undefined;
25951
25913
  previouslyEditedData = opts.keepEditing ? (isNotNil(this.previouslyEditedRowId) && ((_c = this.editedRow) === null || _c === void 0 ? void 0 : _c.currentData) || ((_d = this.singleSelectedRow) === null || _d === void 0 ? void 0 : _d.currentData)) : undefined;
25952
25914
  if (!this.confirmEditCreate()) {
25953
- throw { code: ErrorCodes$2.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
25915
+ throw { code: ErrorCodes.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
25954
25916
  }
25955
25917
  // Mark as saving
25956
25918
  this.markAsSaving();
@@ -26107,7 +26069,7 @@
26107
26069
  switch (_e.label) {
26108
26070
  case 0:
26109
26071
  if (this.readOnly) {
26110
- throw { code: ErrorCodes$2.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
26072
+ throw { code: ErrorCodes.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
26111
26073
  }
26112
26074
  if (event === null || event === void 0 ? void 0 : event.defaultPrevented)
26113
26075
  return [2 /*return*/, 0]; // SKip
@@ -28007,7 +27969,7 @@
28007
27969
  case 8:
28008
27970
  data = _c.sent();
28009
27971
  if (!data)
28010
- throw { code: ErrorCodes$2.DATA_NOT_FOUND_ERROR, message: 'ERROR.DATA_NO_FOUND' };
27972
+ throw { code: ErrorCodes.DATA_NOT_FOUND_ERROR, message: 'ERROR.DATA_NO_FOUND' };
28011
27973
  this._usageMode = this.computeUsageMode(data);
28012
27974
  return [4 /*yield*/, this.onEntityLoaded(data, opts)];
28013
27975
  case 9:
@@ -28799,10 +28761,10 @@
28799
28761
  exports.UserEventFilter = __decorate([
28800
28762
  EntityClass({ typename: 'UserEventVO' })
28801
28763
  ], exports.UserEventFilter);
28802
- var SaveQuery = core.gql(templateObject_1$1 || (templateObject_1$1 = __makeTemplateObject(["\n mutation SaveUserEvent($data: UserEventVOInput){\n data: saveUserEvent(userEvent: $data){\n ...UserEventFragment\n }\n }\n ", "\n"], ["\n mutation SaveUserEvent($data: UserEventVOInput){\n data: saveUserEvent(userEvent: $data){\n ...UserEventFragment\n }\n }\n ", "\n"])), SocialFragments.userEvent);
28803
- var LoadAllQuery = core.gql(templateObject_2$1 || (templateObject_2$1 = __makeTemplateObject(["\n query UserEvents($filter: UserEventFilterVOInput, $page: PageInput){\n data: userEvents(filter: $filter, page: $page){\n ...LightUserEventFragment\n }\n }\n ", "\n"], ["\n query UserEvents($filter: UserEventFilterVOInput, $page: PageInput){\n data: userEvents(filter: $filter, page: $page){\n ...LightUserEventFragment\n }\n }\n ", "\n"])), SocialFragments.lightUserEvent);
28804
- var DeleteByIdsMutation = core.gql(templateObject_3$1 || (templateObject_3$1 = __makeTemplateObject(["\n mutation DeleteUserEvents($ids:[Int]){\n deleteUserEvents(ids: $ids)\n }\n"], ["\n mutation DeleteUserEvents($ids:[Int]){\n deleteUserEvents(ids: $ids)\n }\n"])));
28805
- var LoadAllWithContentQuery = core.gql(templateObject_4$1 || (templateObject_4$1 = __makeTemplateObject(["\n query UserEventsWithContent($filter: UserEventFilterVOInput, $page: PageInput){\n data: userEvents(filter: $filter, page: $page){\n ...UserEventFragment\n }\n }\n ", "\n"], ["\n query UserEventsWithContent($filter: UserEventFilterVOInput, $page: PageInput){\n data: userEvents(filter: $filter, page: $page){\n ...UserEventFragment\n }\n }\n ", "\n"])), SocialFragments.userEvent);
28764
+ var SaveQuery = core.gql(templateObject_1$3 || (templateObject_1$3 = __makeTemplateObject(["\n mutation SaveUserEvent($data: UserEventVOInput){\n data: saveUserEvent(userEvent: $data){\n ...UserEventFragment\n }\n }\n ", "\n"], ["\n mutation SaveUserEvent($data: UserEventVOInput){\n data: saveUserEvent(userEvent: $data){\n ...UserEventFragment\n }\n }\n ", "\n"])), SocialFragments.userEvent);
28765
+ var LoadAllQuery = core.gql(templateObject_2$3 || (templateObject_2$3 = __makeTemplateObject(["\n query UserEvents($filter: UserEventFilterVOInput, $page: PageInput){\n data: userEvents(filter: $filter, page: $page){\n ...LightUserEventFragment\n }\n }\n ", "\n"], ["\n query UserEvents($filter: UserEventFilterVOInput, $page: PageInput){\n data: userEvents(filter: $filter, page: $page){\n ...LightUserEventFragment\n }\n }\n ", "\n"])), SocialFragments.lightUserEvent);
28766
+ var DeleteByIdsMutation = core.gql(templateObject_3$2 || (templateObject_3$2 = __makeTemplateObject(["\n mutation DeleteUserEvents($ids:[Int]){\n deleteUserEvents(ids: $ids)\n }\n"], ["\n mutation DeleteUserEvents($ids:[Int]){\n deleteUserEvents(ids: $ids)\n }\n"])));
28767
+ var LoadAllWithContentQuery = core.gql(templateObject_4$2 || (templateObject_4$2 = __makeTemplateObject(["\n query UserEventsWithContent($filter: UserEventFilterVOInput, $page: PageInput){\n data: userEvents(filter: $filter, page: $page){\n ...UserEventFragment\n }\n }\n ", "\n"], ["\n query UserEventsWithContent($filter: UserEventFilterVOInput, $page: PageInput){\n data: userEvents(filter: $filter, page: $page){\n ...UserEventFragment\n }\n }\n ", "\n"])), SocialFragments.userEvent);
28806
28768
  var UserEventService = /** @class */ (function (_super) {
28807
28769
  __extends(UserEventService, _super);
28808
28770
  function UserEventService(graphql, accountService, network, translate, toastController, environment) {
@@ -29123,7 +29085,7 @@
29123
29085
  };
29124
29086
  return UserEventService;
29125
29087
  }(BaseGraphqlService));
29126
- UserEventService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function UserEventService_Factory() { return new UserEventService(i0__namespace.ɵɵinject(GraphqlService), i0__namespace.ɵɵinject(AccountService), i0__namespace.ɵɵinject(NetworkService), i0__namespace.ɵɵinject(i1__namespace$1.TranslateService), i0__namespace.ɵɵinject(i1__namespace$4.ToastController), i0__namespace.ɵɵinject(ENVIRONMENT)); }, token: UserEventService, providedIn: "root" });
29088
+ UserEventService.ɵprov = i0.ɵɵdefineInjectable({ factory: function UserEventService_Factory() { return new UserEventService(i0.ɵɵinject(GraphqlService), i0.ɵɵinject(AccountService), i0.ɵɵinject(NetworkService), i0.ɵɵinject(i1$2.TranslateService), i0.ɵɵinject(i1$5.ToastController), i0.ɵɵinject(ENVIRONMENT)); }, token: UserEventService, providedIn: "root" });
29127
29089
  UserEventService.decorators = [
29128
29090
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
29129
29091
  ];
@@ -29135,7 +29097,7 @@
29135
29097
  { type: i1$5.ToastController },
29136
29098
  { type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] }
29137
29099
  ]; };
29138
- var templateObject_1$1, templateObject_2$1, templateObject_3$1, templateObject_4$1;
29100
+ var templateObject_1$3, templateObject_2$3, templateObject_3$2, templateObject_4$2;
29139
29101
 
29140
29102
  var ICONS_MAP = {
29141
29103
  DEBUG_DATA: { matIcon: 'bug_report' },
@@ -29397,16 +29359,16 @@
29397
29359
  ], exports.PersonFilter);
29398
29360
 
29399
29361
  var PersonFragments = {
29400
- person: core.gql(templateObject_1 || (templateObject_1 = __makeTemplateObject(["fragment PersonFragment on PersonVO {\n id\n firstName\n lastName\n email\n pubkey\n avatar\n statusId\n updateDate\n creationDate\n profiles\n username\n usernameExtranet\n department {\n id\n label\n name\n logo\n __typename\n }\n __typename\n }"], ["fragment PersonFragment on PersonVO {\n id\n firstName\n lastName\n email\n pubkey\n avatar\n statusId\n updateDate\n creationDate\n profiles\n username\n usernameExtranet\n department {\n id\n label\n name\n logo\n __typename\n }\n __typename\n }"])))
29362
+ person: core.gql(templateObject_1$4 || (templateObject_1$4 = __makeTemplateObject(["fragment PersonFragment on PersonVO {\n id\n firstName\n lastName\n email\n pubkey\n avatar\n statusId\n updateDate\n creationDate\n profiles\n username\n usernameExtranet\n department {\n id\n label\n name\n logo\n __typename\n }\n __typename\n }"], ["fragment PersonFragment on PersonVO {\n id\n firstName\n lastName\n email\n pubkey\n avatar\n statusId\n updateDate\n creationDate\n profiles\n username\n usernameExtranet\n department {\n id\n label\n name\n logo\n __typename\n }\n __typename\n }"])))
29401
29363
  };
29402
29364
  // Load persons query
29403
29365
  var PersonQueries = {
29404
- loadAll: core.gql(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n query Persons($offset: Int, $size: Int, $sortBy: String, $sortDirection: String, $filter: PersonFilterVOInput){\n data: persons(filter: $filter, offset: $offset, size: $size, sortBy: $sortBy, sortDirection: $sortDirection){\n ...PersonFragment\n }\n }\n ", ""], ["\n query Persons($offset: Int, $size: Int, $sortBy: String, $sortDirection: String, $filter: PersonFilterVOInput){\n data: persons(filter: $filter, offset: $offset, size: $size, sortBy: $sortBy, sortDirection: $sortDirection){\n ...PersonFragment\n }\n }\n ", ""])), PersonFragments.person),
29405
- loadAllWithTotal: core.gql(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n query PersonsWithTotal($offset: Int, $size: Int, $sortBy: String, $sortDirection: String, $filter: PersonFilterVOInput){\n data: persons(filter: $filter, offset: $offset, size: $size, sortBy: $sortBy, sortDirection: $sortDirection){\n ...PersonFragment\n }\n total: personsCount(filter: $filter)\n }\n ", ""], ["\n query PersonsWithTotal($offset: Int, $size: Int, $sortBy: String, $sortDirection: String, $filter: PersonFilterVOInput){\n data: persons(filter: $filter, offset: $offset, size: $size, sortBy: $sortBy, sortDirection: $sortDirection){\n ...PersonFragment\n }\n total: personsCount(filter: $filter)\n }\n ", ""])), PersonFragments.person)
29366
+ loadAll: core.gql(templateObject_2$4 || (templateObject_2$4 = __makeTemplateObject(["\n query Persons($offset: Int, $size: Int, $sortBy: String, $sortDirection: String, $filter: PersonFilterVOInput){\n data: persons(filter: $filter, offset: $offset, size: $size, sortBy: $sortBy, sortDirection: $sortDirection){\n ...PersonFragment\n }\n }\n ", ""], ["\n query Persons($offset: Int, $size: Int, $sortBy: String, $sortDirection: String, $filter: PersonFilterVOInput){\n data: persons(filter: $filter, offset: $offset, size: $size, sortBy: $sortBy, sortDirection: $sortDirection){\n ...PersonFragment\n }\n }\n ", ""])), PersonFragments.person),
29367
+ loadAllWithTotal: core.gql(templateObject_3$3 || (templateObject_3$3 = __makeTemplateObject(["\n query PersonsWithTotal($offset: Int, $size: Int, $sortBy: String, $sortDirection: String, $filter: PersonFilterVOInput){\n data: persons(filter: $filter, offset: $offset, size: $size, sortBy: $sortBy, sortDirection: $sortDirection){\n ...PersonFragment\n }\n total: personsCount(filter: $filter)\n }\n ", ""], ["\n query PersonsWithTotal($offset: Int, $size: Int, $sortBy: String, $sortDirection: String, $filter: PersonFilterVOInput){\n data: persons(filter: $filter, offset: $offset, size: $size, sortBy: $sortBy, sortDirection: $sortDirection){\n ...PersonFragment\n }\n total: personsCount(filter: $filter)\n }\n ", ""])), PersonFragments.person)
29406
29368
  };
29407
29369
  var PersonMutations = {
29408
- saveAll: core.gql(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n mutation savePersons($data:[PersonVOInput]){\n data: savePersons(persons: $data){\n ...PersonFragment\n }\n }\n ", ""], ["\n mutation savePersons($data:[PersonVOInput]){\n data: savePersons(persons: $data){\n ...PersonFragment\n }\n }\n ", ""])), PersonFragments.person),
29409
- deleteAll: core.gql(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n mutation deletePersons($ids:[Int]){\n deletePersons(ids: $ids)\n }"], ["\n mutation deletePersons($ids:[Int]){\n deletePersons(ids: $ids)\n }"])))
29370
+ saveAll: core.gql(templateObject_4$3 || (templateObject_4$3 = __makeTemplateObject(["\n mutation savePersons($data:[PersonVOInput]){\n data: savePersons(persons: $data){\n ...PersonFragment\n }\n }\n ", ""], ["\n mutation savePersons($data:[PersonVOInput]){\n data: savePersons(persons: $data){\n ...PersonFragment\n }\n }\n ", ""])), PersonFragments.person),
29371
+ deleteAll: core.gql(templateObject_5$2 || (templateObject_5$2 = __makeTemplateObject(["\n mutation deletePersons($ids:[Int]){\n deletePersons(ids: $ids)\n }"], ["\n mutation deletePersons($ids:[Int]){\n deletePersons(ids: $ids)\n }"])))
29410
29372
  };
29411
29373
  var PersonService = /** @class */ (function (_super_1) {
29412
29374
  __extends(PersonService, _super_1);
@@ -29497,7 +29459,7 @@
29497
29459
  fetchPolicy: 'network-only',
29498
29460
  withTotal: (offset === 0),
29499
29461
  toEntity: false
29500
- }); }, { progression: opts === null || opts === void 0 ? void 0 : opts.progression, maxProgression: maxProgression * 0.9 })];
29462
+ }); }, Object.assign(Object.assign({}, opts), { maxProgression: maxProgression * 0.9 }))];
29501
29463
  case 1:
29502
29464
  res = _a.sent();
29503
29465
  // Save result locally
@@ -29527,7 +29489,7 @@
29527
29489
  };
29528
29490
  return PersonService;
29529
29491
  }(BaseEntityService));
29530
- PersonService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function PersonService_Factory() { return new PersonService(i0__namespace.ɵɵinject(GraphqlService), i0__namespace.ɵɵinject(PlatformService), i0__namespace.ɵɵinject(NetworkService), i0__namespace.ɵɵinject(EntitiesStorage)); }, token: PersonService, providedIn: "root" });
29492
+ PersonService.ɵprov = i0.ɵɵdefineInjectable({ factory: function PersonService_Factory() { return new PersonService(i0.ɵɵinject(GraphqlService), i0.ɵɵinject(PlatformService), i0.ɵɵinject(NetworkService), i0.ɵɵinject(EntitiesStorage)); }, token: PersonService, providedIn: "root" });
29531
29493
  PersonService.decorators = [
29532
29494
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
29533
29495
  ];
@@ -29537,7 +29499,7 @@
29537
29499
  { type: NetworkService },
29538
29500
  { type: EntitiesStorage }
29539
29501
  ]; };
29540
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
29502
+ var templateObject_1$4, templateObject_2$4, templateObject_3$3, templateObject_4$3, templateObject_5$2;
29541
29503
 
29542
29504
  var PersonValidatorService = /** @class */ (function () {
29543
29505
  function PersonValidatorService(formBuilder, accountValidatorService) {
@@ -29560,7 +29522,7 @@
29560
29522
  };
29561
29523
  return PersonValidatorService;
29562
29524
  }());
29563
- PersonValidatorService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function PersonValidatorService_Factory() { return new PersonValidatorService(i0__namespace.ɵɵinject(i1__namespace$6.FormBuilder), i0__namespace.ɵɵinject(AccountValidatorService)); }, token: PersonValidatorService, providedIn: "root" });
29525
+ PersonValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function PersonValidatorService_Factory() { return new PersonValidatorService(i0.ɵɵinject(i1.FormBuilder), i0.ɵɵinject(AccountValidatorService)); }, token: PersonValidatorService, providedIn: "root" });
29564
29526
  PersonValidatorService.decorators = [
29565
29527
  { type: i0.Injectable, args: [{ providedIn: 'root' },] }
29566
29528
  ];
@@ -29771,16 +29733,16 @@
29771
29733
  ];
29772
29734
  AdminModule.ctorParameters = function () { return []; };
29773
29735
 
29774
- var ɵ0 = {
29736
+ var ɵ0$c = {
29775
29737
  profile: 'ADMIN'
29776
29738
  };
29777
- var routes$5 = [
29739
+ var routes = [
29778
29740
  {
29779
29741
  path: 'users',
29780
29742
  pathMatch: 'full',
29781
29743
  component: UsersPage,
29782
29744
  canActivate: [AuthGuardService],
29783
- data: ɵ0
29745
+ data: ɵ0$c
29784
29746
  }
29785
29747
  ];
29786
29748
  var AdminRoutingModule = /** @class */ (function () {
@@ -29793,36 +29755,36 @@
29793
29755
  imports: [
29794
29756
  SharedRoutingModule,
29795
29757
  AdminModule,
29796
- i3.RouterModule.forChild(routes$5)
29758
+ i3.RouterModule.forChild(routes)
29797
29759
  ],
29798
29760
  exports: [i3.RouterModule]
29799
29761
  },] }
29800
29762
  ];
29801
29763
 
29802
- var ErrorCodes = {
29764
+ var ErrorCodes$2 = {
29803
29765
  LOAD_PERSONS_ERROR: 100,
29804
29766
  SAVE_PERSONS_ERROR: 101,
29805
29767
  DELETE_PERSONS_ERROR: 102,
29806
29768
  };
29807
29769
 
29808
- var EntityTestClass$1 = /** @class */ (function () {
29770
+ var EntityTestClass = /** @class */ (function () {
29809
29771
  function EntityTestClass() {
29810
29772
  }
29811
29773
  return EntityTestClass;
29812
29774
  }());
29813
- var FAKE_ENTITIES$1 = [
29775
+ var FAKE_ENTITIES = [
29814
29776
  { id: 1, label: 'AAA', name: 'Item A', description: 'Very long description A', comments: 'Very very long comments... again for A' },
29815
29777
  { id: 2, label: 'BBB', name: 'Item B', description: 'Very long description B', comments: 'Very very long comments... again for B' },
29816
29778
  { id: 3, label: 'CCC', name: 'Item C', description: 'Very long description C', comments: 'Very very long comments... again for C' }
29817
29779
  ];
29818
- function deepCopy$1(values, size) {
29780
+ function deepCopy(values, size) {
29819
29781
  if (isNil(size)) {
29820
- return (values || FAKE_ENTITIES$1).map(function (entity) { return Object.assign({}, entity); });
29782
+ return (values || FAKE_ENTITIES).map(function (entity) { return Object.assign({}, entity); });
29821
29783
  }
29822
29784
  var result = [];
29823
29785
  var i = 1;
29824
29786
  while (result.length < size) {
29825
- result = result.concat((values || FAKE_ENTITIES$1).map(function (entity) {
29787
+ result = result.concat((values || FAKE_ENTITIES).map(function (entity) {
29826
29788
  var name = entity.name + ' #' + i;
29827
29789
  return Object.assign(Object.assign({}, entity), { id: i++, name: name });
29828
29790
  }));
@@ -29832,7 +29794,7 @@
29832
29794
  var AutocompleteTestPage = /** @class */ (function () {
29833
29795
  function AutocompleteTestPage(formBuilder) {
29834
29796
  this.formBuilder = formBuilder;
29835
- this._items = deepCopy$1(FAKE_ENTITIES$1, 100);
29797
+ this._items = deepCopy(FAKE_ENTITIES, 100);
29836
29798
  this._$items = new rxjs.BehaviorSubject(undefined);
29837
29799
  this.autocompleteFields = new MatAutocompleteConfigHolder();
29838
29800
  this.memoryHide = false;
@@ -29877,7 +29839,7 @@
29877
29839
  });
29878
29840
  // From items
29879
29841
  this.autocompleteFields.add('entity-items-large', {
29880
- items: FAKE_ENTITIES$1.slice(),
29842
+ items: FAKE_ENTITIES.slice(),
29881
29843
  attributes: ['label', 'name', 'description', 'comments'],
29882
29844
  displayWith: this.entityToString
29883
29845
  });
@@ -29890,12 +29852,12 @@
29890
29852
  var _this = this;
29891
29853
  return __generator(this, function (_a) {
29892
29854
  data = {
29893
- entity: deepCopy$1(FAKE_ENTITIES$1)[0],
29855
+ entity: deepCopy(FAKE_ENTITIES)[0],
29894
29856
  // This item is NOT in the items list => i should be displayed anyway
29895
29857
  missingEntity: {
29896
29858
  id: -1, label: '??', name: 'Missing item'
29897
29859
  },
29898
- disableEntity: deepCopy$1(FAKE_ENTITIES$1)[2]
29860
+ disableEntity: deepCopy(FAKE_ENTITIES)[2]
29899
29861
  };
29900
29862
  this.form.setValue(data);
29901
29863
  // Load observables
@@ -30060,13 +30022,13 @@
30060
30022
  { type: i1.FormBuilder }
30061
30023
  ]; };
30062
30024
 
30063
- var moment$2 = momentImported__namespace;
30025
+ var moment$5 = momentImported__namespace;
30064
30026
  var SwipeTestPage = /** @class */ (function () {
30065
30027
  function SwipeTestPage(formBuilder, dateFormatPipe) {
30066
30028
  this.formBuilder = formBuilder;
30067
30029
  this.dateFormatPipe = dateFormatPipe;
30068
30030
  this.$dates = new rxjs.BehaviorSubject(undefined);
30069
- this._today = moment$2().startOf('day');
30031
+ this._today = moment$5().startOf('day');
30070
30032
  this.form = formBuilder.group({
30071
30033
  empty: [null, i1.Validators.required],
30072
30034
  date: [null, i1.Validators.compose([i1.Validators.required, SharedValidators.validDate])],
@@ -30080,7 +30042,7 @@
30080
30042
  var _this = this;
30081
30043
  var dates = [];
30082
30044
  for (var d = 0; d < 7; d++) {
30083
- dates[d] = moment$2(this._today).add(d - 3, 'day');
30045
+ dates[d] = moment$5(this._today).add(d - 3, 'day');
30084
30046
  }
30085
30047
  this.$dates.next(dates);
30086
30048
  this.loadData();
@@ -30127,7 +30089,7 @@
30127
30089
  { type: DateFormatPipe }
30128
30090
  ]; };
30129
30091
 
30130
- var moment$1 = momentImported__namespace;
30092
+ var moment$6 = momentImported__namespace;
30131
30093
  var DateTimeTestPage = /** @class */ (function () {
30132
30094
  function DateTimeTestPage(platform, formBuilder, cd) {
30133
30095
  this.platform = platform;
@@ -30163,7 +30125,7 @@
30163
30125
  var now, data;
30164
30126
  var _this = this;
30165
30127
  return __generator(this, function (_a) {
30166
- now = moment$1();
30128
+ now = moment$6();
30167
30129
  data = {
30168
30130
  empty: toDateISOString(now.clone().add(2, 'hours')),
30169
30131
  enable: toDateISOString(now),
@@ -30228,12 +30190,12 @@
30228
30190
  { type: i0.ChangeDetectorRef }
30229
30191
  ]; };
30230
30192
 
30231
- var EntityTestClass = /** @class */ (function () {
30193
+ var EntityTestClass$1 = /** @class */ (function () {
30232
30194
  function EntityTestClass() {
30233
30195
  }
30234
30196
  return EntityTestClass;
30235
30197
  }());
30236
- var FAKE_ENTITIES = [
30198
+ var FAKE_ENTITIES$1 = [
30237
30199
  { id: 1, label: 'AAA', name: 'Item A' },
30238
30200
  { id: 2, label: 'BBB', name: 'Item B' },
30239
30201
  { id: 3, label: 'CCC', name: 'Item C' },
@@ -30242,14 +30204,14 @@
30242
30204
  { id: 6, label: 'FFF', name: 'Item F' },
30243
30205
  { id: 7, label: 'GGG', name: 'Item G' }
30244
30206
  ];
30245
- function deepCopy(values, size) {
30207
+ function deepCopy$1(values, size) {
30246
30208
  if (isNil(size)) {
30247
- return (values || FAKE_ENTITIES).map(function (entity) { return Object.assign({}, entity); });
30209
+ return (values || FAKE_ENTITIES$1).map(function (entity) { return Object.assign({}, entity); });
30248
30210
  }
30249
30211
  var result = [];
30250
30212
  var i = 1;
30251
30213
  while (result.length < size) {
30252
- result = result.concat((values || FAKE_ENTITIES).map(function (entity) {
30214
+ result = result.concat((values || FAKE_ENTITIES$1).map(function (entity) {
30253
30215
  var name = entity.name + ' #' + i;
30254
30216
  return Object.assign(Object.assign({}, entity), { id: i++, name: name });
30255
30217
  }));
@@ -30259,7 +30221,7 @@
30259
30221
  var ChipsTestPage = /** @class */ (function () {
30260
30222
  function ChipsTestPage(formBuilder) {
30261
30223
  this.formBuilder = formBuilder;
30262
- this._items = deepCopy(FAKE_ENTITIES, 100);
30224
+ this._items = deepCopy$1(FAKE_ENTITIES$1, 100);
30263
30225
  this._$items = new rxjs.BehaviorSubject(undefined);
30264
30226
  this.autocompleteFields = new MatAutocompleteConfigHolder();
30265
30227
  this.form = formBuilder.group({
@@ -30302,7 +30264,7 @@
30302
30264
  var items, data;
30303
30265
  var _this = this;
30304
30266
  return __generator(this, function (_a) {
30305
- items = deepCopy(FAKE_ENTITIES);
30267
+ items = deepCopy$1(FAKE_ENTITIES$1);
30306
30268
  data = {
30307
30269
  entity: items.slice(0, 1),
30308
30270
  entityInitial: items.slice(1, 2),
@@ -30439,7 +30401,7 @@
30439
30401
  { type: i1.FormBuilder }
30440
30402
  ]; };
30441
30403
 
30442
- var moment = momentImported__namespace;
30404
+ var moment$7 = momentImported__namespace;
30443
30405
  var DateTestPage = /** @class */ (function () {
30444
30406
  function DateTestPage(platform, formBuilder, cd) {
30445
30407
  this.platform = platform;
@@ -30477,7 +30439,7 @@
30477
30439
  var now, nowAtMahe, data;
30478
30440
  var _this = this;
30479
30441
  return __generator(this, function (_a) {
30480
- now = moment();
30442
+ now = moment$7();
30481
30443
  nowAtMahe = now.clone().tz(this.timezone).startOf('day');
30482
30444
  data = {
30483
30445
  empty: toDateISOString(now.clone().add(2, 'hours')),
@@ -30559,7 +30521,7 @@
30559
30521
  { label: 'Shared directives', divider: true },
30560
30522
  { label: 'Badge icon directive', page: '/testing/shared/badge-icon' }
30561
30523
  ];
30562
- var routes$4 = [
30524
+ var routes$1 = [
30563
30525
  {
30564
30526
  path: '',
30565
30527
  pathMatch: 'full',
@@ -30619,7 +30581,7 @@
30619
30581
  i1.ReactiveFormsModule,
30620
30582
  SharedMaterialModule,
30621
30583
  i1$2.TranslateModule.forChild(),
30622
- i3.RouterModule.forChild(routes$4)
30584
+ i3.RouterModule.forChild(routes$1)
30623
30585
  ],
30624
30586
  declarations: [
30625
30587
  DateTimeTestPage,
@@ -30681,7 +30643,7 @@
30681
30643
  { type: i1$2.TranslateService }
30682
30644
  ]; };
30683
30645
 
30684
- var routes$3 = [
30646
+ var routes$2 = [
30685
30647
  {
30686
30648
  path: 'toast',
30687
30649
  pathMatch: 'full',
@@ -30699,7 +30661,7 @@
30699
30661
  i1$4.CommonModule,
30700
30662
  i1$5.IonicModule,
30701
30663
  i1$2.TranslateModule.forChild(),
30702
- i3.RouterModule.forChild(routes$3)
30664
+ i3.RouterModule.forChild(routes$2)
30703
30665
  ],
30704
30666
  declarations: [
30705
30667
  ToastTestingPage
@@ -30779,7 +30741,7 @@
30779
30741
  { type: i1$5.PopoverController }
30780
30742
  ]; };
30781
30743
 
30782
- var routes$2 = [
30744
+ var routes$3 = [
30783
30745
  {
30784
30746
  path: 'upload-file',
30785
30747
  pathMatch: 'full',
@@ -30797,7 +30759,7 @@
30797
30759
  i1$4.CommonModule,
30798
30760
  i1$5.IonicModule,
30799
30761
  i1$2.TranslateModule.forChild(),
30800
- i3.RouterModule.forChild(routes$2)
30762
+ i3.RouterModule.forChild(routes$3)
30801
30763
  ],
30802
30764
  declarations: [
30803
30765
  UploadFileTestingPage
@@ -31221,7 +31183,7 @@
31221
31183
  { type: i1$5.PopoverController }
31222
31184
  ]; };
31223
31185
 
31224
- var routes$1 = [
31186
+ var routes$4 = [
31225
31187
  {
31226
31188
  path: 'text-popover',
31227
31189
  pathMatch: 'full',
@@ -31239,7 +31201,7 @@
31239
31201
  i1$4.CommonModule,
31240
31202
  i1$5.IonicModule,
31241
31203
  i1$2.TranslateModule.forChild(),
31242
- i3.RouterModule.forChild(routes$1)
31204
+ i3.RouterModule.forChild(routes$4)
31243
31205
  ],
31244
31206
  declarations: [
31245
31207
  TextPopoverTestingPage
@@ -31256,7 +31218,7 @@
31256
31218
  { label: 'Table', page: '/testing/core/table' },
31257
31219
  { label: 'Text popover', page: '/testing/core/text-popover' }
31258
31220
  ];
31259
- var routes = [
31221
+ var routes$5 = [
31260
31222
  {
31261
31223
  path: '',
31262
31224
  pathMatch: 'full',
@@ -31283,7 +31245,7 @@
31283
31245
  imports: [
31284
31246
  i1$4.CommonModule,
31285
31247
  i1$2.TranslateModule.forChild(),
31286
- i3.RouterModule.forChild(routes),
31248
+ i3.RouterModule.forChild(routes$5),
31287
31249
  // Sub modules
31288
31250
  TableTestingModule,
31289
31251
  TextPopoverTestingModule
@@ -31406,7 +31368,7 @@
31406
31368
  exports.EntityStore = EntityStore;
31407
31369
  exports.EntityUtils = EntityUtils;
31408
31370
  exports.Environment = Environment;
31409
- exports.ErrorCodes = ErrorCodes;
31371
+ exports.ErrorCodes = ErrorCodes$2;
31410
31372
  exports.EvenPipe = EvenPipe;
31411
31373
  exports.FileResponse = FileResponse;
31412
31374
  exports.FileService = FileService;
@@ -31422,7 +31384,7 @@
31422
31384
  exports.FormGetControlPipe = FormGetControlPipe;
31423
31385
  exports.FormGetGroupPipe = FormGetGroupPipe;
31424
31386
  exports.FormGetPipe = FormGetPipe;
31425
- exports.Fragments = Fragments;
31387
+ exports.Fragments = Fragments$1;
31426
31388
  exports.GraphqlService = GraphqlService;
31427
31389
  exports.HAMMER_PRESS_TIME = HAMMER_PRESS_TIME;
31428
31390
  exports.HAMMER_TAP_TIME = HAMMER_TAP_TIME;
@@ -31703,23 +31665,23 @@
31703
31665
  exports.waitForTrue = waitForTrue;
31704
31666
  exports.waitIdle = waitIdle;
31705
31667
  exports.waitWhilePending = waitWhilePending;
31706
- exports["ɵ0"] = ɵ0$b;
31707
- exports["ɵa"] = CustomReuseStrategy;
31708
- exports["ɵb"] = MatNumpadDomService;
31709
- exports["ɵc"] = isFocusableElement;
31710
- exports["ɵd"] = RegisterForm;
31711
- exports["ɵe"] = AccountValidatorService;
31712
- exports["ɵf"] = RegisterModal;
31713
- exports["ɵg"] = UserSettingsValidatorService;
31714
- exports["ɵh"] = LocalSettingsValidatorService;
31715
- exports["ɵi"] = AppIconComponent;
31716
- exports["ɵj"] = DateTestPage;
31717
- exports["ɵk"] = NumpadTestPage;
31718
- exports["ɵl"] = MatBadgeIconTestPage;
31719
- exports["ɵm"] = ToastTestingModule;
31720
- exports["ɵn"] = ToastTestingPage;
31668
+ exports0 = ɵ0$1;
31669
+ exports.ɵa = CustomReuseStrategy;
31670
+ exports.ɵb = MatNumpadDomService;
31671
+ exports.ɵc = isFocusableElement;
31672
+ exports.ɵd = RegisterForm;
31673
+ exports.ɵe = AccountValidatorService;
31674
+ exports.ɵf = RegisterModal;
31675
+ exports.ɵg = UserSettingsValidatorService;
31676
+ exports.ɵh = LocalSettingsValidatorService;
31677
+ exports.ɵi = AppIconComponent;
31678
+ exports.ɵj = DateTestPage;
31679
+ exports.ɵk = NumpadTestPage;
31680
+ exports.ɵl = MatBadgeIconTestPage;
31681
+ exports.ɵm = ToastTestingModule;
31682
+ exports.ɵn = ToastTestingPage;
31721
31683
 
31722
31684
  Object.defineProperty(exports, '__esModule', { value: true });
31723
31685
 
31724
- }));
31686
+ })));
31725
31687
  //# sourceMappingURL=sumaris-net.ngx-components.umd.js.map