@braze/web-sdk 5.8.0 → 5.8.1

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 (133) hide show
  1. package/index.d.ts +1 -1
  2. package/package.json +1 -1
  3. package/shared-lib/encoding-utils.js +1 -1
  4. package/shared-lib/event-types.js +22 -22
  5. package/shared-lib/guid.js +1 -1
  6. package/shared-lib/indexed-db-adapter.js +18 -18
  7. package/shared-lib/logger.js +2 -2
  8. package/shared-lib/supported-options.js +16 -16
  9. package/src/Banner/banner-provider.js +79 -79
  10. package/src/Banner/banner.js +9 -9
  11. package/src/Banner/display/banner-to-html.js +2 -2
  12. package/src/Banner/get-all-banners.js +2 -2
  13. package/src/Banner/get-banner.js +2 -2
  14. package/src/Banner/log-banner-click.js +2 -2
  15. package/src/Banner/log-banner-impressions.js +4 -4
  16. package/src/Banner/request-banners-refresh.js +1 -1
  17. package/src/Banner/subscribe-to-banners-updates.js +5 -5
  18. package/src/Card/card-manager.js +35 -35
  19. package/src/Card/display/card-display.js +8 -8
  20. package/src/Card/log-card-click.js +1 -1
  21. package/src/Card/log-card-dismissal.js +1 -1
  22. package/src/Card/log-card-impressions.js +1 -1
  23. package/src/Card/models/captioned-image.js +21 -21
  24. package/src/Card/models/card.js +92 -92
  25. package/src/Card/models/classic-card.js +21 -21
  26. package/src/Card/models/control-card.js +11 -11
  27. package/src/Card/models/image-only.js +19 -19
  28. package/src/Card/util/card-factory.js +39 -39
  29. package/src/ContentCards/content-cards-provider.js +142 -142
  30. package/src/ContentCards/get-cached-content-cards.js +1 -1
  31. package/src/ContentCards/request-content-cards-refresh.js +1 -1
  32. package/src/ContentCards/subscribe-to-content-cards-updates.js +4 -4
  33. package/src/ContentCards/ui/show-content-cards.js +3 -3
  34. package/src/Core/disable-sdk.js +6 -6
  35. package/src/Core/enable-sdk.js +5 -5
  36. package/src/Core/get-device-id.js +2 -2
  37. package/src/Core/handle-braze-action.js +2 -2
  38. package/src/Core/is-disabled.js +2 -2
  39. package/src/Core/is-initialized.js +1 -1
  40. package/src/Core/log-custom-event.js +5 -5
  41. package/src/Core/log-purchase.js +4 -4
  42. package/src/Core/open-session.js +5 -5
  43. package/src/Core/wipe-data.js +2 -2
  44. package/src/FeatureFlags/feature-flag-factory.js +10 -10
  45. package/src/FeatureFlags/feature-flag.js +15 -15
  46. package/src/FeatureFlags/feature-flags-provider.js +61 -61
  47. package/src/FeatureFlags/get-all-feature-flags.js +2 -2
  48. package/src/FeatureFlags/get-feature-flag.js +2 -2
  49. package/src/FeatureFlags/log-feature-flag-impression.js +4 -4
  50. package/src/FeatureFlags/subscribe-to-feature-flags-updates.js +2 -2
  51. package/src/Feed/feed-provider.js +41 -41
  52. package/src/Feed/get-cached-feed.js +1 -1
  53. package/src/Feed/log-feed-displayed.js +1 -1
  54. package/src/Feed/request-feed-refresh.js +1 -1
  55. package/src/Feed/subscribe-to-feed-updates.js +1 -1
  56. package/src/Feed/ui/show-feed.js +1 -1
  57. package/src/InAppMessage/defer-in-app-message.js +1 -1
  58. package/src/InAppMessage/display/html-message-to-html.js +6 -6
  59. package/src/InAppMessage/display/in-app-message-to-html.js +20 -20
  60. package/src/InAppMessage/display/modal-utils.js +4 -4
  61. package/src/InAppMessage/in-app-message-factory.js +7 -7
  62. package/src/InAppMessage/in-app-message-manager.js +89 -89
  63. package/src/InAppMessage/log-in-app-message-button-click.js +6 -6
  64. package/src/InAppMessage/log-in-app-message-click.js +5 -5
  65. package/src/InAppMessage/log-in-app-message-html-click.js +7 -7
  66. package/src/InAppMessage/log-in-app-message-impression.js +2 -2
  67. package/src/InAppMessage/models/control-message.js +5 -5
  68. package/src/InAppMessage/models/full-screen-message.js +34 -34
  69. package/src/InAppMessage/models/html-message.js +20 -20
  70. package/src/InAppMessage/models/in-app-message-button.js +8 -8
  71. package/src/InAppMessage/models/in-app-message.js +80 -80
  72. package/src/InAppMessage/models/modal-message.js +33 -33
  73. package/src/InAppMessage/models/slide-up-message.js +29 -29
  74. package/src/InAppMessage/models/templated-in-app-message.js +8 -8
  75. package/src/InAppMessage/subscribe-to-in-app-message.js +1 -1
  76. package/src/InAppMessage/ui/automatically-show-in-app-messages.js +3 -3
  77. package/src/InAppMessage/ui/show-in-app-message.js +12 -12
  78. package/src/Push/push-manager-factory.js +1 -1
  79. package/src/Push/push-manager.js +94 -94
  80. package/src/Push/utils/push-utils.js +4 -4
  81. package/src/User/user-manager.js +17 -17
  82. package/src/User/user.js +38 -38
  83. package/src/common/base-feed.js +1 -1
  84. package/src/common/base-provider.js +1 -1
  85. package/src/common/event-logger.js +5 -5
  86. package/src/common/feed-display.js +6 -6
  87. package/src/l10n/l10n-manager-factory.js +1 -1
  88. package/src/l10n/l10n-manager.js +1 -1
  89. package/src/managers/auth-manager.js +31 -31
  90. package/src/managers/braze-instance.js +125 -125
  91. package/src/managers/device-manager.js +24 -24
  92. package/src/managers/network-manager.js +149 -149
  93. package/src/managers/server-config-manager.js +84 -84
  94. package/src/managers/session-manager.js +27 -27
  95. package/src/managers/storage-manager-factory.js +12 -12
  96. package/src/managers/storage-manager.js +83 -83
  97. package/src/managers/subscription-manager.js +10 -10
  98. package/src/managers/utils.js +4 -4
  99. package/src/models/backend-errors.js +5 -5
  100. package/src/models/braze-event.js +4 -4
  101. package/src/models/device.js +2 -2
  102. package/src/models/identifier.js +3 -3
  103. package/src/models/push-token.js +8 -8
  104. package/src/models/request-result.js +3 -3
  105. package/src/models/server-config.js +31 -31
  106. package/src/request-controller.js +148 -148
  107. package/src/triggers/models/custom-event-data.js +1 -1
  108. package/src/triggers/models/custom-event-property-data.js +2 -2
  109. package/src/triggers/models/filter-set.js +4 -4
  110. package/src/triggers/models/filter.js +2 -2
  111. package/src/triggers/models/in-app-message-click-data.js +1 -1
  112. package/src/triggers/models/purchase-data.js +1 -1
  113. package/src/triggers/models/purchase-property-data.js +2 -2
  114. package/src/triggers/models/push-click-data.js +1 -1
  115. package/src/triggers/models/trigger-condition.js +32 -32
  116. package/src/triggers/models/trigger-events.js +2 -2
  117. package/src/triggers/models/trigger.js +11 -11
  118. package/src/triggers/triggers-provider-factory.js +2 -2
  119. package/src/triggers/triggers-provider.js +72 -72
  120. package/src/ui/js/attach-css.js +1 -1
  121. package/src/ui/js/load-font-awesome.js +1 -1
  122. package/src/util/base-device-parser.js +1 -1
  123. package/src/util/braze-actions.js +4 -4
  124. package/src/util/browser-detector.js +5 -5
  125. package/src/util/client-hints-parser.js +1 -1
  126. package/src/util/component-utils.js +1 -1
  127. package/src/util/dom-utils.js +4 -4
  128. package/src/util/html-display-utils.js +6 -6
  129. package/src/util/key-codes.js +1 -1
  130. package/src/util/net.js +6 -6
  131. package/src/util/request-header-utils.js +21 -21
  132. package/src/util/user-agent-parser.js +1 -1
  133. package/src/util/window-utils.js +1 -1
