ngx-firebase 1.1.12 → 22.0.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.
Files changed (274) hide show
  1. package/README.md +51 -11
  2. package/fesm2022/ngx-firebase.mjs +158 -0
  3. package/fesm2022/ngx-firebase.mjs.map +1 -0
  4. package/package.json +40 -30
  5. package/types/ngx-firebase.d.ts +55 -0
  6. package/bundles/ngx-firebase-capacitor.umd.js +0 -763
  7. package/bundles/ngx-firebase-capacitor.umd.js.map +0 -1
  8. package/bundles/ngx-firebase-capacitor.umd.min.js +0 -16
  9. package/bundles/ngx-firebase-capacitor.umd.min.js.map +0 -1
  10. package/bundles/ngx-firebase-iap.umd.js +0 -718
  11. package/bundles/ngx-firebase-iap.umd.js.map +0 -1
  12. package/bundles/ngx-firebase-iap.umd.min.js +0 -2
  13. package/bundles/ngx-firebase-iap.umd.min.js.map +0 -1
  14. package/bundles/ngx-firebase-ionic-auth-ui.umd.js +0 -2116
  15. package/bundles/ngx-firebase-ionic-auth-ui.umd.js.map +0 -1
  16. package/bundles/ngx-firebase-ionic-auth-ui.umd.min.js +0 -16
  17. package/bundles/ngx-firebase-ionic-auth-ui.umd.min.js.map +0 -1
  18. package/bundles/ngx-firebase-ionic.umd.js +0 -979
  19. package/bundles/ngx-firebase-ionic.umd.js.map +0 -1
  20. package/bundles/ngx-firebase-ionic.umd.min.js +0 -16
  21. package/bundles/ngx-firebase-ionic.umd.min.js.map +0 -1
  22. package/bundles/ngx-firebase-testing.umd.js +0 -801
  23. package/bundles/ngx-firebase-testing.umd.js.map +0 -1
  24. package/bundles/ngx-firebase-testing.umd.min.js +0 -2
  25. package/bundles/ngx-firebase-testing.umd.min.js.map +0 -1
  26. package/bundles/ngx-firebase.umd.js +0 -2271
  27. package/bundles/ngx-firebase.umd.js.map +0 -1
  28. package/bundles/ngx-firebase.umd.min.js +0 -2
  29. package/bundles/ngx-firebase.umd.min.js.map +0 -1
  30. package/capacitor/capacitor.module.d.ts +0 -9
  31. package/capacitor/interfaces/config.d.ts +0 -12
  32. package/capacitor/interfaces/index.d.ts +0 -1
  33. package/capacitor/ngx-firebase-capacitor.d.ts +0 -5
  34. package/capacitor/ngx-firebase-capacitor.metadata.json +0 -1
  35. package/capacitor/package.json +0 -25
  36. package/capacitor/public-api.d.ts +0 -3
  37. package/capacitor/services/analytics-firebase-capacitor.service.d.ts +0 -9
  38. package/capacitor/services/crashlytics-firebase-capacitor.service.d.ts +0 -8
  39. package/capacitor/services/credential-factory-capacitor.service.d.ts +0 -18
  40. package/capacitor/services/index.d.ts +0 -3
  41. package/esm2015/capacitor/capacitor.module.js +0 -78
  42. package/esm2015/capacitor/interfaces/config.js +0 -3
  43. package/esm2015/capacitor/interfaces/index.js +0 -2
  44. package/esm2015/capacitor/ngx-firebase-capacitor.js +0 -6
  45. package/esm2015/capacitor/public-api.js +0 -4
  46. package/esm2015/capacitor/services/analytics-firebase-capacitor.service.js +0 -43
  47. package/esm2015/capacitor/services/crashlytics-firebase-capacitor.service.js +0 -40
  48. package/esm2015/capacitor/services/credential-factory-capacitor.service.js +0 -182
  49. package/esm2015/capacitor/services/index.js +0 -4
  50. package/esm2015/iap/iap.module.js +0 -32
  51. package/esm2015/iap/interfaces/index.js +0 -5
  52. package/esm2015/iap/ngx-firebase-iap.js +0 -5
  53. package/esm2015/iap/public-api.js +0 -5
  54. package/esm2015/iap/services/iap.service.js +0 -317
  55. package/esm2015/iap/tokens/index.js +0 -4
  56. package/esm2015/ionic/animations/index.js +0 -30
  57. package/esm2015/ionic/components/avatar/avatar.component.js +0 -98
  58. package/esm2015/ionic/components/avatar/index.js +0 -2
  59. package/esm2015/ionic/components/index.js +0 -3
  60. package/esm2015/ionic/components/popover-menu/index.js +0 -3
  61. package/esm2015/ionic/components/popover-menu/interface.js +0 -2
  62. package/esm2015/ionic/components/popover-menu/popover-menu.component.js +0 -34
  63. package/esm2015/ionic/ionic.module.js +0 -46
  64. package/esm2015/ionic/ngx-firebase-ionic.js +0 -5
  65. package/esm2015/ionic/public-api.js +0 -5
  66. package/esm2015/ionic/services/alerts-ionic.service.js +0 -107
  67. package/esm2015/ionic/services/index.js +0 -6
  68. package/esm2015/ionic/services/legality-dialog-ionic.service.js +0 -85
  69. package/esm2015/ionic/services/loading-ionic.service.js +0 -46
  70. package/esm2015/ionic/services/picker-ionic.service.js +0 -44
  71. package/esm2015/ionic/services/toast-ionic.service.js +0 -49
  72. package/esm2015/ionic-auth-ui/animations/index.js +0 -30
  73. package/esm2015/ionic-auth-ui/components/email-confirmation/email-confirmation.component.js +0 -99
  74. package/esm2015/ionic-auth-ui/components/email-field/email-field.component.js +0 -25
  75. package/esm2015/ionic-auth-ui/components/form-field/form-field.component.js +0 -82
  76. package/esm2015/ionic-auth-ui/components/index.js +0 -12
  77. package/esm2015/ionic-auth-ui/components/name-field/name-field.component.js +0 -30
  78. package/esm2015/ionic-auth-ui/components/or-divider/or-divider.component.js +0 -11
  79. package/esm2015/ionic-auth-ui/components/password-field/password-field.component.js +0 -138
  80. package/esm2015/ionic-auth-ui/components/password-field/passwordValidatorFunctions.js +0 -62
  81. package/esm2015/ionic-auth-ui/components/providers/providers.component.js +0 -70
  82. package/esm2015/ionic-auth-ui/components/reauthenticate/reauthenticate.component.js +0 -99
  83. package/esm2015/ionic-auth-ui/components/register/register.component.js +0 -142
  84. package/esm2015/ionic-auth-ui/components/register-with-email/register-with-email.component.js +0 -60
  85. package/esm2015/ionic-auth-ui/components/register-with-email-popover/register-with-email-popover.component.js +0 -26
  86. package/esm2015/ionic-auth-ui/components/signin/signin.component.js +0 -92
  87. package/esm2015/ionic-auth-ui/components/terms-field/terms-field.component.js +0 -99
  88. package/esm2015/ionic-auth-ui/components/user/user.component.js +0 -195
  89. package/esm2015/ionic-auth-ui/ionic-auth-ui.module.js +0 -92
  90. package/esm2015/ionic-auth-ui/ngx-firebase-ionic-auth-ui.js +0 -23
  91. package/esm2015/ionic-auth-ui/pages/index.js +0 -5
  92. package/esm2015/ionic-auth-ui/pages/register/index.js +0 -2
  93. package/esm2015/ionic-auth-ui/pages/register/register.page.js +0 -56
  94. package/esm2015/ionic-auth-ui/pages/signin/index.js +0 -2
  95. package/esm2015/ionic-auth-ui/pages/signin/signin.page.js +0 -78
  96. package/esm2015/ionic-auth-ui/pages/user/index.js +0 -2
  97. package/esm2015/ionic-auth-ui/pages/user/user.page.js +0 -11
  98. package/esm2015/ionic-auth-ui/pages/verifyemail/index.js +0 -2
  99. package/esm2015/ionic-auth-ui/pages/verifyemail/verifyemail.page.js +0 -85
  100. package/esm2015/ionic-auth-ui/public-api.js +0 -5
  101. package/esm2015/ngx-firebase.js +0 -6
  102. package/esm2015/public-api.js +0 -6
  103. package/esm2015/shared/guards/index.js +0 -3
  104. package/esm2015/shared/guards/logged-in.guard.js +0 -60
  105. package/esm2015/shared/guards/verify-email.guard.js +0 -41
  106. package/esm2015/shared/interfaces/accounts.enum.js +0 -9
  107. package/esm2015/shared/interfaces/authprovider.enum.js +0 -15
  108. package/esm2015/shared/interfaces/config.interface.js +0 -61
  109. package/esm2015/shared/interfaces/index.js +0 -8
  110. package/esm2015/shared/interfaces/main.interface.js +0 -7
  111. package/esm2015/shared/interfaces/providers.interface.js +0 -2
  112. package/esm2015/shared/interfaces/tokens.js +0 -19
  113. package/esm2015/shared/interfaces/ui-providers.interface.js +0 -2
  114. package/esm2015/shared/services/analytics.service.js +0 -24
  115. package/esm2015/shared/services/auth-process.service.js +0 -752
  116. package/esm2015/shared/services/crashlytics.service.js +0 -42
  117. package/esm2015/shared/services/device-info.service.js +0 -14
  118. package/esm2015/shared/services/firebase.service.js +0 -37
  119. package/esm2015/shared/services/firestore-sync.service.js +0 -60
  120. package/esm2015/shared/services/index.js +0 -10
  121. package/esm2015/shared/services/performance.service.js +0 -28
  122. package/esm2015/shared/services/remoteconfig.service.js +0 -49
  123. package/esm2015/shared/services/ui.service.js +0 -45
  124. package/esm2015/shared/shared.module.js +0 -175
  125. package/esm2015/shared/types/DisplayWidth.js +0 -9
  126. package/esm2015/shared/types/Location.js +0 -2
  127. package/esm2015/shared/types/ValueAccessorControlComponent.js +0 -85
  128. package/esm2015/shared/types/ValueAccessorValueComponent.js +0 -40
  129. package/esm2015/shared/types/index.js +0 -5
  130. package/esm2015/testing/fakeavatar.module.js +0 -22
  131. package/esm2015/testing/fakes/FakeAuthProcessService.js +0 -31
  132. package/esm2015/testing/fakes/FakeAvatarComponent.js +0 -13
  133. package/esm2015/testing/fakes/FakeFireService.js +0 -21
  134. package/esm2015/testing/fakes/FakeFirestoreSyncService.js +0 -11
  135. package/esm2015/testing/fakes/FakeIAPurchaseService.js +0 -11
  136. package/esm2015/testing/fakes/FakePickerService.js +0 -9
  137. package/esm2015/testing/fakes/FakeRemoteConfigService.js +0 -44
  138. package/esm2015/testing/fakes/FakeTranslateService.js +0 -21
  139. package/esm2015/testing/fakes/FakeUiService.js +0 -26
  140. package/esm2015/testing/fakes/angular-fire/FakeAngularFireAuth.js +0 -30
  141. package/esm2015/testing/fakes/angular-fire/FakeAngularFireFunctions.js +0 -17
  142. package/esm2015/testing/fakes/angular-fire/FakeAngularFirePerformance.js +0 -17
  143. package/esm2015/testing/fakes/angular-fire/FakeAngularFireStorage.js +0 -8
  144. package/esm2015/testing/fakes/angular-fire/FakeAngularFirestore.js +0 -8
  145. package/esm2015/testing/fakes/angular-fire/FakeUserCredential.js +0 -18
  146. package/esm2015/testing/fakes/index.js +0 -19
  147. package/esm2015/testing/ngx-firebase-testing.js +0 -6
  148. package/esm2015/testing/public-api.js +0 -5
  149. package/esm2015/testing/test.module.js +0 -66
  150. package/esm2015/testing/utils/index.js +0 -17
  151. package/esm2015/testing/utils/patchConsole.js +0 -14
  152. package/fesm2015/ngx-firebase-capacitor.js +0 -328
  153. package/fesm2015/ngx-firebase-capacitor.js.map +0 -1
  154. package/fesm2015/ngx-firebase-iap.js +0 -354
  155. package/fesm2015/ngx-firebase-iap.js.map +0 -1
  156. package/fesm2015/ngx-firebase-ionic-auth-ui.js +0 -1482
  157. package/fesm2015/ngx-firebase-ionic-auth-ui.js.map +0 -1
  158. package/fesm2015/ngx-firebase-ionic.js +0 -495
  159. package/fesm2015/ngx-firebase-ionic.js.map +0 -1
  160. package/fesm2015/ngx-firebase-testing.js +0 -388
  161. package/fesm2015/ngx-firebase-testing.js.map +0 -1
  162. package/fesm2015/ngx-firebase.js +0 -1482
  163. package/fesm2015/ngx-firebase.js.map +0 -1
  164. package/iap/iap.module.d.ts +0 -5
  165. package/iap/interfaces/index.d.ts +0 -11
  166. package/iap/ngx-firebase-iap.d.ts +0 -4
  167. package/iap/ngx-firebase-iap.metadata.json +0 -1
  168. package/iap/package.json +0 -23
  169. package/iap/public-api.d.ts +0 -4
  170. package/iap/services/iap.service.d.ts +0 -47
  171. package/iap/tokens/index.d.ts +0 -3
  172. package/ionic/animations/index.d.ts +0 -1
  173. package/ionic/components/avatar/avatar.component.d.ts +0 -27
  174. package/ionic/components/avatar/index.d.ts +0 -1
  175. package/ionic/components/index.d.ts +0 -2
  176. package/ionic/components/popover-menu/index.d.ts +0 -2
  177. package/ionic/components/popover-menu/interface.d.ts +0 -6
  178. package/ionic/components/popover-menu/popover-menu.component.d.ts +0 -10
  179. package/ionic/ionic.module.d.ts +0 -2
  180. package/ionic/ngx-firebase-ionic.d.ts +0 -4
  181. package/ionic/ngx-firebase-ionic.metadata.json +0 -1
  182. package/ionic/package.json +0 -30
  183. package/ionic/public-api.d.ts +0 -4
  184. package/ionic/services/alerts-ionic.service.d.ts +0 -13
  185. package/ionic/services/index.d.ts +0 -5
  186. package/ionic/services/legality-dialog-ionic.service.d.ts +0 -10
  187. package/ionic/services/loading-ionic.service.d.ts +0 -17
  188. package/ionic/services/picker-ionic.service.d.ts +0 -9
  189. package/ionic/services/toast-ionic.service.d.ts +0 -11
  190. package/ionic-auth-ui/animations/index.d.ts +0 -1
  191. package/ionic-auth-ui/components/email-confirmation/email-confirmation.component.d.ts +0 -31
  192. package/ionic-auth-ui/components/email-field/email-field.component.d.ts +0 -7
  193. package/ionic-auth-ui/components/form-field/form-field.component.d.ts +0 -28
  194. package/ionic-auth-ui/components/index.d.ts +0 -11
  195. package/ionic-auth-ui/components/name-field/name-field.component.d.ts +0 -8
  196. package/ionic-auth-ui/components/or-divider/or-divider.component.d.ts +0 -2
  197. package/ionic-auth-ui/components/password-field/password-field.component.d.ts +0 -34
  198. package/ionic-auth-ui/components/password-field/passwordValidatorFunctions.d.ts +0 -4
  199. package/ionic-auth-ui/components/providers/providers.component.d.ts +0 -26
  200. package/ionic-auth-ui/components/reauthenticate/reauthenticate.component.d.ts +0 -30
  201. package/ionic-auth-ui/components/register/register.component.d.ts +0 -26
  202. package/ionic-auth-ui/components/register-with-email/register-with-email.component.d.ts +0 -24
  203. package/ionic-auth-ui/components/register-with-email-popover/register-with-email-popover.component.d.ts +0 -7
  204. package/ionic-auth-ui/components/signin/signin.component.d.ts +0 -28
  205. package/ionic-auth-ui/components/terms-field/terms-field.component.d.ts +0 -27
  206. package/ionic-auth-ui/components/user/user.component.d.ts +0 -45
  207. package/ionic-auth-ui/ionic-auth-ui.module.d.ts +0 -32
  208. package/ionic-auth-ui/ngx-firebase-ionic-auth-ui.d.ts +0 -22
  209. package/ionic-auth-ui/ngx-firebase-ionic-auth-ui.metadata.json +0 -1
  210. package/ionic-auth-ui/package.json +0 -30
  211. package/ionic-auth-ui/pages/index.d.ts +0 -4
  212. package/ionic-auth-ui/pages/register/index.d.ts +0 -1
  213. package/ionic-auth-ui/pages/register/register.page.d.ts +0 -16
  214. package/ionic-auth-ui/pages/signin/index.d.ts +0 -1
  215. package/ionic-auth-ui/pages/signin/signin.page.d.ts +0 -22
  216. package/ionic-auth-ui/pages/user/index.d.ts +0 -1
  217. package/ionic-auth-ui/pages/user/user.page.d.ts +0 -3
  218. package/ionic-auth-ui/pages/verifyemail/index.d.ts +0 -1
  219. package/ionic-auth-ui/pages/verifyemail/verifyemail.page.d.ts +0 -19
  220. package/ionic-auth-ui/public-api.d.ts +0 -4
  221. package/ngx-firebase.d.ts +0 -5
  222. package/ngx-firebase.metadata.json +0 -1
  223. package/public-api.d.ts +0 -5
  224. package/shared/guards/index.d.ts +0 -2
  225. package/shared/guards/logged-in.guard.d.ts +0 -13
  226. package/shared/guards/verify-email.guard.d.ts +0 -11
  227. package/shared/interfaces/accounts.enum.d.ts +0 -7
  228. package/shared/interfaces/authprovider.enum.d.ts +0 -13
  229. package/shared/interfaces/config.interface.d.ts +0 -63
  230. package/shared/interfaces/index.d.ts +0 -7
  231. package/shared/interfaces/main.interface.d.ts +0 -13
  232. package/shared/interfaces/providers.interface.d.ts +0 -63
  233. package/shared/interfaces/tokens.d.ts +0 -16
  234. package/shared/interfaces/ui-providers.interface.d.ts +0 -65
  235. package/shared/services/analytics.service.d.ts +0 -10
  236. package/shared/services/auth-process.service.d.ts +0 -172
  237. package/shared/services/crashlytics.service.d.ts +0 -11
  238. package/shared/services/device-info.service.d.ts +0 -3
  239. package/shared/services/firebase.service.d.ts +0 -16
  240. package/shared/services/firestore-sync.service.d.ts +0 -16
  241. package/shared/services/index.d.ts +0 -9
  242. package/shared/services/performance.service.d.ts +0 -12
  243. package/shared/services/remoteconfig.service.d.ts +0 -18
  244. package/shared/services/ui.service.d.ts +0 -22
  245. package/shared/shared.module.d.ts +0 -14
  246. package/shared/types/DisplayWidth.d.ts +0 -7
  247. package/shared/types/Location.d.ts +0 -8
  248. package/shared/types/ValueAccessorControlComponent.d.ts +0 -27
  249. package/shared/types/ValueAccessorValueComponent.d.ts +0 -19
  250. package/shared/types/index.d.ts +0 -4
  251. package/testing/fakeavatar.module.d.ts +0 -2
  252. package/testing/fakes/FakeAuthProcessService.d.ts +0 -28
  253. package/testing/fakes/FakeAvatarComponent.d.ts +0 -3
  254. package/testing/fakes/FakeFireService.d.ts +0 -20
  255. package/testing/fakes/FakeFirestoreSyncService.d.ts +0 -9
  256. package/testing/fakes/FakeIAPurchaseService.d.ts +0 -9
  257. package/testing/fakes/FakePickerService.d.ts +0 -6
  258. package/testing/fakes/FakeRemoteConfigService.d.ts +0 -19
  259. package/testing/fakes/FakeTranslateService.d.ts +0 -15
  260. package/testing/fakes/FakeUiService.d.ts +0 -25
  261. package/testing/fakes/angular-fire/FakeAngularFireAuth.d.ts +0 -52
  262. package/testing/fakes/angular-fire/FakeAngularFireFunctions.d.ts +0 -11
  263. package/testing/fakes/angular-fire/FakeAngularFirePerformance.d.ts +0 -10
  264. package/testing/fakes/angular-fire/FakeAngularFireStorage.d.ts +0 -5
  265. package/testing/fakes/angular-fire/FakeAngularFirestore.d.ts +0 -5
  266. package/testing/fakes/angular-fire/FakeUserCredential.d.ts +0 -9
  267. package/testing/fakes/index.d.ts +0 -16
  268. package/testing/ngx-firebase-testing.d.ts +0 -5
  269. package/testing/ngx-firebase-testing.metadata.json +0 -1
  270. package/testing/package.json +0 -29
  271. package/testing/public-api.d.ts +0 -4
  272. package/testing/test.module.d.ts +0 -4
  273. package/testing/utils/index.d.ts +0 -5
  274. package/testing/utils/patchConsole.d.ts +0 -4
