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/pb-ui.js CHANGED
@@ -765,7 +765,27 @@
765
765
  return ((_a = bffDataSource === null || bffDataSource === void 0 ? void 0 : bffDataSource.headers) === null || _a === void 0 ? void 0 : _a['x-app-id']) + storeAndLoadFeUserId();
766
766
  }, [bffDataSource]);
767
767
  const getTargetingCookie = () => {
768
- var _a;
768
+ var _a, _b;
769
+ function isTargetingRejected(cookieValue) {
770
+ // 1. 从Cookie字符串中提取groups部分
771
+ const groupsMatch = cookieValue.match(/groups=([^&]+)/);
772
+ if (!groupsMatch || !groupsMatch[1]) {
773
+ return false;
774
+ }
775
+ const groupsString = groupsMatch[1];
776
+ // 2. 将groups字符串拆分为键值对数组
777
+ const groupsPairs = groupsString.split(',');
778
+ // 3. 遍历查找第四个类别(Targeting)的状态
779
+ for (const pair of groupsPairs) {
780
+ const [category, status] = pair.split(':');
781
+ if (category === '4') {
782
+ // 找到第四个类别,检查其状态
783
+ return status === '0'; // 如果状态为0则返回true
784
+ }
785
+ }
786
+ // 如果没有找到第四个类别
787
+ return false;
788
+ }
769
789
  function getCookie(name) {
770
790
  var _a;
771
791
  const value = `; ${document.cookie}`;
@@ -774,9 +794,8 @@
774
794
  return (_a = parts.pop()) === null || _a === void 0 ? void 0 : _a.split(';').shift();
775
795
  return '';
776
796
  }
777
- decodeURIComponent((_a = getCookie('OptanonConsent')) !== null && _a !== void 0 ? _a : '');
778
- console.log('OptanonConsent:', window === null || window === void 0 ? void 0 : window.OnetrustActiveGroups);
779
- if (((window === null || window === void 0 ? void 0 : window.OnetrustActiveGroups) && !(window === null || window === void 0 ? void 0 : window.OnetrustActiveGroups.includes('4')))) {
797
+ const OptanonConsent = decodeURIComponent((_a = getCookie('OptanonConsent')) !== null && _a !== void 0 ? _a : '');
798
+ 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))) {
780
799
  return true;
781
800
  }
782
801
  return false;
@@ -2699,6 +2718,35 @@
2699
2718
  }
2700
2719
  ];
2701
2720
 
