pb-sxp-ui 1.19.4 → 1.19.5

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
@@ -1577,7 +1577,8 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
1577
1577
  refreshFeSession,
1578
1578
  getAccount,
1579
1579
  accountSonsent,
1580
- isDiyH5
1580
+ isDiyH5,
1581
+ pixelPvStatusRef
1581
1582
  } }, isShowConsent ? (React.createElement(Consent$4, Object.assign({}, (_e = (_d = (_c = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.consent) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.item) === null || _e === void 0 ? void 0 : _e.props))) : (render({
1582
1583
  rtcList,
1583
1584
  mutateLike: bffMutateLike,
@@ -19016,10 +19017,10 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
19016
19017
  const [isReload, setIsReload] = React.useState(new Date().getTime());
19017
19018
  const skipLinkRef = React.useRef(false);
19018
19019
  const [pageNum, setPageNum] = React.useState(2);
19019
- const [isShowCookieSetting, setIsShowCookieSetting] = React.useState(false);
19020
+ React.useState(false);
19020
19021
  const videoWidgetRef = React.useRef(null);
19021
19022
  const fbcRef = React.useRef('');
19022
- const { loadVideos, bffEventReport, loading, setPopupDetailData, ctaEvent, swiperRef, waterFallData, setOpenHashtag, appDomain, openHashtag, loadingImage, isFromHashtag, popupDetailData, bffFbReport, curTime, h5EnterLink, isShowConsent, selectTag, isPreview, isEditor, cacheRtcList, setRtcList, cacheActiveIndex, rtcList, isNoMoreData, channel, refreshFeSession, isDiyH5 } = useSxpDataSource();
19023
+ const { loadVideos, bffEventReport, loading, setPopupDetailData, ctaEvent, swiperRef, waterFallData, setOpenHashtag, appDomain, openHashtag, loadingImage, isFromHashtag, popupDetailData, bffFbReport, curTime, h5EnterLink, isShowConsent, selectTag, isPreview, isEditor, cacheRtcList, setRtcList, cacheActiveIndex, rtcList, isNoMoreData, channel, refreshFeSession, isDiyH5, pixelPvStatusRef } = useSxpDataSource();
19023
19024
  const { backMainFeed, productView, jumpToWeb } = useEventReport();
19024
19025
  const isShowFingerTip = React.useMemo(() => {
19025
19026
  return data.length > 0 && !loading && (getFeUserState() || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enableSwiperTip));
@@ -19479,13 +19480,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
19479
19480
  }
19480
19481
  window.OptanonWrapper = function () {
19481
19482
  const activeGroups = window === null || window === void 0 ? void 0 : window.OnetrustActiveGroups;
19482
- if (activeGroups && (activeGroups === null || activeGroups === void 0 ? void 0 : activeGroups.length) > 2) {
19483
- setIsShowCookieSetting(true);
19484
- // if (!activeGroups?.includes('4')) {
19485
- // deleteCookie('_fbp', '/', extractRootDomain(window.location.hostname));
19486
- // (window as any)?.fbq('consent', 'revoke');
19487
- // }
19488
- }
19483
+ if (activeGroups && (activeGroups === null || activeGroups === void 0 ? void 0 : activeGroups.length) > 2) ;
19489
19484
  };
19490
19485
  const handleClick = (event) => {
19491
19486
  var _a, _b;
@@ -19500,6 +19495,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
19500
19495
  if (activeGroups === null || activeGroups === void 0 ? void 0 : activeGroups.includes('4')) {
19501
19496
  window === null || window === void 0 ? void 0 : window.loadMetaPixel(false, SXP_CONFIG === null || SXP_CONFIG === void 0 ? void 0 : SXP_CONFIG.meta_conversion_api_pid);
19502
19497
  window === null || window === void 0 ? void 0 : window.fbq('consent', 'grant');
19498
+ pixelPvStatusRef.current = true;
19503
19499
  if (fbcRef.current && !(beForeactiveGroups === null || beForeactiveGroups === void 0 ? void 0 : beForeactiveGroups.includes('4'))) ;
19504
19500
  }
19505
19501
  else {
@@ -19674,7 +19670,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
19674
19670
  React.createElement(WaterFall$1, Object.assign({}, (_u = (_t = (_s = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.hashTag) === null || _s === void 0 ? void 0 : _s[0]) === null || _t === void 0 ? void 0 : _t.item) === null || _u === void 0 ? void 0 : _u.props)),
19675
19671
  React.createElement(ConsentPopup, { resolver: resolver, globalConfig: globalConfig }),
19676
19672
  openMultiPosts && (React.createElement(MultiPosts$2, Object.assign({}, (_x = (_w = (_v = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.multiPosts) === null || _v === void 0 ? void 0 : _v[0]) === null || _w === void 0 ? void 0 : _w.item) === null || _x === void 0 ? void 0 : _x.props, (_0 = (_z = (_y = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.multiPosts) === null || _y === void 0 ? void 0 : _y[0]) === null || _z === void 0 ? void 0 : _z.item) === null || _0 === void 0 ? void 0 : _0.event, { style: { position: 'fixed', top: 0, left: 0, right: 0 } }))))),
19677
- isShowCookieSetting && (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enableCookieSetting) && (React.createElement("div", { style: {
19673
+ (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enableCookieSetting) && (React.createElement("div", { style: {
19678
19674
  position: 'fixed',
19679
19675
  bottom: 0,
19680
19676
  left: 0,