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.js CHANGED
@@ -818,7 +818,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
818
818
  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 : '',
819
819
  fbc: fbclid ? `fb.2.${new Date().getTime()}.${fbclid}` : '',
820
820
  fbp: getCookie('_fbp') ? `fb.2.${new Date().getTime()}.${getCookie('_fbp')}` : '',
821
- time: new Date().getTime()
821
+ time: Math.floor(Date.now() / 1000)
822
822
  };
823
823
  const regex = /\{\{(.*?)\}\}/g;
824
824
  const getEventParams = (obj) => {
@@ -843,7 +843,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
843
843
  try {
844
844
  let replaceValue = new Function('fix_par', 'product', `return ${prop}`)(fix_par, product);
845
845
  if (replaceValue) {
846
- if (prop.indexOf('currency') &&
846
+ if ((prop === null || prop === void 0 ? void 0 : prop.indexOf('currency')) !== -1 &&
847
847
  (replaceValue === null || replaceValue === void 0 ? void 0 : replaceValue.indexOf('-')) !== -1 &&
848
848
  typeof replaceValue === 'string') {
849
849
  replaceValue = (_a = replaceValue === null || replaceValue === void 0 ? void 0 : replaceValue.split('-')) === null || _a === void 0 ? void 0 : _a[0];