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.esm.js CHANGED
@@ -3594,6 +3594,10 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
3594
3594
  item_type: 'service'
3595
3595
  }));
3596
3596
  }, [tabsarray]);
3597
+ var today = new Date();
3598
+ today.getFullYear();
3599
+ (today.getMonth() + 1).toString().padStart(2, '0'); // Adding leading zero if necessary
3600
+ today.getDate().toString().padStart(2, '0'); // Adding leading zero if necessary
3597
3601
  useEffect(function () {
3598
3602
  var date1 = new Date(addtocardpayloadobj.from);
3599
3603
  var date2 = new Date(addtocardpayloadobj.to);
@@ -4365,7 +4369,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
4365
4369
  };
4366
4370
 
4367
4371
  var Service_itemtype = function Service_itemtype(props) {
4368
- var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8;
4372
+ 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;
4369
4373
  var lang = props.actions.lang;
4370
4374
  var langdetect = props.actions.langdetect;
4371
4375
  var srcfromprops = props.actions.srcfromprops;
@@ -4617,12 +4621,23 @@ var Service_itemtype = function Service_itemtype(props) {
4617
4621
  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"
4618
4622
  }, /*#__PURE__*/React.createElement("div", {
4619
4623
  "class": "row m-0 w-100"
4620
- }, /*#__PURE__*/React.createElement("div", {
4624
+ }, (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.createElement("div", {
4625
+ "class": "col-lg-12 p-0 d-flex justify-content-start mb-2"
4626
+ }, /*#__PURE__*/React.createElement("p", {
4627
+ "class": "m-0 p-0",
4628
+ style: {
4629
+ color: '#000'
4630
+ }
4631
+ }, langdetect == 'en' ? sectionproperties.vendortitleen : sectionproperties.vendortitlear, ":", ' ', /*#__PURE__*/React.createElement("span", {
4632
+ style: {
4633
+ fontWeight: 600
4634
+ }
4635
+ }, 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.createElement("div", {
4621
4636
  "class": "col-lg-12 p-0 d-flex justify-content-start"
4622
4637
  }, /*#__PURE__*/React.createElement("div", {
4623
4638
  "class": "row m-0 w-100"
4624
4639
  }, /*#__PURE__*/React.createElement("div", {
4625
- className: (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.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'
4640
+ 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'
4626
4641
  }, ProductName()), /*#__PURE__*/React.createElement("div", {
4627
4642
  className: "col-lg-4 col-md-4 col-sm-4 p-0 mb-1 d-flex justify-content-end align-items-center"
4628
4643
  }, sectionproperties.btnposition == 'Top' && sectionproperties.favBtnShow == 'Show' && /*#__PURE__*/React.createElement("div", {
@@ -4653,11 +4668,11 @@ var Service_itemtype = function Service_itemtype(props) {
4653
4668
  size: sectionproperties.favBtnIconfontsize
4654
4669
  }), sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React.createElement(FaRegHeart, {
4655
4670
  size: sectionproperties.favBtnIconfontsize
4656
- }))))))), (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 ? void 0 : _fetchProductInfoQuer7.productcanrate) == 1 && sectionproperties.showrating == 'Show' && /*#__PURE__*/React.createElement("div", {
4671
+ }))))))), (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.createElement("div", {
4657
4672
  "class": "col-lg-12 p-0 d-flex justify-content-start"
4658
4673
  }, /*#__PURE__*/React.createElement(ReactStars, {
4659
4674
  count: 5,
4660
- value: 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.productoverallrate,
4675
+ 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,
4661
4676
  edit: false,
4662
4677
  size: 18,
4663
4678
  emptyIcon: /*#__PURE__*/React.createElement("i", {
@@ -4677,7 +4692,7 @@ var Service_itemtype = function Service_itemtype(props) {
4677
4692
  }),
4678
4693
  activeColor: "#ffd700"
4679
4694
  })))), sectionproperties.showSKU == 'Show' && sectionproperties.productInformationType == 'Product/Service Information' && /*#__PURE__*/React.createElement("div", {
4680
- "class": sectionproperties.deliverytimeshow == 'Show' && (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.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'
4695
+ "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'
4681
4696
  }, /*#__PURE__*/React.createElement("p", {
4682
4697
  "class": "m-0 p-0 d-flex justify-content-start"
4683
4698
  }, /*#__PURE__*/React.createElement("span", {
@@ -4697,7 +4712,26 @@ var Service_itemtype = function Service_itemtype(props) {
4697
4712
  }
4698
4713
  }, fetchProductInfoQueryContext.data.data.productinfo.sku))), /*#__PURE__*/React.createElement(ProductHeaderPricing, {
4699
4714
  actions: props.actions
4700
- }), sectionproperties.deliverytimeshow == 'Show' && (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.deliverydatetext) != null && /*#__PURE__*/React.createElement("div", {
4715
+ }), sectionproperties.descriptionstyle == 'Style 1' && sectionproperties.descriptionposition == 'Top' && /*#__PURE__*/React.createElement("div", {
4716
+ "class": "col-lg-12 col-md-12 p-md-0 mt-3"
4717
+ }, /*#__PURE__*/React.createElement("div", {
4718
+ "class": "row m-0 w-100"
4719
+ }, /*#__PURE__*/React.createElement("div", {
4720
+ className: "col-lg-10 col-md-10 col-sm-10 p-0 d-flex align-items-center justify-content-start"
4721
+ }, /*#__PURE__*/React.createElement("p", {
4722
+ "class": "m-0 p-0",
4723
+ style: {
4724
+ textAlign: langdetect == 'en' ? 'left' : 'right',
4725
+ fontWeight: sectionproperties.prodCatFontWeight,
4726
+ color: sectionproperties.prodCatColor,
4727
+ fontSize: sectionproperties.prodCatFontSize + 'px'
4728
+ }
4729
+ }, langdetect == 'en' ? sectionproperties.descriptionContentEn : sectionproperties.descriptionContentAr))), /*#__PURE__*/React.createElement("div", {
4730
+ "class": "col-lg-12 p-0 mt-3"
4731
+ }, /*#__PURE__*/React.createElement(DescriptionContent, {
4732
+ actions: props.actions,
4733
+ srcfromprops: 'collap'
4734
+ }))), 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.createElement("div", {
4701
4735
  "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',
4702
4736
  style: {
4703
4737
  width: '100%',
@@ -4723,11 +4757,11 @@ var Service_itemtype = function Service_itemtype(props) {
4723
4757
  // textAlign: langdetect == 'en' ? 'left' : 'right',
4724
4758
  color: sectionproperties.deliverytimecontainercolor
4725
4759
  }
4726
- }, 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)), sectionproperties.showfeatures == 'Show' && /*#__PURE__*/React.createElement("div", {
4760
+ }, 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.createElement("div", {
4727
4761
  "class": "col-lg-12 text-start p-md-0"
4728
4762
  }, /*#__PURE__*/React.createElement("div", {
4729
4763
  className: "row m-0 w-100"
4730
- }, 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 || (_fetchProductInfoQuer12 = _fetchProductInfoQuer12.productfeatures) === null || _fetchProductInfoQuer12 === void 0 ? void 0 : _fetchProductInfoQuer12.map(function (fitem, findex) {
4764
+ }, 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) {
4731
4765
  return /*#__PURE__*/React.createElement("div", {
4732
4766
  "class": "col-lg-4 col-md-12 p-0 mb-3 mt-2"
4733
4767
  }, /*#__PURE__*/React.createElement("div", {
@@ -4853,7 +4887,7 @@ var Service_itemtype = function Service_itemtype(props) {
4853
4887
  color: sectionproperties.prodCatColor
4854
4888
  },
4855
4889
  dangerouslySetInnerHTML: {
4856
- __html: langdetect == 'en' ? 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.short_description_en : 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 ? void 0 : _fetchProductInfoQuer14.short_description_ar
4890
+ __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
4857
4891
  }
4858
4892
  })))))), sectionproperties.descriptionstyle == 'Style 2' && sectionproperties.showshortdescription == 'Show' && /*#__PURE__*/React.createElement("div", {
4859
4893
  "class": "col-lg-12 col-md-12 my-3 p-md-0"
@@ -4978,7 +5012,7 @@ var Service_itemtype = function Service_itemtype(props) {
4978
5012
  onClick: function onClick() {
4979
5013
  routingcountext(StaticPagesLinksContext.RefundPolicy);
4980
5014
  }
4981
- }, "SEE MORE")))))), sectionproperties.descriptionstyle == 'Style 2' && sectionproperties.showfirstpolicy == 'Show' && sectionproperties.showsecondpolicy == 'Show' && /*#__PURE__*/React.createElement("div", {
5015
+ }, langdetect == 'en' ? 'SEE MORE' : 'عرض المزيد')))))), sectionproperties.descriptionstyle == 'Style 2' && sectionproperties.showfirstpolicy == 'Show' && sectionproperties.showsecondpolicy == 'Show' && /*#__PURE__*/React.createElement("div", {
4982
5016
  "class": "col-lg-12 col-md-12 my-3 p-md-0"
4983
5017
  }, /*#__PURE__*/React.createElement("hr", {
4984
5018
  "class": "m-0"
@@ -17634,9 +17668,11 @@ var CardsSection = function CardsSection(props) {
17634
17668
  }
17635
17669
  var section_cssstyles = {
17636
17670
  sectioncontainerr: css({
17671
+ width: sectionproperties.width + 'vw',
17637
17672
  marginTop: sectionproperties.marginTop + 'px',
17638
17673
  '@media (max-width: 800px)': {
17639
- marginTop: sectionproperties.marginTopResp != undefined && sectionproperties.marginTopResp != undefined ? sectionproperties.marginTopResp + 'px' : sectionproperties.marginTop + 'px'
17674
+ marginTop: sectionproperties.marginTopResp != undefined && sectionproperties.marginTopResp != undefined ? sectionproperties.marginTopResp + 'px' : sectionproperties.marginTop + 'px',
17675
+ width: sectionproperties.widthresponsive + 'vw'
17640
17676
  }
17641
17677
  }),
17642
17678
  innercardssection: css({
@@ -17981,7 +18017,7 @@ var CardsSection = function CardsSection(props) {
17981
18017
  }
17982
18018
  }, SectionTitle()), sectionproperties.sectiontitledirection == 'Vertical' && /*#__PURE__*/React.createElement("div", {
17983
18019
  "class": "col-lg-12 p-0"
17984
- }, sectionproperties.viewmorebtnshow == 'Show' && /*#__PURE__*/React.createElement("button", {
18020
+ }, sectionproperties.viewmorebtnshow == 'Show' && sectionproperties.viewmorebtnposition != 'Under Section' && /*#__PURE__*/React.createElement("button", {
17985
18021
  "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 ',
17986
18022
  onClick: function onClick() {
17987
18023
  if (fetchingtype == 'products') {
@@ -18050,7 +18086,7 @@ var CardsSection = function CardsSection(props) {
18050
18086
  }
18051
18087
  }, /*#__PURE__*/React.createElement("div", {
18052
18088
  "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 '
18053
- }, sectionproperties.viewmorebtnshow == 'Show' && sectionproperties.sectiontitledirection == 'Horizontal' && /*#__PURE__*/React.createElement("button", {
18089
+ }, sectionproperties.viewmorebtnshow == 'Show' && sectionproperties.sectiontitledirection == 'Horizontal' && sectionproperties.viewmorebtnposition != 'Under Section' && /*#__PURE__*/React.createElement("button", {
18054
18090
  "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 ',
18055
18091
  onClick: function onClick() {
18056
18092
  if (fetchingtype == 'products') {
@@ -18205,7 +18241,10 @@ var CardsSection = function CardsSection(props) {
18205
18241
  item.tabexsectioninfo.sectioncompname == 'Productcard7' ? 'scrollmenuclassnameitemProductcard7' : item.tabexsectioninfo.sectioncompname == 'MenuCard' ? 'scrollmenuclassnameitemMenuCard' : item.tabexsectioninfo.sectioncompname == 'StylishProductCard' ? 'scrollmenuclassnameitemStylishProductCard' : item.tabexsectioninfo.sectioncompname == 'ProductCardWithTextOnImage' ? 'scrollmenuclassnameitemProductCardWithTextOnImage' :
18206
18242
  // : item.tabexsectioninfo.sectioncompname == 'Card23'
18207
18243
  // ? 'scrollmenuclassnameitemCard23'
18208
- item.tabexsectioninfo.sectioncompname == 'Card20' ? 'scrollmenuclassnameitemCard20' : item.tabexsectioninfo.sectioncompname == 'ModernCardWithQuantityButton' ? 'scrollmenuclassnameitemModernCardWithQuantityButton' : item.tabexsectioninfo.sectioncompname == 'CategoryCardwithhoveraction' ? 'scrollmenuclassnameitemCategoryCardwithhoveraction' : item.tabexsectioninfo.sectioncompname == 'CircleCardWithVariants' ? 'scrollmenuclassnameitemCircleCardWithVariants' :
18244
+ item.tabexsectioninfo.sectioncompname == 'Card20' ? 'scrollmenuclassnameitemCard20' : item.tabexsectioninfo.sectioncompname == 'ModernCardWithQuantityButton' ? 'scrollmenuclassnameitemModernCardWithQuantityButton' :
18245
+ // : item.tabexsectioninfo.sectioncompname == 'CategoryCardwithhoveraction'
18246
+ // ? 'scrollmenuclassnameitemCategoryCardwithhoveraction'
18247
+ item.tabexsectioninfo.sectioncompname == 'CircleCardWithVariants' ? 'scrollmenuclassnameitemCircleCardWithVariants' :
18209
18248
  // : item.tabexsectioninfo.sectioncompname == 'UpSlideEffectCard'
18210
18249
  // ? 'scrollmenuclassnameitemUpSlideEffectCard'
18211
18250
  item.tabexsectioninfo.sectioncompname == 'CategoryCardTextOnImage' ? 'scrollmenuclassnameitemCategoryCardTextOnImage' : '',
@@ -18467,24 +18506,55 @@ var CardsSection = function CardsSection(props) {
18467
18506
  }))));
18468
18507
  }
18469
18508
  }
18470
- }))));
18509
+ })), sectionproperties.viewmorebtnposition == 'Under Section' && sectionproperties.viewmorebtnshow == 'Show' && /*#__PURE__*/React.createElement("div", {
18510
+ "class": "col-lg-12 p-0 allcentered"
18511
+ }, /*#__PURE__*/React.createElement("button", {
18512
+ "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 ',
18513
+ onClick: function onClick() {
18514
+ if (fetchingtype == 'products') {
18515
+ if (ProductsFetchingTypeSectionObj.productfetchingtype == 'Collection') {
18516
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + ProductsFetchingTypeSectionObj.collectionid);
18517
+ } else {
18518
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(ProductFilterObjContext)));
18519
+ }
18520
+ } else {
18521
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
18522
+ }
18523
+ },
18524
+ style: {
18525
+ flexDirection: 'row'
18526
+ }
18527
+ }, /*#__PURE__*/React.createElement("span", {
18528
+ "class": 'd-flex justify-content-center align-items-center'
18529
+ }, /*#__PURE__*/React.createElement("span", {
18530
+ "class": sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : 'Poppins'
18531
+ }, langdetect == 'en' ? sectionproperties.viewmorebtn_text : sectionproperties.viewmorebtn_text_ar), sectionproperties.showIcon == 'Show' && /*#__PURE__*/React.createElement("i", {
18532
+ "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',
18533
+ style: {
18534
+ marginLeft: 5,
18535
+ marginRight: 5
18536
+ }
18537
+ }, langdetect == 'en' ? /*#__PURE__*/React.createElement(HiOutlineArrowRight, {
18538
+ size: sectionproperties.viewmoreiconfontsize
18539
+ }) : /*#__PURE__*/React.createElement(HiOutlineArrowLeft, {
18540
+ size: sectionproperties.viewmoreiconfontsize
18541
+ })))))));
18471
18542
  };
