tabexseriescomponents 0.0.472 → 0.0.474
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.js +101 -9
- package/dist/index.esm.js +101 -9
- package/dist/index.umd.js +101 -9
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -16741,6 +16741,7 @@ var CardsSection = function CardsSection(props) {
|
|
|
16741
16741
|
cardobj.productfeature = arrayItem === null || arrayItem === void 0 || (_arrayItem$features2 = arrayItem.features) === null || _arrayItem$features2 === void 0 ? void 0 : _arrayItem$features2.value_ar;
|
|
16742
16742
|
}
|
|
16743
16743
|
cardobj.productfeatureid = arrayItem === null || arrayItem === void 0 || (_arrayItem$features3 = arrayItem.features) === null || _arrayItem$features3 === void 0 ? void 0 : _arrayItem$features3.featureid;
|
|
16744
|
+
cardobj.productendpointurl = arrayItem.productinfo.productendpointurl;
|
|
16744
16745
|
cardobj.hassale = arrayItem.productinfo.hassale;
|
|
16745
16746
|
cardobj.productid = arrayItem.productinfo.productid;
|
|
16746
16747
|
cardobj.hasvariants = arrayItem.productinfo.hasvariants;
|
|
@@ -46719,6 +46720,7 @@ var CardsSection2 = function CardsSection2(props) {
|
|
|
46719
46720
|
cardobj.productfeature = arrayItem === null || arrayItem === void 0 || (_arrayItem$features2 = arrayItem.features) === null || _arrayItem$features2 === void 0 ? void 0 : _arrayItem$features2.value_ar;
|
|
46720
46721
|
}
|
|
46721
46722
|
cardobj.productfeatureid = arrayItem === null || arrayItem === void 0 || (_arrayItem$features3 = arrayItem.features) === null || _arrayItem$features3 === void 0 ? void 0 : _arrayItem$features3.featureid;
|
|
46723
|
+
cardobj.productendpointurl = arrayItem.productinfo.productendpointurl;
|
|
46722
46724
|
cardobj.hassale = arrayItem.productinfo.hassale;
|
|
46723
46725
|
cardobj.productid = arrayItem.productinfo.productid;
|
|
46724
46726
|
cardobj.hasvariants = arrayItem.productinfo.hasvariants;
|
|
@@ -47150,6 +47152,7 @@ var Sixverticalcardssection = function Sixverticalcardssection(props) {
|
|
|
47150
47152
|
image: ''
|
|
47151
47153
|
};
|
|
47152
47154
|
if (fetchingtype == 'products') {
|
|
47155
|
+
var _arrayItem$features3;
|
|
47153
47156
|
var itemquantity = 0;
|
|
47154
47157
|
if (langdetect == 'en') {
|
|
47155
47158
|
cardobj.name = arrayItem.productinfo.name_en;
|
|
@@ -47161,6 +47164,11 @@ var Sixverticalcardssection = function Sixverticalcardssection(props) {
|
|
|
47161
47164
|
} else {
|
|
47162
47165
|
cardobj.description = arrayItem.productinfo.description_ar;
|
|
47163
47166
|
}
|
|
47167
|
+
if (langdetect == 'en') {
|
|
47168
|
+
cardobj.shortdescription = arrayItem.short_description_en;
|
|
47169
|
+
} else {
|
|
47170
|
+
cardobj.shortdescription = arrayItem.short_description_ar;
|
|
47171
|
+
}
|
|
47164
47172
|
if (arrayItem.productinfo.hasvariants == 0) {
|
|
47165
47173
|
fetchcustomercartQueryContext.data.data.customercart.cartitems.forEach(function (cartitem, cartindex) {
|
|
47166
47174
|
if (cartitem.productid == arrayItem.productinfo.productid) {
|
|
@@ -47169,6 +47177,16 @@ var Sixverticalcardssection = function Sixverticalcardssection(props) {
|
|
|
47169
47177
|
});
|
|
47170
47178
|
}
|
|
47171
47179
|
cardobj.image = arrayItem.productinfo.productmainimage;
|
|
47180
|
+
cardobj.producttags = arrayItem.tags;
|
|
47181
|
+
if (langdetect == 'en') {
|
|
47182
|
+
var _arrayItem$features;
|
|
47183
|
+
cardobj.productfeature = arrayItem === null || arrayItem === void 0 || (_arrayItem$features = arrayItem.features) === null || _arrayItem$features === void 0 ? void 0 : _arrayItem$features.value_en;
|
|
47184
|
+
} else {
|
|
47185
|
+
var _arrayItem$features2;
|
|
47186
|
+
cardobj.productfeature = arrayItem === null || arrayItem === void 0 || (_arrayItem$features2 = arrayItem.features) === null || _arrayItem$features2 === void 0 ? void 0 : _arrayItem$features2.value_ar;
|
|
47187
|
+
}
|
|
47188
|
+
cardobj.productfeatureid = arrayItem === null || arrayItem === void 0 || (_arrayItem$features3 = arrayItem.features) === null || _arrayItem$features3 === void 0 ? void 0 : _arrayItem$features3.featureid;
|
|
47189
|
+
cardobj.productendpointurl = arrayItem.productinfo.productendpointurl;
|
|
47172
47190
|
cardobj.hassale = arrayItem.productinfo.hassale;
|
|
47173
47191
|
cardobj.productid = arrayItem.productinfo.productid;
|
|
47174
47192
|
cardobj.hasvariants = arrayItem.productinfo.hasvariants;
|
|
@@ -47178,11 +47196,24 @@ var Sixverticalcardssection = function Sixverticalcardssection(props) {
|
|
|
47178
47196
|
cardobj.defaultsaleprice = arrayItem.productinfo.defaultsaleprice;
|
|
47179
47197
|
cardobj.productimages = arrayItem.productinfo.productimages;
|
|
47180
47198
|
cardobj.quantity = itemquantity;
|
|
47199
|
+
// cardobj.currentquantity = currentquantity;
|
|
47181
47200
|
cardobj.timestamp = arrayItem.productinfo.timestamp;
|
|
47201
|
+
cardobj.productquantity = arrayItem.productinfo.productquantity;
|
|
47202
|
+
cardobj.currentquantity = arrayItem.productinfo.currentquantity;
|
|
47203
|
+
cardobj.quantavailtype = arrayItem.productinfo.quantavailtype;
|
|
47204
|
+
cardobj.isproducttobesold = arrayItem.productinfo.isproducttobesold;
|
|
47205
|
+
cardobj.measurmentunit = arrayItem.productinfo.measurmentunit;
|
|
47206
|
+
cardobj.prodaffpercentprofit = arrayItem.productinfo.prodaffpercentprofit;
|
|
47207
|
+
cardobj.productcashbackvalue = arrayItem.productinfo.productcashbackvalue;
|
|
47208
|
+
cardobj.product_phonenumber = arrayItem.productinfo.product_phonenumber;
|
|
47209
|
+
cardobj.productcanrate = arrayItem.productinfo.productcanrate;
|
|
47210
|
+
cardobj.sku = arrayItem.productinfo.sku;
|
|
47182
47211
|
if (langdetect == 'en') {
|
|
47183
|
-
|
|
47212
|
+
var _fetchAuthorizationQu;
|
|
47213
|
+
cardobj.currencyname = fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 || (_fetchAuthorizationQu = fetchAuthorizationQueryContext.data) === null || _fetchAuthorizationQu === void 0 || (_fetchAuthorizationQu = _fetchAuthorizationQu.data) === null || _fetchAuthorizationQu === void 0 ? void 0 : _fetchAuthorizationQu.currencyname_en;
|
|
47184
47214
|
} else {
|
|
47185
|
-
|
|
47215
|
+
var _fetchAuthorizationQu2;
|
|
47216
|
+
cardobj.currencyname = fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 || (_fetchAuthorizationQu2 = fetchAuthorizationQueryContext.data) === null || _fetchAuthorizationQu2 === void 0 || (_fetchAuthorizationQu2 = _fetchAuthorizationQu2.data) === null || _fetchAuthorizationQu2 === void 0 ? void 0 : _fetchAuthorizationQu2.currencyname_ar;
|
|
47186
47217
|
}
|
|
47187
47218
|
if (favoriteprojectscountContext != undefined && favoriteprojectscountContext.length != 0) {
|
|
47188
47219
|
favoriteprojectscountContext.forEach(function (favitem, favindex) {
|
|
@@ -47191,8 +47222,9 @@ var Sixverticalcardssection = function Sixverticalcardssection(props) {
|
|
|
47191
47222
|
}
|
|
47192
47223
|
});
|
|
47193
47224
|
}
|
|
47194
|
-
} else if (fetchingtype == 'collections') {
|
|
47225
|
+
} else if (fetchingtype == 'collections' || fetchingtype == 'innerparentcollections') {
|
|
47195
47226
|
cardobj.collectionid = arrayItem.collectionid;
|
|
47227
|
+
cardobj.skiplayeronclick = arrayItem === null || arrayItem === void 0 ? void 0 : arrayItem.skiplayeronclick;
|
|
47196
47228
|
if (langdetect == 'en') {
|
|
47197
47229
|
cardobj.name = arrayItem.title_en;
|
|
47198
47230
|
cardobj.description = arrayItem.description_en;
|
|
@@ -47201,7 +47233,44 @@ var Sixverticalcardssection = function Sixverticalcardssection(props) {
|
|
|
47201
47233
|
cardobj.description = arrayItem.description_ar;
|
|
47202
47234
|
}
|
|
47203
47235
|
cardobj.image = arrayItem.collectionlogo;
|
|
47204
|
-
|
|
47236
|
+
cardobj.producttags = [];
|
|
47237
|
+
cardobj.productfeatures = [];
|
|
47238
|
+
} else if (fetchingtype == 'categories') {
|
|
47239
|
+
cardobj.collectionid = arrayItem.categoryid;
|
|
47240
|
+
cardobj.skiplayeronclick = arrayItem === null || arrayItem === void 0 ? void 0 : arrayItem.skiplayeronclick;
|
|
47241
|
+
if (langdetect == 'en') {
|
|
47242
|
+
cardobj.name = arrayItem.title_en;
|
|
47243
|
+
cardobj.description = arrayItem.description_en;
|
|
47244
|
+
} else if (langdetect == 'ar') {
|
|
47245
|
+
cardobj.name = arrayItem.title_ar;
|
|
47246
|
+
cardobj.description = arrayItem.description_ar;
|
|
47247
|
+
}
|
|
47248
|
+
cardobj.image = arrayItem.categorylogo;
|
|
47249
|
+
cardobj.producttags = [];
|
|
47250
|
+
cardobj.productfeatures = [];
|
|
47251
|
+
} else if (fetchingtype == 'parentcollections' || fetchingtype == 'innercategories') {
|
|
47252
|
+
cardobj.collectionid = arrayItem.parentcollectionid;
|
|
47253
|
+
cardobj.skiplayeronclick = arrayItem === null || arrayItem === void 0 ? void 0 : arrayItem.skiplayeronclick;
|
|
47254
|
+
if (langdetect == 'en') {
|
|
47255
|
+
cardobj.name = arrayItem.title_en;
|
|
47256
|
+
cardobj.description = arrayItem.description_en;
|
|
47257
|
+
} else if (langdetect == 'ar') {
|
|
47258
|
+
cardobj.name = arrayItem.title_ar;
|
|
47259
|
+
cardobj.description = arrayItem.description_ar;
|
|
47260
|
+
}
|
|
47261
|
+
cardobj.image = arrayItem.parentcollectionlogo;
|
|
47262
|
+
cardobj.producttags = [];
|
|
47263
|
+
cardobj.productfeatures = [];
|
|
47264
|
+
} else if (fetchingtype == 'custom') {
|
|
47265
|
+
cardobj.producttags = [];
|
|
47266
|
+
cardobj.productfeatures = [];
|
|
47267
|
+
} else if (fetchingtype == 'vendors') {
|
|
47268
|
+
cardobj.name = arrayItem.vendorname;
|
|
47269
|
+
cardobj.collectionid = arrayItem.vendorid;
|
|
47270
|
+
cardobj.image = arrayItem.vendorlogourl;
|
|
47271
|
+
cardobj.producttags = [];
|
|
47272
|
+
cardobj.productfeatures = [];
|
|
47273
|
+
}
|
|
47205
47274
|
temparray.push(cardobj);
|
|
47206
47275
|
});
|
|
47207
47276
|
setcardsarray([].concat(temparray));
|
|
@@ -72140,8 +72209,13 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
72140
72209
|
// Check if it's the second click
|
|
72141
72210
|
if (clickCount === 1) {
|
|
72142
72211
|
// Do whatever you want on the second click
|
|
72143
|
-
|
|
72144
|
-
|
|
72212
|
+
var productidtobesend = null;
|
|
72213
|
+
if (sectionproperties.urlwithproductname == 'Yes') {
|
|
72214
|
+
productidtobesend = item.productendpointurl;
|
|
72215
|
+
} else {
|
|
72216
|
+
productidtobesend = item.productid;
|
|
72217
|
+
}
|
|
72218
|
+
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, productidtobesend, props.fetchingtypeprops, item.collectionid);
|
|
72145
72219
|
}
|
|
72146
72220
|
};
|
|
72147
72221
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -72284,7 +72358,13 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
72284
72358
|
},
|
|
72285
72359
|
onClick: function onClick(e) {
|
|
72286
72360
|
e.stopPropagation();
|
|
72287
|
-
|
|
72361
|
+
var productidtobesend = null;
|
|
72362
|
+
if (sectionproperties.urlwithproductname == 'Yes') {
|
|
72363
|
+
productidtobesend = item.productendpointurl;
|
|
72364
|
+
} else {
|
|
72365
|
+
productidtobesend = item.productid;
|
|
72366
|
+
}
|
|
72367
|
+
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, productidtobesend, props.fetchingtypeprops, item.collectionid);
|
|
72288
72368
|
}
|
|
72289
72369
|
}, Image('normal')), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
72290
72370
|
"class": sectionproperties.hideshowcardtransition == 'Show' ? " ".concat(card_cssstyles.productcardimagecont, " ").concat(cardstyles$7.imagecontainer) + ' d-none d-md-flex ' : " ".concat(card_cssstyles.productcardimagecont, " ") + ' d-none d-md-flex ',
|
|
@@ -72332,7 +72412,13 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
72332
72412
|
}
|
|
72333
72413
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
72334
72414
|
onClick: function onClick() {
|
|
72335
|
-
|
|
72415
|
+
var productidtobesend = null;
|
|
72416
|
+
if (sectionproperties.urlwithproductname == 'Yes') {
|
|
72417
|
+
productidtobesend = item.productendpointurl;
|
|
72418
|
+
} else {
|
|
72419
|
+
productidtobesend = item.productid;
|
|
72420
|
+
}
|
|
72421
|
+
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, productidtobesend, props.fetchingtypeprops, item.collectionid);
|
|
72336
72422
|
},
|
|
72337
72423
|
"class": sectionproperties.wordbreak == '1' ? "".concat(card_cssstyles.productNameStyles) + ' wordbreak wordbreak1 font-md-13 m-0 mb-1 ' : "".concat(card_cssstyles.productNameStyles) + ' wordbreak wordbreak2 font-md-13 wordbreak-md-4 m-0 ',
|
|
72338
72424
|
style: {
|
|
@@ -72408,7 +72494,13 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
72408
72494
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
72409
72495
|
"class": "".concat(card_cssstyles.cart_btn) + ' m-0 p-0 d-flex align-items-center justify-content-center mt-1 ',
|
|
72410
72496
|
onClick: function onClick() {
|
|
72411
|
-
|
|
72497
|
+
var productidtobesend = null;
|
|
72498
|
+
if (sectionproperties.urlwithproductname == 'Yes') {
|
|
72499
|
+
productidtobesend = item.productendpointurl;
|
|
72500
|
+
} else {
|
|
72501
|
+
productidtobesend = item.productid;
|
|
72502
|
+
}
|
|
72503
|
+
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, productidtobesend, props.fetchingtypeprops, item.collectionid);
|
|
72412
72504
|
// setShowProductInfoModalContext(true);
|
|
72413
72505
|
// setProductIdProdutInfoModalContext(item.productid);
|
|
72414
72506
|
}
|
package/dist/index.esm.js
CHANGED
|
@@ -16692,6 +16692,7 @@ var CardsSection = function CardsSection(props) {
|
|
|
16692
16692
|
cardobj.productfeature = arrayItem === null || arrayItem === void 0 || (_arrayItem$features2 = arrayItem.features) === null || _arrayItem$features2 === void 0 ? void 0 : _arrayItem$features2.value_ar;
|
|
16693
16693
|
}
|
|
16694
16694
|
cardobj.productfeatureid = arrayItem === null || arrayItem === void 0 || (_arrayItem$features3 = arrayItem.features) === null || _arrayItem$features3 === void 0 ? void 0 : _arrayItem$features3.featureid;
|
|
16695
|
+
cardobj.productendpointurl = arrayItem.productinfo.productendpointurl;
|
|
16695
16696
|
cardobj.hassale = arrayItem.productinfo.hassale;
|
|
16696
16697
|
cardobj.productid = arrayItem.productinfo.productid;
|
|
16697
16698
|
cardobj.hasvariants = arrayItem.productinfo.hasvariants;
|
|
@@ -46670,6 +46671,7 @@ var CardsSection2 = function CardsSection2(props) {
|
|
|
46670
46671
|
cardobj.productfeature = arrayItem === null || arrayItem === void 0 || (_arrayItem$features2 = arrayItem.features) === null || _arrayItem$features2 === void 0 ? void 0 : _arrayItem$features2.value_ar;
|
|
46671
46672
|
}
|
|
46672
46673
|
cardobj.productfeatureid = arrayItem === null || arrayItem === void 0 || (_arrayItem$features3 = arrayItem.features) === null || _arrayItem$features3 === void 0 ? void 0 : _arrayItem$features3.featureid;
|
|
46674
|
+
cardobj.productendpointurl = arrayItem.productinfo.productendpointurl;
|
|
46673
46675
|
cardobj.hassale = arrayItem.productinfo.hassale;
|
|
46674
46676
|
cardobj.productid = arrayItem.productinfo.productid;
|
|
46675
46677
|
cardobj.hasvariants = arrayItem.productinfo.hasvariants;
|
|
@@ -47101,6 +47103,7 @@ var Sixverticalcardssection = function Sixverticalcardssection(props) {
|
|
|
47101
47103
|
image: ''
|
|
47102
47104
|
};
|
|
47103
47105
|
if (fetchingtype == 'products') {
|
|
47106
|
+
var _arrayItem$features3;
|
|
47104
47107
|
var itemquantity = 0;
|
|
47105
47108
|
if (langdetect == 'en') {
|
|
47106
47109
|
cardobj.name = arrayItem.productinfo.name_en;
|
|
@@ -47112,6 +47115,11 @@ var Sixverticalcardssection = function Sixverticalcardssection(props) {
|
|
|
47112
47115
|
} else {
|
|
47113
47116
|
cardobj.description = arrayItem.productinfo.description_ar;
|
|
47114
47117
|
}
|
|
47118
|
+
if (langdetect == 'en') {
|
|
47119
|
+
cardobj.shortdescription = arrayItem.short_description_en;
|
|
47120
|
+
} else {
|
|
47121
|
+
cardobj.shortdescription = arrayItem.short_description_ar;
|
|
47122
|
+
}
|
|
47115
47123
|
if (arrayItem.productinfo.hasvariants == 0) {
|
|
47116
47124
|
fetchcustomercartQueryContext.data.data.customercart.cartitems.forEach(function (cartitem, cartindex) {
|
|
47117
47125
|
if (cartitem.productid == arrayItem.productinfo.productid) {
|
|
@@ -47120,6 +47128,16 @@ var Sixverticalcardssection = function Sixverticalcardssection(props) {
|
|
|
47120
47128
|
});
|
|
47121
47129
|
}
|
|
47122
47130
|
cardobj.image = arrayItem.productinfo.productmainimage;
|
|
47131
|
+
cardobj.producttags = arrayItem.tags;
|
|
47132
|
+
if (langdetect == 'en') {
|
|
47133
|
+
var _arrayItem$features;
|
|
47134
|
+
cardobj.productfeature = arrayItem === null || arrayItem === void 0 || (_arrayItem$features = arrayItem.features) === null || _arrayItem$features === void 0 ? void 0 : _arrayItem$features.value_en;
|
|
47135
|
+
} else {
|
|
47136
|
+
var _arrayItem$features2;
|
|
47137
|
+
cardobj.productfeature = arrayItem === null || arrayItem === void 0 || (_arrayItem$features2 = arrayItem.features) === null || _arrayItem$features2 === void 0 ? void 0 : _arrayItem$features2.value_ar;
|
|
47138
|
+
}
|
|
47139
|
+
cardobj.productfeatureid = arrayItem === null || arrayItem === void 0 || (_arrayItem$features3 = arrayItem.features) === null || _arrayItem$features3 === void 0 ? void 0 : _arrayItem$features3.featureid;
|
|
47140
|
+
cardobj.productendpointurl = arrayItem.productinfo.productendpointurl;
|
|
47123
47141
|
cardobj.hassale = arrayItem.productinfo.hassale;
|
|
47124
47142
|
cardobj.productid = arrayItem.productinfo.productid;
|
|
47125
47143
|
cardobj.hasvariants = arrayItem.productinfo.hasvariants;
|
|
@@ -47129,11 +47147,24 @@ var Sixverticalcardssection = function Sixverticalcardssection(props) {
|
|
|
47129
47147
|
cardobj.defaultsaleprice = arrayItem.productinfo.defaultsaleprice;
|
|
47130
47148
|
cardobj.productimages = arrayItem.productinfo.productimages;
|
|
47131
47149
|
cardobj.quantity = itemquantity;
|
|
47150
|
+
// cardobj.currentquantity = currentquantity;
|
|
47132
47151
|
cardobj.timestamp = arrayItem.productinfo.timestamp;
|
|
47152
|
+
cardobj.productquantity = arrayItem.productinfo.productquantity;
|
|
47153
|
+
cardobj.currentquantity = arrayItem.productinfo.currentquantity;
|
|
47154
|
+
cardobj.quantavailtype = arrayItem.productinfo.quantavailtype;
|
|
47155
|
+
cardobj.isproducttobesold = arrayItem.productinfo.isproducttobesold;
|
|
47156
|
+
cardobj.measurmentunit = arrayItem.productinfo.measurmentunit;
|
|
47157
|
+
cardobj.prodaffpercentprofit = arrayItem.productinfo.prodaffpercentprofit;
|
|
47158
|
+
cardobj.productcashbackvalue = arrayItem.productinfo.productcashbackvalue;
|
|
47159
|
+
cardobj.product_phonenumber = arrayItem.productinfo.product_phonenumber;
|
|
47160
|
+
cardobj.productcanrate = arrayItem.productinfo.productcanrate;
|
|
47161
|
+
cardobj.sku = arrayItem.productinfo.sku;
|
|
47133
47162
|
if (langdetect == 'en') {
|
|
47134
|
-
|
|
47163
|
+
var _fetchAuthorizationQu;
|
|
47164
|
+
cardobj.currencyname = fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 || (_fetchAuthorizationQu = fetchAuthorizationQueryContext.data) === null || _fetchAuthorizationQu === void 0 || (_fetchAuthorizationQu = _fetchAuthorizationQu.data) === null || _fetchAuthorizationQu === void 0 ? void 0 : _fetchAuthorizationQu.currencyname_en;
|
|
47135
47165
|
} else {
|
|
47136
|
-
|
|
47166
|
+
var _fetchAuthorizationQu2;
|
|
47167
|
+
cardobj.currencyname = fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 || (_fetchAuthorizationQu2 = fetchAuthorizationQueryContext.data) === null || _fetchAuthorizationQu2 === void 0 || (_fetchAuthorizationQu2 = _fetchAuthorizationQu2.data) === null || _fetchAuthorizationQu2 === void 0 ? void 0 : _fetchAuthorizationQu2.currencyname_ar;
|
|
47137
47168
|
}
|
|
47138
47169
|
if (favoriteprojectscountContext != undefined && favoriteprojectscountContext.length != 0) {
|
|
47139
47170
|
favoriteprojectscountContext.forEach(function (favitem, favindex) {
|
|
@@ -47142,8 +47173,9 @@ var Sixverticalcardssection = function Sixverticalcardssection(props) {
|
|
|
47142
47173
|
}
|
|
47143
47174
|
});
|
|
47144
47175
|
}
|
|
47145
|
-
} else if (fetchingtype == 'collections') {
|
|
47176
|
+
} else if (fetchingtype == 'collections' || fetchingtype == 'innerparentcollections') {
|
|
47146
47177
|
cardobj.collectionid = arrayItem.collectionid;
|
|
47178
|
+
cardobj.skiplayeronclick = arrayItem === null || arrayItem === void 0 ? void 0 : arrayItem.skiplayeronclick;
|
|
47147
47179
|
if (langdetect == 'en') {
|
|
47148
47180
|
cardobj.name = arrayItem.title_en;
|
|
47149
47181
|
cardobj.description = arrayItem.description_en;
|
|
@@ -47152,7 +47184,44 @@ var Sixverticalcardssection = function Sixverticalcardssection(props) {
|
|
|
47152
47184
|
cardobj.description = arrayItem.description_ar;
|
|
47153
47185
|
}
|
|
47154
47186
|
cardobj.image = arrayItem.collectionlogo;
|
|
47155
|
-
|
|
47187
|
+
cardobj.producttags = [];
|
|
47188
|
+
cardobj.productfeatures = [];
|
|
47189
|
+
} else if (fetchingtype == 'categories') {
|
|
47190
|
+
cardobj.collectionid = arrayItem.categoryid;
|
|
47191
|
+
cardobj.skiplayeronclick = arrayItem === null || arrayItem === void 0 ? void 0 : arrayItem.skiplayeronclick;
|
|
47192
|
+
if (langdetect == 'en') {
|
|
47193
|
+
cardobj.name = arrayItem.title_en;
|
|
47194
|
+
cardobj.description = arrayItem.description_en;
|
|
47195
|
+
} else if (langdetect == 'ar') {
|
|
47196
|
+
cardobj.name = arrayItem.title_ar;
|
|
47197
|
+
cardobj.description = arrayItem.description_ar;
|
|
47198
|
+
}
|
|
47199
|
+
cardobj.image = arrayItem.categorylogo;
|
|
47200
|
+
cardobj.producttags = [];
|
|
47201
|
+
cardobj.productfeatures = [];
|
|
47202
|
+
} else if (fetchingtype == 'parentcollections' || fetchingtype == 'innercategories') {
|
|
47203
|
+
cardobj.collectionid = arrayItem.parentcollectionid;
|
|
47204
|
+
cardobj.skiplayeronclick = arrayItem === null || arrayItem === void 0 ? void 0 : arrayItem.skiplayeronclick;
|
|
47205
|
+
if (langdetect == 'en') {
|
|
47206
|
+
cardobj.name = arrayItem.title_en;
|
|
47207
|
+
cardobj.description = arrayItem.description_en;
|
|
47208
|
+
} else if (langdetect == 'ar') {
|
|
47209
|
+
cardobj.name = arrayItem.title_ar;
|
|
47210
|
+
cardobj.description = arrayItem.description_ar;
|
|
47211
|
+
}
|
|
47212
|
+
cardobj.image = arrayItem.parentcollectionlogo;
|
|
47213
|
+
cardobj.producttags = [];
|
|
47214
|
+
cardobj.productfeatures = [];
|
|
47215
|
+
} else if (fetchingtype == 'custom') {
|
|
47216
|
+
cardobj.producttags = [];
|
|
47217
|
+
cardobj.productfeatures = [];
|
|
47218
|
+
} else if (fetchingtype == 'vendors') {
|
|
47219
|
+
cardobj.name = arrayItem.vendorname;
|
|
47220
|
+
cardobj.collectionid = arrayItem.vendorid;
|
|
47221
|
+
cardobj.image = arrayItem.vendorlogourl;
|
|
47222
|
+
cardobj.producttags = [];
|
|
47223
|
+
cardobj.productfeatures = [];
|
|
47224
|
+
}
|
|
47156
47225
|
temparray.push(cardobj);
|
|
47157
47226
|
});
|
|
47158
47227
|
setcardsarray([].concat(temparray));
|
|
@@ -72091,8 +72160,13 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
72091
72160
|
// Check if it's the second click
|
|
72092
72161
|
if (clickCount === 1) {
|
|
72093
72162
|
// Do whatever you want on the second click
|
|
72094
|
-
|
|
72095
|
-
|
|
72163
|
+
var productidtobesend = null;
|
|
72164
|
+
if (sectionproperties.urlwithproductname == 'Yes') {
|
|
72165
|
+
productidtobesend = item.productendpointurl;
|
|
72166
|
+
} else {
|
|
72167
|
+
productidtobesend = item.productid;
|
|
72168
|
+
}
|
|
72169
|
+
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, productidtobesend, props.fetchingtypeprops, item.collectionid);
|
|
72096
72170
|
}
|
|
72097
72171
|
};
|
|
72098
72172
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -72235,7 +72309,13 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
72235
72309
|
},
|
|
72236
72310
|
onClick: function onClick(e) {
|
|
72237
72311
|
e.stopPropagation();
|
|
72238
|
-
|
|
72312
|
+
var productidtobesend = null;
|
|
72313
|
+
if (sectionproperties.urlwithproductname == 'Yes') {
|
|
72314
|
+
productidtobesend = item.productendpointurl;
|
|
72315
|
+
} else {
|
|
72316
|
+
productidtobesend = item.productid;
|
|
72317
|
+
}
|
|
72318
|
+
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, productidtobesend, props.fetchingtypeprops, item.collectionid);
|
|
72239
72319
|
}
|
|
72240
72320
|
}, Image('normal')), /*#__PURE__*/React.createElement("div", {
|
|
72241
72321
|
"class": sectionproperties.hideshowcardtransition == 'Show' ? " ".concat(card_cssstyles.productcardimagecont, " ").concat(cardstyles$7.imagecontainer) + ' d-none d-md-flex ' : " ".concat(card_cssstyles.productcardimagecont, " ") + ' d-none d-md-flex ',
|
|
@@ -72283,7 +72363,13 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
72283
72363
|
}
|
|
72284
72364
|
}, /*#__PURE__*/React.createElement("p", {
|
|
72285
72365
|
onClick: function onClick() {
|
|
72286
|
-
|
|
72366
|
+
var productidtobesend = null;
|
|
72367
|
+
if (sectionproperties.urlwithproductname == 'Yes') {
|
|
72368
|
+
productidtobesend = item.productendpointurl;
|
|
72369
|
+
} else {
|
|
72370
|
+
productidtobesend = item.productid;
|
|
72371
|
+
}
|
|
72372
|
+
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, productidtobesend, props.fetchingtypeprops, item.collectionid);
|
|
72287
72373
|
},
|
|
72288
72374
|
"class": sectionproperties.wordbreak == '1' ? "".concat(card_cssstyles.productNameStyles) + ' wordbreak wordbreak1 font-md-13 m-0 mb-1 ' : "".concat(card_cssstyles.productNameStyles) + ' wordbreak wordbreak2 font-md-13 wordbreak-md-4 m-0 ',
|
|
72289
72375
|
style: {
|
|
@@ -72359,7 +72445,13 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
72359
72445
|
}, /*#__PURE__*/React.createElement("p", {
|
|
72360
72446
|
"class": "".concat(card_cssstyles.cart_btn) + ' m-0 p-0 d-flex align-items-center justify-content-center mt-1 ',
|
|
72361
72447
|
onClick: function onClick() {
|
|
72362
|
-
|
|
72448
|
+
var productidtobesend = null;
|
|
72449
|
+
if (sectionproperties.urlwithproductname == 'Yes') {
|
|
72450
|
+
productidtobesend = item.productendpointurl;
|
|
72451
|
+
} else {
|
|
72452
|
+
productidtobesend = item.productid;
|
|
72453
|
+
}
|
|
72454
|
+
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, productidtobesend, props.fetchingtypeprops, item.collectionid);
|
|
72363
72455
|
// setShowProductInfoModalContext(true);
|
|
72364
72456
|
// setProductIdProdutInfoModalContext(item.productid);
|
|
72365
72457
|
}
|
package/dist/index.umd.js
CHANGED
|
@@ -16567,6 +16567,7 @@
|
|
|
16567
16567
|
cardobj.productfeature = arrayItem === null || arrayItem === void 0 || (_arrayItem$features2 = arrayItem.features) === null || _arrayItem$features2 === void 0 ? void 0 : _arrayItem$features2.value_ar;
|
|
16568
16568
|
}
|
|
16569
16569
|
cardobj.productfeatureid = arrayItem === null || arrayItem === void 0 || (_arrayItem$features3 = arrayItem.features) === null || _arrayItem$features3 === void 0 ? void 0 : _arrayItem$features3.featureid;
|
|
16570
|
+
cardobj.productendpointurl = arrayItem.productinfo.productendpointurl;
|
|
16570
16571
|
cardobj.hassale = arrayItem.productinfo.hassale;
|
|
16571
16572
|
cardobj.productid = arrayItem.productinfo.productid;
|
|
16572
16573
|
cardobj.hasvariants = arrayItem.productinfo.hasvariants;
|
|
@@ -46545,6 +46546,7 @@
|
|
|
46545
46546
|
cardobj.productfeature = arrayItem === null || arrayItem === void 0 || (_arrayItem$features2 = arrayItem.features) === null || _arrayItem$features2 === void 0 ? void 0 : _arrayItem$features2.value_ar;
|
|
46546
46547
|
}
|
|
46547
46548
|
cardobj.productfeatureid = arrayItem === null || arrayItem === void 0 || (_arrayItem$features3 = arrayItem.features) === null || _arrayItem$features3 === void 0 ? void 0 : _arrayItem$features3.featureid;
|
|
46549
|
+
cardobj.productendpointurl = arrayItem.productinfo.productendpointurl;
|
|
46548
46550
|
cardobj.hassale = arrayItem.productinfo.hassale;
|
|
46549
46551
|
cardobj.productid = arrayItem.productinfo.productid;
|
|
46550
46552
|
cardobj.hasvariants = arrayItem.productinfo.hasvariants;
|
|
@@ -46976,6 +46978,7 @@
|
|
|
46976
46978
|
image: ''
|
|
46977
46979
|
};
|
|
46978
46980
|
if (fetchingtype == 'products') {
|
|
46981
|
+
var _arrayItem$features3;
|
|
46979
46982
|
var itemquantity = 0;
|
|
46980
46983
|
if (langdetect == 'en') {
|
|
46981
46984
|
cardobj.name = arrayItem.productinfo.name_en;
|
|
@@ -46987,6 +46990,11 @@
|
|
|
46987
46990
|
} else {
|
|
46988
46991
|
cardobj.description = arrayItem.productinfo.description_ar;
|
|
46989
46992
|
}
|
|
46993
|
+
if (langdetect == 'en') {
|
|
46994
|
+
cardobj.shortdescription = arrayItem.short_description_en;
|
|
46995
|
+
} else {
|
|
46996
|
+
cardobj.shortdescription = arrayItem.short_description_ar;
|
|
46997
|
+
}
|
|
46990
46998
|
if (arrayItem.productinfo.hasvariants == 0) {
|
|
46991
46999
|
fetchcustomercartQueryContext.data.data.customercart.cartitems.forEach(function (cartitem, cartindex) {
|
|
46992
47000
|
if (cartitem.productid == arrayItem.productinfo.productid) {
|
|
@@ -46995,6 +47003,16 @@
|
|
|
46995
47003
|
});
|
|
46996
47004
|
}
|
|
46997
47005
|
cardobj.image = arrayItem.productinfo.productmainimage;
|
|
47006
|
+
cardobj.producttags = arrayItem.tags;
|
|
47007
|
+
if (langdetect == 'en') {
|
|
47008
|
+
var _arrayItem$features;
|
|
47009
|
+
cardobj.productfeature = arrayItem === null || arrayItem === void 0 || (_arrayItem$features = arrayItem.features) === null || _arrayItem$features === void 0 ? void 0 : _arrayItem$features.value_en;
|
|
47010
|
+
} else {
|
|
47011
|
+
var _arrayItem$features2;
|
|
47012
|
+
cardobj.productfeature = arrayItem === null || arrayItem === void 0 || (_arrayItem$features2 = arrayItem.features) === null || _arrayItem$features2 === void 0 ? void 0 : _arrayItem$features2.value_ar;
|
|
47013
|
+
}
|
|
47014
|
+
cardobj.productfeatureid = arrayItem === null || arrayItem === void 0 || (_arrayItem$features3 = arrayItem.features) === null || _arrayItem$features3 === void 0 ? void 0 : _arrayItem$features3.featureid;
|
|
47015
|
+
cardobj.productendpointurl = arrayItem.productinfo.productendpointurl;
|
|
46998
47016
|
cardobj.hassale = arrayItem.productinfo.hassale;
|
|
46999
47017
|
cardobj.productid = arrayItem.productinfo.productid;
|
|
47000
47018
|
cardobj.hasvariants = arrayItem.productinfo.hasvariants;
|
|
@@ -47004,11 +47022,24 @@
|
|
|
47004
47022
|
cardobj.defaultsaleprice = arrayItem.productinfo.defaultsaleprice;
|
|
47005
47023
|
cardobj.productimages = arrayItem.productinfo.productimages;
|
|
47006
47024
|
cardobj.quantity = itemquantity;
|
|
47025
|
+
// cardobj.currentquantity = currentquantity;
|
|
47007
47026
|
cardobj.timestamp = arrayItem.productinfo.timestamp;
|
|
47027
|
+
cardobj.productquantity = arrayItem.productinfo.productquantity;
|
|
47028
|
+
cardobj.currentquantity = arrayItem.productinfo.currentquantity;
|
|
47029
|
+
cardobj.quantavailtype = arrayItem.productinfo.quantavailtype;
|
|
47030
|
+
cardobj.isproducttobesold = arrayItem.productinfo.isproducttobesold;
|
|
47031
|
+
cardobj.measurmentunit = arrayItem.productinfo.measurmentunit;
|
|
47032
|
+
cardobj.prodaffpercentprofit = arrayItem.productinfo.prodaffpercentprofit;
|
|
47033
|
+
cardobj.productcashbackvalue = arrayItem.productinfo.productcashbackvalue;
|
|
47034
|
+
cardobj.product_phonenumber = arrayItem.productinfo.product_phonenumber;
|
|
47035
|
+
cardobj.productcanrate = arrayItem.productinfo.productcanrate;
|
|
47036
|
+
cardobj.sku = arrayItem.productinfo.sku;
|
|
47008
47037
|
if (langdetect == 'en') {
|
|
47009
|
-
|
|
47038
|
+
var _fetchAuthorizationQu;
|
|
47039
|
+
cardobj.currencyname = fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 || (_fetchAuthorizationQu = fetchAuthorizationQueryContext.data) === null || _fetchAuthorizationQu === void 0 || (_fetchAuthorizationQu = _fetchAuthorizationQu.data) === null || _fetchAuthorizationQu === void 0 ? void 0 : _fetchAuthorizationQu.currencyname_en;
|
|
47010
47040
|
} else {
|
|
47011
|
-
|
|
47041
|
+
var _fetchAuthorizationQu2;
|
|
47042
|
+
cardobj.currencyname = fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 || (_fetchAuthorizationQu2 = fetchAuthorizationQueryContext.data) === null || _fetchAuthorizationQu2 === void 0 || (_fetchAuthorizationQu2 = _fetchAuthorizationQu2.data) === null || _fetchAuthorizationQu2 === void 0 ? void 0 : _fetchAuthorizationQu2.currencyname_ar;
|
|
47012
47043
|
}
|
|
47013
47044
|
if (favoriteprojectscountContext != undefined && favoriteprojectscountContext.length != 0) {
|
|
47014
47045
|
favoriteprojectscountContext.forEach(function (favitem, favindex) {
|
|
@@ -47017,8 +47048,9 @@
|
|
|
47017
47048
|
}
|
|
47018
47049
|
});
|
|
47019
47050
|
}
|
|
47020
|
-
} else if (fetchingtype == 'collections') {
|
|
47051
|
+
} else if (fetchingtype == 'collections' || fetchingtype == 'innerparentcollections') {
|
|
47021
47052
|
cardobj.collectionid = arrayItem.collectionid;
|
|
47053
|
+
cardobj.skiplayeronclick = arrayItem === null || arrayItem === void 0 ? void 0 : arrayItem.skiplayeronclick;
|
|
47022
47054
|
if (langdetect == 'en') {
|
|
47023
47055
|
cardobj.name = arrayItem.title_en;
|
|
47024
47056
|
cardobj.description = arrayItem.description_en;
|
|
@@ -47027,7 +47059,44 @@
|
|
|
47027
47059
|
cardobj.description = arrayItem.description_ar;
|
|
47028
47060
|
}
|
|
47029
47061
|
cardobj.image = arrayItem.collectionlogo;
|
|
47030
|
-
|
|
47062
|
+
cardobj.producttags = [];
|
|
47063
|
+
cardobj.productfeatures = [];
|
|
47064
|
+
} else if (fetchingtype == 'categories') {
|
|
47065
|
+
cardobj.collectionid = arrayItem.categoryid;
|
|
47066
|
+
cardobj.skiplayeronclick = arrayItem === null || arrayItem === void 0 ? void 0 : arrayItem.skiplayeronclick;
|
|
47067
|
+
if (langdetect == 'en') {
|
|
47068
|
+
cardobj.name = arrayItem.title_en;
|
|
47069
|
+
cardobj.description = arrayItem.description_en;
|
|
47070
|
+
} else if (langdetect == 'ar') {
|
|
47071
|
+
cardobj.name = arrayItem.title_ar;
|
|
47072
|
+
cardobj.description = arrayItem.description_ar;
|
|
47073
|
+
}
|
|
47074
|
+
cardobj.image = arrayItem.categorylogo;
|
|
47075
|
+
cardobj.producttags = [];
|
|
47076
|
+
cardobj.productfeatures = [];
|
|
47077
|
+
} else if (fetchingtype == 'parentcollections' || fetchingtype == 'innercategories') {
|
|
47078
|
+
cardobj.collectionid = arrayItem.parentcollectionid;
|
|
47079
|
+
cardobj.skiplayeronclick = arrayItem === null || arrayItem === void 0 ? void 0 : arrayItem.skiplayeronclick;
|
|
47080
|
+
if (langdetect == 'en') {
|
|
47081
|
+
cardobj.name = arrayItem.title_en;
|
|
47082
|
+
cardobj.description = arrayItem.description_en;
|
|
47083
|
+
} else if (langdetect == 'ar') {
|
|
47084
|
+
cardobj.name = arrayItem.title_ar;
|
|
47085
|
+
cardobj.description = arrayItem.description_ar;
|
|
47086
|
+
}
|
|
47087
|
+
cardobj.image = arrayItem.parentcollectionlogo;
|
|
47088
|
+
cardobj.producttags = [];
|
|
47089
|
+
cardobj.productfeatures = [];
|
|
47090
|
+
} else if (fetchingtype == 'custom') {
|
|
47091
|
+
cardobj.producttags = [];
|
|
47092
|
+
cardobj.productfeatures = [];
|
|
47093
|
+
} else if (fetchingtype == 'vendors') {
|
|
47094
|
+
cardobj.name = arrayItem.vendorname;
|
|
47095
|
+
cardobj.collectionid = arrayItem.vendorid;
|
|
47096
|
+
cardobj.image = arrayItem.vendorlogourl;
|
|
47097
|
+
cardobj.producttags = [];
|
|
47098
|
+
cardobj.productfeatures = [];
|
|
47099
|
+
}
|
|
47031
47100
|
temparray.push(cardobj);
|
|
47032
47101
|
});
|
|
47033
47102
|
setcardsarray([].concat(temparray));
|
|
@@ -71966,8 +72035,13 @@
|
|
|
71966
72035
|
// Check if it's the second click
|
|
71967
72036
|
if (clickCount === 1) {
|
|
71968
72037
|
// Do whatever you want on the second click
|
|
71969
|
-
|
|
71970
|
-
|
|
72038
|
+
var productidtobesend = null;
|
|
72039
|
+
if (sectionproperties.urlwithproductname == 'Yes') {
|
|
72040
|
+
productidtobesend = item.productendpointurl;
|
|
72041
|
+
} else {
|
|
72042
|
+
productidtobesend = item.productid;
|
|
72043
|
+
}
|
|
72044
|
+
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, productidtobesend, props.fetchingtypeprops, item.collectionid);
|
|
71971
72045
|
}
|
|
71972
72046
|
};
|
|
71973
72047
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -72110,7 +72184,13 @@
|
|
|
72110
72184
|
},
|
|
72111
72185
|
onClick: function onClick(e) {
|
|
72112
72186
|
e.stopPropagation();
|
|
72113
|
-
|
|
72187
|
+
var productidtobesend = null;
|
|
72188
|
+
if (sectionproperties.urlwithproductname == 'Yes') {
|
|
72189
|
+
productidtobesend = item.productendpointurl;
|
|
72190
|
+
} else {
|
|
72191
|
+
productidtobesend = item.productid;
|
|
72192
|
+
}
|
|
72193
|
+
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, productidtobesend, props.fetchingtypeprops, item.collectionid);
|
|
72114
72194
|
}
|
|
72115
72195
|
}, Image('normal')), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
72116
72196
|
"class": sectionproperties.hideshowcardtransition == 'Show' ? " ".concat(card_cssstyles.productcardimagecont, " ").concat(cardstyles$7.imagecontainer) + ' d-none d-md-flex ' : " ".concat(card_cssstyles.productcardimagecont, " ") + ' d-none d-md-flex ',
|
|
@@ -72158,7 +72238,13 @@
|
|
|
72158
72238
|
}
|
|
72159
72239
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
72160
72240
|
onClick: function onClick() {
|
|
72161
|
-
|
|
72241
|
+
var productidtobesend = null;
|
|
72242
|
+
if (sectionproperties.urlwithproductname == 'Yes') {
|
|
72243
|
+
productidtobesend = item.productendpointurl;
|
|
72244
|
+
} else {
|
|
72245
|
+
productidtobesend = item.productid;
|
|
72246
|
+
}
|
|
72247
|
+
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, productidtobesend, props.fetchingtypeprops, item.collectionid);
|
|
72162
72248
|
},
|
|
72163
72249
|
"class": sectionproperties.wordbreak == '1' ? "".concat(card_cssstyles.productNameStyles) + ' wordbreak wordbreak1 font-md-13 m-0 mb-1 ' : "".concat(card_cssstyles.productNameStyles) + ' wordbreak wordbreak2 font-md-13 wordbreak-md-4 m-0 ',
|
|
72164
72250
|
style: {
|
|
@@ -72234,7 +72320,13 @@
|
|
|
72234
72320
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
72235
72321
|
"class": "".concat(card_cssstyles.cart_btn) + ' m-0 p-0 d-flex align-items-center justify-content-center mt-1 ',
|
|
72236
72322
|
onClick: function onClick() {
|
|
72237
|
-
|
|
72323
|
+
var productidtobesend = null;
|
|
72324
|
+
if (sectionproperties.urlwithproductname == 'Yes') {
|
|
72325
|
+
productidtobesend = item.productendpointurl;
|
|
72326
|
+
} else {
|
|
72327
|
+
productidtobesend = item.productid;
|
|
72328
|
+
}
|
|
72329
|
+
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, productidtobesend, props.fetchingtypeprops, item.collectionid);
|
|
72238
72330
|
// setShowProductInfoModalContext(true);
|
|
72239
72331
|
// setProductIdProdutInfoModalContext(item.productid);
|
|
72240
72332
|
}
|