tabexseriescomponents 0.0.73 → 0.0.74

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 (211) hide show
  1. package/dist/index.cjs.js +337 -225
  2. package/dist/index.esm.js +343 -231
  3. package/dist/index.umd.js +340 -229
  4. package/package.json +1 -1
  5. package/src-aya/Contexts/LanguageContext.jsx +0 -369
  6. package/src-aya/Contexts/ProductsCardsSectionContext.jsx +0 -28
  7. package/src-aya/StylesJS/Customstyles.js +0 -235
  8. package/src-aya/TabexComponents/Cards/Card20/Card20.jsx +0 -288
  9. package/src-aya/TabexComponents/Cards/Card21/Card21.jsx +0 -386
  10. package/src-aya/TabexComponents/Cards/Card22/Card22.jsx +0 -289
  11. package/src-aya/TabexComponents/Cards/Card23/Card23.jsx +0 -355
  12. package/src-aya/TabexComponents/Cards/CardBadgeSlideFromTop/CardBadgeSlideFromTop.jsx +0 -393
  13. package/src-aya/TabexComponents/Cards/CategoryCardwithhoveraction/CategoryCardwithhoveraction.jsx +0 -168
  14. package/src-aya/TabexComponents/Cards/Categorycard_fullimage/Categorycard_fullimage.jsx +0 -243
  15. package/src-aya/TabexComponents/Cards/Categorycard_slidebgscaled/Categorycard_slidebgscaled.jsx +0 -202
  16. package/src-aya/TabexComponents/Cards/Categorycard_with_trianglebg/Categorycard_with_trianglebg.jsx +0 -174
  17. package/src-aya/TabexComponents/Cards/Categorycard_with_twolinestransition/Categorycard_with_twolinestransition.jsx +0 -182
  18. package/src-aya/TabexComponents/Cards/Categorycard_withshapes/Categorycard_withshapes.jsx +0 -158
  19. package/src-aya/TabexComponents/Cards/Categorycard_withtext/Categorycard_withtext.jsx +0 -189
  20. package/src-aya/TabexComponents/Cards/Classiccategorycard/Classiccategorycard.jsx +0 -150
  21. package/src-aya/TabexComponents/Cards/Horizontalcard/Horizontalcard.jsx +0 -271
  22. package/src-aya/TabexComponents/Cards/MenuCard/MenuCard.jsx +0 -538
  23. package/src-aya/TabexComponents/Cards/ModernCardWithQuantityButton/ModernCardWithQuantityButton.jsx +0 -491
  24. package/src-aya/TabexComponents/Cards/ModernProductCard/ModernProductCard.jsx +0 -469
  25. package/src-aya/TabexComponents/Cards/Productcard6/Productcard6.jsx +0 -257
  26. package/src-aya/TabexComponents/Cards/Productcard7/Productcard7.jsx +0 -272
  27. package/src-aya/TabexComponents/Cards/Productcard_animatedbuttons/Productcard_animatedbuttons.jsx +0 -295
  28. package/src-aya/TabexComponents/Cards/Productcard_with_circularbg/Productcard_with_circularbg.jsx +0 -289
  29. package/src-aya/TabexComponents/Cards/Productcard_with_circularhover/Productcard_with_circularhover.jsx +0 -315
  30. package/src-aya/TabexComponents/Cards/Productcard_with_slideanimation/Productcard_with_slideanimation.jsx +0 -288
  31. package/src-aya/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants.jsx +0 -328
  32. package/src-aya/TabexComponents/Cards/Productcard_with_zoominonhover/Productcard_with_zoominonhover.jsx +0 -509
  33. package/src-aya/TabexComponents/Cards/Productcarddefault/Productcarddefault.jsx +0 -272
  34. package/src-aya/TabexComponents/Cards/Productccard_with_imageontopleft/Productccard_with_imageontopleft.jsx +0 -286
  35. package/src-aya/TabexComponents/Cards/Prouductcard_with_zoomhover/Prouductcard_with_zoomhover.jsx +0 -133
  36. package/src-aya/TabexComponents/Cards/Simplecategorycardwithtextbelow/Simplecategorycardwithtextbelow.jsx +0 -125
  37. package/src-aya/TabexComponents/Cards/Simpleproductcard/Simpleproductcard.jsx +0 -292
  38. package/src-aya/TabexComponents/Cards/StylishProductCard/StylishProductCard.jsx +0 -336
  39. package/src-aya/TabexComponents/Footer/Allinonefooter/Allinonefooter.jsx +0 -429
  40. package/src-aya/TabexComponents/Footer/Footer1/Footer1.jsx +0 -416
  41. package/src-aya/TabexComponents/Footer/Footer2/Footer2.jsx +0 -381
  42. package/src-aya/TabexComponents/Footer/Footer3/Footer3.jsx +0 -302
  43. package/src-aya/TabexComponents/Footer/Footer4/Footer4.jsx +0 -437
  44. package/src-aya/TabexComponents/Footer/Footer5/Footer5.jsx +0 -488
  45. package/src-aya/TabexComponents/Footer/Footer6/Footer6.jsx +0 -286
  46. package/src-aya/TabexComponents/Footer/Footer7/Footer7.jsx +0 -370
  47. package/src-aya/TabexComponents/Footer/Simplefooter/Simplefooter.jsx +0 -231
  48. package/src-aya/TabexComponents/Generalfiles/images/egyptflag.png +0 -0
  49. package/src-aya/TabexComponents/Generalfiles/images/noimage.png +0 -0
  50. package/src-aya/TabexComponents/Generalfiles/images/payment/cod.png +0 -0
  51. package/src-aya/TabexComponents/Generalfiles/images/payment/fawry.png +0 -0
  52. package/src-aya/TabexComponents/Generalfiles/images/payment/payment.png +0 -0
  53. package/src-aya/TabexComponents/Generalfiles/images/payment/paymob.png +0 -0
  54. package/src-aya/TabexComponents/Generalfiles/images/payment/paypal.png +0 -0
  55. package/src-aya/TabexComponents/Generalfiles/images/payment/visa.png +0 -0
  56. package/src-aya/TabexComponents/Generalfiles/images/shoppingcart.png +0 -0
  57. package/src-aya/TabexComponents/Generalfiles/images/tabexlogo.png +0 -0
  58. package/src-aya/TabexComponents/Generalfiles/images/unknownmaleuser.png +0 -0
  59. package/src-aya/TabexComponents/Generalfiles/images/usflag.png +0 -0
  60. package/src-aya/TabexComponents/Generalfiles/images/whatsapp.png +0 -0
  61. package/src-aya/TabexComponents/Headers/CTAHeader/CTAHeader.jsx +0 -822
  62. package/src-aya/TabexComponents/Headers/CategoryFeaturingHeader/CategoryFeaturingHeader.jsx +0 -841
  63. package/src-aya/TabexComponents/Headers/ClassicHeader/ClassicHeader.jsx +0 -677
  64. package/src-aya/TabexComponents/Headers/Gotoheader/Gotoheader.jsx +0 -707
  65. package/src-aya/TabexComponents/Headers/Header4/Header4.jsx +0 -614
  66. package/src-aya/TabexComponents/Headers/Header6/Header6.jsx +0 -631
  67. package/src-aya/TabexComponents/Headers/Header8/Header8.jsx +0 -815
  68. package/src-aya/TabexComponents/Headers/HeaderRestaurant/HeaderRestaurant.jsx +0 -709
  69. package/src-aya/TabexComponents/Headers/Header_threesectionslogocentered/Header_threesectionslogocentered.jsx +0 -770
  70. package/src-aya/TabexComponents/Headers/Headerresponsive/Headerresponsive.jsx +0 -669
  71. package/src-aya/TabexComponents/Headers/HeaderwithContactinfo/HeaderwithContactinfo.jsx +0 -919
  72. package/src-aya/TabexComponents/Headers/Modernheader/Modernheader.jsx +0 -687
  73. package/src-aya/TabexComponents/Headers/StylishHeader/StylishHeader.jsx +0 -813
  74. package/src-aya/TabexComponents/Headers/Subheader/Subheader.jsx +0 -248
  75. package/src-aya/TabexComponents/Headers/ThreeTieredHeader/ThreeTieredHeader.jsx +0 -926
  76. package/src-aya/TabexComponents/Sections/BackgroundImages/BacgroundThreeImageWithCategories/BacgroundThreeImageWithCategories.jsx +0 -168
  77. package/src-aya/TabexComponents/Sections/BackgroundImages/BackgroundFiveImageStructure/BackgroundFiveImageStructure.jsx +0 -346
  78. package/src-aya/TabexComponents/Sections/BackgroundImages/BackgroundImageWithTopContent/BackgroundImageWithTopContent.jsx +0 -304
  79. package/src-aya/TabexComponents/Sections/BackgroundImages/Backgroundimage1/Backgroundimage1.jsx +0 -312
  80. package/src-aya/TabexComponents/Sections/BackgroundImages/Backgroundimage_with_toppill/Backgroundimage_with_toppill.jsx +0 -271
  81. package/src-aya/TabexComponents/Sections/BackgroundImages/BackgroundimageandTextsection/BackgroundimageandTextsection.jsx +0 -130
  82. package/src-aya/TabexComponents/Sections/BackgroundImages/Bgimagewithsearchbar/Bgimagewithsearchbar.jsx +0 -200
  83. package/src-aya/TabexComponents/Sections/BackgroundImages/Section_with_rightbgcont/Section_with_rightbgcont.jsx +0 -153
  84. package/src-aya/TabexComponents/Sections/BackgroundImages/Threebgimages/Threebgimages.jsx +0 -295
  85. package/src-aya/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages.jsx +0 -409
  86. package/src-aya/TabexComponents/Sections/Cards/CardsSection/CardsSection.jsx +0 -768
  87. package/src-aya/TabexComponents/Sections/Cards/CardsSection2/CardsSection2.jsx +0 -483
  88. package/src-aya/TabexComponents/Sections/Cards/CardsSection7/CardsSection7.jsx +0 -663
  89. package/src-aya/TabexComponents/Sections/Cards/CardsSection8/CardsSection8.js +0 -419
  90. package/src-aya/TabexComponents/Sections/Cards/Cardsection10/Arrows.js +0 -94
  91. package/src-aya/TabexComponents/Sections/Cards/Cardsection10/Cardsection10.js +0 -741
  92. package/src-aya/TabexComponents/Sections/Cards/Cardsection100/Cardsection10.js +0 -430
  93. package/src-aya/TabexComponents/Sections/Cards/Cardsection100/burger.jpg +0 -0
  94. package/src-aya/TabexComponents/Sections/Cards/ElegantCategoriesCardSection/ElegantCategoriesCardSection.jsx +0 -473
  95. package/src-aya/TabexComponents/Sections/Cards/ModernCardsSection/ModernCardsSection.jsx +0 -523
  96. package/src-aya/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.jsx +0 -502
  97. package/src-aya/TabexComponents/Sections/Slideshow/AboutSection/AboutSection.jsx +0 -276
  98. package/src-aya/TabexComponents/Sections/Slideshow/Backgroundimage_with_topcircle/Backgroundimage_with_topcircle.jsx +0 -160
  99. package/src-aya/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection.jsx +0 -176
  100. package/src-aya/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx +0 -139
  101. package/src-aya/TabexComponents/Sections/Slideshow/Image_with_rightwords/Image_with_rightwords.jsx +0 -140
  102. package/src-aya/TabexComponents/Sections/Slideshow/Servicesection/Servicesection.jsx +0 -201
  103. package/src-aya/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards.jsx +0 -125
  104. package/src-aya/TabexComponents/Sections/Slideshow/Slideshow_with_rotatedsquare/Slideshow_with_rotatedsquare.jsx +0 -226
  105. package/src-aya/TabexComponents/Sections/Slideshow/Slideshow_with_squarebg/Slideshow_with_squarebg.jsx +0 -149
  106. package/src-aya/TabexComponents/Sections/Slideshow/Slideshowdifferentanimations/Slideshowdifferentanimations.jsx +0 -139
  107. package/src-aya/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade.jsx +0 -215
  108. package/src-aya/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide.jsx +0 -202
  109. package/src-aya/TabexComponents/Sections/Slideshow/Slideshowzoom/Arrow.js +0 -91
  110. package/src-aya/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom.jsx +0 -277
  111. package/src-aya/TabexComponents/StaticPages/AccountInformation/AccountInformation.jsx +0 -260
  112. package/src-aya/TabexComponents/StaticPages/CartSlider/CartSlider.jsx +0 -458
  113. package/src-aya/TabexComponents/StaticPages/Categoriesdropdown/Categoriesdropdown.jsx +0 -216
  114. package/src-aya/TabexComponents/StaticPages/Checkout/Checkout.jsx +0 -1220
  115. package/src-aya/TabexComponents/StaticPages/Filter/Filter.jsx +0 -542
  116. package/src-aya/TabexComponents/StaticPages/Login/FacebookLoginButton.jsx +0 -51
  117. package/src-aya/TabexComponents/StaticPages/Login/GoogleLoginButton.jsx +0 -35
  118. package/src-aya/TabexComponents/StaticPages/Login/Login.jsx +0 -283
  119. package/src-aya/TabexComponents/StaticPages/OrderSuccess/OrderSuccess.js +0 -192
  120. package/src-aya/TabexComponents/StaticPages/Ordershistory/Ordershistory.jsx +0 -1271
  121. package/src-aya/TabexComponents/StaticPages/Policies/Policies.jsx +0 -353
  122. package/src-aya/TabexComponents/StaticPages/Productinfo/Iteminfo.js +0 -1287
  123. package/src-aya/TabexComponents/StaticPages/Productinfo/Productinfo.js +0 -710
  124. package/src-aya/TabexComponents/StaticPages/Productinfo/Productinfo.jsx +0 -1457
  125. package/src-aya/TabexComponents/StaticPages/Productinfo/Serviceinfo.js +0 -804
  126. package/src-aya/TabexComponents/StaticPages/Searchlist/Searchlist.jsx +0 -206
  127. package/src-aya/TabexComponents/StaticPages/Signup/CustomerInformationForm.jsx +0 -791
  128. package/src-aya/TabexComponents/StaticPages/Signup/Signup.jsx +0 -155
  129. package/src-aya/TabexComponents/StaticPages/Staticpagesrouter/Staticpagesrouter.jsx +0 -279
  130. package/src-aya/TabexComponents/StaticPages/Viewcart/Viewcart.jsx +0 -1048
  131. package/src-aya/TabexComponents/StaticPages/Wishlist/Wishlist.jsx +0 -606
  132. package/src-aya/assets/images/appstore.png +0 -0
  133. package/src-aya/assets/images/cod.png +0 -0
  134. package/src-aya/assets/images/egyptflag.png +0 -0
  135. package/src-aya/assets/images/fawry.png +0 -0
  136. package/src-aya/assets/images/googleplay.png +0 -0
  137. package/src-aya/assets/images/payment.png +0 -0
  138. package/src-aya/assets/images/paymob.png +0 -0
  139. package/src-aya/assets/images/paypal.png +0 -0
  140. package/src-aya/assets/images/shoppingcart.png +0 -0
  141. package/src-aya/assets/images/usflag.png +0 -0
  142. package/src-aya/assets/images/visa.png +0 -0
  143. package/src-aya/assets/images/whatsapp.png +0 -0
  144. package/src-aya/button.jsx +0 -40
  145. package/src-aya/index.jsx +0 -222
  146. package/src-aya/styles/Home.module.css +0 -129
  147. package/src-aya/styles/cards/Categorcycard_fullimage.module.css +0 -10
  148. package/src-aya/styles/cards/Categorycard_slidebgscaled.module.css +0 -73
  149. package/src-aya/styles/cards/Categorycard_withshapes.module.css +0 -189
  150. package/src-aya/styles/cards/ModernCardWithQuantityButton.module.css +0 -34
  151. package/src-aya/styles/cards/Productcard6.module.css +0 -9
  152. package/src-aya/styles/cards/Productcard_with_circularbg.module.css +0 -137
  153. package/src-aya/styles/cards/Productccard_with_zoominonhover.module.css +0 -51
  154. package/src-aya/styles/cards/Prouductcard_with_zoomhover.module.css +0 -61
  155. package/src-aya/styles/cards/categorycard.module.css +0 -85
  156. package/src-aya/styles/cards/categorycard3.module.css +0 -50
  157. package/src-aya/styles/cards/categorycardwithtext.module.css +0 -40
  158. package/src-aya/styles/cards/productcard_animatedbuttons.module.css +0 -127
  159. package/src-aya/styles/cards/productcard_with_textonhover.module.css +0 -12
  160. package/src-aya/styles/cards/productccard_with_imageontopleft.module.css +0 -85
  161. package/src-aya/styles/general/bootstrap.css +0 -4562
  162. package/src-aya/styles/general/dropdown.css +0 -206
  163. package/src-aya/styles/general/editorbardropdown.module.css +0 -94
  164. package/src-aya/styles/general/filter.module.css +0 -108
  165. package/src-aya/styles/general/form.module.css +0 -273
  166. package/src-aya/styles/general/general.module.css +0 -861
  167. package/src-aya/styles/general/image-gallery.css +0 -481
  168. package/src-aya/styles/general/react-accessible-accordion.module.css +0 -52
  169. package/src-aya/styles/general/react-phone-input-2.module.css +0 -927
  170. package/src-aya/styles/general/scrollbtn.module.css +0 -22
  171. package/src-aya/styles/general/slick.module.css +0 -166
  172. package/src-aya/styles/general/tabs.module.css +0 -110
  173. package/src-aya/styles/general/workplaceeditor.module.css +0 -328
  174. package/src-aya/styles/globals.css +0 -26
  175. package/src-aya/styles/headers/CTAHeader.module.css +0 -40
  176. package/src-aya/styles/headers/CategoryFeaturingHeader.module.css +0 -61
  177. package/src-aya/styles/headers/Gotoheader.module.css +0 -91
  178. package/src-aya/styles/headers/Header7.module.css +0 -50
  179. package/src-aya/styles/headers/Header_threesectionslogocentered.module.css +0 -96
  180. package/src-aya/styles/headers/Sideheader.module.css +0 -108
  181. package/src-aya/styles/headers/classicheader.module.css +0 -16
  182. package/src-aya/styles/headers/classicheaderstyles.module.css +0 -16
  183. package/src-aya/styles/headers/dropdown.css +0 -0
  184. package/src-aya/styles/headers/header4.module.css +0 -175
  185. package/src-aya/styles/headers/header5.module.css +0 -30
  186. package/src-aya/styles/headers/header6.module.css +0 -102
  187. package/src-aya/styles/headers/header_contactinfo.module.css +0 -66
  188. package/src-aya/styles/headers/headerresturant.module.css +0 -89
  189. package/src-aya/styles/headers/modernheader.module.css +0 -72
  190. package/src-aya/styles/headers/stylishheader.module.css +0 -24
  191. package/src-aya/styles/headers/subheader.module.css +0 -114
  192. package/src-aya/styles/headers/threetieredheader.module.css +0 -91
  193. package/src-aya/styles/sections/BackgroundImageWithTopContent.css +0 -4
  194. package/src-aya/styles/sections/Backgroundimage1.module.css +0 -17
  195. package/src-aya/styles/sections/Backgroundimage_with_topcircle.module.css +0 -28
  196. package/src-aya/styles/sections/Section_with_rightbgcont.module.css +0 -49
  197. package/src-aya/styles/sections/Slideshow_with_rotatedsquare.module.css +0 -35
  198. package/src-aya/styles/sections/Slideshow_with_squarebg.module.css +0 -39
  199. package/src-aya/styles/staticpages/accordion.module.css +0 -9
  200. package/src-aya/styles/staticpages/cart.module.css +0 -108
  201. package/src-aya/styles/staticpages/dropdown.css +0 -196
  202. package/src-aya/styles/staticpages/filter.module.css +0 -139
  203. package/src-aya/styles/staticpages/image-gallery.css +0 -481
  204. package/src-aya/styles/staticpages/login.module.css +0 -113
  205. package/src-aya/styles/staticpages/productinfo.module.css +0 -54
  206. package/src-aya/styles/staticpages/shop.module.css +0 -191
  207. package/src-aya/styles/staticpages/signup.module.css +0 -206
  208. package/src-aya/styles/staticpages/staticroutersidenav.module.css +0 -129
  209. package/src-aya/styles/staticpages/viewcart.module.css +0 -129
  210. package/src-aya/styles/staticpages/wishlist.module.css +0 -29
  211. package/src-aya/styles.rar +0 -0
