tabexseriescomponents 0.0.80 → 0.0.81

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 (180) hide show
  1. package/dist/index.cjs.js +40 -12
  2. package/dist/index.esm.js +40 -12
  3. package/dist/index.umd.js +40 -12
  4. package/package.json +1 -1
  5. package/componentssrc.rar +0 -0
  6. package/srcOLD/Contexts/LanguageContext.jsx +0 -347
  7. package/srcOLD/Contexts/ProductsCardsSectionContext.jsx +0 -28
  8. package/srcOLD/StylesJS/Customstyles.js +0 -235
  9. package/srcOLD/TabexComponents/Cards/CategoryCardwithhoveraction/CategoryCardwithhoveraction.jsx +0 -214
  10. package/srcOLD/TabexComponents/Cards/Categorycard_fullimage/Categorycard_fullimage.jsx +0 -258
  11. package/srcOLD/TabexComponents/Cards/Categorycard_slidebgscaled/Categorycard_slidebgscaled.jsx +0 -206
  12. package/srcOLD/TabexComponents/Cards/Categorycard_with_trianglebg/Categorycard_with_trianglebg.jsx +0 -176
  13. package/srcOLD/TabexComponents/Cards/Categorycard_with_twolinestransition/Categorycard_with_twolinestransition.jsx +0 -207
  14. package/srcOLD/TabexComponents/Cards/Categorycard_withshapes/Categorycard_withshapes.jsx +0 -162
  15. package/srcOLD/TabexComponents/Cards/Categorycard_withtext/Categorycard_withtext.jsx +0 -193
  16. package/srcOLD/TabexComponents/Cards/Classiccategorycard/Classiccategorycard.jsx +0 -158
  17. package/srcOLD/TabexComponents/Cards/Horizontalcard/Horizontalcard.jsx +0 -286
  18. package/srcOLD/TabexComponents/Cards/MenuCard/MenuCard.jsx +0 -558
  19. package/srcOLD/TabexComponents/Cards/ModernProductCard/ModernProductCard.jsx +0 -486
  20. package/srcOLD/TabexComponents/Cards/Productcard6/Productcard6.jsx +0 -300
  21. package/srcOLD/TabexComponents/Cards/Productcard7/Productcard7.jsx +0 -288
  22. package/srcOLD/TabexComponents/Cards/Productcard_animatedbuttons/Productcard_animatedbuttons.jsx +0 -307
  23. package/srcOLD/TabexComponents/Cards/Productcard_with_circularbg/Productcard_with_circularbg.jsx +0 -295
  24. package/srcOLD/TabexComponents/Cards/Productcard_with_circularhover/Productcard_with_circularhover.jsx +0 -325
  25. package/srcOLD/TabexComponents/Cards/Productcard_with_slideanimation/Productcard_with_slideanimation.jsx +0 -290
  26. package/srcOLD/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants.jsx +0 -303
  27. package/srcOLD/TabexComponents/Cards/Productcard_with_zoominonhover/Productcard_with_zoominonhover.jsx +0 -466
  28. package/srcOLD/TabexComponents/Cards/Productcarddefault/Productcarddefault.jsx +0 -282
  29. package/srcOLD/TabexComponents/Cards/Productccard_with_imageontopleft/Productccard_with_imageontopleft.jsx +0 -298
  30. package/srcOLD/TabexComponents/Cards/Prouductcard_with_zoomhover/Prouductcard_with_zoomhover.jsx +0 -139
  31. package/srcOLD/TabexComponents/Cards/Simplecategorycardwithtextbelow/Simplecategorycardwithtextbelow.jsx +0 -135
  32. package/srcOLD/TabexComponents/Cards/Simpleproductcard/Simpleproductcard.jsx +0 -304
  33. package/srcOLD/TabexComponents/Cards/StylishProductCard/StylishProductCard.jsx +0 -291
  34. package/srcOLD/TabexComponents/Footer/Footer1/Footer1.jsx +0 -418
  35. package/srcOLD/TabexComponents/Footer/Footer2/Footer2.jsx +0 -382
  36. package/srcOLD/TabexComponents/Footer/Footer3/Footer3.jsx +0 -308
  37. package/srcOLD/TabexComponents/Footer/Footer4/Footer4.jsx +0 -438
  38. package/srcOLD/TabexComponents/Footer/Footer5/Footer5.jsx +0 -495
  39. package/srcOLD/TabexComponents/Footer/Footer6/Footer6.jsx +0 -295
  40. package/srcOLD/TabexComponents/Footer/Footer7/Footer7.jsx +0 -373
  41. package/srcOLD/TabexComponents/Footer/Simplefooter/Simplefooter.jsx +0 -238
  42. package/srcOLD/TabexComponents/Generalfiles/images/egyptflag.png +0 -0
  43. package/srcOLD/TabexComponents/Generalfiles/images/noimage.png +0 -0
  44. package/srcOLD/TabexComponents/Generalfiles/images/payment/cod.png +0 -0
  45. package/srcOLD/TabexComponents/Generalfiles/images/payment/fawry.png +0 -0
  46. package/srcOLD/TabexComponents/Generalfiles/images/payment/payment.png +0 -0
  47. package/srcOLD/TabexComponents/Generalfiles/images/payment/paymob.png +0 -0
  48. package/srcOLD/TabexComponents/Generalfiles/images/payment/paypal.png +0 -0
  49. package/srcOLD/TabexComponents/Generalfiles/images/payment/visa.png +0 -0
  50. package/srcOLD/TabexComponents/Generalfiles/images/shoppingcart.png +0 -0
  51. package/srcOLD/TabexComponents/Generalfiles/images/tabexlogo.png +0 -0
  52. package/srcOLD/TabexComponents/Generalfiles/images/unknownmaleuser.png +0 -0
  53. package/srcOLD/TabexComponents/Generalfiles/images/usflag.png +0 -0
  54. package/srcOLD/TabexComponents/Generalfiles/images/whatsapp.png +0 -0
  55. package/srcOLD/TabexComponents/Headers/AllinoneHeader/AllinoneHeader.jsx +0 -724
  56. package/srcOLD/TabexComponents/Headers/ClassicHeader/ClassicHeader.jsx +0 -687
  57. package/srcOLD/TabexComponents/Headers/Header4/Header4.jsx +0 -632
  58. package/srcOLD/TabexComponents/Headers/Header6/Header6.jsx +0 -669
  59. package/srcOLD/TabexComponents/Headers/Header8/Header8.jsx +0 -882
  60. package/srcOLD/TabexComponents/Headers/HeaderRestaurant/HeaderRestaurant.jsx +0 -754
  61. package/srcOLD/TabexComponents/Headers/Header_threesectionslogocentered/Header_threesectionslogocentered.jsx +0 -798
  62. package/srcOLD/TabexComponents/Headers/Headerresponsive/Headerresponsive.jsx +0 -686
  63. package/srcOLD/TabexComponents/Headers/HeaderwithContactinfo/HeaderwithContactinfo.jsx +0 -938
  64. package/srcOLD/TabexComponents/Headers/Modernheader/Modernheader.jsx +0 -706
  65. package/srcOLD/TabexComponents/Headers/StylishHeader/StylishHeader.jsx +0 -821
  66. package/srcOLD/TabexComponents/Headers/Subheader/Subheader copy.jsx +0 -228
  67. package/srcOLD/TabexComponents/Headers/Subheader/Subheader.jsx +0 -251
  68. package/srcOLD/TabexComponents/Sections/BackgroundImages/Backgroundimage1/Backgroundimage1.jsx +0 -312
  69. package/srcOLD/TabexComponents/Sections/BackgroundImages/Backgroundimage_with_toppill/Backgroundimage_with_toppill.jsx +0 -278
  70. package/srcOLD/TabexComponents/Sections/BackgroundImages/BackgroundimageandTextsection/BackgroundimageandTextsection.jsx +0 -138
  71. package/srcOLD/TabexComponents/Sections/BackgroundImages/Section_with_rightbgcont/Section_with_rightbgcont.jsx +0 -160
  72. package/srcOLD/TabexComponents/Sections/BackgroundImages/Threebgimages/Threebgimages.jsx +0 -295
  73. package/srcOLD/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages.jsx +0 -784
  74. package/srcOLD/TabexComponents/Sections/Cards/CardsSection/CardsSection.jsx +0 -861
  75. package/srcOLD/TabexComponents/Sections/Cards/CardsSection2/CardsSection2.js +0 -496
  76. package/srcOLD/TabexComponents/Sections/Cards/CardsSection7/CardsSection7.js +0 -888
  77. package/srcOLD/TabexComponents/Sections/Cards/CardsSection8/CardsSection8.js +0 -419
  78. package/srcOLD/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.js +0 -552
  79. package/srcOLD/TabexComponents/Sections/Slideshow/AboutSection/AboutSection.jsx +0 -281
  80. package/srcOLD/TabexComponents/Sections/Slideshow/Backgroundimage_with_topcircle/Backgroundimage_with_topcircle.jsx +0 -166
  81. package/srcOLD/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection.jsx +0 -152
  82. package/srcOLD/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx +0 -284
  83. package/srcOLD/TabexComponents/Sections/Slideshow/Image_with_rightwords/Image_with_rightwords.jsx +0 -146
  84. package/srcOLD/TabexComponents/Sections/Slideshow/Servicesection/Servicesection.jsx +0 -209
  85. package/srcOLD/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards.jsx +0 -145
  86. package/srcOLD/TabexComponents/Sections/Slideshow/Slideshow_with_rotatedsquare/Slideshow_with_rotatedsquare.jsx +0 -252
  87. package/srcOLD/TabexComponents/Sections/Slideshow/Slideshow_with_squarebg/Slideshow_with_squarebg.jsx +0 -175
  88. package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowdifferentanimations/Slideshowdifferentanimations.jsx +0 -154
  89. package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade.jsx +0 -201
  90. package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide.jsx +0 -414
  91. package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom.jsx +0 -270
  92. package/srcOLD/TabexComponents/StaticPages/Aboutus/Aboutus.js +0 -175
  93. package/srcOLD/TabexComponents/StaticPages/AccountInformation/AccountInformation.jsx +0 -275
  94. package/srcOLD/TabexComponents/StaticPages/CartSlider/CartSlider.jsx +0 -459
  95. package/srcOLD/TabexComponents/StaticPages/Categoriesdropdown/Categoriesdropdown.js +0 -146
  96. package/srcOLD/TabexComponents/StaticPages/Checkout/Checkout.jsx +0 -1220
  97. package/srcOLD/TabexComponents/StaticPages/Filter/Filter.jsx +0 -542
  98. package/srcOLD/TabexComponents/StaticPages/Login/FacebookLoginButton.jsx +0 -51
  99. package/srcOLD/TabexComponents/StaticPages/Login/GoogleLoginButton.jsx +0 -35
  100. package/srcOLD/TabexComponents/StaticPages/Login/Login.jsx +0 -299
  101. package/srcOLD/TabexComponents/StaticPages/OrderSuccess/OrderSuccess.js +0 -192
  102. package/srcOLD/TabexComponents/StaticPages/Ordershistory/Ordershistory.jsx +0 -1285
  103. package/srcOLD/TabexComponents/StaticPages/Policies/Policies.jsx +0 -358
  104. package/srcOLD/TabexComponents/StaticPages/Productinfo/Productinfo.jsx +0 -1506
  105. package/srcOLD/TabexComponents/StaticPages/Searchlist/Searchlist.jsx +0 -225
  106. package/srcOLD/TabexComponents/StaticPages/Signup/CustomerInformationForm.jsx +0 -788
  107. package/srcOLD/TabexComponents/StaticPages/Signup/Signup.jsx +0 -157
  108. package/srcOLD/TabexComponents/StaticPages/Staticpagesrouter/Staticpagesrouter.jsx +0 -295
  109. package/srcOLD/TabexComponents/StaticPages/Viewcart/Viewcart.js +0 -1090
  110. package/srcOLD/TabexComponents/StaticPages/Wishlist/Wishlist.jsx +0 -629
  111. package/srcOLD/assets/images/cod.png +0 -0
  112. package/srcOLD/assets/images/egyptflag.png +0 -0
  113. package/srcOLD/assets/images/fawry.png +0 -0
  114. package/srcOLD/assets/images/payment.png +0 -0
  115. package/srcOLD/assets/images/paymob.png +0 -0
  116. package/srcOLD/assets/images/paypal.png +0 -0
  117. package/srcOLD/assets/images/shoppingcart.png +0 -0
  118. package/srcOLD/assets/images/usflag.png +0 -0
  119. package/srcOLD/assets/images/visa.png +0 -0
  120. package/srcOLD/assets/images/whatsapp.png +0 -0
  121. package/srcOLD/button.jsx +0 -40
  122. package/srcOLD/index.jsx +0 -175
  123. package/srcOLD/styles/Home.module.css +0 -129
  124. package/srcOLD/styles/cards/Categorcycard_fullimage.module.css +0 -10
  125. package/srcOLD/styles/cards/Categorycard_slidebgscaled.module.css +0 -73
  126. package/srcOLD/styles/cards/Categorycard_withshapes.module.css +0 -189
  127. package/srcOLD/styles/cards/Productcard6.module.css +0 -9
  128. package/srcOLD/styles/cards/Productcard_with_circularbg.module.css +0 -137
  129. package/srcOLD/styles/cards/Productccard_with_zoominonhover.module.css +0 -51
  130. package/srcOLD/styles/cards/Prouductcard_with_zoomhover.module.css +0 -61
  131. package/srcOLD/styles/cards/categorycard.module.css +0 -102
  132. package/srcOLD/styles/cards/categorycard3.module.css +0 -51
  133. package/srcOLD/styles/cards/categorycardwithtext.module.css +0 -40
  134. package/srcOLD/styles/cards/productcard_animatedbuttons.module.css +0 -104
  135. package/srcOLD/styles/cards/productcard_with_textonhover.module.css +0 -12
  136. package/srcOLD/styles/cards/productccard_with_imageontopleft.module.css +0 -85
  137. package/srcOLD/styles/general/bootstrap.css +0 -4420
  138. package/srcOLD/styles/general/dropdown.css +0 -199
  139. package/srcOLD/styles/general/editorbardropdown.module.css +0 -94
  140. package/srcOLD/styles/general/filter.module.css +0 -108
  141. package/srcOLD/styles/general/form.module.css +0 -273
  142. package/srcOLD/styles/general/general.module.css +0 -709
  143. package/srcOLD/styles/general/image-gallery.css +0 -481
  144. package/srcOLD/styles/general/react-accessible-accordion.module.css +0 -52
  145. package/srcOLD/styles/general/react-phone-input-2.module.css +0 -927
  146. package/srcOLD/styles/general/scrollbtn.module.css +0 -22
  147. package/srcOLD/styles/general/slick.module.css +0 -166
  148. package/srcOLD/styles/general/tabs.module.css +0 -110
  149. package/srcOLD/styles/general/workplaceeditor.module.css +0 -328
  150. package/srcOLD/styles/globals.css +0 -26
  151. package/srcOLD/styles/headers/Allinoneheader.module.css +0 -91
  152. package/srcOLD/styles/headers/Header7.module.css +0 -50
  153. package/srcOLD/styles/headers/Header_threesectionslogocentered.module.css +0 -97
  154. package/srcOLD/styles/headers/Sideheader.module.css +0 -108
  155. package/srcOLD/styles/headers/classicheaderstyles.module.css +0 -16
  156. package/srcOLD/styles/headers/dropdown.css +0 -0
  157. package/srcOLD/styles/headers/header4.module.css +0 -175
  158. package/srcOLD/styles/headers/header5.module.css +0 -30
  159. package/srcOLD/styles/headers/header6.module.css +0 -117
  160. package/srcOLD/styles/headers/header_contactinfo.module.css +0 -78
  161. package/srcOLD/styles/headers/headerresturant.module.css +0 -89
  162. package/srcOLD/styles/headers/headerstyles.module.css +0 -24
  163. package/srcOLD/styles/headers/modernheader.module.css +0 -78
  164. package/srcOLD/styles/headers/subheader.module.css +0 -114
  165. package/srcOLD/styles/sections/Backgroundimage1.module.css +0 -17
  166. package/srcOLD/styles/sections/Backgroundimage_with_topcircle.module.css +0 -28
  167. package/srcOLD/styles/sections/Section_with_rightbgcont.module.css +0 -49
  168. package/srcOLD/styles/sections/Slideshow_with_rotatedsquare.module.css +0 -35
  169. package/srcOLD/styles/sections/Slideshow_with_squarebg.module.css +0 -39
  170. package/srcOLD/styles/staticpages/accordion.module.css +0 -9
  171. package/srcOLD/styles/staticpages/cart.module.css +0 -108
  172. package/srcOLD/styles/staticpages/dropdown.css +0 -196
  173. package/srcOLD/styles/staticpages/filter.module.css +0 -139
  174. package/srcOLD/styles/staticpages/login.module.css +0 -146
  175. package/srcOLD/styles/staticpages/productinfo.module.css +0 -54
  176. package/srcOLD/styles/staticpages/shop.module.css +0 -191
  177. package/srcOLD/styles/staticpages/signup.module.css +0 -206
  178. package/srcOLD/styles/staticpages/staticroutersidenav.module.css +0 -129
  179. package/srcOLD/styles/staticpages/viewcart.module.css +0 -129
  180. package/srcOLD/styles/staticpages/wishlist.module.css +0 -29
