@angular/fire 7.1.0-canary.dd414b2 → 7.1.0-canary.f0b932a

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.
Files changed (148) hide show
  1. package/analytics/analytics.module.d.ts +10 -5
  2. package/analytics/public_api.d.ts +2 -0
  3. package/analytics/screen-tracking.service.d.ts +42 -0
  4. package/analytics/user-tracking.service.d.ts +13 -0
  5. package/app/app.module.d.ts +3 -3
  6. package/app-check/app-check.module.d.ts +3 -3
  7. package/auth/auth.module.d.ts +3 -3
  8. package/bundles/angular-fire-analytics.umd.js +563 -35
  9. package/bundles/angular-fire-analytics.umd.js.map +1 -1
  10. package/bundles/angular-fire-app-check.umd.js +336 -18
  11. package/bundles/angular-fire-app-check.umd.js.map +1 -1
  12. package/bundles/angular-fire-app.umd.js +323 -3
  13. package/bundles/angular-fire-app.umd.js.map +1 -1
  14. package/bundles/angular-fire-auth.umd.js +324 -9
  15. package/bundles/angular-fire-auth.umd.js.map +1 -1
  16. package/bundles/angular-fire-compat-analytics.umd.js +16 -112
  17. package/bundles/angular-fire-compat-analytics.umd.js.map +1 -1
  18. package/bundles/angular-fire-compat-auth.umd.js +1 -1
  19. package/bundles/angular-fire-compat-auth.umd.js.map +1 -1
  20. package/bundles/angular-fire-compat-database.umd.js +1 -1
  21. package/bundles/angular-fire-compat-database.umd.js.map +1 -1
  22. package/bundles/angular-fire-compat-firestore.umd.js +1 -1
  23. package/bundles/angular-fire-compat-firestore.umd.js.map +1 -1
  24. package/bundles/angular-fire-compat-functions.umd.js +1 -1
  25. package/bundles/angular-fire-compat-functions.umd.js.map +1 -1
  26. package/bundles/angular-fire-compat-messaging.umd.js +5 -5
  27. package/bundles/angular-fire-compat-messaging.umd.js.map +1 -1
  28. package/bundles/angular-fire-compat-performance.umd.js +5 -5
  29. package/bundles/angular-fire-compat-performance.umd.js.map +1 -1
  30. package/bundles/angular-fire-compat-remote-config.umd.js +5 -5
  31. package/bundles/angular-fire-compat-remote-config.umd.js.map +1 -1
  32. package/bundles/angular-fire-compat-storage.umd.js +1 -1
  33. package/bundles/angular-fire-compat-storage.umd.js.map +1 -1
  34. package/bundles/angular-fire-compat.umd.js +38 -2
  35. package/bundles/angular-fire-compat.umd.js.map +1 -1
  36. package/bundles/angular-fire-database.umd.js +323 -6
  37. package/bundles/angular-fire-database.umd.js.map +1 -1
  38. package/bundles/angular-fire-firestore-lite.umd.js +4 -3
  39. package/bundles/angular-fire-firestore-lite.umd.js.map +1 -1
  40. package/bundles/angular-fire-firestore.umd.js +323 -8
  41. package/bundles/angular-fire-firestore.umd.js.map +1 -1
  42. package/bundles/angular-fire-functions.umd.js +323 -6
  43. package/bundles/angular-fire-functions.umd.js.map +1 -1
  44. package/bundles/angular-fire-messaging.umd.js +330 -9
  45. package/bundles/angular-fire-messaging.umd.js.map +1 -1
  46. package/bundles/angular-fire-performance.umd.js +339 -11
  47. package/bundles/angular-fire-performance.umd.js.map +1 -1
  48. package/bundles/angular-fire-remote-config.umd.js +353 -11
  49. package/bundles/angular-fire-remote-config.umd.js.map +1 -1
  50. package/bundles/angular-fire-storage.umd.js +324 -7
  51. package/bundles/angular-fire-storage.umd.js.map +1 -1
  52. package/bundles/angular-fire.umd.js +2 -371
  53. package/bundles/angular-fire.umd.js.map +1 -1
  54. package/compat/analytics/screen-tracking.service.d.ts +2 -2
  55. package/compat/cache.d.ts +1 -0
  56. package/compat/public_api.d.ts +1 -0
  57. package/core.d.ts +1 -3
  58. package/database/database.module.d.ts +3 -3
  59. package/docs/version-7-upgrade.md +1 -1
  60. package/esm2015/analytics/analytics.module.js +41 -20
  61. package/esm2015/analytics/public_api.js +3 -1
  62. package/esm2015/analytics/screen-tracking.service.js +147 -0
  63. package/esm2015/analytics/user-tracking.service.js +42 -0
  64. package/esm2015/app/app.module.js +12 -7
  65. package/esm2015/app-check/app-check.js +1 -2
  66. package/esm2015/app-check/app-check.module.js +19 -14
  67. package/esm2015/auth/auth.js +1 -2
  68. package/esm2015/auth/auth.module.js +10 -9
  69. package/esm2015/compat/analytics/analytics.js +2 -3
  70. package/esm2015/compat/analytics/screen-tracking.service.js +11 -100
  71. package/esm2015/compat/auth/auth.js +2 -3
  72. package/esm2015/compat/cache.js +32 -0
  73. package/esm2015/compat/database/database.js +2 -3
  74. package/esm2015/compat/firestore/firestore.js +2 -3
  75. package/esm2015/compat/functions/functions.js +2 -3
  76. package/esm2015/compat/messaging/messaging.js +3 -3
  77. package/esm2015/compat/performance/performance.js +2 -3
  78. package/esm2015/compat/public_api.js +2 -1
  79. package/esm2015/compat/remote-config/remote-config.js +4 -5
  80. package/esm2015/compat/storage/storage.js +3 -3
  81. package/esm2015/core.js +4 -55
  82. package/esm2015/database/database.module.js +9 -7
  83. package/esm2015/firestore/firestore.module.js +9 -9
  84. package/esm2015/firestore/lite/lite.module.js +7 -6
  85. package/esm2015/functions/functions.module.js +9 -7
  86. package/esm2015/messaging/messaging.module.js +16 -10
  87. package/esm2015/performance/performance.module.js +22 -8
  88. package/esm2015/remote-config/firebase.js +3 -2
  89. package/esm2015/remote-config/remote-config.module.js +34 -8
  90. package/esm2015/storage/storage.module.js +10 -8
  91. package/fesm2015/angular-fire-analytics.js +219 -33
  92. package/fesm2015/angular-fire-analytics.js.map +1 -1
  93. package/fesm2015/angular-fire-app-check.js +18 -14
  94. package/fesm2015/angular-fire-app-check.js.map +1 -1
  95. package/fesm2015/angular-fire-app.js +11 -6
  96. package/fesm2015/angular-fire-app.js.map +1 -1
  97. package/fesm2015/angular-fire-auth.js +9 -9
  98. package/fesm2015/angular-fire-auth.js.map +1 -1
  99. package/fesm2015/angular-fire-compat-analytics.js +10 -98
  100. package/fesm2015/angular-fire-compat-analytics.js.map +1 -1
  101. package/fesm2015/angular-fire-compat-auth.js +2 -2
  102. package/fesm2015/angular-fire-compat-auth.js.map +1 -1
  103. package/fesm2015/angular-fire-compat-database.js +2 -2
  104. package/fesm2015/angular-fire-compat-database.js.map +1 -1
  105. package/fesm2015/angular-fire-compat-firestore.js +2 -2
  106. package/fesm2015/angular-fire-compat-firestore.js.map +1 -1
  107. package/fesm2015/angular-fire-compat-functions.js +2 -2
  108. package/fesm2015/angular-fire-compat-functions.js.map +1 -1
  109. package/fesm2015/angular-fire-compat-messaging.js +2 -2
  110. package/fesm2015/angular-fire-compat-messaging.js.map +1 -1
  111. package/fesm2015/angular-fire-compat-performance.js +2 -2
  112. package/fesm2015/angular-fire-compat-performance.js.map +1 -1
  113. package/fesm2015/angular-fire-compat-remote-config.js +4 -4
  114. package/fesm2015/angular-fire-compat-remote-config.js.map +1 -1
  115. package/fesm2015/angular-fire-compat-storage.js +2 -2
  116. package/fesm2015/angular-fire-compat-storage.js.map +1 -1
  117. package/fesm2015/angular-fire-compat.js +34 -3
  118. package/fesm2015/angular-fire-compat.js.map +1 -1
  119. package/fesm2015/angular-fire-database.js +8 -6
  120. package/fesm2015/angular-fire-database.js.map +1 -1
  121. package/fesm2015/angular-fire-firestore-lite.js +6 -5
  122. package/fesm2015/angular-fire-firestore-lite.js.map +1 -1
  123. package/fesm2015/angular-fire-firestore.js +8 -8
  124. package/fesm2015/angular-fire-firestore.js.map +1 -1
  125. package/fesm2015/angular-fire-functions.js +8 -6
  126. package/fesm2015/angular-fire-functions.js.map +1 -1
  127. package/fesm2015/angular-fire-messaging.js +15 -9
  128. package/fesm2015/angular-fire-messaging.js.map +1 -1
  129. package/fesm2015/angular-fire-performance.js +21 -7
  130. package/fesm2015/angular-fire-performance.js.map +1 -1
  131. package/fesm2015/angular-fire-remote-config.js +36 -10
  132. package/fesm2015/angular-fire-remote-config.js.map +1 -1
  133. package/fesm2015/angular-fire-storage.js +9 -7
  134. package/fesm2015/angular-fire-storage.js.map +1 -1
  135. package/fesm2015/angular-fire.js +4 -55
  136. package/fesm2015/angular-fire.js.map +1 -1
  137. package/firestore/firestore.module.d.ts +3 -3
  138. package/firestore/lite/lite.module.d.ts +2 -2
  139. package/functions/functions.module.d.ts +3 -3
  140. package/messaging/messaging.module.d.ts +3 -3
  141. package/package.json +8 -2
  142. package/performance/performance.module.d.ts +4 -4
  143. package/remote-config/firebase.d.ts +2 -1
  144. package/remote-config/remote-config.module.d.ts +4 -4
  145. package/schematics/firebaseTools.js +2 -2
  146. package/schematics/utils.js +1 -1
  147. package/schematics/versions.json +1 -1
  148. package/storage/storage.module.d.ts +3 -3
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/fire'), require('rxjs'), require('rxjs/operators'), require('@angular/core'), require('firebase/analytics'), require('@angular/fire/app'), require('firebase/app')) :
3
- typeof define === 'function' && define.amd ? define('@angular/fire/analytics', ['exports', '@angular/fire', 'rxjs', 'rxjs/operators', '@angular/core', 'firebase/analytics', '@angular/fire/app', 'firebase/app'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.angular = global.angular || {}, global.angular.fire = global.angular.fire || {}, global.angular.fire.analytics = {}), global.angular.fire, global.rxjs, global.rxjs.operators, global.ng.core, global['firebase-analytics'], global.angular.fire.app, global.app$1));
5
- }(this, (function (exports, fire, rxjs, operators, i0, analytics, app, app$1) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/fire'), require('rxjs'), require('rxjs/operators'), require('@angular/core'), require('firebase/analytics'), require('@angular/fire/app'), require('firebase/app'), require('@angular/router'), require('@angular/platform-browser'), require('@angular/fire/auth')) :
3
+ typeof define === 'function' && define.amd ? define('@angular/fire/analytics', ['exports', '@angular/fire', 'rxjs', 'rxjs/operators', '@angular/core', 'firebase/analytics', '@angular/fire/app', 'firebase/app', '@angular/router', '@angular/platform-browser', '@angular/fire/auth'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.angular = global.angular || {}, global.angular.fire = global.angular.fire || {}, global.angular.fire.analytics = {}), global.angular.fire, global.rxjs, global.rxjs.operators, global.ng.core, global['firebase-analytics'], global.angular.fire.app, global.app, global.ng.router, global.ng.platformBrowser, global.angular.fire.auth));
5
+ }(this, (function (exports, fire, rxjs, operators, i0, analytics, i2, app, i1$1, i2$1, i1) { 'use strict';
6
6
 
7
7
  function _interopNamespace(e) {
8
8
  if (e && e.__esModule) return e;
@@ -25,6 +25,10 @@
25
25
  }
26
26
 
27
27
  var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
28
+ var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
29
+ var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
30
+ var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
31
+ var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
28
32
 
29
33
  var Analytics = /** @class */ (function () {
30
34
  function Analytics(analytics) {
@@ -41,18 +45,535 @@
41
45
  }());
42
46
  var analyticInstance$ = rxjs.timer(0, 300).pipe(operators.concatMap(function () { return rxjs.from(fire.ɵgetAllInstancesOf(ANALYTICS_PROVIDER_NAME)); }), operators.distinct());
43
47
 
48
+ /*! *****************************************************************************
49
+ Copyright (c) Microsoft Corporation.
50
+
51
+ Permission to use, copy, modify, and/or distribute this software for any
52
+ purpose with or without fee is hereby granted.
53
+
54
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
55
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
56
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
57
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
58
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
59
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
60
+ PERFORMANCE OF THIS SOFTWARE.
61
+ ***************************************************************************** */
62
+ /* global Reflect, Promise */
63
+ var extendStatics = function (d, b) {
64
+ extendStatics = Object.setPrototypeOf ||
65
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
66
+ function (d, b) { for (var p in b)
67
+ if (Object.prototype.hasOwnProperty.call(b, p))
68
+ d[p] = b[p]; };
69
+ return extendStatics(d, b);
70
+ };
71
+ function __extends(d, b) {
72
+ if (typeof b !== "function" && b !== null)
73
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
74
+ extendStatics(d, b);
75
+ function __() { this.constructor = d; }
76
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
77
+ }
78
+ var __assign = function () {
79
+ __assign = Object.assign || function __assign(t) {
80
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
81
+ s = arguments[i];
82
+ for (var p in s)
83
+ if (Object.prototype.hasOwnProperty.call(s, p))
84
+ t[p] = s[p];
85
+ }
86
+ return t;
87
+ };
88
+ return __assign.apply(this, arguments);
89
+ };
90
+ function __rest(s, e) {
91
+ var t = {};
92
+ for (var p in s)
93
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
94
+ t[p] = s[p];
95
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
96
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
97
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
98
+ t[p[i]] = s[p[i]];
99
+ }
100
+ return t;
101
+ }
102
+ function __decorate(decorators, target, key, desc) {
103
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
104
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
105
+ r = Reflect.decorate(decorators, target, key, desc);
106
+ else
107
+ for (var i = decorators.length - 1; i >= 0; i--)
108
+ if (d = decorators[i])
109
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
110
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
111
+ }
112
+ function __param(paramIndex, decorator) {
113
+ return function (target, key) { decorator(target, key, paramIndex); };
114
+ }
115
+ function __metadata(metadataKey, metadataValue) {
116
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
117
+ return Reflect.metadata(metadataKey, metadataValue);
118
+ }
119
+ function __awaiter(thisArg, _arguments, P, generator) {
120
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
121
+ return new (P || (P = Promise))(function (resolve, reject) {
122
+ function fulfilled(value) { try {
123
+ step(generator.next(value));
124
+ }
125
+ catch (e) {
126
+ reject(e);
127
+ } }
128
+ function rejected(value) { try {
129
+ step(generator["throw"](value));
130
+ }
131
+ catch (e) {
132
+ reject(e);
133
+ } }
134
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
135
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
136
+ });
137
+ }
138
+ function __generator(thisArg, body) {
139
+ var _ = { label: 0, sent: function () { if (t[0] & 1)
140
+ throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
141
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
142
+ function verb(n) { return function (v) { return step([n, v]); }; }
143
+ function step(op) {
144
+ if (f)
145
+ throw new TypeError("Generator is already executing.");
146
+ while (_)
147
+ try {
148
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
149
+ return t;
150
+ if (y = 0, t)
151
+ op = [op[0] & 2, t.value];
152
+ switch (op[0]) {
153
+ case 0:
154
+ case 1:
155
+ t = op;
156
+ break;
157
+ case 4:
158
+ _.label++;
159
+ return { value: op[1], done: false };
160
+ case 5:
161
+ _.label++;
162
+ y = op[1];
163
+ op = [0];
164
+ continue;
165
+ case 7:
166
+ op = _.ops.pop();
167
+ _.trys.pop();
168
+ continue;
169
+ default:
170
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
171
+ _ = 0;
172
+ continue;
173
+ }
174
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
175
+ _.label = op[1];
176
+ break;
177
+ }
178
+ if (op[0] === 6 && _.label < t[1]) {
179
+ _.label = t[1];
180
+ t = op;
181
+ break;
182
+ }
183
+ if (t && _.label < t[2]) {
184
+ _.label = t[2];
185
+ _.ops.push(op);
186
+ break;
187
+ }
188
+ if (t[2])
189
+ _.ops.pop();
190
+ _.trys.pop();
191
+ continue;
192
+ }
193
+ op = body.call(thisArg, _);
194
+ }
195
+ catch (e) {
196
+ op = [6, e];
197
+ y = 0;
198
+ }
199
+ finally {
200
+ f = t = 0;
201
+ }
202
+ if (op[0] & 5)
203
+ throw op[1];
204
+ return { value: op[0] ? op[1] : void 0, done: true };
205
+ }
206
+ }
207
+ var __createBinding = Object.create ? (function (o, m, k, k2) {
208
+ if (k2 === undefined)
209
+ k2 = k;
210
+ Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
211
+ }) : (function (o, m, k, k2) {
212
+ if (k2 === undefined)
213
+ k2 = k;
214
+ o[k2] = m[k];
215
+ });
216
+ function __exportStar(m, o) {
217
+ for (var p in m)
218
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
219
+ __createBinding(o, m, p);
220
+ }
221
+ function __values(o) {
222
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
223
+ if (m)
224
+ return m.call(o);
225
+ if (o && typeof o.length === "number")
226
+ return {
227
+ next: function () {
228
+ if (o && i >= o.length)
229
+ o = void 0;
230
+ return { value: o && o[i++], done: !o };
231
+ }
232
+ };
233
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
234
+ }
235
+ function __read(o, n) {
236
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
237
+ if (!m)
238
+ return o;
239
+ var i = m.call(o), r, ar = [], e;
240
+ try {
241
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
242
+ ar.push(r.value);
243
+ }
244
+ catch (error) {
245
+ e = { error: error };
246
+ }
247
+ finally {
248
+ try {
249
+ if (r && !r.done && (m = i["return"]))
250
+ m.call(i);
251
+ }
252
+ finally {
253
+ if (e)
254
+ throw e.error;
255
+ }
256
+ }
257
+ return ar;
258
+ }
259
+ /** @deprecated */
260
+ function __spread() {
261
+ for (var ar = [], i = 0; i < arguments.length; i++)
262
+ ar = ar.concat(__read(arguments[i]));
263
+ return ar;
264
+ }
265
+ /** @deprecated */
266
+ function __spreadArrays() {
267
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++)
268
+ s += arguments[i].length;
269
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
270
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
271
+ r[k] = a[j];
272
+ return r;
273
+ }
274
+ function __spreadArray(to, from) {
275
+ for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
276
+ to[j] = from[i];
277
+ return to;
278
+ }
279
+ function __await(v) {
280
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
281
+ }
282
+ function __asyncGenerator(thisArg, _arguments, generator) {
283
+ if (!Symbol.asyncIterator)
284
+ throw new TypeError("Symbol.asyncIterator is not defined.");
285
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
286
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
287
+ function verb(n) { if (g[n])
288
+ i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
289
+ function resume(n, v) { try {
290
+ step(g[n](v));
291
+ }
292
+ catch (e) {
293
+ settle(q[0][3], e);
294
+ } }
295
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
296
+ function fulfill(value) { resume("next", value); }
297
+ function reject(value) { resume("throw", value); }
298
+ function settle(f, v) { if (f(v), q.shift(), q.length)
299
+ resume(q[0][0], q[0][1]); }
300
+ }
301
+ function __asyncDelegator(o) {
302
+ var i, p;
303
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
304
+ function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
305
+ }
306
+ function __asyncValues(o) {
307
+ if (!Symbol.asyncIterator)
308
+ throw new TypeError("Symbol.asyncIterator is not defined.");
309
+ var m = o[Symbol.asyncIterator], i;
310
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
311
+ function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
312
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
313
+ }
314
+ function __makeTemplateObject(cooked, raw) {
315
+ if (Object.defineProperty) {
316
+ Object.defineProperty(cooked, "raw", { value: raw });
317
+ }
318
+ else {
319
+ cooked.raw = raw;
320
+ }
321
+ return cooked;
322
+ }
323
+ ;
324
+ var __setModuleDefault = Object.create ? (function (o, v) {
325
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
326
+ }) : function (o, v) {
327
+ o["default"] = v;
328
+ };
329
+ function __importStar(mod) {
330
+ if (mod && mod.__esModule)
331
+ return mod;
332
+ var result = {};
333
+ if (mod != null)
334
+ for (var k in mod)
335
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
336
+ __createBinding(result, mod, k);
337
+ __setModuleDefault(result, mod);
338
+ return result;
339
+ }
340
+ function __importDefault(mod) {
341
+ return (mod && mod.__esModule) ? mod : { default: mod };
342
+ }
343
+ function __classPrivateFieldGet(receiver, state, kind, f) {
344
+ if (kind === "a" && !f)
345
+ throw new TypeError("Private accessor was defined without a getter");
346
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
347
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
348
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
349
+ }
350
+ function __classPrivateFieldSet(receiver, state, value, kind, f) {
351
+ if (kind === "m")
352
+ throw new TypeError("Private method is not writable");
353
+ if (kind === "a" && !f)
354
+ throw new TypeError("Private accessor was defined without a setter");
355
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
356
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
357
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
358
+ }
359
+
360
+ // DO NOT MODIFY, this file is autogenerated by tools/build.ts
361
+ var getAnalytics = fire.ɵzoneWrap(analytics.getAnalytics, true);
362
+ var initializeAnalytics = fire.ɵzoneWrap(analytics.initializeAnalytics, true);
363
+ var isSupported = fire.ɵzoneWrap(analytics.isSupported, true);
364
+ var logEvent = fire.ɵzoneWrap(analytics.logEvent, true);
365
+ var setAnalyticsCollectionEnabled = fire.ɵzoneWrap(analytics.setAnalyticsCollectionEnabled, true);
366
+ var setCurrentScreen = fire.ɵzoneWrap(analytics.setCurrentScreen, true);
367
+ var settings = fire.ɵzoneWrap(analytics.settings, true);
368
+ var setUserId = fire.ɵzoneWrap(analytics.setUserId, true);
369
+ var setUserProperties = fire.ɵzoneWrap(analytics.setUserProperties, true);
370
+
371
+ var UserTrackingService = /** @class */ (function () {
372
+ function UserTrackingService(auth, zone, analyticsInstanceFactories, injector, firebaseApp) {
373
+ this.disposables = [];
374
+ app.registerVersion('angularfire', fire.VERSION.full, 'user-tracking');
375
+ // Analytics is not ready to be injected yet, as the APP_INITIALIZER hasn't evulated yet, do this the hard way
376
+ var analyticsInstance = globalThis[isSupportedPromiseSymbol].then(function (isSupported) {
377
+ var analyticsInstances = analyticsInstanceFactories.map(function (fn) { return analyticsInstanceFactory(fn)(zone, isSupported, injector); });
378
+ return defaultAnalyticsInstanceFactory(isSupported, analyticsInstances, firebaseApp);
379
+ });
380
+ var resolveInitialized;
381
+ this.initialized = zone.runOutsideAngular(function () { return new Promise(function (resolve) { resolveInitialized = resolve; }); });
382
+ this.disposables = [
383
+ // TODO add credential tracking back in
384
+ i1.authState(auth).subscribe(function (user) {
385
+ analyticsInstance.then(function (analytics) { return analytics && setUserId(analytics, user === null || user === void 0 ? void 0 : user.uid); });
386
+ resolveInitialized();
387
+ }),
388
+ ];
389
+ }
390
+ UserTrackingService.prototype.ngOnDestroy = function () {
391
+ this.disposables.forEach(function (it) { return it.unsubscribe(); });
392
+ };
393
+ return UserTrackingService;
394
+ }());
395
+ UserTrackingService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0__namespace, type: UserTrackingService, deps: [{ token: i1__namespace.Auth }, { token: i0__namespace.NgZone }, { token: PROVIDED_ANALYTICS_INSTANCE_FACTORIES }, { token: i0__namespace.Injector }, { token: i2__namespace.FirebaseApp }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
396
+ UserTrackingService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0__namespace, type: UserTrackingService });
397
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0__namespace, type: UserTrackingService, decorators: [{
398
+ type: i0.Injectable
399
+ }], ctorParameters: function () {
400
+ return [{ type: i1__namespace.Auth }, { type: i0__namespace.NgZone }, { type: Array, decorators: [{
401
+ type: i0.Inject,
402
+ args: [PROVIDED_ANALYTICS_INSTANCE_FACTORIES]
403
+ }] }, { type: i0__namespace.Injector }, { type: i2__namespace.FirebaseApp }];
404
+ } });
405
+
406
+ var FIREBASE_EVENT_ORIGIN_KEY = 'firebase_event_origin';
407
+ var FIREBASE_PREVIOUS_SCREEN_CLASS_KEY = 'firebase_previous_class';
408
+ var FIREBASE_PREVIOUS_SCREEN_INSTANCE_ID_KEY = 'firebase_previous_id';
409
+ var FIREBASE_PREVIOUS_SCREEN_NAME_KEY = 'firebase_previous_screen';
410
+ var FIREBASE_SCREEN_CLASS_KEY = 'firebase_screen_class';
411
+ var FIREBASE_SCREEN_INSTANCE_ID_KEY = 'firebase_screen_id';
412
+ var FIREBASE_SCREEN_NAME_KEY = 'firebase_screen';
413
+ var OUTLET_KEY = 'outlet';
414
+ var PAGE_PATH_KEY = 'page_path';
415
+ var PAGE_TITLE_KEY = 'page_title';
416
+ var SCREEN_CLASS_KEY = 'screen_class';
417
+ var SCREEN_NAME_KEY = 'screen_name';
418
+ var SCREEN_VIEW_EVENT = 'screen_view';
419
+ var EVENT_ORIGIN_AUTO = 'auto';
420
+ var SCREEN_INSTANCE_DELIMITER = '#';
421
+ // this is an INT64 in iOS/Android but use INT32 cause javascript
422
+ var nextScreenInstanceID = Math.floor(Math.random() * (Math.pow(2, 32) - 1)) - Math.pow(2, 31);
423
+ var knownScreenInstanceIDs = {};
424
+ var getScreenInstanceID = function (params) {
425
+ // unique the screen class against the outlet name
426
+ var screenInstanceKey = [
427
+ params[SCREEN_CLASS_KEY],
428
+ params[OUTLET_KEY]
429
+ ].join(SCREEN_INSTANCE_DELIMITER);
430
+ if (knownScreenInstanceIDs.hasOwnProperty(screenInstanceKey)) {
431
+ return knownScreenInstanceIDs[screenInstanceKey];
432
+ }
433
+ else {
434
+ var ret = nextScreenInstanceID++;
435
+ knownScreenInstanceIDs[screenInstanceKey] = ret;
436
+ return ret;
437
+ }
438
+ };
439
+ var ɵscreenViewEvent = function (router, title, componentFactoryResolver) {
440
+ var activationEndEvents = router.events.pipe(operators.filter(function (e) { return e instanceof i1$1.ActivationEnd; }));
441
+ return activationEndEvents.pipe(operators.switchMap(function (activationEnd) {
442
+ var _b, _c, _d;
443
+ var _a;
444
+ // router parseUrl is having trouble with outlets when they're empty
445
+ // e.g, /asdf/1(bob://sally:asdf), so put another slash in when empty
446
+ var urlTree = router.parseUrl(router.url.replace(/(?:\().+(?:\))/g, function (a) { return a.replace('://', ':///'); }));
447
+ var pagePath = ((_a = urlTree.root.children[activationEnd.snapshot.outlet]) === null || _a === void 0 ? void 0 : _a.toString()) || '';
448
+ var actualSnapshot = router.routerState.root.children.map(function (it) { return it; }).find(function (it) { return it.outlet === activationEnd.snapshot.outlet; });
449
+ if (!actualSnapshot) {
450
+ return rxjs.of(null);
451
+ }
452
+ var actualDeep = actualSnapshot;
453
+ while (actualDeep.firstChild) {
454
+ actualDeep = actualDeep.firstChild;
455
+ }
456
+ var screenName = actualDeep.pathFromRoot.map(function (s) { var _a; return (_a = s.routeConfig) === null || _a === void 0 ? void 0 : _a.path; }).filter(function (it) { return it; }).join('/') || '/';
457
+ var params = (_b = {},
458
+ _b[SCREEN_NAME_KEY] = screenName,
459
+ _b[PAGE_PATH_KEY] = "/" + pagePath,
460
+ _b[FIREBASE_EVENT_ORIGIN_KEY] = EVENT_ORIGIN_AUTO,
461
+ _b[FIREBASE_SCREEN_NAME_KEY] = screenName,
462
+ _b[OUTLET_KEY] = activationEnd.snapshot.outlet,
463
+ _b);
464
+ if (title) {
465
+ params[PAGE_TITLE_KEY] = title.getTitle();
466
+ }
467
+ var component = actualSnapshot.component;
468
+ if (component) {
469
+ if (component === i1$1.ɵEmptyOutletComponent) {
470
+ var deepSnapshot = activationEnd.snapshot;
471
+ // TODO when might there be mutple children, different outlets? explore
472
+ while (deepSnapshot.firstChild) {
473
+ deepSnapshot = deepSnapshot.firstChild;
474
+ }
475
+ component = deepSnapshot.component;
476
+ }
477
+ }
478
+ else {
479
+ component = activationEnd.snapshot.component;
480
+ }
481
+ if (typeof component === 'string') {
482
+ return rxjs.of(Object.assign(Object.assign({}, params), (_c = {}, _c[SCREEN_CLASS_KEY] = component, _c)));
483
+ }
484
+ else if (component) {
485
+ var componentFactory = componentFactoryResolver.resolveComponentFactory(component);
486
+ return rxjs.of(Object.assign(Object.assign({}, params), (_d = {}, _d[SCREEN_CLASS_KEY] = componentFactory.selector, _d)));
487
+ }
488
+ // lazy loads cause extra activations, ignore
489
+ return rxjs.of(null);
490
+ }), operators.filter(function (it) { return !!it; }), operators.map(function (params) {
491
+ var _b;
492
+ return (Object.assign((_b = {}, _b[FIREBASE_SCREEN_CLASS_KEY] = params[SCREEN_CLASS_KEY], _b[FIREBASE_SCREEN_INSTANCE_ID_KEY] = getScreenInstanceID(params), _b), params));
493
+ }), operators.groupBy(function (it) { return it[OUTLET_KEY]; }), operators.mergeMap(function (it) { return it.pipe(operators.distinctUntilChanged(function (a, b) { return JSON.stringify(a) === JSON.stringify(b); }), operators.startWith(undefined), operators.pairwise(), operators.map(function (_b) {
494
+ var _c;
495
+ var _d = __read(_b, 2), prior = _d[0], current = _d[1];
496
+ return prior ? Object.assign((_c = {}, _c[FIREBASE_PREVIOUS_SCREEN_CLASS_KEY] = prior[SCREEN_CLASS_KEY], _c[FIREBASE_PREVIOUS_SCREEN_NAME_KEY] = prior[SCREEN_NAME_KEY], _c[FIREBASE_PREVIOUS_SCREEN_INSTANCE_ID_KEY] = prior[FIREBASE_SCREEN_INSTANCE_ID_KEY], _c), current) : current;
497
+ })); }));
498
+ };
499
+ var ScreenTrackingService = /** @class */ (function () {
500
+ function ScreenTrackingService(router, title, componentFactoryResolver, zone, userTrackingService, firebaseApp, analyticsInstanceFactories, injector) {
501
+ var _this = this;
502
+ app.registerVersion('angularfire', fire.VERSION.full, 'screen-tracking');
503
+ if (!router) {
504
+ return this;
505
+ }
506
+ // Analytics is not ready to be injected yet, as the APP_INITIALIZER hasn't evulated yet, do this the hard way
507
+ var analyticsInstance = globalThis[isSupportedPromiseSymbol].then(function (isSupported) {
508
+ var analyticsInstances = analyticsInstanceFactories.map(function (fn) { return analyticsInstanceFactory(fn)(zone, isSupported, injector); });
509
+ return defaultAnalyticsInstanceFactory(isSupported, analyticsInstances, firebaseApp);
510
+ });
511
+ zone.runOutsideAngular(function () {
512
+ _this.disposable = ɵscreenViewEvent(router, title, componentFactoryResolver).pipe(operators.switchMap(function (params) { return __awaiter(_this, void 0, void 0, function () {
513
+ var analytics;
514
+ return __generator(this, function (_b) {
515
+ switch (_b.label) {
516
+ case 0:
517
+ if (!userTrackingService) return [3 /*break*/, 2];
518
+ return [4 /*yield*/, userTrackingService.initialized];
519
+ case 1:
520
+ _b.sent();
521
+ _b.label = 2;
522
+ case 2: return [4 /*yield*/, analyticsInstance];
523
+ case 3:
524
+ analytics = _b.sent();
525
+ if (!analytics) {
526
+ return [2 /*return*/];
527
+ }
528
+ return [2 /*return*/, logEvent(analytics, SCREEN_VIEW_EVENT, params)];
529
+ }
530
+ });
531
+ }); })).subscribe();
532
+ });
533
+ }
534
+ ScreenTrackingService.prototype.ngOnDestroy = function () {
535
+ if (this.disposable) {
536
+ this.disposable.unsubscribe();
537
+ }
538
+ };
539
+ return ScreenTrackingService;
540
+ }());
541
+ ScreenTrackingService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0__namespace, type: ScreenTrackingService, deps: [{ token: i1__namespace$1.Router, optional: true }, { token: i2__namespace$1.Title, optional: true }, { token: i0__namespace.ComponentFactoryResolver }, { token: i0__namespace.NgZone }, { token: UserTrackingService, optional: true }, { token: i2__namespace.FirebaseApp }, { token: PROVIDED_ANALYTICS_INSTANCE_FACTORIES }, { token: i0__namespace.Injector }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
542
+ ScreenTrackingService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0__namespace, type: ScreenTrackingService });
543
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0__namespace, type: ScreenTrackingService, decorators: [{
544
+ type: i0.Injectable
545
+ }], ctorParameters: function () {
546
+ return [{ type: i1__namespace$1.Router, decorators: [{
547
+ type: i0.Optional
548
+ }] }, { type: i2__namespace$1.Title, decorators: [{
549
+ type: i0.Optional
550
+ }] }, { type: i0__namespace.ComponentFactoryResolver }, { type: i0__namespace.NgZone }, { type: UserTrackingService, decorators: [{
551
+ type: i0.Optional
552
+ }] }, { type: i2__namespace.FirebaseApp }, { type: Array, decorators: [{
553
+ type: i0.Inject,
554
+ args: [PROVIDED_ANALYTICS_INSTANCE_FACTORIES]
555
+ }] }, { type: i0__namespace.Injector }];
556
+ } });
557
+
558
+ var PROVIDED_ANALYTICS_INSTANCE_FACTORIES = new i0.InjectionToken('angularfire2.analytics-instances.factory');
44
559
  var PROVIDED_ANALYTICS_INSTANCES = new i0.InjectionToken('angularfire2.analytics-instances');
