tabexseriescomponents 0.2.1280 → 0.2.1283

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 (389) hide show
  1. package/dist/index.cjs.js +40 -258
  2. package/dist/index.esm.js +40 -258
  3. package/dist/index.umd.js +40 -258
  4. package/package.json +1 -1
  5. package/srcbefore27-11/Contexts/LanguageContext.jsx +0 -408
  6. package/srcbefore27-11/Contexts/ProductsCardsSectionContext.jsx +0 -36
  7. package/srcbefore27-11/Imagekitconfig copy.jsx +0 -46
  8. package/srcbefore27-11/Imagekitconfig.jsx +0 -178
  9. package/srcbefore27-11/StylesJS/Customstyles.js +0 -456
  10. package/srcbefore27-11/TabexComponents/Cards/CTAProductCard/CTAProductCard.jsx +0 -538
  11. package/srcbefore27-11/TabexComponents/Cards/Card20/Card20.jsx +0 -299
  12. package/srcbefore27-11/TabexComponents/Cards/Card21/Card21.jsx +0 -388
  13. package/srcbefore27-11/TabexComponents/Cards/Card22/Card22.jsx +0 -288
  14. package/srcbefore27-11/TabexComponents/Cards/Card23/Card23 copy.jsx +0 -1630
  15. package/srcbefore27-11/TabexComponents/Cards/Card23/Card23.jsx +0 -733
  16. package/srcbefore27-11/TabexComponents/Cards/CardAll/CardAll.jsx +0 -453
  17. package/srcbefore27-11/TabexComponents/Cards/CardBadgeSlideFromTop/CardBadgeSlideFromTop.jsx +0 -394
  18. package/srcbefore27-11/TabexComponents/Cards/CardWithTextOnly/CardWithTextOnly.jsx +0 -70
  19. package/srcbefore27-11/TabexComponents/Cards/Cardwithdetailsshowonhover/Cardwithdetailsshowonhover.jsx +0 -1074
  20. package/srcbefore27-11/TabexComponents/Cards/CategoryCardTextOnImage/CategoryCardTextOnImage.jsx +0 -211
  21. package/srcbefore27-11/TabexComponents/Cards/CategoryCardwithhoveraction/CategoryCardwithhoveraction.jsx +0 -293
  22. package/srcbefore27-11/TabexComponents/Cards/Categorycard_details_onhover/Categorycard_details_onhover.jsx +0 -512
  23. package/srcbefore27-11/TabexComponents/Cards/Categorycard_details_onhover copy/Categorycard_details_onhover.jsx +0 -513
  24. package/srcbefore27-11/TabexComponents/Cards/Categorycard_fullimage/Categorycard_fullimage.jsx +0 -235
  25. package/srcbefore27-11/TabexComponents/Cards/Categorycard_slidebgscaled/Categorycard_slidebgscaled.jsx +0 -199
  26. package/srcbefore27-11/TabexComponents/Cards/Categorycard_with_trianglebg/Categorycard_with_trianglebg.jsx +0 -182
  27. package/srcbefore27-11/TabexComponents/Cards/Categorycard_with_twolinestransition/Categorycard_with_twolinestransition.jsx +0 -184
  28. package/srcbefore27-11/TabexComponents/Cards/Categorycard_withshapes/Categorycard_withshapes.jsx +0 -161
  29. package/srcbefore27-11/TabexComponents/Cards/Categorycard_withtext/Categorycard_withtext.jsx +0 -208
  30. package/srcbefore27-11/TabexComponents/Cards/CircleCardWithVariants/CircleCardWithVariants.jsx +0 -560
  31. package/srcbefore27-11/TabexComponents/Cards/Classiccategorycard/Classiccategorycard copy.jsx +0 -145
  32. package/srcbefore27-11/TabexComponents/Cards/Classiccategorycard/Classiccategorycard.jsx +0 -145
  33. package/srcbefore27-11/TabexComponents/Cards/Classiccategorycard/ClassiccategorycardOriginal.jsx +0 -142
  34. package/srcbefore27-11/TabexComponents/Cards/HorizontalCategoryCard/HorizontalCategoryCard.jsx +0 -193
  35. package/srcbefore27-11/TabexComponents/Cards/Horizontalcard/Horizontalcard.jsx +0 -605
  36. package/srcbefore27-11/TabexComponents/Cards/MenuCard/MenuCard.jsx +0 -817
  37. package/srcbefore27-11/TabexComponents/Cards/ModernCardWithQuantityButton/ModernCardWithQuantityButton.jsx +0 -468
  38. package/srcbefore27-11/TabexComponents/Cards/ModernProductCard/ModernProductCard.jsx +0 -593
  39. package/srcbefore27-11/TabexComponents/Cards/Moderncategorycard/Moderncategorycard.jsx +0 -208
  40. package/srcbefore27-11/TabexComponents/Cards/NewProductcard/NewProductcard copy.jsx +0 -497
  41. package/srcbefore27-11/TabexComponents/Cards/NewProductcard/NewProductcard.jsx +0 -512
  42. package/srcbefore27-11/TabexComponents/Cards/ProductCardWithTextOnImage/ProductCardWithTextOnImage.jsx +0 -304
  43. package/srcbefore27-11/TabexComponents/Cards/Productcard6/Productcard6.jsx +0 -257
  44. package/srcbefore27-11/TabexComponents/Cards/Productcard7/Productcard7.jsx +0 -277
  45. package/srcbefore27-11/TabexComponents/Cards/Productcard_animatedbuttons/Productcard_animatedbuttons.jsx +0 -352
  46. package/srcbefore27-11/TabexComponents/Cards/Productcard_with_circularbg/Productcard_with_circularbg.jsx +0 -291
  47. package/srcbefore27-11/TabexComponents/Cards/Productcard_with_circularhover/Productcard_with_circularhover.jsx +0 -315
  48. package/srcbefore27-11/TabexComponents/Cards/Productcard_with_slideanimation/Productcard_with_slideanimation.jsx +0 -327
  49. package/srcbefore27-11/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants copy.jsx +0 -408
  50. package/srcbefore27-11/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants.jsx +0 -528
  51. package/srcbefore27-11/TabexComponents/Cards/Productcard_with_zoominonhover/Productcard_with_zoominonhover.jsx +0 -731
  52. package/srcbefore27-11/TabexComponents/Cards/Productcarddefault/Productcarddefault.jsx +0 -275
  53. package/srcbefore27-11/TabexComponents/Cards/Productccard_with_imageontopleft/Productccard_with_imageontopleft.jsx +0 -286
  54. package/srcbefore27-11/TabexComponents/Cards/Prouductcard_with_zoomhover/Prouductcard_with_zoomhover.jsx +0 -138
  55. package/srcbefore27-11/TabexComponents/Cards/QuantityButtonBasedProductCard/QuantityButtonBasedProductCard.jsx +0 -611
  56. package/srcbefore27-11/TabexComponents/Cards/ServiceCard/ServiceCard.jsx +0 -600
  57. package/srcbefore27-11/TabexComponents/Cards/Simplecategorycardwithtextbelow/Simplecategorycardwithtextbelow.jsx +0 -225
  58. package/srcbefore27-11/TabexComponents/Cards/Simpleproductcard/Simpleproductcard copy 2.jsx +0 -525
  59. package/srcbefore27-11/TabexComponents/Cards/Simpleproductcard/Simpleproductcard copy.jsx +0 -2321
  60. package/srcbefore27-11/TabexComponents/Cards/Simpleproductcard/Simpleproductcard.jsx +0 -1311
  61. package/srcbefore27-11/TabexComponents/Cards/Simpleproductcard/Simpleproductcardlastversion15-9.jsx +0 -1292
  62. package/srcbefore27-11/TabexComponents/Cards/StylishProductCard/StylishProductCard.jsx +0 -337
  63. package/srcbefore27-11/TabexComponents/Cards/TwoWayServiceSectionWithImage/TwoWayServiceSectionWithImage.jsx +0 -347
  64. package/srcbefore27-11/TabexComponents/Cards/UpSlideEffectCard/UpSlideEffectCard.jsx +0 -605
  65. package/srcbefore27-11/TabexComponents/Cards/UserCardWithSocialMediaOnHover/UserCardWithSocialMediaOnHover.jsx +0 -185
  66. package/srcbefore27-11/TabexComponents/Cards/Variants_J_Cards/Variants_J_Cards.jsx +0 -660
  67. package/srcbefore27-11/TabexComponents/Footer/Allinonefooter/Allinonefooter.jsx +0 -759
  68. package/srcbefore27-11/TabexComponents/Footer/Footer1/Footer1.jsx +0 -551
  69. package/srcbefore27-11/TabexComponents/Footer/Footer2/Footer2.jsx +0 -731
  70. package/srcbefore27-11/TabexComponents/Footer/Footer3/Footer3.jsx +0 -414
  71. package/srcbefore27-11/TabexComponents/Footer/Footer4/Footer4.jsx +0 -466
  72. package/srcbefore27-11/TabexComponents/Footer/Footer5/Footer5.jsx +0 -776
  73. package/srcbefore27-11/TabexComponents/Footer/Footer6/Footer6.jsx +0 -290
  74. package/srcbefore27-11/TabexComponents/Footer/Footer7/Footer7.jsx +0 -430
  75. package/srcbefore27-11/TabexComponents/Footer/Footer8/Footer8 copy.jsx +0 -1970
  76. package/srcbefore27-11/TabexComponents/Footer/Footer8/Footer8.jsx +0 -2015
  77. package/srcbefore27-11/TabexComponents/Footer/FooterWithThreeColumns/FooterWithThreeColumns.jsx +0 -330
  78. package/srcbefore27-11/TabexComponents/Footer/ModernFooter/ModernFooter.jsx +0 -582
  79. package/srcbefore27-11/TabexComponents/Footer/Newsletterfooter/Newsletterfooter.jsx +0 -1165
  80. package/srcbefore27-11/TabexComponents/Footer/Newsletterincenter/Newsletterincenter.jsx +0 -646
  81. package/srcbefore27-11/TabexComponents/Footer/PrivacyPolicy/PrivacyPolicy.jsx +0 -110
  82. package/srcbefore27-11/TabexComponents/Footer/Simplefooter/Simplefooter.jsx +0 -332
  83. package/srcbefore27-11/TabexComponents/Generalfiles/images/egyptflag.png +0 -0
  84. package/srcbefore27-11/TabexComponents/Generalfiles/images/noimage.png +0 -0
  85. package/srcbefore27-11/TabexComponents/Generalfiles/images/payment/cod.png +0 -0
  86. package/srcbefore27-11/TabexComponents/Generalfiles/images/payment/fawry.png +0 -0
  87. package/srcbefore27-11/TabexComponents/Generalfiles/images/payment/payment.png +0 -0
  88. package/srcbefore27-11/TabexComponents/Generalfiles/images/payment/paymob.png +0 -0
  89. package/srcbefore27-11/TabexComponents/Generalfiles/images/payment/paypal.png +0 -0
  90. package/srcbefore27-11/TabexComponents/Generalfiles/images/payment/visa.png +0 -0
  91. package/srcbefore27-11/TabexComponents/Generalfiles/images/shoppingcart.png +0 -0
  92. package/srcbefore27-11/TabexComponents/Generalfiles/images/tabexlogo.png +0 -0
  93. package/srcbefore27-11/TabexComponents/Generalfiles/images/unknownmaleuser.png +0 -0
  94. package/srcbefore27-11/TabexComponents/Generalfiles/images/usflag.png +0 -0
  95. package/srcbefore27-11/TabexComponents/Generalfiles/images/whatsapp.png +0 -0
  96. package/srcbefore27-11/TabexComponents/Headers/CTAHeader/CTAHeader.jsx +0 -1264
  97. package/srcbefore27-11/TabexComponents/Headers/CategoriesComponent/CategoriesComponent.jsx +0 -375
  98. package/srcbefore27-11/TabexComponents/Headers/CategoryFeaturingHeader/CategoryFeaturingHeader.jsx +0 -1056
  99. package/srcbefore27-11/TabexComponents/Headers/CenteredLogoHeaderWithSlider/CenteredLogoHeaderWithSlider.jsx +0 -1498
  100. package/srcbefore27-11/TabexComponents/Headers/ClassicHeader/ClassicHeader.jsx +0 -1289
  101. package/srcbefore27-11/TabexComponents/Headers/DownloadApp/DownloadApp.jsx +0 -76
  102. package/srcbefore27-11/TabexComponents/Headers/ElegantHeader/ElegantHeader.jsx +0 -907
  103. package/srcbefore27-11/TabexComponents/Headers/FloatingIcons/FloatingIcons.jsx +0 -358
  104. package/srcbefore27-11/TabexComponents/Headers/Gotoheader/Gotoheader.jsx +0 -875
  105. package/srcbefore27-11/TabexComponents/Headers/Header4/Header4.jsx +0 -622
  106. package/srcbefore27-11/TabexComponents/Headers/Header8/Header8 copy.jsx +0 -1026
  107. package/srcbefore27-11/TabexComponents/Headers/Header8/Header8.jsx +0 -3414
  108. package/srcbefore27-11/TabexComponents/Headers/HeaderRestaurant/HeaderRestaurant.jsx +0 -777
  109. package/srcbefore27-11/TabexComponents/Headers/HeaderWithAdSlider/HeaderWithAdSlider.jsx +0 -933
  110. package/srcbefore27-11/TabexComponents/Headers/HeaderWithSearchOnCenter/HeaderWithSearchOnCenter.jsx +0 -710
  111. package/srcbefore27-11/TabexComponents/Headers/HeaderWithUtilityBar/HeaderWithUtilityBar.jsx +0 -902
  112. package/srcbefore27-11/TabexComponents/Headers/Header_threesectionslogocentered/Header_threesectionslogocentered.jsx +0 -1347
  113. package/srcbefore27-11/TabexComponents/Headers/Headerresponsive/Headerresponsive.jsx +0 -1566
  114. package/srcbefore27-11/TabexComponents/Headers/Headerresponsive/Headerresponsive11-1.jsx +0 -1201
  115. package/srcbefore27-11/TabexComponents/Headers/Headerresponsive/HeaderresponsiveOriginal.jsx +0 -990
  116. package/srcbefore27-11/TabexComponents/Headers/Headerresponsive/HeaderresponsiveStyle2 copy.jsx +0 -1639
  117. package/srcbefore27-11/TabexComponents/Headers/Headerresponsive/HeaderresponsiveStyle2.jsx +0 -7163
  118. package/srcbefore27-11/TabexComponents/Headers/Headerresponsive/Headerresponsivenew.jsx +0 -1327
  119. package/srcbefore27-11/TabexComponents/Headers/HeaderwithContactinfo/HeaderwithContactinfo.jsx +0 -941
  120. package/srcbefore27-11/TabexComponents/Headers/MarqueeHeader/MarqueeHeader.jsx +0 -80
  121. package/srcbefore27-11/TabexComponents/Headers/Minimalheader/Minimalheader.jsx +0 -846
  122. package/srcbefore27-11/TabexComponents/Headers/Modernheader/Modernheader.jsx +0 -1198
  123. package/srcbefore27-11/TabexComponents/Headers/ParentCollectionsComponent/ParentCollectionsComponent.jsx +0 -385
  124. package/srcbefore27-11/TabexComponents/Headers/SearchCenteredHeader/SearchCenteredHeader.jsx +0 -784
  125. package/srcbefore27-11/TabexComponents/Headers/SearchFocusedHeader/SearchFocusedHeader.jsx +0 -1186
  126. package/srcbefore27-11/TabexComponents/Headers/Simpleheader/Simpleheader.jsx +0 -3692
  127. package/srcbefore27-11/TabexComponents/Headers/SocialMediaSection/SocialMediaSection.jsx +0 -266
  128. package/srcbefore27-11/TabexComponents/Headers/StylishHeader/StylishHeader.jsx +0 -860
  129. package/srcbefore27-11/TabexComponents/Headers/Subheader/Subheader copy.jsx +0 -950
  130. package/srcbefore27-11/TabexComponents/Headers/Subheader/Subheader.jsx +0 -1052
  131. package/srcbefore27-11/TabexComponents/Headers/Subheader/Subheader13-3.jsx +0 -685
  132. package/srcbefore27-11/TabexComponents/Headers/Subheader/SubheaderOriginal.jsx +0 -517
  133. package/srcbefore27-11/TabexComponents/Headers/Subheader/Subheadernew.jsx +0 -555
  134. package/srcbefore27-11/TabexComponents/Headers/SubheaderDropdown/SubheaderDropdown.jsx +0 -610
  135. package/srcbefore27-11/TabexComponents/Headers/ThreeTieredHeader/ThreeTieredHeader.jsx +0 -1049
  136. package/srcbefore27-11/TabexComponents/Headers/TwoTieredHeader/TwoTieredHeader.jsx +0 -1095
  137. package/srcbefore27-11/TabexComponents/Headers/TwoTieredWithCenteredLogoHeader/TwoTieredWithCenteredLogoHeader.jsx +0 -979
  138. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/BacgroundThreeImageWithCategories/BacgroundThreeImageWithCategories.jsx +0 -533
  139. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/BackgroundFiveImageStructure/BackgroundFiveImageStructure.jsx +0 -338
  140. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/BackgroundImageWithTopContent/BackgroundImageWithTopContent.jsx +0 -872
  141. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/BackgroundImageWithTopContent/BackgroundImageWithTopContentrecent.jsx +0 -895
  142. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/BackgroundSectionWithServicesCards/BackgroundSectionWithServicesCards.jsx +0 -302
  143. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Backgroundimage1/Backgroundimage1.jsx +0 -314
  144. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Backgroundimage_with_toppill/Backgroundimage_with_toppill.jsx +0 -318
  145. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/BackgroundimageandTextsection/BackgroundimageandTextsection.jsx +0 -179
  146. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Bgimagewithsearchbar/Bgimagewithsearchbar.jsx +0 -201
  147. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/CollapsableSection/CollapsableSection.jsx +0 -421
  148. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/DynamicForm/DynamicForm copy 2.jsx +0 -583
  149. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/DynamicForm/DynamicForm copy.jsx +0 -291
  150. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/DynamicForm/DynamicForm.jsx +0 -822
  151. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/DynamicForm/DynamicForm19-8beforeattach.jsx +0 -789
  152. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/DynamicForm/DynamicForm22-7.jsx +0 -787
  153. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/DynamicForm/habal +0 -348
  154. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Filterwithcategoriespcoll/Filterwithcategoriespcoll.jsx +0 -387
  155. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/FullVideoSection/FullVideoSection.jsx +0 -268
  156. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/MapsSection/MapsSection.jsx +0 -295
  157. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/PopupCountryComponent/PopupCountryComponent.jsx +0 -120
  158. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Popupcomponent/Popupcomponent.jsx +0 -119
  159. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Searchcomponent/Searchcomponent.jsx +0 -99
  160. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Section_with_rightbgcont/Section_with_rightbgcont.jsx +0 -146
  161. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/TextSectionConnectToWA/TextSectionConnectToWA.jsx +0 -489
  162. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Threebgimages/Threebgimages.jsx +0 -296
  163. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages copy.jsx +0 -396
  164. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages.jsx +0 -633
  165. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/VideosSection/VideosSection.jsx +0 -509
  166. package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSection copy 2.jsx +0 -1399
  167. package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSection copy 3.jsx +0 -1656
  168. package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSection copy.jsx +0 -1540
  169. package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSection.jsx +0 -2323
  170. package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSection13-3.jsx +0 -1596
  171. package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSection21-10.jsx +0 -1872
  172. package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSection21-11beforeform.jsx +0 -1891
  173. package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSection_cosmoandmore.jsx +0 -1880
  174. package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSectionwithanomation12-1.jsx +0 -2065
  175. package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection2/CardsSection2.jsx +0 -726
  176. package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSectionwithfilter/CardsSectionwithfilter.jsx +0 -719
  177. package/srcbefore27-11/TabexComponents/Sections/Cards/ElegantCategoriesCardSection/ElegantCategoriesCardSection.jsx +0 -406
  178. package/srcbefore27-11/TabexComponents/Sections/Cards/ModernCardsSection/ModernCardsSection.jsx +0 -966
  179. package/srcbefore27-11/TabexComponents/Sections/Cards/RandomlyStructuredCollectionCards/RandomlyStructuredCollectionCards copy.jsx +0 -646
  180. package/srcbefore27-11/TabexComponents/Sections/Cards/RandomlyStructuredCollectionCards/RandomlyStructuredCollectionCards.jsx +0 -1577
  181. package/srcbefore27-11/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.jsx +0 -596
  182. package/srcbefore27-11/TabexComponents/Sections/Cards/UsersCardsSection/UsersCardsSection.jsx +0 -383
  183. package/srcbefore27-11/TabexComponents/Sections/Slideshow/AboutSection/AboutSection.jsx +0 -342
  184. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Backgroundimage_with_topcircle/Backgroundimage_with_topcircle.jsx +0 -161
  185. package/srcbefore27-11/TabexComponents/Sections/Slideshow/ContactUsSection/ContactUsSection.jsx +0 -394
  186. package/srcbefore27-11/TabexComponents/Sections/Slideshow/CountDownSection/CountDownSection.jsx +0 -174
  187. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection copy.jsx +0 -382
  188. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection.jsx +0 -651
  189. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection19-11.jsx +0 -757
  190. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection20-2.jsx +0 -1017
  191. package/srcbefore27-11/TabexComponents/Sections/Slideshow/HorizontalContactUsSection/HorizontalContactUsSection.jsx +0 -346
  192. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx +0 -3027
  193. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Image_with_rightwords/Image_with_rightwords.jsx +0 -141
  194. package/srcbefore27-11/TabexComponents/Sections/Slideshow/MarqueeSection/MarqueeSection.jsx +0 -103
  195. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Preloaderone/Preloaderone.jsx +0 -49
  196. package/srcbefore27-11/TabexComponents/Sections/Slideshow/ServiceSectionWithImage/ServiceSectionWithImage.jsx +0 -376
  197. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Servicesection/Servicesection.jsx +0 -384
  198. package/srcbefore27-11/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards copy.jsx +0 -1576
  199. package/srcbefore27-11/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards.jsx +0 -1989
  200. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshow_with_rotatedsquare/Slideshow_with_rotatedsquare.jsx +0 -226
  201. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshow_with_squarebg/Slideshow_with_squarebg.jsx +0 -149
  202. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowdifferentanimations/Slideshowdifferentanimations.jsx +0 -143
  203. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade copy.jsx +0 -634
  204. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade.jsx +0 -474
  205. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide copy.jsx +0 -527
  206. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide.jsx +0 -665
  207. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowslide/SlideshowslideOriginal.jsx +0 -477
  208. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowslide/SlideshowslideRecent.jsx +0 -1217
  209. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslideoriginal8-5.jsx +0 -614
  210. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowzoom/Arrow.jsx +0 -91
  211. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom copy.jsx +0 -380
  212. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom.jsx +0 -741
  213. package/srcbefore27-11/TabexComponents/Sections/Slideshow/TableSection/TableSection.jsx +0 -423
  214. package/srcbefore27-11/TabexComponents/Sections/Slideshow/ThreeSectionsWithSlideshow/ThreeSectionsWithSlideshow copy.jsx +0 -284
  215. package/srcbefore27-11/TabexComponents/Sections/Slideshow/ThreeSectionsWithSlideshow/ThreeSectionsWithSlideshow.jsx +0 -636
  216. package/srcbefore27-11/TabexComponents/Sections/Slideshow/TwoWayServiceSectionWithImage/TwoWayServiceSectionWithImage.jsx +0 -402
  217. package/srcbefore27-11/TabexComponents/StaticPages/AccountInformation/AccountInformation.jsx +0 -234
  218. package/srcbefore27-11/TabexComponents/StaticPages/AddReview/AddReview.jsx +0 -306
  219. package/srcbefore27-11/TabexComponents/StaticPages/Afiiliatesignup/Afiiliatesignup.jsx +0 -364
  220. package/srcbefore27-11/TabexComponents/StaticPages/CartSlider/CartSlider.jsx +0 -1000
  221. package/srcbefore27-11/TabexComponents/StaticPages/Categoriesdropdown/Categoriesdropdown.jsx +0 -460
  222. package/srcbefore27-11/TabexComponents/StaticPages/Checkout/Checkout copy.jsx +0 -1306
  223. package/srcbefore27-11/TabexComponents/StaticPages/Checkout/Checkout.jsx +0 -2506
  224. package/srcbefore27-11/TabexComponents/StaticPages/Checkout/Checkout10-1.jsx +0 -1633
  225. package/srcbefore27-11/TabexComponents/StaticPages/Checkout/Checkout12-12beforeextras.jsx +0 -1999
  226. package/srcbefore27-11/TabexComponents/StaticPages/Checkout/Checkout26-9.jsx +0 -1593
  227. package/srcbefore27-11/TabexComponents/StaticPages/Checkout/Checkout9-9.jsx +0 -1574
  228. package/srcbefore27-11/TabexComponents/StaticPages/Compare/Compare.jsx +0 -79
  229. package/srcbefore27-11/TabexComponents/StaticPages/Filter/CollectionsFilterHorizontal.jsx +0 -245
  230. package/srcbefore27-11/TabexComponents/StaticPages/Filter/Filter copy 2.jsx +0 -2888
  231. package/srcbefore27-11/TabexComponents/StaticPages/Filter/Filter copy.jsx +0 -1450
  232. package/srcbefore27-11/TabexComponents/StaticPages/Filter/Filter.jsx +0 -3459
  233. package/srcbefore27-11/TabexComponents/StaticPages/Filter/Filter1-5.jsx +0 -2624
  234. package/srcbefore27-11/TabexComponents/StaticPages/Filter/Filter13-11.jsx +0 -2758
  235. package/srcbefore27-11/TabexComponents/StaticPages/Filter/Filter14-8.jsx +0 -2753
  236. package/srcbefore27-11/TabexComponents/StaticPages/Filter/Filter17-9.jsx +0 -1495
  237. package/srcbefore27-11/TabexComponents/StaticPages/Filter/VariantFilter.jsx +0 -1271
  238. package/srcbefore27-11/TabexComponents/StaticPages/InnerGroups/InnerGroups.jsx +0 -62
  239. package/srcbefore27-11/TabexComponents/StaticPages/Login/FacebookLoginButton.jsx +0 -50
  240. package/srcbefore27-11/TabexComponents/StaticPages/Login/GoogleLoginButton.jsx +0 -35
  241. package/srcbefore27-11/TabexComponents/StaticPages/Login/Login copy.jsx +0 -1060
  242. package/srcbefore27-11/TabexComponents/StaticPages/Login/Login.jsx +0 -616
  243. package/srcbefore27-11/TabexComponents/StaticPages/OrderSuccess/OrderSuccess.jsx +0 -693
  244. package/srcbefore27-11/TabexComponents/StaticPages/OrderSuccess/OrderSuccess2.jsx +0 -173
  245. package/srcbefore27-11/TabexComponents/StaticPages/Ordershistory/Ordershistory.jsx +0 -1831
  246. package/srcbefore27-11/TabexComponents/StaticPages/Policies/Policies.jsx +0 -291
  247. package/srcbefore27-11/TabexComponents/StaticPages/PrivacyPolicy/PrivacyPolicy.jsx +0 -194
  248. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Addreviewform.jsx +0 -183
  249. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/AddreviewformOriginal.jsx +0 -128
  250. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Article_itemtype.jsx +0 -268
  251. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/DescriptionContent.jsx +0 -190
  252. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/ProductExtraFields.jsx +0 -225
  253. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/ProductExtras.jsx +0 -224
  254. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/ProductFileUploader.jsx +0 -136
  255. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/ProductHeaderPricing.jsx +0 -347
  256. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/ProductReviews.jsx +0 -262
  257. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Product_itemtype.jsx +0 -5566
  258. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Product_itemtype10-1.jsx +0 -1554
  259. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Product_itemtype3-11.jsx +0 -1827
  260. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Product_itemtype31-3.jsx +0 -1351
  261. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Product_itemtypeUpdated.jsx +0 -1566
  262. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Product_itemtypeeuro.jsx +0 -3101
  263. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Productinfo.jsx +0 -3047
  264. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Productinfo13-5.jsx +0 -2103
  265. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Productinfo_28_6.jsx +0 -2189
  266. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Productinfotoday.jsx +0 -2166
  267. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Service_itemtype.js +0 -2714
  268. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Service_itemtype.jsx +0 -2206
  269. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Service_itemtypetill28-4-2025.jsx +0 -1158
  270. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Serviceinfotabs.jsx +0 -1117
  271. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Serviceinfotabs4-5.jsx +0 -1043
  272. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Serviceinfotabstill28-4-2025.jsx +0 -1040
  273. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Variantoptions.jsx +0 -905
  274. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Variantoptions21-9.jsx +0 -324
  275. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/staticroutersidenav.module.css +0 -145
  276. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Addreviewform.jsx +0 -183
  277. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/AddreviewformOriginal.jsx +0 -128
  278. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/DescriptionContent.jsx +0 -140
  279. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/ProductExtraFields.jsx +0 -225
  280. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/ProductHeaderPricing.jsx +0 -310
  281. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/ProductReviews.jsx +0 -235
  282. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Product_itemtype.jsx +0 -1672
  283. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Product_itemtype10-1.jsx +0 -1554
  284. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Product_itemtype31-3.jsx +0 -1351
  285. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Product_itemtypeUpdated.jsx +0 -1566
  286. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Productinfo.jsx +0 -1804
  287. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Service_itemtype.jsx +0 -560
  288. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Serviceinfotabs.jsx +0 -928
  289. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Variantoptions.jsx +0 -597
  290. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Variantoptions21-9.jsx +0 -324
  291. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/staticroutersidenav.module.css +0 -145
  292. package/srcbefore27-11/TabexComponents/StaticPages/RefundPolicy/RefundPolicy.jsx +0 -194
  293. package/srcbefore27-11/TabexComponents/StaticPages/Resetpassword/Resetpassword.jsx +0 -346
  294. package/srcbefore27-11/TabexComponents/StaticPages/Searchlist/Searchlist.jsx +0 -367
  295. package/srcbefore27-11/TabexComponents/StaticPages/ShippingPolicy/ShippingPolicy.jsx +0 -222
  296. package/srcbefore27-11/TabexComponents/StaticPages/Signup/CustomerAddressForm.jsx +0 -277
  297. package/srcbefore27-11/TabexComponents/StaticPages/Signup/CustomerInformationForm copy.jsx +0 -1135
  298. package/srcbefore27-11/TabexComponents/StaticPages/Signup/CustomerInformationForm.jsx +0 -1505
  299. package/srcbefore27-11/TabexComponents/StaticPages/Signup/CustomerInformationForm12-5beforeemailrequired.jsx +0 -1476
  300. package/srcbefore27-11/TabexComponents/StaticPages/Signup/Signup.jsx +0 -199
  301. package/srcbefore27-11/TabexComponents/StaticPages/Staticpagesrouter/Staticpagesrouter.jsx +0 -292
  302. package/srcbefore27-11/TabexComponents/StaticPages/TermsConditions/TermsConditions.jsx +0 -219
  303. package/srcbefore27-11/TabexComponents/StaticPages/VendorPage/VendorPage.jsx +0 -162
  304. package/srcbefore27-11/TabexComponents/StaticPages/Viewcart/Viewcart 10-10.jsx +0 -765
  305. package/srcbefore27-11/TabexComponents/StaticPages/Viewcart/Viewcart.jsx +0 -786
  306. package/srcbefore27-11/TabexComponents/StaticPages/Viewcart/Viewcart26-9.jsx +0 -786
  307. package/srcbefore27-11/TabexComponents/StaticPages/Viewcart/ViewcartOriginal.jsx +0 -786
  308. package/srcbefore27-11/TabexComponents/StaticPages/Viewcart/ViewcartUpdated.jsx +0 -1425
  309. package/srcbefore27-11/TabexComponents/StaticPages/Wishlist/Wishlist.jsx +0 -844
  310. package/srcbefore27-11/TabexComponents/StaticPages/Wishlist/Wishlist25-4.jsx +0 -555
  311. package/srcbefore27-11/TabexComponents/StaticPages/Wishlist/Wishlist26-9.jsx +0 -555
  312. package/srcbefore27-11/TabexComponents/StaticPages/Wishlist/WishlistOriginal.jsx +0 -555
  313. package/srcbefore27-11/TabexComponents/StaticPages/Wishlist/WishlistUpdated.jsx +0 -815
  314. package/srcbefore27-11/button.jsx +0 -40
  315. package/srcbefore27-11/index.jsx +0 -353
  316. package/srcbefore27-11/styles/Home.module.css +0 -129
  317. package/srcbefore27-11/styles/cards/Categorcycard_fullimage.module.css +0 -14
  318. package/srcbefore27-11/styles/cards/Categorycard_slidebgscaled.module.css +0 -73
  319. package/srcbefore27-11/styles/cards/Categorycard_withshapes.module.css +0 -189
  320. package/srcbefore27-11/styles/cards/ModernCardWithQuantityButton.module.css +0 -30
  321. package/srcbefore27-11/styles/cards/Productcard6.module.css +0 -9
  322. package/srcbefore27-11/styles/cards/Productccard_with_zoominonhover.module.css +0 -94
  323. package/srcbefore27-11/styles/cards/Prouductcard_with_zoomhover.module.css +0 -61
  324. package/srcbefore27-11/styles/cards/UserCardWithSocialMediaOnHover.module.css +0 -65
  325. package/srcbefore27-11/styles/cards/card23.module.css +0 -60
  326. package/srcbefore27-11/styles/cards/categorycard.module.css +0 -84
  327. package/srcbefore27-11/styles/cards/categorycard3.module.css +0 -50
  328. package/srcbefore27-11/styles/cards/categorycardwithtext.module.css +0 -40
  329. package/srcbefore27-11/styles/cards/generalCardsStyles.module.css +0 -79
  330. package/srcbefore27-11/styles/cards/productcard_animatedbuttons.module.css +0 -139
  331. package/srcbefore27-11/styles/cards/productcard_with_textonhover.module.css +0 -18
  332. package/srcbefore27-11/styles/cards/productcard_withtextonimage.module.css +0 -0
  333. package/srcbefore27-11/styles/cards/productccard_with_imageontopleft.module.css +0 -85
  334. package/srcbefore27-11/styles/general/bootstrap.css +0 -4763
  335. package/srcbefore27-11/styles/general/dropdown.css +0 -206
  336. package/srcbefore27-11/styles/general/editorbardropdown.module.css +0 -94
  337. package/srcbefore27-11/styles/general/filter.module.css +0 -108
  338. package/srcbefore27-11/styles/general/form.module.css +0 -255
  339. package/srcbefore27-11/styles/general/general.module.css +0 -872
  340. package/srcbefore27-11/styles/general/image-gallery.css +0 -531
  341. package/srcbefore27-11/styles/general/react-accessible-accordion.module.css +0 -52
  342. package/srcbefore27-11/styles/general/react-phone-input-2.module.css +0 -927
  343. package/srcbefore27-11/styles/general/scrollbtn.module.css +0 -22
  344. package/srcbefore27-11/styles/general/slick.module.css +0 -166
  345. package/srcbefore27-11/styles/general/tabs.module.css +0 -119
  346. package/srcbefore27-11/styles/general/workplaceeditor.module.css +0 -328
  347. package/srcbefore27-11/styles/globals.css +0 -26
  348. package/srcbefore27-11/styles/headers/CTAHeader.module.css +0 -40
  349. package/srcbefore27-11/styles/headers/CategoryFeaturingHeader.module.css +0 -61
  350. package/srcbefore27-11/styles/headers/Gotoheader.module.css +0 -87
  351. package/srcbefore27-11/styles/headers/Header7.module.css +0 -50
  352. package/srcbefore27-11/styles/headers/HeaderWithAdSlider.module.css +0 -86
  353. package/srcbefore27-11/styles/headers/HeaderWithSearchOnCenter.module.css +0 -101
  354. package/srcbefore27-11/styles/headers/HeaderWithUtilityBar.module.css +0 -46
  355. package/srcbefore27-11/styles/headers/Header_threesectionslogocentered.module.css +0 -84
  356. package/srcbefore27-11/styles/headers/NewHeader.module.css +0 -101
  357. package/srcbefore27-11/styles/headers/SearchFocusedHeader.module.css +0 -62
  358. package/srcbefore27-11/styles/headers/Sideheader.module.css +0 -108
  359. package/srcbefore27-11/styles/headers/Simpleheader.module.css +0 -102
  360. package/srcbefore27-11/styles/headers/classicheader.module.css +0 -16
  361. package/srcbefore27-11/styles/headers/classicheaderstyles.module.css +0 -9
  362. package/srcbefore27-11/styles/headers/dropdown.css +0 -0
  363. package/srcbefore27-11/styles/headers/header4.module.css +0 -175
  364. package/srcbefore27-11/styles/headers/header5.module.css +0 -30
  365. package/srcbefore27-11/styles/headers/header_contactinfo.module.css +0 -53
  366. package/srcbefore27-11/styles/headers/headerresturant.module.css +0 -89
  367. package/srcbefore27-11/styles/headers/modernheader.module.css +0 -45
  368. package/srcbefore27-11/styles/headers/stylishheader.module.css +0 -24
  369. package/srcbefore27-11/styles/headers/subheader.module.css +0 -114
  370. package/srcbefore27-11/styles/headers/threetieredheader.module.css +0 -91
  371. package/srcbefore27-11/styles/sections/BackgroundImageWithTopContent.css +0 -4
  372. package/srcbefore27-11/styles/sections/Backgroundimage1.module.css +0 -17
  373. package/srcbefore27-11/styles/sections/Backgroundimage_with_topcircle.module.css +0 -28
  374. package/srcbefore27-11/styles/sections/Freetext.module.css +0 -18
  375. package/srcbefore27-11/styles/sections/Section_with_rightbgcont.module.css +0 -49
  376. package/srcbefore27-11/styles/sections/Slideshow_with_rotatedsquare.module.css +0 -35
  377. package/srcbefore27-11/styles/sections/Slideshow_with_squarebg.module.css +0 -39
  378. package/srcbefore27-11/styles/staticpages/accordion.module.css +0 -9
  379. package/srcbefore27-11/styles/staticpages/cart.module.css +0 -108
  380. package/srcbefore27-11/styles/staticpages/dropdown.css +0 -196
  381. package/srcbefore27-11/styles/staticpages/filter.module.css +0 -139
  382. package/srcbefore27-11/styles/staticpages/image-gallery.css +0 -481
  383. package/srcbefore27-11/styles/staticpages/login.module.css +0 -155
  384. package/srcbefore27-11/styles/staticpages/productinfo.module.css +0 -54
  385. package/srcbefore27-11/styles/staticpages/shop.module.css +0 -191
  386. package/srcbefore27-11/styles/staticpages/signup.module.css +0 -250
  387. package/srcbefore27-11/styles/staticpages/staticroutersidenav.module.css +0 -129
  388. package/srcbefore27-11/styles/staticpages/viewcart.module.css +0 -129
  389. package/srcbefore27-11/styles/staticpages/wishlist.module.css +0 -29
