pb-sxp-ui 1.3.1 → 1.3.2

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 (59) hide show
  1. package/dist/index.cjs +190 -146
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.js +190 -146
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.cjs +3 -3
  6. package/dist/index.min.cjs.map +1 -1
  7. package/dist/index.min.js +3 -3
  8. package/dist/index.min.js.map +1 -1
  9. package/dist/pb-ui.js +190 -146
  10. package/dist/pb-ui.js.map +1 -1
  11. package/dist/pb-ui.min.js +3 -3
  12. package/dist/pb-ui.min.js.map +1 -1
  13. package/es/core/components/SxpPageRender/Modal/index.js +3 -3
  14. package/es/core/components/SxpPageRender/RenderCard.d.ts +3 -3
  15. package/es/core/components/SxpPageRender/RenderCard.js +17 -27
  16. package/es/core/components/SxpPageRender/WaterFall/List.js +20 -11
  17. package/es/core/components/SxpPageRender/WaterFall/WaterfallList.js +20 -11
  18. package/es/core/components/SxpPageRender/index.js +14 -10
  19. package/es/core/context/EditorDataProvider.d.ts +3 -0
  20. package/es/core/context/EditorDataProvider.js +2 -1
  21. package/es/core/context/SxpDataSourceProvider.d.ts +1 -0
  22. package/es/core/context/SxpDataSourceProvider.js +43 -31
  23. package/es/core/utils/tool.d.ts +3 -3
  24. package/es/core/utils/tool.js +6 -6
  25. package/es/materials/sxp/HashTag/index.d.ts +3 -1
  26. package/es/materials/sxp/HashTag/settingRender.d.ts +7 -0
  27. package/es/materials/sxp/HashTag/settingRender.js +6 -0
  28. package/es/materials/sxp/popup/CommodityDetail/index.js +13 -14
  29. package/es/materials/sxp/popup/CommodityDetailDiroNew/index.js +13 -14
  30. package/es/materials/sxp/popup/CommodityList/index.d.ts +3 -1
  31. package/es/materials/sxp/popup/CommodityList/index.js +11 -7
  32. package/es/materials/sxp/popup/CommodityList/settingRender.d.ts +7 -0
  33. package/es/materials/sxp/popup/CommodityList/settingRender.js +6 -0
  34. package/es/materials/sxp/popup/Iframe/index.d.ts +1 -0
  35. package/es/materials/sxp/popup/Iframe/index.js +8 -7
  36. package/lib/core/components/SxpPageRender/Modal/index.js +3 -3
  37. package/lib/core/components/SxpPageRender/RenderCard.d.ts +3 -3
  38. package/lib/core/components/SxpPageRender/RenderCard.js +16 -26
  39. package/lib/core/components/SxpPageRender/WaterFall/List.js +20 -11
  40. package/lib/core/components/SxpPageRender/WaterFall/WaterfallList.js +20 -11
  41. package/lib/core/components/SxpPageRender/index.js +14 -10
  42. package/lib/core/context/EditorDataProvider.d.ts +3 -0
  43. package/lib/core/context/EditorDataProvider.js +2 -1
  44. package/lib/core/context/SxpDataSourceProvider.d.ts +1 -0
  45. package/lib/core/context/SxpDataSourceProvider.js +43 -31
  46. package/lib/core/utils/tool.d.ts +3 -3
  47. package/lib/core/utils/tool.js +6 -6
  48. package/lib/materials/sxp/HashTag/index.d.ts +3 -1
  49. package/lib/materials/sxp/HashTag/settingRender.d.ts +7 -0
  50. package/lib/materials/sxp/HashTag/settingRender.js +6 -0
  51. package/lib/materials/sxp/popup/CommodityDetail/index.js +13 -14
  52. package/lib/materials/sxp/popup/CommodityDetailDiroNew/index.js +13 -14
  53. package/lib/materials/sxp/popup/CommodityList/index.d.ts +3 -1
  54. package/lib/materials/sxp/popup/CommodityList/index.js +11 -7
  55. package/lib/materials/sxp/popup/CommodityList/settingRender.d.ts +7 -0
  56. package/lib/materials/sxp/popup/CommodityList/settingRender.js +6 -0
  57. package/lib/materials/sxp/popup/Iframe/index.d.ts +1 -0
  58. package/lib/materials/sxp/popup/Iframe/index.js +8 -7
  59. package/package.json +1 -1
package/dist/pb-ui.js CHANGED
@@ -236,7 +236,7 @@
236
236
  var _a, _b, _c, _d, _e, _f, _g;
237
237
  let userAgent = self.navigator.userAgent;
238
238
  if (!userAgent)
239
- return 'Unknown';
239
+ return null;
240
240
  if (/edge\/([\d\.]+)/i.exec(userAgent))
241
241
  return `Edge ${(_a = /edge\/([\d\.]+)/i.exec(userAgent)) === null || _a === void 0 ? void 0 : _a[1]}`;
242
242
  if (/edg\/([\d\.]+)/i.exec(userAgent))
@@ -251,13 +251,13 @@
251
251
  return `Firefox ${(_f = /firefox\/([\d\.]+)/i.exec(userAgent)) === null || _f === void 0 ? void 0 : _f[1]}`;
252
252
  if (/safari/i.test(userAgent))
253
253
  return `Safari ${(_g = /version\/([\d\.]+)/i.exec(userAgent)) === null || _g === void 0 ? void 0 : _g[1]}`;
254
- return 'Unknown';
254
+ return null;
255
255
  }
256
256
  function getSystem() {
257
257
  var _a, _b, _c;
258
258
  let userAgent = self.navigator.userAgent;
259
259
  if (!userAgent)
260
- return 'Unknown';
260
+ return null;
261
261
  if (/iphone/i.test(userAgent))
262
262
  return `IOS ${(_a = userAgent.match(/OS\s(.*?)\slike/)) === null || _a === void 0 ? void 0 : _a[1]}`;
263
263
  if (/android/i.test(userAgent))
@@ -266,12 +266,12 @@
266
266
  return `Windows ${(_c = userAgent.match(/Windows\s(.*?)\;/)) === null || _c === void 0 ? void 0 : _c[1]}`;
267
267
  if (/mac/i.test(userAgent))
268
268
  return `Mac OS`;
269
- return 'Unknown';
269
+ return null;
270
270
  }
271
271
  function getDevice$1() {
272
272
  let userAgent = self.navigator.userAgent;
273
273
  if (!userAgent)
274
- return 'Unknown';
274
+ return null;
275
275
  if (/iphone/i.test(userAgent))
276
276
  return `iPhone`;
277
277
  if (/android/i.test(userAgent)) {
@@ -294,7 +294,7 @@
294
294
  return `Windows`;
295
295
  if (/mac/i.test(userAgent))
296
296
  return `Mac`;
297
- return 'Unknown';
297
+ return null;
298
298
  }
299
299
  function getCookie(val) {
300
300
  // const expirationDate = new Date();
@@ -711,8 +711,8 @@
711
711
  }, [bffDataSource]);
712
712
  // 获取推荐视频数据
