tabexseriescomponents 0.0.299 → 0.0.301

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -1433,6 +1433,7 @@ var Variantoptions = function Variantoptions(props) {
1433
1433
 
1434
1434
  //productidprops
1435
1435
  var ProductHeaderPricing = function ProductHeaderPricing(props) {
1436
+ var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6;
1436
1437
  props.actions.lang;
1437
1438
  var langdetect = props.actions.langdetect;
1438
1439
  var fetchProductInfoQueryContext = props.actions.fetchProductInfoQueryContext;
@@ -1441,19 +1442,7 @@ var ProductHeaderPricing = function ProductHeaderPricing(props) {
1441
1442
  var variantindexcompleted = props.actions.variantindexcompleted;
1442
1443
  var getprice_discountpriceprops = props.actions.getprice_discountpriceprops;
1443
1444
  var quantityconditionfoundobjprops = props.actions.quantityconditionfoundobjprops;
1444
- var productinfo_cssstyles = {
1445
- profitcontainer: css({
1446
- width: sectionproperties.profitcontainerwidth + '%',
1447
- height: sectionproperties.profitcontainerheight + 'px',
1448
- background: sectionproperties.profitcontainerbgcolor,
1449
- border: sectionproperties.profitcontainerborderwidth + 'px solid' + sectionproperties.profitcontainerbordercolor,
1450
- borderRadius: sectionproperties.profitcontainerborderradius + 'px',
1451
- color: sectionproperties.profitcontainercolor,
1452
- '@media (max-width: 800px)': {
1453
- width: '90%'
1454
- }
1455
- })
1456
- };
1445
+ var productinfo_cssstyles = props.actions.productinfo_cssstyles;
1457
1446
  return /*#__PURE__*/React.createElement("div", {
1458
1447
  "class": "col-lg-12 p-0"
1459
1448
  }, /*#__PURE__*/React.createElement("div", {
@@ -1535,7 +1524,21 @@ var ProductHeaderPricing = function ProductHeaderPricing(props) {
1535
1524
  fontSize: '13px',
1536
1525
  lineHeight: '25px'
1537
1526
  }
1538
- }, '-' + parseFloat(Math.round(10.0 * ((parseFloat(getprice_discountpriceprops('defaultprice', 0, variantindexcompleted)) - parseFloat(getprice_discountpriceprops('defaultsaleprice', 0, variantindexcompleted))) / parseFloat(getprice_discountpriceprops('defaultprice', 0, variantindexcompleted))) * 100) / 10.0).toFixed(0) + '%'))))), sectionproperties.showprofitcontainer == 'Show' && /*#__PURE__*/React.createElement("div", {
1527
+ }, '-' + parseFloat(Math.round(10.0 * ((parseFloat(getprice_discountpriceprops('defaultprice', 0, variantindexcompleted)) - parseFloat(getprice_discountpriceprops('defaultsaleprice', 0, variantindexcompleted))) / parseFloat(getprice_discountpriceprops('defaultprice', 0, variantindexcompleted))) * 100) / 10.0).toFixed(0) + '%'))))), sectionproperties.showcashbackcontainer == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer === void 0 ? void 0 : (_fetchProductInfoQuer2 = _fetchProductInfoQuer.data) === null || _fetchProductInfoQuer2 === void 0 ? void 0 : (_fetchProductInfoQuer3 = _fetchProductInfoQuer2.productinfo) === null || _fetchProductInfoQuer3 === void 0 ? void 0 : _fetchProductInfoQuer3.productcashbackvalue) > 0 && /*#__PURE__*/React.createElement("div", {
1528
+ "class": "col-lg-12 p-0 d-flex justify-content-start mt-1 mb-2"
1529
+ }, /*#__PURE__*/React.createElement("div", {
1530
+ "class": "".concat(productinfo_cssstyles.cashbackoutercontainer) + ' d-flex flex-row allcentered px-2 '
1531
+ }, /*#__PURE__*/React.createElement("p", {
1532
+ "class": "m-0 p-0",
1533
+ style: {
1534
+ fontWeight: 500
1535
+ }
1536
+ }, langdetect == 'en' ? sectionproperties.cashbackcontainercontenten : sectionproperties.cashbackcontainercontentar), /*#__PURE__*/React.createElement("p", {
1537
+ "class": "m-0 p-0 mx-1",
1538
+ style: {
1539
+ fontWeight: 600
1540
+ }
1541
+ }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer4 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer4 === void 0 ? void 0 : (_fetchProductInfoQuer5 = _fetchProductInfoQuer4.data) === null || _fetchProductInfoQuer5 === void 0 ? void 0 : (_fetchProductInfoQuer6 = _fetchProductInfoQuer5.productinfo) === null || _fetchProductInfoQuer6 === void 0 ? void 0 : _fetchProductInfoQuer6.productcashbackvalue, ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))), sectionproperties.showprofitcontainer == 'Show' && /*#__PURE__*/React.createElement("div", {
1539
1542
  "class": "col-lg-12 p-0 mb-2"
1540
1543
  }, /*#__PURE__*/React.createElement("div", {
1541
1544
  "class": productinfo_cssstyles.profitcontainer + ' allcentered '
@@ -1719,7 +1722,7 @@ var ProductExtraFields = function ProductExtraFields(props) {
1719
1722
  function ownKeys$28(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
1720
1723
  function _objectSpread$28(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$28(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$28(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1721
1724
  var Product_itemtype = function Product_itemtype(props) {
1722
- var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _fetchProductInfoQuer15, _fetchProductInfoQuer16, _fetchProductInfoQuer17, _fetchProductInfoQuer18, _fetchProductInfoQuer19, _fetchProductInfoQuer20, _fetchProductInfoQuer21, _fetchProductInfoQuer22, _fetchProductInfoQuer23, _fetchProductInfoQuer24, _fetchProductInfoQuer25, _fetchProductInfoQuer26, _fetchProductInfoQuer27, _fetchProductInfoQuer28, _fetchProductInfoQuer29, _fetchProductInfoQuer30, _fetchProductInfoQuer31, _fetchProductInfoQuer32, _fetchProductInfoQuer33, _fetchProductInfoQuer34, _ProductInfoObj$data, _ProductInfoObj$data$, _ProductInfoObj$data$2, _fetchProductInfoQuer35, _fetchProductInfoQuer36, _fetchProductInfoQuer37, _fetchProductInfoQuer38, _fetchProductInfoQuer39, _fetchProductInfoQuer40, _fetchProductInfoQuer41, _fetchProductInfoQuer42, _fetchProductInfoQuer43, _fetchProductInfoQuer44, _fetchProductInfoQuer45, _fetchProductInfoQuer46, _fetchProductInfoQuer47, _fetchProductInfoQuer48, _fetchProductInfoQuer49, _fetchProductInfoQuer50, _fetchProductInfoQuer51, _fetchProductInfoQuer52, _fetchProductInfoQuer53, _fetchProductInfoQuer54, _fetchProductInfoQuer55, _fetchProductInfoQuer56, _fetchProductInfoQuer57, _fetchProductInfoQuer58;
1725
+ var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _fetchProductInfoQuer15, _fetchProductInfoQuer16, _fetchProductInfoQuer17, _fetchProductInfoQuer18, _fetchProductInfoQuer19, _fetchProductInfoQuer20, _fetchProductInfoQuer21, _fetchProductInfoQuer22, _fetchProductInfoQuer23, _fetchProductInfoQuer24, _fetchProductInfoQuer25, _fetchProductInfoQuer26, _fetchProductInfoQuer27, _fetchProductInfoQuer28, _fetchProductInfoQuer29, _fetchProductInfoQuer30, _fetchProductInfoQuer31, _fetchProductInfoQuer32, _fetchProductInfoQuer33, _fetchProductInfoQuer34, _fetchProductInfoQuer35, _fetchProductInfoQuer36, _fetchProductInfoQuer37, _fetchProductInfoQuer38, _fetchProductInfoQuer39, _fetchProductInfoQuer40, _fetchProductInfoQuer41, _fetchProductInfoQuer42, _fetchProductInfoQuer43, _ProductInfoObj$data, _ProductInfoObj$data$, _ProductInfoObj$data$2, _fetchProductInfoQuer44, _fetchProductInfoQuer45, _fetchProductInfoQuer46, _fetchProductInfoQuer47, _fetchProductInfoQuer48, _fetchProductInfoQuer49, _fetchProductInfoQuer50, _fetchProductInfoQuer51, _fetchProductInfoQuer52, _fetchProductInfoQuer53, _fetchProductInfoQuer54, _fetchProductInfoQuer55, _fetchProductInfoQuer56, _fetchProductInfoQuer57, _fetchProductInfoQuer58, _fetchProductInfoQuer59, _fetchProductInfoQuer60, _fetchProductInfoQuer61, _fetchProductInfoQuer62, _fetchProductInfoQuer63, _fetchProductInfoQuer64, _fetchProductInfoQuer65, _fetchProductInfoQuer66, _fetchProductInfoQuer67;
1723
1726
  var lang = props.actions.lang;
1724
1727
  var langdetect = props.actions.langdetect;
1725
1728
  var srcfromprops = props.actions.srcfromprops;
@@ -1815,7 +1818,7 @@ var Product_itemtype = function Product_itemtype(props) {
1815
1818
  }, /*#__PURE__*/React.createElement("div", {
1816
1819
  className: "col-xl-5 col-lg-4 col-md-12 col-sm-12 mb-md-3 pb-md-4 pl-1 pr-1"
1817
1820
  }, /*#__PURE__*/React.createElement("div", {
1818
- className: sectionproperties.maximizegalleryfullscreen == 'Yes' ? 'col-lg-12 p-0 maximize' : 'col-lg-12 p-0',
1821
+ className: sectionproperties.maximizegalleryfullscreen == 'Yes' ? ' col-lg-12 p-0 maximize ' : 'col-lg-12 p-0',
1819
1822
  style: {
1820
1823
  width: '100%',
1821
1824
  height: 'auto'
@@ -1954,7 +1957,13 @@ var Product_itemtype = function Product_itemtype(props) {
1954
1957
  fontSize: sectionproperties.skuFontSize + 'px',
1955
1958
  textAlign: langdetect == 'en' ? 'left' : 'right'
1956
1959
  }
1957
- }, fetchProductInfoQueryContext.data.data.productinfo.sku))), sectionproperties.deliverytimeshow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer23 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer23 === void 0 ? void 0 : (_fetchProductInfoQuer24 = _fetchProductInfoQuer23.data) === null || _fetchProductInfoQuer24 === void 0 ? void 0 : (_fetchProductInfoQuer25 = _fetchProductInfoQuer24.productinfo) === null || _fetchProductInfoQuer25 === void 0 ? void 0 : _fetchProductInfoQuer25.deliverydatetext) != null && /*#__PURE__*/React.createElement("div", {
1960
+ }, fetchProductInfoQueryContext.data.data.productinfo.sku))), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer23 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer23 === void 0 ? void 0 : (_fetchProductInfoQuer24 = _fetchProductInfoQuer23.data) === null || _fetchProductInfoQuer24 === void 0 ? void 0 : (_fetchProductInfoQuer25 = _fetchProductInfoQuer24.productinfo) === null || _fetchProductInfoQuer25 === void 0 ? void 0 : _fetchProductInfoQuer25.currentquantity) < 1 && sectionproperties.showoutofstock == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer26 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer26 === void 0 ? void 0 : (_fetchProductInfoQuer27 = _fetchProductInfoQuer26.data) === null || _fetchProductInfoQuer27 === void 0 ? void 0 : (_fetchProductInfoQuer28 = _fetchProductInfoQuer27.productinfo) === null || _fetchProductInfoQuer28 === void 0 ? void 0 : _fetchProductInfoQuer28.quantavailtype) == 'limit' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer29 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer29 === void 0 ? void 0 : (_fetchProductInfoQuer30 = _fetchProductInfoQuer29.data) === null || _fetchProductInfoQuer30 === void 0 ? void 0 : (_fetchProductInfoQuer31 = _fetchProductInfoQuer30.productinfo) === null || _fetchProductInfoQuer31 === void 0 ? void 0 : _fetchProductInfoQuer31.hasvariants) == 0 && /*#__PURE__*/React.createElement("div", {
1961
+ "class": "col-lg-12 p-0 d-flex justify-content-start mb-2"
1962
+ }, /*#__PURE__*/React.createElement("div", {
1963
+ "class": "".concat(productinfo_cssstyles.outstockbadge) + ' allcentered '
1964
+ }, /*#__PURE__*/React.createElement("p", {
1965
+ "class": "m-0 p-0"
1966
+ }, langdetect == 'en' ? sectionproperties.outstock_contenten : sectionproperties.outstock_contentar))), sectionproperties.deliverytimeshow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer32 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer32 === void 0 ? void 0 : (_fetchProductInfoQuer33 = _fetchProductInfoQuer32.data) === null || _fetchProductInfoQuer33 === void 0 ? void 0 : (_fetchProductInfoQuer34 = _fetchProductInfoQuer33.productinfo) === null || _fetchProductInfoQuer34 === void 0 ? void 0 : _fetchProductInfoQuer34.deliverydatetext) != null && /*#__PURE__*/React.createElement("div", {
1958
1967
  "class": "mb-4 col-lg-12",
1959
1968
  style: {
1960
1969
  width: '100%',
@@ -1974,9 +1983,9 @@ var Product_itemtype = function Product_itemtype(props) {
1974
1983
  style: {
1975
1984
  textAlign: langdetect == 'en' ? 'left' : 'right'
1976
1985
  }
1977
- }, langdetect == 'en' ? 'Delivery Time' : 'مدة الشحن', ": ", fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer26 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer26 === void 0 ? void 0 : (_fetchProductInfoQuer27 = _fetchProductInfoQuer26.data) === null || _fetchProductInfoQuer27 === void 0 ? void 0 : (_fetchProductInfoQuer28 = _fetchProductInfoQuer27.productinfo) === null || _fetchProductInfoQuer28 === void 0 ? void 0 : _fetchProductInfoQuer28.deliverydatetext)), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer29 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer29 === void 0 ? void 0 : (_fetchProductInfoQuer30 = _fetchProductInfoQuer29.data) === null || _fetchProductInfoQuer30 === void 0 ? void 0 : (_fetchProductInfoQuer31 = _fetchProductInfoQuer30.productinfo) === null || _fetchProductInfoQuer31 === void 0 ? void 0 : _fetchProductInfoQuer31.isproducttobesold) == 1 && /*#__PURE__*/React.createElement(ProductHeaderPricing, {
1986
+ }, langdetect == 'en' ? 'Delivery Time' : 'مدة الشحن', ": ", fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer35 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer35 === void 0 ? void 0 : (_fetchProductInfoQuer36 = _fetchProductInfoQuer35.data) === null || _fetchProductInfoQuer36 === void 0 ? void 0 : (_fetchProductInfoQuer37 = _fetchProductInfoQuer36.productinfo) === null || _fetchProductInfoQuer37 === void 0 ? void 0 : _fetchProductInfoQuer37.deliverydatetext)), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer38 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer38 === void 0 ? void 0 : (_fetchProductInfoQuer39 = _fetchProductInfoQuer38.data) === null || _fetchProductInfoQuer39 === void 0 ? void 0 : (_fetchProductInfoQuer40 = _fetchProductInfoQuer39.productinfo) === null || _fetchProductInfoQuer40 === void 0 ? void 0 : _fetchProductInfoQuer40.isproducttobesold) == 1 && /*#__PURE__*/React.createElement(ProductHeaderPricing, {
1978
1987
  actions: props.actions
1979
- }), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer32 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer32 === void 0 ? void 0 : (_fetchProductInfoQuer33 = _fetchProductInfoQuer32.data) === null || _fetchProductInfoQuer33 === void 0 ? void 0 : (_fetchProductInfoQuer34 = _fetchProductInfoQuer33.productinfo) === null || _fetchProductInfoQuer34 === void 0 ? void 0 : _fetchProductInfoQuer34.hasvariants) == 1 && sectionproperties.productInformationType == 'Profile' && /*#__PURE__*/React.createElement("div", {
1988
+ }), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer41 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer41 === void 0 ? void 0 : (_fetchProductInfoQuer42 = _fetchProductInfoQuer41.data) === null || _fetchProductInfoQuer42 === void 0 ? void 0 : (_fetchProductInfoQuer43 = _fetchProductInfoQuer42.productinfo) === null || _fetchProductInfoQuer43 === void 0 ? void 0 : _fetchProductInfoQuer43.hasvariants) == 1 && sectionproperties.productInformationType == 'Profile' && /*#__PURE__*/React.createElement("div", {
1980
1989
  className: "row m-0 w-100 d-flex align-items-start"
1981
1990
  }, ProductInfoObj === null || ProductInfoObj === void 0 ? void 0 : (_ProductInfoObj$data = ProductInfoObj.data) === null || _ProductInfoObj$data === void 0 ? void 0 : (_ProductInfoObj$data$ = _ProductInfoObj$data.productinfo) === null || _ProductInfoObj$data$ === void 0 ? void 0 : (_ProductInfoObj$data$2 = _ProductInfoObj$data$.productoptions) === null || _ProductInfoObj$data$2 === void 0 ? void 0 : _ProductInfoObj$data$2.map(function (item, index) {
1982
1991
  return /*#__PURE__*/React.createElement("div", {
@@ -2051,7 +2060,7 @@ var Product_itemtype = function Product_itemtype(props) {
2051
2060
  }
2052
2061
  }, /*#__PURE__*/React.createElement("div", {
2053
2062
  className: "row m-0 w-100 d-flex align-items-center"
2054
- }, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer35 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer35 === void 0 ? void 0 : (_fetchProductInfoQuer36 = _fetchProductInfoQuer35.data) === null || _fetchProductInfoQuer36 === void 0 ? void 0 : (_fetchProductInfoQuer37 = _fetchProductInfoQuer36.productinfo) === null || _fetchProductInfoQuer37 === void 0 ? void 0 : _fetchProductInfoQuer37.isproducttobesold) == 1 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer38 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer38 === void 0 ? void 0 : (_fetchProductInfoQuer39 = _fetchProductInfoQuer38.data) === null || _fetchProductInfoQuer39 === void 0 ? void 0 : (_fetchProductInfoQuer40 = _fetchProductInfoQuer39.productinfo) === null || _fetchProductInfoQuer40 === void 0 ? void 0 : _fetchProductInfoQuer40.isproducthasquantitychange) == 1 && /*#__PURE__*/React.createElement("div", {
2063
+ }, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer44 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer44 === void 0 ? void 0 : (_fetchProductInfoQuer45 = _fetchProductInfoQuer44.data) === null || _fetchProductInfoQuer45 === void 0 ? void 0 : (_fetchProductInfoQuer46 = _fetchProductInfoQuer45.productinfo) === null || _fetchProductInfoQuer46 === void 0 ? void 0 : _fetchProductInfoQuer46.isproducttobesold) == 1 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer47 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer47 === void 0 ? void 0 : (_fetchProductInfoQuer48 = _fetchProductInfoQuer47.data) === null || _fetchProductInfoQuer48 === void 0 ? void 0 : (_fetchProductInfoQuer49 = _fetchProductInfoQuer48.productinfo) === null || _fetchProductInfoQuer49 === void 0 ? void 0 : _fetchProductInfoQuer49.isproducthasquantitychange) == 1 && /*#__PURE__*/React.createElement("div", {
2055
2064
  className: "col-lg-12 p-0 mb-2 d-flex justofy-content-start"
2056
2065
  }, /*#__PURE__*/React.createElement("p", {
2057
2066
  className: "m-0 p-0",
@@ -2068,7 +2077,7 @@ var Product_itemtype = function Product_itemtype(props) {
2068
2077
  style: {
2069
2078
  justifyContent: sectionproperties.cartbtncentered == 'Centered' ? 'center' : 'start'
2070
2079
  }
2071
- }, sectionproperties.quantitybtn_show == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer41 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer41 === void 0 ? void 0 : (_fetchProductInfoQuer42 = _fetchProductInfoQuer41.data) === null || _fetchProductInfoQuer42 === void 0 ? void 0 : (_fetchProductInfoQuer43 = _fetchProductInfoQuer42.productinfo) === null || _fetchProductInfoQuer43 === void 0 ? void 0 : _fetchProductInfoQuer43.isproducttobesold) == 1 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer44 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer44 === void 0 ? void 0 : (_fetchProductInfoQuer45 = _fetchProductInfoQuer44.data) === null || _fetchProductInfoQuer45 === void 0 ? void 0 : (_fetchProductInfoQuer46 = _fetchProductInfoQuer45.productinfo) === null || _fetchProductInfoQuer46 === void 0 ? void 0 : _fetchProductInfoQuer46.isproducthasquantitychange) == 1 && /*#__PURE__*/React.createElement("button", {
2080
+ }, sectionproperties.quantitybtn_show == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer50 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer50 === void 0 ? void 0 : (_fetchProductInfoQuer51 = _fetchProductInfoQuer50.data) === null || _fetchProductInfoQuer51 === void 0 ? void 0 : (_fetchProductInfoQuer52 = _fetchProductInfoQuer51.productinfo) === null || _fetchProductInfoQuer52 === void 0 ? void 0 : _fetchProductInfoQuer52.isproducttobesold) == 1 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer53 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer53 === void 0 ? void 0 : (_fetchProductInfoQuer54 = _fetchProductInfoQuer53.data) === null || _fetchProductInfoQuer54 === void 0 ? void 0 : (_fetchProductInfoQuer55 = _fetchProductInfoQuer54.productinfo) === null || _fetchProductInfoQuer55 === void 0 ? void 0 : _fetchProductInfoQuer55.isproducthasquantitychange) == 1 && /*#__PURE__*/React.createElement("button", {
2072
2081
  className: " ".concat(productinfo_cssstyles.quantitybtn) + ' p-0 d-flex align-items-center justify-content-center mb-sm-2 ',
2073
2082
  style: {
2074
2083
  height: sectionproperties.quantitybtn_height + 'px',
@@ -2110,7 +2119,7 @@ var Product_itemtype = function Product_itemtype(props) {
2110
2119
  }
2111
2120
  }, sectionproperties.quantityiconstyle == 'Plus/Minus' && /*#__PURE__*/React.createElement(FiPlus, {
2112
2121
  size: sectionproperties.add_quantitybtn_textfontsize
2113
- })))), sectionproperties.cartbtnalone == 'Besides Other Buttons' && sectionproperties.cartBtnShow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer47 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer47 === void 0 ? void 0 : (_fetchProductInfoQuer48 = _fetchProductInfoQuer47.data) === null || _fetchProductInfoQuer48 === void 0 ? void 0 : (_fetchProductInfoQuer49 = _fetchProductInfoQuer48.productinfo) === null || _fetchProductInfoQuer49 === void 0 ? void 0 : _fetchProductInfoQuer49.isproducttobesold) == 1 && /*#__PURE__*/React.createElement("button", {
2122
+ })))), sectionproperties.cartbtnalone == 'Besides Other Buttons' && sectionproperties.cartBtnShow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer56 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer56 === void 0 ? void 0 : (_fetchProductInfoQuer57 = _fetchProductInfoQuer56.data) === null || _fetchProductInfoQuer57 === void 0 ? void 0 : (_fetchProductInfoQuer58 = _fetchProductInfoQuer57.productinfo) === null || _fetchProductInfoQuer58 === void 0 ? void 0 : _fetchProductInfoQuer58.isproducttobesold) == 1 && /*#__PURE__*/React.createElement("button", {
2114
2123
  className: "".concat(productinfo_cssstyles.cart_btn, " ") + ' ml-2 mr-2 d-flex align-items-center justify-content-center mb-sm-2 ',
2115
2124
  onClick: function onClick() {
2116
2125
  if (fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant >= addtocardpayloadobj.quantity && fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant <= addtocardpayloadobj.quantity) {
@@ -2176,7 +2185,7 @@ var Product_itemtype = function Product_itemtype(props) {
2176
2185
  size: sectionproperties.favBtnIconfontsize
2177
2186
  }), sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React.createElement(FaRegHeart, {
2178
2187
  size: sectionproperties.favBtnIconfontsize
2179
- }))))), sectionproperties.cartbtnalone == 'Alone' && sectionproperties.cartBtnShow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer50 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer50 === void 0 ? void 0 : (_fetchProductInfoQuer51 = _fetchProductInfoQuer50.data) === null || _fetchProductInfoQuer51 === void 0 ? void 0 : (_fetchProductInfoQuer52 = _fetchProductInfoQuer51.productinfo) === null || _fetchProductInfoQuer52 === void 0 ? void 0 : _fetchProductInfoQuer52.isproducttobesold) == 1 && /*#__PURE__*/React.createElement("div", {
2188
+ }))))), sectionproperties.cartbtnalone == 'Alone' && sectionproperties.cartBtnShow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer59 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer59 === void 0 ? void 0 : (_fetchProductInfoQuer60 = _fetchProductInfoQuer59.data) === null || _fetchProductInfoQuer60 === void 0 ? void 0 : (_fetchProductInfoQuer61 = _fetchProductInfoQuer60.productinfo) === null || _fetchProductInfoQuer61 === void 0 ? void 0 : _fetchProductInfoQuer61.isproducttobesold) == 1 && /*#__PURE__*/React.createElement("div", {
2180
2189
  "class": "row m-0 w-100 mt-3",
2181
2190
  style: {
2182
2191
  overflow: 'hidden'
@@ -2250,7 +2259,7 @@ var Product_itemtype = function Product_itemtype(props) {
2250
2259
  size: sectionproperties.favBtnIconfontsize
2251
2260
  }), sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React.createElement(FaRegHeart, {
2252
2261
  size: sectionproperties.favBtnIconfontsize
2253
- })))))))), sectionproperties.productInformationType == 'Product/Service Information' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer53 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer53 === void 0 ? void 0 : (_fetchProductInfoQuer54 = _fetchProductInfoQuer53.data) === null || _fetchProductInfoQuer54 === void 0 ? void 0 : (_fetchProductInfoQuer55 = _fetchProductInfoQuer54.productinfo) === null || _fetchProductInfoQuer55 === void 0 ? void 0 : _fetchProductInfoQuer55.isproducttobesold) == 1 && sectionproperties.showtotalsection == true && /*#__PURE__*/React.createElement("div", {
2262
+ })))))))), sectionproperties.productInformationType == 'Product/Service Information' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer62 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer62 === void 0 ? void 0 : (_fetchProductInfoQuer63 = _fetchProductInfoQuer62.data) === null || _fetchProductInfoQuer63 === void 0 ? void 0 : (_fetchProductInfoQuer64 = _fetchProductInfoQuer63.productinfo) === null || _fetchProductInfoQuer64 === void 0 ? void 0 : _fetchProductInfoQuer64.isproducttobesold) == 1 && sectionproperties.showtotalsection == 'Show' && /*#__PURE__*/React.createElement("div", {
2254
2263
  className: "col-lg-12 p-0 mb-3"
2255
2264
  }, /*#__PURE__*/React.createElement("div", {
2256
2265
  className: "row m-0 w-100 d-flex flex-row"
@@ -2287,7 +2296,7 @@ var Product_itemtype = function Product_itemtype(props) {
2287
2296
  style: {
2288
2297
  textDecoration: 'none'
2289
2298
  }
2290
- }, "-"), langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))))), sectionproperties.availabilitybtnposition == 'Bottom' && sectionproperties.show_availability == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer56 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer56 === void 0 ? void 0 : (_fetchProductInfoQuer57 = _fetchProductInfoQuer56.data) === null || _fetchProductInfoQuer57 === void 0 ? void 0 : (_fetchProductInfoQuer58 = _fetchProductInfoQuer57.productinfo) === null || _fetchProductInfoQuer58 === void 0 ? void 0 : _fetchProductInfoQuer58.isproducttobesold) == 1 && /*#__PURE__*/React.createElement("div", {
2299
+ }, "-"), langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))))), sectionproperties.availabilitybtnposition == 'Bottom' && sectionproperties.show_availability == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer65 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer65 === void 0 ? void 0 : (_fetchProductInfoQuer66 = _fetchProductInfoQuer65.data) === null || _fetchProductInfoQuer66 === void 0 ? void 0 : (_fetchProductInfoQuer67 = _fetchProductInfoQuer66.productinfo) === null || _fetchProductInfoQuer67 === void 0 ? void 0 : _fetchProductInfoQuer67.isproducttobesold) == 1 && /*#__PURE__*/React.createElement("div", {
2291
2300
  className: "col-lg-12 p-0 mb-3 mt-2"
2292
2301
  }, /*#__PURE__*/React.createElement("div", {
2293
2302
  style: {
@@ -4686,6 +4695,40 @@ var Productinfo = function Productinfo(props) {
4686
4695
  backgroundColor: sectionproperties.checkoutBtnbgColoronhover,
4687
4696
  color: sectionproperties.checkoutBtncoloronhover
4688
4697
  }
4698
+ }),
4699
+ outstockbadge: css({
4700
+ minWidth: sectionproperties.outstock_width + 'px',
4701
+ height: sectionproperties.outstock_height + 'px',
4702
+ background: sectionproperties.outstock_bg,
4703
+ color: sectionproperties.outstock_color,
4704
+ fontSize: sectionproperties.outstock_fontSize + 'px',
4705
+ borderRadius: sectionproperties.outstock_borderradius + 'px'
4706
+ }),
4707
+ cashbackoutercontainer: css({
4708
+ // minWidth: 'fit-content',
4709
+ width: sectionproperties.cashbackcontainerwidth + '%',
4710
+ height: sectionproperties.cashbackcontainerheight + 'px',
4711
+ background: sectionproperties.cashbackcontainerbgcolor,
4712
+ color: sectionproperties.cashbackcontainercolor,
4713
+ fontSize: sectionproperties.cashbackcontainerfontsize + 'px',
4714
+ border: sectionproperties.cashbackcontainerborderwidth + 'px ' + sectionproperties.cashbackcontainerborderstyle + sectionproperties.cashbackcontainerbordercolor,
4715
+ borderRadius: sectionproperties.cashbackcontainerborderradius + 'px'
4716
+ }),
4717
+ profitcontainer: css({
4718
+ width: sectionproperties.profitcontainerwidth + '%',
4719
+ height: sectionproperties.profitcontainerheight + 'px',
4720
+ background: sectionproperties.profitcontainerbgcolor,
4721
+ border: sectionproperties.profitcontainerborderwidth + 'px solid' + sectionproperties.profitcontainerbordercolor,
4722
+ borderRadius: sectionproperties.profitcontainerborderradius + 'px',
4723
+ color: sectionproperties.profitcontainercolor,
4724
+ '@media (max-width: 800px)': {
4725
+ width: '90%'
4726
+ }
4727
+ }),
4728
+ imagegallery: css({
4729
+ '.image-gallery-thumbnail.active': {
4730
+ border: '2px solid red '
4731
+ }
4689
4732
  })
4690
4733
  };
4691
4734
  var getprice_discountpriceprops = function getprice_discountpriceprops(type, withtotal, variantindexcompleted) {
@@ -4740,7 +4783,11 @@ var Productinfo = function Productinfo(props) {
4740
4783
  if (withtotal == true) {
4741
4784
  price = price * quantity;
4742
4785
  }
4743
- return price;
4786
+ if (price != undefined) {
4787
+ return price;
4788
+ } else {
4789
+ return 0;
4790
+ }
4744
4791
  };
4745
4792
  var getQuantityCondition = function getQuantityCondition() {
4746
4793
  var _fetchProductInfoQuer46, _fetchProductInfoQuer47, _fetchProductInfoQuer48, _fetchProductInfoQuer49;
@@ -7525,7 +7572,7 @@ var Checkout = function Checkout(props) {
7525
7572
  endpointurl: '/usewalletpoints',
7526
7573
  mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
7527
7574
  if (data.data.status) {
7528
- NotificationManager.success('', 'Success');
7575
+ NotificationManager.success('', langdetect == 'en' ? 'Done' : 'تم');
7529
7576
  fetchcustomercartQueryContext.refetch();
7530
7577
  } else {
7531
7578
  NotificationManager.warning('', data.data.reason);
@@ -7753,13 +7800,19 @@ var Checkout = function Checkout(props) {
7753
7800
  }, /*#__PURE__*/React.createElement("div", {
7754
7801
  className: "row m-0 w-100"
7755
7802
  }, /*#__PURE__*/React.createElement("div", {
7756
- className: "col-lg-12 col-md-12 col-sm-12 p-0"
7803
+ className: "col-lg-12 col-md-12 col-sm-12 p-0 d-flex justify-content-start"
7757
7804
  }, /*#__PURE__*/React.createElement("p", {
7758
- className: "".concat(checkoutstyles.productNameStyles) + ' m-0 p-0 d-flex justify-content-start '
7805
+ className: "".concat(checkoutstyles.productNameStyles) + ' m-0 p-0 w-100 ',
7806
+ style: {
7807
+ textAlign: langdetect == 'en' ? 'left' : 'right'
7808
+ }
7759
7809
  }, langdetect == 'en' ? item.productinfo.name_en : item.productinfo.name_ar)), sectionproperties.producttype == 'Product' && /*#__PURE__*/React.createElement("div", {
7760
- className: "col-lg-12 p-0"
7810
+ className: "col-lg-12 p-0 d-flex justify-content-start"
7761
7811
  }, /*#__PURE__*/React.createElement("p", {
7762
- className: "m-0 p-0 font-weight-500 text-light d-flex justify-content-start"
7812
+ className: "m-0 p-0 font-weight-500 text-light w-100",
7813
+ style: {
7814
+ textAlign: langdetect == 'en' ? 'left' : 'right'
7815
+ }
7763
7816
  }, lang.qty, ": ", item.quantity)))), /*#__PURE__*/React.createElement("div", {
7764
7817
  className: "col-lg-3 col-md-3 col-sm-2 p-0"
7765
7818
  }, /*#__PURE__*/React.createElement("div", {
@@ -7917,7 +7970,7 @@ var Checkout = function Checkout(props) {
7917
7970
  className: "col-lg-6 col-md-6 col-sm-6 p-0"
7918
7971
  }, /*#__PURE__*/React.createElement("p", {
7919
7972
  className: "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 d-flex align-items-center wordbreak '
7920
- }, "Wallet points used")), /*#__PURE__*/React.createElement("div", {
7973
+ }, langdetect == 'en' ? 'Wallet points used' : 'النقاط المستخدمة')), /*#__PURE__*/React.createElement("div", {
7921
7974
  className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
7922
7975
  }, /*#__PURE__*/React.createElement("p", {
7923
7976
  className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left ',
@@ -12802,12 +12855,15 @@ var CardsSection = function CardsSection(props) {
12802
12855
  cardobj.defaultsaleprice = arrayItem.productinfo.defaultsaleprice;
12803
12856
  cardobj.productimages = arrayItem.productinfo.productimages;
12804
12857
  cardobj.quantity = itemquantity;
12858
+ // cardobj.currentquantity = currentquantity;
12805
12859
  cardobj.timestamp = arrayItem.productinfo.timestamp;
12806
12860
  cardobj.productquantity = arrayItem.productinfo.productquantity;
12861
+ cardobj.currentquantity = arrayItem.productinfo.currentquantity;
12807
12862
  cardobj.quantavailtype = arrayItem.productinfo.quantavailtype;
12808
12863
  cardobj.isproducttobesold = arrayItem.productinfo.isproducttobesold;
12809
12864
  cardobj.measurmentunit = arrayItem.productinfo.measurmentunit;
12810
12865
  cardobj.prodaffpercentprofit = arrayItem.productinfo.prodaffpercentprofit;
12866
+ cardobj.productcashbackvalue = arrayItem.productinfo.productcashbackvalue;
12811
12867
  if (langdetect == 'en') {
12812
12868
  cardobj.currencyname = fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 ? void 0 : fetchAuthorizationQueryContext.data.data.currencyname_en;
12813
12869
  } else {
@@ -14248,7 +14304,7 @@ var Subheader = function Subheader(props) {
14248
14304
  function ownKeys$1N(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
14249
14305
  function _objectSpread$1N(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1N(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1N(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
14250
14306
  var Headerresponsive = function Headerresponsive(props) {
14251
- var _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$i, _authdetailsContext$i2, _authdetailsContext$i3, _authdetailsContext$i4, _authdetailsContext$i5, _authdetailsContext$i6;
14307
+ var _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$c, _authdetailsContext$c2, _authdetailsContext$i, _authdetailsContext$i2, _authdetailsContext$i3, _authdetailsContext$i4, _authdetailsContext$i5, _authdetailsContext$i6;
14252
14308
  var actions = props.actions;
14253
14309
  var LogoutMutationContext = props.actions.LogoutMutationContext;
14254
14310
  var setsidecartnavshowcontext = props.actions.setsidecartnavshowcontext;
@@ -14663,6 +14719,10 @@ var Headerresponsive = function Headerresponsive(props) {
14663
14719
  }
14664
14720
  }, /*#__PURE__*/React.createElement(Dropdown.Item, {
14665
14721
  className: "".concat(header_cssstyles.dropdownitem) + ' d-flex align-items-center justify-content-center '
14722
+ }, /*#__PURE__*/React.createElement("div", {
14723
+ "class": "row m-0 w-100"
14724
+ }, /*#__PURE__*/React.createElement("div", {
14725
+ "class": 'flex-row w-100 d-flex justify-content-start'
14666
14726
  }, /*#__PURE__*/React.createElement("span", {
14667
14727
  style: {
14668
14728
  color: '#8fa0bd',
@@ -14677,7 +14737,23 @@ var Headerresponsive = function Headerresponsive(props) {
14677
14737
  color: sectionproperties.dropdownusernamecolor,
14678
14738
  fontSize: sectionproperties.dropdownusernamefontsize + 'px'
14679
14739
  }
14680
- }, authdetailsContext.customerinfo.name)), /*#__PURE__*/React.createElement(Dropdown.Divider, {
14740
+ }, authdetailsContext.customerinfo.name)), (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$c = authdetailsContext.customerinfo) === null || _authdetailsContext$c === void 0 ? void 0 : _authdetailsContext$c.cancustomerviewwallet) == 1 && templateproperties_context.showwallet == 'Show' && /*#__PURE__*/React.createElement("div", {
14741
+ "class": ' row w-100 m-0 p-0 flex-row mt-1 w-100 justify-content-start'
14742
+ }, /*#__PURE__*/React.createElement("p", {
14743
+ "class": "m-0 p-0",
14744
+ style: {
14745
+ color: templateproperties_context.walletcontainercolorresponsive,
14746
+ fontSize: templateproperties_context.walletfontize + 'px',
14747
+ fontWeight: 500
14748
+ }
14749
+ }, langdetect == 'en' ? templateproperties_context.walletcontent_en : templateproperties_context.walletcontent_ar), /*#__PURE__*/React.createElement("p", {
14750
+ "class": "m-0 p-0 mx-1",
14751
+ style: {
14752
+ color: templateproperties_context.walletcontainersecondarycolorresponsive,
14753
+ fontSize: '15px',
14754
+ fontWeight: 600
14755
+ }
14756
+ }, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$c2 = authdetailsContext.customerinfo) === null || _authdetailsContext$c2 === void 0 ? void 0 : _authdetailsContext$c2.walletpoints, ' ')))), /*#__PURE__*/React.createElement(Dropdown.Divider, {
14681
14757
  style: {
14682
14758
  marginBottom: 0,
14683
14759
  marginTop: 0
@@ -16959,7 +17035,10 @@ var ClassicHeader = function ClassicHeader(props) {
16959
17035
  style: {
16960
17036
  width: sectionproperties.header_width + 'vw'
16961
17037
  }
16962
- }, /*#__PURE__*/React.createElement("div", {
17038
+ }, sectionproperties.showtextslider == 'Show' && /*#__PURE__*/React.createElement(MarqueeHeader, {
17039
+ sectionpropertiesprops: sectionproperties,
17040
+ actions: actions
17041
+ }), /*#__PURE__*/React.createElement("div", {
16963
17042
  "class": "".concat(headerstyles$d.headercontainer) + ' col-lg-12 pl-0 pr-0 d-md-none ',
16964
17043
  style: {
16965
17044
  position: sectionproperties.headerstyles_position,
@@ -29571,7 +29650,7 @@ var HeaderWithSearchOnCenter = function HeaderWithSearchOnCenter(props) {
29571
29650
  function ownKeys$1u(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
29572
29651
  function _objectSpread$1u(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1u(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1u(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
29573
29652
  var TwoTieredHeader = function TwoTieredHeader(props) {
29574
- var _css, _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$i, _authdetailsContext$i2, _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4, _fetchcustomercartQue5, _fetchcustomercartQue6, _authdetailsContext$c, _authdetailsContext$c2, _fetchcustomercartQue7, _fetchcustomercartQue8, _fetchcustomercartQue9, _fetchcustomercartQue10, _fetchcustomercartQue11, _fetchcustomercartQue12;
29653
+ var _css, _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$i, _authdetailsContext$i2, _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4, _fetchcustomercartQue5, _fetchcustomercartQue6, _authdetailsContext$c, _authdetailsContext$c2, _authdetailsContext$c3, _authdetailsContext$c4, _authdetailsContext$c5, _fetchcustomercartQue7, _fetchcustomercartQue8, _fetchcustomercartQue9, _fetchcustomercartQue10, _fetchcustomercartQue11, _fetchcustomercartQue12;
29575
29654
  var lang = props.actions.lang;
29576
29655
  var langdetect = props.actions.langdetect;
29577
29656
  var setlang = props.actions.setlang;
@@ -29597,6 +29676,10 @@ var TwoTieredHeader = function TwoTieredHeader(props) {
29597
29676
  _useState4 = _slicedToArray(_useState3, 2),
29598
29677
  dropdownselect = _useState4[0],
29599
29678
  setdropdownselect = _useState4[1];
29679
+ var _useState5 = useState([]),
29680
+ _useState6 = _slicedToArray(_useState5, 2),
29681
+ logoarrayofobjects = _useState6[0],
29682
+ setlogoarrayofobjects = _useState6[1];
29600
29683
  useEffect(function () {
29601
29684
  var secpropobj = {};
29602
29685
  StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
@@ -29615,10 +29698,6 @@ var TwoTieredHeader = function TwoTieredHeader(props) {
29615
29698
  }
29616
29699
  setsectionproperties(_objectSpread$1u({}, secpropobj));
29617
29700
  }, [StatePagePropertiesContext]);
29618
- var _useState5 = useState([]),
29619
- _useState6 = _slicedToArray(_useState5, 2),
29620
- logoarrayofobjects = _useState6[0],
29621
- setlogoarrayofobjects = _useState6[1];
29622
29701
  useEffect(function () {
29623
29702
  if (templateproperties_context.length != 0 && templateproperties_context.logoarrayofobjects != undefined) {
29624
29703
  var logoarrayofobjectsparsed = JSON.parse(templateproperties_context.logoarrayofobjects);
@@ -29891,6 +29970,12 @@ var TwoTieredHeader = function TwoTieredHeader(props) {
29891
29970
  marginBottom: sectionproperties.header_marginBottom + 'px',
29892
29971
  width: sectionproperties.header_width + 'vw',
29893
29972
  maxWidth: '100vw'
29973
+ }),
29974
+ walletoutercontainer: css({
29975
+ height: templateproperties_context.walletcontainerheight + 'px',
29976
+ width: 'fit-content',
29977
+ border: '2px dashed white',
29978
+ borderRadius: 5
29894
29979
  })
29895
29980
  };
29896
29981
  return /*#__PURE__*/React.createElement("div", {
@@ -30092,8 +30177,8 @@ var TwoTieredHeader = function TwoTieredHeader(props) {
30092
30177
  "class": langdetect == 'en' ? 'headerdropdownml dropdown-toggle_w100' : 'headerdropdownmr dropdown-toggle_w100',
30093
30178
  style: {
30094
30179
  width: authdetailsContext.loggedin == true ? 'auto' : langdetect == 'en' ? '105px' : '120px',
30095
- marginRight: langdetect == 'en' ? sectionproperties.btnsposition == 'Bottom' ? '13px' : '.1rem' : 0,
30096
- marginLeft: langdetect == 'ar' ? sectionproperties.btnsposition == 'Bottom' ? '13px' : '.1rem' : 0
30180
+ marginRight: langdetect == 'en' ? sectionproperties.showfooterphonenumber == 'Hide' && sectionproperties.lang_position == 'Top' && authdetailsContext.loggedin == true ? '3.5rem' : sectionproperties.btnsposition == 'Bottom' ? '13px' : '.1rem' : 0,
30181
+ marginLeft: langdetect == 'ar' ? sectionproperties.showfooterphonenumber == 'Hide' && sectionproperties.lang_position == 'Top' && authdetailsContext.loggedin == true ? '3.5rem' : sectionproperties.btnsposition == 'Bottom' ? '13px' : '.1rem' : 0
30097
30182
  }
30098
30183
  }, /*#__PURE__*/React.createElement(Dropdown, null, /*#__PURE__*/React.createElement(Dropdown.Toggle, null, !authdetailsContext.loggedin && /*#__PURE__*/React.createElement("div", {
30099
30184
  "class": ' d-flex justify-content-center align-items-center '
@@ -30137,7 +30222,7 @@ var TwoTieredHeader = function TwoTieredHeader(props) {
30137
30222
  style: {
30138
30223
  textAlign: langdetect == 'en' ? 'left' : 'right'
30139
30224
  }
30140
- }, /*#__PURE__*/React.createElement("p", {
30225
+ }, (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$c = authdetailsContext.customerinfo) === null || _authdetailsContext$c === void 0 ? void 0 : _authdetailsContext$c.cancustomerviewwallet) != 1 && templateproperties_context.showwallet == 'Hide' && /*#__PURE__*/React.createElement("p", {
30141
30226
  "class": "m-0 p-0",
30142
30227
  style: {
30143
30228
  color: sectionproperties.greetingtextcolor,
@@ -30150,7 +30235,24 @@ var TwoTieredHeader = function TwoTieredHeader(props) {
30150
30235
  style: {
30151
30236
  maxWidth: sectionproperties.showfooterphonenumber == 'Show' ? '65px' : '140px'
30152
30237
  }
30153
- }, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$c = authdetailsContext.customerinfo) === null || _authdetailsContext$c === void 0 ? void 0 : _authdetailsContext$c.name)))), !authdetailsContext.loggedin && /*#__PURE__*/React.createElement(Dropdown.Menu, null, /*#__PURE__*/React.createElement(Dropdown.Item, {
30238
+ }, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$c2 = authdetailsContext.customerinfo) === null || _authdetailsContext$c2 === void 0 ? void 0 : _authdetailsContext$c2.name), (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$c3 = authdetailsContext.customerinfo) === null || _authdetailsContext$c3 === void 0 ? void 0 : _authdetailsContext$c3.cancustomerviewwallet) == 1 && templateproperties_context.showwallet == 'Show' && /*#__PURE__*/React.createElement("div", {
30239
+ "class": ' m-0 p-0 d-flex justify-content-start flex-row ',
30240
+ style: {}
30241
+ }, /*#__PURE__*/React.createElement("p", {
30242
+ "class": "m-0 p-0",
30243
+ style: {
30244
+ color: templateproperties_context.walletcolor,
30245
+ fontSize: templateproperties_context.walletfontize + 'px',
30246
+ fontWeight: 500
30247
+ }
30248
+ }, langdetect == 'en' ? templateproperties_context.walletcontent_en : templateproperties_context.walletcontent_ar), /*#__PURE__*/React.createElement("p", {
30249
+ "class": "m-0 p-0 mx-1",
30250
+ style: {
30251
+ color: templateproperties_context.walletsecondarycolor,
30252
+ fontSize: '15px',
30253
+ fontWeight: 600
30254
+ }
30255
+ }, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$c4 = authdetailsContext.customerinfo) === null || _authdetailsContext$c4 === void 0 ? void 0 : _authdetailsContext$c4.walletpoints, ' '))))), !authdetailsContext.loggedin && /*#__PURE__*/React.createElement(Dropdown.Menu, null, /*#__PURE__*/React.createElement(Dropdown.Item, {
30154
30256
  onClick: function onClick() {
30155
30257
  routingcountext(StaticPagesLinksContext.Login);
30156
30258
  }
@@ -30185,7 +30287,7 @@ var TwoTieredHeader = function TwoTieredHeader(props) {
30185
30287
  onClick: function onClick() {
30186
30288
  routingcountext(StaticPagesLinksContext.accountinfo);
30187
30289
  }
30188
- }, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$c2 = authdetailsContext.customerinfo) === null || _authdetailsContext$c2 === void 0 ? void 0 : _authdetailsContext$c2.name))), /*#__PURE__*/React.createElement(Dropdown.Divider, null), /*#__PURE__*/React.createElement(Dropdown.Item, {
30290
+ }, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$c5 = authdetailsContext.customerinfo) === null || _authdetailsContext$c5 === void 0 ? void 0 : _authdetailsContext$c5.name))), /*#__PURE__*/React.createElement(Dropdown.Divider, null), /*#__PURE__*/React.createElement(Dropdown.Item, {
30189
30291
  onClick: function onClick() {
30190
30292
  routingcountext(StaticPagesLinksContext.Ordershistory);
30191
30293
  }
@@ -49044,7 +49146,7 @@ var CircleCardWithVariants = function CircleCardWithVariants(props) {
49044
49146
  borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px',
49045
49147
  borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
49046
49148
  borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
49047
- opacity: item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 ? 0.4 : 1
49149
+ opacity: item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 ? 0.4 : 1
49048
49150
 
49049
49151
  // border: sectionproperties.image_borderwidth + 'px solid ' + sectionproperties.image_bordercolor,
49050
49152
  },
@@ -49077,7 +49179,7 @@ var CircleCardWithVariants = function CircleCardWithVariants(props) {
49077
49179
  fontSize: sectionproperties.pillfontSize + 'px',
49078
49180
  direction: 'ltr'
49079
49181
  }
49080
- }, '-' + Math.round(10.0 * ((parseInt(item.defaultprice) - parseInt(item.defaultsaleprice)) / parseInt(item.defaultprice)) * 100) / 10.0 + '%')), item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 && /*#__PURE__*/React.createElement("div", {
49182
+ }, '-' + Math.round(10.0 * ((parseInt(item.defaultprice) - parseInt(item.defaultsaleprice)) / parseInt(item.defaultprice)) * 100) / 10.0 + '%')), item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 && /*#__PURE__*/React.createElement("div", {
49081
49183
  "class": "".concat(card_cssstyles.outstockbadge) + ' allcentered '
49082
49184
  }, /*#__PURE__*/React.createElement("p", {
49083
49185
  "class": "m-0 p-0"
@@ -49128,7 +49230,7 @@ var CircleCardWithVariants = function CircleCardWithVariants(props) {
49128
49230
  }))), sectionproperties.cartBtnShow == 'Show' && showquantity == false && /*#__PURE__*/React.createElement("button", {
49129
49231
  "class": "".concat(card_cssstyles.cart_btn) + ' ml-2 mr-2 ml-sm-1 mr-sm-1 w-md-130px w-sm-100px font-sm-12 ',
49130
49232
  onClick: function onClick() {
49131
- if (item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0) {
49233
+ if (item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0) {
49132
49234
  NotificationManager.warning('', langdetect == 'en' ? 'Sold Out' : 'نفذت الكمية');
49133
49235
  } else if (sectionproperties.quantitybtn_show == 'Show') {
49134
49236
  setshowquantity(true);
@@ -51000,6 +51102,7 @@ var Card23 = function Card23(props) {
51000
51102
  _useState6 = _slicedToArray(_useState5, 2),
51001
51103
  secondimage = _useState6[0],
51002
51104
  setsecondimage = _useState6[1];
51105
+ props.actions.NotificationManager;
51003
51106
  var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
51004
51107
  props.actions.lang;
51005
51108
  var langdetect = props.actions.langdetect;
@@ -51168,6 +51271,31 @@ var Card23 = function Card23(props) {
51168
51271
  borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px',
51169
51272
  borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
51170
51273
  borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px'
51274
+ }),
51275
+ outstockbadge: css({
51276
+ width: sectionproperties.outstock_width + 'px',
51277
+ height: sectionproperties.outstock_height + 'px',
51278
+ background: sectionproperties.outstock_bg,
51279
+ color: sectionproperties.outstock_color,
51280
+ fontSize: sectionproperties.outstock_fontSize + 'px',
51281
+ borderRadius: sectionproperties.outstock_borderradius + 'px',
51282
+ position: 'absolute',
51283
+ zIndex: 2,
51284
+ top: 0,
51285
+ bottom: 0,
51286
+ left: 0,
51287
+ right: 0,
51288
+ margin: 'auto'
51289
+ }),
51290
+ cashbackoutercontainer: css({
51291
+ minWidth: 'fit-content',
51292
+ maxWidth: sectionproperties.cashbackcontainerwidth + '%',
51293
+ height: sectionproperties.cashbackcontainerheight + 'px',
51294
+ background: sectionproperties.cashbackcontainerbgcolor,
51295
+ color: sectionproperties.cashbackcontainercolor,
51296
+ fontSize: sectionproperties.cashbackcontainerfontsize + 'px',
51297
+ border: sectionproperties.cashbackcontainerborderwidth + 'px ' + sectionproperties.cashbackcontainerborderstyle + sectionproperties.cashbackcontainerbordercolor,
51298
+ borderRadius: sectionproperties.cashbackcontainerborderradius + 'px'
51171
51299
  })
51172
51300
  };
51173
51301
  var plainString = function plainString(html) {
@@ -51181,13 +51309,17 @@ var Card23 = function Card23(props) {
51181
51309
  transition = true;
51182
51310
  }
51183
51311
  return /*#__PURE__*/React.createElement("div", {
51184
- "class": "w-100 cursor-pointer"
51312
+ "class": "w-100 cursor-pointer",
51313
+ style: {
51314
+ position: 'relative'
51315
+ }
51185
51316
  }, /*#__PURE__*/React.createElement(Imagekitimagecomp, {
51186
51317
  "class": transition ? cardstyles$7.intialimage : '',
51187
51318
  urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
51188
51319
  publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
51189
51320
  path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + item.image,
51190
51321
  style: {
51322
+ opacity: item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 ? sectionproperties.outofstockimageopcity : 1,
51191
51323
  width: sectionproperties.imageInnerWidth_Height + '%',
51192
51324
  height: sectionproperties.imageInnerWidth_Height + '%',
51193
51325
  objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain',
@@ -51224,8 +51356,8 @@ var Card23 = function Card23(props) {
51224
51356
  "class": "row m-0 align-items-center justify-content-center",
51225
51357
  style: {
51226
51358
  position: 'absolute',
51227
- top: 10,
51228
- left: 10,
51359
+ top: sectionproperties.badge_top + 'px',
51360
+ left: sectionproperties.badge_right + 'px',
51229
51361
  height: sectionproperties.badge_height + 'px',
51230
51362
  width: sectionproperties.badge_width + 'px',
51231
51363
  backgroundColor: sectionproperties.badge_bgcolor,
@@ -51256,7 +51388,11 @@ var Card23 = function Card23(props) {
51256
51388
  fontSize: sectionproperties.pillfontSize + 'px',
51257
51389
  direction: 'ltr'
51258
51390
  }
51259
- }, '-' + Math.round(10.0 * ((parseInt(item.defaultprice) - parseInt(item.defaultsaleprice)) / parseInt(item.defaultprice)) * 100) / 10.0 + '%')));
51391
+ }, '-' + Math.round(10.0 * ((parseInt(item.defaultprice) - parseInt(item.defaultsaleprice)) / parseInt(item.defaultprice)) * 100) / 10.0 + '%')), item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 && /*#__PURE__*/React.createElement("div", {
51392
+ "class": "".concat(cardsstyles2.outstockbadge) + ' allcentered '
51393
+ }, /*#__PURE__*/React.createElement("p", {
51394
+ "class": "m-0 p-0"
51395
+ }, langdetect == 'en' ? sectionproperties.outstock_contenten : sectionproperties.outstock_contentar)));
51260
51396
  };
51261
51397
  return /*#__PURE__*/React.createElement("div", {
51262
51398
  "class": langdetect == 'en' ? sectionproperties.card_marginLeft != 0 ? 'row m-0 w-100 pl-sm-2' : sectionproperties.card_marginRight != 0 ? 'row m-0 w-100 pr-sm-2' : 'row m-0 w-100' : langdetect == 'en' ? sectionproperties.card_marginRight != 0 ? 'row m-0 w-100 pr-sm-2' : sectionproperties.card_marginLeft != 0 ? 'row m-0 w-100 pl-sm-2' : 'row m-0 w-100' : 'row m-0 w-100',
@@ -51366,7 +51502,21 @@ var Card23 = function Card23(props) {
51366
51502
  paddingTop: '10px',
51367
51503
  paddingBottom: '10px'
51368
51504
  }
51505
+ }, sectionproperties.showcashbackcontainer == 'Show' && item.productcashbackvalue > 0 && /*#__PURE__*/React.createElement("div", {
51506
+ "class": "col-lg-12 p-0 d-flex justify-content-start my-1"
51369
51507
  }, /*#__PURE__*/React.createElement("div", {
51508
+ "class": "".concat(cardsstyles2.cashbackoutercontainer) + ' d-flex flex-row allcentered px-2 '
51509
+ }, /*#__PURE__*/React.createElement("p", {
51510
+ "class": "m-0 p-0",
51511
+ style: {
51512
+ fontWeight: 500
51513
+ }
51514
+ }, langdetect == 'en' ? sectionproperties.cashbackcontainercontenten : sectionproperties.cashbackcontainercontentar), /*#__PURE__*/React.createElement("p", {
51515
+ "class": "m-0 p-0 mx-1",
51516
+ style: {
51517
+ fontWeight: 600
51518
+ }
51519
+ }, langdetect == 'en' ? item.currencyname : '', " ", item.productcashbackvalue, " ", langdetect == 'en' ? '' : item.currencyname))), /*#__PURE__*/React.createElement("div", {
51370
51520
  "class": "col-lg-12 p-0"
51371
51521
  }, sectionproperties.prodCatShow == 'Show' && /*#__PURE__*/React.createElement("p", {
51372
51522
  "class": "".concat(cardsstyles2.productDescStyles) + ' col-lg-12 wordbreak wordbreak1 p-0 m-0 ',
@@ -51390,14 +51540,20 @@ var Card23 = function Card23(props) {
51390
51540
  "class": "row m-0 w-100 align-items-center mt-1 mb-1"
51391
51541
  }, sectionproperties.prodPriceShow == 'Show' && /*#__PURE__*/React.createElement("p", {
51392
51542
  "class": langdetect == 'en' ? "".concat(cardsstyles2.productPricestyles) + ' m-0 wordbreak d-flex align-items-center text-right text-sm-left ' : "".concat(cardsstyles2.productPricestyles) + ' m-0 wordbreak d-flex align-items-center text-left text-sm-right '
51393
- }, langdetect == 'en' ? 'EGP' : '', " ", item.hassale == 1 ? item.defaultsaleprice : item.defaultprice, " ", langdetect == 'en' ? '' : 'ج.م'), sectionproperties.prodsalePriceshow == 'Show' && item.hassale == 1 && /*#__PURE__*/React.createElement("span", {
51543
+ }, langdetect == 'en' ? item.currencyname : '', " ", item.hassale == 1 ? item.defaultsaleprice : item.defaultprice, " ", langdetect == 'en' ? '' : item.currencyname), sectionproperties.prodsalePriceshow == 'Show' && item.hassale == 1 && /*#__PURE__*/React.createElement("span", {
51394
51544
  "class": "".concat(cardsstyles2.productSalePricestyles)
51395
51545
  }, "/"), sectionproperties.prodsalePriceshow == 'Show' && item.hassale == 1 && /*#__PURE__*/React.createElement("p", {
51396
51546
  "class": langdetect == 'en' ? "".concat(cardsstyles2.productSalePricestyles) + ' linethrough m-0 wordbreak d-flex mt-sm-auto mb-sm-auto text-right text-sm-left ' : "".concat(cardsstyles2.productSalePricestyles) + ' linethrough m-0 wordbreak d-flex mt-sm-auto mb-sm-auto text-left text-sm-right '
51397
- }, langdetect == 'en' ? 'EGP' : '', " ", item.defaultprice, " ", langdetect == 'en' ? '' : 'ج.م')), /*#__PURE__*/React.createElement("div", {
51547
+ }, langdetect == 'en' ? item.currencyname : '', " ", item.defaultprice, " ", langdetect == 'en' ? '' : item.currencyname)), /*#__PURE__*/React.createElement("div", {
51398
51548
  "class": "d-flex align-items-center m-0"
51399
51549
  }, sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React.createElement("button", {
51400
- "class": "".concat(cardsstyles2.cart_btn) + ' allcentered ',
51550
+ "class": "".concat(cardsstyles2.cart_btn) + ' allcentered '
51551
+ // onClick={() => {
51552
+ // setShowProductInfoModalContext(true);
51553
+ // setProductIdProdutInfoModalContext(item.productid);
51554
+
51555
+ // }}
51556
+ ,
51401
51557
  onClick: function onClick() {
51402
51558
  setShowProductInfoModalContext(true);
51403
51559
  setProductIdProdutInfoModalContext(item.productid);
@@ -51864,7 +52020,7 @@ var Card23 = function Card23(props) {
51864
52020
  // : `${cardsstyles2.productPricestyles}` + ' m-0 wordbreak d-flex align-items-center text-left text-sm-right '
51865
52021
  // }
51866
52022
  // >
51867
- // {langdetect == 'en' ? 'EGP' : ''} {item.hassale == 1 ? item.defaultsaleprice : item.defaultprice} {langdetect == 'en' ? '' : 'ج.م'}
52023
+ // {langdetect == 'en' ? item.currencyname : ''} {item.hassale == 1 ? item.defaultsaleprice : item.defaultprice} {langdetect == 'en' ? '' : item.currencyname}
51868
52024
  // </p>
51869
52025
  // )}
51870
52026
  // {sectionproperties.prodsalePriceshow == 'Show' && item.hassale == 1 && <span class={`${cardsstyles2.productSalePricestyles}`}>/</span>}
@@ -51876,7 +52032,7 @@ var Card23 = function Card23(props) {
51876
52032
  // : `${cardsstyles2.productSalePricestyles}` + ' linethrough m-0 wordbreak d-flex mt-sm-auto mb-sm-auto text-left text-sm-right '
51877
52033
  // }
51878
52034
  // >
51879
- // {langdetect == 'en' ? 'EGP' : ''} {item.defaultprice} {langdetect == 'en' ? '' : 'ج.م'}
52035
+ // {langdetect == 'en' ? item.currencyname : ''} {item.defaultprice} {langdetect == 'en' ? '' : item.currencyname}
51880
52036
  // </p>
51881
52037
  // )}
51882
52038
  // </div>
@@ -52123,7 +52279,7 @@ var Card23 = function Card23(props) {
52123
52279
  // : `${cardsstyles2.productPricestyles}` + ' m-0 wordbreak d-flex align-items-center text-left text-sm-right '
52124
52280
  // }
52125
52281
  // >
52126
- // {langdetect == 'en' ? 'EGP' : ''} {item.hassale == 1 ? item.defaultsaleprice : item.defaultprice} {langdetect == 'en' ? '' : 'ج.م'}
52282
+ // {langdetect == 'en' ? item.currencyname : ''} {item.hassale == 1 ? item.defaultsaleprice : item.defaultprice} {langdetect == 'en' ? '' : item.currencyname}
52127
52283
  // </p>
52128
52284
  // )}
52129
52285
  // {sectionproperties.prodsalePriceshow == 'Show' && item.hassale == 1 && <span class={`${cardsstyles2.productSalePricestyles}`}>/</span>}
@@ -52135,7 +52291,7 @@ var Card23 = function Card23(props) {
52135
52291
  // : `${cardsstyles2.productSalePricestyles}` + ' linethrough m-0 wordbreak d-flex mt-sm-auto mb-sm-auto text-left text-sm-right '
52136
52292
  // }
52137
52293
  // >
52138
- // {langdetect == 'en' ? 'EGP' : ''} {item.defaultprice} {langdetect == 'en' ? '' : 'ج.م'}
52294
+ // {langdetect == 'en' ? item.currencyname : ''} {item.defaultprice} {langdetect == 'en' ? '' : item.currencyname}
52139
52295
  // </p>
52140
52296
  // )}
52141
52297
  // </div>
@@ -52694,7 +52850,7 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
52694
52850
  borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
52695
52851
  borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
52696
52852
  background: sectionproperties.image_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.image_bgcolor,
52697
- opacity: item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' ? 0.4 : 1
52853
+ opacity: item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' ? 0.4 : 1
52698
52854
  }),
52699
52855
  quantitybtn: css({
52700
52856
  flex: 1,
@@ -52916,7 +53072,7 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
52916
53072
  color: sectionproperties.badge_color,
52917
53073
  fontSize: sectionproperties.badge_fontsize + 'px'
52918
53074
  }
52919
- }, langdetect == 'en' ? sectionproperties.badgeContentEn : sectionproperties.badgeContentAr)), item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && /*#__PURE__*/React.createElement("div", {
53075
+ }, langdetect == 'en' ? sectionproperties.badgeContentEn : sectionproperties.badgeContentAr)), item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && /*#__PURE__*/React.createElement("div", {
52920
53076
  "class": "".concat(cardsstyles2.outstockbadge) + ' allcentered '
52921
53077
  }, /*#__PURE__*/React.createElement("p", {
52922
53078
  "class": "m-0 p-0"
@@ -52956,7 +53112,7 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
52956
53112
  transform: ' rotate(-180deg)'
52957
53113
  },
52958
53114
  onClick: function onClick() {
52959
- if (item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit') {
53115
+ if (item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit') {
52960
53116
  NotificationManager.warning('', langdetect == 'en' ? 'Sold Out' : 'نفذت الكمية');
52961
53117
  } else if (item.hasvariants == 0) {
52962
53118
  updatequantity('remove');
@@ -52970,7 +53126,7 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
52970
53126
  })), langdetect == 'ar' && /*#__PURE__*/React.createElement("span", {
52971
53127
  "class": "".concat(cardsstyles2.add_quantitybtn_icon_container) + ' m-1 ',
52972
53128
  onClick: function onClick() {
52973
- if (item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit') {
53129
+ if (item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit') {
52974
53130
  NotificationManager.warning('', langdetect == 'en' ? 'Sold Out' : 'نفذت الكمية');
52975
53131
  } else if (item.hasvariants == 0) {
52976
53132
  updatequantity('add');
@@ -52989,7 +53145,7 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
52989
53145
  transform: ' rotate(-180deg)'
52990
53146
  },
52991
53147
  onClick: function onClick() {
52992
- if (item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit') {
53148
+ if (item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit') {
52993
53149
  NotificationManager.warning('', langdetect == 'en' ? 'Sold Out' : 'نفذت الكمية');
52994
53150
  } else if (item.hasvariants == 0) {
52995
53151
  updatequantity('remove');
@@ -53003,7 +53159,7 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
53003
53159
  })), langdetect == 'en' && /*#__PURE__*/React.createElement("span", {
53004
53160
  "class": "".concat(cardsstyles2.add_quantitybtn_icon_container) + ' m-1 ',
53005
53161
  onClick: function onClick() {
53006
- if (item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit') {
53162
+ if (item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit') {
53007
53163
  NotificationManager.warning('', langdetect == 'en' ? 'Sold Out' : 'نفذت الكمية');
53008
53164
  } else if (item.hasvariants == 0) {
53009
53165
  updatequantity('add');
@@ -57226,7 +57382,7 @@ var Productcard_with_slideanimation = function Productcard_with_slideanimation(p
57226
57382
  borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px',
57227
57383
  borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
57228
57384
  borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
57229
- opacity: item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 ? 0.4 : 1
57385
+ opacity: item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 ? 0.4 : 1
57230
57386
  }
57231
57387
  }), sectionproperties.showbadge == 'Show' && item.hassale == 1 && /*#__PURE__*/React.createElement("div", {
57232
57388
  "class": "allcentered",
@@ -57264,7 +57420,7 @@ var Productcard_with_slideanimation = function Productcard_with_slideanimation(p
57264
57420
  fontSize: sectionproperties.pillfontSize + 'px',
57265
57421
  direction: 'ltr'
57266
57422
  }
57267
- }, '-' + Math.round(10.0 * ((parseInt(item.defaultprice) - parseInt(item.defaultsaleprice)) / parseInt(item.defaultprice)) * 100) / 10.0 + '%')), item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 && /*#__PURE__*/React.createElement("div", {
57423
+ }, '-' + Math.round(10.0 * ((parseInt(item.defaultprice) - parseInt(item.defaultsaleprice)) / parseInt(item.defaultprice)) * 100) / 10.0 + '%')), item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 && /*#__PURE__*/React.createElement("div", {
57268
57424
  "class": "".concat(card_cssstyles.outstockbadge) + ' allcentered '
57269
57425
  }, /*#__PURE__*/React.createElement("p", {
57270
57426
  "class": "m-0 p-0"
@@ -57290,7 +57446,7 @@ var Productcard_with_slideanimation = function Productcard_with_slideanimation(p
57290
57446
  }, sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React.createElement("p", {
57291
57447
  "class": "".concat(card_cssstyles.cart_btn) + ' m-0 p-0 d-flex align-items-center justify-content-center cursor-pointer ',
57292
57448
  onClick: function onClick() {
57293
- if (item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0) {
57449
+ if (item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0) {
57294
57450
  NotificationManager.warning('', langdetect == 'en' ? 'Sold Out' : 'نفذت الكمية');
57295
57451
  } else {
57296
57452
  setShowProductInfoModalContext(true);
@@ -59010,7 +59166,7 @@ var Simpleproductcard = function Simpleproductcard(props) {
59010
59166
  var setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
59011
59167
  var cardonclickfunctionContext = props.actions.cardonclickfunctionContext;
59012
59168
  var ikimagecredcontext = props.actions.ikimagecredcontext;
59013
- var NotificationManager = props.actions.NotificationManager;
59169
+ props.actions.NotificationManager;
59014
59170
  var plainString = function plainString(html) {
59015
59171
  var divContainer = document.createElement('div');
59016
59172
  divContainer.innerHTML = html;
@@ -59048,7 +59204,7 @@ var Simpleproductcard = function Simpleproductcard(props) {
59048
59204
  borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
59049
59205
  borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
59050
59206
  transition: '.3s',
59051
- opacity: item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 ? 0.4 : 1,
59207
+ opacity: item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 ? 0.4 : 1,
59052
59208
  '@media (max-width: 800px)': {
59053
59209
  height: sectionproperties.height_responsive != null ? sectionproperties.height_responsive + 'px' : sectionproperties.image_height + 'px'
59054
59210
  }
@@ -59264,7 +59420,7 @@ var Simpleproductcard = function Simpleproductcard(props) {
59264
59420
  height: sectionproperties.imageInnerWidth_Height + '%',
59265
59421
  objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain'
59266
59422
  }
59267
- })), item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 && /*#__PURE__*/React.createElement("div", {
59423
+ })), item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 && /*#__PURE__*/React.createElement("div", {
59268
59424
  "class": "".concat(card_cssstyles.outstockbadge) + ' allcentered '
59269
59425
  }, /*#__PURE__*/React.createElement("p", {
59270
59426
  "class": "m-0 p-0"
@@ -59348,12 +59504,8 @@ var Simpleproductcard = function Simpleproductcard(props) {
59348
59504
  }, /*#__PURE__*/React.createElement("p", {
59349
59505
  "class": "".concat(card_cssstyles.cart_btn) + ' m-0 p-0 d-flex align-items-center justify-content-center mt-1 ',
59350
59506
  onClick: function onClick() {
59351
- if (item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0) {
59352
- NotificationManager.warning('', langdetect == 'en' ? 'Sold Out' : 'نفذت الكمية');
59353
- } else {
59354
- setShowProductInfoModalContext(true);
59355
- setProductIdProdutInfoModalContext(item.productid);
59356
- }
59507
+ setShowProductInfoModalContext(true);
59508
+ setProductIdProdutInfoModalContext(item.productid);
59357
59509
  }
59358
59510
  }, sectionproperties.cartBtn_iconFontSize != 0 && /*#__PURE__*/React.createElement("i", {
59359
59511
  "class": langdetect == 'en' ? 'h-100 mr-2 d-flex align-items-center justify-content-center' : 'h-100 ml-2 d-flex align-items-center justify-content-center'
@@ -60474,7 +60626,7 @@ var QuantityButtonBasedProductCard = function QuantityButtonBasedProductCard(pro
60474
60626
  borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px',
60475
60627
  borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
60476
60628
  borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
60477
- opacity: item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 ? sectionproperties.outofstockimageopcity : 1,
60629
+ opacity: item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 ? sectionproperties.outofstockimageopcity : 1,
60478
60630
  transition: '.3s'
60479
60631
  }),
60480
60632
  productNameStyles: css({
@@ -60706,7 +60858,7 @@ var QuantityButtonBasedProductCard = function QuantityButtonBasedProductCard(pro
60706
60858
  height: sectionproperties.badge_height + 'px',
60707
60859
  background: sectionproperties.badge_bgcolor,
60708
60860
  borderRadius: sectionproperties.badge_borderradius + 'px',
60709
- display: item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 && sectionproperties.outofstock_replacebadges == 'Replace' ? 'none' : 'flex'
60861
+ display: item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 && sectionproperties.outofstock_replacebadges == 'Replace' ? 'none' : 'flex'
60710
60862
  }
60711
60863
  }, /*#__PURE__*/React.createElement("p", {
60712
60864
  "class": "m-0 p-0",
@@ -60726,7 +60878,7 @@ var QuantityButtonBasedProductCard = function QuantityButtonBasedProductCard(pro
60726
60878
  height: sectionproperties.pillheight + 'px',
60727
60879
  background: sectionproperties.pillbgcolor,
60728
60880
  borderRadius: sectionproperties.pillborderBottomLeftRadius + 'px',
60729
- display: item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 && sectionproperties.outofstock_replacebadges == 'Replace' ? 'none' : 'flex'
60881
+ display: item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 && sectionproperties.outofstock_replacebadges == 'Replace' ? 'none' : 'flex'
60730
60882
  }
60731
60883
  }, /*#__PURE__*/React.createElement("p", {
60732
60884
  "class": "m-0 p-0 text-uppercase",
@@ -60784,11 +60936,11 @@ var QuantityButtonBasedProductCard = function QuantityButtonBasedProductCard(pro
60784
60936
  height: sectionproperties.imageInnerWidth_Height + '%',
60785
60937
  objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain'
60786
60938
  }
60787
- })), item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 && sectionproperties.outofstock_centered == 'Not centered' && /*#__PURE__*/React.createElement("div", {
60939
+ })), item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 && sectionproperties.outofstock_centered == 'Not centered' && /*#__PURE__*/React.createElement("div", {
60788
60940
  "class": "".concat(card_cssstyles.outstockbadge) + ' allcentered '
60789
60941
  }, /*#__PURE__*/React.createElement("p", {
60790
60942
  "class": "m-0 p-0"
60791
- }, langdetect == 'en' ? sectionproperties.outstock_contenten : sectionproperties.outstock_contentar)), item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 && sectionproperties.outofstock_centered == 'Centered' && /*#__PURE__*/React.createElement("div", {
60943
+ }, langdetect == 'en' ? sectionproperties.outstock_contenten : sectionproperties.outstock_contentar)), item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 && sectionproperties.outofstock_centered == 'Centered' && /*#__PURE__*/React.createElement("div", {
60792
60944
  "class": "".concat(card_cssstyles.outstockbadgecentered) + ' allcentered '
60793
60945
  }, /*#__PURE__*/React.createElement("p", {
60794
60946
  "class": "m-0 p-0"
@@ -60798,7 +60950,7 @@ var QuantityButtonBasedProductCard = function QuantityButtonBasedProductCard(pro
60798
60950
  if (sectionproperties.quantitybtn_show == 'Show' && showquantity == false) {
60799
60951
  setshowquantity(true);
60800
60952
  } else {
60801
- if (item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0) {
60953
+ if (item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0) {
60802
60954
  NotificationManager.warning('', langdetect == 'en' ? 'Sold Out' : 'نفذت الكمية');
60803
60955
  } else {
60804
60956
  setShowProductInfoModalContext(true);