tabexseriescomponents 0.0.706 → 0.0.708

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 (348) hide show
  1. package/package.json +1 -1
  2. package/srcoman/Contexts/LanguageContext.jsx +408 -0
  3. package/srcoman/Contexts/ProductsCardsSectionContext.jsx +36 -0
  4. package/srcoman/Imagekitconfig.jsx +46 -0
  5. package/srcoman/StylesJS/Customstyles.js +345 -0
  6. package/srcoman/TabexComponents/Cards/CTAProductCard/CTAProductCard.jsx +376 -0
  7. package/srcoman/TabexComponents/Cards/Card20/Card20.jsx +298 -0
  8. package/srcoman/TabexComponents/Cards/Card21/Card21.jsx +388 -0
  9. package/srcoman/TabexComponents/Cards/Card22/Card22.jsx +288 -0
  10. package/srcoman/TabexComponents/Cards/Card23/Card23 copy.jsx +1630 -0
  11. package/srcoman/TabexComponents/Cards/Card23/Card23.jsx +742 -0
  12. package/srcoman/TabexComponents/Cards/CardAll/CardAll.jsx +453 -0
  13. package/srcoman/TabexComponents/Cards/CardBadgeSlideFromTop/CardBadgeSlideFromTop.jsx +394 -0
  14. package/srcoman/TabexComponents/Cards/CardWithTextOnly/CardWithTextOnly.jsx +70 -0
  15. package/srcoman/TabexComponents/Cards/CategoryCardTextOnImage/CategoryCardTextOnImage.jsx +211 -0
  16. package/srcoman/TabexComponents/Cards/CategoryCardwithhoveraction/CategoryCardwithhoveraction.jsx +255 -0
  17. package/srcoman/TabexComponents/Cards/Categorycard_fullimage/Categorycard_fullimage.jsx +235 -0
  18. package/srcoman/TabexComponents/Cards/Categorycard_slidebgscaled/Categorycard_slidebgscaled.jsx +199 -0
  19. package/srcoman/TabexComponents/Cards/Categorycard_with_trianglebg/Categorycard_with_trianglebg.jsx +182 -0
  20. package/srcoman/TabexComponents/Cards/Categorycard_with_twolinestransition/Categorycard_with_twolinestransition.jsx +181 -0
  21. package/srcoman/TabexComponents/Cards/Categorycard_withshapes/Categorycard_withshapes.jsx +161 -0
  22. package/srcoman/TabexComponents/Cards/Categorycard_withtext/Categorycard_withtext.jsx +184 -0
  23. package/srcoman/TabexComponents/Cards/CircleCardWithVariants/CircleCardWithVariants.jsx +560 -0
  24. package/srcoman/TabexComponents/Cards/Classiccategorycard/Classiccategorycard copy.jsx +145 -0
  25. package/srcoman/TabexComponents/Cards/Classiccategorycard/Classiccategorycard.jsx +146 -0
  26. package/srcoman/TabexComponents/Cards/Classiccategorycard/ClassiccategorycardOriginal.jsx +142 -0
  27. package/srcoman/TabexComponents/Cards/HorizontalCategoryCard/HorizontalCategoryCard.jsx +193 -0
  28. package/srcoman/TabexComponents/Cards/Horizontalcard/Horizontalcard.jsx +409 -0
  29. package/srcoman/TabexComponents/Cards/MenuCard/MenuCard.jsx +732 -0
  30. package/srcoman/TabexComponents/Cards/ModernCardWithQuantityButton/ModernCardWithQuantityButton.jsx +468 -0
  31. package/srcoman/TabexComponents/Cards/ModernProductCard/ModernProductCard.jsx +593 -0
  32. package/srcoman/TabexComponents/Cards/Moderncategorycard/Moderncategorycard.jsx +208 -0
  33. package/srcoman/TabexComponents/Cards/NewProductcard/NewProductcard copy.jsx +497 -0
  34. package/srcoman/TabexComponents/Cards/NewProductcard/NewProductcard.jsx +512 -0
  35. package/srcoman/TabexComponents/Cards/ProductCardWithTextOnImage/ProductCardWithTextOnImage.jsx +304 -0
  36. package/srcoman/TabexComponents/Cards/Productcard6/Productcard6.jsx +257 -0
  37. package/srcoman/TabexComponents/Cards/Productcard7/Productcard7.jsx +277 -0
  38. package/srcoman/TabexComponents/Cards/Productcard_animatedbuttons/Productcard_animatedbuttons.jsx +352 -0
  39. package/srcoman/TabexComponents/Cards/Productcard_with_circularbg/Productcard_with_circularbg.jsx +291 -0
  40. package/srcoman/TabexComponents/Cards/Productcard_with_circularhover/Productcard_with_circularhover.jsx +315 -0
  41. package/srcoman/TabexComponents/Cards/Productcard_with_slideanimation/Productcard_with_slideanimation.jsx +327 -0
  42. package/srcoman/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants copy.jsx +408 -0
  43. package/srcoman/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants.jsx +528 -0
  44. package/srcoman/TabexComponents/Cards/Productcard_with_zoominonhover/Productcard_with_zoominonhover.jsx +558 -0
  45. package/srcoman/TabexComponents/Cards/Productcarddefault/Productcarddefault.jsx +275 -0
  46. package/srcoman/TabexComponents/Cards/Productccard_with_imageontopleft/Productccard_with_imageontopleft.jsx +286 -0
  47. package/srcoman/TabexComponents/Cards/Prouductcard_with_zoomhover/Prouductcard_with_zoomhover.jsx +137 -0
  48. package/srcoman/TabexComponents/Cards/QuantityButtonBasedProductCard/QuantityButtonBasedProductCard.jsx +613 -0
  49. package/srcoman/TabexComponents/Cards/ServiceCard/ServiceCard.jsx +413 -0
  50. package/srcoman/TabexComponents/Cards/Simplecategorycardwithtextbelow/Simplecategorycardwithtextbelow.jsx +225 -0
  51. package/srcoman/TabexComponents/Cards/Simpleproductcard/Simpleproductcard copy 2.jsx +525 -0
  52. package/srcoman/TabexComponents/Cards/Simpleproductcard/Simpleproductcard copy.jsx +455 -0
  53. package/srcoman/TabexComponents/Cards/Simpleproductcard/Simpleproductcard.jsx +905 -0
  54. package/srcoman/TabexComponents/Cards/StylishProductCard/StylishProductCard.jsx +337 -0
  55. package/srcoman/TabexComponents/Cards/TwoWayServiceSectionWithImage/TwoWayServiceSectionWithImage.jsx +347 -0
  56. package/srcoman/TabexComponents/Cards/UpSlideEffectCard/UpSlideEffectCard.jsx +605 -0
  57. package/srcoman/TabexComponents/Cards/UserCardWithSocialMediaOnHover/UserCardWithSocialMediaOnHover.jsx +185 -0
  58. package/srcoman/TabexComponents/Footer/Allinonefooter/Allinonefooter.jsx +528 -0
  59. package/srcoman/TabexComponents/Footer/Footer1/Footer1.jsx +780 -0
  60. package/srcoman/TabexComponents/Footer/Footer2/Footer2.jsx +527 -0
  61. package/srcoman/TabexComponents/Footer/Footer3/Footer3.jsx +411 -0
  62. package/srcoman/TabexComponents/Footer/Footer4/Footer4.jsx +466 -0
  63. package/srcoman/TabexComponents/Footer/Footer5/Footer5.jsx +714 -0
  64. package/srcoman/TabexComponents/Footer/Footer6/Footer6.jsx +290 -0
  65. package/srcoman/TabexComponents/Footer/Footer7/Footer7.jsx +428 -0
  66. package/srcoman/TabexComponents/Footer/Footer8/Footer8.jsx +533 -0
  67. package/srcoman/TabexComponents/Footer/FooterWithThreeColumns/FooterWithThreeColumns.jsx +330 -0
  68. package/srcoman/TabexComponents/Footer/ModernFooter/ModernFooter.jsx +562 -0
  69. package/srcoman/TabexComponents/Footer/Newsletterfooter/Newsletterfooter.jsx +865 -0
  70. package/srcoman/TabexComponents/Footer/Newsletterincenter/Newsletterincenter.jsx +647 -0
  71. package/srcoman/TabexComponents/Footer/PrivacyPolicy/PrivacyPolicy.jsx +110 -0
  72. package/srcoman/TabexComponents/Footer/Simplefooter/Simplefooter.jsx +316 -0
  73. package/srcoman/TabexComponents/Generalfiles/images/egyptflag.png +0 -0
  74. package/srcoman/TabexComponents/Generalfiles/images/noimage.png +0 -0
  75. package/srcoman/TabexComponents/Generalfiles/images/payment/cod.png +0 -0
  76. package/srcoman/TabexComponents/Generalfiles/images/payment/fawry.png +0 -0
  77. package/srcoman/TabexComponents/Generalfiles/images/payment/payment.png +0 -0
  78. package/srcoman/TabexComponents/Generalfiles/images/payment/paymob.png +0 -0
  79. package/srcoman/TabexComponents/Generalfiles/images/payment/paypal.png +0 -0
  80. package/srcoman/TabexComponents/Generalfiles/images/payment/visa.png +0 -0
  81. package/srcoman/TabexComponents/Generalfiles/images/shoppingcart.png +0 -0
  82. package/srcoman/TabexComponents/Generalfiles/images/tabexlogo.png +0 -0
  83. package/srcoman/TabexComponents/Generalfiles/images/unknownmaleuser.png +0 -0
  84. package/srcoman/TabexComponents/Generalfiles/images/usflag.png +0 -0
  85. package/srcoman/TabexComponents/Generalfiles/images/whatsapp.png +0 -0
  86. package/srcoman/TabexComponents/Headers/CTAHeader/CTAHeader.jsx +1259 -0
  87. package/srcoman/TabexComponents/Headers/CategoryFeaturingHeader/CategoryFeaturingHeader.jsx +1049 -0
  88. package/srcoman/TabexComponents/Headers/CenteredLogoHeaderWithSlider/CenteredLogoHeaderWithSlider.jsx +1040 -0
  89. package/srcoman/TabexComponents/Headers/ClassicHeader/ClassicHeader.jsx +1263 -0
  90. package/srcoman/TabexComponents/Headers/DownloadApp/DownloadApp.jsx +76 -0
  91. package/srcoman/TabexComponents/Headers/ElegantHeader/ElegantHeader.jsx +894 -0
  92. package/srcoman/TabexComponents/Headers/Gotoheader/Gotoheader.jsx +831 -0
  93. package/srcoman/TabexComponents/Headers/Header4/Header4.jsx +622 -0
  94. package/srcoman/TabexComponents/Headers/Header8/Header8 copy.jsx +1026 -0
  95. package/srcoman/TabexComponents/Headers/Header8/Header8.jsx +1976 -0
  96. package/srcoman/TabexComponents/Headers/HeaderRestaurant/HeaderRestaurant.jsx +776 -0
  97. package/srcoman/TabexComponents/Headers/HeaderWithAdSlider/HeaderWithAdSlider.jsx +927 -0
  98. package/srcoman/TabexComponents/Headers/HeaderWithSearchOnCenter/HeaderWithSearchOnCenter.jsx +704 -0
  99. package/srcoman/TabexComponents/Headers/HeaderWithUtilityBar/HeaderWithUtilityBar.jsx +902 -0
  100. package/srcoman/TabexComponents/Headers/Header_threesectionslogocentered/Header_threesectionslogocentered.jsx +953 -0
  101. package/srcoman/TabexComponents/Headers/Headerresponsive/Headerresponsive.jsx +1562 -0
  102. package/srcoman/TabexComponents/Headers/Headerresponsive/Headerresponsive11-1.jsx +1201 -0
  103. package/srcoman/TabexComponents/Headers/Headerresponsive/HeaderresponsiveOriginal.jsx +990 -0
  104. package/srcoman/TabexComponents/Headers/Headerresponsive/HeaderresponsiveStyle2 copy.jsx +1639 -0
  105. package/srcoman/TabexComponents/Headers/Headerresponsive/HeaderresponsiveStyle2.jsx +1610 -0
  106. package/srcoman/TabexComponents/Headers/Headerresponsive/Headerresponsivenew.jsx +1327 -0
  107. package/srcoman/TabexComponents/Headers/HeaderwithContactinfo/HeaderwithContactinfo.jsx +934 -0
  108. package/srcoman/TabexComponents/Headers/MarqueeHeader/MarqueeHeader.jsx +78 -0
  109. package/srcoman/TabexComponents/Headers/Modernheader/Modernheader.jsx +972 -0
  110. package/srcoman/TabexComponents/Headers/SearchCenteredHeader/SearchCenteredHeader.jsx +778 -0
  111. package/srcoman/TabexComponents/Headers/SearchFocusedHeader/SearchFocusedHeader.jsx +1159 -0
  112. package/srcoman/TabexComponents/Headers/Simpleheader/Simpleheader.jsx +1073 -0
  113. package/srcoman/TabexComponents/Headers/SocialMediaSection/SocialMediaSection.jsx +133 -0
  114. package/srcoman/TabexComponents/Headers/StylishHeader/StylishHeader.jsx +854 -0
  115. package/srcoman/TabexComponents/Headers/Subheader/Subheader.jsx +863 -0
  116. package/srcoman/TabexComponents/Headers/Subheader/Subheader13-3.jsx +685 -0
  117. package/srcoman/TabexComponents/Headers/Subheader/SubheaderOriginal.jsx +517 -0
  118. package/srcoman/TabexComponents/Headers/Subheader/Subheadernew.jsx +555 -0
  119. package/srcoman/TabexComponents/Headers/ThreeTieredHeader/ThreeTieredHeader.jsx +1042 -0
  120. package/srcoman/TabexComponents/Headers/TwoTieredHeader/TwoTieredHeader.jsx +1089 -0
  121. package/srcoman/TabexComponents/Headers/TwoTieredWithCenteredLogoHeader/TwoTieredWithCenteredLogoHeader.jsx +936 -0
  122. package/srcoman/TabexComponents/Sections/BackgroundImages/BacgroundThreeImageWithCategories/BacgroundThreeImageWithCategories.jsx +533 -0
  123. package/srcoman/TabexComponents/Sections/BackgroundImages/BackgroundFiveImageStructure/BackgroundFiveImageStructure.jsx +338 -0
  124. package/srcoman/TabexComponents/Sections/BackgroundImages/BackgroundImageWithTopContent/BackgroundImageWithTopContent.jsx +870 -0
  125. package/srcoman/TabexComponents/Sections/BackgroundImages/BackgroundSectionWithServicesCards/BackgroundSectionWithServicesCards.jsx +302 -0
  126. package/srcoman/TabexComponents/Sections/BackgroundImages/Backgroundimage1/Backgroundimage1.jsx +314 -0
  127. package/srcoman/TabexComponents/Sections/BackgroundImages/Backgroundimage_with_toppill/Backgroundimage_with_toppill.jsx +318 -0
  128. package/srcoman/TabexComponents/Sections/BackgroundImages/BackgroundimageandTextsection/BackgroundimageandTextsection.jsx +179 -0
  129. package/srcoman/TabexComponents/Sections/BackgroundImages/Bgimagewithsearchbar/Bgimagewithsearchbar.jsx +201 -0
  130. package/srcoman/TabexComponents/Sections/BackgroundImages/CollapsableSection/CollapsableSection.jsx +393 -0
  131. package/srcoman/TabexComponents/Sections/BackgroundImages/DynamicForm/DynamicForm copy 2.jsx +583 -0
  132. package/srcoman/TabexComponents/Sections/BackgroundImages/DynamicForm/DynamicForm copy.jsx +291 -0
  133. package/srcoman/TabexComponents/Sections/BackgroundImages/DynamicForm/DynamicForm.jsx +627 -0
  134. package/srcoman/TabexComponents/Sections/BackgroundImages/DynamicForm/habal +348 -0
  135. package/srcoman/TabexComponents/Sections/BackgroundImages/Filterwithcategoriespcoll/Filterwithcategoriespcoll.jsx +387 -0
  136. package/srcoman/TabexComponents/Sections/BackgroundImages/FullVideoSection/FullVideoSection.jsx +268 -0
  137. package/srcoman/TabexComponents/Sections/BackgroundImages/MapsSection/MapsSection.jsx +288 -0
  138. package/srcoman/TabexComponents/Sections/BackgroundImages/Popupcomponent/Popupcomponent.jsx +117 -0
  139. package/srcoman/TabexComponents/Sections/BackgroundImages/Searchcomponent/Searchcomponent.jsx +99 -0
  140. package/srcoman/TabexComponents/Sections/BackgroundImages/Section_with_rightbgcont/Section_with_rightbgcont.jsx +146 -0
  141. package/srcoman/TabexComponents/Sections/BackgroundImages/TextSectionConnectToWA/TextSectionConnectToWA.jsx +462 -0
  142. package/srcoman/TabexComponents/Sections/BackgroundImages/Threebgimages/Threebgimages.jsx +296 -0
  143. package/srcoman/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages copy.jsx +396 -0
  144. package/srcoman/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages.jsx +617 -0
  145. package/srcoman/TabexComponents/Sections/BackgroundImages/VideosSection/VideosSection.jsx +408 -0
  146. package/srcoman/TabexComponents/Sections/Cards/CardsSection/CardsSection copy 2.jsx +1399 -0
  147. package/srcoman/TabexComponents/Sections/Cards/CardsSection/CardsSection copy 3.jsx +1656 -0
  148. package/srcoman/TabexComponents/Sections/Cards/CardsSection/CardsSection copy.jsx +1540 -0
  149. package/srcoman/TabexComponents/Sections/Cards/CardsSection/CardsSection.jsx +1898 -0
  150. package/srcoman/TabexComponents/Sections/Cards/CardsSection/CardsSection13-3.jsx +1596 -0
  151. package/srcoman/TabexComponents/Sections/Cards/CardsSection/CardsSection21-10.jsx +1872 -0
  152. package/srcoman/TabexComponents/Sections/Cards/CardsSection/CardsSection_cosmoandmore.jsx +1880 -0
  153. package/srcoman/TabexComponents/Sections/Cards/CardsSection2/CardsSection2.jsx +726 -0
  154. package/srcoman/TabexComponents/Sections/Cards/CardsSectionwithfilter/CardsSectionwithfilter.jsx +719 -0
  155. package/srcoman/TabexComponents/Sections/Cards/ElegantCategoriesCardSection/ElegantCategoriesCardSection.jsx +406 -0
  156. package/srcoman/TabexComponents/Sections/Cards/ModernCardsSection/ModernCardsSection.jsx +929 -0
  157. package/srcoman/TabexComponents/Sections/Cards/RandomlyStructuredCollectionCards/RandomlyStructuredCollectionCards copy.jsx +646 -0
  158. package/srcoman/TabexComponents/Sections/Cards/RandomlyStructuredCollectionCards/RandomlyStructuredCollectionCards.jsx +962 -0
  159. package/srcoman/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.jsx +582 -0
  160. package/srcoman/TabexComponents/Sections/Cards/UsersCardsSection/UsersCardsSection.jsx +383 -0
  161. package/srcoman/TabexComponents/Sections/Slideshow/AboutSection/AboutSection.jsx +342 -0
  162. package/srcoman/TabexComponents/Sections/Slideshow/Backgroundimage_with_topcircle/Backgroundimage_with_topcircle.jsx +161 -0
  163. package/srcoman/TabexComponents/Sections/Slideshow/ContactUsSection/ContactUsSection.jsx +257 -0
  164. package/srcoman/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection copy.jsx +382 -0
  165. package/srcoman/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection.jsx +437 -0
  166. package/srcoman/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection19-11.jsx +757 -0
  167. package/srcoman/TabexComponents/Sections/Slideshow/HorizontalContactUsSection/HorizontalContactUsSection.jsx +346 -0
  168. package/srcoman/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx +1769 -0
  169. package/srcoman/TabexComponents/Sections/Slideshow/Image_with_rightwords/Image_with_rightwords.jsx +141 -0
  170. package/srcoman/TabexComponents/Sections/Slideshow/ServiceSectionWithImage/ServiceSectionWithImage.jsx +376 -0
  171. package/srcoman/TabexComponents/Sections/Slideshow/Servicesection/Servicesection.jsx +380 -0
  172. package/srcoman/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards.jsx +867 -0
  173. package/srcoman/TabexComponents/Sections/Slideshow/Slideshow_with_rotatedsquare/Slideshow_with_rotatedsquare.jsx +226 -0
  174. package/srcoman/TabexComponents/Sections/Slideshow/Slideshow_with_squarebg/Slideshow_with_squarebg.jsx +149 -0
  175. package/srcoman/TabexComponents/Sections/Slideshow/Slideshowdifferentanimations/Slideshowdifferentanimations.jsx +143 -0
  176. package/srcoman/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade copy.jsx +634 -0
  177. package/srcoman/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade.jsx +520 -0
  178. package/srcoman/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide copy.jsx +527 -0
  179. package/srcoman/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide.jsx +643 -0
  180. package/srcoman/TabexComponents/Sections/Slideshow/Slideshowslide/SlideshowslideOriginal.jsx +477 -0
  181. package/srcoman/TabexComponents/Sections/Slideshow/Slideshowslide/SlideshowslideRecent.jsx +1217 -0
  182. package/srcoman/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslideoriginal8-5.jsx +614 -0
  183. package/srcoman/TabexComponents/Sections/Slideshow/Slideshowzoom/Arrow.jsx +91 -0
  184. package/srcoman/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom copy.jsx +380 -0
  185. package/srcoman/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom.jsx +619 -0
  186. package/srcoman/TabexComponents/Sections/Slideshow/ThreeSectionsWithSlideshow/ThreeSectionsWithSlideshow copy.jsx +284 -0
  187. package/srcoman/TabexComponents/Sections/Slideshow/ThreeSectionsWithSlideshow/ThreeSectionsWithSlideshow.jsx +614 -0
  188. package/srcoman/TabexComponents/Sections/Slideshow/TwoWayServiceSectionWithImage/TwoWayServiceSectionWithImage.jsx +402 -0
  189. package/srcoman/TabexComponents/StaticPages/AccountInformation/AccountInformation.jsx +199 -0
  190. package/srcoman/TabexComponents/StaticPages/AddReview/AddReview.jsx +304 -0
  191. package/srcoman/TabexComponents/StaticPages/Afiiliatesignup/Afiiliatesignup.jsx +321 -0
  192. package/srcoman/TabexComponents/StaticPages/CartSlider/CartSlider.jsx +797 -0
  193. package/srcoman/TabexComponents/StaticPages/Categoriesdropdown/Categoriesdropdown.jsx +460 -0
  194. package/srcoman/TabexComponents/StaticPages/Checkout/Checkout copy.jsx +1306 -0
  195. package/srcoman/TabexComponents/StaticPages/Checkout/Checkout.jsx +1892 -0
  196. package/srcoman/TabexComponents/StaticPages/Checkout/Checkout10-1.jsx +1633 -0
  197. package/srcoman/TabexComponents/StaticPages/Checkout/Checkout26-9.jsx +1593 -0
  198. package/srcoman/TabexComponents/StaticPages/Checkout/Checkout9-9.jsx +1574 -0
  199. package/srcoman/TabexComponents/StaticPages/Filter/CollectionsFilterHorizontal.jsx +245 -0
  200. package/srcoman/TabexComponents/StaticPages/Filter/Filter copy 2.jsx +2888 -0
  201. package/srcoman/TabexComponents/StaticPages/Filter/Filter copy.jsx +1450 -0
  202. package/srcoman/TabexComponents/StaticPages/Filter/Filter.jsx +2771 -0
  203. package/srcoman/TabexComponents/StaticPages/Filter/Filter1-5.jsx +2624 -0
  204. package/srcoman/TabexComponents/StaticPages/Filter/Filter13-11.jsx +2758 -0
  205. package/srcoman/TabexComponents/StaticPages/Filter/Filter14-8.jsx +2753 -0
  206. package/srcoman/TabexComponents/StaticPages/Filter/Filter17-9.jsx +1495 -0
  207. package/srcoman/TabexComponents/StaticPages/Filter/VariantFilter.jsx +1271 -0
  208. package/srcoman/TabexComponents/StaticPages/InnerGroups/InnerGroups.jsx +62 -0
  209. package/srcoman/TabexComponents/StaticPages/Login/FacebookLoginButton.jsx +50 -0
  210. package/srcoman/TabexComponents/StaticPages/Login/GoogleLoginButton.jsx +35 -0
  211. package/srcoman/TabexComponents/StaticPages/Login/Login copy.jsx +1060 -0
  212. package/srcoman/TabexComponents/StaticPages/Login/Login.jsx +610 -0
  213. package/srcoman/TabexComponents/StaticPages/OrderSuccess/OrderSuccess.jsx +172 -0
  214. package/srcoman/TabexComponents/StaticPages/Ordershistory/Ordershistory.jsx +1584 -0
  215. package/srcoman/TabexComponents/StaticPages/Policies/Policies.jsx +291 -0
  216. package/srcoman/TabexComponents/StaticPages/PrivacyPolicy/PrivacyPolicy.jsx +194 -0
  217. package/srcoman/TabexComponents/StaticPages/Productinfo/Addreviewform.jsx +183 -0
  218. package/srcoman/TabexComponents/StaticPages/Productinfo/AddreviewformOriginal.jsx +128 -0
  219. package/srcoman/TabexComponents/StaticPages/Productinfo/Article_itemtype.jsx +255 -0
  220. package/srcoman/TabexComponents/StaticPages/Productinfo/DescriptionContent.jsx +176 -0
  221. package/srcoman/TabexComponents/StaticPages/Productinfo/ProductExtraFields.jsx +225 -0
  222. package/srcoman/TabexComponents/StaticPages/Productinfo/ProductExtras.jsx +92 -0
  223. package/srcoman/TabexComponents/StaticPages/Productinfo/ProductHeaderPricing.jsx +312 -0
  224. package/srcoman/TabexComponents/StaticPages/Productinfo/ProductReviews.jsx +235 -0
  225. package/srcoman/TabexComponents/StaticPages/Productinfo/Product_itemtype.jsx +1983 -0
  226. package/srcoman/TabexComponents/StaticPages/Productinfo/Product_itemtype10-1.jsx +1554 -0
  227. package/srcoman/TabexComponents/StaticPages/Productinfo/Product_itemtype3-11.jsx +1827 -0
  228. package/srcoman/TabexComponents/StaticPages/Productinfo/Product_itemtype31-3.jsx +1351 -0
  229. package/srcoman/TabexComponents/StaticPages/Productinfo/Product_itemtypeUpdated.jsx +1566 -0
  230. package/srcoman/TabexComponents/StaticPages/Productinfo/Productinfo.jsx +1946 -0
  231. package/srcoman/TabexComponents/StaticPages/Productinfo/Service_itemtype.jsx +1037 -0
  232. package/srcoman/TabexComponents/StaticPages/Productinfo/Serviceinfotabs.jsx +966 -0
  233. package/srcoman/TabexComponents/StaticPages/Productinfo/Variantoptions.jsx +632 -0
  234. package/srcoman/TabexComponents/StaticPages/Productinfo/Variantoptions21-9.jsx +324 -0
  235. package/srcoman/TabexComponents/StaticPages/Productinfo/staticroutersidenav.module.css +145 -0
  236. package/srcoman/TabexComponents/StaticPages/Productinfo4-4/Addreviewform.jsx +183 -0
  237. package/srcoman/TabexComponents/StaticPages/Productinfo4-4/AddreviewformOriginal.jsx +128 -0
  238. package/srcoman/TabexComponents/StaticPages/Productinfo4-4/DescriptionContent.jsx +140 -0
  239. package/srcoman/TabexComponents/StaticPages/Productinfo4-4/ProductExtraFields.jsx +225 -0
  240. package/srcoman/TabexComponents/StaticPages/Productinfo4-4/ProductHeaderPricing.jsx +310 -0
  241. package/srcoman/TabexComponents/StaticPages/Productinfo4-4/ProductReviews.jsx +235 -0
  242. package/srcoman/TabexComponents/StaticPages/Productinfo4-4/Product_itemtype.jsx +1672 -0
  243. package/srcoman/TabexComponents/StaticPages/Productinfo4-4/Product_itemtype10-1.jsx +1554 -0
  244. package/srcoman/TabexComponents/StaticPages/Productinfo4-4/Product_itemtype31-3.jsx +1351 -0
  245. package/srcoman/TabexComponents/StaticPages/Productinfo4-4/Product_itemtypeUpdated.jsx +1566 -0
  246. package/srcoman/TabexComponents/StaticPages/Productinfo4-4/Productinfo.jsx +1804 -0
  247. package/srcoman/TabexComponents/StaticPages/Productinfo4-4/Service_itemtype.jsx +560 -0
  248. package/srcoman/TabexComponents/StaticPages/Productinfo4-4/Serviceinfotabs.jsx +919 -0
  249. package/srcoman/TabexComponents/StaticPages/Productinfo4-4/Variantoptions.jsx +597 -0
  250. package/srcoman/TabexComponents/StaticPages/Productinfo4-4/Variantoptions21-9.jsx +324 -0
  251. package/srcoman/TabexComponents/StaticPages/Productinfo4-4/staticroutersidenav.module.css +145 -0
  252. package/srcoman/TabexComponents/StaticPages/RefundPolicy/RefundPolicy.jsx +194 -0
  253. package/srcoman/TabexComponents/StaticPages/Resetpassword/Resetpassword.jsx +338 -0
  254. package/srcoman/TabexComponents/StaticPages/Searchlist/Searchlist.jsx +359 -0
  255. package/srcoman/TabexComponents/StaticPages/ShippingPolicy/ShippingPolicy.jsx +113 -0
  256. package/srcoman/TabexComponents/StaticPages/Signup/CustomerAddressForm.jsx +277 -0
  257. package/srcoman/TabexComponents/StaticPages/Signup/CustomerInformationForm copy.jsx +1135 -0
  258. package/srcoman/TabexComponents/StaticPages/Signup/CustomerInformationForm.jsx +1364 -0
  259. package/srcoman/TabexComponents/StaticPages/Signup/Signup.jsx +199 -0
  260. package/srcoman/TabexComponents/StaticPages/Staticpagesrouter/Staticpagesrouter.jsx +292 -0
  261. package/srcoman/TabexComponents/StaticPages/TermsConditions/TermsConditions.jsx +113 -0
  262. package/srcoman/TabexComponents/StaticPages/VendorPage/VendorPage.jsx +162 -0
  263. package/srcoman/TabexComponents/StaticPages/Viewcart/Viewcart 10-10.jsx +765 -0
  264. package/srcoman/TabexComponents/StaticPages/Viewcart/Viewcart.jsx +786 -0
  265. package/srcoman/TabexComponents/StaticPages/Viewcart/Viewcart26-9.jsx +786 -0
  266. package/srcoman/TabexComponents/StaticPages/Viewcart/ViewcartOriginal.jsx +786 -0
  267. package/srcoman/TabexComponents/StaticPages/Viewcart/ViewcartUpdated.jsx +1425 -0
  268. package/srcoman/TabexComponents/StaticPages/Wishlist/Wishlist.jsx +844 -0
  269. package/srcoman/TabexComponents/StaticPages/Wishlist/Wishlist25-4.jsx +555 -0
  270. package/srcoman/TabexComponents/StaticPages/Wishlist/Wishlist26-9.jsx +555 -0
  271. package/srcoman/TabexComponents/StaticPages/Wishlist/WishlistOriginal.jsx +555 -0
  272. package/srcoman/TabexComponents/StaticPages/Wishlist/WishlistUpdated.jsx +815 -0
  273. package/srcoman/button.jsx +40 -0
  274. package/srcoman/index.jsx +334 -0
  275. package/srcoman/styles/Home.module.css +129 -0
  276. package/srcoman/styles/cards/Categorcycard_fullimage.module.css +14 -0
  277. package/srcoman/styles/cards/Categorycard_slidebgscaled.module.css +73 -0
  278. package/srcoman/styles/cards/Categorycard_withshapes.module.css +189 -0
  279. package/srcoman/styles/cards/ModernCardWithQuantityButton.module.css +30 -0
  280. package/srcoman/styles/cards/Productcard6.module.css +9 -0
  281. package/srcoman/styles/cards/Productccard_with_zoominonhover.module.css +51 -0
  282. package/srcoman/styles/cards/Prouductcard_with_zoomhover.module.css +61 -0
  283. package/srcoman/styles/cards/UserCardWithSocialMediaOnHover.module.css +65 -0
  284. package/srcoman/styles/cards/card23.module.css +60 -0
  285. package/srcoman/styles/cards/categorycard.module.css +84 -0
  286. package/srcoman/styles/cards/categorycard3.module.css +50 -0
  287. package/srcoman/styles/cards/categorycardwithtext.module.css +40 -0
  288. package/srcoman/styles/cards/generalCardsStyles.module.css +79 -0
  289. package/srcoman/styles/cards/productcard_animatedbuttons.module.css +139 -0
  290. package/srcoman/styles/cards/productcard_with_textonhover.module.css +18 -0
  291. package/srcoman/styles/cards/productcard_withtextonimage.module.css +0 -0
  292. package/srcoman/styles/cards/productccard_with_imageontopleft.module.css +85 -0
  293. package/srcoman/styles/general/bootstrap.css +4763 -0
  294. package/srcoman/styles/general/dropdown.css +206 -0
  295. package/srcoman/styles/general/editorbardropdown.module.css +94 -0
  296. package/srcoman/styles/general/filter.module.css +108 -0
  297. package/srcoman/styles/general/form.module.css +255 -0
  298. package/srcoman/styles/general/general.module.css +872 -0
  299. package/srcoman/styles/general/image-gallery.css +531 -0
  300. package/srcoman/styles/general/react-accessible-accordion.module.css +52 -0
  301. package/srcoman/styles/general/react-phone-input-2.module.css +927 -0
  302. package/srcoman/styles/general/scrollbtn.module.css +22 -0
  303. package/srcoman/styles/general/slick.module.css +166 -0
  304. package/srcoman/styles/general/tabs.module.css +119 -0
  305. package/srcoman/styles/general/workplaceeditor.module.css +328 -0
  306. package/srcoman/styles/globals.css +26 -0
  307. package/srcoman/styles/headers/CTAHeader.module.css +40 -0
  308. package/srcoman/styles/headers/CategoryFeaturingHeader.module.css +61 -0
  309. package/srcoman/styles/headers/Gotoheader.module.css +87 -0
  310. package/srcoman/styles/headers/Header7.module.css +50 -0
  311. package/srcoman/styles/headers/HeaderWithAdSlider.module.css +86 -0
  312. package/srcoman/styles/headers/HeaderWithSearchOnCenter.module.css +101 -0
  313. package/srcoman/styles/headers/HeaderWithUtilityBar.module.css +46 -0
  314. package/srcoman/styles/headers/Header_threesectionslogocentered.module.css +84 -0
  315. package/srcoman/styles/headers/NewHeader.module.css +101 -0
  316. package/srcoman/styles/headers/SearchFocusedHeader.module.css +62 -0
  317. package/srcoman/styles/headers/Sideheader.module.css +108 -0
  318. package/srcoman/styles/headers/Simpleheader.module.css +102 -0
  319. package/srcoman/styles/headers/classicheader.module.css +16 -0
  320. package/srcoman/styles/headers/classicheaderstyles.module.css +9 -0
  321. package/srcoman/styles/headers/dropdown.css +0 -0
  322. package/srcoman/styles/headers/header4.module.css +175 -0
  323. package/srcoman/styles/headers/header5.module.css +30 -0
  324. package/srcoman/styles/headers/header_contactinfo.module.css +53 -0
  325. package/srcoman/styles/headers/headerresturant.module.css +89 -0
  326. package/srcoman/styles/headers/modernheader.module.css +45 -0
  327. package/srcoman/styles/headers/stylishheader.module.css +24 -0
  328. package/srcoman/styles/headers/subheader.module.css +114 -0
  329. package/srcoman/styles/headers/threetieredheader.module.css +91 -0
  330. package/srcoman/styles/sections/BackgroundImageWithTopContent.css +4 -0
  331. package/srcoman/styles/sections/Backgroundimage1.module.css +17 -0
  332. package/srcoman/styles/sections/Backgroundimage_with_topcircle.module.css +28 -0
  333. package/srcoman/styles/sections/Freetext.module.css +18 -0
  334. package/srcoman/styles/sections/Section_with_rightbgcont.module.css +49 -0
  335. package/srcoman/styles/sections/Slideshow_with_rotatedsquare.module.css +35 -0
  336. package/srcoman/styles/sections/Slideshow_with_squarebg.module.css +39 -0
  337. package/srcoman/styles/staticpages/accordion.module.css +9 -0
  338. package/srcoman/styles/staticpages/cart.module.css +108 -0
  339. package/srcoman/styles/staticpages/dropdown.css +196 -0
  340. package/srcoman/styles/staticpages/filter.module.css +139 -0
  341. package/srcoman/styles/staticpages/image-gallery.css +481 -0
  342. package/srcoman/styles/staticpages/login.module.css +155 -0
  343. package/srcoman/styles/staticpages/productinfo.module.css +54 -0
  344. package/srcoman/styles/staticpages/shop.module.css +191 -0
  345. package/srcoman/styles/staticpages/signup.module.css +250 -0
  346. package/srcoman/styles/staticpages/staticroutersidenav.module.css +129 -0
  347. package/srcoman/styles/staticpages/viewcart.module.css +129 -0
  348. package/srcoman/styles/staticpages/wishlist.module.css +29 -0