713
713
  const getRecommendVideos = React.useCallback((query) => __awaiter(void 0, void 0, void 0, function* () {
714
- var _d, _e, _f, _g, _h, _j, _k;
715
- query = Object.assign(Object.assign({ maxSize: (_d = query === null || query === void 0 ? void 0 : query.maxSize) !== null && _d !== void 0 ? _d : maxSize, defaultSize: (_e = query === null || query === void 0 ? void 0 : query.defaultSize) !== null && _e !== void 0 ? _e : defaultSize, hashTag: query === null || query === void 0 ? void 0 : query.hashTag, traceInfo: query === null || query === void 0 ? void 0 : query.traceInfo, themeTag: query === null || query === void 0 ? void 0 : query.themeTag }, ((query === null || query === void 0 ? void 0 : query.contentFilter) && { contentFilter: `[${query === null || query === void 0 ? void 0 : query.contentFilter}]` })), ((query === null || query === void 0 ? void 0 : query.productFilter) && { productFilter: `[${query === null || query === void 0 ? void 0 : query.productFilter}]` }));
714
+ var _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
715
+ query = Object.assign(Object.assign(Object.assign({ maxSize: (_d = query === null || query === void 0 ? void 0 : query.maxSize) !== null && _d !== void 0 ? _d : maxSize, defaultSize: (_e = query === null || query === void 0 ? void 0 : query.defaultSize) !== null && _e !== void 0 ? _e : defaultSize, hashTag: query === null || query === void 0 ? void 0 : query.hashTag, traceInfo: query === null || query === void 0 ? void 0 : query.traceInfo, themeTag: query === null || query === void 0 ? void 0 : query.themeTag }, ((query === null || query === void 0 ? void 0 : query.contentFilter) && { contentFilter: `[${query === null || query === void 0 ? void 0 : query.contentFilter}]` })), ((query === null || query === void 0 ? void 0 : query.productFilter) && { productFilter: `[${query === null || query === void 0 ? void 0 : query.productFilter}]` })), { pageNum: query === null || query === void 0 ? void 0 : query.pageNum });
716
716
  if (utmVal) {
717
717
  const val = (_h = (_g = (_f = utmVal === null || utmVal === void 0 ? void 0 : utmVal.split('&')) === null || _f === void 0 ? void 0 : _f.filter((val) => {
718
718
  var _a, _b;
@@ -721,30 +721,34 @@
721
721
  })) === null || _g === void 0 ? void 0 : _g.join('&')) !== null && _h !== void 0 ? _h : '';
722
722
  query = Object.assign(Object.assign({}, query), { channel: decodeURIComponent(val) });
723
723
  }
724
- if ((globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enablePreview) || isEditor) {
725
- query = Object.assign(Object.assign(Object.assign({}, query), { directPage: true, level: 1 }), (!utmVal && channelQueryList && (channelQueryList === null || channelQueryList === void 0 ? void 0 : channelQueryList.length) > 0 && { channel: channelQueryList === null || channelQueryList === void 0 ? void 0 : channelQueryList[0] }));
726
- if (!(query === null || query === void 0 ? void 0 : query.channel))
724
+ if (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enablePreview) {
725
+ query = Object.assign(Object.assign({}, query), { directPage: true, level: 1, pageNum: (_j = query === null || query === void 0 ? void 0 : query.pageNum) !== null && _j !== void 0 ? _j : 1 });
726
+ }
727
+ if (isEditor) {
728
+ let pageNum = 1;
729
+ query = Object.assign(Object.assign({}, query), (!utmVal && channelQueryList && (channelQueryList === null || channelQueryList === void 0 ? void 0 : channelQueryList.length) > 0 && { channel: channelQueryList === null || channelQueryList === void 0 ? void 0 : channelQueryList[0] }));
730
+ if (!(query === null || query === void 0 ? void 0 : query.channel) || isInit.current)
727
731
  return;
732
+ isInit.current = true;
728
733
  let list = [];
729
734
  let result = null;
730
- let pageNum = 1;
731
735
  const recurveRecList = (query) => __awaiter(void 0, void 0, void 0, function* () {
732
- var _l, _m, _o, _p;
736
+ var _r, _s, _t, _u, _v, _w;
733
737
  query.pageNum = pageNum;
734
738
  result = yield (bffFetch === null || bffFetch === void 0 ? void 0 : bffFetch('/recommend/list', { method: 'GET', query }));
735
739
  if (!(result === null || result === void 0 ? void 0 : result.success)) {
736
740
  return undefined;
737
741
  }
738
- const rec = (_m = (_l = result === null || result === void 0 ? void 0 : result.data) === null || _l === void 0 ? void 0 : _l.recList) === null || _m === void 0 ? void 0 : _m[0];
739
- list = list.concat((_p = (_o = result === null || result === void 0 ? void 0 : result.data) === null || _o === void 0 ? void 0 : _o.recList) !== null && _p !== void 0 ? _p : []);
740
- if ((rec === null || rec === void 0 ? void 0 : rec.product) || (rec === null || rec === void 0 ? void 0 : rec.video)) {
742
+ const isNotNullList = (_s = (_r = result === null || result === void 0 ? void 0 : result.data) === null || _r === void 0 ? void 0 : _r.recList) === null || _s === void 0 ? void 0 : _s.every((item) => (item === null || item === void 0 ? void 0 : item.product) || (item === null || item === void 0 ? void 0 : item.video));
743
+ list = list.concat((_w = (_v = (_u = (_t = result === null || result === void 0 ? void 0 : result.data) === null || _t === void 0 ? void 0 : _t.recList) === null || _u === void 0 ? void 0 : _u.filter) === null || _v === void 0 ? void 0 : _v.call(_u, (item) => (item === null || item === void 0 ? void 0 : item.product) || (item === null || item === void 0 ? void 0 : item.video))) !== null && _w !== void 0 ? _w : []);
744
+ if (isNotNullList) {
741
745
  pageNum = pageNum + 1;
742
746
  yield recurveRecList(query);
743
747
  }
744
748
  });
745
749
  yield recurveRecList(query);
746
750
  if (!(query === null || query === void 0 ? void 0 : query.hashTag) && result)
747
- setCurReqInfo({ rtc: (_j = result === null || result === void 0 ? void 0 : result.data) === null || _j === void 0 ? void 0 : _j.rtc, requestId: (_k = result === null || result === void 0 ? void 0 : result.data) === null || _k === void 0 ? void 0 : _k.requestId });
751
+ setCurReqInfo({ rtc: (_k = result === null || result === void 0 ? void 0 : result.data) === null || _k === void 0 ? void 0 : _k.rtc, requestId: (_l = result === null || result === void 0 ? void 0 : result.data) === null || _l === void 0 ? void 0 : _l.requestId });
748
752
  return Object.assign(Object.assign({}, result.data), { recList: list });
749
753
  }
750
754
  const result = yield (bffFetch === null || bffFetch === void 0 ? void 0 : bffFetch('/recommend/list', { method: 'GET', query }));
@@ -753,15 +757,20 @@
753
757
  }
754
758
  if (!(query === null || query === void 0 ? void 0 : query.hashTag))
755
759
  setCurReqInfo({ rtc: result.data.rtc, requestId: result.data.requestId });
760
+ if ((globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enablePreview) && !isEditor) {
761
+ let list = [];
762
+ list = list.concat((_q = (_p = (_o = (_m = result === null || result === void 0 ? void 0 : result.data) === null || _m === void 0 ? void 0 : _m.recList) === null || _o === void 0 ? void 0 : _o.filter) === null || _p === void 0 ? void 0 : _p.call(_o, (item) => (item === null || item === void 0 ? void 0 : item.product) || (item === null || item === void 0 ? void 0 : item.video))) !== null && _q !== void 0 ? _q : []);
763
+ return Object.assign(Object.assign({}, result.data), { recList: list });
764
+ }
756
765
  return result === null || result === void 0 ? void 0 : result.data;
757
- }), [bffFetch, utmVal, maxSize, defaultSize, globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enablePreview, channelQueryList, isEditor]);
758
- const loadVideos = React.useCallback(() => __awaiter(void 0, void 0, void 0, function* () {
759
- var _q, _r, _s, _t;
766
+ }), [bffFetch, utmVal, maxSize, defaultSize, channelQueryList]);
767
+ const loadVideos = React.useCallback((pageNum) => __awaiter(void 0, void 0, void 0, function* () {
768
+ var _x, _y, _z, _0;
760
769
  if (rtcList.length <= 0) {
761
770
  return;
762
771
  }
763
772
  const lastItem = rtcList === null || rtcList === void 0 ? void 0 : rtcList[(rtcList === null || rtcList === void 0 ? void 0 : rtcList.length) - 1];
764
- const data = yield getRecommendVideos(Object.assign(Object.assign(Object.assign({ hashTag: waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.hashTag }, (((_q = lastItem === null || lastItem === void 0 ? void 0 : lastItem.product) === null || _q === void 0 ? void 0 : _q.itemId) && { productFilter: (_r = lastItem === null || lastItem === void 0 ? void 0 : lastItem.product) === null || _r === void 0 ? void 0 : _r.itemId })), (((_s = lastItem === null || lastItem === void 0 ? void 0 : lastItem.video) === null || _s === void 0 ? void 0 : _s.itemId) && { contentFilter: (_t = lastItem === null || lastItem === void 0 ? void 0 : lastItem.video) === null || _t === void 0 ? void 0 : _t.itemId })), { themeTag: themeTag.current }));
773
+ const data = yield getRecommendVideos(Object.assign(Object.assign(Object.assign(Object.assign({ hashTag: waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.hashTag }, (((_x = lastItem === null || lastItem === void 0 ? void 0 : lastItem.product) === null || _x === void 0 ? void 0 : _x.itemId) && { productFilter: (_y = lastItem === null || lastItem === void 0 ? void 0 : lastItem.product) === null || _y === void 0 ? void 0 : _y.itemId })), (((_z = lastItem === null || lastItem === void 0 ? void 0 : lastItem.video) === null || _z === void 0 ? void 0 : _z.itemId) && { contentFilter: (_0 = lastItem === null || lastItem === void 0 ? void 0 : lastItem.video) === null || _0 === void 0 ? void 0 : _0.itemId })), { themeTag: themeTag.current }), ((globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enablePreview) && !isEditor && { pageNum })));
765
774
  setRtcList(rtcList.concat(getFilterRecList(data)));
766
775
  setCacheRtcList(cacheRtcList.concat(getFilterRecList(data)));
767
776
  }), [getRecommendVideos, rtcList, waterFallData, cacheRtcList]);
@@ -778,7 +787,7 @@
778
787
  };
779
788
  }
780
789
  const sessionID = storeAndLoadFeSessionId();
781
- const ef = Object.assign(Object.assign({ sessionID, rtc: curReqInfo.rtc, requestId: curReqInfo.requestId }, eventInfo), { sxpDevice: getDevice$1(), sxpSystem: getSystem(), sxpBrowser: getBrowserInfo() });
790
+ const ef = Object.assign(Object.assign(Object.assign(Object.assign({ sessionID, rtc: curReqInfo.rtc, requestId: curReqInfo.requestId }, eventInfo), (getDevice$1() && { sxpDevice: getDevice$1() })), (getSystem() && { sxpSystem: getSystem() })), (getBrowserInfo() && { sxpBrowser: getBrowserInfo() }));
782
791
  const realUserInfo = Object.entries(userInfo).map(([k, v]) => ({ name: k, value: v }));
783
792
  const realEventInfo = Object.entries(ef)
784
793
  .map(([k, v]) => v && { name: k, value: v })
@@ -794,24 +803,21 @@
794
803
  });
795
804
  }, [bffFetch, curReqInfo, enableReportEvent, globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enablePreview]);
