tabexseriescomponents 0.0.265 → 0.0.267

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
@@ -34,6 +34,7 @@ var AiOutlineStar = require('@react-icons/all-files/ai/AiOutlineStar');
34
34
  var reactShare = require('react-share');
35
35
  var imagekitioReact = require('imagekitio-react');
36
36
  var ReactStars = require('react-rating-stars-component');
37
+ var FiLayers = require('@react-icons/all-files/fi/FiLayers');
37
38
  var material = require('@mui/material');
38
39
  var AiOutlineClockCircle = require('@react-icons/all-files/ai/AiOutlineClockCircle');
39
40
  var AiOutlinePlus = require('@react-icons/all-files/ai/AiOutlinePlus');
@@ -52,7 +53,6 @@ var HiOutlineChevronRight = require('@react-icons/all-files/hi/HiOutlineChevronR
52
53
  var HiOutlineChevronLeft = require('@react-icons/all-files/hi/HiOutlineChevronLeft');
53
54
  var GoGlobe = require('@react-icons/all-files/go/GoGlobe');
54
55
  var VscGlobe = require('@react-icons/all-files/vsc/VscGlobe');
55
- var FiLayers = require('@react-icons/all-files/fi/FiLayers');
56
56
  var HiOutlineTrash = require('@react-icons/all-files/hi/HiOutlineTrash');
57
57
  var BiSad = require('@react-icons/all-files/bi/BiSad');
58
58
  var FiCalendar = require('@react-icons/all-files/fi/FiCalendar');
@@ -1326,7 +1326,7 @@ var ProductHeaderPricing = function ProductHeaderPricing(props) {
1326
1326
  function ownKeys$20(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; }
1327
1327
  function _objectSpread$20(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$20(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$20(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1328
1328
  var Product_itemtype = function Product_itemtype(props) {
1329
- var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _fetchProductInfoQuer15, _fetchProductInfoQuer16, _fetchProductInfoQuer17, _fetchProductInfoQuer18, _fetchProductInfoQuer19, _fetchProductInfoQuer20, _fetchProductInfoQuer21, _ProductInfoObj$data, _ProductInfoObj$data$, _ProductInfoObj$data$2, _fetchProductInfoQuer22, _fetchProductInfoQuer23, _fetchProductInfoQuer24, _fetchProductInfoQuer25, _fetchProductInfoQuer26, _fetchProductInfoQuer27, _fetchProductInfoQuer28, _fetchProductInfoQuer29, _fetchProductInfoQuer30, _fetchProductInfoQuer31, _fetchProductInfoQuer32, _fetchProductInfoQuer33, _fetchProductInfoQuer34, _fetchProductInfoQuer35, _fetchProductInfoQuer36;
1329
+ 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, _ProductInfoObj$data, _ProductInfoObj$data$, _ProductInfoObj$data$2, _fetchProductInfoQuer25, _fetchProductInfoQuer26, _fetchProductInfoQuer27, _fetchProductInfoQuer28, _fetchProductInfoQuer29, _fetchProductInfoQuer30, _fetchProductInfoQuer31, _fetchProductInfoQuer32, _fetchProductInfoQuer33, _fetchProductInfoQuer34, _fetchProductInfoQuer35, _fetchProductInfoQuer36, _fetchProductInfoQuer37, _fetchProductInfoQuer38, _fetchProductInfoQuer39, _fetchProductInfoQuer40, _fetchProductInfoQuer41, _fetchProductInfoQuer42, _fetchProductInfoQuer43, _fetchProductInfoQuer44, _fetchProductInfoQuer45;
1330
1330
  var lang = props.actions.lang;
1331
1331
  var langdetect = props.actions.langdetect;
1332
1332
  var srcfromprops = props.actions.srcfromprops;
@@ -1412,10 +1412,10 @@ var Product_itemtype = function Product_itemtype(props) {
1412
1412
  }, /*#__PURE__*/React__default["default"].createElement("div", {
1413
1413
  "class": "".concat(productinfo_cssstyles.cardcontainer) + ' row ml-0 mr-0 w-100 pl-md-3 pr-md-3 px-1025-1 ',
1414
1414
  style: {
1415
- minHeight: '70vh'
1415
+ minHeight: sectionproperties.height + 'vh'
1416
1416
  }
1417
1417
  }, /*#__PURE__*/React__default["default"].createElement("div", {
1418
- className: langdetect == 'en' ? 'col-lg-9 pl-0 mb-md-3 p-md-0' : 'col-lg-9 pr-0 mb-md-3 p-md-0'
1418
+ className: sectionproperties.showfooterphonenumber == 'Hide' && sectionproperties.showfooteremail == 'Hide' && sectionproperties.showstoreinfo2 == 'Hide' && sectionproperties.showstoreinfo1 == 'Hide' ? 'col-lg-12' : langdetect == 'en' ? 'col-lg-9 pl-0 mb-md-3 p-md-0' : 'col-lg-9 pr-0 mb-md-3 p-md-0'
1419
1419
  }, /*#__PURE__*/React__default["default"].createElement("div", {
1420
1420
  className: 'row m-0 w-100'
1421
1421
  }, /*#__PURE__*/React__default["default"].createElement("div", {
@@ -1426,7 +1426,18 @@ var Product_itemtype = function Product_itemtype(props) {
1426
1426
  width: '100%',
1427
1427
  height: 'auto'
1428
1428
  }
1429
- }, productimagesarray.length != 0 && /*#__PURE__*/React__default["default"].createElement(ImageGallery__default["default"], {
1429
+ }, productimagesarray.length == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
1430
+ style: {
1431
+ width: '100%',
1432
+ height: '30vh',
1433
+ background: '#eee',
1434
+ borderRadius: 10
1435
+ }
1436
+ }, /*#__PURE__*/React__default["default"].createElement("i", {
1437
+ "class": "h-100 allcentered text-light"
1438
+ }, /*#__PURE__*/React__default["default"].createElement(FiLayers.FiLayers, {
1439
+ size: 26
1440
+ }))), productimagesarray.length != 0 && /*#__PURE__*/React__default["default"].createElement(ImageGallery__default["default"], {
1430
1441
  items: productimagesarray,
1431
1442
  thumbnailPosition: sectionproperties.thumbnailposition == 'Bottom' ? 'bottom' : 'left',
1432
1443
  showNav: false,
@@ -1509,9 +1520,9 @@ var Product_itemtype = function Product_itemtype(props) {
1509
1520
  style: {
1510
1521
  textAlign: langdetect == 'en' ? 'left' : 'right'
1511
1522
  }
1512
- }, langdetect == 'en' ? 'Delivery Time' : 'مدة الشحن', ": ", fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer16 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer16 === void 0 ? void 0 : (_fetchProductInfoQuer17 = _fetchProductInfoQuer16.data) === null || _fetchProductInfoQuer17 === void 0 ? void 0 : (_fetchProductInfoQuer18 = _fetchProductInfoQuer17.productinfo) === null || _fetchProductInfoQuer18 === void 0 ? void 0 : _fetchProductInfoQuer18.deliverydatetext)), /*#__PURE__*/React__default["default"].createElement(ProductHeaderPricing, {
1523
+ }, langdetect == 'en' ? 'Delivery Time' : 'مدة الشحن', ": ", fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer16 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer16 === void 0 ? void 0 : (_fetchProductInfoQuer17 = _fetchProductInfoQuer16.data) === null || _fetchProductInfoQuer17 === void 0 ? void 0 : (_fetchProductInfoQuer18 = _fetchProductInfoQuer17.productinfo) === null || _fetchProductInfoQuer18 === void 0 ? void 0 : _fetchProductInfoQuer18.deliverydatetext)), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer19 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer19 === void 0 ? void 0 : (_fetchProductInfoQuer20 = _fetchProductInfoQuer19.data) === null || _fetchProductInfoQuer20 === void 0 ? void 0 : (_fetchProductInfoQuer21 = _fetchProductInfoQuer20.productinfo) === null || _fetchProductInfoQuer21 === void 0 ? void 0 : _fetchProductInfoQuer21.isproducttobesold) == 1 && /*#__PURE__*/React__default["default"].createElement(ProductHeaderPricing, {
1513
1524
  actions: props.actions
1514
- }), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer19 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer19 === void 0 ? void 0 : (_fetchProductInfoQuer20 = _fetchProductInfoQuer19.data) === null || _fetchProductInfoQuer20 === void 0 ? void 0 : (_fetchProductInfoQuer21 = _fetchProductInfoQuer20.productinfo) === null || _fetchProductInfoQuer21 === void 0 ? void 0 : _fetchProductInfoQuer21.hasvariants) == 1 && sectionproperties.productInformationType == 'Profile' && /*#__PURE__*/React__default["default"].createElement("div", {
1525
+ }), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer22 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer22 === void 0 ? void 0 : (_fetchProductInfoQuer23 = _fetchProductInfoQuer22.data) === null || _fetchProductInfoQuer23 === void 0 ? void 0 : (_fetchProductInfoQuer24 = _fetchProductInfoQuer23.productinfo) === null || _fetchProductInfoQuer24 === void 0 ? void 0 : _fetchProductInfoQuer24.hasvariants) == 1 && sectionproperties.productInformationType == 'Profile' && /*#__PURE__*/React__default["default"].createElement("div", {
1515
1526
  className: "row m-0 w-100 d-flex align-items-start"
1516
1527
  }, 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) {
1517
1528
  return /*#__PURE__*/React__default["default"].createElement("div", {
@@ -1584,7 +1595,7 @@ var Product_itemtype = function Product_itemtype(props) {
1584
1595
  }
1585
1596
  }, /*#__PURE__*/React__default["default"].createElement("div", {
1586
1597
  className: "row m-0 w-100 d-flex align-items-center"
1587
- }, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer22 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer22 === void 0 ? void 0 : (_fetchProductInfoQuer23 = _fetchProductInfoQuer22.data) === null || _fetchProductInfoQuer23 === void 0 ? void 0 : (_fetchProductInfoQuer24 = _fetchProductInfoQuer23.productinfo) === null || _fetchProductInfoQuer24 === void 0 ? void 0 : _fetchProductInfoQuer24.isproducttobesold) == 1 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer25 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer25 === void 0 ? void 0 : (_fetchProductInfoQuer26 = _fetchProductInfoQuer25.data) === null || _fetchProductInfoQuer26 === void 0 ? void 0 : (_fetchProductInfoQuer27 = _fetchProductInfoQuer26.productinfo) === null || _fetchProductInfoQuer27 === void 0 ? void 0 : _fetchProductInfoQuer27.isproducthasquantitychange) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
1598
+ }, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer25 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer25 === void 0 ? void 0 : (_fetchProductInfoQuer26 = _fetchProductInfoQuer25.data) === null || _fetchProductInfoQuer26 === void 0 ? void 0 : (_fetchProductInfoQuer27 = _fetchProductInfoQuer26.productinfo) === null || _fetchProductInfoQuer27 === void 0 ? void 0 : _fetchProductInfoQuer27.isproducttobesold) == 1 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer28 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer28 === void 0 ? void 0 : (_fetchProductInfoQuer29 = _fetchProductInfoQuer28.data) === null || _fetchProductInfoQuer29 === void 0 ? void 0 : (_fetchProductInfoQuer30 = _fetchProductInfoQuer29.productinfo) === null || _fetchProductInfoQuer30 === void 0 ? void 0 : _fetchProductInfoQuer30.isproducthasquantitychange) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
1588
1599
  className: "col-lg-12 p-0 mb-2 d-flex justofy-content-start"
1589
1600
  }, /*#__PURE__*/React__default["default"].createElement("p", {
1590
1601
  className: "m-0 p-0",
@@ -1594,7 +1605,7 @@ var Product_itemtype = function Product_itemtype(props) {
1594
1605
  textTransform: sectionproperties.generaltext_textTransform,
1595
1606
  fontWeight: sectionproperties.generaltext_fontWeight
1596
1607
  }
1597
- }, lang.quantity, ":")), sectionproperties.quantitybtn_show == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer28 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer28 === void 0 ? void 0 : (_fetchProductInfoQuer29 = _fetchProductInfoQuer28.data) === null || _fetchProductInfoQuer29 === void 0 ? void 0 : (_fetchProductInfoQuer30 = _fetchProductInfoQuer29.productinfo) === null || _fetchProductInfoQuer30 === void 0 ? void 0 : _fetchProductInfoQuer30.isproducttobesold) == 1 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer31 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer31 === void 0 ? void 0 : (_fetchProductInfoQuer32 = _fetchProductInfoQuer31.data) === null || _fetchProductInfoQuer32 === void 0 ? void 0 : (_fetchProductInfoQuer33 = _fetchProductInfoQuer32.productinfo) === null || _fetchProductInfoQuer33 === void 0 ? void 0 : _fetchProductInfoQuer33.isproducthasquantitychange) == 1 && /*#__PURE__*/React__default["default"].createElement("button", {
1608
+ }, lang.quantity, ":")), sectionproperties.quantitybtn_show == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer31 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer31 === void 0 ? void 0 : (_fetchProductInfoQuer32 = _fetchProductInfoQuer31.data) === null || _fetchProductInfoQuer32 === void 0 ? void 0 : (_fetchProductInfoQuer33 = _fetchProductInfoQuer32.productinfo) === null || _fetchProductInfoQuer33 === void 0 ? void 0 : _fetchProductInfoQuer33.isproducttobesold) == 1 && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer34 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer34 === void 0 ? void 0 : (_fetchProductInfoQuer35 = _fetchProductInfoQuer34.data) === null || _fetchProductInfoQuer35 === void 0 ? void 0 : (_fetchProductInfoQuer36 = _fetchProductInfoQuer35.productinfo) === null || _fetchProductInfoQuer36 === void 0 ? void 0 : _fetchProductInfoQuer36.isproducthasquantitychange) == 1 && /*#__PURE__*/React__default["default"].createElement("button", {
1598
1609
  className: " ".concat(productinfo_cssstyles.quantitybtn) + ' p-0 d-flex align-items-center justify-content-center mb-sm-2 ',
1599
1610
  style: {
1600
1611
  height: sectionproperties.quantitybtn_height + 'px',
@@ -1630,7 +1641,7 @@ var Product_itemtype = function Product_itemtype(props) {
1630
1641
  style: {
1631
1642
  fontSize: sectionproperties.remove_quantitybtn_textfontsize + 'px'
1632
1643
  }
1633
- }))), sectionproperties.cartBtnShow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer34 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer34 === void 0 ? void 0 : (_fetchProductInfoQuer35 = _fetchProductInfoQuer34.data) === null || _fetchProductInfoQuer35 === void 0 ? void 0 : (_fetchProductInfoQuer36 = _fetchProductInfoQuer35.productinfo) === null || _fetchProductInfoQuer36 === void 0 ? void 0 : _fetchProductInfoQuer36.isproducttobesold) == 1 && /*#__PURE__*/React__default["default"].createElement("button", {
1644
+ }))), sectionproperties.cartBtnShow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer37 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer37 === void 0 ? void 0 : (_fetchProductInfoQuer38 = _fetchProductInfoQuer37.data) === null || _fetchProductInfoQuer38 === void 0 ? void 0 : (_fetchProductInfoQuer39 = _fetchProductInfoQuer38.productinfo) === null || _fetchProductInfoQuer39 === void 0 ? void 0 : _fetchProductInfoQuer39.isproducttobesold) == 1 && /*#__PURE__*/React__default["default"].createElement("button", {
1634
1645
  className: "".concat(productinfo_cssstyles.cart_btn, " ") + ' ml-2 mr-2 d-flex align-items-center justify-content-center mb-sm-2 ',
1635
1646
  onClick: function onClick() {
1636
1647
  if (fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant >= addtocardpayloadobj.quantity && fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant <= addtocardpayloadobj.quantity) {
@@ -1696,7 +1707,7 @@ var Product_itemtype = function Product_itemtype(props) {
1696
1707
  size: sectionproperties.favBtnIconfontsize
1697
1708
  }), sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React__default["default"].createElement(FaRegHeart.FaRegHeart, {
1698
1709
  size: sectionproperties.favBtnIconfontsize
1699
- })))))), sectionproperties.productInformationType == 'Product/Service Information' && /*#__PURE__*/React__default["default"].createElement("div", {
1710
+ })))))), sectionproperties.productInformationType == 'Product/Service Information' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer40 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer40 === void 0 ? void 0 : (_fetchProductInfoQuer41 = _fetchProductInfoQuer40.data) === null || _fetchProductInfoQuer41 === void 0 ? void 0 : (_fetchProductInfoQuer42 = _fetchProductInfoQuer41.productinfo) === null || _fetchProductInfoQuer42 === void 0 ? void 0 : _fetchProductInfoQuer42.isproducttobesold) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
1700
1711
  className: "col-lg-12 p-0 mb-3"