45
560
  var IS_SUPPORTED = new i0.InjectionToken('angularfire2.analytics.isSupported');
46
- var isSupportedSymbol = Symbol('angularfire2.analytics.isSupported');
561
+ var isSupportedValueSymbol = Symbol('angularfire2.analytics.isSupported.value');
562
+ var isSupportedPromiseSymbol = Symbol('angularfire2.analytics.isSupported');
563
+ globalThis[isSupportedPromiseSymbol] || (globalThis[isSupportedPromiseSymbol] = analytics.isSupported().then(function (it) { return globalThis[isSupportedValueSymbol] = it; }));
47
564
  function defaultAnalyticsInstanceFactory(isSupported, provided, defaultApp) {
48
- var defaultAnalytics = isSupported ?
49
- fire.ɵgetDefaultInstanceOf(ANALYTICS_PROVIDER_NAME, provided, defaultApp) :
50
- undefined;
51
- return new Analytics(defaultAnalytics);
565
+ if (!isSupported) {
566
+ return null;
567
+ }
568
+ var defaultAnalytics = fire.ɵgetDefaultInstanceOf(ANALYTICS_PROVIDER_NAME, provided, defaultApp);
569
+ return defaultAnalytics && new Analytics(defaultAnalytics);
52
570
  }
53
571
  function analyticsInstanceFactory(fn) {
54
- return function (zone, isSupported) {
55
- var analytics = isSupported ? fire.ɵmemoizeInstance(fn, zone) : undefined;
572
+ return function (zone, isSupported, injector) {
573
+ if (!isSupported) {
574
+ return null;
575
+ }
576
+ var analytics = zone.runOutsideAngular(function () { return fn(injector); });
56
577
  return new Analytics(analytics);
57
578
  };
58
579
  }
@@ -68,25 +589,25 @@
68
589
  deps: [
69
590
  IS_SUPPORTED,
70
591
  [new i0.Optional(), PROVIDED_ANALYTICS_INSTANCES],
71
- app.FirebaseApp,
592
+ i2.FirebaseApp,
72
593
  ]
73
594
  };