2721
+ /*
2722
+ * @Author: binruan@chatlabs.com
2723
+ * @Date: 2024-07-09 14:35:10
2724
+ * @LastEditors: binruan@chatlabs.com
2725
+ * @LastEditTime: 2024-07-12 17:53:02
2726
+ * @FilePath: \pb-sxp-ui\src\materials\sxp\popup\CommodityDetail\interactionRender.tsx
2727
+ *
2728
+ */
2729
+ /*
2730
+ * @Author: binruan@chatlabs.com
2731
+ * @Date: 2024-07-05 14:08:41
2732
+ * @LastEditors: binruan@chatlabs.com
2733
+ * @LastEditTime: 2024-07-09 14:34:49
2734
+ * @FilePath: \pb-sxp-ui\src\materials\sxp\cta\AniLink\interactionRender.tsx
2735
+ *
2736
+ */
2737
+ var interactionRender$g = [
2738
+ {
2739
+ title: '滑动事件',
2740
+ child: [
2741
+ {
2742
+ type: 'Switch',
2743
+ label: '滑动铺满全屏',
2744
+ name: ['isScrollFullScreen']
2745
+ }
2746
+ ]
2747
+ }
2748
+ ];
2749
+
2702
2750
  /**
2703
2751
  * SSR Window 4.0.2
2704
2752
  * Better handling for window object in SSR environment
@@ -10277,7 +10325,7 @@
10277
10325
  return (React.createElement(React.Fragment, null, (item === null || item === void 0 ? void 0 : item.bindCta) ? (React.createElement(SwiperSlide, { className: css.css({
10278
10326
  width: '50px',
10279
10327
  height: '50px',
10280
- marginRight: '10px'
10328
+ marginInlineEnd: '10px'
10281
10329
  }), onClick: () => {
10282
10330
  handleClick(item, index);
10283
10331
  }, key: index },
@@ -10876,35 +10924,6 @@
10876
10924
  };
10877
10925
  var CommodityDetailComponent = React.memo(CommodityDetail$1);
10878
10926
 
10879
- /*
10880
- * @Author: binruan@chatlabs.com
10881
- * @Date: 2024-07-09 14:35:10
10882
- * @LastEditors: binruan@chatlabs.com
10883
- * @LastEditTime: 2024-07-12 17:53:02
10884
- * @FilePath: \pb-sxp-ui\src\materials\sxp\popup\CommodityDetail\interactionRender.tsx
10885
- *
10886
- */
10887
- /*
10888
- * @Author: binruan@chatlabs.com
10889
- * @Date: 2024-07-05 14:08:41
10890
- * @LastEditors: binruan@chatlabs.com
10891
- * @LastEditTime: 2024-07-09 14:34:49
10892
- * @FilePath: \pb-sxp-ui\src\materials\sxp\cta\AniLink\interactionRender.tsx
10893
- *
10894
- */
10895
- var interactionRender$g = [
10896
- {
10897
- title: '滑动事件',
10898
- child: [
10899
- {
10900
- type: 'Switch',
10901
- label: '滑动铺满全屏',
10902
- name: ['isScrollFullScreen']
10903
- }
10904
- ]
10905
- }
10906
- ];
10907
-
10908
10927
  /*
10909
10928
  * @Author: binruan@chatlabs.com
10910
10929
  * @Date: 2023-07-28 18:29:57
@@ -10951,7 +10970,6 @@
10951
10970
  taxInfo: {
10952
10971
  color: '#000',
10953
10972
  fontSize: 13,
10954
- textAlign: 'left',
10955
10973
  marginBottom: '10px'
10956
10974
  }
10957
10975
  },
@@ -12043,7 +12061,7 @@ Made in Italy` })));
12043
12061
  type: 'Number',
12044
12062
  label: '与右侧边距',
12045
12063
  addonAfter: 'px',
12046
- name: ['props', 'commodityPicture', 'marginRight']
12064
+ name: ['props', 'commodityPicture', 'marginInlineEnd']
12047
12065
  },
12048
12066
  {
12049
12067
  label: '居中垂直偏移',
@@ -12329,12 +12347,11 @@ Made in Italy` })));
12329
12347
  React.createElement("button", Object.assign({ role: 'button', "aria-label": item === null || item === void 0 ? void 0 : item.title, tabIndex: 0, className: css.css({
12330
12348
  display: 'flex',
12331
12349
  alignItems: 'normal',
12332
- width: '100%',
12333
- textAlign: 'left'
12350
+ width: '100%'
12334
12351
  }) }, props),
12335
12352
  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 }),
12336
12353
  React.createElement("div", { style: {
12337
- 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)`,
12354
+ 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)`,
12338
12355
  display: 'flex',
12339
12356
  flexDirection: 'column',
12340
12357
  justifyContent: 'space-between'
@@ -12415,7 +12432,7 @@ Made in Italy` })));
12415
12432
  commodityPicture: {
12416
12433
  width: 100,
12417
12434
  height: 100,
12418
- marginRight: 10
12435
+ marginInlineEnd: 10
12419
12436
  },
12420
12437
  commodityStyles: {
12421
12438
  price: {
@@ -12661,7 +12678,7 @@ Made in Italy` })));
12661
12678
  type: 'Number',
12662
12679
  label: '与右侧边距',
12663
12680
  addonAfter: 'px',
12664
- name: ['props', 'ctaTempStyles', 'img', 'marginRight']
12681
+ name: ['props', 'ctaTempStyles', 'img', 'marginInlineEnd']
12665
12682
  },
12666
12683
  {
12667
12684
  label: '居中垂直偏移',
@@ -12922,12 +12939,11 @@ Made in Italy` })));
12922
12939
  borderRadius: 3,
12923
12940
  width: 60,
12924
12941
  height: 60,
12925
- marginRight: 8
12942
+ marginInlineEnd: 8
12926
12943
  },
12927
12944
  title: {
12928
12945
  fontSize: 12,
12929
- color: '#fff',
12930
- textAlign: 'left'
12946
+ color: '#fff'
12931
12947
  },
12932
12948
  ctaTitle: {
12933
12949
  fontSize: 10,
@@ -13005,12 +13021,11 @@ Made in Italy` })));
13005
13021
  borderRadius: 3,
13006
13022
  width: 30,
13007
13023
  height: 30,
13008
- marginRight: 8
13024
+ marginInlineEnd: 8
13009
13025
  },
13010
13026
  ctaTitle: {
13011
13027
  fontSize: 12,
13012
13028
  color: '#fff',
13013
- textAlign: 'left',
13014
13029
  width: 130,
13015
13030
  height: 20
13016
13031
  }
@@ -13146,6 +13161,27 @@ Made in Italy` })));
13146
13161
  }
13147
13162
  ];
13148
13163
 
13164
+ /*
13165
+ * @Author: binruan@chatlabs.com
13166
+ * @Date: 2024-08-09 16:59:38
13167
+ * @LastEditors: binruan@chatlabs.com
13168
+ * @LastEditTime: 2024-09-09 13:59:50
13169
+ * @FilePath: \pb-sxp-ui\src\materials\sxp\template\Link\interactionRender.tsx
13170
+ *
13171
+ */
13172
+ var interactionRender$a = [
13173
+ {
13174
+ title: '点击事件',
13175
+ child: [
13176
+ {
13177
+ type: 'link',
13178
+ name: 'onClick',
13179
+ hiddenUrl: true
13180
+ }
13181
+ ]
13182
+ }
13183
+ ];
13184
+
13149
13185
  var styles$8 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__nkBlU","one-line-ellipsis":"index-module_one-line-ellipsis__buFw1"};
