tabexseriescomponents 0.0.802 → 0.0.803

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
@@ -43942,10 +43942,98 @@ var TwoTieredWithCenteredLogoHeader = function TwoTieredWithCenteredLogoHeader(p
43942
43942
  }));
43943
43943
  };
43944
43944
 
43945
+ var FloatingIcons = function FloatingIcons(props) {
43946
+ var _authdetailsContext$i, _authdetailsContext$i2;
43947
+ var _useState = React.useState(''),
43948
+ _useState2 = _slicedToArray__default["default"](_useState, 2),
43949
+ sectionproperties = _useState2[0];
43950
+ _useState2[1];
43951
+ props.actions.lang;
43952
+ var langdetect = props.actions.langdetect;
43953
+ props.actions.setlang;
43954
+ props.actions.templatepropcontext;
43955
+ var authdetailsContext = props.actions.authdetailsContext;
43956
+ props.actions.templateproperties_context;
43957
+ props.actions;
43958
+ var header_cssstyles = {
43959
+ floatingwaicon: glamor.css({
43960
+ position: 'fixed',
43961
+ bottom: sectionproperties.floatingwhatsapppositionfrombottom + 'px',
43962
+ right: sectionproperties.floatingwhatsapppositionfromright + 'px',
43963
+ zIndex: 999999,
43964
+ transition: 'all 0.3s ease-out',
43965
+ width: sectionproperties.floatingwhatsappiconwidth + 'px',
43966
+ height: sectionproperties.floatingwhatappiconheight + 'px',
43967
+ background: sectionproperties.floatingwhatappiconbgcolor,
43968
+ borderRadius: sectionproperties.floatingwhatsappiconborderradius + 'px',
43969
+ fontSize: sectionproperties.floatingwhatsappiconfontsize + 'px',
43970
+ color: sectionproperties.floatingwhatsappiconcolor,
43971
+ ':hover': {
43972
+ color: sectionproperties.floatingwhatsappiconcoloronhover,
43973
+ background: sectionproperties.floatingwhatappiconbgcoloronhover
43974
+ }
43975
+ })
43976
+ };
43977
+ var whatsappUrl = "https://wa.me/".concat(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : _authdetailsContext$i.whatsappnumber, "?text=").concat(sectionproperties.directwabtnmessageen);
43978
+ var whatsappUrl_ar = "https://wa.me/".concat(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i2 = authdetailsContext.instinfo) === null || _authdetailsContext$i2 === void 0 ? void 0 : _authdetailsContext$i2.whatsappnumber, "?text=").concat(sectionproperties.directwabtnmessagear);
43979
+ return /*#__PURE__*/React__default["default"].createElement("div", {
43980
+ "class": '',
43981
+ style: {
43982
+ position: 'relative'
43983
+ }
43984
+ }, sectionproperties.showfloatingwaicon == 'Show' && /*#__PURE__*/React__default["default"].createElement("a", {
43985
+ href: langdetect == 'en' ? whatsappUrl : whatsappUrl_ar,
43986
+ target: "_blank",
43987
+ rel: "noopener noreferrer",
43988
+ style: {},
43989
+ "class": header_cssstyles.floatingwaicon + ' allcentered px-2 py-1 '
43990
+ }, /*#__PURE__*/React__default["default"].createElement(FaWhatsapp.FaWhatsapp, {
43991
+ size: sectionproperties.floatingwhatsappiconiconfontsize
43992
+ }), /*#__PURE__*/React__default["default"].createElement("span", {
43993
+ "class": langdetect == 'en' ? 'ml-1' : 'mr-1'
43994
+ }, langdetect == 'en' ? sectionproperties.floatingwhatsappicontexten : sectionproperties.floatingwhatsappicontextar)), sectionproperties.showfloatingbtn == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
43995
+ style: {
43996
+ position: 'fixed',
43997
+ bottom: sectionproperties.floatingbtnfrombottom + 'px',
43998
+ right: sectionproperties.floatingbtnfromright + 'px',
43999
+ zIndex: 999999,
44000
+ transition: 'all 0.3s ease-out',
44001
+ width: '100%'
44002
+ },
44003
+ "class": "text-end"
44004
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
44005
+ "class": header_cssstyles.floatingbtn + ' allcentered ',
44006
+ style: {},
44007
+ onClick: function onClick() {
44008
+ routingcountext(sectionproperties.floatingbtnlink, false, '');
44009
+ }
44010
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
44011
+ "class": "m-0 p-0"
44012
+ }, langdetect == 'en' ? sectionproperties.floatingbtntxten : sectionproperties.floatingbtntxtar))), sectionproperties.showfooterphonenumber == 'Show' && /*#__PURE__*/React__default["default"].createElement("a", {
44013
+ href: 'tel:' + (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.CuContactphonenumber),
44014
+ target: '_self',
44015
+ style: {
44016
+ position: 'fixed',
44017
+ bottom: sectionproperties.callppositionfrombottom + 'px',
44018
+ right: sectionproperties.callppositionfromright + 'px',
44019
+ zIndex: 999999,
44020
+ transition: 'all 0.3s ease-out'
44021
+ }
44022
+ }, /*#__PURE__*/React__default["default"].createElement("i", {
44023
+ "class": langdetect == 'en' ? 'h-100 d-flex align-items-center justify-content-center mr-2' : 'h-100 d-flex align-items-center justify-content-center ml-2'
44024
+ }, /*#__PURE__*/React__default["default"].createElement(FiPhone.FiPhone, {
44025
+ size: 30,
44026
+ color: sectionproperties.uppersection_iconcolor,
44027
+ style: {
44028
+ transform: langdetect == 'en' ? 'scaleX(1)' : 'scaleX(-1)'
44029
+ }
44030
+ }))));
44031
+ };
44032
+
43945
44033
  function ownKeys$1H(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; }
