pb-sxp-ui 1.0.3-alpha.4 → 1.0.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 (78) hide show
  1. package/dist/index.cjs +117 -60
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.css +5 -5
  4. package/dist/index.js +117 -60
  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 +117 -60
  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/components/SxpPageRender/Popup/index.js +5 -3
  15. package/es/core/components/SxpPageRender/RenderCard.js +6 -3
  16. package/es/core/components/SxpPageRender/index.js +6 -5
  17. package/es/core/context/EditorContext.js +3 -1
  18. package/es/materials/sxp/popup/CommodityDetailDiroNew/index.js +2 -2
  19. package/es/materials/sxp/popup/CommodityDetailDiroNew/material.js +1 -1
  20. package/es/materials/sxp/template/Appoint/index.d.ts +1 -0
  21. package/es/materials/sxp/template/Appoint/index.js +3 -3
  22. package/es/materials/sxp/template/Appoint/material.js +2 -1
  23. package/es/materials/sxp/template/Commodity/index.d.ts +1 -0
  24. package/es/materials/sxp/template/Commodity/index.js +2 -2
  25. package/es/materials/sxp/template/Commodity/material.js +2 -1
  26. package/es/materials/sxp/template/CommodityDiro/index.d.ts +1 -0
  27. package/es/materials/sxp/template/CommodityDiro/index.js +2 -2
  28. package/es/materials/sxp/template/CommodityDiro/material.js +2 -1
  29. package/es/materials/sxp/template/CommodityDiroNew/index.d.ts +1 -0
  30. package/es/materials/sxp/template/CommodityDiroNew/index.js +2 -2
  31. package/es/materials/sxp/template/CommodityDiroNew/material.js +4 -3
  32. package/es/materials/sxp/template/Link/material.js +2 -1
  33. package/es/materials/sxp/template/MultiCommodity/index.d.ts +1 -0
  34. package/es/materials/sxp/template/MultiCommodity/index.js +15 -4
  35. package/es/materials/sxp/template/MultiCommodity/material.js +2 -1
  36. package/es/materials/sxp/template/MultiCommodityDiro/index.d.ts +1 -0
  37. package/es/materials/sxp/template/MultiCommodityDiro/index.js +15 -4
  38. package/es/materials/sxp/template/MultiCommodityDiro/material.js +2 -1
  39. package/es/materials/sxp/template/MultiCommodityDiroNew/index.d.ts +1 -0
  40. package/es/materials/sxp/template/MultiCommodityDiroNew/index.js +15 -4
  41. package/es/materials/sxp/template/MultiCommodityDiroNew/material.js +2 -1
  42. package/es/materials/sxp/template/components/EventProvider.d.ts +1 -0
  43. package/es/materials/sxp/template/components/EventProvider.js +15 -3
  44. package/es/materials/sxp/template/components/Scroll.d.ts +1 -0
  45. package/es/materials/sxp/template/components/Scroll.js +2 -2
  46. package/lib/core/components/SxpPageRender/Popup/index.js +5 -3
  47. package/lib/core/components/SxpPageRender/RenderCard.js +6 -3
  48. package/lib/core/components/SxpPageRender/index.js +6 -5
  49. package/lib/core/context/EditorContext.js +3 -1
  50. package/lib/materials/sxp/popup/CommodityDetailDiroNew/index.js +2 -2
  51. package/lib/materials/sxp/popup/CommodityDetailDiroNew/material.js +1 -1
  52. package/lib/materials/sxp/template/Appoint/index.d.ts +1 -0
  53. package/lib/materials/sxp/template/Appoint/index.js +3 -3
  54. package/lib/materials/sxp/template/Appoint/material.js +2 -1
  55. package/lib/materials/sxp/template/Commodity/index.d.ts +1 -0
  56. package/lib/materials/sxp/template/Commodity/index.js +2 -2
  57. package/lib/materials/sxp/template/Commodity/material.js +2 -1
  58. package/lib/materials/sxp/template/CommodityDiro/index.d.ts +1 -0
  59. package/lib/materials/sxp/template/CommodityDiro/index.js +2 -2
  60. package/lib/materials/sxp/template/CommodityDiro/material.js +2 -1
  61. package/lib/materials/sxp/template/CommodityDiroNew/index.d.ts +1 -0
  62. package/lib/materials/sxp/template/CommodityDiroNew/index.js +2 -2
  63. package/lib/materials/sxp/template/CommodityDiroNew/material.js +4 -3
  64. package/lib/materials/sxp/template/Link/material.js +2 -1
  65. package/lib/materials/sxp/template/MultiCommodity/index.d.ts +1 -0
  66. package/lib/materials/sxp/template/MultiCommodity/index.js +15 -4
  67. package/lib/materials/sxp/template/MultiCommodity/material.js +2 -1
  68. package/lib/materials/sxp/template/MultiCommodityDiro/index.d.ts +1 -0
  69. package/lib/materials/sxp/template/MultiCommodityDiro/index.js +15 -4
  70. package/lib/materials/sxp/template/MultiCommodityDiro/material.js +2 -1
  71. package/lib/materials/sxp/template/MultiCommodityDiroNew/index.d.ts +1 -0
  72. package/lib/materials/sxp/template/MultiCommodityDiroNew/index.js +15 -4
  73. package/lib/materials/sxp/template/MultiCommodityDiroNew/material.js +2 -1
  74. package/lib/materials/sxp/template/components/EventProvider.d.ts +1 -0
  75. package/lib/materials/sxp/template/components/EventProvider.js +15 -3
  76. package/lib/materials/sxp/template/components/Scroll.d.ts +1 -0
  77. package/lib/materials/sxp/template/components/Scroll.js +2 -2
  78. package/package.json +1 -1
package/dist/pb-ui.js CHANGED
@@ -770,7 +770,6 @@
770
770
  });
771
771
  typeof window !== 'undefined' &&
772
772
  (window.sxpPopup = (type, aniType) => {
773
- setPopup(type);
774
773
  if (aniType && (aniType === null || aniType === void 0 ? void 0 : aniType.name) !== 'none') {
775
774
  setPopupAni(Object.assign(Object.assign({}, popupAni), aniType));
776
775
  }
@@ -780,6 +779,9 @@
780
779
  duration: 0
781
780
  });
782
781
  }