13150
13186
 
13151
13187
  const Link$1 = (_a) => {
@@ -13173,27 +13209,6 @@ Made in Italy` })));
13173
13209
  };
13174
13210
  var LinkComponent = React.memo(Link$1);
13175
13211
 
13176
- /*
13177
- * @Author: binruan@chatlabs.com
13178
- * @Date: 2024-08-09 16:59:38
13179
- * @LastEditors: binruan@chatlabs.com
13180
- * @LastEditTime: 2024-09-09 13:59:50
13181
- * @FilePath: \pb-sxp-ui\src\materials\sxp\template\Link\interactionRender.tsx
13182
- *
13183
- */
13184
- var interactionRender$a = [
13185
- {
13186
- title: '点击事件',
13187
- child: [
13188
- {
13189
- type: 'link',
13190
- name: 'onClick',
13191
- hiddenUrl: true
13192
- }
13193
- ]
13194
- }
13195
- ];
13196
-
13197
13212
  var _a;
13198
13213
  const Link = createMaterial(LinkComponent, {
13199
13214
  displayName: '普通CTA',
@@ -13212,19 +13227,17 @@ Made in Italy` })));
13212
13227
  borderRadius: 3,
13213
13228
  width: 60,
13214
13229
  height: 60,
13215
- marginRight: 8
13230
+ marginInlineEnd: 8
13216
13231
  },
13217
13232
  ctaTitle: {
13218
13233
  fontSize: 12,
13219
13234
  color: '#fff',
13220
- textAlign: 'left',
13221
13235
  width: 130,
13222
13236
  height: 20
13223
13237
  }
13224
13238
  },
13225
13239
  customTitle: {
13226
13240
  style: {
13227
- textAlign: 'left',
13228
13241
  textDecoration: 'underline',
13229
13242
  fontWeight: 'bold',
13230
13243
  width: 130,
@@ -13314,12 +13327,11 @@ Made in Italy` })));
13314
13327
  borderRadius: 3,
13315
13328
  width: 60,
13316
13329
  height: 60,
13317
- marginRight: 8
13330
+ marginInlineEnd: 8
13318
13331
  },
13319
13332
  title: {
13320
13333
  fontSize: 12,
13321
- color: '#000',
13322
- textAlign: 'left'
13334
+ color: '#000'
13323
13335
  },
13324
13336
  ctaTitle: {
13325
13337
  fontSize: 10,
@@ -13410,19 +13422,17 @@ Made in Italy` })));
13410
13422
  borderRadius: 8,
13411
13423
  width: 78,
13412
13424
  height: 78,
13413
- marginRight: 16
13425
+ marginInlineEnd: 16
13414
13426
  },
13415
13427
  title: {
13416
13428
  fontSize: 13,
13417
- color: '#000',
13418
- textAlign: 'left'
13429
+ color: '#000'
13419
13430
  },
13420
13431
  ctaTitle: {
13421
13432
  textDecoration: 'underline',
13422
13433
  fontSize: 14,
13423
13434
  fontWeight: 'bold',
13424
13435
  color: '#000',
13425
- textAlign: 'left',
13426
13436
  width: 150,
13427
13437
  height: 20
13428
13438
  }
@@ -13464,7 +13474,7 @@ Made in Italy` })));
13464
13474
  const [products] = React.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]);
13465
13475
  return (React.createElement(Scroll$1, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item, itemIndex) => {
13466
13476
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
13467
- return (React.createElement(React.Fragment, null, recData && !(item === null || item === void 0 ? void 0 : item.bindCta) ? null : (React.createElement(SwiperSlide, { key: itemIndex, className: css.css(Object.assign(Object.assign({}, style), { flexShrink: 0, marginLeft: 0, marginRight: '8px' })), tag: 'li', role: 'listitem' },
13477
+ return (React.createElement(React.Fragment, null, recData && !(item === null || item === void 0 ? void 0 : item.bindCta) ? null : (React.createElement(SwiperSlide, { key: itemIndex, className: css.css(Object.assign(Object.assign({}, style), { flexShrink: 0, marginInlineStart: 0, marginInlineEnd: '8px' })), tag: 'li', role: 'listitem' },
13468
13478
  React.createElement(EventProvider$1, Object.assign({ rec: recData, multItem: item, multiCheckIndex: itemIndex, index: index }, props),
13469
13479
  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 }),
13470
13480
  React.createElement("div", { className: css.css({
@@ -13510,12 +13520,11 @@ Made in Italy` })));
13510
13520
  borderRadius: 3,
