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