@braze/web-sdk 6.4.0 → 6.5.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 (155) hide show
  1. package/README.md +1 -1
  2. package/index.d.ts +6 -5
  3. package/package.json +1 -1
  4. package/shared-lib/encoding-utils.js +3 -3
  5. package/shared-lib/event-types.js +30 -30
  6. package/shared-lib/guid.js +3 -3
  7. package/shared-lib/indexed-db-adapter.js +58 -58
  8. package/shared-lib/logger.js +7 -7
  9. package/shared-lib/supported-options.js +14 -14
  10. package/src/Banner/banner-provider.js +95 -81
  11. package/src/Banner/banner.js +9 -9
  12. package/src/Banner/constants.js +4 -0
  13. package/src/Banner/display/banner-to-html.js +1 -1
  14. package/src/Banner/display/destroy-banner-html.js +3 -3
  15. package/src/Banner/display/detect-banner-impressions.js +14 -14
  16. package/src/Banner/get-all-banners.js +4 -4
  17. package/src/Banner/get-banner.js +5 -4
  18. package/src/Banner/log-banner-click.js +2 -2
  19. package/src/Banner/log-banner-impressions.js +6 -6
  20. package/src/Banner/request-banners-refresh.js +18 -20
  21. package/src/Banner/subscribe-to-banners-updates.js +5 -5
  22. package/src/Banner/ui/insert-banner.js +17 -14
  23. package/src/Card/card-manager-factory.js +3 -3
  24. package/src/Card/card-manager.js +32 -32
  25. package/src/Card/constants.js +1 -0
  26. package/src/Card/display/card-display.js +11 -11
  27. package/src/Card/log-card-dismissal.js +2 -2
  28. package/src/Card/log-content-card-click.js +2 -2
  29. package/src/Card/log-content-card-impressions.js +5 -5
  30. package/src/Card/models/captioned-image.js +3 -3
  31. package/src/Card/models/card.js +16 -16
  32. package/src/Card/models/classic-card.js +3 -3
  33. package/src/Card/models/control-card.js +3 -3
  34. package/src/Card/models/image-only.js +3 -3
  35. package/src/Card/util/card-factory.js +6 -6
  36. package/src/ContentCards/content-cards-provider-factory.js +11 -11
  37. package/src/ContentCards/content-cards-provider.js +110 -96
  38. package/src/ContentCards/get-cached-content-cards.js +2 -2
  39. package/src/ContentCards/request-content-cards-refresh.js +2 -2
  40. package/src/ContentCards/subscribe-to-content-cards-updates.js +5 -5
  41. package/src/ContentCards/ui/show-content-cards.js +5 -5
  42. package/src/Core/add-sdk-metadata.js +2 -2
  43. package/src/Core/change-user.js +4 -4
  44. package/src/Core/disable-sdk.js +7 -7
  45. package/src/Core/enable-sdk.js +5 -5
  46. package/src/Core/get-device-id.js +2 -2
  47. package/src/Core/handle-braze-action.js +3 -3
  48. package/src/Core/is-disabled.js +1 -1
  49. package/src/Core/log-custom-event.js +13 -13
  50. package/src/Core/log-purchase.js +10 -10
  51. package/src/Core/open-session.js +7 -7
  52. package/src/Core/set-sdk-authentication-signature.js +2 -2
  53. package/src/Core/wipe-data.js +6 -6
  54. package/src/DUST/dust-connection-core.js +23 -0
  55. package/src/DUST/dust-provider-factory.js +10 -8
  56. package/src/DUST/dust-provider.js +408 -176
  57. package/src/DUST/dust-shared-worker-code.js +2 -0
  58. package/src/DUST/dust-shared-worker-impl.js +240 -0
  59. package/src/DUST/dust-worker-bridge.js +136 -0
  60. package/src/DUST/index.js +10 -0
  61. package/src/DUST/subscribe-to-dust.js +13 -13
  62. package/src/FeatureFlags/feature-flag-factory.js +8 -8
  63. package/src/FeatureFlags/feature-flag.js +6 -6
  64. package/src/FeatureFlags/feature-flags-provider-factory.js +9 -9
  65. package/src/FeatureFlags/feature-flags-provider.js +98 -84
  66. package/src/FeatureFlags/get-all-feature-flags.js +3 -3
  67. package/src/FeatureFlags/get-feature-flag.js +3 -3
  68. package/src/FeatureFlags/log-feature-flag-impression.js +7 -7
  69. package/src/FeatureFlags/refresh-feature-flags.js +2 -2
  70. package/src/FeatureFlags/subscribe-to-feature-flags-updates.js +4 -4
  71. package/src/InAppMessage/constants.js +4 -0
  72. package/src/InAppMessage/defer-in-app-message.js +2 -2
  73. package/src/InAppMessage/display/get-animation-effect.js +1 -1
  74. package/src/InAppMessage/display/html-message-to-html.js +6 -6
  75. package/src/InAppMessage/display/in-app-message-to-html.js +40 -40
  76. package/src/InAppMessage/display/modal-utils.js +16 -16
  77. package/src/InAppMessage/get-deferred-in-app-message.js +2 -2
  78. package/src/InAppMessage/in-app-message-factory.js +4 -4
  79. package/src/InAppMessage/in-app-message-manager-factory.js +7 -7
  80. package/src/InAppMessage/in-app-message-manager.js +97 -97
  81. package/src/InAppMessage/log-in-app-message-button-click.js +14 -14
  82. package/src/InAppMessage/log-in-app-message-click.js +13 -13
  83. package/src/InAppMessage/log-in-app-message-html-click.js +11 -11
  84. package/src/InAppMessage/log-in-app-message-impression.js +8 -8
  85. package/src/InAppMessage/models/control-message.js +5 -5
  86. package/src/InAppMessage/models/full-screen-message.js +17 -17
  87. package/src/InAppMessage/models/html-message.js +19 -19
  88. package/src/InAppMessage/models/in-app-message-button.js +7 -7
  89. package/src/InAppMessage/models/in-app-message.js +121 -119
  90. package/src/InAppMessage/models/modal-message.js +17 -17
  91. package/src/InAppMessage/models/slide-up-message.js +22 -22
  92. package/src/InAppMessage/models/templated-in-app-message.js +8 -8
  93. package/src/InAppMessage/subscribe-to-in-app-message.js +2 -2
  94. package/src/InAppMessage/ui/automatically-show-in-app-messages.js +5 -5
  95. package/src/InAppMessage/ui/remove-all-visible-in-app-messages.js +8 -8
  96. package/src/InAppMessage/ui/show-in-app-message.js +34 -34
  97. package/src/Push/push-manager-factory.js +14 -14
  98. package/src/Push/push-manager.js +90 -90
  99. package/src/Push/request-push-permission.js +1 -1
  100. package/src/Push/unregister-push.js +1 -1
  101. package/src/Push/utils/push-utils.js +9 -9
  102. package/src/User/user-manager.js +32 -32
  103. package/src/User/user.js +71 -71
  104. package/src/common/constants.js +8 -11
  105. package/src/common/content-cards-display.js +32 -32
  106. package/src/common/event-logger.js +10 -10
  107. package/src/common/properties-base.js +16 -16
  108. package/src/l10n/l10n-manager-factory.js +11 -11
  109. package/src/l10n/l10n-manager.js +2 -2
  110. package/src/managers/auth-manager.js +14 -14
  111. package/src/managers/braze-instance.js +152 -152
  112. package/src/managers/device-manager.js +11 -11
  113. package/src/managers/network-manager.js +153 -153
  114. package/src/managers/server-config-manager.js +116 -88
  115. package/src/managers/session-manager.js +41 -41
  116. package/src/managers/storage-manager-factory.js +10 -10
  117. package/src/managers/storage-manager.js +137 -135
  118. package/src/managers/subscription-manager.js +12 -12
  119. package/src/managers/utils.js +1 -1
  120. package/src/models/backend-errors.js +5 -5
  121. package/src/models/braze-event.js +10 -10
  122. package/src/models/device.js +2 -2
  123. package/src/models/identifier.js +17 -17
  124. package/src/models/push-token.js +14 -14
  125. package/src/models/request-result.js +4 -4
  126. package/src/models/server-config.js +41 -37
  127. package/src/request-controller.js +163 -160
  128. package/src/triggers/models/custom-event-data.js +5 -5
  129. package/src/triggers/models/custom-event-property-data.js +6 -6
  130. package/src/triggers/models/filter-set.js +8 -8
  131. package/src/triggers/models/filter.js +7 -7
  132. package/src/triggers/models/in-app-message-click-data.js +13 -13
  133. package/src/triggers/models/purchase-data.js +2 -2
  134. package/src/triggers/models/purchase-property-data.js +6 -6
  135. package/src/triggers/models/push-click-data.js +6 -6
  136. package/src/triggers/models/trigger-condition.js +47 -47
  137. package/src/triggers/models/trigger-events.js +2 -2
  138. package/src/triggers/models/trigger.js +42 -42
  139. package/src/triggers/triggers-provider-factory.js +5 -5
  140. package/src/triggers/triggers-provider.js +66 -66
  141. package/src/ui/js/attach-css.js +3 -3
  142. package/src/ui/js/load-font-awesome.js +2 -2
  143. package/src/util/base-device-parser.js +8 -8
  144. package/src/util/braze-actions.js +5 -5
  145. package/src/util/browser-detector.js +33 -33
  146. package/src/util/client-hints-parser.js +10 -10
  147. package/src/util/component-utils.js +5 -5
  148. package/src/util/dom-utils.js +13 -13
  149. package/src/util/html-display-utils.js +7 -7
  150. package/src/util/key-codes.js +1 -1
  151. package/src/util/net.js +5 -5
  152. package/src/util/request-header-utils.js +26 -26
  153. package/src/util/user-agent-parser.js +20 -20
  154. package/src/util/validation-utils.js +16 -16
  155. package/src/util/window-utils.js +3 -3