13511
13521
  width: 60,
13512
13522
  height: 60,
13513
- marginRight: 8
13523
+ marginInlineEnd: 8
13514
13524
  },
13515
13525
  title: {
13516
13526
  fontSize: 12,
13517
- color: '#000',
13518
- textAlign: 'left'
13527
+ color: '#000'
13519
13528
  },
13520
13529
  ctaTitle: {
13521
13530
  fontSize: 10,
@@ -13563,7 +13572,7 @@ Made in Italy` })));
13563
13572
  const [products] = React.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]);
13564
13573
  return (React.createElement(Scroll$1, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item, itemIndex) => {
13565
13574
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
13566
- return (React.createElement(React.Fragment, null, recData && !(item === null || item === void 0 ? void 0 : item.bindCta) ? null : (React.createElement(SwiperSlide, { key: itemIndex, className: css.css(Object.assign(Object.assign({}, style), { flexShrink: 0, marginLeft: 0, marginRight: '8px' })), tag: 'li', role: 'listitem' },
13575
+ return (React.createElement(React.Fragment, null, recData && !(item === null || item === void 0 ? void 0 : item.bindCta) ? null : (React.createElement(SwiperSlide, { key: itemIndex, className: css.css(Object.assign(Object.assign({}, style), { flexShrink: 0, marginInlineStart: 0, marginInlineEnd: '8px' })), tag: 'li', role: 'listitem' },
13567
13576
  React.createElement(EventProvider$1, Object.assign({ rec: recData, multItem: item, multiCheckIndex: itemIndex, index: index }, props),
13568
13577
  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 }),
13569
13578
  React.createElement("div", { className: css.css({
@@ -13609,12 +13618,11 @@ Made in Italy` })));
13609
13618
  borderRadius: 3,
13610
13619
  width: 60,
13611
13620
  height: 60,
13612
- marginRight: 8
13621
+ marginInlineEnd: 8
13613
13622
  },
13614
13623
  title: {
13615
13624
  fontSize: 12,
13616
13625
  color: '#fff',
13617
- textAlign: 'left'
13618
13626
  },
13619
13627
  ctaTitle: {
13620
13628
  fontSize: 10,
@@ -13670,7 +13678,7 @@ Made in Italy` })));
13670
13678
  const [products] = React.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]);
13671
13679
  return (React.createElement(Scroll$1, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item, itemIndex) => {
13672
13680
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
13673
- return (React.createElement(React.Fragment, null, recData && !(item === null || item === void 0 ? void 0 : item.bindCta) ? null : (React.createElement(SwiperSlide, { key: itemIndex, className: css.css(Object.assign(Object.assign({}, style), { flexShrink: 0, marginLeft: 0, marginRight: '8px' })), tag: 'li', role: 'listitem' },
13681
+ return (React.createElement(React.Fragment, null, recData && !(item === null || item === void 0 ? void 0 : item.bindCta) ? null : (React.createElement(SwiperSlide, { key: itemIndex, className: css.css(Object.assign(Object.assign({}, style), { flexShrink: 0, marginInlineStart: 0, marginInlineEnd: '8px' })), tag: 'li', role: 'listitem' },
13674
13682
  React.createElement(EventProvider$1, Object.assign({ rec: recData, multItem: item, multiCheckIndex: itemIndex, index: index }, props),
13675
13683
  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 }),
13676
13684
  React.createElement("div", { className: css.css({
@@ -13717,19 +13725,17 @@ Made in Italy` })));
13717
13725
  borderRadius: 8,
13718
13726
  width: 78,
13719
13727
  height: 78,
13720
- marginRight: 16
13728
+ marginInlineEnd: 16
13721
13729
  },
13722
13730
  title: {
13723
13731
  fontSize: 12,
13724
- color: '#000',
13725
- textAlign: 'left'
13732
+ color: '#000'
13726
13733
  },
13727
13734
  ctaTitle: {
13728
13735
  textDecoration: 'underline',
13729
13736
  fontSize: 12,
13730
13737
  fontWeight: 'bold',
13731
13738
  color: '#000',
13732
- textAlign: 'left',
13733
13739
  width: 150,
13734
13740
  height: 20
13735
13741
  }
