tabexseriescomponents 0.0.55 → 0.0.58

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 CHANGED
@@ -2221,7 +2221,7 @@ function ownKeys$19(object, enumerableOnly) { var keys = Object.keys(object); if
2221
2221
  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
2222
 
2223
2223
  var Ordershistory = function Ordershistory(props) {
2224
- var _bgimagesarray$, _bgimagesarray$2;
2224
+ var _props$actions2, _bgimagesarray$, _bgimagesarray$2;
2225
2225
 
2226
2226
  // const { lang, langdetect } = useContext(LanguageContext);
2227
2227
  // const { routingcountext } = useContext(TemplateRoutingContext);
@@ -2240,7 +2240,7 @@ var Ordershistory = function Ordershistory(props) {
2240
2240
  var fetchorderhistoryQueryContext = props.actions.fetchorderhistoryQueryContext;
2241
2241
  var navigationstyle = props.actions.navigationstyle;
2242
2242
  props.actions.pageindexcontext;
2243
- var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
2243
+ props.actions.StatePagePropertiesContext;
2244
2244
  props.actions.TabexSectionsComponentsContext;
2245
2245
  var templatepropcontext = props.actions.templatepropcontext;
2246
2246
  var authdetailsContext = props.actions.authdetailsContext;
@@ -2287,14 +2287,15 @@ var Ordershistory = function Ordershistory(props) {
2287
2287
  }
2288
2288
  }, []);
2289
2289
  React.useEffect(function () {
2290
- if (Object.keys(StatePagePropertiesContext).length != 0) {
2291
- var secpropobj = {};
2292
- StatePagePropertiesContext.pageobj.pageproperties.forEach(function (arrayItem, arrayindex) {
2293
- secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
2294
- });
2295
- setsectionproperties(_objectSpread$19({}, secpropobj));
2296
- }
2297
- }, [StatePagePropertiesContext]);
2290
+ var _props$actions, _props$actions$StateP, _props$actions$StateP2, _props$actions$StateP3;
2291
+
2292
+ // if (Object.keys(StatePagePropertiesContext).length != 0) {
2293
+ var secpropobj = {};
2294
+ 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) {
2295
+ secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
2296
+ });
2297
+ setsectionproperties(_objectSpread$19({}, secpropobj)); // }
2298
+ }, [props === null || props === void 0 ? void 0 : (_props$actions2 = props.actions) === null || _props$actions2 === void 0 ? void 0 : _props$actions2.StatePagePropertiesContext]);
2298
2299
  var orderhistory_cssstyles = {
2299
2300
  sectiontitlespan: glamor.css({
2300
2301
  ':after': {
@@ -3700,8 +3701,8 @@ var Checkout = function Checkout(props) {
3700
3701
  var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
3701
3702
  var routingcountext = props.actions.routingcountext;
3702
3703
  var ApplyPromoCodeMutationContext = props.actions.ApplyPromoCodeMutationContext;
3703
- var CurrentSrcTypeContext = props.actions.CurrentSrcTypeContext;
3704
- var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
3704
+ props.actions.CurrentSrcTypeContext;
3705
+ props.actions.StatePagePropertiesContext;
3705
3706
  var templatepropcontext = props.actions.templatepropcontext;
3706
3707
  var fetchcustomercartQueryContext = props.actions.fetchcustomercartQueryContext;
3707
3708
  var FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
@@ -3739,28 +3740,22 @@ var Checkout = function Checkout(props) {
3739
3740
  setCurrentPageId(cartindex);
3740
3741
  }
3741
3742
  }, []);
3743
+ React.useEffect(function () {// var secpropobj = {};
3744
+ // templatepropcontext?.pagesnprop[CurrentPageId]?.pageproperties?.forEach(function (arrayItem, arrayindex) {
3745
+ // secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
3746
+ // });
3747
+ // setsectionproperties({ ...secpropobj });
3748
+ }, [CurrentPageId, props.actions.templatepropcontext]);
3742
3749
  React.useEffect(function () {
3743
- var _templatepropcontext$2, _templatepropcontext$3;
3750
+ var _props$actions, _props$actions$StateP, _props$actions$StateP2, _props$actions$StateP3;
3744
3751
 
3752
+ // if (rops?.actions?.StatePagePropertiesContext != null && rops?.actions?.StatePagePropertiesContext != undefined && StatePagePropertiesContext.length != 0) {
3745
3753
  var secpropobj = {};
3746
- templatepropcontext === null || templatepropcontext === void 0 ? void 0 : (_templatepropcontext$2 = templatepropcontext.pagesnprop[CurrentPageId]) === null || _templatepropcontext$2 === void 0 ? void 0 : (_templatepropcontext$3 = _templatepropcontext$2.pageproperties) === null || _templatepropcontext$3 === void 0 ? void 0 : _templatepropcontext$3.forEach(function (arrayItem, arrayindex) {
3754
+ 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
3755
  secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
3748
3756
  });
3749
- setsectionproperties(_objectSpread$16({}, secpropobj));
3750
- }, [CurrentPageId]);
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]);
3757
+ setsectionproperties(_objectSpread$16({}, secpropobj)); // }
3758
+ }, [props.actions.StatePagePropertiesContext]);
3764
3759
  React.useEffect(function () {
3765
3760
  var _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4, _fetchcustomercartQue5, _fetchcustomercartQue6, _fetchcustomercartQue9, _fetchcustomercartQue10, _fetchcustomercartQue11, _fetchcustomercartQue12, _fetchcustomercartQue13, _fetchcustomercartQue14;
3766
3761
 
@@ -5631,21 +5626,20 @@ var AccountInformation = function AccountInformation(props) {
5631
5626
  var navigationstyle = props.actions.navigationstyle;
5632
5627
  var actions = props.actions;
5633
5628
  React.useEffect(function () {
5634
- if (Object.keys(StatePagePropertiesContext).length != 0) {
5635
- var _StatePagePropertiesC, _StatePagePropertiesC2;
5629
+ var _props$actions, _props$actions$StateP, _props$actions$StateP2, _props$actions$StateP3;
5636
5630
 
5637
- var secpropobj = {};
5638
- 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) {
5639
- secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
5640
- });
5641
- setsectionproperties(_objectSpread$13({}, secpropobj));
5642
- }
5643
- }, [StatePagePropertiesContext]);
5631
+ // if (Object.keys(props?.actions?.StatePagePropertiesContext).length != 0) {
5632
+ var secpropobj = {};
5633
+ 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) {
5634
+ secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
5635
+ });
5636
+ setsectionproperties(_objectSpread$13({}, secpropobj)); // }
5637
+ }, [props.actions.StatePagePropertiesContext]);
5644
5638
 
