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.umd.js CHANGED
@@ -335,6 +335,35 @@
335
335
  }(React.Component);
336
336
  LanguageContext$1.Consumer;
337
337
 
338
+ var ProductsCardsSectionContext = /*#__PURE__*/React__default["default"].createContext();
339
+ var ProductsCardsSectionContext_Provider = function ProductsCardsSectionContext_Provider(props) {
340
+ // let history = useHistory();
341
+ var _useState = React.useState(''),
342
+ _useState2 = _slicedToArray__default["default"](_useState, 2),
343
+ ParentCollectionsForCollectionQueryArrContext = _useState2[0],
344
+ setParentCollectionsForCollectionQueryArrContext = _useState2[1];
345
+
346
+ var _useState3 = React.useState({
347
+ Isfiltercollections: 0,
348
+ isfilter: 0,
349
+ ProductFetchingType: '',
350
+ collections: [],
351
+ FilterOptions: []
352
+ }),
353
+ _useState4 = _slicedToArray__default["default"](_useState3, 2),
354
+ ProductFilterObjContext = _useState4[0],
355
+ setProductFilterObjContext = _useState4[1];
356
+
357
+ return /*#__PURE__*/React__default["default"].createElement(ProductsCardsSectionContext.Provider, {
358
+ value: {
359
+ ProductFilterObjContext: ProductFilterObjContext,
360
+ setProductFilterObjContext: setProductFilterObjContext,
361
+ ParentCollectionsForCollectionQueryArrContext: ParentCollectionsForCollectionQueryArrContext,
362
+ setParentCollectionsForCollectionQueryArrContext: setParentCollectionsForCollectionQueryArrContext
363
+ }
364
+ }, props.children);
365
+ };
366
+
338
367
  function styleInject(css, ref) {
339
368
  if ( ref === void 0 ) ref = {};
340
369
  var insertAt = ref.insertAt;
@@ -2161,7 +2190,7 @@
2161
2190
  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; }
2162
2191
 
2163
2192
  var Ordershistory = function Ordershistory(props) {
2164
- var _bgimagesarray$, _bgimagesarray$2;
2193
+ var _props$actions2, _bgimagesarray$, _bgimagesarray$2;
2165
2194
 
2166
2195
  // const { lang, langdetect } = useContext(LanguageContext);
2167
2196
  // const { routingcountext } = useContext(TemplateRoutingContext);
@@ -2180,7 +2209,7 @@
2180
2209
  var fetchorderhistoryQueryContext = props.actions.fetchorderhistoryQueryContext;
2181
2210
  var navigationstyle = props.actions.navigationstyle;
2182
2211
  props.actions.pageindexcontext;
2183
- var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
2212
+ props.actions.StatePagePropertiesContext;
2184
2213
  props.actions.TabexSectionsComponentsContext;
2185
2214
  var templatepropcontext = props.actions.templatepropcontext;
2186
2215
  var authdetailsContext = props.actions.authdetailsContext;
@@ -2227,14 +2256,15 @@
2227
2256
  }
2228
2257
  }, []);
