tabexseriescomponents 0.0.225 → 0.0.227

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