74
595
  var AnalyticsModule = /** @class */ (function () {
75
- function AnalyticsModule() {
76
- app$1.registerVersion('angularfire', fire.VERSION.full, 'analytics');
596
+ function AnalyticsModule(_screenTracking, _userTracking) {
597
+ app.registerVersion('angularfire', fire.VERSION.full, 'analytics');
77
598
  }
78
599
  return AnalyticsModule;
79
600
  }());
80
- AnalyticsModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0__namespace, type: AnalyticsModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
601
+ AnalyticsModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0__namespace, type: AnalyticsModule, deps: [{ token: ScreenTrackingService, optional: true }, { token: UserTrackingService, optional: true }], target: i0__namespace.ɵɵFactoryTarget.NgModule });
81
602
  AnalyticsModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0__namespace, type: AnalyticsModule });
82
603
  AnalyticsModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0__namespace, type: AnalyticsModule, providers: [
83
604
  DEFAULT_ANALYTICS_INSTANCE_PROVIDER,
84
605
  ANALYTICS_INSTANCES_PROVIDER,
85
606
  {
86
607
  provide: i0.APP_INITIALIZER,
87
- useValue: function () { return analytics.isSupported().then(function (it) { return globalThis[isSupportedSymbol] = it; }); },
608
+ useValue: function () { return globalThis[isSupportedPromiseSymbol]; },
88
609
  multi: true,
89
- },
610
+ }
90
611
  ] });
