pb-sxp-ui 1.7.8 → 1.7.10
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/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +3 -3
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +3 -3
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +2 -2
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +3 -3
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/context/SxpDataSourceProvider.js +2 -2
- package/lib/core/context/SxpDataSourceProvider.js +2 -2
- package/package.json +1 -1
package/dist/pb-ui.js
CHANGED
@@ -833,7 +833,7 @@
|
|
833
833
|
client_user_agent: (_e = (_d = window === null || window === void 0 ? void 0 : window.navigator) === null || _d === void 0 ? void 0 : _d.userAgent) !== null && _e !== void 0 ? _e : '',
|
834
834
|
fbc: fbclid ? `fb.2.${new Date().getTime()}.${fbclid}` : '',
|
835
835
|
fbp: getCookie('_fbp') ? `fb.2.${new Date().getTime()}.${getCookie('_fbp')}` : '',
|
836
|
-
time:
|
836
|
+
time: Math.floor(Date.now() / 1000)
|
837
837
|
};
|
838
838
|
const regex = /\{\{(.*?)\}\}/g;
|
839
839
|
const getEventParams = (obj) => {
|
@@ -858,7 +858,7 @@
|
|
858
858
|
try {
|
859
859
|
let replaceValue = new Function('fix_par', 'product', `return ${prop}`)(fix_par, product);
|
860
860
|
if (replaceValue) {
|
861
|
-
if (prop.indexOf('currency') &&
|
861
|
+
if ((prop === null || prop === void 0 ? void 0 : prop.indexOf('currency')) !== -1 &&
|
862
862
|
(replaceValue === null || replaceValue === void 0 ? void 0 : replaceValue.indexOf('-')) !== -1 &&
|
863
863
|
typeof replaceValue === 'string') {
|
864
864
|
replaceValue = (_a = replaceValue === null || replaceValue === void 0 ? void 0 : replaceValue.split('-')) === null || _a === void 0 ? void 0 : _a[0];
|