2229
2258
  React.useEffect(function () {
2230
- if (Object.keys(StatePagePropertiesContext).length != 0) {
2231
- var secpropobj = {};
2232
- StatePagePropertiesContext.pageobj.pageproperties.forEach(function (arrayItem, arrayindex) {
2233
- secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
2234
- });
2235
- setsectionproperties(_objectSpread$19({}, secpropobj));
2236
- }
2237
- }, [StatePagePropertiesContext]);
2259
+ var _props$actions, _props$actions$StateP, _props$actions$StateP2, _props$actions$StateP3;
2260
+
2261
+ // if (Object.keys(StatePagePropertiesContext).length != 0) {
2262
+ var secpropobj = {};
2263
+ 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) {
2264
+ secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
2265
+ });
2266
+ setsectionproperties(_objectSpread$19({}, secpropobj)); // }
2267
+ }, [props === null || props === void 0 ? void 0 : (_props$actions2 = props.actions) === null || _props$actions2 === void 0 ? void 0 : _props$actions2.StatePagePropertiesContext]);
2238
2268
  var orderhistory_cssstyles = {
2239
2269
  sectiontitlespan: glamor.css({
2240
2270
  ':after': {
@@ -3640,8 +3670,8 @@
3640
3670
  var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
3641
3671
  var routingcountext = props.actions.routingcountext;
3642
3672
  var ApplyPromoCodeMutationContext = props.actions.ApplyPromoCodeMutationContext;
3643
- var CurrentSrcTypeContext = props.actions.CurrentSrcTypeContext;
3644
- var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
3673
+ props.actions.CurrentSrcTypeContext;
3674
+ props.actions.StatePagePropertiesContext;
3645
3675
  var templatepropcontext = props.actions.templatepropcontext;
3646
3676
  var fetchcustomercartQueryContext = props.actions.fetchcustomercartQueryContext;
3647
3677
  var FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
@@ -3679,28 +3709,22 @@
3679
3709
  setCurrentPageId(cartindex);
3680
3710
  }
3681
3711
  }, []);
3712
+ React.useEffect(function () {// var secpropobj = {};
3713
+ // templatepropcontext?.pagesnprop[CurrentPageId]?.pageproperties?.forEach(function (arrayItem, arrayindex) {
3714
+ // secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
3715
+ // });
3716
+ // setsectionproperties({ ...secpropobj });
3717
+ }, [CurrentPageId, props.actions.templatepropcontext]);
3682
3718
  React.useEffect(function () {
3683
- var _templatepropcontext$2, _templatepropcontext$3;
3719
+ var _props$actions, _props$actions$StateP, _props$actions$StateP2, _props$actions$StateP3;
3684
3720
 
3721
+ // if (rops?.actions?.StatePagePropertiesContext != null && rops?.actions?.StatePagePropertiesContext != undefined && StatePagePropertiesContext.length != 0) {
3685
3722
  var secpropobj = {};
3686
- 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) {
3723
+ 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) {
3687
3724
  secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
3688
3725
  });
3689
- setsectionproperties(_objectSpread$16({}, secpropobj));
3690
- }, [CurrentPageId]);
3691
- React.useEffect(function () {
3692
- if (CurrentSrcTypeContext == 'workplace') {
3693
- if (StatePagePropertiesContext != null && StatePagePropertiesContext != undefined && StatePagePropertiesContext.length != 0) {
3694
- var _StatePagePropertiesC, _StatePagePropertiesC2;
3695
-
3696
- var secpropobj = {};
3697
- 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) {
3698
- secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
3699
- });
3700
- setsectionproperties(_objectSpread$16({}, secpropobj));
3701
- }
3702
- }
3703
- }, [StatePagePropertiesContext]);
3726
+ setsectionproperties(_objectSpread$16({}, secpropobj)); // }
3727
+ }, [props.actions.StatePagePropertiesContext]);
3704
3728
  React.useEffect(function () {
3705
3729
  var _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4, _fetchcustomercartQue5, _fetchcustomercartQue6, _fetchcustomercartQue9, _fetchcustomercartQue10, _fetchcustomercartQue11, _fetchcustomercartQue12, _fetchcustomercartQue13, _fetchcustomercartQue14;
3706
3730
 
@@ -5571,21 +5595,20 @@
5571
5595
  var navigationstyle = props.actions.navigationstyle;
5572
5596
  var actions = props.actions;
5573
5597
  React.useEffect(function () {
5574
- if (Object.keys(StatePagePropertiesContext).length != 0) {
5575
- var _StatePagePropertiesC, _StatePagePropertiesC2;
5598
+ var _props$actions, _props$actions$StateP, _props$actions$StateP2, _props$actions$StateP3;
5576
5599
 
5577
- var secpropobj = {};
5578
- 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) {
5579
- secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
5580
- });
5581
- setsectionproperties(_objectSpread$13({}, secpropobj));
5582
- }
5583
- }, [StatePagePropertiesContext]);
5600
+ // if (Object.keys(props?.actions?.StatePagePropertiesContext).length != 0) {
5601
+ var secpropobj = {};
5602
+ 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) {
5603
+ secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
5604
+ });
5605
+ setsectionproperties(_objectSpread$13({}, secpropobj)); // }
5606
+ }, [props.actions.StatePagePropertiesContext]);
5584
5607
 
