tabexseriescomponents 0.0.314 → 0.0.316

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -11594,27 +11594,31 @@ var Filter$1 = function Filter(props) {
11594
11594
  _useState4 = _slicedToArray__default["default"](_useState3, 2),
11595
11595
  instfilters = _useState4[0],
11596
11596
  setinstfilters = _useState4[1];
11597
- var _useState5 = React.useState(_toConsumableArray__default["default"](authdetailsContext.instinfo.instcollections)),
11597
+ var _useState5 = React.useState([]),
11598
11598
  _useState6 = _slicedToArray__default["default"](_useState5, 2),
11599
- instcollections = _useState6[0],
11600
- setinstcollections = _useState6[1];
11601
- var _useState7 = React.useState(_toConsumableArray__default["default"](authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : _authdetailsContext$i.instcategories)),
11599
+ collectionstobevisible = _useState6[0],
11600
+ setcollectionstobevisible = _useState6[1];
11601
+ var _useState7 = React.useState(_toConsumableArray__default["default"](authdetailsContext.instinfo.instcollections)),
11602
11602
  _useState8 = _slicedToArray__default["default"](_useState7, 2),
11603
- instcategories = _useState8[0],
11604
- setinstcategories = _useState8[1];
11605
- var _useState9 = React.useState('Sort by'),
11606
- _useState10 = _slicedToArray__default["default"](_useState9, 2);
11607
- _useState10[0];
11608
- _useState10[1];
11609
- var _useState11 = React.useState({
11603
+ instcollections = _useState8[0],
11604
+ setinstcollections = _useState8[1];
11605
+ var _useState9 = React.useState(_toConsumableArray__default["default"](authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : _authdetailsContext$i.instcategories)),
11606
+ _useState10 = _slicedToArray__default["default"](_useState9, 2),
11607
+ instcategories = _useState10[0],
11608
+ setinstcategories = _useState10[1];
11609
+ var _useState11 = React.useState('Sort by'),
11610
+ _useState12 = _slicedToArray__default["default"](_useState11, 2);
11611
+ _useState12[0];
11612
+ _useState12[1];
11613
+ var _useState13 = React.useState({
11610
11614
  min: 0,
11611
11615
  max: 5
11612
11616
  }),
11613
- _useState12 = _slicedToArray__default["default"](_useState11, 2),
11614
- raterangevalue = _useState12[0],
11615
- setraterangevalue = _useState12[1];
11617
+ _useState14 = _slicedToArray__default["default"](_useState13, 2),
11618
+ raterangevalue = _useState14[0],
11619
+ setraterangevalue = _useState14[1];
11616
11620
  var timeoutRef = React__default["default"].useRef(null);
11617
- var _useState13 = React.useState([{
11621
+ var _useState15 = React.useState([{
11618
11622
  payloadvalue: 'sortprice',
11619
11623
  name: lang.price,
11620
11624
  filterarray: [{
@@ -11639,9 +11643,9 @@ var Filter$1 = function Filter(props) {
11639
11643
  isfilterselected: false
11640
11644
  }]
11641
11645
  }]),
11642
- _useState14 = _slicedToArray__default["default"](_useState13, 2),
11643
- otherfilters = _useState14[0];
11644
- _useState14[1];
11646
+ _useState16 = _slicedToArray__default["default"](_useState15, 2),
11647
+ otherfilters = _useState16[0];
11648
+ _useState16[1];
11645
11649
  React.useEffect(function () {
11646
11650
  filterupdater();
11647
11651
  }, []);
@@ -11674,6 +11678,83 @@ var Filter$1 = function Filter(props) {
11674
11678
  }
11675
11679
  }, 500);
11676
11680
  }, [raterangevalue]);
11681
+ React.useEffect(function () {
11682
+ if ((sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.filterretreivetype) == 'Depend on chosen parent group') {
11683
+ 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)) {
11684
+ var _parentidsfound;
11685
+ var collectiontobevisible = [];
11686
+ var parentidsfound = [];
11687
+ if (ProductFilterObjContext.ProductFetchingType == 'Parent Collection') {
11688
+ parentidsfound = ProductFilterObjContext === null || ProductFilterObjContext === void 0 ? void 0 : ProductFilterObjContext.collections;
11689
+ } else if (ProductFilterObjContext.ProductFetchingType == 'Category') {
11690
+ instcategories === null || instcategories === void 0 ? void 0 : instcategories.forEach(function (catitem, catindex) {
11691
+ var _ProductFilterObjCont;
11692
+ ProductFilterObjContext === null || ProductFilterObjContext === void 0 ? void 0 : (_ProductFilterObjCont = ProductFilterObjContext.collections) === null || _ProductFilterObjCont === void 0 ? void 0 : _ProductFilterObjCont.forEach(function (colitem2, colindex2) {
11693
+ if (catitem.categoryid == colitem2) {
11694
+ var _catitem$parentcollet;
11695
+ catitem === null || catitem === void 0 ? void 0 : (_catitem$parentcollet = catitem.parentcolletions) === null || _catitem$parentcollet === void 0 ? void 0 : _catitem$parentcollet.forEach(function (parentcolitem, parentcolindex) {
11696
+ parentidsfound.push(parentcolitem.parentcollectionid);
11697
+ });
11698
+ }
11699
+ });
11700
+ });
11701
+ } else {
11702
+ instcategories === null || instcategories === void 0 ? void 0 : instcategories.forEach(function (catitem, catindex) {
11703
+ var _catitem$parentcollet2;
11704
+ catitem === null || catitem === void 0 ? void 0 : (_catitem$parentcollet2 = catitem.parentcolletions) === null || _catitem$parentcollet2 === void 0 ? void 0 : _catitem$parentcollet2.forEach(function (parentcolitem, parentcolindex) {
11705
+ var _parentcolitem$collec;
11706
+ parentcolitem === null || parentcolitem === void 0 ? void 0 : (_parentcolitem$collec = parentcolitem.collections) === null || _parentcolitem$collec === void 0 ? void 0 : _parentcolitem$collec.forEach(function (colitem, colindex) {
11707
+ var _ProductFilterObjCont2;
11708
+ ProductFilterObjContext === null || ProductFilterObjContext === void 0 ? void 0 : (_ProductFilterObjCont2 = ProductFilterObjContext.collections) === null || _ProductFilterObjCont2 === void 0 ? void 0 : _ProductFilterObjCont2.forEach(function (colitem2, colindex2) {
11709
+ if (colitem.collectionid == colitem2) {
11710
+ parentidsfound.push(parentcolitem.parentcollectionid);
11711
+ }
11712
+ });
11713
+ });
11714
+ });
11715
+ });
11716
+ }
11717
+ parentidsfound = parentidsfound.filter(function (val, id, array) {
11718
+ return array.indexOf(val) == id;
11719
+ });
11720
+ if (((_parentidsfound = parentidsfound) === null || _parentidsfound === void 0 ? void 0 : _parentidsfound.length) != 0) {
11721
+ instcategories === null || instcategories === void 0 ? void 0 : instcategories.forEach(function (catitem, catindex) {
11722
+ var _catitem$parentcollet3;
11723
+ catitem === null || catitem === void 0 ? void 0 : (_catitem$parentcollet3 = catitem.parentcolletions) === null || _catitem$parentcollet3 === void 0 ? void 0 : _catitem$parentcollet3.forEach(function (parentcolitem, parentcolindex) {
11724
+ var _parentidsfound2;
11725
+ (_parentidsfound2 = parentidsfound) === null || _parentidsfound2 === void 0 ? void 0 : _parentidsfound2.forEach(function (parentidfounditem, parentidfoundindex) {
11726
+ if (parentidfounditem == (parentcolitem === null || parentcolitem === void 0 ? void 0 : parentcolitem.parentcollectionid)) {
11727
+ var _parentcolitem$collec2;
11728
+ parentcolitem === null || parentcolitem === void 0 ? void 0 : (_parentcolitem$collec2 = parentcolitem.collections) === null || _parentcolitem$collec2 === void 0 ? void 0 : _parentcolitem$collec2.forEach(function (colitem, colindex) {
11729
+ var iscolexists = false;
11730
+ collectiontobevisible === null || collectiontobevisible === void 0 ? void 0 : collectiontobevisible.forEach(function (colitemex, colindexex) {
11731
+ if (colitemex.collectionid == colitem.collectionid) {
11732
+ iscolexists = true;
11733
+ }
11734
+ });
11735
+ if (iscolexists == false) {
11736
+ collectiontobevisible.push(colitem);
11737
+ }
11738
+ });
11739
+ }
11740
+ });
11741
+ });
11742
+ });
11743
+ if ((collectiontobevisible === null || collectiontobevisible === void 0 ? void 0 : collectiontobevisible.length) != 0) {
11744
+ setcollectionstobevisible(collectiontobevisible);
11745
+ } else {
11746
+ setcollectionstobevisible(instcollections);
11747
+ }
11748
+ } else {
11749
+ setcollectionstobevisible(instcollections);
11750
+ }
11751
+ } else {
11752
+ setcollectionstobevisible(instcollections);
11753
+ }
11754
+ } else {
11755
+ setcollectionstobevisible(instcollections);
11756
+ }
11757
+ }, [ProductFilterObjContext]);
11677
11758
  React.useEffect(function () {
11678
11759
  if (fetchTabexStatesQueryContext.isSuccess) {
11679
11760
  if (ProductFilterObjContext.stateid != undefined && ProductFilterObjContext.stateid != null && ProductFilterObjContext.stateid != '' && ProductFilterObjContext.stateid != 'all') {
@@ -11697,14 +11778,14 @@ var Filter$1 = function Filter(props) {
11697
11778
  setFetchTabexStatesPayloadobjContext(_objectSpread$1U({}, tempFetchTabexStatesPayloadobjContext));
11698
11779
  }
11699
11780
  if (instfilters.length != 0) {
11700
- var _ProductFilterObjCont;
11781
+ var _ProductFilterObjCont3;
11701
11782
  var tempinstfilters = _toConsumableArray__default["default"](instfilters);
11702
11783
  tempinstfilters === null || tempinstfilters === void 0 ? void 0 : tempinstfilters.forEach(function (instfilteritem, instfilterindex) {
11703
11784
  instfilteritem.productvaluesfilter.forEach(function (valefilteritem, valefilteritemindex) {
11704
11785
  valefilteritem.isfilterselected = false;
11705
11786
  });
11706
11787
  });
11707
- ProductFilterObjContext === null || ProductFilterObjContext === void 0 ? void 0 : (_ProductFilterObjCont = ProductFilterObjContext.FilterOptions) === null || _ProductFilterObjCont === void 0 ? void 0 : _ProductFilterObjCont.forEach(function (filteritem, filterindex) {
11788
+ ProductFilterObjContext === null || ProductFilterObjContext === void 0 ? void 0 : (_ProductFilterObjCont3 = ProductFilterObjContext.FilterOptions) === null || _ProductFilterObjCont3 === void 0 ? void 0 : _ProductFilterObjCont3.forEach(function (filteritem, filterindex) {
11708
11789
  tempinstfilters === null || tempinstfilters === void 0 ? void 0 : tempinstfilters.forEach(function (instfilteritem, instfilterindex) {
11709
11790
  var _instfilteritem$produ;
11710
11791
  instfilteritem === null || instfilteritem === void 0 ? void 0 : (_instfilteritem$produ = instfilteritem.productvaluesfilter) === null || _instfilteritem$produ === void 0 ? void 0 : _instfilteritem$produ.forEach(function (valefilteritem, valefilteritemindex) {
@@ -11717,7 +11798,7 @@ var Filter$1 = function Filter(props) {
11717
11798
  setinstfilters(_toConsumableArray__default["default"](tempinstfilters));
11718
11799
  }
11719
11800
  if (instcategories.length != 0) {
11720
- var _ProductFilterObjCont2;
11801
+ var _ProductFilterObjCont4;
11721
11802
  var tempInstcategories = _toConsumableArray__default["default"](instcategories);
11722
11803
  tempInstcategories.forEach(function (catitem, catindex) {
11723
11804
  catitem.parentcolletions.forEach(function (parentcolitem, parentcolindex) {
@@ -11726,7 +11807,7 @@ var Filter$1 = function Filter(props) {
11726
11807
  });
11727
11808
  });
11728
11809
  });
11729
- ProductFilterObjContext === null || ProductFilterObjContext === void 0 ? void 0 : (_ProductFilterObjCont2 = ProductFilterObjContext.collections) === null || _ProductFilterObjCont2 === void 0 ? void 0 : _ProductFilterObjCont2.forEach(function (filteritem, filterindex) {
11810
+ ProductFilterObjContext === null || ProductFilterObjContext === void 0 ? void 0 : (_ProductFilterObjCont4 = ProductFilterObjContext.collections) === null || _ProductFilterObjCont4 === void 0 ? void 0 : _ProductFilterObjCont4.forEach(function (filteritem, filterindex) {
11730
11811
  tempInstcategories.forEach(function (catitem, catindex) {
11731
11812
  catitem.parentcolletions.forEach(function (parentcolitem, parentcolindex) {
11732
11813
  parentcolitem.collections.forEach(function (colitem, colindex) {
@@ -11740,12 +11821,12 @@ var Filter$1 = function Filter(props) {
11740
11821
  setinstcategories(_toConsumableArray__default["default"](tempInstcategories));
11741
11822
  }
11742
11823
  if (instcollections.length != 0) {
11743
- var _ProductFilterObjCont3;
11824
+ var _ProductFilterObjCont5;
11744
11825
  var tempInstcollections = _toConsumableArray__default["default"](instcollections);
11745
11826
  tempInstcollections.forEach(function (instfilteritem, valefilteritemindex) {
11746
11827
  instfilteritem.isfilterselected = false;
11747
11828
  });
11748
- ProductFilterObjContext === null || ProductFilterObjContext === void 0 ? void 0 : (_ProductFilterObjCont3 = ProductFilterObjContext.collections) === null || _ProductFilterObjCont3 === void 0 ? void 0 : _ProductFilterObjCont3.forEach(function (filteritem, filterindex) {
11829
+ ProductFilterObjContext === null || ProductFilterObjContext === void 0 ? void 0 : (_ProductFilterObjCont5 = ProductFilterObjContext.collections) === null || _ProductFilterObjCont5 === void 0 ? void 0 : _ProductFilterObjCont5.forEach(function (filteritem, filterindex) {
11749
11830
  tempInstcollections === null || tempInstcollections === void 0 ? void 0 : tempInstcollections.forEach(function (instfilteritem, instfilterindex) {
11750
11831
  if (instfilteritem.collectionid == filteritem) {
11751
11832
  instfilteritem.isfilterselected = true;
@@ -11799,6 +11880,7 @@ var Filter$1 = function Filter(props) {
11799
11880
  tempfetchproductsfilerobjcontext.collections.push(collectionid);
11800
11881
  }
11801
11882
  tempfetchproductsfilerobjcontext.page = 0;
11883
+ tempfetchproductsfilerobjcontext.ProductFetchingType = 'Random';
11802
11884
  setProductFilterObjContext(_objectSpread$1U({}, tempfetchproductsfilerobjcontext));
11803
11885
  filterrouting(tempfetchproductsfilerobjcontext);
11804
11886
  // routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
@@ -11958,7 +12040,7 @@ var Filter$1 = function Filter(props) {
11958
12040
  className: 'col-lg-12'
11959
12041
  }, /*#__PURE__*/React__default["default"].createElement("div", {
11960
12042
  className: langdetect == 'en' ? "".concat(filterstyles.timeline, " ").concat(filterstyles.timelinetrans) + ' p-sm-0 ' : "".concat(filterstyles.timeline, " ").concat(filterstyles.timelinetrans) + ' p-sm-0 '
11961
- }, instcollections.map(function (item, index) {
12043
+ }, collectionstobevisible.map(function (item, index) {
11962
12044
  return /*#__PURE__*/React__default["default"].createElement("div", {
11963
12045
  className: "".concat(filterstyles.border_left_line, " ").concat(filterstyles.timelineinnercont, " ").concat(filter_cssstyles.timelineinnercont, "\n ").concat(item.isfilterselected ? "".concat(filter_cssstyles.timelineinnercont_active, " ").concat(filterstyles.timelineinnercont_active) : '', "\n ") + ' d-flex align-items-start pb-3 ',
11964
12046
  onClick: function onClick() {
@@ -11976,7 +12058,18 @@ var Filter$1 = function Filter(props) {
11976
12058
  color: item.isfilterselected ? sectionproperties.activecat_color : ''
11977
12059
  }
11978
12060
  }, langdetect == 'en' ? item.title_en : item.title_ar)));
11979
- })))))), /*#__PURE__*/React__default["default"].createElement("hr", {
12061
+ })), sectionproperties.showshowallbtn == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
12062
+ "class": "col-lg-12 allcentered"
12063
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
12064
+ "class": filter_cssstyles.showallbtn,
12065
+ style: {}
12066
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
12067
+ "class": "m-0 p-0",
12068
+ onClick: function onClick() {
12069
+ setcollectionstobevisible(instcollections);
12070
+ }
12071
+ // style={{ cursor: 'pointer' }}
12072
+ }, langdetect == 'en' ? sectionproperties.showalltexten : sectionproperties.showalltextar))))))), /*#__PURE__*/React__default["default"].createElement("hr", {
11980
12073
  className: "mt-3 mb-3"
11981
12074
  })));
11982
12075
  };
@@ -12129,6 +12222,14 @@ var Filter$1 = function Filter(props) {
12129
12222
  ':hover': {
12130
12223
  color: sectionproperties.explorebtncoloronhover
12131
12224
  }
12225
+ }),
12226
+ showallbtn: glamor.css({
12227
+ color: sectionproperties.showallcolor,
12228
+ ':hover': {
12229
+ transition: '.3s',
12230
+ cursor: 'pointer',
12231
+ color: sectionproperties.showallcolorhover
12232
+ }
12132
12233
  })
12133
12234
  };
12134
12235
  var filterrouting = function filterrouting(tempfetchproductsfilerobjcontext) {
@@ -12285,7 +12386,8 @@ var Filter$1 = function Filter(props) {
12285
12386
  return /*#__PURE__*/React__default["default"].createElement("div", {
12286
12387
  className: sectionproperties.filterdirection == 'Horizontal' ? 'col-lg-12 p-0 w-100 filter mt-md-0 ' : 'col-lg-12 p-0 w-100 filter mt-md-0 d-md-none',
12287
12388
  style: {
12288
- marginTop: sectionproperties.filtersection_mt + 'px'
12389
+ marginTop: sectionproperties.filtersection_mt + 'px',
12390
+ minHeight: sectionproperties.filterminheight == 0 ? 'auto' : sectionproperties.filterminheight + 'vh'
12289
12391
  }
12290
12392
  }, sectionproperties.filterdirection == 'Horizontal' && /*#__PURE__*/React__default["default"].createElement("div", {
12291
12393
  "class": "row m-0 w-100"
@@ -43162,9 +43264,7 @@ var Twobgimages = function Twobgimages(props) {
43162
43264
  }, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
43163
43265
  urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
43164
43266
  publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
43165
- path: bgimagearrayofobjs.length != 0 ? langdetect == 'en' ?
43166
- // 'tr:w-0,h-0' +
43167
- bgimagearrayofobjs[index].bg1_image : bgimagearrayofobjs[index].bg1_image_ar : '',
43267
+ path: bgimagearrayofobjs.length != 0 ? langdetect == 'en' ? '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + bgimagearrayofobjs[index].bg1_image : '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + bgimagearrayofobjs[index].bg1_image_ar : '',
43168
43268
  className: sectionproperties.bgcovercontainresponsive == 'Contain' ? 'objectFit-md-contain' : '',
43169
43269
  style: {
43170
43270
  height: '100%',
@@ -43184,7 +43284,7 @@ var Twobgimages = function Twobgimages(props) {
43184
43284
  }, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
43185
43285
  urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
43186
43286
  publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
43187
- path: bgimagearrayofobjs.length != 0 ? langdetect == 'en' ? bgimagearrayofobjs[index].bg1_imageresponsive : bgimagearrayofobjs[index].bg1_imageresponsive_ar : '',
43287
+ path: bgimagearrayofobjs.length != 0 ? langdetect == 'en' ? '/tr:w-' + sectionproperties.imagetr_w_resp + ',h-' + sectionproperties.imagetr_h_resp + '/' + bgimagearrayofobjs[index].bg1_imageresponsive : '/tr:w-' + sectionproperties.imagetr_w_resp + ',h-' + sectionproperties.imagetr_h_resp + '/' + bgimagearrayofobjs[index].bg1_imageresponsive_ar : '',
43188
43288
  className: sectionproperties.bgcovercontainresponsive == 'Contain' ? 'objectFit-md-contain' : '',
43189
43289
  style: {
43190
43290
  height: '100%',
@@ -43240,11 +43340,7 @@ var Twobgimages = function Twobgimages(props) {
43240
43340
  }
43241
43341
  }
43242
43342
  }
43243
- }, langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar, ' ', langdetect == 'en' ? /*#__PURE__*/React__default["default"].createElement(IoIosArrowRoundForward.IoIosArrowRoundForward, {
43244
- size: 20
43245
- }) : /*#__PURE__*/React__default["default"].createElement(IoIosArrowRoundBack.IoIosArrowRoundBack, {
43246
- size: 20
43247
- }))), /*#__PURE__*/React__default["default"].createElement("div", {
43343
+ }, langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar, ' ')), /*#__PURE__*/React__default["default"].createElement("div", {
43248
43344
  className: "col-md-12 d-none d-md-flex flex-column mt-auto mb-auto "
43249
43345
  }, /*#__PURE__*/React__default["default"].createElement("p", {
43250
43346
  className: bgcssstyles.text1styles + ' wordbreak m-0 ',
@@ -43458,7 +43554,7 @@ var VideosSection = function VideosSection(props) {
43458
43554
  borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px',
43459
43555
  height: sectionproperties.image_height + 'px'
43460
43556
  }
43461
- }, item.linkclicked == true && item.linktype != 'External Link ' && /*#__PURE__*/React__default["default"].createElement(ReactPlayer__default["default"], {
43557
+ }, item.linkclicked == true && item.linktype != 'External Link' && /*#__PURE__*/React__default["default"].createElement(ReactPlayer__default["default"], {
43462
43558
  url: item.url,
43463
43559
  height: sectionproperties.image_height + 'px',
43464
43560
  width: '100%',
@@ -43467,7 +43563,7 @@ var VideosSection = function VideosSection(props) {
43467
43563
  loop: true,
43468
43564
  muted: true,
43469
43565
  playsinline: true
43470
- }), item.image == null && item.linktype != 'External Link ' && /*#__PURE__*/React__default["default"].createElement(ReactPlayer__default["default"], {
43566
+ }), item.image == null && item.linktype != 'External Link' && /*#__PURE__*/React__default["default"].createElement(ReactPlayer__default["default"], {
43471
43567
  url: item.url,
43472
43568
  height: sectionproperties.image_height + 'px',
43473
43569
  width: '100%',
@@ -47163,6 +47259,8 @@ var Slideshowzoom = function Slideshowzoom(props) {
47163
47259
  cardarrayofobjs = _useState6[0],
47164
47260
  setcardarrayofobjs = _useState6[1];
47165
47261
  var ikimagecredcontext = props.actions.ikimagecredcontext;
47262
+ var routingcountext = props.actions.routingcountext;
47263
+ var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
47166
47264
  React.useEffect(function () {
47167
47265
  if (props.srcfrom == 'addsectionform') {
47168
47266
  var secpropobj = {};
@@ -57327,7 +57425,7 @@ var Productcard_animatedbuttons = function Productcard_animatedbuttons(props) {
57327
57425
  fontSize: sectionproperties.pillfontSize + 'px',
57328
57426
  direction: 'ltr'
57329
57427
  }
57330
- }, '-' + Math.round(10.0 * ((parseInt(item.defaultprice) - parseInt(item.defaultsaleprice)) / parseInt(item.defaultprice)) * 100) / 10.0 + '%')), /*#__PURE__*/React__default["default"].createElement("ul", {
57428
+ }, '-' + parseFloat(Math.round(10.0 * ((parseInt(item.defaultprice) - parseInt(item.defaultsaleprice)) / parseInt(item.defaultprice)) * 100) / 10.0).toFixed(0) + '%')), /*#__PURE__*/React__default["default"].createElement("ul", {
57331
57429
  "class": sectionproperties.transition == 'Bottom' ? "".concat(cardstyles.buttonContainerBottom) + ' m-0 p-0 ' : sectionproperties.transition == 'Center' ? "".concat(cardstyles.buttonContainerCenter) + ' m-0 p-0 ' : "".concat(cardstyles.buttonContainerBottom, " ").concat(cardstyles.buttonContainerBottom_show) + ' m-0 p-0 '
57332
57430
  }, sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("li", {
57333
57431
  "class": langdetect == 'en' ? 'mr-3 cursor-pointer ' : 'ml-3 cursor-pointer ',
package/dist/index.esm.js CHANGED
@@ -11547,27 +11547,31 @@ var Filter$1 = function Filter(props) {
11547
11547
  _useState4 = _slicedToArray(_useState3, 2),
11548
11548
  instfilters = _useState4[0],
11549
11549
  setinstfilters = _useState4[1];
11550
- var _useState5 = useState(_toConsumableArray(authdetailsContext.instinfo.instcollections)),
11550
+ var _useState5 = useState([]),
11551
11551
  _useState6 = _slicedToArray(_useState5, 2),
11552
- instcollections = _useState6[0],
11553
- setinstcollections = _useState6[1];
11554
- var _useState7 = useState(_toConsumableArray(authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : _authdetailsContext$i.instcategories)),
11552
+ collectionstobevisible = _useState6[0],
11553
+ setcollectionstobevisible = _useState6[1];
11554
+ var _useState7 = useState(_toConsumableArray(authdetailsContext.instinfo.instcollections)),
11555
11555
  _useState8 = _slicedToArray(_useState7, 2),
11556
- instcategories = _useState8[0],
11557
- setinstcategories = _useState8[1];
11558
- var _useState9 = useState('Sort by'),
11559
- _useState10 = _slicedToArray(_useState9, 2);
11560
- _useState10[0];
11561
- _useState10[1];
11562
- var _useState11 = useState({
11556
+ instcollections = _useState8[0],
11557
+ setinstcollections = _useState8[1];
11558
+ var _useState9 = useState(_toConsumableArray(authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : _authdetailsContext$i.instcategories)),
11559
+ _useState10 = _slicedToArray(_useState9, 2),
11560
+ instcategories = _useState10[0],
11561
+ setinstcategories = _useState10[1];
11562
+ var _useState11 = useState('Sort by'),
11563
+ _useState12 = _slicedToArray(_useState11, 2);
11564
+ _useState12[0];
11565
+ _useState12[1];
11566
+ var _useState13 = useState({
11563
11567
  min: 0,
11564
11568
  max: 5
11565
11569
  }),
11566
- _useState12 = _slicedToArray(_useState11, 2),
11567
- raterangevalue = _useState12[0],
11568
- setraterangevalue = _useState12[1];
11570
+ _useState14 = _slicedToArray(_useState13, 2),
11571
+ raterangevalue = _useState14[0],
11572
+ setraterangevalue = _useState14[1];
11569
11573
  var timeoutRef = React.useRef(null);
11570
- var _useState13 = useState([{
11574
+ var _useState15 = useState([{
11571
11575
  payloadvalue: 'sortprice',
11572
11576
  name: lang.price,
11573
11577
  filterarray: [{
@@ -11592,9 +11596,9 @@ var Filter$1 = function Filter(props) {
11592
11596
  isfilterselected: false
11593
11597
  }]
11594
11598
  }]),
11595
- _useState14 = _slicedToArray(_useState13, 2),
11596
- otherfilters = _useState14[0];
11597
- _useState14[1];
11599
+ _useState16 = _slicedToArray(_useState15, 2),
11600
+ otherfilters = _useState16[0];
11601
+ _useState16[1];
11598
11602
  useEffect(function () {
11599
11603
  filterupdater();
11600
11604
  }, []);
@@ -11627,6 +11631,83 @@ var Filter$1 = function Filter(props) {
11627
11631
  }
11628
11632
  }, 500);
11629
11633
  }, [raterangevalue]);
11634
+ useEffect(function () {
11635
+ if ((sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.filterretreivetype) == 'Depend on chosen parent group') {
11636
+ 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)) {
11637
+ var _parentidsfound;
11638
+ var collectiontobevisible = [];
11639
+ var parentidsfound = [];
11640
+ if (ProductFilterObjContext.ProductFetchingType == 'Parent Collection') {
11641
+ parentidsfound = ProductFilterObjContext === null || ProductFilterObjContext === void 0 ? void 0 : ProductFilterObjContext.collections;
11642
+ } else if (ProductFilterObjContext.ProductFetchingType == 'Category') {
11643
+ instcategories === null || instcategories === void 0 ? void 0 : instcategories.forEach(function (catitem, catindex) {
11644
+ var _ProductFilterObjCont;
11645
+ ProductFilterObjContext === null || ProductFilterObjContext === void 0 ? void 0 : (_ProductFilterObjCont = ProductFilterObjContext.collections) === null || _ProductFilterObjCont === void 0 ? void 0 : _ProductFilterObjCont.forEach(function (colitem2, colindex2) {
11646
+ if (catitem.categoryid == colitem2) {
11647
+ var _catitem$parentcollet;
11648
+ catitem === null || catitem === void 0 ? void 0 : (_catitem$parentcollet = catitem.parentcolletions) === null || _catitem$parentcollet === void 0 ? void 0 : _catitem$parentcollet.forEach(function (parentcolitem, parentcolindex) {
11649
+ parentidsfound.push(parentcolitem.parentcollectionid);
11650
+ });
11651
+ }
11652
+ });
11653
+ });
11654
+ } else {
11655
+ instcategories === null || instcategories === void 0 ? void 0 : instcategories.forEach(function (catitem, catindex) {
11656
+ var _catitem$parentcollet2;
11657
+ catitem === null || catitem === void 0 ? void 0 : (_catitem$parentcollet2 = catitem.parentcolletions) === null || _catitem$parentcollet2 === void 0 ? void 0 : _catitem$parentcollet2.forEach(function (parentcolitem, parentcolindex) {
11658
+ var _parentcolitem$collec;
11659
+ parentcolitem === null || parentcolitem === void 0 ? void 0 : (_parentcolitem$collec = parentcolitem.collections) === null || _parentcolitem$collec === void 0 ? void 0 : _parentcolitem$collec.forEach(function (colitem, colindex) {
11660
+ var _ProductFilterObjCont2;
11661
+ ProductFilterObjContext === null || ProductFilterObjContext === void 0 ? void 0 : (_ProductFilterObjCont2 = ProductFilterObjContext.collections) === null || _ProductFilterObjCont2 === void 0 ? void 0 : _ProductFilterObjCont2.forEach(function (colitem2, colindex2) {
11662
+ if (colitem.collectionid == colitem2) {
11663
+ parentidsfound.push(parentcolitem.parentcollectionid);
11664
+ }
11665
+ });
11666
+ });
11667
+ });
11668
+ });
11669
+ }
11670
+ parentidsfound = parentidsfound.filter(function (val, id, array) {
11671
+ return array.indexOf(val) == id;
11672
+ });
11673
+ if (((_parentidsfound = parentidsfound) === null || _parentidsfound === void 0 ? void 0 : _parentidsfound.length) != 0) {
11674
+ instcategories === null || instcategories === void 0 ? void 0 : instcategories.forEach(function (catitem, catindex) {
11675
+ var _catitem$parentcollet3;
11676
+ catitem === null || catitem === void 0 ? void 0 : (_catitem$parentcollet3 = catitem.parentcolletions) === null || _catitem$parentcollet3 === void 0 ? void 0 : _catitem$parentcollet3.forEach(function (parentcolitem, parentcolindex) {
11677
+ var _parentidsfound2;
11678
+ (_parentidsfound2 = parentidsfound) === null || _parentidsfound2 === void 0 ? void 0 : _parentidsfound2.forEach(function (parentidfounditem, parentidfoundindex) {
11679
+ if (parentidfounditem == (parentcolitem === null || parentcolitem === void 0 ? void 0 : parentcolitem.parentcollectionid)) {
11680
+ var _parentcolitem$collec2;
11681
+ parentcolitem === null || parentcolitem === void 0 ? void 0 : (_parentcolitem$collec2 = parentcolitem.collections) === null || _parentcolitem$collec2 === void 0 ? void 0 : _parentcolitem$collec2.forEach(function (colitem, colindex) {
11682
+ var iscolexists = false;
11683
+ collectiontobevisible === null || collectiontobevisible === void 0 ? void 0 : collectiontobevisible.forEach(function (colitemex, colindexex) {
11684
+ if (colitemex.collectionid == colitem.collectionid) {
11685
+ iscolexists = true;
11686
+ }
11687
+ });
11688
+ if (iscolexists == false) {
11689
+ collectiontobevisible.push(colitem);
11690
+ }
11691
+ });
11692
+ }
11693
+ });
11694
+ });
11695
+ });
11696
+ if ((collectiontobevisible === null || collectiontobevisible === void 0 ? void 0 : collectiontobevisible.length) != 0) {
11697
+ setcollectionstobevisible(collectiontobevisible);
11698
+ } else {
11699
+ setcollectionstobevisible(instcollections);
11700
+ }
11701
+ } else {
11702
+ setcollectionstobevisible(instcollections);
11703
+ }
11704
+ } else {
11705
+ setcollectionstobevisible(instcollections);
11706
+ }
11707
+ } else {
11708
+ setcollectionstobevisible(instcollections);
11709
+ }
11710
+ }, [ProductFilterObjContext]);
11630
11711
  useEffect(function () {
11631
11712
  if (fetchTabexStatesQueryContext.isSuccess) {
11632
11713
  if (ProductFilterObjContext.stateid != undefined && ProductFilterObjContext.stateid != null && ProductFilterObjContext.stateid != '' && ProductFilterObjContext.stateid != 'all') {
@@ -11650,14 +11731,14 @@ var Filter$1 = function Filter(props) {
11650
11731
  setFetchTabexStatesPayloadobjContext(_objectSpread$1U({}, tempFetchTabexStatesPayloadobjContext));
11651
11732
  }
11652
11733
  if (instfilters.length != 0) {
11653
- var _ProductFilterObjCont;
11734
+ var _ProductFilterObjCont3;
11654
11735
  var tempinstfilters = _toConsumableArray(instfilters);
11655
11736
  tempinstfilters === null || tempinstfilters === void 0 ? void 0 : tempinstfilters.forEach(function (instfilteritem, instfilterindex) {
11656
11737
  instfilteritem.productvaluesfilter.forEach(function (valefilteritem, valefilteritemindex) {
11657
11738
  valefilteritem.isfilterselected = false;
11658
11739
  });
11659
11740
  });
11660
- ProductFilterObjContext === null || ProductFilterObjContext === void 0 ? void 0 : (_ProductFilterObjCont = ProductFilterObjContext.FilterOptions) === null || _ProductFilterObjCont === void 0 ? void 0 : _ProductFilterObjCont.forEach(function (filteritem, filterindex) {
11741
+ ProductFilterObjContext === null || ProductFilterObjContext === void 0 ? void 0 : (_ProductFilterObjCont3 = ProductFilterObjContext.FilterOptions) === null || _ProductFilterObjCont3 === void 0 ? void 0 : _ProductFilterObjCont3.forEach(function (filteritem, filterindex) {
11661
11742
  tempinstfilters === null || tempinstfilters === void 0 ? void 0 : tempinstfilters.forEach(function (instfilteritem, instfilterindex) {
11662
11743
  var _instfilteritem$produ;
11663
11744
  instfilteritem === null || instfilteritem === void 0 ? void 0 : (_instfilteritem$produ = instfilteritem.productvaluesfilter) === null || _instfilteritem$produ === void 0 ? void 0 : _instfilteritem$produ.forEach(function (valefilteritem, valefilteritemindex) {
@@ -11670,7 +11751,7 @@ var Filter$1 = function Filter(props) {
11670
11751
  setinstfilters(_toConsumableArray(tempinstfilters));
11671
11752
  }
11672
11753
  if (instcategories.length != 0) {
11673
- var _ProductFilterObjCont2;
11754
+ var _ProductFilterObjCont4;
11674
11755
  var tempInstcategories = _toConsumableArray(instcategories);
11675
11756
  tempInstcategories.forEach(function (catitem, catindex) {
11676
11757
  catitem.parentcolletions.forEach(function (parentcolitem, parentcolindex) {
@@ -11679,7 +11760,7 @@ var Filter$1 = function Filter(props) {
11679
11760
  });
11680
11761
  });
11681
11762
  });
11682
- ProductFilterObjContext === null || ProductFilterObjContext === void 0 ? void 0 : (_ProductFilterObjCont2 = ProductFilterObjContext.collections) === null || _ProductFilterObjCont2 === void 0 ? void 0 : _ProductFilterObjCont2.forEach(function (filteritem, filterindex) {
11763
+ ProductFilterObjContext === null || ProductFilterObjContext === void 0 ? void 0 : (_ProductFilterObjCont4 = ProductFilterObjContext.collections) === null || _ProductFilterObjCont4 === void 0 ? void 0 : _ProductFilterObjCont4.forEach(function (filteritem, filterindex) {
11683
11764
  tempInstcategories.forEach(function (catitem, catindex) {
11684
11765
  catitem.parentcolletions.forEach(function (parentcolitem, parentcolindex) {
11685
11766
  parentcolitem.collections.forEach(function (colitem, colindex) {
@@ -11693,12 +11774,12 @@ var Filter$1 = function Filter(props) {
11693
11774
  setinstcategories(_toConsumableArray(tempInstcategories));
11694
11775
  }
11695
11776
  if (instcollections.length != 0) {
11696
- var _ProductFilterObjCont3;
11777
+ var _ProductFilterObjCont5;
11697
11778
  var tempInstcollections = _toConsumableArray(instcollections);
11698
11779
  tempInstcollections.forEach(function (instfilteritem, valefilteritemindex) {
11699
11780
  instfilteritem.isfilterselected = false;
11700
11781
  });
11701
- ProductFilterObjContext === null || ProductFilterObjContext === void 0 ? void 0 : (_ProductFilterObjCont3 = ProductFilterObjContext.collections) === null || _ProductFilterObjCont3 === void 0 ? void 0 : _ProductFilterObjCont3.forEach(function (filteritem, filterindex) {
11782
+ ProductFilterObjContext === null || ProductFilterObjContext === void 0 ? void 0 : (_ProductFilterObjCont5 = ProductFilterObjContext.collections) === null || _ProductFilterObjCont5 === void 0 ? void 0 : _ProductFilterObjCont5.forEach(function (filteritem, filterindex) {
11702
11783
  tempInstcollections === null || tempInstcollections === void 0 ? void 0 : tempInstcollections.forEach(function (instfilteritem, instfilterindex) {
11703
11784
  if (instfilteritem.collectionid == filteritem) {
11704
11785
  instfilteritem.isfilterselected = true;
@@ -11752,6 +11833,7 @@ var Filter$1 = function Filter(props) {
11752
11833
  tempfetchproductsfilerobjcontext.collections.push(collectionid);
11753
11834
  }
11754
11835
  tempfetchproductsfilerobjcontext.page = 0;
11836
+ tempfetchproductsfilerobjcontext.ProductFetchingType = 'Random';
11755
11837
  setProductFilterObjContext(_objectSpread$1U({}, tempfetchproductsfilerobjcontext));
11756
11838
  filterrouting(tempfetchproductsfilerobjcontext);
11757
11839
  // routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
@@ -11911,7 +11993,7 @@ var Filter$1 = function Filter(props) {
11911
11993
  className: 'col-lg-12'
11912
11994
  }, /*#__PURE__*/React.createElement("div", {
11913
11995
  className: langdetect == 'en' ? "".concat(filterstyles.timeline, " ").concat(filterstyles.timelinetrans) + ' p-sm-0 ' : "".concat(filterstyles.timeline, " ").concat(filterstyles.timelinetrans) + ' p-sm-0 '
11914
- }, instcollections.map(function (item, index) {
11996
+ }, collectionstobevisible.map(function (item, index) {
11915
11997
  return /*#__PURE__*/React.createElement("div", {
11916
11998
  className: "".concat(filterstyles.border_left_line, " ").concat(filterstyles.timelineinnercont, " ").concat(filter_cssstyles.timelineinnercont, "\n ").concat(item.isfilterselected ? "".concat(filter_cssstyles.timelineinnercont_active, " ").concat(filterstyles.timelineinnercont_active) : '', "\n ") + ' d-flex align-items-start pb-3 ',
11917
11999
  onClick: function onClick() {
@@ -11929,7 +12011,18 @@ var Filter$1 = function Filter(props) {
11929
12011
  color: item.isfilterselected ? sectionproperties.activecat_color : ''
11930
12012
  }
11931
12013
  }, langdetect == 'en' ? item.title_en : item.title_ar)));
11932
- })))))), /*#__PURE__*/React.createElement("hr", {
12014
+ })), sectionproperties.showshowallbtn == 'Show' && /*#__PURE__*/React.createElement("div", {
12015
+ "class": "col-lg-12 allcentered"
12016
+ }, /*#__PURE__*/React.createElement("div", {
12017
+ "class": filter_cssstyles.showallbtn,
12018
+ style: {}
12019
+ }, /*#__PURE__*/React.createElement("p", {
12020
+ "class": "m-0 p-0",
12021
+ onClick: function onClick() {
12022
+ setcollectionstobevisible(instcollections);
12023
+ }
12024
+ // style={{ cursor: 'pointer' }}
12025
+ }, langdetect == 'en' ? sectionproperties.showalltexten : sectionproperties.showalltextar))))))), /*#__PURE__*/React.createElement("hr", {
11933
12026
  className: "mt-3 mb-3"
11934
12027
  })));
11935
12028
  };
@@ -12082,6 +12175,14 @@ var Filter$1 = function Filter(props) {
12082
12175
  ':hover': {
12083
12176
  color: sectionproperties.explorebtncoloronhover
12084
12177
  }
12178
+ }),
12179
+ showallbtn: css({
12180
+ color: sectionproperties.showallcolor,
12181
+ ':hover': {
12182
+ transition: '.3s',
12183
+ cursor: 'pointer',
12184
+ color: sectionproperties.showallcolorhover
12185
+ }
12085
12186
  })
12086
12187
  };
12087
12188
  var filterrouting = function filterrouting(tempfetchproductsfilerobjcontext) {
@@ -12238,7 +12339,8 @@ var Filter$1 = function Filter(props) {
12238
12339
  return /*#__PURE__*/React.createElement("div", {
12239
12340
  className: sectionproperties.filterdirection == 'Horizontal' ? 'col-lg-12 p-0 w-100 filter mt-md-0 ' : 'col-lg-12 p-0 w-100 filter mt-md-0 d-md-none',
12240
12341
  style: {
12241
- marginTop: sectionproperties.filtersection_mt + 'px'
12342
+ marginTop: sectionproperties.filtersection_mt + 'px',
12343
+ minHeight: sectionproperties.filterminheight == 0 ? 'auto' : sectionproperties.filterminheight + 'vh'
12242
12344
  }
12243
12345
  }, sectionproperties.filterdirection == 'Horizontal' && /*#__PURE__*/React.createElement("div", {
12244
12346
  "class": "row m-0 w-100"
@@ -43115,9 +43217,7 @@ var Twobgimages = function Twobgimages(props) {
43115
43217
  }, /*#__PURE__*/React.createElement(Imagekitimagecomp, {
43116
43218
  urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
43117
43219
  publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
43118
- path: bgimagearrayofobjs.length != 0 ? langdetect == 'en' ?
43119
- // 'tr:w-0,h-0' +
43120
- bgimagearrayofobjs[index].bg1_image : bgimagearrayofobjs[index].bg1_image_ar : '',
43220
+ path: bgimagearrayofobjs.length != 0 ? langdetect == 'en' ? '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + bgimagearrayofobjs[index].bg1_image : '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + bgimagearrayofobjs[index].bg1_image_ar : '',
43121
43221
  className: sectionproperties.bgcovercontainresponsive == 'Contain' ? 'objectFit-md-contain' : '',
43122
43222
  style: {
43123
43223
  height: '100%',
@@ -43137,7 +43237,7 @@ var Twobgimages = function Twobgimages(props) {
43137
43237
  }, /*#__PURE__*/React.createElement(Imagekitimagecomp, {
43138
43238
  urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
43139
43239
  publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
43140
- path: bgimagearrayofobjs.length != 0 ? langdetect == 'en' ? bgimagearrayofobjs[index].bg1_imageresponsive : bgimagearrayofobjs[index].bg1_imageresponsive_ar : '',
43240
+ path: bgimagearrayofobjs.length != 0 ? langdetect == 'en' ? '/tr:w-' + sectionproperties.imagetr_w_resp + ',h-' + sectionproperties.imagetr_h_resp + '/' + bgimagearrayofobjs[index].bg1_imageresponsive : '/tr:w-' + sectionproperties.imagetr_w_resp + ',h-' + sectionproperties.imagetr_h_resp + '/' + bgimagearrayofobjs[index].bg1_imageresponsive_ar : '',
43141
43241
  className: sectionproperties.bgcovercontainresponsive == 'Contain' ? 'objectFit-md-contain' : '',
43142
43242
  style: {
43143
43243
  height: '100%',
@@ -43193,11 +43293,7 @@ var Twobgimages = function Twobgimages(props) {
43193
43293
  }
43194
43294
  }
43195
43295
  }
43196
- }, langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar, ' ', langdetect == 'en' ? /*#__PURE__*/React.createElement(IoIosArrowRoundForward, {
43197
- size: 20
43198
- }) : /*#__PURE__*/React.createElement(IoIosArrowRoundBack, {
43199
- size: 20
43200
- }))), /*#__PURE__*/React.createElement("div", {
43296
+ }, langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar, ' ')), /*#__PURE__*/React.createElement("div", {
43201
43297
  className: "col-md-12 d-none d-md-flex flex-column mt-auto mb-auto "
43202
43298
  }, /*#__PURE__*/React.createElement("p", {
43203
43299
  className: bgcssstyles.text1styles + ' wordbreak m-0 ',
@@ -43411,7 +43507,7 @@ var VideosSection = function VideosSection(props) {
43411
43507
  borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px',
43412
43508
  height: sectionproperties.image_height + 'px'
43413
43509
  }
43414
- }, item.linkclicked == true && item.linktype != 'External Link ' && /*#__PURE__*/React.createElement(ReactPlayer, {
43510
+ }, item.linkclicked == true && item.linktype != 'External Link' && /*#__PURE__*/React.createElement(ReactPlayer, {
43415
43511
  url: item.url,
43416
43512
  height: sectionproperties.image_height + 'px',
43417
43513
  width: '100%',
@@ -43420,7 +43516,7 @@ var VideosSection = function VideosSection(props) {
43420
43516
  loop: true,
43421
43517
  muted: true,
43422
43518
  playsinline: true
43423
- }), item.image == null && item.linktype != 'External Link ' && /*#__PURE__*/React.createElement(ReactPlayer, {
43519
+ }), item.image == null && item.linktype != 'External Link' && /*#__PURE__*/React.createElement(ReactPlayer, {
43424
43520
  url: item.url,
43425
43521
  height: sectionproperties.image_height + 'px',
43426
43522
  width: '100%',
@@ -47116,6 +47212,8 @@ var Slideshowzoom = function Slideshowzoom(props) {
47116
47212
  cardarrayofobjs = _useState6[0],
47117
47213
  setcardarrayofobjs = _useState6[1];
47118
47214
  var ikimagecredcontext = props.actions.ikimagecredcontext;
47215
+ var routingcountext = props.actions.routingcountext;
47216
+ var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
47119
47217
  useEffect(function () {
47120
47218
  if (props.srcfrom == 'addsectionform') {
47121
47219
  var secpropobj = {};
@@ -57280,7 +57378,7 @@ var Productcard_animatedbuttons = function Productcard_animatedbuttons(props) {
57280
57378
  fontSize: sectionproperties.pillfontSize + 'px',
57281
57379
  direction: 'ltr'
57282
57380
  }
57283
- }, '-' + Math.round(10.0 * ((parseInt(item.defaultprice) - parseInt(item.defaultsaleprice)) / parseInt(item.defaultprice)) * 100) / 10.0 + '%')), /*#__PURE__*/React.createElement("ul", {
57381
+ }, '-' + parseFloat(Math.round(10.0 * ((parseInt(item.defaultprice) - parseInt(item.defaultsaleprice)) / parseInt(item.defaultprice)) * 100) / 10.0).toFixed(0) + '%')), /*#__PURE__*/React.createElement("ul", {
57284
57382
  "class": sectionproperties.transition == 'Bottom' ? "".concat(cardstyles.buttonContainerBottom) + ' m-0 p-0 ' : sectionproperties.transition == 'Center' ? "".concat(cardstyles.buttonContainerCenter) + ' m-0 p-0 ' : "".concat(cardstyles.buttonContainerBottom, " ").concat(cardstyles.buttonContainerBottom_show) + ' m-0 p-0 '
57285
57383
  }, sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React.createElement("li", {
57286
57384
  "class": langdetect == 'en' ? 'mr-3 cursor-pointer ' : 'ml-3 cursor-pointer ',
package/dist/index.umd.js CHANGED
@@ -11437,27 +11437,31 @@
11437
11437
  _useState4 = _slicedToArray__default["default"](_useState3, 2),
11438
11438
  instfilters = _useState4[0],
11439
11439
  setinstfilters = _useState4[1];
11440
- var _useState5 = React.useState(_toConsumableArray__default["default"](authdetailsContext.instinfo.instcollections)),
11440
+ var _useState5 = React.useState([]),
11441
11441
  _useState6 = _slicedToArray__default["default"](_useState5, 2),
11442
- instcollections = _useState6[0],
11443
- setinstcollections = _useState6[1];
11444
- var _useState7 = React.useState(_toConsumableArray__default["default"](authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : _authdetailsContext$i.instcategories)),
11442
+ collectionstobevisible = _useState6[0],
11443
+ setcollectionstobevisible = _useState6[1];
11444
+ var _useState7 = React.useState(_toConsumableArray__default["default"](authdetailsContext.instinfo.instcollections)),
11445
11445
  _useState8 = _slicedToArray__default["default"](_useState7, 2),
11446
- instcategories = _useState8[0],
11447
- setinstcategories = _useState8[1];
11448
- var _useState9 = React.useState('Sort by'),
11449
- _useState10 = _slicedToArray__default["default"](_useState9, 2);
11450
- _useState10[0];
11451
- _useState10[1];
11452
- var _useState11 = React.useState({
11446
+ instcollections = _useState8[0],
11447
+ setinstcollections = _useState8[1];
11448
+ var _useState9 = React.useState(_toConsumableArray__default["default"](authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : _authdetailsContext$i.instcategories)),
11449
+ _useState10 = _slicedToArray__default["default"](_useState9, 2),
11450
+ instcategories = _useState10[0],
11451
+ setinstcategories = _useState10[1];
11452
+ var _useState11 = React.useState('Sort by'),
11453
+ _useState12 = _slicedToArray__default["default"](_useState11, 2);
11454
+ _useState12[0];
11455
+ _useState12[1];
11456
+ var _useState13 = React.useState({
11453
11457
  min: 0,
11454
11458
  max: 5
11455
11459
  }),
11456
- _useState12 = _slicedToArray__default["default"](_useState11, 2),
11457
- raterangevalue = _useState12[0],
11458
- setraterangevalue = _useState12[1];
11460
+ _useState14 = _slicedToArray__default["default"](_useState13, 2),
11461
+ raterangevalue = _useState14[0],
11462
+ setraterangevalue = _useState14[1];
11459
11463
  var timeoutRef = React__default["default"].useRef(null);
11460
- var _useState13 = React.useState([{
11464
+ var _useState15 = React.useState([{
11461
11465
  payloadvalue: 'sortprice',
11462
11466
  name: lang.price,
11463
11467
  filterarray: [{
@@ -11482,9 +11486,9 @@
11482
11486
  isfilterselected: false
11483
11487
  }]
11484
11488
  }]),
11485
- _useState14 = _slicedToArray__default["default"](_useState13, 2),
11486
- otherfilters = _useState14[0];
11487
- _useState14[1];
11489
+ _useState16 = _slicedToArray__default["default"](_useState15, 2),
11490
+ otherfilters = _useState16[0];
11491
+ _useState16[1];
11488
11492
  React.useEffect(function () {
11489
11493
  filterupdater();
11490
11494
  }, []);
@@ -11517,6 +11521,83 @@
11517
11521
  }
11518
11522
  }, 500);
11519
11523
  }, [raterangevalue]);
11524
+ React.useEffect(function () {
11525
+ if ((sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.filterretreivetype) == 'Depend on chosen parent group') {
11526
+ 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)) {
11527
+ var _parentidsfound;
11528
+ var collectiontobevisible = [];
11529
+ var parentidsfound = [];
11530
+ if (ProductFilterObjContext.ProductFetchingType == 'Parent Collection') {
11531
+ parentidsfound = ProductFilterObjContext === null || ProductFilterObjContext === void 0 ? void 0 : ProductFilterObjContext.collections;
11532
+ } else if (ProductFilterObjContext.ProductFetchingType == 'Category') {
11533
+ instcategories === null || instcategories === void 0 ? void 0 : instcategories.forEach(function (catitem, catindex) {
11534
+ var _ProductFilterObjCont;
11535
+ ProductFilterObjContext === null || ProductFilterObjContext === void 0 ? void 0 : (_ProductFilterObjCont = ProductFilterObjContext.collections) === null || _ProductFilterObjCont === void 0 ? void 0 : _ProductFilterObjCont.forEach(function (colitem2, colindex2) {
11536
+ if (catitem.categoryid == colitem2) {
11537
+ var _catitem$parentcollet;
11538
+ catitem === null || catitem === void 0 ? void 0 : (_catitem$parentcollet = catitem.parentcolletions) === null || _catitem$parentcollet === void 0 ? void 0 : _catitem$parentcollet.forEach(function (parentcolitem, parentcolindex) {
11539
+ parentidsfound.push(parentcolitem.parentcollectionid);
11540
+ });
11541
+ }
11542
+ });
11543
+ });
11544
+ } else {
11545
+ instcategories === null || instcategories === void 0 ? void 0 : instcategories.forEach(function (catitem, catindex) {
11546
+ var _catitem$parentcollet2;
11547
+ catitem === null || catitem === void 0 ? void 0 : (_catitem$parentcollet2 = catitem.parentcolletions) === null || _catitem$parentcollet2 === void 0 ? void 0 : _catitem$parentcollet2.forEach(function (parentcolitem, parentcolindex) {
11548
+ var _parentcolitem$collec;
11549
+ parentcolitem === null || parentcolitem === void 0 ? void 0 : (_parentcolitem$collec = parentcolitem.collections) === null || _parentcolitem$collec === void 0 ? void 0 : _parentcolitem$collec.forEach(function (colitem, colindex) {
11550
+ var _ProductFilterObjCont2;
11551
+ ProductFilterObjContext === null || ProductFilterObjContext === void 0 ? void 0 : (_ProductFilterObjCont2 = ProductFilterObjContext.collections) === null || _ProductFilterObjCont2 === void 0 ? void 0 : _ProductFilterObjCont2.forEach(function (colitem2, colindex2) {
11552
+ if (colitem.collectionid == colitem2) {
11553
+ parentidsfound.push(parentcolitem.parentcollectionid);
11554
+ }
11555
+ });
11556
+ });
11557
+ });
11558
+ });
11559
+ }
11560
+ parentidsfound = parentidsfound.filter(function (val, id, array) {
11561
+ return array.indexOf(val) == id;
11562
+ });
11563
+ if (((_parentidsfound = parentidsfound) === null || _parentidsfound === void 0 ? void 0 : _parentidsfound.length) != 0) {
11564
+ instcategories === null || instcategories === void 0 ? void 0 : instcategories.forEach(function (catitem, catindex) {
11565
+ var _catitem$parentcollet3;
11566
+ catitem === null || catitem === void 0 ? void 0 : (_catitem$parentcollet3 = catitem.parentcolletions) === null || _catitem$parentcollet3 === void 0 ? void 0 : _catitem$parentcollet3.forEach(function (parentcolitem, parentcolindex) {
11567
+ var _parentidsfound2;
11568
+ (_parentidsfound2 = parentidsfound) === null || _parentidsfound2 === void 0 ? void 0 : _parentidsfound2.forEach(function (parentidfounditem, parentidfoundindex) {
11569
+ if (parentidfounditem == (parentcolitem === null || parentcolitem === void 0 ? void 0 : parentcolitem.parentcollectionid)) {
11570
+ var _parentcolitem$collec2;
11571
+ parentcolitem === null || parentcolitem === void 0 ? void 0 : (_parentcolitem$collec2 = parentcolitem.collections) === null || _parentcolitem$collec2 === void 0 ? void 0 : _parentcolitem$collec2.forEach(function (colitem, colindex) {
11572
+ var iscolexists = false;
11573
+ collectiontobevisible === null || collectiontobevisible === void 0 ? void 0 : collectiontobevisible.forEach(function (colitemex, colindexex) {
11574
+ if (colitemex.collectionid == colitem.collectionid) {
11575
+ iscolexists = true;
11576
+ }
11577
+ });
11578
+ if (iscolexists == false) {
11579
+ collectiontobevisible.push(colitem);
11580
+ }
11581
+ });
11582
+ }
11583
+ });
11584
+ });
11585
+ });
11586
+ if ((collectiontobevisible === null || collectiontobevisible === void 0 ? void 0 : collectiontobevisible.length) != 0) {
11587
+ setcollectionstobevisible(collectiontobevisible);
11588
+ } else {
11589
+ setcollectionstobevisible(instcollections);
11590
+ }
11591
+ } else {
11592
+ setcollectionstobevisible(instcollections);
11593
+ }
11594
+ } else {
11595
+ setcollectionstobevisible(instcollections);
11596
+ }
11597
+ } else {
11598
+ setcollectionstobevisible(instcollections);
11599
+ }
11600
+ }, [ProductFilterObjContext]);
11520
11601
  React.useEffect(function () {
11521
11602
  if (fetchTabexStatesQueryContext.isSuccess) {
11522
11603
  if (ProductFilterObjContext.stateid != undefined && ProductFilterObjContext.stateid != null && ProductFilterObjContext.stateid != '' && ProductFilterObjContext.stateid != 'all') {
@@ -11540,14 +11621,14 @@
11540
11621
  setFetchTabexStatesPayloadobjContext(_objectSpread$1U({}, tempFetchTabexStatesPayloadobjContext));
11541
11622
  }
11542
11623
  if (instfilters.length != 0) {
11543
- var _ProductFilterObjCont;
11624
+ var _ProductFilterObjCont3;
11544
11625
  var tempinstfilters = _toConsumableArray__default["default"](instfilters);
11545
11626
  tempinstfilters === null || tempinstfilters === void 0 ? void 0 : tempinstfilters.forEach(function (instfilteritem, instfilterindex) {
11546
11627
  instfilteritem.productvaluesfilter.forEach(function (valefilteritem, valefilteritemindex) {
11547
11628
  valefilteritem.isfilterselected = false;
11548
11629
  });
11549
11630
  });
11550
- ProductFilterObjContext === null || ProductFilterObjContext === void 0 ? void 0 : (_ProductFilterObjCont = ProductFilterObjContext.FilterOptions) === null || _ProductFilterObjCont === void 0 ? void 0 : _ProductFilterObjCont.forEach(function (filteritem, filterindex) {
11631
+ ProductFilterObjContext === null || ProductFilterObjContext === void 0 ? void 0 : (_ProductFilterObjCont3 = ProductFilterObjContext.FilterOptions) === null || _ProductFilterObjCont3 === void 0 ? void 0 : _ProductFilterObjCont3.forEach(function (filteritem, filterindex) {
11551
11632
  tempinstfilters === null || tempinstfilters === void 0 ? void 0 : tempinstfilters.forEach(function (instfilteritem, instfilterindex) {
11552
11633
  var _instfilteritem$produ;
11553
11634
  instfilteritem === null || instfilteritem === void 0 ? void 0 : (_instfilteritem$produ = instfilteritem.productvaluesfilter) === null || _instfilteritem$produ === void 0 ? void 0 : _instfilteritem$produ.forEach(function (valefilteritem, valefilteritemindex) {
@@ -11560,7 +11641,7 @@
11560
11641
  setinstfilters(_toConsumableArray__default["default"](tempinstfilters));
11561
11642
  }
11562
11643
  if (instcategories.length != 0) {
11563
- var _ProductFilterObjCont2;
11644
+ var _ProductFilterObjCont4;
11564
11645
  var tempInstcategories = _toConsumableArray__default["default"](instcategories);
11565
11646
  tempInstcategories.forEach(function (catitem, catindex) {
11566
11647
  catitem.parentcolletions.forEach(function (parentcolitem, parentcolindex) {
@@ -11569,7 +11650,7 @@
11569
11650
  });
11570
11651
  });
11571
11652
  });
11572
- ProductFilterObjContext === null || ProductFilterObjContext === void 0 ? void 0 : (_ProductFilterObjCont2 = ProductFilterObjContext.collections) === null || _ProductFilterObjCont2 === void 0 ? void 0 : _ProductFilterObjCont2.forEach(function (filteritem, filterindex) {
11653
+ ProductFilterObjContext === null || ProductFilterObjContext === void 0 ? void 0 : (_ProductFilterObjCont4 = ProductFilterObjContext.collections) === null || _ProductFilterObjCont4 === void 0 ? void 0 : _ProductFilterObjCont4.forEach(function (filteritem, filterindex) {
11573
11654
  tempInstcategories.forEach(function (catitem, catindex) {
11574
11655
  catitem.parentcolletions.forEach(function (parentcolitem, parentcolindex) {
11575
11656
  parentcolitem.collections.forEach(function (colitem, colindex) {
@@ -11583,12 +11664,12 @@
11583
11664
  setinstcategories(_toConsumableArray__default["default"](tempInstcategories));
11584
11665
  }
11585
11666
  if (instcollections.length != 0) {
11586
- var _ProductFilterObjCont3;
11667
+ var _ProductFilterObjCont5;
11587
11668
  var tempInstcollections = _toConsumableArray__default["default"](instcollections);
11588
11669
  tempInstcollections.forEach(function (instfilteritem, valefilteritemindex) {
11589
11670
  instfilteritem.isfilterselected = false;
11590
11671
  });
11591
- ProductFilterObjContext === null || ProductFilterObjContext === void 0 ? void 0 : (_ProductFilterObjCont3 = ProductFilterObjContext.collections) === null || _ProductFilterObjCont3 === void 0 ? void 0 : _ProductFilterObjCont3.forEach(function (filteritem, filterindex) {
11672
+ ProductFilterObjContext === null || ProductFilterObjContext === void 0 ? void 0 : (_ProductFilterObjCont5 = ProductFilterObjContext.collections) === null || _ProductFilterObjCont5 === void 0 ? void 0 : _ProductFilterObjCont5.forEach(function (filteritem, filterindex) {
11592
11673
  tempInstcollections === null || tempInstcollections === void 0 ? void 0 : tempInstcollections.forEach(function (instfilteritem, instfilterindex) {
11593
11674
  if (instfilteritem.collectionid == filteritem) {
11594
11675
  instfilteritem.isfilterselected = true;
@@ -11642,6 +11723,7 @@
11642
11723
  tempfetchproductsfilerobjcontext.collections.push(collectionid);
11643
11724
  }
11644
11725
  tempfetchproductsfilerobjcontext.page = 0;
11726
+ tempfetchproductsfilerobjcontext.ProductFetchingType = 'Random';
11645
11727
  setProductFilterObjContext(_objectSpread$1U({}, tempfetchproductsfilerobjcontext));
11646
11728
  filterrouting(tempfetchproductsfilerobjcontext);
11647
11729
  // routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
@@ -11801,7 +11883,7 @@
11801
11883
  className: 'col-lg-12'
11802
11884
  }, /*#__PURE__*/React__default["default"].createElement("div", {
11803
11885
  className: langdetect == 'en' ? "".concat(filterstyles.timeline, " ").concat(filterstyles.timelinetrans) + ' p-sm-0 ' : "".concat(filterstyles.timeline, " ").concat(filterstyles.timelinetrans) + ' p-sm-0 '
11804
- }, instcollections.map(function (item, index) {
11886
+ }, collectionstobevisible.map(function (item, index) {
11805
11887
  return /*#__PURE__*/React__default["default"].createElement("div", {
11806
11888
  className: "".concat(filterstyles.border_left_line, " ").concat(filterstyles.timelineinnercont, " ").concat(filter_cssstyles.timelineinnercont, "\n ").concat(item.isfilterselected ? "".concat(filter_cssstyles.timelineinnercont_active, " ").concat(filterstyles.timelineinnercont_active) : '', "\n ") + ' d-flex align-items-start pb-3 ',
11807
11889
  onClick: function onClick() {
@@ -11819,7 +11901,18 @@
11819
11901
  color: item.isfilterselected ? sectionproperties.activecat_color : ''
11820
11902
  }
11821
11903
  }, langdetect == 'en' ? item.title_en : item.title_ar)));
11822
- })))))), /*#__PURE__*/React__default["default"].createElement("hr", {
11904
+ })), sectionproperties.showshowallbtn == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
11905
+ "class": "col-lg-12 allcentered"
11906
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
11907
+ "class": filter_cssstyles.showallbtn,
11908
+ style: {}
11909
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
11910
+ "class": "m-0 p-0",
11911
+ onClick: function onClick() {
11912
+ setcollectionstobevisible(instcollections);
11913
+ }
11914
+ // style={{ cursor: 'pointer' }}
11915
+ }, langdetect == 'en' ? sectionproperties.showalltexten : sectionproperties.showalltextar))))))), /*#__PURE__*/React__default["default"].createElement("hr", {
11823
11916
  className: "mt-3 mb-3"
11824
11917
  })));
11825
11918
  };
@@ -11972,6 +12065,14 @@
11972
12065
  ':hover': {
11973
12066
  color: sectionproperties.explorebtncoloronhover
11974
12067
  }
12068
+ }),
12069
+ showallbtn: glamor.css({
12070
+ color: sectionproperties.showallcolor,
12071
+ ':hover': {
12072
+ transition: '.3s',
12073
+ cursor: 'pointer',
12074
+ color: sectionproperties.showallcolorhover
12075
+ }
11975
12076
  })
11976
12077
  };
11977
12078
  var filterrouting = function filterrouting(tempfetchproductsfilerobjcontext) {
@@ -12128,7 +12229,8 @@
12128
12229
  return /*#__PURE__*/React__default["default"].createElement("div", {
12129
12230
  className: sectionproperties.filterdirection == 'Horizontal' ? 'col-lg-12 p-0 w-100 filter mt-md-0 ' : 'col-lg-12 p-0 w-100 filter mt-md-0 d-md-none',
12130
12231
  style: {
12131
- marginTop: sectionproperties.filtersection_mt + 'px'
12232
+ marginTop: sectionproperties.filtersection_mt + 'px',
12233
+ minHeight: sectionproperties.filterminheight == 0 ? 'auto' : sectionproperties.filterminheight + 'vh'
12132
12234
  }
12133
12235
  }, sectionproperties.filterdirection == 'Horizontal' && /*#__PURE__*/React__default["default"].createElement("div", {
12134
12236
  "class": "row m-0 w-100"
@@ -43005,9 +43107,7 @@
43005
43107
  }, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
43006
43108
  urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
43007
43109
  publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
43008
- path: bgimagearrayofobjs.length != 0 ? langdetect == 'en' ?
43009
- // 'tr:w-0,h-0' +
43010
- bgimagearrayofobjs[index].bg1_image : bgimagearrayofobjs[index].bg1_image_ar : '',
43110
+ path: bgimagearrayofobjs.length != 0 ? langdetect == 'en' ? '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + bgimagearrayofobjs[index].bg1_image : '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + bgimagearrayofobjs[index].bg1_image_ar : '',
43011
43111
  className: sectionproperties.bgcovercontainresponsive == 'Contain' ? 'objectFit-md-contain' : '',
43012
43112
  style: {
43013
43113
  height: '100%',
@@ -43027,7 +43127,7 @@
43027
43127
  }, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
43028
43128
  urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
43029
43129
  publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
43030
- path: bgimagearrayofobjs.length != 0 ? langdetect == 'en' ? bgimagearrayofobjs[index].bg1_imageresponsive : bgimagearrayofobjs[index].bg1_imageresponsive_ar : '',
43130
+ path: bgimagearrayofobjs.length != 0 ? langdetect == 'en' ? '/tr:w-' + sectionproperties.imagetr_w_resp + ',h-' + sectionproperties.imagetr_h_resp + '/' + bgimagearrayofobjs[index].bg1_imageresponsive : '/tr:w-' + sectionproperties.imagetr_w_resp + ',h-' + sectionproperties.imagetr_h_resp + '/' + bgimagearrayofobjs[index].bg1_imageresponsive_ar : '',
43031
43131
  className: sectionproperties.bgcovercontainresponsive == 'Contain' ? 'objectFit-md-contain' : '',
43032
43132
  style: {
43033
43133
  height: '100%',
@@ -43083,11 +43183,7 @@
43083
43183
  }
43084
43184
  }
43085
43185
  }
43086
- }, langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar, ' ', langdetect == 'en' ? /*#__PURE__*/React__default["default"].createElement(IoIosArrowRoundForward.IoIosArrowRoundForward, {
43087
- size: 20
43088
- }) : /*#__PURE__*/React__default["default"].createElement(IoIosArrowRoundBack.IoIosArrowRoundBack, {
43089
- size: 20
43090
- }))), /*#__PURE__*/React__default["default"].createElement("div", {
43186
+ }, langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar, ' ')), /*#__PURE__*/React__default["default"].createElement("div", {
43091
43187
  className: "col-md-12 d-none d-md-flex flex-column mt-auto mb-auto "
43092
43188
  }, /*#__PURE__*/React__default["default"].createElement("p", {
43093
43189
  className: bgcssstyles.text1styles + ' wordbreak m-0 ',
@@ -43301,7 +43397,7 @@
43301
43397
  borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px',
43302
43398
  height: sectionproperties.image_height + 'px'
43303
43399
  }
43304
- }, item.linkclicked == true && item.linktype != 'External Link ' && /*#__PURE__*/React__default["default"].createElement(ReactPlayer__default["default"], {
43400
+ }, item.linkclicked == true && item.linktype != 'External Link' && /*#__PURE__*/React__default["default"].createElement(ReactPlayer__default["default"], {
43305
43401
  url: item.url,
43306
43402
  height: sectionproperties.image_height + 'px',
43307
43403
  width: '100%',
@@ -43310,7 +43406,7 @@
43310
43406
  loop: true,
43311
43407
  muted: true,
43312
43408
  playsinline: true
43313
- }), item.image == null && item.linktype != 'External Link ' && /*#__PURE__*/React__default["default"].createElement(ReactPlayer__default["default"], {
43409
+ }), item.image == null && item.linktype != 'External Link' && /*#__PURE__*/React__default["default"].createElement(ReactPlayer__default["default"], {
43314
43410
  url: item.url,
43315
43411
  height: sectionproperties.image_height + 'px',
43316
43412
  width: '100%',
@@ -47006,6 +47102,8 @@
47006
47102
  cardarrayofobjs = _useState6[0],
47007
47103
  setcardarrayofobjs = _useState6[1];
47008
47104
  var ikimagecredcontext = props.actions.ikimagecredcontext;
47105
+ var routingcountext = props.actions.routingcountext;
47106
+ var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
47009
47107
  React.useEffect(function () {
47010
47108
  if (props.srcfrom == 'addsectionform') {
47011
47109
  var secpropobj = {};
@@ -57170,7 +57268,7 @@
57170
57268
  fontSize: sectionproperties.pillfontSize + 'px',
57171
57269
  direction: 'ltr'
57172
57270
  }
57173
- }, '-' + Math.round(10.0 * ((parseInt(item.defaultprice) - parseInt(item.defaultsaleprice)) / parseInt(item.defaultprice)) * 100) / 10.0 + '%')), /*#__PURE__*/React__default["default"].createElement("ul", {
57271
+ }, '-' + parseFloat(Math.round(10.0 * ((parseInt(item.defaultprice) - parseInt(item.defaultsaleprice)) / parseInt(item.defaultprice)) * 100) / 10.0).toFixed(0) + '%')), /*#__PURE__*/React__default["default"].createElement("ul", {
57174
57272
  "class": sectionproperties.transition == 'Bottom' ? "".concat(cardstyles.buttonContainerBottom) + ' m-0 p-0 ' : sectionproperties.transition == 'Center' ? "".concat(cardstyles.buttonContainerCenter) + ' m-0 p-0 ' : "".concat(cardstyles.buttonContainerBottom, " ").concat(cardstyles.buttonContainerBottom_show) + ' m-0 p-0 '
57175
57273
  }, sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("li", {
57176
57274
  "class": langdetect == 'en' ? 'mr-3 cursor-pointer ' : 'ml-3 cursor-pointer ',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tabexseriescomponents",
3
- "version": "0.0.314",
3
+ "version": "0.0.316",
4
4
  "description": "your description",
5
5
  "main": "dist/index.cjs.js",
6
6
  "scripts": {