782
+ setTimeout(() => {
783
+ setPopup(type);
784
+ });
783
785
  });
784
786
  typeof window !== 'undefined' &&
785
787
  (window.getJointUtmLink = (url) => {
@@ -8172,7 +8174,7 @@
8172
8174
  * @Author: binruan@chatlabs.com
8173
8175
  * @Date: 2023-11-02 18:34:34
8174
8176
  * @LastEditors: binruan@chatlabs.com
8175
- * @LastEditTime: 2024-04-02 10:33:15
8177
+ * @LastEditTime: 2024-04-10 11:11:50
8176
8178
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Modal\index.tsx
8177
8179
  *
8178
8180
  */
@@ -8829,8 +8831,8 @@ Made in Italy` })));
8829
8831
  }), src: (_j = sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _j !== void 0 ? _j : bottom_image, alt: '' }))),
8830
8832
  React.createElement("div", { className: 'pb-commondityDiroNew-content' },
8831
8833
  React.createElement("div", { className: 'pb-commondityDiroNew-content-top' },
8832
- React.createElement("div", null,
8833
- React.createElement("div", { className: 'pb-commondityDiroNew-content-top-title', style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.title }, (_k = product === null || product === void 0 ? void 0 : product.title) !== null && _k !== void 0 ? _k : 'Large Dior Toujours Bag'),
8834
+ React.createElement("div", { className: 'pb-commondityDiroNew-content-top-left' },
8835
+ React.createElement("div", { className: 'pb-commondityDiroNew-content-top-left-title', style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.title }, (_k = product === null || product === void 0 ? void 0 : product.title) !== null && _k !== void 0 ? _k : 'Large Dior Toujours Bag'),
8834
8836
  React.createElement("div", { className: 'pb-commondityDiroNew-content-collection', hidden: !!product && (!(product === null || product === void 0 ? void 0 : product.collection) || (product === null || product === void 0 ? void 0 : product.collection) === ''), style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.collection }, (product === null || product === void 0 ? void 0 : product.collection) || 'Black Macrocannage Calfskin')),
8835
8837
  React.createElement("div", { className: 'pb-commondityDiroNew-content-top-right' },
8836
8838
  React.createElement("div", { className: 'pb-commondityDiroNew-content-top-right-price', hidden: !!product && !(product === null || product === void 0 ? void 0 : product.price), style: commodityStyles === null || commodityStyles === void 0 ? void 0 : commodityStyles.price }, priceText),
@@ -8845,7 +8847,7 @@ Made in Italy` })));
8845
8847
  * @Author: binruan@chatlabs.com
8846
8848
  * @Date: 2024-03-20 10:27:31
8847
8849
  * @LastEditors: binruan@chatlabs.com
8848
- * @LastEditTime: 2024-04-02 15:12:53
8850
+ * @LastEditTime: 2024-04-09 16:25:44
8849
8851
  * @FilePath: \pb-sxp-ui\src\materials\sxp\popup\CommodityDetailDiroNew\material.tsx
8850
8852
  *
8851
8853
  */
@@ -8867,7 +8869,7 @@ Made in Italy` })));
8867
8869
  price: {
8868
8870
  color: '#000',
8869
8871
  fontWeight: 'bold',
8870
- fontSize: 18
8872
+ fontSize: 13
8871
8873
  },
8872
8874
  title: {
8873
8875
  color: '#000',
@@ -8911,7 +8913,7 @@ Made in Italy` })));
8911
8913
  * @Author: binruan@chatlabs.com
8912
8914
  * @Date: 2024-03-26 16:50:25
8913
8915
  * @LastEditors: binruan@chatlabs.com
8914
- * @LastEditTime: 2024-04-03 15:51:15
8916
+ * @LastEditTime: 2024-04-09 21:40:18
8915
8917
  * @FilePath: \pb-sxp-ui\src\materials\sxp\template\components\settingRender.tsx
8916
8918
  *
8917
8919
  */
@@ -9171,11 +9173,12 @@ Made in Italy` })));
9171
9173
  }
9172
9174
 
9173
9175
  const EventProvider = (_a) => {
9174
- var { rec, children, className, onClick, style } = _a; __rest(_a, ["rec", "children", "className", "onClick", "style"]);
9176
+ var { rec, children, className, onClick, style, isExternalLink = false } = _a; __rest(_a, ["rec", "children", "className", "onClick", "style", "isExternalLink"]);
9175
9177
  const ref = React.useRef(null);
9176
9178
  const isOnScreen = useOnScreen(ref);
9177
9179
  const { popupAni } = useEditor();
9178
9180
  const { setPopupDetailData, ctaEvent } = useSxpDataSource();
9181
+ const { jumpToWeb } = useEventReport();
9179
9182
  React.useEffect(() => {
9180
9183
  var _a, _b;
9181
9184
  if (isOnScreen && (ref === null || ref === void 0 ? void 0 : ref.current)) {
@@ -9187,14 +9190,24 @@ Made in Italy` })));
9187
9190
  }
9188
9191
  }, [isOnScreen, ref, rec, ctaEvent]);
9189
9192
  const handleClick = lodash.throttle(() => {
9190
- var _a, _b;
9193
+ var _a, _b, _c, _d, _e, _f, _g, _h;
9191
9194
  const item = (_b = (_a = rec === null || rec === void 0 ? void 0 : rec.video) === null || _a === void 0 ? void 0 : _a.bindProduct) !== null && _b !== void 0 ? _b : rec === null || rec === void 0 ? void 0 : rec.video;
9192
9195
  ctaEvent === null || ctaEvent === void 0 ? void 0 : ctaEvent({
9193
9196
  eventSubject: 'clickCta',
9194
9197
  eventDescription: 'User clicked the CTA'
9195
9198
  }, rec, item);
9196
9199
  setPopupDetailData === null || setPopupDetailData === void 0 ? void 0 : setPopupDetailData(rec);
9197
- onClick === null || onClick === void 0 ? void 0 : onClick();
9200
+ if (isExternalLink) {
9201
+ if ((_d = (_c = rec === null || rec === void 0 ? void 0 : rec.video) === null || _c === void 0 ? void 0 : _c.bindCta) === null || _d === void 0 ? void 0 : _d.link) {
9202
+ const cta = (_e = rec === null || rec === void 0 ? void 0 : rec.video) === null || _e === void 0 ? void 0 : _e.bindCta;
9203
+ const product = (_f = rec === null || rec === void 0 ? void 0 : rec.video) === null || _f === void 0 ? void 0 : _f.bindProduct;
9204
+ jumpToWeb(rec, product, cta);
9205
+ window.location.href = (_h = (_g = rec === null || rec === void 0 ? void 0 : rec.video) === null || _g === void 0 ? void 0 : _g.bindCta) === null || _h === void 0 ? void 0 : _h.link;
9206
+ }
9207
+ }
9208
+ else {
9209
+ onClick === null || onClick === void 0 ? void 0 : onClick();
9210
+ }
9198
9211
  }, popupAni === null || popupAni === void 0 ? void 0 : popupAni.duration);
