ngx-firebase 1.1.13 → 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.
- package/README.md +51 -11
- package/fesm2022/ngx-firebase.mjs +158 -0
- package/fesm2022/ngx-firebase.mjs.map +1 -0
- package/package.json +40 -30
- package/types/ngx-firebase.d.ts +55 -0
- package/bundles/ngx-firebase-capacitor.umd.js +0 -763
- package/bundles/ngx-firebase-capacitor.umd.js.map +0 -1
- package/bundles/ngx-firebase-capacitor.umd.min.js +0 -16
- package/bundles/ngx-firebase-capacitor.umd.min.js.map +0 -1
- package/bundles/ngx-firebase-iap.umd.js +0 -718
- package/bundles/ngx-firebase-iap.umd.js.map +0 -1
- package/bundles/ngx-firebase-iap.umd.min.js +0 -2
- package/bundles/ngx-firebase-iap.umd.min.js.map +0 -1
- package/bundles/ngx-firebase-ionic-auth-ui.umd.js +0 -2116
- package/bundles/ngx-firebase-ionic-auth-ui.umd.js.map +0 -1
- package/bundles/ngx-firebase-ionic-auth-ui.umd.min.js +0 -16
- package/bundles/ngx-firebase-ionic-auth-ui.umd.min.js.map +0 -1
- package/bundles/ngx-firebase-ionic.umd.js +0 -979
- package/bundles/ngx-firebase-ionic.umd.js.map +0 -1
- package/bundles/ngx-firebase-ionic.umd.min.js +0 -16
- package/bundles/ngx-firebase-ionic.umd.min.js.map +0 -1
- package/bundles/ngx-firebase-testing.umd.js +0 -801
- package/bundles/ngx-firebase-testing.umd.js.map +0 -1
- package/bundles/ngx-firebase-testing.umd.min.js +0 -2
- package/bundles/ngx-firebase-testing.umd.min.js.map +0 -1
- package/bundles/ngx-firebase.umd.js +0 -2299
- package/bundles/ngx-firebase.umd.js.map +0 -1
- package/bundles/ngx-firebase.umd.min.js +0 -2
- package/bundles/ngx-firebase.umd.min.js.map +0 -1
- package/capacitor/capacitor.module.d.ts +0 -9
- package/capacitor/interfaces/config.d.ts +0 -12
- package/capacitor/interfaces/index.d.ts +0 -1
- package/capacitor/ngx-firebase-capacitor.d.ts +0 -5
- package/capacitor/ngx-firebase-capacitor.metadata.json +0 -1
- package/capacitor/package.json +0 -25
- package/capacitor/public-api.d.ts +0 -3
- package/capacitor/services/analytics-firebase-capacitor.service.d.ts +0 -9
- package/capacitor/services/crashlytics-firebase-capacitor.service.d.ts +0 -8
- package/capacitor/services/credential-factory-capacitor.service.d.ts +0 -18
- package/capacitor/services/index.d.ts +0 -3
- package/esm2015/capacitor/capacitor.module.js +0 -78
- package/esm2015/capacitor/interfaces/config.js +0 -3
- package/esm2015/capacitor/interfaces/index.js +0 -2
- package/esm2015/capacitor/ngx-firebase-capacitor.js +0 -6
- package/esm2015/capacitor/public-api.js +0 -4
- package/esm2015/capacitor/services/analytics-firebase-capacitor.service.js +0 -43
- package/esm2015/capacitor/services/crashlytics-firebase-capacitor.service.js +0 -40
- package/esm2015/capacitor/services/credential-factory-capacitor.service.js +0 -182
- package/esm2015/capacitor/services/index.js +0 -4
- package/esm2015/iap/iap.module.js +0 -32
- package/esm2015/iap/interfaces/index.js +0 -5
- package/esm2015/iap/ngx-firebase-iap.js +0 -5
- package/esm2015/iap/public-api.js +0 -5
- package/esm2015/iap/services/iap.service.js +0 -317
- package/esm2015/iap/tokens/index.js +0 -4
- package/esm2015/ionic/animations/index.js +0 -30
- package/esm2015/ionic/components/avatar/avatar.component.js +0 -98
- package/esm2015/ionic/components/avatar/index.js +0 -2
- package/esm2015/ionic/components/index.js +0 -3
- package/esm2015/ionic/components/popover-menu/index.js +0 -3
- package/esm2015/ionic/components/popover-menu/interface.js +0 -2
- package/esm2015/ionic/components/popover-menu/popover-menu.component.js +0 -34
- package/esm2015/ionic/ionic.module.js +0 -46
- package/esm2015/ionic/ngx-firebase-ionic.js +0 -5
- package/esm2015/ionic/public-api.js +0 -5
- package/esm2015/ionic/services/alerts-ionic.service.js +0 -107
- package/esm2015/ionic/services/index.js +0 -6
- package/esm2015/ionic/services/legality-dialog-ionic.service.js +0 -85
- package/esm2015/ionic/services/loading-ionic.service.js +0 -46
- package/esm2015/ionic/services/picker-ionic.service.js +0 -44
- package/esm2015/ionic/services/toast-ionic.service.js +0 -49
- package/esm2015/ionic-auth-ui/animations/index.js +0 -30
- package/esm2015/ionic-auth-ui/components/email-confirmation/email-confirmation.component.js +0 -99
- package/esm2015/ionic-auth-ui/components/email-field/email-field.component.js +0 -25
- package/esm2015/ionic-auth-ui/components/form-field/form-field.component.js +0 -82
- package/esm2015/ionic-auth-ui/components/index.js +0 -12
- package/esm2015/ionic-auth-ui/components/name-field/name-field.component.js +0 -30
- package/esm2015/ionic-auth-ui/components/or-divider/or-divider.component.js +0 -11
- package/esm2015/ionic-auth-ui/components/password-field/password-field.component.js +0 -138
- package/esm2015/ionic-auth-ui/components/password-field/passwordValidatorFunctions.js +0 -62
- package/esm2015/ionic-auth-ui/components/providers/providers.component.js +0 -70
- package/esm2015/ionic-auth-ui/components/reauthenticate/reauthenticate.component.js +0 -99
- package/esm2015/ionic-auth-ui/components/register/register.component.js +0 -142
- package/esm2015/ionic-auth-ui/components/register-with-email/register-with-email.component.js +0 -60
- package/esm2015/ionic-auth-ui/components/register-with-email-popover/register-with-email-popover.component.js +0 -26
- package/esm2015/ionic-auth-ui/components/signin/signin.component.js +0 -92
- package/esm2015/ionic-auth-ui/components/terms-field/terms-field.component.js +0 -99
- package/esm2015/ionic-auth-ui/components/user/user.component.js +0 -195
- package/esm2015/ionic-auth-ui/ionic-auth-ui.module.js +0 -92
- package/esm2015/ionic-auth-ui/ngx-firebase-ionic-auth-ui.js +0 -23
- package/esm2015/ionic-auth-ui/pages/index.js +0 -5
- package/esm2015/ionic-auth-ui/pages/register/index.js +0 -2
- package/esm2015/ionic-auth-ui/pages/register/register.page.js +0 -56
- package/esm2015/ionic-auth-ui/pages/signin/index.js +0 -2
- package/esm2015/ionic-auth-ui/pages/signin/signin.page.js +0 -78
- package/esm2015/ionic-auth-ui/pages/user/index.js +0 -2
- package/esm2015/ionic-auth-ui/pages/user/user.page.js +0 -11
- package/esm2015/ionic-auth-ui/pages/verifyemail/index.js +0 -2
- package/esm2015/ionic-auth-ui/pages/verifyemail/verifyemail.page.js +0 -85
- package/esm2015/ionic-auth-ui/public-api.js +0 -5
- package/esm2015/ngx-firebase.js +0 -6
- package/esm2015/public-api.js +0 -6
- package/esm2015/shared/guards/index.js +0 -3
- package/esm2015/shared/guards/logged-in.guard.js +0 -60
- package/esm2015/shared/guards/verify-email.guard.js +0 -41
- package/esm2015/shared/interfaces/accounts.enum.js +0 -9
- package/esm2015/shared/interfaces/authprovider.enum.js +0 -15
- package/esm2015/shared/interfaces/config.interface.js +0 -61
- package/esm2015/shared/interfaces/index.js +0 -8
- package/esm2015/shared/interfaces/main.interface.js +0 -7
- package/esm2015/shared/interfaces/providers.interface.js +0 -2
- package/esm2015/shared/interfaces/tokens.js +0 -19
- package/esm2015/shared/interfaces/ui-providers.interface.js +0 -2
- package/esm2015/shared/services/analytics.service.js +0 -24
- package/esm2015/shared/services/auth-process.service.js +0 -779
- package/esm2015/shared/services/crashlytics.service.js +0 -42
- package/esm2015/shared/services/device-info.service.js +0 -14
- package/esm2015/shared/services/firebase.service.js +0 -37
- package/esm2015/shared/services/firestore-sync.service.js +0 -60
- package/esm2015/shared/services/index.js +0 -10
- package/esm2015/shared/services/performance.service.js +0 -28
- package/esm2015/shared/services/remoteconfig.service.js +0 -49
- package/esm2015/shared/services/ui.service.js +0 -45
- package/esm2015/shared/shared.module.js +0 -175
- package/esm2015/shared/types/DisplayWidth.js +0 -9
- package/esm2015/shared/types/Location.js +0 -2
- package/esm2015/shared/types/ValueAccessorControlComponent.js +0 -85
- package/esm2015/shared/types/ValueAccessorValueComponent.js +0 -40
- package/esm2015/shared/types/index.js +0 -5
- package/esm2015/testing/fakeavatar.module.js +0 -22
- package/esm2015/testing/fakes/FakeAuthProcessService.js +0 -31
- package/esm2015/testing/fakes/FakeAvatarComponent.js +0 -13
- package/esm2015/testing/fakes/FakeFireService.js +0 -21
- package/esm2015/testing/fakes/FakeFirestoreSyncService.js +0 -11
- package/esm2015/testing/fakes/FakeIAPurchaseService.js +0 -11
- package/esm2015/testing/fakes/FakePickerService.js +0 -9
- package/esm2015/testing/fakes/FakeRemoteConfigService.js +0 -44
- package/esm2015/testing/fakes/FakeTranslateService.js +0 -21
- package/esm2015/testing/fakes/FakeUiService.js +0 -26
- package/esm2015/testing/fakes/angular-fire/FakeAngularFireAuth.js +0 -30
- package/esm2015/testing/fakes/angular-fire/FakeAngularFireFunctions.js +0 -17
- package/esm2015/testing/fakes/angular-fire/FakeAngularFirePerformance.js +0 -17
- package/esm2015/testing/fakes/angular-fire/FakeAngularFireStorage.js +0 -8
- package/esm2015/testing/fakes/angular-fire/FakeAngularFirestore.js +0 -8
- package/esm2015/testing/fakes/angular-fire/FakeUserCredential.js +0 -18
- package/esm2015/testing/fakes/index.js +0 -19
- package/esm2015/testing/ngx-firebase-testing.js +0 -6
- package/esm2015/testing/public-api.js +0 -5
- package/esm2015/testing/test.module.js +0 -66
- package/esm2015/testing/utils/index.js +0 -17
- package/esm2015/testing/utils/patchConsole.js +0 -14
- package/fesm2015/ngx-firebase-capacitor.js +0 -328
- package/fesm2015/ngx-firebase-capacitor.js.map +0 -1
- package/fesm2015/ngx-firebase-iap.js +0 -354
- package/fesm2015/ngx-firebase-iap.js.map +0 -1
- package/fesm2015/ngx-firebase-ionic-auth-ui.js +0 -1482
- package/fesm2015/ngx-firebase-ionic-auth-ui.js.map +0 -1
- package/fesm2015/ngx-firebase-ionic.js +0 -495
- package/fesm2015/ngx-firebase-ionic.js.map +0 -1
- package/fesm2015/ngx-firebase-testing.js +0 -388
- package/fesm2015/ngx-firebase-testing.js.map +0 -1
- package/fesm2015/ngx-firebase.js +0 -1509
- package/fesm2015/ngx-firebase.js.map +0 -1
- package/iap/iap.module.d.ts +0 -5
- package/iap/interfaces/index.d.ts +0 -11
- package/iap/ngx-firebase-iap.d.ts +0 -4
- package/iap/ngx-firebase-iap.metadata.json +0 -1
- package/iap/package.json +0 -23
- package/iap/public-api.d.ts +0 -4
- package/iap/services/iap.service.d.ts +0 -47
- package/iap/tokens/index.d.ts +0 -3
- package/ionic/animations/index.d.ts +0 -1
- package/ionic/components/avatar/avatar.component.d.ts +0 -27
- package/ionic/components/avatar/index.d.ts +0 -1
- package/ionic/components/index.d.ts +0 -2
- package/ionic/components/popover-menu/index.d.ts +0 -2
- package/ionic/components/popover-menu/interface.d.ts +0 -6
- package/ionic/components/popover-menu/popover-menu.component.d.ts +0 -10
- package/ionic/ionic.module.d.ts +0 -2
- package/ionic/ngx-firebase-ionic.d.ts +0 -4
- package/ionic/ngx-firebase-ionic.metadata.json +0 -1
- package/ionic/package.json +0 -30
- package/ionic/public-api.d.ts +0 -4
- package/ionic/services/alerts-ionic.service.d.ts +0 -13
- package/ionic/services/index.d.ts +0 -5
- package/ionic/services/legality-dialog-ionic.service.d.ts +0 -10
- package/ionic/services/loading-ionic.service.d.ts +0 -17
- package/ionic/services/picker-ionic.service.d.ts +0 -9
- package/ionic/services/toast-ionic.service.d.ts +0 -11
- package/ionic-auth-ui/animations/index.d.ts +0 -1
- package/ionic-auth-ui/components/email-confirmation/email-confirmation.component.d.ts +0 -31
- package/ionic-auth-ui/components/email-field/email-field.component.d.ts +0 -7
- package/ionic-auth-ui/components/form-field/form-field.component.d.ts +0 -28
- package/ionic-auth-ui/components/index.d.ts +0 -11
- package/ionic-auth-ui/components/name-field/name-field.component.d.ts +0 -8
- package/ionic-auth-ui/components/or-divider/or-divider.component.d.ts +0 -2
- package/ionic-auth-ui/components/password-field/password-field.component.d.ts +0 -34
- package/ionic-auth-ui/components/password-field/passwordValidatorFunctions.d.ts +0 -4
- package/ionic-auth-ui/components/providers/providers.component.d.ts +0 -26
- package/ionic-auth-ui/components/reauthenticate/reauthenticate.component.d.ts +0 -30
- package/ionic-auth-ui/components/register/register.component.d.ts +0 -26
- package/ionic-auth-ui/components/register-with-email/register-with-email.component.d.ts +0 -24
- package/ionic-auth-ui/components/register-with-email-popover/register-with-email-popover.component.d.ts +0 -7
- package/ionic-auth-ui/components/signin/signin.component.d.ts +0 -28
- package/ionic-auth-ui/components/terms-field/terms-field.component.d.ts +0 -27
- package/ionic-auth-ui/components/user/user.component.d.ts +0 -45
- package/ionic-auth-ui/ionic-auth-ui.module.d.ts +0 -32
- package/ionic-auth-ui/ngx-firebase-ionic-auth-ui.d.ts +0 -22
- package/ionic-auth-ui/ngx-firebase-ionic-auth-ui.metadata.json +0 -1
- package/ionic-auth-ui/package.json +0 -30
- package/ionic-auth-ui/pages/index.d.ts +0 -4
- package/ionic-auth-ui/pages/register/index.d.ts +0 -1
- package/ionic-auth-ui/pages/register/register.page.d.ts +0 -16
- package/ionic-auth-ui/pages/signin/index.d.ts +0 -1
- package/ionic-auth-ui/pages/signin/signin.page.d.ts +0 -22
- package/ionic-auth-ui/pages/user/index.d.ts +0 -1
- package/ionic-auth-ui/pages/user/user.page.d.ts +0 -3
- package/ionic-auth-ui/pages/verifyemail/index.d.ts +0 -1
- package/ionic-auth-ui/pages/verifyemail/verifyemail.page.d.ts +0 -19
- package/ionic-auth-ui/public-api.d.ts +0 -4
- package/ngx-firebase.d.ts +0 -5
- package/ngx-firebase.metadata.json +0 -1
- package/public-api.d.ts +0 -5
- package/shared/guards/index.d.ts +0 -2
- package/shared/guards/logged-in.guard.d.ts +0 -13
- package/shared/guards/verify-email.guard.d.ts +0 -11
- package/shared/interfaces/accounts.enum.d.ts +0 -7
- package/shared/interfaces/authprovider.enum.d.ts +0 -13
- package/shared/interfaces/config.interface.d.ts +0 -63
- package/shared/interfaces/index.d.ts +0 -7
- package/shared/interfaces/main.interface.d.ts +0 -13
- package/shared/interfaces/providers.interface.d.ts +0 -70
- package/shared/interfaces/tokens.d.ts +0 -16
- package/shared/interfaces/ui-providers.interface.d.ts +0 -66
- package/shared/services/analytics.service.d.ts +0 -10
- package/shared/services/auth-process.service.d.ts +0 -197
- package/shared/services/crashlytics.service.d.ts +0 -11
- package/shared/services/device-info.service.d.ts +0 -3
- package/shared/services/firebase.service.d.ts +0 -16
- package/shared/services/firestore-sync.service.d.ts +0 -16
- package/shared/services/index.d.ts +0 -9
- package/shared/services/performance.service.d.ts +0 -12
- package/shared/services/remoteconfig.service.d.ts +0 -18
- package/shared/services/ui.service.d.ts +0 -22
- package/shared/shared.module.d.ts +0 -14
- package/shared/types/DisplayWidth.d.ts +0 -7
- package/shared/types/Location.d.ts +0 -8
- package/shared/types/ValueAccessorControlComponent.d.ts +0 -27
- package/shared/types/ValueAccessorValueComponent.d.ts +0 -19
- package/shared/types/index.d.ts +0 -4
- package/testing/fakeavatar.module.d.ts +0 -2
- package/testing/fakes/FakeAuthProcessService.d.ts +0 -28
- package/testing/fakes/FakeAvatarComponent.d.ts +0 -3
- package/testing/fakes/FakeFireService.d.ts +0 -20
- package/testing/fakes/FakeFirestoreSyncService.d.ts +0 -9
- package/testing/fakes/FakeIAPurchaseService.d.ts +0 -9
- package/testing/fakes/FakePickerService.d.ts +0 -6
- package/testing/fakes/FakeRemoteConfigService.d.ts +0 -19
- package/testing/fakes/FakeTranslateService.d.ts +0 -15
- package/testing/fakes/FakeUiService.d.ts +0 -25
- package/testing/fakes/angular-fire/FakeAngularFireAuth.d.ts +0 -52
- package/testing/fakes/angular-fire/FakeAngularFireFunctions.d.ts +0 -11
- package/testing/fakes/angular-fire/FakeAngularFirePerformance.d.ts +0 -10
- package/testing/fakes/angular-fire/FakeAngularFireStorage.d.ts +0 -5
- package/testing/fakes/angular-fire/FakeAngularFirestore.d.ts +0 -5
- package/testing/fakes/angular-fire/FakeUserCredential.d.ts +0 -9
- package/testing/fakes/index.d.ts +0 -16
- package/testing/ngx-firebase-testing.d.ts +0 -5
- package/testing/ngx-firebase-testing.metadata.json +0 -1
- package/testing/package.json +0 -29
- package/testing/public-api.d.ts +0 -4
- package/testing/test.module.d.ts +0 -4
- package/testing/utils/index.d.ts +0 -5
- package/testing/utils/patchConsole.d.ts +0 -4
|
@@ -1,979 +0,0 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs/operators'), require('@ionic/angular'), require('ngx-firebase'), require('@angular/animations'), require('@ngx-translate/core'), require('rxjs'), require('@angular/common/http'), require('@angular/common')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('ngx-firebase/ionic', ['exports', '@angular/core', 'rxjs/operators', '@ionic/angular', 'ngx-firebase', '@angular/animations', '@ngx-translate/core', 'rxjs', '@angular/common/http', '@angular/common'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['ngx-firebase'] = global['ngx-firebase'] || {}, global['ngx-firebase'].ionic = {}), global.ng.core, global.rxjs.operators, global.ionic.angular, global['ngx-firebase'], global.ng.animations, global['ngx-translate'], global.rxjs, global.ng.common.http, global.ng.common));
|
|
5
|
-
}(this, (function (exports, i0, operators, i1, ngxFirebase, animations, i2, rxjs, http, common) { 'use strict';
|
|
6
|
-
|
|
7
|
-
/*! *****************************************************************************
|
|
8
|
-
Copyright (c) Microsoft Corporation.
|
|
9
|
-
|
|
10
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
11
|
-
purpose with or without fee is hereby granted.
|
|
12
|
-
|
|
13
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
14
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
15
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
16
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
17
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
18
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
19
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
20
|
-
***************************************************************************** */
|
|
21
|
-
/* global Reflect, Promise */
|
|
22
|
-
var extendStatics = function (d, b) {
|
|
23
|
-
extendStatics = Object.setPrototypeOf ||
|
|
24
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
25
|
-
function (d, b) { for (var p in b)
|
|
26
|
-
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
27
|
-
d[p] = b[p]; };
|
|
28
|
-
return extendStatics(d, b);
|
|
29
|
-
};
|
|
30
|
-
function __extends(d, b) {
|
|
31
|
-
if (typeof b !== "function" && b !== null)
|
|
32
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
33
|
-
extendStatics(d, b);
|
|
34
|
-
function __() { this.constructor = d; }
|
|
35
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
36
|
-
}
|
|
37
|
-
var __assign = function () {
|
|
38
|
-
__assign = Object.assign || function __assign(t) {
|
|
39
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
40
|
-
s = arguments[i];
|
|
41
|
-
for (var p in s)
|
|
42
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
43
|
-
t[p] = s[p];
|
|
44
|
-
}
|
|
45
|
-
return t;
|
|
46
|
-
};
|
|
47
|
-
return __assign.apply(this, arguments);
|
|
48
|
-
};
|
|
49
|
-
function __rest(s, e) {
|
|
50
|
-
var t = {};
|
|
51
|
-
for (var p in s)
|
|
52
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
53
|
-
t[p] = s[p];
|
|
54
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
55
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
56
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
57
|
-
t[p[i]] = s[p[i]];
|
|
58
|
-
}
|
|
59
|
-
return t;
|
|
60
|
-
}
|
|
61
|
-
function __decorate(decorators, target, key, desc) {
|
|
62
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
63
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
64
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
65
|
-
else
|
|
66
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
67
|
-
if (d = decorators[i])
|
|
68
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
69
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
70
|
-
}
|
|
71
|
-
function __param(paramIndex, decorator) {
|
|
72
|
-
return function (target, key) { decorator(target, key, paramIndex); };
|
|
73
|
-
}
|
|
74
|
-
function __metadata(metadataKey, metadataValue) {
|
|
75
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
76
|
-
return Reflect.metadata(metadataKey, metadataValue);
|
|
77
|
-
}
|
|
78
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
79
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
80
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
81
|
-
function fulfilled(value) { try {
|
|
82
|
-
step(generator.next(value));
|
|
83
|
-
}
|
|
84
|
-
catch (e) {
|
|
85
|
-
reject(e);
|
|
86
|
-
} }
|
|
87
|
-
function rejected(value) { try {
|
|
88
|
-
step(generator["throw"](value));
|
|
89
|
-
}
|
|
90
|
-
catch (e) {
|
|
91
|
-
reject(e);
|
|
92
|
-
} }
|
|
93
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
94
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
function __generator(thisArg, body) {
|
|
98
|
-
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
99
|
-
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
100
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
101
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
102
|
-
function step(op) {
|
|
103
|
-
if (f)
|
|
104
|
-
throw new TypeError("Generator is already executing.");
|
|
105
|
-
while (_)
|
|
106
|
-
try {
|
|
107
|
-
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)
|
|
108
|
-
return t;
|
|
109
|
-
if (y = 0, t)
|
|
110
|
-
op = [op[0] & 2, t.value];
|
|
111
|
-
switch (op[0]) {
|
|
112
|
-
case 0:
|
|
113
|
-
case 1:
|
|
114
|
-
t = op;
|
|
115
|
-
break;
|
|
116
|
-
case 4:
|
|
117
|
-
_.label++;
|
|
118
|
-
return { value: op[1], done: false };
|
|
119
|
-
case 5:
|
|
120
|
-
_.label++;
|
|
121
|
-
y = op[1];
|
|
122
|
-
op = [0];
|
|
123
|
-
continue;
|
|
124
|
-
case 7:
|
|
125
|
-
op = _.ops.pop();
|
|
126
|
-
_.trys.pop();
|
|
127
|
-
continue;
|
|
128
|
-
default:
|
|
129
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
130
|
-
_ = 0;
|
|
131
|
-
continue;
|
|
132
|
-
}
|
|
133
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
134
|
-
_.label = op[1];
|
|
135
|
-
break;
|
|
136
|
-
}
|
|
137
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
138
|
-
_.label = t[1];
|
|
139
|
-
t = op;
|
|
140
|
-
break;
|
|
141
|
-
}
|
|
142
|
-
if (t && _.label < t[2]) {
|
|
143
|
-
_.label = t[2];
|
|
144
|
-
_.ops.push(op);
|
|
145
|
-
break;
|
|
146
|
-
}
|
|
147
|
-
if (t[2])
|
|
148
|
-
_.ops.pop();
|
|
149
|
-
_.trys.pop();
|
|
150
|
-
continue;
|
|
151
|
-
}
|
|
152
|
-
op = body.call(thisArg, _);
|
|
153
|
-
}
|
|
154
|
-
catch (e) {
|
|
155
|
-
op = [6, e];
|
|
156
|
-
y = 0;
|
|
157
|
-
}
|
|
158
|
-
finally {
|
|
159
|
-
f = t = 0;
|
|
160
|
-
}
|
|
161
|
-
if (op[0] & 5)
|
|
162
|
-
throw op[1];
|
|
163
|
-
return { value: op[0] ? op[1] : void 0, done: true };
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
167
|
-
if (k2 === undefined)
|
|
168
|
-
k2 = k;
|
|
169
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
170
|
-
}) : (function (o, m, k, k2) {
|
|
171
|
-
if (k2 === undefined)
|
|
172
|
-
k2 = k;
|
|
173
|
-
o[k2] = m[k];
|
|
174
|
-
});
|
|
175
|
-
function __exportStar(m, o) {
|
|
176
|
-
for (var p in m)
|
|
177
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
178
|
-
__createBinding(o, m, p);
|
|
179
|
-
}
|
|
180
|
-
function __values(o) {
|
|
181
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
182
|
-
if (m)
|
|
183
|
-
return m.call(o);
|
|
184
|
-
if (o && typeof o.length === "number")
|
|
185
|
-
return {
|
|
186
|
-
next: function () {
|
|
187
|
-
if (o && i >= o.length)
|
|
188
|
-
o = void 0;
|
|
189
|
-
return { value: o && o[i++], done: !o };
|
|
190
|
-
}
|
|
191
|
-
};
|
|
192
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
193
|
-
}
|
|
194
|
-
function __read(o, n) {
|
|
195
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
196
|
-
if (!m)
|
|
197
|
-
return o;
|
|
198
|
-
var i = m.call(o), r, ar = [], e;
|
|
199
|
-
try {
|
|
200
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
201
|
-
ar.push(r.value);
|
|
202
|
-
}
|
|
203
|
-
catch (error) {
|
|
204
|
-
e = { error: error };
|
|
205
|
-
}
|
|
206
|
-
finally {
|
|
207
|
-
try {
|
|
208
|
-
if (r && !r.done && (m = i["return"]))
|
|
209
|
-
m.call(i);
|
|
210
|
-
}
|
|
211
|
-
finally {
|
|
212
|
-
if (e)
|
|
213
|
-
throw e.error;
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
return ar;
|
|
217
|
-
}
|
|
218
|
-
/** @deprecated */
|
|
219
|
-
function __spread() {
|
|
220
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
221
|
-
ar = ar.concat(__read(arguments[i]));
|
|
222
|
-
return ar;
|
|
223
|
-
}
|
|
224
|
-
/** @deprecated */
|
|
225
|
-
function __spreadArrays() {
|
|
226
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
227
|
-
s += arguments[i].length;
|
|
228
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
229
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
230
|
-
r[k] = a[j];
|
|
231
|
-
return r;
|
|
232
|
-
}
|
|
233
|
-
function __spreadArray(to, from) {
|
|
234
|
-
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
235
|
-
to[j] = from[i];
|
|
236
|
-
return to;
|
|
237
|
-
}
|
|
238
|
-
function __await(v) {
|
|
239
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
240
|
-
}
|
|
241
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
242
|
-
if (!Symbol.asyncIterator)
|
|
243
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
244
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
245
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
246
|
-
function verb(n) { if (g[n])
|
|
247
|
-
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
248
|
-
function resume(n, v) { try {
|
|
249
|
-
step(g[n](v));
|
|
250
|
-
}
|
|
251
|
-
catch (e) {
|
|
252
|
-
settle(q[0][3], e);
|
|
253
|
-
} }
|
|
254
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
255
|
-
function fulfill(value) { resume("next", value); }
|
|
256
|
-
function reject(value) { resume("throw", value); }
|
|
257
|
-
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
258
|
-
resume(q[0][0], q[0][1]); }
|
|
259
|
-
}
|
|
260
|
-
function __asyncDelegator(o) {
|
|
261
|
-
var i, p;
|
|
262
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
263
|
-
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; }
|
|
264
|
-
}
|
|
265
|
-
function __asyncValues(o) {
|
|
266
|
-
if (!Symbol.asyncIterator)
|
|
267
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
268
|
-
var m = o[Symbol.asyncIterator], i;
|
|
269
|
-
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);
|
|
270
|
-
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); }); }; }
|
|
271
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
272
|
-
}
|
|
273
|
-
function __makeTemplateObject(cooked, raw) {
|
|
274
|
-
if (Object.defineProperty) {
|
|
275
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
|
276
|
-
}
|
|
277
|
-
else {
|
|
278
|
-
cooked.raw = raw;
|
|
279
|
-
}
|
|
280
|
-
return cooked;
|
|
281
|
-
}
|
|
282
|
-
;
|
|
283
|
-
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
284
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
285
|
-
}) : function (o, v) {
|
|
286
|
-
o["default"] = v;
|
|
287
|
-
};
|
|
288
|
-
function __importStar(mod) {
|
|
289
|
-
if (mod && mod.__esModule)
|
|
290
|
-
return mod;
|
|
291
|
-
var result = {};
|
|
292
|
-
if (mod != null)
|
|
293
|
-
for (var k in mod)
|
|
294
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
295
|
-
__createBinding(result, mod, k);
|
|
296
|
-
__setModuleDefault(result, mod);
|
|
297
|
-
return result;
|
|
298
|
-
}
|
|
299
|
-
function __importDefault(mod) {
|
|
300
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
301
|
-
}
|
|
302
|
-
function __classPrivateFieldGet(receiver, privateMap) {
|
|
303
|
-
if (!privateMap.has(receiver)) {
|
|
304
|
-
throw new TypeError("attempted to get private field on non-instance");
|
|
305
|
-
}
|
|
306
|
-
return privateMap.get(receiver);
|
|
307
|
-
}
|
|
308
|
-
function __classPrivateFieldSet(receiver, privateMap, value) {
|
|
309
|
-
if (!privateMap.has(receiver)) {
|
|
310
|
-
throw new TypeError("attempted to set private field on non-instance");
|
|
311
|
-
}
|
|
312
|
-
privateMap.set(receiver, value);
|
|
313
|
-
return value;
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
var AuthPopoverMenuComponent = /** @class */ (function () {
|
|
317
|
-
function AuthPopoverMenuComponent(popoverController, ui) {
|
|
318
|
-
this.popoverController = popoverController;
|
|
319
|
-
this.ui = ui;
|
|
320
|
-
this.links = [];
|
|
321
|
-
}
|
|
322
|
-
AuthPopoverMenuComponent.prototype.doLinkClick = function (link) {
|
|
323
|
-
try {
|
|
324
|
-
this.popoverController.dismiss();
|
|
325
|
-
if (link.callback) {
|
|
326
|
-
link.callback();
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
catch (error) {
|
|
330
|
-
this.ui.logError(error);
|
|
331
|
-
}
|
|
332
|
-
};
|
|
333
|
-
return AuthPopoverMenuComponent;
|
|
334
|
-
}());
|
|
335
|
-
AuthPopoverMenuComponent.decorators = [
|
|
336
|
-
{ type: i0.Component, args: [{
|
|
337
|
-
template: "<ion-button *ngFor=\"let link of links\"\n expand=\"block\"\n [disabled]=\"link.disabled\"\n (click)=\"doLinkClick(link)\">\n {{ link.text | translate }}\n</ion-button>"
|
|
338
|
-
},] }
|
|
339
|
-
];
|
|
340
|
-
AuthPopoverMenuComponent.ctorParameters = function () { return [
|
|
341
|
-
{ type: i1.PopoverController },
|
|
342
|
-
{ type: ngxFirebase.UiService }
|
|
343
|
-
]; };
|
|
344
|
-
AuthPopoverMenuComponent.propDecorators = {
|
|
345
|
-
links: [{ type: i0.Input }]
|
|
346
|
-
};
|
|
347
|
-
|
|
348
|
-
var AuthAvatarComponent = /** @class */ (function () {
|
|
349
|
-
function AuthAvatarComponent(aps, popoverController, ui, fire) {
|
|
350
|
-
var _this = this;
|
|
351
|
-
this.aps = aps;
|
|
352
|
-
this.popoverController = popoverController;
|
|
353
|
-
this.ui = ui;
|
|
354
|
-
this.fire = fire;
|
|
355
|
-
this.layout = 'default';
|
|
356
|
-
this.canLogout = true;
|
|
357
|
-
this.links = [];
|
|
358
|
-
this.canViewAccount = true;
|
|
359
|
-
this.canDeleteAccount = true;
|
|
360
|
-
this.canEditAccount = true;
|
|
361
|
-
this.showIfAnon = false;
|
|
362
|
-
this.showProfileDialog = new i0.EventEmitter();
|
|
363
|
-
// tslint:disable-next-line no-output-on-prefix
|
|
364
|
-
this.onSignOut = new i0.EventEmitter();
|
|
365
|
-
this.user$ = this.aps.user$
|
|
366
|
-
.pipe(operators.map(function (user) { return ((null !== user && (_this.showIfAnon || !user.isAnonymous)) ? user : null); }));
|
|
367
|
-
this.displayNameInitials$ = this.user$
|
|
368
|
-
.pipe(operators.map(function (user) {
|
|
369
|
-
if (!user || !user.displayName) {
|
|
370
|
-
return '';
|
|
371
|
-
}
|
|
372
|
-
var initialsRegExp = user.displayName.match(/\b\w/g) || [];
|
|
373
|
-
var initials = ((initialsRegExp.shift() || '') + (initialsRegExp.pop() || '')).toUpperCase();
|
|
374
|
-
return initials || '';
|
|
375
|
-
}));
|
|
376
|
-
}
|
|
377
|
-
AuthAvatarComponent.prototype.openAvatarMenu = function (ev) {
|
|
378
|
-
var _this = this;
|
|
379
|
-
return new Promise(function (resolve) { return __awaiter(_this, void 0, void 0, function () {
|
|
380
|
-
var popover;
|
|
381
|
-
return __generator(this, function (_a) {
|
|
382
|
-
switch (_a.label) {
|
|
383
|
-
case 0: return [4 /*yield*/, this.popoverController.create({
|
|
384
|
-
component: AuthPopoverMenuComponent,
|
|
385
|
-
componentProps: {
|
|
386
|
-
links: __spread((this.canViewAccount) ? [{ text: 'auth.menu.profile', callback: this.doShowProfile.bind(this) }] : [], (this.canLogout) ? [{ text: 'auth.menu.signOut', callback: this.signOut.bind(this) }] : [])
|
|
387
|
-
},
|
|
388
|
-
event: ev,
|
|
389
|
-
translucent: true
|
|
390
|
-
})];
|
|
391
|
-
case 1:
|
|
392
|
-
popover = _a.sent();
|
|
393
|
-
popover.onDidDismiss().then(function (data) {
|
|
394
|
-
resolve();
|
|
395
|
-
});
|
|
396
|
-
popover.present();
|
|
397
|
-
return [2 /*return*/];
|
|
398
|
-
}
|
|
399
|
-
});
|
|
400
|
-
}); });
|
|
401
|
-
};
|
|
402
|
-
AuthAvatarComponent.prototype.doShowProfile = function (ev) {
|
|
403
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
404
|
-
return __generator(this, function (_a) {
|
|
405
|
-
this.showProfileDialog.emit(ev);
|
|
406
|
-
this.aps.showProfileDialog.emit(ev);
|
|
407
|
-
return [2 /*return*/];
|
|
408
|
-
});
|
|
409
|
-
});
|
|
410
|
-
};
|
|
411
|
-
AuthAvatarComponent.prototype.signOut = function () {
|
|
412
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
413
|
-
var error_1;
|
|
414
|
-
return __generator(this, function (_a) {
|
|
415
|
-
switch (_a.label) {
|
|
416
|
-
case 0:
|
|
417
|
-
_a.trys.push([0, 2, , 3]);
|
|
418
|
-
this.fire.addLogMessage('Starting signOut');
|
|
419
|
-
return [4 /*yield*/, this.aps.signOut()];
|
|
420
|
-
case 1:
|
|
421
|
-
_a.sent();
|
|
422
|
-
// Sign-out successful.
|
|
423
|
-
this.onSignOut.emit();
|
|
424
|
-
return [3 /*break*/, 3];
|
|
425
|
-
case 2:
|
|
426
|
-
error_1 = _a.sent();
|
|
427
|
-
this.ui.logError(error_1);
|
|
428
|
-
return [3 /*break*/, 3];
|
|
429
|
-
case 3: return [2 /*return*/];
|
|
430
|
-
}
|
|
431
|
-
});
|
|
432
|
-
});
|
|
433
|
-
};
|
|
434
|
-
return AuthAvatarComponent;
|
|
435
|
-
}());
|
|
436
|
-
AuthAvatarComponent.decorators = [
|
|
437
|
-
{ type: i0.Component, args: [{
|
|
438
|
-
selector: 'mal-auth-avatar',
|
|
439
|
-
template: "<ng-container *ngIf=\"(user$ | async) as user\">\n <ion-avatar name='auth-avatar' class=\"avatar\" *ngIf=\"user?.photoURL || !(displayNameInitials$ | async)\" (click)=\"openAvatarMenu($event)\">\n <img [alt]=\"user.name\" [src]=\"user.photoURL\" onerror=\"this.onerror=null;this.src='/assets/images/person.png';\">\n </ion-avatar>\n <ion-button class=\"avatar\" *ngIf=\"!user?.photoURL && (displayNameInitials$ | async)\" (click)=\"openAvatarMenu($event)\">\n {{ displayNameInitials$ | async }}\n </ion-button>\n</ng-container>",
|
|
440
|
-
styles: ["ion-button.avatar{background-color:var(--ion-color-primary-tint);border-radius:50%;font-weight:700}.avatar{border:.75px solid var(--ion-color-primary);box-shadow:2px 2px var(--ion-color-primary-tint);max-width:var(--mal-avatar-size,35px)!important;max-height:var(--mal-avatar-size,35px)!important}"]
|
|
441
|
-
},] }
|
|
442
|
-
];
|
|
443
|
-
AuthAvatarComponent.ctorParameters = function () { return [
|
|
444
|
-
{ type: ngxFirebase.AuthProcessService },
|
|
445
|
-
{ type: i1.PopoverController },
|
|
446
|
-
{ type: ngxFirebase.UiService },
|
|
447
|
-
{ type: ngxFirebase.FirebaseService }
|
|
448
|
-
]; };
|
|
449
|
-
AuthAvatarComponent.propDecorators = {
|
|
450
|
-
layout: [{ type: i0.Input }],
|
|
451
|
-
canLogout: [{ type: i0.Input }],
|
|
452
|
-
links: [{ type: i0.Input }],
|
|
453
|
-
canViewAccount: [{ type: i0.Input }],
|
|
454
|
-
canDeleteAccount: [{ type: i0.Input }],
|
|
455
|
-
canEditAccount: [{ type: i0.Input }],
|
|
456
|
-
showIfAnon: [{ type: i0.Input }],
|
|
457
|
-
showProfileDialog: [{ type: i0.Output }],
|
|
458
|
-
onSignOut: [{ type: i0.Output }]
|
|
459
|
-
};
|
|
460
|
-
|
|
461
|
-
var customAnimation = animations.animation([
|
|
462
|
-
animations.style({
|
|
463
|
-
opacity: '{{opacity}}',
|
|
464
|
-
transform: 'scale({{scale}}) translate3d({{x}}, {{y}}, {{z}})'
|
|
465
|
-
}),
|
|
466
|
-
animations.animate('{{duration}} {{delay}} cubic-bezier(0.0, 0.0, 0.2, 1)', animations.style('*'))
|
|
467
|
-
], {
|
|
468
|
-
params: {
|
|
469
|
-
duration: '200ms',
|
|
470
|
-
delay: '0ms',
|
|
471
|
-
opacity: '0',
|
|
472
|
-
scale: '1',
|
|
473
|
-
x: '0',
|
|
474
|
-
y: '0',
|
|
475
|
-
z: '0'
|
|
476
|
-
}
|
|
477
|
-
});
|
|
478
|
-
var NgxAuthFirebaseuiAnimations = [
|
|
479
|
-
animations.trigger('animate', [animations.transition('void => *', [animations.useAnimation(customAnimation)])]),
|
|
480
|
-
animations.trigger('animateStagger', [
|
|
481
|
-
animations.state('50', animations.style('*')),
|
|
482
|
-
animations.state('100', animations.style('*')),
|
|
483
|
-
animations.state('200', animations.style('*')),
|
|
484
|
-
animations.transition('void => 50', animations.query('@*', [animations.stagger('50ms', [animations.animateChild()])], { optional: true })),
|
|
485
|
-
animations.transition('void => 100', animations.query('@*', [animations.stagger('100ms', [animations.animateChild()])], { optional: true })),
|
|
486
|
-
animations.transition('void => 200', animations.query('@*', [animations.stagger('200ms', [animations.animateChild()])], { optional: true }))
|
|
487
|
-
]),
|
|
488
|
-
];
|
|
489
|
-
|
|
490
|
-
var MalIonicAlertsService = /** @class */ (function () {
|
|
491
|
-
function MalIonicAlertsService(alertController, translateService) {
|
|
492
|
-
this.alertController = alertController;
|
|
493
|
-
this.translateService = translateService;
|
|
494
|
-
}
|
|
495
|
-
MalIonicAlertsService.prototype.yesNoAlert = function (message, options) {
|
|
496
|
-
var _this = this;
|
|
497
|
-
if (options === void 0) { options = {}; }
|
|
498
|
-
return new Promise(function (resolve) { return __awaiter(_this, void 0, void 0, function () {
|
|
499
|
-
var _a, headerKey, subheaderKey, txd, noButton, yesButton, alert;
|
|
500
|
-
return __generator(this, function (_b) {
|
|
501
|
-
switch (_b.label) {
|
|
502
|
-
case 0:
|
|
503
|
-
_a = __read([options.header || 'brand.name', options.subHeader || 'subHeader'], 2), headerKey = _a[0], subheaderKey = _a[1];
|
|
504
|
-
return [4 /*yield*/, this.translateService.get([headerKey, subheaderKey, message, 'shared.button.no', 'shared.button.yes'], options.interpolateParams).toPromise()];
|
|
505
|
-
case 1:
|
|
506
|
-
txd = _b.sent();
|
|
507
|
-
noButton = {
|
|
508
|
-
text: txd['shared.button.no'],
|
|
509
|
-
role: 'cancel',
|
|
510
|
-
handler: function () { return resolve(false); }
|
|
511
|
-
};
|
|
512
|
-
yesButton = {
|
|
513
|
-
text: txd['shared.button.yes'],
|
|
514
|
-
handler: function () { return resolve(true); }
|
|
515
|
-
};
|
|
516
|
-
return [4 /*yield*/, this.alertController.create({
|
|
517
|
-
header: txd[headerKey],
|
|
518
|
-
subHeader: (options === null || options === void 0 ? void 0 : options.subHeader) ? txd[subheaderKey] : undefined,
|
|
519
|
-
message: txd[message],
|
|
520
|
-
buttons: [
|
|
521
|
-
(options === null || options === void 0 ? void 0 : options.defaultToNo) ? yesButton : noButton,
|
|
522
|
-
(options === null || options === void 0 ? void 0 : options.defaultToNo) ? noButton : yesButton
|
|
523
|
-
]
|
|
524
|
-
})];
|
|
525
|
-
case 2:
|
|
526
|
-
alert = _b.sent();
|
|
527
|
-
return [4 /*yield*/, alert.present()];
|
|
528
|
-
case 3:
|
|
529
|
-
_b.sent();
|
|
530
|
-
return [2 /*return*/];
|
|
531
|
-
}
|
|
532
|
-
});
|
|
533
|
-
}); });
|
|
534
|
-
};
|
|
535
|
-
MalIonicAlertsService.prototype.okAlert = function (message, options) {
|
|
536
|
-
var _this = this;
|
|
537
|
-
if (options === void 0) { options = {}; }
|
|
538
|
-
return new Promise(function (resolve) { return __awaiter(_this, void 0, void 0, function () {
|
|
539
|
-
var _a, headerKey, subheaderKey, txd, alert;
|
|
540
|
-
return __generator(this, function (_b) {
|
|
541
|
-
switch (_b.label) {
|
|
542
|
-
case 0:
|
|
543
|
-
_a = __read([options.header || 'brand.name', options.subHeader || 'subHeader'], 2), headerKey = _a[0], subheaderKey = _a[1];
|
|
544
|
-
return [4 /*yield*/, this.translateService.get([headerKey, subheaderKey, message, 'shared.button.ok'], options.interpolateParams).toPromise()];
|
|
545
|
-
case 1:
|
|
546
|
-
txd = _b.sent();
|
|
547
|
-
return [4 /*yield*/, this.alertController.create({
|
|
548
|
-
header: txd[headerKey],
|
|
549
|
-
subHeader: (options.subHeader) ? txd[subheaderKey] : undefined,
|
|
550
|
-
message: txd[message],
|
|
551
|
-
buttons: [txd['shared.button.ok']]
|
|
552
|
-
})];
|
|
553
|
-
case 2:
|
|
554
|
-
alert = _b.sent();
|
|
555
|
-
alert.onDidDismiss().then(function () { return resolve(); });
|
|
556
|
-
return [4 /*yield*/, alert.present()];
|
|
557
|
-
case 3:
|
|
558
|
-
_b.sent();
|
|
559
|
-
return [2 /*return*/];
|
|
560
|
-
}
|
|
561
|
-
});
|
|
562
|
-
}); });
|
|
563
|
-
};
|
|
564
|
-
MalIonicAlertsService.prototype.errorAlert = function (message, options) {
|
|
565
|
-
if (options === void 0) { options = {}; }
|
|
566
|
-
return this.okAlert(message, options);
|
|
567
|
-
};
|
|
568
|
-
MalIonicAlertsService.prototype.infoAlert = function (message, options) {
|
|
569
|
-
if (options === void 0) { options = {}; }
|
|
570
|
-
return this.okAlert(message, options);
|
|
571
|
-
};
|
|
572
|
-
MalIonicAlertsService.prototype.textboxInputAlert = function (options) {
|
|
573
|
-
var _this = this;
|
|
574
|
-
return new Promise(function (resolve) { return __awaiter(_this, void 0, void 0, function () {
|
|
575
|
-
var _a, headerKey, subheaderKey, okKey, placeholderKey, txd, alert;
|
|
576
|
-
return __generator(this, function (_b) {
|
|
577
|
-
switch (_b.label) {
|
|
578
|
-
case 0:
|
|
579
|
-
_a = __read([
|
|
580
|
-
options.header || 'brand.name',
|
|
581
|
-
options.subHeader || 'subHeader',
|
|
582
|
-
options.okText || 'shared.button.ok',
|
|
583
|
-
options.placeholder || 'placeHolder'
|
|
584
|
-
], 4), headerKey = _a[0], subheaderKey = _a[1], okKey = _a[2], placeholderKey = _a[3];
|
|
585
|
-
return [4 /*yield*/, this.translateService.get([headerKey, subheaderKey, 'shared.button.cancel', okKey, placeholderKey], options.interpolateParams).toPromise()];
|
|
586
|
-
case 1:
|
|
587
|
-
txd = _b.sent();
|
|
588
|
-
return [4 /*yield*/, this.alertController.create({
|
|
589
|
-
cssClass: 'my-custom-class',
|
|
590
|
-
header: txd[headerKey],
|
|
591
|
-
subHeader: (options.subHeader) ? txd[subheaderKey] : undefined,
|
|
592
|
-
inputs: [
|
|
593
|
-
{
|
|
594
|
-
name: 'textField',
|
|
595
|
-
type: 'text',
|
|
596
|
-
value: options.value,
|
|
597
|
-
placeholder: txd[placeholderKey],
|
|
598
|
-
}
|
|
599
|
-
],
|
|
600
|
-
buttons: [
|
|
601
|
-
{
|
|
602
|
-
text: txd['shared.button.cancel'],
|
|
603
|
-
role: 'cancel',
|
|
604
|
-
cssClass: 'secondary',
|
|
605
|
-
handler: function () {
|
|
606
|
-
resolve(null);
|
|
607
|
-
}
|
|
608
|
-
}, {
|
|
609
|
-
text: txd[okKey],
|
|
610
|
-
handler: function (data) {
|
|
611
|
-
resolve(data.textField);
|
|
612
|
-
}
|
|
613
|
-
}
|
|
614
|
-
]
|
|
615
|
-
})];
|
|
616
|
-
case 2:
|
|
617
|
-
alert = _b.sent();
|
|
618
|
-
return [4 /*yield*/, alert.present()];
|
|
619
|
-
case 3:
|
|
620
|
-
_b.sent();
|
|
621
|
-
return [2 /*return*/];
|
|
622
|
-
}
|
|
623
|
-
});
|
|
624
|
-
}); });
|
|
625
|
-
};
|
|
626
|
-
return MalIonicAlertsService;
|
|
627
|
-
}());
|
|
628
|
-
MalIonicAlertsService.ɵprov = i0.ɵɵdefineInjectable({ factory: function MalIonicAlertsService_Factory() { return new MalIonicAlertsService(i0.ɵɵinject(i1.AlertController), i0.ɵɵinject(i2.TranslateService)); }, token: MalIonicAlertsService, providedIn: "root" });
|
|
629
|
-
MalIonicAlertsService.decorators = [
|
|
630
|
-
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
631
|
-
];
|
|
632
|
-
MalIonicAlertsService.ctorParameters = function () { return [
|
|
633
|
-
{ type: i1.AlertController },
|
|
634
|
-
{ type: i2.TranslateService }
|
|
635
|
-
]; };
|
|
636
|
-
|
|
637
|
-
var MalIonicLoadingService = /** @class */ (function () {
|
|
638
|
-
function MalIonicLoadingService(loadingController, translateService, remoteConfig) {
|
|
639
|
-
this.loadingController = loadingController;
|
|
640
|
-
this.translateService = translateService;
|
|
641
|
-
this.remoteConfig = remoteConfig;
|
|
642
|
-
this.watchLoading = this.watchLoading.bind(this);
|
|
643
|
-
}
|
|
644
|
-
MalIonicLoadingService.prototype.createLoading = function (message) {
|
|
645
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
646
|
-
return __generator(this, function (_a) {
|
|
647
|
-
switch (_a.label) {
|
|
648
|
-
case 0:
|
|
649
|
-
if (!message) return [3 /*break*/, 3];
|
|
650
|
-
return [4 /*yield*/, this.translateService.get(message).toPromise()];
|
|
651
|
-
case 1:
|
|
652
|
-
message = _a.sent();
|
|
653
|
-
return [4 /*yield*/, this.loadingController.create({ message: message })];
|
|
654
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
655
|
-
case 3: return [4 /*yield*/, this.loadingController.create()];
|
|
656
|
-
case 4: return [2 /*return*/, _a.sent()];
|
|
657
|
-
}
|
|
658
|
-
});
|
|
659
|
-
});
|
|
660
|
-
};
|
|
661
|
-
MalIonicLoadingService.prototype.watchLoading = function (source, options) {
|
|
662
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
663
|
-
var timeoutInterval, _a, loading;
|
|
664
|
-
return __generator(this, function (_b) {
|
|
665
|
-
switch (_b.label) {
|
|
666
|
-
case 0:
|
|
667
|
-
if (!(undefined !== (options === null || options === void 0 ? void 0 : options.timeoutMs))) return [3 /*break*/, 1];
|
|
668
|
-
_a = options.timeoutMs;
|
|
669
|
-
return [3 /*break*/, 3];
|
|
670
|
-
case 1: return [4 /*yield*/, this.remoteConfig.getNumber('timeoutLoading')];
|
|
671
|
-
case 2:
|
|
672
|
-
_a = _b.sent();
|
|
673
|
-
_b.label = 3;
|
|
674
|
-
case 3:
|
|
675
|
-
timeoutInterval = _a;
|
|
676
|
-
return [4 /*yield*/, this.createLoading(options === null || options === void 0 ? void 0 : options.message)];
|
|
677
|
-
case 4:
|
|
678
|
-
loading = _b.sent();
|
|
679
|
-
source = !timeoutInterval ? source : source.pipe(operators.timeout(timeoutInterval));
|
|
680
|
-
return [2 /*return*/, source.pipe(operators.debounceTime((options === null || options === void 0 ? void 0 : options.debounce) || 100)).subscribe(function (isLoading) { return isLoading ? loading.present() : loading.dismiss(); }, function () { loading.dismiss(); }, // Dismiss on error including timeout,
|
|
681
|
-
function () { loading.dismiss(); } // Dismiss on completion
|
|
682
|
-
)];
|
|
683
|
-
}
|
|
684
|
-
});
|
|
685
|
-
});
|
|
686
|
-
};
|
|
687
|
-
return MalIonicLoadingService;
|
|
688
|
-
}());
|
|
689
|
-
MalIonicLoadingService.decorators = [
|
|
690
|
-
{ type: i0.Injectable }
|
|
691
|
-
];
|
|
692
|
-
MalIonicLoadingService.ctorParameters = function () { return [
|
|
693
|
-
{ type: i1.LoadingController },
|
|
694
|
-
{ type: i2.TranslateService },
|
|
695
|
-
{ type: ngxFirebase.RemoteConfigService }
|
|
696
|
-
]; };
|
|
697
|
-
|
|
698
|
-
var MalIonicPickerService = /** @class */ (function () {
|
|
699
|
-
function MalIonicPickerService(pickerController, translateService) {
|
|
700
|
-
this.pickerController = pickerController;
|
|
701
|
-
this.translateService = translateService;
|
|
702
|
-
}
|
|
703
|
-
MalIonicPickerService.prototype.picker = function (options) {
|
|
704
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
705
|
-
var _this = this;
|
|
706
|
-
return __generator(this, function (_a) {
|
|
707
|
-
return [2 /*return*/, new Promise(function (resolve) { return __awaiter(_this, void 0, void 0, function () {
|
|
708
|
-
var _a, cancelKey, confirmKey, txd, picker;
|
|
709
|
-
return __generator(this, function (_b) {
|
|
710
|
-
switch (_b.label) {
|
|
711
|
-
case 0:
|
|
712
|
-
_a = __read([options.cancelText || 'shared.button.cancel', options.confirmText || 'shared.button.confirm'], 2), cancelKey = _a[0], confirmKey = _a[1];
|
|
713
|
-
return [4 /*yield*/, this.translateService.get([options.title, cancelKey, confirmKey], options.interpolateParams).toPromise()];
|
|
714
|
-
case 1:
|
|
715
|
-
txd = _b.sent();
|
|
716
|
-
return [4 /*yield*/, this.pickerController.create({
|
|
717
|
-
columns: [
|
|
718
|
-
{
|
|
719
|
-
name: txd[options.title],
|
|
720
|
-
options: options.options
|
|
721
|
-
}
|
|
722
|
-
],
|
|
723
|
-
cssClass: 'pickerfix',
|
|
724
|
-
buttons: [
|
|
725
|
-
{ text: txd[cancelKey], role: 'cancel', handler: function () { resolve(null); } },
|
|
726
|
-
{ text: txd[confirmKey], handler: function (value) { resolve(value[txd[options.title]].value); } }
|
|
727
|
-
]
|
|
728
|
-
})];
|
|
729
|
-
case 2:
|
|
730
|
-
picker = _b.sent();
|
|
731
|
-
return [4 /*yield*/, picker.present()];
|
|
732
|
-
case 3:
|
|
733
|
-
_b.sent();
|
|
734
|
-
return [2 /*return*/];
|
|
735
|
-
}
|
|
736
|
-
});
|
|
737
|
-
}); })];
|
|
738
|
-
});
|
|
739
|
-
});
|
|
740
|
-
};
|
|
741
|
-
return MalIonicPickerService;
|
|
742
|
-
}());
|
|
743
|
-
MalIonicPickerService.ɵprov = i0.ɵɵdefineInjectable({ factory: function MalIonicPickerService_Factory() { return new MalIonicPickerService(i0.ɵɵinject(i1.PickerController), i0.ɵɵinject(i2.TranslateService)); }, token: MalIonicPickerService, providedIn: "root" });
|
|
744
|
-
MalIonicPickerService.decorators = [
|
|
745
|
-
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
746
|
-
];
|
|
747
|
-
MalIonicPickerService.ctorParameters = function () { return [
|
|
748
|
-
{ type: i1.PickerController },
|
|
749
|
-
{ type: i2.TranslateService }
|
|
750
|
-
]; };
|
|
751
|
-
|
|
752
|
-
var MalIonicToastService = /** @class */ (function () {
|
|
753
|
-
function MalIonicToastService(toastControl, translateService) {
|
|
754
|
-
this.toastControl = toastControl;
|
|
755
|
-
this.translateService = translateService;
|
|
756
|
-
}
|
|
757
|
-
MalIonicToastService.prototype.createToast = function (message, options) {
|
|
758
|
-
if (options === void 0) { options = {}; }
|
|
759
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
760
|
-
var _a, _b, _c;
|
|
761
|
-
return __generator(this, function (_d) {
|
|
762
|
-
switch (_d.label) {
|
|
763
|
-
case 0:
|
|
764
|
-
_b = (_a = this.toastControl).create;
|
|
765
|
-
_c = {};
|
|
766
|
-
return [4 /*yield*/, this.translateService.get(message, options.interpolateParams).toPromise()];
|
|
767
|
-
case 1: return [4 /*yield*/, _b.apply(_a, [(_c.message = _d.sent(),
|
|
768
|
-
_c.duration = options.duration || 3000,
|
|
769
|
-
_c.position = options.position || 'middle',
|
|
770
|
-
_c)])];
|
|
771
|
-
case 2: return [2 /*return*/, _d.sent()];
|
|
772
|
-
}
|
|
773
|
-
});
|
|
774
|
-
});
|
|
775
|
-
};
|
|
776
|
-
MalIonicToastService.prototype.toast = function (message, options) {
|
|
777
|
-
if (options === void 0) { options = {}; }
|
|
778
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
779
|
-
var toast;
|
|
780
|
-
return __generator(this, function (_a) {
|
|
781
|
-
switch (_a.label) {
|
|
782
|
-
case 0: return [4 /*yield*/, this.createToast(message, options)];
|
|
783
|
-
case 1:
|
|
784
|
-
toast = _a.sent();
|
|
785
|
-
return [4 /*yield*/, toast.present()];
|
|
786
|
-
case 2:
|
|
787
|
-
_a.sent();
|
|
788
|
-
return [4 /*yield*/, toast.onDidDismiss()];
|
|
789
|
-
case 3:
|
|
790
|
-
_a.sent();
|
|
791
|
-
return [2 /*return*/];
|
|
792
|
-
}
|
|
793
|
-
});
|
|
794
|
-
});
|
|
795
|
-
};
|
|
796
|
-
MalIonicToastService.prototype.errorToast = function (error, messagePrefix, options) {
|
|
797
|
-
if (options === void 0) { options = {}; }
|
|
798
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
799
|
-
return __generator(this, function (_a) {
|
|
800
|
-
switch (_a.label) {
|
|
801
|
-
case 0:
|
|
802
|
-
if (!messagePrefix) return [3 /*break*/, 2];
|
|
803
|
-
return [4 /*yield*/, this.toast(messagePrefix + ": " + error.message, options)];
|
|
804
|
-
case 1:
|
|
805
|
-
_a.sent();
|
|
806
|
-
return [3 /*break*/, 4];
|
|
807
|
-
case 2: return [4 /*yield*/, this.toast(error.message, options)];
|
|
808
|
-
case 3:
|
|
809
|
-
_a.sent();
|
|
810
|
-
_a.label = 4;
|
|
811
|
-
case 4: return [2 /*return*/];
|
|
812
|
-
}
|
|
813
|
-
});
|
|
814
|
-
});
|
|
815
|
-
};
|
|
816
|
-
return MalIonicToastService;
|
|
817
|
-
}());
|
|
818
|
-
MalIonicToastService.ɵprov = i0.ɵɵdefineInjectable({ factory: function MalIonicToastService_Factory() { return new MalIonicToastService(i0.ɵɵinject(i1.ToastController), i0.ɵɵinject(i2.TranslateService)); }, token: MalIonicToastService, providedIn: "root" });
|
|
819
|
-
MalIonicToastService.decorators = [
|
|
820
|
-
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
821
|
-
];
|
|
822
|
-
MalIonicToastService.ctorParameters = function () { return [
|
|
823
|
-
{ type: i1.ToastController },
|
|
824
|
-
{ type: i2.TranslateService }
|
|
825
|
-
]; };
|
|
826
|
-
|
|
827
|
-
var MalIonicLegalityDialogService = /** @class */ (function () {
|
|
828
|
-
function MalIonicLegalityDialogService(config, alertController, translate) {
|
|
829
|
-
this.config = config;
|
|
830
|
-
this.alertController = alertController;
|
|
831
|
-
this.translate = translate;
|
|
832
|
-
}
|
|
833
|
-
MalIonicLegalityDialogService.prototype.confirmTos = function () {
|
|
834
|
-
var _this = this;
|
|
835
|
-
if (this.config.authUi.tosUrl || this.config.authUi.privacyPolicyUrl) {
|
|
836
|
-
return new Promise(function (resolve) { return __awaiter(_this, void 0, void 0, function () {
|
|
837
|
-
var inputs, tosChecked$, privacyChecked$, readMessage, tosLink, privacyLink, tosLabel, privacyLabel, txd, alert, confirmBtn;
|
|
838
|
-
return __generator(this, function (_a) {
|
|
839
|
-
switch (_a.label) {
|
|
840
|
-
case 0:
|
|
841
|
-
inputs = [];
|
|
842
|
-
tosChecked$ = new rxjs.BehaviorSubject(true);
|
|
843
|
-
privacyChecked$ = new rxjs.BehaviorSubject(true);
|
|
844
|
-
return [4 /*yield*/, this.translate.get('auth.legal.readAndAccept').toPromise()];
|
|
845
|
-
case 1:
|
|
846
|
-
readMessage = _a.sent();
|
|
847
|
-
tosLink = '';
|
|
848
|
-
privacyLink = '';
|
|
849
|
-
if (!this.config.authUi.tosUrl) return [3 /*break*/, 3];
|
|
850
|
-
return [4 /*yield*/, this.translate.get('auth.legal.termsAndConditions').toPromise()];
|
|
851
|
-
case 2:
|
|
852
|
-
tosLabel = _a.sent();
|
|
853
|
-
inputs.push({
|
|
854
|
-
id: 'tos_check',
|
|
855
|
-
type: 'checkbox',
|
|
856
|
-
label: tosLabel,
|
|
857
|
-
checked: tosChecked$.value,
|
|
858
|
-
cssClass: 'authui-checkbox-wrap',
|
|
859
|
-
handler: function (elem) { return tosChecked$.next(elem.checked); }
|
|
860
|
-
});
|
|
861
|
-
tosLink = " <a target=\"_blank\" href=\"" + this.config.authUi.tosUrl + "\" >" + tosLabel + "</a> ";
|
|
862
|
-
_a.label = 3;
|
|
863
|
-
case 3:
|
|
864
|
-
if (!this.config.authUi.privacyPolicyUrl) return [3 /*break*/, 5];
|
|
865
|
-
return [4 /*yield*/, this.translate.get('auth.legal.privacyPolicy').toPromise()];
|
|
866
|
-
case 4:
|
|
867
|
-
privacyLabel = _a.sent();
|
|
868
|
-
inputs.push({
|
|
869
|
-
id: 'privacy_check',
|
|
870
|
-
type: 'checkbox',
|
|
871
|
-
label: privacyLabel,
|
|
872
|
-
checked: privacyChecked$.value,
|
|
873
|
-
cssClass: 'authui-checkbox-wrap',
|
|
874
|
-
handler: function (elem) { return privacyChecked$.next(elem.checked); }
|
|
875
|
-
});
|
|
876
|
-
privacyLink = " <a target=\"_blank\" href=\"" + this.config.authUi.privacyPolicyUrl + "\" >" + privacyLabel + "</a> ";
|
|
877
|
-
_a.label = 5;
|
|
878
|
-
case 5: return [4 /*yield*/, this.translate.get([
|
|
879
|
-
'brand.name',
|
|
880
|
-
'auth.legal.subHeader',
|
|
881
|
-
'auth.legal.declineButton',
|
|
882
|
-
'auth.legal.acceptButton'
|
|
883
|
-
]).toPromise()];
|
|
884
|
-
case 6:
|
|
885
|
-
txd = _a.sent();
|
|
886
|
-
return [4 /*yield*/, this.alertController.create({
|
|
887
|
-
header: txd['brand.name'],
|
|
888
|
-
subHeader: txd['auth.legal.subHeader'],
|
|
889
|
-
message: "" + readMessage + tosLink + privacyLink,
|
|
890
|
-
inputs: inputs,
|
|
891
|
-
buttons: [
|
|
892
|
-
{ text: txd['auth.legal.declineButton'], handler: function (_) { return resolve(false); }, role: 'cancel' },
|
|
893
|
-
{ text: txd['auth.legal.acceptButton'], handler: function (_) { return resolve(true); }, cssClass: 'confirm' }
|
|
894
|
-
],
|
|
895
|
-
})];
|
|
896
|
-
case 7:
|
|
897
|
-
alert = _a.sent();
|
|
898
|
-
return [4 /*yield*/, alert.present()];
|
|
899
|
-
case 8:
|
|
900
|
-
_a.sent();
|
|
901
|
-
confirmBtn = document.querySelector('.confirm');
|
|
902
|
-
if (confirmBtn === null) {
|
|
903
|
-
throw new Error('QuerySelector for confirmBtn returned null');
|
|
904
|
-
}
|
|
905
|
-
confirmBtn.disabled = true;
|
|
906
|
-
rxjs.combineLatest([tosChecked$, privacyChecked$])
|
|
907
|
-
.subscribe(function (_a) {
|
|
908
|
-
var _b = __read(_a, 2), tosChecked = _b[0], privacyChecked = _b[1];
|
|
909
|
-
return confirmBtn.disabled = !tosChecked || !privacyChecked;
|
|
910
|
-
});
|
|
911
|
-
return [2 /*return*/];
|
|
912
|
-
}
|
|
913
|
-
});
|
|
914
|
-
}); });
|
|
915
|
-
}
|
|
916
|
-
else {
|
|
917
|
-
return Promise.resolve(null);
|
|
918
|
-
}
|
|
919
|
-
};
|
|
920
|
-
return MalIonicLegalityDialogService;
|
|
921
|
-
}());
|
|
922
|
-
MalIonicLegalityDialogService.decorators = [
|
|
923
|
-
{ type: i0.Injectable }
|
|
924
|
-
];
|
|
925
|
-
MalIonicLegalityDialogService.ctorParameters = function () { return [
|
|
926
|
-
{ type: undefined, decorators: [{ type: i0.Inject, args: [i0.forwardRef(function () { return ngxFirebase.MalSharedConfigToken; }),] }] },
|
|
927
|
-
{ type: i1.AlertController },
|
|
928
|
-
{ type: i2.TranslateService }
|
|
929
|
-
]; };
|
|
930
|
-
|
|
931
|
-
// @angular/*
|
|
932
|
-
// pages
|
|
933
|
-
var COMPONENTS = [
|
|
934
|
-
AuthAvatarComponent,
|
|
935
|
-
AuthPopoverMenuComponent
|
|
936
|
-
];
|
|
937
|
-
var MalIonicModule = /** @class */ (function () {
|
|
938
|
-
function MalIonicModule() {
|
|
939
|
-
}
|
|
940
|
-
return MalIonicModule;
|
|
941
|
-
}());
|
|
942
|
-
MalIonicModule.decorators = [
|
|
943
|
-
{ type: i0.NgModule, args: [{
|
|
944
|
-
imports: [
|
|
945
|
-
ngxFirebase.MalSharedModule,
|
|
946
|
-
common.CommonModule,
|
|
947
|
-
http.HttpClientModule,
|
|
948
|
-
i1.IonicModule
|
|
949
|
-
],
|
|
950
|
-
exports: COMPONENTS,
|
|
951
|
-
declarations: COMPONENTS,
|
|
952
|
-
providers: [
|
|
953
|
-
{ provide: ngxFirebase.MalAlertsUIProviderToken, useClass: MalIonicAlertsService },
|
|
954
|
-
{ provide: ngxFirebase.MalLoadingUIProviderToken, useClass: MalIonicLoadingService },
|
|
955
|
-
{ provide: ngxFirebase.MalPickerUIProviderToken, useClass: MalIonicPickerService },
|
|
956
|
-
{ provide: ngxFirebase.MalToastUIProviderToken, useClass: MalIonicToastService },
|
|
957
|
-
{ provide: ngxFirebase.MalLegaliyDialogUIProiderToken, useClass: MalIonicLegalityDialogService }
|
|
958
|
-
]
|
|
959
|
-
},] }
|
|
960
|
-
];
|
|
961
|
-
|
|
962
|
-
/**
|
|
963
|
-
* Generated bundle index. Do not edit.
|
|
964
|
-
*/
|
|
965
|
-
|
|
966
|
-
exports.AuthAvatarComponent = AuthAvatarComponent;
|
|
967
|
-
exports.AuthPopoverMenuComponent = AuthPopoverMenuComponent;
|
|
968
|
-
exports.MalIonicAlertsService = MalIonicAlertsService;
|
|
969
|
-
exports.MalIonicLegalityDialogService = MalIonicLegalityDialogService;
|
|
970
|
-
exports.MalIonicLoadingService = MalIonicLoadingService;
|
|
971
|
-
exports.MalIonicModule = MalIonicModule;
|
|
972
|
-
exports.MalIonicPickerService = MalIonicPickerService;
|
|
973
|
-
exports.MalIonicToastService = MalIonicToastService;
|
|
974
|
-
exports.NgxAuthFirebaseuiAnimations = NgxAuthFirebaseuiAnimations;
|
|
975
|
-
|
|
976
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
977
|
-
|
|
978
|
-
})));
|
|
979
|
-
//# sourceMappingURL=ngx-firebase-ionic.umd.js.map
|