tabexseriescomponents 0.0.64 → 0.0.66

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.
Files changed (178) hide show
  1. package/dist/index.cjs.js +25023 -16634
  2. package/dist/index.esm.js +25033 -16645
  3. package/dist/index.umd.js +24824 -16437
  4. package/package.json +1 -1
  5. package/src1-10/Contexts/LanguageContext.jsx +347 -0
  6. package/src1-10/Contexts/ProductsCardsSectionContext.jsx +28 -0
  7. package/src1-10/StylesJS/Customstyles.js +235 -0
  8. package/src1-10/TabexComponents/Cards/CategoryCardwithhoveraction/CategoryCardwithhoveraction.jsx +205 -0
  9. package/src1-10/TabexComponents/Cards/Categorycard_fullimage/Categorycard_fullimage.jsx +239 -0
  10. package/src1-10/TabexComponents/Cards/Categorycard_slidebgscaled/Categorycard_slidebgscaled.jsx +198 -0
  11. package/src1-10/TabexComponents/Cards/Categorycard_with_trianglebg/Categorycard_with_trianglebg.jsx +169 -0
  12. package/src1-10/TabexComponents/Cards/Categorycard_with_twolinestransition/Categorycard_with_twolinestransition.jsx +180 -0
  13. package/src1-10/TabexComponents/Cards/Categorycard_withshapes/Categorycard_withshapes.jsx +162 -0
  14. package/src1-10/TabexComponents/Cards/Categorycard_withtext/Categorycard_withtext.jsx +184 -0
  15. package/src1-10/TabexComponents/Cards/Classiccategorycard/Classiccategorycard.jsx +149 -0
  16. package/src1-10/TabexComponents/Cards/Horizontalcard/Horizontalcard.jsx +271 -0
  17. package/src1-10/TabexComponents/Cards/MenuCard/MenuCard.jsx +546 -0
  18. package/src1-10/TabexComponents/Cards/ModernProductCard/ModernProductCard.jsx +474 -0
  19. package/src1-10/TabexComponents/Cards/Productcard6/Productcard6.jsx +290 -0
  20. package/src1-10/TabexComponents/Cards/Productcard7/Productcard7.jsx +278 -0
  21. package/src1-10/TabexComponents/Cards/Productcard_animatedbuttons/Productcard_animatedbuttons.jsx +293 -0
  22. package/src1-10/TabexComponents/Cards/Productcard_with_circularbg/Productcard_with_circularbg.jsx +278 -0
  23. package/src1-10/TabexComponents/Cards/Productcard_with_circularhover/Productcard_with_circularhover.jsx +312 -0
  24. package/src1-10/TabexComponents/Cards/Productcard_with_slideanimation/Productcard_with_slideanimation.jsx +279 -0
  25. package/src1-10/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants.jsx +293 -0
  26. package/src1-10/TabexComponents/Cards/Productcard_with_zoominonhover/Productcard_with_zoominonhover.jsx +456 -0
  27. package/src1-10/TabexComponents/Cards/Productcarddefault/Productcarddefault.jsx +272 -0
  28. package/src1-10/TabexComponents/Cards/Productccard_with_imageontopleft/Productccard_with_imageontopleft.jsx +286 -0
  29. package/src1-10/TabexComponents/Cards/Prouductcard_with_zoomhover/Prouductcard_with_zoomhover.jsx +127 -0
  30. package/src1-10/TabexComponents/Cards/Simplecategorycardwithtextbelow/Simplecategorycardwithtextbelow.jsx +126 -0
  31. package/src1-10/TabexComponents/Cards/Simpleproductcard/Simpleproductcard.jsx +292 -0
  32. package/src1-10/TabexComponents/Cards/StylishProductCard/StylishProductCard.jsx +281 -0
  33. package/src1-10/TabexComponents/Footer/Footer1/Footer1.jsx +418 -0
  34. package/src1-10/TabexComponents/Footer/Footer2/Footer2.jsx +381 -0
  35. package/src1-10/TabexComponents/Footer/Footer3/Footer3.jsx +316 -0
  36. package/src1-10/TabexComponents/Footer/Footer4/Footer4.jsx +437 -0
  37. package/src1-10/TabexComponents/Footer/Footer5/Footer5.jsx +488 -0
  38. package/src1-10/TabexComponents/Footer/Footer6/Footer6.jsx +286 -0
  39. package/src1-10/TabexComponents/Footer/Footer7/Footer7.jsx +370 -0
  40. package/src1-10/TabexComponents/Footer/Simplefooter/Simplefooter.jsx +231 -0
  41. package/src1-10/TabexComponents/Generalfiles/images/egyptflag.png +0 -0
  42. package/src1-10/TabexComponents/Generalfiles/images/noimage.png +0 -0
  43. package/src1-10/TabexComponents/Generalfiles/images/payment/cod.png +0 -0
  44. package/src1-10/TabexComponents/Generalfiles/images/payment/fawry.png +0 -0
  45. package/src1-10/TabexComponents/Generalfiles/images/payment/payment.png +0 -0
  46. package/src1-10/TabexComponents/Generalfiles/images/payment/paymob.png +0 -0
  47. package/src1-10/TabexComponents/Generalfiles/images/payment/paypal.png +0 -0
  48. package/src1-10/TabexComponents/Generalfiles/images/payment/visa.png +0 -0
  49. package/src1-10/TabexComponents/Generalfiles/images/shoppingcart.png +0 -0
  50. package/src1-10/TabexComponents/Generalfiles/images/tabexlogo.png +0 -0
  51. package/src1-10/TabexComponents/Generalfiles/images/unknownmaleuser.png +0 -0
  52. package/src1-10/TabexComponents/Generalfiles/images/usflag.png +0 -0
  53. package/src1-10/TabexComponents/Generalfiles/images/whatsapp.png +0 -0
  54. package/src1-10/TabexComponents/Headers/AllinoneHeader/AllinoneHeader.jsx +722 -0
  55. package/src1-10/TabexComponents/Headers/ClassicHeader/ClassicHeader.jsx +681 -0
  56. package/src1-10/TabexComponents/Headers/Header4/Header4.jsx +614 -0
  57. package/src1-10/TabexComponents/Headers/Header6/Header6.jsx +666 -0
  58. package/src1-10/TabexComponents/Headers/Header8/Header8.jsx +888 -0
  59. package/src1-10/TabexComponents/Headers/HeaderRestaurant/HeaderRestaurant.jsx +710 -0
  60. package/src1-10/TabexComponents/Headers/Header_threesectionslogocentered/Header_threesectionslogocentered.jsx +769 -0
  61. package/src1-10/TabexComponents/Headers/Headerresponsive/Headerresponsive.jsx +666 -0
  62. package/src1-10/TabexComponents/Headers/HeaderwithContactinfo/HeaderwithContactinfo.jsx +940 -0
  63. package/src1-10/TabexComponents/Headers/Modernheader/Modernheader.jsx +714 -0
  64. package/src1-10/TabexComponents/Headers/StylishHeader/StylishHeader.jsx +833 -0
  65. package/src1-10/TabexComponents/Headers/Subheader/Subheader.jsx +239 -0
  66. package/src1-10/TabexComponents/Sections/BackgroundImages/Backgroundimage1/Backgroundimage1.jsx +312 -0
  67. package/src1-10/TabexComponents/Sections/BackgroundImages/Backgroundimage_with_toppill/Backgroundimage_with_toppill.jsx +278 -0
  68. package/src1-10/TabexComponents/Sections/BackgroundImages/BackgroundimageandTextsection/BackgroundimageandTextsection.jsx +129 -0
  69. package/src1-10/TabexComponents/Sections/BackgroundImages/Section_with_rightbgcont/Section_with_rightbgcont.jsx +153 -0
  70. package/src1-10/TabexComponents/Sections/BackgroundImages/Threebgimages/Threebgimages.jsx +295 -0
  71. package/src1-10/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages.jsx +409 -0
  72. package/src1-10/TabexComponents/Sections/Cards/CardsSection/CardsSection.jsx +793 -0
  73. package/src1-10/TabexComponents/Sections/Cards/CardsSection2/CardsSection2.jsx +486 -0
  74. package/src1-10/TabexComponents/Sections/Cards/CardsSection7/CardsSection7.js +888 -0
  75. package/src1-10/TabexComponents/Sections/Cards/CardsSection8/CardsSection8.js +419 -0
  76. package/src1-10/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.jsx +512 -0
  77. package/src1-10/TabexComponents/Sections/Slideshow/AboutSection/AboutSection.jsx +281 -0
  78. package/src1-10/TabexComponents/Sections/Slideshow/Backgroundimage_with_topcircle/Backgroundimage_with_topcircle.jsx +166 -0
  79. package/src1-10/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection.jsx +152 -0
  80. package/src1-10/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx +139 -0
  81. package/src1-10/TabexComponents/Sections/Slideshow/Image_with_rightwords/Image_with_rightwords.jsx +146 -0
  82. package/src1-10/TabexComponents/Sections/Slideshow/Servicesection/Servicesection.jsx +209 -0
  83. package/src1-10/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards.jsx +145 -0
  84. package/src1-10/TabexComponents/Sections/Slideshow/Slideshow_with_rotatedsquare/Slideshow_with_rotatedsquare.jsx +252 -0
  85. package/src1-10/TabexComponents/Sections/Slideshow/Slideshow_with_squarebg/Slideshow_with_squarebg.jsx +175 -0
  86. package/src1-10/TabexComponents/Sections/Slideshow/Slideshowdifferentanimations/Slideshowdifferentanimations.jsx +154 -0
  87. package/src1-10/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade.jsx +193 -0
  88. package/src1-10/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide.jsx +197 -0
  89. package/src1-10/TabexComponents/Sections/Slideshow/Slideshowzoom/Arrow.js +91 -0
  90. package/src1-10/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom.jsx +309 -0
  91. package/src1-10/TabexComponents/StaticPages/AccountInformation/AccountInformation.jsx +260 -0
  92. package/src1-10/TabexComponents/StaticPages/CartSlider/CartSlider.jsx +459 -0
  93. package/src1-10/TabexComponents/StaticPages/Categoriesdropdown/Categoriesdropdown.jsx +216 -0
  94. package/src1-10/TabexComponents/StaticPages/Checkout/Checkout.jsx +1220 -0
  95. package/src1-10/TabexComponents/StaticPages/Filter/Filter.jsx +542 -0
  96. package/src1-10/TabexComponents/StaticPages/Login/FacebookLoginButton.jsx +51 -0
  97. package/src1-10/TabexComponents/StaticPages/Login/GoogleLoginButton.jsx +35 -0
  98. package/src1-10/TabexComponents/StaticPages/Login/Login.jsx +299 -0
  99. package/src1-10/TabexComponents/StaticPages/OrderSuccess/OrderSuccess.js +192 -0
  100. package/src1-10/TabexComponents/StaticPages/Ordershistory/Ordershistory.jsx +1271 -0
  101. package/src1-10/TabexComponents/StaticPages/Policies/Policies.jsx +353 -0
  102. package/src1-10/TabexComponents/StaticPages/Productinfo/Productinfo.jsx +1456 -0
  103. package/src1-10/TabexComponents/StaticPages/Searchlist/Searchlist.jsx +209 -0
  104. package/src1-10/TabexComponents/StaticPages/Signup/CustomerInformationForm.jsx +776 -0
  105. package/src1-10/TabexComponents/StaticPages/Signup/Signup.jsx +157 -0
  106. package/src1-10/TabexComponents/StaticPages/Staticpagesrouter/Staticpagesrouter.jsx +285 -0
  107. package/src1-10/TabexComponents/StaticPages/Viewcart/Viewcart.js +1090 -0
  108. package/src1-10/TabexComponents/StaticPages/Wishlist/Wishlist.jsx +606 -0
  109. package/src1-10/assets/images/cod.png +0 -0
  110. package/src1-10/assets/images/egyptflag.png +0 -0
  111. package/src1-10/assets/images/fawry.png +0 -0
  112. package/src1-10/assets/images/payment.png +0 -0
  113. package/src1-10/assets/images/paymob.png +0 -0
  114. package/src1-10/assets/images/paypal.png +0 -0
  115. package/src1-10/assets/images/shoppingcart.png +0 -0
  116. package/src1-10/assets/images/usflag.png +0 -0
  117. package/src1-10/assets/images/visa.png +0 -0
  118. package/src1-10/assets/images/whatsapp.png +0 -0
  119. package/src1-10/button.jsx +40 -0
  120. package/src1-10/index.jsx +179 -0
  121. package/src1-10/styles/Home.module.css +129 -0
  122. package/src1-10/styles/cards/Categorcycard_fullimage.module.css +10 -0
  123. package/src1-10/styles/cards/Categorycard_slidebgscaled.module.css +73 -0
  124. package/src1-10/styles/cards/Categorycard_withshapes.module.css +189 -0
  125. package/src1-10/styles/cards/Productcard6.module.css +9 -0
  126. package/src1-10/styles/cards/Productcard_with_circularbg.module.css +137 -0
  127. package/src1-10/styles/cards/Productccard_with_zoominonhover.module.css +51 -0
  128. package/src1-10/styles/cards/Prouductcard_with_zoomhover.module.css +61 -0
  129. package/src1-10/styles/cards/categorycard.module.css +102 -0
  130. package/src1-10/styles/cards/categorycard3.module.css +51 -0
  131. package/src1-10/styles/cards/categorycardwithtext.module.css +40 -0
  132. package/src1-10/styles/cards/productcard_animatedbuttons.module.css +104 -0
  133. package/src1-10/styles/cards/productcard_with_textonhover.module.css +12 -0
  134. package/src1-10/styles/cards/productccard_with_imageontopleft.module.css +85 -0
  135. package/src1-10/styles/general/bootstrap.css +4415 -0
  136. package/src1-10/styles/general/dropdown.css +199 -0
  137. package/src1-10/styles/general/editorbardropdown.module.css +94 -0
  138. package/src1-10/styles/general/filter.module.css +108 -0
  139. package/src1-10/styles/general/form.module.css +273 -0
  140. package/src1-10/styles/general/general.module.css +861 -0
  141. package/src1-10/styles/general/image-gallery.css +481 -0
  142. package/src1-10/styles/general/react-accessible-accordion.module.css +52 -0
  143. package/src1-10/styles/general/react-phone-input-2.module.css +927 -0
  144. package/src1-10/styles/general/scrollbtn.module.css +22 -0
  145. package/src1-10/styles/general/slick.module.css +166 -0
  146. package/src1-10/styles/general/tabs.module.css +110 -0
  147. package/src1-10/styles/general/workplaceeditor.module.css +328 -0
  148. package/src1-10/styles/globals.css +26 -0
  149. package/src1-10/styles/headers/Allinoneheader.module.css +91 -0
  150. package/src1-10/styles/headers/Header7.module.css +50 -0
  151. package/src1-10/styles/headers/Header_threesectionslogocentered.module.css +97 -0
  152. package/src1-10/styles/headers/Sideheader.module.css +108 -0
  153. package/src1-10/styles/headers/classicheaderstyles.module.css +16 -0
  154. package/src1-10/styles/headers/dropdown.css +0 -0
  155. package/src1-10/styles/headers/header4.module.css +175 -0
  156. package/src1-10/styles/headers/header5.module.css +30 -0
  157. package/src1-10/styles/headers/header6.module.css +117 -0
  158. package/src1-10/styles/headers/header_contactinfo.module.css +78 -0
  159. package/src1-10/styles/headers/headerresturant.module.css +89 -0
  160. package/src1-10/styles/headers/headerstyles.module.css +24 -0
  161. package/src1-10/styles/headers/modernheader.module.css +78 -0
  162. package/src1-10/styles/headers/subheader.module.css +114 -0
  163. package/src1-10/styles/sections/Backgroundimage1.module.css +17 -0
  164. package/src1-10/styles/sections/Backgroundimage_with_topcircle.module.css +28 -0
  165. package/src1-10/styles/sections/Section_with_rightbgcont.module.css +49 -0
  166. package/src1-10/styles/sections/Slideshow_with_rotatedsquare.module.css +35 -0
  167. package/src1-10/styles/sections/Slideshow_with_squarebg.module.css +39 -0
  168. package/src1-10/styles/staticpages/accordion.module.css +9 -0
  169. package/src1-10/styles/staticpages/cart.module.css +108 -0
  170. package/src1-10/styles/staticpages/dropdown.css +196 -0
  171. package/src1-10/styles/staticpages/filter.module.css +139 -0
  172. package/src1-10/styles/staticpages/login.module.css +146 -0
  173. package/src1-10/styles/staticpages/productinfo.module.css +54 -0
  174. package/src1-10/styles/staticpages/shop.module.css +191 -0
  175. package/src1-10/styles/staticpages/signup.module.css +206 -0
  176. package/src1-10/styles/staticpages/staticroutersidenav.module.css +129 -0
  177. package/src1-10/styles/staticpages/viewcart.module.css +129 -0
  178. package/src1-10/styles/staticpages/wishlist.module.css +29 -0