9199
9212
  return (React.createElement("div", { ref: ref, className: className, style: style, onClick: handleClick }, children));
9200
9213
  };
@@ -9204,11 +9217,11 @@ Made in Italy` })));
9204
9217
 
9205
9218
  const Commodity$1 = (_a) => {
9206
9219
  var _b, _c, _d, _e, _f, _g, _h;
9207
- var { content, style, bgImg, recData, bottom_image, ctaTempStyles } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles"]);
9220
+ var { content, style, bgImg, recData, bottom_image, ctaTempStyles, isExternalLink } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles", "isExternalLink"]);
9208
9221
  const { sxpParameter } = useSxpDataSource();
9209
9222
  const product = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.bindProduct;
9210
9223
  const src = (_e = (_d = (_c = product === null || product === void 0 ? void 0 : product.homePage) === null || _c === void 0 ? void 0 : _c[0]) !== null && _d !== void 0 ? _d : sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _e !== void 0 ? _e : bottom_image;
9211
- return (React.createElement(EventProvider$1, Object.assign({ rec: recData, className: css.css(Object.assign({}, style)), style: { display: 'flex' } }, props),
9224
+ return (React.createElement(EventProvider$1, Object.assign({ isExternalLink: isExternalLink, rec: recData, className: css.css(Object.assign({}, style)), style: { display: 'flex' } }, props),
9212
9225
  React.createElement("div", { className: css.css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
9213
9226
  React.createElement("img", { className: css.css({ width: '100%', objectFit: 'cover', height: '100%' }), src: src, hidden: !src, alt: '' })),
9214
9227
  React.createElement("div", { className: css.css({
@@ -9271,7 +9284,8 @@ Made in Italy` })));
9271
9284
  width: 236,
9272
9285
  height: 74,
9273
9286
  borderRadius: 3,
9274
- backgroundColor: 'rgba(0,0,0,.3)'
9287
+ backgroundColor: 'rgba(0,0,0,.3)',
9288
+ marginBottom: 8
9275
9289
  }
9276
9290
  },
9277
9291
  w: 100,
@@ -9293,12 +9307,12 @@ Made in Italy` })));
9293
9307
 
9294
9308
  const Appoint$1 = (_a) => {
9295
9309
  var _b, _c, _d, _e;
9296
- var { content, style, bgImg, recData, bottom_image, ctaTempStyles } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles"]);
9310
+ var { content, style, bgImg, recData, bottom_image, ctaTempStyles, isExternalLink } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles", "isExternalLink"]);
9297
9311
  const { sxpParameter } = useSxpDataSource();
9298
9312
  const cta = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.bindCta;
9299
- return (React.createElement(EventProvider$1, Object.assign({ rec: recData, className: css.css(Object.assign({ alignItems: 'center' }, style)), style: { display: 'flex' } }, props),
9313
+ return (React.createElement(EventProvider$1, Object.assign({ isExternalLink: isExternalLink, rec: recData, className: css.css(Object.assign({ alignItems: 'center' }, style)), style: { display: 'flex' } }, props),
9300
9314
  React.createElement("div", { className: css.css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
9301
- React.createElement("img", { className: css.css({ width: '100%', objectFit: 'cover', height: '100%' }), src: (_d = (_c = cta === null || cta === void 0 ? void 0 : cta.icon) !== null && _c !== void 0 ? _c : sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _d !== void 0 ? _d : bottom_image, alt: '' })),
9315
+ React.createElement("img", { className: css.css({ width: '100%', objectFit: 'cover', height: '100%', display: 'block' }), src: (_d = (_c = cta === null || cta === void 0 ? void 0 : cta.icon) !== null && _c !== void 0 ? _c : sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _d !== void 0 ? _d : bottom_image, alt: '' })),
9302
9316
  React.createElement("div", { className: css.css(Object.assign({ overflow: 'hidden', textOverflow: 'ellipsis' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)) }, (_e = cta === null || cta === void 0 ? void 0 : cta.enTitle) !== null && _e !== void 0 ? _e : 'Product Name')));
9303
9317
  };
9304
9318
  var AppointComponent = React.memo(Appoint$1);
@@ -9307,7 +9321,7 @@ Made in Italy` })));
9307
9321
  * @Author: binruan@chatlabs.com
9308
9322
  * @Date: 2023-07-28 18:29:57
9309
9323
  * @LastEditors: binruan@chatlabs.com
9310
- * @LastEditTime: 2024-03-29 17:03:49
9324
+ * @LastEditTime: 2024-04-09 21:42:21
9311
9325
  * @FilePath: \pb-sxp-ui\src\materials\sxp\template\Appoint\material.tsx
9312
9326
  *
9313
9327
  */
@@ -9344,7 +9358,8 @@ Made in Italy` })));
9344
9358
  width: 236,
9345
9359
  height: 44,
9346
9360
  borderRadius: 3,
9347
- backgroundColor: 'rgba(0,0,0,.3)'
9361
+ backgroundColor: 'rgba(0,0,0,.3)',
9362
+ marginBottom: 8
9348
9363
  }
9349
9364
  },
9350
9365
  w: 100,
@@ -9420,7 +9435,8 @@ Made in Italy` })));
9420
9435
  width: 236,
9421
9436
  height: 74,
9422
9437
  borderRadius: 3,
9423
- backgroundColor: 'rgba(0,0,0,.3)'
9438
+ backgroundColor: 'rgba(0,0,0,.3)',
9439
+ marginBottom: 8
9424
9440
  }
9425
9441
  },
