tabexseriescomponents 0.0.217 → 0.0.220

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 (255) hide show
  1. package/dist/index.cjs.js +1044 -780
  2. package/dist/index.esm.js +1044 -780
  3. package/dist/index.umd.js +1042 -778
  4. package/library.zip +0 -0
  5. package/package.json +2 -1
  6. package/srcold/Contexts/LanguageContext.jsx +390 -0
  7. package/srcold/Contexts/ProductsCardsSectionContext.jsx +34 -0
  8. package/srcold/StylesJS/Customstyles.js +236 -0
  9. package/srcold/TabexComponents/Cards/Card20/Card20.jsx +282 -0
  10. package/srcold/TabexComponents/Cards/Card21/Card21.jsx +388 -0
  11. package/srcold/TabexComponents/Cards/Card22/Card22.jsx +287 -0
  12. package/srcold/TabexComponents/Cards/Card23/Card23.jsx +403 -0
  13. package/srcold/TabexComponents/Cards/CardBadgeSlideFromTop/CardBadgeSlideFromTop.jsx +395 -0
  14. package/srcold/TabexComponents/Cards/CardWithTextOnly/CardWithTextOnly.jsx +70 -0
  15. package/srcold/TabexComponents/Cards/CategoryCardTextOnImage/CategoryCardTextOnImage.jsx +211 -0
  16. package/srcold/TabexComponents/Cards/CategoryCardwithhoveraction/CategoryCardwithhoveraction.jsx +220 -0
  17. package/srcold/TabexComponents/Cards/Categorycard_fullimage/Categorycard_fullimage.jsx +230 -0
  18. package/srcold/TabexComponents/Cards/Categorycard_slidebgscaled/Categorycard_slidebgscaled.jsx +198 -0
  19. package/srcold/TabexComponents/Cards/Categorycard_with_trianglebg/Categorycard_with_trianglebg.jsx +170 -0
  20. package/srcold/TabexComponents/Cards/Categorycard_with_twolinestransition/Categorycard_with_twolinestransition.jsx +181 -0
  21. package/srcold/TabexComponents/Cards/Categorycard_withshapes/Categorycard_withshapes.jsx +161 -0
  22. package/srcold/TabexComponents/Cards/Categorycard_withtext/Categorycard_withtext.jsx +180 -0
  23. package/srcold/TabexComponents/Cards/CircleCardWithVariants/CircleCardWithVariants.jsx +487 -0
  24. package/srcold/TabexComponents/Cards/Classiccategorycard/Classiccategorycard.jsx +123 -0
  25. package/srcold/TabexComponents/Cards/HorizontalCategoryCard/HorizontalCategoryCard.jsx +192 -0
  26. package/srcold/TabexComponents/Cards/Horizontalcard/Horizontalcard.jsx +270 -0
  27. package/srcold/TabexComponents/Cards/MenuCard/MenuCard.jsx +543 -0
  28. package/srcold/TabexComponents/Cards/ModernCardWithQuantityButton/ModernCardWithQuantityButton.jsx +467 -0
  29. package/srcold/TabexComponents/Cards/ModernProductCard/ModernProductCard.jsx +469 -0
  30. package/srcold/TabexComponents/Cards/NewProductcard/NewProductcard.jsx +445 -0
  31. package/srcold/TabexComponents/Cards/ProductCardWithTextOnImage/ProductCardWithTextOnImage.jsx +304 -0
  32. package/srcold/TabexComponents/Cards/Productcard6/Productcard6.jsx +256 -0
  33. package/srcold/TabexComponents/Cards/Productcard7/Productcard7.jsx +278 -0
  34. package/srcold/TabexComponents/Cards/Productcard_animatedbuttons/Productcard_animatedbuttons.jsx +443 -0
  35. package/srcold/TabexComponents/Cards/Productcard_with_circularbg/Productcard_with_circularbg.jsx +275 -0
  36. package/srcold/TabexComponents/Cards/Productcard_with_circularhover/Productcard_with_circularhover.jsx +315 -0
  37. package/srcold/TabexComponents/Cards/Productcard_with_slideanimation/Productcard_with_slideanimation.jsx +301 -0
  38. package/srcold/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants.jsx +419 -0
  39. package/srcold/TabexComponents/Cards/Productcard_with_zoominonhover/Productcard_with_zoominonhover.jsx +524 -0
  40. package/srcold/TabexComponents/Cards/Productcarddefault/Productcarddefault.jsx +275 -0
  41. package/srcold/TabexComponents/Cards/Productccard_with_imageontopleft/Productccard_with_imageontopleft.jsx +286 -0
  42. package/srcold/TabexComponents/Cards/Prouductcard_with_zoomhover/Prouductcard_with_zoomhover.jsx +136 -0
  43. package/srcold/TabexComponents/Cards/Simplecategorycardwithtextbelow/Simplecategorycardwithtextbelow.jsx +179 -0
  44. package/srcold/TabexComponents/Cards/Simpleproductcard/Simpleproductcard.jsx +291 -0
  45. package/srcold/TabexComponents/Cards/StylishProductCard/StylishProductCard.jsx +339 -0
  46. package/srcold/TabexComponents/Cards/TwoWayServiceSectionWithImage/TwoWayServiceSectionWithImage.jsx +338 -0
  47. package/srcold/TabexComponents/Cards/UpSlideEffectCard/UpSlideEffectCard.jsx +515 -0
  48. package/srcold/TabexComponents/Cards/UserCardWithSocialMediaOnHover/UserCardWithSocialMediaOnHover.jsx +184 -0
  49. package/srcold/TabexComponents/Footer/Allinonefooter/Allinonefooter.jsx +475 -0
  50. package/srcold/TabexComponents/Footer/Footer1/Footer1.jsx +448 -0
  51. package/srcold/TabexComponents/Footer/Footer2/Footer2.jsx +383 -0
  52. package/srcold/TabexComponents/Footer/Footer3/Footer3.jsx +394 -0
  53. package/srcold/TabexComponents/Footer/Footer4/Footer4.jsx +699 -0
  54. package/srcold/TabexComponents/Footer/Footer5/Footer5.jsx +523 -0
  55. package/srcold/TabexComponents/Footer/Footer6/Footer6.jsx +301 -0
  56. package/srcold/TabexComponents/Footer/Footer7/Footer7.jsx +415 -0
  57. package/srcold/TabexComponents/Footer/Footer8/Footer8.jsx +454 -0
  58. package/srcold/TabexComponents/Footer/FooterWithThreeColumns/FooterWithThreeColumns.jsx +329 -0
  59. package/srcold/TabexComponents/Footer/Simplefooter/Simplefooter.jsx +274 -0
  60. package/srcold/TabexComponents/Generalfiles/images/egyptflag.png +0 -0
  61. package/srcold/TabexComponents/Generalfiles/images/noimage.png +0 -0
  62. package/srcold/TabexComponents/Generalfiles/images/payment/cod.png +0 -0
  63. package/srcold/TabexComponents/Generalfiles/images/payment/fawry.png +0 -0
  64. package/srcold/TabexComponents/Generalfiles/images/payment/payment.png +0 -0
  65. package/srcold/TabexComponents/Generalfiles/images/payment/paymob.png +0 -0
  66. package/srcold/TabexComponents/Generalfiles/images/payment/paypal.png +0 -0
  67. package/srcold/TabexComponents/Generalfiles/images/payment/visa.png +0 -0
  68. package/srcold/TabexComponents/Generalfiles/images/shoppingcart.png +0 -0
  69. package/srcold/TabexComponents/Generalfiles/images/tabexlogo.png +0 -0
  70. package/srcold/TabexComponents/Generalfiles/images/unknownmaleuser.png +0 -0
  71. package/srcold/TabexComponents/Generalfiles/images/usflag.png +0 -0
  72. package/srcold/TabexComponents/Generalfiles/images/whatsapp.png +0 -0
  73. package/srcold/TabexComponents/Headers/CTAHeader/CTAHeader.jsx +880 -0
  74. package/srcold/TabexComponents/Headers/CategoryFeaturingHeader/CategoryFeaturingHeader.jsx +870 -0
  75. package/srcold/TabexComponents/Headers/ClassicHeader/ClassicHeader.jsx +688 -0
  76. package/srcold/TabexComponents/Headers/Gotoheader/Gotoheader.jsx +720 -0
  77. package/srcold/TabexComponents/Headers/Header4/Header4.jsx +621 -0
  78. package/srcold/TabexComponents/Headers/Header8/Header8.jsx +824 -0
  79. package/srcold/TabexComponents/Headers/HeaderRestaurant/HeaderRestaurant.jsx +730 -0
  80. package/srcold/TabexComponents/Headers/HeaderWithAdSlider/HeaderWithAdSlider.jsx +762 -0
  81. package/srcold/TabexComponents/Headers/HeaderWithSearchOnCenter/HeaderWithSearchOnCenter.jsx +706 -0
  82. package/srcold/TabexComponents/Headers/HeaderWithUtilityBar/HeaderWithUtilityBar.jsx +900 -0
  83. package/srcold/TabexComponents/Headers/Header_threesectionslogocentered/Header_threesectionslogocentered.jsx +841 -0
  84. package/srcold/TabexComponents/Headers/Headerresponsive/Headerresponsive.jsx +988 -0
  85. package/srcold/TabexComponents/Headers/Headerresponsive/HeaderresponsiveNew.jsx +1081 -0
  86. package/srcold/TabexComponents/Headers/Headerresponsive/HeaderresponsiveOriginal.jsx +988 -0
  87. package/srcold/TabexComponents/Headers/HeaderwithContactinfo/HeaderwithContactinfo.jsx +917 -0
  88. package/srcold/TabexComponents/Headers/Modernheader/Modernheader.jsx +693 -0
  89. package/srcold/TabexComponents/Headers/SearchFocusedHeader/SearchFocusedHeader.jsx +952 -0
  90. package/srcold/TabexComponents/Headers/Simpleheader/Simpleheader.jsx +636 -0
  91. package/srcold/TabexComponents/Headers/StylishHeader/StylishHeader.jsx +853 -0
  92. package/srcold/TabexComponents/Headers/Subheader/Subheader copy.jsx +373 -0
  93. package/srcold/TabexComponents/Headers/Subheader/Subheader.jsx +515 -0
  94. package/srcold/TabexComponents/Headers/Subheader/SubheaderDropdown.jsx +190 -0
  95. package/srcold/TabexComponents/Headers/Subheader/SubheaderOriginal.jsx +483 -0
  96. package/srcold/TabexComponents/Headers/ThreeTieredHeader/ThreeTieredHeader.jsx +1005 -0
  97. package/srcold/TabexComponents/Headers/TwoTieredHeader/TwoTieredHeader.jsx +1020 -0
  98. package/srcold/TabexComponents/Headers/TwoTieredWithCenteredLogoHeader/TwoTieredWithCenteredLogoHeader .jsx +843 -0
  99. package/srcold/TabexComponents/Sections/BackgroundImages/BacgroundThreeImageWithCategories/BacgroundThreeImageWithCategories.jsx +448 -0
  100. package/srcold/TabexComponents/Sections/BackgroundImages/BackgroundFiveImageStructure/BackgroundFiveImageStructure.jsx +346 -0
  101. package/srcold/TabexComponents/Sections/BackgroundImages/BackgroundImageWithTopContent/BackgroundImageWithTopContent.jsx +304 -0
  102. package/srcold/TabexComponents/Sections/BackgroundImages/BackgroundSectionWithServicesCards/BackgroundSectionWithServicesCards.jsx +301 -0
  103. package/srcold/TabexComponents/Sections/BackgroundImages/Backgroundimage1/Backgroundimage1.jsx +312 -0
  104. package/srcold/TabexComponents/Sections/BackgroundImages/Backgroundimage_with_toppill/Backgroundimage_with_toppill.jsx +271 -0
  105. package/srcold/TabexComponents/Sections/BackgroundImages/BackgroundimageandTextsection/BackgroundimageandTextsection.jsx +174 -0
  106. package/srcold/TabexComponents/Sections/BackgroundImages/Bgimagewithsearchbar/Bgimagewithsearchbar.jsx +200 -0
  107. package/srcold/TabexComponents/Sections/BackgroundImages/FullVideoSection/FullVideoSection.jsx +263 -0
  108. package/srcold/TabexComponents/Sections/BackgroundImages/Section_with_rightbgcont/Section_with_rightbgcont.jsx +143 -0
  109. package/srcold/TabexComponents/Sections/BackgroundImages/TextSectionConnectToWA/TextSectionConnectToWA.jsx +248 -0
  110. package/srcold/TabexComponents/Sections/BackgroundImages/Threebgimages/Threebgimages.jsx +295 -0
  111. package/srcold/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages copy.jsx +394 -0
  112. package/srcold/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages.jsx +406 -0
  113. package/srcold/TabexComponents/Sections/BackgroundImages/VideosSection/VideosSection.jsx +246 -0
  114. package/srcold/TabexComponents/Sections/Cards/CardsSection/CardsSection.jsx +1220 -0
  115. package/srcold/TabexComponents/Sections/Cards/CardsSection2/CardsSection2.jsx +480 -0
  116. package/srcold/TabexComponents/Sections/Cards/CardsSectionwithfilter/CardsSectionwithfilter.jsx +718 -0
  117. package/srcold/TabexComponents/Sections/Cards/ElegantCategoriesCardSection/ElegantCategoriesCardSection.jsx +406 -0
  118. package/srcold/TabexComponents/Sections/Cards/ModernCardsSection/ModernCardsSection.jsx +652 -0
  119. package/srcold/TabexComponents/Sections/Cards/RandomlyStructuredCollectionCards/RandomlyStructuredCollectionCards.jsx +635 -0
  120. package/srcold/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.jsx +495 -0
  121. package/srcold/TabexComponents/Sections/Cards/UsersCardsSection/UsersCardsSection.jsx +383 -0
  122. package/srcold/TabexComponents/Sections/Slideshow/AboutSection/AboutSection.jsx +250 -0
  123. package/srcold/TabexComponents/Sections/Slideshow/Backgroundimage_with_topcircle/Backgroundimage_with_topcircle.jsx +160 -0
  124. package/srcold/TabexComponents/Sections/Slideshow/ContactUsSection/ContactUsSection.jsx +256 -0
  125. package/srcold/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection.jsx +329 -0
  126. package/srcold/TabexComponents/Sections/Slideshow/HorizontalContactUsSection/HorizontalContactUsSection.jsx +266 -0
  127. package/srcold/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx +371 -0
  128. package/srcold/TabexComponents/Sections/Slideshow/Image_with_rightwords/Image_with_rightwords.jsx +140 -0
  129. package/srcold/TabexComponents/Sections/Slideshow/ServiceSectionWithImage/ServiceSectionWithImage.jsx +374 -0
  130. package/srcold/TabexComponents/Sections/Slideshow/Servicesection/Servicesection.jsx +339 -0
  131. package/srcold/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards.jsx +303 -0
  132. package/srcold/TabexComponents/Sections/Slideshow/Slideshow_with_rotatedsquare/Slideshow_with_rotatedsquare.jsx +224 -0
  133. package/srcold/TabexComponents/Sections/Slideshow/Slideshow_with_squarebg/Slideshow_with_squarebg.jsx +147 -0
  134. package/srcold/TabexComponents/Sections/Slideshow/Slideshowdifferentanimations/Slideshowdifferentanimations.jsx +139 -0
  135. package/srcold/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade copy.jsx +634 -0
  136. package/srcold/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade.jsx +324 -0
  137. package/srcold/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide copy.jsx +525 -0
  138. package/srcold/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide.jsx +569 -0
  139. package/srcold/TabexComponents/Sections/Slideshow/Slideshowslide/SlideshowslideOriginal.jsx +475 -0
  140. package/srcold/TabexComponents/Sections/Slideshow/Slideshowzoom/Arrow.js +91 -0
  141. package/srcold/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom.jsx +369 -0
  142. package/srcold/TabexComponents/Sections/Slideshow/TwoWayServiceSectionWithImage/TwoWayServiceSectionWithImage.jsx +392 -0
  143. package/srcold/TabexComponents/StaticPages/AccountInformation/AccountInformation.jsx +213 -0
  144. package/srcold/TabexComponents/StaticPages/CartSlider/CartSlider.jsx +467 -0
  145. package/srcold/TabexComponents/StaticPages/Categoriesdropdown/Categoriesdropdown.jsx +181 -0
  146. package/srcold/TabexComponents/StaticPages/Checkout/Checkout.jsx +1280 -0
  147. package/srcold/TabexComponents/StaticPages/Filter/Filter copy.jsx +1392 -0
  148. package/srcold/TabexComponents/StaticPages/Filter/Filter.jsx +1399 -0
  149. package/srcold/TabexComponents/StaticPages/Filter/FilterOriginal.jsx +1132 -0
  150. package/srcold/TabexComponents/StaticPages/InnerGroups/InnerGroups.jsx +60 -0
  151. package/srcold/TabexComponents/StaticPages/Login/FacebookLoginButton.jsx +50 -0
  152. package/srcold/TabexComponents/StaticPages/Login/GoogleLoginButton.jsx +35 -0
  153. package/srcold/TabexComponents/StaticPages/Login/Login.jsx +469 -0
  154. package/srcold/TabexComponents/StaticPages/OrderSuccess/OrderSuccess.jsx +143 -0
  155. package/srcold/TabexComponents/StaticPages/Ordershistory/Ordershistory.jsx +1329 -0
  156. package/srcold/TabexComponents/StaticPages/Policies/Policies.jsx +306 -0
  157. package/srcold/TabexComponents/StaticPages/Productinfo/Product_itemtype.jsx +1334 -0
  158. package/srcold/TabexComponents/StaticPages/Productinfo/Productinfo.jsx +715 -0
  159. package/srcold/TabexComponents/StaticPages/Productinfo/Service_itemtype copy.jsx +361 -0
  160. package/srcold/TabexComponents/StaticPages/Productinfo/Service_itemtype.jsx +361 -0
  161. package/srcold/TabexComponents/StaticPages/Productinfo/Serviceinfotabs.jsx +501 -0
  162. package/srcold/TabexComponents/StaticPages/Productinfo/staticroutersidenav.module.css +145 -0
  163. package/srcold/TabexComponents/StaticPages/Searchlist/Searchlist.jsx +227 -0
  164. package/srcold/TabexComponents/StaticPages/Signup/CustomerInformationForm.jsx +832 -0
  165. package/srcold/TabexComponents/StaticPages/Signup/Signup.jsx +154 -0
  166. package/srcold/TabexComponents/StaticPages/Staticpagesrouter/Staticpagesrouter.jsx +280 -0
  167. package/srcold/TabexComponents/StaticPages/Viewcart/Viewcart.jsx +671 -0
  168. package/srcold/TabexComponents/StaticPages/Wishlist/Wishlist.jsx +538 -0
  169. package/srcold/assets/images/appstore.png +0 -0
  170. package/srcold/assets/images/cod.png +0 -0
  171. package/srcold/assets/images/egyptflag.png +0 -0
  172. package/srcold/assets/images/fawry.png +0 -0
  173. package/srcold/assets/images/googleplay.png +0 -0
  174. package/srcold/assets/images/ksa.png +0 -0
  175. package/srcold/assets/images/mastercard.png +0 -0
  176. package/srcold/assets/images/payment.png +0 -0
  177. package/srcold/assets/images/paymob.png +0 -0
  178. package/srcold/assets/images/paypal.png +0 -0
  179. package/srcold/assets/images/shoppingcart.png +0 -0
  180. package/srcold/assets/images/usflag.png +0 -0
  181. package/srcold/assets/images/visa.png +0 -0
  182. package/srcold/assets/images/whatsapp.png +0 -0
  183. package/srcold/button.jsx +40 -0
  184. package/srcold/index.jsx +283 -0
  185. package/srcold/styles/Home.module.css +129 -0
  186. package/srcold/styles/cards/Categorcycard_fullimage.module.css +10 -0
  187. package/srcold/styles/cards/Categorycard_slidebgscaled.module.css +73 -0
  188. package/srcold/styles/cards/Categorycard_withshapes.module.css +189 -0
  189. package/srcold/styles/cards/ModernCardWithQuantityButton.module.css +30 -0
  190. package/srcold/styles/cards/Productcard6.module.css +9 -0
  191. package/srcold/styles/cards/Productccard_with_zoominonhover.module.css +51 -0
  192. package/srcold/styles/cards/Prouductcard_with_zoomhover.module.css +61 -0
  193. package/srcold/styles/cards/UserCardWithSocialMediaOnHover.module.css +65 -0
  194. package/srcold/styles/cards/categorycard.module.css +85 -0
  195. package/srcold/styles/cards/categorycard3.module.css +50 -0
  196. package/srcold/styles/cards/categorycardwithtext.module.css +40 -0
  197. package/srcold/styles/cards/productcard_animatedbuttons.module.css +130 -0
  198. package/srcold/styles/cards/productcard_with_textonhover.module.css +18 -0
  199. package/srcold/styles/cards/productcard_withtextonimage.module.css +0 -0
  200. package/srcold/styles/cards/productccard_with_imageontopleft.module.css +85 -0
  201. package/srcold/styles/general/bootstrap.css +4727 -0
  202. package/srcold/styles/general/dropdown.css +206 -0
  203. package/srcold/styles/general/editorbardropdown.module.css +94 -0
  204. package/srcold/styles/general/filter.module.css +108 -0
  205. package/srcold/styles/general/form.module.css +273 -0
  206. package/srcold/styles/general/general.module.css +872 -0
  207. package/srcold/styles/general/image-gallery.css +531 -0
  208. package/srcold/styles/general/react-accessible-accordion.module.css +52 -0
  209. package/srcold/styles/general/react-phone-input-2.module.css +927 -0
  210. package/srcold/styles/general/scrollbtn.module.css +22 -0
  211. package/srcold/styles/general/slick.module.css +166 -0
  212. package/srcold/styles/general/tabs.module.css +119 -0
  213. package/srcold/styles/general/workplaceeditor.module.css +328 -0
  214. package/srcold/styles/globals.css +26 -0
  215. package/srcold/styles/headers/CTAHeader.module.css +40 -0
  216. package/srcold/styles/headers/CategoryFeaturingHeader.module.css +61 -0
  217. package/srcold/styles/headers/Gotoheader.module.css +81 -0
  218. package/srcold/styles/headers/Header7.module.css +50 -0
  219. package/srcold/styles/headers/HeaderWithAdSlider.module.css +86 -0
  220. package/srcold/styles/headers/HeaderWithSearchOnCenter.module.css +101 -0
  221. package/srcold/styles/headers/HeaderWithUtilityBar.module.css +46 -0
  222. package/srcold/styles/headers/Header_threesectionslogocentered.module.css +84 -0
  223. package/srcold/styles/headers/NewHeader.module.css +101 -0
  224. package/srcold/styles/headers/SearchFocusedHeader.module.css +62 -0
  225. package/srcold/styles/headers/Sideheader.module.css +108 -0
  226. package/srcold/styles/headers/Simpleheader.module.css +102 -0
  227. package/srcold/styles/headers/classicheader.module.css +16 -0
  228. package/srcold/styles/headers/classicheaderstyles.module.css +9 -0
  229. package/srcold/styles/headers/dropdown.css +0 -0
  230. package/srcold/styles/headers/header4.module.css +175 -0
  231. package/srcold/styles/headers/header5.module.css +30 -0
  232. package/srcold/styles/headers/header_contactinfo.module.css +53 -0
  233. package/srcold/styles/headers/headerresturant.module.css +89 -0
  234. package/srcold/styles/headers/modernheader.module.css +72 -0
  235. package/srcold/styles/headers/stylishheader.module.css +24 -0
  236. package/srcold/styles/headers/subheader.module.css +114 -0
  237. package/srcold/styles/headers/threetieredheader.module.css +91 -0
  238. package/srcold/styles/sections/BackgroundImageWithTopContent.css +4 -0
  239. package/srcold/styles/sections/Backgroundimage1.module.css +17 -0
  240. package/srcold/styles/sections/Backgroundimage_with_topcircle.module.css +28 -0
  241. package/srcold/styles/sections/Section_with_rightbgcont.module.css +49 -0
  242. package/srcold/styles/sections/Slideshow_with_rotatedsquare.module.css +35 -0
  243. package/srcold/styles/sections/Slideshow_with_squarebg.module.css +39 -0
  244. package/srcold/styles/staticpages/accordion.module.css +9 -0
  245. package/srcold/styles/staticpages/cart.module.css +108 -0
  246. package/srcold/styles/staticpages/dropdown.css +196 -0
  247. package/srcold/styles/staticpages/filter.module.css +139 -0
  248. package/srcold/styles/staticpages/image-gallery.css +481 -0
  249. package/srcold/styles/staticpages/login.module.css +113 -0
  250. package/srcold/styles/staticpages/productinfo.module.css +54 -0
  251. package/srcold/styles/staticpages/shop.module.css +191 -0
  252. package/srcold/styles/staticpages/signup.module.css +206 -0
  253. package/srcold/styles/staticpages/staticroutersidenav.module.css +129 -0
  254. package/srcold/styles/staticpages/viewcart.module.css +129 -0
  255. package/srcold/styles/staticpages/wishlist.module.css +29 -0
