@braze/web-sdk 5.4.0 → 5.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/index.d.ts +3 -3
  2. package/package.json +1 -1
  3. package/shared-lib/event-types.js +12 -12
  4. package/shared-lib/indexed-db-adapter.js +14 -14
  5. package/shared-lib/logger.js +2 -2
  6. package/shared-lib/supported-options.js +5 -5
  7. package/src/Card/card-manager.js +46 -42
  8. package/src/Card/models/card.js +61 -55
  9. package/src/Card/models/classic-card.js +1 -1
  10. package/src/Card/models/control-card.js +1 -1
  11. package/src/Card/models/image-only.js +1 -1
  12. package/src/Card/util/card-factory.js +20 -20
  13. package/src/ContentCards/content-cards-provider.js +140 -140
  14. package/src/ContentCards/get-cached-content-cards.js +1 -1
  15. package/src/ContentCards/request-content-cards-refresh.js +1 -1
  16. package/src/ContentCards/subscribe-to-content-cards-updates.js +4 -4
  17. package/src/ContentCards/ui/show-content-cards.js +3 -3
  18. package/src/Core/disable-sdk.js +2 -2
  19. package/src/Core/enable-sdk.js +2 -2
  20. package/src/Core/log-custom-event.js +14 -14
  21. package/src/Core/log-purchase.js +8 -8
  22. package/src/Core/open-session.js +4 -4
  23. package/src/Core/wipe-data.js +2 -2
  24. package/src/FeatureFlags/feature-flag-factory.js +5 -5
  25. package/src/FeatureFlags/feature-flag.js +1 -1
  26. package/src/FeatureFlags/feature-flags-provider.js +74 -74
  27. package/src/FeatureFlags/get-all-feature-flags.js +2 -2
  28. package/src/FeatureFlags/get-feature-flag.js +2 -2
  29. package/src/FeatureFlags/log-feature-flag-impression.js +12 -12
  30. package/src/FeatureFlags/subscribe-to-feature-flags-updates.js +2 -2
  31. package/src/Feed/feed-provider.js +29 -29
  32. package/src/Feed/get-cached-feed.js +1 -1
  33. package/src/Feed/request-feed-refresh.js +1 -1
  34. package/src/Feed/subscribe-to-feed-updates.js +1 -1
  35. package/src/Feed/ui/show-feed.js +1 -1
  36. package/src/InAppMessage/in-app-message-manager.js +63 -63
  37. package/src/InAppMessage/log-in-app-message-button-click.js +2 -2
  38. package/src/InAppMessage/log-in-app-message-click.js +2 -2
  39. package/src/InAppMessage/log-in-app-message-html-click.js +2 -2
  40. package/src/InAppMessage/log-in-app-message-impression.js +1 -1
  41. package/src/InAppMessage/models/full-screen-message.js +10 -10
  42. package/src/InAppMessage/models/html-message.js +13 -13
  43. package/src/InAppMessage/models/in-app-message-button.js +4 -4
  44. package/src/InAppMessage/models/in-app-message.js +59 -59
  45. package/src/InAppMessage/models/modal-message.js +9 -9
  46. package/src/InAppMessage/models/slide-up-message.js +11 -11
  47. package/src/InAppMessage/models/templated-in-app-message.js +8 -8
  48. package/src/Push/push-manager-factory.js +4 -4
  49. package/src/Push/push-manager.js +6 -6
  50. package/src/Push/utils/push-utils.js +1 -1
  51. package/src/User/user-manager.js +6 -6
  52. package/src/User/user.js +27 -27
  53. package/src/common/base-provider.js +1 -1
  54. package/src/common/event-logger.js +7 -7
  55. package/src/common/feed-display.js +1 -1
  56. package/src/managers/auth-manager.js +9 -9
  57. package/src/managers/braze-instance.js +44 -44
  58. package/src/managers/network-manager.js +100 -100
  59. package/src/managers/server-config-manager.js +24 -24
  60. package/src/managers/session-manager.js +10 -10
  61. package/src/managers/storage-manager.js +20 -20
  62. package/src/managers/subscription-manager.js +2 -2
  63. package/src/models/backend-errors.js +4 -4
  64. package/src/models/braze-event.js +1 -1
  65. package/src/models/device.js +1 -1
  66. package/src/models/request-result.js +1 -1
  67. package/src/models/server-config.js +5 -5
  68. package/src/request-controller.js +121 -121
  69. package/src/triggers/models/filter.js +9 -9
  70. package/src/triggers/models/trigger-condition.js +26 -26
  71. package/src/triggers/models/trigger-events.js +1 -1
  72. package/src/triggers/models/trigger.js +7 -7
  73. package/src/triggers/triggers-provider.js +27 -27
  74. package/src/ui/js/attach-css.js +1 -1
  75. package/src/util/braze-actions.js +4 -4
  76. package/src/util/net.js +4 -4
  77. package/src/util/request-header-utils.js +17 -17
