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.esm.js
CHANGED
|
@@ -353,6 +353,35 @@ var LanguageProvider = /*#__PURE__*/function (_Component) {
|
|
|
353
353
|
}(Component);
|
|
354
354
|
LanguageContext$1.Consumer;
|
|
355
355
|
|
|
356
|
+
var ProductsCardsSectionContext = /*#__PURE__*/React.createContext();
|
|
357
|
+
var ProductsCardsSectionContext_Provider = function ProductsCardsSectionContext_Provider(props) {
|
|
358
|
+
// let history = useHistory();
|
|
359
|
+
var _useState = useState(''),
|
|
360
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
361
|
+
ParentCollectionsForCollectionQueryArrContext = _useState2[0],
|
|
362
|
+
setParentCollectionsForCollectionQueryArrContext = _useState2[1];
|
|
363
|
+
|
|
364
|
+
var _useState3 = useState({
|
|
365
|
+
Isfiltercollections: 0,
|
|
366
|
+
isfilter: 0,
|
|
367
|
+
ProductFetchingType: '',
|
|
368
|
+
collections: [],
|
|
369
|
+
FilterOptions: []
|
|
370
|
+
}),
|
|
371
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
372
|
+
ProductFilterObjContext = _useState4[0],
|
|
373
|
+
setProductFilterObjContext = _useState4[1];
|
|
374
|
+
|
|
375
|
+
return /*#__PURE__*/React.createElement(ProductsCardsSectionContext.Provider, {
|
|
376
|
+
value: {
|
|
377
|
+
ProductFilterObjContext: ProductFilterObjContext,
|
|
378
|
+
setProductFilterObjContext: setProductFilterObjContext,
|
|
379
|
+
ParentCollectionsForCollectionQueryArrContext: ParentCollectionsForCollectionQueryArrContext,
|
|
380
|
+
setParentCollectionsForCollectionQueryArrContext: setParentCollectionsForCollectionQueryArrContext
|
|
381
|
+
}
|
|
382
|
+
}, props.children);
|
|
383
|
+
};
|
|
384
|
+
|
|
356
385
|
function styleInject(css, ref) {
|
|
357
386
|
if ( ref === void 0 ) ref = {};
|
|
358
387
|
var insertAt = ref.insertAt;
|
|
@@ -2179,7 +2208,7 @@ function ownKeys$19(object, enumerableOnly) { var keys = Object.keys(object); if
|
|
|
2179
2208
|
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(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; }
|
|
2180
2209
|
|
|
2181
2210
|
var Ordershistory = function Ordershistory(props) {
|
|
2182
|
-
var _bgimagesarray$, _bgimagesarray$2;
|
|
2211
|
+
var _props$actions2, _bgimagesarray$, _bgimagesarray$2;
|
|
2183
2212
|
|
|
2184
2213
|
// const { lang, langdetect } = useContext(LanguageContext);
|
|
2185
2214
|
// const { routingcountext } = useContext(TemplateRoutingContext);
|
|
@@ -2198,7 +2227,7 @@ var Ordershistory = function Ordershistory(props) {
|
|
|
2198
2227
|
var fetchorderhistoryQueryContext = props.actions.fetchorderhistoryQueryContext;
|
|
2199
2228
|
var navigationstyle = props.actions.navigationstyle;
|
|
2200
2229
|
props.actions.pageindexcontext;
|
|
2201
|
-
|
|
2230
|
+
props.actions.StatePagePropertiesContext;
|
|
2202
2231
|
props.actions.TabexSectionsComponentsContext;
|
|
2203
2232
|
var templatepropcontext = props.actions.templatepropcontext;
|
|
2204
2233
|
var authdetailsContext = props.actions.authdetailsContext;
|
|
@@ -2245,14 +2274,15 @@ var Ordershistory = function Ordershistory(props) {
|
|
|
2245
2274
|
}
|
|
2246
2275
|
}, []);
|
|
2247
2276
|
useEffect(function () {
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
}
|
|
2255
|
-
|
|
2277
|
+
var _props$actions, _props$actions$StateP, _props$actions$StateP2, _props$actions$StateP3;
|
|
2278
|
+
|
|
2279
|
+
// if (Object.keys(StatePagePropertiesContext).length != 0) {
|
|
2280
|
+
var secpropobj = {};
|
|
2281
|
+
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) {
|
|
2282
|
+
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
2283
|
+
});
|
|
2284
|
+
setsectionproperties(_objectSpread$19({}, secpropobj)); // }
|
|
2285
|
+
}, [props === null || props === void 0 ? void 0 : (_props$actions2 = props.actions) === null || _props$actions2 === void 0 ? void 0 : _props$actions2.StatePagePropertiesContext]);
|
|
2256
2286
|
var orderhistory_cssstyles = {
|
|
2257
2287
|
sectiontitlespan: css({
|
|
2258
2288
|
':after': {
|
|
@@ -3658,8 +3688,8 @@ var Checkout = function Checkout(props) {
|
|
|
3658
3688
|
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
3659
3689
|
var routingcountext = props.actions.routingcountext;
|
|
3660
3690
|
var ApplyPromoCodeMutationContext = props.actions.ApplyPromoCodeMutationContext;
|
|
3661
|
-
|
|
3662
|
-
|
|
3691
|
+
props.actions.CurrentSrcTypeContext;
|
|
3692
|
+
props.actions.StatePagePropertiesContext;
|
|
3663
3693
|
var templatepropcontext = props.actions.templatepropcontext;
|
|
3664
3694
|
var fetchcustomercartQueryContext = props.actions.fetchcustomercartQueryContext;
|
|
3665
3695
|
var FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
|
|
@@ -3697,28 +3727,22 @@ var Checkout = function Checkout(props) {
|
|
|
3697
3727
|
setCurrentPageId(cartindex);
|
|
3698
3728
|
}
|
|
3699
3729
|
}, []);
|
|
3730
|
+
useEffect(function () {// var secpropobj = {};
|
|
3731
|
+
// templatepropcontext?.pagesnprop[CurrentPageId]?.pageproperties?.forEach(function (arrayItem, arrayindex) {
|
|
3732
|
+
// secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
3733
|
+
// });
|
|
3734
|
+
// setsectionproperties({ ...secpropobj });
|
|
3735
|
+
}, [CurrentPageId, props.actions.templatepropcontext]);
|
|
3700
3736
|
useEffect(function () {
|
|
3701
|
-
var
|
|
3737
|
+
var _props$actions, _props$actions$StateP, _props$actions$StateP2, _props$actions$StateP3;
|
|
3702
3738
|
|
|
3739
|
+
// if (rops?.actions?.StatePagePropertiesContext != null && rops?.actions?.StatePagePropertiesContext != undefined && StatePagePropertiesContext.length != 0) {
|
|
3703
3740
|
var secpropobj = {};
|
|
3704
|
-
|
|
3741
|
+
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) {
|
|
3705
3742
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
3706
3743
|
});
|
|
3707
|
-
setsectionproperties(_objectSpread$16({}, secpropobj));
|
|
3708
|
-
}, [
|
|
3709
|
-
useEffect(function () {
|
|
3710
|
-
if (CurrentSrcTypeContext == 'workplace') {
|
|
3711
|
-
if (StatePagePropertiesContext != null && StatePagePropertiesContext != undefined && StatePagePropertiesContext.length != 0) {
|
|
3712
|
-
var _StatePagePropertiesC, _StatePagePropertiesC2;
|
|
3713
|
-
|
|
3714
|
-
var secpropobj = {};
|
|
3715
|
-
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) {
|
|
3716
|
-
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
3717
|
-
});
|
|
3718
|
-
setsectionproperties(_objectSpread$16({}, secpropobj));
|
|
3719
|
-
}
|
|
3720
|
-
}
|
|
3721
|
-
}, [StatePagePropertiesContext]);
|
|
3744
|
+
setsectionproperties(_objectSpread$16({}, secpropobj)); // }
|
|
3745
|
+
}, [props.actions.StatePagePropertiesContext]);
|
|
3722
3746
|
useEffect(function () {
|
|
3723
3747
|
var _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4, _fetchcustomercartQue5, _fetchcustomercartQue6, _fetchcustomercartQue9, _fetchcustomercartQue10, _fetchcustomercartQue11, _fetchcustomercartQue12, _fetchcustomercartQue13, _fetchcustomercartQue14;
|
|
3724
3748
|
|
|
@@ -5589,21 +5613,20 @@ var AccountInformation = function AccountInformation(props) {
|
|
|
5589
5613
|
var navigationstyle = props.actions.navigationstyle;
|
|
5590
5614
|
var actions = props.actions;
|
|
5591
5615
|
useEffect(function () {
|
|
5592
|
-
|
|
5593
|
-
var _StatePagePropertiesC, _StatePagePropertiesC2;
|
|
5616
|
+
var _props$actions, _props$actions$StateP, _props$actions$StateP2, _props$actions$StateP3;
|
|
5594
5617
|
|
|
5595
|
-
|
|
5596
|
-
|
|
5597
|
-
|
|
5598
|
-
|
|
5599
|
-
|
|
5600
|
-
}
|
|
5601
|
-
}, [StatePagePropertiesContext]);
|
|
5618
|
+
// if (Object.keys(props?.actions?.StatePagePropertiesContext).length != 0) {
|
|
5619
|
+
var secpropobj = {};
|
|
5620
|
+
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) {
|
|
5621
|
+
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
5622
|
+
});
|
|
5623
|
+
setsectionproperties(_objectSpread$13({}, secpropobj)); // }
|
|
5624
|
+
}, [props.actions.StatePagePropertiesContext]);
|
|
5602
5625
|
|
|
5603
5626
|
var _useState = useState(''),
|
|
5604
|
-
_useState2 = _slicedToArray(_useState, 2)
|
|
5605
|
-
|
|
5606
|
-
setCurrentPageId = _useState2[1];
|
|
5627
|
+
_useState2 = _slicedToArray(_useState, 2);
|
|
5628
|
+
_useState2[0];
|
|
5629
|
+
var setCurrentPageId = _useState2[1];
|
|
5607
5630
|
|
|
5608
5631
|
var _useState3 = useState(''),
|
|
5609
5632
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
@@ -5618,16 +5641,14 @@ var AccountInformation = function AccountInformation(props) {
|
|
|
5618
5641
|
if (cartindex >= 0) {
|
|
5619
5642
|
setCurrentPageId(cartindex);
|
|
5620
5643
|
}
|
|
5621
|
-
}, []);
|
|
5622
|
-
|
|
5623
|
-
|
|
5644
|
+
}, []); // useEffect(() => {
|
|
5645
|
+
// var secpropobj = {};
|
|
5646
|
+
// templatepropcontext?.pagesnprop[CurrentPageId]?.pageproperties?.forEach(function (arrayItem, arrayindex) {
|
|
5647
|
+
// secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
5648
|
+
// });
|
|
5649
|
+
// setsectionproperties({ ...secpropobj });
|
|
5650
|
+
// }, [CurrentPageId, templatepropcontext]);
|
|
5624
5651
|
|
|
5625
|
-
var secpropobj = {};
|
|
5626
|
-
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) {
|
|
5627
|
-
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
5628
|
-
});
|
|
5629
|
-
setsectionproperties(_objectSpread$13({}, secpropobj));
|
|
5630
|
-
}, [CurrentPageId]);
|
|
5631
5652
|
var accountinfo_cssstyles = {
|
|
5632
5653
|
sectiontitlespan: css({
|
|
5633
5654
|
':after': {
|
|
@@ -11324,7 +11345,7 @@ function ownKeys$I(object, enumerableOnly) { var keys = Object.keys(object); if
|
|
|
11324
11345
|
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(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; }
|
|
11325
11346
|
|
|
11326
11347
|
var Subheader = function Subheader(props) {
|
|
11327
|
-
var _props$subheaderprope, _props$subheaderprope2,
|
|
11348
|
+
var _props$subheaderprope, _props$subheaderprope2, _templatepropcontext$, _props$subheaderprope9, _props$subheaderprope10;
|
|
11328
11349
|
|
|
11329
11350
|
// const { lang, setlang, langdetect } = useContext(LanguageContext);
|
|
11330
11351
|
// const { FetchQueriesEngineContext, setFetchQueriesEngineContext, fetchCategoriesQueryContext } = useContext(FetchingContext);
|
|
@@ -11362,7 +11383,7 @@ var Subheader = function Subheader(props) {
|
|
|
11362
11383
|
}, []);
|
|
11363
11384
|
useEffect(function () {
|
|
11364
11385
|
if (props.sectionpropertiesprops != undefined) {
|
|
11365
|
-
setsectionproperties(_objectSpread$I({}, props.sectionpropertiesprops));
|
|
11386
|
+
setsectionproperties(_objectSpread$I({}, props === null || props === void 0 ? void 0 : props.sectionpropertiesprops));
|
|
11366
11387
|
}
|
|
11367
11388
|
}, [props.sectionpropertiesprops]);
|
|
11368
11389
|
var header_cssstyles = {
|
|
@@ -11406,78 +11427,84 @@ var Subheader = function Subheader(props) {
|
|
|
11406
11427
|
})
|
|
11407
11428
|
};
|
|
11408
11429
|
return /*#__PURE__*/React.createElement("div", {
|
|
11409
|
-
|
|
11430
|
+
"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 ',
|
|
11410
11431
|
style: {
|
|
11411
11432
|
background: sectionproperties.subheaderbg,
|
|
11412
11433
|
zIndex: 200,
|
|
11413
11434
|
flex: 1
|
|
11414
11435
|
}
|
|
11415
11436
|
}, sectionproperties != undefined && sectionproperties.length != 0 && /*#__PURE__*/React.createElement("div", {
|
|
11416
|
-
|
|
11437
|
+
"class": "".concat(headerstyles$8.sub_container) + ' w-100 p-md-0 '
|
|
11417
11438
|
}, fetchCategoriesQueryContext.isSuccess && fetchCategoriesQueryContext.data.data.status && /*#__PURE__*/React.createElement("div", {
|
|
11418
|
-
|
|
11439
|
+
"class": " ".concat(headerstyles$8.subheader) + ' row w-100 m-0 d-flex flex-row align-items-center w-sm-100 ',
|
|
11419
11440
|
style: {
|
|
11420
11441
|
position: 'relative'
|
|
11421
11442
|
}
|
|
11422
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
11423
|
-
|
|
11443
|
+
}, (props === null || props === void 0 ? void 0 : props.subheaderpositionprops) == 'Full Width' && /*#__PURE__*/React.createElement("div", {
|
|
11444
|
+
"class": "ml-auto mr-auto",
|
|
11424
11445
|
style: {
|
|
11425
11446
|
background: sectionproperties.upperseparatorbgcolor,
|
|
11426
11447
|
width: sectionproperties.upperseparatorwidth + '%',
|
|
11427
11448
|
height: sectionproperties.upperseparatorheight + 'px'
|
|
11428
11449
|
}
|
|
11429
11450
|
}), /*#__PURE__*/React.createElement("div", {
|
|
11430
|
-
|
|
11451
|
+
"class": "col-lg-12 m-auto d-flex flex-column align-items-center justify-content-center ",
|
|
11431
11452
|
style: {
|
|
11432
11453
|
borderBottom: sectionproperties.separator_borderwidth + 'px solid ' + sectionproperties.separator_bgcolor,
|
|
11433
11454
|
paddingTop: sectionproperties.subheader_margintop + 'px',
|
|
11434
11455
|
paddingBottom: sectionproperties.subheader_marginbottom + 'px'
|
|
11435
11456
|
}
|
|
11436
11457
|
}, /*#__PURE__*/React.createElement("div", {
|
|
11437
|
-
|
|
11458
|
+
"class": "".concat(headerstyles$8.nav__item) + ' scrollhorizontal flex-row align-items-center ',
|
|
11438
11459
|
style: {
|
|
11439
11460
|
zIndex: 1000,
|
|
11440
|
-
|
|
11461
|
+
textAlign: langdetect == 'en' ? 'left' : 'right' // justifyContent: props.subheaderpropertiesprops?.subheadercontentpositionprops,
|
|
11462
|
+
|
|
11441
11463
|
}
|
|
11442
|
-
}, ((_props$
|
|
11464
|
+
}, (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) {
|
|
11443
11465
|
if (item.isnavigation == 1 && item.isactive == 1) {
|
|
11444
|
-
var _props$subheaderprope4, _props$subheaderprope5;
|
|
11466
|
+
var _props$subheaderprope3, _props$subheaderprope4, _props$subheaderprope5, _props$subheaderprope6;
|
|
11445
11467
|
|
|
11446
11468
|
return /*#__PURE__*/React.createElement("div", {
|
|
11447
11469
|
onClick: function onClick() {
|
|
11448
11470
|
history.push(item.navigationroute);
|
|
11471
|
+
},
|
|
11472
|
+
"class": "scrollhorizontalcard",
|
|
11473
|
+
style: {
|
|
11474
|
+
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,
|
|
11475
|
+
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
|
|
11449
11476
|
}
|
|
11450
11477
|
}, /*#__PURE__*/React.createElement("p", {
|
|
11451
|
-
|
|
11478
|
+
"class": "".concat(headerstyles$8.link, " ").concat(header_cssstyles.subheader_category) + ' mb-0 p-0 ml-md-3 mr-md-3 ',
|
|
11452
11479
|
onClick: function onClick() {
|
|
11453
|
-
|
|
11480
|
+
fetch_inst_tabex_websitetemplatesQueryContext.data.data.template.pages.forEach(function (pageitem, pageindex) {
|
|
11454
11481
|
pageitem.isselected = false;
|
|
11455
11482
|
});
|
|
11456
|
-
|
|
11483
|
+
fetch_inst_tabex_websitetemplatesQueryContext.data.data.template.pages[index].isselected = true;
|
|
11457
11484
|
},
|
|
11458
11485
|
style: {
|
|
11459
|
-
marginLeft: langdetect == 'en' ? 0 : (_props$
|
|
11460
|
-
marginRight: langdetect == 'en' ? (_props$
|
|
11486
|
+
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,
|
|
11487
|
+
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
|
|
11461
11488
|
}
|
|
11462
11489
|
}, langdetect == 'en' ? item.pagename : item.pagename_ar));
|
|
11463
11490
|
}
|
|
11464
|
-
}), fetchCategoriesQueryContext.data.data.categories.map(function (item, index) {
|
|
11465
|
-
var _props$
|
|
11491
|
+
})), fetchCategoriesQueryContext.data.data.categories.map(function (item, index) {
|
|
11492
|
+
var _props$subheaderprope7, _props$subheaderprope8;
|
|
11466
11493
|
|
|
11467
11494
|
return /*#__PURE__*/React.createElement("p", {
|
|
11468
|
-
|
|
11495
|
+
"class": "".concat(headerstyles$8.link, " ").concat(header_cssstyles.subheader_category) + ' mb-0 p-0 ml-md-3 mr-md-3 scrollhorizontalcard ',
|
|
11469
11496
|
onClick: function onClick() {},
|
|
11470
11497
|
onMouseEnter: function onMouseEnter() {
|
|
11471
11498
|
setshowdownheadermenu(true);
|
|
11472
11499
|
setChoosenindex(index);
|
|
11473
11500
|
},
|
|
11474
11501
|
style: {
|
|
11475
|
-
marginLeft:
|
|
11476
|
-
marginRight: (_props$subheaderprope8 = props.subheaderpropertiesprops) === null || _props$subheaderprope8 === void 0 ? void 0 : _props$subheaderprope8.paddingRightprops
|
|
11502
|
+
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,
|
|
11503
|
+
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
|
|
11477
11504
|
}
|
|
11478
11505
|
}, langdetect == 'en' ? item.title_en : item.title_ar);
|
|
11479
11506
|
}))), Choosenindex.length != 0 && fetchCategoriesQueryContext.data.data.categories[Choosenindex].parentcolletions.length != 0 && /*#__PURE__*/React.createElement("div", {
|
|
11480
|
-
|
|
11507
|
+
"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 ',
|
|
11481
11508
|
onMouseLeave: function onMouseLeave() {
|
|
11482
11509
|
setshowdownheadermenu(false);
|
|
11483
11510
|
},
|
|
@@ -11487,41 +11514,47 @@ var Subheader = function Subheader(props) {
|
|
|
11487
11514
|
top: ((_props$subheaderprope10 = props.subheaderpropertiesprops) === null || _props$subheaderprope10 === void 0 ? void 0 : _props$subheaderprope10.subheaderpositionprops) == 'in nav' ? 20 : ''
|
|
11488
11515
|
}
|
|
11489
11516
|
}, /*#__PURE__*/React.createElement("div", {
|
|
11490
|
-
|
|
11517
|
+
"class": "row m-0 w-100 d-flex p-3"
|
|
11491
11518
|
}, fetchCategoriesQueryContext.data.data.categories[Choosenindex].parentcolletions.length == 0 && /*#__PURE__*/React.createElement("div", {
|
|
11492
|
-
|
|
11519
|
+
"class": "col-lg-12 d-flex align-items-center justify-content-center text-light flex-column h-100 pt-5 pb-5"
|
|
11493
11520
|
}, /*#__PURE__*/React.createElement(MdOutlineLayersClear, {
|
|
11494
11521
|
size: 30
|
|
11495
11522
|
}), /*#__PURE__*/React.createElement("p", {
|
|
11496
|
-
|
|
11523
|
+
"class": "font-16 font-weight-500 m-0 p-0"
|
|
11497
11524
|
}, langdetect == 'en' ? 'No collections' : 'لا توجد مجموعات')), fetchCategoriesQueryContext.data.data.categories[Choosenindex].parentcolletions.map(function (item, index) {
|
|
11498
11525
|
return /*#__PURE__*/React.createElement("div", {
|
|
11499
|
-
|
|
11526
|
+
"class": "col-lg-2 col-md-6 col-sm-12 mb-md-4 p-0",
|
|
11500
11527
|
style: {
|
|
11501
11528
|
cursor: 'pointer'
|
|
11502
11529
|
}
|
|
11503
11530
|
}, /*#__PURE__*/React.createElement("div", {
|
|
11504
|
-
|
|
11531
|
+
"class": "row w-100 m-0 d-flex flex-column justify-content-center mb-2"
|
|
11505
11532
|
}, /*#__PURE__*/React.createElement("div", {
|
|
11506
|
-
|
|
11533
|
+
"class": "col-lg-12 p-0 mb-3",
|
|
11507
11534
|
onClick: function onClick() {
|
|
11508
11535
|
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.parentcollectionid);
|
|
11509
11536
|
}
|
|
11510
11537
|
}, /*#__PURE__*/React.createElement("p", {
|
|
11511
|
-
|
|
11538
|
+
"class": "".concat(header_cssstyles.parentcollection) + ' wordbreak m-0 p-0 ',
|
|
11539
|
+
style: {
|
|
11540
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
11541
|
+
}
|
|
11512
11542
|
}, langdetect == 'en' ? item.title_en : item.title_ar)), item.collections.map(function (item, index) {
|
|
11513
11543
|
return /*#__PURE__*/React.createElement("div", {
|
|
11514
|
-
|
|
11544
|
+
"class": "col-lg-12 p-0 mb-2",
|
|
11515
11545
|
onClick: function onClick() {
|
|
11516
11546
|
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.collectionid);
|
|
11517
11547
|
}
|
|
11518
11548
|
}, /*#__PURE__*/React.createElement("p", {
|
|
11519
|
-
|
|
11549
|
+
"class": "".concat(header_cssstyles.subheader_collectiontitle) + ' wordbreak m-0 p-0 ',
|
|
11550
|
+
style: {
|
|
11551
|
+
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
11552
|
+
}
|
|
11520
11553
|
}, langdetect == 'en' ? item.title_en : item.title_ar));
|
|
11521
11554
|
}), index != item.collections.length != 0 && /*#__PURE__*/React.createElement("div", {
|
|
11522
|
-
|
|
11555
|
+
"class": "col-lg-12 p-0 d-none d-sm-block"
|
|
11523
11556
|
}, /*#__PURE__*/React.createElement("hr", {
|
|
11524
|
-
|
|
11557
|
+
"class": "mt-3 mb-0"
|
|
11525
11558
|
}))));
|
|
11526
11559
|
}))))));
|
|
11527
11560
|
};
|
|
@@ -19146,9 +19179,27 @@ var ClassicHeader = function ClassicHeader(props) {
|
|
|
19146
19179
|
"class": "".concat(header_cssstyles.navbar_item_text) + ' navbar_item_text '
|
|
19147
19180
|
}, langdetect == 'en' ? item.pagename : item.pagename_ar));
|
|
19148
19181
|
}
|
|
19149
|
-
})))
|
|
19182
|
+
}))), sectionproperties.showhidesubheader == 'Show' && sectionproperties.subheaderposition == 'Besides Top Navigation' && /*#__PURE__*/React.createElement(Subheader, {
|
|
19183
|
+
sectionpropertiesprops: sectionproperties,
|
|
19184
|
+
subheaderpropertiesprops: {
|
|
19185
|
+
subheaderpositionprops: 'in nav',
|
|
19186
|
+
paddingLeftprops: '1rem',
|
|
19187
|
+
paddingRightprops: '1rem',
|
|
19188
|
+
subheadercontentpositionprops: 'start'
|
|
19189
|
+
},
|
|
19190
|
+
actions: actions
|
|
19191
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
19150
19192
|
"class": "col-lg-12 p-0"
|
|
19151
|
-
}
|
|
19193
|
+
}, sectionproperties.showhidesubheader == 'Show' && sectionproperties.subheaderposition == 'Full Width' && /*#__PURE__*/React.createElement(Subheader, {
|
|
19194
|
+
sectionpropertiesprops: sectionproperties,
|
|
19195
|
+
subheaderpropertiesprops: {
|
|
19196
|
+
subheaderpositionprops: 'Full Width',
|
|
19197
|
+
paddingLeftprops: '35px',
|
|
19198
|
+
paddingRightprops: '35px',
|
|
19199
|
+
subheadercontentpositionprops: 'center'
|
|
19200
|
+
},
|
|
19201
|
+
actions: actions
|
|
19202
|
+
})))), /*#__PURE__*/React.createElement(Headerresponsive, {
|
|
19152
19203
|
sectionpropertiesprops: sectionproperties,
|
|
19153
19204
|
actions: actions
|
|
19154
19205
|
}));
|
|
@@ -24080,6 +24131,8 @@ var MenuCard = function MenuCard(props) {
|
|
|
24080
24131
|
var setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
|
|
24081
24132
|
var AddtoCartContext = props.actions.AddtoCartContext;
|
|
24082
24133
|
props.actions.AddtoCartMutationContext;
|
|
24134
|
+
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
24135
|
+
var routingcountext = props.actions.routingcountext;
|
|
24083
24136
|
var NotificationManager = NotificationManager;
|
|
24084
24137
|
|
|
24085
24138
|
var updatequantity = function updatequantity(type) {
|
|
@@ -24564,8 +24617,8 @@ var ModernProductCard = function ModernProductCard(props) {
|
|
|
24564
24617
|
var setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
|
|
24565
24618
|
var AddtoCartContext = props.actions.AddtoCartContext;
|
|
24566
24619
|
props.actions.AddtoCartMutationContext;
|
|
24567
|
-
var StaticPagesLinksContext = props.StaticPagesLinksContext;
|
|
24568
|
-
var routingcountext = props.routingcountext;
|
|
24620
|
+
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
24621
|
+
var routingcountext = props.actions.routingcountext;
|
|
24569
24622
|
var NotificationManager = NotificationManager;
|
|
24570
24623
|
|
|
24571
24624
|
var updatequantity = function updatequantity(type) {
|
|
@@ -25285,8 +25338,8 @@ var Productcard_with_circularbg = function Productcard_with_circularbg(props) {
|
|
|
25285
25338
|
var setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
|
|
25286
25339
|
props.actions.AddtoCartContext;
|
|
25287
25340
|
props.actions.AddtoCartMutationContext;
|
|
25288
|
-
var StaticPagesLinksContext = props.StaticPagesLinksContext;
|
|
25289
|
-
var routingcountext = props.routingcountext;
|
|
25341
|
+
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
25342
|
+
var routingcountext = props.actions.routingcountext;
|
|
25290
25343
|
useEffect(function () {
|
|
25291
25344
|
if (props.srcfrom == 'addsectionform') {
|
|
25292
25345
|
var secpropobj = {};
|
|
@@ -25548,8 +25601,8 @@ var Productcard_with_circularhover = function Productcard_with_circularhover(pro
|
|
|
25548
25601
|
var setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
|
|
25549
25602
|
props.actions.AddtoCartContext;
|
|
25550
25603
|
props.actions.AddtoCartMutationContext;
|
|
25551
|
-
var StaticPagesLinksContext = props.StaticPagesLinksContext;
|
|
25552
|
-
var routingcountext = props.routingcountext;
|
|
25604
|
+
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
25605
|
+
var routingcountext = props.actions.routingcountext;
|
|
25553
25606
|
useEffect(function () {
|
|
25554
25607
|
if (props.srcfrom == 'addsectionform') {
|
|
25555
25608
|
var secpropobj = {};
|
|
@@ -26094,8 +26147,8 @@ var Productcard_with_variants = function Productcard_with_variants(props) {
|
|
|
26094
26147
|
var setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
|
|
26095
26148
|
props.actions.AddtoCartContext;
|
|
26096
26149
|
props.actions.AddtoCartMutationContext;
|
|
26097
|
-
var StaticPagesLinksContext = props.StaticPagesLinksContext;
|
|
26098
|
-
var routingcountext = props.routingcountext;
|
|
26150
|
+
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
26151
|
+
var routingcountext = props.actions.routingcountext;
|
|
26099
26152
|
useEffect(function () {
|
|
26100
26153
|
if (props.srcfrom == 'addsectionform') {
|
|
26101
26154
|
var secpropobj = {};
|
|
@@ -26381,8 +26434,8 @@ var Productcard6 = function Productcard6(props) {
|
|
|
26381
26434
|
var setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
|
|
26382
26435
|
props.actions.AddtoCartContext;
|
|
26383
26436
|
props.actions.AddtoCartMutationContext;
|
|
26384
|
-
var StaticPagesLinksContext = props.StaticPagesLinksContext;
|
|
26385
|
-
var routingcountext = props.routingcountext;
|
|
26437
|
+
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
26438
|
+
var routingcountext = props.actions.routingcountext;
|
|
26386
26439
|
useEffect(function () {
|
|
26387
26440
|
if (props.srcfrom == 'addsectionform') {
|
|
26388
26441
|
var secpropobj = {};
|
|
@@ -26627,8 +26680,8 @@ var Productcard7 = function Productcard7(props) {
|
|
|
26627
26680
|
var setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
|
|
26628
26681
|
props.actions.AddtoCartContext;
|
|
26629
26682
|
props.actions.AddtoCartMutationContext;
|
|
26630
|
-
var StaticPagesLinksContext = props.StaticPagesLinksContext;
|
|
26631
|
-
var routingcountext = props.routingcountext;
|
|
26683
|
+
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
26684
|
+
var routingcountext = props.actions.routingcountext;
|
|
26632
26685
|
useEffect(function () {
|
|
26633
26686
|
if (props.srcfrom == 'addsectionform') {
|
|
26634
26687
|
var secpropobj = {};
|
|
@@ -26894,8 +26947,8 @@ var Productcarddefault = function Productcarddefault(props) {
|
|
|
26894
26947
|
var setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
|
|
26895
26948
|
props.actions.AddtoCartContext;
|
|
26896
26949
|
props.actions.AddtoCartMutationContext;
|
|
26897
|
-
var StaticPagesLinksContext = props.StaticPagesLinksContext;
|
|
26898
|
-
var routingcountext = props.routingcountext;
|
|
26950
|
+
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
26951
|
+
var routingcountext = props.actions.routingcountext;
|
|
26899
26952
|
useEffect(function () {
|
|
26900
26953
|
if (props.srcfrom == 'addsectionform') {
|
|
26901
26954
|
var secpropobj = {};
|
|
@@ -27148,8 +27201,8 @@ var Productccard_with_imageontopleft = function Productccard_with_imageontopleft
|
|
|
27148
27201
|
var setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
|
|
27149
27202
|
props.actions.AddtoCartContext;
|
|
27150
27203
|
props.actions.AddtoCartMutationContext;
|
|
27151
|
-
var StaticPagesLinksContext = props.StaticPagesLinksContext;
|
|
27152
|
-
var routingcountext = props.routingcountext;
|
|
27204
|
+
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
27205
|
+
var routingcountext = props.actions.routingcountext;
|
|
27153
27206
|
useEffect(function () {
|
|
27154
27207
|
if (props.srcfrom == 'addsectionform') {
|
|
27155
27208
|
var secpropobj = {};
|
|
@@ -27430,8 +27483,8 @@ var Prouductcard_with_zoomhover = function Prouductcard_with_zoomhover(props) {
|
|
|
27430
27483
|
props.actions.setProductIdProdutInfoModalContext;
|
|
27431
27484
|
props.actions.AddtoCartContext;
|
|
27432
27485
|
props.actions.AddtoCartMutationContext;
|
|
27433
|
-
props.StaticPagesLinksContext;
|
|
27434
|
-
props.routingcountext;
|
|
27486
|
+
props.actions.StaticPagesLinksContext;
|
|
27487
|
+
props.actions.routingcountext;
|
|
27435
27488
|
useEffect(function () {
|
|
27436
27489
|
if (props.srcfrom == 'addsectionform') {
|
|
27437
27490
|
var secpropobj = {};
|
|
@@ -27566,8 +27619,8 @@ var Simplecategorycardwithtextbelow = function Simplecategorycardwithtextbelow(p
|
|
|
27566
27619
|
props.actions.setProductIdProdutInfoModalContext;
|
|
27567
27620
|
props.actions.AddtoCartContext;
|
|
27568
27621
|
props.actions.AddtoCartMutationContext;
|
|
27569
|
-
var StaticPagesLinksContext = props.StaticPagesLinksContext;
|
|
27570
|
-
var routingcountext = props.routingcountext;
|
|
27622
|
+
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
27623
|
+
var routingcountext = props.actions.routingcountext;
|
|
27571
27624
|
useEffect(function () {
|
|
27572
27625
|
if (props.srcfrom == 'addsectionform') {
|
|
27573
27626
|
var secpropobj = {};
|
|
@@ -27697,8 +27750,8 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
27697
27750
|
var setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
|
|
27698
27751
|
props.actions.AddtoCartContext;
|
|
27699
27752
|
props.actions.AddtoCartMutationContext;
|
|
27700
|
-
var StaticPagesLinksContext = props.StaticPagesLinksContext;
|
|
27701
|
-
var routingcountext = props.routingcountext;
|
|
27753
|
+
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
27754
|
+
var routingcountext = props.actions.routingcountext;
|
|
27702
27755
|
useEffect(function () {
|
|
27703
27756
|
if (props.srcfrom == 'addsectionform') {
|
|
27704
27757
|
var secpropobj = {};
|
|
@@ -27977,8 +28030,8 @@ var StylishProductCard = function StylishProductCard(props) {
|
|
|
27977
28030
|
var setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
|
|
27978
28031
|
props.actions.AddtoCartContext;
|
|
27979
28032
|
props.actions.AddtoCartMutationContext;
|
|
27980
|
-
var StaticPagesLinksContext = props.StaticPagesLinksContext;
|
|
27981
|
-
var routingcountext = props.routingcountext;
|
|
28033
|
+
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
28034
|
+
var routingcountext = props.actions.routingcountext;
|
|
27982
28035
|
useEffect(function () {
|
|
27983
28036
|
if (props.srcfrom == 'addsectionform') {
|
|
27984
28037
|
var secpropobj = {};
|
|
@@ -28232,6 +28285,8 @@ var returnLibrary = function returnLibrary() {
|
|
|
28232
28285
|
return {
|
|
28233
28286
|
LanguageContext: LanguageContext$1,
|
|
28234
28287
|
LanguageProvider: LanguageProvider,
|
|
28288
|
+
ProductsCardsSectionContext: ProductsCardsSectionContext,
|
|
28289
|
+
ProductsCardsSectionContext_Provider: ProductsCardsSectionContext_Provider,
|
|
28235
28290
|
AwesomeButton: AwesomeButton,
|
|
28236
28291
|
Checkout: Checkout,
|
|
28237
28292
|
Signup: Signup,
|