pb-sxp-ui 1.2.2 → 1.2.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 (40) hide show
  1. package/dist/index.cjs +79 -49
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.css +36 -1
  4. package/dist/index.js +79 -49
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.cjs +3 -3
  7. package/dist/index.min.cjs.map +1 -1
  8. package/dist/index.min.js +3 -3
  9. package/dist/index.min.js.map +1 -1
  10. package/dist/pb-ui.js +79 -49
  11. package/dist/pb-ui.js.map +1 -1
  12. package/dist/pb-ui.min.js +3 -3
  13. package/dist/pb-ui.min.js.map +1 -1
  14. package/es/core/Pagebuilder/type.d.ts +1 -0
  15. package/es/core/components/SxpPageCore/index.js +1 -1
  16. package/es/core/components/SxpPageRender/Hashtag/index.js +0 -1
  17. package/es/core/components/SxpPageRender/Modal/index.js +16 -8
  18. package/es/core/components/SxpPageRender/Popup/index.js +1 -1
  19. package/es/core/components/SxpPageRender/RenderCard.js +15 -2
  20. package/es/core/components/SxpPageRender/index.js +1 -1
  21. package/es/core/context/SxpDataSourceProvider.d.ts +1 -0
  22. package/es/core/context/SxpDataSourceProvider.js +3 -3
  23. package/es/materials/sxp/cta/AniLink/index.js +4 -1
  24. package/es/materials/sxp/cta/AniLinkPopup/index.js +9 -6
  25. package/es/materials/sxp/cta/AniLinkPopup/settingRender.js +1 -1
  26. package/es/materials/sxp/popup/CommodityList/index.js +13 -7
  27. package/lib/core/Pagebuilder/type.d.ts +1 -0
  28. package/lib/core/components/SxpPageCore/index.js +1 -1
  29. package/lib/core/components/SxpPageRender/Hashtag/index.js +0 -1
  30. package/lib/core/components/SxpPageRender/Modal/index.js +16 -8
  31. package/lib/core/components/SxpPageRender/Popup/index.js +1 -1
  32. package/lib/core/components/SxpPageRender/RenderCard.js +15 -2
  33. package/lib/core/components/SxpPageRender/index.js +1 -1
  34. package/lib/core/context/SxpDataSourceProvider.d.ts +1 -0
  35. package/lib/core/context/SxpDataSourceProvider.js +3 -3
  36. package/lib/materials/sxp/cta/AniLink/index.js +4 -1
  37. package/lib/materials/sxp/cta/AniLinkPopup/index.js +9 -6
  38. package/lib/materials/sxp/cta/AniLinkPopup/settingRender.js +1 -1
  39. package/lib/materials/sxp/popup/CommodityList/index.js +13 -7
  40. package/package.json +1 -1
package/dist/pb-ui.js CHANGED
@@ -547,7 +547,7 @@
547
547
  DataSourceType[DataSourceType["BFF"] = 5] = "BFF";
548
548
  })(DataSourceType || (DataSourceType = {}));
549
549
  const DEFAULT_TAG = 'FOR U';
550
- const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent = true, maxSize, defaultSize, isPreview = false, sxpParameter, appDomain, hashTagSize, loadingImage, isOpenHashTag = false, enabledMetaConversionApi = false, consentHeight, consentWidth, isShowTag = true, isOpenConsent = false, globalConfig, isEditor = false }) => {
550
+ const SxpDataSourceProvider = ({ render, dataSources, utmVal, enableReportEvent = true, maxSize, defaultSize, isPreview = false, sxpParameter, appDomain, hashTagSize, loadingImage, isOpenHashTag = false, enabledMetaConversionApi = false, consentHeight, consentWidth, isShowTag = true, isOpenConsent = false, globalConfig, isEditor = false, utmParameter }) => {
551
551
  var _a, _b, _c;
552
552
  const [rtcList, setRtcList] = React.useState([]);
553
553
  const [tagList, setTagList] = React.useState([]);
@@ -629,7 +629,7 @@
629
629
  const val = (_h = (_g = (_f = utmVal === null || utmVal === void 0 ? void 0 : utmVal.split('&')) === null || _f === void 0 ? void 0 : _f.filter((val) => {
630
630
  var _a, _b;
631
631
  const key = val.split('=')[0];
632
- return (_b = ((_a = sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.channels) !== null && _a !== void 0 ? _a : [])) === null || _b === void 0 ? void 0 : _b.includes(key);
632
+ 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);
633
633
  })) === null || _g === void 0 ? void 0 : _g.join('&')) !== null && _h !== void 0 ? _h : '';
634
634
  query = Object.assign(Object.assign({}, query), { channel: decodeURIComponent(val) });
635
635
  }
