@braze/web-sdk 5.6.1 → 5.7.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 (121) hide show
  1. package/README.md +1 -1
  2. package/index.d.ts +14 -4
  3. package/package.json +1 -1
  4. package/shared-lib/encoding-utils.js +1 -1
  5. package/shared-lib/event-types.js +20 -20
  6. package/shared-lib/indexed-db-adapter.js +15 -15
  7. package/shared-lib/logger.js +2 -2
  8. package/shared-lib/supported-options.js +14 -14
  9. package/src/Banner/banner-provider.js +53 -50
  10. package/src/Banner/banner.js +1 -1
  11. package/src/Banner/get-all-banners.js +2 -2
  12. package/src/Banner/get-banner.js +2 -2
  13. package/src/Banner/log-banner-click.js +1 -1
  14. package/src/Banner/log-banner-impressions.js +4 -4
  15. package/src/Banner/request-banners-refresh.js +2 -2
  16. package/src/Banner/subscribe-to-banners-updates.js +5 -5
  17. package/src/Card/card-manager.js +10 -10
  18. package/src/Card/models/captioned-image.js +1 -1
  19. package/src/Card/models/card.js +3 -3
  20. package/src/Card/models/classic-card.js +1 -1
  21. package/src/Card/models/control-card.js +1 -1
  22. package/src/Card/models/image-only.js +1 -1
  23. package/src/ContentCards/content-cards-provider.js +139 -180
  24. package/src/ContentCards/get-cached-content-cards.js +1 -1
  25. package/src/ContentCards/request-content-cards-refresh.js +1 -1
  26. package/src/ContentCards/subscribe-to-content-cards-updates.js +10 -10
  27. package/src/ContentCards/ui/show-content-cards.js +3 -3
  28. package/src/Core/disable-sdk.js +3 -3
  29. package/src/Core/enable-sdk.js +3 -3
  30. package/src/Core/log-custom-event.js +3 -3
  31. package/src/Core/log-purchase.js +1 -1
  32. package/src/Core/open-session.js +6 -6
  33. package/src/Core/wipe-data.js +4 -4
  34. package/src/FeatureFlags/feature-flag.js +1 -1
  35. package/src/FeatureFlags/feature-flags-provider.js +81 -78
  36. package/src/FeatureFlags/get-all-feature-flags.js +2 -2
  37. package/src/FeatureFlags/get-feature-flag.js +2 -2
  38. package/src/FeatureFlags/log-feature-flag-impression.js +4 -4
  39. package/src/FeatureFlags/subscribe-to-feature-flags-updates.js +2 -2
  40. package/src/Feed/feed-provider.js +34 -34
  41. package/src/Feed/get-cached-feed.js +1 -1
  42. package/src/Feed/request-feed-refresh.js +1 -1
  43. package/src/Feed/subscribe-to-feed-updates.js +1 -1
  44. package/src/Feed/ui/show-feed.js +1 -1
  45. package/src/InAppMessage/defer-in-app-message.js +1 -1
  46. package/src/InAppMessage/display/html-message-to-html.js +9 -9
  47. package/src/InAppMessage/display/in-app-message-to-html.js +16 -16
  48. package/src/InAppMessage/display/modal-utils.js +5 -5
  49. package/src/InAppMessage/in-app-message-factory.js +4 -4
  50. package/src/InAppMessage/in-app-message-manager.js +115 -91
  51. package/src/InAppMessage/log-in-app-message-button-click.js +2 -2
  52. package/src/InAppMessage/log-in-app-message-click.js +2 -2
  53. package/src/InAppMessage/log-in-app-message-html-click.js +4 -4
  54. package/src/InAppMessage/log-in-app-message-impression.js +2 -2
  55. package/src/InAppMessage/models/full-screen-message.js +5 -5
  56. package/src/InAppMessage/models/html-message.js +10 -10
  57. package/src/InAppMessage/models/in-app-message-button.js +5 -5
  58. package/src/InAppMessage/models/in-app-message.js +37 -37
  59. package/src/InAppMessage/models/modal-message.js +5 -5
  60. package/src/InAppMessage/models/slide-up-message.js +7 -7
  61. package/src/InAppMessage/models/templated-in-app-message.js +8 -8
  62. package/src/InAppMessage/subscribe-to-in-app-message.js +1 -1
  63. package/src/InAppMessage/ui/automatically-show-in-app-messages.js +3 -3
  64. package/src/InAppMessage/ui/show-in-app-message.js +14 -14
  65. package/src/Push/is-push-blocked.js +2 -2
  66. package/src/Push/is-push-permission-granted.js +2 -2
  67. package/src/Push/is-push-supported.js +2 -2
  68. package/src/Push/push-manager.js +88 -88
  69. package/src/Push/utils/push-utils.js +12 -12
  70. package/src/User/user-manager.js +10 -10
  71. package/src/User/user.js +46 -34
  72. package/src/common/constants.js +1 -1
  73. package/src/common/event-logger.js +3 -3
  74. package/src/common/feed-display.js +10 -10
  75. package/src/l10n/l10n-manager.js +1 -1
  76. package/src/managers/auth-manager.js +10 -10
  77. package/src/managers/braze-instance.js +110 -110
  78. package/src/managers/device-manager.js +17 -17
  79. package/src/managers/network-manager.js +180 -143
  80. package/src/managers/server-config-manager.js +65 -65
  81. package/src/managers/session-manager.js +22 -22
  82. package/src/managers/storage-manager-factory.js +9 -9
  83. package/src/managers/storage-manager.js +134 -134
  84. package/src/managers/subscription-manager.js +8 -8
  85. package/src/managers/utils.js +1 -1
  86. package/src/models/backend-errors.js +5 -5
  87. package/src/models/braze-event.js +8 -8
  88. package/src/models/device.js +2 -2
  89. package/src/models/identifier.js +10 -10
  90. package/src/models/push-token.js +8 -8
  91. package/src/models/server-config.js +31 -31
  92. package/src/request-controller.js +158 -146
  93. package/src/triggers/models/custom-event-data.js +5 -5
  94. package/src/triggers/models/custom-event-property-data.js +6 -6
  95. package/src/triggers/models/filter-set.js +6 -6
  96. package/src/triggers/models/filter.js +16 -16
  97. package/src/triggers/models/in-app-message-click-data.js +2 -2
  98. package/src/triggers/models/purchase-data.js +2 -2
  99. package/src/triggers/models/purchase-property-data.js +4 -4
  100. package/src/triggers/models/push-click-data.js +2 -2
  101. package/src/triggers/models/trigger-condition.js +36 -36
  102. package/src/triggers/models/trigger-events.js +1 -1
  103. package/src/triggers/models/trigger.js +11 -11
  104. package/src/triggers/triggers-provider-factory.js +2 -2
  105. package/src/triggers/triggers-provider.js +37 -37
  106. package/src/ui/js/attach-css.js +1 -1
  107. package/src/ui/js/iam-css.js +1 -1
  108. package/src/ui/js/load-font-awesome.js +1 -1
  109. package/src/util/base-device-parser.js +1 -1
  110. package/src/util/braze-actions.js +4 -4
  111. package/src/util/browser-detector.js +6 -6
  112. package/src/util/client-hints-parser.js +1 -1
  113. package/src/util/component-utils.js +2 -2
  114. package/src/util/dom-utils.js +3 -3
  115. package/src/util/html-display-utils.js +1 -0
  116. package/src/util/key-codes.js +1 -1
  117. package/src/util/net.js +22 -23
  118. package/src/util/request-header-utils.js +23 -20
  119. package/src/util/user-agent-parser.js +1 -1
  120. package/src/util/validation-utils.js +14 -14
  121. package/src/util/window-utils.js +2 -2