@@ -79,31 +79,31 @@ export default class SlideUpMessage extends InAppMessage {
79
79
  Y() {
80
80
  return super.Y(SlideUpMessage.it);
81
81
  }
82
- static Xr(e) {
82
+ static Jr(e) {
83
83
  return new SlideUpMessage(
84
- e[InAppMessage.tt.Vr],
85
- e[InAppMessage.tt.Wr],
86
- e[InAppMessage.tt.Rh],
87
- e[InAppMessage.tt.bt],
88
84
  e[InAppMessage.tt.Yr],
89
85
  e[InAppMessage.tt.Zr],
90
- e[InAppMessage.tt.URI],
86
+ e[InAppMessage.tt.Rh],
87
+ e[InAppMessage.tt.bt],
91
88
  e[InAppMessage.tt.ea],
92
89
  e[InAppMessage.tt.ra],
90
+ e[InAppMessage.tt.URI],
93
91
  e[InAppMessage.tt.sa],
94
92
  e[InAppMessage.tt.ta],
95
- e[InAppMessage.tt.ot],
93
+ e[InAppMessage.tt.ia],
96
94
  e[InAppMessage.tt.aa],
97
- e[InAppMessage.tt.oa],
95
+ e[InAppMessage.tt.ot],
98
96
  e[InAppMessage.tt.pa],
99
97
  e[InAppMessage.tt.ma],
100
98
  e[InAppMessage.tt.na],
101
99
  e[InAppMessage.tt.ua],
102
100
  e[InAppMessage.tt.ca],
103
- e[InAppMessage.tt.ha],
101
+ e[InAppMessage.tt.fa],
102
+ e[InAppMessage.tt.da],
103
+ e[InAppMessage.tt.wa],
104
104
  e[InAppMessage.tt.CSS],
105
- e[InAppMessage.tt.va],
105
+ e[InAppMessage.tt.ya],
106
106
  );
107
107
  }
108
108
  }
109
- SlideUpMessage.it = InAppMessage.Be.Kr;
109
+ SlideUpMessage.it = InAppMessage.Be.Qr;
@@ -1,15 +1,15 @@
1
1
  export default class wt {
2
2
  constructor(t, s, i, h, l) {
3
3
  (this.triggerId = t),
4
- (this._r = s),
5
- (this.Mr = i),
6
- (this.Er = h),
7
- (this.Gr = l),
4
+ (this.Gr = s),
5
+ (this.Br = i),
6
+ (this.Nr = h),
7
+ (this.Or = l),
8
8
  (this.triggerId = t),
9
- (this._r = s),
10
- (this.Mr = i),
11
- (this.Er = h),
12
- (this.Gr = l);
9
+ (this.Gr = s),
10
+ (this.Br = i),
11
+ (this.Nr = h),
12
+ (this.Or = l);
13
13
  }
14
14
  static fromJson(t, s, i, h, l) {
15
15
  return null == t || null == t.trigger_id
@@ -10,13 +10,13 @@ const na = {
10
10
  e.pr(),
11
11
  e.ba(),
12
12
  e.te(),
13
- e.Hs(),
14
- e.nn(L.wa),
15
- e.nn(L.ya),
13
+ e.Os(),
16
14
  e.nn(L.Ma),
17
- e.ir(),
18
15
  e.nn(L._a),
19
16
  e.nn(L.ka),
17
+ e.ir(),
18
+ e.nn(L.qa),
19
+ e.nn(L.Aa),
20
20
  e.l(),
21
21
  )),
22
22
  na.i
@@ -13,7 +13,7 @@ export default class ea {
13
13
  (this.un = r),
14
14
  (this.an = n),
15
15
  (this.hn = o),
16
- (this.yt = u),
16
+ (this.qt = u),
17
17
  (this.cn = a),
18
18
  (this.fn = h),
19
19
  (this.u = c),
@@ -23,7 +23,7 @@ export default class ea {
23
23
  (this.ln = s + "/safari/" + t),
24
24
  (this.un = r || "/service-worker.js"),
25
25
  (this.hn = o),
26
- (this.yt = u),
26
+ (this.qt = u),
27
27
  (this.cn = a || !1),
28
28
  (this.fn = h || !1),
29
29
  (this.u = c),
@@ -212,12 +212,12 @@ export default class ea {
212
212
  "Notifications from this site are blocked. This may be a temporary embargo or a permanent denial.",
213
213
  t,
214
214
  );
215
- if (this.yt && !this.yt.Wn() && 0 === this.yt.ii())
215
+ if (this.qt && !this.qt.Wn() && 0 === this.qt.hi())
216
216
  return (
217
217
  r.info(
218
218
  "Waiting for VAPID key from server config before subscribing to push.",
219
219
  ),
220
- void this.yt._n(() => {
220
+ void this.qt._n(() => {
221
221
  this.subscribe(i, t);
222
222
  })
223
223
  );
@@ -256,9 +256,9 @@ export default class ea {
256
256
  let u = null;
257
257
  if (
258
258
  (null !=
259
- (null === (n = this.yt) || void 0 === n
259
+ (null === (n = this.qt) || void 0 === n
260
260
  ? void 0
261
- : n.Wn()) && (u = ei.Tn(this.yt.Wn())),
261
+ : n.Wn()) && (u = ei.Tn(this.qt.Wn())),
262
262
  s)
263
263
  ) {
264
264
  let n,
@@ -28,7 +28,7 @@ const yt = {
28
28
  null != window.Notification &&
29
29
  null != window.Notification.permission &&
30
30
  "granted" === window.Notification.permission,
31
- Qi: () =>
31
+ Wi: () =>
32
32
  !yt.isPushBlocked() &&
33
33
  yt.isPushSupported() &&
34
34
  !yt.isPushPermissionGranted(),
@@ -6,7 +6,7 @@ import { STORAGE_KEYS as o } from "../managers/storage-manager.js";
6
6
  import { User } from "../User/index.js";
7
7
  export default class kt {
8
8
  constructor(t, s) {
9
- (this.yt = t), (this.u = s), (this.yt = t), (this.u = s);
9
+ (this.qt = t), (this.u = s), (this.qt = t), (this.u = s);
10
10
  }
11
11
  getUserId() {
12
12
  const t = this.u.tu(o.iu.su);
@@ -24,7 +24,7 @@ export default class kt {
24
24
  this.u.uu(o.iu.su, new _t(t)), s && this.u.ru(t);
25
25
  }
26
26
  setCustomUserAttribute(t, s) {
27
- if (this.yt.hu(t))
27
+ if (this.qt.hu(t))
28
28
  return (
29
29
  r.info('Custom Attribute "' + t + '" is blocklisted, ignoring.'), !1
30
30
  );
@@ -52,10 +52,10 @@ export default class kt {
52
52
  this.nu("custom_push_public_key", i, !1, !0),
53
53
  this.nu("custom_push_user_auth", e, !1, !0),
54
54
  this.nu("custom_push_vapid_public_key", u, !1, !0);
55
- const h = A.Yt.Qt,
55
+ const h = A.ts.Zt,
56
56
  n = new A(h, r),
57
57
  l = new ti(t, s, i, e, u);
58
- this.u.k(o.C.In, l.Y()), n.setItem(h.ss.cu, h.ie, !0);
58
+ this.u.I(o.C.In, l.Y()), n.setItem(h.hs.cu, h.ie, !0);
59
59
  }
60
60
  Sn(t) {
61
61
  if (
@@ -65,9 +65,9 @@ export default class kt {
65
65
  this.nu("custom_push_vapid_public_key", null, !1, !0),
66
66
  t)
67
67
  ) {
68
- const t = A.Yt.Qt,
68
+ const t = A.ts.Zt,
69
69
  s = new A(t, r);
70
- this.u.k(o.C.In, !1), s.setItem(t.ss.cu, t.ie, !1);
70
+ this.u.I(o.C.In, !1), s.setItem(t.hs.cu, t.ie, !1);
71
71
  }
72
72
  }
73
73
  }
package/src/User/user.js CHANGED
@@ -18,10 +18,10 @@ import { SET_CUSTOM_USER_ATTRIBUTE_STRING as $t } from "../common/constants.js";
18
18
  import { toValidBackendTimeString as Bt } from "../util/date-utils.js";
19
19
  export default class User {
20
20
  constructor(t, e) {
21
- (this.wt = t), (this.zi = e), (this.wt = t), (this.zi = e);
21
+ (this.yt = t), (this.Ui = e), (this.yt = t), (this.Ui = e);
22
22
  }
23
23
  getUserId(t) {
24
- const e = this.wt.getUserId();
24
+ const e = this.yt.getUserId();
25
25
  if ("function" != typeof t) return e;
26
26
  r.warn(
27
27
  "The callback for getUserId is deprecated. You can access its return value directly instead (e.g. `const id = braze.getUser().getUserId()`)",
@@ -33,22 +33,22 @@ export default class User {
33
33
  ? (r.error("addAlias requires a non-empty alias"), !1)
34
34
  : !P(e, "add alias", "the label", !1) || e.length <= 0
35
35
  ? (r.error("addAlias requires a non-empty label"), !1)
36
- : this.zi.Cn(t, e).L;
36
+ : this.Ui.Cn(t, e).L;
37
37
  }
38
38
  setFirstName(t) {
39
39
  return (
40
40
  !!P(t, "set first name", "the firstName", !0) &&
41
- this.wt.nu("first_name", t)
41
+ this.yt.nu("first_name", t)
42
42
  );
43
43
  }
44
44
  setLastName(t) {
45
45
  return (
46
- !!P(t, "set last name", "the lastName", !0) && this.wt.nu("last_name", t)
46
+ !!P(t, "set last name", "the lastName", !0) && this.yt.nu("last_name", t)
47
47
  );
48
48
  }
49
49
  setEmail(t) {
50
50
  return null === t || St(t)
51
- ? this.wt.nu("email", t)
51
+ ? this.yt.nu("email", t)
52
52
  : (r.error(
53
53
  `Cannot set email address - "${t}" did not pass RFC-5322 validation.`,
54
54
  ),
@@ -65,12 +65,12 @@ export default class User {
65
65
  `Gender "${t}" is not a valid gender.`,
66
66
  "User.Genders",
67
67
  )
68
- ) && this.wt.nu("gender", t)
68
+ ) && this.yt.nu("gender", t)
69
69
  );
70
70
  }
71
71
  setDateOfBirth(t, e, s) {
72
72
  return null === t && null === e && null === s
73
- ? this.wt.nu("dob", null)
73
+ ? this.yt.nu("dob", null)
74
74
  : ((t = null != t ? parseInt(t.toString()) : null),
75
75
  (e = null != e ? parseInt(e.toString()) : null),
76
76
  (s = null != s ? parseInt(s.toString()) : null),
@@ -88,19 +88,19 @@ export default class User {
88
88
  "Cannot set date of birth - parameters should comprise a valid date e.g. setDateOfBirth(1776, 7, 4);",
89
89
  ),
90
90
  !1)
91
- : this.wt.nu("dob", `${t}-${e}-${s}`));
91
+ : this.yt.nu("dob", `${t}-${e}-${s}`));
92
92
  }
93
93
  setCountry(t) {
94
- return !!P(t, "set country", "the country", !0) && this.wt.nu("country", t);
94
+ return !!P(t, "set country", "the country", !0) && this.yt.nu("country", t);
95
95
  }
96
96
  setHomeCity(t) {
97
97
  return (
98
- !!P(t, "set home city", "the homeCity", !0) && this.wt.nu("home_city", t)
98
+ !!P(t, "set home city", "the homeCity", !0) && this.yt.nu("home_city", t)
99
99
  );
100
100
  }
101
101
  setLanguage(t) {
102
102
  return (
103
- !!P(t, "set language", "the language", !0) && this.wt.nu("language", t)
103
+ !!P(t, "set language", "the language", !0) && this.yt.nu("language", t)
104
104
  );
105
105
  }
106
106
  setEmailNotificationSubscriptionType(t) {
@@ -110,7 +110,7 @@ export default class User {
110
110
  t,
111
111
  `Email notification setting "${t}" is not a valid subscription type.`,
112
112
  "User.NotificationSubscriptionTypes",
113
- ) && this.wt.nu("email_subscribe", t)
113
+ ) && this.yt.nu("email_subscribe", t)
114
114
  );
115
115
  }
116
116
  setPushNotificationSubscriptionType(t) {
@@ -120,14 +120,14 @@ export default class User {
120
120
  t,
121
121
  `Push notification setting "${t}" is not a valid subscription type.`,
122
122
  "User.NotificationSubscriptionTypes",
123
- ) && this.wt.nu("push_subscribe", t)
123
+ ) && this.yt.nu("push_subscribe", t)
124
124
  );
125
125
  }
126
126
  setPhoneNumber(t) {
127
127
  return (
128
128
  !!P(t, "set phone number", "the phoneNumber", !0) &&
129
129
  (null === t || t.match(User.En)
130
- ? this.wt.nu("phone", t)
130
+ ? this.yt.nu("phone", t)
131
131
  : (r.error(`Cannot set phone number - "${t}" did not pass validation.`),
132
132
  !1))
133
133
  );
@@ -162,7 +162,7 @@ export default class User {
162
162
  "Cannot set last-known location - accuracy and altitudeAccuracy may not be negative.",
163
163
  ),
164
164
  !1)
165
- : this.zi.setLastKnownLocation(this.wt.getUserId(), t, e, n, s, i).L);
165
+ : this.Ui.setLastKnownLocation(this.yt.getUserId(), t, e, n, s, i).L);
166
166
  }
167
167
  setCustomUserAttribute(t, e, r) {
168
168
  if (!Ut(t)) return !1;
@@ -179,11 +179,11 @@ export default class User {
179
179
  if (j(e)) {
180
180
  const [r, n] = At(t, e);
181
181
  if (!r && !n && 0 !== e.length) return !1;
182
- if (r || 0 === e.length) return this.zi.Fn(i.$n, t, e).L;
182
+ if (r || 0 === e.length) return this.Ui.Fn(i.$n, t, e).L;
183
183
  for (const t of e) if (!s(t)) return !1;
184
184
  } else if (Ct(e)) {
185
185
  if (!s(e)) return !1;
186
- if (r) return this.zi.Fn(i.Bn, t, e).L;
186
+ if (r) return this.Ui.Fn(i.Bn, t, e).L;
187
187
  } else {
188
188
  if (!(void 0 !== e && Ft(e))) return !1;
189
189
  if (
@@ -197,7 +197,7 @@ export default class User {
197
197
  )
198
198
  return !1;
199
199
  }
200
- return this.wt.setCustomUserAttribute(t, e);
200
+ return this.yt.setCustomUserAttribute(t, e);
201
201
  }
202
202
  addToCustomAttributeArray(t, e) {
203
203
  return (
@@ -206,7 +206,7 @@ export default class User {
206
206
  null != e &&
207
207
  !rt(e, "add to custom user attribute array", "the given value")
208
208
  ) &&
209
- this.zi.Fn(i.Ln, t, e).L
209
+ this.Ui.Fn(i.Ln, t, e).L
210
210
  );
211
211
  }
212
212
  removeFromCustomAttributeArray(t, e) {
@@ -216,7 +216,7 @@ export default class User {
216
216
  null != e &&
217
217
  !rt(e, "remove from custom user attribute array", "the given value")
218
218
  ) &&
219
- this.zi.Fn(i.Rn, t, e).L
219
+ this.Ui.Fn(i.Rn, t, e).L
220
220
  );
221
221
  }
222
222
  incrementCustomUserAttribute(t, e) {
@@ -228,7 +228,7 @@ export default class User {
228
228
  `Cannot increment custom user attribute because the given incrementValue "${e}" is not an integer.`,
229
229
  ),
230
230
  !1)
231
- : this.zi.Fn(i.On, t, s).L;
231
+ : this.Ui.Fn(i.On, t, s).L;
232
232
  }
233
233
  setCustomLocationAttribute(t, e, s) {
234
234
  return (
@@ -244,7 +244,7 @@ export default class User {
244
244
  "Received invalid values for latitude and/or longitude. Latitude and longitude are bounded by ±90 and ±180 respectively, or must both be null for removal.",
245
245
  ),
246
246
  !1)
247
- : this.zi.Gn(t, e, s).L)
247
+ : this.Ui.Gn(t, e, s).L)
248
248
  );
249
249
  }
