@braze/web-sdk 6.10.2 → 6.11.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 (71) hide show
  1. package/index.d.ts +28 -4
  2. package/package.json +1 -1
  3. package/shared-lib/encoding-utils.js +3 -3
  4. package/shared-lib/event-types.js +10 -10
  5. package/shared-lib/indexed-db-adapter.js +51 -51
  6. package/shared-lib/logger.js +7 -7
  7. package/shared-lib/supported-options.js +9 -9
  8. package/src/Core/logout.js +2 -2
  9. package/src/InAppMessage/constants.js +39 -47
  10. package/src/InAppMessage/display/html-message-to-html.js +1 -1
  11. package/src/InAppMessage/display/in-app-message-to-html.js +38 -36
  12. package/src/InAppMessage/in-app-message-factory.js +4 -4
  13. package/src/InAppMessage/in-app-message-manager.js +89 -68
  14. package/src/InAppMessage/log-in-app-message-button-click.js +1 -1
  15. package/src/InAppMessage/log-in-app-message-click.js +1 -1
  16. package/src/InAppMessage/log-in-app-message-html-click.js +2 -2
  17. package/src/InAppMessage/log-in-app-message-impression.js +1 -1
  18. package/src/InAppMessage/models/full-screen-message.js +22 -22
  19. package/src/InAppMessage/models/html-message.js +13 -13
  20. package/src/InAppMessage/models/in-app-message-button.js +2 -2
  21. package/src/InAppMessage/models/in-app-message.js +68 -66
  22. package/src/InAppMessage/models/modal-message.js +20 -20
  23. package/src/InAppMessage/models/slide-up-message.js +25 -25
  24. package/src/InAppMessage/models/templated-in-app-message.js +6 -6
  25. package/src/InAppMessage/subscribe-to-in-app-message.js +1 -1
  26. package/src/InAppMessage/ui/automatically-show-in-app-messages.js +3 -3
  27. package/src/InAppMessage/ui/show-in-app-message.js +27 -25
  28. package/src/Push/index.js +1 -0
  29. package/src/Push/push-manager-factory.js +4 -4
  30. package/src/Push/push-manager.js +222 -179
  31. package/src/Push/register-push.js +9 -0
  32. package/src/Push/unregister-push-token-on-server.js +4 -4
  33. package/src/Push/utils/push-utils.js +8 -8
  34. package/src/User/user-manager.js +19 -19
  35. package/src/User/user.js +35 -35
  36. package/src/common/constants.js +1 -1
  37. package/src/common/content-cards-display.js +5 -5
  38. package/src/l10n/l10n-manager-factory.js +1 -1
  39. package/src/l10n/l10n-manager.js +1 -1
  40. package/src/managers/braze-instance.js +42 -38
  41. package/src/managers/device-manager.js +20 -20
  42. package/src/managers/network-manager.js +122 -122
  43. package/src/managers/server-config-manager.js +76 -76
  44. package/src/managers/session-manager.js +8 -8
  45. package/src/managers/storage-manager.js +127 -127
  46. package/src/managers/utils.js +1 -1
  47. package/src/models/backend-errors.js +5 -5
  48. package/src/models/braze-event.js +2 -2
  49. package/src/models/device.js +3 -3
  50. package/src/models/identifier.js +6 -6
  51. package/src/models/push-token.js +6 -6
  52. package/src/models/server-config.js +24 -24
  53. package/src/request-controller.js +85 -85
  54. package/src/triggers/models/trigger-condition.js +27 -27
  55. package/src/triggers/models/trigger.js +2 -2
  56. package/src/triggers/triggers-provider-factory.js +1 -1
  57. package/src/triggers/triggers-provider.js +37 -29
  58. package/src/types.js +2 -2
  59. package/src/ui/js/attach-css.js +1 -1
  60. package/src/util/base-device-parser.js +1 -1
  61. package/src/util/braze-actions.js +4 -4
  62. package/src/util/browser-detector.js +5 -5
  63. package/src/util/client-hints-parser.js +1 -1
  64. package/src/util/dom-utils.js +2 -2
  65. package/src/util/ecommerce-event-validation.js +1 -1
  66. package/src/util/key-codes.js +1 -1
  67. package/src/util/net.js +3 -3
  68. package/src/util/request-header-utils.js +15 -15
  69. package/src/util/user-agent-parser.js +4 -4
  70. package/src/util/validation-utils.js +5 -5
  71. package/src/util/window-utils.js +2 -2
