tabexseriescomponents 0.0.64 → 0.0.65

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 (179) hide show
  1. package/dist/index.cjs.js +6838 -6468
  2. package/dist/index.esm.js +6841 -6471
  3. package/dist/index.umd.js +6841 -6472
  4. package/package.json +1 -1
  5. package/srcOLD/Contexts/LanguageContext.jsx +347 -0
  6. package/srcOLD/Contexts/ProductsCardsSectionContext.jsx +28 -0
  7. package/srcOLD/StylesJS/Customstyles.js +235 -0
  8. package/srcOLD/TabexComponents/Cards/CategoryCardwithhoveraction/CategoryCardwithhoveraction.jsx +214 -0
  9. package/srcOLD/TabexComponents/Cards/Categorycard_fullimage/Categorycard_fullimage.jsx +258 -0
  10. package/srcOLD/TabexComponents/Cards/Categorycard_slidebgscaled/Categorycard_slidebgscaled.jsx +206 -0
  11. package/srcOLD/TabexComponents/Cards/Categorycard_with_trianglebg/Categorycard_with_trianglebg.jsx +176 -0
  12. package/srcOLD/TabexComponents/Cards/Categorycard_with_twolinestransition/Categorycard_with_twolinestransition.jsx +207 -0
  13. package/srcOLD/TabexComponents/Cards/Categorycard_withshapes/Categorycard_withshapes.jsx +162 -0
  14. package/srcOLD/TabexComponents/Cards/Categorycard_withtext/Categorycard_withtext.jsx +193 -0
  15. package/srcOLD/TabexComponents/Cards/Classiccategorycard/Classiccategorycard.jsx +158 -0
  16. package/srcOLD/TabexComponents/Cards/Horizontalcard/Horizontalcard.jsx +286 -0
  17. package/srcOLD/TabexComponents/Cards/MenuCard/MenuCard.jsx +558 -0
  18. package/srcOLD/TabexComponents/Cards/ModernProductCard/ModernProductCard.jsx +486 -0
  19. package/srcOLD/TabexComponents/Cards/Productcard6/Productcard6.jsx +300 -0
  20. package/srcOLD/TabexComponents/Cards/Productcard7/Productcard7.jsx +288 -0
  21. package/srcOLD/TabexComponents/Cards/Productcard_animatedbuttons/Productcard_animatedbuttons.jsx +307 -0
  22. package/srcOLD/TabexComponents/Cards/Productcard_with_circularbg/Productcard_with_circularbg.jsx +295 -0
  23. package/srcOLD/TabexComponents/Cards/Productcard_with_circularhover/Productcard_with_circularhover.jsx +325 -0
  24. package/srcOLD/TabexComponents/Cards/Productcard_with_slideanimation/Productcard_with_slideanimation.jsx +290 -0
  25. package/srcOLD/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants.jsx +303 -0
  26. package/srcOLD/TabexComponents/Cards/Productcard_with_zoominonhover/Productcard_with_zoominonhover.jsx +466 -0
  27. package/srcOLD/TabexComponents/Cards/Productcarddefault/Productcarddefault.jsx +282 -0
  28. package/srcOLD/TabexComponents/Cards/Productccard_with_imageontopleft/Productccard_with_imageontopleft.jsx +298 -0
  29. package/srcOLD/TabexComponents/Cards/Prouductcard_with_zoomhover/Prouductcard_with_zoomhover.jsx +139 -0
  30. package/srcOLD/TabexComponents/Cards/Simplecategorycardwithtextbelow/Simplecategorycardwithtextbelow.jsx +135 -0
  31. package/srcOLD/TabexComponents/Cards/Simpleproductcard/Simpleproductcard.jsx +304 -0
  32. package/srcOLD/TabexComponents/Cards/StylishProductCard/StylishProductCard.jsx +291 -0
  33. package/srcOLD/TabexComponents/Footer/Footer1/Footer1.jsx +418 -0
  34. package/srcOLD/TabexComponents/Footer/Footer2/Footer2.jsx +382 -0
  35. package/srcOLD/TabexComponents/Footer/Footer3/Footer3.jsx +308 -0
  36. package/srcOLD/TabexComponents/Footer/Footer4/Footer4.jsx +438 -0
  37. package/srcOLD/TabexComponents/Footer/Footer5/Footer5.jsx +495 -0
  38. package/srcOLD/TabexComponents/Footer/Footer6/Footer6.jsx +295 -0
  39. package/srcOLD/TabexComponents/Footer/Footer7/Footer7.jsx +373 -0
  40. package/srcOLD/TabexComponents/Footer/Simplefooter/Simplefooter.jsx +238 -0
  41. package/srcOLD/TabexComponents/Generalfiles/images/egyptflag.png +0 -0
  42. package/srcOLD/TabexComponents/Generalfiles/images/noimage.png +0 -0
  43. package/srcOLD/TabexComponents/Generalfiles/images/payment/cod.png +0 -0
  44. package/srcOLD/TabexComponents/Generalfiles/images/payment/fawry.png +0 -0
  45. package/srcOLD/TabexComponents/Generalfiles/images/payment/payment.png +0 -0
  46. package/srcOLD/TabexComponents/Generalfiles/images/payment/paymob.png +0 -0
  47. package/srcOLD/TabexComponents/Generalfiles/images/payment/paypal.png +0 -0
  48. package/srcOLD/TabexComponents/Generalfiles/images/payment/visa.png +0 -0
  49. package/srcOLD/TabexComponents/Generalfiles/images/shoppingcart.png +0 -0
  50. package/srcOLD/TabexComponents/Generalfiles/images/tabexlogo.png +0 -0
  51. package/srcOLD/TabexComponents/Generalfiles/images/unknownmaleuser.png +0 -0
  52. package/srcOLD/TabexComponents/Generalfiles/images/usflag.png +0 -0
  53. package/srcOLD/TabexComponents/Generalfiles/images/whatsapp.png +0 -0
  54. package/srcOLD/TabexComponents/Headers/AllinoneHeader/AllinoneHeader.jsx +724 -0
  55. package/srcOLD/TabexComponents/Headers/ClassicHeader/ClassicHeader.jsx +687 -0
  56. package/srcOLD/TabexComponents/Headers/Header4/Header4.jsx +632 -0
  57. package/srcOLD/TabexComponents/Headers/Header6/Header6.jsx +669 -0
  58. package/srcOLD/TabexComponents/Headers/Header8/Header8.jsx +882 -0
  59. package/srcOLD/TabexComponents/Headers/HeaderRestaurant/HeaderRestaurant.jsx +754 -0
  60. package/srcOLD/TabexComponents/Headers/Header_threesectionslogocentered/Header_threesectionslogocentered.jsx +798 -0
  61. package/srcOLD/TabexComponents/Headers/Headerresponsive/Headerresponsive.jsx +686 -0
  62. package/srcOLD/TabexComponents/Headers/HeaderwithContactinfo/HeaderwithContactinfo.jsx +938 -0
  63. package/srcOLD/TabexComponents/Headers/Modernheader/Modernheader.jsx +706 -0
  64. package/srcOLD/TabexComponents/Headers/StylishHeader/StylishHeader.jsx +821 -0
  65. package/srcOLD/TabexComponents/Headers/Subheader/Subheader copy.jsx +228 -0
  66. package/srcOLD/TabexComponents/Headers/Subheader/Subheader.jsx +251 -0
  67. package/srcOLD/TabexComponents/Sections/BackgroundImages/Backgroundimage1/Backgroundimage1.jsx +312 -0
  68. package/srcOLD/TabexComponents/Sections/BackgroundImages/Backgroundimage_with_toppill/Backgroundimage_with_toppill.jsx +278 -0
  69. package/srcOLD/TabexComponents/Sections/BackgroundImages/BackgroundimageandTextsection/BackgroundimageandTextsection.jsx +138 -0
  70. package/srcOLD/TabexComponents/Sections/BackgroundImages/Section_with_rightbgcont/Section_with_rightbgcont.jsx +160 -0
  71. package/srcOLD/TabexComponents/Sections/BackgroundImages/Threebgimages/Threebgimages.jsx +295 -0
  72. package/srcOLD/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages.jsx +784 -0
  73. package/srcOLD/TabexComponents/Sections/Cards/CardsSection/CardsSection.jsx +861 -0
  74. package/srcOLD/TabexComponents/Sections/Cards/CardsSection2/CardsSection2.js +496 -0
  75. package/srcOLD/TabexComponents/Sections/Cards/CardsSection7/CardsSection7.js +888 -0
  76. package/srcOLD/TabexComponents/Sections/Cards/CardsSection8/CardsSection8.js +419 -0
  77. package/srcOLD/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.js +552 -0
  78. package/srcOLD/TabexComponents/Sections/Slideshow/AboutSection/AboutSection.jsx +281 -0
  79. package/srcOLD/TabexComponents/Sections/Slideshow/Backgroundimage_with_topcircle/Backgroundimage_with_topcircle.jsx +166 -0
  80. package/srcOLD/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection.jsx +152 -0
  81. package/srcOLD/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx +284 -0
  82. package/srcOLD/TabexComponents/Sections/Slideshow/Image_with_rightwords/Image_with_rightwords.jsx +146 -0
  83. package/srcOLD/TabexComponents/Sections/Slideshow/Servicesection/Servicesection.jsx +209 -0
  84. package/srcOLD/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards.jsx +145 -0
  85. package/srcOLD/TabexComponents/Sections/Slideshow/Slideshow_with_rotatedsquare/Slideshow_with_rotatedsquare.jsx +252 -0
  86. package/srcOLD/TabexComponents/Sections/Slideshow/Slideshow_with_squarebg/Slideshow_with_squarebg.jsx +175 -0
  87. package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowdifferentanimations/Slideshowdifferentanimations.jsx +154 -0
  88. package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade.jsx +201 -0
  89. package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide.jsx +414 -0
  90. package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom.jsx +270 -0
  91. package/srcOLD/TabexComponents/StaticPages/Aboutus/Aboutus.js +175 -0
  92. package/srcOLD/TabexComponents/StaticPages/AccountInformation/AccountInformation.jsx +275 -0
  93. package/srcOLD/TabexComponents/StaticPages/CartSlider/CartSlider.jsx +459 -0
  94. package/srcOLD/TabexComponents/StaticPages/Categoriesdropdown/Categoriesdropdown.js +146 -0
  95. package/srcOLD/TabexComponents/StaticPages/Checkout/Checkout.jsx +1220 -0
  96. package/srcOLD/TabexComponents/StaticPages/Filter/Filter.jsx +542 -0
  97. package/srcOLD/TabexComponents/StaticPages/Login/FacebookLoginButton.jsx +51 -0
  98. package/srcOLD/TabexComponents/StaticPages/Login/GoogleLoginButton.jsx +35 -0
  99. package/srcOLD/TabexComponents/StaticPages/Login/Login.jsx +299 -0
  100. package/srcOLD/TabexComponents/StaticPages/OrderSuccess/OrderSuccess.js +192 -0
  101. package/srcOLD/TabexComponents/StaticPages/Ordershistory/Ordershistory.jsx +1285 -0
  102. package/srcOLD/TabexComponents/StaticPages/Policies/Policies.jsx +358 -0
  103. package/srcOLD/TabexComponents/StaticPages/Productinfo/Productinfo.jsx +1506 -0
  104. package/srcOLD/TabexComponents/StaticPages/Searchlist/Searchlist.jsx +225 -0
  105. package/srcOLD/TabexComponents/StaticPages/Signup/CustomerInformationForm.jsx +788 -0
  106. package/srcOLD/TabexComponents/StaticPages/Signup/Signup.jsx +157 -0
  107. package/srcOLD/TabexComponents/StaticPages/Staticpagesrouter/Staticpagesrouter.jsx +295 -0
  108. package/srcOLD/TabexComponents/StaticPages/Viewcart/Viewcart.js +1090 -0
  109. package/srcOLD/TabexComponents/StaticPages/Wishlist/Wishlist.jsx +629 -0
  110. package/srcOLD/assets/images/cod.png +0 -0
  111. package/srcOLD/assets/images/egyptflag.png +0 -0
  112. package/srcOLD/assets/images/fawry.png +0 -0
  113. package/srcOLD/assets/images/payment.png +0 -0
  114. package/srcOLD/assets/images/paymob.png +0 -0
  115. package/srcOLD/assets/images/paypal.png +0 -0
  116. package/srcOLD/assets/images/shoppingcart.png +0 -0
  117. package/srcOLD/assets/images/usflag.png +0 -0
  118. package/srcOLD/assets/images/visa.png +0 -0
  119. package/srcOLD/assets/images/whatsapp.png +0 -0
  120. package/srcOLD/button.jsx +40 -0
  121. package/srcOLD/index.jsx +175 -0
  122. package/srcOLD/styles/Home.module.css +129 -0
  123. package/srcOLD/styles/cards/Categorcycard_fullimage.module.css +10 -0
  124. package/srcOLD/styles/cards/Categorycard_slidebgscaled.module.css +73 -0
  125. package/srcOLD/styles/cards/Categorycard_withshapes.module.css +189 -0
  126. package/srcOLD/styles/cards/Productcard6.module.css +9 -0
  127. package/srcOLD/styles/cards/Productcard_with_circularbg.module.css +137 -0
  128. package/srcOLD/styles/cards/Productccard_with_zoominonhover.module.css +51 -0
  129. package/srcOLD/styles/cards/Prouductcard_with_zoomhover.module.css +61 -0
  130. package/srcOLD/styles/cards/categorycard.module.css +102 -0
  131. package/srcOLD/styles/cards/categorycard3.module.css +51 -0
  132. package/srcOLD/styles/cards/categorycardwithtext.module.css +40 -0
  133. package/srcOLD/styles/cards/productcard_animatedbuttons.module.css +104 -0
  134. package/srcOLD/styles/cards/productcard_with_textonhover.module.css +12 -0
  135. package/srcOLD/styles/cards/productccard_with_imageontopleft.module.css +85 -0
  136. package/srcOLD/styles/general/bootstrap.css +4420 -0
  137. package/srcOLD/styles/general/dropdown.css +199 -0
  138. package/srcOLD/styles/general/editorbardropdown.module.css +94 -0
  139. package/srcOLD/styles/general/filter.module.css +108 -0
  140. package/srcOLD/styles/general/form.module.css +273 -0
  141. package/srcOLD/styles/general/general.module.css +709 -0
  142. package/srcOLD/styles/general/image-gallery.css +481 -0
  143. package/srcOLD/styles/general/react-accessible-accordion.module.css +52 -0
  144. package/srcOLD/styles/general/react-phone-input-2.module.css +927 -0
  145. package/srcOLD/styles/general/scrollbtn.module.css +22 -0
  146. package/srcOLD/styles/general/slick.module.css +166 -0
  147. package/srcOLD/styles/general/tabs.module.css +110 -0
  148. package/srcOLD/styles/general/workplaceeditor.module.css +328 -0
  149. package/srcOLD/styles/globals.css +26 -0
  150. package/srcOLD/styles/headers/Allinoneheader.module.css +91 -0
  151. package/srcOLD/styles/headers/Header7.module.css +50 -0
  152. package/srcOLD/styles/headers/Header_threesectionslogocentered.module.css +97 -0
  153. package/srcOLD/styles/headers/Sideheader.module.css +108 -0
  154. package/srcOLD/styles/headers/classicheaderstyles.module.css +16 -0
  155. package/srcOLD/styles/headers/dropdown.css +0 -0
  156. package/srcOLD/styles/headers/header4.module.css +175 -0
  157. package/srcOLD/styles/headers/header5.module.css +30 -0
  158. package/srcOLD/styles/headers/header6.module.css +117 -0
  159. package/srcOLD/styles/headers/header_contactinfo.module.css +78 -0
  160. package/srcOLD/styles/headers/headerresturant.module.css +89 -0
  161. package/srcOLD/styles/headers/headerstyles.module.css +24 -0
  162. package/srcOLD/styles/headers/modernheader.module.css +78 -0
  163. package/srcOLD/styles/headers/subheader.module.css +114 -0
  164. package/srcOLD/styles/sections/Backgroundimage1.module.css +17 -0
  165. package/srcOLD/styles/sections/Backgroundimage_with_topcircle.module.css +28 -0
  166. package/srcOLD/styles/sections/Section_with_rightbgcont.module.css +49 -0
  167. package/srcOLD/styles/sections/Slideshow_with_rotatedsquare.module.css +35 -0
  168. package/srcOLD/styles/sections/Slideshow_with_squarebg.module.css +39 -0
  169. package/srcOLD/styles/staticpages/accordion.module.css +9 -0
  170. package/srcOLD/styles/staticpages/cart.module.css +108 -0
  171. package/srcOLD/styles/staticpages/dropdown.css +196 -0
  172. package/srcOLD/styles/staticpages/filter.module.css +139 -0
  173. package/srcOLD/styles/staticpages/login.module.css +146 -0
  174. package/srcOLD/styles/staticpages/productinfo.module.css +54 -0
  175. package/srcOLD/styles/staticpages/shop.module.css +191 -0
  176. package/srcOLD/styles/staticpages/signup.module.css +206 -0
  177. package/srcOLD/styles/staticpages/staticroutersidenav.module.css +129 -0
  178. package/srcOLD/styles/staticpages/viewcart.module.css +129 -0
  179. package/srcOLD/styles/staticpages/wishlist.module.css +29 -0
