tabexseriescomponents 0.0.73 → 0.0.74

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