tabexseriescomponents 0.2.747 → 0.2.748
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 +38 -48
- package/dist/index.esm.js +38 -48
- package/dist/index.umd.js +38 -48
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -8584,13 +8584,24 @@ var Ordershistory = function Ordershistory(props) {
|
|
|
8584
8584
|
_useState14 = _slicedToArray__default["default"](_useState13, 2),
|
|
8585
8585
|
orderindex = _useState14[0],
|
|
8586
8586
|
setorderindex = _useState14[1];
|
|
8587
|
+
// useEffect(() => {
|
|
8588
|
+
// if (authdetailsContext?.loggedin == true) {
|
|
8589
|
+
// var tempFetchQueriesEngineContext = { ...FetchQueriesEngineContext };
|
|
8590
|
+
// tempFetchQueriesEngineContext.orderhistory = true;
|
|
8591
|
+
// setFetchQueriesEngineContext({ ...tempFetchQueriesEngineContext });
|
|
8592
|
+
// } else {
|
|
8593
|
+
// // routingcountext('');
|
|
8594
|
+
// }
|
|
8595
|
+
// }, [authdetailsContext, FetchQueriesEngineContext]);
|
|
8587
8596
|
React.useEffect(function () {
|
|
8588
8597
|
if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.loggedin) == true) {
|
|
8589
|
-
|
|
8590
|
-
|
|
8591
|
-
|
|
8598
|
+
if (FetchQueriesEngineContext != undefined) {
|
|
8599
|
+
var tempFetchQueriesEngineContext = _objectSpread$2t({}, FetchQueriesEngineContext);
|
|
8600
|
+
tempFetchQueriesEngineContext.orderhistory = true;
|
|
8601
|
+
setFetchQueriesEngineContext(_objectSpread$2t({}, tempFetchQueriesEngineContext));
|
|
8602
|
+
}
|
|
8592
8603
|
}
|
|
8593
|
-
}, [authdetailsContext
|
|
8604
|
+
}, [authdetailsContext]);
|
|
8594
8605
|
var _useState15 = React.useState(''),
|
|
8595
8606
|
_useState16 = _slicedToArray__default["default"](_useState15, 2),
|
|
8596
8607
|
sectionproperties = _useState16[0],
|
|
@@ -10985,18 +10996,22 @@ var Checkout = function Checkout(props) {
|
|
|
10985
10996
|
_useState8 = _slicedToArray__default["default"](_useState7, 2),
|
|
10986
10997
|
insthasaffiliate = _useState8[0],
|
|
10987
10998
|
setinsthasaffiliate = _useState8[1];
|
|
10988
|
-
var _useState9 = React.useState(
|
|
10989
|
-
_useState10 = _slicedToArray__default["default"](_useState9, 2)
|
|
10990
|
-
|
|
10991
|
-
|
|
10992
|
-
var _useState11 = React.useState(
|
|
10993
|
-
_useState12 = _slicedToArray__default["default"](_useState11, 2)
|
|
10994
|
-
|
|
10995
|
-
|
|
10996
|
-
var _useState13 = React.useState(
|
|
10999
|
+
var _useState9 = React.useState(false),
|
|
11000
|
+
_useState10 = _slicedToArray__default["default"](_useState9, 2);
|
|
11001
|
+
_useState10[0];
|
|
11002
|
+
_useState10[1];
|
|
11003
|
+
var _useState11 = React.useState(false),
|
|
11004
|
+
_useState12 = _slicedToArray__default["default"](_useState11, 2);
|
|
11005
|
+
_useState12[0];
|
|
11006
|
+
_useState12[1];
|
|
11007
|
+
var _useState13 = React.useState([]),
|
|
10997
11008
|
_useState14 = _slicedToArray__default["default"](_useState13, 2),
|
|
10998
|
-
|
|
10999
|
-
|
|
11009
|
+
shippingmethods = _useState14[0],
|
|
11010
|
+
setshippingmethods = _useState14[1];
|
|
11011
|
+
var _useState15 = React.useState([]),
|
|
11012
|
+
_useState16 = _slicedToArray__default["default"](_useState15, 2),
|
|
11013
|
+
orderextrafeilds = _useState16[0],
|
|
11014
|
+
setorderextrafeilds = _useState16[1];
|
|
11000
11015
|
React.useEffect(function () {
|
|
11001
11016
|
var _templatepropcontext$;
|
|
11002
11017
|
var cartindex = templatepropcontext === null || templatepropcontext === void 0 || (_templatepropcontext$ = templatepropcontext.pagesnprop) === null || _templatepropcontext$ === void 0 ? void 0 : _templatepropcontext$.findIndex(function (x) {
|
|
@@ -11410,7 +11425,7 @@ var Checkout = function Checkout(props) {
|
|
|
11410
11425
|
}
|
|
11411
11426
|
if (sectionproperties.verifyemailandphone == 'Yes' && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue33 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue33 === void 0 || (_fetchcustomercartQue33 = _fetchcustomercartQue33.data) === null || _fetchcustomercartQue33 === void 0 ? void 0 : _fetchcustomercartQue33.customercart.name.length) < 3) {
|
|
11412
11427
|
NotificationManager.warning('', langdetect == 'en' ? 'Write your full name' : 'اكتب الاسم كاملا');
|
|
11413
|
-
} else if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue34 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue34 === void 0 || (_fetchcustomercartQue34 = _fetchcustomercartQue34.data) === null || _fetchcustomercartQue34 === void 0 ? void 0 : _fetchcustomercartQue34.customercart.mobile.length) < 11
|
|
11428
|
+
} else if (sectionproperties.verifyemailandphone == 'Yes' && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue34 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue34 === void 0 || (_fetchcustomercartQue34 = _fetchcustomercartQue34.data) === null || _fetchcustomercartQue34 === void 0 ? void 0 : _fetchcustomercartQue34.customercart.mobile.length) < 11) {
|
|
11414
11429
|
NotificationManager.warning('', langdetect == 'en' ? 'Write valid mobile number' : 'اكتب رقم تليفون صحيح');
|
|
11415
11430
|
} else {
|
|
11416
11431
|
AddOrderMutationContext.mutate();
|
|
@@ -11440,27 +11455,6 @@ var Checkout = function Checkout(props) {
|
|
|
11440
11455
|
}
|
|
11441
11456
|
return isloading;
|
|
11442
11457
|
};
|
|
11443
|
-
var _useState15 = React.useState(null),
|
|
11444
|
-
_useState16 = _slicedToArray__default["default"](_useState15, 2),
|
|
11445
|
-
debounceTimer = _useState16[0],
|
|
11446
|
-
setDebounceTimer = _useState16[1];
|
|
11447
|
-
var handlePhoneChange = function handlePhoneChange(event, country) {
|
|
11448
|
-
var temp = event;
|
|
11449
|
-
|
|
11450
|
-
// Clear the previous timeout if the user is still typing
|
|
11451
|
-
if (debounceTimer) {
|
|
11452
|
-
clearTimeout(debounceTimer);
|
|
11453
|
-
}
|
|
11454
|
-
|
|
11455
|
-
// Set a new timeout to update after 500ms of no typing
|
|
11456
|
-
var newDebounceTimer = setTimeout(function () {
|
|
11457
|
-
// cartinfoupdater('countrydialcode', country.dialCode);
|
|
11458
|
-
setcountrycode(country.dialCode);
|
|
11459
|
-
cartinfoupdater('mobile', temp);
|
|
11460
|
-
// alert(fetchcustomercartQueryContext?.data?.data?.customercart.mobile.length);
|
|
11461
|
-
}, 500);
|
|
11462
|
-
setDebounceTimer(newDebounceTimer);
|
|
11463
|
-
};
|
|
11464
11458
|
var Mycart = function Mycart() {
|
|
11465
11459
|
var _fetchcustomercartQue35, _fetchcustomercartQue36, _fetchcustomercartQue37, _fetchcustomercartQue41, _fetchcustomercartQue42, _fetchcustomercartQue43, _fetchcustomercartQue44, _fetchcustomercartQue45, _fetchcustomercartQue46, _fetchcustomercartQue47, _fetchcustomercartQue48, _fetchcustomercartQue49, _fetchcustomercartQue50, _fetchcustomercartQue51, _fetchcustomercartQue52, _fetchcustomercartQue53, _fetchcustomercartQue54, _fetchcustomercartQue55, _fetchcustomercartQue56, _fetchcustomercartQue57, _fetchcustomercartQue58, _fetchcustomercartQue59, _fetchcustomercartQue60, _fetchcustomercartQue61, _fetchcustomercartQue62, _fetchcustomercartQue63, _fetchcustomercartQue64;
|
|
11466
11460
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -12007,20 +12001,16 @@ var Checkout = function Checkout(props) {
|
|
|
12007
12001
|
className: "col-lg-4 col-md-12 mb-3"
|
|
12008
12002
|
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
12009
12003
|
className: "".concat(checkoutstyles.input_label_name) + ' d-flex align-items-start '
|
|
12010
|
-
}, langdetect == 'en' ? 'Phone Number' : 'رقم الهاتف'), /*#__PURE__*/React__default["default"].createElement(
|
|
12011
|
-
|
|
12012
|
-
|
|
12013
|
-
enableSearch: true,
|
|
12014
|
-
autoFormat: true,
|
|
12004
|
+
}, langdetect == 'en' ? 'Phone Number' : 'رقم الهاتف'), /*#__PURE__*/React__default["default"].createElement("input", {
|
|
12005
|
+
type: 'text',
|
|
12006
|
+
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
12015
12007
|
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue66 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue66 === void 0 || (_fetchcustomercartQue66 = _fetchcustomercartQue66.data) === null || _fetchcustomercartQue66 === void 0 ? void 0 : _fetchcustomercartQue66.customercart.mobile,
|
|
12016
|
-
|
|
12017
|
-
|
|
12008
|
+
onChange: function onChange(event) {
|
|
12009
|
+
cartinfoupdater('mobile', event.target.value);
|
|
12018
12010
|
},
|
|
12019
|
-
onChange: handlePhoneChange,
|
|
12020
12011
|
style: {
|
|
12021
|
-
|
|
12022
|
-
|
|
12023
|
-
height: sectionproperties.inputfieldheight + 'px'
|
|
12012
|
+
resize: 'none',
|
|
12013
|
+
boxShadow: 'none'
|
|
12024
12014
|
}
|
|
12025
12015
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
12026
12016
|
className: "col-lg-4 col-md-12 mb-3"
|
package/dist/index.esm.js
CHANGED
|
@@ -8535,13 +8535,24 @@ var Ordershistory = function Ordershistory(props) {
|
|
|
8535
8535
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
8536
8536
|
orderindex = _useState14[0],
|
|
8537
8537
|
setorderindex = _useState14[1];
|
|
8538
|
+
// useEffect(() => {
|
|
8539
|
+
// if (authdetailsContext?.loggedin == true) {
|
|
8540
|
+
// var tempFetchQueriesEngineContext = { ...FetchQueriesEngineContext };
|
|
8541
|
+
// tempFetchQueriesEngineContext.orderhistory = true;
|
|
8542
|
+
// setFetchQueriesEngineContext({ ...tempFetchQueriesEngineContext });
|
|
8543
|
+
// } else {
|
|
8544
|
+
// // routingcountext('');
|
|
8545
|
+
// }
|
|
8546
|
+
// }, [authdetailsContext, FetchQueriesEngineContext]);
|
|
8538
8547
|
useEffect(function () {
|
|
8539
8548
|
if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.loggedin) == true) {
|
|
8540
|
-
|
|
8541
|
-
|
|
8542
|
-
|
|
8549
|
+
if (FetchQueriesEngineContext != undefined) {
|
|
8550
|
+
var tempFetchQueriesEngineContext = _objectSpread$2t({}, FetchQueriesEngineContext);
|
|
8551
|
+
tempFetchQueriesEngineContext.orderhistory = true;
|
|
8552
|
+
setFetchQueriesEngineContext(_objectSpread$2t({}, tempFetchQueriesEngineContext));
|
|
8553
|
+
}
|
|
8543
8554
|
}
|
|
8544
|
-
}, [authdetailsContext
|
|
8555
|
+
}, [authdetailsContext]);
|
|
8545
8556
|
var _useState15 = useState(''),
|
|
8546
8557
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
8547
8558
|
sectionproperties = _useState16[0],
|
|
@@ -10936,18 +10947,22 @@ var Checkout = function Checkout(props) {
|
|
|
10936
10947
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
10937
10948
|
insthasaffiliate = _useState8[0],
|
|
10938
10949
|
setinsthasaffiliate = _useState8[1];
|
|
10939
|
-
var _useState9 = useState(
|
|
10940
|
-
_useState10 = _slicedToArray(_useState9, 2)
|
|
10941
|
-
|
|
10942
|
-
|
|
10943
|
-
var _useState11 = useState(
|
|
10944
|
-
_useState12 = _slicedToArray(_useState11, 2)
|
|
10945
|
-
|
|
10946
|
-
|
|
10947
|
-
var _useState13 = useState(
|
|
10950
|
+
var _useState9 = useState(false),
|
|
10951
|
+
_useState10 = _slicedToArray(_useState9, 2);
|
|
10952
|
+
_useState10[0];
|
|
10953
|
+
_useState10[1];
|
|
10954
|
+
var _useState11 = useState(false),
|
|
10955
|
+
_useState12 = _slicedToArray(_useState11, 2);
|
|
10956
|
+
_useState12[0];
|
|
10957
|
+
_useState12[1];
|
|
10958
|
+
var _useState13 = useState([]),
|
|
10948
10959
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
10949
|
-
|
|
10950
|
-
|
|
10960
|
+
shippingmethods = _useState14[0],
|
|
10961
|
+
setshippingmethods = _useState14[1];
|
|
10962
|
+
var _useState15 = useState([]),
|
|
10963
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
10964
|
+
orderextrafeilds = _useState16[0],
|
|
10965
|
+
setorderextrafeilds = _useState16[1];
|
|
10951
10966
|
useEffect(function () {
|
|
10952
10967
|
var _templatepropcontext$;
|
|
10953
10968
|
var cartindex = templatepropcontext === null || templatepropcontext === void 0 || (_templatepropcontext$ = templatepropcontext.pagesnprop) === null || _templatepropcontext$ === void 0 ? void 0 : _templatepropcontext$.findIndex(function (x) {
|
|
@@ -11361,7 +11376,7 @@ var Checkout = function Checkout(props) {
|
|
|
11361
11376
|
}
|
|
11362
11377
|
if (sectionproperties.verifyemailandphone == 'Yes' && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue33 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue33 === void 0 || (_fetchcustomercartQue33 = _fetchcustomercartQue33.data) === null || _fetchcustomercartQue33 === void 0 ? void 0 : _fetchcustomercartQue33.customercart.name.length) < 3) {
|
|
11363
11378
|
NotificationManager.warning('', langdetect == 'en' ? 'Write your full name' : 'اكتب الاسم كاملا');
|
|
11364
|
-
} else if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue34 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue34 === void 0 || (_fetchcustomercartQue34 = _fetchcustomercartQue34.data) === null || _fetchcustomercartQue34 === void 0 ? void 0 : _fetchcustomercartQue34.customercart.mobile.length) < 11
|
|
11379
|
+
} else if (sectionproperties.verifyemailandphone == 'Yes' && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue34 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue34 === void 0 || (_fetchcustomercartQue34 = _fetchcustomercartQue34.data) === null || _fetchcustomercartQue34 === void 0 ? void 0 : _fetchcustomercartQue34.customercart.mobile.length) < 11) {
|
|
11365
11380
|
NotificationManager.warning('', langdetect == 'en' ? 'Write valid mobile number' : 'اكتب رقم تليفون صحيح');
|
|
11366
11381
|
} else {
|
|
11367
11382
|
AddOrderMutationContext.mutate();
|
|
@@ -11391,27 +11406,6 @@ var Checkout = function Checkout(props) {
|
|
|
11391
11406
|
}
|
|
11392
11407
|
return isloading;
|
|
11393
11408
|
};
|
|
11394
|
-
var _useState15 = useState(null),
|
|
11395
|
-
_useState16 = _slicedToArray(_useState15, 2),
|
|
11396
|
-
debounceTimer = _useState16[0],
|
|
11397
|
-
setDebounceTimer = _useState16[1];
|
|
11398
|
-
var handlePhoneChange = function handlePhoneChange(event, country) {
|
|
11399
|
-
var temp = event;
|
|
11400
|
-
|
|
11401
|
-
// Clear the previous timeout if the user is still typing
|
|
11402
|
-
if (debounceTimer) {
|
|
11403
|
-
clearTimeout(debounceTimer);
|
|
11404
|
-
}
|
|
11405
|
-
|
|
11406
|
-
// Set a new timeout to update after 500ms of no typing
|
|
11407
|
-
var newDebounceTimer = setTimeout(function () {
|
|
11408
|
-
// cartinfoupdater('countrydialcode', country.dialCode);
|
|
11409
|
-
setcountrycode(country.dialCode);
|
|
11410
|
-
cartinfoupdater('mobile', temp);
|
|
11411
|
-
// alert(fetchcustomercartQueryContext?.data?.data?.customercart.mobile.length);
|
|
11412
|
-
}, 500);
|
|
11413
|
-
setDebounceTimer(newDebounceTimer);
|
|
11414
|
-
};
|
|
11415
11409
|
var Mycart = function Mycart() {
|
|
11416
11410
|
var _fetchcustomercartQue35, _fetchcustomercartQue36, _fetchcustomercartQue37, _fetchcustomercartQue41, _fetchcustomercartQue42, _fetchcustomercartQue43, _fetchcustomercartQue44, _fetchcustomercartQue45, _fetchcustomercartQue46, _fetchcustomercartQue47, _fetchcustomercartQue48, _fetchcustomercartQue49, _fetchcustomercartQue50, _fetchcustomercartQue51, _fetchcustomercartQue52, _fetchcustomercartQue53, _fetchcustomercartQue54, _fetchcustomercartQue55, _fetchcustomercartQue56, _fetchcustomercartQue57, _fetchcustomercartQue58, _fetchcustomercartQue59, _fetchcustomercartQue60, _fetchcustomercartQue61, _fetchcustomercartQue62, _fetchcustomercartQue63, _fetchcustomercartQue64;
|
|
11417
11411
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -11958,20 +11952,16 @@ var Checkout = function Checkout(props) {
|
|
|
11958
11952
|
className: "col-lg-4 col-md-12 mb-3"
|
|
11959
11953
|
}, /*#__PURE__*/React.createElement("label", {
|
|
11960
11954
|
className: "".concat(checkoutstyles.input_label_name) + ' d-flex align-items-start '
|
|
11961
|
-
}, langdetect == 'en' ? 'Phone Number' : 'رقم الهاتف'), /*#__PURE__*/React.createElement(
|
|
11962
|
-
|
|
11963
|
-
|
|
11964
|
-
enableSearch: true,
|
|
11965
|
-
autoFormat: true,
|
|
11955
|
+
}, langdetect == 'en' ? 'Phone Number' : 'رقم الهاتف'), /*#__PURE__*/React.createElement("input", {
|
|
11956
|
+
type: 'text',
|
|
11957
|
+
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
11966
11958
|
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue66 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue66 === void 0 || (_fetchcustomercartQue66 = _fetchcustomercartQue66.data) === null || _fetchcustomercartQue66 === void 0 ? void 0 : _fetchcustomercartQue66.customercart.mobile,
|
|
11967
|
-
|
|
11968
|
-
|
|
11959
|
+
onChange: function onChange(event) {
|
|
11960
|
+
cartinfoupdater('mobile', event.target.value);
|
|
11969
11961
|
},
|
|
11970
|
-
onChange: handlePhoneChange,
|
|
11971
11962
|
style: {
|
|
11972
|
-
|
|
11973
|
-
|
|
11974
|
-
height: sectionproperties.inputfieldheight + 'px'
|
|
11963
|
+
resize: 'none',
|
|
11964
|
+
boxShadow: 'none'
|
|
11975
11965
|
}
|
|
11976
11966
|
})), /*#__PURE__*/React.createElement("div", {
|
|
11977
11967
|
className: "col-lg-4 col-md-12 mb-3"
|
package/dist/index.umd.js
CHANGED
|
@@ -8399,13 +8399,24 @@
|
|
|
8399
8399
|
_useState14 = _slicedToArray__default["default"](_useState13, 2),
|
|
8400
8400
|
orderindex = _useState14[0],
|
|
8401
8401
|
setorderindex = _useState14[1];
|
|
8402
|
+
// useEffect(() => {
|
|
8403
|
+
// if (authdetailsContext?.loggedin == true) {
|
|
8404
|
+
// var tempFetchQueriesEngineContext = { ...FetchQueriesEngineContext };
|
|
8405
|
+
// tempFetchQueriesEngineContext.orderhistory = true;
|
|
8406
|
+
// setFetchQueriesEngineContext({ ...tempFetchQueriesEngineContext });
|
|
8407
|
+
// } else {
|
|
8408
|
+
// // routingcountext('');
|
|
8409
|
+
// }
|
|
8410
|
+
// }, [authdetailsContext, FetchQueriesEngineContext]);
|
|
8402
8411
|
React.useEffect(function () {
|
|
8403
8412
|
if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.loggedin) == true) {
|
|
8404
|
-
|
|
8405
|
-
|
|
8406
|
-
|
|
8413
|
+
if (FetchQueriesEngineContext != undefined) {
|
|
8414
|
+
var tempFetchQueriesEngineContext = _objectSpread$2t({}, FetchQueriesEngineContext);
|
|
8415
|
+
tempFetchQueriesEngineContext.orderhistory = true;
|
|
8416
|
+
setFetchQueriesEngineContext(_objectSpread$2t({}, tempFetchQueriesEngineContext));
|
|
8417
|
+
}
|
|
8407
8418
|
}
|
|
8408
|
-
}, [authdetailsContext
|
|
8419
|
+
}, [authdetailsContext]);
|
|
8409
8420
|
var _useState15 = React.useState(''),
|
|
8410
8421
|
_useState16 = _slicedToArray__default["default"](_useState15, 2),
|
|
8411
8422
|
sectionproperties = _useState16[0],
|
|
@@ -10800,18 +10811,22 @@
|
|
|
10800
10811
|
_useState8 = _slicedToArray__default["default"](_useState7, 2),
|
|
10801
10812
|
insthasaffiliate = _useState8[0],
|
|
10802
10813
|
setinsthasaffiliate = _useState8[1];
|
|
10803
|
-
var _useState9 = React.useState(
|
|
10804
|
-
_useState10 = _slicedToArray__default["default"](_useState9, 2)
|
|
10805
|
-
|
|
10806
|
-
|
|
10807
|
-
var _useState11 = React.useState(
|
|
10808
|
-
_useState12 = _slicedToArray__default["default"](_useState11, 2)
|
|
10809
|
-
|
|
10810
|
-
|
|
10811
|
-
var _useState13 = React.useState(
|
|
10814
|
+
var _useState9 = React.useState(false),
|
|
10815
|
+
_useState10 = _slicedToArray__default["default"](_useState9, 2);
|
|
10816
|
+
_useState10[0];
|
|
10817
|
+
_useState10[1];
|
|
10818
|
+
var _useState11 = React.useState(false),
|
|
10819
|
+
_useState12 = _slicedToArray__default["default"](_useState11, 2);
|
|
10820
|
+
_useState12[0];
|
|
10821
|
+
_useState12[1];
|
|
10822
|
+
var _useState13 = React.useState([]),
|
|
10812
10823
|
_useState14 = _slicedToArray__default["default"](_useState13, 2),
|
|
10813
|
-
|
|
10814
|
-
|
|
10824
|
+
shippingmethods = _useState14[0],
|
|
10825
|
+
setshippingmethods = _useState14[1];
|
|
10826
|
+
var _useState15 = React.useState([]),
|
|
10827
|
+
_useState16 = _slicedToArray__default["default"](_useState15, 2),
|
|
10828
|
+
orderextrafeilds = _useState16[0],
|
|
10829
|
+
setorderextrafeilds = _useState16[1];
|
|
10815
10830
|
React.useEffect(function () {
|
|
10816
10831
|
var _templatepropcontext$;
|
|
10817
10832
|
var cartindex = templatepropcontext === null || templatepropcontext === void 0 || (_templatepropcontext$ = templatepropcontext.pagesnprop) === null || _templatepropcontext$ === void 0 ? void 0 : _templatepropcontext$.findIndex(function (x) {
|
|
@@ -11225,7 +11240,7 @@
|
|
|
11225
11240
|
}
|
|
11226
11241
|
if (sectionproperties.verifyemailandphone == 'Yes' && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue33 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue33 === void 0 || (_fetchcustomercartQue33 = _fetchcustomercartQue33.data) === null || _fetchcustomercartQue33 === void 0 ? void 0 : _fetchcustomercartQue33.customercart.name.length) < 3) {
|
|
11227
11242
|
NotificationManager.warning('', langdetect == 'en' ? 'Write your full name' : 'اكتب الاسم كاملا');
|
|
11228
|
-
} else if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue34 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue34 === void 0 || (_fetchcustomercartQue34 = _fetchcustomercartQue34.data) === null || _fetchcustomercartQue34 === void 0 ? void 0 : _fetchcustomercartQue34.customercart.mobile.length) < 11
|
|
11243
|
+
} else if (sectionproperties.verifyemailandphone == 'Yes' && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue34 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue34 === void 0 || (_fetchcustomercartQue34 = _fetchcustomercartQue34.data) === null || _fetchcustomercartQue34 === void 0 ? void 0 : _fetchcustomercartQue34.customercart.mobile.length) < 11) {
|
|
11229
11244
|
NotificationManager.warning('', langdetect == 'en' ? 'Write valid mobile number' : 'اكتب رقم تليفون صحيح');
|
|
11230
11245
|
} else {
|
|
11231
11246
|
AddOrderMutationContext.mutate();
|
|
@@ -11255,27 +11270,6 @@
|
|
|
11255
11270
|
}
|
|
11256
11271
|
return isloading;
|
|
11257
11272
|
};
|
|
11258
|
-
var _useState15 = React.useState(null),
|
|
11259
|
-
_useState16 = _slicedToArray__default["default"](_useState15, 2),
|
|
11260
|
-
debounceTimer = _useState16[0],
|
|
11261
|
-
setDebounceTimer = _useState16[1];
|
|
11262
|
-
var handlePhoneChange = function handlePhoneChange(event, country) {
|
|
11263
|
-
var temp = event;
|
|
11264
|
-
|
|
11265
|
-
// Clear the previous timeout if the user is still typing
|
|
11266
|
-
if (debounceTimer) {
|
|
11267
|
-
clearTimeout(debounceTimer);
|
|
11268
|
-
}
|
|
11269
|
-
|
|
11270
|
-
// Set a new timeout to update after 500ms of no typing
|
|
11271
|
-
var newDebounceTimer = setTimeout(function () {
|
|
11272
|
-
// cartinfoupdater('countrydialcode', country.dialCode);
|
|
11273
|
-
setcountrycode(country.dialCode);
|
|
11274
|
-
cartinfoupdater('mobile', temp);
|
|
11275
|
-
// alert(fetchcustomercartQueryContext?.data?.data?.customercart.mobile.length);
|
|
11276
|
-
}, 500);
|
|
11277
|
-
setDebounceTimer(newDebounceTimer);
|
|
11278
|
-
};
|
|
11279
11273
|
var Mycart = function Mycart() {
|
|
11280
11274
|
var _fetchcustomercartQue35, _fetchcustomercartQue36, _fetchcustomercartQue37, _fetchcustomercartQue41, _fetchcustomercartQue42, _fetchcustomercartQue43, _fetchcustomercartQue44, _fetchcustomercartQue45, _fetchcustomercartQue46, _fetchcustomercartQue47, _fetchcustomercartQue48, _fetchcustomercartQue49, _fetchcustomercartQue50, _fetchcustomercartQue51, _fetchcustomercartQue52, _fetchcustomercartQue53, _fetchcustomercartQue54, _fetchcustomercartQue55, _fetchcustomercartQue56, _fetchcustomercartQue57, _fetchcustomercartQue58, _fetchcustomercartQue59, _fetchcustomercartQue60, _fetchcustomercartQue61, _fetchcustomercartQue62, _fetchcustomercartQue63, _fetchcustomercartQue64;
|
|
11281
11275
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -11822,20 +11816,16 @@
|
|
|
11822
11816
|
className: "col-lg-4 col-md-12 mb-3"
|
|
11823
11817
|
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
11824
11818
|
className: "".concat(checkoutstyles.input_label_name) + ' d-flex align-items-start '
|
|
11825
|
-
}, langdetect == 'en' ? 'Phone Number' : 'رقم الهاتف'), /*#__PURE__*/React__default["default"].createElement(
|
|
11826
|
-
|
|
11827
|
-
|
|
11828
|
-
enableSearch: true,
|
|
11829
|
-
autoFormat: true,
|
|
11819
|
+
}, langdetect == 'en' ? 'Phone Number' : 'رقم الهاتف'), /*#__PURE__*/React__default["default"].createElement("input", {
|
|
11820
|
+
type: 'text',
|
|
11821
|
+
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
11830
11822
|
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue66 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue66 === void 0 || (_fetchcustomercartQue66 = _fetchcustomercartQue66.data) === null || _fetchcustomercartQue66 === void 0 ? void 0 : _fetchcustomercartQue66.customercart.mobile,
|
|
11831
|
-
|
|
11832
|
-
|
|
11823
|
+
onChange: function onChange(event) {
|
|
11824
|
+
cartinfoupdater('mobile', event.target.value);
|
|
11833
11825
|
},
|
|
11834
|
-
onChange: handlePhoneChange,
|
|
11835
11826
|
style: {
|
|
11836
|
-
|
|
11837
|
-
|
|
11838
|
-
height: sectionproperties.inputfieldheight + 'px'
|
|
11827
|
+
resize: 'none',
|
|
11828
|
+
boxShadow: 'none'
|
|
11839
11829
|
}
|
|
11840
11830
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11841
11831
|
className: "col-lg-4 col-md-12 mb-3"
|