@@ -13824,12 +13830,11 @@ Made in Italy` })));
13824
13830
  borderRadius: 3,
13825
13831
  width: 60,
13826
13832
  height: 60,
13827
- marginRight: 8
13833
+ marginInlineEnd: 8
13828
13834
  },
13829
13835
  title: {
13830
13836
  fontSize: 12,
13831
- color: '#fff',
13832
- textAlign: 'left'
13837
+ color: '#fff'
13833
13838
  },
13834
13839
  ctaTitle: {
13835
13840
  fontSize: 10,
@@ -16749,6 +16754,60 @@ Made in Italy` })));
16749
16754
  }
16750
16755
  ];
16751
16756
 
16757
+ /*
16758
+ * @Author: binruan@chatlabs.com
16759
+ * @Date: 2024-07-24 14:58:40
16760
+ * @LastEditors: binruan@chatlabs.com
16761
+ * @LastEditTime: 2024-09-09 13:54:35
16762
+ * @FilePath: \pb-sxp-ui\src\materials\sxp\cta\AniLinkPopup\interactionRender.tsx
16763
+ *
16764
+ */
16765
+ var interactionRender$2 = [
16766
+ {
16767
+ title: '点击事件',
16768
+ child: [
16769
+ {
16770
+ type: 'link',
16771
+ name: 'onClick',
16772
+ hiddenUrl: true
16773
+ }
16774
+ ]
16775
+ },
16776
+ {
16777
+ title: '动画效果',
16778
+ child: [
16779
+ {
16780
+ type: 'Select',
16781
+ name: ['animation', 'name'],
16782
+ label: '动画',
16783
+ options: [
16784
+ {
16785
+ label: '默认',
16786
+ value: 1
16787
+ }
16788
+ ],
16789
+ fieldProps: {
16790
+ style: {
16791
+ width: '100%'
16792
+ }
16793
+ }
16794
+ },
16795
+ {
16796
+ type: 'Number',
16797
+ label: '动画启动时间',
16798
+ name: ['animation', 'delay'],
16799
+ addonAfter: 'ms'
16800
+ },
16801
+ {
16802
+ type: 'Number',
16803
+ label: '动画持续时间',
16804
+ name: ['animation', 'duration'],
16805
+ addonAfter: 'ms'
16806
+ }
16807
+ ]
16808
+ }
16809
+ ];
16810
+
16752
16811
  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"};
16753
16812
 
16754
16813
  const closeIcon = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAjhJREFUWEfFlztOw0AQhmeWiJ4CCmpQ5DiRQsIJyAWg5A0lR0AIChDiCJS8ER0cADgBeRSxt4CCDgkaKiq8i+zYeWx2413HEWmiJJv9v535Z2aN8M8vFPT9z3zETD0aAUChUJjwvPFHAJhBhB3Hqd6OAsK2yyucwykAvP38eJX398Z3AJDLlVYR8ToU9Rhj25TWr9KEsKy5dULIGQCMtfZly45TvwsAstm56UwG6wA4FUFwzrdctxZBDcWSy5XWEPG8I84/GcMipdWPtgcsaz5PCHtKG0IuTiqUvjT9U/WYMG2IOPE+AP+LtCB0xKUAAyA2Xbd2o2OG0NQXvTnvhL17D7EPtH9TRCIWwkRcGYGIQgYBABuqPuHXOQBc6pw80lBGwBQiiXhsBHQhkoprA6iM6acjhDQKu5YJZW6XeOI3XJdpvfsdTu52VfXEekD8owQiXGIubpSCbhDbLu8DwKEAd+A41SOdPpE4BS0viFOtvV2iKWqUgn5x/tmS70xR01GuDSCKc86/OCcLgTyyZ0ScDGNhFAktAJV4NFJ9YyaFiAWIE+9uVkkgBgLoig8DMWAa9ro9ynkUdlW5maZDCmB6clmz0k1HH4Cs1Ezbq2p2yEpUuBOKTSZZex00RUWIrltxuuK6EOGDSbGIOPZicpMx6fny650377qNRgBgWeVFQuA+6UjVgREhGIMlSqsPUQqIbZdOOIdZQmCv2axRnU1N1+TzJYsxOEaEV8ep7frPZ7Gd0FTEdP0ft0/kMNdg0eoAAAAASUVORK5CYII=';
