@braze/web-sdk 5.4.0 → 5.6.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 (183) hide show
  1. package/index.d.ts +109 -7
  2. package/package.json +1 -1
  3. package/shared-lib/encoding-utils.js +1 -1
  4. package/shared-lib/event-types.js +33 -31
  5. package/shared-lib/guid.js +3 -3
  6. package/shared-lib/indexed-db-adapter.js +20 -20
  7. package/shared-lib/logger.js +18 -18
  8. package/shared-lib/supported-options.js +24 -24
  9. package/src/Banner/banner-factory.js +14 -0
  10. package/src/Banner/banner-provider-factory.js +19 -0
  11. package/src/Banner/banner-provider.js +198 -0
  12. package/src/Banner/banner.js +30 -0
  13. package/src/Banner/display/banner-to-html.js +57 -0
  14. package/src/Banner/display/destroy-banner-html.js +7 -0
  15. package/src/Banner/display/detect-banner-impressions.js +28 -0
  16. package/src/Banner/get-all-banners.js +13 -0
  17. package/src/Banner/get-banner.js +19 -0
  18. package/src/Banner/index.js +7 -0
  19. package/src/Banner/log-banner-click.js +22 -0
  20. package/src/Banner/log-banner-impressions.js +31 -0
  21. package/src/Banner/request-banners-refresh.js +35 -0
  22. package/src/Banner/subscribe-to-banners-updates.js +23 -0
  23. package/src/Banner/types.js +1 -0
  24. package/src/Banner/ui/insert-banner.js +24 -0
  25. package/src/Card/card-manager-factory.js +10 -10
  26. package/src/Card/card-manager.js +64 -58
  27. package/src/Card/display/card-display.js +77 -91
  28. package/src/Card/log-card-click.js +6 -6
  29. package/src/Card/log-card-dismissal.js +6 -5
  30. package/src/Card/log-card-impressions.js +11 -11
  31. package/src/Card/models/captioned-image.js +21 -21
  32. package/src/Card/models/card.js +111 -105
  33. package/src/Card/models/classic-card.js +21 -21
  34. package/src/Card/models/control-card.js +11 -11
  35. package/src/Card/models/image-only.js +19 -19
  36. package/src/Card/util/card-factory.js +58 -58
  37. package/src/ContentCards/content-cards-provider-factory.js +14 -14
  38. package/src/ContentCards/content-cards-provider.js +260 -262
  39. package/src/ContentCards/content-cards.js +5 -5
  40. package/src/ContentCards/get-cached-content-cards.js +3 -3
  41. package/src/ContentCards/request-content-cards-refresh.js +4 -4
  42. package/src/ContentCards/subscribe-to-content-cards-updates.js +13 -13
  43. package/src/ContentCards/ui/hide-content-cards.js +7 -7
  44. package/src/ContentCards/ui/show-content-cards.js +52 -52
  45. package/src/ContentCards/ui/toggle-content-cards.js +4 -4
  46. package/src/Core/add-sdk-metadata.js +9 -9
  47. package/src/Core/change-user.js +14 -14
  48. package/src/Core/destroy.js +3 -3
  49. package/src/Core/disable-sdk.js +13 -13
  50. package/src/Core/enable-sdk.js +9 -9
  51. package/src/Core/get-device-id.js +10 -10
  52. package/src/Core/get-user.js +2 -2
  53. package/src/Core/handle-braze-action.js +53 -53
  54. package/src/Core/initialize.js +2 -2
  55. package/src/Core/is-disabled.js +2 -2
  56. package/src/Core/is-initialized.js +2 -2
  57. package/src/Core/log-custom-event.js +24 -24
  58. package/src/Core/log-purchase.js +38 -38
  59. package/src/Core/open-session.js +18 -18
  60. package/src/Core/remove-all-subscriptions.js +2 -2
  61. package/src/Core/remove-subscription.js +3 -3
  62. package/src/Core/request-immediate-data-flush.js +5 -5
  63. package/src/Core/set-logger.js +2 -2
  64. package/src/Core/set-sdk-authentication-signature.js +6 -6
  65. package/src/Core/subscribe-to-sdk-authentication-failures.js +5 -5
  66. package/src/Core/toggle-logging.js +2 -2
  67. package/src/Core/wipe-data.js +10 -10
  68. package/src/FeatureFlags/feature-flag-factory.js +13 -13
  69. package/src/FeatureFlags/feature-flag.js +10 -10
  70. package/src/FeatureFlags/feature-flags-provider-factory.js +13 -14
  71. package/src/FeatureFlags/feature-flags-provider.js +118 -116
  72. package/src/FeatureFlags/get-all-feature-flags.js +10 -10
  73. package/src/FeatureFlags/get-feature-flag.js +9 -9
  74. package/src/FeatureFlags/log-feature-flag-impression.js +18 -18
  75. package/src/FeatureFlags/refresh-feature-flags.js +6 -6
  76. package/src/FeatureFlags/subscribe-to-feature-flags-updates.js +9 -9
  77. package/src/Feed/feed-provider-factory.js +12 -12
  78. package/src/Feed/feed-provider.js +59 -59
  79. package/src/Feed/feed.js +4 -4
  80. package/src/Feed/get-cached-feed.js +3 -3
  81. package/src/Feed/log-feed-displayed.js +5 -5
  82. package/src/Feed/request-feed-refresh.js +3 -3
  83. package/src/Feed/subscribe-to-feed-updates.js +4 -4
  84. package/src/Feed/ui/hide-feed.js +5 -5
  85. package/src/Feed/ui/show-feed.js +53 -53
  86. package/src/Feed/ui/toggle-feed.js +4 -4
  87. package/src/InAppMessage/defer-in-app-message.js +9 -9
  88. package/src/InAppMessage/display/html-message-display-utils.js +18 -164
  89. package/src/InAppMessage/display/html-message-to-html.js +55 -62
  90. package/src/InAppMessage/display/in-app-message-to-html.js +74 -74
  91. package/src/InAppMessage/display/modal-utils.js +17 -17
  92. package/src/InAppMessage/get-deferred-in-app-message.js +2 -2
  93. package/src/InAppMessage/in-app-message-factory.js +61 -61
  94. package/src/InAppMessage/in-app-message-manager-factory.js +9 -9
  95. package/src/InAppMessage/in-app-message-manager.js +158 -156
  96. package/src/InAppMessage/log-in-app-message-button-click.js +16 -16
  97. package/src/InAppMessage/log-in-app-message-click.js +11 -11
  98. package/src/InAppMessage/log-in-app-message-html-click.js +15 -15
  99. package/src/InAppMessage/log-in-app-message-impression.js +6 -6
  100. package/src/InAppMessage/models/control-message.js +15 -8
  101. package/src/InAppMessage/models/full-screen-message.js +34 -34
  102. package/src/InAppMessage/models/html-message.js +23 -23
  103. package/src/InAppMessage/models/in-app-message-button.js +10 -10
  104. package/src/InAppMessage/models/in-app-message.js +155 -155
  105. package/src/InAppMessage/models/modal-message.js +33 -33
  106. package/src/InAppMessage/models/slide-up-message.js +35 -35
  107. package/src/InAppMessage/models/templated-in-app-message.js +8 -8
  108. package/src/InAppMessage/subscribe-to-in-app-message.js +3 -3
  109. package/src/InAppMessage/ui/automatically-show-in-app-messages.js +6 -6
  110. package/src/InAppMessage/ui/show-in-app-message.js +103 -103
  111. package/src/Push/is-push-blocked.js +2 -2
  112. package/src/Push/is-push-permission-granted.js +2 -2
  113. package/src/Push/is-push-supported.js +2 -2
  114. package/src/Push/push-manager-factory.js +25 -25
  115. package/src/Push/push-manager.js +176 -176
  116. package/src/Push/request-push-permission.js +8 -8
  117. package/src/Push/unregister-push.js +4 -4
  118. package/src/Push/utils/push-utils.js +4 -4
  119. package/src/User/user-manager.js +38 -38
  120. package/src/User/user.js +95 -92
  121. package/src/common/base-feed.js +9 -9
  122. package/src/common/base-provider.js +2 -2
  123. package/src/common/constants.js +1 -0
  124. package/src/common/detect-impression.js +18 -0
  125. package/src/common/event-logger.js +22 -22
  126. package/src/common/feed-display.js +53 -53
  127. package/src/index.js +1 -0
  128. package/src/l10n/l10n-manager-factory.js +15 -15
  129. package/src/l10n/l10n-manager.js +4 -4
  130. package/src/managers/auth-manager.js +38 -38
  131. package/src/managers/braze-instance.js +212 -212
  132. package/src/managers/device-manager.js +30 -30
  133. package/src/managers/network-manager.js +231 -232
  134. package/src/managers/server-config-manager.js +99 -83
  135. package/src/managers/session-manager.js +46 -50
  136. package/src/managers/storage-manager-factory.js +13 -13
  137. package/src/managers/storage-manager.js +182 -180
  138. package/src/managers/subscription-manager.js +12 -12
  139. package/src/managers/utils.js +4 -4
  140. package/src/models/backend-errors.js +5 -5
  141. package/src/models/braze-event.js +9 -9
  142. package/src/models/device.js +2 -2
  143. package/src/models/identifier.js +15 -15
  144. package/src/models/push-token.js +10 -10
  145. package/src/models/request-result.js +4 -4
  146. package/src/models/server-config.js +38 -34
  147. package/src/request-controller.js +228 -228
  148. package/src/triggers/models/custom-event-data.js +5 -5
  149. package/src/triggers/models/custom-event-property-data.js +6 -6
  150. package/src/triggers/models/filter-set.js +10 -10
  151. package/src/triggers/models/filter.js +66 -66
  152. package/src/triggers/models/in-app-message-click-data.js +10 -10
  153. package/src/triggers/models/purchase-data.js +2 -2
  154. package/src/triggers/models/purchase-property-data.js +6 -6
  155. package/src/triggers/models/push-click-data.js +5 -5
  156. package/src/triggers/models/trigger-condition.js +46 -46
  157. package/src/triggers/models/trigger-events.js +4 -4
  158. package/src/triggers/models/trigger.js +33 -33
  159. package/src/triggers/triggers-provider-factory.js +16 -16
  160. package/src/triggers/triggers-provider.js +156 -154
  161. package/src/ui/js/attach-css.js +7 -7
  162. package/src/ui/js/banner-css.js +11 -0
  163. package/src/ui/js/feed-css.js +4 -4
  164. package/src/ui/js/iam-css.js +4 -4
  165. package/src/ui/js/index.js +1 -0
  166. package/src/ui/js/load-font-awesome.js +8 -8
  167. package/src/util/base-device-parser.js +9 -9
  168. package/src/util/braze-actions.js +32 -32
  169. package/src/util/browser-detector.js +27 -27
  170. package/src/util/client-hints-parser.js +9 -9
  171. package/src/util/code-utils.js +5 -5
  172. package/src/util/component-utils.js +5 -5
  173. package/src/util/deprecation-utils.js +3 -3
  174. package/src/util/device-constants.js +1 -1
  175. package/src/util/dom-utils.js +13 -13
  176. package/src/util/html-display-utils.js +158 -0
  177. package/src/util/key-codes.js +1 -1
  178. package/src/util/net.js +21 -21
  179. package/src/util/request-header-utils.js +31 -30
  180. package/src/util/string-utils.js +2 -2
  181. package/src/util/user-agent-parser.js +9 -9
  182. package/src/util/validation-utils.js +89 -85
  183. package/src/util/window-utils.js +3 -3
