tabexseriescomponents 0.0.571 → 0.0.573

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
@@ -16658,192 +16658,180 @@ var Filter$1 = function Filter(props) {
16658
16658
  function ownKeys$2a(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
16659
16659
  function _objectSpread$2a(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2a(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2a(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
16660
16660
  var CollectionsFilterHorizontal = function CollectionsFilterHorizontal(props) {
16661
- var _authdetailsContext$i;
16662
16661
  props.actions.lang;
16663
16662
  var langdetect = props.actions.langdetect;
16664
16663
  props.actions.productfiltercontext;
16665
16664
  props.actions.setproductfiltercontext;
16666
16665
  var ProductFilterObjContext = props.actions.ProductFilterObjContext;
16667
16666
  var setProductFilterObjContext = props.actions.setProductFilterObjContext;
16668
- var authdetailsContext = props.actions.authdetailsContext;
16667
+ props.actions.authdetailsContext;
16669
16668
  var routingcountext = props.actions.routingcountext;
16670
16669
  var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
16671
16670
  props.actions.ikimagecredcontext;
16672
- var FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
16673
- var setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
16671
+ props.actions.FetchQueriesEngineContext;
16672
+ props.actions.setFetchQueriesEngineContext;
16673
+ props.actions.fetchcollectionsQueryContext;
16674
+ var fetchCategoriesQueryContext = props.actions.fetchCategoriesQueryContext;
16674
16675
  var _useState = useState(''),
16675
16676
  _useState2 = _slicedToArray(_useState, 2),
16676
16677
  sectionproperties = _useState2[0],
16677
16678
  setsectionproperties = _useState2[1];
16678
16679
  var _useState3 = useState([]),
16679
- _useState4 = _slicedToArray(_useState3, 2),
16680
- collectionstobevisible = _useState4[0],
16681
- setcollectionstobevisible = _useState4[1];
16682
- var _useState5 = useState(_toConsumableArray(authdetailsContext.instinfo.instcollections)),
16680
+ _useState4 = _slicedToArray(_useState3, 2);
16681
+ _useState4[0];
16682
+ _useState4[1];
16683
+ // const [instcollections, setinstcollections] = useState([...fetchcollectionsQueryContext?.data?.data?.collections]);
16684
+ var _useState5 = useState([]),
16683
16685
  _useState6 = _slicedToArray(_useState5, 2),
16684
- instcollections = _useState6[0],
16685
- setinstcollections = _useState6[1];
16686
- var _useState7 = useState(_toConsumableArray(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : _authdetailsContext$i.instcategories)),
16687
- _useState8 = _slicedToArray(_useState7, 2),
16688
- instcategories = _useState8[0],
16689
- setinstcategories = _useState8[1];
16690
- var _useState9 = useState(false),
16691
- _useState10 = _slicedToArray(_useState9, 2);
16692
- _useState10[0];
16693
- _useState10[1];
16686
+ instcategories = _useState6[0],
16687
+ setinstcategories = _useState6[1];
16688
+ var _useState7 = useState(false),
16689
+ _useState8 = _slicedToArray(_useState7, 2);
16690
+ _useState8[0];
16691
+ _useState8[1];
16694
16692
  useEffect(function () {
16695
- filterupdater();
16693
+ // filterupdater();
16696
16694
  }, []);
16697
16695
  useEffect(function () {
16698
- var _authdetailsContext$i2;
16699
- setinstcollections(_toConsumableArray(authdetailsContext.instinfo.instcollections));
16700
- setinstcategories(_toConsumableArray(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i2 = authdetailsContext.instinfo) === null || _authdetailsContext$i2 === void 0 ? void 0 : _authdetailsContext$i2.instcategories));
16701
- }, [authdetailsContext]);
16696
+ if (fetchCategoriesQueryContext.isSuccess) {
16697
+ var _fetchCategoriesQuery;
16698
+ setinstcategories(_toConsumableArray(fetchCategoriesQueryContext === null || fetchCategoriesQueryContext === void 0 || (_fetchCategoriesQuery = fetchCategoriesQueryContext.data) === null || _fetchCategoriesQuery === void 0 || (_fetchCategoriesQuery = _fetchCategoriesQuery.data) === null || _fetchCategoriesQuery === void 0 ? void 0 : _fetchCategoriesQuery.categories));
16699
+ }
16700
+ }, [fetchCategoriesQueryContext.isSuccess]);
16702
16701
  useEffect(function () {
16703
16702
  if (props.sectionpropertiesprops != undefined && props.sectionpropertiesprops.length != 0) {
16704
16703
  setsectionproperties(props.sectionpropertiesprops);
16705
16704
  }
16706
16705
  }, [props.sectionpropertiesprops]);
16707
16706
  useEffect(function () {
16708
- filterupdater();
16709
- }, [ProductFilterObjContext]);
16710
- useEffect(function () {
16711
- if ((sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.filterretreivetype) == 'Depend on chosen parent group') {
16712
- if ((ProductFilterObjContext === null || ProductFilterObjContext === void 0 ? void 0 : ProductFilterObjContext.collections) != undefined && (ProductFilterObjContext === null || ProductFilterObjContext === void 0 ? void 0 : ProductFilterObjContext.collections) != null && Array.isArray(ProductFilterObjContext === null || ProductFilterObjContext === void 0 ? void 0 : ProductFilterObjContext.collections)) {
16713
- var _parentidsfound;
16714
- var collectiontobevisible = [];
16715
- var parentidsfound = [];
16716
- if (ProductFilterObjContext.ProductFetchingType == 'Parent Collection') {
16717
- parentidsfound = ProductFilterObjContext === null || ProductFilterObjContext === void 0 ? void 0 : ProductFilterObjContext.collections;
16718
- } else if (ProductFilterObjContext.ProductFetchingType == 'Category') {
16719
- instcategories === null || instcategories === void 0 || instcategories.forEach(function (catitem, catindex) {
16720
- var _ProductFilterObjCont;
16721
- ProductFilterObjContext === null || ProductFilterObjContext === void 0 || (_ProductFilterObjCont = ProductFilterObjContext.collections) === null || _ProductFilterObjCont === void 0 || _ProductFilterObjCont.forEach(function (colitem2, colindex2) {
16722
- if (catitem.categoryid == colitem2) {
16723
- var _catitem$parentcollet;
16724
- catitem === null || catitem === void 0 || (_catitem$parentcollet = catitem.parentcolletions) === null || _catitem$parentcollet === void 0 || _catitem$parentcollet.forEach(function (parentcolitem, parentcolindex) {
16725
- parentidsfound.push(parentcolitem.parentcollectionid);
16726
- });
16727
- }
16728
- });
16729
- });
16730
- } else {
16731
- instcategories === null || instcategories === void 0 || instcategories.forEach(function (catitem, catindex) {
16732
- var _catitem$parentcollet2;
16733
- catitem === null || catitem === void 0 || (_catitem$parentcollet2 = catitem.parentcolletions) === null || _catitem$parentcollet2 === void 0 || _catitem$parentcollet2.forEach(function (parentcolitem, parentcolindex) {
16734
- var _parentcolitem$collec;
16735
- parentcolitem === null || parentcolitem === void 0 || (_parentcolitem$collec = parentcolitem.collections) === null || _parentcolitem$collec === void 0 || _parentcolitem$collec.forEach(function (colitem, colindex) {
16736
- var _ProductFilterObjCont2;
16737
- ProductFilterObjContext === null || ProductFilterObjContext === void 0 || (_ProductFilterObjCont2 = ProductFilterObjContext.collections) === null || _ProductFilterObjCont2 === void 0 || _ProductFilterObjCont2.forEach(function (colitem2, colindex2) {
16738
- if (colitem.collectionid == colitem2) {
16739
- parentidsfound.push(parentcolitem.parentcollectionid);
16740
- }
16741
- });
16742
- });
16743
- });
16744
- });
16745
- }
16746
- parentidsfound = parentidsfound.filter(function (val, id, array) {
16747
- return array.indexOf(val) == id;
16748
- });
16749
- if (((_parentidsfound = parentidsfound) === null || _parentidsfound === void 0 ? void 0 : _parentidsfound.length) != 0) {
16750
- instcategories === null || instcategories === void 0 || instcategories.forEach(function (catitem, catindex) {
16751
- var _catitem$parentcollet3;
16752
- catitem === null || catitem === void 0 || (_catitem$parentcollet3 = catitem.parentcolletions) === null || _catitem$parentcollet3 === void 0 || _catitem$parentcollet3.forEach(function (parentcolitem, parentcolindex) {
16753
- var _parentidsfound2;
16754
- (_parentidsfound2 = parentidsfound) === null || _parentidsfound2 === void 0 || _parentidsfound2.forEach(function (parentidfounditem, parentidfoundindex) {
16755
- if (parentidfounditem == (parentcolitem === null || parentcolitem === void 0 ? void 0 : parentcolitem.parentcollectionid)) {
16756
- var _parentcolitem$collec2;
16757
- parentcolitem === null || parentcolitem === void 0 || (_parentcolitem$collec2 = parentcolitem.collections) === null || _parentcolitem$collec2 === void 0 || _parentcolitem$collec2.forEach(function (colitem, colindex) {
16758
- var iscolexists = false;
16759
- collectiontobevisible === null || collectiontobevisible === void 0 || collectiontobevisible.forEach(function (colitemex, colindexex) {
16760
- if (colitemex.collectionid == colitem.collectionid) {
16761
- iscolexists = true;
16762
- }
16763
- });
16764
- if (iscolexists == false) {
16765
- collectiontobevisible.push(colitem);
16766
- }
16767
- });
16768
- }
16769
- });
16770
- });
16771
- });
16772
- if ((collectiontobevisible === null || collectiontobevisible === void 0 ? void 0 : collectiontobevisible.length) != 0) {
16773
- setcollectionstobevisible(collectiontobevisible);
16774
- } else {
16775
- setcollectionstobevisible(instcollections);
16776
- }
16777
- } else {
16778
- setcollectionstobevisible(instcollections);
16779
- }
16780
- } else {
16781
- setcollectionstobevisible(instcollections);
16782
- }
16783
- } else {
16784
- setcollectionstobevisible(instcollections);
16785
- }
16707
+ // filterupdater();
16786
16708
  }, [ProductFilterObjContext]);
16787
- var filterupdater = function filterupdater() {
16788
- setTimeout(function () {
16789
- var tempFetchQueriesEngineContext = _objectSpread$2a({}, FetchQueriesEngineContext);
16790
- tempFetchQueriesEngineContext.fetchtabexcountries = true;
16791
- setFetchQueriesEngineContext(tempFetchQueriesEngineContext);
16792
- }, 100);
16793
- if (instcategories.length != 0) {
16794
- var _ProductFilterObjCont3;
16795
- var tempInstcategories = _toConsumableArray(instcategories);
16796
- tempInstcategories.forEach(function (catitem, catindex) {
16797
- catitem.parentcolletions.forEach(function (parentcolitem, parentcolindex) {
16798
- parentcolitem.collections.forEach(function (colitem, colindex) {
16799
- colitem.isfilterselected = false;
16800
- });
16801
- });
16802
- });
16803
- ProductFilterObjContext === null || ProductFilterObjContext === void 0 || (_ProductFilterObjCont3 = ProductFilterObjContext.collections) === null || _ProductFilterObjCont3 === void 0 || _ProductFilterObjCont3.forEach(function (filteritem, filterindex) {
16804
- tempInstcategories.forEach(function (catitem, catindex) {
16805
- catitem.parentcolletions.forEach(function (parentcolitem, parentcolindex) {
16806
- parentcolitem.collections.forEach(function (colitem, colindex) {
16807
- if (colitem.collectionid == filteritem) {
16808
- colitem.isfilterselected = true;
16809
- }
16810
- });
16811
- });
16812
- });
16813
- });
16814
- setinstcategories(_toConsumableArray(tempInstcategories));
16815
- }
16816
- if (instcollections.length != 0) {
16817
- var _ProductFilterObjCont4;
16818
- var tempInstcollections = _toConsumableArray(instcollections);
16819
- tempInstcollections.forEach(function (instfilteritem, valefilteritemindex) {
16820
- instfilteritem.isfilterselected = false;
16821
- });
16822
- ProductFilterObjContext === null || ProductFilterObjContext === void 0 || (_ProductFilterObjCont4 = ProductFilterObjContext.collections) === null || _ProductFilterObjCont4 === void 0 || _ProductFilterObjCont4.forEach(function (filteritem, filterindex) {
16823
- tempInstcollections === null || tempInstcollections === void 0 || tempInstcollections.forEach(function (instfilteritem, instfilterindex) {
16824
- if (instfilteritem.collectionid == filteritem) {
16825
- instfilteritem.isfilterselected = true;
16826
- }
16827
- });
16828
- });
16829
- setinstcollections(_toConsumableArray(tempInstcollections));
16830
- }
16831
- };
16709
+
16710
+ // useEffect(() => {
16711
+ // if (sectionproperties?.filterretreivetype == 'Depend on chosen parent group') {
16712
+ // if (ProductFilterObjContext?.collections != undefined && ProductFilterObjContext?.collections != null && Array.isArray(ProductFilterObjContext?.collections)) {
16713
+ // var collectiontobevisible = [];
16714
+ // var parentidsfound = [];
16715
+ // if (ProductFilterObjContext.ProductFetchingType == 'Parent Collection') {
16716
+ // parentidsfound = ProductFilterObjContext?.collections;
16717
+ // } else if (ProductFilterObjContext.ProductFetchingType == 'Category') {
16718
+ // instcategories?.forEach(function (catitem, catindex) {
16719
+ // ProductFilterObjContext?.collections?.forEach(function (colitem2, colindex2) {
16720
+ // if (catitem.categoryid == colitem2) {
16721
+ // catitem?.parentcolletions?.forEach(function (parentcolitem, parentcolindex) {
16722
+ // parentidsfound.push(parentcolitem.parentcollectionid);
16723
+ // });
16724
+ // }
16725
+ // });
16726
+ // });
16727
+ // } else {
16728
+ // instcategories?.forEach(function (catitem, catindex) {
16729
+ // catitem?.parentcolletions?.forEach(function (parentcolitem, parentcolindex) {
16730
+ // parentcolitem?.collections?.forEach(function (colitem, colindex) {
16731
+ // ProductFilterObjContext?.collections?.forEach(function (colitem2, colindex2) {
16732
+ // if (colitem.collectionid == colitem2) {
16733
+ // parentidsfound.push(parentcolitem.parentcollectionid);
16734
+ // }
16735
+ // });
16736
+ // });
16737
+ // });
16738
+ // });
16739
+ // }
16740
+
16741
+ // parentidsfound = parentidsfound.filter((val, id, array) => array.indexOf(val) == id);
16742
+
16743
+ // if (parentidsfound?.length != 0) {
16744
+ // instcategories?.forEach(function (catitem, catindex) {
16745
+ // catitem?.parentcolletions?.forEach(function (parentcolitem, parentcolindex) {
16746
+ // parentidsfound?.forEach(function (parentidfounditem, parentidfoundindex) {
16747
+ // if (parentidfounditem == parentcolitem?.parentcollectionid) {
16748
+ // parentcolitem?.collections?.forEach(function (colitem, colindex) {
16749
+ // var iscolexists = false;
16750
+ // collectiontobevisible?.forEach(function (colitemex, colindexex) {
16751
+ // if (colitemex.collectionid == colitem.collectionid) {
16752
+ // iscolexists = true;
16753
+ // }
16754
+ // });
16755
+ // if (iscolexists == false) {
16756
+ // collectiontobevisible.push(colitem);
16757
+ // }
16758
+ // });
16759
+ // }
16760
+ // });
16761
+ // });
16762
+ // });
16763
+
16764
+ // if (collectiontobevisible?.length != 0) {
16765
+ // setcollectionstobevisible(collectiontobevisible);
16766
+ // } else {
16767
+ // setcollectionstobevisible(instcollections);
16768
+ // }
16769
+ // } else {
16770
+ // setcollectionstobevisible(instcollections);
16771
+ // }
16772
+ // } else {
16773
+ // setcollectionstobevisible(instcollections);
16774
+ // }
16775
+ // } else {
16776
+ // setcollectionstobevisible(instcollections);
16777
+ // }
16778
+ // }, [ProductFilterObjContext]);
16779
+
16780
+ // const filterupdater = () => {
16781
+ // if (instcategories.length != 0) {
16782
+ // var tempInstcategories = [...instcategories];
16783
+ // tempInstcategories.forEach(function (catitem, catindex) {
16784
+ // catitem.parentcolletions.forEach(function (parentcolitem, parentcolindex) {
16785
+ // parentcolitem.collections.forEach(function (colitem, colindex) {
16786
+ // colitem.isfilterselected = false;
16787
+ // });
16788
+ // });
16789
+ // });
16790
+
16791
+ // ProductFilterObjContext?.collections?.forEach(function (filteritem, filterindex) {
16792
+ // tempInstcategories.forEach(function (catitem, catindex) {
16793
+ // catitem.parentcolletions.forEach(function (parentcolitem, parentcolindex) {
16794
+ // parentcolitem.collections.forEach(function (colitem, colindex) {
16795
+ // if (colitem.collectionid == filteritem) {
16796
+ // colitem.isfilterselected = true;
16797
+ // }
16798
+ // });
16799
+ // });
16800
+ // });
16801
+ // });
16802
+
16803
+ // setinstcategories([...tempInstcategories]);
16804
+ // }
16805
+ // // if (instcollections.length != 0) {
16806
+ // // var tempInstcollections = [...instcollections];
16807
+ // // tempInstcollections.forEach(function (instfilteritem, valefilteritemindex) {
16808
+ // // instfilteritem.isfilterselected = false;
16809
+ // // });
16810
+ // // ProductFilterObjContext?.collections?.forEach(function (filteritem, filterindex) {
16811
+ // // tempInstcollections?.forEach(function (instfilteritem, instfilterindex) {
16812
+ // // if (instfilteritem.collectionid == filteritem) {
16813
+ // // instfilteritem.isfilterselected = true;
16814
+ // // }
16815
+ // // });
16816
+ // // });
16817
+ // // setinstcollections([...tempInstcollections]);
16818
+ // // }
16819
+ // };
16832
16820
  var setCollectionFilterFunc = function setCollectionFilterFunc(collectionid) {
16833
16821
  var _tempfetchproductsfil;
16834
16822
  var tempfetchproductsfilerobjcontext = _objectSpread$2a({}, ProductFilterObjContext);
16835
16823
  var CollectionExists = false;
16836
- tempfetchproductsfilerobjcontext === null || tempfetchproductsfilerobjcontext === void 0 || (_tempfetchproductsfil = tempfetchproductsfilerobjcontext.collections) === null || _tempfetchproductsfil === void 0 || _tempfetchproductsfil.forEach(function (filteritem, filterindex) {
16824
+ tempfetchproductsfilerobjcontext === null || tempfetchproductsfilerobjcontext === void 0 || (_tempfetchproductsfil = tempfetchproductsfilerobjcontext.categories) === null || _tempfetchproductsfil === void 0 || _tempfetchproductsfil.forEach(function (filteritem, filterindex) {
16837
16825
  if (filteritem == collectionid) {
16838
16826
  CollectionExists = true;
16839
- tempfetchproductsfilerobjcontext.collections.splice(filterindex, 1);
16827
+ tempfetchproductsfilerobjcontext.categories.splice(filterindex, 1);
16840
16828
  }
16841
16829
  });
16842
16830
  if (!CollectionExists) {
16843
- if (tempfetchproductsfilerobjcontext.collections != undefined && Array.isArray(tempfetchproductsfilerobjcontext.collections)) {
16844
- tempfetchproductsfilerobjcontext.collections = [collectionid];
16831
+ if (tempfetchproductsfilerobjcontext.categories != undefined && Array.isArray(tempfetchproductsfilerobjcontext.categories)) {
16832
+ tempfetchproductsfilerobjcontext.categories = [collectionid];
16845
16833
  } else {
16846
- tempfetchproductsfilerobjcontext.collections = [collectionid];
16834
+ tempfetchproductsfilerobjcontext.categories = [collectionid];
16847
16835
  }
16848
16836
  }
16849
16837
  tempfetchproductsfilerobjcontext.page = 0;
@@ -16856,11 +16844,11 @@ var CollectionsFilterHorizontal = function CollectionsFilterHorizontal(props) {
16856
16844
  var CollectionsFilter = function CollectionsFilter() {
16857
16845
  return /*#__PURE__*/React.createElement("div", {
16858
16846
  "class": "col-lg-12 p-0 scrollhorixontalcontainer text-center px-sm-3"
16859
- }, collectionstobevisible.map(function (item, index) {
16847
+ }, instcategories.map(function (item, index) {
16860
16848
  return /*#__PURE__*/React.createElement("p", {
16861
16849
  "class": filter_cssstyles.filteritem + ' m-0 p-0 cursor-pointer scrollhorixontaldiv mx-4 mx-sm-2 ',
16862
16850
  onClick: function onClick() {
16863
- setCollectionFilterFunc(item.collectionid);
16851
+ setCollectionFilterFunc(item.categoryid);
16864
16852
  },
16865
16853
  style: {
16866
16854
  color: item.isfilterselected ? sectionproperties.activecat_color : ''
@@ -42539,7 +42527,7 @@ var Footer1 = function Footer1(props) {
42539
42527
  function ownKeys$1B(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
42540
42528
  function _objectSpread$1B(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1B(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1B(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
42541
42529
  var Footer2 = function Footer2(props) {
42542
- var _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$i, _authdetailsContext$i8, _authdetailsContext$i11, _authdetailsContext$i14, _authdetailsContext$i18, _authdetailsContext$i19;
42530
+ var _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$i2, _authdetailsContext$i9, _authdetailsContext$i12, _authdetailsContext$i15, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _returnpolicyobj5, _returnpolicyobj6, _authdetailsContext$i19, _authdetailsContext$i20;
42543
42531
  var _useState = useState(''),
42544
42532
  _useState2 = _slicedToArray(_useState, 2),
42545
42533
  sectionproperties = _useState2[0],
@@ -42700,6 +42688,16 @@ var Footer2 = function Footer2(props) {
42700
42688
  }
42701
42689
  })
42702
42690
  };
42691
+ var returnpolicyobj = function returnpolicyobj(policytype) {
42692
+ var _authdetailsContext$i;
42693
+ var policyobj = {};
42694
+ authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 || (_authdetailsContext$i = _authdetailsContext$i.instpolicies) === null || _authdetailsContext$i === void 0 || _authdetailsContext$i.forEach(function (item, index) {
42695
+ if (item.policytype == policytype) {
42696
+ policyobj = item;
42697
+ }
42698
+ });
42699
+ return policyobj;
42700
+ };
42703
42701
  return /*#__PURE__*/React.createElement("div", {
42704
42702
  "class": "row m-0 w-100 d-flex justify-content-center"
42705
42703
  }, /*#__PURE__*/React.createElement("footer", {
@@ -42729,15 +42727,15 @@ var Footer2 = function Footer2(props) {
42729
42727
  fontSize: sectionproperties.titlefontsize + 'px',
42730
42728
  marginLeft: sectionproperties.titlemarginleft + 'px'
42731
42729
  }
42732
- }, authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : _authdetailsContext$i.storename_en)), /*#__PURE__*/React.createElement("div", {
42730
+ }, authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i2 = authdetailsContext.instinfo) === null || _authdetailsContext$i2 === void 0 ? void 0 : _authdetailsContext$i2.storename_en)), /*#__PURE__*/React.createElement("div", {
42733
42731
  "class": " col-lg-12 d-flex flex-row align-items-center justify-content-center "
42734
42732
  }, sectionproperties.fbbtn_show == 'Show' && /*#__PURE__*/React.createElement("div", {
42735
42733
  "class": "".concat(footerStyles.facebook_btn) + ' d-flex align-items-center justify-content-center ml-3 mr-3 ',
42736
42734
  onClick: function onClick() {
42737
- var _authdetailsContext$i2;
42738
- if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i2 = authdetailsContext.instinfo) === null || _authdetailsContext$i2 === void 0 ? void 0 : _authdetailsContext$i2.facebooklink) != null) {
42739
- var _authdetailsContext$i3;
42740
- window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i3 = authdetailsContext.instinfo) === null || _authdetailsContext$i3 === void 0 ? void 0 : _authdetailsContext$i3.facebooklink, '_blank');
42735
+ var _authdetailsContext$i3;
42736
+ if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i3 = authdetailsContext.instinfo) === null || _authdetailsContext$i3 === void 0 ? void 0 : _authdetailsContext$i3.facebooklink) != null) {
42737
+ var _authdetailsContext$i4;
42738
+ window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i4 = authdetailsContext.instinfo) === null || _authdetailsContext$i4 === void 0 ? void 0 : _authdetailsContext$i4.facebooklink, '_blank');
42741
42739
  }
42742
42740
  }
42743
42741
  }, /*#__PURE__*/React.createElement(FaFacebookF, {
@@ -42745,10 +42743,10 @@ var Footer2 = function Footer2(props) {
42745
42743
  })), sectionproperties.instbtn_show == 'Show' && /*#__PURE__*/React.createElement("div", {
42746
42744
  "class": "".concat(footerStyles.instgram_btn) + ' d-flex align-items-center justify-content-center ml-3 mr-3 ',
42747
42745
  onClick: function onClick() {
42748
- var _authdetailsContext$i4;
42749
- if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i4 = authdetailsContext.instinfo) === null || _authdetailsContext$i4 === void 0 ? void 0 : _authdetailsContext$i4.instagramlink) != null) {
42750
- var _authdetailsContext$i5;
42751
- window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i5 = authdetailsContext.instinfo) === null || _authdetailsContext$i5 === void 0 ? void 0 : _authdetailsContext$i5.instagramlink, '_blank');
42746
+ var _authdetailsContext$i5;
42747
+ if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i5 = authdetailsContext.instinfo) === null || _authdetailsContext$i5 === void 0 ? void 0 : _authdetailsContext$i5.instagramlink) != null) {
42748
+ var _authdetailsContext$i6;
42749
+ window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i6 = authdetailsContext.instinfo) === null || _authdetailsContext$i6 === void 0 ? void 0 : _authdetailsContext$i6.instagramlink, '_blank');
42752
42750
  }
42753
42751
  }
42754
42752
  }, /*#__PURE__*/React.createElement(AiFillInstagram, {
@@ -42756,43 +42754,43 @@ var Footer2 = function Footer2(props) {
42756
42754
  })), sectionproperties.youtbtn_show == 'Show' && /*#__PURE__*/React.createElement("div", {
42757
42755
  "class": "".concat(footerStyles.youtube_btn) + ' d-flex align-items-center justify-content-center ml-3 mr-3 ',
42758
42756
  onClick: function onClick() {
42759
- var _authdetailsContext$i6;
42760
- if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i6 = authdetailsContext.instinfo) === null || _authdetailsContext$i6 === void 0 ? void 0 : _authdetailsContext$i6.whatsappnumber) != null) {
42761
- var _authdetailsContext$i7;
42762
- window.open('https://api.whatsapp.com/send?phone=' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i7 = authdetailsContext.instinfo) === null || _authdetailsContext$i7 === void 0 ? void 0 : _authdetailsContext$i7.whatsappnumber), '_blank');
42757
+ var _authdetailsContext$i7;
42758
+ if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i7 = authdetailsContext.instinfo) === null || _authdetailsContext$i7 === void 0 ? void 0 : _authdetailsContext$i7.whatsappnumber) != null) {
42759
+ var _authdetailsContext$i8;
42760
+ window.open('https://api.whatsapp.com/send?phone=' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i8 = authdetailsContext.instinfo) === null || _authdetailsContext$i8 === void 0 ? void 0 : _authdetailsContext$i8.whatsappnumber), '_blank');
42763
42761
  }
