tabexseriescomponents 0.0.64 → 0.0.66

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 (178) hide show
  1. package/dist/index.cjs.js +25023 -16634
  2. package/dist/index.esm.js +25033 -16645
  3. package/dist/index.umd.js +24824 -16437
  4. package/package.json +1 -1
  5. package/src1-10/Contexts/LanguageContext.jsx +347 -0
  6. package/src1-10/Contexts/ProductsCardsSectionContext.jsx +28 -0
  7. package/src1-10/StylesJS/Customstyles.js +235 -0
  8. package/src1-10/TabexComponents/Cards/CategoryCardwithhoveraction/CategoryCardwithhoveraction.jsx +205 -0
  9. package/src1-10/TabexComponents/Cards/Categorycard_fullimage/Categorycard_fullimage.jsx +239 -0
  10. package/src1-10/TabexComponents/Cards/Categorycard_slidebgscaled/Categorycard_slidebgscaled.jsx +198 -0
  11. package/src1-10/TabexComponents/Cards/Categorycard_with_trianglebg/Categorycard_with_trianglebg.jsx +169 -0
  12. package/src1-10/TabexComponents/Cards/Categorycard_with_twolinestransition/Categorycard_with_twolinestransition.jsx +180 -0
  13. package/src1-10/TabexComponents/Cards/Categorycard_withshapes/Categorycard_withshapes.jsx +162 -0
  14. package/src1-10/TabexComponents/Cards/Categorycard_withtext/Categorycard_withtext.jsx +184 -0
  15. package/src1-10/TabexComponents/Cards/Classiccategorycard/Classiccategorycard.jsx +149 -0
  16. package/src1-10/TabexComponents/Cards/Horizontalcard/Horizontalcard.jsx +271 -0
  17. package/src1-10/TabexComponents/Cards/MenuCard/MenuCard.jsx +546 -0
  18. package/src1-10/TabexComponents/Cards/ModernProductCard/ModernProductCard.jsx +474 -0
  19. package/src1-10/TabexComponents/Cards/Productcard6/Productcard6.jsx +290 -0
  20. package/src1-10/TabexComponents/Cards/Productcard7/Productcard7.jsx +278 -0
  21. package/src1-10/TabexComponents/Cards/Productcard_animatedbuttons/Productcard_animatedbuttons.jsx +293 -0
  22. package/src1-10/TabexComponents/Cards/Productcard_with_circularbg/Productcard_with_circularbg.jsx +278 -0
  23. package/src1-10/TabexComponents/Cards/Productcard_with_circularhover/Productcard_with_circularhover.jsx +312 -0
  24. package/src1-10/TabexComponents/Cards/Productcard_with_slideanimation/Productcard_with_slideanimation.jsx +279 -0
  25. package/src1-10/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants.jsx +293 -0
  26. package/src1-10/TabexComponents/Cards/Productcard_with_zoominonhover/Productcard_with_zoominonhover.jsx +456 -0
  27. package/src1-10/TabexComponents/Cards/Productcarddefault/Productcarddefault.jsx +272 -0
  28. package/src1-10/TabexComponents/Cards/Productccard_with_imageontopleft/Productccard_with_imageontopleft.jsx +286 -0
  29. package/src1-10/TabexComponents/Cards/Prouductcard_with_zoomhover/Prouductcard_with_zoomhover.jsx +127 -0
  30. package/src1-10/TabexComponents/Cards/Simplecategorycardwithtextbelow/Simplecategorycardwithtextbelow.jsx +126 -0
  31. package/src1-10/TabexComponents/Cards/Simpleproductcard/Simpleproductcard.jsx +292 -0
  32. package/src1-10/TabexComponents/Cards/StylishProductCard/StylishProductCard.jsx +281 -0
  33. package/src1-10/TabexComponents/Footer/Footer1/Footer1.jsx +418 -0
  34. package/src1-10/TabexComponents/Footer/Footer2/Footer2.jsx +381 -0
  35. package/src1-10/TabexComponents/Footer/Footer3/Footer3.jsx +316 -0
  36. package/src1-10/TabexComponents/Footer/Footer4/Footer4.jsx +437 -0
  37. package/src1-10/TabexComponents/Footer/Footer5/Footer5.jsx +488 -0
  38. package/src1-10/TabexComponents/Footer/Footer6/Footer6.jsx +286 -0
  39. package/src1-10/TabexComponents/Footer/Footer7/Footer7.jsx +370 -0
  40. package/src1-10/TabexComponents/Footer/Simplefooter/Simplefooter.jsx +231 -0
  41. package/src1-10/TabexComponents/Generalfiles/images/egyptflag.png +0 -0
  42. package/src1-10/TabexComponents/Generalfiles/images/noimage.png +0 -0
  43. package/src1-10/TabexComponents/Generalfiles/images/payment/cod.png +0 -0
  44. package/src1-10/TabexComponents/Generalfiles/images/payment/fawry.png +0 -0
  45. package/src1-10/TabexComponents/Generalfiles/images/payment/payment.png +0 -0
  46. package/src1-10/TabexComponents/Generalfiles/images/payment/paymob.png +0 -0
  47. package/src1-10/TabexComponents/Generalfiles/images/payment/paypal.png +0 -0
  48. package/src1-10/TabexComponents/Generalfiles/images/payment/visa.png +0 -0
  49. package/src1-10/TabexComponents/Generalfiles/images/shoppingcart.png +0 -0
  50. package/src1-10/TabexComponents/Generalfiles/images/tabexlogo.png +0 -0
  51. package/src1-10/TabexComponents/Generalfiles/images/unknownmaleuser.png +0 -0
  52. package/src1-10/TabexComponents/Generalfiles/images/usflag.png +0 -0
  53. package/src1-10/TabexComponents/Generalfiles/images/whatsapp.png +0 -0
  54. package/src1-10/TabexComponents/Headers/AllinoneHeader/AllinoneHeader.jsx +722 -0
  55. package/src1-10/TabexComponents/Headers/ClassicHeader/ClassicHeader.jsx +681 -0
  56. package/src1-10/TabexComponents/Headers/Header4/Header4.jsx +614 -0
  57. package/src1-10/TabexComponents/Headers/Header6/Header6.jsx +666 -0
  58. package/src1-10/TabexComponents/Headers/Header8/Header8.jsx +888 -0
  59. package/src1-10/TabexComponents/Headers/HeaderRestaurant/HeaderRestaurant.jsx +710 -0
  60. package/src1-10/TabexComponents/Headers/Header_threesectionslogocentered/Header_threesectionslogocentered.jsx +769 -0
  61. package/src1-10/TabexComponents/Headers/Headerresponsive/Headerresponsive.jsx +666 -0
  62. package/src1-10/TabexComponents/Headers/HeaderwithContactinfo/HeaderwithContactinfo.jsx +940 -0
  63. package/src1-10/TabexComponents/Headers/Modernheader/Modernheader.jsx +714 -0
  64. package/src1-10/TabexComponents/Headers/StylishHeader/StylishHeader.jsx +833 -0
  65. package/src1-10/TabexComponents/Headers/Subheader/Subheader.jsx +239 -0
  66. package/src1-10/TabexComponents/Sections/BackgroundImages/Backgroundimage1/Backgroundimage1.jsx +312 -0
  67. package/src1-10/TabexComponents/Sections/BackgroundImages/Backgroundimage_with_toppill/Backgroundimage_with_toppill.jsx +278 -0
  68. package/src1-10/TabexComponents/Sections/BackgroundImages/BackgroundimageandTextsection/BackgroundimageandTextsection.jsx +129 -0
  69. package/src1-10/TabexComponents/Sections/BackgroundImages/Section_with_rightbgcont/Section_with_rightbgcont.jsx +153 -0
  70. package/src1-10/TabexComponents/Sections/BackgroundImages/Threebgimages/Threebgimages.jsx +295 -0
  71. package/src1-10/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages.jsx +409 -0
  72. package/src1-10/TabexComponents/Sections/Cards/CardsSection/CardsSection.jsx +793 -0
  73. package/src1-10/TabexComponents/Sections/Cards/CardsSection2/CardsSection2.jsx +486 -0
  74. package/src1-10/TabexComponents/Sections/Cards/CardsSection7/CardsSection7.js +888 -0
  75. package/src1-10/TabexComponents/Sections/Cards/CardsSection8/CardsSection8.js +419 -0
  76. package/src1-10/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.jsx +512 -0
  77. package/src1-10/TabexComponents/Sections/Slideshow/AboutSection/AboutSection.jsx +281 -0
  78. package/src1-10/TabexComponents/Sections/Slideshow/Backgroundimage_with_topcircle/Backgroundimage_with_topcircle.jsx +166 -0
  79. package/src1-10/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection.jsx +152 -0
  80. package/src1-10/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx +139 -0
  81. package/src1-10/TabexComponents/Sections/Slideshow/Image_with_rightwords/Image_with_rightwords.jsx +146 -0
  82. package/src1-10/TabexComponents/Sections/Slideshow/Servicesection/Servicesection.jsx +209 -0
  83. package/src1-10/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards.jsx +145 -0
  84. package/src1-10/TabexComponents/Sections/Slideshow/Slideshow_with_rotatedsquare/Slideshow_with_rotatedsquare.jsx +252 -0
  85. package/src1-10/TabexComponents/Sections/Slideshow/Slideshow_with_squarebg/Slideshow_with_squarebg.jsx +175 -0
  86. package/src1-10/TabexComponents/Sections/Slideshow/Slideshowdifferentanimations/Slideshowdifferentanimations.jsx +154 -0
  87. package/src1-10/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade.jsx +193 -0
  88. package/src1-10/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide.jsx +197 -0
  89. package/src1-10/TabexComponents/Sections/Slideshow/Slideshowzoom/Arrow.js +91 -0
  90. package/src1-10/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom.jsx +309 -0
  91. package/src1-10/TabexComponents/StaticPages/AccountInformation/AccountInformation.jsx +260 -0
  92. package/src1-10/TabexComponents/StaticPages/CartSlider/CartSlider.jsx +459 -0
  93. package/src1-10/TabexComponents/StaticPages/Categoriesdropdown/Categoriesdropdown.jsx +216 -0
  94. package/src1-10/TabexComponents/StaticPages/Checkout/Checkout.jsx +1220 -0
  95. package/src1-10/TabexComponents/StaticPages/Filter/Filter.jsx +542 -0
  96. package/src1-10/TabexComponents/StaticPages/Login/FacebookLoginButton.jsx +51 -0
  97. package/src1-10/TabexComponents/StaticPages/Login/GoogleLoginButton.jsx +35 -0
  98. package/src1-10/TabexComponents/StaticPages/Login/Login.jsx +299 -0
  99. package/src1-10/TabexComponents/StaticPages/OrderSuccess/OrderSuccess.js +192 -0
  100. package/src1-10/TabexComponents/StaticPages/Ordershistory/Ordershistory.jsx +1271 -0
  101. package/src1-10/TabexComponents/StaticPages/Policies/Policies.jsx +353 -0
  102. package/src1-10/TabexComponents/StaticPages/Productinfo/Productinfo.jsx +1456 -0
  103. package/src1-10/TabexComponents/StaticPages/Searchlist/Searchlist.jsx +209 -0
  104. package/src1-10/TabexComponents/StaticPages/Signup/CustomerInformationForm.jsx +776 -0
  105. package/src1-10/TabexComponents/StaticPages/Signup/Signup.jsx +157 -0
  106. package/src1-10/TabexComponents/StaticPages/Staticpagesrouter/Staticpagesrouter.jsx +285 -0
  107. package/src1-10/TabexComponents/StaticPages/Viewcart/Viewcart.js +1090 -0
  108. package/src1-10/TabexComponents/StaticPages/Wishlist/Wishlist.jsx +606 -0
  109. package/src1-10/assets/images/cod.png +0 -0
  110. package/src1-10/assets/images/egyptflag.png +0 -0
  111. package/src1-10/assets/images/fawry.png +0 -0
  112. package/src1-10/assets/images/payment.png +0 -0
  113. package/src1-10/assets/images/paymob.png +0 -0
  114. package/src1-10/assets/images/paypal.png +0 -0
  115. package/src1-10/assets/images/shoppingcart.png +0 -0
  116. package/src1-10/assets/images/usflag.png +0 -0
  117. package/src1-10/assets/images/visa.png +0 -0
  118. package/src1-10/assets/images/whatsapp.png +0 -0
  119. package/src1-10/button.jsx +40 -0
  120. package/src1-10/index.jsx +179 -0
  121. package/src1-10/styles/Home.module.css +129 -0
  122. package/src1-10/styles/cards/Categorcycard_fullimage.module.css +10 -0
  123. package/src1-10/styles/cards/Categorycard_slidebgscaled.module.css +73 -0
  124. package/src1-10/styles/cards/Categorycard_withshapes.module.css +189 -0
  125. package/src1-10/styles/cards/Productcard6.module.css +9 -0
  126. package/src1-10/styles/cards/Productcard_with_circularbg.module.css +137 -0
  127. package/src1-10/styles/cards/Productccard_with_zoominonhover.module.css +51 -0
  128. package/src1-10/styles/cards/Prouductcard_with_zoomhover.module.css +61 -0
  129. package/src1-10/styles/cards/categorycard.module.css +102 -0
  130. package/src1-10/styles/cards/categorycard3.module.css +51 -0
  131. package/src1-10/styles/cards/categorycardwithtext.module.css +40 -0
  132. package/src1-10/styles/cards/productcard_animatedbuttons.module.css +104 -0
  133. package/src1-10/styles/cards/productcard_with_textonhover.module.css +12 -0
  134. package/src1-10/styles/cards/productccard_with_imageontopleft.module.css +85 -0
  135. package/src1-10/styles/general/bootstrap.css +4415 -0
  136. package/src1-10/styles/general/dropdown.css +199 -0
  137. package/src1-10/styles/general/editorbardropdown.module.css +94 -0
  138. package/src1-10/styles/general/filter.module.css +108 -0
  139. package/src1-10/styles/general/form.module.css +273 -0
  140. package/src1-10/styles/general/general.module.css +861 -0
  141. package/src1-10/styles/general/image-gallery.css +481 -0
  142. package/src1-10/styles/general/react-accessible-accordion.module.css +52 -0
  143. package/src1-10/styles/general/react-phone-input-2.module.css +927 -0
  144. package/src1-10/styles/general/scrollbtn.module.css +22 -0
  145. package/src1-10/styles/general/slick.module.css +166 -0
  146. package/src1-10/styles/general/tabs.module.css +110 -0
  147. package/src1-10/styles/general/workplaceeditor.module.css +328 -0
  148. package/src1-10/styles/globals.css +26 -0
  149. package/src1-10/styles/headers/Allinoneheader.module.css +91 -0
  150. package/src1-10/styles/headers/Header7.module.css +50 -0
  151. package/src1-10/styles/headers/Header_threesectionslogocentered.module.css +97 -0
  152. package/src1-10/styles/headers/Sideheader.module.css +108 -0
  153. package/src1-10/styles/headers/classicheaderstyles.module.css +16 -0
  154. package/src1-10/styles/headers/dropdown.css +0 -0
  155. package/src1-10/styles/headers/header4.module.css +175 -0
  156. package/src1-10/styles/headers/header5.module.css +30 -0
  157. package/src1-10/styles/headers/header6.module.css +117 -0
  158. package/src1-10/styles/headers/header_contactinfo.module.css +78 -0
  159. package/src1-10/styles/headers/headerresturant.module.css +89 -0
  160. package/src1-10/styles/headers/headerstyles.module.css +24 -0
  161. package/src1-10/styles/headers/modernheader.module.css +78 -0
  162. package/src1-10/styles/headers/subheader.module.css +114 -0
  163. package/src1-10/styles/sections/Backgroundimage1.module.css +17 -0
  164. package/src1-10/styles/sections/Backgroundimage_with_topcircle.module.css +28 -0
  165. package/src1-10/styles/sections/Section_with_rightbgcont.module.css +49 -0
  166. package/src1-10/styles/sections/Slideshow_with_rotatedsquare.module.css +35 -0
  167. package/src1-10/styles/sections/Slideshow_with_squarebg.module.css +39 -0
  168. package/src1-10/styles/staticpages/accordion.module.css +9 -0
  169. package/src1-10/styles/staticpages/cart.module.css +108 -0
  170. package/src1-10/styles/staticpages/dropdown.css +196 -0
  171. package/src1-10/styles/staticpages/filter.module.css +139 -0
  172. package/src1-10/styles/staticpages/login.module.css +146 -0
  173. package/src1-10/styles/staticpages/productinfo.module.css +54 -0
  174. package/src1-10/styles/staticpages/shop.module.css +191 -0
  175. package/src1-10/styles/staticpages/signup.module.css +206 -0
  176. package/src1-10/styles/staticpages/staticroutersidenav.module.css +129 -0
  177. package/src1-10/styles/staticpages/viewcart.module.css +129 -0
  178. package/src1-10/styles/staticpages/wishlist.module.css +29 -0
