reactfire 4.2.3-exp.1769cfb → 4.2.3-exp.4329c43
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/dist/SuspenseSubject.d.ts +2 -1
- package/dist/index.js +202 -201
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +5 -5
- package/dist/index.umd.cjs.map +1 -1
- package/dist/useObservable.d.ts +1 -1
- package/package.json +1 -1
- package/src/SuspenseSubject.ts +8 -2
- package/src/useObservable.ts +5 -4
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { getApps as Vt, registerVersion as Ne, initializeApp as Mt } from "fireb
|
|
|
5
5
|
import { onSnapshot as Lt, queryEqual as Nt } from "firebase/firestore";
|
|
6
6
|
import { httpsCallable as Wt } from "firebase/functions";
|
|
7
7
|
import { getDownloadURL as qt, ref as Qt } from "firebase/storage";
|
|
8
|
-
import { ensureInitialized as
|
|
8
|
+
import { ensureInitialized as Ht, getValue as Kt, getString as Yt, getNumber as Gt, getBoolean as Jt, getAll as zt } from "firebase/remote-config";
|
|
9
9
|
var ce = function(e, t) {
|
|
10
10
|
return ce = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
|
|
11
11
|
n.__proto__ = r;
|
|
@@ -39,14 +39,14 @@ function pe(e, t, n, r) {
|
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
41
|
return new (n || (n = Promise))(function(o, u) {
|
|
42
|
-
function
|
|
42
|
+
function s(l) {
|
|
43
43
|
try {
|
|
44
44
|
c(r.next(l));
|
|
45
45
|
} catch (d) {
|
|
46
46
|
u(d);
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function a(l) {
|
|
50
50
|
try {
|
|
51
51
|
c(r.throw(l));
|
|
52
52
|
} catch (d) {
|
|
@@ -54,26 +54,26 @@ function pe(e, t, n, r) {
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
function c(l) {
|
|
57
|
-
l.done ? o(l.value) : i(l.value).then(
|
|
57
|
+
l.done ? o(l.value) : i(l.value).then(s, a);
|
|
58
58
|
}
|
|
59
59
|
c((r = r.apply(e, t || [])).next());
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function Ke(e, t) {
|
|
63
63
|
var n = { label: 0, sent: function() {
|
|
64
64
|
if (o[0] & 1)
|
|
65
65
|
throw o[1];
|
|
66
66
|
return o[1];
|
|
67
67
|
}, trys: [], ops: [] }, r, i, o, u;
|
|
68
|
-
return u = { next:
|
|
68
|
+
return u = { next: s(0), throw: s(1), return: s(2) }, typeof Symbol == "function" && (u[Symbol.iterator] = function() {
|
|
69
69
|
return this;
|
|
70
70
|
}), u;
|
|
71
|
-
function
|
|
71
|
+
function s(c) {
|
|
72
72
|
return function(l) {
|
|
73
|
-
return
|
|
73
|
+
return a([c, l]);
|
|
74
74
|
};
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function a(c) {
|
|
77
77
|
if (r)
|
|
78
78
|
throw new TypeError("Generator is already executing.");
|
|
79
79
|
for (; n; )
|
|
@@ -144,8 +144,8 @@ function D(e, t) {
|
|
|
144
144
|
try {
|
|
145
145
|
for (; (t === void 0 || t-- > 0) && !(i = r.next()).done; )
|
|
146
146
|
o.push(i.value);
|
|
147
|
-
} catch (
|
|
148
|
-
u = { error:
|
|
147
|
+
} catch (s) {
|
|
148
|
+
u = { error: s };
|
|
149
149
|
} finally {
|
|
150
150
|
try {
|
|
151
151
|
i && !i.done && (n = r.return) && n.call(r);
|
|
@@ -175,28 +175,28 @@ function Bt(e, t, n) {
|
|
|
175
175
|
function u(v) {
|
|
176
176
|
r[v] && (i[v] = function(p) {
|
|
177
177
|
return new Promise(function(S, h) {
|
|
178
|
-
o.push([v, p, S, h]) > 1 ||
|
|
178
|
+
o.push([v, p, S, h]) > 1 || s(v, p);
|
|
179
179
|
});
|
|
180
180
|
});
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function s(v, p) {
|
|
183
183
|
try {
|
|
184
|
-
|
|
184
|
+
a(r[v](p));
|
|
185
185
|
} catch (S) {
|
|
186
186
|
d(o[0][3], S);
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function a(v) {
|
|
190
190
|
v.value instanceof U ? Promise.resolve(v.value.v).then(c, l) : d(o[0][2], v);
|
|
191
191
|
}
|
|
192
192
|
function c(v) {
|
|
193
|
-
|
|
193
|
+
s("next", v);
|
|
194
194
|
}
|
|
195
195
|
function l(v) {
|
|
196
|
-
|
|
196
|
+
s("throw", v);
|
|
197
197
|
}
|
|
198
198
|
function d(v, p) {
|
|
199
|
-
v(p), o.shift(), o.length &&
|
|
199
|
+
v(p), o.shift(), o.length && s(o[0][0], o[0][1]);
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
202
|
function Xt(e) {
|
|
@@ -208,14 +208,14 @@ function Xt(e) {
|
|
|
208
208
|
}, n);
|
|
209
209
|
function r(o) {
|
|
210
210
|
n[o] = e[o] && function(u) {
|
|
211
|
-
return new Promise(function(
|
|
212
|
-
u = e[o](u), i(
|
|
211
|
+
return new Promise(function(s, a) {
|
|
212
|
+
u = e[o](u), i(s, a, u.done, u.value);
|
|
213
213
|
});
|
|
214
214
|
};
|
|
215
215
|
}
|
|
216
|
-
function i(o, u,
|
|
217
|
-
Promise.resolve(
|
|
218
|
-
o({ value: c, done:
|
|
216
|
+
function i(o, u, s, a) {
|
|
217
|
+
Promise.resolve(a).then(function(c) {
|
|
218
|
+
o({ value: c, done: s });
|
|
219
219
|
}, u);
|
|
220
220
|
}
|
|
221
221
|
}
|
|
@@ -255,15 +255,15 @@ var N = function() {
|
|
|
255
255
|
if (u)
|
|
256
256
|
if (this._parentage = null, Array.isArray(u))
|
|
257
257
|
try {
|
|
258
|
-
for (var
|
|
259
|
-
var c =
|
|
258
|
+
for (var s = V(u), a = s.next(); !a.done; a = s.next()) {
|
|
259
|
+
var c = a.value;
|
|
260
260
|
c.remove(this);
|
|
261
261
|
}
|
|
262
262
|
} catch (h) {
|
|
263
263
|
t = { error: h };
|
|
264
264
|
} finally {
|
|
265
265
|
try {
|
|
266
|
-
|
|
266
|
+
a && !a.done && (n = s.return) && n.call(s);
|
|
267
267
|
} finally {
|
|
268
268
|
if (t)
|
|
269
269
|
throw t.error;
|
|
@@ -455,13 +455,13 @@ var tn = function() {
|
|
|
455
455
|
complete: i != null ? i : void 0
|
|
456
456
|
};
|
|
457
457
|
else {
|
|
458
|
-
var
|
|
459
|
-
o && be.useDeprecatedNextContext ? (
|
|
458
|
+
var s;
|
|
459
|
+
o && be.useDeprecatedNextContext ? (s = Object.create(n), s.unsubscribe = function() {
|
|
460
460
|
return o.unsubscribe();
|
|
461
461
|
}, u = {
|
|
462
|
-
next: n.next && ue(n.next,
|
|
463
|
-
error: n.error && ue(n.error,
|
|
464
|
-
complete: n.complete && ue(n.complete,
|
|
462
|
+
next: n.next && ue(n.next, s),
|
|
463
|
+
error: n.error && ue(n.error, s),
|
|
464
|
+
complete: n.complete && ue(n.complete, s)
|
|
465
465
|
}) : u = n;
|
|
466
466
|
}
|
|
467
467
|
return o.destination = new tn(u), o;
|
|
@@ -500,10 +500,10 @@ var y = function() {
|
|
|
500
500
|
var n = new e();
|
|
501
501
|
return n.source = this, n.operator = t, n;
|
|
502
502
|
}, e.prototype.subscribe = function(t, n, r) {
|
|
503
|
-
var i = this, o =
|
|
503
|
+
var i = this, o = sn(t) ? t : new L(t, n, r);
|
|
504
504
|
return z(function() {
|
|
505
|
-
var u = i,
|
|
506
|
-
o.add(
|
|
505
|
+
var u = i, s = u.operator, a = u.source;
|
|
506
|
+
o.add(s ? s.call(o, a) : a ? i._subscribe(o) : i._trySubscribe(o));
|
|
507
507
|
}), o;
|
|
508
508
|
}, e.prototype._trySubscribe = function(t) {
|
|
509
509
|
try {
|
|
@@ -515,11 +515,11 @@ var y = function() {
|
|
|
515
515
|
var r = this;
|
|
516
516
|
return n = qe(n), new n(function(i, o) {
|
|
517
517
|
var u = new L({
|
|
518
|
-
next: function(
|
|
518
|
+
next: function(s) {
|
|
519
519
|
try {
|
|
520
|
-
t(
|
|
521
|
-
} catch (
|
|
522
|
-
o(
|
|
520
|
+
t(s);
|
|
521
|
+
} catch (a) {
|
|
522
|
+
o(a), u.unsubscribe();
|
|
523
523
|
}
|
|
524
524
|
},
|
|
525
525
|
error: o,
|
|
@@ -559,15 +559,15 @@ function qe(e) {
|
|
|
559
559
|
function un(e) {
|
|
560
560
|
return e && b(e.next) && b(e.error) && b(e.complete);
|
|
561
561
|
}
|
|
562
|
-
function
|
|
562
|
+
function sn(e) {
|
|
563
563
|
return e && e instanceof ye || un(e) && Ge(e);
|
|
564
564
|
}
|
|
565
|
-
function
|
|
565
|
+
function an(e) {
|
|
566
566
|
return b(e == null ? void 0 : e.lift);
|
|
567
567
|
}
|
|
568
568
|
function _(e) {
|
|
569
569
|
return function(t) {
|
|
570
|
-
if (
|
|
570
|
+
if (an(t))
|
|
571
571
|
return t.lift(function(n) {
|
|
572
572
|
try {
|
|
573
573
|
return e(n, this);
|
|
@@ -583,15 +583,15 @@ function w(e, t, n, r, i) {
|
|
|
583
583
|
}
|
|
584
584
|
var cn = function(e) {
|
|
585
585
|
x(t, e);
|
|
586
|
-
function t(n, r, i, o, u,
|
|
587
|
-
var
|
|
588
|
-
return
|
|
586
|
+
function t(n, r, i, o, u, s) {
|
|
587
|
+
var a = e.call(this, n) || this;
|
|
588
|
+
return a.onFinalize = u, a.shouldUnsubscribe = s, a._next = r ? function(c) {
|
|
589
589
|
try {
|
|
590
590
|
r(c);
|
|
591
591
|
} catch (l) {
|
|
592
592
|
n.error(l);
|
|
593
593
|
}
|
|
594
|
-
} : e.prototype._next,
|
|
594
|
+
} : e.prototype._next, a._error = o ? function(c) {
|
|
595
595
|
try {
|
|
596
596
|
o(c);
|
|
597
597
|
} catch (l) {
|
|
@@ -599,7 +599,7 @@ var cn = function(e) {
|
|
|
599
599
|
} finally {
|
|
600
600
|
this.unsubscribe();
|
|
601
601
|
}
|
|
602
|
-
} : e.prototype._error,
|
|
602
|
+
} : e.prototype._error, a._complete = i ? function() {
|
|
603
603
|
try {
|
|
604
604
|
i();
|
|
605
605
|
} catch (c) {
|
|
@@ -607,7 +607,7 @@ var cn = function(e) {
|
|
|
607
607
|
} finally {
|
|
608
608
|
this.unsubscribe();
|
|
609
609
|
}
|
|
610
|
-
} : e.prototype._complete,
|
|
610
|
+
} : e.prototype._complete, a;
|
|
611
611
|
}
|
|
612
612
|
return t.prototype.unsubscribe = function() {
|
|
613
613
|
var n;
|
|
@@ -639,15 +639,15 @@ var cn = function(e) {
|
|
|
639
639
|
if (r._throwIfClosed(), !r.isStopped) {
|
|
640
640
|
r.currentObservers || (r.currentObservers = Array.from(r.observers));
|
|
641
641
|
try {
|
|
642
|
-
for (var u = V(r.currentObservers),
|
|
643
|
-
var
|
|
644
|
-
|
|
642
|
+
for (var u = V(r.currentObservers), s = u.next(); !s.done; s = u.next()) {
|
|
643
|
+
var a = s.value;
|
|
644
|
+
a.next(n);
|
|
645
645
|
}
|
|
646
646
|
} catch (c) {
|
|
647
647
|
i = { error: c };
|
|
648
648
|
} finally {
|
|
649
649
|
try {
|
|
650
|
-
|
|
650
|
+
s && !s.done && (o = u.return) && o.call(u);
|
|
651
651
|
} finally {
|
|
652
652
|
if (i)
|
|
653
653
|
throw i.error;
|
|
@@ -687,9 +687,9 @@ var cn = function(e) {
|
|
|
687
687
|
}, t.prototype._subscribe = function(n) {
|
|
688
688
|
return this._throwIfClosed(), this._checkFinalizedStatuses(n), this._innerSubscribe(n);
|
|
689
689
|
}, t.prototype._innerSubscribe = function(n) {
|
|
690
|
-
var r = this, i = this, o = i.hasError, u = i.isStopped,
|
|
691
|
-
return o || u ? Ye : (this.currentObservers = null,
|
|
692
|
-
r.currentObservers = null, B(
|
|
690
|
+
var r = this, i = this, o = i.hasError, u = i.isStopped, s = i.observers;
|
|
691
|
+
return o || u ? Ye : (this.currentObservers = null, s.push(n), new N(function() {
|
|
692
|
+
r.currentObservers = null, B(s, n);
|
|
693
693
|
}));
|
|
694
694
|
}, t.prototype._checkFinalizedStatuses = function(n) {
|
|
695
695
|
var r = this, i = r.hasError, o = r.thrownError, u = r.isStopped;
|
|
@@ -732,17 +732,17 @@ var cn = function(e) {
|
|
|
732
732
|
return o._bufferSize = n, o._windowTime = r, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = r === 1 / 0, o._bufferSize = Math.max(1, n), o._windowTime = Math.max(1, r), o;
|
|
733
733
|
}
|
|
734
734
|
return t.prototype.next = function(n) {
|
|
735
|
-
var r = this, i = r.isStopped, o = r._buffer, u = r._infiniteTimeWindow,
|
|
736
|
-
i || (o.push(n), !u && o.push(
|
|
735
|
+
var r = this, i = r.isStopped, o = r._buffer, u = r._infiniteTimeWindow, s = r._timestampProvider, a = r._windowTime;
|
|
736
|
+
i || (o.push(n), !u && o.push(s.now() + a)), this._trimBuffer(), e.prototype.next.call(this, n);
|
|
737
737
|
}, t.prototype._subscribe = function(n) {
|
|
738
738
|
this._throwIfClosed(), this._trimBuffer();
|
|
739
|
-
for (var r = this._innerSubscribe(n), i = this, o = i._infiniteTimeWindow, u = i._buffer,
|
|
740
|
-
n.next(a
|
|
739
|
+
for (var r = this._innerSubscribe(n), i = this, o = i._infiniteTimeWindow, u = i._buffer, s = u.slice(), a = 0; a < s.length && !n.closed; a += o ? 1 : 2)
|
|
740
|
+
n.next(s[a]);
|
|
741
741
|
return this._checkFinalizedStatuses(n), r;
|
|
742
742
|
}, t.prototype._trimBuffer = function() {
|
|
743
|
-
var n = this, r = n._bufferSize, i = n._timestampProvider, o = n._buffer, u = n._infiniteTimeWindow,
|
|
744
|
-
if (r < 1 / 0 &&
|
|
745
|
-
for (var
|
|
743
|
+
var n = this, r = n._bufferSize, i = n._timestampProvider, o = n._buffer, u = n._infiniteTimeWindow, s = (u ? 1 : 2) * r;
|
|
744
|
+
if (r < 1 / 0 && s < o.length && o.splice(0, o.length - s), !u) {
|
|
745
|
+
for (var a = i.now(), c = 0, l = 1; l < o.length && o[l] <= a; l += 2)
|
|
746
746
|
c = l;
|
|
747
747
|
c && o.splice(0, c + 1);
|
|
748
748
|
}
|
|
@@ -808,7 +808,7 @@ var cn = function(e) {
|
|
|
808
808
|
this.work = this.state = this.scheduler = null, this.pending = !1, B(o, this), r != null && (this.id = this.recycleAsyncId(i, r, null)), this.delay = null, e.prototype.unsubscribe.call(this);
|
|
809
809
|
}
|
|
810
810
|
}, t;
|
|
811
|
-
}(dn),
|
|
811
|
+
}(dn), He = function() {
|
|
812
812
|
function e(t, n) {
|
|
813
813
|
n === void 0 && (n = e.now), this.schedulerActionCtor = t, this.now = n;
|
|
814
814
|
}
|
|
@@ -818,7 +818,7 @@ var cn = function(e) {
|
|
|
818
818
|
}(), hn = function(e) {
|
|
819
819
|
x(t, e);
|
|
820
820
|
function t(n, r) {
|
|
821
|
-
r === void 0 && (r =
|
|
821
|
+
r === void 0 && (r = He.now);
|
|
822
822
|
var i = e.call(this, n, r) || this;
|
|
823
823
|
return i.actions = [], i._active = !1, i._scheduled = void 0, i;
|
|
824
824
|
}
|
|
@@ -840,7 +840,7 @@ var cn = function(e) {
|
|
|
840
840
|
throw i;
|
|
841
841
|
}
|
|
842
842
|
}, t;
|
|
843
|
-
}(
|
|
843
|
+
}(He), _e = new hn(vn), pn = _e, Se = new y(function(e) {
|
|
844
844
|
return e.complete();
|
|
845
845
|
});
|
|
846
846
|
function mn(e) {
|
|
@@ -890,7 +890,7 @@ function it(e) {
|
|
|
890
890
|
function ot(e) {
|
|
891
891
|
return Bt(this, arguments, function() {
|
|
892
892
|
var n, r, i, o;
|
|
893
|
-
return
|
|
893
|
+
return Ke(this, function(u) {
|
|
894
894
|
switch (u.label) {
|
|
895
895
|
case 0:
|
|
896
896
|
n = e.getReader(), u.label = 1;
|
|
@@ -932,7 +932,7 @@ function I(e) {
|
|
|
932
932
|
if (Xe(e))
|
|
933
933
|
return Sn(e);
|
|
934
934
|
if (tt(e))
|
|
935
|
-
return
|
|
935
|
+
return st(e);
|
|
936
936
|
if (it(e))
|
|
937
937
|
return Cn(e);
|
|
938
938
|
if (ut(e))
|
|
@@ -973,8 +973,8 @@ function Cn(e) {
|
|
|
973
973
|
if (t.next(u), t.closed)
|
|
974
974
|
return;
|
|
975
975
|
}
|
|
976
|
-
} catch (
|
|
977
|
-
n = { error:
|
|
976
|
+
} catch (s) {
|
|
977
|
+
n = { error: s };
|
|
978
978
|
} finally {
|
|
979
979
|
try {
|
|
980
980
|
o && !o.done && (r = i.return) && r.call(i);
|
|
@@ -986,7 +986,7 @@ function Cn(e) {
|
|
|
986
986
|
t.complete();
|
|
987
987
|
});
|
|
988
988
|
}
|
|
989
|
-
function
|
|
989
|
+
function st(e) {
|
|
990
990
|
return new y(function(t) {
|
|
991
991
|
xn(e, t).catch(function(n) {
|
|
992
992
|
return t.error(n);
|
|
@@ -994,34 +994,34 @@ function at(e) {
|
|
|
994
994
|
});
|
|
995
995
|
}
|
|
996
996
|
function En(e) {
|
|
997
|
-
return
|
|
997
|
+
return st(ot(e));
|
|
998
998
|
}
|
|
999
999
|
function xn(e, t) {
|
|
1000
1000
|
var n, r, i, o;
|
|
1001
1001
|
return pe(this, void 0, void 0, function() {
|
|
1002
|
-
var u,
|
|
1003
|
-
return
|
|
1004
|
-
switch (
|
|
1002
|
+
var u, s;
|
|
1003
|
+
return Ke(this, function(a) {
|
|
1004
|
+
switch (a.label) {
|
|
1005
1005
|
case 0:
|
|
1006
|
-
|
|
1006
|
+
a.trys.push([0, 5, 6, 11]), n = Xt(e), a.label = 1;
|
|
1007
1007
|
case 1:
|
|
1008
1008
|
return [4, n.next()];
|
|
1009
1009
|
case 2:
|
|
1010
|
-
if (r =
|
|
1010
|
+
if (r = a.sent(), !!r.done)
|
|
1011
1011
|
return [3, 4];
|
|
1012
1012
|
if (u = r.value, t.next(u), t.closed)
|
|
1013
1013
|
return [2];
|
|
1014
|
-
|
|
1014
|
+
a.label = 3;
|
|
1015
1015
|
case 3:
|
|
1016
1016
|
return [3, 1];
|
|
1017
1017
|
case 4:
|
|
1018
1018
|
return [3, 11];
|
|
1019
1019
|
case 5:
|
|
1020
|
-
return
|
|
1020
|
+
return s = a.sent(), i = { error: s }, [3, 11];
|
|
1021
1021
|
case 6:
|
|
1022
|
-
return
|
|
1022
|
+
return a.trys.push([6, , 9, 10]), r && !r.done && (o = n.return) ? [4, o.call(n)] : [3, 8];
|
|
1023
1023
|
case 7:
|
|
1024
|
-
|
|
1024
|
+
a.sent(), a.label = 8;
|
|
1025
1025
|
case 8:
|
|
1026
1026
|
return [3, 10];
|
|
1027
1027
|
case 9:
|
|
@@ -1044,7 +1044,7 @@ function P(e, t, n, r, i) {
|
|
|
1044
1044
|
if (e.add(o), !i)
|
|
1045
1045
|
return o;
|
|
1046
1046
|
}
|
|
1047
|
-
function
|
|
1047
|
+
function at(e, t) {
|
|
1048
1048
|
return t === void 0 && (t = 0), _(function(n, r) {
|
|
1049
1049
|
n.subscribe(w(r, function(i) {
|
|
1050
1050
|
return P(r, e, function() {
|
|
@@ -1069,10 +1069,10 @@ function ct(e, t) {
|
|
|
1069
1069
|
});
|
|
1070
1070
|
}
|
|
1071
1071
|
function In(e, t) {
|
|
1072
|
-
return I(e).pipe(ct(t),
|
|
1072
|
+
return I(e).pipe(ct(t), at(t));
|
|
1073
1073
|
}
|
|
1074
1074
|
function On(e, t) {
|
|
1075
|
-
return I(e).pipe(ct(t),
|
|
1075
|
+
return I(e).pipe(ct(t), at(t));
|
|
1076
1076
|
}
|
|
1077
1077
|
function kn(e, t) {
|
|
1078
1078
|
return new y(function(n) {
|
|
@@ -1090,8 +1090,8 @@ function An(e, t) {
|
|
|
1090
1090
|
var i, o, u;
|
|
1091
1091
|
try {
|
|
1092
1092
|
i = r.next(), o = i.value, u = i.done;
|
|
1093
|
-
} catch (
|
|
1094
|
-
n.error(
|
|
1093
|
+
} catch (s) {
|
|
1094
|
+
n.error(s);
|
|
1095
1095
|
return;
|
|
1096
1096
|
}
|
|
1097
1097
|
u ? n.complete() : n.next(o);
|
|
@@ -1160,11 +1160,11 @@ function C(e, t) {
|
|
|
1160
1160
|
}));
|
|
1161
1161
|
});
|
|
1162
1162
|
}
|
|
1163
|
-
function Tn(e, t, n, r, i, o, u,
|
|
1164
|
-
var
|
|
1165
|
-
d && !
|
|
1163
|
+
function Tn(e, t, n, r, i, o, u, s) {
|
|
1164
|
+
var a = [], c = 0, l = 0, d = !1, v = function() {
|
|
1165
|
+
d && !a.length && !c && t.complete();
|
|
1166
1166
|
}, p = function(h) {
|
|
1167
|
-
return c < r ? S(h) :
|
|
1167
|
+
return c < r ? S(h) : a.push(h);
|
|
1168
1168
|
}, S = function(h) {
|
|
1169
1169
|
o && t.next(h), c++;
|
|
1170
1170
|
var $ = !1;
|
|
@@ -1177,11 +1177,11 @@ function Tn(e, t, n, r, i, o, u, a) {
|
|
|
1177
1177
|
try {
|
|
1178
1178
|
c--;
|
|
1179
1179
|
for (var E = function() {
|
|
1180
|
-
var j =
|
|
1180
|
+
var j = a.shift();
|
|
1181
1181
|
u ? P(t, u, function() {
|
|
1182
1182
|
return S(j);
|
|
1183
1183
|
}) : S(j);
|
|
1184
|
-
};
|
|
1184
|
+
}; a.length && c < r; )
|
|
1185
1185
|
E();
|
|
1186
1186
|
v();
|
|
1187
1187
|
} catch (j) {
|
|
@@ -1192,7 +1192,7 @@ function Tn(e, t, n, r, i, o, u, a) {
|
|
|
1192
1192
|
return e.subscribe(w(t, p, function() {
|
|
1193
1193
|
d = !0, v();
|
|
1194
1194
|
})), function() {
|
|
1195
|
-
|
|
1195
|
+
s == null || s();
|
|
1196
1196
|
};
|
|
1197
1197
|
}
|
|
1198
1198
|
function Ee(e, t, n) {
|
|
@@ -1251,36 +1251,36 @@ function vt(e) {
|
|
|
1251
1251
|
}
|
|
1252
1252
|
function Mn(e, t, n, r, i) {
|
|
1253
1253
|
return function(o, u) {
|
|
1254
|
-
var
|
|
1254
|
+
var s = n, a = t, c = 0;
|
|
1255
1255
|
o.subscribe(w(u, function(l) {
|
|
1256
1256
|
var d = c++;
|
|
1257
|
-
|
|
1257
|
+
a = s ? e(a, l, d) : (s = !0, l), r && u.next(a);
|
|
1258
1258
|
}, i && function() {
|
|
1259
|
-
|
|
1259
|
+
s && u.next(a), u.complete();
|
|
1260
1260
|
}));
|
|
1261
1261
|
};
|
|
1262
1262
|
}
|
|
1263
1263
|
function Ln(e, t) {
|
|
1264
1264
|
return t === void 0 && (t = _e), _(function(n, r) {
|
|
1265
|
-
var i = null, o = null, u = null,
|
|
1265
|
+
var i = null, o = null, u = null, s = function() {
|
|
1266
1266
|
if (i) {
|
|
1267
1267
|
i.unsubscribe(), i = null;
|
|
1268
1268
|
var c = o;
|
|
1269
1269
|
o = null, r.next(c);
|
|
1270
1270
|
}
|
|
1271
1271
|
};
|
|
1272
|
-
function
|
|
1272
|
+
function a() {
|
|
1273
1273
|
var c = u + e, l = t.now();
|
|
1274
1274
|
if (l < c) {
|
|
1275
1275
|
i = this.schedule(void 0, c - l), r.add(i);
|
|
1276
1276
|
return;
|
|
1277
1277
|
}
|
|
1278
|
-
|
|
1278
|
+
s();
|
|
1279
1279
|
}
|
|
1280
1280
|
n.subscribe(w(r, function(c) {
|
|
1281
|
-
o = c, u = t.now(), i || (i = t.schedule(
|
|
1281
|
+
o = c, u = t.now(), i || (i = t.schedule(a, e), r.add(i));
|
|
1282
1282
|
}, function() {
|
|
1283
|
-
|
|
1283
|
+
s(), r.complete();
|
|
1284
1284
|
}, void 0, function() {
|
|
1285
1285
|
o = i = null;
|
|
1286
1286
|
}));
|
|
@@ -1330,16 +1330,16 @@ function Qn(e, t) {
|
|
|
1330
1330
|
return n;
|
|
1331
1331
|
});
|
|
1332
1332
|
}
|
|
1333
|
-
function
|
|
1334
|
-
return t === void 0 && (t = W), e = e != null ? e :
|
|
1333
|
+
function Hn(e, t) {
|
|
1334
|
+
return t === void 0 && (t = W), e = e != null ? e : Kn, _(function(n, r) {
|
|
1335
1335
|
var i, o = !0;
|
|
1336
1336
|
n.subscribe(w(r, function(u) {
|
|
1337
|
-
var
|
|
1338
|
-
(o || !e(i,
|
|
1337
|
+
var s = t(u);
|
|
1338
|
+
(o || !e(i, s)) && (o = !1, i = s, r.next(u));
|
|
1339
1339
|
}));
|
|
1340
1340
|
});
|
|
1341
1341
|
}
|
|
1342
|
-
function
|
|
1342
|
+
function Kn(e, t) {
|
|
1343
1343
|
return e === t;
|
|
1344
1344
|
}
|
|
1345
1345
|
function Yn(e) {
|
|
@@ -1372,7 +1372,7 @@ function zn(e) {
|
|
|
1372
1372
|
e === void 0 && (e = {});
|
|
1373
1373
|
var t = e.connector, n = t === void 0 ? function() {
|
|
1374
1374
|
return new ne();
|
|
1375
|
-
} : t, r = e.resetOnError, i = r === void 0 ? !0 : r, o = e.resetOnComplete, u = o === void 0 ? !0 : o,
|
|
1375
|
+
} : t, r = e.resetOnError, i = r === void 0 ? !0 : r, o = e.resetOnComplete, u = o === void 0 ? !0 : o, s = e.resetOnRefCountZero, a = s === void 0 ? !0 : s;
|
|
1376
1376
|
return function(c) {
|
|
1377
1377
|
var l, d, v, p = 0, S = !1, h = !1, $ = function() {
|
|
1378
1378
|
d == null || d.unsubscribe(), d = void 0;
|
|
@@ -1384,24 +1384,24 @@ function zn(e) {
|
|
|
1384
1384
|
};
|
|
1385
1385
|
return _(function(M, Le) {
|
|
1386
1386
|
p++, !h && !S && $();
|
|
1387
|
-
var
|
|
1387
|
+
var K = v = v != null ? v : n();
|
|
1388
1388
|
Le.add(function() {
|
|
1389
|
-
p--, p === 0 && !h && !S && (d =
|
|
1390
|
-
}),
|
|
1389
|
+
p--, p === 0 && !h && !S && (d = se(j, a));
|
|
1390
|
+
}), K.subscribe(Le), !l && p > 0 && (l = new L({
|
|
1391
1391
|
next: function(Y) {
|
|
1392
|
-
return
|
|
1392
|
+
return K.next(Y);
|
|
1393
1393
|
},
|
|
1394
1394
|
error: function(Y) {
|
|
1395
|
-
h = !0, $(), d =
|
|
1395
|
+
h = !0, $(), d = se(E, i, Y), K.error(Y);
|
|
1396
1396
|
},
|
|
1397
1397
|
complete: function() {
|
|
1398
|
-
S = !0, $(), d =
|
|
1398
|
+
S = !0, $(), d = se(E, u), K.complete();
|
|
1399
1399
|
}
|
|
1400
1400
|
}), I(M).subscribe(l));
|
|
1401
1401
|
})(c);
|
|
1402
1402
|
};
|
|
1403
1403
|
}
|
|
1404
|
-
function
|
|
1404
|
+
function se(e, t) {
|
|
1405
1405
|
for (var n = [], r = 2; r < arguments.length; r++)
|
|
1406
1406
|
n[r - 2] = arguments[r];
|
|
1407
1407
|
if (t === !0) {
|
|
@@ -1418,31 +1418,31 @@ function ae(e, t) {
|
|
|
1418
1418
|
}
|
|
1419
1419
|
}
|
|
1420
1420
|
function Zn(e, t, n) {
|
|
1421
|
-
var r, i, o, u,
|
|
1422
|
-
return e && typeof e == "object" ? (r = e.bufferSize, u = r === void 0 ? 1 / 0 : r, i = e.windowTime, t = i === void 0 ? 1 / 0 : i, o = e.refCount,
|
|
1421
|
+
var r, i, o, u, s = !1;
|
|
1422
|
+
return e && typeof e == "object" ? (r = e.bufferSize, u = r === void 0 ? 1 / 0 : r, i = e.windowTime, t = i === void 0 ? 1 / 0 : i, o = e.refCount, s = o === void 0 ? !1 : o, n = e.scheduler) : u = e != null ? e : 1 / 0, zn({
|
|
1423
1423
|
connector: function() {
|
|
1424
1424
|
return new fn(u, t, n);
|
|
1425
1425
|
},
|
|
1426
1426
|
resetOnError: !0,
|
|
1427
1427
|
resetOnComplete: !1,
|
|
1428
|
-
resetOnRefCountZero:
|
|
1428
|
+
resetOnRefCountZero: s
|
|
1429
1429
|
});
|
|
1430
1430
|
}
|
|
1431
1431
|
function mt(e, t) {
|
|
1432
1432
|
return _(function(n, r) {
|
|
1433
|
-
var i = null, o = 0, u = !1,
|
|
1433
|
+
var i = null, o = 0, u = !1, s = function() {
|
|
1434
1434
|
return u && !i && r.complete();
|
|
1435
1435
|
};
|
|
1436
|
-
n.subscribe(w(r, function(
|
|
1436
|
+
n.subscribe(w(r, function(a) {
|
|
1437
1437
|
i == null || i.unsubscribe();
|
|
1438
1438
|
var c = 0, l = o++;
|
|
1439
|
-
I(e(
|
|
1440
|
-
return r.next(t ? t(
|
|
1439
|
+
I(e(a, l)).subscribe(i = w(r, function(d) {
|
|
1440
|
+
return r.next(t ? t(a, d, l, c++) : d);
|
|
1441
1441
|
}, function() {
|
|
1442
|
-
i = null,
|
|
1442
|
+
i = null, s();
|
|
1443
1443
|
}));
|
|
1444
1444
|
}, function() {
|
|
1445
|
-
u = !0,
|
|
1445
|
+
u = !0, s();
|
|
1446
1446
|
}));
|
|
1447
1447
|
});
|
|
1448
1448
|
}
|
|
@@ -1451,19 +1451,19 @@ function Bn(e, t, n) {
|
|
|
1451
1451
|
return r ? _(function(i, o) {
|
|
1452
1452
|
var u;
|
|
1453
1453
|
(u = r.subscribe) === null || u === void 0 || u.call(r);
|
|
1454
|
-
var
|
|
1455
|
-
i.subscribe(w(o, function(
|
|
1454
|
+
var s = !0;
|
|
1455
|
+
i.subscribe(w(o, function(a) {
|
|
1456
1456
|
var c;
|
|
1457
|
-
(c = r.next) === null || c === void 0 || c.call(r,
|
|
1457
|
+
(c = r.next) === null || c === void 0 || c.call(r, a), o.next(a);
|
|
1458
1458
|
}, function() {
|
|
1459
|
-
var
|
|
1460
|
-
|
|
1461
|
-
}, function(
|
|
1459
|
+
var a;
|
|
1460
|
+
s = !1, (a = r.complete) === null || a === void 0 || a.call(r), o.complete();
|
|
1461
|
+
}, function(a) {
|
|
1462
1462
|
var c;
|
|
1463
|
-
|
|
1463
|
+
s = !1, (c = r.error) === null || c === void 0 || c.call(r, a), o.error(a);
|
|
1464
1464
|
}, function() {
|
|
1465
|
-
var
|
|
1466
|
-
|
|
1465
|
+
var a, c;
|
|
1466
|
+
s && ((a = r.unsubscribe) === null || a === void 0 || a.call(r)), (c = r.finalize) === null || c === void 0 || c.call(r);
|
|
1467
1467
|
}));
|
|
1468
1468
|
}) : W;
|
|
1469
1469
|
}
|
|
@@ -1473,7 +1473,7 @@ function xe(e) {
|
|
|
1473
1473
|
return { unsubscribe: n };
|
|
1474
1474
|
});
|
|
1475
1475
|
}
|
|
1476
|
-
const Xn = "[DEFAULT]", bt = f.createContext(void 0), Ie = f.createContext(!1), er = "4.2.3-exp.
|
|
1476
|
+
const Xn = "[DEFAULT]", bt = f.createContext(void 0), Ie = f.createContext(!1), er = "4.2.3-exp.4329c43", tr = (e, t) => e === t || [...Object.keys(e), ...Object.keys(t)].every((n) => e[n] === t[n]);
|
|
1477
1477
|
function Lr(e) {
|
|
1478
1478
|
const {
|
|
1479
1479
|
firebaseConfig: t,
|
|
@@ -1539,15 +1539,15 @@ function qr(e) {
|
|
|
1539
1539
|
const r = xe(t).pipe(mt((i) => {
|
|
1540
1540
|
var o;
|
|
1541
1541
|
return i ? e && (e.hasOwnProperty("requiredClaims") || e.hasOwnProperty("validateCustomClaims")) ? O(i.getIdTokenResult((o = e == null ? void 0 : e.forceRefresh) !== null && o !== void 0 ? o : !1)).pipe(C((u) => {
|
|
1542
|
-
let
|
|
1543
|
-
e.hasOwnProperty("requiredClaims") ?
|
|
1542
|
+
let s;
|
|
1543
|
+
e.hasOwnProperty("requiredClaims") ? s = ir(e.requiredClaims) : s = e.validateCustomClaims;
|
|
1544
1544
|
const {
|
|
1545
|
-
hasRequiredClaims:
|
|
1545
|
+
hasRequiredClaims: a,
|
|
1546
1546
|
errors: c
|
|
1547
|
-
} =
|
|
1547
|
+
} = s(u.claims);
|
|
1548
1548
|
return {
|
|
1549
1549
|
signedIn: !0,
|
|
1550
|
-
hasRequiredClaims:
|
|
1550
|
+
hasRequiredClaims: a,
|
|
1551
1551
|
errors: c,
|
|
1552
1552
|
user: i
|
|
1553
1553
|
};
|
|
@@ -1587,11 +1587,11 @@ function or({
|
|
|
1587
1587
|
} = rr(e, !1), {
|
|
1588
1588
|
claims: o
|
|
1589
1589
|
} = i, u = {};
|
|
1590
|
-
return re() || console.warn("ClaimsCheck is deprecated and only works when ReactFire is in experimental Suspense Mode. Use useSigninCheck or set suspense={true} in FirebaseAppProvider if you want to use this component."), r && Object.keys(r).forEach((
|
|
1590
|
+
return re() || console.warn("ClaimsCheck is deprecated and only works when ReactFire is in experimental Suspense Mode. Use useSigninCheck or set suspense={true} in FirebaseAppProvider if you want to use this component."), r && Object.keys(r).forEach((a) => {
|
|
1591
1591
|
var c;
|
|
1592
|
-
r[
|
|
1593
|
-
expected: r[
|
|
1594
|
-
actual: (c = o[
|
|
1592
|
+
r[a] !== o[a] && (u[a] = {
|
|
1593
|
+
expected: r[a],
|
|
1594
|
+
actual: (c = o[a]) === null || c === void 0 ? void 0 : c.toString()
|
|
1595
1595
|
});
|
|
1596
1596
|
}), Object.keys(u).length === 0 ? f.createElement(f.Fragment, null, n) : f.createElement(f.Fragment, null, t);
|
|
1597
1597
|
}
|
|
@@ -1633,7 +1633,7 @@ var te = function() {
|
|
|
1633
1633
|
return t;
|
|
1634
1634
|
}, te.apply(this, arguments);
|
|
1635
1635
|
};
|
|
1636
|
-
function
|
|
1636
|
+
function ae(e, t) {
|
|
1637
1637
|
for (var n = 0, r = t.length, i = e.length; n < r; n++, i++)
|
|
1638
1638
|
e[i] = t[n];
|
|
1639
1639
|
return e;
|
|
@@ -1703,7 +1703,7 @@ function Oe(e, t) {
|
|
|
1703
1703
|
* See the License for the specific language governing permissions and
|
|
1704
1704
|
* limitations under the License.
|
|
1705
1705
|
*/
|
|
1706
|
-
function
|
|
1706
|
+
function sr(e) {
|
|
1707
1707
|
return (e == null || e.length === 0) && (e = [
|
|
1708
1708
|
m.added,
|
|
1709
1709
|
m.removed,
|
|
@@ -1727,7 +1727,7 @@ function ar(e) {
|
|
|
1727
1727
|
* See the License for the specific language governing permissions and
|
|
1728
1728
|
* limitations under the License.
|
|
1729
1729
|
*/
|
|
1730
|
-
function
|
|
1730
|
+
function ar(e) {
|
|
1731
1731
|
return Oe(e, m.value);
|
|
1732
1732
|
}
|
|
1733
1733
|
function cr(e, t) {
|
|
@@ -1749,7 +1749,7 @@ function lr(e) {
|
|
|
1749
1749
|
}
|
|
1750
1750
|
function wt(e, t) {
|
|
1751
1751
|
t === void 0 && (t = {});
|
|
1752
|
-
var n =
|
|
1752
|
+
var n = sr(t.events);
|
|
1753
1753
|
return lr(e).pipe(mt(function(r) {
|
|
1754
1754
|
if (!r.snapshot.exists())
|
|
1755
1755
|
return ee([]);
|
|
@@ -1757,7 +1757,7 @@ function wt(e, t) {
|
|
|
1757
1757
|
return n.forEach(function(o) {
|
|
1758
1758
|
i.push(Oe(e, o));
|
|
1759
1759
|
}), Un.apply(void 0, i).pipe(Jn(vr, []));
|
|
1760
|
-
}),
|
|
1760
|
+
}), Hn());
|
|
1761
1761
|
}
|
|
1762
1762
|
function fr(e, t) {
|
|
1763
1763
|
return t === void 0 && (t = {}), wt(e).pipe(C(function(n) {
|
|
@@ -1779,18 +1779,18 @@ function dr(e, t) {
|
|
|
1779
1779
|
return n === -1 ? e.length : n + 1;
|
|
1780
1780
|
}
|
|
1781
1781
|
function vr(e, t) {
|
|
1782
|
-
var n = t.snapshot, r = t.prevKey, i = t.event, o = n.key, u = _t(e, o),
|
|
1782
|
+
var n = t.snapshot, r = t.prevKey, i = t.event, o = n.key, u = _t(e, o), s = dr(e, r || void 0);
|
|
1783
1783
|
switch (i) {
|
|
1784
1784
|
case m.value:
|
|
1785
1785
|
if (t.snapshot && t.snapshot.exists()) {
|
|
1786
|
-
var
|
|
1786
|
+
var a = null;
|
|
1787
1787
|
t.snapshot.forEach(function(d) {
|
|
1788
1788
|
var v = {
|
|
1789
1789
|
snapshot: d,
|
|
1790
1790
|
event: m.value,
|
|
1791
|
-
prevKey:
|
|
1791
|
+
prevKey: a
|
|
1792
1792
|
};
|
|
1793
|
-
return
|
|
1793
|
+
return a = d.key, e = ae(ae([], e), [v]), !1;
|
|
1794
1794
|
});
|
|
1795
1795
|
}
|
|
1796
1796
|
return e;
|
|
@@ -1799,11 +1799,11 @@ function vr(e, t) {
|
|
|
1799
1799
|
var c = e[u - 1];
|
|
1800
1800
|
(c && c.snapshot.key || null) !== r && (e = e.filter(function(d) {
|
|
1801
1801
|
return d.snapshot.key !== n.key;
|
|
1802
|
-
}), e.splice(
|
|
1802
|
+
}), e.splice(s, 0, t));
|
|
1803
1803
|
} else {
|
|
1804
1804
|
if (r == null)
|
|
1805
|
-
return
|
|
1806
|
-
e = e.slice(), e.splice(
|
|
1805
|
+
return ae([t], e);
|
|
1806
|
+
e = e.slice(), e.splice(s, 0, t);
|
|
1807
1807
|
}
|
|
1808
1808
|
return e;
|
|
1809
1809
|
case m.removed:
|
|
@@ -1817,7 +1817,7 @@ function vr(e, t) {
|
|
|
1817
1817
|
case m.moved:
|
|
1818
1818
|
if (u > -1) {
|
|
1819
1819
|
var l = e.splice(u, 1)[0];
|
|
1820
|
-
return e = e.slice(), e.splice(
|
|
1820
|
+
return e = e.slice(), e.splice(s, 0, l), e;
|
|
1821
1821
|
}
|
|
1822
1822
|
return e;
|
|
1823
1823
|
default:
|
|
@@ -1830,12 +1830,12 @@ function St(e) {
|
|
|
1830
1830
|
const t = ve.findIndex((n) => n.isEqual(e));
|
|
1831
1831
|
return t > -1 ? t : ve.push(e) - 1;
|
|
1832
1832
|
}
|
|
1833
|
-
function
|
|
1834
|
-
const n = `database:object:${e.toString()}`, r =
|
|
1833
|
+
function Hr(e, t) {
|
|
1834
|
+
const n = `database:object:${e.toString()}`, r = ar(e);
|
|
1835
1835
|
return g(n, r, t);
|
|
1836
1836
|
}
|
|
1837
|
-
function
|
|
1838
|
-
const n = t ?
|
|
1837
|
+
function Kr(e, t) {
|
|
1838
|
+
const n = t ? H(t) : "NO_ID_FIELD", r = `database:objectVal:${e.toString()}:idField=${n}`, i = cr(e, {
|
|
1839
1839
|
keyField: n
|
|
1840
1840
|
});
|
|
1841
1841
|
return g(r, i, t);
|
|
@@ -1845,7 +1845,7 @@ function Yr(e, t) {
|
|
|
1845
1845
|
return g(n, r, t);
|
|
1846
1846
|
}
|
|
1847
1847
|
function Gr(e, t) {
|
|
1848
|
-
const n = t ?
|
|
1848
|
+
const n = t ? H(t) : "NO_ID_FIELD", r = `database:listVal:${St(e)}:idField=${n}`, i = fr(e, {
|
|
1849
1849
|
keyField: n
|
|
1850
1850
|
});
|
|
1851
1851
|
return g(r, i, t);
|
|
@@ -1919,15 +1919,16 @@ function mr(e, t) {
|
|
|
1919
1919
|
}));
|
|
1920
1920
|
}
|
|
1921
1921
|
class br extends ne {
|
|
1922
|
-
constructor(t, n) {
|
|
1923
|
-
super(), this._timeoutWindow = n, this._hasValue = !1, this._error = void 0, this._firstEmission = new Promise((
|
|
1924
|
-
next: (
|
|
1925
|
-
this._next(
|
|
1922
|
+
constructor(t, n, r) {
|
|
1923
|
+
super(), this._timeoutWindow = n, this._suspenseEnabled = r, this._hasValue = !1, this._error = void 0, this._firstEmission = new Promise((i) => this._resolveFirstEmission = i), this._innerObservable = t.pipe(Bn({
|
|
1924
|
+
next: (i) => {
|
|
1925
|
+
this._next(i);
|
|
1926
1926
|
},
|
|
1927
|
-
error: (
|
|
1928
|
-
this._error =
|
|
1927
|
+
error: (i) => {
|
|
1928
|
+
this._error = i, this._resolveFirstEmission();
|
|
1929
1929
|
}
|
|
1930
|
-
}), vt(() => mn()), Zn(1)), this._warmupSubscription = this._innerObservable.subscribe(), this.
|
|
1930
|
+
}), vt(() => mn()), Zn(1)), this._warmupSubscription = this._innerObservable.subscribe(), this._suspenseEnabled ? (console.log("SuspenseSubject: Suspense is enabled"), this._timeoutHandler = setTimeout(() => {
|
|
1931
|
+
}, this._timeoutWindow)) : this._timeoutHandler = setTimeout(this._reset.bind(this), this._timeoutWindow);
|
|
1931
1932
|
}
|
|
1932
1933
|
get hasValue() {
|
|
1933
1934
|
return this._hasValue || !!this._error;
|
|
@@ -1957,12 +1958,12 @@ class br extends ne {
|
|
|
1957
1958
|
}
|
|
1958
1959
|
const yr = 3e4, Z = globalThis._reactFirePreloadedObservables || /* @__PURE__ */ new Map();
|
|
1959
1960
|
globalThis._reactFirePreloadedObservables || (globalThis._reactFirePreloadedObservables = Z);
|
|
1960
|
-
function Ae(e, t) {
|
|
1961
|
+
function Ae(e, t, n = !1) {
|
|
1961
1962
|
if (Z.has(t))
|
|
1962
1963
|
return Z.get(t);
|
|
1963
1964
|
{
|
|
1964
|
-
const
|
|
1965
|
-
return Z.set(t,
|
|
1965
|
+
const r = new br(e, yr, n);
|
|
1966
|
+
return Z.set(t, r), r;
|
|
1966
1967
|
}
|
|
1967
1968
|
}
|
|
1968
1969
|
function gr(e) {
|
|
@@ -1984,19 +1985,19 @@ function g(e, t, n = {}) {
|
|
|
1984
1985
|
var r;
|
|
1985
1986
|
if (!e)
|
|
1986
1987
|
throw new Error("cannot call useObservable without an observableId");
|
|
1987
|
-
const i = Ae(t, e),
|
|
1988
|
-
if (
|
|
1989
|
-
throw
|
|
1990
|
-
const
|
|
1991
|
-
status:
|
|
1992
|
-
hasEmitted:
|
|
1988
|
+
const i = re(n.suspense), o = Ae(t, e, i), u = n.hasOwnProperty("initialData") || n.hasOwnProperty("startWithValue"), s = o.hasValue || u;
|
|
1989
|
+
if (i === !0 && !s)
|
|
1990
|
+
throw o.firstEmission;
|
|
1991
|
+
const a = {
|
|
1992
|
+
status: s ? "success" : "loading",
|
|
1993
|
+
hasEmitted: s,
|
|
1993
1994
|
isComplete: !1,
|
|
1994
|
-
data:
|
|
1995
|
-
error:
|
|
1996
|
-
firstValuePromise:
|
|
1997
|
-
}, [c, l] = f.useReducer(gr(
|
|
1995
|
+
data: o.hasValue ? o.value : (r = n == null ? void 0 : n.initialData) !== null && r !== void 0 ? r : n == null ? void 0 : n.startWithValue,
|
|
1996
|
+
error: o.ourError,
|
|
1997
|
+
firstValuePromise: o.firstEmission
|
|
1998
|
+
}, [c, l] = f.useReducer(gr(o), a);
|
|
1998
1999
|
return f.useEffect(() => {
|
|
1999
|
-
const d =
|
|
2000
|
+
const d = o.subscribe({
|
|
2000
2001
|
next: () => {
|
|
2001
2002
|
l("value");
|
|
2002
2003
|
},
|
|
@@ -2008,7 +2009,7 @@ function g(e, t, n = {}) {
|
|
|
2008
2009
|
}
|
|
2009
2010
|
});
|
|
2010
2011
|
return () => d.unsubscribe();
|
|
2011
|
-
}, [
|
|
2012
|
+
}, [o]), c;
|
|
2012
2013
|
}
|
|
2013
2014
|
const he = globalThis._reactFireFirestoreQueryCache || [];
|
|
2014
2015
|
globalThis._reactFireFirestoreQueryCache || (globalThis._reactFireFirestoreQueryCache = he);
|
|
@@ -2034,13 +2035,13 @@ function Zr(e, t) {
|
|
|
2034
2035
|
return g(n, r, t);
|
|
2035
2036
|
}
|
|
2036
2037
|
function Br(e, t) {
|
|
2037
|
-
const n = t ?
|
|
2038
|
+
const n = t ? H(t) : "NO_ID_FIELD", r = `firestore:docData:${e.firestore.app.name}:${e.path}:idField=${n}`, i = Ct(e, {
|
|
2038
2039
|
idField: n
|
|
2039
2040
|
});
|
|
2040
2041
|
return g(r, i, t);
|
|
2041
2042
|
}
|
|
2042
2043
|
function Xr(e, t) {
|
|
2043
|
-
const n = t ?
|
|
2044
|
+
const n = t ? H(t) : "NO_ID_FIELD", r = `firestore:docDataOnce:${e.firestore.app.name}:${e.path}:idField=${n}`, i = Ct(e, {
|
|
2044
2045
|
idField: n
|
|
2045
2046
|
}).pipe(pt());
|
|
2046
2047
|
return g(r, i, t);
|
|
@@ -2050,7 +2051,7 @@ function ei(e, t) {
|
|
|
2050
2051
|
return g(n, r, t);
|
|
2051
2052
|
}
|
|
2052
2053
|
function ti(e, t) {
|
|
2053
|
-
const n = t ?
|
|
2054
|
+
const n = t ? H(t) : "NO_ID_FIELD", r = `firestore:collectionData:${xt(e)}:idField=${n}`, i = mr(e, {
|
|
2054
2055
|
idField: n
|
|
2055
2056
|
});
|
|
2056
2057
|
return g(r, i, t);
|
|
@@ -2089,28 +2090,28 @@ function ri({
|
|
|
2089
2090
|
fallback: n
|
|
2090
2091
|
}) {
|
|
2091
2092
|
var r;
|
|
2092
|
-
const i = ((r = performance == null ? void 0 : performance.getEntriesByName) === null || r === void 0 ? void 0 : r.call(performance, t, "measure")) || [], o = `_${t}Start[${i.length}]`, u = `_${t}End[${i.length}]`,
|
|
2093
|
-
var
|
|
2094
|
-
return (
|
|
2093
|
+
const i = ((r = performance == null ? void 0 : performance.getEntriesByName) === null || r === void 0 ? void 0 : r.call(performance, t, "measure")) || [], o = `_${t}Start[${i.length}]`, u = `_${t}End[${i.length}]`, s = () => (f.useLayoutEffect(() => {
|
|
2094
|
+
var a;
|
|
2095
|
+
return (a = performance == null ? void 0 : performance.mark) === null || a === void 0 || a.call(performance, o), () => {
|
|
2095
2096
|
var c, l;
|
|
2096
2097
|
(c = performance == null ? void 0 : performance.mark) === null || c === void 0 || c.call(performance, u), (l = performance == null ? void 0 : performance.measure) === null || l === void 0 || l.call(performance, t, o, u);
|
|
2097
2098
|
};
|
|
2098
2099
|
}, []), f.createElement(f.Fragment, null, n));
|
|
2099
2100
|
return f.createElement(f.Suspense, {
|
|
2100
|
-
fallback: f.createElement(
|
|
2101
|
+
fallback: f.createElement(s, null)
|
|
2101
2102
|
}, e);
|
|
2102
2103
|
}
|
|
2103
2104
|
function q(e) {
|
|
2104
2105
|
var t = e.remoteConfig, n = e.key, r = e.getter;
|
|
2105
2106
|
return new y(function(i) {
|
|
2106
|
-
|
|
2107
|
+
Ht(t).then(function() {
|
|
2107
2108
|
var o = r.bind(t);
|
|
2108
2109
|
i.next(o(t, n));
|
|
2109
2110
|
});
|
|
2110
2111
|
});
|
|
2111
2112
|
}
|
|
2112
2113
|
function _r(e, t) {
|
|
2113
|
-
var n =
|
|
2114
|
+
var n = Kt;
|
|
2114
2115
|
return q({ remoteConfig: e, key: t, getter: n });
|
|
2115
2116
|
}
|
|
2116
2117
|
function Sr(e, t) {
|
|
@@ -2142,10 +2143,10 @@ function oi(e) {
|
|
|
2142
2143
|
function ui(e) {
|
|
2143
2144
|
return Q(e, Cr);
|
|
2144
2145
|
}
|
|
2145
|
-
function
|
|
2146
|
+
function si(e) {
|
|
2146
2147
|
return Q(e, Er);
|
|
2147
2148
|
}
|
|
2148
|
-
function
|
|
2149
|
+
function ai(e) {
|
|
2149
2150
|
return Q(e, xr);
|
|
2150
2151
|
}
|
|
2151
2152
|
function Ir(e) {
|
|
@@ -2202,11 +2203,11 @@ function Ot(e) {
|
|
|
2202
2203
|
if (!t)
|
|
2203
2204
|
throw new Error("Storage was not passed to component INTERNALStorageImage. This should not be possible");
|
|
2204
2205
|
const {
|
|
2205
|
-
status:
|
|
2206
|
-
data:
|
|
2206
|
+
status: s,
|
|
2207
|
+
data: a
|
|
2207
2208
|
} = kr(Qt(t, n), u);
|
|
2208
|
-
return
|
|
2209
|
-
src:
|
|
2209
|
+
return s === "success" ? (o.alt || o.alt === "" || console.warn(`No alt prop provided for StorageImage with storagePath "${n}"`, "img elements must have an alt prop, either with meaningful text, or an empty string for decorative images"), f.createElement("img", Object.assign({
|
|
2210
|
+
src: a,
|
|
2210
2211
|
alt: o.alt
|
|
2211
2212
|
}, o))) : i != null ? i : f.createElement(f.Fragment, null, "''");
|
|
2212
2213
|
}
|
|
@@ -2257,7 +2258,7 @@ function At(e, t) {
|
|
|
2257
2258
|
function Di(e) {
|
|
2258
2259
|
return At(e, "initialData");
|
|
2259
2260
|
}
|
|
2260
|
-
function
|
|
2261
|
+
function H(e) {
|
|
2261
2262
|
return At(e, "idField");
|
|
2262
2263
|
}
|
|
2263
2264
|
export {
|
|
@@ -2285,7 +2286,7 @@ export {
|
|
|
2285
2286
|
yi as StorageProvider,
|
|
2286
2287
|
je as StorageSdkContext,
|
|
2287
2288
|
ri as SuspenseWithPerf,
|
|
2288
|
-
|
|
2289
|
+
H as checkIdField,
|
|
2289
2290
|
At as checkOptions,
|
|
2290
2291
|
Di as checkinitialData,
|
|
2291
2292
|
Jr as preloadFirestoreDoc,
|
|
@@ -2298,8 +2299,8 @@ export {
|
|
|
2298
2299
|
Si as useDatabase,
|
|
2299
2300
|
Yr as useDatabaseList,
|
|
2300
2301
|
Gr as useDatabaseListData,
|
|
2301
|
-
|
|
2302
|
-
|
|
2302
|
+
Hr as useDatabaseObject,
|
|
2303
|
+
Kr as useDatabaseObjectData,
|
|
2303
2304
|
yt as useFirebaseApp,
|
|
2304
2305
|
Ci as useFirestore,
|
|
2305
2306
|
ei as useFirestoreCollection,
|
|
@@ -2323,8 +2324,8 @@ export {
|
|
|
2323
2324
|
g as useObservable,
|
|
2324
2325
|
Ei as usePerformance,
|
|
2325
2326
|
$r as useRemoteConfig,
|
|
2326
|
-
|
|
2327
|
-
|
|
2327
|
+
ai as useRemoteConfigAll,
|
|
2328
|
+
si as useRemoteConfigBoolean,
|
|
2328
2329
|
ui as useRemoteConfigNumber,
|
|
2329
2330
|
oi as useRemoteConfigString,
|
|
2330
2331
|
ii as useRemoteConfigValue,
|