tabexseriescomponents 0.0.704 → 0.0.705

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
@@ -18195,7 +18195,7 @@ var CardsSection = function CardsSection(props) {
18195
18195
  };
18196
18196
  if (fetchingtype == 'products') {
18197
18197
  var _arrayItem$features3;
18198
- var itemquantity = 0;
18198
+ var itemquantity = 1;
18199
18199
  if (langdetect == 'en') {
18200
18200
  cardobj.name = arrayItem.productinfo.name_en;
18201
18201
  } else {
@@ -26681,7 +26681,7 @@ styleInject(css_248z$y);
26681
26681
  function ownKeys$1V(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
26682
26682
  function _objectSpread$1V(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1V(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1V(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
26683
26683
  var ClassicHeader = function ClassicHeader(props) {
26684
- var _authdetailsContext$i, _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$c, _authdetailsContext$c2, _authdetailsContext$c3, _authdetailsContext$c4, _fetchcustomercartQue, _fetchcustomercartQue2, _templatepropcontext$;
26684
+ var _authdetailsContext$i, _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$c, _authdetailsContext$c2, _authdetailsContext$c3, _authdetailsContext$c4, _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4, _templatepropcontext$;
26685
26685
  var LogoutMutationContext = props.actions.LogoutMutationContext;
26686
26686
  var setsidecartnavshowcontext = props.actions.setsidecartnavshowcontext;
26687
26687
  var setSearchHeaderInputContext = props.actions.setSearchHeaderInputContext;
@@ -27329,13 +27329,14 @@ var ClassicHeader = function ClassicHeader(props) {
27329
27329
  top: sectionproperties.cartbadgetop + 'px',
27330
27330
  right: sectionproperties.cartbadgeright + 'px'
27331
27331
  }
27332
- }, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue === void 0 || (_fetchcustomercartQue = _fetchcustomercartQue.data) === null || _fetchcustomercartQue === void 0 ? void 0 : _fetchcustomercartQue.customercart) != null ? fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue2 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue2 === void 0 || (_fetchcustomercartQue2 = _fetchcustomercartQue2.data) === null || _fetchcustomercartQue2 === void 0 || (_fetchcustomercartQue2 = _fetchcustomercartQue2.customercart) === null || _fetchcustomercartQue2 === void 0 || (_fetchcustomercartQue2 = _fetchcustomercartQue2.cartitems) === null || _fetchcustomercartQue2 === void 0 ? void 0 : _fetchcustomercartQue2.length : 0)), /*#__PURE__*/React__default["default"].createElement("p", {
27333
- "class": header_cssstyles.cartbtntext + ' mb-0 p-0 cartbtnicon ',
27332
+ }, fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue !== void 0 && (_fetchcustomercartQue = _fetchcustomercartQue.data) !== null && _fetchcustomercartQue !== void 0 && _fetchcustomercartQue.status && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue2 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue2 === void 0 || (_fetchcustomercartQue2 = _fetchcustomercartQue2.data) === null || _fetchcustomercartQue2 === void 0 || (_fetchcustomercartQue2 = _fetchcustomercartQue2.customercart) === null || _fetchcustomercartQue2 === void 0 || (_fetchcustomercartQue2 = _fetchcustomercartQue2.cartitems) === null || _fetchcustomercartQue2 === void 0 ? void 0 : _fetchcustomercartQue2.length) != 0 ? fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue3 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue3 === void 0 || (_fetchcustomercartQue3 = _fetchcustomercartQue3.data) === null || _fetchcustomercartQue3 === void 0 ? void 0 : _fetchcustomercartQue3.customercart.cartitems_count_withquantity : 0)), /*#__PURE__*/React__default["default"].createElement("p", {
27333
+ "class": ' mb-0 p-0 ',
27334
27334
  style: {
27335
27335
  marginLeft: langdetect == 'en' ? '9px' : 0,
27336
- marginRight: langdetect == 'ar' ? '9px' : 0
27336
+ marginRight: langdetect == 'ar' ? '9px' : 0,
27337
+ color: sectionproperties.cartBtnTextcolor
27337
27338
  }
27338
- }, langdetect == 'en' ? sectionproperties.cartBtnContentenglish : sectionproperties.cartBtnContentarabic)), /*#__PURE__*/React__default["default"].createElement("div", {
27339
+ }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue4 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue4 === void 0 || (_fetchcustomercartQue4 = _fetchcustomercartQue4.data) === null || _fetchcustomercartQue4 === void 0 || (_fetchcustomercartQue4 = _fetchcustomercartQue4.customercart) === null || _fetchcustomercartQue4 === void 0 ? void 0 : _fetchcustomercartQue4.totalprice).toFixed(2), langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
27339
27340
  "class": langdetect == 'en' ? 'headerdropdownml' : 'headerdropdownmr'