796
805
  const bffFbReport = React.useCallback((_a) => {
797
- var _b, _c;
806
+ var _b, _c, _d;
798
807
  var { eventName, actionSource = 'website', eventSourceUrl = (_b = window === null || window === void 0 ? void 0 : window.location) === null || _b === void 0 ? void 0 : _b.href, externalId } = _a;
799
808
  if (!enableReportEvent || !enabledMetaConversionApi || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enablePreview)) {
800
809
  return;
801
810
  }
802
811
  const fakeUserId = storeAndLoadFeUserId();
812
+ const urlParams = new URLSearchParams(window.location.search);
813
+ const fbclid = urlParams.get('fbclid');
803
814
  return bffFetch === null || bffFetch === void 0 ? void 0 : bffFetch('/fb/events', {
804
815
  method: 'POST',
805
816
  body: {
806
817
  eventName,
807
818
  actionSource,
808
819
  eventSourceUrl,
809
- userData: {
810
- externalId: fakeUserId,
811
- fbc: `fb.2.${new Date().getTime()}.${getCookie('_fbc')}`,
812
- fbp: `fb.2.${new Date().getTime()}.${getCookie('_fbp')}`,
813
- client_user_agent: (_c = window === null || window === void 0 ? void 0 : window.navigator) === null || _c === void 0 ? void 0 : _c.userAgent
814
- }
820
+ userData: Object.assign(Object.assign(Object.assign({ externalId: fakeUserId }, (fbclid && { fbc: `fb.2.${new Date().getTime()}.${fbclid}` })), (getCookie('_fbp') && { fbp: `fb.2.${new Date().getTime()}.${getCookie('_fbp')}` })), { client_user_agent: (_d = (_c = window === null || window === void 0 ? void 0 : window.navigator) === null || _c === void 0 ? void 0 : _c.userAgent) !== null && _d !== void 0 ? _d : '' })
815
821
  },
816
822
  type: 'beacon'
817
823
  });
@@ -830,17 +836,17 @@
830
836
  }), [bffFetch]);
831
837
  // 获取 Tag
832
838
  const bffGetTagList = React.useCallback(() => __awaiter(void 0, void 0, void 0, function* () {
833
- var _u, _v, _w, _x, _y;
839
+ var _1, _2, _3, _4, _5;
834
840
  if (!utmVal || !isShowTag)
835
841
  return;
836
842
  try {
837
- const val = (_w = (_v = (_u = utmVal === null || utmVal === void 0 ? void 0 : utmVal.split('&')) === null || _u === void 0 ? void 0 : _u.filter((val) => {
843
+ const val = (_3 = (_2 = (_1 = utmVal === null || utmVal === void 0 ? void 0 : utmVal.split('&')) === null || _1 === void 0 ? void 0 : _1.filter((val) => {
838
844
  var _a, _b;
839
845
  const key = val.split('=')[0];
840
846
  return (_b = ((_a = utmParameter === null || utmParameter === void 0 ? void 0 : utmParameter.channels) !== null && _a !== void 0 ? _a : [])) === null || _b === void 0 ? void 0 : _b.includes(key);
841
- })) === null || _v === void 0 ? void 0 : _v.join('&')) !== null && _w !== void 0 ? _w : '';
847
+ })) === null || _2 === void 0 ? void 0 : _2.join('&')) !== null && _3 !== void 0 ? _3 : '';
842
848
  const result = yield (bffFetch === null || bffFetch === void 0 ? void 0 : bffFetch('/tag/list', { method: 'GET', query: { channel: decodeURIComponent(val) } }));
843
- setTagList((_y = (_x = result === null || result === void 0 ? void 0 : result.data) === null || _x === void 0 ? void 0 : _x.tags) !== null && _y !== void 0 ? _y : []);
849
+ setTagList((_5 = (_4 = result === null || result === void 0 ? void 0 : result.data) === null || _4 === void 0 ? void 0 : _4.tags) !== null && _5 !== void 0 ? _5 : []);
844
850
  }
845
851
  catch (e) {
846
852
  console.log('e', e);
@@ -913,11 +919,10 @@
913
919
  }
914
920
  });
915
921
  setLoading(false);
916
- isInit.current = true;
917
922
  });
918
923
  }, [isShowConsent]);
919
924
  React.useEffect(() => {
920
- if (!isInit.current && !isEditor)
925
+ if (!isPreview)
921
926
  return;
922
927
  setLoading(true);
923
928
  bffGetTagList();
@@ -927,9 +932,15 @@
927
932
  setCacheRtcList(getFilterRecList(data));
928
933
  })
929
934
  .finally(() => {
935
+ bffEventReport({
936
+ eventInfo: {
937
+ eventSubject: 'apiRequest',
938
+ eventDescription: 'api request succeed'
939
+ }
940
+ });
930
941
  setLoading(false);
931
942
  });
932
- }, [bffGetTagList, isEditor, getRecommendVideos]);
943
+ }, [getRecommendVideos, bffGetTagList]);
933
944
  const defaultLoadingImage = useIconLink('/pb_static/a65d23c5893c49d7aaaa81681d3179e2.gif', appDomain);
934
945
  return (React.createElement(SxpDataSourceContext.Provider, { value: {
935
946
  rtcList,
@@ -977,7 +988,8 @@
977
988
  setSelectTag,
978
989
  globalConfig,
979
990
  popupCurTimeRef,
980
- checkCommodityIndexRef
991
+ checkCommodityIndexRef,
992
+ isEditor
981
993
  } }, isShowConsent ? (React.createElement(Consent$3, Object.assign({}, (_c = (_b = (_a = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.consent) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.item) === null || _c === void 0 ? void 0 : _c.props))) : (render({
982
994
  rtcList,
983
995
  mutateLike: bffMutateLike,
@@ -8806,13 +8818,13 @@
8806
8818
  * @Author: binruan@chatlabs.com
8807
8819
  * @Date: 2023-11-02 18:34:34
8808
8820
  * @LastEditors: binruan@chatlabs.com
8809
- * @LastEditTime: 2024-08-16 17:58:56
8821
+ * @LastEditTime: 2024-08-20 18:29:11
8810
8822
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Modal\index.tsx
8811
8823
  *
8812
8824
  */
8813
8825
  const closeIcon$1 = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAjhJREFUWEfFlztOw0AQhmeWiJ4CCmpQ5DiRQsIJyAWg5A0lR0AIChDiCJS8ER0cADgBeRSxt4CCDgkaKiq8i+zYeWx2413HEWmiJJv9v535Z2aN8M8vFPT9z3zETD0aAUChUJjwvPFHAJhBhB3Hqd6OAsK2yyucwykAvP38eJX398Z3AJDLlVYR8ToU9Rhj25TWr9KEsKy5dULIGQCMtfZly45TvwsAstm56UwG6wA4FUFwzrdctxZBDcWSy5XWEPG8I84/GcMipdWPtgcsaz5PCHtKG0IuTiqUvjT9U/WYMG2IOPE+AP+LtCB0xKUAAyA2Xbd2o2OG0NQXvTnvhL17D7EPtH9TRCIWwkRcGYGIQgYBABuqPuHXOQBc6pw80lBGwBQiiXhsBHQhkoprA6iM6acjhDQKu5YJZW6XeOI3XJdpvfsdTu52VfXEekD8owQiXGIubpSCbhDbLu8DwKEAd+A41SOdPpE4BS0viFOtvV2iKWqUgn5x/tmS70xR01GuDSCKc86/OCcLgTyyZ0ScDGNhFAktAJV4NFJ9YyaFiAWIE+9uVkkgBgLoig8DMWAa9ro9ynkUdlW5maZDCmB6clmz0k1HH4Cs1Ezbq2p2yEpUuBOKTSZZex00RUWIrltxuuK6EOGDSbGIOPZicpMx6fny650377qNRgBgWeVFQuA+6UjVgREhGIMlSqsPUQqIbZdOOIdZQmCv2axRnU1N1+TzJYsxOEaEV8ep7frPZ7Gd0FTEdP0ft0/kMNdg0eoAAAAASUVORK5CYII=';
8814
8826
  const Modal = ({ visible, onClose, children, modalStyle, padding, popup, schema, fullHeight = window.innerHeight, isFullScreen = false }) => {
8815
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
8827
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
8816
8828
  const touchRef = React.useRef(null);
8817
8829
  const fTouchRef = React.useRef(null);
8818
8830
  const touchMoveRef = React.useRef(null);
@@ -8937,8 +8949,8 @@
8937
8949
  React.createElement("div", { onClick: onClose, className: 'modal-icon-wrapper' },
8938
8950
  React.createElement("img", { src: (_t = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.popupCloseIcon) !== null && _t !== void 0 ? _t : closeIcon$1, alt: 'close', className: 'modal-icon' })),
8939
8951
  React.createElement("div", { ref: ref, style: {
8940
- height: (isScrollFullScreen ? fullHeight : MODAL_DEF_CON_H) -
8941
- ((_w = (_v = (_u = getPopupById === null || getPopupById === void 0 ? void 0 : getPopupById.item) === null || _u === void 0 ? void 0 : _u.props) === null || _v === void 0 ? void 0 : _v.popupBg) === null || _w === void 0 ? void 0 : _w.bottomMargin),
8952
+ height: (_x = (isScrollFullScreen ? fullHeight : MODAL_DEF_CON_H) -
8953
+ ((_w = (_v = (_u = getPopupById === null || getPopupById === void 0 ? void 0 : getPopupById.item) === null || _u === void 0 ? void 0 : _u.props) === null || _v === void 0 ? void 0 : _v.popupBg) === null || _w === void 0 ? void 0 : _w.bottomMargin)) !== null && _x !== void 0 ? _x : 0,
8942
8954
  overflow: (isScrollFullScreen && modalTrans <= 0) || !isScrollFullScreen ? 'auto' : 'hidden'
8943
8955
  } }, children)))))), modalEleRef.current);
8944
8956
  };
@@ -9263,20 +9275,19 @@
9263
9275
  width: '100%',
9264
9276
  height: '100%'
9265
9277
  }), src: (_5 = sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _5 !== void 0 ? _5 : bottom_image, alt: 'pdp image' }))),
