pb-sxp-ui 1.15.32 → 1.15.33

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/pb-ui.js CHANGED
@@ -667,6 +667,7 @@
667
667
  const [playbookType, setPlaybookType] = React.useState();
668
668
  const [chatlabsId, setChatlabsId] = React.useState();
669
669
  const finalPageData = React.useMemo(() => pageData !== null && pageData !== void 0 ? pageData : data, [pageData, data]);
670
+ const pixelPvStatusRef = React.useRef(false);
670
671
  const isShowConsent = React.useMemo(() => {
671
672
  var _a, _b, _c, _d;
672
673
  return (((((_d = (_c = (_b = (_a = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.consent) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.item) === null || _c === void 0 ? void 0 : _c.props) === null || _d === void 0 ? void 0 : _d.privacy_necessity) && !isAgreePolicy && !isEditor) || isOpenConsent) &&
@@ -1030,6 +1031,10 @@
1030
1031
  }
1031
1032
  }
1032
1033
  if (eventName === 'PageView' && (pixelEventParamsJson === null || pixelEventParamsJson === void 0 ? void 0 : pixelEventParamsJson.event_name) === 'PageView') {
1034
+ if (!pixelPvStatusRef.current) {
1035
+ pixelPvStatusRef.current = true;
1036
+ return;
1037
+ }
1033
1038
  const currentUrl = window.location.href;
1034
1039
  const newUrl = updateQueryStringParameter(currentUrl, 'timestamp', Date.now());
1035
1040
  history.pushState({ path: newUrl }, '', newUrl);