tabexseriescomponents 0.0.99 → 0.0.101
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 +281 -111
- package/dist/index.esm.js +281 -111
- package/dist/index.umd.js +281 -111
- package/package.json +1 -1
- package/componentssrc.rar +0 -0
package/dist/index.umd.js
CHANGED
|
@@ -2310,7 +2310,7 @@
|
|
|
2310
2310
|
if ((_bgimagesarray$3 = bgimagesarray[0]) !== null && _bgimagesarray$3 !== void 0 && _bgimagesarray$3.clickable_page_route && ((_bgimagesarray$4 = bgimagesarray[0]) === null || _bgimagesarray$4 === void 0 ? void 0 : _bgimagesarray$4.clickable_page_route.length) != 0) {
|
|
2311
2311
|
routingcountext(bgimagesarray[0].clickable_page_route, false, '');
|
|
2312
2312
|
} else {
|
|
2313
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, bgimagesarray[0].Clickable_Reference_Collection_ID);
|
|
2313
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + bgimagesarray[0].Clickable_Reference_Collection_ID);
|
|
2314
2314
|
}
|
|
2315
2315
|
}
|
|
2316
2316
|
}
|
|
@@ -3137,7 +3137,7 @@
|
|
|
3137
3137
|
if ((_bgimagesarray$3 = bgimagesarray[0]) !== null && _bgimagesarray$3 !== void 0 && _bgimagesarray$3.clickable_page_route && ((_bgimagesarray$4 = bgimagesarray[0]) === null || _bgimagesarray$4 === void 0 ? void 0 : _bgimagesarray$4.clickable_page_route.length) != 0) {
|
|
3138
3138
|
routingcountext(bgimagesarray[0].clickable_page_route, false, '');
|
|
3139
3139
|
} else {
|
|
3140
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, bgimagesarray[0].Clickable_Reference_Collection_ID);
|
|
3140
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + bgimagesarray[0].Clickable_Reference_Collection_ID);
|
|
3141
3141
|
}
|
|
3142
3142
|
}
|
|
3143
3143
|
}
|
|
@@ -3805,7 +3805,7 @@
|
|
|
3805
3805
|
if ((_bgimagesarray$3 = bgimagesarray[0]) !== null && _bgimagesarray$3 !== void 0 && _bgimagesarray$3.clickable_page_route && ((_bgimagesarray$4 = bgimagesarray[0]) === null || _bgimagesarray$4 === void 0 ? void 0 : _bgimagesarray$4.clickable_page_route.length) != 0) {
|
|
3806
3806
|
routingcountext(bgimagesarray[0].clickable_page_route, false, '');
|
|
3807
3807
|
} else {
|
|
3808
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, bgimagesarray[0].Clickable_Reference_Collection_ID);
|
|
3808
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + bgimagesarray[0].Clickable_Reference_Collection_ID);
|
|
3809
3809
|
}
|
|
3810
3810
|
}
|
|
3811
3811
|
}
|
|
@@ -6336,7 +6336,7 @@
|
|
|
6336
6336
|
if ((_bgimagesarray$3 = bgimagesarray[0]) !== null && _bgimagesarray$3 !== void 0 && _bgimagesarray$3.clickable_page_route && ((_bgimagesarray$4 = bgimagesarray[0]) === null || _bgimagesarray$4 === void 0 ? void 0 : _bgimagesarray$4.clickable_page_route.length) != 0) {
|
|
6337
6337
|
routingcountext(bgimagesarray[0].clickable_page_route, false, '');
|
|
6338
6338
|
} else {
|
|
6339
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, bgimagesarray[0].Clickable_Reference_Collection_ID);
|
|
6339
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + bgimagesarray[0].Clickable_Reference_Collection_ID);
|
|
6340
6340
|
}
|
|
6341
6341
|
}
|
|
6342
6342
|
}
|
|
@@ -6609,7 +6609,7 @@
|
|
|
6609
6609
|
if ((_bgimagesarray$3 = bgimagesarray[0]) !== null && _bgimagesarray$3 !== void 0 && _bgimagesarray$3.clickable_page_route && ((_bgimagesarray$4 = bgimagesarray[0]) === null || _bgimagesarray$4 === void 0 ? void 0 : _bgimagesarray$4.clickable_page_route.length) != 0) {
|
|
6610
6610
|
routingcountext(bgimagesarray[0].clickable_page_route, false, '');
|
|
6611
6611
|
} else {
|
|
6612
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, bgimagesarray[0].Clickable_Reference_Collection_ID);
|
|
6612
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + bgimagesarray[0].Clickable_Reference_Collection_ID);
|
|
6613
6613
|
}
|
|
6614
6614
|
}
|
|
6615
6615
|
}
|
|
@@ -9422,6 +9422,220 @@
|
|
|
9422
9422
|
function ownKeys$1p(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; }
|
|
9423
9423
|
function _objectSpread$1p(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1p(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1p(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
9424
9424
|
var ModernCardsSection = function ModernCardsSection(props) {
|
|
9425
|
+
// const { ref, inView } = useInView();
|
|
9426
|
+
// const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
9427
|
+
// const lang = props.actions.lang;
|
|
9428
|
+
// const langdetect = props.actions.langdetect;
|
|
9429
|
+
// const fetchcustomercartQueryContext = props.actions.fetchcustomercartQueryContext;
|
|
9430
|
+
// const favoriteprojectscountContext = props.actions.favoriteprojectscountContext;
|
|
9431
|
+
// const routingcountext = props.actions.routingcountext;
|
|
9432
|
+
// const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
9433
|
+
// const ProductFilterObjContext = props.actions.ProductFilterObjContext;
|
|
9434
|
+
// const setProductFilterObjContext = props.actions.setProductFilterObjContext;
|
|
9435
|
+
// const TabexSectionsComponentsContext = props.actions.TabexSectionsComponentsContext;
|
|
9436
|
+
// const FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
|
|
9437
|
+
// const setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
|
|
9438
|
+
// const fetchProductsQuery = props.actions.fetchProductsQuery;
|
|
9439
|
+
// const fetchcollectionsQueryContext = props.actions.fetchcollectionsQueryContext;
|
|
9440
|
+
// const setParentCollectionsForCollectionQueryArr = props.actions.setParentCollectionsForCollectionQueryArr;
|
|
9441
|
+
// const ParentCollectionsForCollectionQueryArr = props.actions.ParentCollectionsForCollectionQueryArr;
|
|
9442
|
+
// const setfetchingtype = props.actions.setfetchingtype;
|
|
9443
|
+
// const fetchingtype = props.actions.fetchingtype;
|
|
9444
|
+
// const actions = props.actions;
|
|
9445
|
+
// const [sectionproperties, setsectionproperties] = useState('');
|
|
9446
|
+
// const [cardsarray, setcardsarray] = useState([]);
|
|
9447
|
+
// React.useEffect(() => {
|
|
9448
|
+
// if (inView) {
|
|
9449
|
+
// fetchProductsQuery.fetchNextPage();
|
|
9450
|
+
// }
|
|
9451
|
+
// }, [inView]);
|
|
9452
|
+
// const [ProductsFetchingTypeSectionObj, setProductsFetchingTypeSectionObj] = useState({ productfetchingtype: 'Random', collectionid: '', grouptype: '' });
|
|
9453
|
+
|
|
9454
|
+
// useEffect(() => {
|
|
9455
|
+
// StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
|
|
9456
|
+
// if (sectionitem.sectionid == props.sectionidprops) {
|
|
9457
|
+
// var secpropobj = {};
|
|
9458
|
+
// sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
|
|
9459
|
+
// secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
|
|
9460
|
+
// });
|
|
9461
|
+
// setsectionproperties({ ...secpropobj });
|
|
9462
|
+
|
|
9463
|
+
// if (props.srcfromprops == 'GeneralProductsComponent') {
|
|
9464
|
+
// setfetchingtype('products');
|
|
9465
|
+
// setProductsFetchingTypeSectionObj({
|
|
9466
|
+
// productfetchingtype: 'Random',
|
|
9467
|
+
// collectionid: props.collectionidprops,
|
|
9468
|
+
// grouptype: props.grouptypeprops,
|
|
9469
|
+
// grouptyperefid: props.grouptyperefidprops,
|
|
9470
|
+
// });
|
|
9471
|
+
// } else {
|
|
9472
|
+
// setfetchingtype(sectionitem.fetchingtype);
|
|
9473
|
+
// setProductsFetchingTypeSectionObj({
|
|
9474
|
+
// productfetchingtype: sectionitem.productsfetchingtype,
|
|
9475
|
+
// collectionid: sectionitem.productsfetchingtypeCollectioncollectionid,
|
|
9476
|
+
// grouptype: props.grouptypeprops,
|
|
9477
|
+
// grouptyperefid: props.grouptyperefidprops,
|
|
9478
|
+
// });
|
|
9479
|
+
// }
|
|
9480
|
+
// }
|
|
9481
|
+
// });
|
|
9482
|
+
// }, [StatePagePropertiesContext]);
|
|
9483
|
+
// useEffect(() => {
|
|
9484
|
+
// if (sectionproperties.length != 0) {
|
|
9485
|
+
// if (cardsarray.length == 0) {
|
|
9486
|
+
// if (fetchingtype == 'collections') {
|
|
9487
|
+
// if (fetchcollectionsQueryContext.isSuccess) {
|
|
9488
|
+
// cardobjassigner(fetchcollectionsQueryContext.data.data.collections);
|
|
9489
|
+
// }
|
|
9490
|
+
// } else if (fetchingtype == 'products') {
|
|
9491
|
+
// if (fetchProductsQuery.isSuccess) {
|
|
9492
|
+
// var allpagesarr = [];
|
|
9493
|
+
// fetchProductsQuery.data.pages.forEach((page) => {
|
|
9494
|
+
// page.data.products.forEach((productobj) => {
|
|
9495
|
+
// allpagesarr.push(productobj);
|
|
9496
|
+
// });
|
|
9497
|
+
// });
|
|
9498
|
+
// cardobjassigner(allpagesarr);
|
|
9499
|
+
// }
|
|
9500
|
+
// }
|
|
9501
|
+
// }
|
|
9502
|
+
// }
|
|
9503
|
+
// }, [sectionproperties]);
|
|
9504
|
+
// useEffect(() => {
|
|
9505
|
+
// if (fetchingtype.length != 0) {
|
|
9506
|
+
// var tempFetchQueriesEngineContext = FetchQueriesEngineContext;
|
|
9507
|
+
// if (fetchingtype == 'collections') {
|
|
9508
|
+
// // tempFetchQueriesEngineContext.collections = true;
|
|
9509
|
+
// if (ProductsFetchingTypeSectionObj.collectionid == 'all' || ProductsFetchingTypeSectionObj.collectionid == null || ProductsFetchingTypeSectionObj.collectionid == undefined) {
|
|
9510
|
+
// setParentCollectionsForCollectionQueryArr('all');
|
|
9511
|
+
// } else {
|
|
9512
|
+
// setParentCollectionsForCollectionQueryArr([ProductsFetchingTypeSectionObj.collectionid]);
|
|
9513
|
+
// }
|
|
9514
|
+
// }
|
|
9515
|
+
// if (fetchingtype == 'products') {
|
|
9516
|
+
// var tempfetchproductsfilerobjcontext = ProductFilterObjContext;
|
|
9517
|
+
// tempfetchproductsfilerobjcontext.ProductFetchingType = ProductsFetchingTypeSectionObj.productfetchingtype;
|
|
9518
|
+
// if (
|
|
9519
|
+
// ProductsFetchingTypeSectionObj.grouptype == 'collections' ||
|
|
9520
|
+
// ProductsFetchingTypeSectionObj.grouptype == 'categories' ||
|
|
9521
|
+
// ProductsFetchingTypeSectionObj.grouptype == 'parentcollections'
|
|
9522
|
+
// ) {
|
|
9523
|
+
// } else {
|
|
9524
|
+
// tempfetchproductsfilerobjcontext.collections.push(ProductsFetchingTypeSectionObj.collectionid);
|
|
9525
|
+
// }
|
|
9526
|
+
// tempfetchproductsfilerobjcontext.grouptype = ProductsFetchingTypeSectionObj.grouptype;
|
|
9527
|
+
// tempfetchproductsfilerobjcontext.grouptyperefid = ProductsFetchingTypeSectionObj.grouptyperefid;
|
|
9528
|
+
// setProductFilterObjContext({ ...tempfetchproductsfilerobjcontext });
|
|
9529
|
+
// }
|
|
9530
|
+
|
|
9531
|
+
// setFetchQueriesEngineContext({ ...tempFetchQueriesEngineContext });
|
|
9532
|
+
// }
|
|
9533
|
+
// }, [fetchingtype, ProductsFetchingTypeSectionObj]);
|
|
9534
|
+
// useEffect(() => {
|
|
9535
|
+
// if (fetchingtype == 'products') {
|
|
9536
|
+
// if (fetchProductsQuery.isSuccess && fetchcustomercartQueryContext.isSuccess) {
|
|
9537
|
+
// var allpagesarr = [];
|
|
9538
|
+
// fetchProductsQuery.data.pages.forEach((page) => {
|
|
9539
|
+
// page.data.products.forEach((productobj) => {
|
|
9540
|
+
// allpagesarr.push(productobj);
|
|
9541
|
+
// });
|
|
9542
|
+
// });
|
|
9543
|
+
// cardobjassigner(allpagesarr);
|
|
9544
|
+
// }
|
|
9545
|
+
// }
|
|
9546
|
+
// }, [fetchProductsQuery.isSuccess, fetchProductsQuery.dataUpdatedAt, fetchProductsQuery.data, fetchcustomercartQueryContext.dataUpdatedAt]);
|
|
9547
|
+
// useEffect(() => {
|
|
9548
|
+
// if (fetchingtype == 'collections') {
|
|
9549
|
+
// if (fetchcollectionsQueryContext.isSuccess) {
|
|
9550
|
+
// cardobjassigner(fetchcollectionsQueryContext.data.data.collections);
|
|
9551
|
+
// }
|
|
9552
|
+
// }
|
|
9553
|
+
// }, [fetchcollectionsQueryContext.isSuccess]);
|
|
9554
|
+
// useEffect(() => {
|
|
9555
|
+
// favassigner();
|
|
9556
|
+
// }, [favoriteprojectscountContext]);
|
|
9557
|
+
// const favassigner = () => {
|
|
9558
|
+
// if (fetchingtype == 'products') {
|
|
9559
|
+
// if (cardsarray.length != 0) {
|
|
9560
|
+
// if (favoriteprojectscountContext != undefined && Array.isArray(favoriteprojectscountContext)) {
|
|
9561
|
+
// var tempcardsarray = [...cardsarray];
|
|
9562
|
+
// tempcardsarray.forEach(function (arrayItem, arrayindex) {
|
|
9563
|
+
// arrayItem.IsFavExists = false;
|
|
9564
|
+
// });
|
|
9565
|
+
// tempcardsarray.forEach(function (arrayItem, arrayindex) {
|
|
9566
|
+
// favoriteprojectscountContext.forEach(function (favitem, favindex) {
|
|
9567
|
+
// if (arrayItem.productid == favitem) {
|
|
9568
|
+
// arrayItem.IsFavExists = true;
|
|
9569
|
+
// }
|
|
9570
|
+
// });
|
|
9571
|
+
// });
|
|
9572
|
+
// setcardsarray([...tempcardsarray]);
|
|
9573
|
+
// }
|
|
9574
|
+
// }
|
|
9575
|
+
// }
|
|
9576
|
+
// };
|
|
9577
|
+
// const cardobjassigner = (fetchedarray) => {
|
|
9578
|
+
// var temparray = [];
|
|
9579
|
+
// fetchedarray.forEach(function (arrayItem, arrayindex) {
|
|
9580
|
+
// var cardobj = {
|
|
9581
|
+
// name: '',
|
|
9582
|
+
// image: '',
|
|
9583
|
+
// };
|
|
9584
|
+
// if (fetchingtype == 'products') {
|
|
9585
|
+
// var itemquantity = 0;
|
|
9586
|
+
// if (langdetect == 'en') {
|
|
9587
|
+
// cardobj.name = arrayItem.productinfo.name_en;
|
|
9588
|
+
// } else {
|
|
9589
|
+
// cardobj.name = arrayItem.productinfo.name_ar;
|
|
9590
|
+
// }
|
|
9591
|
+
// if (langdetect == 'en') {
|
|
9592
|
+
// cardobj.description = arrayItem.productinfo.description_en;
|
|
9593
|
+
// } else {
|
|
9594
|
+
// cardobj.description = arrayItem.productinfo.description_ar;
|
|
9595
|
+
// }
|
|
9596
|
+
// if (arrayItem.productinfo.hasvariants == 0) {
|
|
9597
|
+
// fetchcustomercartQueryContext.data.data.customercart.cartitems.forEach(function (cartitem, cartindex) {
|
|
9598
|
+
// if (cartitem.productid == arrayItem.productinfo.productid) {
|
|
9599
|
+
// itemquantity = cartitem.quantity;
|
|
9600
|
+
// }
|
|
9601
|
+
// });
|
|
9602
|
+
// }
|
|
9603
|
+
// cardobj.image = arrayItem.productinfo.productmainimage;
|
|
9604
|
+
// cardobj.hassale = arrayItem.productinfo.hassale;
|
|
9605
|
+
// cardobj.productid = arrayItem.productinfo.productid;
|
|
9606
|
+
// cardobj.hasvariants = arrayItem.productinfo.hasvariants;
|
|
9607
|
+
// cardobj.description_en = arrayItem.productinfo.description_en;
|
|
9608
|
+
// cardobj.description_ar = arrayItem.productinfo.description_ar;
|
|
9609
|
+
// cardobj.defaultprice = arrayItem.productinfo.defaultprice;
|
|
9610
|
+
// cardobj.defaultsaleprice = arrayItem.productinfo.defaultsaleprice;
|
|
9611
|
+
// cardobj.productimages = arrayItem.productinfo.productimages;
|
|
9612
|
+
// cardobj.quantity = itemquantity;
|
|
9613
|
+
// cardobj.timestamp = arrayItem.productinfo.timestamp;
|
|
9614
|
+
|
|
9615
|
+
// if (favoriteprojectscountContext != undefined && favoriteprojectscountContext.length != 0) {
|
|
9616
|
+
// favoriteprojectscountContext.forEach(function (favitem, favindex) {
|
|
9617
|
+
// if (arrayItem.productinfo.productid == favitem) {
|
|
9618
|
+
// cardobj.IsFavExists = true;
|
|
9619
|
+
// }
|
|
9620
|
+
// });
|
|
9621
|
+
// }
|
|
9622
|
+
// } else if (fetchingtype == 'collections') {
|
|
9623
|
+
// cardobj.collectionid = arrayItem.collectionid;
|
|
9624
|
+
// if (langdetect == 'en') {
|
|
9625
|
+
// cardobj.name = arrayItem.title_en;
|
|
9626
|
+
// cardobj.description = arrayItem.description_en;
|
|
9627
|
+
// } else if (langdetect == 'ar') {
|
|
9628
|
+
// cardobj.name = arrayItem.title_ar;
|
|
9629
|
+
// cardobj.description = arrayItem.description_ar;
|
|
9630
|
+
// }
|
|
9631
|
+
// cardobj.image = arrayItem.collectionlogo;
|
|
9632
|
+
// } else if (fetchingtype == 'custom') {
|
|
9633
|
+
// }
|
|
9634
|
+
// temparray.push(cardobj);
|
|
9635
|
+
// });
|
|
9636
|
+
|
|
9637
|
+
// setcardsarray([...temparray]);
|
|
9638
|
+
// };
|
|
9425
9639
|
var _useInView = reactIntersectionObserver.useInView(),
|
|
9426
9640
|
ref = _useInView.ref,
|
|
9427
9641
|
inView = _useInView.inView;
|
|
@@ -9430,47 +9644,50 @@
|
|
|
9430
9644
|
var langdetect = props.actions.langdetect;
|
|
9431
9645
|
var fetchcustomercartQueryContext = props.actions.fetchcustomercartQueryContext;
|
|
9432
9646
|
var favoriteprojectscountContext = props.actions.favoriteprojectscountContext;
|
|
9647
|
+
var routingcountext = props.actions.routingcountext;
|
|
9648
|
+
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
9433
9649
|
var ProductFilterObjContext = props.actions.ProductFilterObjContext;
|
|
9434
9650
|
var setProductFilterObjContext = props.actions.setProductFilterObjContext;
|
|
9435
9651
|
var TabexSectionsComponentsContext = props.actions.TabexSectionsComponentsContext;
|
|
9436
9652
|
var FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
|
|
9437
9653
|
var setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
|
|
9438
|
-
var SearchHeaderMutationContext = props.actions.SearchHeaderMutationContext;
|
|
9439
9654
|
var fetchProductsQuery = props.actions.fetchProductsQuery;
|
|
9440
9655
|
var fetchcollectionsQueryContext = props.actions.fetchcollectionsQueryContext;
|
|
9441
9656
|
var setParentCollectionsForCollectionQueryArr = props.actions.setParentCollectionsForCollectionQueryArr;
|
|
9657
|
+
props.actions.ParentCollectionsForCollectionQueryArr;
|
|
9442
9658
|
var setfetchingtype = props.actions.setfetchingtype;
|
|
9443
9659
|
var fetchingtype = props.actions.fetchingtype;
|
|
9444
|
-
props.actions.
|
|
9445
|
-
props.actions.setShowProductInfoModalContext;
|
|
9446
|
-
props.actions.authdetailsContext;
|
|
9447
|
-
props.actions.productfiltercontext;
|
|
9448
|
-
props.actions.setproductfiltercontext;
|
|
9660
|
+
props.actions.addtofavoritescontext;
|
|
9449
9661
|
var actions = props.actions;
|
|
9450
9662
|
var _useState = React.useState(''),
|
|
9451
9663
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
9452
9664
|
sectionproperties = _useState2[0],
|
|
9453
9665
|
setsectionproperties = _useState2[1];
|
|
9454
9666
|
var _useState3 = React.useState([]),
|
|
9455
|
-
_useState4 = _slicedToArray__default["default"](_useState3, 2)
|
|
9456
|
-
|
|
9457
|
-
|
|
9458
|
-
var _useState5 = React.useState(
|
|
9667
|
+
_useState4 = _slicedToArray__default["default"](_useState3, 2);
|
|
9668
|
+
_useState4[0];
|
|
9669
|
+
_useState4[1];
|
|
9670
|
+
var _useState5 = React.useState([]),
|
|
9459
9671
|
_useState6 = _slicedToArray__default["default"](_useState5, 2),
|
|
9460
|
-
|
|
9461
|
-
_useState6[1];
|
|
9672
|
+
cardsarray = _useState6[0],
|
|
9673
|
+
setcardsarray = _useState6[1];
|
|
9674
|
+
var _useState7 = React.useState(''),
|
|
9675
|
+
_useState8 = _slicedToArray__default["default"](_useState7, 2);
|
|
9676
|
+
_useState8[0];
|
|
9677
|
+
_useState8[1];
|
|
9462
9678
|
React__default["default"].useEffect(function () {
|
|
9463
9679
|
if (inView) {
|
|
9464
9680
|
fetchProductsQuery.fetchNextPage();
|
|
9465
9681
|
}
|
|
9466
9682
|
}, [inView]);
|
|
9467
|
-
var
|
|
9683
|
+
var _useState9 = React.useState({
|
|
9468
9684
|
productfetchingtype: 'Random',
|
|
9469
|
-
collectionid: ''
|
|
9685
|
+
collectionid: '',
|
|
9686
|
+
grouptype: ''
|
|
9470
9687
|
}),
|
|
9471
|
-
|
|
9472
|
-
ProductsFetchingTypeSectionObj =
|
|
9473
|
-
setProductsFetchingTypeSectionObj =
|
|
9688
|
+
_useState10 = _slicedToArray__default["default"](_useState9, 2),
|
|
9689
|
+
ProductsFetchingTypeSectionObj = _useState10[0],
|
|
9690
|
+
setProductsFetchingTypeSectionObj = _useState10[1];
|
|
9474
9691
|
React.useEffect(function () {
|
|
9475
9692
|
StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
|
|
9476
9693
|
if (sectionitem.sectionid == props.sectionidprops) {
|
|
@@ -9483,31 +9700,22 @@
|
|
|
9483
9700
|
setfetchingtype('products');
|
|
9484
9701
|
setProductsFetchingTypeSectionObj({
|
|
9485
9702
|
productfetchingtype: 'Random',
|
|
9486
|
-
collectionid: props.collectionidprops
|
|
9703
|
+
collectionid: props.collectionidprops,
|
|
9704
|
+
grouptype: props.grouptypeprops,
|
|
9705
|
+
grouptyperefid: props.grouptyperefidprops
|
|
9487
9706
|
});
|
|
9488
9707
|
} else {
|
|
9489
9708
|
setfetchingtype(sectionitem.fetchingtype);
|
|
9490
9709
|
setProductsFetchingTypeSectionObj({
|
|
9491
9710
|
productfetchingtype: sectionitem.productsfetchingtype,
|
|
9492
|
-
collectionid: sectionitem.productsfetchingtypeCollectioncollectionid
|
|
9711
|
+
collectionid: sectionitem.productsfetchingtypeCollectioncollectionid,
|
|
9712
|
+
grouptype: props.grouptypeprops,
|
|
9713
|
+
grouptyperefid: props.grouptyperefidprops
|
|
9493
9714
|
});
|
|
9494
9715
|
}
|
|
9495
9716
|
}
|
|
9496
9717
|
});
|
|
9497
9718
|
}, [StatePagePropertiesContext]);
|
|
9498
|
-
React.useEffect(function () {
|
|
9499
|
-
SearchHeaderMutationContext.reset();
|
|
9500
|
-
var delayDebounceFn = setTimeout(function () {
|
|
9501
|
-
if (searchinput.length != 0) {
|
|
9502
|
-
SearchHeaderMutationContext.mutate({
|
|
9503
|
-
SearchHeaderValue: searchinput
|
|
9504
|
-
});
|
|
9505
|
-
}
|
|
9506
|
-
}, 1000);
|
|
9507
|
-
return function () {
|
|
9508
|
-
return clearTimeout(delayDebounceFn);
|
|
9509
|
-
};
|
|
9510
|
-
}, [searchinput]);
|
|
9511
9719
|
React.useEffect(function () {
|
|
9512
9720
|
if (sectionproperties.length != 0) {
|
|
9513
9721
|
if (cardsarray.length == 0) {
|
|
@@ -9534,7 +9742,6 @@
|
|
|
9534
9742
|
var tempFetchQueriesEngineContext = FetchQueriesEngineContext;
|
|
9535
9743
|
if (fetchingtype == 'collections') {
|
|
9536
9744
|
// tempFetchQueriesEngineContext.collections = true;
|
|
9537
|
-
|
|
9538
9745
|
if (ProductsFetchingTypeSectionObj.collectionid == 'all' || ProductsFetchingTypeSectionObj.collectionid == null || ProductsFetchingTypeSectionObj.collectionid == undefined) {
|
|
9539
9746
|
setParentCollectionsForCollectionQueryArr('all');
|
|
9540
9747
|
} else {
|
|
@@ -9544,7 +9751,11 @@
|
|
|
9544
9751
|
if (fetchingtype == 'products') {
|
|
9545
9752
|
var tempfetchproductsfilerobjcontext = ProductFilterObjContext;
|
|
9546
9753
|
tempfetchproductsfilerobjcontext.ProductFetchingType = ProductsFetchingTypeSectionObj.productfetchingtype;
|
|
9547
|
-
|
|
9754
|
+
if (ProductsFetchingTypeSectionObj.grouptype == 'collections' || ProductsFetchingTypeSectionObj.grouptype == 'categories' || ProductsFetchingTypeSectionObj.grouptype == 'parentcollections') ; else {
|
|
9755
|
+
tempfetchproductsfilerobjcontext.collections.push(ProductsFetchingTypeSectionObj.collectionid);
|
|
9756
|
+
}
|
|
9757
|
+
tempfetchproductsfilerobjcontext.grouptype = ProductsFetchingTypeSectionObj.grouptype;
|
|
9758
|
+
tempfetchproductsfilerobjcontext.grouptyperefid = ProductsFetchingTypeSectionObj.grouptyperefid;
|
|
9548
9759
|
setProductFilterObjContext(_objectSpread$1p({}, tempfetchproductsfilerobjcontext));
|
|
9549
9760
|
}
|
|
9550
9761
|
setFetchQueriesEngineContext(_objectSpread$1p({}, tempFetchQueriesEngineContext));
|
|
@@ -9999,21 +10210,6 @@
|
|
|
9999
10210
|
color: sectionproperties.filterbtn_Textcoloronhover
|
|
10000
10211
|
}
|
|
10001
10212
|
}),
|
|
10002
|
-
viewmorebtn: glamor.css({
|
|
10003
|
-
width: sectionproperties.viewmorebtn_Width + 'px',
|
|
10004
|
-
height: sectionproperties.viewmorebtn_Height + 'px',
|
|
10005
|
-
background: sectionproperties.viewmorebtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.viewmorebtn_bgColor,
|
|
10006
|
-
borderRadius: sectionproperties.viewmorebtn_borderBottomLeftRadius + 'px',
|
|
10007
|
-
color: sectionproperties.viewmorebtn_Textcolor,
|
|
10008
|
-
fontSize: sectionproperties.viewmorebtn_fontSize + 'px',
|
|
10009
|
-
fontWeight: sectionproperties.viewmorebtn_fontWeight,
|
|
10010
|
-
textDecoration: sectionproperties.viewmorebtn_bgtransparent == 'Transparent' ? 'underline' : 'none',
|
|
10011
|
-
transition: '.3s',
|
|
10012
|
-
':hover': {
|
|
10013
|
-
background: sectionproperties.viewmorebtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.viewmorebtn_bgColoronhover,
|
|
10014
|
-
color: sectionproperties.viewmorebtn_Textcoloronhover
|
|
10015
|
-
}
|
|
10016
|
-
}),
|
|
10017
10213
|
cardcontainer: glamor.css({
|
|
10018
10214
|
border: sectionproperties.innersectionborderWidth + 'px solid ' + sectionproperties.innersectionborderColor,
|
|
10019
10215
|
paddingTop: sectionproperties.reservation_padding_top + 'px',
|
|
@@ -10053,7 +10249,7 @@
|
|
|
10053
10249
|
paddingRight: sectionproperties.sectionTitleMarginRight + 'px'
|
|
10054
10250
|
}
|
|
10055
10251
|
}, sectionproperties.sectiontitleshow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10056
|
-
"class": sectionproperties.
|
|
10252
|
+
"class": sectionproperties.sectiontitleposition == 'Centered' ? ' col-lg-12 col-md-12 col-sm-12 d-flex align-items-center p-0 ' : ' col-lg-7 col-md-7 col-sm-7 d-flex align-items-center p-0 '
|
|
10057
10253
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10058
10254
|
// mb-auto
|
|
10059
10255
|
"class": "".concat(generalstyles.sectiontitlecont) + ' col-lg-12 p-0 d-flex align-items-center ',
|
|
@@ -10097,33 +10293,7 @@
|
|
|
10097
10293
|
fontWeight: sectionproperties.prodCatFontWeight,
|
|
10098
10294
|
textAlign: sectionproperties.descriptionCentered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right'
|
|
10099
10295
|
}
|
|
10100
|
-
}, langdetect == 'en' ? sectionproperties.descriptionContentEn : sectionproperties.descriptionContentAr)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10101
|
-
"class": sectionproperties.sectiontitleposition == 'Centered' ? 'col-lg-12 col-md-12 col-sm-12 d-flex align-item-center justify-content-center p-0' : 'col-lg-5 col-md-5 col-sm-5 d-flex align-item-center justify-content-end justify-content-sm-center p-0',
|
|
10102
|
-
style: {
|
|
10103
|
-
marginTop: sectionproperties.sectiontitleposition == 'Centered' ? '10px' : 0
|
|
10104
|
-
}
|
|
10105
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10106
|
-
"class": sectionproperties.sectiontitleposition == 'Centered' ? ' row m-0 w-100 d-flex align-item-center justify-content-center ' : ' row m-0 w-100 d-flex align-item-center justify-content-end '
|
|
10107
|
-
}, sectionproperties.viewmorebtnshow == 'Show' && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
10108
|
-
"class": sectionproperties.sectiontitleposition == 'Centered' ? "".concat(section_cssstyles.viewmorebtn) + ' m-sm-0 allcentered mt-auto mb-auto ' : "".concat(section_cssstyles.viewmorebtn) + ' w-sm-auto btn-circle-resp m-sm-0 mt-auto mb-auto ',
|
|
10109
|
-
onClick: function onClick() {
|
|
10110
|
-
if (fetchingtype == 'products') {
|
|
10111
|
-
if (ProductsFetchingTypeSectionObj.productfetchingtype == 'Collection') {
|
|
10112
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + ProductsFetchingTypeSectionObj.collectionid);
|
|
10113
|
-
} else {
|
|
10114
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
|
|
10115
|
-
}
|
|
10116
|
-
} else {
|
|
10117
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
|
|
10118
|
-
}
|
|
10119
|
-
}
|
|
10120
|
-
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
10121
|
-
"class": sectionproperties.sectiontitleposition == 'Centered' ? 'd-flex justify-content-center align-items-center' : 'd-flex justify-content-center align-items-center d-md-none'
|
|
10122
|
-
}, langdetect == 'en' ? sectionproperties.viewmorebtn_text : sectionproperties.viewmorebtn_text_ar), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
10123
|
-
"class": sectionproperties.sectiontitleposition == 'Centered' ? 'd-none align-items-center justify-content-center' : 'd-none d-md-flex align-items-center justify-content-center'
|
|
10124
|
-
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
10125
|
-
"class": "h-100 d-flex align-items-center justify-content-center"
|
|
10126
|
-
}, langdetect == 'en' ? /*#__PURE__*/React__default["default"].createElement(bs.BsFillArrowRightCircleFill, null) : /*#__PURE__*/React__default["default"].createElement(bs.BsFillArrowLeftCircleFill, null)))))), sectionproperties.showseparator == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10296
|
+
}, langdetect == 'en' ? sectionproperties.descriptionContentEn : sectionproperties.descriptionContentAr)), sectionproperties.showseparator == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10127
10297
|
"class": "col-lg-12 p-0"
|
|
10128
10298
|
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
10129
10299
|
"class": "mt-3 mb-2",
|
|
@@ -10144,7 +10314,7 @@
|
|
|
10144
10314
|
minHeight: '300px'
|
|
10145
10315
|
},
|
|
10146
10316
|
onClick: function onClick() {
|
|
10147
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, cardinfoitem.collectionid);
|
|
10317
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + cardinfoitem.collectionid);
|
|
10148
10318
|
}
|
|
10149
10319
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10150
10320
|
style: {
|
|
@@ -10179,7 +10349,7 @@
|
|
|
10179
10349
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10180
10350
|
"class": section_cssstyles.cardcontainer + ' row m-0 w-100 d-flex align-items-center flex-row cursor-pointer ',
|
|
10181
10351
|
onClick: function onClick() {
|
|
10182
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, cardinfoitem.collectionid);
|
|
10352
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + cardinfoitem.collectionid);
|
|
10183
10353
|
}
|
|
10184
10354
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10185
10355
|
style: {
|
|
@@ -11489,8 +11659,8 @@
|
|
|
11489
11659
|
}
|
|
11490
11660
|
}),
|
|
11491
11661
|
innerSection: glamor.css({
|
|
11492
|
-
position: 'absolute',
|
|
11493
|
-
|
|
11662
|
+
// position: 'absolute',
|
|
11663
|
+
marginTop: '-50px',
|
|
11494
11664
|
backgroundColor: sectionproperties.reservation_bgcolor,
|
|
11495
11665
|
borderRadius: sectionproperties.reservation_borderradius + 'px',
|
|
11496
11666
|
paddingTop: sectionproperties.reservation_padding_top + 'px',
|
|
@@ -11906,7 +12076,7 @@
|
|
|
11906
12076
|
if ((_imagesarray$3 = imagesarray[0]) !== null && _imagesarray$3 !== void 0 && _imagesarray$3.clickable_page_route && ((_imagesarray$4 = imagesarray[0]) === null || _imagesarray$4 === void 0 ? void 0 : _imagesarray$4.clickable_page_route.length) != 0) {
|
|
11907
12077
|
routingcountext(imagesarray[0].clickable_page_route, false, '');
|
|
11908
12078
|
} else {
|
|
11909
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, imagesarray[0].Clickable_Reference_Collection_ID);
|
|
12079
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + imagesarray[0].Clickable_Reference_Collection_ID);
|
|
11910
12080
|
}
|
|
11911
12081
|
}
|
|
11912
12082
|
}
|
|
@@ -11954,7 +12124,7 @@
|
|
|
11954
12124
|
if ((_imagesarray$7 = imagesarray[1]) !== null && _imagesarray$7 !== void 0 && _imagesarray$7.clickable_page_route && ((_imagesarray$8 = imagesarray[1]) === null || _imagesarray$8 === void 0 ? void 0 : _imagesarray$8.clickable_page_route.length) != 0) {
|
|
11955
12125
|
routingcountext(imagesarray[1].clickable_page_route, false, '');
|
|
11956
12126
|
} else {
|
|
11957
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, imagesarray[1].Clickable_Reference_Collection_ID);
|
|
12127
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + imagesarray[1].Clickable_Reference_Collection_ID);
|
|
11958
12128
|
}
|
|
11959
12129
|
}
|
|
11960
12130
|
}
|
|
@@ -12002,7 +12172,7 @@
|
|
|
12002
12172
|
if ((_imagesarray$11 = imagesarray[2]) !== null && _imagesarray$11 !== void 0 && _imagesarray$11.clickable_page_route && ((_imagesarray$12 = imagesarray[2]) === null || _imagesarray$12 === void 0 ? void 0 : _imagesarray$12.clickable_page_route.length) != 0) {
|
|
12003
12173
|
routingcountext(imagesarray[2].clickable_page_route, false, '');
|
|
12004
12174
|
} else {
|
|
12005
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, imagesarray[2].Clickable_Reference_Collection_ID);
|
|
12175
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + imagesarray[2].Clickable_Reference_Collection_ID);
|
|
12006
12176
|
}
|
|
12007
12177
|
}
|
|
12008
12178
|
}
|
|
@@ -12054,7 +12224,7 @@
|
|
|
12054
12224
|
if ((_imagesarray$15 = imagesarray[3]) !== null && _imagesarray$15 !== void 0 && _imagesarray$15.clickable_page_route && ((_imagesarray$16 = imagesarray[3]) === null || _imagesarray$16 === void 0 ? void 0 : _imagesarray$16.clickable_page_route.length) != 0) {
|
|
12055
12225
|
routingcountext(imagesarray[3].clickable_page_route, false, '');
|
|
12056
12226
|
} else {
|
|
12057
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, imagesarray[3].Clickable_Reference_Collection_ID);
|
|
12227
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + imagesarray[3].Clickable_Reference_Collection_ID);
|
|
12058
12228
|
}
|
|
12059
12229
|
}
|
|
12060
12230
|
}
|
|
@@ -12102,7 +12272,7 @@
|
|
|
12102
12272
|
if ((_imagesarray$19 = imagesarray[4]) !== null && _imagesarray$19 !== void 0 && _imagesarray$19.clickable_page_route && ((_imagesarray$20 = imagesarray[4]) === null || _imagesarray$20 === void 0 ? void 0 : _imagesarray$20.clickable_page_route.length) != 0) {
|
|
12103
12273
|
routingcountext(imagesarray[4].clickable_page_route, false, '');
|
|
12104
12274
|
} else {
|
|
12105
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, imagesarray[4].Clickable_Reference_Collection_ID);
|
|
12275
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + imagesarray[4].Clickable_Reference_Collection_ID);
|
|
12106
12276
|
}
|
|
12107
12277
|
}
|
|
12108
12278
|
}
|
|
@@ -13973,7 +14143,7 @@
|
|
|
13973
14143
|
if (item.clickable_page_route && item.clickable_page_route.length != 0) {
|
|
13974
14144
|
routingcountext(item.clickable_page_route, false, '');
|
|
13975
14145
|
} else {
|
|
13976
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.Clickable_Reference_Collection_ID);
|
|
14146
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.Clickable_Reference_Collection_ID);
|
|
13977
14147
|
}
|
|
13978
14148
|
}
|
|
13979
14149
|
}
|
|
@@ -14087,7 +14257,7 @@
|
|
|
14087
14257
|
if (item.clickable_page_route && item.clickable_page_route.length != 0) {
|
|
14088
14258
|
routingcountext(item.clickable_page_route, false, '');
|
|
14089
14259
|
} else {
|
|
14090
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.Clickable_Reference_Collection_ID);
|
|
14260
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.Clickable_Reference_Collection_ID);
|
|
14091
14261
|
}
|
|
14092
14262
|
}
|
|
14093
14263
|
}
|
|
@@ -14126,7 +14296,7 @@
|
|
|
14126
14296
|
if (item.clickable_page_route && item.clickable_page_route.length != 0) {
|
|
14127
14297
|
routingcountext(item.clickable_page_route, false, '');
|
|
14128
14298
|
} else {
|
|
14129
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.Clickable_Reference_Collection_ID);
|
|
14299
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.Clickable_Reference_Collection_ID);
|
|
14130
14300
|
}
|
|
14131
14301
|
}
|
|
14132
14302
|
}
|
|
@@ -15992,7 +16162,7 @@
|
|
|
15992
16162
|
if (item.clickableimg_page_route && item.clickableimg_page_route.length != 0) {
|
|
15993
16163
|
routingcountext(item.clickableimg_page_route, false, '');
|
|
15994
16164
|
} else {
|
|
15995
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.Clickableimg_getcoection);
|
|
16165
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.Clickableimg_getcoection);
|
|
15996
16166
|
}
|
|
15997
16167
|
}
|
|
15998
16168
|
},
|
|
@@ -16014,7 +16184,7 @@
|
|
|
16014
16184
|
if (item.clickableimg_page_route && item.clickableimg_page_route.length != 0) {
|
|
16015
16185
|
routingcountext(item.clickableimg_page_route, false, '');
|
|
16016
16186
|
} else {
|
|
16017
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.Clickableimg_getcoection);
|
|
16187
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.Clickableimg_getcoection);
|
|
16018
16188
|
}
|
|
16019
16189
|
}
|
|
16020
16190
|
},
|
|
@@ -16197,7 +16367,7 @@
|
|
|
16197
16367
|
if (item.clickableimg_page_route && item.clickableimg_page_route.length != 0) {
|
|
16198
16368
|
routingcountext(item.clickableimg_page_route, false, '');
|
|
16199
16369
|
} else {
|
|
16200
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.Clickableimg_getcoection);
|
|
16370
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.Clickableimg_getcoection);
|
|
16201
16371
|
}
|
|
16202
16372
|
}
|
|
16203
16373
|
},
|
|
@@ -16455,7 +16625,7 @@
|
|
|
16455
16625
|
if (item.clickableimg_page_route && item.clickableimg_page_route.length != 0) {
|
|
16456
16626
|
routingcountext(item.clickableimg_page_route, false, '');
|
|
16457
16627
|
} else {
|
|
16458
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.Clickableimg_getcoection);
|
|
16628
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.Clickableimg_getcoection);
|
|
16459
16629
|
}
|
|
16460
16630
|
}
|
|
16461
16631
|
}
|
|
@@ -16482,7 +16652,7 @@
|
|
|
16482
16652
|
if (item.clickableimg_page_route && item.clickableimg_page_route.length != 0) {
|
|
16483
16653
|
routingcountext(item.clickableimg_page_route, false, '');
|
|
16484
16654
|
} else {
|
|
16485
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.Clickableimg_getcoection);
|
|
16655
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.Clickableimg_getcoection);
|
|
16486
16656
|
}
|
|
16487
16657
|
}
|
|
16488
16658
|
}
|
|
@@ -16549,7 +16719,7 @@
|
|
|
16549
16719
|
props.actions.lang;
|
|
16550
16720
|
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
16551
16721
|
var templatepropcontext = props.actions.templatepropcontext;
|
|
16552
|
-
|
|
16722
|
+
props.actions.history;
|
|
16553
16723
|
var _useState = React.useState(false),
|
|
16554
16724
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
16555
16725
|
showdownheadermenu = _useState2[0],
|
|
@@ -16658,7 +16828,8 @@
|
|
|
16658
16828
|
var _props$subheaderprope4, _props$subheaderprope5;
|
|
16659
16829
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
16660
16830
|
onClick: function onClick() {
|
|
16661
|
-
history.push(item.navigationroute);
|
|
16831
|
+
// history.push(item.navigationroute);
|
|
16832
|
+
routingcountext(item.navigationroute);
|
|
16662
16833
|
},
|
|
16663
16834
|
"class": "scrollhorizontalcard",
|
|
16664
16835
|
style: {
|
|
@@ -18706,7 +18877,7 @@
|
|
|
18706
18877
|
}, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i9 = authdetailsContext.instinfo) === null || _authdetailsContext$i9 === void 0 ? void 0 : (_authdetailsContext$i10 = _authdetailsContext$i9.instcollections) === null || _authdetailsContext$i10 === void 0 ? void 0 : _authdetailsContext$i10.map(function (item, index) {
|
|
18707
18878
|
return /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Item, {
|
|
18708
18879
|
onClick: function onClick() {
|
|
18709
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.collectionid);
|
|
18880
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.collectionid);
|
|
18710
18881
|
}
|
|
18711
18882
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18712
18883
|
"class": "".concat(header_cssstyles.dropdownitemcontainer) + ' row m-0 w-100 '
|
|
@@ -19438,10 +19609,9 @@
|
|
|
19438
19609
|
paddingLeft: langdetect == 'ar' ? '2rem' : 0
|
|
19439
19610
|
},
|
|
19440
19611
|
onClick: function onClick() {
|
|
19441
|
-
|
|
19612
|
+
routingcountext(item.navigationroute, false, '');
|
|
19442
19613
|
}
|
|
19443
|
-
}, /*#__PURE__*/React__default["default"].createElement("
|
|
19444
|
-
href: item.navigationroute,
|
|
19614
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19445
19615
|
"class": "".concat(header_cssstyles.navbar_item_text) + ' navbar_item_text '
|
|
19446
19616
|
}, langdetect == 'en' ? item.pagename : item.pagename_ar));
|
|
19447
19617
|
}
|
|
@@ -22205,7 +22375,7 @@
|
|
|
22205
22375
|
}, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i9 = authdetailsContext.instinfo) === null || _authdetailsContext$i9 === void 0 ? void 0 : (_authdetailsContext$i10 = _authdetailsContext$i9.instcollections) === null || _authdetailsContext$i10 === void 0 ? void 0 : _authdetailsContext$i10.map(function (item, index) {
|
|
22206
22376
|
return /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Item, {
|
|
22207
22377
|
onClick: function onClick() {
|
|
22208
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.collectionid);
|
|
22378
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.collectionid);
|
|
22209
22379
|
}
|
|
22210
22380
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
22211
22381
|
"class": "".concat(header_cssstyles.dropdownitemcontainer) + ' row m-0 w-100 '
|
|
@@ -25805,7 +25975,7 @@
|
|
|
25805
25975
|
}, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i9 = authdetailsContext.instinfo) === null || _authdetailsContext$i9 === void 0 ? void 0 : (_authdetailsContext$i10 = _authdetailsContext$i9.instcollections) === null || _authdetailsContext$i10 === void 0 ? void 0 : _authdetailsContext$i10.map(function (item, index) {
|
|
25806
25976
|
return /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Item, {
|
|
25807
25977
|
onClick: function onClick() {
|
|
25808
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.collectionid);
|
|
25978
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.collectionid);
|
|
25809
25979
|
}
|
|
25810
25980
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
25811
25981
|
"class": "".concat(header_cssstyles.dropdownitemcontainer) + ' row m-0 w-100 '
|
|
@@ -26807,7 +26977,7 @@
|
|
|
26807
26977
|
}, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i11 = authdetailsContext.instinfo) === null || _authdetailsContext$i11 === void 0 ? void 0 : (_authdetailsContext$i12 = _authdetailsContext$i11.instcollections) === null || _authdetailsContext$i12 === void 0 ? void 0 : _authdetailsContext$i12.map(function (item, index) {
|
|
26808
26978
|
return /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Item, {
|
|
26809
26979
|
onClick: function onClick() {
|
|
26810
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.collectionid);
|
|
26980
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.collectionid);
|
|
26811
26981
|
}
|
|
26812
26982
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
26813
26983
|
"class": "".concat(header_cssstyles.dropdownitemcontainer) + ' row m-0 w-100 '
|
|
@@ -29390,7 +29560,7 @@
|
|
|
29390
29560
|
}, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : (_authdetailsContext$i2 = _authdetailsContext$i.instcollections) === null || _authdetailsContext$i2 === void 0 ? void 0 : _authdetailsContext$i2.map(function (item, index) {
|
|
29391
29561
|
return /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Item, {
|
|
29392
29562
|
onClick: function onClick() {
|
|
29393
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.collectionid);
|
|
29563
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.collectionid);
|
|
29394
29564
|
}
|
|
29395
29565
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
29396
29566
|
"class": "".concat(header_cssstyles.dropdownitemcontainer) + ' row m-0 w-100 '
|
|
@@ -34138,7 +34308,7 @@
|
|
|
34138
34308
|
}, sectionproperties.prodNameShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
34139
34309
|
onClick: function onClick() {
|
|
34140
34310
|
if (props.fetchingtypeprops == 'collections') {
|
|
34141
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.collectionid);
|
|
34311
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.collectionid);
|
|
34142
34312
|
} else {
|
|
34143
34313
|
routingcountext(StaticPagesLinksContext.productinfo, true, item.productid);
|
|
34144
34314
|
}
|
|
@@ -34146,7 +34316,7 @@
|
|
|
34146
34316
|
style: {
|
|
34147
34317
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
34148
34318
|
},
|
|
34149
|
-
"class": "".concat(cardstyles.productNameStyles) + ' wordbreak wordbreak1
|
|
34319
|
+
"class": "".concat(cardstyles.productNameStyles) + ' wordbreak wordbreak1 m-0 '
|
|
34150
34320
|
}, item.name), sectionproperties.prodCatShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
34151
34321
|
"class": "".concat(cardstyles.productDescStyles) + ' wordbreak wordbreak1 p-0 ',
|
|
34152
34322
|
style: {
|