27340
27341
  }, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"], null, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Toggle, null, /*#__PURE__*/React__default["default"].createElement("li", {
27341
27342
  "class": ' d-flex align-items-center justify-content-center '
@@ -70556,7 +70557,10 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
70556
70557
  borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
70557
70558
  borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
70558
70559
  background: sectionproperties.image_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.image_bgcolor,
70559
- opacity: item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' ? 0.4 : 1
70560
+ opacity: item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' ? 0.4 : 1,
70561
+ '@media (max-width: 800px)': {
70562
+ height: sectionproperties.height_responsive + 'px'
70563
+ }
70560
70564
  }),
70561
70565
  quantitybtn: glamor.css({
70562
70566
  flex: 1,
@@ -70635,7 +70639,7 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
70635
70639
  return /*#__PURE__*/React__default["default"].createElement("div", {
70636
70640
  "class": ' d-flex align-items-center justify-content-center '
70637
70641
  }, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
70638
- color: "white",
70642
+ color: sectionproperties.cartBtnTextcolor,
70639
70643
  width: "20px",
70640
70644
  height: "20px",
70641
70645
  duration: "1s"
@@ -70761,7 +70765,7 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
70761
70765
  size: sectionproperties.favBtnIconfontsize
70762
70766
  }), sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React__default["default"].createElement(FaRegHeart.FaRegHeart, {
70763
70767
  size: sectionproperties.favBtnIconfontsize
70764
- })))), (item === null || item === void 0 ? void 0 : item.hassale) == 1 && sectionproperties.prodsalePriceshow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
70768
+ })))), (item === null || item === void 0 ? void 0 : item.hassale) == 1 && sectionproperties.prodsalePriceshow == 'Show' && sectionproperties.showbadge == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
70765
70769
  "class": "allcentered",
70766
70770
  style: {
70767
70771
  position: 'absolute',
@@ -70778,7 +70782,38 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
70778
70782
  color: sectionproperties.badge_color,
70779
70783
  fontSize: sectionproperties.badge_fontsize + 'px'
70780
70784
  }
