@braze/web-sdk 6.6.0 → 6.7.1
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/index.d.ts +253 -5
- package/package.json +1 -1
- package/shared-lib/event-types.js +21 -20
- package/shared-lib/guid.js +3 -3
- package/shared-lib/indexed-db-adapter.js +70 -70
- package/shared-lib/logger.js +7 -7
- package/shared-lib/supported-options.js +26 -26
- package/src/Banner/banner-factory.js +11 -1
- package/src/Banner/banner-provider.js +244 -120
- package/src/Banner/banner.js +14 -12
- package/src/Banner/display/banner-to-html.js +23 -16
- package/src/Banner/display/detect-banner-impressions.js +13 -13
- package/src/Banner/get-all-banners.js +5 -5
- package/src/Banner/get-banner.js +4 -4
- package/src/Banner/log-banner-click.js +4 -4
- package/src/Banner/log-banner-dismissal.js +23 -0
- package/src/Banner/log-banner-impressions.js +7 -7
- package/src/Banner/request-banners-refresh.js +12 -16
- package/src/Banner/subscribe-to-banners-updates.js +6 -6
- package/src/Banner/ui/insert-banner.js +12 -12
- package/src/Card/card-manager-factory.js +5 -5
- package/src/Card/card-manager.js +33 -33
- package/src/Card/constants.js +1 -1
- package/src/Card/display/card-display.js +11 -11
- package/src/Card/log-card-dismissal.js +3 -3
- package/src/Card/log-content-card-click.js +3 -3
- package/src/Card/log-content-card-impressions.js +6 -6
- package/src/Card/models/captioned-image.js +21 -21
- package/src/Card/models/card.js +73 -73
- package/src/Card/models/classic-card.js +21 -21
- package/src/Card/models/control-card.js +11 -11
- package/src/Card/models/image-only.js +18 -18
- package/src/Card/util/card-factory.js +41 -41
- package/src/ContentCards/content-cards-provider-factory.js +12 -12
- package/src/ContentCards/content-cards-provider.js +151 -151
- package/src/ContentCards/content-cards.js +5 -5
- package/src/ContentCards/get-cached-content-cards.js +2 -2
- package/src/ContentCards/request-content-cards-refresh.js +2 -2
- package/src/ContentCards/subscribe-to-content-cards-updates.js +6 -6
- package/src/ContentCards/ui/show-content-cards.js +10 -10
- package/src/Core/add-sdk-metadata.js +2 -2
- package/src/Core/change-user.js +6 -6
- package/src/Core/disable-sdk.js +9 -9
- package/src/Core/enable-sdk.js +5 -5
- package/src/Core/get-user.js +1 -1
- package/src/Core/handle-braze-action.js +3 -3
- package/src/Core/is-disabled.js +2 -2
- package/src/Core/log-custom-event.js +8 -8
- package/src/Core/log-purchase.js +5 -5
- package/src/Core/open-session.js +7 -7
- package/src/Core/set-sdk-authentication-signature.js +3 -3
- package/src/Core/subscribe-to-sdk-authentication-failures.js +1 -1
- package/src/Core/wipe-data.js +6 -6
- package/src/DUST/dust-provider-factory.js +11 -11
- package/src/DUST/dust-provider.js +255 -255
- package/src/DUST/dust-shared-worker-impl.js +100 -100
- package/src/DUST/dust-worker-bridge.js +27 -27
- package/src/DUST/subscribe-to-dust.js +9 -9
- package/src/FeatureFlags/feature-flag-factory.js +8 -8
- package/src/FeatureFlags/feature-flag.js +9 -9
- package/src/FeatureFlags/feature-flags-provider.js +86 -86
- package/src/FeatureFlags/get-all-feature-flags.js +2 -2
- package/src/FeatureFlags/get-feature-flag.js +2 -2
- package/src/FeatureFlags/log-feature-flag-impression.js +5 -5
- package/src/FeatureFlags/subscribe-to-feature-flags-updates.js +2 -2
- package/src/InAppMessage/constants.js +83 -2
- package/src/InAppMessage/display/html-message-display-utils.js +15 -15
- package/src/InAppMessage/display/html-message-to-html.js +36 -37
- package/src/InAppMessage/display/in-app-message-to-html.js +44 -44
- package/src/InAppMessage/display/modal-utils.js +10 -14
- package/src/InAppMessage/in-app-message-factory.js +16 -20
- package/src/InAppMessage/in-app-message-manager.js +115 -116
- package/src/InAppMessage/log-in-app-message-button-click.js +8 -8
- package/src/InAppMessage/log-in-app-message-click.js +7 -7
- package/src/InAppMessage/log-in-app-message-html-click.js +8 -8
- package/src/InAppMessage/log-in-app-message-impression.js +5 -5
- package/src/InAppMessage/models/control-message.js +4 -4
- package/src/InAppMessage/models/full-screen-message.js +56 -49
- package/src/InAppMessage/models/html-message.js +31 -27
- package/src/InAppMessage/models/in-app-message-button.js +12 -12
- package/src/InAppMessage/models/in-app-message.js +202 -256
- package/src/InAppMessage/models/modal-message.js +55 -49
- package/src/InAppMessage/models/slide-up-message.js +57 -51
- package/src/InAppMessage/models/templated-in-app-message.js +10 -10
- package/src/InAppMessage/shared-types.js +1 -0
- package/src/InAppMessage/subscribe-to-in-app-message.js +1 -1
- package/src/InAppMessage/ui/automatically-show-in-app-messages.js +5 -5
- package/src/InAppMessage/ui/remove-all-visible-in-app-messages.js +3 -3
- package/src/InAppMessage/ui/show-in-app-message.js +43 -41
- package/src/Push/is-push-blocked.js +2 -2
- package/src/Push/is-push-permission-granted.js +2 -2
- package/src/Push/is-push-supported.js +2 -2
- package/src/Push/push-manager-factory.js +9 -9
- package/src/Push/push-manager.js +15 -15
- package/src/Push/utils/push-utils.js +15 -15
- package/src/User/user-manager.js +14 -14
- package/src/User/user.js +60 -59
- package/src/common/base-provider.js +1 -1
- package/src/common/constants.js +2 -1
- package/src/common/content-cards-display.js +38 -38
- package/src/common/event-logger.js +8 -8
- package/src/l10n/l10n-manager-factory.js +9 -9
- package/src/l10n/l10n-manager.js +2 -2
- package/src/managers/auth-manager.js +31 -31
- package/src/managers/braze-instance.js +197 -186
- package/src/managers/constants.js +1 -0
- package/src/managers/device-manager.js +25 -25
- package/src/managers/network-manager.js +155 -155
- package/src/managers/server-config-manager.js +106 -93
- package/src/managers/session-manager.js +37 -33
- package/src/managers/storage-manager-factory.js +33 -28
- package/src/managers/storage-manager.js +192 -170
- package/src/managers/subscription-manager.js +13 -13
- package/src/managers/utils.js +1 -1
- package/src/models/backend-errors.js +5 -5
- package/src/models/braze-event.js +13 -13
- package/src/models/device.js +3 -3
- package/src/models/identifier.js +12 -12
- package/src/models/push-token.js +9 -9
- package/src/models/request-result.js +4 -4
- package/src/models/server-config.js +29 -38
- package/src/request-controller.js +160 -164
- package/src/triggers/models/custom-event-data.js +7 -7
- package/src/triggers/models/custom-event-property-data.js +10 -10
- package/src/triggers/models/filter-set.js +12 -12
- package/src/triggers/models/filter.js +66 -66
- package/src/triggers/models/in-app-message-click-data.js +13 -13
- package/src/triggers/models/purchase-data.js +4 -4
- package/src/triggers/models/purchase-property-data.js +10 -10
- package/src/triggers/models/push-click-data.js +8 -8
- package/src/triggers/models/trigger-condition.js +58 -58
- package/src/triggers/models/trigger-events.js +3 -3
- package/src/triggers/models/trigger.js +44 -44
- package/src/triggers/triggers-provider-factory.js +5 -5
- package/src/triggers/triggers-provider.js +70 -70
- package/src/ui/js/attach-css.js +3 -3
- package/src/ui/js/feed-css.js +2 -2
- package/src/ui/js/iam-css.js +2 -2
- package/src/ui/js/load-font-awesome.js +2 -2
- package/src/util/base-device-parser.js +9 -9
- package/src/util/braze-actions.js +3 -3
- package/src/util/browser-detector.js +37 -37
- package/src/util/client-hints-parser.js +9 -9
- package/src/util/component-utils.js +3 -3
- package/src/util/dom-utils.js +2 -2
- package/src/util/html-display-utils.js +11 -11
- package/src/util/key-codes.js +1 -1
- package/src/util/net.js +8 -8
- package/src/util/request-header-utils.js +25 -25
- package/src/util/user-agent-parser.js +20 -20
- package/src/util/validation-utils.js +21 -21
- package/src/util/window-utils.js +3 -3
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
|
-
getCardId as
|
|
3
|
-
markCardAsRead as
|
|
2
|
+
getCardId as Rt,
|
|
3
|
+
markCardAsRead as Ht,
|
|
4
4
|
} from "../Card/display/card-display.js";
|
|
5
|
-
import { bottomIsInView as
|
|
5
|
+
import { bottomIsInView as q, topIsInView as k } from "../util/dom-utils.js";
|
|
6
6
|
import { Card, ControlCard } from "../Card/index.js";
|
|
7
|
-
import { cardToHtml as
|
|
8
|
-
import { isArray as
|
|
7
|
+
import { cardToHtml as qt } from "../Card/display/card-display.js";
|
|
8
|
+
import { isArray as g } from "../util/code-utils.js";
|
|
9
9
|
import { KeyCodes as Ce } from "../util/key-codes.js";
|
|
10
|
-
import
|
|
10
|
+
import Je from "../l10n/l10n-manager-factory.js";
|
|
11
11
|
import { removeSubscription } from "../Core/remove-subscription.js";
|
|
12
|
-
import { logger as E, Guid as
|
|
12
|
+
import { logger as E, Guid as V } from "../../shared-lib/index.js";
|
|
13
13
|
import { BRAZE_ACTION_URI_REGEX as to } from "../util/validation-utils.js";
|
|
14
14
|
import {
|
|
15
|
-
INELIGIBLE_BRAZE_ACTION_URL_ERROR_TYPES as
|
|
16
|
-
ineligibleBrazeActionURLErrorMessage as
|
|
15
|
+
INELIGIBLE_BRAZE_ACTION_URL_ERROR_TYPES as bt,
|
|
16
|
+
ineligibleBrazeActionURLErrorMessage as yt,
|
|
17
17
|
getDecodedBrazeAction as eo,
|
|
18
|
-
containsUnknownBrazeAction as
|
|
18
|
+
containsUnknownBrazeAction as vt,
|
|
19
19
|
} from "../util/braze-actions.js";
|
|
20
20
|
import {
|
|
21
|
-
bottomHadImpression as
|
|
21
|
+
bottomHadImpression as Ot,
|
|
22
22
|
impressOnBottom as $,
|
|
23
|
-
impressOnTop as
|
|
24
|
-
topHadImpression as
|
|
23
|
+
impressOnTop as B,
|
|
24
|
+
topHadImpression as Bt,
|
|
25
25
|
} from "./detect-impression.js";
|
|
26
26
|
import { BannerStrings as j } from "../Banner/constants.js";
|
|
27
27
|
import ContentCards from "../ContentCards/content-cards.js";
|
|
@@ -34,7 +34,7 @@ export function destroyContentCardsHtml(t) {
|
|
|
34
34
|
((t.className = t.className.replace("ab-show", "ab-hide")),
|
|
35
35
|
setTimeout(() => {
|
|
36
36
|
t && t.parentNode && t.parentNode.removeChild(t);
|
|
37
|
-
}, ContentCards.
|
|
37
|
+
}, ContentCards.gr));
|
|
38
38
|
const e = t.getAttribute(j.ea);
|
|
39
39
|
null != e && removeSubscription(e);
|
|
40
40
|
const n = t.getAttribute("data-listener-id");
|
|
@@ -43,7 +43,7 @@ export function destroyContentCardsHtml(t) {
|
|
|
43
43
|
delete scrollListeners[n]);
|
|
44
44
|
}
|
|
45
45
|
export function generateContentCardsUI(t, e) {
|
|
46
|
-
const n =
|
|
46
|
+
const n = Je.ra(),
|
|
47
47
|
o = document.createElement("div");
|
|
48
48
|
if (
|
|
49
49
|
((o.className = "ab-feed-body"),
|
|
@@ -59,11 +59,11 @@ export function generateContentCardsUI(t, e) {
|
|
|
59
59
|
o.appendChild(t);
|
|
60
60
|
} else {
|
|
61
61
|
let s = !1;
|
|
62
|
-
const r = (e) => t.
|
|
62
|
+
const r = (e) => t.cr(e);
|
|
63
63
|
for (const a of t.cards) {
|
|
64
64
|
const i = a instanceof ControlCard;
|
|
65
|
-
!i || t.
|
|
66
|
-
? (o.appendChild(
|
|
65
|
+
!i || t.hr()
|
|
66
|
+
? (o.appendChild(qt(a, r, e, n.wa())), (s = s || !i))
|
|
67
67
|
: E.error(
|
|
68
68
|
"Received a control card for a legacy news feed. Control cards are only supported with content cards.",
|
|
69
69
|
);
|
|
@@ -82,31 +82,31 @@ export function detectContentCardsImpressions(t, e) {
|
|
|
82
82
|
if (null != t && null != e) {
|
|
83
83
|
const n = [],
|
|
84
84
|
o = e.querySelectorAll(".ab-card");
|
|
85
|
-
t.
|
|
85
|
+
t.Ta || (t.Ta = {});
|
|
86
86
|
for (let e = 0; e < o.length; e++) {
|
|
87
|
-
const s =
|
|
88
|
-
r =
|
|
89
|
-
a =
|
|
90
|
-
if (t.
|
|
91
|
-
r || a ||
|
|
87
|
+
const s = Rt(o[e]),
|
|
88
|
+
r = k(o[e]),
|
|
89
|
+
a = q(o[e]);
|
|
90
|
+
if (t.Ta[s]) {
|
|
91
|
+
r || a || Ht(o[e]);
|
|
92
92
|
continue;
|
|
93
93
|
}
|
|
94
|
-
let i =
|
|
95
|
-
l =
|
|
94
|
+
let i = Bt(o[e]),
|
|
95
|
+
l = Ot(o[e]);
|
|
96
96
|
const d = i,
|
|
97
97
|
c = l;
|
|
98
98
|
if (
|
|
99
|
-
(!i && r && ((i = !0),
|
|
99
|
+
(!i && r && ((i = !0), B(o[e])), !l && a && ((l = !0), $(o[e])), i && l)
|
|
100
100
|
) {
|
|
101
101
|
if (d && c) continue;
|
|
102
102
|
for (const e of t.cards)
|
|
103
103
|
if (e.id === s) {
|
|
104
|
-
(t.
|
|
104
|
+
(t.Ta[e.id] = !0), n.push(e);
|
|
105
105
|
break;
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
|
-
n.length > 0 && t.
|
|
109
|
+
n.length > 0 && t.ur(n);
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
export function refreshContentCardsUI(t, e) {
|
|
@@ -124,15 +124,15 @@ export function refreshContentCardsUI(t, e) {
|
|
|
124
124
|
const n = e.querySelectorAll(".ab-initial-spinner")[0];
|
|
125
125
|
if (null != n) {
|
|
126
126
|
const t = document.createElement("span");
|
|
127
|
-
(t.innerHTML =
|
|
127
|
+
(t.innerHTML = Je.ra().get("FEED_TIMEOUT_MESSAGE") || ""),
|
|
128
128
|
null != n.parentNode &&
|
|
129
129
|
(n.parentNode.appendChild(t), n.parentNode.removeChild(n));
|
|
130
130
|
}
|
|
131
131
|
"true" === e.getAttribute("aria-busy") &&
|
|
132
132
|
e.setAttribute("aria-busy", "false");
|
|
133
133
|
}
|
|
134
|
-
}, ContentCards.
|
|
135
|
-
t.
|
|
134
|
+
}, ContentCards.jr),
|
|
135
|
+
t.Cr();
|
|
136
136
|
}
|
|
137
137
|
export function contentCardsToHtml(t, e, n) {
|
|
138
138
|
const o = document.createElement("div");
|
|
@@ -153,7 +153,7 @@ export function contentCardsToHtml(t, e, n) {
|
|
|
153
153
|
destroyContentCardsHtml(o), t.stopPropagation();
|
|
154
154
|
};
|
|
155
155
|
r.addEventListener("keydown", (t) => {
|
|
156
|
-
(t.keyCode !== Ce.
|
|
156
|
+
(t.keyCode !== Ce.Ao && t.keyCode !== Ce.Lo) || a(t);
|
|
157
157
|
}),
|
|
158
158
|
(r.onclick = a);
|
|
159
159
|
const i = document.createElement("i");
|
|
@@ -166,7 +166,7 @@ export function contentCardsToHtml(t, e, n) {
|
|
|
166
166
|
refreshContentCardsUI(t, o), e.stopPropagation();
|
|
167
167
|
};
|
|
168
168
|
i.addEventListener("keydown", (t) => {
|
|
169
|
-
(t.keyCode !== Ce.
|
|
169
|
+
(t.keyCode !== Ce.Ao && t.keyCode !== Ce.Lo) || l(t);
|
|
170
170
|
}),
|
|
171
171
|
(i.onclick = l),
|
|
172
172
|
s.appendChild(i),
|
|
@@ -175,20 +175,20 @@ export function contentCardsToHtml(t, e, n) {
|
|
|
175
175
|
const d = () => detectContentCardsImpressions(t, o);
|
|
176
176
|
if ((o.addEventListener("scroll", d), !n)) {
|
|
177
177
|
window.addEventListener("scroll", d);
|
|
178
|
-
const t =
|
|
178
|
+
const t = V.de();
|
|
179
179
|
(scrollListeners[t] = d), o.setAttribute("data-listener-id", t);
|
|
180
180
|
}
|
|
181
181
|
return o;
|
|
182
182
|
}
|
|
183
183
|
export function updateContentCards(t, e, n, o, s) {
|
|
184
|
-
if (!
|
|
184
|
+
if (!g(e)) return;
|
|
185
185
|
const r = [];
|
|
186
186
|
for (const t of e)
|
|
187
187
|
if (t instanceof Card) {
|
|
188
188
|
if (t.url && to.test(t.url)) {
|
|
189
189
|
const e = eo(t.url);
|
|
190
|
-
if (
|
|
191
|
-
E.error(
|
|
190
|
+
if (vt(e)) {
|
|
191
|
+
E.error(yt(bt.Un, "Content Card"));
|
|
192
192
|
continue;
|
|
193
193
|
}
|
|
194
194
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { logger as E } from "../../shared-lib/index.js";
|
|
2
2
|
import r from "../managers/braze-instance.js";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import Ie from "../models/braze-event.js";
|
|
4
|
+
import L from "../models/request-result.js";
|
|
5
5
|
const v = {
|
|
6
|
-
|
|
6
|
+
wt: (e, o, t) => {
|
|
7
7
|
var n, s;
|
|
8
|
-
const i = new
|
|
8
|
+
const i = new L(),
|
|
9
9
|
l = r.u();
|
|
10
10
|
if (!l)
|
|
11
11
|
return (
|
|
@@ -16,8 +16,8 @@ const v = {
|
|
|
16
16
|
);
|
|
17
17
|
const d = l.el();
|
|
18
18
|
return (
|
|
19
|
-
i.
|
|
20
|
-
new
|
|
19
|
+
i.Ce.push(
|
|
20
|
+
new Ie(
|
|
21
21
|
t || (null === (n = r.ir()) || void 0 === n ? void 0 : n.getUserId()),
|
|
22
22
|
e,
|
|
23
23
|
new Date().valueOf(),
|
|
@@ -25,8 +25,8 @@ const v = {
|
|
|
25
25
|
o,
|
|
26
26
|
),
|
|
27
27
|
),
|
|
28
|
-
(i.
|
|
29
|
-
(null === (s = r.p()) || void 0 === s ? void 0 : s.ol(i.
|
|
28
|
+
(i.lt =
|
|
29
|
+
(null === (s = r.p()) || void 0 === s ? void 0 : s.ol(i.Ce)) || !1),
|
|
30
30
|
i
|
|
31
31
|
);
|
|
32
32
|
},
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import r, { OPTIONS as
|
|
1
|
+
import r, { OPTIONS as U } from "../managers/braze-instance.js";
|
|
2
2
|
import ro from "../util/browser-detector.js";
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import gr from "./l10n-manager.js";
|
|
4
|
+
const Je = {
|
|
5
5
|
i: !1,
|
|
6
6
|
na: null,
|
|
7
7
|
ra: () => {
|
|
8
|
-
if ((
|
|
8
|
+
if ((Je.t(), !Je.na)) {
|
|
9
9
|
let e = ro.language,
|
|
10
10
|
t = !1;
|
|
11
|
-
r.
|
|
11
|
+
r.er(U.qa) && ((e = r.er(U.qa)), (t = !0)), (Je.na = new gr(e, t));
|
|
12
12
|
}
|
|
13
|
-
return
|
|
13
|
+
return Je.na;
|
|
14
14
|
},
|
|
15
15
|
t: () => {
|
|
16
|
-
|
|
16
|
+
Je.i || (r.g(Je), (Je.i = !0));
|
|
17
17
|
},
|
|
18
18
|
destroy: () => {
|
|
19
|
-
(
|
|
19
|
+
(Je.na = null), (Je.i = !1);
|
|
20
20
|
},
|
|
21
21
|
};
|
|
22
|
-
export default
|
|
22
|
+
export default Je;
|
package/src/l10n/l10n-manager.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { logger as E } from "../../shared-lib/index.js";
|
|
2
2
|
import zt from "../common/translations.js";
|
|
3
|
-
export default class
|
|
3
|
+
export default class gr {
|
|
4
4
|
constructor(t, e = !1) {
|
|
5
5
|
if (
|
|
6
6
|
((this.language = t),
|
|
@@ -22,7 +22,7 @@ export default class mr {
|
|
|
22
22
|
get(t) {
|
|
23
23
|
return zt[this.language][t];
|
|
24
24
|
}
|
|
25
|
-
|
|
25
|
+
wa() {
|
|
26
26
|
switch (this.language) {
|
|
27
27
|
case "ar":
|
|
28
28
|
case "he":
|
|
@@ -1,51 +1,51 @@
|
|
|
1
1
|
import { STORAGE_KEYS as s } from "./storage-manager.js";
|
|
2
|
-
import
|
|
2
|
+
import f from "./subscription-manager.js";
|
|
3
3
|
import { logger as E, IndexedDBAdapter as et } from "../../shared-lib/index.js";
|
|
4
|
-
export default class
|
|
4
|
+
export default class Gt {
|
|
5
5
|
constructor(t, i, s) {
|
|
6
|
-
(this.
|
|
6
|
+
(this.C = t),
|
|
7
7
|
(this.gh = i),
|
|
8
|
-
(this.
|
|
9
|
-
(this.
|
|
8
|
+
(this.bh = s),
|
|
9
|
+
(this.C = t),
|
|
10
10
|
(this.gh = i || !1),
|
|
11
|
-
(this.
|
|
12
|
-
(this.
|
|
13
|
-
(this.
|
|
14
|
-
(this.
|
|
11
|
+
(this.bh = s),
|
|
12
|
+
(this.Sh = new f()),
|
|
13
|
+
(this.Ah = 0),
|
|
14
|
+
(this.ph = 1);
|
|
15
15
|
}
|
|
16
|
-
|
|
16
|
+
Fh() {
|
|
17
17
|
return this.gh;
|
|
18
18
|
}
|
|
19
|
-
|
|
20
|
-
return this.
|
|
19
|
+
kh() {
|
|
20
|
+
return this.C.Rt(s.Tt.fh);
|
|
21
21
|
}
|
|
22
22
|
setSdkAuthenticationSignature(t) {
|
|
23
|
-
const i = this.
|
|
24
|
-
this.
|
|
25
|
-
const e = et.
|
|
26
|
-
new et(e, E).setItem(e.
|
|
23
|
+
const i = this.kh();
|
|
24
|
+
this.C.It(s.Tt.fh, t);
|
|
25
|
+
const e = et.Ps.$s;
|
|
26
|
+
new et(e, E).setItem(e.Os.wh, this.ph, t), i !== t && this.ct();
|
|
27
27
|
}
|
|
28
|
-
|
|
29
|
-
this.
|
|
30
|
-
const t = et.
|
|
31
|
-
new et(t, E).
|
|
28
|
+
jh() {
|
|
29
|
+
this.C.Qt(s.Tt.fh);
|
|
30
|
+
const t = et.Ps.$s;
|
|
31
|
+
new et(t, E).ge(t.Os.wh, this.ph);
|
|
32
32
|
}
|
|
33
33
|
subscribeToSdkAuthenticationFailures(t) {
|
|
34
|
-
return this.
|
|
34
|
+
return this.bh.Kt(t);
|
|
35
35
|
}
|
|
36
|
-
|
|
37
|
-
this.
|
|
36
|
+
Ch(t) {
|
|
37
|
+
this.bh.A(t);
|
|
38
38
|
}
|
|
39
|
-
|
|
40
|
-
this.
|
|
39
|
+
xh() {
|
|
40
|
+
this.Sh.removeAllSubscriptions();
|
|
41
41
|
}
|
|
42
|
-
|
|
43
|
-
this.
|
|
42
|
+
Eh() {
|
|
43
|
+
this.Ah += 1;
|
|
44
44
|
}
|
|
45
|
-
|
|
46
|
-
return this.
|
|
45
|
+
Ih() {
|
|
46
|
+
return this.Ah;
|
|
47
47
|
}
|
|
48
|
-
|
|
49
|
-
this.
|
|
48
|
+
ct() {
|
|
49
|
+
this.Ah = 0;
|
|
50
50
|
}
|
|
51
51
|
}
|