9426
9442
  w: 100,
@@ -9444,11 +9460,11 @@ Made in Italy` })));
9444
9460
 
9445
9461
  const CommodityDiro$1 = (_a) => {
9446
9462
  var _b, _c, _d, _e, _f, _g, _h;
9447
- var { content, style, bgImg, recData, bottom_image, ctaTempStyles } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles"]);
9463
+ var { content, style, bgImg, recData, bottom_image, ctaTempStyles, isExternalLink } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles", "isExternalLink"]);
9448
9464
  const { sxpParameter } = useSxpDataSource();
9449
9465
  const product = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.bindProduct;
9450
9466
  const src = (_e = (_d = (_c = product === null || product === void 0 ? void 0 : product.homePage) === null || _c === void 0 ? void 0 : _c[0]) !== null && _d !== void 0 ? _d : sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _e !== void 0 ? _e : bottom_image;
9451
- return (React.createElement(EventProvider$1, Object.assign({ rec: recData, className: css.css(Object.assign({}, style)), style: { display: 'flex' } }, props),
9467
+ return (React.createElement(EventProvider$1, Object.assign({ isExternalLink: isExternalLink, rec: recData, className: css.css(Object.assign({}, style)), style: { display: 'flex' } }, props),
9452
9468
  React.createElement("div", { className: css.css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
9453
9469
  React.createElement("img", { className: css.css({ width: '100%', objectFit: 'cover', height: '100%' }), src: src, hidden: !src, alt: '' })),
9454
9470
  React.createElement("div", { className: css.css({
@@ -9511,7 +9527,8 @@ Made in Italy` })));
9511
9527
  width: 236,
9512
9528
  height: 74,
9513
9529
  borderRadius: 3,
9514
- backgroundColor: '#fff'
9530
+ backgroundColor: '#fff',
9531
+ marginBottom: 8
9515
9532
  }
9516
9533
  },
9517
9534
  w: 100,
@@ -9535,11 +9552,11 @@ Made in Italy` })));
9535
9552
 
9536
9553
  const CommodityDiroNew$1 = (_a) => {
9537
9554
  var _b, _c, _d, _e, _f, _g, _h;
9538
- var { content, style, bgImg, recData, bottom_image, ctaTempStyles } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles"]);
9555
+ var { content, style, bgImg, recData, bottom_image, ctaTempStyles, isExternalLink } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles", "isExternalLink"]);
9539
9556
  const { sxpParameter } = useSxpDataSource();
9540
9557
  const product = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.bindProduct;
9541
9558
  const src = (_e = (_d = (_c = product === null || product === void 0 ? void 0 : product.homePage) === null || _c === void 0 ? void 0 : _c[0]) !== null && _d !== void 0 ? _d : sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _e !== void 0 ? _e : bottom_image;
9542
- return (React.createElement(EventProvider$1, Object.assign({ rec: recData, className: css.css(Object.assign({}, style)), style: { display: 'flex' } }, props),
9559
+ return (React.createElement(EventProvider$1, Object.assign({ isExternalLink: isExternalLink, rec: recData, className: css.css(Object.assign({}, style)), style: { display: 'flex' } }, props),
9543
9560
  React.createElement("div", { className: css.css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
9544
9561
  React.createElement("img", { className: css.css({ width: '100%', objectFit: 'cover', height: '100%' }), src: src, hidden: !src, alt: '' })),
9545
9562
  React.createElement("div", { className: css.css({
@@ -9559,7 +9576,7 @@ Made in Italy` })));
9559
9576
  * @Author: binruan@chatlabs.com
9560
9577
  * @Date: 2023-07-28 18:29:57
9561
9578
  * @LastEditors: binruan@chatlabs.com
9562
- * @LastEditTime: 2024-03-29 11:56:56
9579
+ * @LastEditTime: 2024-04-09 11:54:27
9563
9580
  * @FilePath: \pb-sxp-ui\src\materials\sxp\template\CommodityDiroNew\material.tsx
9564
9581
  *
9565
9582
  */
@@ -9583,13 +9600,13 @@ Made in Italy` })));
9583
9600
  marginRight: 16
9584
9601
  },
9585
9602
  title: {
9586
- fontSize: 12,
9603
+ fontSize: 13,
9587
9604
  color: '#000',
9588
9605
  textAlign: 'left'
9589
9606
  },
9590
9607
  ctaTitle: {
9591
9608
  textDecoration: 'underline',
9592
- fontSize: 12,
9609
+ fontSize: 14,
9593
9610
  fontWeight: 'bold',
9594
9611
  color: '#000',
9595
9612
  textAlign: 'left',
@@ -9603,7 +9620,8 @@ Made in Italy` })));
9603
9620
  width: 260,
9604
9621
  height: 86,
9605
9622
  padding: 4,
9606
- backgroundColor: 'rgba(255,255,255,0.75)'
9623
+ backgroundColor: 'rgba(255,255,255,0.75)',
9624
+ marginBottom: 8
9607
9625
  }
9608
9626
  },
9609
9627
  w: 100,
@@ -9623,8 +9641,8 @@ Made in Italy` })));
9623
9641
  }
9624
9642
  ];
9625
9643
 
9626
- const Scroll = ({ children }) => {
9627
- return (React.createElement(Swiper, { direction: 'horizontal', slidesPerView: 'auto', freeMode: true, mousewheel: true, modules: [freeMode, Scrollbar, Mousewheel], style: { paddingRight: '20px' } }, children));
9644
+ const Scroll = ({ children, isPadding = true }) => {
9645
+ return (React.createElement(Swiper, { direction: 'horizontal', slidesPerView: 'auto', freeMode: true, mousewheel: true, modules: [freeMode, Scrollbar, Mousewheel], style: { padding: isPadding ? '0 12px 0 20px' : 0 } }, children));
9628
9646
  };
9629
9647
  var Scroll$1 = React.memo(Scroll);
9630
9648
 
@@ -9656,21 +9674,31 @@ Made in Italy` })));
9656
9674
 
9657
9675
  const MultiCommodityDiro$1 = (_a) => {
9658
9676
  var _b, _c;
9659
- var { content, style, bgImg, recData, onClick, bottom_image, ctaTempStyles } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "onClick", "bottom_image", "ctaTempStyles"]);
9677
+ var { content, style, bgImg, recData, onClick, bottom_image, ctaTempStyles, isExternalLink } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "onClick", "bottom_image", "ctaTempStyles", "isExternalLink"]);
9660
9678
  const { ctaEvent, setPopupDetailData, sxpParameter } = useSxpDataSource();
