tabexseriescomponents 0.2.1280 → 0.2.1281

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 (389) hide show
  1. package/dist/index.cjs.js +27 -0
  2. package/dist/index.esm.js +27 -0
  3. package/dist/index.umd.js +27 -0
  4. package/package.json +1 -1
  5. package/srcbefore27-11/Contexts/LanguageContext.jsx +0 -408
  6. package/srcbefore27-11/Contexts/ProductsCardsSectionContext.jsx +0 -36
  7. package/srcbefore27-11/Imagekitconfig copy.jsx +0 -46
  8. package/srcbefore27-11/Imagekitconfig.jsx +0 -178
  9. package/srcbefore27-11/StylesJS/Customstyles.js +0 -456
  10. package/srcbefore27-11/TabexComponents/Cards/CTAProductCard/CTAProductCard.jsx +0 -538
  11. package/srcbefore27-11/TabexComponents/Cards/Card20/Card20.jsx +0 -299
  12. package/srcbefore27-11/TabexComponents/Cards/Card21/Card21.jsx +0 -388
  13. package/srcbefore27-11/TabexComponents/Cards/Card22/Card22.jsx +0 -288
  14. package/srcbefore27-11/TabexComponents/Cards/Card23/Card23 copy.jsx +0 -1630
  15. package/srcbefore27-11/TabexComponents/Cards/Card23/Card23.jsx +0 -733
  16. package/srcbefore27-11/TabexComponents/Cards/CardAll/CardAll.jsx +0 -453
  17. package/srcbefore27-11/TabexComponents/Cards/CardBadgeSlideFromTop/CardBadgeSlideFromTop.jsx +0 -394
  18. package/srcbefore27-11/TabexComponents/Cards/CardWithTextOnly/CardWithTextOnly.jsx +0 -70
  19. package/srcbefore27-11/TabexComponents/Cards/Cardwithdetailsshowonhover/Cardwithdetailsshowonhover.jsx +0 -1074
  20. package/srcbefore27-11/TabexComponents/Cards/CategoryCardTextOnImage/CategoryCardTextOnImage.jsx +0 -211
  21. package/srcbefore27-11/TabexComponents/Cards/CategoryCardwithhoveraction/CategoryCardwithhoveraction.jsx +0 -293
  22. package/srcbefore27-11/TabexComponents/Cards/Categorycard_details_onhover/Categorycard_details_onhover.jsx +0 -512
  23. package/srcbefore27-11/TabexComponents/Cards/Categorycard_details_onhover copy/Categorycard_details_onhover.jsx +0 -513
  24. package/srcbefore27-11/TabexComponents/Cards/Categorycard_fullimage/Categorycard_fullimage.jsx +0 -235
  25. package/srcbefore27-11/TabexComponents/Cards/Categorycard_slidebgscaled/Categorycard_slidebgscaled.jsx +0 -199
  26. package/srcbefore27-11/TabexComponents/Cards/Categorycard_with_trianglebg/Categorycard_with_trianglebg.jsx +0 -182
  27. package/srcbefore27-11/TabexComponents/Cards/Categorycard_with_twolinestransition/Categorycard_with_twolinestransition.jsx +0 -184
  28. package/srcbefore27-11/TabexComponents/Cards/Categorycard_withshapes/Categorycard_withshapes.jsx +0 -161
  29. package/srcbefore27-11/TabexComponents/Cards/Categorycard_withtext/Categorycard_withtext.jsx +0 -208
  30. package/srcbefore27-11/TabexComponents/Cards/CircleCardWithVariants/CircleCardWithVariants.jsx +0 -560
  31. package/srcbefore27-11/TabexComponents/Cards/Classiccategorycard/Classiccategorycard copy.jsx +0 -145
  32. package/srcbefore27-11/TabexComponents/Cards/Classiccategorycard/Classiccategorycard.jsx +0 -145
  33. package/srcbefore27-11/TabexComponents/Cards/Classiccategorycard/ClassiccategorycardOriginal.jsx +0 -142
  34. package/srcbefore27-11/TabexComponents/Cards/HorizontalCategoryCard/HorizontalCategoryCard.jsx +0 -193
  35. package/srcbefore27-11/TabexComponents/Cards/Horizontalcard/Horizontalcard.jsx +0 -605
  36. package/srcbefore27-11/TabexComponents/Cards/MenuCard/MenuCard.jsx +0 -817
  37. package/srcbefore27-11/TabexComponents/Cards/ModernCardWithQuantityButton/ModernCardWithQuantityButton.jsx +0 -468
  38. package/srcbefore27-11/TabexComponents/Cards/ModernProductCard/ModernProductCard.jsx +0 -593
  39. package/srcbefore27-11/TabexComponents/Cards/Moderncategorycard/Moderncategorycard.jsx +0 -208
  40. package/srcbefore27-11/TabexComponents/Cards/NewProductcard/NewProductcard copy.jsx +0 -497
  41. package/srcbefore27-11/TabexComponents/Cards/NewProductcard/NewProductcard.jsx +0 -512
  42. package/srcbefore27-11/TabexComponents/Cards/ProductCardWithTextOnImage/ProductCardWithTextOnImage.jsx +0 -304
  43. package/srcbefore27-11/TabexComponents/Cards/Productcard6/Productcard6.jsx +0 -257
  44. package/srcbefore27-11/TabexComponents/Cards/Productcard7/Productcard7.jsx +0 -277
  45. package/srcbefore27-11/TabexComponents/Cards/Productcard_animatedbuttons/Productcard_animatedbuttons.jsx +0 -352
  46. package/srcbefore27-11/TabexComponents/Cards/Productcard_with_circularbg/Productcard_with_circularbg.jsx +0 -291
  47. package/srcbefore27-11/TabexComponents/Cards/Productcard_with_circularhover/Productcard_with_circularhover.jsx +0 -315
  48. package/srcbefore27-11/TabexComponents/Cards/Productcard_with_slideanimation/Productcard_with_slideanimation.jsx +0 -327
  49. package/srcbefore27-11/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants copy.jsx +0 -408
  50. package/srcbefore27-11/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants.jsx +0 -528
  51. package/srcbefore27-11/TabexComponents/Cards/Productcard_with_zoominonhover/Productcard_with_zoominonhover.jsx +0 -731
  52. package/srcbefore27-11/TabexComponents/Cards/Productcarddefault/Productcarddefault.jsx +0 -275
  53. package/srcbefore27-11/TabexComponents/Cards/Productccard_with_imageontopleft/Productccard_with_imageontopleft.jsx +0 -286
  54. package/srcbefore27-11/TabexComponents/Cards/Prouductcard_with_zoomhover/Prouductcard_with_zoomhover.jsx +0 -138
  55. package/srcbefore27-11/TabexComponents/Cards/QuantityButtonBasedProductCard/QuantityButtonBasedProductCard.jsx +0 -611
  56. package/srcbefore27-11/TabexComponents/Cards/ServiceCard/ServiceCard.jsx +0 -600
  57. package/srcbefore27-11/TabexComponents/Cards/Simplecategorycardwithtextbelow/Simplecategorycardwithtextbelow.jsx +0 -225
  58. package/srcbefore27-11/TabexComponents/Cards/Simpleproductcard/Simpleproductcard copy 2.jsx +0 -525
  59. package/srcbefore27-11/TabexComponents/Cards/Simpleproductcard/Simpleproductcard copy.jsx +0 -2321
  60. package/srcbefore27-11/TabexComponents/Cards/Simpleproductcard/Simpleproductcard.jsx +0 -1311
  61. package/srcbefore27-11/TabexComponents/Cards/Simpleproductcard/Simpleproductcardlastversion15-9.jsx +0 -1292
  62. package/srcbefore27-11/TabexComponents/Cards/StylishProductCard/StylishProductCard.jsx +0 -337
  63. package/srcbefore27-11/TabexComponents/Cards/TwoWayServiceSectionWithImage/TwoWayServiceSectionWithImage.jsx +0 -347
  64. package/srcbefore27-11/TabexComponents/Cards/UpSlideEffectCard/UpSlideEffectCard.jsx +0 -605
  65. package/srcbefore27-11/TabexComponents/Cards/UserCardWithSocialMediaOnHover/UserCardWithSocialMediaOnHover.jsx +0 -185
  66. package/srcbefore27-11/TabexComponents/Cards/Variants_J_Cards/Variants_J_Cards.jsx +0 -660
  67. package/srcbefore27-11/TabexComponents/Footer/Allinonefooter/Allinonefooter.jsx +0 -759
  68. package/srcbefore27-11/TabexComponents/Footer/Footer1/Footer1.jsx +0 -551
  69. package/srcbefore27-11/TabexComponents/Footer/Footer2/Footer2.jsx +0 -731
  70. package/srcbefore27-11/TabexComponents/Footer/Footer3/Footer3.jsx +0 -414
  71. package/srcbefore27-11/TabexComponents/Footer/Footer4/Footer4.jsx +0 -466
  72. package/srcbefore27-11/TabexComponents/Footer/Footer5/Footer5.jsx +0 -776
  73. package/srcbefore27-11/TabexComponents/Footer/Footer6/Footer6.jsx +0 -290
  74. package/srcbefore27-11/TabexComponents/Footer/Footer7/Footer7.jsx +0 -430
  75. package/srcbefore27-11/TabexComponents/Footer/Footer8/Footer8 copy.jsx +0 -1970
  76. package/srcbefore27-11/TabexComponents/Footer/Footer8/Footer8.jsx +0 -2015
  77. package/srcbefore27-11/TabexComponents/Footer/FooterWithThreeColumns/FooterWithThreeColumns.jsx +0 -330
  78. package/srcbefore27-11/TabexComponents/Footer/ModernFooter/ModernFooter.jsx +0 -582
  79. package/srcbefore27-11/TabexComponents/Footer/Newsletterfooter/Newsletterfooter.jsx +0 -1165
  80. package/srcbefore27-11/TabexComponents/Footer/Newsletterincenter/Newsletterincenter.jsx +0 -646
  81. package/srcbefore27-11/TabexComponents/Footer/PrivacyPolicy/PrivacyPolicy.jsx +0 -110
  82. package/srcbefore27-11/TabexComponents/Footer/Simplefooter/Simplefooter.jsx +0 -332
  83. package/srcbefore27-11/TabexComponents/Generalfiles/images/egyptflag.png +0 -0
  84. package/srcbefore27-11/TabexComponents/Generalfiles/images/noimage.png +0 -0
  85. package/srcbefore27-11/TabexComponents/Generalfiles/images/payment/cod.png +0 -0
  86. package/srcbefore27-11/TabexComponents/Generalfiles/images/payment/fawry.png +0 -0
  87. package/srcbefore27-11/TabexComponents/Generalfiles/images/payment/payment.png +0 -0
  88. package/srcbefore27-11/TabexComponents/Generalfiles/images/payment/paymob.png +0 -0
  89. package/srcbefore27-11/TabexComponents/Generalfiles/images/payment/paypal.png +0 -0
  90. package/srcbefore27-11/TabexComponents/Generalfiles/images/payment/visa.png +0 -0
  91. package/srcbefore27-11/TabexComponents/Generalfiles/images/shoppingcart.png +0 -0
  92. package/srcbefore27-11/TabexComponents/Generalfiles/images/tabexlogo.png +0 -0
  93. package/srcbefore27-11/TabexComponents/Generalfiles/images/unknownmaleuser.png +0 -0
  94. package/srcbefore27-11/TabexComponents/Generalfiles/images/usflag.png +0 -0
  95. package/srcbefore27-11/TabexComponents/Generalfiles/images/whatsapp.png +0 -0
  96. package/srcbefore27-11/TabexComponents/Headers/CTAHeader/CTAHeader.jsx +0 -1264
  97. package/srcbefore27-11/TabexComponents/Headers/CategoriesComponent/CategoriesComponent.jsx +0 -375
  98. package/srcbefore27-11/TabexComponents/Headers/CategoryFeaturingHeader/CategoryFeaturingHeader.jsx +0 -1056
  99. package/srcbefore27-11/TabexComponents/Headers/CenteredLogoHeaderWithSlider/CenteredLogoHeaderWithSlider.jsx +0 -1498
  100. package/srcbefore27-11/TabexComponents/Headers/ClassicHeader/ClassicHeader.jsx +0 -1289
  101. package/srcbefore27-11/TabexComponents/Headers/DownloadApp/DownloadApp.jsx +0 -76
  102. package/srcbefore27-11/TabexComponents/Headers/ElegantHeader/ElegantHeader.jsx +0 -907
  103. package/srcbefore27-11/TabexComponents/Headers/FloatingIcons/FloatingIcons.jsx +0 -358
  104. package/srcbefore27-11/TabexComponents/Headers/Gotoheader/Gotoheader.jsx +0 -875
  105. package/srcbefore27-11/TabexComponents/Headers/Header4/Header4.jsx +0 -622
  106. package/srcbefore27-11/TabexComponents/Headers/Header8/Header8 copy.jsx +0 -1026
  107. package/srcbefore27-11/TabexComponents/Headers/Header8/Header8.jsx +0 -3414
  108. package/srcbefore27-11/TabexComponents/Headers/HeaderRestaurant/HeaderRestaurant.jsx +0 -777
  109. package/srcbefore27-11/TabexComponents/Headers/HeaderWithAdSlider/HeaderWithAdSlider.jsx +0 -933
  110. package/srcbefore27-11/TabexComponents/Headers/HeaderWithSearchOnCenter/HeaderWithSearchOnCenter.jsx +0 -710
  111. package/srcbefore27-11/TabexComponents/Headers/HeaderWithUtilityBar/HeaderWithUtilityBar.jsx +0 -902
  112. package/srcbefore27-11/TabexComponents/Headers/Header_threesectionslogocentered/Header_threesectionslogocentered.jsx +0 -1347
  113. package/srcbefore27-11/TabexComponents/Headers/Headerresponsive/Headerresponsive.jsx +0 -1566
  114. package/srcbefore27-11/TabexComponents/Headers/Headerresponsive/Headerresponsive11-1.jsx +0 -1201
  115. package/srcbefore27-11/TabexComponents/Headers/Headerresponsive/HeaderresponsiveOriginal.jsx +0 -990
  116. package/srcbefore27-11/TabexComponents/Headers/Headerresponsive/HeaderresponsiveStyle2 copy.jsx +0 -1639
  117. package/srcbefore27-11/TabexComponents/Headers/Headerresponsive/HeaderresponsiveStyle2.jsx +0 -7163
  118. package/srcbefore27-11/TabexComponents/Headers/Headerresponsive/Headerresponsivenew.jsx +0 -1327
  119. package/srcbefore27-11/TabexComponents/Headers/HeaderwithContactinfo/HeaderwithContactinfo.jsx +0 -941
  120. package/srcbefore27-11/TabexComponents/Headers/MarqueeHeader/MarqueeHeader.jsx +0 -80
  121. package/srcbefore27-11/TabexComponents/Headers/Minimalheader/Minimalheader.jsx +0 -846
  122. package/srcbefore27-11/TabexComponents/Headers/Modernheader/Modernheader.jsx +0 -1198
  123. package/srcbefore27-11/TabexComponents/Headers/ParentCollectionsComponent/ParentCollectionsComponent.jsx +0 -385
  124. package/srcbefore27-11/TabexComponents/Headers/SearchCenteredHeader/SearchCenteredHeader.jsx +0 -784
  125. package/srcbefore27-11/TabexComponents/Headers/SearchFocusedHeader/SearchFocusedHeader.jsx +0 -1186
  126. package/srcbefore27-11/TabexComponents/Headers/Simpleheader/Simpleheader.jsx +0 -3692
  127. package/srcbefore27-11/TabexComponents/Headers/SocialMediaSection/SocialMediaSection.jsx +0 -266
  128. package/srcbefore27-11/TabexComponents/Headers/StylishHeader/StylishHeader.jsx +0 -860
  129. package/srcbefore27-11/TabexComponents/Headers/Subheader/Subheader copy.jsx +0 -950
  130. package/srcbefore27-11/TabexComponents/Headers/Subheader/Subheader.jsx +0 -1052
  131. package/srcbefore27-11/TabexComponents/Headers/Subheader/Subheader13-3.jsx +0 -685
  132. package/srcbefore27-11/TabexComponents/Headers/Subheader/SubheaderOriginal.jsx +0 -517
  133. package/srcbefore27-11/TabexComponents/Headers/Subheader/Subheadernew.jsx +0 -555
  134. package/srcbefore27-11/TabexComponents/Headers/SubheaderDropdown/SubheaderDropdown.jsx +0 -610
  135. package/srcbefore27-11/TabexComponents/Headers/ThreeTieredHeader/ThreeTieredHeader.jsx +0 -1049
  136. package/srcbefore27-11/TabexComponents/Headers/TwoTieredHeader/TwoTieredHeader.jsx +0 -1095
  137. package/srcbefore27-11/TabexComponents/Headers/TwoTieredWithCenteredLogoHeader/TwoTieredWithCenteredLogoHeader.jsx +0 -979
  138. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/BacgroundThreeImageWithCategories/BacgroundThreeImageWithCategories.jsx +0 -533
  139. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/BackgroundFiveImageStructure/BackgroundFiveImageStructure.jsx +0 -338
  140. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/BackgroundImageWithTopContent/BackgroundImageWithTopContent.jsx +0 -872
  141. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/BackgroundImageWithTopContent/BackgroundImageWithTopContentrecent.jsx +0 -895
  142. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/BackgroundSectionWithServicesCards/BackgroundSectionWithServicesCards.jsx +0 -302
  143. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Backgroundimage1/Backgroundimage1.jsx +0 -314
  144. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Backgroundimage_with_toppill/Backgroundimage_with_toppill.jsx +0 -318
  145. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/BackgroundimageandTextsection/BackgroundimageandTextsection.jsx +0 -179
  146. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Bgimagewithsearchbar/Bgimagewithsearchbar.jsx +0 -201
  147. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/CollapsableSection/CollapsableSection.jsx +0 -421
  148. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/DynamicForm/DynamicForm copy 2.jsx +0 -583
  149. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/DynamicForm/DynamicForm copy.jsx +0 -291
  150. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/DynamicForm/DynamicForm.jsx +0 -822
  151. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/DynamicForm/DynamicForm19-8beforeattach.jsx +0 -789
  152. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/DynamicForm/DynamicForm22-7.jsx +0 -787
  153. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/DynamicForm/habal +0 -348
  154. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Filterwithcategoriespcoll/Filterwithcategoriespcoll.jsx +0 -387
  155. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/FullVideoSection/FullVideoSection.jsx +0 -268
  156. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/MapsSection/MapsSection.jsx +0 -295
  157. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/PopupCountryComponent/PopupCountryComponent.jsx +0 -120
  158. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Popupcomponent/Popupcomponent.jsx +0 -119
  159. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Searchcomponent/Searchcomponent.jsx +0 -99
  160. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Section_with_rightbgcont/Section_with_rightbgcont.jsx +0 -146
  161. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/TextSectionConnectToWA/TextSectionConnectToWA.jsx +0 -489
  162. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Threebgimages/Threebgimages.jsx +0 -296
  163. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages copy.jsx +0 -396
  164. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages.jsx +0 -633
  165. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/VideosSection/VideosSection.jsx +0 -509
  166. package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSection copy 2.jsx +0 -1399
  167. package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSection copy 3.jsx +0 -1656
  168. package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSection copy.jsx +0 -1540
  169. package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSection.jsx +0 -2323
  170. package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSection13-3.jsx +0 -1596
  171. package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSection21-10.jsx +0 -1872
  172. package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSection21-11beforeform.jsx +0 -1891
  173. package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSection_cosmoandmore.jsx +0 -1880
  174. package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSectionwithanomation12-1.jsx +0 -2065
  175. package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection2/CardsSection2.jsx +0 -726
  176. package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSectionwithfilter/CardsSectionwithfilter.jsx +0 -719
  177. package/srcbefore27-11/TabexComponents/Sections/Cards/ElegantCategoriesCardSection/ElegantCategoriesCardSection.jsx +0 -406
  178. package/srcbefore27-11/TabexComponents/Sections/Cards/ModernCardsSection/ModernCardsSection.jsx +0 -966
  179. package/srcbefore27-11/TabexComponents/Sections/Cards/RandomlyStructuredCollectionCards/RandomlyStructuredCollectionCards copy.jsx +0 -646
  180. package/srcbefore27-11/TabexComponents/Sections/Cards/RandomlyStructuredCollectionCards/RandomlyStructuredCollectionCards.jsx +0 -1577
  181. package/srcbefore27-11/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.jsx +0 -596
  182. package/srcbefore27-11/TabexComponents/Sections/Cards/UsersCardsSection/UsersCardsSection.jsx +0 -383
  183. package/srcbefore27-11/TabexComponents/Sections/Slideshow/AboutSection/AboutSection.jsx +0 -342
  184. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Backgroundimage_with_topcircle/Backgroundimage_with_topcircle.jsx +0 -161
  185. package/srcbefore27-11/TabexComponents/Sections/Slideshow/ContactUsSection/ContactUsSection.jsx +0 -394
  186. package/srcbefore27-11/TabexComponents/Sections/Slideshow/CountDownSection/CountDownSection.jsx +0 -174
  187. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection copy.jsx +0 -382
  188. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection.jsx +0 -651
  189. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection19-11.jsx +0 -757
  190. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection20-2.jsx +0 -1017
  191. package/srcbefore27-11/TabexComponents/Sections/Slideshow/HorizontalContactUsSection/HorizontalContactUsSection.jsx +0 -346
  192. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx +0 -3027
  193. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Image_with_rightwords/Image_with_rightwords.jsx +0 -141
  194. package/srcbefore27-11/TabexComponents/Sections/Slideshow/MarqueeSection/MarqueeSection.jsx +0 -103
  195. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Preloaderone/Preloaderone.jsx +0 -49
  196. package/srcbefore27-11/TabexComponents/Sections/Slideshow/ServiceSectionWithImage/ServiceSectionWithImage.jsx +0 -376
  197. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Servicesection/Servicesection.jsx +0 -384
  198. package/srcbefore27-11/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards copy.jsx +0 -1576
  199. package/srcbefore27-11/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards.jsx +0 -1989
  200. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshow_with_rotatedsquare/Slideshow_with_rotatedsquare.jsx +0 -226
  201. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshow_with_squarebg/Slideshow_with_squarebg.jsx +0 -149
  202. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowdifferentanimations/Slideshowdifferentanimations.jsx +0 -143
  203. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade copy.jsx +0 -634
  204. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade.jsx +0 -474
  205. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide copy.jsx +0 -527
  206. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide.jsx +0 -665
  207. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowslide/SlideshowslideOriginal.jsx +0 -477
  208. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowslide/SlideshowslideRecent.jsx +0 -1217
  209. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslideoriginal8-5.jsx +0 -614
  210. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowzoom/Arrow.jsx +0 -91
  211. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom copy.jsx +0 -380
  212. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom.jsx +0 -741
  213. package/srcbefore27-11/TabexComponents/Sections/Slideshow/TableSection/TableSection.jsx +0 -423
  214. package/srcbefore27-11/TabexComponents/Sections/Slideshow/ThreeSectionsWithSlideshow/ThreeSectionsWithSlideshow copy.jsx +0 -284
  215. package/srcbefore27-11/TabexComponents/Sections/Slideshow/ThreeSectionsWithSlideshow/ThreeSectionsWithSlideshow.jsx +0 -636
  216. package/srcbefore27-11/TabexComponents/Sections/Slideshow/TwoWayServiceSectionWithImage/TwoWayServiceSectionWithImage.jsx +0 -402
  217. package/srcbefore27-11/TabexComponents/StaticPages/AccountInformation/AccountInformation.jsx +0 -234
  218. package/srcbefore27-11/TabexComponents/StaticPages/AddReview/AddReview.jsx +0 -306
  219. package/srcbefore27-11/TabexComponents/StaticPages/Afiiliatesignup/Afiiliatesignup.jsx +0 -364
  220. package/srcbefore27-11/TabexComponents/StaticPages/CartSlider/CartSlider.jsx +0 -1000
  221. package/srcbefore27-11/TabexComponents/StaticPages/Categoriesdropdown/Categoriesdropdown.jsx +0 -460
  222. package/srcbefore27-11/TabexComponents/StaticPages/Checkout/Checkout copy.jsx +0 -1306
  223. package/srcbefore27-11/TabexComponents/StaticPages/Checkout/Checkout.jsx +0 -2506
  224. package/srcbefore27-11/TabexComponents/StaticPages/Checkout/Checkout10-1.jsx +0 -1633
  225. package/srcbefore27-11/TabexComponents/StaticPages/Checkout/Checkout12-12beforeextras.jsx +0 -1999
  226. package/srcbefore27-11/TabexComponents/StaticPages/Checkout/Checkout26-9.jsx +0 -1593
  227. package/srcbefore27-11/TabexComponents/StaticPages/Checkout/Checkout9-9.jsx +0 -1574
  228. package/srcbefore27-11/TabexComponents/StaticPages/Compare/Compare.jsx +0 -79
  229. package/srcbefore27-11/TabexComponents/StaticPages/Filter/CollectionsFilterHorizontal.jsx +0 -245
  230. package/srcbefore27-11/TabexComponents/StaticPages/Filter/Filter copy 2.jsx +0 -2888
  231. package/srcbefore27-11/TabexComponents/StaticPages/Filter/Filter copy.jsx +0 -1450
  232. package/srcbefore27-11/TabexComponents/StaticPages/Filter/Filter.jsx +0 -3459
  233. package/srcbefore27-11/TabexComponents/StaticPages/Filter/Filter1-5.jsx +0 -2624
  234. package/srcbefore27-11/TabexComponents/StaticPages/Filter/Filter13-11.jsx +0 -2758
  235. package/srcbefore27-11/TabexComponents/StaticPages/Filter/Filter14-8.jsx +0 -2753
  236. package/srcbefore27-11/TabexComponents/StaticPages/Filter/Filter17-9.jsx +0 -1495
  237. package/srcbefore27-11/TabexComponents/StaticPages/Filter/VariantFilter.jsx +0 -1271
  238. package/srcbefore27-11/TabexComponents/StaticPages/InnerGroups/InnerGroups.jsx +0 -62
  239. package/srcbefore27-11/TabexComponents/StaticPages/Login/FacebookLoginButton.jsx +0 -50
  240. package/srcbefore27-11/TabexComponents/StaticPages/Login/GoogleLoginButton.jsx +0 -35
  241. package/srcbefore27-11/TabexComponents/StaticPages/Login/Login copy.jsx +0 -1060
  242. package/srcbefore27-11/TabexComponents/StaticPages/Login/Login.jsx +0 -616
  243. package/srcbefore27-11/TabexComponents/StaticPages/OrderSuccess/OrderSuccess.jsx +0 -693
  244. package/srcbefore27-11/TabexComponents/StaticPages/OrderSuccess/OrderSuccess2.jsx +0 -173
  245. package/srcbefore27-11/TabexComponents/StaticPages/Ordershistory/Ordershistory.jsx +0 -1831
  246. package/srcbefore27-11/TabexComponents/StaticPages/Policies/Policies.jsx +0 -291
  247. package/srcbefore27-11/TabexComponents/StaticPages/PrivacyPolicy/PrivacyPolicy.jsx +0 -194
  248. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Addreviewform.jsx +0 -183
  249. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/AddreviewformOriginal.jsx +0 -128
  250. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Article_itemtype.jsx +0 -268
  251. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/DescriptionContent.jsx +0 -190
  252. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/ProductExtraFields.jsx +0 -225
  253. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/ProductExtras.jsx +0 -224
  254. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/ProductFileUploader.jsx +0 -136
  255. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/ProductHeaderPricing.jsx +0 -347
  256. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/ProductReviews.jsx +0 -262
  257. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Product_itemtype.jsx +0 -5566
  258. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Product_itemtype10-1.jsx +0 -1554
  259. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Product_itemtype3-11.jsx +0 -1827
  260. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Product_itemtype31-3.jsx +0 -1351
  261. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Product_itemtypeUpdated.jsx +0 -1566
  262. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Product_itemtypeeuro.jsx +0 -3101
  263. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Productinfo.jsx +0 -3047
  264. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Productinfo13-5.jsx +0 -2103
  265. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Productinfo_28_6.jsx +0 -2189
  266. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Productinfotoday.jsx +0 -2166
  267. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Service_itemtype.js +0 -2714
  268. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Service_itemtype.jsx +0 -2206
  269. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Service_itemtypetill28-4-2025.jsx +0 -1158
  270. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Serviceinfotabs.jsx +0 -1117
  271. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Serviceinfotabs4-5.jsx +0 -1043
  272. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Serviceinfotabstill28-4-2025.jsx +0 -1040
  273. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Variantoptions.jsx +0 -905
  274. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Variantoptions21-9.jsx +0 -324
  275. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/staticroutersidenav.module.css +0 -145
  276. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Addreviewform.jsx +0 -183
  277. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/AddreviewformOriginal.jsx +0 -128
  278. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/DescriptionContent.jsx +0 -140
  279. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/ProductExtraFields.jsx +0 -225
  280. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/ProductHeaderPricing.jsx +0 -310
  281. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/ProductReviews.jsx +0 -235
  282. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Product_itemtype.jsx +0 -1672
  283. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Product_itemtype10-1.jsx +0 -1554
  284. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Product_itemtype31-3.jsx +0 -1351
  285. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Product_itemtypeUpdated.jsx +0 -1566
  286. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Productinfo.jsx +0 -1804
  287. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Service_itemtype.jsx +0 -560
  288. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Serviceinfotabs.jsx +0 -928
  289. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Variantoptions.jsx +0 -597
  290. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Variantoptions21-9.jsx +0 -324
  291. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/staticroutersidenav.module.css +0 -145
  292. package/srcbefore27-11/TabexComponents/StaticPages/RefundPolicy/RefundPolicy.jsx +0 -194
  293. package/srcbefore27-11/TabexComponents/StaticPages/Resetpassword/Resetpassword.jsx +0 -346
  294. package/srcbefore27-11/TabexComponents/StaticPages/Searchlist/Searchlist.jsx +0 -367
  295. package/srcbefore27-11/TabexComponents/StaticPages/ShippingPolicy/ShippingPolicy.jsx +0 -222
  296. package/srcbefore27-11/TabexComponents/StaticPages/Signup/CustomerAddressForm.jsx +0 -277
  297. package/srcbefore27-11/TabexComponents/StaticPages/Signup/CustomerInformationForm copy.jsx +0 -1135
  298. package/srcbefore27-11/TabexComponents/StaticPages/Signup/CustomerInformationForm.jsx +0 -1505
  299. package/srcbefore27-11/TabexComponents/StaticPages/Signup/CustomerInformationForm12-5beforeemailrequired.jsx +0 -1476
  300. package/srcbefore27-11/TabexComponents/StaticPages/Signup/Signup.jsx +0 -199
  301. package/srcbefore27-11/TabexComponents/StaticPages/Staticpagesrouter/Staticpagesrouter.jsx +0 -292
  302. package/srcbefore27-11/TabexComponents/StaticPages/TermsConditions/TermsConditions.jsx +0 -219
  303. package/srcbefore27-11/TabexComponents/StaticPages/VendorPage/VendorPage.jsx +0 -162
  304. package/srcbefore27-11/TabexComponents/StaticPages/Viewcart/Viewcart 10-10.jsx +0 -765
  305. package/srcbefore27-11/TabexComponents/StaticPages/Viewcart/Viewcart.jsx +0 -786
  306. package/srcbefore27-11/TabexComponents/StaticPages/Viewcart/Viewcart26-9.jsx +0 -786
  307. package/srcbefore27-11/TabexComponents/StaticPages/Viewcart/ViewcartOriginal.jsx +0 -786
  308. package/srcbefore27-11/TabexComponents/StaticPages/Viewcart/ViewcartUpdated.jsx +0 -1425
  309. package/srcbefore27-11/TabexComponents/StaticPages/Wishlist/Wishlist.jsx +0 -844
  310. package/srcbefore27-11/TabexComponents/StaticPages/Wishlist/Wishlist25-4.jsx +0 -555
  311. package/srcbefore27-11/TabexComponents/StaticPages/Wishlist/Wishlist26-9.jsx +0 -555
  312. package/srcbefore27-11/TabexComponents/StaticPages/Wishlist/WishlistOriginal.jsx +0 -555
  313. package/srcbefore27-11/TabexComponents/StaticPages/Wishlist/WishlistUpdated.jsx +0 -815
  314. package/srcbefore27-11/button.jsx +0 -40
  315. package/srcbefore27-11/index.jsx +0 -353
  316. package/srcbefore27-11/styles/Home.module.css +0 -129
  317. package/srcbefore27-11/styles/cards/Categorcycard_fullimage.module.css +0 -14
  318. package/srcbefore27-11/styles/cards/Categorycard_slidebgscaled.module.css +0 -73
  319. package/srcbefore27-11/styles/cards/Categorycard_withshapes.module.css +0 -189
  320. package/srcbefore27-11/styles/cards/ModernCardWithQuantityButton.module.css +0 -30
  321. package/srcbefore27-11/styles/cards/Productcard6.module.css +0 -9
  322. package/srcbefore27-11/styles/cards/Productccard_with_zoominonhover.module.css +0 -94
  323. package/srcbefore27-11/styles/cards/Prouductcard_with_zoomhover.module.css +0 -61
  324. package/srcbefore27-11/styles/cards/UserCardWithSocialMediaOnHover.module.css +0 -65
  325. package/srcbefore27-11/styles/cards/card23.module.css +0 -60
  326. package/srcbefore27-11/styles/cards/categorycard.module.css +0 -84
  327. package/srcbefore27-11/styles/cards/categorycard3.module.css +0 -50
  328. package/srcbefore27-11/styles/cards/categorycardwithtext.module.css +0 -40
  329. package/srcbefore27-11/styles/cards/generalCardsStyles.module.css +0 -79
  330. package/srcbefore27-11/styles/cards/productcard_animatedbuttons.module.css +0 -139
  331. package/srcbefore27-11/styles/cards/productcard_with_textonhover.module.css +0 -18
  332. package/srcbefore27-11/styles/cards/productcard_withtextonimage.module.css +0 -0
  333. package/srcbefore27-11/styles/cards/productccard_with_imageontopleft.module.css +0 -85
  334. package/srcbefore27-11/styles/general/bootstrap.css +0 -4763
  335. package/srcbefore27-11/styles/general/dropdown.css +0 -206
  336. package/srcbefore27-11/styles/general/editorbardropdown.module.css +0 -94
  337. package/srcbefore27-11/styles/general/filter.module.css +0 -108
  338. package/srcbefore27-11/styles/general/form.module.css +0 -255
  339. package/srcbefore27-11/styles/general/general.module.css +0 -872
  340. package/srcbefore27-11/styles/general/image-gallery.css +0 -531
  341. package/srcbefore27-11/styles/general/react-accessible-accordion.module.css +0 -52
  342. package/srcbefore27-11/styles/general/react-phone-input-2.module.css +0 -927
  343. package/srcbefore27-11/styles/general/scrollbtn.module.css +0 -22
  344. package/srcbefore27-11/styles/general/slick.module.css +0 -166
  345. package/srcbefore27-11/styles/general/tabs.module.css +0 -119
  346. package/srcbefore27-11/styles/general/workplaceeditor.module.css +0 -328
  347. package/srcbefore27-11/styles/globals.css +0 -26
  348. package/srcbefore27-11/styles/headers/CTAHeader.module.css +0 -40
  349. package/srcbefore27-11/styles/headers/CategoryFeaturingHeader.module.css +0 -61
  350. package/srcbefore27-11/styles/headers/Gotoheader.module.css +0 -87
  351. package/srcbefore27-11/styles/headers/Header7.module.css +0 -50
  352. package/srcbefore27-11/styles/headers/HeaderWithAdSlider.module.css +0 -86
  353. package/srcbefore27-11/styles/headers/HeaderWithSearchOnCenter.module.css +0 -101
  354. package/srcbefore27-11/styles/headers/HeaderWithUtilityBar.module.css +0 -46
  355. package/srcbefore27-11/styles/headers/Header_threesectionslogocentered.module.css +0 -84
  356. package/srcbefore27-11/styles/headers/NewHeader.module.css +0 -101
  357. package/srcbefore27-11/styles/headers/SearchFocusedHeader.module.css +0 -62
  358. package/srcbefore27-11/styles/headers/Sideheader.module.css +0 -108
  359. package/srcbefore27-11/styles/headers/Simpleheader.module.css +0 -102
  360. package/srcbefore27-11/styles/headers/classicheader.module.css +0 -16
  361. package/srcbefore27-11/styles/headers/classicheaderstyles.module.css +0 -9
  362. package/srcbefore27-11/styles/headers/dropdown.css +0 -0
  363. package/srcbefore27-11/styles/headers/header4.module.css +0 -175
  364. package/srcbefore27-11/styles/headers/header5.module.css +0 -30
  365. package/srcbefore27-11/styles/headers/header_contactinfo.module.css +0 -53
  366. package/srcbefore27-11/styles/headers/headerresturant.module.css +0 -89
  367. package/srcbefore27-11/styles/headers/modernheader.module.css +0 -45
  368. package/srcbefore27-11/styles/headers/stylishheader.module.css +0 -24
  369. package/srcbefore27-11/styles/headers/subheader.module.css +0 -114
  370. package/srcbefore27-11/styles/headers/threetieredheader.module.css +0 -91
  371. package/srcbefore27-11/styles/sections/BackgroundImageWithTopContent.css +0 -4
  372. package/srcbefore27-11/styles/sections/Backgroundimage1.module.css +0 -17
  373. package/srcbefore27-11/styles/sections/Backgroundimage_with_topcircle.module.css +0 -28
  374. package/srcbefore27-11/styles/sections/Freetext.module.css +0 -18
  375. package/srcbefore27-11/styles/sections/Section_with_rightbgcont.module.css +0 -49
  376. package/srcbefore27-11/styles/sections/Slideshow_with_rotatedsquare.module.css +0 -35
  377. package/srcbefore27-11/styles/sections/Slideshow_with_squarebg.module.css +0 -39
  378. package/srcbefore27-11/styles/staticpages/accordion.module.css +0 -9
  379. package/srcbefore27-11/styles/staticpages/cart.module.css +0 -108
  380. package/srcbefore27-11/styles/staticpages/dropdown.css +0 -196
  381. package/srcbefore27-11/styles/staticpages/filter.module.css +0 -139
  382. package/srcbefore27-11/styles/staticpages/image-gallery.css +0 -481
  383. package/srcbefore27-11/styles/staticpages/login.module.css +0 -155
  384. package/srcbefore27-11/styles/staticpages/productinfo.module.css +0 -54
  385. package/srcbefore27-11/styles/staticpages/shop.module.css +0 -191
  386. package/srcbefore27-11/styles/staticpages/signup.module.css +0 -250
  387. package/srcbefore27-11/styles/staticpages/staticroutersidenav.module.css +0 -129
  388. package/srcbefore27-11/styles/staticpages/viewcart.module.css +0 -129
  389. package/srcbefore27-11/styles/staticpages/wishlist.module.css +0 -29