42764
42762
  }
42765
42763
  }, /*#__PURE__*/React.createElement(FaWhatsapp, {
42766
42764
  size: sectionproperties.youtubebtniconfontsize
42767
- })), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i8 = authdetailsContext.instinfo) === null || _authdetailsContext$i8 === void 0 ? void 0 : _authdetailsContext$i8.youtubelink) != null && /*#__PURE__*/React.createElement("div", {
42765
+ })), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i9 = authdetailsContext.instinfo) === null || _authdetailsContext$i9 === void 0 ? void 0 : _authdetailsContext$i9.youtubelink) != null && /*#__PURE__*/React.createElement("div", {
42768
42766
  "class": "".concat(footerStyles.youtube_btn) + ' d-flex align-items-center justify-content-center ml-3 mr-3 ',
42769
42767
  onClick: function onClick() {
42770
- var _authdetailsContext$i9;
42771
- if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i9 = authdetailsContext.instinfo) === null || _authdetailsContext$i9 === void 0 ? void 0 : _authdetailsContext$i9.youtubelink) != null) {
42772
- var _authdetailsContext$i10;
42773
- window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i10 = authdetailsContext.instinfo) === null || _authdetailsContext$i10 === void 0 ? void 0 : _authdetailsContext$i10.youtubelink, '_blank');
42768
+ var _authdetailsContext$i10;
42769
+ if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i10 = authdetailsContext.instinfo) === null || _authdetailsContext$i10 === void 0 ? void 0 : _authdetailsContext$i10.youtubelink) != null) {
42770
+ var _authdetailsContext$i11;
42771
+ window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i11 = authdetailsContext.instinfo) === null || _authdetailsContext$i11 === void 0 ? void 0 : _authdetailsContext$i11.youtubelink, '_blank');
42774
42772
  }