9266
- (iframeUrl && iframeIcon) ||
9267
- (!product && iframeIcon && (React.createElement("div", { style: {
9268
- padding: '5px 10px',
9269
- display: 'flex',
9270
- alignItems: 'center',
9271
- position: 'absolute',
9272
- right: '10px',
9273
- bottom: '10px',
9274
- zIndex: 1,
9275
- background: '#fff',
9276
- borderRadius: '3px'
9277
- }, onClick: () => setShow3DModal(true) },
9278
- React.createElement("img", { src: iframeIcon, alt: '3d', width: '20px', height: '20px', style: { marginRight: '5px' } }),
9279
- React.createElement("span", { style: { fontSize: '12px' } }, "Try in 3D"))))),
9278
+ (iframeUrl || !product) && iframeIcon && (React.createElement("div", { style: {
9279
+ padding: '5px 10px',
9280
+ display: 'flex',
9281
+ alignItems: 'center',
9282
+ position: 'absolute',
9283
+ right: '10px',
9284
+ bottom: '10px',
9285
+ zIndex: 1,
9286
+ background: '#fff',
9287
+ borderRadius: '3px'
9288
+ }, onClick: () => setShow3DModal(true) },
9289
+ React.createElement("img", { src: iframeIcon, alt: '3d', width: '20px', height: '20px', style: { marginRight: '5px' } }),
9290
+ React.createElement("span", { style: { fontSize: '12px' } }, "Try in 3D")))),
9280
9291
  renderCommodityGroup(),
9281
9292
  React.createElement("div", { className: 'pb-commondity-content' }, renderContent({ isPost }))),
9282
9293
  renderBtn(),
@@ -10129,20 +10140,19 @@ Made in Italy` })));
10129
10140
  width: '100%',
10130
10141
  height: '100%'
10131
10142
  }), src: (_5 = sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _5 !== void 0 ? _5 : bottom_image, alt: 'pdp image' }))),
10132
- (iframeUrl && iframeIcon) ||
10133
- (!product && iframeIcon && (React.createElement("div", { style: {
10134
- padding: '5px 10px',
10135
- display: 'flex',
10136
- alignItems: 'center',
10137
- position: 'absolute',
10138
- right: '10px',
10139
- bottom: '10px',
10140
- zIndex: 1,
10141
- background: '#fff',
10142
- borderRadius: '3px'
10143
- }, onClick: () => setShow3DModal(true) },
10144
- React.createElement("img", { src: iframeIcon, alt: '3d', width: '20px', height: '20px', style: { marginRight: '5px' } }),
10145
- React.createElement("span", { style: { fontSize: '12px' } }, "Try in 3D"))))),
10143
+ (iframeUrl || !product) && iframeIcon && (React.createElement("div", { style: {
10144
+ padding: '5px 10px',
10145
+ display: 'flex',
10146
+ alignItems: 'center',
10147
+ position: 'absolute',
10148
+ right: '10px',
10149
+ bottom: '10px',
10150
+ zIndex: 1,
10151
+ background: '#fff',
10152
+ borderRadius: '3px'
10153
+ }, onClick: () => setShow3DModal(true) },
10154
+ React.createElement("img", { src: iframeIcon, alt: '3d', width: '20px', height: '20px', style: { marginRight: '5px' } }),
10155
+ React.createElement("span", { style: { fontSize: '12px' } }, "Try in 3D")))),
10146
10156
  renderCommodityGroup(),
10147
10157
  React.createElement("div", { className: 'pb-commondityDiroNew-content' },
10148
10158
  React.createElement("div", { className: 'pb-commondityDiroNew-content-top' },
@@ -10421,6 +10431,12 @@ Made in Italy` })));
10421
10431
  {
10422
10432
  label: '间距',
10423
10433
  type: 'TextSpace'
10434
+ },
10435
+ {
10436
+ label: '价格千分符展示',
10437
+ type: 'Switch',
10438
+ name: ['enableFormattedPrice'],
10439
+ initialValue: true
10424
10440
  }
10425
10441
  ]
10426
10442
  }
@@ -10573,7 +10589,7 @@ Made in Italy` })));
10573
10589
  var Img$1 = React.memo(Img);
10574
10590
 
10575
10591
  const CommodityList$1 = (_a) => {
10576
- var _b, _c;
10592
+ var _b, _c, _d;
10577
10593
  var { style, isDefault, rec, viewTime, isPost, bottom_image, commodityStyles, buttonStyle, translateY = 0, commodityPicture, isExternalLink, onClick } = _a, props = __rest(_a, ["style", "isDefault", "rec", "viewTime", "isPost", "bottom_image", "commodityStyles", "buttonStyle", "translateY", "commodityPicture", "isExternalLink", "onClick"]);
10578
10594
  const { sxpParameter, popupDetailData, setPopupDetailData, ctaEvent } = useSxpDataSource();
10579
10595
  const { jumpToWeb } = useEventReport();
@@ -10582,16 +10598,20 @@ Made in Italy` })));
10582
10598
  const product = (_c = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.bindProducts) !== null && _c !== void 0 ? _c : [null, null, null, null];
10583
10599
  const index = popupDetailData === null || popupDetailData === void 0 ? void 0 : popupDetailData.index;
10584
10600
  const priceText = React.useCallback((product) => {
10585
- var _a, _b, _c, _d, _e;
10601
+ var _a, _b, _c, _d, _e, _f, _g;
10602
+ const isToLocStr = ((_a = commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.price) === null || _a === void 0 ? void 0 : _a.enableFormattedPrice) === undefined || ((_b = commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.price) === null || _b === void 0 ? void 0 : _b.enableFormattedPrice);
10586
10603
  if ((product === null || product === void 0 ? void 0 : product.currency) && (product === null || product === void 0 ? void 0 : product.price)) {
10587
- return `${(_c = (_b = (_a = product === null || product === void 0 ? void 0 : product.currency) === null || _a === void 0 ? void 0 : _a.split('-')[1]) === null || _b === void 0 ? void 0 : _b.toUpperCase()) !== null && _c !== void 0 ? _c : ''}${(_e = (_d = product === null || product === void 0 ? void 0 : product.price) === null || _d === void 0 ? void 0 : _d.toLocaleString('zh', {
10588
- minimumFractionDigits: 0
10589
- })) !== null && _e !== void 0 ? _e : ''}`;
10604
+ return `${(_e = (_d = (_c = product === null || product === void 0 ? void 0 : product.currency) === null || _c === void 0 ? void 0 : _c.split('-')[1]) === null || _d === void 0 ? void 0 : _d.toUpperCase()) !== null && _e !== void 0 ? _e : ''}${isToLocStr
10605
+ ? (_g = (_f = product === null || product === void 0 ? void 0 : product.price) === null || _f === void 0 ? void 0 : _f.toLocaleString('zh', {
10606
+ minimumFractionDigits: 0
10607
+ })) !== null && _g !== void 0 ? _g : ''
10608
+ : product === null || product === void 0 ? void 0 : product.price}`;
10590
10609
  }
10591
10610
  else {
10592
- return '$7,000';
10611
+ const p = 7000;
10612
+ return `$${isToLocStr ? p.toLocaleString() : p}`;
10593
10613
  }
10594
- }, []);
10614
+ }, [(_d = commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.price) === null || _d === void 0 ? void 0 : _d.enableFormattedPrice]);
10595
10615
  const handleClick = lodash.throttle((item, multiCheckIndex) => {
10596
10616
  ctaEvent === null || ctaEvent === void 0 ? void 0 : ctaEvent({
10597
10617
  eventSubject: 'clickCta',
@@ -10752,15 +10772,16 @@ Made in Italy` })));
10752
10772
 
10753
10773
  const Iframe$1 = (_a) => {
10754
10774
  var _b, _c;
10755
- var { content, btnText, style, icon, isPopup, isExternalLink, onClose, onClick, submitButtonStyle, contentStyle } = _a, props = __rest(_a, ["content", "btnText", "style", "icon", "isPopup", "isExternalLink", "onClose", "onClick", "submitButtonStyle", "contentStyle"]);
10775
+ var { content, btnText, style, icon, isPopup, isExternalLink, onClose, onClick, submitButtonStyle, contentStyle, isTel } = _a, props = __rest(_a, ["content", "btnText", "style", "icon", "isPopup", "isExternalLink", "onClose", "onClick", "submitButtonStyle", "contentStyle", "isTel"]);
10756
10776
  const { popupDetailData } = useSxpDataSource();
10757
10777
  const iframeUrl = (_c = (_b = popupDetailData === null || popupDetailData === void 0 ? void 0 : popupDetailData.video) === null || _b === void 0 ? void 0 : _b.bindCta) === null || _c === void 0 ? void 0 : _c.remark;
10758
- return (React.createElement("div", Object.assign({ className: `${css.css(Object.assign({}, style))}` }, props), iframeUrl && (React.createElement("iframe", { src: iframeUrl, style: {
10759
- width: '100%',
10760
- height: 'calc(100% - 50px)',
10761
- marginTop: '40px',
10762
- border: 'none'
10763
- } }))));
10778
+ return (React.createElement("div", Object.assign({ className: `${css.css(Object.assign(Object.assign({}, style), { height: isTel ? 664 : '100%' }))}` }, props),
10779
+ React.createElement("iframe", { src: iframeUrl, style: {
10780
+ width: '100%',
10781
+ height: 'calc(100% - 50px)',
10782
+ marginTop: '40px',
10783
+ border: 'none'
10784
+ } })));
10764
10785
  };
10765
10786
  var IframeComponent = React.memo(Iframe$1);
10766
10787
 
@@ -12005,7 +12026,7 @@ Made in Italy` })));
12005
12026
  * @Author: binruan@chatlabs.com
12006
12027
  * @Date: 2024-04-07 14:07:12
12007
12028
  * @LastEditors: binruan@chatlabs.com
12008
- * @LastEditTime: 2024-08-06 14:00:36
12029
+ * @LastEditTime: 2024-08-22 10:14:36
12009
12030
  * @FilePath: \pb-sxp-ui\src\materials\sxp\HashTag\settingRender.tsx
12010
12031
  *
12011
12032
  */
