pb-sxp-ui 1.16.1 → 1.16.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +4 -4
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +4 -4
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +4 -2
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +4 -4
- package/dist/pb-ui.min.js.map +1 -1
- package/es/materials/sxp/template/NineCommodity/index.js +4 -2
- package/lib/materials/sxp/template/NineCommodity/index.js +4 -2
- package/package.json +1 -1
package/dist/index.css
CHANGED
package/dist/index.js
CHANGED
@@ -13461,9 +13461,11 @@ const NineCommodity$1 = (_a) => {
|
|
13461
13461
|
var { content, style, bgImg, recData, bottom_image, ctaTempStyles, translateY = 0, isActive, index } = _a, props = __rest(_a, ["content", "style", "bgImg", "recData", "bottom_image", "ctaTempStyles", "translateY", "isActive", "index"]);
|
13462
13462
|
const { sxpParameter } = useSxpDataSource();
|
13463
13463
|
const [products] = 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 : [{}, {}, {}, {}, {}, {}, {}, {}, {}]);
|
13464
|
+
if (!(products === null || products === void 0 ? void 0 : products.length) || (products === null || products === void 0 ? void 0 : products.length) < 1)
|
13465
|
+
return null;
|
13464
13466
|
return (React.createElement("div", { className: styles$2.nineProduct },
|
13465
13467
|
React.createElement("div", { className: styles$2.gridContainer }, products === null || products === void 0 ? void 0 : products.map((item, itemIndex) => {
|
13466
|
-
var _a, _b, _c, _d, _e, _f;
|
13468
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
13467
13469
|
if (itemIndex < 9) {
|
13468
13470
|
return (React.createElement(React.Fragment, { key: itemIndex }, recData && !(item === null || item === void 0 ? void 0 : item.bindCta) ? null : (React.createElement("div", { className: styles$2.gridItem, role: 'listitem' },
|
13469
13471
|
React.createElement("div", { className: styles$2.gridBox },
|
@@ -13479,7 +13481,7 @@ const NineCommodity$1 = (_a) => {
|
|
13479
13481
|
display: 'block'
|
13480
13482
|
}, isActive: isActive }),
|
13481
13483
|
React.createElement("div", { className: styles$2.buttonWrapper, "aria-label": (_f = (_e = item === null || item === void 0 ? void 0 : item.bindCta) === null || _e === void 0 ? void 0 : _e.enTitle) !== null && _f !== void 0 ? _f : 'Shop Now', dangerouslySetInnerHTML: {
|
13482
|
-
__html: setFontForText(
|
13484
|
+
__html: setFontForText((_h = (_g = item === null || item === void 0 ? void 0 : item.bindCta) === null || _g === void 0 ? void 0 : _g.enTitle) !== null && _h !== void 0 ? _h : 'Shop Now', ctaTempStyles === null || ctaTempStyles === void 0 ? void 0 : ctaTempStyles.ctaTitle)
|
13483
13485
|
} })))))));
|
13484
13486
|
}
|
13485
13487
|
else {
|