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,2758 @@
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 overflowyedit">
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 className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex justify-content-start mb-3">
1668
+ <p className={langdetect == 'en' ? filter_cssstyles.collapsetitle + ' m-0 p-0 ' : filter_cssstyles.collapsetitle + ' m-0 p-0 text-right'}>
1669
+ {langdetect == 'en' ? sectionproperties.filtercollectiontitle_en : sectionproperties.filtercollectiontitle_ar}
1670
+ </p>
1671
+ </div> */}
1672
+ <div class="col-lg-12 p-0 mb-4">
1673
+ {/* filtercard */}
1674
+ {/* here */}
1675
+ <ScrollMenu transitionBehavior={'auto'} wrapperClassName={''} itemClassName={''} scrollContainerClassName={'scrollmenuclasssubscrollbar2'}>
1676
+ {collectionstobevisible.map((item, index) => {
1677
+ return (
1678
+ <div className={' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-12 w-100 mb-2 '}>
1679
+ <div
1680
+ className={`${filter_cssstyles.timeline_text} ${filter_cssstyles.filtercard}` + ' p-0 cursor-pointer '}
1681
+ onClick={() => {
1682
+ setCollectionFilterFunc(item.collectionid);
1683
+ }}
1684
+ style={{
1685
+ color: item.isfilterselected == true ? sectionproperties.activecat_color : '',
1686
+ }}
1687
+ >
1688
+ <div class="col-lg-12 allcentered mb-2">
1689
+ <div
1690
+ style={{
1691
+ width: sectionproperties.filterimagewidthheight + '%',
1692
+ height: sectionproperties.filterimagewidthheight + '%',
1693
+ }}
1694
+ >
1695
+ <Imagekitimagecomp
1696
+ urlEndpoint={ikimagecredcontext?.ikimageendpoint}
1697
+ publicKey={ikimagecredcontext?.ikimagepublickey}
1698
+ path={'/tr:w-' + sectionproperties.filterimage_tr + ',h-' + sectionproperties.filterimage_h + '/' + item.collectionlogo}
1699
+ style={{
1700
+ width: '100%',
1701
+ height: '100%',
1702
+ objectFit: 'cover',
1703
+ borderRadius: sectionproperties.filterimageborderradius + 'px',
1704
+ }}
1705
+ loading="lazy"
1706
+ />
1707
+ </div>
1708
+ </div>
1709
+ <div class="row m-0 w-100">
1710
+ <div class="col-10 text-start">
1711
+ <p class={' m-0 p-0 '}>{langdetect == 'en' ? item.title_en : item.title_ar}</p>
1712
+ </div>
1713
+ <div class="col-2 text-end">
1714
+ <i class="h-100 allcentered">{langdetect == 'en' ? <BsChevronRight /> : <BsChevronRight />}</i>
1715
+ </div>
1716
+ </div>
1717
+ </div>
1718
+ </div>
1719
+ );
1720
+ })}
1721
+ </ScrollMenu>
1722
+ </div>
1723
+ {sectionproperties.showproductgroupbytitle == 'Show' && (
1724
+ <div
1725
+ class="col-lg-12 text-start px-4 mb-5"
1726
+ style={{
1727
+ fontSize: 15,
1728
+ color: '#62554a',
1729
+ }}
1730
+ >
1731
+ <span
1732
+ class="cursor-pointer"
1733
+ onClick={() => {
1734
+ routingcountext('home', false, '');
1735
+ }}
1736
+ >
1737
+ {'Home'} /{' '}
1738
+ </span>{' '}
1739
+ <span style={{ textTransform: 'capitalize' }} class="mx-2">
1740
+ {props.show_product_group_titles()['title_en']}
1741
+ </span>
1742
+ </div>
1743
+ )}
1744
+ </div>
1745
+ )}
1746
+ {sectionproperties.filterType != 'Title & Sort By Only' && sectionproperties.filterdirection == 'Vertical' && (
1747
+ <div
1748
+ className={`${filterstyles.filterslider_container}` + ' pb-md-5 '}
1749
+ id="filterslider"
1750
+ style={{
1751
+ background: sectionproperties.filter_backgroundcolor,
1752
+ borderRadius: sectionproperties.filter_borderBottomLeftRadius + 'px',
1753
+ }}
1754
+ >
1755
+ <div className={filter_cssstyles.filteraccordion + ' row m-0 w-100 pt-2 pb-3 filter-accordion '}>
1756
+ <div className="col-lg-9 col-md-9 col-sm-9 d-none align-items-center d-md-flex">
1757
+ <p
1758
+ className="m-0 p-0 font-16 font-weight-600"
1759
+ style={{
1760
+ color: sectionproperties.filter_titlecolor,
1761
+ fontSize: sectionproperties.filter_titlefontsize + 'px',
1762
+ fontWeight: sectionproperties.filter_titlefontweight,
1763
+ textTransform: sectionproperties.filter_titletextransform,
1764
+ }}
1765
+ >
1766
+ {langdetect == 'en' ? 'Filter' : 'فلترة'}
1767
+ </p>
1768
+ </div>
1769
+ <div className="col-lg-3 col-md-3 col-sm-3 d-none d-md-flex align-items-center justify-content-end p-0">
1770
+ <div
1771
+ className={`${filterstyles.close_menu_icon_cont} ${filter_cssstyles.close_menu_icon_cont}` + ' d-none d-md-flex align-items-center justify-content-center '}
1772
+ onClick={() => {
1773
+ var element = document.getElementById('filterslider');
1774
+ element.classList.remove(filterstyles.filterslider_container_opened);
1775
+ }}
1776
+ >
1777
+ <i className="h-100 d-flex align-items-center justify-content-center">
1778
+ <IoMdClose
1779
+ size={sectionproperties.closeSlider_fontSize}
1780
+ style={{
1781
+ color: sectionproperties.closeSlider_color,
1782
+ }}
1783
+ />
1784
+ </i>
1785
+ </div>
1786
+ </div>
1787
+ {sectionproperties.otherfilters == 'Show' && (
1788
+ <div class="row m-0 w-100">
1789
+ <div class="col-lg-12 d-flex justify-content-start">
1790
+ <p
1791
+ className="m-0 p-0 font-16 font-weight-600"
1792
+ style={{
1793
+ color: sectionproperties.filter_titlecolor,
1794
+ fontSize: sectionproperties.filter_titlefontsize + 'px',
1795
+ fontWeight: sectionproperties.filter_titlefontweight,
1796
+ textTransform: sectionproperties.filter_titletextransform,
1797
+ }}
1798
+ >
1799
+ {langdetect == 'en' ? 'Sort By' : 'ترتيب حسب'}
1800
+ </p>
1801
+ </div>
1802
+ <div className="col-lg-12">
1803
+ <hr className="mt-2 mb-3" />
1804
+ </div>
1805
+ {otherfilters.map((item, index) => {
1806
+ return (
1807
+ <div className="col-lg-12 pl-4 pr-4">
1808
+ <Accordion allowMultipleExpanded={true} allowZeroExpanded={true} preExpanded={[0, 1, 2, 3]} style={{ width: '100%' }}>
1809
+ <AccordionItem uuid={index}>
1810
+ <AccordionItemHeading>
1811
+ <AccordionItemButton>
1812
+ <div className={filter_cssstyles.titlecontainer + ' row m-0 p-0 mb-2 pl-md-3 pr-md-3 '}>
1813
+ <div className="col-lg-10 col-md-10 col-sm-10 p-0">
1814
+ <p
1815
+ className={
1816
+ langdetect == 'en'
1817
+ ? filter_cssstyles.collapsetitle + ' m-0 p-0 collapsetitle '
1818
+ : filter_cssstyles.collapsetitle + ' collapsetitle m-0 p-0 text-right'
1819
+ }
1820
+ >
1821
+ {item.name}
1822
+ </p>
1823
+ </div>
1824
+ <div className="col-lg-2 col-md-2 col-sm-2 p-0">
1825
+ <AccordionItemState>
1826
+ {(state) => {
1827
+ if (state.expanded == true) {
1828
+ return (
1829
+ <i
1830
+ className={
1831
+ filter_cssstyles.collapsetitle +
1832
+ ' collapsetitle h-100 d-flex align-items-center justify-content-end '
1833
+ }
1834
+ >
1835
+ <FiChevronUp />
1836
+ </i>
1837
+ );
1838
+ } else {
1839
+ return (
1840
+ <i className={filter_cssstyles.collapsetitle + ' h-100 d-flex align-items-center justify-content-end '}>
1841
+ <FiChevronDown />
1842
+ </i>
1843
+ );
1844
+ }
1845
+ }}
1846
+ </AccordionItemState>
1847
+ </div>
1848
+ </div>
1849
+ </AccordionItemButton>
1850
+ </AccordionItemHeading>
1851
+ <AccordionItemPanel className="p-0">
1852
+ <div className="row mt-0 mb-2 ml-0 mr-0 d-lg-flex">
1853
+ <div className={'col-lg-12'}>
1854
+ <div
1855
+ className={
1856
+ langdetect == 'en'
1857
+ ? `${filterstyles.timeline}` + ' p-sm-0 '
1858
+ : `${filterstyles.timeline} ${filterstyles.timelinetrans}` + ' p-sm-0 '
1859
+ }
1860
+ >
1861
+ {item.filterarray.map((valueitem, valueindex) => {
1862
+ var ischecked = false;
1863
+ if (item.payloadvalue == 'sortprice') {
1864
+ if (valueitem.value == ProductFilterObjContext.sortprice) {
1865
+ ischecked = true;
1866
+ }
1867
+ } else if (item.payloadvalue == 'sortdates') {
1868
+ if (valueitem.value == ProductFilterObjContext.sortdates) {
1869
+ ischecked = true;
1870
+ }
1871
+ }
1872
+ return (
1873
+ <div
1874
+ className={
1875
+ `${filterstyles.border_left_line} ${filterstyles.timelineinnercont} ${filter_cssstyles.timelineinnercont}
1876
+ ${ischecked ? `${filter_cssstyles.timelineinnercont_active} ${filterstyles.timelineinnercont_active}` : ''}
1877
+
1878
+ ` + ' d-flex align-items-center pb-3 '
1879
+ }
1880
+ onClick={() => {
1881
+ var tempfetchproductsfilerobjcontext = { ...ProductFilterObjContext };
1882
+ if (tempfetchproductsfilerobjcontext[item.payloadvalue] == valueitem.value) {
1883
+ tempfetchproductsfilerobjcontext[item.payloadvalue] = '';
1884
+ } else {
1885
+ tempfetchproductsfilerobjcontext[item.payloadvalue] = valueitem.value;
1886
+ }
1887
+ tempfetchproductsfilerobjcontext.page = 0;
1888
+ setProductFilterObjContext({ ...tempfetchproductsfilerobjcontext });
1889
+
1890
+ filterrouting(tempfetchproductsfilerobjcontext);
1891
+ }}
1892
+ >
1893
+ <div>
1894
+ <div
1895
+ className={
1896
+ ` ${ischecked ? filter_cssstyles.btn_item_active : ''} ${filterstyles.btn_item} ${
1897
+ filter_cssstyles.btn_item
1898
+ }` + ' d-flex align-items-center '
1899
+ }
1900
+ >
1901
+ <i className="h-100 d-flex align-items-center"></i>
1902
+ </div>
1903
+ </div>
1904
+ <div className={langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'}>
1905
+ <p
1906
+ className={`${filterstyles.timeline_text} ${filter_cssstyles.timeline_text}` + ' m-0 p-0 '}
1907
+ style={{
1908
+ color: ischecked ? sectionproperties.activecat_color : '',
1909
+ }}
1910
+ >
1911
+ {valueitem.name}
1912
+ </p>
1913
+ </div>
1914
+ </div>
1915
+ );
1916
+ })}
1917
+ </div>
1918
+ </div>
1919
+ </div>
1920
+ </AccordionItemPanel>
1921
+ </AccordionItem>
1922
+ </Accordion>
1923
+ </div>
1924
+ );
1925
+ })}
1926
+ {sectionproperties.showfilterbyrating == 'Show' && (
1927
+ <div className="col-lg-12 pl-4 pr-4">
1928
+ <div className={filter_cssstyles.titlecontainer + ' row m-0 p-0 mb-2 pl-md-3 pr-md-3 '}>
1929
+ <div className="col-lg-12 col-md-12 col-sm-12 p-0 mb-3">
1930
+ <p
1931
+ className={
1932
+ langdetect == 'en'
1933
+ ? filter_cssstyles.collapsetitle + ' m-0 p-0 collapsetitle '
1934
+ : filter_cssstyles.collapsetitle + ' collapsetitle m-0 p-0 text-right'
1935
+ }
1936
+ >
1937
+ {langdetect == 'en' ? 'Ratings' : 'التقييمات'}
1938
+ </p>
1939
+ </div>
1940
+ <div className="col-lg-12 col-md-12 col-sm-12 mb-4">
1941
+ <InputRange
1942
+ draggableTrack={true}
1943
+ formatLabel={(value) => `${value}`}
1944
+ maxValue={5}
1945
+ minValue={0}
1946
+ value={raterangevalue}
1947
+ onChange={(value) => {
1948
+ setraterangevalue({ ...value });
1949
+ }}
1950
+ />
1951
+ </div>
1952
+ </div>
1953
+ </div>
1954
+ )}
1955
+ </div>
1956
+ )}
1957
+ <div className="col-lg-9 col-md-9 col-sm-9 d-flex align-items-center d-md-none">
1958
+ <p
1959
+ className="m-0 p-0 font-16 font-weight-600"
1960
+ style={{
1961
+ color: sectionproperties.filter_titlecolor,
1962
+ fontSize: sectionproperties.filter_titlefontsize + 'px',
1963
+ fontWeight: sectionproperties.filter_titlefontweight,
1964
+ textTransform: sectionproperties.filter_titletextransform,
1965
+ }}
1966
+ >
1967
+ {langdetect == 'en' ? 'Filter' : 'فلترة'}
1968
+ </p>
1969
+ </div>
1970
+ <div className="col-lg-3 col-md-3 col-sm-3 d-flex d-md-none align-items-center justify-content-end p-0">
1971
+ <div
1972
+ className={`${filterstyles.close_menu_icon_cont} ${filter_cssstyles.close_menu_icon_cont}` + ' d-none d-md-flex align-items-center justify-content-center '}
1973
+ onClick={() => {
1974
+ var element = document.getElementById('filterslider');
1975
+ element.classList.remove(filterstyles.filterslider_container_opened);
1976
+ }}
1977
+ >
1978
+ <i className="h-100 d-flex align-items-center justify-content-center">
1979
+ <IoMdClose
1980
+ size={sectionproperties.closeSlider_fontSize}
1981
+ style={{
1982
+ color: sectionproperties.closeSlider_color,
1983
+ }}
1984
+ />
1985
+ </i>
1986
+ </div>
1987
+ </div>
1988
+ <div className="col-lg-12">
1989
+ <hr className="mt-2 mb-3" />
1990
+ </div>
1991
+ <div className={filter_cssstyles.filteraccordion + ' col-lg-12 filter-accordion p-md-0 pl-4 pr-4 '}>
1992
+ {sectionproperties.showcountriesfilter == 'Show' && Countriesfilter()}
1993
+ {sectionproperties.filterType == 'All' && sectionproperties.showcategoriesfilter == 'Show' && <div class="row m-0 w-100">{CategoriesFilter()}</div>}
1994
+ {sectionproperties.filterType == 'Collections' && sectionproperties.showcategoriesfilter == 'Show' && <div class="row m-0 w-100">{CollectionsFilter()}</div>}
1995
+ {sectionproperties.showdynamicfilter == 'Show' && <div class="row m-0 w-100">{DynamicFilter()}</div>}
1996
+ {sectionproperties.showvariantsfilter == 'Show' && InstFilters()}
1997
+ </div>
1998
+ </div>
1999
+ </div>
2000
+ )}
2001
+ <div className="col-lg-12">
2002
+ <Offcanvas
2003
+ show={props?.openFilterSlider}
2004
+ onHide={() => {
2005
+ props.setopenFilterSlider(false);
2006
+ }}
2007
+ placement="end"
2008
+ scroll={true}
2009
+ style={{
2010
+ minWidth: '200px',
2011
+ background: sectionproperties.filter_backgroundcolor,
2012
+ borderRadius: sectionproperties.filter_borderBottomLeftRadius + 'px',
2013
+ }}
2014
+ backdrop={true}
2015
+ >
2016
+ <Offcanvas.Header>
2017
+ <Offcanvas.Title>
2018
+ <div className="row m-0 w-100 mt-2">
2019
+ <div className="col-lg-9 col-md-9 col-sm-9 d-none align-items-center d-md-flex">
2020
+ <p
2021
+ className="m-0 p-0 font-16 font-weight-600"
2022
+ style={{
2023
+ color: sectionproperties.filter_titlecolor,
2024
+ fontSize: sectionproperties.filter_titlefontsize + 'px',
2025
+ fontWeight: sectionproperties.filter_titlefontweight,
2026
+ textTransform: sectionproperties.filter_titletextransform,
2027
+ }}
2028
+ >
2029
+ {langdetect == 'en' ? 'Filter' : 'فلترة'}
2030
+ </p>
2031
+ </div>
2032
+ <div className="col-lg-3 col-md-3 col-sm-3 d-none d-md-flex align-items-center justify-content-end p-0">
2033
+ <div
2034
+ className={
2035
+ `${filterstyles.close_menu_icon_cont} ${filter_cssstyles.close_menu_icon_cont}` + ' d-none d-md-flex align-items-center justify-content-center '
2036
+ }
2037
+ onClick={() => {
2038
+ props.setopenFilterSlider(false);
2039
+ }}
2040
+ >
2041
+ <i className="h-100 d-flex align-items-center justify-content-center">
2042
+ <IoMdClose
2043
+ size={sectionproperties.closeSlider_fontSize}
2044
+ style={{
2045
+ color: sectionproperties.closeSlider_color,
2046
+ }}
2047
+ />
2048
+ </i>
2049
+ </div>
2050
+ </div>
2051
+ <div class="col-lg-12 p-0">
2052
+ <hr class="mt-2 mb-2" />
2053
+ </div>
2054
+ </div>
2055
+ </Offcanvas.Title>
2056
+ </Offcanvas.Header>
2057
+ <Offcanvas.Body>
2058
+ <div
2059
+ className={' pb-md-5 '}
2060
+ style={{
2061
+ background: sectionproperties.filter_backgroundcolor,
2062
+ borderRadius: sectionproperties.filter_borderBottomLeftRadius + 'px',
2063
+ }}
2064
+ >
2065
+ <div className={filter_cssstyles.filteraccordion + ' row m-0 w-100 pt-2 pb-3 filter-accordion '}>
2066
+ {sectionproperties.otherfilters == 'Show' &&
2067
+ otherfilters.map((item, index) => {
2068
+ return (
2069
+ <>
2070
+ <Accordion allowMultipleExpanded={true} allowZeroExpanded={true} preExpanded={[0, 1, 2, 3]} style={{ width: '100%' }}>
2071
+ <AccordionItem uuid={index}>
2072
+ <AccordionItemHeading>
2073
+ <AccordionItemButton>
2074
+ <div className={filter_cssstyles.titlecontainer + ' row m-0 p-0 mb-2 pl-md-3 pr-md-3 '}>
2075
+ <div className="col-lg-10 col-md-10 col-sm-10 p-0">
2076
+ <p
2077
+ className={
2078
+ langdetect == 'en'
2079
+ ? filter_cssstyles.collapsetitle + ' m-0 p-0 '
2080
+ : filter_cssstyles.collapsetitle + ' m-0 p-0 text-right'
2081
+ }
2082
+ >
2083
+ {item.name}
2084
+ </p>
2085
+ </div>
2086
+ <div className="col-lg-2 col-md-2 col-sm-2 p-0">
2087
+ <AccordionItemState>
2088
+ {(state) => {
2089
+ if (state.expanded == true) {
2090
+ return (
2091
+ <i
2092
+ className={
2093
+ filter_cssstyles.collapsetitle + ' h-100 d-flex align-items-center justify-content-end '
2094
+ }
2095
+ >
2096
+ <FiChevronUp />
2097
+ </i>
2098
+ );
2099
+ } else {
2100
+ return (
2101
+ <i
2102
+ className={
2103
+ filter_cssstyles.collapsetitle + ' h-100 d-flex align-items-center justify-content-end '
2104
+ }
2105
+ >
2106
+ <FiChevronDown />
2107
+ </i>
2108
+ );
2109
+ }
2110
+ }}
2111
+ </AccordionItemState>
2112
+ </div>
2113
+ </div>
2114
+ </AccordionItemButton>
2115
+ </AccordionItemHeading>
2116
+ <AccordionItemPanel className="p-0">
2117
+ <div className="row mt-0 mb-2 ml-0 mr-0 d-lg-flex">
2118
+ <div className={'col-lg-12'}>
2119
+ <div
2120
+ className={
2121
+ langdetect == 'en'
2122
+ ? `${filterstyles.timeline}` + ' p-sm-0 '
2123
+ : `${filterstyles.timeline} ${filterstyles.timelinetrans}` + ' p-sm-0 '
2124
+ }
2125
+ >
2126
+ {item.filterarray.map((valueitem, valueindex) => {
2127
+ var ischecked = false;
2128
+ if (item.payloadvalue == 'sortprice') {
2129
+ if (valueitem.value == ProductFilterObjContext.sortprice) {
2130
+ ischecked = true;
2131
+ }
2132
+ } else if (item.payloadvalue == 'sortdates') {
2133
+ if (valueitem.value == ProductFilterObjContext.sortdates) {
2134
+ ischecked = true;
2135
+ }
2136
+ }
2137
+ return (
2138
+ <div
2139
+ className={
2140
+ `${filterstyles.border_left_line} ${filterstyles.timelineinnercont} ${
2141
+ filter_cssstyles.timelineinnercont
2142
+ }
2143
+ ${ischecked ? `${filter_cssstyles.timelineinnercont_active} ${filterstyles.timelineinnercont_active}` : ''}
2144
+
2145
+ ` + ' d-flex align-items-center pb-3 '
2146
+ }
2147
+ onClick={() => {
2148
+ // setfilterfunc(valueitem.valueid, valueindex, index, 'assign');
2149
+ var tempfetchproductsfilerobjcontext = { ...ProductFilterObjContext };
2150
+ if (tempfetchproductsfilerobjcontext[item.payloadvalue] == valueitem.value) {
2151
+ tempfetchproductsfilerobjcontext[item.payloadvalue] = '';
2152
+ } else {
2153
+ tempfetchproductsfilerobjcontext[item.payloadvalue] = valueitem.value;
2154
+ }
2155
+ setProductFilterObjContext({ ...tempfetchproductsfilerobjcontext });
2156
+ }}
2157
+ >
2158
+ <div>
2159
+ <div
2160
+ className={
2161
+ ` ${ischecked ? filter_cssstyles.btn_item_active : ''} ${filterstyles.btn_item} ${
2162
+ filter_cssstyles.btn_item
2163
+ }` + ' d-flex align-items-center '
2164
+ }
2165
+ >
2166
+ <i className="h-100 d-flex align-items-center"></i>
2167
+ </div>
2168
+ </div>
2169
+ <div className={langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'}>
2170
+ <p
2171
+ className={`${filterstyles.timeline_text} ${filter_cssstyles.timeline_text}` + ' m-0 p-0 '}
2172
+ style={{
2173
+ color: ischecked ? sectionproperties.activecat_color : '',
2174
+ }}
2175
+ >
2176
+ {valueitem.name}
2177
+ </p>
2178
+ </div>
2179
+ </div>
2180
+ );
2181
+ })}
2182
+ </div>
2183
+ </div>
2184
+ </div>
2185
+ </AccordionItemPanel>
2186
+ </AccordionItem>
2187
+ </Accordion>
2188
+ {/* <hr className="mt-3 mb-3" /> */}
2189
+ </>
2190
+ );
2191
+ })}
2192
+ {sectionproperties.otherfilters == 'Show' && (
2193
+ <div className="col-lg-12 p-0">
2194
+ <hr className="mt-2 mb-3" />
2195
+ </div>
2196
+ )}
2197
+ <div className={filter_cssstyles.filteraccordion + ' col-lg-12 filter-accordion p-md-0 '}>
2198
+ {sectionproperties.showcountriesfilter == 'Show' && Countriesfilter()}
2199
+ {sectionproperties.filterType == 'All' && sectionproperties.showcategoriesfilter == 'Show' && <div class="row m-0 w-100">{CategoriesFilter()}</div>}
2200
+ {sectionproperties.filterType == 'Collections' && sectionproperties.showcategoriesfilter == 'Show' && (
2201
+ <div class="row m-0 w-100">{CollectionsFilter()}</div>
2202
+ )}
2203
+ {sectionproperties.showdynamicfilter == 'Show' && <div class="row m-0 w-100">{DynamicFilter()}</div>}
2204
+ {sectionproperties.showvariantsfilter == 'Show' && InstFilters()}
2205
+ </div>
2206
+ </div>
2207
+ </div>
2208
+ </Offcanvas.Body>
2209
+ </Offcanvas>
2210
+ </div>
2211
+ </div>
2212
+ )}
2213
+
2214
+ {props.typeprops == 'vertical' && (
2215
+ <div className={'col-lg-12 p-0 w-100 filter mt-md-0 d-md-none'}>
2216
+ <div
2217
+ className={`${filterstyles.filterslider_container}` + ' pb-md-5 '}
2218
+ id="filterslider"
2219
+ style={{
2220
+ background: sectionproperties.filter_backgroundcolor,
2221
+ borderRadius: sectionproperties.filter_borderBottomLeftRadius + 'px',
2222
+ }}
2223
+ >
2224
+ <div className={filter_cssstyles.filteraccordion + ' row m-0 w-100 pt-2 pb-3 filter-accordion '}>
2225
+ <div className="col-lg-9 col-md-9 col-sm-9 d-none align-items-center d-md-flex">
2226
+ <p
2227
+ className="m-0 p-0 font-16 font-weight-600"
2228
+ style={{
2229
+ color: sectionproperties.filter_titlecolor,
2230
+ fontSize: sectionproperties.filter_titlefontsize + 'px',
2231
+ fontWeight: sectionproperties.filter_titlefontweight,
2232
+ textTransform: sectionproperties.filter_titletextransform,
2233
+ }}
2234
+ >
2235
+ {langdetect == 'en' ? 'Filter' : 'فلترة'}
2236
+ </p>
2237
+ </div>
2238
+ <div className="col-lg-3 col-md-3 col-sm-3 d-none d-md-flex align-items-center justify-content-end p-0">
2239
+ <div
2240
+ className={`${filterstyles.close_menu_icon_cont} ${filter_cssstyles.close_menu_icon_cont}` + ' d-none d-md-flex align-items-center justify-content-center '}
2241
+ onClick={() => {
2242
+ var element = document.getElementById('filterslider');
2243
+ element.classList.remove(filterstyles.filterslider_container_opened);
2244
+ }}
2245
+ >
2246
+ <i className="h-100 d-flex align-items-center justify-content-center">
2247
+ <IoMdClose
2248
+ size={sectionproperties.closeSlider_fontSize}
2249
+ style={{
2250
+ color: sectionproperties.closeSlider_color,
2251
+ }}
2252
+ />
2253
+ </i>
2254
+ </div>
2255
+ </div>
2256
+ {/* {sectionproperties.otherfilters == 'Show' && (
2257
+ <div class="row m-0 w-100">
2258
+ <div class="col-lg-12 d-flex justify-content-start">
2259
+ <p
2260
+ className="m-0 p-0 font-16 font-weight-600"
2261
+ style={{
2262
+ color: sectionproperties.filter_titlecolor,
2263
+ fontSize: sectionproperties.filter_titlefontsize + 'px',
2264
+ fontWeight: sectionproperties.filter_titlefontweight,
2265
+ textTransform: sectionproperties.filter_titletextransform,
2266
+ }}
2267
+ >
2268
+ {langdetect == 'en' ? 'Sort By' : 'ترتيب حسب'}
2269
+ </p>
2270
+ </div>
2271
+ <div className="col-lg-12">
2272
+ <hr className="mt-2 mb-3" />
2273
+ </div>
2274
+ {otherfilters.map((item, index) => {
2275
+ return (
2276
+ <div className="col-lg-12 pl-4 pr-4">
2277
+ <Accordion allowMultipleExpanded={true} allowZeroExpanded={true} preExpanded={[0, 1, 2, 3]} style={{ width: '100%' }}>
2278
+ <AccordionItem uuid={index}>
2279
+ <AccordionItemHeading>
2280
+ <AccordionItemButton>
2281
+ <div className={filter_cssstyles.titlecontainer + ' row m-0 p-0 mb-2 pl-md-3 pr-md-3 '}>
2282
+ <div className="col-lg-10 col-md-10 col-sm-10 p-0">
2283
+ <p
2284
+ className={
2285
+ langdetect == 'en'
2286
+ ? filter_cssstyles.collapsetitle + ' m-0 p-0 collapsetitle '
2287
+ : filter_cssstyles.collapsetitle + ' collapsetitle m-0 p-0 text-right'
2288
+ }
2289
+ >
2290
+ {item.name}
2291
+ </p>
2292
+ </div>
2293
+ <div className="col-lg-2 col-md-2 col-sm-2 p-0">
2294
+ <AccordionItemState>
2295
+ {(state) => {
2296
+ if (state.expanded == true) {
2297
+ return (
2298
+ <i
2299
+ className={
2300
+ filter_cssstyles.collapsetitle + ' collapsetitle h-100 d-flex align-items-center justify-content-end '
2301
+ }
2302
+ >
2303
+ <FiChevronDown />
2304
+ </i>
2305
+ );
2306
+ } else {
2307
+ return (
2308
+ <i className={filter_cssstyles.collapsetitle + ' h-100 d-flex align-items-center justify-content-end '}>
2309
+ <FiChevronUp />
2310
+ </i>
2311
+ );
2312
+ }
2313
+ }}
2314
+ </AccordionItemState>
2315
+ </div>
2316
+ </div>
2317
+ </AccordionItemButton>
2318
+ </AccordionItemHeading>
2319
+ <AccordionItemPanel className="p-0">
2320
+ <div className="row mt-0 mb-2 ml-0 mr-0 d-lg-flex">
2321
+ <div className={'col-lg-12'}>
2322
+ <div
2323
+ className={
2324
+ langdetect == 'en'
2325
+ ? `${filterstyles.timeline}` + ' p-sm-0 '
2326
+ : `${filterstyles.timeline} ${filterstyles.timelinetrans}` + ' p-sm-0 '
2327
+ }
2328
+ >
2329
+ {item.filterarray.map((valueitem, valueindex) => {
2330
+ var ischecked = false;
2331
+ if (item.payloadvalue == 'sortprice') {
2332
+ if (valueitem.value == ProductFilterObjContext.sortprice) {
2333
+ ischecked = true;
2334
+ }
2335
+ } else if (item.payloadvalue == 'sortdates') {
2336
+ if (valueitem.value == ProductFilterObjContext.sortdates) {
2337
+ ischecked = true;
2338
+ }
2339
+ }
2340
+ return (
2341
+ <div
2342
+ className={
2343
+ `${filterstyles.border_left_line} ${filterstyles.timelineinnercont} ${filter_cssstyles.timelineinnercont}
2344
+ ${ischecked ? `${filter_cssstyles.timelineinnercont_active} ${filterstyles.timelineinnercont_active}` : ''}
2345
+
2346
+ ` + ' d-flex align-items-center pb-3 '
2347
+ }
2348
+ onClick={() => {
2349
+ var tempfetchproductsfilerobjcontext = { ...ProductFilterObjContext };
2350
+ if (tempfetchproductsfilerobjcontext[item.payloadvalue] == valueitem.value) {
2351
+ tempfetchproductsfilerobjcontext[item.payloadvalue] = '';
2352
+ } else {
2353
+ tempfetchproductsfilerobjcontext[item.payloadvalue] = valueitem.value;
2354
+ }
2355
+ tempfetchproductsfilerobjcontext.page = 0;
2356
+ setProductFilterObjContext({ ...tempfetchproductsfilerobjcontext });
2357
+
2358
+ filterrouting(tempfetchproductsfilerobjcontext);
2359
+ }}
2360
+ >
2361
+ <div>
2362
+ <div
2363
+ className={
2364
+ ` ${ischecked ? filter_cssstyles.btn_item_active : ''} ${filterstyles.btn_item} ${
2365
+ filter_cssstyles.btn_item
2366
+ }` + ' mb-2 d-flex align-items-center '
2367
+ }
2368
+ >
2369
+ <i className="h-100 d-flex align-items-center"></i>
2370
+ </div>
2371
+ </div>
2372
+ <div className={langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'}>
2373
+ <p
2374
+ className={`${filterstyles.timeline_text} ${filter_cssstyles.timeline_text}` + ' m-0 p-0 '}
2375
+ style={{
2376
+ color: ischecked ? sectionproperties.activecat_color : '',
2377
+ }}
2378
+ >
2379
+ {valueitem.name}
2380
+ </p>
2381
+ </div>
2382
+ </div>
2383
+ );
2384
+ })}
2385
+ </div>
2386
+ </div>
2387
+ </div>
2388
+ </AccordionItemPanel>
2389
+ </AccordionItem>
2390
+ </Accordion>
2391
+ </div>
2392
+ );
2393
+ })}
2394
+ {sectionproperties.showfilterbyrating == 'Show' && (
2395
+ <div className="col-lg-12 pl-4 pr-4">
2396
+ <div className={filter_cssstyles.titlecontainer + ' row m-0 p-0 mb-2 pl-md-3 pr-md-3 '}>
2397
+ <div className="col-lg-12 col-md-12 col-sm-12 p-0 mb-3">
2398
+ <p
2399
+ className={
2400
+ langdetect == 'en'
2401
+ ? filter_cssstyles.collapsetitle + ' m-0 p-0 collapsetitle '
2402
+ : filter_cssstyles.collapsetitle + ' collapsetitle m-0 p-0 text-right'
2403
+ }
2404
+ >
2405
+ {langdetect == 'en' ? 'Ratings' : 'التقييمات'}
2406
+ </p>
2407
+ </div>
2408
+ <div className="col-lg-12 col-md-12 col-sm-12 mb-4">
2409
+ <InputRange
2410
+ draggableTrack={true}
2411
+ formatLabel={(value) => `${value}`}
2412
+ maxValue={5}
2413
+ minValue={0}
2414
+ value={raterangevalue}
2415
+ onChange={(value) => {
2416
+ setraterangevalue({ ...value });
2417
+ }}
2418
+ />
2419
+ </div>
2420
+ </div>
2421
+ </div>
2422
+ )}
2423
+ </div>
2424
+ )} */}
2425
+
2426
+ <div className={filter_cssstyles.filteraccordion + ' col-lg-12 filter-accordion p-md-0 pl-4 pr-4 '}>
2427
+ {sectionproperties.showcountriesfilter == 'Show' && Countriesfilter()}
2428
+ {sectionproperties.showvariantsfilter == 'Show' && InstFilters()}
2429
+ {sectionproperties.filterType == 'All' && sectionproperties.showcategoriesfilter == 'Show' && <div class="row m-0 w-100 mb-3">{CategoriesFilter()}</div>}
2430
+ {sectionproperties.filterType == 'Collections' && sectionproperties.showcategoriesfilter == 'Show' && <div class="row m-0 w-100 mb-3">{CollectionsFilter()}</div>}
2431
+ {sectionproperties.showdynamicfilter == 'Show' && <div class="row m-0 w-100 mb-3">{DynamicFilter()}</div>}
2432
+ </div>
2433
+ </div>
2434
+ </div>
2435
+
2436
+ <div className="col-lg-12">
2437
+ <Offcanvas
2438
+ show={props?.openFilterSlider}
2439
+ onHide={() => {
2440
+ props.setopenFilterSlider(false);
2441
+ }}
2442
+ placement="end"
2443
+ scroll={true}
2444
+ style={{
2445
+ minWidth: '200px',
2446
+ background: sectionproperties.filter_backgroundcolor,
2447
+ borderRadius: sectionproperties.filter_borderBottomLeftRadius + 'px',
2448
+ }}
2449
+ backdrop={true}
2450
+ >
2451
+ <Offcanvas.Header>
2452
+ <Offcanvas.Title>
2453
+ {langdetect == 'en' && (
2454
+ <div
2455
+ class="allcentered"
2456
+ style={{
2457
+ position: 'absolute',
2458
+ left: -34,
2459
+ top: 5,
2460
+ width: 30,
2461
+ height: 30,
2462
+ background: '#000',
2463
+ }}
2464
+ onClick={() => {
2465
+ props.setopenFilterSlider(false);
2466
+ }}
2467
+ >
2468
+ <IoMdClose color={'#fff'} size={16} />
2469
+ </div>
2470
+ )}
2471
+ {langdetect == 'ar' && (
2472
+ <div
2473
+ class="allcentered"
2474
+ style={{
2475
+ position: 'absolute',
2476
+ right: -34,
2477
+ top: 5,
2478
+ width: 30,
2479
+ height: 30,
2480
+ background: '#000',
2481
+ }}
2482
+ onClick={() => {
2483
+ props.setopenFilterSlider(false);
2484
+ }}
2485
+ >
2486
+ <IoMdClose color={'#fff'} size={16} />
2487
+ </div>
2488
+ )}
2489
+ <div className="row m-0 w-100 mt-2">
2490
+ <div className="col-12 d-none justify-content-center align-items-center d-md-flex my-2">
2491
+ <p
2492
+ className="m-0 p-0 font-16 font-weight-600"
2493
+ style={{
2494
+ color: sectionproperties.filter_titlecolor,
2495
+ fontSize: sectionproperties.filter_titlefontsize + 'px',
2496
+ fontWeight: sectionproperties.filter_titlefontweight,
2497
+ textTransform: sectionproperties.filter_titletextransform,
2498
+ }}
2499
+ >
2500
+ {langdetect == 'en' ? 'Filter & Sort' : 'فلترة'}
2501
+ </p>
2502
+ </div>
2503
+ {/* <div className="col-lg-3 col-md-3 col-sm-3 d-none d-md-flex align-items-center justify-content-end p-0">
2504
+ <div
2505
+ className={
2506
+ `${filterstyles.close_menu_icon_cont} ${filter_cssstyles.close_menu_icon_cont}` + ' d-none d-md-flex align-items-center justify-content-center '
2507
+ }
2508
+ onClick={() => {
2509
+ props.setopenFilterSlider(false);
2510
+ }}
2511
+ >
2512
+ <i className="h-100 d-flex align-items-center justify-content-center">
2513
+ <IoMdClose
2514
+ size={sectionproperties.closeSlider_fontSize}
2515
+ style={{
2516
+ color: sectionproperties.closeSlider_color,
2517
+ }}
2518
+ />
2519
+ </i>
2520
+ </div>
2521
+ </div> */}
2522
+ <div class="col-lg-12 p-0">
2523
+ <hr class="mt-2 mb-2" />
2524
+ </div>
2525
+ </div>
2526
+ </Offcanvas.Title>
2527
+ </Offcanvas.Header>
2528
+ <Offcanvas.Body>
2529
+ <div
2530
+ className={' pb-md-5 '}
2531
+ style={{
2532
+ background: sectionproperties.filter_backgroundcolor,
2533
+ borderRadius: sectionproperties.filter_borderBottomLeftRadius + 'px',
2534
+ }}
2535
+ >
2536
+ <div className={filter_cssstyles.filteraccordion + ' row m-0 w-100 pt-2 pb-3 filter-accordion '}>
2537
+ {/* {sectionproperties.otherfilters == 'Show' &&
2538
+ otherfilters.map((item, index) => {
2539
+ return (
2540
+ <> */}
2541
+ <Accordion allowMultipleExpanded={true} allowZeroExpanded={true} preExpanded={[0, 1, 2, 3]} style={{ width: '100%' }}>
2542
+ <AccordionItem uuid={0}>
2543
+ <AccordionItemHeading>
2544
+ <AccordionItemButton>
2545
+ <div className={filter_cssstyles.titlecontainer + ' row m-0 p-0 mb-2 pl-md-3 pr-md-3 '}>
2546
+ <div className="col-lg-10 col-md-10 col-sm-10 p-0">
2547
+ <p
2548
+ className={
2549
+ langdetect == 'en' ? filter_cssstyles.collapsetitle + ' m-0 p-0 ' : filter_cssstyles.collapsetitle + ' m-0 p-0 text-right'
2550
+ }
2551
+ >
2552
+ {lang.sortby}
2553
+ </p>
2554
+ </div>
2555
+ <div className="col-lg-2 col-md-2 col-sm-2 p-0">
2556
+ <AccordionItemState>
2557
+ {(state) => {
2558
+ if (state.expanded == true) {
2559
+ return (
2560
+ <i className={filter_cssstyles.collapsetitle + ' h-100 d-flex align-items-center justify-content-end '}>
2561
+ <FiChevronUp />
2562
+ </i>
2563
+ );
2564
+ } else {
2565
+ return (
2566
+ <i className={filter_cssstyles.collapsetitle + ' h-100 d-flex align-items-center justify-content-end '}>
2567
+ <FiChevronDown />
2568
+ </i>
2569
+ );
2570
+ }
2571
+ }}
2572
+ </AccordionItemState>
2573
+ </div>
2574
+ </div>
2575
+ </AccordionItemButton>
2576
+ </AccordionItemHeading>
2577
+ <AccordionItemPanel className="p-0">
2578
+ <div className="row mt-0 mb-2 ml-0 mr-0 d-lg-flex">
2579
+ <div className={'col-lg-12'}>
2580
+ <div
2581
+ className={
2582
+ langdetect == 'en' ? `${filterstyles.timeline}` + ' p-sm-0 ' : `${filterstyles.timeline} ${filterstyles.timelinetrans}` + ' p-sm-0 '
2583
+ }
2584
+ >
2585
+ {otherfilters.map((item, index) => {
2586
+ return (
2587
+ <div class="w-100 px-3">
2588
+ {item.filterarray.map((valueitem, valueindex) => {
2589
+ var ischecked = false;
2590
+ if (item.payloadvalue == 'sortprice') {
2591
+ if (valueitem.value == ProductFilterObjContext.sortprice) {
2592
+ ischecked = true;
2593
+ }
2594
+ } else if (item.payloadvalue == 'sortdates') {
2595
+ if (valueitem.value == ProductFilterObjContext.sortdates) {
2596
+ ischecked = true;
2597
+ }
2598
+ }
2599
+ return (
2600
+ <div
2601
+ className={
2602
+ `${filterstyles.border_left_line} ${filterstyles.timelineinnercont} ${filter_cssstyles.timelineinnercont}
2603
+ ${
2604
+ ischecked
2605
+ ? `${filter_cssstyles.timelineinnercont_active} ${filterstyles.timelineinnercont_active}`
2606
+ : ''
2607
+ }
2608
+ ` + ' d-flex align-items-center pb-3 '
2609
+ }
2610
+ onClick={() => {
2611
+ var tempfetchproductsfilerobjcontext = { ...ProductFilterObjContext };
2612
+ if (tempfetchproductsfilerobjcontext[item.payloadvalue] == valueitem.value) {
2613
+ tempfetchproductsfilerobjcontext[item.payloadvalue] = '';
2614
+ } else {
2615
+ tempfetchproductsfilerobjcontext[item.payloadvalue] = valueitem.value;
2616
+ }
2617
+ tempfetchproductsfilerobjcontext.page = 0;
2618
+ setProductFilterObjContext({ ...tempfetchproductsfilerobjcontext });
2619
+
2620
+ filterrouting(tempfetchproductsfilerobjcontext);
2621
+ setsortbycontext(valueitem.name);
2622
+ }}
2623
+ >
2624
+ <div
2625
+ className={
2626
+ ` ${ischecked ? filter_cssstyles.btn_item_active : ''} ${filterstyles.btn_item} ${
2627
+ filter_cssstyles.btn_item
2628
+ }` + ' d-flex align-items-center '
2629
+ }
2630
+ >
2631
+ <i className="h-100 d-flex align-items-center"></i>
2632
+ </div>
2633
+ <div className={langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'}>
2634
+ <p
2635
+ className={`${filterstyles.timeline_text} ${filter_cssstyles.timeline_text}` + ' m-0 p-0 '}
2636
+ style={{
2637
+ color: ischecked ? sectionproperties.activecat_color : '',
2638
+ }}
2639
+ >
2640
+ {valueitem.name}
2641
+ </p>
2642
+ </div>
2643
+ </div>
2644
+ );
2645
+ })}
2646
+ </div>
2647
+ );
2648
+ })}
2649
+ {/* {item.filterarray.map((valueitem, valueindex) => {
2650
+ var ischecked = false;
2651
+ if (item.payloadvalue == 'sortprice') {
2652
+ if (valueitem.value == ProductFilterObjContext.sortprice) {
2653
+ ischecked = true;
2654
+ }
2655
+ } else if (item.payloadvalue == 'sortdates') {
2656
+ if (valueitem.value == ProductFilterObjContext.sortdates) {
2657
+ ischecked = true;
2658
+ }
2659
+ }
2660
+ return (
2661
+ <div
2662
+ className={
2663
+ `${filterstyles.border_left_line} ${filterstyles.timelineinnercont} ${
2664
+ filter_cssstyles.timelineinnercont
2665
+ }
2666
+ ${ischecked ? `${filter_cssstyles.timelineinnercont_active} ${filterstyles.timelineinnercont_active}` : ''}
2667
+
2668
+ ` + ' d-flex align-items-center pb-3 '
2669
+ }
2670
+ onClick={() => {
2671
+ // setfilterfunc(valueitem.valueid, valueindex, index, 'assign');
2672
+ var tempfetchproductsfilerobjcontext = { ...ProductFilterObjContext };
2673
+ if (tempfetchproductsfilerobjcontext[item.payloadvalue] == valueitem.value) {
2674
+ tempfetchproductsfilerobjcontext[item.payloadvalue] = '';
2675
+ } else {
2676
+ tempfetchproductsfilerobjcontext[item.payloadvalue] = valueitem.value;
2677
+ }
2678
+ setProductFilterObjContext({ ...tempfetchproductsfilerobjcontext });
2679
+ }}
2680
+ >
2681
+ <div>
2682
+ <div
2683
+ className={
2684
+ ` ${ischecked ? filter_cssstyles.btn_item_active : ''} ${filterstyles.btn_item} ${
2685
+ filter_cssstyles.btn_item
2686
+ }` + ' mb-2 d-flex align-items-center '
2687
+ }
2688
+ >
2689
+ <i className="h-100 d-flex align-items-center"></i>
2690
+ </div>
2691
+ </div>
2692
+ <div className={langdetect == 'en' ? 'ml-3' : 'mr-3 text-right'}>
2693
+ <p
2694
+ className={`${filterstyles.timeline_text} ${filter_cssstyles.timeline_text}` + ' m-0 p-0 '}
2695
+ style={{
2696
+ color: ischecked ? sectionproperties.activecat_color : '',
2697
+ }}
2698
+ >
2699
+ {valueitem.name}
2700
+ </p>
2701
+ </div>
2702
+ </div>
2703
+ );
2704
+ })} */}
2705
+ </div>
2706
+ </div>
2707
+ </div>
2708
+ </AccordionItemPanel>
2709
+ </AccordionItem>
2710
+ </Accordion>
2711
+ {/* <hr className="mt-3 mb-3" /> */}
2712
+ {/* </>
2713
+ );
2714
+ })} */}
2715
+ {sectionproperties.otherfilters == 'Show' && (
2716
+ <div className="col-lg-12 p-0">
2717
+ <hr className="mt-2 mb-3" />
2718
+ </div>
2719
+ )}
2720
+ <div className={filter_cssstyles.filteraccordion + ' col-lg-12 filter-accordion p-md-0 '}>
2721
+ {sectionproperties.showcountriesfilter == 'Show' && Countriesfilter()}
2722
+ {sectionproperties.filterType == 'All' && sectionproperties.showcategoriesfilter == 'Show' && <div class="row m-0 w-100">{CategoriesFilter()}</div>}
2723
+ {sectionproperties.filterType == 'Collections' && sectionproperties.showcategoriesfilter == 'Show' && (
2724
+ <div class="row m-0 w-100">
2725
+ {CollectionsFilter()}
2726
+ <div className="col-lg-12 p-0">
2727
+ <hr className="mt-2 mb-3" />
2728
+ </div>
2729
+ </div>
2730
+ )}
2731
+ {sectionproperties.showdynamicfilter == 'Show' && (
2732
+ <div class="row m-0 w-100">
2733
+ {DynamicFilter()}
2734
+ <div className="col-lg-12 p-0">
2735
+ <hr className="mt-2 mb-3" />
2736
+ </div>
2737
+ </div>
2738
+ )}
2739
+ {sectionproperties.showvariantsfilter == 'Show' && (
2740
+ <div class="row m-0 w-100">
2741
+ {InstFilters()}
2742
+ <div className="col-lg-12 p-0">
2743
+ <hr className="mt-2 mb-3" />
2744
+ </div>
2745
+ </div>
2746
+ )}
2747
+ </div>
2748
+ </div>
2749
+ </div>
2750
+ </Offcanvas.Body>
2751
+ </Offcanvas>
2752
+ </div>
2753
+ </div>
2754
+ )}
2755
+ </div>
2756
+ );
2757
+ };
2758
+ export default Filter;