@@ -12114,6 +12135,12 @@ Made in Italy` })));
12114
12135
  {
12115
12136
  label: '间距',
12116
12137
  type: 'TextSpace'
12138
+ },
12139
+ {
12140
+ label: '价格千分符展示',
12141
+ type: 'Switch',
12142
+ name: ['enableFormattedPrice'],
12143
+ initialValue: true
12117
12144
  }
12118
12145
  ]
12119
12146
  }
@@ -13534,6 +13561,7 @@ Made in Italy` })));
13534
13561
  };
13535
13562
 
13536
13563
  const WaterfallFlowItem$1 = (props) => {
13564
+ var _a;
13537
13565
  const { rec, style = {}, sizeChange = () => { }, unitWidth, index, showBorder, list, reportTagsView, textStyles, space } = props;
13538
13566
  const { swiperRef, setRtcList, setOpenHashtag, sxpParameter } = useSxpDataSource();
13539
13567
  const [showVideo, setShowVideo] = React.useState(false);
@@ -13587,16 +13615,19 @@ Made in Italy` })));
13587
13615
  }
13588
13616
  }, [top, showBorder]);
13589
13617
  const priceText = React.useMemo(() => {
13590
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
13591
- if (((_a = rec === null || rec === void 0 ? void 0 : rec.product) === null || _a === void 0 ? void 0 : _a.currency) && ((_b = rec === null || rec === void 0 ? void 0 : rec.product) === null || _b === void 0 ? void 0 : _b.price)) {
13592
- return `${(_f = (_e = (_d = (_c = rec === null || rec === void 0 ? void 0 : rec.product) === null || _c === void 0 ? void 0 : _c.currency) === null || _d === void 0 ? void 0 : _d.split('-')[1]) === null || _e === void 0 ? void 0 : _e.toUpperCase()) !== null && _f !== void 0 ? _f : ''}${(_j = (_h = (_g = rec === null || rec === void 0 ? void 0 : rec.product) === null || _g === void 0 ? void 0 : _g.price) === null || _h === void 0 ? void 0 : _h.toLocaleString('zh', {
13593
- minimumFractionDigits: 0
13594
- })) !== null && _j !== void 0 ? _j : ''}`;
13618
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
13619
+ const isToLocStr = ((_a = textStyles === null || textStyles === void 0 ? void 0 : textStyles.price) === null || _a === void 0 ? void 0 : _a.enableFormattedPrice) === undefined || ((_b = textStyles === null || textStyles === void 0 ? void 0 : textStyles.price) === null || _b === void 0 ? void 0 : _b.enableFormattedPrice);
13620
+ if (((_c = rec === null || rec === void 0 ? void 0 : rec.product) === null || _c === void 0 ? void 0 : _c.currency) && ((_d = rec === null || rec === void 0 ? void 0 : rec.product) === null || _d === void 0 ? void 0 : _d.price)) {
13621
+ return `${(_h = (_g = (_f = (_e = rec === null || rec === void 0 ? void 0 : rec.product) === null || _e === void 0 ? void 0 : _e.currency) === null || _f === void 0 ? void 0 : _f.split('-')[1]) === null || _g === void 0 ? void 0 : _g.toUpperCase()) !== null && _h !== void 0 ? _h : ''}${isToLocStr
13622
+ ? (_l = (_k = (_j = rec === null || rec === void 0 ? void 0 : rec.product) === null || _j === void 0 ? void 0 : _j.price) === null || _k === void 0 ? void 0 : _k.toLocaleString('zh', {
13623
+ minimumFractionDigits: 0
13624
+ })) !== null && _l !== void 0 ? _l : ''
13625
+ : (_m = rec === null || rec === void 0 ? void 0 : rec.product) === null || _m === void 0 ? void 0 : _m.price}`;
13595
13626
  }
13596
13627
  else {
13597
13628
  return null;
13598
13629
  }
13599
- }, [rec]);
13630
+ }, [rec, (_a = textStyles === null || textStyles === void 0 ? void 0 : textStyles.price) === null || _a === void 0 ? void 0 : _a.enableFormattedPrice]);
13600
13631
  React.useEffect(() => {
13601
13632
  if (imgDom.current === null || src === '') {
13602
13633
  return;
@@ -13760,10 +13791,14 @@ Made in Italy` })));
13760
13791
  }, [unitWidth, rowsNum, list]); /* 增加getStyleList依赖项会导致在admin预览编辑时无限刷新 */
13761
13792
  /** 初始化请求数据 */
