tabexseriescomponents 0.0.262 → 0.0.263
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.
- package/dist/index.cjs.js +212 -114
- package/dist/index.esm.js +212 -114
- package/dist/index.umd.js +212 -114
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -198,6 +198,9 @@ var LanguageProvider = /*#__PURE__*/function (_Component) {
|
|
|
198
198
|
_this.state = {
|
|
199
199
|
lang: {
|
|
200
200
|
en: (_en = {
|
|
201
|
+
sendcode: 'Send code',
|
|
202
|
+
verifycode: 'Verify Code',
|
|
203
|
+
writevalidemail: 'Please write a valid email',
|
|
201
204
|
loginregister: 'Login/Register',
|
|
202
205
|
pleaselogintocheckout: 'Please login in order to checkout',
|
|
203
206
|
reservationtime: 'Time',
|
|
@@ -268,6 +271,9 @@ var LanguageProvider = /*#__PURE__*/function (_Component) {
|
|
|
268
271
|
orsignupwith: 'Or Sign up with'
|
|
269
272
|
}, _defineProperty(_en, "price", 'Price'), _defineProperty(_en, "relatedproducts", 'Related products'), _defineProperty(_en, "qty", 'QTY'), _defineProperty(_en, "emptyshoppingcart", 'Your shopping cart is empty'), _defineProperty(_en, "shopnow", 'Shop now'), _defineProperty(_en, "total", 'Total'), _defineProperty(_en, "otherinformation", 'Other information'), _defineProperty(_en, "productname", 'Product name'), _defineProperty(_en, "quantity", 'Quantity'), _defineProperty(_en, "orderid", 'Order ID'), _defineProperty(_en, "numberofproducts", 'Number of products'), _defineProperty(_en, "checkyourorder", 'Check your order'), _defineProperty(_en, "search", 'Search'), _defineProperty(_en, "searchproducts", 'Search for products...'), _defineProperty(_en, "choosecity", 'Choose city'), _defineProperty(_en, "choosestategov", 'Choose state/governorate'), _defineProperty(_en, "choosecountry", 'Choose country'), _defineProperty(_en, "giftcarddicountcode", 'Gift Card Or Discount Code...'), _defineProperty(_en, "nosearchresults", 'No search results'), _defineProperty(_en, "sale", 'Sale'), _defineProperty(_en, "nofavoriteproducts", 'Your wishlist is empty'), _defineProperty(_en, "loggedoutsuccess", 'Logged out successfully'), _defineProperty(_en, "addedtocartsuccess", 'Cart is updated successfully'), _defineProperty(_en, "promocodeapplied", 'Promo code is applied.'), _defineProperty(_en, "promocoderemoved", 'Promo code is removed'), _defineProperty(_en, "countryandstateupdatedsuccess", 'Country and state are updated successfully'), _defineProperty(_en, "orderaddedsuccess", 'Order is added successfully'), _defineProperty(_en, "addedtowishlist", 'Added to your favourites'), _defineProperty(_en, "productrmovedfromwishlist", 'Removed from your favourites'), _defineProperty(_en, "fillthemissingfields", 'Please complete the missing fields'), _defineProperty(_en, "passwordsdontmatch", "Passwords don't match"), _defineProperty(_en, "loggedinsuccess", 'Logged in successfully'), _defineProperty(_en, "subtotal", 'Sub total'), _defineProperty(_en, "discount", 'Discount'), _defineProperty(_en, "outofzone", 'Out of zone'), _defineProperty(_en, "total", 'Total'), _defineProperty(_en, "cod", 'Cash on Delivery'), _defineProperty(_en, "cardondelivery", 'Credit Card On Delivery'), _defineProperty(_en, "onlinepayment", 'Online Payment'), _defineProperty(_en, "paymentcardinformation", 'Payment Card Information'), _defineProperty(_en, "shippingfees", 'Shipping fees'), _defineProperty(_en, "shippingaddress", 'Shipping address'), _defineProperty(_en, "cardnumber", 'Card number'), _defineProperty(_en, "year", 'Year'), _defineProperty(_en, "month", 'Month'), _defineProperty(_en, "cvv", 'CVV'), _defineProperty(_en, "nameoncard", 'Name On Card'), _defineProperty(_en, "country", 'Country'), _defineProperty(_en, "addressdetails", 'ِAddress details'), _defineProperty(_en, "stategov", 'State/Governorate'), _defineProperty(_en, "city", 'City'), _defineProperty(_en, "paymentmethod", 'Payment method'), _defineProperty(_en, "productimage", 'Product image'), _defineProperty(_en, "orderdetails", 'Order details'), _defineProperty(_en, "orderinvoice", 'Order invoice'), _defineProperty(_en, "promocodediscount", 'Promo code discount'), _defineProperty(_en, "address", 'Address'), _defineProperty(_en, "update", 'Update'), _defineProperty(_en, "phonenumber", 'Mobile number'), _defineProperty(_en, "completerequiredfields", 'Please complete all required fields'), _defineProperty(_en, "name", 'Name'), _defineProperty(_en, "email", 'Email'), _defineProperty(_en, "password", 'Password'), _defineProperty(_en, "confirmpassword", 'Confirm password'), _defineProperty(_en, "showmore", 'Show more'), _defineProperty(_en, "showless", 'Show less'), _defineProperty(_en, "contactdetails", 'Contact Information'), _defineProperty(_en, "asaguest", 'As a guest'), _defineProperty(_en, "choosecountryfirst", 'Please choose country first'), _defineProperty(_en, "security", 'Security'), _defineProperty(_en, "personalinformation", 'Personal Information'), _defineProperty(_en, "contactus", 'Contact us'), _defineProperty(_en, "slogan", 'Your website & mobile application in one place'), _defineProperty(_en, "recent", 'Recent'), _defineProperty(_en, "oldest", 'Oldest'), _defineProperty(_en, "pricehightolow", 'High to low'), _defineProperty(_en, "pricelowtohigh", 'Low to High'), _defineProperty(_en, "pleasecompleteaddressmissingfields", 'Please complete the missing address fields'), _en),
|
|
270
273
|
ar: (_ar = {
|
|
274
|
+
sendcode: 'إرسل الرمز',
|
|
275
|
+
verifycode: 'التحقق من كود',
|
|
276
|
+
writevalidemail: 'الرجاء كتابة بريد إلكتروني صالح',
|
|
271
277
|
pleasecompleteaddressmissingfields: 'من فضلك اكمل باقى بيانات العنوان',
|
|
272
278
|
loginregister: 'تسجيل الدخول/إنشاء حساب جديد',
|
|
273
279
|
pleaselogintocheckout: 'قم بتسجيل دخول لاستكمال طلبك',
|
|
@@ -680,7 +686,7 @@ var Login = function Login(props) {
|
|
|
680
686
|
position: 'relative',
|
|
681
687
|
display: 'flex',
|
|
682
688
|
alignItems: 'center'
|
|
683
|
-
}, _defineProperty(_css, "display", 'block'), _defineProperty(_css, "width", '100%'), _defineProperty(_css, "height", '35px'), _defineProperty(_css, "padding", '0
|
|
689
|
+
}, _defineProperty(_css, "display", 'block'), _defineProperty(_css, "width", '100%'), _defineProperty(_css, "height", '35px'), _defineProperty(_css, "padding", '0 10px'), _defineProperty(_css, "transition", '.3s'), _defineProperty(_css, "fontWeight", 500), _defineProperty(_css, "border", sectionproperties.inputfieldbordertype == 'All' ? sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor : 0), _defineProperty(_css, "borderBottom", sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor), _defineProperty(_css, "borderRadius", sectionproperties.inputfieldborderradius + 'px'), _defineProperty(_css, "height", sectionproperties.inputfieldheight + 'px'), _defineProperty(_css, "background", sectionproperties.input_bgcolor), _defineProperty(_css, "color", sectionproperties.inputfieldcolor), _defineProperty(_css, ':focus', {
|
|
684
690
|
borderColor: sectionproperties.inputfeildbordercoloronfocus
|
|
685
691
|
}), _defineProperty(_css, ':focus .login_input_icon', {
|
|
686
692
|
color: sectionproperties.inputfeildbordercoloronfocus
|
|
@@ -7778,6 +7784,7 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
7778
7784
|
var authdetailsContext = props.actions.authdetailsContext;
|
|
7779
7785
|
var instapikey = props.actions.instapikey;
|
|
7780
7786
|
var templatepropcontext = props.actions.templatepropcontext;
|
|
7787
|
+
var GeneralAPIMutationContext = props.actions.GeneralAPIMutationContext;
|
|
7781
7788
|
props.actions.ikimagecredcontext;
|
|
7782
7789
|
var NotificationManager = props.actions.NotificationManager;
|
|
7783
7790
|
var actions = props.actions;
|
|
@@ -7786,9 +7793,9 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
7786
7793
|
customeraddressrequierd = _useState2[0],
|
|
7787
7794
|
setcustomeraddressrequierd = _useState2[1];
|
|
7788
7795
|
var _useState3 = useState(fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 ? void 0 : (_fetchAuthorizationQu4 = fetchAuthorizationQueryContext.data) === null || _fetchAuthorizationQu4 === void 0 ? void 0 : (_fetchAuthorizationQu5 = _fetchAuthorizationQu4.data) === null || _fetchAuthorizationQu5 === void 0 ? void 0 : (_fetchAuthorizationQu6 = _fetchAuthorizationQu5.instinfo) === null || _fetchAuthorizationQu6 === void 0 ? void 0 : _fetchAuthorizationQu6.customervalidateemail),
|
|
7789
|
-
_useState4 = _slicedToArray(_useState3, 2)
|
|
7790
|
-
_useState4[0]
|
|
7791
|
-
|
|
7796
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
7797
|
+
customervalidateemail = _useState4[0],
|
|
7798
|
+
setcustomervalidateemail = _useState4[1];
|
|
7792
7799
|
var _useState5 = useState(false),
|
|
7793
7800
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
7794
7801
|
validateemailmodal = _useState6[0],
|
|
@@ -7802,6 +7809,15 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
7802
7809
|
dataloaded = _useState10[0],
|
|
7803
7810
|
setdataloaded = _useState10[1];
|
|
7804
7811
|
var _useState11 = useState({
|
|
7812
|
+
email: '',
|
|
7813
|
+
code: '',
|
|
7814
|
+
step: 'sendcode',
|
|
7815
|
+
isvalidated: false
|
|
7816
|
+
}),
|
|
7817
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
7818
|
+
validateemailpayload = _useState12[0],
|
|
7819
|
+
setvalidateemailpayload = _useState12[1];
|
|
7820
|
+
var _useState13 = useState({
|
|
7805
7821
|
instapikey: instapikey,
|
|
7806
7822
|
name: '',
|
|
7807
7823
|
email: '',
|
|
@@ -7816,9 +7832,9 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
7816
7832
|
cityid: '',
|
|
7817
7833
|
countrydialcode: ''
|
|
7818
7834
|
}),
|
|
7819
|
-
|
|
7820
|
-
payloadobj =
|
|
7821
|
-
setpayloadobj =
|
|
7835
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
7836
|
+
payloadobj = _useState14[0],
|
|
7837
|
+
setpayloadobj = _useState14[1];
|
|
7822
7838
|
useEffect(function () {
|
|
7823
7839
|
if (fetchAuthorizationQueryContext.isSuccess) {
|
|
7824
7840
|
var _fetchAuthorizationQu7, _fetchAuthorizationQu8, _fetchAuthorizationQu9, _fetchAuthorizationQu10, _fetchAuthorizationQu11, _fetchAuthorizationQu12;
|
|
@@ -7868,6 +7884,82 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
7868
7884
|
temppayloadobj[key] = value;
|
|
7869
7885
|
setpayloadobj(_objectSpread$1R({}, temppayloadobj));
|
|
7870
7886
|
};
|
|
7887
|
+
var validateEmailstring = function validateEmailstring(email) {
|
|
7888
|
+
return String(email).toLowerCase().match(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/);
|
|
7889
|
+
};
|
|
7890
|
+
var verifypayload = function verifypayload() {
|
|
7891
|
+
var iscompleted = false;
|
|
7892
|
+
var isshippingaddresscompleted = false;
|
|
7893
|
+
var passwordvalidation = false;
|
|
7894
|
+
if (authdetailsContext.loggedin == false) {
|
|
7895
|
+
if (payloadobj.password.length != 0) {
|
|
7896
|
+
if (payloadobj.password == payloadobj.password2) {
|
|
7897
|
+
passwordvalidation = true;
|
|
7898
|
+
}
|
|
7899
|
+
}
|
|
7900
|
+
} else if (authdetailsContext.loggedin == true) {
|
|
7901
|
+
if (payloadobj.password.length != 0) {
|
|
7902
|
+
if (payloadobj.password == payloadobj.password2) {
|
|
7903
|
+
passwordvalidation = true;
|
|
7904
|
+
}
|
|
7905
|
+
} else {
|
|
7906
|
+
passwordvalidation = true;
|
|
7907
|
+
}
|
|
7908
|
+
}
|
|
7909
|
+
if (passwordvalidation == false) {
|
|
7910
|
+
NotificationManager.warning('', lang.passwordsdontmatch);
|
|
7911
|
+
}
|
|
7912
|
+
if (customeraddressrequierd == 1) {
|
|
7913
|
+
if (payloadobj.countryid.length != 0 && payloadobj.stateid.length != 0 && payloadobj.cityid.length != 0 && payloadobj.shippingaddress.length != 0) {
|
|
7914
|
+
isshippingaddresscompleted = true;
|
|
7915
|
+
}
|
|
7916
|
+
} else {
|
|
7917
|
+
isshippingaddresscompleted = true;
|
|
7918
|
+
}
|
|
7919
|
+
if (validateEmailstring(payloadobj.email)) {
|
|
7920
|
+
if (payloadobj.email.length != 0 && payloadobj.name.length != 0 && payloadobj.mobile.length != 0 && passwordvalidation == true) {
|
|
7921
|
+
if (isshippingaddresscompleted) {
|
|
7922
|
+
var signupformismissing = true;
|
|
7923
|
+
payloadobj.instsignupformvalues.forEach(function (arrayItem) {
|
|
7924
|
+
if (arrayItem.optional == 1) {
|
|
7925
|
+
if (arrayItem.customersignupvalue == undefined || arrayItem.customersignupvalue.length == 0) {
|
|
7926
|
+
signupformismissing = false;
|
|
7927
|
+
}
|
|
7928
|
+
}
|
|
7929
|
+
});
|
|
7930
|
+
if (signupformismissing) {
|
|
7931
|
+
iscompleted = true;
|
|
7932
|
+
} else {
|
|
7933
|
+
iscompleted = false;
|
|
7934
|
+
NotificationManager.warning('', lang.completerequiredfields);
|
|
7935
|
+
}
|
|
7936
|
+
} else {
|
|
7937
|
+
iscompleted = false;
|
|
7938
|
+
NotificationManager.warning('', lang.pleasecompleteaddressmissingfields);
|
|
7939
|
+
}
|
|
7940
|
+
} else {
|
|
7941
|
+
iscompleted = false;
|
|
7942
|
+
NotificationManager.warning('', lang.fillthemissingfields);
|
|
7943
|
+
}
|
|
7944
|
+
} else {
|
|
7945
|
+
iscompleted = false;
|
|
7946
|
+
NotificationManager.warning('', lang.writevalidemail);
|
|
7947
|
+
}
|
|
7948
|
+
return iscompleted;
|
|
7949
|
+
};
|
|
7950
|
+
var signupbuttonfunc = function signupbuttonfunc() {
|
|
7951
|
+
if (verifypayload() == true) {
|
|
7952
|
+
var temppayloadobj = _objectSpread$1R({}, payloadobj);
|
|
7953
|
+
if (authdetailsContext.loggedin == true) {
|
|
7954
|
+
temppayloadobj.functype = 'edit';
|
|
7955
|
+
} else {
|
|
7956
|
+
temppayloadobj.functype = 'add';
|
|
7957
|
+
}
|
|
7958
|
+
temppayloadobj.addedsourcetype = 'Webapp';
|
|
7959
|
+
temppayloadobj.instapikey = instapikey;
|
|
7960
|
+
CustomerSignUpMutationContext.mutate(temppayloadobj);
|
|
7961
|
+
}
|
|
7962
|
+
};
|
|
7871
7963
|
var formstyles = {
|
|
7872
7964
|
loginbtn: css({
|
|
7873
7965
|
background: templatepropcontext.primarycolor,
|
|
@@ -7931,7 +8023,7 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
7931
8023
|
position: 'relative',
|
|
7932
8024
|
display: 'flex',
|
|
7933
8025
|
alignItems: 'center'
|
|
7934
|
-
}, _defineProperty(_css, "display", 'block'), _defineProperty(_css, "width", '100%'), _defineProperty(_css, "padding", '0
|
|
8026
|
+
}, _defineProperty(_css, "display", 'block'), _defineProperty(_css, "width", '100%'), _defineProperty(_css, "padding", '0 10px'), _defineProperty(_css, "transition", '.3s'), _defineProperty(_css, "border", sectionproperties.inputfieldbordertype == 'All' ? sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor : 0), _defineProperty(_css, "borderBottom", sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor), _defineProperty(_css, "borderRadius", sectionproperties.inputfieldborderradius + 'px'), _defineProperty(_css, "height", sectionproperties.inputfieldheight + 'px'), _defineProperty(_css, "background", sectionproperties.input_bgcolor), _defineProperty(_css, "color", sectionproperties.inputfieldcolor), _defineProperty(_css, ':focus', {
|
|
7935
8027
|
borderColor: sectionproperties.inputfeildbordercoloronfocus
|
|
7936
8028
|
}), _defineProperty(_css, ':focus .login_input_icon', {
|
|
7937
8029
|
color: sectionproperties.inputfeildbordercoloronfocus
|
|
@@ -7984,6 +8076,7 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
7984
8076
|
type: "text",
|
|
7985
8077
|
textplaceholder: "",
|
|
7986
8078
|
value: payloadobj.email,
|
|
8079
|
+
disabled: validateemailpayload.isvalidated,
|
|
7987
8080
|
onChange: function onChange(event) {
|
|
7988
8081
|
payloadobjchange('email', event.target.value);
|
|
7989
8082
|
}
|
|
@@ -8483,62 +8576,13 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
8483
8576
|
className: "".concat(formstyles.signupbtn) + ' d-flex align-items-center justify-content-center ',
|
|
8484
8577
|
disabled: CustomerSignUpMutationContext.isLoading ? true : false,
|
|
8485
8578
|
onClick: function onClick() {
|
|
8486
|
-
|
|
8487
|
-
|
|
8488
|
-
|
|
8489
|
-
if (payloadobj.password.length != 0) {
|
|
8490
|
-
if (payloadobj.password == payloadobj.password2) {
|
|
8491
|
-
passwordvalidation = true;
|
|
8492
|
-
}
|
|
8493
|
-
}
|
|
8494
|
-
} else if (authdetailsContext.loggedin == true) {
|
|
8495
|
-
if (payloadobj.password.length != 0) {
|
|
8496
|
-
if (payloadobj.password == payloadobj.password2) {
|
|
8497
|
-
passwordvalidation = true;
|
|
8498
|
-
}
|
|
8579
|
+
if (verifypayload() == true) {
|
|
8580
|
+
if (customervalidateemail == 1) {
|
|
8581
|
+
setvalidateemailmodal(true);
|
|
8499
8582
|
} else {
|
|
8500
|
-
|
|
8583
|
+
signupbuttonfunc();
|
|
8501
8584
|
}
|
|
8502
8585
|
}
|
|
8503
|
-
if (passwordvalidation == false) {
|
|
8504
|
-
NotificationManager.warning('', lang.passwordsdontmatch);
|
|
8505
|
-
}
|
|
8506
|
-
if (customeraddressrequierd == 1) {
|
|
8507
|
-
if (payloadobj.countryid.length != 0 && payloadobj.stateid.length != 0 && payloadobj.cityid.length != 0 && payloadobj.shippingaddress.length != 0) {
|
|
8508
|
-
isshippingaddresscompleted = true;
|
|
8509
|
-
}
|
|
8510
|
-
} else {
|
|
8511
|
-
isshippingaddresscompleted = true;
|
|
8512
|
-
}
|
|
8513
|
-
if (payloadobj.email.length != 0 && payloadobj.name.length != 0 && payloadobj.mobile.length != 0 && passwordvalidation == true) {
|
|
8514
|
-
if (isshippingaddresscompleted) {
|
|
8515
|
-
var signupformismissing = true;
|
|
8516
|
-
payloadobj.instsignupformvalues.forEach(function (arrayItem) {
|
|
8517
|
-
if (arrayItem.optional == 1) {
|
|
8518
|
-
if (arrayItem.customersignupvalue == undefined || arrayItem.customersignupvalue.length == 0) {
|
|
8519
|
-
signupformismissing = false;
|
|
8520
|
-
}
|
|
8521
|
-
}
|
|
8522
|
-
});
|
|
8523
|
-
if (signupformismissing) {
|
|
8524
|
-
var temppayloadobj = _objectSpread$1R({}, payloadobj);
|
|
8525
|
-
if (authdetailsContext.loggedin == true) {
|
|
8526
|
-
temppayloadobj.functype = 'edit';
|
|
8527
|
-
} else {
|
|
8528
|
-
temppayloadobj.functype = 'add';
|
|
8529
|
-
}
|
|
8530
|
-
temppayloadobj.addedsourcetype = 'Webapp';
|
|
8531
|
-
temppayloadobj.instapikey = instapikey;
|
|
8532
|
-
CustomerSignUpMutationContext.mutate(temppayloadobj);
|
|
8533
|
-
} else {
|
|
8534
|
-
NotificationManager.warning('', lang.completerequiredfields);
|
|
8535
|
-
}
|
|
8536
|
-
} else {
|
|
8537
|
-
NotificationManager.warning('', lang.pleasecompleteaddressmissingfields);
|
|
8538
|
-
}
|
|
8539
|
-
} else {
|
|
8540
|
-
NotificationManager.warning('', lang.fillthemissingfields);
|
|
8541
|
-
}
|
|
8542
8586
|
}
|
|
8543
8587
|
}, CustomerSignUpMutationContext.isLoading && /*#__PURE__*/React.createElement(CircularProgress, {
|
|
8544
8588
|
color: "#fff",
|
|
@@ -8584,7 +8628,7 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
8584
8628
|
},
|
|
8585
8629
|
centered: true,
|
|
8586
8630
|
size: 'md'
|
|
8587
|
-
}, /*#__PURE__*/React.createElement(Modal.Body, null, /*#__PURE__*/React.createElement("div", {
|
|
8631
|
+
}, /*#__PURE__*/React.createElement(Modal.Body, null, /*#__PURE__*/React.createElement(Modal.Body, null, /*#__PURE__*/React.createElement("div", {
|
|
8588
8632
|
"class": "d-flex align-items-center justify-content-center bgdanger-hover",
|
|
8589
8633
|
style: {
|
|
8590
8634
|
position: 'absolute',
|
|
@@ -8601,7 +8645,96 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
8601
8645
|
}, /*#__PURE__*/React.createElement(IoMdClose, {
|
|
8602
8646
|
size: 15,
|
|
8603
8647
|
color: "white"
|
|
8604
|
-
}))
|
|
8648
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
8649
|
+
"class": "row m-0 w-100 allcentered"
|
|
8650
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
8651
|
+
className: "col-lg-12 col-md-12 col-sm-12 d-flex align-items-center mt-2 justify-content-center"
|
|
8652
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
8653
|
+
className: "text-md-center m-0 p-0 mb-2",
|
|
8654
|
+
style: {
|
|
8655
|
+
fontSize: '19px',
|
|
8656
|
+
color: sectionproperties.sectionTitleColor,
|
|
8657
|
+
fontWeight: 600
|
|
8658
|
+
}
|
|
8659
|
+
}, langdetect == 'en' ? 'Validate Email' : 'التحقق من صحة البريد الإلكتروني')), /*#__PURE__*/React.createElement("div", {
|
|
8660
|
+
"class": "col-lg-12 p-0"
|
|
8661
|
+
}, /*#__PURE__*/React.createElement("hr", {
|
|
8662
|
+
"class": 'm-0 p-0'
|
|
8663
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
8664
|
+
"class": "row w-100 m-0 mb-3 pl-2 pr-2 pt-3 pb-3 pl-sm-3 pr-sm-3"
|
|
8665
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
8666
|
+
className: "col-lg-12 col-md-12 col-sm-12 mb-2 p-sm-0"
|
|
8667
|
+
}, /*#__PURE__*/React.createElement("label", {
|
|
8668
|
+
className: "".concat(formstyles.logininputLabel) + ' text-transform-none d-flex justify-content-start '
|
|
8669
|
+
}, langdetect == 'en' ? 'E-mail' : 'البريد الإلكترونى'), /*#__PURE__*/React.createElement("input", {
|
|
8670
|
+
type: "text",
|
|
8671
|
+
className: "".concat(formstyles.form_control),
|
|
8672
|
+
value: payloadobj.email,
|
|
8673
|
+
disabled: true
|
|
8674
|
+
})), validateemailpayload.step == 'verifycode' && /*#__PURE__*/React.createElement("div", {
|
|
8675
|
+
className: "col-lg-12 col-md-12 col-sm-12 mb-3 mt-3 p-sm-0"
|
|
8676
|
+
}, /*#__PURE__*/React.createElement("label", {
|
|
8677
|
+
className: "".concat(formstyles.logininputLabel) + ' text-transform-none d-flex justify-content-start '
|
|
8678
|
+
}, langdetect == 'en' ? 'Code' : ' كود البريد الاكتروني'), /*#__PURE__*/React.createElement("input", {
|
|
8679
|
+
type: "text",
|
|
8680
|
+
className: "".concat(formstyles.form_control),
|
|
8681
|
+
value: validateemailpayload.code,
|
|
8682
|
+
onChange: function onChange(event) {
|
|
8683
|
+
setvalidateemailpayload(_objectSpread$1R(_objectSpread$1R({}, validateemailpayload), {}, {
|
|
8684
|
+
code: event.target.value
|
|
8685
|
+
}));
|
|
8686
|
+
}
|
|
8687
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
8688
|
+
className: "col-lg-12 col-md-12 col-sm-12 d-flex align-items-center justify-content-center mb-3 mt-3"
|
|
8689
|
+
}, /*#__PURE__*/React.createElement("button", {
|
|
8690
|
+
className: "".concat(formstyles.signupbtn) + ' d-flex align-items-center justify-content-center ',
|
|
8691
|
+
disabled: GeneralAPIMutationContext.isLoading ? true : false,
|
|
8692
|
+
onClick: function onClick() {
|
|
8693
|
+
if (payloadobj.email.length != 0) {
|
|
8694
|
+
if (validateemailpayload.isvalidated == true) {
|
|
8695
|
+
setvalidateemailmodal(false);
|
|
8696
|
+
signupbuttonfunc();
|
|
8697
|
+
} else {
|
|
8698
|
+
GeneralAPIMutationContext.mutate({
|
|
8699
|
+
endpointurl: '/validateemail',
|
|
8700
|
+
functype: validateemailpayload.step,
|
|
8701
|
+
code: validateemailpayload.code,
|
|
8702
|
+
name: payloadobj.name,
|
|
8703
|
+
email: payloadobj.email,
|
|
8704
|
+
mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
|
|
8705
|
+
if (data.data.status) {
|
|
8706
|
+
if (data.data.functype == 'sendcode') {
|
|
8707
|
+
setvalidateemailpayload(_objectSpread$1R(_objectSpread$1R({}, validateemailpayload), {}, {
|
|
8708
|
+
step: 'verifycode'
|
|
8709
|
+
}));
|
|
8710
|
+
}
|
|
8711
|
+
if (data.data.functype == 'verifycode') {
|
|
8712
|
+
setvalidateemailpayload(_objectSpread$1R(_objectSpread$1R({}, validateemailpayload), {}, {
|
|
8713
|
+
isvalidated: true
|
|
8714
|
+
}));
|
|
8715
|
+
setvalidateemailmodal(false);
|
|
8716
|
+
signupbuttonfunc();
|
|
8717
|
+
}
|
|
8718
|
+
} else {
|
|
8719
|
+
NotificationManager.warning('', data.data.reason);
|
|
8720
|
+
}
|
|
8721
|
+
}
|
|
8722
|
+
});
|
|
8723
|
+
}
|
|
8724
|
+
} else {
|
|
8725
|
+
NotificationManager.warning(lang.completerequiredfields);
|
|
8726
|
+
}
|
|
8727
|
+
}
|
|
8728
|
+
}, GeneralAPIMutationContext.isLoading && /*#__PURE__*/React.createElement(CircularProgress, {
|
|
8729
|
+
color: "#fff",
|
|
8730
|
+
width: "20px",
|
|
8731
|
+
height: "20px",
|
|
8732
|
+
duration: "1s"
|
|
8733
|
+
}), !GeneralAPIMutationContext.isLoading && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
|
|
8734
|
+
style: {
|
|
8735
|
+
letterSpacing: langdetect == 'en' ? '1px' : ''
|
|
8736
|
+
}
|
|
8737
|
+
}, validateemailpayload.step == 'sendcode' ? lang.sendcode : lang.verifycode))))))), /*#__PURE__*/React.createElement(Modal.Footer, null)));
|
|
8605
8738
|
};
|
|
8606
8739
|
|
|
8607
8740
|
function ownKeys$1Q(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
@@ -21091,7 +21224,10 @@ var HeaderwithContactinfo = function HeaderwithContactinfo(props) {
|
|
|
21091
21224
|
marginLeft: langdetect == 'ar' ? '2rem' : 0
|
|
21092
21225
|
}
|
|
21093
21226
|
}, /*#__PURE__*/React.createElement(Dropdown, null, /*#__PURE__*/React.createElement(Dropdown.Toggle, null, !authdetailsContext.loggedin && /*#__PURE__*/React.createElement("div", {
|
|
21094
|
-
"class": ' d-flex justify-content-center align-items-center '
|
|
21227
|
+
"class": ' d-flex justify-content-center align-items-center ',
|
|
21228
|
+
onClick: function onClick() {
|
|
21229
|
+
routingcountext(StaticPagesLinksContext.Login);
|
|
21230
|
+
}
|
|
21095
21231
|
}, /*#__PURE__*/React.createElement("span", {
|
|
21096
21232
|
"class": "".concat(headerstyles$8.navbar_item_text, " ").concat(header_cssstyles.navbar_item_text, " ").concat(header_cssstyles.user_btn) + ' d-flex justify-content-center align-items-center '
|
|
21097
21233
|
}, /*#__PURE__*/React.createElement(FiUser, {
|
|
@@ -21125,27 +21261,7 @@ var HeaderwithContactinfo = function HeaderwithContactinfo(props) {
|
|
|
21125
21261
|
style: {
|
|
21126
21262
|
maxWidth: '60px'
|
|
21127
21263
|
}
|
|
21128
|
-
}, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$c = authdetailsContext.customerinfo) === null || _authdetailsContext$c === void 0 ? void 0 : _authdetailsContext$c.name)))),
|
|
21129
|
-
onClick: function onClick() {
|
|
21130
|
-
routingcountext(StaticPagesLinksContext.Login);
|
|
21131
|
-
}
|
|
21132
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
21133
|
-
"class": "".concat(header_cssstyles.dropdownitemcontainer) + ' d-flex align-items-center m-0 p-0 '
|
|
21134
|
-
}, /*#__PURE__*/React.createElement("p", {
|
|
21135
|
-
"class": "".concat(header_cssstyles.dropdownitem) + ' d-flex align-items-center dropdownitem m-0 p-0 '
|
|
21136
|
-
}, /*#__PURE__*/React.createElement(AiOutlineLogin, null), /*#__PURE__*/React.createElement("span", {
|
|
21137
|
-
"class": "ml-2 mr-2"
|
|
21138
|
-
}, lang.login)))), /*#__PURE__*/React.createElement(Dropdown.Divider, null), /*#__PURE__*/React.createElement(Dropdown.Item, {
|
|
21139
|
-
onClick: function onClick() {
|
|
21140
|
-
routingcountext(StaticPagesLinksContext.Signup);
|
|
21141
|
-
}
|
|
21142
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
21143
|
-
"class": "".concat(header_cssstyles.dropdownitemcontainer) + ' d-flex align-items-center m-0 p-0 '
|
|
21144
|
-
}, /*#__PURE__*/React.createElement("p", {
|
|
21145
|
-
"class": "".concat(header_cssstyles.dropdownitem) + ' d-flex align-items-center dropdownitem m-0 p-0 '
|
|
21146
|
-
}, /*#__PURE__*/React.createElement(AiOutlineUserAdd, null), /*#__PURE__*/React.createElement("span", {
|
|
21147
|
-
"class": "ml-2 mr-2 text-transform-none"
|
|
21148
|
-
}, lang.signup))))), authdetailsContext.loggedin && /*#__PURE__*/React.createElement(Dropdown.Menu, {
|
|
21264
|
+
}, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$c = authdetailsContext.customerinfo) === null || _authdetailsContext$c === void 0 ? void 0 : _authdetailsContext$c.name)))), authdetailsContext.loggedin && /*#__PURE__*/React.createElement(Dropdown.Menu, {
|
|
21149
21265
|
style: {
|
|
21150
21266
|
minWidth: '200px'
|
|
21151
21267
|
}
|
|
@@ -21716,6 +21832,9 @@ var Modernheader = function Modernheader(props) {
|
|
|
21716
21832
|
"class": " ".concat(header_cssstyles.user_btn) + ' d-flex align-items-center justify-content-center ',
|
|
21717
21833
|
sytle: {
|
|
21718
21834
|
position: 'relative'
|
|
21835
|
+
},
|
|
21836
|
+
onClick: function onClick() {
|
|
21837
|
+
routingcountext(StaticPagesLinksContext.Login);
|
|
21719
21838
|
}
|
|
21720
21839
|
}, /*#__PURE__*/React.createElement("i", {
|
|
21721
21840
|
"class": ' h-100 d-flex align-items-center '
|
|
@@ -21750,29 +21869,7 @@ var Modernheader = function Modernheader(props) {
|
|
|
21750
21869
|
style: {
|
|
21751
21870
|
maxWidth: '120px'
|
|
21752
21871
|
}
|
|
21753
|
-
}, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$c = authdetailsContext.customerinfo) === null || _authdetailsContext$c === void 0 ? void 0 : _authdetailsContext$c.name)))),
|
|
21754
|
-
onClick: function onClick() {
|
|
21755
|
-
routingcountext(StaticPagesLinksContext.Login);
|
|
21756
|
-
}
|
|
21757
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
21758
|
-
"class": "".concat(header_cssstyles.dropdownitemcontainer) + ' m-0 p-0 d-flex align-items-center '
|
|
21759
|
-
}, /*#__PURE__*/React.createElement("p", {
|
|
21760
|
-
"class": ' d-flex align-items-center m-0 p-0 '
|
|
21761
|
-
}, /*#__PURE__*/React.createElement(AiOutlineLogin, {
|
|
21762
|
-
"class": langdetect == 'en' ? 'mr-2' : 'ml-2'
|
|
21763
|
-
}), /*#__PURE__*/React.createElement("span", null, lang.login)))), /*#__PURE__*/React.createElement(Dropdown.Divider, null), /*#__PURE__*/React.createElement(Dropdown.Item, {
|
|
21764
|
-
onClick: function onClick() {
|
|
21765
|
-
routingcountext(StaticPagesLinksContext.Signup);
|
|
21766
|
-
}
|
|
21767
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
21768
|
-
"class": "".concat(header_cssstyles.dropdownitemcontainer) + ' m-0 p-0 d-flex align-items-center '
|
|
21769
|
-
}, /*#__PURE__*/React.createElement("p", {
|
|
21770
|
-
"class": ' d-flex align-items-center m-0 p-0 '
|
|
21771
|
-
}, /*#__PURE__*/React.createElement(AiOutlineUserAdd, {
|
|
21772
|
-
"class": langdetect == 'en' ? 'mr-2' : 'ml-2'
|
|
21773
|
-
}), /*#__PURE__*/React.createElement("span", {
|
|
21774
|
-
"class": "text-transform-none"
|
|
21775
|
-
}, lang.signup))))), authdetailsContext.loggedin && /*#__PURE__*/React.createElement(Dropdown.Menu, {
|
|
21872
|
+
}, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$c = authdetailsContext.customerinfo) === null || _authdetailsContext$c === void 0 ? void 0 : _authdetailsContext$c.name)))), authdetailsContext.loggedin && /*#__PURE__*/React.createElement(Dropdown.Menu, {
|
|
21776
21873
|
style: {
|
|
21777
21874
|
minWidth: '200px'
|
|
21778
21875
|
}
|
|
@@ -47636,7 +47733,7 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
|
|
|
47636
47733
|
}, /*#__PURE__*/React.createElement("div", {
|
|
47637
47734
|
"class": "".concat(cardsstyles$4.card_thumbnail)
|
|
47638
47735
|
}, /*#__PURE__*/React.createElement("div", {
|
|
47639
|
-
"class": "".concat(cardsstyles$4.img_container, " ").concat(cardsstyles2.img_container) + ' w-100
|
|
47736
|
+
"class": "".concat(cardsstyles$4.img_container, " ").concat(cardsstyles2.img_container) + ' w-100 allcentered ',
|
|
47640
47737
|
onClick: function onClick() {
|
|
47641
47738
|
setShowProductInfoModalContext(true);
|
|
47642
47739
|
setProductIdProdutInfoModalContext(item.productid);
|
|
@@ -47645,19 +47742,19 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
|
|
|
47645
47742
|
cursor: 'pointer',
|
|
47646
47743
|
overflow: 'hidden'
|
|
47647
47744
|
}
|
|
47648
|
-
}, /*#__PURE__*/React.createElement(Imagekitimagecomp, {
|
|
47745
|
+
}, item.image != '' && /*#__PURE__*/React.createElement(Imagekitimagecomp, {
|
|
47649
47746
|
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
47650
47747
|
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
47651
47748
|
path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + item.image,
|
|
47652
47749
|
style: {
|
|
47653
|
-
width: '
|
|
47654
|
-
|
|
47750
|
+
width: sectionproperties.imageInnerWidth_Height + '%',
|
|
47751
|
+
height: sectionproperties.imageInnerWidth_Height + '%',
|
|
47752
|
+
objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain',
|
|
47655
47753
|
position: 'relative',
|
|
47656
47754
|
borderBottomLeftRadius: langdetect == 'en' ? sectionproperties.image_borderBottomLeftRadius + 'px' : sectionproperties.image_borderBottomRightRadius + 'px',
|
|
47657
47755
|
borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
47658
47756
|
borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
|
|
47659
|
-
borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px'
|
|
47660
|
-
marginBottom: 'auto'
|
|
47757
|
+
borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px'
|
|
47661
47758
|
},
|
|
47662
47759
|
loading: "lazy"
|
|
47663
47760
|
})), sectionproperties.favBtnShow == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
@@ -53611,6 +53708,7 @@ var Simplecategorycardwithtextbelow = function Simplecategorycardwithtextbelow(p
|
|
|
53611
53708
|
borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
53612
53709
|
height: sectionproperties.image_height + 'px',
|
|
53613
53710
|
marginBottom: sectionproperties.image_mb + 'px',
|
|
53711
|
+
border: sectionproperties.image_borderwidth + 'px solid ' + sectionproperties.image_bordercolor,
|
|
53614
53712
|
overflow: 'hidden',
|
|
53615
53713
|
position: 'relative',
|
|
53616
53714
|
':before': {
|