@@ -724,7 +724,7 @@
724
724
  const val = (_o = (_m = (_l = utmVal === null || utmVal === void 0 ? void 0 : utmVal.split('&')) === null || _l === void 0 ? void 0 : _l.filter((val) => {
725
725
  var _a, _b;
726
726
  const key = val.split('=')[0];
727
- return (_b = ((_a = sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.channels) !== null && _a !== void 0 ? _a : [])) === null || _b === void 0 ? void 0 : _b.includes(key);
727
+ 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);
728
728
  })) === null || _m === void 0 ? void 0 : _m.join('&')) !== null && _o !== void 0 ? _o : '';
729
729
  const result = yield (bffFetch === null || bffFetch === void 0 ? void 0 : bffFetch('/tag/list', { method: 'GET', query: { channel: decodeURIComponent(val) } }));
730
730
  setTagList((_q = (_p = result === null || result === void 0 ? void 0 : result.data) === null || _p === void 0 ? void 0 : _p.tags) !== null && _q !== void 0 ? _q : []);
@@ -8598,7 +8598,7 @@
8598
8598
  * @Author: binruan@chatlabs.com
8599
8599
  * @Date: 2023-11-02 18:34:34
8600
8600
  * @LastEditors: binruan@chatlabs.com
8601
- * @LastEditTime: 2024-07-19 18:39:54
8601
+ * @LastEditTime: 2024-07-25 17:05:20
8602
8602
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Modal\index.tsx
8603
8603
  *
8604
8604
  */
@@ -8654,19 +8654,25 @@
8654
8654
  onClose === null || onClose === void 0 ? void 0 : onClose();
8655
8655
  }, 300);
8656
8656
  const handleTouchStart = (event) => {
8657
- event.stopPropagation();
8658
- touchRef.current = event.touches[0].clientY;
8659
- fTouchRef.current = event.touches[0].clientY;
8657
+ // event.stopPropagation();
8658
+ touchRef.current = event.touches[0];
8659
+ fTouchRef.current = event.touches[0];
8660
8660
  touchMoveRef.current = true;
8661
8661
  };
