@braze/web-sdk 6.8.0 → 6.9.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.
- package/index.d.ts +99 -19
- package/package.json +1 -1
- package/shared-lib/event-types.js +20 -20
- package/shared-lib/indexed-db-adapter.js +64 -64
- package/shared-lib/logger.js +18 -18
- package/shared-lib/supported-options.js +8 -8
- package/src/Banner/banner-provider.js +67 -59
- package/src/Banner/banner.js +40 -19
- package/src/Banner/dismiss-banner.js +4 -0
- package/src/Banner/display/banner-to-html.js +10 -10
- package/src/Banner/display/destroy-banner-html.js +2 -2
- package/src/Banner/get-all-banners.js +6 -6
- package/src/Banner/get-banner.js +6 -6
- package/src/Banner/index.js +1 -0
- package/src/Banner/log-banner-click.js +7 -7
- package/src/Banner/log-banner-dismissal.js +7 -7
- package/src/Banner/log-banner-impressions.js +10 -10
- package/src/Banner/request-banners-refresh.js +8 -8
- package/src/Banner/subscribe-to-banners-updates.js +5 -5
- package/src/Banner/ui/insert-banner.js +8 -8
- package/src/Card/card-manager.js +31 -31
- package/src/Card/log-card-dismissal.js +2 -2
- package/src/Card/log-content-card-click.js +2 -2
- package/src/Card/log-content-card-impressions.js +4 -4
- package/src/Card/models/captioned-image.js +15 -15
- package/src/Card/models/card.js +89 -89
- package/src/Card/models/classic-card.js +16 -16
- package/src/Card/models/control-card.js +7 -7
- package/src/Card/models/image-only.js +13 -13
- package/src/Card/util/card-factory.js +32 -32
- package/src/ContentCards/content-cards-provider.js +102 -102
- package/src/ContentCards/get-cached-content-cards.js +1 -1
- package/src/ContentCards/subscribe-to-content-cards-updates.js +3 -3
- package/src/ContentCards/ui/show-content-cards.js +5 -5
- package/src/Core/add-sdk-metadata.js +2 -2
- package/src/Core/change-user.js +3 -3
- package/src/Core/destroy.js +2 -2
- package/src/Core/disable-sdk.js +4 -4
- package/src/Core/enable-sdk.js +4 -4
- package/src/Core/get-device-id.js +2 -2
- package/src/Core/handle-braze-action.js +5 -5
- package/src/Core/log-custom-event.js +5 -5
- package/src/Core/log-ecommerce-event.js +5 -5
- package/src/Core/log-purchase.js +9 -9
- package/src/Core/open-session.js +7 -7
- package/src/Core/set-logger.js +2 -2
- package/src/Core/toggle-logging.js +2 -2
- package/src/Core/wipe-data.js +6 -6
- package/src/DUST/dust-provider.js +249 -240
- package/src/DUST/dust-shared-worker-code.js +1 -1
- package/src/DUST/dust-shared-worker-impl.js +15 -14
- package/src/DUST/dust-worker-bridge.js +50 -35
- package/src/DUST/subscribe-to-dust.js +7 -7
- package/src/FeatureFlags/feature-flag-factory.js +8 -8
- package/src/FeatureFlags/feature-flag.js +3 -3
- package/src/FeatureFlags/feature-flags-provider.js +21 -21
- package/src/FeatureFlags/log-feature-flag-impression.js +5 -5
- package/src/FeatureFlags/subscribe-to-feature-flags-updates.js +1 -1
- package/src/InAppMessage/constants.js +3 -3
- package/src/InAppMessage/defer-in-app-message.js +4 -4
- package/src/InAppMessage/display/html-message-to-html.js +4 -4
- package/src/InAppMessage/display/in-app-message-to-html.js +16 -16
- package/src/InAppMessage/in-app-message-factory.js +36 -36
- package/src/InAppMessage/in-app-message-manager.js +78 -78
- package/src/InAppMessage/log-in-app-message-button-click.js +4 -4
- package/src/InAppMessage/log-in-app-message-click.js +3 -3
- package/src/InAppMessage/log-in-app-message-html-click.js +5 -5
- package/src/InAppMessage/log-in-app-message-impression.js +4 -4
- package/src/InAppMessage/models/control-message.js +4 -4
- package/src/InAppMessage/models/full-screen-message.js +4 -4
- package/src/InAppMessage/models/html-message.js +3 -3
- package/src/InAppMessage/models/in-app-message-button.js +4 -4
- package/src/InAppMessage/models/in-app-message.js +12 -12
- package/src/InAppMessage/models/modal-message.js +4 -4
- package/src/InAppMessage/models/slide-up-message.js +4 -4
- package/src/InAppMessage/models/templated-in-app-message.js +8 -8
- package/src/InAppMessage/subscribe-to-in-app-message.js +1 -1
- package/src/InAppMessage/ui/automatically-show-in-app-messages.js +3 -3
- package/src/InAppMessage/ui/show-in-app-message.js +14 -14
- package/src/Push/push-manager-factory.js +2 -2
- package/src/Push/push-manager.js +38 -38
- package/src/Push/utils/push-utils.js +6 -6
- package/src/User/user-manager.js +14 -14
- package/src/User/user.js +25 -25
- package/src/common/base-provider.js +1 -1
- package/src/common/content-cards-display.js +7 -7
- package/src/common/event-logger.js +3 -3
- package/src/common/properties-base.js +3 -3
- package/src/l10n/l10n-manager-factory.js +1 -1
- package/src/l10n/l10n-manager.js +3 -3
- package/src/managers/auth-manager.js +11 -11
- package/src/managers/braze-instance.js +56 -56
- package/src/managers/device-manager.js +10 -10
- package/src/managers/network-manager.js +102 -101
- package/src/managers/server-config-manager.js +115 -98
- package/src/managers/session-manager.js +20 -20
- package/src/managers/storage-manager-factory.js +9 -9
- package/src/managers/storage-manager.js +74 -74
- package/src/managers/subscription-manager.js +2 -2
- package/src/managers/utils.js +1 -1
- package/src/models/backend-errors.js +5 -5
- package/src/models/braze-event.js +1 -1
- package/src/models/device.js +1 -1
- package/src/models/identifier.js +2 -2
- package/src/models/push-token.js +6 -6
- package/src/models/request-result.js +1 -1
- package/src/models/server-config.js +42 -24
- package/src/request-controller.js +126 -126
- package/src/triggers/models/custom-event-data.js +4 -4
- package/src/triggers/models/custom-event-property-data.js +5 -5
- package/src/triggers/models/filter-set.js +2 -2
- package/src/triggers/models/filter.js +1 -1
- package/src/triggers/models/in-app-message-click-data.js +1 -1
- package/src/triggers/models/purchase-data.js +1 -1
- package/src/triggers/models/purchase-property-data.js +2 -2
- package/src/triggers/models/push-click-data.js +1 -1
- package/src/triggers/models/trigger-condition.js +33 -33
- package/src/triggers/models/trigger-events.js +1 -1
- package/src/triggers/models/trigger.js +33 -33
- package/src/triggers/triggers-provider-factory.js +1 -1
- package/src/triggers/triggers-provider.js +68 -68
- package/src/types.js +2 -2
- package/src/ui/js/attach-css.js +1 -1
- package/src/util/braze-actions.js +7 -7
- package/src/util/browser-detector.js +2 -2
- package/src/util/client-hints-parser.js +4 -4
- package/src/util/code-utils.js +2 -2
- package/src/util/deprecation-utils.js +2 -2
- package/src/util/dom-utils.js +7 -7
- package/src/util/ecommerce-event-validation.js +52 -35
- package/src/util/html-display-utils.js +11 -11
- package/src/util/net.js +4 -4
- package/src/util/request-header-utils.js +17 -17
- package/src/util/string-utils.js +2 -2
- package/src/util/user-agent-parser.js +2 -2
- package/src/util/validation-utils.js +12 -12
- package/src/util/window-utils.js +2 -2
|
@@ -5,7 +5,7 @@ import Pt from "./device-manager.js";
|
|
|
5
5
|
import DeviceProperties from "../Core/device-properties.js";
|
|
6
6
|
import {
|
|
7
7
|
isArray as g,
|
|
8
|
-
keys as
|
|
8
|
+
keys as C,
|
|
9
9
|
validateValueIsFromEnum as ta,
|
|
10
10
|
values as Wt,
|
|
11
11
|
} from "../util/code-utils.js";
|
|
@@ -24,7 +24,7 @@ import { User } from "../User/index.js";
|
|
|
24
24
|
import { parseQueryStringKeyValues as lt } from "../util/url-utils.js";
|
|
25
25
|
import { WindowUtils as no } from "../util/window-utils.js";
|
|
26
26
|
import { CoreStrings as R } from "../common/constants.js";
|
|
27
|
-
import { SupportedOptions as li, logger as
|
|
27
|
+
import { SupportedOptions as li, logger as b } from "../../shared-lib/index.js";
|
|
28
28
|
import _t from "../models/identifier.js";
|
|
29
29
|
const U = {
|
|
30
30
|
_h: "allowCrawlerActivity",
|
|
@@ -32,27 +32,27 @@ const U = {
|
|
|
32
32
|
se: "cookieExpiryInDays",
|
|
33
33
|
Oh: "noCookies",
|
|
34
34
|
Th: "devicePropertyAllowlist",
|
|
35
|
-
|
|
35
|
+
ka: "disablePushTokenMaintenance",
|
|
36
36
|
Rh: "enableLogging",
|
|
37
37
|
Ph: "enableSdkAuthentication",
|
|
38
|
-
|
|
38
|
+
_a: "manageServiceWorkerExternally",
|
|
39
39
|
Dh: "minimumIntervalBetweenTriggerActionsInSeconds",
|
|
40
40
|
Lh: "sessionTimeoutInSeconds",
|
|
41
41
|
yh: "appVersion",
|
|
42
42
|
Mh: "appVersionNumber",
|
|
43
43
|
xa: "serviceWorkerLocation",
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
Ma: "safariWebsitePushId",
|
|
45
|
+
qa: "localization",
|
|
46
46
|
sr: "contentSecurityNonce",
|
|
47
47
|
nr: "allowUserSuppliedJavascript",
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
ja: "inAppMessageZIndex",
|
|
49
|
+
ba: "openInAppMessagesInNewTab",
|
|
50
50
|
tn: "openCardsInNewTab",
|
|
51
51
|
oh: "requireExplicitInAppMessageDismissal",
|
|
52
52
|
Uh: "doNotLoadFontAwesome",
|
|
53
53
|
Wh: "deviceId",
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
ya: "serviceWorkerScope",
|
|
55
|
+
Ye: "dustHost",
|
|
56
56
|
Bh: "sdkFlavor",
|
|
57
57
|
};
|
|
58
58
|
class ci {
|
|
@@ -65,8 +65,8 @@ class ci {
|
|
|
65
65
|
(this.B = null),
|
|
66
66
|
(this.Ru = null),
|
|
67
67
|
(this.h = null),
|
|
68
|
-
(this.j = null),
|
|
69
68
|
(this.C = null),
|
|
69
|
+
(this.j = null),
|
|
70
70
|
(this.Ss = null),
|
|
71
71
|
(this.Yh = ""),
|
|
72
72
|
(this.isInitialized = !1),
|
|
@@ -77,34 +77,34 @@ class ci {
|
|
|
77
77
|
(this.Jh = []),
|
|
78
78
|
(this.Xh = []),
|
|
79
79
|
(this.In = []),
|
|
80
|
-
(this.Vh = "6.
|
|
80
|
+
(this.Vh = "6.9.0");
|
|
81
81
|
}
|
|
82
82
|
Zh(t) {
|
|
83
|
-
this.qh.
|
|
83
|
+
this.qh.Ut(t);
|
|
84
84
|
}
|
|
85
85
|
uh(t) {
|
|
86
|
-
this.Hh.
|
|
86
|
+
this.Hh.Ut(t);
|
|
87
87
|
}
|
|
88
88
|
initialize(t, i) {
|
|
89
89
|
var e, r, o;
|
|
90
90
|
if (this.ao())
|
|
91
|
-
return
|
|
91
|
+
return b.info("Braze has already been initialized with an API key."), !0;
|
|
92
92
|
this.options = i || {};
|
|
93
93
|
let n = this.er(U.Rh);
|
|
94
94
|
const h = lt(no.Qh());
|
|
95
95
|
if (
|
|
96
96
|
(h && "true" === h.brazeLogging && (n = !0),
|
|
97
|
-
|
|
98
|
-
|
|
97
|
+
b.init(n),
|
|
98
|
+
b.info(
|
|
99
99
|
`Initialization Options: ${JSON.stringify(this.options, null, 2)}`,
|
|
100
100
|
),
|
|
101
101
|
null == t || "" === t || "string" != typeof t)
|
|
102
102
|
)
|
|
103
|
-
return
|
|
103
|
+
return b.error("Braze requires a valid API key to be initialized."), !1;
|
|
104
104
|
this.tu = t;
|
|
105
105
|
let l = this.er(U.Nh);
|
|
106
106
|
if (null == l || "" === l || "string" != typeof l)
|
|
107
|
-
return
|
|
107
|
+
return b.error("Braze requires a valid baseUrl to be initialized."), !1;
|
|
108
108
|
!1 === /^https?:/.test(l) && (l = `https://${l}`);
|
|
109
109
|
const a = l;
|
|
110
110
|
if (
|
|
@@ -115,7 +115,7 @@ class ci {
|
|
|
115
115
|
ro.il && !this.er(U._h))
|
|
116
116
|
)
|
|
117
117
|
return (
|
|
118
|
-
|
|
118
|
+
b.info("Ignoring activity from crawler bot " + navigator.userAgent),
|
|
119
119
|
(this.$h = !0),
|
|
120
120
|
!1
|
|
121
121
|
);
|
|
@@ -123,24 +123,24 @@ class ci {
|
|
|
123
123
|
c = this.er(U.se),
|
|
124
124
|
m = Zt.sl();
|
|
125
125
|
if (
|
|
126
|
-
((this.
|
|
127
|
-
u && this.
|
|
126
|
+
((this.j = Zt.rl(t, u, c)),
|
|
127
|
+
u && this.j.hl(t),
|
|
128
128
|
new ne.le(null, !0).wr(s.ce))
|
|
129
129
|
)
|
|
130
130
|
return (
|
|
131
|
-
|
|
131
|
+
b.info("Ignoring all activity due to previous opt out"),
|
|
132
132
|
(this.$h = !0),
|
|
133
133
|
!1
|
|
134
134
|
);
|
|
135
|
-
for (const t of
|
|
135
|
+
for (const t of C(this.options))
|
|
136
136
|
-1 === Wt(li).indexOf(t) &&
|
|
137
|
-
|
|
137
|
+
b.warn(`Ignoring unknown initialization option '${t}'.`);
|
|
138
138
|
const p = ["mparticle", "wordpress", "tealium"];
|
|
139
139
|
if (null != this.er(U.Bh)) {
|
|
140
140
|
const t = this.er(U.Bh);
|
|
141
141
|
-1 !== p.indexOf(t)
|
|
142
142
|
? (this.Kh = t)
|
|
143
|
-
:
|
|
143
|
+
: b.error("Invalid sdk flavor passed: " + t);
|
|
144
144
|
}
|
|
145
145
|
let d = this.er(li.Th);
|
|
146
146
|
if (null != d)
|
|
@@ -155,28 +155,28 @@ class ci {
|
|
|
155
155
|
) && t.push(d[i]);
|
|
156
156
|
d = t;
|
|
157
157
|
} else
|
|
158
|
-
|
|
158
|
+
b.error(
|
|
159
159
|
"devicePropertyAllowlist must be an array. Defaulting to all properties.",
|
|
160
160
|
),
|
|
161
161
|
(d = null);
|
|
162
|
-
const
|
|
163
|
-
if (
|
|
164
|
-
const t = new _t(
|
|
165
|
-
this.
|
|
162
|
+
const E = this.er(U.Wh);
|
|
163
|
+
if (E) {
|
|
164
|
+
const t = new _t(E);
|
|
165
|
+
this.j.Iu(s.Ou.Wh, t);
|
|
166
166
|
}
|
|
167
|
-
(this.eu = new Pt(this.
|
|
168
|
-
(this.h = new Yt(this.
|
|
169
|
-
(this.Ss = new Ut(this.h, this.
|
|
170
|
-
(this.
|
|
171
|
-
const
|
|
172
|
-
(this.Gh = new Gt(this.
|
|
173
|
-
this.S(
|
|
167
|
+
(this.eu = new Pt(this.j, d)),
|
|
168
|
+
(this.h = new Yt(this.j)),
|
|
169
|
+
(this.Ss = new Ut(this.h, this.j)),
|
|
170
|
+
(this.C = new Xt(this.j, this.Ss, this.h, this.er(U.Lh)));
|
|
171
|
+
const I = new f();
|
|
172
|
+
(this.Gh = new Gt(this.j, this.er(U.Ph), I)),
|
|
173
|
+
this.S(I),
|
|
174
174
|
(this.B = new Vt(
|
|
175
175
|
this.eu,
|
|
176
|
-
this.
|
|
176
|
+
this.j,
|
|
177
177
|
this.Gh,
|
|
178
178
|
this.Ss,
|
|
179
|
-
this.
|
|
179
|
+
this.C,
|
|
180
180
|
this.h,
|
|
181
181
|
this.tu,
|
|
182
182
|
this.Yh,
|
|
@@ -188,20 +188,20 @@ class ci {
|
|
|
188
188
|
(this.Ru = new Kt(
|
|
189
189
|
this.tu,
|
|
190
190
|
this.Yh,
|
|
191
|
-
this.
|
|
191
|
+
this.C,
|
|
192
192
|
this.eu,
|
|
193
193
|
this.Ss,
|
|
194
194
|
this.h,
|
|
195
|
-
this.
|
|
195
|
+
this.j,
|
|
196
196
|
(t) => {
|
|
197
|
-
if (this.ao()) for (const i of this.vr()) i.
|
|
197
|
+
if (this.ao()) for (const i of this.vr()) i.q(t);
|
|
198
198
|
},
|
|
199
199
|
this.Gh,
|
|
200
200
|
this.B,
|
|
201
201
|
)),
|
|
202
202
|
this.Ru.initialize(),
|
|
203
|
-
u || this.
|
|
204
|
-
|
|
203
|
+
u || this.j.ll(),
|
|
204
|
+
b.info(
|
|
205
205
|
`Initialized for the Braze backend at "${this.er(
|
|
206
206
|
U.Nh,
|
|
207
207
|
)}" with API key "${this.tu}".`,
|
|
@@ -229,13 +229,13 @@ class ci {
|
|
|
229
229
|
this.qh.A(this.options),
|
|
230
230
|
(this.isInitialized = !0),
|
|
231
231
|
window.dispatchEvent(new CustomEvent("braze.initialized"));
|
|
232
|
-
const
|
|
232
|
+
const _ = null === (e = this.C) || void 0 === e ? void 0 : e.al();
|
|
233
233
|
return (
|
|
234
234
|
m ||
|
|
235
|
-
null ==
|
|
236
|
-
(null === (r = this.
|
|
235
|
+
null == _ ||
|
|
236
|
+
(null === (r = this.C) || void 0 === r
|
|
237
237
|
? void 0
|
|
238
|
-
: r.ul(new Date().valueOf(),
|
|
238
|
+
: r.ul(new Date().valueOf(), _)) ||
|
|
239
239
|
null === (o = this.Ru) ||
|
|
240
240
|
void 0 === o ||
|
|
241
241
|
o.Ar(),
|
|
@@ -243,7 +243,7 @@ class ci {
|
|
|
243
243
|
);
|
|
244
244
|
}
|
|
245
245
|
destroy(t) {
|
|
246
|
-
if ((
|
|
246
|
+
if ((b.destroy(), this.ao())) {
|
|
247
247
|
this.Hh.A(), this.Hh.removeAllSubscriptions();
|
|
248
248
|
for (const t of this.Jh) t.destroy();
|
|
249
249
|
this.Jh = [];
|
|
@@ -258,13 +258,13 @@ class ci {
|
|
|
258
258
|
(this.eu = null),
|
|
259
259
|
(this.B = null),
|
|
260
260
|
(this.h = null),
|
|
261
|
-
(this.
|
|
261
|
+
(this.C = null),
|
|
262
262
|
(this.Ss = null),
|
|
263
263
|
(this.options = {}),
|
|
264
264
|
(this.Kh = void 0),
|
|
265
265
|
(this.isInitialized = !1),
|
|
266
266
|
(this.$h = !1),
|
|
267
|
-
t && (this.
|
|
267
|
+
t && (this.j = null);
|
|
268
268
|
}
|
|
269
269
|
}
|
|
270
270
|
rr() {
|
|
@@ -298,10 +298,10 @@ class ci {
|
|
|
298
298
|
return this.h;
|
|
299
299
|
}
|
|
300
300
|
u() {
|
|
301
|
-
return this.
|
|
301
|
+
return this.C;
|
|
302
302
|
}
|
|
303
303
|
p() {
|
|
304
|
-
return this.
|
|
304
|
+
return this.j;
|
|
305
305
|
}
|
|
306
306
|
zr() {
|
|
307
307
|
if (this.Ss && this.Ru) return new User(this.Ss, this.Ru);
|
|
@@ -342,9 +342,9 @@ class ci {
|
|
|
342
342
|
}
|
|
343
343
|
ar(t, i) {
|
|
344
344
|
if (!this.rr()) return null;
|
|
345
|
-
return dr.o().
|
|
345
|
+
return dr.o().on(t, i);
|
|
346
346
|
}
|
|
347
|
-
|
|
347
|
+
qi() {
|
|
348
348
|
return this.Vh;
|
|
349
349
|
}
|
|
350
350
|
}
|
|
@@ -2,21 +2,21 @@ import ro from "../util/browser-detector.js";
|
|
|
2
2
|
import Se from "../models/device.js";
|
|
3
3
|
import DeviceProperties from "../Core/device-properties.js";
|
|
4
4
|
import _t from "../models/identifier.js";
|
|
5
|
-
import { logger as
|
|
5
|
+
import { logger as b, Guid as V } from "../../shared-lib/index.js";
|
|
6
6
|
import { STORAGE_KEYS as s } from "../managers/storage-manager.js";
|
|
7
7
|
import { values as Wt } from "../util/code-utils.js";
|
|
8
8
|
import { getErrorMessage as hi } from "../util/error-utils.js";
|
|
9
9
|
export default class Pt {
|
|
10
10
|
constructor(t, e) {
|
|
11
|
-
(this.
|
|
11
|
+
(this.j = t),
|
|
12
12
|
(this.Da = e),
|
|
13
|
-
(this.
|
|
13
|
+
(this.j = t),
|
|
14
14
|
null == e && (e = Wt(DeviceProperties)),
|
|
15
15
|
(this.Da = e);
|
|
16
16
|
}
|
|
17
17
|
ve(t = !0) {
|
|
18
|
-
let e = this.
|
|
19
|
-
null == e && ((e = new _t(V.de())), t && this.
|
|
18
|
+
let e = this.j.$u(s.Ou.Wh);
|
|
19
|
+
null == e && ((e = new _t(V.de())), t && this.j.Iu(s.Ou.Wh, e));
|
|
20
20
|
const r = new Se(e.Tu);
|
|
21
21
|
for (let t = 0; t < this.Da.length; t++) {
|
|
22
22
|
switch (this.Da[t]) {
|
|
@@ -45,8 +45,8 @@ export default class Pt {
|
|
|
45
45
|
return r;
|
|
46
46
|
}
|
|
47
47
|
Fa() {
|
|
48
|
-
if (ro.
|
|
49
|
-
const t = this.
|
|
48
|
+
if (ro.Aa()) return ro.Aa();
|
|
49
|
+
const t = this.j.St(s.It.Ba);
|
|
50
50
|
return t && t.os_version ? t.os_version : ro.Fa();
|
|
51
51
|
}
|
|
52
52
|
Ja(t) {
|
|
@@ -58,7 +58,7 @@ export default class Pt {
|
|
|
58
58
|
if (null != t && "" !== t) return t;
|
|
59
59
|
}
|
|
60
60
|
} catch (t) {
|
|
61
|
-
|
|
61
|
+
b.info(
|
|
62
62
|
"Intl.DateTimeFormat threw an error, cannot detect user's time zone:" +
|
|
63
63
|
hi(t),
|
|
64
64
|
),
|
|
@@ -66,9 +66,9 @@ export default class Pt {
|
|
|
66
66
|
}
|
|
67
67
|
if (e) return "";
|
|
68
68
|
const r = t.getTimezoneOffset();
|
|
69
|
-
return this.
|
|
69
|
+
return this.Ha(r);
|
|
70
70
|
}
|
|
71
|
-
|
|
71
|
+
Ha(t) {
|
|
72
72
|
const e = Math.trunc(t / 60),
|
|
73
73
|
r = Math.trunc(t % 60);
|
|
74
74
|
let s = "GMT";
|