tabexseriescomponents 0.0.73 → 0.0.74

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