tabexseriescomponents 0.0.73 → 0.0.75

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,709 +0,0 @@
1
- import React, { useEffect, useState, useContext } from 'react';
2
- import Dropdown from 'react-bootstrap/Dropdown';
3
- import headerstyles from '../../../styles/headers/headerresturant.module.css';
4
- import { IKImage } from 'imagekitio-react';
5
- import { IKpublicKey, IKurlEndpoint } from '../../../../Env';
6
- import { css } from 'glamor';
7
- import { BiLogOutCircle } from 'react-icons/bi';
8
- import { MdOutlinePolicy, MdOutlineShoppingCart } from 'react-icons/md';
9
- import { FaRegHeart } from 'react-icons/fa';
10
- import { CgShoppingBag } from 'react-icons/cg';
11
- import { BsInfoCircle, BsHandbag, BsBag, BsWhatsapp } from 'react-icons/bs';
12
- import { AiFillStar } from 'react-icons/ai';
13
- import { FiShoppingBag, FiShoppingCart, FiUser } from 'react-icons/fi';
14
- import { FaFacebookF } from 'react-icons/fa';
15
- import { AiFillInstagram, AiOutlineLogin, AiOutlineUserAdd, AiOutlineStar, AiOutlineHeart } from 'react-icons/ai';
16
- import egyptflag from '../../../assets/images/egyptflag.png';
17
- import usflag from '../../../assets/images/usflag.png';
18
- import Headerresponsive from '../Headerresponsive/Headerresponsive.jsx';
19
- import Subheader from '../Subheader/Subheader.jsx';
20
-
21
- const HeaderRestaurant = (props) => {
22
- const [sectionproperties, setsectionproperties] = useState('');
23
- const LogoutMutationContext = props.actions.LogoutMutationContext;
24
- const fetchcustomercartQueryContext = props.actions.fetchcustomercartQueryContext;
25
- const setsidecartnavshowcontext = props.actions.setsidecartnavshowcontext;
26
- const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
27
- const lang = props.actions.lang;
28
- const langdetect = props.actions.langdetect;
29
- const setlang = props.actions.setlang;
30
- const templatepropcontext = props.actions.templatepropcontext;
31
- const authdetailsContext = props.actions.authdetailsContext;
32
- const templateproperties_context = props.actions.templateproperties_context;
33
- const favoriteprojectscountContext = props.actions.favoriteprojectscountContext;
34
- const routingcountext = props.actions.routingcountext;
35
- const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
36
- const actions = props.actions;
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
- header_logo: css({
64
- width: templateproperties_context.logo_width + 'px',
65
- height: templateproperties_context.logo_height + 'px',
66
- }),
67
- header_innercontainer: css({
68
- justifyContent: 'center',
69
- marginTop: sectionproperties.header_marginTop + 'px',
70
- marginBottom: sectionproperties.header_marginBottom + 'px',
71
- width: '100vw',
72
- position: sectionproperties.headerstyles_position,
73
- zIndex: 11000,
74
- backgroundColor: sectionproperties.headerstyles_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.header_backgroundColor,
75
- borderBottomLeftRadius: sectionproperties.header_borderBottomLeftRadius + 'px',
76
- borderBottomRightRadius: sectionproperties.header_BorderBottomRightRadius + 'px',
77
- borderTopLeftRadius: sectionproperties.header_borderTopLeftRadius + 'px',
78
- borderTopRightRadius: sectionproperties.header_borderTopRightRadius + 'px',
79
- paddingLeft: langdetect == 'en' ? sectionproperties.header_paddingLeft + 'px' : sectionproperties.header_paddingRight + 'px',
80
- paddingRight: langdetect == 'en' ? sectionproperties.header_paddingRight + 'px' : sectionproperties.header_paddingLeft + 'px',
81
- paddingTop: sectionproperties.header_paddingTop + 'px',
82
- paddingBottom: sectionproperties.header_paddingBottom + 'px',
83
- }),
84
- navbar_item_text: css({
85
- color: sectionproperties.header_fontColor,
86
- fontSize: sectionproperties.header_fontSize + 'px',
87
- textTransform: sectionproperties.header_textTransform,
88
- fontWeight: sectionproperties.header_textfontweight,
89
- ':after': {
90
- background: sectionproperties.header_fontColoronhover,
91
- },
92
- ':hover': {
93
- color: sectionproperties.header_fontColoronhover,
94
- },
95
- }),
96
- cart_btn: css({
97
- width: sectionproperties.cartBtnWidth + 'px',
98
- height: sectionproperties.cartBtnHeight + 'px',
99
- background: sectionproperties.cartbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.cartBtnbgColor,
100
- borderRadius: sectionproperties.cart_btn_borderBottomLeftRadius + 'px',
101
- color: sectionproperties.cart_iconcolor,
102
- border: sectionproperties.cartbtnborderwidth + 'px solid ' + sectionproperties.cartbtnbordercolor,
103
- transition: '.3s',
104
- ':hover': {
105
- background: sectionproperties.cartbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.cartBtnbgColoronhover,
106
- color: sectionproperties.cartBtnTextcoloronhover,
107
- },
108
- }),
109
- badge_counter_header_notifications: css({
110
- background: sectionproperties.badge_bgcolor,
111
- width: sectionproperties.badge_width + 'px',
112
- height: sectionproperties.badge_height + 'px',
113
- color: sectionproperties.badge_color,
114
- borderRadius: sectionproperties.badge_borderradius + 'px',
115
- fontSize: sectionproperties.badge_fontsize + 'px',
116
- }),
117
- infoiconcontainer: css({
118
- width: sectionproperties.iconcontainerwidth + 'px',
119
- height: sectionproperties.iconcontainerheight + 'px',
120
- borderBottomLeftRadius: sectionproperties.iconcontainerborderbl + 'px',
121
- borderBottomRightRadius: sectionproperties.iconcontainerborderbr + 'px',
122
- borderTopLeftRadius: sectionproperties.iconcontainerbordertl + 'px',
123
- borderTopRightRadius: sectionproperties.iconcontainerbordertr + 'px',
124
- backgroundColor: sectionproperties.iconcontainerbg,
125
- color: sectionproperties.iconcontainercolor,
126
- ':hover': {
127
- transition: '.3s',
128
- background: sectionproperties.iconcontainerbgonhover,
129
- color: sectionproperties.iconcontainercoloronhover,
130
- },
131
- }),
132
- facebook_btn: css({
133
- cursor: 'pointer',
134
- background: sectionproperties.facebkbtnn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.facebkbtnnbgColor,
135
- width: sectionproperties.facebkbtnnWidth + 'px',
136
- height: sectionproperties.facebkbtnnHeight + 'px',
137
- borderRadius: sectionproperties.facebkbtnn_borderRadius + 'px',
138
- color: sectionproperties.facebkbtnnTextcolor,
139
- border: sectionproperties.facebkbtnnborderwidth + 'px solid ' + sectionproperties.facebkbtnnbordercolor,
140
- transition: '.3s',
141
- ':hover': {
142
- background: sectionproperties.facebkbtnntransparentbgcoloronhover == 'transparent' ? 'Transparent' : sectionproperties.facebkbtnnbgColoronhover,
143
- color: sectionproperties.facebkbtnnTextcoloronhover,
144
- borderColor: sectionproperties.facebkbtnntransparentbgcoloronhover == 'Transparent' ? sectionproperties.facebkbtnnTextcoloronhover : sectionproperties.facebkbtnnbgColoronhover,
145
- },
146
- }),
147
- youtube_btn: css({
148
- cursor: 'pointer',
149
- background: sectionproperties.youtubebtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.youtubebtnbgColor,
150
- width: sectionproperties.youtubebtnWidth + 'px',
151
- height: sectionproperties.youtubebtnHeight + 'px',
152
- borderRadius: sectionproperties.youtubebtn_borderRadius + 'px',
153
- color: sectionproperties.youtubebtnTextcolor,
154
- border: sectionproperties.youtubebtnborderwidth + 'px solid ' + sectionproperties.youtubebtnbordercolor,
155
- transition: '.3s',
156
- ':hover': {
157
- background: sectionproperties.youtubebtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.youtubebtnbgColoronhover,
158
- color: sectionproperties.youtubebtnTextcoloronhover,
159
- borderColor: sectionproperties.youtubebtn_transparentbgcoloronhover == 'Transparent' ? sectionproperties.youtubebtnTextcoloronhover : sectionproperties.youtubebtnbgColoronhover,
160
- },
161
- }),
162
- instgram_btn: css({
163
- cursor: 'pointer',
164
- background: sectionproperties.instgrambtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.instgrambtnbgColor,
165
- width: sectionproperties.instgrambtnWidth + 'px',
166
- height: sectionproperties.instgrambtnHeight + 'px',
167
- borderRadius: sectionproperties.instgrambtn_borderRadius + 'px',
168
- color: sectionproperties.instgrambtnTextcolor,
169
- border: sectionproperties.instgrambtnborderwidth + 'px solid ' + sectionproperties.instgrambtnbordercolor,
170
- transition: '.3s',
171
- ':hover': {
172
- background: sectionproperties.instgrambtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.instgrambtnbgColoronhover,
173
- color: sectionproperties.instgrambtnTextcoloronhover,
174
- borderColor: sectionproperties.instgrambtn_transparentbgcoloronhover == 'Transparent' ? sectionproperties.instgrambtnTextcoloronhover : sectionproperties.instgrambtnbgColoronhover,
175
- },
176
- }),
177
- user_btn: css({
178
- background: sectionproperties.userbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.userBtnbgColor,
179
- width: sectionproperties.userBtnWidth + 'px',
180
- height: sectionproperties.userBtnHeight + 'px',
181
- borderRadius: sectionproperties.userbtn_borderBottomLeftRadius + 'px',
182
- color: sectionproperties.userBtniconcolor,
183
- fontSize: sectionproperties.userBtniconfontsize + 'px',
184
- border: sectionproperties.userbtnborderwidth + 'px solid ' + sectionproperties.userbtnbordercolor,
185
- cursor: 'pointer',
186
- transition: '.3s',
187
- ':hover': {
188
- color: sectionproperties.userBtnTextcoloronhover,
189
- background: sectionproperties.userbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.userBtnbgColoronhover,
190
- borderColor: sectionproperties.userbtn_transparentbgcoloronhover == 'Transparent' ? sectionproperties.userBtnTextcoloronhover : sectionproperties.userBtnbgColoronhover,
191
- },
192
- }),
193
- loggedinusername: css({
194
- fontWeight: sectionproperties.userBtnTextfontweight,
195
- textTransform: sectionproperties.userBtnTexttransform,
196
- color: sectionproperties.userBtnTextcolor,
197
- fontSize: sectionproperties.userBtntextfontsize + 'px',
198
- lineHeight: sectionproperties.userBtntextfontsize + 'px',
199
- transition: '.3s',
200
- maxWidth: '40px',
201
- }),
202
- greetingstyles: css({
203
- color: sectionproperties.greetingtextcolor,
204
- fontSize: sectionproperties.greetingtextfontsize + 'px',
205
- lineHeight: sectionproperties.greetingtextfontsize + 'px',
206
- fontWeight: 400,
207
- }),
208
- loggedinuserbtn: css({
209
- width: sectionproperties.loggedinuserbtn_width + 'px',
210
- height: sectionproperties.loggedinuserbtn_height + 'px',
211
- border: sectionproperties.userlogginbtnborderwidth + 'px solid ' + sectionproperties.userlogginbtnbordercolor,
212
- borderRadius: sectionproperties.userbtn_borderBottomLeftRadius + 'px',
213
- background: sectionproperties.userBtnbgColor_loggedin,
214
- color: sectionproperties.userBtniconcolor_loggedin,
215
- transition: '.3s',
216
- ':hover': {
217
- backgroundColor: sectionproperties.userBtnbgColoronhover_loggedin,
218
- },
219
- }),
220
- userBtnLoggedinContainer: css({
221
- transition: '.3s',
222
- ':hover .loggedinuserbtn': {
223
- transition: '.3s',
224
- color: sectionproperties.userBtnTextcoloronhover_loggedin,
225
- borderColor: sectionproperties.userbtn_loggedin_iconcoloronhover,
226
- },
227
- ':hover .loggedinuserbtnbg': {
228
- backgroundColor: sectionproperties.userBtnbgColoronhover_loggedin,
229
- color: sectionproperties.userbtn_loggedin_iconcoloronhover,
230
- },
231
- }),
232
- dropdownitemcontainer: css({
233
- fontSize: sectionproperties.dropdown_fontsize + 'px',
234
- color: sectionproperties.dropdown_color,
235
- fontWeight: sectionproperties.dropdown_fontweight,
236
- textTransform: sectionproperties.dropdown_texttransform,
237
- padding: '0.3rem 0.8rem',
238
- display: 'flex',
239
- alignItems: 'center',
240
- transition: '.3s',
241
- ':hover': {
242
- color: sectionproperties.dropdown_hovercolor,
243
- },
244
- }),
245
- informationtitle: css({
246
- color: sectionproperties.userinfo_titlecolor,
247
- fontSize: sectionproperties.userinfo_titlefontsize + 'px',
248
- fontWeight: sectionproperties.userinfo_titlefontweight,
249
- }),
250
- infotext: css({
251
- color: sectionproperties.userinfo_color,
252
- fontSize: sectionproperties.userinfo_fontsize + 'px',
253
- fontWeight: sectionproperties.userinfo_fontweight,
254
- }),
255
- language_container: css({
256
- background: sectionproperties.language_container_bgcolor,
257
- width: sectionproperties.language_container_width + 'px',
258
- height: sectionproperties.language_container_height + 'px',
259
- color: sectionproperties.language_container_color,
260
- borderRadius: sectionproperties.language_container_borderRadius + 'px',
261
- fontSize: sectionproperties.language_container_fontsize + 'px',
262
- lineHeight: sectionproperties.language_container_fontsize + 'px',
263
- ':hover': {
264
- color: sectionproperties.language_container_coloronhover,
265
- background: sectionproperties.language_container_bgcoloronhover,
266
- },
267
- }),
268
- wishlist_btn: css({
269
- position: 'relative',
270
- width: sectionproperties.favBtnWidth + 'px',
271
- height: sectionproperties.favBtnHeight + 'px',
272
- background: sectionproperties.favbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.favBtnbgColor,
273
- borderRadius: sectionproperties.fav_btn_borderBottomLeftRadius + 'px',
274
- color: sectionproperties.favBtniconcolor,
275
- border: sectionproperties.favbtnborderwidth + 'px solid ' + sectionproperties.favbtnbordercolor,
276
- marginRight: langdetect == 'en' ? '15px' : 0,
277
- marginLeft: langdetect == 'en' ? 0 : '15px',
278
- cursor: 'pointer',
279
- transition: '.3s',
280
- ':hover': {
281
- background: sectionproperties.favbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.favBtnbgColoronhover,
282
- borderColor: sectionproperties.favbtn_transparentbgcoloronhover == 'Transparent' ? sectionproperties.favBtnTextcoloronhover : sectionproperties.favBtnbgColoronhover,
283
- color: sectionproperties.favBtnTextcoloronhover,
284
- },
285
- }),
286
- wishlistbadge: css({
287
- top: sectionproperties.wishlistbadgetop + 'px',
288
- right: sectionproperties.wishlistbadgeright + 'px',
289
- }),
290
- };
291
- return (
292
- <div class={' row ml-0 mr-0 w-100 d-flex justify-content-center position-md-relative '} style={{ position: sectionproperties.headerstyles_position }}>
293
- <div class="col-lg-12 p-0">
294
- <div class={`${headerstyles.header_innercontainer} ${header_cssstyles.header_innercontainer}` + ' row m-0 w-100 d-flex d-md-none align-items-center '}>
295
- <div class="col-lg-4 p-0 d-flex align-items-center">
296
- <div
297
- class={`${header_cssstyles.header_logo}` + ' d-flex align-items-center justify-content-center '}
298
- style={{ cursor: 'pointer' }}
299
- onClick={() => {
300
- routingcountext('home');
301
- }}
302
- >
303
- <IKImage
304
- urlEndpoint={IKurlEndpoint}
305
- publicKey={IKpublicKey}
306
- path={langdetect == 'en' ? logoarrayofobjects[0]?.englishlogo : logoarrayofobjects[0]?.arabiclogo}
307
- style={{
308
- maxWidth: '100%',
309
- maxHeight: '100%',
310
- }}
311
- />
312
- </div>
313
- </div>
314
- <div class="col-lg-4 p-0 d-flex align-items-center justify-content-center">
315
- <nav class={headerstyles.navbar}>
316
- <ul>
317
- {templatepropcontext.pagesnprop.map((item, index) => {
318
- var activeclass = '';
319
- var pagedisabled = '';
320
- if (item.isselected) {
321
- activeclass = headerstyles.navbar_item_active;
322
- }
323
-
324
- if (item.isnavigation == 1 && item.isactive == 1) {
325
- return (
326
- <li class="allcentered" style={{ flex: 1, paddingLeft: '25px', paddingRight: '25px' }}>
327
- <div
328
- onClick={() => {
329
- routingcountext(item.navigationroute, false, '');
330
- }}
331
- >
332
- <div class={`${headerstyles.navbar_item} ${activeclass}`}>
333
- <span class={`${headerstyles.navbar_item_text} ${header_cssstyles.navbar_item_text}`}>
334
- {langdetect == 'en' ? item.pagename : item.pagename_ar}
335
- </span>
336
- </div>
337
- </div>
338
- </li>
339
- );
340
- }
341
- })}
342
- </ul>
343
- </nav>
344
- </div>
345
- <div class="col-lg-4 p-0 d-flex align-items-center justify-content-end">
346
- <Dropdown
347
- style={{
348
- marginRight: langdetect == 'en' ? '30px' : 0,
349
- marginLeft: langdetect == 'ar' ? '30px' : 0,
350
- }}
351
- >
352
- <Dropdown.Toggle>
353
- <div class={' d-flex align-items-center justify-content-center '}>
354
- {!authdetailsContext.loggedin && (
355
- <span class={`${header_cssstyles.user_btn}` + ' d-flex justify-content-center align-items-center '}>
356
- <FiUser size={sectionproperties.userBtniconfontsize} />
357
- </span>
358
- )}
359
- {authdetailsContext.loggedin && (
360
- <div class={header_cssstyles.userBtnLoggedinContainer + ' allcentered '} sytle={{ position: 'relative' }}>
361
- <div class={header_cssstyles.loggedinuserbtn + ' loggedinuserbtn loggedinuserbtnbg ml-2 mr-2 '}>
362
- <i class={' h-100 allcentered '}>
363
- <FiUser size={sectionproperties.loggedinusericonfontsize} />
364
- </i>
365
- </div>
366
- <div
367
- class="m-0 p-0 loggedinuserbtn flex-column"
368
- style={{
369
- textAlign: langdetect == 'en' ? 'left' : 'right',
370
- }}
371
- >
372
- <p class={header_cssstyles.greetingstyles + ' m-0 p-0 '}>
373
- {lang.hello}
374
- {langdetect == 'en' ? ',' : '،'}
375
- </p>
376
- <p class={header_cssstyles.loggedinusername + ' loggedinuserbtn text-overflow m-0 p-0 '}>{authdetailsContext.customerinfo.name}</p>
377
- </div>
378
- </div>
379
- )}
380
- </div>
381
- </Dropdown.Toggle>
382
- {!authdetailsContext.loggedin && (
383
- <Dropdown.Menu>
384
- <Dropdown.Item
385
- onClick={() => {
386
- routingcountext(StaticPagesLinksContext.Login);
387
- }}
388
- >
389
- <div class={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
390
- <p class={' d-flex align-items-center m-0 p-0 '}>
391
- <AiOutlineLogin class={langdetect == 'en' ? 'mr-2' : 'ml-2'} />
392
- <span>{lang.login}</span>
393
- </p>
394
- </div>
395
- </Dropdown.Item>
396
- <Dropdown.Divider></Dropdown.Divider>
397
- <Dropdown.Item
398
- onClick={() => {
399
- routingcountext(StaticPagesLinksContext.Signup);
400
- }}
401
- >
402
- <div class={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
403
- <p class={' d-flex align-items-center m-0 p-0 '}>
404
- <AiOutlineUserAdd class={langdetect == 'en' ? 'mr-2' : 'ml-2'} />
405
- <span class="text-transform-none">{lang.signup}</span>
406
- </p>
407
- </div>
408
- </Dropdown.Item>
409
- </Dropdown.Menu>
410
- )}
411
- {authdetailsContext.loggedin && (
412
- <Dropdown.Menu style={{ minWidth: '200px' }}>
413
- <Dropdown.Item
414
- onClick={() => {
415
- routingcountext(StaticPagesLinksContext.Ordershistory);
416
- }}
417
- >
418
- <div class={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
419
- <p class={' d-flex align-items-center m-0 p-0 '}>
420
- {sectionproperties.carticonstyle == 'Shopping bag 1' && <FiShoppingBag class={langdetect == 'en' ? 'mr-2' : 'ml-2'} />}
421
- {sectionproperties.carticonstyle == 'Shopping bag 2' && <CgShoppingBag class={langdetect == 'en' ? 'mr-2' : 'ml-2'} />}
422
- {sectionproperties.carticonstyle == 'Shopping bag 3' && <BsBag class={langdetect == 'en' ? 'mr-2' : 'ml-2'} />}
423
- {sectionproperties.carticonstyle == 'Shopping bag 4' && <BsHandbag class={langdetect == 'en' ? 'mr-2' : 'ml-2'} />}
424
- {sectionproperties.carticonstyle == 'Shopping cart 1' && <FiShoppingCart class={langdetect == 'en' ? 'mr-2' : 'ml-2'} />}
425
- {sectionproperties.carticonstyle == 'Shopping cart 2' && <MdOutlineShoppingCart class={langdetect == 'en' ? 'mr-2' : 'ml-2'} />}
426
- <span>{lang.orderhistory}</span>
427
- </p>
428
- </div>
429
- </Dropdown.Item>
430
- <Dropdown.Divider></Dropdown.Divider>
431
- <Dropdown.Item
432
- onClick={() => {
433
- routingcountext(StaticPagesLinksContext.Wishlist);
434
- }}
435
- >
436
- <div class={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
437
- <p class={' d-flex align-items-center m-0 p-0 '}>
438
- {sectionproperties.faviconshape == 'Heart Shape' && <AiOutlineHeart class={langdetect == 'en' ? 'mr-2' : 'ml-2'} />}
439
- {sectionproperties.faviconshape == 'Star Shape' && <AiFillStar class={langdetect == 'en' ? 'mr-2' : 'ml-2'} />}
440
- <span>{lang.wishlist}</span>
441
- </p>
442
- </div>
443
- </Dropdown.Item>
444
- <Dropdown.Divider></Dropdown.Divider>
445
- <Dropdown.Item
446
- onClick={() => {
447
- routingcountext(StaticPagesLinksContext.Policies);
448
- }}
449
- >
450
- <div class={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
451
- <p class={' d-flex align-items-center m-0 p-0 '}>
452
- <MdOutlinePolicy class={langdetect == 'en' ? 'mr-2' : 'ml-2'} />
453
- <span>{lang.policies}</span>
454
- </p>
455
- </div>
456
- </Dropdown.Item>
457
- <Dropdown.Divider></Dropdown.Divider>
458
- <Dropdown.Item
459
- onClick={() => {
460
- LogoutMutationContext.mutate();
461
- }}
462
- >
463
- <div class={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
464
- <p class={' d-flex align-items-center m-0 p-0 '}>
465
- <BiLogOutCircle class={langdetect == 'en' ? 'mr-2' : 'ml-2'} />
466
- <span>{lang.logout}</span>
467
- </p>
468
- </div>
469
- </Dropdown.Item>
470
- </Dropdown.Menu>
471
- )}
472
- </Dropdown>
473
- {sectionproperties.favBtnShow == 'Show' && (
474
- <div
475
- class={`${header_cssstyles.wishlist_btn}` + ' d-flex justify-content-center align-items-center '}
476
- onClick={() => {
477
- routingcountext(StaticPagesLinksContext.Wishlist);
478
- }}
479
- >
480
- <span style={{ position: 'relative' }}>
481
- <i class={' h-100 d-flex align-items-center '}>
482
- {sectionproperties.faviconshape == 'Heart Shape' && (
483
- <FaRegHeart
484
- style={{
485
- fontSize: sectionproperties.favBtnIconfontsize + 'px',
486
- }}
487
- />
488
- )}
489
- {sectionproperties.faviconshape == 'Star Shape' && (
490
- <AiOutlineStar
491
- style={{
492
- fontSize: sectionproperties.favBtnIconfontsize + 'px',
493
- }}
494
- />
495
- )}
496
- </i>
497
- <div
498
- class={
499
- `${headerstyles.badge_counter_header_notifications} ${header_cssstyles.badge_counter_header_notifications} ${header_cssstyles.wishlistbadge}` +
500
- ' d-flex justify-content-center text-center '
501
- }
502
- >
503
- <span> {favoriteprojectscountContext.length >= 10 ? '+9' : favoriteprojectscountContext.length}</span>
504
- </div>
505
- </span>
506
- </div>
507
- )}
508
- <div
509
- class={
510
- !authdetailsContext.loggedin
511
- ? langdetect == 'en'
512
- ? `${header_cssstyles.cart_btn}` + ' cursor-pointer allcentered ml-3 mr-4 '
513
- : `${header_cssstyles.cart_btn}` + ' cursor-pointer allcentered ml-4 mr-3 '
514
- : `${header_cssstyles.cart_btn}` + ' cursor-pointer allcentered '
515
- }
516
- onClick={() => {
517
- setsidecartnavshowcontext(true);
518
- }}
519
- style={{
520
- marginRight: langdetect == 'en' ? '28px' : '15px',
521
- marginLeft: langdetect == 'en' ? '15px' : '25px',
522
- }}
523
- >
524
- <span style={{ position: 'relative' }}>
525
- <i class={' allcentered '}>
526
- {sectionproperties.carticonstyle == 'Shopping bag 1' && <FiShoppingBag class="" size={sectionproperties.cartBtn_iconFontSize} />}
527
- {sectionproperties.carticonstyle == 'Shopping bag 2' && <CgShoppingBag class="" size={sectionproperties.cartBtn_iconFontSize} />}
528
- {sectionproperties.carticonstyle == 'Shopping bag 3' && <BsBag class="" size={sectionproperties.cartBtn_iconFontSize} />}
529
- {sectionproperties.carticonstyle == 'Shopping bag 4' && <BsHandbag class="" size={sectionproperties.cartBtn_iconFontSize} />}
530
- {sectionproperties.carticonstyle == 'Shopping cart 1' && <FiShoppingCart class="" size={sectionproperties.cartBtn_iconFontSize} />}
531
- {sectionproperties.carticonstyle == 'Shopping cart 2' && <MdOutlineShoppingCart size={sectionproperties.cartBtn_iconFontSize} />}
532
- </i>
533
- <div
534
- className={
535
- `${headerstyles.badge_counter_header_notifications} ${header_cssstyles.badge_counter_header_notifications}` + ' d-flex justify-content-center text-center '
536
- }
537
- style={{
538
- top: sectionproperties.cartbadgetop + 'px',
539
- right: sectionproperties.cartbadgeright + 'px',
540
- }}
541
- >
542
- {fetchcustomercartQueryContext?.data?.data?.customercart != null
543
- ? fetchcustomercartQueryContext?.data?.data?.customercart?.cartitems?.length >= 10
544
- ? '+9'
545
- : fetchcustomercartQueryContext?.data?.data?.customercart?.cartitems?.length
546
- : 0}
547
- </div>
548
- </span>
549
- </div>
550
- <div class={langdetect == 'en' ? 'informationdropdown informationdropdown_en' : 'informationdropdown informationdropdown_ar'}>
551
- <Dropdown>
552
- <Dropdown.Toggle>
553
- <i class={header_cssstyles.infoiconcontainer + ' allcentered '}>
554
- <BsInfoCircle size={sectionproperties.icontextfontsize} />
555
- </i>
556
- </Dropdown.Toggle>
557
- <Dropdown.Menu>
558
- <Dropdown.Header
559
- style={{
560
- color: sectionproperties.sectionTitleColor,
561
- fontSize: sectionproperties.sectionTitleFontSize + 'px',
562
- textTransform: sectionproperties.sectionTitleTextTransform,
563
- fontWeight: sectionproperties.sectionTitleFontWeight,
564
- }}
565
- >
566
- {langdetect == 'en' ? sectionproperties.sectionTitleContent : sectionproperties.sectionTitleContent_ar}
567
- </Dropdown.Header>
568
- <Dropdown.Divider />
569
- <Dropdown.Item>
570
- <div class="row m-0 w-100">
571
- <div class="col-lg-3 p-0 d-flex align-items-center justify-content-start">
572
- <p class={header_cssstyles.informationtitle + ' p-0 m-0 '}>{lang.address}:</p>
573
- </div>
574
- <div class="col-lg-9 d-flex align-items-center justify-content-start">
575
- <p class={header_cssstyles.infotext + ' p-0 m-0 '}>{authdetailsContext?.instinfo?.address_en}</p>
576
- </div>
577
- </div>
578
- </Dropdown.Item>
579
- <Dropdown.Divider />
580
- <Dropdown.Item>
581
- <div class="row m-0 w-100">
582
- <div class="col-lg-3 p-0 d-flex align-items-center justify-content-start">
583
- <p class={header_cssstyles.informationtitle + ' p-0 m-0 '}>{langdetect == 'en' ? 'Phone' : 'التليفون'}:</p>
584
- </div>
585
- <div class="col-lg-9 d-flex align-items-center justify-content-start">
586
- <p class={header_cssstyles.infotext + ' p-0 m-0 '}>{authdetailsContext?.instinfo?.contactinfo?.mobile}</p>
587
- </div>
588
- </div>
589
- </Dropdown.Item>
590
- <Dropdown.Divider />
591
- <Dropdown.Item>
592
- <div class="row m-0 w-100">
593
- <div class="col-lg-3 p-0 d-flex align-items-center justify-content-start">
594
- <p class={header_cssstyles.informationtitle + ' p-0 m-0 '}>{lang.email}:</p>
595
- </div>
596
- <div class="col-lg-9 d-flex align-items-center justify-content-start">
597
- <p class={header_cssstyles.infotext + ' p-0 m-0 '}>{authdetailsContext?.instinfo?.contactinfo?.email}</p>
598
- </div>
599
- </div>
600
- </Dropdown.Item>
601
- <Dropdown.Divider />
602
- <Dropdown.Item>
603
- <div class="col-lg-12 col-sm-12 mb-sm-2 p-3 d-flex justify-content-center">
604
- <div class=" col-lg-12 d-flex flex-row align-items-center justify-content-center ">
605
- {sectionproperties.fbbtn_show == 'Show' && (
606
- <div class={`${header_cssstyles.facebook_btn}` + ' d-flex align-items-center justify-content-center '}>
607
- <FaFacebookF size={sectionproperties.facebkbtnniconfontsize} />
608
- </div>
609
- )}
610
- {sectionproperties.instbtn_show == 'Show' && (
611
- <div class={`${header_cssstyles.instgram_btn}` + ' d-flex align-items-center justify-content-center ml-3 mr-3 '}>
612
- <AiFillInstagram size={sectionproperties.instgrambtniconfontsize} />
613
- </div>
614
- )}
615
- {sectionproperties.youtbtn_show == 'Show' && (
616
- <div class={`${header_cssstyles.youtube_btn}` + ' d-flex align-items-center justify-content-center '}>
617
- <BsWhatsapp size={sectionproperties.youtubebtniconfontsize} />
618
- </div>
619
- )}
620
- </div>
621
- </div>
622
- </Dropdown.Item>
623
- </Dropdown.Menu>
624
- </Dropdown>
625
- </div>
626
- <div class={langdetect == 'en' ? 'headerdropdownml' : 'headerdropdownmr'}>
627
- <Dropdown
628
- style={{
629
- marginLeft: langdetect == 'en' ? '25px' : 0,
630
- marginRight: langdetect == 'ar' ? '25px' : 0,
631
- }}
632
- >
633
- <Dropdown.Toggle>
634
- <li class={' d-flex align-items-center justify-content-center '}>
635
- {langdetect == 'en' && (
636
- <div class={`${header_cssstyles.language_container}` + ' row m-0 allcentered '}>
637
- <img src={egyptflag} style={{ maxWidth: '2.5vh', maxHeight: '2.5vh' }} />
638
- <div style={{ height: '20px', width: '1.5px', background: '#e6e6e6' }} class="ml-2 mr-2"></div>
639
- <p class="m-0 p-0">ع</p>
640
- </div>
641
- )}
642
- {langdetect == 'ar' && (
643
- <div class={`${header_cssstyles.language_container}` + ' row m-0 allcentered '}>
644
- <img src={usflag} style={{ maxWidth: '2.5vh', maxHeight: '2.5vh' }} />
645
- <div style={{ height: '20px', width: '1.5px', background: '#e6e6e6' }} class="ml-2 mr-2"></div>
646
- <p class="m-0 p-0">En</p>
647
- </div>
648
- )}
649
- </li>
650
- </Dropdown.Toggle>
651
- <Dropdown.Menu>
652
- <Dropdown.Item
653
- onClick={() => {
654
- setlang('ar');
655
- }}
656
- >
657
- <div class={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
658
- <p class={' d-flex align-items-center m-0 p-0 '}>
659
- <img src={egyptflag} style={{ maxWidth: '2.5vh', maxHeight: '2.5vh' }} />
660
- <span class="ml-2 mr-2">{lang.arabic}</span>
661
- </p>
662
- </div>
663
- </Dropdown.Item>
664
- <Dropdown.Divider></Dropdown.Divider>
665
- <Dropdown.Item
666
- onClick={() => {
667
- setlang('en');
668
- }}
669
- >
670
- <span
671
- class="d-flex align-items-center justify-content-center"
672
- style={{
673
- fontSize: sectionproperties.dropdown_fontsize + 'px',
674
- fontWeight: sectionproperties.dropdown_fontweight,
675
- textTransform: sectionproperties.dropdown_texttransform,
676
- }}
677
- >
678
- <img src={usflag} style={{ maxWidth: '2.5vh', maxHeight: '2.5vh' }} />
679
- <span class="ml-2 mr-2">{lang.english}</span>
680
- </span>
681
- </Dropdown.Item>
682
- </Dropdown.Menu>
683
- </Dropdown>
684
- </div>
685
- </div>
686
- <div class="col-lg-12 p-0">
687
- {sectionproperties.showhidesubheader == 'Show' && (
688
- <Subheader
689
- sectionpropertiesprops={sectionproperties}
690
- actions={actions}
691
- subheaderpropertiesprops={{
692
- subheaderpositionprops: 'Full Width',
693
- paddingLeftprops: '35px',
694
- paddingRightprops: '35px',
695
- subheadercontentpositionprops: 'center',
696
- }}
697
- />
698
- )}
699
- </div>
700
- </div>
701
- <div class="col-lg-12 p-0">
702
- <Headerresponsive sectionpropertiesprops={sectionproperties} actions={actions} />
703
- </div>
704
- </div>
705
- </div>
706
- );
707
- };
708
-
709
- export default HeaderRestaurant;