@@ -0,0 +1,2753 @@
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
+ import { BsChevronLeft } from '@react-icons/all-files/bs/BsChevronLeft';
17
+ import { BsChevronRight } from '@react-icons/all-files/bs/BsChevronRight';
18
+ const Select = React.lazy(() => import('react-select'));
19
+
20
+ const Filter = (props) => {
21
+ const lang = props.actions.lang;
22
+ const langdetect = props.actions.langdetect;
23
+ const productfiltercontext = props.actions.productfiltercontext;
24
+ const setproductfiltercontext = props.actions.setproductfiltercontext;
25
+ const ProductFilterObjContext = props.actions.ProductFilterObjContext;
26
+ const setProductFilterObjContext = props.actions.setProductFilterObjContext;
27
+ const authdetailsContext = props.actions.authdetailsContext;
28
+ const fetchproductoptionsQueryContext = props.actions.fetchproductoptionsQueryContext;
29
+ const fetchCategoriesQueryContext = props.actions.fetchCategoriesQueryContext;
30
+ const routingcountext = props.actions.routingcountext;
31
+ const fetchcollectionsQueryContext = props.actions.fetchcollectionsQueryContext;
32
+ const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
33
+ const ikimagecredcontext = props.actions.ikimagecredcontext;
34
+ const [pricevalue, setpricevalue] = useState({ min: 0, max: 10000 });
35
+ const [productfeatuesarr, setproductfeatuesarr] = useState([]);
36
+
37
+ const fetchTabexCountriesQueryContext = props.actions.fetchTabexCountriesQueryContext;
38
+ const FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
39
+ const setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
40
+
41
+ const fetchTabexCitiesQueryContext = props.actions.fetchTabexCitiesQueryContext;
42
+ const fetchTabexStatesQueryContext = props.actions.fetchTabexStatesQueryContext;
43
+ const FetchTabexStatesPayloadobjContext = props.actions.FetchTabexStatesPayloadobjContext;
44
+ const setFetchTabexStatesPayloadobjContext = props.actions.setFetchTabexStatesPayloadobjContext;
45
+ const fetchProductFeaturesQueryContext = props.actions.fetchProductFeaturesQueryContext;
46
+
47
+ const [sectionproperties, setsectionproperties] = useState('');
48
+ // const [instfilters, setinstfilters] = useState([...authdetailsContext.instinfo.instfilters]);
49
+ const [instfilters, setinstfilters] = useState([]);
50
+ const [collectionstobevisible, setcollectionstobevisible] = useState([]);
51
+ const [instcollections, setinstcollections] = useState([]);
52
+ const [instcategories, setinstcategories] = useState([]);
53
+ // const [sortby, setSortby] = useState('Sort by');
54
+ const [raterangevalue, setraterangevalue] = useState({ min: 0, max: 5 });
55
+ const timeoutRef = React.useRef(null);
56
+ const [sortbycontext, setsortbycontext] = useState('');
57
+
58
+ const [otherfilters, setotherfilters] = useState([
59
+ {
60
+ payloadvalue: 'sortprice',
61
+ name: lang.price,
62
+ filterarray: [
63
+ { name: lang.pricelowtohigh, value: 'lowtohigh', isfilterselected: false },
64
+ { name: lang.pricehightolow, value: 'hightolow', isfilterselected: false },
65
+ ],
66
+ },
67
+ {
68
+ payloadvalue: 'sortdates',
69
+
70
+ name: lang.dates,
71
+ filterarray: [
72
+ { name: lang.recent, value: 'recent', isfilterselected: false },
73
+ { name: lang.oldest, value: 'old', isfilterselected: false },
74
+ ],
75
+ },
76
+ ]);
77
+ useEffect(() => {
78
+ filterupdater();
79
+ }, []);
80
+ useEffect(() => {
81
+ if (fetchproductoptionsQueryContext.isSuccess) {
82
+ setinstfilters([...fetchproductoptionsQueryContext?.data?.data?.productoptions]);
83
+ }
84
+ }, [fetchproductoptionsQueryContext.isSuccess]);
85
+ useEffect(() => {
86
+ if (fetchCategoriesQueryContext.isSuccess) {
87
+ setinstcategories([...fetchCategoriesQueryContext?.data?.data?.categories]);
88
+ }
89
+ }, [fetchCategoriesQueryContext.isSuccess]);
90
+ useEffect(() => {
91
+ if (fetchcollectionsQueryContext.isSuccess) {
92
+ setinstcollections([...fetchcollectionsQueryContext?.data?.data?.collections]);
93
+ }
94
+ }, [fetchcollectionsQueryContext.isSuccess]);
95
+ // useEffect(() => {
96
+ // // setinstfilters([...authdetailsContext.instinfo.instfilters]);
97
+ // // setinstcollections([...authdetailsContext.instinfo.instcollections]);
98
+ // // setinstcategories([...authdetailsContext?.instinfo?.instcategories]);
99
+ // }, [authdetailsContext]);
100
+ useEffect(() => {
101
+ if (props.sectionpropertiesprops != undefined && props.sectionpropertiesprops.length != 0) {
102
+ setsectionproperties(props.sectionpropertiesprops);
103
+ }
104
+ }, [props.sectionpropertiesprops]);
105
+ useEffect(() => {
106
+ filterupdater();
107
+ }, [ProductFilterObjContext]);
108
+ React.useEffect(() => {
109
+ if (timeoutRef.current !== null) {
110
+ clearTimeout(timeoutRef.current);
111
+ }
112
+
113
+ timeoutRef.current = setTimeout(() => {
114
+ if (raterangevalue.min != 0 || raterangevalue.max != 5) {
115
+ var tempfetchproductsfilerobjcontext = { ...ProductFilterObjContext };
116
+ tempfetchproductsfilerobjcontext.minrate = raterangevalue.min;
117
+ tempfetchproductsfilerobjcontext.maxrate = raterangevalue.max;
118
+ tempfetchproductsfilerobjcontext.page = 0;
119
+ setProductFilterObjContext({ ...tempfetchproductsfilerobjcontext });
120
+ // routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
121
+ }
122
+ }, 500);
123
+ }, [raterangevalue]);
124
+ useEffect(() => {
125
+ if (fetchCategoriesQueryContext.isSuccess && fetchcollectionsQueryContext.isSuccess) {
126
+ var parentcollections_for_collectionsFilter = null;
127
+ var IsValid_parentcollections_for_collectionsFilter = false;
128
+ if (
129
+ ProductFilterObjContext.parentcollections_for_collectionsFilter != undefined &&
130
+ ProductFilterObjContext.parentcollections_for_collectionsFilter != null &&
131
+ Array.isArray(ProductFilterObjContext.parentcollections_for_collectionsFilter)
132
+ ) {
133
+ parentcollections_for_collectionsFilter = ProductFilterObjContext.parentcollections_for_collectionsFilter;
134
+ }
135
+ if (parentcollections_for_collectionsFilter != null && Array.isArray(parentcollections_for_collectionsFilter) && parentcollections_for_collectionsFilter.length != 0) {
136
+ // parentcollections_for_collectionsFilter?.forEach(function(item,index){
137
+ // if(item.)
138
+ // })
139
+ IsValid_parentcollections_for_collectionsFilter = true;
140
+ }
141
+ if (sectionproperties?.filterretreivetype == 'Depend on chosen parent group') {
142
+ if (ProductFilterObjContext?.collections != undefined && ProductFilterObjContext?.collections != null && Array.isArray(ProductFilterObjContext?.collections)) {
143
+ var collectiontobevisible = [];
144
+ var parentidsfound = [];
145
+ if (ProductFilterObjContext.ProductFetchingType == 'Parent Collection' || IsValid_parentcollections_for_collectionsFilter == true) {
146
+ if (parentcollections_for_collectionsFilter != null) {
147
+ parentidsfound = parentcollections_for_collectionsFilter;
148
+ } else {
149
+ parentidsfound = ProductFilterObjContext?.collections;
150
+ }
151
+ } else if (ProductFilterObjContext.ProductFetchingType == 'Category') {
152
+ instcategories?.forEach(function (catitem, catindex) {
153
+ ProductFilterObjContext?.collections?.forEach(function (colitem2, colindex2) {
154
+ if (catitem.categoryid == colitem2) {
155
+ catitem?.parentcolletions?.forEach(function (parentcolitem, parentcolindex) {
156
+ parentidsfound.push(parentcolitem.parentcollectionid);
157
+ });
158
+ }
159
+ });
160
+ });
161
+ } else {
162
+ instcategories?.forEach(function (catitem, catindex) {
163
+ catitem?.parentcolletions?.forEach(function (parentcolitem, parentcolindex) {
164
+ parentcolitem?.collections?.forEach(function (colitem, colindex) {
165
+ ProductFilterObjContext?.collections?.forEach(function (colitem2, colindex2) {
166
+ if (colitem.collectionid == colitem2) {
167
+ parentidsfound.push(parentcolitem.parentcollectionid);
168
+ }
169
+ });
170
+ });
171
+ });
172
+ });
173
+ }
174
+
175
+ parentidsfound = parentidsfound.filter((val, id, array) => array.indexOf(val) == id);
176
+
177
+ if (parentidsfound?.length != 0) {
178
+ instcategories?.forEach(function (catitem, catindex) {
179
+ catitem?.parentcolletions?.forEach(function (parentcolitem, parentcolindex) {
180
+ parentidsfound?.forEach(function (parentidfounditem, parentidfoundindex) {
181
+ if (parentidfounditem == parentcolitem?.parentcollectionid) {
182
+ parentcolitem?.collections?.forEach(function (colitem, colindex) {
183
+ var iscolexists = false;
184
+ collectiontobevisible?.forEach(function (colitemex, colindexex) {
185
+ if (colitemex.collectionid == colitem.collectionid) {
186
+ iscolexists = true;
187
+ }
188
+ });
189
+ if (iscolexists == false) {
190
+ collectiontobevisible.push(colitem);
191
+ }
192
+ });
193
+ }
194
+ });
195
+ });
196
+ });
197
+
198
+ if (collectiontobevisible?.length != 0) {
199
+ setcollectionstobevisible(collectiontobevisible);
200
+ } else {
201
+ setcollectionstobevisible(instcollections);
202
+ }
203
+ } else {
204
+ setcollectionstobevisible(instcollections);
205
+ }
206
+ } else {
207
+ setcollectionstobevisible(instcollections);
208
+ }
209
+ } else {
210
+ setcollectionstobevisible(instcollections);
211
+ }
212
+ }
213
+ }, [ProductFilterObjContext, fetchCategoriesQueryContext.isSuccess, fetchcollectionsQueryContext.isSuccess, instcategories, instcollections]);
214
+ useEffect(() => {
215
+ if (productfeatuesarr.length != 0) {
216
+ var tempfetchproductsfilerobjcontext = { ...ProductFilterObjContext };
217
+ tempfetchproductsfilerobjcontext.prod_featruesar = productfeatuesarr;
218
+ setProductFilterObjContext({ ...tempfetchproductsfilerobjcontext });
219
+ filterrouting(tempfetchproductsfilerobjcontext);
220
+ }
221
+ }, [productfeatuesarr]);
222
+ useEffect(() => {
223
+ if (fetchTabexStatesQueryContext.isSuccess) {
224
+ if (ProductFilterObjContext.stateid != undefined && ProductFilterObjContext.stateid != null && ProductFilterObjContext.stateid != '' && ProductFilterObjContext.stateid != 'all') {
225
+ var tempFetchTabexStatesPayloadobjContext = { ...FetchTabexStatesPayloadobjContext };
226
+ tempFetchTabexStatesPayloadobjContext.functype = 'cities';
227
+ tempFetchTabexStatesPayloadobjContext.state_id = ProductFilterObjContext.stateid;
228
+ setFetchTabexStatesPayloadobjContext({ ...tempFetchTabexStatesPayloadobjContext });
229
+ }
230
+ }
231
+ }, [fetchTabexStatesQueryContext.isSuccess]);
232
+ const filterupdater = () => {
233
+ setTimeout(() => {
234
+ var tempFetchQueriesEngineContext = { ...FetchQueriesEngineContext };
235
+ tempFetchQueriesEngineContext.fetchtabexcountries = true;
236
+ setFetchQueriesEngineContext(tempFetchQueriesEngineContext);
237
+ }, 100);
238
+ if (ProductFilterObjContext.countryid != undefined && ProductFilterObjContext.countryid != null && ProductFilterObjContext.countryid != '' && ProductFilterObjContext.countryid != 'all') {
239
+ var tempFetchTabexStatesPayloadobjContext = { ...FetchTabexStatesPayloadobjContext };
240
+ tempFetchTabexStatesPayloadobjContext.functype = 'states';
241
+ tempFetchTabexStatesPayloadobjContext.country_id = ProductFilterObjContext.countryid;
242
+ setFetchTabexStatesPayloadobjContext({ ...tempFetchTabexStatesPayloadobjContext });
243
+ }
244
+
245
+ if (instfilters.length != 0) {
246
+ var tempinstfilters = [...instfilters];
247
+ tempinstfilters?.forEach(function (instfilteritem, instfilterindex) {
248
+ instfilteritem.productvaluesfilter.forEach(function (valefilteritem, valefilteritemindex) {
249
+ valefilteritem.isfilterselected = false;
250
+ });
251
+ });
252
+ ProductFilterObjContext?.FilterOptions?.forEach(function (filteritem, filterindex) {
253
+ tempinstfilters?.forEach(function (instfilteritem, instfilterindex) {
254
+ instfilteritem?.productvaluesfilter?.forEach(function (valefilteritem, valefilteritemindex) {
255
+ if (filteritem.valueid == valefilteritem.valueid) {
256
+ valefilteritem.isfilterselected = true;
257
+ }
258
+ });
259
+ });
260
+ });
261
+ setinstfilters([...tempinstfilters]);
262
+ }
263
+ if (instcategories.length != 0) {
264
+ var tempInstcategories = [...instcategories];
265
+ tempInstcategories.forEach(function (catitem, catindex) {
266
+ catitem.parentcolletions.forEach(function (parentcolitem, parentcolindex) {
267
+ parentcolitem.collections.forEach(function (colitem, colindex) {
268
+ colitem.isfilterselected = false;
269
+ });
270
+ });
271
+ });
272
+
273
+ ProductFilterObjContext?.collections?.forEach(function (filteritem, filterindex) {
274
+ tempInstcategories.forEach(function (catitem, catindex) {
275
+ catitem.parentcolletions.forEach(function (parentcolitem, parentcolindex) {
276
+ parentcolitem.collections.forEach(function (colitem, colindex) {
277
+ if (colitem.collectionid == filteritem) {
278
+ colitem.isfilterselected = true;
279
+ }
280
+ });
281
+ });
282
+ });
283
+ });
284
+
285
+ setinstcategories([...tempInstcategories]);
286
+ }
287
+ if (instcollections.length != 0) {
288
+ var tempInstcollections = [...instcollections];
289
+ tempInstcollections.forEach(function (instfilteritem, valefilteritemindex) {
290
+ instfilteritem.isfilterselected = false;
291
+ });
292
+ ProductFilterObjContext?.collections?.forEach(function (filteritem, filterindex) {
293
+ tempInstcollections?.forEach(function (instfilteritem, instfilterindex) {
294
+ if (instfilteritem.collectionid == filteritem) {
295
+ instfilteritem.isfilterselected = true;
296
+ }
297
+ });
298
+ });
299
+ setinstcollections([...tempInstcollections]);
300
+ }
301
+ };
302
+ const setfilterfunc = (valueid, valueindex, mainparentindex, type) => {
303
+ var tempfetchproductsfilerobjcontext = { ...ProductFilterObjContext };
304
+ if (type == 'clearfilters') {
305
+ tempfetchproductsfilerobjcontext.FilterOptions = [];
306
+ } else {
307
+ var FilterExists = false;
308
+ tempfetchproductsfilerobjcontext?.FilterOptions?.forEach(function (filteritem, filterindex) {
309
+ if (filteritem.valueid == valueid) {
310
+ FilterExists = true;
311
+ tempfetchproductsfilerobjcontext.FilterOptions.splice(filterindex, 1);
312
+ }
313
+ });
314
+ if (!FilterExists) {
315
+ tempfetchproductsfilerobjcontext.FilterOptions.push({ valueid: valueid });
316
+ }
317
+ }
318
+ if (tempfetchproductsfilerobjcontext.FilterOptions.length == 0) {
319
+ tempfetchproductsfilerobjcontext.isfilter = 0;
320
+ } else {
321
+ tempfetchproductsfilerobjcontext.isfilter = 1;
322
+ }
323
+ tempfetchproductsfilerobjcontext.page = 0;
324
+ setProductFilterObjContext({ ...tempfetchproductsfilerobjcontext });
325
+ filterrouting(tempfetchproductsfilerobjcontext);
326
+ // routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
327
+ };
328
+ const setCollectionFilterFunc = (collectionid) => {
329
+ var tempfetchproductsfilerobjcontext = { ...ProductFilterObjContext };
330
+ var CollectionExists = false;
331
+ if (tempfetchproductsfilerobjcontext.ProductFetchingType == 'Parent Collection' && tempfetchproductsfilerobjcontext.parentcollections_for_collectionsFilter == undefined) {
332
+ tempfetchproductsfilerobjcontext.parentcollections_for_collectionsFilter = tempfetchproductsfilerobjcontext.collections;
333
+ }
334
+ tempfetchproductsfilerobjcontext?.collections?.forEach(function (filteritem, filterindex) {
335
+ if (sectionproperties.filterdirection != 'Horizontal') {
336
+ if (filteritem == collectionid) {
337
+ CollectionExists = true;
338
+ tempfetchproductsfilerobjcontext.collections.splice(filterindex, 1);
339
+ }
340
+ }
341
+ });
342
+
343
+ if (!CollectionExists) {
344
+ if (tempfetchproductsfilerobjcontext.collections != undefined && Array.isArray(tempfetchproductsfilerobjcontext.collections)) {
345
+ if (sectionproperties.filterType != 'Title & Sort By Only' && sectionproperties.filterdirection == 'Horizontal') {
346
+ tempfetchproductsfilerobjcontext.collections = [];
347
+ tempfetchproductsfilerobjcontext.collections.push(collectionid);
348
+ } else {
349
+ tempfetchproductsfilerobjcontext.collections.push(collectionid);
350
+ }
351
+ } else {
352
+ tempfetchproductsfilerobjcontext.collections = [collectionid];
353
+ }
354
+ }
355
+
356
+ tempfetchproductsfilerobjcontext.page = 0;
357
+ tempfetchproductsfilerobjcontext.ProductFetchingType = 'Random';
358
+ setProductFilterObjContext({ ...tempfetchproductsfilerobjcontext });
359
+ filterrouting(tempfetchproductsfilerobjcontext);
360
+ // routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
361
+ };
362
+ const AccordionInner = (parentcollectionindex, parentcollectionitem) => {
363
+ return (
364
+ <AccordionItem uuid={parentcollectionindex}>
365
+ <AccordionItemHeading>
366
+ <AccordionItemButton>
367
+ <div className={filter_cssstyles.titlecontainer + ' row m-0 p-0 mb-2 pl-md-3 pr-md-3 '}>
368
+ <div className="col-lg-10 col-md-10 col-sm-10 p-0">
369
+ <p
370
+ className={
371
+ langdetect == 'en'
372
+ ? filter_cssstyles.pCollectionName + ' collapsetitle text-capitalize m-0 p-0 '
373
+ : filter_cssstyles.pCollectionName + ' collapsetitle text-capitalize m-0 p-0 text-right'
374
+ }
375
+ >
376
+ {langdetect == 'en' ? parentcollectionitem.title_en : parentcollectionitem.title_ar}
377
+ </p>
378
+ </div>
379
+ <div className="col-lg-2 col-md-2 col-sm-2 p-0">
380
+ <AccordionItemState>
381
+ {(state) => {
382
+ if (state.expanded == true) {
383
+ return (
384
+ <i className={filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '}>
385
+ <FiChevronUp />
386
+ </i>
387
+ );
388
+ } else {
389
+ return (
390
+ <i className={filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '}>
391
+ <FiChevronDown />
392
+ </i>
393
+ );
394
+ }
395
+ }}
396
+ </AccordionItemState>
397
+ </div>
398
+ </div>
399
+ </AccordionItemButton>
400
+ </AccordionItemHeading>
401
+ <AccordionItemPanel className="p-0">
402
+ <div className="row mt-0 mb-2 ml-0 mr-0 d-lg-flex ">
403
+ <div class="col-lg-12 mb-3 allcentered">
404
+ <p
405
+ class={filter_cssstyles.explorebtn + ' m-0 p-0 cursor-pointer text-capitalize '}
406
+ style={{ textDecoration: 'underline' }}
407
+ onClick={() => {
408
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'parentcollections/' + parentcollectionitem.parentcollectionid);
409
+ }}
410
+ >
411
+ {langdetect == 'en' ? sectionproperties.explorebtncontenten : sectionproperties.explorebtncontentar}{' '}
412
+ {langdetect == 'en' ? parentcollectionitem.title_en : parentcollectionitem.title_ar}
413
+ </p>
414
+ </div>
415
+ <div className={'col-lg-12 pl-md-3 pr-md-3'}>
416
+ <div
417
+ className={
418
+ langdetect == 'en' ? `${filterstyles.timeline} ${filterstyles.timelinetrans}` + ' p-sm-0 ' : `${filterstyles.timeline} ${filterstyles.timelinetrans}` + ' p-sm-0 '
419
+ }
420
+ >
421
+ {parentcollectionitem?.collections?.map((collectionitem, collectionindex) => {
422
+ if (collectionitem.isinftiler == 1) {
423
+ return (
424
+ <div
425
+ className={
426
+ `${filterstyles.border_left_line} ${filterstyles.timelineinnercont} ${filter_cssstyles.timelineinnercont}
427
+ ${collectionitem.isfilterselected ? `${filter_cssstyles.timelineinnercont_active} ${filterstyles.timelineinnercont_active}` : ''}
428
+ ` + ' d-flex align-items-center pb-3 '
429
+ }
430
+ onClick={() => {
431
+ setCollectionFilterFunc(collectionitem.collectionid);
432
+ }}
433
+ >
434
+ <div
435
+ className={
436
+ ` ${collectionitem.isfilterselected ? filter_cssstyles.btn_item_active : ''} ${filterstyles.btn_item} ${filter_cssstyles.btn_item}` +
437
+ ' d-flex align-items-center '
438
+ }
439
+ >
440
+ <i className="h-100 d-flex align-items-center"></i>
441
+ </div>
442
+ <div className={langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'}>
443
+ <p
444
+ className={`${filterstyles.timeline_text} ${filter_cssstyles.timeline_text}` + ' m-0 p-0 '}
445
+ style={{
446
+ color: collectionitem.isfilterselected ? sectionproperties.activecat_color : '',
447
+ }}
448
+ >
449
+ {langdetect == 'en' ? collectionitem.title_en : collectionitem.title_ar}
450
+ </p>
451
+ </div>
452
+ </div>
453
+ );
454
+ }
455
+ })}
456
+ </div>
457
+ </div>
458
+ </div>
459
+ </AccordionItemPanel>
460
+ </AccordionItem>
461
+ );
462
+ };
463
+ const AccordionOuter = (categoryItem, categoryIndex) => {
464
+ return (
465
+ <AccordionItem uuid={categoryIndex}>
466
+ <AccordionItemHeading>
467
+ <AccordionItemButton>
468
+ <div className={filter_cssstyles.titlecontainer + ' row m-0 p-0 mb-1 pl-md-3 pr-md-3 '}>
469
+ <div className="col-lg-10 col-md-10 col-sm-10 p-0 d-flex align-items-center justify-content-start">
470
+ <p className={filter_cssstyles.categoryName + ' collapsetitle text-capitalize m-0 p-0 '}>{langdetect == 'en' ? categoryItem.title_en : categoryItem.title_ar}</p>
471
+ </div>
472
+ <div className="col-lg-2 col-md-2 col-sm-2 p-0">
473
+ <AccordionItemState>
474
+ {(state) => {
475
+ if (state.expanded == true) {
476
+ return (
477
+ <i className={filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '}>
478
+ <FiChevronUp />
479
+ </i>
480
+ );
481
+ } else {
482
+ return (
483
+ <i className={filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '}>
484
+ <FiChevronDown />
485
+ </i>
486
+ );
487
+ }
488
+ }}
489
+ </AccordionItemState>
490
+ </div>
491
+ <div className="col-lg-12 p-0">
492
+ <hr className="mt-3 mb-2" />
493
+ </div>
494
+ </div>
495
+ </AccordionItemButton>
496
+ </AccordionItemHeading>
497
+ <AccordionItemPanel className="p-0">
498
+ <div className="row mt-0 mb-2 ml-0 mr-0 d-lg-flex">
499
+ <div class="col-lg-12 mb-3 allcentered">
500
+ <p
501
+ class={filter_cssstyles.explorebtn + ' m-0 p-0 cursor-pointer text-capitalize '}
502
+ style={{ textDecoration: 'underline' }}
503
+ onClick={() => {
504
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'categories/' + categoryItem.categoryid);
505
+ }}
506
+ >
507
+ {langdetect == 'en' ? sectionproperties.explorebtncontenten : sectionproperties.explorebtncontentar}{' '}
508
+ {langdetect == 'en' ? categoryItem.title_en : categoryItem.title_ar}
509
+ </p>
510
+ </div>
511
+ {instcategories[categoryIndex]?.parentcolletions.map((parentcollectionitem, parentcollectionindex) => {
512
+ if (parentcollectionitem.isinftiler == 1) {
513
+ return (
514
+ <div class="col-lg-12">
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
+ {AccordionInner(parentcollectionindex, parentcollectionitem)}
518
+ </Accordion>
519
+ )}
520
+ {sectionproperties.expandall == 'No' && (
521
+ <Accordion allowMultipleExpanded={true} allowZeroExpanded={true}>
522
+ {AccordionInner(parentcollectionindex, parentcollectionitem)}
523
+ </Accordion>
524
+ )}
525
+ </div>
526
+ );
527
+ }
528
+ })}
529
+ </div>
530
+ </AccordionItemPanel>
531
+ </AccordionItem>
532
+ );
533
+ };
534
+ const CategoriesFilter = () => {
535
+ return (
536
+ <div class="col-lg-12 p-0">
537
+ {instcategories?.map((categoryItem, categoryIndex) => {
538
+ if (categoryItem.isinftiler == 1) {
539
+ return (
540
+ <div class="col-lg-12 p-0">
541
+ {sectionproperties.expandall == 'Yes' && (
542
+ <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]}>
543
+ {AccordionOuter(categoryItem, categoryIndex)}
544
+ </Accordion>
545
+ )}
546
+ {sectionproperties.expandall == 'No' && (
547
+ <Accordion allowMultipleExpanded={true} allowZeroExpanded={true}>
548
+ {AccordionOuter(categoryItem, categoryIndex)}
549
+ </Accordion>
550
+ )}
551
+ </div>
552
+ );
553
+ }
554
+ })}
555
+ </div>
556
+ );
557
+ };
558
+ const CollectionsFilter = () => {
559
+ return (
560
+ <div class="col-lg-12 p-0">
561
+ <Accordion allowMultipleExpanded={true} allowZeroExpanded={true} preExpanded={[0, 1, 2, 3]}>
562
+ <AccordionItem uuid={0}>
563
+ <AccordionItemHeading>
564
+ <AccordionItemButton>
565
+ <div className={filter_cssstyles.titlecontainer + ' row m-0 p-0 mb-2 pl-md-3 pr-md-3 '}>
566
+ <div className="col-lg-10 col-md-10 col-sm-10 p-0">
567
+ <p className={langdetect == 'en' ? filter_cssstyles.collapsetitle + ' m-0 p-0 ' : filter_cssstyles.collapsetitle + ' m-0 p-0 text-right'}>
568
+ {langdetect == 'en' ? sectionproperties.filtercollectiontitle_en : sectionproperties.filtercollectiontitle_ar}
569
+ </p>
570
+ </div>
571
+ <div className="col-lg-2 col-md-2 col-sm-2 p-0">
572
+ <AccordionItemState>
573
+ {(state) => {
574
+ if (state.expanded == true) {
575
+ return (
576
+ <i className={filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '}>
577
+ <FiChevronUp />
578
+ </i>
579
+ );
580
+ } else {
581
+ return (
582
+ <i className={filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '}>
583
+ <FiChevronDown />
584
+ </i>
585
+ );
586
+ }
587
+ }}
588
+ </AccordionItemState>
589
+ </div>
590
+ </div>
591
+ </AccordionItemButton>
592
+ </AccordionItemHeading>
593
+ <AccordionItemPanel className="p-0">
594
+ <div className="row mt-3 mb-2 ml-0 mr-0 d-lg-flex pl-md-3 pr-md-3">
595
+ <div className={'col-lg-12'}>
596
+ <div
597
+ className={
598
+ langdetect == 'en'
599
+ ? `${filterstyles.timeline} ${filterstyles.timelinetrans}` + ' p-sm-0 '
600
+ : `${filterstyles.timeline} ${filterstyles.timelinetrans}` + ' p-sm-0 '
601
+ }
602
+ >
603
+ {collectionstobevisible.map((item, index) => {
604
+ return (
605
+ <div
606
+ className={
607
+ `${filterstyles.border_left_line} ${filterstyles.timelineinnercont} ${filter_cssstyles.timelineinnercont}
608
+ ${item.isfilterselected ? `${filter_cssstyles.timelineinnercont_active} ${filterstyles.timelineinnercont_active}` : ''}
609
+ ` + ' d-flex align-items-center pb-3 '
610
+ }
611
+ onClick={() => {
612
+ setCollectionFilterFunc(item.collectionid);
613
+ }}
614
+ >
615
+ <div class="mr-2">
616
+ <div
617
+ className={
618
+ ` ${item.isfilterselected ? filter_cssstyles.btn_item_active : ''} ${filterstyles.btn_item} ${filter_cssstyles.btn_item}` +
619
+ ' d-flex align-items-center '
620
+ }
621
+ >
622
+ <i className="h-100 d-flex align-items-center"></i>
623
+ </div>
624
+ </div>
625
+ <div className={langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'}>
626
+ <p
627
+ className={`${filterstyles.timeline_text} ${filter_cssstyles.timeline_text}` + ' m-0 p-0 '}
628
+ style={{
629
+ color: item.isfilterselected ? sectionproperties.activecat_color : '',
630
+ }}
631
+ >
632
+ {langdetect == 'en' ? item.title_en : item.title_ar}
633
+ </p>
634
+ </div>
635
+ </div>
636
+ );
637
+ })}
638
+ </div>
639
+ {sectionproperties.showshowallbtn == 'Show' && (
640
+ <div class="col-lg-12 allcentered">
641
+ <div class={filter_cssstyles.showallbtn} style={{}}>
642
+ <p
643
+ class="m-0 p-0"
644
+ onClick={() => {
645
+ setcollectionstobevisible(instcollections);
646
+ }}
647
+ // style={{ cursor: 'pointer' }}
648
+ >
649
+ {langdetect == 'en' ? sectionproperties.showalltexten : sectionproperties.showalltextar}
650
+ </p>
651
+ </div>
652
+ </div>
653
+ )}
654
+ </div>
655
+ </div>
656
+ </AccordionItemPanel>
657
+ </AccordionItem>
658
+ {/* <hr className="mt-3 mb-3" /> */}
659
+ </Accordion>
660
+ </div>
661
+ );
662
+ };
663
+ const DynamicFilter = () => {
664
+ return (
665
+ <div class="row m-0 w-100">
666
+ <div class="col-lg-12 p-0">
667
+ {fetchProductFeaturesQueryContext?.isSuccess && (
668
+ <div className="row mt-0 mb-2 ml-0 mr-0 d-lg-flex w-100">
669
+ {fetchProductFeaturesQueryContext?.data?.data?.productfeatues?.map(function (item, index) {
670
+ // if (item.type == 'Selectbox') {
671
+ // var selectboxarr = [];
672
+ // item?.featuresselectbovalue?.forEach(function (slecitem) {
673
+ // var itemlabel = '';
674
+ // if (langdetect == 'en') {
675
+ // itemlabel = slecitem.value_en;
676
+ // } else {
677
+ // itemlabel = slecitem.value_ar;
678
+ // }
679
+ // selectboxarr.push({ label: itemlabel, value: slecitem.value_en });
680
+ // });
681
+ // return (
682
+ // <div class="col-lg-12 col-md-12 d-flex flex-column align-items-center justify-content-start mb-3 p-0">
683
+ // <label
684
+ // className={' mb-3 w-100 '}
685
+ // style={{
686
+ // textAlign: langdetect == 'en' ? 'left' : 'right',
687
+ // color: sectionproperties.filtertitle_color,
688
+ // color: sectionproperties.filtertitle_color,
689
+ // fontSize: sectionproperties.filtertitle_fontsize + 'px',
690
+ // fontWeight: sectionproperties.filtertitle_fontweight,
691
+ // color: sectionproperties.filtertitle_color,
692
+ // textTransform: 'capitalize',
693
+ // }}
694
+ // >
695
+ // {langdetect == 'en' ? item.name_en : item.name_ar}
696
+ // </label>
697
+ // <div class={'col-lg-12 p-0'}>
698
+ // <Select
699
+ // options={selectboxarr}
700
+ // styles={langdetect == 'en' ? selectcustomStyles : selectcustomStylesTranslated}
701
+ // placeholder={''}
702
+ // onChange={(e) => {
703
+ // var isattrexists = false;
704
+ // var tempproductfeatuesarr = [...productfeatuesarr];
705
+ // tempproductfeatuesarr?.forEach(function (attritem, attrindex) {
706
+ // if (attritem.id == item.id) {
707
+ // tempproductfeatuesarr[attrindex].value = e.value;
708
+ // isattrexists = true;
709
+ // }
710
+ // });
711
+ // if (isattrexists == false) {
712
+ // tempproductfeatuesarr.push({
713
+ // id: item.id,
714
+ // value: e.value,
715
+ // });
716
+ // }
717
+ // setproductfeatuesarr([...tempproductfeatuesarr]);
718
+ // }}
719
+ // />
720
+ // </div>
721
+ // </div>
722
+ // );
723
+ // }
724
+ if (item.type == 'Selectbox') {
725
+ var selectboxarr = [];
726
+ // item?.featuresselectbovalue?.forEach(function (slecitem) {
727
+ // var itemlabel = '';
728
+ // var itemlabelar = '';
729
+ // if (langdetect == 'en') {
730
+ // itemlabel = slecitem.value_en;
731
+ // } else {
732
+ // itemlabel = slecitem.value_ar;
733
+ // }
734
+ // selectboxarr.push({ label: itemlabel, value: slecitem.value_en });
735
+ // });
736
+ return (
737
+ <Accordion allowMultipleExpanded={true} allowZeroExpanded={true} preExpanded={[0, 1, 2, 3]}>
738
+ <AccordionItem uuid={index}>
739
+ <AccordionItemHeading>
740
+ <AccordionItemButton>
741
+ <div className={filter_cssstyles.titlecontainer + ' row m-0 w-100 p-0 mb-2 pl-md-3 pr-md-3 '}>
742
+ <div className="col-lg-10 col-md-10 col-sm-10 p-0">
743
+ <p
744
+ className={
745
+ langdetect == 'en'
746
+ ? filter_cssstyles.collapsetitle + ' collapsetitle m-0 p-0 '
747
+ : filter_cssstyles.collapsetitle + ' collapsetitle m-0 p-0 text-right'
748
+ }
749
+ >
750
+ {langdetect == 'en' ? item.name_en : item.name_ar}
751
+ </p>
752
+ </div>
753
+ <div className="col-lg-2 col-md-2 col-sm-2 p-0">
754
+ <AccordionItemState>
755
+ {(state) => {
756
+ if (state.expanded == true) {
757
+ return (
758
+ <i className={filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '}>
759
+ <FiChevronUp />
760
+ </i>
761
+ );
762
+ } else {
763
+ return (
764
+ <i className={filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '}>
765
+ <FiChevronDown />
766
+ </i>
767
+ );
768
+ }
769
+ }}
770
+ </AccordionItemState>
771
+ </div>
772
+ </div>
773
+ </AccordionItemButton>
774
+ </AccordionItemHeading>
775
+ <AccordionItemPanel className="p-0">
776
+ <div className="row mt-3 mb-2 ml-0 mr-0 d-lg-flex px-3 px-md-4-2">
777
+ <div
778
+ className={
779
+ langdetect == 'en' ? `${filterstyles.timeline}` + ' p-sm-0 ' : `${filterstyles.timeline} ${filterstyles.timelinetrans}` + ' p-sm-0 '
780
+ }
781
+ >
782
+ {item?.featuresselectbovalue?.map((slecitem, slecindex) => {
783
+ return (
784
+ <div
785
+ className={
786
+ `${filterstyles.border_left_line} ${filterstyles.timelineinnercont} ${filter_cssstyles.timelineinnercont}
787
+ ${slecitem.isfilterselected ? `${filter_cssstyles.timelineinnercont_active} ${filterstyles.timelineinnercont_active}` : ''}
788
+
789
+ ` + ' d-flex align-items-center pb-3 '
790
+ }
791
+ onClick={(e) => {
792
+ var isattrexists = false;
793
+ var tempproductfeatuesarr = [...productfeatuesarr];
794
+ tempproductfeatuesarr?.forEach(function (attritem, attrindex) {
795
+ if (attritem.id == slecitem.featureid) {
796
+ tempproductfeatuesarr[attrindex].value = slecitem.value_en;
797
+ isattrexists = true;
798
+ }
799
+ });
800
+ if (isattrexists == false) {
801
+ tempproductfeatuesarr.push({
802
+ id: slecitem.featureid,
803
+ value: slecitem.value_en,
804
+ });
805
+ }
806
+ setproductfeatuesarr([...tempproductfeatuesarr]);
807
+
808
+ // setfilterfunc(valueitem.valueid, valueindex, index, 'assign');
809
+ }}
810
+ >
811
+ <div>
812
+ <div
813
+ className={
814
+ ` ${slecitem.isfilterselected ? filter_cssstyles.btn_item_active : ''} ${filterstyles.btn_item} ${
815
+ filter_cssstyles.btn_item
816
+ }` + ' d-flex align-items-center '
817
+ }
818
+ >
819
+ <i className="h-100 d-flex align-items-center"></i>
820
+ </div>
821
+ </div>
822
+
823
+ <div className={langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'}>
824
+ <p
825
+ className={`${filterstyles.timeline_text} ${filter_cssstyles.timeline_text}` + ' m-0 p-0 '}
826
+ style={{
827
+ color: slecitem.isfilterselected ? sectionproperties.activecat_color : '',
828
+ }}
829
+ >
830
+ {langdetect == 'en' ? slecitem.value_en : slecitem.value_ar}
831
+ </p>
832
+ </div>
833
+ </div>
834
+ );
835
+ })}
836
+ </div>
837
+ </div>
838
+ </AccordionItemPanel>
839
+ </AccordionItem>
840
+ </Accordion>
841
+ // <div class="col-lg-12 col-md-12 d-flex flex-column align-items-center justify-content-start mb-3 p-0">
842
+ // <label
843
+ // className={' mb-3 w-100 '}
844
+ // style={{
845
+ // textAlign: langdetect == 'en' ? 'left' : 'right',
846
+ // color: sectionproperties.filtertitle_color,
847
+ // color: sectionproperties.filtertitle_color,
848
+ // fontSize: sectionproperties.filtertitle_fontsize + 'px',
849
+ // fontWeight: sectionproperties.filtertitle_fontweight,
850
+ // color: sectionproperties.filtertitle_color,
851
+ // textTransform: 'capitalize',
852
+ // }}
853
+ // >
854
+ // {langdetect == 'en' ? item.name_en : item.name_ar}
855
+ // </label>
856
+ // <div class={'col-lg-12 p-0'}>
857
+ // <Select
858
+ // options={selectboxarr}
859
+ // styles={langdetect == 'en' ? selectcustomStyles : selectcustomStylesTranslated}
860
+ // placeholder={''}
861
+ // onChange={(e) => {
862
+ // var isattrexists = false;
863
+ // var tempproductfeatuesarr = [...productfeatuesarr];
864
+ // tempproductfeatuesarr?.forEach(function (attritem, attrindex) {
865
+ // if (attritem.id == item.id) {
866
+ // tempproductfeatuesarr[attrindex].value = e.value;
867
+ // isattrexists = true;
868
+ // }
869
+ // });
870
+ // if (isattrexists == false) {
871
+ // tempproductfeatuesarr.push({
872
+ // id: item.id,
873
+ // value: e.value,
874
+ // });
875
+ // }
876
+ // setproductfeatuesarr([...tempproductfeatuesarr]);
877
+ // }}
878
+ // />
879
+ // </div>
880
+ // </div>
881
+ );
882
+ }
883
+ // up here
884
+ if (item.type == 'Number') {
885
+ return (
886
+ <div class="col-lg-12 col-md-12 d-flex flex-column align-items-center justify-content-start mb-3 p-0">
887
+ <label
888
+ className={`${filter_cssstyles.input_label_name}` + ' mb-3 w-100 '}
889
+ style={{
890
+ textAlign: langdetect == 'en' ? 'left' : 'right',
891
+ color: sectionproperties.filtertitle_color,
892
+ color: sectionproperties.filtertitle_color,
893
+ fontSize: sectionproperties.filtertitle_fontsize + 'px',
894
+ fontWeight: sectionproperties.filtertitle_fontweight,
895
+ color: sectionproperties.filtertitle_color,
896
+ textTransform: 'capitalize',
897
+ }}
898
+ >
899
+ {langdetect == 'en' ? item.name_en : item.name_ar}
900
+ </label>
901
+ <div class={'col-lg-12 p-0'}>
902
+ <input
903
+ type="number"
904
+ className={`${formstyles.form_control} ${filter_cssstyles.form_control}`}
905
+ placeholder={''}
906
+ onChange={(e) => {
907
+ var isattrexists = false;
908
+ var tempproductfeatuesarr = [...productfeatuesarr];
909
+ tempproductfeatuesarr?.forEach(function (attritem, attrindex) {
910
+ if (attritem.id == item.id) {
911
+ tempproductfeatuesarr[attrindex].value = e.target.value;
912
+ isattrexists = true;
913
+ }
914
+ });
915
+ if (isattrexists == false) {
916
+ tempproductfeatuesarr.push({
917
+ id: item.id,
918
+ value: e.target.value,
919
+ });
920
+ }
921
+ setproductfeatuesarr([...tempproductfeatuesarr]);
922
+ }}
923
+ />
924
+ </div>
925
+ </div>
926
+ );
927
+ }
928
+ if (item.type == 'NumberRange') {
929
+ var temppricevalue = { min: 0, max: 10000 };
930
+ var tempproductfeatuesarr = [...productfeatuesarr];
931
+ tempproductfeatuesarr?.forEach(function (attritem, attrindex) {
932
+ if (attritem.id == item.id) {
933
+ if (attritem.value != undefined && attritem.value != null && attritem?.value?.length != 0) {
934
+ temppricevalue.min = attritem.value;
935
+ }
936
+ if (attritem.valuemax != undefined && attritem.valuemax != null && attritem?.valuemax?.length != 0) {
937
+ temppricevalue.max = attritem.valuemax;
938
+ }
939
+ }
940
+ });
941
+ return (
942
+ <div className={`${langdetect == 'en' ? 'text-left' : 'text-right'}` + ' col-lg-12 col-md-12 col-sm-12 mb-3 '}>
943
+ <label
944
+ className={`${filter_cssstyles.input_label_name}` + ' mb-3 w-100'}
945
+ style={{
946
+ textAlign: langdetect == 'en' ? 'left' : 'right',
947
+ color: sectionproperties.filtertitle_color,
948
+ color: sectionproperties.filtertitle_color,
949
+ fontSize: sectionproperties.filtertitle_fontsize + 'px',
950
+ fontWeight: sectionproperties.filtertitle_fontweight,
951
+ color: sectionproperties.filtertitle_color,
952
+ textTransform: 'capitalize',
953
+ }}
954
+ >
955
+ {langdetect == 'en' ? item.name_en : item.name_ar}
956
+ {item.type}
957
+ </label>
958
+ <div class={'col-lg-12 pl-4 pr-4 mt-2 mb-2'} style={{ direction: 'ltr' }}>
959
+ <InputRange
960
+ draggableTrack={true}
961
+ formatLabel={(value) => `${value}`}
962
+ maxValue={parseInt(sectionproperties.filterpricemaxvalue)}
963
+ minValue={parseInt(sectionproperties.filterpriceminvalue)}
964
+ value={temppricevalue}
965
+ onChange={(e) => {
966
+ // setpricevalue({ ...value });
967
+ var isattrexists = false;
968
+ var tempproductfeatuesarr = [...productfeatuesarr];
969
+ tempproductfeatuesarr?.forEach(function (attritem, attrindex) {
970
+ if (attritem.id == item.id) {
971
+ tempproductfeatuesarr[attrindex].value = e.min;
972
+ tempproductfeatuesarr[attrindex].valuemax = e.max;
973
+ isattrexists = true;
974
+ }
975
+ });
976
+ if (isattrexists == false) {
977
+ tempproductfeatuesarr.push({
978
+ id: item.id,
979
+ value: e.min,
980
+ valuemax: e.max,
981
+ });
982
+ }
983
+ setproductfeatuesarr([...tempproductfeatuesarr]);
984
+ }}
985
+ />
986
+ </div>
987
+ </div>
988
+ );
989
+ }
990
+ })}
991
+ {/* {sectionproperties.showpricerange == 'Show' && (
992
+ <div className={`${langdetect == 'en' ? 'text-left' : 'text-right'}` + ' col-lg-12 col-md-12 col-sm-12 mb-3 p-0 '}>
993
+ <label
994
+ className={`${filter_cssstyles.input_label_name}` + ' mb-3 w-100'}
995
+ style={{
996
+ textAlign: langdetect == 'en' ? 'left' : 'right',
997
+ color: sectionproperties.filtertitle_color,
998
+ color: sectionproperties.filtertitle_color,
999
+ fontSize: sectionproperties.filtertitle_fontsize + 'px',
1000
+ fontWeight: sectionproperties.filtertitle_fontweight,
1001
+ color: sectionproperties.filtertitle_color,
1002
+ textTransform: 'capitalize',
1003
+ }}
1004
+ >
1005
+ {langdetect == 'en' ? 'Price' : 'السعر'}
1006
+ {item.type}
1007
+ </label>
1008
+ <div class={'col-lg-12 pl-4 pr-4 mt-2 mb-2'} style={{ direction: 'ltr' }}>
1009
+ <InputRange
1010
+ draggableTrack={true}
1011
+ formatLabel={(value) => `${value}`}
1012
+ maxValue={parseInt(sectionproperties.filterpricemaxvalue)}
1013
+ minValue={parseInt(sectionproperties.filterpriceminvalue)}
1014
+ value={temppricevalue}
1015
+ onChange={(e) => {
1016
+ // setpricevalue({ ...value });
1017
+ var isattrexists = false;
1018
+ var tempproductfeatuesarr = [...productfeatuesarr];
1019
+ tempproductfeatuesarr?.forEach(function (attritem, attrindex) {
1020
+ if (attritem.id == item.id) {
1021
+ tempproductfeatuesarr[attrindex].value = e.min;
1022
+ tempproductfeatuesarr[attrindex].valuemax = e.max;
1023
+ isattrexists = true;
1024
+ }
1025
+ });
1026
+ if (isattrexists == false) {
1027
+ tempproductfeatuesarr.push({
1028
+ id: item.id,
1029
+ value: e.min,
1030
+ valuemax: e.max,
1031
+ });
1032
+ }
1033
+ setproductfeatuesarr([...tempproductfeatuesarr]);
1034
+ }}
1035
+ />
1036
+ </div>
1037
+ </div>
1038
+ )} */}
1039
+ </div>
1040
+ )}
1041
+ </div>
1042
+ </div>
1043
+ );
1044
+ };
1045
+ const InstFilters = () => {
1046
+ return (
1047
+ // <Accordion allowMultipleExpanded={true} allowZeroExpanded={true}>
1048
+ <Accordion allowMultipleExpanded={true} allowZeroExpanded={true} preExpanded={[0, 1, 2, 3]}>
1049
+ {instfilters.map((item, index) => {
1050
+ return (
1051
+ <>
1052
+ <AccordionItem uuid={index}>
1053
+ <AccordionItemHeading>
1054
+ <AccordionItemButton>
1055
+ <div className={filter_cssstyles.titlecontainer + ' row m-0 p-0 mb-2 pl-md-3 pr-md-3 mb-4 '}>
1056
+ <div className="col-lg-10 col-md-10 col-sm-10 p-0">
1057
+ <p
1058
+ className={
1059
+ langdetect == 'en'
1060
+ ? filter_cssstyles.collapsetitle + ' collapsetitle m-0 p-0 '
1061
+ : filter_cssstyles.collapsetitle + ' collapsetitle m-0 p-0 text-right'
1062
+ }
1063
+ >
1064
+ {langdetect == 'en' ? item.optionname : item.optionname_ar}
1065
+ </p>
1066
+ </div>
1067
+ <div className="col-lg-2 col-md-2 col-sm-2 p-0">
1068
+ <AccordionItemState>
1069
+ {(state) => {
1070
+ if (state.expanded == true) {
1071
+ return (
1072
+ <i className={filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '}>
1073
+ <FiChevronUp />
1074
+ </i>
1075
+ );
1076
+ } else {
1077
+ return (
1078
+ <i className={filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '}>
1079
+ <FiChevronDown />
1080
+ </i>
1081
+ );
1082
+ }
1083
+ }}
1084
+ </AccordionItemState>
1085
+ </div>
1086
+ </div>
1087
+ </AccordionItemButton>
1088
+ </AccordionItemHeading>
1089
+ <AccordionItemPanel className="p-0">
1090
+ {/* <div className="row mt-0 mb-2 ml-0 mr-0 d-lg-flex pl-md-3 pr-md-3">
1091
+ <div className={'col-lg-12'}>
1092
+ <div className={langdetect == 'en' ? `${filterstyles.timeline}` + ' p-sm-0 ' : `${filterstyles.timeline} ${filterstyles.timelinetrans}` + ' p-sm-0 '}>
1093
+ {item.productvaluesfilter.map((valueitem, valueindex) => {
1094
+ return (
1095
+ <div
1096
+ className={
1097
+ `${filterstyles.border_left_line} ${filterstyles.timelineinnercont} ${filter_cssstyles.timelineinnercont}
1098
+ ${valueitem.isfilterselected ? `${filter_cssstyles.timelineinnercont_active} ${filterstyles.timelineinnercont_active}` : ''}
1099
+
1100
+ ` + ' d-flex align-items-center pb-3 '
1101
+ }
1102
+ onClick={() => {
1103
+ setfilterfunc(valueitem.valueid, valueindex, index, 'assign');
1104
+ }}
1105
+ >
1106
+ <div>
1107
+ <div
1108
+ className={
1109
+ ` ${valueitem.isfilterselected ? filter_cssstyles.btn_item_active : ''} ${filterstyles.btn_item} ${filter_cssstyles.btn_item}` +
1110
+ ' mb-2 d-flex align-items-center '
1111
+ }
1112
+ >
1113
+ <i className="h-100 d-flex align-items-center"></i>
1114
+ </div>
1115
+ </div>
1116
+ <div className={langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'}>
1117
+ <p
1118
+ className={`${filterstyles.timeline_text} ${filter_cssstyles.timeline_text}` + ' m-0 p-0 '}
1119
+ style={{
1120
+ color: valueitem.isfilterselected ? sectionproperties.activecat_color : '',
1121
+ }}
1122
+ >
1123
+ {langdetect == 'en' ? valueitem.valuename : valueitem.valuename_ar}
1124
+ </p>
1125
+ </div>
1126
+ </div>
1127
+ );
1128
+ })}
1129
+ </div>
1130
+ </div>
1131
+ </div> */}
1132
+ <div className="row mt-0 mb-2 ml-0 mr-0 d-lg-flex pl-md-3 pr-md-3">
1133
+ <ul class="thwvsf-wrapper-ul">
1134
+ <div className={langdetect == 'en' ? `${filterstyles.timeline}` + ' p-sm-0 ' : `${filterstyles.timeline} ${filterstyles.timelinetrans}` + ' p-sm-0 '}>
1135
+ <ul class=" d-flex list-none flex-row flex-wrap overflow-auto px-6 pb-5 pt-2 lg:px-0">
1136
+ {item.productvaluesfilter.map((valueitem, valueindex) => {
1137
+ return (
1138
+ <li
1139
+ className={
1140
+ // `${filterstyles.border_left_line} ${filterstyles.timelineinnercont} ${filter_cssstyles.timelineinnercont}
1141
+ // ${valueitem.isfilterselected ? `${filter_cssstyles.timelineinnercont_active} ${filterstyles.timelineinnercont_active}` : ''}
1142
+ // ` +
1143
+ item.optionname != 'Color'
1144
+ ? `${filter_cssstyles.filteroptionvertical} ${
1145
+ valueitem.isfilterselected ? `${filter_cssstyles.filteroptionverticalactive} ` : ''
1146
+ }` + ' mx-3 mb-3 cursor-pointer allcentered '
1147
+ : ' mx-3 mb-3 cursor-pointer allcentered '
1148
+ }
1149
+ onClick={() => {
1150
+ setfilterfunc(valueitem.valueid, valueindex, index, 'assign');
1151
+ }}
1152
+ style={
1153
+ {
1154
+ // border: sectionproperties.filter_optionborderwidth + 'px solid ' + sectionproperties.filter_optionbordercolor,
1155
+ // width: item.optionname == 'Color' ? 'auto' : '',
1156
+ // height: item.optionname == 'Color' ? 'auto' : '',
1157
+ // borderWidth: item.optionname == 'Color' ? 0 : '',
1158
+ }
1159
+ }
1160
+ >
1161
+ {item.optionname == 'Color' && (
1162
+ <div className={'mx-3'}>
1163
+ <div class="row m-0 w-100">
1164
+ <div class="col-lg-12 p-0 allcentered mb-3">
1165
+ {valueitem.isfilterselected && (
1166
+ <div
1167
+ class="allcentered"
1168
+ style={{
1169
+ width: 40,
1170
+ height: 40,
1171
+ border: '2px solid ' + valueitem.valuename,
1172
+ borderRadius: 100,
1173
+ }}
1174
+ >
1175
+ <div
1176
+ style={{
1177
+ width: 28,
1178
+ height: 28,
1179
+ background: valueitem.valuename,
1180
+ borderRadius: 100,
1181
+ }}
1182
+ ></div>
1183
+ </div>
1184
+ )}
1185
+ {!valueitem.isfilterselected && (
1186
+ <div
1187
+ style={{
1188
+ width: 28,
1189
+ height: 28,
1190
+ background: valueitem.valuename,
1191
+ borderRadius: 100,
1192
+ }}
1193
+ ></div>
1194
+ )}
1195
+ </div>
1196
+ <div class="col-lg-12 p-0 allcentered">
1197
+ <p className={`${filterstyles.timeline_text} ${filter_cssstyles.timeline_text}` + ' m-0 p-0 '} style={{}}>
1198
+ {valueitem.value_identifier}
1199
+ </p>
1200
+ </div>
1201
+ </div>
1202
+ </div>
1203
+ )}
1204
+ {item.optionname != 'Color' && (
1205
+ <p
1206
+ className={' m-0 p-0 '}
1207
+ style={{
1208
+ color: valueitem.isfilterselected ? sectionproperties.activecat_color : '',
1209
+ }}
1210
+ >
1211
+ {langdetect == 'en' ? valueitem.valuename : valueitem.valuename_ar}
1212
+ </p>
1213
+ )}
1214
+ </li>
1215
+ );
1216
+ })}
1217
+ </ul>
1218
+ </div>
1219
+ </ul>
1220
+ </div>
1221
+ </AccordionItemPanel>
1222
+ </AccordionItem>
1223
+ {/* <hr className="mt-3 mb-3" /> */}
1224
+ </>
1225
+ );
1226
+ })}
1227
+ </Accordion>
1228
+ );
1229
+ };
1230
+ const filter_cssstyles = {
1231
+ form_control: css({
1232
+ position: 'relative',
1233
+ display: 'flex',
1234
+ alignItems: 'center',
1235
+ display: 'block',
1236
+ width: '100%',
1237
+ padding: '0 30px',
1238
+ transition: '.3s',
1239
+ fontWeight: 500,
1240
+ border: '1px solid #ccc',
1241
+ // border: sectionproperties.inputfieldbordertype == 'All' ? sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor : 0,
1242
+ // borderBottom: sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor,
1243
+ // borderRadius: sectionproperties.inputfieldborderradius + 'px',
1244
+ borderRadius: '5px',
1245
+ // height: sectionproperties.inputfieldheight + 'px',
1246
+ height: '40px',
1247
+ background: 'transparent',
1248
+ // color: sectionproperties.inputfieldcolor,
1249
+ color: '#000',
1250
+ // fontSize: sectionproperties.inputfieldfontsize + 'px',
1251
+ fontSize: '14px',
1252
+ ':focus': {
1253
+ // borderColor: sectionproperties.inputfeildbordercoloronfocus,
1254
+ borderColor: '#eac435',
1255
+ boxShadow: 'none',
1256
+ },
1257
+ }),
1258
+ collapsetitle: css({
1259
+ fontSize: sectionproperties.filtertitle_fontsize + 'px',
1260
+ fontWeight: sectionproperties.filtertitle_fontweight,
1261
+ textTransform: sectionproperties.filtertitle_texttransform,
1262
+ color: sectionproperties.filtertitle_color,
1263
+ ':hover': {
1264
+ color: sectionproperties.filtertitle_coloronhover,
1265
+ },
1266
+ }),
1267
+ titlecontainer: css({
1268
+ color: sectionproperties.filtertitle_color,
1269
+ ':hover .collapsetitle': {
1270
+ color: sectionproperties.filtertitle_coloronhover,
1271
+ },
1272
+ }),
1273
+ timeline_text: css({
1274
+ fontSize: sectionproperties.timeline_text_fontsize + 'px',
1275
+ fontWeight: sectionproperties.timeline_text_fontweight,
1276
+ textTransform: sectionproperties.timeline_text_texttransform,
1277
+ color: sectionproperties.timeline_text_color,
1278
+ transition: '.3s',
1279
+ ':hover': {
1280
+ color: sectionproperties.timeline_text_coloronhover,
1281
+ },
1282
+ }),
1283
+ btnstyles: css({
1284
+ color: sectionproperties.generalbtn_textColor,
1285
+ fontSize: sectionproperties.generalbtn_fontsize + 'px',
1286
+ textTransform: sectionproperties.generalbtn_texttransform,
1287
+ width: sectionproperties.generalbtn_width + 'px',
1288
+ height: sectionproperties.generalbtn_height + 'px',
1289
+ background: sectionproperties.generalbtn_bgColor,
1290
+ borderTopLeftRadius: sectionproperties.generalbtn_bordertopleftradius + 'px',
1291
+ borderTopRightRadius: sectionproperties.generalbtn_bordertoprightradius + 'px',
1292
+ borderBottomRightRadius: sectionproperties.generalbtn_borderbottomrightradius + 'px',
1293
+ borderBottomLeftRadius: sectionproperties.generalbtn_borderbottomleftradius + 'px',
1294
+ fontWeight: sectionproperties.generalbtn_fontweight,
1295
+ transition: '.3s',
1296
+ ':hover': {
1297
+ background: sectionproperties.generalbtn_bgColoronhover,
1298
+ color: sectionproperties.generalbtn_textColoronhover,
1299
+ },
1300
+ }),
1301
+ close_menu_icon_cont: css({
1302
+ background: sectionproperties.closeSliderBgColor,
1303
+ width: sectionproperties.closeSliderWidth + 'px',
1304
+ height: sectionproperties.closeSliderHeight + 'px',
1305
+ borderRadius: sectionproperties.closeSlider_borderBottomLeftRadius + 'px',
1306
+ ':hover': {
1307
+ background: sectionproperties.closeSliderBgColorHover,
1308
+ },
1309
+ }),
1310
+ horizontalfilter_card: css({
1311
+ marginBottom: sectionproperties.horizontalfilter_mb + 'px',
1312
+ marginTop: sectionproperties.horizontalfilter_mt + 'px',
1313
+ background: sectionproperties.horizontalfilter_cardbg,
1314
+ border: sectionproperties.horizontalfilter_cardborderwidth + 'px solid ' + sectionproperties.horizontalfilter_cardbordercolor,
1315
+ boxShadow: sectionproperties.horizontalfilter_cardboxShadow == 'Show' ? sectionproperties.horizontalfilter_cardboxShadowcolor : 'horizontalfilter_cardboxShadow',
1316
+ }),
1317
+ btn_item: css({
1318
+ width: '15px',
1319
+ height: '15px',
1320
+ background: sectionproperties.filteritembtn_bgcolor,
1321
+ ':hover': {
1322
+ background: sectionproperties.filteritembtn_bghover,
1323
+ },
1324
+ }),
1325
+ btn_item_active: css({
1326
+ background: sectionproperties.activecat_color,
1327
+ }),
1328
+ timelineinnercont_active: css({
1329
+ fontWeight: sectionproperties.activecat_fontweight,
1330
+ color: sectionproperties.activecat_color,
1331
+ }),
1332
+ categoryName: css({
1333
+ color: sectionproperties.filtertitle_color,
1334
+ fontWeight: sectionproperties.filterCatFontWeight,
1335
+ fontSize: sectionproperties.filterCatFontSize + 'px',
1336
+ }),
1337
+ pCollectionName: css({
1338
+ color: sectionproperties.filtertitle_color,
1339
+ fontWeight: sectionproperties.filterPCollFontWeight,
1340
+ fontSize: sectionproperties.filterPCollFontSize + 'px',
1341
+ }),
1342
+ explorebtn: css({
1343
+ fontSize: sectionproperties.explorebtnfontsize + 'px',
1344
+ fontWeight: 600,
1345
+ color: sectionproperties.explorebtncolor,
1346
+ transition: '.3s',
1347
+ ':hover': {
1348
+ color: sectionproperties.explorebtncoloronhover,
1349
+ },
1350
+ }),
1351
+ showallbtn: css({
1352
+ color: sectionproperties.showallcolor,
1353
+ ':hover': {
1354
+ transition: '.3s',
1355
+ cursor: 'pointer',
1356
+ color: sectionproperties.showallcolorhover,
1357
+ },
1358
+ }),
1359
+ sectiontitle: css({
1360
+ position: 'relative',
1361
+ justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : '',
1362
+ width: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '100%' : '',
1363
+ fontSize: sectionproperties.sectionTitleFontSize + 'px',
1364
+ '@media (max-width: 800px)': {
1365
+ fontSize: sectionproperties.sectionTitleFontSizeresp + 'px',
1366
+ },
1367
+ }),
1368
+ filtercard: css({
1369
+ minWidth: sectionproperties.filtercardwidth + 'px',
1370
+ maxWidth: sectionproperties.filtercardwidth + 'px',
1371
+ }),
1372
+ filteroptionvertical: css({
1373
+ border: sectionproperties.filter_optionborderwidth + 'px solid ' + sectionproperties.filter_optionbordercolor,
1374
+ color: sectionproperties.timeline_text_color,
1375
+ ':hover': {
1376
+ color: sectionproperties.timeline_text_coloronhover,
1377
+ },
1378
+ // filter_activebackgroundtransparent
1379
+ }),
1380
+ filteroptionverticalactive: css({
1381
+ background: sectionproperties.btn_item_activebgcolor,
1382
+ color: sectionproperties.activecat_color,
1383
+ }),
1384
+ };
1385
+ const filterrouting = (tempfetchproductsfilerobjcontext) => {
1386
+ const path = window.location.pathname.split('/');
1387
+ var currentpagepath = path[1];
1388
+ var pagenamepathinstaticpagelinkcont = '';
1389
+ for (const key in StaticPagesLinksContext) {
1390
+ if (StaticPagesLinksContext[key] == currentpagepath) {
1391
+ pagenamepathinstaticpagelinkcont = key;
1392
+ }
1393
+ }
1394
+ if (pagenamepathinstaticpagelinkcont != undefined && pagenamepathinstaticpagelinkcont != '') {
1395
+ routingcountext(StaticPagesLinksContext[pagenamepathinstaticpagelinkcont], true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
1396
+ }
1397
+ };
1398
+ const Countriesfilter = () => {
1399
+ return (
1400
+ <div class="row m-0 w-100 pl-md-3 pr-md-3">
1401
+ <div class="col-lg-12 p-0 mt-3">
1402
+ <div class="row m-0 w-100">
1403
+ <div class="col-lg-12 p-0 mb-3">
1404
+ {fetchTabexCountriesQueryContext?.isFetching && (
1405
+ <div className="w-100 allcentered mt-1">
1406
+ <CircularProgress color="#000" width="20px" height="20px" duration="1s" />
1407
+ </div>
1408
+ )}
1409
+
1410
+ {!fetchTabexCountriesQueryContext?.isFetching && fetchTabexCountriesQueryContext?.isSuccess && (
1411
+ <Select
1412
+ options={fetchTabexCountriesQueryContext?.data?.data?.countries}
1413
+ getOptionLabel={(option) => {
1414
+ var crname = '';
1415
+ if (langdetect == 'en') {
1416
+ crname = option.name;
1417
+ } else if (langdetect == 'ar') {
1418
+ if (option.name_ar != null) {
1419
+ crname = option.name_ar;
1420
+ } else {
1421
+ crname = option.name;
1422
+ }
1423
+ }
1424
+ return crname;
1425
+ }}
1426
+ getOptionValue={(option) => option.id}
1427
+ value={fetchTabexCountriesQueryContext.data.data.countries.filter((option) => option.id == ProductFilterObjContext.countryid)}
1428
+ onChange={(option) => {
1429
+ var tempFetchTabexStatesPayloadobjContext = { ...FetchTabexStatesPayloadobjContext };
1430
+ tempFetchTabexStatesPayloadobjContext.functype = 'states';
1431
+ tempFetchTabexStatesPayloadobjContext.country_id = option.id;
1432
+ setFetchTabexStatesPayloadobjContext({ ...tempFetchTabexStatesPayloadobjContext });
1433
+
1434
+ var tempfetchproductsfilerobjcontext = { ...ProductFilterObjContext };
1435
+ tempfetchproductsfilerobjcontext.countryid = option.id;
1436
+ tempfetchproductsfilerobjcontext.page = 0;
1437
+ setProductFilterObjContext({ ...tempfetchproductsfilerobjcontext });
1438
+ filterrouting(tempfetchproductsfilerobjcontext);
1439
+ }}
1440
+ styles={langdetect == 'en' ? defaultstyles : defaultstylestranslated}
1441
+ placeholder={lang.choosecountry}
1442
+ isSearchable={true}
1443
+ />
1444
+ )}
1445
+ </div>
1446
+ <div class="col-lg-12 mb-3 p-0">
1447
+ {fetchTabexStatesQueryContext?.isFetching && (
1448
+ <div className="w-100 allcentered mt-1">
1449
+ <CircularProgress color="#000" width="20px" height="20px" duration="1s" />
1450
+ </div>
1451
+ )}
1452
+
1453
+ {!fetchTabexStatesQueryContext?.isFetching && fetchTabexStatesQueryContext?.isSuccess && (
1454
+ <Select
1455
+ options={fetchTabexStatesQueryContext?.data?.data?.states}
1456
+ getOptionLabel={(option) => {
1457
+ var crname = '';
1458
+ if (langdetect == 'en') {
1459
+ crname = option.name;
1460
+ } else if (langdetect == 'ar') {
1461
+ if (option.name_ar != null) {
1462
+ crname = option.name_ar;
1463
+ } else {
1464
+ crname = option.name;
1465
+ }
1466
+ }
1467
+ return crname;
1468
+ }}
1469
+ getOptionValue={(option) => option.id}
1470
+ value={fetchTabexStatesQueryContext?.data?.data?.states.filter((option) => option.id == ProductFilterObjContext.stateid)}
1471
+ onChange={(option) => {
1472
+ var tempFetchTabexStatesPayloadobjContext = { ...FetchTabexStatesPayloadobjContext };
1473
+ tempFetchTabexStatesPayloadobjContext.functype = 'cities';
1474
+ tempFetchTabexStatesPayloadobjContext.state_id = option.id;
1475
+ setFetchTabexStatesPayloadobjContext({ ...tempFetchTabexStatesPayloadobjContext });
1476
+
1477
+ var tempfetchproductsfilerobjcontext = { ...ProductFilterObjContext };
1478
+ tempfetchproductsfilerobjcontext.stateid = option.id;
1479
+ tempfetchproductsfilerobjcontext.page = 0;
1480
+ setProductFilterObjContext({ ...tempfetchproductsfilerobjcontext });
1481
+ filterrouting(tempfetchproductsfilerobjcontext);
1482
+ }}
1483
+ styles={langdetect == 'en' ? defaultstyles : defaultstylestranslated}
1484
+ placeholder={lang.choosestategov}
1485
+ isSearchable={true}
1486
+ />
1487
+ )}
1488
+ </div>
1489
+ <div class="col-lg-12 mb-3 p-0">
1490
+ {fetchTabexCitiesQueryContext?.isFetching && (
1491
+ <div className="w-100 allcentered mt-1">
1492
+ <CircularProgress color="#000" width="20px" height="20px" duration="1s" />
1493
+ </div>
1494
+ )}
1495
+
1496
+ {!fetchTabexCitiesQueryContext?.isFetching && fetchTabexCitiesQueryContext?.isSuccess && (
1497
+ <Select
1498
+ options={fetchTabexCitiesQueryContext?.data?.data?.cities}
1499
+ getOptionLabel={(option) => {
1500
+ var crname = '';
1501
+ if (langdetect == 'en') {
1502
+ crname = option.name;
1503
+ } else if (langdetect == 'ar') {
1504
+ if (option.name_ar != null) {
1505
+ crname = option.name_ar;
1506
+ } else {
1507
+ crname = option.name;
1508
+ }
1509
+ }
1510
+ return crname;
1511
+ }}
1512
+ getOptionValue={(option) => option.id}
1513
+ value={fetchTabexCitiesQueryContext?.data?.data?.cities.filter((option) => option.id == ProductFilterObjContext.cityid)}
1514
+ onChange={(option) => {
1515
+ var tempfetchproductsfilerobjcontext = { ...ProductFilterObjContext };
1516
+ tempfetchproductsfilerobjcontext.cityid = option.id;
1517
+ tempfetchproductsfilerobjcontext.page = 0;
1518
+ setProductFilterObjContext({ ...tempfetchproductsfilerobjcontext });
1519
+ filterrouting(tempfetchproductsfilerobjcontext);
1520
+ }}
1521
+ styles={langdetect == 'en' ? defaultstyles : defaultstylestranslated}
1522
+ placeholder={lang.choosecity}
1523
+ isSearchable={true}
1524
+ />
1525
+ )}
1526
+ </div>
1527
+ </div>
1528
+ </div>
1529
+ </div>
1530
+ );
1531
+ };
1532
+ const [checked, setChecked] = useState(false);
1533
+ // const queryParameters = new URLSearchParams(window.location.search);
1534
+ // useEffect(() => {
1535
+ // // setsortbycontext('Sort By');
1536
+ // if (queryParameters.get('sortprice') == undefined) {
1537
+ // setsortbycontext('Sort By');
1538
+ // } else {
1539
+ // var temp = { ...sortbycontext };
1540
+ // temp = queryParameters.get('sortprice');
1541
+ // alert(temp);
1542
+ // }
1543
+ // }, []);
1544
+ return (
1545
+ <div
1546
+ // 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'}
1547
+ className={'row mx-0 p-0 w-100 mt-md-2'}
1548
+ style={{ marginTop: sectionproperties.filtersection_mt + 'px', minHeight: sectionproperties.filterminheight == 0 ? 'auto' : sectionproperties.filterminheight + 'vh' }}
1549
+ >
1550
+ {props.typeprops != 'vertical' && (
1551
+ <div 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'}>
1552
+ {sectionproperties.filterType == 'Title & Sort By Only' && (
1553
+ <div
1554
+ class="row mx-0 w-100"
1555
+ style={{
1556
+ marginTop: sectionproperties.sectionTitleMarginTop + 'px',
1557
+ marginBottom: sectionproperties.sectiontitledirection == 'Vertical' ? sectionproperties.sectionTitleMarginBottom + 'px' : 0,
1558
+ paddingLeft: langdetect == 'en' ? sectionproperties.sectionTitleMarginLeft + 'px' : sectionproperties.sectionTitleMarginRight + 'px',
1559
+ paddingRight: langdetect == 'en' ? sectionproperties.sectionTitleMarginRight + 'px' : sectionproperties.sectionTitleMarginLeft + 'px',
1560
+ }}
1561
+ >
1562
+ <div class="col-lg-6 col-md-6 p-0 d-flex align-items-center justify-content-start">
1563
+ <div class={filter_cssstyles.sectiontitle + ' d-flex align-items-center flex-row '} style={{}}>
1564
+ <p
1565
+ class={
1566
+ sectionproperties.sectiontitlefontfamily == 'Pacifico'
1567
+ ? ' PacificoFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
1568
+ : sectionproperties.sectiontitlefontfamily == 'Playfair'
1569
+ ? ' PlayfairFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
1570
+ : sectionproperties.sectiontitlefontfamily == 'Great Vibes'
1571
+ ? ' GreatvibesFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
1572
+ : sectionproperties.sectiontitlefontfamily == 'Quicksand'
1573
+ ? ' QuicksandFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
1574
+ : sectionproperties.sectiontitlefontfamily == 'Satisfy'
1575
+ ? ' SatisfyFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
1576
+ : sectionproperties.sectiontitlefontfamily == 'ASUL'
1577
+ ? ' ASUL mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
1578
+ : ' mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
1579
+ }
1580
+ style={{
1581
+ color: sectionproperties.sectionTitleColor,
1582
+ fontWeight: sectionproperties.sectionTitleFontWeight,
1583
+ paddingLeft: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '12px' : 0,
1584
+ paddingRight: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '12px' : 0,
1585
+ textAlign: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : '',
1586
+ }}
1587
+ >
1588
+ {langdetect == 'en' ? sectionproperties.sectionTitleContent : sectionproperties.sectionTitleContent_ar}
1589
+ </p>
1590
+ </div>
1591
+ </div>
1592
+ <div
1593
+ class="col-lg-6 col-md-6 d-flex align-items-center justify-content-end"
1594
+ style={{
1595
+ paddingRight: langdetect == 'en' ? 0 : '',
1596
+ paddingLeft: langdetect == 'ar' ? 0 : '',
1597
+ }}
1598
+ >
1599
+ <div class="dropdowncontainer">
1600
+ <input class={filter_cssstyles.dropdown + ' dropdown '} type="checkbox" checked={checked} id="dropdown" name="dropdown" hidden />
1601
+ <label
1602
+ onClick={() => {
1603
+ setChecked(!checked);
1604
+ }}
1605
+ className={filter_cssstyles.collapsetitle + ' d-flex justify-content-end align-items-center for-dropdown m-0 '}
1606
+ for="dropdown"
1607
+ style={{ cursor: 'pointer' }}
1608
+ >
1609
+ {langdetect == 'en' ? 'Sort By' : 'ترتيب حسب'}{' '}
1610
+ <i class={langdetect == 'en' ? 'h-100 allcentered ml-3' : 'h-100 allcentered mr-3'}>
1611
+ <FiChevronDown size={20} />
1612
+ </i>
1613
+ </label>
1614
+
1615
+ <div
1616
+ class="dropdownmenu"
1617
+ style={{
1618
+ background: sectionproperties.filter_backgroundcolor,
1619
+ }}
1620
+ >
1621
+ {otherfilters.map((item, index) => {
1622
+ return (
1623
+ <div class="w-100">
1624
+ {item.filterarray.map((valueitem, valueindex) => {
1625
+ var ischecked = false;
1626
+ if (item.payloadvalue == 'sortprice') {
1627
+ if (valueitem.value == ProductFilterObjContext.sortprice) {
1628
+ ischecked = true;
1629
+ }
1630
+ } else if (item.payloadvalue == 'sortdates') {
1631
+ if (valueitem.value == ProductFilterObjContext.sortdates) {
1632
+ ischecked = true;
1633
+ }
1634
+ }
1635
+ return (
1636
+ <p
1637
+ class={filter_cssstyles.timeline_text + ' dropdownlink '}
1638
+ style={{ color: ischecked ? sectionproperties.activecat_color : '' }}
1639
+ onClick={() => {
1640
+ var tempfetchproductsfilerobjcontext = { ...ProductFilterObjContext };
1641
+ if (tempfetchproductsfilerobjcontext[item.payloadvalue] == valueitem.value) {
1642
+ tempfetchproductsfilerobjcontext[item.payloadvalue] = '';
1643
+ } else {
1644
+ tempfetchproductsfilerobjcontext[item.payloadvalue] = valueitem.value;
1645
+ }
1646
+ tempfetchproductsfilerobjcontext.page = 0;
1647
+ setProductFilterObjContext({ ...tempfetchproductsfilerobjcontext });
1648
+
1649
+ filterrouting(tempfetchproductsfilerobjcontext);
1650
+ setsortbycontext(valueitem.name);
1651
+ }}
1652
+ >
1653
+ {valueitem.name}
1654
+ </p>
1655
+ );
1656
+ })}
1657
+ </div>
1658
+ );
1659
+ })}
1660
+ </div>
1661
+ </div>
1662
+ </div>
1663
+ </div>
1664
+ )}
1665
+ {sectionproperties.filterType != 'Title & Sort By Only' && sectionproperties.filterdirection == 'Horizontal' && (
1666
+ <div class="row m-0 w-100">
1667
+ <div class="col-lg-12 p-0 mb-4">
1668
+ {/* filtercard */}
1669
+ {/* here */}
1670
+ <ScrollMenu transitionBehavior={'auto'} wrapperClassName={''} itemClassName={''} scrollContainerClassName={'scrollmenuclasssubscrollbar2'}>
1671
+ {collectionstobevisible.map((item, index) => {
1672
+ return (
1673
+ <div className={' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-12 w-100 mb-2 '}>
1674
+ <div
1675
+ className={`${filter_cssstyles.timeline_text} ${filter_cssstyles.filtercard}` + ' p-0 cursor-pointer '}
1676
+ onClick={() => {
1677
+ setCollectionFilterFunc(item.collectionid);
1678
+ }}
1679
+ style={{
1680
+ color: item.isfilterselected == true ? sectionproperties.activecat_color : '',
1681
+ }}
1682
+ >
1683
+ <div class="col-lg-12 allcentered mb-2">
1684
+ <div
1685
+ style={{
1686
+ width: sectionproperties.filterimagewidthheight + '%',
1687
+ height: sectionproperties.filterimagewidthheight + '%',
1688
+ }}
1689
+ >
1690
+ <Imagekitimagecomp
1691
+ urlEndpoint={ikimagecredcontext?.ikimageendpoint}
1692
+ publicKey={ikimagecredcontext?.ikimagepublickey}
1693
+ path={'/tr:w-' + sectionproperties.filterimage_tr + ',h-' + sectionproperties.filterimage_h + '/' + item.collectionlogo}
1694
+ style={{
1695
+ width: '100%',
1696
+ height: '100%',
1697
+ objectFit: 'cover',
1698
+ borderRadius: sectionproperties.filterimageborderradius + 'px',
1699
+ }}
1700
+ loading="lazy"
1701
+ />
1702
+ </div>
1703
+ </div>
1704
+ <div class="row m-0 w-100">
1705
+ <div class="col-10 text-start">
1706
+ <p class={' m-0 p-0 '}>{langdetect == 'en' ? item.title_en : item.title_ar}</p>
1707
+ </div>
1708
+ <div class="col-2 text-end">
1709
+ <i class="h-100 allcentered">{langdetect == 'en' ? <BsChevronRight /> : <BsChevronRight />}</i>
1710
+ </div>
1711
+ </div>
1712
+ </div>
1713
+ </div>
1714
+ );
1715
+ })}
1716
+ </ScrollMenu>
1717
+ </div>
1718
+ {sectionproperties.showproductgroupbytitle == 'Show' && (
1719
+ <div
1720
+ class="col-lg-12 text-start px-4 mb-5"
1721
+ style={{
1722
+ fontSize: 15,
1723
+ color: '#62554a',
1724
+ }}
1725
+ >
1726
+ <span
1727
+ class="cursor-pointer"
1728
+ onClick={() => {
1729
+ routingcountext('home', false, '');
1730
+ }}
1731
+ >
1732
+ {'Home'} /{' '}
1733
+ </span>{' '}
1734
+ <span style={{ textTransform: 'capitalize' }} class="mx-2">
1735
+ {props.show_product_group_titles()['title_en']}
1736
+ </span>
1737
+ </div>
1738
+ )}
1739
+ </div>
1740
+ )}
1741
+ {sectionproperties.filterType != 'Title & Sort By Only' && sectionproperties.filterdirection == 'Vertical' && (
1742
+ <div
1743
+ className={`${filterstyles.filterslider_container}` + ' pb-md-5 '}
1744
+ id="filterslider"
1745
+ style={{
1746
+ background: sectionproperties.filter_backgroundcolor,
1747
+ borderRadius: sectionproperties.filter_borderBottomLeftRadius + 'px',
1748
+ }}
1749
+ >
1750
+ <div className={filter_cssstyles.filteraccordion + ' row m-0 w-100 pt-2 pb-3 filter-accordion '}>
1751
+ <div className="col-lg-9 col-md-9 col-sm-9 d-none align-items-center d-md-flex">
1752
+ <p
1753
+ className="m-0 p-0 font-16 font-weight-600"
1754
+ style={{
1755
+ color: sectionproperties.filter_titlecolor,
1756
+ fontSize: sectionproperties.filter_titlefontsize + 'px',
1757
+ fontWeight: sectionproperties.filter_titlefontweight,
1758
+ textTransform: sectionproperties.filter_titletextransform,
1759
+ }}
1760
+ >
1761
+ {langdetect == 'en' ? 'Filter' : 'فلترة'}
1762
+ </p>
1763
+ </div>
1764
+ <div className="col-lg-3 col-md-3 col-sm-3 d-none d-md-flex align-items-center justify-content-end p-0">
1765
+ <div
1766
+ className={`${filterstyles.close_menu_icon_cont} ${filter_cssstyles.close_menu_icon_cont}` + ' d-none d-md-flex align-items-center justify-content-center '}
1767
+ onClick={() => {
1768
+ var element = document.getElementById('filterslider');
1769
+ element.classList.remove(filterstyles.filterslider_container_opened);
1770
+ }}
1771
+ >
1772
+ <i className="h-100 d-flex align-items-center justify-content-center">
1773
+ <IoMdClose
1774
+ size={sectionproperties.closeSlider_fontSize}
1775
+ style={{
1776
+ color: sectionproperties.closeSlider_color,
1777
+ }}
1778
+ />
1779
+ </i>
1780
+ </div>
1781
+ </div>
1782
+ {sectionproperties.otherfilters == 'Show' && (
1783
+ <div class="row m-0 w-100">
1784
+ <div class="col-lg-12 d-flex justify-content-start">
1785
+ <p
1786
+ className="m-0 p-0 font-16 font-weight-600"
1787
+ style={{
1788
+ color: sectionproperties.filter_titlecolor,
1789
+ fontSize: sectionproperties.filter_titlefontsize + 'px',
1790
+ fontWeight: sectionproperties.filter_titlefontweight,
1791
+ textTransform: sectionproperties.filter_titletextransform,
1792
+ }}
1793
+ >
1794
+ {langdetect == 'en' ? 'Sort By' : 'ترتيب حسب'}
1795
+ </p>
1796
+ </div>
1797
+ <div className="col-lg-12">
1798
+ <hr className="mt-2 mb-3" />
1799
+ </div>
1800
+ {otherfilters.map((item, index) => {
1801
+ return (
1802
+ <div className="col-lg-12 pl-4 pr-4">
1803
+ <Accordion allowMultipleExpanded={true} allowZeroExpanded={true} preExpanded={[0, 1, 2, 3]} style={{ width: '100%' }}>
1804
+ <AccordionItem uuid={index}>
1805
+ <AccordionItemHeading>
1806
+ <AccordionItemButton>
1807
+ <div className={filter_cssstyles.titlecontainer + ' row m-0 p-0 mb-2 pl-md-3 pr-md-3 '}>
1808
+ <div className="col-lg-10 col-md-10 col-sm-10 p-0">
1809
+ <p
1810
+ className={
1811
+ langdetect == 'en'
1812
+ ? filter_cssstyles.collapsetitle + ' m-0 p-0 collapsetitle '
1813
+ : filter_cssstyles.collapsetitle + ' collapsetitle m-0 p-0 text-right'
1814
+ }
1815
+ >
1816
+ {item.name}
1817
+ </p>
1818
+ </div>
1819
+ <div className="col-lg-2 col-md-2 col-sm-2 p-0">
1820
+ <AccordionItemState>
1821
+ {(state) => {
1822
+ if (state.expanded == true) {
1823
+ return (
1824
+ <i
1825
+ className={
1826
+ filter_cssstyles.collapsetitle +
1827
+ ' collapsetitle h-100 d-flex align-items-center justify-content-end '
1828
+ }
1829
+ >
1830
+ <FiChevronUp />
1831
+ </i>
1832
+ );
1833
+ } else {
1834
+ return (
1835
+ <i className={filter_cssstyles.collapsetitle + ' h-100 d-flex align-items-center justify-content-end '}>
1836
+ <FiChevronDown />
1837
+ </i>
1838
+ );
1839
+ }
1840
+ }}
1841
+ </AccordionItemState>
1842
+ </div>
1843
+ </div>
1844
+ </AccordionItemButton>
1845
+ </AccordionItemHeading>
1846
+ <AccordionItemPanel className="p-0">
1847
+ <div className="row mt-0 mb-2 ml-0 mr-0 d-lg-flex">
1848
+ <div className={'col-lg-12'}>
1849
+ <div
1850
+ className={
1851
+ langdetect == 'en'
1852
+ ? `${filterstyles.timeline}` + ' p-sm-0 '
1853
+ : `${filterstyles.timeline} ${filterstyles.timelinetrans}` + ' p-sm-0 '
1854
+ }
1855
+ >
1856
+ {item.filterarray.map((valueitem, valueindex) => {
1857
+ var ischecked = false;
1858
+ if (item.payloadvalue == 'sortprice') {
1859
+ if (valueitem.value == ProductFilterObjContext.sortprice) {
1860
+ ischecked = true;
1861
+ }
1862
+ } else if (item.payloadvalue == 'sortdates') {
1863
+ if (valueitem.value == ProductFilterObjContext.sortdates) {
1864
+ ischecked = true;
1865
+ }
1866
+ }
1867
+ return (
1868
+ <div
1869
+ className={
1870
+ `${filterstyles.border_left_line} ${filterstyles.timelineinnercont} ${filter_cssstyles.timelineinnercont}
1871
+ ${ischecked ? `${filter_cssstyles.timelineinnercont_active} ${filterstyles.timelineinnercont_active}` : ''}
1872
+
1873
+ ` + ' d-flex align-items-center pb-3 '
1874
+ }
1875
+ onClick={() => {
1876
+ var tempfetchproductsfilerobjcontext = { ...ProductFilterObjContext };
1877
+ if (tempfetchproductsfilerobjcontext[item.payloadvalue] == valueitem.value) {
1878
+ tempfetchproductsfilerobjcontext[item.payloadvalue] = '';
1879
+ } else {
1880
+ tempfetchproductsfilerobjcontext[item.payloadvalue] = valueitem.value;
1881
+ }
1882
+ tempfetchproductsfilerobjcontext.page = 0;
1883
+ setProductFilterObjContext({ ...tempfetchproductsfilerobjcontext });
1884
+
1885
+ filterrouting(tempfetchproductsfilerobjcontext);
1886
+ }}
1887
+ >
1888
+ <div>
1889
+ <div
1890
+ className={
1891
+ ` ${ischecked ? filter_cssstyles.btn_item_active : ''} ${filterstyles.btn_item} ${
1892
+ filter_cssstyles.btn_item
1893
+ }` + ' d-flex align-items-center '
1894
+ }
1895
+ >
1896
+ <i className="h-100 d-flex align-items-center"></i>
1897
+ </div>
1898
+ </div>
1899
+ <div className={langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'}>
1900
+ <p
1901
+ className={`${filterstyles.timeline_text} ${filter_cssstyles.timeline_text}` + ' m-0 p-0 '}
1902
+ style={{
1903
+ color: ischecked ? sectionproperties.activecat_color : '',
1904
+ }}
1905
+ >
1906
+ {valueitem.name}
1907
+ </p>
1908
+ </div>
1909
+ </div>
1910
+ );
1911
+ })}
1912
+ </div>
1913
+ </div>
1914
+ </div>
1915
+ </AccordionItemPanel>
1916
+ </AccordionItem>
1917
+ </Accordion>
1918
+ </div>
1919
+ );
1920
+ })}
1921
+ {sectionproperties.showfilterbyrating == 'Show' && (
1922
+ <div className="col-lg-12 pl-4 pr-4">
1923
+ <div className={filter_cssstyles.titlecontainer + ' row m-0 p-0 mb-2 pl-md-3 pr-md-3 '}>
1924
+ <div className="col-lg-12 col-md-12 col-sm-12 p-0 mb-3">
1925
+ <p
1926
+ className={
1927
+ langdetect == 'en'
1928
+ ? filter_cssstyles.collapsetitle + ' m-0 p-0 collapsetitle '
1929
+ : filter_cssstyles.collapsetitle + ' collapsetitle m-0 p-0 text-right'
1930
+ }
1931
+ >
1932
+ {langdetect == 'en' ? 'Ratings' : 'التقييمات'}
1933
+ </p>
1934
+ </div>
1935
+ <div className="col-lg-12 col-md-12 col-sm-12 mb-4">
1936
+ <InputRange
1937
+ draggableTrack={true}
1938
+ formatLabel={(value) => `${value}`}
1939
+ maxValue={5}
1940
+ minValue={0}
1941
+ value={raterangevalue}
1942
+ onChange={(value) => {
1943
+ setraterangevalue({ ...value });
1944
+ }}
1945
+ />
1946
+ </div>
1947
+ </div>
1948
+ </div>
1949
+ )}
1950
+ </div>
1951
+ )}
1952
+ <div className="col-lg-9 col-md-9 col-sm-9 d-flex align-items-center d-md-none">
1953
+ <p
1954
+ className="m-0 p-0 font-16 font-weight-600"
1955
+ style={{
1956
+ color: sectionproperties.filter_titlecolor,
1957
+ fontSize: sectionproperties.filter_titlefontsize + 'px',
1958
+ fontWeight: sectionproperties.filter_titlefontweight,
1959
+ textTransform: sectionproperties.filter_titletextransform,
1960
+ }}
1961
+ >
1962
+ {langdetect == 'en' ? 'Filter' : 'فلترة'}
1963
+ </p>
1964
+ </div>
1965
+ <div className="col-lg-3 col-md-3 col-sm-3 d-flex d-md-none align-items-center justify-content-end p-0">
1966
+ <div
1967
+ className={`${filterstyles.close_menu_icon_cont} ${filter_cssstyles.close_menu_icon_cont}` + ' d-none d-md-flex align-items-center justify-content-center '}
1968
+ onClick={() => {
1969
+ var element = document.getElementById('filterslider');
1970
+ element.classList.remove(filterstyles.filterslider_container_opened);
1971
+ }}
1972
+ >
1973
+ <i className="h-100 d-flex align-items-center justify-content-center">
1974
+ <IoMdClose
1975
+ size={sectionproperties.closeSlider_fontSize}
1976
+ style={{
1977
+ color: sectionproperties.closeSlider_color,
1978
+ }}
1979
+ />
1980
+ </i>
1981
+ </div>
1982
+ </div>
1983
+ <div className="col-lg-12">
1984
+ <hr className="mt-2 mb-3" />
1985
+ </div>
1986
+ <div className={filter_cssstyles.filteraccordion + ' col-lg-12 filter-accordion p-md-0 pl-4 pr-4 '}>
1987
+ {sectionproperties.showcountriesfilter == 'Show' && Countriesfilter()}
1988
+ {sectionproperties.filterType == 'All' && sectionproperties.showcategoriesfilter == 'Show' && <div class="row m-0 w-100">{CategoriesFilter()}</div>}
1989
+ {sectionproperties.filterType == 'Collections' && sectionproperties.showcategoriesfilter == 'Show' && <div class="row m-0 w-100">{CollectionsFilter()}</div>}
1990
+ {sectionproperties.showdynamicfilter == 'Show' && <div class="row m-0 w-100">{DynamicFilter()}</div>}
1991
+ {sectionproperties.showvariantsfilter == 'Show' && InstFilters()}
1992
+ </div>
1993
+ </div>
1994
+ </div>
1995
+ )}
1996
+ <div className="col-lg-12">
1997
+ <Offcanvas
1998
+ show={props?.openFilterSlider}
1999
+ onHide={() => {
2000
+ props.setopenFilterSlider(false);
2001
+ }}
2002
+ placement="end"
2003
+ scroll={true}
2004
+ style={{
2005
+ minWidth: '200px',
2006
+ background: sectionproperties.filter_backgroundcolor,
2007
+ borderRadius: sectionproperties.filter_borderBottomLeftRadius + 'px',
2008
+ }}
2009
+ backdrop={true}
2010
+ >
2011
+ <Offcanvas.Header>
2012
+ <Offcanvas.Title>
2013
+ <div className="row m-0 w-100 mt-2">
2014
+ <div className="col-lg-9 col-md-9 col-sm-9 d-none align-items-center d-md-flex">
2015
+ <p
2016
+ className="m-0 p-0 font-16 font-weight-600"
2017
+ style={{
2018
+ color: sectionproperties.filter_titlecolor,
2019
+ fontSize: sectionproperties.filter_titlefontsize + 'px',
2020
+ fontWeight: sectionproperties.filter_titlefontweight,
2021
+ textTransform: sectionproperties.filter_titletextransform,
2022
+ }}
2023
+ >
2024
+ {langdetect == 'en' ? 'Filter' : 'فلترة'}
2025
+ </p>
2026
+ </div>
2027
+ <div className="col-lg-3 col-md-3 col-sm-3 d-none d-md-flex align-items-center justify-content-end p-0">
2028
+ <div
2029
+ className={
2030
+ `${filterstyles.close_menu_icon_cont} ${filter_cssstyles.close_menu_icon_cont}` + ' d-none d-md-flex align-items-center justify-content-center '
2031
+ }
2032
+ onClick={() => {
2033
+ props.setopenFilterSlider(false);
2034
+ }}
2035
+ >
2036
+ <i className="h-100 d-flex align-items-center justify-content-center">
2037
+ <IoMdClose
2038
+ size={sectionproperties.closeSlider_fontSize}
2039
+ style={{
2040
+ color: sectionproperties.closeSlider_color,
2041
+ }}
2042
+ />
2043
+ </i>
2044
+ </div>
2045
+ </div>
2046
+ <div class="col-lg-12 p-0">
2047
+ <hr class="mt-2 mb-2" />
2048
+ </div>
2049
+ </div>
2050
+ </Offcanvas.Title>
2051
+ </Offcanvas.Header>
2052
+ <Offcanvas.Body>
2053
+ <div
2054
+ className={' pb-md-5 '}
2055
+ style={{
2056
+ background: sectionproperties.filter_backgroundcolor,
2057
+ borderRadius: sectionproperties.filter_borderBottomLeftRadius + 'px',
2058
+ }}
2059
+ >
2060
+ <div className={filter_cssstyles.filteraccordion + ' row m-0 w-100 pt-2 pb-3 filter-accordion '}>
2061
+ {sectionproperties.otherfilters == 'Show' &&
2062
+ otherfilters.map((item, index) => {
2063
+ return (
2064
+ <>
2065
+ <Accordion allowMultipleExpanded={true} allowZeroExpanded={true} preExpanded={[0, 1, 2, 3]} style={{ width: '100%' }}>
2066
+ <AccordionItem uuid={index}>
2067
+ <AccordionItemHeading>
2068
+ <AccordionItemButton>
2069
+ <div className={filter_cssstyles.titlecontainer + ' row m-0 p-0 mb-2 pl-md-3 pr-md-3 '}>
2070
+ <div className="col-lg-10 col-md-10 col-sm-10 p-0">
2071
+ <p
2072
+ className={
2073
+ langdetect == 'en'
2074
+ ? filter_cssstyles.collapsetitle + ' m-0 p-0 '
2075
+ : filter_cssstyles.collapsetitle + ' m-0 p-0 text-right'
2076
+ }
2077
+ >
2078
+ {item.name}
2079
+ </p>
2080
+ </div>
2081
+ <div className="col-lg-2 col-md-2 col-sm-2 p-0">
2082
+ <AccordionItemState>
2083
+ {(state) => {
2084
+ if (state.expanded == true) {
2085
+ return (
2086
+ <i
2087
+ className={
2088
+ filter_cssstyles.collapsetitle + ' h-100 d-flex align-items-center justify-content-end '
2089
+ }
2090
+ >
2091
+ <FiChevronUp />
2092
+ </i>
2093
+ );
2094
+ } else {
2095
+ return (
2096
+ <i
2097
+ className={
2098
+ filter_cssstyles.collapsetitle + ' h-100 d-flex align-items-center justify-content-end '
2099
+ }
2100
+ >
2101
+ <FiChevronDown />
2102
+ </i>
2103
+ );
2104
+ }
2105
+ }}
2106
+ </AccordionItemState>
2107
+ </div>
2108
+ </div>
2109
+ </AccordionItemButton>
2110
+ </AccordionItemHeading>
2111
+ <AccordionItemPanel className="p-0">
2112
+ <div className="row mt-0 mb-2 ml-0 mr-0 d-lg-flex">
2113
+ <div className={'col-lg-12'}>
2114
+ <div
2115
+ className={
2116
+ langdetect == 'en'
2117
+ ? `${filterstyles.timeline}` + ' p-sm-0 '
2118
+ : `${filterstyles.timeline} ${filterstyles.timelinetrans}` + ' p-sm-0 '
2119
+ }
2120
+ >
2121
+ {item.filterarray.map((valueitem, valueindex) => {
2122
+ var ischecked = false;
2123
+ if (item.payloadvalue == 'sortprice') {
2124
+ if (valueitem.value == ProductFilterObjContext.sortprice) {
2125
+ ischecked = true;
2126
+ }
2127
+ } else if (item.payloadvalue == 'sortdates') {
2128
+ if (valueitem.value == ProductFilterObjContext.sortdates) {
2129
+ ischecked = true;
2130
+ }
2131
+ }
2132
+ return (
2133
+ <div
2134
+ className={
2135
+ `${filterstyles.border_left_line} ${filterstyles.timelineinnercont} ${
2136
+ filter_cssstyles.timelineinnercont
2137
+ }
2138
+ ${ischecked ? `${filter_cssstyles.timelineinnercont_active} ${filterstyles.timelineinnercont_active}` : ''}
2139
+
2140
+ ` + ' d-flex align-items-center pb-3 '
2141
+ }
2142
+ onClick={() => {
2143
+ // setfilterfunc(valueitem.valueid, valueindex, index, 'assign');
2144
+ var tempfetchproductsfilerobjcontext = { ...ProductFilterObjContext };
2145
+ if (tempfetchproductsfilerobjcontext[item.payloadvalue] == valueitem.value) {
2146
+ tempfetchproductsfilerobjcontext[item.payloadvalue] = '';
2147
+ } else {
2148
+ tempfetchproductsfilerobjcontext[item.payloadvalue] = valueitem.value;
2149
+ }
2150
+ setProductFilterObjContext({ ...tempfetchproductsfilerobjcontext });
2151
+ }}
2152
+ >
2153
+ <div>
2154
+ <div
2155
+ className={
2156
+ ` ${ischecked ? filter_cssstyles.btn_item_active : ''} ${filterstyles.btn_item} ${
2157
+ filter_cssstyles.btn_item
2158
+ }` + ' d-flex align-items-center '
2159
+ }
2160
+ >
2161
+ <i className="h-100 d-flex align-items-center"></i>
2162
+ </div>
2163
+ </div>
2164
+ <div className={langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'}>
2165
+ <p
2166
+ className={`${filterstyles.timeline_text} ${filter_cssstyles.timeline_text}` + ' m-0 p-0 '}
2167
+ style={{
2168
+ color: ischecked ? sectionproperties.activecat_color : '',
2169
+ }}
2170
+ >
2171
+ {valueitem.name}
2172
+ </p>
2173
+ </div>
2174
+ </div>
2175
+ );
2176
+ })}
2177
+ </div>
2178
+ </div>
2179
+ </div>
2180
+ </AccordionItemPanel>
2181
+ </AccordionItem>
2182
+ </Accordion>
2183
+ {/* <hr className="mt-3 mb-3" /> */}
2184
+ </>
2185
+ );
2186
+ })}
2187
+ {sectionproperties.otherfilters == 'Show' && (
2188
+ <div className="col-lg-12 p-0">
2189
+ <hr className="mt-2 mb-3" />
2190
+ </div>
2191
+ )}
2192
+ <div className={filter_cssstyles.filteraccordion + ' col-lg-12 filter-accordion p-md-0 '}>
2193
+ {sectionproperties.showcountriesfilter == 'Show' && Countriesfilter()}
2194
+ {sectionproperties.filterType == 'All' && sectionproperties.showcategoriesfilter == 'Show' && <div class="row m-0 w-100">{CategoriesFilter()}</div>}
2195
+ {sectionproperties.filterType == 'Collections' && sectionproperties.showcategoriesfilter == 'Show' && (
2196
+ <div class="row m-0 w-100">{CollectionsFilter()}</div>
2197
+ )}
2198
+ {sectionproperties.showdynamicfilter == 'Show' && <div class="row m-0 w-100">{DynamicFilter()}</div>}
2199
+ {sectionproperties.showvariantsfilter == 'Show' && InstFilters()}
2200
+ </div>
2201
+ </div>
2202
+ </div>
2203
+ </Offcanvas.Body>
2204
+ </Offcanvas>
2205
+ </div>
2206
+ </div>
2207
+ )}
2208
+
2209
+ {props.typeprops == 'vertical' && (
2210
+ <div className={'col-lg-12 p-0 w-100 filter mt-md-0 d-md-none'}>
2211
+ <div
2212
+ className={`${filterstyles.filterslider_container}` + ' pb-md-5 '}
2213
+ id="filterslider"
2214
+ style={{
2215
+ background: sectionproperties.filter_backgroundcolor,
2216
+ borderRadius: sectionproperties.filter_borderBottomLeftRadius + 'px',
2217
+ }}
2218
+ >
2219
+ <div className={filter_cssstyles.filteraccordion + ' row m-0 w-100 pt-2 pb-3 filter-accordion '}>
2220
+ <div className="col-lg-9 col-md-9 col-sm-9 d-none align-items-center d-md-flex">
2221
+ <p
2222
+ className="m-0 p-0 font-16 font-weight-600"
2223
+ style={{
2224
+ color: sectionproperties.filter_titlecolor,
2225
+ fontSize: sectionproperties.filter_titlefontsize + 'px',
2226
+ fontWeight: sectionproperties.filter_titlefontweight,
2227
+ textTransform: sectionproperties.filter_titletextransform,
2228
+ }}
2229
+ >
2230
+ {langdetect == 'en' ? 'Filter' : 'فلترة'}
2231
+ </p>
2232
+ </div>
2233
+ <div className="col-lg-3 col-md-3 col-sm-3 d-none d-md-flex align-items-center justify-content-end p-0">
2234
+ <div
2235
+ className={`${filterstyles.close_menu_icon_cont} ${filter_cssstyles.close_menu_icon_cont}` + ' d-none d-md-flex align-items-center justify-content-center '}
2236
+ onClick={() => {
2237
+ var element = document.getElementById('filterslider');
2238
+ element.classList.remove(filterstyles.filterslider_container_opened);
2239
+ }}
2240
+ >
2241
+ <i className="h-100 d-flex align-items-center justify-content-center">
2242
+ <IoMdClose
2243
+ size={sectionproperties.closeSlider_fontSize}
2244
+ style={{
2245
+ color: sectionproperties.closeSlider_color,
2246
+ }}
2247
+ />
2248
+ </i>
2249
+ </div>
2250
+ </div>
2251
+ {/* {sectionproperties.otherfilters == 'Show' && (
2252
+ <div class="row m-0 w-100">
2253
+ <div class="col-lg-12 d-flex justify-content-start">
2254
+ <p
2255
+ className="m-0 p-0 font-16 font-weight-600"
2256
+ style={{
2257
+ color: sectionproperties.filter_titlecolor,
2258
+ fontSize: sectionproperties.filter_titlefontsize + 'px',
2259
+ fontWeight: sectionproperties.filter_titlefontweight,
2260
+ textTransform: sectionproperties.filter_titletextransform,
2261
+ }}
2262
+ >
2263
+ {langdetect == 'en' ? 'Sort By' : 'ترتيب حسب'}
2264
+ </p>
2265
+ </div>
2266
+ <div className="col-lg-12">
2267
+ <hr className="mt-2 mb-3" />
2268
+ </div>
2269
+ {otherfilters.map((item, index) => {
2270
+ return (
2271
+ <div className="col-lg-12 pl-4 pr-4">
2272
+ <Accordion allowMultipleExpanded={true} allowZeroExpanded={true} preExpanded={[0, 1, 2, 3]} style={{ width: '100%' }}>
2273
+ <AccordionItem uuid={index}>
2274
+ <AccordionItemHeading>
2275
+ <AccordionItemButton>
2276
+ <div className={filter_cssstyles.titlecontainer + ' row m-0 p-0 mb-2 pl-md-3 pr-md-3 '}>
2277
+ <div className="col-lg-10 col-md-10 col-sm-10 p-0">
2278
+ <p
2279
+ className={
2280
+ langdetect == 'en'
2281
+ ? filter_cssstyles.collapsetitle + ' m-0 p-0 collapsetitle '
2282
+ : filter_cssstyles.collapsetitle + ' collapsetitle m-0 p-0 text-right'
2283
+ }
2284
+ >
2285
+ {item.name}
2286
+ </p>
2287
+ </div>
2288
+ <div className="col-lg-2 col-md-2 col-sm-2 p-0">
2289
+ <AccordionItemState>
2290
+ {(state) => {
2291
+ if (state.expanded == true) {
2292
+ return (
2293
+ <i
2294
+ className={
2295
+ filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
2296
+ }
2297
+ >
2298
+ <FiChevronDown />
2299
+ </i>
2300
+ );
2301
+ } else {
2302
+ return (
2303
+ <i className={filter_cssstyles.collapsetitle + ' h-100 d-flex align-items-center justify-content-end '}>
2304
+ <FiChevronUp />
2305
+ </i>
2306
+ );
2307
+ }
2308
+ }}
2309
+ </AccordionItemState>
2310
+ </div>
2311
+ </div>
2312
+ </AccordionItemButton>
2313
+ </AccordionItemHeading>
2314
+ <AccordionItemPanel className="p-0">
2315
+ <div className="row mt-0 mb-2 ml-0 mr-0 d-lg-flex">
2316
+ <div className={'col-lg-12'}>
2317
+ <div
2318
+ className={
2319
+ langdetect == 'en'
2320
+ ? `${filterstyles.timeline}` + ' p-sm-0 '
2321
+ : `${filterstyles.timeline} ${filterstyles.timelinetrans}` + ' p-sm-0 '
2322
+ }
2323
+ >
2324
+ {item.filterarray.map((valueitem, valueindex) => {
2325
+ var ischecked = false;
2326
+ if (item.payloadvalue == 'sortprice') {
2327
+ if (valueitem.value == ProductFilterObjContext.sortprice) {
2328
+ ischecked = true;
2329
+ }
2330
+ } else if (item.payloadvalue == 'sortdates') {
2331
+ if (valueitem.value == ProductFilterObjContext.sortdates) {
2332
+ ischecked = true;
2333
+ }
2334
+ }
2335
+ return (
2336
+ <div
2337
+ className={
2338
+ `${filterstyles.border_left_line} ${filterstyles.timelineinnercont} ${filter_cssstyles.timelineinnercont}
2339
+ ${ischecked ? `${filter_cssstyles.timelineinnercont_active} ${filterstyles.timelineinnercont_active}` : ''}
2340
+
2341
+ ` + ' d-flex align-items-center pb-3 '
2342
+ }
2343
+ onClick={() => {
2344
+ var tempfetchproductsfilerobjcontext = { ...ProductFilterObjContext };
2345
+ if (tempfetchproductsfilerobjcontext[item.payloadvalue] == valueitem.value) {
2346
+ tempfetchproductsfilerobjcontext[item.payloadvalue] = '';
2347
+ } else {
2348
+ tempfetchproductsfilerobjcontext[item.payloadvalue] = valueitem.value;
2349
+ }
2350
+ tempfetchproductsfilerobjcontext.page = 0;
2351
+ setProductFilterObjContext({ ...tempfetchproductsfilerobjcontext });
2352
+
2353
+ filterrouting(tempfetchproductsfilerobjcontext);
2354
+ }}
2355
+ >
2356
+ <div>
2357
+ <div
2358
+ className={
2359
+ ` ${ischecked ? filter_cssstyles.btn_item_active : ''} ${filterstyles.btn_item} ${
2360
+ filter_cssstyles.btn_item
2361
+ }` + ' mb-2 d-flex align-items-center '
2362
+ }
2363
+ >
2364
+ <i className="h-100 d-flex align-items-center"></i>
2365
+ </div>
2366
+ </div>
2367
+ <div className={langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'}>
2368
+ <p
2369
+ className={`${filterstyles.timeline_text} ${filter_cssstyles.timeline_text}` + ' m-0 p-0 '}
2370
+ style={{
2371
+ color: ischecked ? sectionproperties.activecat_color : '',
2372
+ }}
2373
+ >
2374
+ {valueitem.name}
2375
+ </p>
2376
+ </div>
2377
+ </div>
2378
+ );
2379
+ })}
2380
+ </div>
2381
+ </div>
2382
+ </div>
2383
+ </AccordionItemPanel>
2384
+ </AccordionItem>
2385
+ </Accordion>
2386
+ </div>
2387
+ );
2388
+ })}
2389
+ {sectionproperties.showfilterbyrating == 'Show' && (
2390
+ <div className="col-lg-12 pl-4 pr-4">
2391
+ <div className={filter_cssstyles.titlecontainer + ' row m-0 p-0 mb-2 pl-md-3 pr-md-3 '}>
2392
+ <div className="col-lg-12 col-md-12 col-sm-12 p-0 mb-3">
2393
+ <p
2394
+ className={
2395
+ langdetect == 'en'
2396
+ ? filter_cssstyles.collapsetitle + ' m-0 p-0 collapsetitle '
2397
+ : filter_cssstyles.collapsetitle + ' collapsetitle m-0 p-0 text-right'
2398
+ }
2399
+ >
2400
+ {langdetect == 'en' ? 'Ratings' : 'التقييمات'}
2401
+ </p>
2402
+ </div>
2403
+ <div className="col-lg-12 col-md-12 col-sm-12 mb-4">
2404
+ <InputRange
2405
+ draggableTrack={true}
2406
+ formatLabel={(value) => `${value}`}
2407
+ maxValue={5}
2408
+ minValue={0}
2409
+ value={raterangevalue}
2410
+ onChange={(value) => {
2411
+ setraterangevalue({ ...value });
2412
+ }}
2413
+ />
2414
+ </div>
2415
+ </div>
2416
+ </div>
2417
+ )}
2418
+ </div>
2419
+ )} */}
2420
+
2421
+ <div className={filter_cssstyles.filteraccordion + ' col-lg-12 filter-accordion p-md-0 pl-4 pr-4 '}>
2422
+ {sectionproperties.showcountriesfilter == 'Show' && Countriesfilter()}
2423
+ {sectionproperties.showvariantsfilter == 'Show' && InstFilters()}
2424
+ {sectionproperties.filterType == 'All' && sectionproperties.showcategoriesfilter == 'Show' && <div class="row m-0 w-100 mb-3">{CategoriesFilter()}</div>}
2425
+ {sectionproperties.filterType == 'Collections' && sectionproperties.showcategoriesfilter == 'Show' && <div class="row m-0 w-100 mb-3">{CollectionsFilter()}</div>}
2426
+ {sectionproperties.showdynamicfilter == 'Show' && <div class="row m-0 w-100 mb-3">{DynamicFilter()}</div>}
2427
+ </div>
2428
+ </div>
2429
+ </div>
2430
+
2431
+ <div className="col-lg-12">
2432
+ <Offcanvas
2433
+ show={props?.openFilterSlider}
2434
+ onHide={() => {
2435
+ props.setopenFilterSlider(false);
2436
+ }}
2437
+ placement="end"
2438
+ scroll={true}
2439
+ style={{
2440
+ minWidth: '200px',
2441
+ background: sectionproperties.filter_backgroundcolor,
2442
+ borderRadius: sectionproperties.filter_borderBottomLeftRadius + 'px',
2443
+ }}
2444
+ backdrop={true}
2445
+ >
2446
+ <Offcanvas.Header>
2447
+ <Offcanvas.Title>
2448
+ {langdetect == 'en' && (
2449
+ <div
2450
+ class="allcentered"
2451
+ style={{
2452
+ position: 'absolute',
2453
+ left: -34,
2454
+ top: 5,
2455
+ width: 30,
2456
+ height: 30,
2457
+ background: '#000',
2458
+ }}
2459
+ onClick={() => {
2460
+ props.setopenFilterSlider(false);
2461
+ }}
2462
+ >
2463
+ <IoMdClose color={'#fff'} size={16} />
2464
+ </div>
2465
+ )}
2466
+ {langdetect == 'ar' && (
2467
+ <div
2468
+ class="allcentered"
2469
+ style={{
2470
+ position: 'absolute',
2471
+ right: -34,
2472
+ top: 5,
2473
+ width: 30,
2474
+ height: 30,
2475
+ background: '#000',
2476
+ }}
2477
+ onClick={() => {
2478
+ props.setopenFilterSlider(false);
2479
+ }}
2480
+ >
2481
+ <IoMdClose color={'#fff'} size={16} />
2482
+ </div>
2483
+ )}
2484
+ <div className="row m-0 w-100 mt-2">
2485
+ <div className="col-12 d-none justify-content-center align-items-center d-md-flex my-2">
2486
+ <p
2487
+ className="m-0 p-0 font-16 font-weight-600"
2488
+ style={{
2489
+ color: sectionproperties.filter_titlecolor,
2490
+ fontSize: sectionproperties.filter_titlefontsize + 'px',
2491
+ fontWeight: sectionproperties.filter_titlefontweight,
2492
+ textTransform: sectionproperties.filter_titletextransform,
2493
+ }}
2494
+ >
2495
+ {langdetect == 'en' ? 'Filter & Sort' : 'فلترة'}
2496
+ </p>
2497
+ </div>
2498
+ {/* <div className="col-lg-3 col-md-3 col-sm-3 d-none d-md-flex align-items-center justify-content-end p-0">
2499
+ <div
2500
+ className={
2501
+ `${filterstyles.close_menu_icon_cont} ${filter_cssstyles.close_menu_icon_cont}` + ' d-none d-md-flex align-items-center justify-content-center '
2502
+ }
2503
+ onClick={() => {
2504
+ props.setopenFilterSlider(false);
2505
+ }}
2506
+ >
2507
+ <i className="h-100 d-flex align-items-center justify-content-center">
2508
+ <IoMdClose
2509
+ size={sectionproperties.closeSlider_fontSize}
2510
+ style={{
2511
+ color: sectionproperties.closeSlider_color,
2512
+ }}
2513
+ />
2514
+ </i>
2515
+ </div>
2516
+ </div> */}
2517
+ <div class="col-lg-12 p-0">
2518
+ <hr class="mt-2 mb-2" />
2519
+ </div>
2520
+ </div>
2521
+ </Offcanvas.Title>
2522
+ </Offcanvas.Header>
2523
+ <Offcanvas.Body>
2524
+ <div
2525
+ className={' pb-md-5 '}
2526
+ style={{
2527
+ background: sectionproperties.filter_backgroundcolor,
2528
+ borderRadius: sectionproperties.filter_borderBottomLeftRadius + 'px',
2529
+ }}
2530
+ >
2531
+ <div className={filter_cssstyles.filteraccordion + ' row m-0 w-100 pt-2 pb-3 filter-accordion '}>
2532
+ {/* {sectionproperties.otherfilters == 'Show' &&
2533
+ otherfilters.map((item, index) => {
2534
+ return (
2535
+ <> */}
2536
+ <Accordion allowMultipleExpanded={true} allowZeroExpanded={true} preExpanded={[0, 1, 2, 3]} style={{ width: '100%' }}>
2537
+ <AccordionItem uuid={0}>
2538
+ <AccordionItemHeading>
2539
+ <AccordionItemButton>
2540
+ <div className={filter_cssstyles.titlecontainer + ' row m-0 p-0 mb-2 pl-md-3 pr-md-3 '}>
2541
+ <div className="col-lg-10 col-md-10 col-sm-10 p-0">
2542
+ <p
2543
+ className={
2544
+ langdetect == 'en' ? filter_cssstyles.collapsetitle + ' m-0 p-0 ' : filter_cssstyles.collapsetitle + ' m-0 p-0 text-right'
2545
+ }
2546
+ >
2547
+ {lang.sortby}
2548
+ </p>
2549
+ </div>
2550
+ <div className="col-lg-2 col-md-2 col-sm-2 p-0">
2551
+ <AccordionItemState>
2552
+ {(state) => {
2553
+ if (state.expanded == true) {
2554
+ return (
2555
+ <i className={filter_cssstyles.collapsetitle + ' h-100 d-flex align-items-center justify-content-end '}>
2556
+ <FiChevronUp />
2557
+ </i>
2558
+ );
2559
+ } else {
2560
+ return (
2561
+ <i className={filter_cssstyles.collapsetitle + ' h-100 d-flex align-items-center justify-content-end '}>
2562
+ <FiChevronDown />
2563
+ </i>
2564
+ );
2565
+ }
2566
+ }}
2567
+ </AccordionItemState>
2568
+ </div>
2569
+ </div>
2570
+ </AccordionItemButton>
2571
+ </AccordionItemHeading>
2572
+ <AccordionItemPanel className="p-0">
2573
+ <div className="row mt-0 mb-2 ml-0 mr-0 d-lg-flex">
2574
+ <div className={'col-lg-12'}>
2575
+ <div
2576
+ className={
2577
+ langdetect == 'en' ? `${filterstyles.timeline}` + ' p-sm-0 ' : `${filterstyles.timeline} ${filterstyles.timelinetrans}` + ' p-sm-0 '
2578
+ }
2579
+ >
2580
+ {otherfilters.map((item, index) => {
2581
+ return (
2582
+ <div class="w-100 px-3">
2583
+ {item.filterarray.map((valueitem, valueindex) => {
2584
+ var ischecked = false;
2585
+ if (item.payloadvalue == 'sortprice') {
2586
+ if (valueitem.value == ProductFilterObjContext.sortprice) {
2587
+ ischecked = true;
2588
+ }
2589
+ } else if (item.payloadvalue == 'sortdates') {
2590
+ if (valueitem.value == ProductFilterObjContext.sortdates) {
2591
+ ischecked = true;
2592
+ }
2593
+ }
2594
+ return (
2595
+ <div
2596
+ className={
2597
+ `${filterstyles.border_left_line} ${filterstyles.timelineinnercont} ${filter_cssstyles.timelineinnercont}
2598
+ ${
2599
+ ischecked
2600
+ ? `${filter_cssstyles.timelineinnercont_active} ${filterstyles.timelineinnercont_active}`
2601
+ : ''
2602
+ }
2603
+ ` + ' d-flex align-items-center pb-3 '
2604
+ }
2605
+ onClick={() => {
2606
+ var tempfetchproductsfilerobjcontext = { ...ProductFilterObjContext };
2607
+ if (tempfetchproductsfilerobjcontext[item.payloadvalue] == valueitem.value) {
2608
+ tempfetchproductsfilerobjcontext[item.payloadvalue] = '';
2609
+ } else {
2610
+ tempfetchproductsfilerobjcontext[item.payloadvalue] = valueitem.value;
2611
+ }
2612
+ tempfetchproductsfilerobjcontext.page = 0;
2613
+ setProductFilterObjContext({ ...tempfetchproductsfilerobjcontext });
2614
+
2615
+ filterrouting(tempfetchproductsfilerobjcontext);
2616
+ setsortbycontext(valueitem.name);
2617
+ }}
2618
+ >
2619
+ <div
2620
+ className={
2621
+ ` ${ischecked ? filter_cssstyles.btn_item_active : ''} ${filterstyles.btn_item} ${
2622
+ filter_cssstyles.btn_item
2623
+ }` + ' d-flex align-items-center '
2624
+ }
2625
+ >
2626
+ <i className="h-100 d-flex align-items-center"></i>
2627
+ </div>
2628
+ <div className={langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'}>
2629
+ <p
2630
+ className={`${filterstyles.timeline_text} ${filter_cssstyles.timeline_text}` + ' m-0 p-0 '}
2631
+ style={{
2632
+ color: ischecked ? sectionproperties.activecat_color : '',
2633
+ }}
2634
+ >
2635
+ {valueitem.name}
2636
+ </p>
2637
+ </div>
2638
+ </div>
2639
+ );
2640
+ })}
2641
+ </div>
2642
+ );
2643
+ })}
2644
+ {/* {item.filterarray.map((valueitem, valueindex) => {
2645
+ var ischecked = false;
2646
+ if (item.payloadvalue == 'sortprice') {
2647
+ if (valueitem.value == ProductFilterObjContext.sortprice) {
2648
+ ischecked = true;
2649
+ }
2650
+ } else if (item.payloadvalue == 'sortdates') {
2651
+ if (valueitem.value == ProductFilterObjContext.sortdates) {
2652
+ ischecked = true;
2653
+ }
2654
+ }
2655
+ return (
2656
+ <div
2657
+ className={
2658
+ `${filterstyles.border_left_line} ${filterstyles.timelineinnercont} ${
2659
+ filter_cssstyles.timelineinnercont
2660
+ }
2661
+ ${ischecked ? `${filter_cssstyles.timelineinnercont_active} ${filterstyles.timelineinnercont_active}` : ''}
2662
+
2663
+ ` + ' d-flex align-items-center pb-3 '
2664
+ }
2665
+ onClick={() => {
2666
+ // setfilterfunc(valueitem.valueid, valueindex, index, 'assign');
2667
+ var tempfetchproductsfilerobjcontext = { ...ProductFilterObjContext };
2668
+ if (tempfetchproductsfilerobjcontext[item.payloadvalue] == valueitem.value) {
2669
+ tempfetchproductsfilerobjcontext[item.payloadvalue] = '';
2670
+ } else {
2671
+ tempfetchproductsfilerobjcontext[item.payloadvalue] = valueitem.value;
2672
+ }
2673
+ setProductFilterObjContext({ ...tempfetchproductsfilerobjcontext });
2674
+ }}
2675
+ >
2676
+ <div>
2677
+ <div
2678
+ className={
2679
+ ` ${ischecked ? filter_cssstyles.btn_item_active : ''} ${filterstyles.btn_item} ${
2680
+ filter_cssstyles.btn_item
2681
+ }` + ' mb-2 d-flex align-items-center '
2682
+ }
2683
+ >
2684
+ <i className="h-100 d-flex align-items-center"></i>
2685
+ </div>
2686
+ </div>
2687
+ <div className={langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'}>
2688
+ <p
2689
+ className={`${filterstyles.timeline_text} ${filter_cssstyles.timeline_text}` + ' m-0 p-0 '}
2690
+ style={{
2691
+ color: ischecked ? sectionproperties.activecat_color : '',
2692
+ }}
2693
+ >
2694
+ {valueitem.name}
2695
+ </p>
2696
+ </div>
2697
+ </div>
2698
+ );
2699
+ })} */}
2700
+ </div>
2701
+ </div>
2702
+ </div>
2703
+ </AccordionItemPanel>
2704
+ </AccordionItem>
2705
+ </Accordion>
2706
+ {/* <hr className="mt-3 mb-3" /> */}
2707
+ {/* </>
2708
+ );
2709
+ })} */}
2710
+ {sectionproperties.otherfilters == 'Show' && (
2711
+ <div className="col-lg-12 p-0">
2712
+ <hr className="mt-2 mb-3" />
2713
+ </div>
2714
+ )}
2715
+ <div className={filter_cssstyles.filteraccordion + ' col-lg-12 filter-accordion p-md-0 '}>
2716
+ {sectionproperties.showcountriesfilter == 'Show' && Countriesfilter()}
2717
+ {sectionproperties.filterType == 'All' && sectionproperties.showcategoriesfilter == 'Show' && <div class="row m-0 w-100">{CategoriesFilter()}</div>}
2718
+ {sectionproperties.filterType == 'Collections' && sectionproperties.showcategoriesfilter == 'Show' && (
2719
+ <div class="row m-0 w-100">
2720
+ {CollectionsFilter()}
2721
+ <div className="col-lg-12 p-0">
2722
+ <hr className="mt-2 mb-3" />
2723
+ </div>
2724
+ </div>
2725
+ )}
2726
+ {sectionproperties.showdynamicfilter == 'Show' && (
2727
+ <div class="row m-0 w-100">
2728
+ {DynamicFilter()}
2729
+ <div className="col-lg-12 p-0">
2730
+ <hr className="mt-2 mb-3" />
2731
+ </div>
2732
+ </div>
2733
+ )}
2734
+ {sectionproperties.showvariantsfilter == 'Show' && (
2735
+ <div class="row m-0 w-100">
2736
+ {InstFilters()}
2737
+ <div className="col-lg-12 p-0">
2738
+ <hr className="mt-2 mb-3" />
2739
+ </div>
2740
+ </div>
2741
+ )}
2742
+ </div>
2743
+ </div>
2744
+ </div>
2745
+ </Offcanvas.Body>
2746
+ </Offcanvas>
2747
+ </div>
2748
+ </div>
2749
+ )}
2750
+ </div>
2751
+ );
2752
+ };
2753
+ export default Filter;