tabexseriescomponents 0.0.545 → 0.0.547

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
@@ -2346,25 +2346,29 @@ var Product_itemtype = function Product_itemtype(props) {
2346
2346
  var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
2347
2347
  var getprice_discountpriceprops = props.actions.getprice_discountpriceprops;
2348
2348
  var ikimagecredcontext = props.actions.ikimagecredcontext;
2349
- var currentshowingimageindex = props.actions.currentshowingimageindex;
2349
+ var currentshowingimageindex_pro = props.actions.currentshowingimageindex;
2350
2350
  var StoreInfoprops = props.actions.StoreInfoprops;
2351
- // const DescriptionContent = props.actions.DescriptionContent;
2352
- var _useState = React.useState(''),
2351
+ var _useState = React.useState(currentshowingimageindex_pro),
2353
2352
  _useState2 = _slicedToArray__default["default"](_useState, 2),
2354
- shareUrl = _useState2[0],
2355
- setshareUrl = _useState2[1];
2353
+ currentshowingimageindex = _useState2[0],
2354
+ setcurrentshowingimageindex = _useState2[1];
2355
+ // const DescriptionContent = props.actions.DescriptionContent;
2356
2356
  var _useState3 = React.useState(''),
2357
2357
  _useState4 = _slicedToArray__default["default"](_useState3, 2),
2358
- title = _useState4[0],
2359
- settitle = _useState4[1];
2360
- var _useState5 = React.useState(fetchProductInfoQueryContext.data.data.productinfo),
2361
- _useState6 = _slicedToArray__default["default"](_useState5, 2);
2362
- _useState6[0];
2363
- var setitem = _useState6[1];
2364
- var _useState7 = React.useState(''),
2358
+ shareUrl = _useState4[0],
2359
+ setshareUrl = _useState4[1];
2360
+ var _useState5 = React.useState(''),
2361
+ _useState6 = _slicedToArray__default["default"](_useState5, 2),
2362
+ title = _useState6[0],
2363
+ settitle = _useState6[1];
2364
+ var _useState7 = React.useState(fetchProductInfoQueryContext.data.data.productinfo),
2365
2365
  _useState8 = _slicedToArray__default["default"](_useState7, 2);
2366
2366
  _useState8[0];
2367
- var settotalprice = _useState8[1];
2367
+ var setitem = _useState8[1];
2368
+ var _useState9 = React.useState(''),
2369
+ _useState10 = _slicedToArray__default["default"](_useState9, 2);
2370
+ _useState10[0];
2371
+ var settotalprice = _useState10[1];
2368
2372
  React.useEffect(function () {
2369
2373
  var itemobj = fetchProductInfoQueryContext.data.data.productinfo;
2370
2374
  if (stringIsEnglish(fetchProductInfoQueryContext.data.data.productinfo.name_en)) {
@@ -2469,6 +2473,7 @@ var Product_itemtype = function Product_itemtype(props) {
2469
2473
  totalprice = parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)).toFixed(2);
2470
2474
  }
2471
2475
  settotalprice(totalprice);
2476
+ setcurrentshowingimageindex(props.actions.currentshowingimageindex);
2472
2477
  }, [variantindexcompleted]);
