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.umd.js CHANGED
@@ -46546,6 +46546,7 @@
46546
46546
  cardobj.productfeature = arrayItem === null || arrayItem === void 0 || (_arrayItem$features2 = arrayItem.features) === null || _arrayItem$features2 === void 0 ? void 0 : _arrayItem$features2.value_ar;
46547
46547
  }
46548
46548
  cardobj.productfeatureid = arrayItem === null || arrayItem === void 0 || (_arrayItem$features3 = arrayItem.features) === null || _arrayItem$features3 === void 0 ? void 0 : _arrayItem$features3.featureid;
46549
+ cardobj.productendpointurl = arrayItem.productinfo.productendpointurl;
46549
46550
  cardobj.hassale = arrayItem.productinfo.hassale;
46550
46551
  cardobj.productid = arrayItem.productinfo.productid;
46551
46552
  cardobj.hasvariants = arrayItem.productinfo.hasvariants;
@@ -46977,6 +46978,7 @@
46977
46978
  image: ''
46978
46979
  };
46979
46980
  if (fetchingtype == 'products') {
46981
+ var _arrayItem$features3;
46980
46982
  var itemquantity = 0;
46981
46983
  if (langdetect == 'en') {
46982
46984
  cardobj.name = arrayItem.productinfo.name_en;
@@ -46988,6 +46990,11 @@
46988
46990
  } else {
46989
46991
  cardobj.description = arrayItem.productinfo.description_ar;
46990
46992
  }
46993
+ if (langdetect == 'en') {
46994
+ cardobj.shortdescription = arrayItem.short_description_en;
46995
+ } else {
46996
+ cardobj.shortdescription = arrayItem.short_description_ar;
46997
+ }
46991
46998
  if (arrayItem.productinfo.hasvariants == 0) {
46992
46999
  fetchcustomercartQueryContext.data.data.customercart.cartitems.forEach(function (cartitem, cartindex) {
46993
47000
  if (cartitem.productid == arrayItem.productinfo.productid) {
@@ -46996,6 +47003,16 @@
46996
47003
  });
46997
47004
  }
46998
47005
  cardobj.image = arrayItem.productinfo.productmainimage;
47006
+ cardobj.producttags = arrayItem.tags;
47007
+ if (langdetect == 'en') {
47008
+ var _arrayItem$features;
47009
+ cardobj.productfeature = arrayItem === null || arrayItem === void 0 || (_arrayItem$features = arrayItem.features) === null || _arrayItem$features === void 0 ? void 0 : _arrayItem$features.value_en;
47010
+ } else {
47011
+ var _arrayItem$features2;
47012
+ cardobj.productfeature = arrayItem === null || arrayItem === void 0 || (_arrayItem$features2 = arrayItem.features) === null || _arrayItem$features2 === void 0 ? void 0 : _arrayItem$features2.value_ar;
47013
+ }
47014
+ cardobj.productfeatureid = arrayItem === null || arrayItem === void 0 || (_arrayItem$features3 = arrayItem.features) === null || _arrayItem$features3 === void 0 ? void 0 : _arrayItem$features3.featureid;
47015
+ cardobj.productendpointurl = arrayItem.productinfo.productendpointurl;
46999
47016
  cardobj.hassale = arrayItem.productinfo.hassale;
47000
47017
  cardobj.productid = arrayItem.productinfo.productid;
47001
47018
  cardobj.hasvariants = arrayItem.productinfo.hasvariants;
@@ -47005,11 +47022,24 @@
47005
47022
  cardobj.defaultsaleprice = arrayItem.productinfo.defaultsaleprice;
47006
47023
  cardobj.productimages = arrayItem.productinfo.productimages;
47007
47024
  cardobj.quantity = itemquantity;
47025
+ // cardobj.currentquantity = currentquantity;
47008
47026
  cardobj.timestamp = arrayItem.productinfo.timestamp;
47027
+ cardobj.productquantity = arrayItem.productinfo.productquantity;
47028
+ cardobj.currentquantity = arrayItem.productinfo.currentquantity;
47029
+ cardobj.quantavailtype = arrayItem.productinfo.quantavailtype;
47030
+ cardobj.isproducttobesold = arrayItem.productinfo.isproducttobesold;
47031
+ cardobj.measurmentunit = arrayItem.productinfo.measurmentunit;
47032
+ cardobj.prodaffpercentprofit = arrayItem.productinfo.prodaffpercentprofit;
47033
+ cardobj.productcashbackvalue = arrayItem.productinfo.productcashbackvalue;
47034
+ cardobj.product_phonenumber = arrayItem.productinfo.product_phonenumber;
47035
+ cardobj.productcanrate = arrayItem.productinfo.productcanrate;
47036
+ cardobj.sku = arrayItem.productinfo.sku;
47009
47037
  if (langdetect == 'en') {
47010
- cardobj.currencyname = fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 ? void 0 : fetchAuthorizationQueryContext.data.data.currencyname_en;
47038
+ var _fetchAuthorizationQu;
47039
+ 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;
47011
47040
  } else {
47012
- cardobj.currencyname = fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 ? void 0 : fetchAuthorizationQueryContext.data.data.currencyname_ar;
47041
+ var _fetchAuthorizationQu2;
47042
+ 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;
47013
47043
  }
47014
47044
  if (favoriteprojectscountContext != undefined && favoriteprojectscountContext.length != 0) {
47015
47045
  favoriteprojectscountContext.forEach(function (favitem, favindex) {
@@ -47018,8 +47048,9 @@
47018
47048
  }
47019
47049
  });
47020
47050
  }
47021
- } else if (fetchingtype == 'collections') {
47051
+ } else if (fetchingtype == 'collections' || fetchingtype == 'innerparentcollections') {
47022
47052
  cardobj.collectionid = arrayItem.collectionid;
47053
+ cardobj.skiplayeronclick = arrayItem === null || arrayItem === void 0 ? void 0 : arrayItem.skiplayeronclick;
47023
47054
  if (langdetect == 'en') {
47024
47055
  cardobj.name = arrayItem.title_en;
47025
47056
  cardobj.description = arrayItem.description_en;
@@ -47028,7 +47059,44 @@
47028
47059
  cardobj.description = arrayItem.description_ar;
47029
47060
  }
47030
47061
  cardobj.image = arrayItem.collectionlogo;
47031
- } else ;
47062
+ cardobj.producttags = [];
47063
+ cardobj.productfeatures = [];
47064
+ } else if (fetchingtype == 'categories') {
47065
+ cardobj.collectionid = arrayItem.categoryid;
47066
+ cardobj.skiplayeronclick = arrayItem === null || arrayItem === void 0 ? void 0 : arrayItem.skiplayeronclick;
47067
+ if (langdetect == 'en') {
47068
+ cardobj.name = arrayItem.title_en;
47069
+ cardobj.description = arrayItem.description_en;
47070
+ } else if (langdetect == 'ar') {
47071
+ cardobj.name = arrayItem.title_ar;
47072
+ cardobj.description = arrayItem.description_ar;
47073
+ }
47074
+ cardobj.image = arrayItem.categorylogo;
47075
+ cardobj.producttags = [];
47076
+ cardobj.productfeatures = [];
47077
+ } else if (fetchingtype == 'parentcollections' || fetchingtype == 'innercategories') {
47078
+ cardobj.collectionid = arrayItem.parentcollectionid;
47079
+ cardobj.skiplayeronclick = arrayItem === null || arrayItem === void 0 ? void 0 : arrayItem.skiplayeronclick;
47080
+ if (langdetect == 'en') {
47081
+ cardobj.name = arrayItem.title_en;
47082
+ cardobj.description = arrayItem.description_en;
47083
+ } else if (langdetect == 'ar') {
47084
+ cardobj.name = arrayItem.title_ar;
47085
+ cardobj.description = arrayItem.description_ar;
47086
+ }
47087
+ cardobj.image = arrayItem.parentcollectionlogo;
47088
+ cardobj.producttags = [];
47089
+ cardobj.productfeatures = [];
47090
+ } else if (fetchingtype == 'custom') {
47091
+ cardobj.producttags = [];
47092
+ cardobj.productfeatures = [];
47093
+ } else if (fetchingtype == 'vendors') {
47094
+ cardobj.name = arrayItem.vendorname;
47095
+ cardobj.collectionid = arrayItem.vendorid;
47096
+ cardobj.image = arrayItem.vendorlogourl;
47097
+ cardobj.producttags = [];
47098
+ cardobj.productfeatures = [];
47099
+ }
47032
47100
  temparray.push(cardobj);