42775
42773
  }
42776
42774
  }, /*#__PURE__*/React.createElement(AiFillYoutube, {
42777
42775
  size: sectionproperties.instgrambtniconfontsize
42778
- })), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i11 = authdetailsContext.instinfo) === null || _authdetailsContext$i11 === void 0 ? void 0 : _authdetailsContext$i11.linkedinlink) != null && /*#__PURE__*/React.createElement("div", {
42776
+ })), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i12 = authdetailsContext.instinfo) === null || _authdetailsContext$i12 === void 0 ? void 0 : _authdetailsContext$i12.linkedinlink) != null && /*#__PURE__*/React.createElement("div", {
42779
42777
  "class": "".concat(footerStyles.youtube_btn) + ' d-flex align-items-center justify-content-center ml-3 mr-3 ',
42780
42778
  onClick: function onClick() {
42781
- var _authdetailsContext$i12;
42782
- if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i12 = authdetailsContext.instinfo) === null || _authdetailsContext$i12 === void 0 ? void 0 : _authdetailsContext$i12.linkedinlink) != null) {
42783
- var _authdetailsContext$i13;
42784
- window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i13 = authdetailsContext.instinfo) === null || _authdetailsContext$i13 === void 0 ? void 0 : _authdetailsContext$i13.linkedinlink, '_blank');
42779
+ var _authdetailsContext$i13;
42780
+ if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i13 = authdetailsContext.instinfo) === null || _authdetailsContext$i13 === void 0 ? void 0 : _authdetailsContext$i13.linkedinlink) != null) {
42781
+ var _authdetailsContext$i14;
42782
+ window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i14 = authdetailsContext.instinfo) === null || _authdetailsContext$i14 === void 0 ? void 0 : _authdetailsContext$i14.linkedinlink, '_blank');
42785
42783
  }
