tabexseriescomponents 0.0.584 → 0.0.586

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
@@ -2081,9 +2081,14 @@ var ProductHeaderPricing = function ProductHeaderPricing(props) {
2081
2081
  fontWeight: sectionproperties.defaultSalePriceFontWeight,
2082
2082
  color: sectionproperties.defaultSalePriceColor
2083
2083
  }
2084
- }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", getprice_discountpriceprops('defaultprice', 0, variantindexcompleted), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))), fetchProductInfoQueryContext.data.data.productinfo.hassale == 1 && sectionproperties.showpill == 'Show' && fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
2084
+ }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", getprice_discountpriceprops('defaultprice', 0, variantindexcompleted), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))), fetchProductInfoQueryContext.data.data.productinfo.hassale == 1 && sectionproperties.showpill == 'Show' && variantindexcompleted.length == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
2085
2085
  "class": "col-lg-12 p-0 d-flex align-items-center justift-content-start"
2086
- }, SaleCounterPill()), fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 1 && variantindexcompleted != undefined && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer7 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.data) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.productinfo) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.variants[variantindexcompleted]) === null || _fetchProductInfoQuer7 === void 0 ? void 0 : _fetchProductInfoQuer7.hassale) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
2086
+ }, SaleCounterPill()), fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 1 && variantindexcompleted != undefined && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer7 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.data) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.productinfo) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.variants[variantindexcompleted]) === null || _fetchProductInfoQuer7 === void 0 ? void 0 : _fetchProductInfoQuer7.hassale) == 1 &&
2087
+ /*#__PURE__*/
2088
+ // fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 1 &&
2089
+ // variantindexcompleted != undefined &&
2090
+ // fetchProductInfoQueryContext?.data?.data?.productinfo?.variants[variantindexcompleted]?.hassale == 1 &&
2091
+ React__default["default"].createElement("div", {
2087
2092
  "class": "col-lg-12 p-0 d-flex align-items-center justift-content-start"
2088
2093
  }, SaleCounterPill()))), sectionproperties.showcashbackcontainer == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer8 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.data) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.productinfo) === null || _fetchProductInfoQuer8 === void 0 ? void 0 : _fetchProductInfoQuer8.productcashbackvalue) > 0 && /*#__PURE__*/React__default["default"].createElement("div", {
2089
2094
  "class": "col-lg-12 p-0 d-flex justify-content-start mt-1 mb-2"
@@ -76867,6 +76872,12 @@ var QuantityButtonBasedProductCard = function QuantityButtonBasedProductCard(pro
76867
76872
  onClick: function onClick() {
76868
76873
  if (sectionproperties.quantitybtn_show == 'Show' && showquantity == false) {
76869
76874
  setshowquantity(true);
76875
+ if (item.hasvariants == 0) {
76876
+ var tempitem = _objectSpread$2({}, item);
76877
+ tempitem.quantity = 1;
76878
+ setitem(_objectSpread$2({}, tempitem));
76879
+ addtocartfunc('add', tempitem.quantity);
76880
+ }
76870
76881
  } else {
76871
76882
  if (item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0) {
76872
76883
  NotificationManager.warning('', langdetect == 'en' ? 'Sold Out' : 'نفذت الكمية');
package/dist/index.esm.js CHANGED
@@ -2032,9 +2032,14 @@ var ProductHeaderPricing = function ProductHeaderPricing(props) {
2032
2032
  fontWeight: sectionproperties.defaultSalePriceFontWeight,
2033
2033
  color: sectionproperties.defaultSalePriceColor
2034
2034
  }
2035
- }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", getprice_discountpriceprops('defaultprice', 0, variantindexcompleted), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))), fetchProductInfoQueryContext.data.data.productinfo.hassale == 1 && sectionproperties.showpill == 'Show' && fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 0 && /*#__PURE__*/React.createElement("div", {
2035
+ }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", getprice_discountpriceprops('defaultprice', 0, variantindexcompleted), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))), fetchProductInfoQueryContext.data.data.productinfo.hassale == 1 && sectionproperties.showpill == 'Show' && variantindexcompleted.length == 0 && /*#__PURE__*/React.createElement("div", {
2036
2036
  "class": "col-lg-12 p-0 d-flex align-items-center justift-content-start"
2037
- }, SaleCounterPill()), fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 1 && variantindexcompleted != undefined && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer7 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.data) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.productinfo) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.variants[variantindexcompleted]) === null || _fetchProductInfoQuer7 === void 0 ? void 0 : _fetchProductInfoQuer7.hassale) == 1 && /*#__PURE__*/React.createElement("div", {
2037
+ }, SaleCounterPill()), fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 1 && variantindexcompleted != undefined && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer7 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.data) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.productinfo) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.variants[variantindexcompleted]) === null || _fetchProductInfoQuer7 === void 0 ? void 0 : _fetchProductInfoQuer7.hassale) == 1 &&
2038
+ /*#__PURE__*/
2039
+ // fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 1 &&
2040
+ // variantindexcompleted != undefined &&
2041
+ // fetchProductInfoQueryContext?.data?.data?.productinfo?.variants[variantindexcompleted]?.hassale == 1 &&
2042
+ React.createElement("div", {
2038
2043
  "class": "col-lg-12 p-0 d-flex align-items-center justift-content-start"
2039
2044
  }, SaleCounterPill()))), sectionproperties.showcashbackcontainer == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer8 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.data) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.productinfo) === null || _fetchProductInfoQuer8 === void 0 ? void 0 : _fetchProductInfoQuer8.productcashbackvalue) > 0 && /*#__PURE__*/React.createElement("div", {
2040
2045
  "class": "col-lg-12 p-0 d-flex justify-content-start mt-1 mb-2"
@@ -76818,6 +76823,12 @@ var QuantityButtonBasedProductCard = function QuantityButtonBasedProductCard(pro
76818
76823
  onClick: function onClick() {
76819
76824
  if (sectionproperties.quantitybtn_show == 'Show' && showquantity == false) {
76820
76825
  setshowquantity(true);
76826
+ if (item.hasvariants == 0) {
76827
+ var tempitem = _objectSpread$2({}, item);
76828
+ tempitem.quantity = 1;
76829
+ setitem(_objectSpread$2({}, tempitem));
76830
+ addtocartfunc('add', tempitem.quantity);
76831
+ }
76821
76832
  } else {
76822
76833
  if (item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0) {
76823
76834
  NotificationManager.warning('', langdetect == 'en' ? 'Sold Out' : 'نفذت الكمية');
package/dist/index.umd.js CHANGED
@@ -1905,9 +1905,14 @@
1905
1905
  fontWeight: sectionproperties.defaultSalePriceFontWeight,
1906
1906
  color: sectionproperties.defaultSalePriceColor
1907
1907
  }
1908
- }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", getprice_discountpriceprops('defaultprice', 0, variantindexcompleted), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))), fetchProductInfoQueryContext.data.data.productinfo.hassale == 1 && sectionproperties.showpill == 'Show' && fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
1908
+ }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", getprice_discountpriceprops('defaultprice', 0, variantindexcompleted), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))), fetchProductInfoQueryContext.data.data.productinfo.hassale == 1 && sectionproperties.showpill == 'Show' && variantindexcompleted.length == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
1909
1909
  "class": "col-lg-12 p-0 d-flex align-items-center justift-content-start"
1910
- }, SaleCounterPill()), fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 1 && variantindexcompleted != undefined && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer7 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.data) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.productinfo) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.variants[variantindexcompleted]) === null || _fetchProductInfoQuer7 === void 0 ? void 0 : _fetchProductInfoQuer7.hassale) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
1910
+ }, SaleCounterPill()), fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 1 && variantindexcompleted != undefined && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer7 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.data) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.productinfo) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.variants[variantindexcompleted]) === null || _fetchProductInfoQuer7 === void 0 ? void 0 : _fetchProductInfoQuer7.hassale) == 1 &&
1911
+ /*#__PURE__*/
1912
+ // fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 1 &&
1913
+ // variantindexcompleted != undefined &&
1914
+ // fetchProductInfoQueryContext?.data?.data?.productinfo?.variants[variantindexcompleted]?.hassale == 1 &&
1915
+ React__default["default"].createElement("div", {
1911
1916
  "class": "col-lg-12 p-0 d-flex align-items-center justift-content-start"
1912
1917
  }, SaleCounterPill()))), sectionproperties.showcashbackcontainer == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer8 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.data) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.productinfo) === null || _fetchProductInfoQuer8 === void 0 ? void 0 : _fetchProductInfoQuer8.productcashbackvalue) > 0 && /*#__PURE__*/React__default["default"].createElement("div", {
1913
1918
  "class": "col-lg-12 p-0 d-flex justify-content-start mt-1 mb-2"
@@ -76691,6 +76696,12 @@
76691
76696
  onClick: function onClick() {
76692
76697
  if (sectionproperties.quantitybtn_show == 'Show' && showquantity == false) {
76693
76698
  setshowquantity(true);
76699
+ if (item.hasvariants == 0) {
76700
+ var tempitem = _objectSpread$2({}, item);
76701
+ tempitem.quantity = 1;
76702
+ setitem(_objectSpread$2({}, tempitem));
76703
+ addtocartfunc('add', tempitem.quantity);
76704
+ }
76694
76705
  } else {
76695
76706
  if (item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0) {
76696
76707
  NotificationManager.warning('', langdetect == 'en' ? 'Sold Out' : 'نفذت الكمية');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tabexseriescomponents",
3
- "version": "0.0.584",
3
+ "version": "0.0.586",
4
4
  "description": "your description",
5
5
  "main": "dist/index.cjs.js",
6
6
  "scripts": {