pb-sxp-ui 1.19.0-alpha.5 → 1.19.0

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
@@ -19480,7 +19480,19 @@ Made in Italy` })));
19480
19480
  }
19481
19481
  else if (beForeactiveGroups === null || beForeactiveGroups === void 0 ? void 0 : beForeactiveGroups.includes('4')) {
19482
19482
  fbcRef.current = getCookie('_fbp');
19483
- deleteCookie('_fbp');
19483
+ function extractRootDomain(hostname) {
19484
+ // 处理特殊情况
19485
+ if (!hostname || hostname.indexOf('.') === -1) {
19486
+ return '';
19487
+ }
19488
+ const parts = hostname.split('.');
19489
+ // 对于标准的域名格式(如 xxx.yyy.zzz)
19490
+ if (parts.length >= 2) {
19491
+ return '.' + parts.slice(-2).join('.');
19492
+ }
19493
+ return '';
19494
+ }
19495
+ deleteCookie('_fbp', '/', extractRootDomain(window.location.hostname));
19484
19496
  const item = data[activeIndex];
19485
19497
  const traceInfo = ((_a = item === null || item === void 0 ? void 0 : item.video) === null || _a === void 0 ? void 0 : _a.traceInfo) || ((_b = item === null || item === void 0 ? void 0 : item.product) === null || _b === void 0 ? void 0 : _b.traceInfo) || '';
19486
19498
  bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
@@ -19647,8 +19659,26 @@ Made in Italy` })));
19647
19659
  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)),
19648
19660
  React.createElement(ConsentPopup, { resolver: resolver, globalConfig: globalConfig }),
19649
19661
  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 } }))))),
19650
- isShowCookieSetting && (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enableCookieSetting) && (React.createElement("div", { style: { position: 'fixed', bottom: 0, left: 0, right: 0, width: '100%', zIndex: 10, backgroundColor: '#000', fontSize: 0 } },
19651
- React.createElement("button", { id: 'ot-sdk-btn', className: 'ot-sdk-show-settings', style: { textDecoration: 'underline', width: 'fit-content', border: 'none', lineHeight: '24px', fontSize: '10px', color: '#fff', padding: '0 20px' } }, "Cookie settings")))));
19662
+ isShowCookieSetting && (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enableCookieSetting) && (React.createElement("div", { style: {
19663
+ position: 'fixed',
19664
+ bottom: 0,
19665
+ left: 0,
19666
+ right: 0,
19667
+ width: '100%',
19668
+ zIndex: 10,
19669
+ backgroundColor: '#000',
19670
+ fontSize: 0
19671
+ } },
19672
+ React.createElement("button", { id: 'ot-sdk-btn', className: 'ot-sdk-show-settings', style: {
19673
+ textDecoration: 'underline',
19674
+ width: 'fit-content',
19675
+ border: 'none',
19676
+ lineHeight: '24px',
19677
+ fontSize: '10px',
19678
+ color: '#fff',
19679
+ padding: '0 20px',
19680
+ fontFamily: 'Helvetica-light'
19681
+ } }, "Cookie settings")))));
19652
19682
  };
19653
19683
  var SxpPageRender$1 = React.memo(SxpPageRender);
19654
19684