8662
8662
  const handleTouchMove = (event) => {
8663
- event.stopPropagation();
8663
+ // event.stopPropagation();
8664
8664
  requestAnimationFrame(() => {
8665
8665
  var _a;
8666
8666
  if (touchMoveRef.current && ((_a = ref === null || ref === void 0 ? void 0 : ref.current) === null || _a === void 0 ? void 0 : _a.scrollTop) === 0) {
8667
8667
  const currentY = event.touches[0].clientY;
8668
- const diff = touchRef.current - currentY;
8669
- touchRef.current = currentY;
8668
+ const currentX = event.touches[0].clientX;
8669
+ const diff = touchRef.current.clientY - currentY;
8670
+ touchRef.current = event.touches[0];
8671
+ const diffY = currentY - fTouchRef.current.clientY;
8672
+ const diffX = currentX - fTouchRef.current.clientX;
8673
+ if (Math.abs(diffX) > Math.abs(diffY)) {
8674
+ return;
8675
+ }
8670
8676
  const ts = modalTrans - diff;
8671
8677
  if (ts > 0) {
8672
8678
  setModalTrans(ts);
@@ -8676,9 +8682,14 @@
8676
8682
  };
8677
8683
  const handleTouchEnd = (event) => {
8678
8684
  var _a;
8679
- event.stopPropagation();
8685
+ // event.stopPropagation();
8680
8686
  if (touchMoveRef.current && ((_a = ref === null || ref === void 0 ? void 0 : ref.current) === null || _a === void 0 ? void 0 : _a.scrollTop) === 0) {
8681
- const diff = fTouchRef.current - touchRef.current;
8687
+ const diffY = event.changedTouches[0].clientY - fTouchRef.current.clientY;
8688
+ const diffX = event.changedTouches[0].clientX - fTouchRef.current.clientX;
8689
+ if (Math.abs(diffX) > Math.abs(diffY)) {
8690
+ return;
8691
+ }
8692
+ const diff = fTouchRef.current.clientY - touchRef.current.clientY;
8682
8693
  if (diff > 0) {
8683
8694
  setModalTrans(0);
8684
8695
  }
@@ -10169,18 +10180,24 @@ Made in Italy` })));
10169
10180
  }
10170
10181
  }, []);
10171
10182
  return (React.createElement("div", { className: css.css(Object.assign(Object.assign({}, style), { display: 'flex', flexDirection: 'column', gap: '10px', padding: '0 20px', marginTop: '50px' })) }, product === null || product === void 0 ? void 0 : product.map((item, index) => {
10172
- var _a, _b, _c, _d, _e, _f, _g, _h;
10183
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
10173
10184
  return (React.createElement(EventProvider$1, Object.assign({ key: index, isExternalLink: isExternalLink, rec: recData, index: index }, props, { className: css.css({
10174
10185
  display: 'flex'
10175
10186
  }) }),
10176
10187
  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 }),
10177
- React.createElement("div", { style: { flex: 1, display: 'flex', flexDirection: 'column', justifyContent: 'space-between' } },
10188
+ React.createElement("div", { style: {
10189
+ flex: 1,
10190
+ 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 - ${(_g = style === null || style === void 0 ? void 0 : style.padding) !== null && _g !== void 0 ? _g : 0}px)`,
10191
+ display: 'flex',
10192
+ flexDirection: 'column',
10193
+ justifyContent: 'space-between'
10194
+ } },
10178
10195
  React.createElement("div", null,
10179
- React.createElement("div", { style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.title, hidden: !!item && !(item === null || item === void 0 ? void 0 : item.title), dangerouslySetInnerHTML: {
10180
- __html: setFontForText((_e = item === null || item === void 0 ? void 0 : item.title) !== null && _e !== void 0 ? _e : 'Pendant in Yellow Gold with Diamonds, Medium', commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.title)
10196
+ React.createElement("div", { className: 'one-line-ellipsis', style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.title, hidden: !!item && !(item === null || item === void 0 ? void 0 : item.title), dangerouslySetInnerHTML: {
10197
+ __html: setFontForText((_h = item === null || item === void 0 ? void 0 : item.title) !== null && _h !== void 0 ? _h : 'Pendant in Yellow Gold with Diamonds, Medium', commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.title)
10181
10198
  } }),
10182
- React.createElement("div", { style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.collection, hidden: !!item && (!(item === null || item === void 0 ? void 0 : item.collection) || (item === null || item === void 0 ? void 0 : item.collection) === ''), dangerouslySetInnerHTML: {
10183
- __html: setFontForText((_f = item === null || item === void 0 ? void 0 : item.collection) !== null && _f !== void 0 ? _f : 'Tiffany Lock', commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.collection)
10199
+ React.createElement("div", { className: 'two-line-ellipsis', style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.collection, hidden: !!item && (!(item === null || item === void 0 ? void 0 : item.collection) || (item === null || item === void 0 ? void 0 : item.collection) === ''), dangerouslySetInnerHTML: {
10200
+ __html: setFontForText((_j = item === null || item === void 0 ? void 0 : item.collection) !== null && _j !== void 0 ? _j : 'Tiffany Lock', commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.collection)
10184
10201
  } })),
10185
10202
  React.createElement("div", { className: css.css({
10186
10203
  display: 'flex',
@@ -10193,7 +10210,7 @@ Made in Italy` })));
10193
10210
  __html: setFontForText(priceText(item), commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.price)
10194
10211
  } }),
10195
10212
  React.createElement("div", { className: 'one-line-ellipsis', style: Object.assign(Object.assign({}, buttonStyle), { padding: '0 15px', maxWidth: '100px' }), dangerouslySetInnerHTML: {
10196
- __html: setFontForText((_h = (_g = item === null || item === void 0 ? void 0 : item.bindCta) === null || _g === void 0 ? void 0 : _g.enTitle) !== null && _h !== void 0 ? _h : 'Shop Now', buttonStyle)
10213
+ __html: setFontForText((_l = (_k = item === null || item === void 0 ? void 0 : item.bindCta) === null || _k === void 0 ? void 0 : _k.enTitle) !== null && _l !== void 0 ? _l : 'Shop Now', buttonStyle)
10197
10214
  } })))));
10198
10215
  })));
10199
10216
  };
@@ -13926,7 +13943,7 @@ Made in Italy` })));
13926
13943
  }
13927
13944
  ];
13928
13945
 
13929
- var styles$1 = {"animated-button":"index-module_animated-button__lqTbg","gradientCover":"index-module_gradientCover__5iUag"};
13946
+ var styles$1 = {"animated-button":"index-module_animated-button__lqTbg","gradientCover":"index-module_gradientCover__5iUag","one-line-ellipsis":"index-module_one-line-ellipsis__HutE0","two-line-ellipsis":"index-module_two-line-ellipsis__c8gRJ"};
13930
13947
 
13931
13948
  const AniLink$1 = (_a) => {
13932
13949
  var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
@@ -13984,13 +14001,16 @@ Made in Italy` })));
13984
14001
  if (isOnScreen) {
13985
14002
  setVisible(true);
13986
14003
  }
14004
+ else {
14005
+ setVisible(false);
14006
+ }
13987
14007
  }, [isOnScreen]);
13988
14008
  const aniNamStyle = React.useMemo(() => {
13989
14009
  if (!visible)
13990
14010
  return null;
13991
14011
  return styles$1['animated-button'];
13992
14012
  }, [visible]);
13993
- return (React.createElement("div", Object.assign({ ref: ref, style: Object.assign(Object.assign(Object.assign({}, style), ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle), { lineHeight: `${(_l = style === null || style === void 0 ? void 0 : style.height) !== null && _l !== void 0 ? _l : 0}px` }) }, props, { className: `${aniNamStyle} ${css.css(aniTimStyle)} one-line-ellipsis`, onClick: handleTo, dangerouslySetInnerHTML: {
14013
+ return (React.createElement("div", Object.assign({ ref: ref, style: Object.assign(Object.assign(Object.assign({}, style), ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle), { lineHeight: `${(_l = style === null || style === void 0 ? void 0 : style.height) !== null && _l !== void 0 ? _l : 0}px` }) }, props, { className: `${aniNamStyle} ${css.css(aniTimStyle)} ${styles$1['one-line-ellipsis']}`, onClick: handleTo, dangerouslySetInnerHTML: {
13994
14014
  __html: setFontForText(title, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)
13995
14015
  } })));
13996
14016
  };
@@ -14101,7 +14121,7 @@ Made in Italy` })));
14101
14121
  * @Author: binruan@chatlabs.com
14102
14122
  * @Date: 2024-03-26 16:50:25
14103
14123
  * @LastEditors: binruan@chatlabs.com
14104
- * @LastEditTime: 2024-07-08 11:01:24
14124
+ * @LastEditTime: 2024-07-25 15:02:45
14105
14125
  * @FilePath: \pb-sxp-ui\src\materials\sxp\cta\AniLinkPopup\settingRender.tsx
14106
14126
  *
14107
14127
  */
@@ -14303,7 +14323,7 @@ Made in Italy` })));
14303
14323
  },
14304
14324
  {
14305
14325
  type: 'TextSpace',
14306
- name: ['props', 'ctaTempStyles', 'title']
14326
+ name: ['props', 'ctaTempStyles', 'ctaTitle']
14307
14327
  },
14308
14328
  {
14309
14329
  type: 'Color',
@@ -14355,7 +14375,7 @@ Made in Italy` })));
14355
14375
  }
