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