42786
42784
  }
42787
42785
  }, /*#__PURE__*/React.createElement(FaLinkedinIn, {
42788
42786
  size: sectionproperties.instgrambtniconfontsize
42789
- })), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i14 = authdetailsContext.instinfo) === null || _authdetailsContext$i14 === void 0 ? void 0 : _authdetailsContext$i14.tiktoklink) != null && /*#__PURE__*/React.createElement("div", {
42787
+ })), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i15 = authdetailsContext.instinfo) === null || _authdetailsContext$i15 === void 0 ? void 0 : _authdetailsContext$i15.tiktoklink) != null && /*#__PURE__*/React.createElement("div", {
42790
42788
  "class": "".concat(footerStyles.youtube_btn) + ' d-flex align-items-center justify-content-center ml-3 mr-3 ',
42791
42789
  onClick: function onClick() {
42792
- var _authdetailsContext$i15;
42793
- if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i15 = authdetailsContext.instinfo) === null || _authdetailsContext$i15 === void 0 ? void 0 : _authdetailsContext$i15.tiktoklink) != null) {
42794
- var _authdetailsContext$i16;
42795
- window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i16 = authdetailsContext.instinfo) === null || _authdetailsContext$i16 === void 0 ? void 0 : _authdetailsContext$i16.tiktoklink, '_blank');
42790
+ var _authdetailsContext$i16;
42791
+ if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i16 = authdetailsContext.instinfo) === null || _authdetailsContext$i16 === void 0 ? void 0 : _authdetailsContext$i16.tiktoklink) != null) {
42792
+ var _authdetailsContext$i17;
42793
+ window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i17 = authdetailsContext.instinfo) === null || _authdetailsContext$i17 === void 0 ? void 0 : _authdetailsContext$i17.tiktoklink, '_blank');
42796
42794
  }