2473
2478
  var ProductsSKUContainer = function ProductsSKUContainer() {
2474
2479
  return /*#__PURE__*/React__default["default"].createElement("p", {
@@ -2574,7 +2579,10 @@ var Product_itemtype = function Product_itemtype(props) {
2574
2579
  showNav: true,
2575
2580
  showPlayButton: false,
2576
2581
  showFullscreenButton: sectionproperties.showgalleryfullscreenbtn == 'Yes' ? true : false,
2577
- startIndex: currentshowingimageindex
2582
+ startIndex: currentshowingimageindex,
2583
+ onSlide: function onSlide(d) {
2584
+ setcurrentshowingimageindex(d);
2585
+ }
2578
2586
  })), productimagesarray.length != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
2579
2587
  "class": "w-100 d-none d-md-block"
2580
2588
  }, /*#__PURE__*/React__default["default"].createElement(ImageGallery__default["default"], {
@@ -2583,7 +2591,10 @@ var Product_itemtype = function Product_itemtype(props) {
2583
2591
  showNav: false,
2584
2592
  showPlayButton: false,
2585
2593
  showFullscreenButton: true,
2586
- startIndex: currentshowingimageindex
2594
+ startIndex: currentshowingimageindex,
2595
+ onSlide: function onSlide(d) {
2596
+ setcurrentshowingimageindex(d);
2597
+ }
2587
2598
  })))), /*#__PURE__*/React__default["default"].createElement("div", {
2588
2599
  className: sectionproperties.gallerystyle == 'Style 1' ? sectionproperties.evencols == 'Yes' ? langdetect == 'en' ? 'col-xl-6 col-lg-6 col-md-12 col-sm-12 pl-4 pr-0 pl-md-0 pr-md-0 pt-md-5' : 'col-xl-6 col-lg-6 col-md-12 col-sm-12 pl-0 pr-4 pl-md-0 pr-md-0 pt-md-5' : langdetect == 'en' ? 'col-xl-7 col-lg-7 col-md-12 col-sm-12 pl-4 pr-0 p-md-0' : 'col-xl-7 col-lg-7 col-md-12 col-sm-12 pl-0 pr-4 p-md-0' : 'col-xl-12 col-lg-12 col-md-12 col-sm-12 px-3 px-md-2'
2589
2600
  // className={
@@ -28076,8 +28087,8 @@ var Header_threesectionslogocentered = function Header_threesectionslogocentered
28076
28087
  return /*#__PURE__*/React__default["default"].createElement("div", {
28077
28088
  "class": "scrollhorizontalcard",
28078
28089
  style: {
28079
- marginLeft: langdetect == 'en' ? 0 : '35px',
28080
- marginRight: langdetect == 'en' ? '35px' : 0,
28090
+ marginLeft: langdetect == 'en' ? 0 : '10px',
28091
+ marginRight: langdetect == 'en' ? '10px' : 0,
28081
28092
  position: 'relative'
28082
28093
  },
28083
28094
  onClick: function onClick() {
@@ -28095,8 +28106,8 @@ var Header_threesectionslogocentered = function Header_threesectionslogocentered
28095
28106
  sectionpropertiesprops: sectionproperties,
28096
28107
  subheaderpropertiesprops: {
28097
28108
  subheaderpositionprops: 'in nav',
28098
- paddingLeftprops: '30px',
28099
- paddingRightprops: '30px',
28109
+ paddingLeftprops: '10px',
28110
+ paddingRightprops: '10px',
28100
28111
  subheadercontentpositionprops: langdetect == 'en' ? 'left' : 'right'
28101
28112
  },
28102
28113
  actions: actions
@@ -28390,7 +28401,7 @@ styleInject(css_248z$v);
28390
28401
  function ownKeys$1R(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
28391
28402
  function _objectSpread$1R(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1R(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1R(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
28392
28403
  var Simpleheader = function Simpleheader(props) {
28393
- var _css, _css2, _header_cssstyles, _authdetailsContext$i, _logoarrayofobjects$, _logoarrayofobjects$2, _fetchcustomercartQue, _fetchcustomercartQue2, _authdetailsContext$c, _authdetailsContext$c2, _logoarrayofobjects$3, _logoarrayofobjects$4;
28404
+ var _css, _css2, _header_cssstyles, _authdetailsContext$i, _authdetailsContext$i2, _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$i3, _authdetailsContext$i4, _fetchcustomercartQue, _fetchcustomercartQue2, _authdetailsContext$c, _authdetailsContext$c2, _authdetailsContext$i5, _authdetailsContext$i6, _logoarrayofobjects$3, _logoarrayofobjects$4;
28394
28405
  var actions = props.actions;
28395
28406
  var _useState = React.useState(''),
28396
28407
  _useState2 = _slicedToArray__default["default"](_useState, 2),
@@ -28744,7 +28755,7 @@ var Simpleheader = function Simpleheader(props) {
28744
28755
  }, /*#__PURE__*/React__default["default"].createElement("div", {
28745
28756
  "class": " ".concat(headerstyles$9.navbar) + ' row m-0 w-100 d-flex flex-row align-items-center h-100 '
28746
28757
  }, /*#__PURE__*/React__default["default"].createElement("div", {
28747
- "class": sectionproperties.showhidesubheader == 'Show' && sectionproperties.subheaderposition == 'Besides Top Navigation' ? 'col-lg-2 p-0' : 'col-lg-4 p-0'
28758
+ "class": sectionproperties.showhidesubheader == 'Show' && sectionproperties.subheaderposition == 'Besides Top Navigation' ? authdetailsContext != undefined && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i2 = authdetailsContext.instinfo) === null || _authdetailsContext$i2 === void 0 || (_authdetailsContext$i2 = _authdetailsContext$i2.instcurrencies) === null || _authdetailsContext$i2 === void 0 ? void 0 : _authdetailsContext$i2.length) > 1 ? 'col-lg-4 p-0' : 'col-lg-2 p-0' : 'col-lg-4 p-0'
28748
28759
  }, /*#__PURE__*/React__default["default"].createElement("div", {
28749
28760
  "class": "".concat(header_cssstyles.header_logo) + ' d-flex align-items-center justify-content-center ',
28750
28761
  style: {
@@ -28762,7 +28773,7 @@ var Simpleheader = function Simpleheader(props) {
28762
28773
  maxHeight: '100%'
28763
28774
  }
28764
28775
  }))), /*#__PURE__*/React__default["default"].createElement("div", {
28765
- "class": sectionproperties.showhidesubheader == 'Show' && sectionproperties.subheaderposition == 'Besides Top Navigation' ? "".concat(headerstyles$9.nav__item) + ' col-lg-8 p-0 d-flex flex-row align-items-center ' : "".concat(headerstyles$9.nav__item) + ' col-lg-4 p-0 d-flex flex-row align-items-center ',
28776
+ "class": sectionproperties.showhidesubheader == 'Show' && sectionproperties.subheaderposition == 'Besides Top Navigation' ? authdetailsContext != undefined && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i3 = authdetailsContext.instinfo) === null || _authdetailsContext$i3 === void 0 || (_authdetailsContext$i3 = _authdetailsContext$i3.instcurrencies) === null || _authdetailsContext$i3 === void 0 ? void 0 : _authdetailsContext$i3.length) > 1 ? "".concat(headerstyles$9.nav__item) + ' col-lg-4 p-0 d-flex flex-row align-items-center ' : "".concat(headerstyles$9.nav__item) + ' col-lg-8 p-0 d-flex flex-row align-items-center ' : "".concat(headerstyles$9.nav__item) + ' col-lg-4 p-0 d-flex flex-row align-items-center ',
28766
28777
  style: {
28767
28778
  justifyContent: sectionproperties.header_centered == 'Centered' ? 'center' : 'start'
28768
28779
  }
@@ -28794,7 +28805,7 @@ var Simpleheader = function Simpleheader(props) {
28794
28805
  subheadercontentpositionprops: sectionproperties.header_centered == 'Centered' ? 'center' : 'start'
28795
28806
  }
28796
28807
  })), /*#__PURE__*/React__default["default"].createElement("div", {
28797
- "class": sectionproperties.showhidesubheader == 'Show' && sectionproperties.subheaderposition == 'Besides Top Navigation' ? 'col-lg-2 p-0 d-flex align-items-center justify-content-end' : 'col-lg-4 p-0 d-flex align-items-center justify-content-end'
28808
+ "class": sectionproperties.showhidesubheader == 'Show' && sectionproperties.subheaderposition == 'Besides Top Navigation' ? authdetailsContext != undefined && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i4 = authdetailsContext.instinfo) === null || _authdetailsContext$i4 === void 0 || (_authdetailsContext$i4 = _authdetailsContext$i4.instcurrencies) === null || _authdetailsContext$i4 === void 0 ? void 0 : _authdetailsContext$i4.length) > 1 ? 'col-lg-4 p-0 d-flex align-items-center justify-content-end' : 'col-lg-2 p-0 d-flex align-items-center justify-content-end' : 'col-lg-4 p-0 d-flex align-items-center justify-content-end'
28798
28809
  }, sectionproperties.searchbar_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("i", {
28799
28810
  className: header_cssstyles.searchicon + ' h-100 allcentered ',
28800
28811
  onClick: function onClick() {
@@ -29097,7 +29108,45 @@ var Simpleheader = function Simpleheader(props) {
29097
29108
  }
29098
29109
  }), /*#__PURE__*/React__default["default"].createElement("span", {
29099
29110
  "class": "ml-2 mr-2"
29100
- }, "English")))))))))), sectionproperties.showhidesubheader == 'Show' && sectionproperties.subheaderposition == 'Full Width' && /*#__PURE__*/React__default["default"].createElement("div", {
29111
+ }, "English"))))))), authdetailsContext != undefined && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i5 = authdetailsContext.instinfo) === null || _authdetailsContext$i5 === void 0 || (_authdetailsContext$i5 = _authdetailsContext$i5.instcurrencies) === null || _authdetailsContext$i5 === void 0 ? void 0 : _authdetailsContext$i5.length) > 1 && /*#__PURE__*/React__default["default"].createElement("div", {
29112
+ "class": ' d-flex align-items-center justify-content-end '
29113
+ }, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"], null, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Toggle, null, /*#__PURE__*/React__default["default"].createElement("li", {
29114
+ "class": ' d-flex align-items-center justify-content-center '
29115
+ }, langdetect == 'en' && /*#__PURE__*/React__default["default"].createElement("div", {
29116
+ "class": ' row m-0 w-100 d-flex align-items-center '
29117
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
29118
+ "class": "m-0 p-0 mr-2 ml-2"
29119
+ }, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en), /*#__PURE__*/React__default["default"].createElement(MdKeyboardArrowDown.MdKeyboardArrowDown, null)), langdetect == 'ar' && /*#__PURE__*/React__default["default"].createElement("div", {
29120
+ "class": ' row m-0 w-100 d-flex align-items-center '
29121
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
29122
+ "class": "m-0 p-0 ml-2 mr-2"
29123
+ }, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), /*#__PURE__*/React__default["default"].createElement(MdKeyboardArrowDown.MdKeyboardArrowDown, null)))), /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Menu, null, authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i6 = authdetailsContext.instinfo) === null || _authdetailsContext$i6 === void 0 || (_authdetailsContext$i6 = _authdetailsContext$i6.instcurrencies) === null || _authdetailsContext$i6 === void 0 ? void 0 : _authdetailsContext$i6.map(function (item, index) {
29124
+ var _authdetailsContext$i7;
29125
+ return /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Item, {
29126
+ onClick: function onClick() {
29127
+ setcurrencyfunccontext(item);
29128
+ }
29129
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
29130
+ "class": "row m-0 w-100"
29131
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
29132
+ "class": "col-lg-12 p-0 d-flex justify-content-start"
29133
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
29134
+ "class": "".concat(header_cssstyles.dropdownitemcontainer)
29135
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
29136
+ "class": 'dropdownitem d-flex align-items-center justify-content-center m-0 p-0',
29137
+ style: {
29138
+ fontSize: sectionproperties.dropdown_fontsize + 'px',
29139
+ fontWeight: sectionproperties.dropdown_fontweight,
29140
+ textTransform: sectionproperties.dropdown_texttransform
29141
+ }
29142
+ }, /*#__PURE__*/React__default["default"].createElement(FaMoneyBillWave.FaMoneyBillWave, null), /*#__PURE__*/React__default["default"].createElement("span", {
29143
+ "class": 'ml-2 mr-2'
29144
+ }, langdetect == 'en' ? item.currencyname_en : item.currencyname_ar)))), index != (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i7 = authdetailsContext.instinfo) === null || _authdetailsContext$i7 === void 0 || (_authdetailsContext$i7 = _authdetailsContext$i7.instcurrencies) === null || _authdetailsContext$i7 === void 0 ? void 0 : _authdetailsContext$i7.length) - 1 && /*#__PURE__*/React__default["default"].createElement("div", {
29145
+ "class": "col-lg-12 p-0"
29146
+ }, /*#__PURE__*/React__default["default"].createElement("hr", {
29147
+ "class": "m-0"
29148
+ }))));
29149
+ }))))))), sectionproperties.showhidesubheader == 'Show' && sectionproperties.subheaderposition == 'Full Width' && /*#__PURE__*/React__default["default"].createElement("div", {
29101
29150
  "class": "col-lg-12 p-0"
29102
29151
  }, /*#__PURE__*/React__default["default"].createElement(Subheader, {
29103
29152
  actions: actions,
@@ -47144,7 +47193,7 @@ var Newsletterincenter = function Newsletterincenter(props) {
47144
47193
  }, /*#__PURE__*/React__default["default"].createElement("div", {
47145
47194
  "class": "col-lg-12 p-0"
47146
47195
  }, /*#__PURE__*/React__default["default"].createElement("hr", null)), /*#__PURE__*/React__default["default"].createElement("div", {
47147
- "class": "col-lg-6 col-md-12 text-start flex-row d-md-none"
47196
+ "class": "col-lg-12 col-md-12 d-flex justify-content-center align-items-center flex-row d-md-none"
47148
47197
  }, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i7 = authdetailsContext.instinfo) === null || _authdetailsContext$i7 === void 0 ? void 0 : _authdetailsContext$i7.facebooklink) != null && /*#__PURE__*/React__default["default"].createElement("p", {
47149
47198
  "class": footerStyles.facebook_btn + ' m-0 p-0 allcentered mx-3 ',
47150
47199
  onClick: function onClick() {
@@ -47208,23 +47257,7 @@ var Newsletterincenter = function Newsletterincenter(props) {
47208
47257
  }
47209
47258
  }, /*#__PURE__*/React__default["default"].createElement(FaWhatsapp.FaWhatsapp, {
47210
47259
  size: sectionproperties.youtubebtniconfontsize
47211
- }))), /*#__PURE__*/React__default["default"].createElement("div", {
47212
- "class": "col-lg-6 col-md-12 d-flex align-items-center justify-content-end justify-content-md-center flex-row"
47213
- }, /*#__PURE__*/React__default["default"].createElement("img", {
47214
- "class": "".concat(footerStyles.apptore) + ' d-flex justify-content-center align-items-center cursor-pointer mx-2 ',
47215
- src: 'https://tabex-co.com/storage/StaticImages/appstore2.png',
47216
- onClick: function onClick() {
47217
- var _authdetailsContext$i24;
47218
- window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i24 = authdetailsContext.instinfo) === null || _authdetailsContext$i24 === void 0 ? void 0 : _authdetailsContext$i24.mobileapplink_appstore, '_blank');
47219
- }
47220
- }), /*#__PURE__*/React__default["default"].createElement("img", {
47221
- "class": "".concat(footerStyles.googleplay) + ' d-flex justify-content-center align-items-center cursor-pointer mx-2 ',
47222
- src: 'https://tabex-co.com/storage/StaticImages/googleplay2.png',
47223
- onClick: function onClick() {
47224
- var _authdetailsContext$i25;
47225
- window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i25 = authdetailsContext.instinfo) === null || _authdetailsContext$i25 === void 0 ? void 0 : _authdetailsContext$i25.mobileapplink_playstore, '_blank');
47226
- }
47227
- })))));
47260
+ }))))));
47228
47261
  };