9661
9679
  const { popupAni } = useEditor();
9680
+ const { jumpToWeb } = useEventReport();
9662
9681
  const [products, setProducts] = React.useState((_c = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.bindProducts) !== null && _c !== void 0 ? _c : [1, 2]);
9663
9682
  const handleClick = lodash.throttle((item) => {
9683
+ var _a;
9664
9684
  ctaEvent === null || ctaEvent === void 0 ? void 0 : ctaEvent({
9665
9685
  eventSubject: 'clickCta',
9666
9686
  eventDescription: 'User clicked the CTA'
9667
9687
  }, recData, item);
9668
9688
  setPopupDetailData === null || setPopupDetailData === void 0 ? void 0 : setPopupDetailData(Object.assign(Object.assign({}, recData), { video: Object.assign(Object.assign({}, recData === null || recData === void 0 ? void 0 : recData.video), { bindProduct: item }) }));
9669
- onClick === null || onClick === void 0 ? void 0 : onClick();
9689
+ if (isExternalLink) {
9690
+ if ((_a = item === null || item === void 0 ? void 0 : item.bindCta) === null || _a === void 0 ? void 0 : _a.link) {
9691
+ jumpToWeb(recData, item, item.bindCta);
9692
+ window.location.href = item.bindCta.link;
9693
+ }
9694
+ }
9695
+ else {
9696
+ onClick === null || onClick === void 0 ? void 0 : onClick();
9697
+ }
9670
9698
  }, popupAni === null || popupAni === void 0 ? void 0 : popupAni.duration);
