@lystech/core 3.0.96 → 3.0.97
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.
|
@@ -2611,7 +2611,7 @@ async function oC(e, t, n) {
|
|
|
2611
2611
|
e._canInitEmulator = !1;
|
|
2612
2612
|
const r = Object.assign(Object.assign({}, _4), t);
|
|
2613
2613
|
try {
|
|
2614
|
-
const a = new
|
|
2614
|
+
const a = new tM(e), i = await Promise.race([
|
|
2615
2615
|
n(),
|
|
2616
2616
|
a.promise
|
|
2617
2617
|
]);
|
|
@@ -2640,7 +2640,7 @@ async function oC(e, t, n) {
|
|
|
2640
2640
|
Ea(e, "network-request-failed", { message: String(a) });
|
|
2641
2641
|
}
|
|
2642
2642
|
}
|
|
2643
|
-
async function
|
|
2643
|
+
async function eM(e, t, n, r, a = {}) {
|
|
2644
2644
|
const i = await Dl(e, t, n, r, a);
|
|
2645
2645
|
return "mfaPendingCredential" in i && Ea(e, "multi-factor-auth-required", {
|
|
2646
2646
|
_serverResponse: i
|
|
@@ -2650,7 +2650,7 @@ function sC(e, t, n, r) {
|
|
|
2650
2650
|
const a = `${t}${n}?${r}`;
|
|
2651
2651
|
return e.config.emulator ? Ev(e.config, a) : `${e.config.apiScheme}://${a}`;
|
|
2652
2652
|
}
|
|
2653
|
-
class
|
|
2653
|
+
class tM {
|
|
2654
2654
|
constructor(t) {
|
|
2655
2655
|
this.auth = t, this.timer = null, this.promise = new Promise((n, r) => {
|
|
2656
2656
|
this.timer = setTimeout(() => r(Sa(
|
|
@@ -2688,10 +2688,10 @@ function uc(e, t, n) {
|
|
|
2688
2688
|
* See the License for the specific language governing permissions and
|
|
2689
2689
|
* limitations under the License.
|
|
2690
2690
|
*/
|
|
2691
|
-
async function
|
|
2691
|
+
async function nM(e, t) {
|
|
2692
2692
|
return Dl(e, "POST", "/v1/accounts:delete", t);
|
|
2693
2693
|
}
|
|
2694
|
-
async function
|
|
2694
|
+
async function rM(e, t) {
|
|
2695
2695
|
return Dl(e, "POST", "/v1/accounts:lookup", t);
|
|
2696
2696
|
}
|
|
2697
2697
|
/**
|
|
@@ -2719,7 +2719,7 @@ function Zs(e) {
|
|
|
2719
2719
|
} catch {
|
|
2720
2720
|
}
|
|
2721
2721
|
}
|
|
2722
|
-
async function
|
|
2722
|
+
async function aM(e, t = !1) {
|
|
2723
2723
|
const n = no(e), r = await n.getIdToken(t), a = Av(r);
|
|
2724
2724
|
Ut(
|
|
2725
2725
|
a && a.exp && a.auth_time && a.iat,
|
|
@@ -2752,7 +2752,7 @@ function Av(e) {
|
|
|
2752
2752
|
return Fc("Caught error parsing JWT payload as JSON", a == null ? void 0 : a.toString()), null;
|
|
2753
2753
|
}
|
|
2754
2754
|
}
|
|
2755
|
-
function
|
|
2755
|
+
function iM(e) {
|
|
2756
2756
|
const t = Av(e);
|
|
2757
2757
|
return Ut(
|
|
2758
2758
|
t,
|
|
@@ -2790,10 +2790,10 @@ async function rl(e, t, n = !1) {
|
|
|
2790
2790
|
try {
|
|
2791
2791
|
return await t;
|
|
2792
2792
|
} catch (r) {
|
|
2793
|
-
throw r instanceof wi &&
|
|
2793
|
+
throw r instanceof wi && oM(r) && e.auth.currentUser === e && await e.auth.signOut(), r;
|
|
2794
2794
|
}
|
|
2795
2795
|
}
|
|
2796
|
-
function
|
|
2796
|
+
function oM({ code: e }) {
|
|
2797
2797
|
return e === "auth/user-disabled" || e === "auth/user-token-expired";
|
|
2798
2798
|
}
|
|
2799
2799
|
/**
|
|
@@ -2812,7 +2812,7 @@ function o6({ code: e }) {
|
|
|
2812
2812
|
* See the License for the specific language governing permissions and
|
|
2813
2813
|
* limitations under the License.
|
|
2814
2814
|
*/
|
|
2815
|
-
class
|
|
2815
|
+
class sM {
|
|
2816
2816
|
constructor(t) {
|
|
2817
2817
|
this.user = t, this.isRunning = !1, this.timerId = null, this.errorBackoff = 3e4;
|
|
2818
2818
|
}
|
|
@@ -2909,7 +2909,7 @@ class lC {
|
|
|
2909
2909
|
*/
|
|
2910
2910
|
async function fu(e) {
|
|
2911
2911
|
var t;
|
|
2912
|
-
const n = e.auth, r = await e.getIdToken(), a = await rl(e,
|
|
2912
|
+
const n = e.auth, r = await e.getIdToken(), a = await rl(e, rM(n, { idToken: r }));
|
|
2913
2913
|
Ut(
|
|
2914
2914
|
a == null ? void 0 : a.users.length,
|
|
2915
2915
|
n,
|
|
@@ -2918,7 +2918,7 @@ async function fu(e) {
|
|
|
2918
2918
|
);
|
|
2919
2919
|
const i = a.users[0];
|
|
2920
2920
|
e._notifyReloadListener(i);
|
|
2921
|
-
const o = !((t = i.providerUserInfo) === null || t === void 0) && t.length ?
|
|
2921
|
+
const o = !((t = i.providerUserInfo) === null || t === void 0) && t.length ? uM(i.providerUserInfo) : [], s = cM(e.providerData, o), c = e.isAnonymous, u = !(e.email && i.passwordHash) && !(s != null && s.length), d = c ? u : !1, f = {
|
|
2922
2922
|
uid: i.localId,
|
|
2923
2923
|
displayName: i.displayName || null,
|
|
2924
2924
|
photoURL: i.photoUrl || null,
|
|
@@ -2932,14 +2932,14 @@ async function fu(e) {
|
|
|
2932
2932
|
};
|
|
2933
2933
|
Object.assign(e, f);
|
|
2934
2934
|
}
|
|
2935
|
-
async function
|
|
2935
|
+
async function lM(e) {
|
|
2936
2936
|
const t = no(e);
|
|
2937
2937
|
await fu(t), await t.auth._persistUserIfCurrent(t), t.auth._notifyListenersIfCurrent(t);
|
|
2938
2938
|
}
|
|
2939
|
-
function
|
|
2939
|
+
function cM(e, t) {
|
|
2940
2940
|
return [...e.filter((r) => !t.some((a) => a.providerId === r.providerId)), ...t];
|
|
2941
2941
|
}
|
|
2942
|
-
function
|
|
2942
|
+
function uM(e) {
|
|
2943
2943
|
return e.map((t) => {
|
|
2944
2944
|
var { providerId: n } = t, r = Sv(t, ["providerId"]);
|
|
2945
2945
|
return {
|
|
@@ -2968,7 +2968,7 @@ function u6(e) {
|
|
|
2968
2968
|
* See the License for the specific language governing permissions and
|
|
2969
2969
|
* limitations under the License.
|
|
2970
2970
|
*/
|
|
2971
|
-
async function
|
|
2971
|
+
async function dM(e, t) {
|
|
2972
2972
|
const n = await oC(e, {}, async () => {
|
|
2973
2973
|
const r = Nl({
|
|
2974
2974
|
grant_type: "refresh_token",
|
|
@@ -3026,7 +3026,7 @@ class al {
|
|
|
3026
3026
|
"internal-error"
|
|
3027
3027
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
3028
3028
|
);
|
|
3029
|
-
const n = "expiresIn" in t && typeof t.expiresIn < "u" ? Number(t.expiresIn) :
|
|
3029
|
+
const n = "expiresIn" in t && typeof t.expiresIn < "u" ? Number(t.expiresIn) : iM(t.idToken);
|
|
3030
3030
|
this.updateTokensAndExpiration(t.idToken, t.refreshToken, n);
|
|
3031
3031
|
}
|
|
3032
3032
|
async getToken(t, n = !1) {
|
|
@@ -3041,7 +3041,7 @@ class al {
|
|
|
3041
3041
|
this.refreshToken = null;
|
|
3042
3042
|
}
|
|
3043
3043
|
async refresh(t, n) {
|
|
3044
|
-
const { accessToken: r, refreshToken: a, expiresIn: i } = await
|
|
3044
|
+
const { accessToken: r, refreshToken: a, expiresIn: i } = await dM(t, n);
|
|
3045
3045
|
this.updateTokensAndExpiration(r, a, Number(i));
|
|
3046
3046
|
}
|
|
3047
3047
|
updateTokensAndExpiration(t, n, r) {
|
|
@@ -3096,7 +3096,7 @@ function ti(e, t) {
|
|
|
3096
3096
|
class Vi {
|
|
3097
3097
|
constructor(t) {
|
|
3098
3098
|
var { uid: n, auth: r, stsTokenManager: a } = t, i = Sv(t, ["uid", "auth", "stsTokenManager"]);
|
|
3099
|
-
this.providerId = "firebase", this.proactiveRefresh = new
|
|
3099
|
+
this.providerId = "firebase", this.proactiveRefresh = new sM(this), this.reloadUserInfo = null, this.reloadListener = null, this.uid = n, this.auth = r, this.stsTokenManager = a, this.accessToken = a.accessToken, this.displayName = i.displayName || null, this.email = i.email || null, this.emailVerified = i.emailVerified || !1, this.phoneNumber = i.phoneNumber || null, this.photoURL = i.photoURL || null, this.isAnonymous = i.isAnonymous || !1, this.tenantId = i.tenantId || null, this.providerData = i.providerData ? [...i.providerData] : [], this.metadata = new lC(i.createdAt || void 0, i.lastLoginAt || void 0);
|
|
3100
3100
|
}
|
|
3101
3101
|
async getIdToken(t) {
|
|
3102
3102
|
const n = await rl(this, this.stsTokenManager.getToken(this.auth, t));
|
|
@@ -3108,10 +3108,10 @@ class Vi {
|
|
|
3108
3108
|
), this.accessToken !== n && (this.accessToken = n, await this.auth._persistUserIfCurrent(this), this.auth._notifyListenersIfCurrent(this)), n;
|
|
3109
3109
|
}
|
|
3110
3110
|
getIdTokenResult(t) {
|
|
3111
|
-
return
|
|
3111
|
+
return aM(this, t);
|
|
3112
3112
|
}
|
|
3113
3113
|
reload() {
|
|
3114
|
-
return
|
|
3114
|
+
return lM(this);
|
|
3115
3115
|
}
|
|
3116
3116
|
_assign(t) {
|
|
3117
3117
|
this !== t && (Ut(
|
|
@@ -3148,7 +3148,7 @@ class Vi {
|
|
|
3148
3148
|
}
|
|
3149
3149
|
async delete() {
|
|
3150
3150
|
const t = await this.getIdToken();
|
|
3151
|
-
return await rl(this,
|
|
3151
|
+
return await rl(this, nM(this.auth, { idToken: t })), this.stsTokenManager.clearRefreshToken(), this.auth.signOut();
|
|
3152
3152
|
}
|
|
3153
3153
|
toJSON() {
|
|
3154
3154
|
return Object.assign(Object.assign({
|
|
@@ -3445,17 +3445,17 @@ function vC(e = pr()) {
|
|
|
3445
3445
|
function Ju(e = pr()) {
|
|
3446
3446
|
return /iphone|ipad|ipod/i.test(e) || /macintosh/i.test(e) && /mobile/i.test(e);
|
|
3447
3447
|
}
|
|
3448
|
-
function
|
|
3448
|
+
function fM(e = pr()) {
|
|
3449
3449
|
var t;
|
|
3450
3450
|
return Ju(e) && !!(!((t = window.navigator) === null || t === void 0) && t.standalone);
|
|
3451
3451
|
}
|
|
3452
|
-
function
|
|
3452
|
+
function hM() {
|
|
3453
3453
|
return IO() && document.documentMode === 10;
|
|
3454
3454
|
}
|
|
3455
3455
|
function gC(e = pr()) {
|
|
3456
3456
|
return Ju(e) || hC(e) || vC(e) || mC(e) || /windows phone/i.test(e) || fC(e);
|
|
3457
3457
|
}
|
|
3458
|
-
function
|
|
3458
|
+
function mM() {
|
|
3459
3459
|
try {
|
|
3460
3460
|
return !!(window && window !== window.top);
|
|
3461
3461
|
} catch {
|
|
@@ -3522,7 +3522,7 @@ class yC {
|
|
|
3522
3522
|
* See the License for the specific language governing permissions and
|
|
3523
3523
|
* limitations under the License.
|
|
3524
3524
|
*/
|
|
3525
|
-
function
|
|
3525
|
+
function vM() {
|
|
3526
3526
|
var e, t;
|
|
3527
3527
|
return (t = (e = document.getElementsByTagName("head")) === null || e === void 0 ? void 0 : e[0]) !== null && t !== void 0 ? t : document;
|
|
3528
3528
|
}
|
|
@@ -3535,21 +3535,21 @@ function CC(e) {
|
|
|
3535
3535
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
3536
3536
|
);
|
|
3537
3537
|
i.customData = a, n(i);
|
|
3538
|
-
}, r.type = "text/javascript", r.charset = "UTF-8",
|
|
3538
|
+
}, r.type = "text/javascript", r.charset = "UTF-8", vM().appendChild(r);
|
|
3539
3539
|
});
|
|
3540
3540
|
}
|
|
3541
|
-
function
|
|
3541
|
+
function gM(e) {
|
|
3542
3542
|
return `__${e}${Math.floor(Math.random() * 1e6)}`;
|
|
3543
3543
|
}
|
|
3544
|
-
const
|
|
3545
|
-
class
|
|
3544
|
+
const pM = "https://www.google.com/recaptcha/enterprise.js?render=", bM = "recaptcha-enterprise", yM = "NO_RECAPTCHA";
|
|
3545
|
+
class CM {
|
|
3546
3546
|
/**
|
|
3547
3547
|
*
|
|
3548
3548
|
* @param authExtern - The corresponding Firebase {@link Auth} instance.
|
|
3549
3549
|
*
|
|
3550
3550
|
*/
|
|
3551
3551
|
constructor(t) {
|
|
3552
|
-
this.type =
|
|
3552
|
+
this.type = bM, this.auth = Tl(t);
|
|
3553
3553
|
}
|
|
3554
3554
|
/**
|
|
3555
3555
|
* Executes the verification process.
|
|
@@ -3587,7 +3587,7 @@ class C6 {
|
|
|
3587
3587
|
c.enterprise.execute(i, { action: t }).then((u) => {
|
|
3588
3588
|
o(u);
|
|
3589
3589
|
}).catch(() => {
|
|
3590
|
-
o(
|
|
3590
|
+
o(yM);
|
|
3591
3591
|
});
|
|
3592
3592
|
}) : s(Error("No reCAPTCHA enterprise script loaded."));
|
|
3593
3593
|
}
|
|
@@ -3600,7 +3600,7 @@ class C6 {
|
|
|
3600
3600
|
o(new Error("RecaptchaVerifier is only supported in browser"));
|
|
3601
3601
|
return;
|
|
3602
3602
|
}
|
|
3603
|
-
CC(
|
|
3603
|
+
CC(pM + s).then(() => {
|
|
3604
3604
|
a(s, i, o);
|
|
3605
3605
|
}).catch((c) => {
|
|
3606
3606
|
o(c);
|
|
@@ -3628,7 +3628,7 @@ class C6 {
|
|
|
3628
3628
|
* See the License for the specific language governing permissions and
|
|
3629
3629
|
* limitations under the License.
|
|
3630
3630
|
*/
|
|
3631
|
-
class
|
|
3631
|
+
class wM {
|
|
3632
3632
|
constructor(t) {
|
|
3633
3633
|
this.auth = t, this.queue = [];
|
|
3634
3634
|
}
|
|
@@ -3683,9 +3683,9 @@ class w6 {
|
|
|
3683
3683
|
* See the License for the specific language governing permissions and
|
|
3684
3684
|
* limitations under the License.
|
|
3685
3685
|
*/
|
|
3686
|
-
class
|
|
3686
|
+
class SM {
|
|
3687
3687
|
constructor(t, n, r, a) {
|
|
3688
|
-
this.app = t, this.heartbeatServiceProvider = n, this.appCheckServiceProvider = r, this.config = a, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new Kp(this), this.idTokenSubscription = new Kp(this), this.beforeStateQueue = new
|
|
3688
|
+
this.app = t, this.heartbeatServiceProvider = n, this.appCheckServiceProvider = r, this.config = a, this.currentUser = null, this.emulatorConfig = null, this.operations = Promise.resolve(), this.authStateSubscription = new Kp(this), this.idTokenSubscription = new Kp(this), this.beforeStateQueue = new wM(this), this.redirectUser = null, this.isProactiveRefreshEnabled = !1, this._canInitEmulator = !0, this._isInitialized = !1, this._deleted = !1, this._initializationPromise = null, this._popupRedirectResolver = null, this._errorFactory = nC, this._agentRecaptchaConfig = null, this._tenantRecaptchaConfigs = {}, this.lastNotifiedUid = void 0, this.languageCode = null, this.tenantId = null, this.settings = { appVerificationDisabledForTesting: !1 }, this.frameworks = [], this.name = t.name, this.clientVersion = a.sdkClientVersion;
|
|
3689
3689
|
}
|
|
3690
3690
|
_initializeWithPersistence(t, n) {
|
|
3691
3691
|
return n && (this._popupRedirectResolver = Ba(n)), this._initializationPromise = this.queue(async () => {
|
|
@@ -3808,7 +3808,7 @@ class S6 {
|
|
|
3808
3808
|
version: "RECAPTCHA_ENTERPRISE"
|
|
3809
3809
|
/* RecaptchaVersion.ENTERPRISE */
|
|
3810
3810
|
}), n = new yC(t);
|
|
3811
|
-
this.tenantId == null ? this._agentRecaptchaConfig = n : this._tenantRecaptchaConfigs[this.tenantId] = n, n.emailPasswordEnabled && new
|
|
3811
|
+
this.tenantId == null ? this._agentRecaptchaConfig = n : this._tenantRecaptchaConfigs[this.tenantId] = n, n.emailPasswordEnabled && new CM(this).verify();
|
|
3812
3812
|
}
|
|
3813
3813
|
_getRecaptchaConfig() {
|
|
3814
3814
|
return this.tenantId == null ? this._agentRecaptchaConfig : this._tenantRecaptchaConfigs[this.tenantId];
|
|
@@ -3989,7 +3989,7 @@ class Kp {
|
|
|
3989
3989
|
* See the License for the specific language governing permissions and
|
|
3990
3990
|
* limitations under the License.
|
|
3991
3991
|
*/
|
|
3992
|
-
function
|
|
3992
|
+
function xM(e, t) {
|
|
3993
3993
|
const n = Jy(e, "auth");
|
|
3994
3994
|
if (n.isInitialized()) {
|
|
3995
3995
|
const a = n.getImmediate(), i = n.getOptions();
|
|
@@ -4003,11 +4003,11 @@ function x6(e, t) {
|
|
|
4003
4003
|
}
|
|
4004
4004
|
return n.initialize({ options: t });
|
|
4005
4005
|
}
|
|
4006
|
-
function
|
|
4006
|
+
function EM(e, t) {
|
|
4007
4007
|
const n = (t == null ? void 0 : t.persistence) || [], r = (Array.isArray(n) ? n : [n]).map(Ba);
|
|
4008
4008
|
t != null && t.errorMap && e._updateErrorMap(t.errorMap), e._initializeWithPersistence(r, t == null ? void 0 : t.popupRedirectResolver);
|
|
4009
4009
|
}
|
|
4010
|
-
function
|
|
4010
|
+
function AM(e, t, n) {
|
|
4011
4011
|
const r = Tl(e);
|
|
4012
4012
|
Ut(
|
|
4013
4013
|
r._canInitEmulator,
|
|
@@ -4020,19 +4020,19 @@ function A6(e, t, n) {
|
|
|
4020
4020
|
"invalid-emulator-scheme"
|
|
4021
4021
|
/* AuthErrorCode.INVALID_EMULATOR_SCHEME */
|
|
4022
4022
|
);
|
|
4023
|
-
const a = !1, i = wC(t), { host: o, port: s } =
|
|
4023
|
+
const a = !1, i = wC(t), { host: o, port: s } = OM(t), c = s === null ? "" : `:${s}`;
|
|
4024
4024
|
r.config.emulator = { url: `${i}//${o}${c}/` }, r.settings.appVerificationDisabledForTesting = !0, r.emulatorConfig = Object.freeze({
|
|
4025
4025
|
host: o,
|
|
4026
4026
|
port: s,
|
|
4027
4027
|
protocol: i.replace(":", ""),
|
|
4028
4028
|
options: Object.freeze({ disableWarnings: a })
|
|
4029
|
-
}),
|
|
4029
|
+
}), MM();
|
|
4030
4030
|
}
|
|
4031
4031
|
function wC(e) {
|
|
4032
4032
|
const t = e.indexOf(":");
|
|
4033
4033
|
return t < 0 ? "" : e.substr(0, t + 1);
|
|
4034
4034
|
}
|
|
4035
|
-
function
|
|
4035
|
+
function OM(e) {
|
|
4036
4036
|
const t = wC(e), n = /(\/\/)?([^?#/]+)/.exec(e.substr(t.length));
|
|
4037
4037
|
if (!n)
|
|
4038
4038
|
return { host: "", port: null };
|
|
@@ -4051,7 +4051,7 @@ function Zp(e) {
|
|
|
4051
4051
|
const t = Number(e);
|
|
4052
4052
|
return isNaN(t) ? null : t;
|
|
4053
4053
|
}
|
|
4054
|
-
function
|
|
4054
|
+
function MM() {
|
|
4055
4055
|
function e() {
|
|
4056
4056
|
const t = document.createElement("p"), n = t.style;
|
|
4057
4057
|
t.innerText = "Running in emulator mode. Do not use with production credentials.", n.position = "fixed", n.width = "100%", n.backgroundColor = "#ffffff", n.border = ".1em solid #000000", n.color = "#b50000", n.bottom = "0px", n.left = "0px", n.margin = "0px", n.zIndex = "10000", n.textAlign = "center", t.classList.add("firebase-emulator-warning"), document.body.appendChild(t);
|
|
@@ -4117,7 +4117,7 @@ class SC {
|
|
|
4117
4117
|
* limitations under the License.
|
|
4118
4118
|
*/
|
|
4119
4119
|
async function Fo(e, t) {
|
|
4120
|
-
return
|
|
4120
|
+
return eM(e, "POST", "/v1/accounts:signInWithIdp", iC(e, t));
|
|
4121
4121
|
}
|
|
4122
4122
|
/**
|
|
4123
4123
|
* @license
|
|
@@ -4135,7 +4135,7 @@ async function Fo(e, t) {
|
|
|
4135
4135
|
* See the License for the specific language governing permissions and
|
|
4136
4136
|
* limitations under the License.
|
|
4137
4137
|
*/
|
|
4138
|
-
const
|
|
4138
|
+
const PM = "http://localhost";
|
|
4139
4139
|
class Ki extends SC {
|
|
4140
4140
|
constructor() {
|
|
4141
4141
|
super(...arguments), this.pendingToken = null;
|
|
@@ -4193,7 +4193,7 @@ class Ki extends SC {
|
|
|
4193
4193
|
}
|
|
4194
4194
|
buildRequest() {
|
|
4195
4195
|
const t = {
|
|
4196
|
-
requestUri:
|
|
4196
|
+
requestUri: PM,
|
|
4197
4197
|
returnSecureToken: !0
|
|
4198
4198
|
};
|
|
4199
4199
|
if (this.pendingToken)
|
|
@@ -4655,7 +4655,7 @@ function xC(e, t, n, r) {
|
|
|
4655
4655
|
throw i.code === "auth/multi-factor-auth-required" ? hu._fromErrorAndOperation(e, i, t, r) : i;
|
|
4656
4656
|
});
|
|
4657
4657
|
}
|
|
4658
|
-
async function
|
|
4658
|
+
async function NM(e, t, n = !1) {
|
|
4659
4659
|
const r = await rl(e, t._linkToIdToken(e.auth, await e.getIdToken()), n);
|
|
4660
4660
|
return Go._forOperation(e, "link", r);
|
|
4661
4661
|
}
|
|
@@ -4675,7 +4675,7 @@ async function N6(e, t, n = !1) {
|
|
|
4675
4675
|
* See the License for the specific language governing permissions and
|
|
4676
4676
|
* limitations under the License.
|
|
4677
4677
|
*/
|
|
4678
|
-
async function
|
|
4678
|
+
async function IM(e, t, n = !1) {
|
|
4679
4679
|
const { auth: r } = e, a = "reauthenticate";
|
|
4680
4680
|
try {
|
|
4681
4681
|
const i = await rl(e, xC(r, a, t, e), n);
|
|
@@ -4723,17 +4723,17 @@ async function I6(e, t, n = !1) {
|
|
|
4723
4723
|
* See the License for the specific language governing permissions and
|
|
4724
4724
|
* limitations under the License.
|
|
4725
4725
|
*/
|
|
4726
|
-
async function
|
|
4726
|
+
async function RM(e, t, n = !1) {
|
|
4727
4727
|
const r = "signIn", a = await xC(e, r, t), i = await Go._fromIdTokenResponse(e, r, a);
|
|
4728
4728
|
return n || await e._updateCurrentUser(i.user), i;
|
|
4729
4729
|
}
|
|
4730
|
-
function
|
|
4730
|
+
function DM(e, t, n, r) {
|
|
4731
4731
|
return no(e).onIdTokenChanged(t, n, r);
|
|
4732
4732
|
}
|
|
4733
|
-
function
|
|
4733
|
+
function TM(e, t, n) {
|
|
4734
4734
|
return no(e).beforeAuthStateChanged(t, n);
|
|
4735
4735
|
}
|
|
4736
|
-
function
|
|
4736
|
+
function jM(e) {
|
|
4737
4737
|
return no(e).signOut();
|
|
4738
4738
|
}
|
|
4739
4739
|
const mu = "__sak";
|
|
@@ -4794,18 +4794,18 @@ class EC {
|
|
|
4794
4794
|
* See the License for the specific language governing permissions and
|
|
4795
4795
|
* limitations under the License.
|
|
4796
4796
|
*/
|
|
4797
|
-
function
|
|
4797
|
+
function LM() {
|
|
4798
4798
|
const e = pr();
|
|
4799
4799
|
return Ov(e) || Ju(e);
|
|
4800
4800
|
}
|
|
4801
|
-
const
|
|
4801
|
+
const FM = 1e3, zM = 10;
|
|
4802
4802
|
class AC extends EC {
|
|
4803
4803
|
constructor() {
|
|
4804
4804
|
super(
|
|
4805
4805
|
() => window.localStorage,
|
|
4806
4806
|
"LOCAL"
|
|
4807
4807
|
/* PersistenceType.LOCAL */
|
|
4808
|
-
), this.boundEventHandler = (t, n) => this.onStorageEvent(t, n), this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.safariLocalStorageNotSynced =
|
|
4808
|
+
), this.boundEventHandler = (t, n) => this.onStorageEvent(t, n), this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.safariLocalStorageNotSynced = LM() && mM(), this.fallbackToPolling = gC(), this._shouldAllowMigration = !0;
|
|
4809
4809
|
}
|
|
4810
4810
|
forAllChangedKeys(t) {
|
|
4811
4811
|
for (const n of Object.keys(this.listeners)) {
|
|
@@ -4832,7 +4832,7 @@ class AC extends EC {
|
|
|
4832
4832
|
const o = this.storage.getItem(r);
|
|
4833
4833
|
!n && this.localCache[r] === o || this.notifyListeners(r, o);
|
|
4834
4834
|
}, i = this.storage.getItem(r);
|
|
4835
|
-
|
|
4835
|
+
hM() && i !== t.newValue && t.newValue !== t.oldValue ? setTimeout(a, zM) : a();
|
|
4836
4836
|
}
|
|
4837
4837
|
notifyListeners(t, n) {
|
|
4838
4838
|
this.localCache[t] = n;
|
|
@@ -4854,7 +4854,7 @@ class AC extends EC {
|
|
|
4854
4854
|
!0
|
|
4855
4855
|
);
|
|
4856
4856
|
});
|
|
4857
|
-
},
|
|
4857
|
+
}, FM);
|
|
4858
4858
|
}
|
|
4859
4859
|
stopPolling() {
|
|
4860
4860
|
this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
|
|
@@ -4884,7 +4884,7 @@ class AC extends EC {
|
|
|
4884
4884
|
}
|
|
4885
4885
|
}
|
|
4886
4886
|
AC.type = "LOCAL";
|
|
4887
|
-
const
|
|
4887
|
+
const kM = AC;
|
|
4888
4888
|
/**
|
|
4889
4889
|
* @license
|
|
4890
4890
|
* Copyright 2020 Google LLC
|
|
@@ -4932,7 +4932,7 @@ const MC = OC;
|
|
|
4932
4932
|
* See the License for the specific language governing permissions and
|
|
4933
4933
|
* limitations under the License.
|
|
4934
4934
|
*/
|
|
4935
|
-
function
|
|
4935
|
+
function HM(e) {
|
|
4936
4936
|
return Promise.all(e.map(async (t) => {
|
|
4937
4937
|
try {
|
|
4938
4938
|
return {
|
|
@@ -5002,7 +5002,7 @@ class _u {
|
|
|
5002
5002
|
eventId: r,
|
|
5003
5003
|
eventType: a
|
|
5004
5004
|
});
|
|
5005
|
-
const s = Array.from(o).map(async (u) => u(n.origin, i)), c = await
|
|
5005
|
+
const s = Array.from(o).map(async (u) => u(n.origin, i)), c = await HM(s);
|
|
5006
5006
|
n.ports[0].postMessage({
|
|
5007
5007
|
status: "done",
|
|
5008
5008
|
eventId: r,
|
|
@@ -5070,7 +5070,7 @@ function Pv(e = "", t = 10) {
|
|
|
5070
5070
|
* See the License for the specific language governing permissions and
|
|
5071
5071
|
* limitations under the License.
|
|
5072
5072
|
*/
|
|
5073
|
-
class
|
|
5073
|
+
class BM {
|
|
5074
5074
|
constructor(t) {
|
|
5075
5075
|
this.target = t, this.handlers = /* @__PURE__ */ new Set();
|
|
5076
5076
|
}
|
|
@@ -5170,7 +5170,7 @@ class B6 {
|
|
|
5170
5170
|
function xa() {
|
|
5171
5171
|
return window;
|
|
5172
5172
|
}
|
|
5173
|
-
function
|
|
5173
|
+
function VM(e) {
|
|
5174
5174
|
xa().location.href = e;
|
|
5175
5175
|
}
|
|
5176
5176
|
/**
|
|
@@ -5192,7 +5192,7 @@ function V6(e) {
|
|
|
5192
5192
|
function PC() {
|
|
5193
5193
|
return typeof xa().WorkerGlobalScope < "u" && typeof xa().importScripts == "function";
|
|
5194
5194
|
}
|
|
5195
|
-
async function
|
|
5195
|
+
async function YM() {
|
|
5196
5196
|
if (!(navigator != null && navigator.serviceWorker))
|
|
5197
5197
|
return null;
|
|
5198
5198
|
try {
|
|
@@ -5201,11 +5201,11 @@ async function Y6() {
|
|
|
5201
5201
|
return null;
|
|
5202
5202
|
}
|
|
5203
5203
|
}
|
|
5204
|
-
function
|
|
5204
|
+
function WM() {
|
|
5205
5205
|
var e;
|
|
5206
5206
|
return ((e = navigator == null ? void 0 : navigator.serviceWorker) === null || e === void 0 ? void 0 : e.controller) || null;
|
|
5207
5207
|
}
|
|
5208
|
-
function
|
|
5208
|
+
function UM() {
|
|
5209
5209
|
return PC() ? self : null;
|
|
5210
5210
|
}
|
|
5211
5211
|
/**
|
|
@@ -5224,7 +5224,7 @@ function U6() {
|
|
|
5224
5224
|
* See the License for the specific language governing permissions and
|
|
5225
5225
|
* limitations under the License.
|
|
5226
5226
|
*/
|
|
5227
|
-
const NC = "firebaseLocalStorageDb",
|
|
5227
|
+
const NC = "firebaseLocalStorageDb", GM = 1, vu = "firebaseLocalStorage", IC = "fbase_key";
|
|
5228
5228
|
class Ll {
|
|
5229
5229
|
constructor(t) {
|
|
5230
5230
|
this.request = t;
|
|
@@ -5242,12 +5242,12 @@ class Ll {
|
|
|
5242
5242
|
function $u(e, t) {
|
|
5243
5243
|
return e.transaction([vu], t ? "readwrite" : "readonly").objectStore(vu);
|
|
5244
5244
|
}
|
|
5245
|
-
function
|
|
5245
|
+
function KM() {
|
|
5246
5246
|
const e = indexedDB.deleteDatabase(NC);
|
|
5247
5247
|
return new Ll(e).toPromise();
|
|
5248
5248
|
}
|
|
5249
5249
|
function Ph() {
|
|
5250
|
-
const e = indexedDB.open(NC,
|
|
5250
|
+
const e = indexedDB.open(NC, GM);
|
|
5251
5251
|
return new Promise((t, n) => {
|
|
5252
5252
|
e.addEventListener("error", () => {
|
|
5253
5253
|
n(e.error);
|
|
@@ -5260,7 +5260,7 @@ function Ph() {
|
|
|
5260
5260
|
}
|
|
5261
5261
|
}), e.addEventListener("success", async () => {
|
|
5262
5262
|
const r = e.result;
|
|
5263
|
-
r.objectStoreNames.contains(vu) ? t(r) : (r.close(), await
|
|
5263
|
+
r.objectStoreNames.contains(vu) ? t(r) : (r.close(), await KM(), t(await Ph()));
|
|
5264
5264
|
});
|
|
5265
5265
|
});
|
|
5266
5266
|
}
|
|
@@ -5271,7 +5271,7 @@ async function Xp(e, t, n) {
|
|
|
5271
5271
|
});
|
|
5272
5272
|
return new Ll(r).toPromise();
|
|
5273
5273
|
}
|
|
5274
|
-
async function
|
|
5274
|
+
async function ZM(e, t) {
|
|
5275
5275
|
const n = $u(e, !1).get(t), r = await new Ll(n).toPromise();
|
|
5276
5276
|
return r === void 0 ? null : r.value;
|
|
5277
5277
|
}
|
|
@@ -5279,7 +5279,7 @@ function qp(e, t) {
|
|
|
5279
5279
|
const n = $u(e, !0).delete(t);
|
|
5280
5280
|
return new Ll(n).toPromise();
|
|
5281
5281
|
}
|
|
5282
|
-
const
|
|
5282
|
+
const QM = 800, XM = 3;
|
|
5283
5283
|
class RC {
|
|
5284
5284
|
constructor() {
|
|
5285
5285
|
this.type = "LOCAL", this._shouldAllowMigration = !0, this.listeners = {}, this.localCache = {}, this.pollTimer = null, this.pendingWrites = 0, this.receiver = null, this.sender = null, this.serviceWorkerReceiverAvailable = !1, this.activeServiceWorker = null, this._workerInitializationPromise = this.initializeServiceWorkerMessaging().then(() => {
|
|
@@ -5296,7 +5296,7 @@ class RC {
|
|
|
5296
5296
|
const r = await this._openDb();
|
|
5297
5297
|
return await t(r);
|
|
5298
5298
|
} catch (r) {
|
|
5299
|
-
if (n++ >
|
|
5299
|
+
if (n++ > XM)
|
|
5300
5300
|
throw r;
|
|
5301
5301
|
this.db && (this.db.close(), this.db = void 0);
|
|
5302
5302
|
}
|
|
@@ -5312,7 +5312,7 @@ class RC {
|
|
|
5312
5312
|
* As the worker we should listen to events from the main window.
|
|
5313
5313
|
*/
|
|
5314
5314
|
async initializeReceiver() {
|
|
5315
|
-
this.receiver = _u._getInstance(
|
|
5315
|
+
this.receiver = _u._getInstance(UM()), this.receiver._subscribe("keyChanged", async (t, n) => ({
|
|
5316
5316
|
keyProcessed: (await this._poll()).includes(n.key)
|
|
5317
5317
|
})), this.receiver._subscribe("ping", async (t, n) => [
|
|
5318
5318
|
"keyChanged"
|
|
@@ -5328,9 +5328,9 @@ class RC {
|
|
|
5328
5328
|
*/
|
|
5329
5329
|
async initializeSender() {
|
|
5330
5330
|
var t, n;
|
|
5331
|
-
if (this.activeServiceWorker = await
|
|
5331
|
+
if (this.activeServiceWorker = await YM(), !this.activeServiceWorker)
|
|
5332
5332
|
return;
|
|
5333
|
-
this.sender = new
|
|
5333
|
+
this.sender = new BM(this.activeServiceWorker);
|
|
5334
5334
|
const r = await this.sender._send(
|
|
5335
5335
|
"ping",
|
|
5336
5336
|
{},
|
|
@@ -5352,7 +5352,7 @@ class RC {
|
|
|
5352
5352
|
* @param key - Storage key which changed.
|
|
5353
5353
|
*/
|
|
5354
5354
|
async notifyServiceWorker(t) {
|
|
5355
|
-
if (!(!this.sender || !this.activeServiceWorker ||
|
|
5355
|
+
if (!(!this.sender || !this.activeServiceWorker || WM() !== this.activeServiceWorker))
|
|
5356
5356
|
try {
|
|
5357
5357
|
await this.sender._send(
|
|
5358
5358
|
"keyChanged",
|
|
@@ -5386,7 +5386,7 @@ class RC {
|
|
|
5386
5386
|
return this._withPendingWrite(async () => (await this._withRetries((r) => Xp(r, t, n)), this.localCache[t] = n, this.notifyServiceWorker(t)));
|
|
5387
5387
|
}
|
|
5388
5388
|
async _get(t) {
|
|
5389
|
-
const n = await this._withRetries((r) =>
|
|
5389
|
+
const n = await this._withRetries((r) => ZM(r, t));
|
|
5390
5390
|
return this.localCache[t] = n, n;
|
|
5391
5391
|
}
|
|
5392
5392
|
async _remove(t) {
|
|
@@ -5416,7 +5416,7 @@ class RC {
|
|
|
5416
5416
|
a(n);
|
|
5417
5417
|
}
|
|
5418
5418
|
startPolling() {
|
|
5419
|
-
this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(),
|
|
5419
|
+
this.stopPolling(), this.pollTimer = setInterval(async () => this._poll(), QM);
|
|
5420
5420
|
}
|
|
5421
5421
|
stopPolling() {
|
|
5422
5422
|
this.pollTimer && (clearInterval(this.pollTimer), this.pollTimer = null);
|
|
@@ -5429,7 +5429,7 @@ class RC {
|
|
|
5429
5429
|
}
|
|
5430
5430
|
}
|
|
5431
5431
|
RC.type = "LOCAL";
|
|
5432
|
-
const
|
|
5432
|
+
const qM = RC;
|
|
5433
5433
|
new Rl(3e4, 6e4);
|
|
5434
5434
|
/**
|
|
5435
5435
|
* @license
|
|
@@ -5501,26 +5501,26 @@ class Nv extends SC {
|
|
|
5501
5501
|
return t && (n.idToken = t), n;
|
|
5502
5502
|
}
|
|
5503
5503
|
}
|
|
5504
|
-
function
|
|
5505
|
-
return
|
|
5504
|
+
function JM(e) {
|
|
5505
|
+
return RM(e.auth, new Nv(e), e.bypassAuthState);
|
|
5506
5506
|
}
|
|
5507
|
-
function
|
|
5507
|
+
function _M(e) {
|
|
5508
5508
|
const { auth: t, user: n } = e;
|
|
5509
5509
|
return Ut(
|
|
5510
5510
|
n,
|
|
5511
5511
|
t,
|
|
5512
5512
|
"internal-error"
|
|
5513
5513
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
5514
|
-
),
|
|
5514
|
+
), IM(n, new Nv(e), e.bypassAuthState);
|
|
5515
5515
|
}
|
|
5516
|
-
async function $
|
|
5516
|
+
async function $M(e) {
|
|
5517
5517
|
const { auth: t, user: n } = e;
|
|
5518
5518
|
return Ut(
|
|
5519
5519
|
n,
|
|
5520
5520
|
t,
|
|
5521
5521
|
"internal-error"
|
|
5522
5522
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
5523
|
-
),
|
|
5523
|
+
), NM(n, new Nv(e), e.bypassAuthState);
|
|
5524
5524
|
}
|
|
5525
5525
|
/**
|
|
5526
5526
|
* @license
|
|
@@ -5580,13 +5580,13 @@ class TC {
|
|
|
5580
5580
|
switch (t) {
|
|
5581
5581
|
case "signInViaPopup":
|
|
5582
5582
|
case "signInViaRedirect":
|
|
5583
|
-
return
|
|
5583
|
+
return JM;
|
|
5584
5584
|
case "linkViaPopup":
|
|
5585
5585
|
case "linkViaRedirect":
|
|
5586
|
-
return $
|
|
5586
|
+
return $M;
|
|
5587
5587
|
case "reauthViaPopup":
|
|
5588
5588
|
case "reauthViaRedirect":
|
|
5589
|
-
return
|
|
5589
|
+
return _M;
|
|
5590
5590
|
default:
|
|
5591
5591
|
Ea(
|
|
5592
5592
|
this.auth,
|
|
@@ -5621,7 +5621,7 @@ class TC {
|
|
|
5621
5621
|
* See the License for the specific language governing permissions and
|
|
5622
5622
|
* limitations under the License.
|
|
5623
5623
|
*/
|
|
5624
|
-
const
|
|
5624
|
+
const e6 = new Rl(2e3, 1e4);
|
|
5625
5625
|
async function Jp(e, t, n) {
|
|
5626
5626
|
const r = Tl(e);
|
|
5627
5627
|
Q4(e, t, Mv);
|
|
@@ -5691,7 +5691,7 @@ class ji extends TC {
|
|
|
5691
5691
|
);
|
|
5692
5692
|
return;
|
|
5693
5693
|
}
|
|
5694
|
-
this.pollId = window.setTimeout(t,
|
|
5694
|
+
this.pollId = window.setTimeout(t, e6.get());
|
|
5695
5695
|
};
|
|
5696
5696
|
t();
|
|
5697
5697
|
}
|
|
@@ -5713,8 +5713,8 @@ ji.currentPopupAction = null;
|
|
|
5713
5713
|
* See the License for the specific language governing permissions and
|
|
5714
5714
|
* limitations under the License.
|
|
5715
5715
|
*/
|
|
5716
|
-
const
|
|
5717
|
-
class
|
|
5716
|
+
const t6 = "pendingRedirect", kc = /* @__PURE__ */ new Map();
|
|
5717
|
+
class n6 extends TC {
|
|
5718
5718
|
constructor(t, n, r = !1) {
|
|
5719
5719
|
super(t, [
|
|
5720
5720
|
"signInViaRedirect",
|
|
@@ -5732,7 +5732,7 @@ class nM extends TC {
|
|
|
5732
5732
|
let t = kc.get(this.auth._key());
|
|
5733
5733
|
if (!t) {
|
|
5734
5734
|
try {
|
|
5735
|
-
const r = await
|
|
5735
|
+
const r = await r6(this.resolver, this.auth) ? await super.execute() : null;
|
|
5736
5736
|
t = () => Promise.resolve(r);
|
|
5737
5737
|
} catch (n) {
|
|
5738
5738
|
t = () => Promise.reject(n);
|
|
@@ -5760,24 +5760,24 @@ class nM extends TC {
|
|
|
5760
5760
|
cleanUp() {
|
|
5761
5761
|
}
|
|
5762
5762
|
}
|
|
5763
|
-
async function
|
|
5764
|
-
const n =
|
|
5763
|
+
async function r6(e, t) {
|
|
5764
|
+
const n = o6(t), r = i6(e);
|
|
5765
5765
|
if (!await r._isAvailable())
|
|
5766
5766
|
return !1;
|
|
5767
5767
|
const a = await r._get(n) === "true";
|
|
5768
5768
|
return await r._remove(n), a;
|
|
5769
5769
|
}
|
|
5770
|
-
function
|
|
5770
|
+
function a6(e, t) {
|
|
5771
5771
|
kc.set(e._key(), t);
|
|
5772
5772
|
}
|
|
5773
|
-
function
|
|
5773
|
+
function i6(e) {
|
|
5774
5774
|
return Ba(e._redirectPersistence);
|
|
5775
5775
|
}
|
|
5776
|
-
function
|
|
5777
|
-
return zc(
|
|
5776
|
+
function o6(e) {
|
|
5777
|
+
return zc(t6, e.config.apiKey, e.name);
|
|
5778
5778
|
}
|
|
5779
|
-
async function
|
|
5780
|
-
const r = Tl(e), a = DC(r, t), o = await new
|
|
5779
|
+
async function s6(e, t, n = !1) {
|
|
5780
|
+
const r = Tl(e), a = DC(r, t), o = await new n6(r, a, n).execute();
|
|
5781
5781
|
return o && !n && (delete o.user._redirectEventId, await r._persistUserIfCurrent(o.user), await r._setRedirectUser(null, t)), o;
|
|
5782
5782
|
}
|
|
5783
5783
|
/**
|
|
@@ -5796,8 +5796,8 @@ async function sM(e, t, n = !1) {
|
|
|
5796
5796
|
* See the License for the specific language governing permissions and
|
|
5797
5797
|
* limitations under the License.
|
|
5798
5798
|
*/
|
|
5799
|
-
const
|
|
5800
|
-
class
|
|
5799
|
+
const l6 = 10 * 60 * 1e3;
|
|
5800
|
+
class c6 {
|
|
5801
5801
|
constructor(t) {
|
|
5802
5802
|
this.auth = t, this.cachedEventUids = /* @__PURE__ */ new Set(), this.consumers = /* @__PURE__ */ new Set(), this.queuedRedirectEvent = null, this.hasHandledPotentialRedirect = !1, this.lastProcessedEventTime = Date.now();
|
|
5803
5803
|
}
|
|
@@ -5813,7 +5813,7 @@ class cM {
|
|
|
5813
5813
|
let n = !1;
|
|
5814
5814
|
return this.consumers.forEach((r) => {
|
|
5815
5815
|
this.isEventForConsumer(t, r) && (n = !0, this.sendToConsumer(t, r), this.saveEventToCache(t));
|
|
5816
|
-
}), this.hasHandledPotentialRedirect || !
|
|
5816
|
+
}), this.hasHandledPotentialRedirect || !u6(t) || (this.hasHandledPotentialRedirect = !0, n || (this.queuedRedirectEvent = t, n = !0)), n;
|
|
5817
5817
|
}
|
|
5818
5818
|
sendToConsumer(t, n) {
|
|
5819
5819
|
var r;
|
|
@@ -5828,7 +5828,7 @@ class cM {
|
|
|
5828
5828
|
return n.filter.includes(t.type) && r;
|
|
5829
5829
|
}
|
|
5830
5830
|
hasEventBeenHandled(t) {
|
|
5831
|
-
return Date.now() - this.lastProcessedEventTime >=
|
|
5831
|
+
return Date.now() - this.lastProcessedEventTime >= l6 && this.cachedEventUids.clear(), this.cachedEventUids.has(_p(t));
|
|
5832
5832
|
}
|
|
5833
5833
|
saveEventToCache(t) {
|
|
5834
5834
|
this.cachedEventUids.add(_p(t)), this.lastProcessedEventTime = Date.now();
|
|
@@ -5840,7 +5840,7 @@ function _p(e) {
|
|
|
5840
5840
|
function jC({ type: e, error: t }) {
|
|
5841
5841
|
return e === "unknown" && (t == null ? void 0 : t.code) === "auth/no-auth-event";
|
|
5842
5842
|
}
|
|
5843
|
-
function
|
|
5843
|
+
function u6(e) {
|
|
5844
5844
|
switch (e.type) {
|
|
5845
5845
|
case "signInViaRedirect":
|
|
5846
5846
|
case "linkViaRedirect":
|
|
@@ -5868,7 +5868,7 @@ function uM(e) {
|
|
|
5868
5868
|
* See the License for the specific language governing permissions and
|
|
5869
5869
|
* limitations under the License.
|
|
5870
5870
|
*/
|
|
5871
|
-
async function
|
|
5871
|
+
async function d6(e, t = {}) {
|
|
5872
5872
|
return Dl(e, "GET", "/v1/projects", t);
|
|
5873
5873
|
}
|
|
5874
5874
|
/**
|
|
@@ -5887,14 +5887,14 @@ async function dM(e, t = {}) {
|
|
|
5887
5887
|
* See the License for the specific language governing permissions and
|
|
5888
5888
|
* limitations under the License.
|
|
5889
5889
|
*/
|
|
5890
|
-
const
|
|
5891
|
-
async function
|
|
5890
|
+
const f6 = /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/, h6 = /^https?/;
|
|
5891
|
+
async function m6(e) {
|
|
5892
5892
|
if (e.config.emulator)
|
|
5893
5893
|
return;
|
|
5894
|
-
const { authorizedDomains: t } = await
|
|
5894
|
+
const { authorizedDomains: t } = await d6(e);
|
|
5895
5895
|
for (const n of t)
|
|
5896
5896
|
try {
|
|
5897
|
-
if (
|
|
5897
|
+
if (v6(n))
|
|
5898
5898
|
return;
|
|
5899
5899
|
} catch {
|
|
5900
5900
|
}
|
|
@@ -5904,15 +5904,15 @@ async function mM(e) {
|
|
|
5904
5904
|
/* AuthErrorCode.INVALID_ORIGIN */
|
|
5905
5905
|
);
|
|
5906
5906
|
}
|
|
5907
|
-
function
|
|
5907
|
+
function v6(e) {
|
|
5908
5908
|
const t = Mh(), { protocol: n, hostname: r } = new URL(t);
|
|
5909
5909
|
if (e.startsWith("chrome-extension://")) {
|
|
5910
5910
|
const o = new URL(e);
|
|
5911
5911
|
return o.hostname === "" && r === "" ? n === "chrome-extension:" && e.replace("chrome-extension://", "") === t.replace("chrome-extension://", "") : n === "chrome-extension:" && o.hostname === r;
|
|
5912
5912
|
}
|
|
5913
|
-
if (!
|
|
5913
|
+
if (!h6.test(n))
|
|
5914
5914
|
return !1;
|
|
5915
|
-
if (
|
|
5915
|
+
if (f6.test(e))
|
|
5916
5916
|
return r === e;
|
|
5917
5917
|
const a = e.replace(/\./g, "\\.");
|
|
5918
5918
|
return new RegExp("^(.+\\." + a + "|" + a + ")$", "i").test(r);
|
|
@@ -5933,7 +5933,7 @@ function vM(e) {
|
|
|
5933
5933
|
* See the License for the specific language governing permissions and
|
|
5934
5934
|
* limitations under the License.
|
|
5935
5935
|
*/
|
|
5936
|
-
const
|
|
5936
|
+
const g6 = new Rl(3e4, 6e4);
|
|
5937
5937
|
function $p() {
|
|
5938
5938
|
const e = xa().___jsl;
|
|
5939
5939
|
if (e != null && e.H) {
|
|
@@ -5943,7 +5943,7 @@ function $p() {
|
|
|
5943
5943
|
e.CP[n] = null;
|
|
5944
5944
|
}
|
|
5945
5945
|
}
|
|
5946
|
-
function
|
|
5946
|
+
function p6(e) {
|
|
5947
5947
|
return new Promise((t, n) => {
|
|
5948
5948
|
var r, a, i;
|
|
5949
5949
|
function o() {
|
|
@@ -5958,7 +5958,7 @@ function pM(e) {
|
|
|
5958
5958
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
|
5959
5959
|
));
|
|
5960
5960
|
},
|
|
5961
|
-
timeout:
|
|
5961
|
+
timeout: g6.get()
|
|
5962
5962
|
});
|
|
5963
5963
|
}
|
|
5964
5964
|
if (!((a = (r = xa().gapi) === null || r === void 0 ? void 0 : r.iframes) === null || a === void 0) && a.Iframe)
|
|
@@ -5966,7 +5966,7 @@ function pM(e) {
|
|
|
5966
5966
|
else if (!((i = xa().gapi) === null || i === void 0) && i.load)
|
|
5967
5967
|
o();
|
|
5968
5968
|
else {
|
|
5969
|
-
const s =
|
|
5969
|
+
const s = gM("iframefcb");
|
|
5970
5970
|
return xa()[s] = () => {
|
|
5971
5971
|
gapi.load ? o() : n(Sa(
|
|
5972
5972
|
e,
|
|
@@ -5980,8 +5980,8 @@ function pM(e) {
|
|
|
5980
5980
|
});
|
|
5981
5981
|
}
|
|
5982
5982
|
let Hc = null;
|
|
5983
|
-
function
|
|
5984
|
-
return Hc = Hc ||
|
|
5983
|
+
function b6(e) {
|
|
5984
|
+
return Hc = Hc || p6(e), Hc;
|
|
5985
5985
|
}
|
|
5986
5986
|
/**
|
|
5987
5987
|
* @license
|
|
@@ -5999,7 +5999,7 @@ function bM(e) {
|
|
|
5999
5999
|
* See the License for the specific language governing permissions and
|
|
6000
6000
|
* limitations under the License.
|
|
6001
6001
|
*/
|
|
6002
|
-
const
|
|
6002
|
+
const y6 = new Rl(5e3, 15e3), C6 = "__/auth/iframe", w6 = "emulator/auth/iframe", S6 = {
|
|
6003
6003
|
style: {
|
|
6004
6004
|
position: "absolute",
|
|
6005
6005
|
top: "-100px",
|
|
@@ -6008,13 +6008,13 @@ const yM = new Rl(5e3, 15e3), CM = "__/auth/iframe", wM = "emulator/auth/iframe"
|
|
|
6008
6008
|
},
|
|
6009
6009
|
"aria-hidden": "true",
|
|
6010
6010
|
tabindex: "-1"
|
|
6011
|
-
},
|
|
6011
|
+
}, x6 = /* @__PURE__ */ new Map([
|
|
6012
6012
|
["identitytoolkit.googleapis.com", "p"],
|
|
6013
6013
|
["staging-identitytoolkit.sandbox.googleapis.com", "s"],
|
|
6014
6014
|
["test-identitytoolkit.sandbox.googleapis.com", "t"]
|
|
6015
6015
|
// test
|
|
6016
6016
|
]);
|
|
6017
|
-
function
|
|
6017
|
+
function E6(e) {
|
|
6018
6018
|
const t = e.config;
|
|
6019
6019
|
Ut(
|
|
6020
6020
|
t.authDomain,
|
|
@@ -6022,17 +6022,17 @@ function EM(e) {
|
|
|
6022
6022
|
"auth-domain-config-required"
|
|
6023
6023
|
/* AuthErrorCode.MISSING_AUTH_DOMAIN */
|
|
6024
6024
|
);
|
|
6025
|
-
const n = t.emulator ? Ev(t,
|
|
6025
|
+
const n = t.emulator ? Ev(t, w6) : `https://${e.config.authDomain}/${C6}`, r = {
|
|
6026
6026
|
apiKey: t.apiKey,
|
|
6027
6027
|
appName: e.name,
|
|
6028
6028
|
v: Il
|
|
6029
|
-
}, a =
|
|
6029
|
+
}, a = x6.get(e.config.apiHost);
|
|
6030
6030
|
a && (r.eid = a);
|
|
6031
6031
|
const i = e._getFrameworks();
|
|
6032
6032
|
return i.length && (r.fw = i.join(",")), `${n}?${Nl(r).slice(1)}`;
|
|
6033
6033
|
}
|
|
6034
|
-
async function
|
|
6035
|
-
const t = await
|
|
6034
|
+
async function A6(e) {
|
|
6035
|
+
const t = await b6(e), n = xa().gapi;
|
|
6036
6036
|
return Ut(
|
|
6037
6037
|
n,
|
|
6038
6038
|
e,
|
|
@@ -6040,9 +6040,9 @@ async function AM(e) {
|
|
|
6040
6040
|
/* AuthErrorCode.INTERNAL_ERROR */
|
|
6041
6041
|
), t.open({
|
|
6042
6042
|
where: document.body,
|
|
6043
|
-
url:
|
|
6043
|
+
url: E6(e),
|
|
6044
6044
|
messageHandlersFilter: n.iframes.CROSS_ORIGIN_IFRAMES_FILTER,
|
|
6045
|
-
attributes:
|
|
6045
|
+
attributes: S6,
|
|
6046
6046
|
dontclear: !0
|
|
6047
6047
|
}, (r) => new Promise(async (a, i) => {
|
|
6048
6048
|
await r.restyle({
|
|
@@ -6055,7 +6055,7 @@ async function AM(e) {
|
|
|
6055
6055
|
/* AuthErrorCode.NETWORK_REQUEST_FAILED */
|
|
6056
6056
|
), s = xa().setTimeout(() => {
|
|
6057
6057
|
i(o);
|
|
6058
|
-
},
|
|
6058
|
+
}, y6.get());
|
|
6059
6059
|
function c() {
|
|
6060
6060
|
xa().clearTimeout(s), a(r);
|
|
6061
6061
|
}
|
|
@@ -6080,12 +6080,12 @@ async function AM(e) {
|
|
|
6080
6080
|
* See the License for the specific language governing permissions and
|
|
6081
6081
|
* limitations under the License.
|
|
6082
6082
|
*/
|
|
6083
|
-
const
|
|
6083
|
+
const O6 = {
|
|
6084
6084
|
location: "yes",
|
|
6085
6085
|
resizable: "yes",
|
|
6086
6086
|
statusbar: "yes",
|
|
6087
6087
|
toolbar: "no"
|
|
6088
|
-
},
|
|
6088
|
+
}, M6 = 500, P6 = 600, N6 = "_blank", I6 = "http://localhost";
|
|
6089
6089
|
class e0 {
|
|
6090
6090
|
constructor(t) {
|
|
6091
6091
|
this.window = t, this.associatedEvent = null;
|
|
@@ -6098,19 +6098,19 @@ class e0 {
|
|
|
6098
6098
|
}
|
|
6099
6099
|
}
|
|
6100
6100
|
}
|
|
6101
|
-
function
|
|
6101
|
+
function R6(e, t, n, r = M6, a = P6) {
|
|
6102
6102
|
const i = Math.max((window.screen.availHeight - a) / 2, 0).toString(), o = Math.max((window.screen.availWidth - r) / 2, 0).toString();
|
|
6103
6103
|
let s = "";
|
|
6104
|
-
const c = Object.assign(Object.assign({},
|
|
6104
|
+
const c = Object.assign(Object.assign({}, O6), {
|
|
6105
6105
|
width: r.toString(),
|
|
6106
6106
|
height: a.toString(),
|
|
6107
6107
|
top: i,
|
|
6108
6108
|
left: o
|
|
6109
6109
|
}), u = pr().toLowerCase();
|
|
6110
|
-
n && (s = dC(u) ?
|
|
6110
|
+
n && (s = dC(u) ? N6 : n), uC(u) && (t = t || I6, c.scrollbars = "yes");
|
|
6111
6111
|
const d = Object.entries(c).reduce((h, [v, g]) => `${h}${v}=${g},`, "");
|
|
6112
|
-
if (
|
|
6113
|
-
return
|
|
6112
|
+
if (fM(u) && s !== "_self")
|
|
6113
|
+
return D6(t || "", s), new e0(null);
|
|
6114
6114
|
const f = window.open(t || "", s, d);
|
|
6115
6115
|
Ut(
|
|
6116
6116
|
f,
|
|
@@ -6124,7 +6124,7 @@ function RM(e, t, n, r = MM, a = PM) {
|
|
|
6124
6124
|
}
|
|
6125
6125
|
return new e0(f);
|
|
6126
6126
|
}
|
|
6127
|
-
function
|
|
6127
|
+
function D6(e, t) {
|
|
6128
6128
|
const n = document.createElement("a");
|
|
6129
6129
|
n.href = e, n.target = t;
|
|
6130
6130
|
const r = document.createEvent("MouseEvent");
|
|
@@ -6146,7 +6146,7 @@ function DM(e, t) {
|
|
|
6146
6146
|
* See the License for the specific language governing permissions and
|
|
6147
6147
|
* limitations under the License.
|
|
6148
6148
|
*/
|
|
6149
|
-
const
|
|
6149
|
+
const T6 = "__/auth/handler", j6 = "emulator/auth/handler", L6 = encodeURIComponent("fac");
|
|
6150
6150
|
async function t0(e, t, n, r, a, i) {
|
|
6151
6151
|
Ut(
|
|
6152
6152
|
e.config.authDomain,
|
|
@@ -6180,11 +6180,11 @@ async function t0(e, t, n, r, a, i) {
|
|
|
6180
6180
|
const s = o;
|
|
6181
6181
|
for (const d of Object.keys(s))
|
|
6182
6182
|
s[d] === void 0 && delete s[d];
|
|
6183
|
-
const c = await e._getAppCheckToken(), u = c ? `#${
|
|
6184
|
-
return `${
|
|
6183
|
+
const c = await e._getAppCheckToken(), u = c ? `#${L6}=${encodeURIComponent(c)}` : "";
|
|
6184
|
+
return `${F6(e)}?${Nl(s).slice(1)}${u}`;
|
|
6185
6185
|
}
|
|
6186
|
-
function
|
|
6187
|
-
return e.emulator ? Ev(e,
|
|
6186
|
+
function F6({ config: e }) {
|
|
6187
|
+
return e.emulator ? Ev(e, j6) : `https://${e.authDomain}/${T6}`;
|
|
6188
6188
|
}
|
|
6189
6189
|
/**
|
|
6190
6190
|
* @license
|
|
@@ -6203,9 +6203,9 @@ function FM({ config: e }) {
|
|
|
6203
6203
|
* limitations under the License.
|
|
6204
6204
|
*/
|
|
6205
6205
|
const pf = "webStorageSupport";
|
|
6206
|
-
class
|
|
6206
|
+
class z6 {
|
|
6207
6207
|
constructor() {
|
|
6208
|
-
this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = MC, this._completeRedirectFn =
|
|
6208
|
+
this.eventManagers = {}, this.iframes = {}, this.originValidationPromises = {}, this._redirectPersistence = MC, this._completeRedirectFn = s6, this._overrideRedirectResult = a6;
|
|
6209
6209
|
}
|
|
6210
6210
|
// Wrapping in async even though we don't await anywhere in order
|
|
6211
6211
|
// to make sure errors are raised as promise rejections
|
|
@@ -6213,12 +6213,12 @@ class zM {
|
|
|
6213
6213
|
var i;
|
|
6214
6214
|
Qa((i = this.eventManagers[t._key()]) === null || i === void 0 ? void 0 : i.manager, "_initialize() not called before _openPopup()");
|
|
6215
6215
|
const o = await t0(t, n, r, Mh(), a);
|
|
6216
|
-
return
|
|
6216
|
+
return R6(t, o, Pv());
|
|
6217
6217
|
}
|
|
6218
6218
|
async _openRedirect(t, n, r, a) {
|
|
6219
6219
|
await this._originValidation(t);
|
|
6220
6220
|
const i = await t0(t, n, r, Mh(), a);
|
|
6221
|
-
return
|
|
6221
|
+
return VM(i), new Promise(() => {
|
|
6222
6222
|
});
|
|
6223
6223
|
}
|
|
6224
6224
|
_initialize(t) {
|
|
@@ -6233,7 +6233,7 @@ class zM {
|
|
|
6233
6233
|
}), r;
|
|
6234
6234
|
}
|
|
6235
6235
|
async initAndGetManager(t) {
|
|
6236
|
-
const n = await
|
|
6236
|
+
const n = await A6(t), r = new c6(t);
|
|
6237
6237
|
return n.register("authEvent", (a) => (Ut(
|
|
6238
6238
|
a == null ? void 0 : a.authEvent,
|
|
6239
6239
|
t,
|
|
@@ -6257,13 +6257,13 @@ class zM {
|
|
|
6257
6257
|
}
|
|
6258
6258
|
_originValidation(t) {
|
|
6259
6259
|
const n = t._key();
|
|
6260
|
-
return this.originValidationPromises[n] || (this.originValidationPromises[n] =
|
|
6260
|
+
return this.originValidationPromises[n] || (this.originValidationPromises[n] = m6(t)), this.originValidationPromises[n];
|
|
6261
6261
|
}
|
|
6262
6262
|
get _shouldInitProactively() {
|
|
6263
6263
|
return gC() || Ov() || Ju();
|
|
6264
6264
|
}
|
|
6265
6265
|
}
|
|
6266
|
-
const
|
|
6266
|
+
const k6 = z6;
|
|
6267
6267
|
var n0 = "@firebase/auth", r0 = "0.23.2";
|
|
6268
6268
|
/**
|
|
6269
6269
|
* @license
|
|
@@ -6281,7 +6281,7 @@ var n0 = "@firebase/auth", r0 = "0.23.2";
|
|
|
6281
6281
|
* See the License for the specific language governing permissions and
|
|
6282
6282
|
* limitations under the License.
|
|
6283
6283
|
*/
|
|
6284
|
-
class
|
|
6284
|
+
class H6 {
|
|
6285
6285
|
constructor(t) {
|
|
6286
6286
|
this.auth = t, this.internalListeners = /* @__PURE__ */ new Map();
|
|
6287
6287
|
}
|
|
@@ -6332,7 +6332,7 @@ class HM {
|
|
|
6332
6332
|
* See the License for the specific language governing permissions and
|
|
6333
6333
|
* limitations under the License.
|
|
6334
6334
|
*/
|
|
6335
|
-
function
|
|
6335
|
+
function B6(e) {
|
|
6336
6336
|
switch (e) {
|
|
6337
6337
|
case "Node":
|
|
6338
6338
|
return "node";
|
|
@@ -6346,7 +6346,7 @@ function BM(e) {
|
|
|
6346
6346
|
return;
|
|
6347
6347
|
}
|
|
6348
6348
|
}
|
|
6349
|
-
function
|
|
6349
|
+
function V6(e) {
|
|
6350
6350
|
tl(new Uo(
|
|
6351
6351
|
"auth",
|
|
6352
6352
|
(t, { options: n }) => {
|
|
@@ -6360,8 +6360,8 @@ function VM(e) {
|
|
|
6360
6360
|
tokenApiHost: "securetoken.googleapis.com",
|
|
6361
6361
|
apiScheme: "https",
|
|
6362
6362
|
sdkClientVersion: pC(e)
|
|
6363
|
-
}, u = new
|
|
6364
|
-
return
|
|
6363
|
+
}, u = new SM(r, a, i, c);
|
|
6364
|
+
return EM(u, n), u;
|
|
6365
6365
|
},
|
|
6366
6366
|
"PUBLIC"
|
|
6367
6367
|
/* ComponentType.PUBLIC */
|
|
@@ -6380,14 +6380,14 @@ function VM(e) {
|
|
|
6380
6380
|
"auth"
|
|
6381
6381
|
/* _ComponentName.AUTH */
|
|
6382
6382
|
).getImmediate());
|
|
6383
|
-
return ((r) => new
|
|
6383
|
+
return ((r) => new H6(r))(n);
|
|
6384
6384
|
},
|
|
6385
6385
|
"PRIVATE"
|
|
6386
6386
|
/* ComponentType.PRIVATE */
|
|
6387
6387
|
).setInstantiationMode(
|
|
6388
6388
|
"EXPLICIT"
|
|
6389
6389
|
/* InstantiationMode.EXPLICIT */
|
|
6390
|
-
)), jo(n0, r0,
|
|
6390
|
+
)), jo(n0, r0, B6(e)), jo(n0, r0, "esm2017");
|
|
6391
6391
|
}
|
|
6392
6392
|
/**
|
|
6393
6393
|
* @license
|
|
@@ -6405,11 +6405,11 @@ function VM(e) {
|
|
|
6405
6405
|
* See the License for the specific language governing permissions and
|
|
6406
6406
|
* limitations under the License.
|
|
6407
6407
|
*/
|
|
6408
|
-
const
|
|
6408
|
+
const Y6 = 5 * 60, W6 = Zy("authIdTokenMaxAge") || Y6;
|
|
6409
6409
|
let a0 = null;
|
|
6410
|
-
const
|
|
6410
|
+
const U6 = (e) => async (t) => {
|
|
6411
6411
|
const n = t && await t.getIdTokenResult(), r = n && ((/* @__PURE__ */ new Date()).getTime() - Date.parse(n.issuedAtTime)) / 1e3;
|
|
6412
|
-
if (r && r >
|
|
6412
|
+
if (r && r > W6)
|
|
6413
6413
|
return;
|
|
6414
6414
|
const a = n == null ? void 0 : n.token;
|
|
6415
6415
|
a0 !== a && (a0 = a, await fetch(e, {
|
|
@@ -6419,30 +6419,30 @@ const UM = (e) => async (t) => {
|
|
|
6419
6419
|
} : {}
|
|
6420
6420
|
}));
|
|
6421
6421
|
};
|
|
6422
|
-
function
|
|
6422
|
+
function G6(e = F4()) {
|
|
6423
6423
|
const t = Jy(e, "auth");
|
|
6424
6424
|
if (t.isInitialized())
|
|
6425
6425
|
return t.getImmediate();
|
|
6426
|
-
const n =
|
|
6427
|
-
popupRedirectResolver:
|
|
6426
|
+
const n = xM(e, {
|
|
6427
|
+
popupRedirectResolver: k6,
|
|
6428
6428
|
persistence: [
|
|
6429
|
-
|
|
6430
|
-
|
|
6429
|
+
qM,
|
|
6430
|
+
kM,
|
|
6431
6431
|
MC
|
|
6432
6432
|
]
|
|
6433
6433
|
}), r = Zy("authTokenSyncURL");
|
|
6434
6434
|
if (r) {
|
|
6435
|
-
const i =
|
|
6436
|
-
|
|
6435
|
+
const i = U6(r);
|
|
6436
|
+
TM(n, i, () => i(n.currentUser)), DM(n, (o) => i(o));
|
|
6437
6437
|
}
|
|
6438
6438
|
const a = AO("auth");
|
|
6439
|
-
return a &&
|
|
6439
|
+
return a && AM(n, `http://${a}`), n;
|
|
6440
6440
|
}
|
|
6441
|
-
|
|
6441
|
+
V6(
|
|
6442
6442
|
"Browser"
|
|
6443
6443
|
/* ClientPlatform.BROWSER */
|
|
6444
6444
|
);
|
|
6445
|
-
var
|
|
6445
|
+
var K6 = "firebase", Z6 = "9.23.0";
|
|
6446
6446
|
/**
|
|
6447
6447
|
* @license
|
|
6448
6448
|
* Copyright 2020 Google LLC
|
|
@@ -6459,8 +6459,8 @@ var KM = "firebase", ZM = "9.23.0";
|
|
|
6459
6459
|
* See the License for the specific language governing permissions and
|
|
6460
6460
|
* limitations under the License.
|
|
6461
6461
|
*/
|
|
6462
|
-
jo(
|
|
6463
|
-
function
|
|
6462
|
+
jo(K6, Z6, "app");
|
|
6463
|
+
function Q6(e = {}) {
|
|
6464
6464
|
const { nonce: t, onScriptLoadSuccess: n, onScriptLoadError: r } = e, [a, i] = Oe(!1), o = Be(n);
|
|
6465
6465
|
o.current = n;
|
|
6466
6466
|
const s = Be(r);
|
|
@@ -6478,8 +6478,8 @@ function QM(e = {}) {
|
|
|
6478
6478
|
}, [t]), a;
|
|
6479
6479
|
}
|
|
6480
6480
|
const LC = yr(null);
|
|
6481
|
-
function
|
|
6482
|
-
const i =
|
|
6481
|
+
function X6({ clientId: e, nonce: t, onScriptLoadSuccess: n, onScriptLoadError: r, children: a }) {
|
|
6482
|
+
const i = Q6({
|
|
6483
6483
|
nonce: t,
|
|
6484
6484
|
onScriptLoadSuccess: n,
|
|
6485
6485
|
onScriptLoadError: r
|
|
@@ -6489,19 +6489,19 @@ function XM({ clientId: e, nonce: t, onScriptLoadSuccess: n, onScriptLoadError:
|
|
|
6489
6489
|
}), [e, i]);
|
|
6490
6490
|
return me.createElement(LC.Provider, { value: o }, a);
|
|
6491
6491
|
}
|
|
6492
|
-
function
|
|
6492
|
+
function q6() {
|
|
6493
6493
|
const e = pn(LC);
|
|
6494
6494
|
if (!e)
|
|
6495
6495
|
throw new Error("Google OAuth components must be used within GoogleOAuthProvider");
|
|
6496
6496
|
return e;
|
|
6497
6497
|
}
|
|
6498
|
-
function
|
|
6498
|
+
function J6(e) {
|
|
6499
6499
|
var t;
|
|
6500
6500
|
return (t = e == null ? void 0 : e.clientId) !== null && t !== void 0 ? t : e == null ? void 0 : e.client_id;
|
|
6501
6501
|
}
|
|
6502
|
-
const
|
|
6503
|
-
function $
|
|
6504
|
-
const p = Be(null), { clientId: m, scriptLoadedSuccessfully: C } =
|
|
6502
|
+
const _6 = { large: 40, medium: 32, small: 20 };
|
|
6503
|
+
function $6({ onSuccess: e, onError: t, useOneTap: n, promptMomentNotification: r, type: a = "standard", theme: i = "outline", size: o = "large", text: s, shape: c, logo_alignment: u, width: d, locale: f, click_listener: h, containerProps: v, ...g }) {
|
|
6504
|
+
const p = Be(null), { clientId: m, scriptLoadedSuccessfully: C } = q6(), y = Be(e);
|
|
6505
6505
|
y.current = e;
|
|
6506
6506
|
const w = Be(t);
|
|
6507
6507
|
w.current = t;
|
|
@@ -6518,7 +6518,7 @@ function $M({ onSuccess: e, onError: t, useOneTap: n, promptMomentNotification:
|
|
|
6518
6518
|
const { credential: T, select_by: L } = D;
|
|
6519
6519
|
y.current({
|
|
6520
6520
|
credential: T,
|
|
6521
|
-
clientId:
|
|
6521
|
+
clientId: J6(D),
|
|
6522
6522
|
select_by: L
|
|
6523
6523
|
});
|
|
6524
6524
|
},
|
|
@@ -6549,7 +6549,7 @@ function $M({ onSuccess: e, onError: t, useOneTap: n, promptMomentNotification:
|
|
|
6549
6549
|
u,
|
|
6550
6550
|
d,
|
|
6551
6551
|
f
|
|
6552
|
-
]), me.createElement("div", { ...v, ref: p, style: { height:
|
|
6552
|
+
]), me.createElement("div", { ...v, ref: p, style: { height: _6[o], ...v == null ? void 0 : v.style } });
|
|
6553
6553
|
}
|
|
6554
6554
|
class Hs extends Error {
|
|
6555
6555
|
}
|
|
@@ -43539,7 +43539,7 @@ const lh = {
|
|
|
43539
43539
|
padding: 2,
|
|
43540
43540
|
lineHeight: 0,
|
|
43541
43541
|
flexShrink: 0
|
|
43542
|
-
}, hU = "@lystech/core", mU = "lystechcorenpmpackage:last-version", vU = "3.0.
|
|
43542
|
+
}, hU = "@lystech/core", mU = "lystechcorenpmpackage:last-version", vU = "3.0.97";
|
|
43543
43543
|
function gU(e = {}) {
|
|
43544
43544
|
const {
|
|
43545
43545
|
packageName: t = hU,
|
|
@@ -43902,7 +43902,7 @@ function MU({ children: e, shouldRedirectAfterLogin: t, loginRedirectRoute: n, q
|
|
|
43902
43902
|
p.lastName = _, m({ ...p }), sessionStorage.setItem("lastName", _);
|
|
43903
43903
|
},
|
|
43904
43904
|
[p, m]
|
|
43905
|
-
), A = d3(), x =
|
|
43905
|
+
), A = d3(), x = G6(), E = kt(() => {
|
|
43906
43906
|
if (p && p.id !== -1 && p != null && p.UID)
|
|
43907
43907
|
return {
|
|
43908
43908
|
id: p.id,
|
|
@@ -44036,7 +44036,7 @@ function MU({ children: e, shouldRedirectAfterLogin: t, loginRedirectRoute: n, q
|
|
|
44036
44036
|
} catch (_) {
|
|
44037
44037
|
console.warn("Déconnexion serveur échouée", _);
|
|
44038
44038
|
}
|
|
44039
|
-
sessionStorage.clear(), localStorage.clear(), ne(null),
|
|
44039
|
+
sessionStorage.clear(), localStorage.clear(), ne(null), jM(x), A("/");
|
|
44040
44040
|
}
|
|
44041
44041
|
async function W(_) {
|
|
44042
44042
|
const ce = nP(_.credential);
|
|
@@ -44087,7 +44087,7 @@ function MU({ children: e, shouldRedirectAfterLogin: t, loginRedirectRoute: n, q
|
|
|
44087
44087
|
}, [ae, i, (te = window == null ? void 0 : window.location) == null ? void 0 : te.pathname]);
|
|
44088
44088
|
return Je(() => {
|
|
44089
44089
|
u && (E == null || E.UID);
|
|
44090
|
-
}, [E == null ? void 0 : E.UID, I]), /* @__PURE__ */ b.jsx(
|
|
44090
|
+
}, [E == null ? void 0 : E.UID, I]), /* @__PURE__ */ b.jsx(X6, { clientId: "237347321732-65nra8lcs59qn6dms77ruad01vjdr7ph.apps.googleusercontent.com", children: /* @__PURE__ */ b.jsxs(
|
|
44091
44091
|
i8.Provider,
|
|
44092
44092
|
{
|
|
44093
44093
|
value: {
|
|
@@ -44137,7 +44137,7 @@ function MU({ children: e, shouldRedirectAfterLogin: t, loginRedirectRoute: n, q
|
|
|
44137
44137
|
] }) }),
|
|
44138
44138
|
e,
|
|
44139
44139
|
ae && /* @__PURE__ */ b.jsx("div", { className: `fixed top-10 right-10 ${se ? "" : "hidden"}`, style: r, children: /* @__PURE__ */ b.jsx(
|
|
44140
|
-
$
|
|
44140
|
+
$6,
|
|
44141
44141
|
{
|
|
44142
44142
|
onSuccess: W,
|
|
44143
44143
|
onError: V,
|