@@ -1,663 +0,0 @@
1
- // All take sectionidprops & sectionindexprops
2
- import React, { useEffect, useState, useContext } from 'react';
3
- import generalstyles from '../../../../styles/general/general.module.css';
4
- import { css } from 'glamor';
5
- import { MdOutlineLayersClear } from 'react-icons/md';
6
- import { BsFillArrowRightCircleFill, BsFillArrowLeftCircleFill } from 'react-icons/bs';
7
- import { IKImage } from 'imagekitio-react';
8
- import { IKpublicKey, IKurlEndpoint } from '../../../../../Env';
9
- import { useInView } from 'react-intersection-observer';
10
-
11
- const CardsSection7 = (props) => {
12
- const { ref, inView } = useInView();
13
- const lang = props.actions.lang;
14
- const langdetect = props.actions.langdetect;
15
- const fetchProductsQuery = props.actions.fetchProductsQuery;
16
- const TabexSectionsComponentsContext = props.actions.TabexSectionsComponentsContext;
17
- const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
18
- const fetchcollectionsQueryContext = props.actions.fetchcollectionsQueryContext;
19
- const FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
20
- const setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
21
- const routingcountext = props.actions.routingcountext;
22
- const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
23
- const setfetchingtype = props.actions.setfetchingtype;
24
- const fetchingtype = props.actions.fetchingtype;
25
- const actions = props.actions;
26
- const setParentCollectionsForCollectionQueryArr = props.actions.setParentCollectionsForCollectionQueryArr;
27
- const ParentCollectionsForCollectionQueryArr = props.actions.ParentCollectionsForCollectionQueryArr;
28
- const [sectionproperties, setsectionproperties] = useState('');
29
- const [cardsarray, setcardsarray] = useState([]);
30
- const [ProductsFetchingTypeSectionObj, setProductsFetchingTypeSectionObj] = useState({ productfetchingtype: 'Random', collectionid: '' });
31
- React.useEffect(() => {
32
- if (inView) {
33
- fetchProductsQuery.fetchNextPage();
34
- }
35
- }, [inView]);
36
- useEffect(() => {
37
- StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
38
- if (sectionitem.sectionid == props.sectionidprops) {
39
- var secpropobj = {};
40
- sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
41
- secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
42
- });
43
- setsectionproperties({ ...secpropobj });
44
- setfetchingtype(sectionitem.fetchingtype);
45
- setProductsFetchingTypeSectionObj({
46
- productfetchingtype: sectionitem.productsfetchingtype,
47
- collectionid: sectionitem.productsfetchingtypeCollectioncollectionid,
48
- });
49
- }
50
- });
51
- }, [StatePagePropertiesContext]);
52
- useEffect(() => {
53
- if (sectionproperties.length != 0) {
54
- if (cardsarray.length == 0) {
55
- if (fetchcollectionsQueryContext.isSuccess) {
56
- cardobjassigner(fetchcollectionsQueryContext.data.data.collections);
57
- }
58
- }
59
- }
60
- }, [sectionproperties]);
61
- useEffect(() => {
62
- if (fetchingtype.length != 0) {
63
- var tempFetchQueriesEngineContext = FetchQueriesEngineContext;
64
- if (ProductsFetchingTypeSectionObj.collectionid == 'all' || ProductsFetchingTypeSectionObj.collectionid == null || ProductsFetchingTypeSectionObj.collectionid == undefined) {
65
- setParentCollectionsForCollectionQueryArr('all');
66
- } else {
67
- setParentCollectionsForCollectionQueryArr([ProductsFetchingTypeSectionObj.collectionid]);
68
- }
69
- setFetchQueriesEngineContext({ ...tempFetchQueriesEngineContext });
70
- }
71
- }, [fetchingtype, ProductsFetchingTypeSectionObj]);
72
- useEffect(() => {
73
- if (fetchcollectionsQueryContext.isSuccess) {
74
- cardobjassigner(fetchcollectionsQueryContext.data.data.collections);
75
- }
76
- }, [fetchcollectionsQueryContext.isSuccess]);
77
- const cardobjassigner = (fetchedarray) => {
78
- var temparray = [];
79
- fetchedarray.forEach(function (arrayItem, arrayindex) {
80
- var cardobj = {
81
- name: '',
82
- image: '',
83
- index: arrayindex,
84
- };
85
- cardobj.collectionid = arrayItem.collectionid;
86
- if (langdetect == 'en') {
87
- cardobj.name = arrayItem.title_en;
88
- cardobj.description = arrayItem.description_en;
89
- } else if (langdetect == 'ar') {
90
- cardobj.name = arrayItem.title_ar;
91
- cardobj.description = arrayItem.description_ar;
92
- }
93
- cardobj.image = arrayItem.collectionlogo;
94
- temparray.push(cardobj);
95
- });
96
- setcardsarray([...temparray]);
97
- };
98
- const section_cssstyles = {
99
- sectiontitlespan: css({
100
- ':after': {
101
- height: '5px',
102
- width: sectionproperties.sectitle_lineafterwidth + '%',
103
- backgroundColor: sectionproperties.linebgcolor,
104
- },
105
- }),
106
- line_left: css({
107
- height: '1px',
108
- position: 'relative',
109
- flex: '1 1 auto',
110
- minWidth: '10%',
111
- background: sectionproperties.linebgcolor,
112
- }),
113
- line_right: css({
114
- height: '1px',
115
- position: 'relative',
116
- flex: '1 1 auto',
117
- minWidth: '10%',
118
- background: sectionproperties.linebgcolor,
119
- }),
120
- cards_sections: css({
121
- marginTop: sectionproperties.marginTop + 'px',
122
- marginBottom: sectionproperties.marginBottom + 'px',
123
- paddingLeft: langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : sectionproperties.paddingRight + 'px',
124
- paddingRight: langdetect == 'en' ? sectionproperties.paddingRight + 'px' : sectionproperties.paddingLeft + 'px',
125
- paddingTop: sectionproperties.paddingTop + 'px',
126
- paddingBottom: sectionproperties.paddingBottom + 'px',
127
- background: sectionproperties.backgroundColor,
128
- borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
129
- borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
130
- borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
131
- borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
132
- boxShadow: sectionproperties.sectioncardshadow == 'Show' ? '0 0 10px ' + sectionproperties.sectioncardshadowcolor : 'none',
133
- borderColor: sectionproperties.sectioncardbordercolor,
134
- border: sectionproperties.sectioncardborderwidth + 'px solid',
135
- }),
136
- filterbtn: css({
137
- width: sectionproperties.filterbtn_Width + 'px',
138
- height: sectionproperties.filterbtn_Height + 'px',
139
- background: sectionproperties.filterbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.filterbtn_bgColor,
140
- borderBottomLeftRadius: sectionproperties.filterbtn_borderBottomLeftRadius + 'px',
141
- borderBottomRightRadius: sectionproperties.filterbtn_borderBottomRightRadius + 'px',
142
- borderTopLeftRadius: sectionproperties.filterbtn_borderTopLeftRadius + 'px',
143
- borderTopRightRadius: sectionproperties.filterbtn_borderTopRightRadius + 'px',
144
- color: sectionproperties.filterbtn_Textcolor,
145
- boxShadow: sectionproperties.filterbtn_showshadow == 'Show' ? '0 0 10px ' + sectionproperties.filterbtn_shadowcolor : '',
146
- marginTop: sectionproperties.filterbtn_marginTop + 'px',
147
- marginBottom: sectionproperties.filterbtn_marginBottom + 'px',
148
- marginLeft: sectionproperties.filterbtn_marginLeft + 'px',
149
- marginRight: sectionproperties.filterbtn_marginRight + 'px',
150
- transition: '.3s',
151
- ':hover': {
152
- background: sectionproperties.filterbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.filterbtn_bgColoronhover,
153
- color: sectionproperties.filterbtn_Textcoloronhover,
154
- },
155
- }),
156
- viewmorebtn: css({
157
- width: sectionproperties.viewmorebtn_Width + 'px',
158
- height: sectionproperties.viewmorebtn_Height + 'px',
159
- background: sectionproperties.viewmorebtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.viewmorebtn_bgColor,
160
- borderBottomLeftRadius: sectionproperties.viewmorebtn_borderBottomLeftRadius + 'px',
161
- borderBottomRightRadius: sectionproperties.viewmorebtn_borderBottomRightRadius + 'px',
162
- borderTopLeftRadius: sectionproperties.viewmorebtn_borderTopLeftRadius + 'px',
163
- borderTopRightRadius: sectionproperties.viewmorebtn_borderTopRightRadius + 'px',
164
- color: sectionproperties.viewmorebtn_Textcolor,
165
- fontSize: sectionproperties.viewmorebtn_fontSize + 'px',
166
- fontWeight: sectionproperties.viewmorebtn_fontWeight,
167
- textDecoration: sectionproperties.viewmorebtn_bgtransparent == 'Transparent' ? 'underline' : 'none',
168
- transition: '.3s',
169
- ':hover': {
170
- background: sectionproperties.viewmorebtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.viewmorebtn_bgColoronhover,
171
- color: sectionproperties.viewmorebtn_Textcoloronhover,
172
- },
173
- }),
174
- collectionname: css({
175
- fontSize: sectionproperties.generaltext_fontSize + 'px',
176
- color: sectionproperties.generaltext_fontColor,
177
- textTransform: sectionproperties.generaltext_textTransform,
178
- fontWeight: sectionproperties.generaltext_fontWeight,
179
- }),
180
- collectioncardbutton: css({
181
- width: sectionproperties.generalbtn_width + 'px',
182
- height: sectionproperties.generalbtn_height + 'px',
183
- background: sectionproperties.generalbtn_bgColortransparent == 'Transparent' ? 'transparent' : sectionproperties.generalbtn_bgColor,
184
- borderTopLeftRadius: sectionproperties.generalbtn_bordertopleftradius + 'px',
185
- borderTopRightRadius: sectionproperties.generalbtn_bordertoprightradius + 'px',
186
- borderBottomLeftRadius: sectionproperties.generalbtn_borderbottomleftradius + 'px',
187
- borderBottomRightRadius: sectionproperties.generalbtn_borderbottomrightradius + 'px',
188
- fontWeight: sectionproperties.generalbtn_fontweight,
189
- color: sectionproperties.generalbtn_textColor,
190
- fontSize: sectionproperties.generalbtn_fontsize + 'px',
191
- border: sectionproperties.generalbtn_borderwidth + 'px solid ' + sectionproperties.generalbtn_bordercolor,
192
- cursor: 'pointer',
193
- transition: '.3s',
194
- ':hover': {
195
- background: sectionproperties.generalbtn_bgColortransparentonhover == 'Transparent' ? 'transparent' : sectionproperties.generalbtn_bgColoronhover,
196
- color: sectionproperties.generalbtn_textColoronhover,
197
- },
198
- }),
199
- };
200
- const cardsrender = () => {
201
- return (
202
- <div class={'row m-0 w-100'}>
203
- {!fetchProductsQuery.isFetching && cardsarray.length == 0 && (
204
- <div class="row m-0 w-100 d-flex align-items-center" style={{ height: '45vh' }}>
205
- <div className="col-lg-12 text-light d-flex align-items-center justify-content-center flex-column">
206
- <MdOutlineLayersClear
207
- style={{
208
- fontSize: sectionproperties.noprod_iconfontSize + 'px',
209
- color: sectionproperties.noprod_iconcolor,
210
- }}
211
- />
212
- <p
213
- style={{
214
- fontSize: sectionproperties.noprod_fontSize + 'px',
215
- fontWeight: sectionproperties.noprod_fontWeight,
216
- textTransform: sectionproperties.noprod_textTransform,
217
- color: sectionproperties.noprod_color,
218
- }}
219
- >
220
- {langdetect == 'en' ? 'No Collections Found' : 'لا توجد مجموعات'}
221
- </p>
222
- </div>
223
- </div>
224
- )}
225
- {cardsarray.length != 0 && sectionproperties.length != 0 && (
226
- <div class="row m-0 w-100 d-flex align-items-center p-sm-0">
227
- <div
228
- class="row ml-0 mr-0 w-100 pl-md-1 pr-md-1 pl-sm-2 pr-sm-2"
229
- style={{
230
- marginTop: sectionproperties.sectionTitleMarginTop + 'px',
231
- marginBottom: sectionproperties.sectionTitleMarginBottom + 'px',
232
- paddingLeft: sectionproperties.sectionTitleMarginLeft + 'px',
233
- paddingRight: sectionproperties.sectionTitleMarginRight + 'px',
234
- }}
235
- >
236
- {sectionproperties.sectiontitleshow == 'Show' && (
237
- <div
238
- class={
239
- sectionproperties.viewmorebtnshow == 'Show'
240
- ? ' col-lg-6 col-md-6 col-sm-6 d-flex align-items-center p-0 '
241
- : ' col-lg-12 col-md-12 col-sm-12 d-flex align-items-center p-0 '
242
- }
243
- >
244
- <div
245
- class={`${generalstyles.sectiontitlecont}` + ' col-lg-12 p-0 d-flex align-items-center mb-auto '}
246
- style={{
247
- justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : 'start',
248
- }}
249
- >
250
- <div
251
- class="d-flex align-items-center flex-row"
252
- style={{
253
- position: 'relative',
254
- justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : '',
255
- width: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '100%' : '',
256
- }}
257
- >
258
- {sectionproperties.sectiontitlestyle == 'Line Before Text' && <span class={section_cssstyles.line_left + ' d-sm-none '}></span>}
259
- <p
260
- class={`${section_cssstyles.sectiontitlespan}` + ' mb-auto mb-0 pb-0 font-sm-18 font-md-20 wordbreak d-flex align-items-center justify-content-start '}
261
- style={{
262
- fontSize: sectionproperties.sectionTitleFontSize + 'px',
263
- color: sectionproperties.sectionTitleColor,
264
- fontWeight: sectionproperties.sectionTitleFontWeight,
265
- paddingLeft: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '12px' : 0,
266
- paddingRight: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '12px' : 0,
267
- }}
268
- >
269
- {langdetect == 'en' ? sectionproperties.sectionTitleContent : sectionproperties.sectionTitleContent_ar}
270
- </p>
271
- {sectionproperties.sectiontitlestyle == 'Line Before Text' && <span class={section_cssstyles.line_right + ' d-sm-none '}></span>}
272
- </div>
273
- </div>
274
- </div>
275
- )}
276
- <div class="col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end justify-content-sm-center p-0">
277
- <div class="row m-0 w-100 d-flex align-item-center justify-content-end ">
278
- {sectionproperties.view_as_slider_vertical == 'Slider (Horizontal)' && sectionproperties.viewmorebtnshow == 'Show' && (
279
- <div class={'pl-0 pr-0 d-flex justify-content-end justify-content-sm-center pl-1 pr-0'}>
280
- <button
281
- class={`${section_cssstyles.viewmorebtn}` + ' w-sm-auto btn-circle-resp m-sm-0 '}
282
- onClick={() => {
283
- if (fetchingtype == 'products') {
284
- if (ProductsFetchingTypeSectionObj.productfetchingtype == 'Collection') {
285
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, ProductsFetchingTypeSectionObj.collectionid);
286
- } else {
287
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
288
- }
289
- } else {
290
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
291
- }
292
- }}
293
- >
294
- <span class="d-md-none">{langdetect == 'en' ? sectionproperties.viewmorebtn_text : sectionproperties.viewmorebtn_text_ar}</span>
295
- <span class="d-none d-md-flex align-items-center justify-content-center">
296
- <i class="h-100 d-flex align-items-center justify-content-center">
297
- {langdetect == 'en' ? <BsFillArrowRightCircleFill /> : <BsFillArrowLeftCircleFill />}
298
- </i>
299
- </span>
300
- </button>
301
- </div>
302
- )}
303
- </div>
304
- </div>
305
- {sectionproperties.showseparator == 'Show' && (
306
- <div class="col-lg-12 p-0">
307
- <hr class="mt-2 mb-2" style={{ borderColor: sectionproperties.upperseparatorbgcolor }} />
308
- </div>
309
- )}
310
- </div>
311
- <div
312
- class={
313
- sectionproperties.paddingLeft != 0 && sectionproperties.paddingRight != 0
314
- ? section_cssstyles.cards_sections + ' row m-0 d-flex w-100 justify-content-center align-items-center pl-md-2 pr-md-2 '
315
- : sectionproperties.paddingRight != 0
316
- ? section_cssstyles.cards_sections + ' row m-0 d-flex w-100 justify-content-center align-items-center pr-md-2 '
317
- : sectionproperties.paddingLeft != 0
318
- ? section_cssstyles.cards_sections + ' row m-0 d-flex w-100 justify-content-center align-items-center pl-md-2 '
319
- : section_cssstyles.cards_sections + ' row m-0 d-flex w-100 justify-content-center align-items-center '
320
- }
321
- >
322
- <div class="row m-0 w-100 ">
323
- <div class={langdetect == 'en' ? 'col-lg-6 pl-0 pr-0 p-md-0' : 'col-lg-6 pr-0 pl-0 p-md-0'} style={{}}>
324
- <div
325
- class="row m-0 w-100"
326
- style={{
327
- width: '100%',
328
- height: '80vh',
329
- }}
330
- >
331
- <div
332
- class="col-lg-12 p-0"
333
- style={{
334
- width: '100%',
335
- height: '100%',
336
- }}
337
- >
338
- <IKImage
339
- path={cardsarray[0]?.image}
340
- urlEndpoint={IKurlEndpoint}
341
- publicKey={IKpublicKey}
342
- loading="lazy"
343
- style={{
344
- width: '100%',
345
- height: '100%',
346
- borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
347
- borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px',
348
- borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
349
- borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
350
- objectFit: 'cover',
351
- zIndex: 1,
352
- }}
353
- />
354
- </div>
355
- <div style={{ position: 'absolute', zIndex: 1000, height: '100%', width: '100%' }}>
356
- <div class="row m-0 w-100 p-3">
357
- <div class="col-lg-12 p-0 d-flex justify-content-start">
358
- <p class={section_cssstyles.collectionname + ' m-0 p-0 '}>{cardsarray[0]?.name}</p>
359
- </div>
360
- <div class="col-lg-12 p-0 d-flex justify-content-start">
361
- <p
362
- class={section_cssstyles.collectioncardbutton + ' m-0 p-0 allcentered '}
363
- onClick={() => {
364
- if (fetchingtype == 'products') {
365
- if (ProductsFetchingTypeSectionObj.productfetchingtype == 'Collection') {
366
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, ProductsFetchingTypeSectionObj.collectionid);
367
- } else {
368
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
369
- }
370
- } else {
371
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
372
- }
373
- }}
374
- >
375
- {langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar}
376
- </p>
377
- </div>
378
- </div>
379
- </div>
380
- </div>
381
- </div>
382
- <div class={'col-lg-6 pl-0 pr-0'}>
383
- <div class="row m-0 w-100">
384
- <div class={langdetect == 'en' ? 'col-lg-6 pr-0 mb-2 p-md-0' : 'col-lg-6 pl-0 mb-2 p-md-0'}>
385
- <div
386
- class="row m-0 w-100"
387
- style={{
388
- width: '100%',
389
- height: '40vh',
390
- }}
391
- >
392
- <div
393
- class="col-lg-12 p-0"
394
- style={{
395
- width: '100%',
396
- height: '100%',
397
- }}
398
- >
399
- <IKImage
400
- urlEndpoint={IKurlEndpoint}
401
- publicKey={IKpublicKey}
402
- path={cardsarray[1]?.image}
403
- loading="lazy"
404
- style={{
405
- width: '100%',
406
- height: '100%',
407
- borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
408
- borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px',
409
- borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
410
- borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
411
- objectFit: 'cover',
412
- zIndex: 1,
413
- }}
414
- />
415
- </div>
416
- <div style={{ position: 'absolute', zIndex: 1000, bottom: 20, left: 0, right: 0, margin: 'auto' }}>
417
- <div class="row m-0 w-100 p-3 mt-auto">
418
- <div class="col-lg-12 p-0 d-flex justify-content-center">
419
- <p class={section_cssstyles.collectionname + ' m-0 p-0 '}>{cardsarray[1]?.name}</p>
420
- </div>
421
- <div class="col-lg-12 p-0 d-flex justify-content-center">
422
- <p
423
- class={section_cssstyles.collectioncardbutton + ' m-0 p-0 allcentered '}
424
- onClick={() => {
425
- if (fetchingtype == 'products') {
426
- if (ProductsFetchingTypeSectionObj.productfetchingtype == 'Collection') {
427
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, ProductsFetchingTypeSectionObj.collectionid);
428
- } else {
429
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
430
- }
431
- } else {
432
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
433
- }
434
- }}
435
- >
436
- {langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar}
437
- </p>
438
- </div>
439
- </div>
440
- </div>
441
- </div>
442
- </div>
443
- <div
444
- class="col-lg-6 mb-2 p-md-0"
445
- style={{
446
- paddingRight: langdetect == 'en' ? 0 : '',
447
- paddingLeft: langdetect == 'ar' ? 0 : '',
448
- }}
449
- >
450
- <div
451
- class="row m-0 w-100"
452
- style={{
453
- width: '100%',
454
- height: '40vh',
455
- }}
456
- >
457
- <div
458
- class="col-lg-12 p-0"
459
- style={{
460
- width: '100%',
461
- height: '100%',
462
- }}
463
- >
464
- <IKImage
465
- urlEndpoint={IKurlEndpoint}
466
- publicKey={IKpublicKey}
467
- path={cardsarray[2]?.image}
468
- loading="lazy"
469
- style={{
470
- width: '100%',
471
- height: '100%',
472
- borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
473
- borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px',
474
- borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
475
- borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
476
- objectFit: 'cover',
477
- zIndex: 1,
478
- }}
479
- />
480
- </div>
481
- <div style={{ position: 'absolute', zIndex: 1000, bottom: 20, left: 0, right: 0, margin: 'auto' }}>
482
- <div class="row m-0 w-100 p-3 mt-auto">
483
- <div class="col-lg-12 p-0 d-flex justify-content-center">
484
- <p class={section_cssstyles.collectionname + ' m-0 p-0 '}>{cardsarray[2]?.name}</p>
485
- </div>
486
- <div class="col-lg-12 p-0 d-flex justify-content-center">
487
- <p
488
- class={section_cssstyles.collectioncardbutton + ' m-0 p-0 allcentered '}
489
- onClick={() => {
490
- if (fetchingtype == 'products') {
491
- if (ProductsFetchingTypeSectionObj.productfetchingtype == 'Collection') {
492
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, ProductsFetchingTypeSectionObj.collectionid);
493
- } else {
494
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
495
- }
496
- } else {
497
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
498
- }
499
- }}
500
- >
501
- {langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar}
502
- </p>
503
- </div>
504
- </div>
505
- </div>
506
- </div>
507
- </div>
508
- <div class={langdetect == 'en' ? 'col-lg-7 pr-0 p-md-0' : 'col-lg-7 p-md-0 pl-0'}>
509
- <div
510
- class="row m-0 w-100"
511
- style={{
512
- width: '100%',
513
- height: '39vh',
514
- }}
515
- >
516
- <div
517
- class="col-lg-12 p-0"
518
- style={{
519
- width: '100%',
520
- height: '100%',
521
- }}
522
- >
523
- <IKImage
524
- urlEndpoint={IKurlEndpoint}
525
- publicKey={IKpublicKey}
526
- path={cardsarray[3]?.image}
527
- loading="lazy"
528
- style={{
529
- width: '100%',
530
- height: '100%',
531
- borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
532
- borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px',
533
- borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
534
- borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
535
- objectFit: 'cover',
536
- zIndex: 1,
537
- }}
538
- />
539
- </div>
540
- <div
541
- class="allcentered"
542
- style={{
543
- position: 'absolute',
544
- zIndex: 1000,
545
- height: '100%',
546
- width: '100%',
547
- bottom: 0,
548
- top: 0,
549
- left: 0,
550
- right: 0,
551
- margin: 'auto',
552
- }}
553
- >
554
- <div class="row m-0 w-100 p-3 mt-auto mb-auto">
555
- <div class="col-lg-12 p-0 d-flex justify-content-center">
556
- <p class={section_cssstyles.collectionname + ' m-0 p-0 '}>{cardsarray[3]?.name}</p>
557
- </div>
558
- <div class="col-lg-12 p-0 d-flex justify-content-center">
559
- <p
560
- class={section_cssstyles.collectioncardbutton + ' m-0 p-0 allcentered '}
561
- onClick={() => {
562
- if (fetchingtype == 'products') {
563
- if (ProductsFetchingTypeSectionObj.productfetchingtype == 'Collection') {
564
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, ProductsFetchingTypeSectionObj.collectionid);
565
- } else {
566
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
567
- }
568
- } else {
569
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
570
- }
571
- }}
572
- >
573
- {langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar}
574
- </p>
575
- </div>
576
- </div>
577
- </div>
578
- </div>
579
- </div>
580
- <div
581
- class={'col-lg-5 p-md-0'}
582
- style={{
583
- paddingRight: langdetect == 'en' ? 0 : '',
584
- paddingLeft: langdetect == 'ar' ? 0 : '',
585
- }}
586
- >
587
- <div
588
- class="row m-0 w-100"
589
- style={{
590
- width: '100%',
591
- height: '39vh',
592
- }}
593
- >
594
- <div
595
- class="col-lg-12 p-0"
596
- style={{
597
- width: '100%',
598
- height: '100%',
599
- }}
600
- >
601
- <IKImage
602
- urlEndpoint={IKurlEndpoint}
603
- publicKey={IKpublicKey}
604
- path={cardsarray[4]?.image}
605
- loading="lazy"
606
- style={{
607
- width: '100%',
608
- height: '100%',
609
- borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
610
- borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px',
611
- borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
612
- borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
613
- objectFit: 'cover',
614
- zIndex: 1,
615
- }}
616
- />
617
- </div>
618
- <div style={{ position: 'absolute', zIndex: 1000, width: '100%', bottom: 10 }}>
619
- <div class="row m-0 w-100 p-3 d-flex justify-content-end">
620
- <div class="col-lg-12 p-0 d-flex justify-content-start">
621
- <p class={section_cssstyles.collectionname + ' m-0 p-0 '}>{cardsarray[4]?.name}</p>
622
- </div>
623
- <div class="col-lg-12 p-0 d-flex justify-content-start">
624
- <p
625
- class={section_cssstyles.collectioncardbutton + ' m-0 p-0 allcentered '}
626
- onClick={() => {
627
- if (fetchingtype == 'products') {
628
- if (ProductsFetchingTypeSectionObj.productfetchingtype == 'Collection') {
629
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, ProductsFetchingTypeSectionObj.collectionid);
630
- } else {
631
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
632
- }
633
- } else {
634
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
635
- }
636
- }}
637
- >
638
- {langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar}
639
- </p>
640
- </div>
641
- </div>
642
- </div>
643
- </div>
644
- </div>
645
- </div>
646
- </div>
647
- </div>
648
- </div>
649
- {/* );
650
- }
651
- })} */}
652
- </div>
653
- )}
654
- </div>
655
- );
656
- };
657
- return (
658
- <div class="row m-0 d-flex w-100 justify-content-center mb-md-4 " style={{ zIndex: 2 }}>
659
- {sectionproperties.length != 0 && <div class={' row ml-0 mr-0 d-flex justify-content-center w-md-100 h-md-100 w-100 '}>{cardsrender()}</div>}
660
- </div>
661
- );
662
- };
663
- export default CardsSection7;