@@ -1,1505 +0,0 @@
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, defaultstyleswhite, defaultstylestranslatedwhite, selectcustomStyles, selectcustomStylesTranslated } from '../../../StylesJS/Customstyles.js';
7
- import GoogleLogin from '../Login/GoogleLoginButton.jsx';
8
- import FacebookLoginButton from '../Login/FacebookLoginButton.jsx';
9
- import PhoneInput from 'react-phone-input-2';
10
- import { IoMdClose } from '@react-icons/all-files/io/IoMdClose';
11
- import { Modal } from 'react-bootstrap';
12
- const Select = React.lazy(() => import('react-select'));
13
- const CustomerInformationForm = (props) => {
14
- const lang = props.actions.lang;
15
- const langdetect = props.actions.langdetect;
16
- const routingcountext = props.actions.routingcountext;
17
- const FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
18
- const setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
19
- const fetchinstitutecustomerinfosignupQueryContext = props.actions.fetchinstitutecustomerinfosignupQueryContext;
20
- const fetchTabexCountriesQueryContext = props.actions.fetchTabexCountriesQueryContext;
21
- const fetchTabexStatesQueryContext = props.actions.fetchTabexStatesQueryContext;
22
- const fetchTabexCitiesQueryContext = props.actions.fetchTabexCitiesQueryContext;
23
- const FetchTabexStatesPayloadobjContext = props.actions.FetchTabexStatesPayloadobjContext;
24
- const setFetchTabexStatesPayloadobjContext = props.actions.setFetchTabexStatesPayloadobjContext;
25
- const CustomerSignUpMutationContext = props.actions.CustomerSignUpMutationContext;
26
- const fetchAuthorizationQueryContext = props.actions.fetchAuthorizationQueryContext;
27
- const authdetailsContext = props.actions.authdetailsContext;
28
- const instapikey = props.actions.instapikey;
29
- const templatepropcontext = props.actions.templatepropcontext;
30
- const GeneralAPIMutationContext = props.actions.GeneralAPIMutationContext;
31
- const NotificationManager = props.actions.NotificationManager;
32
- const actions = props.actions;
33
- const [customeraddressrequierd, setcustomeraddressrequierd] = useState(fetchAuthorizationQueryContext?.data?.data?.instinfo?.customerAddressrequiered);
34
- const [customervalidateemail, setcustomervalidateemail] = useState(fetchAuthorizationQueryContext?.data?.data?.instinfo?.customervalidateemail);
35
- const [customervalidatephonenumber, setcustomervalidatephonenumber] = useState(fetchAuthorizationQueryContext?.data?.data?.instinfo?.customervalidatephonenumber);
36
- const [validatephonenumbermodal, setvalidatephonenumbermodal] = useState(false);
37
- const [validateemailmodal, setvalidateemailmodal] = useState(false);
38
- const [sectionproperties, setsectionproperties] = useState('');
39
- const [dataloaded, setdataloaded] = useState(false);
40
- const [validatephonenumberpayload, setvalidatephonenumberpayload] = useState({
41
- phonenumber: '',
42
- code: '',
43
- step: 'sendcode',
44
- isvalidated: false,
45
- });
46
- const [validateemailpayload, setvalidateemailpayload] = useState({
47
- email: '',
48
- code: '',
49
- step: 'sendcode',
50
- isvalidated: props.srcfromprops == 'accountinfo' ? true : false,
51
- });
52
- const [payloadobj, setpayloadobj] = useState({
53
- instapikey: instapikey,
54
- name: '',
55
- email: '',
56
- mobile: '',
57
- password: '',
58
- password2: '',
59
- shippingaddress: '',
60
- addedsourcetype: 'Webapp',
61
- instsignupformvalues: [],
62
- countryid: '',
63
- stateid: '',
64
- cityid: '',
65
- countrydialcode: '',
66
- });
67
- const [showpassword, setshowpassword] = useState(false);
68
- const [showpassword2, setshowpassword2] = useState(false);
69
- const [waitingpage, setwaitingpage] = useState(false);
70
-
71
- useEffect(() => {
72
- if (fetchAuthorizationQueryContext.isSuccess) {
73
- setcustomeraddressrequierd(fetchAuthorizationQueryContext?.data?.data?.instinfo?.customerAddressrequiered);
74
- setcustomervalidateemail(fetchAuthorizationQueryContext?.data?.data?.instinfo?.customervalidateemail);
75
- setcustomervalidatephonenumber(fetchAuthorizationQueryContext?.data?.data?.instinfo?.customervalidatephonenumber);
76
- }
77
- }, [fetchAuthorizationQueryContext.isSuccess]);
78
- useEffect(() => {
79
- var tempFetchQueriesEngineContext = { ...FetchQueriesEngineContext };
80
- tempFetchQueriesEngineContext.institutecustomerinfosignup = true;
81
- tempFetchQueriesEngineContext.fetchtabexcountries = true;
82
- setFetchQueriesEngineContext({ ...tempFetchQueriesEngineContext });
83
-
84
- var tempFetchQueriesEngineContext = { ...FetchQueriesEngineContext };
85
- }, []);
86
- useEffect(() => {
87
- if (props.sectionpropertiesprops != undefined && props.sectionpropertiesprops.length != 0) {
88
- setsectionproperties({ ...props.sectionpropertiesprops });
89
- }
90
- }, [props.sectionpropertiesprops]);
91
-
92
- useEffect(() => {
93
- if (fetchinstitutecustomerinfosignupQueryContext.isSuccess) {
94
- if (authdetailsContext.loggedin == true) {
95
- var tempcustomerinfoobj = { ...fetchinstitutecustomerinfosignupQueryContext.data.data.customerinfo };
96
- setpayloadobj({ ...tempcustomerinfoobj });
97
- var tempFetchTabexStatesPayloadobjContext = { ...FetchTabexStatesPayloadobjContext };
98
- if (tempcustomerinfoobj.countryid != null) {
99
- tempFetchTabexStatesPayloadobjContext.country_id = tempcustomerinfoobj.countryid;
100
- }
101
- if (tempcustomerinfoobj.stateid != null) {
102
- tempFetchTabexStatesPayloadobjContext.state_id = tempcustomerinfoobj.stateid;
103
- }
104
- setFetchTabexStatesPayloadobjContext({ ...tempFetchTabexStatesPayloadobjContext });
105
- setdataloaded(true);
106
- } else {
107
- var tempcustomerinfoobj = { ...payloadobj };
108
- if (Array.isArray(fetchinstitutecustomerinfosignupQueryContext?.data?.data?.instsignupformvalues)) {
109
- tempcustomerinfoobj.instsignupformvalues = [...fetchinstitutecustomerinfosignupQueryContext.data.data.instsignupformvalues];
110
- }
111
- setpayloadobj({ ...tempcustomerinfoobj });
112
- setdataloaded(true);
113
- }
114
- }
115
- }, [fetchinstitutecustomerinfosignupQueryContext.isSuccess, fetchinstitutecustomerinfosignupQueryContext.data, authdetailsContext]);
116
- const payloadobjchange = (key, value) => {
117
- var temppayloadobj = { ...payloadobj };
118
- temppayloadobj[key] = value;
119
- setpayloadobj({ ...temppayloadobj });
120
- };
121
- const validateEmailstring = (email) => {
122
- return String(email)
123
- .toLowerCase()
124
- .match(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/);
125
- };
126
- const verifypayload = () => {
127
- var iscompleted = false;
128
- var isshippingaddresscompleted = false;
129
- var passwordvalidation = false;
130
- // password
131
- if (authdetailsContext.loggedin == false) {
132
- if (authdetailsContext?.instinfo?.ispasswordrequired_signup == 1) {
133
- if (payloadobj.password.length != 0) {
134
- if (payloadobj.password == payloadobj.password2) {
135
- passwordvalidation = true;
136
- }
137
- }
138
- } else {
139
- passwordvalidation = true;
140
- }
141
- } else if (authdetailsContext.loggedin == true) {
142
- if (payloadobj.password.length != 0) {
143
- if (payloadobj.password == payloadobj.password2) {
144
- passwordvalidation = true;
145
- }
146
- } else {
147
- passwordvalidation = true;
148
- }
149
- }
150
- if (passwordvalidation == false) {
151
- NotificationManager.warning('', lang.passwordsdontmatch);
152
- }
153
- // address
154
- if (customeraddressrequierd == 1) {
155
- if (payloadobj.countryid.length != 0 && payloadobj.stateid.length != 0 && payloadobj.cityid.length != 0 && payloadobj.shippingaddress.length != 0) {
156
- isshippingaddresscompleted = true;
157
- }
158
- } else {
159
- isshippingaddresscompleted = true;
160
- }
161
- // if (authdetailsContext?.instinfo?.contactinfo.instid == '652e3ae969122') {
162
- // if (payloadobj.name.length < 3) {
163
- // NotificationManager.warning('', langdetect == 'en' ? 'Please Write your Full Name' : 'من فضلك اكتب اسمك كاملاً');
164
- // }
165
- // if (payloadobj.countrydialcode == '20' && payloadobj.mobile.length < 10) {
166
- // NotificationManager.warning('', langdetect == 'en' ? 'Please Write valid phone number' : 'من فضلك اكتب رقم تليفون صحيح');
167
- // }
168
- // }
169
-
170
- if (validateEmailstring(payloadobj.email)) {
171
- if (payloadobj.email.length != 0 && payloadobj.name.length != 0 && payloadobj.mobile.length != 0 && passwordvalidation == true) {
172
- if (isshippingaddresscompleted) {
173
- var signupformismissing = true;
174
- payloadobj.instsignupformvalues.forEach(function (arrayItem) {
175
- if (arrayItem.optional == 1) {
176
- if (arrayItem.customersignupvalue == undefined || arrayItem.customersignupvalue.length == 0) {
177
- signupformismissing = false;
178
- }
179
- }
180
- });
181
- if (signupformismissing) {
182
- iscompleted = true;
183
- } else {
184
- iscompleted = false;
185
- NotificationManager.warning('', lang.completerequiredfields);
186
- }
187
- } else {
188
- iscompleted = false;
189
- NotificationManager.warning('', lang.pleasecompleteaddressmissingfields);
190
- }
191
- } else {
192
- iscompleted = false;
193
- NotificationManager.warning('', lang.fillthemissingfields);
194
- }
195
- } else if (fetchAuthorizationQueryContext?.data?.data?.instinfo?.customerEmailrequiered == 0) {
196
- if (payloadobj.name.length != 0 && payloadobj.mobile.length != 0 && passwordvalidation == true) {
197
- if (isshippingaddresscompleted) {
198
- var signupformismissing = true;
199
- payloadobj.instsignupformvalues.forEach(function (arrayItem) {
200
- if (arrayItem.optional == 1) {
201
- if (arrayItem.customersignupvalue == undefined || arrayItem.customersignupvalue.length == 0) {
202
- signupformismissing = false;
203
- }
204
- }
205
- });
206
- if (signupformismissing) {
207
- iscompleted = true;
208
- } else {
209
- iscompleted = false;
210
- NotificationManager.warning('', lang.completerequiredfields);
211
- }
212
- } else {
213
- iscompleted = false;
214
- NotificationManager.warning('', lang.pleasecompleteaddressmissingfields);
215
- }
216
- } else {
217
- iscompleted = false;
218
- NotificationManager.warning('', lang.fillthemissingfields);
219
- }
220
- } else {
221
- iscompleted = false;
222
- NotificationManager.warning('', lang.writevalidemail);
223
- }
224
- return iscompleted;
225
- };
226
- const signupbuttonfunc = () => {
227
- if (verifypayload() == true) {
228
- var temppayloadobj = { ...payloadobj };
229
- if (authdetailsContext.loggedin == true) {
230
- temppayloadobj.functype = 'edit';
231
- } else {
232
- temppayloadobj.functype = 'add';
233
- }
234
- temppayloadobj.addedsourcetype = 'Webapp';
235
- temppayloadobj.instapikey = instapikey;
236
- if (sectionproperties.redirectsaftersignup != 'Home') {
237
- setwaitingpage(true);
238
- }
239
- CustomerSignUpMutationContext.mutate(temppayloadobj);
240
- }
241
- };
242
-
243
- const formstyles = {
244
- loginbtn: css({
245
- background: templatepropcontext.primarycolor,
246
- color: sectionproperties.generalbtn_textColor,
247
- borderRadius: sectionproperties.generalbtn_borderradius + 'px',
248
- fontSize: sectionproperties.generalbtn_fontsize + 'px',
249
- lineHeight: sectionproperties.generalbtn_fontsize + 'px',
250
- textTransform: sectionproperties.generalbtn_texttransform,
251
- width: sectionproperties.generalbtn_width + 'px',
252
- height: sectionproperties.generalbtn_height + 'px',
253
- ':hover': {
254
- background: templatepropcontext.secondarycolor,
255
- },
256
- }),
257
- btnstyles: css({
258
- width: sectionproperties.generalbtn_width + 'px',
259
- height: sectionproperties.generalbtn_height + 'px',
260
- textTransform: sectionproperties.generalbtn_texttransform,
261
- fontSize: sectionproperties.generalbtn_fontsize + 'px',
262
- color: sectionproperties.generalbtn_textColor,
263
- background: sectionproperties.generalbtn_bgColor,
264
- borderTopLeftRadius: sectionproperties.generalbtn_bordertopleftradius + 'px',
265
- borderTopRightRadius: sectionproperties.generalbtn_bordertoprightradius + 'px',
266
- borderBottomLeftRadius: sectionproperties.generalbtn_borderbottomleftradius + 'px',
267
- borderBottomRightRadius: sectionproperties.generalbtn_borderbottomrightradius + 'px',
268
- fontWeight: sectionproperties.generalbtn_fontweight,
269
- transition: '.3s',
270
- ':hover': {
271
- background: sectionproperties.generalbtn_bgColoronhover,
272
- color: sectionproperties.generalbtn_textColoronhover,
273
- },
274
- }),
275
- signupbtn: css({
276
- width: sectionproperties.signup_btn_width + 'px',
277
- height: sectionproperties.signup_btn_height + 'px',
278
- borderRadius: sectionproperties.signup_btn_borderBottomLeftRadius + 'px',
279
- textTransform: sectionproperties.signup_btn_texttransform,
280
- fontSize: sectionproperties.signup_btn_fontSize + 'px',
281
- color: sectionproperties.signup_btn_color,
282
- fontWeight: sectionproperties.signup_btn_fontweight,
283
- background: sectionproperties.signup_btnbgcolor_transparent == 'Transparent' ? 'transparent' : sectionproperties.signup_btnbgcolor,
284
- border: sectionproperties.signup_btn_borderwidth + 'px solid ' + sectionproperties.signupbtn_bordercolor,
285
- transition: '.3s',
286
- ':hover': {
287
- background: sectionproperties.signup_btnbgcoloroonhovertransparent == 'Transparent' ? 'transparent' : sectionproperties.signup_btnbgcoloroonhover,
288
- color: sectionproperties.signup_btn_coloronhover,
289
- borderColor: sectionproperties.signup_btn_coloronhover,
290
- },
291
- }),
292
- input_label_name: css({
293
- color: sectionproperties.form_labelcolor,
294
- textTransform: sectionproperties.form_labeltexttransform,
295
- fontWeight: sectionproperties.form_labelfontweight,
296
- fontSize: sectionproperties.form_labelfontsize + 'px',
297
- marginBottom: sectionproperties.inputfieldbordertype == 'All' ? 10 : 0,
298
- }),
299
- form_control: css({
300
- background: 'transparent',
301
- color: sectionproperties.inputfieldcolor,
302
- fontSize: sectionproperties.inputfieldfontsize + 'px',
303
- position: 'relative',
304
- display: 'flex',
305
- alignItems: 'center',
306
- display: 'block',
307
- width: '100%',
308
- // height: '35px',
309
- padding: '0 10px',
310
- transition: '.3s',
311
- border: sectionproperties.inputfieldbordertype == 'All' ? sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor : 0,
312
- borderBottom: sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor,
313
- borderRadius: sectionproperties.inputfieldborderradius + 'px',
314
- height: sectionproperties.inputfieldheight + 'px',
315
- background: sectionproperties.input_bgcolor,
316
- color: sectionproperties.inputfieldcolor,
317
- ':focus': {
318
- borderColor: sectionproperties.inputfeildbordercoloronfocus,
319
- },
320
- ':focus .login_input_icon': {
321
- color: sectionproperties.inputfeildbordercoloronfocus,
322
- },
323
- }),
324
- checkbox: css({
325
- color: sectionproperties.checkbox_color,
326
- textTransform: sectionproperties.form_labeltexttransform,
327
- fontWeight: sectionproperties.form_labelfontweight,
328
- fontSize: sectionproperties.form_labelfontsize + 'px',
329
- transition: '.3s',
330
- ':hover': {
331
- color: sectionproperties.checkbox_texthovercolor,
332
- },
333
- 'input:checked': {
334
- color: sectionproperties.checkbox_checkedcolor,
335
- },
336
- }),
337
- checkboxinputstyles: css({
338
- ':hover:not(:checked)': {
339
- boxShadow: 'inset 0 0 0 2px ' + sectionproperties.checkbox_texthovercolor,
340
- },
341
- ':checked': {
342
- boxShadow: 'inset 0 0 0 2px ' + sectionproperties.checkbox_checkedcolor,
343
- },
344
- }),
345
- svgstyles: css({
346
- stroke: 'var(--stroke, ' + sectionproperties.checkbox_checkedcolor + ')',
347
- }),
348
- terms: css({
349
- ':hover': {
350
- transition: '.3s',
351
- color: sectionproperties.termsandconditionsecondarycolor,
352
- },
353
- }),
354
- };
355
-
356
- const PersonalInformation = () => {
357
- return (
358
- <div className="row m-0 w-100">
359
- <div className={sectionproperties.cardstyletype == 'Style 1' ? 'col-lg-4 col-md-12 col-sm-12 mb-4 p-sm-0' : 'col-lg-12 col-md-12 col-sm-12 mb-4 p-sm-0'}>
360
- <label className={`${formstyles.input_label_name}` + ' d-flex align-items-start '}>
361
- {lang.name} {props.srcfromprops == 'signup' && <span class="text-danger ml-1 mr-1">*</span>}
362
- </label>
363
- <input
364
- type="text"
365
- className={`${loginstyles.form_control} ${formstyles.form_control}`}
366
- value={payloadobj.name}
367
- onChange={(event) => {
368
- payloadobjchange('name', event.target.value);
369
- }}
370
- style={{
371
- background: sectionproperties.input_bgcolor,
372
- }}
373
- />
374
- </div>
375
-
376
- <div
377
- className={sectionproperties.cardstyletype == 'Style 1' ? 'col-lg-4 col-md-12 col-sm-12 mb-4 p-sm-0 flex-column' : 'col-lg-12 col-md-12 col-sm-12 mb-4 p-sm-0 flex-column'}
378
- style={{
379
- display:
380
- authdetailsContext?.instinfo?.customerEmailrequiered == 1
381
- ? 'flex'
382
- : sectionproperties.showemail == 'Hide' && authdetailsContext?.instinfo?.customerEmailrequiered == 0
383
- ? 'none'
384
- : authdetailsContext?.instinfo?.contactinfo.instid == '6808c6295b598'
385
- ? 'none'
386
- : 'flex',
387
- }}
388
- >
389
- <label className={`${formstyles.input_label_name}` + ' d-flex align-items-start '}>
390
- {lang.email} {props.srcfromprops == 'signup' && authdetailsContext?.instinfo?.customerEmailrequiered == 1 && <span class="text-danger ml-1 mr-1">*</span>}
391
- </label>
392
- {sectionproperties.showemaildisclaimer == 'Show' && <sup>{langdetect == 'en' ? sectionproperties.emaildisclaimeren : sectionproperties.emaildisclaimerar}</sup>}
393
- <input
394
- className={`${loginstyles.form_control} ${formstyles.form_control}`}
395
- type="text"
396
- textplaceholder=""
397
- value={payloadobj.email}
398
- disabled={validateemailpayload.isvalidated}
399
- onChange={(event) => {
400
- payloadobjchange('email', event.target.value);
401
- }}
402
- style={{
403
- background: sectionproperties.input_bgcolor,
404
- }}
405
- />
406
- </div>
407
- <div className={sectionproperties.cardstyletype == 'Style 1' ? 'col-lg-4 col-md-12 col-sm-12 mb-4 p-sm-0' : 'col-lg-12 col-md-12 col-sm-12 mb-4 p-sm-0'}>
408
- <label className={formstyles.input_label_name + ' d-flex justify-content-start '}>
409
- {lang.phonenumber}
410
- {props.srcfromprops == 'signup' && <span class="text-danger ml-1 mr-1">*</span>}
411
- </label>
412
- {/* <input
413
- className={`${loginstyles.form_control} ${formstyles.form_control}`}
414
- type="text"
415
- textplaceholder=""
416
- value={payloadobj.mobile}
417
- onChange={(event) => {
418
- payloadobjchange('mobile', event.target.value);
419
- }}
420
- /> */}
421
- <PhoneInput
422
- className={`${loginstyles.form_control} ${formstyles.form_control}`}
423
- country={sectionproperties.countrycode == 'SA' ? 'sa' : sectionproperties.countrycode == 'QA' ? 'qa' : 'eg'}
424
- enableSearch={true}
425
- autoFormat={true}
426
- value={payloadobj.mobile}
427
- inputStyle={{
428
- color: sectionproperties.inputfieldcolor,
429
- }}
430
- onChange={(event, country) => {
431
- var temp = { ...payloadobj };
432
- temp.mobile = event;
433
- temp.countrydialcode = country.dialCode;
434
- setpayloadobj({ ...temp });
435
- // payloadobjchange('mobile', event);
436
-
437
- // alert(JSON.stringify(country));
438
- // alert(JSON.stringify(country));
439
- }}
440
- style={{ direction: 'ltr', color: sectionproperties.inputfieldcolor }}
441
- />
442
- </div>
443
- </div>
444
- );
445
- };
446
- const Address = () => {
447
- return (
448
- <div
449
- className="row m-0 w-100"
450
- style={{
451
- display: sectionproperties.hidecountrystatecity == 'Show' && sectionproperties.hideaddress == 'Show' ? 'flex' : 'none',
452
- }}
453
- >
454
- {sectionproperties.hidecountrystatecity == 'Show' && (
455
- <div className={sectionproperties.cardstyletype == 'Style 1' ? 'col-lg-4 col-md-12 col-sm-12 mb-4 p-sm-0' : 'col-lg-12 col-md-12 col-sm-12 mb-4 p-sm-0'}>
456
- <div class={sectionproperties.inputfieldcolor == '#ffffff' ? 'col-lg-12 p-0 selectwhite' : 'col-lg-12 p-0'}>
457
- <label className={formstyles.input_label_name + ' d-flex justify-content-start '}>
458
- {lang.country}
459
- {customeraddressrequierd == 1 && (
460
- <span class="ml-1 mr-1" style={{ color: 'red' }}>
461
- *
462
- </span>
463
- )}
464
- </label>
465
- {fetchTabexCountriesQueryContext.isFetching && (
466
- <div className="col-lg-4 col-md-12 col-sm-12 mb-3 p-sm-0 d-flex justify-content-center align-items-center">
467
- <CircularProgress color="black" width="20px" height="20px" duration="1s" />
468
- </div>
469
- )}
470
- {!fetchTabexCountriesQueryContext.isFetching && fetchTabexCountriesQueryContext.isSuccess && (
471
- <Select
472
- placeholder={''}
473
- options={fetchTabexCountriesQueryContext.data.data.countries}
474
- getOptionLabel={(option) => {
475
- var crname = '';
476
- if (langdetect == 'en') {
477
- crname = option.name;
478
- } else if (langdetect == 'ar') {
479
- if (option.name_ar != null) {
480
- crname = option.name_ar;
481
- } else {
482
- crname = option.name;
483
- }
484
- }
485
- return crname;
486
- }}
487
- getOptionValue={(option) => option.id}
488
- autocomplete="new-password"
489
- value={fetchTabexCountriesQueryContext.data.data.countries.filter((option) => option.id == payloadobj.countryid)}
490
- onChange={(option) => {
491
- var tempFetchTabexStatesPayloadobjContext = { ...FetchTabexStatesPayloadobjContext };
492
- tempFetchTabexStatesPayloadobjContext.functype = 'states';
493
- tempFetchTabexStatesPayloadobjContext.country_id = option.id;
494
- setFetchTabexStatesPayloadobjContext({ ...tempFetchTabexStatesPayloadobjContext });
495
- payloadobjchange('countryid', option.id);
496
- }}
497
- styles={langdetect == 'en' ? defaultstyles : defaultstylestranslated}
498
- isSearchable={true}
499
- />
500
- )}
501
- {/* {!fetchTabexCountriesQueryContext.isFetching && fetchTabexCountriesQueryContext.isSuccess && sectionproperties.inputfieldcolor == '#ffffff' && (
502
- <Select
503
- options={fetchTabexCountriesQueryContext.data.data.countries}
504
- getOptionLabel={(option) => {
505
- var crname = '';
506
- if (langdetect == 'en') {
507
- crname = option.name;
508
- } else if (langdetect == 'ar') {
509
- if (option.name_ar != null) {
510
- crname = option.name_ar;
511
- } else {
512
- crname = option.name;
513
- }
514
- }
515
- return crname;
516
- }}
517
- getOptionValue={(option) => option.id}
518
- autocomplete="new-password"
519
- value={fetchTabexCountriesQueryContext.data.data.countries.filter((option) => option.id == payloadobj.countryid)}
520
- onChange={(option) => {
521
- var tempFetchTabexStatesPayloadobjContext = { ...FetchTabexStatesPayloadobjContext };
522
- tempFetchTabexStatesPayloadobjContext.functype = 'states';
523
- tempFetchTabexStatesPayloadobjContext.country_id = option.id;
524
- setFetchTabexStatesPayloadobjContext({ ...tempFetchTabexStatesPayloadobjContext });
525
- payloadobjchange('countryid', option.id);
526
- }}
527
- styles={langdetect == 'en' ? defaultstyleswhite : defaultstylestranslatedwhite}
528
- isSearchable={true}
529
- />
530
- )} */}
531
- </div>
532
- </div>
533
- )}
534
- {sectionproperties.hidecountrystatecity == 'Show' && (
535
- <div className={sectionproperties.cardstyletype == 'Style 1' ? 'col-lg-4 col-md-12 col-sm-12 mb-4 p-sm-0' : 'col-lg-12 col-md-12 col-sm-12 mb-4 p-sm-0'}>
536
- <div class={sectionproperties.inputfieldcolor == '#ffffff' ? 'col-lg-12 p-0 selectwhite' : 'col-lg-12 p-0'}>
537
- <label className={formstyles.input_label_name + ' d-flex justify-content-start '}>
538
- {lang.choosestategov}{' '}
539
- {customeraddressrequierd == 1 && (
540
- <span class="ml-1 mr-1" style={{ color: 'red' }}>
541
- *
542
- </span>
543
- )}
544
- </label>
545
- {fetchTabexStatesQueryContext.isFetching && (
546
- <div className="col-lg-12 col-md-12 col-sm-12 mb-3 p-sm-0 d-flex justify-content-center align-items-center">
547
- <CircularProgress color="black" width="20px" height="20px" duration="1s" />
548
- </div>
549
- )}
550
- {FetchTabexStatesPayloadobjContext.country_id == '' && (
551
- <Select styles={langdetect == 'en' ? defaultstyles : defaultstylestranslated} placeholder={''} isSearchable={true} />
552
- )}
553
- {!fetchTabexStatesQueryContext.isFetching && fetchTabexStatesQueryContext.isSuccess && (
554
- <Select
555
- options={fetchTabexStatesQueryContext.data.data.states}
556
- getOptionLabel={(option) => {
557
- var crname = '';
558
- if (langdetect == 'en') {
559
- crname = option.name;
560
- } else if (langdetect == 'ar') {
561
- if (option.name_ar != null) {
562
- crname = option.name_ar;
563
- } else {
564
- crname = option.name;
565
- }
566
- }
567
- return crname;
568
- }}
569
- getOptionValue={(option) => option.id}
570
- autocomplete="new-password"
571
- value={fetchTabexStatesQueryContext.data.data.states.filter((option) => option.id == payloadobj.stateid)}
572
- onChange={(option) => {
573
- var tempFetchTabexStatesPayloadobjContext = { ...FetchTabexStatesPayloadobjContext };
574
- tempFetchTabexStatesPayloadobjContext.functype = 'cities';
575
- tempFetchTabexStatesPayloadobjContext.state_id = option.id;
576
- setFetchTabexStatesPayloadobjContext({ ...tempFetchTabexStatesPayloadobjContext });
577
- payloadobjchange('stateid', option.id);
578
- }}
579
- styles={langdetect == 'en' ? defaultstyles : defaultstylestranslated}
580
- isSearchable={true}
581
- placeholder={''}
582
- />
583
- )}
584
- {/* {!fetchTabexStatesQueryContext.isFetching && fetchTabexStatesQueryContext.isSuccess && sectionproperties.inputfieldcolor == '#ffffff' && (
585
- <Select
586
- options={fetchTabexStatesQueryContext.data.data.states}
587
- getOptionLabel={(option) => {
588
- var crname = '';
589
- if (langdetect == 'en') {
590
- crname = option.name;
591
- } else if (langdetect == 'ar') {
592
- if (option.name_ar != null) {
593
- crname = option.name_ar;
594
- } else {
595
- crname = option.name;
596
- }
597
- }
598
- return crname;
599
- }}
600
- getOptionValue={(option) => option.id}
601
- autocomplete="new-password"
602
- value={fetchTabexStatesQueryContext.data.data.states.filter((option) => option.id == payloadobj.stateid)}
603
- onChange={(option) => {
604
- var tempFetchTabexStatesPayloadobjContext = { ...FetchTabexStatesPayloadobjContext };
605
- tempFetchTabexStatesPayloadobjContext.functype = 'cities';
606
- tempFetchTabexStatesPayloadobjContext.state_id = option.id;
607
- setFetchTabexStatesPayloadobjContext({ ...tempFetchTabexStatesPayloadobjContext });
608
- payloadobjchange('stateid', option.id);
609
- }}
610
- styles={langdetect == 'en' ? defaultstyleswhite : defaultstylestranslatedwhite}
611
- placeholder={lang.choosestategov}
612
- isSearchable={true}
613
- />
614
- )} */}
615
- </div>
616
- </div>
617
- )}
618
-
619
- {sectionproperties.hidecountrystatecity == 'Show' && (
620
- <div className={sectionproperties.cardstyletype == 'Style 1' ? 'col-lg-4 col-md-12 col-sm-12 mb-4 p-sm-0' : 'col-lg-12 col-md-12 col-sm-12 mb-4 p-sm-0'}>
621
- <div class={sectionproperties.inputfieldcolor == '#ffffff' ? 'col-lg-12 p-0 selectwhite' : 'col-lg-12 p-0'}>
622
- <label className={formstyles.input_label_name + ' d-flex justify-content-start '}>
623
- {lang.city}
624
- {customeraddressrequierd == 1 && (
625
- <span class="ml-1 mr-1" style={{ color: 'red' }}>
626
- *
627
- </span>
628
- )}
629
- </label>
630
- {fetchTabexCitiesQueryContext.isFetching && (
631
- <div className="col-lg-12 col-md-12 col-sm-12 mb-3 p-sm-0 d-flex justify-content-center align-items-center">
632
- <CircularProgress color="black" width="20px" height="20px" duration="1s" />
633
- </div>
634
- )}
635
- {FetchTabexStatesPayloadobjContext.country_id == '' && (
636
- <Select placeholder={''} styles={langdetect == 'en' ? defaultstyles : defaultstylestranslated} isSearchable={true} />
637
- )}
638
- {!fetchTabexCitiesQueryContext.isFetching && fetchTabexCitiesQueryContext.isSuccess && (
639
- <Select
640
- options={fetchTabexCitiesQueryContext.data.data.cities}
641
- getOptionLabel={(option) => {
642
- var crname = '';
643
- if (langdetect == 'en') {
644
- crname = option.name;
645
- } else if (langdetect == 'ar') {
646
- if (option.name_ar != null) {
647
- crname = option.name_ar;
648
- } else {
649
- crname = option.name;
650
- }
651
- }
652
- return crname;
653
- }}
654
- getOptionValue={(option) => option.id}
655
- autocomplete="new-password"
656
- value={fetchTabexCitiesQueryContext.data.data.cities.filter((option) => option.id == payloadobj.cityid)}
657
- onChange={(option) => {
658
- payloadobjchange('cityid', option.id);
659
- }}
660
- styles={langdetect == 'en' ? defaultstyles : defaultstylestranslated}
661
- placeholder={''}
662
- isSearchable={true}
663
- />
664
- )}
665
- {/* {!fetchTabexCitiesQueryContext.isFetching && fetchTabexCitiesQueryContext.isSuccess && sectionproperties.inputfieldcolor == '#ffffff' && (
666
- <Select
667
- options={fetchTabexCitiesQueryContext.data.data.cities}
668
- getOptionLabel={(option) => {
669
- var crname = '';
670
- if (langdetect == 'en') {
671
- crname = option.name;
672
- } else if (langdetect == 'ar') {
673
- if (option.name_ar != null) {
674
- crname = option.name_ar;
675
- } else {
676
- crname = option.name;
677
- }
678
- }
679
- return crname;
680
- }}
681
- getOptionValue={(option) => option.id}
682
- autocomplete="new-password"
683
- value={fetchTabexCitiesQueryContext.data.data.cities.filter((option) => option.id == payloadobj.cityid)}
684
- onChange={(option) => {
685
- payloadobjchange('cityid', option.id);
686
- }}
687
- styles={langdetect == 'en' ? defaultstyleswhite : defaultstylestranslatedwhite}
688
- placeholder={lang.choosecity}
689
- isSearchable={true}
690
- />
691
- )} */}
692
- </div>
693
- </div>
694
- )}
695
- {sectionproperties.hideaddress == 'Show' && (
696
- <div className={'col-lg-12 col-md-12 col-sm-12 mb-4 p-sm-0'}>
697
- <label className={`${formstyles.input_label_name}` + ' mb-1 d-flex align-items-start '}>
698
- {lang.address}{' '}
699
- {customeraddressrequierd == 1 && (
700
- <span class="ml-1 mr-1" style={{ color: 'red' }}>
701
- *
702
- </span>
703
- )}
704
- </label>
705
- <div className={loginstyles.wrap_input100}>
706
- <TextareaAutosize
707
- type="text"
708
- className={`${loginstyles.form_control} ${formstyles.form_control}` + ' py-1 '}
709
- value={payloadobj.shippingaddress}
710
- textplaceholder=""
711
- onChange={(event) => {
712
- payloadobjchange('shippingaddress', event.target.value);
713
- }}
714
- style={{ resize: 'none', background: sectionproperties.input_bgcolor }}
715
- />
716
- <span className={loginstyles.login_input_focus}></span>
717
- </div>
718
- </div>
719
- )}
720
- </div>
721
- );
722
- };
723
- const Password = () => {
724
- return (
725
- <div className="row m-0 w-100">
726
- <div className={sectionproperties.cardstyletype == 'Style 1' ? 'col-lg-6 col-md-12 col-sm-12 mb-4 p-sm-0' : 'col-lg-12 col-md-12 col-sm-12 mb-4 p-sm-0'}>
727
- <label className={`${formstyles.input_label_name}` + ' d-flex align-items-start '}>
728
- {lang.password}
729
- {props.srcfromprops == 'signup' && <span class="text-danger ml-1 mr-1">*</span>}
730
- </label>
731
- <input
732
- className={`${loginstyles.form_control} ${formstyles.form_control}`}
733
- type={'password'}
734
- autocomplete="new-password"
735
- textplaceholder=""
736
- value={payloadobj.password}
737
- onChange={(event) => {
738
- payloadobjchange('password', event.target.value);
739
- }}
740
- style={{
741
- background: sectionproperties.input_bgcolor,
742
- }}
743
- />
744
- {/* <div
745
- onClick={() => {
746
- setshowpassword(!showpassword);
747
- }}
748
- className={langdetect == 'en' ? loginstyles.showpassword_input_icon : loginstyles.showpassword_input_icontrans}
749
- >
750
- <i class="h-100 allcentered">
751
- {showpassword == true && <AiOutlineEye size={18} />}
752
- {showpassword == false && <AiOutlineEyeInvisible size={18} />}
753
- </i>
754
- </div> */}
755
- </div>
756
- <div className={sectionproperties.cardstyletype == 'Style 1' ? 'col-lg-6 col-md-12 col-sm-12 mb-4 p-sm-0' : 'col-lg-12 col-md-12 col-sm-12 mb-4 p-sm-0'}>
757
- <label className={`${formstyles.input_label_name}` + ' d-flex align-items-start '}>
758
- {lang.confirmpassword}
759
- {props.srcfromprops == 'signup' && <span class="text-danger ml-1 mr-1">*</span>}
760
- </label>
761
- <input
762
- className={`${loginstyles.form_control} ${formstyles.form_control}`}
763
- type="password"
764
- autocomplete="new-password"
765
- textplaceholder=""
766
- value={payloadobj.password2}
767
- onChange={(event) => {
768
- payloadobjchange('password2', event.target.value);
769
- }}
770
- style={{
771
- background: sectionproperties.input_bgcolor,
772
- }}
773
- />
774
- </div>
775
- {sectionproperties.showpassworddisclaimer == 'Show' && props.srcfromprops == 'signup' && (
776
- <div class="col-lg-12 text-start text-danger">
777
- <p style={{ fontSize: 14 }}>{langdetect == 'en' ? " Password shouldn't be lessthan 8 characters" : 'الرقم السرى لا يقل عن 8 حروف او ارقام'}</p>
778
- </div>
779
- )}
780
- </div>
781
- );
782
- };
783
- const Otherinformation = () => {
784
- return (
785
- <div className="row m-0 w-100">
786
- {payloadobj.instsignupformvalues.length != 0 && (
787
- <>
788
- {payloadobj.instsignupformvalues.map((item, index) => {
789
- return (
790
- <div className={sectionproperties.cardstyletype == 'Style 1' ? 'col-lg-6 col-md-12 col-sm-12 mb-4 p-sm-0' : 'col-lg-12 col-md-12 col-sm-12 mb-4 p-sm-0'}>
791
- {item.inputtype != 'checkbox' && (
792
- <label className={formstyles.input_label_name + ' d-flex align-items-start '}>
793
- {langdetect == 'en' ? item.inputname_en : item.inputname_ar} <span class="text-danger ml-1 mr-1">{item.optional == 1 ? '*' : ''}</span>
794
- </label>
795
- )}
796
- <div className={loginstyles.wrap_input100}>
797
- {item.inputtype == 'input' && (
798
- <input
799
- className={`${loginstyles.form_control} ${formstyles.form_control}`}
800
- type="text"
801
- value={item.customersignupvalue}
802
- textplaceholder=""
803
- onChange={(event) => {
804
- var temppayloadobj = { ...payloadobj };
805
- temppayloadobj.instsignupformvalues[index].customersignupvalue = event.target.value;
806
- setpayloadobj({ ...temppayloadobj });
807
- }}
808
- style={{
809
- background: sectionproperties.input_bgcolor,
810
- }}
811
- readOnly={authdetailsContext?.instinfo?.contactinfo.instid == '68527dfef348b' ? true : false}
812
- />
813
- )}
814
- {item.inputtype == 'checkbox' && (
815
- <label
816
- className={
817
- langdetect == 'en'
818
- ? `${loginstyles.checkbox} ${formstyles.checkbox} ` + ' d-flex mb-0 '
819
- : `${loginstyles.checkbox} ${loginstyles.checkboxtranslated}` + ' d-flex mb-0 '
820
- }
821
- for="codcheckbox"
822
- >
823
- <input
824
- id={'codcheckbox'}
825
- type="checkbox"
826
- className={formstyles.checkboxinputstyles + ' mt-auto mb-auto '}
827
- checked={item.customersignupvalue == 1 ? true : false}
828
- onChange={() => {
829
- var temppayloadobj = { ...payloadobj };
830
- if (temppayloadobj.instsignupformvalues[index].customersignupvalue == 1) {
831
- temppayloadobj.instsignupformvalues[index].customersignupvalue = 0;
832
- } else {
833
- temppayloadobj.instsignupformvalues[index].customersignupvalue = 1;
834
- }
835
- setpayloadobj({ ...temppayloadobj });
836
- }}
837
- />
838
- <svg viewBox="0 0 21 21" className={formstyles.svgstyles + ' h-100 '}>
839
- <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>
840
- </svg>
841
- <p className={formstyles.input_label_name + ' ml-2 cursor-pointer wordbreak mr-2'} style={{}}>
842
- {langdetect == 'en' ? item.inputname_en : item.inputname_ar} <span class="text-danger ml-1 mr-1">{item.optional == 1 ? '' : '*'}</span>
843
- </p>
844
- </label>
845
- )}
846
- {item.inputtype == 'selectbox' && (
847
- <select
848
- className={`${loginstyles.form_control} ${formstyles.form_control}`}
849
- value={item.customersignupvalue}
850
- textplaceholder=""
851
- onChange={(event) => {
852
- var temppayloadobj = { ...payloadobj };
853
- temppayloadobj.instsignupformvalues[index].customersignupvalue = event.target.value;
854
- setpayloadobj({ ...temppayloadobj });
855
- }}
856
- >
857
- <option value={''}>{langdetect == 'en' ? 'Choose' : 'إختر'}</option>
858
- {JSON.parse(item.selectboxvalues).map((selectboxitem, selectboxindex) => {
859
- return <option value={selectboxitem.optionname_en}>{langdetect == 'en' ? selectboxitem.optionname_en : selectboxitem.optionname_ar}</option>;
860
- })}
861
- </select>
862
- )}
863
- {item.inputtype == 'textarea' && (
864
- <TextareaAutosize
865
- type="text"
866
- className={`${loginstyles.form_control} ${formstyles.form_control}`}
867
- value={item.customersignupvalue}
868
- textplaceholder=""
869
- onChange={(event) => {
870
- var temppayloadobj = { ...payloadobj };
871
- temppayloadobj.instsignupformvalues[index].customersignupvalue = event.target.value;
872
- setpayloadobj({ ...temppayloadobj });
873
- }}
874
- style={{
875
- resize: 'none',
876
- paddingTop: authdetailsContext?.instinfo?.contactinfo.instid == '68527dfef348b' ? 10 : 0,
877
- paddingLeft: authdetailsContext?.instinfo?.contactinfo.instid == '68527dfef348b' ? 20 : 0,
878
- paddingRight: authdetailsContext?.instinfo?.contactinfo.instid == '68527dfef348b' ? 20 : 0,
879
- }}
880
- disabled={authdetailsContext?.instinfo?.contactinfo.instid == '68527dfef348b' ? true : false}
881
- />
882
- )}
883
- <span className={loginstyles.login_input_focus}></span>
884
- </div>
885
- </div>
886
- );
887
- })}
888
- </>
889
- )}
890
- </div>
891
- );
892
- };
893
- const SignUpButtonContent = () => {
894
- return (
895
- <button
896
- className={`${formstyles.signupbtn}` + ' d-flex align-items-center justify-content-center '}
897
- disabled={CustomerSignUpMutationContext.isLoading ? true : false}
898
- onClick={() => {
899
- if (verifypayload() == true) {
900
- var isEmailOTP_Validated = false;
901
- var isPhoneNumberOTP_Validated = false;
902
- if (customervalidateemail == 1) {
903
- if (validateemailpayload.isvalidated) {
904
- isEmailOTP_Validated = true;
905
- } else {
906
- isEmailOTP_Validated = false;
907
- setvalidateemailmodal(true);
908
- }
909
- } else {
910
- isEmailOTP_Validated = true;
911
- }
912
- if (customervalidatephonenumber == 1) {
913
- if (validatephonenumberpayload.isvalidated) {
914
- isPhoneNumberOTP_Validated = true;
915
- } else {
916
- isPhoneNumberOTP_Validated = false;
917
- setvalidatephonenumbermodal(true);
918
- }
919
- } else {
920
- isPhoneNumberOTP_Validated = true;
921
- }
922
- if (isPhoneNumberOTP_Validated && isEmailOTP_Validated) {
923
- signupbuttonfunc();
924
- }
925
- }
926
- }}
927
- >
928
- {CustomerSignUpMutationContext.isLoading && <CircularProgress color="#fff" width="20px" height="20px" duration="1s" />}
929
-
930
- {!CustomerSignUpMutationContext.isLoading && (
931
- <>
932
- {authdetailsContext.loggedin != true && (
933
- <span style={{ letterSpacing: langdetect == 'en' ? '1px' : '' }}>{langdetect == 'en' ? sectionproperties.signupbtn_contenten : sectionproperties.signupbtn_contentar}</span>
934
- )}
935
- {authdetailsContext.loggedin == true && <span>{lang.update}</span>}
936
- </>
937
- )}
938
- </button>
939
- );
940
- };
941
- return (
942
- <div
943
- className="row m-0 w-100 d-flex justify-content-center"
944
- style={
945
- {
946
- // heigh: '100%',
947
- }
948
- }
949
- >
950
- {!dataloaded && <CircularProgress color="black" width="20px" height="20px" duration="1s" />}
951
- {dataloaded && props.srcfromprops == 'signup' && waitingpage == false && (
952
- <div
953
- className="col-lg-12 p-0"
954
- style={{
955
- background: sectionproperties.formLeftbgColor,
956
- }}
957
- >
958
- {PersonalInformation()}
959
- {Address()}
960
- {Otherinformation()}
961
- {sectionproperties.hidepassword == 'Show' && authdetailsContext?.instinfo?.ispasswordrequired_signup == 1 && Password()}
962
- {/* {Password()} */}
963
- </div>
964
- )}
965
- {dataloaded && props.srcfromprops == 'accountinfo' && (
966
- <div className="col-lg-12 p-0">
967
- <div className="row ml-0 mr-0 w-100">
968
- {sectionproperties.showsubscription == 'Show' && (
969
- <div className="col-lg-6 col-md-6 col-sm-12 mb-3">
970
- <div
971
- style={{
972
- background: sectionproperties.backgroundColor,
973
- borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
974
- borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
975
- borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
976
- borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
977
- }}
978
- className="px-2 py-3 flex-column"
979
- >
980
- <p
981
- class="m-0 p-0 allcentered "
982
- style={{
983
- fontSize: sectionproperties.sectionTitleFontSize + 'px',
984
- color: sectionproperties.sectionTitleColor,
985
- fontWeight: sectionproperties.sectionTitleFontWeight,
986
- }}
987
- >
988
- {langdetect == 'en' ? 'Subscribed at' : 'مشترك فى'}
989
- </p>
990
- <p
991
- class="m-0 p-0 allcentered "
992
- style={{
993
- fontSize: sectionproperties.sectionTitleFontSize + 'px',
994
- color: sectionproperties.sectionTitleColor,
995
- fontWeight: sectionproperties.sectionTitleFontWeight,
996
- }}
997
- >
998
- {authdetailsContext?.customerinfo?.subscription_name}
999
- </p>
1000
- </div>
1001
- </div>
1002
- )}
1003
- {sectionproperties.showsubscription == 'Show' && (
1004
- <div className="col-lg-6 col-md-6 col-sm-12 mb-3">
1005
- <div
1006
- style={{
1007
- background: sectionproperties.backgroundColor,
1008
- borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
1009
- borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
1010
- borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
1011
- borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
1012
- }}
1013
- className="px-2 py-3 allcentered flex-column"
1014
- >
1015
- <p
1016
- class="m-0 p-0"
1017
- style={{
1018
- fontSize: sectionproperties.sectionTitleFontSize + 'px',
1019
- color: sectionproperties.sectionTitleColor,
1020
- fontWeight: sectionproperties.sectionTitleFontWeight,
1021
- }}
1022
- >
1023
- {langdetect == 'en' ? 'Subscription ends on' : 'الإشتراك ينتهى فى'}
1024
- </p>
1025
- <p
1026
- class="m-0 p-0"
1027
- style={{
1028
- fontSize: sectionproperties.sectionTitleFontSize + 'px',
1029
- color: sectionproperties.sectionTitleColor,
1030
- fontWeight: sectionproperties.sectionTitleFontWeight,
1031
- }}
1032
- >
1033
- {authdetailsContext?.customerinfo?.subscrption_enddate}
1034
- </p>
1035
- </div>
1036
- </div>
1037
- )}
1038
- <div className={sectionproperties.cardstyletype == 'Style 1' ? 'col-lg-12 mb-3 p-0' : 'col-lg-12 p-0'}>
1039
- <div
1040
- style={{
1041
- background: sectionproperties.backgroundColor,
1042
- borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
1043
- borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
1044
- borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
1045
- borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
1046
- }}
1047
- className={sectionproperties.cardstyletype == 'Style 1' ? 'p-2 w-100' : 'w-100'}
1048
- >
1049
- {sectionproperties.cardstyletype == 'Style 1' && (
1050
- <div className="row ml-0 mr-0">
1051
- <div className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex justify-content-center">
1052
- <p
1053
- className="m-0 p-0"
1054
- style={{
1055
- fontSize: sectionproperties.sectionTitleFontSize + 'px',
1056
- color: sectionproperties.sectionTitleColor,
1057
- fontWeight: sectionproperties.sectionTitleFontWeight,
1058
- }}
1059
- >
1060
- {lang.personalinformation}
1061
- </p>
1062
- </div>
1063
- <div className="col-lg-12 p-0">
1064
- <hr className="mt-2 mb-3" />
1065
- </div>
1066
- </div>
1067
- )}
1068
- {PersonalInformation()}
1069
- </div>
1070
- </div>
1071
- <div
1072
- className={sectionproperties.cardstyletype == 'Style 1' ? 'col-lg-12 mb-3 p-0' : 'col-lg-12 p-0'}
1073
- style={{
1074
- display: sectionproperties.hidecountrystatecity == 'Show' && sectionproperties.hideaddress == 'Show' ? 'flex' : 'none',
1075
- }}
1076
- >
1077
- <div
1078
- className={sectionproperties.cardstyletype == 'Style 1' ? 'p-2 w-100' : 'w-100'}
1079
- style={{
1080
- background: sectionproperties.backgroundColor,
1081
- borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
1082
- borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
1083
- borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
1084
- borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
1085
- }}
1086
- >
1087
- {sectionproperties.cardstyletype == 'Style 1' && (
1088
- <div className="row ml-0 mr-0">
1089
- <div className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex justify-content-center">
1090
- <p
1091
- className="m-0 p-0"
1092
- style={{
1093
- fontSize: sectionproperties.sectionTitleFontSize + 'px',
1094
- color: sectionproperties.sectionTitleColor,
1095
- fontWeight: sectionproperties.sectionTitleFontWeight,
1096
- }}
1097
- >
1098
- {lang.address}
1099
- </p>
1100
- </div>
1101
- <div className="col-lg-12 p-0">
1102
- <hr className="mt-2 mb-3" />
1103
- </div>
1104
- </div>
1105
- )}
1106
- {Address()}
1107
- </div>
1108
- </div>
1109
- <div className={sectionproperties.cardstyletype == 'Style 1' ? 'col-lg-12 mb-3 p-0' : 'col-lg-12 p-0'}>
1110
- <div
1111
- className={sectionproperties.cardstyletype == 'Style 1' ? 'p-2 w-100' : 'w-100'}
1112
- style={{
1113
- background: sectionproperties.backgroundColor,
1114
- borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
1115
- borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
1116
- borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
1117
- borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
1118
- }}
1119
- >
1120
- {sectionproperties.cardstyletype == 'Style 1' && (
1121
- <div className="row ml-0 mr-0">
1122
- <div className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex justify-content-center">
1123
- <p
1124
- className="m-0 p-0"
1125
- style={{
1126
- fontSize: sectionproperties.sectionTitleFontSize + 'px',
1127
- color: sectionproperties.sectionTitleColor,
1128
- fontWeight: sectionproperties.sectionTitleFontWeight,
1129
- }}
1130
- >
1131
- {lang.security}
1132
- </p>
1133
- </div>
1134
- <div className="col-lg-12 p-0">
1135
- <hr className="mt-2 mb-3" />
1136
- </div>
1137
- </div>
1138
- )}
1139
- <div className="row ml-0 mr-0">{Password()}</div>
1140
- </div>
1141
- </div>
1142
- {payloadobj.instsignupformvalues.length != 0 && (
1143
- <div className={sectionproperties.cardstyletype == 'Style 1' ? 'col-lg-12 mb-3 p-0' : 'col-lg-12 p-0'}>
1144
- <div
1145
- style={{
1146
- background: sectionproperties.backgroundColor,
1147
- borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
1148
- borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
1149
- borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
1150
- borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
1151
- }}
1152
- className={sectionproperties.cardstyletype == 'Style 1' ? 'p-2 w-100' : 'w-100'}
1153
- >
1154
- <div className="row ml-0 mr-0">
1155
- <div className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex justify-content-center">
1156
- <p
1157
- className="m-0 p-0"
1158
- style={{
1159
- fontSize: sectionproperties.sectionTitleFontSize + 'px',
1160
- color: sectionproperties.sectionTitleColor,
1161
- fontWeight: sectionproperties.sectionTitleFontWeight,
1162
- }}
1163
- >
1164
- {lang.otherinformation}
1165
- </p>
1166
- </div>
1167
- <div className="col-lg-12 p-0">
1168
- <hr className="mt-2 mb-3" />
1169
- </div>
1170
- </div>
1171
- <div className="row ml-0 mr-0">{Otherinformation()}</div>
1172
- </div>
1173
- </div>
1174
- )}
1175
- </div>
1176
- </div>
1177
- )}
1178
- {sectionproperties.viewtermsandcondition == 'Show' && (
1179
- <div class="col-lg-12 allcentered">
1180
- <p
1181
- class="m-0 p-0"
1182
- style={{
1183
- fontSize: sectionproperties.termsandconditionfontsize + 'px',
1184
- color: sectionproperties.termsandconditioncolor,
1185
- fontWeight: 600,
1186
- }}
1187
- >
1188
- {langdetect == 'en' ? sectionproperties.termsandconditiontext_en : sectionproperties.termsandconditiontext_ar}{' '}
1189
- <span
1190
- class={formstyles.terms + ' cursor-pointer '}
1191
- onClick={() => {
1192
- window.open(window.location.origin + '/policies', '_blank');
1193
- }}
1194
- >
1195
- {langdetect == 'en' ? 'Terms & Conditions' : 'الشروط و الاحكام'}
1196
- </span>
1197
- </p>
1198
- </div>
1199
- )}
1200
- {waitingpage == false && (
1201
- <div className="col-lg-12 col-md-12 col-sm-12 d-flex align-items-center justify-content-center mb-3 mt-3">
1202
- {authdetailsContext.loggedin == false && SignUpButtonContent()}
1203
- {authdetailsContext.loggedin == true && sectionproperties.showupdatebtn == 'Show' && SignUpButtonContent()}
1204
- </div>
1205
- )}
1206
- {props.srcfromprops == 'signup' && waitingpage == false && (
1207
- <div className="row m-0 w-100">
1208
- <div className="col-lg-12 col-md-12 col-sm-12 d-flex d-md-none align-items-center justify-content-center mb-2">
1209
- <div className="ml-1 mr-1">
1210
- <FacebookLoginButton actions={actions} />
1211
- </div>
1212
- <div className="ml-1 mr-1">
1213
- <GoogleLogin actions={actions} />
1214
- </div>
1215
- </div>
1216
- <div className="col-lg-12 col-md-12 col-sm-12 d-none d-md-flex align-items-center justify-content-center mb-2">
1217
- <div className="ml-1 mr-1">
1218
- <FacebookLoginButton actions={actions} />
1219
- </div>
1220
- </div>
1221
- <div className="col-lg-12 col-md-12 col-sm-12 d-none d-md-flex align-items-center justify-content-center mb-2">
1222
- <div className="ml-1 mr-1">
1223
- <GoogleLogin actions={actions} />
1224
- </div>
1225
- </div>
1226
- </div>
1227
- )}
1228
- {waitingpage == true && (
1229
- <div class="col-lg-12 allcentered my-5">
1230
- <div class="row m-0 w-100">
1231
- <div class="col-lg-12 allcentered">
1232
- <p
1233
- style={{
1234
- color: sectionproperties.waitingapprovalcolor,
1235
- fontSize: sectionproperties.waitingapprovalfontsize + 'px',
1236
- }}
1237
- >
1238
- {langdetect == 'en' ? sectionproperties.waitingapprovaltest_en : sectionproperties.waitingapprovaltest_ar}
1239
- </p>
1240
- </div>
1241
- <div class="col-lg-12 allcentered">
1242
- <p
1243
- style={{
1244
- color: sectionproperties.waitingapprovalcolor2,
1245
- fontSize: sectionproperties.waitingapprovalfontsize2 + 'px',
1246
- }}
1247
- >
1248
- {langdetect == 'en' ? sectionproperties.waitingapprovaltest_en2 : sectionproperties.waitingapprovaltest_ar2}
1249
- </p>
1250
- </div>
1251
- </div>
1252
- </div>
1253
- )}
1254
- <Modal show={validateemailmodal} onHide={() => setvalidateemailmodal(false)} centered size={'md'}>
1255
- <Modal.Body>
1256
- <Modal.Body>
1257
- <div
1258
- class="d-flex align-items-center justify-content-center bgdanger-hover"
1259
- style={{ position: 'absolute', right: -15, top: -15, width: '4vh', height: '4vh', background: '#000', borderRadius: '50%' }}
1260
- onClick={() => setvalidateemailmodal(false)}
1261
- >
1262
- <IoMdClose size={15} color="white" />
1263
- </div>
1264
- <div class="row m-0 w-100 allcentered">
1265
- <div className="col-lg-12 col-md-12 col-sm-12 d-flex align-items-center mt-2 justify-content-center">
1266
- <p
1267
- className="text-md-center m-0 p-0 mb-2"
1268
- style={{
1269
- fontSize: '19px',
1270
- color: '#000',
1271
- fontWeight: 600,
1272
- }}
1273
- >
1274
- {langdetect == 'en' ? 'Validate Email' : 'التحقق من صحة البريد الإلكتروني'}
1275
- </p>
1276
- </div>
1277
- <div class="col-lg-12 p-0">
1278
- <hr class={'m-0 p-0'} />
1279
- </div>
1280
- </div>
1281
- <div class="row w-100 m-0 mb-3 pl-2 pr-2 pt-3 pb-3 pl-sm-3 pr-sm-3">
1282
- <div className="col-lg-12 col-md-12 col-sm-12 mb-2 p-sm-0">
1283
- <label
1284
- className={`${formstyles.logininputLabel}` + ' d-flex justify-content-start '}
1285
- style={{
1286
- color: '#000',
1287
- }}
1288
- >
1289
- {langdetect == 'en' ? 'Email' : 'البريد الإلكترونى'}
1290
- </label>
1291
- <input
1292
- type="text"
1293
- className={`${formstyles.form_control}`}
1294
- value={payloadobj.email}
1295
- disabled={true}
1296
- style={{
1297
- background: 'transparent',
1298
- color: '#000',
1299
- }}
1300
- />
1301
- </div>
1302
- {validateemailpayload.step == 'verifycode' && (
1303
- <div className="col-lg-12 col-md-12 col-sm-12 mb-3 mt-3 p-sm-0">
1304
- <label
1305
- className={`${formstyles.logininputLabel}` + ' d-flex justify-content-start '}
1306
- style={{
1307
- color: '#000',
1308
- }}
1309
- >
1310
- {langdetect == 'en' ? 'Code' : ' كود البريد الاكتروني'}
1311
- </label>
1312
- <input
1313
- type="text"
1314
- className={`${formstyles.form_control}`}
1315
- value={validateemailpayload.code}
1316
- onChange={(event) => {
1317
- setvalidateemailpayload({ ...validateemailpayload, code: event.target.value });
1318
- }}
1319
- style={{
1320
- background: 'transparent',
1321
- color: '#000',
1322
- }}
1323
- />
1324
- </div>
1325
- )}
1326
- <div className="col-lg-12 col-md-12 col-sm-12 d-flex align-items-center justify-content-center mb-3 mt-3">
1327
- <button
1328
- className={`${formstyles.signupbtn}` + ' d-flex align-items-center justify-content-center '}
1329
- disabled={GeneralAPIMutationContext.isLoading ? true : false}
1330
- onClick={() => {
1331
- if (payloadobj.email.length != 0) {
1332
- if (validateemailpayload.isvalidated == true) {
1333
- setvalidateemailmodal(false);
1334
- signupbuttonfunc();
1335
- } else {
1336
- GeneralAPIMutationContext.mutate({
1337
- endpointurl: '/validateemail',
1338
- functype: validateemailpayload.step,
1339
- code: validateemailpayload.code,
1340
- name: payloadobj.name,
1341
- email: payloadobj.email,
1342
-
1343
- mutateSuccesscallback: (data, variables) => {
1344
- if (data.data.status) {
1345
- if (data.data.functype == 'sendcode') {
1346
- setvalidateemailpayload({ ...validateemailpayload, step: 'verifycode' });
1347
- }
1348
- if (data.data.functype == 'verifycode') {
1349
- setvalidateemailpayload({ ...validateemailpayload, isvalidated: true });
1350
- setvalidateemailmodal(false);
1351
- if (customervalidatephonenumber == 1) {
1352
- if (validatephonenumberpayload.isvalidated) {
1353
- signupbuttonfunc();
1354
- } else {
1355
- setvalidatephonenumbermodal(true);
1356
- }
1357
- } else {
1358
- signupbuttonfunc();
1359
- }
1360
- }
1361
- } else {
1362
- NotificationManager.warning('', data.data.reason);
1363
- }
1364
- },
1365
- });
1366
- }
1367
- } else {
1368
- NotificationManager.warning(lang.completerequiredfields);
1369
- }
1370
- }}
1371
- >
1372
- {GeneralAPIMutationContext.isLoading && <CircularProgress color="#fff" width="20px" height="20px" duration="1s" />}
1373
-
1374
- {!GeneralAPIMutationContext.isLoading && (
1375
- <>
1376
- <span style={{ letterSpacing: langdetect == 'en' ? '1px' : '' }}>{validateemailpayload.step == 'sendcode' ? lang.sendcode : lang.verifycode}</span>
1377
- </>
1378
- )}
1379
- </button>
1380
- </div>
1381
- </div>
1382
- </Modal.Body>
1383
- </Modal.Body>
1384
- <Modal.Footer></Modal.Footer>
1385
- </Modal>
1386
- <Modal show={validatephonenumbermodal} onHide={() => setvalidatephonenumbermodal(false)} centered size={'md'}>
1387
- <Modal.Body>
1388
- <Modal.Body>
1389
- <div
1390
- class="d-flex align-items-center justify-content-center bgdanger-hover"
1391
- style={{ position: 'absolute', right: -15, top: -15, width: '4vh', height: '4vh', background: '#000', borderRadius: '50%' }}
1392
- onClick={() => setvalidatephonenumbermodal(false)}
1393
- >
1394
- <IoMdClose size={15} color="white" />
1395
- </div>
1396
- <div class="row m-0 w-100 allcentered">
1397
- <div className="col-lg-12 col-md-12 col-sm-12 d-flex align-items-center mt-2 justify-content-center">
1398
- <p
1399
- className="text-md-center m-0 p-0 mb-2"
1400
- style={{
1401
- fontSize: '19px',
1402
- color: sectionproperties.sectionTitleColor,
1403
- fontWeight: 600,
1404
- }}
1405
- >
1406
- {langdetect == 'en' ? 'Validate Phone Number' : 'التحقق من صحة رقم الهاتف'}
1407
- </p>
1408
- </div>
1409
- <div class="col-lg-12 p-0">
1410
- <hr class={'m-0 p-0'} />
1411
- </div>
1412
- </div>
1413
- <div class="row w-100 m-0 mb-3 pl-2 pr-2 pt-3 pb-3 pl-sm-3 pr-sm-3">
1414
- <div className="col-lg-12 col-md-12 col-sm-12 mb-2 p-sm-0">
1415
- <label className={`${formstyles.logininputLabel}` + ' d-flex justify-content-start '}>{langdetect == 'en' ? 'Phone Number' : ' رقم الهاتف'}</label>
1416
- <input
1417
- type="text"
1418
- className={`${formstyles.form_control}`}
1419
- value={payloadobj.mobile}
1420
- disabled={true}
1421
- style={{
1422
- background: 'transparent',
1423
- }}
1424
- />
1425
- </div>
1426
- {validatephonenumberpayload.step == 'verifycode' && (
1427
- <div className="col-lg-12 col-md-12 col-sm-12 mb-3 mt-3 p-sm-0">
1428
- <label className={`${formstyles.logininputLabel}` + ' d-flex justify-content-start '}>{langdetect == 'en' ? 'Code' : ' كود الرسالة النصية'}</label>
1429
- <input
1430
- type="text"
1431
- className={`${formstyles.form_control}`}
1432
- value={validatephonenumberpayload.code}
1433
- onChange={(event) => {
1434
- setvalidatephonenumberpayload({ ...validatephonenumberpayload, code: event.target.value });
1435
- }}
1436
- style={{
1437
- background: 'transparent',
1438
- }}
1439
- />
1440
- </div>
1441
- )}
1442
- <div className="col-lg-12 col-md-12 col-sm-12 d-flex align-items-center justify-content-center mb-3 mt-3">
1443
- <button
1444
- className={`${formstyles.signupbtn}` + ' d-flex align-items-center justify-content-center '}
1445
- disabled={GeneralAPIMutationContext.isLoading ? true : false}
1446
- onClick={() => {
1447
- if (payloadobj.mobile.length != 0) {
1448
- if (validatephonenumberpayload.isvalidated == true) {
1449
- setvalidateemailmodal(false);
1450
- signupbuttonfunc();
1451
- } else {
1452
- GeneralAPIMutationContext.mutate({
1453
- endpointurl: '/validatephonenumber',
1454
- functype: validatephonenumberpayload.step,
1455
- code: validatephonenumberpayload.code,
1456
- name: payloadobj.name,
1457
- phonenumber: payloadobj.mobile,
1458
-
1459
- mutateSuccesscallback: (data, variables) => {
1460
- if (data.data.status) {
1461
- if (data.data.functype == 'sendcode') {
1462
- setvalidatephonenumberpayload({ ...validatephonenumberpayload, step: 'verifycode' });
1463
- }
1464
- if (data.data.functype == 'verifycode') {
1465
- setvalidatephonenumberpayload({ ...validatephonenumberpayload, isvalidated: true });
1466
- setvalidatephonenumbermodal(false);
1467
- if (customervalidateemail == 1) {
1468
- if (validateemailpayload.isvalidated) {
1469
- signupbuttonfunc();
1470
- } else {
1471
- setvalidateemailmodal(true);
1472
- }
1473
- } else {
1474
- signupbuttonfunc();
1475
- }
1476
- }
1477
- } else {
1478
- NotificationManager.warning('', data.data.reason);
1479
- }
1480
- },
1481
- });
1482
- }
1483
- } else {
1484
- NotificationManager.warning(lang.completerequiredfields);
1485
- }
1486
- }}
1487
- >
1488
- {GeneralAPIMutationContext.isLoading && <CircularProgress color="#fff" width="20px" height="20px" duration="1s" />}
1489
-
1490
- {!GeneralAPIMutationContext.isLoading && (
1491
- <>
1492
- <span style={{ letterSpacing: langdetect == 'en' ? '1px' : '' }}>{validatephonenumberpayload.step == 'sendcode' ? lang.sendcode : lang.verifycode}</span>
1493
- </>
1494
- )}
1495
- </button>
1496
- </div>
1497
- </div>
1498
- </Modal.Body>
1499
- </Modal.Body>
1500
- <Modal.Footer></Modal.Footer>
1501
- </Modal>
1502
- </div>
1503
- );
1504
- };
1505
- export default CustomerInformationForm;