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,822 +0,0 @@
1
- import React, { useEffect, useState, useContext } from 'react';
2
- import { Link } from 'react-router-dom';
3
- import { css } from 'glamor';
4
- import Dropdown from 'react-bootstrap/Dropdown';
5
- import Searchlist from '../../StaticPages/Searchlist/Searchlist.jsx';
6
- import Headerresponsive from '../Headerresponsive/Headerresponsive.jsx';
7
- import Subheader from '../Subheader/Subheader.jsx';
8
- import headerstyles from '../../../styles/headers/CTAHeader.module.css';
9
- import { IKImage } from 'imagekitio-react';
10
- import { IKpublicKey, IKurlEndpoint } from '../../../../Env';
11
- import { MdOutlinePolicy, MdOutlineShoppingCart, MdKeyboardArrowDown } from 'react-icons/md';
12
- import { BiLogOutCircle } from 'react-icons/bi';
13
- import { AiOutlineStar, AiOutlineUserAdd, AiOutlineLogin, AiFillStar, AiOutlineHeart, AiFillInstagram } from 'react-icons/ai';
14
- import { CgShoppingBag } from 'react-icons/cg';
15
- import { FiShoppingBag, FiShoppingCart, FiUser } from 'react-icons/fi';
16
- import { BsBag, BsHandbag, BsTelephone, BsWhatsapp } from 'react-icons/bs';
17
- import { FaFacebookF, FaRegHeart } from 'react-icons/fa';
18
- import { GoSearch } from 'react-icons/go';
19
- import egyptflag from '../../../assets/images/egyptflag.png';
20
- import usflag from '../../../assets/images/usflag.png';
21
- const CTAHeader = (props) => {
22
- const lang = props.actions.lang;
23
- const langdetect = props.actions.langdetect;
24
- const setlang = props.actions.setlang;
25
- const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
26
- const setsidecartnavshowcontext = props.actions.setsidecartnavshowcontext;
27
- const LogoutMutationContext = props.actions.LogoutMutationContext;
28
- const fetchcustomercartQueryContext = props.actions.fetchcustomercartQueryContext;
29
- const templateproperties_context = props.actions.templateproperties_context;
30
- const setSearchHeaderInputContext = props.actions.setSearchHeaderInputContext;
31
- const routingcountext = props.actions.routingcountext;
32
- const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
33
- const authdetailsContext = props.actions.authdetailsContext;
34
- const templatepropcontext = props.actions.templatepropcontext;
35
- const actions = props.actions;
36
- const [sectionproperties, setsectionproperties] = useState('');
37
- useEffect(() => {
38
- var secpropobj = {};
39
- StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
40
- if (sectionitem.sectionid == props.sectionidprops) {
41
- sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
42
- secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
43
- });
44
- }
45
- });
46
- if (Object.keys(secpropobj).length === 0) {
47
- props.defaultproperties.forEach(function (defaultpropobj, defaultpropindex) {
48
- secpropobj[defaultpropobj.property_css_name] = defaultpropobj.property_value;
49
- });
50
- }
51
- setsectionproperties({ ...secpropobj });
52
- }, [StatePagePropertiesContext]);
53
- const [logoarrayofobjects, setlogoarrayofobjects] = useState([]);
54
- useEffect(() => {
55
- if (templateproperties_context.length != 0 && templateproperties_context.logoarrayofobjects != undefined) {
56
- var logoarrayofobjectsparsed = JSON.parse(templateproperties_context.logoarrayofobjects);
57
- if (Array.isArray(logoarrayofobjectsparsed)) {
58
- setlogoarrayofobjects([...logoarrayofobjectsparsed]);
59
- }
60
- }
61
- }, [templateproperties_context]);
62
- const header_cssstyles = {
63
- upperheader: css({
64
- backgroundColor: sectionproperties.uppersection_bgcolortransparent == 'Transparent' ? 'Transparent' : sectionproperties.uppersection_bgcolor,
65
- paddingLeft: langdetect == 'en' ? sectionproperties.uppersection_paddingleft + 'px' : sectionproperties.uppersection_paddingright + 'px',
66
- paddingRight: langdetect == 'en' ? sectionproperties.uppersection_paddingright + 'px' : sectionproperties.uppersection_paddingleft + 'px',
67
- paddingTop: sectionproperties.uppersection_paddingtop + 'px',
68
- paddingBottom: sectionproperties.uppersection_paddingbottom + 'px',
69
- }),
70
- iconContainer: css({
71
- color: sectionproperties.iconcontainercolor,
72
- backgroundColor: sectionproperties.iconcontainerbg,
73
- borderRadius: sectionproperties.iconcontainerbordertl + 'px',
74
- width: sectionproperties.iconcontainerwidth + 'px',
75
- height: sectionproperties.iconcontainerheight + 'px',
76
- transition: 'all, 0.3s',
77
- ':hover': {
78
- color: sectionproperties.iconcontainercoloronhover,
79
- backgroundColor: sectionproperties.iconcontainerbgonhover,
80
- },
81
- }),
82
- storeinfosecondarytext: css({
83
- fontSize: sectionproperties.footerinfotext_secondaryfontsize + 'px',
84
- color: sectionproperties.footerinfotext_secondarycolor,
85
- fontWeight: sectionproperties.footerinfotext_secondaryfontweight,
86
- textAlign: langdetect == 'en' ? 'left' : 'right',
87
- }),
88
- storeinfocont: css({
89
- ':hover .storeinfoconttext': {
90
- transition: '.3s',
91
- cursor: 'pointer',
92
- color: sectionproperties.footerinfotext_coloronhover,
93
- },
94
- ':hover .iconContainer': {
95
- color: sectionproperties.iconcontainercoloronhover,
96
- backgroundColor: sectionproperties.iconcontainerbgonhover,
97
- },
98
- }),
99
- header_logo: css({
100
- width: templateproperties_context.logo_width + 'px',
101
- height: templateproperties_context.logo_height + 'px',
102
- }),
103
- searchbarcont: css({
104
- position: 'relative',
105
- width: sectionproperties.searchbarcont_width + 'px',
106
- height: sectionproperties.searchbarcont_height + 'px',
107
- background: sectionproperties.searchbarcont_bgcolortransparent == 'Transparent' ? 'transparent' : sectionproperties.searchbarcont_bgcolor,
108
- borderRadius: sectionproperties.searchbarcont_borderRadius + 'px',
109
- border: sectionproperties.searchbarcontinput_borderwidth + 'px solid' + sectionproperties.searchbarcontinput_bordercolor,
110
- color: sectionproperties.searchbarcont_color,
111
- cursor: 'pointer',
112
- transition: '.3s',
113
- zIndex: 2,
114
- ':hover': {
115
- background: sectionproperties.searchbarcont_transparentbghover == 'Transparent' ? 'transparent' : sectionproperties.searchbarcont_bghover,
116
- borderColor: sectionproperties.searchbarcontcoloronhover,
117
- color: sectionproperties.searchbarcontcoloronhover,
118
- },
119
- }),
120
- searchbar_icon_cont: css({
121
- position: 'absolute',
122
- right: langdetect == 'en' ? sectionproperties.searchbaricon_right + 'px' : '',
123
- left: langdetect == 'en' ? '' : sectionproperties.searchbaricon_right + 'px',
124
- bottom: sectionproperties.searchbaricon_bottom + 'px',
125
- margin: 'auto',
126
- display: 'flex',
127
- justifyContent: 'center',
128
- alignItems: 'center',
129
- textAlign: 'center',
130
- width: sectionproperties.searchbaricon_width + 'px',
131
- height: sectionproperties.searchbaricon_height + 'px',
132
- borderRadius: sectionproperties.searchbaricon_borderBottomLeftRadius + 'px',
133
- color: sectionproperties.searchbaricon_color,
134
- backgroundColor: sectionproperties.searchbaricon_bgcolortransparent == 'Transparent' ? 'transparent' : sectionproperties.searchbaricon_bgcolor,
135
- transform: langdetect == 'en' ? 'scaleX(1)' : 'scaleX(-1)',
136
- }),
137
- searchbarcont_input: css({
138
- height: '45px',
139
- outline: 'none',
140
- border: 'none',
141
- transition: '0.3s',
142
- color: sectionproperties.searchbarcontinput_color,
143
- fontWeight: sectionproperties.searchbarcont_inputfontweight,
144
- fontSize: sectionproperties.searchbarcontinput_fontsize + 'px',
145
- paddingLeft: langdetect == 'en' ? ' 5px ' : ' 60px ',
146
- paddingRight: langdetect == 'en' ? ' 60px ' : ' 5px ',
147
- ':focus': {
148
- borderBottom: sectionproperties.searchbarcontinput_borderBottom + 'px solid ' + sectionproperties.searchbarcontinput_bordercoloronfocus,
149
- },
150
- }),
151
- user_btn: css({
152
- background: sectionproperties.userbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.userBtnbgColor,
153
- width: sectionproperties.userBtnWidth + 'px',
154
- height: sectionproperties.userBtnHeight + 'px',
155
- borderRadius: sectionproperties.userbtn_borderBottomLeftRadius + 'px',
156
- color: sectionproperties.userBtniconcolor,
157
- fontSize: sectionproperties.userBtniconfontsize + 'px',
158
- border: sectionproperties.userbtnborderwidth + 'px solid ' + sectionproperties.userbtnbordercolor,
159
- cursor: 'pointer',
160
- transition: '.3s',
161
- ':hover': {
162
- color: sectionproperties.userBtnTextcoloronhover,
163
- background: sectionproperties.userbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.userBtnbgColoronhover,
164
- borderColor: sectionproperties.userbtn_transparentbgcoloronhover == 'Transparent' ? sectionproperties.userBtnTextcoloronhover : sectionproperties.userBtnbgColoronhover,
165
- },
166
- }),
167
- loggedinusername: css({
168
- fontWeight: sectionproperties.userBtnTextfontweight,
169
- textTransform: sectionproperties.userBtnTexttransform,
170
- color: sectionproperties.userBtnTextcolor,
171
- fontSize: sectionproperties.userBtntextfontsize + 'px',
172
- lineHeight: sectionproperties.userBtntextfontsize + 'px',
173
- transition: '.3s',
174
- }),
175
- loggedinuserbtn: css({
176
- width: sectionproperties.loggedinuserbtn_width + 'px',
177
- height: sectionproperties.loggedinuserbtn_height + 'px',
178
- border: sectionproperties.userlogginbtnborderwidth + 'px solid ' + sectionproperties.userlogginbtnbordercolor,
179
- borderRadius: sectionproperties.userbtn_borderBottomLeftRadius + 'px',
180
- background: sectionproperties.userBtnbgColor_loggedin,
181
- color: sectionproperties.userBtniconcolor_loggedin,
182
- transition: '.3s',
183
- ':hover': {
184
- backgroundColor: sectionproperties.userBtnbgColoronhover_loggedin,
185
- },
186
- }),
187
- userBtnLoggedinContainer: css({
188
- transition: '.3s',
189
- ':hover .loggedinuserbtn': {
190
- transition: '.3s',
191
- color: sectionproperties.userBtnTextcoloronhover_loggedin,
192
- borderColor: sectionproperties.userbtn_loggedin_iconcoloronhover,
193
- },
194
- ':hover .loggedinuserbtnbg': {
195
- backgroundColor: sectionproperties.userBtnbgColoronhover_loggedin,
196
- color: sectionproperties.userbtn_loggedin_iconcoloronhover,
197
- },
198
- }),
199
- wishlist_btn: css({
200
- width: sectionproperties.favBtnWidth + 'px',
201
- height: sectionproperties.favBtnHeight + 'px',
202
- background: sectionproperties.favbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.favBtnbgColor,
203
- borderRadius: sectionproperties.fav_btn_borderBottomLeftRadius + 'px',
204
- color: sectionproperties.favBtniconcolor,
205
- border: sectionproperties.favbtnborderwidth + 'px solid ' + sectionproperties.favbtnbordercolor,
206
- transition: '.3s',
207
- ':hover': {
208
- background: sectionproperties.favbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.favBtnbgColoronhover,
209
- color: sectionproperties.favBtnTextcoloronhover,
210
- borderColor: sectionproperties.favbtn_transparentbgcoloronhover == 'Transparent' ? sectionproperties.favBtnTextcoloronhover : sectionproperties.favBtnbgColoronhover,
211
- },
212
- }),
213
- cart_btn: css({
214
- width: sectionproperties.cartBtnWidth + 'px',
215
- height: sectionproperties.cartBtnHeight + 'px',
216
- background: sectionproperties.cartbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.cartBtnbgColor,
217
- borderRadius: sectionproperties.cart_btn_borderBottomLeftRadius + 'px',
218
- color: sectionproperties.cart_iconcolor,
219
- border: sectionproperties.cartbtnborderwidth + 'px solid ' + sectionproperties.cartbtnbordercolor,
220
- transition: '.3s',
221
- position: 'relative',
222
- cursor: 'pointer',
223
- ':hover': {
224
- background: sectionproperties.cartbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.cartBtnbgColoronhover,
225
- borderColor: sectionproperties.cartbtn_transparentbgcoloronhover == 'Transparent' ? sectionproperties.cartBtnTextcoloronhover : sectionproperties.cartBtnbgColoronhover,
226
- color: sectionproperties.cartBtnTextcoloronhover,
227
- },
228
- }),
229
- badge_counter_header_notifications: css({
230
- display: 'flex',
231
- justifyContent: 'center',
232
- alignItems: 'center',
233
- position: 'absolute',
234
- top: sectionproperties.badge_top + 'px',
235
- right: sectionproperties.badge_right + 'px',
236
- background: sectionproperties.badge_bgcolor,
237
- width: sectionproperties.badge_width + 'px',
238
- height: sectionproperties.badge_height + 'px',
239
- color: sectionproperties.badge_color,
240
- borderRadius: sectionproperties.badge_borderradius + 'px',
241
- fontSize: sectionproperties.badge_fontsize + 'px',
242
- }),
243
- lowerheader: css({
244
- backgroundColor: sectionproperties.lowersection_bgcolortransparent == 'Transparent' ? 'Transparent' : sectionproperties.lowersection_backgroundColor,
245
- paddingLeft: langdetect == 'en' ? sectionproperties.lowersection_paddingleft + 'px' : sectionproperties.lowersection_paddingright + 'px',
246
- paddingRight: langdetect == 'en' ? sectionproperties.lowersection_paddingright + 'px' : sectionproperties.lowersection_paddingleft + 'px',
247
- paddingTop: sectionproperties.lowersection_paddingtop + 'px',
248
- paddingBottom: sectionproperties.lowersection_paddingbottom + 'px',
249
- }),
250
- facebook_btn: css({
251
- cursor: 'pointer',
252
- background: sectionproperties.facebkbtnn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.facebkbtnnbgColor,
253
- width: sectionproperties.facebkbtnnWidth + 'px',
254
- height: sectionproperties.facebkbtnnHeight + 'px',
255
- borderRadius: sectionproperties.facebkbtnn_borderRadius + 'px',
256
- color: sectionproperties.facebkbtnnTextcolor,
257
- border: sectionproperties.facebkbtnnborderwidth + 'px solid ' + sectionproperties.facebkbtnnbordercolor,
258
- transition: '.3s',
259
- ':hover': {
260
- background: sectionproperties.facebkbtnntransparentbgcoloronhover == 'Transparent' ? 'Transparent' : sectionproperties.facebkbtnnbgColoronhover,
261
- color: sectionproperties.facebkbtnnTextcoloronhover,
262
- borderColor: sectionproperties.facebkbtnnTextcoloronhover,
263
- },
264
- }),
265
- youtube_btn: css({
266
- cursor: 'pointer',
267
- background: sectionproperties.youtubebtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.youtubebtnbgColor,
268
- width: sectionproperties.youtubebtnWidth + 'px',
269
- height: sectionproperties.youtubebtnHeight + 'px',
270
- borderRadius: sectionproperties.youtubebtn_borderRadius + 'px',
271
- color: sectionproperties.youtubebtnTextcolor,
272
- border: sectionproperties.youtubebtnborderwidth + 'px solid ' + sectionproperties.youtubebtnbordercolor,
273
- transition: '.3s',
274
- ':hover': {
275
- background: sectionproperties.youtubebtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.youtubebtnbgColoronhover,
276
- color: sectionproperties.youtubebtnTextcoloronhover,
277
- borderColor: sectionproperties.youtubebtnTextcoloronhover,
278
- },
279
- }),
280
- instgram_btn: css({
281
- cursor: 'pointer',
282
- background: sectionproperties.instgrambtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.instgrambtnbgColor,
283
- width: sectionproperties.instgrambtnWidth + 'px',
284
- height: sectionproperties.instgrambtnHeight + 'px',
285
- borderRadius: sectionproperties.instgrambtn_borderRadius + 'px',
286
- color: sectionproperties.instgrambtnTextcolor,
287
- border: sectionproperties.instgrambtnborderwidth + 'px solid ' + sectionproperties.instgrambtnbordercolor,
288
- transition: '.3s',
289
- ':hover': {
290
- background: sectionproperties.instgrambtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.instgrambtnbgColoronhover,
291
- color: sectionproperties.instgrambtnTextcoloronhover,
292
- borderColor: sectionproperties.instgrambtnTextcoloronhover,
293
- },
294
- }),
295
- topbar_item_active: css({
296
- ':before': {
297
- background: sectionproperties.lowersection_fontColoronhover,
298
- },
299
- }),
300
- topbar_item_text_active: css({
301
- color: sectionproperties.lowersection_fontColoronhover,
302
- }),
303
- topbar_item: css({
304
- marginLeft: '30px',
305
- marginRight: '30px',
306
- ':hover:before': {
307
- background: sectionproperties.lowersection_fontColoronhover,
308
- },
309
- }),
310
- topbar_item_text: css({
311
- color: sectionproperties.lowersection_fontColor,
312
- fontSize: sectionproperties.lowersection_fontsize + 'px',
313
- textTransform: sectionproperties.lowersection_textTransform,
314
- fontWeight: sectionproperties.lowersection_textfontweight,
315
- transition: '.3s',
316
- ':hover': {
317
- color: sectionproperties.lowersection_fontColoronhover,
318
- },
319
- }),
320
- buttonStyles: css({
321
- color: sectionproperties.generalbtn_textColor,
322
- fontSize: sectionproperties.generalbtn_fontsize + 'px',
323
- textTransform: sectionproperties.generalbtn_texttransform,
324
- width: sectionproperties.generalbtn_width + 'px',
325
- height: sectionproperties.generalbtn_height + 'px',
326
- fontWeight: sectionproperties.generalbtn_fontweight,
327
- backgroundColor: sectionproperties.generalbtn_bgColor,
328
- borderBottomLeftRadius: sectionproperties.generalbtn_borderbottomleftradius,
329
- borderBottomRightRadius: sectionproperties.generalbtn_borderbottomrightradius,
330
- borderTopLeftRadius: sectionproperties.generalbtn_bordertopleftradius,
331
- borderTopRightRadius: sectionproperties.generalbtn_bordertoprightradius,
332
- ':hover': {
333
- backgroundColor: sectionproperties.generalbtn_bgColoronhover,
334
- transition: 'all, 0.3s',
335
- },
336
- }),
337
- dropdownitemcontainer: css({
338
- fontSize: sectionproperties.dropdown_fontsize + 'px',
339
- color: sectionproperties.dropdown_color,
340
- fontWeight: sectionproperties.dropdown_fontweight,
341
- textTransform: sectionproperties.dropdown_texttransform,
342
- padding: '0.3rem 0.8rem',
343
- display: 'flex',
344
- alignItems: 'center',
345
- transition: '.3s',
346
- ':hover': {
347
- color: sectionproperties.dropdown_hovercolor,
348
- },
349
- }),
350
- languagecontainer: css({
351
- color: sectionproperties.language_container_color,
352
- fontSize: sectionproperties.language_container_fontsize + 'px',
353
- fontWeight: 600,
354
- cursor: 'pointer',
355
- transition: '.3s',
356
- ':hover': {
357
- color: sectionproperties.language_container_coloronhover,
358
- },
359
- }),
360
- };
361
-
362
- return (
363
- <div class="row m-0 w-100 justify-content-center" style={{ width: '100vw', zIndex: 100 }}>
364
- <div class="col-lg-12 p-0 d-md-none d-sm-none" style={{ position: sectionproperties.headerstyles_position }}>
365
- {/* Upper Section */}
366
- <div class={header_cssstyles.upperheader + ' row m-0 w-100 pt-2 pb-2 justify-content-center '}>
367
- <div class="col-lg-4 p-0 d-flex align-items-center justify-content-start">
368
- {sectionproperties.showfooterphonenumber == 'Show' && (
369
- <div class="d-flex align-items-center">
370
- <a href={'tel:' + authdetailsContext?.instinfo?.contactinfo?.mobile} target={'_self'} class={`${header_cssstyles.storeinfocont}` + ' d-flex align-items-center '}>
371
- <div class={`${header_cssstyles.iconContainer}` + ' allcentered iconContainer '}>
372
- <i class="allcentered">
373
- <BsTelephone size={sectionproperties.icontextfontsize} />
374
- </i>
375
- </div>
376
- {sectionproperties.showfooterphonenumber == 'Show' && (
377
- <div>
378
- <p
379
- class="m-0 p-0 ml-2 mr-2"
380
- style={{
381
- fontSize: sectionproperties.footerinfotext_fontsize + 'px',
382
- color: sectionproperties.footerinfotext_color,
383
- textTransform: sectionproperties.footerinfotext_textTransform,
384
- fontWeight: sectionproperties.footerinfotext_fontweight,
385
- textAlign: langdetect == 'en' ? 'left' : 'right',
386
- }}
387
- >
388
- {langdetect == 'en' ? sectionproperties.footerinfotext_en : sectionproperties.footerinfotext_ar}
389
- </p>
390
- <p class={header_cssstyles.storeinfosecondarytext + ' m-0 p-0 ml-2 mr-2 storeinfoconttext '}>{authdetailsContext?.instinfo?.contactinfo?.mobile}</p>
391
- </div>
392
- )}
393
- </a>
394
- </div>
395
- )}
396
- </div>
397
- <div class="col-lg-4 p-0 d-flex align-items-center justify-content-center">
398
- <div
399
- class={`${header_cssstyles.header_logo}`}
400
- style={{ cursor: 'pointer' }}
401
- onClick={() => {
402
- routingcountext('home');
403
- }}
404
- >
405
- <IKImage
406
- urlEndpoint={IKurlEndpoint}
407
- publicKey={IKpublicKey}
408
- path={langdetect == 'en' ? logoarrayofobjects[0]?.englishlogo : logoarrayofobjects[0]?.arabiclogo}
409
- style={{
410
- width: '100%',
411
- height: '100%',
412
- objectFit: 'contain',
413
- }}
414
- />
415
- </div>
416
- </div>
417
- <div class="col-lg-4 p-0 d-flex align-items-center justify-content-end">
418
- {sectionproperties.searchbar_show == 'Show' && (
419
- <div class="col-lg-4 p-0 d-flex justify-content-end align-items-center">
420
- <div class="row m-0 w-100 d-flex justify-content-end align-items-center">
421
- <div class="col-lg-12 p-0 d-flex justify-content-end align-items-center">
422
- <div class={`${header_cssstyles.searchbarcont}` + ' d-flex justify-content-center align-items-center '}>
423
- <input
424
- class={`${headerstyles.searchbar} ${header_cssstyles.searchbarcont_input}`}
425
- placeholder={langdetect == 'en' ? "What're we looking for?" : 'البحث...'}
426
- onChange={(event) => {
427
- setSearchHeaderInputContext(event.target.value);
428
- }}
429
- style={{
430
- right: langdetect == 'en' ? 0 : '',
431
- left: langdetect == 'en' ? '' : 0,
432
- }}
433
- />
434
- <i class={`${headerstyles.searchbaractive}` + ' h-100 d-flex align-items-center hovericon '}>
435
- <GoSearch
436
- size={sectionproperties.searchbarcontfontsize}
437
- style={{
438
- Zindex: 2,
439
- transform: langdetect == 'en' ? 'scaleX(1)' : 'scaleX(-1)',
440
- }}
441
- />
442
- </i>
443
- </div>
444
- </div>
445
- <div class="col-lg-12 p-0 d-flex justify-content-end align-items-center">
446
- <Searchlist sectionpropertiesprops={sectionproperties} srcfromprops={'header-300'} actions={actions} />
447
- </div>
448
- </div>
449
- </div>
450
- )}
451
- <div
452
- class="headerdropdownml"
453
- style={{
454
- marginLeft: langdetect == 'en' ? '1.2rem' : 0,
455
- marginRight: langdetect == 'ar' ? '1.2rem' : 0,
456
- }}
457
- >
458
- <Dropdown>
459
- <Dropdown.Toggle>
460
- {!authdetailsContext.loggedin && (
461
- <div class={`${headerstyles.navbar_item}` + ' d-flex justify-content-center align-items-center '}>
462
- <span
463
- class={
464
- `${headerstyles.navbar_item_text} ${header_cssstyles.navbar_item_text} ${header_cssstyles.user_btn}` +
465
- ' d-flex justify-content-center align-items-center '
466
- }
467
- >
468
- <FiUser size={sectionproperties.userBtniconfontsize} />
469
- </span>
470
- </div>
471
- )}
472
- {authdetailsContext.loggedin && (
473
- <div class={header_cssstyles.userBtnLoggedinContainer + ' allcentered '} sytle={{ position: 'relative' }}>
474
- <div class={header_cssstyles.loggedinuserbtn + ' loggedinuserbtn loggedinuserbtnbg ml-2 mr-2 '}>
475
- <i class={' h-100 allcentered '}>
476
- <FiUser size={sectionproperties.loggedinusericonfontsize} />
477
- </i>
478
- </div>
479
- <div
480
- class="m-0 p-0 flex-column"
481
- style={{
482
- textAlign: langdetect == 'en' ? 'left' : 'right',
483
- }}
484
- >
485
- <p
486
- class="m-0 p-0"
487
- style={{
488
- color: sectionproperties.greetingtextcolor,
489
- fontSize: sectionproperties.greetingtextfontsize + 'px',
490
- lineHeight: sectionproperties.greetingtextfontsize + 'px',
491
- fontWeight: 400,
492
- }}
493
- >
494
- {lang.hello}
495
- {langdetect == 'en' ? ',' : '،'}
496
- </p>
497
- <p class={header_cssstyles.loggedinusername + ' loggedinuserbtn m-0 p-0 text-overflow '} style={{ maxWidth: '60px' }}>
498
- {authdetailsContext?.customerinfo?.name}
499
- </p>
500
- </div>
501
- </div>
502
- )}
503
- </Dropdown.Toggle>
504
- {!authdetailsContext.loggedin && (
505
- <Dropdown.Menu>
506
- <Dropdown.Item
507
- onClick={() => {
508
- routingcountext(StaticPagesLinksContext.Login);
509
- }}
510
- >
511
- <div class={`${header_cssstyles.dropdownitemcontainer}` + ' d-flex align-items-center m-0 p-0 '}>
512
- <p class={`${header_cssstyles.dropdownitem}` + ' d-flex align-items-center dropdownitem m-0 p-0 '}>
513
- <AiOutlineLogin />
514
- <span class="ml-2 mr-2">{lang.login}</span>
515
- </p>
516
- </div>
517
- </Dropdown.Item>
518
- <Dropdown.Divider></Dropdown.Divider>
519
- <Dropdown.Item
520
- onClick={() => {
521
- routingcountext(StaticPagesLinksContext.Signup);
522
- }}
523
- >
524
- <div class={`${header_cssstyles.dropdownitemcontainer}` + ' d-flex align-items-center m-0 p-0 '}>
525
- <p class={`${header_cssstyles.dropdownitem}` + ' d-flex align-items-center dropdownitem m-0 p-0 '}>
526
- <AiOutlineUserAdd />
527
- <span class="ml-2 mr-2 text-transform-none">{lang.signup}</span>
528
- </p>
529
- </div>
530
- </Dropdown.Item>
531
- </Dropdown.Menu>
532
- )}
533
- {authdetailsContext.loggedin && (
534
- <Dropdown.Menu style={{ minWidth: '200px' }}>
535
- <Dropdown.Item>
536
- <div class={`${header_cssstyles.dropdownitemcontainer}`}>
537
- <span
538
- style={{
539
- color: '#8fa0bd',
540
- }}
541
- >
542
- {lang.hello},
543
- </span>
544
- <span
545
- class={`${header_cssstyles.dropdownitem}` + ' dropdownitem font-weight-600 text-overflow text-capitalize p-0 ml-1 mr-1 '}
546
- onClick={() => {
547
- routingcountext(StaticPagesLinksContext.accountinfo);
548
- }}
549
- >
550
- {authdetailsContext.customerinfo.name}
551
- </span>
552
- </div>
553
- </Dropdown.Item>
554
- <Dropdown.Divider></Dropdown.Divider>
555
- <Dropdown.Item
556
- onClick={() => {
557
- routingcountext(StaticPagesLinksContext.Ordershistory);
558
- }}
559
- >
560
- <div class={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
561
- <p class={`${header_cssstyles.dropdownitem}` + ' dropdownitem d-flex align-items-center m-0 p-0 '}>
562
- {sectionproperties.carticonstyle == 'Shopping bag 1' && <FiShoppingBag />}
563
- {sectionproperties.carticonstyle == 'Shopping bag 2' && <CgShoppingBag />}
564
- {sectionproperties.carticonstyle == 'Shopping bag 3' && <BsBag />}
565
- {sectionproperties.carticonstyle == 'Shopping bag 4' && <BsHandbag />}
566
- {sectionproperties.carticonstyle == 'Shopping cart 1' && <FiShoppingCart />}
567
- {sectionproperties.carticonstyle == 'Shopping cart 2' && <MdOutlineShoppingCart />}
568
- <span class="ml-2 mr-2">{lang.orderhistory}</span>
569
- </p>
570
- </div>
571
- </Dropdown.Item>
572
- <Dropdown.Divider></Dropdown.Divider>
573
- <Dropdown.Item
574
- onClick={() => {
575
- routingcountext(StaticPagesLinksContext.Wishlist);
576
- }}
577
- >
578
- <div class={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
579
- <p class={`${header_cssstyles.dropdownitem}` + ' dropdownitem d-flex align-items-center m-0 p-0 '}>
580
- {sectionproperties.faviconshape == 'Heart Shape' && <AiOutlineHeart />}
581
- {sectionproperties.faviconshape == 'Star Shape' && <AiFillStar />}
582
- <span class="ml-2 mr-2">{lang.wishlist}</span>
583
- </p>
584
- </div>
585
- </Dropdown.Item>
586
- <Dropdown.Divider></Dropdown.Divider>
587
- <Dropdown.Item
588
- onClick={() => {
589
- routingcountext(StaticPagesLinksContext.Policies);
590
- }}
591
- >
592
- <div class={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
593
- <p class={`${header_cssstyles.dropdownitem}` + ' dropdownitem d-flex align-items-center m-0 p-0 '}>
594
- <MdOutlinePolicy />
595
- <span class="ml-2 mr-2">{lang.policies}</span>
596
- </p>
597
- </div>
598
- </Dropdown.Item>
599
- <Dropdown.Divider></Dropdown.Divider>
600
- <Dropdown.Item
601
- onClick={() => {
602
- LogoutMutationContext.mutate();
603
- }}
604
- >
605
- <div class={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
606
- <p class={`${header_cssstyles.dropdownitem}` + ' dropdownitem d-flex align-items-center m-0 p-0 '}>
607
- <BiLogOutCircle />
608
- <span class="ml-2 mr-2">{lang.logout}</span>
609
- </p>
610
- </div>
611
- </Dropdown.Item>
612
- </Dropdown.Menu>
613
- )}
614
- </Dropdown>
615
- </div>
616
- {sectionproperties.favBtnShow == 'Show' && (
617
- <div
618
- class={`${header_cssstyles.wishlist_btn}` + ' d-flex justify-content-center align-items-center cursor-pointer '}
619
- onClick={() => {
620
- routingcountext(StaticPagesLinksContext.Wishlist);
621
- }}
622
- style={{
623
- marginLeft: langdetect == 'en' ? '1.2rem' : 0,
624
- marginRight: langdetect == 'ar' ? '1.2rem' : 0,
625
- }}
626
- >
627
- {sectionproperties.faviconshape == 'Heart Shape' && <FaRegHeart size={sectionproperties.favBtnIconfontsize} />}
628
- {sectionproperties.faviconshape == 'Star Shape' && <AiOutlineStar size={sectionproperties.favBtnIconfontsize} />}
629
- </div>
630
- )}
631
- {sectionproperties.cartBtnShow == 'Show' && (
632
- <div
633
- class={`${header_cssstyles.cart_btn}` + ' allcentered '}
634
- onClick={() => {
635
- setsidecartnavshowcontext(true);
636
- }}
637
- style={{
638
- marginLeft: langdetect == 'en' ? '1.2rem' : 0,
639
- marginRight: langdetect == 'ar' ? '1.2rem' : 0,
640
- }}
641
- >
642
- <div
643
- className={
644
- `${headerstyles.badge_counter_header_notifications} ${header_cssstyles.badge_counter_header_notifications}` +
645
- ' d-flex justify-content-center align-items-center '
646
- }
647
- style={{
648
- top: sectionproperties.cartbadgetop + 'px',
649
- right: sectionproperties.cartbadgeright + 'px',
650
- }}
651
- >
652
- {fetchcustomercartQueryContext?.data?.data?.customercart != null ? fetchcustomercartQueryContext?.data?.data?.customercart?.cartitems?.length : 0}
653
- </div>
654
- {sectionproperties.carticonstyle == 'Shopping bag 1' && <FiShoppingBag size={sectionproperties.cartBtn_iconFontSize} />}
655
- {sectionproperties.carticonstyle == 'Shopping bag 2' && <CgShoppingBag size={sectionproperties.cartBtn_iconFontSize} />}
656
- {sectionproperties.carticonstyle == 'Shopping bag 3' && <BsBag size={sectionproperties.cartBtn_iconFontSize} />}
657
- {sectionproperties.carticonstyle == 'Shopping bag 4' && <BsHandbag size={sectionproperties.cartBtn_iconFontSize} />}
658
- {sectionproperties.carticonstyle == 'Shopping cart 1' && <FiShoppingCart size={sectionproperties.cartBtn_iconFontSize} />}
659
- {sectionproperties.carticonstyle == 'Shopping cart 2' && <MdOutlineShoppingCart size={sectionproperties.cartBtn_iconFontSize} />}
660
- </div>
661
- )}
662
- </div>
663
- </div>
664
- {/* Separator */}
665
- <div
666
- class="col-lg-12 p-0 allcentered"
667
- style={{
668
- backgroundColor: sectionproperties.uppersection_bgcolortransparent == 'Transparent' ? 'Transparent' : sectionproperties.uppersection_bgcolor,
669
- }}
670
- >
671
- <div style={{ background: sectionproperties.upperseparatorbgcolor, height: sectionproperties.upperseparatorheight + 'px', width: sectionproperties.upperseparatorwidth + '%' }} />
672
- </div>
673
- {/* Lower Section */}
674
- <div class={header_cssstyles.lowerheader + ' row m-0 w-100 justify-content-center '}>
675
- <div class="col-lg-3 p-0 d-flex align-items-center justify-content-start">
676
- {sectionproperties.fbbtn_show == 'Show' && (
677
- <div
678
- class={`${header_cssstyles.facebook_btn}` + ' d-flex align-items-center justify-content-center '}
679
- style={{
680
- marginRight: langdetect == 'en' ? '1rem' : 0,
681
- marginLeft: langdetect == 'ar' ? '1rem' : 0,
682
- }}
683
- >
684
- <FaFacebookF size={sectionproperties.facebkbtnniconfontsize} />
685
- </div>
686
- )}
687
- {sectionproperties.instbtn_show == 'Show' && (
688
- <div
689
- class={`${header_cssstyles.instgram_btn}` + ' d-flex align-items-center justify-content-center '}
690
- style={{
691
- marginRight: langdetect == 'en' ? '1rem' : 0,
692
- marginLeft: langdetect == 'ar' ? '1rem' : 0,
693
- }}
694
- >
695
- <AiFillInstagram size={sectionproperties.instgrambtniconfontsize} />
696
- </div>
697
- )}
698
- {sectionproperties.youtbtn_show == 'Show' && (
699
- <div class={`${header_cssstyles.youtube_btn}` + ' d-flex align-items-center justify-content-center '}>
700
- <BsWhatsapp size={sectionproperties.youtubebtniconfontsize} />
701
- </div>
702
- )}
703
- </div>
704
- <div class="col-lg-6 p-0 d-flex align-items-center justify-content-center">
705
- <ul
706
- style={{
707
- display: 'flex',
708
- }}
709
- >
710
- {templatepropcontext.pagesnprop.map((item, index) => {
711
- if (item.isnavigation == 1 && item.isactive == 1) {
712
- return (
713
- <li
714
- class="cursor-pointer"
715
- onClick={() => {
716
- routingcountext(item.navigationroute, false, '');
717
- }}
718
- style={{
719
- marginRight: langdetect == 'en' ? '30px' : 0,
720
- marginLeft: langdetect == 'ar' ? '30px' : 0,
721
- }}
722
- >
723
- <span class={`${header_cssstyles.topbar_item_text}`}>{langdetect == 'en' ? item.pagename : item.pagename_ar}</span>
724
- </li>
725
- );
726
- }
727
- })}
728
- </ul>
729
- </div>
730
- <div class="col-lg-3 p-0 d-flex align-items-center justify-content-end">
731
- {sectionproperties.generalbtn_show == 'Show' && (
732
- <button class={`${header_cssstyles.buttonStyles}` + ' allcentered '}>
733
- {langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar}
734
- </button>
735
- )}
736
- <div class={langdetect == 'en' ? 'headerdropdownml ml-3' : 'headerdropdownmr mr-3'}>
737
- <Dropdown>
738
- <Dropdown.Toggle>
739
- <li class={' d-flex align-items-center justify-content-center '}>
740
- {langdetect == 'en' && (
741
- <div class={`${header_cssstyles.languagecontainer}` + ' row m-0 w-100 d-flex align-items-center '}>
742
- <p class="m-0 p-0 mr-2">En</p>
743
- <MdKeyboardArrowDown />
744
- </div>
745
- )}
746
- {langdetect == 'ar' && (
747
- <div class={`${header_cssstyles.languagecontainer}` + ' row m-0 w-100 d-flex align-items-center '}>
748
- <p class="m-0 p-0 ml-2">ع</p>
749
- <MdKeyboardArrowDown />
750
- </div>
751
- )}
752
- </li>
753
- </Dropdown.Toggle>
754
- <Dropdown.Menu>
755
- <Dropdown.Item
756
- onClick={() => {
757
- setlang('ar');
758
- }}
759
- >
760
- <div class={`${header_cssstyles.dropdownitemcontainer}` + ' p-0 '}>
761
- <p
762
- class={'dropdownitem d-flex align-items-center m-0 p-0'}
763
- style={{
764
- fontSize: sectionproperties.dropdown_fontsize + 'px',
765
- fontWeight: sectionproperties.dropdown_fontweight,
766
- textTransform: sectionproperties.dropdown_texttransform,
767
- }}
768
- >
769
- <img src={egyptflag} style={{ maxWidth: '2vh', maxHeight: '2vh' }} />
770
- <span class={'ml-2 mr-2'}>{lang.arabic}</span>
771
- </p>
772
- </div>
773
- </Dropdown.Item>
774
- <Dropdown.Divider></Dropdown.Divider>
775
- <Dropdown.Item
776
- onClick={() => {
777
- setlang('en');
778
- }}
779
- >
780
- <div class={`${header_cssstyles.dropdownitemcontainer}` + ' p-0 '}>
781
- <p
782
- class={'dropdownitem d-flex align-items-center justify-content-center m-0 p-0'}
783
- style={{
784
- fontSize: sectionproperties.dropdown_fontsize + 'px',
785
- fontWeight: sectionproperties.dropdown_fontweight,
786
- textTransform: sectionproperties.dropdown_texttransform,
787
- }}
788
- >
789
- <img src={usflag} style={{ maxWidth: '2vh', maxHeight: '2vh' }} />
790
- <span class={'ml-2 mr-2'}>{lang.english}</span>
791
- </p>
792
- </div>
793
- </Dropdown.Item>
794
- </Dropdown.Menu>
795
- </Dropdown>
796
- </div>
797
- </div>
798
-
799
- {sectionproperties.showhidesubheader == 'Show' && (
800
- <div class="col-lg-12 col-md-12 col-sm-12 p-0">
801
- <Subheader
802
- sectionpropertiesprops={sectionproperties}
803
- subheaderpropertiesprops={{
804
- subheaderpositionprops: 'Full Width',
805
- paddingLeftprops: '30px',
806
- paddingRightprops: '30px',
807
- subheadercontentpositionprops: 'center',
808
- }}
809
- actions={actions}
810
- />
811
- </div>
812
- )}
813
- </div>
814
- </div>
815
- <div class="col-lg-12 col-md-12 col-sm-12 p-0 d-lg-none d-md-block d-sm-block">
816
- <Headerresponsive sectionpropertiesprops={sectionproperties} actions={actions} />
817
- </div>
818
- </div>
819
- );
820
- };
821
-
822
- export default CTAHeader;