47229
47262
 
47230
47263
  function ownKeys$1o(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
package/dist/index.esm.js CHANGED
@@ -2297,25 +2297,29 @@ var Product_itemtype = function Product_itemtype(props) {
2297
2297
  var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
2298
2298
  var getprice_discountpriceprops = props.actions.getprice_discountpriceprops;
2299
2299
  var ikimagecredcontext = props.actions.ikimagecredcontext;
2300
- var currentshowingimageindex = props.actions.currentshowingimageindex;
2300
+ var currentshowingimageindex_pro = props.actions.currentshowingimageindex;
2301
2301
  var StoreInfoprops = props.actions.StoreInfoprops;
2302
- // const DescriptionContent = props.actions.DescriptionContent;
2303
- var _useState = useState(''),
2302
+ var _useState = useState(currentshowingimageindex_pro),
2304
2303
  _useState2 = _slicedToArray(_useState, 2),
2305
- shareUrl = _useState2[0],
2306
- setshareUrl = _useState2[1];
2304
+ currentshowingimageindex = _useState2[0],
2305
+ setcurrentshowingimageindex = _useState2[1];
2306
+ // const DescriptionContent = props.actions.DescriptionContent;
2307
2307
  var _useState3 = useState(''),
2308
2308
  _useState4 = _slicedToArray(_useState3, 2),
2309
- title = _useState4[0],
2310
- settitle = _useState4[1];
2311
- var _useState5 = useState(fetchProductInfoQueryContext.data.data.productinfo),
2312
- _useState6 = _slicedToArray(_useState5, 2);
2313
- _useState6[0];
2314
- var setitem = _useState6[1];
2315
- var _useState7 = useState(''),
2309
+ shareUrl = _useState4[0],
2310
+ setshareUrl = _useState4[1];
2311
+ var _useState5 = useState(''),
2312
+ _useState6 = _slicedToArray(_useState5, 2),
2313
+ title = _useState6[0],
2314
+ settitle = _useState6[1];
2315
+ var _useState7 = useState(fetchProductInfoQueryContext.data.data.productinfo),
2316
2316
  _useState8 = _slicedToArray(_useState7, 2);
2317
2317
  _useState8[0];
2318
- var settotalprice = _useState8[1];
2318
+ var setitem = _useState8[1];
2319
+ var _useState9 = useState(''),
2320
+ _useState10 = _slicedToArray(_useState9, 2);
2321
+ _useState10[0];
2322
+ var settotalprice = _useState10[1];
2319
2323
  useEffect(function () {
2320
2324
  var itemobj = fetchProductInfoQueryContext.data.data.productinfo;
2321
2325
  if (stringIsEnglish(fetchProductInfoQueryContext.data.data.productinfo.name_en)) {
@@ -2420,6 +2424,7 @@ var Product_itemtype = function Product_itemtype(props) {
2420
2424
  totalprice = parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)).toFixed(2);
2421
2425
  }
2422
2426
  settotalprice(totalprice);
2427
+ setcurrentshowingimageindex(props.actions.currentshowingimageindex);
2423
2428
  }, [variantindexcompleted]);
2424
2429
  var ProductsSKUContainer = function ProductsSKUContainer() {
2425
2430
  return /*#__PURE__*/React.createElement("p", {
@@ -2525,7 +2530,10 @@ var Product_itemtype = function Product_itemtype(props) {
2525
2530
  showNav: true,
2526
2531
  showPlayButton: false,
2527
2532
  showFullscreenButton: sectionproperties.showgalleryfullscreenbtn == 'Yes' ? true : false,
2528
- startIndex: currentshowingimageindex
2533
+ startIndex: currentshowingimageindex,
2534
+ onSlide: function onSlide(d) {
2535
+ setcurrentshowingimageindex(d);
2536
+ }
2529
2537
  })), productimagesarray.length != 0 && /*#__PURE__*/React.createElement("div", {
2530
2538
  "class": "w-100 d-none d-md-block"
2531
2539
  }, /*#__PURE__*/React.createElement(ImageGallery, {
@@ -2534,7 +2542,10 @@ var Product_itemtype = function Product_itemtype(props) {
2534
2542
  showNav: false,
2535
2543
  showPlayButton: false,
2536
2544
  showFullscreenButton: true,
2537
- startIndex: currentshowingimageindex
2545
+ startIndex: currentshowingimageindex,
2546
+ onSlide: function onSlide(d) {
2547
+ setcurrentshowingimageindex(d);
2548
+ }
2538
2549
  })))), /*#__PURE__*/React.createElement("div", {
2539
2550
  className: sectionproperties.gallerystyle == 'Style 1' ? sectionproperties.evencols == 'Yes' ? langdetect == 'en' ? 'col-xl-6 col-lg-6 col-md-12 col-sm-12 pl-4 pr-0 pl-md-0 pr-md-0 pt-md-5' : 'col-xl-6 col-lg-6 col-md-12 col-sm-12 pl-0 pr-4 pl-md-0 pr-md-0 pt-md-5' : langdetect == 'en' ? 'col-xl-7 col-lg-7 col-md-12 col-sm-12 pl-4 pr-0 p-md-0' : 'col-xl-7 col-lg-7 col-md-12 col-sm-12 pl-0 pr-4 p-md-0' : 'col-xl-12 col-lg-12 col-md-12 col-sm-12 px-3 px-md-2'
2540
2551
  // className={
@@ -28027,8 +28038,8 @@ var Header_threesectionslogocentered = function Header_threesectionslogocentered
28027
28038
  return /*#__PURE__*/React.createElement("div", {
28028
28039
  "class": "scrollhorizontalcard",
28029
28040
  style: {
28030
- marginLeft: langdetect == 'en' ? 0 : '35px',
28031
- marginRight: langdetect == 'en' ? '35px' : 0,
28041
+ marginLeft: langdetect == 'en' ? 0 : '10px',
28042
+ marginRight: langdetect == 'en' ? '10px' : 0,
28032
28043
  position: 'relative'
28033
28044
  },
28034
28045
  onClick: function onClick() {
@@ -28046,8 +28057,8 @@ var Header_threesectionslogocentered = function Header_threesectionslogocentered
28046
28057
  sectionpropertiesprops: sectionproperties,
28047
28058
  subheaderpropertiesprops: {
28048
28059
  subheaderpositionprops: 'in nav',
28049
- paddingLeftprops: '30px',
28050
- paddingRightprops: '30px',
28060
+ paddingLeftprops: '10px',
28061
+ paddingRightprops: '10px',
28051
28062
  subheadercontentpositionprops: langdetect == 'en' ? 'left' : 'right'
28052
28063
  },
28053
28064
  actions: actions
@@ -28341,7 +28352,7 @@ styleInject(css_248z$v);
28341
28352
  function ownKeys$1R(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
28342
28353
  function _objectSpread$1R(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1R(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1R(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
28343
28354
  var Simpleheader = function Simpleheader(props) {
28344
- var _css, _css2, _header_cssstyles, _authdetailsContext$i, _logoarrayofobjects$, _logoarrayofobjects$2, _fetchcustomercartQue, _fetchcustomercartQue2, _authdetailsContext$c, _authdetailsContext$c2, _logoarrayofobjects$3, _logoarrayofobjects$4;
28355
+ var _css, _css2, _header_cssstyles, _authdetailsContext$i, _authdetailsContext$i2, _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$i3, _authdetailsContext$i4, _fetchcustomercartQue, _fetchcustomercartQue2, _authdetailsContext$c, _authdetailsContext$c2, _authdetailsContext$i5, _authdetailsContext$i6, _logoarrayofobjects$3, _logoarrayofobjects$4;
28345
28356
  var actions = props.actions;
28346
28357
  var _useState = useState(''),
28347
28358
  _useState2 = _slicedToArray(_useState, 2),
@@ -28695,7 +28706,7 @@ var Simpleheader = function Simpleheader(props) {
28695
28706
  }, /*#__PURE__*/React.createElement("div", {
28696
28707
  "class": " ".concat(headerstyles$9.navbar) + ' row m-0 w-100 d-flex flex-row align-items-center h-100 '
28697
28708
  }, /*#__PURE__*/React.createElement("div", {
28698
- "class": sectionproperties.showhidesubheader == 'Show' && sectionproperties.subheaderposition == 'Besides Top Navigation' ? 'col-lg-2 p-0' : 'col-lg-4 p-0'
28709
+ "class": sectionproperties.showhidesubheader == 'Show' && sectionproperties.subheaderposition == 'Besides Top Navigation' ? authdetailsContext != undefined && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i2 = authdetailsContext.instinfo) === null || _authdetailsContext$i2 === void 0 || (_authdetailsContext$i2 = _authdetailsContext$i2.instcurrencies) === null || _authdetailsContext$i2 === void 0 ? void 0 : _authdetailsContext$i2.length) > 1 ? 'col-lg-4 p-0' : 'col-lg-2 p-0' : 'col-lg-4 p-0'
28699
28710
  }, /*#__PURE__*/React.createElement("div", {
28700
28711
  "class": "".concat(header_cssstyles.header_logo) + ' d-flex align-items-center justify-content-center ',
28701
28712
  style: {
@@ -28713,7 +28724,7 @@ var Simpleheader = function Simpleheader(props) {
28713
28724
  maxHeight: '100%'
28714
28725
  }
28715
28726
  }))), /*#__PURE__*/React.createElement("div", {
28716
- "class": sectionproperties.showhidesubheader == 'Show' && sectionproperties.subheaderposition == 'Besides Top Navigation' ? "".concat(headerstyles$9.nav__item) + ' col-lg-8 p-0 d-flex flex-row align-items-center ' : "".concat(headerstyles$9.nav__item) + ' col-lg-4 p-0 d-flex flex-row align-items-center ',
28727
+ "class": sectionproperties.showhidesubheader == 'Show' && sectionproperties.subheaderposition == 'Besides Top Navigation' ? authdetailsContext != undefined && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i3 = authdetailsContext.instinfo) === null || _authdetailsContext$i3 === void 0 || (_authdetailsContext$i3 = _authdetailsContext$i3.instcurrencies) === null || _authdetailsContext$i3 === void 0 ? void 0 : _authdetailsContext$i3.length) > 1 ? "".concat(headerstyles$9.nav__item) + ' col-lg-4 p-0 d-flex flex-row align-items-center ' : "".concat(headerstyles$9.nav__item) + ' col-lg-8 p-0 d-flex flex-row align-items-center ' : "".concat(headerstyles$9.nav__item) + ' col-lg-4 p-0 d-flex flex-row align-items-center ',
28717
28728
  style: {
28718
28729
  justifyContent: sectionproperties.header_centered == 'Centered' ? 'center' : 'start'
28719
28730
  }
@@ -28745,7 +28756,7 @@ var Simpleheader = function Simpleheader(props) {
28745
28756
  subheadercontentpositionprops: sectionproperties.header_centered == 'Centered' ? 'center' : 'start'
28746
28757
  }
28747
28758
  })), /*#__PURE__*/React.createElement("div", {
28748
- "class": sectionproperties.showhidesubheader == 'Show' && sectionproperties.subheaderposition == 'Besides Top Navigation' ? 'col-lg-2 p-0 d-flex align-items-center justify-content-end' : 'col-lg-4 p-0 d-flex align-items-center justify-content-end'
28759
+ "class": sectionproperties.showhidesubheader == 'Show' && sectionproperties.subheaderposition == 'Besides Top Navigation' ? authdetailsContext != undefined && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i4 = authdetailsContext.instinfo) === null || _authdetailsContext$i4 === void 0 || (_authdetailsContext$i4 = _authdetailsContext$i4.instcurrencies) === null || _authdetailsContext$i4 === void 0 ? void 0 : _authdetailsContext$i4.length) > 1 ? 'col-lg-4 p-0 d-flex align-items-center justify-content-end' : 'col-lg-2 p-0 d-flex align-items-center justify-content-end' : 'col-lg-4 p-0 d-flex align-items-center justify-content-end'
28749
28760
  }, sectionproperties.searchbar_show == 'Show' && /*#__PURE__*/React.createElement("i", {
28750
28761
  className: header_cssstyles.searchicon + ' h-100 allcentered ',
28751
28762
  onClick: function onClick() {
@@ -29048,7 +29059,45 @@ var Simpleheader = function Simpleheader(props) {
29048
29059
  }
29049
29060
  }), /*#__PURE__*/React.createElement("span", {
29050
29061
  "class": "ml-2 mr-2"
29051
- }, "English")))))))))), sectionproperties.showhidesubheader == 'Show' && sectionproperties.subheaderposition == 'Full Width' && /*#__PURE__*/React.createElement("div", {
29062
+ }, "English"))))))), authdetailsContext != undefined && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i5 = authdetailsContext.instinfo) === null || _authdetailsContext$i5 === void 0 || (_authdetailsContext$i5 = _authdetailsContext$i5.instcurrencies) === null || _authdetailsContext$i5 === void 0 ? void 0 : _authdetailsContext$i5.length) > 1 && /*#__PURE__*/React.createElement("div", {
29063
+ "class": ' d-flex align-items-center justify-content-end '
29064
+ }, /*#__PURE__*/React.createElement(Dropdown, null, /*#__PURE__*/React.createElement(Dropdown.Toggle, null, /*#__PURE__*/React.createElement("li", {
29065
+ "class": ' d-flex align-items-center justify-content-center '
29066
+ }, langdetect == 'en' && /*#__PURE__*/React.createElement("div", {
29067
+ "class": ' row m-0 w-100 d-flex align-items-center '
29068
+ }, /*#__PURE__*/React.createElement("p", {
29069
+ "class": "m-0 p-0 mr-2 ml-2"
29070
+ }, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en), /*#__PURE__*/React.createElement(MdKeyboardArrowDown, null)), langdetect == 'ar' && /*#__PURE__*/React.createElement("div", {
29071
+ "class": ' row m-0 w-100 d-flex align-items-center '
29072
+ }, /*#__PURE__*/React.createElement("p", {
29073
+ "class": "m-0 p-0 ml-2 mr-2"
29074
+ }, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), /*#__PURE__*/React.createElement(MdKeyboardArrowDown, null)))), /*#__PURE__*/React.createElement(Dropdown.Menu, null, authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i6 = authdetailsContext.instinfo) === null || _authdetailsContext$i6 === void 0 || (_authdetailsContext$i6 = _authdetailsContext$i6.instcurrencies) === null || _authdetailsContext$i6 === void 0 ? void 0 : _authdetailsContext$i6.map(function (item, index) {
29075
+ var _authdetailsContext$i7;
29076
+ return /*#__PURE__*/React.createElement(Dropdown.Item, {
29077
+ onClick: function onClick() {
29078
+ setcurrencyfunccontext(item);
29079
+ }
29080
+ }, /*#__PURE__*/React.createElement("div", {
29081
+ "class": "row m-0 w-100"
29082
+ }, /*#__PURE__*/React.createElement("div", {
29083
+ "class": "col-lg-12 p-0 d-flex justify-content-start"
29084
+ }, /*#__PURE__*/React.createElement("div", {
29085
+ "class": "".concat(header_cssstyles.dropdownitemcontainer)
29086
+ }, /*#__PURE__*/React.createElement("p", {
29087
+ "class": 'dropdownitem d-flex align-items-center justify-content-center m-0 p-0',
29088
+ style: {
29089
+ fontSize: sectionproperties.dropdown_fontsize + 'px',
29090
+ fontWeight: sectionproperties.dropdown_fontweight,
29091
+ textTransform: sectionproperties.dropdown_texttransform
29092
+ }
29093
+ }, /*#__PURE__*/React.createElement(FaMoneyBillWave, null), /*#__PURE__*/React.createElement("span", {
29094
+ "class": 'ml-2 mr-2'
29095
+ }, langdetect == 'en' ? item.currencyname_en : item.currencyname_ar)))), index != (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i7 = authdetailsContext.instinfo) === null || _authdetailsContext$i7 === void 0 || (_authdetailsContext$i7 = _authdetailsContext$i7.instcurrencies) === null || _authdetailsContext$i7 === void 0 ? void 0 : _authdetailsContext$i7.length) - 1 && /*#__PURE__*/React.createElement("div", {
29096
+ "class": "col-lg-12 p-0"
29097
+ }, /*#__PURE__*/React.createElement("hr", {
29098
+ "class": "m-0"
29099
+ }))));
29100
+ }))))))), sectionproperties.showhidesubheader == 'Show' && sectionproperties.subheaderposition == 'Full Width' && /*#__PURE__*/React.createElement("div", {
29052
29101
  "class": "col-lg-12 p-0"
29053
29102
  }, /*#__PURE__*/React.createElement(Subheader, {
29054
29103
  actions: actions,
@@ -47095,7 +47144,7 @@ var Newsletterincenter = function Newsletterincenter(props) {
47095
47144
  }, /*#__PURE__*/React.createElement("div", {
47096
47145
  "class": "col-lg-12 p-0"
47097
47146
  }, /*#__PURE__*/React.createElement("hr", null)), /*#__PURE__*/React.createElement("div", {
47098
- "class": "col-lg-6 col-md-12 text-start flex-row d-md-none"
47147
+ "class": "col-lg-12 col-md-12 d-flex justify-content-center align-items-center flex-row d-md-none"
47099
47148
  }, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i7 = authdetailsContext.instinfo) === null || _authdetailsContext$i7 === void 0 ? void 0 : _authdetailsContext$i7.facebooklink) != null && /*#__PURE__*/React.createElement("p", {
47100
47149
  "class": footerStyles.facebook_btn + ' m-0 p-0 allcentered mx-3 ',
47101
47150
  onClick: function onClick() {
@@ -47159,23 +47208,7 @@ var Newsletterincenter = function Newsletterincenter(props) {
47159
47208
  }
47160
47209
  }, /*#__PURE__*/React.createElement(FaWhatsapp, {
47161
47210
  size: sectionproperties.youtubebtniconfontsize
47162
- }))), /*#__PURE__*/React.createElement("div", {
47163
- "class": "col-lg-6 col-md-12 d-flex align-items-center justify-content-end justify-content-md-center flex-row"
47164
- }, /*#__PURE__*/React.createElement("img", {
47165
- "class": "".concat(footerStyles.apptore) + ' d-flex justify-content-center align-items-center cursor-pointer mx-2 ',
47166
- src: 'https://tabex-co.com/storage/StaticImages/appstore2.png',
47167
- onClick: function onClick() {
47168
- var _authdetailsContext$i24;
47169
- window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i24 = authdetailsContext.instinfo) === null || _authdetailsContext$i24 === void 0 ? void 0 : _authdetailsContext$i24.mobileapplink_appstore, '_blank');
47170
- }
47171
- }), /*#__PURE__*/React.createElement("img", {
47172
- "class": "".concat(footerStyles.googleplay) + ' d-flex justify-content-center align-items-center cursor-pointer mx-2 ',
47173
- src: 'https://tabex-co.com/storage/StaticImages/googleplay2.png',
47174
- onClick: function onClick() {
47175
- var _authdetailsContext$i25;
47176
- window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i25 = authdetailsContext.instinfo) === null || _authdetailsContext$i25 === void 0 ? void 0 : _authdetailsContext$i25.mobileapplink_playstore, '_blank');
47177
- }
47178
- })))));
47211
+ }))))));
47179
47212
  };