@@ -0,0 +1,614 @@
1
+ import React, { useEffect, useState, useContext } from 'react';
2
+ import headerstyles from '../../../styles/headers/header4.module.css';
3
+ import { MdOutlineShoppingCart, MdAlternateEmail, MdLocationOn } from 'react-icons/md';
4
+ import { BsCartCheck } from 'react-icons/bs';
5
+ import { css } from 'glamor';
6
+ import { serverbaselink } from '../../../../Env';
7
+ import Dropdown from 'react-bootstrap/Dropdown';
8
+ import { MdOutlinePolicy } from 'react-icons/md';
9
+ import { BiLogOutCircle } from 'react-icons/bi';
10
+ import { AiOutlineStar, AiOutlineUserAdd, AiOutlineLogin, AiOutlineUser, AiFillStar } from 'react-icons/ai';
11
+ import { BsSearch } from 'react-icons/bs';
12
+ import Searchlist from '../../StaticPages/Searchlist/Searchlist.jsx';
13
+ import Headerresponsive from '../Headerresponsive/Headerresponsive.jsx';
14
+ import Subheader from '../Subheader/Subheader.jsx';
15
+
16
+ const Header4 = (props) => {
17
+ const [sectionproperties, setsectionproperties] = useState('');
18
+ const LogoutMutationContext = props.actions.LogoutMutationContext;
19
+ const setsidecartnavshowcontext = props.actions.setsidecartnavshowcontext;
20
+ const setSearchHeaderInputContext = props.actions.setSearchHeaderInputContext;
21
+ const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
22
+ const lang = props.actions.lang;
23
+ const langdetect = props.actions.langdetect;
24
+ const setlang = props.actions.setlang;
25
+ const templatepropcontext = props.actions.templatepropcontext;
26
+ const authdetailsContext = props.actions.authdetailsContext;
27
+ const templateproperties_context = props.actions.templateproperties_context;
28
+ const favoriteprojectscountContext = props.actions.favoriteprojectscountContext;
29
+ const routingcountext = props.actions.routingcountext;
30
+ const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
31
+ const actions = props.actions;
32
+ const history = props.actions.history;
33
+ // const fetch_inst_tabex_websitetemplatesQueryContext = props.fetch_inst_tabex_websitetemplatesQueryContext;
34
+ useEffect(() => {
35
+ var secpropobj = {};
36
+ StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
37
+ if (sectionitem.sectionid == props.sectionidprops) {
38
+ sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
39
+ secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
40
+ });
41
+ }
42
+ });
43
+
44
+ if (Object.keys(secpropobj).length === 0) {
45
+ props.defaultproperties.forEach(function (defaultpropobj, defaultpropindex) {
46
+ secpropobj[defaultpropobj.property_css_name] = defaultpropobj.property_value;
47
+ });
48
+ }
49
+
50
+ setsectionproperties({ ...secpropobj });
51
+ }, [StatePagePropertiesContext]);
52
+ const header_cssstyles = {
53
+ top_wrap: css({
54
+ background: sectionproperties.uppersection_bgcolortransparent == 'Transparent' ? 'transparent' : sectionproperties.uppersection_bgcolor,
55
+ borderTopLeftRadius: sectionproperties.uppersection_btlradius + 'px',
56
+ borderTopRightRadius: sectionproperties.uppersection_btrradius + 'px',
57
+ borderBottomLeftRadius: sectionproperties.uppersection_bblradius + 'px',
58
+ borderBottomRightRadius: sectionproperties.uppersection_bbrradius + 'px',
59
+ paddingLeft: sectionproperties.uppersection_paddingleft + 'px',
60
+ paddingRight: sectionproperties.uppersection_paddingright + 'px',
61
+ paddingTop: sectionproperties.uppersection_paddingtop + 'px',
62
+ paddingBottom: sectionproperties.uppersection_paddingbottom + 'px',
63
+ }),
64
+ uppersection_title: css({
65
+ color: sectionproperties.uppersection_titlecolor,
66
+ fontSize: sectionproperties.uppersection_titlefontsize + 'px',
67
+ fontWeight: sectionproperties.uppersection_titlefontweight,
68
+ textTransform: sectionproperties.uppersection_titletextransform,
69
+ }),
70
+ uppersection_info: css({
71
+ color: sectionproperties.uppersection_infocolor,
72
+ fontSize: sectionproperties.uppersection_infofontsize + 'px',
73
+ fontWeight: sectionproperties.uppersection_infofontweight,
74
+ textTransform: sectionproperties.uppersection_infotextransform,
75
+ }),
76
+ container_xl: css({
77
+ background: sectionproperties.leftlowersection_bgcolortransparent == 'Transparent' ? 'transparent' : sectionproperties.leftlowersection_bgcolor,
78
+ }),
79
+ btns_container: css({
80
+ ':before': {
81
+ background: sectionproperties.leftlowersection_bgcolor,
82
+ },
83
+ }),
84
+ nav_link: css({
85
+ fontSize: sectionproperties.leftlowersection_fontsize + 'px',
86
+ color: sectionproperties.leftlowersection_color,
87
+ fontWeight: sectionproperties.leftlowersection_fontweight,
88
+ textTransform: sectionproperties.leftlowersection_texttransform,
89
+ transition: '.3s',
90
+ ':hover': {
91
+ color: sectionproperties.leftlowersection_coloronhover,
92
+ },
93
+ ':before': {
94
+ background: sectionproperties.leftlowersection_coloronhover,
95
+ },
96
+ }),
97
+ wishlist_btn: css({
98
+ width: sectionproperties.favBtnWidth + 'px',
99
+ height: sectionproperties.favBtnHeight + 'px',
100
+ background: sectionproperties.favbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.favBtnbgColor,
101
+ borderBottomLeftRadius: sectionproperties.fav_btn_borderBottomLeftRadius + 'px',
102
+ borderBottomRightRadius: sectionproperties.fav_btn_borderBottomRightRadius + 'px',
103
+ borderTopLeftRadius: sectionproperties.fav_btn_borderTopLeftRadius + 'px',
104
+ borderTopRightRadius: sectionproperties.fav_btn_borderTopRightRadius + 'px',
105
+ color: sectionproperties.favBtnTextcolor,
106
+ fontSize: sectionproperties.favBtnTextfontsize + 'px',
107
+ textTransform: sectionproperties.favBtnTexttransform,
108
+ fontWeight: sectionproperties.favBtnTextfontweight,
109
+ transition: '.3s',
110
+ border: sectionproperties.favbtnborderwidth + 'px solid ' + sectionproperties.favbtnbordercolor,
111
+ ':hover': {
112
+ background: sectionproperties.favbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.favBtnbgColoronhover,
113
+ color: sectionproperties.favBtnTextcoloronhover,
114
+ },
115
+ }),
116
+ cart_btn: css({
117
+ width: sectionproperties.cartBtnWidth + 'px',
118
+ height: sectionproperties.cartBtnHeight + 'px',
119
+ background: sectionproperties.cartbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.cartBtnbgColor,
120
+ borderBottomLeftRadius: sectionproperties.cart_btn_borderBottomLeftRadius + 'px',
121
+ borderBottomRightRadius: sectionproperties.cart_btn_borderBottomRightRadius + 'px',
122
+ borderTopLeftRadius: sectionproperties.cart_btn_borderTopLeftRadius + 'px',
123
+ borderTopRightRadius: sectionproperties.cart_btn_borderTopRightRadius + 'px',
124
+ color: sectionproperties.cartBtnTextcolor,
125
+ fontSize: sectionproperties.cartBtnTextfontsize + 'px',
126
+ textTransform: sectionproperties.cartBtnTexttransform,
127
+ fontWeight: sectionproperties.cartBtnTextfontweight,
128
+ border: sectionproperties.cartbtnborderwidth + 'px solid ' + sectionproperties.cartbtnbordercolor,
129
+ transition: '.3s',
130
+ ':hover': {
131
+ background: sectionproperties.cartbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.cartBtnbgColoronhover,
132
+ color: sectionproperties.cartBtnTextcoloronhover,
133
+ },
134
+ }),
135
+ user_btn: css({
136
+ background: sectionproperties.userbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.userBtnbgColor,
137
+ width: sectionproperties.userBtnWidth + 'px',
138
+ height: sectionproperties.userBtnHeight + 'px',
139
+ borderBottomLeftRadius: sectionproperties.userbtn_borderBottomLeftRadius + 'px',
140
+ borderBottomRightRadius: sectionproperties.userbtn_borderBottomRightRadius + 'px',
141
+ borderTopLeftRadius: sectionproperties.userbtn_borderTopLeftRadius + 'px',
142
+ borderTopRightRadius: sectionproperties.userbtn_borderTopRightRadius + 'px',
143
+ color: sectionproperties.userBtnTextcolor,
144
+ fontSize: sectionproperties.userBtntextfontsize + 'px',
145
+ fontWeight: sectionproperties.userBtnTextfontweight,
146
+ textTransform: sectionproperties.userBtnTexttransform,
147
+ border: sectionproperties.userbtnborderwidth + 'px solid ' + sectionproperties.userbtnbordercolor,
148
+ transition: '.3s',
149
+ ':hover': {
150
+ background: sectionproperties.cartbtn_transparentbgcoloronhover == sectionproperties.userbtn_transparentbgcoloronhover ? 'transparent' : sectionproperties.userBtnbgColoronhover,
151
+ color: sectionproperties.userBtnTextcoloronhover,
152
+ },
153
+ }),
154
+ search_btn: css({
155
+ marginLeft: sectionproperties.search_btn_marginLeft + 'px',
156
+ marginRight: sectionproperties.search_btn_marginRight + 'px',
157
+ background: sectionproperties.search_btn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.search_btn_bgColor,
158
+ width: sectionproperties.search_btnWidth + 'px',
159
+ height: sectionproperties.search_btnHeight + 'px',
160
+ borderBottomLeftRadius: sectionproperties.search_btn_borderBottomLeftRadius + 'px',
161
+ borderBottomRightRadius: sectionproperties.search_btn_borderBottomRightRadius + 'px',
162
+ borderTopLeftRadius: sectionproperties.search_btn_borderTopLeftRadius + 'px',
163
+ borderTopRightRadius: sectionproperties.search_btn_borderTopRightRadius + 'px',
164
+ color: sectionproperties.search_btnTextcolor,
165
+ boxShadow: sectionproperties.search_btn_showshadow == 'Show' ? '0 0 10px ' + sectionproperties.search_btn_shadowcolor : '',
166
+ // fontSize: sectionproperties.search_btniconfontsize + 'px',
167
+ fontSize: sectionproperties.search_btntextfontsize + 'px',
168
+ fontWeight: sectionproperties.search_btnTextfontweight,
169
+ textTransform: sectionproperties.search_btnTexttransform,
170
+ border: sectionproperties.search_btnborderwidth + 'px solid ' + sectionproperties.search_btnbordercolor,
171
+ opacity: sectionproperties.search_btn_opacity,
172
+ transition: '.3s',
173
+ ':hover': {
174
+ background: sectionproperties.search_btntransparentbgcoloronhover == sectionproperties.search_btntransparentbgcoloronhover ? 'transparent' : sectionproperties.userBtnbgColoronhover,
175
+ // color: sectionproperties.userBtnTextcoloronhover,
176
+ color: sectionproperties.search_btnTextcoloronhover,
177
+ opacity: sectionproperties.search_btn_opacityonhover,
178
+ },
179
+ }),
180
+ dropdownitem: css({
181
+ fontSize: sectionproperties.dropdown_fontsize + 'px',
182
+ color: sectionproperties.dropdown_color,
183
+ fontWeight: sectionproperties.dropdown_fontweight,
184
+ textTransform: sectionproperties.dropdown_texttransform,
185
+ padding: '0.3rem 0.8rem',
186
+ display: 'flex',
187
+ alignItems: 'center',
188
+ transition: '.3s',
189
+ ':hover': {
190
+ color: sectionproperties.dropdown_hovercolor,
191
+ },
192
+ }),
193
+ header_logo: css({
194
+ width: sectionproperties.logo_width + 'px',
195
+ height: sectionproperties.logo_height + 'px',
196
+ background: sectionproperties.logo_bgcolortransparent == 'Transparent' ? 'transparent' : sectionproperties.logo_bgcolor + 'px',
197
+ borderTopLeftRadius: sectionproperties.logo_bordertopleftradius + 'px',
198
+ borderTopRightRadius: sectionproperties.logo_bordertoprightradius + 'px',
199
+ borderBottomLeftRadius: sectionproperties.logo_borderbottomleftradius + 'px',
200
+ borderBottomRightRadius: sectionproperties.logo_borderbottomrightradius + 'px',
201
+ border: sectionproperties.logo_borderwidth + 'px solid ' + sectionproperties.logo_bordercolor,
202
+ }),
203
+ searchbarcont: css({
204
+ position: 'relative',
205
+ transition: '3s',
206
+ background: sectionproperties.searchbarcont_bgcolortransparent == 'Transparent' ? 'transparent' : sectionproperties.searchbarcont_bgcolor,
207
+ width: sectionproperties.searchbarcont_width + 'px',
208
+ borderBottomLeftRadius: sectionproperties.searchbarcont_borderBottomLeftRadius + 'px',
209
+ borderBottomRightRadius: sectionproperties.searchbarcont_borderBottomRightRadius + 'px',
210
+ borderTopLeftRadius: sectionproperties.searchbarcont_borderTopLeftRadius + 'px',
211
+ borderTopRightRadius: sectionproperties.searchbarcont_borderTopRightRadius + 'px',
212
+
213
+ border: sectionproperties.searchbarcontinput_borderwidth + 'px solid' + sectionproperties.searchbarcontinput_bordercolor,
214
+ }),
215
+ searchbar_icon_cont: css({
216
+ display: 'flex',
217
+ justifyContent: 'center',
218
+ alignItems: 'center',
219
+ textAlign: 'center',
220
+ // width: '40px',
221
+ // height: '40px',
222
+ // borderRadius: '50%',
223
+ // color: '#fff',
224
+ // backgroundColor: '#000',
225
+ width: sectionproperties.searchbaricon_width + 'px',
226
+ height: sectionproperties.searchbaricon_height + 'px',
227
+ borderBottomLeftRadius: sectionproperties.searchbaricon_borderBottomLeftRadius + 'px',
228
+ borderBottomRightRadius: sectionproperties.searchbaricon_borderBottomRightRadius + 'px',
229
+ borderTopLeftRadius: sectionproperties.searchbaricon_borderTopLeftRadius + 'px',
230
+ borderTopRightRadius: sectionproperties.searchbaricon_borderTopRightRadius + 'px',
231
+ color: sectionproperties.searchbaricon_color,
232
+ // new
233
+ backgroundColor: sectionproperties.searchbaricon_bgcolortransparent == 'Transparent' ? 'transparent' : sectionproperties.searchbaricon_bgcolor,
234
+ cursor: 'pointer',
235
+ // end
236
+
237
+ transition: '0.3s ease',
238
+ position: 'absolute',
239
+ right: 0,
240
+ bottom: 6,
241
+ // top: 0,
242
+ margin: 'auto',
243
+ ':hover': css({
244
+ background: sectionproperties.searchbaricon_bgcoloronhover,
245
+ color: sectionproperties.searchbaricon_coloronhover,
246
+ }),
247
+ }),
248
+ searchbarcont_input: css({
249
+ height: '100%',
250
+ width: '100%',
251
+ outline: 'none',
252
+ border: 'none',
253
+ color: sectionproperties.searchbarcontinput_color,
254
+ transition: 'all 1s',
255
+ fontWeight: sectionproperties.searchbarcont_inputfontweight,
256
+ fontSize: sectionproperties.searchbarcontinput_fontsize + 'px',
257
+ opacity: 1,
258
+ width: '100%',
259
+ transition: '0.3s',
260
+ borderBottomLeftRadius: sectionproperties.searchbarcontinput_borderBottomLeftRadius + 'px',
261
+ borderBottomRightRadius: sectionproperties.searchbarcontinput_borderBottomRightRadius + 'px',
262
+ borderTopLeftRadius: sectionproperties.searchbarcontinput_borderTopLeftRadius + 'px',
263
+ borderTopRightRadius: sectionproperties.searchbarcontinput_borderTopRightRadius + 'px',
264
+ borderBottom: sectionproperties.searchbarcontinput_borderBottom + 'px solid ' + sectionproperties.searchbarcontinput_borderBottomcolor,
265
+ paddingLeft: sectionproperties.searchbarcont_paddingLeft + 'px',
266
+ paddingRight: sectionproperties.searchbarcont_paddingRight + 'px',
267
+ paddingTop: sectionproperties.searchbarcont_paddingTop + 'px',
268
+ paddingBottom: sectionproperties.searchbarcont_paddingBottom + 'px',
269
+ ':focus': {
270
+ borderColor: sectionproperties.searchbarcontinput_bordercoloronfocus,
271
+ },
272
+ }),
273
+ badge_counter_header_notifications: css({
274
+ background: sectionproperties.badge_bgcolor,
275
+ width: sectionproperties.badge_width + 'px',
276
+ height: sectionproperties.badge_height + 'px',
277
+ color: sectionproperties.badge_color,
278
+ borderRadius: sectionproperties.badge_borderradius + 'px',
279
+ fontSize: sectionproperties.badge_fontsize + 'px',
280
+ top: sectionproperties.badge_top + 'px',
281
+ right: sectionproperties.badge_right + 'px',
282
+ }),
283
+ };
284
+ return (
285
+ <div className={`${headerstyles.headerone_container}` + ' row m-0 w-100 d-flex justify-content-center '}>
286
+ <div
287
+ className="col-lg-12 p-0 d-flex d-md-none m-0"
288
+ style={{
289
+ position: sectionproperties.headerstyles_position,
290
+ width: sectionproperties.header_width + 'vw',
291
+ }}
292
+ >
293
+ <div className="row m-0 w-100">
294
+ <div className="col-lg-12 p-0">
295
+ <div className={`${header_cssstyles.top_wrap}`}>
296
+ <div className={' row m-0 w-100 d-flex align-items-center '}>
297
+ <div className="col-lg-3 d-flex align-items-center">
298
+ <div
299
+ className={`${headerstyles.header_logo} ${header_cssstyles.header_logo}` + ' d-flex align-items-center '}
300
+ style={{ cursor: 'pointer' }}
301
+ onClick={() => {
302
+ routingcountext('home');
303
+ }}
304
+ >
305
+ <img
306
+ src={serverbaselink + authdetailsContext.instinfo.instlogo}
307
+ style={{
308
+ maxWidth: '99.5%',
309
+ maxHeight: '99.5%',
310
+ background: sectionproperties.logo_bgcolortransparent == 'Transparent' ? 'transparent' : sectionproperties.logo_bgcolor + 'px',
311
+ borderTopLeftRadius: sectionproperties.logo_bordertopleftradius + 'px',
312
+ borderTopRightRadius: sectionproperties.logo_bordertoprightradius + 'px',
313
+ borderBottomLeftRadius: sectionproperties.logo_borderbottomleftradius + 'px',
314
+ borderBottomRightRadius: sectionproperties.logo_borderbottomrightradius + 'px',
315
+ }}
316
+ />
317
+ </div>
318
+ </div>
319
+ <div className="col-lg-3 d-flex align-items-center mb-md-0">
320
+ {authdetailsContext.instinfo.contactinfo != null && (
321
+ <div className={`${headerstyles.top_wrap_inner}` + ' d-flex align-items-center '}>
322
+ <div className={`${headerstyles.top_wrap_inner_icon}`}>
323
+ <span
324
+ className=""
325
+ style={{
326
+ color: sectionproperties.uppersection_iconcolor,
327
+ }}
328
+ >
329
+ <MdAlternateEmail style={{ color: sectionproperties.uppersection_iconcolor }} />
330
+ </span>
331
+ </div>
332
+ <div className={`${headerstyles.top_wrap_inner_text}`}>
333
+ <span className={`${header_cssstyles.uppersection_title}`}>Email:</span>
334
+ <span className={`${header_cssstyles.uppersection_info}` + ' text-transform-none '}>{authdetailsContext.instinfo.contactinfo.email}</span>
335
+ </div>
336
+ </div>
337
+ )}
338
+ </div>
339
+ <div className="col-lg-3 d-flex align-items-center mb-md-0">
340
+ {authdetailsContext.instinfo.contactinfo != null && (
341
+ <div className={`${headerstyles.top_wrap_inner}` + ' d-flex align-items-center '}>
342
+ <div className={`${headerstyles.top_wrap_inner_icon}`}>
343
+ <span className="fa fa-phone" style={{ color: sectionproperties.uppersection_iconcolor }}></span>
344
+ </div>
345
+ <div className={`${headerstyles.top_wrap_inner_text}`}>
346
+ <span className={`${header_cssstyles.uppersection_title}`}>Call Us</span>
347
+ <span className={`${header_cssstyles.uppersection_info}`}>{authdetailsContext.instinfo.contactinfo.mobile}</span>
348
+ </div>
349
+ </div>
350
+ )}
351
+ </div>
352
+ <div className="col-lg-3 d-flex align-items-center mb-md-0">
353
+ <div className={`${headerstyles.top_wrap_inner}` + ' d-flex align-items-center '}>
354
+ <div className={`${headerstyles.top_wrap_inner_icon}`}>
355
+ <span className="">
356
+ <MdLocationOn style={{ color: sectionproperties.uppersection_iconcolor }} />
357
+ </span>
358
+ </div>
359
+ <div className={`${headerstyles.top_wrap_inner_text}`}>
360
+ <span className={`${header_cssstyles.uppersection_title}`}>Location</span>
361
+ <span className={`${header_cssstyles.uppersection_info}`}>{authdetailsContext.instinfo.address_en}</span>
362
+ </div>
363
+ </div>
364
+ </div>
365
+ </div>
366
+ </div>
367
+ </div>
368
+ <div className="col-lg-12 p-0">
369
+ <nav className={`${headerstyles.navbar}` + ' col-lg-12 p-0 d-flex align-items-center justify-content-end '} style={{ position: 'relative' }}>
370
+ <div className={`${headerstyles.container_xl} ${header_cssstyles.container_xl}`}>
371
+ <div className={`${headerstyles.btns_container}` + ' order-lg-last d-flex align-items-center justify-content-end '}>
372
+ <div className="row m-0 w-100 d-flex align-items-center justify-content-end pr-2 pl-2">
373
+ <div className={header_cssstyles.searchbarcont + ' d-flex '}>
374
+ <input
375
+ type="text"
376
+ placeholder="Search..."
377
+ className={`${header_cssstyles.searchbarcont_input}`}
378
+ onChange={(event) => {
379
+ setSearchHeaderInputContext(event.target.value);
380
+ }}
381
+ />
382
+ <span className={header_cssstyles.searchbar_icon_cont + ' m-0 pr-0 cursor-pointer '}>
383
+ <i className="h-100 d-flex align-items-center justify-content-center">
384
+ <BsSearch size={sectionproperties.searchbaricon_fontsize} />
385
+ </i>
386
+ </span>
387
+ <Searchlist actions={actions} sectionpropertiesprops={sectionproperties} srcfromprops={'header'} />
388
+ </div>
389
+ <div
390
+ className={header_cssstyles.cart_btn + ' d-flex flex-column cursor-pointer '}
391
+ onClick={() => {
392
+ setsidecartnavshowcontext(true);
393
+ }}
394
+ style={{ position: 'relative' }}
395
+ >
396
+ <i className="h-100 d-flex align-items-center justify-content-center">
397
+ <MdOutlineShoppingCart size={sectionproperties.cartBtn_iconFontSize} />
398
+ </i>
399
+ <div
400
+ className={
401
+ `${headerstyles.badge_counter_header_notifications} ${header_cssstyles.badge_counter_header_notifications}` +
402
+ ' text-capitalize d-flex justify-content-center text-center '
403
+ }
404
+ ></div>
405
+ <span className={`${header_cssstyles.cart_btn_text}`}>Cart</span>
406
+ </div>
407
+ <div className={langdetect == 'en' ? 'transformedDropdown' : ' dropdown-container-translated'}>
408
+ <Dropdown>
409
+ <Dropdown.Toggle>
410
+ <div className={header_cssstyles.user_btn + ' d-flex flex-column align-items-center justify-content-center cursor-pointer '}>
411
+ <i className="h-100 d-flex align-items-center justify-content-center">
412
+ <AiOutlineUser style={{ fontSize: sectionproperties.userBtniconfontsize + 'px' }} />
413
+ </i>
414
+ {!authdetailsContext.loggedin && <span className={`${header_cssstyles.user_btn_text}`}>Account</span>}
415
+ {authdetailsContext.loggedin && (
416
+ <div className={' d-flex align-items-center justify-content-center '} sytle={{ position: 'relative' }}>
417
+ <p className="m-0 p-0 text-overflow p-0 align-items-center" style={{ textTransform: 'uppercase', maxWidth: '70px' }}>
418
+ {authdetailsContext.customerinfo.name.slice(0, 10)}
419
+ </p>
420
+ </div>
421
+ )}
422
+ </div>
423
+ </Dropdown.Toggle>
424
+ {!authdetailsContext.loggedin && (
425
+ <Dropdown.Menu>
426
+ <Dropdown.Item
427
+ className={`${header_cssstyles.dropdownitem}`}
428
+ onClick={() => {
429
+ routingcountext(StaticPagesLinksContext.Login);
430
+ }}
431
+ >
432
+ <span
433
+ className="d-flex align-items-center justify-content-center"
434
+ style={{
435
+ fontSize: sectionproperties.dropdown_fontsize + 'px',
436
+ fontWeight: sectionproperties.dropdown_fontweight,
437
+ textTransform: sectionproperties.dropdown_texttransform,
438
+ }}
439
+ >
440
+ <AiOutlineLogin className={langdetect == 'en' ? 'mr-2' : 'ml-2'} />
441
+ Login
442
+ </span>
443
+ </Dropdown.Item>
444
+ <Dropdown.Divider></Dropdown.Divider>
445
+ <Dropdown.Item
446
+ className={`${header_cssstyles.dropdownitem}`}
447
+ onClick={() => {
448
+ routingcountext(StaticPagesLinksContext.Signup);
449
+ }}
450
+ >
451
+ <span
452
+ className='d-flex align-items-center justify-content-center"'
453
+ style={{
454
+ fontSize: sectionproperties.dropdown_fontsize + 'px',
455
+ fontWeight: sectionproperties.dropdown_fontweight,
456
+ textTransform: sectionproperties.dropdown_texttransform,
457
+ }}
458
+ >
459
+ <AiOutlineUserAdd className={langdetect == 'en' ? 'mr-2' : 'ml-2'} />
460
+ SIGNUP
461
+ </span>
462
+ </Dropdown.Item>
463
+ <Dropdown.Item
464
+ className={`${header_cssstyles.dropdownitem}`}
465
+ onClick={() => {
466
+ routingcountext(StaticPagesLinksContext.Wishlist);
467
+ }}
468
+ style={{
469
+ fontSize: sectionproperties.dropdown_fontsize + 'px',
470
+ fontWeight: sectionproperties.dropdown_fontweight,
471
+ textTransform: sectionproperties.dropdown_texttransform,
472
+ }}
473
+ >
474
+ <AiOutlineStar className={langdetect == 'en' ? 'mr-2' : 'ml-2'} />
475
+ Wish List
476
+ </Dropdown.Item>
477
+ </Dropdown.Menu>
478
+ )}
479
+ {authdetailsContext.loggedin && (
480
+ <Dropdown.Menu style={{ minWidth: '200px' }}>
481
+ <Dropdown.Item className={`${header_cssstyles.dropdownitem}` + ' d-flex align-items-center justify-content-center '}>
482
+ <span
483
+ style={{
484
+ color: '#8fa0bd',
485
+ }}
486
+ >
487
+ Hello,
488
+ </span>
489
+ <span
490
+ className="font-weight-600 ml-1 mr-1 text-overflow text-capitalize"
491
+ onClick={() => {
492
+ routingcountext(StaticPagesLinksContext.accountinfo);
493
+ }}
494
+ >
495
+ {authdetailsContext.customerinfo.name}
496
+ </span>
497
+ </Dropdown.Item>
498
+ <Dropdown.Divider></Dropdown.Divider>
499
+ <Dropdown.Item
500
+ className={`${header_cssstyles.dropdownitem}`}
501
+ onClick={() => {
502
+ routingcountext(StaticPagesLinksContext.Ordershistory);
503
+ }}
504
+ style={{
505
+ fontSize: sectionproperties.dropdown_fontsize + 'px',
506
+ fontWeight: sectionproperties.dropdown_fontweight,
507
+ textTransform: sectionproperties.dropdown_texttransform,
508
+ }}
509
+ >
510
+ <span
511
+ style={{
512
+ cursor: 'pointer',
513
+ zIndex: 1000,
514
+ }}
515
+ >
516
+ <BsCartCheck className={langdetect == 'en' ? 'mr-2' : 'ml-2'} />
517
+ Orders History
518
+ </span>
519
+ </Dropdown.Item>
520
+ <Dropdown.Divider></Dropdown.Divider>
521
+ <Dropdown.Item
522
+ className={`${header_cssstyles.dropdownitem}`}
523
+ onClick={() => {
524
+ routingcountext(StaticPagesLinksContext.Wishlist);
525
+ }}
526
+ style={{
527
+ fontSize: sectionproperties.dropdown_fontsize + 'px',
528
+ fontWeight: sectionproperties.dropdown_fontweight,
529
+ textTransform: sectionproperties.dropdown_texttransform,
530
+ }}
531
+ >
532
+ <AiOutlineStar className={langdetect == 'en' ? 'mr-2' : 'ml-2'} />
533
+ Wish List
534
+ </Dropdown.Item>
535
+ <Dropdown.Divider></Dropdown.Divider>
536
+ <Dropdown.Item
537
+ className={`${header_cssstyles.dropdownitem}`}
538
+ onClick={() => {
539
+ routingcountext(StaticPagesLinksContext.Policies);
540
+ }}
541
+ style={{
542
+ fontSize: sectionproperties.dropdown_fontsize + 'px',
543
+ fontWeight: sectionproperties.dropdown_fontweight,
544
+ textTransform: sectionproperties.dropdown_texttransform,
545
+ zIndex: 1000,
546
+ }}
547
+ >
548
+ <MdOutlinePolicy className={langdetect == 'en' ? 'mr-2' : 'ml-2'} />
549
+ Policies
550
+ </Dropdown.Item>
551
+ <Dropdown.Divider></Dropdown.Divider>
552
+ <Dropdown.Item
553
+ className={`${header_cssstyles.dropdownitem}`}
554
+ onClick={() => {
555
+ LogoutMutationContext.mutate();
556
+ }}
557
+ style={{
558
+ fontSize: sectionproperties.dropdown_fontsize + 'px',
559
+ fontWeight: sectionproperties.dropdown_fontweight,
560
+ textTransform: sectionproperties.dropdown_texttransform,
561
+ zIndex: 2000,
562
+ }}
563
+ >
564
+ <BiLogOutCircle className={langdetect == 'en' ? 'mr-2' : 'ml-2'} />
565
+ Logout
566
+ </Dropdown.Item>
567
+ </Dropdown.Menu>
568
+ )}
569
+ </Dropdown>
570
+ </div>
571
+ </div>
572
+ </div>
573
+ <div className="w-100">
574
+ <ul className={`${headerstyles.navbar_nav}` + ' mb-0 pb-0 mt-0 w-100 '}>
575
+ {templatepropcontext.pagesnprop.map((item, index) => {
576
+ var activeclass = '';
577
+ var pagedisabled = '';
578
+ if (item.isselected) {
579
+ activeclass = headerstyles.navbar_item_active;
580
+ }
581
+ if (item.isnavigation == 1 && item.isactive == 1) {
582
+ return (
583
+ <div
584
+ onClick={() => {
585
+ history.push(item.navigationroute);
586
+ }}
587
+ >
588
+ <li
589
+ className={`${headerstyles.nav_item} ${activeclass}`}
590
+ style={{
591
+ marginLeft: sectionproperties.navbar_item_textpaddingleft + 'px',
592
+ marginRight: sectionproperties.navbar_item_textpaddingright + 'px',
593
+ }}
594
+ >
595
+ <div className={`${headerstyles.nav_link} ${header_cssstyles.nav_link}`}>{langdetect == 'en' ? item.pagename : item.pagename_ar}</div>
596
+ </li>
597
+ </div>
598
+ );
599
+ }
600
+ })}
601
+ </ul>
602
+ </div>
603
+ </div>
604
+ </nav>
605
+ </div>
606
+ <div className="col-lg-12 p-0 m-0 w-100">{sectionproperties.showhidesubheader == 'Show' && <Subheader actions={actions} sectionpropertiesprops={props.sectionproperties} />}</div>
607
+ </div>
608
+ </div>
609
+ <Headerresponsive actions={actions} sectionpropertiesprops={sectionproperties} />
610
+ </div>
611
+ );
612
+ };
613
+
614
+ export default Header4;