@@ -16821,60 +16880,6 @@ Made in Italy` })));
16821
16880
  };
16822
16881
  var AniLinkPopupComponent = React.memo(AniLinkPopup$1);
16823
16882
 
16824
- /*
16825
- * @Author: binruan@chatlabs.com
16826
- * @Date: 2024-07-24 14:58:40
16827
- * @LastEditors: binruan@chatlabs.com
16828
- * @LastEditTime: 2024-09-09 13:54:35
16829
- * @FilePath: \pb-sxp-ui\src\materials\sxp\cta\AniLinkPopup\interactionRender.tsx
16830
- *
16831
- */
16832
- var interactionRender$2 = [
16833
- {
16834
- title: '点击事件',
16835
- child: [
16836
- {
16837
- type: 'link',
16838
- name: 'onClick',
16839
- hiddenUrl: true
16840
- }
16841
- ]
16842
- },
16843
- {
16844
- title: '动画效果',
16845
- child: [
16846
- {
16847
- type: 'Select',
16848
- name: ['animation', 'name'],
16849
- label: '动画',
16850
- options: [
16851
- {
16852
- label: '默认',
16853
- value: 1
16854
- }
16855
- ],
16856
- fieldProps: {
16857
- style: {
16858
- width: '100%'
16859
- }
16860
- }
16861
- },
16862
- {
16863
- type: 'Number',
16864
- label: '动画启动时间',
16865
- name: ['animation', 'delay'],
16866
- addonAfter: 'ms'
16867
- },
16868
- {
16869
- type: 'Number',
16870
- label: '动画持续时间',
16871
- name: ['animation', 'duration'],
16872
- addonAfter: 'ms'
16873
- }
16874
- ]
16875
- }
16876
- ];
16877
-
16878
16883
  /*
16879
16884
  * @Author: binruan@chatlabs.com
16880
16885
  * @Date: 2024-07-24 14:58:40
@@ -16913,7 +16918,6 @@ Made in Italy` })));
16913
16918
  title: {
16914
16919
  fontSize: 14,
16915
16920
  color: '#000',
16916
- textAlign: 'left',
16917
16921
  lineHeight: 2.6
16918
16922
  },
16919
16923
  ctaTitle: {
@@ -17142,7 +17146,7 @@ Made in Italy` })));
17142
17146
  React.createElement("span", { style: content === null || content === void 0 ? void 0 : content.style, dangerouslySetInnerHTML: {
17143
17147
  __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)
17144
17148
  } }),
17145
- React.createElement("span", { style: Object.assign(Object.assign({}, interaction === null || interaction === void 0 ? void 0 : interaction.style), { marginLeft: '5px' }), dangerouslySetInnerHTML: {
17149
+ React.createElement("span", { style: Object.assign(Object.assign({}, interaction === null || interaction === void 0 ? void 0 : interaction.style), { marginInlineStart: '5px' }), dangerouslySetInnerHTML: {
17146
17150
  __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)
17147
17151
  }, onClick: handleClick })),
17148
17152
  isShowClose && (React.createElement("button", { "aria-label": 'close', className: 'consentPopupDisplay-close', onClick: handleClickClose },
@@ -18842,10 +18846,22 @@ Made in Italy` })));
18842
18846
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\RenderCard.tsx
18843
18847
  *
18844
18848
  */
18845
- const RenderCard = ({ rec, index, tempMap, resolver, includesCtaType, isActive, value, isNineProduct }) => {
18849
+ const RenderCard = ({ rec, index, tempMap, resolver, includesCtaType, isActive, isNineProduct }) => {
18850
+ var _a, _b, _c, _d, _e;
18846
18851
  const { schema } = useEditor();
18847
18852
  if (!(rec === null || rec === void 0 ? void 0 : rec.video))
18848
18853
  return null;
18854
+ let cta = null;
18855
+ 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) {
18856
+ cta = '多商品CTA';
18857
+ }
18858
+ else if ((_c = rec === null || rec === void 0 ? void 0 : rec.video) === null || _c === void 0 ? void 0 : _c.bindProduct) {
18859
+ cta = '商品CTA';
18860
+ }
18861
+ else {
18862
+ 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;
18863
+ }
18864
+ const value = tempMap === null || tempMap === void 0 ? void 0 : tempMap[cta];
18849
18865
  const renderComp = React.useMemo(() => {
18850
18866
  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;
18851
18867
  // 如果includesCtaType有值,则只渲染includesCtaType包含的cta类型组件,用于在页面某处只显示某一组件
@@ -18873,7 +18889,7 @@ Made in Italy` })));
18873
18889
  const sbf = style.backdropFilter;
18874
18890
  style.backdropFilter = `blur(${sbf !== null && sbf !== void 0 ? sbf : 0}px)`;
18875
18891
  }
18876
- 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 })));
18892
+ 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 })));
18877
18893
  }
18878
18894
  else {
18879
18895
  return null;
@@ -19020,6 +19036,7 @@ Made in Italy` })));
19020
19036
  const [isReload, setIsReload] = React.useState(new Date().getTime());
19021
19037
  const skipLinkRef = React.useRef(false);
19022
19038
  const [pageNum, setPageNum] = React.useState(2);
19039
+ const [isShowCookieSetting, setIsShowCookieSetting] = React.useState(false);
19023
19040
  const videoWidgetRef = React.useRef(null);
19024
19041
  const fbcRef = React.useRef('');