14356
14376
  ];
14357
14377
 
14358
- 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","tow-line-ellipsis":"index-module_tow-line-ellipsis__GKFXr","modal-icon-wrapper":"index-module_modal-icon-wrapper__tu3BY","modal-icon-wrapper-img":"index-module_modal-icon-wrapper-img__4b7qZ"};
14378
+ 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"};
14359
14379
 
14360
14380
  const closeIcon = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAjhJREFUWEfFlztOw0AQhmeWiJ4CCmpQ5DiRQsIJyAWg5A0lR0AIChDiCJS8ER0cADgBeRSxt4CCDgkaKiq8i+zYeWx2413HEWmiJJv9v535Z2aN8M8vFPT9z3zETD0aAUChUJjwvPFHAJhBhB3Hqd6OAsK2yyucwykAvP38eJX398Z3AJDLlVYR8ToU9Rhj25TWr9KEsKy5dULIGQCMtfZly45TvwsAstm56UwG6wA4FUFwzrdctxZBDcWSy5XWEPG8I84/GcMipdWPtgcsaz5PCHtKG0IuTiqUvjT9U/WYMG2IOPE+AP+LtCB0xKUAAyA2Xbd2o2OG0NQXvTnvhL17D7EPtH9TRCIWwkRcGYGIQgYBABuqPuHXOQBc6pw80lBGwBQiiXhsBHQhkoprA6iM6acjhDQKu5YJZW6XeOI3XJdpvfsdTu52VfXEekD8owQiXGIubpSCbhDbLu8DwKEAd+A41SOdPpE4BS0viFOtvV2iKWqUgn5x/tmS70xR01GuDSCKc86/OCcLgTyyZ0ScDGNhFAktAJV4NFJ9YyaFiAWIE+9uVkkgBgLoig8DMWAa9ro9ynkUdlW5maZDCmB6clmz0k1HH4Cs1Ezbq2p2yEpUuBOKTSZZex00RUWIrltxuuK6EOGDSbGIOPZicpMx6fny650377qNRgBgWeVFQuA+6UjVgREhGIMlSqsPUQqIbZdOOIdZQmCv2axRnU1N1+TzJYsxOEaEV8ep7frPZ7Gd0FTEdP0ft0/kMNdg0eoAAAAASUVORK5CYII=';