47180
47213
 
47181
47214
  function ownKeys$1o(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
package/dist/index.umd.js CHANGED
@@ -2172,25 +2172,29 @@
2172
2172
  var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
2173
2173
  var getprice_discountpriceprops = props.actions.getprice_discountpriceprops;
2174
2174
  var ikimagecredcontext = props.actions.ikimagecredcontext;
2175
- var currentshowingimageindex = props.actions.currentshowingimageindex;
2175
+ var currentshowingimageindex_pro = props.actions.currentshowingimageindex;
2176
2176
  var StoreInfoprops = props.actions.StoreInfoprops;
2177
- // const DescriptionContent = props.actions.DescriptionContent;
2178
- var _useState = React.useState(''),
2177
+ var _useState = React.useState(currentshowingimageindex_pro),
2179
2178
  _useState2 = _slicedToArray__default["default"](_useState, 2),
2180
- shareUrl = _useState2[0],
2181
- setshareUrl = _useState2[1];
2179
+ currentshowingimageindex = _useState2[0],
2180
+ setcurrentshowingimageindex = _useState2[1];
2181
+ // const DescriptionContent = props.actions.DescriptionContent;
2182
2182
  var _useState3 = React.useState(''),
2183
2183
  _useState4 = _slicedToArray__default["default"](_useState3, 2),
2184
- title = _useState4[0],
2185
- settitle = _useState4[1];
2186
- var _useState5 = React.useState(fetchProductInfoQueryContext.data.data.productinfo),
2187
- _useState6 = _slicedToArray__default["default"](_useState5, 2);
2188
- _useState6[0];
2189
- var setitem = _useState6[1];
2190
- var _useState7 = React.useState(''),
2184
+ shareUrl = _useState4[0],
2185
+ setshareUrl = _useState4[1];
2186
+ var _useState5 = React.useState(''),
2187
+ _useState6 = _slicedToArray__default["default"](_useState5, 2),
2188
+ title = _useState6[0],
2189
+ settitle = _useState6[1];
2190
+ var _useState7 = React.useState(fetchProductInfoQueryContext.data.data.productinfo),
2191
2191
  _useState8 = _slicedToArray__default["default"](_useState7, 2);
2192
2192
  _useState8[0];
2193
- var settotalprice = _useState8[1];
2193
+ var setitem = _useState8[1];
2194
+ var _useState9 = React.useState(''),
2195
+ _useState10 = _slicedToArray__default["default"](_useState9, 2);
2196
+ _useState10[0];
2197
+ var settotalprice = _useState10[1];
2194
2198
  React.useEffect(function () {
2195
2199
  var itemobj = fetchProductInfoQueryContext.data.data.productinfo;
2196
2200
  if (stringIsEnglish(fetchProductInfoQueryContext.data.data.productinfo.name_en)) {
@@ -2295,6 +2299,7 @@
2295
2299
  totalprice = parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)).toFixed(2);
2296
2300
  }
2297
2301
  settotalprice(totalprice);
2302
+ setcurrentshowingimageindex(props.actions.currentshowingimageindex);
2298
2303
  }, [variantindexcompleted]);
