tabexseriescomponents 0.0.768 → 0.0.770

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
@@ -16079,7 +16079,7 @@ var Filter$1 = function Filter(props) {
16079
16079
  parentidsfound = ProductFilterObjContext === null || ProductFilterObjContext === void 0 ? void 0 : ProductFilterObjContext.collections;
16080
16080
  }
16081
16081
  } else if (ProductFilterObjContext.ProductFetchingType == 'Category') {
16082
- var _authdetailsContext$i;
16082
+ var _authdetailsContext$i, _authdetailsContext$i2;
16083
16083
  instcategories === null || instcategories === void 0 || instcategories.forEach(function (catitem, catindex) {
16084
16084
  var _ProductFilterObjCont;
16085
16085
  ProductFilterObjContext === null || ProductFilterObjContext === void 0 || (_ProductFilterObjCont = ProductFilterObjContext.collections) === null || _ProductFilterObjCont === void 0 || _ProductFilterObjCont.forEach(function (colitem2, colindex2) {
@@ -16091,7 +16091,7 @@ var Filter$1 = function Filter(props) {
16091
16091
  }
16092
16092
  });
16093
16093
  });
16094
- if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : _authdetailsContext$i.instid) == '65f69ce0a34b6') {
16094
+ if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : _authdetailsContext$i.instid) == '65f69ce0a34b6' || (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i2 = authdetailsContext.instinfo) === null || _authdetailsContext$i2 === void 0 ? void 0 : _authdetailsContext$i2.instid) == '661bd8f2c412d') {
16095
16095
  _toConsumableArray__default["default"](instcategories);
16096
16096
  var newisntcatarr = [];
16097
16097
  instcategories === null || instcategories === void 0 || instcategories.forEach(function (it2, ind2) {
@@ -16622,17 +16622,38 @@ var Filter$1 = function Filter(props) {
16622
16622
  }, /*#__PURE__*/React__default["default"].createElement("div", {
16623
16623
  className: langdetect == 'en' ? "".concat(filterstyles.timeline) + ' p-sm-0 ' : "".concat(filterstyles.timeline, " ").concat(filterstyles.timelinetrans) + ' p-sm-0 '
16624
16624
  }, item === null || item === void 0 || (_item$featuresselectb = item.featuresselectbovalue) === null || _item$featuresselectb === void 0 ? void 0 : _item$featuresselectb.map(function (slecitem, slecindex) {
16625
- return /*#__PURE__*/React__default["default"].createElement("div", {
16626
- className: "".concat(filterstyles.border_left_line, " ").concat(filterstyles.timelineinnercont, " ").concat(filter_cssstyles.timelineinnercont, "\n ").concat(slecitem.isfilterselected ? "".concat(filter_cssstyles.timelineinnercont_active, " ").concat(filterstyles.timelineinnercont_active) : '', "\n \n ") + ' d-flex align-items-center pb-3 ',
16627
- onClick: function onClick(e) {
16628
- var isattrexists = false;
16629
- var tempproductfeatuesarr = _toConsumableArray__default["default"](productfeatuesarr);
16625
+ var ischecked = false;
16626
+ if (ProductFilterObjContext != undefined && ProductFilterObjContext != null && ProductFilterObjContext.prod_featruesar != undefined && ProductFilterObjContext.prod_featruesar != null && ProductFilterObjContext.prod_featruesar.length != 0) {
16627
+ var tempproductfeatuesarr = _toConsumableArray__default["default"](ProductFilterObjContext === null || ProductFilterObjContext === void 0 ? void 0 : ProductFilterObjContext.prod_featruesar);
16628
+ if (tempproductfeatuesarr.length != 0) {
16630
16629
  tempproductfeatuesarr === null || tempproductfeatuesarr === void 0 || tempproductfeatuesarr.forEach(function (attritem, attrindex) {
16631
- if (attritem.id == slecitem.featureid) {
16632
- tempproductfeatuesarr[attrindex].value = slecitem.value_en;
16633
- isattrexists = true;
16630
+ if (attritem.value == slecitem.value_en) {
16631
+ ischecked = true;
16634
16632
  }
16635
16633
  });
16634
+ }
16635
+ }
16636
+ return /*#__PURE__*/React__default["default"].createElement("div", {
16637
+ // className={
16638
+ // `${filterstyles.border_left_line} ${filterstyles.timelineinnercont} ${filter_cssstyles.timelineinnercont}
16639
+ // ${slecitem.isfilterselected ? `${filter_cssstyles.timelineinnercont_active} ${filterstyles.timelineinnercont_active}` : ''}
16640
+
16641
+ // ` + ' d-flex align-items-center pb-3 '
16642
+ // }
16643
+ className: "".concat(filterstyles.border_left_line, " ").concat(filterstyles.timelineinnercont, " ").concat(filter_cssstyles.timelineinnercont, "\n ").concat(ischecked ? "".concat(filter_cssstyles.timelineinnercont_active, " ").concat(filterstyles.timelineinnercont_active) : '', "\n \n ") + ' d-flex align-items-center pb-3 ',
16644
+ onClick: function onClick(e) {
16645
+ var isattrexists = false;
16646
+ var tempproductfeatuesarr = [];
16647
+ if (ProductFilterObjContext != undefined && ProductFilterObjContext != null && ProductFilterObjContext.prod_featruesar != undefined && ProductFilterObjContext.prod_featruesar != null && ProductFilterObjContext.prod_featruesar.length != 0) {
16648
+ var _tempproductfeatuesar;
16649
+ tempproductfeatuesarr = _toConsumableArray__default["default"](ProductFilterObjContext.prod_featruesar);
16650
+ (_tempproductfeatuesar = tempproductfeatuesarr) === null || _tempproductfeatuesar === void 0 || _tempproductfeatuesar.forEach(function (attritem, attrindex) {
16651
+ if (attritem.id == slecitem.featureid) {
16652
+ tempproductfeatuesarr[attrindex].value = slecitem.value_en;
16653
+ isattrexists = true;
16654
+ }
16655
+ });
16656
+ }
16636
16657
  if (isattrexists == false) {
16637
16658
  tempproductfeatuesarr.push({
16638
16659
  id: slecitem.featureid,
@@ -16640,11 +16661,14 @@ var Filter$1 = function Filter(props) {
16640
16661
  });
16641
16662
  }
16642
16663
  setproductfeatuesarr(_toConsumableArray__default["default"](tempproductfeatuesarr));
16643
-
16644
- // setfilterfunc(valueitem.valueid, valueindex, index, 'assign');
16645
16664
  }
16646
16665
  }, /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("div", {
16647
- className: " ".concat(slecitem.isfilterselected ? filter_cssstyles.btn_item_active : '', " ").concat(filterstyles.btn_item, " ").concat(filter_cssstyles.btn_item) + ' d-flex align-items-center '
16666
+ // className={
16667
+ // ` ${slecitem.isfilterselected ? filter_cssstyles.btn_item_active : ''} ${filterstyles.btn_item} ${
16668
+ // filter_cssstyles.btn_item
16669
+ // }` + ' d-flex align-items-center '
16670
+ // }
16671
+ className: " ".concat(ischecked ? filter_cssstyles.btn_item_active : '', " ").concat(filterstyles.btn_item, " ").concat(filter_cssstyles.btn_item) + ' d-flex align-items-center '
16648
16672
  }, /*#__PURE__*/React__default["default"].createElement("i", {
16649
16673
  className: "h-100 d-flex align-items-center"
16650
16674
  }))), /*#__PURE__*/React__default["default"].createElement("div", {
@@ -18735,8 +18759,13 @@ var CardsSection = function CardsSection(props) {
18735
18759
  };
18736
18760
  if (fetchingtype == 'products') {
18737
18761
  var _arrayItem$features3;
18738
- // var itemquantity = 1;
18739
18762
  var itemquantity = 1;
18763
+ // if(sectionproperties.quantitystartnumber!=undefined&& sectionproperties.quantitystartnumber!=null&&sectionproperties.quantitystartnumber==1){
18764
+ // var itemquantity = 0;
18765
+ // }else{
18766
+ // var itemquantity = 1;
18767
+
18768
+ // }
18740
18769
  if (langdetect == 'en') {
18741
18770
  cardobj.name = arrayItem.productinfo.name_en;
18742
18771
  } else {
@@ -72986,31 +73015,27 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
72986
73015
  var cardonclickfunctionContext = props.actions.cardonclickfunctionContext;
72987
73016
  var NotificationManager = props.actions.NotificationManager;
72988
73017
  var ikimagecredcontext = props.actions.ikimagecredcontext;
73018
+ var _useState5 = React.useState(''),
73019
+ _useState6 = _slicedToArray__default["default"](_useState5, 2);
73020
+ _useState6[0];
73021
+ _useState6[1];
72989
73022
  React.useEffect(function () {
72990
- if (props.srcfrom == 'addsectionform') {
72991
- var secpropobj = {};
72992
- props.defaultproperties.forEach(function (defaultpropobj, defaultpropindex) {
72993
- secpropobj[defaultpropobj.property_css_name] = defaultpropobj.property_value;
72994
- });
72995
- setsectionproperties(_objectSpread$v({}, secpropobj));
72996
- } else {
72997
- var secpropobj = {};
72998
- StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
72999
- if (sectionitem.sectionid == props.sectionidprops) {
73000
- sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
73001
- secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
73002
- });
73003
- }
73004
- });
73005
- setsectionproperties(_objectSpread$v({}, secpropobj));
73006
- }
73023
+ var secpropobj = {};
73024
+ StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
73025
+ if (sectionitem.sectionid == props.sectionidprops) {
73026
+ sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
73027
+ secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
73028
+ });
73029
+ }
73030
+ });
73031
+ setsectionproperties(_objectSpread$v({}, secpropobj));
73007
73032
  }, [StatePagePropertiesContext]);
73008
73033
  React.useEffect(function () {
73009
73034
  setitem(props.cardinfoitemprops);
73010
73035
  }, [props.cardinfoitemprops]);
73011
73036
  var updatequantity = function updatequantity(type) {
73012
73037
  var tempitem = _objectSpread$v({}, item);
73013
- tempitem.quantity = parseInt(tempitem.quantity);
73038
+ tempitem.quantity = 0;
73014
73039
  if (type == 'add') {
73015
73040
  tempitem.quantity = tempitem.quantity + 1;
73016
73041
  } else if (type == 'remove') {
@@ -73274,6 +73299,10 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
73274
73299
  })), langdetect == 'en' ? sectionproperties.cartBtnContentenglish : sectionproperties.cartBtnContentarabic);
73275
73300
  }
73276
73301
  };
73302
+ var _useState7 = React.useState(0),
73303
+ _useState8 = _slicedToArray__default["default"](_useState7, 2);
73304
+ _useState8[0];
73305
+ _useState8[1];
73277
73306
  return /*#__PURE__*/React__default["default"].createElement("div", {
73278
73307
  "class": "row ml-0 mr-0 w-100 mb-sm-5",
73279
73308
  style: {
package/dist/index.esm.js CHANGED
@@ -16030,7 +16030,7 @@ var Filter$1 = function Filter(props) {
16030
16030
  parentidsfound = ProductFilterObjContext === null || ProductFilterObjContext === void 0 ? void 0 : ProductFilterObjContext.collections;
16031
16031
  }
16032
16032
  } else if (ProductFilterObjContext.ProductFetchingType == 'Category') {
16033
- var _authdetailsContext$i;
16033
+ var _authdetailsContext$i, _authdetailsContext$i2;
16034
16034
  instcategories === null || instcategories === void 0 || instcategories.forEach(function (catitem, catindex) {
16035
16035
  var _ProductFilterObjCont;
16036
16036
  ProductFilterObjContext === null || ProductFilterObjContext === void 0 || (_ProductFilterObjCont = ProductFilterObjContext.collections) === null || _ProductFilterObjCont === void 0 || _ProductFilterObjCont.forEach(function (colitem2, colindex2) {
@@ -16042,7 +16042,7 @@ var Filter$1 = function Filter(props) {
16042
16042
  }
16043
16043
  });
16044
16044
  });
16045
- if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : _authdetailsContext$i.instid) == '65f69ce0a34b6') {
16045
+ if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : _authdetailsContext$i.instid) == '65f69ce0a34b6' || (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i2 = authdetailsContext.instinfo) === null || _authdetailsContext$i2 === void 0 ? void 0 : _authdetailsContext$i2.instid) == '661bd8f2c412d') {
16046
16046
  _toConsumableArray(instcategories);
16047
16047
  var newisntcatarr = [];
16048
16048
  instcategories === null || instcategories === void 0 || instcategories.forEach(function (it2, ind2) {
@@ -16573,17 +16573,38 @@ var Filter$1 = function Filter(props) {
16573
16573
  }, /*#__PURE__*/React.createElement("div", {
16574
16574
  className: langdetect == 'en' ? "".concat(filterstyles.timeline) + ' p-sm-0 ' : "".concat(filterstyles.timeline, " ").concat(filterstyles.timelinetrans) + ' p-sm-0 '
16575
16575
  }, item === null || item === void 0 || (_item$featuresselectb = item.featuresselectbovalue) === null || _item$featuresselectb === void 0 ? void 0 : _item$featuresselectb.map(function (slecitem, slecindex) {
16576
- return /*#__PURE__*/React.createElement("div", {
16577
- className: "".concat(filterstyles.border_left_line, " ").concat(filterstyles.timelineinnercont, " ").concat(filter_cssstyles.timelineinnercont, "\n ").concat(slecitem.isfilterselected ? "".concat(filter_cssstyles.timelineinnercont_active, " ").concat(filterstyles.timelineinnercont_active) : '', "\n \n ") + ' d-flex align-items-center pb-3 ',
16578
- onClick: function onClick(e) {
16579
- var isattrexists = false;
16580
- var tempproductfeatuesarr = _toConsumableArray(productfeatuesarr);
16576
+ var ischecked = false;
16577
+ if (ProductFilterObjContext != undefined && ProductFilterObjContext != null && ProductFilterObjContext.prod_featruesar != undefined && ProductFilterObjContext.prod_featruesar != null && ProductFilterObjContext.prod_featruesar.length != 0) {
16578
+ var tempproductfeatuesarr = _toConsumableArray(ProductFilterObjContext === null || ProductFilterObjContext === void 0 ? void 0 : ProductFilterObjContext.prod_featruesar);
16579
+ if (tempproductfeatuesarr.length != 0) {
16581
16580
  tempproductfeatuesarr === null || tempproductfeatuesarr === void 0 || tempproductfeatuesarr.forEach(function (attritem, attrindex) {
16582
- if (attritem.id == slecitem.featureid) {
16583
- tempproductfeatuesarr[attrindex].value = slecitem.value_en;
16584
- isattrexists = true;
16581
+ if (attritem.value == slecitem.value_en) {
16582
+ ischecked = true;
16585
16583
  }
16586
16584
  });
16585
+ }
16586
+ }
16587
+ return /*#__PURE__*/React.createElement("div", {
16588
+ // className={
16589
+ // `${filterstyles.border_left_line} ${filterstyles.timelineinnercont} ${filter_cssstyles.timelineinnercont}
16590
+ // ${slecitem.isfilterselected ? `${filter_cssstyles.timelineinnercont_active} ${filterstyles.timelineinnercont_active}` : ''}
16591
+
16592
+ // ` + ' d-flex align-items-center pb-3 '
16593
+ // }
16594
+ className: "".concat(filterstyles.border_left_line, " ").concat(filterstyles.timelineinnercont, " ").concat(filter_cssstyles.timelineinnercont, "\n ").concat(ischecked ? "".concat(filter_cssstyles.timelineinnercont_active, " ").concat(filterstyles.timelineinnercont_active) : '', "\n \n ") + ' d-flex align-items-center pb-3 ',
16595
+ onClick: function onClick(e) {
16596
+ var isattrexists = false;
16597
+ var tempproductfeatuesarr = [];
16598
+ if (ProductFilterObjContext != undefined && ProductFilterObjContext != null && ProductFilterObjContext.prod_featruesar != undefined && ProductFilterObjContext.prod_featruesar != null && ProductFilterObjContext.prod_featruesar.length != 0) {
16599
+ var _tempproductfeatuesar;
16600
+ tempproductfeatuesarr = _toConsumableArray(ProductFilterObjContext.prod_featruesar);
16601
+ (_tempproductfeatuesar = tempproductfeatuesarr) === null || _tempproductfeatuesar === void 0 || _tempproductfeatuesar.forEach(function (attritem, attrindex) {
16602
+ if (attritem.id == slecitem.featureid) {
16603
+ tempproductfeatuesarr[attrindex].value = slecitem.value_en;
16604
+ isattrexists = true;
16605
+ }
16606
+ });
16607
+ }
16587
16608
  if (isattrexists == false) {
16588
16609
  tempproductfeatuesarr.push({
16589
16610
  id: slecitem.featureid,
@@ -16591,11 +16612,14 @@ var Filter$1 = function Filter(props) {
16591
16612
  });
16592
16613
  }
16593
16614
  setproductfeatuesarr(_toConsumableArray(tempproductfeatuesarr));
16594
-
16595
- // setfilterfunc(valueitem.valueid, valueindex, index, 'assign');
16596
16615
  }
16597
16616
  }, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
16598
- className: " ".concat(slecitem.isfilterselected ? filter_cssstyles.btn_item_active : '', " ").concat(filterstyles.btn_item, " ").concat(filter_cssstyles.btn_item) + ' d-flex align-items-center '
16617
+ // className={
16618
+ // ` ${slecitem.isfilterselected ? filter_cssstyles.btn_item_active : ''} ${filterstyles.btn_item} ${
16619
+ // filter_cssstyles.btn_item
16620
+ // }` + ' d-flex align-items-center '
16621
+ // }
16622
+ className: " ".concat(ischecked ? filter_cssstyles.btn_item_active : '', " ").concat(filterstyles.btn_item, " ").concat(filter_cssstyles.btn_item) + ' d-flex align-items-center '
16599
16623
  }, /*#__PURE__*/React.createElement("i", {
16600
16624
  className: "h-100 d-flex align-items-center"
16601
16625
  }))), /*#__PURE__*/React.createElement("div", {
@@ -18686,8 +18710,13 @@ var CardsSection = function CardsSection(props) {
18686
18710
  };
18687
18711
  if (fetchingtype == 'products') {
18688
18712
  var _arrayItem$features3;
18689
- // var itemquantity = 1;
18690
18713
  var itemquantity = 1;
18714
+ // if(sectionproperties.quantitystartnumber!=undefined&& sectionproperties.quantitystartnumber!=null&&sectionproperties.quantitystartnumber==1){
18715
+ // var itemquantity = 0;
18716
+ // }else{
18717
+ // var itemquantity = 1;
18718
+
18719
+ // }
18691
18720
  if (langdetect == 'en') {
18692
18721
  cardobj.name = arrayItem.productinfo.name_en;
18693
18722
  } else {
@@ -72937,31 +72966,27 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
72937
72966
  var cardonclickfunctionContext = props.actions.cardonclickfunctionContext;
72938
72967
  var NotificationManager = props.actions.NotificationManager;
72939
72968
  var ikimagecredcontext = props.actions.ikimagecredcontext;
72969
+ var _useState5 = useState(''),
72970
+ _useState6 = _slicedToArray(_useState5, 2);
72971
+ _useState6[0];
72972
+ _useState6[1];
72940
72973
  useEffect(function () {
72941
- if (props.srcfrom == 'addsectionform') {
72942
- var secpropobj = {};
72943
- props.defaultproperties.forEach(function (defaultpropobj, defaultpropindex) {
72944
- secpropobj[defaultpropobj.property_css_name] = defaultpropobj.property_value;
72945
- });
72946
- setsectionproperties(_objectSpread$v({}, secpropobj));
72947
- } else {
72948
- var secpropobj = {};
72949
- StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
72950
- if (sectionitem.sectionid == props.sectionidprops) {
72951
- sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
72952
- secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
72953
- });
72954
- }
72955
- });
72956
- setsectionproperties(_objectSpread$v({}, secpropobj));
72957
- }
72974
+ var secpropobj = {};
72975
+ StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
72976
+ if (sectionitem.sectionid == props.sectionidprops) {
72977
+ sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
72978
+ secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
72979
+ });
72980
+ }
72981
+ });
72982
+ setsectionproperties(_objectSpread$v({}, secpropobj));
72958
72983
  }, [StatePagePropertiesContext]);
72959
72984
  useEffect(function () {
72960
72985
  setitem(props.cardinfoitemprops);
72961
72986
  }, [props.cardinfoitemprops]);
72962
72987
  var updatequantity = function updatequantity(type) {
72963
72988
  var tempitem = _objectSpread$v({}, item);
72964
- tempitem.quantity = parseInt(tempitem.quantity);
72989
+ tempitem.quantity = 0;
72965
72990
  if (type == 'add') {
72966
72991
  tempitem.quantity = tempitem.quantity + 1;
72967
72992
  } else if (type == 'remove') {
@@ -73225,6 +73250,10 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
73225
73250
  })), langdetect == 'en' ? sectionproperties.cartBtnContentenglish : sectionproperties.cartBtnContentarabic);
73226
73251
  }
73227
73252
  };
73253
+ var _useState7 = useState(0),
73254
+ _useState8 = _slicedToArray(_useState7, 2);
73255
+ _useState8[0];
73256
+ _useState8[1];
73228
73257
  return /*#__PURE__*/React.createElement("div", {
73229
73258
  "class": "row ml-0 mr-0 w-100 mb-sm-5",
73230
73259
  style: {
package/dist/index.umd.js CHANGED
@@ -15899,7 +15899,7 @@
15899
15899
  parentidsfound = ProductFilterObjContext === null || ProductFilterObjContext === void 0 ? void 0 : ProductFilterObjContext.collections;
15900
15900
  }
15901
15901
  } else if (ProductFilterObjContext.ProductFetchingType == 'Category') {
15902
- var _authdetailsContext$i;
15902
+ var _authdetailsContext$i, _authdetailsContext$i2;
15903
15903
  instcategories === null || instcategories === void 0 || instcategories.forEach(function (catitem, catindex) {
15904
15904
  var _ProductFilterObjCont;
15905
15905
  ProductFilterObjContext === null || ProductFilterObjContext === void 0 || (_ProductFilterObjCont = ProductFilterObjContext.collections) === null || _ProductFilterObjCont === void 0 || _ProductFilterObjCont.forEach(function (colitem2, colindex2) {
@@ -15911,7 +15911,7 @@
15911
15911
  }
15912
15912
  });
15913
15913
  });
15914
- if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : _authdetailsContext$i.instid) == '65f69ce0a34b6') {
15914
+ if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : _authdetailsContext$i.instid) == '65f69ce0a34b6' || (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i2 = authdetailsContext.instinfo) === null || _authdetailsContext$i2 === void 0 ? void 0 : _authdetailsContext$i2.instid) == '661bd8f2c412d') {
15915
15915
  _toConsumableArray__default["default"](instcategories);
15916
15916
  var newisntcatarr = [];
15917
15917
  instcategories === null || instcategories === void 0 || instcategories.forEach(function (it2, ind2) {
@@ -16442,17 +16442,38 @@
16442
16442
  }, /*#__PURE__*/React__default["default"].createElement("div", {
16443
16443
  className: langdetect == 'en' ? "".concat(filterstyles.timeline) + ' p-sm-0 ' : "".concat(filterstyles.timeline, " ").concat(filterstyles.timelinetrans) + ' p-sm-0 '
16444
16444
  }, item === null || item === void 0 || (_item$featuresselectb = item.featuresselectbovalue) === null || _item$featuresselectb === void 0 ? void 0 : _item$featuresselectb.map(function (slecitem, slecindex) {
16445
- return /*#__PURE__*/React__default["default"].createElement("div", {
16446
- className: "".concat(filterstyles.border_left_line, " ").concat(filterstyles.timelineinnercont, " ").concat(filter_cssstyles.timelineinnercont, "\n ").concat(slecitem.isfilterselected ? "".concat(filter_cssstyles.timelineinnercont_active, " ").concat(filterstyles.timelineinnercont_active) : '', "\n \n ") + ' d-flex align-items-center pb-3 ',
16447
- onClick: function onClick(e) {
16448
- var isattrexists = false;
16449
- var tempproductfeatuesarr = _toConsumableArray__default["default"](productfeatuesarr);
16445
+ var ischecked = false;
16446
+ if (ProductFilterObjContext != undefined && ProductFilterObjContext != null && ProductFilterObjContext.prod_featruesar != undefined && ProductFilterObjContext.prod_featruesar != null && ProductFilterObjContext.prod_featruesar.length != 0) {
16447
+ var tempproductfeatuesarr = _toConsumableArray__default["default"](ProductFilterObjContext === null || ProductFilterObjContext === void 0 ? void 0 : ProductFilterObjContext.prod_featruesar);
16448
+ if (tempproductfeatuesarr.length != 0) {
16450
16449
  tempproductfeatuesarr === null || tempproductfeatuesarr === void 0 || tempproductfeatuesarr.forEach(function (attritem, attrindex) {
16451
- if (attritem.id == slecitem.featureid) {
16452
- tempproductfeatuesarr[attrindex].value = slecitem.value_en;
16453
- isattrexists = true;
16450
+ if (attritem.value == slecitem.value_en) {
16451
+ ischecked = true;
16454
16452
  }
16455
16453
  });
16454
+ }
16455
+ }
16456
+ return /*#__PURE__*/React__default["default"].createElement("div", {
16457
+ // className={
16458
+ // `${filterstyles.border_left_line} ${filterstyles.timelineinnercont} ${filter_cssstyles.timelineinnercont}
16459
+ // ${slecitem.isfilterselected ? `${filter_cssstyles.timelineinnercont_active} ${filterstyles.timelineinnercont_active}` : ''}
16460
+
16461
+ // ` + ' d-flex align-items-center pb-3 '
16462
+ // }
16463
+ className: "".concat(filterstyles.border_left_line, " ").concat(filterstyles.timelineinnercont, " ").concat(filter_cssstyles.timelineinnercont, "\n ").concat(ischecked ? "".concat(filter_cssstyles.timelineinnercont_active, " ").concat(filterstyles.timelineinnercont_active) : '', "\n \n ") + ' d-flex align-items-center pb-3 ',
16464
+ onClick: function onClick(e) {
16465
+ var isattrexists = false;
16466
+ var tempproductfeatuesarr = [];
16467
+ if (ProductFilterObjContext != undefined && ProductFilterObjContext != null && ProductFilterObjContext.prod_featruesar != undefined && ProductFilterObjContext.prod_featruesar != null && ProductFilterObjContext.prod_featruesar.length != 0) {
16468
+ var _tempproductfeatuesar;
16469
+ tempproductfeatuesarr = _toConsumableArray__default["default"](ProductFilterObjContext.prod_featruesar);
16470
+ (_tempproductfeatuesar = tempproductfeatuesarr) === null || _tempproductfeatuesar === void 0 || _tempproductfeatuesar.forEach(function (attritem, attrindex) {
16471
+ if (attritem.id == slecitem.featureid) {
16472
+ tempproductfeatuesarr[attrindex].value = slecitem.value_en;
16473
+ isattrexists = true;
16474
+ }
16475
+ });
16476
+ }
16456
16477
  if (isattrexists == false) {
16457
16478
  tempproductfeatuesarr.push({
16458
16479
  id: slecitem.featureid,
@@ -16460,11 +16481,14 @@
16460
16481
  });
16461
16482
  }
16462
16483
  setproductfeatuesarr(_toConsumableArray__default["default"](tempproductfeatuesarr));
16463
-
16464
- // setfilterfunc(valueitem.valueid, valueindex, index, 'assign');
16465
16484
  }
16466
16485
  }, /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("div", {
16467
- className: " ".concat(slecitem.isfilterselected ? filter_cssstyles.btn_item_active : '', " ").concat(filterstyles.btn_item, " ").concat(filter_cssstyles.btn_item) + ' d-flex align-items-center '
16486
+ // className={
16487
+ // ` ${slecitem.isfilterselected ? filter_cssstyles.btn_item_active : ''} ${filterstyles.btn_item} ${
16488
+ // filter_cssstyles.btn_item
16489
+ // }` + ' d-flex align-items-center '
16490
+ // }
16491
+ className: " ".concat(ischecked ? filter_cssstyles.btn_item_active : '', " ").concat(filterstyles.btn_item, " ").concat(filter_cssstyles.btn_item) + ' d-flex align-items-center '
16468
16492
  }, /*#__PURE__*/React__default["default"].createElement("i", {
16469
16493
  className: "h-100 d-flex align-items-center"
16470
16494
  }))), /*#__PURE__*/React__default["default"].createElement("div", {
@@ -18555,8 +18579,13 @@
18555
18579
  };
18556
18580
  if (fetchingtype == 'products') {
18557
18581
  var _arrayItem$features3;
18558
- // var itemquantity = 1;
18559
18582
  var itemquantity = 1;
18583
+ // if(sectionproperties.quantitystartnumber!=undefined&& sectionproperties.quantitystartnumber!=null&&sectionproperties.quantitystartnumber==1){
18584
+ // var itemquantity = 0;
18585
+ // }else{
18586
+ // var itemquantity = 1;
18587
+
18588
+ // }
18560
18589
  if (langdetect == 'en') {
18561
18590
  cardobj.name = arrayItem.productinfo.name_en;
18562
18591
  } else {
@@ -72806,31 +72835,27 @@
72806
72835
  var cardonclickfunctionContext = props.actions.cardonclickfunctionContext;
72807
72836
  var NotificationManager = props.actions.NotificationManager;
72808
72837
  var ikimagecredcontext = props.actions.ikimagecredcontext;
72838
+ var _useState5 = React.useState(''),
72839
+ _useState6 = _slicedToArray__default["default"](_useState5, 2);
72840
+ _useState6[0];
72841
+ _useState6[1];
72809
72842
  React.useEffect(function () {
72810
- if (props.srcfrom == 'addsectionform') {
72811
- var secpropobj = {};
72812
- props.defaultproperties.forEach(function (defaultpropobj, defaultpropindex) {
72813
- secpropobj[defaultpropobj.property_css_name] = defaultpropobj.property_value;
72814
- });
72815
- setsectionproperties(_objectSpread$v({}, secpropobj));
72816
- } else {
72817
- var secpropobj = {};
72818
- StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
72819
- if (sectionitem.sectionid == props.sectionidprops) {
72820
- sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
72821
- secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
72822
- });
72823
- }
72824
- });
72825
- setsectionproperties(_objectSpread$v({}, secpropobj));
72826
- }
72843
+ var secpropobj = {};
72844
+ StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
72845
+ if (sectionitem.sectionid == props.sectionidprops) {
72846
+ sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
72847
+ secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
72848
+ });
72849
+ }
72850
+ });
72851
+ setsectionproperties(_objectSpread$v({}, secpropobj));
72827
72852
  }, [StatePagePropertiesContext]);
72828
72853
  React.useEffect(function () {
72829
72854
  setitem(props.cardinfoitemprops);
72830
72855
  }, [props.cardinfoitemprops]);
72831
72856
  var updatequantity = function updatequantity(type) {
72832
72857
  var tempitem = _objectSpread$v({}, item);
72833
- tempitem.quantity = parseInt(tempitem.quantity);
72858
+ tempitem.quantity = 0;
72834
72859
  if (type == 'add') {
72835
72860
  tempitem.quantity = tempitem.quantity + 1;
72836
72861
  } else if (type == 'remove') {
@@ -73094,6 +73119,10 @@
73094
73119
  })), langdetect == 'en' ? sectionproperties.cartBtnContentenglish : sectionproperties.cartBtnContentarabic);
73095
73120
  }
73096
73121
  };
73122
+ var _useState7 = React.useState(0),
73123
+ _useState8 = _slicedToArray__default["default"](_useState7, 2);
73124
+ _useState8[0];
73125
+ _useState8[1];
73097
73126
  return /*#__PURE__*/React__default["default"].createElement("div", {
73098
73127
  "class": "row ml-0 mr-0 w-100 mb-sm-5",
73099
73128
  style: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tabexseriescomponents",
3
- "version": "0.0.768",
3
+ "version": "0.0.770",
4
4
  "description": "your description",
5
5
  "main": "dist/index.cjs.js",
6
6
  "scripts": {