tabexseriescomponents 0.0.579 → 0.0.581
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 +355 -160
- package/dist/index.esm.js +355 -160
- package/dist/index.umd.js +355 -160
- package/package.json +2 -1
package/dist/index.umd.js
CHANGED
|
@@ -3467,6 +3467,10 @@
|
|
|
3467
3467
|
item_type: 'service'
|
|
3468
3468
|
}));
|
|
3469
3469
|
}, [tabsarray]);
|
|
3470
|
+
var today = new Date();
|
|
3471
|
+
today.getFullYear();
|
|
3472
|
+
(today.getMonth() + 1).toString().padStart(2, '0'); // Adding leading zero if necessary
|
|
3473
|
+
today.getDate().toString().padStart(2, '0'); // Adding leading zero if necessary
|
|
3470
3474
|
React.useEffect(function () {
|
|
3471
3475
|
var date1 = new Date(addtocardpayloadobj.from);
|
|
3472
3476
|
var date2 = new Date(addtocardpayloadobj.to);
|
|
@@ -4238,7 +4242,7 @@
|
|
|
4238
4242
|
};
|
|
4239
4243
|
|
|
4240
4244
|
var Service_itemtype = function Service_itemtype(props) {
|
|
4241
|
-
var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8;
|
|
4245
|
+
var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _fetchProductInfoQuer15, _fetchProductInfoQuer16, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8;
|
|
4242
4246
|
var lang = props.actions.lang;
|
|
4243
4247
|
var langdetect = props.actions.langdetect;
|
|
4244
4248
|
var srcfromprops = props.actions.srcfromprops;
|
|
@@ -4490,12 +4494,23 @@
|
|
|
4490
4494
|
className: "col-lg-8 col-md-8 col-sm-12 p-0 mb-1 d-none d-sm-flex justify-content-start align-items-center"
|
|
4491
4495
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4492
4496
|
"class": "row m-0 w-100"
|
|
4493
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4497
|
+
}, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer6 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.data) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.productinfo) === null || _fetchProductInfoQuer6 === void 0 ? void 0 : _fetchProductInfoQuer6.vendorinfo) != null && sectionproperties.showvendor == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4498
|
+
"class": "col-lg-12 p-0 d-flex justify-content-start mb-2"
|
|
4499
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
4500
|
+
"class": "m-0 p-0",
|
|
4501
|
+
style: {
|
|
4502
|
+
color: '#000'
|
|
4503
|
+
}
|
|
4504
|
+
}, langdetect == 'en' ? sectionproperties.vendortitleen : sectionproperties.vendortitlear, ":", ' ', /*#__PURE__*/React__default["default"].createElement("span", {
|
|
4505
|
+
style: {
|
|
4506
|
+
fontWeight: 600
|
|
4507
|
+
}
|
|
4508
|
+
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer7 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.data) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.productinfo) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.vendorinfo) === null || _fetchProductInfoQuer7 === void 0 ? void 0 : _fetchProductInfoQuer7.vendorname))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4494
4509
|
"class": "col-lg-12 p-0 d-flex justify-content-start"
|
|
4495
4510
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4496
4511
|
"class": "row m-0 w-100"
|
|
4497
4512
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4498
|
-
className: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4513
|
+
className: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer8 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.data) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.productinfo) === null || _fetchProductInfoQuer8 === void 0 ? void 0 : _fetchProductInfoQuer8.productcanrate) == 1 ? 'col-lg-8 col-md-8 col-sm-8 p-0 mb-1 d-flex justify-content-start align-items-center' : sectionproperties.btnposition == 'Top' ? 'col-lg-8 col-md-8 col-sm-8 p-0 mb-1 d-flex justify-content-start align-items-center' : sectionproperties.availabilitybtnposition == 'Top' && sectionproperties.show_availability == 'Show' ? 'col-lg-8 col-md-8 col-sm-8 p-0 mb-1 d-flex justify-content-start align-items-center' : 'col-lg-12 p-0 mb-1 d-flex justify-content-start align-items-center'
|
|
4499
4514
|
}, ProductName()), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4500
4515
|
className: "col-lg-4 col-md-4 col-sm-4 p-0 mb-1 d-flex justify-content-end align-items-center"
|
|
4501
4516
|
}, sectionproperties.btnposition == 'Top' && sectionproperties.favBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -4526,11 +4541,11 @@
|
|
|
4526
4541
|
size: sectionproperties.favBtnIconfontsize
|
|
4527
4542
|
}), sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React__default["default"].createElement(FaRegHeart.FaRegHeart, {
|
|
4528
4543
|
size: sectionproperties.favBtnIconfontsize
|
|
4529
|
-
}))))))), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4544
|
+
}))))))), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer9 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer9 === void 0 || (_fetchProductInfoQuer9 = _fetchProductInfoQuer9.data) === null || _fetchProductInfoQuer9 === void 0 || (_fetchProductInfoQuer9 = _fetchProductInfoQuer9.productinfo) === null || _fetchProductInfoQuer9 === void 0 ? void 0 : _fetchProductInfoQuer9.productcanrate) == 1 && sectionproperties.showrating == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4530
4545
|
"class": "col-lg-12 p-0 d-flex justify-content-start"
|
|
4531
4546
|
}, /*#__PURE__*/React__default["default"].createElement(ReactStars__default["default"], {
|
|
4532
4547
|
count: 5,
|
|
4533
|
-
value: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4548
|
+
value: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer10 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer10 === void 0 || (_fetchProductInfoQuer10 = _fetchProductInfoQuer10.data) === null || _fetchProductInfoQuer10 === void 0 || (_fetchProductInfoQuer10 = _fetchProductInfoQuer10.productinfo) === null || _fetchProductInfoQuer10 === void 0 ? void 0 : _fetchProductInfoQuer10.productoverallrate,
|
|
4534
4549
|
edit: false,
|
|
4535
4550
|
size: 18,
|
|
4536
4551
|
emptyIcon: /*#__PURE__*/React__default["default"].createElement("i", {
|
|
@@ -4550,7 +4565,7 @@
|
|
|
4550
4565
|
}),
|
|
4551
4566
|
activeColor: "#ffd700"
|
|
4552
4567
|
})))), sectionproperties.showSKU == 'Show' && sectionproperties.productInformationType == 'Product/Service Information' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4553
|
-
"class": sectionproperties.deliverytimeshow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4568
|
+
"class": sectionproperties.deliverytimeshow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer11 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer11 === void 0 || (_fetchProductInfoQuer11 = _fetchProductInfoQuer11.data) === null || _fetchProductInfoQuer11 === void 0 || (_fetchProductInfoQuer11 = _fetchProductInfoQuer11.productinfo) === null || _fetchProductInfoQuer11 === void 0 ? void 0 : _fetchProductInfoQuer11.deliverydatetext) != null ? 'col-lg-12 p-0 mb-2 d-flex justify-content-start' : 'col-lg-12 p-0 mb-3 d-flex justify-content-start'
|
|
4554
4569
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
4555
4570
|
"class": "m-0 p-0 d-flex justify-content-start"
|
|
4556
4571
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
@@ -4570,7 +4585,26 @@
|
|
|
4570
4585
|
}
|
|
4571
4586
|
}, fetchProductInfoQueryContext.data.data.productinfo.sku))), /*#__PURE__*/React__default["default"].createElement(ProductHeaderPricing, {
|
|
4572
4587
|
actions: props.actions
|
|
4573
|
-
}), sectionproperties.
|
|
4588
|
+
}), sectionproperties.descriptionstyle == 'Style 1' && sectionproperties.descriptionposition == 'Top' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4589
|
+
"class": "col-lg-12 col-md-12 p-md-0 mt-3"
|
|
4590
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4591
|
+
"class": "row m-0 w-100"
|
|
4592
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4593
|
+
className: "col-lg-10 col-md-10 col-sm-10 p-0 d-flex align-items-center justify-content-start"
|
|
4594
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
4595
|
+
"class": "m-0 p-0",
|
|
4596
|
+
style: {
|
|
4597
|
+
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
4598
|
+
fontWeight: sectionproperties.prodCatFontWeight,
|
|
4599
|
+
color: sectionproperties.prodCatColor,
|
|
4600
|
+
fontSize: sectionproperties.prodCatFontSize + 'px'
|
|
4601
|
+
}
|
|
4602
|
+
}, langdetect == 'en' ? sectionproperties.descriptionContentEn : sectionproperties.descriptionContentAr))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4603
|
+
"class": "col-lg-12 p-0 mt-3"
|
|
4604
|
+
}, /*#__PURE__*/React__default["default"].createElement(DescriptionContent, {
|
|
4605
|
+
actions: props.actions,
|
|
4606
|
+
srcfromprops: 'collap'
|
|
4607
|
+
}))), sectionproperties.deliverytimeshow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer12 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer12 === void 0 || (_fetchProductInfoQuer12 = _fetchProductInfoQuer12.data) === null || _fetchProductInfoQuer12 === void 0 || (_fetchProductInfoQuer12 = _fetchProductInfoQuer12.productinfo) === null || _fetchProductInfoQuer12 === void 0 ? void 0 : _fetchProductInfoQuer12.deliverydatetext) != null && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4574
4608
|
"class": sectionproperties.gallerystyle == 'Style 2' ? 'mb-4 col-lg-6 d-flex flex-row flex-sm-column allcentered' : 'mb-4 col-lg-12 d-flex flex-row flex-sm-column allcentered',
|
|
4575
4609
|
style: {
|
|
4576
4610
|
width: '100%',
|
|
@@ -4596,11 +4630,11 @@
|
|
|
4596
4630
|
// textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
4597
4631
|
color: sectionproperties.deliverytimecontainercolor
|
|
4598
4632
|
}
|
|
4599
|
-
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4633
|
+
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer13 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer13 === void 0 || (_fetchProductInfoQuer13 = _fetchProductInfoQuer13.data) === null || _fetchProductInfoQuer13 === void 0 || (_fetchProductInfoQuer13 = _fetchProductInfoQuer13.productinfo) === null || _fetchProductInfoQuer13 === void 0 ? void 0 : _fetchProductInfoQuer13.deliverydatetext)), sectionproperties.showfeatures == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4600
4634
|
"class": "col-lg-12 text-start p-md-0"
|
|
4601
4635
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4602
4636
|
className: "row m-0 w-100"
|
|
4603
|
-
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4637
|
+
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer14 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer14 === void 0 || (_fetchProductInfoQuer14 = _fetchProductInfoQuer14.data) === null || _fetchProductInfoQuer14 === void 0 || (_fetchProductInfoQuer14 = _fetchProductInfoQuer14.productinfo) === null || _fetchProductInfoQuer14 === void 0 || (_fetchProductInfoQuer14 = _fetchProductInfoQuer14.productfeatures) === null || _fetchProductInfoQuer14 === void 0 ? void 0 : _fetchProductInfoQuer14.map(function (fitem, findex) {
|
|
4604
4638
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4605
4639
|
"class": "col-lg-4 col-md-12 p-0 mb-3 mt-2"
|
|
4606
4640
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -4726,7 +4760,7 @@
|
|
|
4726
4760
|
color: sectionproperties.prodCatColor
|
|
4727
4761
|
},
|
|
4728
4762
|
dangerouslySetInnerHTML: {
|
|
4729
|
-
__html: langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4763
|
+
__html: langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer15 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer15 === void 0 || (_fetchProductInfoQuer15 = _fetchProductInfoQuer15.data) === null || _fetchProductInfoQuer15 === void 0 || (_fetchProductInfoQuer15 = _fetchProductInfoQuer15.productinfo) === null || _fetchProductInfoQuer15 === void 0 ? void 0 : _fetchProductInfoQuer15.short_description_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer16 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer16 === void 0 || (_fetchProductInfoQuer16 = _fetchProductInfoQuer16.data) === null || _fetchProductInfoQuer16 === void 0 || (_fetchProductInfoQuer16 = _fetchProductInfoQuer16.productinfo) === null || _fetchProductInfoQuer16 === void 0 ? void 0 : _fetchProductInfoQuer16.short_description_ar
|
|
4730
4764
|
}
|
|
4731
4765
|
})))))), sectionproperties.descriptionstyle == 'Style 2' && sectionproperties.showshortdescription == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4732
4766
|
"class": "col-lg-12 col-md-12 my-3 p-md-0"
|
|
@@ -4851,7 +4885,7 @@
|
|
|
4851
4885
|
onClick: function onClick() {
|
|
4852
4886
|
routingcountext(StaticPagesLinksContext.RefundPolicy);
|
|
4853
4887
|
}
|
|
4854
|
-
},
|
|
4888
|
+
}, langdetect == 'en' ? 'SEE MORE' : 'عرض المزيد')))))), sectionproperties.descriptionstyle == 'Style 2' && sectionproperties.showfirstpolicy == 'Show' && sectionproperties.showsecondpolicy == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4855
4889
|
"class": "col-lg-12 col-md-12 my-3 p-md-0"
|
|
4856
4890
|
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
4857
4891
|
"class": "m-0"
|
|
@@ -17507,9 +17541,11 @@
|
|
|
17507
17541
|
}
|
|
17508
17542
|
var section_cssstyles = {
|
|
17509
17543
|
sectioncontainerr: glamor.css({
|
|
17544
|
+
width: sectionproperties.width + 'vw',
|
|
17510
17545
|
marginTop: sectionproperties.marginTop + 'px',
|
|
17511
17546
|
'@media (max-width: 800px)': {
|
|
17512
|
-
marginTop: sectionproperties.marginTopResp != undefined && sectionproperties.marginTopResp != undefined ? sectionproperties.marginTopResp + 'px' : sectionproperties.marginTop + 'px'
|
|
17547
|
+
marginTop: sectionproperties.marginTopResp != undefined && sectionproperties.marginTopResp != undefined ? sectionproperties.marginTopResp + 'px' : sectionproperties.marginTop + 'px',
|
|
17548
|
+
width: sectionproperties.widthresponsive + 'vw'
|
|
17513
17549
|
}
|
|
17514
17550
|
}),
|
|
17515
17551
|
innercardssection: glamor.css({
|
|
@@ -17854,7 +17890,7 @@
|
|
|
17854
17890
|
}
|
|
17855
17891
|
}, SectionTitle()), sectionproperties.sectiontitledirection == 'Vertical' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17856
17892
|
"class": "col-lg-12 p-0"
|
|
17857
|
-
}, sectionproperties.viewmorebtnshow == 'Show' && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
17893
|
+
}, sectionproperties.viewmorebtnshow == 'Show' && sectionproperties.viewmorebtnposition != 'Under Section' && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
17858
17894
|
"class": sectionproperties.viewmorebtn_bgtransparent == 'Transparent' ? sectionproperties.sectiontitleposition == 'Centered' ? "".concat(section_cssstyles.viewmorebtn) + ' m-sm-0 allcentered mt-auto mb-auto mb-sm-3 ' : "".concat(section_cssstyles.viewmorebtn) + ' m-sm-0 mt-auto mb-auto ' : sectionproperties.sectiontitleposition == 'Centered' ? "".concat(section_cssstyles.viewmorebtn) + ' m-sm-0 allcentered mt-auto mb-auto ' : "".concat(section_cssstyles.viewmorebtn) + ' m-sm-0 mt-auto mb-auto ',
|
|
17859
17895
|
onClick: function onClick() {
|
|
17860
17896
|
if (fetchingtype == 'products') {
|
|
@@ -17923,7 +17959,7 @@
|
|
|
17923
17959
|
}
|
|
17924
17960
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
17925
17961
|
"class": sectionproperties.sectiontitleposition == 'Centered' ? ' row m-0 w-100 d-flex align-item-center justify-content-center mt-auto mb-auto ' : ' row m-0 w-100 d-flex align-item-center justify-content-end mt-auto mb-auto '
|
|
17926
|
-
}, sectionproperties.viewmorebtnshow == 'Show' && sectionproperties.sectiontitledirection == 'Horizontal' && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
17962
|
+
}, sectionproperties.viewmorebtnshow == 'Show' && sectionproperties.sectiontitledirection == 'Horizontal' && sectionproperties.viewmorebtnposition != 'Under Section' && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
17927
17963
|
"class": sectionproperties.viewmorebtn_bgtransparent == 'Transparent' ? sectionproperties.sectiontitleposition == 'Centered' ? "".concat(section_cssstyles.viewmorebtn) + ' m-sm-0 allcentered mt-auto mb-auto mb-sm-3 ' : "".concat(section_cssstyles.viewmorebtn) + ' w-sm-auto btn-circle-resp m-sm-0 mt-auto mb-auto ' : sectionproperties.sectiontitleposition == 'Centered' ? "".concat(section_cssstyles.viewmorebtn) + ' m-sm-0 allcentered mt-auto mb-auto ' : "".concat(section_cssstyles.viewmorebtn) + ' w-sm-auto btn-circle-resp m-sm-0 mt-auto mb-auto ',
|
|
17928
17964
|
onClick: function onClick() {
|
|
17929
17965
|
if (fetchingtype == 'products') {
|
|
@@ -18078,7 +18114,10 @@
|
|
|
18078
18114
|
item.tabexsectioninfo.sectioncompname == 'Productcard7' ? 'scrollmenuclassnameitemProductcard7' : item.tabexsectioninfo.sectioncompname == 'MenuCard' ? 'scrollmenuclassnameitemMenuCard' : item.tabexsectioninfo.sectioncompname == 'StylishProductCard' ? 'scrollmenuclassnameitemStylishProductCard' : item.tabexsectioninfo.sectioncompname == 'ProductCardWithTextOnImage' ? 'scrollmenuclassnameitemProductCardWithTextOnImage' :
|
|
18079
18115
|
// : item.tabexsectioninfo.sectioncompname == 'Card23'
|
|
18080
18116
|
// ? 'scrollmenuclassnameitemCard23'
|
|
18081
|
-
item.tabexsectioninfo.sectioncompname == 'Card20' ? 'scrollmenuclassnameitemCard20' : item.tabexsectioninfo.sectioncompname == 'ModernCardWithQuantityButton' ? 'scrollmenuclassnameitemModernCardWithQuantityButton' :
|
|
18117
|
+
item.tabexsectioninfo.sectioncompname == 'Card20' ? 'scrollmenuclassnameitemCard20' : item.tabexsectioninfo.sectioncompname == 'ModernCardWithQuantityButton' ? 'scrollmenuclassnameitemModernCardWithQuantityButton' :
|
|
18118
|
+
// : item.tabexsectioninfo.sectioncompname == 'CategoryCardwithhoveraction'
|
|
18119
|
+
// ? 'scrollmenuclassnameitemCategoryCardwithhoveraction'
|
|
18120
|
+
item.tabexsectioninfo.sectioncompname == 'CircleCardWithVariants' ? 'scrollmenuclassnameitemCircleCardWithVariants' :
|
|
18082
18121
|
// : item.tabexsectioninfo.sectioncompname == 'UpSlideEffectCard'
|
|
18083
18122
|
// ? 'scrollmenuclassnameitemUpSlideEffectCard'
|
|
18084
18123
|
item.tabexsectioninfo.sectioncompname == 'CategoryCardTextOnImage' ? 'scrollmenuclassnameitemCategoryCardTextOnImage' : '',
|
|
@@ -18340,24 +18379,55 @@
|
|
|
18340
18379
|
}))));
|
|
18341
18380
|
}
|
|
18342
18381
|
}
|
|
18343
|
-
}))
|
|
18382
|
+
})), sectionproperties.viewmorebtnposition == 'Under Section' && sectionproperties.viewmorebtnshow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18383
|
+
"class": "col-lg-12 p-0 allcentered"
|
|
18384
|
+
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
18385
|
+
"class": sectionproperties.viewmorebtn_bgtransparent == 'Transparent' ? sectionproperties.sectiontitleposition == 'Centered' ? "".concat(section_cssstyles.viewmorebtn) + ' m-sm-0 allcentered mt-auto mb-auto mb-sm-3 ' : "".concat(section_cssstyles.viewmorebtn) + ' m-sm-0 mt-auto mb-auto ' : sectionproperties.sectiontitleposition == 'Centered' ? "".concat(section_cssstyles.viewmorebtn) + ' m-sm-0 allcentered mt-auto mb-auto ' : "".concat(section_cssstyles.viewmorebtn) + ' m-sm-0 mt-auto mb-auto ',
|
|
18386
|
+
onClick: function onClick() {
|
|
18387
|
+
if (fetchingtype == 'products') {
|
|
18388
|
+
if (ProductsFetchingTypeSectionObj.productfetchingtype == 'Collection') {
|
|
18389
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + ProductsFetchingTypeSectionObj.collectionid);
|
|
18390
|
+
} else {
|
|
18391
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(ProductFilterObjContext)));
|
|
18392
|
+
}
|
|
18393
|
+
} else {
|
|
18394
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
|
|
18395
|
+
}
|
|
18396
|
+
},
|
|
18397
|
+
style: {
|
|
18398
|
+
flexDirection: 'row'
|
|
18399
|
+
}
|
|
18400
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
18401
|
+
"class": 'd-flex justify-content-center align-items-center'
|
|
18402
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
18403
|
+
"class": sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : 'Poppins'
|
|
18404
|
+
}, langdetect == 'en' ? sectionproperties.viewmorebtn_text : sectionproperties.viewmorebtn_text_ar), sectionproperties.showIcon == 'Show' && /*#__PURE__*/React__default["default"].createElement("i", {
|
|
18405
|
+
"class": sectionproperties.sectiontitleposition == 'Centered' ? 'd-flex justify-content-center align-items-center h-100 allcentered' : 'd-flex justify-content-center align-items-center d-md-none h-100',
|
|
18406
|
+
style: {
|
|
18407
|
+
marginLeft: 5,
|
|
18408
|
+
marginRight: 5
|
|
18409
|
+
}
|
|
18410
|
+
}, langdetect == 'en' ? /*#__PURE__*/React__default["default"].createElement(HiOutlineArrowRight.HiOutlineArrowRight, {
|
|
18411
|
+
size: sectionproperties.viewmoreiconfontsize
|
|
18412
|
+
}) : /*#__PURE__*/React__default["default"].createElement(HiOutlineArrowLeft.HiOutlineArrowLeft, {
|
|
18413
|
+
size: sectionproperties.viewmoreiconfontsize
|
|
18414
|
+
})))))));
|
|
18344
18415
|
};
|
|
18345
18416
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18346
18417
|
ref: refscr,
|
|
18347
|
-
"class": section_cssstyles.sectioncontainerr + ' row ml-0 mr-0 d-flex justify-content-center ml-auto mr-auto
|
|
18418
|
+
"class": section_cssstyles.sectioncontainerr + ' row ml-0 mr-0 d-flex justify-content-center ml-auto mr-auto ',
|
|
18348
18419
|
style: {
|
|
18349
18420
|
zIndex: 2,
|
|
18350
18421
|
background: sectionproperties.backgroundColortransparent == 'Transparent' ? 'transparent' : sectionproperties.backgroundColor,
|
|
18351
18422
|
backgroundImage: maincontainerarrayofobjs.length != 0 ? 'url(' + image_serverbaselink + maincontainerarrayofobjs[0].back_bgimage + ')' : '',
|
|
18352
18423
|
backgroundSize: 'cover',
|
|
18353
|
-
width: sectionproperties.width + 'vw',
|
|
18354
18424
|
boxShadow: sectionproperties.sectioncardshadow == 'Show' ? '0 0 10px ' + sectionproperties.sectioncardshadowcolor : 'none',
|
|
18355
18425
|
borderBottomLeftRadius: langdetect == 'en' ? sectionproperties.borderBottomLeftRadius + 'px' : sectionproperties.borderBottomRightRadius + 'px',
|
|
18356
18426
|
borderBottomRightRadius: langdetect == 'en' ? sectionproperties.borderBottomRightRadius + 'px' : sectionproperties.borderBottomLeftRadius + 'px',
|
|
18357
18427
|
borderTopLeftRadius: langdetect == 'en' ? sectionproperties.borderTopLeftRadius + 'px' : sectionproperties.borderTopRightRadius + 'px',
|
|
18358
18428
|
borderTopRightRadius: langdetect == 'en' ? sectionproperties.borderTopRightRadius + 'px' : sectionproperties.borderTopLeftRadius + 'px',
|
|
18359
|
-
marginBottom: sectionproperties.marginBottom + 'px'
|
|
18360
|
-
minHeight: sectionproperties.height == null || sectionproperties.height == 0 ? 'auto' : sectionproperties.height + 'vh'
|
|
18429
|
+
marginBottom: sectionproperties.marginBottom + 'px'
|
|
18430
|
+
// minHeight: sectionproperties.height == null || sectionproperties.height == 0 ? 'auto' : sectionproperties.height + 'vh',
|
|
18361
18431
|
}
|
|
18362
18432
|
}, sectionproperties.length != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18363
18433
|
"class": section_cssstyles.innercardssection + ' row ml-0 mr-0 d-flex justify-content-center w-md-100 h-md-100 w-100 '
|
|
@@ -24297,7 +24367,7 @@
|
|
|
24297
24367
|
sectionpropertiesprops: sectionproperties,
|
|
24298
24368
|
srcfromprops: 'header-400',
|
|
24299
24369
|
actions: actions
|
|
24300
|
-
})))), /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"], {
|
|
24370
|
+
})))), sectionproperties.ShowUserBtn == 'Show' && /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"], {
|
|
24301
24371
|
style: {
|
|
24302
24372
|
marginLeft: langdetect == 'en' ? '1rem' : '',
|
|
24303
24373
|
marginRight: langdetect == 'ar' ? '1rem' : ''
|
|
@@ -24607,8 +24677,8 @@
|
|
|
24607
24677
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
24608
24678
|
"class": "".concat(headerstyles$e.topbar_item_container),
|
|
24609
24679
|
style: {
|
|
24610
|
-
marginRight: langdetect == 'en' ? '
|
|
24611
|
-
marginLeft: langdetect == 'en' ? 0 : '
|
|
24680
|
+
marginRight: langdetect == 'en' ? '30px' : 0,
|
|
24681
|
+
marginLeft: langdetect == 'en' ? 0 : '30px'
|
|
24612
24682
|
},
|
|
24613
24683
|
onClick: function onClick() {
|
|
24614
24684
|
// history.push(item.navigationroute);
|
|
@@ -24629,8 +24699,8 @@
|
|
|
24629
24699
|
actions: actions,
|
|
24630
24700
|
subheaderpropertiesprops: {
|
|
24631
24701
|
subheaderpositionprops: 'in nav',
|
|
24632
|
-
paddingLeftprops: '
|
|
24633
|
-
paddingRightprops: '
|
|
24702
|
+
paddingLeftprops: '30px',
|
|
24703
|
+
paddingRightprops: '30px',
|
|
24634
24704
|
subheadercontentpositionprops: sectionproperties.header_centered == 'Centered' ? 'center' : 'start'
|
|
24635
24705
|
}
|
|
24636
24706
|
})))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -24640,8 +24710,8 @@
|
|
|
24640
24710
|
actions: actions,
|
|
24641
24711
|
subheaderpropertiesprops: {
|
|
24642
24712
|
subheaderpositionprops: 'Full Width',
|
|
24643
|
-
paddingLeftprops: '
|
|
24644
|
-
paddingRightprops: '
|
|
24713
|
+
paddingLeftprops: '30px',
|
|
24714
|
+
paddingRightprops: '30px',
|
|
24645
24715
|
subheadercontentpositionprops: 'start'
|
|
24646
24716
|
}
|
|
24647
24717
|
}))), !authdetailsContext.loggedin && sectionproperties.hideheaderwhenloggedin == 'Hide' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -28458,8 +28528,8 @@
|
|
|
28458
28528
|
headernameprops: 'Header_threesectionslogocentered'
|
|
28459
28529
|
})))), sectionproperties.ShowUserBtn == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28460
28530
|
style: {
|
|
28461
|
-
marginRight: langdetect == 'en' ? '1.5rem' : '1.2rem',
|
|
28462
|
-
marginLeft: langdetect == 'en' ? '1.2rem' : '1.5rem'
|
|
28531
|
+
marginRight: sectionproperties.favBtnShow == 'Show' ? langdetect == 'en' ? '1.5rem' : '1.2rem' : 0,
|
|
28532
|
+
marginLeft: sectionproperties.favBtnShow == 'Show' ? langdetect == 'en' ? '1.2rem' : '1.5rem' : 0
|
|
28463
28533
|
}
|
|
28464
28534
|
}, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"], null, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Toggle, null, !authdetailsContext.loggedin && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28465
28535
|
"class": ' d-flex justify-content-center align-items-center '
|
|
@@ -28571,7 +28641,7 @@
|
|
|
28571
28641
|
"class": "".concat(header_cssstyles.dropdownitem) + ' dropdownitem d-flex align-items-center m-0 p-0 '
|
|
28572
28642
|
}, /*#__PURE__*/React__default["default"].createElement(BiLogOutCircle.BiLogOutCircle, null), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
28573
28643
|
"class": "ml-2 mr-2"
|
|
28574
|
-
}, lang.logout))))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28644
|
+
}, lang.logout))))))), sectionproperties.favBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28575
28645
|
"class": "".concat(header_cssstyles.wishlist_btn) + ' d-flex justify-content-center align-items-center cursor-pointer ',
|
|
28576
28646
|
onClick: function onClick() {
|
|
28577
28647
|
routingcountext(StaticPagesLinksContext.Wishlist);
|
|
@@ -28644,7 +28714,7 @@
|
|
|
28644
28714
|
}
|
|
28645
28715
|
}), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
28646
28716
|
"class": 'ml-2 mr-2'
|
|
28647
|
-
},
|
|
28717
|
+
}, "\u0639\u0631\u0628\u064A")))), /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Divider, null), /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Item, {
|
|
28648
28718
|
onClick: function onClick() {
|
|
28649
28719
|
setlang('en');
|
|
28650
28720
|
}
|
|
@@ -28665,7 +28735,7 @@
|
|
|
28665
28735
|
}
|
|
28666
28736
|
}), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
28667
28737
|
"class": 'ml-2 mr-2'
|
|
28668
|
-
},
|
|
28738
|
+
}, "English"))))))), authdetailsContext != undefined && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i8 = authdetailsContext.instinfo) === null || _authdetailsContext$i8 === void 0 || (_authdetailsContext$i8 = _authdetailsContext$i8.instcurrencies) === null || _authdetailsContext$i8 === void 0 ? void 0 : _authdetailsContext$i8.length) > 1 && /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"], null, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Toggle, null, /*#__PURE__*/React__default["default"].createElement("li", {
|
|
28669
28739
|
"class": ' d-flex align-items-center justify-content-center '
|
|
28670
28740
|
}, langdetect == 'en' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28671
28741
|
"class": "".concat(header_cssstyles.languagecontainer) + ' row m-0 w-100 d-flex align-items-center '
|
|
@@ -48994,8 +49064,8 @@
|
|
|
48994
49064
|
function _objectSpread$1n(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1n(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1n(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
48995
49065
|
var ModernCardsSection = function ModernCardsSection(props) {
|
|
48996
49066
|
var _useInView = reactIntersectionObserver.useInView(),
|
|
48997
|
-
ref = _useInView.ref
|
|
48998
|
-
|
|
49067
|
+
ref = _useInView.ref;
|
|
49068
|
+
_useInView.inView;
|
|
48999
49069
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
49000
49070
|
props.actions.lang;
|
|
49001
49071
|
var langdetect = props.actions.langdetect;
|
|
@@ -49016,33 +49086,55 @@
|
|
|
49016
49086
|
var fetchingtype = props.actions.fetchingtype;
|
|
49017
49087
|
props.actions.addtofavoritescontext;
|
|
49018
49088
|
var fetchAuthorizationQueryContext = props.actions.fetchAuthorizationQueryContext;
|
|
49089
|
+
var fetchCategoriesQueryContext = props.actions.fetchCategoriesQueryContext;
|
|
49090
|
+
var FetchVendorsQuery = props.actions.FetchVendorsQuery;
|
|
49091
|
+
props.actions.ikimagecredcontext;
|
|
49092
|
+
props.actions.sortbycontext;
|
|
49093
|
+
props.actions.setsortbycontext;
|
|
49094
|
+
var _useState = React.useState(false),
|
|
49095
|
+
_useState2 = _slicedToArray__default["default"](_useState, 2);
|
|
49096
|
+
_useState2[0];
|
|
49097
|
+
_useState2[1];
|
|
49019
49098
|
var actions = props.actions;
|
|
49020
|
-
var
|
|
49021
|
-
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
49022
|
-
sectionproperties = _useState2[0],
|
|
49023
|
-
setsectionproperties = _useState2[1];
|
|
49024
|
-
var _useState3 = React.useState([]),
|
|
49099
|
+
var _useState3 = React.useState(''),
|
|
49025
49100
|
_useState4 = _slicedToArray__default["default"](_useState3, 2),
|
|
49026
|
-
|
|
49027
|
-
|
|
49028
|
-
var _useState5 = React.useState(
|
|
49101
|
+
sectionproperties = _useState4[0],
|
|
49102
|
+
setsectionproperties = _useState4[1];
|
|
49103
|
+
var _useState5 = React.useState([]),
|
|
49029
49104
|
_useState6 = _slicedToArray__default["default"](_useState5, 2),
|
|
49030
|
-
|
|
49031
|
-
|
|
49032
|
-
|
|
49033
|
-
|
|
49034
|
-
|
|
49035
|
-
|
|
49036
|
-
|
|
49037
|
-
var _useState7 = React.useState({
|
|
49105
|
+
cardsarray = _useState6[0],
|
|
49106
|
+
setcardsarray = _useState6[1];
|
|
49107
|
+
var _useState7 = React.useState(''),
|
|
49108
|
+
_useState8 = _slicedToArray__default["default"](_useState7, 2),
|
|
49109
|
+
sectionitem = _useState8[0],
|
|
49110
|
+
setsectionitem = _useState8[1];
|
|
49111
|
+
var _useState9 = React.useState({
|
|
49038
49112
|
productfetchingtype: 'Random',
|
|
49039
49113
|
collectionid: '',
|
|
49040
49114
|
grouptype: ''
|
|
49041
49115
|
}),
|
|
49042
|
-
|
|
49043
|
-
ProductsFetchingTypeSectionObj =
|
|
49044
|
-
setProductsFetchingTypeSectionObj =
|
|
49116
|
+
_useState10 = _slicedToArray__default["default"](_useState9, 2),
|
|
49117
|
+
ProductsFetchingTypeSectionObj = _useState10[0],
|
|
49118
|
+
setProductsFetchingTypeSectionObj = _useState10[1];
|
|
49119
|
+
var _useState11 = React.useState([]),
|
|
49120
|
+
_useState12 = _slicedToArray__default["default"](_useState11, 2);
|
|
49121
|
+
_useState12[0];
|
|
49122
|
+
var setmaincontainerarrayofobjs = _useState12[1];
|
|
49123
|
+
var _useState13 = React.useState(12),
|
|
49124
|
+
_useState14 = _slicedToArray__default["default"](_useState13, 2);
|
|
49125
|
+
_useState14[0];
|
|
49126
|
+
var setperpageItems = _useState14[1];
|
|
49127
|
+
props.actions.AddtoCartMutationContext;
|
|
49045
49128
|
React.useEffect(function () {
|
|
49129
|
+
var productfilerobjtemp = ProductFilterObjContext;
|
|
49130
|
+
if (props.filterparamsprops != undefined) {
|
|
49131
|
+
var filterpar = decodeURIComponent(props.filterparamsprops);
|
|
49132
|
+
var filterparsed = JSON.parse(filterpar);
|
|
49133
|
+
if (filterparsed != undefined) {
|
|
49134
|
+
productfilerobjtemp = filterparsed;
|
|
49135
|
+
setProductFilterObjContext(filterparsed);
|
|
49136
|
+
}
|
|
49137
|
+
}
|
|
49046
49138
|
StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
|
|
49047
49139
|
if (sectionitem.sectionid == props.sectionidprops) {
|
|
49048
49140
|
var secpropobj = {};
|
|
@@ -49053,14 +49145,20 @@
|
|
|
49053
49145
|
setsectionproperties(_objectSpread$1n({}, secpropobj));
|
|
49054
49146
|
if (props.srcfromprops == 'GeneralProductsComponent') {
|
|
49055
49147
|
setfetchingtype('products');
|
|
49148
|
+
var lcproductfetchingtype = 'Random';
|
|
49149
|
+
if (productfilerobjtemp.ProductFetchingType != undefined && productfilerobjtemp.ProductFetchingType != null && productfilerobjtemp.ProductFetchingType.length != 0) {
|
|
49150
|
+
lcproductfetchingtype = productfilerobjtemp.ProductFetchingType;
|
|
49151
|
+
}
|
|
49056
49152
|
setProductsFetchingTypeSectionObj({
|
|
49057
|
-
productfetchingtype:
|
|
49153
|
+
productfetchingtype: lcproductfetchingtype,
|
|
49058
49154
|
collectionid: props.collectionidprops,
|
|
49059
49155
|
grouptype: props.grouptypeprops,
|
|
49060
49156
|
grouptyperefid: props.grouptyperefidprops
|
|
49061
49157
|
});
|
|
49062
49158
|
} else if (props.srcfromprops == 'InnerGroups' || props.srcfromprops == 'InnerCategory' || props.srcfromprops == 'InnerParentCollection') {
|
|
49063
49159
|
setfetchingtype(props.grouptypeprops);
|
|
49160
|
+
} else if (props.srcfromprops == 'Innervendor') {
|
|
49161
|
+
setfetchingtype('vendors');
|
|
49064
49162
|
} else {
|
|
49065
49163
|
setfetchingtype(sectionitem.fetchingtype);
|
|
49066
49164
|
setProductsFetchingTypeSectionObj({
|
|
@@ -49089,6 +49187,11 @@
|
|
|
49089
49187
|
});
|
|
49090
49188
|
cardobjassigner(allpagesarr);
|
|
49091
49189
|
}
|
|
49190
|
+
} else if (fetchingtype == 'vendors') {
|
|
49191
|
+
if (FetchVendorsQuery.isSuccess) {
|
|
49192
|
+
var _FetchVendorsQuery$da;
|
|
49193
|
+
cardobjassigner(FetchVendorsQuery === null || FetchVendorsQuery === void 0 || (_FetchVendorsQuery$da = FetchVendorsQuery.data) === null || _FetchVendorsQuery$da === void 0 || (_FetchVendorsQuery$da = _FetchVendorsQuery$da.data) === null || _FetchVendorsQuery$da === void 0 ? void 0 : _FetchVendorsQuery$da.vendors);
|
|
49194
|
+
}
|
|
49092
49195
|
}
|
|
49093
49196
|
}
|
|
49094
49197
|
}
|
|
@@ -49097,7 +49200,6 @@
|
|
|
49097
49200
|
if ((fetchingtype === null || fetchingtype === void 0 ? void 0 : fetchingtype.length) != 0) {
|
|
49098
49201
|
var tempFetchQueriesEngineContext = FetchQueriesEngineContext;
|
|
49099
49202
|
if (fetchingtype == 'collections') {
|
|
49100
|
-
// tempFetchQueriesEngineContext.collections = true;
|
|
49101
49203
|
if (ProductsFetchingTypeSectionObj.collectionid == 'all' || ProductsFetchingTypeSectionObj.collectionid == null || ProductsFetchingTypeSectionObj.collectionid == undefined) {
|
|
49102
49204
|
setParentCollectionsForCollectionQueryArr('all');
|
|
49103
49205
|
} else {
|
|
@@ -49108,41 +49210,57 @@
|
|
|
49108
49210
|
var tempfetchproductsfilerobjcontext = ProductFilterObjContext;
|
|
49109
49211
|
tempfetchproductsfilerobjcontext.ProductFetchingType = ProductsFetchingTypeSectionObj.productfetchingtype;
|
|
49110
49212
|
if (ProductsFetchingTypeSectionObj.grouptype == 'collections' || ProductsFetchingTypeSectionObj.grouptype == 'categories' || ProductsFetchingTypeSectionObj.grouptype == 'parentcollections') ; else {
|
|
49111
|
-
tempfetchproductsfilerobjcontext.collections
|
|
49213
|
+
if (tempfetchproductsfilerobjcontext.collections != undefined) {
|
|
49214
|
+
tempfetchproductsfilerobjcontext.collections.push(ProductsFetchingTypeSectionObj.collectionid);
|
|
49215
|
+
}
|
|
49112
49216
|
}
|
|
49113
49217
|
tempfetchproductsfilerobjcontext.grouptype = ProductsFetchingTypeSectionObj.grouptype;
|
|
49114
49218
|
tempfetchproductsfilerobjcontext.grouptyperefid = ProductsFetchingTypeSectionObj.grouptyperefid;
|
|
49115
49219
|
setProductFilterObjContext(_objectSpread$1n({}, tempfetchproductsfilerobjcontext));
|
|
49116
49220
|
}
|
|
49221
|
+
setFetchQueriesEngineContext(_objectSpread$1n({}, tempFetchQueriesEngineContext));
|
|
49222
|
+
}
|
|
49223
|
+
}, [fetchingtype, ProductsFetchingTypeSectionObj]);
|
|
49224
|
+
React.useEffect(function () {
|
|
49225
|
+
if ((fetchingtype === null || fetchingtype === void 0 ? void 0 : fetchingtype.length) != 0) {
|
|
49117
49226
|
if (fetchingtype == 'categories') {
|
|
49118
|
-
|
|
49119
|
-
|
|
49120
|
-
|
|
49227
|
+
var categories = [];
|
|
49228
|
+
if (fetchCategoriesQueryContext !== null && fetchCategoriesQueryContext !== void 0 && fetchCategoriesQueryContext.isSuccess) {
|
|
49229
|
+
var _fetchCategoriesQuery;
|
|
49230
|
+
categories = fetchCategoriesQueryContext === null || fetchCategoriesQueryContext === void 0 || (_fetchCategoriesQuery = fetchCategoriesQueryContext.data) === null || _fetchCategoriesQuery === void 0 || (_fetchCategoriesQuery = _fetchCategoriesQuery.data) === null || _fetchCategoriesQuery === void 0 ? void 0 : _fetchCategoriesQuery.categories;
|
|
49121
49231
|
}
|
|
49232
|
+
cardobjassigner(categories);
|
|
49122
49233
|
}
|
|
49123
49234
|
if (fetchingtype == 'parentcollections' || fetchingtype == 'innercategories') {
|
|
49124
|
-
|
|
49125
|
-
|
|
49126
|
-
|
|
49127
|
-
var
|
|
49128
|
-
(
|
|
49129
|
-
|
|
49235
|
+
var _categories;
|
|
49236
|
+
var categories = [];
|
|
49237
|
+
if (fetchCategoriesQueryContext !== null && fetchCategoriesQueryContext !== void 0 && fetchCategoriesQueryContext.isSuccess) {
|
|
49238
|
+
var _fetchCategoriesQuery2;
|
|
49239
|
+
categories = fetchCategoriesQueryContext === null || fetchCategoriesQueryContext === void 0 || (_fetchCategoriesQuery2 = fetchCategoriesQueryContext.data) === null || _fetchCategoriesQuery2 === void 0 || (_fetchCategoriesQuery2 = _fetchCategoriesQuery2.data) === null || _fetchCategoriesQuery2 === void 0 ? void 0 : _fetchCategoriesQuery2.categories;
|
|
49240
|
+
}
|
|
49241
|
+
// if (fetchAuthorizationQueryContext?.isSuccess) {
|
|
49242
|
+
// var categories = fetchAuthorizationQueryContext.data.data.instinfo.instcategories;
|
|
49243
|
+
// alert(JSON.stringify(categories));
|
|
49244
|
+
var parentcollections = [];
|
|
49245
|
+
(_categories = categories) === null || _categories === void 0 || _categories.forEach(function (catitem, catindex) {
|
|
49246
|
+
catitem === null || catitem === void 0 || catitem.parentcolletions.forEach(function (parentcolitem) {
|
|
49247
|
+
if (parentcolitem.isshowntocustomers == 1) {
|
|
49130
49248
|
parentcolitem.categoryid = catitem.categoryid;
|
|
49131
49249
|
parentcollections.push(parentcolitem);
|
|
49132
|
-
});
|
|
49133
|
-
});
|
|
49134
|
-
if (fetchingtype == 'parentcollections') {
|
|
49135
|
-
if ((sectionitem === null || sectionitem === void 0 ? void 0 : sectionitem.productsfetchingtypeparentcollectioncategoryid) != null && (sectionitem === null || sectionitem === void 0 ? void 0 : sectionitem.productsfetchingtypeparentcollectioncategoryid) != undefined && (sectionitem === null || sectionitem === void 0 ? void 0 : sectionitem.productsfetchingtypeparentcollectioncategoryid) != 'all') {
|
|
49136
|
-
var arrafterfilter = [];
|
|
49137
|
-
parentcollections.forEach(function (parentcolitem, parcolindex) {
|
|
49138
|
-
if (parentcolitem.categoryid == (sectionitem === null || sectionitem === void 0 ? void 0 : sectionitem.productsfetchingtypeparentcollectioncategoryid)) {
|
|
49139
|
-
arrafterfilter.push(parentcolitem);
|
|
49140
|
-
}
|
|
49141
|
-
});
|
|
49142
|
-
parentcollections = arrafterfilter;
|
|
49143
49250
|
}
|
|
49251
|
+
});
|
|
49252
|
+
});
|
|
49253
|
+
if (fetchingtype == 'parentcollections') {
|
|
49254
|
+
if ((sectionitem === null || sectionitem === void 0 ? void 0 : sectionitem.productsfetchingtypeparentcollectioncategoryid) != null && (sectionitem === null || sectionitem === void 0 ? void 0 : sectionitem.productsfetchingtypeparentcollectioncategoryid) != undefined && (sectionitem === null || sectionitem === void 0 ? void 0 : sectionitem.productsfetchingtypeparentcollectioncategoryid) != 'all') {
|
|
49255
|
+
var arrafterfilter = [];
|
|
49256
|
+
parentcollections.forEach(function (parentcolitem, parcolindex) {
|
|
49257
|
+
if (parentcolitem.categoryid == (sectionitem === null || sectionitem === void 0 ? void 0 : sectionitem.productsfetchingtypeparentcollectioncategoryid)) {
|
|
49258
|
+
arrafterfilter.push(parentcolitem);
|
|
49259
|
+
}
|
|
49260
|
+
});
|
|
49261
|
+
parentcollections = arrafterfilter;
|
|
49144
49262
|
}
|
|
49145
|
-
if (
|
|
49263
|
+
if (props.collectionidprops != null && props.collectionidprops != undefined && props.collectionidprops != 'all') {
|
|
49146
49264
|
var arrafterfilter = [];
|
|
49147
49265
|
parentcollections.forEach(function (parentcolitem, parcolindex) {
|
|
49148
49266
|
if (parentcolitem.categoryid == props.collectionidprops) {
|
|
@@ -49151,54 +49269,74 @@
|
|
|
49151
49269
|
});
|
|
49152
49270
|
parentcollections = arrafterfilter;
|
|
49153
49271
|
}
|
|
49154
|
-
cardobjassigner(parentcollections);
|
|
49155
49272
|
}
|
|
49273
|
+
if (fetchingtype == 'innercategories') {
|
|
49274
|
+
var arrafterfilter = [];
|
|
49275
|
+
parentcollections.forEach(function (parentcolitem, parcolindex) {
|
|
49276
|
+
if (parentcolitem.categoryid == props.collectionidprops) {
|
|
49277
|
+
arrafterfilter.push(parentcolitem);
|
|
49278
|
+
}
|
|
49279
|
+
});
|
|
49280
|
+
parentcollections = arrafterfilter;
|
|
49281
|
+
}
|
|
49282
|
+
cardobjassigner(parentcollections);
|
|
49283
|
+
// }
|
|
49156
49284
|
} else if (fetchingtype == 'innerparentcollections') {
|
|
49157
|
-
|
|
49158
|
-
|
|
49159
|
-
|
|
49160
|
-
var
|
|
49161
|
-
(
|
|
49162
|
-
|
|
49163
|
-
|
|
49164
|
-
|
|
49165
|
-
|
|
49285
|
+
var _categories2;
|
|
49286
|
+
var categories = [];
|
|
49287
|
+
if (fetchCategoriesQueryContext !== null && fetchCategoriesQueryContext !== void 0 && fetchCategoriesQueryContext.isSuccess) {
|
|
49288
|
+
var _fetchCategoriesQuery3;
|
|
49289
|
+
categories = fetchCategoriesQueryContext === null || fetchCategoriesQueryContext === void 0 || (_fetchCategoriesQuery3 = fetchCategoriesQueryContext.data) === null || _fetchCategoriesQuery3 === void 0 || (_fetchCategoriesQuery3 = _fetchCategoriesQuery3.data) === null || _fetchCategoriesQuery3 === void 0 ? void 0 : _fetchCategoriesQuery3.categories;
|
|
49290
|
+
}
|
|
49291
|
+
// if (fetchAuthorizationQueryContext?.isSuccess) {
|
|
49292
|
+
// var categories = fetchAuthorizationQueryContext.data.data.instinfo.instcategories;
|
|
49293
|
+
var collections = [];
|
|
49294
|
+
(_categories2 = categories) === null || _categories2 === void 0 || _categories2.forEach(function (catitem, catindex) {
|
|
49295
|
+
catitem === null || catitem === void 0 || catitem.parentcolletions.forEach(function (parentcolitem) {
|
|
49296
|
+
var _parentcolitem$collec;
|
|
49297
|
+
parentcolitem.categoryid = catitem.categoryid;
|
|
49298
|
+
parentcolitem === null || parentcolitem === void 0 || (_parentcolitem$collec = parentcolitem.collections) === null || _parentcolitem$collec === void 0 || _parentcolitem$collec.forEach(function (collitem, colindex) {
|
|
49299
|
+
if (collitem.isshowntocustomers == 1) {
|
|
49166
49300
|
collitem.parentcollectionid = parentcolitem.parentcollectionid;
|
|
49167
49301
|
collections.push(collitem);
|
|
49168
|
-
}
|
|
49302
|
+
}
|
|
49169
49303
|
});
|
|
49170
49304
|
});
|
|
49171
|
-
|
|
49172
|
-
|
|
49173
|
-
|
|
49174
|
-
|
|
49175
|
-
|
|
49176
|
-
|
|
49177
|
-
|
|
49178
|
-
|
|
49179
|
-
|
|
49180
|
-
});
|
|
49181
|
-
if (iscollexists == false) {
|
|
49182
|
-
collectionsafterfilter.push(colitem);
|
|
49305
|
+
});
|
|
49306
|
+
if (fetchingtype == 'innerparentcollections') {
|
|
49307
|
+
var collectionsafterfilter = [];
|
|
49308
|
+
collections.forEach(function (colitem, colindex) {
|
|
49309
|
+
if (colitem.parentcollectionid == props.collectionidprops) {
|
|
49310
|
+
var iscollexists = false;
|
|
49311
|
+
collectionsafterfilter.forEach(function (existcolitem) {
|
|
49312
|
+
if (colitem.collectionid == existcolitem.collectionid) {
|
|
49313
|
+
iscollexists = true;
|
|
49183
49314
|
}
|
|
49315
|
+
});
|
|
49316
|
+
if (iscollexists == false) {
|
|
49317
|
+
collectionsafterfilter.push(colitem);
|
|
49184
49318
|
}
|
|
49185
|
-
}
|
|
49186
|
-
|
|
49187
|
-
|
|
49188
|
-
cardobjassigner(collections);
|
|
49319
|
+
}
|
|
49320
|
+
});
|
|
49321
|
+
collections = collectionsafterfilter;
|
|
49189
49322
|
}
|
|
49323
|
+
cardobjassigner(collections);
|
|
49324
|
+
// }
|
|
49190
49325
|
}
|
|
49191
|
-
setFetchQueriesEngineContext(_objectSpread$1n({}, tempFetchQueriesEngineContext));
|
|
49192
49326
|
}
|
|
49193
|
-
}, [fetchingtype, ProductsFetchingTypeSectionObj]);
|
|
49327
|
+
}, [fetchingtype, ProductsFetchingTypeSectionObj, fetchCategoriesQueryContext.isSuccess]);
|
|
49194
49328
|
React.useEffect(function () {
|
|
49195
49329
|
if (fetchingtype == 'products') {
|
|
49196
49330
|
if (fetchProductsQuery.isSuccess && fetchcustomercartQueryContext.isSuccess) {
|
|
49197
|
-
var _fetchProductsQuery$d2;
|
|
49331
|
+
var _fetchProductsQuery$d2, _fetchProductsQuery$d3, _fetchProductsQuery$d4, _fetchProductsQuery$d5;
|
|
49198
49332
|
var allpagesarr = [];
|
|
49199
49333
|
fetchProductsQuery === null || fetchProductsQuery === void 0 || (_fetchProductsQuery$d2 = fetchProductsQuery.data) === null || _fetchProductsQuery$d2 === void 0 || (_fetchProductsQuery$d2 = _fetchProductsQuery$d2.data) === null || _fetchProductsQuery$d2 === void 0 || (_fetchProductsQuery$d2 = _fetchProductsQuery$d2.products) === null || _fetchProductsQuery$d2 === void 0 || _fetchProductsQuery$d2.forEach(function (item) {
|
|
49200
49334
|
allpagesarr.push(item);
|
|
49201
49335
|
});
|
|
49336
|
+
if ((fetchProductsQuery === null || fetchProductsQuery === void 0 || (_fetchProductsQuery$d3 = fetchProductsQuery.data) === null || _fetchProductsQuery$d3 === void 0 || (_fetchProductsQuery$d3 = _fetchProductsQuery$d3.data) === null || _fetchProductsQuery$d3 === void 0 ? void 0 : _fetchProductsQuery$d3.PerPageProducts) != undefined && (fetchProductsQuery === null || fetchProductsQuery === void 0 || (_fetchProductsQuery$d4 = fetchProductsQuery.data) === null || _fetchProductsQuery$d4 === void 0 || (_fetchProductsQuery$d4 = _fetchProductsQuery$d4.data) === null || _fetchProductsQuery$d4 === void 0 ? void 0 : _fetchProductsQuery$d4.PerPageProducts) != null && (fetchProductsQuery === null || fetchProductsQuery === void 0 || (_fetchProductsQuery$d5 = fetchProductsQuery.data) === null || _fetchProductsQuery$d5 === void 0 || (_fetchProductsQuery$d5 = _fetchProductsQuery$d5.data) === null || _fetchProductsQuery$d5 === void 0 || (_fetchProductsQuery$d5 = _fetchProductsQuery$d5.PerPageProducts) === null || _fetchProductsQuery$d5 === void 0 ? void 0 : _fetchProductsQuery$d5.length) != 0) {
|
|
49337
|
+
var _fetchProductsQuery$d6;
|
|
49338
|
+
setperpageItems(fetchProductsQuery === null || fetchProductsQuery === void 0 || (_fetchProductsQuery$d6 = fetchProductsQuery.data) === null || _fetchProductsQuery$d6 === void 0 || (_fetchProductsQuery$d6 = _fetchProductsQuery$d6.data) === null || _fetchProductsQuery$d6 === void 0 ? void 0 : _fetchProductsQuery$d6.PerPageProducts);
|
|
49339
|
+
}
|
|
49202
49340
|
cardobjassigner(allpagesarr);
|
|
49203
49341
|
}
|
|
49204
49342
|
}
|
|
@@ -49209,10 +49347,28 @@
|
|
|
49209
49347
|
cardobjassigner(fetchcollectionsQueryContext.data.data.collections);
|
|
49210
49348
|
}
|
|
49211
49349
|
}
|
|
49212
|
-
}, [fetchcollectionsQueryContext === null || fetchcollectionsQueryContext === void 0 ? void 0 : fetchcollectionsQueryContext.isSuccess]);
|
|
49350
|
+
}, [fetchcollectionsQueryContext === null || fetchcollectionsQueryContext === void 0 ? void 0 : fetchcollectionsQueryContext.isSuccess, fetchcollectionsQueryContext.data]);
|
|
49351
|
+
React.useEffect(function () {
|
|
49352
|
+
if (fetchingtype == 'vendors') {
|
|
49353
|
+
if (FetchVendorsQuery.isSuccess) {
|
|
49354
|
+
if (FetchVendorsQuery.data.data.vendors != undefined && FetchVendorsQuery.data.data.vendors.length != 0) {
|
|
49355
|
+
var _FetchVendorsQuery$da2;
|
|
49356
|
+
cardobjassigner(FetchVendorsQuery === null || FetchVendorsQuery === void 0 || (_FetchVendorsQuery$da2 = FetchVendorsQuery.data) === null || _FetchVendorsQuery$da2 === void 0 || (_FetchVendorsQuery$da2 = _FetchVendorsQuery$da2.data) === null || _FetchVendorsQuery$da2 === void 0 ? void 0 : _FetchVendorsQuery$da2.vendors);
|
|
49357
|
+
}
|
|
49358
|
+
}
|
|
49359
|
+
}
|
|
49360
|
+
}, [FetchVendorsQuery.isSuccess]);
|
|
49213
49361
|
React.useEffect(function () {
|
|
49214
49362
|
favassigner();
|
|
49215
49363
|
}, [favoriteprojectscountContext]);
|
|
49364
|
+
React.useEffect(function () {
|
|
49365
|
+
if (sectionproperties.length != 0 && sectionproperties.maincontainerarrayofobjs != undefined) {
|
|
49366
|
+
var maincontainerarrayofobjsparsed = JSON.parse(sectionproperties.maincontainerarrayofobjs);
|
|
49367
|
+
if (Array.isArray(maincontainerarrayofobjsparsed)) {
|
|
49368
|
+
setmaincontainerarrayofobjs(_toConsumableArray__default["default"](maincontainerarrayofobjsparsed));
|
|
49369
|
+
}
|
|
49370
|
+
}
|
|
49371
|
+
}, [sectionproperties]);
|
|
49216
49372
|
var favassigner = function favassigner() {
|
|
49217
49373
|
if (fetchingtype == 'products') {
|
|
49218
49374
|
if (cardsarray.length != 0) {
|
|
@@ -49369,6 +49525,29 @@
|
|
|
49369
49525
|
});
|
|
49370
49526
|
setcardsarray([].concat(temparray));
|
|
49371
49527
|
};
|
|
49528
|
+
var SectionTitle = function SectionTitle() {
|
|
49529
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
49530
|
+
"class": "d-flex align-items-center flex-row",
|
|
49531
|
+
style: {
|
|
49532
|
+
position: 'relative',
|
|
49533
|
+
justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : '',
|
|
49534
|
+
width: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '100%' : ''
|
|
49535
|
+
}
|
|
49536
|
+
}, sectionproperties.sectiontitlestyle == 'Line Before Text' && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
49537
|
+
"class": section_cssstyles.line_left
|
|
49538
|
+
}), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
49539
|
+
"class": sectionproperties.sectiontitlefontfamily == 'Pacifico' ? "".concat(section_cssstyles.sectiontitlespan) + ' PacificoFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start ' : sectionproperties.sectiontitlefontfamily == 'Playfair' ? "".concat(section_cssstyles.sectiontitlespan) + ' PlayfairFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start ' : sectionproperties.sectiontitlefontfamily == 'Great Vibes' ? "".concat(section_cssstyles.sectiontitlespan) + ' GreatvibesFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start ' : sectionproperties.sectiontitlefontfamily == 'Quicksand' ? "".concat(section_cssstyles.sectiontitlespan) + ' QuicksandFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start ' : sectionproperties.sectiontitlefontfamily == 'Satisfy' ? "".concat(section_cssstyles.sectiontitlespan) + ' SatisfyFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start ' : sectionproperties.sectiontitlefontfamily == 'ASUL' ? "".concat(section_cssstyles.sectiontitlespan) + ' ASUL mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start ' : "".concat(section_cssstyles.sectiontitlespan) + ' mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start ',
|
|
49540
|
+
style: {
|
|
49541
|
+
color: sectionproperties.sectionTitleColor,
|
|
49542
|
+
fontWeight: sectionproperties.sectionTitleFontWeight,
|
|
49543
|
+
paddingLeft: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '12px' : 0,
|
|
49544
|
+
paddingRight: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '12px' : 0,
|
|
49545
|
+
textAlign: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : ''
|
|
49546
|
+
}
|
|
49547
|
+
}, langdetect == 'en' ? sectionproperties.sectionTitleContent : sectionproperties.sectionTitleContent_ar), sectionproperties.sectiontitlestyle == 'Line Before Text' && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
49548
|
+
"class": section_cssstyles.line_right
|
|
49549
|
+
}));
|
|
49550
|
+
};
|
|
49372
49551
|
var section_cssstyles = {
|
|
49373
49552
|
viewmorebtn: glamor.css({
|
|
49374
49553
|
width: sectionproperties.viewmorebtn_Width == 0 ? 'auto' : sectionproperties.viewmorebtn_Width + 'px',
|
|
@@ -49412,29 +49591,12 @@
|
|
|
49412
49591
|
background: sectionproperties.linebgcolor
|
|
49413
49592
|
}),
|
|
49414
49593
|
sectiontitlecont: glamor.css({
|
|
49415
|
-
marginTop: sectionproperties.sectionTitleMarginTop + 'px'
|
|
49416
|
-
|
|
49417
|
-
|
|
49418
|
-
|
|
49419
|
-
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
49420
|
-
"class": sectionproperties.sectiontitleposition == 'Centered' ? 'col-lg-12 d-flex justify-content-center align-items-center mb-md-0 w-100 px-1025-1 pl-md-2 pr-md-2 pl-sm-2 pr-sm-2' : 'col-lg-12 d-flex justify-content-md-center mb-md-0 align-items-center w-100 px-1025-1 pl-md-2 pr-md-2 pl-sm-2 pr-sm-2',
|
|
49421
|
-
style: {
|
|
49422
|
-
paddingLeft: langdetect == 'en' ? sectionproperties.sectionTitleMarginLeft + 'px' : sectionproperties.sectionTitleMarginRight + 'px',
|
|
49423
|
-
paddingRight: langdetect == 'en' ? sectionproperties.sectionTitleMarginRight + 'px' : sectionproperties.sectionTitleMarginLeft + 'px'
|
|
49424
|
-
}
|
|
49425
|
-
}, sectionproperties.sectiontitlestyle == 'Line Before Text' && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
49426
|
-
"class": section_cssstyles.line_left
|
|
49427
|
-
}), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
49428
|
-
"class": sectionproperties.sectiontitlefontfamily == 'Pacifico' ? ' PacificoFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start justify-content-md-center ' : sectionproperties.sectiontitlefontfamily == 'Playfair' ? ' PlayfairFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start justify-content-md-center ' : sectionproperties.sectiontitlefontfamily == 'Great Vibes' ? ' GreatvibesFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start justify-content-md-center' : sectionproperties.sectiontitlefontfamily == 'Quicksand' ? ' QuicksandFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start justify-content-md-center ' : sectionproperties.sectiontitlefontfamily == 'Satisfy' ? ' SatisfyFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start justify-content-md-center ' : ' mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start justify-content-md-center ',
|
|
49429
|
-
style: {
|
|
49430
|
-
color: sectionproperties.sectionTitleColor,
|
|
49431
|
-
fontWeight: sectionproperties.sectionTitleFontWeight,
|
|
49432
|
-
paddingLeft: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '12px' : 0,
|
|
49433
|
-
paddingRight: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '12px' : 0
|
|
49594
|
+
marginTop: sectionproperties.sectionTitleMarginTop + 'px',
|
|
49595
|
+
'@media (max-width: 1024px)': {
|
|
49596
|
+
paddingLeft: sectionproperties.sectiontitlepaddinghorizontalresponsive + 'rem',
|
|
49597
|
+
paddingRight: sectionproperties.sectiontitlepaddinghorizontalresponsive + 'rem'
|
|
49434
49598
|
}
|
|
49435
|
-
}
|
|
49436
|
-
"class": section_cssstyles.line_right
|
|
49437
|
-
}));
|
|
49599
|
+
})
|
|
49438
49600
|
};
|
|
49439
49601
|
var cardsrender = function cardsrender() {
|
|
49440
49602
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -49466,12 +49628,12 @@
|
|
|
49466
49628
|
fontSize: sectionproperties.sectionTitleFontSizeresp + 'px'
|
|
49467
49629
|
}
|
|
49468
49630
|
}, SectionTitle()), sectionproperties.prodCatShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
49469
|
-
"class": sectionproperties.sectiontitleposition == 'Centered' ? 'col-lg-12 d-flex align-items-center justify-content-center
|
|
49631
|
+
"class": sectionproperties.sectiontitleposition == 'Centered' ? 'col-lg-12 d-flex align-items-center justify-content-center ' : 'col-lg-12 d-flex align-items-center justify-content-start p-0',
|
|
49470
49632
|
style: {
|
|
49471
49633
|
marginBottom: sectionproperties.descriptionMarginBottom + 'px'
|
|
49472
49634
|
}
|
|
49473
49635
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
49474
|
-
"class": sectionproperties.descFontFamily == 'Pacifico' ? ' PacificoFont m-0 p-0 wordbreak
|
|
49636
|
+
"class": sectionproperties.descFontFamily == 'Pacifico' ? ' PacificoFont m-0 p-0 wordbreak ' : sectionproperties.descFontFamily == 'Playfair' ? ' PlayfairFont m-0 p-0 wordbreak ' : sectionproperties.descFontFamily == 'Great Vibes' ? ' GreatvibesFont m-0 p-0 wordbreak ' : sectionproperties.descFontFamily == 'Quicksand' ? ' QuicksandFont m-0 p-0 wordbreak ' : ' m-0 p-0 wordbreak',
|
|
49475
49637
|
style: {
|
|
49476
49638
|
fontSize: sectionproperties.prodCatFontSize + 'px',
|
|
49477
49639
|
color: sectionproperties.prodCatColor,
|
|
@@ -69022,6 +69184,14 @@
|
|
|
69022
69184
|
setitem(props.cardinfoitemprops);
|
|
69023
69185
|
}, [props.cardinfoitemprops]);
|
|
69024
69186
|
var card_cssstyles = {
|
|
69187
|
+
productcard: glamor.css({
|
|
69188
|
+
minWidth: props.sectiontypeprops2 == 'vertical' ? '100%' : sectionproperties.width + 'px',
|
|
69189
|
+
maxWidth: props.sectiontypeprops2 == 'vertical' ? '100%' : sectionproperties.width + 'px',
|
|
69190
|
+
'@media (max-width: 800px)': {
|
|
69191
|
+
minWidth: props.sectiontypeprops2 == 'vertical' ? '100%' : sectionproperties.widthresponsive + 'px',
|
|
69192
|
+
maxWidth: props.sectiontypeprops2 == 'vertical' ? '100%' : sectionproperties.widthresponsive + 'px'
|
|
69193
|
+
}
|
|
69194
|
+
}),
|
|
69025
69195
|
cardcontainer: glamor.css({
|
|
69026
69196
|
marginTop: sectionproperties.marginTop + 'px',
|
|
69027
69197
|
marginBottom: sectionproperties.marginBottom + 'px',
|
|
@@ -69100,7 +69270,9 @@
|
|
|
69100
69270
|
})
|
|
69101
69271
|
};
|
|
69102
69272
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
69103
|
-
"class":
|
|
69273
|
+
"class": props.sectiontypeprops2 == 'vertical' ? "".concat(card_cssstyles.productcard) + ' w-100 ' : "".concat(card_cssstyles.productcard)
|
|
69274
|
+
// class={`${cardstyles.container} ${card_cssstyles.container}` + ' row m-0 w-100 '}
|
|
69275
|
+
,
|
|
69104
69276
|
style: {
|
|
69105
69277
|
paddingLeft: langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px',
|
|
69106
69278
|
paddingRight: langdetect == 'en' ? sectionproperties.card_marginRight + 'px' : sectionproperties.card_marginLeft + 'px'
|
|
@@ -69115,7 +69287,7 @@
|
|
|
69115
69287
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
69116
69288
|
"class": card_cssstyles.imagecontainer + ' col-lg-12 d-flex d-md-none mb-2 imagecont p-0 ',
|
|
69117
69289
|
style: {
|
|
69118
|
-
height: sectionproperties.
|
|
69290
|
+
height: sectionproperties.image_height + 'px'
|
|
69119
69291
|
}
|
|
69120
69292
|
}, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
|
|
69121
69293
|
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
@@ -74371,6 +74543,12 @@
|
|
|
74371
74543
|
var cardonclickfunctionContext = props.actions.cardonclickfunctionContext;
|
|
74372
74544
|
var ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
74373
74545
|
props.actions.NotificationManager;
|
|
74546
|
+
var AddtoCartContext = props.actions.AddtoCartContext;
|
|
74547
|
+
props.AddtoCartMutationContext;
|
|
74548
|
+
var _useState5 = React.useState(''),
|
|
74549
|
+
_useState6 = _slicedToArray__default["default"](_useState5, 2),
|
|
74550
|
+
addtocardpayloadobj = _useState6[0];
|
|
74551
|
+
_useState6[1];
|
|
74374
74552
|
var plainString = function plainString(html) {
|
|
74375
74553
|
var divContainer = document.createElement('div');
|
|
74376
74554
|
divContainer.innerHTML = html;
|
|
@@ -74549,10 +74727,10 @@
|
|
|
74549
74727
|
transform: "translateX(0px)"
|
|
74550
74728
|
})
|
|
74551
74729
|
};
|
|
74552
|
-
var
|
|
74553
|
-
|
|
74554
|
-
secondimage =
|
|
74555
|
-
setsecondimage =
|
|
74730
|
+
var _useState7 = React.useState(''),
|
|
74731
|
+
_useState8 = _slicedToArray__default["default"](_useState7, 2),
|
|
74732
|
+
secondimage = _useState8[0],
|
|
74733
|
+
setsecondimage = _useState8[1];
|
|
74556
74734
|
React.useEffect(function () {
|
|
74557
74735
|
var _props$cardinfoitempr;
|
|
74558
74736
|
setitem(props.cardinfoitemprops);
|
|
@@ -74579,6 +74757,14 @@
|
|
|
74579
74757
|
}
|
|
74580
74758
|
}
|
|
74581
74759
|
}, [props.cardinfoitemprops]);
|
|
74760
|
+
var addtocartfunc = function addtocartfunc() {
|
|
74761
|
+
var tempaddtocardpayloadobj = _objectSpread$6({}, addtocardpayloadobj);
|
|
74762
|
+
tempaddtocardpayloadobj.productid = item.productid;
|
|
74763
|
+
tempaddtocardpayloadobj.functype = 'add';
|
|
74764
|
+
tempaddtocardpayloadobj.item_type = 'product';
|
|
74765
|
+
tempaddtocardpayloadobj.quantity = 1;
|
|
74766
|
+
AddtoCartContext(tempaddtocardpayloadobj);
|
|
74767
|
+
};
|
|
74582
74768
|
var Image = function Image(type) {
|
|
74583
74769
|
var transition = false;
|
|
74584
74770
|
if (sectionproperties.hideshowcardtransition == 'Show' && type != 'responsive') {
|
|
@@ -74613,10 +74799,10 @@
|
|
|
74613
74799
|
}
|
|
74614
74800
|
}));
|
|
74615
74801
|
};
|
|
74616
|
-
var
|
|
74617
|
-
|
|
74618
|
-
clickCount =
|
|
74619
|
-
setClickCount =
|
|
74802
|
+
var _useState9 = React.useState(0),
|
|
74803
|
+
_useState10 = _slicedToArray__default["default"](_useState9, 2),
|
|
74804
|
+
clickCount = _useState10[0],
|
|
74805
|
+
setClickCount = _useState10[1];
|
|
74620
74806
|
var handleClick = function handleClick() {
|
|
74621
74807
|
// Increase the click count by 1
|
|
74622
74808
|
setClickCount(function (prevCount) {
|
|
@@ -74672,7 +74858,7 @@
|
|
|
74672
74858
|
}, langdetect == 'en' ? 'Save' : 'وفر', " ", langdetect == 'en' ? item.currencyname : '', ' ', parseFloat(Math.round(parseInt(item.defaultprice) - parseInt(item.defaultsaleprice))).toFixed(0), " ", langdetect == 'en' ? '' : item.currencyname));
|
|
74673
74859
|
};
|
|
74674
74860
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
74675
|
-
"class": props.sectiontypeprops2 == 'vertical' ? "".concat(card_cssstyles.productcard) + ' w-100 px-md-1 ' : " ".concat(card_cssstyles.productcard),
|
|
74861
|
+
"class": props.sectiontypeprops2 == 'vertical' ? sectionproperties.card_marginLeft == 0 && sectionproperties.card_marginRight == 0 ? "".concat(card_cssstyles.productcard) + ' w-100 ' : "".concat(card_cssstyles.productcard) + ' w-100 px-md-1 ' : " ".concat(card_cssstyles.productcard),
|
|
74676
74862
|
style: {
|
|
74677
74863
|
paddingLeft: langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px',
|
|
74678
74864
|
paddingRight: langdetect == 'en' ? sectionproperties.card_marginRight + 'px' : sectionproperties.card_marginLeft + 'px'
|
|
@@ -74762,7 +74948,7 @@
|
|
|
74762
74948
|
}), sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React__default["default"].createElement(FaRegHeart.FaRegHeart, {
|
|
74763
74949
|
size: sectionproperties.favBtnIconfontsize
|
|
74764
74950
|
}))), (item === null || item === void 0 ? void 0 : item.hassale) == 1 && sectionproperties.showbadge == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
74765
|
-
"class": "allcentered
|
|
74951
|
+
"class": "allcentered",
|
|
74766
74952
|
style: {
|
|
74767
74953
|
zIndex: 2,
|
|
74768
74954
|
position: 'absolute',
|
|
@@ -74853,8 +75039,8 @@
|
|
|
74853
75039
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
74854
75040
|
"class": "text-capitalize mx-2",
|
|
74855
75041
|
style: {
|
|
74856
|
-
color: sectionproperties.
|
|
74857
|
-
fontSize:
|
|
75042
|
+
color: sectionproperties.featurecolor,
|
|
75043
|
+
fontSize: sectionproperties.featurefontsize + 'px'
|
|
74858
75044
|
}
|
|
74859
75045
|
}, (item === null || item === void 0 ? void 0 : item.productfeature) != undefined && (item === null || item === void 0 ? void 0 : item.productfeature) != null ? item === null || item === void 0 ? void 0 : item.productfeature : '')), sectionproperties.showmeasurementunit == 'Show' && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
74860
75046
|
"class": "".concat(card_cssstyles.productDescStyles) + ' col-lg-12 wordbreak wordbreak1 p-0 mb-2 ',
|
|
@@ -74864,9 +75050,13 @@
|
|
|
74864
75050
|
color: sectionproperties.measurementunitcolor
|
|
74865
75051
|
}
|
|
74866
75052
|
}, item.measurmentunit), sectionproperties.prodNameShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
74867
|
-
"class": "col-lg-12
|
|
75053
|
+
"class": "col-lg-12 pl-0 pr-0",
|
|
74868
75054
|
style: {
|
|
74869
|
-
minHeight: sectionproperties.wordbreak == '1' ? 'auto' : '6vh'
|
|
75055
|
+
minHeight: sectionproperties.wordbreak == '1' ? 'auto' : '6vh',
|
|
75056
|
+
background: sectionproperties.prodNameBackgroundColor,
|
|
75057
|
+
borderRadius: '15px',
|
|
75058
|
+
paddingTop: sectionproperties.productnamepaddingvertical + 'px',
|
|
75059
|
+
paddingBottom: sectionproperties.productnamepaddingvertical + 'px'
|
|
74870
75060
|
}
|
|
74871
75061
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
74872
75062
|
onClick: function onClick() {
|
|
@@ -74883,7 +75073,7 @@
|
|
|
74883
75073
|
textAlign: sectionproperties.productnamecentered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right'
|
|
74884
75074
|
}
|
|
74885
75075
|
}, item.name)), sectionproperties.prodCatShow == 'Show' && sectionproperties.descriptionoverwritestyles == 'No' && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
74886
|
-
"class": "".concat(card_cssstyles.productDescStyles) + ' col-lg-12 p-0 wordbreak wordbreak4 mt-1 ',
|
|
75076
|
+
"class": sectionproperties.descriptionwordbreak == 'None' ? "".concat(card_cssstyles.productDescStyles) + ' col-lg-12 p-0 mt-1 ' : "".concat(card_cssstyles.productDescStyles) + ' col-lg-12 p-0 wordbreak wordbreak4 mt-1 ',
|
|
74887
75077
|
style: {
|
|
74888
75078
|
textAlign: sectionproperties.productnamecentered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right'
|
|
74889
75079
|
},
|
|
@@ -74891,7 +75081,7 @@
|
|
|
74891
75081
|
__html: item.shortdescription
|
|
74892
75082
|
}
|
|
74893
75083
|
}), sectionproperties.prodCatShow == 'Show' && sectionproperties.descriptionoverwritestyles == 'Yes' && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
74894
|
-
"class": "".concat(card_cssstyles.productDescStyles) + ' col-lg-12 wordbreak
|
|
75084
|
+
"class": sectionproperties.descriptionwordbreak == 'None' ? "".concat(card_cssstyles.productDescStyles) + ' col-lg-12 p-0 mt-1 ' : "".concat(card_cssstyles.productDescStyles) + ' col-lg-12 wordbreak wordbreak p-0 mt-1 ',
|
|
74895
75085
|
style: {
|
|
74896
75086
|
textAlign: sectionproperties.productnamecentered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right'
|
|
74897
75087
|
}
|
|
@@ -74952,18 +75142,23 @@
|
|
|
74952
75142
|
justifyContent: sectionproperties.productnamecentered == 'Centered' ? 'center' : 'start'
|
|
74953
75143
|
}
|
|
74954
75144
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
74955
|
-
"class": "".concat(card_cssstyles.cart_btn) + ' m-0 p-0 d-flex align-items-center justify-content-center mt-1 '
|
|
75145
|
+
"class": "".concat(card_cssstyles.cart_btn) + ' m-0 p-0 d-flex align-items-center justify-content-center mt-1 '
|
|
75146
|
+
// onClick={() => {
|
|
75147
|
+
// var productidtobesend = null;
|
|
75148
|
+
// if (sectionproperties.urlwithproductname == 'Yes') {
|
|
75149
|
+
// productidtobesend = item.productendpointurl;
|
|
75150
|
+
// } else {
|
|
75151
|
+
// productidtobesend = item.productid;
|
|
75152
|
+
// }
|
|
75153
|
+
// cardonclickfunctionContext(sectionproperties?.onClickRoute, productidtobesend, props.fetchingtypeprops, item.collectionid);
|
|
75154
|
+
// // setShowProductInfoModalContext(true);
|
|
75155
|
+
// // setProductIdProdutInfoModalContext(item.productid);
|
|
75156
|
+
// }}
|
|
75157
|
+
,
|
|
74956
75158
|
onClick: function onClick() {
|
|
74957
|
-
|
|
74958
|
-
if (sectionproperties.urlwithproductname == 'Yes') {
|
|
74959
|
-
productidtobesend = item.productendpointurl;
|
|
74960
|
-
} else {
|
|
74961
|
-
productidtobesend = item.productid;
|
|
74962
|
-
}
|
|
74963
|
-
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, productidtobesend, props.fetchingtypeprops, item.collectionid);
|
|
74964
|
-
// setShowProductInfoModalContext(true);
|
|
74965
|
-
// setProductIdProdutInfoModalContext(item.productid);
|
|
75159
|
+
addtocartfunc();
|
|
74966
75160
|
}
|
|
75161
|
+
// disabled={AddtoCartMutationContext.isLoading == true ? true : false}
|
|
74967
75162
|
}, sectionproperties.cartBtn_iconFontSize != 0 && /*#__PURE__*/React__default["default"].createElement("i", {
|
|
74968
75163
|
"class": langdetect == 'en' ? 'h-100 mr-2 d-flex align-items-center justify-content-center' : 'h-100 ml-2 d-flex align-items-center justify-content-center'
|
|
74969
75164
|
}, sectionproperties.carticonstyle == 'Shopping bag 1' && /*#__PURE__*/React__default["default"].createElement(FiShoppingBag.FiShoppingBag, {
|