pb-sxp-ui 1.19.0-alpha.2 → 1.19.0-alpha.4

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.
Files changed (66) hide show
  1. package/dist/index.cjs +223 -197
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.css +15 -7
  4. package/dist/index.js +223 -197
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.cjs +6 -6
  7. package/dist/index.min.cjs.map +1 -1
  8. package/dist/index.min.js +6 -6
  9. package/dist/index.min.js.map +1 -1
  10. package/dist/pb-ui.js +223 -197
  11. package/dist/pb-ui.js.map +1 -1
  12. package/dist/pb-ui.min.js +6 -6
  13. package/dist/pb-ui.min.js.map +1 -1
  14. package/es/core/components/DiyPortalPreview/index.js +5 -3
  15. package/es/core/components/DiyStoryPreview/index.js +7 -18
  16. package/es/core/components/SxpPageRender/RenderCard.d.ts +0 -1
  17. package/es/core/components/SxpPageRender/RenderCard.js +14 -2
  18. package/es/core/components/SxpPageRender/index.js +44 -26
  19. package/es/core/context/SxpDataSourceProvider.js +2 -3
  20. package/es/materials/sxp/consentPopup/Display/index.js +1 -1
  21. package/es/materials/sxp/cta/AniLinkPopup/material.js +2 -3
  22. package/es/materials/sxp/popup/CommodityDetail/material.js +1 -2
  23. package/es/materials/sxp/popup/CommodityList/index.js +4 -5
  24. package/es/materials/sxp/popup/CommodityList/material.js +1 -1
  25. package/es/materials/sxp/popup/CommodityList/settingRender.js +1 -1
  26. package/es/materials/sxp/template/Appoint/material.js +1 -2
  27. package/es/materials/sxp/template/Commodity/material.js +2 -3
  28. package/es/materials/sxp/template/CommodityDiro/material.js +2 -3
  29. package/es/materials/sxp/template/CommodityDiroNew/material.js +2 -4
  30. package/es/materials/sxp/template/Link/material.js +2 -4
  31. package/es/materials/sxp/template/MultiCommodity/index.js +2 -2
  32. package/es/materials/sxp/template/MultiCommodity/material.js +1 -2
  33. package/es/materials/sxp/template/MultiCommodityDiro/index.js +2 -2
  34. package/es/materials/sxp/template/MultiCommodityDiro/material.js +2 -3
  35. package/es/materials/sxp/template/MultiCommodityDiroNew/index.js +2 -2
  36. package/es/materials/sxp/template/MultiCommodityDiroNew/material.js +2 -4
  37. package/es/materials/sxp/template/NineCommodity/material.js +2 -3
  38. package/es/materials/sxp/template/components/CommodityGroup.js +1 -1
  39. package/es/materials/sxp/template/components/settingRender.js +1 -1
  40. package/lib/core/components/DiyPortalPreview/index.js +5 -3
  41. package/lib/core/components/DiyStoryPreview/index.js +7 -18
  42. package/lib/core/components/SxpPageRender/RenderCard.d.ts +0 -1
  43. package/lib/core/components/SxpPageRender/RenderCard.js +14 -2
  44. package/lib/core/components/SxpPageRender/index.js +44 -26
  45. package/lib/core/context/SxpDataSourceProvider.js +2 -3
  46. package/lib/materials/sxp/consentPopup/Display/index.js +1 -1
  47. package/lib/materials/sxp/cta/AniLinkPopup/material.js +1 -2
  48. package/lib/materials/sxp/popup/CommodityDetail/material.js +1 -2
  49. package/lib/materials/sxp/popup/CommodityList/index.js +4 -5
  50. package/lib/materials/sxp/popup/CommodityList/material.js +1 -1
  51. package/lib/materials/sxp/popup/CommodityList/settingRender.js +1 -1
  52. package/lib/materials/sxp/template/Appoint/material.js +1 -2
  53. package/lib/materials/sxp/template/Commodity/material.js +2 -3
  54. package/lib/materials/sxp/template/CommodityDiro/material.js +2 -3
  55. package/lib/materials/sxp/template/CommodityDiroNew/material.js +2 -4
  56. package/lib/materials/sxp/template/Link/material.js +2 -4
  57. package/lib/materials/sxp/template/MultiCommodity/index.js +2 -2
  58. package/lib/materials/sxp/template/MultiCommodity/material.js +1 -2
  59. package/lib/materials/sxp/template/MultiCommodityDiro/index.js +2 -2
  60. package/lib/materials/sxp/template/MultiCommodityDiro/material.js +2 -3
  61. package/lib/materials/sxp/template/MultiCommodityDiroNew/index.js +2 -2
  62. package/lib/materials/sxp/template/MultiCommodityDiroNew/material.js +2 -4
  63. package/lib/materials/sxp/template/NineCommodity/material.js +2 -3
  64. package/lib/materials/sxp/template/components/CommodityGroup.js +1 -1
  65. package/lib/materials/sxp/template/components/settingRender.js +1 -1
  66. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -750,7 +750,27 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
750
750
  return ((_a = bffDataSource === null || bffDataSource === void 0 ? void 0 : bffDataSource.headers) === null || _a === void 0 ? void 0 : _a['x-app-id']) + storeAndLoadFeUserId();
751
751
  }, [bffDataSource]);
