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,832 @@
1
+ import React, { useEffect, useState, useContext } from 'react';
2
+ import loginstyles from '../../../styles/staticpages/signup.module.css';
3
+ import { CircularProgress } from 'react-cssfx-loading';
4
+ import TextareaAutosize from 'react-textarea-autosize';
5
+ import { css } from 'glamor';
6
+ import { defaultstyles, defaultstylestranslated } from '../../../StylesJS/Customstyles';
7
+ import GoogleLogin from '../Login/GoogleLoginButton.jsx';
8
+ import FacebookLoginButton from '../Login/FacebookLoginButton.jsx';
9
+ const Select = React.lazy(() => import('react-select'));
10
+ const CustomerInformationForm = (props) => {
11
+ const lang = props.actions.lang;
12
+ const langdetect = props.actions.langdetect;
13
+ const routingcountext = props.actions.routingcountext;
14
+ const FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
15
+ const setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
16
+ const fetchinstitutecustomerinfosignupQueryContext = props.actions.fetchinstitutecustomerinfosignupQueryContext;
17
+ const fetchTabexCountriesQueryContext = props.actions.fetchTabexCountriesQueryContext;
18
+ const fetchTabexStatesQueryContext = props.actions.fetchTabexStatesQueryContext;
19
+ const fetchTabexCitiesQueryContext = props.actions.fetchTabexCitiesQueryContext;
20
+ const FetchTabexStatesPayloadobjContext = props.actions.FetchTabexStatesPayloadobjContext;
21
+ const setFetchTabexStatesPayloadobjContext = props.actions.setFetchTabexStatesPayloadobjContext;
22
+ const CustomerSignUpMutationContext = props.actions.CustomerSignUpMutationContext;
23
+ const authdetailsContext = props.actions.authdetailsContext;
24
+ const instapikey = props.actions.instapikey;
25
+ const templatepropcontext = props.actions.templatepropcontext;
26
+ const NotificationManager = props.actions.NotificationManager;
27
+ const actions = props.actions;
28
+ const [sectionproperties, setsectionproperties] = useState('');
29
+ const [dataloaded, setdataloaded] = useState(false);
30
+ const [payloadobj, setpayloadobj] = useState({
31
+ instapikey: instapikey,
32
+ name: '',
33
+ email: '',
34
+ mobile: '',
35
+ password: '',
36
+ password2: '',
37
+ shippingaddress: '',
38
+ addedsourcetype: 'Webapp',
39
+ instsignupformvalues: [],
40
+ countryid: '',
41
+ stateid: '',
42
+ cityid: '',
43
+ });
44
+
45
+ useEffect(() => {
46
+ var tempFetchQueriesEngineContext = { ...FetchQueriesEngineContext };
47
+ tempFetchQueriesEngineContext.institutecustomerinfosignup = true;
48
+ tempFetchQueriesEngineContext.fetchtabexcountries = true;
49
+ setFetchQueriesEngineContext({ ...tempFetchQueriesEngineContext });
50
+
51
+ var tempFetchQueriesEngineContext = { ...FetchQueriesEngineContext };
52
+ }, []);
53
+ useEffect(() => {
54
+ if (props.sectionpropertiesprops != undefined && props.sectionpropertiesprops.length != 0) {
55
+ setsectionproperties({ ...props.sectionpropertiesprops });
56
+ }
57
+ }, [props.sectionpropertiesprops]);
58
+
59
+ useEffect(() => {
60
+ if (fetchinstitutecustomerinfosignupQueryContext.isSuccess) {
61
+ if (authdetailsContext.loggedin == true) {
62
+ var tempcustomerinfoobj = { ...fetchinstitutecustomerinfosignupQueryContext.data.data.customerinfo };
63
+ setpayloadobj({ ...tempcustomerinfoobj });
64
+ var tempFetchTabexStatesPayloadobjContext = { ...FetchTabexStatesPayloadobjContext };
65
+ if (tempcustomerinfoobj.countryid != null) {
66
+ tempFetchTabexStatesPayloadobjContext.country_id = tempcustomerinfoobj.countryid;
67
+ }
68
+ if (tempcustomerinfoobj.stateid != null) {
69
+ tempFetchTabexStatesPayloadobjContext.state_id = tempcustomerinfoobj.stateid;
70
+ }
71
+ setFetchTabexStatesPayloadobjContext({ ...tempFetchTabexStatesPayloadobjContext });
72
+ setdataloaded(true);
73
+ } else {
74
+ var tempcustomerinfoobj = { ...payloadobj };
75
+ if (Array.isArray(fetchinstitutecustomerinfosignupQueryContext?.data?.data?.instsignupformvalues)) {
76
+ tempcustomerinfoobj.instsignupformvalues = [...fetchinstitutecustomerinfosignupQueryContext.data.data.instsignupformvalues];
77
+ }
78
+ setpayloadobj({ ...tempcustomerinfoobj });
79
+ setdataloaded(true);
80
+ }
81
+ }
82
+ }, [fetchinstitutecustomerinfosignupQueryContext.isSuccess, fetchinstitutecustomerinfosignupQueryContext.data, authdetailsContext]);
83
+ const payloadobjchange = (key, value) => {
84
+ var temppayloadobj = { ...payloadobj };
85
+ temppayloadobj[key] = value;
86
+ setpayloadobj({ ...temppayloadobj });
87
+ };
88
+
89
+ const formstyles = {
90
+ loginbtn: css({
91
+ background: templatepropcontext.primarycolor,
92
+ color: sectionproperties.generalbtn_textColor,
93
+ borderRadius: sectionproperties.generalbtn_borderradius + 'px',
94
+ fontSize: sectionproperties.generalbtn_fontsize + 'px',
95
+ lineHeight: sectionproperties.generalbtn_fontsize + 'px',
96
+ textTransform: sectionproperties.generalbtn_texttransform,
97
+ width: sectionproperties.generalbtn_width + 'px',
98
+ height: sectionproperties.generalbtn_height + 'px',
99
+ ':hover': {
100
+ background: templatepropcontext.secondarycolor,
101
+ },
102
+ }),
103
+ btnstyles: css({
104
+ width: sectionproperties.generalbtn_width + 'px',
105
+ height: sectionproperties.generalbtn_height + 'px',
106
+ textTransform: sectionproperties.generalbtn_texttransform,
107
+ fontSize: sectionproperties.generalbtn_fontsize + 'px',
108
+ color: sectionproperties.generalbtn_textColor,
109
+ background: sectionproperties.generalbtn_bgColor,
110
+ borderTopLeftRadius: sectionproperties.generalbtn_bordertopleftradius + 'px',
111
+ borderTopRightRadius: sectionproperties.generalbtn_bordertoprightradius + 'px',
112
+ borderBottomLeftRadius: sectionproperties.generalbtn_borderbottomleftradius + 'px',
113
+ borderBottomRightRadius: sectionproperties.generalbtn_borderbottomrightradius + 'px',
114
+ fontWeight: sectionproperties.generalbtn_fontweight,
115
+ transition: '.3s',
116
+ ':hover': {
117
+ background: sectionproperties.generalbtn_bgColoronhover,
118
+ color: sectionproperties.generalbtn_textColoronhover,
119
+ },
120
+ }),
121
+ signupbtn: css({
122
+ width: sectionproperties.signup_btn_width + 'px',
123
+ height: sectionproperties.signup_btn_height + 'px',
124
+ borderRadius: sectionproperties.signup_btn_borderBottomLeftRadius + 'px',
125
+ textTransform: sectionproperties.signup_btn_texttransform,
126
+ fontSize: sectionproperties.signup_btn_fontSize + 'px',
127
+ color: sectionproperties.signup_btn_color,
128
+ fontWeight: sectionproperties.signup_btn_fontweight,
129
+ background: sectionproperties.signup_btnbgcolor_transparent == 'Transparent' ? 'transparent' : sectionproperties.signup_btnbgcolor,
130
+ border: sectionproperties.signup_btn_borderwidth + 'px solid ' + sectionproperties.signupbtn_bordercolor,
131
+ transition: '.3s',
132
+ ':hover': {
133
+ background: sectionproperties.signup_btnbgcoloroonhovertransparent == 'Transparent' ? 'transparent' : sectionproperties.signup_btnbgcoloroonhover,
134
+ color: sectionproperties.signup_btn_coloronhover,
135
+ },
136
+ }),
137
+ input_label_name: css({
138
+ color: sectionproperties.form_labelcolor,
139
+ textTransform: sectionproperties.form_labeltexttransform,
140
+ fontWeight: sectionproperties.form_labelfontweight,
141
+ fontSize: sectionproperties.form_labelfontsize + 'px',
142
+ }),
143
+ form_control: css({
144
+ color: sectionproperties.inputfieldcolor,
145
+ fontSize: sectionproperties.inputfieldfontsize + 'px',
146
+ position: 'relative',
147
+ display: 'flex',
148
+ alignItems: 'center',
149
+ borderBottom: sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor,
150
+ display: 'block',
151
+ width: '100%',
152
+ height: '35px',
153
+ padding: '0 30px',
154
+ transition: '.3s',
155
+ ':focus': {
156
+ borderColor: sectionproperties.inputfeildbordercoloronfocus,
157
+ },
158
+ ':focus .login_input_icon': {
159
+ color: sectionproperties.inputfeildbordercoloronfocus,
160
+ },
161
+ }),
162
+ checkbox: css({
163
+ color: sectionproperties.checkbox_color,
164
+ textTransform: sectionproperties.form_labeltexttransform,
165
+ fontWeight: sectionproperties.form_labelfontweight,
166
+ fontSize: sectionproperties.form_labelfontsize + 'px',
167
+ transition: '.3s',
168
+ ':hover': {
169
+ color: sectionproperties.checkbox_texthovercolor,
170
+ },
171
+ 'input:checked': {
172
+ color: sectionproperties.checkbox_checkedcolor,
173
+ },
174
+ }),
175
+ checkboxinputstyles: css({
176
+ ':hover:not(:checked)': {
177
+ boxShadow: 'inset 0 0 0 2px ' + sectionproperties.checkbox_texthovercolor,
178
+ },
179
+ ':checked': {
180
+ boxShadow: 'inset 0 0 0 2px ' + sectionproperties.checkbox_checkedcolor,
181
+ },
182
+ }),
183
+ svgstyles: css({
184
+ stroke: 'var(--stroke, ' + sectionproperties.checkbox_checkedcolor + ')',
185
+ }),
186
+ };
187
+
188
+ const PersonalInformation = () => {
189
+ return (
190
+ <div className="row m-0 w-100">
191
+ <div className={'col-lg-4 col-md-12 col-sm-12 mb-4 p-sm-0'}>
192
+ <label className={`${formstyles.input_label_name}` + ' m-0 text-transform-none d-flex align-items-start '}>{lang.name}</label>
193
+ <input
194
+ type="text"
195
+ className={`${loginstyles.form_control} ${formstyles.form_control}`}
196
+ value={payloadobj.name}
197
+ onChange={(event) => {
198
+ payloadobjchange('name', event.target.value);
199
+ }}
200
+ />
201
+ </div>
202
+ <div className={'col-lg-4 col-md-12 col-sm-12 mb-4 p-sm-0'}>
203
+ <label className={`${formstyles.input_label_name}` + ' m-0 text-transform-none d-flex align-items-start '}>{lang.email}</label>
204
+ <input
205
+ className={`${loginstyles.form_control} ${formstyles.form_control}`}
206
+ type="text"
207
+ textplaceholder=""
208
+ value={payloadobj.email}
209
+ onChange={(event) => {
210
+ payloadobjchange('email', event.target.value);
211
+ }}
212
+ />
213
+ </div>
214
+ <div className={'col-lg-4 col-md-12 col-sm-12 mb-4 p-sm-0'}>
215
+ <label className={formstyles.input_label_name + ' m-0 d-flex justify-content-start '}>{lang.phonenumber}</label>
216
+ <input
217
+ className={`${loginstyles.form_control} ${formstyles.form_control}`}
218
+ type="text"
219
+ textplaceholder=""
220
+ value={payloadobj.mobile}
221
+ onChange={(event) => {
222
+ payloadobjchange('mobile', event.target.value);
223
+ }}
224
+ />
225
+ </div>
226
+ </div>
227
+ );
228
+ };
229
+ const Address = () => {
230
+ return (
231
+ <div className="row m-0 w-100">
232
+ <div className={'col-lg-4 col-md-12 col-sm-12 mb-4 p-sm-0'}>
233
+ <label className={formstyles.input_label_name + ' d-flex justify-content-start '}>{lang.country}</label>
234
+ {fetchTabexCountriesQueryContext.isFetching && (
235
+ <div className="col-lg-4 col-md-12 col-sm-12 mb-3 p-sm-0 d-flex justify-content-center align-items-center">
236
+ <CircularProgress color="black" width="20px" height="20px" duration="1s" />
237
+ </div>
238
+ )}
239
+ {!fetchTabexCountriesQueryContext.isFetching && fetchTabexCountriesQueryContext.isSuccess && (
240
+ <Select
241
+ options={fetchTabexCountriesQueryContext.data.data.countries}
242
+ getOptionLabel={(option) => {
243
+ var crname = '';
244
+ if (langdetect == 'en') {
245
+ crname = option.name;
246
+ } else if (langdetect == 'ar') {
247
+ if (option.name_ar != null) {
248
+ crname = option.name_ar;
249
+ } else {
250
+ crname = option.name;
251
+ }
252
+ }
253
+ return crname;
254
+ }}
255
+ getOptionValue={(option) => option.id}
256
+ autocomplete="new-password"
257
+ value={fetchTabexCountriesQueryContext.data.data.countries.filter((option) => option.id == payloadobj.countryid)}
258
+ onChange={(option) => {
259
+ var tempFetchTabexStatesPayloadobjContext = { ...FetchTabexStatesPayloadobjContext };
260
+ tempFetchTabexStatesPayloadobjContext.functype = 'states';
261
+ tempFetchTabexStatesPayloadobjContext.country_id = option.id;
262
+ setFetchTabexStatesPayloadobjContext({ ...tempFetchTabexStatesPayloadobjContext });
263
+ payloadobjchange('countryid', option.id);
264
+ }}
265
+ styles={langdetect == 'en' ? defaultstyles : defaultstylestranslated}
266
+ placeholder={langdetect == 'en' ? 'Choose Country' : 'إختر البلد'}
267
+ isSearchable={true}
268
+ />
269
+ )}
270
+ </div>
271
+ <div className={'col-lg-4 col-md-12 col-sm-12 mb-4 p-sm-0'}>
272
+ <label className={formstyles.input_label_name + ' d-flex justify-content-start '}>{lang.choosestategov}</label>
273
+ {fetchTabexStatesQueryContext.isFetching && (
274
+ <div className="col-lg-12 col-md-12 col-sm-12 mb-3 p-sm-0 d-flex justify-content-center align-items-center">
275
+ <CircularProgress color="black" width="20px" height="20px" duration="1s" />
276
+ </div>
277
+ )}
278
+ {FetchTabexStatesPayloadobjContext.country_id == '' && (
279
+ <Select styles={langdetect == 'en' ? defaultstyles : defaultstylestranslated} placeholder={lang.choosestategov} isSearchable={true} />
280
+ )}
281
+ {!fetchTabexStatesQueryContext.isFetching && fetchTabexStatesQueryContext.isSuccess && (
282
+ <Select
283
+ options={fetchTabexStatesQueryContext.data.data.states}
284
+ getOptionLabel={(option) => {
285
+ var crname = '';
286
+ if (langdetect == 'en') {
287
+ crname = option.name;
288
+ } else if (langdetect == 'ar') {
289
+ if (option.name_ar != null) {
290
+ crname = option.name_ar;
291
+ } else {
292
+ crname = option.name;
293
+ }
294
+ }
295
+ return crname;
296
+ }}
297
+ getOptionValue={(option) => option.id}
298
+ autocomplete="new-password"
299
+ value={fetchTabexStatesQueryContext.data.data.states.filter((option) => option.id == payloadobj.stateid)}
300
+ onChange={(option) => {
301
+ var tempFetchTabexStatesPayloadobjContext = { ...FetchTabexStatesPayloadobjContext };
302
+ tempFetchTabexStatesPayloadobjContext.functype = 'cities';
303
+ tempFetchTabexStatesPayloadobjContext.state_id = option.id;
304
+ setFetchTabexStatesPayloadobjContext({ ...tempFetchTabexStatesPayloadobjContext });
305
+ payloadobjchange('stateid', option.id);
306
+ }}
307
+ styles={langdetect == 'en' ? defaultstyles : defaultstylestranslated}
308
+ placeholder={lang.choosestategov}
309
+ isSearchable={true}
310
+ />
311
+ )}
312
+ </div>
313
+ <div className={'col-lg-4 col-md-12 col-sm-12 mb-4 p-sm-0'}>
314
+ <label className={formstyles.input_label_name + ' d-flex justify-content-start '}>{lang.city}</label>
315
+ {fetchTabexCitiesQueryContext.isFetching && (
316
+ <div className="col-lg-12 col-md-12 col-sm-12 mb-3 p-sm-0 d-flex justify-content-center align-items-center">
317
+ <CircularProgress color="black" width="20px" height="20px" duration="1s" />
318
+ </div>
319
+ )}
320
+ {FetchTabexStatesPayloadobjContext.country_id == '' && (
321
+ <Select placeholder={lang.choosecity} styles={langdetect == 'en' ? defaultstyles : defaultstylestranslated} isSearchable={true} />
322
+ )}
323
+ {!fetchTabexCitiesQueryContext.isFetching && fetchTabexCitiesQueryContext.isSuccess && (
324
+ <Select
325
+ options={fetchTabexCitiesQueryContext.data.data.cities}
326
+ getOptionLabel={(option) => {
327
+ var crname = '';
328
+ if (langdetect == 'en') {
329
+ crname = option.name;
330
+ } else if (langdetect == 'ar') {
331
+ if (option.name_ar != null) {
332
+ crname = option.name_ar;
333
+ } else {
334
+ crname = option.name;
335
+ }
336
+ }
337
+ return crname;
338
+ }}
339
+ getOptionValue={(option) => option.id}
340
+ autocomplete="new-password"
341
+ value={fetchTabexCitiesQueryContext.data.data.cities.filter((option) => option.id == payloadobj.cityid)}
342
+ onChange={(option) => {
343
+ payloadobjchange('cityid', option.id);
344
+ }}
345
+ styles={langdetect == 'en' ? defaultstyles : defaultstylestranslated}
346
+ placeholder={lang.choosecity}
347
+ isSearchable={true}
348
+ />
349
+ )}
350
+ </div>
351
+ <div className="col-lg-12 col-md-12 col-sm-12 mb-4 p-sm-0">
352
+ <label className={`${formstyles.input_label_name}` + ' text-transform-none d-flex align-items-start '}>{lang.address}</label>
353
+ <div className={loginstyles.wrap_input100}>
354
+ <TextareaAutosize
355
+ type="text"
356
+ className={`${loginstyles.form_control} ${loginstyles.form_controltextarea} ${formstyles.form_control}`}
357
+ value={payloadobj.shippingaddress}
358
+ textplaceholder=""
359
+ onChange={(event) => {
360
+ payloadobjchange('shippingaddress', event.target.value);
361
+ }}
362
+ style={{ resize: 'none' }}
363
+ />
364
+ <span className={loginstyles.login_input_focus}></span>
365
+ </div>
366
+ </div>
367
+ </div>
368
+ );
369
+ };
370
+ const Password = () => {
371
+ return (
372
+ <div className="row m-0 w-100">
373
+ <div className="col-lg-6 col-md-12 col-sm-12 mb-4 p-sm-0">
374
+ <label className={`${formstyles.input_label_name}` + ' m-0 text-transform-none d-flex align-items-start '}>{lang.password}</label>
375
+ <input
376
+ className={`${loginstyles.form_control} ${formstyles.form_control}`}
377
+ type="password"
378
+ autocomplete="new-password"
379
+ textplaceholder=""
380
+ value={payloadobj.password}
381
+ onChange={(event) => {
382
+ payloadobjchange('password', event.target.value);
383
+ }}
384
+ />
385
+ </div>
386
+ <div className="col-lg-6 col-md-12 col-sm-12 mb-4 p-sm-0">
387
+ <label className={`${formstyles.input_label_name}` + ' m-0 text-transform-none d-flex align-items-start '}>{lang.confirmpassword}</label>
388
+ <input
389
+ className={`${loginstyles.form_control} ${formstyles.form_control}`}
390
+ type="password"
391
+ autocomplete="new-password"
392
+ textplaceholder=""
393
+ value={payloadobj.password2}
394
+ onChange={(event) => {
395
+ payloadobjchange('password2', event.target.value);
396
+ }}
397
+ />
398
+ </div>
399
+ </div>
400
+ );
401
+ };
402
+ const Otherinformation = () => {
403
+ return (
404
+ <div className="row m-0 w-100">
405
+ {payloadobj.instsignupformvalues.length != 0 && (
406
+ <>
407
+ {payloadobj.instsignupformvalues.map((item, index) => {
408
+ return (
409
+ <div className="col-lg-6 col-md-12 col-sm-12 mb-4 p-sm-0">
410
+ {item.inputtype != 'checkbox' && (
411
+ <label className={formstyles.input_label_name + ' m-0 d-flex align-items-start '}>
412
+ {langdetect == 'en' ? item.inputname_en : item.inputname_ar} <span class="text-danger ml-1 mr-1">{item.optional == 1 ? '*' : ''}</span>
413
+ </label>
414
+ )}
415
+ <div className={loginstyles.wrap_input100}>
416
+ {item.inputtype == 'input' && (
417
+ <input
418
+ className={`${loginstyles.form_control} ${formstyles.form_control}`}
419
+ type="text"
420
+ value={item.customersignupvalue}
421
+ textplaceholder=""
422
+ onChange={(event) => {
423
+ var temppayloadobj = { ...payloadobj };
424
+ temppayloadobj.instsignupformvalues[index].customersignupvalue = event.target.value;
425
+ setpayloadobj({ ...temppayloadobj });
426
+ }}
427
+ />
428
+ )}
429
+ {item.inputtype == 'checkbox' && (
430
+ <label
431
+ className={
432
+ langdetect == 'en'
433
+ ? `${loginstyles.checkbox} ${formstyles.checkbox} ` + ' d-flex mb-0 '
434
+ : `${loginstyles.checkbox} ${loginstyles.checkboxtranslated}` + ' d-flex mb-0 '
435
+ }
436
+ for="codcheckbox"
437
+ >
438
+ <input
439
+ id={'codcheckbox'}
440
+ type="checkbox"
441
+ className={formstyles.checkboxinputstyles + ' mt-auto mb-auto '}
442
+ checked={item.customersignupvalue == 1 ? true : false}
443
+ onChange={() => {
444
+ var temppayloadobj = { ...payloadobj };
445
+ if (temppayloadobj.instsignupformvalues[index].customersignupvalue == 1) {
446
+ temppayloadobj.instsignupformvalues[index].customersignupvalue = 0;
447
+ } else {
448
+ temppayloadobj.instsignupformvalues[index].customersignupvalue = 1;
449
+ }
450
+ setpayloadobj({ ...temppayloadobj });
451
+ }}
452
+ />
453
+ <svg viewBox="0 0 21 21" className={formstyles.svgstyles + ' h-100 '}>
454
+ <path d="M5,10.75 L8.5,14.25 L19.4,2.3 C18.8333333,1.43333333 18.0333333,1 17,1 L4,1 C2.35,1 1,2.35 1,4 L1,17 C1,18.65 2.35,20 4,20 L17,20 C18.65,20 20,18.65 20,17 L20,7.99769186"></path>
455
+ </svg>
456
+ <p className={formstyles.input_label_name + ' ml-2 mb-0 cursor-pointer wordbreak mr-2'} style={{}}>
457
+ {langdetect == 'en' ? item.inputname_en : item.inputname_ar} <span class="text-danger ml-1 mr-1">{item.optional == 1 ? '' : '*'}</span>
458
+ </p>
459
+ </label>
460
+ )}
461
+ {item.inputtype == 'selectbox' && (
462
+ <select
463
+ className={`${loginstyles.form_control} ${formstyles.form_control}`}
464
+ value={item.customersignupvalue}
465
+ textplaceholder=""
466
+ onChange={(event) => {
467
+ var temppayloadobj = { ...payloadobj };
468
+ temppayloadobj.instsignupformvalues[index].customersignupvalue = event.target.value;
469
+ setpayloadobj({ ...temppayloadobj });
470
+ }}
471
+ >
472
+ <option value={''} disabled>
473
+ {langdetect == 'en' ? 'Choose' : 'إختر'}
474
+ </option>
475
+ {JSON.parse(item.selectboxvalues).map((selectboxitem, selectboxindex) => {
476
+ return <option value={selectboxitem.optionname_en}>{langdetect == 'en' ? selectboxitem.optionname_en : selectboxitem.optionname_ar}</option>;
477
+ })}
478
+ </select>
479
+ )}
480
+ {item.inputtype == 'textarea' && (
481
+ <TextareaAutosize
482
+ type="text"
483
+ className={`${loginstyles.form_control} ${formstyles.form_control}`}
484
+ value={item.customersignupvalue}
485
+ textplaceholder=""
486
+ onChange={(event) => {
487
+ var temppayloadobj = { ...payloadobj };
488
+ temppayloadobj.instsignupformvalues[index].customersignupvalue = event.target.value;
489
+ setpayloadobj({ ...temppayloadobj });
490
+ }}
491
+ style={{
492
+ resize: 'none',
493
+ }}
494
+ />
495
+ )}
496
+ <span className={loginstyles.login_input_focus}></span>
497
+ </div>
498
+ </div>
499
+ );
500
+ })}
501
+ </>
502
+ )}
503
+ </div>
504
+ );
505
+ };
506
+ return (
507
+ <div className="row m-0 w-100 d-flex justify-content-center">
508
+ {!dataloaded && <CircularProgress color="black" width="20px" height="20px" duration="1s" />}
509
+ {dataloaded && props.srcfromprops == 'signup' && (
510
+ <div
511
+ className="row ml-0 mr-0"
512
+ style={{
513
+ background: 'white',
514
+ }}
515
+ >
516
+ {PersonalInformation()}
517
+ {Address()}
518
+ {Otherinformation()}
519
+ {Password()}
520
+ </div>
521
+ )}
522
+ {dataloaded && props.srcfromprops == 'accountinfo' && (
523
+ <div className="col-lg-12 p-0">
524
+ <div className="row ml-0 mr-0 w-100">
525
+ <div className="col-lg-12 mb-3 p-0">
526
+ <div
527
+ style={{
528
+ background: sectionproperties.backgroundColor,
529
+ borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
530
+ borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
531
+ borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
532
+ borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
533
+ }}
534
+ className="p-2"
535
+ >
536
+ <div className="row ml-0 mr-0">
537
+ <div className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex justify-content-center">
538
+ <p
539
+ className="m-0 p-0"
540
+ style={{
541
+ fontSize: sectionproperties.sectionTitleFontSize + 'px',
542
+ color: sectionproperties.sectionTitleColor,
543
+ fontWeight: sectionproperties.sectionTitleFontWeight,
544
+ }}
545
+ >
546
+ {lang.personalinformation}
547
+ </p>
548
+ </div>
549
+ <div className="col-lg-12 p-0">
550
+ <hr className="mt-2 mb-3" />
551
+ </div>
552
+ </div>
553
+ {PersonalInformation()}
554
+ </div>
555
+ </div>
556
+ <div className="col-lg-12 mb-3 p-0">
557
+ <div
558
+ className={'p-2'}
559
+ style={{
560
+ background: sectionproperties.backgroundColor,
561
+ borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
562
+ borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
563
+ borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
564
+ borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
565
+ }}
566
+ >
567
+ <div className="row ml-0 mr-0">
568
+ <div className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex justify-content-center">
569
+ <p
570
+ className="m-0 p-0"
571
+ style={{
572
+ fontSize: sectionproperties.sectionTitleFontSize + 'px',
573
+ color: sectionproperties.sectionTitleColor,
574
+ fontWeight: sectionproperties.sectionTitleFontWeight,
575
+ }}
576
+ >
577
+ {lang.address}
578
+ </p>
579
+ </div>
580
+ <div className="col-lg-12 p-0">
581
+ <hr className="mt-2 mb-3" />
582
+ </div>
583
+ </div>
584
+ {Address()}
585
+ </div>
586
+ </div>
587
+ <div className="col-lg-12 mb-3 p-0">
588
+ <div
589
+ className={'p-2'}
590
+ style={{
591
+ background: sectionproperties.backgroundColor,
592
+ borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
593
+ borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
594
+ borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
595
+ borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
596
+ }}
597
+ >
598
+ <div className="row ml-0 mr-0">
599
+ <div className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex justify-content-center">
600
+ <p
601
+ className="m-0 p-0"
602
+ style={{
603
+ fontSize: sectionproperties.sectionTitleFontSize + 'px',
604
+ color: sectionproperties.sectionTitleColor,
605
+ fontWeight: sectionproperties.sectionTitleFontWeight,
606
+ }}
607
+ >
608
+ {lang.security}
609
+ </p>
610
+ </div>
611
+ <div className="col-lg-12 p-0">
612
+ <hr className="mt-2 mb-3" />
613
+ </div>
614
+ </div>
615
+ <div className="row ml-0 mr-0">{Password()}</div>
616
+ </div>
617
+ </div>
618
+ {payloadobj.instsignupformvalues.length != 0 && (
619
+ <div className="col-lg-12 mb-3 p-0">
620
+ <div
621
+ style={{
622
+ background: sectionproperties.backgroundColor,
623
+ borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
624
+ borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
625
+ borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
626
+ borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
627
+ }}
628
+ className="p-2"
629
+ >
630
+ <div className="row ml-0 mr-0">
631
+ <div className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex justify-content-center">
632
+ <p
633
+ className="m-0 p-0"
634
+ style={{
635
+ fontSize: sectionproperties.sectionTitleFontSize + 'px',
636
+ color: sectionproperties.sectionTitleColor,
637
+ fontWeight: sectionproperties.sectionTitleFontWeight,
638
+ }}
639
+ >
640
+ {lang.otherinformation}
641
+ </p>
642
+ </div>
643
+ <div className="col-lg-12 p-0">
644
+ <hr className="mt-2 mb-3" />
645
+ </div>
646
+ </div>
647
+ <div className="row ml-0 mr-0">{Otherinformation()}</div>
648
+ </div>
649
+ </div>
650
+ )}
651
+ {/* <div className="col-lg-12 col-md-12 col-sm-12 d-flex align-items-center justify-content-center">
652
+ <button
653
+ className={`${formstyles.signupbtn}` + ' pl-4 pr-4 '}
654
+ disabled={CustomerSignUpMutationContext.isLoading ? true : false}
655
+ onClick={() => {
656
+ var passwordvalidation = false;
657
+ if (authdetailsContext.loggedin == false) {
658
+ if (payloadobj?.password?.length != 0) {
659
+ if (payloadobj?.password == payloadobj?.password2) {
660
+ passwordvalidation = true;
661
+ }
662
+ }
663
+ } else if (authdetailsContext.loggedin == true) {
664
+ if (payloadobj?.password != undefined && payloadobj?.password != null && payloadobj?.password?.length != 0) {
665
+ if (payloadobj?.password == payloadobj?.password2) {
666
+ passwordvalidation = true;
667
+ }
668
+ } else {
669
+ passwordvalidation = true;
670
+ }
671
+ }
672
+
673
+ if (passwordvalidation == false) {
674
+ NotificationManager.warning('', lang.passwordsdontmatch);
675
+ }
676
+
677
+ if (
678
+ payloadobj?.email?.length != 0 &&
679
+ payloadobj?.name?.length != 0 &&
680
+ payloadobj?.mobile?.length != 0 &&
681
+ passwordvalidation == true &&
682
+ payloadobj?.mobile != null &&
683
+ payloadobj?.stateid != null &&
684
+ payloadobj?.cityid != null &&
685
+ payloadobj?.name != null &&
686
+ payloadobj?.email != null &&
687
+ payloadobj?.countryid != null &&
688
+ payloadobj?.countryid?.length != 0 &&
689
+ payloadobj?.stateid?.length != 0 &&
690
+ payloadobj?.cityid?.length != 0
691
+ ) {
692
+ var signupformismissing = true;
693
+ payloadobj.instsignupformvalues.forEach(function (arrayItem) {
694
+ if (arrayItem.optional == 0) {
695
+ if (arrayItem.customersignupvalue == undefined || arrayItem.customersignupvalue.length == 0) {
696
+ signupformismissing = false;
697
+ }
698
+ }
699
+ });
700
+ if (signupformismissing) {
701
+ var temppayloadobj = { ...payloadobj };
702
+ if (authdetailsContext.loggedin == true) {
703
+ temppayloadobj.functype = 'edit';
704
+ } else {
705
+ temppayloadobj.functype = 'add';
706
+ }
707
+
708
+ temppayloadobj.addedsourcetype = 'Webapp';
709
+ temppayloadobj.instapikey = instapikey();
710
+ CustomerSignUpMutationContext.mutate(temppayloadobj);
711
+ } else {
712
+ NotificationManager.warning('', 'Please Fill All The Mandatory Fields');
713
+ }
714
+ } else {
715
+ NotificationManager.warning('', lang.fillthemissingfields);
716
+ }
717
+ }}
718
+ >
719
+ {CustomerSignUpMutationContext.isLoading && <CircularProgress color="#fff" width="20px" height="20px" duration="1s" />}
720
+
721
+ {!CustomerSignUpMutationContext.isLoading && (
722
+ <>
723
+ {authdetailsContext.loggedin != true && (
724
+ <span style={{ letterSpacing: langdetect == 'en' ? '1px' : '' }}>{langdetect == 'en' ? 'Signup' : 'إنشاء الحساب'}</span>
725
+ )}
726
+ {authdetailsContext.loggedin == true && (
727
+ <span style={{ letterSpacing: langdetect == 'en' ? '1px' : '' }}>{langdetect == 'en' ? 'Update' : 'تحديث'}</span>
728
+ )}
729
+ </>
730
+ )}
731
+ </button>
732
+ </div> */}
733
+ </div>
734
+ </div>
735
+ )}
736
+ <div className="col-lg-12 col-md-12 col-sm-12 d-flex align-items-center justify-content-center mb-3 mt-3">
737
+ <button
738
+ className={`${formstyles.signupbtn}` + ' d-flex align-items-center justify-content-center '}
739
+ disabled={CustomerSignUpMutationContext.isLoading ? true : false}
740
+ onClick={() => {
741
+ var passwordvalidation = false;
742
+ if (authdetailsContext.loggedin == false) {
743
+ if (payloadobj.password.length != 0) {
744
+ if (payloadobj.password == payloadobj.password2) {
745
+ passwordvalidation = true;
746
+ }
747
+ }
748
+ } else if (authdetailsContext.loggedin == true) {
749
+ if (payloadobj.password.length != 0) {
750
+ if (payloadobj.password == payloadobj.password2) {
751
+ passwordvalidation = true;
752
+ }
753
+ } else {
754
+ passwordvalidation = true;
755
+ }
756
+ }
757
+
758
+ if (passwordvalidation == false) {
759
+ NotificationManager.warning('', lang.passwordsdontmatch);
760
+ }
761
+ if (
762
+ payloadobj.email.length != 0 &&
763
+ payloadobj.name.length != 0 &&
764
+ payloadobj.mobile.length != 0 &&
765
+ passwordvalidation == true &&
766
+ payloadobj.countryid.length != 0 &&
767
+ payloadobj.stateid.length != 0 &&
768
+ payloadobj.cityid.length != 0
769
+ ) {
770
+ var signupformismissing = true;
771
+ payloadobj.instsignupformvalues.forEach(function (arrayItem) {
772
+ if (arrayItem.optional == 1) {
773
+ if (arrayItem.customersignupvalue == undefined || arrayItem.customersignupvalue.length == 0) {
774
+ signupformismissing = false;
775
+ }
776
+ }
777
+ });
778
+ if (signupformismissing) {
779
+ var temppayloadobj = { ...payloadobj };
780
+ if (authdetailsContext.loggedin == true) {
781
+ temppayloadobj.functype = 'edit';
782
+ } else {
783
+ temppayloadobj.functype = 'add';
784
+ }
785
+
786
+ temppayloadobj.addedsourcetype = 'Webapp';
787
+ temppayloadobj.instapikey = instapikey;
788
+ CustomerSignUpMutationContext.mutate(temppayloadobj);
789
+ } else {
790
+ NotificationManager.warning('', lang.completerequiredfields);
791
+ }
792
+ } else {
793
+ NotificationManager.warning('', lang.fillthemissingfields);
794
+ }
795
+ }}
796
+ >
797
+ {CustomerSignUpMutationContext.isLoading && <CircularProgress color="#fff" width="20px" height="20px" duration="1s" />}
798
+
799
+ {!CustomerSignUpMutationContext.isLoading && (
800
+ <>
801
+ {authdetailsContext.loggedin != true && <span style={{ letterSpacing: langdetect == 'en' ? '1px' : '' }}>{lang.signup}</span>}
802
+ {authdetailsContext.loggedin == true && <span style={{ letterSpacing: langdetect == 'en' ? '1px' : '' }}>{lang.update}</span>}
803
+ </>
804
+ )}
805
+ </button>
806
+ </div>
807
+ {props.srcfromprops == 'signup' && (
808
+ <div className="row m-0 w-100">
809
+ <div className="col-lg-12 col-md-12 col-sm-12 d-flex d-md-none align-items-center justify-content-center mb-2">
810
+ <div className="ml-1 mr-1">
811
+ <FacebookLoginButton actions={actions} />
812
+ </div>
813
+ <div className="ml-1 mr-1">
814
+ <GoogleLogin actions={actions} />
815
+ </div>
816
+ </div>
817
+ <div className="col-lg-12 col-md-12 col-sm-12 d-none d-md-flex align-items-center justify-content-center mb-2">
818
+ <div className="ml-1 mr-1">
819
+ <FacebookLoginButton actions={actions} />
820
+ </div>
821
+ </div>
822
+ <div className="col-lg-12 col-md-12 col-sm-12 d-none d-md-flex align-items-center justify-content-center mb-2">
823
+ <div className="ml-1 mr-1">
824
+ <GoogleLogin actions={actions} />
825
+ </div>
826
+ </div>
827
+ </div>
828
+ )}
829
+ </div>
830
+ );
831
+ };
832
+ export default CustomerInformationForm;