5585
5608
  var _useState = React.useState(''),
5586
- _useState2 = _slicedToArray__default["default"](_useState, 2),
5587
- CurrentPageId = _useState2[0],
5588
- setCurrentPageId = _useState2[1];
5609
+ _useState2 = _slicedToArray__default["default"](_useState, 2);
5610
+ _useState2[0];
5611
+ var setCurrentPageId = _useState2[1];
5589
5612
 
5590
5613
  var _useState3 = React.useState(''),
5591
5614
  _useState4 = _slicedToArray__default["default"](_useState3, 2),
@@ -5600,16 +5623,14 @@
5600
5623
  if (cartindex >= 0) {
5601
5624
  setCurrentPageId(cartindex);
5602
5625
  }
5603
- }, []);
5604
- React.useEffect(function () {
5605
- var _templatepropcontext$, _templatepropcontext$2;
5626
+ }, []); // useEffect(() => {
5627
+ // var secpropobj = {};
5628
+ // templatepropcontext?.pagesnprop[CurrentPageId]?.pageproperties?.forEach(function (arrayItem, arrayindex) {
5629
+ // secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
5630
+ // });
5631
+ // setsectionproperties({ ...secpropobj });
5632
+ // }, [CurrentPageId, templatepropcontext]);
5606
5633
 
5607
- var secpropobj = {};
5608
- 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) {
5609
- secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
5610
- });
5611
- setsectionproperties(_objectSpread$13({}, secpropobj));
5612
- }, [CurrentPageId]);
5613
5634
  var accountinfo_cssstyles = {
5614
5635
  sectiontitlespan: glamor.css({
5615
5636
  ':after': {
@@ -11306,7 +11327,7 @@
11306
11327
  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; }
11307
11328
 
11308
11329
  var Subheader = function Subheader(props) {
11309
- var _props$subheaderprope, _props$subheaderprope2, _props$subheaderprope3, _props$subheaderprope9, _props$subheaderprope10;
11330
+ var _props$subheaderprope, _props$subheaderprope2, _templatepropcontext$, _props$subheaderprope9, _props$subheaderprope10;
11310
11331
 
11311
11332
  // const { lang, setlang, langdetect } = useContext(LanguageContext);
11312
11333
  // const { FetchQueriesEngineContext, setFetchQueriesEngineContext, fetchCategoriesQueryContext } = useContext(FetchingContext);
@@ -11344,7 +11365,7 @@
11344
11365
  }, []);
11345
11366
  React.useEffect(function () {
11346
11367
  if (props.sectionpropertiesprops != undefined) {
11347
- setsectionproperties(_objectSpread$I({}, props.sectionpropertiesprops));
11368
+ setsectionproperties(_objectSpread$I({}, props === null || props === void 0 ? void 0 : props.sectionpropertiesprops));
11348
11369
  }
11349
11370
  }, [props.sectionpropertiesprops]);
11350
11371
  var header_cssstyles = {
@@ -11388,78 +11409,84 @@
11388
11409
  })
11389
11410
  };