91
612
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.3", ngImport: i0__namespace, type: AnalyticsModule, decorators: [{
92
613
  type: i0.NgModule,
@@ -96,43 +617,47 @@
96
617
  ANALYTICS_INSTANCES_PROVIDER,
97
618
  {
98
619
  provide: i0.APP_INITIALIZER,
99
- useValue: function () { return analytics.isSupported().then(function (it) { return globalThis[isSupportedSymbol] = it; }); },
620
+ useValue: function () { return globalThis[isSupportedPromiseSymbol]; },
100
621
  multi: true,
101
- },
622
+ }
102
623
  ]
103
624
  }]
104
- }], ctorParameters: function () { return []; } });
625
+ }], ctorParameters: function () {
626
+ return [{ type: ScreenTrackingService, decorators: [{
627
+ type: i0.Optional
628
+ }] }, { type: UserTrackingService, decorators: [{
629
+ type: i0.Optional
630
+ }] }];
631
+ } });
105
632
  function provideAnalytics(fn) {
633
+ var deps = [];
634
+ for (var _i = 1; _i < arguments.length; _i++) {
635
+ deps[_i - 1] = arguments[_i];
636
+ }
106
637
  return {
107
638
  ngModule: AnalyticsModule,
108
639
  providers: [{
109
640
  provide: IS_SUPPORTED,
110
- useFactory: function () { return globalThis[isSupportedSymbol]; },
641
+ useFactory: function () { return globalThis[isSupportedValueSymbol]; },
642
+ }, {
643
+ provide: PROVIDED_ANALYTICS_INSTANCE_FACTORIES,
644
+ useValue: fn,
645
+ multi: true,
111
646
  }, {
112
647
  provide: PROVIDED_ANALYTICS_INSTANCES,
113
648
  useFactory: analyticsInstanceFactory(fn),
114
649
  multi: true,
115
- deps: [
650
+ deps: __spreadArray([
116
651
  i0.NgZone,
117
652
  IS_SUPPORTED,
653
+ i0.Injector,
118
654
  fire.ɵAngularFireSchedulers,
119
- app.FirebaseApps,
120
- ]
655
+ i2.FirebaseApps
656
+ ], __read(deps))
121
657
  }]
122
658
  };
123
659
  }