5645
5639
  var _useState = React.useState(''),
5646
- _useState2 = _slicedToArray__default["default"](_useState, 2),
5647
- CurrentPageId = _useState2[0],
5648
- setCurrentPageId = _useState2[1];
5640
+ _useState2 = _slicedToArray__default["default"](_useState, 2);
5641
+ _useState2[0];
5642
+ var setCurrentPageId = _useState2[1];
5649
5643
 
5650
5644
  var _useState3 = React.useState(''),
5651
5645
  _useState4 = _slicedToArray__default["default"](_useState3, 2),
@@ -5660,16 +5654,14 @@ var AccountInformation = function AccountInformation(props) {
5660
5654
  if (cartindex >= 0) {
5661
5655
  setCurrentPageId(cartindex);
5662
5656
  }
5663
- }, []);
5664
- React.useEffect(function () {
5665
- var _templatepropcontext$, _templatepropcontext$2;
5657
+ }, []); // useEffect(() => {
5658
+ // var secpropobj = {};
5659
+ // templatepropcontext?.pagesnprop[CurrentPageId]?.pageproperties?.forEach(function (arrayItem, arrayindex) {
5660
+ // secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
5661
+ // });
5662
+ // setsectionproperties({ ...secpropobj });
5663
+ // }, [CurrentPageId, templatepropcontext]);
5666
5664
 
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
5665
  var accountinfo_cssstyles = {
5674
5666
  sectiontitlespan: glamor.css({
5675
5667
  ':after': {
@@ -11366,7 +11358,7 @@ function ownKeys$I(object, enumerableOnly) { var keys = Object.keys(object); if
11366
11358
  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
11359
 
11368
11360
  var Subheader = function Subheader(props) {
11369
- var _props$subheaderprope, _props$subheaderprope2, _props$subheaderprope3, _props$subheaderprope9, _props$subheaderprope10;
11361
+ var _props$subheaderprope, _props$subheaderprope2, _templatepropcontext$, _props$subheaderprope9, _props$subheaderprope10;
11370
11362
 
11371
11363
  // const { lang, setlang, langdetect } = useContext(LanguageContext);
11372
11364
  // const { FetchQueriesEngineContext, setFetchQueriesEngineContext, fetchCategoriesQueryContext } = useContext(FetchingContext);
@@ -11404,7 +11396,7 @@ var Subheader = function Subheader(props) {
11404
11396
  }, []);
11405
11397
  React.useEffect(function () {
11406
11398
  if (props.sectionpropertiesprops != undefined) {
11407
- setsectionproperties(_objectSpread$I({}, props.sectionpropertiesprops));
11399
+ setsectionproperties(_objectSpread$I({}, props === null || props === void 0 ? void 0 : props.sectionpropertiesprops));
11408
11400
  }
11409
11401
  }, [props.sectionpropertiesprops]);
11410
11402
  var header_cssstyles = {
@@ -11448,78 +11440,84 @@ var Subheader = function Subheader(props) {
11448
11440
  })
11449
11441
  };
11450
11442
  return /*#__PURE__*/React__default["default"].createElement("div", {
11451
- className: ((_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 ',
11443
+ "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
11444
  style: {
11453
11445
  background: sectionproperties.subheaderbg,
11454
11446
  zIndex: 200,
11455
11447
  flex: 1
11456
11448
  }
11457
11449
  }, sectionproperties != undefined && sectionproperties.length != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
11458
- className: "".concat(headerstyles$8.sub_container) + ' w-100 p-md-0 '
11450
+ "class": "".concat(headerstyles$8.sub_container) + ' w-100 p-md-0 '
11459
11451
  }, fetchCategoriesQueryContext.isSuccess && fetchCategoriesQueryContext.data.data.status && /*#__PURE__*/React__default["default"].createElement("div", {
11460
- className: " ".concat(headerstyles$8.subheader) + ' row w-100 m-0 d-flex flex-row align-items-center w-sm-100 ',
11452
+ "class": " ".concat(headerstyles$8.subheader) + ' row w-100 m-0 d-flex flex-row align-items-center w-sm-100 ',
11461
11453
  style: {
11462
11454
  position: 'relative'
11463
11455
  }
11464
- }, /*#__PURE__*/React__default["default"].createElement("div", {
11465
- className: "ml-auto mr-auto",
11456
+ }, (props === null || props === void 0 ? void 0 : props.subheaderpositionprops) == 'Full Width' && /*#__PURE__*/React__default["default"].createElement("div", {
11457
+ "class": "ml-auto mr-auto",
11466
11458
  style: {
11467
11459
  background: sectionproperties.upperseparatorbgcolor,
11468
11460
  width: sectionproperties.upperseparatorwidth + '%',
11469
11461
  height: sectionproperties.upperseparatorheight + 'px'
11470
11462
  }
11471
11463
  }), /*#__PURE__*/React__default["default"].createElement("div", {
11472
- className: "col-lg-12 d-flex flex-column align-items-center justify-content-center pl-0 pr-0",
11464
+ "class": "col-lg-12 m-auto d-flex flex-column align-items-center justify-content-center ",
11473
11465
  style: {
11474
11466
  borderBottom: sectionproperties.separator_borderwidth + 'px solid ' + sectionproperties.separator_bgcolor,
11475
11467
  paddingTop: sectionproperties.subheader_margintop + 'px',
11476
11468
  paddingBottom: sectionproperties.subheader_marginbottom + 'px'
11477
11469
  }
11478
11470
  }, /*#__PURE__*/React__default["default"].createElement("div", {
11479
- className: " ".concat(headerstyles$8.nav__item) + ' d-flex flex-row align-items-center ',
11471
+ "class": "".concat(headerstyles$8.nav__item) + ' scrollhorizontal flex-row align-items-center ',
11480
11472
  style: {
11481
11473
  zIndex: 1000,
11482
- justifyContent: (_props$subheaderprope2 = props.subheaderpropertiesprops) === null || _props$subheaderprope2 === void 0 ? void 0 : _props$subheaderprope2.subheadercontentpositionprops
11474
+ textAlign: langdetect == 'en' ? 'left' : 'right' // justifyContent: props.subheaderpropertiesprops?.subheadercontentpositionprops,
11475
+
11483
11476
  }
11484
- }, ((_props$subheaderprope3 = props.subheaderpropertiesprops) === null || _props$subheaderprope3 === void 0 ? void 0 : _props$subheaderprope3.subheaderpositionprops) == 'in nav' && templatepropcontext.pagesnprop.map(function (item, index) {
11477
+ }, (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
11478
  if (item.isnavigation == 1 && item.isactive == 1) {
11486
- var _props$subheaderprope4, _props$subheaderprope5;
11479
+ var _props$subheaderprope3, _props$subheaderprope4, _props$subheaderprope5, _props$subheaderprope6;
11487
11480
 
11488
11481
  return /*#__PURE__*/React__default["default"].createElement("div", {
11489
11482
  onClick: function onClick() {
11490
11483
  history.push(item.navigationroute);
11484
+ },
11485
+ "class": "scrollhorizontalcard",
11486
+ style: {
11487
+ 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,
11488
+ 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
11489
  }
11492
11490
  }, /*#__PURE__*/React__default["default"].createElement("p", {
11493
- className: "".concat(headerstyles$8.link, " ").concat(header_cssstyles.subheader_category) + ' mb-0 p-0 ml-md-3 mr-md-3 ',
11491
+ "class": "".concat(headerstyles$8.link, " ").concat(header_cssstyles.subheader_category) + ' mb-0 p-0 ml-md-3 mr-md-3 ',
11494
11492
  onClick: function onClick() {
11495
- templatepropcontext.pagesnprop.pages.forEach(function (pageitem, pageindex) {
11493
+ fetch_inst_tabex_websitetemplatesQueryContext.data.data.template.pages.forEach(function (pageitem, pageindex) {
11496
11494
  pageitem.isselected = false;
11497
11495
  });
11498
- templatepropcontext.pagesnprop.pages[index].isselected = true;
11496
+ fetch_inst_tabex_websitetemplatesQueryContext.data.data.template.pages[index].isselected = true;
11499
11497
  },
11500
11498
  style: {
11501
- marginLeft: langdetect == 'en' ? 0 : (_props$subheaderprope4 = props.subheaderpropertiesprops) === null || _props$subheaderprope4 === void 0 ? void 0 : _props$subheaderprope4.paddingLeftprops,
11502
- marginRight: langdetect == 'en' ? (_props$subheaderprope5 = props.subheaderpropertiesprops) === null || _props$subheaderprope5 === void 0 ? void 0 : _props$subheaderprope5.paddingRightprops : 0
11499
+ 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,
11500
+ 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
11501
  }
11504
11502
  }, langdetect == 'en' ? item.pagename : item.pagename_ar));
11505
11503
  }
11506
- }), fetchCategoriesQueryContext.data.data.categories.map(function (item, index) {
11507
- var _props$subheaderprope6, _props$subheaderprope7, _props$subheaderprope8;
11504
+ })), fetchCategoriesQueryContext.data.data.categories.map(function (item, index) {
11505
+ var _props$subheaderprope7, _props$subheaderprope8;
11508
11506
 
11509
11507
  return /*#__PURE__*/React__default["default"].createElement("p", {
11510
- className: "".concat(headerstyles$8.link, " ").concat(header_cssstyles.subheader_category) + ' mb-0 p-0 ml-md-3 mr-md-3 ',
11508
+ "class": "".concat(headerstyles$8.link, " ").concat(header_cssstyles.subheader_category) + ' mb-0 p-0 ml-md-3 mr-md-3 scrollhorizontalcard ',
11511
11509
  onClick: function onClick() {},
11512
11510
  onMouseEnter: function onMouseEnter() {
11513
11511
  setshowdownheadermenu(true);
11514
11512
  setChoosenindex(index);
11515
11513
  },
11516
11514
  style: {
11517
- marginLeft: ((_props$subheaderprope6 = props.subheaderpropertiesprops) === null || _props$subheaderprope6 === void 0 ? void 0 : _props$subheaderprope6.subheaderpositionprops) == 'in nav' ? 0 : (_props$subheaderprope7 = props.subheaderpropertiesprops) === null || _props$subheaderprope7 === void 0 ? void 0 : _props$subheaderprope7.paddingLeftprops,
11518
- marginRight: (_props$subheaderprope8 = props.subheaderpropertiesprops) === null || _props$subheaderprope8 === void 0 ? void 0 : _props$subheaderprope8.paddingRightprops
11515
+ 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,
11516
+ 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
11517
  }
11520
11518
  }, langdetect == 'en' ? item.title_en : item.title_ar);
11521
11519
  }))), Choosenindex.length != 0 && fetchCategoriesQueryContext.data.data.categories[Choosenindex].parentcolletions.length != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
11522
- className: "".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 ',
11520
+ "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
11521
  onMouseLeave: function onMouseLeave() {
11524
11522
  setshowdownheadermenu(false);
11525
11523
  },
@@ -11529,41 +11527,47 @@ var Subheader = function Subheader(props) {
11529
11527
  top: ((_props$subheaderprope10 = props.subheaderpropertiesprops) === null || _props$subheaderprope10 === void 0 ? void 0 : _props$subheaderprope10.subheaderpositionprops) == 'in nav' ? 20 : ''
11530
11528
  }
11531
11529
  }, /*#__PURE__*/React__default["default"].createElement("div", {
11532
- className: "row m-0 w-100 d-flex p-3"
11530
+ "class": "row m-0 w-100 d-flex p-3"
11533
11531
  }, fetchCategoriesQueryContext.data.data.categories[Choosenindex].parentcolletions.length == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
11534
- className: "col-lg-12 d-flex align-items-center justify-content-center text-light flex-column h-100 pt-5 pb-5"
11532
+ "class": "col-lg-12 d-flex align-items-center justify-content-center text-light flex-column h-100 pt-5 pb-5"
11535
11533
  }, /*#__PURE__*/React__default["default"].createElement(md.MdOutlineLayersClear, {
11536
11534
  size: 30
11537
11535
  }), /*#__PURE__*/React__default["default"].createElement("p", {
11538
- className: "font-16 font-weight-500 m-0 p-0"
11536
+ "class": "font-16 font-weight-500 m-0 p-0"
11539
11537
  }, langdetect == 'en' ? 'No collections' : 'لا توجد مجموعات')), fetchCategoriesQueryContext.data.data.categories[Choosenindex].parentcolletions.map(function (item, index) {
11540
11538
  return /*#__PURE__*/React__default["default"].createElement("div", {
11541
- className: "col-lg-2 col-md-6 col-sm-12 mb-md-4 p-0",
11539
+ "class": "col-lg-2 col-md-6 col-sm-12 mb-md-4 p-0",
11542
11540
  style: {
11543
11541
  cursor: 'pointer'
11544
11542
  }
11545
11543
  }, /*#__PURE__*/React__default["default"].createElement("div", {
11546
- className: "row w-100 m-0 d-flex flex-column justify-content-center mb-2"
11544
+ "class": "row w-100 m-0 d-flex flex-column justify-content-center mb-2"
11547
11545
  }, /*#__PURE__*/React__default["default"].createElement("div", {
11548
- className: "col-lg-12 p-0 mb-3",
11546
+ "class": "col-lg-12 p-0 mb-3",
11549
11547
  onClick: function onClick() {
11550
11548
  routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.parentcollectionid);
11551
11549
  }
11552
11550
  }, /*#__PURE__*/React__default["default"].createElement("p", {
11553
- className: "".concat(header_cssstyles.parentcollection) + ' wordbreak m-0 p-0 '
11551
+ "class": "".concat(header_cssstyles.parentcollection) + ' wordbreak m-0 p-0 ',
11552
+ style: {
11553
+ textAlign: langdetect == 'en' ? 'left' : 'right'
11554
+ }
11554
11555
  }, langdetect == 'en' ? item.title_en : item.title_ar)), item.collections.map(function (item, index) {
11555
11556
  return /*#__PURE__*/React__default["default"].createElement("div", {
11556
- className: "col-lg-12 p-0 mb-2",
11557
+ "class": "col-lg-12 p-0 mb-2",
11557
11558
  onClick: function onClick() {
11558
11559
  routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.collectionid);
11559
11560
  }
11560
11561
  }, /*#__PURE__*/React__default["default"].createElement("p", {
11561
- className: "".concat(header_cssstyles.subheader_collectiontitle) + ' wordbreak m-0 p-0 '
11562
+ "class": "".concat(header_cssstyles.subheader_collectiontitle) + ' wordbreak m-0 p-0 ',
11563
+ style: {
11564
+ textAlign: langdetect == 'en' ? 'left' : 'right'
11565
+ }
11562
11566
  }, langdetect == 'en' ? item.title_en : item.title_ar));
11563
11567
  }), index != item.collections.length != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
11564
- className: "col-lg-12 p-0 d-none d-sm-block"
11568
+ "class": "col-lg-12 p-0 d-none d-sm-block"
11565
11569
  }, /*#__PURE__*/React__default["default"].createElement("hr", {
11566
- className: "mt-3 mb-0"
11570
+ "class": "mt-3 mb-0"
11567
11571
  }))));
11568
11572
  }))))));
