tabexseriescomponents 0.0.217 → 0.0.220

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 (255) hide show
  1. package/dist/index.cjs.js +1044 -780
  2. package/dist/index.esm.js +1044 -780
  3. package/dist/index.umd.js +1042 -778
  4. package/library.zip +0 -0
  5. package/package.json +2 -1
  6. package/srcold/Contexts/LanguageContext.jsx +390 -0
  7. package/srcold/Contexts/ProductsCardsSectionContext.jsx +34 -0
  8. package/srcold/StylesJS/Customstyles.js +236 -0
  9. package/srcold/TabexComponents/Cards/Card20/Card20.jsx +282 -0
  10. package/srcold/TabexComponents/Cards/Card21/Card21.jsx +388 -0
  11. package/srcold/TabexComponents/Cards/Card22/Card22.jsx +287 -0
  12. package/srcold/TabexComponents/Cards/Card23/Card23.jsx +403 -0
  13. package/srcold/TabexComponents/Cards/CardBadgeSlideFromTop/CardBadgeSlideFromTop.jsx +395 -0
  14. package/srcold/TabexComponents/Cards/CardWithTextOnly/CardWithTextOnly.jsx +70 -0
  15. package/srcold/TabexComponents/Cards/CategoryCardTextOnImage/CategoryCardTextOnImage.jsx +211 -0
  16. package/srcold/TabexComponents/Cards/CategoryCardwithhoveraction/CategoryCardwithhoveraction.jsx +220 -0
  17. package/srcold/TabexComponents/Cards/Categorycard_fullimage/Categorycard_fullimage.jsx +230 -0
  18. package/srcold/TabexComponents/Cards/Categorycard_slidebgscaled/Categorycard_slidebgscaled.jsx +198 -0
  19. package/srcold/TabexComponents/Cards/Categorycard_with_trianglebg/Categorycard_with_trianglebg.jsx +170 -0
  20. package/srcold/TabexComponents/Cards/Categorycard_with_twolinestransition/Categorycard_with_twolinestransition.jsx +181 -0
  21. package/srcold/TabexComponents/Cards/Categorycard_withshapes/Categorycard_withshapes.jsx +161 -0
  22. package/srcold/TabexComponents/Cards/Categorycard_withtext/Categorycard_withtext.jsx +180 -0
  23. package/srcold/TabexComponents/Cards/CircleCardWithVariants/CircleCardWithVariants.jsx +487 -0
  24. package/srcold/TabexComponents/Cards/Classiccategorycard/Classiccategorycard.jsx +123 -0
  25. package/srcold/TabexComponents/Cards/HorizontalCategoryCard/HorizontalCategoryCard.jsx +192 -0
  26. package/srcold/TabexComponents/Cards/Horizontalcard/Horizontalcard.jsx +270 -0
  27. package/srcold/TabexComponents/Cards/MenuCard/MenuCard.jsx +543 -0
  28. package/srcold/TabexComponents/Cards/ModernCardWithQuantityButton/ModernCardWithQuantityButton.jsx +467 -0
  29. package/srcold/TabexComponents/Cards/ModernProductCard/ModernProductCard.jsx +469 -0
  30. package/srcold/TabexComponents/Cards/NewProductcard/NewProductcard.jsx +445 -0
  31. package/srcold/TabexComponents/Cards/ProductCardWithTextOnImage/ProductCardWithTextOnImage.jsx +304 -0
  32. package/srcold/TabexComponents/Cards/Productcard6/Productcard6.jsx +256 -0
  33. package/srcold/TabexComponents/Cards/Productcard7/Productcard7.jsx +278 -0
  34. package/srcold/TabexComponents/Cards/Productcard_animatedbuttons/Productcard_animatedbuttons.jsx +443 -0
  35. package/srcold/TabexComponents/Cards/Productcard_with_circularbg/Productcard_with_circularbg.jsx +275 -0
  36. package/srcold/TabexComponents/Cards/Productcard_with_circularhover/Productcard_with_circularhover.jsx +315 -0
  37. package/srcold/TabexComponents/Cards/Productcard_with_slideanimation/Productcard_with_slideanimation.jsx +301 -0
  38. package/srcold/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants.jsx +419 -0
  39. package/srcold/TabexComponents/Cards/Productcard_with_zoominonhover/Productcard_with_zoominonhover.jsx +524 -0
  40. package/srcold/TabexComponents/Cards/Productcarddefault/Productcarddefault.jsx +275 -0
  41. package/srcold/TabexComponents/Cards/Productccard_with_imageontopleft/Productccard_with_imageontopleft.jsx +286 -0
  42. package/srcold/TabexComponents/Cards/Prouductcard_with_zoomhover/Prouductcard_with_zoomhover.jsx +136 -0
  43. package/srcold/TabexComponents/Cards/Simplecategorycardwithtextbelow/Simplecategorycardwithtextbelow.jsx +179 -0
  44. package/srcold/TabexComponents/Cards/Simpleproductcard/Simpleproductcard.jsx +291 -0
  45. package/srcold/TabexComponents/Cards/StylishProductCard/StylishProductCard.jsx +339 -0
  46. package/srcold/TabexComponents/Cards/TwoWayServiceSectionWithImage/TwoWayServiceSectionWithImage.jsx +338 -0
  47. package/srcold/TabexComponents/Cards/UpSlideEffectCard/UpSlideEffectCard.jsx +515 -0
  48. package/srcold/TabexComponents/Cards/UserCardWithSocialMediaOnHover/UserCardWithSocialMediaOnHover.jsx +184 -0
  49. package/srcold/TabexComponents/Footer/Allinonefooter/Allinonefooter.jsx +475 -0
  50. package/srcold/TabexComponents/Footer/Footer1/Footer1.jsx +448 -0
  51. package/srcold/TabexComponents/Footer/Footer2/Footer2.jsx +383 -0
  52. package/srcold/TabexComponents/Footer/Footer3/Footer3.jsx +394 -0
  53. package/srcold/TabexComponents/Footer/Footer4/Footer4.jsx +699 -0
  54. package/srcold/TabexComponents/Footer/Footer5/Footer5.jsx +523 -0
  55. package/srcold/TabexComponents/Footer/Footer6/Footer6.jsx +301 -0
  56. package/srcold/TabexComponents/Footer/Footer7/Footer7.jsx +415 -0
  57. package/srcold/TabexComponents/Footer/Footer8/Footer8.jsx +454 -0
  58. package/srcold/TabexComponents/Footer/FooterWithThreeColumns/FooterWithThreeColumns.jsx +329 -0
  59. package/srcold/TabexComponents/Footer/Simplefooter/Simplefooter.jsx +274 -0
  60. package/srcold/TabexComponents/Generalfiles/images/egyptflag.png +0 -0
  61. package/srcold/TabexComponents/Generalfiles/images/noimage.png +0 -0
  62. package/srcold/TabexComponents/Generalfiles/images/payment/cod.png +0 -0
  63. package/srcold/TabexComponents/Generalfiles/images/payment/fawry.png +0 -0
  64. package/srcold/TabexComponents/Generalfiles/images/payment/payment.png +0 -0
  65. package/srcold/TabexComponents/Generalfiles/images/payment/paymob.png +0 -0
  66. package/srcold/TabexComponents/Generalfiles/images/payment/paypal.png +0 -0
  67. package/srcold/TabexComponents/Generalfiles/images/payment/visa.png +0 -0
  68. package/srcold/TabexComponents/Generalfiles/images/shoppingcart.png +0 -0
  69. package/srcold/TabexComponents/Generalfiles/images/tabexlogo.png +0 -0
  70. package/srcold/TabexComponents/Generalfiles/images/unknownmaleuser.png +0 -0
  71. package/srcold/TabexComponents/Generalfiles/images/usflag.png +0 -0
  72. package/srcold/TabexComponents/Generalfiles/images/whatsapp.png +0 -0
  73. package/srcold/TabexComponents/Headers/CTAHeader/CTAHeader.jsx +880 -0
  74. package/srcold/TabexComponents/Headers/CategoryFeaturingHeader/CategoryFeaturingHeader.jsx +870 -0
  75. package/srcold/TabexComponents/Headers/ClassicHeader/ClassicHeader.jsx +688 -0
  76. package/srcold/TabexComponents/Headers/Gotoheader/Gotoheader.jsx +720 -0
  77. package/srcold/TabexComponents/Headers/Header4/Header4.jsx +621 -0
  78. package/srcold/TabexComponents/Headers/Header8/Header8.jsx +824 -0
  79. package/srcold/TabexComponents/Headers/HeaderRestaurant/HeaderRestaurant.jsx +730 -0
  80. package/srcold/TabexComponents/Headers/HeaderWithAdSlider/HeaderWithAdSlider.jsx +762 -0
  81. package/srcold/TabexComponents/Headers/HeaderWithSearchOnCenter/HeaderWithSearchOnCenter.jsx +706 -0
  82. package/srcold/TabexComponents/Headers/HeaderWithUtilityBar/HeaderWithUtilityBar.jsx +900 -0
  83. package/srcold/TabexComponents/Headers/Header_threesectionslogocentered/Header_threesectionslogocentered.jsx +841 -0
  84. package/srcold/TabexComponents/Headers/Headerresponsive/Headerresponsive.jsx +988 -0
  85. package/srcold/TabexComponents/Headers/Headerresponsive/HeaderresponsiveNew.jsx +1081 -0
  86. package/srcold/TabexComponents/Headers/Headerresponsive/HeaderresponsiveOriginal.jsx +988 -0
  87. package/srcold/TabexComponents/Headers/HeaderwithContactinfo/HeaderwithContactinfo.jsx +917 -0
  88. package/srcold/TabexComponents/Headers/Modernheader/Modernheader.jsx +693 -0
  89. package/srcold/TabexComponents/Headers/SearchFocusedHeader/SearchFocusedHeader.jsx +952 -0
  90. package/srcold/TabexComponents/Headers/Simpleheader/Simpleheader.jsx +636 -0
  91. package/srcold/TabexComponents/Headers/StylishHeader/StylishHeader.jsx +853 -0
  92. package/srcold/TabexComponents/Headers/Subheader/Subheader copy.jsx +373 -0
  93. package/srcold/TabexComponents/Headers/Subheader/Subheader.jsx +515 -0
  94. package/srcold/TabexComponents/Headers/Subheader/SubheaderDropdown.jsx +190 -0
  95. package/srcold/TabexComponents/Headers/Subheader/SubheaderOriginal.jsx +483 -0
  96. package/srcold/TabexComponents/Headers/ThreeTieredHeader/ThreeTieredHeader.jsx +1005 -0
  97. package/srcold/TabexComponents/Headers/TwoTieredHeader/TwoTieredHeader.jsx +1020 -0
  98. package/srcold/TabexComponents/Headers/TwoTieredWithCenteredLogoHeader/TwoTieredWithCenteredLogoHeader .jsx +843 -0
  99. package/srcold/TabexComponents/Sections/BackgroundImages/BacgroundThreeImageWithCategories/BacgroundThreeImageWithCategories.jsx +448 -0
  100. package/srcold/TabexComponents/Sections/BackgroundImages/BackgroundFiveImageStructure/BackgroundFiveImageStructure.jsx +346 -0
  101. package/srcold/TabexComponents/Sections/BackgroundImages/BackgroundImageWithTopContent/BackgroundImageWithTopContent.jsx +304 -0
  102. package/srcold/TabexComponents/Sections/BackgroundImages/BackgroundSectionWithServicesCards/BackgroundSectionWithServicesCards.jsx +301 -0
  103. package/srcold/TabexComponents/Sections/BackgroundImages/Backgroundimage1/Backgroundimage1.jsx +312 -0
  104. package/srcold/TabexComponents/Sections/BackgroundImages/Backgroundimage_with_toppill/Backgroundimage_with_toppill.jsx +271 -0
  105. package/srcold/TabexComponents/Sections/BackgroundImages/BackgroundimageandTextsection/BackgroundimageandTextsection.jsx +174 -0
  106. package/srcold/TabexComponents/Sections/BackgroundImages/Bgimagewithsearchbar/Bgimagewithsearchbar.jsx +200 -0
  107. package/srcold/TabexComponents/Sections/BackgroundImages/FullVideoSection/FullVideoSection.jsx +263 -0
  108. package/srcold/TabexComponents/Sections/BackgroundImages/Section_with_rightbgcont/Section_with_rightbgcont.jsx +143 -0
  109. package/srcold/TabexComponents/Sections/BackgroundImages/TextSectionConnectToWA/TextSectionConnectToWA.jsx +248 -0
  110. package/srcold/TabexComponents/Sections/BackgroundImages/Threebgimages/Threebgimages.jsx +295 -0
  111. package/srcold/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages copy.jsx +394 -0
  112. package/srcold/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages.jsx +406 -0
  113. package/srcold/TabexComponents/Sections/BackgroundImages/VideosSection/VideosSection.jsx +246 -0
  114. package/srcold/TabexComponents/Sections/Cards/CardsSection/CardsSection.jsx +1220 -0
  115. package/srcold/TabexComponents/Sections/Cards/CardsSection2/CardsSection2.jsx +480 -0
  116. package/srcold/TabexComponents/Sections/Cards/CardsSectionwithfilter/CardsSectionwithfilter.jsx +718 -0
  117. package/srcold/TabexComponents/Sections/Cards/ElegantCategoriesCardSection/ElegantCategoriesCardSection.jsx +406 -0
  118. package/srcold/TabexComponents/Sections/Cards/ModernCardsSection/ModernCardsSection.jsx +652 -0
  119. package/srcold/TabexComponents/Sections/Cards/RandomlyStructuredCollectionCards/RandomlyStructuredCollectionCards.jsx +635 -0
  120. package/srcold/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.jsx +495 -0
  121. package/srcold/TabexComponents/Sections/Cards/UsersCardsSection/UsersCardsSection.jsx +383 -0
  122. package/srcold/TabexComponents/Sections/Slideshow/AboutSection/AboutSection.jsx +250 -0
  123. package/srcold/TabexComponents/Sections/Slideshow/Backgroundimage_with_topcircle/Backgroundimage_with_topcircle.jsx +160 -0
  124. package/srcold/TabexComponents/Sections/Slideshow/ContactUsSection/ContactUsSection.jsx +256 -0
  125. package/srcold/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection.jsx +329 -0
  126. package/srcold/TabexComponents/Sections/Slideshow/HorizontalContactUsSection/HorizontalContactUsSection.jsx +266 -0
  127. package/srcold/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx +371 -0
  128. package/srcold/TabexComponents/Sections/Slideshow/Image_with_rightwords/Image_with_rightwords.jsx +140 -0
  129. package/srcold/TabexComponents/Sections/Slideshow/ServiceSectionWithImage/ServiceSectionWithImage.jsx +374 -0
  130. package/srcold/TabexComponents/Sections/Slideshow/Servicesection/Servicesection.jsx +339 -0
  131. package/srcold/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards.jsx +303 -0
  132. package/srcold/TabexComponents/Sections/Slideshow/Slideshow_with_rotatedsquare/Slideshow_with_rotatedsquare.jsx +224 -0
  133. package/srcold/TabexComponents/Sections/Slideshow/Slideshow_with_squarebg/Slideshow_with_squarebg.jsx +147 -0
  134. package/srcold/TabexComponents/Sections/Slideshow/Slideshowdifferentanimations/Slideshowdifferentanimations.jsx +139 -0
  135. package/srcold/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade copy.jsx +634 -0
  136. package/srcold/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade.jsx +324 -0
  137. package/srcold/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide copy.jsx +525 -0
  138. package/srcold/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide.jsx +569 -0
  139. package/srcold/TabexComponents/Sections/Slideshow/Slideshowslide/SlideshowslideOriginal.jsx +475 -0
  140. package/srcold/TabexComponents/Sections/Slideshow/Slideshowzoom/Arrow.js +91 -0
  141. package/srcold/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom.jsx +369 -0
  142. package/srcold/TabexComponents/Sections/Slideshow/TwoWayServiceSectionWithImage/TwoWayServiceSectionWithImage.jsx +392 -0
  143. package/srcold/TabexComponents/StaticPages/AccountInformation/AccountInformation.jsx +213 -0
  144. package/srcold/TabexComponents/StaticPages/CartSlider/CartSlider.jsx +467 -0
  145. package/srcold/TabexComponents/StaticPages/Categoriesdropdown/Categoriesdropdown.jsx +181 -0
  146. package/srcold/TabexComponents/StaticPages/Checkout/Checkout.jsx +1280 -0
  147. package/srcold/TabexComponents/StaticPages/Filter/Filter copy.jsx +1392 -0
  148. package/srcold/TabexComponents/StaticPages/Filter/Filter.jsx +1399 -0
  149. package/srcold/TabexComponents/StaticPages/Filter/FilterOriginal.jsx +1132 -0
  150. package/srcold/TabexComponents/StaticPages/InnerGroups/InnerGroups.jsx +60 -0
  151. package/srcold/TabexComponents/StaticPages/Login/FacebookLoginButton.jsx +50 -0
  152. package/srcold/TabexComponents/StaticPages/Login/GoogleLoginButton.jsx +35 -0
  153. package/srcold/TabexComponents/StaticPages/Login/Login.jsx +469 -0
  154. package/srcold/TabexComponents/StaticPages/OrderSuccess/OrderSuccess.jsx +143 -0
  155. package/srcold/TabexComponents/StaticPages/Ordershistory/Ordershistory.jsx +1329 -0
  156. package/srcold/TabexComponents/StaticPages/Policies/Policies.jsx +306 -0
  157. package/srcold/TabexComponents/StaticPages/Productinfo/Product_itemtype.jsx +1334 -0
  158. package/srcold/TabexComponents/StaticPages/Productinfo/Productinfo.jsx +715 -0
  159. package/srcold/TabexComponents/StaticPages/Productinfo/Service_itemtype copy.jsx +361 -0
  160. package/srcold/TabexComponents/StaticPages/Productinfo/Service_itemtype.jsx +361 -0
  161. package/srcold/TabexComponents/StaticPages/Productinfo/Serviceinfotabs.jsx +501 -0
  162. package/srcold/TabexComponents/StaticPages/Productinfo/staticroutersidenav.module.css +145 -0
  163. package/srcold/TabexComponents/StaticPages/Searchlist/Searchlist.jsx +227 -0
  164. package/srcold/TabexComponents/StaticPages/Signup/CustomerInformationForm.jsx +832 -0
  165. package/srcold/TabexComponents/StaticPages/Signup/Signup.jsx +154 -0
  166. package/srcold/TabexComponents/StaticPages/Staticpagesrouter/Staticpagesrouter.jsx +280 -0
  167. package/srcold/TabexComponents/StaticPages/Viewcart/Viewcart.jsx +671 -0
  168. package/srcold/TabexComponents/StaticPages/Wishlist/Wishlist.jsx +538 -0
  169. package/srcold/assets/images/appstore.png +0 -0
  170. package/srcold/assets/images/cod.png +0 -0
  171. package/srcold/assets/images/egyptflag.png +0 -0
  172. package/srcold/assets/images/fawry.png +0 -0
  173. package/srcold/assets/images/googleplay.png +0 -0
  174. package/srcold/assets/images/ksa.png +0 -0
  175. package/srcold/assets/images/mastercard.png +0 -0
  176. package/srcold/assets/images/payment.png +0 -0
  177. package/srcold/assets/images/paymob.png +0 -0
  178. package/srcold/assets/images/paypal.png +0 -0
  179. package/srcold/assets/images/shoppingcart.png +0 -0
  180. package/srcold/assets/images/usflag.png +0 -0
  181. package/srcold/assets/images/visa.png +0 -0
  182. package/srcold/assets/images/whatsapp.png +0 -0
  183. package/srcold/button.jsx +40 -0
  184. package/srcold/index.jsx +283 -0
  185. package/srcold/styles/Home.module.css +129 -0
  186. package/srcold/styles/cards/Categorcycard_fullimage.module.css +10 -0
  187. package/srcold/styles/cards/Categorycard_slidebgscaled.module.css +73 -0
  188. package/srcold/styles/cards/Categorycard_withshapes.module.css +189 -0
  189. package/srcold/styles/cards/ModernCardWithQuantityButton.module.css +30 -0
  190. package/srcold/styles/cards/Productcard6.module.css +9 -0
  191. package/srcold/styles/cards/Productccard_with_zoominonhover.module.css +51 -0
  192. package/srcold/styles/cards/Prouductcard_with_zoomhover.module.css +61 -0
  193. package/srcold/styles/cards/UserCardWithSocialMediaOnHover.module.css +65 -0
  194. package/srcold/styles/cards/categorycard.module.css +85 -0
  195. package/srcold/styles/cards/categorycard3.module.css +50 -0
  196. package/srcold/styles/cards/categorycardwithtext.module.css +40 -0
  197. package/srcold/styles/cards/productcard_animatedbuttons.module.css +130 -0
  198. package/srcold/styles/cards/productcard_with_textonhover.module.css +18 -0
  199. package/srcold/styles/cards/productcard_withtextonimage.module.css +0 -0
  200. package/srcold/styles/cards/productccard_with_imageontopleft.module.css +85 -0
  201. package/srcold/styles/general/bootstrap.css +4727 -0
  202. package/srcold/styles/general/dropdown.css +206 -0
  203. package/srcold/styles/general/editorbardropdown.module.css +94 -0
  204. package/srcold/styles/general/filter.module.css +108 -0
  205. package/srcold/styles/general/form.module.css +273 -0
  206. package/srcold/styles/general/general.module.css +872 -0
  207. package/srcold/styles/general/image-gallery.css +531 -0
  208. package/srcold/styles/general/react-accessible-accordion.module.css +52 -0
  209. package/srcold/styles/general/react-phone-input-2.module.css +927 -0
  210. package/srcold/styles/general/scrollbtn.module.css +22 -0
  211. package/srcold/styles/general/slick.module.css +166 -0
  212. package/srcold/styles/general/tabs.module.css +119 -0
  213. package/srcold/styles/general/workplaceeditor.module.css +328 -0
  214. package/srcold/styles/globals.css +26 -0
  215. package/srcold/styles/headers/CTAHeader.module.css +40 -0
  216. package/srcold/styles/headers/CategoryFeaturingHeader.module.css +61 -0
  217. package/srcold/styles/headers/Gotoheader.module.css +81 -0
  218. package/srcold/styles/headers/Header7.module.css +50 -0
  219. package/srcold/styles/headers/HeaderWithAdSlider.module.css +86 -0
  220. package/srcold/styles/headers/HeaderWithSearchOnCenter.module.css +101 -0
  221. package/srcold/styles/headers/HeaderWithUtilityBar.module.css +46 -0
  222. package/srcold/styles/headers/Header_threesectionslogocentered.module.css +84 -0
  223. package/srcold/styles/headers/NewHeader.module.css +101 -0
  224. package/srcold/styles/headers/SearchFocusedHeader.module.css +62 -0
  225. package/srcold/styles/headers/Sideheader.module.css +108 -0
  226. package/srcold/styles/headers/Simpleheader.module.css +102 -0
  227. package/srcold/styles/headers/classicheader.module.css +16 -0
  228. package/srcold/styles/headers/classicheaderstyles.module.css +9 -0
  229. package/srcold/styles/headers/dropdown.css +0 -0
  230. package/srcold/styles/headers/header4.module.css +175 -0
  231. package/srcold/styles/headers/header5.module.css +30 -0
  232. package/srcold/styles/headers/header_contactinfo.module.css +53 -0
  233. package/srcold/styles/headers/headerresturant.module.css +89 -0
  234. package/srcold/styles/headers/modernheader.module.css +72 -0
  235. package/srcold/styles/headers/stylishheader.module.css +24 -0
  236. package/srcold/styles/headers/subheader.module.css +114 -0
  237. package/srcold/styles/headers/threetieredheader.module.css +91 -0
  238. package/srcold/styles/sections/BackgroundImageWithTopContent.css +4 -0
  239. package/srcold/styles/sections/Backgroundimage1.module.css +17 -0
  240. package/srcold/styles/sections/Backgroundimage_with_topcircle.module.css +28 -0
  241. package/srcold/styles/sections/Section_with_rightbgcont.module.css +49 -0
  242. package/srcold/styles/sections/Slideshow_with_rotatedsquare.module.css +35 -0
  243. package/srcold/styles/sections/Slideshow_with_squarebg.module.css +39 -0
  244. package/srcold/styles/staticpages/accordion.module.css +9 -0
  245. package/srcold/styles/staticpages/cart.module.css +108 -0
  246. package/srcold/styles/staticpages/dropdown.css +196 -0
  247. package/srcold/styles/staticpages/filter.module.css +139 -0
  248. package/srcold/styles/staticpages/image-gallery.css +481 -0
  249. package/srcold/styles/staticpages/login.module.css +113 -0
  250. package/srcold/styles/staticpages/productinfo.module.css +54 -0
  251. package/srcold/styles/staticpages/shop.module.css +191 -0
  252. package/srcold/styles/staticpages/signup.module.css +206 -0
  253. package/srcold/styles/staticpages/staticroutersidenav.module.css +129 -0
  254. package/srcold/styles/staticpages/viewcart.module.css +129 -0
  255. package/srcold/styles/staticpages/wishlist.module.css +29 -0