70781
- }, langdetect == 'en' ? sectionproperties.badgeContentEn : sectionproperties.badgeContentAr)), item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && /*#__PURE__*/React__default["default"].createElement("div", {
70785
+ }, langdetect == 'en' ? sectionproperties.badgeContentEn : sectionproperties.badgeContentAr)), sectionproperties.showpill == 'Show' && item.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
70786
+ style: {
70787
+ position: 'absolute',
70788
+ top: sectionproperties.pillpositionfromtop + 'px',
70789
+ left: sectionproperties.pillpositionfromright + 'px',
70790
+ // right: langdetect == 'en' ? '' : sectionproperties.pillpositionfromright + 'px',
70791
+ zIndex: 3
70792
+ }
70793
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
70794
+ "class": sectionproperties.pillwidth == 0 ? ' px-2 allcentered' : 'allcentered',
70795
+ style: {
70796
+ zIndex: 2,
70797
+ width: sectionproperties.pillwidth == 0 ? 'auto' : sectionproperties.pillwidth + 'px',
70798
+ height: sectionproperties.pillheight + 'px',
70799
+ background: sectionproperties.pillbgcolor,
70800
+ borderRadius: sectionproperties.pillborderBottomLeftRadius + 'px'
70801
+ }
70802
+ }, sectionproperties.countertype == 'Percentage' && /*#__PURE__*/React__default["default"].createElement("p", {
70803
+ "class": "m-0 p-0",
70804
+ style: {
70805
+ color: sectionproperties.pillcolor,
70806
+ fontSize: sectionproperties.pillfontSize + 'px',
70807
+ direction: 'ltr'
70808
+ }
70809
+ }, '-' + parseFloat(Math.round(10.0 * ((parseInt(item.defaultprice) - parseInt(item.defaultsaleprice)) / parseInt(item.defaultprice)) * 100) / 10.0).toFixed(0) + '%'), sectionproperties.countertype == 'Value' && /*#__PURE__*/React__default["default"].createElement("p", {
70810
+ "class": "m-0 p-0 text-uppercase",
70811
+ style: {
70812
+ color: sectionproperties.pillcolor,
70813
+ fontSize: sectionproperties.pillfontSize + 'px',
70814
+ direction: 'ltr'
70815
+ }
70816
+ }, langdetect == 'en' ? 'Save' : 'وفر', " ", langdetect == 'en' ? item.currencyname : '', ' ', parseFloat(Math.round(parseInt(item.defaultprice) - parseInt(item.defaultsaleprice))).toFixed(0), " ", langdetect == 'en' ? '' : item.currencyname))), item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && /*#__PURE__*/React__default["default"].createElement("div", {
70782
70817
  "class": "".concat(cardsstyles2.outstockbadge) + ' allcentered '
70783
70818
  }, /*#__PURE__*/React__default["default"].createElement("p", {
70784
70819
  "class": "m-0 p-0"
package/dist/index.esm.js CHANGED
@@ -18147,7 +18147,7 @@ var CardsSection = function CardsSection(props) {
18147
18147
  };
18148
18148
  if (fetchingtype == 'products') {
18149
18149
  var _arrayItem$features3;
18150
- var itemquantity = 0;
18150
+ var itemquantity = 1;
18151
18151
  if (langdetect == 'en') {
18152
18152
  cardobj.name = arrayItem.productinfo.name_en;
18153
18153
  } else {
@@ -26633,7 +26633,7 @@ styleInject(css_248z$y);
26633
26633
  function ownKeys$1V(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
26634
26634
  function _objectSpread$1V(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1V(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1V(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
26635
26635
  var ClassicHeader = function ClassicHeader(props) {
26636
- var _authdetailsContext$i, _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$c, _authdetailsContext$c2, _authdetailsContext$c3, _authdetailsContext$c4, _fetchcustomercartQue, _fetchcustomercartQue2, _templatepropcontext$;
26636
+ var _authdetailsContext$i, _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$c, _authdetailsContext$c2, _authdetailsContext$c3, _authdetailsContext$c4, _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4, _templatepropcontext$;
26637
26637
  var LogoutMutationContext = props.actions.LogoutMutationContext;
26638
26638
  var setsidecartnavshowcontext = props.actions.setsidecartnavshowcontext;
26639
26639
  var setSearchHeaderInputContext = props.actions.setSearchHeaderInputContext;
@@ -27281,13 +27281,14 @@ var ClassicHeader = function ClassicHeader(props) {
27281
27281
  top: sectionproperties.cartbadgetop + 'px',
27282
27282
  right: sectionproperties.cartbadgeright + 'px'
27283
27283
  }
27284
- }, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue === void 0 || (_fetchcustomercartQue = _fetchcustomercartQue.data) === null || _fetchcustomercartQue === void 0 ? void 0 : _fetchcustomercartQue.customercart) != null ? fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue2 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue2 === void 0 || (_fetchcustomercartQue2 = _fetchcustomercartQue2.data) === null || _fetchcustomercartQue2 === void 0 || (_fetchcustomercartQue2 = _fetchcustomercartQue2.customercart) === null || _fetchcustomercartQue2 === void 0 || (_fetchcustomercartQue2 = _fetchcustomercartQue2.cartitems) === null || _fetchcustomercartQue2 === void 0 ? void 0 : _fetchcustomercartQue2.length : 0)), /*#__PURE__*/React.createElement("p", {
27285
- "class": header_cssstyles.cartbtntext + ' mb-0 p-0 cartbtnicon ',
27284
+ }, fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue !== void 0 && (_fetchcustomercartQue = _fetchcustomercartQue.data) !== null && _fetchcustomercartQue !== void 0 && _fetchcustomercartQue.status && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue2 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue2 === void 0 || (_fetchcustomercartQue2 = _fetchcustomercartQue2.data) === null || _fetchcustomercartQue2 === void 0 || (_fetchcustomercartQue2 = _fetchcustomercartQue2.customercart) === null || _fetchcustomercartQue2 === void 0 || (_fetchcustomercartQue2 = _fetchcustomercartQue2.cartitems) === null || _fetchcustomercartQue2 === void 0 ? void 0 : _fetchcustomercartQue2.length) != 0 ? fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue3 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue3 === void 0 || (_fetchcustomercartQue3 = _fetchcustomercartQue3.data) === null || _fetchcustomercartQue3 === void 0 ? void 0 : _fetchcustomercartQue3.customercart.cartitems_count_withquantity : 0)), /*#__PURE__*/React.createElement("p", {
27285
+ "class": ' mb-0 p-0 ',
27286
27286
  style: {
27287
27287
  marginLeft: langdetect == 'en' ? '9px' : 0,
27288
- marginRight: langdetect == 'ar' ? '9px' : 0
27288
+ marginRight: langdetect == 'ar' ? '9px' : 0,
27289
+ color: sectionproperties.cartBtnTextcolor
27289
27290
  }
27290
- }, langdetect == 'en' ? sectionproperties.cartBtnContentenglish : sectionproperties.cartBtnContentarabic)), /*#__PURE__*/React.createElement("div", {
27291
+ }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue4 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue4 === void 0 || (_fetchcustomercartQue4 = _fetchcustomercartQue4.data) === null || _fetchcustomercartQue4 === void 0 || (_fetchcustomercartQue4 = _fetchcustomercartQue4.customercart) === null || _fetchcustomercartQue4 === void 0 ? void 0 : _fetchcustomercartQue4.totalprice).toFixed(2), langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), /*#__PURE__*/React.createElement("div", {
27291
27292
  "class": langdetect == 'en' ? 'headerdropdownml' : 'headerdropdownmr'
27292
27293
  }, /*#__PURE__*/React.createElement(Dropdown, null, /*#__PURE__*/React.createElement(Dropdown.Toggle, null, /*#__PURE__*/React.createElement("li", {
27293
27294
  "class": ' d-flex align-items-center justify-content-center '
@@ -70508,7 +70509,10 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
70508
70509
  borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
70509
70510
  borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
70510
70511
  background: sectionproperties.image_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.image_bgcolor,
70511
- opacity: item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' ? 0.4 : 1
70512
+ opacity: item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' ? 0.4 : 1,
70513
+ '@media (max-width: 800px)': {
70514
+ height: sectionproperties.height_responsive + 'px'
70515
+ }
70512
70516
  }),
70513
70517
  quantitybtn: css({
70514
70518
  flex: 1,
@@ -70587,7 +70591,7 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
70587
70591
  return /*#__PURE__*/React.createElement("div", {
70588
70592
  "class": ' d-flex align-items-center justify-content-center '
70589
70593
  }, /*#__PURE__*/React.createElement(CircularProgress, {
70590
- color: "white",
70594
+ color: sectionproperties.cartBtnTextcolor,
70591
70595
  width: "20px",
70592
70596
  height: "20px",
70593
70597
  duration: "1s"
@@ -70713,7 +70717,7 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
70713
70717
  size: sectionproperties.favBtnIconfontsize
70714
70718
  }), sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React.createElement(FaRegHeart, {
70715
70719
  size: sectionproperties.favBtnIconfontsize
70716
- })))), (item === null || item === void 0 ? void 0 : item.hassale) == 1 && sectionproperties.prodsalePriceshow == 'Show' && /*#__PURE__*/React.createElement("div", {
70720
+ })))), (item === null || item === void 0 ? void 0 : item.hassale) == 1 && sectionproperties.prodsalePriceshow == 'Show' && sectionproperties.showbadge == 'Show' && /*#__PURE__*/React.createElement("div", {
70717
70721
  "class": "allcentered",
70718
70722
  style: {
70719
70723
  position: 'absolute',
@@ -70730,7 +70734,38 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
70730
70734
  color: sectionproperties.badge_color,
70731
70735
  fontSize: sectionproperties.badge_fontsize + 'px'
70732
70736
  }
70733
- }, langdetect == 'en' ? sectionproperties.badgeContentEn : sectionproperties.badgeContentAr)), item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && /*#__PURE__*/React.createElement("div", {
70737
+ }, langdetect == 'en' ? sectionproperties.badgeContentEn : sectionproperties.badgeContentAr)), sectionproperties.showpill == 'Show' && item.hassale == 1 && /*#__PURE__*/React.createElement("div", {
70738
+ style: {
70739
+ position: 'absolute',
70740
+ top: sectionproperties.pillpositionfromtop + 'px',
70741
+ left: sectionproperties.pillpositionfromright + 'px',
70742
+ // right: langdetect == 'en' ? '' : sectionproperties.pillpositionfromright + 'px',
70743
+ zIndex: 3
70744
+ }
70745
+ }, /*#__PURE__*/React.createElement("div", {
70746
+ "class": sectionproperties.pillwidth == 0 ? ' px-2 allcentered' : 'allcentered',
70747
+ style: {
70748
+ zIndex: 2,
70749
+ width: sectionproperties.pillwidth == 0 ? 'auto' : sectionproperties.pillwidth + 'px',
70750
+ height: sectionproperties.pillheight + 'px',
70751
+ background: sectionproperties.pillbgcolor,
70752
+ borderRadius: sectionproperties.pillborderBottomLeftRadius + 'px'
70753
+ }
70754
+ }, sectionproperties.countertype == 'Percentage' && /*#__PURE__*/React.createElement("p", {
70755
+ "class": "m-0 p-0",
70756
+ style: {
70757
+ color: sectionproperties.pillcolor,
70758
+ fontSize: sectionproperties.pillfontSize + 'px',
70759
+ direction: 'ltr'
70760
+ }
70761
+ }, '-' + parseFloat(Math.round(10.0 * ((parseInt(item.defaultprice) - parseInt(item.defaultsaleprice)) / parseInt(item.defaultprice)) * 100) / 10.0).toFixed(0) + '%'), sectionproperties.countertype == 'Value' && /*#__PURE__*/React.createElement("p", {
70762
+ "class": "m-0 p-0 text-uppercase",
70763
+ style: {
70764
+ color: sectionproperties.pillcolor,
70765
+ fontSize: sectionproperties.pillfontSize + 'px',
70766
+ direction: 'ltr'
70767
+ }
70768
+ }, langdetect == 'en' ? 'Save' : 'وفر', " ", langdetect == 'en' ? item.currencyname : '', ' ', parseFloat(Math.round(parseInt(item.defaultprice) - parseInt(item.defaultsaleprice))).toFixed(0), " ", langdetect == 'en' ? '' : item.currencyname))), item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && /*#__PURE__*/React.createElement("div", {
70734
70769
  "class": "".concat(cardsstyles2.outstockbadge) + ' allcentered '
70735
70770
  }, /*#__PURE__*/React.createElement("p", {
70736
70771
  "class": "m-0 p-0"
package/dist/index.umd.js CHANGED
@@ -18020,7 +18020,7 @@
18020
18020
  };
18021
18021
  if (fetchingtype == 'products') {
18022
18022
  var _arrayItem$features3;
18023
- var itemquantity = 0;
18023
+ var itemquantity = 1;
18024
18024
  if (langdetect == 'en') {
18025
18025
  cardobj.name = arrayItem.productinfo.name_en;
18026
18026
  } else {
@@ -26506,7 +26506,7 @@
26506
26506
  function ownKeys$1V(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
26507
26507
  function _objectSpread$1V(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1V(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1V(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
26508
26508
  var ClassicHeader = function ClassicHeader(props) {
26509
- var _authdetailsContext$i, _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$c, _authdetailsContext$c2, _authdetailsContext$c3, _authdetailsContext$c4, _fetchcustomercartQue, _fetchcustomercartQue2, _templatepropcontext$;
26509
+ var _authdetailsContext$i, _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$c, _authdetailsContext$c2, _authdetailsContext$c3, _authdetailsContext$c4, _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4, _templatepropcontext$;
26510
26510
  var LogoutMutationContext = props.actions.LogoutMutationContext;
26511
26511
  var setsidecartnavshowcontext = props.actions.setsidecartnavshowcontext;
26512
26512
  var setSearchHeaderInputContext = props.actions.setSearchHeaderInputContext;
@@ -27154,13 +27154,14 @@
27154
27154
  top: sectionproperties.cartbadgetop + 'px',
27155
27155
  right: sectionproperties.cartbadgeright + 'px'
27156
27156
  }
27157
- }, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue === void 0 || (_fetchcustomercartQue = _fetchcustomercartQue.data) === null || _fetchcustomercartQue === void 0 ? void 0 : _fetchcustomercartQue.customercart) != null ? fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue2 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue2 === void 0 || (_fetchcustomercartQue2 = _fetchcustomercartQue2.data) === null || _fetchcustomercartQue2 === void 0 || (_fetchcustomercartQue2 = _fetchcustomercartQue2.customercart) === null || _fetchcustomercartQue2 === void 0 || (_fetchcustomercartQue2 = _fetchcustomercartQue2.cartitems) === null || _fetchcustomercartQue2 === void 0 ? void 0 : _fetchcustomercartQue2.length : 0)), /*#__PURE__*/React__default["default"].createElement("p", {
27158
- "class": header_cssstyles.cartbtntext + ' mb-0 p-0 cartbtnicon ',
27157
+ }, fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue !== void 0 && (_fetchcustomercartQue = _fetchcustomercartQue.data) !== null && _fetchcustomercartQue !== void 0 && _fetchcustomercartQue.status && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue2 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue2 === void 0 || (_fetchcustomercartQue2 = _fetchcustomercartQue2.data) === null || _fetchcustomercartQue2 === void 0 || (_fetchcustomercartQue2 = _fetchcustomercartQue2.customercart) === null || _fetchcustomercartQue2 === void 0 || (_fetchcustomercartQue2 = _fetchcustomercartQue2.cartitems) === null || _fetchcustomercartQue2 === void 0 ? void 0 : _fetchcustomercartQue2.length) != 0 ? fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue3 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue3 === void 0 || (_fetchcustomercartQue3 = _fetchcustomercartQue3.data) === null || _fetchcustomercartQue3 === void 0 ? void 0 : _fetchcustomercartQue3.customercart.cartitems_count_withquantity : 0)), /*#__PURE__*/React__default["default"].createElement("p", {
27158
+ "class": ' mb-0 p-0 ',
27159
27159
  style: {
27160
27160
  marginLeft: langdetect == 'en' ? '9px' : 0,
27161
- marginRight: langdetect == 'ar' ? '9px' : 0
27161
+ marginRight: langdetect == 'ar' ? '9px' : 0,
27162
+ color: sectionproperties.cartBtnTextcolor
27162
27163
  }
27163
- }, langdetect == 'en' ? sectionproperties.cartBtnContentenglish : sectionproperties.cartBtnContentarabic)), /*#__PURE__*/React__default["default"].createElement("div", {
27164
+ }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue4 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue4 === void 0 || (_fetchcustomercartQue4 = _fetchcustomercartQue4.data) === null || _fetchcustomercartQue4 === void 0 || (_fetchcustomercartQue4 = _fetchcustomercartQue4.customercart) === null || _fetchcustomercartQue4 === void 0 ? void 0 : _fetchcustomercartQue4.totalprice).toFixed(2), langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
27164
27165
  "class": langdetect == 'en' ? 'headerdropdownml' : 'headerdropdownmr'
27165
27166
  }, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"], null, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Toggle, null, /*#__PURE__*/React__default["default"].createElement("li", {