@@ -1,938 +0,0 @@
1
- import React, { useEffect, useState, useContext } from 'react';
2
- // import '../../Generalfiles/CSS_GENERAL/dropdown.css';
3
- // import headerstyles from './HeaderwithContactinfo.module.css';
4
- import headerstyles from '../../../styles/headers/header_contactinfo.module.css';
5
-
6
- // import generalstyles from '../../Generalfiles/CSS_GENERAL/general.module.css';
7
- import generalstyles from '../../../styles/general/general.module.css';
8
-
9
- import Dropdown from 'react-bootstrap/Dropdown';
10
- // import { LanguageContext } from '../../../LanguageContext';
11
- // import { FetchingContext } from '../../../FetchingContext';
12
- // import { TemplateRoutingContext } from '../../../TemplateRoutingContext';
13
- // import { WebsiteDesignWorkPlaceContext } from '../../../../WebsiteDesignWorkPlaceContext';
14
- import { GoSearch } from 'react-icons/go';
15
- import { css } from 'glamor';
16
- // import Searchlist from '../../StaticPages/Searchlist/Searchlist';
17
- // import Subheader from '../Subheader/Subheader';
18
- // import Headerresponsive from '../Headerresponsive/Headerresponsive';
19
- // import egyptflag from '../../Generalfiles/images/egyptflag.png';
20
- // import usflag from '../../Generalfiles/images/usflag.png';
21
- import { FaFacebookF, FaRegHeart } from 'react-icons/fa';
22
- import { AiOutlineInstagram, AiOutlineHeart, AiFillStar } from 'react-icons/ai';
23
- import { MdKeyboardArrowDown } from 'react-icons/md';
24
- import { FiShoppingBag, FiShoppingCart, FiUser } from 'react-icons/fi';
25
- import { CgShoppingBag } from 'react-icons/cg';
26
- import { IoClose } from 'react-icons/io5';
27
- import { BsBag, BsHandbag } from 'react-icons/bs';
28
- import { BiLogOutCircle } from 'react-icons/bi';
29
- import { MdOutlinePolicy, MdOutlineShoppingCart } from 'react-icons/md';
30
- import { AiOutlineStar, AiOutlineUserAdd, AiOutlineLogin } from 'react-icons/ai';
31
- import { IKImage } from 'imagekitio-react';
32
- import { IKpublicKey, IKurlEndpoint } from '../../../../Env';
33
-
34
- import { AiFillPhone, AiOutlineMail, AiOutlineClockCircle } from 'react-icons/ai';
35
- import { BsSearch, BsWhatsapp } from 'react-icons/bs';
36
- import { Offcanvas } from 'react-bootstrap';
37
-
38
- import Searchlist from '../../StaticPages/Searchlist/Searchlist.jsx';
39
- import egyptflag from '../../../assets/images/egyptflag.png';
40
- import usflag from '../../../assets/images/usflag.png';
41
- import Headerresponsive from '../Headerresponsive/Headerresponsive.jsx';
42
- import Subheader from '../Subheader/Subheader.jsx';
43
-
44
- const HeaderwithContactinfo = (props) => {
45
- // const { lang, setlang, langdetect } = useContext(LanguageContext);
46
- // const { setSearchHeaderInputContext, setsidecartnavshowcontext, fetchAuthorizationQueryContext, fetchcustomercartQueryContext, LogoutMutationContext, templateproperties_context } =
47
- // useContext(FetchingContext);
48
- // const { routingcountext, StaticPagesLinksContext } = useContext(TemplateRoutingContext);
49
- // const { fetch_inst_tabex_websitetemplatesQueryContext, StatePagePropertiesContext } = useContext(WebsiteDesignWorkPlaceContext);
50
- const [sectionproperties, setsectionproperties] = useState('');
51
-
52
- const LogoutMutationContext = props.actions.LogoutMutationContext;
53
- const fetchcustomercartQueryContext = props.actions.fetchcustomercartQueryContext;
54
- const setsidecartnavshowcontext = props.actions.setsidecartnavshowcontext;
55
- const setSearchHeaderInputContext = props.actions.setSearchHeaderInputContext;
56
- const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
57
- const lang = props.actions.lang;
58
- const langdetect = props.actions.langdetect;
59
- const setlang = props.actions.setlang;
60
- const templatepropcontext = props.actions.templatepropcontext;
61
- const authdetailsContext = props.actions.authdetailsContext;
62
- const templateproperties_context = props.actions.templateproperties_context;
63
- const favoriteprojectscountContext = props.actions.favoriteprojectscountContext;
64
- const routingcountext = props.actions.routingcountext;
65
- const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
66
- const actions = props.actions;
67
- // const fetch_inst_tabex_websitetemplatesQueryContext = props.fetch_inst_tabex_websitetemplatesQueryContext;
68
- useEffect(() => {
69
- var secpropobj = {};
70
- StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
71
- if (sectionitem.sectionid == props.sectionidprops) {
72
- sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
73
- secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
74
- });
75
- }
76
- });
77
- if (Object.keys(secpropobj).length === 0) {
78
- props.defaultproperties.forEach(function (defaultpropobj, defaultpropindex) {
79
- secpropobj[defaultpropobj.property_css_name] = defaultpropobj.property_value;
80
- });
81
- }
82
- setsectionproperties({ ...secpropobj });
83
- }, [StatePagePropertiesContext]);
84
- const [openSearchBar, setopenSearchBar] = useState(false);
85
-
86
- const header_cssstyles = {
87
- header_outercontainer: css({
88
- position: sectionproperties.headerstyles_position,
89
- justifyContent: 'center',
90
- marginTop: sectionproperties.header_marginTop + 'px',
91
- marginBottom: sectionproperties.header_marginBottom + 'px',
92
- width: sectionproperties.header_width + 'vw',
93
- maxWidth: '100vw',
94
- }),
95
- lowerHeaderContainer: css({
96
- backgroundColor: sectionproperties.headerstyles_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.header_backgroundColor,
97
- borderBottomLeftRadius: sectionproperties.header_borderBottomLeftRadius + 'px',
98
- borderBottomRightRadius: sectionproperties.header_BorderBottomRightRadius + 'px',
99
- borderTopLeftRadius: sectionproperties.header_borderTopLeftRadius + 'px',
100
- borderTopRightRadius: sectionproperties.header_borderTopRightRadius + 'px',
101
- paddingLeft: langdetect == 'en' ? sectionproperties.header_paddingLeft + 'px' : sectionproperties.header_paddingRight + 'px',
102
- paddingRight: langdetect == 'en' ? sectionproperties.header_paddingRight + 'px' : sectionproperties.header_paddingLeft + 'px',
103
- paddingTop: sectionproperties.header_paddingTop + 'px',
104
- paddingBottom: sectionproperties.header_paddingBottom + 'px',
105
- }),
106
- header_logo: css({
107
- width: templateproperties_context.logo_width + 'px',
108
- height: templateproperties_context.logo_height + 'px',
109
- }),
110
- navbar_item_text: css({
111
- color: sectionproperties.header_fontColor,
112
- fontSize: sectionproperties.header_fontSize + 'px',
113
- textTransform: sectionproperties.header_textTransform,
114
- fontWeight: sectionproperties.header_textfontweight,
115
- ':hover:after': {
116
- background: sectionproperties.header_fontColoronhover,
117
- },
118
- ':hover': {
119
- color: sectionproperties.header_fontColoronhover,
120
- },
121
- }),
122
- dropdownitem: css({
123
- fontSize: sectionproperties.dropdown_fontsize + 'px',
124
- color: sectionproperties.dropdown_color,
125
- fontWeight: sectionproperties.dropdown_fontweight,
126
- textTransform: sectionproperties.dropdown_texttransform,
127
- padding: '0.3rem 0.8rem',
128
- transition: '.3s',
129
- ':hover': {
130
- color: sectionproperties.dropdown_hovercolor,
131
- },
132
- }),
133
- dropdownitemcontainer: css({
134
- zIndex: 1000,
135
- transition: '.3s',
136
- ':hover .dropdownitem': { color: sectionproperties.dropdown_hovercolor },
137
- }),
138
- wishlist_btn: css({
139
- width: sectionproperties.favBtnWidth + 'px',
140
- height: sectionproperties.favBtnHeight + 'px',
141
- background: sectionproperties.favbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.favBtnbgColor,
142
- borderRadius: sectionproperties.fav_btn_borderBottomLeftRadius + 'px',
143
- color: sectionproperties.favBtniconcolor,
144
- border: sectionproperties.favbtnborderwidth + 'px solid ' + sectionproperties.favbtnbordercolor,
145
- transition: '.3s',
146
- ':hover': {
147
- background: sectionproperties.favbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.favBtnbgColoronhover,
148
- color: sectionproperties.favBtnTextcoloronhover,
149
- borderColor: sectionproperties.favbtn_transparentbgcoloronhover == 'Transparent' ? sectionproperties.favBtnTextcoloronhover : sectionproperties.favBtnbgColoronhover,
150
- },
151
- }),
152
- cart_btn: css({
153
- width: sectionproperties.cartBtnWidth + 'px',
154
- height: sectionproperties.cartBtnHeight + 'px',
155
- background: sectionproperties.cartbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.cartBtnbgColor,
156
- borderRadius: sectionproperties.cart_btn_borderBottomLeftRadius + 'px',
157
- color: sectionproperties.cart_iconcolor,
158
- textTransform: sectionproperties.cartBtnTexttransform,
159
- fontWeight: sectionproperties.cartBtnTextfontweight,
160
- border: sectionproperties.cartbtnborderwidth + 'px solid ' + sectionproperties.cartbtnbordercolor,
161
- transition: '.3s',
162
- position: 'relative',
163
- cursor: 'pointer',
164
- ':hover': {
165
- background: sectionproperties.cartbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.cartBtnbgColoronhover,
166
- borderColor: sectionproperties.cartbtn_transparentbgcoloronhover == 'Transparent' ? sectionproperties.cartBtnTextcoloronhover : sectionproperties.cartBtnbgColoronhover,
167
- color: sectionproperties.cartBtnTextcoloronhover,
168
- },
169
- }),
170
- user_btn: css({
171
- background: sectionproperties.userbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.userBtnbgColor,
172
- width: sectionproperties.userBtnWidth + 'px',
173
- height: sectionproperties.userBtnHeight + 'px',
174
- borderRadius: sectionproperties.userbtn_borderBottomLeftRadius + 'px',
175
- color: sectionproperties.userBtniconcolor,
176
- fontSize: sectionproperties.userBtniconfontsize + 'px',
177
- border: sectionproperties.userbtnborderwidth + 'px solid ' + sectionproperties.userbtnbordercolor,
178
- cursor: 'pointer',
179
- transition: '.3s',
180
- ':hover': {
181
- color: sectionproperties.userBtnTextcoloronhover,
182
- background: sectionproperties.userbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.userBtnbgColoronhover,
183
- borderColor: sectionproperties.userbtn_transparentbgcoloronhover == 'Transparent' ? sectionproperties.userBtnTextcoloronhover : sectionproperties.userBtnbgColoronhover,
184
- },
185
- }),
186
- loggedinusername: css({
187
- fontWeight: sectionproperties.userBtnTextfontweight,
188
- textTransform: sectionproperties.userBtnTexttransform,
189
- color: sectionproperties.userBtnTextcolor,
190
- fontSize: sectionproperties.userBtntextfontsize + 'px',
191
- lineHeight: sectionproperties.userBtntextfontsize + 'px',
192
- transition: '.3s',
193
- }),
194
- loggedinuserbtn: css({
195
- width: sectionproperties.loggedinuserbtn_width + 'px',
196
- height: sectionproperties.loggedinuserbtn_height + 'px',
197
- border: sectionproperties.userlogginbtnborderwidth + 'px solid ' + sectionproperties.userlogginbtnbordercolor,
198
- borderRadius: sectionproperties.userbtn_borderBottomLeftRadius + 'px',
199
- background: sectionproperties.userBtnbgColor_loggedin,
200
- color: sectionproperties.userBtniconcolor_loggedin,
201
- transition: '.3s',
202
- ':hover': {
203
- backgroundColor: sectionproperties.userBtnbgColoronhover_loggedin,
204
- },
205
- }),
206
- userBtnLoggedinContainer: css({
207
- transition: '.3s',
208
- ':hover .loggedinuserbtn': {
209
- transition: '.3s',
210
- color: sectionproperties.userBtnTextcoloronhover_loggedin,
211
- borderColor: sectionproperties.userbtn_loggedin_iconcoloronhover,
212
- },
213
- ':hover .loggedinuserbtnbg': {
214
- backgroundColor: sectionproperties.userBtnbgColoronhover_loggedin,
215
- color: sectionproperties.userbtn_loggedin_iconcoloronhover,
216
- },
217
- }),
218
- badge_counter_header_notifications: css({
219
- background: sectionproperties.badge_bgcolor,
220
- width: sectionproperties.badge_width + 'px',
221
- height: sectionproperties.badge_height + 'px',
222
- color: sectionproperties.badge_color,
223
- borderRadius: sectionproperties.badge_borderradius + 'px',
224
- fontSize: sectionproperties.badge_fontsize + 'px',
225
- }),
226
- languagecontainer: css({
227
- fontWeight: 400,
228
- color: sectionproperties.language_container_color,
229
- fontSize: sectionproperties.language_container_fontsize + 'px',
230
- cursor: 'pointer',
231
- transition: '.3s',
232
- ':hover': {
233
- color: sectionproperties.language_container_coloronhover,
234
- },
235
- }),
236
- fbbtn: css({
237
- width: sectionproperties.facebkbtnnWidth + 'px',
238
- height: sectionproperties.facebkbtnnHeight + 'px',
239
- backgroundColor: sectionproperties.facebkbtnn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.facebkbtnnbgColor,
240
- color: sectionproperties.facebkbtnnTextcolor,
241
- borderLeft: sectionproperties.vl_width + 'px solid ' + sectionproperties.vl_bg,
242
- borderRight: sectionproperties.vl_width + 'px solid ' + sectionproperties.vl_bg,
243
- transition: '.3s',
244
- ':hover': {
245
- color: sectionproperties.facebkbtnnTextcoloronhover,
246
- backgroundColor: sectionproperties.facebkbtnntransparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.facebkbtnnbgColoronhover,
247
- },
248
- }),
249
- instagrambtn: css({
250
- width: sectionproperties.instgrambtnWidth + 'px',
251
- height: sectionproperties.instgrambtnHeight + 'px',
252
- backgroundColor: sectionproperties.instgrambtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.instgrambtnbgColor,
253
- color: sectionproperties.instgrambtnTextcolor,
254
- borderLeft: langdetect == 'en' ? 0 : sectionproperties.vl_width + 'px solid ' + sectionproperties.vl_bg,
255
- borderRight: langdetect == 'en' ? sectionproperties.vl_width + 'px solid ' + sectionproperties.vl_bg : 0,
256
- transition: '.3s',
257
- ':hover': {
258
- color: sectionproperties.instgrambtnTextcoloronhover,
259
- backgroundColor: sectionproperties.instgrambtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.instgrambtnbgColoronhover,
260
- },
261
- }),
262
- whatsappbtn: css({
263
- width: sectionproperties.youtubebtnWidth + 'px',
264
- height: sectionproperties.youtubebtnHeight + 'px',
265
- backgroundColor: sectionproperties.youtubebtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.youtubebtnbgColor,
266
- color: sectionproperties.youtubebtnTextcolor,
267
- transition: '.3s',
268
- borderLeft: langdetect == 'en' ? 0 : sectionproperties.vl_width + 'px solid ' + sectionproperties.vl_bg,
269
- borderRight: langdetect == 'en' ? sectionproperties.vl_width + 'px solid ' + sectionproperties.vl_bg : 0,
270
- ':hover': {
271
- color: sectionproperties.youtubebtnTextcoloronhover,
272
- backgroundColor: sectionproperties.youtubebtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.youtubebtnbgColoronhover,
273
- },
274
- }),
275
- upperheadertext: css({
276
- fontSize: sectionproperties.footerinfotext_fontsize + 'px',
277
- color: sectionproperties.footerinfotext_color,
278
- fontWeight: sectionproperties.footerinfotext_fontweight,
279
- textTransform: sectionproperties.footerinfotext_textTransform,
280
- transition: '.3s',
281
- }),
282
- search_wrap: css({
283
- background: sectionproperties.searchbarcontinput_bgcolor,
284
- }),
285
- search_form: css({
286
- ':after': {
287
- backgroundColor: sectionproperties.searchbarcontinput_borderBottomcolor,
288
- },
289
- }),
290
- search_field: css({
291
- fontSize: sectionproperties.searchbarcontinput_fontsize + 'px',
292
- fontWeight: sectionproperties.searchbarcont_inputfontweight,
293
- color: sectionproperties.searchbarcontinput_color,
294
- '::placeholder': {
295
- color: sectionproperties.searchbarcontinput_color,
296
- },
297
- }),
298
- searchicon: css({
299
- color: sectionproperties.searchbaricon_color,
300
- cursor: 'pointer',
301
- transition: '.3s',
302
- ':hover': {
303
- color: sectionproperties.searchbariconcoloronhover,
304
- },
305
- }),
306
- closeOverlayBtn: css({
307
- width: sectionproperties.closeSliderWidth + 'px',
308
- height: sectionproperties.closeSliderHeight + 'px',
309
- color: sectionproperties.closeSlider_color,
310
- borderRadius: sectionproperties.closeSlider_borderBottomLeftRadius + 'px',
311
- border: '2px solid ' + sectionproperties.closeSlider_color,
312
- zIndex: 1000,
313
- transition: '.3s',
314
- ':hover': {
315
- color: sectionproperties.closeSlider_colorOnHover,
316
- borderColor: sectionproperties.closeSlider_colorOnHover,
317
- },
318
- }),
319
- };
320
- const [logoarrayofobjects, setlogoarrayofobjects] = useState([]);
321
- useEffect(() => {
322
- if (templateproperties_context.length != 0 && templateproperties_context.logoarrayofobjects != undefined) {
323
- var logoarrayofobjectsparsed = JSON.parse(templateproperties_context.logoarrayofobjects);
324
- if (Array.isArray(logoarrayofobjectsparsed)) {
325
- setlogoarrayofobjects([...logoarrayofobjectsparsed]);
326
- }
327
- }
328
- }, [templateproperties_context]);
329
- return (
330
- <div class={' row m-0 w-100 d-flex justify-content-center align-items-center '} style={{ zIndex: 1000 }}>
331
- <div class="col-lg-12 p-0">
332
- <div class={`${header_cssstyles.header_outercontainer}` + ' d-flex d-md-none row ml-0 mr-0 '}>
333
- {sectionproperties.showupperheadersection == 'Show' && (
334
- <div
335
- class="col-lg-12 d-flex align-items-center plr-1025-0"
336
- style={{
337
- paddingLeft: langdetect == 'en' ? sectionproperties.uppersection_paddingleft + 'px' : sectionproperties.uppersection_paddingright + 'px',
338
- paddingRight: langdetect == 'en' ? sectionproperties.uppersection_paddingright + 'px' : sectionproperties.uppersection_paddingleft + 'px',
339
- background: sectionproperties.uppersection_bgcolortransparent == 'Transparent' ? 'Transparent' : sectionproperties.uppersection_bgcolor,
340
- borderBottom: sectionproperties.vl_width + 'px solid ' + sectionproperties.vl_bg,
341
- }}
342
- >
343
- <div class="row m-0 w-100">
344
- <div class="col-lg-3 d-flex align-items-center p-0">
345
- <div class="row m-0 w-100">
346
- {sectionproperties.fbbtn_show == 'Show' && (
347
- <div class={header_cssstyles.fbbtn + ' p-0 allcentered cursor-pointer '}>
348
- <FaFacebookF size={sectionproperties.facebkbtnniconfontsize} />
349
- </div>
350
- )}
351
- {sectionproperties.youtbtn_show == 'Show' && (
352
- <div class={header_cssstyles.whatsappbtn + ' p-0 allcentered cursor-pointer '}>
353
- <BsWhatsapp size={sectionproperties.youtubebtniconfontsize} />
354
- </div>
355
- )}
356
- {sectionproperties.instbtn_show == 'Show' && (
357
- <div class={header_cssstyles.instagrambtn + ' p-0 allcentered cursor-pointer '}>
358
- <AiOutlineInstagram size={sectionproperties.instgrambtniconfontsize} />
359
- </div>
360
- )}
361
- </div>
362
- </div>
363
- <div class="col-lg-9 d-flex align-items-center justify-content-end">
364
- <div class="row m-0 w-100 d-flex align-items-center justify-content-end h-100">
365
- {sectionproperties.showfooterphonenumber == 'Show' && (
366
- <div
367
- class="d-flex align-items-center justify-content-center pl-3 pr-3 h-100"
368
- style={{ borderRight: sectionproperties.vl_width + 'px solid ' + sectionproperties.vl_bg }}
369
- >
370
- <a href={'tel:' + authdetailsContext.instinfo.contactinfo.mobile} target={'_self'} class="d-flex align-items-center">
371
- <AiFillPhone class={header_cssstyles.upperheadertext + ' ml-1 mr-1 '} size={sectionproperties.footerinfotext_fontsize} />
372
- <span class={header_cssstyles.upperheadertext}>{authdetailsContext.instinfo.contactinfo.mobile}</span>
373
- </a>
374
- </div>
375
- )}
376
- {sectionproperties.showfooteremail == 'Show' && (
377
- <div
378
- class="d-flex align-items-center justify-content-center pl-3 pr-3 h-100 cursor-pointer"
379
- style={{ borderRight: sectionproperties.vl_width + 'px solid ' + sectionproperties.vl_bg }}
380
- onClick={() => {
381
- window.open('mailto:' + authdetailsContext.instinfo.contactinfo.email, '_self');
382
- }}
383
- >
384
- <AiOutlineMail class={header_cssstyles.upperheadertext + ' ml-1 mr-1 '} size={sectionproperties.footerinfotext_fontsize} />
385
- <span class={header_cssstyles.upperheadertext}>{authdetailsContext.instinfo.contactinfo.email}</span>
386
- </div>
387
- )}
388
- {sectionproperties.showopeninghours == 'Show' && (
389
- <div
390
- class="d-flex align-items-center justify-content-center pl-3 pr-3 h-100"
391
- style={{ borderRight: sectionproperties.vl_width + 'px solid ' + sectionproperties.vl_bg }}
392
- >
393
- <AiOutlineClockCircle class={header_cssstyles.upperheadertext + ' ml-1 mr-1 '} size={sectionproperties.footerinfotext_fontsize} />
394
-
395
- <span class={header_cssstyles.upperheadertext}> Monday - Friday: 10:00 - 18:00</span>
396
- </div>
397
- )}
398
- <div
399
- class="d-flex align-items-center justify-content-center pl-3 pr-3 h-100"
400
- style={{ borderRight: sectionproperties.vl_width + 'px solid ' + sectionproperties.vl_bg }}
401
- onClick={() => {
402
- setopenSearchBar(true);
403
- }}
404
- >
405
- <BsSearch class={header_cssstyles.searchicon + ' cursor-pointer '} size={sectionproperties.searchbaricon_fontsize} />
406
- </div>
407
- <div
408
- class={
409
- langdetect == 'en'
410
- ? 'headerdropdownml d-flex align-items-center justify-content-center pl-3 pr-3'
411
- : 'headerdropdownmr d-flex align-items-center justify-content-center pl-3 pr-3'
412
- }
413
- >
414
- <Dropdown>
415
- <Dropdown.Toggle>
416
- <li class={' d-flex align-items-center justify-content-center '}>
417
- {langdetect == 'en' && (
418
- <div class={`${header_cssstyles.languagecontainer}` + ' row m-0 w-100 d-flex align-items-center '}>
419
- <p class="m-0 p-0 mr-2">English</p>
420
- <MdKeyboardArrowDown />
421
- </div>
422
- )}
423
- {langdetect == 'ar' && (
424
- <div class={`${header_cssstyles.languagecontainer}` + ' row m-0 w-100 d-flex align-items-center '}>
425
- <p class="m-0 p-0 ml-2">لغة عربية</p>
426
- <MdKeyboardArrowDown />
427
- </div>
428
- )}
429
- </li>
430
- </Dropdown.Toggle>
431
- <Dropdown.Menu>
432
- <Dropdown.Item
433
- onClick={() => {
434
- setlang('ar');
435
- }}
436
- >
437
- <div class={`${header_cssstyles.dropdownitemcontainer}`}>
438
- <p
439
- class={'dropdownitem d-flex align-items-center justify-content-center m-0 p-0'}
440
- style={{
441
- fontSize: sectionproperties.dropdown_fontsize + 'px',
442
- fontWeight: sectionproperties.dropdown_fontweight,
443
- textTransform: sectionproperties.dropdown_texttransform,
444
- }}
445
- >
446
- <img src={egyptflag} style={{ maxWidth: '2vh', maxHeight: '2vh' }} />
447
- <span class={'ml-2 mr-2'}>{lang.arabic}</span>
448
- </p>
449
- </div>
450
- </Dropdown.Item>
451
- <Dropdown.Divider></Dropdown.Divider>
452
- <Dropdown.Item
453
- onClick={() => {
454
- setlang('en');
455
- }}
456
- >
457
- <div class={`${header_cssstyles.dropdownitemcontainer}`}>
458
- <p
459
- class={'dropdownitem d-flex align-items-center justify-content-center m-0 p-0'}
460
- style={{
461
- fontSize: sectionproperties.dropdown_fontsize + 'px',
462
- fontWeight: sectionproperties.dropdown_fontweight,
463
- textTransform: sectionproperties.dropdown_texttransform,
464
- }}
465
- >
466
- <img src={usflag} style={{ maxWidth: '2vh', maxHeight: '2vh' }} />
467
- <span class={'ml-2 mr-2'}>{lang.english}</span>
468
- </p>
469
- </div>
470
- </Dropdown.Item>
471
- </Dropdown.Menu>
472
- </Dropdown>
473
- </div>
474
- </div>
475
- </div>
476
- </div>
477
- </div>
478
- )}
479
- <div class={`${headerstyles.lowerHeaderContainer} ${header_cssstyles.lowerHeaderContainer}` + ' row m-0 w-100 d-flex align-items-center plr-1025-1 '} style={{ zIndex: 2 }}>
480
- <div class="col-lg-2 p-0 d-flex align-items-center justify-content-start">
481
- <div
482
- class={`${header_cssstyles.header_logo}` + ' d-flex align-items-center justify-content-center '}
483
- style={{ cursor: 'pointer' }}
484
- onClick={() => {
485
- routingcountext('home');
486
- }}
487
- >
488
- <IKImage
489
- urlEndpoint={IKurlEndpoint}
490
- publicKey={IKpublicKey}
491
- path={langdetect == 'en' ? logoarrayofobjects[0]?.englishlogo : logoarrayofobjects[0]?.arabiclogo}
492
- style={{
493
- maxWidth: '100%',
494
- maxHeight: '100%',
495
- }}
496
- />
497
- </div>
498
- </div>
499
- <div class="col-lg-6 p-0 d-flex align-items-center justify-content-start">
500
- <nav class={headerstyles.navbar}>
501
- <ul>
502
- {templatepropcontext.pagesnprop.map((item, index) => {
503
- var activeclass = '';
504
- var pagedisabled = '';
505
- if (item.isselected) {
506
- activeclass = headerstyles.navbar_item_active;
507
- }
508
- if (item.isnavigation == 1 && item.isactive == 1) {
509
- return (
510
- <li
511
- style={{
512
- marginLeft: langdetect == 'en' ? 0 : '35px',
513
- marginRight: langdetect == 'en' ? '35px' : 0,
514
- }}
515
- >
516
- <div
517
- onClick={() => {
518
- routingcountext(item.navigationroute, false, '');
519
- }}
520
- >
521
- <div class={`${headerstyles.navbar_item} ${activeclass}`}>
522
- <span class={`${headerstyles.navbar_item_text} ${header_cssstyles.navbar_item_text}`}>
523
- {langdetect == 'en' ? item.pagename : item.pagename_ar}
524
- </span>
525
- </div>
526
- </div>
527
- </li>
528
- );
529
- }
530
- })}
531
- </ul>
532
- </nav>
533
- {sectionproperties.showhidesubheader == 'Show' && sectionproperties.subheaderposition == 'Besides Top Navigation' && (
534
- <Subheader
535
- sectionpropertiesprops={sectionproperties}
536
- subheaderpropertiesprops={{
537
- subheaderpositionprops: 'in nav',
538
- paddingLeftprops: '35px',
539
- paddingRightprops: '35px',
540
- subheadercontentpositionprops: 'start',
541
- }}
542
- />
543
- )}
544
- </div>
545
-
546
- <div class="col-lg-4 d-flex align-items-center justify-content-end">
547
- {sectionproperties.searchbar_show == 'Show' && (
548
- <div class="col-lg-4 p-0 d-flex justify-content-end align-items-center">
549
- <div class="row m-0 w-100 d-flex justify-content-end align-items-center">
550
- <div class="col-lg-12 p-0 d-flex justify-content-end align-items-center">
551
- <input
552
- class={`${headerstyles.searchbar} ${header_cssstyles.searchbarcont_input}`}
553
- placeholder={langdetect == 'en' ? "What're we looking for?" : 'البحث...'}
554
- onChange={(event) => {
555
- setSearchHeaderInputContext(event.target.value);
556
- }}
557
- style={{
558
- right: langdetect == 'en' ? 0 : '',
559
- left: langdetect == 'en' ? '' : 0,
560
- }}
561
- />
562
- <div class={`${header_cssstyles.searchbarcont}` + ' d-flex justify-content-center align-items-center '}>
563
- <i class={headerstyles.searchbaractive + ' h-100 d-flex align-items-center'}>
564
- <GoSearch
565
- size={sectionproperties.searchbarcontfontsize}
566
- style={{
567
- transform: langdetect == 'en' ? 'scaleX(1)' : 'scaleX(-1)',
568
- }}
569
- />
570
- </i>
571
- </div>
572
- </div>
573
- <div class="col-lg-12 p-0 d-flex justify-content-end align-items-center">
574
- <Searchlist sectionpropertiesprops={sectionproperties} srcfromprops={'header-300'} />
575
- </div>
576
- </div>
577
- </div>
578
- )}
579
- <div class="headerdropdownml ml-3 mr-3">
580
- <Dropdown>
581
- <Dropdown.Toggle>
582
- {!authdetailsContext.loggedin && (
583
- <div class={' d-flex justify-content-center align-items-center '}>
584
- <span
585
- class={
586
- `${headerstyles.navbar_item_text} ${header_cssstyles.navbar_item_text} ${header_cssstyles.user_btn}` +
587
- ' d-flex justify-content-center align-items-center '
588
- }
589
- >
590
- <FiUser size={sectionproperties.userBtniconfontsize} />
591
- </span>
592
- </div>
593
- )}
594
- {authdetailsContext.loggedin && (
595
- <div class={header_cssstyles.userBtnLoggedinContainer + ' allcentered '} sytle={{ position: 'relative' }}>
596
- <div class={header_cssstyles.loggedinuserbtn + ' loggedinuserbtn loggedinuserbtnbg ml-2 mr-2 '}>
597
- <i class={' h-100 allcentered '}>
598
- <FiUser size={sectionproperties.loggedinusericonfontsize} />
599
- </i>
600
- </div>
601
- <div
602
- class="m-0 p-0 loggedinuserbtn flex-column"
603
- style={{
604
- textAlign: langdetect == 'en' ? 'left' : 'right',
605
- }}
606
- >
607
- <p
608
- class="m-0 p-0"
609
- style={{
610
- color: sectionproperties.greetingtextcolor,
611
- fontSize: sectionproperties.greetingtextfontsize + 'px',
612
- lineHeight: sectionproperties.greetingtextfontsize + 'px',
613
- fontWeight: 400,
614
- }}
615
- >
616
- {lang.hello}
617
- {langdetect == 'en' ? ',' : '،'}
618
- </p>
619
- <p class={header_cssstyles.loggedinusername + ' loggedinuserbtn m-0 p-0 text-overflow '} style={{ maxWidth: '60px' }}>
620
- {authdetailsContext.customerinfo.name}
621
- </p>
622
- </div>
623
- </div>
624
- )}
625
- </Dropdown.Toggle>
626
- {!authdetailsContext.loggedin && (
627
- <Dropdown.Menu>
628
- <Dropdown.Item
629
- onClick={() => {
630
- routingcountext(StaticPagesLinksContext.Login);
631
- }}
632
- >
633
- <div class={`${header_cssstyles.dropdownitemcontainer}` + ' d-flex align-items-center m-0 p-0 '}>
634
- <p class={`${header_cssstyles.dropdownitem}` + ' d-flex align-items-center dropdownitem m-0 p-0 '}>
635
- <AiOutlineLogin />
636
- <span class="ml-2 mr-2">{lang.login}</span>
637
- </p>
638
- </div>
639
- </Dropdown.Item>
640
- <Dropdown.Divider></Dropdown.Divider>
641
- <Dropdown.Item
642
- onClick={() => {
643
- routingcountext(StaticPagesLinksContext.Signup);
644
- }}
645
- >
646
- <div class={`${header_cssstyles.dropdownitemcontainer}` + ' d-flex align-items-center m-0 p-0 '}>
647
- <p class={`${header_cssstyles.dropdownitem}` + ' d-flex align-items-center dropdownitem m-0 p-0 '}>
648
- <AiOutlineUserAdd />
649
- <span class="ml-2 mr-2 text-transform-none">{lang.signup}</span>
650
- </p>
651
- </div>
652
- </Dropdown.Item>
653
- </Dropdown.Menu>
654
- )}
655
- {authdetailsContext.loggedin && (
656
- <Dropdown.Menu style={{ minWidth: '200px' }}>
657
- <Dropdown.Item>
658
- <div class={`${header_cssstyles.dropdownitemcontainer}`}>
659
- <span
660
- style={{
661
- color: '#8fa0bd',
662
- }}
663
- >
664
- {lang.hello},
665
- </span>
666
- <span
667
- class={`${header_cssstyles.dropdownitem}` + ' dropdownitem font-weight-600 text-overflow text-capitalize p-0 ml-1 mr-1 '}
668
- onClick={() => {
669
- routingcountext(StaticPagesLinksContext.accountinfo);
670
- }}
671
- >
672
- {authdetailsContext.customerinfo.name}
673
- </span>
674
- </div>
675
- </Dropdown.Item>
676
- <Dropdown.Divider></Dropdown.Divider>
677
- <Dropdown.Item
678
- onClick={() => {
679
- routingcountext(StaticPagesLinksContext.Ordershistory);
680
- }}
681
- >
682
- <div class={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
683
- <p class={`${header_cssstyles.dropdownitem}` + ' dropdownitem d-flex align-items-center m-0 p-0 '}>
684
- {sectionproperties.carticonstyle == 'Shopping bag 1' && <FiShoppingBag />}
685
- {sectionproperties.carticonstyle == 'Shopping bag 2' && <CgShoppingBag />}
686
- {sectionproperties.carticonstyle == 'Shopping bag 3' && <BsBag />}
687
- {sectionproperties.carticonstyle == 'Shopping bag 4' && <BsHandbag />}
688
- {sectionproperties.carticonstyle == 'Shopping cart 1' && <FiShoppingCart />}
689
- {sectionproperties.carticonstyle == 'Shopping cart 2' && <MdOutlineShoppingCart />}
690
- <span class="ml-2 mr-2">{lang.orderhistory}</span>
691
- </p>
692
- </div>
693
- </Dropdown.Item>
694
- <Dropdown.Divider></Dropdown.Divider>
695
- <Dropdown.Item
696
- onClick={() => {
697
- routingcountext(StaticPagesLinksContext.Wishlist);
698
- }}
699
- >
700
- <div class={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
701
- <p class={`${header_cssstyles.dropdownitem}` + ' dropdownitem d-flex align-items-center m-0 p-0 '}>
702
- {sectionproperties.faviconshape == 'Heart Shape' && <AiOutlineHeart />}
703
- {sectionproperties.faviconshape == 'Star Shape' && <AiFillStar />}
704
- <span class="ml-2 mr-2">{lang.wishlist}</span>
705
- </p>
706
- </div>
707
- </Dropdown.Item>
708
- <Dropdown.Divider></Dropdown.Divider>
709
- <Dropdown.Item
710
- onClick={() => {
711
- routingcountext(StaticPagesLinksContext.Policies);
712
- }}
713
- >
714
- <div class={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
715
- <p class={`${header_cssstyles.dropdownitem}` + ' dropdownitem d-flex align-items-center m-0 p-0 '}>
716
- <MdOutlinePolicy />
717
- <span class="ml-2 mr-2">{lang.policies}</span>
718
- </p>
719
- </div>
720
- </Dropdown.Item>
721
- <Dropdown.Divider></Dropdown.Divider>
722
- <Dropdown.Item
723
- onClick={() => {
724
- LogoutMutationContext.mutate();
725
- }}
726
- >
727
- <div class={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
728
- <p class={`${header_cssstyles.dropdownitem}` + ' dropdownitem d-flex align-items-center m-0 p-0 '}>
729
- <BiLogOutCircle />
730
- <span class="ml-2 mr-2">{lang.logout}</span>
731
- </p>
732
- </div>
733
- </Dropdown.Item>
734
- </Dropdown.Menu>
735
- )}
736
- </Dropdown>
737
- </div>
738
- <div
739
- class={`${header_cssstyles.wishlist_btn}` + ' d-flex justify-content-center align-items-center cursor-pointer '}
740
- onClick={() => {
741
- routingcountext(StaticPagesLinksContext.Wishlist);
742
- }}
743
- style={{
744
- marginRight: langdetect == 'en' ? '1rem' : 0,
745
- marginLeft: langdetect == 'ar' ? '1rem' : 0,
746
- }}
747
- >
748
- {sectionproperties.faviconshape == 'Heart Shape' && <FaRegHeart size={sectionproperties.favBtnIconfontsize} />}
749
- {sectionproperties.faviconshape == 'Star Shape' && <AiOutlineStar size={sectionproperties.favBtnIconfontsize} />}
750
- </div>
751
- {sectionproperties.cartBtnShow == 'Show' && (
752
- <div
753
- class={'d-flex align-items-center justify-content-end'}
754
- style={{
755
- marginRight: sectionproperties.showupperheadersection == 'Hide' ? (langdetect == 'en' ? '1.5rem' : 0) : 0,
756
- marginLeft: sectionproperties.showupperheadersection == 'Hide' ? (langdetect == 'ar' ? '1.5rem' : 0) : 0,
757
- }}
758
- >
759
- <div
760
- class={`${header_cssstyles.cart_btn}` + ' allcentered '}
761
- onClick={() => {
762
- setsidecartnavshowcontext(true);
763
- }}
764
- >
765
- <div
766
- className={
767
- `${headerstyles.badge_counter_header_notifications} ${header_cssstyles.badge_counter_header_notifications}` +
768
- ' d-flex justify-content-center align-items-center '
769
- }
770
- style={{
771
- top: sectionproperties.cartbadgetop + 'px',
772
- right: sectionproperties.cartbadgeright + 'px',
773
- }}
774
- >
775
- {fetchcustomercartQueryContext?.data?.data?.customercart != null ? fetchcustomercartQueryContext?.data?.data?.customercart?.cartitems?.length : 0}
776
- </div>
777
- {sectionproperties.carticonstyle == 'Shopping bag 1' && <FiShoppingBag size={sectionproperties.cartBtn_iconFontSize} />}
778
- {sectionproperties.carticonstyle == 'Shopping bag 2' && <CgShoppingBag size={sectionproperties.cartBtn_iconFontSize} />}
779
- {sectionproperties.carticonstyle == 'Shopping bag 3' && <BsBag size={sectionproperties.cartBtn_iconFontSize} />}
780
- {sectionproperties.carticonstyle == 'Shopping bag 4' && <BsHandbag size={sectionproperties.cartBtn_iconFontSize} />}
781
- {sectionproperties.carticonstyle == 'Shopping cart 1' && <FiShoppingCart size={sectionproperties.cartBtn_iconFontSize} />}
782
- {sectionproperties.carticonstyle == 'Shopping cart 2' && <MdOutlineShoppingCart size={sectionproperties.cartBtn_iconFontSize} />}
783
- </div>
784
- </div>
785
- )}
786
- {sectionproperties.showupperheadersection == 'Hide' && (
787
- <div class={langdetect == 'en' ? 'headerdropdownml' : 'headerdropdownmr'}>
788
- <Dropdown>
789
- <Dropdown.Toggle>
790
- <li class={' d-flex align-items-center justify-content-center '}>
791
- {langdetect == 'en' && (
792
- <div class={`${header_cssstyles.languagecontainer}` + ' row m-0 w-100 d-flex align-items-center '}>
793
- <p class="m-0 p-0 mr-2">En</p>
794
- <MdKeyboardArrowDown />
795
- </div>
796
- )}
797
- {langdetect == 'ar' && (
798
- <div class={`${header_cssstyles.languagecontainer}` + ' row m-0 w-100 d-flex align-items-center '}>
799
- <p class="m-0 p-0 ml-2">ع</p>
800
- <MdKeyboardArrowDown />
801
- </div>
802
- )}
803
- </li>
804
- </Dropdown.Toggle>
805
- <Dropdown.Menu>
806
- <Dropdown.Item
807
- onClick={() => {
808
- setlang('ar');
809
- }}
810
- >
811
- <div class={`${header_cssstyles.dropdownitemcontainer}` + ' p-0 '}>
812
- <p
813
- class={'dropdownitem d-flex align-items-center m-0 p-0'}
814
- style={{
815
- fontSize: sectionproperties.dropdown_fontsize + 'px',
816
- fontWeight: sectionproperties.dropdown_fontweight,
817
- textTransform: sectionproperties.dropdown_texttransform,
818
- }}
819
- >
820
- <img src={egyptflag} style={{ maxWidth: '2vh', maxHeight: '2vh' }} />
821
- <span class={'ml-2 mr-2'}>{lang.arabic}</span>
822
- </p>
823
- </div>
824
- </Dropdown.Item>
825
- <Dropdown.Divider></Dropdown.Divider>
826
- <Dropdown.Item
827
- onClick={() => {
828
- setlang('en');
829
- }}
830
- >
831
- <div class={`${header_cssstyles.dropdownitemcontainer}` + ' p-0 '}>
832
- <p
833
- class={'dropdownitem d-flex align-items-center justify-content-center m-0 p-0'}
834
- style={{
835
- fontSize: sectionproperties.dropdown_fontsize + 'px',
836
- fontWeight: sectionproperties.dropdown_fontweight,
837
- textTransform: sectionproperties.dropdown_texttransform,
838
- }}
839
- >
840
- <img src={usflag} style={{ maxWidth: '2vh', maxHeight: '2vh' }} />
841
- <span class={'ml-2 mr-2'}>{lang.english}</span>
842
- </p>
843
- </div>
844
- </Dropdown.Item>
845
- </Dropdown.Menu>
846
- </Dropdown>
847
- </div>
848
- )}
849
- </div>
850
- </div>
851
- <div class="col-lg-12 p-0">
852
- {sectionproperties.showhidesubheader == 'Show' && sectionproperties.subheaderposition == 'Full Width' && (
853
- <Subheader
854
- sectionpropertiesprops={sectionproperties}
855
- subheaderpropertiesprops={{
856
- subheaderpositionprops: 'Full Width',
857
- paddingLeftprops: '35px',
858
- paddingRightprops: '35px',
859
- subheadercontentpositionprops: 'center',
860
- }}
861
- />
862
- )}
863
- </div>
864
- </div>
865
- <div class="col-lg-12 p-0">
866
- <Headerresponsive sectionpropertiesprops={sectionproperties} />
867
- </div>
868
- </div>
869
- <Offcanvas
870
- show={openSearchBar}
871
- onHide={() => {
872
- setopenSearchBar(false);
873
- }}
874
- placement="top"
875
- scroll={true}
876
- backdrop={true}
877
- >
878
- <Offcanvas.Body>
879
- <div class="row m-0 w-100 p-3">
880
- <div class={`${generalstyles.search_modern}`}>
881
- <div class={`${generalstyles.search_wrap} ${header_cssstyles.search_wrap}`}>
882
- <div class={' pl-5 pr-5 '}>
883
- <div class="row m-0 w-100 d-flex align-items-center">
884
- <div class="col-lg-6">
885
- <div style={{ width: '30vh', height: '20vh' }}>
886
- <IKImage
887
- urlEndpoint={IKurlEndpoint}
888
- publicKey={IKpublicKey}
889
- class={generalstyles.logo_image}
890
- path={langdetect == 'en' ? logoarrayofobjects[0]?.englishlogo : logoarrayofobjects[0]?.arabiclogo}
891
- style={{
892
- width: '100%',
893
- height: '100%',
894
- objectFit: 'contain',
895
- }}
896
- />
897
- </div>
898
- </div>
899
- <div class="col-lg-6 d-flex align-items-center justify-content-end">
900
- <div
901
- class={header_cssstyles.closeOverlayBtn + ' cursor-pointer '}
902
- onClick={() => {
903
- setopenSearchBar(false);
904
- setSearchHeaderInputContext('');
905
- }}
906
- >
907
- <i class="h-100 allcentered">
908
- <IoClose size={sectionproperties.closeSlider_fontSize} />
909
- </i>
910
- </div>
911
- </div>
912
- </div>
913
- </div>
914
- <div class={generalstyles.search_form_wrap}>
915
- <div class={`${generalstyles.search_form} ${header_cssstyles.search_form}`}>
916
- <input
917
- type="text"
918
- class={`${generalstyles.search_field} ${header_cssstyles.search_field}`}
919
- placeholder={langdetect == 'en' ? "What're we looking for?" : 'البحث...'}
920
- onChange={(event) => {
921
- setSearchHeaderInputContext(event.target.value);
922
- }}
923
- />
924
- </div>
925
- </div>
926
- <div style={{ position: 'absolute', top: '60%', left: 0, right: 0 }} class="allcentered">
927
- <Searchlist sectionpropertiesprops={sectionproperties} srcfromprops={'StylishHeader'} />
928
- </div>
929
- </div>
930
- </div>
931
- </div>
932
- </Offcanvas.Body>
933
- </Offcanvas>
934
- </div>
935
- );
936
- };
937
-
938
- export default HeaderwithContactinfo;