pb-sxp-ui 1.7.6 → 1.7.7

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 CHANGED
@@ -827,7 +827,7 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
827
827
  !((_a = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.converApi) === null || _a === void 0 ? void 0 : _a[eventName])) {
828
828
  return;
829
829
  }
830
- let jsonParams = JSON.parse(JSON.stringify((_b = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.converApi) === null || _b === void 0 ? void 0 : _b[eventName]));
830
+ let jsonParams = lodash.cloneDeep((_b = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.converApi) === null || _b === void 0 ? void 0 : _b[eventName]);
831
831
  const urlParams = new URLSearchParams(window.location.search);
832
832
  const fbclid = urlParams === null || urlParams === void 0 ? void 0 : urlParams.get('fbclid');
833
833
  const fix_par = {
@@ -856,10 +856,16 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
856
856
  const matches = value === null || value === void 0 ? void 0 : value.match(regex);
857
857
  if (matches) {
858
858
  matches.forEach((match) => {
859
+ var _a;
859
860
  const prop = match.substring(2, match.length - 2);
860
861
  try {
861
862
  let replaceValue = new Function('fix_par', 'product', `return ${prop}`)(fix_par, product);
862
863
  if (replaceValue) {
864
+ if (prop.indexOf('currency') &&
865
+ (replaceValue === null || replaceValue === void 0 ? void 0 : replaceValue.indexOf('-')) !== -1 &&
866
+ typeof replaceValue === 'string') {
867
+ replaceValue = (_a = replaceValue === null || replaceValue === void 0 ? void 0 : replaceValue.split('-')) === null || _a === void 0 ? void 0 : _a[0];
868
+ }
863
869
  obj[key] = replaceValue;
864
870
  }
865
871
  else {
@@ -15746,7 +15752,7 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
15746
15752
  position: index + '',
15747
15753
  contentFormat: 'video',
15748
15754
  traceInfo: (_o = item === null || item === void 0 ? void 0 : item.video) === null || _o === void 0 ? void 0 : _o.traceInfo,
15749
- loadTime: ((loadedTimeRef === null || loadedTimeRef === void 0 ? void 0 : loadedTimeRef.current) - (initTimeRef === null || initTimeRef === void 0 ? void 0 : initTimeRef.current)).toFixed(2) + ''
15755
+ loadTime: (loadedTimeRef === null || loadedTimeRef === void 0 ? void 0 : loadedTimeRef.current) - (initTimeRef === null || initTimeRef === void 0 ? void 0 : initTimeRef.current) + ''
15750
15756
  }
15751
15757
  });
15752
15758
  setIsFirstPlay(false);
@@ -16133,7 +16139,7 @@ const PictureGroup$2 = ({ imgUrls, width, height, rec, index, onViewImageEndEven
16133
16139
  const showFirstImageFn = React.useCallback((e) => __awaiter(void 0, void 0, void 0, function* () {
16134
16140
  if (!isLoad) {
16135
16141
  setImgInfo({
16136
- loadTime: (new Date() - initTime).toFixed(2) + ''
16142
+ loadTime: new Date() - initTime + ''
16137
16143
  });
16138
16144
  setIsLoad(true);
16139
16145
  }