11569
11573
  };
@@ -24140,6 +24144,8 @@ var MenuCard = function MenuCard(props) {
24140
24144
  var setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
24141
24145
  var AddtoCartContext = props.actions.AddtoCartContext;
24142
24146
  props.actions.AddtoCartMutationContext;
24147
+ var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
24148
+ var routingcountext = props.actions.routingcountext;
24143
24149
  var NotificationManager = NotificationManager;
24144
24150
 
24145
24151
  var updatequantity = function updatequantity(type) {
@@ -24624,8 +24630,8 @@ var ModernProductCard = function ModernProductCard(props) {
24624
24630
  var setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
24625
24631
  var AddtoCartContext = props.actions.AddtoCartContext;
24626
24632
  props.actions.AddtoCartMutationContext;
24627
- var StaticPagesLinksContext = props.StaticPagesLinksContext;
24628
- var routingcountext = props.routingcountext;
24633
+ var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
24634
+ var routingcountext = props.actions.routingcountext;
24629
24635
  var NotificationManager = NotificationManager;
24630
24636
 
24631
24637
  var updatequantity = function updatequantity(type) {
@@ -25345,8 +25351,8 @@ var Productcard_with_circularbg = function Productcard_with_circularbg(props) {
25345
25351
  var setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
25346
25352
  props.actions.AddtoCartContext;
25347
25353
  props.actions.AddtoCartMutationContext;
25348
- var StaticPagesLinksContext = props.StaticPagesLinksContext;
25349
- var routingcountext = props.routingcountext;
25354
+ var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
25355
+ var routingcountext = props.actions.routingcountext;
25350
25356
  React.useEffect(function () {
25351
25357
  if (props.srcfrom == 'addsectionform') {
25352
25358
  var secpropobj = {};
@@ -25608,8 +25614,8 @@ var Productcard_with_circularhover = function Productcard_with_circularhover(pro
25608
25614
  var setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
25609
25615
  props.actions.AddtoCartContext;
25610
25616
  props.actions.AddtoCartMutationContext;
25611
- var StaticPagesLinksContext = props.StaticPagesLinksContext;
25612
- var routingcountext = props.routingcountext;
25617
+ var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
25618
+ var routingcountext = props.actions.routingcountext;
25613
25619
  React.useEffect(function () {
25614
25620
  if (props.srcfrom == 'addsectionform') {
25615
25621
  var secpropobj = {};
@@ -26154,8 +26160,8 @@ var Productcard_with_variants = function Productcard_with_variants(props) {
26154
26160
  var setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
26155
26161
  props.actions.AddtoCartContext;
26156
26162
  props.actions.AddtoCartMutationContext;
26157
- var StaticPagesLinksContext = props.StaticPagesLinksContext;
26158
- var routingcountext = props.routingcountext;
26163
+ var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
26164
+ var routingcountext = props.actions.routingcountext;
26159
26165
  React.useEffect(function () {
26160
26166
  if (props.srcfrom == 'addsectionform') {
26161
26167
  var secpropobj = {};
@@ -26441,8 +26447,8 @@ var Productcard6 = function Productcard6(props) {
26441
26447
  var setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
26442
26448
  props.actions.AddtoCartContext;
26443
26449
  props.actions.AddtoCartMutationContext;
26444
- var StaticPagesLinksContext = props.StaticPagesLinksContext;
26445
- var routingcountext = props.routingcountext;
26450
+ var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
26451
+ var routingcountext = props.actions.routingcountext;
26446
26452
  React.useEffect(function () {
26447
26453
  if (props.srcfrom == 'addsectionform') {
26448
26454
  var secpropobj = {};
@@ -26687,8 +26693,8 @@ var Productcard7 = function Productcard7(props) {
26687
26693
  var setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
26688
26694
  props.actions.AddtoCartContext;
26689
26695
  props.actions.AddtoCartMutationContext;
26690
- var StaticPagesLinksContext = props.StaticPagesLinksContext;
26691
- var routingcountext = props.routingcountext;
26696
+ var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
26697
+ var routingcountext = props.actions.routingcountext;
26692
26698
  React.useEffect(function () {
26693
26699
  if (props.srcfrom == 'addsectionform') {
26694
26700
  var secpropobj = {};
@@ -26954,8 +26960,8 @@ var Productcarddefault = function Productcarddefault(props) {
26954
26960
  var setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
26955
26961
  props.actions.AddtoCartContext;
26956
26962
  props.actions.AddtoCartMutationContext;
26957
- var StaticPagesLinksContext = props.StaticPagesLinksContext;
26958
- var routingcountext = props.routingcountext;
26963
+ var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
26964
+ var routingcountext = props.actions.routingcountext;
26959
26965
  React.useEffect(function () {
26960
26966
  if (props.srcfrom == 'addsectionform') {
26961
26967
  var secpropobj = {};
@@ -27208,8 +27214,8 @@ var Productccard_with_imageontopleft = function Productccard_with_imageontopleft
27208
27214
  var setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
27209
27215
  props.actions.AddtoCartContext;
27210
27216
  props.actions.AddtoCartMutationContext;
27211
- var StaticPagesLinksContext = props.StaticPagesLinksContext;
27212
- var routingcountext = props.routingcountext;
27217
+ var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
27218
+ var routingcountext = props.actions.routingcountext;
27213
27219
  React.useEffect(function () {
27214
27220
  if (props.srcfrom == 'addsectionform') {
27215
27221
  var secpropobj = {};
@@ -27490,8 +27496,8 @@ var Prouductcard_with_zoomhover = function Prouductcard_with_zoomhover(props) {
27490
27496
  props.actions.setProductIdProdutInfoModalContext;
27491
27497
  props.actions.AddtoCartContext;
27492
27498
  props.actions.AddtoCartMutationContext;
27493
- props.StaticPagesLinksContext;
27494
- props.routingcountext;
27499
+ props.actions.StaticPagesLinksContext;
27500
+ props.actions.routingcountext;
27495
27501
  React.useEffect(function () {
27496
27502
  if (props.srcfrom == 'addsectionform') {
27497
27503
  var secpropobj = {};
@@ -27626,8 +27632,8 @@ var Simplecategorycardwithtextbelow = function Simplecategorycardwithtextbelow(p
27626
27632
  props.actions.setProductIdProdutInfoModalContext;
27627
27633
  props.actions.AddtoCartContext;
27628
27634
  props.actions.AddtoCartMutationContext;
27629
- var StaticPagesLinksContext = props.StaticPagesLinksContext;
27630
- var routingcountext = props.routingcountext;
27635
+ var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
27636
+ var routingcountext = props.actions.routingcountext;
27631
27637
  React.useEffect(function () {
27632
27638
  if (props.srcfrom == 'addsectionform') {
27633
27639
  var secpropobj = {};
@@ -27757,8 +27763,8 @@ var Simpleproductcard = function Simpleproductcard(props) {
27757
27763
  var setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
27758
27764
  props.actions.AddtoCartContext;
27759
27765
  props.actions.AddtoCartMutationContext;
27760
- var StaticPagesLinksContext = props.StaticPagesLinksContext;
27761
- var routingcountext = props.routingcountext;
27766
+ var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
27767
+ var routingcountext = props.actions.routingcountext;
27762
27768
  React.useEffect(function () {
27763
27769
  if (props.srcfrom == 'addsectionform') {
27764
27770
  var secpropobj = {};
@@ -28037,8 +28043,8 @@ var StylishProductCard = function StylishProductCard(props) {
28037
28043
  var setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
28038
28044
  props.actions.AddtoCartContext;
28039
28045
  props.actions.AddtoCartMutationContext;
28040
- var StaticPagesLinksContext = props.StaticPagesLinksContext;
28041
- var routingcountext = props.routingcountext;
28046
+ var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
28047
+ var routingcountext = props.actions.routingcountext;
28042
28048
  React.useEffect(function () {
28043
28049
  if (props.srcfrom == 'addsectionform') {
28044
28050
  var secpropobj = {};