@depict-ai/dpc 2.6.26 → 2.6.27
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/ES10/index.cjs +18 -3
- package/ES10/index.d.ts +1 -1
- package/ES10/index.js +19 -4
- package/dist/index.cjs +18 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +19 -4
- package/latest/index.cjs +17 -3
- package/latest/index.d.ts +1 -1
- package/latest/index.js +18 -4
- package/package.json +3 -3
package/ES10/index.cjs
CHANGED
|
@@ -17,7 +17,7 @@ function $parcel$interopDefault(a) {
|
|
|
17
17
|
$parcel$export(module.exports, "DPC", () => $89ae37e3a26189b4$export$820526014323765f);
|
|
18
18
|
$parcel$export(module.exports, "version", () => $fcc8287091fb489d$export$83d89fbfd8236492);
|
|
19
19
|
/*! Depict PerformanceClient */
|
|
20
|
-
const $fcc8287091fb489d$export$83d89fbfd8236492 = "2.6.
|
|
20
|
+
const $fcc8287091fb489d$export$83d89fbfd8236492 = "2.6.27";
|
|
21
21
|
let $405164bc961cc106$export$8ae64f3d447c14f7;
|
|
22
22
|
(function (ProductCardType) {
|
|
23
23
|
ProductCardType[ProductCardType["Recommendation"] = 0] = "Recommendation";
|
|
@@ -125,6 +125,20 @@ const $5323e9ffea4e414a$export$7a1bb429756ced60 = dpc => {
|
|
|
125
125
|
});
|
|
126
126
|
}
|
|
127
127
|
};
|
|
128
|
+
function $0f3720f61ca385f0$export$46cf5f54d4d7518() {
|
|
129
|
+
try {
|
|
130
|
+
var _globalThis$crypto, _globalThis$crypto2;
|
|
131
|
+
if (typeof ((_globalThis$crypto = globalThis.crypto) === null || _globalThis$crypto === void 0 ? void 0 : _globalThis$crypto.randomUUID) === "function") return globalThis.crypto.randomUUID();
|
|
132
|
+
const bytes = (_globalThis$crypto2 = globalThis.crypto) === null || _globalThis$crypto2 === void 0 ? void 0 : _globalThis$crypto2.getRandomValues(new Uint8Array(16));
|
|
133
|
+
if (!bytes) return undefined;
|
|
134
|
+
bytes[6] = bytes[6] & 0x0f | 0x40;
|
|
135
|
+
bytes[8] = bytes[8] & 0x3f | 0x80;
|
|
136
|
+
const hex = Array.from(bytes, byte => (byte + 0x100).toString(16).slice(1)).join("");
|
|
137
|
+
return hex.replace(/(.{8})(.{4})(.{4})(.{4})(.{12})/, "$1-$2-$3-$4-$5");
|
|
138
|
+
} catch {
|
|
139
|
+
return undefined;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
128
142
|
function $89ae37e3a26189b4$var$_classPrivateMethodInitSpec(obj, privateSet) {
|
|
129
143
|
$89ae37e3a26189b4$var$_checkPrivateRedeclaration(obj, privateSet);
|
|
130
144
|
privateSet.add(obj);
|
|
@@ -330,8 +344,9 @@ class $89ae37e3a26189b4$export$820526014323765f {
|
|
|
330
344
|
quantity: item.quantity
|
|
331
345
|
}));
|
|
332
346
|
if ($9AWcE$depictaiutilishared.get_event_api() === "v4") {
|
|
333
|
-
const
|
|
334
|
-
|
|
347
|
+
const eventId = $0f3720f61ca385f0$export$46cf5f54d4d7518();
|
|
348
|
+
const event = eventId && $9AWcE$depictaiutilishared.native_purchase_event({
|
|
349
|
+
event_id: eventId,
|
|
335
350
|
market: this.market,
|
|
336
351
|
session_id: session_id,
|
|
337
352
|
transaction_id: data.transaction_id,
|
package/ES10/index.d.ts
CHANGED
package/ES10/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { add_to_version_info as $4uUHR$add_to_version_info, dlog as $4uUHR$dlog, impression_track_element as $4uUHR$impression_track_element, derror as $4uUHR$derror, depict_click as $4uUHR$depict_click, get_event_api as $4uUHR$get_event_api, native_purchase_event as $4uUHR$native_purchase_event,
|
|
1
|
+
import { add_to_version_info as $4uUHR$add_to_version_info, dlog as $4uUHR$dlog, impression_track_element as $4uUHR$impression_track_element, derror as $4uUHR$derror, depict_click as $4uUHR$depict_click, get_event_api as $4uUHR$get_event_api, native_purchase_event as $4uUHR$native_purchase_event, queue_native_events as $4uUHR$queue_native_events, foolproof_send_beacon as $4uUHR$foolproof_send_beacon, base_url as $4uUHR$base_url, observer as $4uUHR$observer, instant_exec_on_suspect_history_change as $4uUHR$instant_exec_on_suspect_history_change, catchify as $4uUHR$catchify, set_event_transport as $4uUHR$set_event_transport, set_event_api as $4uUHR$set_event_api, get_session_id as $4uUHR$get_session_id, get_tracking_event_context_data as $4uUHR$get_tracking_event_context_data, send_depict_unfiltered as $4uUHR$send_depict_unfiltered } from "@depict-ai/utilishared/ES10";
|
|
2
2
|
import $4uUHR$babelruntimehelpersdefineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import $4uUHR$babelruntimehelpersclassPrivateFieldGet from "@babel/runtime/helpers/classPrivateFieldGet";
|
|
4
4
|
import $4uUHR$babelruntimehelpersclassPrivateFieldSet from "@babel/runtime/helpers/classPrivateFieldSet";
|
|
@@ -6,7 +6,7 @@ import $4uUHR$babelruntimehelpersclassPrivateFieldSet from "@babel/runtime/helpe
|
|
|
6
6
|
/*! Depict PerformanceClient */
|
|
7
7
|
import { register_es_version } from "../multi_import_deduplicator.mjs";
|
|
8
8
|
register_es_version("performance-client", "ES10");
|
|
9
|
-
const $3242b911de3d57ad$export$83d89fbfd8236492 = "2.6.
|
|
9
|
+
const $3242b911de3d57ad$export$83d89fbfd8236492 = "2.6.27";
|
|
10
10
|
let $983195e3c4979825$export$8ae64f3d447c14f7;
|
|
11
11
|
(function (ProductCardType) {
|
|
12
12
|
ProductCardType[ProductCardType["Recommendation"] = 0] = "Recommendation";
|
|
@@ -114,6 +114,20 @@ const $f06bf37f1e6136a4$export$7a1bb429756ced60 = dpc => {
|
|
|
114
114
|
});
|
|
115
115
|
}
|
|
116
116
|
};
|
|
117
|
+
function $287a58d530c9b4e3$export$46cf5f54d4d7518() {
|
|
118
|
+
try {
|
|
119
|
+
var _globalThis$crypto, _globalThis$crypto2;
|
|
120
|
+
if (typeof ((_globalThis$crypto = globalThis.crypto) === null || _globalThis$crypto === void 0 ? void 0 : _globalThis$crypto.randomUUID) === "function") return globalThis.crypto.randomUUID();
|
|
121
|
+
const bytes = (_globalThis$crypto2 = globalThis.crypto) === null || _globalThis$crypto2 === void 0 ? void 0 : _globalThis$crypto2.getRandomValues(new Uint8Array(16));
|
|
122
|
+
if (!bytes) return undefined;
|
|
123
|
+
bytes[6] = bytes[6] & 0x0f | 0x40;
|
|
124
|
+
bytes[8] = bytes[8] & 0x3f | 0x80;
|
|
125
|
+
const hex = Array.from(bytes, byte => (byte + 0x100).toString(16).slice(1)).join("");
|
|
126
|
+
return hex.replace(/(.{8})(.{4})(.{4})(.{4})(.{12})/, "$1-$2-$3-$4-$5");
|
|
127
|
+
} catch {
|
|
128
|
+
return undefined;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
117
131
|
function $53af71a3700e1e90$var$_classPrivateMethodInitSpec(obj, privateSet) {
|
|
118
132
|
$53af71a3700e1e90$var$_checkPrivateRedeclaration(obj, privateSet);
|
|
119
133
|
privateSet.add(obj);
|
|
@@ -319,8 +333,9 @@ class $53af71a3700e1e90$export$820526014323765f {
|
|
|
319
333
|
quantity: item.quantity
|
|
320
334
|
}));
|
|
321
335
|
if ($4uUHR$get_event_api() === "v4") {
|
|
322
|
-
const
|
|
323
|
-
|
|
336
|
+
const eventId = $287a58d530c9b4e3$export$46cf5f54d4d7518();
|
|
337
|
+
const event = eventId && $4uUHR$native_purchase_event({
|
|
338
|
+
event_id: eventId,
|
|
324
339
|
market: this.market,
|
|
325
340
|
session_id: session_id,
|
|
326
341
|
transaction_id: data.transaction_id,
|
package/dist/index.cjs
CHANGED
|
@@ -17,7 +17,7 @@ function $parcel$interopDefault(a) {
|
|
|
17
17
|
$parcel$export(module.exports, "DPC", () => $89ae37e3a26189b4$export$820526014323765f);
|
|
18
18
|
$parcel$export(module.exports, "version", () => $fcc8287091fb489d$export$83d89fbfd8236492);
|
|
19
19
|
/*! Depict PerformanceClient */
|
|
20
|
-
const $fcc8287091fb489d$export$83d89fbfd8236492 = "2.6.
|
|
20
|
+
const $fcc8287091fb489d$export$83d89fbfd8236492 = "2.6.27";
|
|
21
21
|
let $405164bc961cc106$export$8ae64f3d447c14f7;
|
|
22
22
|
(function (ProductCardType) {
|
|
23
23
|
ProductCardType[ProductCardType["Recommendation"] = 0] = "Recommendation";
|
|
@@ -125,6 +125,20 @@ const $5323e9ffea4e414a$export$7a1bb429756ced60 = dpc => {
|
|
|
125
125
|
});
|
|
126
126
|
}
|
|
127
127
|
};
|
|
128
|
+
function $0f3720f61ca385f0$export$46cf5f54d4d7518() {
|
|
129
|
+
try {
|
|
130
|
+
var _globalThis$crypto, _globalThis$crypto2;
|
|
131
|
+
if (typeof ((_globalThis$crypto = globalThis.crypto) === null || _globalThis$crypto === void 0 ? void 0 : _globalThis$crypto.randomUUID) === "function") return globalThis.crypto.randomUUID();
|
|
132
|
+
const bytes = (_globalThis$crypto2 = globalThis.crypto) === null || _globalThis$crypto2 === void 0 ? void 0 : _globalThis$crypto2.getRandomValues(new Uint8Array(16));
|
|
133
|
+
if (!bytes) return undefined;
|
|
134
|
+
bytes[6] = bytes[6] & 0x0f | 0x40;
|
|
135
|
+
bytes[8] = bytes[8] & 0x3f | 0x80;
|
|
136
|
+
const hex = Array.from(bytes, byte => (byte + 0x100).toString(16).slice(1)).join("");
|
|
137
|
+
return hex.replace(/(.{8})(.{4})(.{4})(.{4})(.{12})/, "$1-$2-$3-$4-$5");
|
|
138
|
+
} catch {
|
|
139
|
+
return undefined;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
128
142
|
function $89ae37e3a26189b4$var$_classPrivateMethodInitSpec(obj, privateSet) {
|
|
129
143
|
$89ae37e3a26189b4$var$_checkPrivateRedeclaration(obj, privateSet);
|
|
130
144
|
privateSet.add(obj);
|
|
@@ -330,8 +344,9 @@ class $89ae37e3a26189b4$export$820526014323765f {
|
|
|
330
344
|
quantity: item.quantity
|
|
331
345
|
}));
|
|
332
346
|
if ($9AWcE$depictaiutilishared.get_event_api() === "v4") {
|
|
333
|
-
const
|
|
334
|
-
|
|
347
|
+
const eventId = $0f3720f61ca385f0$export$46cf5f54d4d7518();
|
|
348
|
+
const event = eventId && $9AWcE$depictaiutilishared.native_purchase_event({
|
|
349
|
+
event_id: eventId,
|
|
335
350
|
market: this.market,
|
|
336
351
|
session_id: session_id,
|
|
337
352
|
transaction_id: data.transaction_id,
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { add_to_version_info as $4uUHR$add_to_version_info, dlog as $4uUHR$dlog, impression_track_element as $4uUHR$impression_track_element, derror as $4uUHR$derror, depict_click as $4uUHR$depict_click, get_event_api as $4uUHR$get_event_api, native_purchase_event as $4uUHR$native_purchase_event,
|
|
1
|
+
import { add_to_version_info as $4uUHR$add_to_version_info, dlog as $4uUHR$dlog, impression_track_element as $4uUHR$impression_track_element, derror as $4uUHR$derror, depict_click as $4uUHR$depict_click, get_event_api as $4uUHR$get_event_api, native_purchase_event as $4uUHR$native_purchase_event, queue_native_events as $4uUHR$queue_native_events, foolproof_send_beacon as $4uUHR$foolproof_send_beacon, base_url as $4uUHR$base_url, observer as $4uUHR$observer, instant_exec_on_suspect_history_change as $4uUHR$instant_exec_on_suspect_history_change, catchify as $4uUHR$catchify, set_event_transport as $4uUHR$set_event_transport, set_event_api as $4uUHR$set_event_api, get_session_id as $4uUHR$get_session_id, get_tracking_event_context_data as $4uUHR$get_tracking_event_context_data, send_depict_unfiltered as $4uUHR$send_depict_unfiltered } from "@depict-ai/utilishared/ES10";
|
|
2
2
|
import $4uUHR$babelruntimehelpersdefineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import $4uUHR$babelruntimehelpersclassPrivateFieldGet from "@babel/runtime/helpers/classPrivateFieldGet";
|
|
4
4
|
import $4uUHR$babelruntimehelpersclassPrivateFieldSet from "@babel/runtime/helpers/classPrivateFieldSet";
|
|
@@ -6,7 +6,7 @@ import $4uUHR$babelruntimehelpersclassPrivateFieldSet from "@babel/runtime/helpe
|
|
|
6
6
|
/*! Depict PerformanceClient */
|
|
7
7
|
import { register_es_version } from "../multi_import_deduplicator.mjs";
|
|
8
8
|
register_es_version("performance-client", "ES10");
|
|
9
|
-
const $3242b911de3d57ad$export$83d89fbfd8236492 = "2.6.
|
|
9
|
+
const $3242b911de3d57ad$export$83d89fbfd8236492 = "2.6.27";
|
|
10
10
|
let $983195e3c4979825$export$8ae64f3d447c14f7;
|
|
11
11
|
(function (ProductCardType) {
|
|
12
12
|
ProductCardType[ProductCardType["Recommendation"] = 0] = "Recommendation";
|
|
@@ -114,6 +114,20 @@ const $f06bf37f1e6136a4$export$7a1bb429756ced60 = dpc => {
|
|
|
114
114
|
});
|
|
115
115
|
}
|
|
116
116
|
};
|
|
117
|
+
function $287a58d530c9b4e3$export$46cf5f54d4d7518() {
|
|
118
|
+
try {
|
|
119
|
+
var _globalThis$crypto, _globalThis$crypto2;
|
|
120
|
+
if (typeof ((_globalThis$crypto = globalThis.crypto) === null || _globalThis$crypto === void 0 ? void 0 : _globalThis$crypto.randomUUID) === "function") return globalThis.crypto.randomUUID();
|
|
121
|
+
const bytes = (_globalThis$crypto2 = globalThis.crypto) === null || _globalThis$crypto2 === void 0 ? void 0 : _globalThis$crypto2.getRandomValues(new Uint8Array(16));
|
|
122
|
+
if (!bytes) return undefined;
|
|
123
|
+
bytes[6] = bytes[6] & 0x0f | 0x40;
|
|
124
|
+
bytes[8] = bytes[8] & 0x3f | 0x80;
|
|
125
|
+
const hex = Array.from(bytes, byte => (byte + 0x100).toString(16).slice(1)).join("");
|
|
126
|
+
return hex.replace(/(.{8})(.{4})(.{4})(.{4})(.{12})/, "$1-$2-$3-$4-$5");
|
|
127
|
+
} catch {
|
|
128
|
+
return undefined;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
117
131
|
function $53af71a3700e1e90$var$_classPrivateMethodInitSpec(obj, privateSet) {
|
|
118
132
|
$53af71a3700e1e90$var$_checkPrivateRedeclaration(obj, privateSet);
|
|
119
133
|
privateSet.add(obj);
|
|
@@ -319,8 +333,9 @@ class $53af71a3700e1e90$export$820526014323765f {
|
|
|
319
333
|
quantity: item.quantity
|
|
320
334
|
}));
|
|
321
335
|
if ($4uUHR$get_event_api() === "v4") {
|
|
322
|
-
const
|
|
323
|
-
|
|
336
|
+
const eventId = $287a58d530c9b4e3$export$46cf5f54d4d7518();
|
|
337
|
+
const event = eventId && $4uUHR$native_purchase_event({
|
|
338
|
+
event_id: eventId,
|
|
324
339
|
market: this.market,
|
|
325
340
|
session_id: session_id,
|
|
326
341
|
transaction_id: data.transaction_id,
|
package/latest/index.cjs
CHANGED
|
@@ -11,7 +11,7 @@ function $parcel$export(e, n, v, s) {
|
|
|
11
11
|
$parcel$export(module.exports, "DPC", () => $15e3eebad2263636$export$820526014323765f);
|
|
12
12
|
$parcel$export(module.exports, "version", () => $9c6b4a5c4c4f318d$export$83d89fbfd8236492);
|
|
13
13
|
/*! Depict PerformanceClient */
|
|
14
|
-
const $9c6b4a5c4c4f318d$export$83d89fbfd8236492 = "2.6.
|
|
14
|
+
const $9c6b4a5c4c4f318d$export$83d89fbfd8236492 = "2.6.27";
|
|
15
15
|
let $02e69dba644a2ef8$export$8ae64f3d447c14f7;
|
|
16
16
|
(function (ProductCardType) {
|
|
17
17
|
ProductCardType[ProductCardType["Recommendation"] = 0] = "Recommendation";
|
|
@@ -118,6 +118,19 @@ const $9ccf446d29413158$export$7a1bb429756ced60 = dpc => {
|
|
|
118
118
|
});
|
|
119
119
|
}
|
|
120
120
|
};
|
|
121
|
+
function $95ceb7dd195ee7f6$export$46cf5f54d4d7518() {
|
|
122
|
+
try {
|
|
123
|
+
if (typeof globalThis.crypto?.randomUUID === "function") return globalThis.crypto.randomUUID();
|
|
124
|
+
const bytes = globalThis.crypto?.getRandomValues(new Uint8Array(16));
|
|
125
|
+
if (!bytes) return undefined;
|
|
126
|
+
bytes[6] = bytes[6] & 0x0f | 0x40;
|
|
127
|
+
bytes[8] = bytes[8] & 0x3f | 0x80;
|
|
128
|
+
const hex = Array.from(bytes, byte => (byte + 0x100).toString(16).slice(1)).join("");
|
|
129
|
+
return hex.replace(/(.{8})(.{4})(.{4})(.{4})(.{12})/, "$1-$2-$3-$4-$5");
|
|
130
|
+
} catch {
|
|
131
|
+
return undefined;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
121
134
|
class $15e3eebad2263636$export$820526014323765f {
|
|
122
135
|
auto_observe = true;
|
|
123
136
|
/** Latest product_id found in the DOM. Used in a2c & pageview events on PDPs. */ /** The value of location.pathname when latest_product_id was set */ /** Latest session_id set on the client. Used for all events. */ /** if we've sent a page view event for the current href */
|
|
@@ -328,8 +341,9 @@ class $15e3eebad2263636$export$820526014323765f {
|
|
|
328
341
|
quantity: item.quantity
|
|
329
342
|
}));
|
|
330
343
|
if ($dwOGf$depictaiutilishared.get_event_api() === "v4") {
|
|
331
|
-
const
|
|
332
|
-
|
|
344
|
+
const eventId = $95ceb7dd195ee7f6$export$46cf5f54d4d7518();
|
|
345
|
+
const event = eventId && $dwOGf$depictaiutilishared.native_purchase_event({
|
|
346
|
+
event_id: eventId,
|
|
333
347
|
market: this.market,
|
|
334
348
|
session_id: session_id,
|
|
335
349
|
transaction_id: data.transaction_id,
|
package/latest/index.d.ts
CHANGED
package/latest/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { add_to_version_info as $lbGMC$add_to_version_info, dlog as $lbGMC$dlog, instant_exec_on_suspect_history_change as $lbGMC$instant_exec_on_suspect_history_change, catchify as $lbGMC$catchify, set_event_transport as $lbGMC$set_event_transport, set_event_api as $lbGMC$set_event_api, get_session_id as $lbGMC$get_session_id, get_tracking_event_context_data as $lbGMC$get_tracking_event_context_data, impression_track_element as $lbGMC$impression_track_element, derror as $lbGMC$derror, send_depict_unfiltered as $lbGMC$send_depict_unfiltered, depict_click as $lbGMC$depict_click, get_event_api as $lbGMC$get_event_api, native_purchase_event as $lbGMC$native_purchase_event,
|
|
1
|
+
import { add_to_version_info as $lbGMC$add_to_version_info, dlog as $lbGMC$dlog, instant_exec_on_suspect_history_change as $lbGMC$instant_exec_on_suspect_history_change, catchify as $lbGMC$catchify, set_event_transport as $lbGMC$set_event_transport, set_event_api as $lbGMC$set_event_api, get_session_id as $lbGMC$get_session_id, get_tracking_event_context_data as $lbGMC$get_tracking_event_context_data, impression_track_element as $lbGMC$impression_track_element, derror as $lbGMC$derror, send_depict_unfiltered as $lbGMC$send_depict_unfiltered, depict_click as $lbGMC$depict_click, get_event_api as $lbGMC$get_event_api, native_purchase_event as $lbGMC$native_purchase_event, queue_native_events as $lbGMC$queue_native_events, foolproof_send_beacon as $lbGMC$foolproof_send_beacon, base_url as $lbGMC$base_url, observer as $lbGMC$observer } from "@depict-ai/utilishared/latest";
|
|
2
2
|
|
|
3
3
|
/*! Depict PerformanceClient */
|
|
4
4
|
import { register_es_version } from "../multi_import_deduplicator.mjs";
|
|
5
5
|
register_es_version("performance-client", "latest");
|
|
6
|
-
const $3b068891cefe570d$export$83d89fbfd8236492 = "2.6.
|
|
6
|
+
const $3b068891cefe570d$export$83d89fbfd8236492 = "2.6.27";
|
|
7
7
|
let $ba8dc1a552d27224$export$8ae64f3d447c14f7;
|
|
8
8
|
(function (ProductCardType) {
|
|
9
9
|
ProductCardType[ProductCardType["Recommendation"] = 0] = "Recommendation";
|
|
@@ -110,6 +110,19 @@ const $b1ff6e3aa9b3b030$export$7a1bb429756ced60 = dpc => {
|
|
|
110
110
|
});
|
|
111
111
|
}
|
|
112
112
|
};
|
|
113
|
+
function $0d85880c809f7a17$export$46cf5f54d4d7518() {
|
|
114
|
+
try {
|
|
115
|
+
if (typeof globalThis.crypto?.randomUUID === "function") return globalThis.crypto.randomUUID();
|
|
116
|
+
const bytes = globalThis.crypto?.getRandomValues(new Uint8Array(16));
|
|
117
|
+
if (!bytes) return undefined;
|
|
118
|
+
bytes[6] = bytes[6] & 0x0f | 0x40;
|
|
119
|
+
bytes[8] = bytes[8] & 0x3f | 0x80;
|
|
120
|
+
const hex = Array.from(bytes, byte => (byte + 0x100).toString(16).slice(1)).join("");
|
|
121
|
+
return hex.replace(/(.{8})(.{4})(.{4})(.{4})(.{12})/, "$1-$2-$3-$4-$5");
|
|
122
|
+
} catch {
|
|
123
|
+
return undefined;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
113
126
|
class $fe563348936ab010$export$820526014323765f {
|
|
114
127
|
auto_observe = true;
|
|
115
128
|
/** Latest product_id found in the DOM. Used in a2c & pageview events on PDPs. */ /** The value of location.pathname when latest_product_id was set */ /** Latest session_id set on the client. Used for all events. */ /** if we've sent a page view event for the current href */
|
|
@@ -320,8 +333,9 @@ class $fe563348936ab010$export$820526014323765f {
|
|
|
320
333
|
quantity: item.quantity
|
|
321
334
|
}));
|
|
322
335
|
if ($lbGMC$get_event_api() === "v4") {
|
|
323
|
-
const
|
|
324
|
-
|
|
336
|
+
const eventId = $0d85880c809f7a17$export$46cf5f54d4d7518();
|
|
337
|
+
const event = eventId && $lbGMC$native_purchase_event({
|
|
338
|
+
event_id: eventId,
|
|
325
339
|
market: this.market,
|
|
326
340
|
session_id: session_id,
|
|
327
341
|
transaction_id: data.transaction_id,
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"url": "git+https://github.com/depict-org/depict-ui.git",
|
|
6
6
|
"directory": "browser-tags-v2/packages/performance-client"
|
|
7
7
|
},
|
|
8
|
-
"version": "2.6.
|
|
8
|
+
"version": "2.6.27",
|
|
9
9
|
"packageManager": "yarn@3.2.2",
|
|
10
10
|
"source": "./src/index.ts",
|
|
11
11
|
"types": "ES10/index.d.ts",
|
|
@@ -101,8 +101,8 @@
|
|
|
101
101
|
"@babel/plugin-transform-typescript": "^7.22.9",
|
|
102
102
|
"@babel/runtime": "^7.22.6",
|
|
103
103
|
"@babel/runtime-corejs3": "^7.22.6",
|
|
104
|
-
"@depict-ai/types": "^5.6.
|
|
105
|
-
"@depict-ai/utilishared": "^2.6.
|
|
104
|
+
"@depict-ai/types": "^5.6.23",
|
|
105
|
+
"@depict-ai/utilishared": "^2.6.23"
|
|
106
106
|
},
|
|
107
107
|
"main": "ES10/index.cjs",
|
|
108
108
|
"module": "ES10/index.js"
|