43946
44034
  function _objectSpread$1H(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1H(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1H(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
43947
44035
  var CenteredLogoHeaderWithSlider = function CenteredLogoHeaderWithSlider(props) {
43948
- var _authdetailsContext$i, _logoarrayofobjects$, _logoarrayofobjects$2, _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _authdetailsContext$i2, _authdetailsContext$i3;
44036
+ var _logoarrayofobjects$, _logoarrayofobjects$2, _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _authdetailsContext$i, _authdetailsContext$i2;
43949
44037
  var _useState = React.useState(''),
43950
44038
  _useState2 = _slicedToArray__default["default"](_useState, 2),
43951
44039
  sectionproperties = _useState2[0],
@@ -44274,60 +44362,10 @@ var CenteredLogoHeaderWithSlider = function CenteredLogoHeaderWithSlider(props)
44274
44362
  style: {
44275
44363
  position: 'relative'
44276
44364
  }
44277
- }, sectionproperties.showwhatsapp == 'Show' && /*#__PURE__*/React__default["default"].createElement("a", {
44278
- href: 'https://api.whatsapp.com/send?phone=' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : _authdetailsContext$i.whatsappnumber),
44279
- target: '_blank',
44280
- style: {
44281
- position: 'fixed',
44282
- bottom: sectionproperties.whatsapppositionfrombottom + 'px',
44283
- right: sectionproperties.whatsapppositionfromright + 'px',
44284
- zIndex: 999999,
44285
- transition: 'all 0.3s ease-out'
44286
- }
44287
- }, /*#__PURE__*/React__default["default"].createElement("img", {
44288
- src: 'https://tabex-co.com/storage/StaticImages/whatsapp.png',
44289
- style: {
44290
- width: '40px',
44291
- height: '40px',
44292
- cursor: 'pointer'
44293
- }
44294
- })), sectionproperties.showfloatingbtn == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
44295
- style: {
44296
- position: 'fixed',
44297
- bottom: sectionproperties.floatingbtnfrombottom + 'px',
44298
- right: sectionproperties.floatingbtnfromright + 'px',
44299
- zIndex: 999999,
44300
- transition: 'all 0.3s ease-out',
44301
- width: '100%'
44302
- },
44303
- "class": "text-end"
44304
- }, /*#__PURE__*/React__default["default"].createElement("div", {
44305
- "class": header_cssstyles.floatingbtn + ' allcentered ',
44306
- style: {},
44307
- onClick: function onClick() {
44308
- routingcountext(sectionproperties.floatingbtnlink, false, '');
44309
- }
44310
- }, /*#__PURE__*/React__default["default"].createElement("p", {
44311
- "class": "m-0 p-0"
44312
- }, langdetect == 'en' ? sectionproperties.floatingbtntxten : sectionproperties.floatingbtntxtar))), sectionproperties.showfooterphonenumber == 'Show' && /*#__PURE__*/React__default["default"].createElement("a", {
44313
- href: 'tel:' + (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.CuContactphonenumber),
44314
- target: '_self',
44315
- style: {
44316
- position: 'fixed',
44317
- bottom: sectionproperties.callppositionfrombottom + 'px',
44318
- right: sectionproperties.callppositionfromright + 'px',
44319
- zIndex: 999999,
44320
- transition: 'all 0.3s ease-out'
44321
- }
44322
- }, /*#__PURE__*/React__default["default"].createElement("i", {
44323
- "class": langdetect == 'en' ? 'h-100 d-flex align-items-center justify-content-center mr-2' : 'h-100 d-flex align-items-center justify-content-center ml-2'
44324
- }, /*#__PURE__*/React__default["default"].createElement(FiPhone.FiPhone, {
44325
- size: 30,
44326
- color: sectionproperties.uppersection_iconcolor,
44327
- style: {
44328
- transform: langdetect == 'en' ? 'scaleX(1)' : 'scaleX(-1)'
44329
- }
44330
- }))), templateproperties_context.showsocialmedia == 'Show' && /*#__PURE__*/React__default["default"].createElement(SocialMediaSection, {
44365
+ }, /*#__PURE__*/React__default["default"].createElement(FloatingIcons, {
44366
+ sectionpropertiesprops: sectionproperties,
44367
+ actions: actions
44368
+ }), templateproperties_context.showsocialmedia == 'Show' && /*#__PURE__*/React__default["default"].createElement(SocialMediaSection, {
44331
44369
  sectionpropertiesprops: sectionproperties,
44332
44370
  templateproperties_contextprops: templateproperties_context,
44333
44371
  actions: actions
@@ -44823,7 +44861,7 @@ var CenteredLogoHeaderWithSlider = function CenteredLogoHeaderWithSlider(props)
44823
44861
  "class": "m-0 p-0"
44824
44862
  }, " ", langdetect == 'en' ? item.pagename : item.pagename_ar))));