@@ -4,7 +4,7 @@ import {
4
4
  clickElement as Et,
5
5
  supportsPassive as Tt,
6
6
  } from "../../util/dom-utils.js";
7
- import { KeyCodes as bt } from "../../util/key-codes.js";
7
+ import { KeyCodes as mt } from "../../util/key-codes.js";
8
8
  import u from "../../managers/subscription-manager.js";
9
9
  import { isIFrame as It } from "../utils/in-app-message-utils.js";
10
10
  export default class InAppMessage {
@@ -105,19 +105,19 @@ export default class InAppMessage {
105
105
  (this.messageExtras = p),
106
106
  (this.nh = !1),
107
107
  (this.st = !1),
108
- (this.Co = !1),
108
+ (this.So = !1),
109
109
  (this.Th = !1),
110
- (this.We = null),
111
- (this.Xe = null),
110
+ (this.Ze = null),
111
+ (this.lo = null),
112
112
  (this._t = new u()),
113
113
  (this.oh = new u()),
114
- (this.do = InAppMessage.TextAlignment.CENTER);
114
+ (this.po = InAppMessage.TextAlignment.CENTER);
115
115
  }
116
116
  subscribeToClickedEvent(t) {
117
- return this._t.Ns(t);
117
+ return this._t.Fs(t);
118
118
  }
119
119
  subscribeToDismissedEvent(t) {
120
- return this.oh.Ns(t);
120
+ return this.oh.Fs(t);
121
121
  }
122
122
  removeSubscription(t) {
123
123
  this._t.removeSubscription(t), this.oh.removeSubscription(t);
@@ -126,22 +126,22 @@ export default class InAppMessage {
126
126
  this._t.removeAllSubscriptions(), this.oh.removeAllSubscriptions();
127
127
  }
128
128
  closeMessage() {
129
- this.ll(this.We);
129
+ this.ll(this.Ze);
130
130
  }
131
- Ye() {
131
+ do() {
132
132
  return !0;
133
133
  }
134
- Bo() {
135
- return this.Ye();
134
+ Po() {
135
+ return this.do();
136
136
  }
137
- Ve() {
137
+ Ye() {
138
138
  return null != this.htmlId && this.htmlId.length > 4;
139
139
  }
140
140
  Oe() {
141
- return this.Ve() && null != this.css && this.css.length > 0;
141
+ return this.Ye() && null != this.css && this.css.length > 0;
142
142
  }
143
- _e() {
144
- if (this.Ve() && this.Oe()) return this.htmlId + "-css";
143
+ Le() {
144
+ if (this.Ye() && this.Oe()) return this.htmlId + "-css";
145
145
  }
146
146
  wt() {
147
147
  return !this.st && ((this.st = !0), !0);
@@ -150,7 +150,7 @@ export default class InAppMessage {
150
150
  return this.st;
151
151
  }
152
152
  rt(t) {
153
- return !this.Co && ((this.Co = !0), this._t.X(), !0);
153
+ return !this.So && ((this.So = !0), this._t.X(), !0);
154
154
  }
155
155
  ft() {
156
156
  return !this.Th && ((this.Th = !0), this.oh.X(), !0);
@@ -158,7 +158,7 @@ export default class InAppMessage {
158
158
  hide(t) {
159
159
  if (t && t.parentNode) {
160
160
  let s = t.closest(".ab-iam-root");
161
- if ((null == s && (s = t), this.Ye() && null != s.parentNode)) {
161
+ if ((null == s && (s = t), this.do() && null != s.parentNode)) {
162
162
  const t = s.parentNode.classList;
163
163
  t && t.contains(InAppMessage.rh) && t.remove(InAppMessage.rh),
164
164
  document.body.removeEventListener("touchmove", InAppMessage.lh);
@@ -170,7 +170,7 @@ export default class InAppMessage {
170
170
  ll(t, s) {
171
171
  if (null == t) return;
172
172
  let i;
173
- (this.We = null),
173
+ (this.Ze = null),
174
174
  (i =
175
175
  -1 === t.className.indexOf("ab-in-app-message")
176
176
  ? t.getElementsByClassName("ab-in-app-message")[0]
@@ -185,7 +185,7 @@ export default class InAppMessage {
185
185
  let s = t.closest(".ab-iam-root");
186
186
  null == s && (s = t), s.parentNode && s.parentNode.removeChild(s);
187
187
  }
188
- const i = this._e();
188
+ const i = this.Le();
189
189
  if (null != i) {
190
190
  const t = document.getElementById(i);
191
191
  t && t.parentNode && t.parentNode.removeChild(t);
@@ -193,14 +193,14 @@ export default class InAppMessage {
193
193
  null != e && "Safari" === ro.browser && (e.scrollTop = E),
194
194
  s ? s() : this.ft();
195
195
  };
196
- h ? setTimeout(n, InAppMessage.Ih) : n(), this.Xe && this.Xe.focus();
196
+ h ? setTimeout(n, InAppMessage.Ih) : n(), this.lo && this.lo.focus();
197
197
  }
198
- po() {
198
+ jo() {
199
199
  return document.createTextNode(this.message || "");
200
200
  }
201
- uo(t) {
201
+ fo(t) {
202
202
  let s = "";
203
- this.message || this.header || !this.Ye() || (s = "Modal Image"),
203
+ this.message || this.header || !this.do() || (s = "Modal Image"),
204
204
  t.setAttribute("alt", s);
205
205
  }
206
206
  static lh(t) {
@@ -216,7 +216,7 @@ export default class InAppMessage {
216
216
  }
217
217
  Ah(t) {
218
218
  const s = t.parentNode;
219
- this.Ye() &&
219
+ this.do() &&
220
220
  null != s &&
221
221
  this.orientation !== InAppMessage.Orientation.LANDSCAPE &&
222
222
  (null != s.classList && s.classList.add(InAppMessage.rh),
@@ -229,7 +229,7 @@ export default class InAppMessage {
229
229
  }
230
230
  static Oh(t) {
231
231
  if (
232
- t.keyCode === bt._h &&
232
+ t.keyCode === mt._h &&
233
233
  !r.sr(z.mh) &&
234
234
  document.querySelectorAll(".ab-modal-interactions").length > 0
235
235
  ) {
@@ -261,7 +261,7 @@ export default class InAppMessage {
261
261
  }),
262
262
  (this.nh = !0));
263
263
  }
264
- Bs(t) {
264
+ bs(t) {
265
265
  const s = {};
266
266
  return t
267
267
  ? ((s[InAppMessage.qt.ra] = this.message),
@@ -308,9 +308,9 @@ export default class InAppMessage {
308
308
  Eh: 3224580915,
309
309
  eh: 4288387995,
310
310
  }),
311
- (InAppMessage.lo = {
311
+ (InAppMessage.bo = {
312
312
  Dh: "hd",
313
- Ze: "ias",
313
+ uo: "ias",
314
314
  Ch: "of",
315
315
  dh: "do",
316
316
  Uh: "umt",
@@ -339,14 +339,14 @@ export default class InAppMessage {
339
339
  CENTER_CROP: "CENTER_CROP",
340
340
  FIT_CENTER: "FIT_CENTER",
341
341
  }),
342
- (InAppMessage.Qe = {
343
- jn: "SLIDEUP",
344
- dn: "MODAL",
345
- xo: "MODAL_STYLED",
346
- gn: "FULL",
347
- fn: "WEB_HTML",
348
- Le: "HTML",
349
- Io: "HTML_FULL",
342
+ (InAppMessage.We = {
343
+ mn: "SLIDEUP",
344
+ pn: "MODAL",
345
+ Io: "MODAL_STYLED",
346
+ an: "FULL",
347
+ un: "WEB_HTML",
348
+ Ve: "HTML",
349
+ Ao: "HTML_FULL",
350
350
  }),
351
351
  (InAppMessage.Ih = 500),
352
352
  (InAppMessage.ph = 200),
@@ -384,6 +384,6 @@ export default class InAppMessage {
384
384
  ka: "hi",
385
385
  CSS: "css",
386
386
  zt: "type",
387
- Po: "messageFields",
387
+ qo: "messageFields",
388
388
  qa: "me",
389
389
  });
@@ -63,12 +63,12 @@ export default class ModalMessage extends InAppMessage {
63
63
  q,
64
64
  A,
65
65
  ),
66
- (this.do = InAppMessage.TextAlignment.CENTER);
66
+ (this.po = InAppMessage.TextAlignment.CENTER);
67
67
  }
68
- Bs() {
69
- return super.Bs(ModalMessage.Dt);
68
+ bs() {
69
+ return super.bs(ModalMessage.Dt);
70
70
  }
71
- static hn(e) {
71
+ static ln(e) {
72
72
  return new ModalMessage(
73
73
  e[InAppMessage.qt.ra],
74
74
  e[InAppMessage.qt.sa],
@@ -101,4 +101,4 @@ export default class ModalMessage extends InAppMessage {
101
101
  );
102
102
  }
103
103
  }
104
- ModalMessage.Dt = InAppMessage.Qe.dn;
104
+ ModalMessage.Dt = InAppMessage.We.pn;
@@ -59,12 +59,12 @@ export default class SlideUpMessage extends InAppMessage {
59
59
  M,
60
60
  b,
61
61
  ),
62
- (this.do = InAppMessage.TextAlignment.START);
62
+ (this.po = InAppMessage.TextAlignment.START);
63
63
  }
64
- Ye() {
64
+ do() {
65
65
  return !1;
66
66
  }
67
- po() {
67
+ jo() {
68
68
  const e = document.createElement("span");
69
69
  return e.appendChild(document.createTextNode(this.message || "")), e;
70
70
  }
@@ -76,10 +76,10 @@ export default class SlideUpMessage extends InAppMessage {
76
76
  : (t.style.bottom = "0px")),
77
77
  super.Ah(e);
78
78
  }
79
- Bs() {
80
- return super.Bs(SlideUpMessage.Dt);
79
+ bs() {
80
+ return super.bs(SlideUpMessage.Dt);
81
81
  }
82
- static hn(e) {
82
+ static ln(e) {
83
83
  return new SlideUpMessage(
84
84
  e[InAppMessage.qt.ra],
85
85
  e[InAppMessage.qt.sa],
@@ -106,4 +106,4 @@ export default class SlideUpMessage extends InAppMessage {
106
106
  );
107
107
  }
108
108
  }
109
- SlideUpMessage.Dt = InAppMessage.Qe.jn;
109
+ SlideUpMessage.Dt = InAppMessage.We.mn;
@@ -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.un = s),
5
- (this.on = i),
6
- (this.pn = h),
7
- (this.mn = l),
4
+ (this.Yr = s),
5
+ (this.Ur = i),
6
+ (this.Zr = h),
7
+ (this.sn = l),
8
8
  (this.triggerId = t),
9
- (this.un = s),
10
- (this.on = i),
11
- (this.pn = h),
12
- (this.mn = l);
9
+ (this.Yr = s),
10
+ (this.Ur = i),
11
+ (this.Zr = h),
12
+ (this.sn = 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().qr(function (r) {
7
+ : se.ea().Wi(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.Er()) {
10
+ if (null == s.Yi()) {
11
11
  const r = subscribeToInAppMessage((s) => showInAppMessage(s));
12
- s.Gr(r);
12
+ s.Zi(r);
13
13
  }
14
- return s.Er();
14
+ return s.Yi();
15
15
  }
@@ -10,8 +10,8 @@ import {
10
10
  ORIENTATION as fe,
11
11
  WindowUtils as no,
12
12
  } from "../../util/window-utils.js";
13
- import { isURIJavascriptOrData as Y } from "../../util/url-utils.js";
14
- import { KeyCodes as bt } from "../../util/key-codes.js";
13
+ import { isURIJavascriptOrData as X } from "../../util/url-utils.js";
14
+ import { KeyCodes as mt } from "../../util/key-codes.js";
15
15
  import { setupInAppMessageUI as ss } from "../../ui/js/index.js";
16
16
  import { logger as N } from "../../../shared-lib/index.js";
17
17
  import { toRgba as le } from "../../util/color-utils.js";
@@ -40,7 +40,7 @@ export function showInAppMessage(e, t, o) {
40
40
  ),
41
41
  !1
42
42
  );
43
- if ((null == t && (t = document.body), e.Ye())) {
43
+ if ((null == t && (t = document.body), e.do())) {
44
44
  if (t.querySelectorAll(".ab-modal-interactions").length > 0)
45
45
  return (
46
46
  N.info(
@@ -50,7 +50,7 @@ export function showInAppMessage(e, t, o) {
50
50
  );
51
51
  }
52
52
  if (no.Uo()) {
53
- const t = no.$o();
53
+ const t = no.Jo();
54
54
  if (
55
55
  (t === fe.PORTRAIT &&
56
56
  e.orientation === InAppMessage.Orientation.LANDSCAPE) ||
@@ -77,9 +77,9 @@ export function showInAppMessage(e, t, o) {
77
77
  for (let e = 0; e < o.length; e++)
78
78
  if (o[e].clickAction === InAppMessage.ClickAction.URI) {
79
79
  const s = o[e].uri;
80
- t = Y(s);
80
+ t = X(s);
81
81
  }
82
- } else e.clickAction === InAppMessage.ClickAction.URI && (t = Y(e.uri));
82
+ } else e.clickAction === InAppMessage.ClickAction.URI && (t = X(e.uri));
83
83
  if (t)
84
84
  return (
85
85
  N.error(
@@ -93,14 +93,14 @@ export function showInAppMessage(e, t, o) {
93
93
  ((i.className = "ab-iam-root v3"),
94
94
  (i.className += me(e)),
95
95
  i.setAttribute("role", "complementary"),
96
- e.Ve() && (i.id = e.htmlId),
97
- r.sr(z.Jo) && (i.style.zIndex = (r.sr(z.Jo) + 1).toString()),
96
+ e.Ye() && (i.id = e.htmlId),
97
+ r.sr(z.Do) && (i.style.zIndex = (r.sr(z.Do) + 1).toString()),
98
98
  t.appendChild(i),
99
99
  e.Oe())
100
100
  ) {
101
101
  const t = document.createElement("style");
102
102
  (t.innerHTML = e.css),
103
- (t.id = e._e()),
103
+ (t.id = e.Le()),
104
104
  null != r.sr(z.ir) && t.setAttribute("nonce", r.sr(z.ir)),
105
105
  document.getElementsByTagName("head")[0].appendChild(t);
106
106
  }
@@ -113,12 +113,12 @@ export function showInAppMessage(e, t, o) {
113
113
  });
114
114
  },
115
115
  (t) => {
116
- if (e.Ye() && e.Bo()) {
116
+ if (e.do() && e.Po()) {
117
117
  const o = document.createElement("div");
118
118
  if (
119
119
  ((o.className = "ab-page-blocker"),
120
120
  e.Oe() || (o.style.backgroundColor = le(e.frameColor)),
121
- r.sr(z.Jo) && (o.style.zIndex = r.sr(z.Jo).toString()),
121
+ r.sr(z.Do) && (o.style.zIndex = r.sr(z.Do).toString()),
122
122
  i.appendChild(o),
123
123
  !r.sr(z.mh))
124
124
  ) {
@@ -154,7 +154,7 @@ export function showInAppMessage(e, t, o) {
154
154
  It(t) &&
155
155
  t.contentWindow &&
156
156
  t.contentWindow.addEventListener("keydown", function (e) {
157
- e.keyCode === bt._h && o.closeMessage();
157
+ e.keyCode === mt._h && o.closeMessage();
158
158
  });
159
159
  }
160
160
  logInAppMessageImpression(e),
@@ -167,11 +167,11 @@ export function showInAppMessage(e, t, o) {
167
167
  (e) => {
168
168
  N.info(e);
169
169
  },
170
+ r.sr(z.To),
170
171
  r.sr(z.Do),
171
- r.sr(z.Jo),
172
172
  r.sr(z.ir),
173
173
  t,
174
- ge.ea().So(),
174
+ ge.ea().Fo(),
175
175
  );
176
176
  return (s || n) && (i.appendChild(a), e.Ah(i)), !0;
177
177
  }
@@ -1,5 +1,5 @@
1
1
  import r from "../managers/braze-instance.js";
2
- import yt from "./utils/push-utils.js";
2
+ import vt from "./utils/push-utils.js";
3
3
  export function isPushBlocked() {
4
- if (r.rr()) return yt.isPushBlocked();
4
+ if (r.rr()) return vt.isPushBlocked();
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import r from "../managers/braze-instance.js";
2
- import yt from "./utils/push-utils.js";
2
+ import vt from "./utils/push-utils.js";
3
3
  export function isPushPermissionGranted() {
4
- if (r.rr()) return yt.isPushPermissionGranted();
4
+ if (r.rr()) return vt.isPushPermissionGranted();
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import r from "../managers/braze-instance.js";
2
- import yt from "./utils/push-utils.js";
2
+ import vt from "./utils/push-utils.js";
3
3
  export function isPushSupported() {
4
- if (r.rr()) return yt.isPushSupported();
4
+ if (r.rr()) return vt.isPushSupported();
5
5
  }