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.cjs.js
CHANGED
|
@@ -3643,6 +3643,10 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
3643
3643
|
item_type: 'service'
|
|
3644
3644
|
}));
|
|
3645
3645
|
}, [tabsarray]);
|
|
3646
|
+
var today = new Date();
|
|
3647
|
+
today.getFullYear();
|
|
3648
|
+
(today.getMonth() + 1).toString().padStart(2, '0'); // Adding leading zero if necessary
|
|
3649
|
+
today.getDate().toString().padStart(2, '0'); // Adding leading zero if necessary
|
|
3646
3650
|
React.useEffect(function () {
|
|
3647
3651
|
var date1 = new Date(addtocardpayloadobj.from);
|
|
3648
3652
|
var date2 = new Date(addtocardpayloadobj.to);
|
|
@@ -4414,7 +4418,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
4414
4418
|
};
|
|
4415
4419
|
|
|
4416
4420
|
var Service_itemtype = function Service_itemtype(props) {
|
|
4417
|
-
var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8;
|
|
4421
|
+
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;
|
|
4418
4422
|
var lang = props.actions.lang;
|
|
4419
4423
|
var langdetect = props.actions.langdetect;
|
|
4420
4424
|
var srcfromprops = props.actions.srcfromprops;
|
|
@@ -4666,12 +4670,23 @@ var Service_itemtype = function Service_itemtype(props) {
|
|
|
4666
4670
|
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"
|
|
4667
4671
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4668
4672
|
"class": "row m-0 w-100"
|
|
4669
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4673
|
+
}, (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", {
|
|
4674
|
+
"class": "col-lg-12 p-0 d-flex justify-content-start mb-2"
|
|
4675
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
4676
|
+
"class": "m-0 p-0",
|
|
4677
|
+
style: {
|
|
4678
|
+
color: '#000'
|
|
4679
|
+
}
|
|
4680
|
+
}, langdetect == 'en' ? sectionproperties.vendortitleen : sectionproperties.vendortitlear, ":", ' ', /*#__PURE__*/React__default["default"].createElement("span", {
|
|
4681
|
+
style: {
|
|
4682
|
+
fontWeight: 600
|
|
4683
|
+
}
|
|
4684
|
+
}, 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", {
|
|
4670
4685
|
"class": "col-lg-12 p-0 d-flex justify-content-start"
|
|
4671
4686
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4672
4687
|
"class": "row m-0 w-100"
|
|
4673
4688
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4674
|
-
className: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4689
|
+
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'
|
|
4675
4690
|
}, ProductName()), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4676
4691
|
className: "col-lg-4 col-md-4 col-sm-4 p-0 mb-1 d-flex justify-content-end align-items-center"
|
|
4677
4692
|
}, sectionproperties.btnposition == 'Top' && sectionproperties.favBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -4702,11 +4717,11 @@ var Service_itemtype = function Service_itemtype(props) {
|
|
|
4702
4717
|
size: sectionproperties.favBtnIconfontsize
|
|
4703
4718
|
}), sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React__default["default"].createElement(FaRegHeart.FaRegHeart, {
|
|
4704
4719
|
size: sectionproperties.favBtnIconfontsize
|
|
4705
|
-
}))))))), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4720
|
+
}))))))), (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", {
|
|
4706
4721
|
"class": "col-lg-12 p-0 d-flex justify-content-start"
|
|
4707
4722
|
}, /*#__PURE__*/React__default["default"].createElement(ReactStars__default["default"], {
|
|
4708
4723
|
count: 5,
|
|
4709
|
-
value: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4724
|
+
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,
|
|
4710
4725
|
edit: false,
|
|
4711
4726
|
size: 18,
|
|
4712
4727
|
emptyIcon: /*#__PURE__*/React__default["default"].createElement("i", {
|
|
@@ -4726,7 +4741,7 @@ var Service_itemtype = function Service_itemtype(props) {
|
|
|
4726
4741
|
}),
|
|
4727
4742
|
activeColor: "#ffd700"
|
|
4728
4743
|
})))), sectionproperties.showSKU == 'Show' && sectionproperties.productInformationType == 'Product/Service Information' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4729
|
-
"class": sectionproperties.deliverytimeshow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4744
|
+
"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'
|
|
4730
4745
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
4731
4746
|
"class": "m-0 p-0 d-flex justify-content-start"
|
|
4732
4747
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
@@ -4746,7 +4761,26 @@ var Service_itemtype = function Service_itemtype(props) {
|
|
|
4746
4761
|
}
|
|
4747
4762
|
}, fetchProductInfoQueryContext.data.data.productinfo.sku))), /*#__PURE__*/React__default["default"].createElement(ProductHeaderPricing, {
|
|
4748
4763
|
actions: props.actions
|
|
4749
|
-
}), sectionproperties.
|
|
4764
|
+
}), sectionproperties.descriptionstyle == 'Style 1' && sectionproperties.descriptionposition == 'Top' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4765
|
+
"class": "col-lg-12 col-md-12 p-md-0 mt-3"
|
|
4766
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4767
|
+
"class": "row m-0 w-100"
|
|
4768
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4769
|
+
className: "col-lg-10 col-md-10 col-sm-10 p-0 d-flex align-items-center justify-content-start"
|
|
4770
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
4771
|
+
"class": "m-0 p-0",
|
|
4772
|
+
style: {
|
|
4773
|
+
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
4774
|
+
fontWeight: sectionproperties.prodCatFontWeight,
|
|
4775
|
+
color: sectionproperties.prodCatColor,
|
|
4776
|
+
fontSize: sectionproperties.prodCatFontSize + 'px'
|
|
4777
|
+
}
|
|
4778
|
+
}, langdetect == 'en' ? sectionproperties.descriptionContentEn : sectionproperties.descriptionContentAr))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4779
|
+
"class": "col-lg-12 p-0 mt-3"
|
|
4780
|
+
}, /*#__PURE__*/React__default["default"].createElement(DescriptionContent, {
|
|
4781
|
+
actions: props.actions,
|
|
4782
|
+
srcfromprops: 'collap'
|
|
4783
|
+
}))), 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", {
|
|
4750
4784
|
"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',
|
|
4751
4785
|
style: {
|
|
4752
4786
|
width: '100%',
|
|
@@ -4772,11 +4806,11 @@ var Service_itemtype = function Service_itemtype(props) {
|
|
|
4772
4806
|
// textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
4773
4807
|
color: sectionproperties.deliverytimecontainercolor
|
|
4774
4808
|
}
|
|
4775
|
-
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4809
|
+
}, 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", {
|
|
4776
4810
|
"class": "col-lg-12 text-start p-md-0"
|
|
4777
4811
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4778
4812
|
className: "row m-0 w-100"
|
|
4779
|
-
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4813
|
+
}, 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) {
|
|
4780
4814
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4781
4815
|
"class": "col-lg-4 col-md-12 p-0 mb-3 mt-2"
|
|
4782
4816
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -4902,7 +4936,7 @@ var Service_itemtype = function Service_itemtype(props) {
|
|
|
4902
4936
|
color: sectionproperties.prodCatColor
|
|
4903
4937
|
},
|
|
4904
4938
|
dangerouslySetInnerHTML: {
|
|
4905
|
-
__html: langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (
|
|
4939
|
+
__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
|
|
4906
4940
|
}
|
|
4907
4941
|
})))))), sectionproperties.descriptionstyle == 'Style 2' && sectionproperties.showshortdescription == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4908
4942
|
"class": "col-lg-12 col-md-12 my-3 p-md-0"
|
|
@@ -5027,7 +5061,7 @@ var Service_itemtype = function Service_itemtype(props) {
|
|
|
5027
5061
|
onClick: function onClick() {
|
|
5028
5062
|
routingcountext(StaticPagesLinksContext.RefundPolicy);
|
|
5029
5063
|
}
|
|
5030
|
-
},
|
|
5064
|
+
}, langdetect == 'en' ? 'SEE MORE' : 'عرض المزيد')))))), sectionproperties.descriptionstyle == 'Style 2' && sectionproperties.showfirstpolicy == 'Show' && sectionproperties.showsecondpolicy == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5031
5065
|
"class": "col-lg-12 col-md-12 my-3 p-md-0"
|
|
5032
5066
|
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
5033
5067
|
"class": "m-0"
|
|
@@ -17683,9 +17717,11 @@ var CardsSection = function CardsSection(props) {
|
|
|
17683
17717
|
}
|
|
17684
17718
|
var section_cssstyles = {
|
|
17685
17719
|
sectioncontainerr: glamor.css({
|
|
17720
|
+
width: sectionproperties.width + 'vw',
|
|
17686
17721
|
marginTop: sectionproperties.marginTop + 'px',
|
|
17687
17722
|
'@media (max-width: 800px)': {
|
|
17688
|
-
marginTop: sectionproperties.marginTopResp != undefined && sectionproperties.marginTopResp != undefined ? sectionproperties.marginTopResp + 'px' : sectionproperties.marginTop + 'px'
|
|
17723
|
+
marginTop: sectionproperties.marginTopResp != undefined && sectionproperties.marginTopResp != undefined ? sectionproperties.marginTopResp + 'px' : sectionproperties.marginTop + 'px',
|
|
17724
|
+
width: sectionproperties.widthresponsive + 'vw'
|
|
17689
17725
|
}
|
|
17690
17726
|
}),
|
|
17691
17727
|
innercardssection: glamor.css({
|
|
@@ -18030,7 +18066,7 @@ var CardsSection = function CardsSection(props) {
|
|
|
18030
18066
|
}
|
|
18031
18067
|
}, SectionTitle()), sectionproperties.sectiontitledirection == 'Vertical' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18032
18068
|
"class": "col-lg-12 p-0"
|
|
18033
|
-
}, sectionproperties.viewmorebtnshow == 'Show' && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
18069
|
+
}, sectionproperties.viewmorebtnshow == 'Show' && sectionproperties.viewmorebtnposition != 'Under Section' && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
18034
18070
|
"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 ',
|
|
18035
18071
|
onClick: function onClick() {
|
|
18036
18072
|
if (fetchingtype == 'products') {
|
|
@@ -18099,7 +18135,7 @@ var CardsSection = function CardsSection(props) {
|
|
|
18099
18135
|
}
|
|
18100
18136
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18101
18137
|
"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 '
|
|
18102
|
-
}, sectionproperties.viewmorebtnshow == 'Show' && sectionproperties.sectiontitledirection == 'Horizontal' && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
18138
|
+
}, sectionproperties.viewmorebtnshow == 'Show' && sectionproperties.sectiontitledirection == 'Horizontal' && sectionproperties.viewmorebtnposition != 'Under Section' && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
18103
18139
|
"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 ',
|
|
18104
18140
|
onClick: function onClick() {
|
|
18105
18141
|
if (fetchingtype == 'products') {
|
|
@@ -18254,7 +18290,10 @@ var CardsSection = function CardsSection(props) {
|
|
|
18254
18290
|
item.tabexsectioninfo.sectioncompname == 'Productcard7' ? 'scrollmenuclassnameitemProductcard7' : item.tabexsectioninfo.sectioncompname == 'MenuCard' ? 'scrollmenuclassnameitemMenuCard' : item.tabexsectioninfo.sectioncompname == 'StylishProductCard' ? 'scrollmenuclassnameitemStylishProductCard' : item.tabexsectioninfo.sectioncompname == 'ProductCardWithTextOnImage' ? 'scrollmenuclassnameitemProductCardWithTextOnImage' :
|
|
18255
18291
|
// : item.tabexsectioninfo.sectioncompname == 'Card23'
|
|
18256
18292
|
// ? 'scrollmenuclassnameitemCard23'
|
|
18257
|
-
item.tabexsectioninfo.sectioncompname == 'Card20' ? 'scrollmenuclassnameitemCard20' : item.tabexsectioninfo.sectioncompname == 'ModernCardWithQuantityButton' ? 'scrollmenuclassnameitemModernCardWithQuantityButton' :
|
|
18293
|
+
item.tabexsectioninfo.sectioncompname == 'Card20' ? 'scrollmenuclassnameitemCard20' : item.tabexsectioninfo.sectioncompname == 'ModernCardWithQuantityButton' ? 'scrollmenuclassnameitemModernCardWithQuantityButton' :
|
|
18294
|
+
// : item.tabexsectioninfo.sectioncompname == 'CategoryCardwithhoveraction'
|
|
18295
|
+
// ? 'scrollmenuclassnameitemCategoryCardwithhoveraction'
|
|
18296
|
+
item.tabexsectioninfo.sectioncompname == 'CircleCardWithVariants' ? 'scrollmenuclassnameitemCircleCardWithVariants' :
|
|
18258
18297
|
// : item.tabexsectioninfo.sectioncompname == 'UpSlideEffectCard'
|
|
18259
18298
|
// ? 'scrollmenuclassnameitemUpSlideEffectCard'
|
|
18260
18299
|
item.tabexsectioninfo.sectioncompname == 'CategoryCardTextOnImage' ? 'scrollmenuclassnameitemCategoryCardTextOnImage' : '',
|
|
@@ -18516,24 +18555,55 @@ var CardsSection = function CardsSection(props) {
|
|
|
18516
18555
|
}))));
|
|
18517
18556
|
}
|
|
18518
18557
|
}
|
|
18519
|
-
}))
|
|
18558
|
+
})), sectionproperties.viewmorebtnposition == 'Under Section' && sectionproperties.viewmorebtnshow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18559
|
+
"class": "col-lg-12 p-0 allcentered"
|
|
18560
|
+
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
18561
|
+
"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 ',
|
|
18562
|
+
onClick: function onClick() {
|
|
18563
|
+
if (fetchingtype == 'products') {
|
|
18564
|
+
if (ProductsFetchingTypeSectionObj.productfetchingtype == 'Collection') {
|
|
18565
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + ProductsFetchingTypeSectionObj.collectionid);
|
|
18566
|
+
} else {
|
|
18567
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(ProductFilterObjContext)));
|
|
18568
|
+
}
|
|
18569
|
+
} else {
|
|
18570
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
|
|
18571
|
+
}
|
|
18572
|
+
},
|
|
18573
|
+
style: {
|
|
18574
|
+
flexDirection: 'row'
|
|
18575
|
+
}
|
|
18576
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
18577
|
+
"class": 'd-flex justify-content-center align-items-center'
|
|
18578
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
18579
|
+
"class": sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : 'Poppins'
|
|
18580
|
+
}, langdetect == 'en' ? sectionproperties.viewmorebtn_text : sectionproperties.viewmorebtn_text_ar), sectionproperties.showIcon == 'Show' && /*#__PURE__*/React__default["default"].createElement("i", {
|
|
18581
|
+
"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',
|
|
18582
|
+
style: {
|
|
18583
|
+
marginLeft: 5,
|
|
18584
|
+
marginRight: 5
|
|
18585
|
+
}
|
|
18586
|
+
}, langdetect == 'en' ? /*#__PURE__*/React__default["default"].createElement(HiOutlineArrowRight.HiOutlineArrowRight, {
|
|
18587
|
+
size: sectionproperties.viewmoreiconfontsize
|
|
18588
|
+
}) : /*#__PURE__*/React__default["default"].createElement(HiOutlineArrowLeft.HiOutlineArrowLeft, {
|
|
18589
|
+
size: sectionproperties.viewmoreiconfontsize
|
|
18590
|
+
})))))));
|
|
18520
18591
|
};
|
|
18521
18592
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18522
18593
|
ref: refscr,
|
|
18523
|
-
"class": section_cssstyles.sectioncontainerr + ' row ml-0 mr-0 d-flex justify-content-center ml-auto mr-auto
|
|
18594
|
+
"class": section_cssstyles.sectioncontainerr + ' row ml-0 mr-0 d-flex justify-content-center ml-auto mr-auto ',
|
|
18524
18595
|
style: {
|
|
18525
18596
|
zIndex: 2,
|
|
18526
18597
|
background: sectionproperties.backgroundColortransparent == 'Transparent' ? 'transparent' : sectionproperties.backgroundColor,
|
|
18527
18598
|
backgroundImage: maincontainerarrayofobjs.length != 0 ? 'url(' + image_serverbaselink + maincontainerarrayofobjs[0].back_bgimage + ')' : '',
|
|
18528
18599
|
backgroundSize: 'cover',
|
|
18529
|
-
width: sectionproperties.width + 'vw',
|
|
18530
18600
|
boxShadow: sectionproperties.sectioncardshadow == 'Show' ? '0 0 10px ' + sectionproperties.sectioncardshadowcolor : 'none',
|
|
18531
18601
|
borderBottomLeftRadius: langdetect == 'en' ? sectionproperties.borderBottomLeftRadius + 'px' : sectionproperties.borderBottomRightRadius + 'px',
|
|
18532
18602
|
borderBottomRightRadius: langdetect == 'en' ? sectionproperties.borderBottomRightRadius + 'px' : sectionproperties.borderBottomLeftRadius + 'px',
|
|
18533
18603
|
borderTopLeftRadius: langdetect == 'en' ? sectionproperties.borderTopLeftRadius + 'px' : sectionproperties.borderTopRightRadius + 'px',
|
|
18534
18604
|
borderTopRightRadius: langdetect == 'en' ? sectionproperties.borderTopRightRadius + 'px' : sectionproperties.borderTopLeftRadius + 'px',
|
|
18535
|
-
marginBottom: sectionproperties.marginBottom + 'px'
|
|
18536
|
-
minHeight: sectionproperties.height == null || sectionproperties.height == 0 ? 'auto' : sectionproperties.height + 'vh'
|
|
18605
|
+
marginBottom: sectionproperties.marginBottom + 'px'
|
|
18606
|
+
// minHeight: sectionproperties.height == null || sectionproperties.height == 0 ? 'auto' : sectionproperties.height + 'vh',
|
|
18537
18607
|
}
|
|
18538
18608
|
}, sectionproperties.length != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18539
18609
|
"class": section_cssstyles.innercardssection + ' row ml-0 mr-0 d-flex justify-content-center w-md-100 h-md-100 w-100 '
|
|
@@ -24473,7 +24543,7 @@ var Gotoheader = function Gotoheader(props) {
|
|
|
24473
24543
|
sectionpropertiesprops: sectionproperties,
|
|
24474
24544
|
srcfromprops: 'header-400',
|
|
24475
24545
|
actions: actions
|
|
24476
|
-
})))), /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"], {
|
|
24546
|
+
})))), sectionproperties.ShowUserBtn == 'Show' && /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"], {
|
|
24477
24547
|
style: {
|
|
24478
24548
|
marginLeft: langdetect == 'en' ? '1rem' : '',
|
|
24479
24549
|
marginRight: langdetect == 'ar' ? '1rem' : ''
|
|
@@ -24783,8 +24853,8 @@ var Gotoheader = function Gotoheader(props) {
|
|
|
24783
24853
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
24784
24854
|
"class": "".concat(headerstyles$e.topbar_item_container),
|
|
24785
24855
|
style: {
|
|
24786
|
-
marginRight: langdetect == 'en' ? '
|
|
24787
|
-
marginLeft: langdetect == 'en' ? 0 : '
|
|
24856
|
+
marginRight: langdetect == 'en' ? '30px' : 0,
|
|
24857
|
+
marginLeft: langdetect == 'en' ? 0 : '30px'
|
|
24788
24858
|
},
|
|
24789
24859
|
onClick: function onClick() {
|
|
24790
24860
|
// history.push(item.navigationroute);
|
|
@@ -24805,8 +24875,8 @@ var Gotoheader = function Gotoheader(props) {
|
|
|
24805
24875
|
actions: actions,
|
|
24806
24876
|
subheaderpropertiesprops: {
|
|
24807
24877
|
subheaderpositionprops: 'in nav',
|
|
24808
|
-
paddingLeftprops: '
|
|
24809
|
-
paddingRightprops: '
|
|
24878
|
+
paddingLeftprops: '30px',
|
|
24879
|
+
paddingRightprops: '30px',
|
|
24810
24880
|
subheadercontentpositionprops: sectionproperties.header_centered == 'Centered' ? 'center' : 'start'
|
|
24811
24881
|
}
|
|
24812
24882
|
})))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -24816,8 +24886,8 @@ var Gotoheader = function Gotoheader(props) {
|
|
|
24816
24886
|
actions: actions,
|
|
24817
24887
|
subheaderpropertiesprops: {
|
|
24818
24888
|
subheaderpositionprops: 'Full Width',
|
|
24819
|
-
paddingLeftprops: '
|
|
24820
|
-
paddingRightprops: '
|
|
24889
|
+
paddingLeftprops: '30px',
|
|
24890
|
+
paddingRightprops: '30px',
|
|
24821
24891
|
subheadercontentpositionprops: 'start'
|
|
24822
24892
|
}
|
|
24823
24893
|
}))), !authdetailsContext.loggedin && sectionproperties.hideheaderwhenloggedin == 'Hide' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -28634,8 +28704,8 @@ var Header_threesectionslogocentered = function Header_threesectionslogocentered
|
|
|
28634
28704
|
headernameprops: 'Header_threesectionslogocentered'
|
|
28635
28705
|
})))), sectionproperties.ShowUserBtn == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28636
28706
|
style: {
|
|
28637
|
-
marginRight: langdetect == 'en' ? '1.5rem' : '1.2rem',
|
|
28638
|
-
marginLeft: langdetect == 'en' ? '1.2rem' : '1.5rem'
|
|
28707
|
+
marginRight: sectionproperties.favBtnShow == 'Show' ? langdetect == 'en' ? '1.5rem' : '1.2rem' : 0,
|
|
28708
|
+
marginLeft: sectionproperties.favBtnShow == 'Show' ? langdetect == 'en' ? '1.2rem' : '1.5rem' : 0
|
|
28639
28709
|
}
|
|
28640
28710
|
}, /*#__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", {
|
|
28641
28711
|
"class": ' d-flex justify-content-center align-items-center '
|
|
@@ -28747,7 +28817,7 @@ var Header_threesectionslogocentered = function Header_threesectionslogocentered
|
|
|
28747
28817
|
"class": "".concat(header_cssstyles.dropdownitem) + ' dropdownitem d-flex align-items-center m-0 p-0 '
|
|
28748
28818
|
}, /*#__PURE__*/React__default["default"].createElement(BiLogOutCircle.BiLogOutCircle, null), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
28749
28819
|
"class": "ml-2 mr-2"
|
|
28750
|
-
}, lang.logout))))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28820
|
+
}, lang.logout))))))), sectionproperties.favBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28751
28821
|
"class": "".concat(header_cssstyles.wishlist_btn) + ' d-flex justify-content-center align-items-center cursor-pointer ',
|
|
28752
28822
|
onClick: function onClick() {
|
|
28753
28823
|
routingcountext(StaticPagesLinksContext.Wishlist);
|
|
@@ -28820,7 +28890,7 @@ var Header_threesectionslogocentered = function Header_threesectionslogocentered
|
|
|
28820
28890
|
}
|
|
28821
28891
|
}), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
28822
28892
|
"class": 'ml-2 mr-2'
|
|
28823
|
-
},
|
|
28893
|
+
}, "\u0639\u0631\u0628\u064A")))), /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Divider, null), /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Item, {
|
|
28824
28894
|
onClick: function onClick() {
|
|
28825
28895
|
setlang('en');
|
|
28826
28896
|
}
|
|
@@ -28841,7 +28911,7 @@ var Header_threesectionslogocentered = function Header_threesectionslogocentered
|
|
|
28841
28911
|
}
|
|
28842
28912
|
}), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
28843
28913
|
"class": 'ml-2 mr-2'
|
|
28844
|
-
},
|
|
28914
|
+
}, "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", {
|
|
28845
28915
|
"class": ' d-flex align-items-center justify-content-center '
|
|
28846
28916
|
}, langdetect == 'en' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
28847
28917
|
"class": "".concat(header_cssstyles.languagecontainer) + ' row m-0 w-100 d-flex align-items-center '
|
|
@@ -49170,8 +49240,8 @@ function ownKeys$1n(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySym
|
|
|
49170
49240
|
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; }
|
|
49171
49241
|
var ModernCardsSection = function ModernCardsSection(props) {
|
|
49172
49242
|
var _useInView = reactIntersectionObserver.useInView(),
|
|
49173
|
-
ref = _useInView.ref
|
|
49174
|
-
|
|
49243
|
+
ref = _useInView.ref;
|
|
49244
|
+
_useInView.inView;
|
|
49175
49245
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
49176
49246
|
props.actions.lang;
|
|
49177
49247
|
var langdetect = props.actions.langdetect;
|
|
@@ -49192,33 +49262,55 @@ var ModernCardsSection = function ModernCardsSection(props) {
|
|
|
49192
49262
|
var fetchingtype = props.actions.fetchingtype;
|
|
49193
49263
|
props.actions.addtofavoritescontext;
|
|
49194
49264
|
var fetchAuthorizationQueryContext = props.actions.fetchAuthorizationQueryContext;
|
|
49265
|
+
var fetchCategoriesQueryContext = props.actions.fetchCategoriesQueryContext;
|
|
49266
|
+
var FetchVendorsQuery = props.actions.FetchVendorsQuery;
|
|
49267
|
+
props.actions.ikimagecredcontext;
|
|
49268
|
+
props.actions.sortbycontext;
|
|
49269
|
+
props.actions.setsortbycontext;
|
|
49270
|
+
var _useState = React.useState(false),
|
|
49271
|
+
_useState2 = _slicedToArray__default["default"](_useState, 2);
|
|
49272
|
+
_useState2[0];
|
|
49273
|
+
_useState2[1];
|
|
49195
49274
|
var actions = props.actions;
|
|
49196
|
-
var
|
|
49197
|
-
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
49198
|
-
sectionproperties = _useState2[0],
|
|
49199
|
-
setsectionproperties = _useState2[1];
|
|
49200
|
-
var _useState3 = React.useState([]),
|
|
49275
|
+
var _useState3 = React.useState(''),
|
|
49201
49276
|
_useState4 = _slicedToArray__default["default"](_useState3, 2),
|
|
49202
|
-
|
|
49203
|
-
|
|
49204
|
-
var _useState5 = React.useState(
|
|
49277
|
+
sectionproperties = _useState4[0],
|
|
49278
|
+
setsectionproperties = _useState4[1];
|
|
49279
|
+
var _useState5 = React.useState([]),
|
|
49205
49280
|
_useState6 = _slicedToArray__default["default"](_useState5, 2),
|
|
49206
|
-
|
|
49207
|
-
|
|
49208
|
-
|
|
49209
|
-
|
|
49210
|
-
|
|
49211
|
-
|
|
49212
|
-
|
|
49213
|
-
var _useState7 = React.useState({
|
|
49281
|
+
cardsarray = _useState6[0],
|
|
49282
|
+
setcardsarray = _useState6[1];
|
|
49283
|
+
var _useState7 = React.useState(''),
|
|
49284
|
+
_useState8 = _slicedToArray__default["default"](_useState7, 2),
|
|
49285
|
+
sectionitem = _useState8[0],
|
|
49286
|
+
setsectionitem = _useState8[1];
|
|
49287
|
+
var _useState9 = React.useState({
|
|
49214
49288
|
productfetchingtype: 'Random',
|
|
49215
49289
|
collectionid: '',
|
|
49216
49290
|
grouptype: ''
|
|
49217
49291
|
}),
|
|
49218
|
-
|
|
49219
|
-
ProductsFetchingTypeSectionObj =
|
|
49220
|
-
setProductsFetchingTypeSectionObj =
|
|
49292
|
+
_useState10 = _slicedToArray__default["default"](_useState9, 2),
|
|
49293
|
+
ProductsFetchingTypeSectionObj = _useState10[0],
|
|
49294
|
+
setProductsFetchingTypeSectionObj = _useState10[1];
|
|
49295
|
+
var _useState11 = React.useState([]),
|
|
49296
|
+
_useState12 = _slicedToArray__default["default"](_useState11, 2);
|
|
49297
|
+
_useState12[0];
|
|
49298
|
+
var setmaincontainerarrayofobjs = _useState12[1];
|
|
49299
|
+
var _useState13 = React.useState(12),
|
|
49300
|
+
_useState14 = _slicedToArray__default["default"](_useState13, 2);
|
|
49301
|
+
_useState14[0];
|
|
49302
|
+
var setperpageItems = _useState14[1];
|
|
49303
|
+
props.actions.AddtoCartMutationContext;
|
|
49221
49304
|
React.useEffect(function () {
|
|
49305
|
+
var productfilerobjtemp = ProductFilterObjContext;
|
|
49306
|
+
if (props.filterparamsprops != undefined) {
|
|
49307
|
+
var filterpar = decodeURIComponent(props.filterparamsprops);
|
|
49308
|
+
var filterparsed = JSON.parse(filterpar);
|
|
49309
|
+
if (filterparsed != undefined) {
|
|
49310
|
+
productfilerobjtemp = filterparsed;
|
|
49311
|
+
setProductFilterObjContext(filterparsed);
|
|
49312
|
+
}
|
|
49313
|
+
}
|
|
49222
49314
|
StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
|
|
49223
49315
|
if (sectionitem.sectionid == props.sectionidprops) {
|
|
49224
49316
|
var secpropobj = {};
|
|
@@ -49229,14 +49321,20 @@ var ModernCardsSection = function ModernCardsSection(props) {
|
|
|
49229
49321
|
setsectionproperties(_objectSpread$1n({}, secpropobj));
|
|
49230
49322
|
if (props.srcfromprops == 'GeneralProductsComponent') {
|
|
49231
49323
|
setfetchingtype('products');
|
|
49324
|
+
var lcproductfetchingtype = 'Random';
|
|
49325
|
+
if (productfilerobjtemp.ProductFetchingType != undefined && productfilerobjtemp.ProductFetchingType != null && productfilerobjtemp.ProductFetchingType.length != 0) {
|
|
49326
|
+
lcproductfetchingtype = productfilerobjtemp.ProductFetchingType;
|
|
49327
|
+
}
|
|
49232
49328
|
setProductsFetchingTypeSectionObj({
|
|
49233
|
-
productfetchingtype:
|
|
49329
|
+
productfetchingtype: lcproductfetchingtype,
|
|
49234
49330
|
collectionid: props.collectionidprops,
|
|
49235
49331
|
grouptype: props.grouptypeprops,
|
|
49236
49332
|
grouptyperefid: props.grouptyperefidprops
|
|
49237
49333
|
});
|
|
49238
49334
|
} else if (props.srcfromprops == 'InnerGroups' || props.srcfromprops == 'InnerCategory' || props.srcfromprops == 'InnerParentCollection') {
|
|
49239
49335
|
setfetchingtype(props.grouptypeprops);
|
|
49336
|
+
} else if (props.srcfromprops == 'Innervendor') {
|
|
49337
|
+
setfetchingtype('vendors');
|
|
49240
49338
|
} else {
|
|
49241
49339
|
setfetchingtype(sectionitem.fetchingtype);
|
|
49242
49340
|
setProductsFetchingTypeSectionObj({
|
|
@@ -49265,6 +49363,11 @@ var ModernCardsSection = function ModernCardsSection(props) {
|
|
|
49265
49363
|
});
|
|
49266
49364
|
cardobjassigner(allpagesarr);
|
|
49267
49365
|
}
|
|
49366
|
+
} else if (fetchingtype == 'vendors') {
|
|
49367
|
+
if (FetchVendorsQuery.isSuccess) {
|
|
49368
|
+
var _FetchVendorsQuery$da;
|
|
49369
|
+
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);
|
|
49370
|
+
}
|
|
49268
49371
|
}
|
|
49269
49372
|
}
|
|
49270
49373
|
}
|
|
@@ -49273,7 +49376,6 @@ var ModernCardsSection = function ModernCardsSection(props) {
|
|
|
49273
49376
|
if ((fetchingtype === null || fetchingtype === void 0 ? void 0 : fetchingtype.length) != 0) {
|
|
49274
49377
|
var tempFetchQueriesEngineContext = FetchQueriesEngineContext;
|
|
49275
49378
|
if (fetchingtype == 'collections') {
|
|
49276
|
-
// tempFetchQueriesEngineContext.collections = true;
|
|
49277
49379
|
if (ProductsFetchingTypeSectionObj.collectionid == 'all' || ProductsFetchingTypeSectionObj.collectionid == null || ProductsFetchingTypeSectionObj.collectionid == undefined) {
|
|
49278
49380
|
setParentCollectionsForCollectionQueryArr('all');
|
|
49279
49381
|
} else {
|
|
@@ -49284,41 +49386,57 @@ var ModernCardsSection = function ModernCardsSection(props) {
|
|
|
49284
49386
|
var tempfetchproductsfilerobjcontext = ProductFilterObjContext;
|
|
49285
49387
|
tempfetchproductsfilerobjcontext.ProductFetchingType = ProductsFetchingTypeSectionObj.productfetchingtype;
|
|
49286
49388
|
if (ProductsFetchingTypeSectionObj.grouptype == 'collections' || ProductsFetchingTypeSectionObj.grouptype == 'categories' || ProductsFetchingTypeSectionObj.grouptype == 'parentcollections') ; else {
|
|
49287
|
-
tempfetchproductsfilerobjcontext.collections
|
|
49389
|
+
if (tempfetchproductsfilerobjcontext.collections != undefined) {
|
|
49390
|
+
tempfetchproductsfilerobjcontext.collections.push(ProductsFetchingTypeSectionObj.collectionid);
|
|
49391
|
+
}
|
|
49288
49392
|
}
|
|
49289
49393
|
tempfetchproductsfilerobjcontext.grouptype = ProductsFetchingTypeSectionObj.grouptype;
|
|
49290
49394
|
tempfetchproductsfilerobjcontext.grouptyperefid = ProductsFetchingTypeSectionObj.grouptyperefid;
|
|
49291
49395
|
setProductFilterObjContext(_objectSpread$1n({}, tempfetchproductsfilerobjcontext));
|
|
49292
49396
|
}
|
|
49397
|
+
setFetchQueriesEngineContext(_objectSpread$1n({}, tempFetchQueriesEngineContext));
|
|
49398
|
+
}
|
|
49399
|
+
}, [fetchingtype, ProductsFetchingTypeSectionObj]);
|
|
49400
|
+
React.useEffect(function () {
|
|
49401
|
+
if ((fetchingtype === null || fetchingtype === void 0 ? void 0 : fetchingtype.length) != 0) {
|
|
49293
49402
|
if (fetchingtype == 'categories') {
|
|
49294
|
-
|
|
49295
|
-
|
|
49296
|
-
|
|
49403
|
+
var categories = [];
|
|
49404
|
+
if (fetchCategoriesQueryContext !== null && fetchCategoriesQueryContext !== void 0 && fetchCategoriesQueryContext.isSuccess) {
|
|
49405
|
+
var _fetchCategoriesQuery;
|
|
49406
|
+
categories = fetchCategoriesQueryContext === null || fetchCategoriesQueryContext === void 0 || (_fetchCategoriesQuery = fetchCategoriesQueryContext.data) === null || _fetchCategoriesQuery === void 0 || (_fetchCategoriesQuery = _fetchCategoriesQuery.data) === null || _fetchCategoriesQuery === void 0 ? void 0 : _fetchCategoriesQuery.categories;
|
|
49297
49407
|
}
|
|
49408
|
+
cardobjassigner(categories);
|
|
49298
49409
|
}
|
|
49299
49410
|
if (fetchingtype == 'parentcollections' || fetchingtype == 'innercategories') {
|
|
49300
|
-
|
|
49301
|
-
|
|
49302
|
-
|
|
49303
|
-
var
|
|
49304
|
-
(
|
|
49305
|
-
|
|
49411
|
+
var _categories;
|
|
49412
|
+
var categories = [];
|
|
49413
|
+
if (fetchCategoriesQueryContext !== null && fetchCategoriesQueryContext !== void 0 && fetchCategoriesQueryContext.isSuccess) {
|
|
49414
|
+
var _fetchCategoriesQuery2;
|
|
49415
|
+
categories = fetchCategoriesQueryContext === null || fetchCategoriesQueryContext === void 0 || (_fetchCategoriesQuery2 = fetchCategoriesQueryContext.data) === null || _fetchCategoriesQuery2 === void 0 || (_fetchCategoriesQuery2 = _fetchCategoriesQuery2.data) === null || _fetchCategoriesQuery2 === void 0 ? void 0 : _fetchCategoriesQuery2.categories;
|
|
49416
|
+
}
|
|
49417
|
+
// if (fetchAuthorizationQueryContext?.isSuccess) {
|
|
49418
|
+
// var categories = fetchAuthorizationQueryContext.data.data.instinfo.instcategories;
|
|
49419
|
+
// alert(JSON.stringify(categories));
|
|
49420
|
+
var parentcollections = [];
|
|
49421
|
+
(_categories = categories) === null || _categories === void 0 || _categories.forEach(function (catitem, catindex) {
|
|
49422
|
+
catitem === null || catitem === void 0 || catitem.parentcolletions.forEach(function (parentcolitem) {
|
|
49423
|
+
if (parentcolitem.isshowntocustomers == 1) {
|
|
49306
49424
|
parentcolitem.categoryid = catitem.categoryid;
|
|
49307
49425
|
parentcollections.push(parentcolitem);
|
|
49308
|
-
});
|
|
49309
|
-
});
|
|
49310
|
-
if (fetchingtype == 'parentcollections') {
|
|
49311
|
-
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') {
|
|
49312
|
-
var arrafterfilter = [];
|
|
49313
|
-
parentcollections.forEach(function (parentcolitem, parcolindex) {
|
|
49314
|
-
if (parentcolitem.categoryid == (sectionitem === null || sectionitem === void 0 ? void 0 : sectionitem.productsfetchingtypeparentcollectioncategoryid)) {
|
|
49315
|
-
arrafterfilter.push(parentcolitem);
|
|
49316
|
-
}
|
|
49317
|
-
});
|
|
49318
|
-
parentcollections = arrafterfilter;
|
|
49319
49426
|
}
|
|
49427
|
+
});
|
|
49428
|
+
});
|
|
49429
|
+
if (fetchingtype == 'parentcollections') {
|
|
49430
|
+
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') {
|
|
49431
|
+
var arrafterfilter = [];
|
|
49432
|
+
parentcollections.forEach(function (parentcolitem, parcolindex) {
|
|
49433
|
+
if (parentcolitem.categoryid == (sectionitem === null || sectionitem === void 0 ? void 0 : sectionitem.productsfetchingtypeparentcollectioncategoryid)) {
|
|
49434
|
+
arrafterfilter.push(parentcolitem);
|
|
49435
|
+
}
|
|
49436
|
+
});
|
|
49437
|
+
parentcollections = arrafterfilter;
|
|
49320
49438
|
}
|
|
49321
|
-
if (
|
|
49439
|
+
if (props.collectionidprops != null && props.collectionidprops != undefined && props.collectionidprops != 'all') {
|
|
49322
49440
|
var arrafterfilter = [];
|
|
49323
49441
|
parentcollections.forEach(function (parentcolitem, parcolindex) {
|
|
49324
49442
|
if (parentcolitem.categoryid == props.collectionidprops) {
|
|
@@ -49327,54 +49445,74 @@ var ModernCardsSection = function ModernCardsSection(props) {
|
|
|
49327
49445
|
});
|
|
49328
49446
|
parentcollections = arrafterfilter;
|
|
49329
49447
|
}
|
|
49330
|
-
cardobjassigner(parentcollections);
|
|
49331
49448
|
}
|
|
49449
|
+
if (fetchingtype == 'innercategories') {
|
|
49450
|
+
var arrafterfilter = [];
|
|
49451
|
+
parentcollections.forEach(function (parentcolitem, parcolindex) {
|
|
49452
|
+
if (parentcolitem.categoryid == props.collectionidprops) {
|
|
49453
|
+
arrafterfilter.push(parentcolitem);
|
|
49454
|
+
}
|
|
49455
|
+
});
|
|
49456
|
+
parentcollections = arrafterfilter;
|
|
49457
|
+
}
|
|
49458
|
+
cardobjassigner(parentcollections);
|
|
49459
|
+
// }
|
|
49332
49460
|
} else if (fetchingtype == 'innerparentcollections') {
|
|
49333
|
-
|
|
49334
|
-
|
|
49335
|
-
|
|
49336
|
-
var
|
|
49337
|
-
(
|
|
49338
|
-
|
|
49339
|
-
|
|
49340
|
-
|
|
49341
|
-
|
|
49461
|
+
var _categories2;
|
|
49462
|
+
var categories = [];
|
|
49463
|
+
if (fetchCategoriesQueryContext !== null && fetchCategoriesQueryContext !== void 0 && fetchCategoriesQueryContext.isSuccess) {
|
|
49464
|
+
var _fetchCategoriesQuery3;
|
|
49465
|
+
categories = fetchCategoriesQueryContext === null || fetchCategoriesQueryContext === void 0 || (_fetchCategoriesQuery3 = fetchCategoriesQueryContext.data) === null || _fetchCategoriesQuery3 === void 0 || (_fetchCategoriesQuery3 = _fetchCategoriesQuery3.data) === null || _fetchCategoriesQuery3 === void 0 ? void 0 : _fetchCategoriesQuery3.categories;
|
|
49466
|
+
}
|
|
49467
|
+
// if (fetchAuthorizationQueryContext?.isSuccess) {
|
|
49468
|
+
// var categories = fetchAuthorizationQueryContext.data.data.instinfo.instcategories;
|
|
49469
|
+
var collections = [];
|
|
49470
|
+
(_categories2 = categories) === null || _categories2 === void 0 || _categories2.forEach(function (catitem, catindex) {
|
|
49471
|
+
catitem === null || catitem === void 0 || catitem.parentcolletions.forEach(function (parentcolitem) {
|
|
49472
|
+
var _parentcolitem$collec;
|
|
49473
|
+
parentcolitem.categoryid = catitem.categoryid;
|
|
49474
|
+
parentcolitem === null || parentcolitem === void 0 || (_parentcolitem$collec = parentcolitem.collections) === null || _parentcolitem$collec === void 0 || _parentcolitem$collec.forEach(function (collitem, colindex) {
|
|
49475
|
+
if (collitem.isshowntocustomers == 1) {
|
|
49342
49476
|
collitem.parentcollectionid = parentcolitem.parentcollectionid;
|
|
49343
49477
|
collections.push(collitem);
|
|
49344
|
-
}
|
|
49478
|
+
}
|
|
49345
49479
|
});
|
|
49346
49480
|
});
|
|
49347
|
-
|
|
49348
|
-
|
|
49349
|
-
|
|
49350
|
-
|
|
49351
|
-
|
|
49352
|
-
|
|
49353
|
-
|
|
49354
|
-
|
|
49355
|
-
|
|
49356
|
-
});
|
|
49357
|
-
if (iscollexists == false) {
|
|
49358
|
-
collectionsafterfilter.push(colitem);
|
|
49481
|
+
});
|
|
49482
|
+
if (fetchingtype == 'innerparentcollections') {
|
|
49483
|
+
var collectionsafterfilter = [];
|
|
49484
|
+
collections.forEach(function (colitem, colindex) {
|
|
49485
|
+
if (colitem.parentcollectionid == props.collectionidprops) {
|
|
49486
|
+
var iscollexists = false;
|
|
49487
|
+
collectionsafterfilter.forEach(function (existcolitem) {
|
|
49488
|
+
if (colitem.collectionid == existcolitem.collectionid) {
|
|
49489
|
+
iscollexists = true;
|
|
49359
49490
|
}
|
|
49491
|
+
});
|
|
49492
|
+
if (iscollexists == false) {
|
|
49493
|
+
collectionsafterfilter.push(colitem);
|
|
49360
49494
|
}
|
|
49361
|
-
}
|
|
49362
|
-
|
|
49363
|
-
|
|
49364
|
-
cardobjassigner(collections);
|
|
49495
|
+
}
|
|
49496
|
+
});
|
|
49497
|
+
collections = collectionsafterfilter;
|
|
49365
49498
|
}
|
|
49499
|
+
cardobjassigner(collections);
|
|
49500
|
+
// }
|
|
49366
49501
|
}
|
|
49367
|
-
setFetchQueriesEngineContext(_objectSpread$1n({}, tempFetchQueriesEngineContext));
|
|
49368
49502
|
}
|
|
49369
|
-
}, [fetchingtype, ProductsFetchingTypeSectionObj]);
|
|
49503
|
+
}, [fetchingtype, ProductsFetchingTypeSectionObj, fetchCategoriesQueryContext.isSuccess]);
|
|
49370
49504
|
React.useEffect(function () {
|
|
49371
49505
|
if (fetchingtype == 'products') {
|
|
49372
49506
|
if (fetchProductsQuery.isSuccess && fetchcustomercartQueryContext.isSuccess) {
|
|
49373
|
-
var _fetchProductsQuery$d2;
|
|
49507
|
+
var _fetchProductsQuery$d2, _fetchProductsQuery$d3, _fetchProductsQuery$d4, _fetchProductsQuery$d5;
|
|
49374
49508
|
var allpagesarr = [];
|
|
49375
49509
|
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) {
|
|
49376
49510
|
allpagesarr.push(item);
|
|
49377
49511
|
});
|
|
49512
|
+
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) {
|
|
49513
|
+
var _fetchProductsQuery$d6;
|
|
49514
|
+
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);
|
|
49515
|
+
}
|
|
49378
49516
|
cardobjassigner(allpagesarr);
|
|
49379
49517
|
}
|
|
49380
49518
|
}
|
|
@@ -49385,10 +49523,28 @@ var ModernCardsSection = function ModernCardsSection(props) {
|
|
|
49385
49523
|
cardobjassigner(fetchcollectionsQueryContext.data.data.collections);
|
|
49386
49524
|
}
|
|
49387
49525
|
}
|
|
49388
|
-
}, [fetchcollectionsQueryContext === null || fetchcollectionsQueryContext === void 0 ? void 0 : fetchcollectionsQueryContext.isSuccess]);
|
|
49526
|
+
}, [fetchcollectionsQueryContext === null || fetchcollectionsQueryContext === void 0 ? void 0 : fetchcollectionsQueryContext.isSuccess, fetchcollectionsQueryContext.data]);
|
|
49527
|
+
React.useEffect(function () {
|
|
49528
|
+
if (fetchingtype == 'vendors') {
|
|
49529
|
+
if (FetchVendorsQuery.isSuccess) {
|
|
49530
|
+
if (FetchVendorsQuery.data.data.vendors != undefined && FetchVendorsQuery.data.data.vendors.length != 0) {
|
|
49531
|
+
var _FetchVendorsQuery$da2;
|
|
49532
|
+
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);
|
|
49533
|
+
}
|
|
49534
|
+
}
|
|
49535
|
+
}
|
|
49536
|
+
}, [FetchVendorsQuery.isSuccess]);
|
|
49389
49537
|
React.useEffect(function () {
|
|
49390
49538
|
favassigner();
|
|
49391
49539
|
}, [favoriteprojectscountContext]);
|
|
49540
|
+
React.useEffect(function () {
|
|
49541
|
+
if (sectionproperties.length != 0 && sectionproperties.maincontainerarrayofobjs != undefined) {
|
|
49542
|
+
var maincontainerarrayofobjsparsed = JSON.parse(sectionproperties.maincontainerarrayofobjs);
|
|
49543
|
+
if (Array.isArray(maincontainerarrayofobjsparsed)) {
|
|
49544
|
+
setmaincontainerarrayofobjs(_toConsumableArray__default["default"](maincontainerarrayofobjsparsed));
|
|
49545
|
+
}
|
|
49546
|
+
}
|
|
49547
|
+
}, [sectionproperties]);
|
|
49392
49548
|
var favassigner = function favassigner() {
|
|
49393
49549
|
if (fetchingtype == 'products') {
|
|
49394
49550
|
if (cardsarray.length != 0) {
|
|
@@ -49545,6 +49701,29 @@ var ModernCardsSection = function ModernCardsSection(props) {
|
|
|
49545
49701
|
});
|
|
49546
49702
|
setcardsarray([].concat(temparray));
|
|
49547
49703
|
};
|
|
49704
|
+
var SectionTitle = function SectionTitle() {
|
|
49705
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
49706
|
+
"class": "d-flex align-items-center flex-row",
|
|
49707
|
+
style: {
|
|
49708
|
+
position: 'relative',
|
|
49709
|
+
justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : '',
|
|
49710
|
+
width: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '100%' : ''
|
|
49711
|
+
}
|
|
49712
|
+
}, sectionproperties.sectiontitlestyle == 'Line Before Text' && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
49713
|
+
"class": section_cssstyles.line_left
|
|
49714
|
+
}), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
49715
|
+
"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 ',
|
|
49716
|
+
style: {
|
|
49717
|
+
color: sectionproperties.sectionTitleColor,
|
|
49718
|
+
fontWeight: sectionproperties.sectionTitleFontWeight,
|
|
49719
|
+
paddingLeft: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '12px' : 0,
|
|
49720
|
+
paddingRight: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '12px' : 0,
|
|
49721
|
+
textAlign: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : ''
|
|
49722
|
+
}
|
|
49723
|
+
}, langdetect == 'en' ? sectionproperties.sectionTitleContent : sectionproperties.sectionTitleContent_ar), sectionproperties.sectiontitlestyle == 'Line Before Text' && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
49724
|
+
"class": section_cssstyles.line_right
|
|
49725
|
+
}));
|
|
49726
|
+
};
|
|
49548
49727
|
var section_cssstyles = {
|
|
49549
49728
|
viewmorebtn: glamor.css({
|
|
49550
49729
|
width: sectionproperties.viewmorebtn_Width == 0 ? 'auto' : sectionproperties.viewmorebtn_Width + 'px',
|
|
@@ -49588,29 +49767,12 @@ var ModernCardsSection = function ModernCardsSection(props) {
|
|
|
49588
49767
|
background: sectionproperties.linebgcolor
|
|
49589
49768
|
}),
|
|
49590
49769
|
sectiontitlecont: glamor.css({
|
|
49591
|
-
marginTop: sectionproperties.sectionTitleMarginTop + 'px'
|
|
49592
|
-
|
|
49593
|
-
|
|
49594
|
-
|
|
49595
|
-
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
49596
|
-
"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',
|
|
49597
|
-
style: {
|
|
49598
|
-
paddingLeft: langdetect == 'en' ? sectionproperties.sectionTitleMarginLeft + 'px' : sectionproperties.sectionTitleMarginRight + 'px',
|
|
49599
|
-
paddingRight: langdetect == 'en' ? sectionproperties.sectionTitleMarginRight + 'px' : sectionproperties.sectionTitleMarginLeft + 'px'
|
|
49600
|
-
}
|
|
49601
|
-
}, sectionproperties.sectiontitlestyle == 'Line Before Text' && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
49602
|
-
"class": section_cssstyles.line_left
|
|
49603
|
-
}), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
49604
|
-
"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 ',
|
|
49605
|
-
style: {
|
|
49606
|
-
color: sectionproperties.sectionTitleColor,
|
|
49607
|
-
fontWeight: sectionproperties.sectionTitleFontWeight,
|
|
49608
|
-
paddingLeft: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '12px' : 0,
|
|
49609
|
-
paddingRight: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '12px' : 0
|
|
49770
|
+
marginTop: sectionproperties.sectionTitleMarginTop + 'px',
|
|
49771
|
+
'@media (max-width: 1024px)': {
|
|
49772
|
+
paddingLeft: sectionproperties.sectiontitlepaddinghorizontalresponsive + 'rem',
|
|
49773
|
+
paddingRight: sectionproperties.sectiontitlepaddinghorizontalresponsive + 'rem'
|
|
49610
49774
|
}
|
|
49611
|
-
}
|
|
49612
|
-
"class": section_cssstyles.line_right
|
|
49613
|
-
}));
|
|
49775
|
+
})
|
|
49614
49776
|
};
|
|
49615
49777
|
var cardsrender = function cardsrender() {
|
|
49616
49778
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -49642,12 +49804,12 @@ var ModernCardsSection = function ModernCardsSection(props) {
|
|
|
49642
49804
|
fontSize: sectionproperties.sectionTitleFontSizeresp + 'px'
|
|
49643
49805
|
}
|
|
49644
49806
|
}, SectionTitle()), sectionproperties.prodCatShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
49645
|
-
"class": sectionproperties.sectiontitleposition == 'Centered' ? 'col-lg-12 d-flex align-items-center justify-content-center
|
|
49807
|
+
"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',
|
|
49646
49808
|
style: {
|
|
49647
49809
|
marginBottom: sectionproperties.descriptionMarginBottom + 'px'
|
|
49648
49810
|
}
|
|
49649
49811
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
49650
|
-
"class": sectionproperties.descFontFamily == 'Pacifico' ? ' PacificoFont m-0 p-0 wordbreak
|
|
49812
|
+
"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',
|
|
49651
49813
|
style: {
|
|
49652
49814
|
fontSize: sectionproperties.prodCatFontSize + 'px',
|
|
49653
49815
|
color: sectionproperties.prodCatColor,
|
|
@@ -69198,6 +69360,14 @@ var CategoryCardwithhoveraction = function CategoryCardwithhoveraction(props) {
|
|
|
69198
69360
|
setitem(props.cardinfoitemprops);
|
|
69199
69361
|
}, [props.cardinfoitemprops]);
|
|
69200
69362
|
var card_cssstyles = {
|
|
69363
|
+
productcard: glamor.css({
|
|
69364
|
+
minWidth: props.sectiontypeprops2 == 'vertical' ? '100%' : sectionproperties.width + 'px',
|
|
69365
|
+
maxWidth: props.sectiontypeprops2 == 'vertical' ? '100%' : sectionproperties.width + 'px',
|
|
69366
|
+
'@media (max-width: 800px)': {
|
|
69367
|
+
minWidth: props.sectiontypeprops2 == 'vertical' ? '100%' : sectionproperties.widthresponsive + 'px',
|
|
69368
|
+
maxWidth: props.sectiontypeprops2 == 'vertical' ? '100%' : sectionproperties.widthresponsive + 'px'
|
|
69369
|
+
}
|
|
69370
|
+
}),
|
|
69201
69371
|
cardcontainer: glamor.css({
|
|
69202
69372
|
marginTop: sectionproperties.marginTop + 'px',
|
|
69203
69373
|
marginBottom: sectionproperties.marginBottom + 'px',
|
|
@@ -69276,7 +69446,9 @@ var CategoryCardwithhoveraction = function CategoryCardwithhoveraction(props) {
|
|
|
69276
69446
|
})
|
|
69277
69447
|
};
|
|
69278
69448
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
69279
|
-
"class":
|
|
69449
|
+
"class": props.sectiontypeprops2 == 'vertical' ? "".concat(card_cssstyles.productcard) + ' w-100 ' : "".concat(card_cssstyles.productcard)
|
|
69450
|
+
// class={`${cardstyles.container} ${card_cssstyles.container}` + ' row m-0 w-100 '}
|
|
69451
|
+
,
|
|
69280
69452
|
style: {
|
|
69281
69453
|
paddingLeft: langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px',
|
|
69282
69454
|
paddingRight: langdetect == 'en' ? sectionproperties.card_marginRight + 'px' : sectionproperties.card_marginLeft + 'px'
|
|
@@ -69291,7 +69463,7 @@ var CategoryCardwithhoveraction = function CategoryCardwithhoveraction(props) {
|
|
|
69291
69463
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
69292
69464
|
"class": card_cssstyles.imagecontainer + ' col-lg-12 d-flex d-md-none mb-2 imagecont p-0 ',
|
|
69293
69465
|
style: {
|
|
69294
|
-
height: sectionproperties.
|
|
69466
|
+
height: sectionproperties.image_height + 'px'
|
|
69295
69467
|
}
|
|
69296
69468
|
}, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
|
|
69297
69469
|
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
@@ -74547,6 +74719,12 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
74547
74719
|
var cardonclickfunctionContext = props.actions.cardonclickfunctionContext;
|
|
74548
74720
|
var ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
74549
74721
|
props.actions.NotificationManager;
|
|
74722
|
+
var AddtoCartContext = props.actions.AddtoCartContext;
|
|
74723
|
+
props.AddtoCartMutationContext;
|
|
74724
|
+
var _useState5 = React.useState(''),
|
|
74725
|
+
_useState6 = _slicedToArray__default["default"](_useState5, 2),
|
|
74726
|
+
addtocardpayloadobj = _useState6[0];
|
|
74727
|
+
_useState6[1];
|
|
74550
74728
|
var plainString = function plainString(html) {
|
|
74551
74729
|
var divContainer = document.createElement('div');
|
|
74552
74730
|
divContainer.innerHTML = html;
|
|
@@ -74725,10 +74903,10 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
74725
74903
|
transform: "translateX(0px)"
|
|
74726
74904
|
})
|
|
74727
74905
|
};
|
|
74728
|
-
var
|
|
74729
|
-
|
|
74730
|
-
secondimage =
|
|
74731
|
-
setsecondimage =
|
|
74906
|
+
var _useState7 = React.useState(''),
|
|
74907
|
+
_useState8 = _slicedToArray__default["default"](_useState7, 2),
|
|
74908
|
+
secondimage = _useState8[0],
|
|
74909
|
+
setsecondimage = _useState8[1];
|
|
74732
74910
|
React.useEffect(function () {
|
|
74733
74911
|
var _props$cardinfoitempr;
|
|
74734
74912
|
setitem(props.cardinfoitemprops);
|
|
@@ -74755,6 +74933,14 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
74755
74933
|
}
|
|
74756
74934
|
}
|
|
74757
74935
|
}, [props.cardinfoitemprops]);
|
|
74936
|
+
var addtocartfunc = function addtocartfunc() {
|
|
74937
|
+
var tempaddtocardpayloadobj = _objectSpread$6({}, addtocardpayloadobj);
|
|
74938
|
+
tempaddtocardpayloadobj.productid = item.productid;
|
|
74939
|
+
tempaddtocardpayloadobj.functype = 'add';
|
|
74940
|
+
tempaddtocardpayloadobj.item_type = 'product';
|
|
74941
|
+
tempaddtocardpayloadobj.quantity = 1;
|
|
74942
|
+
AddtoCartContext(tempaddtocardpayloadobj);
|
|
74943
|
+
};
|
|
74758
74944
|
var Image = function Image(type) {
|
|
74759
74945
|
var transition = false;
|
|
74760
74946
|
if (sectionproperties.hideshowcardtransition == 'Show' && type != 'responsive') {
|
|
@@ -74789,10 +74975,10 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
74789
74975
|
}
|
|
74790
74976
|
}));
|
|
74791
74977
|
};
|
|
74792
|
-
var
|
|
74793
|
-
|
|
74794
|
-
clickCount =
|
|
74795
|
-
setClickCount =
|
|
74978
|
+
var _useState9 = React.useState(0),
|
|
74979
|
+
_useState10 = _slicedToArray__default["default"](_useState9, 2),
|
|
74980
|
+
clickCount = _useState10[0],
|
|
74981
|
+
setClickCount = _useState10[1];
|
|
74796
74982
|
var handleClick = function handleClick() {
|
|
74797
74983
|
// Increase the click count by 1
|
|
74798
74984
|
setClickCount(function (prevCount) {
|
|
@@ -74848,7 +75034,7 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
74848
75034
|
}, langdetect == 'en' ? 'Save' : 'وفر', " ", langdetect == 'en' ? item.currencyname : '', ' ', parseFloat(Math.round(parseInt(item.defaultprice) - parseInt(item.defaultsaleprice))).toFixed(0), " ", langdetect == 'en' ? '' : item.currencyname));
|
|
74849
75035
|
};
|
|
74850
75036
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
74851
|
-
"class": props.sectiontypeprops2 == 'vertical' ? "".concat(card_cssstyles.productcard) + ' w-100 px-md-1 ' : " ".concat(card_cssstyles.productcard),
|
|
75037
|
+
"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),
|
|
74852
75038
|
style: {
|
|
74853
75039
|
paddingLeft: langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px',
|
|
74854
75040
|
paddingRight: langdetect == 'en' ? sectionproperties.card_marginRight + 'px' : sectionproperties.card_marginLeft + 'px'
|
|
@@ -74938,7 +75124,7 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
74938
75124
|
}), sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React__default["default"].createElement(FaRegHeart.FaRegHeart, {
|
|
74939
75125
|
size: sectionproperties.favBtnIconfontsize
|
|
74940
75126
|
}))), (item === null || item === void 0 ? void 0 : item.hassale) == 1 && sectionproperties.showbadge == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
74941
|
-
"class": "allcentered
|
|
75127
|
+
"class": "allcentered",
|
|
74942
75128
|
style: {
|
|
74943
75129
|
zIndex: 2,
|
|
74944
75130
|
position: 'absolute',
|
|
@@ -75029,8 +75215,8 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
75029
75215
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
75030
75216
|
"class": "text-capitalize mx-2",
|
|
75031
75217
|
style: {
|
|
75032
|
-
color: sectionproperties.
|
|
75033
|
-
fontSize:
|
|
75218
|
+
color: sectionproperties.featurecolor,
|
|
75219
|
+
fontSize: sectionproperties.featurefontsize + 'px'
|
|
75034
75220
|
}
|
|
75035
75221
|
}, (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", {
|
|
75036
75222
|
"class": "".concat(card_cssstyles.productDescStyles) + ' col-lg-12 wordbreak wordbreak1 p-0 mb-2 ',
|
|
@@ -75040,9 +75226,13 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
75040
75226
|
color: sectionproperties.measurementunitcolor
|
|
75041
75227
|
}
|
|
75042
75228
|
}, item.measurmentunit), sectionproperties.prodNameShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
75043
|
-
"class": "col-lg-12
|
|
75229
|
+
"class": "col-lg-12 pl-0 pr-0",
|
|
75044
75230
|
style: {
|
|
75045
|
-
minHeight: sectionproperties.wordbreak == '1' ? 'auto' : '6vh'
|
|
75231
|
+
minHeight: sectionproperties.wordbreak == '1' ? 'auto' : '6vh',
|
|
75232
|
+
background: sectionproperties.prodNameBackgroundColor,
|
|
75233
|
+
borderRadius: '15px',
|
|
75234
|
+
paddingTop: sectionproperties.productnamepaddingvertical + 'px',
|
|
75235
|
+
paddingBottom: sectionproperties.productnamepaddingvertical + 'px'
|
|
75046
75236
|
}
|
|
75047
75237
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
75048
75238
|
onClick: function onClick() {
|
|
@@ -75059,7 +75249,7 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
75059
75249
|
textAlign: sectionproperties.productnamecentered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right'
|
|
75060
75250
|
}
|
|
75061
75251
|
}, item.name)), sectionproperties.prodCatShow == 'Show' && sectionproperties.descriptionoverwritestyles == 'No' && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
75062
|
-
"class": "".concat(card_cssstyles.productDescStyles) + ' col-lg-12 p-0 wordbreak wordbreak4 mt-1 ',
|
|
75252
|
+
"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 ',
|
|
75063
75253
|
style: {
|
|
75064
75254
|
textAlign: sectionproperties.productnamecentered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right'
|
|
75065
75255
|
},
|
|
@@ -75067,7 +75257,7 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
75067
75257
|
__html: item.shortdescription
|
|
75068
75258
|
}
|
|
75069
75259
|
}), sectionproperties.prodCatShow == 'Show' && sectionproperties.descriptionoverwritestyles == 'Yes' && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
75070
|
-
"class": "".concat(card_cssstyles.productDescStyles) + ' col-lg-12 wordbreak
|
|
75260
|
+
"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 ',
|
|
75071
75261
|
style: {
|
|
75072
75262
|
textAlign: sectionproperties.productnamecentered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right'
|
|
75073
75263
|
}
|
|
@@ -75128,18 +75318,23 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
75128
75318
|
justifyContent: sectionproperties.productnamecentered == 'Centered' ? 'center' : 'start'
|
|
75129
75319
|
}
|
|
75130
75320
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
75131
|
-
"class": "".concat(card_cssstyles.cart_btn) + ' m-0 p-0 d-flex align-items-center justify-content-center mt-1 '
|
|
75321
|
+
"class": "".concat(card_cssstyles.cart_btn) + ' m-0 p-0 d-flex align-items-center justify-content-center mt-1 '
|
|
75322
|
+
// onClick={() => {
|
|
75323
|
+
// var productidtobesend = null;
|
|
75324
|
+
// if (sectionproperties.urlwithproductname == 'Yes') {
|
|
75325
|
+
// productidtobesend = item.productendpointurl;
|
|
75326
|
+
// } else {
|
|
75327
|
+
// productidtobesend = item.productid;
|
|
75328
|
+
// }
|
|
75329
|
+
// cardonclickfunctionContext(sectionproperties?.onClickRoute, productidtobesend, props.fetchingtypeprops, item.collectionid);
|
|
75330
|
+
// // setShowProductInfoModalContext(true);
|
|
75331
|
+
// // setProductIdProdutInfoModalContext(item.productid);
|
|
75332
|
+
// }}
|
|
75333
|
+
,
|
|
75132
75334
|
onClick: function onClick() {
|
|
75133
|
-
|
|
75134
|
-
if (sectionproperties.urlwithproductname == 'Yes') {
|
|
75135
|
-
productidtobesend = item.productendpointurl;
|
|
75136
|
-
} else {
|
|
75137
|
-
productidtobesend = item.productid;
|
|
75138
|
-
}
|
|
75139
|
-
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, productidtobesend, props.fetchingtypeprops, item.collectionid);
|
|
75140
|
-
// setShowProductInfoModalContext(true);
|
|
75141
|
-
// setProductIdProdutInfoModalContext(item.productid);
|
|
75335
|
+
addtocartfunc();
|
|
75142
75336
|
}
|
|
75337
|
+
// disabled={AddtoCartMutationContext.isLoading == true ? true : false}
|
|
75143
75338
|
}, sectionproperties.cartBtn_iconFontSize != 0 && /*#__PURE__*/React__default["default"].createElement("i", {
|
|
75144
75339
|
"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'
|
|
75145
75340
|
}, sectionproperties.carticonstyle == 'Shopping bag 1' && /*#__PURE__*/React__default["default"].createElement(FiShoppingBag.FiShoppingBag, {
|