11390
11411
  return /*#__PURE__*/React__default["default"].createElement("div", {
11391
- 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 ',
11412
+ "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 ',
11392
11413
  style: {
11393
11414
  background: sectionproperties.subheaderbg,
11394
11415
  zIndex: 200,
11395
11416
  flex: 1
11396
11417
  }
11397
11418
  }, sectionproperties != undefined && sectionproperties.length != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
11398
- className: "".concat(headerstyles$8.sub_container) + ' w-100 p-md-0 '
11419
+ "class": "".concat(headerstyles$8.sub_container) + ' w-100 p-md-0 '
11399
11420
  }, fetchCategoriesQueryContext.isSuccess && fetchCategoriesQueryContext.data.data.status && /*#__PURE__*/React__default["default"].createElement("div", {
11400
- className: " ".concat(headerstyles$8.subheader) + ' row w-100 m-0 d-flex flex-row align-items-center w-sm-100 ',
11421
+ "class": " ".concat(headerstyles$8.subheader) + ' row w-100 m-0 d-flex flex-row align-items-center w-sm-100 ',
11401
11422
  style: {
11402
11423
  position: 'relative'
11403
11424
  }
11404
- }, /*#__PURE__*/React__default["default"].createElement("div", {
11405
- className: "ml-auto mr-auto",
11425
+ }, (props === null || props === void 0 ? void 0 : props.subheaderpositionprops) == 'Full Width' && /*#__PURE__*/React__default["default"].createElement("div", {
11426
+ "class": "ml-auto mr-auto",
11406
11427
  style: {
11407
11428
  background: sectionproperties.upperseparatorbgcolor,
11408
11429
  width: sectionproperties.upperseparatorwidth + '%',
11409
11430
  height: sectionproperties.upperseparatorheight + 'px'
11410
11431
  }
11411
11432
  }), /*#__PURE__*/React__default["default"].createElement("div", {
11412
- className: "col-lg-12 d-flex flex-column align-items-center justify-content-center pl-0 pr-0",
11433
+ "class": "col-lg-12 m-auto d-flex flex-column align-items-center justify-content-center ",
11413
11434
  style: {
11414
11435
  borderBottom: sectionproperties.separator_borderwidth + 'px solid ' + sectionproperties.separator_bgcolor,
11415
11436
  paddingTop: sectionproperties.subheader_margintop + 'px',
11416
11437
  paddingBottom: sectionproperties.subheader_marginbottom + 'px'
11417
11438
  }
11418
11439
  }, /*#__PURE__*/React__default["default"].createElement("div", {
11419
- className: " ".concat(headerstyles$8.nav__item) + ' d-flex flex-row align-items-center ',
11440
+ "class": "".concat(headerstyles$8.nav__item) + ' scrollhorizontal flex-row align-items-center ',
11420
11441
  style: {
11421
11442
  zIndex: 1000,
11422
- justifyContent: (_props$subheaderprope2 = props.subheaderpropertiesprops) === null || _props$subheaderprope2 === void 0 ? void 0 : _props$subheaderprope2.subheadercontentpositionprops
11443
+ textAlign: langdetect == 'en' ? 'left' : 'right' // justifyContent: props.subheaderpropertiesprops?.subheadercontentpositionprops,
11444
+
11423
11445
  }
11424
- }, ((_props$subheaderprope3 = props.subheaderpropertiesprops) === null || _props$subheaderprope3 === void 0 ? void 0 : _props$subheaderprope3.subheaderpositionprops) == 'in nav' && templatepropcontext.pagesnprop.map(function (item, index) {
11446
+ }, (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) {
11425
11447
  if (item.isnavigation == 1 && item.isactive == 1) {
11426
- var _props$subheaderprope4, _props$subheaderprope5;
11448
+ var _props$subheaderprope3, _props$subheaderprope4, _props$subheaderprope5, _props$subheaderprope6;
11427
11449
 
11428
11450
  return /*#__PURE__*/React__default["default"].createElement("div", {
11429
11451
  onClick: function onClick() {
11430
11452
  history.push(item.navigationroute);
11453
+ },
11454
+ "class": "scrollhorizontalcard",
11455
+ style: {
11456
+ 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,
11457
+ 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
11431
11458
  }
11432
11459
  }, /*#__PURE__*/React__default["default"].createElement("p", {
11433
- className: "".concat(headerstyles$8.link, " ").concat(header_cssstyles.subheader_category) + ' mb-0 p-0 ml-md-3 mr-md-3 ',
11460
+ "class": "".concat(headerstyles$8.link, " ").concat(header_cssstyles.subheader_category) + ' mb-0 p-0 ml-md-3 mr-md-3 ',
11434
11461
  onClick: function onClick() {
11435
- templatepropcontext.pagesnprop.pages.forEach(function (pageitem, pageindex) {
11462
+ fetch_inst_tabex_websitetemplatesQueryContext.data.data.template.pages.forEach(function (pageitem, pageindex) {
11436
11463
  pageitem.isselected = false;
11437
11464
  });
11438
- templatepropcontext.pagesnprop.pages[index].isselected = true;
11465
+ fetch_inst_tabex_websitetemplatesQueryContext.data.data.template.pages[index].isselected = true;
11439
11466
  },
11440
11467
  style: {
11441
- marginLeft: langdetect == 'en' ? 0 : (_props$subheaderprope4 = props.subheaderpropertiesprops) === null || _props$subheaderprope4 === void 0 ? void 0 : _props$subheaderprope4.paddingLeftprops,
11442
- marginRight: langdetect == 'en' ? (_props$subheaderprope5 = props.subheaderpropertiesprops) === null || _props$subheaderprope5 === void 0 ? void 0 : _props$subheaderprope5.paddingRightprops : 0
11468
+ 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,
11469
+ 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
11443
11470
  }
11444
11471
  }, langdetect == 'en' ? item.pagename : item.pagename_ar));
11445
11472
  }
11446
- }), fetchCategoriesQueryContext.data.data.categories.map(function (item, index) {
11447
- var _props$subheaderprope6, _props$subheaderprope7, _props$subheaderprope8;
11473
+ })), fetchCategoriesQueryContext.data.data.categories.map(function (item, index) {
11474
+ var _props$subheaderprope7, _props$subheaderprope8;
11448
11475
 
11449
11476
  return /*#__PURE__*/React__default["default"].createElement("p", {
11450
- className: "".concat(headerstyles$8.link, " ").concat(header_cssstyles.subheader_category) + ' mb-0 p-0 ml-md-3 mr-md-3 ',
11477
+ "class": "".concat(headerstyles$8.link, " ").concat(header_cssstyles.subheader_category) + ' mb-0 p-0 ml-md-3 mr-md-3 scrollhorizontalcard ',
11451
11478
  onClick: function onClick() {},
11452
11479
  onMouseEnter: function onMouseEnter() {
11453
11480
  setshowdownheadermenu(true);
11454
11481
  setChoosenindex(index);
11455
11482
  },
11456
11483
  style: {
11457
- 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,
11458
- marginRight: (_props$subheaderprope8 = props.subheaderpropertiesprops) === null || _props$subheaderprope8 === void 0 ? void 0 : _props$subheaderprope8.paddingRightprops
11484
+ 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,
11485
+ 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
11459
11486
  }
11460
11487
  }, langdetect == 'en' ? item.title_en : item.title_ar);
11461
11488
  }))), Choosenindex.length != 0 && fetchCategoriesQueryContext.data.data.categories[Choosenindex].parentcolletions.length != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
11462
- 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 ',
11489
+ "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 ',
11463
11490
  onMouseLeave: function onMouseLeave() {
11464
11491
  setshowdownheadermenu(false);
11465
11492
  },
@@ -11469,41 +11496,47 @@
11469
11496
  top: ((_props$subheaderprope10 = props.subheaderpropertiesprops) === null || _props$subheaderprope10 === void 0 ? void 0 : _props$subheaderprope10.subheaderpositionprops) == 'in nav' ? 20 : ''
11470
11497
  }
11471
11498
  }, /*#__PURE__*/React__default["default"].createElement("div", {
11472
- className: "row m-0 w-100 d-flex p-3"
11499
+ "class": "row m-0 w-100 d-flex p-3"
11473
11500
  }, fetchCategoriesQueryContext.data.data.categories[Choosenindex].parentcolletions.length == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
11474
- className: "col-lg-12 d-flex align-items-center justify-content-center text-light flex-column h-100 pt-5 pb-5"
11501
+ "class": "col-lg-12 d-flex align-items-center justify-content-center text-light flex-column h-100 pt-5 pb-5"
11475
11502
  }, /*#__PURE__*/React__default["default"].createElement(md.MdOutlineLayersClear, {
11476
11503
  size: 30
11477
11504
  }), /*#__PURE__*/React__default["default"].createElement("p", {
11478
- className: "font-16 font-weight-500 m-0 p-0"
11505
+ "class": "font-16 font-weight-500 m-0 p-0"
11479
11506
  }, langdetect == 'en' ? 'No collections' : 'لا توجد مجموعات')), fetchCategoriesQueryContext.data.data.categories[Choosenindex].parentcolletions.map(function (item, index) {
11480
11507
  return /*#__PURE__*/React__default["default"].createElement("div", {
11481
- className: "col-lg-2 col-md-6 col-sm-12 mb-md-4 p-0",
11508
+ "class": "col-lg-2 col-md-6 col-sm-12 mb-md-4 p-0",
11482
11509
  style: {
11483
11510
  cursor: 'pointer'
11484
11511
  }
11485
11512
  }, /*#__PURE__*/React__default["default"].createElement("div", {
11486
- className: "row w-100 m-0 d-flex flex-column justify-content-center mb-2"
11513
+ "class": "row w-100 m-0 d-flex flex-column justify-content-center mb-2"
11487
11514
  }, /*#__PURE__*/React__default["default"].createElement("div", {
11488
- className: "col-lg-12 p-0 mb-3",
11515
+ "class": "col-lg-12 p-0 mb-3",
11489
11516
  onClick: function onClick() {
11490
11517
  routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.parentcollectionid);
11491
11518
  }
11492
11519
  }, /*#__PURE__*/React__default["default"].createElement("p", {
11493
- className: "".concat(header_cssstyles.parentcollection) + ' wordbreak m-0 p-0 '
11520
+ "class": "".concat(header_cssstyles.parentcollection) + ' wordbreak m-0 p-0 ',
11521
+ style: {
11522
+ textAlign: langdetect == 'en' ? 'left' : 'right'
11523
+ }
11494
11524
  }, langdetect == 'en' ? item.title_en : item.title_ar)), item.collections.map(function (item, index) {
11495
11525
  return /*#__PURE__*/React__default["default"].createElement("div", {
11496
- className: "col-lg-12 p-0 mb-2",
11526
+ "class": "col-lg-12 p-0 mb-2",
11497
11527
  onClick: function onClick() {
11498
11528
  routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.collectionid);
11499
11529
  }
11500
11530
  }, /*#__PURE__*/React__default["default"].createElement("p", {
11501
- className: "".concat(header_cssstyles.subheader_collectiontitle) + ' wordbreak m-0 p-0 '
11531
+ "class": "".concat(header_cssstyles.subheader_collectiontitle) + ' wordbreak m-0 p-0 ',
11532
+ style: {
11533
+ textAlign: langdetect == 'en' ? 'left' : 'right'
11534
+ }
11502
11535
  }, langdetect == 'en' ? item.title_en : item.title_ar));
11503
11536
  }), index != item.collections.length != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
11504
- className: "col-lg-12 p-0 d-none d-sm-block"
11537
+ "class": "col-lg-12 p-0 d-none d-sm-block"
11505
11538
  }, /*#__PURE__*/React__default["default"].createElement("hr", {
11506
- className: "mt-3 mb-0"
11539
+ "class": "mt-3 mb-0"
11507
11540
  }))));
