@braze/web-sdk 6.11.0 → 6.12.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 (102) hide show
  1. package/index.d.ts +36 -5
  2. package/package.json +1 -1
  3. package/shared-lib/event-types.js +4 -4
  4. package/shared-lib/indexed-db-adapter.js +51 -51
  5. package/shared-lib/logger.js +7 -7
  6. package/shared-lib/supported-options.js +9 -9
  7. package/src/DUST/dust-config-store.js +89 -0
  8. package/src/DUST/dust-connection-core.js +7 -21
  9. package/src/DUST/dust-message-dedup.js +33 -0
  10. package/src/DUST/dust-provider.js +367 -397
  11. package/src/DUST/dust-tab-identity.js +30 -0
  12. package/src/DUST/index.js +7 -9
  13. package/src/DUST/subscribe-to-dust.js +5 -5
  14. package/src/FeatureFlags/feature-flag-factory.js +4 -4
  15. package/src/FeatureFlags/feature-flag.js +5 -5
  16. package/src/FeatureFlags/feature-flags-provider-factory.js +8 -1
  17. package/src/FeatureFlags/feature-flags-provider.js +74 -74
  18. package/src/FeatureFlags/get-all-feature-flags.js +2 -2
  19. package/src/FeatureFlags/get-feature-flag.js +2 -2
  20. package/src/FeatureFlags/log-feature-flag-impression.js +3 -3
  21. package/src/FeatureFlags/subscribe-to-feature-flags-updates.js +1 -1
  22. package/src/InAppMessage/defer-in-app-message.js +2 -2
  23. package/src/InAppMessage/display/get-animation-effect.js +1 -1
  24. package/src/InAppMessage/display/html-message-display-utils.js +4 -4
  25. package/src/InAppMessage/display/html-message-to-html.js +10 -10
  26. package/src/InAppMessage/display/in-app-message-to-html.js +42 -42
  27. package/src/InAppMessage/display/modal-utils.js +14 -14
  28. package/src/InAppMessage/get-deferred-in-app-message.js +2 -2
  29. package/src/InAppMessage/in-app-message-factory.js +6 -6
  30. package/src/InAppMessage/in-app-message-manager-factory.js +5 -5
  31. package/src/InAppMessage/in-app-message-manager.js +73 -73
  32. package/src/InAppMessage/log-in-app-message-button-click.js +2 -2
  33. package/src/InAppMessage/log-in-app-message-click.js +2 -2
  34. package/src/InAppMessage/log-in-app-message-html-click.js +2 -2
  35. package/src/InAppMessage/log-in-app-message-impression.js +2 -2
  36. package/src/InAppMessage/models/full-screen-message.js +9 -9
  37. package/src/InAppMessage/models/html-message.js +4 -4
  38. package/src/InAppMessage/models/in-app-message-button.js +2 -2
  39. package/src/InAppMessage/models/in-app-message.js +52 -52
  40. package/src/InAppMessage/models/modal-message.js +7 -7
  41. package/src/InAppMessage/models/slide-up-message.js +11 -11
  42. package/src/InAppMessage/models/templated-in-app-message.js +8 -8
  43. package/src/InAppMessage/subscribe-to-in-app-message.js +2 -2
  44. package/src/InAppMessage/ui/automatically-show-in-app-messages.js +5 -5
  45. package/src/InAppMessage/ui/show-in-app-message.js +36 -36
  46. package/src/Push/is-push-blocked.js +2 -2
  47. package/src/Push/is-push-permission-granted.js +2 -2
  48. package/src/Push/is-push-supported.js +2 -2
  49. package/src/Push/push-manager-factory.js +6 -6
  50. package/src/Push/push-manager.js +14 -14
  51. package/src/Push/unregister-push-token-on-server.js +3 -3
  52. package/src/Push/utils/push-utils.js +10 -10
  53. package/src/User/user.js +19 -19
  54. package/src/common/content-cards-display.js +21 -21
  55. package/src/common/event-logger.js +2 -2
  56. package/src/l10n/l10n-manager-factory.js +7 -7
  57. package/src/l10n/l10n-manager.js +5 -5
  58. package/src/managers/auth-manager.js +1 -1
  59. package/src/managers/braze-instance.js +41 -41
  60. package/src/managers/device-manager.js +22 -22
  61. package/src/managers/network-manager.js +108 -108
  62. package/src/managers/server-config-manager.js +83 -83
  63. package/src/managers/session-manager.js +6 -6
  64. package/src/managers/storage-manager-factory.js +4 -4
  65. package/src/managers/storage-manager.js +127 -125
  66. package/src/managers/subscription-manager.js +1 -1
  67. package/src/managers/utils.js +1 -1
  68. package/src/models/backend-errors.js +5 -5
  69. package/src/models/braze-event.js +7 -7
  70. package/src/models/device.js +3 -3
  71. package/src/models/identifier.js +3 -3
  72. package/src/models/push-token.js +3 -3
  73. package/src/models/server-config.js +31 -31
  74. package/src/request-controller.js +39 -39
  75. package/src/triggers/models/filter.js +58 -58
  76. package/src/triggers/models/in-app-message-click-data.js +4 -4
  77. package/src/triggers/models/push-click-data.js +2 -2
  78. package/src/triggers/models/trigger-condition.js +35 -35
  79. package/src/triggers/models/trigger.js +37 -37
  80. package/src/triggers/triggers-provider-factory.js +3 -3
  81. package/src/triggers/triggers-provider.js +50 -50
  82. package/src/types.js +2 -2
  83. package/src/ui/js/attach-css.js +1 -1
  84. package/src/ui/js/feed-css.js +2 -2
  85. package/src/ui/js/iam-css.js +2 -2
  86. package/src/util/base-device-parser.js +2 -2
  87. package/src/util/braze-actions.js +2 -2
  88. package/src/util/browser-detector.js +15 -15
  89. package/src/util/client-hints-parser.js +5 -5
  90. package/src/util/component-utils.js +4 -4
  91. package/src/util/dom-utils.js +5 -5
  92. package/src/util/ecommerce-event-validation.js +77 -48
  93. package/src/util/key-codes.js +1 -1
  94. package/src/util/net.js +4 -4
  95. package/src/util/request-header-utils.js +20 -20
  96. package/src/util/string-utils.js +5 -0
  97. package/src/util/user-agent-parser.js +18 -18
  98. package/src/util/validation-utils.js +4 -4
  99. package/src/util/window-utils.js +2 -2
  100. package/src/DUST/dust-shared-worker-code.js +0 -2
  101. package/src/DUST/dust-shared-worker-impl.js +0 -234
  102. package/src/DUST/dust-worker-bridge.js +0 -151