19025
19042
  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();
@@ -19297,17 +19314,17 @@ Made in Italy` })));
19297
19314
  index === ((rtcList === null || rtcList === void 0 ? void 0 : rtcList[0]) === 'organic menu' ? 2 : 1) &&
19298
19315
  ((_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));
19299
19316
  return (React.createElement(React.Fragment, null,
19300
- isNineProduct && (React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, isActive: index === activeIndex, value: value, isNineProduct: isNineProduct })),
19317
+ isNineProduct && (React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, isActive: index === activeIndex, isNineProduct: isNineProduct })),
19301
19318
  ((_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' }),
19302
19319
  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` } },
19303
19320
  React.createElement(Nudge, { nudge: nudge }),
19304
19321
  ((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' },
19305
- React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, isActive: index === activeIndex, value: value }))) : null,
19322
+ React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, isActive: index === activeIndex }))) : null,
19306
19323
  React.createElement("div", { style: { display: 'flex', flexDirection: 'column' } },
19307
19324
  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 }),
19308
- React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, includesCtaType: ['AniLink'], isActive: index === activeIndex, value: value }),
19325
+ React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, includesCtaType: ['AniLink'], isActive: index === activeIndex }),
19309
19326
  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) }))),
19310
- React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, includesCtaType: ['AniLinkPopup'], isActive: index === activeIndex, value: value })));
19327
+ React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, includesCtaType: ['AniLinkPopup'], isActive: index === activeIndex })));
19311
19328
  }
19312
19329
  return null;
19313
19330
  }, [
@@ -19469,30 +19486,48 @@ Made in Italy` })));
19469
19486
  if (!(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enableCookieSetting))
19470
19487
  return;
19471
19488
  window.OptanonWrapper = function () {
19472
- var _a, _b;
19473
- const activeGroups = window === null || window === void 0 ? void 0 : window.OnetrustActiveGroups;
19474
- if (!activeGroups)
19475
- return;
19476
- if (activeGroups === null || activeGroups === void 0 ? void 0 : activeGroups.includes('4')) {
19477
- if (fbcRef.current) {
19478
- setCookie('_fbc', fbcRef.current, 90);
19479
- }
19489
+ var _a;
19490
+ console.log('OptanonWrapper');
19491
+ 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) {
19492
+ setIsShowCookieSetting(true);
19480
19493
  }
19481
- else {
19482
- fbcRef.current = getCookie('_fbc');
19483
- deleteCookie('_fbc');
19484
- const item = data[activeIndex];
19485
- 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
- bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
19487
- eventInfo: {
19488
- eventSubject: 'refuseCookie',
19489
- eventDescription: 'refuseCookie',
19490
- traceInfo
19491
- },
19492
- isActiveTargetingCookie: false
19493
- });
19494
+ };
19495
+ const handleClick = (event) => {
19496
+ var _a, _b;
19497
+ const beForeactiveGroups = window === null || window === void 0 ? void 0 : window.OnetrustActiveGroups;
19498
+ 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'))) {
19499
+ window.OptanonWrapper = function () {
19500
+ var _a, _b;
19501
+ // 这里可以添加保存选择后的处理逻辑
19502
+ const activeGroups = window === null || window === void 0 ? void 0 : window.OnetrustActiveGroups;
19503
+ if (!activeGroups)
19504
+ return;
19505
+ if (activeGroups === null || activeGroups === void 0 ? void 0 : activeGroups.includes('4')) {
19506
+ if (fbcRef.current && !(beForeactiveGroups === null || beForeactiveGroups === void 0 ? void 0 : beForeactiveGroups.includes('4'))) {
19507
+ setCookie('_fbp', fbcRef.current, 90);
19508
+ }
19509
+ }
19510
+ else if (beForeactiveGroups === null || beForeactiveGroups === void 0 ? void 0 : beForeactiveGroups.includes('4')) {
19511
+ fbcRef.current = getCookie('_fbc');
19512
+ deleteCookie('_fbc');
19513
+ const item = data[activeIndex];
19514
+ 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) || '';
19515
+ bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
19516
+ eventInfo: {
19517
+ eventSubject: 'refuseCookie',
19518
+ eventDescription: 'refuseCookie',
19519
+ traceInfo
19520
+ },
19521
+ isActiveTargetingCookie: false
19522
+ });
19523
+ }
19524
+ };
19494
19525
  }
19495
19526
  };
19527
+ document.addEventListener('click', handleClick);
19528
+ return () => {
19529
+ document.removeEventListener('click', handleClick);
19530
+ };
19496
19531
  }, [globalConfig, bffEventReport, data, activeIndex]);
19497
19532
  const handleViewImageStartEvent = (activeIndex, imgInfo, enableCapi) => {
19498
19533
  var _a, _b, _c, _d, _e, _f, _g, _h;
@@ -19641,7 +19676,7 @@ Made in Italy` })));
19641
19676
  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)),