44825
44863
  }
44826
- }), 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 && /*#__PURE__*/React__default["default"].createElement("div", {
44864
+ }), authdetailsContext != undefined && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 || (_authdetailsContext$i = _authdetailsContext$i.instcurrencies) === null || _authdetailsContext$i === void 0 ? void 0 : _authdetailsContext$i.length) > 1 && /*#__PURE__*/React__default["default"].createElement("div", {
44827
44865
  "class": ' col-lg-12 p-0 d-flex align-items-center justify-content-start cursor-pointer '
44828
44866
  }, /*#__PURE__*/React__default["default"].createElement("div", {
44829
44867
  "class": "row m-0 w-100"
@@ -44847,7 +44885,7 @@ var CenteredLogoHeaderWithSlider = function CenteredLogoHeaderWithSlider(props)
44847
44885
  background: '#f4f4f4',
44848
44886
  borderRadius: 5
44849
44887
  }
44850
- }, 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.map(function (item, index) {
44888
+ }, 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.map(function (item, index) {
44851
44889
  return /*#__PURE__*/React__default["default"].createElement("div", {
44852
44890
  "class": header_cssstyles.navbarItem + ' col-lg-12 p-0 text-start py-2 px-2 cursor-pointer ',
44853
44891
  onClick: function onClick() {
package/dist/index.esm.js CHANGED
@@ -43893,10 +43893,98 @@ var TwoTieredWithCenteredLogoHeader = function TwoTieredWithCenteredLogoHeader(p
43893
43893
  }));
43894
43894
  };
43895
43895
 
43896
+ var FloatingIcons = function FloatingIcons(props) {
43897
+ var _authdetailsContext$i, _authdetailsContext$i2;
43898
+ var _useState = useState(''),
43899
+ _useState2 = _slicedToArray(_useState, 2),
43900
+ sectionproperties = _useState2[0];
43901
+ _useState2[1];
43902
+ props.actions.lang;
43903
+ var langdetect = props.actions.langdetect;
43904
+ props.actions.setlang;
43905
+ props.actions.templatepropcontext;
43906
+ var authdetailsContext = props.actions.authdetailsContext;
43907
+ props.actions.templateproperties_context;
43908
+ props.actions;
43909
+ var header_cssstyles = {
43910
+ floatingwaicon: css({
43911
+ position: 'fixed',
43912
+ bottom: sectionproperties.floatingwhatsapppositionfrombottom + 'px',
43913
+ right: sectionproperties.floatingwhatsapppositionfromright + 'px',
43914
+ zIndex: 999999,
43915
+ transition: 'all 0.3s ease-out',
43916
+ width: sectionproperties.floatingwhatsappiconwidth + 'px',
43917
+ height: sectionproperties.floatingwhatappiconheight + 'px',
43918
+ background: sectionproperties.floatingwhatappiconbgcolor,
43919
+ borderRadius: sectionproperties.floatingwhatsappiconborderradius + 'px',
43920
+ fontSize: sectionproperties.floatingwhatsappiconfontsize + 'px',
43921
+ color: sectionproperties.floatingwhatsappiconcolor,
43922
+ ':hover': {
43923
+ color: sectionproperties.floatingwhatsappiconcoloronhover,
43924
+ background: sectionproperties.floatingwhatappiconbgcoloronhover
43925
+ }
43926
+ })
43927
+ };
43928
+ var whatsappUrl = "https://wa.me/".concat(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : _authdetailsContext$i.whatsappnumber, "?text=").concat(sectionproperties.directwabtnmessageen);
43929
+ var whatsappUrl_ar = "https://wa.me/".concat(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i2 = authdetailsContext.instinfo) === null || _authdetailsContext$i2 === void 0 ? void 0 : _authdetailsContext$i2.whatsappnumber, "?text=").concat(sectionproperties.directwabtnmessagear);
43930
+ return /*#__PURE__*/React.createElement("div", {
43931
+ "class": '',
43932
+ style: {
43933
+ position: 'relative'
43934
+ }
43935
+ }, sectionproperties.showfloatingwaicon == 'Show' && /*#__PURE__*/React.createElement("a", {
43936
+ href: langdetect == 'en' ? whatsappUrl : whatsappUrl_ar,
43937
+ target: "_blank",
43938
+ rel: "noopener noreferrer",
43939
+ style: {},
43940
+ "class": header_cssstyles.floatingwaicon + ' allcentered px-2 py-1 '
43941
+ }, /*#__PURE__*/React.createElement(FaWhatsapp, {
43942
+ size: sectionproperties.floatingwhatsappiconiconfontsize
43943
+ }), /*#__PURE__*/React.createElement("span", {
43944
+ "class": langdetect == 'en' ? 'ml-1' : 'mr-1'
43945
+ }, langdetect == 'en' ? sectionproperties.floatingwhatsappicontexten : sectionproperties.floatingwhatsappicontextar)), sectionproperties.showfloatingbtn == 'Show' && /*#__PURE__*/React.createElement("div", {
43946
+ style: {
43947
+ position: 'fixed',
43948
+ bottom: sectionproperties.floatingbtnfrombottom + 'px',
43949
+ right: sectionproperties.floatingbtnfromright + 'px',
43950
+ zIndex: 999999,
43951
+ transition: 'all 0.3s ease-out',
43952
+ width: '100%'
43953
+ },
43954
+ "class": "text-end"
43955
+ }, /*#__PURE__*/React.createElement("div", {
43956
+ "class": header_cssstyles.floatingbtn + ' allcentered ',
43957
+ style: {},
43958
+ onClick: function onClick() {
43959
+ routingcountext(sectionproperties.floatingbtnlink, false, '');
43960
+ }
43961
+ }, /*#__PURE__*/React.createElement("p", {
43962
+ "class": "m-0 p-0"
43963
+ }, langdetect == 'en' ? sectionproperties.floatingbtntxten : sectionproperties.floatingbtntxtar))), sectionproperties.showfooterphonenumber == 'Show' && /*#__PURE__*/React.createElement("a", {
43964
+ href: 'tel:' + (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.CuContactphonenumber),
43965
+ target: '_self',
43966
+ style: {
43967
+ position: 'fixed',
43968
+ bottom: sectionproperties.callppositionfrombottom + 'px',
43969
+ right: sectionproperties.callppositionfromright + 'px',
43970
+ zIndex: 999999,
43971
+ transition: 'all 0.3s ease-out'
43972
+ }
43973
+ }, /*#__PURE__*/React.createElement("i", {
43974
+ "class": langdetect == 'en' ? 'h-100 d-flex align-items-center justify-content-center mr-2' : 'h-100 d-flex align-items-center justify-content-center ml-2'
43975
+ }, /*#__PURE__*/React.createElement(FiPhone, {
43976
+ size: 30,
43977
+ color: sectionproperties.uppersection_iconcolor,
43978
+ style: {
43979
+ transform: langdetect == 'en' ? 'scaleX(1)' : 'scaleX(-1)'
43980
+ }
43981
+ }))));
43982
+ };
43983
+
43896
43984
  function ownKeys$1H(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; }
43897
43985
  function _objectSpread$1H(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1H(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1H(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
43898
43986
  var CenteredLogoHeaderWithSlider = function CenteredLogoHeaderWithSlider(props) {
43899
- var _authdetailsContext$i, _logoarrayofobjects$, _logoarrayofobjects$2, _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _authdetailsContext$i2, _authdetailsContext$i3;
43987
+ var _logoarrayofobjects$, _logoarrayofobjects$2, _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _authdetailsContext$i, _authdetailsContext$i2;
43900
43988
  var _useState = useState(''),
43901
43989
  _useState2 = _slicedToArray(_useState, 2),
43902
43990
  sectionproperties = _useState2[0],
@@ -44225,60 +44313,10 @@ var CenteredLogoHeaderWithSlider = function CenteredLogoHeaderWithSlider(props)
44225
44313
  style: {
44226
44314
  position: 'relative'
44227
44315
  }
44228
- }, sectionproperties.showwhatsapp == 'Show' && /*#__PURE__*/React.createElement("a", {
44229
- href: 'https://api.whatsapp.com/send?phone=' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : _authdetailsContext$i.whatsappnumber),
44230
- target: '_blank',
44231
- style: {
44232
- position: 'fixed',
44233
- bottom: sectionproperties.whatsapppositionfrombottom + 'px',
44234
- right: sectionproperties.whatsapppositionfromright + 'px',
44235
- zIndex: 999999,
44236
- transition: 'all 0.3s ease-out'
44237
- }
44238
- }, /*#__PURE__*/React.createElement("img", {
44239
- src: 'https://tabex-co.com/storage/StaticImages/whatsapp.png',
44240
- style: {
44241
- width: '40px',
44242
- height: '40px',
44243
- cursor: 'pointer'
44244
- }
44245
- })), sectionproperties.showfloatingbtn == 'Show' && /*#__PURE__*/React.createElement("div", {
44246
- style: {
44247
- position: 'fixed',
44248
- bottom: sectionproperties.floatingbtnfrombottom + 'px',
44249
- right: sectionproperties.floatingbtnfromright + 'px',
44250
- zIndex: 999999,
44251
- transition: 'all 0.3s ease-out',
44252
- width: '100%'
44253
- },
44254
- "class": "text-end"
44255
- }, /*#__PURE__*/React.createElement("div", {
44256
- "class": header_cssstyles.floatingbtn + ' allcentered ',
44257
- style: {},
44258
- onClick: function onClick() {
44259
- routingcountext(sectionproperties.floatingbtnlink, false, '');
44260
- }
44261
- }, /*#__PURE__*/React.createElement("p", {
44262
- "class": "m-0 p-0"
44263
- }, langdetect == 'en' ? sectionproperties.floatingbtntxten : sectionproperties.floatingbtntxtar))), sectionproperties.showfooterphonenumber == 'Show' && /*#__PURE__*/React.createElement("a", {
44264
- href: 'tel:' + (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.CuContactphonenumber),
44265
- target: '_self',
44266
- style: {
44267
- position: 'fixed',
44268
- bottom: sectionproperties.callppositionfrombottom + 'px',
44269
- right: sectionproperties.callppositionfromright + 'px',
44270
- zIndex: 999999,
44271
- transition: 'all 0.3s ease-out'
44272
- }
44273
- }, /*#__PURE__*/React.createElement("i", {
44274
- "class": langdetect == 'en' ? 'h-100 d-flex align-items-center justify-content-center mr-2' : 'h-100 d-flex align-items-center justify-content-center ml-2'
44275
- }, /*#__PURE__*/React.createElement(FiPhone, {
44276
- size: 30,
44277
- color: sectionproperties.uppersection_iconcolor,
44278
- style: {
44279
- transform: langdetect == 'en' ? 'scaleX(1)' : 'scaleX(-1)'
44280
- }
44281
- }))), templateproperties_context.showsocialmedia == 'Show' && /*#__PURE__*/React.createElement(SocialMediaSection, {
44316
+ }, /*#__PURE__*/React.createElement(FloatingIcons, {
44317
+ sectionpropertiesprops: sectionproperties,
44318
+ actions: actions
44319
+ }), templateproperties_context.showsocialmedia == 'Show' && /*#__PURE__*/React.createElement(SocialMediaSection, {
44282
44320
  sectionpropertiesprops: sectionproperties,
44283
44321
  templateproperties_contextprops: templateproperties_context,
44284
44322
  actions: actions
@@ -44774,7 +44812,7 @@ var CenteredLogoHeaderWithSlider = function CenteredLogoHeaderWithSlider(props)
44774
44812
  "class": "m-0 p-0"
44775
44813
  }, " ", langdetect == 'en' ? item.pagename : item.pagename_ar))));
44776
44814
  }
44777
- }), 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 && /*#__PURE__*/React.createElement("div", {
44815
+ }), authdetailsContext != undefined && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 || (_authdetailsContext$i = _authdetailsContext$i.instcurrencies) === null || _authdetailsContext$i === void 0 ? void 0 : _authdetailsContext$i.length) > 1 && /*#__PURE__*/React.createElement("div", {
44778
44816
  "class": ' col-lg-12 p-0 d-flex align-items-center justify-content-start cursor-pointer '
44779
44817
  }, /*#__PURE__*/React.createElement("div", {
44780
44818
  "class": "row m-0 w-100"
@@ -44798,7 +44836,7 @@ var CenteredLogoHeaderWithSlider = function CenteredLogoHeaderWithSlider(props)
44798
44836
  background: '#f4f4f4',
44799
44837
  borderRadius: 5
44800
44838
  }
44801
- }, 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.map(function (item, index) {
44839
+ }, 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.map(function (item, index) {
44802
44840
  return /*#__PURE__*/React.createElement("div", {
44803
44841
  "class": header_cssstyles.navbarItem + ' col-lg-12 p-0 text-start py-2 px-2 cursor-pointer ',
44804
44842
  onClick: function onClick() {
package/dist/index.umd.js CHANGED
@@ -43758,10 +43758,98 @@
43758
43758
  }));
43759
43759
  };
43760
43760
 
43761
+ var FloatingIcons = function FloatingIcons(props) {
43762
+ var _authdetailsContext$i, _authdetailsContext$i2;
43763
+ var _useState = React.useState(''),
43764
+ _useState2 = _slicedToArray__default["default"](_useState, 2),
43765
+ sectionproperties = _useState2[0];
43766
+ _useState2[1];
43767
+ props.actions.lang;
43768
+ var langdetect = props.actions.langdetect;
43769
+ props.actions.setlang;
43770
+ props.actions.templatepropcontext;
43771
+ var authdetailsContext = props.actions.authdetailsContext;
43772
+ props.actions.templateproperties_context;
43773
+ props.actions;
43774
+ var header_cssstyles = {
43775
+ floatingwaicon: glamor.css({
43776
+ position: 'fixed',
43777
+ bottom: sectionproperties.floatingwhatsapppositionfrombottom + 'px',
43778
+ right: sectionproperties.floatingwhatsapppositionfromright + 'px',
43779
+ zIndex: 999999,
43780
+ transition: 'all 0.3s ease-out',
43781
+ width: sectionproperties.floatingwhatsappiconwidth + 'px',
43782
+ height: sectionproperties.floatingwhatappiconheight + 'px',
43783
+ background: sectionproperties.floatingwhatappiconbgcolor,
43784
+ borderRadius: sectionproperties.floatingwhatsappiconborderradius + 'px',
43785
+ fontSize: sectionproperties.floatingwhatsappiconfontsize + 'px',
43786
+ color: sectionproperties.floatingwhatsappiconcolor,
43787
+ ':hover': {
43788
+ color: sectionproperties.floatingwhatsappiconcoloronhover,
43789
+ background: sectionproperties.floatingwhatappiconbgcoloronhover
43790
+ }
43791
+ })
43792
+ };
43793
+ var whatsappUrl = "https://wa.me/".concat(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : _authdetailsContext$i.whatsappnumber, "?text=").concat(sectionproperties.directwabtnmessageen);
43794
+ var whatsappUrl_ar = "https://wa.me/".concat(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i2 = authdetailsContext.instinfo) === null || _authdetailsContext$i2 === void 0 ? void 0 : _authdetailsContext$i2.whatsappnumber, "?text=").concat(sectionproperties.directwabtnmessagear);
43795
+ return /*#__PURE__*/React__default["default"].createElement("div", {
43796
+ "class": '',
43797
+ style: {
43798
+ position: 'relative'
43799
+ }
43800
+ }, sectionproperties.showfloatingwaicon == 'Show' && /*#__PURE__*/React__default["default"].createElement("a", {
43801
+ href: langdetect == 'en' ? whatsappUrl : whatsappUrl_ar,
43802
+ target: "_blank",
43803
+ rel: "noopener noreferrer",
43804
+ style: {},
43805
+ "class": header_cssstyles.floatingwaicon + ' allcentered px-2 py-1 '
43806
+ }, /*#__PURE__*/React__default["default"].createElement(FaWhatsapp.FaWhatsapp, {
43807
+ size: sectionproperties.floatingwhatsappiconiconfontsize
43808
+ }), /*#__PURE__*/React__default["default"].createElement("span", {
43809
+ "class": langdetect == 'en' ? 'ml-1' : 'mr-1'
43810
+ }, langdetect == 'en' ? sectionproperties.floatingwhatsappicontexten : sectionproperties.floatingwhatsappicontextar)), sectionproperties.showfloatingbtn == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
43811
+ style: {
43812
+ position: 'fixed',
43813
+ bottom: sectionproperties.floatingbtnfrombottom + 'px',
43814
+ right: sectionproperties.floatingbtnfromright + 'px',
43815
+ zIndex: 999999,
43816
+ transition: 'all 0.3s ease-out',
43817
+ width: '100%'
43818
+ },
43819
+ "class": "text-end"
43820
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
43821
+ "class": header_cssstyles.floatingbtn + ' allcentered ',
43822
+ style: {},
43823
+ onClick: function onClick() {
43824
+ routingcountext(sectionproperties.floatingbtnlink, false, '');
43825
+ }
43826
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
43827
+ "class": "m-0 p-0"
43828
+ }, langdetect == 'en' ? sectionproperties.floatingbtntxten : sectionproperties.floatingbtntxtar))), sectionproperties.showfooterphonenumber == 'Show' && /*#__PURE__*/React__default["default"].createElement("a", {
43829
+ href: 'tel:' + (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.CuContactphonenumber),
43830
+ target: '_self',
43831
+ style: {
43832
+ position: 'fixed',
43833
+ bottom: sectionproperties.callppositionfrombottom + 'px',
43834
+ right: sectionproperties.callppositionfromright + 'px',
43835
+ zIndex: 999999,
43836
+ transition: 'all 0.3s ease-out'
43837
+ }
43838
+ }, /*#__PURE__*/React__default["default"].createElement("i", {
43839
+ "class": langdetect == 'en' ? 'h-100 d-flex align-items-center justify-content-center mr-2' : 'h-100 d-flex align-items-center justify-content-center ml-2'
43840
+ }, /*#__PURE__*/React__default["default"].createElement(FiPhone.FiPhone, {
43841
+ size: 30,
43842
+ color: sectionproperties.uppersection_iconcolor,
43843
+ style: {
43844
+ transform: langdetect == 'en' ? 'scaleX(1)' : 'scaleX(-1)'
43845
+ }
43846
+ }))));
43847
+ };
43848
+
43761
43849
  function ownKeys$1H(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; }
