tabexseriescomponents 0.0.473 → 0.0.475

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -46720,6 +46720,7 @@ var CardsSection2 = function CardsSection2(props) {
46720
46720
  cardobj.productfeature = arrayItem === null || arrayItem === void 0 || (_arrayItem$features2 = arrayItem.features) === null || _arrayItem$features2 === void 0 ? void 0 : _arrayItem$features2.value_ar;
46721
46721
  }
46722
46722
  cardobj.productfeatureid = arrayItem === null || arrayItem === void 0 || (_arrayItem$features3 = arrayItem.features) === null || _arrayItem$features3 === void 0 ? void 0 : _arrayItem$features3.featureid;
46723
+ cardobj.productendpointurl = arrayItem.productinfo.productendpointurl;
46723
46724
  cardobj.hassale = arrayItem.productinfo.hassale;
46724
46725
  cardobj.productid = arrayItem.productinfo.productid;
46725
46726
  cardobj.hasvariants = arrayItem.productinfo.hasvariants;
@@ -47151,6 +47152,7 @@ var Sixverticalcardssection = function Sixverticalcardssection(props) {
47151
47152
  image: ''
47152
47153
  };
47153
47154
  if (fetchingtype == 'products') {
47155
+ var _arrayItem$features3;
47154
47156
  var itemquantity = 0;
47155
47157
  if (langdetect == 'en') {
47156
47158
  cardobj.name = arrayItem.productinfo.name_en;
@@ -47162,6 +47164,11 @@ var Sixverticalcardssection = function Sixverticalcardssection(props) {
47162
47164
  } else {
47163
47165
  cardobj.description = arrayItem.productinfo.description_ar;
47164
47166
  }
47167
+ if (langdetect == 'en') {
47168
+ cardobj.shortdescription = arrayItem.short_description_en;
47169
+ } else {
47170
+ cardobj.shortdescription = arrayItem.short_description_ar;
47171
+ }
47165
47172
  if (arrayItem.productinfo.hasvariants == 0) {
47166
47173
  fetchcustomercartQueryContext.data.data.customercart.cartitems.forEach(function (cartitem, cartindex) {
47167
47174
  if (cartitem.productid == arrayItem.productinfo.productid) {
@@ -47170,6 +47177,16 @@ var Sixverticalcardssection = function Sixverticalcardssection(props) {
47170
47177
  });
47171
47178
  }
47172
47179
  cardobj.image = arrayItem.productinfo.productmainimage;
47180
+ cardobj.producttags = arrayItem.tags;
47181
+ if (langdetect == 'en') {
47182
+ var _arrayItem$features;
47183
+ cardobj.productfeature = arrayItem === null || arrayItem === void 0 || (_arrayItem$features = arrayItem.features) === null || _arrayItem$features === void 0 ? void 0 : _arrayItem$features.value_en;
47184
+ } else {
47185
+ var _arrayItem$features2;
47186
+ cardobj.productfeature = arrayItem === null || arrayItem === void 0 || (_arrayItem$features2 = arrayItem.features) === null || _arrayItem$features2 === void 0 ? void 0 : _arrayItem$features2.value_ar;
47187
+ }
47188
+ cardobj.productfeatureid = arrayItem === null || arrayItem === void 0 || (_arrayItem$features3 = arrayItem.features) === null || _arrayItem$features3 === void 0 ? void 0 : _arrayItem$features3.featureid;
47189
+ cardobj.productendpointurl = arrayItem.productinfo.productendpointurl;
47173
47190
  cardobj.hassale = arrayItem.productinfo.hassale;
47174
47191
  cardobj.productid = arrayItem.productinfo.productid;
47175
47192
  cardobj.hasvariants = arrayItem.productinfo.hasvariants;
@@ -47179,11 +47196,24 @@ var Sixverticalcardssection = function Sixverticalcardssection(props) {
47179
47196
  cardobj.defaultsaleprice = arrayItem.productinfo.defaultsaleprice;
47180
47197
  cardobj.productimages = arrayItem.productinfo.productimages;
47181
47198
  cardobj.quantity = itemquantity;
47199
+ // cardobj.currentquantity = currentquantity;
47182
47200
  cardobj.timestamp = arrayItem.productinfo.timestamp;
47201
+ cardobj.productquantity = arrayItem.productinfo.productquantity;
47202
+ cardobj.currentquantity = arrayItem.productinfo.currentquantity;
47203
+ cardobj.quantavailtype = arrayItem.productinfo.quantavailtype;
47204
+ cardobj.isproducttobesold = arrayItem.productinfo.isproducttobesold;
47205
+ cardobj.measurmentunit = arrayItem.productinfo.measurmentunit;
47206
+ cardobj.prodaffpercentprofit = arrayItem.productinfo.prodaffpercentprofit;
47207
+ cardobj.productcashbackvalue = arrayItem.productinfo.productcashbackvalue;
47208
+ cardobj.product_phonenumber = arrayItem.productinfo.product_phonenumber;
47209
+ cardobj.productcanrate = arrayItem.productinfo.productcanrate;
47210
+ cardobj.sku = arrayItem.productinfo.sku;
47183
47211
  if (langdetect == 'en') {
47184
- cardobj.currencyname = fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 ? void 0 : fetchAuthorizationQueryContext.data.data.currencyname_en;
47212
+ var _fetchAuthorizationQu;
47213
+ cardobj.currencyname = fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 || (_fetchAuthorizationQu = fetchAuthorizationQueryContext.data) === null || _fetchAuthorizationQu === void 0 || (_fetchAuthorizationQu = _fetchAuthorizationQu.data) === null || _fetchAuthorizationQu === void 0 ? void 0 : _fetchAuthorizationQu.currencyname_en;
47185
47214
  } else {
47186
- cardobj.currencyname = fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 ? void 0 : fetchAuthorizationQueryContext.data.data.currencyname_ar;
47215
+ var _fetchAuthorizationQu2;
47216
+ cardobj.currencyname = fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 || (_fetchAuthorizationQu2 = fetchAuthorizationQueryContext.data) === null || _fetchAuthorizationQu2 === void 0 || (_fetchAuthorizationQu2 = _fetchAuthorizationQu2.data) === null || _fetchAuthorizationQu2 === void 0 ? void 0 : _fetchAuthorizationQu2.currencyname_ar;
47187
47217
  }
47188
47218
  if (favoriteprojectscountContext != undefined && favoriteprojectscountContext.length != 0) {
47189
47219
  favoriteprojectscountContext.forEach(function (favitem, favindex) {
@@ -47192,8 +47222,9 @@ var Sixverticalcardssection = function Sixverticalcardssection(props) {
47192
47222
  }
47193
47223
  });
47194
47224
  }
47195
- } else if (fetchingtype == 'collections') {
47225
+ } else if (fetchingtype == 'collections' || fetchingtype == 'innerparentcollections') {
47196
47226
  cardobj.collectionid = arrayItem.collectionid;
47227
+ cardobj.skiplayeronclick = arrayItem === null || arrayItem === void 0 ? void 0 : arrayItem.skiplayeronclick;
47197
47228
  if (langdetect == 'en') {
47198
47229
  cardobj.name = arrayItem.title_en;
47199
47230
  cardobj.description = arrayItem.description_en;
@@ -47202,7 +47233,44 @@ var Sixverticalcardssection = function Sixverticalcardssection(props) {
47202
47233
  cardobj.description = arrayItem.description_ar;
47203
47234
  }
47204
47235
  cardobj.image = arrayItem.collectionlogo;
47205
- } else ;
47236
+ cardobj.producttags = [];
47237
+ cardobj.productfeatures = [];
47238
+ } else if (fetchingtype == 'categories') {
47239
+ cardobj.collectionid = arrayItem.categoryid;
47240
+ cardobj.skiplayeronclick = arrayItem === null || arrayItem === void 0 ? void 0 : arrayItem.skiplayeronclick;
47241
+ if (langdetect == 'en') {
47242
+ cardobj.name = arrayItem.title_en;
47243
+ cardobj.description = arrayItem.description_en;
47244
+ } else if (langdetect == 'ar') {
47245
+ cardobj.name = arrayItem.title_ar;
47246
+ cardobj.description = arrayItem.description_ar;
47247
+ }
47248
+ cardobj.image = arrayItem.categorylogo;
47249
+ cardobj.producttags = [];
47250
+ cardobj.productfeatures = [];
47251
+ } else if (fetchingtype == 'parentcollections' || fetchingtype == 'innercategories') {
47252
+ cardobj.collectionid = arrayItem.parentcollectionid;
47253
+ cardobj.skiplayeronclick = arrayItem === null || arrayItem === void 0 ? void 0 : arrayItem.skiplayeronclick;
47254
+ if (langdetect == 'en') {
47255
+ cardobj.name = arrayItem.title_en;
47256
+ cardobj.description = arrayItem.description_en;
47257
+ } else if (langdetect == 'ar') {
47258
+ cardobj.name = arrayItem.title_ar;
47259
+ cardobj.description = arrayItem.description_ar;
47260
+ }
47261
+ cardobj.image = arrayItem.parentcollectionlogo;
47262
+ cardobj.producttags = [];
47263
+ cardobj.productfeatures = [];
47264
+ } else if (fetchingtype == 'custom') {
47265
+ cardobj.producttags = [];
47266
+ cardobj.productfeatures = [];
47267
+ } else if (fetchingtype == 'vendors') {
47268
+ cardobj.name = arrayItem.vendorname;
47269
+ cardobj.collectionid = arrayItem.vendorid;
47270
+ cardobj.image = arrayItem.vendorlogourl;
47271
+ cardobj.producttags = [];
47272
+ cardobj.productfeatures = [];
47273
+ }
47206
47274
  temparray.push(cardobj);
47207
47275
  });
47208
47276
  setcardsarray([].concat(temparray));
@@ -48475,25 +48543,8 @@ var RandomlyStructuredCollectionCards = function RandomlyStructuredCollectionCar
48475
48543
  _useState10 = _slicedToArray__default["default"](_useState9, 2),
48476
48544
  ProductsFetchingTypeSectionObj = _useState10[0],
48477
48545
  setProductsFetchingTypeSectionObj = _useState10[1];
48478
- var _useState11 = React.useState([]),
48479
- _useState12 = _slicedToArray__default["default"](_useState11, 2);
48480
- _useState12[0];
48481
- var setmaincontainerarrayofobjs = _useState12[1];
48482
- // React.useEffect(() => {
48483
- // if (inView) {
48484
- // fetchProductsQuery.fetchNextPage();
48485
- // }
48486
- // }, [inView]);
48546
+ var fetchCategoriesQueryContext = props.actions.fetchCategoriesQueryContext;
48487
48547
  React.useEffect(function () {
48488
- var productfilerobjtemp = ProductFilterObjContext;
48489
- if (props.filterparamsprops != undefined) {
48490
- var filterpar = decodeURIComponent(props.filterparamsprops);
48491
- var filterparsed = JSON.parse(filterpar);
48492
- if (filterparsed != undefined) {
48493
- productfilerobjtemp = filterparsed;
48494
- setProductFilterObjContext(filterparsed);
48495
- }
48496
- }
48497
48548
  StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
48498
48549
  if (sectionitem.sectionid == props.sectionidprops) {
48499
48550
  var secpropobj = {};
@@ -48516,6 +48567,8 @@ var RandomlyStructuredCollectionCards = function RandomlyStructuredCollectionCar
48516
48567
  });
48517
48568
  } else if (props.srcfromprops == 'InnerGroups' || props.srcfromprops == 'InnerCategory' || props.srcfromprops == 'InnerParentCollection') {
48518
48569
  setfetchingtype(props.grouptypeprops);
48570
+ } else if (props.srcfromprops == 'Innervendor') {
48571
+ setfetchingtype('vendors');
48519
48572
  } else {
48520
48573
  setfetchingtype(sectionitem.fetchingtype);
48521
48574
  setProductsFetchingTypeSectionObj({
@@ -48539,11 +48592,6 @@ var RandomlyStructuredCollectionCards = function RandomlyStructuredCollectionCar
48539
48592
  if (fetchProductsQuery.isSuccess) {
48540
48593
  var _fetchProductsQuery$d;
48541
48594
  var allpagesarr = [];
48542
- // fetchProductsQuery.data.pages.forEach((page) => {
48543
- // page.data.products.forEach((productobj) => {
48544
- // allpagesarr.push(productobj);
48545
- // });
48546
- // });
48547
48595
  fetchProductsQuery === null || fetchProductsQuery === void 0 || (_fetchProductsQuery$d = fetchProductsQuery.data) === null || _fetchProductsQuery$d === void 0 || (_fetchProductsQuery$d = _fetchProductsQuery$d.data) === null || _fetchProductsQuery$d === void 0 || (_fetchProductsQuery$d = _fetchProductsQuery$d.products) === null || _fetchProductsQuery$d === void 0 || _fetchProductsQuery$d.forEach(function (item) {
48548
48596
  allpagesarr.push(item);
48549
48597
  });
@@ -48580,35 +48628,49 @@ var RandomlyStructuredCollectionCards = function RandomlyStructuredCollectionCar
48580
48628
  tempfetchproductsfilerobjcontext.grouptyperefid = ProductsFetchingTypeSectionObj.grouptyperefid;
48581
48629
  setProductFilterObjContext(_objectSpread$1k({}, tempfetchproductsfilerobjcontext));
48582
48630
  }
48631
+ setFetchQueriesEngineContext(_objectSpread$1k({}, tempFetchQueriesEngineContext));
48632
+ }
48633
+ }, [fetchingtype, ProductsFetchingTypeSectionObj]);
48634
+ React.useEffect(function () {
48635
+ if ((fetchingtype === null || fetchingtype === void 0 ? void 0 : fetchingtype.length) != 0) {
48583
48636
  if (fetchingtype == 'categories') {
48584
- if (fetchAuthorizationQueryContext !== null && fetchAuthorizationQueryContext !== void 0 && fetchAuthorizationQueryContext.isSuccess) {
48585
- var categories = fetchAuthorizationQueryContext.data.data.instinfo.instcategories;
48586
- cardobjassigner(categories);
48637
+ var categories = [];
48638
+ if (fetchCategoriesQueryContext !== null && fetchCategoriesQueryContext !== void 0 && fetchCategoriesQueryContext.isSuccess) {
48639
+ var _fetchCategoriesQuery;
48640
+ categories = fetchCategoriesQueryContext === null || fetchCategoriesQueryContext === void 0 || (_fetchCategoriesQuery = fetchCategoriesQueryContext.data) === null || _fetchCategoriesQuery === void 0 || (_fetchCategoriesQuery = _fetchCategoriesQuery.data) === null || _fetchCategoriesQuery === void 0 ? void 0 : _fetchCategoriesQuery.categories;
48587
48641
  }
48642
+ cardobjassigner(categories);
48588
48643
  }
48589
48644
  if (fetchingtype == 'parentcollections' || fetchingtype == 'innercategories') {
48590
- if (fetchAuthorizationQueryContext !== null && fetchAuthorizationQueryContext !== void 0 && fetchAuthorizationQueryContext.isSuccess) {
48591
- var _categories;
48592
- var categories = fetchAuthorizationQueryContext.data.data.instinfo.instcategories;
48593
- var parentcollections = [];
48594
- (_categories = categories) === null || _categories === void 0 || _categories.forEach(function (catitem, catindex) {
48595
- catitem === null || catitem === void 0 || catitem.parentcolletions.forEach(function (parentcolitem) {
48645
+ var _categories;
48646
+ var categories = [];
48647
+ if (fetchCategoriesQueryContext !== null && fetchCategoriesQueryContext !== void 0 && fetchCategoriesQueryContext.isSuccess) {
48648
+ var _fetchCategoriesQuery2;
48649
+ categories = fetchCategoriesQueryContext === null || fetchCategoriesQueryContext === void 0 || (_fetchCategoriesQuery2 = fetchCategoriesQueryContext.data) === null || _fetchCategoriesQuery2 === void 0 || (_fetchCategoriesQuery2 = _fetchCategoriesQuery2.data) === null || _fetchCategoriesQuery2 === void 0 ? void 0 : _fetchCategoriesQuery2.categories;
48650
+ }
48651
+ // if (fetchAuthorizationQueryContext?.isSuccess) {
48652
+ // var categories = fetchAuthorizationQueryContext.data.data.instinfo.instcategories;
48653
+ // alert(JSON.stringify(categories));
48654
+ var parentcollections = [];
48655
+ (_categories = categories) === null || _categories === void 0 || _categories.forEach(function (catitem, catindex) {
48656
+ catitem === null || catitem === void 0 || catitem.parentcolletions.forEach(function (parentcolitem) {
48657
+ if (parentcolitem.isshowntocustomers == 1) {
48596
48658
  parentcolitem.categoryid = catitem.categoryid;
48597
48659
  parentcollections.push(parentcolitem);
48598
- });
48599
- });
48600
- if (fetchingtype == 'parentcollections') {
48601
- if ((sectionitem === null || sectionitem === void 0 ? void 0 : sectionitem.productsfetchingtypeparentcollectioncategoryid) != null && (sectionitem === null || sectionitem === void 0 ? void 0 : sectionitem.productsfetchingtypeparentcollectioncategoryid) != undefined && (sectionitem === null || sectionitem === void 0 ? void 0 : sectionitem.productsfetchingtypeparentcollectioncategoryid) != 'all') {
48602
- var arrafterfilter = [];
48603
- parentcollections.forEach(function (parentcolitem, parcolindex) {
48604
- if (parentcolitem.categoryid == (sectionitem === null || sectionitem === void 0 ? void 0 : sectionitem.productsfetchingtypeparentcollectioncategoryid)) {
48605
- arrafterfilter.push(parentcolitem);
48606
- }
48607
- });
48608
- parentcollections = arrafterfilter;
48609
48660
  }
48661
+ });
48662
+ });
48663
+ if (fetchingtype == 'parentcollections') {
48664
+ if ((sectionitem === null || sectionitem === void 0 ? void 0 : sectionitem.productsfetchingtypeparentcollectioncategoryid) != null && (sectionitem === null || sectionitem === void 0 ? void 0 : sectionitem.productsfetchingtypeparentcollectioncategoryid) != undefined && (sectionitem === null || sectionitem === void 0 ? void 0 : sectionitem.productsfetchingtypeparentcollectioncategoryid) != 'all') {
48665
+ var arrafterfilter = [];
48666
+ parentcollections.forEach(function (parentcolitem, parcolindex) {
48667
+ if (parentcolitem.categoryid == (sectionitem === null || sectionitem === void 0 ? void 0 : sectionitem.productsfetchingtypeparentcollectioncategoryid)) {
48668
+ arrafterfilter.push(parentcolitem);
48669
+ }
48670
+ });
48671
+ parentcollections = arrafterfilter;
48610
48672
  }
48611
- if (fetchingtype == 'innercategories') {
48673
+ if (props.collectionidprops != null && props.collectionidprops != undefined && props.collectionidprops != 'all') {
48612
48674
  var arrafterfilter = [];
48613
48675
  parentcollections.forEach(function (parentcolitem, parcolindex) {
48614
48676
  if (parentcolitem.categoryid == props.collectionidprops) {
@@ -48617,46 +48679,62 @@ var RandomlyStructuredCollectionCards = function RandomlyStructuredCollectionCar
48617
48679
  });
48618
48680
  parentcollections = arrafterfilter;
48619
48681
  }
48620
- cardobjassigner(parentcollections);
48621
48682
  }
48683
+ if (fetchingtype == 'innercategories') {
48684
+ var arrafterfilter = [];
48685
+ parentcollections.forEach(function (parentcolitem, parcolindex) {
48686
+ if (parentcolitem.categoryid == props.collectionidprops) {
48687
+ arrafterfilter.push(parentcolitem);
48688
+ }
48689
+ });
48690
+ parentcollections = arrafterfilter;
48691
+ }
48692
+ cardobjassigner(parentcollections);
48693
+ // }
48622
48694
  } else if (fetchingtype == 'innerparentcollections') {
48623
- if (fetchAuthorizationQueryContext !== null && fetchAuthorizationQueryContext !== void 0 && fetchAuthorizationQueryContext.isSuccess) {
48624
- var _categories2;
48625
- var categories = fetchAuthorizationQueryContext.data.data.instinfo.instcategories;
48626
- var collections = [];
48627
- (_categories2 = categories) === null || _categories2 === void 0 || _categories2.forEach(function (catitem, catindex) {
48628
- catitem === null || catitem === void 0 || catitem.parentcolletions.forEach(function (parentcolitem) {
48629
- var _parentcolitem$collec;
48630
- parentcolitem.categoryid = catitem.categoryid;
48631
- parentcolitem === null || parentcolitem === void 0 || (_parentcolitem$collec = parentcolitem.collections) === null || _parentcolitem$collec === void 0 || _parentcolitem$collec.forEach(function (collitem, colindex) {
48695
+ var _categories2;
48696
+ var categories = [];
48697
+ if (fetchCategoriesQueryContext !== null && fetchCategoriesQueryContext !== void 0 && fetchCategoriesQueryContext.isSuccess) {
48698
+ var _fetchCategoriesQuery3;
48699
+ categories = fetchCategoriesQueryContext === null || fetchCategoriesQueryContext === void 0 || (_fetchCategoriesQuery3 = fetchCategoriesQueryContext.data) === null || _fetchCategoriesQuery3 === void 0 || (_fetchCategoriesQuery3 = _fetchCategoriesQuery3.data) === null || _fetchCategoriesQuery3 === void 0 ? void 0 : _fetchCategoriesQuery3.categories;
48700
+ }
48701
+ // if (fetchAuthorizationQueryContext?.isSuccess) {
48702
+ // var categories = fetchAuthorizationQueryContext.data.data.instinfo.instcategories;
48703
+ var collections = [];
48704
+ (_categories2 = categories) === null || _categories2 === void 0 || _categories2.forEach(function (catitem, catindex) {
48705
+ catitem === null || catitem === void 0 || catitem.parentcolletions.forEach(function (parentcolitem) {
48706
+ var _parentcolitem$collec;
48707
+ parentcolitem.categoryid = catitem.categoryid;
48708
+ parentcolitem === null || parentcolitem === void 0 || (_parentcolitem$collec = parentcolitem.collections) === null || _parentcolitem$collec === void 0 || _parentcolitem$collec.forEach(function (collitem, colindex) {
48709
+ if (collitem.isshowntocustomers == 1) {
48632
48710
  collitem.parentcollectionid = parentcolitem.parentcollectionid;
48633
48711
  collections.push(collitem);
48634
- });
48712
+ }
48635
48713
  });
48636
48714
  });
48637
- if (fetchingtype == 'innerparentcollections') {
48638
- var collectionsafterfilter = [];
48639
- collections.forEach(function (colitem, colindex) {
48640
- if (colitem.parentcollectionid == props.collectionidprops) {
48641
- var iscollexists = false;
48642
- collectionsafterfilter.forEach(function (existcolitem) {
48643
- if (colitem.collectionid == existcolitem.collectionid) {
48644
- iscollexists = true;
48645
- }
48646
- });
48647
- if (iscollexists == false) {
48648
- collectionsafterfilter.push(colitem);
48715
+ });
48716
+ if (fetchingtype == 'innerparentcollections') {
48717
+ var collectionsafterfilter = [];
48718
+ collections.forEach(function (colitem, colindex) {
48719
+ if (colitem.parentcollectionid == props.collectionidprops) {
48720
+ var iscollexists = false;
48721
+ collectionsafterfilter.forEach(function (existcolitem) {
48722
+ if (colitem.collectionid == existcolitem.collectionid) {
48723
+ iscollexists = true;
48649
48724
  }
48725
+ });
48726
+ if (iscollexists == false) {
48727
+ collectionsafterfilter.push(colitem);
48650
48728
  }
48651
- });
48652
- collections = collectionsafterfilter;
48653
- }
48654
- cardobjassigner(collections);
48729
+ }
48730
+ });
48731
+ collections = collectionsafterfilter;
48655
48732
  }
48733
+ cardobjassigner(collections);
48734
+ // }
48656
48735
  }
48657
- setFetchQueriesEngineContext(_objectSpread$1k({}, tempFetchQueriesEngineContext));
48658
48736
  }
48659
- }, [fetchingtype, ProductsFetchingTypeSectionObj]);
48737
+ }, [fetchingtype, ProductsFetchingTypeSectionObj, fetchCategoriesQueryContext.isSuccess]);
48660
48738
  React.useEffect(function () {
48661
48739
  if (fetchingtype == 'products') {
48662
48740
  if (fetchProductsQuery.isSuccess && fetchcustomercartQueryContext.isSuccess) {
@@ -48675,7 +48753,7 @@ var RandomlyStructuredCollectionCards = function RandomlyStructuredCollectionCar
48675
48753
  cardobjassigner(fetchcollectionsQueryContext.data.data.collections);
48676
48754
  }
48677
48755
  }
48678
- }, [fetchcollectionsQueryContext === null || fetchcollectionsQueryContext === void 0 ? void 0 : fetchcollectionsQueryContext.isSuccess]);
48756
+ }, [fetchcollectionsQueryContext === null || fetchcollectionsQueryContext === void 0 ? void 0 : fetchcollectionsQueryContext.isSuccess, fetchcollectionsQueryContext.data]);
48679
48757
  React.useEffect(function () {
48680
48758
  if (fetchingtype == 'vendors') {
48681
48759
  if (FetchVendorsQuery.isSuccess) {
@@ -48689,14 +48767,6 @@ var RandomlyStructuredCollectionCards = function RandomlyStructuredCollectionCar
48689
48767
  React.useEffect(function () {
48690
48768
  favassigner();
48691
48769
  }, [favoriteprojectscountContext]);
48692
- React.useEffect(function () {
48693
- if (sectionproperties.length != 0 && sectionproperties.maincontainerarrayofobjs != undefined) {
48694
- var maincontainerarrayofobjsparsed = JSON.parse(sectionproperties.maincontainerarrayofobjs);
48695
- if (Array.isArray(maincontainerarrayofobjsparsed)) {
48696
- setmaincontainerarrayofobjs(_toConsumableArray__default["default"](maincontainerarrayofobjsparsed));
48697
- }
48698
- }
48699
- }, [sectionproperties]);
48700
48770
  var favassigner = function favassigner() {
48701
48771
  if (fetchingtype == 'products') {
48702
48772
  if (cardsarray.length != 0) {
@@ -48725,6 +48795,7 @@ var RandomlyStructuredCollectionCards = function RandomlyStructuredCollectionCar
48725
48795
  image: ''
48726
48796
  };
48727
48797
  if (fetchingtype == 'products') {
48798
+ var _arrayItem$features3;
48728
48799
  var itemquantity = 0;
48729
48800
  if (langdetect == 'en') {
48730
48801
  cardobj.name = arrayItem.productinfo.name_en;
@@ -48736,6 +48807,11 @@ var RandomlyStructuredCollectionCards = function RandomlyStructuredCollectionCar
48736
48807
  } else {
48737
48808
  cardobj.description = arrayItem.productinfo.description_ar;
48738
48809
  }
48810
+ if (langdetect == 'en') {
48811
+ cardobj.shortdescription = arrayItem.short_description_en;
48812
+ } else {
48813
+ cardobj.shortdescription = arrayItem.short_description_ar;
48814
+ }
48739
48815
  if (arrayItem.productinfo.hasvariants == 0) {
48740
48816
  fetchcustomercartQueryContext.data.data.customercart.cartitems.forEach(function (cartitem, cartindex) {
48741
48817
  if (cartitem.productid == arrayItem.productinfo.productid) {
@@ -48744,6 +48820,16 @@ var RandomlyStructuredCollectionCards = function RandomlyStructuredCollectionCar
48744
48820
  });
48745
48821
  }
48746
48822
  cardobj.image = arrayItem.productinfo.productmainimage;
48823
+ cardobj.producttags = arrayItem.tags;
48824
+ if (langdetect == 'en') {
48825
+ var _arrayItem$features;
48826
+ cardobj.productfeature = arrayItem === null || arrayItem === void 0 || (_arrayItem$features = arrayItem.features) === null || _arrayItem$features === void 0 ? void 0 : _arrayItem$features.value_en;
48827
+ } else {
48828
+ var _arrayItem$features2;
48829
+ cardobj.productfeature = arrayItem === null || arrayItem === void 0 || (_arrayItem$features2 = arrayItem.features) === null || _arrayItem$features2 === void 0 ? void 0 : _arrayItem$features2.value_ar;
48830
+ }
48831
+ cardobj.productfeatureid = arrayItem === null || arrayItem === void 0 || (_arrayItem$features3 = arrayItem.features) === null || _arrayItem$features3 === void 0 ? void 0 : _arrayItem$features3.featureid;
48832
+ cardobj.productendpointurl = arrayItem.productinfo.productendpointurl;
48747
48833
  cardobj.hassale = arrayItem.productinfo.hassale;
48748
48834
  cardobj.productid = arrayItem.productinfo.productid;
48749
48835
  cardobj.hasvariants = arrayItem.productinfo.hasvariants;
@@ -48753,13 +48839,24 @@ var RandomlyStructuredCollectionCards = function RandomlyStructuredCollectionCar
48753
48839
  cardobj.defaultsaleprice = arrayItem.productinfo.defaultsaleprice;
48754
48840
  cardobj.productimages = arrayItem.productinfo.productimages;
48755
48841
  cardobj.quantity = itemquantity;
48842
+ // cardobj.currentquantity = currentquantity;
48756
48843
  cardobj.timestamp = arrayItem.productinfo.timestamp;
48757
48844
  cardobj.productquantity = arrayItem.productinfo.productquantity;
48845
+ cardobj.currentquantity = arrayItem.productinfo.currentquantity;
48758
48846
  cardobj.quantavailtype = arrayItem.productinfo.quantavailtype;
48847
+ cardobj.isproducttobesold = arrayItem.productinfo.isproducttobesold;
48848
+ cardobj.measurmentunit = arrayItem.productinfo.measurmentunit;
48849
+ cardobj.prodaffpercentprofit = arrayItem.productinfo.prodaffpercentprofit;
48850
+ cardobj.productcashbackvalue = arrayItem.productinfo.productcashbackvalue;
48851
+ cardobj.product_phonenumber = arrayItem.productinfo.product_phonenumber;
48852
+ cardobj.productcanrate = arrayItem.productinfo.productcanrate;
48853
+ cardobj.sku = arrayItem.productinfo.sku;
48759
48854
  if (langdetect == 'en') {
48760
- cardobj.currencyname = fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 ? void 0 : fetchAuthorizationQueryContext.data.data.currencyname_en;
48855
+ var _fetchAuthorizationQu;
48856
+ cardobj.currencyname = fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 || (_fetchAuthorizationQu = fetchAuthorizationQueryContext.data) === null || _fetchAuthorizationQu === void 0 || (_fetchAuthorizationQu = _fetchAuthorizationQu.data) === null || _fetchAuthorizationQu === void 0 ? void 0 : _fetchAuthorizationQu.currencyname_en;
48761
48857
  } else {
48762
- cardobj.currencyname = fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 ? void 0 : fetchAuthorizationQueryContext.data.data.currencyname_ar;
48858
+ var _fetchAuthorizationQu2;
48859
+ cardobj.currencyname = fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 || (_fetchAuthorizationQu2 = fetchAuthorizationQueryContext.data) === null || _fetchAuthorizationQu2 === void 0 || (_fetchAuthorizationQu2 = _fetchAuthorizationQu2.data) === null || _fetchAuthorizationQu2 === void 0 ? void 0 : _fetchAuthorizationQu2.currencyname_ar;
48763
48860
  }
48764
48861
  if (favoriteprojectscountContext != undefined && favoriteprojectscountContext.length != 0) {
48765
48862
  favoriteprojectscountContext.forEach(function (favitem, favindex) {
@@ -48770,6 +48867,7 @@ var RandomlyStructuredCollectionCards = function RandomlyStructuredCollectionCar
48770
48867
  }
48771
48868
  } else if (fetchingtype == 'collections' || fetchingtype == 'innerparentcollections') {
48772
48869
  cardobj.collectionid = arrayItem.collectionid;
48870
+ cardobj.skiplayeronclick = arrayItem === null || arrayItem === void 0 ? void 0 : arrayItem.skiplayeronclick;
48773
48871
  if (langdetect == 'en') {
48774
48872
  cardobj.name = arrayItem.title_en;
48775
48873
  cardobj.description = arrayItem.description_en;
@@ -48778,8 +48876,11 @@ var RandomlyStructuredCollectionCards = function RandomlyStructuredCollectionCar
48778
48876
  cardobj.description = arrayItem.description_ar;
48779
48877
  }
48780
48878
  cardobj.image = arrayItem.collectionlogo;
48879
+ cardobj.producttags = [];
48880
+ cardobj.productfeatures = [];
48781
48881
  } else if (fetchingtype == 'categories') {
48782
48882
  cardobj.collectionid = arrayItem.categoryid;
48883
+ cardobj.skiplayeronclick = arrayItem === null || arrayItem === void 0 ? void 0 : arrayItem.skiplayeronclick;
48783
48884
  if (langdetect == 'en') {
48784
48885
  cardobj.name = arrayItem.title_en;
48785
48886
  cardobj.description = arrayItem.description_en;
@@ -48788,8 +48889,11 @@ var RandomlyStructuredCollectionCards = function RandomlyStructuredCollectionCar
48788
48889
  cardobj.description = arrayItem.description_ar;
48789
48890
  }
48790
48891
  cardobj.image = arrayItem.categorylogo;
48892
+ cardobj.producttags = [];
48893
+ cardobj.productfeatures = [];
48791
48894
  } else if (fetchingtype == 'parentcollections' || fetchingtype == 'innercategories') {
48792
48895
  cardobj.collectionid = arrayItem.parentcollectionid;
48896
+ cardobj.skiplayeronclick = arrayItem === null || arrayItem === void 0 ? void 0 : arrayItem.skiplayeronclick;
48793
48897
  if (langdetect == 'en') {
48794
48898
  cardobj.name = arrayItem.title_en;
48795
48899
  cardobj.description = arrayItem.description_en;
@@ -48798,10 +48902,17 @@ var RandomlyStructuredCollectionCards = function RandomlyStructuredCollectionCar
48798
48902
  cardobj.description = arrayItem.description_ar;
48799
48903
  }
48800
48904
  cardobj.image = arrayItem.parentcollectionlogo;
48801
- } else if (fetchingtype == 'custom') ; else if (fetchingtype == 'vendors') {
48905
+ cardobj.producttags = [];
48906
+ cardobj.productfeatures = [];
48907
+ } else if (fetchingtype == 'custom') {
48908
+ cardobj.producttags = [];
48909
+ cardobj.productfeatures = [];
48910
+ } else if (fetchingtype == 'vendors') {
48802
48911
  cardobj.name = arrayItem.vendorname;
48803
48912
  cardobj.collectionid = arrayItem.vendorid;
48804
48913
  cardobj.image = arrayItem.vendorlogourl;
48914
+ cardobj.producttags = [];
48915
+ cardobj.productfeatures = [];
48805
48916
  }
48806
48917
  temparray.push(cardobj);
48807
48918
  });