tabexseriescomponents 0.0.579 → 0.0.580
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 +290 -133
- package/dist/index.esm.js +290 -133
- package/dist/index.umd.js +290 -133
- package/package.json +2 -1
package/dist/index.cjs.js
CHANGED
|
@@ -17683,9 +17683,11 @@ var CardsSection = function CardsSection(props) {
|
|
|
17683
17683
|
}
|
|
17684
17684
|
var section_cssstyles = {
|
|
17685
17685
|
sectioncontainerr: glamor.css({
|
|
17686
|
+
width: sectionproperties.width + 'vw',
|
|
17686
17687
|
marginTop: sectionproperties.marginTop + 'px',
|
|
17687
17688
|
'@media (max-width: 800px)': {
|
|
17688
|
-
marginTop: sectionproperties.marginTopResp != undefined && sectionproperties.marginTopResp != undefined ? sectionproperties.marginTopResp + 'px' : sectionproperties.marginTop + 'px'
|
|
17689
|
+
marginTop: sectionproperties.marginTopResp != undefined && sectionproperties.marginTopResp != undefined ? sectionproperties.marginTopResp + 'px' : sectionproperties.marginTop + 'px',
|
|
17690
|
+
width: sectionproperties.widthresponsive + 'vw'
|
|
17689
17691
|
}
|
|
17690
17692
|
}),
|
|
17691
17693
|
innercardssection: glamor.css({
|
|
@@ -18030,7 +18032,7 @@ var CardsSection = function CardsSection(props) {
|
|
|
18030
18032
|
}
|
|
18031
18033
|
}, SectionTitle()), sectionproperties.sectiontitledirection == 'Vertical' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18032
18034
|
"class": "col-lg-12 p-0"
|
|
18033
|
-
}, sectionproperties.viewmorebtnshow == 'Show' && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
18035
|
+
}, sectionproperties.viewmorebtnshow == 'Show' && sectionproperties.viewmorebtnposition != 'Under Section' && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
18034
18036
|
"class": sectionproperties.viewmorebtn_bgtransparent == 'Transparent' ? sectionproperties.sectiontitleposition == 'Centered' ? "".concat(section_cssstyles.viewmorebtn) + ' m-sm-0 allcentered mt-auto mb-auto mb-sm-3 ' : "".concat(section_cssstyles.viewmorebtn) + ' m-sm-0 mt-auto mb-auto ' : sectionproperties.sectiontitleposition == 'Centered' ? "".concat(section_cssstyles.viewmorebtn) + ' m-sm-0 allcentered mt-auto mb-auto ' : "".concat(section_cssstyles.viewmorebtn) + ' m-sm-0 mt-auto mb-auto ',
|
|
18035
18037
|
onClick: function onClick() {
|
|
18036
18038
|
if (fetchingtype == 'products') {
|
|
@@ -18099,7 +18101,7 @@ var CardsSection = function CardsSection(props) {
|
|
|
18099
18101
|
}
|
|
18100
18102
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18101
18103
|
"class": sectionproperties.sectiontitleposition == 'Centered' ? ' row m-0 w-100 d-flex align-item-center justify-content-center mt-auto mb-auto ' : ' row m-0 w-100 d-flex align-item-center justify-content-end mt-auto mb-auto '
|
|
18102
|
-
}, sectionproperties.viewmorebtnshow == 'Show' && sectionproperties.sectiontitledirection == 'Horizontal' && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
18104
|
+
}, sectionproperties.viewmorebtnshow == 'Show' && sectionproperties.sectiontitledirection == 'Horizontal' && sectionproperties.viewmorebtnposition != 'Under Section' && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
18103
18105
|
"class": sectionproperties.viewmorebtn_bgtransparent == 'Transparent' ? sectionproperties.sectiontitleposition == 'Centered' ? "".concat(section_cssstyles.viewmorebtn) + ' m-sm-0 allcentered mt-auto mb-auto mb-sm-3 ' : "".concat(section_cssstyles.viewmorebtn) + ' w-sm-auto btn-circle-resp m-sm-0 mt-auto mb-auto ' : 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 ',
|
|
18104
18106
|
onClick: function onClick() {
|
|
18105
18107
|
if (fetchingtype == 'products') {
|
|
@@ -18254,7 +18256,10 @@ var CardsSection = function CardsSection(props) {
|
|
|
18254
18256
|
item.tabexsectioninfo.sectioncompname == 'Productcard7' ? 'scrollmenuclassnameitemProductcard7' : item.tabexsectioninfo.sectioncompname == 'MenuCard' ? 'scrollmenuclassnameitemMenuCard' : item.tabexsectioninfo.sectioncompname == 'StylishProductCard' ? 'scrollmenuclassnameitemStylishProductCard' : item.tabexsectioninfo.sectioncompname == 'ProductCardWithTextOnImage' ? 'scrollmenuclassnameitemProductCardWithTextOnImage' :
|
|
18255
18257
|
// : item.tabexsectioninfo.sectioncompname == 'Card23'
|
|
18256
18258
|
// ? 'scrollmenuclassnameitemCard23'
|
|
18257
|
-
item.tabexsectioninfo.sectioncompname == 'Card20' ? 'scrollmenuclassnameitemCard20' : item.tabexsectioninfo.sectioncompname == 'ModernCardWithQuantityButton' ? 'scrollmenuclassnameitemModernCardWithQuantityButton' :
|
|
18259
|
+
item.tabexsectioninfo.sectioncompname == 'Card20' ? 'scrollmenuclassnameitemCard20' : item.tabexsectioninfo.sectioncompname == 'ModernCardWithQuantityButton' ? 'scrollmenuclassnameitemModernCardWithQuantityButton' :
|
|
18260
|
+
// : item.tabexsectioninfo.sectioncompname == 'CategoryCardwithhoveraction'
|
|
18261
|
+
// ? 'scrollmenuclassnameitemCategoryCardwithhoveraction'
|
|
18262
|
+
item.tabexsectioninfo.sectioncompname == 'CircleCardWithVariants' ? 'scrollmenuclassnameitemCircleCardWithVariants' :
|
|
18258
18263
|
// : item.tabexsectioninfo.sectioncompname == 'UpSlideEffectCard'
|
|
18259
18264
|
// ? 'scrollmenuclassnameitemUpSlideEffectCard'
|
|
18260
18265
|
item.tabexsectioninfo.sectioncompname == 'CategoryCardTextOnImage' ? 'scrollmenuclassnameitemCategoryCardTextOnImage' : '',
|
|
@@ -18516,24 +18521,55 @@ var CardsSection = function CardsSection(props) {
|
|
|
18516
18521
|
}))));
|
|
18517
18522
|
}
|
|
18518
18523
|
}
|
|
18519
|
-
}))
|
|
18524
|
+
})), sectionproperties.viewmorebtnposition == 'Under Section' && sectionproperties.viewmorebtnshow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18525
|
+
"class": "col-lg-12 p-0 allcentered"
|
|
18526
|
+
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
18527
|
+
"class": sectionproperties.viewmorebtn_bgtransparent == 'Transparent' ? sectionproperties.sectiontitleposition == 'Centered' ? "".concat(section_cssstyles.viewmorebtn) + ' m-sm-0 allcentered mt-auto mb-auto mb-sm-3 ' : "".concat(section_cssstyles.viewmorebtn) + ' m-sm-0 mt-auto mb-auto ' : sectionproperties.sectiontitleposition == 'Centered' ? "".concat(section_cssstyles.viewmorebtn) + ' m-sm-0 allcentered mt-auto mb-auto ' : "".concat(section_cssstyles.viewmorebtn) + ' m-sm-0 mt-auto mb-auto ',
|
|
18528
|
+
onClick: function onClick() {
|
|
18529
|
+
if (fetchingtype == 'products') {
|
|
18530
|
+
if (ProductsFetchingTypeSectionObj.productfetchingtype == 'Collection') {
|
|
18531
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + ProductsFetchingTypeSectionObj.collectionid);
|
|
18532
|
+
} else {
|
|
18533
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(ProductFilterObjContext)));
|
|
18534
|
+
}
|
|
18535
|
+
} else {
|
|
18536
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
|
|
18537
|
+
}
|
|
18538
|
+
},
|
|
18539
|
+
style: {
|
|
18540
|
+
flexDirection: 'row'
|
|
18541
|
+
}
|
|
18542
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
18543
|
+
"class": 'd-flex justify-content-center align-items-center'
|
|
18544
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
18545
|
+
"class": sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : 'Poppins'
|
|
18546
|
+
}, langdetect == 'en' ? sectionproperties.viewmorebtn_text : sectionproperties.viewmorebtn_text_ar), sectionproperties.showIcon == 'Show' && /*#__PURE__*/React__default["default"].createElement("i", {
|
|
18547
|
+
"class": sectionproperties.sectiontitleposition == 'Centered' ? 'd-flex justify-content-center align-items-center h-100 allcentered' : 'd-flex justify-content-center align-items-center d-md-none h-100',
|
|
18548
|
+
style: {
|
|
18549
|
+
marginLeft: 5,
|
|
18550
|
+
marginRight: 5
|
|
18551
|
+
}
|
|
18552
|
+
}, langdetect == 'en' ? /*#__PURE__*/React__default["default"].createElement(HiOutlineArrowRight.HiOutlineArrowRight, {
|
|
18553
|
+
size: sectionproperties.viewmoreiconfontsize
|
|
18554
|
+
}) : /*#__PURE__*/React__default["default"].createElement(HiOutlineArrowLeft.HiOutlineArrowLeft, {
|
|
18555
|
+
size: sectionproperties.viewmoreiconfontsize
|
|
18556
|
+
})))))));
|
|
18520
18557
|
};
|
|
18521
18558
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18522
18559
|
ref: refscr,
|
|
18523
|
-
"class": section_cssstyles.sectioncontainerr + ' row ml-0 mr-0 d-flex justify-content-center ml-auto mr-auto
|
|
18560
|
+
"class": section_cssstyles.sectioncontainerr + ' row ml-0 mr-0 d-flex justify-content-center ml-auto mr-auto ',
|
|
18524
18561
|
style: {
|
|
18525
18562
|
zIndex: 2,
|
|
18526
18563
|
background: sectionproperties.backgroundColortransparent == 'Transparent' ? 'transparent' : sectionproperties.backgroundColor,
|
|
18527
18564
|
backgroundImage: maincontainerarrayofobjs.length != 0 ? 'url(' + image_serverbaselink + maincontainerarrayofobjs[0].back_bgimage + ')' : '',
|
|
18528
18565
|
backgroundSize: 'cover',
|
|
18529
|
-
width: sectionproperties.width + 'vw',
|
|
18530
18566
|
boxShadow: sectionproperties.sectioncardshadow == 'Show' ? '0 0 10px ' + sectionproperties.sectioncardshadowcolor : 'none',
|
|
18531
18567
|
borderBottomLeftRadius: langdetect == 'en' ? sectionproperties.borderBottomLeftRadius + 'px' : sectionproperties.borderBottomRightRadius + 'px',
|
|
18532
18568
|
borderBottomRightRadius: langdetect == 'en' ? sectionproperties.borderBottomRightRadius + 'px' : sectionproperties.borderBottomLeftRadius + 'px',
|
|
18533
18569
|
borderTopLeftRadius: langdetect == 'en' ? sectionproperties.borderTopLeftRadius + 'px' : sectionproperties.borderTopRightRadius + 'px',
|
|
18534
18570
|
borderTopRightRadius: langdetect == 'en' ? sectionproperties.borderTopRightRadius + 'px' : sectionproperties.borderTopLeftRadius + 'px',
|
|
18535
|
-
marginBottom: sectionproperties.marginBottom + 'px'
|
|
18536
|
-
minHeight: sectionproperties.height == null || sectionproperties.height == 0 ? 'auto' : sectionproperties.height + 'vh'
|
|
18571
|
+
marginBottom: sectionproperties.marginBottom + 'px'
|
|
18572
|
+
// minHeight: sectionproperties.height == null || sectionproperties.height == 0 ? 'auto' : sectionproperties.height + 'vh',
|
|
18537
18573
|
}
|
|
18538
18574
|
}, sectionproperties.length != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
18539
18575
|
"class": section_cssstyles.innercardssection + ' row ml-0 mr-0 d-flex justify-content-center w-md-100 h-md-100 w-100 '
|
|
@@ -49170,8 +49206,8 @@ function ownKeys$1n(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySym
|
|
|
49170
49206
|
function _objectSpread$1n(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1n(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1n(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
49171
49207
|
var ModernCardsSection = function ModernCardsSection(props) {
|
|
49172
49208
|
var _useInView = reactIntersectionObserver.useInView(),
|
|
49173
|
-
ref = _useInView.ref
|
|
49174
|
-
|
|
49209
|
+
ref = _useInView.ref;
|
|
49210
|
+
_useInView.inView;
|
|
49175
49211
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
49176
49212
|
props.actions.lang;
|
|
49177
49213
|
var langdetect = props.actions.langdetect;
|
|
@@ -49192,33 +49228,55 @@ var ModernCardsSection = function ModernCardsSection(props) {
|
|
|
49192
49228
|
var fetchingtype = props.actions.fetchingtype;
|
|
49193
49229
|
props.actions.addtofavoritescontext;
|
|
49194
49230
|
var fetchAuthorizationQueryContext = props.actions.fetchAuthorizationQueryContext;
|
|
49231
|
+
var fetchCategoriesQueryContext = props.actions.fetchCategoriesQueryContext;
|
|
49232
|
+
var FetchVendorsQuery = props.actions.FetchVendorsQuery;
|
|
49233
|
+
props.actions.ikimagecredcontext;
|
|
49234
|
+
props.actions.sortbycontext;
|
|
49235
|
+
props.actions.setsortbycontext;
|
|
49236
|
+
var _useState = React.useState(false),
|
|
49237
|
+
_useState2 = _slicedToArray__default["default"](_useState, 2);
|
|
49238
|
+
_useState2[0];
|
|
49239
|
+
_useState2[1];
|
|
49195
49240
|
var actions = props.actions;
|
|
49196
|
-
var
|
|
49197
|
-
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
49198
|
-
sectionproperties = _useState2[0],
|
|
49199
|
-
setsectionproperties = _useState2[1];
|
|
49200
|
-
var _useState3 = React.useState([]),
|
|
49241
|
+
var _useState3 = React.useState(''),
|
|
49201
49242
|
_useState4 = _slicedToArray__default["default"](_useState3, 2),
|
|
49202
|
-
|
|
49203
|
-
|
|
49204
|
-
var _useState5 = React.useState(
|
|
49243
|
+
sectionproperties = _useState4[0],
|
|
49244
|
+
setsectionproperties = _useState4[1];
|
|
49245
|
+
var _useState5 = React.useState([]),
|
|
49205
49246
|
_useState6 = _slicedToArray__default["default"](_useState5, 2),
|
|
49206
|
-
|
|
49207
|
-
|
|
49208
|
-
|
|
49209
|
-
|
|
49210
|
-
|
|
49211
|
-
|
|
49212
|
-
|
|
49213
|
-
var _useState7 = React.useState({
|
|
49247
|
+
cardsarray = _useState6[0],
|
|
49248
|
+
setcardsarray = _useState6[1];
|
|
49249
|
+
var _useState7 = React.useState(''),
|
|
49250
|
+
_useState8 = _slicedToArray__default["default"](_useState7, 2),
|
|
49251
|
+
sectionitem = _useState8[0],
|
|
49252
|
+
setsectionitem = _useState8[1];
|
|
49253
|
+
var _useState9 = React.useState({
|
|
49214
49254
|
productfetchingtype: 'Random',
|
|
49215
49255
|
collectionid: '',
|
|
49216
49256
|
grouptype: ''
|
|
49217
49257
|
}),
|
|
49218
|
-
|
|
49219
|
-
ProductsFetchingTypeSectionObj =
|
|
49220
|
-
setProductsFetchingTypeSectionObj =
|
|
49258
|
+
_useState10 = _slicedToArray__default["default"](_useState9, 2),
|
|
49259
|
+
ProductsFetchingTypeSectionObj = _useState10[0],
|
|
49260
|
+
setProductsFetchingTypeSectionObj = _useState10[1];
|
|
49261
|
+
var _useState11 = React.useState([]),
|
|
49262
|
+
_useState12 = _slicedToArray__default["default"](_useState11, 2);
|
|
49263
|
+
_useState12[0];
|
|
49264
|
+
var setmaincontainerarrayofobjs = _useState12[1];
|
|
49265
|
+
var _useState13 = React.useState(12),
|
|
49266
|
+
_useState14 = _slicedToArray__default["default"](_useState13, 2);
|
|
49267
|
+
_useState14[0];
|
|
49268
|
+
var setperpageItems = _useState14[1];
|
|
49269
|
+
props.actions.AddtoCartMutationContext;
|
|
49221
49270
|
React.useEffect(function () {
|
|
49271
|
+
var productfilerobjtemp = ProductFilterObjContext;
|
|
49272
|
+
if (props.filterparamsprops != undefined) {
|
|
49273
|
+
var filterpar = decodeURIComponent(props.filterparamsprops);
|
|
49274
|
+
var filterparsed = JSON.parse(filterpar);
|
|
49275
|
+
if (filterparsed != undefined) {
|
|
49276
|
+
productfilerobjtemp = filterparsed;
|
|
49277
|
+
setProductFilterObjContext(filterparsed);
|
|
49278
|
+
}
|
|
49279
|
+
}
|
|
49222
49280
|
StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
|
|
49223
49281
|
if (sectionitem.sectionid == props.sectionidprops) {
|
|
49224
49282
|
var secpropobj = {};
|
|
@@ -49229,14 +49287,20 @@ var ModernCardsSection = function ModernCardsSection(props) {
|
|
|
49229
49287
|
setsectionproperties(_objectSpread$1n({}, secpropobj));
|
|
49230
49288
|
if (props.srcfromprops == 'GeneralProductsComponent') {
|
|
49231
49289
|
setfetchingtype('products');
|
|
49290
|
+
var lcproductfetchingtype = 'Random';
|
|
49291
|
+
if (productfilerobjtemp.ProductFetchingType != undefined && productfilerobjtemp.ProductFetchingType != null && productfilerobjtemp.ProductFetchingType.length != 0) {
|
|
49292
|
+
lcproductfetchingtype = productfilerobjtemp.ProductFetchingType;
|
|
49293
|
+
}
|
|
49232
49294
|
setProductsFetchingTypeSectionObj({
|
|
49233
|
-
productfetchingtype:
|
|
49295
|
+
productfetchingtype: lcproductfetchingtype,
|
|
49234
49296
|
collectionid: props.collectionidprops,
|
|
49235
49297
|
grouptype: props.grouptypeprops,
|
|
49236
49298
|
grouptyperefid: props.grouptyperefidprops
|
|
49237
49299
|
});
|
|
49238
49300
|
} else if (props.srcfromprops == 'InnerGroups' || props.srcfromprops == 'InnerCategory' || props.srcfromprops == 'InnerParentCollection') {
|
|
49239
49301
|
setfetchingtype(props.grouptypeprops);
|
|
49302
|
+
} else if (props.srcfromprops == 'Innervendor') {
|
|
49303
|
+
setfetchingtype('vendors');
|
|
49240
49304
|
} else {
|
|
49241
49305
|
setfetchingtype(sectionitem.fetchingtype);
|
|
49242
49306
|
setProductsFetchingTypeSectionObj({
|
|
@@ -49265,6 +49329,11 @@ var ModernCardsSection = function ModernCardsSection(props) {
|
|
|
49265
49329
|
});
|
|
49266
49330
|
cardobjassigner(allpagesarr);
|
|
49267
49331
|
}
|
|
49332
|
+
} else if (fetchingtype == 'vendors') {
|
|
49333
|
+
if (FetchVendorsQuery.isSuccess) {
|
|
49334
|
+
var _FetchVendorsQuery$da;
|
|
49335
|
+
cardobjassigner(FetchVendorsQuery === null || FetchVendorsQuery === void 0 || (_FetchVendorsQuery$da = FetchVendorsQuery.data) === null || _FetchVendorsQuery$da === void 0 || (_FetchVendorsQuery$da = _FetchVendorsQuery$da.data) === null || _FetchVendorsQuery$da === void 0 ? void 0 : _FetchVendorsQuery$da.vendors);
|
|
49336
|
+
}
|
|
49268
49337
|
}
|
|
49269
49338
|
}
|
|
49270
49339
|
}
|
|
@@ -49273,7 +49342,6 @@ var ModernCardsSection = function ModernCardsSection(props) {
|
|
|
49273
49342
|
if ((fetchingtype === null || fetchingtype === void 0 ? void 0 : fetchingtype.length) != 0) {
|
|
49274
49343
|
var tempFetchQueriesEngineContext = FetchQueriesEngineContext;
|
|
49275
49344
|
if (fetchingtype == 'collections') {
|
|
49276
|
-
// tempFetchQueriesEngineContext.collections = true;
|
|
49277
49345
|
if (ProductsFetchingTypeSectionObj.collectionid == 'all' || ProductsFetchingTypeSectionObj.collectionid == null || ProductsFetchingTypeSectionObj.collectionid == undefined) {
|
|
49278
49346
|
setParentCollectionsForCollectionQueryArr('all');
|
|
49279
49347
|
} else {
|
|
@@ -49284,41 +49352,57 @@ var ModernCardsSection = function ModernCardsSection(props) {
|
|
|
49284
49352
|
var tempfetchproductsfilerobjcontext = ProductFilterObjContext;
|
|
49285
49353
|
tempfetchproductsfilerobjcontext.ProductFetchingType = ProductsFetchingTypeSectionObj.productfetchingtype;
|
|
49286
49354
|
if (ProductsFetchingTypeSectionObj.grouptype == 'collections' || ProductsFetchingTypeSectionObj.grouptype == 'categories' || ProductsFetchingTypeSectionObj.grouptype == 'parentcollections') ; else {
|
|
49287
|
-
tempfetchproductsfilerobjcontext.collections
|
|
49355
|
+
if (tempfetchproductsfilerobjcontext.collections != undefined) {
|
|
49356
|
+
tempfetchproductsfilerobjcontext.collections.push(ProductsFetchingTypeSectionObj.collectionid);
|
|
49357
|
+
}
|
|
49288
49358
|
}
|
|
49289
49359
|
tempfetchproductsfilerobjcontext.grouptype = ProductsFetchingTypeSectionObj.grouptype;
|
|
49290
49360
|
tempfetchproductsfilerobjcontext.grouptyperefid = ProductsFetchingTypeSectionObj.grouptyperefid;
|
|
49291
49361
|
setProductFilterObjContext(_objectSpread$1n({}, tempfetchproductsfilerobjcontext));
|
|
49292
49362
|
}
|
|
49363
|
+
setFetchQueriesEngineContext(_objectSpread$1n({}, tempFetchQueriesEngineContext));
|
|
49364
|
+
}
|
|
49365
|
+
}, [fetchingtype, ProductsFetchingTypeSectionObj]);
|
|
49366
|
+
React.useEffect(function () {
|
|
49367
|
+
if ((fetchingtype === null || fetchingtype === void 0 ? void 0 : fetchingtype.length) != 0) {
|
|
49293
49368
|
if (fetchingtype == 'categories') {
|
|
49294
|
-
|
|
49295
|
-
|
|
49296
|
-
|
|
49369
|
+
var categories = [];
|
|
49370
|
+
if (fetchCategoriesQueryContext !== null && fetchCategoriesQueryContext !== void 0 && fetchCategoriesQueryContext.isSuccess) {
|
|
49371
|
+
var _fetchCategoriesQuery;
|
|
49372
|
+
categories = fetchCategoriesQueryContext === null || fetchCategoriesQueryContext === void 0 || (_fetchCategoriesQuery = fetchCategoriesQueryContext.data) === null || _fetchCategoriesQuery === void 0 || (_fetchCategoriesQuery = _fetchCategoriesQuery.data) === null || _fetchCategoriesQuery === void 0 ? void 0 : _fetchCategoriesQuery.categories;
|
|
49297
49373
|
}
|
|
49374
|
+
cardobjassigner(categories);
|
|
49298
49375
|
}
|
|
49299
49376
|
if (fetchingtype == 'parentcollections' || fetchingtype == 'innercategories') {
|
|
49300
|
-
|
|
49301
|
-
|
|
49302
|
-
|
|
49303
|
-
var
|
|
49304
|
-
(
|
|
49305
|
-
|
|
49377
|
+
var _categories;
|
|
49378
|
+
var categories = [];
|
|
49379
|
+
if (fetchCategoriesQueryContext !== null && fetchCategoriesQueryContext !== void 0 && fetchCategoriesQueryContext.isSuccess) {
|
|
49380
|
+
var _fetchCategoriesQuery2;
|
|
49381
|
+
categories = fetchCategoriesQueryContext === null || fetchCategoriesQueryContext === void 0 || (_fetchCategoriesQuery2 = fetchCategoriesQueryContext.data) === null || _fetchCategoriesQuery2 === void 0 || (_fetchCategoriesQuery2 = _fetchCategoriesQuery2.data) === null || _fetchCategoriesQuery2 === void 0 ? void 0 : _fetchCategoriesQuery2.categories;
|
|
49382
|
+
}
|
|
49383
|
+
// if (fetchAuthorizationQueryContext?.isSuccess) {
|
|
49384
|
+
// var categories = fetchAuthorizationQueryContext.data.data.instinfo.instcategories;
|
|
49385
|
+
// alert(JSON.stringify(categories));
|
|
49386
|
+
var parentcollections = [];
|
|
49387
|
+
(_categories = categories) === null || _categories === void 0 || _categories.forEach(function (catitem, catindex) {
|
|
49388
|
+
catitem === null || catitem === void 0 || catitem.parentcolletions.forEach(function (parentcolitem) {
|
|
49389
|
+
if (parentcolitem.isshowntocustomers == 1) {
|
|
49306
49390
|
parentcolitem.categoryid = catitem.categoryid;
|
|
49307
49391
|
parentcollections.push(parentcolitem);
|
|
49308
|
-
});
|
|
49309
|
-
});
|
|
49310
|
-
if (fetchingtype == 'parentcollections') {
|
|
49311
|
-
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') {
|
|
49312
|
-
var arrafterfilter = [];
|
|
49313
|
-
parentcollections.forEach(function (parentcolitem, parcolindex) {
|
|
49314
|
-
if (parentcolitem.categoryid == (sectionitem === null || sectionitem === void 0 ? void 0 : sectionitem.productsfetchingtypeparentcollectioncategoryid)) {
|
|
49315
|
-
arrafterfilter.push(parentcolitem);
|
|
49316
|
-
}
|
|
49317
|
-
});
|
|
49318
|
-
parentcollections = arrafterfilter;
|
|
49319
49392
|
}
|
|
49393
|
+
});
|
|
49394
|
+
});
|
|
49395
|
+
if (fetchingtype == 'parentcollections') {
|
|
49396
|
+
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') {
|
|
49397
|
+
var arrafterfilter = [];
|
|
49398
|
+
parentcollections.forEach(function (parentcolitem, parcolindex) {
|
|
49399
|
+
if (parentcolitem.categoryid == (sectionitem === null || sectionitem === void 0 ? void 0 : sectionitem.productsfetchingtypeparentcollectioncategoryid)) {
|
|
49400
|
+
arrafterfilter.push(parentcolitem);
|
|
49401
|
+
}
|
|
49402
|
+
});
|
|
49403
|
+
parentcollections = arrafterfilter;
|
|
49320
49404
|
}
|
|
49321
|
-
if (
|
|
49405
|
+
if (props.collectionidprops != null && props.collectionidprops != undefined && props.collectionidprops != 'all') {
|
|
49322
49406
|
var arrafterfilter = [];
|
|
49323
49407
|
parentcollections.forEach(function (parentcolitem, parcolindex) {
|
|
49324
49408
|
if (parentcolitem.categoryid == props.collectionidprops) {
|
|
@@ -49327,54 +49411,74 @@ var ModernCardsSection = function ModernCardsSection(props) {
|
|
|
49327
49411
|
});
|
|
49328
49412
|
parentcollections = arrafterfilter;
|
|
49329
49413
|
}
|
|
49330
|
-
cardobjassigner(parentcollections);
|
|
49331
49414
|
}
|
|
49415
|
+
if (fetchingtype == 'innercategories') {
|
|
49416
|
+
var arrafterfilter = [];
|
|
49417
|
+
parentcollections.forEach(function (parentcolitem, parcolindex) {
|
|
49418
|
+
if (parentcolitem.categoryid == props.collectionidprops) {
|
|
49419
|
+
arrafterfilter.push(parentcolitem);
|
|
49420
|
+
}
|
|
49421
|
+
});
|
|
49422
|
+
parentcollections = arrafterfilter;
|
|
49423
|
+
}
|
|
49424
|
+
cardobjassigner(parentcollections);
|
|
49425
|
+
// }
|
|
49332
49426
|
} else if (fetchingtype == 'innerparentcollections') {
|
|
49333
|
-
|
|
49334
|
-
|
|
49335
|
-
|
|
49336
|
-
var
|
|
49337
|
-
(
|
|
49338
|
-
|
|
49339
|
-
|
|
49340
|
-
|
|
49341
|
-
|
|
49427
|
+
var _categories2;
|
|
49428
|
+
var categories = [];
|
|
49429
|
+
if (fetchCategoriesQueryContext !== null && fetchCategoriesQueryContext !== void 0 && fetchCategoriesQueryContext.isSuccess) {
|
|
49430
|
+
var _fetchCategoriesQuery3;
|
|
49431
|
+
categories = fetchCategoriesQueryContext === null || fetchCategoriesQueryContext === void 0 || (_fetchCategoriesQuery3 = fetchCategoriesQueryContext.data) === null || _fetchCategoriesQuery3 === void 0 || (_fetchCategoriesQuery3 = _fetchCategoriesQuery3.data) === null || _fetchCategoriesQuery3 === void 0 ? void 0 : _fetchCategoriesQuery3.categories;
|
|
49432
|
+
}
|
|
49433
|
+
// if (fetchAuthorizationQueryContext?.isSuccess) {
|
|
49434
|
+
// var categories = fetchAuthorizationQueryContext.data.data.instinfo.instcategories;
|
|
49435
|
+
var collections = [];
|
|
49436
|
+
(_categories2 = categories) === null || _categories2 === void 0 || _categories2.forEach(function (catitem, catindex) {
|
|
49437
|
+
catitem === null || catitem === void 0 || catitem.parentcolletions.forEach(function (parentcolitem) {
|
|
49438
|
+
var _parentcolitem$collec;
|
|
49439
|
+
parentcolitem.categoryid = catitem.categoryid;
|
|
49440
|
+
parentcolitem === null || parentcolitem === void 0 || (_parentcolitem$collec = parentcolitem.collections) === null || _parentcolitem$collec === void 0 || _parentcolitem$collec.forEach(function (collitem, colindex) {
|
|
49441
|
+
if (collitem.isshowntocustomers == 1) {
|
|
49342
49442
|
collitem.parentcollectionid = parentcolitem.parentcollectionid;
|
|
49343
49443
|
collections.push(collitem);
|
|
49344
|
-
}
|
|
49444
|
+
}
|
|
49345
49445
|
});
|
|
49346
49446
|
});
|
|
49347
|
-
|
|
49348
|
-
|
|
49349
|
-
|
|
49350
|
-
|
|
49351
|
-
|
|
49352
|
-
|
|
49353
|
-
|
|
49354
|
-
|
|
49355
|
-
|
|
49356
|
-
});
|
|
49357
|
-
if (iscollexists == false) {
|
|
49358
|
-
collectionsafterfilter.push(colitem);
|
|
49447
|
+
});
|
|
49448
|
+
if (fetchingtype == 'innerparentcollections') {
|
|
49449
|
+
var collectionsafterfilter = [];
|
|
49450
|
+
collections.forEach(function (colitem, colindex) {
|
|
49451
|
+
if (colitem.parentcollectionid == props.collectionidprops) {
|
|
49452
|
+
var iscollexists = false;
|
|
49453
|
+
collectionsafterfilter.forEach(function (existcolitem) {
|
|
49454
|
+
if (colitem.collectionid == existcolitem.collectionid) {
|
|
49455
|
+
iscollexists = true;
|
|
49359
49456
|
}
|
|
49457
|
+
});
|
|
49458
|
+
if (iscollexists == false) {
|
|
49459
|
+
collectionsafterfilter.push(colitem);
|
|
49360
49460
|
}
|
|
49361
|
-
}
|
|
49362
|
-
|
|
49363
|
-
|
|
49364
|
-
cardobjassigner(collections);
|
|
49461
|
+
}
|
|
49462
|
+
});
|
|
49463
|
+
collections = collectionsafterfilter;
|
|
49365
49464
|
}
|
|
49465
|
+
cardobjassigner(collections);
|
|
49466
|
+
// }
|
|
49366
49467
|
}
|
|
49367
|
-
setFetchQueriesEngineContext(_objectSpread$1n({}, tempFetchQueriesEngineContext));
|
|
49368
49468
|
}
|
|
49369
|
-
}, [fetchingtype, ProductsFetchingTypeSectionObj]);
|
|
49469
|
+
}, [fetchingtype, ProductsFetchingTypeSectionObj, fetchCategoriesQueryContext.isSuccess]);
|
|
49370
49470
|
React.useEffect(function () {
|
|
49371
49471
|
if (fetchingtype == 'products') {
|
|
49372
49472
|
if (fetchProductsQuery.isSuccess && fetchcustomercartQueryContext.isSuccess) {
|
|
49373
|
-
var _fetchProductsQuery$d2;
|
|
49473
|
+
var _fetchProductsQuery$d2, _fetchProductsQuery$d3, _fetchProductsQuery$d4, _fetchProductsQuery$d5;
|
|
49374
49474
|
var allpagesarr = [];
|
|
49375
49475
|
fetchProductsQuery === null || fetchProductsQuery === void 0 || (_fetchProductsQuery$d2 = fetchProductsQuery.data) === null || _fetchProductsQuery$d2 === void 0 || (_fetchProductsQuery$d2 = _fetchProductsQuery$d2.data) === null || _fetchProductsQuery$d2 === void 0 || (_fetchProductsQuery$d2 = _fetchProductsQuery$d2.products) === null || _fetchProductsQuery$d2 === void 0 || _fetchProductsQuery$d2.forEach(function (item) {
|
|
49376
49476
|
allpagesarr.push(item);
|
|
49377
49477
|
});
|
|
49478
|
+
if ((fetchProductsQuery === null || fetchProductsQuery === void 0 || (_fetchProductsQuery$d3 = fetchProductsQuery.data) === null || _fetchProductsQuery$d3 === void 0 || (_fetchProductsQuery$d3 = _fetchProductsQuery$d3.data) === null || _fetchProductsQuery$d3 === void 0 ? void 0 : _fetchProductsQuery$d3.PerPageProducts) != undefined && (fetchProductsQuery === null || fetchProductsQuery === void 0 || (_fetchProductsQuery$d4 = fetchProductsQuery.data) === null || _fetchProductsQuery$d4 === void 0 || (_fetchProductsQuery$d4 = _fetchProductsQuery$d4.data) === null || _fetchProductsQuery$d4 === void 0 ? void 0 : _fetchProductsQuery$d4.PerPageProducts) != null && (fetchProductsQuery === null || fetchProductsQuery === void 0 || (_fetchProductsQuery$d5 = fetchProductsQuery.data) === null || _fetchProductsQuery$d5 === void 0 || (_fetchProductsQuery$d5 = _fetchProductsQuery$d5.data) === null || _fetchProductsQuery$d5 === void 0 || (_fetchProductsQuery$d5 = _fetchProductsQuery$d5.PerPageProducts) === null || _fetchProductsQuery$d5 === void 0 ? void 0 : _fetchProductsQuery$d5.length) != 0) {
|
|
49479
|
+
var _fetchProductsQuery$d6;
|
|
49480
|
+
setperpageItems(fetchProductsQuery === null || fetchProductsQuery === void 0 || (_fetchProductsQuery$d6 = fetchProductsQuery.data) === null || _fetchProductsQuery$d6 === void 0 || (_fetchProductsQuery$d6 = _fetchProductsQuery$d6.data) === null || _fetchProductsQuery$d6 === void 0 ? void 0 : _fetchProductsQuery$d6.PerPageProducts);
|
|
49481
|
+
}
|
|
49378
49482
|
cardobjassigner(allpagesarr);
|
|
49379
49483
|
}
|
|
49380
49484
|
}
|
|
@@ -49385,10 +49489,28 @@ var ModernCardsSection = function ModernCardsSection(props) {
|
|
|
49385
49489
|
cardobjassigner(fetchcollectionsQueryContext.data.data.collections);
|
|
49386
49490
|
}
|
|
49387
49491
|
}
|
|
49388
|
-
}, [fetchcollectionsQueryContext === null || fetchcollectionsQueryContext === void 0 ? void 0 : fetchcollectionsQueryContext.isSuccess]);
|
|
49492
|
+
}, [fetchcollectionsQueryContext === null || fetchcollectionsQueryContext === void 0 ? void 0 : fetchcollectionsQueryContext.isSuccess, fetchcollectionsQueryContext.data]);
|
|
49493
|
+
React.useEffect(function () {
|
|
49494
|
+
if (fetchingtype == 'vendors') {
|
|
49495
|
+
if (FetchVendorsQuery.isSuccess) {
|
|
49496
|
+
if (FetchVendorsQuery.data.data.vendors != undefined && FetchVendorsQuery.data.data.vendors.length != 0) {
|
|
49497
|
+
var _FetchVendorsQuery$da2;
|
|
49498
|
+
cardobjassigner(FetchVendorsQuery === null || FetchVendorsQuery === void 0 || (_FetchVendorsQuery$da2 = FetchVendorsQuery.data) === null || _FetchVendorsQuery$da2 === void 0 || (_FetchVendorsQuery$da2 = _FetchVendorsQuery$da2.data) === null || _FetchVendorsQuery$da2 === void 0 ? void 0 : _FetchVendorsQuery$da2.vendors);
|
|
49499
|
+
}
|
|
49500
|
+
}
|
|
49501
|
+
}
|
|
49502
|
+
}, [FetchVendorsQuery.isSuccess]);
|
|
49389
49503
|
React.useEffect(function () {
|
|
49390
49504
|
favassigner();
|
|
49391
49505
|
}, [favoriteprojectscountContext]);
|
|
49506
|
+
React.useEffect(function () {
|
|
49507
|
+
if (sectionproperties.length != 0 && sectionproperties.maincontainerarrayofobjs != undefined) {
|
|
49508
|
+
var maincontainerarrayofobjsparsed = JSON.parse(sectionproperties.maincontainerarrayofobjs);
|
|
49509
|
+
if (Array.isArray(maincontainerarrayofobjsparsed)) {
|
|
49510
|
+
setmaincontainerarrayofobjs(_toConsumableArray__default["default"](maincontainerarrayofobjsparsed));
|
|
49511
|
+
}
|
|
49512
|
+
}
|
|
49513
|
+
}, [sectionproperties]);
|
|
49392
49514
|
var favassigner = function favassigner() {
|
|
49393
49515
|
if (fetchingtype == 'products') {
|
|
49394
49516
|
if (cardsarray.length != 0) {
|
|
@@ -49545,6 +49667,29 @@ var ModernCardsSection = function ModernCardsSection(props) {
|
|
|
49545
49667
|
});
|
|
49546
49668
|
setcardsarray([].concat(temparray));
|
|
49547
49669
|
};
|
|
49670
|
+
var SectionTitle = function SectionTitle() {
|
|
49671
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
49672
|
+
"class": "d-flex align-items-center flex-row",
|
|
49673
|
+
style: {
|
|
49674
|
+
position: 'relative',
|
|
49675
|
+
justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : '',
|
|
49676
|
+
width: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '100%' : ''
|
|
49677
|
+
}
|
|
49678
|
+
}, sectionproperties.sectiontitlestyle == 'Line Before Text' && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
49679
|
+
"class": section_cssstyles.line_left
|
|
49680
|
+
}), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
49681
|
+
"class": sectionproperties.sectiontitlefontfamily == 'Pacifico' ? "".concat(section_cssstyles.sectiontitlespan) + ' PacificoFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start ' : sectionproperties.sectiontitlefontfamily == 'Playfair' ? "".concat(section_cssstyles.sectiontitlespan) + ' PlayfairFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start ' : sectionproperties.sectiontitlefontfamily == 'Great Vibes' ? "".concat(section_cssstyles.sectiontitlespan) + ' GreatvibesFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start ' : sectionproperties.sectiontitlefontfamily == 'Quicksand' ? "".concat(section_cssstyles.sectiontitlespan) + ' QuicksandFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start ' : sectionproperties.sectiontitlefontfamily == 'Satisfy' ? "".concat(section_cssstyles.sectiontitlespan) + ' SatisfyFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start ' : sectionproperties.sectiontitlefontfamily == 'ASUL' ? "".concat(section_cssstyles.sectiontitlespan) + ' ASUL mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start ' : "".concat(section_cssstyles.sectiontitlespan) + ' mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start ',
|
|
49682
|
+
style: {
|
|
49683
|
+
color: sectionproperties.sectionTitleColor,
|
|
49684
|
+
fontWeight: sectionproperties.sectionTitleFontWeight,
|
|
49685
|
+
paddingLeft: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '12px' : 0,
|
|
49686
|
+
paddingRight: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '12px' : 0,
|
|
49687
|
+
textAlign: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : ''
|
|
49688
|
+
}
|
|
49689
|
+
}, langdetect == 'en' ? sectionproperties.sectionTitleContent : sectionproperties.sectionTitleContent_ar), sectionproperties.sectiontitlestyle == 'Line Before Text' && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
49690
|
+
"class": section_cssstyles.line_right
|
|
49691
|
+
}));
|
|
49692
|
+
};
|
|
49548
49693
|
var section_cssstyles = {
|
|
49549
49694
|
viewmorebtn: glamor.css({
|
|
49550
49695
|
width: sectionproperties.viewmorebtn_Width == 0 ? 'auto' : sectionproperties.viewmorebtn_Width + 'px',
|
|
@@ -49588,29 +49733,12 @@ var ModernCardsSection = function ModernCardsSection(props) {
|
|
|
49588
49733
|
background: sectionproperties.linebgcolor
|
|
49589
49734
|
}),
|
|
49590
49735
|
sectiontitlecont: glamor.css({
|
|
49591
|
-
marginTop: sectionproperties.sectionTitleMarginTop + 'px'
|
|
49592
|
-
|
|
49593
|
-
|
|
49594
|
-
|
|
49595
|
-
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
49596
|
-
"class": sectionproperties.sectiontitleposition == 'Centered' ? 'col-lg-12 d-flex justify-content-center align-items-center mb-md-0 w-100 px-1025-1 pl-md-2 pr-md-2 pl-sm-2 pr-sm-2' : 'col-lg-12 d-flex justify-content-md-center mb-md-0 align-items-center w-100 px-1025-1 pl-md-2 pr-md-2 pl-sm-2 pr-sm-2',
|
|
49597
|
-
style: {
|
|
49598
|
-
paddingLeft: langdetect == 'en' ? sectionproperties.sectionTitleMarginLeft + 'px' : sectionproperties.sectionTitleMarginRight + 'px',
|
|
49599
|
-
paddingRight: langdetect == 'en' ? sectionproperties.sectionTitleMarginRight + 'px' : sectionproperties.sectionTitleMarginLeft + 'px'
|
|
49600
|
-
}
|
|
49601
|
-
}, sectionproperties.sectiontitlestyle == 'Line Before Text' && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
49602
|
-
"class": section_cssstyles.line_left
|
|
49603
|
-
}), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
49604
|
-
"class": sectionproperties.sectiontitlefontfamily == 'Pacifico' ? ' PacificoFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start justify-content-md-center ' : sectionproperties.sectiontitlefontfamily == 'Playfair' ? ' PlayfairFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start justify-content-md-center ' : sectionproperties.sectiontitlefontfamily == 'Great Vibes' ? ' GreatvibesFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start justify-content-md-center' : sectionproperties.sectiontitlefontfamily == 'Quicksand' ? ' QuicksandFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start justify-content-md-center ' : sectionproperties.sectiontitlefontfamily == 'Satisfy' ? ' SatisfyFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start justify-content-md-center ' : ' mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start justify-content-md-center ',
|
|
49605
|
-
style: {
|
|
49606
|
-
color: sectionproperties.sectionTitleColor,
|
|
49607
|
-
fontWeight: sectionproperties.sectionTitleFontWeight,
|
|
49608
|
-
paddingLeft: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '12px' : 0,
|
|
49609
|
-
paddingRight: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '12px' : 0
|
|
49736
|
+
marginTop: sectionproperties.sectionTitleMarginTop + 'px',
|
|
49737
|
+
'@media (max-width: 1024px)': {
|
|
49738
|
+
paddingLeft: sectionproperties.sectiontitlepaddinghorizontalresponsive + 'rem',
|
|
49739
|
+
paddingRight: sectionproperties.sectiontitlepaddinghorizontalresponsive + 'rem'
|
|
49610
49740
|
}
|
|
49611
|
-
}
|
|
49612
|
-
"class": section_cssstyles.line_right
|
|
49613
|
-
}));
|
|
49741
|
+
})
|
|
49614
49742
|
};
|
|
49615
49743
|
var cardsrender = function cardsrender() {
|
|
49616
49744
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -49642,12 +49770,12 @@ var ModernCardsSection = function ModernCardsSection(props) {
|
|
|
49642
49770
|
fontSize: sectionproperties.sectionTitleFontSizeresp + 'px'
|
|
49643
49771
|
}
|
|
49644
49772
|
}, SectionTitle()), sectionproperties.prodCatShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
49645
|
-
"class": sectionproperties.sectiontitleposition == 'Centered' ? 'col-lg-12 d-flex align-items-center justify-content-center
|
|
49773
|
+
"class": sectionproperties.sectiontitleposition == 'Centered' ? 'col-lg-12 d-flex align-items-center justify-content-center ' : 'col-lg-12 d-flex align-items-center justify-content-start p-0',
|
|
49646
49774
|
style: {
|
|
49647
49775
|
marginBottom: sectionproperties.descriptionMarginBottom + 'px'
|
|
49648
49776
|
}
|
|
49649
49777
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
49650
|
-
"class": sectionproperties.descFontFamily == 'Pacifico' ? ' PacificoFont m-0 p-0 wordbreak
|
|
49778
|
+
"class": sectionproperties.descFontFamily == 'Pacifico' ? ' PacificoFont m-0 p-0 wordbreak ' : sectionproperties.descFontFamily == 'Playfair' ? ' PlayfairFont m-0 p-0 wordbreak ' : sectionproperties.descFontFamily == 'Great Vibes' ? ' GreatvibesFont m-0 p-0 wordbreak ' : sectionproperties.descFontFamily == 'Quicksand' ? ' QuicksandFont m-0 p-0 wordbreak ' : ' m-0 p-0 wordbreak',
|
|
49651
49779
|
style: {
|
|
49652
49780
|
fontSize: sectionproperties.prodCatFontSize + 'px',
|
|
49653
49781
|
color: sectionproperties.prodCatColor,
|
|
@@ -69198,6 +69326,14 @@ var CategoryCardwithhoveraction = function CategoryCardwithhoveraction(props) {
|
|
|
69198
69326
|
setitem(props.cardinfoitemprops);
|
|
69199
69327
|
}, [props.cardinfoitemprops]);
|
|
69200
69328
|
var card_cssstyles = {
|
|
69329
|
+
productcard: glamor.css({
|
|
69330
|
+
minWidth: props.sectiontypeprops2 == 'vertical' ? '100%' : sectionproperties.width + 'px',
|
|
69331
|
+
maxWidth: props.sectiontypeprops2 == 'vertical' ? '100%' : sectionproperties.width + 'px',
|
|
69332
|
+
'@media (max-width: 800px)': {
|
|
69333
|
+
minWidth: props.sectiontypeprops2 == 'vertical' ? '100%' : sectionproperties.widthresponsive + 'px',
|
|
69334
|
+
maxWidth: props.sectiontypeprops2 == 'vertical' ? '100%' : sectionproperties.widthresponsive + 'px'
|
|
69335
|
+
}
|
|
69336
|
+
}),
|
|
69201
69337
|
cardcontainer: glamor.css({
|
|
69202
69338
|
marginTop: sectionproperties.marginTop + 'px',
|
|
69203
69339
|
marginBottom: sectionproperties.marginBottom + 'px',
|
|
@@ -69276,7 +69412,9 @@ var CategoryCardwithhoveraction = function CategoryCardwithhoveraction(props) {
|
|
|
69276
69412
|
})
|
|
69277
69413
|
};
|
|
69278
69414
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
69279
|
-
"class":
|
|
69415
|
+
"class": props.sectiontypeprops2 == 'vertical' ? "".concat(card_cssstyles.productcard) + ' w-100 ' : "".concat(card_cssstyles.productcard)
|
|
69416
|
+
// class={`${cardstyles.container} ${card_cssstyles.container}` + ' row m-0 w-100 '}
|
|
69417
|
+
,
|
|
69280
69418
|
style: {
|
|
69281
69419
|
paddingLeft: langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px',
|
|
69282
69420
|
paddingRight: langdetect == 'en' ? sectionproperties.card_marginRight + 'px' : sectionproperties.card_marginLeft + 'px'
|
|
@@ -69291,7 +69429,7 @@ var CategoryCardwithhoveraction = function CategoryCardwithhoveraction(props) {
|
|
|
69291
69429
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
69292
69430
|
"class": card_cssstyles.imagecontainer + ' col-lg-12 d-flex d-md-none mb-2 imagecont p-0 ',
|
|
69293
69431
|
style: {
|
|
69294
|
-
height: sectionproperties.
|
|
69432
|
+
height: sectionproperties.image_height + 'px'
|
|
69295
69433
|
}
|
|
69296
69434
|
}, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
|
|
69297
69435
|
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
@@ -74547,6 +74685,12 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
74547
74685
|
var cardonclickfunctionContext = props.actions.cardonclickfunctionContext;
|
|
74548
74686
|
var ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
74549
74687
|
props.actions.NotificationManager;
|
|
74688
|
+
var AddtoCartContext = props.actions.AddtoCartContext;
|
|
74689
|
+
props.AddtoCartMutationContext;
|
|
74690
|
+
var _useState5 = React.useState(''),
|
|
74691
|
+
_useState6 = _slicedToArray__default["default"](_useState5, 2),
|
|
74692
|
+
addtocardpayloadobj = _useState6[0];
|
|
74693
|
+
_useState6[1];
|
|
74550
74694
|
var plainString = function plainString(html) {
|
|
74551
74695
|
var divContainer = document.createElement('div');
|
|
74552
74696
|
divContainer.innerHTML = html;
|
|
@@ -74725,10 +74869,10 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
74725
74869
|
transform: "translateX(0px)"
|
|
74726
74870
|
})
|
|
74727
74871
|
};
|
|
74728
|
-
var
|
|
74729
|
-
|
|
74730
|
-
secondimage =
|
|
74731
|
-
setsecondimage =
|
|
74872
|
+
var _useState7 = React.useState(''),
|
|
74873
|
+
_useState8 = _slicedToArray__default["default"](_useState7, 2),
|
|
74874
|
+
secondimage = _useState8[0],
|
|
74875
|
+
setsecondimage = _useState8[1];
|
|
74732
74876
|
React.useEffect(function () {
|
|
74733
74877
|
var _props$cardinfoitempr;
|
|
74734
74878
|
setitem(props.cardinfoitemprops);
|
|
@@ -74755,6 +74899,14 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
74755
74899
|
}
|
|
74756
74900
|
}
|
|
74757
74901
|
}, [props.cardinfoitemprops]);
|
|
74902
|
+
var addtocartfunc = function addtocartfunc() {
|
|
74903
|
+
var tempaddtocardpayloadobj = _objectSpread$6({}, addtocardpayloadobj);
|
|
74904
|
+
tempaddtocardpayloadobj.productid = item.productid;
|
|
74905
|
+
tempaddtocardpayloadobj.functype = 'add';
|
|
74906
|
+
tempaddtocardpayloadobj.item_type = 'product';
|
|
74907
|
+
tempaddtocardpayloadobj.quantity = 1;
|
|
74908
|
+
AddtoCartContext(tempaddtocardpayloadobj);
|
|
74909
|
+
};
|
|
74758
74910
|
var Image = function Image(type) {
|
|
74759
74911
|
var transition = false;
|
|
74760
74912
|
if (sectionproperties.hideshowcardtransition == 'Show' && type != 'responsive') {
|
|
@@ -74789,10 +74941,10 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
74789
74941
|
}
|
|
74790
74942
|
}));
|
|
74791
74943
|
};
|
|
74792
|
-
var
|
|
74793
|
-
|
|
74794
|
-
clickCount =
|
|
74795
|
-
setClickCount =
|
|
74944
|
+
var _useState9 = React.useState(0),
|
|
74945
|
+
_useState10 = _slicedToArray__default["default"](_useState9, 2),
|
|
74946
|
+
clickCount = _useState10[0],
|
|
74947
|
+
setClickCount = _useState10[1];
|
|
74796
74948
|
var handleClick = function handleClick() {
|
|
74797
74949
|
// Increase the click count by 1
|
|
74798
74950
|
setClickCount(function (prevCount) {
|
|
@@ -74848,7 +75000,7 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
74848
75000
|
}, langdetect == 'en' ? 'Save' : 'وفر', " ", langdetect == 'en' ? item.currencyname : '', ' ', parseFloat(Math.round(parseInt(item.defaultprice) - parseInt(item.defaultsaleprice))).toFixed(0), " ", langdetect == 'en' ? '' : item.currencyname));
|
|
74849
75001
|
};
|
|
74850
75002
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
74851
|
-
"class": props.sectiontypeprops2 == 'vertical' ? "".concat(card_cssstyles.productcard) + ' w-100 px-md-1 ' : " ".concat(card_cssstyles.productcard),
|
|
75003
|
+
"class": props.sectiontypeprops2 == 'vertical' ? sectionproperties.card_marginLeft == 0 && sectionproperties.card_marginRight == 0 ? "".concat(card_cssstyles.productcard) + ' w-100 ' : "".concat(card_cssstyles.productcard) + ' w-100 px-md-1 ' : " ".concat(card_cssstyles.productcard),
|
|
74852
75004
|
style: {
|
|
74853
75005
|
paddingLeft: langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px',
|
|
74854
75006
|
paddingRight: langdetect == 'en' ? sectionproperties.card_marginRight + 'px' : sectionproperties.card_marginLeft + 'px'
|
|
@@ -74938,7 +75090,7 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
74938
75090
|
}), sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React__default["default"].createElement(FaRegHeart.FaRegHeart, {
|
|
74939
75091
|
size: sectionproperties.favBtnIconfontsize
|
|
74940
75092
|
}))), (item === null || item === void 0 ? void 0 : item.hassale) == 1 && sectionproperties.showbadge == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
74941
|
-
"class": "allcentered
|
|
75093
|
+
"class": "allcentered",
|
|
74942
75094
|
style: {
|
|
74943
75095
|
zIndex: 2,
|
|
74944
75096
|
position: 'absolute',
|
|
@@ -75029,8 +75181,8 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
75029
75181
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
75030
75182
|
"class": "text-capitalize mx-2",
|
|
75031
75183
|
style: {
|
|
75032
|
-
color: sectionproperties.
|
|
75033
|
-
fontSize:
|
|
75184
|
+
color: sectionproperties.featurecolor,
|
|
75185
|
+
fontSize: sectionproperties.featurefontsize + 'px'
|
|
75034
75186
|
}
|
|
75035
75187
|
}, (item === null || item === void 0 ? void 0 : item.productfeature) != undefined && (item === null || item === void 0 ? void 0 : item.productfeature) != null ? item === null || item === void 0 ? void 0 : item.productfeature : '')), sectionproperties.showmeasurementunit == 'Show' && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
75036
75188
|
"class": "".concat(card_cssstyles.productDescStyles) + ' col-lg-12 wordbreak wordbreak1 p-0 mb-2 ',
|
|
@@ -75128,18 +75280,23 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
75128
75280
|
justifyContent: sectionproperties.productnamecentered == 'Centered' ? 'center' : 'start'
|
|
75129
75281
|
}
|
|
75130
75282
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
75131
|
-
"class": "".concat(card_cssstyles.cart_btn) + ' m-0 p-0 d-flex align-items-center justify-content-center mt-1 '
|
|
75283
|
+
"class": "".concat(card_cssstyles.cart_btn) + ' m-0 p-0 d-flex align-items-center justify-content-center mt-1 '
|
|
75284
|
+
// onClick={() => {
|
|
75285
|
+
// var productidtobesend = null;
|
|
75286
|
+
// if (sectionproperties.urlwithproductname == 'Yes') {
|
|
75287
|
+
// productidtobesend = item.productendpointurl;
|
|
75288
|
+
// } else {
|
|
75289
|
+
// productidtobesend = item.productid;
|
|
75290
|
+
// }
|
|
75291
|
+
// cardonclickfunctionContext(sectionproperties?.onClickRoute, productidtobesend, props.fetchingtypeprops, item.collectionid);
|
|
75292
|
+
// // setShowProductInfoModalContext(true);
|
|
75293
|
+
// // setProductIdProdutInfoModalContext(item.productid);
|
|
75294
|
+
// }}
|
|
75295
|
+
,
|
|
75132
75296
|
onClick: function onClick() {
|
|
75133
|
-
|
|
75134
|
-
if (sectionproperties.urlwithproductname == 'Yes') {
|
|
75135
|
-
productidtobesend = item.productendpointurl;
|
|
75136
|
-
} else {
|
|
75137
|
-
productidtobesend = item.productid;
|
|
75138
|
-
}
|
|
75139
|
-
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, productidtobesend, props.fetchingtypeprops, item.collectionid);
|
|
75140
|
-
// setShowProductInfoModalContext(true);
|
|
75141
|
-
// setProductIdProdutInfoModalContext(item.productid);
|
|
75297
|
+
addtocartfunc();
|
|
75142
75298
|
}
|
|
75299
|
+
// disabled={AddtoCartMutationContext.isLoading == true ? true : false}
|
|
75143
75300
|
}, sectionproperties.cartBtn_iconFontSize != 0 && /*#__PURE__*/React__default["default"].createElement("i", {
|
|
75144
75301
|
"class": langdetect == 'en' ? 'h-100 mr-2 d-flex align-items-center justify-content-center' : 'h-100 ml-2 d-flex align-items-center justify-content-center'
|
|
75145
75302
|
}, sectionproperties.carticonstyle == 'Shopping bag 1' && /*#__PURE__*/React__default["default"].createElement(FiShoppingBag.FiShoppingBag, {
|