1701
1712
  }, /*#__PURE__*/React__default["default"].createElement("div", {
1702
1713
  className: "row m-0 w-100 d-flex flex-row"
@@ -1733,7 +1744,7 @@ var Product_itemtype = function Product_itemtype(props) {
1733
1744
  style: {
1734
1745
  textDecoration: 'none'
1735
1746
  }
1736
- }, "-"), 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.show_availability == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
1747
+ }, "-"), 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.show_availability == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer43 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer43 === void 0 ? void 0 : (_fetchProductInfoQuer44 = _fetchProductInfoQuer43.data) === null || _fetchProductInfoQuer44 === void 0 ? void 0 : (_fetchProductInfoQuer45 = _fetchProductInfoQuer44.productinfo) === null || _fetchProductInfoQuer45 === void 0 ? void 0 : _fetchProductInfoQuer45.isproducttobesold) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
1737
1748
  className: "col-lg-12 p-0 mb-3 mt-2"
1738
1749
  }, /*#__PURE__*/React__default["default"].createElement("div", {
1739
1750
  style: {
@@ -1813,7 +1824,8 @@ var Product_itemtype = function Product_itemtype(props) {
1813
1824
  className: langdetect == 'en' ? 'col-lg-3 pr-0 border-md-none p-md-0 pt-4 pl-md-0 pr-md-0' : 'col-lg-3 pl-0 border-md-none md-0 pt-4 pl-md-0 pr-md-0',
1814
1825
  style: {
1815
1826
  borderLeft: langdetect == 'en' ? '1px solid #eee' : 0,
1816
- borderRight: langdetect == 'ar' ? '1px solid #eee' : 0
1827
+ borderRight: langdetect == 'ar' ? '1px solid #eee' : 0,
1828
+ display: sectionproperties.showfooterphonenumber == 'Hide' && sectionproperties.showfooteremail == 'Hide' && sectionproperties.showstoreinfo2 == 'Hide' && sectionproperties.showstoreinfo1 == 'Hide' ? 'none' : 'block'
1817
1829
  }
1818
1830
  }, /*#__PURE__*/React__default["default"].createElement("div", {
1819
1831
  "class": "row m-0 w-100",
@@ -4304,7 +4316,8 @@ var Productinfo = function Productinfo(props) {
4304
4316
  textTransform: sectionproperties.tabtexttexttransform,
4305
4317
  borderRadius: sectionproperties.tabcontainerborderradius + 'px',
4306
4318
  fontFamily: 'Poppins',
4307
- transition: '.3s'
4319
+ transition: '.3s',
4320
+ fontSize: sectionproperties.tabtextfontsize + 'px'
4308
4321
  },
4309
4322
  '& button:hover': {
4310
4323
  color: sectionproperties.tabscoloronhover,
@@ -11438,6 +11451,8 @@ var CardsSection = function CardsSection(props) {
11438
11451
  cardobj.quantity = itemquantity;
11439
11452
  cardobj.timestamp = arrayItem.productinfo.timestamp;
11440
11453
  cardobj.productquantity = arrayItem.productinfo.productquantity;
11454
+ cardobj.quantavailtype = arrayItem.productinfo.quantavailtype;
11455
+ cardobj.isproducttobesold = arrayItem.productinfo.isproducttobesold;
11441
11456
  if (langdetect == 'en') {
11442
11457
  cardobj.currencyname = fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 ? void 0 : fetchAuthorizationQueryContext.data.data.currencyname_en;
11443
11458
  } else {
@@ -11821,19 +11836,24 @@ var CardsSection = function CardsSection(props) {
11821
11836
  } else {
11822
11837
  routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
11823
11838
  }
11839
+ },
11840
+ style: {
11841
+ flexDirection: 'row'
11824
11842
  }
11825
- }, sectionproperties.viewmorebtntype == 'Text' && /*#__PURE__*/React__default["default"].createElement("span", {
11843
+ }, /*#__PURE__*/React__default["default"].createElement("span", {
11826
11844
  "class": sectionproperties.sectiontitleposition == 'Centered' ? 'd-flex justify-content-center align-items-center' : 'd-flex justify-content-center align-items-center d-md-none'
11827
11845
  }, /*#__PURE__*/React__default["default"].createElement("span", {
11828
11846
  "class": sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : ''
11829
- }, langdetect == 'en' ? sectionproperties.viewmorebtn_text : sectionproperties.viewmorebtn_text_ar)), sectionproperties.viewmorebtntype == 'Icon' && /*#__PURE__*/React__default["default"].createElement("span", {
11830
- "class": sectionproperties.sectiontitleposition == 'Centered' ? 'd-flex justify-content-center align-items-center' : 'd-flex justify-content-center align-items-center d-md-none'
11831
- }, /*#__PURE__*/React__default["default"].createElement("i", {
11832
- "class": "h-100 allcentered"
11847
+ }, langdetect == 'en' ? sectionproperties.viewmorebtn_text : sectionproperties.viewmorebtn_text_ar), sectionproperties.showIcon == 'Show' && /*#__PURE__*/React__default["default"].createElement("i", {
11848
+ "class": sectionproperties.sectiontitleposition == 'Centered' ? 'd-flex justify-content-center align-items-center h-100 allcentered' : 'd-flex justify-content-center align-items-center d-md-none h-100',
11849
+ style: {
11850
+ marginLeft: 5,
11851
+ marginRight: 5
11852
+ }
11833
11853
  }, langdetect == 'en' ? /*#__PURE__*/React__default["default"].createElement(HiOutlineArrowRight.HiOutlineArrowRight, {
11834
- size: sectionproperties.viewmorebtn_fontSize
11854
+ size: sectionproperties.viewmoreiconfontsize
11835
11855
  }) : /*#__PURE__*/React__default["default"].createElement(HiOutlineArrowLeft.HiOutlineArrowLeft, {
11836
- size: sectionproperties.viewmorebtn_fontSize
11856
+ size: sectionproperties.viewmoreiconfontsize
11837
11857
  }))), /*#__PURE__*/React__default["default"].createElement("span", {
11838
11858
  "class": sectionproperties.sectiontitleposition == 'Centered' ? 'd-none align-items-center justify-content-center' : 'd-none d-md-flex align-items-center justify-content-center'
11839
11859
  }, /*#__PURE__*/React__default["default"].createElement("i", {
@@ -20793,7 +20813,7 @@ styleInject(css_248z$s);
20793
20813
  function ownKeys$1y(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; }
20794
20814
  function _objectSpread$1y(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1y(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1y(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
20795
20815
  var HeaderwithContactinfo = function HeaderwithContactinfo(props) {
20796
- var _authdetailsContext$i, _authdetailsContext$i4, _authdetailsContext$i7, _authdetailsContext$i10, _authdetailsContext$i15, _authdetailsContext$i16, _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$c, _authdetailsContext$c2, _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4, _fetchcustomercartQue5, _fetchcustomercartQue6, _logoarrayofobjects$3, _logoarrayofobjects$4;
20816
+ var _authdetailsContext$i, _authdetailsContext$i4, _authdetailsContext$i7, _authdetailsContext$i8, _authdetailsContext$i13, _authdetailsContext$i14, _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$c, _authdetailsContext$c2, _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4, _fetchcustomercartQue5, _fetchcustomercartQue6, _logoarrayofobjects$3, _logoarrayofobjects$4;
20797
20817
  var _useState = React.useState(''),
20798
20818
  _useState2 = _slicedToArray__default["default"](_useState, 2),
20799
20819
  sectionproperties = _useState2[0],
@@ -21125,21 +21145,19 @@ var HeaderwithContactinfo = function HeaderwithContactinfo(props) {
21125
21145
  })), sectionproperties.showtelegrambtn == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i7 = authdetailsContext.instinfo) === null || _authdetailsContext$i7 === void 0 ? void 0 : _authdetailsContext$i7.telegramlink) && /*#__PURE__*/React__default["default"].createElement("div", {
21126
21146
  "class": header_cssstyles.fbbtn + ' pl-3 pr-3 pt-2 pb-2 allcentered cursor-pointer ',
21127
21147
  onClick: function onClick() {
21128
- var _authdetailsContext$i8;
21129
- if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i8 = authdetailsContext.instinfo) === null || _authdetailsContext$i8 === void 0 ? void 0 : _authdetailsContext$i8.telegramlink) != null) {
21130
- var _authdetailsContext$i9;
21131
- window.open(authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i9 = authdetailsContext.instinfo) === null || _authdetailsContext$i9 === void 0 ? void 0 : _authdetailsContext$i9.telegramlink, '_blank');
21132
- }
21148
+ // if (authdetailsContext?.instinfo?.telegramlink != null) {
21149
+ window.open('https://t.me/puplicbeorganization741', '_blank');
21150
+ // }
21133
21151
  }
21134
21152
  }, /*#__PURE__*/React__default["default"].createElement(FaTelegramPlane.FaTelegramPlane, {
21135
21153
  size: sectionproperties.facebkbtnniconfontsize
21136
- })), sectionproperties.instbtn_show == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i10 = authdetailsContext.instinfo) === null || _authdetailsContext$i10 === void 0 ? void 0 : _authdetailsContext$i10.instagramlink) != null && /*#__PURE__*/React__default["default"].createElement("div", {
21154
+ })), sectionproperties.instbtn_show == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i8 = authdetailsContext.instinfo) === null || _authdetailsContext$i8 === void 0 ? void 0 : _authdetailsContext$i8.instagramlink) != null && /*#__PURE__*/React__default["default"].createElement("div", {
21137
21155
  "class": header_cssstyles.instagrambtn + ' pl-3 pr-3 pt-2 pb-2 allcentered cursor-pointer ',
21138
21156
  onClick: function onClick() {
21139
- var _authdetailsContext$i11;
21140
- if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i11 = authdetailsContext.instinfo) === null || _authdetailsContext$i11 === void 0 ? void 0 : _authdetailsContext$i11.instagramlink) != null) {
21141
- var _authdetailsContext$i12;
21142
- window.open(authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i12 = authdetailsContext.instinfo) === null || _authdetailsContext$i12 === void 0 ? void 0 : _authdetailsContext$i12.instagramlink, '_blank');
21157
+ var _authdetailsContext$i9;
21158
+ if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i9 = authdetailsContext.instinfo) === null || _authdetailsContext$i9 === void 0 ? void 0 : _authdetailsContext$i9.instagramlink) != null) {
21159
+ var _authdetailsContext$i10;
21160
+ window.open(authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i10 = authdetailsContext.instinfo) === null || _authdetailsContext$i10 === void 0 ? void 0 : _authdetailsContext$i10.instagramlink, '_blank');
21143
21161
  }