9671
- return (React.createElement(Scroll$1, null, products === null || products === void 0 ? void 0 : products.map((item) => {
9699
+ return (React.createElement(Scroll$1, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item) => {
9672
9700
  var _a, _b, _c, _d, _e, _f;
9673
- return (React.createElement(SwiperSlide, Object.assign({ hidden: recData && !(item === null || item === void 0 ? void 0 : item.bindCta), key: item === null || item === void 0 ? void 0 : item.itemId, className: css.css(Object.assign({ flexShrink: 0 }, style)), style: { display: 'flex' } }, props, { onClick: () => handleClick(item) }),
9701
+ return (React.createElement(SwiperSlide, Object.assign({ hidden: recData && !(item === null || item === void 0 ? void 0 : item.bindCta), key: item === null || item === void 0 ? void 0 : item.itemId, className: css.css(Object.assign(Object.assign({}, style), { display: 'flex', flexShrink: 0, marginLeft: 0, marginRight: '8px' })) }, props, { onClick: () => handleClick(item) }),
9674
9702
  React.createElement("div", { className: css.css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
9675
9703
  React.createElement(Img$1, { src: (_c = (_b = (_a = item === null || item === void 0 ? void 0 : item.homePage) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _c !== void 0 ? _c : bottom_image, rec: recData, item: item })),
9676
9704
  React.createElement("div", { className: css.css({
@@ -9734,7 +9762,8 @@ Made in Italy` })));
9734
9762
  width: 236,
9735
9763
  height: 74,
9736
9764
  borderRadius: 3,
9737
- backgroundColor: '#fff'
9765
+ backgroundColor: '#fff',
9766
+ marginBottom: 8
9738
9767
  }
9739
9768
  },
9740
9769
  w: 100,
@@ -9758,22 +9787,32 @@ Made in Italy` })));
9758
9787
 
9759
9788
  const MultiCommodity$1 = (_a) => {
9760
9789
  var _b, _c;
9761
- var { content, style, bgImg, recData, onClick, bottom_image, ctaTempStyles } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "onClick", "bottom_image", "ctaTempStyles"]);
9790
+ var { content, style, bgImg, recData, onClick, bottom_image, ctaTempStyles, isExternalLink } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "onClick", "bottom_image", "ctaTempStyles", "isExternalLink"]);
9762
9791
  const { sxpParameter } = useSxpDataSource();
9763
9792
  const { ctaEvent, setPopupDetailData } = useSxpDataSource();
9764
9793
  const { popupAni } = useEditor();
9765
9794
  const [products, setProducts] = React.useState((_c = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.bindProducts) !== null && _c !== void 0 ? _c : [1, 2]);
9795
+ const { jumpToWeb } = useEventReport();
9766
9796
  const handleClick = lodash.throttle((item) => {
9797
+ var _a;
9767
9798
  ctaEvent === null || ctaEvent === void 0 ? void 0 : ctaEvent({
9768
9799
  eventSubject: 'clickCta',
9769
9800
  eventDescription: 'User clicked the CTA'
9770
9801
  }, recData, item);
9771
9802
  setPopupDetailData === null || setPopupDetailData === void 0 ? void 0 : setPopupDetailData(Object.assign(Object.assign({}, recData), { video: Object.assign(Object.assign({}, recData === null || recData === void 0 ? void 0 : recData.video), { bindProduct: item }) }));
9772
- onClick === null || onClick === void 0 ? void 0 : onClick();
9803
+ if (isExternalLink) {
9804
+ if ((_a = item === null || item === void 0 ? void 0 : item.bindCta) === null || _a === void 0 ? void 0 : _a.link) {
9805
+ jumpToWeb(recData, item, item.bindCta);
9806
+ window.location.href = item.bindCta.link;
9807
+ }
9808
+ }
9809
+ else {
9810
+ onClick === null || onClick === void 0 ? void 0 : onClick();
9811
+ }
9773
9812
  }, popupAni === null || popupAni === void 0 ? void 0 : popupAni.duration);
9774
- return (React.createElement(Scroll$1, null, products === null || products === void 0 ? void 0 : products.map((item) => {
9813
+ return (React.createElement(Scroll$1, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item) => {
9775
9814
  var _a, _b, _c, _d, _e, _f;
9776
- return (React.createElement(SwiperSlide, Object.assign({ hidden: recData && !(item === null || item === void 0 ? void 0 : item.bindCta), key: item.itemId, className: css.css(Object.assign({ flexShrink: 0 }, style)), style: { display: 'flex' } }, props, { onClick: () => handleClick(item) }),
9815
+ return (React.createElement(SwiperSlide, Object.assign({ hidden: recData && !(item === null || item === void 0 ? void 0 : item.bindCta), key: item.itemId, className: css.css(Object.assign(Object.assign({}, style), { display: 'flex', flexShrink: 0, marginLeft: 0, marginRight: '8px' })) }, props, { onClick: () => handleClick(item) }),
9777
9816
  React.createElement("div", { className: css.css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
9778
9817
  React.createElement(Img$1, { src: (_c = (_b = (_a = item === null || item === void 0 ? void 0 : item.homePage) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _c !== void 0 ? _c : bottom_image, rec: recData, item: item })),
9779
9818
  React.createElement("div", { className: css.css({
@@ -9837,7 +9876,8 @@ Made in Italy` })));
9837
9876
  width: 236,
9838
9877
  height: 74,
9839
9878
  borderRadius: 3,
9840
- backgroundColor: 'rgba(0,0,0,.3)'
9879
+ backgroundColor: 'rgba(0,0,0,.3)',
9880
+ marginBottom: 8
9841
9881
  }
9842
9882
  },
9843
9883
  w: 100,
@@ -9861,21 +9901,31 @@ Made in Italy` })));
9861
9901
 
9862
9902
  const MultiCommodityDiroNew$1 = (_a) => {
9863
9903
  var _b, _c;
9864
- var { content, style, bgImg, recData, onClick, bottom_image, ctaTempStyles } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "onClick", "bottom_image", "ctaTempStyles"]);
9904
+ var { content, style, bgImg, recData, onClick, bottom_image, ctaTempStyles, isExternalLink } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "onClick", "bottom_image", "ctaTempStyles", "isExternalLink"]);
9865
9905
  const { ctaEvent, setPopupDetailData, sxpParameter } = useSxpDataSource();
9866
9906
  const { popupAni } = useEditor();
9907
+ const { jumpToWeb } = useEventReport();
9867
9908
  const [products, setProducts] = React.useState((_c = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.bindProducts) !== null && _c !== void 0 ? _c : [1, 2]);
9868
9909
  const handleClick = lodash.throttle((item) => {
9910
+ var _a;
9869
9911
  ctaEvent === null || ctaEvent === void 0 ? void 0 : ctaEvent({
9870
9912
  eventSubject: 'clickCta',
9871
9913
  eventDescription: 'User clicked the CTA'
9872
9914
  }, recData, item);
9873
9915
  setPopupDetailData === null || setPopupDetailData === void 0 ? void 0 : setPopupDetailData(Object.assign(Object.assign({}, recData), { video: Object.assign(Object.assign({}, recData === null || recData === void 0 ? void 0 : recData.video), { bindProduct: item }) }));
9874
- onClick === null || onClick === void 0 ? void 0 : onClick();
9916
+ if (isExternalLink) {
9917
+ if ((_a = item === null || item === void 0 ? void 0 : item.bindCta) === null || _a === void 0 ? void 0 : _a.link) {
9918
+ jumpToWeb(recData, item, item.bindCta);
9919
+ window.location.href = item.bindCta.link;
9920
+ }
9921
+ }
9922
+ else {
9923
+ onClick === null || onClick === void 0 ? void 0 : onClick();
9924
+ }
9875
9925
  }, popupAni === null || popupAni === void 0 ? void 0 : popupAni.duration);
9876
- return (React.createElement(Scroll$1, null, products === null || products === void 0 ? void 0 : products.map((item) => {
9926
+ return (React.createElement(Scroll$1, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item) => {
9877
9927
  var _a, _b, _c, _d, _e, _f;
9878
- return (React.createElement(SwiperSlide, Object.assign({ hidden: recData && !(item === null || item === void 0 ? void 0 : item.bindCta), key: item === null || item === void 0 ? void 0 : item.itemId, className: css.css(Object.assign({ flexShrink: 0 }, style)), style: { display: 'flex' } }, props, { onClick: () => handleClick(item) }),
9928
+ return (React.createElement(SwiperSlide, Object.assign({ hidden: recData && !(item === null || item === void 0 ? void 0 : item.bindCta), key: item === null || item === void 0 ? void 0 : item.itemId, className: css.css(Object.assign(Object.assign({}, style), { display: 'flex', flexShrink: 0, marginLeft: 0, marginRight: '8px' })) }, props, { onClick: () => handleClick(item) }),
9879
9929
  React.createElement("div", { className: css.css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
9880
9930
  React.createElement(Img$1, { src: (_c = (_b = (_a = item === null || item === void 0 ? void 0 : item.homePage) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _c !== void 0 ? _c : bottom_image, rec: recData, item: item })),
9881
9931
  React.createElement("div", { className: css.css({
@@ -9897,7 +9947,7 @@ Made in Italy` })));
9897
9947
  * @Author: binruan@chatlabs.com
9898
9948
  * @Date: 2023-07-28 18:29:57
9899
9949
  * @LastEditors: binruan@chatlabs.com
9900
- * @LastEditTime: 2024-03-29 15:40:54
9950
+ * @LastEditTime: 2024-04-09 21:40:37
9901
9951
  * @FilePath: \pb-sxp-ui\src\materials\sxp\template\MultiCommodityDiroNew\material.tsx
9902
9952
  *
9903
9953
  */
@@ -9941,7 +9991,8 @@ Made in Italy` })));
9941
9991
  width: 260,
9942
9992
  height: 86,
9943
9993
  padding: 4,
9944
- backgroundColor: 'rgba(255,255,255,0.75)'
9994
+ backgroundColor: 'rgba(255,255,255,0.75)',
9995
+ marginBottom: 8
9945
9996
  }
9946
9997
  },
9947
9998
  w: 100,
@@ -12356,14 +12407,14 @@ Made in Italy` })));
12356
12407
  * @Author: binruan@chatlabs.com
12357
12408
  * @Date: 2023-12-26 16:11:34
12358
12409
  * @LastEditors: binruan@chatlabs.com
12359
- * @LastEditTime: 2024-03-04 14:25:27
12410
+ * @LastEditTime: 2024-04-10 16:49:34
12360
12411
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\RenderCard.tsx
12361
12412
  *
12362
12413
  */
12363
12414
  const RenderCard = ({ rec, index, tempMap, resolver }) => {
12364
12415
  const { schema } = useEditor();
12365
12416
  const renderComp = React.useMemo(() => {
12366
- 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;
12417
+ 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;
12367
12418
  if (!(rec === null || rec === void 0 ? void 0 : rec.video))
12368
12419
  return null;
12369
12420
  let cta = null;
@@ -12386,8 +12437,11 @@ Made in Italy` })));
12386
12437
  return null;
12387
12438
  }
12388
12439
  if (value && resolver) {
12389
- const Component = withBindDataSource(resolver[(_w = value === null || value === void 0 ? void 0 : value.item) === null || _w === void 0 ? void 0 : _w.type]);
12390
- return (React.createElement(Component, Object.assign({ style: Object.assign(Object.assign({}, (_x = value === null || value === void 0 ? void 0 : value.item) === null || _x === void 0 ? void 0 : _x.style), { zIndex: 50, marginLeft: '20px' }), textStyle: (_y = value === null || value === void 0 ? void 0 : value.item) === null || _y === void 0 ? void 0 : _y.textStyle, bindDatas: (_0 = (_z = value === null || value === void 0 ? void 0 : value.item) === null || _z === void 0 ? void 0 : _z.bindDatas) !== null && _0 !== void 0 ? _0 : [] }, (_1 = value === null || value === void 0 ? void 0 : value.item) === null || _1 === void 0 ? void 0 : _1.props, { event: ((_2 = value === null || value === void 0 ? void 0 : value.item) === null || _2 === void 0 ? void 0 : _2.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 })));
12440
+ const t = resolver[(_w = value === null || value === void 0 ? void 0 : value.item) === null || _w === void 0 ? void 0 : _w.type];
12441
+ const Component = withBindDataSource(t);
12442
+ const defaulSetting = (_x = t === null || t === void 0 ? void 0 : t.extend) === null || _x === void 0 ? void 0 : _x.defaulSetting;
12443
+ const isExternalLink = ((_0 = (_z = (_y = value === null || value === void 0 ? void 0 : value.item) === null || _y === void 0 ? void 0 : _y.event) === null || _z === void 0 ? void 0 : _z.onClick) === null || _0 === void 0 ? void 0 : _0.linkType) === 'externalLink';
12444
+ return (React.createElement(Component, Object.assign({ style: Object.assign(Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.style), (_1 = value === null || value === void 0 ? void 0 : value.item) === null || _1 === void 0 ? void 0 : _1.style), { zIndex: 50, marginLeft: '20px', boxSizing: 'border-box' }), textStyle: Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.textStyle), (_2 = value === null || value === void 0 ? void 0 : value.item) === null || _2 === void 0 ? void 0 : _2.textStyle), bindDatas: (_4 = (_3 = value === null || value === void 0 ? void 0 : value.item) === null || _3 === void 0 ? void 0 : _3.bindDatas) !== null && _4 !== void 0 ? _4 : [] }, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.props, (_5 = value === null || value === void 0 ? void 0 : value.item) === null || _5 === void 0 ? void 0 : _5.props, { event: ((_6 = value === null || value === void 0 ? void 0 : value.item) === null || _6 === void 0 ? void 0 : _6.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 })));
12391
12445
  }
12392
12446
  else {
12393
12447
  return null;
@@ -12413,7 +12467,7 @@ Made in Italy` })));
12413
12467
  * @Author: binruan@chatlabs.com
12414
12468
  * @Date: 2024-01-15 19:03:09
12415
12469
  * @LastEditors: binruan@chatlabs.com
12416
- * @LastEditTime: 2024-04-07 17:06:06
12470
+ * @LastEditTime: 2024-04-10 10:13:48
12417
12471
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
12418
12472
  *
12419
12473
  */
@@ -12580,9 +12634,11 @@ Made in Italy` })));
12580
12634
  }
12581
12635
  if (rec.product && Array.isArray(globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.productPost) && ((_c = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.productPost) === null || _c === void 0 ? void 0 : _c.length) > 0) {
12582
12636
  return (_d = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.productPost) === null || _d === void 0 ? void 0 : _d.map((value, index) => {
12583
- var _a, _b, _c, _d, _e, _f;
12584
- const Component = withBindDataSource(resolver[(_a = value === null || value === void 0 ? void 0 : value.item) === null || _a === void 0 ? void 0 : _a.type]);
12585
- return (React.createElement(Component, Object.assign({ key: index, textStyle: (_b = value === null || value === void 0 ? void 0 : value.item) === null || _b === void 0 ? void 0 : _b.textStyle, bindDatas: (_d = (_c = value === null || value === void 0 ? void 0 : value.item) === null || _c === void 0 ? void 0 : _c.bindDatas) !== null && _d !== void 0 ? _d : [] }, (_e = value === null || value === void 0 ? void 0 : value.item) === null || _e === void 0 ? void 0 : _e.props, { event: ((_f = value === null || value === void 0 ? void 0 : value.item) === null || _f === void 0 ? void 0 : _f.event) || {}, schema: schema, id: value === null || value === void 0 ? void 0 : value.id, viewTime: viewTime.current, rec: rec, isPost: true, tipText: tipText, style: { height: '100%', overflow: 'auto' } })));
12637
+ var _a, _b, _c, _d, _e, _f, _g, _h;
12638
+ const t = resolver[(_a = value === null || value === void 0 ? void 0 : value.item) === null || _a === void 0 ? void 0 : _a.type];
12639
+ const Component = withBindDataSource(t);
12640
+ const defaulSetting = (_b = t === null || t === void 0 ? void 0 : t.extend) === null || _b === void 0 ? void 0 : _b.defaulSetting;
12641
+ return (React.createElement(Component, Object.assign({ key: index, textStyle: Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.textStyle), (_c = value === null || value === void 0 ? void 0 : value.item) === null || _c === void 0 ? void 0 : _c.textStyle), bindDatas: (_e = (_d = value === null || value === void 0 ? void 0 : value.item) === null || _d === void 0 ? void 0 : _d.bindDatas) !== null && _e !== void 0 ? _e : [] }, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.props, (_f = value === null || value === void 0 ? void 0 : value.item) === null || _f === void 0 ? void 0 : _f.props, { event: ((_g = value === null || value === void 0 ? void 0 : value.item) === null || _g === void 0 ? void 0 : _g.event) || {}, schema: schema, id: value === null || value === void 0 ? void 0 : value.id, viewTime: viewTime.current, rec: rec, isPost: true, tipText: tipText, style: Object.assign(Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.style), (_h = value === null || value === void 0 ? void 0 : value.item) === null || _h === void 0 ? void 0 : _h.style), { height: '100%', overflow: 'auto' }) })));
12586
12642
  });
12587
12643
  }
12588
12644
  return null;
@@ -12596,8 +12652,7 @@ Made in Italy` })));
12596
12652
  React.createElement(Nudge, { nudge: nudge }),
12597
12653
  React.createElement("div", { className: 'clc-sxp-bottom-card' },
12598
12654
  React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver })),
12599
- React.createElement("div", { className: 'clc-sxp-bottom-text' },
12600
- React.createElement(ExpandableText$1, { isPost: true, foldText: tipText === null || tipText === void 0 ? void 0 : tipText.foldText, unfoldText: tipText === null || tipText === void 0 ? void 0 : tipText.unfoldText, text: (_c = (_b = rec.video) === null || _b === void 0 ? void 0 : _b.title) !== null && _c !== void 0 ? _c : '', style: descStyle })),
12655
+ React.createElement(ExpandableText$1, { className: 'clc-sxp-bottom-text', isPost: true, foldText: tipText === null || tipText === void 0 ? void 0 : tipText.foldText, unfoldText: tipText === null || tipText === void 0 ? void 0 : tipText.unfoldText, text: (_c = (_b = rec.video) === null || _b === void 0 ? void 0 : _b.title) !== null && _c !== void 0 ? _c : '', style: descStyle }),
12601
12656
  React.createElement(Hashtag$1, { index: activeIndex, tags: (_e = (_d = rec === null || rec === void 0 ? void 0 : rec.video) === null || _d === void 0 ? void 0 : _d.hashTags) !== null && _e !== void 0 ? _e : [], itemId: (_f = rec === null || rec === void 0 ? void 0 : rec.video) === null || _f === void 0 ? void 0 : _f.itemId, itemType: ((_g = rec.video) === null || _g === void 0 ? void 0 : _g.url) ? 'VIDEO' : null, rec: rec, hashTagStyle: hashTagStyle }))));
12602
12657
  }
12603
12658
  return null;
@@ -12791,7 +12846,7 @@ Made in Italy` })));
12791
12846
  * @Author: binruan@chatlabs.com
12792
12847
  * @Date: 2023-10-31 10:56:01
12793
12848
  * @LastEditors: binruan@chatlabs.com
12794
- * @LastEditTime: 2024-04-02 10:31:51
12849
+ * @LastEditTime: 2024-04-10 09:57:19
12795
12850
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Popup\index.tsx
12796
12851
  *
12797
12852
  */
@@ -12837,10 +12892,12 @@ Made in Italy` })));
12837
12892
  const renderPopupDetail = React.useMemo(() => {
12838
12893
  var _a, _b, _c;
12839
12894
  return (_c = (_b = (_a = schema === null || schema === void 0 ? void 0 : schema.sxpPageConf) === null || _a === void 0 ? void 0 : _a.globalConfig) === null || _b === void 0 ? void 0 : _b.popupList) === null || _c === void 0 ? void 0 : _c.map((value, index) => {
12840
- var _a, _b, _c, _d, _e, _f, _g;
12895
+ var _a, _b, _c, _d, _e, _f, _g, _h;
12841
12896
  if ((value === null || value === void 0 ? void 0 : value.id) === popup) {
12842
- const Component = withBindDataSource(resolver[(_a = value === null || value === void 0 ? void 0 : value.item) === null || _a === void 0 ? void 0 : _a.type]);
12843
- return (React.createElement(Component, Object.assign({ key: index, style: Object.assign(Object.assign({}, (_b = value === null || value === void 0 ? void 0 : value.item) === null || _b === void 0 ? void 0 : _b.style), { width: '100%', height: '80vh', overflow: 'auto' }), textStyle: (_c = value === null || value === void 0 ? void 0 : value.item) === null || _c === void 0 ? void 0 : _c.textStyle, bindDatas: (_e = (_d = value === null || value === void 0 ? void 0 : value.item) === null || _d === void 0 ? void 0 : _d.bindDatas) !== null && _e !== void 0 ? _e : [] }, (_f = value === null || value === void 0 ? void 0 : value.item) === null || _f === void 0 ? void 0 : _f.props, { event: ((_g = value === null || value === void 0 ? void 0 : value.item) === null || _g === void 0 ? void 0 : _g.event) || {}, schema: schema, id: value === null || value === void 0 ? void 0 : value.id })));
12897
+ const t = resolver[(_a = value === null || value === void 0 ? void 0 : value.item) === null || _a === void 0 ? void 0 : _a.type];
12898
+ const Component = withBindDataSource(t);
12899
+ const defaulSetting = (_b = t === null || t === void 0 ? void 0 : t.extend) === null || _b === void 0 ? void 0 : _b.defaulSetting;
12900
+ return (React.createElement(Component, Object.assign({ key: index, style: Object.assign(Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.style), (_c = value === null || value === void 0 ? void 0 : value.item) === null || _c === void 0 ? void 0 : _c.style), { width: '100%', height: '80vh', overflow: 'auto' }), textStyle: Object.assign(Object.assign({}, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.textStyle), (_d = value === null || value === void 0 ? void 0 : value.item) === null || _d === void 0 ? void 0 : _d.textStyle), bindDatas: (_f = (_e = value === null || value === void 0 ? void 0 : value.item) === null || _e === void 0 ? void 0 : _e.bindDatas) !== null && _f !== void 0 ? _f : [] }, defaulSetting === null || defaulSetting === void 0 ? void 0 : defaulSetting.props, (_g = value === null || value === void 0 ? void 0 : value.item) === null || _g === void 0 ? void 0 : _g.props, { event: ((_h = value === null || value === void 0 ? void 0 : value.item) === null || _h === void 0 ? void 0 : _h.event) || {}, schema: schema, id: value === null || value === void 0 ? void 0 : value.id })));
12844
12901
  }
12845
12902
  else {
12846
12903
  return React.createElement(React.Fragment, null);