14361
14381
  const AniLinkPopup$1 = (_a) => {
@@ -14409,26 +14429,29 @@ Made in Italy` })));
14409
14429
  if (isOnScreen) {
14410
14430
  setVisible(true);
14411
14431
  }
14432
+ else {
14433
+ setVisible(false);
14434
+ }
14412
14435
  }, [isOnScreen]);
14413
14436
  const aniNamStyle = React.useMemo(() => {
14414
14437
  if (!visible)
14415
14438
  return null;
14416
- return startAni ? styles['animated-fadeIn'] : styles['animated-fadeOut'];
14439
+ return startAni ? styles['animated-fadeIn'] : null;
14417
14440
  }, [visible, startAni]);
14418
14441
  return (React.createElement(React.Fragment, null, isTel ? (React.createElement("div", { style: {
14419
14442
  height: '40px',
14420
14443
  lineHeight: '40px',
14421
14444
  paddingLeft: '6px'
14422
- } }, "Cta Title")) : (React.createElement("div", Object.assign({ ref: ref }, props, { className: `${css.css(Object.assign(Object.assign({}, style), { '--transY': `translateY(calc(100% + ${(_r = style === null || style === void 0 ? void 0 : style.margin) !== null && _r !== void 0 ? _r : 0}px))` }))} ${styles['aniLinkPopup']} ${aniNamStyle} ${css.css(aniTimStyle)}`, onClick: handleTo }),
14445
+ } }, "Cta Title")) : (React.createElement(React.Fragment, null, aniNamStyle ? (React.createElement("div", Object.assign({ ref: ref }, props, { className: `${css.css(Object.assign(Object.assign({}, style), { '--transY': `translateY(calc(100% + ${(_r = style === null || style === void 0 ? void 0 : style.margin) !== null && _r !== void 0 ? _r : 0}px))` }))} ${styles['aniLinkPopup']} ${aniNamStyle} ${css.css(aniTimStyle)}`, onClick: handleTo }),
14423
14446
  React.createElement("div", { onClick: onClose, className: styles['modal-icon-wrapper'], style: { padding: (_s = style === null || style === void 0 ? void 0 : style['padding']) !== null && _s !== void 0 ? _s : 0 } },
14424
14447
  React.createElement("img", { src: (_t = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.popupCloseIcon) !== null && _t !== void 0 ? _t : closeIcon, alt: 'close', className: styles['modal-icon-wrapper-img'] })),
14425
14448
  React.createElement(Img$1, { src: src, rec: recData, item: (_y = (_w = (_v = (_u = recData === null || recData === void 0 ? void 0 : recData.video) === null || _u === void 0 ? void 0 : _u.bindProducts) === null || _v === void 0 ? void 0 : _v[0]) !== null && _w !== void 0 ? _w : (_x = recData === null || recData === void 0 ? void 0 : recData.video) === null || _x === void 0 ? void 0 : _x.bindProduct) !== null && _y !== void 0 ? _y : recData === null || recData === void 0 ? void 0 : recData.video, index: index, translateY: translateY, imgStyle: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img }),
14426
- React.createElement("div", { hidden: !!recData && !(product === null || product === void 0 ? void 0 : product.title), className: styles['tow-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title, dangerouslySetInnerHTML: {
14449
+ (!recData || (product === null || product === void 0 ? void 0 : product.title)) && (React.createElement("div", { className: styles['two-line-ellipsis'], style: ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title, dangerouslySetInnerHTML: {
14427
14450
  __html: setFontForText((_z = product === null || product === void 0 ? void 0 : product.title) !== null && _z !== void 0 ? _z : 'Product Name', ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.title)
14428
- } }),
14429
- React.createElement("div", { className: 'one-line-ellipsis', style: Object.assign(Object.assign({}, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle), { lineHeight: ((_0 = ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle) === null || _0 === void 0 ? void 0 : _0.height) + 'px' }), dangerouslySetInnerHTML: {
14451
+ } })),
14452
+ React.createElement("div", { className: styles['one-line-ellipsis'], style: Object.assign(Object.assign({}, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle), { lineHeight: ((_0 = ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle) === null || _0 === void 0 ? void 0 : _0.height) + 'px' }), dangerouslySetInnerHTML: {
14430
14453
  __html: setFontForText(title, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)
14431
- } })))));
14454
+ } }))) : (React.createElement("div", { ref: ref, style: { position: 'absolute', height: '50px', width: '50px', bottom: 0, right: 0, zIndex: 1000 } }))))));
14432
14455
  };
14433
14456
  var AniLinkPopupComponent = React.memo(AniLinkPopup$1);
14434
14457
 
@@ -15154,7 +15177,7 @@ Made in Italy` })));
15154
15177
  * @Author: binruan@chatlabs.com
15155
15178
  * @Date: 2024-01-15 19:03:09
15156
15179
  * @LastEditors: binruan@chatlabs.com
15157
- * @LastEditTime: 2024-07-09 18:47:05
15180
+ * @LastEditTime: 2024-07-25 18:14:29
15158
15181
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Hashtag\index.tsx
15159
15182
  *
15160
15183
  */