21144
21162
  }
21145
21163
  }, /*#__PURE__*/React__default["default"].createElement(AiOutlineInstagram.AiOutlineInstagram, {
@@ -21168,15 +21186,15 @@ var HeaderwithContactinfo = function HeaderwithContactinfo(props) {
21168
21186
  borderRight: sectionproperties.vl_width + 'px solid ' + sectionproperties.vl_bg
21169
21187
  },
21170
21188
  onClick: function onClick() {
21171
- var _authdetailsContext$i13, _authdetailsContext$i14;
21172
- window.open('mailto:' + (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i13 = authdetailsContext.instinfo) === null || _authdetailsContext$i13 === void 0 ? void 0 : (_authdetailsContext$i14 = _authdetailsContext$i13.contactinfo) === null || _authdetailsContext$i14 === void 0 ? void 0 : _authdetailsContext$i14.email), '_self');
21189
+ var _authdetailsContext$i11, _authdetailsContext$i12;
21190
+ window.open('mailto:' + (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i11 = authdetailsContext.instinfo) === null || _authdetailsContext$i11 === void 0 ? void 0 : (_authdetailsContext$i12 = _authdetailsContext$i11.contactinfo) === null || _authdetailsContext$i12 === void 0 ? void 0 : _authdetailsContext$i12.email), '_self');
21173
21191
  }
21174
21192
  }, /*#__PURE__*/React__default["default"].createElement(AiOutlineMail.AiOutlineMail, {
21175
21193
  "class": header_cssstyles.upperheadertext + ' ml-1 mr-1 storeinfotext ',
21176
21194
  size: sectionproperties.footerinfotext_fontsize
21177
21195
  }), /*#__PURE__*/React__default["default"].createElement("span", {
21178
21196
  "class": header_cssstyles.upperheadertext + ' storeinfotext '
21179
- }, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i15 = authdetailsContext.instinfo) === null || _authdetailsContext$i15 === void 0 ? void 0 : (_authdetailsContext$i16 = _authdetailsContext$i15.contactinfo) === null || _authdetailsContext$i16 === void 0 ? void 0 : _authdetailsContext$i16.email)), sectionproperties.showopeninghours == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
21197
+ }, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i13 = authdetailsContext.instinfo) === null || _authdetailsContext$i13 === void 0 ? void 0 : (_authdetailsContext$i14 = _authdetailsContext$i13.contactinfo) === null || _authdetailsContext$i14 === void 0 ? void 0 : _authdetailsContext$i14.email)), sectionproperties.showopeninghours == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
21180
21198
  "class": "d-flex align-items-center justify-content-center pl-3 pr-3 h-100",
21181
21199
  style: {
21182
21200
  borderRight: sectionproperties.vl_width + 'px solid ' + sectionproperties.vl_bg
@@ -23921,7 +23939,7 @@ styleInject(css_248z$o);
23921
23939
  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; }
23922
23940
  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__default["default"](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; }
23923
23941
  var SearchFocusedHeader = function SearchFocusedHeader(props) {
23924
- var _css, _authdetailsContext$i3, _authdetailsContext$i4, _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$c, _authdetailsContext$i11, _authdetailsContext$i12, _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4, _fetchcustomercartQue5, _fetchcustomercartQue6, _authdetailsContext$i13, _authdetailsContext$i14;
23942
+ var _css, _authdetailsContext$i3, _authdetailsContext$i4, _authdetailsContext$i5, _authdetailsContext$i8, _authdetailsContext$i11, _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$c, _authdetailsContext$i14, _authdetailsContext$i15, _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4, _fetchcustomercartQue5, _fetchcustomercartQue6, _authdetailsContext$i16, _authdetailsContext$i17;
23925
23943
  var lang = props.actions.lang;
23926
23944
  var langdetect = props.actions.langdetect;
23927
23945
  var setlang = props.actions.setlang;
@@ -24388,35 +24406,35 @@ var SearchFocusedHeader = function SearchFocusedHeader(props) {
24388
24406
  "class": "col-lg-3 d-flex align-items-center p-0"
24389
24407
  }, /*#__PURE__*/React__default["default"].createElement("div", {
24390
24408
  "class": "row m-0 d-flex justify-content-end w-100"
24391
- }, sectionproperties.fbbtn_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
24409
+ }, sectionproperties.fbbtn_show == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i5 = authdetailsContext.instinfo) === null || _authdetailsContext$i5 === void 0 ? void 0 : _authdetailsContext$i5.facebooklink) != null && /*#__PURE__*/React__default["default"].createElement("div", {
24392
24410
  "class": header_cssstyles.fbbtn + ' p-0 allcentered cursor-pointer ',
24393
24411
  onClick: function onClick() {
24394
- var _authdetailsContext$i5;
24395
- if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i5 = authdetailsContext.instinfo) === null || _authdetailsContext$i5 === void 0 ? void 0 : _authdetailsContext$i5.facebooklink) != null) {
24396
- var _authdetailsContext$i6;
24397
- window.open(authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i6 = authdetailsContext.instinfo) === null || _authdetailsContext$i6 === void 0 ? void 0 : _authdetailsContext$i6.facebooklink, '_blank');
24412
+ var _authdetailsContext$i6;
24413
+ if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i6 = authdetailsContext.instinfo) === null || _authdetailsContext$i6 === void 0 ? void 0 : _authdetailsContext$i6.facebooklink) != null) {
24414
+ var _authdetailsContext$i7;
24415
+ window.open(authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i7 = authdetailsContext.instinfo) === null || _authdetailsContext$i7 === void 0 ? void 0 : _authdetailsContext$i7.facebooklink, '_blank');
24398
24416
  }