18472
18543
  return /*#__PURE__*/React.createElement("div", {
18473
18544
  ref: refscr,
18474
- "class": section_cssstyles.sectioncontainerr + ' row ml-0 mr-0 d-flex justify-content-center ml-auto mr-auto w-md-100 w-sm-100 ',
18545
+ "class": section_cssstyles.sectioncontainerr + ' row ml-0 mr-0 d-flex justify-content-center ml-auto mr-auto ',
18475
18546
  style: {
18476
18547
  zIndex: 2,
18477
18548
  background: sectionproperties.backgroundColortransparent == 'Transparent' ? 'transparent' : sectionproperties.backgroundColor,
18478
18549
  backgroundImage: maincontainerarrayofobjs.length != 0 ? 'url(' + image_serverbaselink + maincontainerarrayofobjs[0].back_bgimage + ')' : '',
18479
18550
  backgroundSize: 'cover',
18480
- width: sectionproperties.width + 'vw',
18481
18551
  boxShadow: sectionproperties.sectioncardshadow == 'Show' ? '0 0 10px ' + sectionproperties.sectioncardshadowcolor : 'none',
18482
18552
  borderBottomLeftRadius: langdetect == 'en' ? sectionproperties.borderBottomLeftRadius + 'px' : sectionproperties.borderBottomRightRadius + 'px',
18483
18553
  borderBottomRightRadius: langdetect == 'en' ? sectionproperties.borderBottomRightRadius + 'px' : sectionproperties.borderBottomLeftRadius + 'px',
18484
18554
  borderTopLeftRadius: langdetect == 'en' ? sectionproperties.borderTopLeftRadius + 'px' : sectionproperties.borderTopRightRadius + 'px',
18485
18555
  borderTopRightRadius: langdetect == 'en' ? sectionproperties.borderTopRightRadius + 'px' : sectionproperties.borderTopLeftRadius + 'px',
18486
- marginBottom: sectionproperties.marginBottom + 'px',
18487
- minHeight: sectionproperties.height == null || sectionproperties.height == 0 ? 'auto' : sectionproperties.height + 'vh'
18556
+ marginBottom: sectionproperties.marginBottom + 'px'
18557
+ // minHeight: sectionproperties.height == null || sectionproperties.height == 0 ? 'auto' : sectionproperties.height + 'vh',
18488
18558
  }
18489
18559
  }, sectionproperties.length != 0 && /*#__PURE__*/React.createElement("div", {
18490
18560
  "class": section_cssstyles.innercardssection + ' row ml-0 mr-0 d-flex justify-content-center w-md-100 h-md-100 w-100 '
@@ -24424,7 +24494,7 @@ var Gotoheader = function Gotoheader(props) {
24424
24494
  sectionpropertiesprops: sectionproperties,
24425
24495
  srcfromprops: 'header-400',
24426
24496
  actions: actions
24427
- })))), /*#__PURE__*/React.createElement(Dropdown, {
24497
+ })))), sectionproperties.ShowUserBtn == 'Show' && /*#__PURE__*/React.createElement(Dropdown, {
24428
24498
  style: {
24429
24499
  marginLeft: langdetect == 'en' ? '1rem' : '',
24430
24500
  marginRight: langdetect == 'ar' ? '1rem' : ''
@@ -24734,8 +24804,8 @@ var Gotoheader = function Gotoheader(props) {
24734
24804
  return /*#__PURE__*/React.createElement("div", {
24735
24805
  "class": "".concat(headerstyles$e.topbar_item_container),
24736
24806
  style: {
24737
- marginRight: langdetect == 'en' ? '45px' : 0,
24738
- marginLeft: langdetect == 'en' ? 0 : '45px'
24807
+ marginRight: langdetect == 'en' ? '30px' : 0,
24808
+ marginLeft: langdetect == 'en' ? 0 : '30px'
24739
24809
  },
24740
24810
  onClick: function onClick() {
24741
24811
  // history.push(item.navigationroute);
@@ -24756,8 +24826,8 @@ var Gotoheader = function Gotoheader(props) {
24756
24826
  actions: actions,
24757
24827
  subheaderpropertiesprops: {
24758
24828
  subheaderpositionprops: 'in nav',
24759
- paddingLeftprops: '45px',
24760
- paddingRightprops: '45px',
24829
+ paddingLeftprops: '30px',
24830
+ paddingRightprops: '30px',
24761
24831
  subheadercontentpositionprops: sectionproperties.header_centered == 'Centered' ? 'center' : 'start'
24762
24832
  }
24763
24833
  })))), /*#__PURE__*/React.createElement("div", {
@@ -24767,8 +24837,8 @@ var Gotoheader = function Gotoheader(props) {
24767
24837
  actions: actions,
24768
24838
  subheaderpropertiesprops: {
24769
24839
  subheaderpositionprops: 'Full Width',
24770
- paddingLeftprops: '45px',
24771
- paddingRightprops: '45px',
24840
+ paddingLeftprops: '30px',
24841
+ paddingRightprops: '30px',
24772
24842
  subheadercontentpositionprops: 'start'
24773
24843
  }
24774
24844
  }))), !authdetailsContext.loggedin && sectionproperties.hideheaderwhenloggedin == 'Hide' && /*#__PURE__*/React.createElement("div", {
@@ -28585,8 +28655,8 @@ var Header_threesectionslogocentered = function Header_threesectionslogocentered
28585
28655
  headernameprops: 'Header_threesectionslogocentered'
28586
28656
  })))), sectionproperties.ShowUserBtn == 'Show' && /*#__PURE__*/React.createElement("div", {
28587
28657
  style: {
28588
- marginRight: langdetect == 'en' ? '1.5rem' : '1.2rem',
28589
- marginLeft: langdetect == 'en' ? '1.2rem' : '1.5rem'
28658
+ marginRight: sectionproperties.favBtnShow == 'Show' ? langdetect == 'en' ? '1.5rem' : '1.2rem' : 0,
28659
+ marginLeft: sectionproperties.favBtnShow == 'Show' ? langdetect == 'en' ? '1.2rem' : '1.5rem' : 0
28590
28660
  }
28591
28661
  }, /*#__PURE__*/React.createElement(Dropdown, null, /*#__PURE__*/React.createElement(Dropdown.Toggle, null, !authdetailsContext.loggedin && /*#__PURE__*/React.createElement("div", {
28592
28662
  "class": ' d-flex justify-content-center align-items-center '
@@ -28698,7 +28768,7 @@ var Header_threesectionslogocentered = function Header_threesectionslogocentered
28698
28768
  "class": "".concat(header_cssstyles.dropdownitem) + ' dropdownitem d-flex align-items-center m-0 p-0 '
28699
28769
  }, /*#__PURE__*/React.createElement(BiLogOutCircle, null), /*#__PURE__*/React.createElement("span", {
28700
28770
  "class": "ml-2 mr-2"
28701
- }, lang.logout))))))), /*#__PURE__*/React.createElement("div", {
28771
+ }, lang.logout))))))), sectionproperties.favBtnShow == 'Show' && /*#__PURE__*/React.createElement("div", {
28702
28772
  "class": "".concat(header_cssstyles.wishlist_btn) + ' d-flex justify-content-center align-items-center cursor-pointer ',
28703
28773
  onClick: function onClick() {
28704
28774
  routingcountext(StaticPagesLinksContext.Wishlist);
@@ -28771,7 +28841,7 @@ var Header_threesectionslogocentered = function Header_threesectionslogocentered
28771
28841
  }
28772
28842
  }), /*#__PURE__*/React.createElement("span", {
28773
28843
  "class": 'ml-2 mr-2'
28774
- }, lang.arabic)))), /*#__PURE__*/React.createElement(Dropdown.Divider, null), /*#__PURE__*/React.createElement(Dropdown.Item, {
28844
+ }, "\u0639\u0631\u0628\u064A")))), /*#__PURE__*/React.createElement(Dropdown.Divider, null), /*#__PURE__*/React.createElement(Dropdown.Item, {
28775
28845
  onClick: function onClick() {
28776
28846
  setlang('en');
28777
28847
  }
@@ -28792,7 +28862,7 @@ var Header_threesectionslogocentered = function Header_threesectionslogocentered
28792
28862
  }
28793
28863
  }), /*#__PURE__*/React.createElement("span", {
28794
28864
  "class": 'ml-2 mr-2'
28795
- }, lang.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.createElement(Dropdown, null, /*#__PURE__*/React.createElement(Dropdown.Toggle, null, /*#__PURE__*/React.createElement("li", {
28865
+ }, "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.createElement(Dropdown, null, /*#__PURE__*/React.createElement(Dropdown.Toggle, null, /*#__PURE__*/React.createElement("li", {
28796
28866
  "class": ' d-flex align-items-center justify-content-center '
28797
28867
  }, langdetect == 'en' && /*#__PURE__*/React.createElement("div", {
28798
28868
  "class": "".concat(header_cssstyles.languagecontainer) + ' row m-0 w-100 d-flex align-items-center '
@@ -49121,8 +49191,8 @@ function ownKeys$1n(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySym
49121
49191
  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(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; }
49122
49192
  var ModernCardsSection = function ModernCardsSection(props) {
49123
49193
  var _useInView = useInView(),
49124
- ref = _useInView.ref,
49125
- inView = _useInView.inView;
49194
+ ref = _useInView.ref;
49195
+ _useInView.inView;
49126
49196
  var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
49127
49197
  props.actions.lang;
49128
49198
  var langdetect = props.actions.langdetect;
@@ -49143,33 +49213,55 @@ var ModernCardsSection = function ModernCardsSection(props) {
49143
49213
  var fetchingtype = props.actions.fetchingtype;
49144
49214
  props.actions.addtofavoritescontext;
49145
49215
  var fetchAuthorizationQueryContext = props.actions.fetchAuthorizationQueryContext;
49216
+ var fetchCategoriesQueryContext = props.actions.fetchCategoriesQueryContext;
49217
+ var FetchVendorsQuery = props.actions.FetchVendorsQuery;
49218
+ props.actions.ikimagecredcontext;
49219
+ props.actions.sortbycontext;
49220
+ props.actions.setsortbycontext;
49221
+ var _useState = useState(false),
49222
+ _useState2 = _slicedToArray(_useState, 2);
49223
+ _useState2[0];
49224
+ _useState2[1];
49146
49225
  var actions = props.actions;
49147
- var _useState = useState(''),
49148
- _useState2 = _slicedToArray(_useState, 2),
49149
- sectionproperties = _useState2[0],
49150
- setsectionproperties = _useState2[1];
49151
- var _useState3 = useState([]),
49226
+ var _useState3 = useState(''),
49152
49227
  _useState4 = _slicedToArray(_useState3, 2),
49153
- cardsarray = _useState4[0],
49154
- setcardsarray = _useState4[1];
49155
- var _useState5 = useState(''),
49228
+ sectionproperties = _useState4[0],
49229
+ setsectionproperties = _useState4[1];
49230
+ var _useState5 = useState([]),
49156
49231
  _useState6 = _slicedToArray(_useState5, 2),
49157
- sectionitem = _useState6[0],
49158
- setsectionitem = _useState6[1];
49159
- React.useEffect(function () {
49160
- if (inView) {
49161
- fetchProductsQuery.fetchNextPage();
49162
- }
49163
- }, [inView]);
49164
- var _useState7 = useState({
49232
+ cardsarray = _useState6[0],
49233
+ setcardsarray = _useState6[1];
49234
+ var _useState7 = useState(''),
49235
+ _useState8 = _slicedToArray(_useState7, 2),
49236
+ sectionitem = _useState8[0],
49237
+ setsectionitem = _useState8[1];
49238
+ var _useState9 = useState({
49165
49239
  productfetchingtype: 'Random',
49166
49240
  collectionid: '',
49167
49241
  grouptype: ''
49168
49242
  }),
49169
- _useState8 = _slicedToArray(_useState7, 2),
49170
- ProductsFetchingTypeSectionObj = _useState8[0],
49171
- setProductsFetchingTypeSectionObj = _useState8[1];
49243
+ _useState10 = _slicedToArray(_useState9, 2),
49244
+ ProductsFetchingTypeSectionObj = _useState10[0],
49245
+ setProductsFetchingTypeSectionObj = _useState10[1];
49246
+ var _useState11 = useState([]),
49247
+ _useState12 = _slicedToArray(_useState11, 2);
49248
+ _useState12[0];
49249
+ var setmaincontainerarrayofobjs = _useState12[1];
49250
+ var _useState13 = useState(12),
49251
+ _useState14 = _slicedToArray(_useState13, 2);
49252
+ _useState14[0];
49253
+ var setperpageItems = _useState14[1];
49254
+ props.actions.AddtoCartMutationContext;
49172
49255
  useEffect(function () {
49256
+ var productfilerobjtemp = ProductFilterObjContext;
49257
+ if (props.filterparamsprops != undefined) {
49258
+ var filterpar = decodeURIComponent(props.filterparamsprops);
49259
+ var filterparsed = JSON.parse(filterpar);
49260
+ if (filterparsed != undefined) {
49261
+ productfilerobjtemp = filterparsed;
49262
+ setProductFilterObjContext(filterparsed);
49263
+ }
49264
+ }
49173
49265
  StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
49174
49266
  if (sectionitem.sectionid == props.sectionidprops) {
49175
49267
  var secpropobj = {};
@@ -49180,14 +49272,20 @@ var ModernCardsSection = function ModernCardsSection(props) {
49180
49272
  setsectionproperties(_objectSpread$1n({}, secpropobj));
49181
49273
  if (props.srcfromprops == 'GeneralProductsComponent') {
49182
49274
  setfetchingtype('products');
49275
+ var lcproductfetchingtype = 'Random';
49276
+ if (productfilerobjtemp.ProductFetchingType != undefined && productfilerobjtemp.ProductFetchingType != null && productfilerobjtemp.ProductFetchingType.length != 0) {
49277
+ lcproductfetchingtype = productfilerobjtemp.ProductFetchingType;
49278
+ }
49183
49279
  setProductsFetchingTypeSectionObj({
49184
- productfetchingtype: 'Random',
49280
+ productfetchingtype: lcproductfetchingtype,
49185
49281
  collectionid: props.collectionidprops,
49186
49282
  grouptype: props.grouptypeprops,
49187
49283
  grouptyperefid: props.grouptyperefidprops
49188
49284
  });
49189
49285
  } else if (props.srcfromprops == 'InnerGroups' || props.srcfromprops == 'InnerCategory' || props.srcfromprops == 'InnerParentCollection') {
49190
49286
  setfetchingtype(props.grouptypeprops);
49287
+ } else if (props.srcfromprops == 'Innervendor') {
49288
+ setfetchingtype('vendors');
49191
49289
  } else {
49192
49290
  setfetchingtype(sectionitem.fetchingtype);
49193
49291
  setProductsFetchingTypeSectionObj({
@@ -49216,6 +49314,11 @@ var ModernCardsSection = function ModernCardsSection(props) {
49216
49314
  });
49217
49315
  cardobjassigner(allpagesarr);
49218
49316
  }
49317
+ } else if (fetchingtype == 'vendors') {
49318
+ if (FetchVendorsQuery.isSuccess) {
49319
+ var _FetchVendorsQuery$da;
49320
+ 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);
49321
+ }
49219
49322
  }
49220
49323
  }
49221
49324
  }
@@ -49224,7 +49327,6 @@ var ModernCardsSection = function ModernCardsSection(props) {
49224
49327
  if ((fetchingtype === null || fetchingtype === void 0 ? void 0 : fetchingtype.length) != 0) {
49225
49328
  var tempFetchQueriesEngineContext = FetchQueriesEngineContext;
49226
49329
  if (fetchingtype == 'collections') {
49227
- // tempFetchQueriesEngineContext.collections = true;
49228
49330
  if (ProductsFetchingTypeSectionObj.collectionid == 'all' || ProductsFetchingTypeSectionObj.collectionid == null || ProductsFetchingTypeSectionObj.collectionid == undefined) {
49229
49331
  setParentCollectionsForCollectionQueryArr('all');
49230
49332
  } else {
@@ -49235,41 +49337,57 @@ var ModernCardsSection = function ModernCardsSection(props) {
49235
49337
  var tempfetchproductsfilerobjcontext = ProductFilterObjContext;
49236
49338
  tempfetchproductsfilerobjcontext.ProductFetchingType = ProductsFetchingTypeSectionObj.productfetchingtype;
49237
49339
  if (ProductsFetchingTypeSectionObj.grouptype == 'collections' || ProductsFetchingTypeSectionObj.grouptype == 'categories' || ProductsFetchingTypeSectionObj.grouptype == 'parentcollections') ; else {
49238
- tempfetchproductsfilerobjcontext.collections.push(ProductsFetchingTypeSectionObj.collectionid);
49340
+ if (tempfetchproductsfilerobjcontext.collections != undefined) {
49341
+ tempfetchproductsfilerobjcontext.collections.push(ProductsFetchingTypeSectionObj.collectionid);
49342
+ }
49239
49343
  }
49240
49344
  tempfetchproductsfilerobjcontext.grouptype = ProductsFetchingTypeSectionObj.grouptype;
49241
49345
  tempfetchproductsfilerobjcontext.grouptyperefid = ProductsFetchingTypeSectionObj.grouptyperefid;
49242
49346
  setProductFilterObjContext(_objectSpread$1n({}, tempfetchproductsfilerobjcontext));
49243
49347
  }
49348
+ setFetchQueriesEngineContext(_objectSpread$1n({}, tempFetchQueriesEngineContext));
49349
+ }
49350
+ }, [fetchingtype, ProductsFetchingTypeSectionObj]);
49351
+ useEffect(function () {
49352
+ if ((fetchingtype === null || fetchingtype === void 0 ? void 0 : fetchingtype.length) != 0) {
49244
49353
  if (fetchingtype == 'categories') {
49245
- if (fetchAuthorizationQueryContext !== null && fetchAuthorizationQueryContext !== void 0 && fetchAuthorizationQueryContext.isSuccess) {
49246
- var categories = fetchAuthorizationQueryContext.data.data.instinfo.instcategories;
49247
- cardobjassigner(categories);
49354
+ var categories = [];
49355
+ if (fetchCategoriesQueryContext !== null && fetchCategoriesQueryContext !== void 0 && fetchCategoriesQueryContext.isSuccess) {
49356
+ var _fetchCategoriesQuery;
49357
+ categories = fetchCategoriesQueryContext === null || fetchCategoriesQueryContext === void 0 || (_fetchCategoriesQuery = fetchCategoriesQueryContext.data) === null || _fetchCategoriesQuery === void 0 || (_fetchCategoriesQuery = _fetchCategoriesQuery.data) === null || _fetchCategoriesQuery === void 0 ? void 0 : _fetchCategoriesQuery.categories;
49248
49358
  }
49359
+ cardobjassigner(categories);
49249
49360
  }
49250
49361
  if (fetchingtype == 'parentcollections' || fetchingtype == 'innercategories') {
49251
- if (fetchAuthorizationQueryContext !== null && fetchAuthorizationQueryContext !== void 0 && fetchAuthorizationQueryContext.isSuccess) {
49252
- var _categories;
49253
- var categories = fetchAuthorizationQueryContext.data.data.instinfo.instcategories;
49254
- var parentcollections = [];
49255
- (_categories = categories) === null || _categories === void 0 || _categories.forEach(function (catitem, catindex) {
49256
- catitem === null || catitem === void 0 || catitem.parentcolletions.forEach(function (parentcolitem) {
49362
+ var _categories;
49363
+ var categories = [];
49364
+ if (fetchCategoriesQueryContext !== null && fetchCategoriesQueryContext !== void 0 && fetchCategoriesQueryContext.isSuccess) {
49365
+ var _fetchCategoriesQuery2;
49366
+ categories = fetchCategoriesQueryContext === null || fetchCategoriesQueryContext === void 0 || (_fetchCategoriesQuery2 = fetchCategoriesQueryContext.data) === null || _fetchCategoriesQuery2 === void 0 || (_fetchCategoriesQuery2 = _fetchCategoriesQuery2.data) === null || _fetchCategoriesQuery2 === void 0 ? void 0 : _fetchCategoriesQuery2.categories;
49367
+ }
49368
+ // if (fetchAuthorizationQueryContext?.isSuccess) {
49369
+ // var categories = fetchAuthorizationQueryContext.data.data.instinfo.instcategories;
49370
+ // alert(JSON.stringify(categories));
49371
+ var parentcollections = [];
49372
+ (_categories = categories) === null || _categories === void 0 || _categories.forEach(function (catitem, catindex) {
49373
+ catitem === null || catitem === void 0 || catitem.parentcolletions.forEach(function (parentcolitem) {
49374
+ if (parentcolitem.isshowntocustomers == 1) {
49257
49375
  parentcolitem.categoryid = catitem.categoryid;
49258
49376
  parentcollections.push(parentcolitem);
49259
- });
49260
- });
49261
- if (fetchingtype == 'parentcollections') {
49262
- 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') {
49263
- var arrafterfilter = [];
49264
- parentcollections.forEach(function (parentcolitem, parcolindex) {
49265
- if (parentcolitem.categoryid == (sectionitem === null || sectionitem === void 0 ? void 0 : sectionitem.productsfetchingtypeparentcollectioncategoryid)) {
49266
- arrafterfilter.push(parentcolitem);
49267
- }
49268
- });
49269
- parentcollections = arrafterfilter;
49270
49377
  }
49378
+ });
49379
+ });
49380
+ if (fetchingtype == 'parentcollections') {
49381
+ 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') {
49382
+ var arrafterfilter = [];
49383
+ parentcollections.forEach(function (parentcolitem, parcolindex) {
49384
+ if (parentcolitem.categoryid == (sectionitem === null || sectionitem === void 0 ? void 0 : sectionitem.productsfetchingtypeparentcollectioncategoryid)) {
49385
+ arrafterfilter.push(parentcolitem);
49386
+ }
49387
+ });
49388
+ parentcollections = arrafterfilter;
49271
49389
  }
49272
- if (fetchingtype == 'innercategories') {
49390
+ if (props.collectionidprops != null && props.collectionidprops != undefined && props.collectionidprops != 'all') {
49273
49391
  var arrafterfilter = [];
49274
49392
  parentcollections.forEach(function (parentcolitem, parcolindex) {
49275
49393
  if (parentcolitem.categoryid == props.collectionidprops) {
@@ -49278,54 +49396,74 @@ var ModernCardsSection = function ModernCardsSection(props) {
49278
49396
  });
49279
49397
  parentcollections = arrafterfilter;
49280
49398
  }
49281
- cardobjassigner(parentcollections);
49282
49399
  }
49400
+ if (fetchingtype == 'innercategories') {
49401
+ var arrafterfilter = [];
49402
+ parentcollections.forEach(function (parentcolitem, parcolindex) {
49403
+ if (parentcolitem.categoryid == props.collectionidprops) {
49404
+ arrafterfilter.push(parentcolitem);
49405
+ }
49406
+ });
49407
+ parentcollections = arrafterfilter;
49408
+ }
49409
+ cardobjassigner(parentcollections);
49410
+ // }
49283
49411
  } else if (fetchingtype == 'innerparentcollections') {
49284
- if (fetchAuthorizationQueryContext !== null && fetchAuthorizationQueryContext !== void 0 && fetchAuthorizationQueryContext.isSuccess) {
49285
- var _categories2;
49286
- var categories = fetchAuthorizationQueryContext.data.data.instinfo.instcategories;
49287
- var collections = [];
49288
- (_categories2 = categories) === null || _categories2 === void 0 || _categories2.forEach(function (catitem, catindex) {
49289
- catitem === null || catitem === void 0 || catitem.parentcolletions.forEach(function (parentcolitem) {
49290
- var _parentcolitem$collec;
49291
- parentcolitem.categoryid = catitem.categoryid;
49292
- parentcolitem === null || parentcolitem === void 0 || (_parentcolitem$collec = parentcolitem.collections) === null || _parentcolitem$collec === void 0 || _parentcolitem$collec.forEach(function (collitem, colindex) {
49412
+ var _categories2;
49413
+ var categories = [];
49414
+ if (fetchCategoriesQueryContext !== null && fetchCategoriesQueryContext !== void 0 && fetchCategoriesQueryContext.isSuccess) {
49415
+ var _fetchCategoriesQuery3;
49416
+ categories = fetchCategoriesQueryContext === null || fetchCategoriesQueryContext === void 0 || (_fetchCategoriesQuery3 = fetchCategoriesQueryContext.data) === null || _fetchCategoriesQuery3 === void 0 || (_fetchCategoriesQuery3 = _fetchCategoriesQuery3.data) === null || _fetchCategoriesQuery3 === void 0 ? void 0 : _fetchCategoriesQuery3.categories;
49417
+ }
49418
+ // if (fetchAuthorizationQueryContext?.isSuccess) {
49419
+ // var categories = fetchAuthorizationQueryContext.data.data.instinfo.instcategories;
49420
+ var collections = [];
49421
+ (_categories2 = categories) === null || _categories2 === void 0 || _categories2.forEach(function (catitem, catindex) {
49422
+ catitem === null || catitem === void 0 || catitem.parentcolletions.forEach(function (parentcolitem) {
49423
+ var _parentcolitem$collec;
49424
+ parentcolitem.categoryid = catitem.categoryid;
49425
+ parentcolitem === null || parentcolitem === void 0 || (_parentcolitem$collec = parentcolitem.collections) === null || _parentcolitem$collec === void 0 || _parentcolitem$collec.forEach(function (collitem, colindex) {
49426
+ if (collitem.isshowntocustomers == 1) {
49293
49427
  collitem.parentcollectionid = parentcolitem.parentcollectionid;
49294
49428
  collections.push(collitem);
49295
- });
49429
+ }
49296
49430
  });
49297
49431
  });
49298
- if (fetchingtype == 'innerparentcollections') {
49299
- var collectionsafterfilter = [];
49300
- collections.forEach(function (colitem, colindex) {
49301
- if (colitem.parentcollectionid == props.collectionidprops) {
49302
- var iscollexists = false;
49303
- collectionsafterfilter.forEach(function (existcolitem) {
49304
- if (colitem.collectionid == existcolitem.collectionid) {
49305
- iscollexists = true;
49306
- }
49307
- });
49308
- if (iscollexists == false) {
49309
- collectionsafterfilter.push(colitem);
49432
+ });
49433
+ if (fetchingtype == 'innerparentcollections') {
49434
+ var collectionsafterfilter = [];
49435
+ collections.forEach(function (colitem, colindex) {
49436
+ if (colitem.parentcollectionid == props.collectionidprops) {
49437
+ var iscollexists = false;
49438
+ collectionsafterfilter.forEach(function (existcolitem) {
49439
+ if (colitem.collectionid == existcolitem.collectionid) {
49440
+ iscollexists = true;
49310
49441
  }
49442
+ });
49443
+ if (iscollexists == false) {
49444
+ collectionsafterfilter.push(colitem);
49311
49445
  }
49312
- });
49313
- collections = collectionsafterfilter;
49314
- }
49315
- cardobjassigner(collections);
49446
+ }
49447
+ });
49448
+ collections = collectionsafterfilter;
49316
49449
  }
49450
+ cardobjassigner(collections);
49451
+ // }
49317
49452
  }
49318
- setFetchQueriesEngineContext(_objectSpread$1n({}, tempFetchQueriesEngineContext));
49319
49453
  }
49320
- }, [fetchingtype, ProductsFetchingTypeSectionObj]);
49454
+ }, [fetchingtype, ProductsFetchingTypeSectionObj, fetchCategoriesQueryContext.isSuccess]);
49321
49455
  useEffect(function () {
49322
49456
  if (fetchingtype == 'products') {
49323
49457
  if (fetchProductsQuery.isSuccess && fetchcustomercartQueryContext.isSuccess) {
49324
- var _fetchProductsQuery$d2;
49458
+ var _fetchProductsQuery$d2, _fetchProductsQuery$d3, _fetchProductsQuery$d4, _fetchProductsQuery$d5;
49325
49459
  var allpagesarr = [];
49326
49460
  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) {
49327
49461
  allpagesarr.push(item);
49328
49462
  });
49463
+ 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) {
49464
+ var _fetchProductsQuery$d6;
49465
+ 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);
49466
+ }
49329
49467
  cardobjassigner(allpagesarr);
49330
49468
  }
49331
49469
  }
@@ -49336,10 +49474,28 @@ var ModernCardsSection = function ModernCardsSection(props) {
49336
49474
  cardobjassigner(fetchcollectionsQueryContext.data.data.collections);
49337
49475
  }
49338
49476
  }
49339
- }, [fetchcollectionsQueryContext === null || fetchcollectionsQueryContext === void 0 ? void 0 : fetchcollectionsQueryContext.isSuccess]);
49477
+ }, [fetchcollectionsQueryContext === null || fetchcollectionsQueryContext === void 0 ? void 0 : fetchcollectionsQueryContext.isSuccess, fetchcollectionsQueryContext.data]);
49478
+ useEffect(function () {
49479
+ if (fetchingtype == 'vendors') {
49480
+ if (FetchVendorsQuery.isSuccess) {
49481
+ if (FetchVendorsQuery.data.data.vendors != undefined && FetchVendorsQuery.data.data.vendors.length != 0) {
49482
+ var _FetchVendorsQuery$da2;
49483
+ 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);
49484
+ }
49485
+ }
49486
+ }
49487
+ }, [FetchVendorsQuery.isSuccess]);
49340
49488
  useEffect(function () {
49341
49489
  favassigner();
49342
49490
  }, [favoriteprojectscountContext]);
49491
+ useEffect(function () {
49492
+ if (sectionproperties.length != 0 && sectionproperties.maincontainerarrayofobjs != undefined) {
49493
+ var maincontainerarrayofobjsparsed = JSON.parse(sectionproperties.maincontainerarrayofobjs);
49494
+ if (Array.isArray(maincontainerarrayofobjsparsed)) {
49495
+ setmaincontainerarrayofobjs(_toConsumableArray(maincontainerarrayofobjsparsed));
49496
+ }
49497
+ }
49498
+ }, [sectionproperties]);
49343
49499
  var favassigner = function favassigner() {
49344
49500
  if (fetchingtype == 'products') {
49345
49501
  if (cardsarray.length != 0) {
@@ -49496,6 +49652,29 @@ var ModernCardsSection = function ModernCardsSection(props) {
49496
49652
  });
49497
49653
  setcardsarray([].concat(temparray));
49498
49654
  };
49655
+ var SectionTitle = function SectionTitle() {
49656
+ return /*#__PURE__*/React.createElement("div", {
49657
+ "class": "d-flex align-items-center flex-row",
49658
+ style: {
49659
+ position: 'relative',
49660
+ justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : '',
49661
+ width: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '100%' : ''
49662
+ }
49663
+ }, sectionproperties.sectiontitlestyle == 'Line Before Text' && /*#__PURE__*/React.createElement("span", {
49664
+ "class": section_cssstyles.line_left
49665
+ }), /*#__PURE__*/React.createElement("p", {
49666
+ "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 ',
49667
+ style: {
49668
+ color: sectionproperties.sectionTitleColor,
49669
+ fontWeight: sectionproperties.sectionTitleFontWeight,
49670
+ paddingLeft: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '12px' : 0,
49671
+ paddingRight: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '12px' : 0,
49672
+ textAlign: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : ''
49673
+ }
49674
+ }, langdetect == 'en' ? sectionproperties.sectionTitleContent : sectionproperties.sectionTitleContent_ar), sectionproperties.sectiontitlestyle == 'Line Before Text' && /*#__PURE__*/React.createElement("span", {
49675
+ "class": section_cssstyles.line_right
49676
+ }));
49677
+ };
49499
49678
  var section_cssstyles = {
49500
49679
  viewmorebtn: css({
49501
49680
  width: sectionproperties.viewmorebtn_Width == 0 ? 'auto' : sectionproperties.viewmorebtn_Width + 'px',
@@ -49539,29 +49718,12 @@ var ModernCardsSection = function ModernCardsSection(props) {
49539
49718
  background: sectionproperties.linebgcolor
49540
49719
  }),
49541
49720
  sectiontitlecont: css({
49542
- marginTop: sectionproperties.sectionTitleMarginTop + 'px'
49543
- })
49544
- };
49545
- var SectionTitle = function SectionTitle() {
49546
- return /*#__PURE__*/React.createElement("div", {
49547
- "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',
49548
- style: {
49549
- paddingLeft: langdetect == 'en' ? sectionproperties.sectionTitleMarginLeft + 'px' : sectionproperties.sectionTitleMarginRight + 'px',
49550
- paddingRight: langdetect == 'en' ? sectionproperties.sectionTitleMarginRight + 'px' : sectionproperties.sectionTitleMarginLeft + 'px'
49551
- }
49552
- }, sectionproperties.sectiontitlestyle == 'Line Before Text' && /*#__PURE__*/React.createElement("span", {
49553
- "class": section_cssstyles.line_left
49554
- }), /*#__PURE__*/React.createElement("p", {
49555
- "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 ',
49556
- style: {
49557
- color: sectionproperties.sectionTitleColor,
49558
- fontWeight: sectionproperties.sectionTitleFontWeight,
49559
- paddingLeft: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '12px' : 0,
49560
- paddingRight: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '12px' : 0
49721
+ marginTop: sectionproperties.sectionTitleMarginTop + 'px',
49722
+ '@media (max-width: 1024px)': {
49723
+ paddingLeft: sectionproperties.sectiontitlepaddinghorizontalresponsive + 'rem',
49724
+ paddingRight: sectionproperties.sectiontitlepaddinghorizontalresponsive + 'rem'
49561
49725
  }
49562
- }, langdetect == 'en' ? sectionproperties.sectionTitleContent : sectionproperties.sectionTitleContent_ar), sectionproperties.sectiontitlestyle == 'Line Before Text' && /*#__PURE__*/React.createElement("span", {
49563
- "class": section_cssstyles.line_right
49564
- }));
49726
+ })
49565
49727
  };
49566
49728
  var cardsrender = function cardsrender() {
49567
49729
  return /*#__PURE__*/React.createElement("div", {
@@ -49593,12 +49755,12 @@ var ModernCardsSection = function ModernCardsSection(props) {
49593
49755
  fontSize: sectionproperties.sectionTitleFontSizeresp + 'px'
49594
49756
  }
49595
49757
  }, SectionTitle()), sectionproperties.prodCatShow == 'Show' && /*#__PURE__*/React.createElement("div", {
49596
- "class": sectionproperties.sectiontitleposition == 'Centered' ? 'col-lg-12 d-flex align-items-center justify-content-center mb-md-0' : 'col-lg-12 d-flex align-items-center justify-content-start justify-content-md-center mb-md-0 p-0',
49758
+ "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',
49597
49759
  style: {
49598
49760
  marginBottom: sectionproperties.descriptionMarginBottom + 'px'
49599
49761
  }
49600
49762
  }, /*#__PURE__*/React.createElement("p", {
49601
- "class": sectionproperties.descFontFamily == 'Pacifico' ? ' PacificoFont m-0 p-0 wordbreak text-md-center ' : sectionproperties.descFontFamily == 'Playfair' ? ' PlayfairFont m-0 p-0 wordbreak text-md-center ' : sectionproperties.descFontFamily == 'Great Vibes' ? ' GreatvibesFont m-0 p-0 wordbreak text-md-center ' : sectionproperties.descFontFamily == 'Quicksand' ? ' QuicksandFont m-0 p-0 wordbreak text-md-center ' : ' m-0 p-0 wordbreak',
49763
+ "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',
49602
49764
  style: {
49603
49765
  fontSize: sectionproperties.prodCatFontSize + 'px',
49604
49766
  color: sectionproperties.prodCatColor,
@@ -69149,6 +69311,14 @@ var CategoryCardwithhoveraction = function CategoryCardwithhoveraction(props) {
69149
69311
  setitem(props.cardinfoitemprops);
69150
69312
  }, [props.cardinfoitemprops]);
69151
69313
  var card_cssstyles = {
69314
+ productcard: css({
69315
+ minWidth: props.sectiontypeprops2 == 'vertical' ? '100%' : sectionproperties.width + 'px',
69316
+ maxWidth: props.sectiontypeprops2 == 'vertical' ? '100%' : sectionproperties.width + 'px',
69317
+ '@media (max-width: 800px)': {
69318
+ minWidth: props.sectiontypeprops2 == 'vertical' ? '100%' : sectionproperties.widthresponsive + 'px',
69319
+ maxWidth: props.sectiontypeprops2 == 'vertical' ? '100%' : sectionproperties.widthresponsive + 'px'
69320
+ }
69321
+ }),
69152
69322
  cardcontainer: css({
69153
69323
  marginTop: sectionproperties.marginTop + 'px',
69154
69324
  marginBottom: sectionproperties.marginBottom + 'px',
@@ -69227,7 +69397,9 @@ var CategoryCardwithhoveraction = function CategoryCardwithhoveraction(props) {
69227
69397
  })
69228
69398
  };
69229
69399
  return /*#__PURE__*/React.createElement("div", {
69230
- "class": "".concat(cardstyles$1.container, " ").concat(card_cssstyles.container) + ' row m-0 w-100 ',
69400
+ "class": props.sectiontypeprops2 == 'vertical' ? "".concat(card_cssstyles.productcard) + ' w-100 ' : "".concat(card_cssstyles.productcard)
69401
+ // class={`${cardstyles.container} ${card_cssstyles.container}` + ' row m-0 w-100 '}
69402
+ ,
69231
69403
  style: {
69232
69404
  paddingLeft: langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px',
69233
69405
  paddingRight: langdetect == 'en' ? sectionproperties.card_marginRight + 'px' : sectionproperties.card_marginLeft + 'px'
@@ -69242,7 +69414,7 @@ var CategoryCardwithhoveraction = function CategoryCardwithhoveraction(props) {
69242
69414
  }, /*#__PURE__*/React.createElement("div", {
69243
69415
  "class": card_cssstyles.imagecontainer + ' col-lg-12 d-flex d-md-none mb-2 imagecont p-0 ',
69244
69416
  style: {
69245
- height: sectionproperties.height + 'px'
69417
+ height: sectionproperties.image_height + 'px'
69246
69418
  }
69247
69419
  }, /*#__PURE__*/React.createElement(Imagekitimagecomp, {
69248
69420
  urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
@@ -74498,6 +74670,12 @@ var Simpleproductcard = function Simpleproductcard(props) {
74498
74670
  var cardonclickfunctionContext = props.actions.cardonclickfunctionContext;
74499
74671
  var ikimagecredcontext = props.actions.ikimagecredcontext;
74500
74672
  props.actions.NotificationManager;
74673
+ var AddtoCartContext = props.actions.AddtoCartContext;
74674
+ props.AddtoCartMutationContext;
74675
+ var _useState5 = useState(''),
74676
+ _useState6 = _slicedToArray(_useState5, 2),
74677
+ addtocardpayloadobj = _useState6[0];
74678
+ _useState6[1];
74501
74679
  var plainString = function plainString(html) {
74502
74680
  var divContainer = document.createElement('div');
74503
74681
  divContainer.innerHTML = html;
@@ -74676,10 +74854,10 @@ var Simpleproductcard = function Simpleproductcard(props) {
74676
74854
  transform: "translateX(0px)"
74677
74855
  })
74678
74856
  };
74679
- var _useState5 = useState(''),
74680
- _useState6 = _slicedToArray(_useState5, 2),
74681
- secondimage = _useState6[0],
74682
- setsecondimage = _useState6[1];
74857
+ var _useState7 = useState(''),
74858
+ _useState8 = _slicedToArray(_useState7, 2),
74859
+ secondimage = _useState8[0],
74860
+ setsecondimage = _useState8[1];
74683
74861
  useEffect(function () {
74684
74862
  var _props$cardinfoitempr;
74685
74863
  setitem(props.cardinfoitemprops);
@@ -74706,6 +74884,14 @@ var Simpleproductcard = function Simpleproductcard(props) {
74706
74884
  }
74707
74885
  }
74708
74886
  }, [props.cardinfoitemprops]);
74887
+ var addtocartfunc = function addtocartfunc() {
74888
+ var tempaddtocardpayloadobj = _objectSpread$6({}, addtocardpayloadobj);
74889
+ tempaddtocardpayloadobj.productid = item.productid;
74890
+ tempaddtocardpayloadobj.functype = 'add';
74891
+ tempaddtocardpayloadobj.item_type = 'product';
74892
+ tempaddtocardpayloadobj.quantity = 1;
74893
+ AddtoCartContext(tempaddtocardpayloadobj);
74894
+ };
74709
74895
  var Image = function Image(type) {
74710
74896
  var transition = false;
74711
74897
  if (sectionproperties.hideshowcardtransition == 'Show' && type != 'responsive') {
@@ -74740,10 +74926,10 @@ var Simpleproductcard = function Simpleproductcard(props) {
74740
74926
  }
74741
74927
  }));
74742
74928
  };
74743
- var _useState7 = useState(0),
74744
- _useState8 = _slicedToArray(_useState7, 2),
74745
- clickCount = _useState8[0],
74746
- setClickCount = _useState8[1];
74929
+ var _useState9 = useState(0),
74930
+ _useState10 = _slicedToArray(_useState9, 2),
74931
+ clickCount = _useState10[0],
74932
+ setClickCount = _useState10[1];
74747
74933
  var handleClick = function handleClick() {
74748
74934
  // Increase the click count by 1
74749
74935
  setClickCount(function (prevCount) {
@@ -74799,7 +74985,7 @@ var Simpleproductcard = function Simpleproductcard(props) {
74799
74985
  }, langdetect == 'en' ? 'Save' : 'وفر', " ", langdetect == 'en' ? item.currencyname : '', ' ', parseFloat(Math.round(parseInt(item.defaultprice) - parseInt(item.defaultsaleprice))).toFixed(0), " ", langdetect == 'en' ? '' : item.currencyname));
74800
74986
  };
74801
74987
  return /*#__PURE__*/React.createElement("div", {
74802
- "class": props.sectiontypeprops2 == 'vertical' ? "".concat(card_cssstyles.productcard) + ' w-100 px-md-1 ' : " ".concat(card_cssstyles.productcard),
74988
+ "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),
74803
74989
  style: {
74804
74990
  paddingLeft: langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px',
74805
74991
  paddingRight: langdetect == 'en' ? sectionproperties.card_marginRight + 'px' : sectionproperties.card_marginLeft + 'px'
@@ -74889,7 +75075,7 @@ var Simpleproductcard = function Simpleproductcard(props) {
74889
75075
  }), sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React.createElement(FaRegHeart, {
74890
75076
  size: sectionproperties.favBtnIconfontsize
74891
75077
  }))), (item === null || item === void 0 ? void 0 : item.hassale) == 1 && sectionproperties.showbadge == 'Show' && /*#__PURE__*/React.createElement("div", {
74892
- "class": "allcentered font-weight-500",
75078
+ "class": "allcentered",
74893
75079
  style: {
74894
75080
  zIndex: 2,
74895
75081
  position: 'absolute',
@@ -74980,8 +75166,8 @@ var Simpleproductcard = function Simpleproductcard(props) {
74980
75166
  }), /*#__PURE__*/React.createElement("div", {
74981
75167
  "class": "text-capitalize mx-2",
74982
75168
  style: {
74983
- color: sectionproperties.tagcolor,
74984
- fontSize: 14
75169
+ color: sectionproperties.featurecolor,
75170
+ fontSize: sectionproperties.featurefontsize + 'px'
74985
75171
  }
74986
75172
  }, (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.createElement("p", {
74987
75173
  "class": "".concat(card_cssstyles.productDescStyles) + ' col-lg-12 wordbreak wordbreak1 p-0 mb-2 ',
@@ -74991,9 +75177,13 @@ var Simpleproductcard = function Simpleproductcard(props) {
74991
75177
  color: sectionproperties.measurementunitcolor
74992
75178
  }
74993
75179
  }, item.measurmentunit), sectionproperties.prodNameShow == 'Show' && /*#__PURE__*/React.createElement("div", {
74994
- "class": "col-lg-12 p-0",
75180
+ "class": "col-lg-12 pl-0 pr-0",
74995
75181
  style: {
74996
- minHeight: sectionproperties.wordbreak == '1' ? 'auto' : '6vh'
75182
+ minHeight: sectionproperties.wordbreak == '1' ? 'auto' : '6vh',
75183
+ background: sectionproperties.prodNameBackgroundColor,
75184
+ borderRadius: '15px',
75185
+ paddingTop: sectionproperties.productnamepaddingvertical + 'px',
75186
+ paddingBottom: sectionproperties.productnamepaddingvertical + 'px'
74997
75187
  }
74998
75188
  }, /*#__PURE__*/React.createElement("p", {
74999
75189
  onClick: function onClick() {
@@ -75010,7 +75200,7 @@ var Simpleproductcard = function Simpleproductcard(props) {
75010
75200
  textAlign: sectionproperties.productnamecentered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right'
75011
75201
  }
75012
75202
  }, item.name)), sectionproperties.prodCatShow == 'Show' && sectionproperties.descriptionoverwritestyles == 'No' && /*#__PURE__*/React.createElement("p", {
75013
- "class": "".concat(card_cssstyles.productDescStyles) + ' col-lg-12 p-0 wordbreak wordbreak4 mt-1 ',
75203
+ "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 ',
75014
75204
  style: {
75015
75205
  textAlign: sectionproperties.productnamecentered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right'
75016
75206
  },
@@ -75018,7 +75208,7 @@ var Simpleproductcard = function Simpleproductcard(props) {
75018
75208
  __html: item.shortdescription
75019
75209
  }
75020
75210
  }), sectionproperties.prodCatShow == 'Show' && sectionproperties.descriptionoverwritestyles == 'Yes' && /*#__PURE__*/React.createElement("p", {
75021
- "class": "".concat(card_cssstyles.productDescStyles) + ' col-lg-12 wordbreak wordbreak2 p-0 mt-1 ',
75211
+ "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 ',
75022
75212
  style: {
75023
75213
  textAlign: sectionproperties.productnamecentered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right'
75024
75214
  }
@@ -75079,18 +75269,23 @@ var Simpleproductcard = function Simpleproductcard(props) {
75079
75269
  justifyContent: sectionproperties.productnamecentered == 'Centered' ? 'center' : 'start'
75080
75270
  }
75081
75271
  }, /*#__PURE__*/React.createElement("p", {
75082
- "class": "".concat(card_cssstyles.cart_btn) + ' m-0 p-0 d-flex align-items-center justify-content-center mt-1 ',
75272
+ "class": "".concat(card_cssstyles.cart_btn) + ' m-0 p-0 d-flex align-items-center justify-content-center mt-1 '
75273
+ // onClick={() => {
75274
+ // var productidtobesend = null;
75275
+ // if (sectionproperties.urlwithproductname == 'Yes') {
75276
+ // productidtobesend = item.productendpointurl;
75277
+ // } else {
75278
+ // productidtobesend = item.productid;
75279
+ // }
75280
+ // cardonclickfunctionContext(sectionproperties?.onClickRoute, productidtobesend, props.fetchingtypeprops, item.collectionid);
75281
+ // // setShowProductInfoModalContext(true);
75282
+ // // setProductIdProdutInfoModalContext(item.productid);
75283
+ // }}
75284
+ ,
75083
75285
  onClick: function onClick() {
75084
- var productidtobesend = null;
75085
- if (sectionproperties.urlwithproductname == 'Yes') {
75086
- productidtobesend = item.productendpointurl;
75087
- } else {
75088
- productidtobesend = item.productid;
75089
- }
75090
- cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, productidtobesend, props.fetchingtypeprops, item.collectionid);
75091
- // setShowProductInfoModalContext(true);
75092
- // setProductIdProdutInfoModalContext(item.productid);
75286
+ addtocartfunc();
75093
75287
  }
75288
+ // disabled={AddtoCartMutationContext.isLoading == true ? true : false}
75094
75289
  }, sectionproperties.cartBtn_iconFontSize != 0 && /*#__PURE__*/React.createElement("i", {
75095
75290
  "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'
75096
75291
  }, sectionproperties.carticonstyle == 'Shopping bag 1' && /*#__PURE__*/React.createElement(FiShoppingBag, {