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.cjs.js
CHANGED
|
@@ -2370,7 +2370,7 @@ var Ordershistory = function Ordershistory(props) {
|
|
|
2370
2370
|
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) {
|
|
2371
2371
|
routingcountext(bgimagesarray[0].clickable_page_route, false, '');
|
|
2372
2372
|
} else {
|
|
2373
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, bgimagesarray[0].Clickable_Reference_Collection_ID);
|
|
2373
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + bgimagesarray[0].Clickable_Reference_Collection_ID);
|
|
2374
2374
|
}
|
|
2375
2375
|
}
|
|
2376
2376
|
}
|
|
@@ -3197,7 +3197,7 @@ var Wishlist = function Wishlist(props) {
|
|
|
3197
3197
|
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) {
|
|
3198
3198
|
routingcountext(bgimagesarray[0].clickable_page_route, false, '');
|
|
3199
3199
|
} else {
|
|
3200
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, bgimagesarray[0].Clickable_Reference_Collection_ID);
|
|
3200
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + bgimagesarray[0].Clickable_Reference_Collection_ID);
|
|
3201
3201
|
}
|
|
3202
3202
|
}
|
|
3203
3203
|
}
|
|
@@ -3865,7 +3865,7 @@ var Viewcart = function Viewcart(props) {
|
|
|
3865
3865
|
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) {
|
|
3866
3866
|
routingcountext(bgimagesarray[0].clickable_page_route, false, '');
|
|
3867
3867
|
} else {
|
|
3868
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, bgimagesarray[0].Clickable_Reference_Collection_ID);
|
|
3868
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + bgimagesarray[0].Clickable_Reference_Collection_ID);
|
|
3869
3869
|
}
|
|
3870
3870
|
}
|
|
3871
3871
|
}
|
|
@@ -6396,7 +6396,7 @@ var AccountInformation = function AccountInformation(props) {
|
|
|
6396
6396
|
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) {
|
|
6397
6397
|
routingcountext(bgimagesarray[0].clickable_page_route, false, '');
|
|
6398
6398
|
} else {
|
|
6399
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, bgimagesarray[0].Clickable_Reference_Collection_ID);
|
|
6399
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + bgimagesarray[0].Clickable_Reference_Collection_ID);
|
|
6400
6400
|
}
|
|
6401
6401
|
}
|
|
6402
6402
|
}
|
|
@@ -6669,7 +6669,7 @@ var Policies = function Policies(props) {
|
|
|
6669
6669
|
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) {
|
|
6670
6670
|
routingcountext(bgimagesarray[0].clickable_page_route, false, '');
|
|
6671
6671
|
} else {
|
|
6672
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, bgimagesarray[0].Clickable_Reference_Collection_ID);
|
|
6672
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + bgimagesarray[0].Clickable_Reference_Collection_ID);
|
|
6673
6673
|
}
|
|
6674
6674
|
}
|
|
6675
6675
|
}
|
|
@@ -9482,6 +9482,220 @@ var Sixverticalcardssection = function Sixverticalcardssection(props) {
|
|
|
9482
9482
|
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; }
|
|
9483
9483
|
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; }
|
|
9484
9484
|
var ModernCardsSection = function ModernCardsSection(props) {
|
|
9485
|
+
// const { ref, inView } = useInView();
|
|
9486
|
+
// const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
9487
|
+
// const lang = props.actions.lang;
|
|
9488
|
+
// const langdetect = props.actions.langdetect;
|
|
9489
|
+
// const fetchcustomercartQueryContext = props.actions.fetchcustomercartQueryContext;
|
|
9490
|
+
// const favoriteprojectscountContext = props.actions.favoriteprojectscountContext;
|
|
9491
|
+
// const routingcountext = props.actions.routingcountext;
|
|
9492
|
+
// const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
9493
|
+
// const ProductFilterObjContext = props.actions.ProductFilterObjContext;
|
|
9494
|
+
// const setProductFilterObjContext = props.actions.setProductFilterObjContext;
|
|
9495
|
+
// const TabexSectionsComponentsContext = props.actions.TabexSectionsComponentsContext;
|
|
9496
|
+
// const FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
|
|
9497
|
+
// const setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
|
|
9498
|
+
// const fetchProductsQuery = props.actions.fetchProductsQuery;
|
|
9499
|
+
// const fetchcollectionsQueryContext = props.actions.fetchcollectionsQueryContext;
|
|
9500
|
+
// const setParentCollectionsForCollectionQueryArr = props.actions.setParentCollectionsForCollectionQueryArr;
|
|
9501
|
+
// const ParentCollectionsForCollectionQueryArr = props.actions.ParentCollectionsForCollectionQueryArr;
|
|
9502
|
+
// const setfetchingtype = props.actions.setfetchingtype;
|
|
9503
|
+
// const fetchingtype = props.actions.fetchingtype;
|
|
9504
|
+
// const actions = props.actions;
|
|
9505
|
+
// const [sectionproperties, setsectionproperties] = useState('');
|
|
9506
|
+
// const [cardsarray, setcardsarray] = useState([]);
|
|
9507
|
+
// React.useEffect(() => {
|
|
9508
|
+
// if (inView) {
|
|
9509
|
+
// fetchProductsQuery.fetchNextPage();
|
|
9510
|
+
// }
|
|
9511
|
+
// }, [inView]);
|
|
9512
|
+
// const [ProductsFetchingTypeSectionObj, setProductsFetchingTypeSectionObj] = useState({ productfetchingtype: 'Random', collectionid: '', grouptype: '' });
|
|
9513
|
+
|
|
9514
|
+
// useEffect(() => {
|
|
9515
|
+
// StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
|
|
9516
|
+
// if (sectionitem.sectionid == props.sectionidprops) {
|
|
9517
|
+
// var secpropobj = {};
|
|
9518
|
+
// sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
|
|
9519
|
+
// secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
|
|
9520
|
+
// });
|
|
9521
|
+
// setsectionproperties({ ...secpropobj });
|
|
9522
|
+
|
|
9523
|
+
// if (props.srcfromprops == 'GeneralProductsComponent') {
|
|
9524
|
+
// setfetchingtype('products');
|
|
9525
|
+
// setProductsFetchingTypeSectionObj({
|
|
9526
|
+
// productfetchingtype: 'Random',
|
|
9527
|
+
// collectionid: props.collectionidprops,
|
|
9528
|
+
// grouptype: props.grouptypeprops,
|
|
9529
|
+
// grouptyperefid: props.grouptyperefidprops,
|
|
9530
|
+
// });
|
|
9531
|
+
// } else {
|
|
9532
|
+
// setfetchingtype(sectionitem.fetchingtype);
|
|
9533
|
+
// setProductsFetchingTypeSectionObj({
|
|
9534
|
+
// productfetchingtype: sectionitem.productsfetchingtype,
|
|
9535
|
+
// collectionid: sectionitem.productsfetchingtypeCollectioncollectionid,
|
|
9536
|
+
// grouptype: props.grouptypeprops,
|
|
9537
|
+
// grouptyperefid: props.grouptyperefidprops,
|
|
9538
|
+
// });
|
|
9539
|
+
// }
|
|
9540
|
+
// }
|
|
9541
|
+
// });
|
|
9542
|
+
// }, [StatePagePropertiesContext]);
|
|
9543
|
+
// useEffect(() => {
|
|
9544
|
+
// if (sectionproperties.length != 0) {
|
|
9545
|
+
// if (cardsarray.length == 0) {
|
|
9546
|
+
// if (fetchingtype == 'collections') {
|
|
9547
|
+
// if (fetchcollectionsQueryContext.isSuccess) {
|
|
9548
|
+
// cardobjassigner(fetchcollectionsQueryContext.data.data.collections);
|
|
9549
|
+
// }
|
|
9550
|
+
// } else if (fetchingtype == 'products') {
|
|
9551
|
+
// if (fetchProductsQuery.isSuccess) {
|
|
9552
|
+
// var allpagesarr = [];
|
|
9553
|
+
// fetchProductsQuery.data.pages.forEach((page) => {
|
|
9554
|
+
// page.data.products.forEach((productobj) => {
|
|
9555
|
+
// allpagesarr.push(productobj);
|
|
9556
|
+
// });
|
|
9557
|
+
// });
|
|
9558
|
+
// cardobjassigner(allpagesarr);
|
|
9559
|
+
// }
|
|
9560
|
+
// }
|
|
9561
|
+
// }
|
|
9562
|
+
// }
|
|
9563
|
+
// }, [sectionproperties]);
|
|
9564
|
+
// useEffect(() => {
|
|
9565
|
+
// if (fetchingtype.length != 0) {
|
|
9566
|
+
// var tempFetchQueriesEngineContext = FetchQueriesEngineContext;
|
|
9567
|
+
// if (fetchingtype == 'collections') {
|
|
9568
|
+
// // tempFetchQueriesEngineContext.collections = true;
|
|
9569
|
+
// if (ProductsFetchingTypeSectionObj.collectionid == 'all' || ProductsFetchingTypeSectionObj.collectionid == null || ProductsFetchingTypeSectionObj.collectionid == undefined) {
|
|
9570
|
+
// setParentCollectionsForCollectionQueryArr('all');
|
|
9571
|
+
// } else {
|
|
9572
|
+
// setParentCollectionsForCollectionQueryArr([ProductsFetchingTypeSectionObj.collectionid]);
|
|
9573
|
+
// }
|
|
9574
|
+
// }
|
|
9575
|
+
// if (fetchingtype == 'products') {
|
|
9576
|
+
// var tempfetchproductsfilerobjcontext = ProductFilterObjContext;
|
|
9577
|
+
// tempfetchproductsfilerobjcontext.ProductFetchingType = ProductsFetchingTypeSectionObj.productfetchingtype;
|
|
9578
|
+
// if (
|
|
9579
|
+
// ProductsFetchingTypeSectionObj.grouptype == 'collections' ||
|
|
9580
|
+
// ProductsFetchingTypeSectionObj.grouptype == 'categories' ||
|
|
9581
|
+
// ProductsFetchingTypeSectionObj.grouptype == 'parentcollections'
|
|
9582
|
+
// ) {
|
|
9583
|
+
// } else {
|
|
9584
|
+
// tempfetchproductsfilerobjcontext.collections.push(ProductsFetchingTypeSectionObj.collectionid);
|
|
9585
|
+
// }
|
|
9586
|
+
// tempfetchproductsfilerobjcontext.grouptype = ProductsFetchingTypeSectionObj.grouptype;
|
|
9587
|
+
// tempfetchproductsfilerobjcontext.grouptyperefid = ProductsFetchingTypeSectionObj.grouptyperefid;
|
|
9588
|
+
// setProductFilterObjContext({ ...tempfetchproductsfilerobjcontext });
|
|
9589
|
+
// }
|
|
9590
|
+
|
|
9591
|
+
// setFetchQueriesEngineContext({ ...tempFetchQueriesEngineContext });
|
|
9592
|
+
// }
|
|
9593
|
+
// }, [fetchingtype, ProductsFetchingTypeSectionObj]);
|
|
9594
|
+
// useEffect(() => {
|
|
9595
|
+
// if (fetchingtype == 'products') {
|
|
9596
|
+
// if (fetchProductsQuery.isSuccess && fetchcustomercartQueryContext.isSuccess) {
|
|
9597
|
+
// var allpagesarr = [];
|
|
9598
|
+
// fetchProductsQuery.data.pages.forEach((page) => {
|
|
9599
|
+
// page.data.products.forEach((productobj) => {
|
|
9600
|
+
// allpagesarr.push(productobj);
|
|
9601
|
+
// });
|
|
9602
|
+
// });
|
|
9603
|
+
// cardobjassigner(allpagesarr);
|
|
9604
|
+
// }
|
|
9605
|
+
// }
|
|
9606
|
+
// }, [fetchProductsQuery.isSuccess, fetchProductsQuery.dataUpdatedAt, fetchProductsQuery.data, fetchcustomercartQueryContext.dataUpdatedAt]);
|
|
9607
|
+
// useEffect(() => {
|
|
9608
|
+
// if (fetchingtype == 'collections') {
|
|
9609
|
+
// if (fetchcollectionsQueryContext.isSuccess) {
|
|
9610
|
+
// cardobjassigner(fetchcollectionsQueryContext.data.data.collections);
|
|
9611
|
+
// }
|
|
9612
|
+
// }
|
|
9613
|
+
// }, [fetchcollectionsQueryContext.isSuccess]);
|
|
9614
|
+
// useEffect(() => {
|
|
9615
|
+
// favassigner();
|
|
9616
|
+
// }, [favoriteprojectscountContext]);
|
|
9617
|
+
// const favassigner = () => {
|
|
9618
|
+
// if (fetchingtype == 'products') {
|
|
9619
|
+
// if (cardsarray.length != 0) {
|
|
9620
|
+
// if (favoriteprojectscountContext != undefined && Array.isArray(favoriteprojectscountContext)) {
|
|
9621
|
+
// var tempcardsarray = [...cardsarray];
|
|
9622
|
+
// tempcardsarray.forEach(function (arrayItem, arrayindex) {
|
|
9623
|
+
// arrayItem.IsFavExists = false;
|
|
9624
|
+
// });
|
|
9625
|
+
// tempcardsarray.forEach(function (arrayItem, arrayindex) {
|
|
9626
|
+
// favoriteprojectscountContext.forEach(function (favitem, favindex) {
|
|
9627
|
+
// if (arrayItem.productid == favitem) {
|
|
9628
|
+
// arrayItem.IsFavExists = true;
|
|
9629
|
+
// }
|
|
9630
|
+
// });
|
|
9631
|
+
// });
|
|
9632
|
+
// setcardsarray([...tempcardsarray]);
|
|
9633
|
+
// }
|
|
9634
|
+
// }
|
|
9635
|
+
// }
|
|
9636
|
+
// };
|
|
9637
|
+
// const cardobjassigner = (fetchedarray) => {
|
|
9638
|
+
// var temparray = [];
|
|
9639
|
+
// fetchedarray.forEach(function (arrayItem, arrayindex) {
|
|
9640
|
+
// var cardobj = {
|
|
9641
|
+
// name: '',
|
|
9642
|
+
// image: '',
|
|
9643
|
+
// };
|
|
9644
|
+
// if (fetchingtype == 'products') {
|
|
9645
|
+
// var itemquantity = 0;
|
|
9646
|
+
// if (langdetect == 'en') {
|
|
9647
|
+
// cardobj.name = arrayItem.productinfo.name_en;
|
|
9648
|
+
// } else {
|
|
9649
|
+
// cardobj.name = arrayItem.productinfo.name_ar;
|
|
9650
|
+
// }
|
|
9651
|
+
// if (langdetect == 'en') {
|
|
9652
|
+
// cardobj.description = arrayItem.productinfo.description_en;
|
|
9653
|
+
// } else {
|
|
9654
|
+
// cardobj.description = arrayItem.productinfo.description_ar;
|
|
9655
|
+
// }
|
|
9656
|
+
// if (arrayItem.productinfo.hasvariants == 0) {
|
|
9657
|
+
// fetchcustomercartQueryContext.data.data.customercart.cartitems.forEach(function (cartitem, cartindex) {
|
|
9658
|
+
// if (cartitem.productid == arrayItem.productinfo.productid) {
|
|
9659
|
+
// itemquantity = cartitem.quantity;
|
|
9660
|
+
// }
|
|
9661
|
+
// });
|
|
9662
|
+
// }
|
|
9663
|
+
// cardobj.image = arrayItem.productinfo.productmainimage;
|
|
9664
|
+
// cardobj.hassale = arrayItem.productinfo.hassale;
|
|
9665
|
+
// cardobj.productid = arrayItem.productinfo.productid;
|
|
9666
|
+
// cardobj.hasvariants = arrayItem.productinfo.hasvariants;
|
|
9667
|
+
// cardobj.description_en = arrayItem.productinfo.description_en;
|
|
9668
|
+
// cardobj.description_ar = arrayItem.productinfo.description_ar;
|
|
9669
|
+
// cardobj.defaultprice = arrayItem.productinfo.defaultprice;
|
|
9670
|
+
// cardobj.defaultsaleprice = arrayItem.productinfo.defaultsaleprice;
|
|
9671
|
+
// cardobj.productimages = arrayItem.productinfo.productimages;
|
|
9672
|
+
// cardobj.quantity = itemquantity;
|
|
9673
|
+
// cardobj.timestamp = arrayItem.productinfo.timestamp;
|
|
9674
|
+
|
|
9675
|
+
// if (favoriteprojectscountContext != undefined && favoriteprojectscountContext.length != 0) {
|
|
9676
|
+
// favoriteprojectscountContext.forEach(function (favitem, favindex) {
|
|
9677
|
+
// if (arrayItem.productinfo.productid == favitem) {
|
|
9678
|
+
// cardobj.IsFavExists = true;
|
|
9679
|
+
// }
|
|
9680
|
+
// });
|
|
9681
|
+
// }
|
|
9682
|
+
// } else if (fetchingtype == 'collections') {
|
|
9683
|
+
// cardobj.collectionid = arrayItem.collectionid;
|
|
9684
|
+
// if (langdetect == 'en') {
|
|
9685
|
+
// cardobj.name = arrayItem.title_en;
|
|
9686
|
+
// cardobj.description = arrayItem.description_en;
|
|
9687
|
+
// } else if (langdetect == 'ar') {
|
|
9688
|
+
// cardobj.name = arrayItem.title_ar;
|
|
9689
|
+
// cardobj.description = arrayItem.description_ar;
|
|
9690
|
+
// }
|
|
9691
|
+
// cardobj.image = arrayItem.collectionlogo;
|
|
9692
|
+
// } else if (fetchingtype == 'custom') {
|
|
9693
|
+
// }
|
|
9694
|
+
// temparray.push(cardobj);
|
|
9695
|
+
// });
|
|
9696
|
+
|
|
9697
|
+
// setcardsarray([...temparray]);
|
|
9698
|
+
// };
|
|
9485
9699
|
var _useInView = reactIntersectionObserver.useInView(),
|
|
9486
9700
|
ref = _useInView.ref,
|
|
9487
9701
|
inView = _useInView.inView;
|
|
@@ -9490,47 +9704,50 @@ var ModernCardsSection = function ModernCardsSection(props) {
|
|
|
9490
9704
|
var langdetect = props.actions.langdetect;
|
|
9491
9705
|
var fetchcustomercartQueryContext = props.actions.fetchcustomercartQueryContext;
|
|
9492
9706
|
var favoriteprojectscountContext = props.actions.favoriteprojectscountContext;
|
|
9707
|
+
var routingcountext = props.actions.routingcountext;
|
|
9708
|
+
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
9493
9709
|
var ProductFilterObjContext = props.actions.ProductFilterObjContext;
|
|
9494
9710
|
var setProductFilterObjContext = props.actions.setProductFilterObjContext;
|
|
9495
9711
|
var TabexSectionsComponentsContext = props.actions.TabexSectionsComponentsContext;
|
|
9496
9712
|
var FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
|
|
9497
9713
|
var setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
|
|
9498
|
-
var SearchHeaderMutationContext = props.actions.SearchHeaderMutationContext;
|
|
9499
9714
|
var fetchProductsQuery = props.actions.fetchProductsQuery;
|
|
9500
9715
|
var fetchcollectionsQueryContext = props.actions.fetchcollectionsQueryContext;
|
|
9501
9716
|
var setParentCollectionsForCollectionQueryArr = props.actions.setParentCollectionsForCollectionQueryArr;
|
|
9717
|
+
props.actions.ParentCollectionsForCollectionQueryArr;
|
|
9502
9718
|
var setfetchingtype = props.actions.setfetchingtype;
|
|
9503
9719
|
var fetchingtype = props.actions.fetchingtype;
|
|
9504
|
-
props.actions.
|
|
9505
|
-
props.actions.setShowProductInfoModalContext;
|
|
9506
|
-
props.actions.authdetailsContext;
|
|
9507
|
-
props.actions.productfiltercontext;
|
|
9508
|
-
props.actions.setproductfiltercontext;
|
|
9720
|
+
props.actions.addtofavoritescontext;
|
|
9509
9721
|
var actions = props.actions;
|
|
9510
9722
|
var _useState = React.useState(''),
|
|
9511
9723
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
9512
9724
|
sectionproperties = _useState2[0],
|
|
9513
9725
|
setsectionproperties = _useState2[1];
|
|
9514
9726
|
var _useState3 = React.useState([]),
|
|
9515
|
-
_useState4 = _slicedToArray__default["default"](_useState3, 2)
|
|
9516
|
-
|
|
9517
|
-
|
|
9518
|
-
var _useState5 = React.useState(
|
|
9727
|
+
_useState4 = _slicedToArray__default["default"](_useState3, 2);
|
|
9728
|
+
_useState4[0];
|
|
9729
|
+
_useState4[1];
|
|
9730
|
+
var _useState5 = React.useState([]),
|
|
9519
9731
|
_useState6 = _slicedToArray__default["default"](_useState5, 2),
|
|
9520
|
-
|
|
9521
|
-
_useState6[1];
|
|
9732
|
+
cardsarray = _useState6[0],
|
|
9733
|
+
setcardsarray = _useState6[1];
|
|
9734
|
+
var _useState7 = React.useState(''),
|
|
9735
|
+
_useState8 = _slicedToArray__default["default"](_useState7, 2);
|
|
9736
|
+
_useState8[0];
|
|
9737
|
+
_useState8[1];
|
|
9522
9738
|
React__default["default"].useEffect(function () {
|
|
9523
9739
|
if (inView) {
|
|
9524
9740
|
fetchProductsQuery.fetchNextPage();
|
|
9525
9741
|
}
|
|
9526
9742
|
}, [inView]);
|
|
9527
|
-
var
|
|
9743
|
+
var _useState9 = React.useState({
|
|
9528
9744
|
productfetchingtype: 'Random',
|
|
9529
|
-
collectionid: ''
|
|
9745
|
+
collectionid: '',
|
|
9746
|
+
grouptype: ''
|
|
9530
9747
|
}),
|
|
9531
|
-
|
|
9532
|
-
ProductsFetchingTypeSectionObj =
|
|
9533
|
-
setProductsFetchingTypeSectionObj =
|
|
9748
|
+
_useState10 = _slicedToArray__default["default"](_useState9, 2),
|
|
9749
|
+
ProductsFetchingTypeSectionObj = _useState10[0],
|
|
9750
|
+
setProductsFetchingTypeSectionObj = _useState10[1];
|
|
9534
9751
|
React.useEffect(function () {
|
|
9535
9752
|
StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
|
|
9536
9753
|
if (sectionitem.sectionid == props.sectionidprops) {
|
|
@@ -9543,31 +9760,22 @@ var ModernCardsSection = function ModernCardsSection(props) {
|
|
|
9543
9760
|
setfetchingtype('products');
|
|
9544
9761
|
setProductsFetchingTypeSectionObj({
|
|
9545
9762
|
productfetchingtype: 'Random',
|
|
9546
|
-
collectionid: props.collectionidprops
|
|
9763
|
+
collectionid: props.collectionidprops,
|
|
9764
|
+
grouptype: props.grouptypeprops,
|
|
9765
|
+
grouptyperefid: props.grouptyperefidprops
|
|
9547
9766
|
});
|
|
9548
9767
|
} else {
|
|
9549
9768
|
setfetchingtype(sectionitem.fetchingtype);
|
|
9550
9769
|
setProductsFetchingTypeSectionObj({
|
|
9551
9770
|
productfetchingtype: sectionitem.productsfetchingtype,
|
|
9552
|
-
collectionid: sectionitem.productsfetchingtypeCollectioncollectionid
|
|
9771
|
+
collectionid: sectionitem.productsfetchingtypeCollectioncollectionid,
|
|
9772
|
+
grouptype: props.grouptypeprops,
|
|
9773
|
+
grouptyperefid: props.grouptyperefidprops
|
|
9553
9774
|
});
|
|
9554
9775
|
}
|
|
9555
9776
|
}
|
|
9556
9777
|
});
|
|
9557
9778
|
}, [StatePagePropertiesContext]);
|
|
9558
|
-
React.useEffect(function () {
|
|
9559
|
-
SearchHeaderMutationContext.reset();
|
|
9560
|
-
var delayDebounceFn = setTimeout(function () {
|
|
9561
|
-
if (searchinput.length != 0) {
|
|
9562
|
-
SearchHeaderMutationContext.mutate({
|
|
9563
|
-
SearchHeaderValue: searchinput
|
|
9564
|
-
});
|
|
9565
|
-
}
|
|
9566
|
-
}, 1000);
|
|
9567
|
-
return function () {
|
|
9568
|
-
return clearTimeout(delayDebounceFn);
|
|
9569
|
-
};
|
|
9570
|
-
}, [searchinput]);
|
|
9571
9779
|
React.useEffect(function () {
|
|
9572
9780
|
if (sectionproperties.length != 0) {
|
|
9573
9781
|
if (cardsarray.length == 0) {
|
|
@@ -9594,7 +9802,6 @@ var ModernCardsSection = function ModernCardsSection(props) {
|
|
|
9594
9802
|
var tempFetchQueriesEngineContext = FetchQueriesEngineContext;
|
|
9595
9803
|
if (fetchingtype == 'collections') {
|
|
9596
9804
|
// tempFetchQueriesEngineContext.collections = true;
|
|
9597
|
-
|
|
9598
9805
|
if (ProductsFetchingTypeSectionObj.collectionid == 'all' || ProductsFetchingTypeSectionObj.collectionid == null || ProductsFetchingTypeSectionObj.collectionid == undefined) {
|
|
9599
9806
|
setParentCollectionsForCollectionQueryArr('all');
|
|
9600
9807
|
} else {
|
|
@@ -9604,7 +9811,11 @@ var ModernCardsSection = function ModernCardsSection(props) {
|
|
|
9604
9811
|
if (fetchingtype == 'products') {
|
|
9605
9812
|
var tempfetchproductsfilerobjcontext = ProductFilterObjContext;
|
|
9606
9813
|
tempfetchproductsfilerobjcontext.ProductFetchingType = ProductsFetchingTypeSectionObj.productfetchingtype;
|
|
9607
|
-
|
|
9814
|
+
if (ProductsFetchingTypeSectionObj.grouptype == 'collections' || ProductsFetchingTypeSectionObj.grouptype == 'categories' || ProductsFetchingTypeSectionObj.grouptype == 'parentcollections') ; else {
|
|
9815
|
+
tempfetchproductsfilerobjcontext.collections.push(ProductsFetchingTypeSectionObj.collectionid);
|
|
9816
|
+
}
|
|
9817
|
+
tempfetchproductsfilerobjcontext.grouptype = ProductsFetchingTypeSectionObj.grouptype;
|
|
9818
|
+
tempfetchproductsfilerobjcontext.grouptyperefid = ProductsFetchingTypeSectionObj.grouptyperefid;
|
|
9608
9819
|
setProductFilterObjContext(_objectSpread$1p({}, tempfetchproductsfilerobjcontext));
|
|
9609
9820
|
}
|
|
9610
9821
|
setFetchQueriesEngineContext(_objectSpread$1p({}, tempFetchQueriesEngineContext));
|
|
@@ -10059,21 +10270,6 @@ var ElegantCategoriesCardSection = function ElegantCategoriesCardSection(props)
|
|
|
10059
10270
|
color: sectionproperties.filterbtn_Textcoloronhover
|
|
10060
10271
|
}
|
|
10061
10272
|
}),
|
|
10062
|
-
viewmorebtn: glamor.css({
|
|
10063
|
-
width: sectionproperties.viewmorebtn_Width + 'px',
|
|
10064
|
-
height: sectionproperties.viewmorebtn_Height + 'px',
|
|
10065
|
-
background: sectionproperties.viewmorebtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.viewmorebtn_bgColor,
|
|
10066
|
-
borderRadius: sectionproperties.viewmorebtn_borderBottomLeftRadius + 'px',
|
|
10067
|
-
color: sectionproperties.viewmorebtn_Textcolor,
|
|
10068
|
-
fontSize: sectionproperties.viewmorebtn_fontSize + 'px',
|
|
10069
|
-
fontWeight: sectionproperties.viewmorebtn_fontWeight,
|
|
10070
|
-
textDecoration: sectionproperties.viewmorebtn_bgtransparent == 'Transparent' ? 'underline' : 'none',
|
|
10071
|
-
transition: '.3s',
|
|
10072
|
-
':hover': {
|
|
10073
|
-
background: sectionproperties.viewmorebtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.viewmorebtn_bgColoronhover,
|
|
10074
|
-
color: sectionproperties.viewmorebtn_Textcoloronhover
|
|
10075
|
-
}
|
|
10076
|
-
}),
|
|
10077
10273
|
cardcontainer: glamor.css({
|
|
10078
10274
|
border: sectionproperties.innersectionborderWidth + 'px solid ' + sectionproperties.innersectionborderColor,
|
|
10079
10275
|
paddingTop: sectionproperties.reservation_padding_top + 'px',
|
|
@@ -10113,7 +10309,7 @@ var ElegantCategoriesCardSection = function ElegantCategoriesCardSection(props)
|
|
|
10113
10309
|
paddingRight: sectionproperties.sectionTitleMarginRight + 'px'
|
|
10114
10310
|
}
|
|
10115
10311
|
}, sectionproperties.sectiontitleshow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10116
|
-
"class": sectionproperties.
|
|
10312
|
+
"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 '
|
|
10117
10313
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10118
10314
|
// mb-auto
|
|
10119
10315
|
"class": "".concat(generalstyles.sectiontitlecont) + ' col-lg-12 p-0 d-flex align-items-center ',
|
|
@@ -10157,33 +10353,7 @@ var ElegantCategoriesCardSection = function ElegantCategoriesCardSection(props)
|
|
|
10157
10353
|
fontWeight: sectionproperties.prodCatFontWeight,
|
|
10158
10354
|
textAlign: sectionproperties.descriptionCentered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right'
|
|
10159
10355
|
}
|
|
10160
|
-
}, langdetect == 'en' ? sectionproperties.descriptionContentEn : sectionproperties.descriptionContentAr)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10161
|
-
"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',
|
|
10162
|
-
style: {
|
|
10163
|
-
marginTop: sectionproperties.sectiontitleposition == 'Centered' ? '10px' : 0
|
|
10164
|
-
}
|
|
10165
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10166
|
-
"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 '
|
|
10167
|
-
}, sectionproperties.viewmorebtnshow == 'Show' && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
10168
|
-
"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 ',
|
|
10169
|
-
onClick: function onClick() {
|
|
10170
|
-
if (fetchingtype == 'products') {
|
|
10171
|
-
if (ProductsFetchingTypeSectionObj.productfetchingtype == 'Collection') {
|
|
10172
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + ProductsFetchingTypeSectionObj.collectionid);
|
|
10173
|
-
} else {
|
|
10174
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
|
|
10175
|
-
}
|
|
10176
|
-
} else {
|
|
10177
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
|
|
10178
|
-
}
|
|
10179
|
-
}
|
|
10180
|
-
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
10181
|
-
"class": sectionproperties.sectiontitleposition == 'Centered' ? 'd-flex justify-content-center align-items-center' : 'd-flex justify-content-center align-items-center d-md-none'
|
|
10182
|
-
}, langdetect == 'en' ? sectionproperties.viewmorebtn_text : sectionproperties.viewmorebtn_text_ar), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
10183
|
-
"class": sectionproperties.sectiontitleposition == 'Centered' ? 'd-none align-items-center justify-content-center' : 'd-none d-md-flex align-items-center justify-content-center'
|
|
10184
|
-
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
10185
|
-
"class": "h-100 d-flex align-items-center justify-content-center"
|
|
10186
|
-
}, 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", {
|
|
10356
|
+
}, langdetect == 'en' ? sectionproperties.descriptionContentEn : sectionproperties.descriptionContentAr)), sectionproperties.showseparator == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10187
10357
|
"class": "col-lg-12 p-0"
|
|
10188
10358
|
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
10189
10359
|
"class": "mt-3 mb-2",
|
|
@@ -10204,7 +10374,7 @@ var ElegantCategoriesCardSection = function ElegantCategoriesCardSection(props)
|
|
|
10204
10374
|
minHeight: '300px'
|
|
10205
10375
|
},
|
|
10206
10376
|
onClick: function onClick() {
|
|
10207
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, cardinfoitem.collectionid);
|
|
10377
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + cardinfoitem.collectionid);
|
|
10208
10378
|
}
|
|
10209
10379
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10210
10380
|
style: {
|
|
@@ -10239,7 +10409,7 @@ var ElegantCategoriesCardSection = function ElegantCategoriesCardSection(props)
|
|
|
10239
10409
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10240
10410
|
"class": section_cssstyles.cardcontainer + ' row m-0 w-100 d-flex align-items-center flex-row cursor-pointer ',
|
|
10241
10411
|
onClick: function onClick() {
|
|
10242
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, cardinfoitem.collectionid);
|
|
10412
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + cardinfoitem.collectionid);
|
|
10243
10413
|
}
|
|
10244
10414
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10245
10415
|
style: {
|
|
@@ -11549,8 +11719,8 @@ var BackgroundSectionWithServicesCards = function BackgroundSectionWithServicesC
|
|
|
11549
11719
|
}
|
|
11550
11720
|
}),
|
|
11551
11721
|
innerSection: glamor.css({
|
|
11552
|
-
position: 'absolute',
|
|
11553
|
-
|
|
11722
|
+
// position: 'absolute',
|
|
11723
|
+
marginTop: '-50px',
|
|
11554
11724
|
backgroundColor: sectionproperties.reservation_bgcolor,
|
|
11555
11725
|
borderRadius: sectionproperties.reservation_borderradius + 'px',
|
|
11556
11726
|
paddingTop: sectionproperties.reservation_padding_top + 'px',
|
|
@@ -11966,7 +12136,7 @@ var BackgroundFiveImageStructure = function BackgroundFiveImageStructure(props)
|
|
|
11966
12136
|
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) {
|
|
11967
12137
|
routingcountext(imagesarray[0].clickable_page_route, false, '');
|
|
11968
12138
|
} else {
|
|
11969
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, imagesarray[0].Clickable_Reference_Collection_ID);
|
|
12139
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + imagesarray[0].Clickable_Reference_Collection_ID);
|
|
11970
12140
|
}
|
|
11971
12141
|
}
|
|
11972
12142
|
}
|
|
@@ -12014,7 +12184,7 @@ var BackgroundFiveImageStructure = function BackgroundFiveImageStructure(props)
|
|
|
12014
12184
|
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) {
|
|
12015
12185
|
routingcountext(imagesarray[1].clickable_page_route, false, '');
|
|
12016
12186
|
} else {
|
|
12017
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, imagesarray[1].Clickable_Reference_Collection_ID);
|
|
12187
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + imagesarray[1].Clickable_Reference_Collection_ID);
|
|
12018
12188
|
}
|
|
12019
12189
|
}
|
|
12020
12190
|
}
|
|
@@ -12062,7 +12232,7 @@ var BackgroundFiveImageStructure = function BackgroundFiveImageStructure(props)
|
|
|
12062
12232
|
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) {
|
|
12063
12233
|
routingcountext(imagesarray[2].clickable_page_route, false, '');
|
|
12064
12234
|
} else {
|
|
12065
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, imagesarray[2].Clickable_Reference_Collection_ID);
|
|
12235
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + imagesarray[2].Clickable_Reference_Collection_ID);
|
|
12066
12236
|
}
|
|
12067
12237
|
}
|
|
12068
12238
|
}
|
|
@@ -12114,7 +12284,7 @@ var BackgroundFiveImageStructure = function BackgroundFiveImageStructure(props)
|
|
|
12114
12284
|
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) {
|
|
12115
12285
|
routingcountext(imagesarray[3].clickable_page_route, false, '');
|
|
12116
12286
|
} else {
|
|
12117
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, imagesarray[3].Clickable_Reference_Collection_ID);
|
|
12287
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + imagesarray[3].Clickable_Reference_Collection_ID);
|
|
12118
12288
|
}
|
|
12119
12289
|
}
|
|
12120
12290
|
}
|
|
@@ -12162,7 +12332,7 @@ var BackgroundFiveImageStructure = function BackgroundFiveImageStructure(props)
|
|
|
12162
12332
|
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) {
|
|
12163
12333
|
routingcountext(imagesarray[4].clickable_page_route, false, '');
|
|
12164
12334
|
} else {
|
|
12165
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, imagesarray[4].Clickable_Reference_Collection_ID);
|
|
12335
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + imagesarray[4].Clickable_Reference_Collection_ID);
|
|
12166
12336
|
}
|
|
12167
12337
|
}
|
|
12168
12338
|
}
|
|
@@ -14033,7 +14203,7 @@ var Twobgimages = function Twobgimages(props) {
|
|
|
14033
14203
|
if (item.clickable_page_route && item.clickable_page_route.length != 0) {
|
|
14034
14204
|
routingcountext(item.clickable_page_route, false, '');
|
|
14035
14205
|
} else {
|
|
14036
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.Clickable_Reference_Collection_ID);
|
|
14206
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.Clickable_Reference_Collection_ID);
|
|
14037
14207
|
}
|
|
14038
14208
|
}
|
|
14039
14209
|
}
|
|
@@ -14147,7 +14317,7 @@ var Twobgimages = function Twobgimages(props) {
|
|
|
14147
14317
|
if (item.clickable_page_route && item.clickable_page_route.length != 0) {
|
|
14148
14318
|
routingcountext(item.clickable_page_route, false, '');
|
|
14149
14319
|
} else {
|
|
14150
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.Clickable_Reference_Collection_ID);
|
|
14320
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.Clickable_Reference_Collection_ID);
|
|
14151
14321
|
}
|
|
14152
14322
|
}
|
|
14153
14323
|
}
|
|
@@ -14186,7 +14356,7 @@ var Twobgimages = function Twobgimages(props) {
|
|
|
14186
14356
|
if (item.clickable_page_route && item.clickable_page_route.length != 0) {
|
|
14187
14357
|
routingcountext(item.clickable_page_route, false, '');
|
|
14188
14358
|
} else {
|
|
14189
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.Clickable_Reference_Collection_ID);
|
|
14359
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.Clickable_Reference_Collection_ID);
|
|
14190
14360
|
}
|
|
14191
14361
|
}
|
|
14192
14362
|
}
|
|
@@ -16052,7 +16222,7 @@ var Slideshowfade = function Slideshowfade(props) {
|
|
|
16052
16222
|
if (item.clickableimg_page_route && item.clickableimg_page_route.length != 0) {
|
|
16053
16223
|
routingcountext(item.clickableimg_page_route, false, '');
|
|
16054
16224
|
} else {
|
|
16055
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.Clickableimg_getcoection);
|
|
16225
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.Clickableimg_getcoection);
|
|
16056
16226
|
}
|
|
16057
16227
|
}
|
|
16058
16228
|
},
|
|
@@ -16074,7 +16244,7 @@ var Slideshowfade = function Slideshowfade(props) {
|
|
|
16074
16244
|
if (item.clickableimg_page_route && item.clickableimg_page_route.length != 0) {
|
|
16075
16245
|
routingcountext(item.clickableimg_page_route, false, '');
|
|
16076
16246
|
} else {
|
|
16077
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.Clickableimg_getcoection);
|
|
16247
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.Clickableimg_getcoection);
|
|
16078
16248
|
}
|
|
16079
16249
|
}
|
|
16080
16250
|
},
|
|
@@ -16257,7 +16427,7 @@ var Slideshowslide = function Slideshowslide(props) {
|
|
|
16257
16427
|
if (item.clickableimg_page_route && item.clickableimg_page_route.length != 0) {
|
|
16258
16428
|
routingcountext(item.clickableimg_page_route, false, '');
|
|
16259
16429
|
} else {
|
|
16260
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.Clickableimg_getcoection);
|
|
16430
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.Clickableimg_getcoection);
|
|
16261
16431
|
}
|
|
16262
16432
|
}
|
|
16263
16433
|
},
|
|
@@ -16515,7 +16685,7 @@ var Slideshowzoom = function Slideshowzoom(props) {
|
|
|
16515
16685
|
if (item.clickableimg_page_route && item.clickableimg_page_route.length != 0) {
|
|
16516
16686
|
routingcountext(item.clickableimg_page_route, false, '');
|
|
16517
16687
|
} else {
|
|
16518
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.Clickableimg_getcoection);
|
|
16688
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.Clickableimg_getcoection);
|
|
16519
16689
|
}
|
|
16520
16690
|
}
|
|
16521
16691
|
}
|
|
@@ -16542,7 +16712,7 @@ var Slideshowzoom = function Slideshowzoom(props) {
|
|
|
16542
16712
|
if (item.clickableimg_page_route && item.clickableimg_page_route.length != 0) {
|
|
16543
16713
|
routingcountext(item.clickableimg_page_route, false, '');
|
|
16544
16714
|
} else {
|
|
16545
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.Clickableimg_getcoection);
|
|
16715
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.Clickableimg_getcoection);
|
|
16546
16716
|
}
|
|
16547
16717
|
}
|
|
16548
16718
|
}
|
|
@@ -16609,7 +16779,7 @@ var Subheader = function Subheader(props) {
|
|
|
16609
16779
|
props.actions.lang;
|
|
16610
16780
|
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
16611
16781
|
var templatepropcontext = props.actions.templatepropcontext;
|
|
16612
|
-
|
|
16782
|
+
props.actions.history;
|
|
16613
16783
|
var _useState = React.useState(false),
|
|
16614
16784
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
16615
16785
|
showdownheadermenu = _useState2[0],
|
|
@@ -16718,7 +16888,8 @@ var Subheader = function Subheader(props) {
|
|
|
16718
16888
|
var _props$subheaderprope4, _props$subheaderprope5;
|
|
16719
16889
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
16720
16890
|
onClick: function onClick() {
|
|
16721
|
-
history.push(item.navigationroute);
|
|
16891
|
+
// history.push(item.navigationroute);
|
|
16892
|
+
routingcountext(item.navigationroute);
|
|
16722
16893
|
},
|
|
16723
16894
|
"class": "scrollhorizontalcard",
|
|
16724
16895
|
style: {
|
|
@@ -18766,7 +18937,7 @@ var CategoryFeaturingHeader = function CategoryFeaturingHeader(props) {
|
|
|
18766
18937
|
}, 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) {
|
|
18767
18938
|
return /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Item, {
|
|
18768
18939
|
onClick: function onClick() {
|
|
18769
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.collectionid);
|
|
18940
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.collectionid);
|
|
18770
18941
|
}
|
|
18771
18942
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18772
18943
|
"class": "".concat(header_cssstyles.dropdownitemcontainer) + ' row m-0 w-100 '
|
|
@@ -19498,10 +19669,9 @@ var ClassicHeader = function ClassicHeader(props) {
|
|
|
19498
19669
|
paddingLeft: langdetect == 'ar' ? '2rem' : 0
|
|
19499
19670
|
},
|
|
19500
19671
|
onClick: function onClick() {
|
|
19501
|
-
|
|
19672
|
+
routingcountext(item.navigationroute, false, '');
|
|
19502
19673
|
}
|
|
19503
|
-
}, /*#__PURE__*/React__default["default"].createElement("
|
|
19504
|
-
href: item.navigationroute,
|
|
19674
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19505
19675
|
"class": "".concat(header_cssstyles.navbar_item_text) + ' navbar_item_text '
|
|
19506
19676
|
}, langdetect == 'en' ? item.pagename : item.pagename_ar));
|
|
19507
19677
|
}
|
|
@@ -22265,7 +22435,7 @@ var Header8 = function Header8(props) {
|
|
|
22265
22435
|
}, 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) {
|
|
22266
22436
|
return /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Item, {
|
|
22267
22437
|
onClick: function onClick() {
|
|
22268
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.collectionid);
|
|
22438
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.collectionid);
|
|
22269
22439
|
}
|
|
22270
22440
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
22271
22441
|
"class": "".concat(header_cssstyles.dropdownitemcontainer) + ' row m-0 w-100 '
|
|
@@ -25865,7 +26035,7 @@ var ThreeTieredHeader = function ThreeTieredHeader(props) {
|
|
|
25865
26035
|
}, 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) {
|
|
25866
26036
|
return /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Item, {
|
|
25867
26037
|
onClick: function onClick() {
|
|
25868
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.collectionid);
|
|
26038
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.collectionid);
|
|
25869
26039
|
}
|
|
25870
26040
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
25871
26041
|
"class": "".concat(header_cssstyles.dropdownitemcontainer) + ' row m-0 w-100 '
|
|
@@ -26867,7 +27037,7 @@ var SearchFocusedHeader = function SearchFocusedHeader(props) {
|
|
|
26867
27037
|
}, 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) {
|
|
26868
27038
|
return /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Item, {
|
|
26869
27039
|
onClick: function onClick() {
|
|
26870
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.collectionid);
|
|
27040
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.collectionid);
|
|
26871
27041
|
}
|
|
26872
27042
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
26873
27043
|
"class": "".concat(header_cssstyles.dropdownitemcontainer) + ' row m-0 w-100 '
|
|
@@ -29450,7 +29620,7 @@ var SearchHeader = function SearchHeader(props) {
|
|
|
29450
29620
|
}, 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) {
|
|
29451
29621
|
return /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Item, {
|
|
29452
29622
|
onClick: function onClick() {
|
|
29453
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.collectionid);
|
|
29623
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.collectionid);
|
|
29454
29624
|
}
|
|
29455
29625
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
29456
29626
|
"class": "".concat(header_cssstyles.dropdownitemcontainer) + ' row m-0 w-100 '
|
|
@@ -34198,7 +34368,7 @@ var Card20 = function Card20(props) {
|
|
|
34198
34368
|
}, sectionproperties.prodNameShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
34199
34369
|
onClick: function onClick() {
|
|
34200
34370
|
if (props.fetchingtypeprops == 'collections') {
|
|
34201
|
-
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.collectionid);
|
|
34371
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.collectionid);
|
|
34202
34372
|
} else {
|
|
34203
34373
|
routingcountext(StaticPagesLinksContext.productinfo, true, item.productid);
|
|
34204
34374
|
}
|
|
@@ -34206,7 +34376,7 @@ var Card20 = function Card20(props) {
|
|
|
34206
34376
|
style: {
|
|
34207
34377
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
34208
34378
|
},
|
|
34209
|
-
"class": "".concat(cardstyles.productNameStyles) + ' wordbreak wordbreak1
|
|
34379
|
+
"class": "".concat(cardstyles.productNameStyles) + ' wordbreak wordbreak1 m-0 '
|
|
34210
34380
|
}, item.name), sectionproperties.prodCatShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
34211
34381
|
"class": "".concat(cardstyles.productDescStyles) + ' wordbreak wordbreak1 p-0 ',
|
|
34212
34382
|
style: {
|