42797
42795
  }
42798
42796
  }, /*#__PURE__*/React.createElement(IoLogoTiktok, {
@@ -42845,12 +42843,31 @@ var Footer2 = function Footer2(props) {
42845
42843
  }
42846
42844
  }, lang.orderhistory), /*#__PURE__*/React.createElement("div", {
42847
42845
  "class": "".concat(footerStyles.vl) + ' d-flex align-items-center justify-content-center mb-3'
42848
- }), /*#__PURE__*/React.createElement("p", {
42846
+ }), sectionproperties.separatepolicies == 'No' && /*#__PURE__*/React.createElement("p", {
42849
42847
  "class": "".concat(footerStyles.footersubtitlestyles) + ' mb-md-0 ',
42850
42848
  onClick: function onClick() {
42851
42849
  routingcountext(StaticPagesLinksContext.Policies);
42852
42850
  }
42853
- }, lang.policies)), sectionproperties.showhidesubpages == 'Show' && /*#__PURE__*/React.createElement("div", {
42851
+ }, lang.policies), sectionproperties.separatepolicies == 'Yes' && /*#__PURE__*/React.createElement("p", {
42852
+ "class": "".concat(footerStyles.footersubtitlestyles) + ' mb-md-0 ',
42853
+ onClick: function onClick() {
42854
+ routingcountext(StaticPagesLinksContext.PrivacyPolicy);
42855
+ }
42856
+ }, langdetect == 'en' ? (_returnpolicyobj = returnpolicyobj('Privacy Policy')) === null || _returnpolicyobj === void 0 ? void 0 : _returnpolicyobj.policypagename_en : (_returnpolicyobj2 = returnpolicyobj('Privacy Policy')) === null || _returnpolicyobj2 === void 0 ? void 0 : _returnpolicyobj2.policypagename_ar), sectionproperties.separatepolicies == 'Yes' && /*#__PURE__*/React.createElement("div", {
42857
+ "class": "".concat(footerStyles.vl) + ' d-flex align-items-center justify-content-center mb-3'
42858
+ }), sectionproperties.separatepolicies == 'Yes' && /*#__PURE__*/React.createElement("p", {
42859
+ "class": "".concat(footerStyles.footersubtitlestyles) + ' mb-md-0 ',
42860
+ onClick: function onClick() {
42861
+ routingcountext(StaticPagesLinksContext.ShippingPolicy);
42862
+ }
42863
+ }, langdetect == 'en' ? (_returnpolicyobj3 = returnpolicyobj('Shipping Policy')) === null || _returnpolicyobj3 === void 0 ? void 0 : _returnpolicyobj3.policypagename_en : (_returnpolicyobj4 = returnpolicyobj('Shipping Policy')) === null || _returnpolicyobj4 === void 0 ? void 0 : _returnpolicyobj4.policypagename_ar), sectionproperties.separatepolicies == 'Yes' && /*#__PURE__*/React.createElement("div", {
42864
+ "class": "".concat(footerStyles.vl) + ' d-flex align-items-center justify-content-center mb-3'
42865
+ }), sectionproperties.separatepolicies == 'Yes' && /*#__PURE__*/React.createElement("p", {
42866
+ "class": "".concat(footerStyles.footersubtitlestyles) + ' mb-md-0 ',
42867
+ onClick: function onClick() {
42868
+ routingcountext(StaticPagesLinksContext.RefundPolicy);
42869
+ }
42870
+ }, langdetect == 'en' ? (_returnpolicyobj5 = returnpolicyobj('Refund Policy')) === null || _returnpolicyobj5 === void 0 ? void 0 : _returnpolicyobj5.policypagename_en : (_returnpolicyobj6 = returnpolicyobj('Refund Policy')) === null || _returnpolicyobj6 === void 0 ? void 0 : _returnpolicyobj6.policypagename_ar)), sectionproperties.showhidesubpages == 'Show' && /*#__PURE__*/React.createElement("div", {
42854
42871
  "class": "d-none d-md-block align-items-center justify-content-center mt-3 p-0 row m-0 w-100"
42855
42872
  }, /*#__PURE__*/React.createElement("div", {
42856
42873
  "class": "row m-0 w-100"
@@ -42884,12 +42901,12 @@ var Footer2 = function Footer2(props) {
42884
42901
  }, /*#__PURE__*/React.createElement("p", {
42885
42902
  "class": ' storeinfotext d-flex align-items-center justify-content-md-center cursor-pointer text-transform-none ',
42886
42903
  onClick: function onClick() {
42887
- var _authdetailsContext$i17;
42888
- window.open('mailto:' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i17 = authdetailsContext.instinfo) === null || _authdetailsContext$i17 === void 0 || (_authdetailsContext$i17 = _authdetailsContext$i17.contactinfo) === null || _authdetailsContext$i17 === void 0 ? void 0 : _authdetailsContext$i17.email), '_self');
42904
+ var _authdetailsContext$i18;
42905
+ window.open('mailto:' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i18 = authdetailsContext.instinfo) === null || _authdetailsContext$i18 === void 0 || (_authdetailsContext$i18 = _authdetailsContext$i18.contactinfo) === null || _authdetailsContext$i18 === void 0 ? void 0 : _authdetailsContext$i18.email), '_self');
42889
42906
  }
42890
42907
  }, /*#__PURE__*/React.createElement("i", {
42891
42908
  "class": ' fa fa-at mr-2 ml-2 '
42892
- }), authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i18 = authdetailsContext.instinfo) === null || _authdetailsContext$i18 === void 0 || (_authdetailsContext$i18 = _authdetailsContext$i18.contactinfo) === null || _authdetailsContext$i18 === void 0 ? void 0 : _authdetailsContext$i18.email)), /*#__PURE__*/React.createElement("div", {
42909
+ }), authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i19 = authdetailsContext.instinfo) === null || _authdetailsContext$i19 === void 0 || (_authdetailsContext$i19 = _authdetailsContext$i19.contactinfo) === null || _authdetailsContext$i19 === void 0 ? void 0 : _authdetailsContext$i19.email)), /*#__PURE__*/React.createElement("div", {
42893
42910
  "class": "".concat(footerStyles.footerinfotext) + ' col-lg-4 col-md-4 col-sm-12 d-flex justify-content-center justify-content-md-center align-items-start p-0 '
42894
42911
  }, /*#__PURE__*/React.createElement("p", {
42895
42912
  "class": ' storeinfotext d-flex align-items-center justify-content-md-center cursor-pointer ',
@@ -42906,21 +42923,21 @@ var Footer2 = function Footer2(props) {
42906
42923
  "class": ' h-100 d-flex align-items-center justify-content-center mr-2 ml-2 '
42907
42924
  }, /*#__PURE__*/React.createElement(IoLocationSharp, {
42908
42925
  size: sectionproperties.footerinfoicon_fontsize
42909
- })), authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i19 = authdetailsContext.instinfo) === null || _authdetailsContext$i19 === void 0 ? void 0 : _authdetailsContext$i19.address_en)))), sectionproperties.showdownloadsection == 'Show' && /*#__PURE__*/React.createElement("div", {
42926
+ })), authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i20 = authdetailsContext.instinfo) === null || _authdetailsContext$i20 === void 0 ? void 0 : _authdetailsContext$i20.address_en)))), sectionproperties.showdownloadsection == 'Show' && /*#__PURE__*/React.createElement("div", {
42910
42927
  "class": "col-lg-12 d-flex align-items-center justify-content-center p-sm-0"
42911
42928
  }, /*#__PURE__*/React.createElement("img", {
42912
42929
  "class": "".concat(footerStyles.apptore) + ' d-flex justify-content-center align-items-center cursor-pointer mx-2 ',
42913
42930
  src: 'https://tabex-co.com/storage/StaticImages/appstore.png',
42914
42931
  onClick: function onClick() {
42915
- var _authdetailsContext$i20;
42916
- window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i20 = authdetailsContext.instinfo) === null || _authdetailsContext$i20 === void 0 ? void 0 : _authdetailsContext$i20.mobileapplink_appstore, '_blank');
42932
+ var _authdetailsContext$i21;
42933
+ window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i21 = authdetailsContext.instinfo) === null || _authdetailsContext$i21 === void 0 ? void 0 : _authdetailsContext$i21.mobileapplink_appstore, '_blank');
42917
42934
  }
