@braze/web-sdk 6.3.1 → 6.4.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 (132) hide show
  1. package/index.d.ts +35 -3
  2. package/package.json +1 -1
  3. package/shared-lib/encoding-utils.js +1 -1
  4. package/shared-lib/event-types.js +23 -23
  5. package/shared-lib/guid.js +2 -2
  6. package/shared-lib/indexed-db-adapter.js +7 -7
  7. package/shared-lib/logger.js +2 -2
  8. package/shared-lib/supported-options.js +22 -21
  9. package/src/Banner/display/banner-to-html.js +2 -2
  10. package/src/Banner/display/detect-banner-impressions.js +7 -7
  11. package/src/Banner/index.js +2 -0
  12. package/src/Banner/request-banners-refresh.js +6 -6
  13. package/src/Banner/ui/insert-banner.js +4 -4
  14. package/src/Card/card-manager-factory.js +5 -5
  15. package/src/Card/card-manager.js +4 -4
  16. package/src/Card/display/card-display.js +7 -7
  17. package/src/Card/log-card-dismissal.js +3 -3
  18. package/src/Card/log-content-card-click.js +3 -3
  19. package/src/Card/log-content-card-impressions.js +6 -6
  20. package/src/Card/models/card.js +7 -7
  21. package/src/Card/util/card-factory.js +6 -6
  22. package/src/ContentCards/content-cards-provider-factory.js +14 -10
  23. package/src/ContentCards/content-cards-provider.js +28 -28
  24. package/src/ContentCards/content-cards.js +4 -4
  25. package/src/ContentCards/get-cached-content-cards.js +2 -2
  26. package/src/ContentCards/request-content-cards-refresh.js +2 -2
  27. package/src/ContentCards/subscribe-to-content-cards-updates.js +3 -3
  28. package/src/ContentCards/ui/show-content-cards.js +8 -8
  29. package/src/Core/add-sdk-metadata.js +2 -2
  30. package/src/Core/change-user.js +5 -5
  31. package/src/Core/disable-sdk.js +3 -3
  32. package/src/Core/enable-sdk.js +3 -3
  33. package/src/Core/get-user.js +1 -1
  34. package/src/Core/is-disabled.js +1 -1
  35. package/src/Core/log-custom-event.js +9 -9
  36. package/src/Core/log-purchase.js +7 -7
  37. package/src/Core/open-session.js +11 -11
  38. package/src/Core/set-sdk-authentication-signature.js +2 -2
  39. package/src/Core/wipe-data.js +5 -5
  40. package/src/DUST/dust-provider-factory.js +20 -0
  41. package/src/DUST/dust-provider.js +288 -0
  42. package/src/DUST/index.js +3 -0
  43. package/src/DUST/subscribe-to-dust.js +24 -0
  44. package/src/DUST/types.js +1 -0
  45. package/src/FeatureFlags/feature-flags-provider-factory.js +9 -9
  46. package/src/FeatureFlags/feature-flags-provider.js +38 -38
  47. package/src/FeatureFlags/get-all-feature-flags.js +3 -3
  48. package/src/FeatureFlags/get-feature-flag.js +3 -3
  49. package/src/FeatureFlags/log-feature-flag-impression.js +5 -5
  50. package/src/FeatureFlags/refresh-feature-flags.js +5 -5
  51. package/src/FeatureFlags/subscribe-to-feature-flags-updates.js +3 -3
  52. package/src/InAppMessage/defer-in-app-message.js +1 -1
  53. package/src/InAppMessage/display/html-message-to-html.js +5 -5
  54. package/src/InAppMessage/display/in-app-message-to-html.js +22 -22
  55. package/src/InAppMessage/display/modal-utils.js +5 -5
  56. package/src/InAppMessage/get-deferred-in-app-message.js +1 -1
  57. package/src/InAppMessage/in-app-message-factory.js +4 -4
  58. package/src/InAppMessage/in-app-message-manager.js +80 -80
  59. package/src/InAppMessage/log-in-app-message-button-click.js +5 -5
  60. package/src/InAppMessage/log-in-app-message-click.js +5 -5
  61. package/src/InAppMessage/log-in-app-message-html-click.js +5 -5
  62. package/src/InAppMessage/log-in-app-message-impression.js +1 -1
  63. package/src/InAppMessage/models/control-message.js +1 -1
  64. package/src/InAppMessage/models/full-screen-message.js +12 -12
  65. package/src/InAppMessage/models/html-message.js +14 -14
  66. package/src/InAppMessage/models/in-app-message-button.js +4 -4
  67. package/src/InAppMessage/models/in-app-message.js +119 -121
  68. package/src/InAppMessage/models/modal-message.js +12 -12
  69. package/src/InAppMessage/models/slide-up-message.js +21 -21
  70. package/src/InAppMessage/models/templated-in-app-message.js +8 -8
  71. package/src/InAppMessage/subscribe-to-in-app-message.js +1 -1
  72. package/src/InAppMessage/ui/automatically-show-in-app-messages.js +3 -3
  73. package/src/InAppMessage/ui/remove-all-visible-in-app-messages.js +18 -0
  74. package/src/InAppMessage/ui/show-in-app-message.js +24 -24
  75. package/src/Push/is-push-blocked.js +2 -2
  76. package/src/Push/is-push-permission-granted.js +2 -2
  77. package/src/Push/is-push-supported.js +2 -2
  78. package/src/Push/push-manager-factory.js +8 -8
  79. package/src/Push/push-manager.js +90 -90
  80. package/src/Push/utils/push-utils.js +17 -17
  81. package/src/User/user-manager.js +12 -12
  82. package/src/User/user.js +48 -48
  83. package/src/common/constants.js +1 -0
  84. package/src/common/content-cards-display.js +20 -20
  85. package/src/common/event-logger.js +4 -4
  86. package/src/common/properties-base.js +16 -16
  87. package/src/l10n/l10n-manager-factory.js +2 -2
  88. package/src/l10n/l10n-manager.js +1 -1
  89. package/src/managers/auth-manager.js +29 -29
  90. package/src/managers/braze-instance.js +141 -133
  91. package/src/managers/device-manager.js +18 -18
  92. package/src/managers/network-manager.js +139 -139
  93. package/src/managers/server-config-manager.js +99 -82
  94. package/src/managers/session-manager.js +32 -32
  95. package/src/managers/storage-manager-factory.js +8 -8
  96. package/src/managers/storage-manager.js +76 -74
  97. package/src/managers/subscription-manager.js +10 -10
  98. package/src/models/backend-errors.js +5 -5
  99. package/src/models/braze-event.js +9 -9
  100. package/src/models/device.js +2 -2
  101. package/src/models/identifier.js +12 -12
  102. package/src/models/push-token.js +12 -12
  103. package/src/models/request-result.js +1 -1
  104. package/src/models/server-config.js +38 -34
  105. package/src/request-controller.js +136 -134
  106. package/src/triggers/models/custom-event-data.js +4 -4
  107. package/src/triggers/models/custom-event-property-data.js +5 -5
  108. package/src/triggers/models/filter-set.js +8 -8
  109. package/src/triggers/models/filter.js +30 -30
  110. package/src/triggers/models/in-app-message-click-data.js +1 -1
  111. package/src/triggers/models/purchase-data.js +1 -1
  112. package/src/triggers/models/purchase-property-data.js +2 -2
  113. package/src/triggers/models/push-click-data.js +1 -1
  114. package/src/triggers/models/trigger-condition.js +36 -36
  115. package/src/triggers/models/trigger-events.js +2 -2
  116. package/src/triggers/models/trigger.js +15 -15
  117. package/src/triggers/triggers-provider-factory.js +3 -3
  118. package/src/triggers/triggers-provider.js +25 -25
  119. package/src/ui/js/attach-css.js +3 -3
  120. package/src/ui/js/load-font-awesome.js +2 -2
  121. package/src/util/base-device-parser.js +3 -3
  122. package/src/util/braze-actions.js +3 -3
  123. package/src/util/browser-detector.js +13 -13
  124. package/src/util/client-hints-parser.js +6 -6
  125. package/src/util/component-utils.js +1 -1
  126. package/src/util/dom-utils.js +10 -10
  127. package/src/util/key-codes.js +1 -1
  128. package/src/util/net.js +1 -1
  129. package/src/util/request-header-utils.js +22 -22
  130. package/src/util/user-agent-parser.js +14 -14
  131. package/src/util/validation-utils.js +9 -9
  132. package/src/util/window-utils.js +1 -1
