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/index.cjs CHANGED
@@ -778,7 +778,6 @@ const EditorCore = React.forwardRef(({ children, resolver, isSsr, schema, enable
778
778
  });
779
779
  typeof window !== 'undefined' &&
780
780
  (window.sxpPopup = (type, aniType) => {
781
- setPopup(type);
782
781
  if (aniType && (aniType === null || aniType === void 0 ? void 0 : aniType.name) !== 'none') {
783
782
  setPopupAni(Object.assign(Object.assign({}, popupAni), aniType));
784
783
  }
@@ -788,6 +787,9 @@ const EditorCore = React.forwardRef(({ children, resolver, isSsr, schema, enable
788
787
  duration: 0
789
788
  });
790
789
  }
790
+ setTimeout(() => {
791
+ setPopup(type);
792
+ });
791
793
  });
792
794
  typeof window !== 'undefined' &&
793
795
  (window.getJointUtmLink = (url) => {
@@ -8180,7 +8182,7 @@ function useEventReport() {
8180
8182
  * @Author: binruan@chatlabs.com
8181
8183
  * @Date: 2023-11-02 18:34:34
8182
8184
  * @LastEditors: binruan@chatlabs.com
8183
- * @LastEditTime: 2024-04-02 10:33:15
8185
+ * @LastEditTime: 2024-04-10 11:11:50
8184
8186
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Modal\index.tsx
8185
8187
  *
8186
8188
  */
@@ -8837,8 +8839,8 @@ Made in Italy` })));
8837
8839
  }), src: (_j = sxpParameter === null || sxpParameter === void 0 ? void 0 : sxpParameter.bottom_image) !== null && _j !== void 0 ? _j : bottom_image, alt: '' }))),
8838
8840
  React.createElement("div", { className: 'pb-commondityDiroNew-content' },
8839
8841
  React.createElement("div", { className: 'pb-commondityDiroNew-content-top' },
8840
- React.createElement("div", null,
8841
- 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'),
8842
+ React.createElement("div", { className: 'pb-commondityDiroNew-content-top-left' },
8843
+ 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'),
8842
8844
  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')),
8843
8845
  React.createElement("div", { className: 'pb-commondityDiroNew-content-top-right' },
8844
8846
  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),
@@ -8853,7 +8855,7 @@ var CommodityDetailDiroNewComponent = React.memo(CommodityDetailDiroNew$1);
8853
8855
  * @Author: binruan@chatlabs.com
8854
8856
  * @Date: 2024-03-20 10:27:31
8855
8857
  * @LastEditors: binruan@chatlabs.com
8856
- * @LastEditTime: 2024-04-02 15:12:53
8858
+ * @LastEditTime: 2024-04-09 16:25:44
8857
8859
  * @FilePath: \pb-sxp-ui\src\materials\sxp\popup\CommodityDetailDiroNew\material.tsx
8858
8860
  *
8859
8861
  */
@@ -8875,7 +8877,7 @@ const CommodityDetailDiroNew = createMaterial(CommodityDetailDiroNewComponent, {
8875
8877
  price: {
8876
8878
  color: '#000',
8877
8879
  fontWeight: 'bold',
8878
- fontSize: 18
8880
+ fontSize: 13
8879
8881
  },
8880
8882
  title: {
8881
8883
  color: '#000',
@@ -8919,7 +8921,7 @@ const CommodityDetailDiroNew = createMaterial(CommodityDetailDiroNewComponent, {
8919
8921
  * @Author: binruan@chatlabs.com
8920
8922
  * @Date: 2024-03-26 16:50:25
8921
8923
  * @LastEditors: binruan@chatlabs.com
8922
- * @LastEditTime: 2024-04-03 15:51:15
8924
+ * @LastEditTime: 2024-04-09 21:40:18
8923
8925
  * @FilePath: \pb-sxp-ui\src\materials\sxp\template\components\settingRender.tsx
8924
8926
  *
8925
8927
  */
@@ -9179,11 +9181,12 @@ function useOnScreen(ref) {
9179
9181
  }
9180
9182
 
9181
9183
  const EventProvider = (_a) => {
9182
- var { rec, children, className, onClick, style } = _a; __rest(_a, ["rec", "children", "className", "onClick", "style"]);
9184
+ var { rec, children, className, onClick, style, isExternalLink = false } = _a; __rest(_a, ["rec", "children", "className", "onClick", "style", "isExternalLink"]);
9183
9185
  const ref = React.useRef(null);
9184
9186
  const isOnScreen = useOnScreen(ref);
9185
9187
  const { popupAni } = useEditor();
9186
9188
  const { setPopupDetailData, ctaEvent } = useSxpDataSource();
9189
+ const { jumpToWeb } = useEventReport();
9187
9190
  React.useEffect(() => {
9188
9191
  var _a, _b;
9189
9192
  if (isOnScreen && (ref === null || ref === void 0 ? void 0 : ref.current)) {
@@ -9195,14 +9198,24 @@ const EventProvider = (_a) => {
9195
9198
  }
9196
9199
  }, [isOnScreen, ref, rec, ctaEvent]);
9197
9200
  const handleClick = lodash.throttle(() => {
9198
- var _a, _b;
9201
+ var _a, _b, _c, _d, _e, _f, _g, _h;
9199
9202
  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;
9200
9203
  ctaEvent === null || ctaEvent === void 0 ? void 0 : ctaEvent({
9201
9204
  eventSubject: 'clickCta',
9202
9205
  eventDescription: 'User clicked the CTA'
9203
9206
  }, rec, item);
9204
9207
  setPopupDetailData === null || setPopupDetailData === void 0 ? void 0 : setPopupDetailData(rec);
9205
- onClick === null || onClick === void 0 ? void 0 : onClick();
9208
+ if (isExternalLink) {
9209
+ 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) {
9210
+ const cta = (_e = rec === null || rec === void 0 ? void 0 : rec.video) === null || _e === void 0 ? void 0 : _e.bindCta;
9211
+ const product = (_f = rec === null || rec === void 0 ? void 0 : rec.video) === null || _f === void 0 ? void 0 : _f.bindProduct;
9212
+ jumpToWeb(rec, product, cta);
9213
+ 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;
9214
+ }
9215
+ }
9216
+ else {
9217
+ onClick === null || onClick === void 0 ? void 0 : onClick();
9218
+ }
9206
9219
  }, popupAni === null || popupAni === void 0 ? void 0 : popupAni.duration);
9207
9220
  return (React.createElement("div", { ref: ref, className: className, style: style, onClick: handleClick }, children));
9208
9221
  };
@@ -9212,11 +9225,11 @@ var styles$6 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__3bKKx"};
9212
9225
 
9213
9226
  const Commodity$1 = (_a) => {
9214
9227
  var _b, _c, _d, _e, _f, _g, _h;
9215
- var { content, style, bgImg, recData, bottom_image, ctaTempStyles } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles"]);
9228
+ var { content, style, bgImg, recData, bottom_image, ctaTempStyles, isExternalLink } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles", "isExternalLink"]);
9216
9229
  const { sxpParameter } = useSxpDataSource();
9217
9230
  const product = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.bindProduct;
9218
9231
  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;
9219
- return (React.createElement(EventProvider$1, Object.assign({ rec: recData, className: css.css(Object.assign({}, style)), style: { display: 'flex' } }, props),
9232
+ return (React.createElement(EventProvider$1, Object.assign({ isExternalLink: isExternalLink, rec: recData, className: css.css(Object.assign({}, style)), style: { display: 'flex' } }, props),
9220
9233
  React.createElement("div", { className: css.css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
9221
9234
  React.createElement("img", { className: css.css({ width: '100%', objectFit: 'cover', height: '100%' }), src: src, hidden: !src, alt: '' })),
9222
9235
  React.createElement("div", { className: css.css({
@@ -9279,7 +9292,8 @@ const Commodity = createMaterial(CommodityComponent, {
9279
9292
  width: 236,
9280
9293
  height: 74,
9281
9294
  borderRadius: 3,
9282
- backgroundColor: 'rgba(0,0,0,.3)'
9295
+ backgroundColor: 'rgba(0,0,0,.3)',
9296
+ marginBottom: 8
9283
9297
  }
9284
9298
  },
9285
9299
  w: 100,
@@ -9301,12 +9315,12 @@ var interactionRender$5 = [
9301
9315
 
9302
9316
  const Appoint$1 = (_a) => {
9303
9317
  var _b, _c, _d, _e;
9304
- var { content, style, bgImg, recData, bottom_image, ctaTempStyles } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles"]);
9318
+ var { content, style, bgImg, recData, bottom_image, ctaTempStyles, isExternalLink } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles", "isExternalLink"]);
9305
9319
  const { sxpParameter } = useSxpDataSource();
9306
9320
  const cta = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.bindCta;
9307
- return (React.createElement(EventProvider$1, Object.assign({ rec: recData, className: css.css(Object.assign({ alignItems: 'center' }, style)), style: { display: 'flex' } }, props),
9321
+ return (React.createElement(EventProvider$1, Object.assign({ isExternalLink: isExternalLink, rec: recData, className: css.css(Object.assign({ alignItems: 'center' }, style)), style: { display: 'flex' } }, props),
9308
9322
  React.createElement("div", { className: css.css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
9309
- 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: '' })),
9323
+ 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: '' })),
9310
9324
  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')));
9311
9325
  };
9312
9326
  var AppointComponent = React.memo(Appoint$1);
@@ -9315,7 +9329,7 @@ var AppointComponent = React.memo(Appoint$1);
9315
9329
  * @Author: binruan@chatlabs.com
9316
9330
  * @Date: 2023-07-28 18:29:57
9317
9331
  * @LastEditors: binruan@chatlabs.com
9318
- * @LastEditTime: 2024-03-29 17:03:49
9332
+ * @LastEditTime: 2024-04-09 21:42:21
9319
9333
  * @FilePath: \pb-sxp-ui\src\materials\sxp\template\Appoint\material.tsx
9320
9334
  *
9321
9335
  */
@@ -9352,7 +9366,8 @@ const Appoint = createMaterial(AppointComponent, {
9352
9366
  width: 236,
9353
9367
  height: 44,
9354
9368
  borderRadius: 3,
9355
- backgroundColor: 'rgba(0,0,0,.3)'
9369
+ backgroundColor: 'rgba(0,0,0,.3)',
9370
+ marginBottom: 8
9356
9371
  }
9357
9372
  },
9358
9373
  w: 100,
@@ -9428,7 +9443,8 @@ const Link = createMaterial(LinkComponent, {
9428
9443
  width: 236,
9429
9444
  height: 74,
9430
9445
  borderRadius: 3,
9431
- backgroundColor: 'rgba(0,0,0,.3)'
9446
+ backgroundColor: 'rgba(0,0,0,.3)',
9447
+ marginBottom: 8
9432
9448
  }
9433
9449
  },
9434
9450
  w: 100,
@@ -9452,11 +9468,11 @@ var styles$4 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__yyHVb"};
9452
9468
 
9453
9469
  const CommodityDiro$1 = (_a) => {
9454
9470
  var _b, _c, _d, _e, _f, _g, _h;
9455
- var { content, style, bgImg, recData, bottom_image, ctaTempStyles } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles"]);
9471
+ var { content, style, bgImg, recData, bottom_image, ctaTempStyles, isExternalLink } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles", "isExternalLink"]);
9456
9472
  const { sxpParameter } = useSxpDataSource();
9457
9473
  const product = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.bindProduct;
9458
9474
  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;
9459
- return (React.createElement(EventProvider$1, Object.assign({ rec: recData, className: css.css(Object.assign({}, style)), style: { display: 'flex' } }, props),
9475
+ return (React.createElement(EventProvider$1, Object.assign({ isExternalLink: isExternalLink, rec: recData, className: css.css(Object.assign({}, style)), style: { display: 'flex' } }, props),
9460
9476
  React.createElement("div", { className: css.css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
9461
9477
  React.createElement("img", { className: css.css({ width: '100%', objectFit: 'cover', height: '100%' }), src: src, hidden: !src, alt: '' })),
9462
9478
  React.createElement("div", { className: css.css({
@@ -9519,7 +9535,8 @@ const CommodityDiro = createMaterial(CommodityDiroComponent, {
9519
9535
  width: 236,
9520
9536
  height: 74,
9521
9537
  borderRadius: 3,
9522
- backgroundColor: '#fff'
9538
+ backgroundColor: '#fff',
9539
+ marginBottom: 8
9523
9540
  }
9524
9541
  },
9525
9542
  w: 100,
@@ -9543,11 +9560,11 @@ var styles$3 = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__I-yCC"};
9543
9560
 
9544
9561
  const CommodityDiroNew$1 = (_a) => {
9545
9562
  var _b, _c, _d, _e, _f, _g, _h;
9546
- var { content, style, bgImg, recData, bottom_image, ctaTempStyles } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles"]);
9563
+ var { content, style, bgImg, recData, bottom_image, ctaTempStyles, isExternalLink } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles", "isExternalLink"]);
9547
9564
  const { sxpParameter } = useSxpDataSource();
9548
9565
  const product = (_b = recData === null || recData === void 0 ? void 0 : recData.video) === null || _b === void 0 ? void 0 : _b.bindProduct;
9549
9566
  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;
9550
- return (React.createElement(EventProvider$1, Object.assign({ rec: recData, className: css.css(Object.assign({}, style)), style: { display: 'flex' } }, props),
9567
+ return (React.createElement(EventProvider$1, Object.assign({ isExternalLink: isExternalLink, rec: recData, className: css.css(Object.assign({}, style)), style: { display: 'flex' } }, props),
9551
9568
  React.createElement("div", { className: css.css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
9552
9569
  React.createElement("img", { className: css.css({ width: '100%', objectFit: 'cover', height: '100%' }), src: src, hidden: !src, alt: '' })),
9553
9570
  React.createElement("div", { className: css.css({
@@ -9567,7 +9584,7 @@ var CommodityDiroNewComponent = React.memo(CommodityDiroNew$1);
9567
9584
  * @Author: binruan@chatlabs.com
9568
9585
  * @Date: 2023-07-28 18:29:57
9569
9586
  * @LastEditors: binruan@chatlabs.com
9570
- * @LastEditTime: 2024-03-29 11:56:56
9587
+ * @LastEditTime: 2024-04-09 11:54:27
9571
9588
  * @FilePath: \pb-sxp-ui\src\materials\sxp\template\CommodityDiroNew\material.tsx
9572
9589
  *
9573
9590
  */
@@ -9591,13 +9608,13 @@ const CommodityDiroNew = createMaterial(CommodityDiroNewComponent, {
9591
9608
  marginRight: 16
9592
9609
  },
9593
9610
  title: {
9594
- fontSize: 12,
9611
+ fontSize: 13,
9595
9612
  color: '#000',
9596
9613
  textAlign: 'left'
9597
9614
  },
9598
9615
  ctaTitle: {
9599
9616
  textDecoration: 'underline',
9600
- fontSize: 12,
9617
+ fontSize: 14,
9601
9618
  fontWeight: 'bold',
9602
9619
  color: '#000',
9603
9620
  textAlign: 'left',
@@ -9611,7 +9628,8 @@ const CommodityDiroNew = createMaterial(CommodityDiroNewComponent, {
9611
9628
  width: 260,
9612
9629
  height: 86,
9613
9630
  padding: 4,
9614
- backgroundColor: 'rgba(255,255,255,0.75)'
9631
+ backgroundColor: 'rgba(255,255,255,0.75)',
9632
+ marginBottom: 8
9615
9633
  }
9616
9634
  },
9617
9635
  w: 100,
@@ -9631,8 +9649,8 @@ var interactionRender$2 = [
9631
9649
  }
9632
9650
  ];
9633
9651
 
9634
- const Scroll = ({ children }) => {
9635
- return (React.createElement(Swiper, { direction: 'horizontal', slidesPerView: 'auto', freeMode: true, mousewheel: true, modules: [freeMode, Scrollbar, Mousewheel], style: { paddingRight: '20px' } }, children));
9652
+ const Scroll = ({ children, isPadding = true }) => {
9653
+ 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));
9636
9654
  };
9637
9655
  var Scroll$1 = React.memo(Scroll);
9638
9656
 
@@ -9664,21 +9682,31 @@ var styles$2 = {"two-line-ellipsis":"index-module_two-line-ellipsis__SFQwJ"};
9664
9682
 
9665
9683
  const MultiCommodityDiro$1 = (_a) => {
9666
9684
  var _b, _c;
9667
- var { content, style, bgImg, recData, onClick, bottom_image, ctaTempStyles } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "onClick", "bottom_image", "ctaTempStyles"]);
9685
+ var { content, style, bgImg, recData, onClick, bottom_image, ctaTempStyles, isExternalLink } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "onClick", "bottom_image", "ctaTempStyles", "isExternalLink"]);
9668
9686
  const { ctaEvent, setPopupDetailData, sxpParameter } = useSxpDataSource();
9669
9687
  const { popupAni } = useEditor();
9688
+ const { jumpToWeb } = useEventReport();
9670
9689
  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]);
9671
9690
  const handleClick = lodash.throttle((item) => {
9691
+ var _a;
9672
9692
  ctaEvent === null || ctaEvent === void 0 ? void 0 : ctaEvent({
9673
9693
  eventSubject: 'clickCta',
9674
9694
  eventDescription: 'User clicked the CTA'
9675
9695
  }, recData, item);
9676
9696
  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 }) }));
9677
- onClick === null || onClick === void 0 ? void 0 : onClick();
9697
+ if (isExternalLink) {
9698
+ if ((_a = item === null || item === void 0 ? void 0 : item.bindCta) === null || _a === void 0 ? void 0 : _a.link) {
9699
+ jumpToWeb(recData, item, item.bindCta);
9700
+ window.location.href = item.bindCta.link;
9701
+ }
9702
+ }
9703
+ else {
9704
+ onClick === null || onClick === void 0 ? void 0 : onClick();
9705
+ }
9678
9706
  }, popupAni === null || popupAni === void 0 ? void 0 : popupAni.duration);
9679
- return (React.createElement(Scroll$1, null, products === null || products === void 0 ? void 0 : products.map((item) => {
9707
+ return (React.createElement(Scroll$1, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item) => {
9680
9708
  var _a, _b, _c, _d, _e, _f;
9681
- 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) }),
9709
+ 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) }),
9682
9710
  React.createElement("div", { className: css.css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
9683
9711
  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 })),
9684
9712
  React.createElement("div", { className: css.css({
@@ -9742,7 +9770,8 @@ const MultiCommodityDiro = createMaterial(MultiCommodityDiroComponent, {
9742
9770
  width: 236,
9743
9771
  height: 74,
9744
9772
  borderRadius: 3,
9745
- backgroundColor: '#fff'
9773
+ backgroundColor: '#fff',
9774
+ marginBottom: 8
9746
9775
  }
9747
9776
  },
9748
9777
  w: 100,
@@ -9766,22 +9795,32 @@ var styles$1 = {"two-line-ellipsis":"index-module_two-line-ellipsis__mdzn0"};
9766
9795
 
9767
9796
  const MultiCommodity$1 = (_a) => {
9768
9797
  var _b, _c;
9769
- var { content, style, bgImg, recData, onClick, bottom_image, ctaTempStyles } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "onClick", "bottom_image", "ctaTempStyles"]);
9798
+ var { content, style, bgImg, recData, onClick, bottom_image, ctaTempStyles, isExternalLink } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "onClick", "bottom_image", "ctaTempStyles", "isExternalLink"]);
9770
9799
  const { sxpParameter } = useSxpDataSource();
9771
9800
  const { ctaEvent, setPopupDetailData } = useSxpDataSource();
9772
9801
  const { popupAni } = useEditor();
9773
9802
  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]);
9803
+ const { jumpToWeb } = useEventReport();
9774
9804
  const handleClick = lodash.throttle((item) => {
9805
+ var _a;
9775
9806
  ctaEvent === null || ctaEvent === void 0 ? void 0 : ctaEvent({
9776
9807
  eventSubject: 'clickCta',
9777
9808
  eventDescription: 'User clicked the CTA'
9778
9809
  }, recData, item);
9779
9810
  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 }) }));
9780
- onClick === null || onClick === void 0 ? void 0 : onClick();
9811
+ if (isExternalLink) {
9812
+ if ((_a = item === null || item === void 0 ? void 0 : item.bindCta) === null || _a === void 0 ? void 0 : _a.link) {
9813
+ jumpToWeb(recData, item, item.bindCta);
9814
+ window.location.href = item.bindCta.link;
9815
+ }
9816
+ }
9817
+ else {
9818
+ onClick === null || onClick === void 0 ? void 0 : onClick();
9819
+ }
9781
9820
  }, popupAni === null || popupAni === void 0 ? void 0 : popupAni.duration);
9782
- return (React.createElement(Scroll$1, null, products === null || products === void 0 ? void 0 : products.map((item) => {
9821
+ return (React.createElement(Scroll$1, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item) => {
9783
9822
  var _a, _b, _c, _d, _e, _f;
9784
- 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) }),
9823
+ 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) }),
9785
9824
  React.createElement("div", { className: css.css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
9786
9825
  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 })),
9787
9826
  React.createElement("div", { className: css.css({
@@ -9845,7 +9884,8 @@ const MultiCommodity = createMaterial(MultiCommodityComponent, {
9845
9884
  width: 236,
9846
9885
  height: 74,
9847
9886
  borderRadius: 3,
9848
- backgroundColor: 'rgba(0,0,0,.3)'
9887
+ backgroundColor: 'rgba(0,0,0,.3)',
9888
+ marginBottom: 8
9849
9889
  }
9850
9890
  },
9851
9891
  w: 100,
@@ -9869,21 +9909,31 @@ var styles = {"tow-line-ellipsis":"index-module_tow-line-ellipsis__fselR"};
9869
9909
 
9870
9910
  const MultiCommodityDiroNew$1 = (_a) => {
9871
9911
  var _b, _c;
9872
- var { content, style, bgImg, recData, onClick, bottom_image, ctaTempStyles } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "onClick", "bottom_image", "ctaTempStyles"]);
9912
+ var { content, style, bgImg, recData, onClick, bottom_image, ctaTempStyles, isExternalLink } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "onClick", "bottom_image", "ctaTempStyles", "isExternalLink"]);
9873
9913
  const { ctaEvent, setPopupDetailData, sxpParameter } = useSxpDataSource();
9874
9914
  const { popupAni } = useEditor();
9915
+ const { jumpToWeb } = useEventReport();
9875
9916
  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]);
9876
9917
  const handleClick = lodash.throttle((item) => {
9918
+ var _a;
9877
9919
  ctaEvent === null || ctaEvent === void 0 ? void 0 : ctaEvent({
9878
9920
  eventSubject: 'clickCta',
9879
9921
  eventDescription: 'User clicked the CTA'
9880
9922
  }, recData, item);
9881
9923
  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 }) }));
9882
- onClick === null || onClick === void 0 ? void 0 : onClick();
9924
+ if (isExternalLink) {
9925
+ if ((_a = item === null || item === void 0 ? void 0 : item.bindCta) === null || _a === void 0 ? void 0 : _a.link) {
9926
+ jumpToWeb(recData, item, item.bindCta);
9927
+ window.location.href = item.bindCta.link;
9928
+ }
9929
+ }
9930
+ else {
9931
+ onClick === null || onClick === void 0 ? void 0 : onClick();
9932
+ }
9883
9933
  }, popupAni === null || popupAni === void 0 ? void 0 : popupAni.duration);
9884
- return (React.createElement(Scroll$1, null, products === null || products === void 0 ? void 0 : products.map((item) => {
9934
+ return (React.createElement(Scroll$1, { isPadding: !!recData }, products === null || products === void 0 ? void 0 : products.map((item) => {
9885
9935
  var _a, _b, _c, _d, _e, _f;
9886
- 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) }),
9936
+ 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) }),
9887
9937
  React.createElement("div", { className: css.css(Object.assign({ overflow: 'hidden', flexShrink: 0, backgroundColor: '#f2f2f2' }, ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.img)) },
9888
9938
  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 })),
9889
9939
  React.createElement("div", { className: css.css({
@@ -9905,7 +9955,7 @@ var MultiCommodityDiroNewComponent = React.memo(MultiCommodityDiroNew$1);
9905
9955
  * @Author: binruan@chatlabs.com
9906
9956
  * @Date: 2023-07-28 18:29:57
9907
9957
  * @LastEditors: binruan@chatlabs.com
9908
- * @LastEditTime: 2024-03-29 15:40:54
9958
+ * @LastEditTime: 2024-04-09 21:40:37
9909
9959
  * @FilePath: \pb-sxp-ui\src\materials\sxp\template\MultiCommodityDiroNew\material.tsx
9910
9960
  *
9911
9961
  */
@@ -9949,7 +9999,8 @@ const MultiCommodityDiroNew = createMaterial(MultiCommodityDiroNewComponent, {
9949
9999
  width: 260,
9950
10000
  height: 86,
9951
10001
  padding: 4,
9952
- backgroundColor: 'rgba(255,255,255,0.75)'
10002
+ backgroundColor: 'rgba(255,255,255,0.75)',
10003
+ marginBottom: 8
9953
10004
  }
9954
10005
  },
9955
10006
  w: 100,
@@ -12364,14 +12415,14 @@ function withBindDataSource(Component) {
12364
12415
  * @Author: binruan@chatlabs.com
12365
12416
  * @Date: 2023-12-26 16:11:34
12366
12417
  * @LastEditors: binruan@chatlabs.com
12367
- * @LastEditTime: 2024-03-04 14:25:27
12418
+ * @LastEditTime: 2024-04-10 16:49:34
12368
12419
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\RenderCard.tsx
12369
12420
  *
12370
12421
  */
12371
12422
  const RenderCard = ({ rec, index, tempMap, resolver }) => {
12372
12423
  const { schema } = useEditor();
12373
12424
  const renderComp = React.useMemo(() => {
12374
- 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;
12425
+ 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;
12375
12426
  if (!(rec === null || rec === void 0 ? void 0 : rec.video))
12376
12427
  return null;
12377
12428
  let cta = null;
@@ -12394,8 +12445,11 @@ const RenderCard = ({ rec, index, tempMap, resolver }) => {
12394
12445
  return null;
12395
12446
  }
12396
12447
  if (value && resolver) {
12397
- const Component = withBindDataSource(resolver[(_w = value === null || value === void 0 ? void 0 : value.item) === null || _w === void 0 ? void 0 : _w.type]);
12398
- 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 })));
12448
+ const t = resolver[(_w = value === null || value === void 0 ? void 0 : value.item) === null || _w === void 0 ? void 0 : _w.type];
12449
+ const Component = withBindDataSource(t);
12450
+ const defaulSetting = (_x = t === null || t === void 0 ? void 0 : t.extend) === null || _x === void 0 ? void 0 : _x.defaulSetting;
12451
+ 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';
12452
+ 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 })));
12399
12453
  }
12400
12454
  else {
12401
12455
  return null;
@@ -12421,7 +12475,7 @@ const Nudge = ({ nudge }) => {
12421
12475
  * @Author: binruan@chatlabs.com
12422
12476
  * @Date: 2024-01-15 19:03:09
12423
12477
  * @LastEditors: binruan@chatlabs.com
12424
- * @LastEditTime: 2024-04-07 17:06:06
12478
+ * @LastEditTime: 2024-04-10 10:13:48
12425
12479
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\index.tsx
12426
12480
  *
12427
12481
  */
@@ -12588,9 +12642,11 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
12588
12642
  }
12589
12643
  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) {
12590
12644
  return (_d = globalConfig === null || globalConfig === void 0 ? void 0 : globalConfig.productPost) === null || _d === void 0 ? void 0 : _d.map((value, index) => {
12591
- var _a, _b, _c, _d, _e, _f;
12592
- const Component = withBindDataSource(resolver[(_a = value === null || value === void 0 ? void 0 : value.item) === null || _a === void 0 ? void 0 : _a.type]);
12593
- 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' } })));
12645
+ var _a, _b, _c, _d, _e, _f, _g, _h;
12646
+ const t = resolver[(_a = value === null || value === void 0 ? void 0 : value.item) === null || _a === void 0 ? void 0 : _a.type];
12647
+ const Component = withBindDataSource(t);
12648
+ const defaulSetting = (_b = t === null || t === void 0 ? void 0 : t.extend) === null || _b === void 0 ? void 0 : _b.defaulSetting;
12649
+ 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' }) })));
12594
12650
  });
12595
12651
  }
12596
12652
  return null;
@@ -12604,8 +12660,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
12604
12660
  React.createElement(Nudge, { nudge: nudge }),
12605
12661
  React.createElement("div", { className: 'clc-sxp-bottom-card' },
12606
12662
  React.createElement(RenderCard$1, { rec: rec, index: index, tempMap: tempMap, resolver: resolver })),
12607
- React.createElement("div", { className: 'clc-sxp-bottom-text' },
12608
- 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 })),
12663
+ 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 }),
12609
12664
  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 }))));
12610
12665
  }
12611
12666
  return null;
@@ -12799,7 +12854,7 @@ const SxpPageRender = ({ globalConfig, descStyle, containerHeight = window.inner
12799
12854
  * @Author: binruan@chatlabs.com
12800
12855
  * @Date: 2023-10-31 10:56:01
12801
12856
  * @LastEditors: binruan@chatlabs.com
12802
- * @LastEditTime: 2024-04-02 10:31:51
12857
+ * @LastEditTime: 2024-04-10 09:57:19
12803
12858
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\Popup\index.tsx
12804
12859
  *
12805
12860
  */
@@ -12845,10 +12900,12 @@ const Popup = () => {
12845
12900
  const renderPopupDetail = React.useMemo(() => {
12846
12901
  var _a, _b, _c;
12847
12902
  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) => {
12848
- var _a, _b, _c, _d, _e, _f, _g;
12903
+ var _a, _b, _c, _d, _e, _f, _g, _h;
12849
12904
  if ((value === null || value === void 0 ? void 0 : value.id) === popup) {
12850
- const Component = withBindDataSource(resolver[(_a = value === null || value === void 0 ? void 0 : value.item) === null || _a === void 0 ? void 0 : _a.type]);
12851
- 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 })));
12905
+ const t = resolver[(_a = value === null || value === void 0 ? void 0 : value.item) === null || _a === void 0 ? void 0 : _a.type];
12906
+ const Component = withBindDataSource(t);
12907
+ const defaulSetting = (_b = t === null || t === void 0 ? void 0 : t.extend) === null || _b === void 0 ? void 0 : _b.defaulSetting;
12908
+ 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 })));
12852
12909
  }
12853
12910
  else {
12854
12911
  return React.createElement(React.Fragment, null);