24399
24417
  }
24400
24418
  }, /*#__PURE__*/React__default["default"].createElement(FaFacebookF.FaFacebookF, {
24401
24419
  size: sectionproperties.facebkbtnniconfontsize
24402
- })), sectionproperties.youtbtn_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
24420
+ })), sectionproperties.youtbtn_show == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i8 = authdetailsContext.instinfo) === null || _authdetailsContext$i8 === void 0 ? void 0 : _authdetailsContext$i8.whatsappnumber) != null && /*#__PURE__*/React__default["default"].createElement("div", {
24403
24421
  "class": header_cssstyles.whatsappbtn + ' p-0 allcentered cursor-pointer ',
24404
24422
  onClick: function onClick() {
24405
- var _authdetailsContext$i7;
24406
- if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i7 = authdetailsContext.instinfo) === null || _authdetailsContext$i7 === void 0 ? void 0 : _authdetailsContext$i7.whatsappnumber) != null) {
24407
- var _authdetailsContext$i8;
24408
- window.open('https://api.whatsapp.com/send?phone=' + (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i8 = authdetailsContext.instinfo) === null || _authdetailsContext$i8 === void 0 ? void 0 : _authdetailsContext$i8.whatsappnumber), '_blank');
24423
+ var _authdetailsContext$i9;
24424
+ if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i9 = authdetailsContext.instinfo) === null || _authdetailsContext$i9 === void 0 ? void 0 : _authdetailsContext$i9.whatsappnumber) != null) {
24425
+ var _authdetailsContext$i10;
24426
+ window.open('https://api.whatsapp.com/send?phone=' + (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i10 = authdetailsContext.instinfo) === null || _authdetailsContext$i10 === void 0 ? void 0 : _authdetailsContext$i10.whatsappnumber), '_blank');
24409
24427
  }
24410
24428
  }
24411
24429
  }, /*#__PURE__*/React__default["default"].createElement(FaWhatsapp.FaWhatsapp, {
24412
24430
  size: sectionproperties.youtubebtniconfontsize
24413
- })), sectionproperties.instbtn_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
24431
+ })), sectionproperties.instbtn_show == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i11 = authdetailsContext.instinfo) === null || _authdetailsContext$i11 === void 0 ? void 0 : _authdetailsContext$i11.instagramlink) && /*#__PURE__*/React__default["default"].createElement("div", {
24414
24432
  "class": header_cssstyles.instagrambtn + ' p-0 allcentered cursor-pointer ',
24415
24433
  onClick: function onClick() {
24416
- var _authdetailsContext$i9;
24417
- if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i9 = authdetailsContext.instinfo) === null || _authdetailsContext$i9 === void 0 ? void 0 : _authdetailsContext$i9.instagramlink) != null) {
24418
- var _authdetailsContext$i10;
24419
- window.open(authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i10 = authdetailsContext.instinfo) === null || _authdetailsContext$i10 === void 0 ? void 0 : _authdetailsContext$i10.instagramlink, '_blank');
24434
+ var _authdetailsContext$i12;
24435
+ if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i12 = authdetailsContext.instinfo) === null || _authdetailsContext$i12 === void 0 ? void 0 : _authdetailsContext$i12.instagramlink) != null) {
24436
+ var _authdetailsContext$i13;
24437
+ window.open(authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i13 = authdetailsContext.instinfo) === null || _authdetailsContext$i13 === void 0 ? void 0 : _authdetailsContext$i13.instagramlink, '_blank');
24420
24438
  }
24421
24439
  }
