tabexseriescomponents 0.0.705 → 0.0.707

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 (352) hide show
  1. package/dist/index.cjs.js +1070 -1797
  2. package/dist/index.esm.js +1070 -1797
  3. package/dist/index.umd.js +1070 -1798
  4. package/package.json +1 -1
  5. package/srcoriginal/Contexts/LanguageContext.jsx +408 -0
  6. package/srcoriginal/Contexts/ProductsCardsSectionContext.jsx +36 -0
  7. package/srcoriginal/Imagekitconfig.jsx +46 -0
  8. package/srcoriginal/StylesJS/Customstyles.js +345 -0
  9. package/srcoriginal/TabexComponents/Cards/CTAProductCard/CTAProductCard.jsx +376 -0
  10. package/srcoriginal/TabexComponents/Cards/Card20/Card20.jsx +298 -0
  11. package/srcoriginal/TabexComponents/Cards/Card21/Card21.jsx +388 -0
  12. package/srcoriginal/TabexComponents/Cards/Card22/Card22.jsx +288 -0
  13. package/srcoriginal/TabexComponents/Cards/Card23/Card23 copy.jsx +1630 -0
  14. package/srcoriginal/TabexComponents/Cards/Card23/Card23.jsx +733 -0
  15. package/srcoriginal/TabexComponents/Cards/CardAll/CardAll.jsx +453 -0
  16. package/srcoriginal/TabexComponents/Cards/CardBadgeSlideFromTop/CardBadgeSlideFromTop.jsx +394 -0
  17. package/srcoriginal/TabexComponents/Cards/CardWithTextOnly/CardWithTextOnly.jsx +70 -0
  18. package/srcoriginal/TabexComponents/Cards/CategoryCardTextOnImage/CategoryCardTextOnImage.jsx +211 -0
  19. package/srcoriginal/TabexComponents/Cards/CategoryCardwithhoveraction/CategoryCardwithhoveraction.jsx +255 -0
  20. package/srcoriginal/TabexComponents/Cards/Categorycard_fullimage/Categorycard_fullimage.jsx +235 -0
  21. package/srcoriginal/TabexComponents/Cards/Categorycard_slidebgscaled/Categorycard_slidebgscaled.jsx +199 -0
  22. package/srcoriginal/TabexComponents/Cards/Categorycard_with_trianglebg/Categorycard_with_trianglebg.jsx +182 -0
  23. package/srcoriginal/TabexComponents/Cards/Categorycard_with_twolinestransition/Categorycard_with_twolinestransition.jsx +181 -0
  24. package/srcoriginal/TabexComponents/Cards/Categorycard_withshapes/Categorycard_withshapes.jsx +161 -0
  25. package/srcoriginal/TabexComponents/Cards/Categorycard_withtext/Categorycard_withtext.jsx +184 -0
  26. package/srcoriginal/TabexComponents/Cards/CircleCardWithVariants/CircleCardWithVariants.jsx +560 -0
  27. package/srcoriginal/TabexComponents/Cards/Classiccategorycard/Classiccategorycard copy.jsx +145 -0
  28. package/srcoriginal/TabexComponents/Cards/Classiccategorycard/Classiccategorycard.jsx +147 -0
  29. package/srcoriginal/TabexComponents/Cards/Classiccategorycard/ClassiccategorycardOriginal.jsx +142 -0
  30. package/srcoriginal/TabexComponents/Cards/HorizontalCategoryCard/HorizontalCategoryCard.jsx +193 -0
  31. package/srcoriginal/TabexComponents/Cards/Horizontalcard/Horizontalcard.jsx +409 -0
  32. package/srcoriginal/TabexComponents/Cards/MenuCard/MenuCard.jsx +744 -0
  33. package/srcoriginal/TabexComponents/Cards/ModernCardWithQuantityButton/ModernCardWithQuantityButton.jsx +468 -0
  34. package/srcoriginal/TabexComponents/Cards/ModernProductCard/ModernProductCard.jsx +593 -0
  35. package/srcoriginal/TabexComponents/Cards/Moderncategorycard/Moderncategorycard.jsx +208 -0
  36. package/srcoriginal/TabexComponents/Cards/NewProductcard/NewProductcard copy.jsx +497 -0
  37. package/srcoriginal/TabexComponents/Cards/NewProductcard/NewProductcard.jsx +512 -0
  38. package/srcoriginal/TabexComponents/Cards/ProductCardWithTextOnImage/ProductCardWithTextOnImage.jsx +304 -0
  39. package/srcoriginal/TabexComponents/Cards/Productcard6/Productcard6.jsx +257 -0
  40. package/srcoriginal/TabexComponents/Cards/Productcard7/Productcard7.jsx +277 -0
  41. package/srcoriginal/TabexComponents/Cards/Productcard_animatedbuttons/Productcard_animatedbuttons.jsx +352 -0
  42. package/srcoriginal/TabexComponents/Cards/Productcard_with_circularbg/Productcard_with_circularbg.jsx +291 -0
  43. package/srcoriginal/TabexComponents/Cards/Productcard_with_circularhover/Productcard_with_circularhover.jsx +315 -0
  44. package/srcoriginal/TabexComponents/Cards/Productcard_with_slideanimation/Productcard_with_slideanimation.jsx +327 -0
  45. package/srcoriginal/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants copy.jsx +408 -0
  46. package/srcoriginal/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants.jsx +528 -0
  47. package/srcoriginal/TabexComponents/Cards/Productcard_with_zoominonhover/Productcard_with_zoominonhover.jsx +600 -0
  48. package/srcoriginal/TabexComponents/Cards/Productcarddefault/Productcarddefault.jsx +275 -0
  49. package/srcoriginal/TabexComponents/Cards/Productccard_with_imageontopleft/Productccard_with_imageontopleft.jsx +286 -0
  50. package/srcoriginal/TabexComponents/Cards/Prouductcard_with_zoomhover/Prouductcard_with_zoomhover.jsx +137 -0
  51. package/srcoriginal/TabexComponents/Cards/QuantityButtonBasedProductCard/QuantityButtonBasedProductCard.jsx +611 -0
  52. package/srcoriginal/TabexComponents/Cards/ServiceCard/ServiceCard.jsx +413 -0
  53. package/srcoriginal/TabexComponents/Cards/Simplecategorycardwithtextbelow/Simplecategorycardwithtextbelow.jsx +225 -0
  54. package/srcoriginal/TabexComponents/Cards/Simpleproductcard/Simpleproductcard copy 2.jsx +525 -0
  55. package/srcoriginal/TabexComponents/Cards/Simpleproductcard/Simpleproductcard copy.jsx +455 -0
  56. package/srcoriginal/TabexComponents/Cards/Simpleproductcard/Simpleproductcard.jsx +905 -0
  57. package/srcoriginal/TabexComponents/Cards/StylishProductCard/StylishProductCard.jsx +337 -0
  58. package/srcoriginal/TabexComponents/Cards/TwoWayServiceSectionWithImage/TwoWayServiceSectionWithImage.jsx +347 -0
  59. package/srcoriginal/TabexComponents/Cards/UpSlideEffectCard/UpSlideEffectCard.jsx +605 -0
  60. package/srcoriginal/TabexComponents/Cards/UserCardWithSocialMediaOnHover/UserCardWithSocialMediaOnHover.jsx +185 -0
  61. package/srcoriginal/TabexComponents/Footer/Allinonefooter/Allinonefooter.jsx +528 -0
  62. package/srcoriginal/TabexComponents/Footer/Footer1/Footer1.jsx +551 -0
  63. package/srcoriginal/TabexComponents/Footer/Footer2/Footer2.jsx +527 -0
  64. package/srcoriginal/TabexComponents/Footer/Footer3/Footer3.jsx +411 -0
  65. package/srcoriginal/TabexComponents/Footer/Footer4/Footer4.jsx +466 -0
  66. package/srcoriginal/TabexComponents/Footer/Footer5/Footer5.jsx +751 -0
  67. package/srcoriginal/TabexComponents/Footer/Footer6/Footer6.jsx +290 -0
  68. package/srcoriginal/TabexComponents/Footer/Footer7/Footer7.jsx +428 -0
  69. package/srcoriginal/TabexComponents/Footer/Footer8/Footer8.jsx +533 -0
  70. package/srcoriginal/TabexComponents/Footer/FooterWithThreeColumns/FooterWithThreeColumns.jsx +330 -0
  71. package/srcoriginal/TabexComponents/Footer/ModernFooter/ModernFooter.jsx +581 -0
  72. package/srcoriginal/TabexComponents/Footer/Newsletterfooter/Newsletterfooter.jsx +884 -0
  73. package/srcoriginal/TabexComponents/Footer/Newsletterincenter/Newsletterincenter.jsx +647 -0
  74. package/srcoriginal/TabexComponents/Footer/PrivacyPolicy/PrivacyPolicy.jsx +110 -0
  75. package/srcoriginal/TabexComponents/Footer/Simplefooter/Simplefooter.jsx +316 -0
  76. package/srcoriginal/TabexComponents/Generalfiles/images/egyptflag.png +0 -0
  77. package/srcoriginal/TabexComponents/Generalfiles/images/noimage.png +0 -0
  78. package/srcoriginal/TabexComponents/Generalfiles/images/payment/cod.png +0 -0
  79. package/srcoriginal/TabexComponents/Generalfiles/images/payment/fawry.png +0 -0
  80. package/srcoriginal/TabexComponents/Generalfiles/images/payment/payment.png +0 -0
  81. package/srcoriginal/TabexComponents/Generalfiles/images/payment/paymob.png +0 -0
  82. package/srcoriginal/TabexComponents/Generalfiles/images/payment/paypal.png +0 -0
  83. package/srcoriginal/TabexComponents/Generalfiles/images/payment/visa.png +0 -0
  84. package/srcoriginal/TabexComponents/Generalfiles/images/shoppingcart.png +0 -0
  85. package/srcoriginal/TabexComponents/Generalfiles/images/tabexlogo.png +0 -0
  86. package/srcoriginal/TabexComponents/Generalfiles/images/unknownmaleuser.png +0 -0
  87. package/srcoriginal/TabexComponents/Generalfiles/images/usflag.png +0 -0
  88. package/srcoriginal/TabexComponents/Generalfiles/images/whatsapp.png +0 -0
  89. package/srcoriginal/TabexComponents/Headers/CTAHeader/CTAHeader.jsx +1259 -0
  90. package/srcoriginal/TabexComponents/Headers/CategoryFeaturingHeader/CategoryFeaturingHeader.jsx +1049 -0
  91. package/srcoriginal/TabexComponents/Headers/CenteredLogoHeaderWithSlider/CenteredLogoHeaderWithSlider.jsx +1040 -0
  92. package/srcoriginal/TabexComponents/Headers/ClassicHeader/ClassicHeader.jsx +1268 -0
  93. package/srcoriginal/TabexComponents/Headers/DownloadApp/DownloadApp.jsx +76 -0
  94. package/srcoriginal/TabexComponents/Headers/ElegantHeader/ElegantHeader.jsx +894 -0
  95. package/srcoriginal/TabexComponents/Headers/Gotoheader/Gotoheader.jsx +831 -0
  96. package/srcoriginal/TabexComponents/Headers/Header4/Header4.jsx +622 -0
  97. package/srcoriginal/TabexComponents/Headers/Header8/Header8 copy.jsx +1026 -0
  98. package/srcoriginal/TabexComponents/Headers/Header8/Header8.jsx +2016 -0
  99. package/srcoriginal/TabexComponents/Headers/HeaderRestaurant/HeaderRestaurant.jsx +776 -0
  100. package/srcoriginal/TabexComponents/Headers/HeaderWithAdSlider/HeaderWithAdSlider.jsx +927 -0
  101. package/srcoriginal/TabexComponents/Headers/HeaderWithSearchOnCenter/HeaderWithSearchOnCenter.jsx +704 -0
  102. package/srcoriginal/TabexComponents/Headers/HeaderWithUtilityBar/HeaderWithUtilityBar.jsx +902 -0
  103. package/srcoriginal/TabexComponents/Headers/Header_threesectionslogocentered/Header_threesectionslogocentered.jsx +1228 -0
  104. package/srcoriginal/TabexComponents/Headers/Headerresponsive/Headerresponsive.jsx +1562 -0
  105. package/srcoriginal/TabexComponents/Headers/Headerresponsive/Headerresponsive11-1.jsx +1201 -0
  106. package/srcoriginal/TabexComponents/Headers/Headerresponsive/HeaderresponsiveOriginal.jsx +990 -0
  107. package/srcoriginal/TabexComponents/Headers/Headerresponsive/HeaderresponsiveStyle2 copy.jsx +1639 -0
  108. package/srcoriginal/TabexComponents/Headers/Headerresponsive/HeaderresponsiveStyle2.jsx +1846 -0
  109. package/srcoriginal/TabexComponents/Headers/Headerresponsive/Headerresponsivenew.jsx +1327 -0
  110. package/srcoriginal/TabexComponents/Headers/HeaderwithContactinfo/HeaderwithContactinfo.jsx +934 -0
  111. package/srcoriginal/TabexComponents/Headers/MarqueeHeader/MarqueeHeader.jsx +78 -0
  112. package/srcoriginal/TabexComponents/Headers/Modernheader/Modernheader.jsx +977 -0
  113. package/srcoriginal/TabexComponents/Headers/SearchCenteredHeader/SearchCenteredHeader.jsx +778 -0
  114. package/srcoriginal/TabexComponents/Headers/SearchFocusedHeader/SearchFocusedHeader.jsx +1159 -0
  115. package/srcoriginal/TabexComponents/Headers/Simpleheader/Simpleheader.jsx +1110 -0
  116. package/srcoriginal/TabexComponents/Headers/SocialMediaSection/SocialMediaSection.jsx +151 -0
  117. package/srcoriginal/TabexComponents/Headers/StylishHeader/StylishHeader.jsx +854 -0
  118. package/srcoriginal/TabexComponents/Headers/Subheader/Subheader.jsx +863 -0
  119. package/srcoriginal/TabexComponents/Headers/Subheader/Subheader13-3.jsx +685 -0
  120. package/srcoriginal/TabexComponents/Headers/Subheader/SubheaderOriginal.jsx +517 -0
  121. package/srcoriginal/TabexComponents/Headers/Subheader/Subheadernew.jsx +555 -0
  122. package/srcoriginal/TabexComponents/Headers/ThreeTieredHeader/ThreeTieredHeader.jsx +1042 -0
  123. package/srcoriginal/TabexComponents/Headers/TwoTieredHeader/TwoTieredHeader.jsx +1093 -0
  124. package/srcoriginal/TabexComponents/Headers/TwoTieredWithCenteredLogoHeader/TwoTieredWithCenteredLogoHeader.jsx +938 -0
  125. package/srcoriginal/TabexComponents/Sections/BackgroundImages/BacgroundThreeImageWithCategories/BacgroundThreeImageWithCategories.jsx +533 -0
  126. package/srcoriginal/TabexComponents/Sections/BackgroundImages/BackgroundFiveImageStructure/BackgroundFiveImageStructure.jsx +338 -0
  127. package/srcoriginal/TabexComponents/Sections/BackgroundImages/BackgroundImageWithTopContent/BackgroundImageWithTopContent.jsx +870 -0
  128. package/srcoriginal/TabexComponents/Sections/BackgroundImages/BackgroundSectionWithServicesCards/BackgroundSectionWithServicesCards.jsx +302 -0
  129. package/srcoriginal/TabexComponents/Sections/BackgroundImages/Backgroundimage1/Backgroundimage1.jsx +314 -0
  130. package/srcoriginal/TabexComponents/Sections/BackgroundImages/Backgroundimage_with_toppill/Backgroundimage_with_toppill.jsx +318 -0
  131. package/srcoriginal/TabexComponents/Sections/BackgroundImages/BackgroundimageandTextsection/BackgroundimageandTextsection.jsx +179 -0
  132. package/srcoriginal/TabexComponents/Sections/BackgroundImages/Bgimagewithsearchbar/Bgimagewithsearchbar.jsx +201 -0
  133. package/srcoriginal/TabexComponents/Sections/BackgroundImages/CollapsableSection/CollapsableSection.jsx +393 -0
  134. package/srcoriginal/TabexComponents/Sections/BackgroundImages/DynamicForm/DynamicForm copy 2.jsx +583 -0
  135. package/srcoriginal/TabexComponents/Sections/BackgroundImages/DynamicForm/DynamicForm copy.jsx +291 -0
  136. package/srcoriginal/TabexComponents/Sections/BackgroundImages/DynamicForm/DynamicForm.jsx +677 -0
  137. package/srcoriginal/TabexComponents/Sections/BackgroundImages/DynamicForm/habal +348 -0
  138. package/srcoriginal/TabexComponents/Sections/BackgroundImages/Filterwithcategoriespcoll/Filterwithcategoriespcoll.jsx +387 -0
  139. package/srcoriginal/TabexComponents/Sections/BackgroundImages/FullVideoSection/FullVideoSection.jsx +268 -0
  140. package/srcoriginal/TabexComponents/Sections/BackgroundImages/MapsSection/MapsSection.jsx +288 -0
  141. package/srcoriginal/TabexComponents/Sections/BackgroundImages/Popupcomponent/Popupcomponent.jsx +117 -0
  142. package/srcoriginal/TabexComponents/Sections/BackgroundImages/Searchcomponent/Searchcomponent.jsx +99 -0
  143. package/srcoriginal/TabexComponents/Sections/BackgroundImages/Section_with_rightbgcont/Section_with_rightbgcont.jsx +146 -0
  144. package/srcoriginal/TabexComponents/Sections/BackgroundImages/TextSectionConnectToWA/TextSectionConnectToWA.jsx +462 -0
  145. package/srcoriginal/TabexComponents/Sections/BackgroundImages/Threebgimages/Threebgimages.jsx +296 -0
  146. package/srcoriginal/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages copy.jsx +396 -0
  147. package/srcoriginal/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages.jsx +616 -0
  148. package/srcoriginal/TabexComponents/Sections/BackgroundImages/VideosSection/VideosSection.jsx +408 -0
  149. package/srcoriginal/TabexComponents/Sections/Cards/CardsSection/CardsSection copy 2.jsx +1399 -0
  150. package/srcoriginal/TabexComponents/Sections/Cards/CardsSection/CardsSection copy 3.jsx +1656 -0
  151. package/srcoriginal/TabexComponents/Sections/Cards/CardsSection/CardsSection copy.jsx +1540 -0
  152. package/srcoriginal/TabexComponents/Sections/Cards/CardsSection/CardsSection.jsx +1938 -0
  153. package/srcoriginal/TabexComponents/Sections/Cards/CardsSection/CardsSection13-3.jsx +1596 -0
  154. package/srcoriginal/TabexComponents/Sections/Cards/CardsSection/CardsSection21-10.jsx +1872 -0
  155. package/srcoriginal/TabexComponents/Sections/Cards/CardsSection/CardsSection21-11beforeform.jsx +1891 -0
  156. package/srcoriginal/TabexComponents/Sections/Cards/CardsSection/CardsSection_cosmoandmore.jsx +1880 -0
  157. package/srcoriginal/TabexComponents/Sections/Cards/CardsSection2/CardsSection2.jsx +726 -0
  158. package/srcoriginal/TabexComponents/Sections/Cards/CardsSectionwithfilter/CardsSectionwithfilter.jsx +719 -0
  159. package/srcoriginal/TabexComponents/Sections/Cards/ElegantCategoriesCardSection/ElegantCategoriesCardSection.jsx +406 -0
  160. package/srcoriginal/TabexComponents/Sections/Cards/ModernCardsSection/ModernCardsSection.jsx +929 -0
  161. package/srcoriginal/TabexComponents/Sections/Cards/RandomlyStructuredCollectionCards/RandomlyStructuredCollectionCards copy.jsx +646 -0
  162. package/srcoriginal/TabexComponents/Sections/Cards/RandomlyStructuredCollectionCards/RandomlyStructuredCollectionCards.jsx +1238 -0
  163. package/srcoriginal/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.jsx +582 -0
  164. package/srcoriginal/TabexComponents/Sections/Cards/UsersCardsSection/UsersCardsSection.jsx +383 -0
  165. package/srcoriginal/TabexComponents/Sections/Slideshow/AboutSection/AboutSection.jsx +342 -0
  166. package/srcoriginal/TabexComponents/Sections/Slideshow/Backgroundimage_with_topcircle/Backgroundimage_with_topcircle.jsx +161 -0
  167. package/srcoriginal/TabexComponents/Sections/Slideshow/ContactUsSection/ContactUsSection.jsx +257 -0
  168. package/srcoriginal/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection copy.jsx +382 -0
  169. package/srcoriginal/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection.jsx +760 -0
  170. package/srcoriginal/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection19-11.jsx +757 -0
  171. package/srcoriginal/TabexComponents/Sections/Slideshow/HorizontalContactUsSection/HorizontalContactUsSection.jsx +346 -0
  172. package/srcoriginal/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx +1679 -0
  173. package/srcoriginal/TabexComponents/Sections/Slideshow/Image_with_rightwords/Image_with_rightwords.jsx +141 -0
  174. package/srcoriginal/TabexComponents/Sections/Slideshow/ServiceSectionWithImage/ServiceSectionWithImage.jsx +376 -0
  175. package/srcoriginal/TabexComponents/Sections/Slideshow/Servicesection/Servicesection.jsx +385 -0
  176. package/srcoriginal/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards.jsx +512 -0
  177. package/srcoriginal/TabexComponents/Sections/Slideshow/Slideshow_with_rotatedsquare/Slideshow_with_rotatedsquare.jsx +226 -0
  178. package/srcoriginal/TabexComponents/Sections/Slideshow/Slideshow_with_squarebg/Slideshow_with_squarebg.jsx +149 -0
  179. package/srcoriginal/TabexComponents/Sections/Slideshow/Slideshowdifferentanimations/Slideshowdifferentanimations.jsx +143 -0
  180. package/srcoriginal/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade copy.jsx +634 -0
  181. package/srcoriginal/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade.jsx +520 -0
  182. package/srcoriginal/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide copy.jsx +527 -0
  183. package/srcoriginal/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide.jsx +643 -0
  184. package/srcoriginal/TabexComponents/Sections/Slideshow/Slideshowslide/SlideshowslideOriginal.jsx +477 -0
  185. package/srcoriginal/TabexComponents/Sections/Slideshow/Slideshowslide/SlideshowslideRecent.jsx +1217 -0
  186. package/srcoriginal/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslideoriginal8-5.jsx +614 -0
  187. package/srcoriginal/TabexComponents/Sections/Slideshow/Slideshowzoom/Arrow.jsx +91 -0
  188. package/srcoriginal/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom copy.jsx +380 -0
  189. package/srcoriginal/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom.jsx +619 -0
  190. package/srcoriginal/TabexComponents/Sections/Slideshow/ThreeSectionsWithSlideshow/ThreeSectionsWithSlideshow copy.jsx +284 -0
  191. package/srcoriginal/TabexComponents/Sections/Slideshow/ThreeSectionsWithSlideshow/ThreeSectionsWithSlideshow.jsx +614 -0
  192. package/srcoriginal/TabexComponents/Sections/Slideshow/TwoWayServiceSectionWithImage/TwoWayServiceSectionWithImage.jsx +402 -0
  193. package/srcoriginal/TabexComponents/StaticPages/AccountInformation/AccountInformation.jsx +199 -0
  194. package/srcoriginal/TabexComponents/StaticPages/AddReview/AddReview.jsx +304 -0
  195. package/srcoriginal/TabexComponents/StaticPages/Afiiliatesignup/Afiiliatesignup.jsx +321 -0
  196. package/srcoriginal/TabexComponents/StaticPages/CartSlider/CartSlider.jsx +797 -0
  197. package/srcoriginal/TabexComponents/StaticPages/Categoriesdropdown/Categoriesdropdown.jsx +460 -0
  198. package/srcoriginal/TabexComponents/StaticPages/Checkout/Checkout copy.jsx +1306 -0
  199. package/srcoriginal/TabexComponents/StaticPages/Checkout/Checkout.jsx +1911 -0
  200. package/srcoriginal/TabexComponents/StaticPages/Checkout/Checkout10-1.jsx +1633 -0
  201. package/srcoriginal/TabexComponents/StaticPages/Checkout/Checkout26-9.jsx +1593 -0
  202. package/srcoriginal/TabexComponents/StaticPages/Checkout/Checkout9-9.jsx +1574 -0
  203. package/srcoriginal/TabexComponents/StaticPages/Filter/CollectionsFilterHorizontal.jsx +245 -0
  204. package/srcoriginal/TabexComponents/StaticPages/Filter/Filter copy 2.jsx +2888 -0
  205. package/srcoriginal/TabexComponents/StaticPages/Filter/Filter copy.jsx +1450 -0
  206. package/srcoriginal/TabexComponents/StaticPages/Filter/Filter.jsx +2979 -0
  207. package/srcoriginal/TabexComponents/StaticPages/Filter/Filter1-5.jsx +2624 -0
  208. package/srcoriginal/TabexComponents/StaticPages/Filter/Filter13-11.jsx +2758 -0
  209. package/srcoriginal/TabexComponents/StaticPages/Filter/Filter14-8.jsx +2753 -0
  210. package/srcoriginal/TabexComponents/StaticPages/Filter/Filter17-9.jsx +1495 -0
  211. package/srcoriginal/TabexComponents/StaticPages/Filter/VariantFilter.jsx +1271 -0
  212. package/srcoriginal/TabexComponents/StaticPages/InnerGroups/InnerGroups.jsx +62 -0
  213. package/srcoriginal/TabexComponents/StaticPages/Login/FacebookLoginButton.jsx +50 -0
  214. package/srcoriginal/TabexComponents/StaticPages/Login/GoogleLoginButton.jsx +35 -0
  215. package/srcoriginal/TabexComponents/StaticPages/Login/Login copy.jsx +1060 -0
  216. package/srcoriginal/TabexComponents/StaticPages/Login/Login.jsx +610 -0
  217. package/srcoriginal/TabexComponents/StaticPages/OrderSuccess/OrderSuccess.jsx +172 -0
  218. package/srcoriginal/TabexComponents/StaticPages/Ordershistory/Ordershistory.jsx +1584 -0
  219. package/srcoriginal/TabexComponents/StaticPages/Policies/Policies.jsx +291 -0
  220. package/srcoriginal/TabexComponents/StaticPages/PrivacyPolicy/PrivacyPolicy.jsx +194 -0
  221. package/srcoriginal/TabexComponents/StaticPages/Productinfo/Addreviewform.jsx +183 -0
  222. package/srcoriginal/TabexComponents/StaticPages/Productinfo/AddreviewformOriginal.jsx +128 -0
  223. package/srcoriginal/TabexComponents/StaticPages/Productinfo/Article_itemtype.jsx +255 -0
  224. package/srcoriginal/TabexComponents/StaticPages/Productinfo/DescriptionContent.jsx +176 -0
  225. package/srcoriginal/TabexComponents/StaticPages/Productinfo/ProductExtraFields.jsx +225 -0
  226. package/srcoriginal/TabexComponents/StaticPages/Productinfo/ProductExtras.jsx +92 -0
  227. package/srcoriginal/TabexComponents/StaticPages/Productinfo/ProductHeaderPricing.jsx +312 -0
  228. package/srcoriginal/TabexComponents/StaticPages/Productinfo/ProductReviews.jsx +235 -0
  229. package/srcoriginal/TabexComponents/StaticPages/Productinfo/Product_itemtype.jsx +2118 -0
  230. package/srcoriginal/TabexComponents/StaticPages/Productinfo/Product_itemtype10-1.jsx +1554 -0
  231. package/srcoriginal/TabexComponents/StaticPages/Productinfo/Product_itemtype3-11.jsx +1827 -0
  232. package/srcoriginal/TabexComponents/StaticPages/Productinfo/Product_itemtype31-3.jsx +1351 -0
  233. package/srcoriginal/TabexComponents/StaticPages/Productinfo/Product_itemtypeUpdated.jsx +1566 -0
  234. package/srcoriginal/TabexComponents/StaticPages/Productinfo/Productinfo.jsx +1947 -0
  235. package/srcoriginal/TabexComponents/StaticPages/Productinfo/Service_itemtype.jsx +1037 -0
  236. package/srcoriginal/TabexComponents/StaticPages/Productinfo/Serviceinfotabs.jsx +966 -0
  237. package/srcoriginal/TabexComponents/StaticPages/Productinfo/Variantoptions.jsx +632 -0
  238. package/srcoriginal/TabexComponents/StaticPages/Productinfo/Variantoptions21-9.jsx +324 -0
  239. package/srcoriginal/TabexComponents/StaticPages/Productinfo/staticroutersidenav.module.css +145 -0
  240. package/srcoriginal/TabexComponents/StaticPages/Productinfo4-4/Addreviewform.jsx +183 -0
  241. package/srcoriginal/TabexComponents/StaticPages/Productinfo4-4/AddreviewformOriginal.jsx +128 -0
  242. package/srcoriginal/TabexComponents/StaticPages/Productinfo4-4/DescriptionContent.jsx +140 -0
  243. package/srcoriginal/TabexComponents/StaticPages/Productinfo4-4/ProductExtraFields.jsx +225 -0
  244. package/srcoriginal/TabexComponents/StaticPages/Productinfo4-4/ProductHeaderPricing.jsx +310 -0
  245. package/srcoriginal/TabexComponents/StaticPages/Productinfo4-4/ProductReviews.jsx +235 -0
  246. package/srcoriginal/TabexComponents/StaticPages/Productinfo4-4/Product_itemtype.jsx +1672 -0
  247. package/srcoriginal/TabexComponents/StaticPages/Productinfo4-4/Product_itemtype10-1.jsx +1554 -0
  248. package/srcoriginal/TabexComponents/StaticPages/Productinfo4-4/Product_itemtype31-3.jsx +1351 -0
  249. package/srcoriginal/TabexComponents/StaticPages/Productinfo4-4/Product_itemtypeUpdated.jsx +1566 -0
  250. package/srcoriginal/TabexComponents/StaticPages/Productinfo4-4/Productinfo.jsx +1804 -0
  251. package/srcoriginal/TabexComponents/StaticPages/Productinfo4-4/Service_itemtype.jsx +560 -0
  252. package/srcoriginal/TabexComponents/StaticPages/Productinfo4-4/Serviceinfotabs.jsx +919 -0
  253. package/srcoriginal/TabexComponents/StaticPages/Productinfo4-4/Variantoptions.jsx +597 -0
  254. package/srcoriginal/TabexComponents/StaticPages/Productinfo4-4/Variantoptions21-9.jsx +324 -0
  255. package/srcoriginal/TabexComponents/StaticPages/Productinfo4-4/staticroutersidenav.module.css +145 -0
  256. package/srcoriginal/TabexComponents/StaticPages/RefundPolicy/RefundPolicy.jsx +194 -0
  257. package/srcoriginal/TabexComponents/StaticPages/Resetpassword/Resetpassword.jsx +338 -0
  258. package/srcoriginal/TabexComponents/StaticPages/Searchlist/Searchlist.jsx +359 -0
  259. package/srcoriginal/TabexComponents/StaticPages/ShippingPolicy/ShippingPolicy.jsx +113 -0
  260. package/srcoriginal/TabexComponents/StaticPages/Signup/CustomerAddressForm.jsx +277 -0
  261. package/srcoriginal/TabexComponents/StaticPages/Signup/CustomerInformationForm copy.jsx +1135 -0
  262. package/srcoriginal/TabexComponents/StaticPages/Signup/CustomerInformationForm.jsx +1364 -0
  263. package/srcoriginal/TabexComponents/StaticPages/Signup/Signup.jsx +199 -0
  264. package/srcoriginal/TabexComponents/StaticPages/Staticpagesrouter/Staticpagesrouter.jsx +292 -0
  265. package/srcoriginal/TabexComponents/StaticPages/TermsConditions/TermsConditions.jsx +113 -0
  266. package/srcoriginal/TabexComponents/StaticPages/VendorPage/VendorPage.jsx +162 -0
  267. package/srcoriginal/TabexComponents/StaticPages/Viewcart/Viewcart 10-10.jsx +765 -0
  268. package/srcoriginal/TabexComponents/StaticPages/Viewcart/Viewcart.jsx +786 -0
  269. package/srcoriginal/TabexComponents/StaticPages/Viewcart/Viewcart26-9.jsx +786 -0
  270. package/srcoriginal/TabexComponents/StaticPages/Viewcart/ViewcartOriginal.jsx +786 -0
  271. package/srcoriginal/TabexComponents/StaticPages/Viewcart/ViewcartUpdated.jsx +1425 -0
  272. package/srcoriginal/TabexComponents/StaticPages/Wishlist/Wishlist.jsx +844 -0
  273. package/srcoriginal/TabexComponents/StaticPages/Wishlist/Wishlist25-4.jsx +555 -0
  274. package/srcoriginal/TabexComponents/StaticPages/Wishlist/Wishlist26-9.jsx +555 -0
  275. package/srcoriginal/TabexComponents/StaticPages/Wishlist/WishlistOriginal.jsx +555 -0
  276. package/srcoriginal/TabexComponents/StaticPages/Wishlist/WishlistUpdated.jsx +815 -0
  277. package/srcoriginal/button.jsx +40 -0
  278. package/srcoriginal/index.jsx +334 -0
  279. package/srcoriginal/styles/Home.module.css +129 -0
  280. package/srcoriginal/styles/cards/Categorcycard_fullimage.module.css +14 -0
  281. package/srcoriginal/styles/cards/Categorycard_slidebgscaled.module.css +73 -0
  282. package/srcoriginal/styles/cards/Categorycard_withshapes.module.css +189 -0
  283. package/srcoriginal/styles/cards/ModernCardWithQuantityButton.module.css +30 -0
  284. package/srcoriginal/styles/cards/Productcard6.module.css +9 -0
  285. package/srcoriginal/styles/cards/Productccard_with_zoominonhover.module.css +51 -0
  286. package/srcoriginal/styles/cards/Prouductcard_with_zoomhover.module.css +61 -0
  287. package/srcoriginal/styles/cards/UserCardWithSocialMediaOnHover.module.css +65 -0
  288. package/srcoriginal/styles/cards/card23.module.css +60 -0
  289. package/srcoriginal/styles/cards/categorycard.module.css +84 -0
  290. package/srcoriginal/styles/cards/categorycard3.module.css +50 -0
  291. package/srcoriginal/styles/cards/categorycardwithtext.module.css +40 -0
  292. package/srcoriginal/styles/cards/generalCardsStyles.module.css +79 -0
  293. package/srcoriginal/styles/cards/productcard_animatedbuttons.module.css +139 -0
  294. package/srcoriginal/styles/cards/productcard_with_textonhover.module.css +18 -0
  295. package/srcoriginal/styles/cards/productcard_withtextonimage.module.css +0 -0
  296. package/srcoriginal/styles/cards/productccard_with_imageontopleft.module.css +85 -0
  297. package/srcoriginal/styles/general/bootstrap.css +4763 -0
  298. package/srcoriginal/styles/general/dropdown.css +206 -0
  299. package/srcoriginal/styles/general/editorbardropdown.module.css +94 -0
  300. package/srcoriginal/styles/general/filter.module.css +108 -0
  301. package/srcoriginal/styles/general/form.module.css +255 -0
  302. package/srcoriginal/styles/general/general.module.css +872 -0
  303. package/srcoriginal/styles/general/image-gallery.css +531 -0
  304. package/srcoriginal/styles/general/react-accessible-accordion.module.css +52 -0
  305. package/srcoriginal/styles/general/react-phone-input-2.module.css +927 -0
  306. package/srcoriginal/styles/general/scrollbtn.module.css +22 -0
  307. package/srcoriginal/styles/general/slick.module.css +166 -0
  308. package/srcoriginal/styles/general/tabs.module.css +119 -0
  309. package/srcoriginal/styles/general/workplaceeditor.module.css +328 -0
  310. package/srcoriginal/styles/globals.css +26 -0
  311. package/srcoriginal/styles/headers/CTAHeader.module.css +40 -0
  312. package/srcoriginal/styles/headers/CategoryFeaturingHeader.module.css +61 -0
  313. package/srcoriginal/styles/headers/Gotoheader.module.css +87 -0
  314. package/srcoriginal/styles/headers/Header7.module.css +50 -0
  315. package/srcoriginal/styles/headers/HeaderWithAdSlider.module.css +86 -0
  316. package/srcoriginal/styles/headers/HeaderWithSearchOnCenter.module.css +101 -0
  317. package/srcoriginal/styles/headers/HeaderWithUtilityBar.module.css +46 -0
  318. package/srcoriginal/styles/headers/Header_threesectionslogocentered.module.css +84 -0
  319. package/srcoriginal/styles/headers/NewHeader.module.css +101 -0
  320. package/srcoriginal/styles/headers/SearchFocusedHeader.module.css +62 -0
  321. package/srcoriginal/styles/headers/Sideheader.module.css +108 -0
  322. package/srcoriginal/styles/headers/Simpleheader.module.css +102 -0
  323. package/srcoriginal/styles/headers/classicheader.module.css +16 -0
  324. package/srcoriginal/styles/headers/classicheaderstyles.module.css +9 -0
  325. package/srcoriginal/styles/headers/dropdown.css +0 -0
  326. package/srcoriginal/styles/headers/header4.module.css +175 -0
  327. package/srcoriginal/styles/headers/header5.module.css +30 -0
  328. package/srcoriginal/styles/headers/header_contactinfo.module.css +53 -0
  329. package/srcoriginal/styles/headers/headerresturant.module.css +89 -0
  330. package/srcoriginal/styles/headers/modernheader.module.css +45 -0
  331. package/srcoriginal/styles/headers/stylishheader.module.css +24 -0
  332. package/srcoriginal/styles/headers/subheader.module.css +114 -0
  333. package/srcoriginal/styles/headers/threetieredheader.module.css +91 -0
  334. package/srcoriginal/styles/sections/BackgroundImageWithTopContent.css +4 -0
  335. package/srcoriginal/styles/sections/Backgroundimage1.module.css +17 -0
  336. package/srcoriginal/styles/sections/Backgroundimage_with_topcircle.module.css +28 -0
  337. package/srcoriginal/styles/sections/Freetext.module.css +18 -0
  338. package/srcoriginal/styles/sections/Section_with_rightbgcont.module.css +49 -0
  339. package/srcoriginal/styles/sections/Slideshow_with_rotatedsquare.module.css +35 -0
  340. package/srcoriginal/styles/sections/Slideshow_with_squarebg.module.css +39 -0
  341. package/srcoriginal/styles/staticpages/accordion.module.css +9 -0
  342. package/srcoriginal/styles/staticpages/cart.module.css +108 -0
  343. package/srcoriginal/styles/staticpages/dropdown.css +196 -0
  344. package/srcoriginal/styles/staticpages/filter.module.css +139 -0
  345. package/srcoriginal/styles/staticpages/image-gallery.css +481 -0
  346. package/srcoriginal/styles/staticpages/login.module.css +155 -0
  347. package/srcoriginal/styles/staticpages/productinfo.module.css +54 -0
  348. package/srcoriginal/styles/staticpages/shop.module.css +191 -0
  349. package/srcoriginal/styles/staticpages/signup.module.css +250 -0
  350. package/srcoriginal/styles/staticpages/staticroutersidenav.module.css +129 -0
  351. package/srcoriginal/styles/staticpages/viewcart.module.css +129 -0
  352. package/srcoriginal/styles/staticpages/wishlist.module.css +29 -0