124
660
 
125
- // DO NOT MODIFY, this file is autogenerated by tools/build.ts
126
- var getAnalytics = fire.ɵzoneWrap(analytics.getAnalytics, true);
127
- var initializeAnalytics = fire.ɵzoneWrap(analytics.initializeAnalytics, true);
128
- var isSupported = fire.ɵzoneWrap(analytics.isSupported, true);
129
- var logEvent = fire.ɵzoneWrap(analytics.logEvent, true);
130
- var setAnalyticsCollectionEnabled = fire.ɵzoneWrap(analytics.setAnalyticsCollectionEnabled, true);
131
- var setCurrentScreen = fire.ɵzoneWrap(analytics.setCurrentScreen, true);
132
- var settings = fire.ɵzoneWrap(analytics.settings, true);
133
- var setUserId = fire.ɵzoneWrap(analytics.setUserId, true);
134
- var setUserProperties = fire.ɵzoneWrap(analytics.setUserProperties, true);
135
-
136
661
  /**
137
662
  * Generated bundle index. Do not edit.
138
663
  */
@@ -140,6 +665,8 @@
140
665
  exports.Analytics = Analytics;
141
666
  exports.AnalyticsInstances = AnalyticsInstances;
142
667
  exports.AnalyticsModule = AnalyticsModule;
668
+ exports.ScreenTrackingService = ScreenTrackingService;
669
+ exports.UserTrackingService = UserTrackingService;
143
670
  exports.analyticInstance$ = analyticInstance$;
144
671
  exports.getAnalytics = getAnalytics;
145
672
  exports.initializeAnalytics = initializeAnalytics;
@@ -151,6 +678,7 @@
151
678
  exports.setUserId = setUserId;
152
679
  exports.setUserProperties = setUserProperties;
153
680
  exports.settings = settings;
681
+ exports.ɵscreenViewEvent = ɵscreenViewEvent;
154
682
  Object.keys(analytics).forEach(function (k) {
155
683
  if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
156
684
  enumerable: true,