47033
47101
  });
47034
47102
  setcardsarray([].concat(temparray));
@@ -48301,25 +48369,8 @@
48301
48369
  _useState10 = _slicedToArray__default["default"](_useState9, 2),
48302
48370
  ProductsFetchingTypeSectionObj = _useState10[0],
48303
48371
  setProductsFetchingTypeSectionObj = _useState10[1];
48304
- var _useState11 = React.useState([]),
48305
- _useState12 = _slicedToArray__default["default"](_useState11, 2);
48306
- _useState12[0];
48307
- var setmaincontainerarrayofobjs = _useState12[1];
48308
- // React.useEffect(() => {
48309
- // if (inView) {
48310
- // fetchProductsQuery.fetchNextPage();
48311
- // }
48312
- // }, [inView]);
48372
+ var fetchCategoriesQueryContext = props.actions.fetchCategoriesQueryContext;
48313
48373
  React.useEffect(function () {
48314
- var productfilerobjtemp = ProductFilterObjContext;
48315
- if (props.filterparamsprops != undefined) {
48316
- var filterpar = decodeURIComponent(props.filterparamsprops);
48317
- var filterparsed = JSON.parse(filterpar);
48318
- if (filterparsed != undefined) {
48319
- productfilerobjtemp = filterparsed;
48320
- setProductFilterObjContext(filterparsed);
48321
- }
48322
- }
48323
48374
  StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
48324
48375
  if (sectionitem.sectionid == props.sectionidprops) {
48325
48376
  var secpropobj = {};
@@ -48342,6 +48393,8 @@
48342
48393
  });
48343
48394
  } else if (props.srcfromprops == 'InnerGroups' || props.srcfromprops == 'InnerCategory' || props.srcfromprops == 'InnerParentCollection') {
48344
48395
  setfetchingtype(props.grouptypeprops);
48396
+ } else if (props.srcfromprops == 'Innervendor') {
48397
+ setfetchingtype('vendors');
48345
48398
  } else {
48346
48399
  setfetchingtype(sectionitem.fetchingtype);
48347
48400
  setProductsFetchingTypeSectionObj({
@@ -48365,11 +48418,6 @@
48365
48418
  if (fetchProductsQuery.isSuccess) {
48366
48419
  var _fetchProductsQuery$d;
48367
48420
  var allpagesarr = [];
48368
- // fetchProductsQuery.data.pages.forEach((page) => {
48369
- // page.data.products.forEach((productobj) => {
48370
- // allpagesarr.push(productobj);
48371
- // });
48372
- // });
48373
48421
  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) {
48374
48422
  allpagesarr.push(item);
48375
48423
  });
@@ -48406,35 +48454,49 @@
48406
48454
  tempfetchproductsfilerobjcontext.grouptyperefid = ProductsFetchingTypeSectionObj.grouptyperefid;
48407
48455
  setProductFilterObjContext(_objectSpread$1k({}, tempfetchproductsfilerobjcontext));
48408
48456
  }
48457
+ setFetchQueriesEngineContext(_objectSpread$1k({}, tempFetchQueriesEngineContext));
48458
+ }
48459
+ }, [fetchingtype, ProductsFetchingTypeSectionObj]);
48460
+ React.useEffect(function () {
48461
+ if ((fetchingtype === null || fetchingtype === void 0 ? void 0 : fetchingtype.length) != 0) {
48409
48462
  if (fetchingtype == 'categories') {
48410
- if (fetchAuthorizationQueryContext !== null && fetchAuthorizationQueryContext !== void 0 && fetchAuthorizationQueryContext.isSuccess) {
48411
- var categories = fetchAuthorizationQueryContext.data.data.instinfo.instcategories;
48412
- cardobjassigner(categories);
48463
+ var categories = [];
48464
+ if (fetchCategoriesQueryContext !== null && fetchCategoriesQueryContext !== void 0 && fetchCategoriesQueryContext.isSuccess) {
48465
+ var _fetchCategoriesQuery;
48466
+ categories = fetchCategoriesQueryContext === null || fetchCategoriesQueryContext === void 0 || (_fetchCategoriesQuery = fetchCategoriesQueryContext.data) === null || _fetchCategoriesQuery === void 0 || (_fetchCategoriesQuery = _fetchCategoriesQuery.data) === null || _fetchCategoriesQuery === void 0 ? void 0 : _fetchCategoriesQuery.categories;
48413
48467
  }
48468
+ cardobjassigner(categories);
48414
48469
  }
48415
48470
  if (fetchingtype == 'parentcollections' || fetchingtype == 'innercategories') {
48416
- if (fetchAuthorizationQueryContext !== null && fetchAuthorizationQueryContext !== void 0 && fetchAuthorizationQueryContext.isSuccess) {
48417
- var _categories;
48418
- var categories = fetchAuthorizationQueryContext.data.data.instinfo.instcategories;
48419
- var parentcollections = [];
48420
- (_categories = categories) === null || _categories === void 0 || _categories.forEach(function (catitem, catindex) {
48421
- catitem === null || catitem === void 0 || catitem.parentcolletions.forEach(function (parentcolitem) {
48471
+ var _categories;
48472
+ var categories = [];
48473
+ if (fetchCategoriesQueryContext !== null && fetchCategoriesQueryContext !== void 0 && fetchCategoriesQueryContext.isSuccess) {
48474
+ var _fetchCategoriesQuery2;
48475
+ categories = fetchCategoriesQueryContext === null || fetchCategoriesQueryContext === void 0 || (_fetchCategoriesQuery2 = fetchCategoriesQueryContext.data) === null || _fetchCategoriesQuery2 === void 0 || (_fetchCategoriesQuery2 = _fetchCategoriesQuery2.data) === null || _fetchCategoriesQuery2 === void 0 ? void 0 : _fetchCategoriesQuery2.categories;
48476
+ }
48477
+ // if (fetchAuthorizationQueryContext?.isSuccess) {
48478
+ // var categories = fetchAuthorizationQueryContext.data.data.instinfo.instcategories;
48479
+ // alert(JSON.stringify(categories));
48480
+ var parentcollections = [];
48481
+ (_categories = categories) === null || _categories === void 0 || _categories.forEach(function (catitem, catindex) {
48482
+ catitem === null || catitem === void 0 || catitem.parentcolletions.forEach(function (parentcolitem) {
48483
+ if (parentcolitem.isshowntocustomers == 1) {
48422
48484
  parentcolitem.categoryid = catitem.categoryid;
48423
48485
  parentcollections.push(parentcolitem);
48424
- });
48425
- });
48426
- if (fetchingtype == 'parentcollections') {
48427
- 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') {
48428
- var arrafterfilter = [];
48429
- parentcollections.forEach(function (parentcolitem, parcolindex) {
48430
- if (parentcolitem.categoryid == (sectionitem === null || sectionitem === void 0 ? void 0 : sectionitem.productsfetchingtypeparentcollectioncategoryid)) {
48431
- arrafterfilter.push(parentcolitem);
48432
- }
48433
- });
48434
- parentcollections = arrafterfilter;
48435
48486
  }
48487
+ });
48488
+ });
48489
+ if (fetchingtype == 'parentcollections') {
48490
+ 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') {
48491
+ var arrafterfilter = [];
48492
+ parentcollections.forEach(function (parentcolitem, parcolindex) {
48493
+ if (parentcolitem.categoryid == (sectionitem === null || sectionitem === void 0 ? void 0 : sectionitem.productsfetchingtypeparentcollectioncategoryid)) {
48494
+ arrafterfilter.push(parentcolitem);
48495
+ }
48496
+ });
48497
+ parentcollections = arrafterfilter;
48436
48498
  }
48437
- if (fetchingtype == 'innercategories') {
48499
+ if (props.collectionidprops != null && props.collectionidprops != undefined && props.collectionidprops != 'all') {
48438
48500
  var arrafterfilter = [];
48439
48501
  parentcollections.forEach(function (parentcolitem, parcolindex) {
48440
48502
  if (parentcolitem.categoryid == props.collectionidprops) {
@@ -48443,46 +48505,62 @@
48443
48505
  });
48444
48506
  parentcollections = arrafterfilter;
48445
48507
  }
48446
- cardobjassigner(parentcollections);
48447
48508
  }
48509
+ if (fetchingtype == 'innercategories') {
48510
+ var arrafterfilter = [];
48511
+ parentcollections.forEach(function (parentcolitem, parcolindex) {
48512
+ if (parentcolitem.categoryid == props.collectionidprops) {
48513
+ arrafterfilter.push(parentcolitem);
48514
+ }
48515
+ });
48516
+ parentcollections = arrafterfilter;
48517
+ }
48518
+ cardobjassigner(parentcollections);
48519
+ // }
48448
48520
  } else if (fetchingtype == 'innerparentcollections') {
48449
- if (fetchAuthorizationQueryContext !== null && fetchAuthorizationQueryContext !== void 0 && fetchAuthorizationQueryContext.isSuccess) {
48450
- var _categories2;
48451
- var categories = fetchAuthorizationQueryContext.data.data.instinfo.instcategories;
48452
- var collections = [];
48453
- (_categories2 = categories) === null || _categories2 === void 0 || _categories2.forEach(function (catitem, catindex) {
48454
- catitem === null || catitem === void 0 || catitem.parentcolletions.forEach(function (parentcolitem) {
48455
- var _parentcolitem$collec;
48456
- parentcolitem.categoryid = catitem.categoryid;
48457
- parentcolitem === null || parentcolitem === void 0 || (_parentcolitem$collec = parentcolitem.collections) === null || _parentcolitem$collec === void 0 || _parentcolitem$collec.forEach(function (collitem, colindex) {
48521
+ var _categories2;
48522
+ var categories = [];
48523
+ if (fetchCategoriesQueryContext !== null && fetchCategoriesQueryContext !== void 0 && fetchCategoriesQueryContext.isSuccess) {
48524
+ var _fetchCategoriesQuery3;
48525
+ categories = fetchCategoriesQueryContext === null || fetchCategoriesQueryContext === void 0 || (_fetchCategoriesQuery3 = fetchCategoriesQueryContext.data) === null || _fetchCategoriesQuery3 === void 0 || (_fetchCategoriesQuery3 = _fetchCategoriesQuery3.data) === null || _fetchCategoriesQuery3 === void 0 ? void 0 : _fetchCategoriesQuery3.categories;
48526
+ }
48527
+ // if (fetchAuthorizationQueryContext?.isSuccess) {
48528
+ // var categories = fetchAuthorizationQueryContext.data.data.instinfo.instcategories;
48529
+ var collections = [];
48530
+ (_categories2 = categories) === null || _categories2 === void 0 || _categories2.forEach(function (catitem, catindex) {
48531
+ catitem === null || catitem === void 0 || catitem.parentcolletions.forEach(function (parentcolitem) {
48532
+ var _parentcolitem$collec;
48533
+ parentcolitem.categoryid = catitem.categoryid;
48534
+ parentcolitem === null || parentcolitem === void 0 || (_parentcolitem$collec = parentcolitem.collections) === null || _parentcolitem$collec === void 0 || _parentcolitem$collec.forEach(function (collitem, colindex) {
48535
+ if (collitem.isshowntocustomers == 1) {
48458
48536
  collitem.parentcollectionid = parentcolitem.parentcollectionid;
48459
48537
  collections.push(collitem);
48460
- });
48538
+ }
48461
48539
  });
48462
48540
  });
48463
- if (fetchingtype == 'innerparentcollections') {
48464
- var collectionsafterfilter = [];
48465
- collections.forEach(function (colitem, colindex) {
48466
- if (colitem.parentcollectionid == props.collectionidprops) {
48467
- var iscollexists = false;
48468
- collectionsafterfilter.forEach(function (existcolitem) {
48469
- if (colitem.collectionid == existcolitem.collectionid) {
48470
- iscollexists = true;
48471
- }
48472
- });
48473
- if (iscollexists == false) {
48474
- collectionsafterfilter.push(colitem);
48541
+ });
48542
+ if (fetchingtype == 'innerparentcollections') {
48543
+ var collectionsafterfilter = [];
48544
+ collections.forEach(function (colitem, colindex) {
48545
+ if (colitem.parentcollectionid == props.collectionidprops) {
48546
+ var iscollexists = false;
48547
+ collectionsafterfilter.forEach(function (existcolitem) {
48548
+ if (colitem.collectionid == existcolitem.collectionid) {
48549
+ iscollexists = true;
48475
48550
  }
48551
+ });
48552
+ if (iscollexists == false) {
48553
+ collectionsafterfilter.push(colitem);
48476
48554
  }
48477
- });
48478
- collections = collectionsafterfilter;
48479
- }
48480
- cardobjassigner(collections);
48555
+ }
48556
+ });
48557
+ collections = collectionsafterfilter;
48481
48558
  }
48559
+ cardobjassigner(collections);
48560
+ // }
48482
48561
  }
48483
- setFetchQueriesEngineContext(_objectSpread$1k({}, tempFetchQueriesEngineContext));
48484
48562
  }
48485
- }, [fetchingtype, ProductsFetchingTypeSectionObj]);
48563
+ }, [fetchingtype, ProductsFetchingTypeSectionObj, fetchCategoriesQueryContext.isSuccess]);
48486
48564
  React.useEffect(function () {
48487
48565
  if (fetchingtype == 'products') {
48488
48566
  if (fetchProductsQuery.isSuccess && fetchcustomercartQueryContext.isSuccess) {
@@ -48501,7 +48579,7 @@
48501
48579
  cardobjassigner(fetchcollectionsQueryContext.data.data.collections);
48502
48580
  }
48503
48581
  }
48504
- }, [fetchcollectionsQueryContext === null || fetchcollectionsQueryContext === void 0 ? void 0 : fetchcollectionsQueryContext.isSuccess]);
48582
+ }, [fetchcollectionsQueryContext === null || fetchcollectionsQueryContext === void 0 ? void 0 : fetchcollectionsQueryContext.isSuccess, fetchcollectionsQueryContext.data]);
48505
48583
  React.useEffect(function () {
48506
48584
  if (fetchingtype == 'vendors') {
48507
48585
  if (FetchVendorsQuery.isSuccess) {
@@ -48515,14 +48593,6 @@
48515
48593
  React.useEffect(function () {
48516
48594
  favassigner();
48517
48595
  }, [favoriteprojectscountContext]);
48518
- React.useEffect(function () {
48519
- if (sectionproperties.length != 0 && sectionproperties.maincontainerarrayofobjs != undefined) {
48520
- var maincontainerarrayofobjsparsed = JSON.parse(sectionproperties.maincontainerarrayofobjs);
48521
- if (Array.isArray(maincontainerarrayofobjsparsed)) {
48522
- setmaincontainerarrayofobjs(_toConsumableArray__default["default"](maincontainerarrayofobjsparsed));
48523
- }
48524
- }
48525
- }, [sectionproperties]);
48526
48596
  var favassigner = function favassigner() {
48527
48597
  if (fetchingtype == 'products') {
48528
48598
  if (cardsarray.length != 0) {
@@ -48551,6 +48621,7 @@
48551
48621
  image: ''
48552
48622
  };
48553
48623
  if (fetchingtype == 'products') {
48624
+ var _arrayItem$features3;
48554
48625
  var itemquantity = 0;
48555
48626
  if (langdetect == 'en') {
48556
48627
  cardobj.name = arrayItem.productinfo.name_en;
@@ -48562,6 +48633,11 @@
48562
48633
  } else {
48563
48634
  cardobj.description = arrayItem.productinfo.description_ar;
48564
48635
  }
48636
+ if (langdetect == 'en') {
48637
+ cardobj.shortdescription = arrayItem.short_description_en;
48638
+ } else {
48639
+ cardobj.shortdescription = arrayItem.short_description_ar;
48640
+ }
48565
48641
  if (arrayItem.productinfo.hasvariants == 0) {
48566
48642
  fetchcustomercartQueryContext.data.data.customercart.cartitems.forEach(function (cartitem, cartindex) {
48567
48643
  if (cartitem.productid == arrayItem.productinfo.productid) {
@@ -48570,6 +48646,16 @@
48570
48646
  });
48571
48647
  }
48572
48648
  cardobj.image = arrayItem.productinfo.productmainimage;
48649
+ cardobj.producttags = arrayItem.tags;
48650
+ if (langdetect == 'en') {
48651
+ var _arrayItem$features;
48652
+ cardobj.productfeature = arrayItem === null || arrayItem === void 0 || (_arrayItem$features = arrayItem.features) === null || _arrayItem$features === void 0 ? void 0 : _arrayItem$features.value_en;
48653
+ } else {
48654
+ var _arrayItem$features2;
48655
+ cardobj.productfeature = arrayItem === null || arrayItem === void 0 || (_arrayItem$features2 = arrayItem.features) === null || _arrayItem$features2 === void 0 ? void 0 : _arrayItem$features2.value_ar;
48656
+ }
48657
+ cardobj.productfeatureid = arrayItem === null || arrayItem === void 0 || (_arrayItem$features3 = arrayItem.features) === null || _arrayItem$features3 === void 0 ? void 0 : _arrayItem$features3.featureid;
48658
+ cardobj.productendpointurl = arrayItem.productinfo.productendpointurl;
48573
48659
  cardobj.hassale = arrayItem.productinfo.hassale;
48574
48660
  cardobj.productid = arrayItem.productinfo.productid;
48575
48661
  cardobj.hasvariants = arrayItem.productinfo.hasvariants;
@@ -48579,13 +48665,24 @@
48579
48665
  cardobj.defaultsaleprice = arrayItem.productinfo.defaultsaleprice;
48580
48666
  cardobj.productimages = arrayItem.productinfo.productimages;
48581
48667
  cardobj.quantity = itemquantity;
48668
+ // cardobj.currentquantity = currentquantity;
48582
48669
  cardobj.timestamp = arrayItem.productinfo.timestamp;
48583
48670
  cardobj.productquantity = arrayItem.productinfo.productquantity;
48671
+ cardobj.currentquantity = arrayItem.productinfo.currentquantity;
48584
48672
  cardobj.quantavailtype = arrayItem.productinfo.quantavailtype;
48673
+ cardobj.isproducttobesold = arrayItem.productinfo.isproducttobesold;
48674
+ cardobj.measurmentunit = arrayItem.productinfo.measurmentunit;
48675
+ cardobj.prodaffpercentprofit = arrayItem.productinfo.prodaffpercentprofit;
48676
+ cardobj.productcashbackvalue = arrayItem.productinfo.productcashbackvalue;
48677
+ cardobj.product_phonenumber = arrayItem.productinfo.product_phonenumber;
48678
+ cardobj.productcanrate = arrayItem.productinfo.productcanrate;
48679
+ cardobj.sku = arrayItem.productinfo.sku;
48585
48680
  if (langdetect == 'en') {
48586
- cardobj.currencyname = fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 ? void 0 : fetchAuthorizationQueryContext.data.data.currencyname_en;
48681
+ var _fetchAuthorizationQu;
48682
+ 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;
48587
48683
  } else {
48588
- cardobj.currencyname = fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 ? void 0 : fetchAuthorizationQueryContext.data.data.currencyname_ar;
48684
+ var _fetchAuthorizationQu2;
48685
+ 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;
48589
48686
  }
48590
48687
  if (favoriteprojectscountContext != undefined && favoriteprojectscountContext.length != 0) {
48591
48688
  favoriteprojectscountContext.forEach(function (favitem, favindex) {
@@ -48596,6 +48693,7 @@
48596
48693
  }
48597
48694
  } else if (fetchingtype == 'collections' || fetchingtype == 'innerparentcollections') {
48598
48695
  cardobj.collectionid = arrayItem.collectionid;
48696
+ cardobj.skiplayeronclick = arrayItem === null || arrayItem === void 0 ? void 0 : arrayItem.skiplayeronclick;
48599
48697
  if (langdetect == 'en') {
48600
48698
  cardobj.name = arrayItem.title_en;
48601
48699
  cardobj.description = arrayItem.description_en;
@@ -48604,8 +48702,11 @@
48604
48702
  cardobj.description = arrayItem.description_ar;
48605
48703
  }
48606
48704
  cardobj.image = arrayItem.collectionlogo;
48705
+ cardobj.producttags = [];
48706
+ cardobj.productfeatures = [];
48607
48707
  } else if (fetchingtype == 'categories') {
48608
48708
  cardobj.collectionid = arrayItem.categoryid;
48709
+ cardobj.skiplayeronclick = arrayItem === null || arrayItem === void 0 ? void 0 : arrayItem.skiplayeronclick;
48609
48710
  if (langdetect == 'en') {
48610
48711
  cardobj.name = arrayItem.title_en;
48611
48712
  cardobj.description = arrayItem.description_en;
@@ -48614,8 +48715,11 @@
48614
48715
  cardobj.description = arrayItem.description_ar;
48615
48716
  }
48616
48717
  cardobj.image = arrayItem.categorylogo;
48718
+ cardobj.producttags = [];
48719
+ cardobj.productfeatures = [];
48617
48720
  } else if (fetchingtype == 'parentcollections' || fetchingtype == 'innercategories') {
48618
48721
  cardobj.collectionid = arrayItem.parentcollectionid;
48722
+ cardobj.skiplayeronclick = arrayItem === null || arrayItem === void 0 ? void 0 : arrayItem.skiplayeronclick;
48619
48723
  if (langdetect == 'en') {
48620
48724
  cardobj.name = arrayItem.title_en;
48621
48725
  cardobj.description = arrayItem.description_en;
@@ -48624,10 +48728,17 @@
48624
48728
  cardobj.description = arrayItem.description_ar;
48625
48729
  }
48626
48730
  cardobj.image = arrayItem.parentcollectionlogo;
48627
- } else if (fetchingtype == 'custom') ; else if (fetchingtype == 'vendors') {
48731
+ cardobj.producttags = [];
48732
+ cardobj.productfeatures = [];
48733
+ } else if (fetchingtype == 'custom') {
48734
+ cardobj.producttags = [];
48735
+ cardobj.productfeatures = [];
48736
+ } else if (fetchingtype == 'vendors') {
48628
48737
  cardobj.name = arrayItem.vendorname;
48629
48738
  cardobj.collectionid = arrayItem.vendorid;
48630
48739
  cardobj.image = arrayItem.vendorlogourl;
48740
+ cardobj.producttags = [];
48741
+ cardobj.productfeatures = [];
48631
48742
  }
48632
48743
  temparray.push(cardobj);
48633
48744
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tabexseriescomponents",
3
- "version": "0.0.473",
3
+ "version": "0.0.475",
4
4
  "description": "your description",
5
5
  "main": "dist/index.cjs.js",
6
6
  "scripts": {