tabexseriescomponents 0.0.56 → 0.0.59
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 +165 -110
- package/dist/index.esm.js +165 -110
- package/dist/index.umd.js +165 -110
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -395,6 +395,35 @@ var LanguageProvider = /*#__PURE__*/function (_Component) {
|
|
|
395
395
|
}(React.Component);
|
|
396
396
|
LanguageContext$1.Consumer;
|
|
397
397
|
|
|
398
|
+
var ProductsCardsSectionContext = /*#__PURE__*/React__default["default"].createContext();
|
|
399
|
+
var ProductsCardsSectionContext_Provider = function ProductsCardsSectionContext_Provider(props) {
|
|
400
|
+
// let history = useHistory();
|
|
401
|
+
var _useState = React.useState(''),
|
|
402
|
+
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
403
|
+
ParentCollectionsForCollectionQueryArrContext = _useState2[0],
|
|
404
|
+
setParentCollectionsForCollectionQueryArrContext = _useState2[1];
|
|
405
|
+
|
|
406
|
+
var _useState3 = React.useState({
|
|
407
|
+
Isfiltercollections: 0,
|
|
408
|
+
isfilter: 0,
|
|
409
|
+
ProductFetchingType: '',
|
|
410
|
+
collections: [],
|
|
411
|
+
FilterOptions: []
|
|
412
|
+
}),
|
|
413
|
+
_useState4 = _slicedToArray__default["default"](_useState3, 2),
|
|
414
|
+
ProductFilterObjContext = _useState4[0],
|
|
415
|
+
setProductFilterObjContext = _useState4[1];
|
|
416
|
+
|
|
417
|
+
return /*#__PURE__*/React__default["default"].createElement(ProductsCardsSectionContext.Provider, {
|
|
418
|
+
value: {
|
|
419
|
+
ProductFilterObjContext: ProductFilterObjContext,
|
|
420
|
+
setProductFilterObjContext: setProductFilterObjContext,
|
|
421
|
+
ParentCollectionsForCollectionQueryArrContext: ParentCollectionsForCollectionQueryArrContext,
|
|
422
|
+
setParentCollectionsForCollectionQueryArrContext: setParentCollectionsForCollectionQueryArrContext
|
|
423
|
+
}
|
|
424
|
+
}, props.children);
|
|
425
|
+
};
|
|
426
|
+
|
|
398
427
|
function styleInject(css, ref) {
|
|
399
428
|
if ( ref === void 0 ) ref = {};
|
|
400
429
|
var insertAt = ref.insertAt;
|
|
@@ -2221,7 +2250,7 @@ function ownKeys$19(object, enumerableOnly) { var keys = Object.keys(object); if
|
|
|
2221
2250
|
function _objectSpread$19(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$19(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$19(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2222
2251
|
|
|
2223
2252
|
var Ordershistory = function Ordershistory(props) {
|
|
2224
|
-
var _bgimagesarray$, _bgimagesarray$2;
|
|
2253
|
+
var _props$actions2, _bgimagesarray$, _bgimagesarray$2;
|
|
2225
2254
|
|
|
2226
2255
|
// const { lang, langdetect } = useContext(LanguageContext);
|
|
2227
2256
|
// const { routingcountext } = useContext(TemplateRoutingContext);
|
|
@@ -2240,7 +2269,7 @@ var Ordershistory = function Ordershistory(props) {
|
|
|
2240
2269
|
var fetchorderhistoryQueryContext = props.actions.fetchorderhistoryQueryContext;
|
|
2241
2270
|
var navigationstyle = props.actions.navigationstyle;
|
|
2242
2271
|
props.actions.pageindexcontext;
|
|
2243
|
-
|
|
2272
|
+
props.actions.StatePagePropertiesContext;
|
|
2244
2273
|
props.actions.TabexSectionsComponentsContext;
|
|
2245
2274
|
var templatepropcontext = props.actions.templatepropcontext;
|
|
2246
2275
|
var authdetailsContext = props.actions.authdetailsContext;
|
|
@@ -2287,14 +2316,15 @@ var Ordershistory = function Ordershistory(props) {
|
|
|
2287
2316
|
}
|
|
2288
2317
|
}, []);
|
|
2289
2318
|
React.useEffect(function () {
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
}
|
|
2297
|
-
|
|
2319
|
+
var _props$actions, _props$actions$StateP, _props$actions$StateP2, _props$actions$StateP3;
|
|
2320
|
+
|
|
2321
|
+
// if (Object.keys(StatePagePropertiesContext).length != 0) {
|
|
2322
|
+
var secpropobj = {};
|
|
2323
|
+
props === null || props === void 0 ? void 0 : (_props$actions = props.actions) === null || _props$actions === void 0 ? void 0 : (_props$actions$StateP = _props$actions.StatePagePropertiesContext) === null || _props$actions$StateP === void 0 ? void 0 : (_props$actions$StateP2 = _props$actions$StateP.pageobj) === null || _props$actions$StateP2 === void 0 ? void 0 : (_props$actions$StateP3 = _props$actions$StateP2.pageproperties) === null || _props$actions$StateP3 === void 0 ? void 0 : _props$actions$StateP3.forEach(function (arrayItem, arrayindex) {
|
|
2324
|
+
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
2325
|
+
});
|
|
2326
|
+
setsectionproperties(_objectSpread$19({}, secpropobj)); // }
|
|
2327
|
+
}, [props === null || props === void 0 ? void 0 : (_props$actions2 = props.actions) === null || _props$actions2 === void 0 ? void 0 : _props$actions2.StatePagePropertiesContext]);
|
|
2298
2328
|
var orderhistory_cssstyles = {
|
|
2299
2329
|
sectiontitlespan: glamor.css({
|
|
2300
2330
|
':after': {
|
|
@@ -3700,8 +3730,8 @@ var Checkout = function Checkout(props) {
|
|
|
3700
3730
|
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
3701
3731
|
var routingcountext = props.actions.routingcountext;
|
|
3702
3732
|
var ApplyPromoCodeMutationContext = props.actions.ApplyPromoCodeMutationContext;
|
|
3703
|
-
|
|
3704
|
-
|
|
3733
|
+
props.actions.CurrentSrcTypeContext;
|
|
3734
|
+
props.actions.StatePagePropertiesContext;
|
|
3705
3735
|
var templatepropcontext = props.actions.templatepropcontext;
|
|
3706
3736
|
var fetchcustomercartQueryContext = props.actions.fetchcustomercartQueryContext;
|
|
3707
3737
|
var FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
|
|
@@ -3739,28 +3769,22 @@ var Checkout = function Checkout(props) {
|
|
|
3739
3769
|
setCurrentPageId(cartindex);
|
|
3740
3770
|
}
|
|
3741
3771
|
}, []);
|
|
3772
|
+
React.useEffect(function () {// var secpropobj = {};
|
|
3773
|
+
// templatepropcontext?.pagesnprop[CurrentPageId]?.pageproperties?.forEach(function (arrayItem, arrayindex) {
|
|
3774
|
+
// secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
3775
|
+
// });
|
|
3776
|
+
// setsectionproperties({ ...secpropobj });
|
|
3777
|
+
}, [CurrentPageId, props.actions.templatepropcontext]);
|
|
3742
3778
|
React.useEffect(function () {
|
|
3743
|
-
var
|
|
3779
|
+
var _props$actions, _props$actions$StateP, _props$actions$StateP2, _props$actions$StateP3;
|
|
3744
3780
|
|
|
3781
|
+
// if (rops?.actions?.StatePagePropertiesContext != null && rops?.actions?.StatePagePropertiesContext != undefined && StatePagePropertiesContext.length != 0) {
|
|
3745
3782
|
var secpropobj = {};
|
|
3746
|
-
|
|
3783
|
+
props === null || props === void 0 ? void 0 : (_props$actions = props.actions) === null || _props$actions === void 0 ? void 0 : (_props$actions$StateP = _props$actions.StatePagePropertiesContext) === null || _props$actions$StateP === void 0 ? void 0 : (_props$actions$StateP2 = _props$actions$StateP.pageobj) === null || _props$actions$StateP2 === void 0 ? void 0 : (_props$actions$StateP3 = _props$actions$StateP2.pageproperties) === null || _props$actions$StateP3 === void 0 ? void 0 : _props$actions$StateP3.forEach(function (arrayItem, arrayindex) {
|
|
3747
3784
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
3748
3785
|
});
|
|
3749
|
-
setsectionproperties(_objectSpread$16({}, secpropobj));
|
|
3750
|
-
}, [
|
|
3751
|
-
React.useEffect(function () {
|
|
3752
|
-
if (CurrentSrcTypeContext == 'workplace') {
|
|
3753
|
-
if (StatePagePropertiesContext != null && StatePagePropertiesContext != undefined && StatePagePropertiesContext.length != 0) {
|
|
3754
|
-
var _StatePagePropertiesC, _StatePagePropertiesC2;
|
|
3755
|
-
|
|
3756
|
-
var secpropobj = {};
|
|
3757
|
-
StatePagePropertiesContext === null || StatePagePropertiesContext === void 0 ? void 0 : (_StatePagePropertiesC = StatePagePropertiesContext.pageobj) === null || _StatePagePropertiesC === void 0 ? void 0 : (_StatePagePropertiesC2 = _StatePagePropertiesC.pageproperties) === null || _StatePagePropertiesC2 === void 0 ? void 0 : _StatePagePropertiesC2.forEach(function (arrayItem, arrayindex) {
|
|
3758
|
-
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
3759
|
-
});
|
|
3760
|
-
setsectionproperties(_objectSpread$16({}, secpropobj));
|
|
3761
|
-
}
|
|
3762
|
-
}
|
|
3763
|
-
}, [StatePagePropertiesContext]);
|
|
3786
|
+
setsectionproperties(_objectSpread$16({}, secpropobj)); // }
|
|
3787
|
+
}, [props.actions.StatePagePropertiesContext]);
|
|
3764
3788
|
React.useEffect(function () {
|
|
3765
3789
|
var _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4, _fetchcustomercartQue5, _fetchcustomercartQue6, _fetchcustomercartQue9, _fetchcustomercartQue10, _fetchcustomercartQue11, _fetchcustomercartQue12, _fetchcustomercartQue13, _fetchcustomercartQue14;
|
|
3766
3790
|
|
|
@@ -5631,21 +5655,20 @@ var AccountInformation = function AccountInformation(props) {
|
|
|
5631
5655
|
var navigationstyle = props.actions.navigationstyle;
|
|
5632
5656
|
var actions = props.actions;
|
|
5633
5657
|
React.useEffect(function () {
|
|
5634
|
-
|
|
5635
|
-
var _StatePagePropertiesC, _StatePagePropertiesC2;
|
|
5658
|
+
var _props$actions, _props$actions$StateP, _props$actions$StateP2, _props$actions$StateP3;
|
|
5636
5659
|
|
|
5637
|
-
|
|
5638
|
-
|
|
5639
|
-
|
|
5640
|
-
|
|
5641
|
-
|
|
5642
|
-
}
|
|
5643
|
-
}, [StatePagePropertiesContext]);
|
|
5660
|
+
// if (Object.keys(props?.actions?.StatePagePropertiesContext).length != 0) {
|
|
5661
|
+
var secpropobj = {};
|
|
5662
|
+
props === null || props === void 0 ? void 0 : (_props$actions = props.actions) === null || _props$actions === void 0 ? void 0 : (_props$actions$StateP = _props$actions.StatePagePropertiesContext) === null || _props$actions$StateP === void 0 ? void 0 : (_props$actions$StateP2 = _props$actions$StateP.pageobj) === null || _props$actions$StateP2 === void 0 ? void 0 : (_props$actions$StateP3 = _props$actions$StateP2.pageproperties) === null || _props$actions$StateP3 === void 0 ? void 0 : _props$actions$StateP3.forEach(function (arrayItem, arrayindex) {
|
|
5663
|
+
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
5664
|
+
});
|
|
5665
|
+
setsectionproperties(_objectSpread$13({}, secpropobj)); // }
|
|
5666
|
+
}, [props.actions.StatePagePropertiesContext]);
|
|
5644
5667
|
|
|
5645
5668
|
var _useState = React.useState(''),
|
|
5646
|
-
_useState2 = _slicedToArray__default["default"](_useState, 2)
|
|
5647
|
-
|
|
5648
|
-
setCurrentPageId = _useState2[1];
|
|
5669
|
+
_useState2 = _slicedToArray__default["default"](_useState, 2);
|
|
5670
|
+
_useState2[0];
|
|
5671
|
+
var setCurrentPageId = _useState2[1];
|
|
5649
5672
|
|
|
5650
5673
|
var _useState3 = React.useState(''),
|
|
5651
5674
|
_useState4 = _slicedToArray__default["default"](_useState3, 2),
|
|
@@ -5660,16 +5683,14 @@ var AccountInformation = function AccountInformation(props) {
|
|
|
5660
5683
|
if (cartindex >= 0) {
|
|
5661
5684
|
setCurrentPageId(cartindex);
|
|
5662
5685
|
}
|
|
5663
|
-
}, []);
|
|
5664
|
-
|
|
5665
|
-
|
|
5686
|
+
}, []); // useEffect(() => {
|
|
5687
|
+
// var secpropobj = {};
|
|
5688
|
+
// templatepropcontext?.pagesnprop[CurrentPageId]?.pageproperties?.forEach(function (arrayItem, arrayindex) {
|
|
5689
|
+
// secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
5690
|
+
// });
|
|
5691
|
+
// setsectionproperties({ ...secpropobj });
|
|
5692
|
+
// }, [CurrentPageId, templatepropcontext]);
|
|
5666
5693
|
|
|
5667
|
-
var secpropobj = {};
|
|
5668
|
-
templatepropcontext === null || templatepropcontext === void 0 ? void 0 : (_templatepropcontext$ = templatepropcontext.pagesnprop[CurrentPageId]) === null || _templatepropcontext$ === void 0 ? void 0 : (_templatepropcontext$2 = _templatepropcontext$.pageproperties) === null || _templatepropcontext$2 === void 0 ? void 0 : _templatepropcontext$2.forEach(function (arrayItem, arrayindex) {
|
|
5669
|
-
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
5670
|
-
});
|
|
5671
|
-
setsectionproperties(_objectSpread$13({}, secpropobj));
|
|
5672
|
-
}, [CurrentPageId]);
|
|
5673
5694
|
var accountinfo_cssstyles = {
|
|
5674
5695
|
sectiontitlespan: glamor.css({
|
|
5675
5696
|
':after': {
|
|
@@ -11366,7 +11387,7 @@ function ownKeys$I(object, enumerableOnly) { var keys = Object.keys(object); if
|
|
|
11366
11387
|
function _objectSpread$I(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$I(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$I(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
11367
11388
|
|
|
11368
11389
|
var Subheader = function Subheader(props) {
|
|
11369
|
-
var _props$subheaderprope, _props$subheaderprope2,
|
|
11390
|
+
var _props$subheaderprope, _props$subheaderprope2, _templatepropcontext$, _props$subheaderprope9, _props$subheaderprope10;
|
|
11370
11391
|
|
|
11371
11392
|
// const { lang, setlang, langdetect } = useContext(LanguageContext);
|
|
11372
11393
|
// const { FetchQueriesEngineContext, setFetchQueriesEngineContext, fetchCategoriesQueryContext } = useContext(FetchingContext);
|
|
@@ -11404,7 +11425,7 @@ var Subheader = function Subheader(props) {
|
|
|
11404
11425
|
}, []);
|
|
11405
11426
|
React.useEffect(function () {
|
|
11406
11427
|
if (props.sectionpropertiesprops != undefined) {
|
|
11407
|
-
setsectionproperties(_objectSpread$I({}, props.sectionpropertiesprops));
|
|
11428
|
+
setsectionproperties(_objectSpread$I({}, props === null || props === void 0 ? void 0 : props.sectionpropertiesprops));
|
|
11408
11429
|
}
|
|
11409
11430
|
}, [props.sectionpropertiesprops]);
|
|
11410
11431
|
var header_cssstyles = {
|
|
@@ -11448,78 +11469,84 @@ var Subheader = function Subheader(props) {
|
|
|
11448
11469
|
})
|
|
11449
11470
|
};
|
|
11450
11471
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11451
|
-
|
|
11472
|
+
"class": (props === null || props === void 0 ? void 0 : (_props$subheaderprope = props.subheaderpropertiesprops) === null || _props$subheaderprope === void 0 ? void 0 : _props$subheaderprope.subheaderpositionprops) == 'in nav' ? "".concat(headerstyles$8.sub_outercontainer) + ' ml-0 mr-0 ' : "".concat(headerstyles$8.sub_outercontainer) + ' row ml-0 mr-0 w-100 mt-md-3 pl-sm-2 pr-sm-2 ',
|
|
11452
11473
|
style: {
|
|
11453
11474
|
background: sectionproperties.subheaderbg,
|
|
11454
11475
|
zIndex: 200,
|
|
11455
11476
|
flex: 1
|
|
11456
11477
|
}
|
|
11457
11478
|
}, sectionproperties != undefined && sectionproperties.length != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11458
|
-
|
|
11479
|
+
"class": "".concat(headerstyles$8.sub_container) + ' w-100 p-md-0 '
|
|
11459
11480
|
}, fetchCategoriesQueryContext.isSuccess && fetchCategoriesQueryContext.data.data.status && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11460
|
-
|
|
11481
|
+
"class": " ".concat(headerstyles$8.subheader) + ' row w-100 m-0 d-flex flex-row align-items-center w-sm-100 ',
|
|
11461
11482
|
style: {
|
|
11462
11483
|
position: 'relative'
|
|
11463
11484
|
}
|
|
11464
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11465
|
-
|
|
11485
|
+
}, (props === null || props === void 0 ? void 0 : props.subheaderpositionprops) == 'Full Width' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11486
|
+
"class": "ml-auto mr-auto",
|
|
11466
11487
|
style: {
|
|
11467
11488
|
background: sectionproperties.upperseparatorbgcolor,
|
|
11468
11489
|
width: sectionproperties.upperseparatorwidth + '%',
|
|
11469
11490
|
height: sectionproperties.upperseparatorheight + 'px'
|
|
11470
11491
|
}
|
|
11471
11492
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11472
|
-
|
|
11493
|
+
"class": "col-lg-12 m-auto d-flex flex-column align-items-center justify-content-center ",
|
|
11473
11494
|
style: {
|
|
11474
11495
|
borderBottom: sectionproperties.separator_borderwidth + 'px solid ' + sectionproperties.separator_bgcolor,
|
|
11475
11496
|
paddingTop: sectionproperties.subheader_margintop + 'px',
|
|
11476
11497
|
paddingBottom: sectionproperties.subheader_marginbottom + 'px'
|
|
11477
11498
|
}
|
|
11478
11499
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11479
|
-
|
|
11500
|
+
"class": "".concat(headerstyles$8.nav__item) + ' scrollhorizontal flex-row align-items-center ',
|
|
11480
11501
|
style: {
|
|
11481
11502
|
zIndex: 1000,
|
|
11482
|
-
|
|
11503
|
+
textAlign: langdetect == 'en' ? 'left' : 'right' // justifyContent: props.subheaderpropertiesprops?.subheadercontentpositionprops,
|
|
11504
|
+
|
|
11483
11505
|
}
|
|
11484
|
-
}, ((_props$
|
|
11506
|
+
}, (props === null || props === void 0 ? void 0 : (_props$subheaderprope2 = props.subheaderpropertiesprops) === null || _props$subheaderprope2 === void 0 ? void 0 : _props$subheaderprope2.subheaderpositionprops) == 'in nav' && (templatepropcontext === null || templatepropcontext === void 0 ? void 0 : (_templatepropcontext$ = templatepropcontext.pagesnprop) === null || _templatepropcontext$ === void 0 ? void 0 : _templatepropcontext$.map(function (item, index) {
|
|
11485
11507
|
if (item.isnavigation == 1 && item.isactive == 1) {
|
|
11486
|
-
var _props$subheaderprope4, _props$subheaderprope5;
|
|
11508
|
+
var _props$subheaderprope3, _props$subheaderprope4, _props$subheaderprope5, _props$subheaderprope6;
|
|
11487
11509
|
|
|
11488
11510
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11489
11511
|
onClick: function onClick() {
|
|
11490
11512
|
history.push(item.navigationroute);
|
|
11513
|
+
},
|
|
11514
|
+
"class": "scrollhorizontalcard",
|
|
11515
|
+
style: {
|
|
11516
|
+
marginLeft: langdetect == 'ar' ? props === null || props === void 0 ? void 0 : (_props$subheaderprope3 = props.subheaderpropertiesprops) === null || _props$subheaderprope3 === void 0 ? void 0 : _props$subheaderprope3.paddingLeftprops : 0,
|
|
11517
|
+
marginRight: langdetect == 'en' ? props === null || props === void 0 ? void 0 : (_props$subheaderprope4 = props.subheaderpropertiesprops) === null || _props$subheaderprope4 === void 0 ? void 0 : _props$subheaderprope4.paddingRightprops : 0
|
|
11491
11518
|
}
|
|
11492
11519
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
11493
|
-
|
|
11520
|
+
"class": "".concat(headerstyles$8.link, " ").concat(header_cssstyles.subheader_category) + ' mb-0 p-0 ml-md-3 mr-md-3 ',
|
|
11494
11521
|
onClick: function onClick() {
|
|
11495
|
-
|
|
11522
|
+
fetch_inst_tabex_websitetemplatesQueryContext.data.data.template.pages.forEach(function (pageitem, pageindex) {
|
|
11496
11523
|
pageitem.isselected = false;
|
|
11497
11524
|
});
|
|
11498
|
-
|
|
11525
|
+
fetch_inst_tabex_websitetemplatesQueryContext.data.data.template.pages[index].isselected = true;
|
|
11499
11526
|
},
|
|
11500
11527
|
style: {
|
|
11501
|
-
marginLeft: langdetect == 'en' ? 0 : (_props$
|
|
11502
|
-
marginRight: langdetect == 'en' ? (_props$
|
|
11528
|
+
marginLeft: langdetect == 'en' ? 0 : props === null || props === void 0 ? void 0 : (_props$subheaderprope5 = props.subheaderpropertiesprops) === null || _props$subheaderprope5 === void 0 ? void 0 : _props$subheaderprope5.paddingLeftprops,
|
|
11529
|
+
marginRight: langdetect == 'en' ? props === null || props === void 0 ? void 0 : (_props$subheaderprope6 = props.subheaderpropertiesprops) === null || _props$subheaderprope6 === void 0 ? void 0 : _props$subheaderprope6.paddingRightprops : 0
|
|
11503
11530
|
}
|
|
11504
11531
|
}, langdetect == 'en' ? item.pagename : item.pagename_ar));
|
|
11505
11532
|
}
|
|
11506
|
-
}), fetchCategoriesQueryContext.data.data.categories.map(function (item, index) {
|
|
11507
|
-
var _props$
|
|
11533
|
+
})), fetchCategoriesQueryContext.data.data.categories.map(function (item, index) {
|
|
11534
|
+
var _props$subheaderprope7, _props$subheaderprope8;
|
|
11508
11535
|
|
|
11509
11536
|
return /*#__PURE__*/React__default["default"].createElement("p", {
|
|
11510
|
-
|
|
11537
|
+
"class": "".concat(headerstyles$8.link, " ").concat(header_cssstyles.subheader_category) + ' mb-0 p-0 ml-md-3 mr-md-3 scrollhorizontalcard ',
|
|
11511
11538
|
onClick: function onClick() {},
|
|
11512
11539
|
onMouseEnter: function onMouseEnter() {
|
|
11513
11540
|
setshowdownheadermenu(true);
|
|
11514
11541
|
setChoosenindex(index);
|
|
11515
11542
|
},
|
|
11516
11543
|
style: {
|
|
11517
|
-
marginLeft:
|
|
11518
|
-
marginRight: (_props$subheaderprope8 = props.subheaderpropertiesprops) === null || _props$subheaderprope8 === void 0 ? void 0 : _props$subheaderprope8.paddingRightprops
|
|
11544
|
+
marginLeft: langdetect == 'ar' ? props === null || props === void 0 ? void 0 : (_props$subheaderprope7 = props.subheaderpropertiesprops) === null || _props$subheaderprope7 === void 0 ? void 0 : _props$subheaderprope7.paddingLeftprops : 0,
|
|
11545
|
+
marginRight: langdetect == 'en' ? props === null || props === void 0 ? void 0 : (_props$subheaderprope8 = props.subheaderpropertiesprops) === null || _props$subheaderprope8 === void 0 ? void 0 : _props$subheaderprope8.paddingRightprops : 0
|
|
11519
11546
|
}
|
|
11520
11547
|
}, langdetect == 'en' ? item.title_en : item.title_ar);
|
|
11521
11548
|
}))), Choosenindex.length != 0 && fetchCategoriesQueryContext.data.data.categories[Choosenindex].parentcolletions.length != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11522
|
-
|
|
11549
|
+
"class": "".concat(headerstyles$8.dropmenu, " ").concat(header_cssstyles.dropdownmenu, " ").concat(showdownheadermenu ? 'd-flex' : 'd-none') + ' col-lg-11 ml-auto mr-auto flex-row justify-content-center align-items-center ',
|
|
11523
11550
|
onMouseLeave: function onMouseLeave() {
|
|
11524
11551
|
setshowdownheadermenu(false);
|
|
11525
11552
|
},
|
|
@@ -11529,41 +11556,47 @@ var Subheader = function Subheader(props) {
|
|
|
11529
11556
|
top: ((_props$subheaderprope10 = props.subheaderpropertiesprops) === null || _props$subheaderprope10 === void 0 ? void 0 : _props$subheaderprope10.subheaderpositionprops) == 'in nav' ? 20 : ''
|
|
11530
11557
|
}
|
|
11531
11558
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11532
|
-
|
|
11559
|
+
"class": "row m-0 w-100 d-flex p-3"
|
|
11533
11560
|
}, fetchCategoriesQueryContext.data.data.categories[Choosenindex].parentcolletions.length == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11534
|
-
|
|
11561
|
+
"class": "col-lg-12 d-flex align-items-center justify-content-center text-light flex-column h-100 pt-5 pb-5"
|
|
11535
11562
|
}, /*#__PURE__*/React__default["default"].createElement(md.MdOutlineLayersClear, {
|
|
11536
11563
|
size: 30
|
|
11537
11564
|
}), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
11538
|
-
|
|
11565
|
+
"class": "font-16 font-weight-500 m-0 p-0"
|
|
11539
11566
|
}, langdetect == 'en' ? 'No collections' : 'لا توجد مجموعات')), fetchCategoriesQueryContext.data.data.categories[Choosenindex].parentcolletions.map(function (item, index) {
|
|
11540
11567
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11541
|
-
|
|
11568
|
+
"class": "col-lg-2 col-md-6 col-sm-12 mb-md-4 p-0",
|
|
11542
11569
|
style: {
|
|
11543
11570
|
cursor: 'pointer'
|
|
11544
11571
|
}
|
|
11545
11572
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11546
|
-
|
|
11573
|
+
"class": "row w-100 m-0 d-flex flex-column justify-content-center mb-2"
|
|
11547
11574
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11548
|
-
|
|
11575
|
+
"class": "col-lg-12 p-0 mb-3",
|
|
11549
11576
|
onClick: function onClick() {
|
|
11550
11577
|
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.parentcollectionid);
|
|
11551
11578
|
}
|
|
11552
11579
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
11553
|
-
|
|
11580
|
+
"class": "".concat(header_cssstyles.parentcollection) + ' wordbreak m-0 p-0 ',
|
|
11581
|
+
style: {
|
|
11582
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
11583
|
+
}
|
|
11554
11584
|
}, langdetect == 'en' ? item.title_en : item.title_ar)), item.collections.map(function (item, index) {
|
|
11555
11585
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11556
|
-
|
|
11586
|
+
"class": "col-lg-12 p-0 mb-2",
|
|
11557
11587
|
onClick: function onClick() {
|
|
11558
11588
|
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.collectionid);
|
|
11559
11589
|
}
|
|
11560
11590
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
11561
|
-
|
|
11591
|
+
"class": "".concat(header_cssstyles.subheader_collectiontitle) + ' wordbreak m-0 p-0 ',
|
|
11592
|
+
style: {
|
|
11593
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
11594
|
+
}
|
|
11562
11595
|
}, langdetect == 'en' ? item.title_en : item.title_ar));
|
|
11563
11596
|
}), index != item.collections.length != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11564
|
-
|
|
11597
|
+
"class": "col-lg-12 p-0 d-none d-sm-block"
|
|
11565
11598
|
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
11566
|
-
|
|
11599
|
+
"class": "mt-3 mb-0"
|
|
11567
11600
|
}))));
|
|
11568
11601
|
}))))));
|
|
11569
11602
|
};
|
|
@@ -19188,9 +19221,27 @@ var ClassicHeader = function ClassicHeader(props) {
|
|
|
19188
19221
|
"class": "".concat(header_cssstyles.navbar_item_text) + ' navbar_item_text '
|
|
19189
19222
|
}, langdetect == 'en' ? item.pagename : item.pagename_ar));
|
|
19190
19223
|
}
|
|
19191
|
-
})))
|
|
19224
|
+
}))), sectionproperties.showhidesubheader == 'Show' && sectionproperties.subheaderposition == 'Besides Top Navigation' && /*#__PURE__*/React__default["default"].createElement(Subheader, {
|
|
19225
|
+
sectionpropertiesprops: sectionproperties,
|
|
19226
|
+
subheaderpropertiesprops: {
|
|
19227
|
+
subheaderpositionprops: 'in nav',
|
|
19228
|
+
paddingLeftprops: '1rem',
|
|
19229
|
+
paddingRightprops: '1rem',
|
|
19230
|
+
subheadercontentpositionprops: 'start'
|
|
19231
|
+
},
|
|
19232
|
+
actions: actions
|
|
19233
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
19192
19234
|
"class": "col-lg-12 p-0"
|
|
19193
|
-
}
|
|
19235
|
+
}, sectionproperties.showhidesubheader == 'Show' && sectionproperties.subheaderposition == 'Full Width' && /*#__PURE__*/React__default["default"].createElement(Subheader, {
|
|
19236
|
+
sectionpropertiesprops: sectionproperties,
|
|
19237
|
+
subheaderpropertiesprops: {
|
|
19238
|
+
subheaderpositionprops: 'Full Width',
|
|
19239
|
+
paddingLeftprops: '35px',
|
|
19240
|
+
paddingRightprops: '35px',
|
|
19241
|
+
subheadercontentpositionprops: 'center'
|
|
19242
|
+
},
|
|
19243
|
+
actions: actions
|
|
19244
|
+
})))), /*#__PURE__*/React__default["default"].createElement(Headerresponsive, {
|
|
19194
19245
|
sectionpropertiesprops: sectionproperties,
|
|
19195
19246
|
actions: actions
|
|
19196
19247
|
}));
|
|
@@ -24122,6 +24173,8 @@ var MenuCard = function MenuCard(props) {
|
|
|
24122
24173
|
var setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
|
|
24123
24174
|
var AddtoCartContext = props.actions.AddtoCartContext;
|
|
24124
24175
|
props.actions.AddtoCartMutationContext;
|
|
24176
|
+
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
24177
|
+
var routingcountext = props.actions.routingcountext;
|
|
24125
24178
|
var NotificationManager = NotificationManager;
|
|
24126
24179
|
|
|
24127
24180
|
var updatequantity = function updatequantity(type) {
|
|
@@ -24606,8 +24659,8 @@ var ModernProductCard = function ModernProductCard(props) {
|
|
|
24606
24659
|
var setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
|
|
24607
24660
|
var AddtoCartContext = props.actions.AddtoCartContext;
|
|
24608
24661
|
props.actions.AddtoCartMutationContext;
|
|
24609
|
-
var StaticPagesLinksContext = props.StaticPagesLinksContext;
|
|
24610
|
-
var routingcountext = props.routingcountext;
|
|
24662
|
+
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
24663
|
+
var routingcountext = props.actions.routingcountext;
|
|
24611
24664
|
var NotificationManager = NotificationManager;
|
|
24612
24665
|
|
|
24613
24666
|
var updatequantity = function updatequantity(type) {
|
|
@@ -25327,8 +25380,8 @@ var Productcard_with_circularbg = function Productcard_with_circularbg(props) {
|
|
|
25327
25380
|
var setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
|
|
25328
25381
|
props.actions.AddtoCartContext;
|
|
25329
25382
|
props.actions.AddtoCartMutationContext;
|
|
25330
|
-
var StaticPagesLinksContext = props.StaticPagesLinksContext;
|
|
25331
|
-
var routingcountext = props.routingcountext;
|
|
25383
|
+
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
25384
|
+
var routingcountext = props.actions.routingcountext;
|
|
25332
25385
|
React.useEffect(function () {
|
|
25333
25386
|
if (props.srcfrom == 'addsectionform') {
|
|
25334
25387
|
var secpropobj = {};
|
|
@@ -25590,8 +25643,8 @@ var Productcard_with_circularhover = function Productcard_with_circularhover(pro
|
|
|
25590
25643
|
var setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
|
|
25591
25644
|
props.actions.AddtoCartContext;
|
|
25592
25645
|
props.actions.AddtoCartMutationContext;
|
|
25593
|
-
var StaticPagesLinksContext = props.StaticPagesLinksContext;
|
|
25594
|
-
var routingcountext = props.routingcountext;
|
|
25646
|
+
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
25647
|
+
var routingcountext = props.actions.routingcountext;
|
|
25595
25648
|
React.useEffect(function () {
|
|
25596
25649
|
if (props.srcfrom == 'addsectionform') {
|
|
25597
25650
|
var secpropobj = {};
|
|
@@ -26136,8 +26189,8 @@ var Productcard_with_variants = function Productcard_with_variants(props) {
|
|
|
26136
26189
|
var setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
|
|
26137
26190
|
props.actions.AddtoCartContext;
|
|
26138
26191
|
props.actions.AddtoCartMutationContext;
|
|
26139
|
-
var StaticPagesLinksContext = props.StaticPagesLinksContext;
|
|
26140
|
-
var routingcountext = props.routingcountext;
|
|
26192
|
+
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
26193
|
+
var routingcountext = props.actions.routingcountext;
|
|
26141
26194
|
React.useEffect(function () {
|
|
26142
26195
|
if (props.srcfrom == 'addsectionform') {
|
|
26143
26196
|
var secpropobj = {};
|
|
@@ -26423,8 +26476,8 @@ var Productcard6 = function Productcard6(props) {
|
|
|
26423
26476
|
var setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
|
|
26424
26477
|
props.actions.AddtoCartContext;
|
|
26425
26478
|
props.actions.AddtoCartMutationContext;
|
|
26426
|
-
var StaticPagesLinksContext = props.StaticPagesLinksContext;
|
|
26427
|
-
var routingcountext = props.routingcountext;
|
|
26479
|
+
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
26480
|
+
var routingcountext = props.actions.routingcountext;
|
|
26428
26481
|
React.useEffect(function () {
|
|
26429
26482
|
if (props.srcfrom == 'addsectionform') {
|
|
26430
26483
|
var secpropobj = {};
|
|
@@ -26669,8 +26722,8 @@ var Productcard7 = function Productcard7(props) {
|
|
|
26669
26722
|
var setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
|
|
26670
26723
|
props.actions.AddtoCartContext;
|
|
26671
26724
|
props.actions.AddtoCartMutationContext;
|
|
26672
|
-
var StaticPagesLinksContext = props.StaticPagesLinksContext;
|
|
26673
|
-
var routingcountext = props.routingcountext;
|
|
26725
|
+
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
26726
|
+
var routingcountext = props.actions.routingcountext;
|
|
26674
26727
|
React.useEffect(function () {
|
|
26675
26728
|
if (props.srcfrom == 'addsectionform') {
|
|
26676
26729
|
var secpropobj = {};
|
|
@@ -26936,8 +26989,8 @@ var Productcarddefault = function Productcarddefault(props) {
|
|
|
26936
26989
|
var setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
|
|
26937
26990
|
props.actions.AddtoCartContext;
|
|
26938
26991
|
props.actions.AddtoCartMutationContext;
|
|
26939
|
-
var StaticPagesLinksContext = props.StaticPagesLinksContext;
|
|
26940
|
-
var routingcountext = props.routingcountext;
|
|
26992
|
+
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
26993
|
+
var routingcountext = props.actions.routingcountext;
|
|
26941
26994
|
React.useEffect(function () {
|
|
26942
26995
|
if (props.srcfrom == 'addsectionform') {
|
|
26943
26996
|
var secpropobj = {};
|
|
@@ -27190,8 +27243,8 @@ var Productccard_with_imageontopleft = function Productccard_with_imageontopleft
|
|
|
27190
27243
|
var setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
|
|
27191
27244
|
props.actions.AddtoCartContext;
|
|
27192
27245
|
props.actions.AddtoCartMutationContext;
|
|
27193
|
-
var StaticPagesLinksContext = props.StaticPagesLinksContext;
|
|
27194
|
-
var routingcountext = props.routingcountext;
|
|
27246
|
+
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
27247
|
+
var routingcountext = props.actions.routingcountext;
|
|
27195
27248
|
React.useEffect(function () {
|
|
27196
27249
|
if (props.srcfrom == 'addsectionform') {
|
|
27197
27250
|
var secpropobj = {};
|
|
@@ -27472,8 +27525,8 @@ var Prouductcard_with_zoomhover = function Prouductcard_with_zoomhover(props) {
|
|
|
27472
27525
|
props.actions.setProductIdProdutInfoModalContext;
|
|
27473
27526
|
props.actions.AddtoCartContext;
|
|
27474
27527
|
props.actions.AddtoCartMutationContext;
|
|
27475
|
-
props.StaticPagesLinksContext;
|
|
27476
|
-
props.routingcountext;
|
|
27528
|
+
props.actions.StaticPagesLinksContext;
|
|
27529
|
+
props.actions.routingcountext;
|
|
27477
27530
|
React.useEffect(function () {
|
|
27478
27531
|
if (props.srcfrom == 'addsectionform') {
|
|
27479
27532
|
var secpropobj = {};
|
|
@@ -27608,8 +27661,8 @@ var Simplecategorycardwithtextbelow = function Simplecategorycardwithtextbelow(p
|
|
|
27608
27661
|
props.actions.setProductIdProdutInfoModalContext;
|
|
27609
27662
|
props.actions.AddtoCartContext;
|
|
27610
27663
|
props.actions.AddtoCartMutationContext;
|
|
27611
|
-
var StaticPagesLinksContext = props.StaticPagesLinksContext;
|
|
27612
|
-
var routingcountext = props.routingcountext;
|
|
27664
|
+
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
27665
|
+
var routingcountext = props.actions.routingcountext;
|
|
27613
27666
|
React.useEffect(function () {
|
|
27614
27667
|
if (props.srcfrom == 'addsectionform') {
|
|
27615
27668
|
var secpropobj = {};
|
|
@@ -27739,8 +27792,8 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
27739
27792
|
var setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
|
|
27740
27793
|
props.actions.AddtoCartContext;
|
|
27741
27794
|
props.actions.AddtoCartMutationContext;
|
|
27742
|
-
var StaticPagesLinksContext = props.StaticPagesLinksContext;
|
|
27743
|
-
var routingcountext = props.routingcountext;
|
|
27795
|
+
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
27796
|
+
var routingcountext = props.actions.routingcountext;
|
|
27744
27797
|
React.useEffect(function () {
|
|
27745
27798
|
if (props.srcfrom == 'addsectionform') {
|
|
27746
27799
|
var secpropobj = {};
|
|
@@ -28019,8 +28072,8 @@ var StylishProductCard = function StylishProductCard(props) {
|
|
|
28019
28072
|
var setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
|
|
28020
28073
|
props.actions.AddtoCartContext;
|
|
28021
28074
|
props.actions.AddtoCartMutationContext;
|
|
28022
|
-
var StaticPagesLinksContext = props.StaticPagesLinksContext;
|
|
28023
|
-
var routingcountext = props.routingcountext;
|
|
28075
|
+
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
28076
|
+
var routingcountext = props.actions.routingcountext;
|
|
28024
28077
|
React.useEffect(function () {
|
|
28025
28078
|
if (props.srcfrom == 'addsectionform') {
|
|
28026
28079
|
var secpropobj = {};
|
|
@@ -28274,6 +28327,8 @@ var returnLibrary = function returnLibrary() {
|
|
|
28274
28327
|
return {
|
|
28275
28328
|
LanguageContext: LanguageContext$1,
|
|
28276
28329
|
LanguageProvider: LanguageProvider,
|
|
28330
|
+
ProductsCardsSectionContext: ProductsCardsSectionContext,
|
|
28331
|
+
ProductsCardsSectionContext_Provider: ProductsCardsSectionContext_Provider,
|
|
28277
28332
|
AwesomeButton: AwesomeButton,
|
|
28278
28333
|
Checkout: Checkout,
|
|
28279
28334
|
Signup: Signup,
|