42918
42935
  }), /*#__PURE__*/React.createElement("img", {
42919
42936
  "class": "".concat(footerStyles.googleplay) + ' d-flex justify-content-center align-items-center cursor-pointer mx-2 ',
42920
42937
  src: 'https://tabex-co.com/storage/StaticImages/googleplay.png',
42921
42938
  onClick: function onClick() {
42922
- var _authdetailsContext$i21;
42923
- window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i21 = authdetailsContext.instinfo) === null || _authdetailsContext$i21 === void 0 ? void 0 : _authdetailsContext$i21.mobileapplink_playstore, '_blank');
42939
+ var _authdetailsContext$i22;
42940
+ window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i22 = authdetailsContext.instinfo) === null || _authdetailsContext$i22 === void 0 ? void 0 : _authdetailsContext$i22.mobileapplink_playstore, '_blank');
42924
42941
  }
42925
42942
  })))));
42926
42943
  };
@@ -69241,7 +69258,7 @@ var Horizontalcard = function Horizontalcard(props) {
69241
69258
  setitem(props.cardinfoitemprops);
69242
69259
  }, [props.cardinfoitemprops]);
69243
69260
  var card_cssstyles = {
69244
- productcard: css({
69261
+ productcard: css(_defineProperty({
69245
69262
  marginTop: sectionproperties.marginTop + 'px',
69246
69263
  marginBottom: sectionproperties.marginBottom + 'px',
69247
69264
  background: sectionproperties.backgroundColortransparent == 'Transparent' ? 'transparent' : sectionproperties.backgroundColor,
@@ -69250,9 +69267,8 @@ var Horizontalcard = function Horizontalcard(props) {
69250
69267
  borderTopLeftRadius: langdetect == 'en' ? sectionproperties.borderTopLeftRadius + 'px' : sectionproperties.borderTopRightRadius + 'px',
69251
69268
  borderTopRightRadius: langdetect == 'en' ? sectionproperties.borderTopRightRadius + 'px' : sectionproperties.borderTopLeftRadius + 'px',
69252
69269
  border: sectionproperties.bordertype == 'All' ? sectionproperties.sectioncardborderwidth + 'px solid ' + sectionproperties.sectioncardbordercolor : '',
69253
- borderBottom: sectionproperties.sectioncardborderwidth + 'px solid ' + sectionproperties.sectioncardbordercolor,
69254
- boxShadow: '0 0 10px ' + sectionproperties.sectioncardshadowcolor
69255
- }),
69270
+ borderBottom: sectionproperties.bordertype == 'Bottom' ? sectionproperties.sectioncardborderwidth + 'px solid ' + sectionproperties.sectioncardbordercolor : ''
69271
+ }, "border", sectionproperties.bordertype == 'All' ? sectionproperties.sectioncardborderwidth + 'px solid ' + sectionproperties.sectioncardbordercolor : '')),
69256
69272
  productNameStyles: css({
69257
69273
  color: sectionproperties.prodNameColor,
69258
69274
  fontSize: sectionproperties.prodNameFontSize + 'px',
@@ -69420,7 +69436,7 @@ var Horizontalcard = function Horizontalcard(props) {
69420
69436
  position: 'relative'
69421
69437
  }
69422
69438
  }, /*#__PURE__*/React.createElement("div", {
69423
- "class": 'col-lg-9 col-md-9 col-sm-9 p-0 mb-2',
69439
+ "class": 'col-lg-9 col-md-9 col-sm-9 p-0 mb-2 d-flex align-items-center',
69424
69440
  style: {
69425
69441
  minHeight: '6vh'
69426
69442
  }
@@ -69469,7 +69485,7 @@ var Horizontalcard = function Horizontalcard(props) {
69469
69485
  style: {
69470
69486
  textAlign: langdetect == 'en' ? 'left' : 'right'
69471
69487
  }
69472
- }, plainString(langdetect == 'en' ? item.description_en : item.description_ar))), sectionproperties.cartBtnShow == 'Show' && props.numberOfColsvertical == '1' && /*#__PURE__*/React.createElement("div", {
69488
+ }, plainString(langdetect == 'en' ? item.description : item.description))), sectionproperties.cartBtnShow == 'Show' && props.numberOfColsvertical == '1' && /*#__PURE__*/React.createElement("div", {
69473
69489
  "class": "col-lg-3 col-md-12 col-sm-12 p-0 d-flex align-items-center justify-content-end justify-content-md-start"
69474
69490
  }, /*#__PURE__*/React.createElement("button", {
69475
69491
  "class": card_cssstyles.cart_btn,
@@ -69479,14 +69495,42 @@ var Horizontalcard = function Horizontalcard(props) {
69479
69495
  }
69480
69496
  }, langdetect == 'en' ? sectionproperties.cartBtnContentenglish : sectionproperties.cartBtnContentarabic)), item.isproducttobesold == 1 && /*#__PURE__*/React.createElement("div", {
69481
69497
  "class": "col-lg-12 p-0 d-flex align-items-center"
69482
- }, sectionproperties.prodPriceShow == 'Show' && /*#__PURE__*/React.createElement("p", {
69498
+ }, /*#__PURE__*/React.createElement("div", {
69499
+ "class": "row m-0 w-100"
69500
+ }, sectionproperties.prodPriceShow == 'Show' && /*#__PURE__*/React.createElement("div", {
69501
+ "class": "col-lg-12 p-0 text-start"
69502
+ }, /*#__PURE__*/React.createElement("p", {
69483
69503
  "class": card_cssstyles.productPricestyles + ' m-0 p-0 '
69484
- }, langdetect == 'en' ? item.currencyname : '', " ", item.hassale == 1 ? item.defaultsaleprice : item.defaultprice, ' ', langdetect == 'en' ? '' : item.currencyname), item.hassale == 1 && sectionproperties.prodsalePriceshow == 'Show' && /*#__PURE__*/React.createElement("p", {
69504
+ }, langdetect == 'en' ? item.currencyname : '', " ", item.hassale == 1 ? item.defaultsaleprice : item.defaultprice, ' ', langdetect == 'en' ? '' : item.currencyname)), /*#__PURE__*/React.createElement("div", {
69505
+ "class": "col-lg-12 p-0 text-start"
69506
+ }, item.hassale == 1 && sectionproperties.prodsalePriceshow == 'Show' && /*#__PURE__*/React.createElement("p", {
69485
69507
  "class": card_cssstyles.productSalePricestyles + ' m-0 p-0 ml-2 mr-2 ',
69486
69508
  style: {
69487
69509
  textDecoration: 'line-through'
69488
69510
  }
69489
- }, langdetect == 'en' ? item.currencyname : '', " ", item.defaultprice, " ", langdetect == 'en' ? '' : item.currencyname)), sectionproperties.cartBtnShow == 'Show' && props.numberOfColsvertical != '1' && /*#__PURE__*/React.createElement("div", {
69511
+ }, langdetect == 'en' ? item.currencyname : '', " ", item.defaultprice, " ", langdetect == 'en' ? '' : item.currencyname), sectionproperties.showpill == 'Show' && item.hassale == 1 && /*#__PURE__*/React.createElement("div", {
69512
+ "class": 'allcentered',
69513
+ style: {
69514
+ width: sectionproperties.pillwidth + 'px',
69515
+ height: sectionproperties.pillheight + 'px',
69516
+ background: sectionproperties.pillbgcolor,
69517
+ borderRadius: sectionproperties.pillborderBottomLeftRadius + 'px'
69518
+ }
69519
+ }, sectionproperties.countertype == 'Percentage' && /*#__PURE__*/React.createElement("p", {
69520
+ "class": "m-0 p-0",
69521
+ style: {
69522
+ color: sectionproperties.pillcolor,
69523
+ fontSize: sectionproperties.pillfontSize + 'px',
69524
+ direction: 'ltr'
69525
+ }
69526
+ }, '-' + parseFloat(Math.round(10.0 * ((parseInt(item.defaultprice) - parseInt(item.defaultsaleprice)) / parseInt(item.defaultprice)) * 100) / 10.0).toFixed(0) + '%'), sectionproperties.countertype == 'Value' && /*#__PURE__*/React.createElement("p", {
69527
+ "class": "m-0 p-0 text-uppercase",
69528
+ style: {
69529
+ color: sectionproperties.pillcolor,
69530
+ fontSize: sectionproperties.pillfontSize + 'px',
69531
+ direction: 'ltr'
69532
+ }
69533
+ }, langdetect == 'en' ? 'Save' : 'وفر', " ", langdetect == 'en' ? item.currencyname : '', ' ', parseFloat(Math.round(parseInt(item.defaultprice) - parseInt(item.defaultsaleprice))).toFixed(0), ' ', langdetect == 'en' ? '' : item.currencyname))))), sectionproperties.cartBtnShow == 'Show' && props.numberOfColsvertical != '1' && /*#__PURE__*/React.createElement("div", {
69490
69534
  "class": "col-lg-12 p-0 d-flex align-items-center mt-2"
69491
69535
  }, /*#__PURE__*/React.createElement("button", {
69492
69536
  "class": card_cssstyles.cart_btn,
@@ -74185,9 +74229,9 @@ var Simpleproductcard = function Simpleproductcard(props) {
74185
74229
  var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
74186
74230
  props.actions.lang;
74187
74231
  var langdetect = props.actions.langdetect;
74188
- props.actions.setShowProductInfoModalContext;
74232
+ var setShowProductInfoModalContext = props.actions.setShowProductInfoModalContext;
74189
74233
  var addtofavoritescontext = props.actions.addtofavoritescontext;
74190
- props.actions.setProductIdProdutInfoModalContext;
74234
+ var setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
74191
74235
  var cardonclickfunctionContext = props.actions.cardonclickfunctionContext;
74192
74236
  var ikimagecredcontext = props.actions.ikimagecredcontext;
74193
74237
  props.actions.NotificationManager;
@@ -74217,6 +74261,12 @@ var Simpleproductcard = function Simpleproductcard(props) {
74217
74261
  '@media (max-width: 800px)': {
74218
74262
  minWidth: props.sectiontypeprops2 == 'vertical' ? '100%' : sectionproperties.widthresponsive + 'px',
74219
74263
  maxWidth: props.sectiontypeprops2 == 'vertical' ? '100%' : sectionproperties.widthresponsive + 'px'
74264
+ },
74265
+ ':hover .iconsContainer': {
74266
+ opacity: 1,
74267
+ transition: 'all, 0.4s',
74268
+ right: 10,
74269
+ transform: "translateX(0px)"
74220
74270
  }
74221
74271
  }),
74222
74272
  productcardimagecont: css({
@@ -74341,6 +74391,26 @@ var Simpleproductcard = function Simpleproductcard(props) {
74341
74391
  backgroundColor: sectionproperties.backgroundColortransparent != 'Transparent' && sectionproperties.backgroundColor == '#ffffff' ? 'rgba(250,250,250,' + sectionproperties.bgopacityonhover + ')' : 1,
74342
74392
  transition: 0.3
74343
74393
  }
74394
+ }),
74395
+ iconsContainer: css({
74396
+ display: 'flex',
74397
+ flexDirection: 'column',
74398
+ position: 'absolute',
74399
+ top: 5,
74400
+ right: -15,
74401
+ opacity: 0,
74402
+ transform: "translateX(5px)",
74403
+ zIndex: 10,
74404
+ '@media (max-width: 800px)': {
74405
+ opacity: 1,
74406
+ right: 10
74407
+ }
74408
+ }),
74409
+ iconsContainer2: css({
74410
+ opacity: 1,
74411
+ transition: 'all, 0.4s',
74412
+ right: 10,
74413
+ transform: "translateX(0px)"
74344
74414
  })
74345
74415
  };
74346
74416
  var _useState5 = useState(''),
@@ -74439,6 +74509,32 @@ var Simpleproductcard = function Simpleproductcard(props) {
74439
74509
  cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, productidtobesend, props.fetchingtypeprops, item.collectionid);
74440
74510
  }
74441
74511
  };
74512
+ var PillContainer = function PillContainer() {
74513
+ return /*#__PURE__*/React.createElement("div", {
74514
+ "class": sectionproperties.pillwidth == 0 ? ' px-2 allcentered' : 'allcentered',
74515
+ style: {
74516
+ zIndex: 2,
74517
+ width: sectionproperties.pillwidth == 0 ? 'auto' : sectionproperties.pillwidth + 'px',
74518
+ height: sectionproperties.pillheight + 'px',
74519
+ background: sectionproperties.pillbgcolor,
74520
+ borderRadius: sectionproperties.pillborderBottomLeftRadius + 'px'
74521
+ }
74522
+ }, sectionproperties.countertype == 'Percentage' && /*#__PURE__*/React.createElement("p", {
74523
+ "class": "m-0 p-0",
74524
+ style: {
74525
+ color: sectionproperties.pillcolor,
74526
+ fontSize: sectionproperties.pillfontSize + 'px',
74527
+ direction: 'ltr'
74528
+ }
74529
+ }, '-' + parseFloat(Math.round(10.0 * ((parseInt(item.defaultprice) - parseInt(item.defaultsaleprice)) / parseInt(item.defaultprice)) * 100) / 10.0).toFixed(0) + '%'), sectionproperties.countertype == 'Value' && /*#__PURE__*/React.createElement("p", {
74530
+ "class": "m-0 p-0 text-uppercase",
74531
+ style: {
74532
+ color: sectionproperties.pillcolor,
74533
+ fontSize: sectionproperties.pillfontSize + 'px',
74534
+ direction: 'ltr'
74535
+ }
74536
+ }, langdetect == 'en' ? 'Save' : 'وفر', " ", langdetect == 'en' ? item.currencyname : '', ' ', parseFloat(Math.round(parseInt(item.defaultprice) - parseInt(item.defaultsaleprice))).toFixed(0), " ", langdetect == 'en' ? '' : item.currencyname));
74537
+ };
74442
74538
  return /*#__PURE__*/React.createElement("div", {
74443
74539
  "class": props.sectiontypeprops2 == 'vertical' ? "".concat(card_cssstyles.productcard) + ' w-100 px-md-1 ' : " ".concat(card_cssstyles.productcard),
74444
74540
  style: {
@@ -74460,7 +74556,43 @@ var Simpleproductcard = function Simpleproductcard(props) {
74460
74556
  style: {
74461
74557
  position: 'relative'
74462
74558
  }
74559
+ }, sectionproperties.btnswithtransition == 'With Transition' && /*#__PURE__*/React.createElement("div", {
74560
+ "class": "".concat(card_cssstyles.iconsContainer) + ' iconsContainer p-0 d-flex '
74463
74561
  }, sectionproperties.favBtnShow == 'Show' && /*#__PURE__*/React.createElement("button", {
74562
+ "class": " ".concat(card_cssstyles.wishlist_btn) + ' mt-2 mb-2 ',
74563
+ onClick: function onClick() {
74564
+ addtofavoritescontext(item.productid);
74565
+ }
74566
+ }, item.IsFavExists && /*#__PURE__*/React.createElement("i", {
74567
+ "class": "h-100 d-flex align-items-center justify-content-center icon"
74568
+ }, sectionproperties.faviconshape == 'Star Shape' && /*#__PURE__*/React.createElement(AiFillStar$1, {
74569
+ size: sectionproperties.favBtnIconfontsize,
74570
+ style: {
74571
+ color: sectionproperties.activefaviconcolor
74572
+ }
74573
+ }), sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React.createElement(FaHeart$1, {
74574
+ size: sectionproperties.favBtnIconfontsize,
74575
+ style: {
74576
+ color: sectionproperties.activefaviconcolor
74577
+ }
74578
+ })), !item.IsFavExists && /*#__PURE__*/React.createElement("i", {
74579
+ "class": "h-100 d-flex align-items-center justify-content-center icon"
74580
+ }, sectionproperties.faviconshape == 'Star Shape' && /*#__PURE__*/React.createElement(AiOutlineStar, {
74581
+ size: sectionproperties.favBtnIconfontsize
74582
+ }), sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React.createElement(FaRegHeart, {
74583
+ size: sectionproperties.favBtnIconfontsize
74584
+ }))), sectionproperties.showproductinfomodalbtn == 'Show' && /*#__PURE__*/React.createElement("button", {
74585
+ "class": "".concat(card_cssstyles.wishlist_btn) + ' ',
74586
+ onClick: function onClick(e) {
74587
+ e.stopPropagation();
74588
+ setShowProductInfoModalContext(true);
74589
+ setProductIdProdutInfoModalContext(item.productid);
74590
+ }
74591
+ }, /*#__PURE__*/React.createElement("i", {
74592
+ "class": "h-100 d-flex align-items-center justify-content-center icon"
74593
+ }, /*#__PURE__*/React.createElement(BsEye, {
74594
+ size: sectionproperties.generalbtn_fontsize
74595
+ })))), sectionproperties.favBtnShow == 'Show' && sectionproperties.btnswithtransition != 'With Transition' && /*#__PURE__*/React.createElement("button", {
74464
74596
  "class": " ".concat(card_cssstyles.wishlist_btn) + ' m-0 p-0 d-flex align-items-center justify-content-center ',
74465
74597
  onClick: function onClick(e) {
74466
74598
  e.stopPropagation();
@@ -74501,7 +74633,7 @@ var Simpleproductcard = function Simpleproductcard(props) {
74501
74633
  top: sectionproperties.badge_top + 'px',
74502
74634
  left: langdetect == 'en' ? sectionproperties.badge_right + 'px' : '',
74503
74635
  right: langdetect == 'en' ? '' : sectionproperties.badge_right + 'px',
74504
- width: sectionproperties.badge_width + 'px',
74636
+ width: sectionproperties.badge_width == 0 ? '90%' : sectionproperties.badge_width + 'px',
74505
74637
  height: sectionproperties.badge_height + 'px',
74506
74638
  background: sectionproperties.badge_bgcolor,
74507
74639
  borderRadius: sectionproperties.badge_borderradius + 'px'
@@ -74512,34 +74644,14 @@ var Simpleproductcard = function Simpleproductcard(props) {
74512
74644
  color: sectionproperties.badge_color,
74513
74645
  fontSize: sectionproperties.badge_fontsize + 'px'
74514
74646
  }
74515
- }, langdetect == 'en' ? sectionproperties.badgeContentEn : sectionproperties.badgeContentAr)), sectionproperties.showpill == 'Show' && item.hassale == 1 && /*#__PURE__*/React.createElement("div", {
74516
- "class": sectionproperties.pillwidth == 0 ? ' px-2 allcentered' : 'allcentered',
74647
+ }, langdetect == 'en' ? sectionproperties.badgeContentEn : sectionproperties.badgeContentAr)), sectionproperties.showpill == 'Show' && item.hassale == 1 && sectionproperties.counterposition == 'Top' && /*#__PURE__*/React.createElement("div", {
74517
74648
  style: {
74518
- zIndex: 2,
74519
74649
  position: 'absolute',
74520
74650
  top: sectionproperties.pillpositionfromtop + 'px',
74521
74651
  left: langdetect == 'en' ? sectionproperties.pillpositionfromright + 'px' : '',
74522
- right: langdetect == 'en' ? '' : sectionproperties.pillpositionfromright + 'px',
74523
- width: sectionproperties.pillwidth == 0 ? 'auto' : sectionproperties.pillwidth + 'px',
74524
- height: sectionproperties.pillheight + 'px',
74525
- background: sectionproperties.pillbgcolor,
74526
- borderRadius: sectionproperties.pillborderBottomLeftRadius + 'px'
74527
- }
74528
- }, sectionproperties.countertype == 'Percentage' && /*#__PURE__*/React.createElement("p", {
74529
- "class": "m-0 p-0",
74530
- style: {
74531
- color: sectionproperties.pillcolor,
74532
- fontSize: sectionproperties.pillfontSize + 'px',
74533
- direction: 'ltr'
74652
+ right: langdetect == 'en' ? '' : sectionproperties.pillpositionfromright + 'px'
74534
74653
  }
74535
- }, '-' + parseFloat(Math.round(10.0 * ((parseInt(item.defaultprice) - parseInt(item.defaultsaleprice)) / parseInt(item.defaultprice)) * 100) / 10.0).toFixed(0) + '%'), sectionproperties.countertype == 'Value' && /*#__PURE__*/React.createElement("p", {
74536
- "class": "m-0 p-0 text-uppercase",
74537
- style: {
74538
- color: sectionproperties.pillcolor,
74539
- fontSize: sectionproperties.pillfontSize + 'px',
74540
- direction: 'ltr'
74541
- }
74542
- }, langdetect == 'en' ? 'Save' : 'وفر', " ", langdetect == 'en' ? item.currencyname : '', ' ', parseFloat(Math.round(parseInt(item.defaultprice) - parseInt(item.defaultsaleprice))).toFixed(0), " ", langdetect == 'en' ? '' : item.currencyname)), (item === null || item === void 0 ? void 0 : item.producttags) != undefined && (item === null || item === void 0 || (_item$producttags = item.producttags) === null || _item$producttags === void 0 ? void 0 : _item$producttags.length) != 0 && sectionproperties.showtag == 'Show' && /*#__PURE__*/React.createElement("div", {
74654
+ }, PillContainer()), (item === null || item === void 0 ? void 0 : item.producttags) != undefined && (item === null || item === void 0 || (_item$producttags = item.producttags) === null || _item$producttags === void 0 ? void 0 : _item$producttags.length) != 0 && sectionproperties.showtag == 'Show' && /*#__PURE__*/React.createElement("div", {
74543
74655
  "class": "allcentered",
74544
74656
  style: {
74545
74657
  position: 'absolute',
@@ -74661,17 +74773,19 @@ var Simpleproductcard = function Simpleproductcard(props) {
74661
74773
  marginBottom: sectionproperties.productpricemarginBottom + 'px'
74662
74774
  }
74663
74775
  }, /*#__PURE__*/React.createElement("div", {
74664
- "class": ' d-flex align-items-center p-0 mb-0 flex-column ',
74776
+ "class": sectionproperties.priceDirection == 'Horizontal Direction' ? ' d-flex align-items-center p-0 mb-0 flex-row ' : ' d-flex align-items-center p-0 mb-0 flex-column ',
74665
74777
  style: {
74666
74778
  textAlign: sectionproperties.productnamecentered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right'
74667
74779
  }
74668
74780
  }, sectionproperties.prodPriceShow == 'Show' && /*#__PURE__*/React.createElement("p", {
74669
- "class": "".concat(card_cssstyles.productPricestyles) + ' m-0 '
74781
+ "class": sectionproperties.priceDirection == 'Horizontal Direction' ? "".concat(card_cssstyles.productPricestyles) + ' m-0 ' : "".concat(card_cssstyles.productPricestyles) + ' m-0 '
74670
74782
  }, langdetect == 'en' ? item.currencyname : '', " ", item.hassale == 1 ? item.defaultsaleprice : item.defaultprice, ' ', langdetect == 'en' ? '' : item.currencyname), sectionproperties.prodsalePriceshow == 'Show' && item.hassale == 1 && /*#__PURE__*/React.createElement("div", {
74671
- "class": " d-flex align-items-center p-0 mb-0"
74783
+ "class": sectionproperties.priceDirection == 'Horizontal' ? ' d-flex align-items-center p-0 mb-0 ' : ' d-flex align-items-center p-0 mb-0'
74672
74784
  }, /*#__PURE__*/React.createElement("p", {
74673
74785
  "class": "".concat(card_cssstyles.productSalePricestyles) + ' linethrough m-0 mr-2 ml-2 '
74674
- }, langdetect == 'en' ? item.currencyname : '', " ", item.defaultprice, " ", langdetect == 'en' ? '' : item.currencyname)))), sectionproperties.showprofitcontainer == 'Show' && /*#__PURE__*/React.createElement("div", {
74786
+ }, langdetect == 'en' ? item.currencyname : '', " ", item.defaultprice, " ", langdetect == 'en' ? '' : item.currencyname)), sectionproperties.showpill == 'Show' && item.hassale == 1 && sectionproperties.counterposition == 'Besides Sale Price' && /*#__PURE__*/React.createElement("div", {
74787
+ style: {}
74788
+ }, PillContainer()))), sectionproperties.showprofitcontainer == 'Show' && /*#__PURE__*/React.createElement("div", {
74675
74789
  "class": "col-lg-12 p-0",
74676
74790
  style: {
74677
74791
  justifyContent: sectionproperties.productnamecentered == 'Centered' ? 'center' : 'start'