13762
13793
  React.useEffect(() => {
13763
- var _a, _b, _c, _d, _e, _f;
13794
+ var _a, _b;
13764
13795
  setIsLoadingData(true);
13765
13796
  waterFallData &&
13766
- (getRecommendVideos === null || getRecommendVideos === void 0 ? void 0 : getRecommendVideos(Object.assign(Object.assign({ hashTag: waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.hashTag, defaultSize: hashTagSize, maxSize: hashTagSize }, (((_b = (_a = waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.rec) === null || _a === void 0 ? void 0 : _a.product) === null || _b === void 0 ? void 0 : _b.itemId) && { productFilter: (_d = (_c = waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.rec) === null || _c === void 0 ? void 0 : _c.product) === null || _d === void 0 ? void 0 : _d.itemId })), ((waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.itemId) && { contentFilter: waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.itemId }))).then((res) => {
13797
+ (getRecommendVideos === null || getRecommendVideos === void 0 ? void 0 : getRecommendVideos({
13798
+ hashTag: waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.hashTag,
13799
+ defaultSize: hashTagSize,
13800
+ maxSize: hashTagSize
13801
+ }).then((res) => {
13767
13802
  var _a, _b;
13768
13803
  setData(res);
13769
13804
  setList((_b = (_a = res === null || res === void 0 ? void 0 : res.recList) === null || _a === void 0 ? void 0 : _a.filter((item) => (item === null || item === void 0 ? void 0 : item.video) !== null || (item === null || item === void 0 ? void 0 : item.product) !== null)) !== null && _b !== void 0 ? _b : []);
@@ -13772,7 +13807,7 @@ Made in Italy` })));
13772
13807
  if (isOpenHashTag) {
13773
13808
  const res = previewData;
13774
13809
  setData(res);
13775
- setList((_f = (_e = res === null || res === void 0 ? void 0 : res.recList) === null || _e === void 0 ? void 0 : _e.filter((item) => (item === null || item === void 0 ? void 0 : item.video) !== null || (item === null || item === void 0 ? void 0 : item.product) !== null)) !== null && _f !== void 0 ? _f : []);
13810
+ setList((_b = (_a = res === null || res === void 0 ? void 0 : res.recList) === null || _a === void 0 ? void 0 : _a.filter((item) => (item === null || item === void 0 ? void 0 : item.video) !== null || (item === null || item === void 0 ? void 0 : item.product) !== null)) !== null && _b !== void 0 ? _b : []);
13776
13811
  setIsLoadingData(false);
13777
13812
  }
13778
13813
  }, [waterFallData, getRecommendVideos, hashTagSize, isOpenHashTag]);
@@ -13798,10 +13833,11 @@ Made in Italy` })));
13798
13833
  };
13799
13834
  }, [onResize]);
13800
13835
  React.useCallback(() => {
13801
- var _a, _b, _c, _d;
13802
13836
  setIsLoadingData(true);
13803
13837
  waterFallData &&
13804
- (getRecommendVideos === null || getRecommendVideos === void 0 ? void 0 : getRecommendVideos(Object.assign(Object.assign({ hashTag: waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.hashTag }, (((_b = (_a = waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.rec) === null || _a === void 0 ? void 0 : _a.product) === null || _b === void 0 ? void 0 : _b.itemId) && { productFilter: (_d = (_c = waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.rec) === null || _c === void 0 ? void 0 : _c.product) === null || _d === void 0 ? void 0 : _d.itemId })), ((waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.itemId) && { contentFilter: waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.itemId }))).then((res) => {
13838
+ (getRecommendVideos === null || getRecommendVideos === void 0 ? void 0 : getRecommendVideos({
13839
+ hashTag: waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.hashTag
13840
+ }).then((res) => {
13805
13841
  var _a, _b;
13806
13842
  setList(list === null || list === void 0 ? void 0 : list.concat((_b = (_a = res === null || res === void 0 ? void 0 : res.recList) === null || _a === void 0 ? void 0 : _a.filter((item) => !(item === null || item === void 0 ? void 0 : item.video))) !== null && _b !== void 0 ? _b : []));
13807
13843
  setIsLoadingData(false);
@@ -13875,6 +13911,7 @@ Made in Italy` })));
13875
13911
  var img$2 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAaZJREFUeF7t2jFKBEEQRuG3mSJeQTARURDMTL2EqXfwAnoKD6FHMDEzNVIw2tzQC2gFggyDrExX1V92T7wz9PumFnqbXdH5teq8nwEwJqBzgfEVKDYAW8Ae8NZq3ZUm4Aa4AnaBR+C8BUIVAIu/ngSfAs9LESoAWLgB/LzWwP7SeLtfHWAu3tZ9Adz/dwD3eOUJCIlXBQiLVwQIjVcDCI9XAkiJVwFIi1cASI3PBpjb3jbd5GyyUcraCUrEZ02ATHwGgFR8NIBcfCSAZHwUgGx8BIB0vDeAfLwnQIl4L4Ay8R4ApeJbA2wD78DOZA/e7ABzk739Xz/T8rfAIfA6WYCd3BqA7NUSwCKfgLNKCK0BjoC7rzP74yoIrQGsuxSCB0ApBC+AMgieACUQvAHkESIApBGiAGQRIgEkEaIB5BAyAKQQsgBkEDIBJBCyAdIRFABSEVQA0hCUAFIQ1ADCERQBQhFUAcIQlAFCENQBfkOwg9eXpeftFQDmEOzv8ifARy8A3wiXwAHwANwujbf7q0xAi9bZZwwAN9oiDx4TUORFuS2z+wn4BAiAaEHnKChjAAAAAElFTkSuQmCC";
13876
13912
 
13877
13913
  const WaterfallFlowItem = (props) => {
13914
+ var _a;
13878
13915
  const { rec, index, list, reportTagsView, textStyles, space } = props;
13879
13916
  const { swiperRef, setRtcList, setOpenHashtag, sxpParameter } = useSxpDataSource();
13880
13917
  const [showVideo, setShowVideo] = React.useState(false);
@@ -13903,16 +13940,19 @@ Made in Italy` })));
13903
13940
  return ((_a = rec === null || rec === void 0 ? void 0 : rec.product) === null || _a === void 0 ? void 0 : _a.title) || ((_b = rec === null || rec === void 0 ? void 0 : rec.video) === null || _b === void 0 ? void 0 : _b.title) || null;
13904
13941
  }, [rec]);
13905
13942
  const priceText = React.useMemo(() => {
13906
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
13907
- if (((_a = rec === null || rec === void 0 ? void 0 : rec.product) === null || _a === void 0 ? void 0 : _a.currency) && ((_b = rec === null || rec === void 0 ? void 0 : rec.product) === null || _b === void 0 ? void 0 : _b.price)) {
13908
- return `${(_f = (_e = (_d = (_c = rec === null || rec === void 0 ? void 0 : rec.product) === null || _c === void 0 ? void 0 : _c.currency) === null || _d === void 0 ? void 0 : _d.split('-')[1]) === null || _e === void 0 ? void 0 : _e.toUpperCase()) !== null && _f !== void 0 ? _f : ''}${(_j = (_h = (_g = rec === null || rec === void 0 ? void 0 : rec.product) === null || _g === void 0 ? void 0 : _g.price) === null || _h === void 0 ? void 0 : _h.toLocaleString('zh', {
13909
- minimumFractionDigits: 0
13910
- })) !== null && _j !== void 0 ? _j : ''}`;
13943
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
13944
+ const isToLocStr = ((_a = textStyles === null || textStyles === void 0 ? void 0 : textStyles.price) === null || _a === void 0 ? void 0 : _a.enableFormattedPrice) === undefined || ((_b = textStyles === null || textStyles === void 0 ? void 0 : textStyles.price) === null || _b === void 0 ? void 0 : _b.enableFormattedPrice);
13945
+ if (((_c = rec === null || rec === void 0 ? void 0 : rec.product) === null || _c === void 0 ? void 0 : _c.currency) && ((_d = rec === null || rec === void 0 ? void 0 : rec.product) === null || _d === void 0 ? void 0 : _d.price)) {
13946
+ return `${(_h = (_g = (_f = (_e = rec === null || rec === void 0 ? void 0 : rec.product) === null || _e === void 0 ? void 0 : _e.currency) === null || _f === void 0 ? void 0 : _f.split('-')[1]) === null || _g === void 0 ? void 0 : _g.toUpperCase()) !== null && _h !== void 0 ? _h : ''}${isToLocStr
13947
+ ? (_l = (_k = (_j = rec === null || rec === void 0 ? void 0 : rec.product) === null || _j === void 0 ? void 0 : _j.price) === null || _k === void 0 ? void 0 : _k.toLocaleString('zh', {
13948
+ minimumFractionDigits: 0
13949
+ })) !== null && _l !== void 0 ? _l : ''
13950
+ : (_m = rec === null || rec === void 0 ? void 0 : rec.product) === null || _m === void 0 ? void 0 : _m.price}`;
13911
13951
  }
13912
13952
  else {
13913
13953
  return null;
13914
13954
  }
13915
- }, [rec]);
13955
+ }, [rec, (_a = textStyles === null || textStyles === void 0 ? void 0 : textStyles.price) === null || _a === void 0 ? void 0 : _a.enableFormattedPrice]);
13916
13956
  // useEffect(() => {
13917
13957
  // if (imgDom.current === null || src === '') {
13918
13958
  // return;
@@ -14012,22 +14052,27 @@ Made in Italy` })));
14012
14052
  const containerRef = React.useRef(null);
14013
14053
  const [isLoadMore, setIsLoadMore] = React.useState(false);
14014
14054
  React.useCallback(() => {
14015
- var _a, _b, _c, _d;
14016
14055
  if (isLoadMore)
14017
14056
  return;
14018
14057
  setIsLoadMore(true);
14019
14058
  waterFallData &&
14020
- (getRecommendVideos === null || getRecommendVideos === void 0 ? void 0 : getRecommendVideos(Object.assign(Object.assign({ hashTag: waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.hashTag }, (((_b = (_a = waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.rec) === null || _a === void 0 ? void 0 : _a.product) === null || _b === void 0 ? void 0 : _b.itemId) && { productFilter: (_d = (_c = waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.rec) === null || _c === void 0 ? void 0 : _c.product) === null || _d === void 0 ? void 0 : _d.itemId })), ((waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.itemId) && { contentFilter: waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.itemId }))).then((res) => {
14059
+ (getRecommendVideos === null || getRecommendVideos === void 0 ? void 0 : getRecommendVideos({
14060
+ hashTag: waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.hashTag
14061
+ }).then((res) => {
14021
14062
  var _a;
14022
14063
  setList(list === null || list === void 0 ? void 0 : list.concat((_a = res === null || res === void 0 ? void 0 : res.recList) !== null && _a !== void 0 ? _a : []));
14023
14064
  setIsLoadMore(false);
14024
14065
  }));
14025
14066
  }, [waterFallData, getRecommendVideos, list, isLoadMore]);
14026
14067
  React.useEffect(() => {
14027
- var _a, _b, _c, _d, _e, _f;
14068
+ var _a, _b;
14028
14069
  setIsLoadingData(true);
14029
14070
  waterFallData &&
14030
- (getRecommendVideos === null || getRecommendVideos === void 0 ? void 0 : getRecommendVideos(Object.assign(Object.assign(Object.assign({ hashTag: waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.hashTag }, (((_b = (_a = waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.rec) === null || _a === void 0 ? void 0 : _a.product) === null || _b === void 0 ? void 0 : _b.itemId) && { productFilter: (_d = (_c = waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.rec) === null || _c === void 0 ? void 0 : _c.product) === null || _d === void 0 ? void 0 : _d.itemId })), ((waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.itemId) && { contentFilter: waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.itemId })), { defaultSize: hashTagSize, maxSize: hashTagSize })).then((res) => {
14071
+ (getRecommendVideos === null || getRecommendVideos === void 0 ? void 0 : getRecommendVideos({
14072
+ hashTag: waterFallData === null || waterFallData === void 0 ? void 0 : waterFallData.hashTag,
14073
+ defaultSize: hashTagSize,
14074
+ maxSize: hashTagSize
14075
+ }).then((res) => {
14031
14076
  var _a, _b;
14032
14077
  setData(res);
14033
14078
  setList((_b = (_a = res === null || res === void 0 ? void 0 : res.recList) === null || _a === void 0 ? void 0 : _a.filter((item) => (item === null || item === void 0 ? void 0 : item.video) !== null || (item === null || item === void 0 ? void 0 : item.product) !== null)) !== null && _b !== void 0 ? _b : []);
@@ -14036,7 +14081,7 @@ Made in Italy` })));
14036
14081
  if (isOpenHashTag) {
14037
14082
  const res = previewData;
14038
14083
  setData(res);
14039
- setList((_f = (_e = res === null || res === void 0 ? void 0 : res.recList) === null || _e === void 0 ? void 0 : _e.filter((item) => (item === null || item === void 0 ? void 0 : item.video) !== null || (item === null || item === void 0 ? void 0 : item.product) !== null)) !== null && _f !== void 0 ? _f : []);
14084
+ setList((_b = (_a = res === null || res === void 0 ? void 0 : res.recList) === null || _a === void 0 ? void 0 : _a.filter((item) => (item === null || item === void 0 ? void 0 : item.video) !== null || (item === null || item === void 0 ? void 0 : item.product) !== null)) !== null && _b !== void 0 ? _b : []);
14040
14085
  setIsLoadingData(false);
14041
14086
  }
14042
14087
  }, [waterFallData, getRecommendVideos, hashTagSize, isOpenHashTag]);
@@ -14202,7 +14247,7 @@ Made in Italy` })));
14202
14247
  * @Author: binruan@chatlabs.com
14203
14248
  * @Date: 2024-01-15 19:03:09
14204
14249
  * @LastEditors: binruan@chatlabs.com
14205
- * @LastEditTime: 2024-04-29 19:08:34
14250
+ * @LastEditTime: 2024-08-22 10:15:23
14206
14251
  * @FilePath: \pb-sxp-ui\src\materials\sxp\HashTag\index.tsx
14207
14252
  *
14208
14253
  */
@@ -15835,7 +15880,7 @@ Made in Italy` })));
15835
15880
  * @Author: binruan@chatlabs.com
15836
15881
  * @Date: 2023-12-26 16:11:34
15837
15882
  * @LastEditors: binruan@chatlabs.com
15838
- * @LastEditTime: 2024-07-29 10:07:08
15883
+ * @LastEditTime: 2024-08-21 15:46:07
15839
15884
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\RenderCard.tsx
15840
15885
  *
15841
15886
  */