11508
11541
  }))))));
11509
11542
  };
@@ -19128,9 +19161,27 @@
19128
19161
  "class": "".concat(header_cssstyles.navbar_item_text) + ' navbar_item_text '
19129
19162
  }, langdetect == 'en' ? item.pagename : item.pagename_ar));
19130
19163
  }
19131
- })))), /*#__PURE__*/React__default["default"].createElement("div", {
19164
+ }))), sectionproperties.showhidesubheader == 'Show' && sectionproperties.subheaderposition == 'Besides Top Navigation' && /*#__PURE__*/React__default["default"].createElement(Subheader, {
19165
+ sectionpropertiesprops: sectionproperties,
19166
+ subheaderpropertiesprops: {
19167
+ subheaderpositionprops: 'in nav',
19168
+ paddingLeftprops: '1rem',
19169
+ paddingRightprops: '1rem',
19170
+ subheadercontentpositionprops: 'start'
19171
+ },
19172
+ actions: actions
19173
+ })), /*#__PURE__*/React__default["default"].createElement("div", {
19132
19174
  "class": "col-lg-12 p-0"
19133
- }))), /*#__PURE__*/React__default["default"].createElement(Headerresponsive, {
19175
+ }, sectionproperties.showhidesubheader == 'Show' && sectionproperties.subheaderposition == 'Full Width' && /*#__PURE__*/React__default["default"].createElement(Subheader, {
19176
+ sectionpropertiesprops: sectionproperties,
19177
+ subheaderpropertiesprops: {
19178
+ subheaderpositionprops: 'Full Width',
19179
+ paddingLeftprops: '35px',
19180
+ paddingRightprops: '35px',
19181
+ subheadercontentpositionprops: 'center'
19182
+ },
19183
+ actions: actions
19184
+ })))), /*#__PURE__*/React__default["default"].createElement(Headerresponsive, {
19134
19185
  sectionpropertiesprops: sectionproperties,
19135
19186
  actions: actions
19136
19187
  }));