@@ -0,0 +1,677 @@
1
+ import React, { useEffect, useState, useContext } from 'react';
2
+ import { css } from 'glamor';
3
+ import TextareaAutosize from 'react-textarea-autosize';
4
+ import formstyles from '../../../../styles/general/form.module.css';
5
+ import { CircularProgress } from 'react-cssfx-loading';
6
+ import { IoMdClose } from '@react-icons/all-files/io/IoMdClose';
7
+ import { BsChevronLeft } from '@react-icons/all-files/bs/BsChevronLeft';
8
+ import { BsChevronRight } from '@react-icons/all-files/bs/BsChevronRight';
9
+ // 49
10
+ import PhoneInput from 'react-phone-input-2';
11
+
12
+ import { Modal } from 'react-bootstrap';
13
+ const DynamicForm = (props) => {
14
+ const lang = props.actions.lang;
15
+ const langdetect = props.actions.langdetect;
16
+ const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
17
+ const NotificationManager = props.actions.NotificationManager;
18
+ const dynamicformid = props.actions.dynamicformid;
19
+ const GeneralAPIMutationContext = props.actions.GeneralAPIMutationContext;
20
+ const fetchdynamicformfeildsQueryContext = props.actions.fetchdynamicformfeildsQueryContext;
21
+ const [sectionproperties, setsectionproperties] = useState('');
22
+ const [dynamicform, setdynamicform] = useState({});
23
+ const [formtitleen, setformtitleen] = useState('');
24
+ const [formtitlear, setformtitlear] = useState('');
25
+ const [confirmationtext, setconfirmationtext] = useState('');
26
+ const [showconfirmationtext, setshowconfirmationtext] = useState(false);
27
+ const [percentage, setpercentage] = useState(25);
28
+ const [numberoffields, setnumberoffields] = useState('');
29
+ const [numberofslides, setnumberofslides] = useState(0);
30
+ const [numberoffieldsinslides, setnumberoffieldsinslides] = useState(0);
31
+ const [currentindex, setcurrentindex] = useState(0);
32
+ const [numberoffiledinslide, setnumberoffiledinslide] = useState(0);
33
+ const [showpopup, setshowpopup] = useState(false);
34
+
35
+ useEffect(() => {
36
+ var secpropobj = {};
37
+ StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
38
+ if (sectionitem.sectionid == props.sectionidprops) {
39
+ sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
40
+ secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
41
+ });
42
+ }
43
+ });
44
+ setsectionproperties({ ...secpropobj });
45
+ }, [StatePagePropertiesContext]);
46
+ useEffect(() => {
47
+ if (fetchdynamicformfeildsQueryContext.isSuccess) {
48
+ fetchdynamicformfeildsQueryContext?.data?.data?.dynamicforms?.forEach(function (item, index) {
49
+ if (item.id == dynamicformid) {
50
+ var tempitem = item;
51
+ tempitem?.fields?.forEach(function (fielditem) {
52
+ fielditem.value = '';
53
+ });
54
+ setdynamicform(tempitem);
55
+ var temptitleen = tempitem.title_en;
56
+ var temptitlear = tempitem.title_ar;
57
+ var tempnumberoffields = tempitem?.fields?.length; //12
58
+ var tempnumberoffiledinslide = sectionproperties.numberofslides; //4
59
+ var tempnumberofslides = Math.ceil(tempnumberoffields / tempnumberoffiledinslide); //3
60
+
61
+ setformtitleen(temptitleen);
62
+ setformtitlear(temptitlear);
63
+ setnumberoffields(tempnumberoffields);
64
+ setnumberoffiledinslide(tempnumberoffiledinslide);
65
+ setnumberofslides(tempnumberofslides);
66
+ }
67
+ });
68
+ }
69
+ }, [fetchdynamicformfeildsQueryContext.isSuccess]);
70
+ const updateformfield = (value, index) => {
71
+ var tempynamicform = { ...dynamicform };
72
+ tempynamicform.fields[index].value = value;
73
+ setdynamicform({ ...dynamicform });
74
+ };
75
+ const submitform = () => {
76
+ var tempynamicform = { ...dynamicform };
77
+ var fields = tempynamicform.fields;
78
+ var validationpassed = true;
79
+ var reason = '';
80
+ fields?.forEach(function (item, index) {
81
+ if (item.isrequired == 1) {
82
+ if (item.value != undefined && item.value != null) {
83
+ if (item.value.length == 0) {
84
+ validationpassed = false;
85
+ reason = item.title_en + ' ' + 'Is Missing';
86
+ }
87
+ }
88
+ }
89
+ });
90
+ if (validationpassed) {
91
+ GeneralAPIMutationContext.mutate({
92
+ endpointurl: '/submitdynamicforms',
93
+ data: tempynamicform,
94
+ mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
95
+ // setslots(data.data.slots);
96
+ // alert('done');
97
+ clearform();
98
+ setshowpopup(true);
99
+ setconfirmationtext(langdetect == 'en' ? 'We have recieved your message' : 'تم استقبال رسالتك');
100
+ },
101
+ });
102
+ } else {
103
+ NotificationManager.warning('', reason);
104
+ }
105
+ };
106
+
107
+ const clearform = () => {
108
+ var tempitem = { ...dynamicform };
109
+ tempitem?.fields?.forEach(function (fielditem) {
110
+ fielditem.value = '';
111
+ });
112
+ setdynamicform(tempitem);
113
+ };
114
+ const today = new Date();
115
+ const year = today.getFullYear();
116
+
117
+ const month = (today.getMonth() + 1).toString().padStart(2, '0'); // Adding leading zero if necessary
118
+ const day = today.getDate().toString().padStart(2, '0'); // Adding leading zero if necessary
119
+
120
+ const currentDate = year + '-' + month + '-' + day;
121
+ const inputitem = (item, index) => {
122
+ var type = 'input';
123
+ if (item.type == 'date') {
124
+ type = 'date';
125
+ } else if (item.type == 'number') {
126
+ type = 'number';
127
+ } else if (item.type == 'text') {
128
+ type = 'text';
129
+ } else if (item.type == 'phone number') {
130
+ type = 'phonenumber';
131
+ }
132
+ if (item.type == 'date') {
133
+ return (
134
+ <div class={'col-md-12 col-lg-' + sectionproperties.numberofcolsperrow}>
135
+ <div class="row m-0 w-100 mb-3">
136
+ <div class="col-lg-12 text-start mb-2">
137
+ <p class={form_cssstyles.formlabel + ' m-0 p-0 '} style={{}}>
138
+ {langdetect == 'en' ? item.title_en : item.title_ar} <sup class="text-danger">{item.isrequired == 1 ? '*' : ''}</sup>
139
+ </p>
140
+ </div>
141
+ {sectionproperties.datestartdate == 'Today' && (
142
+ <div class="col-lg-12 text-start">
143
+ <input
144
+ type={type}
145
+ value={item.value}
146
+ onChange={(event) => {
147
+ updateformfield(event.target.value, index);
148
+ }}
149
+ min={currentDate}
150
+ className={`${formstyles.form_control} ${form_cssstyles.form_control}`}
151
+ />
152
+ </div>
153
+ )}
154
+ {sectionproperties.datestartdate == 'All' && (
155
+ <div class="col-lg-12 text-start">
156
+ <input
157
+ type={type}
158
+ value={item.value}
159
+ onChange={(event) => {
160
+ updateformfield(event.target.value, index);
161
+ }}
162
+ className={`${formstyles.form_control} ${form_cssstyles.form_control}`}
163
+ />
164
+ </div>
165
+ )}
166
+ </div>
167
+ </div>
168
+ );
169
+ } else {
170
+ return (
171
+ <div class={'col-md-12 col-lg-' + sectionproperties.numberofcolsperrow}>
172
+ <div class="row m-0 w-100 mb-3">
173
+ <div class="col-lg-12 text-start mb-2">
174
+ <p class={form_cssstyles.formlabel + ' m-0 p-0 '} style={{}}>
175
+ {langdetect == 'en' ? item.title_en : item.title_ar} <sup class="text-danger">{item.isrequired == 1 ? '*' : ''}</sup>
176
+ </p>
177
+ </div>
178
+ <div class="col-lg-12 text-start">
179
+ <input
180
+ type={type}
181
+ value={item.value}
182
+ onChange={(event) => {
183
+ updateformfield(event.target.value, index);
184
+ }}
185
+ className={`${formstyles.form_control} ${form_cssstyles.form_control}`}
186
+ />
187
+ </div>
188
+ </div>
189
+ </div>
190
+ );
191
+ }
192
+ };
193
+ const phonenumber = (item, index) => {
194
+ return (
195
+ <div class={'col-md-12 col-lg-' + sectionproperties.numberofcolsperrow}>
196
+ <div class="row m-0 w-100 mb-3">
197
+ <div class="col-lg-12 text-start mb-2 p-0">
198
+ <p class={form_cssstyles.formlabel + ' m-0 p-0 '} style={{}}>
199
+ {langdetect == 'en' ? item.title_en : item.title_ar} <sup class="text-danger">{item.isrequired == 1 ? '*' : ''}</sup>
200
+ </p>
201
+ </div>
202
+ <PhoneInput
203
+ className={`${formstyles.form_control} ${form_cssstyles.form_control}`}
204
+ country={'eg'}
205
+ enableSearch={true}
206
+ autoFormat={true}
207
+ value={item.value}
208
+ inputStyle={{
209
+ color: sectionproperties.inputfieldcolor,
210
+ }}
211
+ onChange={(event, country) => {
212
+ updateformfield(event, index);
213
+ // var temp = { ...payloadobj };
214
+ // temp.mobile = event;
215
+ // temp.countrydialcode = country.dialCode;
216
+ // setpayloadobj({ ...temp });
217
+ }}
218
+ style={{ direction: 'ltr', color: sectionproperties.inputfieldcolor }}
219
+ />
220
+ </div>
221
+ </div>
222
+ );
223
+ };
224
+ const textareaitem = (item, index) => {
225
+ return (
226
+ <div class={'col-md-12 col-lg-12'}>
227
+ <div class="row m-0 w-100 mb-3">
228
+ <div class="col-lg-12 text-start mb-2">
229
+ <p class={form_cssstyles.formlabel + ' m-0 p-0 '} style={{}}>
230
+ {langdetect == 'en' ? item.title_en : item.title_ar} <sup class="text-danger">{item.isrequired == 1 ? '*' : ''}</sup>
231
+ </p>
232
+ </div>
233
+ <div class="col-lg-12 text-start">
234
+ <TextareaAutosize
235
+ value={item.value}
236
+ onChange={(event) => {
237
+ updateformfield(event.target.value, index);
238
+ }}
239
+ className={`${formstyles.form_control} ${form_cssstyles.form_control}`}
240
+ />
241
+ </div>
242
+ </div>
243
+ </div>
244
+ );
245
+ };
246
+ const selectboxitem = (item, index) => {
247
+ var itemsarr = item.selectboxvalues;
248
+ if (itemsarr != undefined) {
249
+ var decoditems = JSON.parse(itemsarr);
250
+ if (decoditems != undefined && Array.isArray(decoditems)) {
251
+ return (
252
+ <div class={'col-md-12 col-lg-' + sectionproperties.numberofcolsperrow}>
253
+ <div class="row m-0 w-100 mb-3">
254
+ <div class="col-lg-12 text-start mb-2">
255
+ <p class={form_cssstyles.formlabel + ' m-0 p-0 '} style={{}}>
256
+ {langdetect == 'en' ? item.title_en : item.title_ar} <sup class="text-danger">{item.isrequired == 1 ? '*' : ''}</sup>
257
+ </p>
258
+ </div>
259
+ <div class="col-lg-12 text-start">
260
+ <select
261
+ value={item.value}
262
+ onChange={(event) => {
263
+ updateformfield(event.target.value, index);
264
+ }}
265
+ className={`${formstyles.form_control} ${form_cssstyles.form_control}`}
266
+ >
267
+ <option value="">{langdetect == 'en' ? 'Choose' : 'إختر'}</option>
268
+ {decoditems?.map(function (sitem) {
269
+ return <option value={sitem.optionname_en}>{langdetect == 'en' ? sitem.optionname_en : sitem.optionname_ar}</option>;
270
+ })}
271
+ </select>
272
+ </div>
273
+ </div>
274
+ </div>
275
+ );
276
+ }
277
+ }
278
+ };
279
+ const form_cssstyles = {
280
+ formlabel: css({
281
+ color: sectionproperties.form_labelcolor,
282
+ fontSize: sectionproperties.form_labelfontsize + 'px',
283
+ fontWeight: sectionproperties.form_labelfontweight,
284
+ }),
285
+ form_control: css({
286
+ position: 'relative',
287
+ display: 'flex',
288
+ alignItems: 'center',
289
+ display: 'block',
290
+ width: '100%',
291
+ padding: '0 30px',
292
+ transition: '.3s',
293
+ fontWeight: 500,
294
+ border: sectionproperties.inputfieldbordertype == 'All' ? sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor : 0,
295
+ borderBottom: sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor,
296
+ borderRadius: sectionproperties.inputfieldborderradius + 'px',
297
+ height: sectionproperties.inputfieldheight + 'px',
298
+ background: 'transparent',
299
+ color: sectionproperties.inputfieldcolor,
300
+ fontSize: sectionproperties.inputfieldfontsize + 'px',
301
+ marginBottom: sectionproperties.inputfieldbordertype == 'All' ? 20 : 0,
302
+ ':focus': {
303
+ borderColor: sectionproperties.inputfeildbordercoloronfocus,
304
+ boxShadow: 'none',
305
+ transition: '.3s',
306
+ },
307
+ }),
308
+ generalbtn: css({
309
+ width: sectionproperties.generalbtn_width + '%',
310
+ height: sectionproperties.generalbtn_height + 'px',
311
+ backgroundColor: sectionproperties.generalbtn_bgColor,
312
+ borderRadius: sectionproperties.generalbtn_bgColor,
313
+ color: sectionproperties.generalbtn_textColor,
314
+ fontSize: sectionproperties.generalbtn_fontsize,
315
+ fontWeight: sectionproperties.generalbtn_fontweight,
316
+ borderRadius: sectionproperties.generalbtnborderradius + 'px',
317
+ ':hover': {
318
+ transition: '.3s',
319
+ color: sectionproperties.generalbtn_textColoronhover,
320
+ backgroundColor: sectionproperties.generalbtn_bgColoronhover,
321
+ },
322
+ }),
323
+ btnLeft: css({
324
+ width: 40,
325
+ height: 40,
326
+ // borderRadius: 20,
327
+ borderRight: langdetect == 'en' ? '1px solid #ccc' : 0,
328
+ backgroundColor: '#000',
329
+ cursor: 'pointer',
330
+ borderTopLeftRadius: langdetect == 'en' ? 5 : 0,
331
+ borderBottomLeftRadius: langdetect == 'en' ? 5 : 0,
332
+ borderTopRightRadius: langdetect == 'ar' ? 5 : 0,
333
+ borderBottomRightRadius: langdetect == 'ar' ? 5 : 0,
334
+ ':hover': {
335
+ transition: '.3s',
336
+ backgroundColor: '#044da6',
337
+ },
338
+ }),
339
+ btnRight: css({
340
+ width: 40,
341
+ height: 40,
342
+ borderLeft: langdetect == 'en' ? '1px solid #ccc' : 0,
343
+ backgroundColor: '#000',
344
+ cursor: 'pointer',
345
+ borderTopRightRadius: langdetect == 'en' ? 5 : 0,
346
+ borderBottomRightRadius: langdetect == 'en' ? 5 : 0,
347
+ borderTopLeftRadius: langdetect == 'ar' ? 5 : 0,
348
+ borderBottomLeftRadius: langdetect == 'ar' ? 5 : 0,
349
+ ':hover': {
350
+ transition: '.3s',
351
+ backgroundColor: '#044da6',
352
+ },
353
+ }),
354
+ };
355
+ return (
356
+ <div
357
+ class={'row m-0 w-100 h-100 px-md-2 allcentered'}
358
+ style={{
359
+ background: sectionproperties.backgroundColor,
360
+ paddingLeft: sectionproperties.cardpaddinghorizontal + 'px',
361
+ paddingRight: sectionproperties.cardpaddinghorizontal + 'px',
362
+ paddingTop: sectionproperties.cardpaddingvertical + 'px',
363
+ paddingBottom: sectionproperties.cardpaddingvertical + 'px',
364
+ }}
365
+ >
366
+ {/* */}
367
+
368
+ {dynamicformid == '49' && (
369
+ <div class="col-lg-10 m-0 w-100 allcentered">
370
+ <div
371
+ class="row m-0 w-100"
372
+ style={{
373
+ border: '1px solid #ccc',
374
+ borderRadius: 20,
375
+ overflow: 'hidden',
376
+ }}
377
+ >
378
+ <div style={{ width: '100%', height: '5.5px' }}>
379
+ <div
380
+ class={'ratingbar'}
381
+ style={{
382
+ backgroundColor: 'rgb(226, 226, 226)',
383
+ }}
384
+ >
385
+ <div
386
+ class={'ratingbar'}
387
+ style={{
388
+ backgroundColor: '#044da6',
389
+ width: percentage + '%',
390
+ }}
391
+ ></div>
392
+ </div>
393
+ </div>
394
+ <div
395
+ class="col-lg-12 text-start mt-5 px-4"
396
+ style={{
397
+ marginTop: sectionproperties.sectionTitleMarginTop + 'px',
398
+ marginBottom: sectionproperties.sectionTitleMarginBottom + 'px',
399
+ }}
400
+ >
401
+ <p
402
+ class="m-0 p-0"
403
+ style={{
404
+ color: sectionproperties.sectionTitleColor,
405
+ fontSize: sectionproperties.sectionTitleFontSize + 'px',
406
+ fontWeight: sectionproperties.sectionTitleFontWeight,
407
+ }}
408
+ >
409
+ {langdetect == 'en' ? formtitleen : formtitlear}
410
+ </p>
411
+ </div>
412
+ {dynamicform?.id != undefined && (
413
+ <div class={'row m-0 w-100 p-3 mt-3'}>
414
+ <div class="col-lg-12 text-start">
415
+ {currentindex == 0 && (
416
+ <div class={'row m-0 w-100 '}>
417
+ {dynamicform?.fields?.map(function (item, index) {
418
+ if (index <= 2) {
419
+ if (item.type == 'text' || item.type == 'date' || item.type == 'number') {
420
+ return inputitem(item, index);
421
+ } else if (item.type == 'textarea') {
422
+ return textareaitem(item, index);
423
+ } else if (item.type == 'selectbox') {
424
+ return selectboxitem(item, index);
425
+ }
426
+ }
427
+ })}
428
+ </div>
429
+ )}
430
+ {currentindex == 1 && (
431
+ <div class={'row m-0 w-100 '}>
432
+ {dynamicform?.fields?.map(function (item, index) {
433
+ if (index > 2 && index <= 5) {
434
+ if (item.type == 'text' || item.type == 'date' || item.type == 'number') {
435
+ return inputitem(item, index);
436
+ } else if (item.type == 'textarea') {
437
+ return textareaitem(item, index);
438
+ } else if (item.type == 'selectbox') {
439
+ return selectboxitem(item, index);
440
+ }
441
+ }
442
+ })}
443
+ </div>
444
+ )}
445
+ {currentindex == 2 && (
446
+ <div class={'row m-0 w-100 '}>
447
+ {dynamicform?.fields?.map(function (item, index) {
448
+ if (index > 5 && index <= 8) {
449
+ if (item.type == 'text' || item.type == 'date' || item.type == 'number') {
450
+ return inputitem(item, index);
451
+ } else if (item.type == 'textarea') {
452
+ return textareaitem(item, index);
453
+ } else if (item.type == 'selectbox') {
454
+ return selectboxitem(item, index);
455
+ }
456
+ }
457
+ })}
458
+ </div>
459
+ )}
460
+ {currentindex == 3 && (
461
+ <div class={'row m-0 w-100 '}>
462
+ {dynamicform?.fields?.map(function (item, index) {
463
+ if (index > 8 && index <= 11) {
464
+ if (item.type == 'text' || item.type == 'date' || item.type == 'number') {
465
+ return inputitem(item, index);
466
+ } else if (item.type == 'textarea') {
467
+ return textareaitem(item, index);
468
+ } else if (item.type == 'selectbox') {
469
+ return selectboxitem(item, index);
470
+ }
471
+ }
472
+ })}
473
+ </div>
474
+ )}
475
+ </div>
476
+ <div class="col-lg-12 text-end flex-row px-4 mt-4">
477
+ <div
478
+ class={form_cssstyles.btnLeft + ' allcentered '}
479
+ style={{}}
480
+ onClick={() => {
481
+ if (currentindex == 1) {
482
+ setcurrentindex(0);
483
+ setpercentage(25);
484
+ } else if (currentindex == 2) {
485
+ setcurrentindex(1);
486
+ setpercentage(50);
487
+ } else if (currentindex == 3) {
488
+ setcurrentindex(2);
489
+ setpercentage(75);
490
+ } else {
491
+ }
492
+ }}
493
+ >
494
+ {langdetect == 'en' && <BsChevronLeft color={'#fff'} size={18} />}
495
+ {langdetect == 'ar' && <BsChevronRight color={'#fff'} size={18} />}
496
+ </div>
497
+ <div
498
+ class={form_cssstyles.btnRight + ' allcentered '}
499
+ onClick={() => {
500
+ if (currentindex == 0) {
501
+ setcurrentindex(1);
502
+ setpercentage(50);
503
+ } else if (currentindex == 1) {
504
+ setcurrentindex(2);
505
+ setpercentage(75);
506
+ } else if (currentindex == 2) {
507
+ setcurrentindex(3);
508
+ setpercentage(100);
509
+ } else {
510
+ }
511
+ }}
512
+ >
513
+ {langdetect == 'en' && <BsChevronRight color={'#fff'} size={18} />}
514
+ {langdetect == 'ar' && <BsChevronLeft color={'#fff'} size={18} />}
515
+ </div>
516
+ </div>
517
+ {/* { && ( */}
518
+ <div
519
+ class="col-lg-12 allcentered my-4"
520
+ style={{
521
+ visibility: currentindex == 3 ? 'visible' : 'hidden',
522
+ }}
523
+ >
524
+ <button
525
+ onClick={() => {
526
+ submitform();
527
+ }}
528
+ disabled={GeneralAPIMutationContext.isLoading}
529
+ class={form_cssstyles.generalbtn + ' allcentered '}
530
+ >
531
+ {GeneralAPIMutationContext.isLoading ? (
532
+ <CircularProgress color={sectionproperties.generalbtn_textColor} width="20px" height="20px" duration="1s" />
533
+ ) : langdetect == 'en' ? (
534
+ sectionproperties.generalbtn_content
535
+ ) : (
536
+ sectionproperties.slideshow_btn_text_ar
537
+ )}
538
+ </button>
539
+ </div>
540
+ {/* )} */}
541
+ {/* <div class="col-lg-12 allcentered my-4">
542
+ <p
543
+ class="m-0 p-0"
544
+ style={{
545
+ fontSize: 20,
546
+ color: '#000',
547
+ }}
548
+ >
549
+ {confirmationtext}
550
+ </p>
551
+ </div> */}
552
+ </div>
553
+ )}
554
+ </div>
555
+ </div>
556
+ )}
557
+ {dynamicformid != '49' && (
558
+ <div class="row m-0 w-100">
559
+ <div
560
+ class="col-lg-12 text-start"
561
+ style={{
562
+ marginTop: sectionproperties.sectionTitleMarginTop + 'px',
563
+ marginBottom: sectionproperties.sectionTitleMarginBottom + 'px',
564
+ }}
565
+ >
566
+ <p
567
+ class="m-0 p-0"
568
+ style={{
569
+ color: sectionproperties.sectionTitleColor,
570
+ fontSize: sectionproperties.sectionTitleFontSize + 'px',
571
+ fontWeight: sectionproperties.sectionTitleFontWeight,
572
+ }}
573
+ >
574
+ {langdetect == 'en' ? formtitleen : formtitlear}
575
+ </p>
576
+ </div>
577
+ {dynamicform?.id != undefined && (
578
+ <div class={'row m-0 w-100 '}>
579
+ <div class="col-lg-12 text-start">
580
+ <div class={'row m-0 w-100 '}>
581
+ {dynamicform?.fields?.map(function (item, index) {
582
+ if (item.type == 'text' || item.type == 'date' || item.type == 'number') {
583
+ return inputitem(item, index);
584
+ } else if (item.type == 'phone number') {
585
+ return phonenumber(item, index);
586
+ } else if (item.type == 'textarea') {
587
+ return textareaitem(item, index);
588
+ } else if (item.type == 'selectbox') {
589
+ return selectboxitem(item, index);
590
+ }
591
+ })}
592
+ </div>
593
+ </div>
594
+ <div class="col-lg-12 allcentered my-4">
595
+ <button
596
+ onClick={() => {
597
+ submitform();
598
+ }}
599
+ disabled={GeneralAPIMutationContext.isLoading}
600
+ class={form_cssstyles.generalbtn + ' allcentered '}
601
+ >
602
+ {GeneralAPIMutationContext.isLoading ? (
603
+ <CircularProgress color={sectionproperties.generalbtn_textColor} width="20px" height="20px" duration="1s" />
604
+ ) : langdetect == 'en' ? (
605
+ sectionproperties.generalbtn_content
606
+ ) : (
607
+ sectionproperties.slideshow_btn_text_ar
608
+ )}
609
+ </button>
610
+ </div>
611
+ {/* <div class="col-lg-12 allcentered my-4">
612
+ <p
613
+ class="m-0 p-0"
614
+ style={{
615
+ fontSize: 20,
616
+ color: '#000',
617
+ }}
618
+ >
619
+ {confirmationtext}
620
+ </p>
621
+ </div> */}
622
+ </div>
623
+ )}
624
+ </div>
625
+ )}
626
+ <Modal
627
+ show={showpopup}
628
+ onHide={() => {
629
+ setshowpopup(false);
630
+ }}
631
+ centered
632
+ size={'md'}
633
+ >
634
+ <Modal.Body>
635
+ <div
636
+ className="allcentered bgdanger-hover cursor-pointer"
637
+ onClick={() => {
638
+ setshowpopup(false);
639
+ }}
640
+ style={{
641
+ position: 'absolute',
642
+ top: -40,
643
+ backgroundColor: '#000',
644
+ width: 35,
645
+ height: 35,
646
+ right: 0,
647
+ }}
648
+ >
649
+ <i class="h-100 allcentered text-black">
650
+ <IoMdClose size={20} class="" color={'#fff'} />
651
+ </i>
652
+ </div>
653
+ <div
654
+ class="row m-0 w-100 py-4"
655
+ style={{
656
+ background: sectionproperties.popupbackgroundcolor,
657
+ }}
658
+ >
659
+ <div class="col-lg-12 allcentered py-4">
660
+ <p
661
+ class="m-0 p-0"
662
+ style={{
663
+ fontSize: 20,
664
+ color: sectionproperties.popuptextcolor,
665
+ }}
666
+ >
667
+ {confirmationtext}
668
+ </p>
669
+ </div>
670
+ </div>
671
+ </Modal.Body>
672
+ <Modal.Footer></Modal.Footer>
673
+ </Modal>
674
+ </div>
675
+ );
676
+ };
677
+ export default DynamicForm;