@@ -0,0 +1,784 @@
1
+ // import React, { useEffect, useState, useContext } from 'react';
2
+ // import { WebsiteDesignWorkPlaceContext } from '../../../../../WebsiteDesignWorkPlaceContext';
3
+ // import { css } from 'glamor';
4
+ // import { TemplateRoutingContext } from '../../../../TemplateRoutingContext';
5
+ // import { LanguageContext } from '../../../../LanguageContext';
6
+ // import { serverbaselink } from '../../../../Env_Variables';
7
+ // import { IKImage } from 'imagekitio-react';
8
+ // import { IoIosArrowRoundForward, IoIosArrowRoundBack } from 'react-icons/io';
9
+ // import Categoriesdropdown from '../../../StaticPages/Categoriesdropdown/Categoriesdropdown';
10
+ // const Twobgimages = (props) => {
11
+ // const { lang, langdetect } = useContext(LanguageContext);
12
+ // const { StatePagePropertiesContext } = useContext(WebsiteDesignWorkPlaceContext);
13
+ // const [sectionproperties, setsectionproperties] = useState('');
14
+ // const [bgimagearrayofobjs, setbgimagearrayofobjs] = useState([]);
15
+ // const [maincontainerarrayofobjs, setmaincontainerarrayofobjs] = useState([]);
16
+ // const { routingcountext, StaticPagesLinksContext } = useContext(TemplateRoutingContext);
17
+ // useEffect(() => {
18
+ // if (props.srcfrom == 'addsectionform') {
19
+ // var secpropobj = {};
20
+ // props.defaultproperties.forEach(function (defaultpropobj, defaultpropindex) {
21
+ // secpropobj[defaultpropobj.property_css_name] = defaultpropobj.property_value;
22
+ // });
23
+ // setsectionproperties({ ...secpropobj });
24
+ // } else {
25
+ // var secpropobj = {};
26
+
27
+ // StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
28
+ // if (sectionitem.sectionid == props.sectionidprops) {
29
+ // sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
30
+ // secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
31
+ // });
32
+ // }
33
+ // });
34
+ // setsectionproperties({ ...secpropobj });
35
+ // }
36
+ // }, [StatePagePropertiesContext]);
37
+ // useEffect(() => {
38
+ // if (sectionproperties.length != 0 && sectionproperties.bg1_arrayofobjs != undefined) {
39
+ // var bg1_arrayofobjsparsed = JSON.parse(sectionproperties.bg1_arrayofobjs);
40
+ // if (Array.isArray(bg1_arrayofobjsparsed)) {
41
+ // setbgimagearrayofobjs([...bg1_arrayofobjsparsed]);
42
+ // }
43
+ // var maincontainerarrayofobjsparsed = JSON.parse(sectionproperties.maincontainerarrayofobjs);
44
+ // if (Array.isArray(maincontainerarrayofobjsparsed)) {
45
+ // setmaincontainerarrayofobjs([...maincontainerarrayofobjsparsed]);
46
+ // }
47
+ // }
48
+ // }, [sectionproperties]);
49
+ // const bgcssstyles = {
50
+ // bgImageContainer: css({
51
+ // height: sectionproperties.height + 'vh',
52
+ // backgroundPosition: 'center',
53
+ // backgroundRepeat: 'no-repeat',
54
+ // backgroundSize: 'cover',
55
+ // margin: 0,
56
+ // padding: 0,
57
+ // position: 'relative',
58
+ // borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
59
+ // borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
60
+ // borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
61
+ // borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
62
+ // alignItems: sectionproperties.generaltext_textposition == 'Center Center' ? 'center' : sectionproperties.generaltext_textposition == 'Top Left' ? '' : '',
63
+ // justifyContent: sectionproperties.generaltext_textposition == 'Center Center' ? 'center' : '',
64
+ // }),
65
+ // centered_container: css({
66
+ // position: 'absolute',
67
+ // display: 'flex',
68
+ // width: '100%',
69
+ // height: '100%',
70
+ // }),
71
+ // btnone: css({
72
+ // position: 'absolute',
73
+ // width: sectionproperties.generalbtn_width + 'px',
74
+ // height: sectionproperties.generalbtn_height + 'px',
75
+ // background: sectionproperties.generalbtn_bgColortransparent == 'Transparent' ? 'transparent' : sectionproperties.generalbtn_bgColor,
76
+ // fontSize: sectionproperties.generalbtn_fontsize + 'px',
77
+ // color: sectionproperties.generalbtn_textColor,
78
+ // textTransform: sectionproperties.generalbtn_texttransform,
79
+ // borderTopLeftRadius: sectionproperties.generalbtn_bordertopleftradius + 'px',
80
+ // borderTopRightRadius: sectionproperties.generalbtn_bordertoprightradius + 'px',
81
+ // borderBottomLeftRadius: sectionproperties.generalbtn_borderbottomleftradius + 'px',
82
+ // borderBottomRightRadius: sectionproperties.generalbtn_borderbottomrightradius + 'px',
83
+ // fontWeight: sectionproperties.generalbtn_fontweight,
84
+ // border: sectionproperties.generalbtn_borderwidth + 'px solid ' + sectionproperties.generalbtn_bordercolor,
85
+ // transition: '.3s',
86
+ // ':hover': {
87
+ // background: sectionproperties.generalbtn_bgColortransparentonhover == 'Transparent' ? 'transparent' : sectionproperties.generalbtn_bgColoronhover,
88
+ // color: sectionproperties.generalbtn_textColoronhover,
89
+ // },
90
+ // }),
91
+ // btnresp: css({
92
+ // // position: 'absolute',
93
+ // // bottom: 10,
94
+ // width: sectionproperties.generalbtn_width + 'px',
95
+ // height: sectionproperties.generalbtn_height + 'px',
96
+ // background: sectionproperties.generalbtn_bgColortransparent == 'Transparent' ? 'transparent' : sectionproperties.generalbtn_bgColor,
97
+ // fontSize: sectionproperties.generalbtn_fontsize + 'px',
98
+ // color: sectionproperties.generalbtn_textColor,
99
+ // textTransform: sectionproperties.generalbtn_texttransform,
100
+ // borderTopLeftRadius: sectionproperties.generalbtn_bordertopleftradius + 'px',
101
+ // borderTopRightRadius: sectionproperties.generalbtn_bordertoprightradius + 'px',
102
+ // borderBottomLeftRadius: sectionproperties.generalbtn_borderbottomleftradius + 'px',
103
+ // borderBottomRightRadius: sectionproperties.generalbtn_borderbottomrightradius + 'px',
104
+ // fontWeight: sectionproperties.generalbtn_fontweight,
105
+ // border: sectionproperties.generalbtn_borderwidth + 'px solid ' + sectionproperties.generalbtn_bordercolor,
106
+ // transition: '.3s',
107
+ // ':hover': {
108
+ // background: sectionproperties.generalbtn_bgColortransparentonhover == 'Transparent' ? 'transparent' : sectionproperties.generalbtn_bgColoronhover,
109
+ // color: sectionproperties.generalbtn_textColoronhover,
110
+ // },
111
+ // }),
112
+ // bgimage: css({
113
+ // ':before': {
114
+ // content: 'h',
115
+ // position: 'absolute',
116
+ // width: '100%',
117
+ // height: '100%',
118
+ // backgroundColor: 'rgba(0,0,0,' + sectionproperties.darknessopacity + ')',
119
+ // top: 0,
120
+ // borrom: 0,
121
+ // right: 0,
122
+ // left: 0,
123
+ // zIndex: 1,
124
+ // fontSize: 0,
125
+ // borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
126
+ // borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
127
+ // borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
128
+ // borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px',
129
+ // },
130
+ // }),
131
+ // };
132
+ // return (
133
+ // <div class="row m-0 w-100">
134
+ // <div class="col-lg-12 p-0">
135
+ // <div
136
+ // class={bgimagearrayofobjs[0]?.bg1_numberofcols == '12' ? 'row w-100 ml-0 mr-0 pl-md-0 pr-md-0 no-repeat' : 'row w-100 ml-0 mr-0 pl-md-3 pr-md-3 no-repeat'}
137
+ // style={{
138
+ // paddingTop: sectionproperties.paddingTop + 'px',
139
+ // paddingBottom: sectionproperties.paddingBottom + 'px',
140
+ // paddingLeft: sectionproperties.paddingLeft + 'px',
141
+ // paddingRight: sectionproperties.paddingRight + 'px',
142
+ // backgroundImage: maincontainerarrayofobjs.length != 0 ? 'url(' + serverbaselink + maincontainerarrayofobjs[0].back_bgimage + ')' : '',
143
+ // backgroundSize: 'cover',
144
+ // background: sectionproperties.backgroundColor,
145
+ // }}
146
+ // >
147
+ // {sectionproperties.collectionssectionshow == 'Show' && (
148
+ // <div class="col-lg-2 col-md-12 pl-2 pr-2 mb-md-3">
149
+ // <Categoriesdropdown sectionpropertiesprops={sectionproperties} />
150
+ // </div>
151
+ // )}
152
+ // <div class={sectionproperties.collectionssectionshow == 'Show' ? 'col-lg-10 col-md-12 p-md-0' : 'col-lg-12 p-0'}>
153
+ // <div class="row m-0 w-100">
154
+ // {Object.keys(bgimagearrayofobjs).length != 0 &&
155
+ // bgimagearrayofobjs.map((item, index) => {
156
+ // // bgimagearrayofobjs.IsClickable
157
+ // // bgimagearrayofobjs.clickable_page_route
158
+ // // bgimagearrayofobjs.Clickable_Reference_Collection_ID
159
+ // return (
160
+ // <div
161
+ // class={
162
+ // bgimagearrayofobjs[index].bg1_numberofcols != 12
163
+ // ? ' d-flex align-items-stretch col-md-' +
164
+ // bgimagearrayofobjs[index].bg1_numberofcols +
165
+ // ' col-sm-12 pr-sm-2 pl-sm-2 mb-md-3 mt-md-3 col-lg-' +
166
+ // bgimagearrayofobjs[index].bg1_numberofcols
167
+ // : ' d-flex align-items-stretch col-md-12 col-sm-12 pr-md-0 pl-md-0 col-lg-' + bgimagearrayofobjs[index].bg1_numberofcols
168
+ // }
169
+ // style={{
170
+ // paddingLeft: bgimagearrayofobjs[index].bg1_numberofcols == '12' ? 0 : '7px',
171
+ // paddingRight: bgimagearrayofobjs[index].bg1_numberofcols == '12' ? 0 : '7px',
172
+ // cursor: item.place_clickable == 'General' ? 'pointer' : 'default',
173
+ // }}
174
+ // onClick={() => {
175
+ // if (item.IsClickable == 'Yes') {
176
+ // if (item.place_clickable == 'General') {
177
+ // if (item.clickable_page_route && item.clickable_page_route.length != 0) {
178
+ // routingcountext(item.clickable_page_route, false, '');
179
+ // } else {
180
+ // routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.Clickable_Reference_Collection_ID);
181
+ // }
182
+ // }
183
+ // }
184
+ // }}
185
+ // >
186
+ // <div class="row ml-0 mr-0 d-flex justify-content-center w-100">
187
+ // <div
188
+ // class={sectionproperties.bgcovercontainresponsive == 'Contain' ? 'col-lg-12 p-0 h-md-auto' : 'col-lg-12 p-0'}
189
+ // style={{
190
+ // height: sectionproperties.image_height + 'vh',
191
+ // }}
192
+ // >
193
+ // <div
194
+ // class={`${bgcssstyles.bgimage}`}
195
+ // style={{
196
+ // height: '100%',
197
+ // width: '100%',
198
+ // }}
199
+ // >
200
+ // <IKImage
201
+ // path={bgimagearrayofobjs.length != 0 ? bgimagearrayofobjs[index].bg1_image : ''}
202
+ // class={sectionproperties.bgcovercontainresponsive == 'Contain' ? 'objectFit-md-contain' : ''}
203
+ // style={{
204
+ // height: '100%',
205
+ // width: '100%',
206
+ // objectFit: sectionproperties.bgcovercontain,
207
+ // borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
208
+ // borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
209
+ // borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
210
+ // borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px',
211
+ // }}
212
+ // />
213
+ // </div>
214
+ // <div
215
+ // class={`${bgcssstyles.bgImageContainer}` + ' col-lg-12 p-0 w-100 '}
216
+ // style={{
217
+ // position: 'absolute',
218
+ // top: 0,
219
+ // right: 0,
220
+ // bottom: 0,
221
+ // left: 0,
222
+ // zIndex: 100,
223
+ // }}
224
+ // >
225
+ // <div class={`${bgcssstyles.centered_container}` + ' row m-0 d-flex pt-0 '}>
226
+ // <div
227
+ // class={
228
+ // bgimagearrayofobjs[index].bg1_numberofcols == '12'
229
+ // ? ' p-0 d-flex flex-column d-md-none col-lg-12 '
230
+ // : ' p-0 d-flex flex-column d-md-none col-lg-6 '
231
+ // }
232
+ // style={{ position: 'relative', overflow: 'hidden' }}
233
+ // >
234
+ // <p
235
+ // class={'d-flex justify-content-md-center wordbreak'}
236
+ // style={{
237
+ // maxWidth: '100%',
238
+ // position: 'relative',
239
+ // fontSize: bgimagearrayofobjs[index].bg1_fontsize + 'px',
240
+ // color: bgimagearrayofobjs[index].bg1_txtcolor,
241
+ // textTransform: bgimagearrayofobjs[index].bg1_txttransform,
242
+ // fontWeight: bgimagearrayofobjs[index].bg1_fontweight,
243
+ // top: bgimagearrayofobjs[index].bg1_numberofcols == '12' ? 0 : bgimagearrayofobjs[index].bg1_texttop + 'px',
244
+ // left:
245
+ // bgimagearrayofobjs[index].bg1_numberofcols == '12'
246
+ // ? 0
247
+ // : langdetect == 'en'
248
+ // ? bgimagearrayofobjs[index].bg1_textleft + 'px'
249
+ // : '',
250
+ // right:
251
+ // bgimagearrayofobjs[index].bg1_numberofcols == '12'
252
+ // ? 0
253
+ // : langdetect == 'en'
254
+ // ? ''
255
+ // : bgimagearrayofobjs[index].bg1_textleft + 'px',
256
+ // bottom: bgimagearrayofobjs[index].bg1_numberofcols == '12' ? 0 : '',
257
+ // margin: bgimagearrayofobjs[index].bg1_numberofcols == '12' ? 'auto' : '',
258
+ // textAlign: langdetect == 'en' ? 'left' : 'right',
259
+ // }}
260
+ // >
261
+ // {langdetect == 'en' ? bgimagearrayofobjs[index].bg1_text_en : bgimagearrayofobjs[index].bg1_text_ar}
262
+ // </p>
263
+ // {bgimagearrayofobjs[index].showdescription1 == 'Show' && (
264
+ // <p
265
+ // class={'d-flex justify-content-md-center wordbreak'}
266
+ // style={{
267
+ // // maxWidth: '97%',
268
+ // position: 'relative',
269
+ // fontSize: bgimagearrayofobjs[index].bg1_desfontsize + 'px',
270
+ // color: bgimagearrayofobjs[index].bg1_descolor,
271
+ // textTransform: bgimagearrayofobjs[index].bg1_destxttransform,
272
+ // fontWeight: bgimagearrayofobjs[index].bg1_desfontweight,
273
+ // top: bgimagearrayofobjs[index].desc1top + 'px',
274
+ // left: langdetect == 'en' ? bgimagearrayofobjs[index].desc1left + 'px' : '',
275
+ // right: langdetect == 'en' ? '' : bgimagearrayofobjs[index].desc1left + 'px',
276
+ // textAlign: langdetect == 'en' ? 'left' : 'right',
277
+ // }}
278
+ // >
279
+ // {langdetect == 'en' ? bgimagearrayofobjs[index].bg1_descriptionen : bgimagearrayofobjs[index].bg1_descriptionar}
280
+ // </p>
281
+ // )}
282
+ // {bgimagearrayofobjs[index].showbutton1 == 'Show' && (
283
+ // <button
284
+ // class={`${bgcssstyles.btnone}` + ' allcentered '}
285
+ // style={{
286
+ // top: bgimagearrayofobjs[index].bg1_btnpositiontop + 'px',
287
+ // left: langdetect == 'en' ? bgimagearrayofobjs[index].bg1_btnpositionleft + 'px' : '',
288
+ // right: langdetect == 'en' ? '' : bgimagearrayofobjs[index].bg1_btnpositionleft + 'px',
289
+ // letterSpacing: langdetect == 'en' ? '1px' : 0,
290
+ // }}
291
+ // onClick={() => {
292
+ // if (item.IsClickable == 'Yes') {
293
+ // if (item.place_clickable == 'Button') {
294
+ // if (item.clickable_page_route && item.clickable_page_route.length != 0) {
295
+ // routingcountext(item.clickable_page_route, false, '');
296
+ // } else {
297
+ // routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.Clickable_Reference_Collection_ID);
298
+ // }
299
+ // }
300
+ // }
301
+ // }}
302
+ // >
303
+ // {langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar}{' '}
304
+ // {langdetect == 'en' ? <IoIosArrowRoundForward size={20} /> : <IoIosArrowRoundBack size={20} />}
305
+ // </button>
306
+ // )}
307
+ // </div>
308
+ // <div class="col-md-12 d-none d-md-flex flex-column mt-auto mb-auto ">
309
+ // <p
310
+ // class="wordbreak m-0"
311
+ // style={{
312
+ // position: 'relative',
313
+ // fontSize: bgimagearrayofobjs[index].bg1_fontsize + 'px',
314
+ // color: bgimagearrayofobjs[index].bg1_txtcolor,
315
+ // textTransform: bgimagearrayofobjs[index].bg1_txttransform,
316
+ // fontWeight: bgimagearrayofobjs[index].bg1_fontweight,
317
+ // textAlign: langdetect == 'en' ? 'left' : 'right',
318
+ // }}
319
+ // >
320
+ // {langdetect == 'en' ? bgimagearrayofobjs[index].bg1_text_en : bgimagearrayofobjs[index].bg1_text_ar}
321
+ // </p>
322
+ // {bgimagearrayofobjs[index].showdescription1 == 'Show' && (
323
+ // <p
324
+ // class={'d-flex justify-content-md-center wordbreak m-0'}
325
+ // style={{
326
+ // position: 'relative',
327
+ // fontSize: bgimagearrayofobjs[index].bg1_desfontsize + 'px',
328
+ // color: bgimagearrayofobjs[index].bg1_descolor,
329
+ // textTransform: bgimagearrayofobjs[index].bg1_destxttransform,
330
+ // fontWeight: bgimagearrayofobjs[index].bg1_desfontweight,
331
+ // textAlign: langdetect == 'en' ? 'left' : 'right',
332
+ // }}
333
+ // >
334
+ // {langdetect == 'en' ? bgimagearrayofobjs[index].bg1_descriptionen : bgimagearrayofobjs[index].bg1_descriptionar}
335
+ // </p>
336
+ // )}
337
+ // {bgimagearrayofobjs[index].showbutton1 == 'Show' && (
338
+ // <button
339
+ // class={`${bgcssstyles.btnresp}` + ' mt-md-5 mt-sm-3 '}
340
+ // onClick={() => {
341
+ // if (item.IsClickable == 'Yes') {
342
+ // if (item.place_clickable == 'Button') {
343
+ // if (item.clickable_page_route && item.clickable_page_route.length != 0) {
344
+ // routingcountext(item.clickable_page_route, false, '');
345
+ // } else {
346
+ // routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.Clickable_Reference_Collection_ID);
347
+ // }
348
+ // }
349
+ // }
350
+ // }}
351
+ // >
352
+ // {langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar}
353
+ // </button>
354
+ // )}
355
+ // </div>
356
+ // </div>
357
+ // </div>
358
+ // </div>
359
+ // </div>
360
+ // </div>
361
+ // );
362
+ // })}
363
+ // </div>
364
+ // </div>
365
+ // </div>
366
+ // </div>
367
+ // </div>
368
+ // );
369
+ // };
370
+ // export default Twobgimages;
371
+
372
+ import React, { useEffect, useState, useContext } from 'react';
373
+ // import { WebsiteDesignWorkPlaceContext } from '../../../../../WebsiteDesignWorkPlaceContext';
374
+ import { css } from 'glamor';
375
+ // import { TemplateRoutingContext } from '../../../../TemplateRoutingContext';
376
+ // import { LanguageContext } from '../../../../LanguageContext';
377
+ import { serverbaselink } from '../../../../../Env';
378
+ import { IKImage } from 'imagekitio-react';
379
+ import { IKpublicKey, IKurlEndpoint } from '../../../../../Env';
380
+
381
+ import { IoIosArrowRoundForward, IoIosArrowRoundBack } from 'react-icons/io';
382
+ // import Categoriesdropdown from '../../../StaticPages/Categoriesdropdown/Categoriesdropdown';
383
+ const Twobgimages = (props) => {
384
+ // const { lang, langdetect } = useContext(LanguageContext);
385
+ // const { StatePagePropertiesContext } = useContext(WebsiteDesignWorkPlaceContext);
386
+ const [sectionproperties, setsectionproperties] = useState('');
387
+ const [bgimagearrayofobjs, setbgimagearrayofobjs] = useState([]);
388
+ const [maincontainerarrayofobjs, setmaincontainerarrayofobjs] = useState([]);
389
+ // const { routingcountext, StaticPagesLinksContext } = useContext(TemplateRoutingContext);
390
+
391
+ const lang = props.actions.lang;
392
+ const langdetect = props.actions.langdetect;
393
+ const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
394
+ const routingcountext = props.actions.routingcountext;
395
+ const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
396
+ useEffect(() => {
397
+ if (props.srcfrom == 'addsectionform') {
398
+ var secpropobj = {};
399
+ props.defaultproperties.forEach(function (defaultpropobj, defaultpropindex) {
400
+ secpropobj[defaultpropobj.property_css_name] = defaultpropobj.property_value;
401
+ });
402
+ setsectionproperties({ ...secpropobj });
403
+ } else {
404
+ var secpropobj = {};
405
+
406
+ StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
407
+ if (sectionitem.sectionid == props.sectionidprops) {
408
+ sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
409
+ secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
410
+ });
411
+ }
412
+ });
413
+ setsectionproperties({ ...secpropobj });
414
+ }
415
+ }, [StatePagePropertiesContext]);
416
+ useEffect(() => {
417
+ if (sectionproperties.length != 0 && sectionproperties.bg1_arrayofobjs != undefined) {
418
+ var bg1_arrayofobjsparsed = JSON.parse(sectionproperties.bg1_arrayofobjs);
419
+ if (Array.isArray(bg1_arrayofobjsparsed)) {
420
+ setbgimagearrayofobjs([...bg1_arrayofobjsparsed]);
421
+ }
422
+ var maincontainerarrayofobjsparsed = JSON.parse(sectionproperties.maincontainerarrayofobjs);
423
+ if (Array.isArray(maincontainerarrayofobjsparsed)) {
424
+ setmaincontainerarrayofobjs([...maincontainerarrayofobjsparsed]);
425
+ }
426
+ }
427
+ }, [sectionproperties]);
428
+ const bgcssstyles = {
429
+ bgImageContainer: css({
430
+ height: sectionproperties.height + 'vh',
431
+ backgroundPosition: 'center',
432
+ backgroundRepeat: 'no-repeat',
433
+ backgroundSize: 'cover',
434
+ margin: 0,
435
+ padding: 0,
436
+ position: 'relative',
437
+ borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
438
+ borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
439
+ borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
440
+ borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
441
+ alignItems: sectionproperties.generaltext_textposition == 'Center Center' ? 'center' : sectionproperties.generaltext_textposition == 'Top Left' ? '' : '',
442
+ justifyContent: sectionproperties.generaltext_textposition == 'Center Center' ? 'center' : '',
443
+ }),
444
+ centered_container: css({
445
+ position: 'absolute',
446
+ display: 'flex',
447
+ width: '100%',
448
+ height: '100%',
449
+ }),
450
+ btnone: css({
451
+ position: 'absolute',
452
+ width: sectionproperties.generalbtn_width + 'px',
453
+ height: sectionproperties.generalbtn_height + 'px',
454
+ background: sectionproperties.generalbtn_bgColortransparent == 'Transparent' ? 'transparent' : sectionproperties.generalbtn_bgColor,
455
+ fontSize: sectionproperties.generalbtn_fontsize + 'px',
456
+ color: sectionproperties.generalbtn_textColor,
457
+ textTransform: sectionproperties.generalbtn_texttransform,
458
+ borderTopLeftRadius: sectionproperties.generalbtn_bordertopleftradius + 'px',
459
+ borderTopRightRadius: sectionproperties.generalbtn_bordertoprightradius + 'px',
460
+ borderBottomLeftRadius: sectionproperties.generalbtn_borderbottomleftradius + 'px',
461
+ borderBottomRightRadius: sectionproperties.generalbtn_borderbottomrightradius + 'px',
462
+ fontWeight: sectionproperties.generalbtn_fontweight,
463
+ border: sectionproperties.generalbtn_borderwidth + 'px solid ' + sectionproperties.generalbtn_bordercolor,
464
+ transition: '.3s',
465
+ ':hover': {
466
+ background: sectionproperties.generalbtn_bgColortransparentonhover == 'Transparent' ? 'transparent' : sectionproperties.generalbtn_bgColoronhover,
467
+ color: sectionproperties.generalbtn_textColoronhover,
468
+ },
469
+ }),
470
+ btnresp: css({
471
+ // position: 'absolute',
472
+ // bottom: 10,
473
+ width: sectionproperties.generalbtn_width + 'px',
474
+ height: sectionproperties.generalbtn_height + 'px',
475
+ background: sectionproperties.generalbtn_bgColortransparent == 'Transparent' ? 'transparent' : sectionproperties.generalbtn_bgColor,
476
+ fontSize: sectionproperties.generalbtn_fontsize + 'px',
477
+ color: sectionproperties.generalbtn_textColor,
478
+ textTransform: sectionproperties.generalbtn_texttransform,
479
+ borderTopLeftRadius: sectionproperties.generalbtn_bordertopleftradius + 'px',
480
+ borderTopRightRadius: sectionproperties.generalbtn_bordertoprightradius + 'px',
481
+ borderBottomLeftRadius: sectionproperties.generalbtn_borderbottomleftradius + 'px',
482
+ borderBottomRightRadius: sectionproperties.generalbtn_borderbottomrightradius + 'px',
483
+ fontWeight: sectionproperties.generalbtn_fontweight,
484
+ border: sectionproperties.generalbtn_borderwidth + 'px solid ' + sectionproperties.generalbtn_bordercolor,
485
+ transition: '.3s',
486
+ ':hover': {
487
+ background: sectionproperties.generalbtn_bgColortransparentonhover == 'Transparent' ? 'transparent' : sectionproperties.generalbtn_bgColoronhover,
488
+ color: sectionproperties.generalbtn_textColoronhover,
489
+ },
490
+ }),
491
+ bgimage: css({
492
+ ':before': {
493
+ content: 'h',
494
+ position: 'absolute',
495
+ width: '100%',
496
+ height: '100%',
497
+ backgroundColor: 'rgba(0,0,0,' + sectionproperties.darknessopacity + ')',
498
+ top: 0,
499
+ borrom: 0,
500
+ right: 0,
501
+ left: 0,
502
+ zIndex: 1,
503
+ fontSize: 0,
504
+ borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
505
+ borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
506
+ borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
507
+ borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px',
508
+ },
509
+ }),
510
+ };
511
+ return (
512
+ <div class="row m-0 w-100">
513
+ <div class="col-lg-12 p-0">
514
+ <div
515
+ class={bgimagearrayofobjs[0]?.bg1_numberofcols == '12' ? 'row w-100 ml-0 mr-0 pl-md-0 pr-md-0 no-repeat' : 'row w-100 ml-0 mr-0 pl-md-3 pr-md-3 no-repeat'}
516
+ style={{
517
+ paddingTop: sectionproperties.paddingTop + 'px',
518
+ paddingBottom: sectionproperties.paddingBottom + 'px',
519
+ paddingLeft: sectionproperties.paddingLeft + 'px',
520
+ paddingRight: sectionproperties.paddingRight + 'px',
521
+ backgroundImage: maincontainerarrayofobjs.length != 0 ? 'url(' + serverbaselink + maincontainerarrayofobjs[0].back_bgimage + ')' : '',
522
+ backgroundSize: 'cover',
523
+ background: sectionproperties.backgroundColor,
524
+ }}
525
+ >
526
+ {sectionproperties.collectionssectionshow == 'Show' && (
527
+ <div class="col-lg-2 col-md-12 pl-2 pr-2 mb-md-3">{/* <Categoriesdropdown sectionpropertiesprops={sectionproperties} /> */}</div>
528
+ )}
529
+ <div class={sectionproperties.collectionssectionshow == 'Show' ? 'col-lg-10 col-md-12 p-md-0' : 'col-lg-12 p-0'}>
530
+ <div class="row m-0 w-100">
531
+ {Object.keys(bgimagearrayofobjs).length != 0 &&
532
+ bgimagearrayofobjs.map((item, index) => {
533
+ // bgimagearrayofobjs.IsClickable
534
+ // bgimagearrayofobjs.clickable_page_route
535
+ // bgimagearrayofobjs.Clickable_Reference_Collection_ID
536
+ return (
537
+ <div
538
+ class={
539
+ bgimagearrayofobjs[index].bg1_numberofcols != 12
540
+ ? ' d-flex align-items-stretch col-md-' +
541
+ bgimagearrayofobjs[index].bg1_numberofcols +
542
+ ' col-sm-12 pr-sm-2 pl-sm-2 mb-md-3 mt-md-3 col-lg-' +
543
+ bgimagearrayofobjs[index].bg1_numberofcols
544
+ : ' d-flex align-items-stretch col-md-12 col-sm-12 pr-md-0 pl-md-0 col-lg-' + bgimagearrayofobjs[index].bg1_numberofcols
545
+ }
546
+ style={{
547
+ paddingLeft: bgimagearrayofobjs[index].bg1_numberofcols == '12' ? 0 : '7px',
548
+ paddingRight: bgimagearrayofobjs[index].bg1_numberofcols == '12' ? 0 : '7px',
549
+ cursor: item.place_clickable == 'General' ? 'pointer' : 'default',
550
+ }}
551
+ onClick={() => {
552
+ if (item.IsClickable == 'Yes') {
553
+ if (item.place_clickable == 'General') {
554
+ if (item.clickable_page_route && item.clickable_page_route.length != 0) {
555
+ routingcountext(item.clickable_page_route, false, '');
556
+ } else {
557
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.Clickable_Reference_Collection_ID);
558
+ }
559
+ }
560
+ }
561
+ }}
562
+ >
563
+ <div class="row ml-0 mr-0 d-flex justify-content-center w-100">
564
+ <div
565
+ class={sectionproperties.bgcovercontainresponsive == 'Contain' ? 'col-lg-12 p-0 h-md-auto' : 'col-lg-12 p-0'}
566
+ style={{
567
+ height: sectionproperties.image_height + 'vh',
568
+ }}
569
+ >
570
+ <div
571
+ class={`${bgcssstyles.bgimage}` + ' d-md-flex d-sm-none '}
572
+ style={{
573
+ height: '100%',
574
+ width: '100%',
575
+ }}
576
+ >
577
+ <IKImage
578
+ urlEndpoint={IKurlEndpoint}
579
+ publicKey={IKpublicKey}
580
+ path={
581
+ bgimagearrayofobjs.length != 0
582
+ ? langdetect == 'en'
583
+ ? bgimagearrayofobjs[index].bg1_image
584
+ : bgimagearrayofobjs[index].bg1_image_ar
585
+ : ''
586
+ }
587
+ class={sectionproperties.bgcovercontainresponsive == 'Contain' ? 'objectFit-md-contain' : ''}
588
+ style={{
589
+ height: '100%',
590
+ width: '100%',
591
+ objectFit: sectionproperties.bgcovercontain,
592
+ borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
593
+ borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
594
+ borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
595
+ borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px',
596
+ }}
597
+ />
598
+ </div>
599
+ <div
600
+ class={`${bgcssstyles.bgimage}` + ' d-none d-md-none d-sm-flex'}
601
+ style={{
602
+ height: '100%',
603
+ width: '100%',
604
+ }}
605
+ >
606
+ <IKImage
607
+ urlEndpoint={IKurlEndpoint}
608
+ publicKey={IKpublicKey}
609
+ path={
610
+ bgimagearrayofobjs.length != 0
611
+ ? langdetect == 'en'
612
+ ? bgimagearrayofobjs[index].bg1_imageresponsive
613
+ : bgimagearrayofobjs[index].bg1_imageresponsive_ar
614
+ : ''
615
+ }
616
+ class={sectionproperties.bgcovercontainresponsive == 'Contain' ? 'objectFit-md-contain' : ''}
617
+ style={{
618
+ height: '100%',
619
+ width: '100%',
620
+ objectFit: sectionproperties.bgcovercontain,
621
+ borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
622
+ borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
623
+ borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
624
+ borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px',
625
+ }}
626
+ />
627
+ </div>
628
+ <div
629
+ class={`${bgcssstyles.bgImageContainer}` + ' col-lg-12 p-0 w-100 '}
630
+ style={{
631
+ position: 'absolute',
632
+ top: 0,
633
+ right: 0,
634
+ bottom: 0,
635
+ left: 0,
636
+ zIndex: 100,
637
+ }}
638
+ >
639
+ <div class={`${bgcssstyles.centered_container}` + ' row m-0 d-flex pt-0 '}>
640
+ <div
641
+ class={
642
+ bgimagearrayofobjs[index].bg1_numberofcols == '12'
643
+ ? ' p-0 d-flex flex-column d-md-none col-lg-12 '
644
+ : ' p-0 d-flex flex-column d-md-none col-lg-6 '
645
+ }
646
+ style={{ position: 'relative', overflow: 'hidden' }}
647
+ >
648
+ <p
649
+ class={'d-flex justify-content-md-center wordbreak'}
650
+ style={{
651
+ maxWidth: '100%',
652
+ position: 'relative',
653
+ fontSize: bgimagearrayofobjs[index].bg1_fontsize + 'px',
654
+ color: bgimagearrayofobjs[index].bg1_txtcolor,
655
+ textTransform: bgimagearrayofobjs[index].bg1_txttransform,
656
+ fontWeight: bgimagearrayofobjs[index].bg1_fontweight,
657
+ top: bgimagearrayofobjs[index].bg1_numberofcols == '12' ? 0 : bgimagearrayofobjs[index].bg1_texttop + 'px',
658
+ left:
659
+ bgimagearrayofobjs[index].bg1_numberofcols == '12'
660
+ ? 0
661
+ : langdetect == 'en'
662
+ ? bgimagearrayofobjs[index].bg1_textleft + 'px'
663
+ : '',
664
+ right:
665
+ bgimagearrayofobjs[index].bg1_numberofcols == '12'
666
+ ? 0
667
+ : langdetect == 'en'
668
+ ? ''
669
+ : bgimagearrayofobjs[index].bg1_textleft + 'px',
670
+ bottom: bgimagearrayofobjs[index].bg1_numberofcols == '12' ? 0 : '',
671
+ margin: bgimagearrayofobjs[index].bg1_numberofcols == '12' ? 'auto' : '',
672
+ textAlign: langdetect == 'en' ? 'left' : 'right',
673
+ }}
674
+ >
675
+ {langdetect == 'en' ? bgimagearrayofobjs[index].bg1_text_en : bgimagearrayofobjs[index].bg1_text_ar}
676
+ </p>
677
+ {bgimagearrayofobjs[index].showdescription1 == 'Show' && (
678
+ <p
679
+ class={'d-flex justify-content-md-center wordbreak'}
680
+ style={{
681
+ // maxWidth: '97%',
682
+ position: 'relative',
683
+ fontSize: bgimagearrayofobjs[index].bg1_desfontsize + 'px',
684
+ color: bgimagearrayofobjs[index].bg1_descolor,
685
+ textTransform: bgimagearrayofobjs[index].bg1_destxttransform,
686
+ fontWeight: bgimagearrayofobjs[index].bg1_desfontweight,
687
+ top: bgimagearrayofobjs[index].desc1top + 'px',
688
+ left: langdetect == 'en' ? bgimagearrayofobjs[index].desc1left + 'px' : '',
689
+ right: langdetect == 'en' ? '' : bgimagearrayofobjs[index].desc1left + 'px',
690
+ textAlign: langdetect == 'en' ? 'left' : 'right',
691
+ }}
692
+ >
693
+ {langdetect == 'en' ? bgimagearrayofobjs[index].bg1_descriptionen : bgimagearrayofobjs[index].bg1_descriptionar}
694
+ </p>
695
+ )}
696
+ {bgimagearrayofobjs[index].showbutton1 == 'Show' && (
697
+ <button
698
+ class={`${bgcssstyles.btnone}` + ' allcentered '}
699
+ style={{
700
+ top: bgimagearrayofobjs[index].bg1_btnpositiontop + 'px',
701
+ left: langdetect == 'en' ? bgimagearrayofobjs[index].bg1_btnpositionleft + 'px' : '',
702
+ right: langdetect == 'en' ? '' : bgimagearrayofobjs[index].bg1_btnpositionleft + 'px',
703
+ letterSpacing: langdetect == 'en' ? '1px' : 0,
704
+ }}
705
+ onClick={() => {
706
+ if (item.IsClickable == 'Yes') {
707
+ if (item.place_clickable == 'Button') {
708
+ if (item.clickable_page_route && item.clickable_page_route.length != 0) {
709
+ routingcountext(item.clickable_page_route, false, '');
710
+ } else {
711
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.Clickable_Reference_Collection_ID);
712
+ }
713
+ }
714
+ }
715
+ }}
716
+ >
717
+ {langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar}{' '}
718
+ {langdetect == 'en' ? <IoIosArrowRoundForward size={20} /> : <IoIosArrowRoundBack size={20} />}
719
+ </button>
720
+ )}
721
+ </div>
722
+ <div class="col-md-12 d-none d-md-flex flex-column mt-auto mb-auto ">
723
+ <p
724
+ class="wordbreak m-0"
725
+ style={{
726
+ position: 'relative',
727
+ fontSize: bgimagearrayofobjs[index].bg1_fontsize + 'px',
728
+ color: bgimagearrayofobjs[index].bg1_txtcolor,
729
+ textTransform: bgimagearrayofobjs[index].bg1_txttransform,
730
+ fontWeight: bgimagearrayofobjs[index].bg1_fontweight,
731
+ textAlign: langdetect == 'en' ? 'left' : 'right',
732
+ }}
733
+ >
734
+ {langdetect == 'en' ? bgimagearrayofobjs[index].bg1_text_en : bgimagearrayofobjs[index].bg1_text_ar}
735
+ </p>
736
+ {bgimagearrayofobjs[index].showdescription1 == 'Show' && (
737
+ <p
738
+ class={'d-flex justify-content-md-center wordbreak m-0'}
739
+ style={{
740
+ position: 'relative',
741
+ fontSize: bgimagearrayofobjs[index].bg1_desfontsize + 'px',
742
+ color: bgimagearrayofobjs[index].bg1_descolor,
743
+ textTransform: bgimagearrayofobjs[index].bg1_destxttransform,
744
+ fontWeight: bgimagearrayofobjs[index].bg1_desfontweight,
745
+ textAlign: langdetect == 'en' ? 'left' : 'right',
746
+ }}
747
+ >
748
+ {langdetect == 'en' ? bgimagearrayofobjs[index].bg1_descriptionen : bgimagearrayofobjs[index].bg1_descriptionar}
749
+ </p>
750
+ )}
751
+ {bgimagearrayofobjs[index].showbutton1 == 'Show' && (
752
+ <button
753
+ class={`${bgcssstyles.btnresp}` + ' mt-md-5 mt-sm-3 '}
754
+ onClick={() => {
755
+ if (item.IsClickable == 'Yes') {
756
+ if (item.place_clickable == 'Button') {
757
+ if (item.clickable_page_route && item.clickable_page_route.length != 0) {
758
+ routingcountext(item.clickable_page_route, false, '');
759
+ } else {
760
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.Clickable_Reference_Collection_ID);
761
+ }
762
+ }
763
+ }
764
+ }}
765
+ >
766
+ {langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar}
767
+ </button>
768
+ )}
769
+ </div>
770
+ </div>
771
+ </div>
772
+ </div>
773
+ </div>
774
+ </div>
775
+ );
776
+ })}
777
+ </div>
778
+ </div>
779
+ </div>
780
+ </div>
781
+ </div>
782
+ );
783
+ };
784
+ export default Twobgimages;