@@ -1,801 +0,0 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('rxjs'), require('@angular/core'), require('@angular/fire/remote-config'), require('uuid'), require('@angular/common'), require('@angular/platform-browser/animations'), require('@angular/common/http/testing'), require('@angular/router/testing'), require('ngx-firebase'), require('ngx-firebase/iap'), require('@ionic/angular'), require('@ngx-translate/core'), require('@angular/fire/performance'), require('@angular/fire/firestore'), require('@angular/fire/functions'), require('@angular/fire/storage')) :
3
- typeof define === 'function' && define.amd ? define('ngx-firebase/testing', ['exports', 'rxjs', '@angular/core', '@angular/fire/remote-config', 'uuid', '@angular/common', '@angular/platform-browser/animations', '@angular/common/http/testing', '@angular/router/testing', 'ngx-firebase', 'ngx-firebase/iap', '@ionic/angular', '@ngx-translate/core', '@angular/fire/performance', '@angular/fire/firestore', '@angular/fire/functions', '@angular/fire/storage'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['ngx-firebase'] = global['ngx-firebase'] || {}, global['ngx-firebase'].testing = {}), global.rxjs, global.ng.core, global.ng.fire.remoteConfig, global.uuidv4, global.ng.common, global.ng.platformBrowser.animations, global.ng.common.http.testing, global.ng.router.testing, global['ngx-firebase'], global['ngx-firebase'].iap, global.ionic.angular, global['ngx-translate'], global.ng.fire.performance, global.ng.fire.firestore, global.ng.fire.functions, global.ng.fire.storage));
5
- }(this, (function (exports, rxjs, i0, i1, uuid, common, animations, testing, testing$1, ngxFirebase, iap, angular, core, performance, firestore, functions, storage) { 'use strict';
6
-
7
- var FakeFirestoreSyncService = /** @class */ (function () {
8
- function FakeFirestoreSyncService() {
9
- this.updateUserData = jasmine.createSpy('updateUserData');
10
- this.createUserData = jasmine.createSpy('createUserData');
11
- this.deleteUserData = jasmine.createSpy('deleteUserData');
12
- }
13
- FakeFirestoreSyncService.create = function () {
14
- return new FakeFirestoreSyncService();
15
- };
16
- return FakeFirestoreSyncService;
17
- }());
18
-
19
- var FakeTranslateService = /** @class */ (function () {
20
- function FakeTranslateService() {
21
- this.get = jasmine.createSpy('get');
22
- this.get.and.callFake(this.getTranslation);
23
- }
24
- FakeTranslateService.create = function () {
25
- return new FakeTranslateService();
26
- };
27
- FakeTranslateService.prototype.getTranslation = function (x) {
28
- if ('string' === typeof x) {
29
- return rxjs.of(x);
30
- }
31
- else {
32
- var obj_1 = {};
33
- x.forEach(function (item) { return obj_1[item] = item; });
34
- return rxjs.of(obj_1);
35
- }
36
- };
37
- return FakeTranslateService;
38
- }());
39
-
40
- var FakeAuthProcessService = /** @class */ (function () {
41
- function FakeAuthProcessService() {
42
- this._user$ = new rxjs.BehaviorSubject(null);
43
- this.user$ = this._user$.asObservable();
44
- this._canRegister$ = new rxjs.BehaviorSubject(true);
45
- this.canRegister$ = this._canRegister$.asObservable();
46
- this._canSignIn$ = new rxjs.BehaviorSubject(true);
47
- this.canSignIn$ = this._canSignIn$.asObservable();
48
- this._canSignOut$ = new rxjs.BehaviorSubject(false);
49
- this.canSignOut$ = this._canSignOut$.asObservable();
50
- this._canEdit$ = new rxjs.BehaviorSubject(false);
51
- this.canEdit$ = this._canEdit$.asObservable();
52
- this._isLoggedIn$ = new rxjs.BehaviorSubject(false);
53
- this.isLoggedIn$ = this._isLoggedIn$.asObservable();
54
- this._isAnonymous$ = new rxjs.BehaviorSubject(false);
55
- this.isAnonymous$ = this._isAnonymous$.asObservable();
56
- this._onSignOut$ = new rxjs.Subject();
57
- this.onSignOut$ = this._onSignOut$.asObservable();
58
- this.showProfileDialog = new i0.EventEmitter();
59
- this.selectCurrentUserClaim = jasmine.createSpy('selectCurrentUserClaim');
60
- this.selectCurrentUserClaim.and.returnValue(rxjs.of(false));
61
- }
62
- Object.defineProperty(FakeAuthProcessService.prototype, "user", {
63
- get: function () { return this._user$.value; },
64
- enumerable: false,
65
- configurable: true
66
- });
67
- ;
68
- FakeAuthProcessService.create = function () {
69
- return new FakeAuthProcessService();
70
- };
71
- return FakeAuthProcessService;
72
- }());
73
-
74
- var FakePickerService = /** @class */ (function () {
75
- function FakePickerService() {
76
- this.picker = jasmine.createSpy('picker');
77
- }
78
- FakePickerService.create = function () {
79
- return new FakePickerService();
80
- };
81
- return FakePickerService;
82
- }());
83
-
84
- var FakeIAPurchaseService = /** @class */ (function () {
85
- function FakeIAPurchaseService() {
86
- this.selectVerified = jasmine.createSpy('selectVerified');
87
- this.selectVerified.and.callFake(function (product) { return rxjs.of(product); });
88
- }
89
- FakeIAPurchaseService.create = function () {
90
- return new FakeIAPurchaseService();
91
- };
92
- return FakeIAPurchaseService;
93
- }());
94
-
95
- /*! *****************************************************************************
96
- Copyright (c) Microsoft Corporation.
97
-
98
- Permission to use, copy, modify, and/or distribute this software for any
99
- purpose with or without fee is hereby granted.
100
-
101
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
102
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
103
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
104
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
105
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
106
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
107
- PERFORMANCE OF THIS SOFTWARE.
108
- ***************************************************************************** */
109
- /* global Reflect, Promise */
110
- var extendStatics = function (d, b) {
111
- extendStatics = Object.setPrototypeOf ||
112
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
113
- function (d, b) { for (var p in b)
114
- if (Object.prototype.hasOwnProperty.call(b, p))
115
- d[p] = b[p]; };
116
- return extendStatics(d, b);
117
- };
118
- function __extends(d, b) {
119
- if (typeof b !== "function" && b !== null)
120
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
121
- extendStatics(d, b);
122
- function __() { this.constructor = d; }
123
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
124
- }
125
- var __assign = function () {
126
- __assign = Object.assign || function __assign(t) {
127
- for (var s, i = 1, n = arguments.length; i < n; i++) {
128
- s = arguments[i];
129
- for (var p in s)
130
- if (Object.prototype.hasOwnProperty.call(s, p))
131
- t[p] = s[p];
132
- }
133
- return t;
134
- };
135
- return __assign.apply(this, arguments);
136
- };
137
- function __rest(s, e) {
138
- var t = {};
139
- for (var p in s)
140
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
141
- t[p] = s[p];
142
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
143
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
144
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
145
- t[p[i]] = s[p[i]];
146
- }
147
- return t;
148
- }
149
- function __decorate(decorators, target, key, desc) {
150
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
151
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
152
- r = Reflect.decorate(decorators, target, key, desc);
153
- else
154
- for (var i = decorators.length - 1; i >= 0; i--)
155
- if (d = decorators[i])
156
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
157
- return c > 3 && r && Object.defineProperty(target, key, r), r;
158
- }
159
- function __param(paramIndex, decorator) {
160
- return function (target, key) { decorator(target, key, paramIndex); };
161
- }
162
- function __metadata(metadataKey, metadataValue) {
163
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
164
- return Reflect.metadata(metadataKey, metadataValue);
165
- }
166
- function __awaiter(thisArg, _arguments, P, generator) {
167
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
168
- return new (P || (P = Promise))(function (resolve, reject) {
169
- function fulfilled(value) { try {
170
- step(generator.next(value));
171
- }
172
- catch (e) {
173
- reject(e);
174
- } }
175
- function rejected(value) { try {
176
- step(generator["throw"](value));
177
- }
178
- catch (e) {
179
- reject(e);
180
- } }
181
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
182
- step((generator = generator.apply(thisArg, _arguments || [])).next());
183
- });
184
- }
185
- function __generator(thisArg, body) {
186
- var _ = { label: 0, sent: function () { if (t[0] & 1)
187
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
188
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
189
- function verb(n) { return function (v) { return step([n, v]); }; }
190
- function step(op) {
191
- if (f)
192
- throw new TypeError("Generator is already executing.");
193
- while (_)
194
- try {
195
- 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)
196
- return t;
197
- if (y = 0, t)
198
- op = [op[0] & 2, t.value];
199
- switch (op[0]) {
200
- case 0:
201
- case 1:
202
- t = op;
203
- break;
204
- case 4:
205
- _.label++;
206
- return { value: op[1], done: false };
207
- case 5:
208
- _.label++;
209
- y = op[1];
210
- op = [0];
211
- continue;
212
- case 7:
213
- op = _.ops.pop();
214
- _.trys.pop();
215
- continue;
216
- default:
217
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
218
- _ = 0;
219
- continue;
220
- }
221
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
222
- _.label = op[1];
223
- break;
224
- }
225
- if (op[0] === 6 && _.label < t[1]) {
226
- _.label = t[1];
227
- t = op;
228
- break;
229
- }
230
- if (t && _.label < t[2]) {
231
- _.label = t[2];
232
- _.ops.push(op);
233
- break;
234
- }
235
- if (t[2])
236
- _.ops.pop();
237
- _.trys.pop();
238
- continue;
239
- }
240
- op = body.call(thisArg, _);
241
- }
242
- catch (e) {
243
- op = [6, e];
244
- y = 0;
245
- }
246
- finally {
247
- f = t = 0;
248
- }
249
- if (op[0] & 5)
250
- throw op[1];
251
- return { value: op[0] ? op[1] : void 0, done: true };
252
- }
253
- }
254
- var __createBinding = Object.create ? (function (o, m, k, k2) {
255
- if (k2 === undefined)
256
- k2 = k;
257
- Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
258
- }) : (function (o, m, k, k2) {
259
- if (k2 === undefined)
260
- k2 = k;
261
- o[k2] = m[k];
262
- });
263
- function __exportStar(m, o) {
264
- for (var p in m)
265
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
266
- __createBinding(o, m, p);
267
- }
268
- function __values(o) {
269
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
270
- if (m)
271
- return m.call(o);
272
- if (o && typeof o.length === "number")
273
- return {
274
- next: function () {
275
- if (o && i >= o.length)
276
- o = void 0;
277
- return { value: o && o[i++], done: !o };
278
- }
279
- };
280
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
281
- }
282
- function __read(o, n) {
283
- var m = typeof Symbol === "function" && o[Symbol.iterator];
284
- if (!m)
285
- return o;
286
- var i = m.call(o), r, ar = [], e;
287
- try {
288
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
289
- ar.push(r.value);
290
- }
291
- catch (error) {
292
- e = { error: error };
293
- }
294
- finally {
295
- try {
296
- if (r && !r.done && (m = i["return"]))
297
- m.call(i);
298
- }
299
- finally {
300
- if (e)
301
- throw e.error;
302
- }
303
- }
304
- return ar;
305
- }
306
- /** @deprecated */
307
- function __spread() {
308
- for (var ar = [], i = 0; i < arguments.length; i++)
309
- ar = ar.concat(__read(arguments[i]));
310
- return ar;
311
- }
312
- /** @deprecated */
313
- function __spreadArrays() {
314
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
315
- s += arguments[i].length;
316
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
317
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
318
- r[k] = a[j];
319
- return r;
320
- }
321
- function __spreadArray(to, from) {
322
- for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
323
- to[j] = from[i];
324
- return to;
325
- }
326
- function __await(v) {
327
- return this instanceof __await ? (this.v = v, this) : new __await(v);
328
- }
329
- function __asyncGenerator(thisArg, _arguments, generator) {
330
- if (!Symbol.asyncIterator)
331
- throw new TypeError("Symbol.asyncIterator is not defined.");
332
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
333
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
334
- function verb(n) { if (g[n])
335
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
336
- function resume(n, v) { try {
337
- step(g[n](v));
338
- }
339
- catch (e) {
340
- settle(q[0][3], e);
341
- } }
342
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
343
- function fulfill(value) { resume("next", value); }
344
- function reject(value) { resume("throw", value); }
345
- function settle(f, v) { if (f(v), q.shift(), q.length)
346
- resume(q[0][0], q[0][1]); }
347
- }
348
- function __asyncDelegator(o) {
349
- var i, p;
350
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
351
- 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; }
352
- }
353
- function __asyncValues(o) {
354
- if (!Symbol.asyncIterator)
355
- throw new TypeError("Symbol.asyncIterator is not defined.");
356
- var m = o[Symbol.asyncIterator], i;
357
- 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);
358
- 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); }); }; }
359
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
360
- }
361
- function __makeTemplateObject(cooked, raw) {
362
- if (Object.defineProperty) {
363
- Object.defineProperty(cooked, "raw", { value: raw });
364
- }
365
- else {
366
- cooked.raw = raw;
367
- }
368
- return cooked;
369
- }
370
- ;
371
- var __setModuleDefault = Object.create ? (function (o, v) {
372
- Object.defineProperty(o, "default", { enumerable: true, value: v });
373
- }) : function (o, v) {
374
- o["default"] = v;
375
- };
376
- function __importStar(mod) {
377
- if (mod && mod.__esModule)
378
- return mod;
379
- var result = {};
380
- if (mod != null)
381
- for (var k in mod)
382
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
383
- __createBinding(result, mod, k);
384
- __setModuleDefault(result, mod);
385
- return result;
386
- }
387
- function __importDefault(mod) {
388
- return (mod && mod.__esModule) ? mod : { default: mod };
389
- }
390
- function __classPrivateFieldGet(receiver, privateMap) {
391
- if (!privateMap.has(receiver)) {
392
- throw new TypeError("attempted to get private field on non-instance");
393
- }
394
- return privateMap.get(receiver);
395
- }
396
- function __classPrivateFieldSet(receiver, privateMap, value) {
397
- if (!privateMap.has(receiver)) {
398
- throw new TypeError("attempted to set private field on non-instance");
399
- }
400
- privateMap.set(receiver, value);
401
- return value;
402
- }
403
-
404
- var StaticValue = /** @class */ (function () {
405
- function StaticValue(value) {
406
- this.value = value;
407
- }
408
- StaticValue.prototype.asBoolean = function () { return this.value; };
409
- StaticValue.prototype.asString = function () { return this.value; };
410
- StaticValue.prototype.asNumber = function () { return this.value; };
411
- StaticValue.prototype.getSource = function () { return 'static'; };
412
- return StaticValue;
413
- }());
414
- var FakeRemoteConfigService = /** @class */ (function () {
415
- function FakeRemoteConfigService(configDefaults) {
416
- this.configDefaults = configDefaults;
417
- this.defaults = this.configDefaults || {};
418
- this.remoteConfig$ = rxjs.of(this.defaults);
419
- this.parameters = rxjs.of([]);
420
- }
421
- FakeRemoteConfigService.create = function () {
422
- return new FakeRemoteConfigService();
423
- };
424
- FakeRemoteConfigService.prototype.getBoolean = function (key) {
425
- return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) {
426
- switch (_a.label) {
427
- case 0: return [4 /*yield*/, this.getValue(key)];
428
- case 1: return [2 /*return*/, (_a.sent()).asBoolean()];
429
- }
430
- }); });
431
- };
432
- FakeRemoteConfigService.prototype.getNumber = function (key) {
433
- return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) {
434
- switch (_a.label) {
435
- case 0: return [4 /*yield*/, this.getValue(key)];
436
- case 1: return [2 /*return*/, (_a.sent()).asNumber()];
437
- }
438
- }); });
439
- };
440
- FakeRemoteConfigService.prototype.getString = function (key) {
441
- return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) {
442
- switch (_a.label) {
443
- case 0: return [4 /*yield*/, this.getValue(key)];
444
- case 1: return [2 /*return*/, (_a.sent()).asString()];
445
- }
446
- }); });
447
- };
448
- FakeRemoteConfigService.prototype.getValue = function (key) { return Promise.resolve(new StaticValue(this.defaults[key])); };
449
- return FakeRemoteConfigService;
450
- }());
451
- FakeRemoteConfigService.ɵprov = i0.ɵɵdefineInjectable({ factory: function FakeRemoteConfigService_Factory() { return new FakeRemoteConfigService(i0.ɵɵinject(i1.DEFAULTS, 8)); }, token: FakeRemoteConfigService, providedIn: "root" });
452
- FakeRemoteConfigService.decorators = [
453
- { type: i0.Injectable, args: [{ providedIn: 'root' },] }
454
- ];
455
- FakeRemoteConfigService.ctorParameters = function () { return [
456
- { type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [i0.forwardRef(function () { return i1.DEFAULTS; }),] }] }
457
- ]; };
458
-
459
- var PerformanceTraceNoop = /** @class */ (function () {
460
- function PerformanceTraceNoop() {
461
- }
462
- PerformanceTraceNoop.prototype.start = function () { };
463
- PerformanceTraceNoop.prototype.stop = function () { };
464
- PerformanceTraceNoop.prototype.putAttribute = function (key, value) { };
465
- return PerformanceTraceNoop;
466
- }());
467
- var FakeFirebaseService = /** @class */ (function () {
468
- function FakeFirebaseService() {
469
- this.dataCollectionEnabled = Promise.resolve(false);
470
- this.recordException = jasmine.createSpy('recordException');
471
- this.addLogMessage = jasmine.createSpy('addLogMessage');
472
- this.setUserId = jasmine.createSpy('setUserId');
473
- this.setScreenName = jasmine.createSpy('setScreenName');
474
- this.logEvent = jasmine.createSpy('logEvent');
475
- this.createTrace = jasmine.createSpy('createTrace');
476
- this.createTrace.and.resolveTo(new PerformanceTraceNoop());
477
- }
478
- FakeFirebaseService.create = function () {
479
- return new FakeFirebaseService();
480
- };
481
- return FakeFirebaseService;
482
- }());
483
-
484
- var FakeUiService = /** @class */ (function () {
485
- function FakeUiService() {
486
- var _this = this;
487
- this.logError = jasmine.createSpy('logError');
488
- this.toast = jasmine.createSpy('toast');
489
- this.createToast = jasmine.createSpy('createToast');
490
- this.errorToast = jasmine.createSpy('errorToast');
491
- this.yesNoAlert = jasmine.createSpy('yesNoAlert');
492
- this.okAlert = jasmine.createSpy('okAlert');
493
- this.errorAlert = jasmine.createSpy('errorAlert');
494
- this.infoAlert = jasmine.createSpy('infoAlert');
495
- this.textboxInputAlert = jasmine.createSpy('textboxInputAlert');
496
- this.createLoading = jasmine.createSpy('createLoading');
497
- this.watchLoading = jasmine.createSpy('watchObservable');
498
- this.isLoadingVisible = false;
499
- this.confirmTos = jasmine.createSpy('confirmTos');
500
- this.createLoading.and.resolveTo({
501
- present: function () { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
502
- this.isLoadingVisible = true;
503
- return [2 /*return*/];
504
- }); }); },
505
- dismiss: function () { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
506
- this.isLoadingVisible = false;
507
- return [2 /*return*/];
508
- }); }); }
509
- });
510
- }
511
- FakeUiService.create = function () {
512
- return new FakeUiService();
513
- };
514
- return FakeUiService;
515
- }());
516
-
517
- var FakeUserCredential = /** @class */ (function () {
518
- function FakeUserCredential(data) {
519
- this.credential = null;
520
- this.user = {
521
- uid: uuid.v4(),
522
- displayName: uuid.v4(),
523
- isAnonymous: false,
524
- sendEmailVerification: jasmine.createSpy('sendEmailVerification'),
525
- updateProfile: jasmine.createSpy('updateProfile'),
526
- delete: jasmine.createSpy('delete')
527
- };
528
- if (data && (data === null || data === void 0 ? void 0 : data.user)) {
529
- Object.assign(this.user, data.user);
530
- }
531
- }
532
- return FakeUserCredential;
533
- }());
534
-
535
- var FakeAngularFirestore = /** @class */ (function () {
536
- function FakeAngularFirestore() {
537
- }
538
- FakeAngularFirestore.create = function () {
539
- return new FakeAngularFirestore();
540
- };
541
- return FakeAngularFirestore;
542
- }());
543
-
544
- var DUMMYAUTHERROR = {
545
- notFound: { code: 'auth/user-not-found', message: 'There is no user record corresponding to this identifier. The user may have been deleted.', a: null },
546
- emailBadlyFormatted: { code: 'auth/invalid-email', message: 'The email address is badly formatted.', a: null },
547
- weakPassword: { code: 'auth/weak-password', message: 'Password should be at least 6 characters', a: null },
548
- requiresRecentLogin: { code: 'auth/requires-recent-login', message: 'This operation is sensitive and requires recent authentication. Log in again before retrying this request.', a: null }
549
- };
550
- var FakeAngularFireAuth = /** @class */ (function () {
551
- function FakeAngularFireAuth() {
552
- var _this = this;
553
- this._authState$ = new rxjs.BehaviorSubject(null);
554
- this._user$ = new rxjs.BehaviorSubject(null);
555
- this.signInWithEmailAndPassword = jasmine.createSpy('signInWithEmailAndPassword');
556
- this.signInWithPopup = jasmine.createSpy('signInWithPopup');
557
- this.signInAnonymously = jasmine.createSpy('signInAnonymously');
558
- this.createUserWithEmailAndPassword = jasmine.createSpy('createUserWithEmailAndPassword');
559
- this.updateCurrentUser = jasmine.createSpy('updateCurrentUser');
560
- this.signOut = jasmine.createSpy('signOut');
561
- this.sendPasswordResetEmail = jasmine.createSpy('sendPasswordResetEmail');
562
- this.signInWithCredential = jasmine.createSpy('signInWithCredential');
563
- this.signOut.and.callFake(function () { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
564
- return [2 /*return*/, this._user$.next(null)];
565
- }); }); });
566
- }
567
- Object.defineProperty(FakeAngularFireAuth.prototype, "authState", {
568
- get: function () { return this._authState$.asObservable(); },
569
- enumerable: false,
570
- configurable: true
571
- });
572
- Object.defineProperty(FakeAngularFireAuth.prototype, "user", {
573
- get: function () { return this._user$.asObservable(); },
574
- enumerable: false,
575
- configurable: true
576
- });
577
- Object.defineProperty(FakeAngularFireAuth.prototype, "currentUser", {
578
- get: function () { return Promise.resolve(this._user$.value); },
579
- enumerable: false,
580
- configurable: true
581
- });
582
- FakeAngularFireAuth.create = function () {
583
- return new FakeAngularFireAuth();
584
- };
585
- return FakeAngularFireAuth;
586
- }());
587
-
588
- var FakeAngularFirePerformance = /** @class */ (function () {
589
- function FakeAngularFirePerformance() {
590
- this.trace = jasmine.createSpy('trace');
591
- this.start = jasmine.createSpy('start');
592
- this.stop = jasmine.createSpy('stop');
593
- this.putAttribute = jasmine.createSpy('putAttribute');
594
- this.trace.and.resolveTo({
595
- start: this.start,
596
- stop: this.stop,
597
- putAttribute: this.putAttribute
598
- });
599
- }
600
- FakeAngularFirePerformance.create = function () {
601
- return new FakeAngularFirePerformance();
602
- };
603
- return FakeAngularFirePerformance;
604
- }());
605
-
606
- function fakeResponse(response) {
607
- if (response === void 0) { response = {}; }
608
- return function (x) { return new rxjs.Observable(function (sub) {
609
- sub.next(response);
610
- sub.complete();
611
- }); };
612
- }
613
- var FakeAngularFireFunctions = /** @class */ (function () {
614
- function FakeAngularFireFunctions() {
615
- this.httpsCallable = jasmine.createSpy('httpsCallable');
616
- this.httpsCallable.and.returnValue(fakeResponse());
617
- }
618
- FakeAngularFireFunctions.create = function () {
619
- return new FakeAngularFireFunctions();
620
- };
621
- return FakeAngularFireFunctions;
622
- }());
623
-
624
- var FakeAngularFireStorage = /** @class */ (function () {
625
- function FakeAngularFireStorage() {
626
- }
627
- FakeAngularFireStorage.create = function () {
628
- return new FakeAngularFireStorage();
629
- };
630
- return FakeAngularFireStorage;
631
- }());
632
-
633
- var FakeAvatarComponent = /** @class */ (function () {
634
- function FakeAvatarComponent() {
635
- }
636
- return FakeAvatarComponent;
637
- }());
638
- FakeAvatarComponent.decorators = [
639
- { type: i0.Component, args: [{
640
- selector: 'mal-auth-avatar',
641
- template: ''
642
- },] }
643
- ];
644
- FakeAvatarComponent.ctorParameters = function () { return []; };
645
-
646
- // Mal
647
-
648
- /**
649
- * Monkey patch console warn and error to fail if a test makes calls to console.warn or console.error.
650
- */
651
- function patchConsole() {
652
- console.warn = function (message) {
653
- var optionalParams = [];
654
- for (var _i = 1; _i < arguments.length; _i++) {
655
- optionalParams[_i - 1] = arguments[_i];
656
- }
657
- var params = optionalParams ? "\nParams: " + optionalParams : '';
658
- fail("Test contained console warning:\n" + message + params);
659
- };
660
- console.error = function (message) {
661
- var optionalParams = [];
662
- for (var _i = 1; _i < arguments.length; _i++) {
663
- optionalParams[_i - 1] = arguments[_i];
664
- }
665
- var params = optionalParams ? "\nParams: " + optionalParams : '';
666
- fail("Test contained console error:\n" + message + params);
667
- };
668
- }
669
-
670
- function commonPre() {
671
- return __awaiter(this, void 0, void 0, function () {
672
- return __generator(this, function (_a) {
673
- patchConsole();
674
- return [2 /*return*/];
675
- });
676
- });
677
- }
678
- function commonPost(component) {
679
- return __awaiter(this, void 0, void 0, function () {
680
- return __generator(this, function (_a) {
681
- return [2 /*return*/];
682
- });
683
- });
684
- }
685
- function commonTeardown(component) {
686
- return __awaiter(this, void 0, void 0, function () {
687
- return __generator(this, function (_a) {
688
- return [2 /*return*/];
689
- });
690
- });
691
- }
692
-
693
- var MODULES = [
694
- common.CommonModule,
695
- angular.IonicModule,
696
- animations.NoopAnimationsModule,
697
- testing.HttpClientTestingModule,
698
- testing$1.RouterTestingModule,
699
- ];
700
- var MalTestingModule = /** @class */ (function () {
701
- function MalTestingModule() {
702
- }
703
- return MalTestingModule;
704
- }());
705
- MalTestingModule.decorators = [
706
- { type: i0.NgModule, args: [{
707
- imports: __spread(MODULES, [
708
- core.TranslateModule.forRoot({
709
- loader: { provide: core.TranslateLoader, useClass: core.TranslateFakeLoader }
710
- })
711
- ]),
712
- exports: __spread(MODULES, [
713
- core.TranslateModule
714
- ]),
715
- providers: [
716
- // mal fakes
717
- { provide: ngxFirebase.RemoteConfigService, useClass: FakeRemoteConfigService },
718
- { provide: ngxFirebase.AuthProcessService, useClass: FakeAuthProcessService },
719
- { provide: iap.IAPurchaseService, useClass: FakeIAPurchaseService },
720
- // UiFakes
721
- { provide: ngxFirebase.UiService, useClass: FakeUiService },
722
- { provide: ngxFirebase.MalLegaliyDialogUIProiderToken, useClass: FakeUiService },
723
- { provide: ngxFirebase.MalToastUIProviderToken, useClass: FakeUiService },
724
- { provide: ngxFirebase.MalAlertsUIProviderToken, useClass: FakeUiService },
725
- { provide: ngxFirebase.MalLoadingUIProviderToken, useClass: FakeUiService },
726
- // Firebase Fakes
727
- { provide: ngxFirebase.FirebaseService, useClass: FakeFirebaseService },
728
- { provide: ngxFirebase.CrashlyticsService, useClass: FakeFirebaseService },
729
- { provide: ngxFirebase.AnalyticsService, useClass: FakeFirebaseService },
730
- { provide: ngxFirebase.PerformanceService, useClass: FakeFirebaseService },
731
- // @angular/fire
732
- { provide: firestore.AngularFirestore, useClass: FakeAngularFirestore },
733
- { provide: functions.AngularFireFunctions, useClass: FakeAngularFireFunctions },
734
- { provide: performance.AngularFirePerformance, useClass: FakeAngularFirePerformance },
735
- { provide: storage.AngularFireStorage, useClass: FakeAngularFireStorage }
736
- ]
737
- },] }
738
- ];
739
-
740
- var COMPONENTS = [
741
- FakeAvatarComponent
742
- ];
743
- var MalFakeAvatarModule = /** @class */ (function () {
744
- function MalFakeAvatarModule() {
745
- }
746
- return MalFakeAvatarModule;
747
- }());
748
- MalFakeAvatarModule.decorators = [
749
- { type: i0.NgModule, args: [{
750
- declarations: COMPONENTS,
751
- imports: [
752
- MalTestingModule
753
- ],
754
- exports: __spread(COMPONENTS)
755
- },] }
756
- ];
757
-
758
- /**
759
- * Generated bundle index. Do not edit.
760
- */
761
-
762
- exports.DUMMYAUTHERROR = DUMMYAUTHERROR;
763
- exports.FakeAngularFireAuth = FakeAngularFireAuth;
764
- exports.FakeAngularFireFunctions = FakeAngularFireFunctions;
765
- exports.FakeAngularFirePerformance = FakeAngularFirePerformance;
766
- exports.FakeAngularFireStorage = FakeAngularFireStorage;
767
- exports.FakeAngularFirestore = FakeAngularFirestore;
768
- exports.FakeAuthProcessService = FakeAuthProcessService;
769
- exports.FakeAvatarComponent = FakeAvatarComponent;
770
- exports.FakeFirebaseService = FakeFirebaseService;
771
- exports.FakeFirestoreSyncService = FakeFirestoreSyncService;
772
- exports.FakeIAPurchaseService = FakeIAPurchaseService;
773
- exports.FakePickerService = FakePickerService;
774
- exports.FakeRemoteConfigService = FakeRemoteConfigService;
775
- exports.FakeTranslateService = FakeTranslateService;
776
- exports.FakeUiService = FakeUiService;
777
- exports.FakeUserCredential = FakeUserCredential;
778
- exports.MODULES = MODULES;
779
- exports.MalFakeAvatarModule = MalFakeAvatarModule;
780
- exports.MalTestingModule = MalTestingModule;
781
- exports.PerformanceTraceNoop = PerformanceTraceNoop;
782
- exports.commonPost = commonPost;
783
- exports.commonPre = commonPre;
784
- exports.commonTeardown = commonTeardown;
785
- exports.fakeResponse = fakeResponse;
786
- exports.patchConsole = patchConsole;
787
- exports.ɵa = FakeRemoteConfigService;
788
- exports.ɵb = FakeAuthProcessService;
789
- exports.ɵc = FakeIAPurchaseService;
790
- exports.ɵd = FakeUiService;
791
- exports.ɵe = FakeFirebaseService;
792
- exports.ɵf = FakeAngularFirestore;
793
- exports.ɵg = FakeAngularFireFunctions;
794
- exports.ɵh = FakeAngularFirePerformance;
795
- exports.ɵi = FakeAngularFireStorage;
796
- exports.ɵj = FakeAvatarComponent;
797
-
798
- Object.defineProperty(exports, '__esModule', { value: true });
799
-
800
- })));
801
- //# sourceMappingURL=ngx-firebase-testing.umd.js.map