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,1271 +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 { FiChevronDown } from '@react-icons/all-files/fi/FiChevronDown';
8
- import { FiChevronUp } from '@react-icons/all-files/fi/FiChevronUp';
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, selectcustomStyles, selectcustomStylesTranslated } from '../../../StylesJS/Customstyles.js';
14
- import { CircularProgress, Messaging } from 'react-cssfx-loading';
15
- import formstyles from '../../../styles/general/form.module.css';
16
-
17
- const Select = React.lazy(() => import('react-select'));
18
-
19
- const Filter = (props) => {
20
- const lang = props.actions.lang;
21
- const langdetect = props.actions.langdetect;
22
- const productfiltercontext = props.actions.productfiltercontext;
23
- const setproductfiltercontext = props.actions.setproductfiltercontext;
24
- const ProductFilterObjContext = props.actions.ProductFilterObjContext;
25
- const setProductFilterObjContext = props.actions.setProductFilterObjContext;
26
- const authdetailsContext = props.actions.authdetailsContext;
27
- const fetchproductoptionsQueryContext = props.actions.fetchproductoptionsQueryContext;
28
- const fetchCategoriesQueryContext = props.actions.fetchCategoriesQueryContext;
29
- const routingcountext = props.actions.routingcountext;
30
- const fetchcollectionsQueryContext = props.actions.fetchcollectionsQueryContext;
31
- const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
32
- const ikimagecredcontext = props.actions.ikimagecredcontext;
33
- const [pricevalue, setpricevalue] = useState({ min: 0, max: 10000 });
34
- const [productfeatuesarr, setproductfeatuesarr] = useState([]);
35
-
36
- const fetchTabexCountriesQueryContext = props.actions.fetchTabexCountriesQueryContext;
37
- const FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
38
- const setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
39
-
40
- const fetchTabexCitiesQueryContext = props.actions.fetchTabexCitiesQueryContext;
41
- const fetchTabexStatesQueryContext = props.actions.fetchTabexStatesQueryContext;
42
- const FetchTabexStatesPayloadobjContext = props.actions.FetchTabexStatesPayloadobjContext;
43
- const setFetchTabexStatesPayloadobjContext = props.actions.setFetchTabexStatesPayloadobjContext;
44
- const fetchProductFeaturesQueryContext = props.actions.fetchProductFeaturesQueryContext;
45
-
46
- const [sectionproperties, setsectionproperties] = useState('');
47
- // const [instfilters, setinstfilters] = useState([...authdetailsContext.instinfo.instfilters]);
48
- const [instfilters, setinstfilters] = useState([]);
49
- const [collectionstobevisible, setcollectionstobevisible] = useState([]);
50
- const [instcollections, setinstcollections] = useState([]);
51
- const [instcategories, setinstcategories] = useState([]);
52
- // const [sortby, setSortby] = useState('Sort by');
53
- const [raterangevalue, setraterangevalue] = useState({ min: 0, max: 5 });
54
- const timeoutRef = React.useRef(null);
55
- const [sortbycontext, setsortbycontext] = useState('');
56
-
57
- const [otherfilters, setotherfilters] = useState([
58
- {
59
- payloadvalue: 'sortprice',
60
- name: lang.price,
61
- filterarray: [
62
- { name: lang.pricehightolow, value: 'hightolow', isfilterselected: false },
63
- { name: lang.pricelowtohigh, value: 'lowtohigh', isfilterselected: false },
64
- ],
65
- },
66
- {
67
- payloadvalue: 'sortdates',
68
-
69
- name: lang.dates,
70
- filterarray: [
71
- { name: lang.recent, value: 'recent', isfilterselected: false },
72
- { name: lang.oldest, value: 'old', isfilterselected: false },
73
- ],
74
- },
75
- ]);
76
- useEffect(() => {
77
- filterupdater();
78
- }, []);
79
- useEffect(() => {
80
- if (fetchproductoptionsQueryContext.isSuccess) {
81
- setinstfilters([...fetchproductoptionsQueryContext?.data?.data?.productoptions]);
82
- }
83
- }, [fetchproductoptionsQueryContext.isSuccess]);
84
- useEffect(() => {
85
- if (fetchCategoriesQueryContext.isSuccess) {
86
- setinstcategories([...fetchCategoriesQueryContext?.data?.data?.categories]);
87
- }
88
- }, [fetchCategoriesQueryContext.isSuccess]);
89
- useEffect(() => {
90
- if (fetchcollectionsQueryContext.isSuccess) {
91
- setinstcollections([...fetchcollectionsQueryContext?.data?.data?.collections]);
92
- }
93
- }, [fetchcollectionsQueryContext.isSuccess]);
94
- // useEffect(() => {
95
- // // setinstfilters([...authdetailsContext.instinfo.instfilters]);
96
- // // setinstcollections([...authdetailsContext.instinfo.instcollections]);
97
- // // setinstcategories([...authdetailsContext?.instinfo?.instcategories]);
98
- // }, [authdetailsContext]);
99
- useEffect(() => {
100
- if (props.sectionpropertiesprops != undefined && props.sectionpropertiesprops.length != 0) {
101
- setsectionproperties(props.sectionpropertiesprops);
102
- }
103
- }, [props.sectionpropertiesprops]);
104
- useEffect(() => {
105
- filterupdater();
106
- }, [ProductFilterObjContext]);
107
- React.useEffect(() => {
108
- if (timeoutRef.current !== null) {
109
- clearTimeout(timeoutRef.current);
110
- }
111
-
112
- timeoutRef.current = setTimeout(() => {
113
- if (raterangevalue.min != 0 || raterangevalue.max != 5) {
114
- var tempfetchproductsfilerobjcontext = { ...ProductFilterObjContext };
115
- tempfetchproductsfilerobjcontext.minrate = raterangevalue.min;
116
- tempfetchproductsfilerobjcontext.maxrate = raterangevalue.max;
117
- tempfetchproductsfilerobjcontext.page = 0;
118
- setProductFilterObjContext({ ...tempfetchproductsfilerobjcontext });
119
- // routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
120
- }
121
- }, 500);
122
- }, [raterangevalue]);
123
- useEffect(() => {
124
- if (fetchCategoriesQueryContext.isSuccess && fetchcollectionsQueryContext.isSuccess) {
125
- if (sectionproperties?.filterretreivetype == 'Depend on chosen parent group') {
126
- if (ProductFilterObjContext?.collections != undefined && ProductFilterObjContext?.collections != null && Array.isArray(ProductFilterObjContext?.collections)) {
127
- var collectiontobevisible = [];
128
- var parentidsfound = [];
129
- if (ProductFilterObjContext.ProductFetchingType == 'Parent Collection') {
130
- parentidsfound = ProductFilterObjContext?.collections;
131
- } else if (ProductFilterObjContext.ProductFetchingType == 'Category') {
132
- instcategories?.forEach(function (catitem, catindex) {
133
- ProductFilterObjContext?.collections?.forEach(function (colitem2, colindex2) {
134
- if (catitem.categoryid == colitem2) {
135
- catitem?.parentcolletions?.forEach(function (parentcolitem, parentcolindex) {
136
- parentidsfound.push(parentcolitem.parentcollectionid);
137
- });
138
- }
139
- });
140
- });
141
- } else {
142
- instcategories?.forEach(function (catitem, catindex) {
143
- catitem?.parentcolletions?.forEach(function (parentcolitem, parentcolindex) {
144
- parentcolitem?.collections?.forEach(function (colitem, colindex) {
145
- ProductFilterObjContext?.collections?.forEach(function (colitem2, colindex2) {
146
- if (colitem.collectionid == colitem2) {
147
- parentidsfound.push(parentcolitem.parentcollectionid);
148
- }
149
- });
150
- });
151
- });
152
- });
153
- }
154
-
155
- parentidsfound = parentidsfound.filter((val, id, array) => array.indexOf(val) == id);
156
-
157
- if (parentidsfound?.length != 0) {
158
- instcategories?.forEach(function (catitem, catindex) {
159
- catitem?.parentcolletions?.forEach(function (parentcolitem, parentcolindex) {
160
- parentidsfound?.forEach(function (parentidfounditem, parentidfoundindex) {
161
- if (parentidfounditem == parentcolitem?.parentcollectionid) {
162
- parentcolitem?.collections?.forEach(function (colitem, colindex) {
163
- var iscolexists = false;
164
- collectiontobevisible?.forEach(function (colitemex, colindexex) {
165
- if (colitemex.collectionid == colitem.collectionid) {
166
- iscolexists = true;
167
- }
168
- });
169
- if (iscolexists == false) {
170
- collectiontobevisible.push(colitem);
171
- }
172
- });
173
- }
174
- });
175
- });
176
- });
177
-
178
- if (collectiontobevisible?.length != 0) {
179
- setcollectionstobevisible(collectiontobevisible);
180
- } else {
181
- setcollectionstobevisible(instcollections);
182
- }
183
- } else {
184
- setcollectionstobevisible(instcollections);
185
- }
186
- } else {
187
- setcollectionstobevisible(instcollections);
188
- }
189
- } else {
190
- setcollectionstobevisible(instcollections);
191
- }
192
- }
193
- }, [ProductFilterObjContext, fetchCategoriesQueryContext.isSuccess, fetchcollectionsQueryContext.isSuccess, instcategories, instcollections]);
194
- useEffect(() => {
195
- if (productfeatuesarr.length != 0) {
196
- var tempfetchproductsfilerobjcontext = { ...ProductFilterObjContext };
197
- tempfetchproductsfilerobjcontext.prod_featruesar = productfeatuesarr;
198
- setProductFilterObjContext({ ...tempfetchproductsfilerobjcontext });
199
- filterrouting(tempfetchproductsfilerobjcontext);
200
- }
201
- }, [productfeatuesarr]);
202
- useEffect(() => {
203
- if (fetchTabexStatesQueryContext.isSuccess) {
204
- if (ProductFilterObjContext.stateid != undefined && ProductFilterObjContext.stateid != null && ProductFilterObjContext.stateid != '' && ProductFilterObjContext.stateid != 'all') {
205
- var tempFetchTabexStatesPayloadobjContext = { ...FetchTabexStatesPayloadobjContext };
206
- tempFetchTabexStatesPayloadobjContext.functype = 'cities';
207
- tempFetchTabexStatesPayloadobjContext.state_id = ProductFilterObjContext.stateid;
208
- setFetchTabexStatesPayloadobjContext({ ...tempFetchTabexStatesPayloadobjContext });
209
- }
210
- }
211
- }, [fetchTabexStatesQueryContext.isSuccess]);
212
- const filterupdater = () => {
213
- setTimeout(() => {
214
- var tempFetchQueriesEngineContext = { ...FetchQueriesEngineContext };
215
- tempFetchQueriesEngineContext.fetchtabexcountries = true;
216
- setFetchQueriesEngineContext(tempFetchQueriesEngineContext);
217
- }, 100);
218
- if (ProductFilterObjContext.countryid != undefined && ProductFilterObjContext.countryid != null && ProductFilterObjContext.countryid != '' && ProductFilterObjContext.countryid != 'all') {
219
- var tempFetchTabexStatesPayloadobjContext = { ...FetchTabexStatesPayloadobjContext };
220
- tempFetchTabexStatesPayloadobjContext.functype = 'states';
221
- tempFetchTabexStatesPayloadobjContext.country_id = ProductFilterObjContext.countryid;
222
- setFetchTabexStatesPayloadobjContext({ ...tempFetchTabexStatesPayloadobjContext });
223
- }
224
-
225
- if (instfilters.length != 0) {
226
- var tempinstfilters = [...instfilters];
227
- tempinstfilters?.forEach(function (instfilteritem, instfilterindex) {
228
- instfilteritem.productvaluesfilter.forEach(function (valefilteritem, valefilteritemindex) {
229
- valefilteritem.isfilterselected = false;
230
- });
231
- });
232
- ProductFilterObjContext?.FilterOptions?.forEach(function (filteritem, filterindex) {
233
- tempinstfilters?.forEach(function (instfilteritem, instfilterindex) {
234
- instfilteritem?.productvaluesfilter?.forEach(function (valefilteritem, valefilteritemindex) {
235
- if (filteritem.valueid == valefilteritem.valueid) {
236
- valefilteritem.isfilterselected = true;
237
- }
238
- });
239
- });
240
- });
241
- setinstfilters([...tempinstfilters]);
242
- }
243
- if (instcategories.length != 0) {
244
- var tempInstcategories = [...instcategories];
245
- tempInstcategories.forEach(function (catitem, catindex) {
246
- catitem.parentcolletions.forEach(function (parentcolitem, parentcolindex) {
247
- parentcolitem.collections.forEach(function (colitem, colindex) {
248
- colitem.isfilterselected = false;
249
- });
250
- });
251
- });
252
-
253
- ProductFilterObjContext?.collections?.forEach(function (filteritem, filterindex) {
254
- tempInstcategories.forEach(function (catitem, catindex) {
255
- catitem.parentcolletions.forEach(function (parentcolitem, parentcolindex) {
256
- parentcolitem.collections.forEach(function (colitem, colindex) {
257
- if (colitem.collectionid == filteritem) {
258
- colitem.isfilterselected = true;
259
- }
260
- });
261
- });
262
- });
263
- });
264
-
265
- setinstcategories([...tempInstcategories]);
266
- }
267
- if (instcollections.length != 0) {
268
- var tempInstcollections = [...instcollections];
269
- tempInstcollections.forEach(function (instfilteritem, valefilteritemindex) {
270
- instfilteritem.isfilterselected = false;
271
- });
272
- ProductFilterObjContext?.collections?.forEach(function (filteritem, filterindex) {
273
- tempInstcollections?.forEach(function (instfilteritem, instfilterindex) {
274
- if (instfilteritem.collectionid == filteritem) {
275
- instfilteritem.isfilterselected = true;
276
- }
277
- });
278
- });
279
- setinstcollections([...tempInstcollections]);
280
- }
281
- };
282
- const setfilterfunc = (valueid, valueindex, mainparentindex, type) => {
283
- var tempfetchproductsfilerobjcontext = { ...ProductFilterObjContext };
284
- if (type == 'clearfilters') {
285
- tempfetchproductsfilerobjcontext.FilterOptions = [];
286
- } else {
287
- var FilterExists = false;
288
- tempfetchproductsfilerobjcontext?.FilterOptions?.forEach(function (filteritem, filterindex) {
289
- if (filteritem.valueid == valueid) {
290
- FilterExists = true;
291
- tempfetchproductsfilerobjcontext.FilterOptions.splice(filterindex, 1);
292
- }
293
- });
294
- if (!FilterExists) {
295
- tempfetchproductsfilerobjcontext.FilterOptions.push({ valueid: valueid });
296
- }
297
- }
298
- if (tempfetchproductsfilerobjcontext.FilterOptions.length == 0) {
299
- tempfetchproductsfilerobjcontext.isfilter = 0;
300
- } else {
301
- tempfetchproductsfilerobjcontext.isfilter = 1;
302
- }
303
- tempfetchproductsfilerobjcontext.page = 0;
304
- setProductFilterObjContext({ ...tempfetchproductsfilerobjcontext });
305
- filterrouting(tempfetchproductsfilerobjcontext);
306
- // routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
307
- };
308
- const setCollectionFilterFunc = (collectionid) => {
309
- var tempfetchproductsfilerobjcontext = { ...ProductFilterObjContext };
310
- var CollectionExists = false;
311
- tempfetchproductsfilerobjcontext?.collections?.forEach(function (filteritem, filterindex) {
312
- if (filteritem == collectionid) {
313
- CollectionExists = true;
314
- tempfetchproductsfilerobjcontext.collections.splice(filterindex, 1);
315
- }
316
- });
317
- if (!CollectionExists) {
318
- if (tempfetchproductsfilerobjcontext.collections != undefined && Array.isArray(tempfetchproductsfilerobjcontext.collections)) {
319
- if (sectionproperties.filterType != 'Title & Sort By Only' && sectionproperties.filterdirection == 'Horizontal') {
320
- tempfetchproductsfilerobjcontext.collections = [];
321
- tempfetchproductsfilerobjcontext.collections.push(collectionid);
322
- } else {
323
- tempfetchproductsfilerobjcontext.collections.push(collectionid);
324
- }
325
- } else {
326
- tempfetchproductsfilerobjcontext.collections = [collectionid];
327
- }
328
- }
329
-
330
- tempfetchproductsfilerobjcontext.page = 0;
331
- tempfetchproductsfilerobjcontext.ProductFetchingType = 'Random';
332
- setProductFilterObjContext({ ...tempfetchproductsfilerobjcontext });
333
- filterrouting(tempfetchproductsfilerobjcontext);
334
- // routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
335
- };
336
- const AccordionInner = (parentcollectionindex, parentcollectionitem) => {
337
- return (
338
- <AccordionItem uuid={parentcollectionindex}>
339
- <AccordionItemHeading>
340
- <AccordionItemButton>
341
- <div className={filter_cssstyles.titlecontainer + ' row m-0 p-0 mb-2 pl-md-3 pr-md-3 '}>
342
- <div className="col-lg-10 col-md-10 col-sm-10 p-0">
343
- <p
344
- className={
345
- langdetect == 'en'
346
- ? filter_cssstyles.pCollectionName + ' collapsetitle text-capitalize m-0 p-0 '
347
- : filter_cssstyles.pCollectionName + ' collapsetitle text-capitalize m-0 p-0 text-right'
348
- }
349
- >
350
- {langdetect == 'en' ? parentcollectionitem.title_en : parentcollectionitem.title_ar}
351
- </p>
352
- </div>
353
- <div className="col-lg-2 col-md-2 col-sm-2 p-0">
354
- <AccordionItemState>
355
- {(state) => {
356
- if (state.expanded == true) {
357
- return (
358
- <i className={filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '}>
359
- <FiChevronDown />
360
- </i>
361
- );
362
- } else {
363
- return (
364
- <i className={filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '}>
365
- <FiChevronUp />
366
- </i>
367
- );
368
- }
369
- }}
370
- </AccordionItemState>
371
- </div>
372
- </div>
373
- </AccordionItemButton>
374
- </AccordionItemHeading>
375
- <AccordionItemPanel className="p-0">
376
- <div className="row mt-0 mb-2 ml-0 mr-0 d-lg-flex ">
377
- <div class="col-lg-12 mb-3 allcentered">
378
- <p
379
- class={filter_cssstyles.explorebtn + ' m-0 p-0 cursor-pointer text-capitalize '}
380
- style={{ textDecoration: 'underline' }}
381
- onClick={() => {
382
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'parentcollections/' + parentcollectionitem.parentcollectionid);
383
- }}
384
- >
385
- {langdetect == 'en' ? sectionproperties.explorebtncontenten : sectionproperties.explorebtncontentar}{' '}
386
- {langdetect == 'en' ? parentcollectionitem.title_en : parentcollectionitem.title_ar}
387
- </p>
388
- </div>
389
- <div className={'col-lg-12 pl-md-3 pr-md-3'}>
390
- <div
391
- className={
392
- langdetect == 'en' ? `${filterstyles.timeline} ${filterstyles.timelinetrans}` + ' p-sm-0 ' : `${filterstyles.timeline} ${filterstyles.timelinetrans}` + ' p-sm-0 '
393
- }
394
- >
395
- {parentcollectionitem?.collections?.map((collectionitem, collectionindex) => {
396
- if (collectionitem.isinftiler == 1) {
397
- return (
398
- <div
399
- className={
400
- `${filterstyles.border_left_line} ${filterstyles.timelineinnercont} ${filter_cssstyles.timelineinnercont}
401
- ${collectionitem.isfilterselected ? `${filter_cssstyles.timelineinnercont_active} ${filterstyles.timelineinnercont_active}` : ''}
402
- ` + ' d-flex align-items-start pb-3 '
403
- }
404
- onClick={() => {
405
- setCollectionFilterFunc(collectionitem.collectionid);
406
- }}
407
- >
408
- <div
409
- className={
410
- ` ${collectionitem.isfilterselected ? filter_cssstyles.btn_item_active : ''} ${filterstyles.btn_item} ${filter_cssstyles.btn_item}` +
411
- ' mb-2 d-flex align-items-center '
412
- }
413
- >
414
- <i className="h-100 d-flex align-items-center"></i>
415
- </div>
416
- <div className={langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'}>
417
- <p
418
- className={`${filterstyles.timeline_text} ${filter_cssstyles.timeline_text}` + ' m-0 p-0 '}
419
- style={{
420
- color: collectionitem.isfilterselected ? sectionproperties.activecat_color : '',
421
- }}
422
- >
423
- {langdetect == 'en' ? collectionitem.title_en : collectionitem.title_ar}
424
- </p>
425
- </div>
426
- </div>
427
- );
428
- }
429
- })}
430
- </div>
431
- </div>
432
- </div>
433
- </AccordionItemPanel>
434
- </AccordionItem>
435
- );
436
- };
437
- const AccordionOuter = (categoryItem, categoryIndex) => {
438
- return (
439
- <AccordionItem uuid={categoryIndex}>
440
- <AccordionItemHeading>
441
- <AccordionItemButton>
442
- <div className={filter_cssstyles.titlecontainer + ' row m-0 p-0 mb-1 pl-md-3 pr-md-3 '}>
443
- <div className="col-lg-10 col-md-10 col-sm-10 p-0 d-flex align-items-center justify-content-start">
444
- <p className={filter_cssstyles.categoryName + ' collapsetitle text-capitalize m-0 p-0 '}>{langdetect == 'en' ? categoryItem.title_en : categoryItem.title_ar}</p>
445
- </div>
446
- <div className="col-lg-2 col-md-2 col-sm-2 p-0">
447
- <AccordionItemState>
448
- {(state) => {
449
- if (state.expanded == true) {
450
- return (
451
- <i className={filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '}>
452
- <FiChevronDown />
453
- </i>
454
- );
455
- } else {
456
- return (
457
- <i className={filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '}>
458
- <FiChevronUp />
459
- </i>
460
- );
461
- }
462
- }}
463
- </AccordionItemState>
464
- </div>
465
- <div className="col-lg-12 p-0">
466
- <hr className="mt-3 mb-2" />
467
- </div>
468
- </div>
469
- </AccordionItemButton>
470
- </AccordionItemHeading>
471
- <AccordionItemPanel className="p-0">
472
- <div className="row mt-0 mb-2 ml-0 mr-0 d-lg-flex">
473
- <div class="col-lg-12 mb-3 allcentered">
474
- <p
475
- class={filter_cssstyles.explorebtn + ' m-0 p-0 cursor-pointer text-capitalize '}
476
- style={{ textDecoration: 'underline' }}
477
- onClick={() => {
478
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'categories/' + categoryItem.categoryid);
479
- }}
480
- >
481
- {langdetect == 'en' ? sectionproperties.explorebtncontenten : sectionproperties.explorebtncontentar}{' '}
482
- {langdetect == 'en' ? categoryItem.title_en : categoryItem.title_ar}
483
- </p>
484
- </div>
485
- {instcategories[categoryIndex]?.parentcolletions.map((parentcollectionitem, parentcollectionindex) => {
486
- if (parentcollectionitem.isinftiler == 1) {
487
- return (
488
- <div class="col-lg-12">
489
- {sectionproperties.expandall == 'Yes' && (
490
- <Accordion allowMultipleExpanded={true} allowZeroExpanded={true} preExpanded={[0, 1, 2, 3, 4, 5, 6, 7, 8, , 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]}>
491
- {AccordionInner(parentcollectionindex, parentcollectionitem)}
492
- </Accordion>
493
- )}
494
- {sectionproperties.expandall == 'No' && (
495
- <Accordion allowMultipleExpanded={true} allowZeroExpanded={true}>
496
- {AccordionInner(parentcollectionindex, parentcollectionitem)}
497
- </Accordion>
498
- )}
499
- </div>
500
- );
501
- }
502
- })}
503
- </div>
504
- </AccordionItemPanel>
505
- </AccordionItem>
506
- );
507
- };
508
- const CategoriesFilter = () => {
509
- return (
510
- <div class="col-lg-12 p-0">
511
- {instcategories?.map((categoryItem, categoryIndex) => {
512
- if (categoryItem.isinftiler == 1) {
513
- return (
514
- <div class="col-lg-12 p-0">
515
- {sectionproperties.expandall == 'Yes' && (
516
- <Accordion allowMultipleExpanded={true} allowZeroExpanded={true} preExpanded={[0, 1, 2, 3, 4, 5, 6, 7, 8, , 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]}>
517
- {AccordionOuter(categoryItem, categoryIndex)}
518
- </Accordion>
519
- )}
520
- {sectionproperties.expandall == 'No' && (
521
- <Accordion allowMultipleExpanded={true} allowZeroExpanded={true}>
522
- {AccordionOuter(categoryItem, categoryIndex)}
523
- </Accordion>
524
- )}
525
- </div>
526
- );
527
- }
528
- })}
529
- </div>
530
- );
531
- };
532
- const CollectionsFilter = () => {
533
- return (
534
- <div class="col-lg-12 p-0">
535
- <Accordion allowMultipleExpanded={true} allowZeroExpanded={true} preExpanded={[0, 1, 2, 3]}>
536
- <AccordionItem uuid={0}>
537
- <AccordionItemHeading>
538
- <AccordionItemButton>
539
- <div className={filter_cssstyles.titlecontainer + ' row m-0 p-0 mb-2 pl-md-3 pr-md-3 '}>
540
- <div className="col-lg-10 col-md-10 col-sm-10 p-0">
541
- <p className={langdetect == 'en' ? filter_cssstyles.collapsetitle + ' m-0 p-0 ' : filter_cssstyles.collapsetitle + ' m-0 p-0 text-right'}>
542
- {langdetect == 'en' ? sectionproperties.filtercollectiontitle_en : sectionproperties.filtercollectiontitle_ar}
543
- </p>
544
- </div>
545
- <div className="col-lg-2 col-md-2 col-sm-2 p-0">
546
- <AccordionItemState>
547
- {(state) => {
548
- if (state.expanded == true) {
549
- return (
550
- <i className={filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '}>
551
- <FiChevronDown />
552
- </i>
553
- );
554
- } else {
555
- return (
556
- <i className={filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '}>
557
- <FiChevronUp />
558
- </i>
559
- );
560
- }
561
- }}
562
- </AccordionItemState>
563
- </div>
564
- </div>
565
- </AccordionItemButton>
566
- </AccordionItemHeading>
567
- <AccordionItemPanel className="p-0">
568
- <div className="row mt-0 mb-2 ml-0 mr-0 d-lg-flex pl-md-3 pr-md-3">
569
- <div className={'col-lg-12'}>
570
- <div
571
- className={
572
- langdetect == 'en'
573
- ? `${filterstyles.timeline} ${filterstyles.timelinetrans}` + ' p-sm-0 '
574
- : `${filterstyles.timeline} ${filterstyles.timelinetrans}` + ' p-sm-0 '
575
- }
576
- >
577
- {collectionstobevisible.map((item, index) => {
578
- return (
579
- <div
580
- className={
581
- `${filterstyles.border_left_line} ${filterstyles.timelineinnercont} ${filter_cssstyles.timelineinnercont}
582
- ${item.isfilterselected ? `${filter_cssstyles.timelineinnercont_active} ${filterstyles.timelineinnercont_active}` : ''}
583
- ` + ' d-flex align-items-start pb-3 '
584
- }
585
- onClick={() => {
586
- setCollectionFilterFunc(item.collectionid);
587
- }}
588
- >
589
- <div
590
- className={
591
- ` ${item.isfilterselected ? filter_cssstyles.btn_item_active : ''} ${filterstyles.btn_item} ${filter_cssstyles.btn_item}` +
592
- ' mb-2 d-flex align-items-center '
593
- }
594
- >
595
- <i className="h-100 d-flex align-items-center"></i>
596
- </div>
597
- <div className={langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'}>
598
- <p
599
- className={`${filterstyles.timeline_text} ${filter_cssstyles.timeline_text}` + ' m-0 p-0 '}
600
- style={{
601
- color: item.isfilterselected ? sectionproperties.activecat_color : '',
602
- }}
603
- >
604
- {langdetect == 'en' ? item.title_en : item.title_ar}
605
- </p>
606
- </div>
607
- </div>
608
- );
609
- })}
610
- </div>
611
- {sectionproperties.showshowallbtn == 'Show' && (
612
- <div class="col-lg-12 allcentered">
613
- <div class={filter_cssstyles.showallbtn} style={{}}>
614
- <p
615
- class="m-0 p-0"
616
- onClick={() => {
617
- setcollectionstobevisible(instcollections);
618
- }}
619
- // style={{ cursor: 'pointer' }}
620
- >
621
- {langdetect == 'en' ? sectionproperties.showalltexten : sectionproperties.showalltextar}
622
- </p>
623
- </div>
624
- </div>
625
- )}
626
- </div>
627
- </div>
628
- </AccordionItemPanel>
629
- </AccordionItem>
630
- <hr className="mt-3 mb-3" />
631
- </Accordion>
632
- </div>
633
- );
634
- };
635
- const DynamicFilter = () => {
636
- return (
637
- <div class="row m-0 w-100">
638
- <div class="col-lg-12 p-0 mb-3">
639
- {fetchProductFeaturesQueryContext?.isSuccess && (
640
- <div className="row mt-0 mb-2 ml-0 mr-0 d-lg-flex pl-md-3 pr-md-3">
641
- {fetchProductFeaturesQueryContext?.data?.data?.productfeatues?.map(function (item, index) {
642
- if (item.type == 'Selectbox') {
643
- var selectboxarr = [];
644
- item?.featuresselectbovalue?.forEach(function (slecitem) {
645
- var itemlabel = '';
646
- if (langdetect == 'en') {
647
- itemlabel = slecitem.value_en;
648
- } else {
649
- itemlabel = slecitem.value_ar;
650
- }
651
- selectboxarr.push({ label: itemlabel, value: slecitem.value_en });
652
- });
653
- return (
654
- <div class="col-lg-12 col-md-12 d-flex flex-column align-items-center justify-content-start mb-3 p-0">
655
- <label
656
- className={' mb-3 w-100 '}
657
- style={{
658
- textAlign: langdetect == 'en' ? 'left' : 'right',
659
- color: sectionproperties.filtertitle_color,
660
- color: sectionproperties.filtertitle_color,
661
- fontSize: sectionproperties.filtertitle_fontsize + 'px',
662
- fontWeight: sectionproperties.filtertitle_fontweight,
663
- color: sectionproperties.filtertitle_color,
664
- textTransform: 'capitalize',
665
- }}
666
- >
667
- {langdetect == 'en' ? item.name_en : item.name_ar}
668
- </label>
669
- <div class={'col-lg-12 p-0'}>
670
- <Select
671
- options={selectboxarr}
672
- styles={langdetect == 'en' ? selectcustomStyles : selectcustomStylesTranslated}
673
- placeholder={''}
674
- onChange={(e) => {
675
- var isattrexists = false;
676
- var tempproductfeatuesarr = [...productfeatuesarr];
677
- tempproductfeatuesarr?.forEach(function (attritem, attrindex) {
678
- if (attritem.id == item.id) {
679
- tempproductfeatuesarr[attrindex].value = e.value;
680
- isattrexists = true;
681
- }
682
- });
683
- if (isattrexists == false) {
684
- tempproductfeatuesarr.push({
685
- id: item.id,
686
- value: e.value,
687
- });
688
- }
689
- setproductfeatuesarr([...tempproductfeatuesarr]);
690
- }}
691
- />
692
- </div>
693
- </div>
694
- );
695
- }
696
- if (item.type == 'Number') {
697
- return (
698
- <div class="col-lg-12 col-md-12 d-flex flex-column align-items-center justify-content-start mb-3 p-0">
699
- <label
700
- className={`${filter_cssstyles.input_label_name}` + ' mb-3 w-100 '}
701
- style={{
702
- textAlign: langdetect == 'en' ? 'left' : 'right',
703
- color: sectionproperties.filtertitle_color,
704
- color: sectionproperties.filtertitle_color,
705
- fontSize: sectionproperties.filtertitle_fontsize + 'px',
706
- fontWeight: sectionproperties.filtertitle_fontweight,
707
- color: sectionproperties.filtertitle_color,
708
- textTransform: 'capitalize',
709
- }}
710
- >
711
- {langdetect == 'en' ? item.name_en : item.name_ar}
712
- </label>
713
- <div class={'col-lg-12 p-0'}>
714
- <input
715
- type="number"
716
- className={`${formstyles.form_control} ${filter_cssstyles.form_control}`}
717
- placeholder={''}
718
- onChange={(e) => {
719
- var isattrexists = false;
720
- var tempproductfeatuesarr = [...productfeatuesarr];
721
- tempproductfeatuesarr?.forEach(function (attritem, attrindex) {
722
- if (attritem.id == item.id) {
723
- tempproductfeatuesarr[attrindex].value = e.target.value;
724
- isattrexists = true;
725
- }
726
- });
727
- if (isattrexists == false) {
728
- tempproductfeatuesarr.push({
729
- id: item.id,
730
- value: e.target.value,
731
- });
732
- }
733
- setproductfeatuesarr([...tempproductfeatuesarr]);
734
- }}
735
- />
736
- </div>
737
- </div>
738
- );
739
- }
740
- if (item.type == 'NumberRange') {
741
- var temppricevalue = { min: 0, max: 10000 };
742
- var tempproductfeatuesarr = [...productfeatuesarr];
743
- tempproductfeatuesarr?.forEach(function (attritem, attrindex) {
744
- if (attritem.id == item.id) {
745
- if (attritem.value != undefined && attritem.value != null && attritem?.value?.length != 0) {
746
- temppricevalue.min = attritem.value;
747
- }
748
- if (attritem.valuemax != undefined && attritem.valuemax != null && attritem?.valuemax?.length != 0) {
749
- temppricevalue.max = attritem.valuemax;
750
- }
751
- }
752
- });
753
- return (
754
- <div className={`${langdetect == 'en' ? 'text-left' : 'text-right'}` + ' col-lg-12 col-md-12 col-sm-12 mb-3 '}>
755
- <label
756
- className={`${filter_cssstyles.input_label_name}` + ' mb-3 w-100'}
757
- style={{
758
- textAlign: langdetect == 'en' ? 'left' : 'right',
759
- color: sectionproperties.filtertitle_color,
760
- color: sectionproperties.filtertitle_color,
761
- fontSize: sectionproperties.filtertitle_fontsize + 'px',
762
- fontWeight: sectionproperties.filtertitle_fontweight,
763
- color: sectionproperties.filtertitle_color,
764
- textTransform: 'capitalize',
765
- }}
766
- >
767
- {langdetect == 'en' ? item.name_en : item.name_ar}
768
- {item.type}
769
- </label>
770
- <div class={'col-lg-12 pl-4 pr-4 mt-2 mb-2'} style={{ direction: 'ltr' }}>
771
- <InputRange
772
- draggableTrack={true}
773
- formatLabel={(value) => `${value}`}
774
- maxValue={parseInt(sectionproperties.filterpricemaxvalue)}
775
- minValue={parseInt(sectionproperties.filterpriceminvalue)}
776
- value={temppricevalue}
777
- onChange={(e) => {
778
- // setpricevalue({ ...value });
779
- var isattrexists = false;
780
- var tempproductfeatuesarr = [...productfeatuesarr];
781
- tempproductfeatuesarr?.forEach(function (attritem, attrindex) {
782
- if (attritem.id == item.id) {
783
- tempproductfeatuesarr[attrindex].value = e.min;
784
- tempproductfeatuesarr[attrindex].valuemax = e.max;
785
- isattrexists = true;
786
- }
787
- });
788
- if (isattrexists == false) {
789
- tempproductfeatuesarr.push({
790
- id: item.id,
791
- value: e.min,
792
- valuemax: e.max,
793
- });
794
- }
795
- setproductfeatuesarr([...tempproductfeatuesarr]);
796
- }}
797
- />
798
- </div>
799
- </div>
800
- );
801
- }
802
- })}
803
- {/* {sectionproperties.showpricerange == 'Show' && (
804
- <div className={`${langdetect == 'en' ? 'text-left' : 'text-right'}` + ' col-lg-12 col-md-12 col-sm-12 mb-3 p-0 '}>
805
- <label
806
- className={`${filter_cssstyles.input_label_name}` + ' mb-3 w-100'}
807
- style={{
808
- textAlign: langdetect == 'en' ? 'left' : 'right',
809
- color: sectionproperties.filtertitle_color,
810
- color: sectionproperties.filtertitle_color,
811
- fontSize: sectionproperties.filtertitle_fontsize + 'px',
812
- fontWeight: sectionproperties.filtertitle_fontweight,
813
- color: sectionproperties.filtertitle_color,
814
- textTransform: 'capitalize',
815
- }}
816
- >
817
- {langdetect == 'en' ? 'Price' : 'السعر'}
818
- {item.type}
819
- </label>
820
- <div class={'col-lg-12 pl-4 pr-4 mt-2 mb-2'} style={{ direction: 'ltr' }}>
821
- <InputRange
822
- draggableTrack={true}
823
- formatLabel={(value) => `${value}`}
824
- maxValue={parseInt(sectionproperties.filterpricemaxvalue)}
825
- minValue={parseInt(sectionproperties.filterpriceminvalue)}
826
- value={temppricevalue}
827
- onChange={(e) => {
828
- // setpricevalue({ ...value });
829
- var isattrexists = false;
830
- var tempproductfeatuesarr = [...productfeatuesarr];
831
- tempproductfeatuesarr?.forEach(function (attritem, attrindex) {
832
- if (attritem.id == item.id) {
833
- tempproductfeatuesarr[attrindex].value = e.min;
834
- tempproductfeatuesarr[attrindex].valuemax = e.max;
835
- isattrexists = true;
836
- }
837
- });
838
- if (isattrexists == false) {
839
- tempproductfeatuesarr.push({
840
- id: item.id,
841
- value: e.min,
842
- valuemax: e.max,
843
- });
844
- }
845
- setproductfeatuesarr([...tempproductfeatuesarr]);
846
- }}
847
- />
848
- </div>
849
- </div>
850
- )} */}
851
- </div>
852
- )}
853
- </div>
854
- </div>
855
- );
856
- };
857
- const InstFilters = () => {
858
- return (
859
- <Accordion allowMultipleExpanded={true} allowZeroExpanded={true}>
860
- {instfilters.map((item, index) => {
861
- return (
862
- <>
863
- <AccordionItem uuid={index}>
864
- <AccordionItemHeading>
865
- <AccordionItemButton>
866
- <div className={filter_cssstyles.titlecontainer + ' row m-0 p-0 mb-2 pl-md-3 pr-md-3 '}>
867
- <div className="col-lg-10 col-md-10 col-sm-10 p-0">
868
- <p
869
- className={
870
- langdetect == 'en'
871
- ? filter_cssstyles.collapsetitle + ' collapsetitle m-0 p-0 '
872
- : filter_cssstyles.collapsetitle + ' collapsetitle m-0 p-0 text-right'
873
- }
874
- >
875
- {langdetect == 'en' ? item.optionname : item.optionname_ar}
876
- </p>
877
- </div>
878
- <div className="col-lg-2 col-md-2 col-sm-2 p-0">
879
- <AccordionItemState>
880
- {(state) => {
881
- if (state.expanded == true) {
882
- return (
883
- <i className={filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '}>
884
- <FiChevronDown />
885
- </i>
886
- );
887
- } else {
888
- return (
889
- <i className={filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '}>
890
- <FiChevronUp />
891
- </i>
892
- );
893
- }
894
- }}
895
- </AccordionItemState>
896
- </div>
897
- </div>
898
- </AccordionItemButton>
899
- </AccordionItemHeading>
900
- <AccordionItemPanel className="p-0">
901
- <div className="row mt-0 mb-2 ml-0 mr-0 d-lg-flex pl-md-3 pr-md-3">
902
- <div className={'col-lg-12'}>
903
- <div className={langdetect == 'en' ? `${filterstyles.timeline}` + ' p-sm-0 ' : `${filterstyles.timeline} ${filterstyles.timelinetrans}` + ' p-sm-0 '}>
904
- {item.productvaluesfilter.map((valueitem, valueindex) => {
905
- return (
906
- <div
907
- className={
908
- `${filterstyles.border_left_line} ${filterstyles.timelineinnercont} ${filter_cssstyles.timelineinnercont}
909
- ${valueitem.isfilterselected ? `${filter_cssstyles.timelineinnercont_active} ${filterstyles.timelineinnercont_active}` : ''}
910
-
911
- ` + ' d-flex align-items-start pb-3 '
912
- }
913
- onClick={() => {
914
- setfilterfunc(valueitem.valueid, valueindex, index, 'assign');
915
- }}
916
- >
917
- <div>
918
- <div
919
- className={
920
- ` ${valueitem.isfilterselected ? filter_cssstyles.btn_item_active : ''} ${filterstyles.btn_item} ${filter_cssstyles.btn_item}` +
921
- ' mb-2 d-flex align-items-center '
922
- }
923
- >
924
- <i className="h-100 d-flex align-items-center"></i>
925
- </div>
926
- </div>
927
- <div className={langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'}>
928
- {item.optionname == 'Color' && (
929
- <p
930
- className={`${filterstyles.timeline_text} ${filter_cssstyles.timeline_text}` + ' m-0 p-0 '}
931
- style={{
932
- color: valueitem.isfilterselected ? sectionproperties.activecat_color : '',
933
- }}
934
- >
935
- {valueitem.value_identifier}
936
- </p>
937
- )}
938
- {item.optionname != 'Color' && (
939
- <p
940
- className={`${filterstyles.timeline_text} ${filter_cssstyles.timeline_text}` + ' m-0 p-0 '}
941
- style={{
942
- color: valueitem.isfilterselected ? sectionproperties.activecat_color : '',
943
- }}
944
- >
945
- {langdetect == 'en' ? valueitem.valuename : valueitem.valuename_ar}
946
- </p>
947
- )}
948
- </div>
949
- </div>
950
- );
951
- })}
952
- </div>
953
- </div>
954
- </div>
955
- </AccordionItemPanel>
956
- </AccordionItem>
957
- <hr className="mt-3 mb-3" />
958
- </>
959
- );
960
- })}
961
- </Accordion>
962
- );
963
- };
964
- const filter_cssstyles = {
965
- form_control: css({
966
- position: 'relative',
967
- display: 'flex',
968
- alignItems: 'center',
969
- display: 'block',
970
- width: '100%',
971
- padding: '0 30px',
972
- transition: '.3s',
973
- fontWeight: 500,
974
- border: '1px solid #ccc',
975
- // border: sectionproperties.inputfieldbordertype == 'All' ? sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor : 0,
976
- // borderBottom: sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor,
977
- // borderRadius: sectionproperties.inputfieldborderradius + 'px',
978
- borderRadius: '5px',
979
- // height: sectionproperties.inputfieldheight + 'px',
980
- height: '40px',
981
- background: 'transparent',
982
- // color: sectionproperties.inputfieldcolor,
983
- color: '#000',
984
- // fontSize: sectionproperties.inputfieldfontsize + 'px',
985
- fontSize: '14px',
986
- ':focus': {
987
- // borderColor: sectionproperties.inputfeildbordercoloronfocus,
988
- borderColor: '#eac435',
989
- boxShadow: 'none',
990
- },
991
- }),
992
- collapsetitle: css({
993
- fontSize: sectionproperties.filtertitle_fontsize + 'px',
994
- fontWeight: sectionproperties.filtertitle_fontweight,
995
- textTransform: sectionproperties.filtertitle_texttransform,
996
- color: sectionproperties.filtertitle_color,
997
- ':hover': {
998
- color: sectionproperties.filtertitle_coloronhover,
999
- },
1000
- }),
1001
- titlecontainer: css({
1002
- color: sectionproperties.filtertitle_color,
1003
- ':hover .collapsetitle': {
1004
- color: sectionproperties.filtertitle_coloronhover,
1005
- },
1006
- }),
1007
- timeline_text: css({
1008
- fontSize: sectionproperties.timeline_text_fontsize + 'px',
1009
- fontWeight: sectionproperties.timeline_text_fontweight,
1010
- textTransform: sectionproperties.timeline_text_texttransform,
1011
- color: sectionproperties.timeline_text_color,
1012
- transition: '.3s',
1013
- ':hover': {
1014
- color: sectionproperties.timeline_text_coloronhover,
1015
- },
1016
- }),
1017
- btnstyles: css({
1018
- color: sectionproperties.generalbtn_textColor,
1019
- fontSize: sectionproperties.generalbtn_fontsize + 'px',
1020
- textTransform: sectionproperties.generalbtn_texttransform,
1021
- width: sectionproperties.generalbtn_width + 'px',
1022
- height: sectionproperties.generalbtn_height + 'px',
1023
- background: sectionproperties.generalbtn_bgColor,
1024
- borderTopLeftRadius: sectionproperties.generalbtn_bordertopleftradius + 'px',
1025
- borderTopRightRadius: sectionproperties.generalbtn_bordertoprightradius + 'px',
1026
- borderBottomRightRadius: sectionproperties.generalbtn_borderbottomrightradius + 'px',
1027
- borderBottomLeftRadius: sectionproperties.generalbtn_borderbottomleftradius + 'px',
1028
- fontWeight: sectionproperties.generalbtn_fontweight,
1029
- transition: '.3s',
1030
- ':hover': {
1031
- background: sectionproperties.generalbtn_bgColoronhover,
1032
- color: sectionproperties.generalbtn_textColoronhover,
1033
- },
1034
- }),
1035
- close_menu_icon_cont: css({
1036
- background: sectionproperties.closeSliderBgColor,
1037
- width: sectionproperties.closeSliderWidth + 'px',
1038
- height: sectionproperties.closeSliderHeight + 'px',
1039
- borderRadius: sectionproperties.closeSlider_borderBottomLeftRadius + 'px',
1040
- ':hover': {
1041
- background: sectionproperties.closeSliderBgColorHover,
1042
- },
1043
- }),
1044
- horizontalfilter_card: css({
1045
- marginBottom: sectionproperties.horizontalfilter_mb + 'px',
1046
- marginTop: sectionproperties.horizontalfilter_mt + 'px',
1047
- background: sectionproperties.horizontalfilter_cardbg,
1048
- border: sectionproperties.horizontalfilter_cardborderwidth + 'px solid ' + sectionproperties.horizontalfilter_cardbordercolor,
1049
- boxShadow: sectionproperties.horizontalfilter_cardboxShadow == 'Show' ? sectionproperties.horizontalfilter_cardboxShadowcolor : 'horizontalfilter_cardboxShadow',
1050
- }),
1051
- btn_item: css({
1052
- width: '20px',
1053
- height: '20px',
1054
- background: sectionproperties.filteritembtn_bgcolor,
1055
- ':hover': {
1056
- background: sectionproperties.filteritembtn_bghover,
1057
- },
1058
- }),
1059
- btn_item_active: css({
1060
- background: sectionproperties.btn_item_activebgcolor,
1061
- }),
1062
- timelineinnercont_active: css({
1063
- fontWeight: sectionproperties.activecat_fontweight,
1064
- color: sectionproperties.activecat_color,
1065
- }),
1066
- categoryName: css({
1067
- color: sectionproperties.filtertitle_color,
1068
- fontWeight: sectionproperties.filterCatFontWeight,
1069
- fontSize: sectionproperties.filterCatFontSize + 'px',
1070
- }),
1071
- pCollectionName: css({
1072
- color: sectionproperties.filtertitle_color,
1073
- fontWeight: sectionproperties.filterPCollFontWeight,
1074
- fontSize: sectionproperties.filterPCollFontSize + 'px',
1075
- }),
1076
- explorebtn: css({
1077
- fontSize: sectionproperties.explorebtnfontsize + 'px',
1078
- fontWeight: 600,
1079
- color: sectionproperties.explorebtncolor,
1080
- transition: '.3s',
1081
- ':hover': {
1082
- color: sectionproperties.explorebtncoloronhover,
1083
- },
1084
- }),
1085
- showallbtn: css({
1086
- color: sectionproperties.showallcolor,
1087
- ':hover': {
1088
- transition: '.3s',
1089
- cursor: 'pointer',
1090
- color: sectionproperties.showallcolorhover,
1091
- },
1092
- }),
1093
- sectiontitle: css({
1094
- position: 'relative',
1095
- justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : '',
1096
- width: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '100%' : '',
1097
- fontSize: sectionproperties.sectionTitleFontSize + 'px',
1098
- '@media (max-width: 800px)': {
1099
- fontSize: sectionproperties.sectionTitleFontSizeresp + 'px',
1100
- },
1101
- }),
1102
- };
1103
- const filterrouting = (tempfetchproductsfilerobjcontext) => {
1104
- const path = window.location.pathname.split('/');
1105
- var currentpagepath = path[1];
1106
- var pagenamepathinstaticpagelinkcont = '';
1107
- for (const key in StaticPagesLinksContext) {
1108
- if (StaticPagesLinksContext[key] == currentpagepath) {
1109
- pagenamepathinstaticpagelinkcont = key;
1110
- }
1111
- }
1112
- if (pagenamepathinstaticpagelinkcont != undefined && pagenamepathinstaticpagelinkcont != '') {
1113
- routingcountext(StaticPagesLinksContext[pagenamepathinstaticpagelinkcont], true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
1114
- }
1115
- };
1116
- const Countriesfilter = () => {
1117
- return (
1118
- <div class="row m-0 w-100 pl-md-3 pr-md-3">
1119
- <div class="col-lg-12 p-0 mt-3">
1120
- <div class="row m-0 w-100">
1121
- <div class="col-lg-12 p-0 mb-3">
1122
- {fetchTabexCountriesQueryContext?.isFetching && (
1123
- <div className="w-100 allcentered mt-1">
1124
- <CircularProgress color="#000" width="20px" height="20px" duration="1s" />
1125
- </div>
1126
- )}
1127
-
1128
- {!fetchTabexCountriesQueryContext?.isFetching && fetchTabexCountriesQueryContext?.isSuccess && (
1129
- <Select
1130
- options={fetchTabexCountriesQueryContext?.data?.data?.countries}
1131
- getOptionLabel={(option) => {
1132
- var crname = '';
1133
- if (langdetect == 'en') {
1134
- crname = option.name;
1135
- } else if (langdetect == 'ar') {
1136
- if (option.name_ar != null) {
1137
- crname = option.name_ar;
1138
- } else {
1139
- crname = option.name;
1140
- }
1141
- }
1142
- return crname;
1143
- }}
1144
- getOptionValue={(option) => option.id}
1145
- value={fetchTabexCountriesQueryContext.data.data.countries.filter((option) => option.id == ProductFilterObjContext.countryid)}
1146
- onChange={(option) => {
1147
- var tempFetchTabexStatesPayloadobjContext = { ...FetchTabexStatesPayloadobjContext };
1148
- tempFetchTabexStatesPayloadobjContext.functype = 'states';
1149
- tempFetchTabexStatesPayloadobjContext.country_id = option.id;
1150
- setFetchTabexStatesPayloadobjContext({ ...tempFetchTabexStatesPayloadobjContext });
1151
-
1152
- var tempfetchproductsfilerobjcontext = { ...ProductFilterObjContext };
1153
- tempfetchproductsfilerobjcontext.countryid = option.id;
1154
- tempfetchproductsfilerobjcontext.page = 0;
1155
- setProductFilterObjContext({ ...tempfetchproductsfilerobjcontext });
1156
- filterrouting(tempfetchproductsfilerobjcontext);
1157
- }}
1158
- styles={langdetect == 'en' ? defaultstyles : defaultstylestranslated}
1159
- placeholder={lang.choosecountry}
1160
- isSearchable={true}
1161
- />
1162
- )}
1163
- </div>
1164
- <div class="col-lg-12 mb-3 p-0">
1165
- {fetchTabexStatesQueryContext?.isFetching && (
1166
- <div className="w-100 allcentered mt-1">
1167
- <CircularProgress color="#000" width="20px" height="20px" duration="1s" />
1168
- </div>
1169
- )}
1170
-
1171
- {!fetchTabexStatesQueryContext?.isFetching && fetchTabexStatesQueryContext?.isSuccess && (
1172
- <Select
1173
- options={fetchTabexStatesQueryContext?.data?.data?.states}
1174
- getOptionLabel={(option) => {
1175
- var crname = '';
1176
- if (langdetect == 'en') {
1177
- crname = option.name;
1178
- } else if (langdetect == 'ar') {
1179
- if (option.name_ar != null) {
1180
- crname = option.name_ar;
1181
- } else {
1182
- crname = option.name;
1183
- }
1184
- }
1185
- return crname;
1186
- }}
1187
- getOptionValue={(option) => option.id}
1188
- value={fetchTabexStatesQueryContext?.data?.data?.states.filter((option) => option.id == ProductFilterObjContext.stateid)}
1189
- onChange={(option) => {
1190
- var tempFetchTabexStatesPayloadobjContext = { ...FetchTabexStatesPayloadobjContext };
1191
- tempFetchTabexStatesPayloadobjContext.functype = 'cities';
1192
- tempFetchTabexStatesPayloadobjContext.state_id = option.id;
1193
- setFetchTabexStatesPayloadobjContext({ ...tempFetchTabexStatesPayloadobjContext });
1194
-
1195
- var tempfetchproductsfilerobjcontext = { ...ProductFilterObjContext };
1196
- tempfetchproductsfilerobjcontext.stateid = option.id;
1197
- tempfetchproductsfilerobjcontext.page = 0;
1198
- setProductFilterObjContext({ ...tempfetchproductsfilerobjcontext });
1199
- filterrouting(tempfetchproductsfilerobjcontext);
1200
- }}
1201
- styles={langdetect == 'en' ? defaultstyles : defaultstylestranslated}
1202
- placeholder={lang.choosestategov}
1203
- isSearchable={true}
1204
- />
1205
- )}
1206
- </div>
1207
- <div class="col-lg-12 mb-3 p-0">
1208
- {fetchTabexCitiesQueryContext?.isFetching && (
1209
- <div className="w-100 allcentered mt-1">
1210
- <CircularProgress color="#000" width="20px" height="20px" duration="1s" />
1211
- </div>
1212
- )}
1213
-
1214
- {!fetchTabexCitiesQueryContext?.isFetching && fetchTabexCitiesQueryContext?.isSuccess && (
1215
- <Select
1216
- options={fetchTabexCitiesQueryContext?.data?.data?.cities}
1217
- getOptionLabel={(option) => {
1218
- var crname = '';
1219
- if (langdetect == 'en') {
1220
- crname = option.name;
1221
- } else if (langdetect == 'ar') {
1222
- if (option.name_ar != null) {
1223
- crname = option.name_ar;
1224
- } else {
1225
- crname = option.name;
1226
- }
1227
- }
1228
- return crname;
1229
- }}
1230
- getOptionValue={(option) => option.id}
1231
- value={fetchTabexCitiesQueryContext?.data?.data?.cities.filter((option) => option.id == ProductFilterObjContext.cityid)}
1232
- onChange={(option) => {
1233
- var tempfetchproductsfilerobjcontext = { ...ProductFilterObjContext };
1234
- tempfetchproductsfilerobjcontext.cityid = option.id;
1235
- tempfetchproductsfilerobjcontext.page = 0;
1236
- setProductFilterObjContext({ ...tempfetchproductsfilerobjcontext });
1237
- filterrouting(tempfetchproductsfilerobjcontext);
1238
- }}
1239
- styles={langdetect == 'en' ? defaultstyles : defaultstylestranslated}
1240
- placeholder={lang.choosecity}
1241
- isSearchable={true}
1242
- />
1243
- )}
1244
- </div>
1245
- </div>
1246
- </div>
1247
- </div>
1248
- );
1249
- };
1250
- const [checked, setChecked] = useState(false);
1251
- // const queryParameters = new URLSearchParams(window.location.search);
1252
- // useEffect(() => {
1253
- // // setsortbycontext('Sort By');
1254
- // if (queryParameters.get('sortprice') == undefined) {
1255
- // setsortbycontext('Sort By');
1256
- // } else {
1257
- // var temp = { ...sortbycontext };
1258
- // temp = queryParameters.get('sortprice');
1259
- // alert(temp);
1260
- // }
1261
- // }, []);
1262
- return (
1263
- <div
1264
- 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'}
1265
- style={{ marginTop: sectionproperties.filtersection_mt + 'px', minHeight: sectionproperties.filterminheight == 0 ? 'auto' : sectionproperties.filterminheight + 'vh' }}
1266
- >
1267
- {InstFilters()}
1268
- </div>
1269
- );
1270
- };
1271
- export default Filter;