250
250
  addToSubscriptionGroup(t) {
@@ -258,7 +258,7 @@ export default class User {
258
258
  "addToSubscriptionGroup requires a non-empty subscription group ID",
259
259
  ),
260
260
  !1)
261
- : this.zi.Hn(t, User.Kn.SUBSCRIBED).L;
261
+ : this.Ui.Hn(t, User.Kn.SUBSCRIBED).L;
262
262
  }
263
263
  removeFromSubscriptionGroup(t) {
264
264
  return !P(
@@ -271,13 +271,13 @@ export default class User {
271
271
  "removeFromSubscriptionGroup requires a non-empty subscription group ID",
272
272
  ),
273
273
  !1)
274
- : this.zi.Hn(t, User.Kn.UNSUBSCRIBED).L;
274
+ : this.Ui.Hn(t, User.Kn.UNSUBSCRIBED).L;
275
275
  }
276
276
  Pn(t, e, r, s, n) {
277
- this.wt.Pn(t, e, r, s, n), this.zi.Mn();
277
+ this.yt.Pn(t, e, r, s, n), this.Ui.Mn();
278
278
  }
279
279
  Sn(t) {
280
- this.wt.Sn(t);
280
+ this.yt.Sn(t);
281
281
  }
282
282
  }
283
283
  (User.Genders = {
@@ -1,6 +1,6 @@
1
1
  export default class y {
2
2
  constructor() {}
3
- Ns(a) {}
3
+ Ss(a) {}
4
4
  changeUser(a = !1) {}
5
5
  clearData(a = !1) {}
6
6
  }
@@ -1,11 +1,11 @@
1
1
  import { logger as r } from "../../shared-lib/index.js";
2
2
  import e from "../managers/braze-instance.js";
3
3
  import ve from "../models/braze-event.js";
4
- import t from "../models/request-result.js";
5
- const s = {
6
- q: (o, n, s) => {
4
+ import s from "../models/request-result.js";
5
+ const t = {
6
+ q: (o, t, n) => {
7
7
  var i, l;
8
- const d = new t(),
8
+ const d = new s(),
9
9
  m = e.zr();
10
10
  if (!m)
11
11
  return (
@@ -18,11 +18,11 @@ const s = {
18
18
  return (
19
19
  d.ge.push(
20
20
  new ve(
21
- s || (null === (i = e.er()) || void 0 === i ? void 0 : i.getUserId()),
21
+ n || (null === (i = e.er()) || void 0 === i ? void 0 : i.getUserId()),
22
22
  o,
23
23
  new Date().valueOf(),
24
24
  u,
25
- n,
25
+ t,
26
26
  ),
27
27
  ),
28
28
  (d.L =
@@ -31,4 +31,4 @@ const s = {
31
31
  );
32
32
  },
33
33
  };
34
- export default s;
34
+ export default t;
@@ -188,7 +188,7 @@ export function updateFeedCards(e, t, o, s, n) {
188
188
  if (e.url && Z.test(e.url)) {
189
189
  const t = W(e.url);
190
190
  if (jt(t)) {
191
- r.error(vt(bt.Li, "Content Card"));
191
+ r.error(vt(bt.Vi, "Content Card"));
192
192
  continue;
193
193
  }
194
194
  }
@@ -21,20 +21,20 @@ export default class qt {
21
21
  }
22
22
  setSdkAuthenticationSignature(t) {
23
23
  const i = this.kh();
24
- this.u.k(o.C.wh, t);
25
- const s = A.Yt.Qt;
26
- new A(s, r).setItem(s.ss.jh, this.gh, t), i !== t && this.Os();
24
+ this.u.I(o.C.wh, t);
25
+ const s = A.ts.Zt;
26
+ new A(s, r).setItem(s.hs.jh, this.gh, t), i !== t && this.Vs();
27
27
  }
28
28
  xh() {
29
- this.u.ti(o.C.wh);
30
- const t = A.Yt.Qt;
31
- new A(t, r).re(t.ss.jh, this.gh);
29
+ this.u.ii(o.C.wh);
30
+ const t = A.ts.Zt;
31
+ new A(t, r).re(t.hs.jh, this.gh);
32
32
  }
33
33
  subscribeToSdkAuthenticationFailures(t) {
34
- return this.Qn.It(t);
34
+ return this.Qn.Nt(t);
35
35
  }
36
36
  qh(t) {
37
- this.Qn.Dt(t);
37
+ this.Qn.Rt(t);
38
38
  }
39
39
  yh() {
40
40
  this.Xn.removeAllSubscriptions();
@@ -45,7 +45,7 @@ export default class qt {
45
45
  Gh() {
46
46
  return this.Zn;
47
47
  }
48
- Os() {
48
+ Vs() {
49
49
  this.Zn = 0;
50
50
  }
51
51
  }