43762
43850
  function _objectSpread$1H(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1H(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1H(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
43763
43851
  var CenteredLogoHeaderWithSlider = function CenteredLogoHeaderWithSlider(props) {
43764
- var _authdetailsContext$i, _logoarrayofobjects$, _logoarrayofobjects$2, _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _authdetailsContext$i2, _authdetailsContext$i3;
43852
+ var _logoarrayofobjects$, _logoarrayofobjects$2, _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _authdetailsContext$i, _authdetailsContext$i2;
43765
43853
  var _useState = React.useState(''),
43766
43854
  _useState2 = _slicedToArray__default["default"](_useState, 2),
43767
43855
  sectionproperties = _useState2[0],
@@ -44090,60 +44178,10 @@
44090
44178
  style: {
44091
44179
  position: 'relative'
44092
44180
  }
44093
- }, sectionproperties.showwhatsapp == 'Show' && /*#__PURE__*/React__default["default"].createElement("a", {
44094
- href: 'https://api.whatsapp.com/send?phone=' + (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : _authdetailsContext$i.whatsappnumber),
44095
- target: '_blank',
44096
- style: {
44097
- position: 'fixed',
44098
- bottom: sectionproperties.whatsapppositionfrombottom + 'px',
44099
- right: sectionproperties.whatsapppositionfromright + 'px',
44100
- zIndex: 999999,
44101
- transition: 'all 0.3s ease-out'
44102
- }
44103
- }, /*#__PURE__*/React__default["default"].createElement("img", {
44104
- src: 'https://tabex-co.com/storage/StaticImages/whatsapp.png',
44105
- style: {
44106
- width: '40px',
44107
- height: '40px',
44108
- cursor: 'pointer'
44109
- }
44110
- })), sectionproperties.showfloatingbtn == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
44111
- style: {
44112
- position: 'fixed',
44113
- bottom: sectionproperties.floatingbtnfrombottom + 'px',
44114
- right: sectionproperties.floatingbtnfromright + 'px',
44115
- zIndex: 999999,
44116
- transition: 'all 0.3s ease-out',
44117
- width: '100%'
44118
- },
44119
- "class": "text-end"
44120
- }, /*#__PURE__*/React__default["default"].createElement("div", {
44121
- "class": header_cssstyles.floatingbtn + ' allcentered ',
44122
- style: {},
44123
- onClick: function onClick() {
44124
- routingcountext(sectionproperties.floatingbtnlink, false, '');
44125
- }
44126
- }, /*#__PURE__*/React__default["default"].createElement("p", {
44127
- "class": "m-0 p-0"
44128
- }, langdetect == 'en' ? sectionproperties.floatingbtntxten : sectionproperties.floatingbtntxtar))), sectionproperties.showfooterphonenumber == 'Show' && /*#__PURE__*/React__default["default"].createElement("a", {
44129
- href: 'tel:' + (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.CuContactphonenumber),
44130
- target: '_self',
44131
- style: {
44132
- position: 'fixed',
44133
- bottom: sectionproperties.callppositionfrombottom + 'px',
44134
- right: sectionproperties.callppositionfromright + 'px',
44135
- zIndex: 999999,
44136
- transition: 'all 0.3s ease-out'
44137
- }
44138
- }, /*#__PURE__*/React__default["default"].createElement("i", {
44139
- "class": langdetect == 'en' ? 'h-100 d-flex align-items-center justify-content-center mr-2' : 'h-100 d-flex align-items-center justify-content-center ml-2'
44140
- }, /*#__PURE__*/React__default["default"].createElement(FiPhone.FiPhone, {
44141
- size: 30,
44142
- color: sectionproperties.uppersection_iconcolor,
44143
- style: {
44144
- transform: langdetect == 'en' ? 'scaleX(1)' : 'scaleX(-1)'
44145
- }
44146
- }))), templateproperties_context.showsocialmedia == 'Show' && /*#__PURE__*/React__default["default"].createElement(SocialMediaSection, {
44181
+ }, /*#__PURE__*/React__default["default"].createElement(FloatingIcons, {
44182
+ sectionpropertiesprops: sectionproperties,
44183
+ actions: actions
44184
+ }), templateproperties_context.showsocialmedia == 'Show' && /*#__PURE__*/React__default["default"].createElement(SocialMediaSection, {
44147
44185
  sectionpropertiesprops: sectionproperties,
44148
44186
  templateproperties_contextprops: templateproperties_context,
44149
44187
  actions: actions
@@ -44639,7 +44677,7 @@
44639
44677
  "class": "m-0 p-0"
44640
44678
  }, " ", langdetect == 'en' ? item.pagename : item.pagename_ar))));