@@ -15191,7 +15214,6 @@ Made in Italy` })));
15191
15214
  }
15192
15215
  return (React.createElement("span", { style: { textDecoration: 'underline', cursor: 'pointer', color: '#fff' }, onClick: () => setIsShowMore(!isShowMore) }, isShowMore ? 'show less' : 'show more'));
15193
15216
  }, [isShowMore, tags]);
15194
- console.log(hashTagStyle, '111');
15195
15217
  return (React.createElement("div", { className: 'clc-sxp-bottom-hashtag', style: { marginTop: `${(_a = hashTagStyle === null || hashTagStyle === void 0 ? void 0 : hashTagStyle.marginTop) !== null && _a !== void 0 ? _a : 16}px` } },
15196
15218
  React.createElement(Scroll$1, null, tags === null || tags === void 0 ? void 0 : tags.map((item, index) => (React.createElement(SwiperSlide, { key: index, hidden: !isShowMore ? index >= 6 : false, className: 'clc-sxp-bottom-hashtag-item', style: hashTagStyle, onClick: () => handleClickTag(item) },
15197
15219
  React.createElement("div", { dangerouslySetInnerHTML: { __html: setFontForText(`#${item}`, hashTagStyle) } })))))));
@@ -15262,27 +15284,35 @@ Made in Italy` })));
15262
15284
  * @Author: binruan@chatlabs.com
15263
15285
  * @Date: 2023-12-26 16:11:34
15264
15286
  * @LastEditors: binruan@chatlabs.com
15265
- * @LastEditTime: 2024-07-17 18:54:33
15287
+ * @LastEditTime: 2024-07-25 18:47:37
15266
15288
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\RenderCard.tsx
15267
15289
  *
15268
15290
  */
15269
15291
  const RenderCard = ({ rec, index, tempMap, resolver, includesCtaType }) => {
15292
+ var _a, _b, _c, _d, _e;
15270
15293
  const { schema } = useEditor();
15294
+ if (!(rec === null || rec === void 0 ? void 0 : rec.video))
15295
+ return null;
15296
+ let cta = null;
15297
+ 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) {
15298
+ cta = '多商品CTA';
15299
+ }
15300
+ else if ((_c = rec === null || rec === void 0 ? void 0 : rec.video) === null || _c === void 0 ? void 0 : _c.bindProduct) {
15301
+ cta = '商品CTA';
15302
+ }
15303
+ else {
15304
+ 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;
15305
+ }
15306
+ const value = tempMap === null || tempMap === void 0 ? void 0 : tempMap[cta];
15271
15307
  const renderComp = React.useMemo(() => {
15272
15308
  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;
15273
15309
  if (!(rec === null || rec === void 0 ? void 0 : rec.video))
15274
15310
  return null;
15275
- let cta = null;
15276
- 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) {
15277
- cta = '多商品CTA';
15278
- }
15279
- else if ((_c = rec === null || rec === void 0 ? void 0 : rec.video) === null || _c === void 0 ? void 0 : _c.bindProduct) {
15280
- cta = '商品CTA';
15281
- }
15311
+ 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) ;
15312
+ else if ((_c = rec === null || rec === void 0 ? void 0 : rec.video) === null || _c === void 0 ? void 0 : _c.bindProduct) ;
15282
15313
  else {
15283
- 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;
15314
+ (_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;
15284
15315
  }
15285
- const value = tempMap === null || tempMap === void 0 ? void 0 : tempMap[cta];
15286
15316
  //如果includesCtaType有值,则只渲染includesCtaType包含的cta类型组件,用于在页面某处只显示某一组件
15287
15317
  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)))
15288
15318
  return;
@@ -15308,7 +15338,7 @@ Made in Italy` })));
15308
15338
  else {
15309
15339
  return null;
15310
15340
  }
15311
- }, [rec, resolver, tempMap, schema]);
15341
+ }, [rec, resolver, tempMap, schema, value === null || value === void 0 ? void 0 : value.id]);
15312
15342
  return React.createElement(React.Fragment, null, renderComp);
15313
15343
  };
15314
15344
  var RenderCard$1 = React.memo(RenderCard);
@@ -15396,7 +15426,7 @@ Made in Italy` })));
15396
15426
  * @Author: binruan@chatlabs.com
15397
15427
  * @Date: 2024-01-15 19:03:09
15398
15428
  * @LastEditors: binruan@chatlabs.com
15399
- * @LastEditTime: 2024-07-24 14:59:23
15429
+ * @LastEditTime: 2024-07-25 17:10:01
15400
15430
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
15401
15431
  *
15402
15432
  */
@@ -15673,7 +15703,7 @@ Made in Italy` })));
15673
15703
  return;
15674
15704
  const t = new Date() - curTime.current;