19642
19677
  React.createElement(ConsentPopup, { resolver: resolver, globalConfig: globalConfig }),
19643
19678
  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 } }))))),
19644
- (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 } },
19679
+ 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 } },
19645
19680
  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")))));
19646
19681
  };
19647
19682
  var SxpPageRender$1 = React.memo(SxpPageRender);
@@ -19941,7 +19976,7 @@ Made in Italy` })));
19941
19976
  const CTA = (rec, index) => {
19942
19977
  if ((globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowCTA) === undefined || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowCTA)) {
19943
19978
  return (React.createElement("div", { className: 'clc-sxp-bottom-card' },
19944
- React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$2 })));
19979
+ React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$2, isActive: true })));
19945
19980
  }
19946
19981
  return null;
19947
19982
  };
@@ -19954,8 +19989,10 @@ Made in Italy` })));
19954
19989
  React.createElement(Nudge, { nudge: nudge }),
19955
19990
  CTA(rec, index),
19956
19991
  React.createElement("div", null,
19957
- 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' }) })),
19958
- 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 }))));
19992
+ 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' }) }),
19993
+ React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$2, includesCtaType: ['AniLink'], isActive: true })),
19994
+ 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 })),
19995
+ React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$2, includesCtaType: ['AniLinkPopup'], isActive: true })));
19959
19996
  }
19960
19997
  return null;
19961
19998
  };
@@ -20345,21 +20382,10 @@ Made in Italy` })));
20345
20382
  return null;
20346
20383
  }, [globalConfig]);
20347
20384
  const renderBottom = (rec, index) => {
20348
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
20385
+ var _a, _b, _c, _d;
20349
20386
  if (rec === null || rec === void 0 ? void 0 : rec.video) {
20350
- let cta = null;
20351
- 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) {
20352
- cta = '多商品CTA';
20353
- }
20354
- else if ((_c = rec === null || rec === void 0 ? void 0 : rec.video) === null || _c === void 0 ? void 0 : _c.bindProduct) {
20355
- cta = '商品CTA';
20356
- }
20357
- else {
20358
- 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;
20359
- }
20360
- const value = tempMap === null || tempMap === void 0 ? void 0 : tempMap[cta];
20361
20387
  return (React.createElement(React.Fragment, null,
20362
- ((_f = rec === null || rec === void 0 ? void 0 : rec.video) === null || _f === void 0 ? void 0 : _f.title) && (React.createElement("div", { style: {
20388
+ ((_a = rec === null || rec === void 0 ? void 0 : rec.video) === null || _a === void 0 ? void 0 : _a.title) && (React.createElement("div", { style: {
20363
20389
  background: 'repeating-linear-gradient(0deg, rgba(26, 26, 25, 0.7), hsla(0, 0%, 100%, 0))',
20364
20390
  height: '130px',
20365
20391
  position: 'absolute',
@@ -20370,7 +20396,7 @@ Made in Italy` })));
20370
20396
  pointerEvents
20371
20397
  } })),
20372
20398
  React.createElement("div", { style: {
20373
- marginBottom: `${(_g = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.bottomInfoDist) !== null && _g !== void 0 ? _g : 40}px`,
20399
+ marginBottom: `${(_b = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.bottomInfoDist) !== null && _b !== void 0 ? _b : 40}px`,
20374
20400
  zIndex: 999,
20375
20401
  position: 'absolute',
20376
20402
  bottom: 0,
@@ -20379,15 +20405,15 @@ Made in Italy` })));
20379
20405
  paddingTop: '20px'
20380
20406
  } },
20381
20407
  (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowCTA) === undefined || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowCTA) ? (React.createElement("div", { style: {} },
20382
- React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$1, isActive: index === activeIndex, value: value }))) : null,
20408
+ React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$1, isActive: index === activeIndex }))) : null,
20383
20409
  React.createElement("div", null,
20384
20410
  React.createElement(ExpandableText$1
20385
20411
  // className='clc-sxp-bottom-text'
20386
20412
  , {
20387
20413
  // className='clc-sxp-bottom-text'
20388
- 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' }) }),
20389
- React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$1, includesCtaType: ['AniLink'], isActive: index === activeIndex, value: value }))),
20390
- React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$1, includesCtaType: ['AniLinkPopup'], isActive: index === activeIndex, value: value })));
20414
+ 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' }) }),
20415
+ React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$1, includesCtaType: ['AniLink'], isActive: index === activeIndex }))),
20416
+ React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$1, includesCtaType: ['AniLinkPopup'], isActive: index === activeIndex })));
20391
20417
  }
20392
20418
  return null;
20393
20419
  };