24422
24440
  }, /*#__PURE__*/React__default["default"].createElement(AiOutlineInstagram.AiOutlineInstagram, {
@@ -24537,7 +24555,7 @@ var SearchFocusedHeader = function SearchFocusedHeader(props) {
24537
24555
  onClick: function onClick() {
24538
24556
  routingcountext(StaticPagesLinksContext.accountinfo);
24539
24557
  }
24540
- }, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i11 = authdetailsContext.instinfo) === null || _authdetailsContext$i11 === void 0 ? void 0 : (_authdetailsContext$i12 = _authdetailsContext$i11.customerinfo) === null || _authdetailsContext$i12 === void 0 ? void 0 : _authdetailsContext$i12.name))), /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Divider, null), /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Item, {
24558
+ }, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i14 = authdetailsContext.instinfo) === null || _authdetailsContext$i14 === void 0 ? void 0 : (_authdetailsContext$i15 = _authdetailsContext$i14.customerinfo) === null || _authdetailsContext$i15 === void 0 ? void 0 : _authdetailsContext$i15.name))), /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Divider, null), /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Item, {
24541
24559
  onClick: function onClick() {
24542
24560
  routingcountext(StaticPagesLinksContext.Ordershistory);
24543
24561
  }
@@ -24713,7 +24731,7 @@ var SearchFocusedHeader = function SearchFocusedHeader(props) {
24713
24731
  minWidth: '250px',
24714
24732
  marginLeft: '0px'
24715
24733
  }
24716
- }, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i13 = authdetailsContext.instinfo) === null || _authdetailsContext$i13 === void 0 ? void 0 : (_authdetailsContext$i14 = _authdetailsContext$i13.instcollections) === null || _authdetailsContext$i14 === void 0 ? void 0 : _authdetailsContext$i14.map(function (item, index) {
24734
+ }, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i16 = authdetailsContext.instinfo) === null || _authdetailsContext$i16 === void 0 ? void 0 : (_authdetailsContext$i17 = _authdetailsContext$i16.instcollections) === null || _authdetailsContext$i17 === void 0 ? void 0 : _authdetailsContext$i17.map(function (item, index) {
24717
24735
  return /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Item, {
24718
24736
  onClick: function onClick() {
24719
24737
  routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.collectionid);
@@ -34519,105 +34537,381 @@ var ElegantCategoriesCardSection = function ElegantCategoriesCardSection(props)
34519
34537
  function ownKeys$19(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; }
34520
34538
  function _objectSpread$19(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$19(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$19(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
34521
34539
  var RandomlyStructuredCollectionCards = function RandomlyStructuredCollectionCards(props) {
34522
- var _useInView = reactIntersectionObserver.useInView();
34523
- _useInView.ref;
34524
- var inView = _useInView.inView;
34540
+ var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
34525
34541
  props.actions.lang;
34526
34542
  var langdetect = props.actions.langdetect;
34527
- var fetchProductsQuery = props.actions.fetchProductsQuery;
34543
+ var fetchcustomercartQueryContext = props.actions.fetchcustomercartQueryContext;
34544
+ var favoriteprojectscountContext = props.actions.favoriteprojectscountContext;
34545
+ var routingcountext = props.actions.routingcountext;
34546
+ var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
34547
+ var ProductFilterObjContext = props.actions.ProductFilterObjContext;
34548
+ var setProductFilterObjContext = props.actions.setProductFilterObjContext;
34528
34549
  props.actions.TabexSectionsComponentsContext;
34529
- var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
34530
- var fetchcollectionsQueryContext = props.actions.fetchcollectionsQueryContext;
34531
34550
  var FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
34532
34551
  var setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
34533
- var routingcountext = props.actions.routingcountext;
34534
- var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
34552
+ var fetchProductsQuery = props.actions.fetchProductsQuery;
34553
+ var fetchcollectionsQueryContext = props.actions.fetchcollectionsQueryContext;
34554
+ var setParentCollectionsForCollectionQueryArr = props.actions.setParentCollectionsForCollectionQueryArr;
34555
+ props.actions.ParentCollectionsForCollectionQueryArr;
34535
34556
  var setfetchingtype = props.actions.setfetchingtype;
34536
34557
  var fetchingtype = props.actions.fetchingtype;
34558
+ props.actions.addtofavoritescontext;
34559
+ var fetchAuthorizationQueryContext = props.actions.fetchAuthorizationQueryContext;
34560
+ var FetchVendorsQuery = props.actions.FetchVendorsQuery;
34537
34561
  var ikimagecredcontext = props.actions.ikimagecredcontext;
34562
+ var _useState = React.useState(false),
34563
+ _useState2 = _slicedToArray__default["default"](_useState, 2);
34564
+ _useState2[0];
34565
+ _useState2[1];
34538
34566
  props.actions;
34539
- var setParentCollectionsForCollectionQueryArr = props.actions.setParentCollectionsForCollectionQueryArr;
34540
- props.actions.ParentCollectionsForCollectionQueryArr;
34541
- var _useState = React.useState(''),
34542
- _useState2 = _slicedToArray__default["default"](_useState, 2),
34543
- sectionproperties = _useState2[0],
34544
- setsectionproperties = _useState2[1];
34545
- var _useState3 = React.useState([]),
34567
+ var _useState3 = React.useState(''),
34546
34568
  _useState4 = _slicedToArray__default["default"](_useState3, 2),
34547
- cardsarray = _useState4[0],
34548
- setcardsarray = _useState4[1];
34549
- var _useState5 = React.useState({
34569
+ sectionproperties = _useState4[0],
34570
+ setsectionproperties = _useState4[1];
34571
+ var _useState5 = React.useState([]),
34572
+ _useState6 = _slicedToArray__default["default"](_useState5, 2),
34573
+ cardsarray = _useState6[0],
34574
+ setcardsarray = _useState6[1];
34575
+ var _useState7 = React.useState(''),
34576
+ _useState8 = _slicedToArray__default["default"](_useState7, 2),
34577
+ sectionitem = _useState8[0],
34578
+ setsectionitem = _useState8[1];
34579
+ var _useState9 = React.useState({
34550
34580
  productfetchingtype: 'Random',
34551
- collectionid: ''
34581
+ collectionid: '',
34582
+ grouptype: ''
34552
34583
  }),
34553
- _useState6 = _slicedToArray__default["default"](_useState5, 2),
34554
- ProductsFetchingTypeSectionObj = _useState6[0],
34555
- setProductsFetchingTypeSectionObj = _useState6[1];
34556
- React__default["default"].useEffect(function () {
34557
- if (inView) {
34558
- fetchProductsQuery.fetchNextPage();
34559
- }
34560
- }, [inView]);
34584
+ _useState10 = _slicedToArray__default["default"](_useState9, 2),
34585
+ ProductsFetchingTypeSectionObj = _useState10[0],
34586
+ setProductsFetchingTypeSectionObj = _useState10[1];
34587
+ var _useState11 = React.useState([]),
34588
+ _useState12 = _slicedToArray__default["default"](_useState11, 2);
34589
+ _useState12[0];
34590
+ var setmaincontainerarrayofobjs = _useState12[1];
34591
+ // React.useEffect(() => {
34592
+ // if (inView) {
34593
+ // fetchProductsQuery.fetchNextPage();
34594
+ // }
34595
+ // }, [inView]);
34561
34596
  React.useEffect(function () {
34597
+ var productfilerobjtemp = ProductFilterObjContext;
34598
+ if (props.filterparamsprops != undefined) {
34599
+ var filterpar = decodeURIComponent(props.filterparamsprops);
34600
+ var filterparsed = JSON.parse(filterpar);
34601
+ if (filterparsed != undefined) {
34602
+ productfilerobjtemp = filterparsed;
34603
+ setProductFilterObjContext(filterparsed);
34604
+ }
34605
+ }
34562
34606
  StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
34563
34607
  if (sectionitem.sectionid == props.sectionidprops) {
34564
34608
  var secpropobj = {};
34609
+ setsectionitem(sectionitem);
34565
34610
  sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
34566
34611
  secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
34567
34612
  });
34568
34613
  setsectionproperties(_objectSpread$19({}, secpropobj));
34569
- setfetchingtype(sectionitem.fetchingtype);
34570
- setProductsFetchingTypeSectionObj({
34571
- productfetchingtype: sectionitem.productsfetchingtype,
34572
- collectionid: sectionitem.productsfetchingtypeCollectioncollectionid
34573
- });
34614
+ if (props.srcfromprops == 'GeneralProductsComponent') {
34615
+ setfetchingtype('products');
34616
+ var lcproductfetchingtype = 'Random';
34617
+ if (productfilerobjtemp.ProductFetchingType != undefined && productfilerobjtemp.ProductFetchingType != null && productfilerobjtemp.ProductFetchingType.length != 0) {
34618
+ lcproductfetchingtype = productfilerobjtemp.ProductFetchingType;
34619
+ }
34620
+ setProductsFetchingTypeSectionObj({
34621
+ productfetchingtype: lcproductfetchingtype,
34622
+ collectionid: props.collectionidprops,
34623
+ grouptype: props.grouptypeprops,
34624
+ grouptyperefid: props.grouptyperefidprops
34625
+ });
34626
+ } else if (props.srcfromprops == 'InnerGroups' || props.srcfromprops == 'InnerCategory' || props.srcfromprops == 'InnerParentCollection') {
34627
+ setfetchingtype(props.grouptypeprops);
34628
+ } else {
34629
+ setfetchingtype(sectionitem.fetchingtype);
34630
+ setProductsFetchingTypeSectionObj({
34631
+ productfetchingtype: sectionitem.productsfetchingtype,
34632
+ collectionid: sectionitem.productsfetchingtypeCollectioncollectionid,
34633
+ grouptype: props.grouptypeprops,
34634
+ grouptyperefid: props.grouptyperefidprops
34635
+ });
34636
+ }
34574
34637
  }
34575
34638
  });
34576
34639
  }, [StatePagePropertiesContext]);
34577
34640
  React.useEffect(function () {
34578
34641
  if (sectionproperties.length != 0) {
34579
34642
  if (cardsarray.length == 0) {
34580
- if (fetchcollectionsQueryContext.isSuccess) {
34581
- cardobjassigner(fetchcollectionsQueryContext.data.data.collections);
34643
+ if (fetchingtype == 'collections') {
34644
+ if (fetchcollectionsQueryContext.isSuccess) {
34645
+ cardobjassigner(fetchcollectionsQueryContext.data.data.collections);
34646
+ }
34647
+ } else if (fetchingtype == 'products') {
34648
+ if (fetchProductsQuery.isSuccess) {
34649
+ var _fetchProductsQuery$d, _fetchProductsQuery$d2, _fetchProductsQuery$d3;
34650
+ var allpagesarr = [];
34651
+ // fetchProductsQuery.data.pages.forEach((page) => {
34652
+ // page.data.products.forEach((productobj) => {
34653
+ // allpagesarr.push(productobj);
34654
+ // });
34655
+ // });
34656
+ fetchProductsQuery === null || fetchProductsQuery === void 0 ? void 0 : (_fetchProductsQuery$d = fetchProductsQuery.data) === null || _fetchProductsQuery$d === void 0 ? void 0 : (_fetchProductsQuery$d2 = _fetchProductsQuery$d.data) === null || _fetchProductsQuery$d2 === void 0 ? void 0 : (_fetchProductsQuery$d3 = _fetchProductsQuery$d2.products) === null || _fetchProductsQuery$d3 === void 0 ? void 0 : _fetchProductsQuery$d3.forEach(function (item) {
34657
+ allpagesarr.push(item);
34658
+ });
34659
+ cardobjassigner(allpagesarr);
34660
+ }
34661
+ } else if (fetchingtype == 'vendors') {
34662
+ if (FetchVendorsQuery.isSuccess) {
34663
+ var _FetchVendorsQuery$da, _FetchVendorsQuery$da2;
34664
+ cardobjassigner(FetchVendorsQuery === null || FetchVendorsQuery === void 0 ? void 0 : (_FetchVendorsQuery$da = FetchVendorsQuery.data) === null || _FetchVendorsQuery$da === void 0 ? void 0 : (_FetchVendorsQuery$da2 = _FetchVendorsQuery$da.data) === null || _FetchVendorsQuery$da2 === void 0 ? void 0 : _FetchVendorsQuery$da2.vendors);
34665
+ }
34582
34666
  }
34583
34667
  }
34584
34668
  }
34585
34669
  }, [sectionproperties]);
34586
34670
  React.useEffect(function () {
34587
- if (fetchingtype.length != 0) {
34671
+ if ((fetchingtype === null || fetchingtype === void 0 ? void 0 : fetchingtype.length) != 0) {
34588
34672
  var tempFetchQueriesEngineContext = FetchQueriesEngineContext;
34589
- if (ProductsFetchingTypeSectionObj.collectionid == 'all' || ProductsFetchingTypeSectionObj.collectionid == null || ProductsFetchingTypeSectionObj.collectionid == undefined) {
34590
- setParentCollectionsForCollectionQueryArr('all');
34591
- } else {
34592
- setParentCollectionsForCollectionQueryArr([ProductsFetchingTypeSectionObj.collectionid]);
34673
+ if (fetchingtype == 'collections') {
34674
+ if (ProductsFetchingTypeSectionObj.collectionid == 'all' || ProductsFetchingTypeSectionObj.collectionid == null || ProductsFetchingTypeSectionObj.collectionid == undefined) {
34675
+ setParentCollectionsForCollectionQueryArr('all');
34676
+ } else {
34677
+ setParentCollectionsForCollectionQueryArr([ProductsFetchingTypeSectionObj.collectionid]);
34678
+ }
34679
+ }
34680
+ if (fetchingtype == 'products') {
34681
+ var tempfetchproductsfilerobjcontext = ProductFilterObjContext;
34682
+ tempfetchproductsfilerobjcontext.ProductFetchingType = ProductsFetchingTypeSectionObj.productfetchingtype;
34683
+ if (ProductsFetchingTypeSectionObj.grouptype == 'collections' || ProductsFetchingTypeSectionObj.grouptype == 'categories' || ProductsFetchingTypeSectionObj.grouptype == 'parentcollections') ; else {
34684
+ if (tempfetchproductsfilerobjcontext.collections != undefined) {
34685
+ tempfetchproductsfilerobjcontext.collections.push(ProductsFetchingTypeSectionObj.collectionid);
34686
+ }
34687
+ }
34688
+ tempfetchproductsfilerobjcontext.grouptype = ProductsFetchingTypeSectionObj.grouptype;
34689
+ tempfetchproductsfilerobjcontext.grouptyperefid = ProductsFetchingTypeSectionObj.grouptyperefid;
34690
+ setProductFilterObjContext(_objectSpread$19({}, tempfetchproductsfilerobjcontext));
34691
+ }
34692
+ if (fetchingtype == 'categories') {
34693
+ if (fetchAuthorizationQueryContext !== null && fetchAuthorizationQueryContext !== void 0 && fetchAuthorizationQueryContext.isSuccess) {
34694
+ var categories = fetchAuthorizationQueryContext.data.data.instinfo.instcategories;
34695
+ cardobjassigner(categories);
34696
+ }
34697
+ }
34698
+ if (fetchingtype == 'parentcollections' || fetchingtype == 'innercategories') {
34699
+ if (fetchAuthorizationQueryContext !== null && fetchAuthorizationQueryContext !== void 0 && fetchAuthorizationQueryContext.isSuccess) {
34700
+ var _categories;
34701
+ var categories = fetchAuthorizationQueryContext.data.data.instinfo.instcategories;
34702
+ var parentcollections = [];
34703
+ (_categories = categories) === null || _categories === void 0 ? void 0 : _categories.forEach(function (catitem, catindex) {
34704
+ catitem === null || catitem === void 0 ? void 0 : catitem.parentcolletions.forEach(function (parentcolitem) {
34705
+ parentcolitem.categoryid = catitem.categoryid;
34706
+ parentcollections.push(parentcolitem);
34707
+ });
34708
+ });
34709
+ if (fetchingtype == 'parentcollections') {
34710
+ if ((sectionitem === null || sectionitem === void 0 ? void 0 : sectionitem.productsfetchingtypeparentcollectioncategoryid) != null && (sectionitem === null || sectionitem === void 0 ? void 0 : sectionitem.productsfetchingtypeparentcollectioncategoryid) != undefined && (sectionitem === null || sectionitem === void 0 ? void 0 : sectionitem.productsfetchingtypeparentcollectioncategoryid) != 'all') {
34711
+ var arrafterfilter = [];
34712
+ parentcollections.forEach(function (parentcolitem, parcolindex) {
34713
+ if (parentcolitem.categoryid == (sectionitem === null || sectionitem === void 0 ? void 0 : sectionitem.productsfetchingtypeparentcollectioncategoryid)) {
34714
+ arrafterfilter.push(parentcolitem);
34715
+ }
34716
+ });
34717
+ parentcollections = arrafterfilter;
34718
+ }
34719
+ }
34720
+ if (fetchingtype == 'innercategories') {
34721
+ var arrafterfilter = [];
34722
+ parentcollections.forEach(function (parentcolitem, parcolindex) {
34723
+ if (parentcolitem.categoryid == props.collectionidprops) {
34724
+ arrafterfilter.push(parentcolitem);
34725
+ }
34726
+ });
34727
+ parentcollections = arrafterfilter;
34728
+ }
34729
+ cardobjassigner(parentcollections);
34730
+ }
34731
+ } else if (fetchingtype == 'innerparentcollections') {
34732
+ if (fetchAuthorizationQueryContext !== null && fetchAuthorizationQueryContext !== void 0 && fetchAuthorizationQueryContext.isSuccess) {
34733
+ var _categories2;
34734
+ var categories = fetchAuthorizationQueryContext.data.data.instinfo.instcategories;
34735
+ var collections = [];
34736
+ (_categories2 = categories) === null || _categories2 === void 0 ? void 0 : _categories2.forEach(function (catitem, catindex) {
34737
+ catitem === null || catitem === void 0 ? void 0 : catitem.parentcolletions.forEach(function (parentcolitem) {
34738
+ var _parentcolitem$collec;
34739
+ parentcolitem.categoryid = catitem.categoryid;
34740
+ parentcolitem === null || parentcolitem === void 0 ? void 0 : (_parentcolitem$collec = parentcolitem.collections) === null || _parentcolitem$collec === void 0 ? void 0 : _parentcolitem$collec.forEach(function (collitem, colindex) {
34741
+ collitem.parentcollectionid = parentcolitem.parentcollectionid;
34742
+ collections.push(collitem);
34743
+ });
34744
+ });
34745
+ });
34746
+ if (fetchingtype == 'innerparentcollections') {
34747
+ var collectionsafterfilter = [];
34748
+ collections.forEach(function (colitem, colindex) {
34749
+ if (colitem.parentcollectionid == props.collectionidprops) {
34750
+ var iscollexists = false;
34751
+ collectionsafterfilter.forEach(function (existcolitem) {
34752
+ if (colitem.collectionid == existcolitem.collectionid) {
34753
+ iscollexists = true;
34754
+ }
34755
+ });
34756
+ if (iscollexists == false) {
34757
+ collectionsafterfilter.push(colitem);
34758
+ }
34759
+ }
34760
+ });
34761
+ collections = collectionsafterfilter;
34762
+ }
34763
+ cardobjassigner(collections);
34764
+ }
34593
34765
  }
34594
34766
  setFetchQueriesEngineContext(_objectSpread$19({}, tempFetchQueriesEngineContext));
34595
34767
  }
34596
34768
  }, [fetchingtype, ProductsFetchingTypeSectionObj]);
34597
34769
  React.useEffect(function () {
34598
- if (fetchcollectionsQueryContext.isSuccess) {
34599
- cardobjassigner(fetchcollectionsQueryContext.data.data.collections);
34770
+ if (fetchingtype == 'products') {
34771
+ if (fetchProductsQuery.isSuccess && fetchcustomercartQueryContext.isSuccess) {
34772
+ var _fetchProductsQuery$d4, _fetchProductsQuery$d5, _fetchProductsQuery$d6;
34773
+ var allpagesarr = [];
34774
+ fetchProductsQuery === null || fetchProductsQuery === void 0 ? void 0 : (_fetchProductsQuery$d4 = fetchProductsQuery.data) === null || _fetchProductsQuery$d4 === void 0 ? void 0 : (_fetchProductsQuery$d5 = _fetchProductsQuery$d4.data) === null || _fetchProductsQuery$d5 === void 0 ? void 0 : (_fetchProductsQuery$d6 = _fetchProductsQuery$d5.products) === null || _fetchProductsQuery$d6 === void 0 ? void 0 : _fetchProductsQuery$d6.forEach(function (item) {
34775
+ allpagesarr.push(item);
34776
+ });
34777
+ cardobjassigner(allpagesarr);
34778
+ }
34600
34779
  }
34601
- }, [fetchcollectionsQueryContext.isSuccess]);
34780
+ }, [fetchProductsQuery === null || fetchProductsQuery === void 0 ? void 0 : fetchProductsQuery.isSuccess, fetchProductsQuery === null || fetchProductsQuery === void 0 ? void 0 : fetchProductsQuery.dataUpdatedAt, fetchProductsQuery === null || fetchProductsQuery === void 0 ? void 0 : fetchProductsQuery.data, fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : fetchcustomercartQueryContext.dataUpdatedAt]);
34781
+ React.useEffect(function () {
34782
+ if (fetchingtype == 'collections') {
34783
+ if (fetchcollectionsQueryContext.isSuccess) {
34784
+ cardobjassigner(fetchcollectionsQueryContext.data.data.collections);
34785
+ }
34786
+ }
34787
+ }, [fetchcollectionsQueryContext === null || fetchcollectionsQueryContext === void 0 ? void 0 : fetchcollectionsQueryContext.isSuccess]);
34788
+ React.useEffect(function () {
34789
+ if (fetchingtype == 'vendors') {
34790
+ if (FetchVendorsQuery.isSuccess) {
34791
+ if (FetchVendorsQuery.data.data.vendors != undefined && FetchVendorsQuery.data.data.vendors.length != 0) {
34792
+ var _FetchVendorsQuery$da3, _FetchVendorsQuery$da4;
34793
+ cardobjassigner(FetchVendorsQuery === null || FetchVendorsQuery === void 0 ? void 0 : (_FetchVendorsQuery$da3 = FetchVendorsQuery.data) === null || _FetchVendorsQuery$da3 === void 0 ? void 0 : (_FetchVendorsQuery$da4 = _FetchVendorsQuery$da3.data) === null || _FetchVendorsQuery$da4 === void 0 ? void 0 : _FetchVendorsQuery$da4.vendors);
34794
+ }
34795
+ }
34796
+ }
34797
+ }, [FetchVendorsQuery.isSuccess]);
34798
+ React.useEffect(function () {
34799
+ favassigner();
34800
+ }, [favoriteprojectscountContext]);
34801
+ React.useEffect(function () {
34802
+ if (sectionproperties.length != 0 && sectionproperties.maincontainerarrayofobjs != undefined) {
34803
+ var maincontainerarrayofobjsparsed = JSON.parse(sectionproperties.maincontainerarrayofobjs);
34804
+ if (Array.isArray(maincontainerarrayofobjsparsed)) {
34805
+ setmaincontainerarrayofobjs(_toConsumableArray__default["default"](maincontainerarrayofobjsparsed));
34806
+ }
34807
+ }
34808
+ }, [sectionproperties]);
34809
+ var favassigner = function favassigner() {
34810
+ if (fetchingtype == 'products') {
34811
+ if (cardsarray.length != 0) {
34812
+ if (favoriteprojectscountContext != undefined && Array.isArray(favoriteprojectscountContext)) {
34813
+ var tempcardsarray = _toConsumableArray__default["default"](cardsarray);
34814
+ tempcardsarray.forEach(function (arrayItem, arrayindex) {
34815
+ arrayItem.IsFavExists = false;
34816
+ });
34817
+ tempcardsarray.forEach(function (arrayItem, arrayindex) {
34818
+ favoriteprojectscountContext.forEach(function (favitem, favindex) {
34819
+ if (arrayItem.productid == favitem) {
34820
+ arrayItem.IsFavExists = true;
34821
+ }
34822
+ });
34823
+ });
34824
+ setcardsarray(_toConsumableArray__default["default"](tempcardsarray));
34825
+ }
34826
+ }
34827
+ }
34828
+ };
34602
34829
  var cardobjassigner = function cardobjassigner(fetchedarray) {
34603
34830
  var temparray = [];
34604
34831
  fetchedarray.forEach(function (arrayItem, arrayindex) {
34605
34832
  var cardobj = {
34606
34833
  name: '',
34607
- image: '',
34608
- index: arrayindex,
34609
- collectionid: ''
34834
+ image: ''
34610
34835
  };
34611
- cardobj.collectionid = arrayItem.collectionid;
34612
- if (langdetect == 'en') {
34613
- cardobj.name = arrayItem.title_en;
34614
- cardobj.description = arrayItem.description_en;
34615
- } else if (langdetect == 'ar') {
34616
- cardobj.name = arrayItem.title_ar;
34617
- cardobj.description = arrayItem.description_ar;
34836
+ if (fetchingtype == 'products') {
34837
+ var itemquantity = 0;
34838
+ if (langdetect == 'en') {
34839
+ cardobj.name = arrayItem.productinfo.name_en;
34840
+ } else {
34841
+ cardobj.name = arrayItem.productinfo.name_ar;
34842
+ }
34843
+ if (langdetect == 'en') {
34844
+ cardobj.description = arrayItem.productinfo.description_en;
34845
+ } else {
34846
+ cardobj.description = arrayItem.productinfo.description_ar;
34847
+ }
34848
+ if (arrayItem.productinfo.hasvariants == 0) {
34849
+ fetchcustomercartQueryContext.data.data.customercart.cartitems.forEach(function (cartitem, cartindex) {
34850
+ if (cartitem.productid == arrayItem.productinfo.productid) {
34851
+ itemquantity = cartitem.quantity;
34852
+ }
34853
+ });
34854
+ }
34855
+ cardobj.image = arrayItem.productinfo.productmainimage;
34856
+ cardobj.hassale = arrayItem.productinfo.hassale;
34857
+ cardobj.productid = arrayItem.productinfo.productid;
34858
+ cardobj.hasvariants = arrayItem.productinfo.hasvariants;
34859
+ cardobj.description_en = arrayItem.productinfo.description_en;
34860
+ cardobj.description_ar = arrayItem.productinfo.description_ar;
34861
+ cardobj.defaultprice = arrayItem.productinfo.defaultprice;
34862
+ cardobj.defaultsaleprice = arrayItem.productinfo.defaultsaleprice;
34863
+ cardobj.productimages = arrayItem.productinfo.productimages;
34864
+ cardobj.quantity = itemquantity;
34865
+ cardobj.timestamp = arrayItem.productinfo.timestamp;
34866
+ cardobj.productquantity = arrayItem.productinfo.productquantity;
34867
+ cardobj.quantavailtype = arrayItem.productinfo.quantavailtype;
34868
+ if (langdetect == 'en') {
34869
+ cardobj.currencyname = fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 ? void 0 : fetchAuthorizationQueryContext.data.data.currencyname_en;
34870
+ } else {
34871
+ cardobj.currencyname = fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 ? void 0 : fetchAuthorizationQueryContext.data.data.currencyname_ar;
34872
+ }
34873
+ if (favoriteprojectscountContext != undefined && favoriteprojectscountContext.length != 0) {
34874
+ favoriteprojectscountContext.forEach(function (favitem, favindex) {
34875
+ if (arrayItem.productinfo.productid == favitem) {
34876
+ cardobj.IsFavExists = true;
34877
+ }
34878
+ });
34879
+ }
34880
+ } else if (fetchingtype == 'collections' || fetchingtype == 'innerparentcollections') {
34881
+ cardobj.collectionid = arrayItem.collectionid;
34882
+ if (langdetect == 'en') {
34883
+ cardobj.name = arrayItem.title_en;
34884
+ cardobj.description = arrayItem.description_en;
34885
+ } else if (langdetect == 'ar') {
34886
+ cardobj.name = arrayItem.title_ar;
34887
+ cardobj.description = arrayItem.description_ar;
34888
+ }
34889
+ cardobj.image = arrayItem.collectionlogo;
34890
+ } else if (fetchingtype == 'categories') {
34891
+ cardobj.collectionid = arrayItem.categoryid;
34892
+ if (langdetect == 'en') {
34893
+ cardobj.name = arrayItem.title_en;
34894
+ cardobj.description = arrayItem.description_en;
34895
+ } else if (langdetect == 'ar') {
34896
+ cardobj.name = arrayItem.title_ar;
34897
+ cardobj.description = arrayItem.description_ar;
34898
+ }
34899
+ cardobj.image = arrayItem.categorylogo;
34900
+ } else if (fetchingtype == 'parentcollections' || fetchingtype == 'innercategories') {
34901
+ cardobj.collectionid = arrayItem.parentcollectionid;
34902
+ if (langdetect == 'en') {
34903
+ cardobj.name = arrayItem.title_en;
34904
+ cardobj.description = arrayItem.description_en;
34905
+ } else if (langdetect == 'ar') {
34906
+ cardobj.name = arrayItem.title_ar;
34907
+ cardobj.description = arrayItem.description_ar;
34908
+ }
34909
+ cardobj.image = arrayItem.parentcollectionlogo;
34910
+ } else if (fetchingtype == 'custom') ; else if (fetchingtype == 'vendors') {
34911
+ cardobj.name = arrayItem.vendorname;
34912
+ cardobj.collectionid = arrayItem.vendorid;
34913
+ cardobj.image = arrayItem.vendorlogourl;
34618
34914
  }
34619
- cardobj.image = arrayItem.collectionlogo;
34620
- cardobj.collectionid = arrayItem.collectionid;
34621
34915
  temparray.push(cardobj);
34622
34916
  });
34623
34917
  setcardsarray([].concat(temparray));
@@ -37294,22 +37588,24 @@ var BackgroundimageandTextsection = function BackgroundimageandTextsection(props
37294
37588
  };
37295
37589
  var Text1 = function Text1() {
37296
37590
  return /*#__PURE__*/React__default["default"].createElement("p", {
37297
- "class": "p-0 wordbreak text-md-center",
37591
+ "class": "p-0 wordbreak text-md-center w-100",
37298
37592
  style: {
37299
37593
  fontWeight: sectionproperties.slideshowText1ContentFontWeight,
37300
37594
  color: sectionproperties.slideshowText1ContentColor,
37301
37595
  marginBottom: sectionproperties.slideshowText1Content_marginBottom + 'px',
37302
- marginTop: sectionproperties.slideshowText1Content_marginTop + 'px'
37596
+ marginTop: sectionproperties.slideshowText1Content_marginTop + 'px',
37597
+ textAlign: sectionproperties.text1centered == 'Centered' ? 'center' : 'start'
37303
37598
  }
37304
37599
  }, langdetect == 'en' ? sectionproperties.slideshowText1Content : sectionproperties.slideshowText1Content_ar);
37305
37600
  };
37306
37601
  var Text2 = function Text2() {
37307
37602
  return /*#__PURE__*/React__default["default"].createElement("p", {
37308
- "class": "p-0 wordbreak text-md-center",
37603
+ "class": "p-0 wordbreak text-md-center w-100",
37309
37604
  style: {
37310
37605
  fontWeight: sectionproperties.slideshowText2ContentFontWeight,
37311
37606
  color: sectionproperties.slideshowText2ContentColor,
37312
- marginBottom: sectionproperties.slideshowText2Content_marginBottom + 'px'
37607
+ marginBottom: sectionproperties.slideshowText2Content_marginBottom + 'px',
37608
+ textAlign: sectionproperties.text2centered == 'Centered' ? 'center' : 'start'
37313
37609
  }
37314
37610
  }, langdetect == 'en' ? sectionproperties.slideshowText2Content : sectionproperties.slideshowText2Content_Ar);
37315
37611
  };
@@ -40442,19 +40738,19 @@ var Image_with_leftwords = function Image_with_leftwords(props) {
40442
40738
  return /*#__PURE__*/React__default["default"].createElement("div", {
40443
40739
  "class": sectionproperties.image_height == 0 ? 'col-lg-6 col-md-12 d-flex justify-content-start justify-content-md-center h-auto p-0' : 'col-lg-6 col-md-12 d-flex justify-content-start justify-content-md-center p-0',
40444
40740
  style: {
40445
- cursor: ((_imagesarray$ = imagesarray[0]) === null || _imagesarray$ === void 0 ? void 0 : _imagesarray$.IsClickable) == 'Yes' ? 'pointer' : 'default',
40741
+ cursor: ((_imagesarray$ = imagesarray[0]) === null || _imagesarray$ === void 0 ? void 0 : _imagesarray$.IsClickableimg) == 'Yes' ? 'pointer' : 'default',
40446
40742
  background: sectionproperties.image_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.image_bgcolor
40447
40743
  },
40448
40744
  onClick: function onClick() {
40449
40745
  var _imagesarray$2;
40450
- if (((_imagesarray$2 = imagesarray[0]) === null || _imagesarray$2 === void 0 ? void 0 : _imagesarray$2.IsClickable) == 'Yes') {
40746
+ if (((_imagesarray$2 = imagesarray[0]) === null || _imagesarray$2 === void 0 ? void 0 : _imagesarray$2.IsClickableimg) == 'Yes') {
40451
40747
  var _imagesarray$3, _imagesarray$4;
40452
- if ((_imagesarray$3 = imagesarray[0]) !== null && _imagesarray$3 !== void 0 && _imagesarray$3.clickable_page_route && ((_imagesarray$4 = imagesarray[0]) === null || _imagesarray$4 === void 0 ? void 0 : _imagesarray$4.clickable_page_route.length) != 0) {
40748
+ if ((_imagesarray$3 = imagesarray[0]) !== null && _imagesarray$3 !== void 0 && _imagesarray$3.clickableimg_page_route && ((_imagesarray$4 = imagesarray[0]) === null || _imagesarray$4 === void 0 ? void 0 : _imagesarray$4.clickableimg_page_route.length) != 0) {
40453
40749
  var _imagesarray$5;
40454
- routingcountext((_imagesarray$5 = imagesarray[0]) === null || _imagesarray$5 === void 0 ? void 0 : _imagesarray$5.clickable_page_route, false, '');
40750
+ routingcountext((_imagesarray$5 = imagesarray[0]) === null || _imagesarray$5 === void 0 ? void 0 : _imagesarray$5.clickableimg_page_route, false, '');
40455
40751
  } else {
40456
40752
  var _imagesarray$6;
40457
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + ((_imagesarray$6 = imagesarray[0]) === null || _imagesarray$6 === void 0 ? void 0 : _imagesarray$6.Clickable_Reference_Collection_ID));
40753
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + ((_imagesarray$6 = imagesarray[0]) === null || _imagesarray$6 === void 0 ? void 0 : _imagesarray$6.Clickableimg_getcoection));
40458
40754
  }
40459
40755
  }
40460
40756
  }
@@ -42436,8 +42732,7 @@ var Slideshowslide = function Slideshowslide(props) {
42436
42732
  height: sectionproperties.bgcovercontain == 'Cover' ? sectionproperties.height + 'vh' : 'auto'
42437
42733
  }
42438
42734
  }, /*#__PURE__*/React__default["default"].createElement("div", {
42439
- // d-sm-none
42440
- "class": 'p-0 align-items-center d-flex ',
42735
+ "class": 'p-0 align-items-center d-flex d-sm-none',
42441
42736
  key: index,
42442
42737
  onClick: function onClick() {
42443
42738
  if (item.IsClickableimg == 'Yes') {
@@ -42466,6 +42761,28 @@ var Slideshowslide = function Slideshowslide(props) {
42466
42761
  width: '100%',
42467
42762
  height: '100%'
42468
42763
  }
42764
+ }), SlideShowTextContainer(item)), /*#__PURE__*/React__default["default"].createElement("div", {
42765
+ "class": 'p-0 align-items-center d-none d-sm-flex ',
42766
+ key: index,
42767
+ style: {
42768
+ width: '100%',
42769
+ height: '100%',
42770
+ direction: langdetect == 'en' ? 'ltr' : 'rtl',
42771
+ paddingTop: sectionproperties.paddingTop + 'px',
42772
+ paddingLeft: langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : '',
42773
+ paddingRight: langdetect == 'en' ? '' : sectionproperties.paddingLeft + 'px'
42774
+ }
42775
+ }, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
42776
+ urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
42777
+ publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
42778
+ path: langdetect == 'en' ? '/tr:w-' + sectionproperties.imagetr_w_resp + ',h-' + sectionproperties.imagetr_h_resp + '/' + item.image_resp_en : '/tr:w-' + sectionproperties.imagetr_w_resp + ',h-' + sectionproperties.imagetr_h_resp + '/' + item.image_resp_ar,
42779
+ style: {
42780
+ objectFit: 'contain',
42781
+ margin: 0,
42782
+ padding: 0,
42783
+ width: '100%',
42784
+ height: '100%'
42785
+ }
42469
42786
  }), SlideShowTextContainer(item)));
42470
42787
  }))))));
42471
42788
  };
@@ -42483,14 +42800,21 @@ var Slideshowslide = function Slideshowslide(props) {
42483
42800
  }, /*#__PURE__*/React__default["default"].createElement("div", {
42484
42801
  "class": "col-lg-12 p-0"
42485
42802
  }, /*#__PURE__*/React__default["default"].createElement("div", {
42486
- // d-md-none
42487
- "class": "row m-0 w-100 d-flex",
42803
+ "class": "row m-0 w-100 d-flex d-md-none",
42488
42804
  style: {
42489
42805
  paddingTop: sectionproperties.marginTop + 'px'
42490
42806
  },
42491
42807
  onMouseLeave: function onMouseLeave() {
42492
42808
  setChoosenindex('');
42493
42809
  }
42810
+ }, SlideshowContent()), /*#__PURE__*/React__default["default"].createElement("div", {
42811
+ "class": "row m-0 w-100 d-none d-md-flex",
42812
+ style: {
42813
+ paddingTop: sectionproperties.marginTopResp + 'px'
42814
+ },
42815
+ onMouseLeave: function onMouseLeave() {
42816
+ setChoosenindex('');
42817
+ }
42494
42818
  }, SlideshowContent())));
