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/pb-ui.js CHANGED
@@ -1570,7 +1570,8 @@
1570
1570
  refreshFeSession,
1571
1571
  getAccount,
1572
1572
  accountSonsent,
1573
- isDiyH5
1573
+ isDiyH5,
1574
+ pixelPvStatusRef
1574
1575
  } }, 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({
1575
1576
  rtcList,
1576
1577
  mutateLike: bffMutateLike,
@@ -19009,10 +19010,10 @@ Made in Italy` })));
19009
19010
  const [isReload, setIsReload] = React.useState(new Date().getTime());
19010
19011
  const skipLinkRef = React.useRef(false);
19011
19012
  const [pageNum, setPageNum] = React.useState(2);
19012
- const [isShowCookieSetting, setIsShowCookieSetting] = React.useState(false);
19013
+ React.useState(false);
19013
19014
  const videoWidgetRef = React.useRef(null);
19014
19015
  const fbcRef = React.useRef('');
19015
- 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();
19016
+ 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();
19016
19017
  const { backMainFeed, productView, jumpToWeb } = useEventReport();
19017
19018
  const isShowFingerTip = React.useMemo(() => {
19018
19019
  return data.length > 0 && !loading && (getFeUserState() || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enableSwiperTip));
@@ -19472,13 +19473,7 @@ Made in Italy` })));
19472
19473
  }
19473
19474
  window.OptanonWrapper = function () {
19474
19475
  const activeGroups = window === null || window === void 0 ? void 0 : window.OnetrustActiveGroups;
19475
- if (activeGroups && (activeGroups === null || activeGroups === void 0 ? void 0 : activeGroups.length) > 2) {
19476
- setIsShowCookieSetting(true);
19477
- // if (!activeGroups?.includes('4')) {
19478
- // deleteCookie('_fbp', '/', extractRootDomain(window.location.hostname));
19479
- // (window as any)?.fbq('consent', 'revoke');
19480
- // }
19481
- }
19476
+ if (activeGroups && (activeGroups === null || activeGroups === void 0 ? void 0 : activeGroups.length) > 2) ;
19482
19477
  };
19483
19478
  const handleClick = (event) => {
19484
19479
  var _a, _b;
@@ -19493,6 +19488,7 @@ Made in Italy` })));
19493
19488
  if (activeGroups === null || activeGroups === void 0 ? void 0 : activeGroups.includes('4')) {
19494
19489
  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);
19495
19490
  window === null || window === void 0 ? void 0 : window.fbq('consent', 'grant');
19491
+ pixelPvStatusRef.current = true;
19496
19492
  if (fbcRef.current && !(beForeactiveGroups === null || beForeactiveGroups === void 0 ? void 0 : beForeactiveGroups.includes('4'))) ;
19497
19493
  }
19498
19494
  else {
@@ -19667,7 +19663,7 @@ Made in Italy` })));
19667
19663
  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)),
19668
19664
  React.createElement(ConsentPopup, { resolver: resolver, globalConfig: globalConfig }),
19669
19665
  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 } }))))),
19670
- isShowCookieSetting && (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enableCookieSetting) && (React.createElement("div", { style: {
19666
+ (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enableCookieSetting) && (React.createElement("div", { style: {
19671
19667
  position: 'fixed',
19672
19668
  bottom: 0,
19673
19669
  left: 0,