@@ -24062,6 +24113,8 @@
24062
24113
  var setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
24063
24114
  var AddtoCartContext = props.actions.AddtoCartContext;
24064
24115
  props.actions.AddtoCartMutationContext;
24116
+ var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
24117
+ var routingcountext = props.actions.routingcountext;
24065
24118
  var NotificationManager = NotificationManager;
24066
24119
 
24067
24120
  var updatequantity = function updatequantity(type) {
@@ -24546,8 +24599,8 @@
24546
24599
  var setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
24547
24600
  var AddtoCartContext = props.actions.AddtoCartContext;
24548
24601
  props.actions.AddtoCartMutationContext;
24549
- var StaticPagesLinksContext = props.StaticPagesLinksContext;
24550
- var routingcountext = props.routingcountext;
24602
+ var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
24603
+ var routingcountext = props.actions.routingcountext;
24551
24604
  var NotificationManager = NotificationManager;
24552
24605
 
24553
24606
  var updatequantity = function updatequantity(type) {
@@ -25267,8 +25320,8 @@
25267
25320
  var setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
25268
25321
  props.actions.AddtoCartContext;
25269
25322
  props.actions.AddtoCartMutationContext;
25270
- var StaticPagesLinksContext = props.StaticPagesLinksContext;
25271
- var routingcountext = props.routingcountext;
25323
+ var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
25324
+ var routingcountext = props.actions.routingcountext;
25272
25325
  React.useEffect(function () {
25273
25326
  if (props.srcfrom == 'addsectionform') {
25274
25327
  var secpropobj = {};
@@ -25530,8 +25583,8 @@
25530
25583
  var setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
25531
25584
  props.actions.AddtoCartContext;
25532
25585
  props.actions.AddtoCartMutationContext;
25533
- var StaticPagesLinksContext = props.StaticPagesLinksContext;
25534
- var routingcountext = props.routingcountext;
25586
+ var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
25587
+ var routingcountext = props.actions.routingcountext;
25535
25588
  React.useEffect(function () {
25536
25589
  if (props.srcfrom == 'addsectionform') {
25537
25590
  var secpropobj = {};
@@ -26076,8 +26129,8 @@
26076
26129
  var setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
26077
26130
  props.actions.AddtoCartContext;
26078
26131
  props.actions.AddtoCartMutationContext;
26079
- var StaticPagesLinksContext = props.StaticPagesLinksContext;
26080
- var routingcountext = props.routingcountext;
26132
+ var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
26133
+ var routingcountext = props.actions.routingcountext;
26081
26134
  React.useEffect(function () {
26082
26135
  if (props.srcfrom == 'addsectionform') {
26083
26136
  var secpropobj = {};
@@ -26363,8 +26416,8 @@
26363
26416
  var setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
26364
26417
  props.actions.AddtoCartContext;
26365
26418
  props.actions.AddtoCartMutationContext;
26366
- var StaticPagesLinksContext = props.StaticPagesLinksContext;
26367
- var routingcountext = props.routingcountext;
26419
+ var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
26420
+ var routingcountext = props.actions.routingcountext;
26368
26421
  React.useEffect(function () {
26369
26422
  if (props.srcfrom == 'addsectionform') {
26370
26423
  var secpropobj = {};
@@ -26609,8 +26662,8 @@
26609
26662
  var setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
26610
26663
  props.actions.AddtoCartContext;
26611
26664
  props.actions.AddtoCartMutationContext;
26612
- var StaticPagesLinksContext = props.StaticPagesLinksContext;
26613
- var routingcountext = props.routingcountext;
26665
+ var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
26666
+ var routingcountext = props.actions.routingcountext;
26614
26667
  React.useEffect(function () {
26615
26668
  if (props.srcfrom == 'addsectionform') {
26616
26669
  var secpropobj = {};
@@ -26876,8 +26929,8 @@
26876
26929
  var setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
26877
26930
  props.actions.AddtoCartContext;
26878
26931
  props.actions.AddtoCartMutationContext;
26879
- var StaticPagesLinksContext = props.StaticPagesLinksContext;
26880
- var routingcountext = props.routingcountext;
26932
+ var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
26933
+ var routingcountext = props.actions.routingcountext;
26881
26934
  React.useEffect(function () {
26882
26935
  if (props.srcfrom == 'addsectionform') {
26883
26936
  var secpropobj = {};
@@ -27130,8 +27183,8 @@
27130
27183
  var setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
27131
27184
  props.actions.AddtoCartContext;
27132
27185
  props.actions.AddtoCartMutationContext;
27133
- var StaticPagesLinksContext = props.StaticPagesLinksContext;
27134
- var routingcountext = props.routingcountext;
27186
+ var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
27187
+ var routingcountext = props.actions.routingcountext;
27135
27188
  React.useEffect(function () {
27136
27189
  if (props.srcfrom == 'addsectionform') {
27137
27190
  var secpropobj = {};
@@ -27412,8 +27465,8 @@
27412
27465
  props.actions.setProductIdProdutInfoModalContext;
27413
27466
  props.actions.AddtoCartContext;
27414
27467
  props.actions.AddtoCartMutationContext;
27415
- props.StaticPagesLinksContext;
27416
- props.routingcountext;
27468
+ props.actions.StaticPagesLinksContext;
27469
+ props.actions.routingcountext;
27417
27470
  React.useEffect(function () {
27418
27471
  if (props.srcfrom == 'addsectionform') {
27419
27472
  var secpropobj = {};
@@ -27548,8 +27601,8 @@
27548
27601
  props.actions.setProductIdProdutInfoModalContext;
27549
27602
  props.actions.AddtoCartContext;
27550
27603
  props.actions.AddtoCartMutationContext;
27551
- var StaticPagesLinksContext = props.StaticPagesLinksContext;
27552
- var routingcountext = props.routingcountext;
27604
+ var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
27605
+ var routingcountext = props.actions.routingcountext;
27553
27606
  React.useEffect(function () {
27554
27607
  if (props.srcfrom == 'addsectionform') {
27555
27608
  var secpropobj = {};
@@ -27679,8 +27732,8 @@
27679
27732
  var setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
27680
27733
  props.actions.AddtoCartContext;
27681
27734
  props.actions.AddtoCartMutationContext;
27682
- var StaticPagesLinksContext = props.StaticPagesLinksContext;
27683
- var routingcountext = props.routingcountext;
27735
+ var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
27736
+ var routingcountext = props.actions.routingcountext;
27684
27737
  React.useEffect(function () {
27685
27738
  if (props.srcfrom == 'addsectionform') {
27686
27739
  var secpropobj = {};
@@ -27959,8 +28012,8 @@
27959
28012
  var setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
27960
28013
  props.actions.AddtoCartContext;
27961
28014
  props.actions.AddtoCartMutationContext;
27962
- var StaticPagesLinksContext = props.StaticPagesLinksContext;
27963
- var routingcountext = props.routingcountext;
28015
+ var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
28016
+ var routingcountext = props.actions.routingcountext;
27964
28017
  React.useEffect(function () {
27965
28018
  if (props.srcfrom == 'addsectionform') {
27966
28019
  var secpropobj = {};
@@ -28214,6 +28267,8 @@
28214
28267
  return {
28215
28268
  LanguageContext: LanguageContext$1,
28216
28269
  LanguageProvider: LanguageProvider,
28270
+ ProductsCardsSectionContext: ProductsCardsSectionContext,
28271
+ ProductsCardsSectionContext_Provider: ProductsCardsSectionContext_Provider,
28217
28272
  AwesomeButton: AwesomeButton,
28218
28273
  Checkout: Checkout,
28219
28274
  Signup: Signup,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tabexseriescomponents",
3
- "version": "0.0.56",
3
+ "version": "0.0.59",
4
4
  "description": "your description",
5
5
  "main": "dist/index.cjs.js",
6
6
  "scripts": {