@@ -38,35 +38,35 @@ export default class HtmlMessage extends InAppMessage {
38
38
  (this.messageFields = a),
39
39
  (this.messageFields = a);
40
40
  }
41
- Bo() {
41
+ Po() {
42
42
  return !1;
43
43
  }
44
44
  $t(i) {
45
- if (this.He === InAppMessage.Ke.Hr) {
46
- if (this.Co) return !1;
47
- this.Co = !0;
45
+ if (this.Je === InAppMessage.Le.Mn) {
46
+ if (this.So) return !1;
47
+ this.So = !0;
48
48
  }
49
49
  return this.ti.L(i), !0;
50
50
  }
51
51
  dt() {
52
52
  const i = super.dt(HtmlMessage.es);
53
- return (i[InAppMessage.ss.Po] = this.messageFields), i;
53
+ return (i[InAppMessage.ss.qo] = this.messageFields), i;
54
54
  }
55
- static Xr(i) {
55
+ static In(i) {
56
56
  return new HtmlMessage(
57
- i[InAppMessage.ss.Vr],
57
+ i[InAppMessage.ss.ra],
58
58
  i[InAppMessage.ss.xs],
59
- i[InAppMessage.ss.Yr],
60
- i[InAppMessage.ss.sa],
61
59
  i[InAppMessage.ss.ta],
62
- i[InAppMessage.ss.fa],
63
- i[InAppMessage.ss.da],
60
+ i[InAppMessage.ss.pa],
61
+ i[InAppMessage.ss.ma],
62
+ i[InAppMessage.ss.ja],
64
63
  i[InAppMessage.ss.xa],
65
64
  i[InAppMessage.ss.wa],
65
+ i[InAppMessage.ss.ka],
66
66
  i[InAppMessage.ss.CSS],
67
- i[InAppMessage.ss.Po],
68
- i[InAppMessage.ss.ya],
67
+ i[InAppMessage.ss.qo],
68
+ i[InAppMessage.ss.qa],
69
69
  );
70
70
  }
71
71
  }
72
- HtmlMessage.es = InAppMessage.Ke.Hr;
72
+ HtmlMessage.es = InAppMessage.Le.Mn;
@@ -15,9 +15,9 @@ export default class InAppMessageButton {
15
15
  (this.borderColor = r || this.backgroundColor),
16
16
  (this.clickAction = h || InAppMessage.ClickAction.NONE),
17
17
  (this.uri = e),
18
- null == n && (n = InAppMessageButton.Hi),
18
+ null == n && (n = InAppMessageButton.Vr),
19
19
  (this.id = n),
20
- (this.Co = !1),
20
+ (this.So = !1),
21
21
  (this.ti = new u());
22
22
  }
23
23
  subscribeToClickedEvent(s) {
@@ -30,7 +30,7 @@ export default class InAppMessageButton {
30
30
  this.ti.removeAllSubscriptions();
31
31
  }
32
32
  $t() {
33
- return !this.Co && ((this.Co = !0), this.ti.L(), !0);
33
+ return !this.So && ((this.So = !0), this.ti.L(), !0);
34
34
  }
35
35
  static fromJson(s) {
36
36
  return new InAppMessageButton(
@@ -44,4 +44,4 @@ export default class InAppMessageButton {
44
44
  );
45
45
  }
46
46
  }
47
- InAppMessageButton.Hi = -1;
47
+ InAppMessageButton.Vr = -1;
@@ -1,4 +1,4 @@
1
- import r, { OPTIONS as z } from "../../managers/braze-instance.js";
1
+ import r, { OPTIONS as q } from "../../managers/braze-instance.js";
2
2
  import ro from "../../util/browser-detector.js";
3
3
  import {
4
4
  clickElement as Et,
@@ -7,6 +7,7 @@ import {
7
7
  import { KeyCodes as ie } from "../../util/key-codes.js";
8
8
  import u from "../../managers/subscription-manager.js";
9
9
  import { isIFrame as At } from "../utils/in-app-message-utils.js";
10
+ import { PAUSE_SCROLLING_CLASS as It } from "../../common/constants.js";
10
11
  export default class InAppMessage {
11
12
  constructor(
12
13
  t,
@@ -25,9 +26,9 @@ export default class InAppMessage {
25
26
  I,
26
27
  c,
27
28
  O,
29
+ m,
28
30
  L,
29
31
  _,
30
- m,
31
32
  N,
32
33
  R,
33
34
  S,
@@ -58,9 +59,9 @@ export default class InAppMessage {
58
59
  (this.iconColor = I),
59
60
  (this.iconBackgroundColor = c),
60
61
  (this.backgroundColor = O),
61
- (this.textColor = L),
62
- (this.closeButtonColor = _),
63
- (this.animateIn = m),
62
+ (this.textColor = m),
63
+ (this.closeButtonColor = L),
64
+ (this.animateIn = _),
64
65
  (this.animateOut = N),
65
66
  (this.header = R),
66
67
  (this.headerAlignment = S),
@@ -90,9 +91,9 @@ export default class InAppMessage {
90
91
  (this.iconColor = I || InAppMessage.th.ih),
91
92
  (this.iconBackgroundColor = c || InAppMessage.th.sh),
92
93
  (this.backgroundColor = O || InAppMessage.th.ih),
93
- (this.textColor = L || InAppMessage.th.hh),
94
- (this.closeButtonColor = _ || InAppMessage.th.eh),
95
- (this.animateIn = m),
94
+ (this.textColor = m || InAppMessage.th.hh),
95
+ (this.closeButtonColor = L || InAppMessage.th.eh),
96
+ (this.animateIn = _),
96
97
  null == this.animateIn && (this.animateIn = !0),
97
98
  (this.animateOut = N),
98
99
  null == this.animateOut && (this.animateOut = !0),
@@ -111,13 +112,13 @@ export default class InAppMessage {
111
112
  (this.altImageText = G),
112
113
  (this.nh = !1),
113
114
  (this.kt = !1),
114
- (this.Co = !1),
115
+ (this.So = !1),
115
116
  (this.Th = !1),
116
- (this.Pe = null),
117
117
  (this.Qe = null),
118
+ (this.Ve = null),
118
119
  (this.ti = new u()),
119
120
  (this.oh = new u()),
120
- (this.do = InAppMessage.TextAlignment.CENTER);
121
+ (this.bo = InAppMessage.TextAlignment.CENTER);
121
122
  }
122
123
  subscribeToClickedEvent(t) {
123
124
  return this.ti.wt(t);
@@ -132,31 +133,31 @@ export default class InAppMessage {
132
133
  this.ti.removeAllSubscriptions(), this.oh.removeAllSubscriptions();
133
134
  }
134
135
  closeMessage() {
135
- this.ll(this.Pe);
136
+ this.ll(this.Qe);
136
137
  }
137
- Ve() {
138
+ We() {
138
139
  return !0;
139
140
  }
140
- Bo() {
141
- return this.Ve();
141
+ Po() {
142
+ return this.We();
142
143
  }
143
- Le() {
144
+ Pe() {
144
145
  return null != this.htmlId && this.htmlId.length > 4;
145
146
  }
146
147
  Oe() {
147
- return this.Le() && null != this.css && this.css.length > 0;
148
+ return this.Pe() && null != this.css && this.css.length > 0;
148
149
  }
149
- Ge() {
150
- if (this.Le() && this.Oe()) return this.htmlId + "-css";
150
+ He() {
151
+ if (this.Pe() && this.Oe()) return this.htmlId + "-css";
151
152
  }
152
153
  Qt() {
153
154
  return !this.kt && ((this.kt = !0), !0);
154
155
  }
155
- Ur() {
156
+ zo() {
156
157
  return this.kt;
157
158
  }
158
159
  $t(t) {
159
- return !this.Co && ((this.Co = !0), this.ti.L(), !0);
160
+ return !this.So && ((this.So = !0), this.ti.L(), !0);
160
161
  }
161
162
  Kt() {
162
163
  return !this.Th && ((this.Th = !0), this.oh.L(), !0);
@@ -164,19 +165,19 @@ export default class InAppMessage {
164
165
  hide(t) {
165
166
  if (t && t.parentNode) {
166
167
  let s = t.closest(".ab-iam-root");
167
- if ((null == s && (s = t), this.Ve() && null != s.parentNode)) {
168
+ if ((null == s && (s = t), this.We() && null != s.parentNode)) {
168
169
  const t = s.parentNode.classList;
169
- t && t.contains(InAppMessage.rh) && t.remove(InAppMessage.rh),
170
- document.body.removeEventListener("touchmove", InAppMessage.lh);
170
+ t && t.contains(It) && t.remove(It),
171
+ document.body.removeEventListener("touchmove", InAppMessage.rh);
171
172
  }
172
- s.className = s.className.replace(InAppMessage.uh, InAppMessage.ah);
173
+ s.className = s.className.replace(InAppMessage.lh, InAppMessage.uh);
173
174
  }
174
175
  return this.animateOut || !1;
175
176
  }
176
177
  ll(t, s) {
177
178
  if (null == t) return;
178
179
  let i;
179
- (this.Pe = null),
180
+ (this.Qe = null),
180
181
  (i =
181
182
  -1 === t.className.indexOf("ab-in-app-message")
182
183
  ? t.getElementsByClassName("ab-in-app-message")[0]
@@ -191,7 +192,7 @@ export default class InAppMessage {
191
192
  let s = t.closest(".ab-iam-root");
192
193
  null == s && (s = t), s.parentNode && s.parentNode.removeChild(s);
193
194
  }
194
- const i = this.Ge();
195
+ const i = this.He();
195
196
  if (null != i) {
196
197
  const t = document.getElementById(i);
197
198
  t && t.parentNode && t.parentNode.removeChild(t);
@@ -199,42 +200,40 @@ export default class InAppMessage {
199
200
  null != e && "Safari" === ro.browser && (e.scrollTop = E),
200
201
  s ? s() : this.Kt();
201
202
  };
202
- h ? setTimeout(n, InAppMessage.cr) : n(), this.Qe && this.Qe.focus();
203
+ h ? setTimeout(n, InAppMessage.hr) : n(), this.Ve && this.Ve.focus();
203
204
  }
204
- ho() {
205
+ jo() {
205
206
  return document.createTextNode(this.message || "");
206
207
  }
207
- bo(t) {
208
+ po(t) {
208
209
  t.setAttribute("alt", this.altImageText || "");
209
210
  }
210
- static lh(t) {
211
+ static rh(t) {
211
212
  if (t.targetTouches && t.targetTouches.length > 1) return;
212
213
  const s = t.target;
213
214
  (s &&
214
215
  s.classList &&
215
216
  s.classList.contains("ab-message-text") &&
216
217
  s.scrollHeight > s.clientHeight) ||
217
- (document.querySelector(`.${InAppMessage.rh}`) &&
218
- t.cancelable &&
219
- t.preventDefault());
218
+ (document.querySelector(`.${It}`) && t.cancelable && t.preventDefault());
220
219
  }
221
- Ah(t) {
220
+ ah(t) {
222
221
  const s = t.parentNode;
223
- this.Ve() &&
222
+ this.We() &&
224
223
  null != s &&
225
224
  this.orientation !== InAppMessage.Orientation.LANDSCAPE &&
226
- (null != s.classList && s.classList.add(InAppMessage.rh),
225
+ (null != s.classList && s.classList.add(It),
227
226
  document.body.addEventListener(
228
227
  "touchmove",
229
- InAppMessage.lh,
228
+ InAppMessage.rh,
230
229
  !!Tt() && { passive: !1 },
231
230
  )),
232
- (t.className += " " + InAppMessage.uh);
231
+ (t.className += " " + InAppMessage.lh);
233
232
  }
234
- static Ih(t) {
233
+ static Ah(t) {
235
234
  if (
236
- t.keyCode === ie.Oh &&
237
- !r.ee(z.Lh) &&
235
+ t.keyCode === ie.Ih &&
236
+ !r.ee(q.Oh) &&
238
237
  document.querySelectorAll(".ab-modal-interactions").length > 0
239
238
  ) {
240
239
  const t = document.getElementsByClassName("ab-html-message");
@@ -256,49 +255,49 @@ export default class InAppMessage {
256
255
  }
257
256
  }
258
257
  }
259
- _h() {
258
+ mh() {
260
259
  this.nh ||
261
- r.ee(z.Lh) ||
262
- (document.addEventListener("keydown", InAppMessage.Ih, !1),
263
- r.mh(() => {
264
- document.removeEventListener("keydown", InAppMessage.Ih);
260
+ r.ee(q.Oh) ||
261
+ (document.addEventListener("keydown", InAppMessage.Ah, !1),
262
+ r.Lh(() => {
263
+ document.removeEventListener("keydown", InAppMessage.Ah);
265
264
  }),
266
265
  (this.nh = !0));
267
266
  }
268
267
  dt(t) {
269
268
  const s = {};
270
269
  return t
271
- ? ((s[InAppMessage.ss.Vr] = this.message),
272
- (s[InAppMessage.ss.Wr] = this.messageAlignment),
273
- (s[InAppMessage.ss.Nh] = this.slideFrom),
270
+ ? ((s[InAppMessage.ss.ra] = this.message),
271
+ (s[InAppMessage.ss.sa] = this.messageAlignment),
272
+ (s[InAppMessage.ss._h] = this.slideFrom),
274
273
  (s[InAppMessage.ss.xs] = this.extras),
275
- (s[InAppMessage.ss.Yr] = this.triggerId),
276
- (s[InAppMessage.ss.Zr] = this.clickAction),
274
+ (s[InAppMessage.ss.ta] = this.triggerId),
275
+ (s[InAppMessage.ss.ia] = this.clickAction),
277
276
  (s[InAppMessage.ss.URI] = this.uri),
278
- (s[InAppMessage.ss.ra] = this.openTarget),
279
- (s[InAppMessage.ss.sa] = this.dismissType),
280
- (s[InAppMessage.ss.ta] = this.duration),
281
- (s[InAppMessage.ss.ia] = this.icon),
277
+ (s[InAppMessage.ss.oa] = this.openTarget),
278
+ (s[InAppMessage.ss.pa] = this.dismissType),
279
+ (s[InAppMessage.ss.ma] = this.duration),
280
+ (s[InAppMessage.ss.na] = this.icon),
282
281
  (s[InAppMessage.ss.ns] = this.imageUrl),
283
- (s[InAppMessage.ss.oa] = this.imageStyle),
284
- (s[InAppMessage.ss.pa] = this.iconColor),
285
- (s[InAppMessage.ss.ma] = this.iconBackgroundColor),
286
- (s[InAppMessage.ss.na] = this.backgroundColor),
287
- (s[InAppMessage.ss.ua] = this.textColor),
288
- (s[InAppMessage.ss.ca] = this.closeButtonColor),
289
- (s[InAppMessage.ss.fa] = this.animateIn),
290
- (s[InAppMessage.ss.da] = this.animateOut),
291
- (s[InAppMessage.ss.la] = this.header),
292
- (s[InAppMessage.ss.ga] = this.headerAlignment),
293
- (s[InAppMessage.ss.ja] = this.headerTextColor),
294
- (s[InAppMessage.ss.xa] = this.frameColor),
295
- (s[InAppMessage.ss.za] = this.buttons),
296
- (s[InAppMessage.ss.ha] = this.cropType),
297
- (s[InAppMessage.ss.va] = this.orientation),
298
- (s[InAppMessage.ss.wa] = this.htmlId),
282
+ (s[InAppMessage.ss.ua] = this.imageStyle),
283
+ (s[InAppMessage.ss.ca] = this.iconColor),
284
+ (s[InAppMessage.ss.fa] = this.iconBackgroundColor),
285
+ (s[InAppMessage.ss.da] = this.backgroundColor),
286
+ (s[InAppMessage.ss.la] = this.textColor),
287
+ (s[InAppMessage.ss.ga] = this.closeButtonColor),
288
+ (s[InAppMessage.ss.ja] = this.animateIn),
289
+ (s[InAppMessage.ss.xa] = this.animateOut),
290
+ (s[InAppMessage.ss.za] = this.header),
291
+ (s[InAppMessage.ss.ha] = this.headerAlignment),
292
+ (s[InAppMessage.ss.va] = this.headerTextColor),
293
+ (s[InAppMessage.ss.wa] = this.frameColor),
294
+ (s[InAppMessage.ss.ya] = this.buttons),
295
+ (s[InAppMessage.ss.Sa] = this.cropType),
296
+ (s[InAppMessage.ss.ba] = this.orientation),
297
+ (s[InAppMessage.ss.ka] = this.htmlId),
299
298
  (s[InAppMessage.ss.CSS] = this.css),
300
299
  (s[InAppMessage.ss.ts] = t),
301
- (s[InAppMessage.ss.ya] = this.messageExtras),
300
+ (s[InAppMessage.ss.qa] = this.messageExtras),
302
301
  (s[InAppMessage.ss.LANGUAGE] = this.language),
303
302
  (s[InAppMessage.ss.ks] = this.altImageText),
304
303
  s)
@@ -309,19 +308,19 @@ export default class InAppMessage {
309
308
  hh: 4281545523,
310
309
  ih: 4294967295,
311
310
  sh: 4278219733,
312
- Rh: 4293914607,
313
- Sh: 4283782485,
311
+ Nh: 4293914607,
312
+ Rh: 4283782485,
314
313
  Eh: 3224580915,
315
314
  eh: 4288387995,
316
315
  }),
317
- (InAppMessage.Ye = {
318
- Mh: "hd",
319
- We: "ias",
320
- Dh: "of",
321
- Ch: "do",
322
- dh: "umt",
323
- Uh: "tf",
324
- bh: "te",
316
+ (InAppMessage.Ze = {
317
+ Sh: "hd",
318
+ Ye: "ias",
319
+ Mh: "of",
320
+ Dh: "do",
321
+ Ch: "umt",
322
+ dh: "tf",
323
+ Uh: "te",
325
324
  }),
326
325
  (InAppMessage.SlideFrom = { TOP: "TOP", BOTTOM: "BOTTOM" }),
327
326
  (InAppMessage.ClickAction = { URI: "URI", NONE: "NONE" }),
@@ -341,53 +340,52 @@ export default class InAppMessage {
341
340
  CENTER_CROP: "CENTER_CROP",
342
341
  FIT_CENTER: "FIT_CENTER",
343
342
  }),
344
- (InAppMessage.Ke = {
345
- Kr: "SLIDEUP",
346
- Jr: "MODAL",
343
+ (InAppMessage.Le = {
344
+ Tn: "SLIDEUP",
345
+ An: "MODAL",
347
346
  Io: "MODAL_STYLED",
348
- Or: "FULL",
349
- Hr: "WEB_HTML",
350
- Je: "HTML",
347
+ bn: "FULL",
348
+ Mn: "WEB_HTML",
349
+ Ke: "HTML",
351
350
  Ao: "HTML_FULL",
352
351
  }),
353
- (InAppMessage.cr = 500),
354
- (InAppMessage.Ph = 200),
355
- (InAppMessage.uh = "ab-show"),
356
- (InAppMessage.ah = "ab-hide"),
357
- (InAppMessage.rh = "ab-pause-scrolling"),
352
+ (InAppMessage.hr = 500),
353
+ (InAppMessage.bh = 200),
354
+ (InAppMessage.lh = "ab-show"),
355
+ (InAppMessage.uh = "ab-hide"),
358
356
  (InAppMessage.ss = {
359
- Vr: "m",
360
- Wr: "ma",
361
- Nh: "sf",
357
+ ra: "m",
358
+ sa: "ma",
359
+ _h: "sf",
362
360
  xs: "e",
363
- Yr: "ti",
364
- Zr: "ca",
361
+ ta: "ti",
362
+ ia: "ca",
365
363
  URI: "u",
366
- ra: "oa",
367
- sa: "dt",
368
- ta: "d",
369
- ia: "i",
364
+ oa: "oa",
365
+ pa: "dt",
366
+ ma: "d",
367
+ na: "i",
370
368
  ns: "iu",
371
- oa: "is",
372
- pa: "ic",
373
- ma: "ibc",
374
- na: "bc",
375
- ua: "tc",
376
- ca: "cbc",
377
- fa: "ai",
378
- da: "ao",
379
- la: "h",
380
- ga: "ha",
381
- ja: "htc",
382
- xa: "fc",
383
- za: "b",
384
- ha: "ct",
385
- va: "o",
386
- wa: "hi",
369
+ ua: "is",
370
+ ca: "ic",
371
+ fa: "ibc",
372
+ da: "bc",
373
+ la: "tc",
374
+ ga: "cbc",
375
+ ja: "ai",
376
+ xa: "ao",
377
+ za: "h",
378
+ ha: "ha",
379
+ va: "htc",
380
+ wa: "fc",
381
+ ya: "b",
382
+ Sa: "ct",
383
+ ba: "o",
384
+ ka: "hi",
387
385
  CSS: "css",
388
386
  ts: "type",
389
- Po: "messageFields",
390
- ya: "me",
387
+ qo: "messageFields",
388
+ qa: "me",
391
389
  LANGUAGE: "l",
392
390
  ks: "ia",
393
391
  });
@@ -67,28 +67,24 @@ export default class ModalMessage extends InAppMessage {
67
67
  B,
68
68
  C,
69
69
  ),
70
- (this.do = InAppMessage.TextAlignment.CENTER);
70
+ (this.bo = InAppMessage.TextAlignment.CENTER);
71
71
  }
72
72
  dt() {
73
73
  return super.dt(ModalMessage.es);
74
74
  }
75
- static Xr(e) {
75
+ static In(e) {
76
76
  return new ModalMessage(
77
- e[InAppMessage.ss.Vr],
78
- e[InAppMessage.ss.Wr],
79
- e[InAppMessage.ss.xs],
80
- e[InAppMessage.ss.Yr],
81
- e[InAppMessage.ss.Zr],
82
- e[InAppMessage.ss.URI],
83
77
  e[InAppMessage.ss.ra],
84
78
  e[InAppMessage.ss.sa],
79
+ e[InAppMessage.ss.xs],
85
80
  e[InAppMessage.ss.ta],
86
81
  e[InAppMessage.ss.ia],
87
- e[InAppMessage.ss.ns],
82
+ e[InAppMessage.ss.URI],
88
83
  e[InAppMessage.ss.oa],
89
84
  e[InAppMessage.ss.pa],
90
85
  e[InAppMessage.ss.ma],
91
86
  e[InAppMessage.ss.na],
87
+ e[InAppMessage.ss.ns],
92
88
  e[InAppMessage.ss.ua],
93
89
  e[InAppMessage.ss.ca],
94
90
  e[InAppMessage.ss.fa],
@@ -97,14 +93,18 @@ export default class ModalMessage extends InAppMessage {
97
93
  e[InAppMessage.ss.ga],
98
94
  e[InAppMessage.ss.ja],
99
95
  e[InAppMessage.ss.xa],
100
- re(e[InAppMessage.ss.za]),
96
+ e[InAppMessage.ss.za],
101
97
  e[InAppMessage.ss.ha],
98
+ e[InAppMessage.ss.va],
102
99
  e[InAppMessage.ss.wa],
100
+ re(e[InAppMessage.ss.ya]),
101
+ e[InAppMessage.ss.Sa],
102
+ e[InAppMessage.ss.ka],
103
103
  e[InAppMessage.ss.CSS],
104
- e[InAppMessage.ss.ya],
104
+ e[InAppMessage.ss.qa],
105
105
  e[InAppMessage.ss.LANGUAGE],
106
106
  e[InAppMessage.ss.ks],
107
107
  );
108
108
  }
109
109
  }
110
- ModalMessage.es = InAppMessage.Ke.Jr;
110
+ ModalMessage.es = InAppMessage.Le.An;
@@ -27,8 +27,8 @@ export default class SlideUpMessage extends InAppMessage {
27
27
  j,
28
28
  z,
29
29
  ) {
30
- (x = x || InAppMessage.th.Sh),
31
- (v = v || InAppMessage.th.Rh),
30
+ (x = x || InAppMessage.th.Rh),
31
+ (v = v || InAppMessage.th.Nh),
32
32
  super(
33
33
  e,
34
34
  (t = t || InAppMessage.TextAlignment.START),
@@ -63,53 +63,53 @@ export default class SlideUpMessage extends InAppMessage {
63
63
  j,
64
64
  z,
65
65
  ),
66
- (this.do = InAppMessage.TextAlignment.START);
66
+ (this.bo = InAppMessage.TextAlignment.START);
67
67
  }
68
- Ve() {
68
+ We() {
69
69
  return !1;
70
70
  }
71
- ho() {
71
+ jo() {
72
72
  const e = document.createElement("span");
73
73
  return e.appendChild(document.createTextNode(this.message || "")), e;
74
74
  }
75
- Ah(e) {
75
+ ah(e) {
76
76
  const t = e.getElementsByClassName("ab-in-app-message")[0];
77
- de.Mo(t, !0, !0) ||
77
+ de.Do(t, !0, !0) ||
78
78
  (this.slideFrom === InAppMessage.SlideFrom.TOP
79
79
  ? (t.style.top = "0px")
80
80
  : (t.style.bottom = "0px")),
81
- super.Ah(e);
81
+ super.ah(e);
82
82
  }
83
83
  dt() {
84
84
  return super.dt(SlideUpMessage.es);
85
85
  }
86
- static Xr(e) {
86
+ static In(e) {
87
87
  return new SlideUpMessage(
88
- e[InAppMessage.ss.Vr],
89
- e[InAppMessage.ss.Wr],
90
- e[InAppMessage.ss.Nh],
91
- e[InAppMessage.ss.xs],
92
- e[InAppMessage.ss.Yr],
93
- e[InAppMessage.ss.Zr],
94
- e[InAppMessage.ss.URI],
95
88
  e[InAppMessage.ss.ra],
96
89
  e[InAppMessage.ss.sa],
90
+ e[InAppMessage.ss._h],
91
+ e[InAppMessage.ss.xs],
97
92
  e[InAppMessage.ss.ta],
98
93
  e[InAppMessage.ss.ia],
99
- e[InAppMessage.ss.ns],
94
+ e[InAppMessage.ss.URI],
95
+ e[InAppMessage.ss.oa],
100
96
  e[InAppMessage.ss.pa],
101
97
  e[InAppMessage.ss.ma],
102
98
  e[InAppMessage.ss.na],
103
- e[InAppMessage.ss.ua],
99
+ e[InAppMessage.ss.ns],
104
100
  e[InAppMessage.ss.ca],
105
101
  e[InAppMessage.ss.fa],
106
102
  e[InAppMessage.ss.da],
107
- e[InAppMessage.ss.wa],
103
+ e[InAppMessage.ss.la],
104
+ e[InAppMessage.ss.ga],
105
+ e[InAppMessage.ss.ja],
106
+ e[InAppMessage.ss.xa],
107
+ e[InAppMessage.ss.ka],
108
108
  e[InAppMessage.ss.CSS],
109
- e[InAppMessage.ss.ya],
109
+ e[InAppMessage.ss.qa],
110
110
  e[InAppMessage.ss.LANGUAGE],
111
111
  e[InAppMessage.ss.ks],
112
112
  );
113
113
  }
114
114
  }
115
- SlideUpMessage.es = InAppMessage.Ke.Kr;
115
+ SlideUpMessage.es = InAppMessage.Le.Tn;
@@ -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.qr = s),
5
- (this.Tr = i),
6
- (this.Er = h),
7
- (this.Gr = l),
4
+ (this.dn = s),
5
+ (this.hn = i),
6
+ (this.jn = h),
7
+ (this.vn = l),
8
8
  (this.triggerId = t),
9
- (this.qr = s),
10
- (this.Tr = i),
11
- (this.Er = h),
12
- (this.Gr = l);
9
+ (this.dn = s),
10
+ (this.hn = i),
11
+ (this.jn = h),
12
+ (this.vn = l);
13
13
  }
14
14
  static fromJson(t, s, i, h, l) {
15
15
  return null == t || null == t.trigger_id
@@ -4,7 +4,7 @@ export function subscribeToInAppMessage(n) {
4
4
  if (r.rr())
5
5
  return "function" != typeof n
6
6
  ? null
7
- : se.ea().qi(function (r) {
7
+ : se.ea().Or(function (r) {
8
8
  return n(r[0]), r.slice(1);
9
9
  });
10
10
  }
@@ -7,9 +7,9 @@ export function automaticallyShowInAppMessages() {
7
7
  if (!r.rr()) return;
8
8
  ss();
9
9
  const s = se.ea();
10
- if (null == s.xi()) {
10
+ if (null == s.Xr()) {
11
11
  const r = subscribeToInAppMessage((s) => showInAppMessage(s));
12
- s.Pi(r);
12
+ s.Hr(r);
13
13
  }
14
- return s.xi();
14
+ return s.Xr();
15
15
  }