42495
42819
  };
42496
42820
 
@@ -47645,7 +47969,6 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
47645
47969
  borderRadius: sectionproperties.fav_btn_borderBottomLeftRadius + 'px',
47646
47970
  color: sectionproperties.favBtniconcolor,
47647
47971
  fontSize: sectionproperties.favBtnTextfontsize + 'px',
47648
- textTransform: sectionproperties.favBtnTexttransform,
47649
47972
  fontWeight: sectionproperties.favBtnTextfontweight,
47650
47973
  transition: '.3s',
47651
47974
  border: sectionproperties.favbtnborderwidth + 'px solid ' + sectionproperties.favbtnbordercolor,
@@ -47677,7 +48000,8 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
47677
48000
  borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px',
47678
48001
  borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
47679
48002
  borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
47680
- background: sectionproperties.image_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.image_bgcolor
48003
+ background: sectionproperties.image_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.image_bgcolor,
48004
+ opacity: item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' ? 0.4 : 1
47681
48005
  }),
47682
48006
  quantitybtn: glamor.css({
47683
48007
  flex: 1,
@@ -47732,6 +48056,21 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
47732
48056
  color: sectionproperties.remove_quantitybtn_textcoloronhover,
47733
48057
  background: sectionproperties.remove_quantitybtn_bgcoloronhover
47734
48058
  }
48059
+ }),
48060
+ outstockbadge: glamor.css({
48061
+ width: sectionproperties.outstock_width + 'px',
48062
+ height: sectionproperties.outstock_height + 'px',
48063
+ background: sectionproperties.outstock_bg,
48064
+ color: sectionproperties.outstock_color,
48065
+ fontSize: sectionproperties.outstock_fontSize + 'px',
48066
+ borderRadius: sectionproperties.outstock_borderradius + 'px',
48067
+ position: 'absolute',
48068
+ zIndex: 2,
48069
+ top: 0,
48070
+ bottom: 0,
48071
+ left: 0,
48072
+ right: 0,
48073
+ margin: 'auto'
47735
48074
  })