752
752
  const getTargetingCookie = () => {
753
- var _a;
753
+ var _a, _b;
754
+ function isTargetingRejected(cookieValue) {
755
+ // 1. 从Cookie字符串中提取groups部分
756
+ const groupsMatch = cookieValue.match(/groups=([^&]+)/);
757
+ if (!groupsMatch || !groupsMatch[1]) {
758
+ return false;
759
+ }
760
+ const groupsString = groupsMatch[1];
761
+ // 2. 将groups字符串拆分为键值对数组
762
+ const groupsPairs = groupsString.split(',');
763
+ // 3. 遍历查找第四个类别(Targeting)的状态
764
+ for (const pair of groupsPairs) {
765
+ const [category, status] = pair.split(':');
766
+ if (category === '4') {
767
+ // 找到第四个类别,检查其状态
768
+ return status === '0'; // 如果状态为0则返回true
769
+ }
770
+ }
771
+ // 如果没有找到第四个类别
772
+ return false;
773
+ }
754
774
  function getCookie(name) {
755
775
  var _a;
756
776
  const value = `; ${document.cookie}`;
@@ -759,9 +779,8 @@ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent
759
779
  return (_a = parts.pop()) === null || _a === void 0 ? void 0 : _a.split(';').shift();
760
780
  return '';
761
781
  }
762
- decodeURIComponent((_a = getCookie('OptanonConsent')) !== null && _a !== void 0 ? _a : '');
763
- console.log('OptanonConsent:', window === null || window === void 0 ? void 0 : window.OnetrustActiveGroups);
764
- if (((window === null || window === void 0 ? void 0 : window.OnetrustActiveGroups) && !(window === null || window === void 0 ? void 0 : window.OnetrustActiveGroups.includes('4')))) {
782
+ const OptanonConsent = decodeURIComponent((_a = getCookie('OptanonConsent')) !== null && _a !== void 0 ? _a : '');
783
+ if (((window === null || window === void 0 ? void 0 : window.OnetrustActiveGroups) && ((_b = window === null || window === void 0 ? void 0 : window.OnetrustActiveGroups) === null || _b === void 0 ? void 0 : _b.length) > 2 && !(window === null || window === void 0 ? void 0 : window.OnetrustActiveGroups.includes('4')) && isTargetingRejected(OptanonConsent))) {
765
784
  return true;
766
785
  }
767
786
  return false;
@@ -2684,6 +2703,35 @@ var settingRender$e = [
2684
2703
  }
2685
2704
  ];
2686
2705
 
2706
+ /*
2707
+ * @Author: binruan@chatlabs.com
2708
+ * @Date: 2024-07-09 14:35:10
2709
+ * @LastEditors: binruan@chatlabs.com
2710
+ * @LastEditTime: 2024-07-12 17:53:02
2711
+ * @FilePath: \pb-sxp-ui\src\materials\sxp\popup\CommodityDetail\interactionRender.tsx
2712
+ *
2713
+ */
2714
+ /*
2715
+ * @Author: binruan@chatlabs.com
2716
+ * @Date: 2024-07-05 14:08:41
2717
+ * @LastEditors: binruan@chatlabs.com
2718
+ * @LastEditTime: 2024-07-09 14:34:49
2719
+ * @FilePath: \pb-sxp-ui\src\materials\sxp\cta\AniLink\interactionRender.tsx
2720
+ *
2721
+ */
2722
+ var interactionRender$g = [
2723
+ {
2724
+ title: '滑动事件',
2725
+ child: [
2726
+ {
2727
+ type: 'Switch',
2728
+ label: '滑动铺满全屏',
2729
+ name: ['isScrollFullScreen']
2730
+ }
2731
+ ]
2732
+ }
2733
+ ];
2734
+
2687
2735
  /**
2688
2736
  * SSR Window 4.0.2
2689
2737
  * Better handling for window object in SSR environment
@@ -10262,7 +10310,7 @@ const CommodityGroup = ({ products, data, defImg, style, onCLick, popupDetailDat
10262
10310
  return (React.createElement(React.Fragment, null, (item === null || item === void 0 ? void 0 : item.bindCta) ? (React.createElement(SwiperSlide, { className: css({
10263
10311
  width: '50px',
10264
10312
  height: '50px',
10265
- marginRight: '10px'
10313
+ marginInlineEnd: '10px'
10266
10314
  }), onClick: () => {
10267
10315
  handleClick(item, index);
10268
10316
  }, key: index },
@@ -10861,35 +10909,6 @@ const CommodityDetail$1 = (_a) => {
10861
10909
  };
10862
10910
  var CommodityDetailComponent = memo(CommodityDetail$1);
10863
10911
 
10864
- /*
10865
- * @Author: binruan@chatlabs.com
10866
- * @Date: 2024-07-09 14:35:10
10867
- * @LastEditors: binruan@chatlabs.com
10868
- * @LastEditTime: 2024-07-12 17:53:02
10869
- * @FilePath: \pb-sxp-ui\src\materials\sxp\popup\CommodityDetail\interactionRender.tsx
10870
- *
10871
- */
10872
- /*
10873
- * @Author: binruan@chatlabs.com
10874
- * @Date: 2024-07-05 14:08:41
10875
- * @LastEditors: binruan@chatlabs.com
10876
- * @LastEditTime: 2024-07-09 14:34:49
10877
- * @FilePath: \pb-sxp-ui\src\materials\sxp\cta\AniLink\interactionRender.tsx
10878
- *
10879
- */
10880
- var interactionRender$g = [
10881
- {
10882
- title: '滑动事件',
10883
- child: [
10884
- {
10885
- type: 'Switch',
10886
- label: '滑动铺满全屏',
10887
- name: ['isScrollFullScreen']
10888
- }
10889
- ]
10890
- }
10891
- ];
10892
-
10893
10912
  /*
10894
10913
  * @Author: binruan@chatlabs.com
10895
10914
  * @Date: 2023-07-28 18:29:57
@@ -10936,7 +10955,6 @@ const CommodityDetail = createMaterial(CommodityDetailComponent, {
10936
10955
  taxInfo: {
10937
10956
  color: '#000',
10938
10957
  fontSize: 13,
10939
- textAlign: 'left',
10940
10958
  marginBottom: '10px'
10941
10959
  }
10942
10960
  },
@@ -12028,7 +12046,7 @@ var settingRender$b = [
12028
12046
  type: 'Number',
12029
12047
  label: '与右侧边距',
12030
12048
  addonAfter: 'px',
12031
- name: ['props', 'commodityPicture', 'marginRight']
12049
+ name: ['props', 'commodityPicture', 'marginInlineEnd']
12032
12050
  },
12033
12051
  {
12034
12052
  label: '居中垂直偏移',
@@ -12314,12 +12332,11 @@ const CommodityList$1 = (_a) => {
12314
12332
  React.createElement("button", Object.assign({ role: 'button', "aria-label": item === null || item === void 0 ? void 0 : item.title, tabIndex: 0, className: css({
12315
12333
  display: 'flex',
12316
12334
  alignItems: 'normal',
12317
- width: '100%',
12318
- textAlign: 'left'
12335
+ width: '100%'
12319
12336
  }) }, props),
12320
12337
  React.createElement(Img$1, { src: (_d = (_c = (_a = item === null || item === void 0 ? void 0 : item.cover) !== null && _a !== void 0 ? _a : (_b = item === null || item === void 0 ? void 0 : item.homePage) === null || _b === void 0 ? void 0 : _b[0]) !== null && _c !== void 0 ? _c : sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _d !== void 0 ? _d : bottom_image, rec: recData, item: item, index: index, translateY: translateY, imgStyle: commodityPicture, enableEventReport: false }),
12321
12338
  React.createElement("div", { style: {
12322
- width: `calc(100% - ${(_e = commodityPicture === null || commodityPicture === void 0 ? void 0 : commodityPicture.width) !== null && _e !== void 0 ? _e : 0}px - ${(_f = commodityPicture === null || commodityPicture === void 0 ? void 0 : commodityPicture.marginRight) !== null && _f !== void 0 ? _f : 0}px)`,
12339
+ width: `calc(100% - ${(_e = commodityPicture === null || commodityPicture === void 0 ? void 0 : commodityPicture.width) !== null && _e !== void 0 ? _e : 0}px - ${(_f = commodityPicture === null || commodityPicture === void 0 ? void 0 : commodityPicture.marginInlineEnd) !== null && _f !== void 0 ? _f : 0}px)`,
12323
12340
  display: 'flex',
12324
12341
  flexDirection: 'column',
12325
12342
  justifyContent: 'space-between'
@@ -12400,7 +12417,7 @@ const CommodityList = createMaterial(CommodityListComponent, {
12400
12417
  commodityPicture: {
12401
12418
  width: 100,
12402
12419
  height: 100,
12403
- marginRight: 10
12420
+ marginInlineEnd: 10
12404
12421
  },
12405
12422
  commodityStyles: {
12406
12423
  price: {
@@ -12646,7 +12663,7 @@ var settingRender$8 = [
12646
12663
  type: 'Number',
12647
12664
  label: '与右侧边距',
12648
12665
  addonAfter: 'px',
12649
- name: ['props', 'ctaTempStyles', 'img', 'marginRight']
12666
+ name: ['props', 'ctaTempStyles', 'img', 'marginInlineEnd']
12650
12667
  },
12651
12668
  {
12652
12669
  label: '居中垂直偏移',
@@ -12907,12 +12924,11 @@ const Commodity = createMaterial(CommodityComponent, {
12907
12924
  borderRadius: 3,
12908
12925
  width: 60,
12909
12926
  height: 60,
12910
- marginRight: 8
12927
+ marginInlineEnd: 8
12911
12928
  },
12912
12929
  title: {
12913
12930
  fontSize: 12,
12914
- color: '#fff',
12915
- textAlign: 'left'
12931
+ color: '#fff'
12916
12932
  },
12917
12933
  ctaTitle: {
12918
12934
  fontSize: 10,
@@ -12990,12 +13006,11 @@ const Appoint = createMaterial(AppointComponent, {
12990
13006
  borderRadius: 3,
12991
13007
  width: 30,
12992
13008
  height: 30,
12993
- marginRight: 8
13009
+ marginInlineEnd: 8
12994
13010
  },
12995
13011
  ctaTitle: {
12996
13012
  fontSize: 12,
12997
13013
  color: '#fff',
12998
- textAlign: 'left',
12999
13014
  width: 130,
13000
13015
  height: 20
13001
13016
  }
@@ -13131,6 +13146,27 @@ var linkSettingRender = [
13131
13146
  }
13132
13147
  ];
13133
13148
 
13149
+ /*
13150
+ * @Author: binruan@chatlabs.com
13151
+ * @Date: 2024-08-09 16:59:38
13152
+ * @LastEditors: binruan@chatlabs.com
13153
+ * @LastEditTime: 2024-09-09 13:59:50
13154
+ * @FilePath: \pb-sxp-ui\src\materials\sxp\template\Link\interactionRender.tsx
13155
+ *
13156
+ */
13157
+ var interactionRender$a = [
13158
+ {
13159
+ title: '点击事件',
13160
+ child: [
13161
+ {
13162
+ type: 'link',
13163
+ name: 'onClick',
13164
+ hiddenUrl: true
13165
+ }
13166
+ ]
13167
+ }
13168
+ ];
13169
+
13134
13170
  var styles$8 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__nkBlU","one-line-ellipsis":"index-module_one-line-ellipsis__buFw1"};
13135
13171
 
13136
13172
  const Link$1 = (_a) => {
@@ -13158,27 +13194,6 @@ const Link$1 = (_a) => {
13158
13194
  };
13159
13195
  var LinkComponent = memo(Link$1);
13160
13196
 
13161
- /*
13162
- * @Author: binruan@chatlabs.com
13163
- * @Date: 2024-08-09 16:59:38
13164
- * @LastEditors: binruan@chatlabs.com
13165
- * @LastEditTime: 2024-09-09 13:59:50
13166
- * @FilePath: \pb-sxp-ui\src\materials\sxp\template\Link\interactionRender.tsx
13167
- *
13168
- */
13169
- var interactionRender$a = [
13170
- {
13171
- title: '点击事件',
13172
- child: [
13173
- {
13174
- type: 'link',
13175
- name: 'onClick',
13176
- hiddenUrl: true
13177
- }
13178
- ]
13179
- }
13180
- ];
13181
-
13182
13197
  var _a;
13183
13198
  const Link = createMaterial(LinkComponent, {
13184
13199
  displayName: '普通CTA',
@@ -13197,19 +13212,17 @@ const Link = createMaterial(LinkComponent, {
13197
13212
  borderRadius: 3,
13198
13213
  width: 60,
13199
13214
  height: 60,
13200
- marginRight: 8
13215
+ marginInlineEnd: 8
13201
13216
  },
13202
13217
  ctaTitle: {
13203
13218
  fontSize: 12,
13204
13219
  color: '#fff',
13205
- textAlign: 'left',
13206
13220
  width: 130,
13207
13221
  height: 20
13208
13222
  }
13209
13223
  },
13210
13224
  customTitle: {
13211
13225
  style: {
13212
- textAlign: 'left',
13213
13226
  textDecoration: 'underline',
13214
13227
  fontWeight: 'bold',
13215
13228
  width: 130,
@@ -13299,12 +13312,11 @@ const CommodityDiro = createMaterial(CommodityDiroComponent, {
13299
13312
  borderRadius: 3,
13300
13313
  width: 60,
13301
13314
  height: 60,
13302
- marginRight: 8
13315
+ marginInlineEnd: 8
13303
13316
  },
13304
13317
  title: {
13305
13318
  fontSize: 12,
13306
- color: '#000',
13307
- textAlign: 'left'
13319
+ color: '#000'
13308
13320
  },
13309
13321
  ctaTitle: {
13310
13322
  fontSize: 10,
@@ -13395,19 +13407,17 @@ const CommodityDiroNew = createMaterial(CommodityDiroNewComponent, {
13395
13407
  borderRadius: 8,
13396
13408
  width: 78,
13397
13409
  height: 78,
13398
- marginRight: 16
13410
+ marginInlineEnd: 16
13399
13411
  },
13400
13412
  title: {
13401
13413
  fontSize: 13,
13402
- color: '#000',
13403
- textAlign: 'left'
13414
+ color: '#000'
13404
13415
  },
13405
13416
  ctaTitle: {
13406
13417
  textDecoration: 'underline',
13407
13418
  fontSize: 14,
13408
13419
  fontWeight: 'bold',
13409
13420
  color: '#000',
13410
- textAlign: 'left',
13411
13421
  width: 150,
13412
13422
  height: 20
13413
13423
  }
@@ -13449,7 +13459,7 @@ const MultiCommodityDiro$1 = (_a) => {
13449
13459
  const [products] = useState((_c = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.bindProducts) !== null && _c !== void 0 ? _c : [1, 2]);
13450
13460
  return (React.createElement(Scroll$1, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item, itemIndex) => {
13451
13461
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
13452
- return (React.createElement(React.Fragment, null, recData && !(item === null || item === void 0 ? void 0 : item.bindCta) ? null : (React.createElement(SwiperSlide, { key: itemIndex, className: css(Object.assign(Object.assign({}, style), { flexShrink: 0, marginLeft: 0, marginRight: '8px' })), tag: 'li', role: 'listitem' },
13462
+ return (React.createElement(React.Fragment, null, recData && !(item === null || item === void 0 ? void 0 : item.bindCta) ? null : (React.createElement(SwiperSlide, { key: itemIndex, className: css(Object.assign(Object.assign({}, style), { flexShrink: 0, marginInlineStart: 0, marginInlineEnd: '8px' })), tag: 'li', role: 'listitem' },
13453
13463
  React.createElement(EventProvider$1, Object.assign({ rec: recData, multItem: item, multiCheckIndex: itemIndex, index: index }, props),
13454
13464
  React.createElement(Img$1, { src: (_d = (_c = (_a = item === null || item === void 0 ? void 0 : item.cover) !== null && _a !== void 0 ? _a : (_b = item === null || item === void 0 ? void 0 : item.homePage) === null || _b === void 0 ? void 0 : _b[0]) !== null && _c !== void 0 ? _c : sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _d !== void 0 ? _d : bottom_image, rec: recData, item: item, index: index, translateY: translateY, imgStyle: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img, isActive: isActive }),
13455
13465
  React.createElement("div", { className: css({
@@ -13495,12 +13505,11 @@ const MultiCommodityDiro = createMaterial(MultiCommodityDiroComponent, {
13495
13505
  borderRadius: 3,
13496
13506
  width: 60,
13497
13507
  height: 60,
13498
- marginRight: 8
13508
+ marginInlineEnd: 8
13499
13509
  },
13500
13510
  title: {
13501
13511
  fontSize: 12,
13502
- color: '#000',
13503
- textAlign: 'left'
13512
+ color: '#000'
13504
13513
  },
13505
13514
  ctaTitle: {
13506
13515
  fontSize: 10,
@@ -13548,7 +13557,7 @@ const MultiCommodity$1 = (_a) => {
13548
13557
  const [products] = useState((_c = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.bindProducts) !== null && _c !== void 0 ? _c : [1, 2]);
13549
13558
  return (React.createElement(Scroll$1, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item, itemIndex) => {
13550
13559
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
13551
- return (React.createElement(React.Fragment, null, recData && !(item === null || item === void 0 ? void 0 : item.bindCta) ? null : (React.createElement(SwiperSlide, { key: itemIndex, className: css(Object.assign(Object.assign({}, style), { flexShrink: 0, marginLeft: 0, marginRight: '8px' })), tag: 'li', role: 'listitem' },
13560
+ return (React.createElement(React.Fragment, null, recData && !(item === null || item === void 0 ? void 0 : item.bindCta) ? null : (React.createElement(SwiperSlide, { key: itemIndex, className: css(Object.assign(Object.assign({}, style), { flexShrink: 0, marginInlineStart: 0, marginInlineEnd: '8px' })), tag: 'li', role: 'listitem' },
13552
13561
  React.createElement(EventProvider$1, Object.assign({ rec: recData, multItem: item, multiCheckIndex: itemIndex, index: index }, props),
13553
13562
  React.createElement(Img$1, { src: (_d = (_c = (_a = item === null || item === void 0 ? void 0 : item.cover) !== null && _a !== void 0 ? _a : (_b = item === null || item === void 0 ? void 0 : item.homePage) === null || _b === void 0 ? void 0 : _b[0]) !== null && _c !== void 0 ? _c : sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _d !== void 0 ? _d : bottom_image, rec: recData, item: item, index: index, translateY: translateY, imgStyle: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img, isActive: isActive }),
13554
13563
  React.createElement("div", { className: css({
@@ -13594,12 +13603,11 @@ const MultiCommodity = createMaterial(MultiCommodityComponent, {
13594
13603
  borderRadius: 3,
13595
13604
  width: 60,
13596
13605
  height: 60,
13597
- marginRight: 8
13606
+ marginInlineEnd: 8
13598
13607
  },
13599
13608
  title: {
13600
13609
  fontSize: 12,
13601
13610
  color: '#fff',
13602
- textAlign: 'left'
13603
13611
  },
13604
13612
  ctaTitle: {
13605
13613
  fontSize: 10,
@@ -13655,7 +13663,7 @@ const MultiCommodityDiroNew$1 = (_a) => {
13655
13663
  const [products] = useState((_c = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.bindProducts) !== null && _c !== void 0 ? _c : [1, 2]);
13656
13664
  return (React.createElement(Scroll$1, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item, itemIndex) => {
13657
13665
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
13658
- return (React.createElement(React.Fragment, null, recData && !(item === null || item === void 0 ? void 0 : item.bindCta) ? null : (React.createElement(SwiperSlide, { key: itemIndex, className: css(Object.assign(Object.assign({}, style), { flexShrink: 0, marginLeft: 0, marginRight: '8px' })), tag: 'li', role: 'listitem' },
13666
+ return (React.createElement(React.Fragment, null, recData && !(item === null || item === void 0 ? void 0 : item.bindCta) ? null : (React.createElement(SwiperSlide, { key: itemIndex, className: css(Object.assign(Object.assign({}, style), { flexShrink: 0, marginInlineStart: 0, marginInlineEnd: '8px' })), tag: 'li', role: 'listitem' },
13659
13667
  React.createElement(EventProvider$1, Object.assign({ rec: recData, multItem: item, multiCheckIndex: itemIndex, index: index }, props),
13660
13668
  React.createElement(Img$1, { src: (_d = (_c = (_a = item === null || item === void 0 ? void 0 : item.cover) !== null && _a !== void 0 ? _a : (_b = item === null || item === void 0 ? void 0 : item.homePage) === null || _b === void 0 ? void 0 : _b[0]) !== null && _c !== void 0 ? _c : sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _d !== void 0 ? _d : bottom_image, rec: recData, item: item, index: index, translateY: translateY, imgStyle: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img, isActive: isActive }),
13661
13669
  React.createElement("div", { className: css({
@@ -13702,19 +13710,17 @@ const MultiCommodityDiroNew = createMaterial(MultiCommodityDiroNewComponent, {
13702
13710
  borderRadius: 8,
13703
13711
  width: 78,
13704
13712
  height: 78,
13705
- marginRight: 16
13713
+ marginInlineEnd: 16
13706
13714
  },
13707
13715
  title: {
13708
13716
  fontSize: 12,
13709
- color: '#000',
13710
- textAlign: 'left'
13717
+ color: '#000'
13711
13718
  },
13712
13719
  ctaTitle: {
13713
13720
  textDecoration: 'underline',
13714
13721
  fontSize: 12,
13715
13722
  fontWeight: 'bold',
13716
13723
  color: '#000',
13717
- textAlign: 'left',
13718
13724
  width: 150,
13719
13725
  height: 20
13720
13726
  }
@@ -13809,12 +13815,11 @@ const NineCommodity = createMaterial(NineCommodityComponent, {
13809
13815
  borderRadius: 3,
13810
13816
  width: 60,
13811
13817
  height: 60,
13812
- marginRight: 8
13818
+ marginInlineEnd: 8
13813
13819
  },
13814
13820
  title: {
13815
13821
  fontSize: 12,
13816
- color: '#fff',
13817
- textAlign: 'left'
13822
+ color: '#fff'
13818
13823
  },
13819
13824
  ctaTitle: {
13820
13825
  fontSize: 10,
@@ -16734,6 +16739,60 @@ var settingRender$4 = [
16734
16739
  }
16735
16740
  ];
16736
16741
 
16742
+ /*
16743
+ * @Author: binruan@chatlabs.com
16744
+ * @Date: 2024-07-24 14:58:40
16745
+ * @LastEditors: binruan@chatlabs.com
16746
+ * @LastEditTime: 2024-09-09 13:54:35
16747
+ * @FilePath: \pb-sxp-ui\src\materials\sxp\cta\AniLinkPopup\interactionRender.tsx
16748
+ *
16749
+ */
16750
+ var interactionRender$2 = [
16751
+ {
16752
+ title: '点击事件',
16753
+ child: [
16754
+ {
16755
+ type: 'link',
16756
+ name: 'onClick',
16757
+ hiddenUrl: true
16758
+ }
16759
+ ]
16760
+ },
16761
+ {
16762
+ title: '动画效果',
16763
+ child: [
16764
+ {
16765
+ type: 'Select',
16766
+ name: ['animation', 'name'],
16767
+ label: '动画',
16768
+ options: [
16769
+ {
16770
+ label: '默认',
16771
+ value: 1
16772
+ }
16773
+ ],
16774
+ fieldProps: {
16775
+ style: {
16776
+ width: '100%'
16777
+ }
16778
+ }
16779
+ },
16780
+ {
16781
+ type: 'Number',
16782
+ label: '动画启动时间',
16783
+ name: ['animation', 'delay'],
16784
+ addonAfter: 'ms'
16785
+ },
16786
+ {
16787
+ type: 'Number',
16788
+ label: '动画持续时间',
16789
+ name: ['animation', 'duration'],
16790
+ addonAfter: 'ms'
16791
+ }
16792
+ ]
16793
+ }
16794
+ ];
16795
+
16737
16796
  var styles = {"aniLinkPopup":"index-module_aniLinkPopup__YT7kj","animated-fadeIn":"index-module_animated-fadeIn__8ZCbq","fadeIn":"index-module_fadeIn__2E-dk","animated-fadeOut":"index-module_animated-fadeOut__iK4oc","fadeOut":"index-module_fadeOut__MgevT","one-line-ellipsis":"index-module_one-line-ellipsis__NRiVV","two-line-ellipsis":"index-module_two-line-ellipsis__k-YGB","modal-icon-wrapper":"index-module_modal-icon-wrapper__tu3BY","modal-icon-wrapper-img":"index-module_modal-icon-wrapper-img__4b7qZ"};
16738
16797
 
16739
16798
  const closeIcon = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAjhJREFUWEfFlztOw0AQhmeWiJ4CCmpQ5DiRQsIJyAWg5A0lR0AIChDiCJS8ER0cADgBeRSxt4CCDgkaKiq8i+zYeWx2413HEWmiJJv9v535Z2aN8M8vFPT9z3zETD0aAUChUJjwvPFHAJhBhB3Hqd6OAsK2yyucwykAvP38eJX398Z3AJDLlVYR8ToU9Rhj25TWr9KEsKy5dULIGQCMtfZly45TvwsAstm56UwG6wA4FUFwzrdctxZBDcWSy5XWEPG8I84/GcMipdWPtgcsaz5PCHtKG0IuTiqUvjT9U/WYMG2IOPE+AP+LtCB0xKUAAyA2Xbd2o2OG0NQXvTnvhL17D7EPtH9TRCIWwkRcGYGIQgYBABuqPuHXOQBc6pw80lBGwBQiiXhsBHQhkoprA6iM6acjhDQKu5YJZW6XeOI3XJdpvfsdTu52VfXEekD8owQiXGIubpSCbhDbLu8DwKEAd+A41SOdPpE4BS0viFOtvV2iKWqUgn5x/tmS70xR01GuDSCKc86/OCcLgTyyZ0ScDGNhFAktAJV4NFJ9YyaFiAWIE+9uVkkgBgLoig8DMWAa9ro9ynkUdlW5maZDCmB6clmz0k1HH4Cs1Ezbq2p2yEpUuBOKTSZZex00RUWIrltxuuK6EOGDSbGIOPZicpMx6fny650377qNRgBgWeVFQuA+6UjVgREhGIMlSqsPUQqIbZdOOIdZQmCv2axRnU1N1+TzJYsxOEaEV8ep7frPZ7Gd0FTEdP0ft0/kMNdg0eoAAAAASUVORK5CYII=';
@@ -16806,60 +16865,6 @@ const AniLinkPopup$1 = (_a) => {
16806
16865
  };
16807
16866
  var AniLinkPopupComponent = memo(AniLinkPopup$1);
16808
16867
 
16809
- /*
16810
- * @Author: binruan@chatlabs.com
16811
- * @Date: 2024-07-24 14:58:40
16812
- * @LastEditors: binruan@chatlabs.com
16813
- * @LastEditTime: 2024-09-09 13:54:35
16814
- * @FilePath: \pb-sxp-ui\src\materials\sxp\cta\AniLinkPopup\interactionRender.tsx
16815
- *
16816
- */
16817
- var interactionRender$2 = [
16818
- {
16819
- title: '点击事件',
16820
- child: [
16821
- {
16822
- type: 'link',
16823
- name: 'onClick',
16824
- hiddenUrl: true
16825
- }
16826
- ]
16827
- },
16828
- {
16829
- title: '动画效果',
16830
- child: [
16831
- {
16832
- type: 'Select',
16833
- name: ['animation', 'name'],
16834
- label: '动画',
16835
- options: [
16836
- {
16837
- label: '默认',
16838
- value: 1
16839
- }
16840
- ],
16841
- fieldProps: {
16842
- style: {
16843
- width: '100%'
16844
- }
16845
- }
16846
- },
16847
- {
16848
- type: 'Number',
16849
- label: '动画启动时间',
16850
- name: ['animation', 'delay'],
16851
- addonAfter: 'ms'
16852
- },
16853
- {
16854
- type: 'Number',
16855
- label: '动画持续时间',
16856
- name: ['animation', 'duration'],
16857
- addonAfter: 'ms'
16858
- }
16859
- ]
16860
- }
16861
- ];
16862
-
16863
16868
  /*
16864
16869
  * @Author: binruan@chatlabs.com
16865
16870
  * @Date: 2024-07-24 14:58:40
@@ -16898,7 +16903,6 @@ const AniLinkPopup = createMaterial(AniLinkPopupComponent, {
16898
16903
  title: {
16899
16904
  fontSize: 14,
16900
16905
  color: '#000',
16901
- textAlign: 'left',
16902
16906
  lineHeight: 2.6
16903
16907
  },
16904
16908
  ctaTitle: {
@@ -17127,7 +17131,7 @@ const Display$1 = (_a) => {
17127
17131
  React.createElement("span", { style: content === null || content === void 0 ? void 0 : content.style, dangerouslySetInnerHTML: {
17128
17132
  __html: setFontForText((_b = content === null || content === void 0 ? void 0 : content.text) === null || _b === void 0 ? void 0 : _b.replace(/\n/g, '</br>'), content === null || content === void 0 ? void 0 : content.style)
17129
17133
  } }),
17130
- React.createElement("span", { style: Object.assign(Object.assign({}, interaction === null || interaction === void 0 ? void 0 : interaction.style), { marginLeft: '5px' }), dangerouslySetInnerHTML: {
17134
+ React.createElement("span", { style: Object.assign(Object.assign({}, interaction === null || interaction === void 0 ? void 0 : interaction.style), { marginInlineStart: '5px' }), dangerouslySetInnerHTML: {
17131
17135
  __html: setFontForText((_c = interaction === null || interaction === void 0 ? void 0 : interaction.text) === null || _c === void 0 ? void 0 : _c.replace(/\n/g, '</br>'), interaction === null || interaction === void 0 ? void 0 : interaction.style)
17132
17136
  }, onClick: handleClick })),
17133
17137
  isShowClose && (React.createElement("button", { "aria-label": 'close', className: 'consentPopupDisplay-close', onClick: handleClickClose },
@@ -18827,10 +18831,22 @@ function withBindDataSource(Component) {
18827
18831
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\RenderCard.tsx
18828
18832
  *
18829
18833
  */
18830
- const RenderCard = ({ rec, index, tempMap, resolver, includesCtaType, isActive, value, isNineProduct }) => {
18834
+ const RenderCard = ({ rec, index, tempMap, resolver, includesCtaType, isActive, isNineProduct }) => {
18835
+ var _a, _b, _c, _d, _e;
18831
18836
  const { schema } = useEditor();
18832
18837
  if (!(rec === null || rec === void 0 ? void 0 : rec.video))
18833
18838
  return null;
18839
+ let cta = null;
18840
+ if ((_b = (_a = rec === null || rec === void 0 ? void 0 : rec.video) === null || _a === void 0 ? void 0 : _a.bindProducts) === null || _b === void 0 ? void 0 : _b.length) {
18841
+ cta = '多商品CTA';
18842
+ }
18843
+ else if ((_c = rec === null || rec === void 0 ? void 0 : rec.video) === null || _c === void 0 ? void 0 : _c.bindProduct) {
18844
+ cta = '商品CTA';
18845
+ }
18846
+ else {
18847
+ cta = (_e = (_d = rec === null || rec === void 0 ? void 0 : rec.video) === null || _d === void 0 ? void 0 : _d.bindCta) === null || _e === void 0 ? void 0 : _e.itemId;
18848
+ }
18849
+ const value = tempMap === null || tempMap === void 0 ? void 0 : tempMap[cta];
18834
18850
  const renderComp = useMemo(() => {
18835
18851
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3;
18836
18852
  // 如果includesCtaType有值,则只渲染includesCtaType包含的cta类型组件,用于在页面某处只显示某一组件
@@ -18858,7 +18874,7 @@ const RenderCard = ({ rec, index, tempMap, resolver, includesCtaType, isActive,
18858
18874
  const sbf = style.backdropFilter;
18859
18875
  style.backdropFilter = `blur(${sbf !== null && sbf !== void 0 ? sbf : 0}px)`;
18860
18876
  }
18861
- return (React.createElement(Component, Object.assign({ style: Object.assign(Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.style), style), { zIndex: 50, marginLeft: '20px', boxSizing: 'border-box', transform: 'translate3d(0px, 0px, 0px)' }), textStyle: Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.textStyle), (_z = value === null || value === void 0 ? void 0 : value.item) === null || _z === void 0 ? void 0 : _z.textStyle), bindDatas: (_1 = (_0 = value === null || value === void 0 ? void 0 : value.item) === null || _0 === void 0 ? void 0 : _0.bindDatas) !== null && _1 !== void 0 ? _1 : [] }, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.props, (_2 = value === null || value === void 0 ? void 0 : value.item) === null || _2 === void 0 ? void 0 : _2.props, { event: ((_3 = value === null || value === void 0 ? void 0 : value.item) === null || _3 === void 0 ? void 0 : _3.event) || {}, schema: schema, id: value === null || value === void 0 ? void 0 : value.id, key: value === null || value === void 0 ? void 0 : value.id, recData: rec, isExternalLink: isExternalLink, index: index, isActive: isActive })));
18877
+ return (React.createElement(Component, Object.assign({ style: Object.assign(Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.style), style), { zIndex: 50, marginInlineStart: '20px', boxSizing: 'border-box', transform: 'translate3d(0px, 0px, 0px)' }), textStyle: Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.textStyle), (_z = value === null || value === void 0 ? void 0 : value.item) === null || _z === void 0 ? void 0 : _z.textStyle), bindDatas: (_1 = (_0 = value === null || value === void 0 ? void 0 : value.item) === null || _0 === void 0 ? void 0 : _0.bindDatas) !== null && _1 !== void 0 ? _1 : [] }, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.props, (_2 = value === null || value === void 0 ? void 0 : value.item) === null || _2 === void 0 ? void 0 : _2.props, { event: ((_3 = value === null || value === void 0 ? void 0 : value.item) === null || _3 === void 0 ? void 0 : _3.event) || {}, schema: schema, id: value === null || value === void 0 ? void 0 : value.id, key: value === null || value === void 0 ? void 0 : value.id, recData: rec, isExternalLink: isExternalLink, index: index, isActive: isActive })));
18862
18878
  }
18863
18879
  else {
18864
18880
  return null;
@@ -19005,6 +19021,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
19005
19021
  const [isReload, setIsReload] = useState(new Date().getTime());
19006
19022
  const skipLinkRef = useRef(false);
19007
19023
  const [pageNum, setPageNum] = useState(2);
19024
+ const [isShowCookieSetting, setIsShowCookieSetting] = useState(false);
19008
19025
  const videoWidgetRef = useRef(null);
19009
19026
  const fbcRef = useRef('');
19010
19027
  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();
@@ -19282,17 +19299,17 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
19282
19299
  index === ((rtcList === null || rtcList === void 0 ? void 0 : rtcList[0]) === 'organic menu' ? 2 : 1) &&
19283
19300
  ((_f = ['MultiCommodity', 'MultiCommodityDiro', 'MultiCommodityDiroNew']) === null || _f === void 0 ? void 0 : _f.includes((_g = value === null || value === void 0 ? void 0 : value.item) === null || _g === void 0 ? void 0 : _g.type));
19284
19301
  return (React.createElement(React.Fragment, null,
19285
- isNineProduct && (React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, isActive: index === activeIndex, value: value, isNineProduct: isNineProduct })),
19302
+ isNineProduct && (React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, isActive: index === activeIndex, isNineProduct: isNineProduct })),
19286
19303
  ((_h = rec === null || rec === void 0 ? void 0 : rec.video) === null || _h === void 0 ? void 0 : _h.title) && !isShowMore && React.createElement("div", { className: 'clc-sxp-bottom-shadow' }),
19287
19304
  React.createElement("div", { className: 'clc-sxp-bottom', style: { marginBottom: `${(_j = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.bottomInfoDist) !== null && _j !== void 0 ? _j : 40}px` } },
19288
19305
  React.createElement(Nudge, { nudge: nudge }),
19289
19306
  ((globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowCTA) === undefined || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowCTA)) && !isNineProduct ? (React.createElement("div", { className: 'clc-sxp-bottom-card' },
19290
- React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, isActive: index === activeIndex, value: value }))) : null,
19307
+ React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, isActive: index === activeIndex }))) : null,
19291
19308
  React.createElement("div", { style: { display: 'flex', flexDirection: 'column' } },
19292
19309
  React.createElement(ExpandableText$1, { className: 'clc-sxp-bottom-text', isPost: true, foldText: tipText === null || tipText === void 0 ? void 0 : tipText.foldText, unfoldText: tipText === null || tipText === void 0 ? void 0 : tipText.unfoldText, text: (_l = (_k = rec === null || rec === void 0 ? void 0 : rec.video) === null || _k === void 0 ? void 0 : _k.title) !== null && _l !== void 0 ? _l : '', style: Object.assign(Object.assign({}, descStyle), { textShadow: (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isOpenTextShadow) ? '2px 2px 4px rgba(0, 0, 0, 0.5)' : 'none' }), onChange: onExpandableChange }),
19293
- React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, includesCtaType: ['AniLink'], isActive: index === activeIndex, value: value }),
19310
+ React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, includesCtaType: ['AniLink'], isActive: index === activeIndex }),
19294
19311
  React.createElement(Hashtag$1, { index: activeIndex, tags: (_o = (_m = rec === null || rec === void 0 ? void 0 : rec.video) === null || _m === void 0 ? void 0 : _m.hashTags) !== null && _o !== void 0 ? _o : [], itemId: (_p = rec === null || rec === void 0 ? void 0 : rec.video) === null || _p === void 0 ? void 0 : _p.itemId, itemType: ((_q = rec === null || rec === void 0 ? void 0 : rec.video) === null || _q === void 0 ? void 0 : _q.itemId) ? 'VIDEO' : null, rec: rec, hashTagStyle: hashTagStyle, hashTagRightMargin: containerWidth - (hashTagRightMargin !== null && hashTagRightMargin !== void 0 ? hashTagRightMargin : 0) }))),
19295
- React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, includesCtaType: ['AniLinkPopup'], isActive: index === activeIndex, value: value })));
19312
+ React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, includesCtaType: ['AniLinkPopup'], isActive: index === activeIndex })));
19296
19313
  }
19297
19314
  return null;
19298
19315
  }, [
@@ -19454,30 +19471,48 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
19454
19471
  if (!(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enableCookieSetting))
19455
19472
  return;
19456
19473
  window.OptanonWrapper = function () {
19457
- var _a, _b;
19458
- const activeGroups = window === null || window === void 0 ? void 0 : window.OnetrustActiveGroups;
19459
- if (!activeGroups)
19460
- return;
19461
- if (activeGroups === null || activeGroups === void 0 ? void 0 : activeGroups.includes('4')) {
19462
- if (fbcRef.current) {
19463
- setCookie('_fbc', fbcRef.current, 90);
19464
- }
19474
+ var _a;
19475
+ console.log('OptanonWrapper');
19476
+ if ((window === null || window === void 0 ? void 0 : window.OnetrustActiveGroups) && ((_a = window === null || window === void 0 ? void 0 : window.OnetrustActiveGroups) === null || _a === void 0 ? void 0 : _a.length) > 2) {
19477
+ setIsShowCookieSetting(true);
19465
19478
  }
19466
- else {
19467
- fbcRef.current = getCookie('_fbc');
19468
- deleteCookie('_fbc');
19469
- const item = data[activeIndex];
19470
- 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) || '';
19471
- bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
19472
- eventInfo: {
19473
- eventSubject: 'refuseCookie',
19474
- eventDescription: 'refuseCookie',
19475
- traceInfo
19476
- },
19477
- isActiveTargetingCookie: false
19478
- });
19479
+ };
19480
+ const handleClick = (event) => {
19481
+ var _a, _b;
19482
+ const beForeactiveGroups = window === null || window === void 0 ? void 0 : window.OnetrustActiveGroups;
19483
+ if (((_a = event.target) === null || _a === void 0 ? void 0 : _a.closest('.ot-pc-refuse-all-handler')) || ((_b = event.target) === null || _b === void 0 ? void 0 : _b.closest('.save-preference-btn-handler'))) {
19484
+ window.OptanonWrapper = function () {
19485
+ var _a, _b;
19486
+ // 这里可以添加保存选择后的处理逻辑
19487
+ const activeGroups = window === null || window === void 0 ? void 0 : window.OnetrustActiveGroups;
19488
+ if (!activeGroups)
19489
+ return;
19490
+ if (activeGroups === null || activeGroups === void 0 ? void 0 : activeGroups.includes('4')) {
19491
+ if (fbcRef.current && !(beForeactiveGroups === null || beForeactiveGroups === void 0 ? void 0 : beForeactiveGroups.includes('4'))) {
19492
+ setCookie('_fbp', fbcRef.current, 90);
19493
+ }
19494
+ }
19495
+ else if (beForeactiveGroups === null || beForeactiveGroups === void 0 ? void 0 : beForeactiveGroups.includes('4')) {
19496
+ fbcRef.current = getCookie('_fbc');
19497
+ deleteCookie('_fbc');
19498
+ const item = data[activeIndex];
19499
+ 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) || '';
19500
+ bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
19501
+ eventInfo: {
19502
+ eventSubject: 'refuseCookie',
19503
+ eventDescription: 'refuseCookie',
19504
+ traceInfo
19505
+ },
19506
+ isActiveTargetingCookie: false
19507
+ });
19508
+ }
19509
+ };
19479
19510
  }
19480
19511
  };
19512
+ document.addEventListener('click', handleClick);
19513
+ return () => {
19514
+ document.removeEventListener('click', handleClick);
19515
+ };
19481
19516
  }, [globalConfig, bffEventReport, data, activeIndex]);
19482
19517
  const handleViewImageStartEvent = (activeIndex, imgInfo, enableCapi) => {
19483
19518
  var _a, _b, _c, _d, _e, _f, _g, _h;
@@ -19626,7 +19661,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
19626
19661
  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)),
19627
19662
  React.createElement(ConsentPopup, { resolver: resolver, globalConfig: globalConfig }),
19628
19663
  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 } }))))),
19629
- (window === null || window === void 0 ? void 0 : window.OnetrustActiveGroups) && (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 } },
19664
+ 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 } },
19630
19665
  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")))));
19631
19666
  };
19632
19667
  var SxpPageRender$1 = memo(SxpPageRender);
@@ -19926,7 +19961,7 @@ const DiyPortalPreview = ({ data = [], globalConfig, tipText, nudge, tempMap, de
19926
19961
  const CTA = (rec, index) => {
19927
19962
  if ((globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowCTA) === undefined || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowCTA)) {
19928
19963
  return (React.createElement("div", { className: 'clc-sxp-bottom-card' },
19929
- React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$2 })));
19964
+ React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$2, isActive: true })));
19930
19965
  }
19931
19966
  return null;
19932
19967
  };
@@ -19939,8 +19974,10 @@ const DiyPortalPreview = ({ data = [], globalConfig, tipText, nudge, tempMap, de
19939
19974
  React.createElement(Nudge, { nudge: nudge }),
19940
19975
  CTA(rec, index),
19941
19976
  React.createElement("div", null,
19942
- React.createElement(ExpandableText$1, { className: 'clc-sxp-bottom-text', isPost: true, foldText: tipText === null || tipText === void 0 ? void 0 : tipText.foldText, unfoldText: tipText === null || tipText === void 0 ? void 0 : tipText.unfoldText, text: (_c = (_b = rec === null || rec === void 0 ? void 0 : rec.video) === null || _b === void 0 ? void 0 : _b.title) !== null && _c !== void 0 ? _c : '', style: Object.assign(Object.assign({}, descStyle), { textShadow: (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isOpenTextShadow) ? '2px 2px 4px rgba(0, 0, 0, 0.5)' : 'none' }) })),
19943
- React.createElement(Hashtag$1, { index: index, tags: (_e = (_d = rec === null || rec === void 0 ? void 0 : rec.video) === null || _d === void 0 ? void 0 : _d.hashTags) !== null && _e !== void 0 ? _e : [], itemId: (_f = rec === null || rec === void 0 ? void 0 : rec.video) === null || _f === void 0 ? void 0 : _f.itemId, itemType: ((_g = rec === null || rec === void 0 ? void 0 : rec.video) === null || _g === void 0 ? void 0 : _g.itemId) ? 'VIDEO' : null, rec: rec, hashTagStyle: hashTagStyle }))));
19977
+ React.createElement(ExpandableText$1, { className: 'clc-sxp-bottom-text', isPost: true, foldText: tipText === null || tipText === void 0 ? void 0 : tipText.foldText, unfoldText: tipText === null || tipText === void 0 ? void 0 : tipText.unfoldText, text: (_c = (_b = rec === null || rec === void 0 ? void 0 : rec.video) === null || _b === void 0 ? void 0 : _b.title) !== null && _c !== void 0 ? _c : '', style: Object.assign(Object.assign({}, descStyle), { textShadow: (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isOpenTextShadow) ? '2px 2px 4px rgba(0, 0, 0, 0.5)' : 'none' }) }),
19978
+ React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$2, includesCtaType: ['AniLink'], isActive: true })),
19979
+ React.createElement(Hashtag$1, { index: index, tags: (_e = (_d = rec === null || rec === void 0 ? void 0 : rec.video) === null || _d === void 0 ? void 0 : _d.hashTags) !== null && _e !== void 0 ? _e : [], itemId: (_f = rec === null || rec === void 0 ? void 0 : rec.video) === null || _f === void 0 ? void 0 : _f.itemId, itemType: ((_g = rec === null || rec === void 0 ? void 0 : rec.video) === null || _g === void 0 ? void 0 : _g.itemId) ? 'VIDEO' : null, rec: rec, hashTagStyle: hashTagStyle })),
19980
+ React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$2, includesCtaType: ['AniLinkPopup'], isActive: true })));
19944
19981
  }
19945
19982
  return null;
19946
19983
  };
@@ -20330,21 +20367,10 @@ const DiyStoryPreview = forwardRef(({ data = [], globalConfig, tipText, nudge, t
20330
20367
  return null;
20331
20368
  }, [globalConfig]);
20332
20369
  const renderBottom = (rec, index) => {
20333
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
20370
+ var _a, _b, _c, _d;
20334
20371
  if (rec === null || rec === void 0 ? void 0 : rec.video) {
20335
- let cta = null;
20336
- if ((_b = (_a = rec === null || rec === void 0 ? void 0 : rec.video) === null || _a === void 0 ? void 0 : _a.bindProducts) === null || _b === void 0 ? void 0 : _b.length) {
20337
- cta = '多商品CTA';
20338
- }
20339
- else if ((_c = rec === null || rec === void 0 ? void 0 : rec.video) === null || _c === void 0 ? void 0 : _c.bindProduct) {
20340
- cta = '商品CTA';
20341
- }
20342
- else {
20343
- cta = (_e = (_d = rec === null || rec === void 0 ? void 0 : rec.video) === null || _d === void 0 ? void 0 : _d.bindCta) === null || _e === void 0 ? void 0 : _e.itemId;
20344
- }
20345
- const value = tempMap === null || tempMap === void 0 ? void 0 : tempMap[cta];
20346
20372
  return (React.createElement(React.Fragment, null,
20347
- ((_f = rec === null || rec === void 0 ? void 0 : rec.video) === null || _f === void 0 ? void 0 : _f.title) && (React.createElement("div", { style: {
20373
+ ((_a = rec === null || rec === void 0 ? void 0 : rec.video) === null || _a === void 0 ? void 0 : _a.title) && (React.createElement("div", { style: {
20348
20374
  background: 'repeating-linear-gradient(0deg, rgba(26, 26, 25, 0.7), hsla(0, 0%, 100%, 0))',
20349
20375
  height: '130px',
20350
20376
  position: 'absolute',
@@ -20355,7 +20381,7 @@ const DiyStoryPreview = forwardRef(({ data = [], globalConfig, tipText, nudge, t
20355
20381
  pointerEvents
20356
20382
  } })),
20357
20383
  React.createElement("div", { style: {
20358
- marginBottom: `${(_g = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.bottomInfoDist) !== null && _g !== void 0 ? _g : 40}px`,
20384
+ marginBottom: `${(_b = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.bottomInfoDist) !== null && _b !== void 0 ? _b : 40}px`,
20359
20385
  zIndex: 999,
20360
20386
  position: 'absolute',
20361
20387
  bottom: 0,
@@ -20364,15 +20390,15 @@ const DiyStoryPreview = forwardRef(({ data = [], globalConfig, tipText, nudge, t
20364
20390
  paddingTop: '20px'
20365
20391
  } },
20366
20392
  (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowCTA) === undefined || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowCTA) ? (React.createElement("div", { style: {} },
20367
- React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$1, isActive: index === activeIndex, value: value }))) : null,
20393
+ React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$1, isActive: index === activeIndex }))) : null,
20368
20394
  React.createElement("div", null,
20369
20395
  React.createElement(ExpandableText$1
20370
20396
  // className='clc-sxp-bottom-text'
20371
20397
  , {
20372
20398
  // className='clc-sxp-bottom-text'
20373
- isPost: true, foldText: tipText === null || tipText === void 0 ? void 0 : tipText.foldText, unfoldText: tipText === null || tipText === void 0 ? void 0 : tipText.unfoldText, text: (_j = (_h = rec === null || rec === void 0 ? void 0 : rec.video) === null || _h === void 0 ? void 0 : _h.title) !== null && _j !== void 0 ? _j : '', style: Object.assign(Object.assign({}, descStyle), { textShadow: (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isOpenTextShadow) ? '2px 2px 4px rgba(0, 0, 0, 0.5)' : 'none', padding: '0 20px', fontSize: '12px' }) }),
20374
- React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$1, includesCtaType: ['AniLink'], isActive: index === activeIndex, value: value }))),
20375
- React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$1, includesCtaType: ['AniLinkPopup'], isActive: index === activeIndex, value: value })));
20399
+ isPost: true, foldText: tipText === null || tipText === void 0 ? void 0 : tipText.foldText, unfoldText: tipText === null || tipText === void 0 ? void 0 : tipText.unfoldText, text: (_d = (_c = rec === null || rec === void 0 ? void 0 : rec.video) === null || _c === void 0 ? void 0 : _c.title) !== null && _d !== void 0 ? _d : '', style: Object.assign(Object.assign({}, descStyle), { textShadow: (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isOpenTextShadow) ? '2px 2px 4px rgba(0, 0, 0, 0.5)' : 'none', padding: '0 20px', fontSize: '12px' }) }),
20400
+ React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$1, includesCtaType: ['AniLink'], isActive: index === activeIndex }))),
20401
+ React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$1, includesCtaType: ['AniLinkPopup'], isActive: index === activeIndex })));
20376
20402
  }
20377
20403
  return null;
20378
20404
  };