27166
27167
  "class": ' d-flex align-items-center justify-content-center '
@@ -70381,7 +70382,10 @@
70381
70382
  borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
70382
70383
  borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
70383
70384
  background: sectionproperties.image_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.image_bgcolor,
70384
- opacity: item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' ? 0.4 : 1
70385
+ opacity: item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' ? 0.4 : 1,
70386
+ '@media (max-width: 800px)': {
70387
+ height: sectionproperties.height_responsive + 'px'
70388
+ }
70385
70389
  }),
70386
70390
  quantitybtn: glamor.css({
70387
70391
  flex: 1,
@@ -70460,7 +70464,7 @@
70460
70464
  return /*#__PURE__*/React__default["default"].createElement("div", {
70461
70465
  "class": ' d-flex align-items-center justify-content-center '
70462
70466
  }, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
70463
- color: "white",
70467
+ color: sectionproperties.cartBtnTextcolor,
70464
70468
  width: "20px",
70465
70469
  height: "20px",
70466
70470
  duration: "1s"
@@ -70586,7 +70590,7 @@
70586
70590
  size: sectionproperties.favBtnIconfontsize
70587
70591
  }), sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React__default["default"].createElement(FaRegHeart.FaRegHeart, {
70588
70592
  size: sectionproperties.favBtnIconfontsize
70589
- })))), (item === null || item === void 0 ? void 0 : item.hassale) == 1 && sectionproperties.prodsalePriceshow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
70593
+ })))), (item === null || item === void 0 ? void 0 : item.hassale) == 1 && sectionproperties.prodsalePriceshow == 'Show' && sectionproperties.showbadge == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
70590
70594
  "class": "allcentered",