44641
44679
  }
44642
- }), 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 && /*#__PURE__*/React__default["default"].createElement("div", {
44680
+ }), authdetailsContext != undefined && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 || (_authdetailsContext$i = _authdetailsContext$i.instcurrencies) === null || _authdetailsContext$i === void 0 ? void 0 : _authdetailsContext$i.length) > 1 && /*#__PURE__*/React__default["default"].createElement("div", {
44643
44681
  "class": ' col-lg-12 p-0 d-flex align-items-center justify-content-start cursor-pointer '
44644
44682
  }, /*#__PURE__*/React__default["default"].createElement("div", {
44645
44683
  "class": "row m-0 w-100"
@@ -44663,7 +44701,7 @@
44663
44701
  background: '#f4f4f4',
44664
44702
  borderRadius: 5
44665
44703
  }
44666
- }, 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.map(function (item, index) {
44704
+ }, 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.map(function (item, index) {
44667
44705
  return /*#__PURE__*/React__default["default"].createElement("div", {
44668
44706
  "class": header_cssstyles.navbarItem + ' col-lg-12 p-0 text-start py-2 px-2 cursor-pointer ',
44669
44707
  onClick: function onClick() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tabexseriescomponents",
3
- "version": "0.0.802",
3
+ "version": "0.0.803",
4
4
  "description": "your description",
5
5
  "main": "dist/index.cjs.js",
6
6
  "scripts": {