47736
48075
  };
47737
48076
  var addtocartbuttonrender = function addtocartbuttonrender() {
@@ -47791,7 +48130,7 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
47791
48130
  size: sectionproperties.cartBtn_iconFontSize
47792
48131
  }), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React__default["default"].createElement(MdAddShoppingCart.MdAddShoppingCart, {
47793
48132
  size: sectionproperties.cartBtn_iconFontSize
47794
- })), lang.addtocart);
48133
+ })), langdetect == 'en' ? sectionproperties.cartBtnContentenglish : sectionproperties.cartBtnContentarabic);
47795
48134
  }
47796
48135
  };
47797
48136
  return /*#__PURE__*/React__default["default"].createElement("div", {
@@ -47807,7 +48146,10 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
47807
48146
  }, /*#__PURE__*/React__default["default"].createElement("div", {
47808
48147
  "class": "".concat(cardsstyles$4.card_inner)
47809
48148
  }, /*#__PURE__*/React__default["default"].createElement("div", {
47810
- "class": "".concat(cardsstyles$4.card_thumbnail)
48149
+ "class": "".concat(cardsstyles$4.card_thumbnail),
48150
+ style: {
48151
+ position: 'relative'
48152
+ }
47811
48153
  }, /*#__PURE__*/React__default["default"].createElement("div", {
47812
48154
  "class": "".concat(cardsstyles$4.img_container, " ").concat(cardsstyles2.img_container) + ' w-100 allcentered ',
47813
48155
  onClick: function onClick() {
@@ -47881,7 +48223,11 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
47881
48223
  color: sectionproperties.badge_color,
47882
48224
  fontSize: sectionproperties.badge_fontsize + 'px'
47883
48225
  }
47884
- }, langdetect == 'en' ? sectionproperties.badgeContentEn : sectionproperties.badgeContentAr))), /*#__PURE__*/React__default["default"].createElement("div", {
48226
+ }, langdetect == 'en' ? sectionproperties.badgeContentEn : sectionproperties.badgeContentAr)), item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && /*#__PURE__*/React__default["default"].createElement("div", {
48227
+ "class": "".concat(cardsstyles2.outstockbadge) + ' allcentered '
48228
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
48229
+ "class": "m-0 p-0"
48230
+ }, langdetect == 'en' ? sectionproperties.outstock_contenten : sectionproperties.outstock_contentar))), /*#__PURE__*/React__default["default"].createElement("div", {
47885
48231
  "class": "".concat(cardsstyles$4.product_details) + ' mb-2 '
47886
48232
  }, sectionproperties.prodNameShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
47887
48233
  "class": "col-lg-12"
@@ -47917,7 +48263,9 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
47917
48263
  transform: ' rotate(-180deg)'
47918
48264
  },