@@ -3,7 +3,7 @@ import { newInAppMessageFromJson as pt } from "../InAppMessage/in-app-message-fa
3
3
  import Ie from "../models/braze-event.js";
4
4
  import {
5
5
  isArray as g,
6
- isEqual as oi,
6
+ isEqual as hi,
7
7
  validateValueIsFromEnum as ta,
8
8
  } from "../util/code-utils.js";
9
9
  import { STORAGE_KEYS as s } from "../managers/storage-manager.js";
@@ -36,9 +36,9 @@ export default class vr extends t {
36
36
  }
37
37
  fg() {
38
38
  if (this.j) {
39
- (this.hg = this.j.St(s.It.nS) || this.hg),
40
- (this.ng = this.j.St(s.It.aS) || this.ng),
41
- (this.og = this.j.St(s.It.oS) || this.og);
39
+ (this.hg = this.j.St(s.It.$E) || this.hg),
40
+ (this.ng = this.j.St(s.It.tS) || this.ng),
41
+ (this.og = this.j.St(s.It.ZE) || this.og);
42
42
  for (let t = 0; t < this.triggers.length; t++) {
43
43
  const i = this.triggers[t];
44
44
  i.id && null != this.og[i.id] && i.$d(this.og[i.id]);
@@ -47,8 +47,8 @@ export default class vr extends t {
47
47
  }
48
48
  ag() {
49
49
  if (!this.j) return;
50
- this.lg = this.j.St(s.It.rS) || 0;
51
- const t = this.j.St(s.It.sS) || [],
50
+ this.lg = this.j.St(s.It.qE) || 0;
51
+ const t = this.j.St(s.It.zE) || [],
52
52
  i = [];
53
53
  for (let s = 0; s < t.length; s++) i.push(gt._u(t[s]));
54
54
  (this.triggers = i), this.fg();
@@ -70,19 +70,19 @@ export default class vr extends t {
70
70
  h = [];
71
71
  for (let r = 0; r < t.length; r++) {
72
72
  const n = t[r],
73
- o = s.xd(n.ma || 0);
73
+ o = s.xd(n.ha || 0);
74
74
  if (o > 0) {
75
75
  let t, r;
76
76
  h.push(n),
77
77
  null != n.ug && (t = n.ug),
78
- null != n.dg && Ie.AS(n.dg) && (r = Ie._u(n.dg));
78
+ null != n.dg && Ie.lS(n.dg) && (r = Ie._u(n.dg));
79
79
  const l = [];
80
80
  if (n.pg && g(n.pg))
81
81
  for (let t = 0; t < n.pg.length; t++) {
82
82
  const i = e[n.pg[t]];
83
83
  null != i && l.push(i);
84
84
  }
85
- this.eg.push(window.setTimeout(i(s, n.ma || 0, t, r, l), o));
85
+ this.eg.push(window.setTimeout(i(s, n.ha || 0, t, r, l), o));
86
86
  }
87
87
  }
88
88
  this.ng[s.id].length > h.length &&
@@ -91,7 +91,7 @@ export default class vr extends t {
91
91
  0 === this.ng[s.id].length && delete this.ng[s.id]);
92
92
  }
93
93
  }
94
- r && this.j && this.j.Pt(s.It.aS, this.ng);
94
+ r && this.j && this.j.Pt(s.It.tS, this.ng);
95
95
  }
96
96
  mg() {
97
97
  if (!this.j) return;
@@ -99,17 +99,17 @@ export default class vr extends t {
99
99
  for (let i = 0; i < this.triggers.length; i++)
100
100
  t.push(this.triggers[i].qt());
101
101
  (this.lg = new Date().valueOf()),
102
- this.j.Pt(s.It.sS, t),
103
- this.j.Pt(s.It.rS, this.lg);
102
+ this.j.Pt(s.It.zE, t),
103
+ this.j.Pt(s.It.qE, this.lg);
104
104
  }
105
105
  bg() {
106
106
  if (!this.j) return;
107
- (this.j.St(s.It.rS) || 0) > this.lg ? this.ag() : this.fg();
107
+ (this.j.St(s.It.qE) || 0) > this.lg ? this.ag() : this.fg();
108
108
  }
109
109
  q(t) {
110
110
  let i = !1;
111
111
  if (null != t && t.triggers) {
112
- this.ig.fa(), this.fg();
112
+ this.ig.ja(), this.fg();
113
113
  const e = {},
114
114
  r = {};
115
115
  this.triggers = [];
@@ -128,9 +128,9 @@ export default class vr extends t {
128
128
  this.triggers.push(h);
129
129
  }
130
130
  }
131
- oi(this.og, e) || ((this.og = e), this.j && this.j.Pt(s.It.oS, this.og)),
132
- oi(this.ng, r) ||
133
- ((this.ng = r), this.j && this.j.Pt(s.It.aS, this.ng)),
131
+ hi(this.og, e) || ((this.og = e), this.j && this.j.Pt(s.It.ZE, this.og)),
132
+ hi(this.ng, r) ||
133
+ ((this.ng = r), this.j && this.j.Pt(s.It.tS, this.ng)),
134
134
  this.mg(),
135
135
  i &&
136
136
  (b.info("Trigger with test condition found, firing test."),
@@ -148,7 +148,7 @@ export default class vr extends t {
148
148
  this.fg();
149
149
  const r = new Date().valueOf();
150
150
  t.zd(i) ||
151
- (!1 === navigator.onLine && t.type === gt.la.oa && e.imageUrl
151
+ (!1 === navigator.onLine && t.type === gt.ma.ua && e.imageUrl
152
152
  ? b.info(
153
153
  `Not showing ${t.type} trigger action ${t.id} due to offline state.`,
154
154
  )
@@ -185,27 +185,27 @@ export default class vr extends t {
185
185
  };
186
186
  let o, l, a;
187
187
  switch (t.type) {
188
- case gt.la.oa:
188
+ case gt.ma.ua:
189
189
  if (((o = pt(t.data)), null == o)) {
190
190
  b.error(
191
191
  `Could not parse trigger data for trigger ${t.id}, ignoring.`,
192
192
  );
193
193
  break;
194
194
  }
195
- if (((l = this.ig.Qn(o)), l)) {
195
+ if (((l = this.ig.Vn(o)), l)) {
196
196
  b.error(l), n();
197
197
  break;
198
198
  }
199
199
  h(o);
200
200
  break;
201
- case gt.la.Md:
201
+ case gt.ma.Hd:
202
202
  if (((a = Jt.fromJson(t.data, h, n, i, t.ca || 0)), null == a)) {
203
203
  b.error(
204
204
  `Could not parse trigger data for trigger ${t.id}, ignoring.`,
205
205
  );
206
206
  break;
207
207
  }
208
- this.ig.Xo(a, s, e);
208
+ this.ig.Zo(a, s, e);
209
209
  break;
210
210
  default:
211
211
  b.error(`Trigger ${t.id} was of unexpected type ${t.type}, ignoring.`);
@@ -269,15 +269,23 @@ export default class vr extends t {
269
269
  ));
270
270
  }
271
271
  changeUser(t = !1) {
272
- if (((this.triggers = []), this.j && this.j.Vt(s.It.sS), !t)) {
273
- (this.sg = []), (this.hg = null), (this.og = {}), (this.ng = {});
272
+ if (((this.triggers = []), this.j && this.j.Vt(s.It.zE), !t)) {
273
+ (this.sg = []),
274
+ (this.hg = null),
275
+ (this.og = {}),
276
+ (this.ng = {}),
277
+ this.ig && this.ig.ga();
274
278
  for (let t = 0; t < this.eg.length; t++) clearTimeout(this.eg[t]);
275
279
  (this.eg = []),
276
- this.j && (this.j.Vt(s.It.nS), this.j.Vt(s.It.oS), this.j.Vt(s.It.aS));
280
+ this.j && (this.j.Vt(s.It.$E), this.j.Vt(s.It.ZE), this.j.Vt(s.It.tS));
277
281
  }
278
282
  }
279
283
  clearData() {
280
- (this.triggers = []), (this.hg = null), (this.og = {}), (this.ng = {});
284
+ (this.triggers = []),
285
+ (this.hg = null),
286
+ (this.og = {}),
287
+ (this.ng = {}),
288
+ this.ig && this.ig.ga();
281
289
  for (let t = 0; t < this.eg.length; t++) clearTimeout(this.eg[t]);
282
290
  this.eg = [];
283
291
  }
@@ -297,18 +305,18 @@ export default class vr extends t {
297
305
  this.fg(), t.id && (this.ng[t.id] = this.ng[t.id] || []);
298
306
  const n = {};
299
307
  let o;
300
- (n.ma = i), (n.ug = e), null != r && (o = r.qt()), (n.dg = o);
308
+ (n.ha = i), (n.ug = e), null != r && (o = r.qt()), (n.dg = o);
301
309
  const l = [];
302
310
  for (const t of h) t.id && l.push(t.id);
303
311
  (n.pg = l),
304
312
  t.id && this.ng[t.id].push(n),
305
- this.j && this.j.Pt(s.It.aS, this.ng);
313
+ this.j && this.j.Pt(s.It.tS, this.ng);
306
314
  }
307
315
  yg(t, i) {
308
316
  this.fg(),
309
317
  t.$d(i),
310
318
  (this.hg = i),
311
319
  t.id && (this.og[t.id] = i),
312
- this.j && (this.j.Pt(s.It.nS, i), this.j.Pt(s.It.oS, this.og));
320
+ this.j && (this.j.Pt(s.It.$E, i), this.j.Pt(s.It.ZE, this.og));
313
321
  }
314
322
  }
package/src/types.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export const CartUpdatedActions = {
2
2
  REPLACE: "replace",
3
- Ld: "add",
4
- Od: "remove",
3
+ Od: "add",
4
+ Ud: "remove",
5
5
  };
@@ -1,7 +1,7 @@
1
1
  import r, { OPTIONS as U } from "../../managers/braze-instance.js";
2
2
  export function attachCSS(n, t, o) {
3
3
  const c = n || document.querySelector("head"),
4
- e = `ab-${t}-css-definitions-${"6.10.2".replace(/\./g, "-")}`;
4
+ e = `ab-${t}-css-definitions-${"6.11.0".replace(/\./g, "-")}`;
5
5
  if (!c) return;
6
6
  const s = c.ownerDocument || document;
7
7
  if (null == s.getElementById(e)) {
@@ -3,7 +3,7 @@ export default class Ve {
3
3
  constructor() {}
4
4
  ef() {}
5
5
  ff() {}
6
- Fa(t) {}
6
+ Ga(t) {}
7
7
  static nf(t, e) {
8
8
  if (t && e)
9
9
  if (((t = t.toLowerCase()), g(e.cf))) {
@@ -1,5 +1,5 @@
1
1
  import { logger as b } from "../../shared-lib/index.js";
2
- import { getErrorMessage as hi } from "./error-utils.js";
2
+ import { getErrorMessage as ai } from "./error-utils.js";
3
3
  import { decodeBrazeActions as uo } from "./string-utils.js";
4
4
  import {
5
5
  BRAZE_ACTION_URI_REGEX as to,
@@ -25,11 +25,11 @@ export const BRAZE_ACTIONS = {
25
25
  properties: { type: "type", eo: "steps", so: "args" },
26
26
  };
27
27
  export const INELIGIBLE_BRAZE_ACTION_URL_ERROR_TYPES = {
28
- Un: "unknownBrazeAction",
28
+ Wn: "unknownBrazeAction",
29
29
  Nc: "noPushPrompt",
30
30
  };
31
31
  export const ineligibleBrazeActionURLErrorMessage = (t, o) =>
32
- t === INELIGIBLE_BRAZE_ACTION_URL_ERROR_TYPES.Un
32
+ t === INELIGIBLE_BRAZE_ACTION_URL_ERROR_TYPES.Wn
33
33
  ? `${o} contains an unknown braze action type and will not be displayed.`
34
34
  : "";
35
35
  export function getDecodedBrazeAction(t) {
@@ -46,7 +46,7 @@ export function getDecodedBrazeAction(t) {
46
46
  ? JSON.parse(e)
47
47
  : void b.error(`Failed to decode base64 encoded brazeAction: ${n}`);
48
48
  } catch (o) {
49
- return void b.error(`Failed to process brazeAction URL ${t} : ${hi(o)}`);
49
+ return void b.error(`Failed to process brazeAction URL ${t} : ${ai(o)}`);
50
50
  }
51
51
  }
52
52
  function po(t, o) {
@@ -14,7 +14,7 @@ class xi {
14
14
  (this.browser = this.vg.ef()),
15
15
  (this.version = this.vg.ff()),
16
16
  (this.OS = null),
17
- this.Fa().then((t) => (this.OS = t));
17
+ this.Ga().then((t) => (this.OS = t));
18
18
  const i = navigator;
19
19
  (this.language = (
20
20
  i.userLanguage ||
@@ -25,16 +25,16 @@ class xi {
25
25
  ).toLowerCase()),
26
26
  (this.il = xi.xg(this.userAgent));
27
27
  }
28
- bS() {
28
+ hS() {
29
29
  return this.browser === yi.Bg;
30
30
  }
31
- Ba() {
31
+ Ka() {
32
32
  return this.OS || null;
33
33
  }
34
- Fa() {
34
+ Ga() {
35
35
  return this.OS
36
36
  ? Promise.resolve(this.OS)
37
- : this.vg.Fa(xi.Og).then((t) => ((this.OS = t), t));
37
+ : this.vg.Ga(xi.Og).then((t) => ((this.OS = t), t));
38
38
  }
39
39
  static xg(t) {
40
40
  t = t.toLowerCase();
@@ -21,7 +21,7 @@ export default class Si extends Ve {
21
21
  ff() {
22
22
  return this.version;
23
23
  }
24
- Fa(t) {
24
+ Ga(t) {
25
25
  if (this.OS) return Promise.resolve(this.OS);
26
26
  const s = (s) => {
27
27
  for (let r = 0; r < t.length; r++) {
@@ -1,5 +1,5 @@
1
1
  import { logger as b } from "../../shared-lib/index.js";
2
- import { getErrorMessage as hi } from "./error-utils.js";
2
+ import { getErrorMessage as ai } from "./error-utils.js";
3
3
  export function _isInView(t, n = !1, e = !1, s = !1) {
4
4
  if (null == t) return !1;
5
5
  (n = n || !1), (e = e || !1);
@@ -32,7 +32,7 @@ export function supportsPassive() {
32
32
  window.addEventListener("testPassive", () => {}, t),
33
33
  window.removeEventListener("testPassive", () => {}, t);
34
34
  } catch (t) {
35
- b.error(hi(t));
35
+ b.error(ai(t));
36
36
  }
37
37
  }
38
38
  return DOMUtils.Ic;
@@ -208,7 +208,7 @@ function kn(n, t) {
208
208
  var u;
209
209
  const o = Cn(n.products);
210
210
  if (!1 === e || !1 === r || null == o) return null;
211
- const c = r === un.Ld || r === un.Od,
211
+ const c = r === un.Od || r === un.Ud,
212
212
  i =
213
213
  void 0 === n.total_value && c ? void 0 : pn(n.total_value, "total_value");
214
214
  if (!1 === i) return null;
@@ -1 +1 @@
1
- export const KeyCodes = { Ao: 32, Wo: 9, Lo: 13, rh: 27 };
1
+ export const KeyCodes = { Ao: 32, Wo: 9, Lo: 13, oh: 27 };
package/src/util/net.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { logger as b } from "../../shared-lib/index.js";
2
2
  import Ne from "../models/backend-errors.js";
3
- import { getErrorMessage as hi } from "./error-utils.js";
3
+ import { getErrorMessage as ai } from "./error-utils.js";
4
4
  const l = {
5
5
  ot: (t) => {
6
6
  let e, o;
@@ -27,7 +27,7 @@ const l = {
27
27
  o = JSON.parse(e.responseText);
28
28
  } catch (o) {
29
29
  const n = {
30
- error: "" === e.responseText ? Ne.Ya : Ne.Va,
30
+ error: "" === e.responseText ? Ne.dl : Ne.ml,
31
31
  response: e.responseText,
32
32
  };
33
33
  (0, t.lt)(n, r);
@@ -51,7 +51,7 @@ const l = {
51
51
  for (const t of i) e.setRequestHeader(t[0], t[1]);
52
52
  e.send(o);
53
53
  } catch (t) {
54
- b.error(`Network request error: ${hi(t)}`);
54
+ b.error(`Network request error: ${ai(t)}`);
55
55
  }
56
56
  },
57
57
  };
@@ -5,26 +5,26 @@ const h = {
5
5
  pn: "data",
6
6
  Mi: "content_cards/sync",
7
7
  Co: "feature_flags/sync",
8
- Yo: "template",
8
+ ta: "template",
9
9
  st: "banners/sync",
10
- qa: "push/unregister",
10
+ Ra: "push/unregister",
11
11
  },
12
- Ul: (e) => (null == e ? void 0 : e.St(s.It.ES)),
13
- Rm: (e) => (null == e ? void 0 : e.St(s.It.SS)),
12
+ Gl: (e) => (null == e ? void 0 : e.St(s.It.sS)),
13
+ Rm: (e) => (null == e ? void 0 : e.St(s.It.rS)),
14
14
  Am: (e, t) => {
15
- null == e || e.Pt(s.It.ES, t);
15
+ null == e || e.Pt(s.It.sS, t);
16
16
  },
17
17
  qm: (e, t) => {
18
- null == e || e.Pt(s.It.SS, t);
18
+ null == e || e.Pt(s.It.rS, t);
19
19
  },
20
- Al: (e, t) => {
20
+ yl: (e, t) => {
21
21
  if (!e || !t) return -1;
22
- const s = h.Ul(e);
22
+ const s = h.Gl(e);
23
23
  if (null == s) return -1;
24
24
  const n = s[t];
25
25
  return null == n || isNaN(n) ? -1 : n;
26
26
  },
27
- Dl: (e, t) => {
27
+ wl: (e, t) => {
28
28
  let s = Qe;
29
29
  if (!e || !t) return s;
30
30
  const n = h.Rm(e);
@@ -32,21 +32,21 @@ const h = {
32
32
  },
33
33
  nt: (e, t, s) => {
34
34
  if (!e || !t) return;
35
- let n = h.Ul(e);
35
+ let n = h.Gl(e);
36
36
  null == n && (n = {}), (n[t] = s), h.Am(e, n);
37
37
  },
38
- Tl: (e, t, s) => {
38
+ Nl: (e, t, s) => {
39
39
  if (!e || !t) return;
40
40
  let n = h.Rm(e);
41
41
  null == n && (n = {}), (n[t] = s), h.qm(e, n);
42
42
  },
43
43
  Ji: (e, t) => {
44
- e && t && h.Tl(e, t, Qe);
44
+ e && t && h.Nl(e, t, Qe);
45
45
  },
46
- jl: (e, t) => {
46
+ Ll: (e, t) => {
47
47
  if (!e || !t) return;
48
- const s = h.Dl(e, t);
49
- h.Tl(e, t, s + 1);
48
+ const s = h.wl(e, t);
49
+ h.Nl(e, t, s + 1);
50
50
  },
51
51
  };
52
52
  export default h;
@@ -2,15 +2,15 @@ import Ve from "./base-device-parser.js";
2
2
  import { Browsers as yi, OperatingSystems as so } from "./device-constants.js";
3
3
  export default class vi extends Ve {
4
4
  constructor() {
5
- super(), (this.Sd = vi.Bc(navigator.userAgent || ""));
5
+ super(), (this.Vd = vi.Bc(navigator.userAgent || ""));
6
6
  }
7
7
  ef() {
8
- return this.Sd[0] || "Unknown Browser";
8
+ return this.Vd[0] || "Unknown Browser";
9
9
  }
10
10
  ff() {
11
- return this.Sd[1] || "Unknown Version";
11
+ return this.Vd[1] || "Unknown Version";
12
12
  }
13
- Fa(r) {
13
+ Ga(r) {
14
14
  for (let n = 0; n < r.length; n++) {
15
15
  const e = r[n].string;
16
16
  let i = vi.nf(e, r[n]);
@@ -100,7 +100,7 @@ export function validateCustomProperties(t, e, r, n, o) {
100
100
  [!1, null]
101
101
  );
102
102
  let i, a;
103
- e === R.Ku ? ((i = 76800), (a = "75KB")) : ((i = 51200), (a = "50KB"));
103
+ e === R.Mu ? ((i = 76800), (a = "75KB")) : ((i = 51200), (a = "50KB"));
104
104
  const s = JSON.stringify(t);
105
105
  if (er(s) > i)
106
106
  return (
@@ -119,11 +119,11 @@ export function validateCustomProperties(t, e, r, n, o) {
119
119
  );
120
120
  }
121
121
  for (const r in t) {
122
- if (e === R.Ku && !validateCustomAttributeKey(r)) return [!1, null];
122
+ if (e === R.Mu && !validateCustomAttributeKey(r)) return [!1, null];
123
123
  if (!validateCustomString(r, n, `the ${o} property name`))
124
124
  return [!1, null];
125
125
  const i = t[r];
126
- if (e !== R.Ku && null == i) {
126
+ if (e !== R.Mu && null == i) {
127
127
  delete t[r], delete u[r];
128
128
  continue;
129
129
  }
@@ -134,7 +134,7 @@ export function validateCustomProperties(t, e, r, n, o) {
134
134
  u[r],
135
135
  n,
136
136
  `the ${o} property "${r}"`,
137
- e === R.Ku,
137
+ e === R.Mu,
138
138
  )
139
139
  )
140
140
  return [!1, null];
@@ -167,7 +167,7 @@ export function validateCustomAttributeArrayType(t, e) {
167
167
  if (
168
168
  !validateCustomProperties(
169
169
  i,
170
- R.Ku,
170
+ R.Mu,
171
171
  "attribute value",
172
172
  `set custom user attribute "${t}"`,
173
173
  "custom user attribute",
@@ -28,7 +28,7 @@ export function _getCurrentUrl() {
28
28
  }
29
29
  export const WindowUtils = {
30
30
  openUri: _openUri,
31
- da: _isPhone,
32
- ga: _getOrientation,
31
+ ba: _isPhone,
32
+ wa: _getOrientation,
33
33
  Qh: _getCurrentUrl,
34
34
  };