@@ -1,6 +1,6 @@
1
1
  import r from "../managers/braze-instance.js";
2
2
  import HtmlMessage from "./models/html-message.js";
3
- import je from "./in-app-message-manager-factory.js";
3
+ import se from "./in-app-message-manager-factory.js";
4
4
  import { logger as b, EventTypes as p } from "../../shared-lib/index.js";
5
5
  import ot from "../triggers/models/trigger-events.js";
6
6
  import { TriggersProviderFactory as rt } from "../triggers/triggers-provider-factory.js";
@@ -15,7 +15,7 @@ export function logInAppMessageHtmlClick(e, t, s) {
15
15
  );
16
16
  let o = p.Hn;
17
17
  null != t && (o = p.Jn);
18
- const m = je.ra().Dt(e, o, t, s);
18
+ const m = se.ra().Dt(e, o, t, s);
19
19
  if (m.lt)
20
20
  for (let r = 0; r < m.Ce.length; r++)
21
21
  rt.o().Ee(ot.rm, [e.triggerId, t], m.Ce[r]);
@@ -1,7 +1,7 @@
1
1
  import r from "../managers/braze-instance.js";
2
2
  import ControlMessage from "./models/control-message.js";
3
3
  import InAppMessage from "./models/in-app-message.js";
4
- import je from "./in-app-message-manager-factory.js";
4
+ import se from "./in-app-message-manager-factory.js";
5
5
  import { IamStrings as mr } from "./constants.js";
6
6
  import { logger as b, EventTypes as p } from "../../shared-lib/index.js";