70591
70595
  style: {
70592
70596
  position: 'absolute',
@@ -70603,7 +70607,38 @@
70603
70607
  color: sectionproperties.badge_color,
70604
70608
  fontSize: sectionproperties.badge_fontsize + 'px'
70605
70609
  }
70606
- }, langdetect == 'en' ? sectionproperties.badgeContentEn : sectionproperties.badgeContentAr)), item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && /*#__PURE__*/React__default["default"].createElement("div", {
70610
+ }, langdetect == 'en' ? sectionproperties.badgeContentEn : sectionproperties.badgeContentAr)), sectionproperties.showpill == 'Show' && item.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
70611
+ style: {
70612
+ position: 'absolute',
70613
+ top: sectionproperties.pillpositionfromtop + 'px',
70614
+ left: sectionproperties.pillpositionfromright + 'px',
70615
+ // right: langdetect == 'en' ? '' : sectionproperties.pillpositionfromright + 'px',
70616
+ zIndex: 3
70617
+ }
70618
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
70619
+ "class": sectionproperties.pillwidth == 0 ? ' px-2 allcentered' : 'allcentered',
70620
+ style: {
70621
+ zIndex: 2,
70622
+ width: sectionproperties.pillwidth == 0 ? 'auto' : sectionproperties.pillwidth + 'px',
70623
+ height: sectionproperties.pillheight + 'px',
70624
+ background: sectionproperties.pillbgcolor,
70625
+ borderRadius: sectionproperties.pillborderBottomLeftRadius + 'px'
70626
+ }
70627
+ }, sectionproperties.countertype == 'Percentage' && /*#__PURE__*/React__default["default"].createElement("p", {
70628
+ "class": "m-0 p-0",
70629
+ style: {
70630
+ color: sectionproperties.pillcolor,
70631
+ fontSize: sectionproperties.pillfontSize + 'px',
70632
+ direction: 'ltr'
70633
+ }
70634
+ }, '-' + parseFloat(Math.round(10.0 * ((parseInt(item.defaultprice) - parseInt(item.defaultsaleprice)) / parseInt(item.defaultprice)) * 100) / 10.0).toFixed(0) + '%'), sectionproperties.countertype == 'Value' && /*#__PURE__*/React__default["default"].createElement("p", {
70635
+ "class": "m-0 p-0 text-uppercase",
70636
+ style: {
70637
+ color: sectionproperties.pillcolor,
70638
+ fontSize: sectionproperties.pillfontSize + 'px',
70639
+ direction: 'ltr'
70640
+ }
70641
+ }, langdetect == 'en' ? 'Save' : 'وفر', " ", langdetect == 'en' ? item.currencyname : '', ' ', parseFloat(Math.round(parseInt(item.defaultprice) - parseInt(item.defaultsaleprice))).toFixed(0), " ", langdetect == 'en' ? '' : item.currencyname))), item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && /*#__PURE__*/React__default["default"].createElement("div", {
70607
70642
  "class": "".concat(cardsstyles2.outstockbadge) + ' allcentered '
70608
70643
  }, /*#__PURE__*/React__default["default"].createElement("p", {
70609
70644
  "class": "m-0 p-0"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tabexseriescomponents",
3
- "version": "0.0.704",
3
+ "version": "0.0.705",
4
4
  "description": "your description",
5
5
  "main": "dist/index.cjs.js",
6
6
  "scripts": {