tabexseriescomponents 0.0.265 → 0.0.266
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 +410 -98
- package/dist/index.esm.js +410 -98
- package/dist/index.umd.js +410 -98
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -11438,6 +11438,7 @@ var CardsSection = function CardsSection(props) {
|
|
|
11438
11438
|
cardobj.quantity = itemquantity;
|
|
11439
11439
|
cardobj.timestamp = arrayItem.productinfo.timestamp;
|
|
11440
11440
|
cardobj.productquantity = arrayItem.productinfo.productquantity;
|
|
11441
|
+
cardobj.quantavailtype = arrayItem.productinfo.quantavailtype;
|
|
11441
11442
|
if (langdetect == 'en') {
|
|
11442
11443
|
cardobj.currencyname = fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 ? void 0 : fetchAuthorizationQueryContext.data.data.currencyname_en;
|
|
11443
11444
|
} else {
|
|
@@ -11821,19 +11822,24 @@ var CardsSection = function CardsSection(props) {
|
|
|
11821
11822
|
} else {
|
|
11822
11823
|
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
|
|
11823
11824
|
}
|
|
11825
|
+
},
|
|
11826
|
+
style: {
|
|
11827
|
+
flexDirection: 'row'
|
|
11824
11828
|
}
|
|
11825
|
-
},
|
|
11829
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
11826
11830
|
"class": sectionproperties.sectiontitleposition == 'Centered' ? 'd-flex justify-content-center align-items-center' : 'd-flex justify-content-center align-items-center d-md-none'
|
|
11827
11831
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
11828
11832
|
"class": sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : ''
|
|
11829
|
-
}, langdetect == 'en' ? sectionproperties.viewmorebtn_text : sectionproperties.viewmorebtn_text_ar)
|
|
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
|
-
|
|
11832
|
-
|
|
11833
|
+
}, langdetect == 'en' ? sectionproperties.viewmorebtn_text : sectionproperties.viewmorebtn_text_ar), sectionproperties.showIcon == 'Show' && /*#__PURE__*/React__default["default"].createElement("i", {
|
|
11834
|
+
"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',
|
|
11835
|
+
style: {
|
|
11836
|
+
marginLeft: 5,
|
|
11837
|
+
marginRight: 5
|
|
11838
|
+
}
|
|
11833
11839
|
}, langdetect == 'en' ? /*#__PURE__*/React__default["default"].createElement(HiOutlineArrowRight.HiOutlineArrowRight, {
|
|
11834
|
-
size: sectionproperties.
|
|
11840
|
+
size: sectionproperties.viewmoreiconfontsize
|
|
11835
11841
|
}) : /*#__PURE__*/React__default["default"].createElement(HiOutlineArrowLeft.HiOutlineArrowLeft, {
|
|
11836
|
-
size: sectionproperties.
|
|
11842
|
+
size: sectionproperties.viewmoreiconfontsize
|
|
11837
11843
|
}))), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
11838
11844
|
"class": sectionproperties.sectiontitleposition == 'Centered' ? 'd-none align-items-center justify-content-center' : 'd-none d-md-flex align-items-center justify-content-center'
|
|
11839
11845
|
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
@@ -23921,7 +23927,7 @@ styleInject(css_248z$o);
|
|
|
23921
23927
|
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
23928
|
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
23929
|
var SearchFocusedHeader = function SearchFocusedHeader(props) {
|
|
23924
|
-
var _css, _authdetailsContext$i3, _authdetailsContext$i4, _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$c, _authdetailsContext$
|
|
23930
|
+
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
23931
|
var lang = props.actions.lang;
|
|
23926
23932
|
var langdetect = props.actions.langdetect;
|
|
23927
23933
|
var setlang = props.actions.setlang;
|
|
@@ -24388,35 +24394,35 @@ var SearchFocusedHeader = function SearchFocusedHeader(props) {
|
|
|
24388
24394
|
"class": "col-lg-3 d-flex align-items-center p-0"
|
|
24389
24395
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
24390
24396
|
"class": "row m-0 d-flex justify-content-end w-100"
|
|
24391
|
-
}, sectionproperties.fbbtn_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
24397
|
+
}, 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
24398
|
"class": header_cssstyles.fbbtn + ' p-0 allcentered cursor-pointer ',
|
|
24393
24399
|
onClick: function onClick() {
|
|
24394
|
-
var _authdetailsContext$
|
|
24395
|
-
if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$
|
|
24396
|
-
var _authdetailsContext$
|
|
24397
|
-
window.open(authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$
|
|
24400
|
+
var _authdetailsContext$i6;
|
|
24401
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i6 = authdetailsContext.instinfo) === null || _authdetailsContext$i6 === void 0 ? void 0 : _authdetailsContext$i6.facebooklink) != null) {
|
|
24402
|
+
var _authdetailsContext$i7;
|
|
24403
|
+
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
24404
|
}
|
|
24399
24405
|
}
|
|
24400
24406
|
}, /*#__PURE__*/React__default["default"].createElement(FaFacebookF.FaFacebookF, {
|
|
24401
24407
|
size: sectionproperties.facebkbtnniconfontsize
|
|
24402
|
-
})), sectionproperties.youtbtn_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
24408
|
+
})), 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
24409
|
"class": header_cssstyles.whatsappbtn + ' p-0 allcentered cursor-pointer ',
|
|
24404
24410
|
onClick: function onClick() {
|
|
24405
|
-
var _authdetailsContext$
|
|
24406
|
-
if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$
|
|
24407
|
-
var _authdetailsContext$
|
|
24408
|
-
window.open('https://api.whatsapp.com/send?phone=' + (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$
|
|
24411
|
+
var _authdetailsContext$i9;
|
|
24412
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i9 = authdetailsContext.instinfo) === null || _authdetailsContext$i9 === void 0 ? void 0 : _authdetailsContext$i9.whatsappnumber) != null) {
|
|
24413
|
+
var _authdetailsContext$i10;
|
|
24414
|
+
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
24415
|
}
|
|
24410
24416
|
}
|
|
24411
24417
|
}, /*#__PURE__*/React__default["default"].createElement(FaWhatsapp.FaWhatsapp, {
|
|
24412
24418
|
size: sectionproperties.youtubebtniconfontsize
|
|
24413
|
-
})), sectionproperties.instbtn_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
24419
|
+
})), 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
24420
|
"class": header_cssstyles.instagrambtn + ' p-0 allcentered cursor-pointer ',
|
|
24415
24421
|
onClick: function onClick() {
|
|
24416
|
-
var _authdetailsContext$
|
|
24417
|
-
if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$
|
|
24418
|
-
var _authdetailsContext$
|
|
24419
|
-
window.open(authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$
|
|
24422
|
+
var _authdetailsContext$i12;
|
|
24423
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i12 = authdetailsContext.instinfo) === null || _authdetailsContext$i12 === void 0 ? void 0 : _authdetailsContext$i12.instagramlink) != null) {
|
|
24424
|
+
var _authdetailsContext$i13;
|
|
24425
|
+
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
24426
|
}
|
|
24421
24427
|
}
|
|
24422
24428
|
}, /*#__PURE__*/React__default["default"].createElement(AiOutlineInstagram.AiOutlineInstagram, {
|
|
@@ -24537,7 +24543,7 @@ var SearchFocusedHeader = function SearchFocusedHeader(props) {
|
|
|
24537
24543
|
onClick: function onClick() {
|
|
24538
24544
|
routingcountext(StaticPagesLinksContext.accountinfo);
|
|
24539
24545
|
}
|
|
24540
|
-
}, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$
|
|
24546
|
+
}, 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
24547
|
onClick: function onClick() {
|
|
24542
24548
|
routingcountext(StaticPagesLinksContext.Ordershistory);
|
|
24543
24549
|
}
|
|
@@ -24713,7 +24719,7 @@ var SearchFocusedHeader = function SearchFocusedHeader(props) {
|
|
|
24713
24719
|
minWidth: '250px',
|
|
24714
24720
|
marginLeft: '0px'
|
|
24715
24721
|
}
|
|
24716
|
-
}, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$
|
|
24722
|
+
}, 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
24723
|
return /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Item, {
|
|
24718
24724
|
onClick: function onClick() {
|
|
24719
24725
|
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.collectionid);
|
|
@@ -34519,105 +34525,381 @@ var ElegantCategoriesCardSection = function ElegantCategoriesCardSection(props)
|
|
|
34519
34525
|
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
34526
|
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
34527
|
var RandomlyStructuredCollectionCards = function RandomlyStructuredCollectionCards(props) {
|
|
34522
|
-
var
|
|
34523
|
-
_useInView.ref;
|
|
34524
|
-
var inView = _useInView.inView;
|
|
34528
|
+
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
34525
34529
|
props.actions.lang;
|
|
34526
34530
|
var langdetect = props.actions.langdetect;
|
|
34527
|
-
var
|
|
34531
|
+
var fetchcustomercartQueryContext = props.actions.fetchcustomercartQueryContext;
|
|
34532
|
+
var favoriteprojectscountContext = props.actions.favoriteprojectscountContext;
|
|
34533
|
+
var routingcountext = props.actions.routingcountext;
|
|
34534
|
+
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
34535
|
+
var ProductFilterObjContext = props.actions.ProductFilterObjContext;
|
|
34536
|
+
var setProductFilterObjContext = props.actions.setProductFilterObjContext;
|
|
34528
34537
|
props.actions.TabexSectionsComponentsContext;
|
|
34529
|
-
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
34530
|
-
var fetchcollectionsQueryContext = props.actions.fetchcollectionsQueryContext;
|
|
34531
34538
|
var FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
|
|
34532
34539
|
var setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
|
|
34533
|
-
var
|
|
34534
|
-
var
|
|
34540
|
+
var fetchProductsQuery = props.actions.fetchProductsQuery;
|
|
34541
|
+
var fetchcollectionsQueryContext = props.actions.fetchcollectionsQueryContext;
|
|
34542
|
+
var setParentCollectionsForCollectionQueryArr = props.actions.setParentCollectionsForCollectionQueryArr;
|
|
34543
|
+
props.actions.ParentCollectionsForCollectionQueryArr;
|
|
34535
34544
|
var setfetchingtype = props.actions.setfetchingtype;
|
|
34536
34545
|
var fetchingtype = props.actions.fetchingtype;
|
|
34546
|
+
props.actions.addtofavoritescontext;
|
|
34547
|
+
var fetchAuthorizationQueryContext = props.actions.fetchAuthorizationQueryContext;
|
|
34548
|
+
var FetchVendorsQuery = props.actions.FetchVendorsQuery;
|
|
34537
34549
|
var ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
34550
|
+
var _useState = React.useState(false),
|
|
34551
|
+
_useState2 = _slicedToArray__default["default"](_useState, 2);
|
|
34552
|
+
_useState2[0];
|
|
34553
|
+
_useState2[1];
|
|
34538
34554
|
props.actions;
|
|
34539
|
-
var
|
|
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([]),
|
|
34555
|
+
var _useState3 = React.useState(''),
|
|
34546
34556
|
_useState4 = _slicedToArray__default["default"](_useState3, 2),
|
|
34547
|
-
|
|
34548
|
-
|
|
34549
|
-
var _useState5 = React.useState(
|
|
34557
|
+
sectionproperties = _useState4[0],
|
|
34558
|
+
setsectionproperties = _useState4[1];
|
|
34559
|
+
var _useState5 = React.useState([]),
|
|
34560
|
+
_useState6 = _slicedToArray__default["default"](_useState5, 2),
|
|
34561
|
+
cardsarray = _useState6[0],
|
|
34562
|
+
setcardsarray = _useState6[1];
|
|
34563
|
+
var _useState7 = React.useState(''),
|
|
34564
|
+
_useState8 = _slicedToArray__default["default"](_useState7, 2),
|
|
34565
|
+
sectionitem = _useState8[0],
|
|
34566
|
+
setsectionitem = _useState8[1];
|
|
34567
|
+
var _useState9 = React.useState({
|
|
34550
34568
|
productfetchingtype: 'Random',
|
|
34551
|
-
collectionid: ''
|
|
34569
|
+
collectionid: '',
|
|
34570
|
+
grouptype: ''
|
|
34552
34571
|
}),
|
|
34553
|
-
|
|
34554
|
-
ProductsFetchingTypeSectionObj =
|
|
34555
|
-
setProductsFetchingTypeSectionObj =
|
|
34556
|
-
|
|
34557
|
-
|
|
34558
|
-
|
|
34559
|
-
|
|
34560
|
-
|
|
34572
|
+
_useState10 = _slicedToArray__default["default"](_useState9, 2),
|
|
34573
|
+
ProductsFetchingTypeSectionObj = _useState10[0],
|
|
34574
|
+
setProductsFetchingTypeSectionObj = _useState10[1];
|
|
34575
|
+
var _useState11 = React.useState([]),
|
|
34576
|
+
_useState12 = _slicedToArray__default["default"](_useState11, 2);
|
|
34577
|
+
_useState12[0];
|
|
34578
|
+
var setmaincontainerarrayofobjs = _useState12[1];
|
|
34579
|
+
// React.useEffect(() => {
|
|
34580
|
+
// if (inView) {
|
|
34581
|
+
// fetchProductsQuery.fetchNextPage();
|
|
34582
|
+
// }
|
|
34583
|
+
// }, [inView]);
|
|
34561
34584
|
React.useEffect(function () {
|
|
34585
|
+
var productfilerobjtemp = ProductFilterObjContext;
|
|
34586
|
+
if (props.filterparamsprops != undefined) {
|
|
34587
|
+
var filterpar = decodeURIComponent(props.filterparamsprops);
|
|
34588
|
+
var filterparsed = JSON.parse(filterpar);
|
|
34589
|
+
if (filterparsed != undefined) {
|
|
34590
|
+
productfilerobjtemp = filterparsed;
|
|
34591
|
+
setProductFilterObjContext(filterparsed);
|
|
34592
|
+
}
|
|
34593
|
+
}
|
|
34562
34594
|
StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
|
|
34563
34595
|
if (sectionitem.sectionid == props.sectionidprops) {
|
|
34564
34596
|
var secpropobj = {};
|
|
34597
|
+
setsectionitem(sectionitem);
|
|
34565
34598
|
sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
|
|
34566
34599
|
secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
|
|
34567
34600
|
});
|
|
34568
34601
|
setsectionproperties(_objectSpread$19({}, secpropobj));
|
|
34569
|
-
|
|
34570
|
-
|
|
34571
|
-
|
|
34572
|
-
|
|
34573
|
-
|
|
34602
|
+
if (props.srcfromprops == 'GeneralProductsComponent') {
|
|
34603
|
+
setfetchingtype('products');
|
|
34604
|
+
var lcproductfetchingtype = 'Random';
|
|
34605
|
+
if (productfilerobjtemp.ProductFetchingType != undefined && productfilerobjtemp.ProductFetchingType != null && productfilerobjtemp.ProductFetchingType.length != 0) {
|
|
34606
|
+
lcproductfetchingtype = productfilerobjtemp.ProductFetchingType;
|
|
34607
|
+
}
|
|
34608
|
+
setProductsFetchingTypeSectionObj({
|
|
34609
|
+
productfetchingtype: lcproductfetchingtype,
|
|
34610
|
+
collectionid: props.collectionidprops,
|
|
34611
|
+
grouptype: props.grouptypeprops,
|
|
34612
|
+
grouptyperefid: props.grouptyperefidprops
|
|
34613
|
+
});
|
|
34614
|
+
} else if (props.srcfromprops == 'InnerGroups' || props.srcfromprops == 'InnerCategory' || props.srcfromprops == 'InnerParentCollection') {
|
|
34615
|
+
setfetchingtype(props.grouptypeprops);
|
|
34616
|
+
} else {
|
|
34617
|
+
setfetchingtype(sectionitem.fetchingtype);
|
|
34618
|
+
setProductsFetchingTypeSectionObj({
|
|
34619
|
+
productfetchingtype: sectionitem.productsfetchingtype,
|
|
34620
|
+
collectionid: sectionitem.productsfetchingtypeCollectioncollectionid,
|
|
34621
|
+
grouptype: props.grouptypeprops,
|
|
34622
|
+
grouptyperefid: props.grouptyperefidprops
|
|
34623
|
+
});
|
|
34624
|
+
}
|
|
34574
34625
|
}
|
|
34575
34626
|
});
|
|
34576
34627
|
}, [StatePagePropertiesContext]);
|
|
34577
34628
|
React.useEffect(function () {
|
|
34578
34629
|
if (sectionproperties.length != 0) {
|
|
34579
34630
|
if (cardsarray.length == 0) {
|
|
34580
|
-
if (
|
|
34581
|
-
|
|
34631
|
+
if (fetchingtype == 'collections') {
|
|
34632
|
+
if (fetchcollectionsQueryContext.isSuccess) {
|
|
34633
|
+
cardobjassigner(fetchcollectionsQueryContext.data.data.collections);
|
|
34634
|
+
}
|
|
34635
|
+
} else if (fetchingtype == 'products') {
|
|
34636
|
+
if (fetchProductsQuery.isSuccess) {
|
|
34637
|
+
var _fetchProductsQuery$d, _fetchProductsQuery$d2, _fetchProductsQuery$d3;
|
|
34638
|
+
var allpagesarr = [];
|
|
34639
|
+
// fetchProductsQuery.data.pages.forEach((page) => {
|
|
34640
|
+
// page.data.products.forEach((productobj) => {
|
|
34641
|
+
// allpagesarr.push(productobj);
|
|
34642
|
+
// });
|
|
34643
|
+
// });
|
|
34644
|
+
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) {
|
|
34645
|
+
allpagesarr.push(item);
|
|
34646
|
+
});
|
|
34647
|
+
cardobjassigner(allpagesarr);
|
|
34648
|
+
}
|
|
34649
|
+
} else if (fetchingtype == 'vendors') {
|
|
34650
|
+
if (FetchVendorsQuery.isSuccess) {
|
|
34651
|
+
var _FetchVendorsQuery$da, _FetchVendorsQuery$da2;
|
|
34652
|
+
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);
|
|
34653
|
+
}
|
|
34582
34654
|
}
|
|
34583
34655
|
}
|
|
34584
34656
|
}
|
|
34585
34657
|
}, [sectionproperties]);
|
|
34586
34658
|
React.useEffect(function () {
|
|
34587
|
-
if (fetchingtype.length != 0) {
|
|
34659
|
+
if ((fetchingtype === null || fetchingtype === void 0 ? void 0 : fetchingtype.length) != 0) {
|
|
34588
34660
|
var tempFetchQueriesEngineContext = FetchQueriesEngineContext;
|
|
34589
|
-
if (
|
|
34590
|
-
|
|
34591
|
-
|
|
34592
|
-
|
|
34661
|
+
if (fetchingtype == 'collections') {
|
|
34662
|
+
if (ProductsFetchingTypeSectionObj.collectionid == 'all' || ProductsFetchingTypeSectionObj.collectionid == null || ProductsFetchingTypeSectionObj.collectionid == undefined) {
|
|
34663
|
+
setParentCollectionsForCollectionQueryArr('all');
|
|
34664
|
+
} else {
|
|
34665
|
+
setParentCollectionsForCollectionQueryArr([ProductsFetchingTypeSectionObj.collectionid]);
|
|
34666
|
+
}
|
|
34667
|
+
}
|
|
34668
|
+
if (fetchingtype == 'products') {
|
|
34669
|
+
var tempfetchproductsfilerobjcontext = ProductFilterObjContext;
|
|
34670
|
+
tempfetchproductsfilerobjcontext.ProductFetchingType = ProductsFetchingTypeSectionObj.productfetchingtype;
|
|
34671
|
+
if (ProductsFetchingTypeSectionObj.grouptype == 'collections' || ProductsFetchingTypeSectionObj.grouptype == 'categories' || ProductsFetchingTypeSectionObj.grouptype == 'parentcollections') ; else {
|
|
34672
|
+
if (tempfetchproductsfilerobjcontext.collections != undefined) {
|
|
34673
|
+
tempfetchproductsfilerobjcontext.collections.push(ProductsFetchingTypeSectionObj.collectionid);
|
|
34674
|
+
}
|
|
34675
|
+
}
|
|
34676
|
+
tempfetchproductsfilerobjcontext.grouptype = ProductsFetchingTypeSectionObj.grouptype;
|
|
34677
|
+
tempfetchproductsfilerobjcontext.grouptyperefid = ProductsFetchingTypeSectionObj.grouptyperefid;
|
|
34678
|
+
setProductFilterObjContext(_objectSpread$19({}, tempfetchproductsfilerobjcontext));
|
|
34679
|
+
}
|
|
34680
|
+
if (fetchingtype == 'categories') {
|
|
34681
|
+
if (fetchAuthorizationQueryContext !== null && fetchAuthorizationQueryContext !== void 0 && fetchAuthorizationQueryContext.isSuccess) {
|
|
34682
|
+
var categories = fetchAuthorizationQueryContext.data.data.instinfo.instcategories;
|
|
34683
|
+
cardobjassigner(categories);
|
|
34684
|
+
}
|
|
34685
|
+
}
|
|
34686
|
+
if (fetchingtype == 'parentcollections' || fetchingtype == 'innercategories') {
|
|
34687
|
+
if (fetchAuthorizationQueryContext !== null && fetchAuthorizationQueryContext !== void 0 && fetchAuthorizationQueryContext.isSuccess) {
|
|
34688
|
+
var _categories;
|
|
34689
|
+
var categories = fetchAuthorizationQueryContext.data.data.instinfo.instcategories;
|
|
34690
|
+
var parentcollections = [];
|
|
34691
|
+
(_categories = categories) === null || _categories === void 0 ? void 0 : _categories.forEach(function (catitem, catindex) {
|
|
34692
|
+
catitem === null || catitem === void 0 ? void 0 : catitem.parentcolletions.forEach(function (parentcolitem) {
|
|
34693
|
+
parentcolitem.categoryid = catitem.categoryid;
|
|
34694
|
+
parentcollections.push(parentcolitem);
|
|
34695
|
+
});
|
|
34696
|
+
});
|
|
34697
|
+
if (fetchingtype == 'parentcollections') {
|
|
34698
|
+
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') {
|
|
34699
|
+
var arrafterfilter = [];
|
|
34700
|
+
parentcollections.forEach(function (parentcolitem, parcolindex) {
|
|
34701
|
+
if (parentcolitem.categoryid == (sectionitem === null || sectionitem === void 0 ? void 0 : sectionitem.productsfetchingtypeparentcollectioncategoryid)) {
|
|
34702
|
+
arrafterfilter.push(parentcolitem);
|
|
34703
|
+
}
|
|
34704
|
+
});
|
|
34705
|
+
parentcollections = arrafterfilter;
|
|
34706
|
+
}
|
|
34707
|
+
}
|
|
34708
|
+
if (fetchingtype == 'innercategories') {
|
|
34709
|
+
var arrafterfilter = [];
|
|
34710
|
+
parentcollections.forEach(function (parentcolitem, parcolindex) {
|
|
34711
|
+
if (parentcolitem.categoryid == props.collectionidprops) {
|
|
34712
|
+
arrafterfilter.push(parentcolitem);
|
|
34713
|
+
}
|
|
34714
|
+
});
|
|
34715
|
+
parentcollections = arrafterfilter;
|
|
34716
|
+
}
|
|
34717
|
+
cardobjassigner(parentcollections);
|
|
34718
|
+
}
|
|
34719
|
+
} else if (fetchingtype == 'innerparentcollections') {
|
|
34720
|
+
if (fetchAuthorizationQueryContext !== null && fetchAuthorizationQueryContext !== void 0 && fetchAuthorizationQueryContext.isSuccess) {
|
|
34721
|
+
var _categories2;
|
|
34722
|
+
var categories = fetchAuthorizationQueryContext.data.data.instinfo.instcategories;
|
|
34723
|
+
var collections = [];
|
|
34724
|
+
(_categories2 = categories) === null || _categories2 === void 0 ? void 0 : _categories2.forEach(function (catitem, catindex) {
|
|
34725
|
+
catitem === null || catitem === void 0 ? void 0 : catitem.parentcolletions.forEach(function (parentcolitem) {
|
|
34726
|
+
var _parentcolitem$collec;
|
|
34727
|
+
parentcolitem.categoryid = catitem.categoryid;
|
|
34728
|
+
parentcolitem === null || parentcolitem === void 0 ? void 0 : (_parentcolitem$collec = parentcolitem.collections) === null || _parentcolitem$collec === void 0 ? void 0 : _parentcolitem$collec.forEach(function (collitem, colindex) {
|
|
34729
|
+
collitem.parentcollectionid = parentcolitem.parentcollectionid;
|
|
34730
|
+
collections.push(collitem);
|
|
34731
|
+
});
|
|
34732
|
+
});
|
|
34733
|
+
});
|
|
34734
|
+
if (fetchingtype == 'innerparentcollections') {
|
|
34735
|
+
var collectionsafterfilter = [];
|
|
34736
|
+
collections.forEach(function (colitem, colindex) {
|
|
34737
|
+
if (colitem.parentcollectionid == props.collectionidprops) {
|
|
34738
|
+
var iscollexists = false;
|
|
34739
|
+
collectionsafterfilter.forEach(function (existcolitem) {
|
|
34740
|
+
if (colitem.collectionid == existcolitem.collectionid) {
|
|
34741
|
+
iscollexists = true;
|
|
34742
|
+
}
|
|
34743
|
+
});
|
|
34744
|
+
if (iscollexists == false) {
|
|
34745
|
+
collectionsafterfilter.push(colitem);
|
|
34746
|
+
}
|
|
34747
|
+
}
|
|
34748
|
+
});
|
|
34749
|
+
collections = collectionsafterfilter;
|
|
34750
|
+
}
|
|
34751
|
+
cardobjassigner(collections);
|
|
34752
|
+
}
|
|
34593
34753
|
}
|
|
34594
34754
|
setFetchQueriesEngineContext(_objectSpread$19({}, tempFetchQueriesEngineContext));
|
|
34595
34755
|
}
|
|
34596
34756
|
}, [fetchingtype, ProductsFetchingTypeSectionObj]);
|
|
34597
34757
|
React.useEffect(function () {
|
|
34598
|
-
if (
|
|
34599
|
-
|
|
34758
|
+
if (fetchingtype == 'products') {
|
|
34759
|
+
if (fetchProductsQuery.isSuccess && fetchcustomercartQueryContext.isSuccess) {
|
|
34760
|
+
var _fetchProductsQuery$d4, _fetchProductsQuery$d5, _fetchProductsQuery$d6;
|
|
34761
|
+
var allpagesarr = [];
|
|
34762
|
+
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) {
|
|
34763
|
+
allpagesarr.push(item);
|
|
34764
|
+
});
|
|
34765
|
+
cardobjassigner(allpagesarr);
|
|
34766
|
+
}
|
|
34600
34767
|
}
|
|
34601
|
-
}, [
|
|
34768
|
+
}, [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]);
|
|
34769
|
+
React.useEffect(function () {
|
|
34770
|
+
if (fetchingtype == 'collections') {
|
|
34771
|
+
if (fetchcollectionsQueryContext.isSuccess) {
|
|
34772
|
+
cardobjassigner(fetchcollectionsQueryContext.data.data.collections);
|
|
34773
|
+
}
|
|
34774
|
+
}
|
|
34775
|
+
}, [fetchcollectionsQueryContext === null || fetchcollectionsQueryContext === void 0 ? void 0 : fetchcollectionsQueryContext.isSuccess]);
|
|
34776
|
+
React.useEffect(function () {
|
|
34777
|
+
if (fetchingtype == 'vendors') {
|
|
34778
|
+
if (FetchVendorsQuery.isSuccess) {
|
|
34779
|
+
if (FetchVendorsQuery.data.data.vendors != undefined && FetchVendorsQuery.data.data.vendors.length != 0) {
|
|
34780
|
+
var _FetchVendorsQuery$da3, _FetchVendorsQuery$da4;
|
|
34781
|
+
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);
|
|
34782
|
+
}
|
|
34783
|
+
}
|
|
34784
|
+
}
|
|
34785
|
+
}, [FetchVendorsQuery.isSuccess]);
|
|
34786
|
+
React.useEffect(function () {
|
|
34787
|
+
favassigner();
|
|
34788
|
+
}, [favoriteprojectscountContext]);
|
|
34789
|
+
React.useEffect(function () {
|
|
34790
|
+
if (sectionproperties.length != 0 && sectionproperties.maincontainerarrayofobjs != undefined) {
|
|
34791
|
+
var maincontainerarrayofobjsparsed = JSON.parse(sectionproperties.maincontainerarrayofobjs);
|
|
34792
|
+
if (Array.isArray(maincontainerarrayofobjsparsed)) {
|
|
34793
|
+
setmaincontainerarrayofobjs(_toConsumableArray__default["default"](maincontainerarrayofobjsparsed));
|
|
34794
|
+
}
|
|
34795
|
+
}
|
|
34796
|
+
}, [sectionproperties]);
|
|
34797
|
+
var favassigner = function favassigner() {
|
|
34798
|
+
if (fetchingtype == 'products') {
|
|
34799
|
+
if (cardsarray.length != 0) {
|
|
34800
|
+
if (favoriteprojectscountContext != undefined && Array.isArray(favoriteprojectscountContext)) {
|
|
34801
|
+
var tempcardsarray = _toConsumableArray__default["default"](cardsarray);
|
|
34802
|
+
tempcardsarray.forEach(function (arrayItem, arrayindex) {
|
|
34803
|
+
arrayItem.IsFavExists = false;
|
|
34804
|
+
});
|
|
34805
|
+
tempcardsarray.forEach(function (arrayItem, arrayindex) {
|
|
34806
|
+
favoriteprojectscountContext.forEach(function (favitem, favindex) {
|
|
34807
|
+
if (arrayItem.productid == favitem) {
|
|
34808
|
+
arrayItem.IsFavExists = true;
|
|
34809
|
+
}
|
|
34810
|
+
});
|
|
34811
|
+
});
|
|
34812
|
+
setcardsarray(_toConsumableArray__default["default"](tempcardsarray));
|
|
34813
|
+
}
|
|
34814
|
+
}
|
|
34815
|
+
}
|
|
34816
|
+
};
|
|
34602
34817
|
var cardobjassigner = function cardobjassigner(fetchedarray) {
|
|
34603
34818
|
var temparray = [];
|
|
34604
34819
|
fetchedarray.forEach(function (arrayItem, arrayindex) {
|
|
34605
34820
|
var cardobj = {
|
|
34606
34821
|
name: '',
|
|
34607
|
-
image: ''
|
|
34608
|
-
index: arrayindex,
|
|
34609
|
-
collectionid: ''
|
|
34822
|
+
image: ''
|
|
34610
34823
|
};
|
|
34611
|
-
|
|
34612
|
-
|
|
34613
|
-
|
|
34614
|
-
|
|
34615
|
-
|
|
34616
|
-
|
|
34617
|
-
|
|
34824
|
+
if (fetchingtype == 'products') {
|
|
34825
|
+
var itemquantity = 0;
|
|
34826
|
+
if (langdetect == 'en') {
|
|
34827
|
+
cardobj.name = arrayItem.productinfo.name_en;
|
|
34828
|
+
} else {
|
|
34829
|
+
cardobj.name = arrayItem.productinfo.name_ar;
|
|
34830
|
+
}
|
|
34831
|
+
if (langdetect == 'en') {
|
|
34832
|
+
cardobj.description = arrayItem.productinfo.description_en;
|
|
34833
|
+
} else {
|
|
34834
|
+
cardobj.description = arrayItem.productinfo.description_ar;
|
|
34835
|
+
}
|
|
34836
|
+
if (arrayItem.productinfo.hasvariants == 0) {
|
|
34837
|
+
fetchcustomercartQueryContext.data.data.customercart.cartitems.forEach(function (cartitem, cartindex) {
|
|
34838
|
+
if (cartitem.productid == arrayItem.productinfo.productid) {
|
|
34839
|
+
itemquantity = cartitem.quantity;
|
|
34840
|
+
}
|
|
34841
|
+
});
|
|
34842
|
+
}
|
|
34843
|
+
cardobj.image = arrayItem.productinfo.productmainimage;
|
|
34844
|
+
cardobj.hassale = arrayItem.productinfo.hassale;
|
|
34845
|
+
cardobj.productid = arrayItem.productinfo.productid;
|
|
34846
|
+
cardobj.hasvariants = arrayItem.productinfo.hasvariants;
|
|
34847
|
+
cardobj.description_en = arrayItem.productinfo.description_en;
|
|
34848
|
+
cardobj.description_ar = arrayItem.productinfo.description_ar;
|
|
34849
|
+
cardobj.defaultprice = arrayItem.productinfo.defaultprice;
|
|
34850
|
+
cardobj.defaultsaleprice = arrayItem.productinfo.defaultsaleprice;
|
|
34851
|
+
cardobj.productimages = arrayItem.productinfo.productimages;
|
|
34852
|
+
cardobj.quantity = itemquantity;
|
|
34853
|
+
cardobj.timestamp = arrayItem.productinfo.timestamp;
|
|
34854
|
+
cardobj.productquantity = arrayItem.productinfo.productquantity;
|
|
34855
|
+
cardobj.quantavailtype = arrayItem.productinfo.quantavailtype;
|
|
34856
|
+
if (langdetect == 'en') {
|
|
34857
|
+
cardobj.currencyname = fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 ? void 0 : fetchAuthorizationQueryContext.data.data.currencyname_en;
|
|
34858
|
+
} else {
|
|
34859
|
+
cardobj.currencyname = fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 ? void 0 : fetchAuthorizationQueryContext.data.data.currencyname_ar;
|
|
34860
|
+
}
|
|
34861
|
+
if (favoriteprojectscountContext != undefined && favoriteprojectscountContext.length != 0) {
|
|
34862
|
+
favoriteprojectscountContext.forEach(function (favitem, favindex) {
|
|
34863
|
+
if (arrayItem.productinfo.productid == favitem) {
|
|
34864
|
+
cardobj.IsFavExists = true;
|
|
34865
|
+
}
|
|
34866
|
+
});
|
|
34867
|
+
}
|
|
34868
|
+
} else if (fetchingtype == 'collections' || fetchingtype == 'innerparentcollections') {
|
|
34869
|
+
cardobj.collectionid = arrayItem.collectionid;
|
|
34870
|
+
if (langdetect == 'en') {
|
|
34871
|
+
cardobj.name = arrayItem.title_en;
|
|
34872
|
+
cardobj.description = arrayItem.description_en;
|
|
34873
|
+
} else if (langdetect == 'ar') {
|
|
34874
|
+
cardobj.name = arrayItem.title_ar;
|
|
34875
|
+
cardobj.description = arrayItem.description_ar;
|
|
34876
|
+
}
|
|
34877
|
+
cardobj.image = arrayItem.collectionlogo;
|
|
34878
|
+
} else if (fetchingtype == 'categories') {
|
|
34879
|
+
cardobj.collectionid = arrayItem.categoryid;
|
|
34880
|
+
if (langdetect == 'en') {
|
|
34881
|
+
cardobj.name = arrayItem.title_en;
|
|
34882
|
+
cardobj.description = arrayItem.description_en;
|
|
34883
|
+
} else if (langdetect == 'ar') {
|
|
34884
|
+
cardobj.name = arrayItem.title_ar;
|
|
34885
|
+
cardobj.description = arrayItem.description_ar;
|
|
34886
|
+
}
|
|
34887
|
+
cardobj.image = arrayItem.categorylogo;
|
|
34888
|
+
} else if (fetchingtype == 'parentcollections' || fetchingtype == 'innercategories') {
|
|
34889
|
+
cardobj.collectionid = arrayItem.parentcollectionid;
|
|
34890
|
+
if (langdetect == 'en') {
|
|
34891
|
+
cardobj.name = arrayItem.title_en;
|
|
34892
|
+
cardobj.description = arrayItem.description_en;
|
|
34893
|
+
} else if (langdetect == 'ar') {
|
|
34894
|
+
cardobj.name = arrayItem.title_ar;
|
|
34895
|
+
cardobj.description = arrayItem.description_ar;
|
|
34896
|
+
}
|
|
34897
|
+
cardobj.image = arrayItem.parentcollectionlogo;
|
|
34898
|
+
} else if (fetchingtype == 'custom') ; else if (fetchingtype == 'vendors') {
|
|
34899
|
+
cardobj.name = arrayItem.vendorname;
|
|
34900
|
+
cardobj.collectionid = arrayItem.vendorid;
|
|
34901
|
+
cardobj.image = arrayItem.vendorlogourl;
|
|
34618
34902
|
}
|
|
34619
|
-
cardobj.image = arrayItem.collectionlogo;
|
|
34620
|
-
cardobj.collectionid = arrayItem.collectionid;
|
|
34621
34903
|
temparray.push(cardobj);
|
|
34622
34904
|
});
|
|
34623
34905
|
setcardsarray([].concat(temparray));
|
|
@@ -40442,19 +40724,19 @@ var Image_with_leftwords = function Image_with_leftwords(props) {
|
|
|
40442
40724
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
40443
40725
|
"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
40726
|
style: {
|
|
40445
|
-
cursor: ((_imagesarray$ = imagesarray[0]) === null || _imagesarray$ === void 0 ? void 0 : _imagesarray$.
|
|
40727
|
+
cursor: ((_imagesarray$ = imagesarray[0]) === null || _imagesarray$ === void 0 ? void 0 : _imagesarray$.IsClickableimg) == 'Yes' ? 'pointer' : 'default',
|
|
40446
40728
|
background: sectionproperties.image_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.image_bgcolor
|
|
40447
40729
|
},
|
|
40448
40730
|
onClick: function onClick() {
|
|
40449
40731
|
var _imagesarray$2;
|
|
40450
|
-
if (((_imagesarray$2 = imagesarray[0]) === null || _imagesarray$2 === void 0 ? void 0 : _imagesarray$2.
|
|
40732
|
+
if (((_imagesarray$2 = imagesarray[0]) === null || _imagesarray$2 === void 0 ? void 0 : _imagesarray$2.IsClickableimg) == 'Yes') {
|
|
40451
40733
|
var _imagesarray$3, _imagesarray$4;
|
|
40452
|
-
if ((_imagesarray$3 = imagesarray[0]) !== null && _imagesarray$3 !== void 0 && _imagesarray$3.
|
|
40734
|
+
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
40735
|
var _imagesarray$5;
|
|
40454
|
-
routingcountext((_imagesarray$5 = imagesarray[0]) === null || _imagesarray$5 === void 0 ? void 0 : _imagesarray$5.
|
|
40736
|
+
routingcountext((_imagesarray$5 = imagesarray[0]) === null || _imagesarray$5 === void 0 ? void 0 : _imagesarray$5.clickableimg_page_route, false, '');
|
|
40455
40737
|
} else {
|
|
40456
40738
|
var _imagesarray$6;
|
|
40457
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + ((_imagesarray$6 = imagesarray[0]) === null || _imagesarray$6 === void 0 ? void 0 : _imagesarray$6.
|
|
40739
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + ((_imagesarray$6 = imagesarray[0]) === null || _imagesarray$6 === void 0 ? void 0 : _imagesarray$6.Clickableimg_getcoection));
|
|
40458
40740
|
}
|
|
40459
40741
|
}
|
|
40460
40742
|
}
|
|
@@ -47645,7 +47927,6 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
|
|
|
47645
47927
|
borderRadius: sectionproperties.fav_btn_borderBottomLeftRadius + 'px',
|
|
47646
47928
|
color: sectionproperties.favBtniconcolor,
|
|
47647
47929
|
fontSize: sectionproperties.favBtnTextfontsize + 'px',
|
|
47648
|
-
textTransform: sectionproperties.favBtnTexttransform,
|
|
47649
47930
|
fontWeight: sectionproperties.favBtnTextfontweight,
|
|
47650
47931
|
transition: '.3s',
|
|
47651
47932
|
border: sectionproperties.favbtnborderwidth + 'px solid ' + sectionproperties.favbtnbordercolor,
|
|
@@ -47677,7 +47958,8 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
|
|
|
47677
47958
|
borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
47678
47959
|
borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
|
|
47679
47960
|
borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
|
|
47680
|
-
background: sectionproperties.image_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.image_bgcolor
|
|
47961
|
+
background: sectionproperties.image_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.image_bgcolor,
|
|
47962
|
+
opacity: item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' ? 0.4 : 1
|
|
47681
47963
|
}),
|
|
47682
47964
|
quantitybtn: glamor.css({
|
|
47683
47965
|
flex: 1,
|
|
@@ -47732,6 +48014,21 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
|
|
|
47732
48014
|
color: sectionproperties.remove_quantitybtn_textcoloronhover,
|
|
47733
48015
|
background: sectionproperties.remove_quantitybtn_bgcoloronhover
|
|
47734
48016
|
}
|
|
48017
|
+
}),
|
|
48018
|
+
outstockbadge: glamor.css({
|
|
48019
|
+
width: sectionproperties.outstock_width + 'px',
|
|
48020
|
+
height: sectionproperties.outstock_height + 'px',
|
|
48021
|
+
background: sectionproperties.outstock_bg,
|
|
48022
|
+
color: sectionproperties.outstock_color,
|
|
48023
|
+
fontSize: sectionproperties.outstock_fontSize + 'px',
|
|
48024
|
+
borderRadius: sectionproperties.outstock_borderradius + 'px',
|
|
48025
|
+
position: 'absolute',
|
|
48026
|
+
zIndex: 2,
|
|
48027
|
+
top: 0,
|
|
48028
|
+
bottom: 0,
|
|
48029
|
+
left: 0,
|
|
48030
|
+
right: 0,
|
|
48031
|
+
margin: 'auto'
|
|
47735
48032
|
})
|
|
47736
48033
|
};
|
|
47737
48034
|
var addtocartbuttonrender = function addtocartbuttonrender() {
|
|
@@ -47791,7 +48088,7 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
|
|
|
47791
48088
|
size: sectionproperties.cartBtn_iconFontSize
|
|
47792
48089
|
}), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React__default["default"].createElement(MdAddShoppingCart.MdAddShoppingCart, {
|
|
47793
48090
|
size: sectionproperties.cartBtn_iconFontSize
|
|
47794
|
-
})),
|
|
48091
|
+
})), langdetect == 'en' ? sectionproperties.cartBtnContentenglish : sectionproperties.cartBtnContentarabic);
|
|
47795
48092
|
}
|
|
47796
48093
|
};
|
|
47797
48094
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -47807,7 +48104,10 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
|
|
|
47807
48104
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
47808
48105
|
"class": "".concat(cardsstyles$4.card_inner)
|
|
47809
48106
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
47810
|
-
"class": "".concat(cardsstyles$4.card_thumbnail)
|
|
48107
|
+
"class": "".concat(cardsstyles$4.card_thumbnail),
|
|
48108
|
+
style: {
|
|
48109
|
+
position: 'relative'
|
|
48110
|
+
}
|
|
47811
48111
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
47812
48112
|
"class": "".concat(cardsstyles$4.img_container, " ").concat(cardsstyles2.img_container) + ' w-100 allcentered ',
|
|
47813
48113
|
onClick: function onClick() {
|
|
@@ -47881,7 +48181,11 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
|
|
|
47881
48181
|
color: sectionproperties.badge_color,
|
|
47882
48182
|
fontSize: sectionproperties.badge_fontsize + 'px'
|
|
47883
48183
|
}
|
|
47884
|
-
}, langdetect == 'en' ? sectionproperties.badgeContentEn : sectionproperties.badgeContentAr))
|
|
48184
|
+
}, langdetect == 'en' ? sectionproperties.badgeContentEn : sectionproperties.badgeContentAr)), item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
48185
|
+
"class": "".concat(cardsstyles2.outstockbadge) + ' allcentered '
|
|
48186
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
48187
|
+
"class": "m-0 p-0"
|
|
48188
|
+
}, langdetect == 'en' ? sectionproperties.outstock_contenten : sectionproperties.outstock_contentar))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
47885
48189
|
"class": "".concat(cardsstyles$4.product_details) + ' mb-2 '
|
|
47886
48190
|
}, sectionproperties.prodNameShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
47887
48191
|
"class": "col-lg-12"
|
|
@@ -47917,7 +48221,9 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
|
|
|
47917
48221
|
transform: ' rotate(-180deg)'
|
|
47918
48222
|
},
|
|
47919
48223
|
onClick: function onClick() {
|
|
47920
|
-
if (item.
|
|
48224
|
+
if (item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit') {
|
|
48225
|
+
NotificationManager.warning('', langdetect == 'en' ? 'Sold Out' : 'نفذت الكمية');
|
|
48226
|
+
} else if (item.hasvariants == 0) {
|
|
47921
48227
|
updatequantity('remove');
|
|
47922
48228
|
} else {
|
|
47923
48229
|
setShowProductInfoModalContext(true);
|
|
@@ -47929,7 +48235,9 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
|
|
|
47929
48235
|
})), langdetect == 'ar' && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
47930
48236
|
"class": "".concat(cardsstyles2.add_quantitybtn_icon_container) + ' m-1 ',
|
|
47931
48237
|
onClick: function onClick() {
|
|
47932
|
-
if (item.
|
|
48238
|
+
if (item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit') {
|
|
48239
|
+
NotificationManager.warning('', langdetect == 'en' ? 'Sold Out' : 'نفذت الكمية');
|
|
48240
|
+
} else if (item.hasvariants == 0) {
|
|
47933
48241
|
updatequantity('add');
|
|
47934
48242
|
} else {
|
|
47935
48243
|
setShowProductInfoModalContext(true);
|
|
@@ -47946,7 +48254,9 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
|
|
|
47946
48254
|
transform: ' rotate(-180deg)'
|
|
47947
48255
|
},
|
|
47948
48256
|
onClick: function onClick() {
|
|
47949
|
-
if (item.
|
|
48257
|
+
if (item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit') {
|
|
48258
|
+
NotificationManager.warning('', langdetect == 'en' ? 'Sold Out' : 'نفذت الكمية');
|
|
48259
|
+
} else if (item.hasvariants == 0) {
|
|
47950
48260
|
updatequantity('remove');
|
|
47951
48261
|
} else {
|
|
47952
48262
|
setShowProductInfoModalContext(true);
|
|
@@ -47958,7 +48268,9 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
|
|
|
47958
48268
|
})), langdetect == 'en' && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
47959
48269
|
"class": "".concat(cardsstyles2.add_quantitybtn_icon_container) + ' m-1 ',
|
|
47960
48270
|
onClick: function onClick() {
|
|
47961
|
-
if (item.
|
|
48271
|
+
if (item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit') {
|
|
48272
|
+
NotificationManager.warning('', langdetect == 'en' ? 'Sold Out' : 'نفذت الكمية');
|
|
48273
|
+
} else if (item.hasvariants == 0) {
|
|
47962
48274
|
updatequantity('add');
|
|
47963
48275
|
} else {
|
|
47964
48276
|
setShowProductInfoModalContext(true);
|
|
@@ -52132,8 +52444,8 @@ var Productcard_with_slideanimation = function Productcard_with_slideanimation(p
|
|
|
52132
52444
|
path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_w + '/' + item.image,
|
|
52133
52445
|
loading: "lazy",
|
|
52134
52446
|
style: {
|
|
52135
|
-
width: '
|
|
52136
|
-
height: '
|
|
52447
|
+
width: sectionproperties.imageInnerWidth_Height + '%',
|
|
52448
|
+
height: sectionproperties.imageInnerWidth_Height + '%',
|
|
52137
52449
|
objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain',
|
|
52138
52450
|
background: sectionproperties.image_bgcolortransparent == 'Transparent' ? '' : sectionproperties.image_bgcolor,
|
|
52139
52451
|
border: sectionproperties.image_borderwidth + 'px solid ' + sectionproperties.image_bordercolor,
|
|
@@ -53954,7 +54266,7 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
53954
54266
|
borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
|
|
53955
54267
|
borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
|
|
53956
54268
|
transition: '.3s',
|
|
53957
|
-
opacity: item.productquantity < 1 ? 0.4 : 1
|
|
54269
|
+
opacity: item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' ? 0.4 : 1
|
|
53958
54270
|
}),
|
|
53959
54271
|
productNameStyles: glamor.css({
|
|
53960
54272
|
color: sectionproperties.prodNameColor,
|
|
@@ -54146,7 +54458,7 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
54146
54458
|
height: sectionproperties.imageInnerWidth_Height + '%',
|
|
54147
54459
|
objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain'
|
|
54148
54460
|
}
|
|
54149
|
-
})), item.productquantity < 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
54461
|
+
})), item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
54150
54462
|
"class": "".concat(card_cssstyles.outstockbadge) + ' allcentered '
|
|
54151
54463
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
54152
54464
|
"class": "m-0 p-0"
|
|
@@ -54179,7 +54491,7 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
54179
54491
|
}, langdetect == 'en' ? 'EGP' : '', " ", item.defaultprice, " ", langdetect == 'en' ? '' : 'ج.م'))))), sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
54180
54492
|
"class": "".concat(card_cssstyles.cart_btn) + ' m-0 p-0 d-flex align-items-center justify-content-center mt-1 ',
|
|
54181
54493
|
onClick: function onClick() {
|
|
54182
|
-
if (item.productquantity
|
|
54494
|
+
if (item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit') {
|
|
54183
54495
|
setShowProductInfoModalContext(true);
|
|
54184
54496
|
setProductIdProdutInfoModalContext(item.productid);
|
|
54185
54497
|
} else {
|