@@ -1,1495 +0,0 @@
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 { FiChevronUp } from '@react-icons/all-files/fi/FiChevronUp';
8
- import { FiChevronDown } from '@react-icons/all-files/fi/FiChevronDown';
9
- import { Offcanvas } from 'react-bootstrap';
10
- import InputRange from 'react-input-range';
11
- import { Imagekitimagecomp } from '../../../Imagekitconfig.jsx';
12
- import { ScrollMenu, VisibilityContext } from 'react-horizontal-scrolling-menu';
13
- import { defaultstyles, defaultstylestranslated } from '../../../StylesJS/Customstyles';
14
- import { CircularProgress, Messaging } from 'react-cssfx-loading';
15
-
16
- const Select = React.lazy(() => import('react-select'));
17
-
18
- const Filter = (props) => {
19
- const lang = props.actions.lang;
20
- const langdetect = props.actions.langdetect;
21
- const productfiltercontext = props.actions.productfiltercontext;
22
- const setproductfiltercontext = props.actions.setproductfiltercontext;
23
- const ProductFilterObjContext = props.actions.ProductFilterObjContext;
24
- const setProductFilterObjContext = props.actions.setProductFilterObjContext;
25
- const authdetailsContext = props.actions.authdetailsContext;
26
- const routingcountext = props.actions.routingcountext;
27
- const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
28
- const ikimagecredcontext = props.actions.ikimagecredcontext;
29
-
30
- const fetchTabexCountriesQueryContext = props.actions.fetchTabexCountriesQueryContext;
31
- const FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
32
- const setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
33
-
34
- const fetchTabexCitiesQueryContext = props.actions.fetchTabexCitiesQueryContext;
35
- const fetchTabexStatesQueryContext = props.actions.fetchTabexStatesQueryContext;
36
- const FetchTabexStatesPayloadobjContext = props.actions.FetchTabexStatesPayloadobjContext;
37
- const setFetchTabexStatesPayloadobjContext = props.actions.setFetchTabexStatesPayloadobjContext;
38
-
39
- const [sectionproperties, setsectionproperties] = useState('');
40
- const [instfilters, setinstfilters] = useState([...authdetailsContext.instinfo.instfilters]);
41
- const [collectionstobevisible, setcollectionstobevisible] = useState([]);
42
- const [instcollections, setinstcollections] = useState([...authdetailsContext.instinfo.instcollections]);
43
- const [instcategories, setinstcategories] = useState([...authdetailsContext?.instinfo?.instcategories]);
44
- const [sortby, setSortby] = useState('Sort by');
45
- const [raterangevalue, setraterangevalue] = useState({ min: 0, max: 5 });
46
-
47
- const timeoutRef = React.useRef(null);
48
- const [otherfilters, setotherfilters] = useState([
49
- {
50
- payloadvalue: 'sortprice',
51
- name: lang.price,
52
- filterarray: [
53
- { name: lang.pricehightolow, value: 'hightolow', isfilterselected: false },
54
- { name: lang.pricelowtohigh, value: 'lowtohigh', isfilterselected: false },
55
- ],
56
- },
57
- {
58
- payloadvalue: 'sortdates',
59
-
60
- name: lang.dates,
61
- filterarray: [
62
- { name: lang.recent, value: 'recent', isfilterselected: false },
63
- { name: lang.oldest, value: 'old', isfilterselected: false },
64
- ],
65
- },
66
- ]);
67
- useEffect(() => {
68
- filterupdater();
69
- }, []);
70
- useEffect(() => {
71
- setinstfilters([...authdetailsContext.instinfo.instfilters]);
72
- setinstcollections([...authdetailsContext.instinfo.instcollections]);
73
- setinstcategories([...authdetailsContext?.instinfo?.instcategories]);
74
- }, [authdetailsContext]);
75
- useEffect(() => {
76
- if (props.sectionpropertiesprops != undefined && props.sectionpropertiesprops.length != 0) {
77
- setsectionproperties(props.sectionpropertiesprops);
78
- }
79
- }, [props.sectionpropertiesprops]);
80
- useEffect(() => {
81
- filterupdater();
82
- }, [ProductFilterObjContext]);
83
- React.useEffect(() => {
84
- if (timeoutRef.current !== null) {
85
- clearTimeout(timeoutRef.current);
86
- }
87
-
88
- timeoutRef.current = setTimeout(() => {
89
- if (raterangevalue.min != 0 || raterangevalue.max != 5) {
90
- var tempfetchproductsfilerobjcontext = { ...ProductFilterObjContext };
91
- tempfetchproductsfilerobjcontext.minrate = raterangevalue.min;
92
- tempfetchproductsfilerobjcontext.maxrate = raterangevalue.max;
93
- tempfetchproductsfilerobjcontext.page = 0;
94
- setProductFilterObjContext({ ...tempfetchproductsfilerobjcontext });
95
- // routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
96
- }
97
- }, 500);
98
- }, [raterangevalue]);
99
- useEffect(() => {
100
- if (sectionproperties?.filterretreivetype == 'Depend on chosen parent group') {
101
- if (ProductFilterObjContext?.collections != undefined && ProductFilterObjContext?.collections != null && Array.isArray(ProductFilterObjContext?.collections)) {
102
- var collectiontobevisible = [];
103
- var parentidsfound = [];
104
- if (ProductFilterObjContext.ProductFetchingType == 'Parent Collection') {
105
- parentidsfound = ProductFilterObjContext?.collections;
106
- } else if (ProductFilterObjContext.ProductFetchingType == 'Category') {
107
- instcategories?.forEach(function (catitem, catindex) {
108
- ProductFilterObjContext?.collections?.forEach(function (colitem2, colindex2) {
109
- if (catitem.categoryid == colitem2) {
110
- catitem?.parentcolletions?.forEach(function (parentcolitem, parentcolindex) {
111
- parentidsfound.push(parentcolitem.parentcollectionid);
112
- });
113
- }
114
- });
115
- });
116
- } else {
117
- instcategories?.forEach(function (catitem, catindex) {
118
- catitem?.parentcolletions?.forEach(function (parentcolitem, parentcolindex) {
119
- parentcolitem?.collections?.forEach(function (colitem, colindex) {
120
- ProductFilterObjContext?.collections?.forEach(function (colitem2, colindex2) {
121
- if (colitem.collectionid == colitem2) {
122
- parentidsfound.push(parentcolitem.parentcollectionid);
123
- }
124
- });
125
- });
126
- });
127
- });
128
- }
129
-
130
- parentidsfound = parentidsfound.filter((val, id, array) => array.indexOf(val) == id);
131
-
132
- if (parentidsfound?.length != 0) {
133
- instcategories?.forEach(function (catitem, catindex) {
134
- catitem?.parentcolletions?.forEach(function (parentcolitem, parentcolindex) {
135
- parentidsfound?.forEach(function (parentidfounditem, parentidfoundindex) {
136
- if (parentidfounditem == parentcolitem?.parentcollectionid) {
137
- parentcolitem?.collections?.forEach(function (colitem, colindex) {
138
- var iscolexists = false;
139
- collectiontobevisible?.forEach(function (colitemex, colindexex) {
140
- if (colitemex.collectionid == colitem.collectionid) {
141
- iscolexists = true;
142
- }
143
- });
144
- if (iscolexists == false) {
145
- collectiontobevisible.push(colitem);
146
- }
147
- });
148
- }
149
- });
150
- });
151
- });
152
-
153
- if (collectiontobevisible?.length != 0) {
154
- setcollectionstobevisible(collectiontobevisible);
155
- } else {
156
- setcollectionstobevisible(instcollections);
157
- }
158
- } else {
159
- setcollectionstobevisible(instcollections);
160
- }
161
- } else {
162
- setcollectionstobevisible(instcollections);
163
- }
164
- } else {
165
- setcollectionstobevisible(instcollections);
166
- }
167
- }, [ProductFilterObjContext]);
168
- useEffect(() => {
169
- if (fetchTabexStatesQueryContext.isSuccess) {
170
- if (ProductFilterObjContext.stateid != undefined && ProductFilterObjContext.stateid != null && ProductFilterObjContext.stateid != '' && ProductFilterObjContext.stateid != 'all') {
171
- var tempFetchTabexStatesPayloadobjContext = { ...FetchTabexStatesPayloadobjContext };
172
- tempFetchTabexStatesPayloadobjContext.functype = 'cities';
173
- tempFetchTabexStatesPayloadobjContext.state_id = ProductFilterObjContext.stateid;
174
- setFetchTabexStatesPayloadobjContext({ ...tempFetchTabexStatesPayloadobjContext });
175
- }
176
- }
177
- }, [fetchTabexStatesQueryContext.isSuccess]);
178
- const filterupdater = () => {
179
- setTimeout(() => {
180
- var tempFetchQueriesEngineContext = { ...FetchQueriesEngineContext };
181
- tempFetchQueriesEngineContext.fetchtabexcountries = true;
182
- setFetchQueriesEngineContext(tempFetchQueriesEngineContext);
183
- }, 100);
184
- if (ProductFilterObjContext.countryid != undefined && ProductFilterObjContext.countryid != null && ProductFilterObjContext.countryid != '' && ProductFilterObjContext.countryid != 'all') {
185
- var tempFetchTabexStatesPayloadobjContext = { ...FetchTabexStatesPayloadobjContext };
186
- tempFetchTabexStatesPayloadobjContext.functype = 'states';
187
- tempFetchTabexStatesPayloadobjContext.country_id = ProductFilterObjContext.countryid;
188
- setFetchTabexStatesPayloadobjContext({ ...tempFetchTabexStatesPayloadobjContext });
189
- }
190
-
191
- if (instfilters.length != 0) {
192
- var tempinstfilters = [...instfilters];
193
- tempinstfilters?.forEach(function (instfilteritem, instfilterindex) {
194
- instfilteritem.productvaluesfilter.forEach(function (valefilteritem, valefilteritemindex) {
195
- valefilteritem.isfilterselected = false;
196
- });
197
- });
198
- ProductFilterObjContext?.FilterOptions?.forEach(function (filteritem, filterindex) {
199
- tempinstfilters?.forEach(function (instfilteritem, instfilterindex) {
200
- instfilteritem?.productvaluesfilter?.forEach(function (valefilteritem, valefilteritemindex) {
201
- if (filteritem.valueid == valefilteritem.valueid) {
202
- valefilteritem.isfilterselected = true;
203
- }
204
- });
205
- });
206
- });
207
- setinstfilters([...tempinstfilters]);
208
- }
209
- if (instcategories.length != 0) {
210
- var tempInstcategories = [...instcategories];
211
- tempInstcategories.forEach(function (catitem, catindex) {
212
- catitem.parentcolletions.forEach(function (parentcolitem, parentcolindex) {
213
- parentcolitem.collections.forEach(function (colitem, colindex) {
214
- colitem.isfilterselected = false;
215
- });
216
- });
217
- });
218
-
219
- ProductFilterObjContext?.collections?.forEach(function (filteritem, filterindex) {
220
- tempInstcategories.forEach(function (catitem, catindex) {
221
- catitem.parentcolletions.forEach(function (parentcolitem, parentcolindex) {
222
- parentcolitem.collections.forEach(function (colitem, colindex) {
223
- if (colitem.collectionid == filteritem) {
224
- colitem.isfilterselected = true;
225
- }
226
- });
227
- });
228
- });
229
- });
230
-
231
- setinstcategories([...tempInstcategories]);
232
- }
233
- if (instcollections.length != 0) {
234
- var tempInstcollections = [...instcollections];
235
- tempInstcollections.forEach(function (instfilteritem, valefilteritemindex) {
236
- instfilteritem.isfilterselected = false;
237
- });
238
- ProductFilterObjContext?.collections?.forEach(function (filteritem, filterindex) {
239
- tempInstcollections?.forEach(function (instfilteritem, instfilterindex) {
240
- if (instfilteritem.collectionid == filteritem) {
241
- instfilteritem.isfilterselected = true;
242
- }
243
- });
244
- });
245
- setinstcollections([...tempInstcollections]);
246
- }
247
- };
248
- const setfilterfunc = (valueid, valueindex, mainparentindex, type) => {
249
- var tempfetchproductsfilerobjcontext = { ...ProductFilterObjContext };
250
- if (type == 'clearfilters') {
251
- tempfetchproductsfilerobjcontext.FilterOptions = [];
252
- } else {
253
- var FilterExists = false;
254
- tempfetchproductsfilerobjcontext?.FilterOptions?.forEach(function (filteritem, filterindex) {
255
- if (filteritem.valueid == valueid) {
256
- FilterExists = true;
257
- tempfetchproductsfilerobjcontext.FilterOptions.splice(filterindex, 1);
258
- }
259
- });
260
- if (!FilterExists) {
261
- tempfetchproductsfilerobjcontext.FilterOptions.push({ valueid: valueid });
262
- }
263
- }
264
- if (tempfetchproductsfilerobjcontext.FilterOptions.length == 0) {
265
- tempfetchproductsfilerobjcontext.isfilter = 0;
266
- } else {
267
- tempfetchproductsfilerobjcontext.isfilter = 1;
268
- }
269
- tempfetchproductsfilerobjcontext.page = 0;
270
- setProductFilterObjContext({ ...tempfetchproductsfilerobjcontext });
271
- filterrouting(tempfetchproductsfilerobjcontext);
272
- // routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
273
- };
274
- const setCollectionFilterFunc = (collectionid) => {
275
- var tempfetchproductsfilerobjcontext = { ...ProductFilterObjContext };
276
- var CollectionExists = false;
277
- tempfetchproductsfilerobjcontext?.collections?.forEach(function (filteritem, filterindex) {
278
- if (filteritem == collectionid) {
279
- CollectionExists = true;
280
- tempfetchproductsfilerobjcontext.collections.splice(filterindex, 1);
281
- }
282
- });
283
- if (!CollectionExists) {
284
- if (tempfetchproductsfilerobjcontext.collections != undefined && Array.isArray(tempfetchproductsfilerobjcontext.collections)) {
285
- tempfetchproductsfilerobjcontext.collections.push(collectionid);
286
- } else {
287
- tempfetchproductsfilerobjcontext.collections = [collectionid];
288
- }
289
- }
290
-
291
- tempfetchproductsfilerobjcontext.page = 0;
292
- tempfetchproductsfilerobjcontext.ProductFetchingType = 'Random';
293
- setProductFilterObjContext({ ...tempfetchproductsfilerobjcontext });
294
- filterrouting(tempfetchproductsfilerobjcontext);
295
- // routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
296
- };
297
- const CategoriesFilter = () => {
298
- return (
299
- <div class="col-lg-12 p-0">
300
- {instcategories?.map((categoryItem, categoryIndex) => {
301
- if (categoryItem.isinftiler == 1) {
302
- return (
303
- <Accordion allowMultipleExpanded={true} allowZeroExpanded={true}>
304
- <AccordionItem uuid={categoryIndex}>
305
- <AccordionItemHeading>
306
- <AccordionItemButton>
307
- <div className={filter_cssstyles.titlecontainer + ' row m-0 p-0 mb-1 pl-md-3 pr-md-3 '}>
308
- <div className="col-lg-10 col-md-10 col-sm-10 p-0 d-flex align-items-center justify-content-start">
309
- <p className={filter_cssstyles.categoryName + ' collapsetitle text-capitalize m-0 p-0 '}>
310
- {langdetect == 'en' ? categoryItem.title_en : categoryItem.title_ar}
311
- </p>
312
- </div>
313
- <div className="col-lg-2 col-md-2 col-sm-2 p-0">
314
- <AccordionItemState>
315
- {(state) => {
316
- if (state.expanded == true) {
317
- return (
318
- <i className={filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '}>
319
- <FiChevronDown />
320
- </i>
321
- );
322
- } else {
323
- return (
324
- <i className={filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '}>
325
- <FiChevronUp />
326
- </i>
327
- );
328
- }
329
- }}
330
- </AccordionItemState>
331
- </div>
332
- <div className="col-lg-12 p-0">
333
- <hr className="mt-3 mb-2" />
334
- </div>
335
- </div>
336
- </AccordionItemButton>
337
- </AccordionItemHeading>
338
- <AccordionItemPanel className="p-0">
339
- <div className="row mt-0 mb-2 ml-0 mr-0 d-lg-flex">
340
- <div class="col-lg-12 mb-3 allcentered">
341
- <p
342
- class={filter_cssstyles.explorebtn + ' m-0 p-0 cursor-pointer text-capitalize '}
343
- style={{ textDecoration: 'underline' }}
344
- onClick={() => {
345
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'categories/' + categoryItem.categoryid);
346
- }}
347
- >
348
- {langdetect == 'en' ? sectionproperties.explorebtncontenten : sectionproperties.explorebtncontentar}{' '}
349
- {langdetect == 'en' ? categoryItem.title_en : categoryItem.title_ar}
350
- </p>
351
- </div>
352
- {authdetailsContext?.instinfo?.instcategories[categoryIndex]?.parentcolletions.map((parentcollectionitem, parentcollectionindex) => {
353
- if (parentcollectionitem.isinftiler == 1) {
354
- return (
355
- <div class="col-lg-12">
356
- <Accordion allowMultipleExpanded={true} allowZeroExpanded={true}>
357
- <AccordionItem uuid={parentcollectionindex}>
358
- <AccordionItemHeading>
359
- <AccordionItemButton>
360
- <div className={filter_cssstyles.titlecontainer + ' row m-0 p-0 mb-2 pl-md-3 pr-md-3 '}>
361
- <div className="col-lg-10 col-md-10 col-sm-10 p-0">
362
- <p
363
- className={
364
- langdetect == 'en'
365
- ? filter_cssstyles.pCollectionName + ' collapsetitle text-capitalize m-0 p-0 '
366
- : filter_cssstyles.pCollectionName + ' collapsetitle text-capitalize m-0 p-0 text-right'
367
- }
368
- >
369
- {langdetect == 'en' ? parentcollectionitem.title_en : parentcollectionitem.title_ar}
370
- </p>
371
- </div>
372
- <div className="col-lg-2 col-md-2 col-sm-2 p-0">
373
- <AccordionItemState>
374
- {(state) => {
375
- if (state.expanded == true) {
376
- return (
377
- <i
378
- className={
379
- filter_cssstyles.collapsetitle +
380
- ' collapsetitle h-100 d-flex align-items-center justify-content-end '
381
- }
382
- >
383
- <FiChevronDown />
384
- </i>
385
- );
386
- } else {
387
- return (
388
- <i
389
- className={
390
- filter_cssstyles.collapsetitle +
391
- ' collapsetitle h-100 d-flex align-items-center justify-content-end '
392
- }
393
- >
394
- <FiChevronUp />
395
- </i>
396
- );
397
- }
398
- }}
399
- </AccordionItemState>
400
- </div>
401
- </div>
402
- </AccordionItemButton>
403
- </AccordionItemHeading>
404
- <AccordionItemPanel className="p-0">
405
- <div className="row mt-0 mb-2 ml-0 mr-0 d-lg-flex ">
406
- <div class="col-lg-12 mb-3 allcentered">
407
- <p
408
- class={filter_cssstyles.explorebtn + ' m-0 p-0 cursor-pointer text-capitalize '}
409
- style={{ textDecoration: 'underline' }}
410
- onClick={() => {
411
- routingcountext(
412
- StaticPagesLinksContext.GeneralProductsComponent,
413
- true,
414
- 'parentcollections/' + parentcollectionitem.parentcollectionid,
415
- );
416
- }}
417
- >
418
- {langdetect == 'en' ? sectionproperties.explorebtncontenten : sectionproperties.explorebtncontentar}{' '}
419
- {langdetect == 'en' ? parentcollectionitem.title_en : parentcollectionitem.title_ar}
420
- </p>
421
- </div>
422
- <div className={'col-lg-12 pl-md-3 pr-md-3'}>
423
- <div
424
- className={
425
- langdetect == 'en'
426
- ? `${filterstyles.timeline} ${filterstyles.timelinetrans}` + ' p-sm-0 '
427
- : `${filterstyles.timeline} ${filterstyles.timelinetrans}` + ' p-sm-0 '
428
- }
429
- >
430
- {parentcollectionitem?.collections?.map((collectionitem, collectionindex) => {
431
- if (collectionitem.isinftiler == 1) {
432
- return (
433
- <div
434
- className={
435
- `${filterstyles.border_left_line} ${filterstyles.timelineinnercont} ${
436
- filter_cssstyles.timelineinnercont
437
- }
438
- ${collectionitem.isfilterselected ? `${filter_cssstyles.timelineinnercont_active} ${filterstyles.timelineinnercont_active}` : ''}
439
- ` + ' d-flex align-items-start pb-3 '
440
- }
441
- onClick={() => {
442
- setCollectionFilterFunc(collectionitem.collectionid);
443
- }}
444
- >
445
- <div
446
- className={
447
- ` ${collectionitem.isfilterselected ? filter_cssstyles.btn_item_active : ''} ${
448
- filterstyles.btn_item
449
- } ${filter_cssstyles.btn_item}` + ' mb-2 d-flex align-items-center '
450
- }
451
- >
452
- <i className="h-100 d-flex align-items-center"></i>
453
- </div>
454
- <div className={langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'}>
455
- <p
456
- className={`${filterstyles.timeline_text} ${filter_cssstyles.timeline_text}` + ' m-0 p-0 '}
457
- style={{
458
- color: collectionitem.isfilterselected ? sectionproperties.activecat_color : '',
459
- }}
460
- >
461
- {langdetect == 'en' ? collectionitem.title_en : collectionitem.title_ar}
462
- </p>
463
- </div>
464
- </div>
465
- );
466
- }
467
- })}
468
- </div>
469
- </div>
470
- </div>
471
- </AccordionItemPanel>
472
- </AccordionItem>
473
- </Accordion>
474
- </div>
475
- );
476
- }
477
- })}
478
- </div>
479
- </AccordionItemPanel>
480
- </AccordionItem>
481
- </Accordion>
482
- );
483
- }
484
- })}
485
- </div>
486
- );
487
- };
488
- const CollectionsFilter = () => {
489
- return (
490
- <div class="col-lg-12 p-0">
491
- <Accordion allowMultipleExpanded={true} allowZeroExpanded={true} preExpanded={[0, 1, 2, 3]}>
492
- <AccordionItem uuid={0}>
493
- <AccordionItemHeading>
494
- <AccordionItemButton>
495
- <div className={filter_cssstyles.titlecontainer + ' row m-0 p-0 mb-2 pl-md-3 pr-md-3 '}>
496
- <div className="col-lg-10 col-md-10 col-sm-10 p-0">
497
- <p className={langdetect == 'en' ? filter_cssstyles.collapsetitle + ' m-0 p-0 ' : filter_cssstyles.collapsetitle + ' m-0 p-0 text-right'}>
498
- {langdetect == 'en' ? sectionproperties.filtercollectiontitle_en : sectionproperties.filtercollectiontitle_ar}
499
- </p>
500
- </div>
501
- <div className="col-lg-2 col-md-2 col-sm-2 p-0">
502
- <AccordionItemState>
503
- {(state) => {
504
- if (state.expanded == true) {
505
- return (
506
- <i className={filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '}>
507
- <FiChevronDown />
508
- </i>
509
- );
510
- } else {
511
- return (
512
- <i className={filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '}>
513
- <FiChevronUp />
514
- </i>
515
- );
516
- }
517
- }}
518
- </AccordionItemState>
519
- </div>
520
- </div>
521
- </AccordionItemButton>
522
- </AccordionItemHeading>
523
- <AccordionItemPanel className="p-0">
524
- <div className="row mt-0 mb-2 ml-0 mr-0 d-lg-flex pl-md-3 pr-md-3">
525
- <div className={'col-lg-12'}>
526
- <div
527
- className={
528
- langdetect == 'en'
529
- ? `${filterstyles.timeline} ${filterstyles.timelinetrans}` + ' p-sm-0 '
530
- : `${filterstyles.timeline} ${filterstyles.timelinetrans}` + ' p-sm-0 '
531
- }
532
- >
533
- {collectionstobevisible.map((item, index) => {
534
- return (
535
- <div
536
- className={
537
- `${filterstyles.border_left_line} ${filterstyles.timelineinnercont} ${filter_cssstyles.timelineinnercont}
538
- ${item.isfilterselected ? `${filter_cssstyles.timelineinnercont_active} ${filterstyles.timelineinnercont_active}` : ''}
539
- ` + ' d-flex align-items-start pb-3 '
540
- }
541
- onClick={() => {
542
- setCollectionFilterFunc(item.collectionid);
543
- }}
544
- >
545
- <div
546
- className={
547
- ` ${item.isfilterselected ? filter_cssstyles.btn_item_active : ''} ${filterstyles.btn_item} ${filter_cssstyles.btn_item}` +
548
- ' mb-2 d-flex align-items-center '
549
- }
550
- >
551
- <i className="h-100 d-flex align-items-center"></i>
552
- </div>
553
- <div className={langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'}>
554
- <p
555
- className={`${filterstyles.timeline_text} ${filter_cssstyles.timeline_text}` + ' m-0 p-0 '}
556
- style={{
557
- color: item.isfilterselected ? sectionproperties.activecat_color : '',
558
- }}
559
- >
560
- {langdetect == 'en' ? item.title_en : item.title_ar}
561
- </p>
562
- </div>
563
- </div>
564
- );
565
- })}
566
- </div>
567
- {sectionproperties.showshowallbtn == 'Show' && (
568
- <div class="col-lg-12 allcentered">
569
- <div class={filter_cssstyles.showallbtn} style={{}}>
570
- <p
571
- class="m-0 p-0"
572
- onClick={() => {
573
- setcollectionstobevisible(instcollections);
574
- }}
575
- // style={{ cursor: 'pointer' }}
576
- >
577
- {langdetect == 'en' ? sectionproperties.showalltexten : sectionproperties.showalltextar}
578
- </p>
579
- </div>
580
- </div>
581
- )}
582
- </div>
583
- </div>
584
- </AccordionItemPanel>
585
- </AccordionItem>
586
- <hr className="mt-3 mb-3" />
587
- </Accordion>
588
- </div>
589
- );
590
- };
591
- const InstFilters = () => {
592
- return (
593
- <Accordion allowMultipleExpanded={true} allowZeroExpanded={true}>
594
- {instfilters.map((item, index) => {
595
- return (
596
- <>
597
- <AccordionItem uuid={index}>
598
- <AccordionItemHeading>
599
- <AccordionItemButton>
600
- <div className={filter_cssstyles.titlecontainer + ' row m-0 p-0 mb-2 pl-md-3 pr-md-3 '}>
601
- <div className="col-lg-10 col-md-10 col-sm-10 p-0">
602
- <p
603
- className={
604
- langdetect == 'en'
605
- ? filter_cssstyles.collapsetitle + ' collapsetitle m-0 p-0 '
606
- : filter_cssstyles.collapsetitle + ' collapsetitle m-0 p-0 text-right'
607
- }
608
- >
609
- {langdetect == 'en' ? item.optionname : item.optionname_ar}
610
- </p>
611
- </div>
612
- <div className="col-lg-2 col-md-2 col-sm-2 p-0">
613
- <AccordionItemState>
614
- {(state) => {
615
- if (state.expanded == true) {
616
- return (
617
- <i className={filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '}>
618
- <FiChevronDown />
619
- </i>
620
- );
621
- } else {
622
- return (
623
- <i className={filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '}>
624
- <FiChevronUp />
625
- </i>
626
- );
627
- }
628
- }}
629
- </AccordionItemState>
630
- </div>
631
- </div>
632
- </AccordionItemButton>
633
- </AccordionItemHeading>
634
- <AccordionItemPanel className="p-0">
635
- <div className="row mt-0 mb-2 ml-0 mr-0 d-lg-flex pl-md-3 pr-md-3">
636
- <div className={'col-lg-12'}>
637
- <div className={langdetect == 'en' ? `${filterstyles.timeline}` + ' p-sm-0 ' : `${filterstyles.timeline} ${filterstyles.timelinetrans}` + ' p-sm-0 '}>
638
- {item.productvaluesfilter.map((valueitem, valueindex) => {
639
- return (
640
- <div
641
- className={
642
- `${filterstyles.border_left_line} ${filterstyles.timelineinnercont} ${filter_cssstyles.timelineinnercont}
643
- ${valueitem.isfilterselected ? `${filter_cssstyles.timelineinnercont_active} ${filterstyles.timelineinnercont_active}` : ''}
644
-
645
- ` + ' d-flex align-items-start pb-3 '
646
- }
647
- onClick={() => {
648
- setfilterfunc(valueitem.valueid, valueindex, index, 'assign');
649
- }}
650
- >
651
- <div>
652
- <div
653
- className={
654
- ` ${valueitem.isfilterselected ? filter_cssstyles.btn_item_active : ''} ${filterstyles.btn_item} ${filter_cssstyles.btn_item}` +
655
- ' mb-2 d-flex align-items-center '
656
- }
657
- >
658
- <i className="h-100 d-flex align-items-center"></i>
659
- </div>
660
- </div>
661
- <div className={langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'}>
662
- <p
663
- className={`${filterstyles.timeline_text} ${filter_cssstyles.timeline_text}` + ' m-0 p-0 '}
664
- style={{
665
- color: valueitem.isfilterselected ? sectionproperties.activecat_color : '',
666
- }}
667
- >
668
- {langdetect == 'en' ? valueitem.valuename : valueitem.valuename_ar}
669
- </p>
670
- </div>
671
- </div>
672
- );
673
- })}
674
- </div>
675
- </div>
676
- </div>
677
- </AccordionItemPanel>
678
- </AccordionItem>
679
- <hr className="mt-3 mb-3" />
680
- </>
681
- );
682
- })}
683
- </Accordion>
684
- );
685
- };
686
- const filter_cssstyles = {
687
- collapsetitle: css({
688
- fontSize: sectionproperties.filtertitle_fontsize + 'px',
689
- fontWeight: sectionproperties.filtertitle_fontweight,
690
- textTransform: sectionproperties.filtertitle_texttransform,
691
- color: sectionproperties.filtertitle_color,
692
- ':hover': {
693
- color: sectionproperties.filtertitle_coloronhover,
694
- },
695
- }),
696
- titlecontainer: css({
697
- color: sectionproperties.filtertitle_color,
698
- ':hover .collapsetitle': {
699
- color: sectionproperties.filtertitle_coloronhover,
700
- },
701
- }),
702
- timeline_text: css({
703
- fontSize: sectionproperties.timeline_text_fontsize + 'px',
704
- fontWeight: sectionproperties.timeline_text_fontweight,
705
- textTransform: sectionproperties.timeline_text_texttransform,
706
- color: sectionproperties.timeline_text_color,
707
- transition: '.3s',
708
- ':hover': {
709
- color: sectionproperties.timeline_text_coloronhover,
710
- },
711
- }),
712
- btnstyles: css({
713
- color: sectionproperties.generalbtn_textColor,
714
- fontSize: sectionproperties.generalbtn_fontsize + 'px',
715
- textTransform: sectionproperties.generalbtn_texttransform,
716
- width: sectionproperties.generalbtn_width + 'px',
717
- height: sectionproperties.generalbtn_height + 'px',
718
- background: sectionproperties.generalbtn_bgColor,
719
- borderTopLeftRadius: sectionproperties.generalbtn_bordertopleftradius + 'px',
720
- borderTopRightRadius: sectionproperties.generalbtn_bordertoprightradius + 'px',
721
- borderBottomRightRadius: sectionproperties.generalbtn_borderbottomrightradius + 'px',
722
- borderBottomLeftRadius: sectionproperties.generalbtn_borderbottomleftradius + 'px',
723
- fontWeight: sectionproperties.generalbtn_fontweight,
724
- transition: '.3s',
725
- ':hover': {
726
- background: sectionproperties.generalbtn_bgColoronhover,
727
- color: sectionproperties.generalbtn_textColoronhover,
728
- },
729
- }),
730
- close_menu_icon_cont: css({
731
- background: sectionproperties.closeSliderBgColor,
732
- width: sectionproperties.closeSliderWidth + 'px',
733
- height: sectionproperties.closeSliderHeight + 'px',
734
- borderRadius: sectionproperties.closeSlider_borderBottomLeftRadius + 'px',
735
- ':hover': {
736
- background: sectionproperties.closeSliderBgColorHover,
737
- },
738
- }),
739
- horizontalfilter_card: css({
740
- marginBottom: sectionproperties.horizontalfilter_mb + 'px',
741
- marginTop: sectionproperties.horizontalfilter_mt + 'px',
742
- background: sectionproperties.horizontalfilter_cardbg,
743
- border: sectionproperties.horizontalfilter_cardborderwidth + 'px solid ' + sectionproperties.horizontalfilter_cardbordercolor,
744
- boxShadow: sectionproperties.horizontalfilter_cardboxShadow == 'Show' ? sectionproperties.horizontalfilter_cardboxShadowcolor : 'horizontalfilter_cardboxShadow',
745
- }),
746
- btn_item: css({
747
- width: '20px',
748
- height: '20px',
749
- background: sectionproperties.filteritembtn_bgcolor,
750
- ':hover': {
751
- background: sectionproperties.filteritembtn_bghover,
752
- },
753
- }),
754
- btn_item_active: css({
755
- background: sectionproperties.btn_item_activebgcolor,
756
- }),
757
- timelineinnercont_active: css({
758
- fontWeight: sectionproperties.activecat_fontweight,
759
- color: sectionproperties.activecat_color,
760
- }),
761
- categoryName: css({
762
- color: sectionproperties.filtertitle_color,
763
- fontWeight: sectionproperties.filterCatFontWeight,
764
- fontSize: sectionproperties.filterCatFontSize + 'px',
765
- }),
766
- pCollectionName: css({
767
- color: sectionproperties.filtertitle_color,
768
- fontWeight: sectionproperties.filterPCollFontWeight,
769
- fontSize: sectionproperties.filterPCollFontSize + 'px',
770
- }),
771
- explorebtn: css({
772
- fontSize: sectionproperties.explorebtnfontsize + 'px',
773
- fontWeight: 600,
774
- color: sectionproperties.explorebtncolor,
775
- transition: '.3s',
776
- ':hover': {
777
- color: sectionproperties.explorebtncoloronhover,
778
- },
779
- }),
780
- showallbtn: css({
781
- color: sectionproperties.showallcolor,
782
- ':hover': {
783
- transition: '.3s',
784
- cursor: 'pointer',
785
- color: sectionproperties.showallcolorhover,
786
- },
787
- }),
788
- };
789
- const filterrouting = (tempfetchproductsfilerobjcontext) => {
790
- const path = window.location.pathname.split('/');
791
- var currentpagepath = path[1];
792
- var pagenamepathinstaticpagelinkcont = '';
793
- for (const key in StaticPagesLinksContext) {
794
- if (StaticPagesLinksContext[key] == currentpagepath) {
795
- pagenamepathinstaticpagelinkcont = key;
796
- }
797
- }
798
- if (pagenamepathinstaticpagelinkcont != undefined && pagenamepathinstaticpagelinkcont != '') {
799
- routingcountext(StaticPagesLinksContext[pagenamepathinstaticpagelinkcont], true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
800
- }
801
- };
802
- const Countriesfilter = () => {
803
- return (
804
- <div class="row m-0 w-100 pl-md-3 pr-md-3">
805
- <div class="col-lg-12 p-0 mt-3">
806
- <div class="row m-0 w-100">
807
- <div class="col-lg-12 p-0 mb-3">
808
- {fetchTabexCountriesQueryContext?.isFetching && (
809
- <div className="w-100 allcentered mt-1">
810
- <CircularProgress color="#000" width="20px" height="20px" duration="1s" />
811
- </div>
812
- )}
813
-
814
- {!fetchTabexCountriesQueryContext?.isFetching && fetchTabexCountriesQueryContext?.isSuccess && (
815
- <Select
816
- options={fetchTabexCountriesQueryContext?.data?.data?.countries}
817
- getOptionLabel={(option) => {
818
- var crname = '';
819
- if (langdetect == 'en') {
820
- crname = option.name;
821
- } else if (langdetect == 'ar') {
822
- if (option.name_ar != null) {
823
- crname = option.name_ar;
824
- } else {
825
- crname = option.name;
826
- }
827
- }
828
- return crname;
829
- }}
830
- getOptionValue={(option) => option.id}
831
- value={fetchTabexCountriesQueryContext.data.data.countries.filter((option) => option.id == ProductFilterObjContext.countryid)}
832
- onChange={(option) => {
833
- var tempFetchTabexStatesPayloadobjContext = { ...FetchTabexStatesPayloadobjContext };
834
- tempFetchTabexStatesPayloadobjContext.functype = 'states';
835
- tempFetchTabexStatesPayloadobjContext.country_id = option.id;
836
- setFetchTabexStatesPayloadobjContext({ ...tempFetchTabexStatesPayloadobjContext });
837
-
838
- var tempfetchproductsfilerobjcontext = { ...ProductFilterObjContext };
839
- tempfetchproductsfilerobjcontext.countryid = option.id;
840
- tempfetchproductsfilerobjcontext.page = 0;
841
- setProductFilterObjContext({ ...tempfetchproductsfilerobjcontext });
842
- filterrouting(tempfetchproductsfilerobjcontext);
843
- }}
844
- styles={langdetect == 'en' ? defaultstyles : defaultstylestranslated}
845
- placeholder={lang.choosecountry}
846
- isSearchable={true}
847
- />
848
- )}
849
- </div>
850
- <div class="col-lg-12 mb-3 p-0">
851
- {fetchTabexStatesQueryContext?.isFetching && (
852
- <div className="w-100 allcentered mt-1">
853
- <CircularProgress color="#000" width="20px" height="20px" duration="1s" />
854
- </div>
855
- )}
856
-
857
- {!fetchTabexStatesQueryContext?.isFetching && fetchTabexStatesQueryContext?.isSuccess && (
858
- <Select
859
- options={fetchTabexStatesQueryContext?.data?.data?.states}
860
- getOptionLabel={(option) => {
861
- var crname = '';
862
- if (langdetect == 'en') {
863
- crname = option.name;
864
- } else if (langdetect == 'ar') {
865
- if (option.name_ar != null) {
866
- crname = option.name_ar;
867
- } else {
868
- crname = option.name;
869
- }
870
- }
871
- return crname;
872
- }}
873
- getOptionValue={(option) => option.id}
874
- value={fetchTabexStatesQueryContext?.data?.data?.states.filter((option) => option.id == ProductFilterObjContext.stateid)}
875
- onChange={(option) => {
876
- var tempFetchTabexStatesPayloadobjContext = { ...FetchTabexStatesPayloadobjContext };
877
- tempFetchTabexStatesPayloadobjContext.functype = 'cities';
878
- tempFetchTabexStatesPayloadobjContext.state_id = option.id;
879
- setFetchTabexStatesPayloadobjContext({ ...tempFetchTabexStatesPayloadobjContext });
880
-
881
- var tempfetchproductsfilerobjcontext = { ...ProductFilterObjContext };
882
- tempfetchproductsfilerobjcontext.stateid = option.id;
883
- tempfetchproductsfilerobjcontext.page = 0;
884
- setProductFilterObjContext({ ...tempfetchproductsfilerobjcontext });
885
- filterrouting(tempfetchproductsfilerobjcontext);
886
- }}
887
- styles={langdetect == 'en' ? defaultstyles : defaultstylestranslated}
888
- placeholder={lang.choosestategov}
889
- isSearchable={true}
890
- />
891
- )}
892
- </div>
893
- <div class="col-lg-12 mb-3 p-0">
894
- {fetchTabexCitiesQueryContext?.isFetching && (
895
- <div className="w-100 allcentered mt-1">
896
- <CircularProgress color="#000" width="20px" height="20px" duration="1s" />
897
- </div>
898
- )}
899
-
900
- {!fetchTabexCitiesQueryContext?.isFetching && fetchTabexCitiesQueryContext?.isSuccess && (
901
- <Select
902
- options={fetchTabexCitiesQueryContext?.data?.data?.cities}
903
- getOptionLabel={(option) => {
904
- var crname = '';
905
- if (langdetect == 'en') {
906
- crname = option.name;
907
- } else if (langdetect == 'ar') {
908
- if (option.name_ar != null) {
909
- crname = option.name_ar;
910
- } else {
911
- crname = option.name;
912
- }
913
- }
914
- return crname;
915
- }}
916
- getOptionValue={(option) => option.id}
917
- value={fetchTabexCitiesQueryContext?.data?.data?.cities.filter((option) => option.id == ProductFilterObjContext.cityid)}
918
- onChange={(option) => {
919
- var tempfetchproductsfilerobjcontext = { ...ProductFilterObjContext };
920
- tempfetchproductsfilerobjcontext.cityid = option.id;
921
- tempfetchproductsfilerobjcontext.page = 0;
922
- setProductFilterObjContext({ ...tempfetchproductsfilerobjcontext });
923
- filterrouting(tempfetchproductsfilerobjcontext);
924
- }}
925
- styles={langdetect == 'en' ? defaultstyles : defaultstylestranslated}
926
- placeholder={lang.choosecity}
927
- isSearchable={true}
928
- />
929
- )}
930
- </div>
931
- </div>
932
- </div>
933
- </div>
934
- );
935
- };
936
- return (
937
- <div
938
- className={sectionproperties.filterdirection == 'Horizontal' ? 'col-lg-12 p-0 w-100 filter mt-md-0 ' : 'col-lg-12 p-0 w-100 filter mt-md-0 d-md-none'}
939
- style={{ marginTop: sectionproperties.filtersection_mt + 'px', minHeight: sectionproperties.filterminheight == 0 ? 'auto' : sectionproperties.filterminheight + 'vh' }}
940
- >
941
- {sectionproperties.filterdirection == 'Horizontal' && (
942
- <div class="row m-0 w-100">
943
- <div className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex justify-content-start mb-3">
944
- <p className={langdetect == 'en' ? filter_cssstyles.collapsetitle + ' m-0 p-0 ' : filter_cssstyles.collapsetitle + ' m-0 p-0 text-right'}>
945
- {langdetect == 'en' ? sectionproperties.filtercollectiontitle_en : sectionproperties.filtercollectiontitle_ar}
946
- </p>
947
- </div>
948
- <div class="col-lg-12 p-0 mb-4">
949
- <ScrollMenu transitionBehavior={'auto'} wrapperClassName={''} itemClassName={'filtercard'} scrollContainerClassName={'scrollmenuclasssubscrollbar'}>
950
- {instcollections.map((item, index) => {
951
- return (
952
- <div
953
- className={filter_cssstyles.timeline_text + ' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-12 w-100 cursor-pointer '}
954
- onClick={() => {
955
- setCollectionFilterFunc(item.collectionid);
956
- }}
957
- style={{
958
- color: item.isfilterselected == true ? 'red' : '',
959
- }}
960
- >
961
- <div class="col-lg-12 allcentered mb-2">
962
- <div
963
- style={{
964
- width: 200,
965
- height: 200,
966
- }}
967
- >
968
- <Imagekitimagecomp
969
- urlEndpoint={ikimagecredcontext?.ikimageendpoint}
970
- publicKey={ikimagecredcontext?.ikimagepublickey}
971
- path={'/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + item.collectionlogo}
972
- style={{
973
- width: '100%',
974
- height: '100%',
975
- objectFit: 'contain',
976
- }}
977
- loading="lazy"
978
- />
979
- </div>
980
- </div>
981
- <div class="col-lg-12 allcentered">
982
- <p class={' m-0 p-0 '}>{langdetect == 'en' ? item.title_en : item.title_ar}</p>
983
- </div>
984
- </div>
985
- );
986
- })}
987
- </ScrollMenu>
988
- </div>
989
- </div>
990
- )}
991
- {sectionproperties.filterdirection == 'Vertical' && (
992
- <div
993
- className={`${filterstyles.filterslider_container}` + ' pb-md-5 '}
994
- id="filterslider"
995
- style={{
996
- background: sectionproperties.filter_backgroundcolor,
997
- borderRadius: sectionproperties.filter_borderBottomLeftRadius + 'px',
998
- }}
999
- >
1000
- <div className={filter_cssstyles.filteraccordion + ' row m-0 w-100 pt-2 pb-3 filter-accordion '}>
1001
- <div className="col-lg-9 col-md-9 col-sm-9 d-none align-items-center d-md-flex">
1002
- <p
1003
- className="m-0 p-0 font-16 font-weight-600"
1004
- style={{
1005
- color: sectionproperties.filter_titlecolor,
1006
- fontSize: sectionproperties.filter_titlefontsize + 'px',
1007
- fontWeight: sectionproperties.filter_titlefontweight,
1008
- textTransform: sectionproperties.filter_titletextransform,
1009
- }}
1010
- >
1011
- {langdetect == 'en' ? 'Filter' : 'فلترة'}
1012
- </p>
1013
- </div>
1014
- <div className="col-lg-3 col-md-3 col-sm-3 d-none d-md-flex align-items-center justify-content-end p-0">
1015
- <div
1016
- className={`${filterstyles.close_menu_icon_cont} ${filter_cssstyles.close_menu_icon_cont}` + ' d-none d-md-flex align-items-center justify-content-center '}
1017
- onClick={() => {
1018
- var element = document.getElementById('filterslider');
1019
- element.classList.remove(filterstyles.filterslider_container_opened);
1020
- }}
1021
- >
1022
- <i className="h-100 d-flex align-items-center justify-content-center">
1023
- <IoMdClose
1024
- size={sectionproperties.closeSlider_fontSize}
1025
- style={{
1026
- color: sectionproperties.closeSlider_color,
1027
- }}
1028
- />
1029
- </i>
1030
- </div>
1031
- </div>
1032
- {sectionproperties.otherfilters == 'Show' && (
1033
- <div class="row m-0 w-100">
1034
- <div class="col-lg-12 d-flex justify-content-start">
1035
- <p
1036
- className="m-0 p-0 font-16 font-weight-600"
1037
- style={{
1038
- color: sectionproperties.filter_titlecolor,
1039
- fontSize: sectionproperties.filter_titlefontsize + 'px',
1040
- fontWeight: sectionproperties.filter_titlefontweight,
1041
- textTransform: sectionproperties.filter_titletextransform,
1042
- }}
1043
- >
1044
- {langdetect == 'en' ? 'Sort By' : 'ترتيب حسب'}
1045
- </p>
1046
- </div>
1047
- <div className="col-lg-12">
1048
- <hr className="mt-2 mb-3" />
1049
- </div>
1050
- {otherfilters.map((item, index) => {
1051
- return (
1052
- <div className="col-lg-12 pl-4 pr-4">
1053
- {/* <div class="dropdowncontainer mr-2 mt-sm-3">
1054
- {/* checked={checked}
1055
- <input class="dropdown" type="checkbox" id="dropdown" name="dropdown" hidden />
1056
- <label
1057
- // onClick={() => {
1058
- // setChecked(!checked);
1059
- // }}
1060
- className={' d-flex justify-content-center align-items-center for-dropdown'}
1061
- for="dropdown"
1062
- style={{ cursor: 'pointer' }}
1063
- >
1064
- {sortby}
1065
- {/* <i className="bx bx-chevron-down ml-2" style={{ fontSize: '20px' }}></i>
1066
- </label>
1067
- <div class="dropdownmenu">
1068
- {item.filterarray.map((valueitem, valueindex) => {
1069
- var ischecked = false;
1070
- if (item.payloadvalue == 'sortprice') {
1071
- if (valueitem.value == ProductFilterObjContext.sortprice) {
1072
- ischecked = true;
1073
- }
1074
- } else if (item.payloadvalue == 'sortdates') {
1075
- if (valueitem.value == ProductFilterObjContext.sortdates) {
1076
- ischecked = true;
1077
- }
1078
- }
1079
- return (
1080
- <p
1081
- class="dropdownlink"
1082
- onClick={() => {
1083
- // setfilterfunc(valueitem.valueid, valueindex, index, 'assign');
1084
- var tempfetchproductsfilerobjcontext = { ...ProductFilterObjContext };
1085
- if (tempfetchproductsfilerobjcontext[item.payloadvalue] == valueitem.value) {
1086
- tempfetchproductsfilerobjcontext[item.payloadvalue] = '';
1087
- } else {
1088
- tempfetchproductsfilerobjcontext[item.payloadvalue] = valueitem.value;
1089
- }
1090
- tempfetchproductsfilerobjcontext.page = 0;
1091
- setProductFilterObjContext({ ...tempfetchproductsfilerobjcontext });
1092
- routingcountext(
1093
- StaticPagesLinksContext.GeneralProductsComponent,
1094
- true,
1095
- encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)),
1096
- );
1097
- setSortby(valueitem.name);
1098
- }}
1099
- >
1100
- {valueitem.name}
1101
- </p>
1102
- );
1103
- })}
1104
- </div>
1105
- </div> */}
1106
- <Accordion allowMultipleExpanded={true} allowZeroExpanded={true} preExpanded={[0, 1, 2, 3]} style={{ width: '100%' }}>
1107
- <AccordionItem uuid={index}>
1108
- <AccordionItemHeading>
1109
- <AccordionItemButton>
1110
- <div className={filter_cssstyles.titlecontainer + ' row m-0 p-0 mb-2 pl-md-3 pr-md-3 '}>
1111
- <div className="col-lg-10 col-md-10 col-sm-10 p-0">
1112
- <p
1113
- className={
1114
- langdetect == 'en'
1115
- ? filter_cssstyles.collapsetitle + ' m-0 p-0 collapsetitle '
1116
- : filter_cssstyles.collapsetitle + ' collapsetitle m-0 p-0 text-right'
1117
- }
1118
- >
1119
- {item.name}
1120
- </p>
1121
- </div>
1122
- <div className="col-lg-2 col-md-2 col-sm-2 p-0">
1123
- <AccordionItemState>
1124
- {(state) => {
1125
- if (state.expanded == true) {
1126
- return (
1127
- <i
1128
- className={
1129
- filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
1130
- }
1131
- >
1132
- <FiChevronDown />
1133
- </i>
1134
- );
1135
- } else {
1136
- return (
1137
- <i className={filter_cssstyles.collapsetitle + ' h-100 d-flex align-items-center justify-content-end '}>
1138
- <FiChevronUp />
1139
- </i>
1140
- );
1141
- }
1142
- }}
1143
- </AccordionItemState>
1144
- </div>
1145
- </div>
1146
- </AccordionItemButton>
1147
- </AccordionItemHeading>
1148
- <AccordionItemPanel className="p-0">
1149
- <div className="row mt-0 mb-2 ml-0 mr-0 d-lg-flex">
1150
- <div className={'col-lg-12'}>
1151
- <div
1152
- className={
1153
- langdetect == 'en'
1154
- ? `${filterstyles.timeline}` + ' p-sm-0 '
1155
- : `${filterstyles.timeline} ${filterstyles.timelinetrans}` + ' p-sm-0 '
1156
- }
1157
- >
1158
- {item.filterarray.map((valueitem, valueindex) => {
1159
- var ischecked = false;
1160
- if (item.payloadvalue == 'sortprice') {
1161
- if (valueitem.value == ProductFilterObjContext.sortprice) {
1162
- ischecked = true;
1163
- }
1164
- } else if (item.payloadvalue == 'sortdates') {
1165
- if (valueitem.value == ProductFilterObjContext.sortdates) {
1166
- ischecked = true;
1167
- }
1168
- }
1169
- return (
1170
- <div
1171
- className={
1172
- `${filterstyles.border_left_line} ${filterstyles.timelineinnercont} ${filter_cssstyles.timelineinnercont}
1173
- ${ischecked ? `${filter_cssstyles.timelineinnercont_active} ${filterstyles.timelineinnercont_active}` : ''}
1174
-
1175
- ` + ' d-flex align-items-start pb-3 '
1176
- }
1177
- onClick={() => {
1178
- var tempfetchproductsfilerobjcontext = { ...ProductFilterObjContext };
1179
- if (tempfetchproductsfilerobjcontext[item.payloadvalue] == valueitem.value) {
1180
- tempfetchproductsfilerobjcontext[item.payloadvalue] = '';
1181
- } else {
1182
- tempfetchproductsfilerobjcontext[item.payloadvalue] = valueitem.value;
1183
- }
1184
- tempfetchproductsfilerobjcontext.page = 0;
1185
- setProductFilterObjContext({ ...tempfetchproductsfilerobjcontext });
1186
-
1187
- filterrouting(tempfetchproductsfilerobjcontext);
1188
- }}
1189
- >
1190
- <div>
1191
- <div
1192
- className={
1193
- ` ${ischecked ? filter_cssstyles.btn_item_active : ''} ${filterstyles.btn_item} ${
1194
- filter_cssstyles.btn_item
1195
- }` + ' mb-2 d-flex align-items-center '
1196
- }
1197
- >
1198
- <i className="h-100 d-flex align-items-center"></i>
1199
- </div>
1200
- </div>
1201
- <div className={langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'}>
1202
- <p
1203
- className={`${filterstyles.timeline_text} ${filter_cssstyles.timeline_text}` + ' m-0 p-0 '}
1204
- style={{
1205
- color: ischecked ? sectionproperties.activecat_color : '',
1206
- }}
1207
- >
1208
- {valueitem.name}
1209
- </p>
1210
- </div>
1211
- </div>
1212
- );
1213
- })}
1214
- </div>
1215
- </div>
1216
- </div>
1217
- </AccordionItemPanel>
1218
- </AccordionItem>
1219
- </Accordion>
1220
- </div>
1221
- );
1222
- })}
1223
- {sectionproperties.showfilterbyrating == 'Show' && (
1224
- <div className="col-lg-12 pl-4 pr-4">
1225
- <div className={filter_cssstyles.titlecontainer + ' row m-0 p-0 mb-2 pl-md-3 pr-md-3 '}>
1226
- <div className="col-lg-12 col-md-12 col-sm-12 p-0 mb-3">
1227
- <p
1228
- className={
1229
- langdetect == 'en'
1230
- ? filter_cssstyles.collapsetitle + ' m-0 p-0 collapsetitle '
1231
- : filter_cssstyles.collapsetitle + ' collapsetitle m-0 p-0 text-right'
1232
- }
1233
- >
1234
- {langdetect == 'en' ? 'Ratings' : 'التقييمات'}
1235
- </p>
1236
- </div>
1237
- <div className="col-lg-12 col-md-12 col-sm-12 mb-4">
1238
- <InputRange
1239
- draggableTrack={true}
1240
- formatLabel={(value) => `${value}`}
1241
- maxValue={5}
1242
- minValue={0}
1243
- value={raterangevalue}
1244
- onChange={(value) => {
1245
- setraterangevalue({ ...value });
1246
- }}
1247
- />
1248
- </div>
1249
- </div>
1250
- </div>
1251
- )}
1252
- </div>
1253
- )}
1254
- <div className="col-lg-9 col-md-9 col-sm-9 d-flex align-items-center d-md-none">
1255
- <p
1256
- className="m-0 p-0 font-16 font-weight-600"
1257
- style={{
1258
- color: sectionproperties.filter_titlecolor,
1259
- fontSize: sectionproperties.filter_titlefontsize + 'px',
1260
- fontWeight: sectionproperties.filter_titlefontweight,
1261
- textTransform: sectionproperties.filter_titletextransform,
1262
- }}
1263
- >
1264
- {langdetect == 'en' ? 'Filter' : 'فلترة'}
1265
- </p>
1266
- </div>
1267
- <div className="col-lg-3 col-md-3 col-sm-3 d-flex d-md-none align-items-center justify-content-end p-0">
1268
- <div
1269
- className={`${filterstyles.close_menu_icon_cont} ${filter_cssstyles.close_menu_icon_cont}` + ' d-none d-md-flex align-items-center justify-content-center '}
1270
- onClick={() => {
1271
- var element = document.getElementById('filterslider');
1272
- element.classList.remove(filterstyles.filterslider_container_opened);
1273
- }}
1274
- >
1275
- <i className="h-100 d-flex align-items-center justify-content-center">
1276
- <IoMdClose
1277
- size={sectionproperties.closeSlider_fontSize}
1278
- style={{
1279
- color: sectionproperties.closeSlider_color,
1280
- }}
1281
- />
1282
- </i>
1283
- </div>
1284
- </div>
1285
- <div className="col-lg-12">
1286
- <hr className="mt-2 mb-3" />
1287
- </div>
1288
- <div className={filter_cssstyles.filteraccordion + ' col-lg-12 filter-accordion p-md-0 pl-4 pr-4 '}>
1289
- {sectionproperties.showcountriesfilter == 'Show' && Countriesfilter()}
1290
- {sectionproperties.filterType == 'All' && sectionproperties.showcategoriesfilter == 'Show' && <div class="row m-0 w-100">{CategoriesFilter()}</div>}
1291
- {sectionproperties.filterType == 'Collections' && sectionproperties.showcategoriesfilter == 'Show' && <div class="row m-0 w-100">{CollectionsFilter()}</div>}
1292
- {sectionproperties.showvariantsfilter == 'Show' && InstFilters()}
1293
- </div>
1294
- </div>
1295
- </div>
1296
- )}
1297
- <div className="col-lg-12">
1298
- <Offcanvas
1299
- show={props?.openFilterSlider}
1300
- onHide={() => {
1301
- props.setopenFilterSlider(false);
1302
- }}
1303
- placement="end"
1304
- scroll={true}
1305
- style={{
1306
- minWidth: '200px',
1307
- background: sectionproperties.filter_backgroundcolor,
1308
- borderRadius: sectionproperties.filter_borderBottomLeftRadius + 'px',
1309
- }}
1310
- backdrop={true}
1311
- >
1312
- <Offcanvas.Header>
1313
- <Offcanvas.Title>
1314
- <div className="row m-0 w-100 mt-2">
1315
- <div className="col-lg-9 col-md-9 col-sm-9 d-none align-items-center d-md-flex">
1316
- <p
1317
- className="m-0 p-0 font-16 font-weight-600"
1318
- style={{
1319
- color: sectionproperties.filter_titlecolor,
1320
- fontSize: sectionproperties.filter_titlefontsize + 'px',
1321
- fontWeight: sectionproperties.filter_titlefontweight,
1322
- textTransform: sectionproperties.filter_titletextransform,
1323
- }}
1324
- >
1325
- {langdetect == 'en' ? 'Filter' : 'فلترة'}
1326
- </p>
1327
- </div>
1328
- <div className="col-lg-3 col-md-3 col-sm-3 d-none d-md-flex align-items-center justify-content-end p-0">
1329
- <div
1330
- className={`${filterstyles.close_menu_icon_cont} ${filter_cssstyles.close_menu_icon_cont}` + ' d-none d-md-flex align-items-center justify-content-center '}
1331
- onClick={() => {
1332
- props.setopenFilterSlider(false);
1333
- }}
1334
- >
1335
- <i className="h-100 d-flex align-items-center justify-content-center">
1336
- <IoMdClose
1337
- size={sectionproperties.closeSlider_fontSize}
1338
- style={{
1339
- color: sectionproperties.closeSlider_color,
1340
- }}
1341
- />
1342
- </i>
1343
- </div>
1344
- </div>
1345
- <div class="col-lg-12">
1346
- <hr class="mt-2 mb-2" />
1347
- </div>
1348
- </div>
1349
- </Offcanvas.Title>
1350
- </Offcanvas.Header>
1351
- <Offcanvas.Body>
1352
- <div
1353
- className={' pb-md-5 '}
1354
- style={{
1355
- background: sectionproperties.filter_backgroundcolor,
1356
- borderRadius: sectionproperties.filter_borderBottomLeftRadius + 'px',
1357
- }}
1358
- >
1359
- <div className={filter_cssstyles.filteraccordion + ' row m-0 w-100 pt-2 pb-3 filter-accordion '}>
1360
- {sectionproperties.otherfilters == 'Show' &&
1361
- otherfilters.map((item, index) => {
1362
- return (
1363
- <>
1364
- <Accordion allowMultipleExpanded={true} allowZeroExpanded={true} preExpanded={[0, 1, 2, 3]} style={{ width: '100%' }}>
1365
- <AccordionItem uuid={index}>
1366
- <AccordionItemHeading>
1367
- <AccordionItemButton>
1368
- <div className={filter_cssstyles.titlecontainer + ' row m-0 p-0 mb-2 pl-md-3 pr-md-3 '}>
1369
- <div className="col-lg-10 col-md-10 col-sm-10 p-0">
1370
- <p
1371
- className={
1372
- langdetect == 'en'
1373
- ? filter_cssstyles.collapsetitle + ' m-0 p-0 '
1374
- : filter_cssstyles.collapsetitle + ' m-0 p-0 text-right'
1375
- }
1376
- >
1377
- {item.name}
1378
- </p>
1379
- </div>
1380
- <div className="col-lg-2 col-md-2 col-sm-2 p-0">
1381
- <AccordionItemState>
1382
- {(state) => {
1383
- if (state.expanded == true) {
1384
- return (
1385
- <i className={filter_cssstyles.collapsetitle + ' h-100 d-flex align-items-center justify-content-end '}>
1386
- <FiChevronDown />
1387
- </i>
1388
- );
1389
- } else {
1390
- return (
1391
- <i className={filter_cssstyles.collapsetitle + ' h-100 d-flex align-items-center justify-content-end '}>
1392
- <FiChevronUp />
1393
- </i>
1394
- );
1395
- }
1396
- }}
1397
- </AccordionItemState>
1398
- </div>
1399
- </div>
1400
- </AccordionItemButton>
1401
- </AccordionItemHeading>
1402
- <AccordionItemPanel className="p-0">
1403
- <div className="row mt-0 mb-2 ml-0 mr-0 d-lg-flex">
1404
- <div className={'col-lg-12'}>
1405
- <div
1406
- className={
1407
- langdetect == 'en'
1408
- ? `${filterstyles.timeline}` + ' p-sm-0 '
1409
- : `${filterstyles.timeline} ${filterstyles.timelinetrans}` + ' p-sm-0 '
1410
- }
1411
- >
1412
- {item.filterarray.map((valueitem, valueindex) => {
1413
- var ischecked = false;
1414
- if (item.payloadvalue == 'sortprice') {
1415
- if (valueitem.value == ProductFilterObjContext.sortprice) {
1416
- ischecked = true;
1417
- }
1418
- } else if (item.payloadvalue == 'sortdates') {
1419
- if (valueitem.value == ProductFilterObjContext.sortdates) {
1420
- ischecked = true;
1421
- }
1422
- }
1423
- return (
1424
- <div
1425
- className={
1426
- `${filterstyles.border_left_line} ${filterstyles.timelineinnercont} ${filter_cssstyles.timelineinnercont}
1427
- ${ischecked ? `${filter_cssstyles.timelineinnercont_active} ${filterstyles.timelineinnercont_active}` : ''}
1428
-
1429
- ` + ' d-flex align-items-start pb-3 '
1430
- }
1431
- onClick={() => {
1432
- // setfilterfunc(valueitem.valueid, valueindex, index, 'assign');
1433
- var tempfetchproductsfilerobjcontext = { ...ProductFilterObjContext };
1434
- if (tempfetchproductsfilerobjcontext[item.payloadvalue] == valueitem.value) {
1435
- tempfetchproductsfilerobjcontext[item.payloadvalue] = '';
1436
- } else {
1437
- tempfetchproductsfilerobjcontext[item.payloadvalue] = valueitem.value;
1438
- }
1439
- setProductFilterObjContext({ ...tempfetchproductsfilerobjcontext });
1440
- }}
1441
- >
1442
- <div>
1443
- <div
1444
- className={
1445
- ` ${ischecked ? filter_cssstyles.btn_item_active : ''} ${filterstyles.btn_item} ${
1446
- filter_cssstyles.btn_item
1447
- }` + ' mb-2 d-flex align-items-center '
1448
- }
1449
- >
1450
- <i className="h-100 d-flex align-items-center"></i>
1451
- </div>
1452
- </div>
1453
- <div className={langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'}>
1454
- <p
1455
- className={`${filterstyles.timeline_text} ${filter_cssstyles.timeline_text}` + ' m-0 p-0 '}
1456
- style={{
1457
- color: ischecked ? sectionproperties.activecat_color : '',
1458
- }}
1459
- >
1460
- {valueitem.name}
1461
- </p>
1462
- </div>
1463
- </div>
1464
- );
1465
- })}
1466
- </div>
1467
- </div>
1468
- </div>
1469
- </AccordionItemPanel>
1470
- </AccordionItem>
1471
- </Accordion>
1472
- <hr className="mt-3 mb-3" />
1473
- </>
1474
- );
1475
- })}
1476
- {sectionproperties.otherfilters == 'Show' && (
1477
- <div className="col-lg-12">
1478
- <hr className="mt-2 mb-3" />
1479
- </div>
1480
- )}
1481
- <div className={filter_cssstyles.filteraccordion + ' col-lg-12 filter-accordion p-md-0 '}>
1482
- {sectionproperties.showcountriesfilter == 'Show' && Countriesfilter()}
1483
- {sectionproperties.filterType == 'All' && sectionproperties.showcategoriesfilter == 'Show' && <div class="row m-0 w-100">{CategoriesFilter()}</div>}
1484
- {sectionproperties.filterType == 'Collections' && sectionproperties.showcategoriesfilter == 'Show' && <div class="row m-0 w-100">{CollectionsFilter()}</div>}
1485
- {sectionproperties.showvariantsfilter == 'Show' && InstFilters()}
1486
- </div>
1487
- </div>
1488
- </div>
1489
- </Offcanvas.Body>
1490
- </Offcanvas>
1491
- </div>
1492
- </div>
1493
- );
1494
- };
1495
- export default Filter;