2299
2304
  var ProductsSKUContainer = function ProductsSKUContainer() {
2300
2305
  return /*#__PURE__*/React__default["default"].createElement("p", {
@@ -2400,7 +2405,10 @@
2400
2405
  showNav: true,
2401
2406
  showPlayButton: false,
2402
2407
  showFullscreenButton: sectionproperties.showgalleryfullscreenbtn == 'Yes' ? true : false,
2403
- startIndex: currentshowingimageindex
2408
+ startIndex: currentshowingimageindex,
2409
+ onSlide: function onSlide(d) {
2410
+ setcurrentshowingimageindex(d);
2411
+ }
2404
2412
  })), productimagesarray.length != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
2405
2413
  "class": "w-100 d-none d-md-block"
2406
2414
  }, /*#__PURE__*/React__default["default"].createElement(ImageGallery__default["default"], {
@@ -2409,7 +2417,10 @@
2409
2417
  showNav: false,
2410
2418
  showPlayButton: false,
2411
2419
  showFullscreenButton: true,
2412
- startIndex: currentshowingimageindex
2420
+ startIndex: currentshowingimageindex,
2421
+ onSlide: function onSlide(d) {
2422
+ setcurrentshowingimageindex(d);
2423
+ }
2413
2424
  })))), /*#__PURE__*/React__default["default"].createElement("div", {
2414
2425
  className: sectionproperties.gallerystyle == 'Style 1' ? sectionproperties.evencols == 'Yes' ? langdetect == 'en' ? 'col-xl-6 col-lg-6 col-md-12 col-sm-12 pl-4 pr-0 pl-md-0 pr-md-0 pt-md-5' : 'col-xl-6 col-lg-6 col-md-12 col-sm-12 pl-0 pr-4 pl-md-0 pr-md-0 pt-md-5' : langdetect == 'en' ? 'col-xl-7 col-lg-7 col-md-12 col-sm-12 pl-4 pr-0 p-md-0' : 'col-xl-7 col-lg-7 col-md-12 col-sm-12 pl-0 pr-4 p-md-0' : 'col-xl-12 col-lg-12 col-md-12 col-sm-12 px-3 px-md-2'
2415
2426
  // className={
@@ -27902,8 +27913,8 @@
27902
27913
  return /*#__PURE__*/React__default["default"].createElement("div", {
27903
27914
  "class": "scrollhorizontalcard",
27904
27915
  style: {
27905
- marginLeft: langdetect == 'en' ? 0 : '35px',
27906
- marginRight: langdetect == 'en' ? '35px' : 0,
27916
+ marginLeft: langdetect == 'en' ? 0 : '10px',
27917
+ marginRight: langdetect == 'en' ? '10px' : 0,
27907
27918
  position: 'relative'
27908
27919
  },
27909
27920
  onClick: function onClick() {
@@ -27921,8 +27932,8 @@
27921
27932
  sectionpropertiesprops: sectionproperties,
27922
27933
  subheaderpropertiesprops: {
27923
27934
  subheaderpositionprops: 'in nav',
27924
- paddingLeftprops: '30px',
27925
- paddingRightprops: '30px',
27935
+ paddingLeftprops: '10px',
27936
+ paddingRightprops: '10px',
27926
27937
  subheadercontentpositionprops: langdetect == 'en' ? 'left' : 'right'
27927
27938
  },
27928
27939
  actions: actions
@@ -28216,7 +28227,7 @@
28216
28227
  function ownKeys$1R(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
28217
28228
  function _objectSpread$1R(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1R(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1R(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
28218
28229
  var Simpleheader = function Simpleheader(props) {
28219
- var _css, _css2, _header_cssstyles, _authdetailsContext$i, _logoarrayofobjects$, _logoarrayofobjects$2, _fetchcustomercartQue, _fetchcustomercartQue2, _authdetailsContext$c, _authdetailsContext$c2, _logoarrayofobjects$3, _logoarrayofobjects$4;
28230
+ var _css, _css2, _header_cssstyles, _authdetailsContext$i, _authdetailsContext$i2, _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$i3, _authdetailsContext$i4, _fetchcustomercartQue, _fetchcustomercartQue2, _authdetailsContext$c, _authdetailsContext$c2, _authdetailsContext$i5, _authdetailsContext$i6, _logoarrayofobjects$3, _logoarrayofobjects$4;
28220
28231
  var actions = props.actions;
28221
28232
  var _useState = React.useState(''),
28222
28233
  _useState2 = _slicedToArray__default["default"](_useState, 2),
@@ -28570,7 +28581,7 @@
28570
28581
  }, /*#__PURE__*/React__default["default"].createElement("div", {
28571
28582
  "class": " ".concat(headerstyles$9.navbar) + ' row m-0 w-100 d-flex flex-row align-items-center h-100 '
28572
28583
  }, /*#__PURE__*/React__default["default"].createElement("div", {
28573
- "class": sectionproperties.showhidesubheader == 'Show' && sectionproperties.subheaderposition == 'Besides Top Navigation' ? 'col-lg-2 p-0' : 'col-lg-4 p-0'
28584
+ "class": sectionproperties.showhidesubheader == 'Show' && sectionproperties.subheaderposition == 'Besides Top Navigation' ? authdetailsContext != undefined && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i2 = authdetailsContext.instinfo) === null || _authdetailsContext$i2 === void 0 || (_authdetailsContext$i2 = _authdetailsContext$i2.instcurrencies) === null || _authdetailsContext$i2 === void 0 ? void 0 : _authdetailsContext$i2.length) > 1 ? 'col-lg-4 p-0' : 'col-lg-2 p-0' : 'col-lg-4 p-0'
28574
28585
  }, /*#__PURE__*/React__default["default"].createElement("div", {
28575
28586
  "class": "".concat(header_cssstyles.header_logo) + ' d-flex align-items-center justify-content-center ',
28576
28587
  style: {
@@ -28588,7 +28599,7 @@
28588
28599
  maxHeight: '100%'
28589
28600
  }
28590
28601
  }))), /*#__PURE__*/React__default["default"].createElement("div", {
28591
- "class": sectionproperties.showhidesubheader == 'Show' && sectionproperties.subheaderposition == 'Besides Top Navigation' ? "".concat(headerstyles$9.nav__item) + ' col-lg-8 p-0 d-flex flex-row align-items-center ' : "".concat(headerstyles$9.nav__item) + ' col-lg-4 p-0 d-flex flex-row align-items-center ',
28602
+ "class": sectionproperties.showhidesubheader == 'Show' && sectionproperties.subheaderposition == 'Besides Top Navigation' ? authdetailsContext != undefined && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i3 = authdetailsContext.instinfo) === null || _authdetailsContext$i3 === void 0 || (_authdetailsContext$i3 = _authdetailsContext$i3.instcurrencies) === null || _authdetailsContext$i3 === void 0 ? void 0 : _authdetailsContext$i3.length) > 1 ? "".concat(headerstyles$9.nav__item) + ' col-lg-4 p-0 d-flex flex-row align-items-center ' : "".concat(headerstyles$9.nav__item) + ' col-lg-8 p-0 d-flex flex-row align-items-center ' : "".concat(headerstyles$9.nav__item) + ' col-lg-4 p-0 d-flex flex-row align-items-center ',
28592
28603
  style: {
28593
28604
  justifyContent: sectionproperties.header_centered == 'Centered' ? 'center' : 'start'
28594
28605
  }
@@ -28620,7 +28631,7 @@
28620
28631
  subheadercontentpositionprops: sectionproperties.header_centered == 'Centered' ? 'center' : 'start'
28621
28632
  }
28622
28633
  })), /*#__PURE__*/React__default["default"].createElement("div", {
28623
- "class": sectionproperties.showhidesubheader == 'Show' && sectionproperties.subheaderposition == 'Besides Top Navigation' ? 'col-lg-2 p-0 d-flex align-items-center justify-content-end' : 'col-lg-4 p-0 d-flex align-items-center justify-content-end'
28634
+ "class": sectionproperties.showhidesubheader == 'Show' && sectionproperties.subheaderposition == 'Besides Top Navigation' ? authdetailsContext != undefined && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i4 = authdetailsContext.instinfo) === null || _authdetailsContext$i4 === void 0 || (_authdetailsContext$i4 = _authdetailsContext$i4.instcurrencies) === null || _authdetailsContext$i4 === void 0 ? void 0 : _authdetailsContext$i4.length) > 1 ? 'col-lg-4 p-0 d-flex align-items-center justify-content-end' : 'col-lg-2 p-0 d-flex align-items-center justify-content-end' : 'col-lg-4 p-0 d-flex align-items-center justify-content-end'
28624
28635
  }, sectionproperties.searchbar_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("i", {
28625
28636
  className: header_cssstyles.searchicon + ' h-100 allcentered ',
28626
28637
  onClick: function onClick() {
@@ -28923,7 +28934,45 @@
28923
28934
  }
28924
28935
  }), /*#__PURE__*/React__default["default"].createElement("span", {
28925
28936
  "class": "ml-2 mr-2"
28926
- }, "English")))))))))), sectionproperties.showhidesubheader == 'Show' && sectionproperties.subheaderposition == 'Full Width' && /*#__PURE__*/React__default["default"].createElement("div", {
28937
+ }, "English"))))))), authdetailsContext != undefined && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i5 = authdetailsContext.instinfo) === null || _authdetailsContext$i5 === void 0 || (_authdetailsContext$i5 = _authdetailsContext$i5.instcurrencies) === null || _authdetailsContext$i5 === void 0 ? void 0 : _authdetailsContext$i5.length) > 1 && /*#__PURE__*/React__default["default"].createElement("div", {
28938
+ "class": ' d-flex align-items-center justify-content-end '
28939
+ }, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"], null, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Toggle, null, /*#__PURE__*/React__default["default"].createElement("li", {
28940
+ "class": ' d-flex align-items-center justify-content-center '
28941
+ }, langdetect == 'en' && /*#__PURE__*/React__default["default"].createElement("div", {
28942
+ "class": ' row m-0 w-100 d-flex align-items-center '
28943
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
28944
+ "class": "m-0 p-0 mr-2 ml-2"
28945
+ }, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en), /*#__PURE__*/React__default["default"].createElement(MdKeyboardArrowDown.MdKeyboardArrowDown, null)), langdetect == 'ar' && /*#__PURE__*/React__default["default"].createElement("div", {
28946
+ "class": ' row m-0 w-100 d-flex align-items-center '
28947
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
28948
+ "class": "m-0 p-0 ml-2 mr-2"
28949
+ }, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), /*#__PURE__*/React__default["default"].createElement(MdKeyboardArrowDown.MdKeyboardArrowDown, null)))), /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Menu, null, authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i6 = authdetailsContext.instinfo) === null || _authdetailsContext$i6 === void 0 || (_authdetailsContext$i6 = _authdetailsContext$i6.instcurrencies) === null || _authdetailsContext$i6 === void 0 ? void 0 : _authdetailsContext$i6.map(function (item, index) {
28950
+ var _authdetailsContext$i7;
28951
+ return /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Item, {
28952
+ onClick: function onClick() {
28953
+ setcurrencyfunccontext(item);
28954
+ }
28955
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
28956
+ "class": "row m-0 w-100"
28957
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
28958
+ "class": "col-lg-12 p-0 d-flex justify-content-start"
28959
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
28960
+ "class": "".concat(header_cssstyles.dropdownitemcontainer)
28961
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
28962
+ "class": 'dropdownitem d-flex align-items-center justify-content-center m-0 p-0',
28963
+ style: {
28964
+ fontSize: sectionproperties.dropdown_fontsize + 'px',
28965
+ fontWeight: sectionproperties.dropdown_fontweight,
28966
+ textTransform: sectionproperties.dropdown_texttransform
28967
+ }
28968
+ }, /*#__PURE__*/React__default["default"].createElement(FaMoneyBillWave.FaMoneyBillWave, null), /*#__PURE__*/React__default["default"].createElement("span", {
28969
+ "class": 'ml-2 mr-2'
28970
+ }, langdetect == 'en' ? item.currencyname_en : item.currencyname_ar)))), index != (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i7 = authdetailsContext.instinfo) === null || _authdetailsContext$i7 === void 0 || (_authdetailsContext$i7 = _authdetailsContext$i7.instcurrencies) === null || _authdetailsContext$i7 === void 0 ? void 0 : _authdetailsContext$i7.length) - 1 && /*#__PURE__*/React__default["default"].createElement("div", {
28971
+ "class": "col-lg-12 p-0"
28972
+ }, /*#__PURE__*/React__default["default"].createElement("hr", {
28973
+ "class": "m-0"
28974
+ }))));
28975
+ }))))))), sectionproperties.showhidesubheader == 'Show' && sectionproperties.subheaderposition == 'Full Width' && /*#__PURE__*/React__default["default"].createElement("div", {
28927
28976
  "class": "col-lg-12 p-0"
28928
28977
  }, /*#__PURE__*/React__default["default"].createElement(Subheader, {
28929
28978
  actions: actions,
@@ -46970,7 +47019,7 @@
46970
47019
  }, /*#__PURE__*/React__default["default"].createElement("div", {
46971
47020
  "class": "col-lg-12 p-0"
46972
47021
  }, /*#__PURE__*/React__default["default"].createElement("hr", null)), /*#__PURE__*/React__default["default"].createElement("div", {
46973
- "class": "col-lg-6 col-md-12 text-start flex-row d-md-none"
47022
+ "class": "col-lg-12 col-md-12 d-flex justify-content-center align-items-center flex-row d-md-none"
46974
47023
  }, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i7 = authdetailsContext.instinfo) === null || _authdetailsContext$i7 === void 0 ? void 0 : _authdetailsContext$i7.facebooklink) != null && /*#__PURE__*/React__default["default"].createElement("p", {
46975
47024
  "class": footerStyles.facebook_btn + ' m-0 p-0 allcentered mx-3 ',
46976
47025
  onClick: function onClick() {
@@ -47034,23 +47083,7 @@
47034
47083
  }
47035
47084
  }, /*#__PURE__*/React__default["default"].createElement(FaWhatsapp.FaWhatsapp, {
47036
47085
  size: sectionproperties.youtubebtniconfontsize
47037
- }))), /*#__PURE__*/React__default["default"].createElement("div", {
47038
- "class": "col-lg-6 col-md-12 d-flex align-items-center justify-content-end justify-content-md-center flex-row"
47039
- }, /*#__PURE__*/React__default["default"].createElement("img", {
47040
- "class": "".concat(footerStyles.apptore) + ' d-flex justify-content-center align-items-center cursor-pointer mx-2 ',
47041
- src: 'https://tabex-co.com/storage/StaticImages/appstore2.png',
47042
- onClick: function onClick() {
47043
- var _authdetailsContext$i24;
47044
- window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i24 = authdetailsContext.instinfo) === null || _authdetailsContext$i24 === void 0 ? void 0 : _authdetailsContext$i24.mobileapplink_appstore, '_blank');
47045
- }
47046
- }), /*#__PURE__*/React__default["default"].createElement("img", {
47047
- "class": "".concat(footerStyles.googleplay) + ' d-flex justify-content-center align-items-center cursor-pointer mx-2 ',
47048
- src: 'https://tabex-co.com/storage/StaticImages/googleplay2.png',
47049
- onClick: function onClick() {
47050
- var _authdetailsContext$i25;
47051
- window.open(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i25 = authdetailsContext.instinfo) === null || _authdetailsContext$i25 === void 0 ? void 0 : _authdetailsContext$i25.mobileapplink_playstore, '_blank');
47052
- }
47053
- })))));
47086
+ }))))));
47054
47087
  };
47055
47088
 
47056
47089
  function ownKeys$1o(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tabexseriescomponents",
3
- "version": "0.0.545",
3
+ "version": "0.0.547",
4
4
  "description": "your description",
5
5
  "main": "dist/index.cjs.js",
6
6
  "scripts": {