@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.
- package/index.d.ts +3 -3
- package/package.json +1 -1
- package/shared-lib/event-types.js +12 -12
- package/shared-lib/indexed-db-adapter.js +14 -14
- package/shared-lib/logger.js +2 -2
- package/shared-lib/supported-options.js +5 -5
- package/src/Card/card-manager.js +46 -42
- package/src/Card/models/card.js +61 -55
- package/src/Card/models/classic-card.js +1 -1
- package/src/Card/models/control-card.js +1 -1
- package/src/Card/models/image-only.js +1 -1
- package/src/Card/util/card-factory.js +20 -20
- package/src/ContentCards/content-cards-provider.js +140 -140
- package/src/ContentCards/get-cached-content-cards.js +1 -1
- package/src/ContentCards/request-content-cards-refresh.js +1 -1
- package/src/ContentCards/subscribe-to-content-cards-updates.js +4 -4
- package/src/ContentCards/ui/show-content-cards.js +3 -3
- package/src/Core/disable-sdk.js +2 -2
- package/src/Core/enable-sdk.js +2 -2
- package/src/Core/log-custom-event.js +14 -14
- package/src/Core/log-purchase.js +8 -8
- package/src/Core/open-session.js +4 -4
- package/src/Core/wipe-data.js +2 -2
- package/src/FeatureFlags/feature-flag-factory.js +5 -5
- package/src/FeatureFlags/feature-flag.js +1 -1
- package/src/FeatureFlags/feature-flags-provider.js +74 -74
- 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 +12 -12
- package/src/FeatureFlags/subscribe-to-feature-flags-updates.js +2 -2
- package/src/Feed/feed-provider.js +29 -29
- package/src/Feed/get-cached-feed.js +1 -1
- package/src/Feed/request-feed-refresh.js +1 -1
- package/src/Feed/subscribe-to-feed-updates.js +1 -1
- package/src/Feed/ui/show-feed.js +1 -1
- package/src/InAppMessage/in-app-message-manager.js +63 -63
- package/src/InAppMessage/log-in-app-message-button-click.js +2 -2
- package/src/InAppMessage/log-in-app-message-click.js +2 -2
- package/src/InAppMessage/log-in-app-message-html-click.js +2 -2
- package/src/InAppMessage/log-in-app-message-impression.js +1 -1
- package/src/InAppMessage/models/full-screen-message.js +10 -10
- package/src/InAppMessage/models/html-message.js +13 -13
- package/src/InAppMessage/models/in-app-message-button.js +4 -4
- package/src/InAppMessage/models/in-app-message.js +59 -59
- package/src/InAppMessage/models/modal-message.js +9 -9
- package/src/InAppMessage/models/slide-up-message.js +11 -11
- package/src/InAppMessage/models/templated-in-app-message.js +8 -8
- package/src/Push/push-manager-factory.js +4 -4
- package/src/Push/push-manager.js +6 -6
- package/src/Push/utils/push-utils.js +1 -1
- package/src/User/user-manager.js +6 -6
- package/src/User/user.js +27 -27
- package/src/common/base-provider.js +1 -1
- package/src/common/event-logger.js +7 -7
- package/src/common/feed-display.js +1 -1
- package/src/managers/auth-manager.js +9 -9
- package/src/managers/braze-instance.js +44 -44
- package/src/managers/network-manager.js +100 -100
- package/src/managers/server-config-manager.js +24 -24
- package/src/managers/session-manager.js +10 -10
- package/src/managers/storage-manager.js +20 -20
- package/src/managers/subscription-manager.js +2 -2
- package/src/models/backend-errors.js +4 -4
- package/src/models/braze-event.js +1 -1
- package/src/models/device.js +1 -1
- package/src/models/request-result.js +1 -1
- package/src/models/server-config.js +5 -5
- package/src/request-controller.js +121 -121
- package/src/triggers/models/filter.js +9 -9
- package/src/triggers/models/trigger-condition.js +26 -26
- package/src/triggers/models/trigger-events.js +1 -1
- package/src/triggers/models/trigger.js +7 -7
- package/src/triggers/triggers-provider.js +27 -27
- package/src/ui/js/attach-css.js +1 -1
- package/src/util/braze-actions.js +4 -4
- package/src/util/net.js +4 -4
- 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
|
|
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.
|
|
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.
|
|
93
|
+
e[InAppMessage.tt.ia],
|
|
96
94
|
e[InAppMessage.tt.aa],
|
|
97
|
-
e[InAppMessage.tt.
|
|
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.
|
|
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.
|
|
105
|
+
e[InAppMessage.tt.ya],
|
|
106
106
|
);
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
|
-
SlideUpMessage.it = InAppMessage.Be.
|
|
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.
|
|
5
|
-
(this.
|
|
6
|
-
(this.
|
|
7
|
-
(this.
|
|
4
|
+
(this.Gr = s),
|
|
5
|
+
(this.Br = i),
|
|
6
|
+
(this.Nr = h),
|
|
7
|
+
(this.Or = l),
|
|
8
8
|
(this.triggerId = t),
|
|
9
|
-
(this.
|
|
10
|
-
(this.
|
|
11
|
-
(this.
|
|
12
|
-
(this.
|
|
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
|
package/src/Push/push-manager.js
CHANGED
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
259
|
+
(null === (n = this.qt) || void 0 === n
|
|
260
260
|
? void 0
|
|
261
|
-
: n.Wn()) && (u = ei.Tn(this.
|
|
261
|
+
: n.Wn()) && (u = ei.Tn(this.qt.Wn())),
|
|
262
262
|
s)
|
|
263
263
|
) {
|
|
264
264
|
let n,
|
package/src/User/user-manager.js
CHANGED
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
68
|
+
const t = A.ts.Zt,
|
|
69
69
|
s = new A(t, r);
|
|
70
|
-
this.u.
|
|
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.
|
|
21
|
+
(this.yt = t), (this.Ui = e), (this.yt = t), (this.Ui = e);
|
|
22
22
|
}
|
|
23
23
|
getUserId(t) {
|
|
24
|
-
const e = this.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
91
|
+
: this.yt.nu("dob", `${t}-${e}-${s}`));
|
|
92
92
|
}
|
|
93
93
|
setCountry(t) {
|
|
94
|
-
return !!P(t, "set country", "the country", !0) && this.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
274
|
+
: this.Ui.Hn(t, User.Kn.UNSUBSCRIBED).L;
|
|
275
275
|
}
|
|
276
276
|
Pn(t, e, r, s, n) {
|
|
277
|
-
this.
|
|
277
|
+
this.yt.Pn(t, e, r, s, n), this.Ui.Mn();
|
|
278
278
|
}
|
|
279
279
|
Sn(t) {
|
|
280
|
-
this.
|
|
280
|
+
this.yt.Sn(t);
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
283
|
(User.Genders = {
|
|
@@ -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
|
|
5
|
-
const
|
|
6
|
-
q: (o,
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
34
|
+
export default t;
|
|
@@ -21,20 +21,20 @@ export default class qt {
|
|
|
21
21
|
}
|
|
22
22
|
setSdkAuthenticationSignature(t) {
|
|
23
23
|
const i = this.kh();
|
|
24
|
-
this.u.
|
|
25
|
-
const s = A.
|
|
26
|
-
new A(s, r).setItem(s.
|
|
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.
|
|
30
|
-
const t = A.
|
|
31
|
-
new A(t, r).re(t.
|
|
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.
|
|
34
|
+
return this.Qn.Nt(t);
|
|
35
35
|
}
|
|
36
36
|
qh(t) {
|
|
37
|
-
this.Qn.
|
|
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
|
-
|
|
48
|
+
Vs() {
|
|
49
49
|
this.Zn = 0;
|
|
50
50
|
}
|
|
51
51
|
}
|