@@ -0,0 +1,1132 @@
1
+ import React, { useEffect, useState, useContext } from 'react';
2
+ import { Accordion, AccordionItem, AccordionItemHeading, AccordionItemButton, AccordionItemPanel, AccordionItemState } from 'react-accessible-accordion';
3
+ import filterstyles from '../../../styles/staticpages/filter.module.css';
4
+ import { css } from 'glamor';
5
+ import Dropdown from 'react-bootstrap/Dropdown';
6
+ import { IoMdClose } from '@react-icons/all-files/io/IoMdClose';
7
+ import { HiOutlinePlus } from '@react-icons/all-files/hi/HiOutlinePlus';
8
+ import { AiOutlineMinus } from '@react-icons/all-files/ai/AiOutlineMinus';
9
+ import { Offcanvas } from 'react-bootstrap';
10
+
11
+ const Filter = (props) => {
12
+ const lang = props.actions.lang;
13
+ const langdetect = props.actions.langdetect;
14
+ const productfiltercontext = props.actions.productfiltercontext;
15
+ const setproductfiltercontext = props.actions.setproductfiltercontext;
16
+ const ProductFilterObjContext = props.actions.ProductFilterObjContext;
17
+ const setProductFilterObjContext = props.actions.setProductFilterObjContext;
18
+ const authdetailsContext = props.actions.authdetailsContext;
19
+ const routingcountext = props.actions.routingcountext;
20
+ const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
21
+ const [sectionproperties, setsectionproperties] = useState('');
22
+ const [instfilters, setinstfilters] = useState([...authdetailsContext.instinfo.instfilters]);
23
+ const [instcollections, setinstcollections] = useState([...authdetailsContext.instinfo.instcollections]);
24
+ const [isfiltering, setisfiltering] = useState(false);
25
+ const [otherfilters, setotherfilters] = useState([
26
+ {
27
+ payloadvalue: 'sortprice',
28
+ name: lang.price,
29
+ filterarray: [
30
+ { name: lang.pricehightolow, value: 'hightolow', isfilterselected: false },
31
+ { name: lang.pricelowtohigh, value: 'lowtohigh', isfilterselected: false },
32
+ ],
33
+ },
34
+ {
35
+ payloadvalue: 'sortdates',
36
+
37
+ name: lang.dates,
38
+ filterarray: [
39
+ { name: lang.recent, value: 'recent', isfilterselected: false },
40
+ { name: lang.oldest, value: 'old', isfilterselected: false },
41
+ ],
42
+ },
43
+ ]);
44
+
45
+ useEffect(() => {
46
+ filterupdater();
47
+ }, []);
48
+ useEffect(() => {
49
+ setinstfilters([...authdetailsContext.instinfo.instfilters]);
50
+ setinstcollections([...authdetailsContext.instinfo.instcollections]);
51
+ }, [authdetailsContext]);
52
+ useEffect(() => {
53
+ if (props.sectionpropertiesprops != undefined && props.sectionpropertiesprops.length != 0) {
54
+ setsectionproperties(props.sectionpropertiesprops);
55
+ }
56
+ }, [props.sectionpropertiesprops]);
57
+ useEffect(() => {
58
+ filterupdater();
59
+ }, [ProductFilterObjContext]);
60
+ const filterupdater = () => {
61
+ if (instfilters.length != 0) {
62
+ var tempinstfilters = [...instfilters];
63
+ tempinstfilters?.forEach(function (instfilteritem, instfilterindex) {
64
+ instfilteritem.productvaluesfilter.forEach(function (valefilteritem, valefilteritemindex) {
65
+ valefilteritem.isfilterselected = false;
66
+ });
67
+ });
68
+ ProductFilterObjContext?.FilterOptions?.forEach(function (filteritem, filterindex) {
69
+ tempinstfilters?.forEach(function (instfilteritem, instfilterindex) {
70
+ instfilteritem?.productvaluesfilter?.forEach(function (valefilteritem, valefilteritemindex) {
71
+ if (filteritem.valueid == valefilteritem.valueid) {
72
+ valefilteritem.isfilterselected = true;
73
+ }
74
+ });
75
+ });
76
+ });
77
+ setinstfilters([...tempinstfilters]);
78
+ }
79
+ if (instcollections.length != 0) {
80
+ var tempInstcollections = [...instcollections];
81
+ tempInstcollections.forEach(function (instfilteritem, valefilteritemindex) {
82
+ instfilteritem.isfilterselected = false;
83
+ });
84
+ ProductFilterObjContext?.collections?.forEach(function (filteritem, filterindex) {
85
+ tempInstcollections?.forEach(function (instfilteritem, instfilterindex) {
86
+ if (instfilteritem.collectionid == filteritem) {
87
+ instfilteritem.isfilterselected = true;
88
+ }
89
+ });
90
+ });
91
+ setinstcollections([...tempInstcollections]);
92
+ }
93
+ };
94
+
95
+ const setfilterfunc = (valueid, valueindex, mainparentindex, type) => {
96
+ var tempfetchproductsfilerobjcontext = { ...ProductFilterObjContext };
97
+ if (type == 'clearfilters') {
98
+ tempfetchproductsfilerobjcontext.FilterOptions = [];
99
+ } else {
100
+ var FilterExists = false;
101
+ tempfetchproductsfilerobjcontext?.FilterOptions?.forEach(function (filteritem, filterindex) {
102
+ if (filteritem.valueid == valueid) {
103
+ FilterExists = true;
104
+ tempfetchproductsfilerobjcontext.FilterOptions.splice(filterindex, 1);
105
+ }
106
+ });
107
+ if (!FilterExists) {
108
+ tempfetchproductsfilerobjcontext.FilterOptions.push({ valueid: valueid });
109
+ }
110
+ }
111
+ if (tempfetchproductsfilerobjcontext.FilterOptions.length == 0) {
112
+ tempfetchproductsfilerobjcontext.isfilter = 0;
113
+ } else {
114
+ tempfetchproductsfilerobjcontext.isfilter = 1;
115
+ }
116
+ tempfetchproductsfilerobjcontext.page = 0;
117
+ setProductFilterObjContext({ ...tempfetchproductsfilerobjcontext });
118
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
119
+ };
120
+ const setCollectionFilterFunc = (collectionid) => {
121
+ var tempfetchproductsfilerobjcontext = { ...ProductFilterObjContext };
122
+ var CollectionExists = false;
123
+ tempfetchproductsfilerobjcontext?.collections?.forEach(function (filteritem, filterindex) {
124
+ if (filteritem == collectionid) {
125
+ CollectionExists = true;
126
+ tempfetchproductsfilerobjcontext.collections.splice(filterindex, 1);
127
+ }
128
+ });
129
+ if (!CollectionExists) {
130
+ tempfetchproductsfilerobjcontext.collections.push(collectionid);
131
+ }
132
+ tempfetchproductsfilerobjcontext.page = 0;
133
+ setProductFilterObjContext({ ...tempfetchproductsfilerobjcontext });
134
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
135
+ };
136
+
137
+ const filter_cssstyles = {
138
+ collapsetitle: css({
139
+ fontSize: sectionproperties.filtertitle_fontsize + 'px',
140
+ fontWeight: sectionproperties.filtertitle_fontweight,
141
+ textTransform: sectionproperties.filtertitle_texttransform,
142
+ color: sectionproperties.filtertitle_color,
143
+ ':hover': {
144
+ color: sectionproperties.filtertitle_coloronhover,
145
+ },
146
+ }),
147
+ titlecontainer: css({
148
+ color: sectionproperties.filtertitle_color,
149
+ ':hover i': {
150
+ color: sectionproperties.filtertitle_coloronhover,
151
+ },
152
+ }),
153
+ timeline_text: css({
154
+ fontSize: sectionproperties.timeline_text_fontsize + 'px',
155
+ fontWeight: sectionproperties.timeline_text_fontweight,
156
+ textTransform: sectionproperties.timeline_text_texttransform,
157
+ color: sectionproperties.timeline_text_color,
158
+ ':hover': {
159
+ color: sectionproperties.timeline_text_coloronhover,
160
+ },
161
+ }),
162
+ btnstyles: css({
163
+ color: sectionproperties.generalbtn_textColor,
164
+ fontSize: sectionproperties.generalbtn_fontsize + 'px',
165
+ textTransform: sectionproperties.generalbtn_texttransform,
166
+ width: sectionproperties.generalbtn_width + 'px',
167
+ height: sectionproperties.generalbtn_height + 'px',
168
+ background: sectionproperties.generalbtn_bgColor,
169
+ borderTopLeftRadius: sectionproperties.generalbtn_bordertopleftradius + 'px',
170
+ borderTopRightRadius: sectionproperties.generalbtn_bordertoprightradius + 'px',
171
+ borderBottomRightRadius: sectionproperties.generalbtn_borderbottomrightradius + 'px',
172
+ borderBottomLeftRadius: sectionproperties.generalbtn_borderbottomleftradius + 'px',
173
+ fontWeight: sectionproperties.generalbtn_fontweight,
174
+ transition: '.3s',
175
+ ':hover': {
176
+ background: sectionproperties.generalbtn_bgColoronhover,
177
+ color: sectionproperties.generalbtn_textColoronhover,
178
+ },
179
+ }),
180
+ close_menu_icon_cont: css({
181
+ background: sectionproperties.closeSliderBgColor,
182
+ width: sectionproperties.closeSliderWidth + 'px',
183
+ height: sectionproperties.closeSliderHeight + 'px',
184
+ borderRadius: sectionproperties.closeSlider_borderBottomLeftRadius + 'px',
185
+ ':hover': {
186
+ background: sectionproperties.closeSliderBgColorHover,
187
+ },
188
+ }),
189
+ horizontalfilter_card: css({
190
+ marginBottom: sectionproperties.horizontalfilter_mb + 'px',
191
+ marginTop: sectionproperties.horizontalfilter_mt + 'px',
192
+ background: sectionproperties.horizontalfilter_cardbg,
193
+ border: sectionproperties.horizontalfilter_cardborderwidth + 'px solid ' + sectionproperties.horizontalfilter_cardbordercolor,
194
+ boxShadow: sectionproperties.horizontalfilter_cardboxShadow == 'Show' ? sectionproperties.horizontalfilter_cardboxShadowcolor : 'horizontalfilter_cardboxShadow',
195
+ }),
196
+ btn_item: css({
197
+ width: '20px',
198
+ height: '20px',
199
+ background: sectionproperties.filteritembtn_bgcolor,
200
+ ':hover': {
201
+ background: sectionproperties.filteritembtn_bghover,
202
+ },
203
+ }),
204
+ btn_item_active: css({
205
+ background: sectionproperties.btn_item_activebgcolor,
206
+ }),
207
+ timelineinnercont_active: css({
208
+ fontWeight: sectionproperties.activecat_fontweight,
209
+ color: sectionproperties.activecat_color,
210
+ }),
211
+ };
212
+ return (
213
+ <div className="col-lg-12 p-0 w-100 filter mt-md-0 d-md-none" style={{ marginTop: sectionproperties.filtersection_mt + 'px' }}>
214
+ {sectionproperties.filterdirection == 'Horizontal' && (
215
+ <div className={sectionproperties.filterscat_showas == 'vertical' ? ' row m-0 w-100 ' : `${filterstyles.outercontainer}` + ' row m-0 w-100 '}>
216
+ <div className={`${filterstyles.card}` + ' col-lg-2 w-100 '}>
217
+ <div className={`${filterstyles.horizontalfilter_card}` + ' w-100 d-flex align-items-center '}>
218
+ <div className={`${filterstyles.timeline}` + ' w-100'}>
219
+ <Dropdown>
220
+ <Dropdown.Toggle className="d-flex align-items-center w-100 bg-transparent">
221
+ <div className="row m-0 w-100 h-100 d-flex align-items-center">
222
+ <div className="col-lg-11 d-flex align-items-start p-0">
223
+ <p className={`${filter_cssstyles.collapsetitle}` + ' p-0 m-0 '}>
224
+ {langdetect == 'en' ? sectionproperties.filtercollectiontitle_en : sectionproperties.filtercollectiontitle_ar}
225
+ </p>
226
+ </div>
227
+ <i className="fa fa-chevron-down ml-auto"></i>
228
+ </div>
229
+ </Dropdown.Toggle>
230
+ <Dropdown.Menu>
231
+ {instcollections.map((item, index) => {
232
+ return (
233
+ <div
234
+ className={
235
+ `${filterstyles.border_left_line} ${filterstyles.timelineinnercont} ${filter_cssstyles.timelineinnercont} ${
236
+ item.isfilterselected ? `${filter_cssstyles.timelineinnercont_active} ${filterstyles.timelineinnercont_active}` : ''
237
+ } ` + ' d-flex align-items-start pb-3 '
238
+ }
239
+ onClick={() => {
240
+ setCollectionFilterFunc(item.collectionid);
241
+ // setfilterfunc(valueitem.valueid, valueindex, index, 'assign');
242
+ }}
243
+ >
244
+ <div>
245
+ <div
246
+ className={
247
+ ` ${item.isfilterselected ? filter_cssstyles.btn_item_active : ''} ${filterstyles.btn_item} ${filter_cssstyles.btn_item}` +
248
+ ' mb-2 d-flex align-items-center '
249
+ }
250
+ >
251
+ <i className="h-100 d-flex align-items-center"></i>
252
+ </div>
253
+ </div>
254
+ <div className={langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'}>
255
+ <p className={`${filterstyles.timeline_text} ${filter_cssstyles.timeline_text}` + ' m-0 p-0 '}>
256
+ {langdetect == 'en' ? item.title_en : item.title_ar}
257
+ </p>
258
+ </div>
259
+ </div>
260
+ );
261
+ })}
262
+ </Dropdown.Menu>
263
+ </Dropdown>
264
+ </div>
265
+ </div>
266
+ </div>
267
+ {instfilters.map((item, index) => {
268
+ return (
269
+ <div className={`${filterstyles.card}` + ' col-lg-2 w-100 '}>
270
+ <div className={`${filterstyles.horizontalfilter_card}` + ' w-100 d-flex align-items-center '}>
271
+ <div className={`${filterstyles.timeline}` + ' w-100'}>
272
+ <Dropdown>
273
+ <Dropdown.Toggle className="d-flex align-items-center w-100 bg-transparent">
274
+ <div className="row m-0 w-100 h-100 d-flex align-items-center">
275
+ <div className="col-lg-11 d-flex align-items-start p-0">
276
+ <p className={`${filter_cssstyles.collapsetitle}` + ' p-0 m-0 '}>{item.optionname}</p>
277
+ </div>
278
+ <i className="fa fa-chevron-down ml-auto"></i>
279
+ </div>
280
+ </Dropdown.Toggle>
281
+ <Dropdown.Menu>
282
+ {item.productvaluesfilter.map((valueitem, valueindex) => {
283
+ return (
284
+ <div
285
+ className={
286
+ `${filterstyles.border_left_line} ${filterstyles.timelineinnercont} ${filter_cssstyles.timelineinnercont}
287
+ ${valueitem.isfilterselected ? `${filter_cssstyles.timelineinnercont_active} ${filterstyles.timelineinnercont_active}` : ''}
288
+ ` + ' d-flex align-items-start pb-3 '
289
+ }
290
+ onClick={() => {
291
+ setfilterfunc(valueitem.valueid, valueindex, index, 'assign');
292
+ }}
293
+ >
294
+ <div>
295
+ <div
296
+ className={
297
+ ` ${valueitem.isfilterselected ? filter_cssstyles.btn_item_active : ''} ${filterstyles.btn_item} ${filter_cssstyles.btn_item}` +
298
+ ' mb-2 d-flex align-items-center '
299
+ }
300
+ >
301
+ <i className="h-100 d-flex align-items-center"></i>
302
+ </div>
303
+ </div>
304
+ <div className={langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'}>
305
+ <p className={`${filterstyles.timeline_text} ${filter_cssstyles.timeline_text}` + ' m-0 p-0 '}>
306
+ {langdetect == 'en' ? valueitem.valuename : valueitem.valuename_ar}
307
+ </p>
308
+ </div>
309
+ </div>
310
+ );
311
+ })}
312
+ </Dropdown.Menu>
313
+ </Dropdown>
314
+ </div>
315
+ </div>
316
+ </div>
317
+ );
318
+ })}
319
+ </div>
320
+ )}
321
+ {sectionproperties.filterdirection == 'Vertical' && (
322
+ <div
323
+ className={`${filterstyles.filterslider_container}` + ' pb-md-5 '}
324
+ id="filterslider"
325
+ style={{
326
+ background: sectionproperties.filter_backgroundcolor,
327
+ borderRadius: sectionproperties.filter_borderBottomLeftRadius + 'px',
328
+ }}
329
+ >
330
+ <div className={filter_cssstyles.filteraccordion + ' row m-0 w-100 pt-2 pb-3 filter-accordion '}>
331
+ <div className="col-lg-9 col-md-9 col-sm-9 d-none align-items-center d-md-flex">
332
+ <p
333
+ className="m-0 p-0 font-16 font-weight-600"
334
+ style={{
335
+ color: sectionproperties.filter_titlecolor,
336
+ fontSize: sectionproperties.filter_titlefontsize + 'px',
337
+ fontWeight: sectionproperties.filter_titlefontweight,
338
+ textTransform: sectionproperties.filter_titletextransform,
339
+ }}
340
+ >
341
+ {langdetect == 'en' ? 'Filter' : 'فلترة'}
342
+ </p>
343
+ </div>
344
+
345
+ <div className="col-lg-3 col-md-3 col-sm-3 d-none d-md-flex align-items-center justify-content-end p-0">
346
+ <div
347
+ className={`${filterstyles.close_menu_icon_cont} ${filter_cssstyles.close_menu_icon_cont}` + ' d-none d-md-flex align-items-center justify-content-center '}
348
+ onClick={() => {
349
+ var element = document.getElementById('filterslider');
350
+ element.classList.remove(filterstyles.filterslider_container_opened);
351
+ }}
352
+ >
353
+ <i className="h-100 d-flex align-items-center justify-content-center">
354
+ <IoMdClose
355
+ size={sectionproperties.closeSlider_fontSize}
356
+ style={{
357
+ color: sectionproperties.closeSlider_color,
358
+ }}
359
+ />
360
+ </i>
361
+ </div>
362
+ </div>
363
+ {sectionproperties.otherfilters == 'Show' &&
364
+ otherfilters.map((item, index) => {
365
+ return (
366
+ <>
367
+ <Accordion allowMultipleExpanded={true} allowZeroExpanded={true} preExpanded={[0, 1, 2, 3]} style={{ width: '100%' }}>
368
+ <AccordionItem uuid={index}>
369
+ <AccordionItemHeading>
370
+ <AccordionItemButton>
371
+ <div className={filter_cssstyles.titlecontainer + ' row m-0 p-0 mb-2 pl-md-3 pr-md-3 '}>
372
+ <div className="col-lg-10 col-md-10 col-sm-10 p-0">
373
+ <p
374
+ className={
375
+ langdetect == 'en' ? filter_cssstyles.collapsetitle + ' m-0 p-0 ' : filter_cssstyles.collapsetitle + ' m-0 p-0 text-right'
376
+ }
377
+ >
378
+ {item.name}
379
+ </p>
380
+ </div>
381
+ <div className="col-lg-2 col-md-2 col-sm-2 p-0">
382
+ <AccordionItemState>
383
+ {(state) => {
384
+ if (state.expanded == true) {
385
+ return (
386
+ <i
387
+ className={
388
+ filter_cssstyles.collapsetitleicon + ' h-100 d-flex align-items-center justify-content-end accordion__button '
389
+ }
390
+ >
391
+ <AiOutlineMinus />
392
+ </i>
393
+ );
394
+ } else {
395
+ return (
396
+ <i
397
+ className={
398
+ filter_cssstyles.collapsetitleicon + ' h-100 d-flex align-items-center justify-content-end accordion__button '
399
+ }
400
+ >
401
+ <HiOutlinePlus />
402
+ </i>
403
+ );
404
+ }
405
+ }}
406
+ </AccordionItemState>
407
+ </div>
408
+ </div>
409
+ </AccordionItemButton>
410
+ </AccordionItemHeading>
411
+ <AccordionItemPanel className="p-0">
412
+ <div className="row mt-0 mb-2 ml-0 mr-0 d-lg-flex">
413
+ <div className={'col-lg-12'}>
414
+ <div
415
+ className={
416
+ langdetect == 'en' ? `${filterstyles.timeline}` + ' p-sm-0 ' : `${filterstyles.timeline} ${filterstyles.timelinetrans}` + ' p-sm-0 '
417
+ }
418
+ >
419
+ {item.filterarray.map((valueitem, valueindex) => {
420
+ var ischecked = false;
421
+ if (item.payloadvalue == 'sortprice') {
422
+ if (valueitem.value == ProductFilterObjContext.sortprice) {
423
+ ischecked = true;
424
+ }
425
+ } else if (item.payloadvalue == 'sortdates') {
426
+ if (valueitem.value == ProductFilterObjContext.sortdates) {
427
+ ischecked = true;
428
+ }
429
+ }
430
+ return (
431
+ <div
432
+ className={
433
+ `${filterstyles.border_left_line} ${filterstyles.timelineinnercont} ${filter_cssstyles.timelineinnercont}
434
+ ${ischecked ? `${filter_cssstyles.timelineinnercont_active} ${filterstyles.timelineinnercont_active}` : ''}
435
+
436
+ ` + ' d-flex align-items-start pb-3 '
437
+ }
438
+ onClick={() => {
439
+ // setfilterfunc(valueitem.valueid, valueindex, index, 'assign');
440
+ var tempfetchproductsfilerobjcontext = { ...ProductFilterObjContext };
441
+ if (tempfetchproductsfilerobjcontext[item.payloadvalue] == valueitem.value) {
442
+ tempfetchproductsfilerobjcontext[item.payloadvalue] = '';
443
+ } else {
444
+ tempfetchproductsfilerobjcontext[item.payloadvalue] = valueitem.value;
445
+ }
446
+ tempfetchproductsfilerobjcontext.page = 0;
447
+ setProductFilterObjContext({ ...tempfetchproductsfilerobjcontext });
448
+ routingcountext(
449
+ StaticPagesLinksContext.GeneralProductsComponent,
450
+ true,
451
+ encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)),
452
+ );
453
+ }}
454
+ >
455
+ <div>
456
+ <div
457
+ className={
458
+ ` ${ischecked ? filter_cssstyles.btn_item_active : ''} ${filterstyles.btn_item} ${filter_cssstyles.btn_item}` +
459
+ ' mb-2 d-flex align-items-center '
460
+ }
461
+ >
462
+ <i className="h-100 d-flex align-items-center"></i>
463
+ </div>
464
+ </div>
465
+ <div className={langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'}>
466
+ <p
467
+ className={`${filterstyles.timeline_text} ${filter_cssstyles.timeline_text}` + ' m-0 p-0 '}
468
+ style={{
469
+ color: ischecked ? sectionproperties.activecat_color : '',
470
+ }}
471
+ >
472
+ {valueitem.name}
473
+ </p>
474
+ </div>
475
+ </div>
476
+ );
477
+ })}
478
+ </div>
479
+ </div>
480
+ </div>
481
+ </AccordionItemPanel>
482
+ </AccordionItem>
483
+ </Accordion>
484
+ <hr className="mt-3 mb-3" />
485
+ </>
486
+ );
487
+ })}
488
+ <div className="col-lg-9 col-md-9 col-sm-9 d-flex align-items-center d-md-none">
489
+ <p
490
+ className="m-0 p-0 font-16 font-weight-600"
491
+ style={{
492
+ color: sectionproperties.filter_titlecolor,
493
+ fontSize: sectionproperties.filter_titlefontsize + 'px',
494
+ fontWeight: sectionproperties.filter_titlefontweight,
495
+ textTransform: sectionproperties.filter_titletextransform,
496
+ }}
497
+ >
498
+ {langdetect == 'en' ? 'Filter' : 'فلترة'}
499
+ </p>
500
+ </div>
501
+ <div className="col-lg-3 col-md-3 col-sm-3 d-flex d-md-none align-items-center justify-content-end p-0">
502
+ <div
503
+ className={`${filterstyles.close_menu_icon_cont} ${filter_cssstyles.close_menu_icon_cont}` + ' d-none d-md-flex align-items-center justify-content-center '}
504
+ onClick={() => {
505
+ var element = document.getElementById('filterslider');
506
+ element.classList.remove(filterstyles.filterslider_container_opened);
507
+ }}
508
+ >
509
+ <i className="h-100 d-flex align-items-center justify-content-center">
510
+ <IoMdClose
511
+ size={sectionproperties.closeSlider_fontSize}
512
+ style={{
513
+ color: sectionproperties.closeSlider_color,
514
+ }}
515
+ />
516
+ </i>
517
+ </div>
518
+ </div>
519
+ <div className="col-lg-12">
520
+ <hr className="mt-2 mb-3" />
521
+ </div>
522
+ <div className={filter_cssstyles.filteraccordion + ' col-lg-12 filter-accordion p-md-0 '}>
523
+ <Accordion allowMultipleExpanded={true} allowZeroExpanded={true} preExpanded={[0, 1, 2, 3]}>
524
+ <AccordionItem uuid={0}>
525
+ <AccordionItemHeading>
526
+ <AccordionItemButton>
527
+ <div className={filter_cssstyles.titlecontainer + ' row m-0 p-0 mb-2 pl-md-3 pr-md-3 '}>
528
+ <div className="col-lg-10 col-md-10 col-sm-10 p-0">
529
+ <p className={langdetect == 'en' ? filter_cssstyles.collapsetitle + ' m-0 p-0 ' : filter_cssstyles.collapsetitle + ' m-0 p-0 text-right'}>
530
+ {langdetect == 'en' ? sectionproperties.filtercollectiontitle_en : sectionproperties.filtercollectiontitle_ar}
531
+ </p>
532
+ </div>
533
+ <div className="col-lg-2 col-md-2 col-sm-2 p-0">
534
+ <AccordionItemState>
535
+ {(state) => {
536
+ if (state.expanded == true) {
537
+ return (
538
+ <i className={filter_cssstyles.collapsetitleicon + ' h-100 d-flex align-items-center justify-content-end accordion__button '}>
539
+ <AiOutlineMinus />
540
+ </i>
541
+ );
542
+ } else {
543
+ return (
544
+ <i className={filter_cssstyles.collapsetitleicon + ' h-100 d-flex align-items-center justify-content-end accordion__button '}>
545
+ <HiOutlinePlus />
546
+ </i>
547
+ );
548
+ }
549
+ }}
550
+ </AccordionItemState>
551
+ </div>
552
+ </div>
553
+ </AccordionItemButton>
554
+ </AccordionItemHeading>
555
+ <AccordionItemPanel className="p-0">
556
+ <div className="row mt-0 mb-2 ml-0 mr-0 d-lg-flex">
557
+ <div className={'col-lg-12'}>
558
+ <div
559
+ className={
560
+ langdetect == 'en'
561
+ ? `${filterstyles.timeline} ${filterstyles.timelinetrans}` + ' p-sm-0 '
562
+ : `${filterstyles.timeline} ${filterstyles.timelinetrans}` + ' p-sm-0 '
563
+ }
564
+ >
565
+ {instcollections.map((item, index) => {
566
+ return (
567
+ <div
568
+ className={
569
+ `${filterstyles.border_left_line} ${filterstyles.timelineinnercont} ${filter_cssstyles.timelineinnercont}
570
+ ${item.isfilterselected ? `${filter_cssstyles.timelineinnercont_active} ${filterstyles.timelineinnercont_active}` : ''}
571
+ ` + ' d-flex align-items-start pb-3 '
572
+ }
573
+ onClick={() => {
574
+ setCollectionFilterFunc(item.collectionid);
575
+ }}
576
+ >
577
+ <div
578
+ className={
579
+ ` ${item.isfilterselected ? filter_cssstyles.btn_item_active : ''} ${filterstyles.btn_item} ${filter_cssstyles.btn_item}` +
580
+ ' mb-2 d-flex align-items-center '
581
+ }
582
+ >
583
+ <i className="h-100 d-flex align-items-center"></i>
584
+ </div>
585
+ <div className={langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'}>
586
+ <p
587
+ className={`${filterstyles.timeline_text} ${filter_cssstyles.timeline_text}` + ' m-0 p-0 '}
588
+ style={{
589
+ color: item.isfilterselected ? sectionproperties.activecat_color : '',
590
+ }}
591
+ >
592
+ {langdetect == 'en' ? item.title_en : item.title_ar}
593
+ </p>
594
+ </div>
595
+ </div>
596
+ );
597
+ })}
598
+ </div>
599
+ </div>
600
+ </div>
601
+ </AccordionItemPanel>
602
+ </AccordionItem>
603
+ <hr className="mt-3 mb-3" />
604
+ </Accordion>
605
+ <Accordion allowMultipleExpanded={true} allowZeroExpanded={true} preExpanded={[0, 1, 2, 3]}>
606
+ {instfilters.map((item, index) => {
607
+ return (
608
+ <>
609
+ <AccordionItem uuid={index}>
610
+ <AccordionItemHeading>
611
+ <AccordionItemButton>
612
+ <div className={filter_cssstyles.titlecontainer + ' row m-0 p-0 mb-2 pl-md-3 pr-md-3 '}>
613
+ <div className="col-lg-10 col-md-10 col-sm-10 p-0">
614
+ <p
615
+ className={
616
+ langdetect == 'en' ? filter_cssstyles.collapsetitle + ' m-0 p-0 ' : filter_cssstyles.collapsetitle + ' m-0 p-0 text-right'
617
+ }
618
+ >
619
+ {langdetect == 'en' ? item.optionname : item.optionname_ar}
620
+ </p>
621
+ </div>
622
+ <div className="col-lg-2 col-md-2 col-sm-2 p-0">
623
+ <AccordionItemState>
624
+ {(state) => {
625
+ if (state.expanded == true) {
626
+ return (
627
+ <i
628
+ className={
629
+ filter_cssstyles.collapsetitleicon + ' h-100 d-flex align-items-center justify-content-end accordion__button '
630
+ }
631
+ >
632
+ <AiOutlineMinus />
633
+ </i>
634
+ );
635
+ } else {
636
+ return (
637
+ <i
638
+ className={
639
+ filter_cssstyles.collapsetitleicon + ' h-100 d-flex align-items-center justify-content-end accordion__button '
640
+ }
641
+ >
642
+ <HiOutlinePlus />
643
+ </i>
644
+ );
645
+ }
646
+ }}
647
+ </AccordionItemState>
648
+ </div>
649
+ </div>
650
+ </AccordionItemButton>
651
+ </AccordionItemHeading>
652
+ <AccordionItemPanel className="p-0">
653
+ <div className="row mt-0 mb-2 ml-0 mr-0 d-lg-flex">
654
+ <div className={'col-lg-12'}>
655
+ <div
656
+ className={
657
+ langdetect == 'en' ? `${filterstyles.timeline}` + ' p-sm-0 ' : `${filterstyles.timeline} ${filterstyles.timelinetrans}` + ' p-sm-0 '
658
+ }
659
+ >
660
+ {item.productvaluesfilter.map((valueitem, valueindex) => {
661
+ return (
662
+ <div
663
+ className={
664
+ `${filterstyles.border_left_line} ${filterstyles.timelineinnercont} ${filter_cssstyles.timelineinnercont}
665
+ ${valueitem.isfilterselected ? `${filter_cssstyles.timelineinnercont_active} ${filterstyles.timelineinnercont_active}` : ''}
666
+
667
+ ` + ' d-flex align-items-start pb-3 '
668
+ }
669
+ onClick={() => {
670
+ setfilterfunc(valueitem.valueid, valueindex, index, 'assign');
671
+ }}
672
+ >
673
+ <div>
674
+ <div
675
+ className={
676
+ ` ${valueitem.isfilterselected ? filter_cssstyles.btn_item_active : ''} ${filterstyles.btn_item} ${
677
+ filter_cssstyles.btn_item
678
+ }` + ' mb-2 d-flex align-items-center '
679
+ }
680
+ >
681
+ <i className="h-100 d-flex align-items-center"></i>
682
+ </div>
683
+ </div>
684
+ <div className={langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'}>
685
+ <p
686
+ className={`${filterstyles.timeline_text} ${filter_cssstyles.timeline_text}` + ' m-0 p-0 '}
687
+ style={{
688
+ color: valueitem.isfilterselected ? sectionproperties.activecat_color : '',
689
+ }}
690
+ >
691
+ {langdetect == 'en' ? valueitem.valuename : valueitem.valuename_ar}
692
+ </p>
693
+ </div>
694
+ </div>
695
+ );
696
+ })}
697
+ </div>
698
+ </div>
699
+ </div>
700
+ </AccordionItemPanel>
701
+ </AccordionItem>
702
+ <hr className="mt-3 mb-3" />
703
+ </>
704
+ );
705
+ })}
706
+ </Accordion>
707
+ </div>
708
+ {/* <div
709
+ className="col-lg-12 d-flex align-items-center justify-content-center"
710
+ onClick={() => {
711
+ setfilterfunc('', '', '', 'clearfilters');
712
+ }}
713
+ >
714
+ <button className={filter_cssstyles.btnstyles + ' ml-1 ml-1 '}>{langdetect == 'en' ? 'Clear Filters' : 'حذف الإختيارات'}</button>
715
+ </div> */}
716
+ </div>
717
+ </div>
718
+ )}
719
+ <div className="col-lg-12">
720
+ <Offcanvas
721
+ show={props?.openFilterSlider}
722
+ onHide={() => {
723
+ props.setopenFilterSlider(false);
724
+ }}
725
+ placement="end"
726
+ scroll={true}
727
+ style={{
728
+ minWidth: '200px',
729
+ background: sectionproperties.filter_backgroundcolor,
730
+ borderRadius: sectionproperties.filter_borderBottomLeftRadius + 'px',
731
+ }}
732
+ backdrop={true}
733
+ >
734
+ <Offcanvas.Header>
735
+ <Offcanvas.Title>
736
+ <div className="row m-0 w-100 mt-2">
737
+ <div className="col-lg-9 col-md-9 col-sm-9 d-none align-items-center d-md-flex">
738
+ <p
739
+ className="m-0 p-0 font-16 font-weight-600"
740
+ style={{
741
+ color: sectionproperties.filter_titlecolor,
742
+ fontSize: sectionproperties.filter_titlefontsize + 'px',
743
+ fontWeight: sectionproperties.filter_titlefontweight,
744
+ textTransform: sectionproperties.filter_titletextransform,
745
+ }}
746
+ >
747
+ {langdetect == 'en' ? 'Filter' : 'فلترة'}
748
+ </p>
749
+ </div>
750
+ <div className="col-lg-3 col-md-3 col-sm-3 d-none d-md-flex align-items-center justify-content-end p-0">
751
+ <div
752
+ className={`${filterstyles.close_menu_icon_cont} ${filter_cssstyles.close_menu_icon_cont}` + ' d-none d-md-flex align-items-center justify-content-center '}
753
+ onClick={() => {
754
+ props.setopenFilterSlider(false);
755
+ }}
756
+ >
757
+ <i className="h-100 d-flex align-items-center justify-content-center">
758
+ <IoMdClose
759
+ size={sectionproperties.closeSlider_fontSize}
760
+ style={{
761
+ color: sectionproperties.closeSlider_color,
762
+ }}
763
+ />
764
+ </i>
765
+ </div>
766
+ </div>
767
+ <div class="col-lg-12">
768
+ <hr class="mt-2 mb-2" />
769
+ </div>
770
+ </div>
771
+ </Offcanvas.Title>
772
+ </Offcanvas.Header>
773
+ <Offcanvas.Body>
774
+ <div
775
+ className={' pb-md-5 '}
776
+ style={{
777
+ background: sectionproperties.filter_backgroundcolor,
778
+ borderRadius: sectionproperties.filter_borderBottomLeftRadius + 'px',
779
+ }}
780
+ >
781
+ <div className={filter_cssstyles.filteraccordion + ' row m-0 w-100 pt-2 pb-3 filter-accordion '}>
782
+ {sectionproperties.otherfilters == 'Show' &&
783
+ otherfilters.map((item, index) => {
784
+ return (
785
+ <>
786
+ <Accordion allowMultipleExpanded={true} allowZeroExpanded={true} preExpanded={[0, 1, 2, 3]} style={{ width: '100%' }}>
787
+ <AccordionItem uuid={index}>
788
+ <AccordionItemHeading>
789
+ <AccordionItemButton>
790
+ <div className={filter_cssstyles.titlecontainer + ' row m-0 p-0 mb-2 pl-md-3 pr-md-3 '}>
791
+ <div className="col-lg-10 col-md-10 col-sm-10 p-0">
792
+ <p
793
+ className={
794
+ langdetect == 'en'
795
+ ? filter_cssstyles.collapsetitle + ' m-0 p-0 '
796
+ : filter_cssstyles.collapsetitle + ' m-0 p-0 text-right'
797
+ }
798
+ >
799
+ {item.name}
800
+ </p>
801
+ </div>
802
+ <div className="col-lg-2 col-md-2 col-sm-2 p-0">
803
+ <AccordionItemState>
804
+ {(state) => {
805
+ if (state.expanded == true) {
806
+ return (
807
+ <i
808
+ className={
809
+ filter_cssstyles.collapsetitleicon +
810
+ ' h-100 d-flex align-items-center justify-content-end accordion__button '
811
+ }
812
+ >
813
+ <AiOutlineMinus />
814
+ </i>
815
+ );
816
+ } else {
817
+ return (
818
+ <i
819
+ className={
820
+ filter_cssstyles.collapsetitleicon +
821
+ ' h-100 d-flex align-items-center justify-content-end accordion__button '
822
+ }
823
+ >
824
+ <HiOutlinePlus />
825
+ </i>
826
+ );
827
+ }
828
+ }}
829
+ </AccordionItemState>
830
+ </div>
831
+ </div>
832
+ </AccordionItemButton>
833
+ </AccordionItemHeading>
834
+ <AccordionItemPanel className="p-0">
835
+ <div className="row mt-0 mb-2 ml-0 mr-0 d-lg-flex">
836
+ <div className={'col-lg-12'}>
837
+ <div
838
+ className={
839
+ langdetect == 'en'
840
+ ? `${filterstyles.timeline}` + ' p-sm-0 '
841
+ : `${filterstyles.timeline} ${filterstyles.timelinetrans}` + ' p-sm-0 '
842
+ }
843
+ >
844
+ {item.filterarray.map((valueitem, valueindex) => {
845
+ var ischecked = false;
846
+ if (item.payloadvalue == 'sortprice') {
847
+ if (valueitem.value == ProductFilterObjContext.sortprice) {
848
+ ischecked = true;
849
+ }
850
+ } else if (item.payloadvalue == 'sortdates') {
851
+ if (valueitem.value == ProductFilterObjContext.sortdates) {
852
+ ischecked = true;
853
+ }
854
+ }
855
+ return (
856
+ <div
857
+ className={
858
+ `${filterstyles.border_left_line} ${filterstyles.timelineinnercont} ${filter_cssstyles.timelineinnercont}
859
+ ${ischecked ? `${filter_cssstyles.timelineinnercont_active} ${filterstyles.timelineinnercont_active}` : ''}
860
+
861
+ ` + ' d-flex align-items-start pb-3 '
862
+ }
863
+ onClick={() => {
864
+ // setfilterfunc(valueitem.valueid, valueindex, index, 'assign');
865
+ var tempfetchproductsfilerobjcontext = { ...ProductFilterObjContext };
866
+ if (tempfetchproductsfilerobjcontext[item.payloadvalue] == valueitem.value) {
867
+ tempfetchproductsfilerobjcontext[item.payloadvalue] = '';
868
+ } else {
869
+ tempfetchproductsfilerobjcontext[item.payloadvalue] = valueitem.value;
870
+ }
871
+ setProductFilterObjContext({ ...tempfetchproductsfilerobjcontext });
872
+ }}
873
+ >
874
+ <div>
875
+ <div
876
+ className={
877
+ ` ${ischecked ? filter_cssstyles.btn_item_active : ''} ${filterstyles.btn_item} ${
878
+ filter_cssstyles.btn_item
879
+ }` + ' mb-2 d-flex align-items-center '
880
+ }
881
+ >
882
+ <i className="h-100 d-flex align-items-center"></i>
883
+ </div>
884
+ </div>
885
+ <div className={langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'}>
886
+ <p
887
+ className={`${filterstyles.timeline_text} ${filter_cssstyles.timeline_text}` + ' m-0 p-0 '}
888
+ style={{
889
+ color: ischecked ? sectionproperties.activecat_color : '',
890
+ }}
891
+ >
892
+ {valueitem.name}
893
+ </p>
894
+ </div>
895
+ </div>
896
+ );
897
+ })}
898
+ </div>
899
+ </div>
900
+ </div>
901
+ </AccordionItemPanel>
902
+ </AccordionItem>
903
+ </Accordion>
904
+ <hr className="mt-3 mb-3" />
905
+ </>
906
+ );
907
+ })}
908
+ {sectionproperties.otherfilters == 'Show' && (
909
+ <div className="col-lg-12">
910
+ <hr className="mt-2 mb-3" />
911
+ </div>
912
+ )}
913
+ <div className={filter_cssstyles.filteraccordion + ' col-lg-12 filter-accordion p-md-0 '}>
914
+ <Accordion allowMultipleExpanded={true} allowZeroExpanded={true} preExpanded={[0, 1, 2, 3]}>
915
+ <AccordionItem uuid={0}>
916
+ <AccordionItemHeading>
917
+ <AccordionItemButton>
918
+ <div className={filter_cssstyles.titlecontainer + ' row m-0 p-0 mb-2 pl-md-3 pr-md-3 '}>
919
+ <div className="col-lg-10 col-md-10 col-sm-10 p-0">
920
+ <p className={langdetect == 'en' ? filter_cssstyles.collapsetitle + ' m-0 p-0 ' : filter_cssstyles.collapsetitle + ' m-0 p-0 text-right'}>
921
+ {langdetect == 'en' ? sectionproperties.filtercollectiontitle_en : sectionproperties.filtercollectiontitle_ar}
922
+ </p>
923
+ </div>
924
+ <div className="col-lg-2 col-md-2 col-sm-2 p-0">
925
+ <AccordionItemState>
926
+ {(state) => {
927
+ if (state.expanded == true) {
928
+ return (
929
+ <i
930
+ className={
931
+ filter_cssstyles.collapsetitleicon + ' h-100 d-flex align-items-center justify-content-end accordion__button '
932
+ }
933
+ >
934
+ <AiOutlineMinus />
935
+ </i>
936
+ );
937
+ } else {
938
+ return (
939
+ <i
940
+ className={
941
+ filter_cssstyles.collapsetitleicon + ' h-100 d-flex align-items-center justify-content-end accordion__button '
942
+ }
943
+ >
944
+ <HiOutlinePlus />
945
+ </i>
946
+ );
947
+ }
948
+ }}
949
+ </AccordionItemState>
950
+ </div>
951
+ </div>
952
+ </AccordionItemButton>
953
+ </AccordionItemHeading>
954
+ <AccordionItemPanel className="p-0">
955
+ <div className="row mt-0 mb-2 ml-0 mr-0 d-lg-flex">
956
+ <div className={'col-lg-12'}>
957
+ <div
958
+ className={
959
+ langdetect == 'en'
960
+ ? `${filterstyles.timeline} ${filterstyles.timelinetrans}` + ' p-sm-0 '
961
+ : `${filterstyles.timeline} ${filterstyles.timelinetrans}` + ' p-sm-0 '
962
+ }
963
+ >
964
+ {instcollections.map((item, index) => {
965
+ return (
966
+ <div
967
+ className={
968
+ `${filterstyles.border_left_line} ${filterstyles.timelineinnercont} ${filter_cssstyles.timelineinnercont}
969
+ ${item.isfilterselected ? `${filter_cssstyles.timelineinnercont_active} ${filterstyles.timelineinnercont_active}` : ''}
970
+ ` + ' d-flex align-items-start pb-3 '
971
+ }
972
+ onClick={() => {
973
+ setCollectionFilterFunc(item.collectionid);
974
+ }}
975
+ >
976
+ <div
977
+ className={
978
+ ` ${item.isfilterselected ? filter_cssstyles.btn_item_active : ''} ${filterstyles.btn_item} ${
979
+ filter_cssstyles.btn_item
980
+ }` + ' mb-2 d-flex align-items-center '
981
+ }
982
+ >
983
+ <i className="h-100 d-flex align-items-center"></i>
984
+ </div>
985
+ <div className={langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'}>
986
+ <p
987
+ className={`${filterstyles.timeline_text} ${filter_cssstyles.timeline_text}` + ' m-0 p-0 '}
988
+ style={{
989
+ color: item.isfilterselected ? sectionproperties.activecat_color : '',
990
+ }}
991
+ >
992
+ {langdetect == 'en' ? item.title_en : item.title_ar}
993
+ </p>
994
+ </div>
995
+ </div>
996
+ );
997
+ })}
998
+ </div>
999
+ </div>
1000
+ </div>
1001
+ </AccordionItemPanel>
1002
+ </AccordionItem>
1003
+ </Accordion>
1004
+ <div class="col-lg-12">
1005
+ <hr className="mt-3 mb-3" />
1006
+ </div>
1007
+ <Accordion allowMultipleExpanded={true} allowZeroExpanded={true} preExpanded={[0, 1, 2, 3]}>
1008
+ {instfilters.map((item, index) => {
1009
+ return (
1010
+ <>
1011
+ <AccordionItem uuid={index}>
1012
+ <AccordionItemHeading>
1013
+ <AccordionItemButton>
1014
+ <div className={filter_cssstyles.titlecontainer + ' row m-0 p-0 mb-2 pl-md-3 pr-md-3 '}>
1015
+ <div className="col-lg-10 col-md-10 col-sm-10 p-0">
1016
+ <p
1017
+ className={
1018
+ langdetect == 'en'
1019
+ ? filter_cssstyles.collapsetitle + ' m-0 p-0 '
1020
+ : filter_cssstyles.collapsetitle + ' m-0 p-0 text-right'
1021
+ }
1022
+ >
1023
+ {langdetect == 'en' ? item.optionname : item.optionname_ar}
1024
+ </p>
1025
+ </div>
1026
+ <div className="col-lg-2 col-md-2 col-sm-2 p-0">
1027
+ <AccordionItemState>
1028
+ {(state) => {
1029
+ if (state.expanded == true) {
1030
+ return (
1031
+ <i
1032
+ className={
1033
+ filter_cssstyles.collapsetitleicon +
1034
+ ' h-100 d-flex align-items-center justify-content-end accordion__button '
1035
+ }
1036
+ >
1037
+ <AiOutlineMinus />
1038
+ </i>
1039
+ );
1040
+ } else {
1041
+ return (
1042
+ <i
1043
+ className={
1044
+ filter_cssstyles.collapsetitleicon +
1045
+ ' h-100 d-flex align-items-center justify-content-end accordion__button '
1046
+ }
1047
+ >
1048
+ <HiOutlinePlus />
1049
+ </i>
1050
+ );
1051
+ }
1052
+ }}
1053
+ </AccordionItemState>
1054
+ </div>
1055
+ </div>
1056
+ </AccordionItemButton>
1057
+ </AccordionItemHeading>
1058
+ <AccordionItemPanel className="p-0">
1059
+ <div className="row mt-0 mb-2 ml-0 mr-0 d-lg-flex">
1060
+ <div className={'col-lg-12'}>
1061
+ <div
1062
+ className={
1063
+ langdetect == 'en'
1064
+ ? `${filterstyles.timeline}` + ' p-sm-0 '
1065
+ : `${filterstyles.timeline} ${filterstyles.timelinetrans}` + ' p-sm-0 '
1066
+ }
1067
+ >
1068
+ {item.productvaluesfilter.map((valueitem, valueindex) => {
1069
+ return (
1070
+ <div
1071
+ className={
1072
+ `${filterstyles.border_left_line} ${filterstyles.timelineinnercont} ${filter_cssstyles.timelineinnercont}
1073
+ ${valueitem.isfilterselected ? `${filter_cssstyles.timelineinnercont_active} ${filterstyles.timelineinnercont_active}` : ''}
1074
+
1075
+ ` + ' d-flex align-items-start pb-3 '
1076
+ }
1077
+ onClick={() => {
1078
+ setfilterfunc(valueitem.valueid, valueindex, index, 'assign');
1079
+ }}
1080
+ >
1081
+ <div>
1082
+ <div
1083
+ className={
1084
+ ` ${valueitem.isfilterselected ? filter_cssstyles.btn_item_active : ''} ${filterstyles.btn_item} ${
1085
+ filter_cssstyles.btn_item
1086
+ }` + ' mb-2 d-flex align-items-center '
1087
+ }
1088
+ >
1089
+ <i className="h-100 d-flex align-items-center"></i>
1090
+ </div>
1091
+ </div>
1092
+ <div className={langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'}>
1093
+ <p
1094
+ className={`${filterstyles.timeline_text} ${filter_cssstyles.timeline_text}` + ' m-0 p-0 '}
1095
+ style={{
1096
+ color: valueitem.isfilterselected ? sectionproperties.activecat_color : '',
1097
+ }}
1098
+ >
1099
+ {langdetect == 'en' ? valueitem.valuename : valueitem.valuename_ar}
1100
+ </p>
1101
+ </div>
1102
+ </div>
1103
+ );
1104
+ })}
1105
+ </div>
1106
+ </div>
1107
+ </div>
1108
+ </AccordionItemPanel>
1109
+ </AccordionItem>
1110
+ <hr className="mt-3 mb-3" />
1111
+ </>
1112
+ );
1113
+ })}
1114
+ </Accordion>
1115
+ </div>
1116
+ {/* <div
1117
+ className="col-lg-12 d-flex align-items-center justify-content-center"
1118
+ onClick={() => {
1119
+ setfilterfunc('', '', '', 'clearfilters');
1120
+ }}
1121
+ >
1122
+ <button className={filter_cssstyles.btnstyles + ' ml-1 ml-1 '}>{langdetect == 'en' ? 'Clear Filters' : 'حذف الإختيارات'}</button>
1123
+ </div> */}
1124
+ </div>
1125
+ </div>
1126
+ </Offcanvas.Body>
1127
+ </Offcanvas>
1128
+ </div>
1129
+ </div>
1130
+ );
1131
+ };
1132
+ export default Filter;