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.cjs.js
CHANGED
|
@@ -245,6 +245,9 @@ var LanguageProvider = /*#__PURE__*/function (_Component) {
|
|
|
245
245
|
_this.state = {
|
|
246
246
|
lang: {
|
|
247
247
|
en: (_en = {
|
|
248
|
+
sendcode: 'Send code',
|
|
249
|
+
verifycode: 'Verify Code',
|
|
250
|
+
writevalidemail: 'Please write a valid email',
|
|
248
251
|
loginregister: 'Login/Register',
|
|
249
252
|
pleaselogintocheckout: 'Please login in order to checkout',
|
|
250
253
|
reservationtime: 'Time',
|
|
@@ -315,6 +318,9 @@ var LanguageProvider = /*#__PURE__*/function (_Component) {
|
|
|
315
318
|
orsignupwith: 'Or Sign up with'
|
|
316
319
|
}, _defineProperty__default["default"](_en, "price", 'Price'), _defineProperty__default["default"](_en, "relatedproducts", 'Related products'), _defineProperty__default["default"](_en, "qty", 'QTY'), _defineProperty__default["default"](_en, "emptyshoppingcart", 'Your shopping cart is empty'), _defineProperty__default["default"](_en, "shopnow", 'Shop now'), _defineProperty__default["default"](_en, "total", 'Total'), _defineProperty__default["default"](_en, "otherinformation", 'Other information'), _defineProperty__default["default"](_en, "productname", 'Product name'), _defineProperty__default["default"](_en, "quantity", 'Quantity'), _defineProperty__default["default"](_en, "orderid", 'Order ID'), _defineProperty__default["default"](_en, "numberofproducts", 'Number of products'), _defineProperty__default["default"](_en, "checkyourorder", 'Check your order'), _defineProperty__default["default"](_en, "search", 'Search'), _defineProperty__default["default"](_en, "searchproducts", 'Search for products...'), _defineProperty__default["default"](_en, "choosecity", 'Choose city'), _defineProperty__default["default"](_en, "choosestategov", 'Choose state/governorate'), _defineProperty__default["default"](_en, "choosecountry", 'Choose country'), _defineProperty__default["default"](_en, "giftcarddicountcode", 'Gift Card Or Discount Code...'), _defineProperty__default["default"](_en, "nosearchresults", 'No search results'), _defineProperty__default["default"](_en, "sale", 'Sale'), _defineProperty__default["default"](_en, "nofavoriteproducts", 'Your wishlist is empty'), _defineProperty__default["default"](_en, "loggedoutsuccess", 'Logged out successfully'), _defineProperty__default["default"](_en, "addedtocartsuccess", 'Cart is updated successfully'), _defineProperty__default["default"](_en, "promocodeapplied", 'Promo code is applied.'), _defineProperty__default["default"](_en, "promocoderemoved", 'Promo code is removed'), _defineProperty__default["default"](_en, "countryandstateupdatedsuccess", 'Country and state are updated successfully'), _defineProperty__default["default"](_en, "orderaddedsuccess", 'Order is added successfully'), _defineProperty__default["default"](_en, "addedtowishlist", 'Added to your favourites'), _defineProperty__default["default"](_en, "productrmovedfromwishlist", 'Removed from your favourites'), _defineProperty__default["default"](_en, "fillthemissingfields", 'Please complete the missing fields'), _defineProperty__default["default"](_en, "passwordsdontmatch", "Passwords don't match"), _defineProperty__default["default"](_en, "loggedinsuccess", 'Logged in successfully'), _defineProperty__default["default"](_en, "subtotal", 'Sub total'), _defineProperty__default["default"](_en, "discount", 'Discount'), _defineProperty__default["default"](_en, "outofzone", 'Out of zone'), _defineProperty__default["default"](_en, "total", 'Total'), _defineProperty__default["default"](_en, "cod", 'Cash on Delivery'), _defineProperty__default["default"](_en, "cardondelivery", 'Credit Card On Delivery'), _defineProperty__default["default"](_en, "onlinepayment", 'Online Payment'), _defineProperty__default["default"](_en, "paymentcardinformation", 'Payment Card Information'), _defineProperty__default["default"](_en, "shippingfees", 'Shipping fees'), _defineProperty__default["default"](_en, "shippingaddress", 'Shipping address'), _defineProperty__default["default"](_en, "cardnumber", 'Card number'), _defineProperty__default["default"](_en, "year", 'Year'), _defineProperty__default["default"](_en, "month", 'Month'), _defineProperty__default["default"](_en, "cvv", 'CVV'), _defineProperty__default["default"](_en, "nameoncard", 'Name On Card'), _defineProperty__default["default"](_en, "country", 'Country'), _defineProperty__default["default"](_en, "addressdetails", 'ِAddress details'), _defineProperty__default["default"](_en, "stategov", 'State/Governorate'), _defineProperty__default["default"](_en, "city", 'City'), _defineProperty__default["default"](_en, "paymentmethod", 'Payment method'), _defineProperty__default["default"](_en, "productimage", 'Product image'), _defineProperty__default["default"](_en, "orderdetails", 'Order details'), _defineProperty__default["default"](_en, "orderinvoice", 'Order invoice'), _defineProperty__default["default"](_en, "promocodediscount", 'Promo code discount'), _defineProperty__default["default"](_en, "address", 'Address'), _defineProperty__default["default"](_en, "update", 'Update'), _defineProperty__default["default"](_en, "phonenumber", 'Mobile number'), _defineProperty__default["default"](_en, "completerequiredfields", 'Please complete all required fields'), _defineProperty__default["default"](_en, "name", 'Name'), _defineProperty__default["default"](_en, "email", 'Email'), _defineProperty__default["default"](_en, "password", 'Password'), _defineProperty__default["default"](_en, "confirmpassword", 'Confirm password'), _defineProperty__default["default"](_en, "showmore", 'Show more'), _defineProperty__default["default"](_en, "showless", 'Show less'), _defineProperty__default["default"](_en, "contactdetails", 'Contact Information'), _defineProperty__default["default"](_en, "asaguest", 'As a guest'), _defineProperty__default["default"](_en, "choosecountryfirst", 'Please choose country first'), _defineProperty__default["default"](_en, "security", 'Security'), _defineProperty__default["default"](_en, "personalinformation", 'Personal Information'), _defineProperty__default["default"](_en, "contactus", 'Contact us'), _defineProperty__default["default"](_en, "slogan", 'Your website & mobile application in one place'), _defineProperty__default["default"](_en, "recent", 'Recent'), _defineProperty__default["default"](_en, "oldest", 'Oldest'), _defineProperty__default["default"](_en, "pricehightolow", 'High to low'), _defineProperty__default["default"](_en, "pricelowtohigh", 'Low to High'), _defineProperty__default["default"](_en, "pleasecompleteaddressmissingfields", 'Please complete the missing address fields'), _en),
|
|
317
320
|
ar: (_ar = {
|
|
321
|
+
sendcode: 'إرسل الرمز',
|
|
322
|
+
verifycode: 'التحقق من كود',
|
|
323
|
+
writevalidemail: 'الرجاء كتابة بريد إلكتروني صالح',
|
|
318
324
|
pleasecompleteaddressmissingfields: 'من فضلك اكمل باقى بيانات العنوان',
|
|
319
325
|
loginregister: 'تسجيل الدخول/إنشاء حساب جديد',
|
|
320
326
|
pleaselogintocheckout: 'قم بتسجيل دخول لاستكمال طلبك',
|
|
@@ -727,7 +733,7 @@ var Login = function Login(props) {
|
|
|
727
733
|
position: 'relative',
|
|
728
734
|
display: 'flex',
|
|
729
735
|
alignItems: 'center'
|
|
730
|
-
}, _defineProperty__default["default"](_css, "display", 'block'), _defineProperty__default["default"](_css, "width", '100%'), _defineProperty__default["default"](_css, "height", '35px'), _defineProperty__default["default"](_css, "padding", '0
|
|
736
|
+
}, _defineProperty__default["default"](_css, "display", 'block'), _defineProperty__default["default"](_css, "width", '100%'), _defineProperty__default["default"](_css, "height", '35px'), _defineProperty__default["default"](_css, "padding", '0 10px'), _defineProperty__default["default"](_css, "transition", '.3s'), _defineProperty__default["default"](_css, "fontWeight", 500), _defineProperty__default["default"](_css, "border", sectionproperties.inputfieldbordertype == 'All' ? sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor : 0), _defineProperty__default["default"](_css, "borderBottom", sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor), _defineProperty__default["default"](_css, "borderRadius", sectionproperties.inputfieldborderradius + 'px'), _defineProperty__default["default"](_css, "height", sectionproperties.inputfieldheight + 'px'), _defineProperty__default["default"](_css, "background", sectionproperties.input_bgcolor), _defineProperty__default["default"](_css, "color", sectionproperties.inputfieldcolor), _defineProperty__default["default"](_css, ':focus', {
|
|
731
737
|
borderColor: sectionproperties.inputfeildbordercoloronfocus
|
|
732
738
|
}), _defineProperty__default["default"](_css, ':focus .login_input_icon', {
|
|
733
739
|
color: sectionproperties.inputfeildbordercoloronfocus
|
|
@@ -7825,6 +7831,7 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
7825
7831
|
var authdetailsContext = props.actions.authdetailsContext;
|
|
7826
7832
|
var instapikey = props.actions.instapikey;
|
|
7827
7833
|
var templatepropcontext = props.actions.templatepropcontext;
|
|
7834
|
+
var GeneralAPIMutationContext = props.actions.GeneralAPIMutationContext;
|
|
7828
7835
|
props.actions.ikimagecredcontext;
|
|
7829
7836
|
var NotificationManager = props.actions.NotificationManager;
|
|
7830
7837
|
var actions = props.actions;
|
|
@@ -7833,9 +7840,9 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
7833
7840
|
customeraddressrequierd = _useState2[0],
|
|
7834
7841
|
setcustomeraddressrequierd = _useState2[1];
|
|
7835
7842
|
var _useState3 = React.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),
|
|
7836
|
-
_useState4 = _slicedToArray__default["default"](_useState3, 2)
|
|
7837
|
-
_useState4[0]
|
|
7838
|
-
|
|
7843
|
+
_useState4 = _slicedToArray__default["default"](_useState3, 2),
|
|
7844
|
+
customervalidateemail = _useState4[0],
|
|
7845
|
+
setcustomervalidateemail = _useState4[1];
|
|
7839
7846
|
var _useState5 = React.useState(false),
|
|
7840
7847
|
_useState6 = _slicedToArray__default["default"](_useState5, 2),
|
|
7841
7848
|
validateemailmodal = _useState6[0],
|
|
@@ -7849,6 +7856,15 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
7849
7856
|
dataloaded = _useState10[0],
|
|
7850
7857
|
setdataloaded = _useState10[1];
|
|
7851
7858
|
var _useState11 = React.useState({
|
|
7859
|
+
email: '',
|
|
7860
|
+
code: '',
|
|
7861
|
+
step: 'sendcode',
|
|
7862
|
+
isvalidated: false
|
|
7863
|
+
}),
|
|
7864
|
+
_useState12 = _slicedToArray__default["default"](_useState11, 2),
|
|
7865
|
+
validateemailpayload = _useState12[0],
|
|
7866
|
+
setvalidateemailpayload = _useState12[1];
|
|
7867
|
+
var _useState13 = React.useState({
|
|
7852
7868
|
instapikey: instapikey,
|
|
7853
7869
|
name: '',
|
|
7854
7870
|
email: '',
|
|
@@ -7863,9 +7879,9 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
7863
7879
|
cityid: '',
|
|
7864
7880
|
countrydialcode: ''
|
|
7865
7881
|
}),
|
|
7866
|
-
|
|
7867
|
-
payloadobj =
|
|
7868
|
-
setpayloadobj =
|
|
7882
|
+
_useState14 = _slicedToArray__default["default"](_useState13, 2),
|
|
7883
|
+
payloadobj = _useState14[0],
|
|
7884
|
+
setpayloadobj = _useState14[1];
|
|
7869
7885
|
React.useEffect(function () {
|
|
7870
7886
|
if (fetchAuthorizationQueryContext.isSuccess) {
|
|
7871
7887
|
var _fetchAuthorizationQu7, _fetchAuthorizationQu8, _fetchAuthorizationQu9, _fetchAuthorizationQu10, _fetchAuthorizationQu11, _fetchAuthorizationQu12;
|
|
@@ -7915,6 +7931,82 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
7915
7931
|
temppayloadobj[key] = value;
|
|
7916
7932
|
setpayloadobj(_objectSpread$1R({}, temppayloadobj));
|
|
7917
7933
|
};
|
|
7934
|
+
var validateEmailstring = function validateEmailstring(email) {
|
|
7935
|
+
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,}))$/);
|
|
7936
|
+
};
|
|
7937
|
+
var verifypayload = function verifypayload() {
|
|
7938
|
+
var iscompleted = false;
|
|
7939
|
+
var isshippingaddresscompleted = false;
|
|
7940
|
+
var passwordvalidation = false;
|
|
7941
|
+
if (authdetailsContext.loggedin == false) {
|
|
7942
|
+
if (payloadobj.password.length != 0) {
|
|
7943
|
+
if (payloadobj.password == payloadobj.password2) {
|
|
7944
|
+
passwordvalidation = true;
|
|
7945
|
+
}
|
|
7946
|
+
}
|
|
7947
|
+
} else if (authdetailsContext.loggedin == true) {
|
|
7948
|
+
if (payloadobj.password.length != 0) {
|
|
7949
|
+
if (payloadobj.password == payloadobj.password2) {
|
|
7950
|
+
passwordvalidation = true;
|
|
7951
|
+
}
|
|
7952
|
+
} else {
|
|
7953
|
+
passwordvalidation = true;
|
|
7954
|
+
}
|
|
7955
|
+
}
|
|
7956
|
+
if (passwordvalidation == false) {
|
|
7957
|
+
NotificationManager.warning('', lang.passwordsdontmatch);
|
|
7958
|
+
}
|
|
7959
|
+
if (customeraddressrequierd == 1) {
|
|
7960
|
+
if (payloadobj.countryid.length != 0 && payloadobj.stateid.length != 0 && payloadobj.cityid.length != 0 && payloadobj.shippingaddress.length != 0) {
|
|
7961
|
+
isshippingaddresscompleted = true;
|
|
7962
|
+
}
|
|
7963
|
+
} else {
|
|
7964
|
+
isshippingaddresscompleted = true;
|
|
7965
|
+
}
|
|
7966
|
+
if (validateEmailstring(payloadobj.email)) {
|
|
7967
|
+
if (payloadobj.email.length != 0 && payloadobj.name.length != 0 && payloadobj.mobile.length != 0 && passwordvalidation == true) {
|
|
7968
|
+
if (isshippingaddresscompleted) {
|
|
7969
|
+
var signupformismissing = true;
|
|
7970
|
+
payloadobj.instsignupformvalues.forEach(function (arrayItem) {
|
|
7971
|
+
if (arrayItem.optional == 1) {
|
|
7972
|
+
if (arrayItem.customersignupvalue == undefined || arrayItem.customersignupvalue.length == 0) {
|
|
7973
|
+
signupformismissing = false;
|
|
7974
|
+
}
|
|
7975
|
+
}
|
|
7976
|
+
});
|
|
7977
|
+
if (signupformismissing) {
|
|
7978
|
+
iscompleted = true;
|
|
7979
|
+
} else {
|
|
7980
|
+
iscompleted = false;
|
|
7981
|
+
NotificationManager.warning('', lang.completerequiredfields);
|
|
7982
|
+
}
|
|
7983
|
+
} else {
|
|
7984
|
+
iscompleted = false;
|
|
7985
|
+
NotificationManager.warning('', lang.pleasecompleteaddressmissingfields);
|
|
7986
|
+
}
|
|
7987
|
+
} else {
|
|
7988
|
+
iscompleted = false;
|
|
7989
|
+
NotificationManager.warning('', lang.fillthemissingfields);
|
|
7990
|
+
}
|
|
7991
|
+
} else {
|
|
7992
|
+
iscompleted = false;
|
|
7993
|
+
NotificationManager.warning('', lang.writevalidemail);
|
|
7994
|
+
}
|
|
7995
|
+
return iscompleted;
|
|
7996
|
+
};
|
|
7997
|
+
var signupbuttonfunc = function signupbuttonfunc() {
|
|
7998
|
+
if (verifypayload() == true) {
|
|
7999
|
+
var temppayloadobj = _objectSpread$1R({}, payloadobj);
|
|
8000
|
+
if (authdetailsContext.loggedin == true) {
|
|
8001
|
+
temppayloadobj.functype = 'edit';
|
|
8002
|
+
} else {
|
|
8003
|
+
temppayloadobj.functype = 'add';
|
|
8004
|
+
}
|
|
8005
|
+
temppayloadobj.addedsourcetype = 'Webapp';
|
|
8006
|
+
temppayloadobj.instapikey = instapikey;
|
|
8007
|
+
CustomerSignUpMutationContext.mutate(temppayloadobj);
|
|
8008
|
+
}
|
|
8009
|
+
};
|
|
7918
8010
|
var formstyles = {
|
|
7919
8011
|
loginbtn: glamor.css({
|
|
7920
8012
|
background: templatepropcontext.primarycolor,
|
|
@@ -7978,7 +8070,7 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
7978
8070
|
position: 'relative',
|
|
7979
8071
|
display: 'flex',
|
|
7980
8072
|
alignItems: 'center'
|
|
7981
|
-
}, _defineProperty__default["default"](_css, "display", 'block'), _defineProperty__default["default"](_css, "width", '100%'), _defineProperty__default["default"](_css, "padding", '0
|
|
8073
|
+
}, _defineProperty__default["default"](_css, "display", 'block'), _defineProperty__default["default"](_css, "width", '100%'), _defineProperty__default["default"](_css, "padding", '0 10px'), _defineProperty__default["default"](_css, "transition", '.3s'), _defineProperty__default["default"](_css, "border", sectionproperties.inputfieldbordertype == 'All' ? sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor : 0), _defineProperty__default["default"](_css, "borderBottom", sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor), _defineProperty__default["default"](_css, "borderRadius", sectionproperties.inputfieldborderradius + 'px'), _defineProperty__default["default"](_css, "height", sectionproperties.inputfieldheight + 'px'), _defineProperty__default["default"](_css, "background", sectionproperties.input_bgcolor), _defineProperty__default["default"](_css, "color", sectionproperties.inputfieldcolor), _defineProperty__default["default"](_css, ':focus', {
|
|
7982
8074
|
borderColor: sectionproperties.inputfeildbordercoloronfocus
|
|
7983
8075
|
}), _defineProperty__default["default"](_css, ':focus .login_input_icon', {
|
|
7984
8076
|
color: sectionproperties.inputfeildbordercoloronfocus
|
|
@@ -8031,6 +8123,7 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
8031
8123
|
type: "text",
|
|
8032
8124
|
textplaceholder: "",
|
|
8033
8125
|
value: payloadobj.email,
|
|
8126
|
+
disabled: validateemailpayload.isvalidated,
|
|
8034
8127
|
onChange: function onChange(event) {
|
|
8035
8128
|
payloadobjchange('email', event.target.value);
|
|
8036
8129
|
}
|
|
@@ -8530,62 +8623,13 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
8530
8623
|
className: "".concat(formstyles.signupbtn) + ' d-flex align-items-center justify-content-center ',
|
|
8531
8624
|
disabled: CustomerSignUpMutationContext.isLoading ? true : false,
|
|
8532
8625
|
onClick: function onClick() {
|
|
8533
|
-
|
|
8534
|
-
|
|
8535
|
-
|
|
8536
|
-
if (payloadobj.password.length != 0) {
|
|
8537
|
-
if (payloadobj.password == payloadobj.password2) {
|
|
8538
|
-
passwordvalidation = true;
|
|
8539
|
-
}
|
|
8540
|
-
}
|
|
8541
|
-
} else if (authdetailsContext.loggedin == true) {
|
|
8542
|
-
if (payloadobj.password.length != 0) {
|
|
8543
|
-
if (payloadobj.password == payloadobj.password2) {
|
|
8544
|
-
passwordvalidation = true;
|
|
8545
|
-
}
|
|
8626
|
+
if (verifypayload() == true) {
|
|
8627
|
+
if (customervalidateemail == 1) {
|
|
8628
|
+
setvalidateemailmodal(true);
|
|
8546
8629
|
} else {
|
|
8547
|
-
|
|
8630
|
+
signupbuttonfunc();
|
|
8548
8631
|
}
|
|
8549
8632
|
}
|
|
8550
|
-
if (passwordvalidation == false) {
|
|
8551
|
-
NotificationManager.warning('', lang.passwordsdontmatch);
|
|
8552
|
-
}
|
|
8553
|
-
if (customeraddressrequierd == 1) {
|
|
8554
|
-
if (payloadobj.countryid.length != 0 && payloadobj.stateid.length != 0 && payloadobj.cityid.length != 0 && payloadobj.shippingaddress.length != 0) {
|
|
8555
|
-
isshippingaddresscompleted = true;
|
|
8556
|
-
}
|
|
8557
|
-
} else {
|
|
8558
|
-
isshippingaddresscompleted = true;
|
|
8559
|
-
}
|
|
8560
|
-
if (payloadobj.email.length != 0 && payloadobj.name.length != 0 && payloadobj.mobile.length != 0 && passwordvalidation == true) {
|
|
8561
|
-
if (isshippingaddresscompleted) {
|
|
8562
|
-
var signupformismissing = true;
|
|
8563
|
-
payloadobj.instsignupformvalues.forEach(function (arrayItem) {
|
|
8564
|
-
if (arrayItem.optional == 1) {
|
|
8565
|
-
if (arrayItem.customersignupvalue == undefined || arrayItem.customersignupvalue.length == 0) {
|
|
8566
|
-
signupformismissing = false;
|
|
8567
|
-
}
|
|
8568
|
-
}
|
|
8569
|
-
});
|
|
8570
|
-
if (signupformismissing) {
|
|
8571
|
-
var temppayloadobj = _objectSpread$1R({}, payloadobj);
|
|
8572
|
-
if (authdetailsContext.loggedin == true) {
|
|
8573
|
-
temppayloadobj.functype = 'edit';
|
|
8574
|
-
} else {
|
|
8575
|
-
temppayloadobj.functype = 'add';
|
|
8576
|
-
}
|
|
8577
|
-
temppayloadobj.addedsourcetype = 'Webapp';
|
|
8578
|
-
temppayloadobj.instapikey = instapikey;
|
|
8579
|
-
CustomerSignUpMutationContext.mutate(temppayloadobj);
|
|
8580
|
-
} else {
|
|
8581
|
-
NotificationManager.warning('', lang.completerequiredfields);
|
|
8582
|
-
}
|
|
8583
|
-
} else {
|
|
8584
|
-
NotificationManager.warning('', lang.pleasecompleteaddressmissingfields);
|
|
8585
|
-
}
|
|
8586
|
-
} else {
|
|
8587
|
-
NotificationManager.warning('', lang.fillthemissingfields);
|
|
8588
|
-
}
|
|
8589
8633
|
}
|
|
8590
8634
|
}, CustomerSignUpMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
|
|
8591
8635
|
color: "#fff",
|
|
@@ -8631,7 +8675,7 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
8631
8675
|
},
|
|
8632
8676
|
centered: true,
|
|
8633
8677
|
size: 'md'
|
|
8634
|
-
}, /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal.Body, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8678
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal.Body, null, /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal.Body, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8635
8679
|
"class": "d-flex align-items-center justify-content-center bgdanger-hover",
|
|
8636
8680
|
style: {
|
|
8637
8681
|
position: 'absolute',
|
|
@@ -8648,7 +8692,96 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
8648
8692
|
}, /*#__PURE__*/React__default["default"].createElement(IoMdClose.IoMdClose, {
|
|
8649
8693
|
size: 15,
|
|
8650
8694
|
color: "white"
|
|
8651
|
-
}))
|
|
8695
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8696
|
+
"class": "row m-0 w-100 allcentered"
|
|
8697
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8698
|
+
className: "col-lg-12 col-md-12 col-sm-12 d-flex align-items-center mt-2 justify-content-center"
|
|
8699
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
8700
|
+
className: "text-md-center m-0 p-0 mb-2",
|
|
8701
|
+
style: {
|
|
8702
|
+
fontSize: '19px',
|
|
8703
|
+
color: sectionproperties.sectionTitleColor,
|
|
8704
|
+
fontWeight: 600
|
|
8705
|
+
}
|
|
8706
|
+
}, langdetect == 'en' ? 'Validate Email' : 'التحقق من صحة البريد الإلكتروني')), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8707
|
+
"class": "col-lg-12 p-0"
|
|
8708
|
+
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
8709
|
+
"class": 'm-0 p-0'
|
|
8710
|
+
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8711
|
+
"class": "row w-100 m-0 mb-3 pl-2 pr-2 pt-3 pb-3 pl-sm-3 pr-sm-3"
|
|
8712
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8713
|
+
className: "col-lg-12 col-md-12 col-sm-12 mb-2 p-sm-0"
|
|
8714
|
+
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
8715
|
+
className: "".concat(formstyles.logininputLabel) + ' text-transform-none d-flex justify-content-start '
|
|
8716
|
+
}, langdetect == 'en' ? 'E-mail' : 'البريد الإلكترونى'), /*#__PURE__*/React__default["default"].createElement("input", {
|
|
8717
|
+
type: "text",
|
|
8718
|
+
className: "".concat(formstyles.form_control),
|
|
8719
|
+
value: payloadobj.email,
|
|
8720
|
+
disabled: true
|
|
8721
|
+
})), validateemailpayload.step == 'verifycode' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8722
|
+
className: "col-lg-12 col-md-12 col-sm-12 mb-3 mt-3 p-sm-0"
|
|
8723
|
+
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
8724
|
+
className: "".concat(formstyles.logininputLabel) + ' text-transform-none d-flex justify-content-start '
|
|
8725
|
+
}, langdetect == 'en' ? 'Code' : ' كود البريد الاكتروني'), /*#__PURE__*/React__default["default"].createElement("input", {
|
|
8726
|
+
type: "text",
|
|
8727
|
+
className: "".concat(formstyles.form_control),
|
|
8728
|
+
value: validateemailpayload.code,
|
|
8729
|
+
onChange: function onChange(event) {
|
|
8730
|
+
setvalidateemailpayload(_objectSpread$1R(_objectSpread$1R({}, validateemailpayload), {}, {
|
|
8731
|
+
code: event.target.value
|
|
8732
|
+
}));
|
|
8733
|
+
}
|
|
8734
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8735
|
+
className: "col-lg-12 col-md-12 col-sm-12 d-flex align-items-center justify-content-center mb-3 mt-3"
|
|
8736
|
+
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
8737
|
+
className: "".concat(formstyles.signupbtn) + ' d-flex align-items-center justify-content-center ',
|
|
8738
|
+
disabled: GeneralAPIMutationContext.isLoading ? true : false,
|
|
8739
|
+
onClick: function onClick() {
|
|
8740
|
+
if (payloadobj.email.length != 0) {
|
|
8741
|
+
if (validateemailpayload.isvalidated == true) {
|
|
8742
|
+
setvalidateemailmodal(false);
|
|
8743
|
+
signupbuttonfunc();
|
|
8744
|
+
} else {
|
|
8745
|
+
GeneralAPIMutationContext.mutate({
|
|
8746
|
+
endpointurl: '/validateemail',
|
|
8747
|
+
functype: validateemailpayload.step,
|
|
8748
|
+
code: validateemailpayload.code,
|
|
8749
|
+
name: payloadobj.name,
|
|
8750
|
+
email: payloadobj.email,
|
|
8751
|
+
mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
|
|
8752
|
+
if (data.data.status) {
|
|
8753
|
+
if (data.data.functype == 'sendcode') {
|
|
8754
|
+
setvalidateemailpayload(_objectSpread$1R(_objectSpread$1R({}, validateemailpayload), {}, {
|
|
8755
|
+
step: 'verifycode'
|
|
8756
|
+
}));
|
|
8757
|
+
}
|
|
8758
|
+
if (data.data.functype == 'verifycode') {
|
|
8759
|
+
setvalidateemailpayload(_objectSpread$1R(_objectSpread$1R({}, validateemailpayload), {}, {
|
|
8760
|
+
isvalidated: true
|
|
8761
|
+
}));
|
|
8762
|
+
setvalidateemailmodal(false);
|
|
8763
|
+
signupbuttonfunc();
|
|
8764
|
+
}
|
|
8765
|
+
} else {
|
|
8766
|
+
NotificationManager.warning('', data.data.reason);
|
|
8767
|
+
}
|
|
8768
|
+
}
|
|
8769
|
+
});
|
|
8770
|
+
}
|
|
8771
|
+
} else {
|
|
8772
|
+
NotificationManager.warning(lang.completerequiredfields);
|
|
8773
|
+
}
|
|
8774
|
+
}
|
|
8775
|
+
}, GeneralAPIMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
|
|
8776
|
+
color: "#fff",
|
|
8777
|
+
width: "20px",
|
|
8778
|
+
height: "20px",
|
|
8779
|
+
duration: "1s"
|
|
8780
|
+
}), !GeneralAPIMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
8781
|
+
style: {
|
|
8782
|
+
letterSpacing: langdetect == 'en' ? '1px' : ''
|
|
8783
|
+
}
|
|
8784
|
+
}, validateemailpayload.step == 'sendcode' ? lang.sendcode : lang.verifycode))))))), /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal.Footer, null)));
|
|
8652
8785
|
};
|
|
8653
8786
|
|
|
8654
8787
|
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; }
|
|
@@ -21138,7 +21271,10 @@ var HeaderwithContactinfo = function HeaderwithContactinfo(props) {
|
|
|
21138
21271
|
marginLeft: langdetect == 'ar' ? '2rem' : 0
|
|
21139
21272
|
}
|
|
21140
21273
|
}, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"], null, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Toggle, null, !authdetailsContext.loggedin && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
21141
|
-
"class": ' d-flex justify-content-center align-items-center '
|
|
21274
|
+
"class": ' d-flex justify-content-center align-items-center ',
|
|
21275
|
+
onClick: function onClick() {
|
|
21276
|
+
routingcountext(StaticPagesLinksContext.Login);
|
|
21277
|
+
}
|
|
21142
21278
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
21143
21279
|
"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 '
|
|
21144
21280
|
}, /*#__PURE__*/React__default["default"].createElement(FiUser.FiUser, {
|
|
@@ -21172,27 +21308,7 @@ var HeaderwithContactinfo = function HeaderwithContactinfo(props) {
|
|
|
21172
21308
|
style: {
|
|
21173
21309
|
maxWidth: '60px'
|
|
21174
21310
|
}
|
|
21175
|
-
}, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$c = authdetailsContext.customerinfo) === null || _authdetailsContext$c === void 0 ? void 0 : _authdetailsContext$c.name)))),
|
|
21176
|
-
onClick: function onClick() {
|
|
21177
|
-
routingcountext(StaticPagesLinksContext.Login);
|
|
21178
|
-
}
|
|
21179
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
21180
|
-
"class": "".concat(header_cssstyles.dropdownitemcontainer) + ' d-flex align-items-center m-0 p-0 '
|
|
21181
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
21182
|
-
"class": "".concat(header_cssstyles.dropdownitem) + ' d-flex align-items-center dropdownitem m-0 p-0 '
|
|
21183
|
-
}, /*#__PURE__*/React__default["default"].createElement(AiOutlineLogin.AiOutlineLogin, null), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
21184
|
-
"class": "ml-2 mr-2"
|
|
21185
|
-
}, lang.login)))), /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Divider, null), /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Item, {
|
|
21186
|
-
onClick: function onClick() {
|
|
21187
|
-
routingcountext(StaticPagesLinksContext.Signup);
|
|
21188
|
-
}
|
|
21189
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
21190
|
-
"class": "".concat(header_cssstyles.dropdownitemcontainer) + ' d-flex align-items-center m-0 p-0 '
|
|
21191
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
21192
|
-
"class": "".concat(header_cssstyles.dropdownitem) + ' d-flex align-items-center dropdownitem m-0 p-0 '
|
|
21193
|
-
}, /*#__PURE__*/React__default["default"].createElement(AiOutlineUserAdd.AiOutlineUserAdd, null), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
21194
|
-
"class": "ml-2 mr-2 text-transform-none"
|
|
21195
|
-
}, lang.signup))))), authdetailsContext.loggedin && /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Menu, {
|
|
21311
|
+
}, 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__default["default"].createElement(Dropdown__default["default"].Menu, {
|
|
21196
21312
|
style: {
|
|
21197
21313
|
minWidth: '200px'
|
|
21198
21314
|
}
|
|
@@ -21763,6 +21879,9 @@ var Modernheader = function Modernheader(props) {
|
|
|
21763
21879
|
"class": " ".concat(header_cssstyles.user_btn) + ' d-flex align-items-center justify-content-center ',
|
|
21764
21880
|
sytle: {
|
|
21765
21881
|
position: 'relative'
|
|
21882
|
+
},
|
|
21883
|
+
onClick: function onClick() {
|
|
21884
|
+
routingcountext(StaticPagesLinksContext.Login);
|
|
21766
21885
|
}
|
|
21767
21886
|
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
21768
21887
|
"class": ' h-100 d-flex align-items-center '
|
|
@@ -21797,29 +21916,7 @@ var Modernheader = function Modernheader(props) {
|
|
|
21797
21916
|
style: {
|
|
21798
21917
|
maxWidth: '120px'
|
|
21799
21918
|
}
|
|
21800
|
-
}, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$c = authdetailsContext.customerinfo) === null || _authdetailsContext$c === void 0 ? void 0 : _authdetailsContext$c.name)))),
|
|
21801
|
-
onClick: function onClick() {
|
|
21802
|
-
routingcountext(StaticPagesLinksContext.Login);
|
|
21803
|
-
}
|
|
21804
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
21805
|
-
"class": "".concat(header_cssstyles.dropdownitemcontainer) + ' m-0 p-0 d-flex align-items-center '
|
|
21806
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
21807
|
-
"class": ' d-flex align-items-center m-0 p-0 '
|
|
21808
|
-
}, /*#__PURE__*/React__default["default"].createElement(AiOutlineLogin.AiOutlineLogin, {
|
|
21809
|
-
"class": langdetect == 'en' ? 'mr-2' : 'ml-2'
|
|
21810
|
-
}), /*#__PURE__*/React__default["default"].createElement("span", null, lang.login)))), /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Divider, null), /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Item, {
|
|
21811
|
-
onClick: function onClick() {
|
|
21812
|
-
routingcountext(StaticPagesLinksContext.Signup);
|
|
21813
|
-
}
|
|
21814
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
21815
|
-
"class": "".concat(header_cssstyles.dropdownitemcontainer) + ' m-0 p-0 d-flex align-items-center '
|
|
21816
|
-
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
21817
|
-
"class": ' d-flex align-items-center m-0 p-0 '
|
|
21818
|
-
}, /*#__PURE__*/React__default["default"].createElement(AiOutlineUserAdd.AiOutlineUserAdd, {
|
|
21819
|
-
"class": langdetect == 'en' ? 'mr-2' : 'ml-2'
|
|
21820
|
-
}), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
21821
|
-
"class": "text-transform-none"
|
|
21822
|
-
}, lang.signup))))), authdetailsContext.loggedin && /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Menu, {
|
|
21919
|
+
}, 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__default["default"].createElement(Dropdown__default["default"].Menu, {
|
|
21823
21920
|
style: {
|
|
21824
21921
|
minWidth: '200px'
|
|
21825
21922
|
}
|
|
@@ -47683,7 +47780,7 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
|
|
|
47683
47780
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
47684
47781
|
"class": "".concat(cardsstyles$4.card_thumbnail)
|
|
47685
47782
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
47686
|
-
"class": "".concat(cardsstyles$4.img_container, " ").concat(cardsstyles2.img_container) + ' w-100
|
|
47783
|
+
"class": "".concat(cardsstyles$4.img_container, " ").concat(cardsstyles2.img_container) + ' w-100 allcentered ',
|
|
47687
47784
|
onClick: function onClick() {
|
|
47688
47785
|
setShowProductInfoModalContext(true);
|
|
47689
47786
|
setProductIdProdutInfoModalContext(item.productid);
|
|
@@ -47692,19 +47789,19 @@ var Productcard_with_zoominonhover = function Productcard_with_zoominonhover(pro
|
|
|
47692
47789
|
cursor: 'pointer',
|
|
47693
47790
|
overflow: 'hidden'
|
|
47694
47791
|
}
|
|
47695
|
-
}, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
|
|
47792
|
+
}, item.image != '' && /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
|
|
47696
47793
|
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
47697
47794
|
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
47698
47795
|
path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + item.image,
|
|
47699
47796
|
style: {
|
|
47700
|
-
width: '
|
|
47701
|
-
|
|
47797
|
+
width: sectionproperties.imageInnerWidth_Height + '%',
|
|
47798
|
+
height: sectionproperties.imageInnerWidth_Height + '%',
|
|
47799
|
+
objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain',
|
|
47702
47800
|
position: 'relative',
|
|
47703
47801
|
borderBottomLeftRadius: langdetect == 'en' ? sectionproperties.image_borderBottomLeftRadius + 'px' : sectionproperties.image_borderBottomRightRadius + 'px',
|
|
47704
47802
|
borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
47705
47803
|
borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
|
|
47706
|
-
borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px'
|
|
47707
|
-
marginBottom: 'auto'
|
|
47804
|
+
borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px'
|
|
47708
47805
|
},
|
|
47709
47806
|
loading: "lazy"
|
|
47710
47807
|
})), sectionproperties.favBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -53658,6 +53755,7 @@ var Simplecategorycardwithtextbelow = function Simplecategorycardwithtextbelow(p
|
|
|
53658
53755
|
borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
53659
53756
|
height: sectionproperties.image_height + 'px',
|
|
53660
53757
|
marginBottom: sectionproperties.image_mb + 'px',
|
|
53758
|
+
border: sectionproperties.image_borderwidth + 'px solid ' + sectionproperties.image_bordercolor,
|
|
53661
53759
|
overflow: 'hidden',
|
|
53662
53760
|
position: 'relative',
|
|
53663
53761
|
':before': {
|