@@ -1,120 +1,136 @@
1
- import { STORAGE_KEYS as o } from "./storage-manager.js";
2
- import T from "./subscription-manager.js";
1
+ import { STORAGE_KEYS as t } from "./storage-manager.js";
2
+ import u from "./subscription-manager.js";
3
3
  import Jt from "../models/server-config.js";
4
- import s from "../common/event-logger.js";
5
- import { EventTypes as i } from "../../shared-lib/index.js";
4
+ import c from "../common/event-logger.js";
5
+ import { EventTypes as d } from "../../shared-lib/index.js";
6
6
  export default class Dt {
7
7
  constructor(t) {
8
- (this.u = t),
9
- (this.u = t),
10
- (this.tl = new T()),
11
- (this.el = new T()),
12
- (this.il = new T()),
13
- (this.sl = null),
14
- (this.rl = null);
15
- }
16
- ll() {
17
- if (null == this.rl) {
18
- const t = this.u.j(o.C.ul);
19
- this.rl = null != t ? Jt.qn(t) : new Jt();
8
+ (this.C = t),
9
+ (this.C = t),
10
+ (this.al = new u()),
11
+ (this.hl = new u()),
12
+ (this.ul = new u()),
13
+ (this.cl = new u()),
14
+ (this.ml = null),
15
+ (this.gl = null);
16
+ }
17
+ bl() {
18
+ if (null == this.gl) {
19
+ const e = this.C.ps(t.bs.fl);
20
+ this.gl = null != e ? Jt.Qn(e) : new Jt();
20
21
  }
21
- return this.rl;
22
- }
23
- ii() {
24
- return this.ll().hl;
25
- }
26
- al(t) {
27
- if (null != t && null != t.config) {
28
- const e = t.config;
29
- if (e.time > this.ll().hl) {
30
- const t = (t) => (null == t ? this.ll().ol : t),
31
- i = new Jt(
32
- e.time,
33
- e.events_blacklist,
34
- e.attributes_blacklist,
35
- e.purchases_blacklist,
36
- e.messaging_session_timeout,
37
- e.vapid_public_key,
38
- e.content_cards,
39
- e.feature_flags,
40
- t(e.global_request_rate_limit),
22
+ return this.gl;
23
+ }
24
+ Es() {
25
+ return this.bl().dl;
26
+ }
27
+ Rl(e) {
28
+ if (null != e && null != e.config) {
29
+ const i = e.config;
30
+ if (i.time > this.bl().dl) {
31
+ const e = (t) => (null == t ? this.bl().Cl : t),
32
+ s = new Jt(
33
+ i.time,
34
+ i.events_blacklist,
35
+ i.attributes_blacklist,
36
+ i.purchases_blacklist,
37
+ i.messaging_session_timeout,
38
+ i.vapid_public_key,
39
+ i.content_cards,
40
+ i.feature_flags,
41
+ e(i.global_request_rate_limit),
42
+ i.banners,
41
43
  );
42
- let s = !1;
43
- null != i.cl && this.Wn() !== i.cl && (s = !0);
44
- let r = !1;
45
- null != i.ml.enabled && this.si() !== i.ml.enabled && (r = !0);
46
44
  let n = !1;
47
- null != i.hi.enabled && this.ci() !== i.hi.enabled && (n = !0),
48
- (this.rl = i),
49
- this.u.k(o.C.ul, i.Y()),
50
- s && this.tl.Dt(),
51
- r && this.el.Dt(),
52
- n && this.il.Dt();
45
+ null != s.El && this.Gn() !== s.El && (n = !0);
46
+ let r = !1;
47
+ null != s.vl.enabled && this.Xi() !== s.vl.enabled && (r = !0);
48
+ let l = !1;
49
+ null != s.Gi.enabled && this.Qi() !== s.Gi.enabled && (l = !0);
50
+ let a = !1;
51
+ null != s.banners.enabled &&
52
+ this.Us() !== s.banners.enabled &&
53
+ (a = !0),
54
+ (this.gl = s),
55
+ this.C.js(t.bs.fl, s.Bs()),
56
+ n && this.al.X(),
57
+ r && this.hl.X(),
58
+ l && this.ul.X(),
59
+ a && this.cl.X();
53
60
  }
54
61
  }
55
62
  }
56
- _n(t) {
57
- const e = this.tl.It(t);
58
- return this.sl && this.tl.removeSubscription(this.sl), (this.sl = e), e;
63
+ Hn(t) {
64
+ const e = this.al.Ns(t);
65
+ return this.ml && this.al.removeSubscription(this.ml), (this.ml = e), e;
66
+ }
67
+ $i(t) {
68
+ return this.hl.Ns(t);
59
69
  }
60
- Is(t) {
61
- return this.el.It(t);
70
+ Re(t) {
71
+ return this.ul.Ns(t);
62
72
  }
63
- ji(t) {
64
- return this.il.It(t);
73
+ A(t) {
74
+ return this.cl.Ns(t);
65
75
  }
66
- me(t) {
67
- return -1 !== this.ll().gl.indexOf(t);
76
+ ge(t) {
77
+ return -1 !== this.bl().wl.indexOf(t);
68
78
  }
69
79
  hu(t) {
70
- return -1 !== this.ll().fl.indexOf(t);
80
+ return -1 !== this.bl().yl.indexOf(t);
71
81
  }
72
82
  Dr(t) {
73
- return -1 !== this.ll().bl.indexOf(t);
83
+ return -1 !== this.bl().Ll.indexOf(t);
74
84
  }
75
- dl() {
76
- return this.ll().Rl;
85
+ Bl() {
86
+ return this.bl().Fl;
77
87
  }
78
- Wn() {
79
- return this.ll().cl;
88
+ Gn() {
89
+ return this.bl().El;
80
90
  }
81
- si() {
82
- return this.ll().ml.enabled || !1;
91
+ Xi() {
92
+ return this.bl().vl.enabled || !1;
83
93
  }
84
- Cl() {
85
- const t = this.ll().ol;
94
+ Tl() {
95
+ const t = this.bl().Cl;
86
96
  return !(!t || null == t.enabled) && t.enabled;
87
97
  }
88
- Tu() {
89
- if (!this.Cl()) return -1;
90
- const t = this.ll().ol;
98
+ il() {
99
+ if (!this.Tl()) return -1;
100
+ const t = this.bl().Cl;
91
101
  return null == t.capacity || t.capacity < 10 ? -1 : t.capacity;
92
102
  }
93
- ku() {
94
- if (!this.Cl()) return -1;
95
- const t = this.ll().ol;
103
+ sl() {
104
+ if (!this.Tl()) return -1;
105
+ const t = this.bl().Cl;
96
106
  return null == t.refill_rate || t.refill_rate <= 0 ? -1 : t.refill_rate;
97
107
  }
98
- vl(t) {
99
- const e = this.ll().ol.endpoint_overrides;
108
+ jl(t) {
109
+ const e = this.bl().Cl.endpoint_overrides;
100
110
  return null == e ? null : e[t];
101
111
  }
102
- Cu(t) {
103
- const e = this.vl(t);
112
+ rl(t) {
113
+ const e = this.jl(t);
104
114
  return null == e || isNaN(e.capacity) || e.capacity <= 0 ? -1 : e.capacity;
105
115
  }
106
- Su(t) {
107
- const e = this.vl(t);
116
+ ol(t) {
117
+ const e = this.jl(t);
108
118
  return null == e || isNaN(e.refill_rate) || e.refill_rate <= 0
109
119
  ? -1
110
120
  : e.refill_rate;
111
121
  }
112
- ci() {
113
- return this.ll().hi.enabled && null == this.Ri()
114
- ? (s.q(i.qs, { e: "Missing feature flag refresh_rate_limit." }), !1)
115
- : this.ll().hi.enabled || !1;
122
+ Qi() {
123
+ return this.bl().Gi.enabled && null == this.Se()
124
+ ? (c.ds(d.Li, { e: "Missing feature flag refresh_rate_limit." }), !1)
125
+ : this.bl().Gi.enabled || !1;
126
+ }
127
+ Se() {
128
+ return this.bl().Gi.refresh_rate_limit;
129
+ }
130
+ Us() {
131
+ return this.bl().banners.enabled || !1;
116
132
  }
117
- Ri() {
118
- return this.ll().hi.refresh_rate_limit;
133
+ ee() {
134
+ return this.bl().banners.max_placements || 0;
119
135
  }
120
136
  }
@@ -1,79 +1,75 @@
1
- import { STORAGE_KEYS as o } from "../managers/storage-manager.js";
1
+ import { STORAGE_KEYS as t } from "../managers/storage-manager.js";
2
2
  import ve from "../models/braze-event.js";
3
3
  import _t from "../models/identifier.js";
4
- import { convertMsToSeconds as h } from "../util/date-utils.js";
4
+ import { convertMsToSeconds as L } from "../util/date-utils.js";
5
5
  import {
6
- logger as r,
7
- Guid as p,
8
- EventTypes as i,
6
+ logger as N,
7
+ Guid as G,
8
+ EventTypes as d,
9
9
  } from "../../shared-lib/index.js";
10
10
  export default class Mt {
11
11
  constructor(s, t, i, e) {
12
- (this.u = s),
13
- (this.wt = t),
14
- (this.yt = i),
15
- (this.wl = e),
16
- (this.u = s),
17
- (this.wt = t),
18
- (this.yt = i),
19
- (this.Sl = 1e3),
12
+ (this.C = s),
13
+ (this.As = t),
14
+ (this.B = i),
15
+ (this.Sl = e),
16
+ (this.C = s),
17
+ (this.As = t),
18
+ (this.B = i),
19
+ (this.xl = 1e3),
20
20
  (null == e || isNaN(e)) && (e = 1800),
21
- e < this.Sl / 1e3 &&
22
- (r.info(
21
+ e < this.xl / 1e3 &&
22
+ (N.info(
23
23
  "Specified session timeout of " +
24
24
  e +
25
25
  "s is too small, using the minimum session timeout of " +
26
- this.Sl / 1e3 +
26
+ this.xl / 1e3 +
27
27
  "s instead.",
28
28
  ),
29
- (e = this.Sl / 1e3)),
30
- (this.wl = e);
29
+ (e = this.xl / 1e3)),
30
+ (this.Sl = e);
31
31
  }
32
- jl(s, t) {
33
- return new ve(this.wt.getUserId(), i.xl, s, t.eu, { d: h(s - t.Dl) });
32
+ Dl(s, t) {
33
+ return new ve(this.As.getUserId(), d.Gl, s, t.eu, { d: L(s - t.Nl) });
34
34
  }
35
- Si() {
36
- const s = this.u.tu(o.iu.El);
35
+ Ss() {
36
+ const s = this.C.tu(t.iu.zl);
37
37
  return null == s ? null : s.eu;
38
38
  }
39
- Gl() {
39
+ Hl() {
40
40
  const s = new Date().valueOf(),
41
- t = this.yt.dl(),
42
- i = this.u.j(o.C.Nl);
43
- if (null != i && null == t) return !1;
44
- let e = !1;
45
- return (
46
- null == i ? (e = !0) : null != t && (e = s - i > 1e3 * t),
47
- e && this.u.k(o.C.Nl, s),
48
- e
49
- );
41
+ i = this.B.Bl();
42
+ if (null == i) return !1;
43
+ const e = this.C.ps(t.bs.Wl),
44
+ n = null == e || s - e > 1e3 * i;
45
+ return n && this.C.js(t.bs.Wl, s), n;
50
46
  }
51
- zl(s, t) {
52
- return null == t || null == t.Hl || (!(s - t.Dl < this.Sl) && t.Hl < s);
47
+ kl(s, t) {
48
+ return null == t || null == t.ql || (!(s - t.Nl < this.xl) && t.ql < s);
53
49
  }
54
- xo() {
50
+ qo() {
55
51
  const s = new Date().valueOf(),
56
- t = s + 1e3 * this.wl,
57
- e = this.u.tu(o.iu.El);
58
- if (this.zl(s, e)) {
52
+ i = s + 1e3 * this.Sl,
53
+ e = this.C.tu(t.iu.zl);
54
+ if (this.kl(s, e)) {
59
55
  let n = "Generating session start event with time " + s;
60
56
  if (null != e) {
61
- let s = e.Wl;
62
- s - e.Dl < this.Sl && (s = e.Dl + this.Sl),
63
- this.u.kl(this.jl(s, e)),
57
+ let s = e.Al;
58
+ s - e.Nl < this.xl && (s = e.Nl + this.xl),
59
+ this.C.Il(this.Dl(s, e)),
64
60
  (n += " (old session ended " + s + ")");
65
61
  }
66
- (n += ". Will expire " + t.valueOf()), r.info(n);
67
- const l = new _t(p.W(), t);
68
- this.u.kl(new ve(this.wt.getUserId(), i.ql, s, l.eu)),
69
- this.u.uu(o.iu.El, l);
70
- return null == this.u.j(o.C.Nl) && this.u.k(o.C.Nl, s), l.eu;
62
+ (n += ". Will expire " + i.valueOf()), N.info(n);
63
+ const o = new _t(G.Rt(), i);
64
+ this.C.Il(new ve(this.As.getUserId(), d.Jl, s, o.eu)),
65
+ this.C.uu(t.iu.zl, o);
66
+ return null == this.C.ps(t.bs.Wl) && this.C.js(t.bs.Wl, s), o.eu;
71
67
  }
72
- if (null != e) return (e.Wl = s), (e.Hl = t), this.u.uu(o.iu.El, e), e.eu;
68
+ if (null != e) return (e.Al = s), (e.ql = i), this.C.uu(t.iu.zl, e), e.eu;
73
69
  }
74
- yl() {
75
- const s = this.u.tu(o.iu.El);
70
+ Kl() {
71
+ const s = this.C.tu(t.iu.zl);
76
72
  null != s &&
77
- (this.u.Al(o.iu.El), this.u.kl(this.jl(new Date().valueOf(), s)));
73
+ (this.C.Ml(t.iu.zl), this.C.Il(this.Dl(new Date().valueOf(), s)));
78
74
  }
79
75
  }
@@ -1,14 +1,14 @@
1
- import Q, { STORAGE_KEYS as o } from "./storage-manager.js";
2
- import { logger as r } from "../../shared-lib/index.js";
1
+ import ne, { STORAGE_KEYS as t } from "./storage-manager.js";
2
+ import { logger as N } from "../../shared-lib/index.js";
3
3
  const Wt = {
4
- Wh: function (e, t = !1) {
5
- let a = !1;
4
+ La: function (e, o = !1) {
5
+ let r = !1;
6
6
  try {
7
7
  if (localStorage && localStorage.getItem)
8
8
  try {
9
- localStorage.setItem(o.C.ec, "true"),
10
- localStorage.getItem(o.C.ec) &&
11
- (localStorage.removeItem(o.C.ec), (a = !0));
9
+ localStorage.setItem(t.bs.ec, "true"),
10
+ localStorage.getItem(t.bs.ec) &&
11
+ (localStorage.removeItem(t.bs.ec), (r = !0));
12
12
  } catch (e) {
13
13
  if (
14
14
  !(
@@ -19,15 +19,15 @@ const Wt = {
19
19
  )
20
20
  )
21
21
  throw e;
22
- a = !0;
22
+ r = !0;
23
23
  }
24
24
  } catch (e) {
25
- r.info("Local Storage not supported!");
25
+ N.info("Local Storage not supported!");
26
26
  }
27
- const n = Wt.oc(),
28
- c = new Q.tc(e, n && !t, a);
29
- let l;
30
- return (l = a ? new Q.rc(e) : new Q.ac()), new Q(c, l);
27
+ const a = Wt.oc(),
28
+ n = new ne.tc(e, a && !o, r);
29
+ let c;
30
+ return (c = r ? new ne.rc(e) : new ne.ac()), new ne(n, c);
31
31
  },
32
32
  oc: function () {
33
33
  return (