47919
48265
  onClick: function onClick() {
47920
- if (item.hasvariants == 0) {
48266
+ if (item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit') {
48267
+ NotificationManager.warning('', langdetect == 'en' ? 'Sold Out' : 'نفذت الكمية');
48268
+ } else if (item.hasvariants == 0) {
47921
48269
  updatequantity('remove');
47922
48270
  } else {
47923
48271
  setShowProductInfoModalContext(true);
@@ -47929,7 +48277,9 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
47929
48277
  })), langdetect == 'ar' && /*#__PURE__*/React__default["default"].createElement("span", {
47930
48278
  "class": "".concat(cardsstyles2.add_quantitybtn_icon_container) + ' m-1 ',
47931
48279
  onClick: function onClick() {
47932
- if (item.hasvariants == 0) {
48280
+ if (item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit') {
48281
+ NotificationManager.warning('', langdetect == 'en' ? 'Sold Out' : 'نفذت الكمية');
48282
+ } else if (item.hasvariants == 0) {
47933
48283
  updatequantity('add');
47934
48284
  } else {
47935
48285
  setShowProductInfoModalContext(true);
@@ -47946,7 +48296,9 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
47946
48296
  transform: ' rotate(-180deg)'
47947
48297
  },
47948
48298
  onClick: function onClick() {
47949
- if (item.hasvariants == 0) {
48299
+ if (item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit') {
48300
+ NotificationManager.warning('', langdetect == 'en' ? 'Sold Out' : 'نفذت الكمية');
48301
+ } else if (item.hasvariants == 0) {
47950
48302
  updatequantity('remove');
47951
48303
  } else {
47952
48304
  setShowProductInfoModalContext(true);
@@ -47958,7 +48310,9 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
47958
48310
  })), langdetect == 'en' && /*#__PURE__*/React__default["default"].createElement("span", {
47959
48311
  "class": "".concat(cardsstyles2.add_quantitybtn_icon_container) + ' m-1 ',
47960
48312
  onClick: function onClick() {
47961
- if (item.hasvariants == 0) {
48313
+ if (item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit') {
48314
+ NotificationManager.warning('', langdetect == 'en' ? 'Sold Out' : 'نفذت الكمية');
48315
+ } else if (item.hasvariants == 0) {
47962
48316
  updatequantity('add');
47963
48317
  } else {
47964
48318
  setShowProductInfoModalContext(true);
@@ -49703,11 +50057,11 @@ var Horizontalcard = function Horizontalcard(props) {
49703
50057
  setShowProductInfoModalContext(true);
49704
50058
  setProductIdProdutInfoModalContext(item.productid);
49705
50059
  }
49706
- }, langdetect == 'en' ? sectionproperties.cartBtnContentenglish : sectionproperties.cartBtnContentarabic)), /*#__PURE__*/React__default["default"].createElement("div", {
50060
+ }, langdetect == 'en' ? sectionproperties.cartBtnContentenglish : sectionproperties.cartBtnContentarabic)), item.isproducttobesold == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
49707
50061
  "class": "col-lg-12 p-0 d-flex align-items-center"
49708
50062
  }, sectionproperties.prodPriceShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("p", {
49709
50063
  "class": card_cssstyles.productPricestyles + ' m-0 p-0 '
49710
- }, langdetect == 'en' ? item.currencyname : '', " ", item.hassale == 1 ? item.defaultsaleprice : item.defaultprice, " ", langdetect == 'en' ? '' : item.currencyname), item.hassale == 1 && sectionproperties.prodsalePriceshow == 'Show' && /*#__PURE__*/React__default["default"].createElement("p", {
50064
+ }, langdetect == 'en' ? item.currencyname : '', " ", item.hassale == 1 ? item.defaultsaleprice : item.defaultprice, ' ', langdetect == 'en' ? '' : item.currencyname), item.hassale == 1 && sectionproperties.prodsalePriceshow == 'Show' && /*#__PURE__*/React__default["default"].createElement("p", {
49711
50065
  "class": card_cssstyles.productSalePricestyles + ' m-0 p-0 ml-2 mr-2 ',
49712
50066
  style: {
49713
50067
  textDecoration: 'line-through'
@@ -52132,8 +52486,8 @@ var Productcard_with_slideanimation = function Productcard_with_slideanimation(p
52132
52486
  path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_w + '/' + item.image,
52133
52487
  loading: "lazy",
52134
52488
  style: {
52135
- width: '100%',
52136
- height: '100%',
52489
+ width: sectionproperties.imageInnerWidth_Height + '%',
52490
+ height: sectionproperties.imageInnerWidth_Height + '%',
52137
52491
  objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain',
52138
52492
  background: sectionproperties.image_bgcolortransparent == 'Transparent' ? '' : sectionproperties.image_bgcolor,
52139
52493
  border: sectionproperties.image_borderwidth + 'px solid ' + sectionproperties.image_bordercolor,
@@ -53954,7 +54308,7 @@ var Simpleproductcard = function Simpleproductcard(props) {
53954
54308
  borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
53955
54309
  borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
53956
54310
  transition: '.3s',
53957
- opacity: item.productquantity < 1 ? 0.4 : 1
54311
+ opacity: item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' ? 0.4 : 1
53958
54312
  }),
53959
54313
  productNameStyles: glamor.css({
53960
54314
  color: sectionproperties.prodNameColor,
@@ -54146,7 +54500,7 @@ var Simpleproductcard = function Simpleproductcard(props) {
54146
54500
  height: sectionproperties.imageInnerWidth_Height + '%',
54147
54501
  objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain'
54148
54502
  }
54149
- })), item.productquantity < 1 && /*#__PURE__*/React__default["default"].createElement("div", {
54503
+ })), item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && /*#__PURE__*/React__default["default"].createElement("div", {
54150
54504
  "class": "".concat(card_cssstyles.outstockbadge) + ' allcentered '
54151
54505
  }, /*#__PURE__*/React__default["default"].createElement("p", {
54152
54506
  "class": "m-0 p-0"
@@ -54179,7 +54533,7 @@ var Simpleproductcard = function Simpleproductcard(props) {
54179
54533
  }, langdetect == 'en' ? 'EGP' : '', " ", item.defaultprice, " ", langdetect == 'en' ? '' : 'ج.م'))))), sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("p", {
54180
54534
  "class": "".concat(card_cssstyles.cart_btn) + ' m-0 p-0 d-flex align-items-center justify-content-center mt-1 ',
54181
54535
  onClick: function onClick() {
54182
- if (item.productquantity > 0) {
54536
+ if (item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit') {
54183
54537
  setShowProductInfoModalContext(true);
54184
54538
  setProductIdProdutInfoModalContext(item.productid);
54185
54539
  } else {