tabexseriescomponents 0.2.1280 → 0.2.1283

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 +40 -258
  2. package/dist/index.esm.js +40 -258
  3. package/dist/index.umd.js +40 -258
  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,1476 +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
- if (authdetailsContext.loggedin == false) {
131
- if (authdetailsContext?.instinfo?.ispasswordrequired_signup == 1) {
132
- if (payloadobj.password.length != 0) {
133
- if (payloadobj.password == payloadobj.password2) {
134
- passwordvalidation = true;
135
- }
136
- }
137
- } else {
138
- passwordvalidation = true;
139
- }
140
- } else if (authdetailsContext.loggedin == true) {
141
- if (payloadobj.password.length != 0) {
142
- if (payloadobj.password == payloadobj.password2) {
143
- passwordvalidation = true;
144
- }
145
- } else {
146
- passwordvalidation = true;
147
- }
148
- }
149
-
150
- if (passwordvalidation == false) {
151
- NotificationManager.warning('', lang.passwordsdontmatch);
152
- }
153
- if (customeraddressrequierd == 1) {
154
- if (payloadobj.countryid.length != 0 && payloadobj.stateid.length != 0 && payloadobj.cityid.length != 0 && payloadobj.shippingaddress.length != 0) {
155
- isshippingaddresscompleted = true;
156
- }
157
- } else {
158
- isshippingaddresscompleted = true;
159
- }
160
- {
161
- /* { && ( */
162
- }
163
- // if (authdetailsContext?.instinfo?.contactinfo.instid == '652e3ae969122') {
164
- // if (payloadobj.name.length < 3) {
165
- // NotificationManager.warning('', langdetect == 'en' ? 'Please Write your Full Name' : 'من فضلك اكتب اسمك كاملاً');
166
- // }
167
- // if (payloadobj.countrydialcode == '20' && payloadobj.mobile.length < 10) {
168
- // NotificationManager.warning('', langdetect == 'en' ? 'Please Write valid phone number' : 'من فضلك اكتب رقم تليفون صحيح');
169
- // }
170
- // }
171
- if (validateEmailstring(payloadobj.email)) {
172
- if (payloadobj.email.length != 0 && payloadobj.name.length != 0 && payloadobj.mobile.length != 0 && passwordvalidation == true) {
173
- if (isshippingaddresscompleted) {
174
- var signupformismissing = true;
175
- payloadobj.instsignupformvalues.forEach(function (arrayItem) {
176
- if (arrayItem.optional == 1) {
177
- if (arrayItem.customersignupvalue == undefined || arrayItem.customersignupvalue.length == 0) {
178
- signupformismissing = false;
179
- }
180
- }
181
- });
182
- if (signupformismissing) {
183
- iscompleted = true;
184
- } else {
185
- iscompleted = false;
186
- NotificationManager.warning('', lang.completerequiredfields);
187
- }
188
- } else {
189
- iscompleted = false;
190
- NotificationManager.warning('', lang.pleasecompleteaddressmissingfields);
191
- }
192
- } else {
193
- iscompleted = false;
194
- NotificationManager.warning('', lang.fillthemissingfields);
195
- }
196
- } else {
197
- iscompleted = false;
198
- NotificationManager.warning('', lang.writevalidemail);
199
- }
200
- return iscompleted;
201
- };
202
- const signupbuttonfunc = () => {
203
- if (verifypayload() == true) {
204
- var temppayloadobj = { ...payloadobj };
205
- if (authdetailsContext.loggedin == true) {
206
- temppayloadobj.functype = 'edit';
207
- } else {
208
- temppayloadobj.functype = 'add';
209
- }
210
- temppayloadobj.addedsourcetype = 'Webapp';
211
- temppayloadobj.instapikey = instapikey;
212
- if (sectionproperties.redirectsaftersignup != 'Home') {
213
- setwaitingpage(true);
214
- }
215
- CustomerSignUpMutationContext.mutate(temppayloadobj);
216
- }
217
- };
218
-
219
- const formstyles = {
220
- loginbtn: css({
221
- background: templatepropcontext.primarycolor,
222
- color: sectionproperties.generalbtn_textColor,
223
- borderRadius: sectionproperties.generalbtn_borderradius + 'px',
224
- fontSize: sectionproperties.generalbtn_fontsize + 'px',
225
- lineHeight: sectionproperties.generalbtn_fontsize + 'px',
226
- textTransform: sectionproperties.generalbtn_texttransform,
227
- width: sectionproperties.generalbtn_width + 'px',
228
- height: sectionproperties.generalbtn_height + 'px',
229
- ':hover': {
230
- background: templatepropcontext.secondarycolor,
231
- },
232
- }),
233
- btnstyles: css({
234
- width: sectionproperties.generalbtn_width + 'px',
235
- height: sectionproperties.generalbtn_height + 'px',
236
- textTransform: sectionproperties.generalbtn_texttransform,
237
- fontSize: sectionproperties.generalbtn_fontsize + 'px',
238
- color: sectionproperties.generalbtn_textColor,
239
- background: sectionproperties.generalbtn_bgColor,
240
- borderTopLeftRadius: sectionproperties.generalbtn_bordertopleftradius + 'px',
241
- borderTopRightRadius: sectionproperties.generalbtn_bordertoprightradius + 'px',
242
- borderBottomLeftRadius: sectionproperties.generalbtn_borderbottomleftradius + 'px',
243
- borderBottomRightRadius: sectionproperties.generalbtn_borderbottomrightradius + 'px',
244
- fontWeight: sectionproperties.generalbtn_fontweight,
245
- transition: '.3s',
246
- ':hover': {
247
- background: sectionproperties.generalbtn_bgColoronhover,
248
- color: sectionproperties.generalbtn_textColoronhover,
249
- },
250
- }),
251
- signupbtn: css({
252
- width: sectionproperties.signup_btn_width + 'px',
253
- height: sectionproperties.signup_btn_height + 'px',
254
- borderRadius: sectionproperties.signup_btn_borderBottomLeftRadius + 'px',
255
- textTransform: sectionproperties.signup_btn_texttransform,
256
- fontSize: sectionproperties.signup_btn_fontSize + 'px',
257
- color: sectionproperties.signup_btn_color,
258
- fontWeight: sectionproperties.signup_btn_fontweight,
259
- background: sectionproperties.signup_btnbgcolor_transparent == 'Transparent' ? 'transparent' : sectionproperties.signup_btnbgcolor,
260
- border: sectionproperties.signup_btn_borderwidth + 'px solid ' + sectionproperties.signupbtn_bordercolor,
261
- transition: '.3s',
262
- ':hover': {
263
- background: sectionproperties.signup_btnbgcoloroonhovertransparent == 'Transparent' ? 'transparent' : sectionproperties.signup_btnbgcoloroonhover,
264
- color: sectionproperties.signup_btn_coloronhover,
265
- borderColor: sectionproperties.signup_btn_coloronhover,
266
- },
267
- }),
268
- input_label_name: css({
269
- color: sectionproperties.form_labelcolor,
270
- textTransform: sectionproperties.form_labeltexttransform,
271
- fontWeight: sectionproperties.form_labelfontweight,
272
- fontSize: sectionproperties.form_labelfontsize + 'px',
273
- marginBottom: sectionproperties.inputfieldbordertype == 'All' ? 10 : 0,
274
- }),
275
- form_control: css({
276
- background: 'transparent',
277
- color: sectionproperties.inputfieldcolor,
278
- fontSize: sectionproperties.inputfieldfontsize + 'px',
279
- position: 'relative',
280
- display: 'flex',
281
- alignItems: 'center',
282
- display: 'block',
283
- width: '100%',
284
- // height: '35px',
285
- padding: '0 10px',
286
- transition: '.3s',
287
- border: sectionproperties.inputfieldbordertype == 'All' ? sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor : 0,
288
- borderBottom: sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor,
289
- borderRadius: sectionproperties.inputfieldborderradius + 'px',
290
- height: sectionproperties.inputfieldheight + 'px',
291
- background: sectionproperties.input_bgcolor,
292
- color: sectionproperties.inputfieldcolor,
293
- ':focus': {
294
- borderColor: sectionproperties.inputfeildbordercoloronfocus,
295
- },
296
- ':focus .login_input_icon': {
297
- color: sectionproperties.inputfeildbordercoloronfocus,
298
- },
299
- }),
300
- checkbox: css({
301
- color: sectionproperties.checkbox_color,
302
- textTransform: sectionproperties.form_labeltexttransform,
303
- fontWeight: sectionproperties.form_labelfontweight,
304
- fontSize: sectionproperties.form_labelfontsize + 'px',
305
- transition: '.3s',
306
- ':hover': {
307
- color: sectionproperties.checkbox_texthovercolor,
308
- },
309
- 'input:checked': {
310
- color: sectionproperties.checkbox_checkedcolor,
311
- },
312
- }),
313
- checkboxinputstyles: css({
314
- ':hover:not(:checked)': {
315
- boxShadow: 'inset 0 0 0 2px ' + sectionproperties.checkbox_texthovercolor,
316
- },
317
- ':checked': {
318
- boxShadow: 'inset 0 0 0 2px ' + sectionproperties.checkbox_checkedcolor,
319
- },
320
- }),
321
- svgstyles: css({
322
- stroke: 'var(--stroke, ' + sectionproperties.checkbox_checkedcolor + ')',
323
- }),
324
- terms: css({
325
- ':hover': {
326
- transition: '.3s',
327
- color: sectionproperties.termsandconditionsecondarycolor,
328
- },
329
- }),
330
- };
331
-
332
- const PersonalInformation = () => {
333
- return (
334
- <div className="row m-0 w-100">
335
- <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'}>
336
- <label className={`${formstyles.input_label_name}` + ' d-flex align-items-start '}>
337
- {lang.name} {props.srcfromprops == 'signup' && <span class="text-danger ml-1 mr-1">*</span>}
338
- </label>
339
- <input
340
- type="text"
341
- className={`${loginstyles.form_control} ${formstyles.form_control}`}
342
- value={payloadobj.name}
343
- onChange={(event) => {
344
- payloadobjchange('name', event.target.value);
345
- }}
346
- style={{
347
- background: sectionproperties.input_bgcolor,
348
- }}
349
- />
350
- </div>
351
-
352
- <div
353
- 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'}
354
- style={{
355
- display:
356
- authdetailsContext?.instinfo?.customerEmailrequiered == 1
357
- ? 'flex'
358
- : sectionproperties.showemail == 'Hide' && authdetailsContext?.instinfo?.customerEmailrequiered == 0
359
- ? 'none'
360
- : 'flex',
361
- }}
362
- >
363
- <label className={`${formstyles.input_label_name}` + ' d-flex align-items-start '}>
364
- {lang.email} {props.srcfromprops == 'signup' && authdetailsContext?.instinfo?.customerEmailrequiered == 1 && <span class="text-danger ml-1 mr-1">*</span>}
365
- </label>
366
- {sectionproperties.showemaildisclaimer == 'Show' && <sup>{langdetect == 'en' ? sectionproperties.emaildisclaimeren : sectionproperties.emaildisclaimerar}</sup>}
367
- <input
368
- className={`${loginstyles.form_control} ${formstyles.form_control}`}
369
- type="text"
370
- textplaceholder=""
371
- value={payloadobj.email}
372
- disabled={validateemailpayload.isvalidated}
373
- onChange={(event) => {
374
- payloadobjchange('email', event.target.value);
375
- }}
376
- style={{
377
- background: sectionproperties.input_bgcolor,
378
- }}
379
- />
380
- </div>
381
- <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'}>
382
- <label className={formstyles.input_label_name + ' d-flex justify-content-start '}>
383
- {lang.phonenumber}
384
- {props.srcfromprops == 'signup' && <span class="text-danger ml-1 mr-1">*</span>}
385
- </label>
386
- {/* <input
387
- className={`${loginstyles.form_control} ${formstyles.form_control}`}
388
- type="text"
389
- textplaceholder=""
390
- value={payloadobj.mobile}
391
- onChange={(event) => {
392
- payloadobjchange('mobile', event.target.value);
393
- }}
394
- /> */}
395
- <PhoneInput
396
- className={`${loginstyles.form_control} ${formstyles.form_control}`}
397
- country={sectionproperties.countrycode == 'SA' ? 'sa' : 'eg'}
398
- enableSearch={true}
399
- autoFormat={true}
400
- value={payloadobj.mobile}
401
- inputStyle={{
402
- color: sectionproperties.inputfieldcolor,
403
- }}
404
- onChange={(event, country) => {
405
- var temp = { ...payloadobj };
406
- temp.mobile = event;
407
- temp.countrydialcode = country.dialCode;
408
- setpayloadobj({ ...temp });
409
- // payloadobjchange('mobile', event);
410
-
411
- // alert(JSON.stringify(country));
412
- // alert(JSON.stringify(country));
413
- }}
414
- style={{ direction: 'ltr', color: sectionproperties.inputfieldcolor }}
415
- />
416
- </div>
417
- </div>
418
- );
419
- };
420
- const Address = () => {
421
- return (
422
- <div
423
- className="row m-0 w-100"
424
- style={{
425
- display: sectionproperties.hidecountrystatecity == 'Show' && sectionproperties.hideaddress == 'Show' ? 'flex' : 'none',
426
- }}
427
- >
428
- {sectionproperties.hidecountrystatecity == 'Show' && (
429
- <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'}>
430
- <div class={sectionproperties.inputfieldcolor == '#ffffff' ? 'col-lg-12 p-0 selectwhite' : 'col-lg-12 p-0'}>
431
- <label className={formstyles.input_label_name + ' d-flex justify-content-start '}>
432
- {lang.country}
433
- {customeraddressrequierd == 1 && (
434
- <span class="ml-1 mr-1" style={{ color: 'red' }}>
435
- *
436
- </span>
437
- )}
438
- </label>
439
- {fetchTabexCountriesQueryContext.isFetching && (
440
- <div className="col-lg-4 col-md-12 col-sm-12 mb-3 p-sm-0 d-flex justify-content-center align-items-center">
441
- <CircularProgress color="black" width="20px" height="20px" duration="1s" />
442
- </div>
443
- )}
444
- {!fetchTabexCountriesQueryContext.isFetching && fetchTabexCountriesQueryContext.isSuccess && (
445
- <Select
446
- placeholder={''}
447
- options={fetchTabexCountriesQueryContext.data.data.countries}
448
- getOptionLabel={(option) => {
449
- var crname = '';
450
- if (langdetect == 'en') {
451
- crname = option.name;
452
- } else if (langdetect == 'ar') {
453
- if (option.name_ar != null) {
454
- crname = option.name_ar;
455
- } else {
456
- crname = option.name;
457
- }
458
- }
459
- return crname;
460
- }}
461
- getOptionValue={(option) => option.id}
462
- autocomplete="new-password"
463
- value={fetchTabexCountriesQueryContext.data.data.countries.filter((option) => option.id == payloadobj.countryid)}
464
- onChange={(option) => {
465
- var tempFetchTabexStatesPayloadobjContext = { ...FetchTabexStatesPayloadobjContext };
466
- tempFetchTabexStatesPayloadobjContext.functype = 'states';
467
- tempFetchTabexStatesPayloadobjContext.country_id = option.id;
468
- setFetchTabexStatesPayloadobjContext({ ...tempFetchTabexStatesPayloadobjContext });
469
- payloadobjchange('countryid', option.id);
470
- }}
471
- styles={langdetect == 'en' ? defaultstyles : defaultstylestranslated}
472
- isSearchable={true}
473
- />
474
- )}
475
- {/* {!fetchTabexCountriesQueryContext.isFetching && fetchTabexCountriesQueryContext.isSuccess && sectionproperties.inputfieldcolor == '#ffffff' && (
476
- <Select
477
- options={fetchTabexCountriesQueryContext.data.data.countries}
478
- getOptionLabel={(option) => {
479
- var crname = '';
480
- if (langdetect == 'en') {
481
- crname = option.name;
482
- } else if (langdetect == 'ar') {
483
- if (option.name_ar != null) {
484
- crname = option.name_ar;
485
- } else {
486
- crname = option.name;
487
- }
488
- }
489
- return crname;
490
- }}
491
- getOptionValue={(option) => option.id}
492
- autocomplete="new-password"
493
- value={fetchTabexCountriesQueryContext.data.data.countries.filter((option) => option.id == payloadobj.countryid)}
494
- onChange={(option) => {
495
- var tempFetchTabexStatesPayloadobjContext = { ...FetchTabexStatesPayloadobjContext };
496
- tempFetchTabexStatesPayloadobjContext.functype = 'states';
497
- tempFetchTabexStatesPayloadobjContext.country_id = option.id;
498
- setFetchTabexStatesPayloadobjContext({ ...tempFetchTabexStatesPayloadobjContext });
499
- payloadobjchange('countryid', option.id);
500
- }}
501
- styles={langdetect == 'en' ? defaultstyleswhite : defaultstylestranslatedwhite}
502
- isSearchable={true}
503
- />
504
- )} */}
505
- </div>
506
- </div>
507
- )}
508
- {sectionproperties.hidecountrystatecity == 'Show' && (
509
- <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'}>
510
- <div class={sectionproperties.inputfieldcolor == '#ffffff' ? 'col-lg-12 p-0 selectwhite' : 'col-lg-12 p-0'}>
511
- <label className={formstyles.input_label_name + ' d-flex justify-content-start '}>
512
- {lang.choosestategov}{' '}
513
- {customeraddressrequierd == 1 && (
514
- <span class="ml-1 mr-1" style={{ color: 'red' }}>
515
- *
516
- </span>
517
- )}
518
- </label>
519
- {fetchTabexStatesQueryContext.isFetching && (
520
- <div className="col-lg-12 col-md-12 col-sm-12 mb-3 p-sm-0 d-flex justify-content-center align-items-center">
521
- <CircularProgress color="black" width="20px" height="20px" duration="1s" />
522
- </div>
523
- )}
524
- {FetchTabexStatesPayloadobjContext.country_id == '' && (
525
- <Select styles={langdetect == 'en' ? defaultstyles : defaultstylestranslated} placeholder={''} isSearchable={true} />
526
- )}
527
- {!fetchTabexStatesQueryContext.isFetching && fetchTabexStatesQueryContext.isSuccess && (
528
- <Select
529
- options={fetchTabexStatesQueryContext.data.data.states}
530
- getOptionLabel={(option) => {
531
- var crname = '';
532
- if (langdetect == 'en') {
533
- crname = option.name;
534
- } else if (langdetect == 'ar') {
535
- if (option.name_ar != null) {
536
- crname = option.name_ar;
537
- } else {
538
- crname = option.name;
539
- }
540
- }
541
- return crname;
542
- }}
543
- getOptionValue={(option) => option.id}
544
- autocomplete="new-password"
545
- value={fetchTabexStatesQueryContext.data.data.states.filter((option) => option.id == payloadobj.stateid)}
546
- onChange={(option) => {
547
- var tempFetchTabexStatesPayloadobjContext = { ...FetchTabexStatesPayloadobjContext };
548
- tempFetchTabexStatesPayloadobjContext.functype = 'cities';
549
- tempFetchTabexStatesPayloadobjContext.state_id = option.id;
550
- setFetchTabexStatesPayloadobjContext({ ...tempFetchTabexStatesPayloadobjContext });
551
- payloadobjchange('stateid', option.id);
552
- }}
553
- styles={langdetect == 'en' ? defaultstyles : defaultstylestranslated}
554
- isSearchable={true}
555
- placeholder={''}
556
- />
557
- )}
558
- {/* {!fetchTabexStatesQueryContext.isFetching && fetchTabexStatesQueryContext.isSuccess && sectionproperties.inputfieldcolor == '#ffffff' && (
559
- <Select
560
- options={fetchTabexStatesQueryContext.data.data.states}
561
- getOptionLabel={(option) => {
562
- var crname = '';
563
- if (langdetect == 'en') {
564
- crname = option.name;
565
- } else if (langdetect == 'ar') {
566
- if (option.name_ar != null) {
567
- crname = option.name_ar;
568
- } else {
569
- crname = option.name;
570
- }
571
- }
572
- return crname;
573
- }}
574
- getOptionValue={(option) => option.id}
575
- autocomplete="new-password"
576
- value={fetchTabexStatesQueryContext.data.data.states.filter((option) => option.id == payloadobj.stateid)}
577
- onChange={(option) => {
578
- var tempFetchTabexStatesPayloadobjContext = { ...FetchTabexStatesPayloadobjContext };
579
- tempFetchTabexStatesPayloadobjContext.functype = 'cities';
580
- tempFetchTabexStatesPayloadobjContext.state_id = option.id;
581
- setFetchTabexStatesPayloadobjContext({ ...tempFetchTabexStatesPayloadobjContext });
582
- payloadobjchange('stateid', option.id);
583
- }}
584
- styles={langdetect == 'en' ? defaultstyleswhite : defaultstylestranslatedwhite}
585
- placeholder={lang.choosestategov}
586
- isSearchable={true}
587
- />
588
- )} */}
589
- </div>
590
- </div>
591
- )}
592
-
593
- {sectionproperties.hidecountrystatecity == 'Show' && (
594
- <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'}>
595
- <div class={sectionproperties.inputfieldcolor == '#ffffff' ? 'col-lg-12 p-0 selectwhite' : 'col-lg-12 p-0'}>
596
- <label className={formstyles.input_label_name + ' d-flex justify-content-start '}>
597
- {lang.city}
598
- {customeraddressrequierd == 1 && (
599
- <span class="ml-1 mr-1" style={{ color: 'red' }}>
600
- *
601
- </span>
602
- )}
603
- </label>
604
- {fetchTabexCitiesQueryContext.isFetching && (
605
- <div className="col-lg-12 col-md-12 col-sm-12 mb-3 p-sm-0 d-flex justify-content-center align-items-center">
606
- <CircularProgress color="black" width="20px" height="20px" duration="1s" />
607
- </div>
608
- )}
609
- {FetchTabexStatesPayloadobjContext.country_id == '' && (
610
- <Select placeholder={''} styles={langdetect == 'en' ? defaultstyles : defaultstylestranslated} isSearchable={true} />
611
- )}
612
- {!fetchTabexCitiesQueryContext.isFetching && fetchTabexCitiesQueryContext.isSuccess && (
613
- <Select
614
- options={fetchTabexCitiesQueryContext.data.data.cities}
615
- getOptionLabel={(option) => {
616
- var crname = '';
617
- if (langdetect == 'en') {
618
- crname = option.name;
619
- } else if (langdetect == 'ar') {
620
- if (option.name_ar != null) {
621
- crname = option.name_ar;
622
- } else {
623
- crname = option.name;
624
- }
625
- }
626
- return crname;
627
- }}
628
- getOptionValue={(option) => option.id}
629
- autocomplete="new-password"
630
- value={fetchTabexCitiesQueryContext.data.data.cities.filter((option) => option.id == payloadobj.cityid)}
631
- onChange={(option) => {
632
- payloadobjchange('cityid', option.id);
633
- }}
634
- styles={langdetect == 'en' ? defaultstyles : defaultstylestranslated}
635
- placeholder={''}
636
- isSearchable={true}
637
- />
638
- )}
639
- {/* {!fetchTabexCitiesQueryContext.isFetching && fetchTabexCitiesQueryContext.isSuccess && sectionproperties.inputfieldcolor == '#ffffff' && (
640
- <Select
641
- options={fetchTabexCitiesQueryContext.data.data.cities}
642
- getOptionLabel={(option) => {
643
- var crname = '';
644
- if (langdetect == 'en') {
645
- crname = option.name;
646
- } else if (langdetect == 'ar') {
647
- if (option.name_ar != null) {
648
- crname = option.name_ar;
649
- } else {
650
- crname = option.name;
651
- }
652
- }
653
- return crname;
654
- }}
655
- getOptionValue={(option) => option.id}
656
- autocomplete="new-password"
657
- value={fetchTabexCitiesQueryContext.data.data.cities.filter((option) => option.id == payloadobj.cityid)}
658
- onChange={(option) => {
659
- payloadobjchange('cityid', option.id);
660
- }}
661
- styles={langdetect == 'en' ? defaultstyleswhite : defaultstylestranslatedwhite}
662
- placeholder={lang.choosecity}
663
- isSearchable={true}
664
- />
665
- )} */}
666
- </div>
667
- </div>
668
- )}
669
- {sectionproperties.hideaddress == 'Show' && (
670
- <div className={'col-lg-12 col-md-12 col-sm-12 mb-4 p-sm-0'}>
671
- <label className={`${formstyles.input_label_name}` + ' mb-1 d-flex align-items-start '}>
672
- {lang.address}{' '}
673
- {customeraddressrequierd == 1 && (
674
- <span class="ml-1 mr-1" style={{ color: 'red' }}>
675
- *
676
- </span>
677
- )}
678
- </label>
679
- <div className={loginstyles.wrap_input100}>
680
- <TextareaAutosize
681
- type="text"
682
- className={`${loginstyles.form_control} ${formstyles.form_control}` + ' py-1 '}
683
- value={payloadobj.shippingaddress}
684
- textplaceholder=""
685
- onChange={(event) => {
686
- payloadobjchange('shippingaddress', event.target.value);
687
- }}
688
- style={{ resize: 'none', background: sectionproperties.input_bgcolor }}
689
- />
690
- <span className={loginstyles.login_input_focus}></span>
691
- </div>
692
- </div>
693
- )}
694
- </div>
695
- );
696
- };
697
- const Password = () => {
698
- return (
699
- <div className="row m-0 w-100">
700
- <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'}>
701
- <label className={`${formstyles.input_label_name}` + ' d-flex align-items-start '}>
702
- {lang.password}
703
- {props.srcfromprops == 'signup' && <span class="text-danger ml-1 mr-1">*</span>}
704
- </label>
705
- <input
706
- className={`${loginstyles.form_control} ${formstyles.form_control}`}
707
- type={'password'}
708
- autocomplete="new-password"
709
- textplaceholder=""
710
- value={payloadobj.password}
711
- onChange={(event) => {
712
- payloadobjchange('password', event.target.value);
713
- }}
714
- style={{
715
- background: sectionproperties.input_bgcolor,
716
- }}
717
- />
718
- {/* <div
719
- onClick={() => {
720
- setshowpassword(!showpassword);
721
- }}
722
- className={langdetect == 'en' ? loginstyles.showpassword_input_icon : loginstyles.showpassword_input_icontrans}
723
- >
724
- <i class="h-100 allcentered">
725
- {showpassword == true && <AiOutlineEye size={18} />}
726
- {showpassword == false && <AiOutlineEyeInvisible size={18} />}
727
- </i>
728
- </div> */}
729
- </div>
730
- <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'}>
731
- <label className={`${formstyles.input_label_name}` + ' d-flex align-items-start '}>
732
- {lang.confirmpassword}
733
- {props.srcfromprops == 'signup' && <span class="text-danger ml-1 mr-1">*</span>}
734
- </label>
735
- <input
736
- className={`${loginstyles.form_control} ${formstyles.form_control}`}
737
- type="password"
738
- autocomplete="new-password"
739
- textplaceholder=""
740
- value={payloadobj.password2}
741
- onChange={(event) => {
742
- payloadobjchange('password2', event.target.value);
743
- }}
744
- style={{
745
- background: sectionproperties.input_bgcolor,
746
- }}
747
- />
748
- </div>
749
- {sectionproperties.showpassworddisclaimer == 'Show' && props.srcfromprops == 'signup' && (
750
- <div class="col-lg-12 text-start text-danger">
751
- <p style={{ fontSize: 14 }}>{langdetect == 'en' ? " Password shouldn't be lessthan 8 characters" : 'الرقم السرى لا يقل عن 8 حروف او ارقام'}</p>
752
- </div>
753
- )}
754
- </div>
755
- );
756
- };
757
- const Otherinformation = () => {
758
- return (
759
- <div className="row m-0 w-100">
760
- {payloadobj.instsignupformvalues.length != 0 && (
761
- <>
762
- {payloadobj.instsignupformvalues.map((item, index) => {
763
- return (
764
- <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'}>
765
- {item.inputtype != 'checkbox' && (
766
- <label className={formstyles.input_label_name + ' d-flex align-items-start '}>
767
- {langdetect == 'en' ? item.inputname_en : item.inputname_ar} <span class="text-danger ml-1 mr-1">{item.optional == 1 ? '*' : ''}</span>
768
- </label>
769
- )}
770
- <div className={loginstyles.wrap_input100}>
771
- {item.inputtype == 'input' && (
772
- <input
773
- className={`${loginstyles.form_control} ${formstyles.form_control}`}
774
- type="text"
775
- value={item.customersignupvalue}
776
- textplaceholder=""
777
- onChange={(event) => {
778
- var temppayloadobj = { ...payloadobj };
779
- temppayloadobj.instsignupformvalues[index].customersignupvalue = event.target.value;
780
- setpayloadobj({ ...temppayloadobj });
781
- }}
782
- style={{
783
- background: 'transparent',
784
- }}
785
- />
786
- )}
787
- {item.inputtype == 'checkbox' && (
788
- <label
789
- className={
790
- langdetect == 'en'
791
- ? `${loginstyles.checkbox} ${formstyles.checkbox} ` + ' d-flex mb-0 '
792
- : `${loginstyles.checkbox} ${loginstyles.checkboxtranslated}` + ' d-flex mb-0 '
793
- }
794
- for="codcheckbox"
795
- >
796
- <input
797
- id={'codcheckbox'}
798
- type="checkbox"
799
- className={formstyles.checkboxinputstyles + ' mt-auto mb-auto '}
800
- checked={item.customersignupvalue == 1 ? true : false}
801
- onChange={() => {
802
- var temppayloadobj = { ...payloadobj };
803
- if (temppayloadobj.instsignupformvalues[index].customersignupvalue == 1) {
804
- temppayloadobj.instsignupformvalues[index].customersignupvalue = 0;
805
- } else {
806
- temppayloadobj.instsignupformvalues[index].customersignupvalue = 1;
807
- }
808
- setpayloadobj({ ...temppayloadobj });
809
- }}
810
- />
811
- <svg viewBox="0 0 21 21" className={formstyles.svgstyles + ' h-100 '}>
812
- <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>
813
- </svg>
814
- <p className={formstyles.input_label_name + ' ml-2 cursor-pointer wordbreak mr-2'} style={{}}>
815
- {langdetect == 'en' ? item.inputname_en : item.inputname_ar} <span class="text-danger ml-1 mr-1">{item.optional == 1 ? '' : '*'}</span>
816
- </p>
817
- </label>
818
- )}
819
- {item.inputtype == 'selectbox' && (
820
- <select
821
- className={`${loginstyles.form_control} ${formstyles.form_control}`}
822
- value={item.customersignupvalue}
823
- textplaceholder=""
824
- onChange={(event) => {
825
- var temppayloadobj = { ...payloadobj };
826
- temppayloadobj.instsignupformvalues[index].customersignupvalue = event.target.value;
827
- setpayloadobj({ ...temppayloadobj });
828
- }}
829
- >
830
- <option value={''} disabled>
831
- {langdetect == 'en' ? 'Choose' : 'إختر'}
832
- </option>
833
- {JSON.parse(item.selectboxvalues).map((selectboxitem, selectboxindex) => {
834
- return <option value={selectboxitem.optionname_en}>{langdetect == 'en' ? selectboxitem.optionname_en : selectboxitem.optionname_ar}</option>;
835
- })}
836
- </select>
837
- )}
838
- {item.inputtype == 'textarea' && (
839
- <TextareaAutosize
840
- type="text"
841
- className={`${loginstyles.form_control} ${formstyles.form_control}`}
842
- value={item.customersignupvalue}
843
- textplaceholder=""
844
- onChange={(event) => {
845
- var temppayloadobj = { ...payloadobj };
846
- temppayloadobj.instsignupformvalues[index].customersignupvalue = event.target.value;
847
- setpayloadobj({ ...temppayloadobj });
848
- }}
849
- style={{
850
- resize: 'none',
851
- }}
852
- />
853
- )}
854
- <span className={loginstyles.login_input_focus}></span>
855
- </div>
856
- </div>
857
- );
858
- })}
859
- </>
860
- )}
861
- </div>
862
- );
863
- };
864
- const SignUpButtonContent = () => {
865
- return (
866
- <button
867
- className={`${formstyles.signupbtn}` + ' d-flex align-items-center justify-content-center '}
868
- disabled={CustomerSignUpMutationContext.isLoading ? true : false}
869
- onClick={() => {
870
- if (verifypayload() == true) {
871
- var isEmailOTP_Validated = false;
872
- var isPhoneNumberOTP_Validated = false;
873
- if (customervalidateemail == 1) {
874
- if (validateemailpayload.isvalidated) {
875
- isEmailOTP_Validated = true;
876
- } else {
877
- isEmailOTP_Validated = false;
878
- setvalidateemailmodal(true);
879
- }
880
- } else {
881
- isEmailOTP_Validated = true;
882
- }
883
- if (customervalidatephonenumber == 1) {
884
- if (validatephonenumberpayload.isvalidated) {
885
- isPhoneNumberOTP_Validated = true;
886
- } else {
887
- isPhoneNumberOTP_Validated = false;
888
- setvalidatephonenumbermodal(true);
889
- }
890
- } else {
891
- isPhoneNumberOTP_Validated = true;
892
- }
893
- if (isPhoneNumberOTP_Validated && isEmailOTP_Validated) {
894
- signupbuttonfunc();
895
- }
896
- }
897
- }}
898
- >
899
- {CustomerSignUpMutationContext.isLoading && <CircularProgress color="#fff" width="20px" height="20px" duration="1s" />}
900
-
901
- {!CustomerSignUpMutationContext.isLoading && (
902
- <>
903
- {authdetailsContext.loggedin != true && (
904
- <span style={{ letterSpacing: langdetect == 'en' ? '1px' : '' }}>{langdetect == 'en' ? sectionproperties.signupbtn_contenten : sectionproperties.signupbtn_contentar}</span>
905
- )}
906
- {authdetailsContext.loggedin == true && <span>{lang.update}</span>}
907
- </>
908
- )}
909
- </button>
910
- );
911
- };
912
- return (
913
- <div
914
- className="row m-0 w-100 d-flex justify-content-center"
915
- style={
916
- {
917
- // heigh: '100%',
918
- }
919
- }
920
- >
921
- {!dataloaded && <CircularProgress color="black" width="20px" height="20px" duration="1s" />}
922
- {dataloaded && props.srcfromprops == 'signup' && waitingpage == false && (
923
- <div
924
- className="col-lg-12 p-0"
925
- style={{
926
- background: sectionproperties.formLeftbgColor,
927
- }}
928
- >
929
- {PersonalInformation()}
930
- {Address()}
931
- {Otherinformation()}
932
- {sectionproperties.hidepassword == 'Show' && authdetailsContext?.instinfo?.ispasswordrequired_signup == 1 && Password()}
933
- {/* {Password()} */}
934
- </div>
935
- )}
936
- {dataloaded && props.srcfromprops == 'accountinfo' && (
937
- <div className="col-lg-12 p-0">
938
- <div className="row ml-0 mr-0 w-100">
939
- {sectionproperties.showsubscription == 'Show' && (
940
- <div className="col-lg-6 col-md-6 col-sm-12 mb-3">
941
- <div
942
- style={{
943
- background: sectionproperties.backgroundColor,
944
- borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
945
- borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
946
- borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
947
- borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
948
- }}
949
- className="px-2 py-3 flex-column"
950
- >
951
- <p
952
- class="m-0 p-0 allcentered "
953
- style={{
954
- fontSize: sectionproperties.sectionTitleFontSize + 'px',
955
- color: sectionproperties.sectionTitleColor,
956
- fontWeight: sectionproperties.sectionTitleFontWeight,
957
- }}
958
- >
959
- {langdetect == 'en' ? 'Subscribed at' : 'مشترك فى'}
960
- </p>
961
- <p
962
- class="m-0 p-0 allcentered "
963
- style={{
964
- fontSize: sectionproperties.sectionTitleFontSize + 'px',
965
- color: sectionproperties.sectionTitleColor,
966
- fontWeight: sectionproperties.sectionTitleFontWeight,
967
- }}
968
- >
969
- {authdetailsContext?.customerinfo?.subscription_name}
970
- </p>
971
- </div>
972
- </div>
973
- )}
974
- {sectionproperties.showsubscription == 'Show' && (
975
- <div className="col-lg-6 col-md-6 col-sm-12 mb-3">
976
- <div
977
- style={{
978
- background: sectionproperties.backgroundColor,
979
- borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
980
- borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
981
- borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
982
- borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
983
- }}
984
- className="px-2 py-3 allcentered flex-column"
985
- >
986
- <p
987
- class="m-0 p-0"
988
- style={{
989
- fontSize: sectionproperties.sectionTitleFontSize + 'px',
990
- color: sectionproperties.sectionTitleColor,
991
- fontWeight: sectionproperties.sectionTitleFontWeight,
992
- }}
993
- >
994
- {langdetect == 'en' ? 'Subscription ends on' : 'الإشتراك ينتهى فى'}
995
- </p>
996
- <p
997
- class="m-0 p-0"
998
- style={{
999
- fontSize: sectionproperties.sectionTitleFontSize + 'px',
1000
- color: sectionproperties.sectionTitleColor,
1001
- fontWeight: sectionproperties.sectionTitleFontWeight,
1002
- }}
1003
- >
1004
- {authdetailsContext?.customerinfo?.subscrption_enddate}
1005
- </p>
1006
- </div>
1007
- </div>
1008
- )}
1009
- <div className={sectionproperties.cardstyletype == 'Style 1' ? 'col-lg-12 mb-3 p-0' : 'col-lg-12 p-0'}>
1010
- <div
1011
- style={{
1012
- background: sectionproperties.backgroundColor,
1013
- borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
1014
- borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
1015
- borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
1016
- borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
1017
- }}
1018
- className={sectionproperties.cardstyletype == 'Style 1' ? 'p-2 w-100' : 'w-100'}
1019
- >
1020
- {sectionproperties.cardstyletype == 'Style 1' && (
1021
- <div className="row ml-0 mr-0">
1022
- <div className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex justify-content-center">
1023
- <p
1024
- className="m-0 p-0"
1025
- style={{
1026
- fontSize: sectionproperties.sectionTitleFontSize + 'px',
1027
- color: sectionproperties.sectionTitleColor,
1028
- fontWeight: sectionproperties.sectionTitleFontWeight,
1029
- }}
1030
- >
1031
- {lang.personalinformation}
1032
- </p>
1033
- </div>
1034
- <div className="col-lg-12 p-0">
1035
- <hr className="mt-2 mb-3" />
1036
- </div>
1037
- </div>
1038
- )}
1039
- {PersonalInformation()}
1040
- </div>
1041
- </div>
1042
- <div
1043
- className={sectionproperties.cardstyletype == 'Style 1' ? 'col-lg-12 mb-3 p-0' : 'col-lg-12 p-0'}
1044
- style={{
1045
- display: sectionproperties.hidecountrystatecity == 'Show' && sectionproperties.hideaddress == 'Show' ? 'flex' : 'none',
1046
- }}
1047
- >
1048
- <div
1049
- className={sectionproperties.cardstyletype == 'Style 1' ? 'p-2 w-100' : 'w-100'}
1050
- style={{
1051
- background: sectionproperties.backgroundColor,
1052
- borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
1053
- borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
1054
- borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
1055
- borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
1056
- }}
1057
- >
1058
- {sectionproperties.cardstyletype == 'Style 1' && (
1059
- <div className="row ml-0 mr-0">
1060
- <div className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex justify-content-center">
1061
- <p
1062
- className="m-0 p-0"
1063
- style={{
1064
- fontSize: sectionproperties.sectionTitleFontSize + 'px',
1065
- color: sectionproperties.sectionTitleColor,
1066
- fontWeight: sectionproperties.sectionTitleFontWeight,
1067
- }}
1068
- >
1069
- {lang.address}
1070
- </p>
1071
- </div>
1072
- <div className="col-lg-12 p-0">
1073
- <hr className="mt-2 mb-3" />
1074
- </div>
1075
- </div>
1076
- )}
1077
- {Address()}
1078
- </div>
1079
- </div>
1080
- <div className={sectionproperties.cardstyletype == 'Style 1' ? 'col-lg-12 mb-3 p-0' : 'col-lg-12 p-0'}>
1081
- <div
1082
- className={sectionproperties.cardstyletype == 'Style 1' ? 'p-2 w-100' : 'w-100'}
1083
- style={{
1084
- background: sectionproperties.backgroundColor,
1085
- borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
1086
- borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
1087
- borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
1088
- borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
1089
- }}
1090
- >
1091
- {sectionproperties.cardstyletype == 'Style 1' && (
1092
- <div className="row ml-0 mr-0">
1093
- <div className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex justify-content-center">
1094
- <p
1095
- className="m-0 p-0"
1096
- style={{
1097
- fontSize: sectionproperties.sectionTitleFontSize + 'px',
1098
- color: sectionproperties.sectionTitleColor,
1099
- fontWeight: sectionproperties.sectionTitleFontWeight,
1100
- }}
1101
- >
1102
- {lang.security}
1103
- </p>
1104
- </div>
1105
- <div className="col-lg-12 p-0">
1106
- <hr className="mt-2 mb-3" />
1107
- </div>
1108
- </div>
1109
- )}
1110
- <div className="row ml-0 mr-0">{Password()}</div>
1111
- </div>
1112
- </div>
1113
- {payloadobj.instsignupformvalues.length != 0 && (
1114
- <div className={sectionproperties.cardstyletype == 'Style 1' ? 'col-lg-12 mb-3 p-0' : 'col-lg-12 p-0'}>
1115
- <div
1116
- style={{
1117
- background: sectionproperties.backgroundColor,
1118
- borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
1119
- borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
1120
- borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
1121
- borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
1122
- }}
1123
- className={sectionproperties.cardstyletype == 'Style 1' ? 'p-2 w-100' : 'w-100'}
1124
- >
1125
- <div className="row ml-0 mr-0">
1126
- <div className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex justify-content-center">
1127
- <p
1128
- className="m-0 p-0"
1129
- style={{
1130
- fontSize: sectionproperties.sectionTitleFontSize + 'px',
1131
- color: sectionproperties.sectionTitleColor,
1132
- fontWeight: sectionproperties.sectionTitleFontWeight,
1133
- }}
1134
- >
1135
- {lang.otherinformation}
1136
- </p>
1137
- </div>
1138
- <div className="col-lg-12 p-0">
1139
- <hr className="mt-2 mb-3" />
1140
- </div>
1141
- </div>
1142
- <div className="row ml-0 mr-0">{Otherinformation()}</div>
1143
- </div>
1144
- </div>
1145
- )}
1146
- </div>
1147
- </div>
1148
- )}
1149
- {sectionproperties.viewtermsandcondition == 'Show' && (
1150
- <div class="col-lg-12 allcentered">
1151
- <p
1152
- class="m-0 p-0"
1153
- style={{
1154
- fontSize: sectionproperties.termsandconditionfontsize + 'px',
1155
- color: sectionproperties.termsandconditioncolor,
1156
- fontWeight: 600,
1157
- }}
1158
- >
1159
- {langdetect == 'en' ? sectionproperties.termsandconditiontext_en : sectionproperties.termsandconditiontext_ar}{' '}
1160
- <span
1161
- class={formstyles.terms + ' cursor-pointer '}
1162
- onClick={() => {
1163
- window.open(window.location.origin + '/policies', '_blank');
1164
- }}
1165
- >
1166
- {langdetect == 'en' ? 'Terms & Conditions' : 'الشروط و الاحكام'}
1167
- </span>
1168
- </p>
1169
- </div>
1170
- )}
1171
- {waitingpage == false && (
1172
- <div className="col-lg-12 col-md-12 col-sm-12 d-flex align-items-center justify-content-center mb-3 mt-3">
1173
- {authdetailsContext.loggedin == false && SignUpButtonContent()}
1174
- {authdetailsContext.loggedin == true && sectionproperties.showupdatebtn == 'Show' && SignUpButtonContent()}
1175
- </div>
1176
- )}
1177
- {props.srcfromprops == 'signup' && waitingpage == false && (
1178
- <div className="row m-0 w-100">
1179
- <div className="col-lg-12 col-md-12 col-sm-12 d-flex d-md-none align-items-center justify-content-center mb-2">
1180
- <div className="ml-1 mr-1">
1181
- <FacebookLoginButton actions={actions} />
1182
- </div>
1183
- <div className="ml-1 mr-1">
1184
- <GoogleLogin actions={actions} />
1185
- </div>
1186
- </div>
1187
- <div className="col-lg-12 col-md-12 col-sm-12 d-none d-md-flex align-items-center justify-content-center mb-2">
1188
- <div className="ml-1 mr-1">
1189
- <FacebookLoginButton actions={actions} />
1190
- </div>
1191
- </div>
1192
- <div className="col-lg-12 col-md-12 col-sm-12 d-none d-md-flex align-items-center justify-content-center mb-2">
1193
- <div className="ml-1 mr-1">
1194
- <GoogleLogin actions={actions} />
1195
- </div>
1196
- </div>
1197
- </div>
1198
- )}
1199
- {waitingpage == true && (
1200
- <div class="col-lg-12 allcentered my-5">
1201
- <div class="row m-0 w-100">
1202
- <div class="col-lg-12 allcentered">
1203
- <p
1204
- style={{
1205
- color: sectionproperties.waitingapprovalcolor,
1206
- fontSize: sectionproperties.waitingapprovalfontsize + 'px',
1207
- }}
1208
- >
1209
- {langdetect == 'en' ? sectionproperties.waitingapprovaltest_en : sectionproperties.waitingapprovaltest_ar}
1210
- </p>
1211
- </div>
1212
- <div class="col-lg-12 allcentered">
1213
- <p
1214
- style={{
1215
- color: sectionproperties.waitingapprovalcolor2,
1216
- fontSize: sectionproperties.waitingapprovalfontsize2 + 'px',
1217
- }}
1218
- >
1219
- {langdetect == 'en' ? sectionproperties.waitingapprovaltest_en2 : sectionproperties.waitingapprovaltest_ar2}
1220
- </p>
1221
- </div>
1222
- </div>
1223
- </div>
1224
- )}
1225
- <Modal show={validateemailmodal} onHide={() => setvalidateemailmodal(false)} centered size={'md'}>
1226
- <Modal.Body>
1227
- <Modal.Body>
1228
- <div
1229
- class="d-flex align-items-center justify-content-center bgdanger-hover"
1230
- style={{ position: 'absolute', right: -15, top: -15, width: '4vh', height: '4vh', background: '#000', borderRadius: '50%' }}
1231
- onClick={() => setvalidateemailmodal(false)}
1232
- >
1233
- <IoMdClose size={15} color="white" />
1234
- </div>
1235
- <div class="row m-0 w-100 allcentered">
1236
- <div className="col-lg-12 col-md-12 col-sm-12 d-flex align-items-center mt-2 justify-content-center">
1237
- <p
1238
- className="text-md-center m-0 p-0 mb-2"
1239
- style={{
1240
- fontSize: '19px',
1241
- color: '#000',
1242
- fontWeight: 600,
1243
- }}
1244
- >
1245
- {langdetect == 'en' ? 'Validate Email' : 'التحقق من صحة البريد الإلكتروني'}
1246
- </p>
1247
- </div>
1248
- <div class="col-lg-12 p-0">
1249
- <hr class={'m-0 p-0'} />
1250
- </div>
1251
- </div>
1252
- <div class="row w-100 m-0 mb-3 pl-2 pr-2 pt-3 pb-3 pl-sm-3 pr-sm-3">
1253
- <div className="col-lg-12 col-md-12 col-sm-12 mb-2 p-sm-0">
1254
- <label
1255
- className={`${formstyles.logininputLabel}` + ' d-flex justify-content-start '}
1256
- style={{
1257
- color: '#000',
1258
- }}
1259
- >
1260
- {langdetect == 'en' ? 'Email' : 'البريد الإلكترونى'}
1261
- </label>
1262
- <input
1263
- type="text"
1264
- className={`${formstyles.form_control}`}
1265
- value={payloadobj.email}
1266
- disabled={true}
1267
- style={{
1268
- background: 'transparent',
1269
- color: '#000',
1270
- }}
1271
- />
1272
- </div>
1273
- {validateemailpayload.step == 'verifycode' && (
1274
- <div className="col-lg-12 col-md-12 col-sm-12 mb-3 mt-3 p-sm-0">
1275
- <label
1276
- className={`${formstyles.logininputLabel}` + ' d-flex justify-content-start '}
1277
- style={{
1278
- color: '#000',
1279
- }}
1280
- >
1281
- {langdetect == 'en' ? 'Code' : ' كود البريد الاكتروني'}
1282
- </label>
1283
- <input
1284
- type="text"
1285
- className={`${formstyles.form_control}`}
1286
- value={validateemailpayload.code}
1287
- onChange={(event) => {
1288
- setvalidateemailpayload({ ...validateemailpayload, code: event.target.value });
1289
- }}
1290
- style={{
1291
- background: 'transparent',
1292
- color: '#000',
1293
- }}
1294
- />
1295
- </div>
1296
- )}
1297
- <div className="col-lg-12 col-md-12 col-sm-12 d-flex align-items-center justify-content-center mb-3 mt-3">
1298
- <button
1299
- className={`${formstyles.signupbtn}` + ' d-flex align-items-center justify-content-center '}
1300
- disabled={GeneralAPIMutationContext.isLoading ? true : false}
1301
- onClick={() => {
1302
- if (payloadobj.email.length != 0) {
1303
- if (validateemailpayload.isvalidated == true) {
1304
- setvalidateemailmodal(false);
1305
- signupbuttonfunc();
1306
- } else {
1307
- GeneralAPIMutationContext.mutate({
1308
- endpointurl: '/validateemail',
1309
- functype: validateemailpayload.step,
1310
- code: validateemailpayload.code,
1311
- name: payloadobj.name,
1312
- email: payloadobj.email,
1313
-
1314
- mutateSuccesscallback: (data, variables) => {
1315
- if (data.data.status) {
1316
- if (data.data.functype == 'sendcode') {
1317
- setvalidateemailpayload({ ...validateemailpayload, step: 'verifycode' });
1318
- }
1319
- if (data.data.functype == 'verifycode') {
1320
- setvalidateemailpayload({ ...validateemailpayload, isvalidated: true });
1321
- setvalidateemailmodal(false);
1322
- if (customervalidatephonenumber == 1) {
1323
- if (validatephonenumberpayload.isvalidated) {
1324
- signupbuttonfunc();
1325
- } else {
1326
- setvalidatephonenumbermodal(true);
1327
- }
1328
- } else {
1329
- signupbuttonfunc();
1330
- }
1331
- }
1332
- } else {
1333
- NotificationManager.warning('', data.data.reason);
1334
- }
1335
- },
1336
- });
1337
- }
1338
- } else {
1339
- NotificationManager.warning(lang.completerequiredfields);
1340
- }
1341
- }}
1342
- >
1343
- {GeneralAPIMutationContext.isLoading && <CircularProgress color="#fff" width="20px" height="20px" duration="1s" />}
1344
-
1345
- {!GeneralAPIMutationContext.isLoading && (
1346
- <>
1347
- <span style={{ letterSpacing: langdetect == 'en' ? '1px' : '' }}>{validateemailpayload.step == 'sendcode' ? lang.sendcode : lang.verifycode}</span>
1348
- </>
1349
- )}
1350
- </button>
1351
- </div>
1352
- </div>
1353
- </Modal.Body>
1354
- </Modal.Body>
1355
- <Modal.Footer></Modal.Footer>
1356
- </Modal>
1357
- <Modal show={validatephonenumbermodal} onHide={() => setvalidatephonenumbermodal(false)} centered size={'md'}>
1358
- <Modal.Body>
1359
- <Modal.Body>
1360
- <div
1361
- class="d-flex align-items-center justify-content-center bgdanger-hover"
1362
- style={{ position: 'absolute', right: -15, top: -15, width: '4vh', height: '4vh', background: '#000', borderRadius: '50%' }}
1363
- onClick={() => setvalidatephonenumbermodal(false)}
1364
- >
1365
- <IoMdClose size={15} color="white" />
1366
- </div>
1367
- <div class="row m-0 w-100 allcentered">
1368
- <div className="col-lg-12 col-md-12 col-sm-12 d-flex align-items-center mt-2 justify-content-center">
1369
- <p
1370
- className="text-md-center m-0 p-0 mb-2"
1371
- style={{
1372
- fontSize: '19px',
1373
- color: sectionproperties.sectionTitleColor,
1374
- fontWeight: 600,
1375
- }}
1376
- >
1377
- {langdetect == 'en' ? 'Validate Phone Number' : 'التحقق من صحة رقم الهاتف'}
1378
- </p>
1379
- </div>
1380
- <div class="col-lg-12 p-0">
1381
- <hr class={'m-0 p-0'} />
1382
- </div>
1383
- </div>
1384
- <div class="row w-100 m-0 mb-3 pl-2 pr-2 pt-3 pb-3 pl-sm-3 pr-sm-3">
1385
- <div className="col-lg-12 col-md-12 col-sm-12 mb-2 p-sm-0">
1386
- <label className={`${formstyles.logininputLabel}` + ' d-flex justify-content-start '}>{langdetect == 'en' ? 'Phone Number' : ' رقم الهاتف'}</label>
1387
- <input
1388
- type="text"
1389
- className={`${formstyles.form_control}`}
1390
- value={payloadobj.mobile}
1391
- disabled={true}
1392
- style={{
1393
- background: 'transparent',
1394
- }}
1395
- />
1396
- </div>
1397
- {validatephonenumberpayload.step == 'verifycode' && (
1398
- <div className="col-lg-12 col-md-12 col-sm-12 mb-3 mt-3 p-sm-0">
1399
- <label className={`${formstyles.logininputLabel}` + ' d-flex justify-content-start '}>{langdetect == 'en' ? 'Code' : ' كود الرسالة النصية'}</label>
1400
- <input
1401
- type="text"
1402
- className={`${formstyles.form_control}`}
1403
- value={validatephonenumberpayload.code}
1404
- onChange={(event) => {
1405
- setvalidatephonenumberpayload({ ...validatephonenumberpayload, code: event.target.value });
1406
- }}
1407
- style={{
1408
- background: 'transparent',
1409
- }}
1410
- />
1411
- </div>
1412
- )}
1413
- <div className="col-lg-12 col-md-12 col-sm-12 d-flex align-items-center justify-content-center mb-3 mt-3">
1414
- <button
1415
- className={`${formstyles.signupbtn}` + ' d-flex align-items-center justify-content-center '}
1416
- disabled={GeneralAPIMutationContext.isLoading ? true : false}
1417
- onClick={() => {
1418
- if (payloadobj.mobile.length != 0) {
1419
- if (validatephonenumberpayload.isvalidated == true) {
1420
- setvalidateemailmodal(false);
1421
- signupbuttonfunc();
1422
- } else {
1423
- GeneralAPIMutationContext.mutate({
1424
- endpointurl: '/validatephonenumber',
1425
- functype: validatephonenumberpayload.step,
1426
- code: validatephonenumberpayload.code,
1427
- name: payloadobj.name,
1428
- phonenumber: payloadobj.mobile,
1429
-
1430
- mutateSuccesscallback: (data, variables) => {
1431
- if (data.data.status) {
1432
- if (data.data.functype == 'sendcode') {
1433
- setvalidatephonenumberpayload({ ...validatephonenumberpayload, step: 'verifycode' });
1434
- }
1435
- if (data.data.functype == 'verifycode') {
1436
- setvalidatephonenumberpayload({ ...validatephonenumberpayload, isvalidated: true });
1437
- setvalidatephonenumbermodal(false);
1438
- if (customervalidateemail == 1) {
1439
- if (validateemailpayload.isvalidated) {
1440
- signupbuttonfunc();
1441
- } else {
1442
- setvalidateemailmodal(true);
1443
- }
1444
- } else {
1445
- signupbuttonfunc();
1446
- }
1447
- }
1448
- } else {
1449
- NotificationManager.warning('', data.data.reason);
1450
- }
1451
- },
1452
- });
1453
- }
1454
- } else {
1455
- NotificationManager.warning(lang.completerequiredfields);
1456
- }
1457
- }}
1458
- >
1459
- {GeneralAPIMutationContext.isLoading && <CircularProgress color="#fff" width="20px" height="20px" duration="1s" />}
1460
-
1461
- {!GeneralAPIMutationContext.isLoading && (
1462
- <>
1463
- <span style={{ letterSpacing: langdetect == 'en' ? '1px' : '' }}>{validatephonenumberpayload.step == 'sendcode' ? lang.sendcode : lang.verifycode}</span>
1464
- </>
1465
- )}
1466
- </button>
1467
- </div>
1468
- </div>
1469
- </Modal.Body>
1470
- </Modal.Body>
1471
- <Modal.Footer></Modal.Footer>
1472
- </Modal>
1473
- </div>
1474
- );
1475
- };
1476
- export default CustomerInformationForm;