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 +490 -136
- package/dist/index.esm.js +490 -136
- package/dist/index.umd.js +493 -139
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -32,6 +32,7 @@ import { AiOutlineStar } from '@react-icons/all-files/ai/AiOutlineStar';
|
|
|
32
32
|
import { FacebookShareButton, FacebookIcon, TwitterShareButton, TwitterIcon, WhatsappShareButton, WhatsappIcon } from 'react-share';
|
|
33
33
|
import { IKImage } from 'imagekitio-react';
|
|
34
34
|
import ReactStars from 'react-rating-stars-component';
|
|
35
|
+
import { FiLayers } from '@react-icons/all-files/fi/FiLayers';
|
|
35
36
|
import { Box, Tabs, Tab } from '@mui/material';
|
|
36
37
|
import { AiOutlineClockCircle } from '@react-icons/all-files/ai/AiOutlineClockCircle';
|
|
37
38
|
import { AiOutlinePlus } from '@react-icons/all-files/ai/AiOutlinePlus';
|
|
@@ -50,7 +51,6 @@ import { HiOutlineChevronRight } from '@react-icons/all-files/hi/HiOutlineChevro
|
|
|
50
51
|
import { HiOutlineChevronLeft } from '@react-icons/all-files/hi/HiOutlineChevronLeft';
|
|
51
52
|
import { GoGlobe } from '@react-icons/all-files/go/GoGlobe';
|
|
52
53
|
import { VscGlobe } from '@react-icons/all-files/vsc/VscGlobe';
|
|
53
|
-
import { FiLayers } from '@react-icons/all-files/fi/FiLayers';
|
|
54
54
|
import { HiOutlineTrash } from '@react-icons/all-files/hi/HiOutlineTrash';
|
|
55
55
|
import { BiSad } from '@react-icons/all-files/bi/BiSad';
|
|
56
56
|
import { FiCalendar } from '@react-icons/all-files/fi/FiCalendar';
|
|
@@ -1279,7 +1279,7 @@ var ProductHeaderPricing = function ProductHeaderPricing(props) {
|
|
|
1279
1279
|
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; }
|
|
1280
1280
|
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(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; }
|
|
1281
1281
|
var Product_itemtype = function Product_itemtype(props) {
|
|
1282
|
-
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,
|
|
1282
|
+
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;
|
|
1283
1283
|
var lang = props.actions.lang;
|
|
1284
1284
|
var langdetect = props.actions.langdetect;
|
|
1285
1285
|
var srcfromprops = props.actions.srcfromprops;
|
|
@@ -1365,10 +1365,10 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
1365
1365
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1366
1366
|
"class": "".concat(productinfo_cssstyles.cardcontainer) + ' row ml-0 mr-0 w-100 pl-md-3 pr-md-3 px-1025-1 ',
|
|
1367
1367
|
style: {
|
|
1368
|
-
minHeight: '
|
|
1368
|
+
minHeight: sectionproperties.height + 'vh'
|
|
1369
1369
|
}
|
|
1370
1370
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1371
|
-
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'
|
|
1371
|
+
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'
|
|
1372
1372
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1373
1373
|
className: 'row m-0 w-100'
|
|
1374
1374
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -1379,7 +1379,18 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
1379
1379
|
width: '100%',
|
|
1380
1380
|
height: 'auto'
|
|
1381
1381
|
}
|
|
1382
|
-
}, productimagesarray.length
|
|
1382
|
+
}, productimagesarray.length == 0 && /*#__PURE__*/React.createElement("div", {
|
|
1383
|
+
style: {
|
|
1384
|
+
width: '100%',
|
|
1385
|
+
height: '30vh',
|
|
1386
|
+
background: '#eee',
|
|
1387
|
+
borderRadius: 10
|
|
1388
|
+
}
|
|
1389
|
+
}, /*#__PURE__*/React.createElement("i", {
|
|
1390
|
+
"class": "h-100 allcentered text-light"
|
|
1391
|
+
}, /*#__PURE__*/React.createElement(FiLayers, {
|
|
1392
|
+
size: 26
|
|
1393
|
+
}))), productimagesarray.length != 0 && /*#__PURE__*/React.createElement(ImageGallery, {
|
|
1383
1394
|
items: productimagesarray,
|
|
1384
1395
|
thumbnailPosition: sectionproperties.thumbnailposition == 'Bottom' ? 'bottom' : 'left',
|
|
1385
1396
|
showNav: false,
|
|
@@ -1462,9 +1473,9 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
1462
1473
|
style: {
|
|
1463
1474
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
1464
1475
|
}
|
|
1465
|
-
}, 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.createElement(ProductHeaderPricing, {
|
|
1476
|
+
}, 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.createElement(ProductHeaderPricing, {
|
|
1466
1477
|
actions: props.actions
|
|
1467
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
1478
|
+
}), (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.createElement("div", {
|
|
1468
1479
|
className: "row m-0 w-100 d-flex align-items-start"
|
|
1469
1480
|
}, 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) {
|
|
1470
1481
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -1537,7 +1548,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
1537
1548
|
}
|
|
1538
1549
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1539
1550
|
className: "row m-0 w-100 d-flex align-items-center"
|
|
1540
|
-
}, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
1551
|
+
}, (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.createElement("div", {
|
|
1541
1552
|
className: "col-lg-12 p-0 mb-2 d-flex justofy-content-start"
|
|
1542
1553
|
}, /*#__PURE__*/React.createElement("p", {
|
|
1543
1554
|
className: "m-0 p-0",
|
|
@@ -1547,7 +1558,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
1547
1558
|
textTransform: sectionproperties.generaltext_textTransform,
|
|
1548
1559
|
fontWeight: sectionproperties.generaltext_fontWeight
|
|
1549
1560
|
}
|
|
1550
|
-
}, lang.quantity, ":")), sectionproperties.quantitybtn_show == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
1561
|
+
}, 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.createElement("button", {
|
|
1551
1562
|
className: " ".concat(productinfo_cssstyles.quantitybtn) + ' p-0 d-flex align-items-center justify-content-center mb-sm-2 ',
|
|
1552
1563
|
style: {
|
|
1553
1564
|
height: sectionproperties.quantitybtn_height + 'px',
|
|
@@ -1583,7 +1594,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
1583
1594
|
style: {
|
|
1584
1595
|
fontSize: sectionproperties.remove_quantitybtn_textfontsize + 'px'
|
|
1585
1596
|
}
|
|
1586
|
-
}))), sectionproperties.cartBtnShow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
1597
|
+
}))), 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.createElement("button", {
|
|
1587
1598
|
className: "".concat(productinfo_cssstyles.cart_btn, " ") + ' ml-2 mr-2 d-flex align-items-center justify-content-center mb-sm-2 ',
|
|
1588
1599
|
onClick: function onClick() {
|
|
1589
1600
|
if (fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant >= addtocardpayloadobj.quantity && fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant <= addtocardpayloadobj.quantity) {
|
|
@@ -1649,7 +1660,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
1649
1660
|
size: sectionproperties.favBtnIconfontsize
|
|
1650
1661
|
}), sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React.createElement(FaRegHeart, {
|
|
1651
1662
|
size: sectionproperties.favBtnIconfontsize
|
|
1652
|
-
})))))), sectionproperties.productInformationType == 'Product/Service Information' && /*#__PURE__*/React.createElement("div", {
|
|
1663
|
+
})))))), 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.createElement("div", {
|
|
1653
1664
|
className: "col-lg-12 p-0 mb-3"
|
|
1654
1665
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1655
1666
|
className: "row m-0 w-100 d-flex flex-row"
|
|
@@ -1686,7 +1697,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
1686
1697
|
style: {
|
|
1687
1698
|
textDecoration: 'none'
|
|
1688
1699
|
}
|
|
1689
|
-
}, "-"), 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.createElement("div", {
|
|
1700
|
+
}, "-"), 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.createElement("div", {
|
|
1690
1701
|
className: "col-lg-12 p-0 mb-3 mt-2"
|
|
1691
1702
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1692
1703
|
style: {
|
|
@@ -1766,7 +1777,8 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
1766
1777
|
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',
|
|
1767
1778
|
style: {
|
|
1768
1779
|
borderLeft: langdetect == 'en' ? '1px solid #eee' : 0,
|
|
1769
|
-
borderRight: langdetect == 'ar' ? '1px solid #eee' : 0
|
|
1780
|
+
borderRight: langdetect == 'ar' ? '1px solid #eee' : 0,
|
|
1781
|
+
display: sectionproperties.showfooterphonenumber == 'Hide' && sectionproperties.showfooteremail == 'Hide' && sectionproperties.showstoreinfo2 == 'Hide' && sectionproperties.showstoreinfo1 == 'Hide' ? 'none' : 'block'
|
|
1770
1782
|
}
|
|
1771
1783
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1772
1784
|
"class": "row m-0 w-100",
|
|
@@ -4257,7 +4269,8 @@ var Productinfo = function Productinfo(props) {
|
|
|
4257
4269
|
textTransform: sectionproperties.tabtexttexttransform,
|
|
4258
4270
|
borderRadius: sectionproperties.tabcontainerborderradius + 'px',
|
|
4259
4271
|
fontFamily: 'Poppins',
|
|
4260
|
-
transition: '.3s'
|
|
4272
|
+
transition: '.3s',
|
|
4273
|
+
fontSize: sectionproperties.tabtextfontsize + 'px'
|
|
4261
4274
|
},
|
|
4262
4275
|
'& button:hover': {
|
|
4263
4276
|
color: sectionproperties.tabscoloronhover,
|
|
@@ -11391,6 +11404,8 @@ var CardsSection = function CardsSection(props) {
|
|
|
11391
11404
|
cardobj.quantity = itemquantity;
|
|
11392
11405
|
cardobj.timestamp = arrayItem.productinfo.timestamp;
|
|
11393
11406
|
cardobj.productquantity = arrayItem.productinfo.productquantity;
|
|
11407
|
+
cardobj.quantavailtype = arrayItem.productinfo.quantavailtype;
|
|
11408
|
+
cardobj.isproducttobesold = arrayItem.productinfo.isproducttobesold;
|
|
11394
11409
|
if (langdetect == 'en') {
|
|
11395
11410
|
cardobj.currencyname = fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 ? void 0 : fetchAuthorizationQueryContext.data.data.currencyname_en;
|
|
11396
11411
|
} else {
|
|
@@ -11774,19 +11789,24 @@ var CardsSection = function CardsSection(props) {
|
|
|
11774
11789
|
} else {
|
|
11775
11790
|
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
|
|
11776
11791
|
}
|
|
11792
|
+
},
|
|
11793
|
+
style: {
|
|
11794
|
+
flexDirection: 'row'
|
|
11777
11795
|
}
|
|
11778
|
-
},
|
|
11796
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
11779
11797
|
"class": sectionproperties.sectiontitleposition == 'Centered' ? 'd-flex justify-content-center align-items-center' : 'd-flex justify-content-center align-items-center d-md-none'
|
|
11780
11798
|
}, /*#__PURE__*/React.createElement("span", {
|
|
11781
11799
|
"class": sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : ''
|
|
11782
|
-
}, langdetect == 'en' ? sectionproperties.viewmorebtn_text : sectionproperties.viewmorebtn_text_ar)
|
|
11783
|
-
"class": sectionproperties.sectiontitleposition == 'Centered' ? 'd-flex justify-content-center align-items-center' : 'd-flex justify-content-center align-items-center d-md-none'
|
|
11784
|
-
|
|
11785
|
-
|
|
11800
|
+
}, langdetect == 'en' ? sectionproperties.viewmorebtn_text : sectionproperties.viewmorebtn_text_ar), sectionproperties.showIcon == 'Show' && /*#__PURE__*/React.createElement("i", {
|
|
11801
|
+
"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',
|
|
11802
|
+
style: {
|
|
11803
|
+
marginLeft: 5,
|
|
11804
|
+
marginRight: 5
|
|
11805
|
+
}
|
|
11786
11806
|
}, langdetect == 'en' ? /*#__PURE__*/React.createElement(HiOutlineArrowRight, {
|
|
11787
|
-
size: sectionproperties.
|
|
11807
|
+
size: sectionproperties.viewmoreiconfontsize
|
|
11788
11808
|
}) : /*#__PURE__*/React.createElement(HiOutlineArrowLeft, {
|
|
11789
|
-
size: sectionproperties.
|
|
11809
|
+
size: sectionproperties.viewmoreiconfontsize
|
|
11790
11810
|
}))), /*#__PURE__*/React.createElement("span", {
|
|
11791
11811
|
"class": sectionproperties.sectiontitleposition == 'Centered' ? 'd-none align-items-center justify-content-center' : 'd-none d-md-flex align-items-center justify-content-center'
|
|
11792
11812
|
}, /*#__PURE__*/React.createElement("i", {
|
|
@@ -20746,7 +20766,7 @@ styleInject(css_248z$s);
|
|
|
20746
20766
|
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; }
|
|
20747
20767
|
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(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; }
|
|
20748
20768
|
var HeaderwithContactinfo = function HeaderwithContactinfo(props) {
|
|
20749
|
-
var _authdetailsContext$i, _authdetailsContext$i4, _authdetailsContext$i7, _authdetailsContext$
|
|
20769
|
+
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;
|
|
20750
20770
|
var _useState = useState(''),
|
|
20751
20771
|
_useState2 = _slicedToArray(_useState, 2),
|
|
20752
20772
|
sectionproperties = _useState2[0],
|
|
@@ -21078,21 +21098,19 @@ var HeaderwithContactinfo = function HeaderwithContactinfo(props) {
|
|
|
21078
21098
|
})), 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.createElement("div", {
|
|
21079
21099
|
"class": header_cssstyles.fbbtn + ' pl-3 pr-3 pt-2 pb-2 allcentered cursor-pointer ',
|
|
21080
21100
|
onClick: function onClick() {
|
|
21081
|
-
|
|
21082
|
-
|
|
21083
|
-
|
|
21084
|
-
window.open(authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i9 = authdetailsContext.instinfo) === null || _authdetailsContext$i9 === void 0 ? void 0 : _authdetailsContext$i9.telegramlink, '_blank');
|
|
21085
|
-
}
|
|
21101
|
+
// if (authdetailsContext?.instinfo?.telegramlink != null) {
|
|
21102
|
+
window.open('https://t.me/puplicbeorganization741', '_blank');
|
|
21103
|
+
// }
|
|
21086
21104
|
}
|
|
21087
21105
|
}, /*#__PURE__*/React.createElement(FaTelegramPlane, {
|
|
21088
21106
|
size: sectionproperties.facebkbtnniconfontsize
|
|
21089
|
-
})), sectionproperties.instbtn_show == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$
|
|
21107
|
+
})), 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.createElement("div", {
|
|
21090
21108
|
"class": header_cssstyles.instagrambtn + ' pl-3 pr-3 pt-2 pb-2 allcentered cursor-pointer ',
|
|
21091
21109
|
onClick: function onClick() {
|
|
21092
|
-
var _authdetailsContext$
|
|
21093
|
-
if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$
|
|
21094
|
-
var _authdetailsContext$
|
|
21095
|
-
window.open(authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$
|
|
21110
|
+
var _authdetailsContext$i9;
|
|
21111
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i9 = authdetailsContext.instinfo) === null || _authdetailsContext$i9 === void 0 ? void 0 : _authdetailsContext$i9.instagramlink) != null) {
|
|
21112
|
+
var _authdetailsContext$i10;
|
|
21113
|
+
window.open(authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i10 = authdetailsContext.instinfo) === null || _authdetailsContext$i10 === void 0 ? void 0 : _authdetailsContext$i10.instagramlink, '_blank');
|
|
21096
21114
|
}
|
|
21097
21115
|
}
|
|
21098
21116
|
}, /*#__PURE__*/React.createElement(AiOutlineInstagram, {
|
|
@@ -21121,15 +21139,15 @@ var HeaderwithContactinfo = function HeaderwithContactinfo(props) {
|
|
|
21121
21139
|
borderRight: sectionproperties.vl_width + 'px solid ' + sectionproperties.vl_bg
|
|
21122
21140
|
},
|
|
21123
21141
|
onClick: function onClick() {
|
|
21124
|
-
var _authdetailsContext$
|
|
21125
|
-
window.open('mailto:' + (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$
|
|
21142
|
+
var _authdetailsContext$i11, _authdetailsContext$i12;
|
|
21143
|
+
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');
|
|
21126
21144
|
}
|
|
21127
21145
|
}, /*#__PURE__*/React.createElement(AiOutlineMail, {
|
|
21128
21146
|
"class": header_cssstyles.upperheadertext + ' ml-1 mr-1 storeinfotext ',
|
|
21129
21147
|
size: sectionproperties.footerinfotext_fontsize
|
|
21130
21148
|
}), /*#__PURE__*/React.createElement("span", {
|
|
21131
21149
|
"class": header_cssstyles.upperheadertext + ' storeinfotext '
|
|
21132
|
-
}, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$
|
|
21150
|
+
}, 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.createElement("div", {
|
|
21133
21151
|
"class": "d-flex align-items-center justify-content-center pl-3 pr-3 h-100",
|
|
21134
21152
|
style: {
|
|
21135
21153
|
borderRight: sectionproperties.vl_width + 'px solid ' + sectionproperties.vl_bg
|
|
@@ -23874,7 +23892,7 @@ styleInject(css_248z$o);
|
|
|
23874
23892
|
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; }
|
|
23875
23893
|
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; }
|
|
23876
23894
|
var SearchFocusedHeader = function SearchFocusedHeader(props) {
|
|
23877
|
-
var _css, _authdetailsContext$i3, _authdetailsContext$i4, _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$c, _authdetailsContext$
|
|
23895
|
+
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;
|
|
23878
23896
|
var lang = props.actions.lang;
|
|
23879
23897
|
var langdetect = props.actions.langdetect;
|
|
23880
23898
|
var setlang = props.actions.setlang;
|
|
@@ -24341,35 +24359,35 @@ var SearchFocusedHeader = function SearchFocusedHeader(props) {
|
|
|
24341
24359
|
"class": "col-lg-3 d-flex align-items-center p-0"
|
|
24342
24360
|
}, /*#__PURE__*/React.createElement("div", {
|
|
24343
24361
|
"class": "row m-0 d-flex justify-content-end w-100"
|
|
24344
|
-
}, sectionproperties.fbbtn_show == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
24362
|
+
}, 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.createElement("div", {
|
|
24345
24363
|
"class": header_cssstyles.fbbtn + ' p-0 allcentered cursor-pointer ',
|
|
24346
24364
|
onClick: function onClick() {
|
|
24347
|
-
var _authdetailsContext$
|
|
24348
|
-
if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$
|
|
24349
|
-
var _authdetailsContext$
|
|
24350
|
-
window.open(authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$
|
|
24365
|
+
var _authdetailsContext$i6;
|
|
24366
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i6 = authdetailsContext.instinfo) === null || _authdetailsContext$i6 === void 0 ? void 0 : _authdetailsContext$i6.facebooklink) != null) {
|
|
24367
|
+
var _authdetailsContext$i7;
|
|
24368
|
+
window.open(authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i7 = authdetailsContext.instinfo) === null || _authdetailsContext$i7 === void 0 ? void 0 : _authdetailsContext$i7.facebooklink, '_blank');
|
|
24351
24369
|
}
|
|
24352
24370
|
}
|
|
24353
24371
|
}, /*#__PURE__*/React.createElement(FaFacebookF, {
|
|
24354
24372
|
size: sectionproperties.facebkbtnniconfontsize
|
|
24355
|
-
})), sectionproperties.youtbtn_show == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
24373
|
+
})), 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.createElement("div", {
|
|
24356
24374
|
"class": header_cssstyles.whatsappbtn + ' p-0 allcentered cursor-pointer ',
|
|
24357
24375
|
onClick: function onClick() {
|
|
24358
|
-
var _authdetailsContext$
|
|
24359
|
-
if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$
|
|
24360
|
-
var _authdetailsContext$
|
|
24361
|
-
window.open('https://api.whatsapp.com/send?phone=' + (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$
|
|
24376
|
+
var _authdetailsContext$i9;
|
|
24377
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i9 = authdetailsContext.instinfo) === null || _authdetailsContext$i9 === void 0 ? void 0 : _authdetailsContext$i9.whatsappnumber) != null) {
|
|
24378
|
+
var _authdetailsContext$i10;
|
|
24379
|
+
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');
|
|
24362
24380
|
}
|
|
24363
24381
|
}
|
|
24364
24382
|
}, /*#__PURE__*/React.createElement(FaWhatsapp, {
|
|
24365
24383
|
size: sectionproperties.youtubebtniconfontsize
|
|
24366
|
-
})), sectionproperties.instbtn_show == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
24384
|
+
})), 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.createElement("div", {
|
|
24367
24385
|
"class": header_cssstyles.instagrambtn + ' p-0 allcentered cursor-pointer ',
|
|
24368
24386
|
onClick: function onClick() {
|
|
24369
|
-
var _authdetailsContext$
|
|
24370
|
-
if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$
|
|
24371
|
-
var _authdetailsContext$
|
|
24372
|
-
window.open(authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$
|
|
24387
|
+
var _authdetailsContext$i12;
|
|
24388
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i12 = authdetailsContext.instinfo) === null || _authdetailsContext$i12 === void 0 ? void 0 : _authdetailsContext$i12.instagramlink) != null) {
|
|
24389
|
+
var _authdetailsContext$i13;
|
|
24390
|
+
window.open(authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i13 = authdetailsContext.instinfo) === null || _authdetailsContext$i13 === void 0 ? void 0 : _authdetailsContext$i13.instagramlink, '_blank');
|
|
24373
24391
|
}
|
|
24374
24392
|
}
|
|
24375
24393
|
}, /*#__PURE__*/React.createElement(AiOutlineInstagram, {
|
|
@@ -24490,7 +24508,7 @@ var SearchFocusedHeader = function SearchFocusedHeader(props) {
|
|
|
24490
24508
|
onClick: function onClick() {
|
|
24491
24509
|
routingcountext(StaticPagesLinksContext.accountinfo);
|
|
24492
24510
|
}
|
|
24493
|
-
}, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$
|
|
24511
|
+
}, 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.createElement(Dropdown.Divider, null), /*#__PURE__*/React.createElement(Dropdown.Item, {
|
|
24494
24512
|
onClick: function onClick() {
|
|
24495
24513
|
routingcountext(StaticPagesLinksContext.Ordershistory);
|
|
24496
24514
|
}
|
|
@@ -24666,7 +24684,7 @@ var SearchFocusedHeader = function SearchFocusedHeader(props) {
|
|
|
24666
24684
|
minWidth: '250px',
|
|
24667
24685
|
marginLeft: '0px'
|
|
24668
24686
|
}
|
|
24669
|
-
}, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$
|
|
24687
|
+
}, 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) {
|
|
24670
24688
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Dropdown.Item, {
|
|
24671
24689
|
onClick: function onClick() {
|
|
24672
24690
|
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.collectionid);
|
|
@@ -34472,105 +34490,381 @@ var ElegantCategoriesCardSection = function ElegantCategoriesCardSection(props)
|
|
|
34472
34490
|
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; }
|
|
34473
34491
|
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(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; }
|
|
34474
34492
|
var RandomlyStructuredCollectionCards = function RandomlyStructuredCollectionCards(props) {
|
|
34475
|
-
var
|
|
34476
|
-
_useInView.ref;
|
|
34477
|
-
var inView = _useInView.inView;
|
|
34493
|
+
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
34478
34494
|
props.actions.lang;
|
|
34479
34495
|
var langdetect = props.actions.langdetect;
|
|
34480
|
-
var
|
|
34496
|
+
var fetchcustomercartQueryContext = props.actions.fetchcustomercartQueryContext;
|
|
34497
|
+
var favoriteprojectscountContext = props.actions.favoriteprojectscountContext;
|
|
34498
|
+
var routingcountext = props.actions.routingcountext;
|
|
34499
|
+
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
34500
|
+
var ProductFilterObjContext = props.actions.ProductFilterObjContext;
|
|
34501
|
+
var setProductFilterObjContext = props.actions.setProductFilterObjContext;
|
|
34481
34502
|
props.actions.TabexSectionsComponentsContext;
|
|
34482
|
-
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
34483
|
-
var fetchcollectionsQueryContext = props.actions.fetchcollectionsQueryContext;
|
|
34484
34503
|
var FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
|
|
34485
34504
|
var setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
|
|
34486
|
-
var
|
|
34487
|
-
var
|
|
34505
|
+
var fetchProductsQuery = props.actions.fetchProductsQuery;
|
|
34506
|
+
var fetchcollectionsQueryContext = props.actions.fetchcollectionsQueryContext;
|
|
34507
|
+
var setParentCollectionsForCollectionQueryArr = props.actions.setParentCollectionsForCollectionQueryArr;
|
|
34508
|
+
props.actions.ParentCollectionsForCollectionQueryArr;
|
|
34488
34509
|
var setfetchingtype = props.actions.setfetchingtype;
|
|
34489
34510
|
var fetchingtype = props.actions.fetchingtype;
|
|
34511
|
+
props.actions.addtofavoritescontext;
|
|
34512
|
+
var fetchAuthorizationQueryContext = props.actions.fetchAuthorizationQueryContext;
|
|
34513
|
+
var FetchVendorsQuery = props.actions.FetchVendorsQuery;
|
|
34490
34514
|
var ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
34515
|
+
var _useState = useState(false),
|
|
34516
|
+
_useState2 = _slicedToArray(_useState, 2);
|
|
34517
|
+
_useState2[0];
|
|
34518
|
+
_useState2[1];
|
|
34491
34519
|
props.actions;
|
|
34492
|
-
var
|
|
34493
|
-
props.actions.ParentCollectionsForCollectionQueryArr;
|
|
34494
|
-
var _useState = useState(''),
|
|
34495
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
34496
|
-
sectionproperties = _useState2[0],
|
|
34497
|
-
setsectionproperties = _useState2[1];
|
|
34498
|
-
var _useState3 = useState([]),
|
|
34520
|
+
var _useState3 = useState(''),
|
|
34499
34521
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
34500
|
-
|
|
34501
|
-
|
|
34502
|
-
var _useState5 = useState(
|
|
34522
|
+
sectionproperties = _useState4[0],
|
|
34523
|
+
setsectionproperties = _useState4[1];
|
|
34524
|
+
var _useState5 = useState([]),
|
|
34525
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
34526
|
+
cardsarray = _useState6[0],
|
|
34527
|
+
setcardsarray = _useState6[1];
|
|
34528
|
+
var _useState7 = useState(''),
|
|
34529
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
34530
|
+
sectionitem = _useState8[0],
|
|
34531
|
+
setsectionitem = _useState8[1];
|
|
34532
|
+
var _useState9 = useState({
|
|
34503
34533
|
productfetchingtype: 'Random',
|
|
34504
|
-
collectionid: ''
|
|
34534
|
+
collectionid: '',
|
|
34535
|
+
grouptype: ''
|
|
34505
34536
|
}),
|
|
34506
|
-
|
|
34507
|
-
ProductsFetchingTypeSectionObj =
|
|
34508
|
-
setProductsFetchingTypeSectionObj =
|
|
34509
|
-
|
|
34510
|
-
|
|
34511
|
-
|
|
34512
|
-
|
|
34513
|
-
|
|
34537
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
34538
|
+
ProductsFetchingTypeSectionObj = _useState10[0],
|
|
34539
|
+
setProductsFetchingTypeSectionObj = _useState10[1];
|
|
34540
|
+
var _useState11 = useState([]),
|
|
34541
|
+
_useState12 = _slicedToArray(_useState11, 2);
|
|
34542
|
+
_useState12[0];
|
|
34543
|
+
var setmaincontainerarrayofobjs = _useState12[1];
|
|
34544
|
+
// React.useEffect(() => {
|
|
34545
|
+
// if (inView) {
|
|
34546
|
+
// fetchProductsQuery.fetchNextPage();
|
|
34547
|
+
// }
|
|
34548
|
+
// }, [inView]);
|
|
34514
34549
|
useEffect(function () {
|
|
34550
|
+
var productfilerobjtemp = ProductFilterObjContext;
|
|
34551
|
+
if (props.filterparamsprops != undefined) {
|
|
34552
|
+
var filterpar = decodeURIComponent(props.filterparamsprops);
|
|
34553
|
+
var filterparsed = JSON.parse(filterpar);
|
|
34554
|
+
if (filterparsed != undefined) {
|
|
34555
|
+
productfilerobjtemp = filterparsed;
|
|
34556
|
+
setProductFilterObjContext(filterparsed);
|
|
34557
|
+
}
|
|
34558
|
+
}
|
|
34515
34559
|
StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
|
|
34516
34560
|
if (sectionitem.sectionid == props.sectionidprops) {
|
|
34517
34561
|
var secpropobj = {};
|
|
34562
|
+
setsectionitem(sectionitem);
|
|
34518
34563
|
sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
|
|
34519
34564
|
secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
|
|
34520
34565
|
});
|
|
34521
34566
|
setsectionproperties(_objectSpread$19({}, secpropobj));
|
|
34522
|
-
|
|
34523
|
-
|
|
34524
|
-
|
|
34525
|
-
|
|
34526
|
-
|
|
34567
|
+
if (props.srcfromprops == 'GeneralProductsComponent') {
|
|
34568
|
+
setfetchingtype('products');
|
|
34569
|
+
var lcproductfetchingtype = 'Random';
|
|
34570
|
+
if (productfilerobjtemp.ProductFetchingType != undefined && productfilerobjtemp.ProductFetchingType != null && productfilerobjtemp.ProductFetchingType.length != 0) {
|
|
34571
|
+
lcproductfetchingtype = productfilerobjtemp.ProductFetchingType;
|
|
34572
|
+
}
|
|
34573
|
+
setProductsFetchingTypeSectionObj({
|
|
34574
|
+
productfetchingtype: lcproductfetchingtype,
|
|
34575
|
+
collectionid: props.collectionidprops,
|
|
34576
|
+
grouptype: props.grouptypeprops,
|
|
34577
|
+
grouptyperefid: props.grouptyperefidprops
|
|
34578
|
+
});
|
|
34579
|
+
} else if (props.srcfromprops == 'InnerGroups' || props.srcfromprops == 'InnerCategory' || props.srcfromprops == 'InnerParentCollection') {
|
|
34580
|
+
setfetchingtype(props.grouptypeprops);
|
|
34581
|
+
} else {
|
|
34582
|
+
setfetchingtype(sectionitem.fetchingtype);
|
|
34583
|
+
setProductsFetchingTypeSectionObj({
|
|
34584
|
+
productfetchingtype: sectionitem.productsfetchingtype,
|
|
34585
|
+
collectionid: sectionitem.productsfetchingtypeCollectioncollectionid,
|
|
34586
|
+
grouptype: props.grouptypeprops,
|
|
34587
|
+
grouptyperefid: props.grouptyperefidprops
|
|
34588
|
+
});
|
|
34589
|
+
}
|
|
34527
34590
|
}
|
|
34528
34591
|
});
|
|
34529
34592
|
}, [StatePagePropertiesContext]);
|
|
34530
34593
|
useEffect(function () {
|
|
34531
34594
|
if (sectionproperties.length != 0) {
|
|
34532
34595
|
if (cardsarray.length == 0) {
|
|
34533
|
-
if (
|
|
34534
|
-
|
|
34596
|
+
if (fetchingtype == 'collections') {
|
|
34597
|
+
if (fetchcollectionsQueryContext.isSuccess) {
|
|
34598
|
+
cardobjassigner(fetchcollectionsQueryContext.data.data.collections);
|
|
34599
|
+
}
|
|
34600
|
+
} else if (fetchingtype == 'products') {
|
|
34601
|
+
if (fetchProductsQuery.isSuccess) {
|
|
34602
|
+
var _fetchProductsQuery$d, _fetchProductsQuery$d2, _fetchProductsQuery$d3;
|
|
34603
|
+
var allpagesarr = [];
|
|
34604
|
+
// fetchProductsQuery.data.pages.forEach((page) => {
|
|
34605
|
+
// page.data.products.forEach((productobj) => {
|
|
34606
|
+
// allpagesarr.push(productobj);
|
|
34607
|
+
// });
|
|
34608
|
+
// });
|
|
34609
|
+
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) {
|
|
34610
|
+
allpagesarr.push(item);
|
|
34611
|
+
});
|
|
34612
|
+
cardobjassigner(allpagesarr);
|
|
34613
|
+
}
|
|
34614
|
+
} else if (fetchingtype == 'vendors') {
|
|
34615
|
+
if (FetchVendorsQuery.isSuccess) {
|
|
34616
|
+
var _FetchVendorsQuery$da, _FetchVendorsQuery$da2;
|
|
34617
|
+
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);
|
|
34618
|
+
}
|
|
34535
34619
|
}
|
|
34536
34620
|
}
|
|
34537
34621
|
}
|
|
34538
34622
|
}, [sectionproperties]);
|
|
34539
34623
|
useEffect(function () {
|
|
34540
|
-
if (fetchingtype.length != 0) {
|
|
34624
|
+
if ((fetchingtype === null || fetchingtype === void 0 ? void 0 : fetchingtype.length) != 0) {
|
|
34541
34625
|
var tempFetchQueriesEngineContext = FetchQueriesEngineContext;
|
|
34542
|
-
if (
|
|
34543
|
-
|
|
34544
|
-
|
|
34545
|
-
|
|
34626
|
+
if (fetchingtype == 'collections') {
|
|
34627
|
+
if (ProductsFetchingTypeSectionObj.collectionid == 'all' || ProductsFetchingTypeSectionObj.collectionid == null || ProductsFetchingTypeSectionObj.collectionid == undefined) {
|
|
34628
|
+
setParentCollectionsForCollectionQueryArr('all');
|
|
34629
|
+
} else {
|
|
34630
|
+
setParentCollectionsForCollectionQueryArr([ProductsFetchingTypeSectionObj.collectionid]);
|
|
34631
|
+
}
|
|
34632
|
+
}
|
|
34633
|
+
if (fetchingtype == 'products') {
|
|
34634
|
+
var tempfetchproductsfilerobjcontext = ProductFilterObjContext;
|
|
34635
|
+
tempfetchproductsfilerobjcontext.ProductFetchingType = ProductsFetchingTypeSectionObj.productfetchingtype;
|
|
34636
|
+
if (ProductsFetchingTypeSectionObj.grouptype == 'collections' || ProductsFetchingTypeSectionObj.grouptype == 'categories' || ProductsFetchingTypeSectionObj.grouptype == 'parentcollections') ; else {
|
|
34637
|
+
if (tempfetchproductsfilerobjcontext.collections != undefined) {
|
|
34638
|
+
tempfetchproductsfilerobjcontext.collections.push(ProductsFetchingTypeSectionObj.collectionid);
|
|
34639
|
+
}
|
|
34640
|
+
}
|
|
34641
|
+
tempfetchproductsfilerobjcontext.grouptype = ProductsFetchingTypeSectionObj.grouptype;
|
|
34642
|
+
tempfetchproductsfilerobjcontext.grouptyperefid = ProductsFetchingTypeSectionObj.grouptyperefid;
|
|
34643
|
+
setProductFilterObjContext(_objectSpread$19({}, tempfetchproductsfilerobjcontext));
|
|
34644
|
+
}
|
|
34645
|
+
if (fetchingtype == 'categories') {
|
|
34646
|
+
if (fetchAuthorizationQueryContext !== null && fetchAuthorizationQueryContext !== void 0 && fetchAuthorizationQueryContext.isSuccess) {
|
|
34647
|
+
var categories = fetchAuthorizationQueryContext.data.data.instinfo.instcategories;
|
|
34648
|
+
cardobjassigner(categories);
|
|
34649
|
+
}
|
|
34650
|
+
}
|
|
34651
|
+
if (fetchingtype == 'parentcollections' || fetchingtype == 'innercategories') {
|
|
34652
|
+
if (fetchAuthorizationQueryContext !== null && fetchAuthorizationQueryContext !== void 0 && fetchAuthorizationQueryContext.isSuccess) {
|
|
34653
|
+
var _categories;
|
|
34654
|
+
var categories = fetchAuthorizationQueryContext.data.data.instinfo.instcategories;
|
|
34655
|
+
var parentcollections = [];
|
|
34656
|
+
(_categories = categories) === null || _categories === void 0 ? void 0 : _categories.forEach(function (catitem, catindex) {
|
|
34657
|
+
catitem === null || catitem === void 0 ? void 0 : catitem.parentcolletions.forEach(function (parentcolitem) {
|
|
34658
|
+
parentcolitem.categoryid = catitem.categoryid;
|
|
34659
|
+
parentcollections.push(parentcolitem);
|
|
34660
|
+
});
|
|
34661
|
+
});
|
|
34662
|
+
if (fetchingtype == 'parentcollections') {
|
|
34663
|
+
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') {
|
|
34664
|
+
var arrafterfilter = [];
|
|
34665
|
+
parentcollections.forEach(function (parentcolitem, parcolindex) {
|
|
34666
|
+
if (parentcolitem.categoryid == (sectionitem === null || sectionitem === void 0 ? void 0 : sectionitem.productsfetchingtypeparentcollectioncategoryid)) {
|
|
34667
|
+
arrafterfilter.push(parentcolitem);
|
|
34668
|
+
}
|
|
34669
|
+
});
|
|
34670
|
+
parentcollections = arrafterfilter;
|
|
34671
|
+
}
|
|
34672
|
+
}
|
|
34673
|
+
if (fetchingtype == 'innercategories') {
|
|
34674
|
+
var arrafterfilter = [];
|
|
34675
|
+
parentcollections.forEach(function (parentcolitem, parcolindex) {
|
|
34676
|
+
if (parentcolitem.categoryid == props.collectionidprops) {
|
|
34677
|
+
arrafterfilter.push(parentcolitem);
|
|
34678
|
+
}
|
|
34679
|
+
});
|
|
34680
|
+
parentcollections = arrafterfilter;
|
|
34681
|
+
}
|
|
34682
|
+
cardobjassigner(parentcollections);
|
|
34683
|
+
}
|
|
34684
|
+
} else if (fetchingtype == 'innerparentcollections') {
|
|
34685
|
+
if (fetchAuthorizationQueryContext !== null && fetchAuthorizationQueryContext !== void 0 && fetchAuthorizationQueryContext.isSuccess) {
|
|
34686
|
+
var _categories2;
|
|
34687
|
+
var categories = fetchAuthorizationQueryContext.data.data.instinfo.instcategories;
|
|
34688
|
+
var collections = [];
|
|
34689
|
+
(_categories2 = categories) === null || _categories2 === void 0 ? void 0 : _categories2.forEach(function (catitem, catindex) {
|
|
34690
|
+
catitem === null || catitem === void 0 ? void 0 : catitem.parentcolletions.forEach(function (parentcolitem) {
|
|
34691
|
+
var _parentcolitem$collec;
|
|
34692
|
+
parentcolitem.categoryid = catitem.categoryid;
|
|
34693
|
+
parentcolitem === null || parentcolitem === void 0 ? void 0 : (_parentcolitem$collec = parentcolitem.collections) === null || _parentcolitem$collec === void 0 ? void 0 : _parentcolitem$collec.forEach(function (collitem, colindex) {
|
|
34694
|
+
collitem.parentcollectionid = parentcolitem.parentcollectionid;
|
|
34695
|
+
collections.push(collitem);
|
|
34696
|
+
});
|
|
34697
|
+
});
|
|
34698
|
+
});
|
|
34699
|
+
if (fetchingtype == 'innerparentcollections') {
|
|
34700
|
+
var collectionsafterfilter = [];
|
|
34701
|
+
collections.forEach(function (colitem, colindex) {
|
|
34702
|
+
if (colitem.parentcollectionid == props.collectionidprops) {
|
|
34703
|
+
var iscollexists = false;
|
|
34704
|
+
collectionsafterfilter.forEach(function (existcolitem) {
|
|
34705
|
+
if (colitem.collectionid == existcolitem.collectionid) {
|
|
34706
|
+
iscollexists = true;
|
|
34707
|
+
}
|
|
34708
|
+
});
|
|
34709
|
+
if (iscollexists == false) {
|
|
34710
|
+
collectionsafterfilter.push(colitem);
|
|
34711
|
+
}
|
|
34712
|
+
}
|
|
34713
|
+
});
|
|
34714
|
+
collections = collectionsafterfilter;
|
|
34715
|
+
}
|
|
34716
|
+
cardobjassigner(collections);
|
|
34717
|
+
}
|
|
34546
34718
|
}
|
|
34547
34719
|
setFetchQueriesEngineContext(_objectSpread$19({}, tempFetchQueriesEngineContext));
|
|
34548
34720
|
}
|
|
34549
34721
|
}, [fetchingtype, ProductsFetchingTypeSectionObj]);
|
|
34550
34722
|
useEffect(function () {
|
|
34551
|
-
if (
|
|
34552
|
-
|
|
34723
|
+
if (fetchingtype == 'products') {
|
|
34724
|
+
if (fetchProductsQuery.isSuccess && fetchcustomercartQueryContext.isSuccess) {
|
|
34725
|
+
var _fetchProductsQuery$d4, _fetchProductsQuery$d5, _fetchProductsQuery$d6;
|
|
34726
|
+
var allpagesarr = [];
|
|
34727
|
+
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) {
|
|
34728
|
+
allpagesarr.push(item);
|
|
34729
|
+
});
|
|
34730
|
+
cardobjassigner(allpagesarr);
|
|
34731
|
+
}
|
|
34553
34732
|
}
|
|
34554
|
-
}, [
|
|
34733
|
+
}, [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]);
|
|
34734
|
+
useEffect(function () {
|
|
34735
|
+
if (fetchingtype == 'collections') {
|
|
34736
|
+
if (fetchcollectionsQueryContext.isSuccess) {
|
|
34737
|
+
cardobjassigner(fetchcollectionsQueryContext.data.data.collections);
|
|
34738
|
+
}
|
|
34739
|
+
}
|
|
34740
|
+
}, [fetchcollectionsQueryContext === null || fetchcollectionsQueryContext === void 0 ? void 0 : fetchcollectionsQueryContext.isSuccess]);
|
|
34741
|
+
useEffect(function () {
|
|
34742
|
+
if (fetchingtype == 'vendors') {
|
|
34743
|
+
if (FetchVendorsQuery.isSuccess) {
|
|
34744
|
+
if (FetchVendorsQuery.data.data.vendors != undefined && FetchVendorsQuery.data.data.vendors.length != 0) {
|
|
34745
|
+
var _FetchVendorsQuery$da3, _FetchVendorsQuery$da4;
|
|
34746
|
+
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);
|
|
34747
|
+
}
|
|
34748
|
+
}
|
|
34749
|
+
}
|
|
34750
|
+
}, [FetchVendorsQuery.isSuccess]);
|
|
34751
|
+
useEffect(function () {
|
|
34752
|
+
favassigner();
|
|
34753
|
+
}, [favoriteprojectscountContext]);
|
|
34754
|
+
useEffect(function () {
|
|
34755
|
+
if (sectionproperties.length != 0 && sectionproperties.maincontainerarrayofobjs != undefined) {
|
|
34756
|
+
var maincontainerarrayofobjsparsed = JSON.parse(sectionproperties.maincontainerarrayofobjs);
|
|
34757
|
+
if (Array.isArray(maincontainerarrayofobjsparsed)) {
|
|
34758
|
+
setmaincontainerarrayofobjs(_toConsumableArray(maincontainerarrayofobjsparsed));
|
|
34759
|
+
}
|
|
34760
|
+
}
|
|
34761
|
+
}, [sectionproperties]);
|
|
34762
|
+
var favassigner = function favassigner() {
|
|
34763
|
+
if (fetchingtype == 'products') {
|
|
34764
|
+
if (cardsarray.length != 0) {
|
|
34765
|
+
if (favoriteprojectscountContext != undefined && Array.isArray(favoriteprojectscountContext)) {
|
|
34766
|
+
var tempcardsarray = _toConsumableArray(cardsarray);
|
|
34767
|
+
tempcardsarray.forEach(function (arrayItem, arrayindex) {
|
|
34768
|
+
arrayItem.IsFavExists = false;
|
|
34769
|
+
});
|
|
34770
|
+
tempcardsarray.forEach(function (arrayItem, arrayindex) {
|
|
34771
|
+
favoriteprojectscountContext.forEach(function (favitem, favindex) {
|
|
34772
|
+
if (arrayItem.productid == favitem) {
|
|
34773
|
+
arrayItem.IsFavExists = true;
|
|
34774
|
+
}
|
|
34775
|
+
});
|
|
34776
|
+
});
|
|
34777
|
+
setcardsarray(_toConsumableArray(tempcardsarray));
|
|
34778
|
+
}
|
|
34779
|
+
}
|
|
34780
|
+
}
|
|
34781
|
+
};
|
|
34555
34782
|
var cardobjassigner = function cardobjassigner(fetchedarray) {
|
|
34556
34783
|
var temparray = [];
|
|
34557
34784
|
fetchedarray.forEach(function (arrayItem, arrayindex) {
|
|
34558
34785
|
var cardobj = {
|
|
34559
34786
|
name: '',
|
|
34560
|
-
image: ''
|
|
34561
|
-
index: arrayindex,
|
|
34562
|
-
collectionid: ''
|
|
34787
|
+
image: ''
|
|
34563
34788
|
};
|
|
34564
|
-
|
|
34565
|
-
|
|
34566
|
-
|
|
34567
|
-
|
|
34568
|
-
|
|
34569
|
-
|
|
34570
|
-
|
|
34789
|
+
if (fetchingtype == 'products') {
|
|
34790
|
+
var itemquantity = 0;
|
|
34791
|
+
if (langdetect == 'en') {
|
|
34792
|
+
cardobj.name = arrayItem.productinfo.name_en;
|
|
34793
|
+
} else {
|
|
34794
|
+
cardobj.name = arrayItem.productinfo.name_ar;
|
|
34795
|
+
}
|
|
34796
|
+
if (langdetect == 'en') {
|
|
34797
|
+
cardobj.description = arrayItem.productinfo.description_en;
|
|
34798
|
+
} else {
|
|
34799
|
+
cardobj.description = arrayItem.productinfo.description_ar;
|
|
34800
|
+
}
|
|
34801
|
+
if (arrayItem.productinfo.hasvariants == 0) {
|
|
34802
|
+
fetchcustomercartQueryContext.data.data.customercart.cartitems.forEach(function (cartitem, cartindex) {
|
|
34803
|
+
if (cartitem.productid == arrayItem.productinfo.productid) {
|
|
34804
|
+
itemquantity = cartitem.quantity;
|
|
34805
|
+
}
|
|
34806
|
+
});
|
|
34807
|
+
}
|
|
34808
|
+
cardobj.image = arrayItem.productinfo.productmainimage;
|
|
34809
|
+
cardobj.hassale = arrayItem.productinfo.hassale;
|
|
34810
|
+
cardobj.productid = arrayItem.productinfo.productid;
|
|
34811
|
+
cardobj.hasvariants = arrayItem.productinfo.hasvariants;
|
|
34812
|
+
cardobj.description_en = arrayItem.productinfo.description_en;
|
|
34813
|
+
cardobj.description_ar = arrayItem.productinfo.description_ar;
|
|
34814
|
+
cardobj.defaultprice = arrayItem.productinfo.defaultprice;
|
|
34815
|
+
cardobj.defaultsaleprice = arrayItem.productinfo.defaultsaleprice;
|
|
34816
|
+
cardobj.productimages = arrayItem.productinfo.productimages;
|
|
34817
|
+
cardobj.quantity = itemquantity;
|
|
34818
|
+
cardobj.timestamp = arrayItem.productinfo.timestamp;
|
|
34819
|
+
cardobj.productquantity = arrayItem.productinfo.productquantity;
|
|
34820
|
+
cardobj.quantavailtype = arrayItem.productinfo.quantavailtype;
|
|
34821
|
+
if (langdetect == 'en') {
|
|
34822
|
+
cardobj.currencyname = fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 ? void 0 : fetchAuthorizationQueryContext.data.data.currencyname_en;
|
|
34823
|
+
} else {
|
|
34824
|
+
cardobj.currencyname = fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 ? void 0 : fetchAuthorizationQueryContext.data.data.currencyname_ar;
|
|
34825
|
+
}
|
|
34826
|
+
if (favoriteprojectscountContext != undefined && favoriteprojectscountContext.length != 0) {
|
|
34827
|
+
favoriteprojectscountContext.forEach(function (favitem, favindex) {
|
|
34828
|
+
if (arrayItem.productinfo.productid == favitem) {
|
|
34829
|
+
cardobj.IsFavExists = true;
|
|
34830
|
+
}
|
|
34831
|
+
});
|
|
34832
|
+
}
|
|
34833
|
+
} else if (fetchingtype == 'collections' || fetchingtype == 'innerparentcollections') {
|
|
34834
|
+
cardobj.collectionid = arrayItem.collectionid;
|
|
34835
|
+
if (langdetect == 'en') {
|
|
34836
|
+
cardobj.name = arrayItem.title_en;
|
|
34837
|
+
cardobj.description = arrayItem.description_en;
|
|
34838
|
+
} else if (langdetect == 'ar') {
|
|
34839
|
+
cardobj.name = arrayItem.title_ar;
|
|
34840
|
+
cardobj.description = arrayItem.description_ar;
|
|
34841
|
+
}
|
|
34842
|
+
cardobj.image = arrayItem.collectionlogo;
|
|
34843
|
+
} else if (fetchingtype == 'categories') {
|
|
34844
|
+
cardobj.collectionid = arrayItem.categoryid;
|
|
34845
|
+
if (langdetect == 'en') {
|
|
34846
|
+
cardobj.name = arrayItem.title_en;
|
|
34847
|
+
cardobj.description = arrayItem.description_en;
|
|
34848
|
+
} else if (langdetect == 'ar') {
|
|
34849
|
+
cardobj.name = arrayItem.title_ar;
|
|
34850
|
+
cardobj.description = arrayItem.description_ar;
|
|
34851
|
+
}
|
|
34852
|
+
cardobj.image = arrayItem.categorylogo;
|
|
34853
|
+
} else if (fetchingtype == 'parentcollections' || fetchingtype == 'innercategories') {
|
|
34854
|
+
cardobj.collectionid = arrayItem.parentcollectionid;
|
|
34855
|
+
if (langdetect == 'en') {
|
|
34856
|
+
cardobj.name = arrayItem.title_en;
|
|
34857
|
+
cardobj.description = arrayItem.description_en;
|
|
34858
|
+
} else if (langdetect == 'ar') {
|
|
34859
|
+
cardobj.name = arrayItem.title_ar;
|
|
34860
|
+
cardobj.description = arrayItem.description_ar;
|
|
34861
|
+
}
|
|
34862
|
+
cardobj.image = arrayItem.parentcollectionlogo;
|
|
34863
|
+
} else if (fetchingtype == 'custom') ; else if (fetchingtype == 'vendors') {
|
|
34864
|
+
cardobj.name = arrayItem.vendorname;
|
|
34865
|
+
cardobj.collectionid = arrayItem.vendorid;
|
|
34866
|
+
cardobj.image = arrayItem.vendorlogourl;
|
|
34571
34867
|
}
|
|
34572
|
-
cardobj.image = arrayItem.collectionlogo;
|
|
34573
|
-
cardobj.collectionid = arrayItem.collectionid;
|
|
34574
34868
|
temparray.push(cardobj);
|
|
34575
34869
|
});
|
|
34576
34870
|
setcardsarray([].concat(temparray));
|
|
@@ -37247,22 +37541,24 @@ var BackgroundimageandTextsection = function BackgroundimageandTextsection(props
|
|
|
37247
37541
|
};
|
|
37248
37542
|
var Text1 = function Text1() {
|
|
37249
37543
|
return /*#__PURE__*/React.createElement("p", {
|
|
37250
|
-
"class": "p-0 wordbreak text-md-center",
|
|
37544
|
+
"class": "p-0 wordbreak text-md-center w-100",
|
|
37251
37545
|
style: {
|
|
37252
37546
|
fontWeight: sectionproperties.slideshowText1ContentFontWeight,
|
|
37253
37547
|
color: sectionproperties.slideshowText1ContentColor,
|
|
37254
37548
|
marginBottom: sectionproperties.slideshowText1Content_marginBottom + 'px',
|
|
37255
|
-
marginTop: sectionproperties.slideshowText1Content_marginTop + 'px'
|
|
37549
|
+
marginTop: sectionproperties.slideshowText1Content_marginTop + 'px',
|
|
37550
|
+
textAlign: sectionproperties.text1centered == 'Centered' ? 'center' : 'start'
|
|
37256
37551
|
}
|
|
37257
37552
|
}, langdetect == 'en' ? sectionproperties.slideshowText1Content : sectionproperties.slideshowText1Content_ar);
|
|
37258
37553
|
};
|
|
37259
37554
|
var Text2 = function Text2() {
|
|
37260
37555
|
return /*#__PURE__*/React.createElement("p", {
|
|
37261
|
-
"class": "p-0 wordbreak text-md-center",
|
|
37556
|
+
"class": "p-0 wordbreak text-md-center w-100",
|
|
37262
37557
|
style: {
|
|
37263
37558
|
fontWeight: sectionproperties.slideshowText2ContentFontWeight,
|
|
37264
37559
|
color: sectionproperties.slideshowText2ContentColor,
|
|
37265
|
-
marginBottom: sectionproperties.slideshowText2Content_marginBottom + 'px'
|
|
37560
|
+
marginBottom: sectionproperties.slideshowText2Content_marginBottom + 'px',
|
|
37561
|
+
textAlign: sectionproperties.text2centered == 'Centered' ? 'center' : 'start'
|
|
37266
37562
|
}
|
|
37267
37563
|
}, langdetect == 'en' ? sectionproperties.slideshowText2Content : sectionproperties.slideshowText2Content_Ar);
|
|
37268
37564
|
};
|
|
@@ -40395,19 +40691,19 @@ var Image_with_leftwords = function Image_with_leftwords(props) {
|
|
|
40395
40691
|
return /*#__PURE__*/React.createElement("div", {
|
|
40396
40692
|
"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',
|
|
40397
40693
|
style: {
|
|
40398
|
-
cursor: ((_imagesarray$ = imagesarray[0]) === null || _imagesarray$ === void 0 ? void 0 : _imagesarray$.
|
|
40694
|
+
cursor: ((_imagesarray$ = imagesarray[0]) === null || _imagesarray$ === void 0 ? void 0 : _imagesarray$.IsClickableimg) == 'Yes' ? 'pointer' : 'default',
|
|
40399
40695
|
background: sectionproperties.image_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.image_bgcolor
|
|
40400
40696
|
},
|
|
40401
40697
|
onClick: function onClick() {
|
|
40402
40698
|
var _imagesarray$2;
|
|
40403
|
-
if (((_imagesarray$2 = imagesarray[0]) === null || _imagesarray$2 === void 0 ? void 0 : _imagesarray$2.
|
|
40699
|
+
if (((_imagesarray$2 = imagesarray[0]) === null || _imagesarray$2 === void 0 ? void 0 : _imagesarray$2.IsClickableimg) == 'Yes') {
|
|
40404
40700
|
var _imagesarray$3, _imagesarray$4;
|
|
40405
|
-
if ((_imagesarray$3 = imagesarray[0]) !== null && _imagesarray$3 !== void 0 && _imagesarray$3.
|
|
40701
|
+
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) {
|
|
40406
40702
|
var _imagesarray$5;
|
|
40407
|
-
routingcountext((_imagesarray$5 = imagesarray[0]) === null || _imagesarray$5 === void 0 ? void 0 : _imagesarray$5.
|
|
40703
|
+
routingcountext((_imagesarray$5 = imagesarray[0]) === null || _imagesarray$5 === void 0 ? void 0 : _imagesarray$5.clickableimg_page_route, false, '');
|
|
40408
40704
|
} else {
|
|
40409
40705
|
var _imagesarray$6;
|
|
40410
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + ((_imagesarray$6 = imagesarray[0]) === null || _imagesarray$6 === void 0 ? void 0 : _imagesarray$6.
|
|
40706
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + ((_imagesarray$6 = imagesarray[0]) === null || _imagesarray$6 === void 0 ? void 0 : _imagesarray$6.Clickableimg_getcoection));
|
|
40411
40707
|
}
|
|
40412
40708
|
}
|
|
40413
40709
|
}
|
|
@@ -42389,8 +42685,7 @@ var Slideshowslide = function Slideshowslide(props) {
|
|
|
42389
42685
|
height: sectionproperties.bgcovercontain == 'Cover' ? sectionproperties.height + 'vh' : 'auto'
|
|
42390
42686
|
}
|
|
42391
42687
|
}, /*#__PURE__*/React.createElement("div", {
|
|
42392
|
-
|
|
42393
|
-
"class": 'p-0 align-items-center d-flex ',
|
|
42688
|
+
"class": 'p-0 align-items-center d-flex d-sm-none',
|
|
42394
42689
|
key: index,
|
|
42395
42690
|
onClick: function onClick() {
|
|
42396
42691
|
if (item.IsClickableimg == 'Yes') {
|
|
@@ -42419,6 +42714,28 @@ var Slideshowslide = function Slideshowslide(props) {
|
|
|
42419
42714
|
width: '100%',
|
|
42420
42715
|
height: '100%'
|
|
42421
42716
|
}
|
|
42717
|
+
}), SlideShowTextContainer(item)), /*#__PURE__*/React.createElement("div", {
|
|
42718
|
+
"class": 'p-0 align-items-center d-none d-sm-flex ',
|
|
42719
|
+
key: index,
|
|
42720
|
+
style: {
|
|
42721
|
+
width: '100%',
|
|
42722
|
+
height: '100%',
|
|
42723
|
+
direction: langdetect == 'en' ? 'ltr' : 'rtl',
|
|
42724
|
+
paddingTop: sectionproperties.paddingTop + 'px',
|
|
42725
|
+
paddingLeft: langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : '',
|
|
42726
|
+
paddingRight: langdetect == 'en' ? '' : sectionproperties.paddingLeft + 'px'
|
|
42727
|
+
}
|
|
42728
|
+
}, /*#__PURE__*/React.createElement(Imagekitimagecomp, {
|
|
42729
|
+
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
42730
|
+
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
42731
|
+
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,
|
|
42732
|
+
style: {
|
|
42733
|
+
objectFit: 'contain',
|
|
42734
|
+
margin: 0,
|
|
42735
|
+
padding: 0,
|
|
42736
|
+
width: '100%',
|
|
42737
|
+
height: '100%'
|
|
42738
|
+
}
|
|
42422
42739
|
}), SlideShowTextContainer(item)));
|
|
42423
42740
|
}))))));
|
|
42424
42741
|
};
|
|
@@ -42436,14 +42753,21 @@ var Slideshowslide = function Slideshowslide(props) {
|
|
|
42436
42753
|
}, /*#__PURE__*/React.createElement("div", {
|
|
42437
42754
|
"class": "col-lg-12 p-0"
|
|
42438
42755
|
}, /*#__PURE__*/React.createElement("div", {
|
|
42439
|
-
|
|
42440
|
-
"class": "row m-0 w-100 d-flex",
|
|
42756
|
+
"class": "row m-0 w-100 d-flex d-md-none",
|
|
42441
42757
|
style: {
|
|
42442
42758
|
paddingTop: sectionproperties.marginTop + 'px'
|
|
42443
42759
|
},
|
|
42444
42760
|
onMouseLeave: function onMouseLeave() {
|
|
42445
42761
|
setChoosenindex('');
|
|
42446
42762
|
}
|
|
42763
|
+
}, SlideshowContent()), /*#__PURE__*/React.createElement("div", {
|
|
42764
|
+
"class": "row m-0 w-100 d-none d-md-flex",
|
|
42765
|
+
style: {
|
|
42766
|
+
paddingTop: sectionproperties.marginTopResp + 'px'
|
|
42767
|
+
},
|
|
42768
|
+
onMouseLeave: function onMouseLeave() {
|
|
42769
|
+
setChoosenindex('');
|
|
42770
|
+
}
|
|
42447
42771
|
}, SlideshowContent())));
|
|
42448
42772
|
};
|
|
42449
42773
|
|
|
@@ -47598,7 +47922,6 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
|
|
|
47598
47922
|
borderRadius: sectionproperties.fav_btn_borderBottomLeftRadius + 'px',
|
|
47599
47923
|
color: sectionproperties.favBtniconcolor,
|
|
47600
47924
|
fontSize: sectionproperties.favBtnTextfontsize + 'px',
|
|
47601
|
-
textTransform: sectionproperties.favBtnTexttransform,
|
|
47602
47925
|
fontWeight: sectionproperties.favBtnTextfontweight,
|
|
47603
47926
|
transition: '.3s',
|
|
47604
47927
|
border: sectionproperties.favbtnborderwidth + 'px solid ' + sectionproperties.favbtnbordercolor,
|
|
@@ -47630,7 +47953,8 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
|
|
|
47630
47953
|
borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
47631
47954
|
borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
|
|
47632
47955
|
borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
|
|
47633
|
-
background: sectionproperties.image_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.image_bgcolor
|
|
47956
|
+
background: sectionproperties.image_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.image_bgcolor,
|
|
47957
|
+
opacity: item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' ? 0.4 : 1
|
|
47634
47958
|
}),
|
|
47635
47959
|
quantitybtn: css({
|
|
47636
47960
|
flex: 1,
|
|
@@ -47685,6 +48009,21 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
|
|
|
47685
48009
|
color: sectionproperties.remove_quantitybtn_textcoloronhover,
|
|
47686
48010
|
background: sectionproperties.remove_quantitybtn_bgcoloronhover
|
|
47687
48011
|
}
|
|
48012
|
+
}),
|
|
48013
|
+
outstockbadge: css({
|
|
48014
|
+
width: sectionproperties.outstock_width + 'px',
|
|
48015
|
+
height: sectionproperties.outstock_height + 'px',
|
|
48016
|
+
background: sectionproperties.outstock_bg,
|
|
48017
|
+
color: sectionproperties.outstock_color,
|
|
48018
|
+
fontSize: sectionproperties.outstock_fontSize + 'px',
|
|
48019
|
+
borderRadius: sectionproperties.outstock_borderradius + 'px',
|
|
48020
|
+
position: 'absolute',
|
|
48021
|
+
zIndex: 2,
|
|
48022
|
+
top: 0,
|
|
48023
|
+
bottom: 0,
|
|
48024
|
+
left: 0,
|
|
48025
|
+
right: 0,
|
|
48026
|
+
margin: 'auto'
|
|
47688
48027
|
})
|
|
47689
48028
|
};
|
|
47690
48029
|
var addtocartbuttonrender = function addtocartbuttonrender() {
|
|
@@ -47744,7 +48083,7 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
|
|
|
47744
48083
|
size: sectionproperties.cartBtn_iconFontSize
|
|
47745
48084
|
}), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React.createElement(MdAddShoppingCart, {
|
|
47746
48085
|
size: sectionproperties.cartBtn_iconFontSize
|
|
47747
|
-
})),
|
|
48086
|
+
})), langdetect == 'en' ? sectionproperties.cartBtnContentenglish : sectionproperties.cartBtnContentarabic);
|
|
47748
48087
|
}
|
|
47749
48088
|
};
|
|
47750
48089
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -47760,7 +48099,10 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
|
|
|
47760
48099
|
}, /*#__PURE__*/React.createElement("div", {
|
|
47761
48100
|
"class": "".concat(cardsstyles$4.card_inner)
|
|
47762
48101
|
}, /*#__PURE__*/React.createElement("div", {
|
|
47763
|
-
"class": "".concat(cardsstyles$4.card_thumbnail)
|
|
48102
|
+
"class": "".concat(cardsstyles$4.card_thumbnail),
|
|
48103
|
+
style: {
|
|
48104
|
+
position: 'relative'
|
|
48105
|
+
}
|
|
47764
48106
|
}, /*#__PURE__*/React.createElement("div", {
|
|
47765
48107
|
"class": "".concat(cardsstyles$4.img_container, " ").concat(cardsstyles2.img_container) + ' w-100 allcentered ',
|
|
47766
48108
|
onClick: function onClick() {
|
|
@@ -47834,7 +48176,11 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
|
|
|
47834
48176
|
color: sectionproperties.badge_color,
|
|
47835
48177
|
fontSize: sectionproperties.badge_fontsize + 'px'
|
|
47836
48178
|
}
|
|
47837
|
-
}, langdetect == 'en' ? sectionproperties.badgeContentEn : sectionproperties.badgeContentAr))
|
|
48179
|
+
}, langdetect == 'en' ? sectionproperties.badgeContentEn : sectionproperties.badgeContentAr)), item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && /*#__PURE__*/React.createElement("div", {
|
|
48180
|
+
"class": "".concat(cardsstyles2.outstockbadge) + ' allcentered '
|
|
48181
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
48182
|
+
"class": "m-0 p-0"
|
|
48183
|
+
}, langdetect == 'en' ? sectionproperties.outstock_contenten : sectionproperties.outstock_contentar))), /*#__PURE__*/React.createElement("div", {
|
|
47838
48184
|
"class": "".concat(cardsstyles$4.product_details) + ' mb-2 '
|
|
47839
48185
|
}, sectionproperties.prodNameShow == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
47840
48186
|
"class": "col-lg-12"
|
|
@@ -47870,7 +48216,9 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
|
|
|
47870
48216
|
transform: ' rotate(-180deg)'
|
|
47871
48217
|
},
|
|
47872
48218
|
onClick: function onClick() {
|
|
47873
|
-
if (item.
|
|
48219
|
+
if (item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit') {
|
|
48220
|
+
NotificationManager.warning('', langdetect == 'en' ? 'Sold Out' : 'نفذت الكمية');
|
|
48221
|
+
} else if (item.hasvariants == 0) {
|
|
47874
48222
|
updatequantity('remove');
|
|
47875
48223
|
} else {
|
|
47876
48224
|
setShowProductInfoModalContext(true);
|
|
@@ -47882,7 +48230,9 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
|
|
|
47882
48230
|
})), langdetect == 'ar' && /*#__PURE__*/React.createElement("span", {
|
|
47883
48231
|
"class": "".concat(cardsstyles2.add_quantitybtn_icon_container) + ' m-1 ',
|
|
47884
48232
|
onClick: function onClick() {
|
|
47885
|
-
if (item.
|
|
48233
|
+
if (item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit') {
|
|
48234
|
+
NotificationManager.warning('', langdetect == 'en' ? 'Sold Out' : 'نفذت الكمية');
|
|
48235
|
+
} else if (item.hasvariants == 0) {
|
|
47886
48236
|
updatequantity('add');
|
|
47887
48237
|
} else {
|
|
47888
48238
|
setShowProductInfoModalContext(true);
|
|
@@ -47899,7 +48249,9 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
|
|
|
47899
48249
|
transform: ' rotate(-180deg)'
|
|
47900
48250
|
},
|
|
47901
48251
|
onClick: function onClick() {
|
|
47902
|
-
if (item.
|
|
48252
|
+
if (item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit') {
|
|
48253
|
+
NotificationManager.warning('', langdetect == 'en' ? 'Sold Out' : 'نفذت الكمية');
|
|
48254
|
+
} else if (item.hasvariants == 0) {
|
|
47903
48255
|
updatequantity('remove');
|
|
47904
48256
|
} else {
|
|
47905
48257
|
setShowProductInfoModalContext(true);
|
|
@@ -47911,7 +48263,9 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
|
|
|
47911
48263
|
})), langdetect == 'en' && /*#__PURE__*/React.createElement("span", {
|
|
47912
48264
|
"class": "".concat(cardsstyles2.add_quantitybtn_icon_container) + ' m-1 ',
|
|
47913
48265
|
onClick: function onClick() {
|
|
47914
|
-
if (item.
|
|
48266
|
+
if (item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit') {
|
|
48267
|
+
NotificationManager.warning('', langdetect == 'en' ? 'Sold Out' : 'نفذت الكمية');
|
|
48268
|
+
} else if (item.hasvariants == 0) {
|
|
47915
48269
|
updatequantity('add');
|
|
47916
48270
|
} else {
|
|
47917
48271
|
setShowProductInfoModalContext(true);
|
|
@@ -49656,11 +50010,11 @@ var Horizontalcard = function Horizontalcard(props) {
|
|
|
49656
50010
|
setShowProductInfoModalContext(true);
|
|
49657
50011
|
setProductIdProdutInfoModalContext(item.productid);
|
|
49658
50012
|
}
|
|
49659
|
-
}, langdetect == 'en' ? sectionproperties.cartBtnContentenglish : sectionproperties.cartBtnContentarabic)), /*#__PURE__*/React.createElement("div", {
|
|
50013
|
+
}, langdetect == 'en' ? sectionproperties.cartBtnContentenglish : sectionproperties.cartBtnContentarabic)), item.isproducttobesold == 1 && /*#__PURE__*/React.createElement("div", {
|
|
49660
50014
|
"class": "col-lg-12 p-0 d-flex align-items-center"
|
|
49661
50015
|
}, sectionproperties.prodPriceShow == 'Show' && /*#__PURE__*/React.createElement("p", {
|
|
49662
50016
|
"class": card_cssstyles.productPricestyles + ' m-0 p-0 '
|
|
49663
|
-
}, langdetect == 'en' ? item.currencyname : '', " ", item.hassale == 1 ? item.defaultsaleprice : item.defaultprice,
|
|
50017
|
+
}, langdetect == 'en' ? item.currencyname : '', " ", item.hassale == 1 ? item.defaultsaleprice : item.defaultprice, ' ', langdetect == 'en' ? '' : item.currencyname), item.hassale == 1 && sectionproperties.prodsalePriceshow == 'Show' && /*#__PURE__*/React.createElement("p", {
|
|
49664
50018
|
"class": card_cssstyles.productSalePricestyles + ' m-0 p-0 ml-2 mr-2 ',
|
|
49665
50019
|
style: {
|
|
49666
50020
|
textDecoration: 'line-through'
|
|
@@ -52085,8 +52439,8 @@ var Productcard_with_slideanimation = function Productcard_with_slideanimation(p
|
|
|
52085
52439
|
path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_w + '/' + item.image,
|
|
52086
52440
|
loading: "lazy",
|
|
52087
52441
|
style: {
|
|
52088
|
-
width: '
|
|
52089
|
-
height: '
|
|
52442
|
+
width: sectionproperties.imageInnerWidth_Height + '%',
|
|
52443
|
+
height: sectionproperties.imageInnerWidth_Height + '%',
|
|
52090
52444
|
objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain',
|
|
52091
52445
|
background: sectionproperties.image_bgcolortransparent == 'Transparent' ? '' : sectionproperties.image_bgcolor,
|
|
52092
52446
|
border: sectionproperties.image_borderwidth + 'px solid ' + sectionproperties.image_bordercolor,
|
|
@@ -53907,7 +54261,7 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
53907
54261
|
borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
|
|
53908
54262
|
borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
|
|
53909
54263
|
transition: '.3s',
|
|
53910
|
-
opacity: item.productquantity < 1 ? 0.4 : 1
|
|
54264
|
+
opacity: item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' ? 0.4 : 1
|
|
53911
54265
|
}),
|
|
53912
54266
|
productNameStyles: css({
|
|
53913
54267
|
color: sectionproperties.prodNameColor,
|
|
@@ -54099,7 +54453,7 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
54099
54453
|
height: sectionproperties.imageInnerWidth_Height + '%',
|
|
54100
54454
|
objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain'
|
|
54101
54455
|
}
|
|
54102
|
-
})), item.productquantity < 1 && /*#__PURE__*/React.createElement("div", {
|
|
54456
|
+
})), item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && /*#__PURE__*/React.createElement("div", {
|
|
54103
54457
|
"class": "".concat(card_cssstyles.outstockbadge) + ' allcentered '
|
|
54104
54458
|
}, /*#__PURE__*/React.createElement("p", {
|
|
54105
54459
|
"class": "m-0 p-0"
|
|
@@ -54132,7 +54486,7 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
54132
54486
|
}, langdetect == 'en' ? 'EGP' : '', " ", item.defaultprice, " ", langdetect == 'en' ? '' : 'ج.م'))))), sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React.createElement("p", {
|
|
54133
54487
|
"class": "".concat(card_cssstyles.cart_btn) + ' m-0 p-0 d-flex align-items-center justify-content-center mt-1 ',
|
|
54134
54488
|
onClick: function onClick() {
|
|
54135
|
-
if (item.productquantity
|
|
54489
|
+
if (item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit') {
|
|
54136
54490
|
setShowProductInfoModalContext(true);
|
|
54137
54491
|
setProductIdProdutInfoModalContext(item.productid);
|
|
54138
54492
|
} else {
|