tabexseriescomponents 0.0.63 → 0.0.65

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