15675
15705
  if ((globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.openSlideSkip) && t >= ((_a = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.slideSkipStartTime) !== null && _a !== void 0 ? _a : 0) && getSlideSkipState() && item) {
15676
- const link = ((_c = (_b = item === null || item === void 0 ? void 0 : item.video) === null || _b === void 0 ? void 0 : _b.bindProduct) === null || _c === void 0 ? void 0 : _c.link) || ((_f = (_e = (_d = item === null || item === void 0 ? void 0 : item.video) === null || _d === void 0 ? void 0 : _d.bindProducts) === null || _e === void 0 ? void 0 : _e[0]) === null || _f === void 0 ? void 0 : _f.link) || ((_g = item === null || item === void 0 ? void 0 : item.product) === null || _g === void 0 ? void 0 : _g.link);
15706
+ const link = ((_d = (_c = (_b = item === null || item === void 0 ? void 0 : item.video) === null || _b === void 0 ? void 0 : _b.bindProducts) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.link) || ((_f = (_e = item === null || item === void 0 ? void 0 : item.video) === null || _e === void 0 ? void 0 : _e.bindProduct) === null || _f === void 0 ? void 0 : _f.link) || ((_g = item === null || item === void 0 ? void 0 : item.product) === null || _g === void 0 ? void 0 : _g.link);
15677
15707
  const product = (item === null || item === void 0 ? void 0 : item.product) || ((_h = item === null || item === void 0 ? void 0 : item.video) === null || _h === void 0 ? void 0 : _h.bindProduct) || ((_k = (_j = item === null || item === void 0 ? void 0 : item.video) === null || _j === void 0 ? void 0 : _j.bindProducts) === null || _k === void 0 ? void 0 : _k[0]);
15678
15708
  if (link) {
15679
15709
  bffEventReport === null || bffEventReport === void 0 ? void 0 : bffEventReport({
@@ -16218,7 +16248,7 @@ Made in Italy` })));
16218
16248
  * @Author: binruan@chatlabs.com
16219
16249
  * @Date: 2023-10-31 10:56:01
16220
16250
  * @LastEditors: binruan@chatlabs.com
16221
- * @LastEditTime: 2024-07-19 18:06:14
16251
+ * @LastEditTime: 2024-07-25 17:15:36
16222
16252
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Popup\index.tsx
16223
16253
  *
16224
16254
  */
@@ -16271,7 +16301,7 @@ Made in Italy` })));
16271
16301
  const isExternalLink = ((_d = (_c = (_b = value === null || value === void 0 ? void 0 : value.item) === null || _b === void 0 ? void 0 : _b.event) === null || _c === void 0 ? void 0 : _c.onClick) === null || _d === void 0 ? void 0 : _d.linkType) === 'externalLink';
16272
16302
  const isPopup = ((_g = (_f = (_e = value === null || value === void 0 ? void 0 : value.item) === null || _e === void 0 ? void 0 : _e.event) === null || _f === void 0 ? void 0 : _f.onClick) === null || _g === void 0 ? void 0 : _g.linkType) === 'popup';
16273
16303
  const defaulSetting = (_h = t === null || t === void 0 ? void 0 : t.extend) === null || _h === void 0 ? void 0 : _h.defaulSetting;
16274
- return (React.createElement(Component, Object.assign({ key: index, style: Object.assign(Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.style), (_j = value === null || value === void 0 ? void 0 : value.item) === null || _j === void 0 ? void 0 : _j.style), { width: (_k = window.innerWidth) !== null && _k !== void 0 ? _k : '100vw' }), textStyle: Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.textStyle), (_l = value === null || value === void 0 ? void 0 : value.item) === null || _l === void 0 ? void 0 : _l.textStyle), bindDatas: (_o = (_m = value === null || value === void 0 ? void 0 : value.item) === null || _m === void 0 ? void 0 : _m.bindDatas) !== null && _o !== void 0 ? _o : [] }, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.props, (_p = value === null || value === void 0 ? void 0 : value.item) === null || _p === void 0 ? void 0 : _p.props, { event: ((_q = value === null || value === void 0 ? void 0 : value.item) === null || _q === void 0 ? void 0 : _q.event) || {}, schema: schema, id: value === null || value === void 0 ? void 0 : value.id, isExternalLink: isExternalLink, isPopup: isPopup, onClose: handleClose })));
16304
+ return (React.createElement(Component, Object.assign({ key: index, style: Object.assign(Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.style), (_j = value === null || value === void 0 ? void 0 : value.item) === null || _j === void 0 ? void 0 : _j.style), { width: (_k = window.innerWidth) !== null && _k !== void 0 ? _k : '100vw', height: '100%' }), textStyle: Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.textStyle), (_l = value === null || value === void 0 ? void 0 : value.item) === null || _l === void 0 ? void 0 : _l.textStyle), bindDatas: (_o = (_m = value === null || value === void 0 ? void 0 : value.item) === null || _m === void 0 ? void 0 : _m.bindDatas) !== null && _o !== void 0 ? _o : [] }, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.props, (_p = value === null || value === void 0 ? void 0 : value.item) === null || _p === void 0 ? void 0 : _p.props, { event: ((_q = value === null || value === void 0 ? void 0 : value.item) === null || _q === void 0 ? void 0 : _q.event) || {}, schema: schema, id: value === null || value === void 0 ? void 0 : value.id, isExternalLink: isExternalLink, isPopup: isPopup, onClose: handleClose })));
16275
16305
  }