@@ -0,0 +1,309 @@
1
+ import React, { useEffect, useState, useContext } from 'react';
2
+ import { Zoom } from 'react-slideshow-image';
3
+ import { css } from 'glamor';
4
+ import { serverbaselink } from '../../../../../Env';
5
+ import { ScrollMenu, VisibilityContext } from 'react-horizontal-scrolling-menu';
6
+ // function CardsArrayOfObjects({ itemId, cardItem, sectionproperties }) {
7
+ // // const visibilityCardsArrayOfObjects = props.actions.visibilityCardsArrayOfObjects;
8
+ // // const visibleCardsArrayOfObjects = visibilityCardsArrayOfObjects.isItemVisible(itemId);
9
+ // // const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
10
+ // // const actions = props.actions;
11
+ // // const lang = props.actions.lang;
12
+ // // const langdetect = props.actions.langdetect;
13
+
14
+ // return (
15
+ // <div class={'p-0 w-100'}>
16
+ // <div class="row m-0 w-100">
17
+ // <div class="col-lg-12 allcentered mb-1 p-0">
18
+ // <div
19
+ // style={{
20
+ // width: '120px',
21
+ // height: '120px',
22
+ // borderRadius: '100%',
23
+ // }}
24
+ // >
25
+ // <img src={serverbaselink + cardItem.cardobj_img} style={{ width: '100%', height: '100%', objectFit: 'contain', borderRadius: '100%' }} />
26
+ // </div>
27
+ // </div>
28
+ // <div
29
+ // style={{
30
+ // color: sectionproperties.sectionTitleColor,
31
+ // fontSize: sectionproperties.sectionTitleFontSize + 'px',
32
+ // fontWeight: sectionproperties.sectionTitleFontWeight,
33
+ // }}
34
+ // class="col-lg-12 allcentered text-center p-0 wordbreak wordbreak1"
35
+ // >
36
+ // {/* <span>{langdetect == 'en' ? cardItem.cardobj_titleen : cardItem.cardobj_titlear}</span> */}
37
+ // </div>
38
+ // <div
39
+ // style={{
40
+ // color: sectionproperties.prodCatColor,
41
+ // fontSize: sectionproperties.prodCatFontSize + 'px',
42
+ // fontWeight: sectionproperties.prodCatFontWeight,
43
+ // }}
44
+ // class="col-lg-12 allcentered text-center wordbreak wordbreak1 p-0"
45
+ // >
46
+ // {/* <span>{langdetect == 'en' ? cardItem.cardobj_descripen : cardItem.cardobj_descripar}</span> */}
47
+ // </div>
48
+ // </div>
49
+ // </div>
50
+ // );
51
+ // }
52
+
53
+ const Slideshowzoom = (props) => {
54
+ const actions = props.actions;
55
+ const langdetect = props.actions.langdetect;
56
+ const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
57
+ const [sectionproperties, setsectionproperties] = useState('');
58
+ const [bgimagearrayofobjs, setbgimagearrayofobjs] = useState([]);
59
+ const [cardarrayofobjs, setcardarrayofobjs] = useState([]);
60
+
61
+ useEffect(() => {
62
+ if (props.srcfrom == 'addsectionform') {
63
+ var secpropobj = {};
64
+ props.defaultproperties.forEach(function (defaultpropobj, defaultpropindex) {
65
+ secpropobj[defaultpropobj.property_css_name] = defaultpropobj.property_value;
66
+ });
67
+ setsectionproperties({ ...secpropobj });
68
+ } else {
69
+ var secpropobj = {};
70
+ StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
71
+ if (sectionitem.sectionid == props.sectionidprops) {
72
+ sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
73
+ secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
74
+ });
75
+ }
76
+ });
77
+ setsectionproperties({ ...secpropobj });
78
+ }
79
+ }, [StatePagePropertiesContext]);
80
+ useEffect(() => {
81
+ if (sectionproperties.length != 0 && sectionproperties.slideshowarrayofobj != undefined) {
82
+ var bg_arrayofobjsparsed = JSON.parse(sectionproperties.slideshowarrayofobj);
83
+ if (Array.isArray(bg_arrayofobjsparsed)) {
84
+ setbgimagearrayofobjs([...bg_arrayofobjsparsed]);
85
+ }
86
+ }
87
+ }, [sectionproperties]);
88
+ useEffect(() => {
89
+ if (sectionproperties.length != 0 && sectionproperties.card_arrayofobjects != undefined) {
90
+ var card_arrayofobjsparsed = JSON.parse(sectionproperties.card_arrayofobjects);
91
+ if (Array.isArray(card_arrayofobjsparsed)) {
92
+ setcardarrayofobjs([...card_arrayofobjsparsed]);
93
+ }
94
+ }
95
+ }, [sectionproperties]);
96
+
97
+ const Slideshowsettings = {
98
+ indicators: false,
99
+ arrows: false,
100
+ pauseOnHover: false,
101
+ scale: 1.4,
102
+ };
103
+
104
+ const SlideShowTextContainer = (item) => {
105
+ return (
106
+ <div
107
+ class={
108
+ cardarrayofobjs.length != 0
109
+ ? 'row m-0 w-100 allcentered align-items-md-center justify-content-md-center p-0 mt-sm-n6'
110
+ : 'row m-0 w-100 allcentered align-items-md-center justify-content-md-center p-0'
111
+ }
112
+ style={{ position: 'absolute', top: cardarrayofobjs.length != 0 ? '40%' : '50%', zIndex: 2 }}
113
+ >
114
+ <div class={sectionproperties.text1centered == 'Centered' ? 'col-lg-12 allcentered' : 'col-lg-12 '}>
115
+ <p
116
+ className="m-0 p-0 wordbreak PacificoFont"
117
+ style={{
118
+ fontSize: sectionproperties.slideshowText1ContentFontSize + 'px',
119
+ color: sectionproperties.slideshowText1ContentColor,
120
+ fontWeight: sectionproperties.slideshowText1ContentFontWeight,
121
+ textAlign: sectionproperties.text1centered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right',
122
+ }}
123
+ >
124
+ {langdetect == 'en' ? item.titleen : item.titlear}
125
+ </p>
126
+ </div>
127
+ <div class={sectionproperties.text2centered == 'Centered' ? 'col-lg-12 allcentered' : 'col-lg-12 '}>
128
+ <p
129
+ className="m-0 p-0 wordbreak"
130
+ style={{
131
+ fontSize: sectionproperties.slideshowText2ContentFontSize + 'px',
132
+ color: sectionproperties.slideshowText2ContentColor,
133
+ fontWeight: sectionproperties.slideshowText2ContentFontWeight,
134
+ textAlign: sectionproperties.text2centered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right',
135
+ }}
136
+ >
137
+ {langdetect == 'en' ? item.descriptionen : item.descriptionar}
138
+ </p>
139
+ </div>
140
+ </div>
141
+ );
142
+ };
143
+
144
+ return (
145
+ <div class="row m-0 w-100 d-flex justify-content-center align-items-center">
146
+ <div
147
+ class={cardarrayofobjs.length != 0 ? 'col-lg-12 p-0 d-flex justify-content-center h-md-auto' : 'col-lg-12 p-0 d-flex justify-content-center h-md-350px'}
148
+ style={{ height: sectionproperties.height + 'vh' }}
149
+ >
150
+ <div
151
+ style={{
152
+ position: 'relative',
153
+ borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
154
+ borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
155
+ borderBottomRightRadius: sectionproperties.borderBottomRightRadius + '100px',
156
+ borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + '100px',
157
+ width: sectionproperties.width + 'vw',
158
+ marginBottom: sectionproperties.marginBottom + 'px',
159
+ marginTop: sectionproperties.marginTop + 'px',
160
+ height: sectionproperties.height + 'vh',
161
+ }}
162
+ >
163
+ <Zoom {...Slideshowsettings} transitionDuration={1500} duration={1500} arrow={true} easing="ease">
164
+ {Object.keys(bgimagearrayofobjs).length != 0 &&
165
+ bgimagearrayofobjs.map((item, index) => {
166
+ return (
167
+ <div class="row m-0 w-100">
168
+ <div
169
+ class={'beforebg p-0 align-items-center d-flex d-sm-none '}
170
+ key={index}
171
+ style={{
172
+ width: '100%',
173
+ height: sectionproperties.height + 'vh',
174
+ borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
175
+ borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
176
+ borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
177
+ borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
178
+ backgroundSize: 'cover',
179
+ backgroundPosition: 'center',
180
+ backgroundImage: langdetect == 'en' ? `url(` + serverbaselink + item.imageen + `)` : `url(` + serverbaselink + item.imagear + `)`,
181
+ paddingTop: sectionproperties.paddingTop + 'px',
182
+ paddingLeft: langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : '',
183
+ paddingRight: langdetect == 'en' ? '' : sectionproperties.paddingLeft + 'px',
184
+ }}
185
+ >
186
+ {SlideShowTextContainer(item)}
187
+ </div>
188
+ <div
189
+ class={'beforebg p-0 align-items-center d-none d-sm-flex '}
190
+ key={index}
191
+ style={{
192
+ width: '100%',
193
+ height: sectionproperties.height + 'vh',
194
+ borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
195
+ borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
196
+ borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
197
+ borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
198
+ backgroundSize: 'cover',
199
+ backgroundPosition: 'center',
200
+ backgroundImage: langdetect == 'en' ? `url(` + serverbaselink + item.image_resp_en + `)` : `url(` + serverbaselink + item.image_resp_ar + `)`,
201
+ paddingTop: sectionproperties.paddingTop + 'px',
202
+ paddingLeft: langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : '',
203
+ paddingRight: langdetect == 'en' ? '' : sectionproperties.paddingLeft + 'px',
204
+ }}
205
+ >
206
+ {SlideShowTextContainer(item)}
207
+ </div>
208
+ </div>
209
+ );
210
+ })}
211
+ </Zoom>
212
+ {cardarrayofobjs.length != 0 && (
213
+ <div style={{ position: 'absolute', left: 0, bottom: 60, zIndex: 100 }} class="row m-0 w-100 ">
214
+ <div class={' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-12 w-100'}>
215
+ <ScrollMenu
216
+ itemClassName="slideshowCard"
217
+ // LeftArrow={LeftArrow}
218
+ // RightArrow={RightArrow}
219
+ transitionDuration={500}
220
+ transitionEase={easingFunctions['linear']}
221
+ scrollContainerClassName={'scrollmenuclasssubscrollbar'}
222
+ >
223
+ {Object.keys(cardarrayofobjs).length != 0 &&
224
+ cardarrayofobjs.map((cardItem, cardIndex) => {
225
+ var id = cardIndex;
226
+ return (
227
+ <div class={'p-0 w-100'}>
228
+ <div class="row m-0 w-100">
229
+ <div class="col-lg-12 allcentered mb-1 p-0">
230
+ <div
231
+ style={{
232
+ width: '120px',
233
+ height: '120px',
234
+ borderRadius: '100%',
235
+ }}
236
+ >
237
+ <img
238
+ src={serverbaselink + cardItem.cardobj_img}
239
+ style={{ width: '100%', height: '100%', objectFit: 'contain', borderRadius: '100%' }}
240
+ />
241
+ </div>
242
+ </div>
243
+ <div
244
+ style={{
245
+ color: sectionproperties.sectionTitleColor,
246
+ fontSize: sectionproperties.sectionTitleFontSize + 'px',
247
+ fontWeight: sectionproperties.sectionTitleFontWeight,
248
+ }}
249
+ class="col-lg-12 allcentered text-center p-0 wordbreak wordbreak1"
250
+ >
251
+ <span>{langdetect == 'en' ? cardItem.cardobj_titleen : cardItem.cardobj_titlear}</span>
252
+ </div>
253
+ <div
254
+ style={{
255
+ color: sectionproperties.prodCatColor,
256
+ fontSize: sectionproperties.prodCatFontSize + 'px',
257
+ fontWeight: sectionproperties.prodCatFontWeight,
258
+ }}
259
+ class="col-lg-12 allcentered text-center wordbreak wordbreak1 p-0"
260
+ >
261
+ <span>{langdetect == 'en' ? cardItem.cardobj_descripen : cardItem.cardobj_descripar}</span>
262
+ </div>
263
+ </div>
264
+ </div>
265
+ );
266
+ // <CardsArrayOfObjects title={id} itemId={id} key={id} cardItem={cardItem} sectionproperties={sectionproperties} actions={actions} />
267
+ // ;
268
+ })}
269
+ </ScrollMenu>
270
+ </div>
271
+ </div>
272
+ )}
273
+ </div>
274
+ </div>
275
+ </div>
276
+ );
277
+ };
278
+ export default Slideshowzoom;
279
+
280
+ const easingFunctions = {
281
+ noEasing: undefined,
282
+ // no easing, no acceleration
283
+ linear: (t) => t,
284
+ // accelerating from zero velocity
285
+ easeInQuad: (t) => t * t,
286
+ // decelerating to zero velocity
287
+ easeOutQuad: (t) => t * (2 - t),
288
+ // acceleration until halfway, then deceleration
289
+ easeInOutQuad: (t) => (t < 0.5 ? 2 * t * t : -1 + (4 - 2 * t) * t),
290
+ // accelerating from zero velocity
291
+ easeInCubic: (t) => t * t * t,
292
+ // decelerating to zero velocity
293
+ easeOutCubic: (t) => --t * t * t + 1,
294
+ // acceleration until halfway, then deceleration
295
+ easeInOutCubic: (t) => (t < 0.5 ? 4 * t * t * t : (t - 1) * (2 * t - 2) * (2 * t - 2) + 1),
296
+ // accelerating from zero velocity
297
+ easeInQuart: (t) => t * t * t * t,
298
+ // decelerating to zero velocity
299
+ easeOutQuart: (t) => 1 - --t * t * t * t,
300
+ // acceleration until halfway, then deceleration
301
+ easeInOutQuart: (t) => (t < 0.5 ? 8 * t * t * t * t : 1 - 8 * --t * t * t * t),
302
+ // accelerating from zero velocity
303
+ easeInQuint: (t) => t * t * t * t * t,
304
+ // decelerating to zero velocity
305
+ easeOutQuint: (t) => 1 + --t * t * t * t * t,
306
+ // acceleration until halfway, then deceleration
307
+ easeInOutQuint: (t) => (t < 0.5 ? 16 * t * t * t * t * t : 1 + 16 * --t * t * t * t * t),
308
+ // Source https://gist.github.com/gre/1650294#file-easing-js
309
+ };
@@ -0,0 +1,260 @@
1
+ import React, { useEffect, useState, useContext } from 'react';
2
+ import generalstyles from '../../../styles/general/general.module.css';
3
+ import CustomerInformationForm from '../Signup/CustomerInformationForm.jsx';
4
+ import { css } from 'glamor';
5
+ import Staticpagesrouter from '../Staticpagesrouter/Staticpagesrouter.jsx';
6
+ import { IKImage } from 'imagekitio-react';
7
+ import { IKpublicKey, IKurlEndpoint } from '../../../../Env';
8
+ const AccountInformation = (props) => {
9
+ const lang = props.actions.lang;
10
+ const langdetect = props.actions.langdetect;
11
+ const templatepropcontext = props.actions.templatepropcontext;
12
+ const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
13
+ const navigationstyle = props.actions.navigationstyle;
14
+ const actions = props.actions;
15
+ useEffect(() => {
16
+ var secpropobj = {};
17
+ props?.actions?.StatePagePropertiesContext?.pageobj?.pageproperties?.forEach(function (arrayItem, arrayindex) {
18
+ secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
19
+ });
20
+ setsectionproperties({ ...secpropobj });
21
+ }, [props.actions.StatePagePropertiesContext]);
22
+ const [CurrentPageId, setCurrentPageId] = useState('');
23
+ const [sectionproperties, setsectionproperties] = useState('');
24
+ useEffect(() => {
25
+ var cartindex = templatepropcontext.pagesnprop.findIndex((x) => x.staticpageid == '6218bccb83d53');
26
+ if (cartindex >= 0) {
27
+ setCurrentPageId(cartindex);
28
+ }
29
+ }, []);
30
+ const accountinfo_cssstyles = {
31
+ sectiontitlespan: css({
32
+ ':after': {
33
+ width: sectionproperties.sectitle_lineafterwidth + '%',
34
+ backgroundColor: sectionproperties.linebgcolor,
35
+ },
36
+ }),
37
+ sectiontitlespan2: css({
38
+ ':after': {
39
+ width: sectionproperties.sectitle_lineafterwidth + 'px',
40
+ height: '100%',
41
+ backgroundColor: sectionproperties.linebgcolor,
42
+ },
43
+ }),
44
+ };
45
+ const [bgimagesarray, setbgimagesarray] = useState([]);
46
+ useEffect(() => {
47
+ if (sectionproperties.length != 0) {
48
+ if (sectionproperties.arrayofobjectimagesonly != null) {
49
+ var arrayofobjectimagesonlyparsed = JSON.parse(sectionproperties.arrayofobjectimagesonly);
50
+ if (Array.isArray(arrayofobjectimagesonlyparsed)) {
51
+ setbgimagesarray([...arrayofobjectimagesonlyparsed]);
52
+ }
53
+ }
54
+ }
55
+ }, [sectionproperties]);
56
+ return (
57
+ <div className={'row ml-0 mr-0 w-100'}>
58
+ {sectionproperties.showbgimage == 'Show' && (
59
+ <div className="col-lg-12 p-0 d-flex justify-content-center">
60
+ <div
61
+ style={{
62
+ width: sectionproperties.image_width + 'vw',
63
+ height: sectionproperties.image_height + 'vh',
64
+ marginBottom: sectionproperties.image_mb + 'px',
65
+ position: 'relative',
66
+ }}
67
+ >
68
+ <IKImage
69
+ urlEndpoint={IKurlEndpoint}
70
+ publicKey={IKpublicKey}
71
+ path={
72
+ bgimagesarray.length != 0
73
+ ? langdetect == 'en'
74
+ ? '/tr:w-3500,h-650/' + bgimagesarray[0]?.bgsection_image
75
+ : '/tr:w-3500,h-650/' + bgimagesarray[0]?.bgsection_image_ar
76
+ : ''
77
+ }
78
+ style={{
79
+ height: '100%',
80
+ width: '100%',
81
+ // objectFit: 'cover',
82
+ margin: 0,
83
+ padding: 0,
84
+ background: sectionproperties.image_bgcolor,
85
+ borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
86
+ borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
87
+ borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
88
+ borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px',
89
+ // zIndex: -1,
90
+ // transform: langdetect == 'en' ? 'scaleX(1)' : 'scaleX(-1)',
91
+ }}
92
+ />
93
+ <div
94
+ className={' col-lg-12 p-0 w-100 d-flex align-items-center justify-content-center '}
95
+ style={{
96
+ position: 'absolute',
97
+ top: 0,
98
+ right: 0,
99
+ bottom: 0,
100
+ left: 0,
101
+ }}
102
+ >
103
+ <p
104
+ className={' m-0 p-0 '}
105
+ style={{
106
+ fontSize: sectionproperties.imagetextfontsize + 'px',
107
+ color: sectionproperties.imagetextcolor,
108
+ textTransform: sectionproperties.imagetexttextTransform,
109
+ fontWeight: sectionproperties.imagetextfontWeight,
110
+ }}
111
+ >
112
+ {lang.accountinformation}
113
+ </p>
114
+ </div>
115
+ </div>
116
+ </div>
117
+ )}
118
+ <div className="col-lg-12 p-0">
119
+ <div
120
+ className="row m-0 w-100 pl-md-3 pr-md-3 pl-sm-2 pr-sm-2"
121
+ style={{
122
+ marginTop: sectionproperties.marginTop + 'px',
123
+ marginBottom: sectionproperties.marginBottom + 'px',
124
+ paddingLeft: sectionproperties.paddingLeft + 'px',
125
+ paddingRight: sectionproperties.paddingRight + 'px',
126
+ paddingTop: sectionproperties.paddingTop + 'px',
127
+ paddingBottom: sectionproperties.paddingBottom + 'px',
128
+ borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
129
+ borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
130
+ borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
131
+ borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
132
+ borderColor: sectionproperties.sectioncardbordercolor,
133
+ border: sectionproperties.sectioncardborderwidth + 'px solid',
134
+ }}
135
+ >
136
+ <div className={navigationstyle == 'Side Navigation' ? (langdetect == 'en' ? 'col-lg-3 pl-0 mb-md-3 p-md-0' : 'col-lg-3 pr-0 mb-md-3 p-md-0') : 'col-lg-12 p-0'}>
137
+ <Staticpagesrouter currentpageprops={'accountinfo'} actions={actions} />
138
+ </div>
139
+ <div className={navigationstyle == 'Side Navigation' ? 'col-lg-9 p-0' : 'col-lg-12 p-0'}>
140
+ <div className="row m-0 w-100">
141
+ {navigationstyle == 'Side Navigation' && (
142
+ <div className="row m-0 w-100">
143
+ {sectionproperties.sectiontitlestyle == 'Line Under Text' && (
144
+ <div className="col-lg-12 col-md-12 col-sm-12 d-flex align-items-center p-0">
145
+ <div className={`${generalstyles.sectiontitlecont}` + ' d-flex align-items-center '}>
146
+ <div
147
+ className={' col-lg-12 d-flex align-items-center p-0 '}
148
+ style={{
149
+ justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : '',
150
+ marginTop: sectionproperties.sectionTitleMarginTop + 'px',
151
+ marginBottom: sectionproperties.sectionTitleMarginBottom + 'px',
152
+ marginLeft: sectionproperties.sectionTitleMarginLeft + 'px',
153
+ marginRight: sectionproperties.sectionTitleMarginRight + 'px',
154
+ }}
155
+ >
156
+ <span
157
+ className={`${accountinfo_cssstyles.sectiontitlespan}`}
158
+ style={{
159
+ fontSize: sectionproperties.sectionTitleFontSize + 'px',
160
+ color: sectionproperties.sectionTitleColor,
161
+
162
+ textTransform: sectionproperties.sectionTitleTextTransform,
163
+ fontWeight: sectionproperties.sectionTitleFontWeight,
164
+ }}
165
+ >
166
+ {langdetect == 'en' ? 'Account Information' : 'البيانات الخاصة'}
167
+ </span>
168
+ </div>
169
+ </div>
170
+ </div>
171
+ )}
172
+ {sectionproperties.sectiontitlestyle == 'Line Before Text' && (
173
+ <div
174
+ className="col-lg-12 col-md-12 col-sm-12 d-flex align-items-center p-0"
175
+ style={{
176
+ justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : '',
177
+ }}
178
+ >
179
+ <div
180
+ className={`${generalstyles.sectiontitlecont2}`}
181
+ style={{
182
+ marginTop: sectionproperties.sectionTitleMarginTop + 'px',
183
+ marginBottom: sectionproperties.sectionTitleMarginBottom + 'px',
184
+ marginLeft: sectionproperties.sectionTitleMarginLeft + 'px',
185
+ marginRight: sectionproperties.sectionTitleMarginRight + 'px',
186
+ }}
187
+ >
188
+ {langdetect == 'en' && (
189
+ <span
190
+ className={`${accountinfo_cssstyles.sectiontitlespan2}` + ' pl-3 '}
191
+ style={{
192
+ fontSize: sectionproperties.sectionTitleFontSize + 'px',
193
+ color: sectionproperties.sectionTitleColor,
194
+ textTransform: sectionproperties.sectionTitleTextTransform,
195
+ fontWeight: sectionproperties.sectionTitleFontWeight,
196
+ }}
197
+ >
198
+ Account
199
+ <br /> Information:
200
+ </span>
201
+ )}
202
+ {langdetect == 'ar' && (
203
+ <span
204
+ className={`${accountinfo_cssstyles.sectiontitlespan2}` + ' pl-3 '}
205
+ style={{
206
+ fontSize: sectionproperties.sectionTitleFontSize + 'px',
207
+ color: sectionproperties.sectionTitleColor,
208
+ textTransform: sectionproperties.sectionTitleTextTransform,
209
+ fontWeight: sectionproperties.sectionTitleFontWeight,
210
+ }}
211
+ >
212
+ البيانات الشخصية:
213
+ </span>
214
+ )}
215
+ </div>
216
+ </div>
217
+ )}
218
+ </div>
219
+ )}
220
+
221
+ <div className={'col-lg-12 p-0'}>
222
+ <CustomerInformationForm formtype="edit" srcfromprops="accountinfo" sectionpropertiesprops={sectionproperties} actions={actions} />
223
+ </div>
224
+ </div>
225
+ </div>
226
+ </div>
227
+ </div>
228
+
229
+ {StatePagePropertiesContext.pageobj.sections.length != 0 && (
230
+ <div className="col-lg-12 d-flex align-items-center justify-content-center p-0 ">
231
+ {/* {pageindexcontext.length != 0 && Object.keys(StatePagePropertiesContext).length != 0 && (
232
+ <div className={generalstyles.app_container + ' w-100 '}>
233
+ {StatePagePropertiesContext.pageobj.sections.map((item, index) => {
234
+ if (item.tabexsectioninfo != null && TabexSectionsComponentsContext[item.tabexsectioninfo.sectioncompname] != undefined && item.componenttype == 'section') {
235
+ var sectioncomp = TabexSectionsComponentsContext[item.tabexsectioninfo.sectioncompname];
236
+ return (
237
+ <div className="row w-100 ml-0 mr-0 d-flex justify-content-center">
238
+ {item.tabexsectioninfo.sectiontype == 'Cards' && (
239
+ <ProductsCardsSectionContext_Provider>
240
+ {React.createElement(sectioncomp, {
241
+ sectionidprops: item.sectionid,
242
+ sectionindexprops: index,
243
+ srcfromprops: 'GeneralProductsComponent',
244
+ collectionidprops: collectionidparams,
245
+ })}
246
+ </ProductsCardsSectionContext_Provider>
247
+ )}
248
+ {item.tabexsectioninfo.sectiontype != 'Cards' && React.createElement(sectioncomp, { sectionidprops: item.sectionid, sectionindexprops: index })}
249
+ </div>
250
+ );
251
+ }
252
+ })}
253
+ </div>
254
+ )} */}
255
+ </div>
256
+ )}
257
+ </div>
258
+ );
259
+ };
260
+ export default AccountInformation;