@@ -0,0 +1,263 @@
1
+ import React, { useEffect, useState, useContext } from 'react';
2
+ import { css } from 'glamor';
3
+ import { IKImage } from 'imagekitio-react';
4
+ import { IKpublicKey, IKurlEndpoint } from '../../../../../Env';
5
+ import ReactPlayer from 'react-player';
6
+
7
+ const FullVideoSection = (props) => {
8
+ const [sectionproperties, setsectionproperties] = useState('');
9
+ const [Videosarrayofobjs, setVideosarrayofobjs] = useState([]);
10
+ const lang = props.actions.lang;
11
+ const langdetect = props.actions.langdetect;
12
+ const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
13
+ const routingcountext = props.actions.routingcountext;
14
+ const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
15
+ const actions = props.actions;
16
+
17
+ useEffect(() => {
18
+ var secpropobj = {};
19
+ StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
20
+ if (sectionitem.sectionid == props.sectionidprops) {
21
+ sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
22
+ secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
23
+ });
24
+ }
25
+ });
26
+ setsectionproperties({ ...secpropobj });
27
+ }, [StatePagePropertiesContext]);
28
+ useEffect(() => {
29
+ if (sectionproperties.length != 0 && sectionproperties.Videosarrayofobjs != undefined) {
30
+ var Videosarrayofobjsparsed = JSON.parse(sectionproperties.Videosarrayofobjs);
31
+ if (Array.isArray(Videosarrayofobjsparsed)) {
32
+ var temparr = [...Videosarrayofobjsparsed];
33
+ temparr.forEach(function (item) {
34
+ item.linkclicked = false;
35
+ });
36
+ setVideosarrayofobjs([...Videosarrayofobjsparsed]);
37
+ }
38
+ }
39
+ }, [sectionproperties]);
40
+ const bgcssstyles = {
41
+ text1styles: css({
42
+ color: sectionproperties.slideshowText1ContentColor,
43
+ fontSize: sectionproperties.slideshowText1ContentFontSize + 'px',
44
+ fontWeight: sectionproperties.slideshowText1ContentFontWeight,
45
+ textAlign: sectionproperties.text1centered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right',
46
+ marginBottom: sectionproperties.slideshowText1Content_marginBottom + 'px',
47
+ }),
48
+ text2styles: css({
49
+ color: sectionproperties.slideshowText2ContentColor,
50
+ marginBottom: sectionproperties.slideshowText2Content_marginBottom + 'px',
51
+ fontSize: sectionproperties.slideshowText2ContentFontSize + 'px',
52
+ fontWeight: sectionproperties.slideshowText2ContentFontWeight,
53
+ textAlign: sectionproperties.text2centered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right',
54
+ }),
55
+ };
56
+ const SectionTitle = () => {
57
+ return (
58
+ <div
59
+ class="d-flex align-items-center justify-content-md-center flex-row pl-md-2 pr-md-2 w-100"
60
+ style={{
61
+ position: 'relative',
62
+ justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : '',
63
+ marginBottom: sectionproperties.sectionTitleMarginBottom + 'px',
64
+ marginTop: sectionproperties.sectionTitleMarginTop + 'px',
65
+ paddingLeft: langdetect == 'en' ? sectionproperties.sectionTitleMarginLeft + 'px' : sectionproperties.sectionTitleMarginRight + 'px',
66
+ paddingRight: langdetect == 'en' ? sectionproperties.sectionTitleMarginRight + 'px' : sectionproperties.sectionTitleMarginLeft + 'px',
67
+ }}
68
+ >
69
+ <p
70
+ class={
71
+ sectionproperties.sectiontitlefontfamily == 'Pacifico'
72
+ ? ' PacificoFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start justify-content-md-center text-md-center '
73
+ : sectionproperties.sectiontitlefontfamily == 'Playfair'
74
+ ? ' PlayfairFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start justify-content-md-center text-md-center '
75
+ : sectionproperties.sectiontitlefontfamily == 'Great Vibes'
76
+ ? ' GreatvibesFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start justify-content-md-center text-md-center '
77
+ : sectionproperties.sectiontitlefontfamily == 'Quicksand'
78
+ ? ' QuicksandFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start justify-content-md-center text-md-center '
79
+ : sectionproperties.sectiontitlefontfamily == 'Satisfy'
80
+ ? ' SatisfyFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start justify-content-md-center text-md-center '
81
+ : ' mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start justify-content-md-center text-md-center '
82
+ }
83
+ style={{
84
+ color: sectionproperties.sectionTitleColor,
85
+ fontWeight: sectionproperties.sectionTitleFontWeight,
86
+ textAlign: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : '',
87
+ }}
88
+ >
89
+ {langdetect == 'en' ? sectionproperties.sectionTitleContent : sectionproperties.sectionTitleContent_ar}
90
+ </p>
91
+ </div>
92
+ );
93
+ };
94
+ const Description = () => {
95
+ return (
96
+ <p
97
+ class={
98
+ sectionproperties.descFontFamily == 'Pacifico'
99
+ ? ' PacificoFont m-0 p-0 wordbreak text-md-center '
100
+ : sectionproperties.descFontFamily == 'Playfair'
101
+ ? ' PlayfairFont m-0 p-0 wordbreak '
102
+ : sectionproperties.descFontFamily == 'Great Vibes'
103
+ ? ' GreatvibesFont m-0 p-0 wordbreak text-md-center '
104
+ : sectionproperties.descFontFamily == 'Quicksand'
105
+ ? ' QuicksandFont m-0 p-0 wordbreak text-md-center '
106
+ : ' m-0 p-0 wordbreak '
107
+ }
108
+ style={{
109
+ color: sectionproperties.prodCatColor,
110
+ fontWeight: sectionproperties.prodCatFontWeight,
111
+ textAlign: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : '',
112
+ }}
113
+ >
114
+ {langdetect == 'en' ? sectionproperties.descriptionContentEn : sectionproperties.descriptionContentAr}
115
+ </p>
116
+ );
117
+ };
118
+ const Content = () => {
119
+ return (
120
+ <div class="col-lg-6 p-0">
121
+ {sectionproperties.sectiontitleshow == 'Show' && (
122
+ <div
123
+ class={' col-lg-12 p-0 d-flex d-md-none align-items-center '}
124
+ style={{
125
+ justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : 'start',
126
+ fontSize: sectionproperties.sectionTitleFontSize + 'px',
127
+ }}
128
+ >
129
+ {SectionTitle()}
130
+ </div>
131
+ )}
132
+ {sectionproperties.sectiontitleshow == 'Show' && (
133
+ <div
134
+ class={' col-lg-12 p-0 d-none d-md-flex align-items-center '}
135
+ style={{
136
+ justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : 'start',
137
+ fontSize: sectionproperties.sectionTitleFontSizeresp + 'px',
138
+ }}
139
+ >
140
+ {SectionTitle()}
141
+ </div>
142
+ )}
143
+ {sectionproperties.prodCatShow == 'Show' && (
144
+ <div
145
+ class={' col-lg-12 col-md-12 col-sm-12 d-flex align-items-center justify-content-md-center d-md-none pl-md-2 pr-md-2 '}
146
+ style={{
147
+ justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : '',
148
+ marginBottom: sectionproperties.descriptionMarginBottom + 'px',
149
+ fontSize: sectionproperties.prodCatFontSize + 'px',
150
+ paddingLeft: langdetect == 'en' ? sectionproperties.description_marginLeft + 'px' : sectionproperties.description_marginRight + 'px',
151
+ paddingRight: langdetect == 'en' ? sectionproperties.description_marginRight + 'px' : sectionproperties.description_marginLeft + 'px',
152
+ }}
153
+ >
154
+ {Description()}
155
+ </div>
156
+ )}
157
+ {sectionproperties.prodCatShow == 'Show' && (
158
+ <div
159
+ class={' col-lg-12 col-md-12 col-sm-12 d-none align-items-center justify-content-md-center d-md-flex pl-md-2 pr-md-2 '}
160
+ style={{
161
+ justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : '',
162
+ marginBottom: sectionproperties.descriptionMarginBottom + 'px',
163
+ fontSize: sectionproperties.prodCatFontSizeResp + 'px',
164
+ paddingLeft: langdetect == 'en' ? sectionproperties.description_marginLeft + 'px' : sectionproperties.description_marginRight + 'px',
165
+ paddingRight: langdetect == 'en' ? sectionproperties.description_marginRight + 'px' : sectionproperties.description_marginLeft + 'px',
166
+ }}
167
+ >
168
+ {Description()}
169
+ </div>
170
+ )}
171
+ <div class="col-lg-12 p-0 d-flex justify-content-md-center">
172
+ <p
173
+ class="pb-0 text-md-center pl-sm-2 pr-sm-2"
174
+ style={{
175
+ textAlign: sectionproperties.text2centered == 'Centered' ? 'center' : 'start',
176
+ color: sectionproperties.slideshowText2ContentColor,
177
+ fontSize: sectionproperties.slideshowText2ContentFontSize + 'px',
178
+ fontWeight: sectionproperties.slideshowText2ContentFontWeight,
179
+ paddingLeft: langdetect == 'en' ? sectionproperties.slideshowText2Content_marginLeft + 'px' : sectionproperties.slideshowText2Content_marginRight + 'px',
180
+ paddingRight: langdetect == 'en' ? sectionproperties.slideshowText2Content_marginRight + 'px' : sectionproperties.slideshowText2Content_marginLeft + 'px',
181
+ }}
182
+ dangerouslySetInnerHTML={{ __html: langdetect == 'en' ? sectionproperties.contenteditor : sectionproperties.text2editortextar }}
183
+ ></p>
184
+ </div>
185
+ </div>
186
+ );
187
+ };
188
+ const Video = () => {
189
+ return (
190
+ <div className={'col-lg-6 col-md-12 col-sm-12 p-0 d-flex align-items-stretch '} style={{ marginBottom: sectionproperties.image_mb + 'px' }}>
191
+ {Object.keys(Videosarrayofobjs).length != 0 && (
192
+ <div className="row ml-0 mr-0 d-flex w-100">
193
+ <div
194
+ className={'col-lg-12 p-0 d-md-flex w-100 mt-auto'}
195
+ style={{
196
+ height: sectionproperties.bgcovercontainresponsive == 'Contain' ? 'auto' : sectionproperties.image_height + 'px',
197
+ }}
198
+ >
199
+ {Videosarrayofobjs[0].linkclicked == true && <ReactPlayer url={Videosarrayofobjs[0].url} height={sectionproperties.image_height + 'px'} width={'100%'} />}
200
+ {Videosarrayofobjs[0].linkclicked == false && (
201
+ <button
202
+ onClick={() => {
203
+ var temparr = [...Videosarrayofobjs];
204
+ temparr[0].linkclicked = true;
205
+ setVideosarrayofobjs([...temparr]);
206
+ }}
207
+ class="w-100 h-100"
208
+ >
209
+ <IKImage
210
+ urlEndpoint={IKurlEndpoint}
211
+ publicKey={IKpublicKey}
212
+ path={Videosarrayofobjs.length != 0 ? Videosarrayofobjs[0].image : ''}
213
+ className={sectionproperties.bgcovercontainresponsive == 'Contain' ? 'objectFit-md-contain' : ''}
214
+ style={{
215
+ height: '100%',
216
+ width: '100%',
217
+ objectFit: sectionproperties.bgcovercontain,
218
+ }}
219
+ />
220
+ </button>
221
+ )}
222
+ </div>
223
+ </div>
224
+ )}
225
+ </div>
226
+ );
227
+ };
228
+ return (
229
+ <div
230
+ className="row ml-0 mr-0 w-100 pl-md-3 pr-md-3 pl-sm-2 pr-sm-2"
231
+ style={{
232
+ paddingTop: sectionproperties.marginTop + 'px',
233
+ paddingBottom: sectionproperties.marginBottom + 'px',
234
+ paddingLeft: langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : sectionproperties.paddingRight + 'px',
235
+ paddingRight: langdetect == 'en' ? sectionproperties.paddingRight + 'px' : sectionproperties.paddingLeft + 'px',
236
+ background: sectionproperties.backgroundColor,
237
+ }}
238
+ >
239
+ {sectionproperties.sectionstyle == 'Image on right' && (
240
+ <div class="col-lg-12 p-0">
241
+ <div class="row m-0 w-100">
242
+ {Content()} {Video()}
243
+ </div>
244
+ </div>
245
+ )}
246
+ {sectionproperties.sectionstyle != 'Image on right' && (
247
+ <div class="col-lg-12 p-0 d-flex d-md-none">
248
+ <div class="row m-0 w-100">
249
+ {Video()} {Content()}
250
+ </div>
251
+ </div>
252
+ )}
253
+ {sectionproperties.sectionstyle != 'Image on right' && (
254
+ <div class="col-lg-12 p-0 d-none d-md-flex">
255
+ <div class="row m-0 w-100">
256
+ {Content()} {Video()}
257
+ </div>
258
+ </div>
259
+ )}
260
+ </div>
261
+ );
262
+ };
263
+ export default FullVideoSection;
@@ -0,0 +1,143 @@
1
+ import React, { useEffect, useState, useContext } from 'react';
2
+ import { css } from 'glamor';
3
+ import { serverbaselink } from '../../../../../Env';
4
+
5
+ const Section_with_rightbgcont = (props) => {
6
+ const [sectionproperties, setsectionproperties] = useState('');
7
+ const [cardsarray, setcardsarray] = useState([]);
8
+ const lang = props.actions.lang;
9
+ const langdetect = props.actions.langdetect;
10
+ const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
11
+ const routingcountext = props.actions.routingcountext;
12
+ const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
13
+ useEffect(() => {
14
+ var secpropobj = {};
15
+ StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
16
+ if (sectionitem.sectionid == props.sectionidprops) {
17
+ sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
18
+ secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
19
+ });
20
+ }
21
+ });
22
+ setsectionproperties({ ...secpropobj });
23
+ }, [StatePagePropertiesContext]);
24
+ useEffect(() => {
25
+ if (sectionproperties.length != 0) {
26
+ if (sectionproperties.bgsection_imagearrayofobjs != null) {
27
+ var bgsection_imagearrayofobjsparsed = JSON.parse(sectionproperties.bgsection_imagearrayofobjs);
28
+ if (Array.isArray(bgsection_imagearrayofobjsparsed)) {
29
+ setcardsarray([...bgsection_imagearrayofobjsparsed]);
30
+ }
31
+ }
32
+ }
33
+ }, [sectionproperties]);
34
+ const bg1_cssstyles = {
35
+ general_btn: css({
36
+ height: sectionproperties.generalbtn_height + 'px',
37
+ width: sectionproperties.generalbtn_width + 'px',
38
+ background: sectionproperties.generalbtn_bgColor,
39
+ color: sectionproperties.generalbtn_textColor,
40
+ borderTopLeftRadius: sectionproperties.generalbtn_bordertopleftradius + 'px',
41
+ borderTopRightRadius: sectionproperties.generalbtn_bordertoprightradius + 'px',
42
+ borderBottomLeftRadius: sectionproperties.generalbtn_borderbottomleftradius + 'px',
43
+ borderBottomRightRadius: sectionproperties.generalbtn_borderbottomrightradius + 'px',
44
+ fontSize: sectionproperties.generalbtn_fontsize + 'px',
45
+ lineHeight: sectionproperties.generalbtn_fontsize + 'px',
46
+ textTransform: sectionproperties.generalbtn_texttransform,
47
+ fontWeight: sectionproperties.generalbtn_fontweight,
48
+ marginLeft: sectionproperties.generalbtn_marginLeft + 'px',
49
+ marginRight: sectionproperties.generalbtn_marginRight + 'px',
50
+ marginBottom: sectionproperties.generalbtn_marginBottom + 'px',
51
+ marginTop: sectionproperties.generalbtn_marginTop + 'px',
52
+ transition: '.3s',
53
+ ':hover': {
54
+ background: sectionproperties.generalbtn_bgColoronhover,
55
+ color: sectionproperties.generalbtn_textColoronhover,
56
+ },
57
+ }),
58
+ text1styles: css({
59
+ fontSize: sectionproperties.slideshowText1ContentFontSize + 'px',
60
+ lineHeight: sectionproperties.slideshowText1ContentFontSize + 'px',
61
+ color: sectionproperties.slideshowText1ContentColor,
62
+ fontWeight: sectionproperties.slideshowText1ContentFontWeight,
63
+ textTransform: sectionproperties.slideshowText1ContentTextTransform,
64
+ marginLeft: sectionproperties.slideshowText1Content_marginLeft + 'px',
65
+ marginRight: sectionproperties.slideshowText1Content_marginRight + 'px',
66
+ marginBottom: sectionproperties.slideshowText1Content_marginBottom + 'px',
67
+ marginTop: sectionproperties.slideshowText1Content_marginTop + 'px',
68
+ ':after': {
69
+ display: 'block',
70
+ content: 's',
71
+ fontSize: '0',
72
+ width: sectionproperties.slideshowText1_lineafterwidth + '%',
73
+ height: '7px',
74
+ background: sectionproperties.slideshowText1_showlineafter == 'Show' ? sectionproperties.slideshowText1ContentColor : 'transparent',
75
+ position: 'absolute',
76
+ bottom: 0,
77
+ left: '10px',
78
+ margin: 'auto',
79
+ borderRadius: '10px',
80
+ },
81
+ }),
82
+ };
83
+ return (
84
+ <div class="row w-100 m-0 mt-sm-3" style={{ position: 'relative', zIndex: 1 }}>
85
+ <div class={`${sectionstyles.homestyling}` + ' d-md-none '} style={{ background: sectionproperties.formRightbgColor }}></div>
86
+ <div class={`${sectionstyles.home1_container} ` + ' w-100 '}>
87
+ <div class="row w-100 m-0 pl-5 pr-5 pl-sm-2 pr-sm-2">
88
+ <div class="col-lg-5 col-md-12 col-sm-12 d-flex justify-content-start align-items-center">
89
+ <div class="row m-0 w-100">
90
+ {sectionproperties.slideshowtext1_show == 'Show' && (
91
+ <div class="col-lg-12 d-md-flex justify-content-md-center align-items-md-center">
92
+ <p class={`${bg1_cssstyles.text1styles} ${sectionstyles.text1styles}` + ' ml-md-0 mr-md-0 font-sm-20 line-height-sm-20 '}>
93
+ {sectionproperties.slideshowtext1_show == 'Show' && sectionproperties.slideshowText1Content}
94
+ </p>
95
+ </div>
96
+ )}
97
+ {sectionproperties.slideshowtext2_show == 'Show' && (
98
+ <div class="col-lg-12 d-md-flex justify-content-md-center align-items-md-center">
99
+ {sectionproperties.slideshowtext2_show == 'Show' && (
100
+ <p
101
+ style={{
102
+ fontSize: sectionproperties.slideshowText2ContentFontSize + 'px',
103
+ color: sectionproperties.slideshowText2ContentColor,
104
+ fontWeight: sectionproperties.slideshowText2ContentFontWeight,
105
+ textTransform: sectionproperties.slideshowText2ContentTextTransform,
106
+ marginLeft: sectionproperties.slideshowText2Content_marginLeft + 'px',
107
+ marginRight: sectionproperties.slideshowText2Content_marginRight + 'px',
108
+ marginBottom: sectionproperties.slideshowText2Content_marginBottom + 'px',
109
+ marginTop: sectionproperties.slideshowText2Content_marginTop + 'px',
110
+ }}
111
+ class="font-sm-20 line-height-sm-20"
112
+ >
113
+ {sectionproperties.slideshowText2Content}
114
+ </p>
115
+ )}
116
+ </div>
117
+ )}
118
+ {sectionproperties.generalbtn_show == 'Show' && (
119
+ <div class="col-lg-12 justify-content-start m-md-0 d-md-flex justify-content-md-center align-items-md-center">
120
+ <button
121
+ class={`${bg1_cssstyles.general_btn}` + ' ml-md-0 mr-md-0 '}
122
+ onClick={() => {
123
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent);
124
+ }}
125
+ >
126
+ {sectionproperties.generalbtn_content}
127
+ </button>
128
+ </div>
129
+ )}
130
+ </div>
131
+ </div>
132
+
133
+ <div class="col-lg-7 col-md-12 col-sm-12 d-flex justify-content-center align-items-center">
134
+ <div class={`${sectionstyles.img_container}`}>
135
+ <img src={cardsarray.length != 0 ? serverbaselink + cardsarray[0].bgsection_image : ''}></img>
136
+ </div>
137
+ </div>
138
+ </div>
139
+ </div>
140
+ </div>
141
+ );
142
+ };
143
+ export default Section_with_rightbgcont;
@@ -0,0 +1,248 @@
1
+ import React, { useEffect, useState } from 'react';
2
+ import { css } from 'glamor';
3
+ import { IKImage } from 'imagekitio-react';
4
+ import { IKpublicKey, IKurlEndpoint } from '../../../../../Env';
5
+
6
+ const TextSectionConnectToWA = (props) => {
7
+ const [sectionproperties, setsectionproperties] = useState('');
8
+ const langdetect = props.actions.langdetect;
9
+ const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
10
+ const authdetailsContext = props.actions.authdetailsContext;
11
+ const [maincontainerarrayofobjs, setmaincontainerarrayofobjs] = useState([]);
12
+ useEffect(() => {
13
+ if (sectionproperties.length != 0 && sectionproperties.maincontainerarrayofobjs != undefined) {
14
+ var maincontainerarrayofobjsparsed = JSON.parse(sectionproperties.maincontainerarrayofobjs);
15
+ if (Array.isArray(maincontainerarrayofobjsparsed)) {
16
+ setmaincontainerarrayofobjs([...maincontainerarrayofobjsparsed]);
17
+ }
18
+ }
19
+ }, [sectionproperties]);
20
+ useEffect(() => {
21
+ var secpropobj = {};
22
+ StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
23
+ if (sectionitem.sectionid == props.sectionidprops) {
24
+ sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
25
+ secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
26
+ });
27
+ }
28
+ });
29
+ setsectionproperties({ ...secpropobj });
30
+ }, [StatePagePropertiesContext]);
31
+ const sectionstyles = {
32
+ sectionTitleStyles: css({
33
+ color: sectionproperties.sectionTitleColor,
34
+ fontWeight: sectionproperties.sectionTitleFontWeight,
35
+ marginBottom: sectionproperties.sectionTitleMarginBottom + 'px',
36
+ }),
37
+ descriptionStyles: css({
38
+ color: sectionproperties.prodCatColor,
39
+ fontWeight: sectionproperties.prodCatFontWeight,
40
+ marginBottom: sectionproperties.descriptionMarginBottom + 'px',
41
+ }),
42
+ btnStyles: css({
43
+ width: sectionproperties.generalbtn_width > 0 ? sectionproperties.generalbtn_width : 'auto',
44
+ paddingLeft: sectionproperties.generalbtn_width > 0 ? 0 : 10,
45
+ paddingRight: sectionproperties.generalbtn_width > 0 ? 0 : 10,
46
+ height: sectionproperties.generalbtn_height + 'px',
47
+ backgroundColor: sectionproperties.slideshow_btn_bg,
48
+ color: sectionproperties.generalbtn_textColor,
49
+ fontSize: sectionproperties.generalbtn_fontsize + 'px',
50
+ borderTopLeftRadius: langdetect == 'en' ? sectionproperties.generalbtn_bordertopleftradius + 'px' : sectionproperties.generalbtn_bordertoprightradius + 'px',
51
+ borderTopRightRadius: langdetect == 'en' ? sectionproperties.generalbtn_bordertoprightradius + 'px' : sectionproperties.generalbtn_bordertopleftradius + 'px',
52
+ borderBottomLeftRadius: langdetect == 'en' ? sectionproperties.generalbtn_borderbottomleftradius + 'px' : sectionproperties.generalbtn_borderbottomrightradius + 'px',
53
+ borderBottomRightRadius: langdetect == 'en' ? sectionproperties.generalbtn_borderbottomrightradius + 'px' : sectionproperties.generalbtn_borderbottomleftradius + 'px',
54
+ transition: '.3s',
55
+ ':hover': {
56
+ backgroundColor: sectionproperties.slideshow_btn_hoverbg,
57
+ color: sectionproperties.generalbtn_textColoronhover,
58
+ },
59
+ }),
60
+ imgcontainer: css({
61
+ ':before': {
62
+ width: '100%',
63
+ height: '100%',
64
+ background: 'rgba(0,0,0,' + sectionproperties.cardimg_opacity + ')',
65
+ zIndex: 1,
66
+ position: 'absolute',
67
+ content: 's',
68
+ fontSize: 0,
69
+ left: 0,
70
+ right: 0,
71
+ top: 0,
72
+ bottom: 0,
73
+ },
74
+ }),
75
+ };
76
+
77
+ return (
78
+ <div
79
+ className="row ml-0 mr-0 w-100 pl-md-2 pr-md-2"
80
+ style={{
81
+ paddingTop: sectionproperties.paddingTop + 'px',
82
+ paddingBottom: sectionproperties.paddingBottom + 'px',
83
+ paddingLeft: langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : sectionproperties.paddingRight + 'px',
84
+ paddingRight: langdetect == 'en' ? sectionproperties.paddingRight + 'px' : sectionproperties.paddingLeft + 'px',
85
+ background: sectionproperties.backgroundColor,
86
+ position: 'relative',
87
+ }}
88
+ >
89
+ {maincontainerarrayofobjs != undefined && maincontainerarrayofobjs?.length != 0 && (
90
+ <div class={sectionstyles.imgcontainer}>
91
+ <IKImage
92
+ urlEndpoint={IKurlEndpoint}
93
+ publicKey={IKpublicKey}
94
+ path={maincontainerarrayofobjs[0]?.back_bgimage}
95
+ style={{
96
+ height: '100%',
97
+ width: '100%',
98
+ objectFit: 'cover',
99
+ margin: 0,
100
+ padding: 0,
101
+ position: 'absolute',
102
+ top: 0,
103
+ bottom: 0,
104
+ right: 0,
105
+ left: 0,
106
+ }}
107
+ />
108
+ </div>
109
+ )}
110
+ <div class="col-lg-12 p-0" style={{ zIndex: 1 }}>
111
+ <div class="row m-0 w-100">
112
+ {sectionproperties.sectiontitleshow == 'Show' && (
113
+ <div
114
+ class="col-lg-12 p-0 d-flex align-items-center"
115
+ style={{
116
+ justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : 'start',
117
+ }}
118
+ >
119
+ <div class={sectionstyles.sectionTitleStyles + ' p-0 d-flex d-sm-none '}>
120
+ <p
121
+ class={
122
+ sectionproperties.sectiontitlefontfamily == 'Pacifico'
123
+ ? ' PacificoFont wordbreak m-0 p-0 '
124
+ : sectionproperties.sectiontitlefontfamily == 'Playfair'
125
+ ? ' PlayfairFont wordbreak m-0 p-0 '
126
+ : sectionproperties.sectiontitlefontfamily == 'Great Vibes'
127
+ ? ' GreatvibesFont wordbreak m-0 p-0 '
128
+ : sectionproperties.sectiontitlefontfamily == 'Quicksand'
129
+ ? ' QuicksandFont wordbreak m-0 p-0 '
130
+ : sectionproperties.sectiontitlefontfamily == 'Satisfy'
131
+ ? ' SatisfyFont wordbreak m-0 p-0 '
132
+ : sectionproperties.sectiontitlefontfamily == 'ASUL'
133
+ ? ' ASUL wordbreak m-0 p-0 '
134
+ : ' wordbreak m-0 p-0 '
135
+ }
136
+ style={{
137
+ fontSize: sectionproperties.sectionTitleFontSize + 'px',
138
+ textAlign: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right',
139
+ }}
140
+ >
141
+ {langdetect == 'en' ? sectionproperties.sectionTitleContent : sectionproperties.sectionTitleContent_ar}
142
+ </p>
143
+ </div>
144
+ <div class={sectionstyles.sectionTitleStyles + ' p-0 d-none d-sm-flex '}>
145
+ <p
146
+ class={
147
+ sectionproperties.sectiontitlefontfamily == 'Pacifico'
148
+ ? ' PacificoFont wordbreak m-0 p-0 '
149
+ : sectionproperties.sectiontitlefontfamily == 'Playfair'
150
+ ? ' PlayfairFont wordbreak m-0 p-0 '
151
+ : sectionproperties.sectiontitlefontfamily == 'Great Vibes'
152
+ ? ' GreatvibesFont wordbreak m-0 p-0 '
153
+ : sectionproperties.sectiontitlefontfamily == 'Quicksand'
154
+ ? ' QuicksandFont wordbreak m-0 p-0 '
155
+ : sectionproperties.sectiontitlefontfamily == 'Satisfy'
156
+ ? ' SatisfyFont wordbreak m-0 p-0 '
157
+ : sectionproperties.sectiontitlefontfamily == 'ASUL'
158
+ ? ' ASUL wordbreak m-0 p-0 '
159
+ : ' wordbreak m-0 p-0 '
160
+ }
161
+ style={{
162
+ fontSize: sectionproperties.sectionTitleFontSizeresp + 'px',
163
+ textAlign: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right',
164
+ }}
165
+ >
166
+ {langdetect == 'en' ? sectionproperties.sectionTitleContent : sectionproperties.sectionTitleContent_ar}
167
+ </p>
168
+ </div>
169
+ </div>
170
+ )}
171
+ {sectionproperties.prodCatShow == 'Show' && (
172
+ <div
173
+ class="col-lg-12 p-0 d-flex align-items-center"
174
+ style={{
175
+ justifyContent: sectionproperties.descriptionCentered == 'Centered' ? 'center' : 'start',
176
+ }}
177
+ >
178
+ <div class={sectionstyles.descriptionStyles + ' p-0 d-flex d-sm-none '}>
179
+ <p
180
+ class={
181
+ sectionproperties.descFontFamily == 'Pacifico'
182
+ ? ' PacificoFont m-0 p-0 wordbreak '
183
+ : sectionproperties.descFontFamily == 'Playfair'
184
+ ? ' PlayfairFont m-0 p-0 wordbreak '
185
+ : sectionproperties.descFontFamily == 'Great Vibes'
186
+ ? ' GreatvibesFont m-0 p-0 wordbreak '
187
+ : sectionproperties.descFontFamily == 'Quicksand'
188
+ ? ' QuicksandFont m-0 p-0 wordbreak'
189
+ : sectionproperties.descFontFamily == 'ASUL'
190
+ ? ' ASUL m-0 p-0 wordbreak '
191
+ : ' m-0 p-0 wordbreak '
192
+ }
193
+ style={{
194
+ fontSize: sectionproperties.prodCatFontSize + 'px',
195
+ textAlign: sectionproperties.descriptionCentered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right',
196
+ }}
197
+ >
198
+ {langdetect == 'en' ? sectionproperties.descriptionContentEn : sectionproperties.descriptionContentAr}
199
+ </p>
200
+ </div>
201
+ <div class={sectionstyles.descriptionStyles + ' p-0 d-none d-sm-flex '}>
202
+ <p
203
+ class={
204
+ sectionproperties.descFontFamily == 'Pacifico'
205
+ ? ' PacificoFont m-0 p-0 wordbreak '
206
+ : sectionproperties.descFontFamily == 'Playfair'
207
+ ? ' PlayfairFont m-0 p-0 wordbreak '
208
+ : sectionproperties.descFontFamily == 'Great Vibes'
209
+ ? ' GreatvibesFont m-0 p-0 wordbreak '
210
+ : sectionproperties.descFontFamily == 'Quicksand'
211
+ ? ' QuicksandFont m-0 p-0 wordbreak'
212
+ : sectionproperties.descFontFamily == 'ASUL'
213
+ ? ' ASUL m-0 p-0 wordbreak '
214
+ : ' m-0 p-0 wordbreak '
215
+ }
216
+ style={{
217
+ fontSize: sectionproperties.prodCatFontSizeResp + 'px',
218
+ textAlign: sectionproperties.descriptionCentered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right',
219
+ }}
220
+ >
221
+ {langdetect == 'en' ? sectionproperties.descriptionContentEn : sectionproperties.descriptionContentAr}
222
+ </p>
223
+ </div>
224
+ </div>
225
+ )}
226
+ <div
227
+ class="col-lg-12 p-0 d-flex align-items-center"
228
+ style={{
229
+ justifyContent: sectionproperties.descriptionCentered == 'Centered' ? 'center' : 'start',
230
+ }}
231
+ >
232
+ <button
233
+ class={sectionstyles.btnStyles}
234
+ onClick={() => {
235
+ if (authdetailsContext?.instinfo?.whatsappnumber != null) {
236
+ window.open('https://api.whatsapp.com/send?phone=' + authdetailsContext?.instinfo?.whatsappnumber, '_blank');
237
+ }
238
+ }}
239
+ >
240
+ {langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar}
241
+ </button>
242
+ </div>
243
+ </div>
244
+ </div>
245
+ </div>
246
+ );
247
+ };
248
+ export default TextSectionConnectToWA;