tabexseriescomponents 0.0.467 → 0.0.468
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 +49 -10
- package/dist/index.esm.js +49 -10
- package/dist/index.umd.js +49 -10
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -47723,6 +47723,7 @@ var ModernCardsSection = function ModernCardsSection(props) {
|
|
|
47723
47723
|
image: ''
|
|
47724
47724
|
};
|
|
47725
47725
|
if (fetchingtype == 'products') {
|
|
47726
|
+
var _arrayItem$features3;
|
|
47726
47727
|
var itemquantity = 0;
|
|
47727
47728
|
if (langdetect == 'en') {
|
|
47728
47729
|
cardobj.name = arrayItem.productinfo.name_en;
|
|
@@ -47734,6 +47735,11 @@ var ModernCardsSection = function ModernCardsSection(props) {
|
|
|
47734
47735
|
} else {
|
|
47735
47736
|
cardobj.description = arrayItem.productinfo.description_ar;
|
|
47736
47737
|
}
|
|
47738
|
+
if (langdetect == 'en') {
|
|
47739
|
+
cardobj.shortdescription = arrayItem.short_description_en;
|
|
47740
|
+
} else {
|
|
47741
|
+
cardobj.shortdescription = arrayItem.short_description_ar;
|
|
47742
|
+
}
|
|
47737
47743
|
if (arrayItem.productinfo.hasvariants == 0) {
|
|
47738
47744
|
fetchcustomercartQueryContext.data.data.customercart.cartitems.forEach(function (cartitem, cartindex) {
|
|
47739
47745
|
if (cartitem.productid == arrayItem.productinfo.productid) {
|
|
@@ -47742,6 +47748,15 @@ var ModernCardsSection = function ModernCardsSection(props) {
|
|
|
47742
47748
|
});
|
|
47743
47749
|
}
|
|
47744
47750
|
cardobj.image = arrayItem.productinfo.productmainimage;
|
|
47751
|
+
cardobj.producttags = arrayItem.tags;
|
|
47752
|
+
if (langdetect == 'en') {
|
|
47753
|
+
var _arrayItem$features;
|
|
47754
|
+
cardobj.productfeature = arrayItem === null || arrayItem === void 0 || (_arrayItem$features = arrayItem.features) === null || _arrayItem$features === void 0 ? void 0 : _arrayItem$features.value_en;
|
|
47755
|
+
} else {
|
|
47756
|
+
var _arrayItem$features2;
|
|
47757
|
+
cardobj.productfeature = arrayItem === null || arrayItem === void 0 || (_arrayItem$features2 = arrayItem.features) === null || _arrayItem$features2 === void 0 ? void 0 : _arrayItem$features2.value_ar;
|
|
47758
|
+
}
|
|
47759
|
+
cardobj.productfeatureid = arrayItem === null || arrayItem === void 0 || (_arrayItem$features3 = arrayItem.features) === null || _arrayItem$features3 === void 0 ? void 0 : _arrayItem$features3.featureid;
|
|
47745
47760
|
cardobj.hassale = arrayItem.productinfo.hassale;
|
|
47746
47761
|
cardobj.productid = arrayItem.productinfo.productid;
|
|
47747
47762
|
cardobj.hasvariants = arrayItem.productinfo.hasvariants;
|
|
@@ -47751,18 +47766,24 @@ var ModernCardsSection = function ModernCardsSection(props) {
|
|
|
47751
47766
|
cardobj.defaultsaleprice = arrayItem.productinfo.defaultsaleprice;
|
|
47752
47767
|
cardobj.productimages = arrayItem.productinfo.productimages;
|
|
47753
47768
|
cardobj.quantity = itemquantity;
|
|
47769
|
+
// cardobj.currentquantity = currentquantity;
|
|
47754
47770
|
cardobj.timestamp = arrayItem.productinfo.timestamp;
|
|
47771
|
+
cardobj.productquantity = arrayItem.productinfo.productquantity;
|
|
47772
|
+
cardobj.currentquantity = arrayItem.productinfo.currentquantity;
|
|
47773
|
+
cardobj.quantavailtype = arrayItem.productinfo.quantavailtype;
|
|
47774
|
+
cardobj.isproducttobesold = arrayItem.productinfo.isproducttobesold;
|
|
47775
|
+
cardobj.measurmentunit = arrayItem.productinfo.measurmentunit;
|
|
47776
|
+
cardobj.prodaffpercentprofit = arrayItem.productinfo.prodaffpercentprofit;
|
|
47777
|
+
cardobj.productcashbackvalue = arrayItem.productinfo.productcashbackvalue;
|
|
47778
|
+
cardobj.product_phonenumber = arrayItem.productinfo.product_phonenumber;
|
|
47779
|
+
cardobj.productcanrate = arrayItem.productinfo.productcanrate;
|
|
47780
|
+
cardobj.sku = arrayItem.productinfo.sku;
|
|
47755
47781
|
if (langdetect == 'en') {
|
|
47756
|
-
|
|
47782
|
+
var _fetchAuthorizationQu;
|
|
47783
|
+
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;
|
|
47757
47784
|
} else {
|
|
47758
|
-
|
|
47759
|
-
|
|
47760
|
-
if (favoriteprojectscountContext != undefined && favoriteprojectscountContext.length != 0) {
|
|
47761
|
-
favoriteprojectscountContext.forEach(function (favitem, favindex) {
|
|
47762
|
-
if (arrayItem.productinfo.productid == favitem) {
|
|
47763
|
-
cardobj.IsFavExists = true;
|
|
47764
|
-
}
|
|
47765
|
-
});
|
|
47785
|
+
var _fetchAuthorizationQu2;
|
|
47786
|
+
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;
|
|
47766
47787
|
}
|
|
47767
47788
|
if (favoriteprojectscountContext != undefined && favoriteprojectscountContext.length != 0) {
|
|
47768
47789
|
favoriteprojectscountContext.forEach(function (favitem, favindex) {
|
|
@@ -47773,6 +47794,7 @@ var ModernCardsSection = function ModernCardsSection(props) {
|
|
|
47773
47794
|
}
|
|
47774
47795
|
} else if (fetchingtype == 'collections' || fetchingtype == 'innerparentcollections') {
|
|
47775
47796
|
cardobj.collectionid = arrayItem.collectionid;
|
|
47797
|
+
cardobj.skiplayeronclick = arrayItem === null || arrayItem === void 0 ? void 0 : arrayItem.skiplayeronclick;
|
|
47776
47798
|
if (langdetect == 'en') {
|
|
47777
47799
|
cardobj.name = arrayItem.title_en;
|
|
47778
47800
|
cardobj.description = arrayItem.description_en;
|
|
@@ -47781,8 +47803,11 @@ var ModernCardsSection = function ModernCardsSection(props) {
|
|
|
47781
47803
|
cardobj.description = arrayItem.description_ar;
|
|
47782
47804
|
}
|
|
47783
47805
|
cardobj.image = arrayItem.collectionlogo;
|
|
47806
|
+
cardobj.producttags = [];
|
|
47807
|
+
cardobj.productfeatures = [];
|
|
47784
47808
|
} else if (fetchingtype == 'categories') {
|
|
47785
47809
|
cardobj.collectionid = arrayItem.categoryid;
|
|
47810
|
+
cardobj.skiplayeronclick = arrayItem === null || arrayItem === void 0 ? void 0 : arrayItem.skiplayeronclick;
|
|
47786
47811
|
if (langdetect == 'en') {
|
|
47787
47812
|
cardobj.name = arrayItem.title_en;
|
|
47788
47813
|
cardobj.description = arrayItem.description_en;
|
|
@@ -47791,8 +47816,11 @@ var ModernCardsSection = function ModernCardsSection(props) {
|
|
|
47791
47816
|
cardobj.description = arrayItem.description_ar;
|
|
47792
47817
|
}
|
|
47793
47818
|
cardobj.image = arrayItem.categorylogo;
|
|
47819
|
+
cardobj.producttags = [];
|
|
47820
|
+
cardobj.productfeatures = [];
|
|
47794
47821
|
} else if (fetchingtype == 'parentcollections' || fetchingtype == 'innercategories') {
|
|
47795
47822
|
cardobj.collectionid = arrayItem.parentcollectionid;
|
|
47823
|
+
cardobj.skiplayeronclick = arrayItem === null || arrayItem === void 0 ? void 0 : arrayItem.skiplayeronclick;
|
|
47796
47824
|
if (langdetect == 'en') {
|
|
47797
47825
|
cardobj.name = arrayItem.title_en;
|
|
47798
47826
|
cardobj.description = arrayItem.description_en;
|
|
@@ -47801,7 +47829,18 @@ var ModernCardsSection = function ModernCardsSection(props) {
|
|
|
47801
47829
|
cardobj.description = arrayItem.description_ar;
|
|
47802
47830
|
}
|
|
47803
47831
|
cardobj.image = arrayItem.parentcollectionlogo;
|
|
47804
|
-
|
|
47832
|
+
cardobj.producttags = [];
|
|
47833
|
+
cardobj.productfeatures = [];
|
|
47834
|
+
} else if (fetchingtype == 'custom') {
|
|
47835
|
+
cardobj.producttags = [];
|
|
47836
|
+
cardobj.productfeatures = [];
|
|
47837
|
+
} else if (fetchingtype == 'vendors') {
|
|
47838
|
+
cardobj.name = arrayItem.vendorname;
|
|
47839
|
+
cardobj.collectionid = arrayItem.vendorid;
|
|
47840
|
+
cardobj.image = arrayItem.vendorlogourl;
|
|
47841
|
+
cardobj.producttags = [];
|
|
47842
|
+
cardobj.productfeatures = [];
|
|
47843
|
+
}
|
|
47805
47844
|
temparray.push(cardobj);
|
|
47806
47845
|
});
|
|
47807
47846
|
setcardsarray([].concat(temparray));
|
package/dist/index.esm.js
CHANGED
|
@@ -47674,6 +47674,7 @@ var ModernCardsSection = function ModernCardsSection(props) {
|
|
|
47674
47674
|
image: ''
|
|
47675
47675
|
};
|
|
47676
47676
|
if (fetchingtype == 'products') {
|
|
47677
|
+
var _arrayItem$features3;
|
|
47677
47678
|
var itemquantity = 0;
|
|
47678
47679
|
if (langdetect == 'en') {
|
|
47679
47680
|
cardobj.name = arrayItem.productinfo.name_en;
|
|
@@ -47685,6 +47686,11 @@ var ModernCardsSection = function ModernCardsSection(props) {
|
|
|
47685
47686
|
} else {
|
|
47686
47687
|
cardobj.description = arrayItem.productinfo.description_ar;
|
|
47687
47688
|
}
|
|
47689
|
+
if (langdetect == 'en') {
|
|
47690
|
+
cardobj.shortdescription = arrayItem.short_description_en;
|
|
47691
|
+
} else {
|
|
47692
|
+
cardobj.shortdescription = arrayItem.short_description_ar;
|
|
47693
|
+
}
|
|
47688
47694
|
if (arrayItem.productinfo.hasvariants == 0) {
|
|
47689
47695
|
fetchcustomercartQueryContext.data.data.customercart.cartitems.forEach(function (cartitem, cartindex) {
|
|
47690
47696
|
if (cartitem.productid == arrayItem.productinfo.productid) {
|
|
@@ -47693,6 +47699,15 @@ var ModernCardsSection = function ModernCardsSection(props) {
|
|
|
47693
47699
|
});
|
|
47694
47700
|
}
|
|
47695
47701
|
cardobj.image = arrayItem.productinfo.productmainimage;
|
|
47702
|
+
cardobj.producttags = arrayItem.tags;
|
|
47703
|
+
if (langdetect == 'en') {
|
|
47704
|
+
var _arrayItem$features;
|
|
47705
|
+
cardobj.productfeature = arrayItem === null || arrayItem === void 0 || (_arrayItem$features = arrayItem.features) === null || _arrayItem$features === void 0 ? void 0 : _arrayItem$features.value_en;
|
|
47706
|
+
} else {
|
|
47707
|
+
var _arrayItem$features2;
|
|
47708
|
+
cardobj.productfeature = arrayItem === null || arrayItem === void 0 || (_arrayItem$features2 = arrayItem.features) === null || _arrayItem$features2 === void 0 ? void 0 : _arrayItem$features2.value_ar;
|
|
47709
|
+
}
|
|
47710
|
+
cardobj.productfeatureid = arrayItem === null || arrayItem === void 0 || (_arrayItem$features3 = arrayItem.features) === null || _arrayItem$features3 === void 0 ? void 0 : _arrayItem$features3.featureid;
|
|
47696
47711
|
cardobj.hassale = arrayItem.productinfo.hassale;
|
|
47697
47712
|
cardobj.productid = arrayItem.productinfo.productid;
|
|
47698
47713
|
cardobj.hasvariants = arrayItem.productinfo.hasvariants;
|
|
@@ -47702,18 +47717,24 @@ var ModernCardsSection = function ModernCardsSection(props) {
|
|
|
47702
47717
|
cardobj.defaultsaleprice = arrayItem.productinfo.defaultsaleprice;
|
|
47703
47718
|
cardobj.productimages = arrayItem.productinfo.productimages;
|
|
47704
47719
|
cardobj.quantity = itemquantity;
|
|
47720
|
+
// cardobj.currentquantity = currentquantity;
|
|
47705
47721
|
cardobj.timestamp = arrayItem.productinfo.timestamp;
|
|
47722
|
+
cardobj.productquantity = arrayItem.productinfo.productquantity;
|
|
47723
|
+
cardobj.currentquantity = arrayItem.productinfo.currentquantity;
|
|
47724
|
+
cardobj.quantavailtype = arrayItem.productinfo.quantavailtype;
|
|
47725
|
+
cardobj.isproducttobesold = arrayItem.productinfo.isproducttobesold;
|
|
47726
|
+
cardobj.measurmentunit = arrayItem.productinfo.measurmentunit;
|
|
47727
|
+
cardobj.prodaffpercentprofit = arrayItem.productinfo.prodaffpercentprofit;
|
|
47728
|
+
cardobj.productcashbackvalue = arrayItem.productinfo.productcashbackvalue;
|
|
47729
|
+
cardobj.product_phonenumber = arrayItem.productinfo.product_phonenumber;
|
|
47730
|
+
cardobj.productcanrate = arrayItem.productinfo.productcanrate;
|
|
47731
|
+
cardobj.sku = arrayItem.productinfo.sku;
|
|
47706
47732
|
if (langdetect == 'en') {
|
|
47707
|
-
|
|
47733
|
+
var _fetchAuthorizationQu;
|
|
47734
|
+
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;
|
|
47708
47735
|
} else {
|
|
47709
|
-
|
|
47710
|
-
|
|
47711
|
-
if (favoriteprojectscountContext != undefined && favoriteprojectscountContext.length != 0) {
|
|
47712
|
-
favoriteprojectscountContext.forEach(function (favitem, favindex) {
|
|
47713
|
-
if (arrayItem.productinfo.productid == favitem) {
|
|
47714
|
-
cardobj.IsFavExists = true;
|
|
47715
|
-
}
|
|
47716
|
-
});
|
|
47736
|
+
var _fetchAuthorizationQu2;
|
|
47737
|
+
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;
|
|
47717
47738
|
}
|
|
47718
47739
|
if (favoriteprojectscountContext != undefined && favoriteprojectscountContext.length != 0) {
|
|
47719
47740
|
favoriteprojectscountContext.forEach(function (favitem, favindex) {
|
|
@@ -47724,6 +47745,7 @@ var ModernCardsSection = function ModernCardsSection(props) {
|
|
|
47724
47745
|
}
|
|
47725
47746
|
} else if (fetchingtype == 'collections' || fetchingtype == 'innerparentcollections') {
|
|
47726
47747
|
cardobj.collectionid = arrayItem.collectionid;
|
|
47748
|
+
cardobj.skiplayeronclick = arrayItem === null || arrayItem === void 0 ? void 0 : arrayItem.skiplayeronclick;
|
|
47727
47749
|
if (langdetect == 'en') {
|
|
47728
47750
|
cardobj.name = arrayItem.title_en;
|
|
47729
47751
|
cardobj.description = arrayItem.description_en;
|
|
@@ -47732,8 +47754,11 @@ var ModernCardsSection = function ModernCardsSection(props) {
|
|
|
47732
47754
|
cardobj.description = arrayItem.description_ar;
|
|
47733
47755
|
}
|
|
47734
47756
|
cardobj.image = arrayItem.collectionlogo;
|
|
47757
|
+
cardobj.producttags = [];
|
|
47758
|
+
cardobj.productfeatures = [];
|
|
47735
47759
|
} else if (fetchingtype == 'categories') {
|
|
47736
47760
|
cardobj.collectionid = arrayItem.categoryid;
|
|
47761
|
+
cardobj.skiplayeronclick = arrayItem === null || arrayItem === void 0 ? void 0 : arrayItem.skiplayeronclick;
|
|
47737
47762
|
if (langdetect == 'en') {
|
|
47738
47763
|
cardobj.name = arrayItem.title_en;
|
|
47739
47764
|
cardobj.description = arrayItem.description_en;
|
|
@@ -47742,8 +47767,11 @@ var ModernCardsSection = function ModernCardsSection(props) {
|
|
|
47742
47767
|
cardobj.description = arrayItem.description_ar;
|
|
47743
47768
|
}
|
|
47744
47769
|
cardobj.image = arrayItem.categorylogo;
|
|
47770
|
+
cardobj.producttags = [];
|
|
47771
|
+
cardobj.productfeatures = [];
|
|
47745
47772
|
} else if (fetchingtype == 'parentcollections' || fetchingtype == 'innercategories') {
|
|
47746
47773
|
cardobj.collectionid = arrayItem.parentcollectionid;
|
|
47774
|
+
cardobj.skiplayeronclick = arrayItem === null || arrayItem === void 0 ? void 0 : arrayItem.skiplayeronclick;
|
|
47747
47775
|
if (langdetect == 'en') {
|
|
47748
47776
|
cardobj.name = arrayItem.title_en;
|
|
47749
47777
|
cardobj.description = arrayItem.description_en;
|
|
@@ -47752,7 +47780,18 @@ var ModernCardsSection = function ModernCardsSection(props) {
|
|
|
47752
47780
|
cardobj.description = arrayItem.description_ar;
|
|
47753
47781
|
}
|
|
47754
47782
|
cardobj.image = arrayItem.parentcollectionlogo;
|
|
47755
|
-
|
|
47783
|
+
cardobj.producttags = [];
|
|
47784
|
+
cardobj.productfeatures = [];
|
|
47785
|
+
} else if (fetchingtype == 'custom') {
|
|
47786
|
+
cardobj.producttags = [];
|
|
47787
|
+
cardobj.productfeatures = [];
|
|
47788
|
+
} else if (fetchingtype == 'vendors') {
|
|
47789
|
+
cardobj.name = arrayItem.vendorname;
|
|
47790
|
+
cardobj.collectionid = arrayItem.vendorid;
|
|
47791
|
+
cardobj.image = arrayItem.vendorlogourl;
|
|
47792
|
+
cardobj.producttags = [];
|
|
47793
|
+
cardobj.productfeatures = [];
|
|
47794
|
+
}
|
|
47756
47795
|
temparray.push(cardobj);
|
|
47757
47796
|
});
|
|
47758
47797
|
setcardsarray([].concat(temparray));
|
package/dist/index.umd.js
CHANGED
|
@@ -47549,6 +47549,7 @@
|
|
|
47549
47549
|
image: ''
|
|
47550
47550
|
};
|
|
47551
47551
|
if (fetchingtype == 'products') {
|
|
47552
|
+
var _arrayItem$features3;
|
|
47552
47553
|
var itemquantity = 0;
|
|
47553
47554
|
if (langdetect == 'en') {
|
|
47554
47555
|
cardobj.name = arrayItem.productinfo.name_en;
|
|
@@ -47560,6 +47561,11 @@
|
|
|
47560
47561
|
} else {
|
|
47561
47562
|
cardobj.description = arrayItem.productinfo.description_ar;
|
|
47562
47563
|
}
|
|
47564
|
+
if (langdetect == 'en') {
|
|
47565
|
+
cardobj.shortdescription = arrayItem.short_description_en;
|
|
47566
|
+
} else {
|
|
47567
|
+
cardobj.shortdescription = arrayItem.short_description_ar;
|
|
47568
|
+
}
|
|
47563
47569
|
if (arrayItem.productinfo.hasvariants == 0) {
|
|
47564
47570
|
fetchcustomercartQueryContext.data.data.customercart.cartitems.forEach(function (cartitem, cartindex) {
|
|
47565
47571
|
if (cartitem.productid == arrayItem.productinfo.productid) {
|
|
@@ -47568,6 +47574,15 @@
|
|
|
47568
47574
|
});
|
|
47569
47575
|
}
|
|
47570
47576
|
cardobj.image = arrayItem.productinfo.productmainimage;
|
|
47577
|
+
cardobj.producttags = arrayItem.tags;
|
|
47578
|
+
if (langdetect == 'en') {
|
|
47579
|
+
var _arrayItem$features;
|
|
47580
|
+
cardobj.productfeature = arrayItem === null || arrayItem === void 0 || (_arrayItem$features = arrayItem.features) === null || _arrayItem$features === void 0 ? void 0 : _arrayItem$features.value_en;
|
|
47581
|
+
} else {
|
|
47582
|
+
var _arrayItem$features2;
|
|
47583
|
+
cardobj.productfeature = arrayItem === null || arrayItem === void 0 || (_arrayItem$features2 = arrayItem.features) === null || _arrayItem$features2 === void 0 ? void 0 : _arrayItem$features2.value_ar;
|
|
47584
|
+
}
|
|
47585
|
+
cardobj.productfeatureid = arrayItem === null || arrayItem === void 0 || (_arrayItem$features3 = arrayItem.features) === null || _arrayItem$features3 === void 0 ? void 0 : _arrayItem$features3.featureid;
|
|
47571
47586
|
cardobj.hassale = arrayItem.productinfo.hassale;
|
|
47572
47587
|
cardobj.productid = arrayItem.productinfo.productid;
|
|
47573
47588
|
cardobj.hasvariants = arrayItem.productinfo.hasvariants;
|
|
@@ -47577,18 +47592,24 @@
|
|
|
47577
47592
|
cardobj.defaultsaleprice = arrayItem.productinfo.defaultsaleprice;
|
|
47578
47593
|
cardobj.productimages = arrayItem.productinfo.productimages;
|
|
47579
47594
|
cardobj.quantity = itemquantity;
|
|
47595
|
+
// cardobj.currentquantity = currentquantity;
|
|
47580
47596
|
cardobj.timestamp = arrayItem.productinfo.timestamp;
|
|
47597
|
+
cardobj.productquantity = arrayItem.productinfo.productquantity;
|
|
47598
|
+
cardobj.currentquantity = arrayItem.productinfo.currentquantity;
|
|
47599
|
+
cardobj.quantavailtype = arrayItem.productinfo.quantavailtype;
|
|
47600
|
+
cardobj.isproducttobesold = arrayItem.productinfo.isproducttobesold;
|
|
47601
|
+
cardobj.measurmentunit = arrayItem.productinfo.measurmentunit;
|
|
47602
|
+
cardobj.prodaffpercentprofit = arrayItem.productinfo.prodaffpercentprofit;
|
|
47603
|
+
cardobj.productcashbackvalue = arrayItem.productinfo.productcashbackvalue;
|
|
47604
|
+
cardobj.product_phonenumber = arrayItem.productinfo.product_phonenumber;
|
|
47605
|
+
cardobj.productcanrate = arrayItem.productinfo.productcanrate;
|
|
47606
|
+
cardobj.sku = arrayItem.productinfo.sku;
|
|
47581
47607
|
if (langdetect == 'en') {
|
|
47582
|
-
|
|
47608
|
+
var _fetchAuthorizationQu;
|
|
47609
|
+
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;
|
|
47583
47610
|
} else {
|
|
47584
|
-
|
|
47585
|
-
|
|
47586
|
-
if (favoriteprojectscountContext != undefined && favoriteprojectscountContext.length != 0) {
|
|
47587
|
-
favoriteprojectscountContext.forEach(function (favitem, favindex) {
|
|
47588
|
-
if (arrayItem.productinfo.productid == favitem) {
|
|
47589
|
-
cardobj.IsFavExists = true;
|
|
47590
|
-
}
|
|
47591
|
-
});
|
|
47611
|
+
var _fetchAuthorizationQu2;
|
|
47612
|
+
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;
|
|
47592
47613
|
}
|
|
47593
47614
|
if (favoriteprojectscountContext != undefined && favoriteprojectscountContext.length != 0) {
|
|
47594
47615
|
favoriteprojectscountContext.forEach(function (favitem, favindex) {
|
|
@@ -47599,6 +47620,7 @@
|
|
|
47599
47620
|
}
|
|
47600
47621
|
} else if (fetchingtype == 'collections' || fetchingtype == 'innerparentcollections') {
|
|
47601
47622
|
cardobj.collectionid = arrayItem.collectionid;
|
|
47623
|
+
cardobj.skiplayeronclick = arrayItem === null || arrayItem === void 0 ? void 0 : arrayItem.skiplayeronclick;
|
|
47602
47624
|
if (langdetect == 'en') {
|
|
47603
47625
|
cardobj.name = arrayItem.title_en;
|
|
47604
47626
|
cardobj.description = arrayItem.description_en;
|
|
@@ -47607,8 +47629,11 @@
|
|
|
47607
47629
|
cardobj.description = arrayItem.description_ar;
|
|
47608
47630
|
}
|
|
47609
47631
|
cardobj.image = arrayItem.collectionlogo;
|
|
47632
|
+
cardobj.producttags = [];
|
|
47633
|
+
cardobj.productfeatures = [];
|
|
47610
47634
|
} else if (fetchingtype == 'categories') {
|
|
47611
47635
|
cardobj.collectionid = arrayItem.categoryid;
|
|
47636
|
+
cardobj.skiplayeronclick = arrayItem === null || arrayItem === void 0 ? void 0 : arrayItem.skiplayeronclick;
|
|
47612
47637
|
if (langdetect == 'en') {
|
|
47613
47638
|
cardobj.name = arrayItem.title_en;
|
|
47614
47639
|
cardobj.description = arrayItem.description_en;
|
|
@@ -47617,8 +47642,11 @@
|
|
|
47617
47642
|
cardobj.description = arrayItem.description_ar;
|
|
47618
47643
|
}
|
|
47619
47644
|
cardobj.image = arrayItem.categorylogo;
|
|
47645
|
+
cardobj.producttags = [];
|
|
47646
|
+
cardobj.productfeatures = [];
|
|
47620
47647
|
} else if (fetchingtype == 'parentcollections' || fetchingtype == 'innercategories') {
|
|
47621
47648
|
cardobj.collectionid = arrayItem.parentcollectionid;
|
|
47649
|
+
cardobj.skiplayeronclick = arrayItem === null || arrayItem === void 0 ? void 0 : arrayItem.skiplayeronclick;
|
|
47622
47650
|
if (langdetect == 'en') {
|
|
47623
47651
|
cardobj.name = arrayItem.title_en;
|
|
47624
47652
|
cardobj.description = arrayItem.description_en;
|
|
@@ -47627,7 +47655,18 @@
|
|
|
47627
47655
|
cardobj.description = arrayItem.description_ar;
|
|
47628
47656
|
}
|
|
47629
47657
|
cardobj.image = arrayItem.parentcollectionlogo;
|
|
47630
|
-
|
|
47658
|
+
cardobj.producttags = [];
|
|
47659
|
+
cardobj.productfeatures = [];
|
|
47660
|
+
} else if (fetchingtype == 'custom') {
|
|
47661
|
+
cardobj.producttags = [];
|
|
47662
|
+
cardobj.productfeatures = [];
|
|
47663
|
+
} else if (fetchingtype == 'vendors') {
|
|
47664
|
+
cardobj.name = arrayItem.vendorname;
|
|
47665
|
+
cardobj.collectionid = arrayItem.vendorid;
|
|
47666
|
+
cardobj.image = arrayItem.vendorlogourl;
|
|
47667
|
+
cardobj.producttags = [];
|
|
47668
|
+
cardobj.productfeatures = [];
|
|
47669
|
+
}
|
|
47631
47670
|
temparray.push(cardobj);
|
|
47632
47671
|
});
|
|
47633
47672
|
setcardsarray([].concat(temparray));
|