@@ -21,51 +21,51 @@ import {
21
21
  } from "../util/braze-actions.js";
22
22
  import vt from "../Push/utils/push-utils.js";
23
23
  import h from "../util/request-header-utils.js";
24
- import { STORAGE_KEYS as t } from "../managers/storage-manager.js";
24
+ import { STORAGE_KEYS as s } from "../managers/storage-manager.js";
25
25
  import { FullScreenMessage, ModalMessage, SlideUpMessage } from "./index.js";
26
26
  export default class ea {
27
27
  constructor(t, e, s, i) {
28
28
  (this.S = t),
29
29
  (this.T = e),
30
30
  (this.C = s),
31
- (this.As = i),
31
+ (this.Cs = i),
32
32
  (this.S = t),
33
33
  (this.T = e),
34
34
  (this.C = s),
35
- (this.As = i),
36
- (this._i = new u()),
37
- r.N(this._i),
38
- (this.Pi = 1e3),
39
- (this.$i = 6e4),
40
- (this.Oi = null),
41
- (this.Xi = null),
42
- (this.Qi = null);
35
+ (this.Cs = i),
36
+ (this.Mi = new u()),
37
+ r.N(this.Mi),
38
+ (this._i = 1e3),
39
+ (this.Pi = 6e4),
40
+ (this.Gi = null),
41
+ (this.$i = null),
42
+ (this.Oi = null);
43
43
  }
44
- Vi() {
45
- return this._i;
44
+ Xi() {
45
+ return this.Mi;
46
46
  }
47
- Wi(t) {
48
- return this._i.Fs(t);
47
+ Hi(t) {
48
+ return this.Mi.Ft(t);
49
49
  }
50
- Yi() {
51
- return this.Oi;
50
+ Ji() {
51
+ return this.Gi;
52
52
  }
53
- Zi(t) {
54
- this.Oi = t;
53
+ Ki(t) {
54
+ this.Gi = t;
55
55
  }
56
- cs(t, e, s, i) {
56
+ ut(t, e, s, i) {
57
57
  const r = new E();
58
58
  let n;
59
- if (e === d.Ir || t instanceof ControlMessage) {
60
- if (!t.wt())
59
+ if (e === d.Li || t instanceof ControlMessage) {
60
+ if (!t.ts())
61
61
  return (
62
62
  N.info(
63
63
  "This in-app message has already received an impression. Ignoring analytics event.",
64
64
  ),
65
65
  r
66
66
  );
67
- } else if (e === d.Mr || (t instanceof HtmlMessage && e === d.Tr)) {
68
- if (!t.rt(i))
67
+ } else if (e === d.Qi || (t instanceof HtmlMessage && e === d.Vi)) {
68
+ if (!t.$t(i))
69
69
  return (
70
70
  N.info(
71
71
  "This in-app message has already received a click. Ignoring analytics event.",
@@ -77,49 +77,49 @@ export default class ea {
77
77
  (n =
78
78
  t instanceof ControlMessage
79
79
  ? { trigger_ids: [t.triggerId] }
80
- : this.wr(t)),
80
+ : this.Wi(t)),
81
81
  null == n
82
82
  ? r
83
83
  : (t.messageExtras && (n.message_extras = t.messageExtras),
84
84
  null != s && (n.bid = s),
85
- c.cs(e, n))
85
+ c.ut(e, n))
86
86
  );
87
87
  }
88
- Br(t, e) {
88
+ Yi(t, e) {
89
89
  const s = new E();
90
- if (!t.rt())
90
+ if (!t.$t())
91
91
  return (
92
92
  N.info(
93
93
  "This in-app message button has already received a click. Ignoring analytics event.",
94
94
  ),
95
95
  s
96
96
  );
97
- const i = this.wr(e);
97
+ const i = this.Wi(e);
98
98
  return null == i
99
99
  ? s
100
- : t.id === InAppMessageButton._r
100
+ : t.id === InAppMessageButton.Zi
101
101
  ? (N.info(
102
102
  "This in-app message button does not have a tracking id. Not logging event to Braze servers.",
103
103
  ),
104
104
  s)
105
- : (null != t.id && (i.bid = t.id), c.cs(d.Tr, i));
105
+ : (null != t.id && (i.bid = t.id), c.ut(d.Vi, i));
106
106
  }
107
- qr(t) {
107
+ Ir(t) {
108
108
  const e = t.messageFields;
109
109
  return (null != e && e.is_push_primer) || !1;
110
110
  }
111
- Er(t) {
111
+ Mr(t) {
112
112
  if (!(t instanceof InAppMessage)) return;
113
113
  const e = (t) => {
114
114
  if (!t) return;
115
115
  const e = eo(t);
116
116
  return ft(e)
117
- ? dt(jt.Gr, "In-App Message")
118
- : gt(e) && !vt.Nr()
119
- ? dt(jt.$r, "In-App Message")
117
+ ? dt(jt.Tr, "In-App Message")
118
+ : gt(e) && !vt.wr()
119
+ ? dt(jt.Br, "In-App Message")
120
120
  : void 0;
121
121
  };
122
- if (this.qr(t) && !vt.Nr())
122
+ if (this.Ir(t) && !vt.wr())
123
123
  return "In-App Message contains a push prompt, but is not eligible for a push prompt. Ignoring.";
124
124
  const s = t.buttons || [];
125
125
  let i;
@@ -137,29 +137,29 @@ export default class ea {
137
137
  ? e(t.uri)
138
138
  : void 0;
139
139
  }
140
- Cr(t, e) {
141
- e !== this.Qi && this.Or(), (this.Xi = t), (this.Qi = e);
140
+ _r(t, e) {
141
+ e !== this.Oi && this.qr(), (this.$i = t), (this.Oi = e);
142
142
  }
143
- Or() {
144
- null != this.Xi &&
145
- (clearTimeout(this.Xi), (this.Xi = null), (this.Qi = null));
143
+ qr() {
144
+ null != this.$i &&
145
+ (clearTimeout(this.$i), (this.$i = null), (this.Oi = null));
146
146
  }
147
- Xr(t, e, s, i) {
147
+ Er(t, e, s, i) {
148
148
  const r = this.S;
149
149
  if (!r) return;
150
- this.Qi && t.triggerId !== this.Qi && (this.Or(), h.zi(this.C, h.O.Hr));
151
- const n = r.Jr(!1, !1),
150
+ this.Oi && t.triggerId !== this.Oi && (this.qr(), h.wi(this.C, h.O.Gr));
151
+ const n = r.Nr(!1, !1),
152
152
  o = r.H(n);
153
153
  (o.template = { trigger_id: t.triggerId, trigger_event_type: e }),
154
- null != s && (o.template.data = s.Kr());
155
- const u = r.J(o, h.O.Hr);
154
+ null != s && (o.template.data = s.$r());
155
+ const u = r.J(o, h.O.Gr);
156
156
  r.V(
157
157
  o,
158
158
  (r = -1) => {
159
159
  const n = this.S;
160
160
  if (!n) return;
161
161
  const p = new Date().valueOf();
162
- h.W(this.C, h.O.Hr, p),
162
+ h.W(this.C, h.O.Gr, p),
163
163
  -1 !== r && u.push(["X-Braze-Req-Tokens-Remaining", r.toString()]);
164
164
  let m,
165
165
  c,
@@ -168,51 +168,51 @@ export default class ea {
168
168
  url: `${n.Z()}/template/`,
169
169
  data: o,
170
170
  headers: u,
171
- ss: (e) => {
172
- if (!n.ts(o, e, u))
173
- return void ("function" == typeof t.Lr && t.Lr());
174
- if ((n.es(), null == e || null == e.templated_message)) return;
171
+ tt: (e) => {
172
+ if (!n.st(o, e, u))
173
+ return void ("function" == typeof t.Cr && t.Cr());
174
+ if ((n.it(), null == e || null == e.templated_message)) return;
175
175
  const s = e.templated_message;
176
- if (s.type !== pt.Ur.Qr) return;
176
+ if (s.type !== pt.Xr.Or) return;
177
177
  const i = ut(s.data);
178
178
  if (null == i) return;
179
- const r = this.Er(i);
179
+ const r = this.Mr(i);
180
180
  if (r)
181
- return N.error(r), void ("function" == typeof t.Lr && t.Lr());
182
- "function" == typeof t.Vr && t.Vr(i);
181
+ return N.error(r), void ("function" == typeof t.Cr && t.Cr());
182
+ "function" == typeof t.Hr && t.Hr(i);
183
183
  },
184
184
  error: (e) => {
185
185
  (g = !0),
186
186
  (m = e),
187
187
  (c = `getting user personalization for message ${t.triggerId}.`);
188
188
  },
189
- rs: (r, o) => {
190
- if (new Date().valueOf() - t.Wr < t.Yr) {
189
+ nt: (r, o) => {
190
+ if (new Date().valueOf() - t.Jr < t.Kr) {
191
191
  let r = 0;
192
192
  if (g) {
193
- const e = Math.min(t.Yr, this.$i),
194
- s = this.Pi;
193
+ const e = Math.min(t.Kr, this.Pi),
194
+ s = this._i;
195
195
  null == i && (i = s), (r = Math.min(e, a(s, 3 * i)));
196
196
  }
197
- n.os(
197
+ n.rt(
198
198
  o,
199
199
  () => {
200
- this.Xr(t, e, s, r);
200
+ this.Er(t, e, s, r);
201
201
  },
202
- h.O.Hr,
203
- (e) => this.Cr(e, t.triggerId),
204
- () => this.Or(),
202
+ h.O.Gr,
203
+ (e) => this._r(e, t.triggerId),
204
+ () => this.qr(),
205
205
  r,
206
206
  );
207
207
  }
208
- g && n.ns(m, c);
208
+ g && n.et(m, c);
209
209
  },
210
210
  });
211
211
  },
212
- h.O.Hr,
212
+ h.O.Gr,
213
213
  );
214
214
  }
215
- wr(t) {
215
+ Wi(t) {
216
216
  if (null == t.triggerId)
217
217
  return (
218
218
  N.info(
@@ -223,40 +223,40 @@ export default class ea {
223
223
  const e = {};
224
224
  return null != t.triggerId && (e.trigger_ids = [t.triggerId]), e;
225
225
  }
226
- Oe(e) {
226
+ sn(t) {
227
227
  return (
228
228
  !!this.C &&
229
229
  !(
230
- !(e && e instanceof InAppMessage && e.constructor !== InAppMessage) ||
231
- e instanceof ControlMessage
230
+ !(t && t instanceof InAppMessage && t.constructor !== InAppMessage) ||
231
+ t instanceof ControlMessage
232
232
  ) &&
233
- this.C.Bs(t.gs.Zr, e.bs())
233
+ this.C.Bt(s.gt.Lr, t.bt())
234
234
  );
235
235
  }
236
236
  Ar() {
237
237
  if (!this.C) return null;
238
- const e = this.C.vs(t.gs.Zr);
239
- if (!e) return null;
240
- let s;
241
- switch (e.type) {
242
- case InAppMessage.Ze.sn:
243
- s = FullScreenMessage.on(e);
238
+ const t = this.C.ft(s.gt.Lr);
239
+ if (!t) return null;
240
+ let e;
241
+ switch (t.type) {
242
+ case InAppMessage.po.Qr:
243
+ e = FullScreenMessage.Ur(t);
244
244
  break;
245
- case InAppMessage.Ze.an:
246
- case InAppMessage.Ze.Ye:
247
- case InAppMessage.Ze.Ao:
248
- s = HtmlMessage.on(e);
245
+ case InAppMessage.po.Vr:
246
+ case InAppMessage.po.fo:
247
+ case InAppMessage.po.Fo:
248
+ e = HtmlMessage.Ur(t);
249
249
  break;
250
- case InAppMessage.Ze.ln:
251
- case InAppMessage.Ze.Io:
252
- s = ModalMessage.on(e);
250
+ case InAppMessage.po.Wr:
251
+ case InAppMessage.po.Ao:
252
+ e = ModalMessage.Ur(t);
253
253
  break;
254
- case InAppMessage.Ze.un:
255
- s = SlideUpMessage.on(e);
254
+ case InAppMessage.po.Yr:
255
+ e = SlideUpMessage.Ur(t);
256
256
  }
257
- return s && this.pn(), s;
257
+ return e && this.Zr(), e;
258
258
  }
259
- pn() {
260
- this.C && this.C.Es(t.gs.Zr);
259
+ Zr() {
260
+ this.C && this.C.Ut(s.gt.Lr);
261
261
  }
262
262
  }
@@ -12,16 +12,16 @@ export function logInAppMessageButtonClick(o, t) {
12
12
  if (!(o instanceof InAppMessageButton))
13
13
  return N.error("button must be an InAppMessageButton object"), !1;
14
14
  if (!(t instanceof InAppMessage)) return N.error(sr), !1;
15
- const s = se.ea().Br(o, t);
16
- if (s.ss)
17
- for (let r = 0; r < s.fe.length; r++)
18
- ot.m().ue(
15
+ const s = se.ea().Yi(o, t);
16
+ if (s.tt)
17
+ for (let r = 0; r < s.$e.length; r++)
18
+ ot.m().Ce(
19
19
  et.Bo,
20
20
  [
21
21
  t.triggerId,
22
22
  null === (e = o.id) || void 0 === e ? void 0 : e.toString(),
23
23
  ],
24
- s.fe[r],
24
+ s.$e[r],
25
25
  );
26
- return s.ss;
26
+ return s.tt;
27
27
  }
@@ -9,11 +9,11 @@ import { TriggersProviderFactory as ot } from "../triggers/triggers-provider-fac
9
9
  export function logInAppMessageClick(o) {
10
10
  if (!r.rr()) return !1;
11
11
  if (!(o instanceof InAppMessage)) return N.error(sr), !1;
12
- const s = se.ea().cs(o, d.Mr);
12
+ const s = se.ea().ut(o, d.Qi);
13
13
  if (s) {
14
- o.zo() || logInAppMessageImpression(o);
15
- for (let r = 0; r < s.fe.length; r++)
16
- ot.m().ue(et.Bo, [o.triggerId], s.fe[r]);
14
+ o.Do() || logInAppMessageImpression(o);
15
+ for (let r = 0; r < s.$e.length; r++)
16
+ ot.m().Ce(et.Bo, [o.triggerId], s.$e[r]);
17
17
  }
18
- return s.ss;
18
+ return s.tt;
19
19
  }
@@ -13,11 +13,11 @@ export function logInAppMessageHtmlClick(e, t, s) {
13
13
  ),
14
14
  !1
15
15
  );
16
- let o = d.Mr;
17
- null != t && (o = d.Tr);
18
- const m = se.ea().cs(e, o, t, s);
19
- if (m.ss)
20
- for (let r = 0; r < m.fe.length; r++)
21
- ot.m().ue(et.Bo, [e.triggerId, t], m.fe[r]);
22
- return m.ss;
16
+ let o = d.Qi;
17
+ null != t && (o = d.Vi);
18
+ const m = se.ea().ut(e, o, t, s);
19
+ if (m.tt)
20
+ for (let r = 0; r < m.$e.length; r++)
21
+ ot.m().Ce(et.Bo, [e.triggerId, t], m.$e[r]);
22
+ return m.tt;
23
23
  }
@@ -8,6 +8,6 @@ export function logInAppMessageImpression(o) {
8
8
  if (!r.rr()) return !1;
9
9
  if (!(o instanceof InAppMessage || o instanceof ControlMessage))
10
10
  return N.error(sr), !1;
11
- const s = o instanceof ControlMessage ? d.qo : d.Ir;
12
- return se.ea().cs(o, s).ss;
11
+ const s = o instanceof ControlMessage ? d.Eo : d.Li;
12
+ return se.ea().ut(o, s).tt;
13
13
  }
@@ -6,15 +6,15 @@ export default class ControlMessage {
6
6
  (this.messageExtras = t),
7
7
  (this.extras = {}),
8
8
  (this.isControl = !0),
9
- (this.st = !1);
9
+ (this.Ht = !1);
10
10
  }
11
11
  static fromJson(s) {
12
12
  return new ControlMessage(s.trigger_id, s.message_extras);
13
13
  }
14
- wt() {
15
- return !this.st && ((this.st = !0), !0);
14
+ ts() {
15
+ return !this.Ht && ((this.Ht = !0), !0);
16
16
  }
17
- zo() {
18
- return this.st;
17
+ Do() {
18
+ return this.Ht;
19
19
  }
20
20
  }
@@ -66,43 +66,43 @@ export default class FullScreenMessage extends InAppMessage {
66
66
  A,
67
67
  B,
68
68
  ),
69
- (this.ho = InAppMessage.TextAlignment.CENTER);
69
+ (this.Co = InAppMessage.TextAlignment.CENTER);
70
70
  }
71
- bs() {
72
- return super.bs(FullScreenMessage.Dt);
71
+ bt() {
72
+ return super.bt(FullScreenMessage.ds);
73
73
  }
74
- static on(e) {
74
+ static Ur(e) {
75
75
  return new FullScreenMessage(
76
- e[InAppMessage.qt.ra],
77
- e[InAppMessage.qt.sa],
78
- e[InAppMessage.qt.St],
79
- e[InAppMessage.qt.ta],
80
- e[InAppMessage.qt.ia],
81
- e[InAppMessage.qt.URI],
82
- e[InAppMessage.qt.oa],
83
- e[InAppMessage.qt.pa],
84
- e[InAppMessage.qt.ma],
85
- e[InAppMessage.qt.na],
86
- e[InAppMessage.qt.Jt],
87
- e[InAppMessage.qt.ua],
88
- e[InAppMessage.qt.ca],
89
- e[InAppMessage.qt.fa],
90
- e[InAppMessage.qt.da],
91
- e[InAppMessage.qt.la],
92
- e[InAppMessage.qt.ga],
93
- e[InAppMessage.qt.ja],
94
- e[InAppMessage.qt.xa],
95
- e[InAppMessage.qt.za],
96
- e[InAppMessage.qt.ha],
97
- e[InAppMessage.qt.va],
98
- e[InAppMessage.qt.wa],
99
- pe(e[InAppMessage.qt.ya]),
100
- e[InAppMessage.qt.Sa],
101
- e[InAppMessage.qt.ba],
102
- e[InAppMessage.qt.ka],
103
- e[InAppMessage.qt.CSS],
104
- e[InAppMessage.qt.qa],
76
+ e[InAppMessage.es.ra],
77
+ e[InAppMessage.es.sa],
78
+ e[InAppMessage.es.vs],
79
+ e[InAppMessage.es.ta],
80
+ e[InAppMessage.es.ia],
81
+ e[InAppMessage.es.URI],
82
+ e[InAppMessage.es.oa],
83
+ e[InAppMessage.es.pa],
84
+ e[InAppMessage.es.ma],
85
+ e[InAppMessage.es.na],
86
+ e[InAppMessage.es.fs],
87
+ e[InAppMessage.es.ua],
88
+ e[InAppMessage.es.ca],
89
+ e[InAppMessage.es.fa],
90
+ e[InAppMessage.es.da],
91
+ e[InAppMessage.es.la],
92
+ e[InAppMessage.es.ga],
93
+ e[InAppMessage.es.ja],
94
+ e[InAppMessage.es.xa],
95
+ e[InAppMessage.es.za],
96
+ e[InAppMessage.es.ha],
97
+ e[InAppMessage.es.va],
98
+ e[InAppMessage.es.wa],
99
+ pe(e[InAppMessage.es.ya]),
100
+ e[InAppMessage.es.Sa],
101
+ e[InAppMessage.es.ba],
102
+ e[InAppMessage.es.ka],
103
+ e[InAppMessage.es.CSS],
104
+ e[InAppMessage.es.qa],
105
105
  );
106
106
  }
107
107
  }
108
- FullScreenMessage.Dt = InAppMessage.Ze.sn;
108
+ FullScreenMessage.ds = InAppMessage.po.Qr;
@@ -39,32 +39,32 @@ export default class HtmlMessage extends InAppMessage {
39
39
  Po() {
40
40
  return !1;
41
41
  }
42
- rt(i) {
43
- if (this.We === InAppMessage.Ze.an) {
42
+ $t(i) {
43
+ if (this.uo === InAppMessage.po.Vr) {
44
44
  if (this.So) return !1;
45
45
  this.So = !0;
46
46
  }
47
- return this._t.X(i), !0;
47
+ return this.ti.X(i), !0;
48
48
  }
49
- bs() {
50
- const i = super.bs(HtmlMessage.Dt);
51
- return (i[InAppMessage.qt.Do] = this.messageFields), i;
49
+ bt() {
50
+ const i = super.bt(HtmlMessage.ds);
51
+ return (i[InAppMessage.es.Go] = this.messageFields), i;
52
52
  }
53
- static on(i) {
53
+ static Ur(i) {
54
54
  return new HtmlMessage(
55
- i[InAppMessage.qt.ra],
56
- i[InAppMessage.qt.St],
57
- i[InAppMessage.qt.ta],
58
- i[InAppMessage.qt.pa],
59
- i[InAppMessage.qt.ma],
60
- i[InAppMessage.qt.ja],
61
- i[InAppMessage.qt.xa],
62
- i[InAppMessage.qt.wa],
63
- i[InAppMessage.qt.ka],
64
- i[InAppMessage.qt.CSS],
65
- i[InAppMessage.qt.Do],
66
- i[InAppMessage.qt.qa],
55
+ i[InAppMessage.es.ra],
56
+ i[InAppMessage.es.vs],
57
+ i[InAppMessage.es.ta],
58
+ i[InAppMessage.es.pa],
59
+ i[InAppMessage.es.ma],
60
+ i[InAppMessage.es.ja],
61
+ i[InAppMessage.es.xa],
62
+ i[InAppMessage.es.wa],
63
+ i[InAppMessage.es.ka],
64
+ i[InAppMessage.es.CSS],
65
+ i[InAppMessage.es.Go],
66
+ i[InAppMessage.es.qa],
67
67
  );
68
68
  }
69
69
  }
70
- HtmlMessage.Dt = InAppMessage.Ze.an;
70
+ HtmlMessage.ds = InAppMessage.po.Vr;
@@ -15,22 +15,22 @@ 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._r),
18
+ null == n && (n = InAppMessageButton.Zi),
19
19
  (this.id = n),
20
20
  (this.So = !1),
21
- (this._t = new u());
21
+ (this.ti = new u());
22
22
  }
23
23
  subscribeToClickedEvent(s) {
24
- return this._t.Fs(s);
24
+ return this.ti.Ft(s);
25
25
  }
26
26
  removeSubscription(s) {
27
- this._t.removeSubscription(s);
27
+ this.ti.removeSubscription(s);
28
28
  }
29
29
  removeAllSubscriptions() {
30
- this._t.removeAllSubscriptions();
30
+ this.ti.removeAllSubscriptions();
31
31
  }
32
- rt() {
33
- return !this.So && ((this.So = !0), this._t.X(), !0);
32
+ $t() {
33
+ return !this.So && ((this.So = !0), this.ti.X(), !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._r = -1;
47
+ InAppMessageButton.Zi = -1;