7
7
  export function logInAppMessageImpression(s) {
@@ -9,5 +9,5 @@ export function logInAppMessageImpression(s) {
9
9
  if (!(s instanceof InAppMessage || s instanceof ControlMessage))
10
10
  return b.error(mr.EE), !1;
11
11
  const o = s instanceof ControlMessage ? p.om : p.On;
12
- return je.ra().Dt(s, o).lt;
12
+ return se.ra().Dt(s, o).lt;
13
13
  }
@@ -1,10 +1,10 @@
1
1
  import {
2
- IamCropType as Me,
2
+ IamCropType as de,
3
3
  IamDismissType as pr,
4
- IamOrientation as Ae,
4
+ IamOrientation as be,
5
5
  IamSerializationKeys as cr,
6
- IamServerTypes as dt,
7
- IamTextAlignment as Ee,
6
+ IamServerTypes as gt,
7
+ IamTextAlignment as pe,
8
8
  } from "../constants.js";
9
9
  import { buttonsFromSerializedInAppMessage as ur } from "../in-app-message-factory.js";
10
10
  import InAppMessage from "./in-app-message.js";
@@ -43,7 +43,7 @@ export default class FullScreenMessage extends InAppMessage {
43
43
  D,
44
44
  ) {
45
45
  (p = p || pr.MANUAL),
46
- (k = k || Ae.PORTRAIT),
46
+ (k = k || be.PORTRAIT),
47
47
  super(
48
48
  r,
49
49
  s,
@@ -70,7 +70,7 @@ export default class FullScreenMessage extends InAppMessage {
70
70
  w,
71
71
  y,
72
72
  S,
73
- (b = b || Me.CENTER_CROP),
73
+ (b = b || de.CENTER_CROP),
74
74
  k,
75
75
  q,
76
76
  A,
@@ -78,12 +78,12 @@ export default class FullScreenMessage extends InAppMessage {
78
78
  C,
79
79
  D,
80
80
  ),
81
- (this.Go = Ee.CENTER);
81
+ (this.qo = pe.CENTER);
82
82
  }
83
83
  qt() {
84
- return super.qt(dt.oE);
84
+ return super.qt(gt.oE);
85
85
  }
86
- static da(r) {
86
+ static ua(r) {
87
87
  return new FullScreenMessage(
88
88
  r[cr.UE],
89
89
  r[cr.cE],
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  IamDismissType as pr,
3
3
  IamSerializationKeys as cr,
4
- IamServerTypes as dt,
4
+ IamServerTypes as gt,
5
5
  } from "../constants.js";
6
6
  import InAppMessage from "./in-app-message.js";
7
7
  export default class HtmlMessage extends InAppMessage {
@@ -47,17 +47,17 @@ export default class HtmlMessage extends InAppMessage {
47
47
  return !1;
48
48
  }
49
49
  Yt(i) {
50
- if (this.ko === dt.ME) {
50
+ if (this.Oo === gt.ME) {
51
51
  if (this.rd) return !1;
52
52
  this.rd = !0;
53
53
  }
54
54
  return this.ti.A(i), !0;
55
55
  }
56
56
  qt() {
57
- const i = super.qt(dt.ME);
57
+ const i = super.qt(gt.ME);
58
58
  return (i[cr.wE] = this.messageFields), i;
59
59
  }
60
- static da(i) {
60
+ static ua(i) {
61
61
  return new HtmlMessage(
62
62
  i[cr.UE],
63
63
  i[cr.Is],
@@ -1,5 +1,5 @@
1
1
  import f from "../../managers/subscription-manager.js";
2
- import { IamColors as ss, IamClickAction as Le } from "../constants.js";
2
+ import { IamColors as ss, IamClickAction as ce } from "../constants.js";
3
3
  export default class InAppMessageButton {
4
4
  constructor(s, t, i, r, h, e, n) {
5
5
  (this.text = s),
@@ -13,7 +13,7 @@ export default class InAppMessageButton {
13
13
  (this.backgroundColor = t || ss._E),
14
14
  (this.textColor = i || ss.AE),
15
15
  (this.borderColor = r || this.backgroundColor),
16
- (this.clickAction = h || Le.NONE),
16
+ (this.clickAction = h || ce.NONE),
17
17
  (this.uri = e),
18
18
  null == n && (n = InAppMessageButton.Qn),
19
19
  (this.id = n),
@@ -1,27 +1,27 @@
1
1
  import r, { OPTIONS as U } from "../../managers/braze-instance.js";
2
2
  import ro from "../../util/browser-detector.js";
3
3
  import {
4
- clickElement as kt,
5
- supportsPassive as wt,
4
+ clickElement as wt,
5
+ supportsPassive as St,
6
6
  } from "../../util/dom-utils.js";
7
- import { KeyCodes as Ce } from "../../util/key-codes.js";
7
+ import { KeyCodes as le } from "../../util/key-codes.js";
8
8
  import f from "../../managers/subscription-manager.js";
9
- import { isIFrame as St } from "../utils/in-app-message-utils.js";
9
+ import { isIFrame as xt } from "../utils/in-app-message-utils.js";
10
10
  import {
11
11
  IamStrings as mr,
12
12
  IamColors as ss,
13
- IamClickAction as Le,
14
- IAM_SHOW_CLASS as Tt,
15
- IAM_HIDE_CLASS as xt,
16
- IamSlideFrom as De,
13
+ IamClickAction as ce,
14
+ IAM_SHOW_CLASS as Et,
15
+ IAM_HIDE_CLASS as Ht,
16
+ IamSlideFrom as fe,
17
17
  IamDismissType as pr,
18
- IamOpenTarget as ut,
19
- IamImageStyle as qe,
20
- IamOrientation as Ae,
21
- IamTextAlignment as Ee,
22
- IamCropType as Me,
23
- IamServerTypes as dt,
24
- IamTiming as At,
18
+ IamOpenTarget as dt,
19
+ IamImageStyle as ue,
20
+ IamOrientation as be,
21
+ IamTextAlignment as pe,
22
+ IamCropType as de,
23
+ IamServerTypes as gt,
24
+ IamTiming as kt,
25
25
  IamSerializationKeys as cr,
26
26
  } from "../constants.js";
27
27
  export default class InAppMessage {
@@ -92,18 +92,18 @@ export default class InAppMessage {
92
92
  (this.language = D),
93
93
  (this.altImageText = z),
94
94
  (this.message = t),
95
- (this.messageAlignment = s || Ee.CENTER),
95
+ (this.messageAlignment = s || pe.CENTER),
96
96
  (this.duration = u || 5e3),
97
- (this.slideFrom = i || De.BOTTOM),
97
+ (this.slideFrom = i || fe.BOTTOM),
98
98
  (this.extras = h || {}),
99
99
  (this.triggerId = e),
100
- (this.clickAction = n || Le.NONE),
100
+ (this.clickAction = n || ce.NONE),
101
101
  (this.uri = r),
102
- (this.openTarget = o || ut.NONE),
102
+ (this.openTarget = o || dt.NONE),
103
103
  (this.dismissType = l || pr.AUTO_DISMISS),
104
104
  (this.icon = a),
105
105
  (this.imageUrl = m),
106
- (this.imageStyle = c || qe.TOP),
106
+ (this.imageStyle = c || ue.TOP),
107
107
  (this.iconColor = d || ss.AE),
108
108
  (this.iconBackgroundColor = p || ss._E),
109
109
  (this.backgroundColor = b || ss.AE),
@@ -114,11 +114,11 @@ export default class InAppMessage {
114
114
  (this.animateOut = j),
115
115
  null == this.animateOut && (this.animateOut = !0),
116
116
  (this.header = k),
117
- (this.headerAlignment = w || Ee.CENTER),
117
+ (this.headerAlignment = w || pe.CENTER),
118
118
  (this.headerTextColor = y || ss.IE),
119
119
  (this.frameColor = S || ss.LE),
120
120
  (this.buttons = T || []),
121
- (this.cropType = x || Me.FIT_CENTER),
121
+ (this.cropType = x || de.FIT_CENTER),
122
122
  (this.orientation = E),
123
123
  (this.htmlId = H),
124
124
  (this.css = M),
@@ -131,11 +131,11 @@ export default class InAppMessage {
131
131
  (this.rd = !1),
132
132
  (this.sh = !1),
133
133
  (this.ih = !1),
134
- (this.Eo = null),
134
+ (this.Bo = null),
135
135
  (this.$o = null),
136
136
  (this.ti = new f()),
137
137
  (this.hh = new f()),
138
- (this.Go = Ee.CENTER);
138
+ (this.qo = pe.CENTER);
139
139
  }
140
140
  subscribeToClickedEvent(t) {
141
141
  return this.ti.Ut(t);
@@ -150,7 +150,7 @@ export default class InAppMessage {
150
150
  this.ti.removeAllSubscriptions(), this.hh.removeAllSubscriptions();
151
151
  }
152
152
  closeMessage() {
153
- this.tl(this.Eo);
153
+ this.tl(this.Bo);
154
154
  }
155
155
  zo() {
156
156
  return !0;
@@ -158,14 +158,14 @@ export default class InAppMessage {
158
158
  od() {
159
159
  return this.zo();
160
160
  }
161
- Bo() {
161
+ ko() {
162
162
  return null != this.htmlId && this.htmlId.length > 4;
163
163
  }
164
164
  Mo() {
165
- return this.Bo() && null != this.css && this.css.length > 0;
165
+ return this.ko() && null != this.css && this.css.length > 0;
166
166
  }
167
- Oo() {
168
- if (this.Bo() && this.Mo()) return this.htmlId + "-css";
167
+ Co() {
168
+ if (this.ko() && this.Mo()) return this.htmlId + "-css";
169
169
  }
170
170
  js() {
171
171
  return !this.hs && ((this.hs = !0), !0);
@@ -187,7 +187,7 @@ export default class InAppMessage {
187
187
  t && t.contains(mr.TE) && t.remove(mr.TE),
188
188
  document.body.removeEventListener("touchmove", InAppMessage.eh);
189
189
  }
190
- s.className = s.className.replace(Tt, xt);
190
+ s.className = s.className.replace(Et, Ht);
191
191
  }
192
192
  return this.animateOut || !1;
193
193
  }
@@ -196,7 +196,7 @@ export default class InAppMessage {
196
196
  if (this.ih) return;
197
197
  let i;
198
198
  (this.ih = !0),
199
- (this.Eo = null),
199
+ (this.Bo = null),
200
200
  (i =
201
201
  -1 === t.className.indexOf("ab-in-app-message")
202
202
  ? t.getElementsByClassName("ab-in-app-message")[0]
@@ -211,7 +211,7 @@ export default class InAppMessage {
211
211
  let s = t.closest(".ab-iam-root");
212
212
  null == s && (s = t), s.parentNode && s.parentNode.removeChild(s);
213
213
  }
214
- const i = this.Oo();
214
+ const i = this.Co();
215
215
  if (null != i) {
216
216
  const t = document.getElementById(i);
217
217
  t && t.parentNode && t.parentNode.removeChild(t);
@@ -219,12 +219,12 @@ export default class InAppMessage {
219
219
  null != e && "Safari" === ro.browser && (e.scrollTop = n),
220
220
  s ? s() : this.Ft();
221
221
  };
222
- h ? setTimeout(r, At.gr) : r(), this.$o && this.$o.focus();
222
+ h ? setTimeout(r, kt.gr) : r(), this.$o && this.$o.focus();
223
223
  }
224
- Ko() {
224
+ Eo() {
225
225
  return document.createTextNode(this.message || "");
226
226
  }
227
- Ho(t) {
227
+ Ao(t) {
228
228
  t.setAttribute("alt", this.altImageText || "");
229
229
  }
230
230
  static eh(t) {
@@ -243,18 +243,18 @@ export default class InAppMessage {
243
243
  const s = t.parentNode;
244
244
  this.zo() &&
245
245
  null != s &&
246
- this.orientation !== Ae.LANDSCAPE &&
246
+ this.orientation !== be.LANDSCAPE &&
247
247
  (null != s.classList && s.classList.add(mr.TE),
248
248
  document.body.addEventListener(
249
249
  "touchmove",
250
250
  InAppMessage.eh,
251
- !!wt() && { passive: !1 },
251
+ !!St() && { passive: !1 },
252
252
  )),
253
- (t.className += " " + Tt);
253
+ (t.className += " " + Et);
254
254
  }
255
255
  static rh(t) {
256
256
  if (
257
- t.keyCode === Ce.oh &&
257
+ t.keyCode === le.oh &&
258
258
  !r.er(U.lh) &&
259
259
  document.querySelectorAll(".ab-modal-interactions").length > 0
260
260
  ) {
@@ -262,18 +262,18 @@ export default class InAppMessage {
262
262
  let s = !1;
263
263
  for (const i of t) {
264
264
  let t = null;
265
- St(i) &&
265
+ xt(i) &&
266
266
  i.contentWindow &&
267
267
  (t = i.contentWindow.document.getElementsByClassName(
268
268
  "ab-programmatic-close-button",
269
269
  )[0]),
270
- null != t && (kt(t), (s = !0));
270
+ null != t && (wt(t), (s = !0));
271
271
  }
272
272
  if (!s) {
273
273
  const t = document.querySelectorAll(
274
274
  ".ab-modal-interactions > .ab-close-button",
275
275
  )[0];
276
- null != t && kt(t);
276
+ null != t && wt(t);
277
277
  }
278
278
  }
279
279
  }
@@ -327,15 +327,15 @@ export default class InAppMessage {
327
327
  }
328
328
  }
329
329
  (InAppMessage.mh = ss),
330
- (InAppMessage.SlideFrom = De),
331
- (InAppMessage.ClickAction = Le),
330
+ (InAppMessage.SlideFrom = fe),
331
+ (InAppMessage.ClickAction = ce),
332
332
  (InAppMessage.DismissType = pr),
333
- (InAppMessage.OpenTarget = ut),
334
- (InAppMessage.ImageStyle = qe),
335
- (InAppMessage.Orientation = Ae),
336
- (InAppMessage.TextAlignment = Ee),
337
- (InAppMessage.CropType = Me),
338
- (InAppMessage.dh = dt),
339
- (InAppMessage.gr = At.gr),
340
- (InAppMessage.sE = At.sE),
333
+ (InAppMessage.OpenTarget = dt),
334
+ (InAppMessage.ImageStyle = ue),
335
+ (InAppMessage.Orientation = be),
336
+ (InAppMessage.TextAlignment = pe),
337
+ (InAppMessage.CropType = de),
338
+ (InAppMessage.dh = gt),
339
+ (InAppMessage.gr = kt.gr),
340
+ (InAppMessage.sE = kt.sE),
341
341
  (InAppMessage.bs = cr);
@@ -1,9 +1,9 @@
1
1
  import {
2
- IamCropType as Me,
2
+ IamCropType as de,
3
3
  IamDismissType as pr,
4
4
  IamSerializationKeys as cr,
5
- IamServerTypes as dt,
6
- IamTextAlignment as Ee,
5
+ IamServerTypes as gt,
6
+ IamTextAlignment as pe,
7
7
  } from "../constants.js";
8
8
  import { buttonsFromSerializedInAppMessage as ur } from "../in-app-message-factory.js";
9
9
  import InAppMessage from "./in-app-message.js";
@@ -66,7 +66,7 @@ export default class ModalMessage extends InAppMessage {
66
66
  w,
67
67
  y,
68
68
  S,
69
- (b = b || Me.FIT_CENTER),
69
+ (b = b || de.FIT_CENTER),
70
70
  void 0,
71
71
  k,
72
72
  q,
@@ -74,12 +74,12 @@ export default class ModalMessage extends InAppMessage {
74
74
  B,
75
75
  C,
76
76
  ),
77
- (this.Go = Ee.CENTER);
77
+ (this.qo = pe.CENTER);
78
78
  }
79
79
  qt() {
80
- return super.qt(dt.tE);
80
+ return super.qt(gt.tE);
81
81
  }
82
- static da(r) {
82
+ static ua(r) {
83
83
  return new ModalMessage(
84
84
  r[cr.UE],
85
85
  r[cr.cE],
@@ -1,11 +1,11 @@
1
1
  import InAppMessage from "./in-app-message.js";
2
- import { DOMUtils as Mt } from "../../util/dom-utils.js";
2
+ import { DOMUtils as zt } from "../../util/dom-utils.js";
3
3
  import {
4
4
  IamColors as ss,
5
5
  IamSerializationKeys as cr,
6
- IamServerTypes as dt,
7
- IamSlideFrom as De,
8
- IamTextAlignment as Ee,
6
+ IamServerTypes as gt,
7
+ IamSlideFrom as fe,
8
+ IamTextAlignment as pe,
9
9
  } from "../constants.js";
10
10
  export default class SlideUpMessage extends InAppMessage {
11
11
  constructor(
@@ -38,7 +38,7 @@ export default class SlideUpMessage extends InAppMessage {
38
38
  (v = v || ss.SE),
39
39
  super(
40
40
  t,
41
- (s = s || Ee.START),
41
+ (s = s || pe.START),
42
42
  e,
43
43
  o,
44
44
  i,
@@ -70,27 +70,27 @@ export default class SlideUpMessage extends InAppMessage {
70
70
  b,
71
71
  z,
72
72
  ),
73
- (this.Go = Ee.START);
73
+ (this.qo = pe.START);
74
74
  }
75
75
  zo() {
76
76
  return !1;
77
77
  }
78
- Ko() {
78
+ Eo() {
79
79
  const t = document.createElement("span");
80
80
  return t.appendChild(document.createTextNode(this.message || "")), t;
81
81
  }
82
82
  nh(t) {
83
83
  const s = t.getElementsByClassName("ab-in-app-message")[0];
84
- Mt.td(s, !0, !0) ||
85
- (this.slideFrom === De.TOP
84
+ zt.td(s, !0, !0) ||
85
+ (this.slideFrom === fe.TOP
86
86
  ? (s.style.top = "0px")
87
87
  : (s.style.bottom = "0px")),
88
88
  super.nh(t);
89
89
  }
90
90
  qt() {
91
- return super.qt(dt.RE);
91
+ return super.qt(gt.RE);
92
92
  }
93
- static da(t) {
93
+ static ua(t) {
94
94
  return new SlideUpMessage(
95
95
  t[cr.UE],
96
96
  t[cr.cE],
@@ -1,15 +1,15 @@
1
1
  export default class Jt {
2
2
  constructor(t, s, i, h, l) {
3
3
  (this.triggerId = t),
4
- (this.pa = s),
5
- (this.la = i),
6
- (this.ha = h),
7
- (this.ca = l),
4
+ (this.Zo = s),
5
+ (this.Vo = i),
6
+ (this.ta = h),
7
+ (this.ia = l),
8
8
  (this.triggerId = t),
9
- (this.pa = s),
10
- (this.la = i),
11
- (this.ha = h),
12
- (this.ca = l);
9
+ (this.Zo = s),
10
+ (this.Vo = i),
11
+ (this.ta = h),
12
+ (this.ia = l);
13
13
  }
14
14
  static fromJson(t, s, i, h, l) {
15
15
  return null == t || null == t.trigger_id
@@ -1,10 +1,10 @@
1
1
  import r from "../managers/braze-instance.js";
2
- import je from "./in-app-message-manager-factory.js";
2
+ import se from "./in-app-message-manager-factory.js";
3
3
  export function subscribeToInAppMessage(n) {
4
4
  if (r.rr())
5
5
  return "function" != typeof n
6
6
  ? null
7
- : je.ra().Gn(function (r) {
7
+ : se.ra().En(function (r) {
8
8
  return n(r[0]), r.slice(1);
9
9
  });
10
10
  }
@@ -1,4 +1,4 @@
1
- import je from "../in-app-message-manager-factory.js";
1
+ import se from "../in-app-message-manager-factory.js";
2
2
  import r from "../../managers/braze-instance.js";
3
3
  import { setupInAppMessageUI as rs } from "../../ui/js/index.js";
4
4
  import { showInAppMessage } from "./show-in-app-message.js";
@@ -6,10 +6,10 @@ import { subscribeToInAppMessage } from "../subscribe-to-in-app-message.js";
6
6
  export function automaticallyShowInAppMessages() {
7
7
  if (!r.rr()) return;
8
8
  rs();
9
- const s = je.ra();
10
- if (null == s.Nn()) {
9
+ const s = se.ra();
10
+ if (null == s.Gn()) {
11
11
  const r = subscribeToInAppMessage((s) => showInAppMessage(s));
12
- s.Fn(r);
12
+ s.Nn(r);
13
13
  }
14
- return s.Nn();
14
+ return s.Gn();
15
15
  }