@@ -15855,44 +15900,38 @@ Made in Italy` })));
15855
15900
  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;
15856
15901
  }
15857
15902
  const value = tempMap === null || tempMap === void 0 ? void 0 : tempMap[cta];
15858
- const renderComp = React.useMemo(() => {
15859
- 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, _4, _5, _6, _7, _8;
15903
+ const renderComp = React.useCallback(() => {
15904
+ 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;
15860
15905
  if (!(rec === null || rec === void 0 ? void 0 : rec.video))
15861
15906
  return null;
15862
- 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) ;
15863
- else if ((_c = rec === null || rec === void 0 ? void 0 : rec.video) === null || _c === void 0 ? void 0 : _c.bindProduct) ;
15864
- else {
15865
- (_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;
15866
- }
15867
15907
  //如果includesCtaType有值,则只渲染includesCtaType包含的cta类型组件,用于在页面某处只显示某一组件
15868
- if (includesCtaType && !(includesCtaType === null || includesCtaType === void 0 ? void 0 : includesCtaType.includes((_f = value === null || value === void 0 ? void 0 : value.item) === null || _f === void 0 ? void 0 : _f.type)))
15908
+ if (includesCtaType && !(includesCtaType === null || includesCtaType === void 0 ? void 0 : includesCtaType.includes((_a = value === null || value === void 0 ? void 0 : value.item) === null || _a === void 0 ? void 0 : _a.type)))
15869
15909
  return;
15870
15910
  //默认不渲染category为cta类型的组件,该类型的组件只用于某一处
15871
- if (!includesCtaType && ((_g = value === null || value === void 0 ? void 0 : value.item) === null || _g === void 0 ? void 0 : _g.category) === 'cta')
15911
+ if (!includesCtaType && ((_b = value === null || value === void 0 ? void 0 : value.item) === null || _b === void 0 ? void 0 : _b.category) === 'cta')
15872
15912
  return;
15873
- if ((((_h = value === null || value === void 0 ? void 0 : value.item) === null || _h === void 0 ? void 0 : _h.type) === 'CommodityDiro' && !((_j = rec === null || rec === void 0 ? void 0 : rec.video) === null || _j === void 0 ? void 0 : _j.bindProduct)) ||
15874
- (((_k = value === null || value === void 0 ? void 0 : value.item) === null || _k === void 0 ? void 0 : _k.type) === 'Commodity' && !((_l = rec === null || rec === void 0 ? void 0 : rec.video) === null || _l === void 0 ? void 0 : _l.bindProduct)) ||
15875
- (((_m = value === null || value === void 0 ? void 0 : value.item) === null || _m === void 0 ? void 0 : _m.type) === 'CommodityDiroNew' && !((_o = rec === null || rec === void 0 ? void 0 : rec.video) === null || _o === void 0 ? void 0 : _o.bindProduct)) ||
15876
- (((_p = value === null || value === void 0 ? void 0 : value.item) === null || _p === void 0 ? void 0 : _p.type) === 'MultiCommodity' && !((_r = (_q = rec === null || rec === void 0 ? void 0 : rec.video) === null || _q === void 0 ? void 0 : _q.bindProducts) === null || _r === void 0 ? void 0 : _r.length)) ||
15877
- (((_s = value === null || value === void 0 ? void 0 : value.item) === null || _s === void 0 ? void 0 : _s.type) === 'MultiCommodityDiro' && !((_u = (_t = rec === null || rec === void 0 ? void 0 : rec.video) === null || _t === void 0 ? void 0 : _t.bindProducts) === null || _u === void 0 ? void 0 : _u.length)) ||
15878
- (((_v = value === null || value === void 0 ? void 0 : value.item) === null || _v === void 0 ? void 0 : _v.type) === 'MultiCommodityDiroNew' && !((_x = (_w = rec === null || rec === void 0 ? void 0 : rec.video) === null || _w === void 0 ? void 0 : _w.bindProducts) === null || _x === void 0 ? void 0 : _x.length))) {
15913
+ if ((((_c = value === null || value === void 0 ? void 0 : value.item) === null || _c === void 0 ? void 0 : _c.type) === 'CommodityDiro' && !((_d = rec === null || rec === void 0 ? void 0 : rec.video) === null || _d === void 0 ? void 0 : _d.bindProduct)) ||
15914
+ (((_e = value === null || value === void 0 ? void 0 : value.item) === null || _e === void 0 ? void 0 : _e.type) === 'Commodity' && !((_f = rec === null || rec === void 0 ? void 0 : rec.video) === null || _f === void 0 ? void 0 : _f.bindProduct)) ||
15915
+ (((_g = value === null || value === void 0 ? void 0 : value.item) === null || _g === void 0 ? void 0 : _g.type) === 'CommodityDiroNew' && !((_h = rec === null || rec === void 0 ? void 0 : rec.video) === null || _h === void 0 ? void 0 : _h.bindProduct)) ||
15916
+ (((_j = value === null || value === void 0 ? void 0 : value.item) === null || _j === void 0 ? void 0 : _j.type) === 'MultiCommodity' && !((_l = (_k = rec === null || rec === void 0 ? void 0 : rec.video) === null || _k === void 0 ? void 0 : _k.bindProducts) === null || _l === void 0 ? void 0 : _l.length)) ||
15917
+ (((_m = value === null || value === void 0 ? void 0 : value.item) === null || _m === void 0 ? void 0 : _m.type) === 'MultiCommodityDiro' && !((_p = (_o = rec === null || rec === void 0 ? void 0 : rec.video) === null || _o === void 0 ? void 0 : _o.bindProducts) === null || _p === void 0 ? void 0 : _p.length)) ||
15918
+ (((_q = value === null || value === void 0 ? void 0 : value.item) === null || _q === void 0 ? void 0 : _q.type) === 'MultiCommodityDiroNew' && !((_s = (_r = rec === null || rec === void 0 ? void 0 : rec.video) === null || _r === void 0 ? void 0 : _r.bindProducts) === null || _s === void 0 ? void 0 : _s.length))) {
15879
15919
  //
15880
15920
  return null;
15881
15921
  }
15882
15922
  if (value && resolver) {
15883
- const t = resolver[(_y = value === null || value === void 0 ? void 0 : value.item) === null || _y === void 0 ? void 0 : _y.type];
15923
+ const t = resolver[(_t = value === null || value === void 0 ? void 0 : value.item) === null || _t === void 0 ? void 0 : _t.type];
15884
15924
  const Component = withBindDataSource(t);
15885
- const defaulSetting = (_z = t === null || t === void 0 ? void 0 : t.extend) === null || _z === void 0 ? void 0 : _z.defaulSetting;
15886
- const isExternalLink = ((_2 = (_1 = (_0 = value === null || value === void 0 ? void 0 : value.item) === null || _0 === void 0 ? void 0 : _0.event) === null || _1 === void 0 ? void 0 : _1.onClick) === null || _2 === void 0 ? void 0 : _2.linkType) === 'externalLink';
15887
- return (React.createElement(Component, Object.assign({ style: Object.assign(Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.style), (_3 = value === null || value === void 0 ? void 0 : value.item) === null || _3 === void 0 ? void 0 : _3.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), (_4 = value === null || value === void 0 ? void 0 : value.item) === null || _4 === void 0 ? void 0 : _4.textStyle), bindDatas: (_6 = (_5 = value === null || value === void 0 ? void 0 : value.item) === null || _5 === void 0 ? void 0 : _5.bindDatas) !== null && _6 !== void 0 ? _6 : [] }, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.props, (_7 = value === null || value === void 0 ? void 0 : value.item) === null || _7 === void 0 ? void 0 : _7.props, { event: ((_8 = value === null || value === void 0 ? void 0 : value.item) === null || _8 === void 0 ? void 0 : _8.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 })));
15925
+ const defaulSetting = (_u = t === null || t === void 0 ? void 0 : t.extend) === null || _u === void 0 ? void 0 : _u.defaulSetting;
15926
+ const isExternalLink = ((_x = (_w = (_v = value === null || value === void 0 ? void 0 : value.item) === null || _v === void 0 ? void 0 : _v.event) === null || _w === void 0 ? void 0 : _w.onClick) === null || _x === void 0 ? void 0 : _x.linkType) === 'externalLink';
15927
+ return (React.createElement(Component, Object.assign({ style: Object.assign(Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.style), (_y = value === null || value === void 0 ? void 0 : value.item) === null || _y === void 0 ? void 0 : _y.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 })));
15888
15928
  }
15889
15929
  else {
15890
15930
  return null;
15891
15931
  }
15892
15932
  }, [rec, resolver, tempMap, schema, value === null || value === void 0 ? void 0 : value.id, isActive]);
15893
- return React.createElement(React.Fragment, null, renderComp);
15933
+ return React.createElement(React.Fragment, null, renderComp());
15894
15934
  };
15895
- var RenderCard$1 = React.memo(RenderCard);
15896
15935
 
15897
15936
  /*
15898
15937
  * @Author: binruan@chatlabs.com
@@ -15977,7 +16016,7 @@ Made in Italy` })));
15977
16016
  * @Author: binruan@chatlabs.com
15978
16017
  * @Date: 2024-01-15 19:03:09
15979
16018
  * @LastEditors: binruan@chatlabs.com
15980
- * @LastEditTime: 2024-08-16 11:47:58
16019
+ * @LastEditTime: 2024-08-22 09:56:51
15981
16020
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
15982
16021
  *
15983
16022
  */
@@ -15994,7 +16033,7 @@ Made in Italy` })));
15994
16033
  const [isShowMore, setIsShowMore] = React.useState(false);
15995
16034
  const [isReload, setIsReload] = React.useState(new Date().getTime());
15996
16035
  const skipLinkRef = React.useRef(false);
15997
- const { loadVideos, bffEventReport, loading, setPopupDetailData, ctaEvent, swiperRef, waterFallData, setOpenHashtag, appDomain, openHashtag, loadingImage, isFromHashtag, popupDetailData, bffFbReport, curTime, h5EnterLink, isShowConsent, selectTag, isPreview } = useSxpDataSource();
16036
+ const { loadVideos, bffEventReport, loading, setPopupDetailData, ctaEvent, swiperRef, waterFallData, setOpenHashtag, appDomain, openHashtag, loadingImage, isFromHashtag, popupDetailData, bffFbReport, curTime, h5EnterLink, isShowConsent, selectTag, isPreview, isEditor } = useSxpDataSource();
15998
16037
  const { backMainFeed, productView, jumpToWeb } = useEventReport();
15999
16038
  const isShowFingerTip = React.useMemo(() => {
16000
16039
  return data.length > 0 && !loading && (getFeUserId() || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.enableSwiperTip));
@@ -16024,6 +16063,8 @@ Made in Italy` })));
16024
16063
  }, [data.length, bffFbReport, h5EnterLink]);