16276
16306
  else {
16277
16307
  return React.createElement(React.Fragment, null);
@@ -16285,7 +16315,7 @@ Made in Italy` })));
16285
16315
  * @Author: binruan@chatlabs.com
16286
16316
  * @Date: 2024-01-15 19:03:09
16287
16317
  * @LastEditors: binruan@chatlabs.com
16288
- * @LastEditTime: 2024-06-13 14:54:12
16318
+ * @LastEditTime: 2024-07-24 16:35:44
16289
16319
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageCore\index.tsx
16290
16320
  *
16291
16321
  */
@@ -16309,7 +16339,7 @@ Made in Italy` })));
16309
16339
  return searchParams;
16310
16340
  }, []);
16311
16341
  return (React.createElement(EditorCore, { resolver: RESOLVER, enableDataSource: false, schema: data === null || data === void 0 ? void 0 : data.data, utmVal: utmVal },
16312
- React.createElement(SxpDataSourceProvider$1, { utmVal: utmVal, dataSources: data === null || data === void 0 ? void 0 : data.data_sources, sxpParameter: data === null || data === void 0 ? void 0 : data.sxp_parameter, maxSize: (_b = (_a = data === null || data === void 0 ? void 0 : data.sxp_parameter) === null || _a === void 0 ? void 0 : _a.personalized_recommend) !== null && _b !== void 0 ? _b : maxSize, defaultSize: (_d = (_c = data === null || data === void 0 ? void 0 : data.sxp_parameter) === null || _c === void 0 ? void 0 : _c.default_recommend) !== null && _d !== void 0 ? _d : defaultSize, hashTagSize: (_f = (_e = data === null || data === void 0 ? void 0 : data.sxp_parameter) === null || _e === void 0 ? void 0 : _e.hash_tag_size) !== null && _f !== void 0 ? _f : hashTagSize, loadingImage: loadingImage, appDomain: appDomain, enabledMetaConversionApi: enabledMetaConversionApi, isShowTag: (_j = (_h = (_g = data === null || data === void 0 ? void 0 : data.data) === null || _g === void 0 ? void 0 : _g.sxpPageConf) === null || _h === void 0 ? void 0 : _h.globalConfig) === null || _j === void 0 ? void 0 : _j.isShowTag, globalConfig: (_l = (_k = data === null || data === void 0 ? void 0 : data.data) === null || _k === void 0 ? void 0 : _k.sxpPageConf) === null || _l === void 0 ? void 0 : _l.globalConfig, render: ({ rtcList, tagList }) => {
16342
+ React.createElement(SxpDataSourceProvider$1, { utmVal: utmVal, dataSources: data === null || data === void 0 ? void 0 : data.data_sources, sxpParameter: data === null || data === void 0 ? void 0 : data.sxp_parameter, maxSize: (_b = (_a = data === null || data === void 0 ? void 0 : data.sxp_parameter) === null || _a === void 0 ? void 0 : _a.personalized_recommend) !== null && _b !== void 0 ? _b : maxSize, defaultSize: (_d = (_c = data === null || data === void 0 ? void 0 : data.sxp_parameter) === null || _c === void 0 ? void 0 : _c.default_recommend) !== null && _d !== void 0 ? _d : defaultSize, hashTagSize: (_f = (_e = data === null || data === void 0 ? void 0 : data.sxp_parameter) === null || _e === void 0 ? void 0 : _e.hash_tag_size) !== null && _f !== void 0 ? _f : hashTagSize, loadingImage: loadingImage, appDomain: appDomain, enabledMetaConversionApi: enabledMetaConversionApi, isShowTag: (_j = (_h = (_g = data === null || data === void 0 ? void 0 : data.data) === null || _g === void 0 ? void 0 : _g.sxpPageConf) === null || _h === void 0 ? void 0 : _h.globalConfig) === null || _j === void 0 ? void 0 : _j.isShowTag, globalConfig: (_l = (_k = data === null || data === void 0 ? void 0 : data.data) === null || _k === void 0 ? void 0 : _k.sxpPageConf) === null || _l === void 0 ? void 0 : _l.globalConfig, utmParameter: data === null || data === void 0 ? void 0 : data.utm_parameter, render: ({ rtcList, tagList }) => {
16313
16343
  var _a;
16314
16344
  return (React.createElement(React.Fragment, null,
16315
16345
  React.createElement(SxpPageRender, Object.assign({}, (_a = data === null || data === void 0 ? void 0 : data.data) === null || _a === void 0 ? void 0 : _a.sxpPageConf, { tagList: tagList, data: rtcList, resolver: RESOLVER, licenseUrl: licenseUrl })),