package/README.md CHANGED
@@ -8,5 +8,5 @@ Note: The Braze Web SDK is meant to be used client-side in a web application and
8
8
 
9
9
  See the [Public Github Repo](https://github.com/braze-inc/braze-web-sdk#readme) for getting started instructions or [our documentation pages](https://www.braze.com/docs/developer_guide/platform_integration_guides/web/initial_sdk_setup/) for use-case based documentation.
10
10
 
11
- (c) Braze, Inc. 2025 - http://braze.com
11
+ (c) Braze, Inc. 2026 - http://braze.com
12
12
  License available at https://github.com/braze-inc/braze-web-sdk/blob/master/LICENSE
package/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
- * Type definitions for @braze/web-sdk v6.4.0
2
+ * Type definitions for @braze/web-sdk v6.5.0
3
3
  * Project: https://github.com/braze-inc/braze-web-sdk
4
- * (c) Braze, Inc. 2025 - http://braze.com
4
+ * (c) Braze, Inc. 2026 - http://braze.com
5
5
  * License available at https://github.com/braze-inc/braze-web-sdk/blob/master/LICENSE
6
6
  */
7
7
 
@@ -1668,7 +1668,8 @@ export class Banner {
1668
1668
  /** The placement ID this banner is matched to. */
1669
1669
  placementId: string;
1670
1670
 
1671
- // intentionally omitting `html` since it's not meant to be accessed by integrators directly.
1671
+ /** HTML to display for the banner. */
1672
+ html: string;
1672
1673
 
1673
1674
  /** Whether this banner is a control banner. */
1674
1675
  isControl: boolean;
@@ -2170,7 +2171,7 @@ export function openSession(): void;
2170
2171
  * - Create a `service-worker.js` file with the content below and place it in the root directory of your website:
2171
2172
  *
2172
2173
  * ```
2173
- * self.importScripts('https://js.appboycdn.com/web-sdk/6.4/service-worker.js');
2174
+ * self.importScripts('https://js.appboycdn.com/web-sdk/6.5/service-worker.js');
2174
2175
  * ```
2175
2176
  *
2176
2177
  * For more details, see [Our Product Documentation](https://www.braze.com/docs/developer_guide/platform_integration_guides/web/push_notifications/integration).
@@ -2593,7 +2594,7 @@ export type InitializationOptions = {
2593
2594
  * lifecycle of, set this option to true and the Braze SDK will not register or unregister a service worker. If you set this
2594
2595
  * option to true, in order for push to function correctly you must register the service worker yourself BEFORE calling
2595
2596
  * `requestPushPermission`, and ensure that it contains Braze's service worker code, either with
2596
- * `self.importScripts('https://js.appboycdn.com/web-sdk/6.4/service-worker.js');` or by including the content
2597
+ * `self.importScripts('https://js.appboycdn.com/web-sdk/6.5/service-worker.js');` or by including the content
2597
2598
  * of that file directly. When this option is true, the `serviceWorkerLocation` option is irrelevant and is ignored.
2598
2599
  */
2599
2600
  manageServiceWorkerExternally?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@braze/web-sdk",
3
- "version": "6.4.0",
3
+ "version": "6.5.0",
4
4
  "description": "Braze SDK for web sites and other JS platforms.",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -1,5 +1,5 @@
1
- const ei = {
2
- No: function (t) {
1
+ const ui = {
2
+ Nu: function (t) {
3
3
  const r = (t + "=".repeat((4 - (t.length % 4)) % 4))
4
4
  .replace(/\-/g, "+")
5
5
  .replace(/_/g, "/"),
@@ -9,4 +9,4 @@ const ei = {
9
9
  return o;
10
10
  },
11
11
  };
12
- export default ei;
12
+ export default ui;
@@ -1,34 +1,34 @@
1
- const m = {
1
+ const f = {
2
2
  CustomEvent: "ce",
3
3
  Pr: "p",
4
- Ic: "pc",
5
- Jc: "ca",
6
- Hu: "i",
7
- ju: "ie",
8
- Ut: "cci",
9
- Wt: "ccic",
10
- Ht: "ccc",
11
- Mt: "ccd",
12
- sm: "ss",
13
- Jl: "se",
14
- Jr: "si",
15
- Kr: "sc",
16
- Lr: "sbc",
17
- Kc: "sfe",
18
- Mo: "iec",
19
- Fc: "lr",
20
- Rc: "uae",
21
- Nc: "lcaa",
22
- xc: "lcar",
23
- vu: "inc",
24
- Nu: "add",
25
- yu: "rem",
26
- fu: "set",
27
- gu: "ncam",
28
- Oc: "sgu",
29
- Ir: "ffi",
4
+ jd: "pc",
5
+ ev: "ca",
6
+ Fl: "i",
7
+ wl: "ie",
8
+ Xt: "cci",
9
+ Zt: "ccic",
10
+ Lt: "ccc",
11
+ Qt: "ccd",
12
+ Sm: "ss",
13
+ hm: "se",
14
+ wn: "si",
15
+ zn: "sc",
16
+ Sn: "sbc",
17
+ tv: "sfe",
18
+ om: "iec",
19
+ yd: "lr",
20
+ kd: "uae",
21
+ Dd: "lcaa",
22
+ Ad: "lcar",
23
+ Zu: "inc",
24
+ Qu: "add",
25
+ Xu: "rem",
26
+ Yu: "set",
27
+ Vu: "ncam",
28
+ $d: "sgu",
29
+ xo: "ffi",
30
30
  ro: "bi",
31
- ot: "bc",
31
+ ut: "bc",
32
32
  },
33
- Ee = { Qc: "content_cards_displayed" };
34
- export { m as EventTypes, Ee as InternalEventTypes };
33
+ Ee = { nv: "content_cards_displayed" };
34
+ export { f as EventTypes, Ee as InternalEventTypes };
@@ -1,5 +1,5 @@
1
- const L = {
2
- oe: function () {
1
+ const P = {
2
+ se: function () {
3
3
  if ("undefined" != typeof window && window.crypto) {
4
4
  if ("function" == typeof window.crypto.randomUUID)
5
5
  return window.crypto.randomUUID();
@@ -26,4 +26,4 @@ const L = {
26
26
  return n() + n(!0) + n(!0) + n();
27
27
  },
28
28
  };
29
- export default L;
29
+ export default P;
@@ -1,21 +1,21 @@
1
- export default class it {
1
+ export default class et {
2
2
  constructor(t, e) {
3
3
  (this.database = t),
4
- (this.vd = e),
4
+ (this.Rd = e),
5
5
  (this.parent = "undefined" == typeof window ? self : window),
6
6
  (this.database = t),
7
- (this.vd = e);
7
+ (this.Rd = e);
8
8
  }
9
- Dd() {
9
+ Ud() {
10
10
  if ("indexedDB" in this.parent) return this.parent.indexedDB;
11
11
  }
12
12
  isSupported() {
13
13
  var t;
14
14
  try {
15
- if (null == this.Dd()) return !1;
15
+ if (null == this.Ud()) return !1;
16
16
  {
17
17
  const e =
18
- null === (t = this.Dd()) || void 0 === t
18
+ null === (t = this.Ud()) || void 0 === t
19
19
  ? void 0
20
20
  : t.open("Braze IndexedDB Support Test");
21
21
  if (
@@ -25,10 +25,10 @@ export default class it {
25
25
  "undefined" != typeof window)
26
26
  ) {
27
27
  const t = window,
28
- e = t.chrome || t.browser || t.pd;
28
+ e = t.chrome || t.browser || t.Od;
29
29
  if (e && e.runtime && e.runtime.id)
30
30
  return (
31
- this.vd.info(
31
+ this.Rd.info(
32
32
  "Not using IndexedDB for storage because we are running inside an extension",
33
33
  ),
34
34
  !1
@@ -38,27 +38,27 @@ export default class it {
38
38
  }
39
39
  } catch (t) {
40
40
  return (
41
- this.vd.info(
41
+ this.Rd.info(
42
42
  "Not using IndexedDB for storage due to following error: " + t,
43
43
  ),
44
44
  !1
45
45
  );
46
46
  }
47
47
  }
48
- Bd(t, e) {
48
+ Kd(t, e) {
49
49
  var n;
50
50
  const o =
51
- null === (n = this.Dd()) || void 0 === n
51
+ null === (n = this.Ud()) || void 0 === n
52
52
  ? void 0
53
- : n.open(this.database.Sd, this.database.VERSION);
53
+ : n.open(this.database.Ld, this.database.VERSION);
54
54
  if (null == o) return "function" == typeof e && e(), !1;
55
55
  const i = this;
56
56
  return (
57
57
  (o.onupgradeneeded = (t) => {
58
58
  var e;
59
- i.vd.info(
59
+ i.Rd.info(
60
60
  "Upgrading indexedDB " +
61
- i.database.Sd +
61
+ i.database.Ld +
62
62
  " to v" +
63
63
  i.database.VERSION +
64
64
  "...",
@@ -77,7 +77,7 @@ export default class it {
77
77
  (r.onversionchange = () => {
78
78
  r.close(),
79
79
  "function" == typeof e && e(),
80
- i.vd.error(
80
+ i.Rd.error(
81
81
  "Needed to close the database unexpectedly because of an upgrade in another tab",
82
82
  );
83
83
  }),
@@ -87,9 +87,9 @@ export default class it {
87
87
  var n;
88
88
  const o = t;
89
89
  return (
90
- i.vd.info(
90
+ i.Rd.info(
91
91
  "Could not open indexedDB " +
92
- i.database.Sd +
92
+ i.database.Ld +
93
93
  " v" +
94
94
  i.database.VERSION +
95
95
  ": " +
@@ -105,16 +105,16 @@ export default class it {
105
105
  setItem(t, e, n, o, i) {
106
106
  if (!this.isSupported()) return "function" == typeof i && i(), !1;
107
107
  const r = this;
108
- return this.Bd((d) => {
108
+ return this.Kd((d) => {
109
109
  if (!d.objectStoreNames.contains(t))
110
110
  return (
111
- r.vd.error(
111
+ r.Rd.error(
112
112
  "Could not store object " +
113
113
  e +
114
114
  " in " +
115
115
  t +
116
116
  " on indexedDB " +
117
- r.database.Sd +
117
+ r.database.Ld +
118
118
  " - " +
119
119
  t +
120
120
  " is not a valid objectStore",
@@ -126,13 +126,13 @@ export default class it {
126
126
  s.oncomplete = () => d.close();
127
127
  const u = s.objectStore(t).put(n, e);
128
128
  (u.onerror = () => {
129
- r.vd.error(
129
+ r.Rd.error(
130
130
  "Could not store object " +
131
131
  e +
132
132
  " in " +
133
133
  t +
134
134
  " on indexedDB " +
135
- r.database.Sd,
135
+ r.database.Ld,
136
136
  ),
137
137
  "function" == typeof i && i();
138
138
  }),
@@ -144,16 +144,16 @@ export default class it {
144
144
  getItem(t, e, n) {
145
145
  if (!this.isSupported()) return !1;
146
146
  const o = this;
147
- return this.Bd((i) => {
147
+ return this.Kd((i) => {
148
148
  if (!i.objectStoreNames.contains(t))
149
149
  return (
150
- o.vd.error(
150
+ o.Rd.error(
151
151
  "Could not retrieve object " +
152
152
  e +
153
153
  " in " +
154
154
  t +
155
155
  " on indexedDB " +
156
- o.database.Sd +
156
+ o.database.Ld +
157
157
  " - " +
158
158
  t +
159
159
  " is not a valid objectStore",
@@ -164,13 +164,13 @@ export default class it {
164
164
  r.oncomplete = () => i.close();
165
165
  const d = r.objectStore(t).get(e);
166
166
  (d.onerror = () => {
167
- o.vd.error(
167
+ o.Rd.error(
168
168
  "Could not retrieve object " +
169
169
  e +
170
170
  " in " +
171
171
  t +
172
172
  " on indexedDB " +
173
- o.database.Sd,
173
+ o.database.Ld,
174
174
  );
175
175
  }),
176
176
  (d.onsuccess = (t) => {
@@ -183,14 +183,14 @@ export default class it {
183
183
  kr(t, e, n) {
184
184
  if (!this.isSupported()) return "function" == typeof n && n(), !1;
185
185
  const o = this;
186
- return this.Bd((i) => {
186
+ return this.Kd((i) => {
187
187
  if (!i.objectStoreNames.contains(t))
188
188
  return (
189
- o.vd.error(
189
+ o.Rd.error(
190
190
  "Could not retrieve last record from " +
191
191
  t +
192
192
  " on indexedDB " +
193
- o.database.Sd +
193
+ o.database.Ld +
194
194
  " - " +
195
195
  t +
196
196
  " is not a valid objectStore",
@@ -202,8 +202,8 @@ export default class it {
202
202
  r.oncomplete = () => i.close();
203
203
  const d = r.objectStore(t).openCursor(null, "prev");
204
204
  (d.onerror = () => {
205
- o.vd.error(
206
- "Could not open cursor for " + t + " on indexedDB " + o.database.Sd,
205
+ o.Rd.error(
206
+ "Could not open cursor for " + t + " on indexedDB " + o.database.Ld,
207
207
  ),
208
208
  "function" == typeof n && n();
209
209
  }),
@@ -216,19 +216,19 @@ export default class it {
216
216
  });
217
217
  }, n);
218
218
  }
219
- be(t, e) {
219
+ je(t, e) {
220
220
  if (!this.isSupported()) return !1;
221
221
  const n = this;
222
- return this.Bd((o) => {
222
+ return this.Kd((o) => {
223
223
  if (!o.objectStoreNames.contains(t))
224
224
  return (
225
- n.vd.error(
225
+ n.Rd.error(
226
226
  "Could not delete record " +
227
227
  e +
228
228
  " from " +
229
229
  t +
230
230
  " on indexedDB " +
231
- n.database.Sd +
231
+ n.database.Ld +
232
232
  " - " +
233
233
  t +
234
234
  " is not a valid objectStore",
@@ -238,13 +238,13 @@ export default class it {
238
238
  const i = o.transaction([t], "readwrite");
239
239
  i.oncomplete = () => o.close();
240
240
  i.objectStore(t).delete(e).onerror = () => {
241
- n.vd.error(
241
+ n.Rd.error(
242
242
  "Could not delete record " +
243
243
  e +
244
244
  " from " +
245
245
  t +
246
246
  " on indexedDB " +
247
- n.database.Sd,
247
+ n.database.Ld,
248
248
  );
249
249
  };
250
250
  });
@@ -252,14 +252,14 @@ export default class it {
252
252
  Ds(t, e) {
253
253
  if (!this.isSupported()) return !1;
254
254
  const n = this;
255
- return this.Bd((o) => {
255
+ return this.Kd((o) => {
256
256
  if (!o.objectStoreNames.contains(t))
257
257
  return (
258
- n.vd.error(
258
+ n.Rd.error(
259
259
  "Could not retrieve objects from " +
260
260
  t +
261
261
  " on indexedDB " +
262
- n.database.Sd +
262
+ n.database.Ld +
263
263
  " - " +
264
264
  t +
265
265
  " is not a valid objectStore",
@@ -273,18 +273,18 @@ export default class it {
273
273
  s = [];
274
274
  (d.onerror = () => {
275
275
  s.length > 0
276
- ? (n.vd.info(
276
+ ? (n.Rd.info(
277
277
  "Cursor closed midway through for " +
278
278
  t +
279
279
  " on indexedDB " +
280
- n.database.Sd,
280
+ n.database.Ld,
281
281
  ),
282
282
  e(s))
283
- : n.vd.error(
283
+ : n.Rd.error(
284
284
  "Could not open cursor for " +
285
285
  t +
286
286
  " on indexedDB " +
287
- n.database.Sd,
287
+ n.database.Ld,
288
288
  );
289
289
  }),
290
290
  (d.onsuccess = (t) => {
@@ -307,46 +307,46 @@ export default class it {
307
307
  for (const e in this.database.Fs) {
308
308
  const n = e;
309
309
  this.database.Fs.hasOwnProperty(e) &&
310
- this.database.Fs[n] !== this.database.Fs.le &&
310
+ this.database.Fs[n] !== this.database.Fs.be &&
311
311
  t.push(this.database.Fs[n]);
312
312
  }
313
313
  const e = this;
314
- return this.Bd(function (n) {
314
+ return this.Kd(function (n) {
315
315
  const o = n.transaction(t, "readwrite");
316
316
  o.oncomplete = () => n.close();
317
317
  for (let n = 0; n < t.length; n++) {
318
318
  const i = t[n];
319
319
  o.objectStore(i).clear().onerror = function () {
320
- e.vd.error(
320
+ e.Rd.error(
321
321
  "Could not clear " +
322
322
  this.source.name +
323
323
  " on indexedDB " +
324
- e.database.Sd,
324
+ e.database.Ld,
325
325
  );
326
326
  };
327
327
  }
328
328
  o.onerror = function () {
329
- e.vd.error(
330
- "Could not clear object stores on indexedDB " + e.database.Sd,
329
+ e.Rd.error(
330
+ "Could not clear object stores on indexedDB " + e.database.Ld,
331
331
  );
332
332
  };
333
333
  });
334
334
  }
335
335
  }
336
- it.Us = {
336
+ et.Us = {
337
337
  Rs: {
338
- Sd: "AppboyServiceWorkerAsyncStorage",
338
+ Ld: "AppboyServiceWorkerAsyncStorage",
339
339
  VERSION: 6,
340
340
  Fs: {
341
- Yi: "data",
341
+ Ze: "data",
342
342
  vr: "pushClicks",
343
- cu: "pushSubscribed",
344
- Cd: "fallbackDevice",
343
+ Fu: "pushSubscribed",
344
+ Gd: "fallbackDevice",
345
345
  As: "cardUpdates",
346
- le: "optOut",
346
+ be: "optOut",
347
347
  zr: "pendingData",
348
348
  qh: "sdkAuthenticationSignature",
349
349
  },
350
- me: 1,
350
+ fe: 1,
351
351
  },
352
352
  };
@@ -3,11 +3,11 @@ const E = {
3
3
  (void 0 === n && void 0 !== E.zg) || (E.zg = !!n), E.i || (E.i = !0);
4
4
  },
5
5
  destroy: function () {
6
- (E.i = !1), (E.zg = void 0), (E.vd = void 0);
6
+ (E.i = !1), (E.zg = void 0), (E.Rd = void 0);
7
7
  },
8
8
  setLogger: function (n) {
9
9
  "function" == typeof n
10
- ? (E.init(), (E.vd = n))
10
+ ? (E.init(), (E.Rd = n))
11
11
  : E.info("Ignoring setLogger call since logger is not a function");
12
12
  },
13
13
  toggleLogging: function () {
@@ -19,19 +19,19 @@ const E = {
19
19
  info: function (n) {
20
20
  if (E.zg) {
21
21
  const o = "Braze: " + n;
22
- null != E.vd ? E.vd(o) : console.log(o);
22
+ null != E.Rd ? E.Rd(o) : console.log(o);
23
23
  }
24
24
  },
25
25
  warn: function (n) {
26
26
  if (E.zg) {
27
- const o = "Braze SDK Warning: " + n + " (v6.4.0)";
28
- null != E.vd ? E.vd(o) : console.warn(o);
27
+ const o = "Braze SDK Warning: " + n + " (v6.5.0)";
28
+ null != E.Rd ? E.Rd(o) : console.warn(o);
29
29
  }
30
30
  },
31
31
  error: function (n) {
32
32
  if (E.zg) {
33
- const o = "Braze SDK Error: " + n + " (v6.4.0)";
34
- null != E.vd ? E.vd(o) : console.error(o);
33
+ const o = "Braze SDK Error: " + n + " (v6.5.0)";
34
+ null != E.Rd ? E.Rd(o) : console.error(o);
35
35
  }
36
36
  },
37
37
  };
@@ -3,26 +3,26 @@ export default {
3
3
  Wh: "baseUrl",
4
4
  Vh: "noCookies",
5
5
  Kh: "devicePropertyAllowlist",
6
- Da: "disablePushTokenMaintenance",
6
+ La: "disablePushTokenMaintenance",
7
7
  $h: "enableLogging",
8
8
  Yh: "enableSdkAuthentication",
9
- Ca: "manageServiceWorkerExternally",
9
+ Ka: "manageServiceWorkerExternally",
10
10
  Xh: "minimumIntervalBetweenTriggerActionsInSeconds",
11
11
  Zh: "sessionTimeoutInSeconds",
12
12
  Qh: "appVersion",
13
- Ia: "appVersionNumber",
14
- _a: "serviceWorkerLocation",
15
- Ba: "safariWebsitePushId",
16
- Ea: "localization",
13
+ Xa: "appVersionNumber",
14
+ Ga: "serviceWorkerLocation",
15
+ Ia: "safariWebsitePushId",
16
+ Wa: "localization",
17
17
  er: "contentSecurityNonce",
18
- re: "allowUserSuppliedJavascript",
19
- Jo: "inAppMessageZIndex",
20
- To: "openInAppMessagesInNewTab",
18
+ te: "allowUserSuppliedJavascript",
19
+ $a: "inAppMessageZIndex",
20
+ Ja: "openInAppMessagesInNewTab",
21
21
  Oh: "requireExplicitInAppMessageDismissal",
22
- Na: "doNotLoadFontAwesome",
23
- Oa: "deviceId",
24
- Aa: "serviceWorkerScope",
25
- zi: "dustHost",
26
- Ta: "sdkFlavor",
22
+ Za: "doNotLoadFontAwesome",
23
+ tl: "deviceId",
24
+ Ha: "serviceWorkerScope",
25
+ Ne: "dustHost",
26
+ il: "sdkFlavor",
27
27
  tn: "openCardsInNewTab",
28
28
  };