16025
16064
  React.useEffect(() => {
16026
16065
  var _a;
16066
+ if (!ctaType || (ctaType === null || ctaType === void 0 ? void 0 : ctaType.length) < 1)
16067
+ return;
16027
16068
  const index = (data === null || data === void 0 ? void 0 : data.findIndex((item) => {
16028
16069
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
16029
16070
  const ctaType0 = ctaType === null || ctaType === void 0 ? void 0 : ctaType[0];
@@ -16037,8 +16078,9 @@ Made in Italy` })));
16037
16078
  return ((_f = (_e = item === null || item === void 0 ? void 0 : item.video) === null || _e === void 0 ? void 0 : _e.bindCta) === null || _f === void 0 ? void 0 : _f.itemId) === ctaType0 && (((_g = item === null || item === void 0 ? void 0 : item.video) === null || _g === void 0 ? void 0 : _g.url) || ((_j = (_h = item === null || item === void 0 ? void 0 : item.video) === null || _h === void 0 ? void 0 : _h.imgUrls) === null || _j === void 0 ? void 0 : _j.length));
16038
16079
  }
16039
16080
  })) || 0;
16040
- (_a = swiperRef === null || swiperRef === void 0 ? void 0 : swiperRef.current) === null || _a === void 0 ? void 0 : _a.swiper.slideTo(index);
16041
- }, [ctaType, swiperRef]);
16081
+ if (index !== -1)
16082
+ (_a = swiperRef === null || swiperRef === void 0 ? void 0 : swiperRef.current) === null || _a === void 0 ? void 0 : _a.swiper.slideTo(index);
16083
+ }, [data, ctaType, swiperRef]);
16042
16084
  React.useEffect(() => {
16043
16085
  const item = data === null || data === void 0 ? void 0 : data[activeIndex];
16044
16086
  const visibleChange = () => {
@@ -16140,7 +16182,7 @@ Made in Italy` })));
16140
16182
  }, [globalConfig, containerHeight, tagHeight]);
16141
16183
  const visList = React.useMemo(() => {
16142
16184
  var _a;
16143
- const list = activeIndex === 0 && !waterFallData
16185
+ const list = activeIndex === 0 && !waterFallData && !isEditor
16144
16186
  ? [(_a = data === null || data === void 0 ? void 0 : data[0]) !== null && _a !== void 0 ? _a : null]
16145
16187
  : data === null || data === void 0 ? void 0 : data.map((item, index) => {
16146
16188
  if (activeIndex === index || index - 1 === activeIndex || index + 1 === activeIndex) {
@@ -16151,7 +16193,7 @@ Made in Italy` })));
16151
16193
  }
16152
16194
  });
16153
16195
  return !waterFallData ? list.concat([{ loading: true }]) : list;
16154
- }, [data, activeIndex, waterFallData]);
16196
+ }, [data, activeIndex, waterFallData, isEditor]);
16155
16197
  const renderLogo = React.useMemo(() => {
16156
16198
  var _a, _b, _c, _d;
16157
16199
  if ((globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.logoUrl) && (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowLogo)) {
@@ -16225,12 +16267,12 @@ Made in Italy` })));
16225
16267
  React.createElement("div", { className: 'clc-sxp-bottom', style: { paddingBottom: `${(_b = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.bottomInfoDist) !== null && _b !== void 0 ? _b : 40}px` } },
16226
16268
  React.createElement(Nudge, { nudge: nudge }),
16227
16269
  (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowCTA) === undefined || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowCTA) ? (React.createElement("div", { className: 'clc-sxp-bottom-card' },
16228
- React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver }))) : null,
16270
+ React.createElement(RenderCard, { rec: rec, index: index, tempMap: tempMap, resolver: resolver }))) : null,
16229
16271
  React.createElement("div", null,
16230
16272
  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: (_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' }), onChange: onExpandableChange }),
16231
- React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, includesCtaType: ['AniLink'] }),
16273
+ React.createElement(RenderCard, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, includesCtaType: ['AniLink'] }),
16232
16274
  React.createElement(Hashtag$1, { index: activeIndex, tags: (_f = (_e = rec === null || rec === void 0 ? void 0 : rec.video) === null || _e === void 0 ? void 0 : _e.hashTags) !== null && _f !== void 0 ? _f : [], itemId: (_g = rec === null || rec === void 0 ? void 0 : rec.video) === null || _g === void 0 ? void 0 : _g.itemId, itemType: ((_h = rec === null || rec === void 0 ? void 0 : rec.video) === null || _h === void 0 ? void 0 : _h.itemId) ? 'VIDEO' : null, rec: rec, hashTagStyle: hashTagStyle }))),
16233
- React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, includesCtaType: ['AniLinkPopup'], isActive: index === activeIndex })));
16275
+ React.createElement(RenderCard, { rec: rec, index: index, tempMap: tempMap, resolver: resolver, includesCtaType: ['AniLinkPopup'], isActive: index === activeIndex })));
16234
16276
  }
16235
16277
  return null;
16236
16278
  }, [
@@ -16400,6 +16442,7 @@ Made in Italy` })));
16400
16442
  position: (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.muteIconFixed) ? 'fixed' : 'absolute',
16401
16443
  visibility: ((_b = (_a = visList === null || visList === void 0 ? void 0 : visList[activeIndex]) === null || _a === void 0 ? void 0 : _a.video) === null || _b === void 0 ? void 0 : _b.url) ? 'visible' : 'hidden',
16402
16444
  zIndex: 999,
16445
+ transform: 'translate3d(0px,0px,0px)',
16403
16446
  [(_c = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.muteIconXPosit) !== null && _c !== void 0 ? _c : 'right']: (_d = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.muteIconX) !== null && _d !== void 0 ? _d : 0,
16404
16447
  [(_e = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.muteIconYPosit) !== null && _e !== void 0 ? _e : 'bottom']: (_f = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.muteIconY) !== null && _f !== void 0 ? _f : 23
16405
16448
  }, defaultValue: isMuted, activeIcon: (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.unMuteIcon) ? globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.unMuteIcon : mutedIcon, unactiveIcon: (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.muteIcon) ? globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.muteIcon : unmutedIcon, onChange: setIsMuted })));
@@ -16418,10 +16461,10 @@ Made in Italy` })));
16418
16461
  alignItems: 'center'
16419
16462
  } },
16420
16463
  React.createElement("img", { width: 64, height: 64, src: loadingImage, alt: 'loading...', style: { objectFit: 'contain' } }))) : (React.createElement(React.Fragment, null,
16421
- renderContent(rec, index),
16422
- renderBottom(rec, index),
16423
16464
  renderLikeButton(rec, index, !(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.likeIconFixed)),
16424
- renderToggleButton(!(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.muteIconFixed))))))));
16465
+ renderToggleButton(!(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.muteIconFixed)),
16466
+ renderBottom(rec, index),
16467
+ renderContent(rec, index)))))));
16425
16468
  });
16426
16469
  }, [
16427
16470
  containerWidth,
@@ -16457,9 +16500,9 @@ Made in Italy` })));
16457
16500
  return;
16458
16501
  // 处理上滑下滑事件
16459
16502
  handleScrollEvent(swiper);
16460
- if (waterFallData)
16503
+ if (waterFallData || isEditor)
16461
16504
  return;
16462
- if ((swiper === null || swiper === void 0 ? void 0 : swiper.activeIndex) + 2 >= (data === null || data === void 0 ? void 0 : data.length)) {
16505
+ if ((swiper === null || swiper === void 0 ? void 0 : swiper.activeIndex) + 1 >= (data === null || data === void 0 ? void 0 : data.length)) {
16463
16506
  if (!isLoadMore) {
16464
16507
  setIsLoadMore(true);
16465
16508
  loadVideos === null || loadVideos === void 0 ? void 0 : loadVideos(Math.ceil(activeIndex / 10) + 1).then(() => {
@@ -16765,7 +16808,7 @@ Made in Italy` })));
16765
16808
  const CTA = (rec, index) => {
16766
16809
  if ((globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowCTA) === undefined || (globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.isShowCTA)) {
16767
16810
  return (React.createElement("div", { className: 'clc-sxp-bottom-card' },
16768
- React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$1 })));
16811
+ React.createElement(RenderCard, { rec: rec, index: index, tempMap: tempMap, resolver: RESOLVER$1 })));
16769
16812
  }
16770
16813
  return null;
16771
16814
  };
@@ -16955,7 +16998,7 @@ Made in Italy` })));
16955
16998
  * @Author: binruan@chatlabs.com
16956
16999
  * @Date: 2023-12-26 10:38:53
16957
17000
  * @LastEditors: binruan@chatlabs.com
16958
- * @LastEditTime: 2024-06-25 11:20:15
17001
+ * @LastEditTime: 2024-08-22 11:32:23
16959
17002
  * @FilePath: \pb-sxp-ui\src\core\context\EditorDataProvider.tsx
16960
17003
  *
16961
17004
  */
@@ -16985,7 +17028,8 @@ Made in Italy` })));
16985
17028
  setOpenHashtag,
16986
17029
  openConsent,
16987
17030
  setOpenConsent,
16988
- sxpFontLinks: data === null || data === void 0 ? void 0 : data.sxpFontLinks
17031
+ sxpFontLinks: data === null || data === void 0 ? void 0 : data.sxpFontLinks,
17032
+ utmParameter: data === null || data === void 0 ? void 0 : data.utm_parameter
16989
17033
  } }, children));
16990
17034
  };
16991
17035
  function useEditorDataProvider() {